/*
 *
 * Blue Billywig Launchpad 
 *
 */
/*
 *
 * from: https://cdn.bluebillywig.com/apps/player/20240805.141719/player.js 
 *
 */
(function(){function $parcel$export(e,t,i,n){Object.defineProperty(e,t,{get:i,set:n,enumerable:!0,configurable:!0})}function $parcel$interopDefault(e){return e&&e.__esModule?e.default:e}var $parcel$global="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},$parcel$modules={},$parcel$inits={},parcelRequire=$parcel$global.parcelRequired6c3;null==parcelRequire&&(parcelRequire=function(e){if(e in $parcel$modules)return $parcel$modules[e].exports;if(e in $parcel$inits){var t=$parcel$inits[e];delete $parcel$inits[e];var i={id:e,exports:{}};return $parcel$modules[e]=i,t.call(i.exports,i,i.exports),i.exports}var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n},parcelRequire.register=function(e,t){$parcel$inits[e]=t},$parcel$global.parcelRequired6c3=parcelRequire),parcelRequire.register("l8sJU",(function(e,t){var i,n;$parcel$export(e.exports,"register",(function(){return i}),(function(e){return i=e})),$parcel$export(e.exports,"resolve",(function(){return n}),(function(e){return n=e}));var a={};i=function(e){for(var t=Object.keys(e),i=0;i<t.length;i++)a[t[i]]=e[t[i]]},n=function(e){var t=a[e];if(null==t)throw new Error("Could not resolve bundle with id "+e);return t}})),parcelRequire.register("lDGnc",(function(e,t){$parcel$export(e.exports,"assertThisInitialized",(function(){return parcelRequire("fBLaW").default})),$parcel$export(e.exports,"asyncToGenerator",(function(){return parcelRequire("gCaES").default})),$parcel$export(e.exports,"classCallCheck",(function(){return parcelRequire("7CnHN").default})),$parcel$export(e.exports,"construct",(function(){return parcelRequire("bTQBy").default})),$parcel$export(e.exports,"createClass",(function(){return parcelRequire("eamhc").default})),$parcel$export(e.exports,"createSuper",(function(){return parcelRequire("27Qiu").default})),$parcel$export(e.exports,"defineProperty",(function(){return parcelRequire("ajyCG").default})),$parcel$export(e.exports,"get",(function(){return parcelRequire("7gftt").default})),$parcel$export(e.exports,"getPrototypeOf",(function(){return parcelRequire("kVqNu").default})),$parcel$export(e.exports,"inherits",(function(){return parcelRequire("6YA9f").default})),$parcel$export(e.exports,"objectSpread",(function(){return parcelRequire("7dai1").default})),$parcel$export(e.exports,"possibleConstructorReturn",(function(){return parcelRequire("1XRpD").default})),$parcel$export(e.exports,"slicedToArray",(function(){return parcelRequire("46MiK").default})),$parcel$export(e.exports,"toConsumableArray",(function(){return parcelRequire("jxjxM").default})),$parcel$export(e.exports,"typeOf",(function(){return parcelRequire("lwy96").default})),$parcel$export(e.exports,"wrapNativeSuper",(function(){return parcelRequire("f2DOr").default}));parcelRequire("fBLaW"),parcelRequire("gCaES"),parcelRequire("7CnHN"),parcelRequire("bTQBy"),parcelRequire("eamhc"),parcelRequire("27Qiu"),parcelRequire("ajyCG"),parcelRequire("7gftt"),parcelRequire("kVqNu"),parcelRequire("6YA9f"),parcelRequire("7dai1"),parcelRequire("1XRpD"),parcelRequire("46MiK"),parcelRequire("jxjxM"),parcelRequire("lwy96"),parcelRequire("f2DOr")})),parcelRequire.register("fBLaW",(function(e,t){function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}$parcel$export(e.exports,"default",(function(){return i}))})),parcelRequire.register("gCaES",(function(e,t){function i(e,t,i,n,a,s,o){try{var r=e[s](o),l=r.value}catch(e){return void i(e)}r.done?t(l):Promise.resolve(l).then(n,a)}function n(e){return function(){var t=this,n=arguments;return new Promise((function(a,s){var o=e.apply(t,n);function r(e){i(o,a,s,r,l,"next",e)}function l(e){i(o,a,s,r,l,"throw",e)}r(void 0)}))}}$parcel$export(e.exports,"default",(function(){return n}))})),parcelRequire.register("7CnHN",(function(e,t){function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}$parcel$export(e.exports,"default",(function(){return i}))})),parcelRequire.register("bTQBy",(function(e,t){$parcel$export(e.exports,"default",(function(){return s}));var i=parcelRequire("eO4Q0");function n(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function a(e,t,s){return(a=n()?Reflect.construct:function(e,t,n){var a=[null];a.push.apply(a,t);var s=new(Function.bind.apply(e,a));return n&&i.default(s,n.prototype),s}).apply(null,arguments)}function s(e,t,i){return a.apply(null,arguments)}})),parcelRequire.register("eO4Q0",(function(e,t){function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function n(e,t){return i(e,t)}$parcel$export(e.exports,"default",(function(){return n}))})),parcelRequire.register("eamhc",(function(e,t){function i(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function n(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}$parcel$export(e.exports,"default",(function(){return n}))})),parcelRequire.register("27Qiu",(function(e,t){$parcel$export(e.exports,"default",(function(){return s}));var i=parcelRequire("jpTL7"),n=parcelRequire("kVqNu"),a=parcelRequire("1XRpD");function s(e){var t=i.default();return function(){var i,s=n.default(e);if(t){var o=n.default(this).constructor;i=Reflect.construct(s,arguments,o)}else i=s.apply(this,arguments);return a.default(this,i)}}})),parcelRequire.register("jpTL7",(function(e,t){function i(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}$parcel$export(e.exports,"default",(function(){return i}))})),parcelRequire.register("kVqNu",(function(e,t){function i(e){return(i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function n(e){return i(e)}$parcel$export(e.exports,"default",(function(){return n}))})),parcelRequire.register("1XRpD",(function(e,t){$parcel$export(e.exports,"default",(function(){return a}));var i=parcelRequire("fBLaW"),n=parcelRequire("lwy96");function a(e,t){return!t||"object"!==n.default(t)&&"function"!=typeof t?i.default(e):t}})),parcelRequire.register("lwy96",(function(e,t){function i(e){return e&&e.constructor===Symbol?"symbol":typeof e}$parcel$export(e.exports,"default",(function(){return i}))})),parcelRequire.register("ajyCG",(function(e,t){function i(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}$parcel$export(e.exports,"default",(function(){return i}))})),parcelRequire.register("7gftt",(function(e,t){$parcel$export(e.exports,"default",(function(){return a}));var i=parcelRequire("5AqIP");function n(e,t,a){return(n="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var a=i.default(e,t);if(a){var s=Object.getOwnPropertyDescriptor(a,t);return s.get?s.get.call(n||e):s.value}})(e,t,a)}function a(e,t,i){return n(e,t,i)}})),parcelRequire.register("5AqIP",(function(e,t){$parcel$export(e.exports,"default",(function(){return n}));var i=parcelRequire("kVqNu");function n(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=i.default(e)););return e}})),parcelRequire.register("6YA9f",(function(e,t){$parcel$export(e.exports,"default",(function(){return n}));var i=parcelRequire("eO4Q0");function n(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i.default(e,t)}})),parcelRequire.register("7dai1",(function(e,t){$parcel$export(e.exports,"default",(function(){return n}));var i=parcelRequire("ajyCG");function n(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){i.default(e,t,n[t])}))}return e}})),parcelRequire.register("46MiK",(function(e,t){$parcel$export(e.exports,"default",(function(){return o}));var i=parcelRequire("e13qE"),n=parcelRequire("227UH"),a=parcelRequire("5v0vo"),s=parcelRequire("gfbmA");function o(e,t){return i.default(e)||n.default(e,t)||s.default(e,t)||a.default()}})),parcelRequire.register("e13qE",(function(e,t){function i(e){if(Array.isArray(e))return e}$parcel$export(e.exports,"default",(function(){return i}))})),parcelRequire.register("227UH",(function(e,t){function i(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}$parcel$export(e.exports,"default",(function(){return i}))})),parcelRequire.register("5v0vo",(function(e,t){function i(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}$parcel$export(e.exports,"default",(function(){return i}))})),parcelRequire.register("gfbmA",(function(e,t){$parcel$export(e.exports,"default",(function(){return n}));var i=parcelRequire("8XQ1L");function n(e,t){if(e){if("string"==typeof e)return i.default(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i.default(e,t):void 0}}})),parcelRequire.register("8XQ1L",(function(e,t){function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}$parcel$export(e.exports,"default",(function(){return i}))})),parcelRequire.register("jxjxM",(function(e,t){$parcel$export(e.exports,"default",(function(){return o}));var i=parcelRequire("6MBXB"),n=parcelRequire("227UH"),a=parcelRequire("4N6Jr"),s=parcelRequire("gfbmA");function o(e){return i.default(e)||n.default(e)||s.default(e)||a.default()}})),parcelRequire.register("6MBXB",(function(e,t){$parcel$export(e.exports,"default",(function(){return n}));var i=parcelRequire("8XQ1L");function n(e){if(Array.isArray(e))return i.default(e)}})),parcelRequire.register("4N6Jr",(function(e,t){function i(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}$parcel$export(e.exports,"default",(function(){return i}))})),parcelRequire.register("f2DOr",(function(e,t){$parcel$export(e.exports,"default",(function(){return r}));var i=parcelRequire("bTQBy"),n=parcelRequire("k3HRu"),a=parcelRequire("kVqNu"),s=parcelRequire("eO4Q0");function o(e){var t="function"==typeof Map?new Map:void 0;return o=function(e){if(null===e||!n.default(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,o)}function o(){return i.default(e,arguments,a.default(this).constructor)}return o.prototype=Object.create(e.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),s.default(o,e)},o(e)}function r(e){return o(e)}})),parcelRequire.register("k3HRu",(function(e,t){function i(e){return-1!==Function.toString.call(e).indexOf("[native code]")}$parcel$export(e.exports,"default",(function(){return i}))})),parcelRequire.register("e06N2",(function(e,t){$parcel$export(e.exports,"debugMode",(function(){return n})),$parcel$export(e.exports,"setDebugModeFromOpts",(function(){return o})),$parcel$export(e.exports,"default",(function(){return r}));var i=parcelRequire("gDCxw"),n=-1!==window.location.hash.indexOf("_bbdebug")||"true"===i.getCookie("bbdebug"),a="",s=(new Date).getTime(),o=function(){var e,t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};"trunk"===i.previewMode&&(n=!0),"true"!==(null===(e=i.playoutData)||void 0===e?void 0:e.bbdebug)&&!0!==(null===(t=i.playoutData)||void 0===t?void 0:t.bbdebug)||(n=!0),a=i.debugPrefix?i.debugPrefix:""},r=function(e,t){(window.location.hostname.match(/\.dev\./)||n)&&"undefined"!=typeof console&&(console.debug?console.debug(e,"".concat(a,"{").concat((new Date).getTime()-s,"}")):console.log(e),console.trace&&t&&console.trace())}})),parcelRequire.register("gDCxw",(function(e,t){$parcel$export(e.exports,"SHA1",(function(){return a})),$parcel$export(e.exports,"setCookie",(function(){return s})),$parcel$export(e.exports,"getCookie",(function(){return o}));var i,n={};i="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),n.uuid=function(e,t){var n,a=i,s=[];if(t=t||a.length,e)for(var o=0;o<e;o++)s[o]=a[0|Math.random()*t];else for(s[8]=s[13]=s[18]=s[23]="-",s[14]="4",o=0;o<36;o++)s[o]||(n=0|16*Math.random(),s[o]=a[19==o?3&n|8:n]);return s.join("")},n.uuidFast=function(){for(var e,t=i,n=new Array(36),a=0,s=0;s<36;s++)8==s||13==s||18==s||23==s?n[s]="-":14==s?n[s]="4":(a<=2&&(a=33554432+16777216*Math.random()|0),e=15&a,a>>=4,n[s]=t[19==s?3&e|8:e]);return n.join("")},n.uuidCompact=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)})).toUpperCase()},n.SHA1=function(e){var t,i,n,a,s,o,r,l,u,d=function(e,t){return e<<t|e>>>32-t},c=function(e){var t,i="";for(t=7;t>=0;t--)i+=(e>>>4*t&15).toString(16);return i},h=new Array(80),p=1732584193,_=4023233417,m=2562383102,f=271733878,v=3285377520,g=(e=function(e){e=e.replace(/\r\n/g,"\n");for(var t="",i=0;i<e.length;i++){var n=e.charCodeAt(i);n<128?t+=String.fromCharCode(n):n>127&&n<2048?(t+=String.fromCharCode(n>>6|192),t+=String.fromCharCode(63&n|128)):(t+=String.fromCharCode(n>>12|224),t+=String.fromCharCode(n>>6&63|128),t+=String.fromCharCode(63&n|128))}return t}(e)).length,y=new Array;for(i=0;i<g-3;i+=4)n=e.charCodeAt(i)<<24|e.charCodeAt(i+1)<<16|e.charCodeAt(i+2)<<8|e.charCodeAt(i+3),y.push(n);switch(g%4){case 0:i=2147483648;break;case 1:i=e.charCodeAt(g-1)<<24|8388608;break;case 2:i=e.charCodeAt(g-2)<<24|e.charCodeAt(g-1)<<16|32768;break;case 3:i=e.charCodeAt(g-3)<<24|e.charCodeAt(g-2)<<16|e.charCodeAt(g-1)<<8|128}for(y.push(i);y.length%16!=14;)y.push(0);for(y.push(g>>>29),y.push(g<<3&4294967295),t=0;t<y.length;t+=16){for(i=0;i<16;i++)h[i]=y[t+i];for(i=16;i<=79;i++)h[i]=d(h[i-3]^h[i-8]^h[i-14]^h[i-16],1);for(a=p,s=_,o=m,r=f,l=v,i=0;i<=19;i++)u=d(a,5)+(s&o|~s&r)+l+h[i]+1518500249&4294967295,l=r,r=o,o=d(s,30),s=a,a=u;for(i=20;i<=39;i++)u=d(a,5)+(s^o^r)+l+h[i]+1859775393&4294967295,l=r,r=o,o=d(s,30),s=a,a=u;for(i=40;i<=59;i++)u=d(a,5)+(s&o|s&r|o&r)+l+h[i]+2400959708&4294967295,l=r,r=o,o=d(s,30),s=a,a=u;for(i=60;i<=79;i++)u=d(a,5)+(s^o^r)+l+h[i]+3395469782&4294967295,l=r,r=o,o=d(s,30),s=a,a=u;p=p+a&4294967295,_=_+s&4294967295,m=m+o&4294967295,f=f+r&4294967295,v=v+l&4294967295}return(u=c(p)+c(_)+c(m)+c(f)+c(v)).toLowerCase()},n.getCookie=function(e){var t,i,n,a=document.cookie.split(";");for(t=0;t<a.length;t++)if(i=a[t].substr(0,a[t].indexOf("=")),n=a[t].substr(a[t].indexOf("=")+1),(i=i.replace(/^\s+|\s+$/g,""))==e)return unescape(n)},n.setCookie=function(e,t,i,n){if(void 0!==n&&!0!==n.disableCookies&&"true"!==n.disableCookies){var a=new Date;a.setDate(a.getDate()+i);var s=escape(t)+(null==i?"":"; expires="+a.toUTCString())+"; Path=/; Secure; SameSite=None";document.cookie=e+"="+s}};var a=n.SHA1,s=(n.uuid,n.uuidCompact,n.uuidFast,n.setCookie),o=n.getCookie})),parcelRequire.register("5oGeJ",(function(module,exports){parcelRequire("lDGnc");var $46MiK=parcelRequire("46MiK"),$6YA9f=parcelRequire("6YA9f"),$27Qiu=parcelRequire("27Qiu"),$7CnHN=parcelRequire("7CnHN"),$eamhc=parcelRequire("eamhc"),$f2DOr=parcelRequire("f2DOr");parcelRequire("6JR1F");var $hGJI5=parcelRequire("hGJI5"),$3DsR2=parcelRequire("3DsR2"),$e06N2=parcelRequire("e06N2"),$cYwG5=parcelRequire("cYwG5"),$66iYL=parcelRequire("66iYL"),$b2uXE=parcelRequire("b2uXE"),$dWtsw=parcelRequire("dWtsw"),$5S9Nn=parcelRequire("5S9Nn"),$5iTqT=parcelRequire("5iTqT"),$lemI3=parcelRequire("lemI3"),Suggest;Suggest=parcelRequire("5rCzW").default;var $3yCUc=parcelRequire("3yCUc"),PublicAPI=$3yCUc.default;window.bluebillywig=window.bluebillywig||{},window.bluebillywig._internal=window.bluebillywig._internal||{};var windowName="Player",Player=window.bluebillywig[windowName]=function(e,t){this._internal=new PlayerHelper(e,t,this)};Player.prototype.destruct=function(){return this._internal&&(this._internal=this._internal.exit()),null};var PlayerHelper=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=!0,a=!1,s=void 0;try{for(var o,r=["embedData","playoutData","publicationData"][Symbol.iterator]();!(n=(o=r.next()).done);n=!0){var l=o.value;"object"==typeof e&&(e[l]=e[l]||{}),"object"==typeof t&&(t[l]=t[l]||{})}}catch(e){a=!0,s=e}finally{try{n||null==r.return||r.return()}finally{if(a)throw s}}$e06N2.setDebugModeFromOpts("object"==typeof e?e:t),$e06N2.debugMode&&performance.mark("PLAYER_INIT");var u=this;if(this._documentReady=!1,this._player=i,this.$wrapper=$parcel$interopDefault($hGJI5)("<div></div>").addClass("bb-media").addClass("bb_wrapper"),this._cmpTimeoutReached=!1,void 0===e)return!1;if("string"==typeof e)this._stringInit(e,t);else{var d=(e=this._preprocessOpts(e)).clipListData&&"true"===e.clipListData.useSuggest||e.requestParams&&"true"===e.requestParams.useSuggest;"function"==typeof Suggest&&d?this._suggest=new Suggest(e,i,(function(i){i?u._objectInit(i,t):u._objectInit(e,t)})):this._objectInit(e,t)}};PlayerHelper.prototype.exit=function(){var e,t=$3DsR2.default.getService(null===(e=this._opts)||void 0===e?void 0:e.playerAliasOrId);if(this.Main&&(this.Main=this.Main.exit()),this._detections=null,this._statsEngine&&(this._statsEngine=this._statsEngine.exit()),this._placement=null,this.$wrapper&&this.$wrapper.remove(),this.$wrapper=null,this.$interactivityWrapper&&this.$interactivityWrapper.remove(),this.$interactivityWrapper=null,this._opts=null,this._playout=null,this._clip=null,this._adUnit=null,this._np&&(this._np=this._np.exit()),this._consentFrameworkSupport&&(this._consentFrameworkSupport=this._consentFrameworkSupport.exit()),t.setInstance("ConsentFrameworkSupport",this._consentFrameworkSupport),t.exit(),window.bluebillywig&&window.bluebillywig.players){var i=window.bluebillywig.players.indexOf(this._player);i>=0&&window.bluebillywig.players.splice(i,1)}return null},PlayerHelper.prototype._preprocessOpts=function(e){if((e=e||{}).embedData&&(!e.scriptLink||-1===e.scriptLink.indexOf(".json?"))){var t=e.embedData.baseurl+"/p/"+e.embedData.playoutSafeName+"/"+e.embedData.contentIndicator+"/"+e.embedData.contentId,i=this._findScript(t,e);i&&i.src&&(e.scriptLink=i.src)}return e.scriptLink&&(e.requestParams=e.requestParams||{},e.requestParams=$cYwG5.getQueryParamsFromUrl(e.scriptLink,e.requestParams)),e.requestParams&&void 0!==e.requestParams.useHostPageQueryString&&"false"!==e.requestParams.useHostPageQueryString&&(e.requestParams=$cYwG5.getQueryParamsFromUrl(document.location.href,e.requestParams)),e.joinedRequestParams=e.requestParams?$parcel$interopDefault($hGJI5).extend({},e.requestParams):{},e.joinedRequestParams=$cYwG5.getQueryParamsFromUrl(document.location.href,e.joinedRequestParams),e},PlayerHelper.prototype._objectInit=function(){var opts=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},overrides=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},_iteratorNormalCompletion=!0,_didIteratorError=!1,_iteratorError=void 0;try{for(var _iterator=["embedData","playoutData","publicationData"][Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=!0){var prop=_step.value;opts[prop]=opts[prop]||{}}}catch(e){_didIteratorError=!0,_iteratorError=e}finally{try{_iteratorNormalCompletion||null==_iterator.return||_iterator.return()}finally{if(_didIteratorError)throw _iteratorError}}$e06N2.setDebugModeFromOpts(opts),$e06N2.default("[Player] _objectInit");var playerId=opts.embedData.baseurl+"/p/"+opts.embedData.playoutSafeName+"/"+opts.embedData.contentIndicator+"/"+opts.embedData.contentId;(null==overrides?void 0:overrides.alias)&&(opts.alias=overrides.alias);var playerAliasOrId=opts.alias||playerId;opts.playerAliasOrId=playerAliasOrId,this._consentFrameworkSupport=new $5S9Nn.default,$3DsR2.default.getService(opts.playerAliasOrId).setInstance("ConsentFrameworkSupport",this._consentFrameworkSupport);var customSkinPath=$cYwG5.getCustomSkinPath(opts);if($e06N2.default("[PlayerHelper] customSkinPath = "+customSkinPath),customSkinPath){var _this=this,customSkinJsonUrl=customSkinPath+"skin.json";$cYwG5.fetchData(customSkinJsonUrl).then((function(data){data?(data&&data.customSkinInfo&&(opts.customSkinInfo=data.customSkinInfo),data&&data.customSkinCss&&(opts.playerCSS=data.customSkinCss.replace(/{{bbCustomSkinPath}}/g,customSkinPath)),data&&data.customSkinHtml&&(opts.playerHTML=data.customSkinHtml),data&&data.customSkinJs&&eval(data.customSkinJs),$e06N2.default("[Player] Done loading custom player. Info: "+data.customSkinInfo),_this._objectPlacement(opts,overrides)):($e06N2.default("[Player] Error loading custom skin url: no data"),_this._objectPlacement(opts,overrides))})).catch((function(e){$e06N2.default("[Player] Error loading custom skin url: "+e),_this._objectPlacement(opts,overrides)}))}else this._objectPlacement(opts,overrides)},PlayerHelper.prototype._stringInit=function(e,t){var i=this,n=function(e){var t=i,n=e;"function"==typeof PublicAPI.prototype[n]&&"_"!==n.charAt(0)&&(i._player[n]=function(){for(var e=arguments.length,i=new Array(e),a=0;a<e;a++)i[a]=arguments[a];var s=t;t.$wrapper.one("bb_player_ready",(function(){s._player[n].apply(s.Main.api,i)}))})},a=this;for(var s in this._player._id=e,window.bluebillywig.players=window.bluebillywig.players||[],window.bluebillywig.players.indexOf(this._player)<0&&window.bluebillywig.players.push(this._player),PublicAPI.prototype)n(s);if((t="object"==typeof t?t:{}).playoutData)try{JSON.stringify(t.playoutData)}catch(e){for(var o in t.playoutData){var r=t.playoutData[o];r&&!0!==r&&!1!==r&&isNaN(parseFloat(r))&&(r=r.toString()),t.playoutData[o]=r}}$cYwG5.fetchData(e).then((function(i){i?(i.scriptLink=e,"object"==typeof(i=a._preprocessOpts(i)).requestParams?$parcel$interopDefault($hGJI5).extend(i.requestParams,t):i.requestParams=t,"object"==typeof t.clipData&&Object.keys(t.clipData).length>0&&(i.clipData=t.clipData),"object"==typeof t.clipListData&&Object.keys(t.clipListdata).length>0&&(i.clipListData=t.clipListData),"object"==typeof t.playoutData&&Object.keys(t.playoutData).length>0&&(i.playoutData=t.playoutData),"object"==typeof t.adServicesData&&Object.keys(t.adServicesData).length>0&&(i.adServicesData=t.adServicesData),a._objectInit(i,t)):$e06N2.default("[Player] Error loading "+e+": no data")})).catch((function(t){$e06N2.default("[Player] Error loading "+e+": "+t)}))},PlayerHelper.prototype._determineNoSkinMode=function(){var e=!1,t=this._opts.playoutData&&this._opts.playoutData.skinBehaviour?this._opts.playoutData.skinBehaviour.toLowerCase():"",i=!!(this._clip&&null!=this._clip.timelines&&this._clip&&this._clip.timelines.length>0),n=this._clip&&"true"==this._clip.shouldPlayInline,a=this._clip&&("true"===this._clip.cubemapVideo||!0===this._clip.cubemapVideo||"360video"==this._clip.subtype),s=this._detections&&this._detections.canPlayInline,o=this._detections&&this._detections.hasTouch,r=this._clip&&"live"==this._clip.sourcetype&&this._detections&&this._detections.isiOS;if(!i&&!a&&!r)switch(t){case"always_on":e=!1;break;case"disable_always":e=!0;break;case"disable_on_touch":o&&(e=!0);break;default:n||s||"video"!=this._clip.mediatype||(e=!0)}return e},PlayerHelper.prototype._objectPlacement=function(e,t){if(this.$wrapper){var i=this;if(i._opts=e,i._playout=e.playoutData,i._clip=e.clipData,i._adUnit=null,e.adSchedulingData&&e.adSchedulingData.scheduleId&&(e.adServicesData=null),e.adServicesData&&$parcel$interopDefault($hGJI5).each(e.adServicesData,(function(e,t){"inarticle"===t.positionType&&(i._adUnit=t)})),i._detections=new $dWtsw.default(i.$wrapper,e),i._setOptionOverrides(e),!i._detections.canControlVolume&&"true"===i._opts.nsiNoPlayer)return!1;if($e06N2.default("[Player] target = "+e.target),i._playout){var n;i.escapedPlayoutLabel=null===(n=i._playout.label)||void 0===n?void 0:n.replace(/[^\w-]/g,"_"),i.escapedContentId=void 0!==i._opts.contentId&&null!=i._opts.contentId?i._opts.contentId.replace(/[^\w-]/g,"_"):"",i._opts.embedData.contentId&&(i.escapedContentId=i._opts.embedData.contentId.replace(/[^\w-]/g,"_")),i._acDivId="bb-ac-"+i.escapedPlayoutLabel+"-"+i.escapedContentId,i._altContentDiv=document.getElementById(i._acDivId),i.$wrapper&&i.$wrapper.attr("id",i._acDivId.replace("-ac-","-wr-"));var a=e.embedData.baseurl+"/p/"+e.embedData.playoutSafeName+"/"+e.embedData.contentIndicator+"/"+e.embedData.contentId,s=this._findScript(a,e);if(s&&s.src&&(e.scriptLink=s.src),("true"==i._playout.iframeBreakout||!0===i._playout.iframeBreakout&&i._detections.inIframe)&&i._attemptIFrameBreakOut())return!1;if(this._placeWrapperSuccess=this._placeWrapper(e),!this._placeWrapperSuccess){if(this._placeWrapperRetryInterval||(this._placeWrapperRetryCount=0,this._placeWrapperRetryInterval=setInterval((function(){(i._placeWrapperRetryCount++>20||i._documentReady)&&i._placeWrapperRetryInterval&&(clearInterval(i._placeWrapperRetryInterval),i._placeWrapperRetryInterval=null),i._placeWrapperSuccess=i._placeWrapper(e),i._placeWrapperSuccess&&i._placeWrapperRetryInterval&&(clearInterval(i._placeWrapperRetryInterval),i._placeWrapperRetryInterval=null)}),500)),this._documentReady){if(i._noStatsMode=e.playoutData&&"true"===e.playoutData.noStats,!i._noStatsMode&&"function"==typeof $b2uXE.default){if(this._statsEngine||(this._statsEngine=new $b2uXE.default(i.$wrapper,e)),i.$wrapper.triggerHandler("bb_error",[{msg:"wrapper placement failed"}]),e.embedData&&"a"===e.embedData.contentIndicator){var o=e.embedData.contentId,r=e.adServicesData&&e.adServicesData.length>0?e.adServicesData[0].positionType:"outstream";i.$wrapper.triggerHandler("bb_adunit_failed",[{adUnitCode:o,adPosition:r}])}if(e.adSchedulingData&&void 0!==e.adSchedulingData.scheduleId){var l=e.adSchedulingData.scheduleId,u=void 0!==e.adSchedulingData.scheduleCode?e.adSchedulingData.scheduleCode:String(l);i.$wrapper.triggerHandler("bb_as_placement_failed",[{adType:"ad-scheduling",adPosition:"vmap",adScheduleCode:u}])}}}else $parcel$interopDefault($hGJI5)(document).ready((function(){i._documentReady||(i._documentReady=!0,i._placeWrapperSuccess||(i._objectPlacement(e,t),i._placeWrapperRetryInterval&&(clearInterval(i._placeWrapperRetryInterval),i._placeWrapperRetryInterval=null)))}));return!1}}i.$wrapper.css({position:"relative"}),i._clip&&i._clip.playoutoverride&&i.$wrapper.css({margin:"auto"});e.playoutData&&e.playoutData.width&&(-1!=e.playoutData.width.indexOf("%")?e.playoutData.width:e.playoutData.width);var d="height:"+(e.playoutData&&e.playoutData.height?-1!=e.playoutData.height.indexOf("%")?e.playoutData.height:e.playoutData.height+"px;":"100%")+";";!e.playoutData||"true"!=e.playoutData.responsiveSizing&&"true"!=e.playoutData.autoHeight||(d=9*i.$wrapper.width()/16,e.playoutData.height=String(d));var c=i.$wrapper?i.$wrapper.attr("id").replace("bb-wr-","bb-iawr-"):"";if(i.$interactivityWrapper=i.$wrapper.wrap('<div class="bb_iawr" id="'+c+'" style="position:relative;display:block;overflow:hidden;font-family:arial, helvetica, sans-serif;"></div>').parent(),i._playout&&"true"==i._playout.screenshotMode&&(i._playout.controlBar="Hide",$parcel$interopDefault($hGJI5)("body").append("<style>.bb-container .bb-error-container{display:none !important;}.bb-state-error .bb-container .bb-bigplaycontainer{opacity:1 !important;} .bb-container {font-size:10px !important;}</style>")),i._noSkinMode=i._determineNoSkinMode(),i._nativeControls="false"!==e.playoutData.nativeControls,i._noSkinMode?(e.noSkinMode=!0,i._nativeControls&&(e.addNativeControls=!0)):(e.noSkinMode=!1,e.addNativeControls=!1),"on"===e.playoutData.forceSkin&&(e.noSkinMode=!1,e.addNativeControls=!1),"off"===e.playoutData.forceSkin&&(e.noSkinMode=!0,e.addNativeControls=!0),e.noSkinMode&&e.clipData&&void 0!==e.clipData.timelineFallback){var h=e.requestParams;return h.placeAfterTarget="true",h.target=i.$wrapper.parent()[0],this._np=new Player(e.embedData.baseurl+"/p/"+e.playoutData.label+"/"+e.embedData.contentIndicator+"/"+e.clipData.timelineFallback+".json",h),i.$wrapper.remove(),!1}i._player.setFlag=function(e,t){PublicAPI.prototype.setFlag(e,t,i.$wrapper)};var p=[];i.$wrapper.on("bb_flagchange.Player",(function(e,t){$parcel$interopDefault($hGJI5).each(t,(function(e,t){p.push([e,t])}))})),i.$wrapper.on("bb_player_ready.Player",(function(){i.$wrapper.off("bb_flagchange.Player");var t=$3DsR2.default.getService(e.playerAliasOrId).getInstance("PublicAPI");$parcel$interopDefault($hGJI5).each(p,(function(e,i){null==t||t.setFlag(i[0],i[1])})),i._pendingPlayoutUpdate&&(null==t||t.updatePlayout(i._pendingPlayoutUpdate)),i._playerReady=!0})),i._initMain(e)}},PlayerHelper.prototype._initMain=function(e){var t=this;if(t._playout&&"true"===t._playout.waitForCmp&&!this._cmpTimeoutReached){var i=parseInt(t._playout.cmpTimeout)||1e4;if($e06N2.default("[PlayerHelper] configured to wait for CMP for max ".concat(i,"ms")),this._consentFrameworkSupport.isRequestInProgress()){var n=setTimeout((function(){t._cmpTimeoutReached=!0,t._initMain(e)}),i),a=function(){n&&(clearTimeout(n),n=null),t._initMain(e)};return void this._consentFrameworkSupport.getCmpData(a,a)}}for(var s in t.Main=new $66iYL.default(t.$wrapper,e),t.Main.api){var o=t.Main.api[s];"function"==typeof o&&"_"!==s.charAt(0)&&(this._player[s]=o.bind(t.Main.api))}window.bluebillywig._internal.Util.triggerEventOnJQueryObject(t.$wrapper,"ready"),"function"==typeof window.bluebillywig.onPlayerAdded&&window.bluebillywig.onPlayerAdded(t.Main.api),t.$wrapper&&t.$wrapper.attr("data-isready","true"),void 0!==e.callback&&""!=e.callback&&"function"==typeof window[e.callback]&&window[e.callback](this._player),t.$wrapper.triggerHandler("bb_player_ready")},PlayerHelper.prototype._setOptionOverrides=function(e){var t=this;if(t._playout){if(t._clip&&t._clip.playoutoverride&&$parcel$interopDefault($hGJI5).each(t._clip.playoutoverride,(function(e,i){t._playout[e]=i})),t._adUnit&&t._adUnit.playout&&$parcel$interopDefault($hGJI5).each(t._adUnit.playout,(function(e,i){t._playout[e]=i})),t._opts.requestParams&&$parcel$interopDefault($hGJI5).each(t._opts.requestParams,(function(e,i){"id"!=e&&"customCode"!=e&&"passbackCode"!=e&&"distanceFromTop"!=e&&"playoutData"!=e&&"clipData"!=e&&"clipListData"!=e&&(void 0===t._playout[e+"__orig__"]&&(t._playout[e+"__orig__"]=t._playout[e]),t._playout[e]=i)})),"true"===this._playout.supportIABConsent){var i=this;this._consentFrameworkSupport.getCmpData((function(e,t){if(i._pendingPlayoutUpdate=$5iTqT.default.ingestConsentIntoPlayout(2===t?e.tcString:e.consentData),i._playerReady){var n=$3DsR2.default.getService(i._opts.playerAliasOrId).getInstance("PublicAPI");n&&(n.updatePlayout(i._pendingPlayoutUpdate),i._pendingPlayoutUpdate=null)}}),$e06N2.default)}void 0!==e.requestParams&&void 0!==e.requestParams.target?e.target=e.requestParams.target:void 0!==t._playout.target&&(e.target=t._playout.target),t._detections.isAndroidNative&&(t._playout.autoPlay="false"),t._detections.canControlVolume||"true"==t._playout.autoMute&&t._detections.canAutoPlayMuted||"true"!=t._playout.nsiNoAutoPlay||(t._playout.autoPlay="false"),"true"!==t._playout.responsiveSizing&&void 0!==t._playout.width||(t._playout.autoHeight="true"),"true"==t._playout.inheritDimensions&&(t._playout.autoHeight="false",t._playout.responsiveSizing="false",t._playout.width="100%",t._playout.height="100%"),t._playout.width&&-1!=t._playout.width.indexOf("%")&&t._playout.height&&-1!=t._playout.height.indexOf("%")&&"true"!=t._playout.autoHeight&&"true"!=t._playout.responsiveSizing&&(t._playout.textAbovePlayer="",t._playout.textCommercialSkip=""),"string"==typeof t._playout.width&&-1==t._playout.width.indexOf("%")&&(t._playout.width=String(parseInt(t._playout.width))),"string"==typeof t._playout.height&&-1==t._playout.height.indexOf("%")&&(t._playout.height=String(parseInt(t._playout.height))),void 0===t._playout.commercialBehaviour&&void 0!==t._playout.commerials&&(t._playout.commercialBehaviour=t._playout.commerials),void 0===t._playout.qualitySelector&&(t._playout.qualitySelector=void 0!==t._playout.hdButton?t._playout.hdButton:"Show"),t._clip&&"mainroll"==t._clip.mediatype&&(t._playout.disableKeyboardControls="true"),void 0===t._playout.bgColor&&(t._playout.bgColor="000000"),void 0===t._playout.skinBehaviour&&(t._playout.skinBehaviour="Auto"),void 0===t._playout.nativeControls&&(t._playout.nativeControls="true"),void 0===t._playout.youTubeHosting&&(t._playout.youTubeHosting="false"),void 0===t._playout.nsiNoAutoPlay&&(t._playout.nsiNoAutoPlay="false"),void 0===t._playout.nsiNoPlayer&&(t._playout.nsiNoPlayer="false"),void 0===t._playout.commercialControls&&(t._playout.commercialControls="automatic"),void 0===t._playout.commercialPauseButton&&(t._playout.commercialPauseButton="false"),void 0===t._playout.commercialMuteButton&&(t._playout.commercialMuteButton="false"),void 0===t._playout.textCommercialSkip&&(t._playout.textCommercialSkip=""),void 0===t._playout.title&&(t._playout.title="Hide"),void 0===t._playout.useDeeplinkForFacebook&&(t._playout.useDeeplinkForFacebook="false"),void 0===t._playout.volumeOrientation&&(t._playout.volumeOrientation="vertical")}},PlayerHelper.prototype._attemptIFrameBreakOut=function(e){var t=null;try{window.top.document.location;$parcel$interopDefault($hGJI5)("iframe",window.top.document).each((function(){this.contentWindow!=window.self&&this.contentWindow!=window.parent||(t=this)}))}catch(e){}if(null!=t){var i=window.top.document.createElement("script");i.type="text/javascript",i.src=this._opts.scriptLink&&this._opts.scriptLink.replace(".json",".js");var n=$parcel$interopDefault($hGJI5)('<div id="'+this._acDivId+'"></div>');return $parcel$interopDefault($hGJI5)(t).before(n),$parcel$interopDefault($hGJI5)(t).hide(),window.top.document.getElementById(this._acDivId).parentNode?window.top.document.getElementById(this._acDivId).parentNode.appendChild(i):window.top.document.getElementsByTagName("HEAD")[0].appendChild(i),!0}return!1},PlayerHelper.prototype._findScript=function(e,t){var i=null;t=t||this._opts||{},this._opts=this._opts||t;var n,a,s=function(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")},o=$46MiK.default(e.match(/([^/]*)(\/p\/[^?#]*)/),3),r=o[1],l=o[2],u=new RegExp(s(r)+"(|\\/cpp\\/[^/]*)"+s(l));null==i&&((null===(n=t.lastScript)||void 0===n||null===(a=n.src)||void 0===a?void 0:a.match(u))?i=t.lastScript:$parcel$interopDefault($hGJI5)("body script").each((function(){var e;(null===(e=$parcel$interopDefault($hGJI5)(this).attr("src"))||void 0===e?void 0:e.match(u))&&(i=this)})));if(null==i){var d="/"+this._opts.embedData.contentIndicator+"/"+this._opts.embedData.contentId+".";t.lastScript&&t.lastScript.src&&-1!==t.lastScript.src.indexOf(d)?i=t.lastScript:$parcel$interopDefault($hGJI5)("body script").each((function(){$parcel$interopDefault($hGJI5)(this).attr("src")&&-1!==$parcel$interopDefault($hGJI5)(this).attr("src").indexOf(d)&&(i=this)}))}return null==i&&$parcel$interopDefault($hGJI5)("body script").each((function(){-1!==this.innerHTML.indexOf(e)&&(i=this)})),i},PlayerHelper.prototype._placeWrapper=function(e){var t=this,i="/p/"+t._playout.label+"/"+t._opts.embedData.contentIndicator+"/"+t._opts.embedData.contentId;if(this._player._id||(this._player._id=i),!this._player._alias&&e.alias&&(this._player._alias=e.alias),void 0!==e.target){var n=$parcel$interopDefault($hGJI5)(e.target);if(n.length)return"script"==n.prop("tagName").toLowerCase()||e.playoutData&&"true"==e.playoutData.placeAfterTarget?t.$wrapper.insertAfter(e.target):$parcel$interopDefault($hGJI5)(e.target).append(t.$wrapper),!0;$e06N2.default('[Player] provided embed target "'+e.target+'" was not found!')}if(void 0!==t._playout&&void 0!==t._playout.placementOption&&"default"!=t._playout.placementOption)return t._placement=new $lemI3.default(t.$wrapper,e),t._placement.inarticleFindSpot();if(null!=t._altContentDiv&&document&&document.body&&document.body.contains(t._altContentDiv))return t.$wrapper.insertAfter(t._altContentDiv),$parcel$interopDefault($hGJI5)(t._altContentDiv).remove(),!0;var a=this._findScript(i,e);return null!=a?(t.$wrapper.insertAfter(a),!0):e.lastScript?(t.$wrapper.insertAfter(e.lastScript),!0):void $e06N2.default("[Player] _placeWrapper player did not get placed!")};var BBPlayerElement=function(e){"use strict";$6YA9f.default(i,e);var t=$27Qiu.default(i);function i(){var e;return $7CnHN.default(this,i),(e=t.call(this))._api=null,e._jsonEmbedUrl=null,e._jsonEmbedUrlOld=null,e._overrides=null,e._overridesOld=null,e}return $eamhc.default(i,[{key:"connectedCallback",value:function(){var e=document.createElement("style");e.appendChild(document.createTextNode("bb-main-player { display:inline-block; width:100%; height:100%; margin: 0; padding: 0; }")),this.appendChild(e),this._connected=!0,this._update()}},{key:"disconnectedCallback",value:function(){this._connected=!1}},{key:"adoptedCallback",value:function(){this._connected=!0,this._update()}},{key:"attributeChangedCallback",value:function(e,t,i){switch(null==e?void 0:e.toLowerCase()){case"jsonembedurl":this._jsonEmbedUrl=i;break;case"overrides":this._overrides=i}this._connected&&this._update()}},{key:"api",get:function(){return this._api}},{key:"_update",value:function(){var e,t,i=this._overrides||{};if("string"==typeof i)try{i=JSON.parse(i)}catch(e){}this._overrides!==this._overridesOld&&(null===(e=this._api)||void 0===e||e.updatePlayout(i),this._overridesOld=this._overrides);this._jsonEmbedUrl!==this._jsonEmbedUrlOld&&(this._jsonEmbedUrlOld&&(this._api=null===(t=this._api)||void 0===t?void 0:t.destruct()),this._jsonEmbedUrl&&(i.target=this,this._api=new Player(this._jsonEmbedUrl,i)),this._jsonEmbedUrlOld=this._jsonEmbedUrl)}}],[{key:"observedAttributes",get:function(){return["overrides","jsonembedurl"]}}]),i}($f2DOr.default(HTMLElement));try{null===customElements||void 0===customElements||customElements.define("bb-main-player",BBPlayerElement)}catch(e){}})),parcelRequire.register("6JR1F",(function(e,t){$parcel$export(e.exports,"default",(function(){return $parcel$interopDefault(parcelRequire("hGJI5"))})),parcelRequire("ePILn");var i=parcelRequire("hGJI5"),n=parcelRequire("cnyBL");window.bluebillywig=window.bluebillywig||{},void 0===window.bluebillywig.jQuery&&(window.bluebillywig.jQuery=$parcel$interopDefault(i)),$parcel$interopDefault(i).extend({bb_sanitize:n.default.$_bb_sanitize}),$parcel$interopDefault(i).fn.extend({bb_htmlSanitized:n.default.fn_bb_htmlSanitized,bb_appendSanitized:n.default.fn_bb_appendSanitized,bb_prependSanitized:n.default.fn_bb_prependSanitized,bb_sanitize:n.default.fn_bb_sanitize})})),parcelRequire.register("ePILn",(function(e,t){$parcel$export(e.exports,"default",(function(){return $parcel$interopDefault(parcelRequire("hGJI5"))})),parcelRequire("lDGnc");var i=parcelRequire("jxjxM"),n=parcelRequire("hGJI5");if(!$parcel$interopDefault(n).fn.bluebillywig){$parcel$interopDefault(n).fn.bluebillywig=function(){return!0};var a=$parcel$interopDefault(n).prototype.trigger;$parcel$interopDefault(n).prototype.trigger=function(e,t){a.apply(this,[e,null==t?void 0:t[0]])},void 0===$parcel$interopDefault(n).prototype.triggerHandler&&($parcel$interopDefault(n).prototype.triggerHandler=$parcel$interopDefault(n).prototype.trigger);var s=$parcel$interopDefault(n).prototype.show;$parcel$interopDefault(n).prototype.show=function(){var e=this;return this.each((function(t,i){("none"===i.style.display||""===i.style.display&&"none"===$parcel$interopDefault(n)(i).css("display"))&&s.apply(e,[$parcel$interopDefault(n)(i)])}))},["mousedown","mousemove","mouseup","click","focus","blur","submit"].forEach((function(e){$parcel$interopDefault(n).prototype[e]||($parcel$interopDefault(n).prototype[e]=function(){return 0===arguments.length?this.trigger(e):this.on.apply(this,[e].concat(Array.prototype.slice.call(arguments)))})}));$parcel$interopDefault(n).extend({trim:function(e){return null==e?void 0:e.toString().trim()},contains:function(e,t){return i.default($parcel$interopDefault(n)(t).parents()).includes(e)},parseXML:function(e){if(!e||"string"!=typeof e)return null;var t=(new DOMParser).parseFromString(e,"text/xml"),n=t.getElementsByTagName("parsererror");if(!t||n.length)throw new Error("Invalid XML: ".concat(n.length?i.default(n[0].childNodes).map((function(e){return e.textContent})).join("\n"):e));return t}})}$parcel$interopDefault(n)((function(){$parcel$interopDefault(n).isReady=!0})),window.jQuery||(window.jQuery=$parcel$interopDefault(n)),window.$||(window.$=$parcel$interopDefault(n))})),parcelRequire.register("hGJI5",(function(e,t){!function(){var t,i=function(e,t){var i=o(t);return e&&(i||s(t)||r(t))?!i&&re.test(e)?t.getElementsByClassName(e.slice(1).replace(/\\/g,"")):!i&&ue.test(e)?t.getElementsByTagName(e):t.querySelectorAll(e):[]},n=function(e){return e instanceof de},a=function(e){return!!e&&e===e.window},s=function(e){return!!e&&9===e.nodeType},o=function(e){return!!e&&11===e.nodeType},r=function(e){return!!e&&1===e.nodeType},l=function(e){return"boolean"==typeof e},u=function(e){return"function"==typeof e},d=function(e){return"string"==typeof e},c=function(e){return void 0===e},h=function(e){return null===e},p=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},_=function(e){if("object"!=typeof e||null===e)return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype},m=function(e,t,i){if(i){for(var n=e.length;n--;)if(!1===t.call(e[n],n,e[n]))return e}else if(_(e))for(var a=Object.keys(e),s=(n=0,a.length);n<s;n++){var o=a[n];if(!1===t.call(e[o],o,e[o]))return e}else for(n=0,s=e.length;n<s;n++)if(!1===t.call(e[n],n,e[n]))return e;return e},f=function(e){return d(e)&&e.match(_e)||[]},v=function(e,t,i){if(r(e)){var n=F.getComputedStyle(e,null);return i?n.getPropertyValue(t)||void 0:n[t]||e.style[t]}},g=function(e,t){return parseInt(v(e,t),10)||0},y=function(e,t){return g(e,"border".concat(t?"Left":"Top","Width"))+g(e,"padding".concat(t?"Left":"Top"))+g(e,"padding".concat(t?"Right":"Bottom"))+g(e,"border".concat(t?"Right":"Bottom","Width"))},b=function(e){return"none"===v(e,"display")},k=function(e,t){var i=e&&(e.matches||e.webkitMatchesSelector||e.msMatchesSelector);return!!i&&!!t&&i.call(e,t)},w=function(e){return d(e)?function(t,i){return k(i,e)}:u(e)?e:n(e)?function(t,i){return e.is(i)}:e?function(t,i){return i===e}:function(){return!1}},$=function(e,t){return t?e.filter(t):e},C=function(e){if(!d(e))return[];if(ve.test(e))return[U(RegExp.$1)];var t=fe.test(e)&&RegExp.$1,i=ge[t]||ge["*"];return i.innerHTML=e,he(i.childNodes).detach().get()},S=function(e,t,i,n){for(var a=[],s=u(t),o=n&&w(n),r=0,l=e.length;r<l;r++)if(s){var d=t(e[r]);d.length&&ie.apply(a,d)}else for(var c=e[r][t];!(null==c||n&&o(-1,c));)a.push(c),c=i?c[t]:null;return a},P=function(e){return e.multiple&&e.options?S(Z.call(e.options,(function(e){return e.selected&&!e.disabled&&!e.parentNode.disabled})),"value"):e.value||""},x=function(e){return e.length>1?Z.call(e,(function(e,t,i){return ee.call(i,e)===t})):e},A=function(e,t,i,n,a){var s,o,r;n?e.insertBefore(t,i?e.firstChild:null):"HTML"===e.nodeName?e.parentNode.replaceChild(t,e):e.parentNode.insertBefore(t,i?e:e.nextSibling),a&&(s=t,o=e.ownerDocument,(r=he(s)).filter("script").add(r.find("script")).each((function(e,t){if(be.test(t.type)&&N.contains(t)){var i=U("script");i.text=t.textContent.replace(ye,""),m(ke,(function(e,n){t[n]&&(i[n]=t[n])})),o.head.insertBefore(i,null),o.head.removeChild(i)}})))},I=function(e,t,i,n,a,s,o,r){return m(e,(function(e,s){m(he(s),(function(e,s){m(he(t),(function(t,o){var r=i?o:s,l=i?e:t;A(i?s:o,l?r.cloneNode(!0):r,n,a,!l)}),r)}),o)}),s),t},T=function(e){return e.replace(we,(function(e,t){return t.toUpperCase()}))},D=function(e){return Ce.test(e)},E=function(e,t){if(void 0===t&&(t=D(e)),t)return e;if(!Se[e]){var i=T(e),n="".concat(i[0].toUpperCase()).concat(i.slice(1)),a="".concat(i," ").concat(xe.join("".concat(n," "))).concat(n).split(" ");m(a,(function(t,i){if(i in Pe)return Se[e]=i,!1}))}return Se[e]},M=function(e,t,i){return void 0===i&&(i=D(e)),i||Ae[e]||!p(t)?t:"".concat(t,"px")},B=function(e,t){try{return e(t)}catch(e){return t}},L=function(e,t){var i=e.dataset[t]||e.dataset[T(t)];return Ie.test(i)?i:B(JSON.parse,i)},R=function(e,t,i){i=B(JSON.stringify,i),e.dataset[T(t)]=i},H=function(e,t){var i=e.documentElement;return Math.max(e.body["scroll".concat(t)],i["scroll".concat(t)],e.body["offset".concat(t)],i["offset".concat(t)],i["client".concat(t)])},q=function(e){return Me[e]||Ee[e]||e},O=function(e){var t=e.split(De);return[t[0],t.slice(1).sort()]},z=function(e){return e[Te]=e[Te]||{}},V=function(e,t){return!t||!ae.call(t,(function(t){return e.indexOf(t)<0}))},j=document,F=window,N=j.documentElement,U=j.createElement.bind(j),W=U("div"),G=U("table"),J=U("tbody"),Q=U("tr"),K=Array.isArray,Y=Array.prototype,X=Y.concat,Z=Y.filter,ee=Y.indexOf,te=Y.map,ie=Y.push,ne=Y.slice,ae=Y.some,se=Y.splice,oe=/^#(?:[\w-]|\\.|[^\x00-\xa0])*$/,re=/^\.(?:[\w-]|\\.|[^\x00-\xa0])*$/,le=/<.+>/,ue=/^\w+$/,de=((t=function(e,t){if(e){if(n(e))return e;var a=e;if(d(e)){var o=t||j;if(!(a=oe.test(e)&&s(o)?o.getElementById(e.slice(1).replace(/\\/g,"")):le.test(e)?C(e):n(o)?o.find(e):d(o)?he(o).find(e):i(e,o)))return}else if(u(e))return this.ready(e);(a.nodeType||a===F)&&(a=[a]),this.length=a.length;for(var r=0,l=this.length;r<l;r++)this[r]=a[r]}}).prototype.init=function(e,i){return new t(e,i)},t),ce=de.prototype,he=ce.init;function pe(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var i=!!l(e[0])&&e.shift(),n=e.shift(),a=e.length;if(!n)return{};if(!a)return pe(i,he,n);for(var s=0;s<a;s++){var o=e[s];for(var r in o)i&&(K(o[r])||_(o[r]))?(n[r]&&n[r].constructor===o[r].constructor||(n[r]=new o[r].constructor),pe(i,n[r],o[r])):n[r]=o[r]}return n}he.fn=he.prototype=ce,ce.length=0,ce.splice=se,"function"==typeof Symbol&&(ce[Symbol.iterator]=Y[Symbol.iterator]),he.isWindow=a,he.isFunction=u,he.isArray=K,he.isNumeric=p,he.isPlainObject=_,he.each=m,ce.each=function(e){return m(this,e)},ce.empty=function(){return this.each((function(e,t){for(;t.firstChild;)t.removeChild(t.firstChild)}))},he.extend=pe,ce.extend=function(e){return pe(ce,e)};var _e=/\S+/g;ce.toggleClass=function(e,t){var i=f(e),n=!c(t);return this.each((function(e,a){r(a)&&m(i,(function(e,i){n?t?a.classList.add(i):a.classList.remove(i):a.classList.toggle(i)}))}))},ce.addClass=function(e){return this.toggleClass(e,!0)},ce.removeAttr=function(e){var t=f(e);return this.each((function(e,i){r(i)&&m(t,(function(e,t){i.removeAttribute(t)}))}))},ce.attr=function(e,t){if(e){if(d(e)){if(arguments.length<2){if(!this[0]||!r(this[0]))return;var i=this[0].getAttribute(e);return h(i)?void 0:i}return c(t)?this:h(t)?this.removeAttr(e):this.each((function(i,n){r(n)&&n.setAttribute(e,t)}))}for(var n in e)this.attr(n,e[n]);return this}},ce.removeClass=function(e){return arguments.length?this.toggleClass(e,!1):this.attr("class","")},ce.hasClass=function(e){return!!e&&ae.call(this,(function(t){return r(t)&&t.classList.contains(e)}))},ce.get=function(e){return c(e)?ne.call(this):this[(e=Number(e))<0?e+this.length:e]},ce.eq=function(e){return he(this.get(e))},ce.first=function(){return this.eq(0)},ce.last=function(){return this.eq(-1)},ce.text=function(e){return c(e)?this.get().map((function(e){return r(e)||(t=e)&&3===t.nodeType?e.textContent:"";var t})).join(""):this.each((function(t,i){r(i)&&(i.textContent=e)}))};var me={};ce.filter=function(e){var t=w(e);return he(Z.call(this,(function(e,i){return t.call(e,i,e)})))},ce.detach=function(e){return $(this,e).each((function(e,t){t.parentNode&&t.parentNode.removeChild(t)})),this};var fe=/^\s*<(\w+)[^>]*>/,ve=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,ge={"*":W,tr:J,td:Q,th:Q,thead:G,tbody:G,tfoot:G};he.parseHTML=C,ce.has=function(e){var t=d(e)?function(t,n){return i(e,n).length}:function(t,i){return i.contains(e)};return this.filter(t)},ce.not=function(e){var t=w(e);return this.filter((function(i,n){return(!d(e)||r(n))&&!t.call(n,i,n)}))},ce.val=function(e){return arguments.length?this.each((function(t,i){var n=i.multiple&&i.options;if(n||qe.test(i.type)){var a=K(e)?te.call(e,String):h(e)?[]:[String(e)];n?m(i.options,(function(e,t){t.selected=a.indexOf(t.value)>=0}),!0):i.checked=a.indexOf(i.value)>=0}else i.value=c(e)||h(e)?"":e})):this[0]&&P(this[0])},ce.is=function(e){var t=w(e);return ae.call(this,(function(e,i){return t.call(e,i,e)}))},he.guid=1,he.unique=x,ce.add=function(e,t){return he(x(this.get().concat(he(e,t).get())))},ce.children=function(e){return $(he(x(S(this,(function(e){return e.children})))),e)},ce.parent=function(e){return $(he(x(S(this,"parentNode"))),e)},ce.index=function(e){var t=e?he(e)[0]:this[0],i=e?this:he(t).parent().children();return ee.call(i,t)},ce.closest=function(e){var t=this.filter(e);if(t.length)return t;var i=this.parent();return i.length?i.closest(e):t},ce.siblings=function(e){return $(he(x(S(this,(function(e){return he(e).parent().children().not(e)})))),e)},ce.find=function(e){return he(x(S(this,(function(t){return i(e,t)}))))};var ye=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,be=/^$|^module$|\/(java|ecma)script/i,ke=["type","src","nonce","noModule"];ce.after=function(){return I(arguments,this,!1,!1,!1,!0,!0)},ce.append=function(){return I(arguments,this,!1,!1,!0)},ce.html=function(e){if(!arguments.length)return this[0]&&this[0].innerHTML;if(c(e))return this;var t=/<script[\s>]/.test(e);return this.each((function(i,n){r(n)&&(t?he(n).empty().append(e):n.innerHTML=e)}))},ce.appendTo=function(e){return I(arguments,this,!0,!1,!0)},ce.wrapInner=function(e){return this.each((function(t,i){var n=he(i),a=n.contents();a.length?a.wrapAll(e):n.append(e)}))},ce.before=function(){return I(arguments,this,!1,!0)},ce.wrapAll=function(e){for(var t=he(e),i=t[0];i.children.length;)i=i.firstElementChild;return this.first().before(t),this.appendTo(i)},ce.wrap=function(e){return this.each((function(t,i){var n=he(e)[0];he(i).wrapAll(t?n.cloneNode(!0):n)}))},ce.insertAfter=function(e){return I(arguments,this,!0,!1,!1,!1,!1,!0)},ce.insertBefore=function(e){return I(arguments,this,!0,!0)},ce.prepend=function(){return I(arguments,this,!1,!0,!0,!0,!0)},ce.prependTo=function(e){return I(arguments,this,!0,!0,!0,!1,!1,!0)},ce.contents=function(){return he(x(S(this,(function(e){return"IFRAME"===e.tagName?[e.contentDocument]:"TEMPLATE"===e.tagName?e.content.childNodes:e.childNodes}))))},ce.next=function(e,t,i){return $(he(x(S(this,"nextElementSibling",t,i))),e)},ce.nextAll=function(e){return this.next(e,!0)},ce.nextUntil=function(e,t){return this.next(t,!0,e)},ce.parents=function(e,t){return $(he(x(S(this,"parentElement",!0,t))),e)},ce.parentsUntil=function(e,t){return this.parents(t,e)},ce.prev=function(e,t,i){return $(he(x(S(this,"previousElementSibling",t,i))),e)},ce.prevAll=function(e){return this.prev(e,!0)},ce.prevUntil=function(e,t){return this.prev(t,!0,e)},ce.map=function(e){return he(X.apply([],te.call(this,(function(t,i){return e.call(t,i,t)}))))},ce.clone=function(){return this.map((function(e,t){return t.cloneNode(!0)}))},ce.offsetParent=function(){return this.map((function(e,t){for(var i=t.offsetParent;i&&"static"===v(i,"position");)i=i.offsetParent;return i||N}))},ce.slice=function(e,t){return he(ne.call(this,e,t))};var we=/-([a-z])/g;ce.ready=function(e){var t=function(){return setTimeout(e,0,he)};return"loading"!==j.readyState?t():j.addEventListener("DOMContentLoaded",t),this},ce.unwrap=function(){return this.parent().each((function(e,t){if("BODY"!==t.tagName){var i=he(t);i.replaceWith(i.children())}})),this},ce.offset=function(){var e=this[0];if(e){var t=e.getBoundingClientRect();return{top:t.top+F.pageYOffset,left:t.left+F.pageXOffset}}},ce.position=function(){var e=this[0];if(e){var t="fixed"===v(e,"position"),i=t?e.getBoundingClientRect():this.offset();if(!t){for(var n=e.ownerDocument,a=e.offsetParent||n.documentElement;(a===n.body||a===n.documentElement)&&"static"===v(a,"position");)a=a.parentNode;if(a!==e&&r(a)){var s=he(a).offset();i.top-=s.top+g(a,"borderTopWidth"),i.left-=s.left+g(a,"borderLeftWidth")}}return{top:i.top-g(e,"marginTop"),left:i.left-g(e,"marginLeft")}}};var $e={class:"className",contenteditable:"contentEditable",for:"htmlFor",readonly:"readOnly",maxlength:"maxLength",tabindex:"tabIndex",colspan:"colSpan",rowspan:"rowSpan",usemap:"useMap"};ce.prop=function(e,t){if(e){if(d(e))return e=$e[e]||e,arguments.length<2?this[0]&&this[0][e]:this.each((function(i,n){n[e]=t}));for(var i in e)this.prop(i,e[i]);return this}},ce.removeProp=function(e){return this.each((function(t,i){delete i[$e[e]||e]}))};var Ce=/^--/,Se={},Pe=W.style,xe=["webkit","moz","ms"],Ae={animationIterationCount:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0};ce.css=function(e,t){if(d(e)){var i=D(e);return e=E(e,i),arguments.length<2?this[0]&&v(this[0],e,i):e?(t=M(e,t,i),this.each((function(n,a){r(a)&&(i?a.style.setProperty(e,t):a.style[e]=t)}))):this}for(var n in e)this.css(n,e[n]);return this};var Ie=/^\s+|\s+$/;ce.data=function(e,t){if(!e){if(!this[0])return;var i={};for(var n in this[0].dataset)i[n]=L(this[0],n);return i}if(d(e))return arguments.length<2?this[0]&&L(this[0],e):c(t)?this:this.each((function(i,n){R(n,e,t)}));for(var n in e)this.data(n,e[n]);return this},m([!0,!1],(function(e,t){m(["Width","Height"],(function(e,i){var n="".concat(t?"outer":"inner").concat(i);ce[n]=function(n){if(this[0])return a(this[0])?t?this[0]["inner".concat(i)]:this[0].document.documentElement["client".concat(i)]:s(this[0])?H(this[0],i):this[0]["".concat(t?"offset":"client").concat(i)]+(n&&t?g(this[0],"margin".concat(e?"Top":"Left"))+g(this[0],"margin".concat(e?"Bottom":"Right")):0)}}))})),m(["Width","Height"],(function(e,t){var i=t.toLowerCase();ce[i]=function(n){if(!this[0])return c(n)?void 0:this;if(!arguments.length)return a(this[0])?this[0].document.documentElement["client".concat(t)]:s(this[0])?H(this[0],t):this[0].getBoundingClientRect()[i]-y(this[0],!e);var o=parseInt(n,10);return this.each((function(t,n){if(r(n)){var a=v(n,"boxSizing");n.style[i]=M(i,o+("border-box"===a?y(n,!e):0))}}))}}));ce.toggle=function(e){return this.each((function(t,i){if(r(i)){var n=b(i);(c(e)?n:e)?(i.style.display=i.___cd||"",b(i)&&(i.style.display=function(e){if(me[e])return me[e];var t=U(e);j.body.insertBefore(t,null);var i=v(t,"display");return j.body.removeChild(t),me[e]="none"!==i?i:"block"}(i.tagName))):n||(i.___cd=v(i,"display"),i.style.display="none")}}))},ce.hide=function(){return this.toggle(!1)},ce.show=function(){return this.toggle(!0)};var Te="___ce",De=".",Ee={focus:"focusin",blur:"focusout"},Me={mouseenter:"mouseover",mouseleave:"mouseout"},Be=/^(mouse|pointer|contextmenu|drag|drop|click|dblclick)/i;function Le(e,t,i,n,a){var s=z(e);if(t)s[t]&&(s[t]=s[t].filter((function(s){var o=s[0],r=s[1],l=s[2];if(a&&l.guid!==a.guid||!V(o,i)||n&&n!==r)return!0;e.removeEventListener(t,l)})));else for(t in s)Le(e,t,i,n,a)}ce.trigger=function(e,t){if(d(e)){var i=O(e),n=i[0],a=i[1],s=q(n);if(!s)return this;var o=Be.test(s)?"MouseEvents":"HTMLEvents";(e=j.createEvent(o)).initEvent(s,!0,!0),e.namespace=a.join(De),e.___ot=n}e.___td=t;var r=e.___ot in Ee;return this.each((function(t,i){r&&u(i[e.___ot])&&(i["___i".concat(e.type)]=!0,i[e.___ot](),i["___i".concat(e.type)]=!1),i.dispatchEvent(e)}))},ce.off=function(e,t,i){var n=this;if(c(e))this.each((function(e,t){(r(t)||s(t)||a(t))&&Le(t)}));else if(d(e))u(t)&&(i=t,t=""),m(f(e),(function(e,o){var l=O(o),u=l[0],d=l[1],c=q(u);n.each((function(e,n){(r(n)||s(n)||a(n))&&Le(n,c,d,t,i)}))}));else for(var o in e)this.off(o,e[o]);return this},ce.remove=function(e){return $(this,e).detach().off(),this},ce.replaceWith=function(e){return this.before(e).remove()},ce.replaceAll=function(e){return he(e).replaceWith(this),this},ce.on=function(e,t,i,n,o){var l=this;if(!d(e)){for(var p in e)this.on(p,t,i,e[p],o);return this}return d(t)||(c(t)||h(t)?t="":c(i)?(i=t,t=""):(n=i,i=t,t="")),u(n)||(n=i,i=void 0),n?(m(f(e),(function(e,u){var d=O(u),c=d[0],h=d[1],p=q(c),_=c in Me,m=c in Ee;p&&l.each((function(e,l){if(r(l)||s(l)||a(l)){var u=function(e){if(e.target["___i".concat(e.type)])return e.stopImmediatePropagation();if((!e.namespace||V(h,e.namespace.split(De)))&&(t||!(m&&(e.target!==l||e.___ot===p)||_&&e.relatedTarget&&l.contains(e.relatedTarget)))){var a=l;if(t){for(var s=e.target;!k(s,t);){if(s===l)return;if(!(s=s.parentNode))return}a=s}Object.defineProperty(e,"currentTarget",{configurable:!0,get:function(){return a}}),Object.defineProperty(e,"delegateTarget",{configurable:!0,get:function(){return l}}),Object.defineProperty(e,"data",{configurable:!0,get:function(){return i}});var r=n.call(a,e,e.___td);o&&Le(l,p,h,t,u),!1===r&&(e.preventDefault(),e.stopPropagation())}};u.guid=n.guid=n.guid||he.guid++,function(e,t,i,n,a){var s=z(e);s[t]=s[t]||[],s[t].push([i,n,a]),e.addEventListener(t,a)}(l,p,h,t,u)}}))})),this):this},ce.one=function(e,t,i,n){return this.on(e,t,i,n,!0)};var Re=/\r?\n/g,He=/file|reset|submit|button|image/i,qe=/radio|checkbox/i;ce.serialize=function(){var e="";return this.each((function(t,i){m(i.elements||[i],(function(t,i){if(!(i.disabled||!i.name||"FIELDSET"===i.tagName||He.test(i.type)||qe.test(i.type)&&!i.checked)){var n=P(i);if(!c(n)){var a=K(n)?n:[n];m(a,(function(t,n){e+=function(e,t){return"&".concat(encodeURIComponent(e),"=").concat(encodeURIComponent(t.replace(Re,"\r\n")))}(i.name,n)}))}}}))})),e.slice(1)},e.exports=he}()})),parcelRequire.register("cnyBL",(function(e,t){$parcel$export(e.exports,"default",(function(){return n})),parcelRequire("6JR1F");var i=parcelRequire("hGJI5"),n={$_bb_sanitize:function(e){var t=!1;if("string"==typeof e||e instanceof String){for(var a,s=$parcel$interopDefault(i).parseHTML(e,null,!1),o=s.length-1;o>=0;o--)(null===(a=s[o].nodeName)||void 0===a?void 0:a.match(/script/i))?s.splice(o,1):n._sanitizeNode_r(s[o]);t=$parcel$interopDefault(i)(s)}else if("object"==typeof e&&null!=e){var r=e instanceof $parcel$interopDefault(i)?e:$parcel$interopDefault(i)(e);r.each((function(e,t){n._sanitizeNode_r(t)})),t=r}else"number"!=typeof e&&isNaN(parseFloat(e))||(t=$parcel$interopDefault(i)(document.createTextNode(parseFloat(e))));return t},fn_bb_htmlSanitized:function(e){if(void 0!==e){if(this.length>0){var t=n.$_bb_sanitize(e);this.empty().append(t||"")}return this}return this.html()},fn_bb_appendSanitized:function(e){return void 0!==e&&this.length>0&&this.append(n.$_bb_sanitize(e)),this},fn_bb_prependSanitized:function(e){return void 0!==e&&this.length>0&&this.prepend(n.$_bb_sanitize(e)),this},fn_bb_sanitize:function(){for(var e=this.length-1;e>=0;e--){var t,i=this.get(e);(null===(t=i.nodeName)||void 0===t?void 0:t.match(/script/i))?this.splice(e,1):n._sanitizeNode_r(i)}return this},_sanitizeNode_r:function(e){if(e){var t;if((null===(t=e.nodeName)||void 0===t?void 0:t.match(/script/i))&&(e.textContent="",e.hasAttributes&&e.hasAttributes()&&e.attributes))for(var i=e.attributes.length-1;i>=0;i--){var a=e.attributes[i];e.removeAttribute(a.name)}if(e.hasAttributes&&e.hasAttributes()&&e.attributes)for(var s=e.attributes.length-1;s>=0;s--){(a=e.attributes[s])&&a.name.match(/^on/i)&&(a.value=""),a&&a.name.match(/^src/i)&&a.value.match(/^javascript:/i)&&(a.value=""),a&&a.name.match(/^src/i)&&a.value.match(/^data:text\/javascript/i)&&(a.value=""),a&&a.name.match(/^href/i)&&a.value.match(/^javascript:/i)&&(a.value=""),a&&a.name.match(/^href/i)&&a.value.match(/^data:text\/javascript/i)&&(a.value=""),a&&a.name.match(/^action/i)&&a.value.match(/^javascript:/i)&&(a.value=""),a&&a.name.match(/^action/i)&&a.value.match(/^data:text\/javascript/i)&&(a.value=""),a&&a.name.match(/^srcdoc/i)&&(a.value="")}if(e.hasChildNodes&&e.hasChildNodes()&&e.childNodes)for(var o=e.childNodes.length-1;o>=0;o--){var r,l=e.childNodes[o];(null===(r=l.nodeName)||void 0===r?void 0:r.match(/script/i))?e.removeChild(l):n._sanitizeNode_r(l)}}}}})),parcelRequire.register("3DsR2",(function(e,t){$parcel$export(e.exports,"default",(function(){return s})),parcelRequire("lDGnc");var i=parcelRequire("7CnHN"),n=parcelRequire("eamhc"),a={},s=function(){"use strict";function e(){i.default(this,e),this._instances={}}return n.default(e,[{key:"exit",value:function(){for(var e in this._instances=null,a)if(a.hasOwnProperty(e)&&a[e]===this){delete a[e];break}return null}},{key:"newId",value:function(){var e;do{e=String(Math.random()).replace(".","")}while(this._instances.hasOwnProperty(e));return e}},{key:"setInstance",value:function(e,t){this._instances[e]=t}},{key:"getInstance",value:function(e){return this._instances[e]}},{key:"insertInstance",value:function(e){var t=this.newId();return this.setInstance(t,e),t}}],[{key:"getService",value:function(t){return a[t]||(a[t]=new e),a[t]}}]),e}()})),parcelRequire.register("cYwG5",(function(module,exports){$parcel$export(module.exports,"Timer",(function(){return Timer})),$parcel$export(module.exports,"getCookie",(function(){return getCookie})),$parcel$export(module.exports,"setCookie",(function(){return setCookie})),$parcel$export(module.exports,"default",(function(){return Util})),$parcel$export(module.exports,"mapPodIndexToPosition",(function(){return mapPodIndexToPosition})),$parcel$export(module.exports,"getQueryParamsFromUrl",(function(){return getQueryParamsFromUrl})),$parcel$export(module.exports,"getQueryParamsFromQueryString",(function(){return getQueryParamsFromQueryString})),$parcel$export(module.exports,"getCustomSkinPath",(function(){return getCustomSkinPath})),$parcel$export(module.exports,"parseSkinGeneration",(function(){return parseSkinGeneration})),$parcel$export(module.exports,"fetchScript",(function(){return fetchScript})),$parcel$export(module.exports,"fetchData",(function(){return fetchData})),$parcel$export(module.exports,"assetNeedsHLSSupport",(function(){return assetNeedsHLSSupport})),$parcel$export(module.exports,"assetNeedsMPDSupport",(function(){return assetNeedsMPDSupport})),$parcel$export(module.exports,"wrapVastUrlInXml",(function(){return wrapVastUrlInXml})),$parcel$export(module.exports,"ALIGN_FLEX_MAP",(function(){return ALIGN_FLEX_MAP})),$parcel$export(module.exports,"createAsyncLock",(function(){return createAsyncLock})),$parcel$export(module.exports,"determineTopMostHostname",(function(){return determineTopMostHostname})),$parcel$export(module.exports,"flattenObject",(function(){return flattenObject})),$parcel$export(module.exports,"quantizeBitrate",(function(){return quantizeBitrate})),$parcel$export(module.exports,"sanitizeCssColor",(function(){return sanitizeCssColor})),$parcel$export(module.exports,"rgbaCssColor",(function(){return rgbaCssColor})),parcelRequire("lDGnc");var $gCaES=parcelRequire("gCaES"),$eLoLc=parcelRequire("eLoLc");parcelRequire("6JR1F");var $hGJI5=parcelRequire("hGJI5"),func;function Timer(e,t){var i,n,a=!1,s=t;this.clear=function(){window.clearTimeout(i),a=!0},this.pause=function(){window.clearTimeout(i),s-=new Date-n},this.resume=function(){n=new Date,window.clearTimeout(i),a||(i=window.setTimeout(e,s))},this.resume()}function getCookie(e){var t,i,n,a=document.cookie.split(";");for(t=0;t<a.length;t++)if(i=a[t].substr(0,a[t].indexOf("=")),n=a[t].substr(a[t].indexOf("=")+1),(i=i.replace(/^\s+|\s+$/g,""))==e)return unescape(n)}function setCookie(e,t,i,n){if(void 0!==n&&!0!==n.disableCookies&&"true"!==n.disableCookies){var a=new Date;a.setDate(a.getDate()+i);var s=escape(t)+(null==i?"":"; expires="+a.toUTCString())+"; Path=/; Secure; SameSite=None";document.cookie=e+"="+s}}void 0===window.bluebillywig&&(window.bluebillywig={}),void 0===window.bluebillywig._internal&&(window.bluebillywig._internal={}),void 0===window.bluebillywig._internal.Util&&(window.bluebillywig._internal.Util=function(){}),"function"!=typeof window.bluebillywig.getPlayerInstance&&(window.bluebillywig.getPlayerInstance=function(e){var t=!1,i=0;if(window.bluebillywig&&window.bluebillywig.players&&window.bluebillywig.players.length){if(1==window.bluebillywig.players.length)return window.bluebillywig.players[0];for(var n=0;n<window.bluebillywig.players.length;n++){if("object"==typeof e){if(window.bluebillywig.players[n]._internal&&window.bluebillywig.players[n]._internal.$wrapper)window.bluebillywig.players[n]._internal.$wrapper[0]==e&&(t=window.bluebillywig.players[n],i++)}else-1!=window.bluebillywig.players[n]._id.indexOf(String(e))&&(t=window.bluebillywig.players[n],i++)}}return 1!=i&&(t=!1),t}),window.bluebillywig._internal.Util.triggerEventOnJQueryObject=function(e,t,i){if(void 0!==i||"ready"==t)e.trigger(t,[i]),void 0!==window.$&&void 0!==window.$.fn&&"string"==typeof window.$.fn.jquery&&window.$(e.get(0)).trigger(t,[i]);else if("function"==typeof Event){var n=new Event(t,{bubbles:!0,cancelable:!1});e.length&&"function"==typeof e.get(0).dispatchEvent&&e.get(0).dispatchEvent(n)}else if("function"==typeof document.createEvent){(n=document.createEvent("Event")).initEvent(t,!0,!1),"function"==typeof e.get(0).dispatchEvent&&e.get(0).dispatchEvent(n)}else if("function"==typeof document.createEventObject){n=document.createEventObject(window.event);"function"==typeof e.get(0).fireEvent?e.get(0).fireEvent(t,n):(e.trigger(t),void 0!==window.$&&window.$(e.get(0)).trigger(t))}else e.trigger(t),void 0!==window.$&&window.$(e.get(0)).trigger(t)},window.bluebillywig._internal.Util.triggerEventOnJQueryObjectFlash=function(e,t,i){void 0!==i?e.trigger(t,[i]):e.trigger(t)},window.bluebillywig._internal.Util.triggerEventOnParentByIdFlash=function(e,t,i){window.bluebillywig._internal.Util.triggerEventOnJQueryObjectFlash($parcel$interopDefault($hGJI5)("#"+e).parent(),t,i)},window.bluebillywig._internal.Util.triggerEventOnParentById=function(e,t,i){window.bluebillywig._internal.Util.triggerEventOnJQueryObject($parcel$interopDefault($hGJI5)("#"+e).parent(),t,i)},window.bluebillywig._internal.Util.setAttributeOnParentById=function(e,t,i){$parcel$interopDefault($hGJI5)("#"+e).parent().attr(t,i)},window.bluebillywig._internal.Util.executeJavascript=function(js){try{return eval(js)}catch(e){"undefined"!=typeof console&&console.log("Notice: there was an error executing the javascript by executeJavascript. Provided JavaScript was: "+js)}},window.bluebillywig._internal.Util.requestAnimFrame=(func=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){return window.setTimeout(e,1e3/60)},func.call?function(e){return func.call(window,e)}:func),window.bluebillywig._internal.Util.cancelRequestAnimFrame=function(e){var t=window.cancelAnimationFrame||window.webkitCancelRequestAnimationFrame||window.mozCancelRequestAnimationFrame||window.oCancelRequestAnimationFrame||window.msCancelRequestAnimationFrame||clearTimeout;return t.call?function(e){return t.call(window,e)}:t}(),window.bluebillywig._internal.Util.languageFromIsoCode=function(e){return{dk:"Dansk",de:"Deutsch",en:"English",es:"Español",fr:"Français",fy:"Frysk",ga:"Irish",it:"Italiano",nl:"Nederlands",pl:"Polski",sv:"Svenska",fi:"Suomi",zh:"中文"}[e=(null==e?void 0:e.toLowerCase())||""]||e||"--"},window.triggerEventOnJQueryObject=window.bluebillywig._internal.Util.triggerEventOnJQueryObject,window.triggerEventOnParentById=window.bluebillywig._internal.Util.triggerEventOnParentById,window.setAttributeOnParentById=window.bluebillywig._internal.Util.setAttributeOnParentById,window.bbExecuteJavascript=window.bluebillywig._internal.Util.executeJavascript;var Util=window.bluebillywig._internal.Util;function mapPodIndexToPosition(e){return e=parseInt(e),Number.isNaN(e)?null:-1===e?"postroll":0===e?"preroll":"midroll"}function getQueryParamsFromUrl(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=e;if("function"==typeof URL)try{var n=new URL(e,"https://bbvms.com");i=n.search}catch(e){}return getQueryParamsFromQueryString(i,t)}function getQueryParamsFromQueryString(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("function"==typeof URLSearchParams){var i=new URLSearchParams(e);i.forEach((function(e,i){t[i]=e}))}else for(var n=/\?([^#]*)/.exec(e),a=(null==n?void 0:n.length)?n[1]:"",s=a.split("&"),o=0,r=s.length;o<r;o++){var l="",u=null;try{var d=s[o].indexOf("=");d>=0?(l=decodeURIComponent(s[o].substring(0,d)),u=decodeURIComponent(s[o].substring(d+1))):l=decodeURIComponent(s[o])}catch(e){}t[l]=u}return t}function getCustomSkinPath(e){var t,i,n,a;if(!e)return null;if("true"===(null===(t=e.requestParams)||void 0===t?void 0:t.forceNativeSkin)||"true"===e.playoutData.forceNativeSkin)return"";var s=null===(i=e.playoutData.publication)||void 0===i?void 0:i.split(".")[1],o=s&&["dev","acc","test"].includes(s)?"-"+s:"";e.previewMode&&["dev","acc","test"].includes(e.previewMode)?o="-"+e.previewMode:"prod"===e.previewMode&&(o="");var r={g6:"https://d1i254ftm0zvcw.cloudfront.net/apps/skins/v6.40.0-old/",g7:"https://cdn".concat(o,".bluebillywig.com/apps/player-skin-g7/latest/"),g8:"https://cdn".concat(o,".bluebillywig.com/apps/player-skin-g8/latest/main/")},l=(null===(n=e.requestParams)||void 0===n?void 0:n.skinGeneration)||e.playoutData.skinGeneration||e.publicationData.skinGeneration,u=null==l?void 0:l.includes("preview"),d=parseSkinGeneration(l),c=(null===(a=e.requestParams)||void 0===a?void 0:a.customSkinPath)||e.playoutData.customSkinPath||e.publicationData.customSkinPath;return c||u&&!(d>8)||(c=r["g"+d]),c||""}function parseSkinGeneration(e){if(!e)return null;var t=parseFloat(e.substring(1));return"number"!=typeof t?null:t}function fetchScript(e,t){var i=new Promise((function(i,n){var a=document.createElement("script");(null==t?void 0:t.async)&&(a.async=t.async),(null==t?void 0:t.type)&&(a.type=t.type),a.onload=function(e){try{document.head.removeChild(a)}catch(e){}i("loaded")},a.onerror=function(e){try{document.head.removeChild(a)}catch(e){}n(new Error("error"))},a.src=null==e?void 0:e.toString();try{document.head.appendChild(a)}catch(e){n(new Error("dom"))}}));if((null==t?void 0:t.timeout)>=0){var n=new Promise((function(e,i){window.setTimeout((function(){i(new Error("timeout"))}),t.timeout)}));return Promise.race([i,n])}return i}function fetchData(e,t){var i=null==e?void 0:e.toString(),n=(null==t?void 0:t.dataType)||"json",a=(null==t?void 0:t.signal)||null,s=new Headers({Accept:"application/json, text/javascript, */*; q=0.01","Sec-Fetch-Dest":"empty","Sec-Fetch-Mode":"cors","Sec-Fetch-Site":"cross-site"}),o=!0,r=!1,l=void 0;if(null==t?void 0:t.extraHeaders)try{for(var u,d=t.extraHeaders[Symbol.iterator]();!(o=(u=d.next()).done);o=!0){var c=u.value;s.set(c[0],c[1])}}catch(e){r=!0,l=e}finally{try{o||null==d.return||d.return()}finally{if(r)throw l}}var h=(null==t?void 0:t.method)||"GET",p=(null==t?void 0:t.cache)||"default",_=null;if(null==t?void 0:t.data)if("GET"===h){var m=new URLSearchParams(t.data);i+=(-1===i.indexOf("?")?"?":"&")+m.toString()}else switch(null==t?void 0:t.contentType){case"multipart/form-data":case"application/x-www-form-urlencoded":var f=new URLSearchParams(t.data);s.set("Content-Type","application/x-www-form-urlencoded"),_=f.toString();break;case"text/plain":s.set("Content-Type","text/plain"),_=t.data;break;default:_=JSON.stringify(t.data)}var v={headers:s,method:h,cache:p,signal:a};return null!==_&&(v.body=_),(null==t?void 0:t.credentials)&&(v.credentials=t.credentials),fetch(i,v).then((function(e){if(e.ok)return"json"===n?e.json():e.text();throw new Error("http error")}))}function assetNeedsHLSSupport(e){if(e&&e.processedSrc){if(e.processedSrc.match(/\.m3u8$/i))return!0;if(e.processedSrc.match(/\.m3u8\?/i))return!0;if(e.processedSrc.match(/\.m3u8&/i))return!0;if(e.processedSrc.match(/\.m3u8#/i))return!0;if(e.processedSrc.match(/\.m3u$/i))return!0;if(e.processedSrc.match(/\.m3u\?/i))return!0;if(e.processedSrc.match(/\.m3u&/i))return!0;if(e.processedSrc.match(/\.m3u#/i))return!0;if(e.processedSrc.match(/\output\=playlist\.m3u8/i))return!0;if(e.processedSrc.match(/\profile\=hls/i))return!0}return!1}function assetNeedsMPDSupport(e){if(e){var t;if(null===(t=e.mediatype)||void 0===t?void 0:t.match(/MPD$/i))return!0;if(e.processedSrc){if(e.processedSrc.match(/\.mpd$/i))return!0;if(e.processedSrc.match(/\.mpd\?/i))return!0;if(e.processedSrc.match(/\.mpd&/i))return!0;if(e.processedSrc.match(/\.mpd#/i))return!0;if(e.processedSrc.match(/\.cmfv$/i))return!0;if(e.processedSrc.match(/\.cmfv\?/i))return!0;if(e.processedSrc.match(/\.cmfv&/i))return!0;if(e.processedSrc.match(/\.cmfv#/i))return!0;if(e.processedSrc.match(/\output\=playlist\.mpd/i))return!0;if(e.processedSrc.match(/\output\=playlist\.cmfv/i))return!0}}return!1}function wrapVastUrlInXml(e){return'<VAST version="2.0"><Ad id="123"><Wrapper><AdSystem>UnwrapMe</AdSystem><VASTAdTagURI><![CDATA['.concat(e,"]]></VASTAdTagURI></Wrapper></Ad></VAST>")}var ALIGN_FLEX_MAP={top:"flex-start",left:"flex-start",center:"center",right:"flex-end",bottom:"flex-end"},createAsyncLock=function(){var e=[],t=!1;return function(i){if("function"==typeof i){var n,a,s,o=new Promise((function(e,t){n=e,a=t})),r=(s=$gCaES.default($parcel$interopDefault($eLoLc).mark((function s(){var o;return $parcel$interopDefault($eLoLc).wrap((function(s){for(;;)switch(s.prev=s.next){case 0:if(s.prev=0,!((o=i())instanceof Promise)){s.next=14;break}return s.prev=3,s.next=6,o;case 6:n(),s.next=12;break;case 9:s.prev=9,s.t0=s.catch(3),a();case 12:s.next=15;break;case 14:n();case 15:s.next=20;break;case 17:s.prev=17,s.t1=s.catch(0),a();case 20:e.length?e.shift()():t=!1;case 21:case"end":return s.stop()}}),s,null,[[0,17],[3,9]])}))),function(){return s.apply(this,arguments)});return t?e.push(r):(t=!0,r()),o}}},determineTopMostHostname=function(){var e;try{e=window.top.location.hostname}catch(n){try{if(window.location.ancestorOrigins){var t=Array.from(window.location.ancestorOrigins).reverse();t.length&&(e=new URL(t[0]).hostname)}if(!e){var i=window;do{try{i.document.referrer&&(e=new URL(i.document.referrer).hostname),i=i.parent}catch(e){break}}while(i!==window.top)}}catch(e){}}return e},flattenObject=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(i=i||{},t&&"object"==typeof e&&null!==e&&0===Object.keys(e).length)return i[t]=Array.isArray(e)?[]:{},i;for(var n in t=t?t+"/":"/",e)Object.prototype.hasOwnProperty.call(e,n)&&(Array.isArray(e[n])||"[object Object]"===Object.prototype.toString.call(e[n])&&null!==e[n]?flattenObject(e[n],t+n,i):i[t+n]=e[n]);return i},quantizeBitrate=function(e){return Math.max(250,500*Math.pow(2,Math.round(Math.log(e/500)/Math.log(2))))},sanitizeCssColor=function(e){e&&e.match(/^#/)&&(e=e.substr(1));var t=e;if(!isNaN(parseInt(e,16))){t="";for(var i=0;!isNaN(parseInt(e.substr(i,1),16));)t+=e.substr(i,1),i++;t=(3===i||6===i)&&"#"+t}return t},rgbaCssColor=function(e,t){var i=e;if(e&&e.match(/^#/)&&(e=e.substr(1)),!isNaN(parseInt(e,16))){var n=[],a=0;if(e.length<=4){for(a=0;!isNaN(parseInt(e.substr(a,1),16));)n[a]=parseInt(e.substr(a,1).repeat(2),16),a++;void 0!==t&&(n[3]=Math.min(Math.max(parseFloat(t),0),1))}else if(e.length<=8){for(a=0;!isNaN(parseInt(e.substr(2*a,2),16));)n[a]=parseInt(e.substr(2*a,2),16),a++;void 0!==t&&(n[3]=Math.min(Math.max(parseFloat(t),0),1))}else n=!1;i=(void 0!==n[3]?"rgba":"rgb")+"("+n.join(",")+")"}return i}})),parcelRequire.register("eLoLc",(function(e,t){var i=function(e){var t,i=function(e,t,i){return Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}),e[t]},n=function(e,t,i,n){var a=t&&t.prototype instanceof s?t:s,o=Object.create(a.prototype),r=new p(n||[]);return o._invoke=d(e,i,r),o},a=function(e,t,i){try{return{type:"normal",arg:e.call(t,i)}}catch(e){return{type:"throw",arg:e}}},s=function(){},o=function(){},r=function(){},l=function(e){["next","throw","return"].forEach((function(t){i(e,t,(function(e){return this._invoke(t,e)}))}))},u=function(e,t){function i(n,s,o,r){var l=a(e[n],e,s);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==typeof d&&v.call(d,"__await")?t.resolve(d.__await).then((function(e){i("next",e,o,r)}),(function(e){i("throw",e,o,r)})):t.resolve(d).then((function(e){u.value=e,o(u)}),(function(e){return i("throw",e,o,r)}))}r(l.arg)}var n;this._invoke=function(e,a){function s(){return new t((function(t,n){i(e,a,t,n)}))}return n=n?n.then(s,s):s()}},d=function(e,t,i){var n=w;return function(s,o){if(n===C)throw new Error("Generator is already running");if(n===S){if("throw"===s)throw o;return m()}for(i.method=s,i.arg=o;;){var r=i.delegate;if(r){var l=D(r,i);if(l){if(l===P)continue;return l}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(n===w)throw n=S,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);n=C;var u=a(e,t,i);if("normal"===u.type){if(n=i.done?S:$,u.arg===P)continue;return{value:u.arg,done:i.done}}"throw"===u.type&&(n=S,i.method="throw",i.arg=u.arg)}}},c=function(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)},h=function(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t},p=function(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(c,this),this.reset(!0)},_=function(e){if(e){var i=e[y];if(i)return i.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,a=function i(){for(;++n<e.length;)if(v.call(e,n))return i.value=e[n],i.done=!1,i;return i.value=t,i.done=!0,i};return a.next=a}}return{next:m}},m=function(){return{value:t,done:!0}},f=Object.prototype,v=f.hasOwnProperty,g="function"==typeof Symbol?Symbol:{},y=g.iterator||"@@iterator",b=g.asyncIterator||"@@asyncIterator",k=g.toStringTag||"@@toStringTag";try{i({},"")}catch(e){i=function(e,t,i){return e[t]=i}}e.wrap=n;var w="suspendedStart",$="suspendedYield",C="executing",S="completed",P={},x={};i(x,y,(function(){return this}));var A=Object.getPrototypeOf,I=A&&A(A(_([])));I&&I!==f&&v.call(I,y)&&(x=I);var T=r.prototype=s.prototype=Object.create(x);function D(e,i){var n=e.iterator[i.method];if(n===t){if(i.delegate=null,"throw"===i.method){if(e.iterator.return&&(i.method="return",i.arg=t,D(e,i),"throw"===i.method))return P;i.method="throw",i.arg=new TypeError("The iterator does not provide a 'throw' method")}return P}var s=a(n,e.iterator,i.arg);if("throw"===s.type)return i.method="throw",i.arg=s.arg,i.delegate=null,P;var o=s.arg;return o?o.done?(i[e.resultName]=o.value,i.next=e.nextLoc,"return"!==i.method&&(i.method="next",i.arg=t),i.delegate=null,P):o:(i.method="throw",i.arg=new TypeError("iterator result is not an object"),i.delegate=null,P)}return o.prototype=r,i(T,"constructor",r),i(r,"constructor",o),o.displayName=i(r,k,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===o||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,r):(e.__proto__=r,i(e,k,"GeneratorFunction")),e.prototype=Object.create(T),e},e.awrap=function(e){return{__await:e}},l(u.prototype),i(u.prototype,b,(function(){return this})),e.AsyncIterator=u,e.async=function(t,i,a,s,o){void 0===o&&(o=Promise);var r=new u(n(t,i,a,s),o);return e.isGeneratorFunction(i)?r:r.next().then((function(e){return e.done?e.value:r.next()}))},l(T),i(T,k,"Generator"),i(T,y,(function(){return this})),i(T,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var i in e)t.push(i);return t.reverse(),function i(){for(;t.length;){var n=t.pop();if(n in e)return i.value=n,i.done=!1,i}return i.done=!0,i}},e.values=_,p.prototype={constructor:p,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(h),!e)for(var i in this)"t"===i.charAt(0)&&v.call(this,i)&&!isNaN(+i.slice(1))&&(this[i]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){var i=function(i,a){return o.type="throw",o.arg=e,n.next=i,a&&(n.method="next",n.arg=t),!!a};if(this.done)throw e;for(var n=this,a=this.tryEntries.length-1;a>=0;--a){var s=this.tryEntries[a],o=s.completion;if("root"===s.tryLoc)return i("end");if(s.tryLoc<=this.prev){var r=v.call(s,"catchLoc"),l=v.call(s,"finallyLoc");if(r&&l){if(this.prev<s.catchLoc)return i(s.catchLoc,!0);if(this.prev<s.finallyLoc)return i(s.finallyLoc)}else if(r){if(this.prev<s.catchLoc)return i(s.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<s.finallyLoc)return i(s.finallyLoc)}}}},abrupt:function(e,t){for(var i=this.tryEntries.length-1;i>=0;--i){var n=this.tryEntries[i];if(n.tryLoc<=this.prev&&v.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var a=n;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var s=a?a.completion:{};return s.type=e,s.arg=t,a?(this.method="next",this.next=a.finallyLoc,P):this.complete(s)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),P},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var i=this.tryEntries[t];if(i.finallyLoc===e)return this.complete(i.completion,i.afterLoc),h(i),P}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var i=this.tryEntries[t];if(i.tryLoc===e){var n=i.completion;if("throw"===n.type){var a=n.arg;h(i)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,i,n){return this.delegate={iterator:_(e),resultName:i,nextLoc:n},"next"===this.method&&(this.arg=t),P}},e}(e.exports);try{regeneratorRuntime=i}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=i:Function("r","regeneratorRuntime = r")(i)}})),parcelRequire.register("66iYL",(function(module,exports){$parcel$export(module.exports,"default",(function(){return Main})),parcelRequire("lDGnc");var $7dai1=parcelRequire("7dai1"),$cbX9C=parcelRequire("cbX9C"),$f1llX=parcelRequire("f1llX"),$lizyb=parcelRequire("lizyb"),$gZPSP=parcelRequire("gZPSP"),$k8gIP=parcelRequire("k8gIP"),$d4HrM=parcelRequire("d4HrM"),$b2uXE=parcelRequire("b2uXE");parcelRequire("6JR1F");var $hGJI5=parcelRequire("hGJI5"),$3DsR2=parcelRequire("3DsR2"),$4p197=parcelRequire("4p197"),$dWtsw=parcelRequire("dWtsw"),$gVYGo=parcelRequire("gVYGo"),$dqB3a=parcelRequire("dqB3a"),$TK3qe=parcelRequire("TK3qe"),$2OJLU=parcelRequire("2OJLU"),$fPU0a=parcelRequire("fPU0a"),$cYwG5=parcelRequire("cYwG5"),$drha2=parcelRequire("drha2"),SharedDataService,CSSFontInjector,SubtitleEngine,TextAlternativeEngine,ContextMenu,CallbackScheduler,$3yCUc=parcelRequire("3yCUc"),PublicAPI=$3yCUc.default,$7I0ej=parcelRequire("7I0ej"),ProgramController=$7I0ej.default,ShortsEngine,MediaBufferManager;ContextMenu=parcelRequire("8AL3v").default,CallbackScheduler=parcelRequire("84IEE").default,SharedDataService=parcelRequire("e8VwD").default,CSSFontInjector=parcelRequire("b58e1").default,TextAlternativeEngine=parcelRequire("hoTj7").default,SubtitleEngine=parcelRequire("1NbW2").default;var Main=function(e,t){var i;if(this.$element=null,this._opts=t,null!=this._opts&&void 0!==this._opts.publicationData&&(this._opts.publicationData.server=this._opts.publicationData.baseurl),this._data=null,null!=this._opts&&(this._data={},void 0!==this._opts.playoutData&&(this._data.playoutData=this._opts.playoutData),void 0!==this._opts.clipData&&(this._data.clipData=this._opts.clipData),void 0!==this._opts.clipListData&&(this._data.clipListData=this._opts.clipListData),void 0!==this._opts.projectData&&(this._data.projectData=this._opts.projectData)),this.api=null,this._playoutController=null,this._programController=null,this._skinController=null,this._soundController=null,this._componentBroker=null,this._sizer=null,this._interactivity=null,this._mouseController=null,this._inViewController=null,this._localStorage=null,this._CSSFontInjector=null,this._statsEngine=null,this._subtitleEngine=null,this._textAlternativeEngine=null,this._$contentLayer=null,this._$errorLayer=null,this._$skinLayer=null,this._$menuLayer=null,this._$contextLayer=null,this._fullscreen=!1,this._skinGeneration=null===(i=$3DsR2.default.getService(this._opts.playerAliasOrId).getInstance("SkinController"))||void 0===i?void 0:i.getGeneration(),this._customSkinPath=$cYwG5.getCustomSkinPath(t),this._customSkinPath_prev=null,this._taggingDisabled="true"===t.playoutData.taggingDisabled,document.querySelectorAll('script[type="application/ld+json"]').length>0&&(this._taggingDisabled=!0),this._isolatePlayer="true"===t.playoutData.isolatePlayer,this._cornerRadius=parseFloat(t.playoutData.cornerRadius)||0,this._disableMediaSourceAdapter="true"===t.playoutData.disableMediaSourceAdapter,t.adServicesData)for(var n=0;n<t.adServicesData.length;n++)t.adServicesData[n].positionType&&t.adServicesData[n].positionType.match(/outstream/i)&&(this._isolatePlayer="true"===t.adServicesData[n].playout.isolatePlayer);if(this._onPlayoutChangedBound=this._onPlayoutChanged.bind(this),this._onSkinCreatedBound=this._onSkinCreated.bind(this),this._onFullscreenChangeBound=this._onFullscreenChange.bind(this),void 0!==e&&null!=e){if(this.$element=e,this.$element.on("bb_playout_changed",this._onPlayoutChangedBound),this.$element.on("bb_skin_created",this._onSkinCreatedBound),this.$element.on("bb_fullscreen_change",this._onFullscreenChangeBound),this._initWrapper()||this._logError("failed to init wrapper"),this._initLayers()||this._logError("failed to init layers"),this._initDetections()||this._logError("failed to init detections"),"function"==typeof SharedDataService&&(this._sharedDataService=new SharedDataService(this.$element,this._opts)),"function"==typeof $fPU0a.default&&(this._localStorage=new $fPU0a.default(this.$element,this._opts)),"function"==typeof CSSFontInjector&&(this._CSSFontInjector=new CSSFontInjector(this.$element,this._opts)),!this._taggingDisabled){var a=this;this._itemScopePromise||(this._itemScopePromise=parcelRequire("7BZDv")),this._itemScopePromise.then((function(e){var t=e.default;"function"==typeof t&&(a._itemScope=new t(a.$element,a._opts))}))}"function"==typeof $4p197.default&&(this._componentBroker=new $4p197.default(this.$element,this._opts)),"function"==typeof $b2uXE.default&&(this._statsEngine=new $b2uXE.default(this.$element,this._opts)),"function"==typeof $k8gIP.default&&(this._eventEngine=new $k8gIP.default(this.$element,this._opts)),"function"==typeof $d4HrM.default&&(this._displayEngine=new $d4HrM.default(this.$element,this._opts)),"function"==typeof CallbackScheduler&&(this._callbackScheduler=new CallbackScheduler(this.$element,this._opts)),"function"==typeof $cbX9C.default&&(this._playoutController=new $cbX9C.default(this.$element,this._opts)),"function"==typeof $lizyb.default&&(this._soundController=new $lizyb.default(this.$element,this._opts)),"function"==typeof ProgramController&&(this._programController=new ProgramController(this.$element,this._opts)),"function"==typeof $drha2.default&&(this._sizer=new $drha2.default(this.$element,this._opts)),"function"==typeof $dqB3a.default&&(this._interactivity=new $dqB3a.default(this.$element,this._opts)),"function"==typeof $TK3qe.default&&(this._mouseController=new $TK3qe.default(this.$element,this._opts)),"function"==typeof $2OJLU.default&&(this._inViewController=new $2OJLU.default(this.$element,this._opts)),"function"==typeof PublicAPI&&(this.api=new PublicAPI(this.$element,this._opts),this._initCmdQueue()),"function"==typeof $gVYGo.default&&(this._executer=new $gVYGo.default(this.$element,this._opts)),"function"==typeof SubtitleEngine&&(this._subtitleEngine=new SubtitleEngine(this.$element,this._opts)),"function"==typeof TextAlternativeEngine&&(this._textAlternativeEngine=new TextAlternativeEngine(this.$element,this._opts)),"function"==typeof $gZPSP.default&&(this._errorEngine=new $gZPSP.default(this.$element,this._opts)),"function"==typeof ContextMenu&&(this._contextMenu=new ContextMenu(this.$element,this._opts)),this._getData(this._dataCallback.bind(this))}};Main.prototype._onFullscreenChange=function(e,t){e.stopPropagation(),void 0!==t&&(this._fullscreen=t.fullscreen),this._setBorderRadiusWrapper(this._cornerRadius),this._checkBackgroundColor()},Main.prototype._onPlayoutChanged=function(ev,payload){if(payload&&payload.playoutData){var pl=payload.playoutData;if(void 0!==pl.customSkinPath||void 0!==pl.skinGeneration){var opts=$7dai1.default({},this._opts);if(opts.playoutData=pl,delete opts.requestParams,this._customSkinPath=$cYwG5.getCustomSkinPath(opts),this._customSkinPath&&this._customSkinPath!==this._customSkinPath_prev){var _this=this;this._customSkinPath_prev=this._customSkinPath;var customSkinJsonUrl=this._customSkinPath+"skin.json";$cYwG5.fetchData(customSkinJsonUrl).then((function(data){var customSkinPath=_this._customSkinPath;data&&data.customSkinInfo&&(_this._opts.customSkinInfo=data.customSkinInfo),data&&data.customSkinCss&&(_this._opts.playerCSS=data.customSkinCss.replace(/{{bbCustomSkinPath}}/g,_this._customSkinPath)),data&&data.customSkinHtml&&(_this._opts.playerHTML=data.customSkinHtml),data&&data.customSkinJs&&eval(data.customSkinJs),_this._initSkin(_this._opts.customSkinInfo)}))}}pl&&void 0!==pl.bgColor&&this._checkBackgroundColor(pl.bgColor),pl&&void 0!==pl.disableMediaSourceAdapter&&(this._disableMediaSourceAdapter="true"===pl.disableMediaSourceAdapter),void 0!==pl.cornerRadius&&(this._cornerRadius=parseFloat(pl.cornerRadius)||0,this._setBorderRadiusWrapper(this._cornerRadius))}},Main.prototype._onSkinCreated=function(e,t){t&&void 0!==t.skinGeneration&&(this._skinGeneration=t.skinGeneration),this._setBorderRadiusWrapper(this._cornerRadius)},Main.prototype.exit=function(){var e,t,i,n,a;return this.$element&&(this.$element.off("bb_playout_changed",this._onPlayoutChangedBound),this.$element.off("bb_skin_created",this._onSkinCreatedBound),this.$element.off("bb_fullscreen_change",this._onFullscreenChangeBound)),null!=this._programController&&(this._programController=this._programController.exit()),null!=this._soundController&&(this._soundController=this._soundController.exit()),null!=this.api&&(this.api=this.api.exit()),this._mouseController=null===(e=this._mouseController)||void 0===e?void 0:e.exit(),this._inViewController=null===(t=this._inViewController)||void 0===t?void 0:t.exit(),this._interactivity=null===(i=this._interactivity)||void 0===i?void 0:i.exit(),this._exitCmdQueue(),null!=this._skinController&&(this._skinController=this._skinController.exit()),null!=this._eventEngine&&(this._eventEngine=this._eventEngine.exit()),this._displayEngine=null===(n=this._displayEngine)||void 0===n?void 0:n.exit(),null!=this._statsEngine&&(this._statsEngine=this._statsEngine.exit()),null!=this._subtitleEngine&&(this._subtitleEngine=this._subtitleEngine.exit()),null!=this._textAlternativeEngine&&(this._textAlternativeEngine=this._textAlternativeEngine.exit()),null!=this._componentBroker&&(this._componentBroker=this._componentBroker.exit()),null!=this._itemScope&&(this._itemScope=this._itemScope.exit()),null!=this._CSSFontInjector&&(this._CSSFontInjector=this._CSSFontInjector.exit()),null!=this._localStorage&&(this._localStorage=this._localStorage.exit()),this._sharedDataService=null===(a=this._sharedDataService)||void 0===a?void 0:a.exit(),this._customSkinPath=null,this._customSkinPath_prev=null,null},Main.prototype._initWrapper=function(){return this._checkBackgroundColor(),this._setBorderRadiusWrapper(this._cornerRadius),!0},Main.prototype._initLayers=function(){return this.$element.empty(),!0===this._opts.noSkinMode?this._$style=$parcel$interopDefault($hGJI5)("<style>.bb_wrapper {cursor: default; margin:0; box-sizing: content-box; } .bb_wrapper div {margin:0;} .bb_wrapper .bb-layer { position: absolute; top:0; left:0; width:100%; height:100%; pointer-events:none !important; overflow:hidden;} .bb_wrapper .bb-layer .bb-head, .bb_wrapper .bb-layer .bb-head video { width:100%; height: 100%; } .bb_wrapper video::-webkit-media-controls-start-playback-button {display: none; -webkit-appearance: none;} .bb_wrapper audio::-webkit-media-controls-start-playback-button {display: none; -webkit-appearance: none;} .bb_wrapper .bb-fitme {pointer-events:none !important;}.bb_wrapper .bb-fitme.bb-head-layer{pointer-events:none !important;} .bb_wrapper .bb-fitme.bb-head-layer .bb-head{pointer-events:auto !important;} .bb_wrapper .bb-fitme.bb-poster-layer img{display:none}</style>").appendTo(this.$element):this._$style=$parcel$interopDefault($hGJI5)("<style>.bb_wrapper {cursor: default; margin:0; box-sizing: content-box; } .bb_wrapper div {margin:0;} .bb_wrapper .bb-layer { position: absolute; top:0; left:0; width:100%; height:100%; pointer-events:none !important; overflow:hidden;} .bb_wrapper .bb-layer .bb-head, .bb_wrapper .bb-layer .bb-head video { width:100%; height: 100%; } .bb_wrapper video::-webkit-media-controls-start-playback-button {display: none; -webkit-appearance: none;} .bb_wrapper audio::-webkit-media-controls-start-playback-button {display: none; -webkit-appearance: none;} .bb_wrapper .bb-fitme {pointer-events:none !important;} .bb_wrapper .bb-fitme.bb-poster-layer {width:100%;height:100%;}</style>").appendTo(this.$element),this._$contentLayer=$parcel$interopDefault($hGJI5)('<div class="bb-layer bb-content-layer"></div>').appendTo(this.$element),this._$commercialLayer=$parcel$interopDefault($hGJI5)('<div class="bb-layer bb-commercial-layer"></div>').appendTo(this.$element),this._$errorLayer=$parcel$interopDefault($hGJI5)('<div class="bb-layer bb-error-layer"></div>').appendTo(this.$element),this._isolatePlayer&&document.body.attachShadow?(this._$skinLayer_host=$parcel$interopDefault($hGJI5)('<div class="bb-layer bb-skin-layer-host"></div>').appendTo(this.$element),this._$skinLayer_root=$parcel$interopDefault($hGJI5)(this._$skinLayer_host[0].attachShadow({mode:"open"})),$parcel$interopDefault($hGJI5)("<style>.bb-layer { position: absolute; top:0; left:0; width:100%; height:100%; pointer-events:none !important; overflow:hidden;} .bb-layer .bb-head, .bb-layer .bb-head video { width:100%; height: 100%; }</style>").appendTo(this._$skinLayer_root)):this._$skinLayer_root=this.$element,this._$skinLayer=$parcel$interopDefault($hGJI5)('<div class="bb-layer bb-skin-layer"></div>').appendTo(this._$skinLayer_root),this._$contextLayer=$parcel$interopDefault($hGJI5)('<div class="bb-layer bb-context-layer"></div>').appendTo(this.$element),this._$contentLayer.append('<div class="bb-fitme bb-head-layer" style="z-index:0;"></div><div class="bb-fitme bb-poster-layer" style="z-index:0;"></div><div class="bb-fitme bb-timeline-layer" style="z-index:0;"></div><div class="bb-layer bb-subtitle-layer" style="z-index:0;"></div>'),this._$commercialLayer.append('<div class="bb-layer bb-placeholder-layer" style="z-index:0;"></div><div class="bb-fitme bb-head-layer" style="z-index:0;"></div><div class="bb-layer bb-cta-layer" style="z-index:0;"></div>'),!0},Main.prototype._initDetections=function(){return $3DsR2.default.getService(this._opts.playerAliasOrId).getInstance("Detections")||(this._detections=new $dWtsw.default(this.$element,this._opts)),!0},Main.prototype._initSkin=function(e){var t={useCustomSkin:!1,containerSelector:".bb-container",css:this._opts.playerCSS,html:this._opts.playerHTML,name:null!=this._opts.playoutData&&void 0!==this._opts.playoutData.skin_name?this._opts.playoutData.skin_name:"default"};return"object"==typeof e&&((t=e).useCustomSkin=!0,t.css=this._opts.playerCSS,t.html=this._opts.playerHTML),this._skinInfo=t,this._skinController&&(this._skinController=this._skinController.exit()),"function"==typeof $f1llX.default&&(this._skinController=new $f1llX.default(this.$element,this._opts,this._skinInfo)),!0},Main.prototype._setBackgroundColor=function(e){(e=$cYwG5.sanitizeCssColor(e))&&("inherit"==e?this.$element.css("background","none"):this.$element.css("background-color",e))},Main.prototype._checkBackgroundColor=function(e){e||(e=this._opts.playoutData.bgColor),this._setBackgroundColor(void 0===e||this._fullscreen?"#000":e)},Main.prototype._setBorderRadiusWrapper=function(e){e&&parseFloat(e)>0&&this._skinGeneration>=8&&!this._fullscreen?(this.$element.css("border-radius",e+"px"),this.$element.find(".bb-layer").css("border-radius",e+"px"),this.$element.find(".bb-head-layer, .bb-poster-layer").css({"border-radius":e+"px",overflow:"hidden"})):(this.$element.css("border-radius","0px"),this.$element.find(".bb-layer").css("border-radius","0px"),this.$element.find(".bb-head-layer, .bb-poster-layer").css({"border-radius":"0px",overflow:"visible"}))},Main.prototype._getData=function(e){if(null==this._data){var t=this,i="".concat(this._opts.embedData.baseurl,"/").concat(this._opts.embedData.playoutIndicator,"/").concat(this._opts.embedData.playoutSafeName,"/").concat(this._opts.embedData.contentIndicator,"/").concat(this._opts.embedData.contentId,".json");$cYwG5.fetchData(i).then((function(i){t._data=i,"function"==typeof e&&e(!0)})).catch((function(i){t._logError("json request failed: "+i),"function"==typeof e&&e(!1)}))}else"function"==typeof e&&e(!0)},Main.prototype._dataCallback=function(e){if(!0!==this._opts.noSkinMode&&(this._initSkin(this._opts.customSkinInfo)||this._logError("failed to init skin")),e){var t;if(void 0!==this._data.playoutData&&this.$element.trigger("bb_playout_loaded",[{playoutData:this._data.playoutData}]),this._opts.cpRuleViolation&&"NotFound"!==this._opts.cpRuleViolation){var i=this._opts.cpRuleViolation.split(/;\s*/);this._data.clipListData?(this._data.clipListData.cpRuleViolations=i,this._data.clipListData.items=[],this._data.projectData=null,this._data.clipData=null):this._data.projectData?(this._data.projectData.cpRuleViolations=i,this._data.projectData.chapters=[],this._data.clipData=null):this._data.clipData&&(this._data.clipData.cpRuleViolations=i,this._data.clipData.assets=[])}var n=(null===(t=this._opts.requestParams)||void 0===t?void 0:t.initiator)||this._opts.initiator||"default",a=void 0,s=this._data&&this._data.playoutData&&this._data.playoutData.t?Main.tToTime(this._data.playoutData.t):void 0;if(void 0!==this._data.clipListData&&null!=this._data.clipListData){"default"===n&&(n="cliplist"),this._data.projectData&&this._data.projectData.type&&this._data.projectData.id?(this._data.projectData.isPrefetch=!0,this._data.clipListData.items||(this._data.clipListData.items=[]),this._data.clipListData.items[0]=this._data.projectData):this._data.clipData&&this._data.clipData.type&&this._data.clipData.id&&(this._data.clipData.isPrefetch=!0,this._data.clipListData.items||(this._data.clipListData.items=[]),this._data.clipListData.items[0]=this._data.clipData);var o=this._opts.usingSuggest;o&&"cliplist"===n&&(n="suggest"),null!=this._programController&&(o?(this._data.clipData.isPrefetch=!0,this._programController.loadData(this._data.clipData,n,a,s)):this._programController.loadData(this._data.clipListData,n,a,s))}else void 0!==this._data.projectData&&null!=this._data.projectData?(void 0!==this._data.clipData&&null!=this._data.clipData&&(this._data.clipData.isPrefetch=!0,this._data.projectData.mainMediaClipData=this._data.clipData),this._programController&&this._programController.loadData(this._data.projectData,n,a,s)):void 0!==this._data.clipData&&null!=this._data.clipData?(this._data.clipData.isPrefetch=!0,null!=this._programController&&this._programController.loadData(this._data.clipData,n,a,s)):null!=this._programController&&this._programController.load(this._opts.embedData.contentId,this._opts.embedData.contentIndicator,n,a,s)}},Main.prototype._initCmdQueue=function(){window.bluebillywig&&void 0===window.bluebillywig.cmd&&(window.bluebillywig.cmd=[]),window.bluebillywig&&void 0===window.bluebillywig._cmdQueueHandlers&&(window.bluebillywig._cmdQueueHandlers=[]),this._cmdQueueHandler=this._handleCmdQueue.bind(this),window.bluebillywig._cmdQueueHandlers.push(this._cmdQueueHandler),window.bluebillywig.cmd.hasOwnProperty("_regularPush")||(window.bluebillywig.cmd._regularPush=window.bluebillywig.cmd.push,window.bluebillywig.cmd.push=function(e){window.bluebillywig.cmd._regularPush(e);for(var t=0;t<window.bluebillywig._cmdQueueHandlers.length;t++){var i=window.bluebillywig._cmdQueueHandlers[t];"function"==typeof i&&i()}}),this._handleCmdQueue()},Main.prototype._handleCmdQueue=function(){for(var e=window.bluebillywig.cmd.length,t=0;t<e;t++)window.bluebillywig.cmd[t]=this._handleCmd(window.bluebillywig.cmd[t]);for(var i=e-1;i>=0;)null===window.bluebillywig.cmd[i]&&window.bluebillywig.cmd.splice(i,1),i--},Main.prototype._handleCmd=function(e){return"function"==typeof e?(e(this.api),null):(null==e?void 0:e.playerId)&&"function"==typeof e.callback&&this.api._playerId===e.playerId||(null==e?void 0:e.playerAlias)&&"function"==typeof e.callback&&this.api._playerAlias===e.playerAlias?(e.callback(this.api),null):((null==e?void 0:e.playerId)||(null==e?void 0:e.playerAlias))&&"function"==typeof e.callback?e:null},Main.prototype._exitCmdQueue=function(){if(this._cmdQueueHandler){if(window.bluebillywig._cmdQueueHandlers&&window.bluebillywig._cmdQueueHandlers.length){var e=window.bluebillywig._cmdQueueHandlers.indexOf(this._cmdQueueHandler);e>=0&&window.bluebillywig._cmdQueueHandlers.splice(e,1)}this._cmdQueueHandler=null}},Main.tToTime=function(e){var t=void 0;if("string"==typeof e&&e.match(/^\d*h?\d*m?[\d.]+s?$/i)&&(e=e.replace(/h|m/gi,":").replace(/s/gi,"")),"string"==typeof e&&e.match(/\:+/)){t=0;for(var i=e.split(/\:+/g).reverse(),n=0;n<i.length;n++)isNaN(parseFloat(i[n]))||(t+=parseFloat(i[n])*Math.pow(60,n))}else t=parseFloat(e);return t},Main.prototype._logError=function(e){this.$element.trigger("bb_error",[{msg:e}])}})),parcelRequire.register("cbX9C",(function(e,t){$parcel$export(e.exports,"default",(function(){return a}));var i=parcelRequire("3DsR2");parcelRequire("6JR1F");var n=parcelRequire("hGJI5"),a=function(e,t){this.$element=null,this._opts=t,void 0!==e&&null!=e&&(this.$element=e,i.default.getService(this._opts.playerAliasOrId).setInstance("PlayoutController",this)),this._originalPlayout=this._opts.playoutData||{},this._resetPlayout={}};a.prototype.exit=function(){return i.default.getService(this._opts.playerAliasOrId).setInstance("PlayoutController",null),this._opts=null,null},a.prototype.loadData=function(e){var t=!1;if(void 0!==e&&null!=e){if(e!==this._opts.playoutData){for(var i in this._opts.playoutData)this._opts.playoutData[i]=void 0;for(var i in e)this._opts.playoutData[i]=e[i]}this.$element.trigger("bb_playout_loaded",[{playoutData:this._opts.playoutData}]),t=!0}return t},a.prototype.updateData=function(e){var t=!1;if(void 0!==e&&null!=e&&(this._opts||(this._opts={}),this._opts.playoutData||(this._opts.playoutData={}),e!==this._opts.playoutData)){for(var i in e){var n=e[i];try{n&&!JSON.stringify(n)&&(n=n.toString())}catch(e){n=null}this._opts.playoutData[i]=n}this.$element.trigger("bb_playout_changed",[{playoutData:e}]),t=!0}return t},a.prototype.setTemporaryPlayoutData=function(e){if(e){var t;for(var i in e)this._resetPlayout[i]=this._originalPlayout&&void 0!==this._originalPlayout[i]?this._originalPlayout[i]:null;return null===(t=this.$element)||void 0===t||t.trigger("bb_playout_changed",[{playoutData:$parcel$interopDefault(n).extend(!0,{},e)}]),!0}return!1},a.prototype.resetTemporaryPlayoutData=function(){var e;this._resetPlayout&&(null===(e=this.$element)||void 0===e||e.trigger("bb_playout_changed",[{playoutData:$parcel$interopDefault(n).extend(!0,{},this._resetPlayout)}]),this._resetPlayout={})}})),parcelRequire.register("f1llX",(function(e,t){$parcel$export(e.exports,"default",(function(){return o})),parcelRequire("6JR1F");var i=parcelRequire("hGJI5"),n=parcelRequire("3DsR2"),a=parcelRequire("e06N2"),s=parcelRequire("6ZAoq"),o=function(e,t,s){if(this.$element=null,this._opts=t,this._eventNS="SkinController"+String(Math.random()).replace(".",""),this._name=(null==s?void 0:s.name)||"default",this._skinType="Skin",this._skin=null,this._$skinLayer=null,this._autoPlayOnlyWithPrerollAdCheckDone=!1,this._autoPlayOrInviewPlay="true"===this._opts.playoutData.autoPlay||"string"==typeof this._opts.playoutData.interactivity_inView&&this._opts.playoutData.interactivity_inView.toLowerCase().indexOf("play")>-1,s&&(this._skinType=s.windowObjectName||"Skin",this._skinCssNS=(s.prefix||"bb-skin-")+Math.random().toString(36).substr(2),this._skinCss=s.css,this._skinHtml=s.html||null,s.containerSelector&&this._skinCss)){var o=new RegExp(s.containerSelector.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")+"(?!(-|_))","g");this._skinCss=this._skinCss.replace(o,"#"+this._skinCssNS)}if(this._backgroundColor="#123456",this._youTubeSkinInMainPhase="true"===this._opts.playoutData.youTubeSkinInMainPhase,this._onPhaseChangeBound=this._onPhaseChange.bind(this),this._onHeadSelectedBound=this._onHeadSelected.bind(this),this._onPlayoutChangedBound=this._onPlayoutChanged.bind(this),e){this.$element=e,n.default.getService(this._opts.playerAliasOrId).setInstance("SkinController",this);var r=this.$element.get(0),l=this.$element.find(".bb-skin-layer-host");(null==l?void 0:l.length)>0&&(r=l[0].shadowRoot);var u=r.querySelector(".bb-skin-layer");if(u&&(this._$skinLayer=$parcel$interopDefault(i)(u)),this._opts.playoutData.autoPlayOnlyWithPrerollAd&&this._autoPlayOrInviewPlay){var d,c=n.default.getService(this._opts.playerAliasOrId).getInstance("Detections");if(c.canAutoPlay||c.canAutoPlayMuted)null===(d=this._$skinLayer)||void 0===d||d.hide(),this._onAutoPlayCheckReadyBind=this._onAutoPlayCheckReady.bind(this),this.$element.on("bb_autoplay_check_ready",this._onAutoPlayCheckReadyBind),this._onCommercialPlayingBind=this._onCommercialPlaying.bind(this),this.$element.on("bb_commercial_playing",this._onCommercialPlayingBind);else this._autoPlayOnlyWithPrerollAdCheckDone=!0}var h=n.default.getService(this._opts.playerAliasOrId);this._api=h.getInstance("PublicAPI"),this._handleWindowedSkin(),this._skin=this._createSkin();var p,_,m=this.getGeneration();if(a.default("[SkinController] getGeneration: "+m),m>=8)null===(p=h.getInstance("ContextMenu"))||void 0===p||p.exit(),null===(_=h.getInstance("AutoPlayNextTimer"))||void 0===_||_.exit();this.$element.on("bb_phase_change",this._onPhaseChangeBound),this.$element.on("bb_head_selected",this._onHeadSelectedBound),this.$element.on("bb_playout_changed",this._onPlayoutChangedBound)}};o.prototype.exit=function(){var e;return this.$element&&(this.$element.off("bb_phase_change",this._onPhaseChangeBound),this.$element.off("bb_head_selected",this._onHeadSelectedBound),this.$element.off("bb_playout_changed",this._onPlayoutChangedBound),this._onCommercialPlayingBind&&(this.$element.off("bb_commercial_playing",this._onCommercialPlayingBind),delete this._onCommercialPlayingBind),this._onAutoPlayCheckReadyBind&&(this.$element.off("bb_autoplay_check_ready",this._onAutoPlayCheckReadyBind),delete this._onAutoPlayCheckReadyBind)),"function"==typeof(null===(e=this._skin)||void 0===e?void 0:e.exit)&&(this._skin=this._skin.exit()),n.default.getService(this._opts.playerAliasOrId).setInstance("SkinController",null),null},o.skins={},o.prototype.show=function(e){var t;if("function"==typeof(null===(t=this._skin)||void 0===t?void 0:t.show))try{this._skin.show(e)}catch(e){}},o.prototype.hide=function(e){var t;if("function"==typeof(null===(t=this._skin)||void 0===t?void 0:t.hide))try{this._skin.hide(e)}catch(e){}},o.prototype.enable=function(e){var t;if("function"==typeof(null===(t=this._skin)||void 0===t?void 0:t.enable))try{this._skin.enable(e)}catch(e){}},o.prototype.disable=function(e){var t;if("function"==typeof(null===(t=this._skin)||void 0===t?void 0:t.disable))try{this._skin.disable(e)}catch(e){}},o.prototype.isVisible=function(e){var t;if("function"==typeof(null===(t=this._skin)||void 0===t?void 0:t.isVisible))try{return this._skin.isVisible(e)}catch(e){}return!1},o.prototype.isEnabled=function(e){var t;if("function"==typeof(null===(t=this._skin)||void 0===t?void 0:t.isEnabled))try{return this._skin.isEnabled(e)}catch(e){}return!1},o.prototype.updateSkinVisibility=function(){this._youTubeSkinInMainPhase&&"MAIN"===this._phase&&"youtube"===this._headType||"true"===this._opts.playoutData.autoPlayOnlyWithPrerollAd&&this._autoPlayOrInviewPlay&&!this._autoPlayOnlyWithPrerollAdCheckDone?this._$skinLayer&&this._$skinLayer.hide():this._$skinLayer&&this._$skinLayer.show()},o.prototype._onPhaseChange=function(e,t){(null==t?void 0:t.phase)&&(this._phase=t.phase,"MAIN"===this._phase&&"true"===this._opts.playoutData.autoPlayOnlyWithPrerollAd&&(this._autoPlayOnlyWithPrerollAdCheckDone=!0),this.updateSkinVisibility())},o.prototype._onHeadSelected=function(e,t){(null==t?void 0:t.headType)&&(this._headType=t.headType?t.headType.toLowerCase():"unknown",this.updateSkinVisibility())},o.prototype._onPlayoutChanged=function(e,t){(null==t?void 0:t.youTubeSkinInMainPhase)&&(this._youTubeSkinInMainPhase="true"===t.youTubeSkinInMainPhase,this.updateSkinVisibility())},o.prototype._onCommercialPlaying=function(e){this._autoPlayOnlyWithPrerollAdCheckDone=!0,this.updateSkinVisibility()},o.prototype._onAutoPlayCheckReady=function(e,t){var i=this;!1===(null==t?void 0:t.canAutoPlayMuted)?(this._autoPlayOnlyWithPrerollAdCheckDone=!0,this.updateSkinVisibility()):setTimeout((function(){i._autoPlayOnlyWithPrerollAdCheckDone=!0,i.updateSkinVisibility()}),500)},o.prototype._handleWindowedSkin=function(){var e,t,i=null===(e=window.bluebillywig)||void 0===e||null===(t=e._internal)||void 0===t?void 0:t[this._skinType],n=i||window[this._skinType];i&&"Skin"===this._skinType?s="function"==typeof n.noConflict?n.noConflict(!0):n:n&&(o.skins[this._skinType]="function"==typeof n.noConflict?n.noConflict(!0):n)},o.prototype.getGeneration=function(e){var t,i;return(null==(e=e||this._skin)||null===(t=e.getInfo)||void 0===t||null===(i=t.call(e))||void 0===i?void 0:i.generation)||7},o.prototype._createSkin=function(){var e;a.default("[SkinController] _createSkin of type: "+this._skinType);var t=null,n=$parcel$interopDefault(i)('<div class="bb-container" style="position:absolute; width:100%; height:100%; top:0; left:0;"></div>');if(this._$skinLayer&&((this._skinCss||this._skinHtml)&&this._$skinLayer.empty(),this._skinCss&&this._$skinLayer.bb_htmlSanitized('<style type="text/css">'+this._skinCss+"</style>"),this._skinHtml&&"\x3c!-- empty --\x3e"!==this._skinHtml?this._$skinLayer.bb_appendSanitized(this._skinHtml):this._$skinLayer.append(n)),"Skin"===this._skinType)"function"==typeof s&&(t=new s(this._api,this._skinCssNS));else"function"==typeof o.skins[this._skinType]&&(t=new o.skins[this._skinType](this._api,this._skinCssNS));return null===t&&n.remove(),null===(e=this.$element)||void 0===e||e.trigger("bb_skin_created",[{skinGeneration:this.getGeneration(t)}]),t}})),parcelRequire.register("6ZAoq",(function(e,t){parcelRequire("lDGnc");var i=parcelRequire("lwy96"),n=parcelRequire("jxjxM"),a=parcelRequire("7CnHN"),s=parcelRequire("eamhc"),o=parcelRequire("46MiK"),r=parcelRequire("7dai1"),l=parcelRequire("6YA9f"),u=parcelRequire("27Qiu"),d=parcelRequire("fBLaW"),c=parcelRequire("1XRpD"),h=parcelRequire("ajyCG"),p=parcelRequire("gCaES"),_=parcelRequire("eLoLc"),m=Object.defineProperty,f=function(e,t,n){return function(e,t,i){t in e?m(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i}(e,"symbol"!=(void 0===t?"undefined":i.default(t))?t+"":t,n),n};function v(){}var g,y=function(e){return e};function b(e){return e()}function k(){return Object.create(null)}function w(e){e.forEach(b)}function $(e){return"function"==typeof e}function C(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function S(e,t){return e===t||(g||(g=document.createElement("a")),g.href=t,e===g.href)}function P(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),a=1;a<t;a++)i[a-1]=arguments[a];var s;if(null==e){var o=!0,r=!1,l=void 0;try{for(var u,d=i[Symbol.iterator]();!(o=(u=d.next()).done);o=!0){var c=u.value;c(void 0)}}catch(e){r=!0,l=e}finally{try{o||null==d.return||d.return()}finally{if(r)throw l}}return v}var h=(s=e).subscribe.apply(s,n.default(i));return h.unsubscribe?function(){return h.unsubscribe()}:h}function x(e){var t;return P(e,(function(e){return t=e}))(),t}function A(e,t,i){e.$$.on_destroy.push(P(t,i))}function I(e,t,i,n){if(e){var a=T(e,t,i,n);return e[0](a)}}function T(e,t,i,n){return e[1]&&n?function(e,t){for(var i in t)e[i]=t[i];return e}(i.ctx.slice(),e[1](n(t))):i.ctx}function D(e,t,i,n){if(e[2]&&n){var a=e[2](n(i));if(void 0===t.dirty)return a;if("object"==typeof a){for(var s=[],o=Math.max(t.dirty.length,a.length),r=0;r<o;r+=1)s[r]=t.dirty[r]|a[r];return s}return t.dirty|a}return t.dirty}function E(e,t,i,n,a,s){if(a){var o=T(t,i,n,s);e.p(o,a)}}function M(e){if(e.ctx.length>32){for(var t=[],i=e.ctx.length/32,n=0;n<i;n++)t[n]=-1;return t}return-1}function B(e){return null!=e?e:""}function L(e){var t="string"==typeof e&&e.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return t?[parseFloat(t[1]),t[2]||"px"]:[e,"px"]}var R,H=("undefined"==typeof window?"undefined":i.default(window))<"u",q=H?function(){return window.performance.now()}:function(){return Date.now()},O=H?function(e){return requestAnimationFrame(e)}:v,z=new Set;function V(e){z.forEach((function(t){t.c(e)||(z.delete(t),t.f())})),0!==z.size&&O(V)}function j(e){var t;return 0===z.size&&O(V),{promise:new Promise((function(i){z.add(t={c:e,f:i})})),abort:function(){z.delete(t)}}}function F(e,t){e.appendChild(t)}function N(e,t,i){var n=U(e);if(!n.getElementById(t)){var a=Y("style");a.id=t,a.textContent=i,G(n,a)}}function U(e){if(!e)return document;var t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function W(e){var t=Y("style");return t.textContent="/* empty */",G(U(e),t),t.sheet}function G(e,t){return F(e.head||e,t),t.sheet}function J(e,t,i){e.insertBefore(t,i||null)}function Q(e){e.parentNode&&e.parentNode.removeChild(e)}function K(e,t){for(var i=0;i<e.length;i+=1)e[i]&&e[i].d(t)}function Y(e){return document.createElement(e)}function X(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function Z(e){return document.createTextNode(e)}function ee(){return Z(" ")}function te(){return Z("")}function ie(e,t,i,n){return e.addEventListener(t,i,n),function(){return e.removeEventListener(t,i,n)}}function ne(e){return function(t){return t.preventDefault(),e.call(this,t)}}function ae(e){return function(t){return t.stopPropagation(),e.call(this,t)}}function se(e,t,i){null==i?e.removeAttribute(t):e.getAttribute(t)!==i&&e.setAttribute(t,i)}function oe(e){return""===e?null:+e}function re(e){return Array.from(e.childNodes)}function le(e,t){t=""+t,e.data!==t&&(e.data=t)}function ue(e,t){e.value=null!=t?t:""}function de(e,t,i,n){null==i?e.style.removeProperty(t):e.style.setProperty(t,i,n?"important":"")}function ce(e,t){"static"===getComputedStyle(e).position&&(e.style.position="relative");var n=Y("iframe");n.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),n.setAttribute("aria-hidden","true"),n.tabIndex=-1;var a,s=function(){if(void 0===R){R=!1;try{("undefined"==typeof window?"undefined":i.default(window))<"u"&&window.parent&&window.parent.document}catch(e){R=!0}}return R}();return s?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",a=ie(window,"message",(function(e){e.source===n.contentWindow&&t()}))):(n.src="about:blank",n.onload=function(){a=ie(n.contentWindow,"resize",t),t()}),F(e,n),function(){(s||a&&n.contentWindow)&&a(),Q(n)}}function he(e,t,i){e.classList.toggle(t,!!i)}function pe(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=i.bubbles,a=void 0!==n&&n,s=i.cancelable,o=void 0!==s&&s;return new CustomEvent(e,{detail:t,bubbles:a,cancelable:o})}function _e(e,t){return new e(t)}var me,fe=new Map,ve=0;function ge(e){for(var t=5381,i=e.length;i--;)t=(t<<5)-t^e.charCodeAt(i);return t>>>0}function ye(e,t){var i={stylesheet:W(t),rules:{}};return fe.set(e,i),i}function be(e,t,i,n,a,s,o){for(var r=arguments.length>7&&void 0!==arguments[7]?arguments[7]:0,l=16.666/n,u="{\n",d=0;d<=1;d+=l){var c=t+(i-t)*s(d);u+=100*d+"%{".concat(o(c,1-c),"}\n")}var h=u+"100% {".concat(o(i,1-i),"}\n}"),p="__svelte_".concat(ge(h),"_").concat(r),_=U(e),m=fe.get(_)||ye(_,e),f=m.stylesheet,v=m.rules;v[p]||(v[p]=!0,f.insertRule("@keyframes ".concat(p," ").concat(h),f.cssRules.length));var g=e.style.animation||"";return e.style.animation="".concat(g?"".concat(g,", "):"").concat(p," ").concat(n,"ms linear ").concat(a,"ms 1 both"),ve+=1,p}function ke(e,t){var i=(e.style.animation||"").split(", "),n=i.filter(t?function(e){return e.indexOf(t)<0}:function(e){return-1===e.indexOf("__svelte")}),a=i.length-n.length;a&&(e.style.animation=n.join(", "),(ve-=a)||O((function(){ve||(fe.forEach((function(e){var t=e.stylesheet.ownerNode;t&&Q(t)})),fe.clear())})))}function we(e){me=e}function $e(){if(!me)throw new Error("Function called outside component initialization");return me}function Ce(e){$e().$$.on_mount.push(e)}function Se(e){$e().$$.on_destroy.push(e)}function Pe(){var e=$e();return function(t,i){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=n.cancelable,s=void 0!==a&&a,o=e.$$.callbacks[t];if(o){var r=pe(t,i,{cancelable:s});return o.slice().forEach((function(t){t.call(e,r)})),!r.defaultPrevented}return!0}}function xe(e,t){return $e().$$.context.set(e,t),t}function Ae(e){return $e().$$.context.get(e)}function Ie(e,t){var i=this,n=e.$$.callbacks[t.type];n&&n.slice().forEach((function(e){return e.call(i,t)}))}var Te=[],De=[],Ee=[],Me=[],Be=Promise.resolve(),Le=!1;function Re(){Le||(Le=!0,Be.then(Fe))}function He(){return Re(),Be}function qe(e){Ee.push(e)}function Oe(e){Me.push(e)}var ze,Ve=new Set,je=0;function Fe(){if(0===je){var e=me;do{try{for(;je<Te.length;){var t=Te[je];je++,we(t),Ne(t.$$)}}catch(e){throw Te.length=0,je=0,e}for(we(null),Te.length=0,je=0;De.length;)De.pop()();for(var i=0;i<Ee.length;i+=1){var n=Ee[i];Ve.has(n)||(Ve.add(n),n())}Ee.length=0}while(Te.length);for(;Me.length;)Me.pop()();Le=!1,Ve.clear(),we(e)}}function Ne(e){if(null!==e.fragment){e.update(),w(e.before_update);var t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(qe)}}function Ue(){return ze||(ze=Promise.resolve()).then((function(){ze=null})),ze}function We(e,t,i){e.dispatchEvent(pe("".concat(t?"intro":"outro").concat(i)))}var Ge,Je=new Set;function Qe(){Ge={r:0,c:[],p:Ge}}function Ke(){Ge.r||w(Ge.c),Ge=Ge.p}function Ye(e,t){e&&e.i&&(Je.delete(e),e.i(t))}function Xe(e,t,i,n){if(e&&e.o){if(Je.has(e))return;Je.add(e),Ge.c.push((function(){Je.delete(e),n&&(i&&e.d(1),n())})),e.o(t)}else n&&n()}var Ze={duration:0};function et(e,t,i){var n,a,s=function(){n&&ke(e,n)},o=function(){var t=l||Ze,i=t.delay,o=void 0===i?0:i,r=t.duration,c=void 0===r?300:r,h=t.easing,p=void 0===h?y:h,_=t.tick,m=void 0===_?v:_,f=t.css;f&&(n=be(e,0,1,c,o,p,f,d++)),m(0,1);var g=q()+o,b=g+c;a&&a.abort(),u=!0,qe((function(){return We(e,!0,"start")})),a=j((function(t){if(u){if(t>=b)return m(1,0),We(e,!0,"end"),s(),u=!1;if(t>=g){var i=p((t-g)/c);m(i,1-i)}}return u}))},r={direction:"in"},l=t(e,i,r),u=!1,d=0,c=!1;return{start:function(){c||(c=!0,ke(e),$(l)?(l=l(r),Ue().then(o)):o())},invalidate:function(){c=!1},end:function(){u&&(s(),u=!1)}}}function tt(e,t,i){var n,a,s=function(){var t=r||Ze,i=t.delay,s=void 0===i?0:i,o=t.duration,d=void 0===o?300:o,c=t.easing,h=void 0===c?y:c,p=t.tick,_=void 0===p?v:p,m=t.css;m&&(n=be(e,1,0,d,s,h,m));var f=q()+s,g=f+d;qe((function(){return We(e,!1,"start")})),"inert"in e&&(a=e.inert,e.inert=!0),j((function(t){if(l){if(t>=g)return _(0,1),We(e,!1,"end"),--u.r||w(u.c),!1;if(t>=f){var i=h((t-f)/d);_(1-i,i)}}return l}))},o={direction:"out"},r=t(e,i,o),l=!0,u=Ge;return u.r+=1,$(r)?Ue().then((function(){r=r(o),s()})):s(),{end:function(t){t&&"inert"in e&&(e.inert=a),t&&r.tick&&r.tick(1,0),l&&(n&&ke(e,n),l=!1)}}}function it(e,t,i,n){var a,s=function(){h&&ke(e,h)},o=function(e,t){var i=e.b-u;return t*=Math.abs(i),{a:u,b:e.b,d:i,duration:t,start:e.start,end:e.start+t,group:e.group}},r=function(t){var i=l||Ze,n=i.delay,r=void 0===n?0:n,p=i.duration,_=void 0===p?300:p,m=i.easing,f=void 0===m?y:m,g=i.tick,b=void 0===g?v:g,k=i.css,$={start:q()+r,b:t};t||($.group=Ge,Ge.r+=1),"inert"in e&&(t?void 0!==a&&(e.inert=a):(a=e.inert,e.inert=!0)),d||c?c=$:(k&&(s(),h=be(e,u,t,_,r,f,k)),t&&b(0,1),d=o($,_),qe((function(){return We(e,t,"start")})),j((function(t){if(c&&t>c.start&&(d=o(c,_),c=null,We(e,d.b,"start"),k&&(s(),h=be(e,u,d.b,d.duration,0,f,l.css))),d)if(t>=d.end)b(u=d.b,1-u),We(e,d.b,"end"),c||(d.b?s():--d.group.r||w(d.group.c)),d=null;else if(t>=d.start){var i=t-d.start;u=d.a+d.d*f(i/d.duration),b(u,1-u)}return!(!d&&!c)})))},l=t(e,i,{direction:"both"}),u=n?0:1,d=null,c=null,h=null;return{run:function(e){$(l)?Ue().then((function(){l=l({direction:e?"in":"out"}),r(e)})):r(e)},end:function(){s(),d=c=null}}}function nt(e){return void 0!==(null==e?void 0:e.length)?e:Array.from(e)}function at(e,t,i){var n=e.$$.props[t];void 0!==n&&(e.$$.bound[n]=i,i(e.$$.ctx[n]))}function st(e){e&&e.c()}function ot(e,t,i){var a=e.$$,s=a.fragment,o=a.after_update;s&&s.m(t,i),qe((function(){var t,i=e.$$.on_mount.map(b).filter($);e.$$.on_destroy?(t=e.$$.on_destroy).push.apply(t,n.default(i)):w(i),e.$$.on_mount=[]})),o.forEach(qe)}function rt(e,t){var i=e.$$;null!==i.fragment&&(function(e){var t=[],i=[];Ee.forEach((function(n){return-1===e.indexOf(n)?t.push(n):i.push(n)})),i.forEach((function(e){return e()})),Ee=t}(i.after_update),w(i.on_destroy),i.fragment&&i.fragment.d(t),i.on_destroy=i.fragment=null,i.ctx=[])}function lt(e,t){-1===e.$$.dirty[0]&&(Te.push(e),Re(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function ut(e,t,i,n,a,s){var o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,r=arguments.length>7&&void 0!==arguments[7]?arguments[7]:[-1],l=me;we(e);var u=e.$$={fragment:null,ctx:[],props:s,update:v,not_equal:a,bound:k(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(l?l.$$.context:[])),callbacks:k(),dirty:r,skip_bound:!1,root:t.target||l.$$.root};o&&o(u.root);var d=!1;if(u.ctx=i?i(e,t.props||{},(function(t,i){for(var n=arguments.length,s=new Array(n>2?n-2:0),o=2;o<n;o++)s[o-2]=arguments[o];var r=s.length?s[0]:i;return u.ctx&&a(u.ctx[t],u.ctx[t]=r)&&(!u.skip_bound&&u.bound[t]&&u.bound[t](r),d&&lt(e,t)),i})):[],u.update(),d=!0,w(u.before_update),u.fragment=!!n&&n(u.ctx),t.target){if(t.hydrate){var c=re(t.target);u.fragment&&u.fragment.l(c),c.forEach(Q)}else u.fragment&&u.fragment.c();t.intro&&Ye(e.$$.fragment),ot(e,t.target,t.anchor),Fe()}we(l)}var dt=function(){function e(){a.default(this,e),f(this,"$$"),f(this,"$$set")}return s.default(e,[{key:"$destroy",value:function(){rt(this,1),this.$destroy=v}},{key:"$on",value:function(e,t){if(!$(t))return v;var i=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return i.push(t),function(){var e=i.indexOf(t);-1!==e&&i.splice(e,1)}}},{key:"$set",value:function(e){var t;this.$$set&&(t=e,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}]),e}();("undefined"==typeof window?"undefined":i.default(window))<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add("4");var ct=[];function ht(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:v,n=function(i){if(C(e,i)&&(e=i,t)){var n=!ct.length,a=!0,s=!1,r=void 0;try{for(var l,u=o[Symbol.iterator]();!(a=(l=u.next()).done);a=!0){var d=l.value;d[1](),ct.push(d,e)}}catch(e){s=!0,r=e}finally{try{a||null==u.return||u.return()}finally{if(s)throw r}}if(n){for(var c=0;c<ct.length;c+=2)ct[c][0](ct[c+1]);ct.length=0}}},a=function(t){n(t(e))},s=function(s){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:v,l=[s,r];return o.add(l),1===o.size&&(t=i(n,a)||v),s(e),function(){o.delete(l),0===o.size&&t&&(t(),t=null)}},o=new Set;return{set:n,update:a,subscribe:s}}function pt(e,t,i){var n=!Array.isArray(e),a=n?[e]:e;if(!a.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");var s=t.length<2;return function(e,t){return{subscribe:ht(e,t).subscribe}}(i,(function(e,i){var o=!1,r=[],l=0,u=v,d=function(){if(!l){u();var a=t(n?r[0]:r,e,i);s?e(a):u=$(a)?a:v}},c=a.map((function(e,t){return P(e,(function(e){r[t]=e,l&=~(1<<t),o&&d()}),(function(){l|=1<<t}))}));return o=!0,d(),function(){w(c),u(),o=!1}}))}var _t={text:"",icon:null};function mt(e){var t=e.toastr;e.setToastr=function(e,i){t.set({text:e,icon:i})},e.resetToastr=function(){t.set(_t)}}function ft(e){var t=e.skinMode,i=e.playPause,n=e.seekTo,a=e.toggleMute,s=e.toggleSubtitles,o=e.setVolume,r=e.getSkinLayer,l=e.setUserActive,u=e.api,d=e.closeAllPanes,c=e.usedEnterForClicking,h=e.currentTime,p=e.callOverrides,_=e.keyPressed,m=e.keyDown,f=e.keyboardShortcutPaneOpen,v=e.livePlayer,g=e.livePlayerWithDvr,y=e.ariaTrappedInMenu,b=e.phase;e.onKeyPressed=function(i){var n,a,s,o,u,d=e.shortcutConfigs.find((function(e){return e.key===i.key})),c=x(p);if((!i.key||(m.set(i.key),m.set(""),"shorts"!==t||!["ArrowLeft","ArrowRight","ArrowUp","ArrowDown"].includes(i.key)))&&(!["ArrowLeft","ArrowRight"].includes(i.key)||!x(v)||x(g))&&(!["ArrowUp","ArrowDown"].includes(i.key)||!x(y))){if(d&&!(null!=(n=null==c?void 0:c[null==d?void 0:d.elementName])&&n.disabled)&&(i.preventDefault(),i.stopPropagation(),null==(a=null==d?void 0:d.action)||a.call(d,i)),["ArrowLeft","ArrowRight"].includes(i.key)){var h=null==(o=null==(s=r())?void 0:s.shadowRoot)?void 0:o.activeElement;if("INPUT"===(null==h?void 0:h.tagName)&&"range"===(null==h?void 0:h.getAttribute("type")))return void l(!0)}["Tab","Enter","Shift"].includes(i.key)||null==(u=i.target)||u.blur()}},e.shortcutConfigs=[{elementName:"playPauseButton",key:" ",keyLabel:"Space",action:function(){_.set("space"),i()}},{elementName:"progressBar",key:"ArrowLeft",keyLabel:"Left",action:function(){n(x(h)-10,!1,!1),_.set("left")}},{elementName:"progressBar",key:"ArrowRight",keyLabel:"Left",action:function(){"EXIT"!==x(b)&&(n(x(h)+10,!1,!1),_.set("right"))}},{elementName:"muteButton",key:"m",keyLabel:"m",action:function(){_.set("m"),a()}},{elementName:"fullscreenButton",key:"f",keyLabel:"f",action:function(){u.toggleFullscreen()}},{elementName:"subtitleButton",key:"c",keyLabel:"c",action:function(){_.set("c"),s()}},{elementName:"volumeSliderHorizontal",key:"ArrowUp",keyLabel:"Up",action:function(){o(Math.max(0,Math.min(1,u.getVolume()+.1))),_.set("up")}},{elementName:"volumeSliderHorizontal",key:"ArrowDown",keyLabel:"Down",action:function(){o(Math.max(0,Math.min(1,u.getVolume()-.1))),_.set("down")}},{key:"?",keyLabel:"Question mark",action:function(){x(f)||d.set(!0),f.set(!x(f))}},{key:">",keyLabel:">",action:function(){e.changePlaybackSpeed("increase"),_.set(">")}},{key:"<",keyLabel:"<",action:function(){e.changePlaybackSpeed("decrease"),_.set("<")}},{key:"Enter",keyLabel:"Enter",action:function(e){var t;c.set(!0);var i=e.composedPath()[0];null!=(t=null==i?void 0:i.className)&&t.includes("button-content")&&(i.click(),null==e||e.preventDefault())}},{key:"Escape",keyLabel:"Escape",action:function(){d.set(!0)}}]}var vt=[.25,.5,.75,1,1.25,1.5,1.75,2],gt=480;function yt(e){var t=function(e){var t;if(e.width&&e.height){var a=e.width,s=e.height,o=x(r),g=Math.floor(a/1e3)*(2/3);if(a>2e3){var y=.5*Math.round((a-250)/1e3/.5);h.set(Math.min(16*y,30)),f.set(6*g)}else a>300?(h.set(Math.min(20,Math.max(14,Math.round(a/64)))),f.set(6)):(h.set(12),f.set(6));a>2e3?(l.set(20*g),d.set(70*g),u.set(48*g),c.set(56*g),p.set(20*g),v.set(126*g*2),m.set(48*g),_.set(-.5)):a>M?(d.set(70),u.set(48),c.set(56),p.set(20),m.set(48),_.set(-.5),a>1008?(l.set(20),v.set(157.5)):(l.set(18),v.set(126))):(c.set(40),m.set(10),a>gt?(l.set(16),u.set(38),d.set(54),p.set(20),_.set(0),v.set(126)):a>300?(l.set(16),u.set(38),d.set(32),p.set(10),_.set(0),v.set(95)):(l.set(14),u.set(38),d.set(32),p.set(10),_.set(0),v.set(48))),a>M?C.set("L"):a>gt?C.set("S"):C.set("XS"),s>M*B?S.set("L"):s>gt*B?S.set("S"):S.set("XS"),w.set(a>600),(null==(t=x(A))?void 0:t.length)>0&&a>600&&i(a),k.set(s>a),b.set(s<400*B),$.set(a<=320),n(s,a),o&&(h.set(Math.min(18,Math.max(12,Math.round(s/3)))),u.set(s),l.set(.33*s))}},i=function(e){if(!x(E)){var t=P(),i=t;if(i){var n=i.getBoundingClientRect().left;setTimeout((function(){t.shadowRoot&&(i=null==t?void 0:t.shadowRoot);var a=i.querySelector(".chapter-button-text");if(a){var s=a.getBoundingClientRect().left,o="".concat(Math.max(s-n,110),"px ");o+=e>M?"- 20px - 8px - 0.5em + 0.3em":"- 10px - 0px - 0.5em + 0.3em",o+=x(D)>=3600?" - 6.3ch":" - 4.6ch",I.set("calc(".concat(o,")"))}}),1)}}},n=function(e,t){e<=M*B||t/e>2.2?g.set(!0):g.set(!1);var i=2.5,n=10;t>gt&&(i=3.5),t>M&&(i=4.5),t<360&&e<360*B&&(n=5),t<300&&e<300*B&&(i=3.5);var a,s=Math.ceil(t/i*B)/e;a=t*(16/9)<e?Math.floor(s*e*1.5):Math.floor(s*e),y.set(Math.floor(a/n)*n)},a=e.playerWidth,s=e.playerHeight,r=e.slimAudioPlayer,l=e.barIconSize,u=e.barButtonSize,d=e.bigIconSize,c=e.shareIconSize,h=e.fontSize,p=e.marginSize,_=e.cancelButtonRight,m=e.toastrMargin,f=e.heightProgressBar,v=e.framePreviewWidthVideo,g=e.useMobileToggleRelated,y=e.relatedDesiredHeight,b=e.screenXXS,k=e.isVerticalPlayer,w=e.showChapterText,$=e.noSizingGapControlBar,C=e.skinSize,S=e.skinSizeHeight,P=e.getSkinLayer,A=e.chapterList,I=e.chapterPanePositionLeft,T=e.chapterClick,D=e.duration,E=e.mountedControlbar,M=767,B=9/16,L=pt([e.playerHeight,e.playerWidth],(function(e){var t=o.default(e,2);return{height:t[0],width:t[1]}}));r.subscribe((function(){var e={height:x(s),width:x(a)};t(e)})),L.subscribe((function(e){t(e)})),T.subscribe((function(){return i(x(a))}))}function bt(e){return"-1"===(null==e?void 0:e.id)||(null==e?void 0:e.label.endsWith("*"))}function kt(e){var t=e>=0;t?e=Math.max(e,0):e*=-1;var i=Math.floor(e/3600),n=Math.floor(e/60)%60,a=Math.floor(e%60);return"".concat(t?"":"-").concat(i?i+":":"").concat(n<10?"0"+n:n,":").concat(a<10?"0":"").concat(a)}function wt(e){var t,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=[],a=Math.max(Math.ceil(e),0),s=Ae(zt),o=s.translate,r=o("day"),l=o("days");if((t=Math.floor(a/86400))>0)return t+" "+(t>1?l:r);if(i){if((t=Math.floor(a/3600)%24)>0)return t+" "+o(t>1?"hours":"hour");if((t=Math.floor(a/60)%60)>0)return t+" "+o(t>1?"minutes":"minute");if((t=Math.floor(a%60))>0)return t+" "+o(t>1?"seconds":"second")}return(t=Math.floor(a/3600)%24)>0&&n.push(("00"+t).slice(-2)),t=Math.floor(a/60)%60,n.push(("00"+t).slice(-2)),t=Math.floor(a%60),n.push(("00"+t).slice(-2)),n.join(":")}function $t(e){var t=e.translate,i=e.setToastr;e.getLengthLabel=function(e,i,n){return"project"===e?t("Interactive"):"image"===e?t("Image"):"live"===n?t("Live").toUpperCase():i?kt(i):null},e.copyToClipBoard=function(e,n){var a,s=function(){i(t("Failed to copy to clipboard"),"error")};if(null!=(a=navigator.clipboard)&&a.writeText)navigator.clipboard.writeText(e).then((function(){return i(n,"success")})).catch((function(){return s()}));else{var o=document.createElement("textarea");o.textContent=e,o.style.position="fixed",document.body.appendChild(o),o.select();try{document.execCommand("copy"),i(n,"success")}catch(e){s()}finally{document.body.removeChild(o)}}}}function Ct(e){return(null==e?void 0:e.offsetWidth)<(null==e?void 0:e.scrollWidth)}var St=300;function Pt(e){var t,i,a,s=function(){de.set(Math.round(Q.getDuration()))},o=function(){var e,t,i,n=(null==(e=Q.getAudioTracks)?void 0:e.call(Q))||[];Ae.set(n),qe.set((null==(i=null==(t=Q.getCurrentAudioTrack)?void 0:t.call(Q))?void 0:i.id)||"-1")},r=function(){var e,t,i,a=(null==(e=Q.getSubtitlesList)?void 0:e.call(Q))||[];null!=a&&a.length&&(a=n.default(a).concat([{id:"-1",languagename:Xe("Off")}])),De.set(a),Ee.set((null==(i=null==(t=Q.getCurrentSubtitle)?void 0:t.call(Q))?void 0:i.id)||"-1")},l=function(){var e=Q.getSharing();Pe.set(e)},u=function(){var e=Q.getDetections();re.set(e)},d=function(){var e=Q.getChapterList();if(e&&null!=e&&e.length&&"commercial"!==x(ie)){var t=parseInt(Q.getDuration()),i=[];e.sort((function(e,t){return e.timeOffset-t.timeOffset})),e.forEach((function(n,a){var s={id:n.id,title:n.title,start:n.timeOffset,startPerc:0===n.timeOffset?0:n.timeOffset/t*100,end:e[a+1]?e[a+1].timeOffset:t,endPerc:e[a+1]?e[a+1].timeOffset/t*100:100,duration:e[a+1]?e[a+1].timeOffset-n.timeOffset:t-n.timeOffset,durationPerc:e[a+1]?(e[a+1].timeOffset-n.timeOffset)/t*100:(t-n.timeOffset)/t*100};i.push(s)})),Ve.set(i)}else Ve.set([])},c=function(){var e=Q.getPhase(),t=x(Ke),i=x(Z);!i&&null!=t&&t.autoPlay&&"INIT"===e&&(Ne.set(!0),setTimeout((function(){Ne.set(!1)}),200)),"EXIT"===e&&X.set(!1),te.set(e),"EXIT"!==e&&"POST"!==e&&ue.set(0),"EXIT"===e&&it.set(!0),"MAIN"===e&&!i&&oe.set(!0),k()},h=function(){at.set(U||F||N)},p=function(){var e;if("shorts"!==K){var t=(null==(e=x(Ke))?void 0:e.controlBarPlacement)||"auto",i=x(ie),n=x(_e);n||"commercial"!==i&&"alwaysfloating"!==t?n||"alwaysmounted"===t?le.set(!0):le.set(x(at)):le.set(!1)}else le.set(!0)},_=function(){var e=["live-audio","live-video"].includes(x(ie));ce.set(e);var t=null==Q?void 0:Q.getClipData(),i=e&&("true"===(null==t?void 0:t.isDVR)||!0===(null==t?void 0:t.isDVR));he.set(i)},m=function(e){e?a||(a=setTimeout((function(){null!==W&&oe.set(!0)}),1e3)):(clearTimeout(a),a=null,W=null,oe.set(!1))},f=function(e){var t,i,a,f,w,S,P;if(Q&&e)switch("timeupdate"!==(null==e?void 0:e.type)&&"progress"!==(null==e?void 0:e.type)&&nt.set(e.type),null==e?void 0:e.type){case"fullscreenchange":$e.set(Q.isFullscreen());break;case"volumechange":L();break;case"progress":xe.set(Q.getBuffered());break;case"seeking":Ce.set(!0);break;case"seeked":Ce.set(!1),m(!1),$();break;case"pause":Z.set(!1);break;case"play":Z.set(!0);break;case"autopause":Z.set(!1),Ne.set(!1),setTimeout((function(){te.set("INIT")})),m(!1);break;case"playing":Z.set(!0),X.set(!0),Ce.set(!1),m(!1),te.set(Q.getPhase()),Ne.set(!1),G||(G=setTimeout((function(){rt.set(!0)}),5e3));break;case"timeupdate":if($(),null===W)return;var A=x(ue);W!==A&&m(!1);break;case"ratechange":we.set(Q.getPlaybackRate());break;case"flagchange":M();break;case"castsessionchange":E();break;case"castsessionstatechange":D();break;case"subtitlelistchange":case"texttracklistchange":r();break;case"subtitlechange":var I=Q.getCurrentSubtitle();Ee.set((null==I?void 0:I.id)||"-1");break;case"subtitlelinechange":Me.set(Q.getCurrentSubtitleLine());break;case"transcriptlistchange":!function(){var e,t,i,a=(null==(e=Q.getTranscriptList)?void 0:e.call(Q))||[];null!=a&&a.length&&(a=n.default(a).concat([{id:"-1",languagename:Xe("Off")}])),Le.set(a),Re.set((null==(i=null==(t=Q.getCurrentTranscript)?void 0:t.call(Q))?void 0:i.id)||"-1")}();break;case"transcriptchange":var B=null==(t=Q.getCurrentTranscript)?void 0:t.call(Q);Re.set((null==B?void 0:B.id)||"-1");break;case"transcriptlinechange":He.set(null==(i=Q.getCurrentTranscriptLine)?void 0:i.call(Q));break;case"durationchange":s(),ve.set(Q.getAdPodInfo());break;case"phasechange":c();break;case"statechange":var R=Q.getState(),H=Q.getPhase();Te.set(R),"idle"===R&&"MAIN"===H?te.set("INIT"):"error"===R?m(!1):"INIT"===H&&(c(),Te.set("idle")),p();break;case"modechange":var q=Q.getMode();ie.set(q),p(),tt();var z=Q.getClipData();null!=z&&z.mediatype&&"mainroll"!==(null==z?void 0:z.mediatype)&&"main"===K&&(_(),k(),d()),"commercial"!==q?ae.set(null):ae.set(Q.getCurrentAd());break;case"adstarted":ne.set(!1);break;case"adskippable":ne.set(!0);break;case"ad_loaded":ae.set(Q.getCurrentAd());break;case"relatedclipschange":!function(){var e,t,i=(null==(e=Q.getRelatedItems)?void 0:e.call(Q))||(null==(t=Q.getRelatedClips)?void 0:t.call(Q))||[];se.set(n.default(i))}();break;case"audiotrackchange":var V=Q.getCurrentAudioTrack();qe.set((null==V?void 0:V.id)||"-1"),Oe.set(bt(V));break;case"audiotracklistchange":o();break;case"loadedclipdata":var J=Q.getClipData();(function(e){var t;Z.set(!1),X.set(!1),j||Ue.set(e),We.set((null==(t=Q.getClipListData)?void 0:t.call(Q))||[]),("video"===(null==e?void 0:e.mediatype)||"audio"===(null==e?void 0:e.mediatype))&&(r(),o()),"mainroll"!==(null==e?void 0:e.mediatype)&&"outstream"!==K&&O&&(l(),Ze(),u(),E(),O=!1),O&&(u(),O=!1),_(),setTimeout((function(){ue.set(0),xe.set(null)}),1),Se.set(!1)})(J),N=(null==(a=null==J?void 0:J.timelines)?void 0:a.length)>0,h();break;case"cliplistchanged":We.set((null==(f=Q.getClipListData)?void 0:f.call(Q))||[]);break;case"loadedprojectdata":var Y=Q.getProjectData();j=!!Y,F=!!(null!=Y&&Y.timelineId||(null==(w=null==Y?void 0:Y.timelines)?void 0:w.length)>0),Y&&Ue.set(Y),h();break;case"assetlistchange":T();break;case"assetselected":var ee=(null==(S=null==Q?void 0:Q.getCurrentAsset)?void 0:S.call(Q))||{};Ie.set(ee),ze.set("180"===ee.bitrate);break;case"changedplayoutdata":var oe=(null==(P=null==Q?void 0:Q.getPlayoutData)?void 0:P.call(Q))||{};et(oe),U=!!(null!=oe&&oe.templateId||null!=oe&&oe.timelineId),h(),p();var re=Q.getClipData();null!=re&&re.mediatype&&"mainroll"!==(null==re?void 0:re.mediatype)&&("main"===K||"shorts"===K)&&(Ze(),l());break;case"waiting":W=x(ue),m(!0);break;case"resized":b();break;case"chapterlistchange":d(),C();break;case"highlightlistchange":!function(){var e=Q.getHighlightList();if(e&&null!=e&&e.length&&"commercial"!==x(ie)){var t=parseInt(Q.getDuration()),i=[];e.sort((function(e,t){return e.timeOffset-t.timeOffset})),e.forEach((function(e){var n={id:e.id,title:e.title,start:e.timeOffset,startPerc:0===e.timeOffset?0:e.timeOffset/t*100};i.push(n)})),je.set(i)}else je.set([])}();break;case"softembargotimerstarted":v();break;case"softembargotimertick":g();break;case"softembargotimercancelled":case"softembargotimerfinished":y()}},v=function(){var e,t=parseInt(null==(e=null==Q?void 0:Q.getWrapper())?void 0:e.getAttribute("data-softembargoenddatets"));ut.set(t>=0?new Date(t):null),g()},g=function(){var e,t=parseFloat(null==(e=null==Q?void 0:Q.getWrapper())?void 0:e.getAttribute("data-softembargoremainingtime"))||0;dt.set(t),t>0&&lt.set(!0)},y=function(){dt.set(0),lt.set(!1)},b=function(){var e,t,i,n,a,s=null==(e=null==Q?void 0:Q.getWrapper)?void 0:e.call(Q),o=null==(t=null==s?void 0:s.getBoundingClientRect)?void 0:t.call(s),r=null==(a=null==(n=null==(i=x(Y))?void 0:i.querySelector(".secondary-col"))?void 0:n.getBoundingClientRect)?void 0:a.call(n),l=null!=r&&r.width&&(null==o?void 0:o.width)>gt?(null==o?void 0:o.width)-(null==r?void 0:r.width):null==o?void 0:o.width;me.set((null==o?void 0:o.height)||0),fe.set(l||0)},k=function(){var e;_e.set(x(me)<=70&&(null==(e=x(ie))?void 0:e.includes("audio")))},w=function(e){z||(C(),function(e){x(ce)?x(he)?(null===e&&(e=Math.round(10*Q.getCurrentTime())/10),s(),pe.set(e>-15)):pe.set(!0):pe.set(!1)}(e),z=setTimeout((function(){z=null}),1e3))},$=function(){var e=Math.round(10*Q.getCurrentTime())/10;ue.set(e),w(e)},C=function(){var e;if(null!=(e=x(Ve))&&e.length){var t=x(ue);x(Ve).some((function(e){return e.start<=t&&e.end>t&&(Fe.set(e),!0)}))}else Fe.set(null)},S=function(i){i.stopPropagation(),R=!0,setTimeout((function(){R=!1}),10);var n=x(ee);clearTimeout(t);var a=(null==i?void 0:i.composedPath())||(null==i?void 0:i.path);null!=a&&a.some((function(e){var t;return null==(t=null==e?void 0:e.classList)?void 0:t.contains("bb-skin-container")}))?null!=a&&a.some((function(e){var t;return null==(t=null==e?void 0:e.classList)?void 0:t.contains("mobile-control")}))?(q&&Date.now()-q<St||(t=setTimeout((function(){e.setUserActive(!n)}),St)),q=Date.now()):(null==a?void 0:a.some((function(e){var t,i;return(null==(t=null==e?void 0:e.classList)?void 0:t.contains("play-pause-button"))||(null==(i=null==e?void 0:e.classList)?void 0:i.contains("big-play-pause-button"))})))?setTimeout((function(){e.setUserActive(!1)}),350):e.setUserActive(!0):e.setUserActive(!n)},P=function(){R||V||(e.setUserActive(!0),V=setTimeout((function(){V=null}),250))},A=function(t){setTimeout((function(){var i,n,a=null==(n=null==(i=e.getSkinLayer())?void 0:i.shadowRoot)?void 0:n.activeElement;a&&ge.set(!0),a&&["Tab","Enter"].includes(t.key)&&e.setUserActive(!0),!a&&["Tab"].includes(t.key)&&ge.set(!1)}))},I=function(){e.setUserActive(!1)},T=function(){var e,t;ye.set((null==(t=null==(e=null==Q?void 0:Q.getAssets)?void 0:e.call(Q))?void 0:t.sort((function(e,t){return parseFloat(t.bitrate)-parseFloat(e.bitrate)})))||[])},D=function(){var e,t=Q.getCastSession();Je.set(null==(e=null==t?void 0:t.getSessionState)?void 0:e.call(t))},E=function(){var e=Q.getCastSession();Qe.set(e),D()},M=function(){var e=Q.getDetections();(function(e,t){if(e&&t){var i=x(re);i&&i.isSafari?Ge.set("AirPlay"):i&&i.isChrome?Ge.set(i.isiOS?"AirPlay":"ChromeCast"):Ge.set(i.isAndroid?"ChromeCast":"AirPlay")}else t?Ge.set("ChromeCast"):Ge.set("AirPlay")})(e.canAirPlay,e.canChromeCast),re.set(e)},B=function(){var e=Q.getMuted(),t=Q.getVolume();i||(ke.set(e?0:t),i=t||1),be.set(e)},L=function(){var e=Q.getMuted(),t=Q.getVolume();be.set(e),ke.set(e?0:t)},R=!1,H=null,q=0,O=!0,z=null,V=null,j=!1,F=!1,N=!1,U=!1,W=null,G=0,J="playing play pause autopause timeupdate progress modechange phasechange statechange ad_loaded adstarted adskippable durationchange volumechange fullscreenchange ratechange assetlistchange assetselected subtitlechange subtitlelinechange subtitlelistchange transcriptchange transcriptlinechange transcriptlistchange resized flagchange castsessionchange castsessionstatechange waiting loadedclipdata cliplistchanged loadedprojectdata texttracklistchange relatedclipschange audiotrackchange audiotracklistchange seeked seeking changedplayoutdata chapterlistchange highlightlistchange softembargotimerstarted softembargotimertick softembargotimercancelled softembargotimerfinished ".split(" ").join(".skin8 "),Q=e.api,K=e.skinMode,Y=e.skinContainerRef,X=e.started,Z=e.playing,ee=e.userActive,te=e.phase,ie=e.playerMode,ne=e.adSkippable,ae=e.currentAd,se=e.relatedItems,oe=e.waiting,re=e.detections,le=e.mountedControlbar,ue=e.currentTime,de=e.duration,ce=e.livePlayer,he=e.livePlayerWithDvr,pe=e.livePlayerIsLive,_e=e.slimAudioPlayer,me=e.playerHeight,fe=e.playerWidth,ve=e.adPodInfo,ge=e.playerHasFocus,ye=e.assets,be=e.muted,ke=e.displayVolume,we=e.playRate,$e=e.fullscreen,Ce=e.seeking,Se=e.mouseOverInterface,Pe=e.shareOptions,xe=e.bufferTimeRanges,Ae=e.audiotracks,Ie=e.currentAsset,Te=e.playState,De=e.subtitlesList,Ee=e.activeSubtitleId,Me=e.activeSubtitleLine,Be=e.lastActiveSubtitleId,Le=e.transcriptList,Re=e.activeTranscriptId,He=e.activeTranscriptLine,qe=e.activeAudiotrackId,Oe=e.mainAudioTrackActive,ze=e.signLanguageActive,Ve=e.chapterList,je=e.highlightList,Fe=e.currentChapter,Ne=e.hideTopContainerAutoPlay,Ue=e.entity,We=e.clipList,Ge=e.castType,Je=e.castState,Qe=e.castSession,Ke=e.playout,Ye=e.touchMode,Xe=e.translate,Ze=e.setLogo,et=e.setPlayout,tt=e.setColors,it=e.closeAllPanes,nt=e.lastEvent,at=e.hasTimeline,st=e.language,ot=e.dvrDurationCheckInterval,rt=e.passedFiveSeconds,lt=e.softEmbargoTimerActive,ut=e.softEmbargoEndDate,dt=e.softEmbargoTimerTime;e.apiLoad=function(e){X.set(!1),Q.load(e)},e.showCastTargets=function(){var e;null==(e=null==Q?void 0:Q.showCastTargetPicker)||e.call(Q,x(Ge))},e.setUserActive=function(i){clearTimeout(t);var n=e.castingActive(x(Je));!1===i&&n||(i?(setTimeout((function(){return ee.set(!0)}),50),t=setTimeout((function(){x(Se)||ee.set(!1)}),2500)):t=setTimeout((function(){return ee.set(!1)}),50))},e.onMouseEnterUI=function(t){if(!x(Ye)){Se.set(!0);var i=(null==t?void 0:t.composedPath())||(null==t?void 0:t.path),n=null==i?void 0:i.some((function(e){var t,i;return(null==(t=null==e?void 0:e.classList)?void 0:t.contains("play-pause-button"))||(null==(i=null==e?void 0:e.classList)?void 0:i.contains("big-play-pause-button"))}));e.setUserActive(!n)}},e.onMouseLeaveUI=function(){x(Ye)||Se.set(!1)},e.castingActive=function(e){return["SESSION_STARTED","SESSION_RESUMED"].includes(e)},e.setVolume=function(e){e>=.025?("shorts"===K&&(e=1),null==Q||Q.setVolume(e),null==Q||Q.setMuted(!1,!0,!0),i=e):(i=1,null==Q||Q.setMuted(!0,!0,!0))},e.toggleMute=function(){if(Q.getMuted())e.setVolume(null!=i?i:1);else{var t=x(ke);Q.setMuted(!0,!0,!0),t<.025&&e.setVolume(null!=i?i:1)}},e.changePlaybackSpeed=function(e){var t=Q.getPlaybackRate(),i=vt.indexOf(t),n="increase"===e?i+1:i-1;if(n>=0){var a=vt[n];a&&Q.setPlaybackRate(a)}},e.initializeApi=function(){var t,i;Q.on(J,(function(e){f(e)})),Q&&(B(),!x(be)&&"shorts"===K&&e.setVolume(1),de.set((null==(t=Q.getDuration)?void 0:t.call(Q))||0),et((null==(i=null==Q?void 0:Q.getPlayoutData)?void 0:i.call(Q))||{}),null==(H=Q.getWrapper())||H.addEventListener("touchend",S),null==H||H.addEventListener("mousemove",P),null==H||H.addEventListener("mouseleave",I),document.addEventListener("keydown",A))},e.exitApi=function(){null==Q||Q.off(J),null==H||H.removeEventListener("touchend",S),null==H||H.removeEventListener("mousemove",P),null==H||H.removeEventListener("mouseleave",I),document.removeEventListener("keydown",A)},e.seekTo=function(t){var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=x(he);x(ce)&&!a||((!x(X)||i)&&e.play(),t=a?Math.min(0,Math.max(t,x(de))):Math.max(0,Math.min(t,x(de))),ue.set(t),Q.seek(t),n&&e.setUserActive(!0))},e.play=function(){null==Q||Q.play(!0),Z.set(!0),clearInterval(x(ot))},e.pause=function(){null==Q||Q.pause(),Z.set(!1),he&&ot.set(setInterval((function(){w(null)}),1e3))},e.playPause=function(){Q&&(x(Z)?e.pause():e.play())},e.toggleSubtitles=function(){if("-1"===x(Ee)){var e,t=x(Be),i=x(De);if(!i||!i.length)return;if(t&&i.find((function(e){return e.id===t})))return void Q.setSubtitle(t);var n=x(st),a=x(Ke).defaultSubtitle;n&&(e=i.find((function(e){return e.isocode===n}))),!e&&"default language"===a&&(e=i.find((function(e){return"true"===e.default}))),Q.setSubtitle(e?e.id:i[0].id)}else Q.setSubtitle("-1")},e.doShare=function(e){Q.doShare(e,!0)},e.getEmbedCode=function(){return Q.getEmbedcode()},e.getDeeplink=function(){return Q.getDeeplink()},e.loadRelatedItem=function(e,t,i,n){var a,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"RelatedItem";if(e&&t){if("RelatedItem"===s&&null!=(a=x(Ke))&&a.useDeeplinkForRelatedItems){var o=i||n;if(o.match(/^https?:\/\//i))return void(window.location.href=o)}var r={initiator:s,autoPlay:!0};"MediaClipList"==t?r.cliplistId=e:"Project"==t?r.projectId=e:r.clipId=e,Q.load(r)}},e.getWrapperBoundingClientRect=function(){var e;return null==(e=null==Q?void 0:Q.getWrapper())?void 0:e.getBoundingClientRect()},e.getSkinLayer=function(){return Q.getSkinLayer()}}var xt="#2b2b2b";function At(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?t.map((function(e){return parseInt(e,16)})).slice(1):null}function It(e,t,i){var n=[e,t,i].map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)}));return.2126*n[0]+.7152*n[1]+.0722*n[2]}function Tt(e,t){var i=At(e),n=At(t);return i&&n?function(e,t){var i=It(e[0],e[1],e[2]),n=It(t[0],t[1],t[2]);return(Math.max(i,n)+.05)/(Math.min(i,n)+.05)}(i,n):0}function Dt(e){var t=e.accentColor,i=e.playerMode,n=e.iconContrastColor,a=e.playout,s=e.timeLeft,o=e.timePassed,l=e.timeTotal,u=["softEmbargoText","shareText","textAbovePlayer","logoClickUrl","playerSignatureLink"];e.setPlayout=function(t){var i=function(e){return!1!==(null==e?void 0:e.linkPauseHoverStates)&&(e.showBigHoverButtons=e.showBigPauseButtons,e.titleHover=e.titlePause,e.authorCopyrightHover=e.authorCopyrightPause),e}(function(e){var t=r.default({},e);return Object.keys(t).forEach((function(e){var i=t[e];"true"===i?t[e]=!0:"false"===i&&(t[e]=!1)})),t}(function(e){var t={};return Object.keys(e).forEach((function(i){"string"!=typeof e[i]||u.includes(i)?t[i]=e[i]:t[i]=e[i].toLowerCase()})),t}(t)));a.set(i),e.setColors();var n=t.autoPlayNextTimeout?t.autoPlayNextTimeout:8;x(l)!==n&&(l.set(n),s.set(n),o.set(0))},e.setColors=function(){var e,s,o="commercial"===x(i)?(null==(e=x(a))?void 0:e.commercialProgressBarColor)||"ffcc00":null==(s=x(a))?void 0:s.skin_foregroundColor;if(o){var r="#".concat(o);t.set(r),Tt(r,"#ffffff")<3?n.set("#000000"):n.set("#ffffff")}}}function Et(e){var t,i=function(){o.set(!1),t=setInterval((function(){s.set(x(s)+r/1e3),x(a)<.1?(a.set(0),clearInterval(t)):a.set(x(a)-r/1e3)}),r)},n=e.timeTotal,a=e.timeLeft,s=e.timePassed,o=e.userPausedCountDown,r=200;e.startCountDown=function(){a.set(x(n)),s.set(0),i()},e.pauseCountdown=function(){x(o)||t&&(clearInterval(t),t=void 0,o.set(!0))},e.continueCountdown=function(){x(o)&&!t&&i()},e.stopCountdown=function(){t&&(clearInterval(t),t=void 0,s.set(0),a.set(null))}}function Mt(e){var t,i,n,a=function(e){var a,s;if(x(l)&&["ArrowUp","ArrowDown","Tab"].includes(e.key)){var o=null==(s=null==(a=r())?void 0:a.shadowRoot)?void 0:s.activeElement;if("ArrowUp"===e.key||"Tab"===e.key&&e.shiftKey){if(o===t)return i.focus(),void e.preventDefault()}else if(("ArrowDown"===e.key||"Tab"===e.key)&&o===i)return t.focus(),void e.preventDefault();if(["ArrowUp","ArrowDown"].includes(e.key)){var u=-1;n.forEach((function(t,i){t===e.target&&(u=i)})),-1!==u&&("ArrowDown"===e.key&&(n[u+1].focus(),e.preventDefault()),"ArrowUp"===e.key&&(n[u-1].focus(),e.preventDefault()))}}},s=e.lastActiveAriaElement,o=e.usedEnterForClicking,r=e.getSkinLayer,l=e.ariaTrappedInMenu;e.trapAriaTabFocus=function(s,o){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,u=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];s&&(l.set(!0),e.setPreviousAriaElement(),n=s.querySelectorAll(o),t=n[0],n[r]?(n[r].focus(),u||n[r].blur()):(t.focus(),u||t.blur()),i=n[n.length-1],s.removeEventListener("keydown",a),s.addEventListener("keydown",a))},e.setPreviousAriaElement=function(){var e,t,i=null==(t=null==(e=r())?void 0:e.shadowRoot)?void 0:t.activeElement;i&&s.set(i)},e.restoreFocusPreviousElement=function(){if(l.set(!1),x(o)){var e=x(s);e&&e.focus&&e.focus()}}}var Bt={nl:{Replay:"Opnieuw afspelen",Language:"Taal",Subtitles:"Ondertiteling","Subtitles on":"Ondertiteling aan","Subtitles off":"Ondertiteling uit",Quality:"Kwaliteit","Embedcode copied to clipboard":"De embed code is gekopieerd naar het klembord","Link copied to clipboard":"De link is gekopieerd naar het klembord","Failed to copy to clipboard":"Het is niet gelukt om te kopiëren naar het klembord","Up next":"Hierna",Cancel:"Annuleren","Related videos":"Gerelateerde video's",Related:"Gerelateerd","Share this video":"Deel deze video",Subtitle:"Ondertiteling",Audiotrack:"Audiotrack",Audiotracks:"Audiotracks",Author:"Auteur","Play now":"Nu afspelen",Source:"Bron","Media not available":"Media niet beschikbaar",Off:"Uit",Skip:"Doorgaan",Speed:"Snelheid","Playback speed":"Afspeelsnelheid",Normal:"Normaal","Up next in":"Video begint over",Space:"Spatie","Share video":"Deel video","Playing on":"Speelt op","Connected to":"Verbonden met",Logo:"Logo","aria-settingsButton":"Open instellingen menu","aria-chapterButton":"Open hoofdstukken menu","tooltip-playPauseButton":"Afspelen/Pauzeren","tooltip-replayButton":"Opnieuw afspelen","tooltip-playNext":"Volgende video afspelen","tooltip-forwardVideo":"10 seconden doorspoelen","tooltip-rewindVideo":"10 seconden terugspoelen","tooltip-increasePlaybackRate":"Verhoog de afspeelsnelheid","tooltip-decreasePlaybackRate":"Verlaag de afspeelsnelheid","tooltip-muteButton":"Geluid dempen/Geluid aanzetten","tooltip-castButton":"Casten/Stoppen met casten","tooltip-fullscreenButton":"Volledig scherm/Volledig scherm sluiten","tooltip-subtitleButton":"Zet ondertitels aan/Zet ondertitels uit","tooltip-transcriptButton":"Zet transcript aan/Zet transcript uit","tooltip-audioDescriptionButton":"Zet audiodescriptie aan/Zet audiodescriptie uit","tooltip-signLanguageButton":"Zet gebarentaal aan/Zet gebarentaal uit","tooltip-settingsButton":"Instellingen","tooltip-shareButton":"Delen","tooltip-chapterButton":"Hoofdstukken","tooltip-close":"Sluiten","tooltip-previousRelatedButton":"Ga naar vorige gerelateerde video's","tooltip-nextRelatedButton":"Ga naar volgende gerelateerde video's","tooltip-shareEmbed":"Deel via embed code","tooltip-shareEmail":"Deel via e-mail","tooltip-shareWhatsApp":"Deel op WhatsApp","tooltip-shareFacebook":"Deel op Facebook","tooltip-shareTwitter":"Deel op X","tooltip-shareLinkedIn":"Deel op LinkedIn","tooltip-sharePinterest":"Deel op Pinterest","tooltip-cancel":"Annuleren","tooltip-goToLive":"Ga naar live uitzending","tooltip-highlights":"Hoogtepunten",Highlights:"Hoogtepunten",Live:"Live","Live in":"Live over",Interactive:"Interactief",Image:"Afbeelding",Chapters:"Hoofdstukken","Volume Up":"Volume omhoog","Volume Down":"Volume omlaag","Volume Off":"Geluid gedempt","Volume On":"Geluid aan","Keyboard shortcuts":"Toetsenbord sneltoetsen","Volume input":"Volume input","Time input":"Tijd input",Embed:"Embed",Email:"E-mail",Unmute:"Geluid aanzetten",day:"dag",days:"dagen",minute:"minuut",minutes:"minuten",hour:"uur",hours:"uur",second:"seconde",seconds:"seconden",at:"om","Set reminder":"Herinnering instellen","Reminder set":"Herinnering ingesteld"},en:{Replay:"Replay",Language:"Language",Subtitles:"Subtitle","Subtitles on":"Subtitles on","Subtitles off":"Subtitles off",Quality:"Quality","Embedcode copied to clipboard":"Embed code copied to clipboard","Link copied to clipboard":"Link copied to clipboard","Failed to copy to clipboard":"Failed to copy to clipboard","Up next":"Up next",Cancel:"Cancel","Related videos":"Related videos",Related:"Related","Share this video":"Share this video",Subtitle:"Subtitle",Audiotrack:"Audio track",Audiotracks:"Audio tracks",Author:"Author","Play now":"Play now",Source:"Source","Media not available":"Media not available",Off:"Off",Skip:"Skip",Speed:"Speed","Playback speed":"Playback speed",Normal:"Normal","Up next in":"Up next in",Space:"Space","Share video":"Share video","Playing on":"Playing on","Connected to":"Connected to",Logo:"Logo","aria-settingsButton":"Open settings menu","aria-chapterButton":"Open chapters menu","tooltip-playPauseButton":"Play/Pause","tooltip-replayButton":"Replay","tooltip-playNext":"Play next video","tooltip-forwardVideo":"Forward 10 seconds","tooltip-rewindVideo":"Rewind 10 seconds","tooltip-increasePlaybackRate":"Increase playback rate","tooltip-decreasePlaybackRate":"Decrease playback rate","tooltip-muteButton":"Mute/Unmute","tooltip-castButton":"Cast","tooltip-fullscreenButton":"Fullscreen/Close fullscreen","tooltip-subtitleButton":"Turn on subtitles/Turn off subtitles","tooltip-transcriptButton":"Turn on transcript/Turn off transcript","tooltip-audioDescriptionButton":"Turn on audio description/Turn off audio description","tooltip-signLanguageButton":"Turn on sign language/Turn off sign language","tooltip-settingsButton":"Settings","tooltip-shareButton":"Share","tooltip-chapterButton":"Chapters","tooltip-close":"Close","tooltip-previousRelatedButton":"Go to previous related videos","tooltip-nextRelatedButton":"Go to next related videos","tooltip-shareEmbed":"Share by embed code","tooltip-shareEmail":"Share by email","tooltip-shareWhatsApp":"Share on WhatsApp","tooltip-shareFacebook":"Share on Facebook","tooltip-shareTwitter":"Share on X","tooltip-shareLinkedIn":"Share on LinkedIn","tooltip-sharePinterest":"Share on Pinterest","tooltip-cancel":"Cancel","tooltip-goToLive":"Skip ahead to live broadcast","tooltip-highlights":"Highlights",Highlights:"Highlights",Live:"Live","Live in":"Live in",Interactive:"Interactive",Image:"Image",Chapters:"Chapters","Volume Up":"Volume up","Volume Down":"Volume down","Volume Off":"Muted","Volume On":"Unmuted","Keyboard shortcuts":"Keyboard shortcuts","Volume input":"Volume input","Time input":"Time input",Embed:"Embed",Email:"Email",Unmute:"Unmute",day:"day",days:"days",minute:"minute",minutes:"minutes",hour:"hour",hours:"hours",second:"second",seconds:"seconds",at:"at","Set reminder":"Set reminder","Reminder set":"Reminder set"},sv:{Replay:"Se igen ",Language:"Språk",Subtitles:"Undertexter","Subtitles on":"Undertexter på","Subtitles off":"Undertexter av",Quality:"Kvalite ","Embedcode copied to clipboard":"Inbäddningskoden har kopierats till urklipp","Link copied to clipboard":"Länken har kopierats till urklipp","Failed to copy to clipboard":"Det gick inte att kopiera till urklipp","Up next":"Nästa",Cancel:"Avbryt","Related videos":"Relaterade videos",Related:"Relaterad","Share this video":"Dela video",Subtitle:"Undertexter",Audiotrack:"Ljudspår",Audiotracks:"Ljudspår",Author:"Upphovsman","Play now":"Spela nu",Source:"Källa","Media not available":"Media inte tillgängligt",Off:"Av",Skip:"Hoppa över",Speed:"Hastighet","Playback speed":"Uppspelningshastighet",Normal:"Normal","Up next in":"Nästa video ",Space:"Mellanslag","Share video":"Dela video",Logo:"Logo","aria-settingsButton":"Öppna inställningsmenyn","aria-chapterButton":"Öppna inställningarna för kapitel ","tooltip-playPauseButton":"Spela/Paus","tooltip-replayButton":"Se igen ","tooltip-playNext":"Spela nästa video","tooltip-forwardVideo":"Hoppa fram 10 sekunder","tooltip-rewindVideo":"Spela tillbaka 10 sekunder","tooltip-increasePlaybackRate":"Öka Uppspelningshastighet","tooltip-decreasePlaybackRate":"Minska Uppspelningshastighet","tooltip-muteButton":"Ljud av/på","tooltip-castButton":"Casta/Sluta casta","tooltip-fullscreenButton":"Fullskärm/Stäng fullskärm","tooltip-subtitleButton":"Slå på undertexter/Stäng av undertexter","tooltip-transcriptButton":"Sätt på transkript/Stäng av transkript","tooltip-audioDescriptionButton":"Sätt på ljudbeskrivning/Stäng av ljudbeskrivning","tooltip-signLanguageButton":"Sätt på teckenspråk/Stäng av teckenspråk","tooltip-settingsButton":"Inställningar","tooltip-shareButton":"Dela","tooltip-chapterButton":"Kapitel","tooltip-close":"Stäng","tooltip-previousRelatedButton":"Gå till tidigare relaterade videor","tooltip-nextRelatedButton":"Gå till tidigare nästa videor","tooltip-shareEmbed":"Dela med inbäddningskod","tooltip-shareEmail":"Dela via e-mail","tooltip-shareWhatsApp":"Dela via WhatsApp","tooltip-shareFacebook":"Dela via Facebook","tooltip-shareTwitter":"Dela via X ","tooltip-shareLinkedIn":"Dela via LinkedIn","tooltip-sharePinterest":"Dela via Pintrest","tooltip-cancel":"Avbryt","tooltip-goToLive":"Hoppa vidare till livesändning","tooltip-highlights":"Höjdpunkter",Highlights:"Höjdpunkter",Live:"Live","Live in":"Live om",Interactive:"Interaktiv ",Image:"Bild",Chapters:"Kapitel ","Volume Up":"Volym upp","Volume Down":"Volym ned","Volume Off":"Ljud av ","Volume On":"Ljud på ","Keyboard shortcuts":"Tangentbordsgenvägar","Volume input":"Volymingång","Time input":"Tidsinmatning",Embed:"Inbäddningskod",Email:"E-mail",Unmute:"Ljud på",day:"dag",days:"dagar",minute:"minut",minutes:"minuter",hour:"timme",hours:"timmar",second:"sekund",seconds:"sekunder",at:"kl","Set reminder":"Ställ påminnelse","Reminder set":"Påminnelse ställt"},pl:{Replay:"Odtwórz ponownie",Language:"Język",Subtitles:"Napisy","Subtitles on":"Napisy włączone","Subtitles off":"Napisy wyłączone",Quality:"Jakość","Embedcode copied to clipboard":"Kod skopiowany do schowka","Link copied to clipboard":"Link skopiowany do schowka","Failed to copy to clipboard":"Nie udało się skopiować do schowka","Up next":"Kolejny",Cancel:"Anuluj","Related videos":"Powiązane filmy","Share this video":"Udostępnij ten film",Subtitle:"Napisy",Audiotrack:"Ścieżka dźwiękowa",Audiotracks:"Ścieżki dźwiękowe",Author:"Autor","Play now":"Odtwórz teraz",Source:"Źródło","Media not available":"Media niedostępne",Off:"Wyłączony",Skip:"Pomiń",Speed:"Prędkość","Playback speed":"Prędkość odtwarzania",Normal:"Normalna","Up next in":"Następny za",Space:"Spacja","Share video":"Udostępnij film",Logo:"Logo","aria-settingsButton":"Otwórz menu ustawień","aria-chapterButton":"Otwórz menu rozdziałów","tooltip-playPauseButton":"Odtwórz/Wstrzymaj","tooltip-replayButton":"Odtwórz ponownie","tooltip-playNext":"Odtwórz następny film","tooltip-forwardVideo":"Przewiń o 10 sekund","tooltip-rewindVideo":"Cofnij o 10 sekund","tooltip-increasePlaybackRate":"Zwiększyć prędkość odtwarzania","tooltip-decreasePlaybackRate":"Zmniejszyć prędkość odtwarzania","tooltip-muteButton":"Wycisz/Wyłącz wyciszenie","tooltip-castButton":"Przesyłaj/Zakończ przesyłanie","tooltip-fullscreenButton":"Pełny ekran/Zamknij pełny ekran","tooltip-subtitleButton":"Włącz/Wyłącz napisy","tooltip-transcriptButton":"Włącz/Wyłącz transkrypcję","tooltip-audioDescriptionButton":"Włącz/Wyłącz opis dźwiękowy","tooltip-signLanguageButton":"Włącz/Wyłącz język migowy","tooltip-settingsButton":"Ustawienia","tooltip-shareButton":"Udostępnij","tooltip-chapterButton":"Rozdział","tooltip-close":"Zamknij","tooltip-previousRelatedButton":"Przejdź do poprzednich powiązanych filmów","tooltip-nextRelatedButton":"Przejdź do następnych powiązanych filmów","tooltip-shareEmbed":"Udostępnij: Umieść","tooltip-shareEmail":"Udostępnij przez Email","tooltip-shareWhatsApp":"Udostępnij przez WhatsApp","tooltip-shareFacebook":"Udostępnij przez Facebook","tooltip-shareTwitter":"Udostępnij przez X","tooltip-shareLinkedIn":"Udostępnij przez LinkedIn","tooltip-sharePinterest":"Udostępnij przez Pinterest","tooltip-cancel":"Anuluj","tooltip-goToLive":"Przejdź do transmisji na żywo","tooltip-highlights":"Wyróżnienia",Highlights:"Wyróżnienia",Live:"Na żywo","Live in":"Na żywo za",Interactive:"Interaktywny",Image:"Obraz",Chapters:"Rozdziały","Volume Up":"Podgłośnij","Volume Down":"Ścisz","Volume Off":"Wyciszony","Volume On":"Niewyciszony","Keyboard shortcuts":"Skróty klawiszowe","Volume input":"Wprowadzenie głośności","Time input":"Wprowadzenie czasu",Embed:"Umieść",Email:"E-mail",Unmute:"Włącz dźwięk",day:"dzień",days:"dni",minute:"minutę",minutes:"minuty",hour:"godzinę",hours:"godziny",second:"sekundę",seconds:"sekundy",at:"o","Set reminder":"Ustawić przypomnienie","Reminder set":"Przypomnienie ustawione"},de:{Replay:"Wiederholen",Language:"Sprache",Subtitles:"Untertitel","Subtitles on":"Untertitel an","Subtitles off":"Untertitel aus",Quality:"Qualität","Embedcode copied to clipboard":"Einbettungscode in die Zwischenablage kopiert","Link copied to clipboard":"Link in die Zwischenablage kopiert","Failed to copy to clipboard":"Fehler beim Kopieren in die Zwischenablage","Up next":"Als nächstes",Cancel:"Abbrechen","Related videos":"Ähnliche Videos","Share this video":"Teile dieses Video",Subtitle:"Untertitel",Audiotrack:"Audiospur",Audiotracks:"Audiospuren",Author:"Autor","Play now":"Jetzt abspielen",Source:"Quelle","Media not available":"Medien nicht verfügbar",Off:"Aus",Skip:"Werbung überspringen",Speed:"Geschwindigkeit","Playback speed":"Wiedergabegeschwindigkeit",Normal:"Normal","Up next in":"Video beginnt in",Space:"Leertaste","Share video":"Teilen",Logo:"Logo","aria-settingsButton":"Einstellungsmenü öffnen","aria-chapterButton":"Kapitelmenü öffnen","tooltip-playPauseButton":"Spiel/Pause","tooltip-replayButton":"Wiederholung","tooltip-playNext":"Nächstes Video abspielen","tooltip-forwardVideo":"10 Sekunden vorspulen","tooltip-rewindVideo":"10 Sekunden zurückspulen","tooltip-increasePlaybackRate":"Wiedergabegeschwindigkeit erhöhen","tooltip-decreasePlaybackRate":"Wiedergabegeschwindigkeit verringern","tooltip-muteButton":"Stummschalten/Stummschalten aufheben","tooltip-castButton":"Casten/Casten beenden","tooltip-fullscreenButton":"Vollbild/Vollbildmodus beenden","tooltip-subtitleButton":"Untertitel einschalten/Untertitel ausschalten","tooltip-transcriptButton":"Transkript einschalten/Transkript ausschalten","tooltip-audioDescriptionButton":"Audiodeskription einschalten/Audiodeskription ausschalten","tooltip-signLanguageButton":"Gebärdensprache einschalten/Gebärdensprache ausschalten","tooltip-settingsButton":"Einstellungen","tooltip-shareButton":"Teilen","tooltip-chapterButton":"Kapitel","tooltip-close":"Schließen","tooltip-previousRelatedButton":"Sehen Sie sich weitere ähnliche Videos an","tooltip-nextRelatedButton":"Sehen Sie sich weitere ähnliche Videos an","tooltip-shareEmbed":"Einbetten","tooltip-shareEmail":"Per E-mail teilen","tooltip-shareWhatsApp":"Auf WhatsApp teilen","tooltip-shareFacebook":"Auf Facebook teilen","tooltip-shareTwitter":"Auf X teilen","tooltip-shareLinkedIn":"Auf LinkedIn teilen","tooltip-sharePinterest":"Auf Pinterest teilen","tooltip-cancel":"Abbrechen","tooltip-goToLive":"Springen Sie weiter zur Live-Übertragung","tooltip-highlights":"Highlights",Highlights:"Highlights",Live:"Live","Live in":"Live in",Interactive:"Interaktiv",Image:"Bild",Chapters:"Kapitel","Volume Up":"Lautstärke erhöhen","Volume Down":"Lautstärke runter","Volume Off":"Stummgeschaltet","Volume On":"Stummschaltung aufgehoben","Keyboard shortcuts":"Tastenkombinationen","Volume input":"Lautstärkeeingabe","Time input":"Zeiteingabe",Embed:"Einbetten",Email:"E-mail",Unmute:"Stummschaltung aufheben",day:"Tag",days:"Tage",minute:"Minute",minutes:"Minuten",hour:"Stunde",hours:"Stunden",second:"Sekunde",seconds:"Sekunden",at:"um","Set reminder":"Erinnerung einstellen","Reminder set":"Erinnerung eingestellt"},da:{Replay:"Genafspil",Language:"Sprog",Subtitles:"Undertekster","Subtitles on":"Undertekster aktiveret","Subtitles off":"Undertekster aktiveret",Quality:"Kvalitet","Embedcode copied to clipboard":"Indlejret kode kopieret til udklipsholder","Link copied to clipboard":"Link kopieret til udklipsholder","Failed to copy to clipboard":"Kunne ikke kopiere indholdet","Up next":"Afspiller nu",Cancel:"Fortryd","Related videos":"Relaterede videoer",Related:"Relaterede","Share this video":"Del denne video",Subtitle:"Undertekst",Audiotrack:"Lydspor",Audiotracks:"Lydspor",Author:"Forfatter","Play now":"Afspil nu",Source:"Kilde","Media not available":"Video ikke tilgængelig",Off:"Deaktiveret",Skip:"Spring over",Speed:"Hastighed","Playback speed":"Afspilningshastighed",Normal:"Normal","Up next in":"Næste video",Space:"Mellemrum","Share video":"Del video","Playing on":"Afspiller","Connected to":"Forbundet til",Logo:"Logo","aria-settingsButton":"Åbn indstillingsmenu","aria-chapterButton":"Åbn kapitel menu","tooltip-playPauseButton":"Afspil/pause","tooltip-replayButton":"Genafspil","tooltip-playNext":"Spil næste","tooltip-forwardVideo":"Spol 10 sekunder","tooltip-rewindVideo":"Spol 10 sekunder tilbage","tooltip-increasePlaybackRate":"Forøg afspilningshastigheden","tooltip-decreasePlaybackRate":"Sænk afspilningshastigheden","tooltip-muteButton":"Mute/Unmute","tooltip-castButton":"Cast/stop cast","tooltip-fullscreenButton":"Fuldskærm/Luk fuldskærm","tooltip-subtitleButton":"Tænd undertekster/sluk undertekster","tooltip-transcriptButton":"Tænd for transskript/Sluk for transskript","tooltip-audioDescriptionButton":"Tænd for lydbeskrivelse/Sluk for lydbeskrivelse","tooltip-signLanguageButton":"Tænd for tegnsprog/Sluk for tegnsprog","tooltip-settingsButton":"Indstillinger","tooltip-shareButton":"Del","tooltip-chapterButton":"Kapitel","tooltip-close":"Luk","tooltip-previousRelatedButton":"Gå til tidligere relaterede videoer","tooltip-nextRelatedButton":"Gå til næste relaterede videoer","tooltip-shareEmbed":"Del via indlejringskode","tooltip-shareEmail":"Del via e-mail","tooltip-shareWhatsApp":"Del på WhatsApp","tooltip-shareFacebook":"Del på Facebook","tooltip-shareTwitter":"Del på X","tooltip-shareLinkedIn":"Del på LinkedIn","tooltip-sharePinterest":"Del på Pinterest","tooltip-cancel":"Fortryd","tooltip-goToLive":"Gå til Live Broadcast","tooltip-highlights":"Højdepunkter",Highlights:"Højdepunkter",Live:"Direkte","Live in":"Live om",Interactive:"Interaktiv",Image:"Billede",Chapters:"Kapitler","Volume Up":"Skru op","Volume Down":"Skru ned","Volume Off":"Lyd slukket","Volume On":"Lyd tændt","Keyboard shortcuts":"Tastaturgenveje","Volume input":"Lydinput","Time input":"Tidsinput",Embed:"Indlejre",Email:"E-mail",Unmute:"Unmute",day:"dag",days:"dage",minute:"minut",minutes:"minutter",hour:"time",hours:"timer",second:"sekund",seconds:"sekunder",at:"kl","Set reminder":"Indstil påmindelse","Reminder set":"Påmindelse indstillet"}},Lt={nl:{"tooltip-playPauseButton":"Afspelen/Pauzeren","tooltip-muteButton":"Geluid dempen/Geluid aanzetten"},en:{"tooltip-playPauseButton":"Play/Pause","tooltip-muteButton":"Mute/Unmute"},sv:{"tooltip-playPauseButton":"Spela/Paus","tooltip-muteButton":"Ljud av/på"},pl:{"tooltip-playPauseButton":"Odtwórz/Wstrzymaj","tooltip-muteButton":"Wycisz/Wyłącz wyciszenie"},de:{"tooltip-playPauseButton":"Spiel/Pause","tooltip-muteButton":"Stummschalten/Stummschalten aufheben"},da:{"tooltip-playPauseButton":"Afspil/pause","tooltip-muteButton":"Mute/Unmute"}};function Rt(e){var t=function(e){var t,i;t=navigator.languages&&navigator.languages.length?n.default(navigator.languages):[navigator.language||"en"];var a=!0,s=!1,o=void 0;try{for(var r,l=t[Symbol.iterator]();!(a=(r=l.next()).done);a=!0){var u=r.value.slice(0,2);if(e.includes(u)){i=u;break}}}catch(e){s=!0,o=e}finally{try{a||null==l.return||l.return()}finally{if(s)throw o}}return i||"en"},i=e.translations;e.setLanguage=function(){var n=t(Object.keys(Bt));i.set(Bt[n]),e.language.set(n)},e.setOutstreamLanguage=function(){var n=t(Object.keys(Lt));i.set(Lt[n]),e.language.set(n)},e.translate=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=x(i)[e]||e;if(t){var a=n.indexOf("/");if(a>0)return n.slice(0,a)}return n}}function Ht(e){var t=e.playerWidth,i=e.logoObject,n=e.api,a=e.marginSize,s=0;setTimeout((function(){a.subscribe((function(t){t>s&&(s=t,e.setLogo())}))}),1),e.setLogo=function(){var e;if(n){var a=10,s=x(t);s>2e3?a=.6666666666666666*Math.floor(s/1e3)*20:s>480&&(a=20);var o=Math.ceil(2*a);devicePixelRatio>1&&(o*=Math.min(3,devicePixelRatio));var r=null==(e=n.getLogo)?void 0:e.call(n,null,Math.ceil(o));null!=r&&r.src?i.set(r):i.set(null)}}}function qt(e){document.addEventListener("mousemove",(function(t){Math.abs(t.movementX)>0||Math.abs(t.movementY)>0?e.set(!1):qt(e)}),{once:!0})}function Ot(e){e.subscribe((function(t){t?qt(e):function(e){document.addEventListener("touchstart",(function(){e.set(!0)}),{once:!0})}(e)}))}var zt=Symbol(),Vt=["controls","header","headerPause","title","titlePause","author","authorPause","copyright","copyrightPause","date","loadSpinner","bigButtonContainer","bigPlayButton","bigReplayButton","logo","contrast","nonTouchSlider","playPauseButton","muteButton","volumeButton","volumeSliderHorizontal","volumeSliderVertical","zoomButton","audio","quality","shareButton","castButton","shareButtonTouch","duration","timeTell","remaining","timeBorder","current","autoPlayOnly","relatedCarousel","subtitle","touchSlider","playbackRatePane","timeDisplay","currentTime","settingsButton","cogButton","controlBar","seekButtons","subtitlesButton","progressBar","framePreview","relatedItems","fullscreenButton","centerControls","topContainer","backdrop","commercialPauseButton","commercialMuteButton","commercialProgressBar","commercialAdIcon","subtitleButton","transcriptButton","signLanguageButton","audioDescriptionButton","chapterButton","description","mutedIndication"];function jt(e){var t=e-1;return t*t*t+1}function Ft(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t.delay,n=void 0===i?0:i,a=t.duration,s=void 0===a?400:a,o=t.easing,r=void 0===o?y:o,l=+getComputedStyle(e).opacity;return{delay:n,duration:s,easing:r,css:function(e){return"opacity: ".concat(e*l)}}}function Nt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t.delay,n=void 0===i?0:i,a=t.duration,s=void 0===a?400:a,r=t.easing,l=void 0===r?jt:r,u=t.x,d=void 0===u?0:u,c=t.y,h=void 0===c?0:c,p=t.opacity,_=void 0===p?0:p,m=getComputedStyle(e),f=+m.opacity,v="none"===m.transform?"":m.transform,g=f*(1-_),y=o.default(L(d),2),b=y[0],k=y[1],w=o.default(L(h),2),$=w[0],C=w[1];return{delay:n,duration:s,easing:l,css:function(e,t){return"\n\t\t\ttransform: ".concat(v," translate(").concat((1-e)*b).concat(k,", ").concat((1-e)*$).concat(C,");\n\t\t\topacity: ").concat(f-g*t)}}}function Ut(e){var t,i;return{c:function(){t=X("svg"),se(i=X("path"),"d","M23.625 16.715H15.75c-5.43 0-10.008 3.592-11.386 8.477a12.67 12.67 0 0 1-.427-3.335c0-5.681 4.7-10.285 10.5-10.285h9.188 1.969c1.091 0 1.969-.86 1.969-1.928V7.716 5.458l9.852 8.686-9.852 8.686v-2.258-1.928c0-1.069-.878-1.928-1.969-1.928h-1.969zm0 3.857v3.857 1.286a2.56 2.56 0 0 0 1.559 2.346c.952.41 2.051.241 2.822-.434l13.125-11.571c.55-.49.87-1.181.87-1.912s-.312-1.422-.87-1.912L28.006.661c-.771-.683-1.879-.852-2.822-.434s-1.559 1.334-1.559 2.346v1.286 3.857h-3.937-5.25C6.464 7.716 0 14.047 0 21.858c0 6.268 3.166 10.141 5.636 12.222.336.281.664.53.96.747.263.193.509.354.73.498.369.241.681.41.886.522s.435.153.664.153c.894 0 1.616-.715 1.616-1.583 0-.546-.295-1.061-.681-1.454l-.115-.113c-.197-.185-.418-.41-.632-.691a5.76 5.76 0 0 1-.41-.635c-.435-.779-.779-1.84-.779-3.23 0-4.259 3.527-7.714 7.875-7.714h3.938 3.938v-.008z"),se(i,"fill","#fff"),se(t,"xmlns","http://www.w3.org/2000/svg"),se(t,"viewBox","0 0 42 37"),se(t,"fill","none")},m:function(e,n){J(e,t,n),F(t,i)},p:v,i:v,o:v,d:function(e){e&&Q(t)}}}var Wt=function(e){l.default(i,e);var t=u.default(i);function i(e){var n;return a.default(this,i),n=t.call(this),ut(d.default(n),e,null,Ut,C,{}),c.default(n)}return i}(dt);function Gt(e){var t,i,n=e[5].default,a=I(n,e,e[4],null);return{c:function(){t=Y("div"),a&&a.c(),de(t,"display",e[0])},m:function(n,s){J(n,t,s),a&&a.m(t,null),e[6](t),i=!0},p:function(e,s){var r=o.default(s,1)[0];a&&a.p&&(!i||16&r)&&E(a,n,e,e[4],i?D(n,e[4],r,null):M(e[4]),null),1&r&&de(t,"display",e[0])},i:function(e){i||(Ye(a,e),i=!0)},o:function(e){Xe(a,e),i=!1},d:function(i){i&&Q(t),a&&a.d(i),e[6](null)}}}function Jt(e,t,i){var n,a=t.$$slots,s=void 0===a?{}:a,o=t.$$scope,r=Ae(zt).translations;A(e,r,(function(e){return i(7,n=e)}));var l,u=t.key,d=void 0===u?"":u,c=t.display,h=void 0===c?"block":c;return Ce((function(){d&&i(1,l.textContent=n[d]||l.textContent,l),i(1,l.textContent=n[l.textContent]||l.textContent,l)})),e.$$set=function(e){"key"in e&&i(3,d=e.key),"display"in e&&i(0,h=e.display),"$$scope"in e&&i(4,o=e.$$scope)},[h,l,r,d,o,s,function(e){De[e?"unshift":"push"]((function(){i(1,l=e)}))}]}var Qt=function(e){l.default(i,e);var t=u.default(i);function i(e){var n;return a.default(this,i),n=t.call(this),ut(d.default(n),e,Jt,Gt,C,{key:3,display:0}),c.default(n)}return i}(dt);function Kt(e){N(e,"svelte-l335oh",".tooltip.svelte-l335oh.svelte-l335oh.svelte-l335oh.svelte-l335oh{display:inline-block}.tooltip.svelte-l335oh div{display:inline-block}.tooltip.svelte-l335oh .tooltip-content.svelte-l335oh.svelte-l335oh.svelte-l335oh{padding:6px 10px;background-color:var(--bg-color-pane);border-radius:5px;color:#fff;font-size:0.75em;display:flex;gap:6px;text-align:center;white-space:nowrap;position:absolute}@supports (-webkit-touch-callout: none) and (not (translate: none)){.tooltip.svelte-l335oh .tooltip-content.svelte-l335oh>.svelte-l335oh+.svelte-l335oh{margin-left:6px}}.tooltip.svelte-l335oh .tooltip-content.center.svelte-l335oh.svelte-l335oh.svelte-l335oh{left:50%;transform:translate(-50%, 0)}.tooltip.svelte-l335oh .tooltip-content.right.svelte-l335oh.svelte-l335oh.svelte-l335oh{right:0}.tooltip.svelte-l335oh .tooltip-content.left.svelte-l335oh.svelte-l335oh.svelte-l335oh{left:0}.tooltip.svelte-l335oh .tooltip-content .sub-text.svelte-l335oh.svelte-l335oh.svelte-l335oh{opacity:0.5}")}function Yt(e){var t,i;return{c:function(){t=Y("div"),i=Z(e[0]),se(t,"class","text svelte-l335oh")},m:function(e,n){J(e,t,n),F(t,i)},p:function(e,t){1&t&&le(i,e[0])},d:function(e){e&&Q(t)}}}function Xt(e){var t,i,n,a;return{c:function(){t=Y("div"),i=Z("("),n=Z(e[1]),a=Z(")"),se(t,"class","sub-text svelte-l335oh")},m:function(e,s){J(e,t,s),F(t,i),F(t,n),F(t,a)},p:function(e,t){2&t&&le(n,e[1])},d:function(e){e&&Q(t)}}}function Zt(e){var t,i,n,a,s=e[0]&&Yt(e),r=e[1]&&Xt(e);return{c:function(){t=Y("div"),i=Y("div"),s&&s.c(),n=ee(),r&&r.c(),se(i,"class",a="tooltip-content "+e[5]+" svelte-l335oh"),de(i,"top",e[2]),se(t,"class","tooltip svelte-l335oh")},m:function(a,o){J(a,t,o),F(t,i),s&&s.m(i,null),F(i,n),r&&r.m(i,null),e[6](i),e[7](t)},p:function(e,t){var l=o.default(t,1)[0];e[0]?s?s.p(e,l):((s=Yt(e)).c(),s.m(i,n)):s&&(s.d(1),s=null),e[1]?r?r.p(e,l):((r=Xt(e)).c(),r.m(i,null)):r&&(r.d(1),r=null),32&l&&a!==(a="tooltip-content "+e[5]+" svelte-l335oh")&&se(i,"class",a),4&l&&de(i,"top",e[2])},i:v,o:v,d:function(i){i&&Q(t),s&&s.d(),r&&r.d(),e[6](null),e[7](null)}}}function ei(e,t,i){var n,a,s,o=function(e,t){var i=null==e?void 0:e.getBoundingClientRect(),n=null==t?void 0:t.getBoundingClientRect();if(i&&n){var a=u();return i.x+n.width/2+30>=(null==a?void 0:a.right)?"right":i.x-n.width/2<=(null==a?void 0:a.left)?"left":"center"}},r=Ae(zt),l=r.playout,u=r.getWrapperBoundingClientRect,d=t.text,c=void 0===d?"":d,h=t.subtext,p=void 0===h?"":h,_=t.tooltipY,m=void 0===_?"0px":_,f=[];return f.push(l.subscribe((function(){setTimeout((function(){i(5,n=o(a,s))}))}))),Se((function(){f.forEach((function(e){return e()}))})),e.$$set=function(e){"text"in e&&i(0,c=e.text),"subtext"in e&&i(1,p=e.subtext),"tooltipY"in e&&i(2,m=e.tooltipY)},e.$$.update=function(){24&e.$$.dirty&&i(5,n=o(a,s))},[c,p,m,a,s,n,function(e){De[e?"unshift":"push"]((function(){i(4,s=e)}))},function(e){De[e?"unshift":"push"]((function(){i(3,a=e)}))}]}var ti=function(e){l.default(i,e);var t=u.default(i);function i(e){var n;return a.default(this,i),n=t.call(this),ut(d.default(n),e,ei,Zt,C,{text:0,subtext:1,tooltipY:2},Kt),c.default(n)}return i}(dt);function ii(e){N(e,"svelte-3dqxjn",'.button-element.svelte-3dqxjn.svelte-3dqxjn.svelte-3dqxjn{box-sizing:border-box;width:100%;height:100%;position:relative;cursor:pointer;pointer-events:initial;border-radius:var(--border-radius);-webkit-tap-highlight-color:transparent}.button-element.disabled.svelte-3dqxjn.svelte-3dqxjn.svelte-3dqxjn{pointer-events:none;opacity:0.33}.button-element.svelte-3dqxjn svg,.button-element.svelte-3dqxjn [slot]{min-height:12px;height:var(--icon-height);line-height:var(--icon-height);min-width:var(--icon-height);display:inline-flex;justify-content:center}.button-element.no-hover-transform.svelte-3dqxjn.svelte-3dqxjn.svelte-3dqxjn::before{content:" ";position:absolute;top:0;left:0;width:100%;height:100%;background-color:var(--foreground-color);pointer-events:none;border-radius:var(--border-radius);transform:scale(0);opacity:0;transition:transform 0.15s linear, opacity 0.15s linear}.button-element.svelte-3dqxjn .slot-content.svelte-3dqxjn.svelte-3dqxjn:not(.no-shadow){filter:drop-shadow(0 2px 0 rgba(0, 0, 0, 0.25))}.button-element.svelte-3dqxjn .no-shadow.svelte-3dqxjn >*{text-shadow:none}.button-element.standalone.svelte-3dqxjn.svelte-3dqxjn.svelte-3dqxjn{overflow:hidden;border-radius:var(--border-radius);background-color:var(--bg-color-button);font-size:0.9em;min-height:var(--bg-height);aspect-ratio:1}.button-element.standalone.with-text.svelte-3dqxjn.svelte-3dqxjn.svelte-3dqxjn{padding:0 max(var(--margin-size) * 0.8, 12px);aspect-ratio:unset}.button-element.standalone.svelte-3dqxjn.svelte-3dqxjn.svelte-3dqxjn:hover{background-color:var(--bg-color-button-hover)}.button-element.standalone.svelte-3dqxjn .slot-content.svelte-3dqxjn.svelte-3dqxjn{display:flex;align-items:center;justify-content:center;transition:opacity 0.3s ease;gap:calc(var(--margin-size) / 2)}@supports (-webkit-touch-callout: none) and (not (translate: none)){}.button-element.standalone.svelte-3dqxjn .slot-content.svelte-3dqxjn > *{display:flex;align-items:center}.button-element.svelte-3dqxjn:not(.with-text) .button-text.svelte-3dqxjn.svelte-3dqxjn{display:none}.button-element.svelte-3dqxjn .button-content.svelte-3dqxjn.svelte-3dqxjn{width:var(--bg-width);height:var(--bg-height);transition:transform 0.2s ease-in-out, opacity 0.2s ease-in-out}.button-element.svelte-3dqxjn .button-content.svelte-3dqxjn>.svelte-3dqxjn{box-sizing:border-box;position:var(--button-position);top:0;left:0;width:100%;height:100%;display:grid;place-content:center;transition:transform 0.2s ease-in-out, opacity 0.2s ease-in-out}.button-element.svelte-3dqxjn .button-content.noOpacityTransform.svelte-3dqxjn>.svelte-3dqxjn{transition:transform 0.2s ease-in-out}.button-element.svelte-3dqxjn .button-content .normal.svelte-3dqxjn.svelte-3dqxjn{opacity:1}.button-element.svelte-3dqxjn .button-content .toggled.svelte-3dqxjn.svelte-3dqxjn{opacity:0}.button-element.svelte-3dqxjn .button-content.svelte-3dqxjn.svelte-3dqxjn:not(.no-hover-transform):hover{transform:var(--hover-transform)}.button-element:not(.standalone).no-hover-transform.svelte-3dqxjn.svelte-3dqxjn.svelte-3dqxjn:hover::before{transform:scale(1);transition:transform 0.2s linear, opacity 0.2s linear}.button-element:not(.standalone).no-hover-transform:hover.mid-state.svelte-3dqxjn.svelte-3dqxjn.svelte-3dqxjn::before{transition:none;transform:scale(0)}.button-element:not(.standalone).no-hover-transform.svelte-3dqxjn.svelte-3dqxjn.svelte-3dqxjn:hover:not(.touched)::before{opacity:0.1}.button-element:not(.standalone).no-hover-transform:hover:not(.touched).just-clicked.svelte-3dqxjn.svelte-3dqxjn.svelte-3dqxjn::before{transform:scale(1.33);opacity:0}.button-element:not(.standalone).no-hover-transform:hover:not(.touched).mid-state.svelte-3dqxjn.svelte-3dqxjn.svelte-3dqxjn::before{transform:scale(1)}.button-element:not(.standalone).no-hover-transform:hover.touched.svelte-3dqxjn.svelte-3dqxjn.svelte-3dqxjn::before{opacity:0}.button-element:not(.standalone).no-hover-transform:hover.touched.just-clicked.svelte-3dqxjn.svelte-3dqxjn.svelte-3dqxjn::before{transform:scale(1.33);opacity:0.1}.button-element:not(.standalone).no-hover-transform:hover.touched.mid-state.svelte-3dqxjn.svelte-3dqxjn.svelte-3dqxjn::before{transform:scale(1.33)}.button-element.toggled.no-toggle-transform.svelte-3dqxjn .button-content .normal.svelte-3dqxjn.svelte-3dqxjn{opacity:0}.button-element.toggled.no-toggle-transform.svelte-3dqxjn .button-content .toggled.svelte-3dqxjn.svelte-3dqxjn{opacity:1}.button-element.svelte-3dqxjn .button-tooltip.svelte-3dqxjn.svelte-3dqxjn{pointer-events:none;opacity:0;transition:opacity 0.2s ease-in-out;height:0}.button-element.svelte-3dqxjn:not(.touched):hover .button-tooltip.svelte-3dqxjn.svelte-3dqxjn{opacity:1}')}var ni=function(e){return{}},ai=function(e){return{}},si=function(e){return{}},oi=function(e){return{}};function ri(e){var t;return{c:function(){t=Z(e[20])},m:function(e,i){J(e,t,i)},p:function(e,i){1048576&i[0]&&le(t,e[20])},d:function(e){e&&Q(t)}}}function li(e){var t,i,n,a,s,o=e[46].toggled,r=I(o,e,e[47],ai);return a=new Qt({props:{$$slots:{default:[ui]},$$scope:{ctx:e}}}),{c:function(){t=Y("div"),r&&r.c(),i=ee(),n=Y("span"),st(a.$$.fragment),se(n,"class","button-text svelte-3dqxjn"),he(n,"no-shadow",e[21]),se(t,"class","toggled slot-content svelte-3dqxjn"),he(t,"no-shadow",e[21])},m:function(e,o){J(e,t,o),r&&r.m(t,null),F(t,i),F(t,n),ot(a,n,null),s=!0},p:function(e,i){r&&r.p&&(!s||65536&i[1])&&E(r,o,e,e[47],s?D(o,e[47],i,ni):M(e[47]),ai);var l={};1048576&i[0]|65536&i[1]&&(l.$$scope={dirty:i,ctx:e}),a.$set(l),(!s||2097152&i[0])&&he(n,"no-shadow",e[21]),(!s||2097152&i[0])&&he(t,"no-shadow",e[21])},i:function(e){s||(Ye(r,e),Ye(a.$$.fragment,e),s=!0)},o:function(e){Xe(r,e),Xe(a.$$.fragment,e),s=!1},d:function(e){e&&Q(t),r&&r.d(e),rt(a)}}}function ui(e){var t;return{c:function(){t=Z(e[20])},m:function(e,i){J(e,t,i)},p:function(e,i){1048576&i[0]&&le(t,e[20])},d:function(e){e&&Q(t)}}}function di(e){var t,i,n;return i=new ti({props:{text:e[28],subtext:e[16]||e[31].disableKeyboardControls?"":e[37](e[29]),tooltipY:e[14]}}),{c:function(){t=Y("div"),st(i.$$.fragment),se(t,"class","button-tooltip svelte-3dqxjn")},m:function(e,a){J(e,t,a),ot(i,t,null),n=!0},p:function(e,t){var n={};268435456&t[0]&&(n.text=e[28]),536936448&t[0]|1&t[1]&&(n.subtext=e[16]||e[31].disableKeyboardControls?"":e[37](e[29])),16384&t[0]&&(n.tooltipY=e[14]),i.$set(n)},i:function(e){n||(Ye(i.$$.fragment,e),n=!0)},o:function(e){Xe(i.$$.fragment,e),n=!1},d:function(e){e&&Q(t),rt(i)}}}function ci(e){var t,i,n,a,s,o,r,l,u,d,c,h,p=e[46].normal,_=I(p,e,e[47],oi);o=new Qt({props:{$$slots:{default:[ri]},$$scope:{ctx:e}}});var m="absolute"===e[11]&&li(e),f=!e[26]&&e[28]&&!e[15]&&di(e);return{c:function(){t=Y("div"),i=Y("div"),n=Y("div"),_&&_.c(),a=ee(),s=Y("span"),st(o.$$.fragment),r=ee(),m&&m.c(),u=ee(),f&&f.c(),se(s,"class","button-text svelte-3dqxjn"),he(s,"no-shadow",e[21]),se(n,"class","normal slot-content svelte-3dqxjn"),he(n,"no-shadow",e[21]),de(n,"transform",e[2]?e[0]:""),se(i,"class","button-content svelte-3dqxjn"),se(i,"aria-label",l=e[25]||e[28]),se(i,"tabindex",e[19]),se(i,"role","button"),he(i,"noOpacityTransform",e[3]),de(i,"background-color",e[6]),de(i,"border-radius",e[17]?"0px":e[5]),de(i,"border",e[7]),se(t,"class","button-element svelte-3dqxjn"),he(t,"touched",e[24]),he(t,"disabled",e[27]),he(t,"disabled-click-only",e[13]),he(t,"toggled",e[2]),he(t,"just-clicked",e[22]),he(t,"mid-state",e[23]),he(t,"no-toggle-transform",!e[0]),he(t,"no-hover-transform",!e[1]),he(t,"standalone",e[18]),he(t,"with-text",!!e[20]),de(t,"--foreground-color",e[30]),de(t,"--border-radius",e[17]?"0px":e[5]),de(t,"--hover-transform",e[24]?"none":e[1]),de(t,"--icon-height",e[12]+"px"),de(t,"--bg-height",e[10]?e[10]:e[8]),de(t,"--bg-width",e[9]?e[9]:e[8]),de(t,"--button-position",e[11]),de(t,"color",e[4])},m:function(l,p){J(l,t,p),F(t,i),F(i,n),_&&_.m(n,null),F(n,a),F(n,s),ot(o,s,null),F(i,r),m&&m.m(i,null),F(t,u),f&&f.m(t,null),d=!0,c||(h=ie(t,"click",e[38]),c=!0)},p:function(e,a){_&&_.p&&(!d||65536&a[1])&&E(_,p,e,e[47],d?D(p,e[47],a,si):M(e[47]),oi);var r={};1048576&a[0]|65536&a[1]&&(r.$$scope={dirty:a,ctx:e}),o.$set(r),(!d||2097152&a[0])&&he(s,"no-shadow",e[21]),(!d||2097152&a[0])&&he(n,"no-shadow",e[21]),5&a[0]&&de(n,"transform",e[2]?e[0]:""),"absolute"===e[11]?m?(m.p(e,a),2048&a[0]&&Ye(m,1)):((m=li(e)).c(),Ye(m,1),m.m(i,null)):m&&(Qe(),Xe(m,1,1,(function(){m=null})),Ke()),(!d||301989888&a[0]&&l!==(l=e[25]||e[28]))&&se(i,"aria-label",l),(!d||524288&a[0])&&se(i,"tabindex",e[19]),(!d||8&a[0])&&he(i,"noOpacityTransform",e[3]),64&a[0]&&de(i,"background-color",e[6]),131104&a[0]&&de(i,"border-radius",e[17]?"0px":e[5]),128&a[0]&&de(i,"border",e[7]),e[26]||!e[28]||e[15]?f&&(Qe(),Xe(f,1,1,(function(){f=null})),Ke()):f?(f.p(e,a),335577088&a[0]&&Ye(f,1)):((f=di(e)).c(),Ye(f,1),f.m(t,null)),(!d||16777216&a[0])&&he(t,"touched",e[24]),(!d||134217728&a[0])&&he(t,"disabled",e[27]),(!d||8192&a[0])&&he(t,"disabled-click-only",e[13]),(!d||4&a[0])&&he(t,"toggled",e[2]),(!d||4194304&a[0])&&he(t,"just-clicked",e[22]),(!d||8388608&a[0])&&he(t,"mid-state",e[23]),(!d||1&a[0])&&he(t,"no-toggle-transform",!e[0]),(!d||2&a[0])&&he(t,"no-hover-transform",!e[1]),(!d||262144&a[0])&&he(t,"standalone",e[18]),(!d||1048576&a[0])&&he(t,"with-text",!!e[20]),1073741824&a[0]&&de(t,"--foreground-color",e[30]),131104&a[0]&&de(t,"--border-radius",e[17]?"0px":e[5]),16777218&a[0]&&de(t,"--hover-transform",e[24]?"none":e[1]),4096&a[0]&&de(t,"--icon-height",e[12]+"px"),1280&a[0]&&de(t,"--bg-height",e[10]?e[10]:e[8]),768&a[0]&&de(t,"--bg-width",e[9]?e[9]:e[8]),2048&a[0]&&de(t,"--button-position",e[11]),16&a[0]&&de(t,"color",e[4])},i:function(e){d||(Ye(_,e),Ye(o.$$.fragment,e),Ye(m),Ye(f),d=!0)},o:function(e){Xe(_,e),Xe(o.$$.fragment,e),Xe(m),Xe(f),d=!1},d:function(e){e&&Q(t),_&&_.d(e),rt(o),m&&m.d(),f&&f.d(),c=!1,h()}}}function hi(e,t,i){var n,a,s,o,r,l,u,d,c,h,p,_=t.$$slots,m=void 0===_?{}:_,f=t.$$scope,v=t.toggleTransform,g=void 0===v?"":v,y=t.hoverTransform,b=void 0===y?"":y,k=t.toggled,w=void 0!==k&&k,$=t.noOpacityTransform,C=void 0!==$&&$,S=t.color,P=void 0===S?"unset":S,x=t.bgBorderRadius,I=void 0===x?"50%":x,T=t.bgColor,D=void 0===T?"transparent":T,E=t.border,M=void 0===E?"":E,B=t.bgSize,L=void 0===B?"100%":B,R=t.bgWidth,H=void 0===R?"":R,q=t.bgHeight,O=void 0===q?"":q,z=t.buttonPosition,V=void 0===z?"absolute":z,j=t.iconHeight,F=void 0===j?24:j,N=t.disabled,U=void 0!==N&&N,W=t.disabledClick,G=void 0!==W&&W,J=t.name,Q=void 0===J?"":J,K=t.tooltipOffsetY,Y=void 0===K?"-50px":K,X=t.hideToolTip,Z=void 0!==X&&X,ee=t.hideTooltipSubText,te=void 0!==ee&&ee,ie=t.isSquare,ne=void 0!==ie&&ie,ae=t.standalone,se=void 0!==ae&&ae,oe=t.tabindex,re=void 0===oe?0:oe,le=t.ariaLabel,ue=void 0===le?"":le,de=t.text,ce=void 0===de?"":de,he=t.noTextShadow,pe=void 0!==he&&he,_e=Ae(zt),me=_e.detections,fe=_e.foregroundColor,ve=_e.playout,ge=_e.translations,ye=_e.elementVisibility,be=_e.translate,ke=_e.shortcutConfigs;A(e,me,(function(e){return i(44,d=e)})),A(e,fe,(function(e){return i(30,h=e)})),A(e,ve,(function(e){return i(31,p=e)})),A(e,ge,(function(e){return i(43,u=e)})),A(e,ye,(function(e){return i(45,c=e)}));var we,$e,Ce=!1,Se=!1,Pe=!1;return e.$$set=function(e){"toggleTransform"in e&&i(0,g=e.toggleTransform),"hoverTransform"in e&&i(1,b=e.hoverTransform),"toggled"in e&&i(2,w=e.toggled),"noOpacityTransform"in e&&i(3,C=e.noOpacityTransform),"color"in e&&i(4,P=e.color),"bgBorderRadius"in e&&i(5,I=e.bgBorderRadius),"bgColor"in e&&i(6,D=e.bgColor),"border"in e&&i(7,M=e.border),"bgSize"in e&&i(8,L=e.bgSize),"bgWidth"in e&&i(9,H=e.bgWidth),"bgHeight"in e&&i(10,O=e.bgHeight),"buttonPosition"in e&&i(11,V=e.buttonPosition),"iconHeight"in e&&i(12,F=e.iconHeight),"disabled"in e&&i(39,U=e.disabled),"disabledClick"in e&&i(13,G=e.disabledClick),"name"in e&&i(40,Q=e.name),"tooltipOffsetY"in e&&i(14,Y=e.tooltipOffsetY),"hideToolTip"in e&&i(15,Z=e.hideToolTip),"hideTooltipSubText"in e&&i(16,te=e.hideTooltipSubText),"isSquare"in e&&i(17,ne=e.isSquare),"standalone"in e&&i(18,se=e.standalone),"tabindex"in e&&i(19,re=e.tabindex),"ariaLabel"in e&&i(41,ue=e.ariaLabel),"text"in e&&i(20,ce=e.text),"noTextShadow"in e&&i(21,pe=e.noTextShadow),"$$scope"in e&&i(47,f=e.$$scope)},e.$$.update=function(){var t,h;4608&e.$$.dirty[1]&&i(42,n=Q&&(null==u?void 0:u["tooltip-".concat(Q)])),512&e.$$.dirty[1]&&i(29,a=Q&&(null==(t=ke.find((function(e){return e.elementName===Q})))?void 0:t.keyLabel)),4&e.$$.dirty[0]|2048&e.$$.dirty[1]&&i(28,s=null!=n&&n.includes("/")?null==n?void 0:n.split("/")[w?1:0]:n),17152&e.$$.dirty[1]&&i(27,o=U||(null==(h=null==c?void 0:c[Q])?void 0:h.disabled)),8192&e.$$.dirty[1]&&i(26,r=null==d?void 0:d.isMobileDevice),5632&e.$$.dirty[1]&&i(25,l=ue&&Q&&(null==u?void 0:u["aria-".concat(Q)]))},[g,b,w,C,P,I,D,M,L,H,O,V,F,G,Y,Z,te,ne,se,re,ce,pe,Ce,Se,Pe,l,r,o,s,a,h,p,me,fe,ve,ge,ye,be,function(e){i(24,Pe="touch"===e.pointerType),i(22,Ce=!0),i(23,Se=!1),clearTimeout(we),clearTimeout($e),$e=setTimeout((function(){return i(23,Se=!0)}),300),we=setTimeout((function(){i(22,Ce=!1),i(23,Se=!1)}),500)},U,Q,ue,n,u,d,c,m,f]}var pi=function(e){l.default(i,e);var t=u.default(i);function i(e){var n;return a.default(this,i),n=t.call(this),ut(d.default(n),e,hi,ci,C,{toggleTransform:0,hoverTransform:1,toggled:2,noOpacityTransform:3,color:4,bgBorderRadius:5,bgColor:6,border:7,bgSize:8,bgWidth:9,bgHeight:10,buttonPosition:11,iconHeight:12,disabled:39,disabledClick:13,name:40,tooltipOffsetY:14,hideToolTip:15,hideTooltipSubText:16,isSquare:17,standalone:18,tabindex:19,ariaLabel:41,text:20,noTextShadow:21},ii,[-1,-1]),c.default(n)}return i}(dt);function _i(e){var t,i;return{c:function(){t=X("svg"),se(i=X("path"),"d","M12.778.702c.296.271.296.71 0 .956L5.113 9.279c-.247.294-.688.294-.961 0L.204 5.353c-.272-.245-.272-.684 0-.956s.713-.268.985 0l3.456 3.438L11.817.702c.273-.27.714-.27.961 0z"),se(i,"fill","#fff"),se(t,"xmlns","http://www.w3.org/2000/svg"),se(t,"viewBox","0 0 13 10"),se(t,"fill","none")},m:function(e,n){J(e,t,n),F(t,i)},p:v,i:v,o:v,d:function(e){e&&Q(t)}}}var mi=function(e){l.default(i,e);var t=u.default(i);function i(e){var n;return a.default(this,i),n=t.call(this),ut(d.default(n),e,null,_i,C,{}),c.default(n)}return i}(dt);function fi(e){var t,i;return{c:function(){t=X("svg"),se(i=X("path"),"d","M6.125.5a.88.88 0 0 1 .619.251c.342.335.342.877 0 1.212L2.111 6.5l4.633 4.537c.342.335.342.877 0 1.212a.89.89 0 0 1-1.237 0L.256 7.106c-.342-.335-.342-.877 0-1.212L5.506.751A.88.88 0 0 1 6.125.5z"),se(i,"fill","#fff"),se(t,"xmlns","http://www.w3.org/2000/svg"),se(t,"viewBox","0 0 7 13"),se(t,"fill","none")},m:function(e,n){J(e,t,n),F(t,i)},p:v,i:v,o:v,d:function(e){e&&Q(t)}}}var vi=function(e){l.default(i,e);var t=u.default(i);function i(e){var n;return a.default(this,i),n=t.call(this),ut(d.default(n),e,null,fi,C,{}),c.default(n)}return i}(dt);function gi(e){var t,i;return{c:function(){t=X("svg"),se(i=X("path"),"d","M11 1L1 11M1 1L11 11"),se(i,"stroke",e[0]),se(i,"stroke-width","1.66667"),se(i,"stroke-linecap","round"),se(i,"stroke-linejoin","round"),se(t,"viewBox","-1 -1 14 14"),se(t,"fill","none"),se(t,"xmlns","http://www.w3.org/2000/svg")},m:function(e,n){J(e,t,n),F(t,i)},p:function(e,t){1&o.default(t,1)[0]&&se(i,"stroke",e[0])},i:v,o:v,d:function(e){e&&Q(t)}}}function yi(e,t,i){var n=t.color,a=void 0===n?"white":n;return e.$$set=function(e){"color"in e&&i(0,a=e.color)},[a]}var bi=function(e){l.default(i,e);var t=u.default(i);function i(e){var n;return a.default(this,i),n=t.call(this),ut(d.default(n),e,yi,gi,C,{color:0}),c.default(n)}return i}(dt);function ki(e){N(e,"svelte-1lo91q5",".animate.svelte-1lo91q5{animation:svelte-1lo91q5-fade var(--duration) ease-in-out var(--delay) infinite alternate both}@keyframes svelte-1lo91q5-fade{0%{opacity:1}100%{opacity:0}}")}function wi(e){var t,i;return{c:function(){t=X("svg"),se(i=X("path"),"d","M.875 12.5a.88.88 0 0 1-.619-.251c-.342-.335-.342-.877 0-1.212L4.889 6.5.256 1.963c-.342-.335-.342-.877 0-1.212a.89.89 0 0 1 1.237 0l5.25 5.143c.342.335.342.877 0 1.212l-5.25 5.143c-.17.168-.395.251-.619.251z"),se(i,"fill","#fff"),se(i,"class","svelte-1lo91q5"),he(i,"animate",!!e[0]),de(i,"--delay",e[0]),de(i,"--duration",e[1]),se(t,"xmlns","http://www.w3.org/2000/svg"),se(t,"viewBox","0 0 7 13"),se(t,"fill","none")},m:function(e,n){J(e,t,n),F(t,i)},p:function(e,t){var n=o.default(t,1)[0];1&n&&he(i,"animate",!!e[0]),1&n&&de(i,"--delay",e[0]),2&n&&de(i,"--duration",e[1])},i:v,o:v,d:function(e){e&&Q(t)}}}function $i(e,t,i){var n=t.animationDelay,a=void 0===n?"":n,s=t.animationDuration,o=void 0===s?"0.35s":s;return e.$$set=function(e){"animationDelay"in e&&i(0,a=e.animationDelay),"animationDuration"in e&&i(1,o=e.animationDuration)},[a,o]}var Ci=function(e){l.default(i,e);var t=u.default(i);function i(e){var n;return a.default(this,i),n=t.call(this),ut(d.default(n),e,$i,wi,C,{animationDelay:0,animationDuration:1},ki),c.default(n)}return i}(dt);function Si(e){N(e,"svelte-cp3pfz",".pane.svelte-cp3pfz.svelte-cp3pfz.svelte-cp3pfz.svelte-cp3pfz{pointer-events:initial;z-index:2;position:absolute;max-height:100%;max-width:100%;display:flex;flex-direction:column;background-color:var(--bg-color-pane);border-radius:5px}.pane.svelte-cp3pfz .pane-items.svelte-cp3pfz.svelte-cp3pfz.svelte-cp3pfz{overflow:auto;scrollbar-width:thin;display:flex;flex-direction:column;height:100%;border-radius:5px}.pane.svelte-cp3pfz .pane-items.svelte-cp3pfz.svelte-cp3pfz.svelte-cp3pfz::-webkit-scrollbar{width:5px;height:5px}.pane.svelte-cp3pfz .pane-items.svelte-cp3pfz.svelte-cp3pfz.svelte-cp3pfz::-webkit-scrollbar-track{background:#888}.pane.svelte-cp3pfz .pane-items.svelte-cp3pfz.svelte-cp3pfz.svelte-cp3pfz::-webkit-scrollbar-thumb{background:#ccc;border-radius:5px}.pane.svelte-cp3pfz .pane-items.svelte-cp3pfz.svelte-cp3pfz.svelte-cp3pfz::-webkit-scrollbar-thumb:hover{background:#f1f1f1}.pane.svelte-cp3pfz .pane-items.has-head.svelte-cp3pfz.svelte-cp3pfz.svelte-cp3pfz{margin-right:6px;margin-bottom:6px;margin-top:calc(0.8em + 14px + 0.8em + 6px);border-radius:0px 0px 5px 5px}.pane.svelte-cp3pfz.svelte-cp3pfz.svelte-cp3pfz.svelte-cp3pfz:not(.custom-pos){right:var(--margin-size);bottom:0}.pane.align-left.svelte-cp3pfz.svelte-cp3pfz.svelte-cp3pfz.svelte-cp3pfz{left:0;right:unset}.pane.custom-pos.svelte-cp3pfz.svelte-cp3pfz.svelte-cp3pfz.svelte-cp3pfz{position:initial}.pane.custom-pos.svelte-cp3pfz .pane-items.svelte-cp3pfz.svelte-cp3pfz.svelte-cp3pfz{overflow:initial}.pane.svelte-cp3pfz .item.svelte-cp3pfz.svelte-cp3pfz.svelte-cp3pfz:first-child{margin-top:auto}.pane-head.svelte-cp3pfz.svelte-cp3pfz.svelte-cp3pfz.svelte-cp3pfz{position:absolute;top:0;right:0;left:0;display:flex;cursor:pointer;padding:calc(7px + 0.5em);align-items:center;gap:0.5em;white-space:nowrap;font-size:0.8em;border-bottom:1px solid #767575;margin-top:auto;border-radius:5px 5px 0 0}@supports (-webkit-touch-callout: none) and (not (translate: none)){.pane-head.svelte-cp3pfz>.svelte-cp3pfz+.svelte-cp3pfz.svelte-cp3pfz{margin-left:0.5em}}.pane-head.svelte-cp3pfz .main-text.svelte-cp3pfz.svelte-cp3pfz.svelte-cp3pfz{font-weight:700}.pane-head.svelte-cp3pfz .caret.svelte-cp3pfz.svelte-cp3pfz.svelte-cp3pfz{width:calc(var(--font-size) * 1.33);display:flex;justify-content:center}.pane-head.svelte-cp3pfz .caret.svelte-cp3pfz svg{height:calc(var(--font-size) * 0.75)}.pane-head.svelte-cp3pfz .close.svelte-cp3pfz.svelte-cp3pfz.svelte-cp3pfz{height:0.9em;width:0.9em;margin-left:auto}.item.svelte-cp3pfz.svelte-cp3pfz.svelte-cp3pfz.svelte-cp3pfz{white-space:nowrap;cursor:pointer;padding:calc(7px + 0.3em);margin:2px;display:grid;grid-template-columns:auto 1fr auto auto;align-items:center;gap:0.5em;line-height:calc(var(--font-size) * 1.33)}@supports (-webkit-touch-callout: none) and (not (translate: none)){.item.svelte-cp3pfz>.svelte-cp3pfz+.svelte-cp3pfz.svelte-cp3pfz{margin-left:0.5em}}.item.svelte-cp3pfz .icon-container.svelte-cp3pfz.svelte-cp3pfz.svelte-cp3pfz{width:calc(var(--font-size) * 1.33);height:calc(var(--font-size) * 1.33);display:flex;justify-content:center;align-items:center}.item.svelte-cp3pfz .icon-container.svelte-cp3pfz svg{width:100%}.item.svelte-cp3pfz .icon-container.small.svelte-cp3pfz svg{width:90%}.item.svelte-cp3pfz .icon-container.mini.svelte-cp3pfz svg{width:85%}.item.svelte-cp3pfz .icon-container.check.svelte-cp3pfz svg{height:40%}.item.svelte-cp3pfz .main-text.svelte-cp3pfz.svelte-cp3pfz.svelte-cp3pfz{font-size:0.8em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:flex;justify-content:flex-start;gap:6px}@supports (-webkit-touch-callout: none) and (not (translate: none)){}.item.svelte-cp3pfz .sub-text.svelte-cp3pfz.svelte-cp3pfz.svelte-cp3pfz{color:#d0d0d0;font-size:0.7em;display:flex;justify-content:flex-start;gap:6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@supports (-webkit-touch-callout: none) and (not (translate: none)){}.item.svelte-cp3pfz .caret.svelte-cp3pfz svg{height:calc(var(--font-size) * 0.75)}.item.svelte-cp3pfz .chapter-time.svelte-cp3pfz.svelte-cp3pfz.svelte-cp3pfz{display:flex;gap:20px;margin-right:10px;align-items:center;color:#d0d0d0;font-size:0.8em}@supports (-webkit-touch-callout: none) and (not (translate: none)){.item.svelte-cp3pfz .chapter-time.svelte-cp3pfz>.svelte-cp3pfz+.svelte-cp3pfz{margin-left:20px}}.item.svelte-cp3pfz .chapter-time .time.svelte-cp3pfz.svelte-cp3pfz.svelte-cp3pfz{width:4.6ch}.item.svelte-cp3pfz .chapter-time.hours .time.svelte-cp3pfz.svelte-cp3pfz.svelte-cp3pfz{width:6.3ch}.item.svelte-cp3pfz .chapter-time .dot-container.svelte-cp3pfz.svelte-cp3pfz.svelte-cp3pfz{height:0.5em;width:0.5em;border-radius:50%}.item.svelte-cp3pfz .chapter-time.active.svelte-cp3pfz.svelte-cp3pfz.svelte-cp3pfz{font-weight:bold;color:white}.item.svelte-cp3pfz .chapter-time.active .dot-container.svelte-cp3pfz.svelte-cp3pfz.svelte-cp3pfz{background-color:white}.item.svelte-cp3pfz.svelte-cp3pfz.svelte-cp3pfz.svelte-cp3pfz:hover{background-color:var(--bg-color-pane-hover)}.quality-label.svelte-cp3pfz.svelte-cp3pfz.svelte-cp3pfz.svelte-cp3pfz{font-size:0.8em;display:inline-block;color:#d0d0d0}.pane.size-S.svelte-cp3pfz .chapter-time.svelte-cp3pfz.svelte-cp3pfz.svelte-cp3pfz{gap:10px;margin-right:0}@supports (-webkit-touch-callout: none) and (not (translate: none)){.pane.size-S.svelte-cp3pfz .chapter-time.svelte-cp3pfz>.svelte-cp3pfz+.svelte-cp3pfz{margin-left:10px}}.pane.size-XS.svelte-cp3pfz.svelte-cp3pfz.svelte-cp3pfz.svelte-cp3pfz{max-width:100%;left:0;right:0;bottom:0;top:0;background-color:rgb(33, 33, 33);max-height:calc(6 * var(--font-size) * 1.33 + 180px + 6px)}.pane.size-XS.svelte-cp3pfz .main-text.svelte-cp3pfz.svelte-cp3pfz.svelte-cp3pfz{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pane.size-XS.svelte-cp3pfz .main-text.main-menu.svelte-cp3pfz.svelte-cp3pfz.svelte-cp3pfz{overflow:visible}.pane.size-XS.svelte-cp3pfz .pane-head.svelte-cp3pfz.svelte-cp3pfz.svelte-cp3pfz,.pane.size-XS.svelte-cp3pfz .item.svelte-cp3pfz.svelte-cp3pfz.svelte-cp3pfz{background-color:unset}.pane.size-XS.svelte-cp3pfz .item.svelte-cp3pfz.svelte-cp3pfz.svelte-cp3pfz:hover{background-color:var(--bg-color-pane-hover)}.pane.size-XS.svelte-cp3pfz .pane-head.svelte-cp3pfz.svelte-cp3pfz.svelte-cp3pfz,.pane.size-XS.svelte-cp3pfz .item.svelte-cp3pfz.svelte-cp3pfz.svelte-cp3pfz:first-child{margin-top:unset}.pane.size-XS.vertical-screen.svelte-cp3pfz.svelte-cp3pfz.svelte-cp3pfz.svelte-cp3pfz{top:unset}.main-menu.svelte-cp3pfz.svelte-cp3pfz.svelte-cp3pfz.svelte-cp3pfz{font-weight:700;padding-right:2em}.main-menu.main-text.svelte-cp3pfz.svelte-cp3pfz.svelte-cp3pfz.svelte-cp3pfz{color:white !important;overflow:visible}")}function Pi(e,t,i){var n=e.slice();return n[46]=t[i],n[48]=i,n}function xi(e){var t,i,n,a,s,o,r,l,u=!e[3]&&Ai();a=new Qt({props:{$$slots:{default:[Ii]},$$scope:{ctx:e}}});var d="XS"===e[12]&&Ti(e);return{c:function(){t=Y("div"),u&&u.c(),i=ee(),n=Y("h3"),st(a.$$.fragment),s=ee(),d&&d.c(),se(n,"class","main-text svelte-cp3pfz"),se(t,"class","pane-head button-content svelte-cp3pfz"),se(t,"tabindex","0"),se(t,"aria-label",e[25]("tooltip-close"))},m:function(c,h){J(c,t,h),u&&u.m(t,null),F(t,i),F(t,n),ot(a,n,null),F(t,s),d&&d.m(t,null),o=!0,r||(l=ie(t,"click",ae(e[39])),r=!0)},p:function(e,n){e[3]?u&&(Qe(),Xe(u,1,1,(function(){u=null})),Ke()):u?8&n[0]&&Ye(u,1):((u=Ai()).c(),Ye(u,1),u.m(t,i));var s={};2&n[0]|262144&n[1]&&(s.$$scope={dirty:n,ctx:e}),a.$set(s),"XS"===e[12]?d?(d.p(e,n),4096&n[0]&&Ye(d,1)):((d=Ti(e)).c(),Ye(d,1),d.m(t,null)):d&&(Qe(),Xe(d,1,1,(function(){d=null})),Ke())},i:function(e){o||(Ye(u),Ye(a.$$.fragment,e),Ye(d),o=!0)},o:function(e){Xe(u),Xe(a.$$.fragment,e),Xe(d),o=!1},d:function(e){e&&Q(t),u&&u.d(),rt(a),d&&d.d(),r=!1,l()}}}function Ai(e){var t,i,n;return i=new vi({}),{c:function(){t=Y("div"),st(i.$$.fragment),se(t,"class","caret svelte-cp3pfz")},m:function(e,a){J(e,t,a),ot(i,t,null),n=!0},i:function(e){n||(Ye(i.$$.fragment,e),n=!0)},o:function(e){Xe(i.$$.fragment,e),n=!1},d:function(e){e&&Q(t),rt(i)}}}function Ii(e){var t;return{c:function(){t=Z(e[1])},m:function(e,i){J(e,t,i)},p:function(e,i){2&i[0]&&le(t,e[1])},d:function(e){e&&Q(t)}}}function Ti(e){var t,i,n,a,s;return i=new pi({props:{iconHeight:.6*e[14],name:"close",hideToolTip:!0,$$slots:{normal:[Di]},$$scope:{ctx:e}}}),{c:function(){t=Y("div"),st(i.$$.fragment),se(t,"class","close svelte-cp3pfz")},m:function(o,r){J(o,t,r),ot(i,t,null),n=!0,a||(s=ie(t,"click",ae((function(){$(e[0])&&e[0].apply(this,arguments)}))),a=!0)},p:function(t,n){e=t;var a={};16384&n[0]&&(a.iconHeight=.6*e[14]),262144&n[1]&&(a.$$scope={dirty:n,ctx:e}),i.$set(a)},i:function(e){n||(Ye(i.$$.fragment,e),n=!0)},o:function(e){Xe(i.$$.fragment,e),n=!1},d:function(e){e&&Q(t),rt(i),a=!1,s()}}}function Di(e){var t,i,n;return i=new bi({}),{c:function(){t=Y("div"),st(i.$$.fragment),se(t,"slot","normal")},m:function(e,a){J(e,t,a),ot(i,t,null),n=!0},p:v,i:function(e){n||(Ye(i.$$.fragment,e),n=!0)},o:function(e){Xe(i.$$.fragment,e),n=!1},d:function(e){e&&Q(t),rt(i)}}}function Ei(e){var t,i,n;return i=new mi({}),{c:function(){t=Y("div"),st(i.$$.fragment),se(t,"class","icon-container check svelte-cp3pfz"),de(t,"visibility",e[48]===e[5]?"visible":"hidden")},m:function(e,a){J(e,t,a),ot(i,t,null),n=!0},p:function(e,i){32&i[0]&&de(t,"visibility",e[48]===e[5]?"visible":"hidden")},i:function(e){n||(Ye(i.$$.fragment,e),n=!0)},o:function(e){Xe(i.$$.fragment,e),n=!1},d:function(e){e&&Q(t),rt(i)}}}function Mi(e){var t,i,n,a,s,o=kt(e[46].start)+"";return{c:function(){t=Y("div"),i=Y("div"),n=ee(),a=Y("div"),s=Z(o),se(i,"class","dot-container svelte-cp3pfz"),se(a,"class","time svelte-cp3pfz"),se(t,"class","chapter-time svelte-cp3pfz"),he(t,"active",e[48]===e[5]),he(t,"hours",e[15]>=3600)},m:function(e,o){J(e,t,o),F(t,i),F(t,n),F(t,a),F(a,s)},p:function(e,i){16&i[0]&&o!==(o=kt(e[46].start)+"")&&le(s,o),32&i[0]&&he(t,"active",e[48]===e[5]),32768&i[0]&&he(t,"hours",e[15]>=3600)},i:v,o:v,d:function(e){e&&Q(t)}}}function Bi(e){var t,i,n,a,s=e[46].icon;return s&&(i=_e(s,{})),{c:function(){t=Y("div"),i&&st(i.$$.fragment),se(t,"class",n="icon-container "+(e[46].iconClass||"")+" svelte-cp3pfz")},m:function(e,n){J(e,t,n),i&&ot(i,t,null),a=!0},p:function(e,o){if(16&o[0]&&s!==(s=e[46].icon)){if(i){Qe();var r=i;Xe(r.$$.fragment,1,0,(function(){rt(r,1)})),Ke()}s?(st((i=_e(s,{})).$$.fragment),Ye(i.$$.fragment,1),ot(i,t,null)):i=null}(!a||16&o[0]&&n!==(n="icon-container "+(e[46].iconClass||"")+" svelte-cp3pfz"))&&se(t,"class",n)},i:function(e){a||(i&&Ye(i.$$.fragment,e),a=!0)},o:function(e){i&&Xe(i.$$.fragment,e),a=!1},d:function(e){e&&Q(t),i&&rt(i)}}}function Li(e){var t,i=e[46]+"";return{c:function(){t=Z(i)},m:function(e,i){J(e,t,i)},p:function(e,n){16&n[0]&&i!==(i=e[46]+"")&&le(t,i)},i:v,o:v,d:function(e){e&&Q(t)}}}function Ri(e){var t,i,n,a,s=function(e,t){return e[46].href?0:1},o=[Ni,Fi],r=[];return t=s(e),i=r[t]=o[t](e),{c:function(){i.c(),n=te()},m:function(e,i){r[t].m(e,i),J(e,n,i),a=!0},p:function(e,a){var l=t;(t=s(e))===l?r[t].p(e,a):(Qe(),Xe(r[l],1,1,(function(){r[l]=null})),Ke(),(i=r[t])?i.p(e,a):(i=r[t]=o[t](e)).c(),Ye(i,1),i.m(n.parentNode,n))},i:function(e){a||(Ye(i),a=!0)},o:function(e){Xe(i),a=!1},d:function(e){e&&Q(n),r[t].d(e)}}}function Hi(e){var t,i;return t=new Qt({props:{$$slots:{default:[Gi]},$$scope:{ctx:e}}}),{c:function(){st(t.$$.fragment)},m:function(e,n){ot(t,e,n),i=!0},p:function(e,i){var n={};16&i[0]|262144&i[1]&&(n.$$scope={dirty:i,ctx:e}),t.$set(n)},i:function(e){i||(Ye(t.$$.fragment,e),i=!0)},o:function(e){Xe(t.$$.fragment,e),i=!1},d:function(e){rt(t,e)}}}function qi(e){var t,i=e[46].label+"";return{c:function(){t=Z(i)},m:function(e,i){J(e,t,i)},p:function(e,n){16&n[0]&&i!==(i=e[46].label+"")&&le(t,i)},i:v,o:v,d:function(e){e&&Q(t)}}}function Oi(e){var t,i=e[46].languagename+"";return{c:function(){t=Z(i)},m:function(e,i){J(e,t,i)},p:function(e,n){16&n[0]&&i!==(i=e[46].languagename+"")&&le(t,i)},i:v,o:v,d:function(e){e&&Q(t)}}}function zi(e){var t,i=(1===e[46]?e[25]("Normal"):e[46])+"";return{c:function(){t=Z(i)},m:function(e,i){J(e,t,i)},p:function(e,n){16&n[0]&&i!==(i=(1===e[46]?e[25]("Normal"):e[46])+"")&&le(t,i)},i:v,o:v,d:function(e){e&&Q(t)}}}function Vi(e){var t,i=e[46].title+"";return{c:function(){t=Z(i)},m:function(e,i){J(e,t,i)},p:function(e,n){16&n[0]&&i!==(i=e[46].title+"")&&le(t,i)},i:v,o:v,d:function(e){e&&Q(t)}}}function ji(e){var t,i,n,a,s=e[46].title+"",o=an(e[46].width,e[46].height)+"";return{c:function(){t=Z(s),i=ee(),n=Y("span"),a=Z(o),se(n,"class","quality-label svelte-cp3pfz")},m:function(e,s){J(e,t,s),J(e,i,s),J(e,n,s),F(n,a)},p:function(e,i){16&i[0]&&s!==(s=e[46].title+"")&&le(t,s),16&i[0]&&o!==(o=an(e[46].width,e[46].height)+"")&&le(a,o)},i:v,o:v,d:function(e){e&&(Q(t),Q(i),Q(n))}}}function Fi(e){var t,i;return t=new Qt({props:{$$slots:{default:[Ui]},$$scope:{ctx:e}}}),{c:function(){st(t.$$.fragment)},m:function(e,n){ot(t,e,n),i=!0},p:function(e,i){var n={};16&i[0]|262144&i[1]&&(n.$$scope={dirty:i,ctx:e}),t.$set(n)},i:function(e){i||(Ye(t.$$.fragment,e),i=!0)},o:function(e){Xe(t.$$.fragment,e),i=!1},d:function(e){rt(t,e)}}}function Ni(e){var t,i,n,a;return i=new Qt({props:{$$slots:{default:[Wi]},$$scope:{ctx:e}}}),{c:function(){t=Y("a"),st(i.$$.fragment),se(t,"href",n=e[46].href),se(t,"target","_blank"),se(t,"rel","noreferrer"),se(t,"tabindex","-1")},m:function(e,n){J(e,t,n),ot(i,t,null),a=!0},p:function(e,s){var o={};16&s[0]|262144&s[1]&&(o.$$scope={dirty:s,ctx:e}),i.$set(o),(!a||16&s[0]&&n!==(n=e[46].href))&&se(t,"href",n)},i:function(e){a||(Ye(i.$$.fragment,e),a=!0)},o:function(e){Xe(i.$$.fragment,e),a=!1},d:function(e){e&&Q(t),rt(i)}}}function Ui(e){var t,i=e[46].label+"";return{c:function(){t=Z(i)},m:function(e,i){J(e,t,i)},p:function(e,n){16&n[0]&&i!==(i=e[46].label+"")&&le(t,i)},d:function(e){e&&Q(t)}}}function Wi(e){var t,i=e[46].label+"";return{c:function(){t=Z(i)},m:function(e,i){J(e,t,i)},p:function(e,n){16&n[0]&&i!==(i=e[46].label+"")&&le(t,i)},d:function(e){e&&Q(t)}}}function Gi(e){var t,i=e[46].title+"";return{c:function(){t=Z(i)},m:function(e,i){J(e,t,i)},p:function(e,n){16&n[0]&&i!==(i=e[46].title+"")&&le(t,i)},d:function(e){e&&Q(t)}}}function Ji(e){var t,i,n,a,s=function(e,t){return"Quality"===e[46].title?Zi:"Chapters"===e[46].title?Xi:"Playback speed"===e[46].title?Yi:"Subtitles"===e[46].title?Ki:"Audiotrack"===e[46].title?Qi:void 0},o=s(e),r=o&&o(e),l=!e[46].action&&en();return{c:function(){t=Y("div"),r&&r.c(),i=ee(),l&&l.c(),n=te(),se(t,"class","sub-text svelte-cp3pfz")},m:function(e,s){J(e,t,s),r&&r.m(t,null),J(e,i,s),l&&l.m(e,s),J(e,n,s),a=!0},p:function(e,i){o===(o=s(e))&&r?r.p(e,i):(r&&r.d(1),(r=o&&o(e))&&(r.c(),r.m(t,null))),e[46].action?l&&(Qe(),Xe(l,1,1,(function(){l=null})),Ke()):l?16&i[0]&&Ye(l,1):((l=en()).c(),Ye(l,1),l.m(n.parentNode,n))},i:function(e){a||(Ye(l),a=!0)},o:function(e){Xe(l),a=!1},d:function(e){e&&(Q(t),Q(i),Q(n)),r&&r.d(),l&&l.d(e)}}}function Qi(e){var t,i,n=(null==(t=e[10])?void 0:t.label)+"";return{c:function(){i=Z(n)},m:function(e,t){J(e,i,t)},p:function(e,t){var a;1024&t[0]&&n!==(n=(null==(a=e[10])?void 0:a.label)+"")&&le(i,n)},d:function(e){e&&Q(i)}}}function Ki(e){var t,i,n=((null==(t=e[11])?void 0:t.languagename)||e[25]("Off"))+"";return{c:function(){i=Z(n)},m:function(e,t){J(e,i,t)},p:function(e,t){var a;2048&t[0]&&n!==(n=((null==(a=e[11])?void 0:a.languagename)||e[25]("Off"))+"")&&le(i,n)},d:function(e){e&&Q(i)}}}function Yi(e){var t,i=(1===e[18]?e[25]("Normal"):e[18])+"";return{c:function(){t=Z(i)},m:function(e,i){J(e,t,i)},p:function(e,n){262144&n[0]&&i!==(i=(1===e[18]?e[25]("Normal"):e[18])+"")&&le(t,i)},d:function(e){e&&Q(t)}}}function Xi(e){var t,i,n=(null==(t=e[17])?void 0:t.title)+"";return{c:function(){i=Z(n)},m:function(e,t){J(e,i,t)},p:function(e,t){var a;131072&t[0]&&n!==(n=(null==(a=e[17])?void 0:a.title)+"")&&le(i,n)},d:function(e){e&&Q(i)}}}function Zi(e){var t,i,n,a,s,o,r=e[16].title+"",l=an(null==(t=e[16])?void 0:t.width,null==(i=e[16])?void 0:i.height)+"";return{c:function(){n=Z(r),a=ee(),s=Y("span"),o=Z(l),se(s,"class","quality-label svelte-cp3pfz")},m:function(e,t){J(e,n,t),J(e,a,t),J(e,s,t),F(s,o)},p:function(e,t){var i,a;65536&t[0]&&r!==(r=e[16].title+"")&&le(n,r),65536&t[0]&&l!==(l=an(null==(i=e[16])?void 0:i.width,null==(a=e[16])?void 0:a.height)+"")&&le(o,l)},d:function(e){e&&(Q(n),Q(a),Q(s))}}}function en(e){var t,i,n;return i=new Ci({}),{c:function(){t=Y("div"),st(i.$$.fragment),se(t,"class","caret svelte-cp3pfz")},m:function(e,a){J(e,t,a),ot(i,t,null),n=!0},i:function(e){n||(Ye(i.$$.fragment,e),n=!0)},o:function(e){Xe(i.$$.fragment,e),n=!1},d:function(e){e&&Q(t),rt(i)}}}function tn(e){var t,i,n,a,s,o,r,l,u,d,c,h,p=function(e,t){return e[46].icon?0:"Chapters"===e[1]?1:2},_=function(e,t){return"Quality"===e[1]?0:"Chapters"===e[1]?1:"Playback speed"===e[1]?2:"Subtitles"===e[1]?3:"Audiotrack"===e[1]?4:"Main menu"===e[1]?5:"custom"===e[1]?6:7},m=function(){return e[40](e[46])},f=function(){return e[41](e[48])},v=[Bi,Mi,Ei],g=[];i=p(e),n=g[i]=v[i](e);var y=[ji,Vi,zi,Oi,qi,Hi,Ri,Li],b=[];o=_(e),r=b[o]=y[o](e);var k="Main menu"===e[1]&&Ji(e);return{c:function(){t=Y("li"),n.c(),a=ee(),s=Y("div"),r.c(),l=ee(),k&&k.c(),u=ee(),se(s,"class","main-text svelte-cp3pfz"),he(s,"main-menu","Main menu"===e[1]),de(s,"font-weight","Chapters"===e[1]&&e[48]===e[5]?"bold":"initial"),de(s,"color","Chapters"===e[1]&&e[48]===e[5]?"#fff":"#d0d0d0"),se(t,"class","item button-content svelte-cp3pfz"),se(t,"tabindex","0")},m:function(n,r){J(n,t,r),g[i].m(t,null),F(t,a),F(t,s),b[o].m(s,null),F(t,l),k&&k.m(t,null),F(t,u),d=!0,c||(h=[ie(t,"click",ae(m)),ie(t,"mouseenter",f),ie(t,"mouseleave",e[42])],c=!0)},p:function(l,c){var h=i;(i=p(e=l))===h?g[i].p(e,c):(Qe(),Xe(g[h],1,1,(function(){g[h]=null})),Ke(),(n=g[i])?n.p(e,c):(n=g[i]=v[i](e)).c(),Ye(n,1),n.m(t,a));var m=o;(o=_(e))===m?b[o].p(e,c):(Qe(),Xe(b[m],1,1,(function(){b[m]=null})),Ke(),(r=b[o])?r.p(e,c):(r=b[o]=y[o](e)).c(),Ye(r,1),r.m(s,null)),(!d||2&c[0])&&he(s,"main-menu","Main menu"===e[1]),34&c[0]&&de(s,"font-weight","Chapters"===e[1]&&e[48]===e[5]?"bold":"initial"),34&c[0]&&de(s,"color","Chapters"===e[1]&&e[48]===e[5]?"#fff":"#d0d0d0"),"Main menu"===e[1]?k?(k.p(e,c),2&c[0]&&Ye(k,1)):((k=Ji(e)).c(),Ye(k,1),k.m(t,u)):k&&(Qe(),Xe(k,1,1,(function(){k=null})),Ke())},i:function(e){d||(Ye(n),Ye(r),Ye(k),d=!0)},o:function(e){Xe(n),Xe(r),Xe(k),d=!1},d:function(e){e&&Q(t),g[i].d(),b[o].d(),k&&k.d(),c=!1,w(h)}}}function nn(e){for(var t,i,n,a,s,o,r=!e[2]&&xi(e),l=nt(e[4]),u=[],d=0;d<l.length;d+=1)u[d]=tn(Pi(e,l,d));var c=function(e){return Xe(u[e],1,1,(function(){u[e]=null}))};return{c:function(){t=Y("div"),r&&r.c(),i=ee(),n=Y("ul");for(var s=0;s<u.length;s+=1)u[s].c();se(n,"class","pane-items svelte-cp3pfz"),he(n,"has-head",!e[2]),se(t,"class",a="pane active size-"+e[12]+" svelte-cp3pfz"),he(t,"vertical-screen",e[13]),he(t,"custom-pos",e[6]),he(t,"align-left",e[7]),de(t,"min-width",e[32](e[1]))},m:function(a,s){J(a,t,s),r&&r.m(t,null),F(t,i),F(t,n);for(var l=0;l<u.length;l+=1)u[l]&&u[l].m(n,null);e[43](n),e[44](t),o=!0},p:function(s,d){if((e=s)[2]?r&&(Qe(),Xe(r,1,1,(function(){r=null})),Ke()):r?(r.p(e,d),4&d[0]&&Ye(r,1)):((r=xi(e)).c(),Ye(r,1),r.m(t,i)),34049074&d[0]|13&d[1]){var h;for(l=nt(e[4]),h=0;h<l.length;h+=1){var p=Pi(e,l,h);u[h]?(u[h].p(p,d),Ye(u[h],1)):(u[h]=tn(p),u[h].c(),Ye(u[h],1),u[h].m(n,null))}for(Qe(),h=l.length;h<u.length;h+=1)c(h);Ke()}(!o||4&d[0])&&he(n,"has-head",!e[2]),(!o||4096&d[0]&&a!==(a="pane active size-"+e[12]+" svelte-cp3pfz"))&&se(t,"class",a),(!o||12288&d[0])&&he(t,"vertical-screen",e[13]),(!o||4160&d[0])&&he(t,"custom-pos",e[6]),(!o||4224&d[0])&&he(t,"align-left",e[7]),2&d[0]&&de(t,"min-width",e[32](e[1]))},i:function(i){if(!o){Ye(r);for(var n=0;n<l.length;n+=1)Ye(u[n]);qe((function(){o&&(s||(s=it(t,Ft,"custom"===e[1]?{}:{duration:250},!0)),s.run(1))})),o=!0}},o:function(i){Xe(r),u=u.filter(Boolean);for(var n=0;n<u.length;n+=1)Xe(u[n]);s||(s=it(t,Ft,"custom"===e[1]?{}:{duration:250},!1)),s.run(0),o=!1},d:function(i){i&&Q(t),r&&r.d(),K(u,i),e[43](null),e[44](null),i&&s&&s.end()}}}function an(e,t){var i=Math.min(parseInt(e,10),parseInt(t,10));return!i||Number.isNaN(i)||i<1080?"":i>=1080&&i<2160?"HD":i>=2160&&i<4320?"4K":i>=4320?"8K":""}function sn(e,t,i){var n,a,s,o,r,l,u,d,c,h,p,_,m,f=function(e){"Chapters"===H&&C.set(e)},v=function(){"Chapters"===H&&C.set(-1)},g=Ae(zt),y=g.activeAudiotrackId,b=g.activeSubtitleId,k=g.audiotracks,w=g.currentAsset,$=g.currentChapter,C=g.hoverChapterIndex,S=g.playRate,P=g.translate,x=g.subtitlesList,I=g.barIconSize,T=g.isVerticalPlayer,D=g.skinSize,E=g.duration;A(e,y,(function(e){return i(35,s=e)})),A(e,b,(function(e){return i(37,r=e)})),A(e,k,(function(e){return i(36,o=e)})),A(e,w,(function(e){return i(16,p=e)})),A(e,$,(function(e){return i(17,_=e)})),A(e,S,(function(e){return i(18,m=e)})),A(e,x,(function(e){return i(38,l=e)})),A(e,I,(function(e){return i(14,c=e)})),A(e,T,(function(e){return i(13,d=e)})),A(e,D,(function(e){return i(12,u=e)})),A(e,E,(function(e){return i(15,h=e)}));var M,B,L=t.onItemSelected,R=void 0===L?function(){}:L,H=t.menuName,q=t.hideHeader,O=void 0!==q&&q,z=t.hideHeaderArrow,V=void 0!==z&&z,j=t.options,F=t.optionActiveIndex,N=t.customPos,U=void 0!==N&&N,W=t.alignLeft,G=void 0!==W&&W,J=Pe();Ce((function(){He().then((function(){var e,t,i=null==(t=null==(e=B.getElementsByClassName("item")[F])?void 0:e.getBoundingClientRect())?void 0:t.height;i&&(B.scrollTo({top:(F-2)*i}),setTimeout((function(){B.scrollTo({top:(F-2)*i})}),300))}))}));return e.$$set=function(e){"onItemSelected"in e&&i(0,R=e.onItemSelected),"menuName"in e&&i(1,H=e.menuName),"hideHeader"in e&&i(2,O=e.hideHeader),"hideHeaderArrow"in e&&i(3,V=e.hideHeaderArrow),"options"in e&&i(4,j=e.options),"optionActiveIndex"in e&&i(5,F=e.optionActiveIndex),"customPos"in e&&i(6,U=e.customPos),"alignLeft"in e&&i(7,G=e.alignLeft)},e.$$.update=function(){192&e.$$.dirty[1]&&i(11,n=l.find((function(e){return e.id===r}))),48&e.$$.dirty[1]&&i(10,a=o.find((function(e){return e.id===s})))},[R,H,O,V,j,F,U,G,M,B,a,n,u,d,c,h,p,_,m,y,b,k,w,$,S,P,x,I,T,D,E,J,function(e){return P(e).length+6+"ch"},f,v,s,o,r,l,function(){return J("headerClick")},function(e){return J("itemClick",e)},function(e){return f(e)},function(){return v()},function(e){De[e?"unshift":"push"]((function(){i(9,B=e)}))},function(e){De[e?"unshift":"push"]((function(){i(8,M=e)}))}]}var on=function(e){l.default(i,e);var t=u.default(i);function i(e){var n;return a.default(this,i),n=t.call(this),ut(d.default(n),e,sn,nn,C,{onItemSelected:0,menuName:1,hideHeader:2,hideHeaderArrow:3,options:4,optionActiveIndex:5,customPos:6,alignLeft:7},Si,[-1,-1]),c.default(n)}return i}(dt);function rn(e){var t,i;return{c:function(){t=X("svg"),se(i=X("path"),"d","M0 14.167c0-.471.378-.85.844-.85h2.097c.359-1.151 1.425-1.983 2.684-1.983s2.324.832 2.682 1.983h8.849c.468 0 .844.379.844.85s-.376.85-.844.85H8.307C7.949 16.168 6.884 17 5.625 17s-2.325-.832-2.684-1.983H.844c-.466 0-.844-.379-.844-.85zm6.75 0a1.13 1.13 0 0 0-1.125-1.133 1.13 1.13 0 1 0 0 2.267 1.13 1.13 0 0 0 1.125-1.133zm5.625-8.5c1.259 0 2.324.832 2.682 1.983h2.099c.468 0 .844.379.844.85s-.376.85-.844.85h-2.099c-.359 1.151-1.424 1.983-2.682 1.983s-2.324-.832-2.682-1.983H.844C.378 9.35 0 8.971 0 8.5s.378-.85.844-.85h8.849c.359-1.151 1.424-1.983 2.682-1.983zM13.5 8.5c0-.627-.503-1.133-1.125-1.133S11.25 7.873 11.25 8.5s.503 1.133 1.125 1.133S13.5 9.127 13.5 8.5zm3.656-6.517c.468 0 .844.381.844.85s-.376.85-.844.85H9.432C9.074 4.834 8.009 5.667 6.75 5.667s-2.324-.832-2.682-1.983H.844c-.466 0-.844-.379-.844-.85s.378-.85.844-.85h3.224C4.426.834 5.491 0 6.75 0s2.324.834 2.682 1.983h7.724zm-11.531.85c0 .627.503 1.133 1.125 1.133s1.125-.506 1.125-1.133A1.13 1.13 0 0 0 6.75 1.7a1.13 1.13 0 0 0-1.125 1.133z"),se(i,"fill","#fafafa"),se(t,"xmlns","http://www.w3.org/2000/svg"),se(t,"viewBox","-2 0 22 17"),se(t,"fill","none")},m:function(e,n){J(e,t,n),F(t,i)},p:v,i:v,o:v,d:function(e){e&&Q(t)}}}var ln=function(e){l.default(i,e);var t=u.default(i);function i(e){var n;return a.default(this,i),n=t.call(this),ut(d.default(n),e,null,rn,C,{}),c.default(n)}return i}(dt);function un(e){var t,i,n;return{c:function(){t=X("svg"),i=X("path"),n=X("path"),se(i,"d","M10.27 2.38c1.11-.71 2.43-1.12 3.85-1.12 3.99 0 7.24 3.24 7.24 7.24s-3.25 7.24-7.24 7.24c-1.42 0-2.74-.41-3.85-1.12M5 5.5h5M1 8.68h8.77m-5.79 3.18h4.36"),se(i,"stroke-width","1.5"),se(i,"stroke-miterlimit","10"),se(i,"stroke-linecap","round"),se(n,"d","M14 10.5v-4l3 1.904-3 2.096z"),se(n,"fill","#fff"),se(n,"stroke-linejoin","round"),se(t,"xmlns","http://www.w3.org/2000/svg"),se(t,"viewBox","0 0 23 17"),se(t,"fill","none"),se(t,"stroke","#fff")},m:function(e,a){J(e,t,a),F(t,i),F(t,n)},p:v,i:v,o:v,d:function(e){e&&Q(t)}}}var dn=function(e){l.default(i,e);var t=u.default(i);function i(e){var n;return a.default(this,i),n=t.call(this),ut(d.default(n),e,null,un,C,{}),c.default(n)}return i}(dt);function cn(e){var t,i;return{c:function(){t=X("svg"),se(i=X("path"),"d","M4.778 4.094c-.657 0-1.194.548-1.194 1.219v24.375c0 .67.537 1.219 1.194 1.219h33.444c.657 0 1.194-.548 1.194-1.219V5.313c0-.67-.538-1.219-1.194-1.219H4.778zM0 5.313C0 2.624 2.143.438 4.778.438h33.444C40.858.438 43 2.624 43 5.313v24.375c0 2.689-2.142 4.875-4.778 4.875H4.778C2.143 34.563 0 32.376 0 29.688V5.313zm8.958 10.969h13.139c.993 0 1.792.815 1.792 1.828s-.799 1.828-1.792 1.828H8.958c-.993 0-1.792-.815-1.792-1.828s.799-1.828 1.792-1.828zm19.111 0h5.972c.993 0 1.792.815 1.792 1.828s-.799 1.828-1.792 1.828h-5.972c-.993 0-1.792-.815-1.792-1.828s.799-1.828 1.792-1.828zM8.958 23.594h5.972c.993 0 1.792.815 1.792 1.828s-.799 1.828-1.792 1.828H8.958c-.993 0-1.792-.815-1.792-1.828s.799-1.828 1.792-1.828zm11.944 0h13.139c.993 0 1.792.815 1.792 1.828s-.799 1.828-1.792 1.828H20.903c-.993 0-1.792-.815-1.792-1.828s.799-1.828 1.792-1.828z"),se(i,"fill","#fff"),se(t,"xmlns","http://www.w3.org/2000/svg"),se(t,"viewBox","0 0 43 35"),se(t,"fill","none"),se(t,"xmlns:v","https://vecta.io/nano")},m:function(e,n){J(e,t,n),F(t,i)},p:v,i:v,o:v,d:function(e){e&&Q(t)}}}var hn=function(e){l.default(i,e);var t=u.default(i);function i(e){var n;return a.default(this,i),n=t.call(this),ut(d.default(n),e,null,cn,C,{}),c.default(n)}return i}(dt);function pn(e){var t,i;return{c:function(){t=X("svg"),se(i=X("path"),"d","M8.432 0H17.3c.774 0 1.4.64 1.4 1.429v2.857c0 .79-.626 1.429-1.4 1.429H8.432c-.372 0-.731-.152-.993-.42L5.544 3.362a.73.73 0 0 1 0-1.009L7.439.418A1.39 1.39 0 0 1 8.432 0zM17.3 4.286V1.429H8.432l-1.4 1.429 1.4 1.429H17.3zM1.9 1.429c.773 0 1.4.64 1.4 1.429s-.627 1.429-1.4 1.429S.5 3.647.5 2.857s.627-1.429 1.4-1.429zm0 7.143c.773 0 1.4.638 1.4 1.429s-.627 1.429-1.4 1.429S.5 10.79.5 10s.627-1.429 1.4-1.429zm0 10c-.773 0-1.4-.638-1.4-1.428s.627-1.429 1.4-1.429 1.4.638 1.4 1.429-.627 1.428-1.4 1.428zm6.532-4.286H17.3c.774 0 1.4.638 1.4 1.429v2.857c0 .79-.626 1.429-1.4 1.429H8.432c-.372 0-.731-.152-.993-.42l-1.894-1.933a.73.73 0 0 1 0-1.009l1.894-1.933c.263-.268.621-.42.993-.42zm8.868 4.286v-2.857H8.432l-1.4 1.429 1.4 1.428H17.3zM5.544 9.496l1.894-1.933c.263-.268.621-.42.993-.42H20.1c.774 0 1.4.638 1.4 1.429v2.857c0 .79-.626 1.429-1.4 1.429H8.432c-.372 0-.731-.152-.993-.42l-1.894-1.933a.73.73 0 0 1 0-1.009zM7.032 10l1.4 1.429H20.1V8.571H8.432L7.032 10z"),se(i,"fill","#fff"),se(t,"xmlns","http://www.w3.org/2000/svg"),se(t,"viewBox","0 0 22 21"),se(t,"fill","none")},m:function(e,n){J(e,t,n),F(t,i)},p:v,i:v,o:v,d:function(e){e&&Q(t)}}}var _n=function(e){l.default(i,e);var t=u.default(i);function i(e){var n;return a.default(this,i),n=t.call(this),ut(d.default(n),e,null,pn,C,{}),c.default(n)}return i}(dt);function mn(e){var t,i;return{c:function(){t=X("svg"),se(i=X("path"),"d","M10 0C4.41 0 .178 4.785 0 10.286v4.496c0 .034.014.065.018.097C.116 16.618 1.504 18 3.217 18 4.203 18 5 17.18 5 16.168V10.84C5 9.824 4.199 9 3.213 9a3.13 3.13 0 0 0-1.271.269C2.431 5.139 5.855 1.934 10 1.934s7.57 3.206 8.059 7.337c-.391-.174-.82-.27-1.269-.27C15.801 9 15 9.824 15 10.84v5.328C15 17.18 15.797 18 16.781 18c1.714 0 3.101-1.382 3.198-3.12.005-.032.018-.064.018-.097L20 10.282C19.82 4.781 15.59 0 10 0zM3.125 10.933v5.135c-.697-.049-1.25-.648-1.25-1.377v-2.386c0-.729.553-1.327 1.25-1.371zm13.75 5.135v-5.135c.697.047 1.25.645 1.25 1.373v2.386c0 .728-.555 1.327-1.25 1.375z"),se(i,"fill","#fff"),se(t,"xmlns","http://www.w3.org/2000/svg"),se(t,"viewBox","0 0 20 18"),se(t,"fill","none")},m:function(e,n){J(e,t,n),F(t,i)},p:v,i:v,o:v,d:function(e){e&&Q(t)}}}var fn=function(e){l.default(i,e);var t=u.default(i);function i(e){var n;return a.default(this,i),n=t.call(this),ut(d.default(n),e,null,mn,C,{}),c.default(n)}return i}(dt);function vn(e){var t,i;return{c:function(){t=X("svg"),se(i=X("path"),"d","M11.8125 11.0391C12.0469 11.2734 12.0469 11.625 11.8125 11.8359C11.7188 11.9531 11.5781 12 11.4375 12C11.2734 12 11.1328 11.9531 11.0156 11.8359L7.875 8.69531C7.03125 9.375 5.97656 9.75 4.85156 9.75C2.17969 9.75 0 7.57031 0 4.875C0 2.20312 2.15625 0 4.85156 0C7.52344 0 9.72656 2.20312 9.72656 4.875C9.72656 6.02344 9.35156 7.07812 8.67188 7.89844L11.8125 11.0391ZM1.125 4.875C1.125 6.96094 2.78906 8.625 4.875 8.625C6.9375 8.625 8.625 6.96094 8.625 4.875C8.625 2.8125 6.9375 1.125 4.875 1.125C2.78906 1.125 1.125 2.8125 1.125 4.875Z"),se(i,"fill","#F3F5F5"),se(t,"viewBox","0 0 12 12"),se(t,"fill","none"),se(t,"xmlns","http://www.w3.org/2000/svg")},m:function(e,n){J(e,t,n),F(t,i)},p:v,i:v,o:v,d:function(e){e&&Q(t)}}}var gn=function(e){l.default(i,e);var t=u.default(i);function i(e){var n;return a.default(this,i),n=t.call(this),ut(d.default(n),e,null,vn,C,{}),c.default(n)}return i}(dt);function yn(e){N(e,"svelte-zlhufy",".config-pane.svelte-zlhufy{position:relative;height:100%}")}function bn(e){var t,i;return(t=new on({props:{menuName:"Main menu",options:e[8]()||[],optionActiveIndex:-1,hideHeader:"XS"!==e[1],onItemSelected:e[0],hideHeaderArrow:!0}})).$on("headerClick",(function(){$(e[0])&&e[0].apply(this,arguments)})),t.$on("itemClick",e[41]),{c:function(){st(t.$$.fragment)},m:function(e,n){ot(t,e,n),i=!0},p:function(i,n){e=i;var a={};256&n[0]&&(a.options=e[8]()||[]),2&n[0]&&(a.hideHeader="XS"!==e[1]),1&n[0]&&(a.onItemSelected=e[0]),t.$set(a)},i:function(e){i||(Ye(t.$$.fragment,e),i=!0)},o:function(e){Xe(t.$$.fragment,e),i=!1},d:function(e){rt(t,e)}}}function kn(e){var t,i;return(t=new on({props:{menuName:"Playback speed",options:vt,optionActiveIndex:vt.findIndex(e[42]),onItemSelected:e[0]}})).$on("headerClick",e[43]),t.$on("itemClick",e[44]),{c:function(){st(t.$$.fragment)},m:function(e,n){ot(t,e,n),i=!0},p:function(e,i){var n={};512&i[0]&&(n.optionActiveIndex=vt.findIndex(e[42])),1&i[0]&&(n.onItemSelected=e[0]),t.$set(n)},i:function(e){i||(Ye(t.$$.fragment,e),i=!0)},o:function(e){Xe(t.$$.fragment,e),i=!1},d:function(e){rt(t,e)}}}function wn(e){var t,i;return(t=new on({props:{menuName:"Subtitles",options:e[5],optionActiveIndex:e[5].findIndex(e[45]),onItemSelected:e[0]}})).$on("headerClick",e[46]),t.$on("itemClick",e[47]),{c:function(){st(t.$$.fragment)},m:function(e,n){ot(t,e,n),i=!0},p:function(e,i){var n={};32&i[0]&&(n.options=e[5]),1056&i[0]&&(n.optionActiveIndex=e[5].findIndex(e[45])),1&i[0]&&(n.onItemSelected=e[0]),t.$set(n)},i:function(e){i||(Ye(t.$$.fragment,e),i=!0)},o:function(e){Xe(t.$$.fragment,e),i=!1},d:function(e){rt(t,e)}}}function $n(e){var t,i;return(t=new on({props:{menuName:"Audiotrack",options:e[4],optionActiveIndex:e[4].findIndex(e[48]),onItemSelected:e[0]}})).$on("headerClick",e[49]),t.$on("itemClick",e[50]),{c:function(){st(t.$$.fragment)},m:function(e,n){ot(t,e,n),i=!0},p:function(e,i){var n={};16&i[0]&&(n.options=e[4]),2064&i[0]&&(n.optionActiveIndex=e[4].findIndex(e[48])),1&i[0]&&(n.onItemSelected=e[0]),t.$set(n)},i:function(e){i||(Ye(t.$$.fragment,e),i=!0)},o:function(e){Xe(t.$$.fragment,e),i=!1},d:function(e){rt(t,e)}}}function Cn(e){var t,i;return(t=new on({props:{menuName:"Quality",options:e[3],optionActiveIndex:e[3].findIndex(e[51]),onItemSelected:e[0]}})).$on("headerClick",e[52]),t.$on("itemClick",e[53]),{c:function(){st(t.$$.fragment)},m:function(e,n){ot(t,e,n),i=!0},p:function(e,i){var n={};8&i[0]&&(n.options=e[3]),4104&i[0]&&(n.optionActiveIndex=e[3].findIndex(e[51])),1&i[0]&&(n.onItemSelected=e[0]),t.$set(n)},i:function(e){i||(Ye(t.$$.fragment,e),i=!0)},o:function(e){Xe(t.$$.fragment,e),i=!1},d:function(e){rt(t,e)}}}function Sn(e){var t,i;return(t=new on({props:{menuName:"Chapters",options:e[2],optionActiveIndex:e[2].findIndex(e[54]),onItemSelected:e[0]}})).$on("headerClick",e[55]),t.$on("itemClick",e[56]),{c:function(){st(t.$$.fragment)},m:function(e,n){ot(t,e,n),i=!0},p:function(e,i){var n={};4&i[0]&&(n.options=e[2]),8196&i[0]&&(n.optionActiveIndex=e[2].findIndex(e[54])),1&i[0]&&(n.onItemSelected=e[0]),t.$set(n)},i:function(e){i||(Ye(t.$$.fragment,e),i=!0)},o:function(e){Xe(t.$$.fragment,e),i=!1},d:function(e){rt(t,e)}}}function Pn(e){var t,i,n,a,s,o,r,l,u="Main menu"===e[6]&&bn(e),d="Playback speed"===e[6]&&kn(e),c="Subtitles"===e[6]&&wn(e),h="Audiotrack"===e[6]&&$n(e),p="Quality"===e[6]&&Cn(e),_="Chapters"===e[6]&&Sn(e);return{c:function(){t=Y("div"),u&&u.c(),i=ee(),d&&d.c(),n=ee(),c&&c.c(),a=ee(),h&&h.c(),s=ee(),p&&p.c(),o=ee(),_&&_.c(),se(t,"class",r="config-pane size-"+e[1]+" svelte-zlhufy")},m:function(r,m){J(r,t,m),u&&u.m(t,null),F(t,i),d&&d.m(t,null),F(t,n),c&&c.m(t,null),F(t,a),h&&h.m(t,null),F(t,s),p&&p.m(t,null),F(t,o),_&&_.m(t,null),e[57](t),l=!0},p:function(e,m){"Main menu"===e[6]?u?(u.p(e,m),64&m[0]&&Ye(u,1)):((u=bn(e)).c(),Ye(u,1),u.m(t,i)):u&&(Qe(),Xe(u,1,1,(function(){u=null})),Ke()),"Playback speed"===e[6]?d?(d.p(e,m),64&m[0]&&Ye(d,1)):((d=kn(e)).c(),Ye(d,1),d.m(t,n)):d&&(Qe(),Xe(d,1,1,(function(){d=null})),Ke()),"Subtitles"===e[6]?c?(c.p(e,m),64&m[0]&&Ye(c,1)):((c=wn(e)).c(),Ye(c,1),c.m(t,a)):c&&(Qe(),Xe(c,1,1,(function(){c=null})),Ke()),"Audiotrack"===e[6]?h?(h.p(e,m),64&m[0]&&Ye(h,1)):((h=$n(e)).c(),Ye(h,1),h.m(t,s)):h&&(Qe(),Xe(h,1,1,(function(){h=null})),Ke()),"Quality"===e[6]?p?(p.p(e,m),64&m[0]&&Ye(p,1)):((p=Cn(e)).c(),Ye(p,1),p.m(t,o)):p&&(Qe(),Xe(p,1,1,(function(){p=null})),Ke()),"Chapters"===e[6]?_?(_.p(e,m),64&m[0]&&Ye(_,1)):((_=Sn(e)).c(),Ye(_,1),_.m(t,null)):_&&(Qe(),Xe(_,1,1,(function(){_=null})),Ke()),(!l||2&m[0]&&r!==(r="config-pane size-"+e[1]+" svelte-zlhufy"))&&se(t,"class",r)},i:function(e){l||(Ye(u),Ye(d),Ye(c),Ye(h),Ye(p),Ye(_),l=!0)},o:function(e){Xe(u),Xe(d),Xe(c),Xe(h),Xe(p),Xe(_),l=!1},d:function(i){i&&Q(t),u&&u.d(),d&&d.d(),c&&c.d(),h&&h.d(),p&&p.d(),_&&_.d(),e[57](null)}}}function xn(e,t,i){var n,a,s,o,r,l,u,d,c,h,p,_,m,f,v,g,y=function(e){var t;if(null!=e&&e.action)return null==(t=null==e?void 0:e.action)||t.call(e),void(null==K||K(e));S(null==e?void 0:e.title)},b=function(e,t){D.setPlaybackRate(e),null==K||K(t)},k=function(e,t){D.setAsset(e),null==K||K(t),T()},w=function(e,t){D.setSubtitle(e),null==K||K(t)},$=function(e,t){D.selectAudioTrack(e),null==K||K(t)},C=function(e,t){U.set(-1),I(e,!0),null==K||K(t)},S=function(e){i(6,Y=e),He().then((function(){setTimeout((function(){x(Q,".button-content","Main menu"===Y?0:1)}),300)}))},P=Ae(zt),x=P.trapAriaTabFocus,I=P.seekTo,T=P.play,D=P.api,E=P.skinSize,M=P.assets,B=P.currentAsset,L=P.elementVisibility,R=P.searchPanelOpen,H=P.subtitlesList,q=P.transcriptList,O=P.activeSubtitleId,z=P.audiotracks,V=P.activeAudiotrackId,j=P.playRate,F=P.chapterList,N=P.currentChapter,U=P.hoverChapterIndex,W=P.livePlayer,G=P.mountedControlbar,J=P.showChapterText;A(e,E,(function(e){return i(1,o=e)})),A(e,M,(function(e){return i(3,l=e)})),A(e,B,(function(e){return i(12,v=e)})),A(e,L,(function(e){return i(40,p=e)})),A(e,H,(function(e){return i(5,d=e)})),A(e,q,(function(e){return i(39,h=e)})),A(e,O,(function(e){return i(10,m=e)})),A(e,z,(function(e){return i(4,u=e)})),A(e,V,(function(e){return i(11,f=e)})),A(e,j,(function(e){return i(9,_=e)})),A(e,F,(function(e){return i(2,r=e)})),A(e,N,(function(e){return i(13,g=e)})),A(e,W,(function(e){return i(38,c=e)})),A(e,G,(function(e){return i(37,s=e)})),A(e,J,(function(e){return i(36,a=e)}));var Q,K=t.onItemSelected,Y="Main menu";Ce((function(){x(Q,".button-content",0)}));return e.$$set=function(e){"onItemSelected"in e&&i(0,K=e.onItemSelected)},e.$$.update=function(){62&e.$$.dirty[0]|992&e.$$.dirty[1]&&i(8,n=function(){var e,t=[];return!(null!=(e=null==p?void 0:p.transcriptButton)&&e.hidden)&&(null!=d&&d.length||null!=h&&h.length)&&t.push({title:"Search video",icon:gn,action:function(){return R.set(!0)}}),c||t.push({title:"Playback speed",icon:dn}),null!=d&&d.length&&t.push({title:"Subtitles",icon:hn,iconClass:"small"}),null!=u&&u.length&&t.push({title:"Audiotrack",icon:fn,iconClass:"mini"}),null!=l&&l.length&&t.push({title:"Quality",icon:ln}),r.length&&(s&&["XS"].includes(o)||!s&&!a)&&t.push({title:"Chapters",icon:_n}),t})},[K,o,r,l,u,d,Y,Q,n,_,m,f,v,g,E,M,B,L,H,q,O,z,V,j,F,N,W,G,J,y,b,k,w,$,C,S,a,s,c,h,p,function(e){return y(e.detail)},function(e){return e===_},function(){return S("Main menu")},function(e){return b(e.detail,e)},function(e){return e.id===m},function(){return S("Main menu")},function(e){var t;return w(null==(t=e.detail)?void 0:t.id,e)},function(e){return e.id===f},function(){return S("Main menu")},function(e){var t;return $(null==(t=e.detail)?void 0:t.id,e)},function(e){return e.id===v.id},function(){return S("Main menu")},function(e){var t;return k(null==(t=e.detail)?void 0:t.id,e)},function(e){return e.id===g.id},function(){return S("Main menu")},function(e){var t;return C(null==(t=e.detail)?void 0:t.start,e)},function(e){De[e?"unshift":"push"]((function(){i(7,Q=e)}))}]}var An=function(e){l.default(i,e);var t=u.default(i);function i(e){var n;return a.default(this,i),n=t.call(this),ut(d.default(n),e,xn,Pn,C,{onItemSelected:0},yn,[-1,-1,-1]),c.default(n)}return i}(dt);function In(e){var t,i;return{c:function(){t=X("svg"),se(i=X("path"),"d","M15.982 8.171C16.615 8.564 17 9.256 17 10.002s-.385 1.438-1.018 1.79L3.233 19.651c-.656.442-1.477.46-2.148.08S0 18.637 0 17.86V2.143C0 1.368.415.653 1.086.274a2.11 2.11 0 0 1 2.148.041l12.749 7.857z"),se(i,"fill",e[0]),se(t,"xmlns","http://www.w3.org/2000/svg"),se(t,"viewBox",e[1]),se(t,"fill","none")},m:function(e,n){J(e,t,n),F(t,i)},p:function(e,n){var a=o.default(n,1)[0];1&a&&se(i,"fill",e[0]),2&a&&se(t,"viewBox",e[1])},i:v,o:v,d:function(e){e&&Q(t)}}}function Tn(e,t,i){var n,a=t.color,s=void 0===a?"#f5f5f5":a,o=t.center,r=void 0!==o&&o;return e.$$set=function(e){"color"in e&&i(0,s=e.color),"center"in e&&i(2,r=e.center)},e.$$.update=function(){4&e.$$.dirty&&i(1,n=r?"-3 0 20 20":"0 0 17 20")},[s,n,r]}var Dn=function(e){l.default(i,e);var t=u.default(i);function i(e){var n;return a.default(this,i),n=t.call(this),ut(d.default(n),e,Tn,In,C,{color:0,center:2}),c.default(n)}return i}(dt);function En(e){var t,i;return{c:function(){t=X("svg"),se(i=X("path"),"d","M14.45 0h-1.7c-1.408 0-2.55 1.117-2.55 2.447v14.965c0 1.378 1.142 2.494 2.55 2.494l1.7.093c1.408 0 2.55-1.117 2.55-2.494V2.541C17 1.163 15.858 0 14.45 0zM4.25 0h-1.7C1.142 0 0 1.117 0 2.494v14.965C0 18.883 1.142 20 2.55 20h1.7c1.408 0 2.55-1.117 2.55-2.494V2.541C6.8 1.163 5.658 0 4.25 0z"),se(i,"fill",e[0]),se(t,"xmlns","http://www.w3.org/2000/svg"),se(t,"viewBox","0 0 17 20"),se(t,"fill","none")},m:function(e,n){J(e,t,n),F(t,i)},p:function(e,t){1&o.default(t,1)[0]&&se(i,"fill",e[0])},i:v,o:v,d:function(e){e&&Q(t)}}}function Mn(e,t,i){var n=t.color,a=void 0===n?"#fff":n;return e.$$set=function(e){"color"in e&&i(0,a=e.color)},[a]}var Bn=function(e){l.default(i,e);var t=u.default(i);function i(e){var n;return a.default(this,i),n=t.call(this),ut(d.default(n),e,Mn,En,C,{color:0}),c.default(n)}return i}(dt);function Ln(e){N(e,"svelte-1qau301","svg.svelte-1qau301{padding-left:4px}")}function Rn(e){var t,i,n,a;return{c:function(){t=X("svg"),i=X("path"),n=X("path"),a=X("path"),se(i,"d","M13.288.127C13.103.042 12.903 0 12.708 0a1.4 1.4 0 0 0-.938.362L5.815 5.714H2.118C.948 5.714 0 6.674 0 7.817v4.246c0 1.184.948 2.103 2.118 2.103h3.699l5.951 5.353a1.11 1.11 0 0 0 .938.482c.196 0 .395-.042.581-.127.509-.23.831-.739.831-1.302V1.429c0-.562-.322-1.112-.829-1.302zM12 16.982l-5.378-4.839H2.118V7.897h4.504L12 3.02v13.962z"),se(i,"fill","white"),se(n,"d","M17.06 6c.236 0 .473.079.671.241a4.29 4.29 0 0 1 1.562 3.308 4.28 4.28 0 0 1-1.563 3.306 1.05 1.05 0 0 1-.67.241c-.306 0-.611-.134-.819-.393a1.08 1.08 0 0 1 .149-1.508c.499-.413.786-1.012.786-1.646s-.287-1.232-.784-1.648a1.08 1.08 0 0 1-.149-1.508c.208-.26.512-.393.818-.393z"),se(n,"fill","white"),se(n,"fill-opacity",e[1]),se(a,"d","M20.06 3a1.05 1.05 0 0 1 .671.242c1.99 1.647 3.128 4.058 3.128 6.607a8.57 8.57 0 0 1-3.127 6.608 1.05 1.05 0 0 1-1.49-.149 1.08 1.08 0 0 1 .148-1.508c1.494-1.242 2.352-3.045 2.352-4.951s-.856-3.71-2.353-4.95a1.08 1.08 0 0 1-.147-1.508c.21-.258.514-.391.82-.391z"),se(a,"fill","white"),se(a,"fill-opacity",e[0]),se(t,"xmlns","http://www.w3.org/2000/svg"),se(t,"viewBox","0 0 26 21"),se(t,"fill","none"),se(t,"class","svelte-1qau301")},m:function(e,s){J(e,t,s),F(t,i),F(t,n),F(t,a)},p:function(e,t){var i=o.default(t,1)[0];2&i&&se(n,"fill-opacity",e[1]),1&i&&se(a,"fill-opacity",e[0])},i:v,o:v,d:function(e){e&&Q(t)}}}function Hn(e,t,i){var n,a,s,o=Ae(zt).displayVolume;return A(e,o,(function(e){return i(3,s=e)})),e.$$.update=function(){8&e.$$.dirty&&i(1,n=Math.min(1,1.5*s+.25)),8&e.$$.dirty&&i(0,a=Math.min(1,2*s-1))},[a,n,o,s]}var qn=function(e){l.default(i,e);var t=u.default(i);function i(e){var n;return a.default(this,i),n=t.call(this),ut(d.default(n),e,Hn,Rn,C,{},Ln),c.default(n)}return i}(dt);function On(e){var t,i,n;return{c:function(){t=X("svg"),i=X("path"),n=X("path"),se(i,"fill-rule","evenodd"),se(i,"d","M1.625.219A1 1 0 0 0 .219.375a1 1 0 0 0 .156 1.406l14.219 11.375 2.118 1.686 7.102 5.69a1 1 0 1 0 1.249-1.562l-8.351-6.681V1.585c0-.562-.322-1.112-.829-1.302-.185-.085-.385-.127-.581-.127a1.4 1.4 0 0 0-.938.362L8.541 5.752 1.625.219zm8.623 6.899l4.346 3.477V3.176l-4.346 3.942z"),se(n,"d","M2.594 7.973c0-.593.255-1.136.663-1.522l1.951 1.602h-.497v4.246h4.504l5.378 4.839v-1.375l2.118 1.739v1.225c0 .563-.322 1.071-.831 1.302-.185.085-.385.127-.581.127a1.11 1.11 0 0 1-.938-.482l-5.951-5.353H4.712c-1.17 0-2.118-.919-2.118-2.103V7.973z"),se(t,"xmlns","http://www.w3.org/2000/svg"),se(t,"viewBox","0 0 26 21"),se(t,"fill","#fff")},m:function(e,a){J(e,t,a),F(t,i),F(t,n)},p:v,i:v,o:v,d:function(e){e&&Q(t)}}}var zn=function(e){l.default(i,e);var t=u.default(i);function i(e){var n;return a.default(this,i),n=t.call(this),ut(d.default(n),e,null,On,C,{}),c.default(n)}return i}(dt);function Vn(e){var t,i;return{c:function(){t=X("svg"),se(i=X("path"),"d","M9.75 9.183l.994 1.888H8.756l.994-1.888zm9.75 1.888c0 .594-.502 1.071-1.125 1.071s-1.125-.478-1.125-1.071S17.752 10 18.375 10s1.125.478 1.125 1.071zM24 0c1.655 0 3 1.279 3 2.857v14.286C27 18.719 25.655 20 24 20H3c-1.657 0-3-1.281-3-2.857V2.857C0 1.279 1.343 0 3 0h21zM10.758 6.308c-.192-.366-.581-.594-1.008-.594s-.816.228-1.008.594l-3.375 6.429c-.277.527-.052 1.17.506 1.438s1.228.049 1.509-.482l.248-.478h4.237l.248.478c.281.531.956.745 1.509.482s.783-.911.506-1.437l-3.375-6.429zM19.5 8.04c-.352-.121-.731-.183-1.125-.183-1.866 0-3.375 1.437-3.375 3.214s1.509 3.214 3.375 3.214c.52 0 1.012-.112 1.453-.353.206.232.488.353.797.353.623 0 1.125-.478 1.125-1.071V6.786c0-.594-.502-1.071-1.125-1.071S19.5 6.192 19.5 6.786V8.04z"),se(t,"xmlns","http://www.w3.org/2000/svg"),se(t,"viewBox","0 0 27 20"),se(t,"fill",e[0])},m:function(e,n){J(e,t,n),F(t,i)},p:function(e,i){1&o.default(i,1)[0]&&se(t,"fill",e[0])},i:v,o:v,d:function(e){e&&Q(t)}}}function jn(e,t,i){var n=t.color,a=void 0===n?"#ffcc00":n;return e.$$set=function(e){"color"in e&&i(0,a=e.color)},[a]}var Fn=function(e){l.default(i,e);var t=u.default(i);function i(e){var n;return a.default(this,i),n=t.call(this),ut(d.default(n),e,jn,Vn,C,{color:0}),c.default(n)}return i}(dt);function Nn(e){N(e,"svelte-1kmsycy",".frame-preview.svelte-1kmsycy.svelte-1kmsycy.svelte-1kmsycy{pointer-events:none;width:100%;display:flex;flex-direction:column;gap:8px}@supports (-webkit-touch-callout: none) and (not (translate: none)){.frame-preview.svelte-1kmsycy>.svelte-1kmsycy+.svelte-1kmsycy{margin-left:8px}}.frame-preview.svelte-1kmsycy video.svelte-1kmsycy.svelte-1kmsycy{width:100%;box-shadow:0 2px 2px rgba(0, 0, 0, 0.4);border:3px solid var(--foreground-color);border-radius:5px}.frame-preview.svelte-1kmsycy .time.svelte-1kmsycy.svelte-1kmsycy{text-align:center}.frame-preview.svelte-1kmsycy .time .header.svelte-1kmsycy.svelte-1kmsycy{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-bottom:6px;font-size:0.8em;text-shadow:1px 1px 1px rgba(0, 0, 0, 0.5)}.frame-preview.svelte-1kmsycy .time .time-text.svelte-1kmsycy.svelte-1kmsycy{color:white;font-size:0.9em;font-weight:bold;padding:0.2em;border-radius:3px;text-shadow:1px 1px 1px rgba(0, 0, 0, 0.5)}")}function Un(e){var t,i;return{c:function(){t=Y("div"),i=Z(e[1]),se(t,"class","header svelte-1kmsycy")},m:function(e,n){J(e,t,n),F(t,i)},p:function(e,t){2&t&&le(i,e[1])},d:function(e){e&&Q(t)}}}function Wn(e){var t,i,n,a,s,r,l,u,d,c,h,p=!1,_=kt(e[0])+"";function m(){cancelAnimationFrame(a),i.paused||(a=O(m),p=!0),e[8].call(i)}var f=e[1]&&Un(e);return{c:function(){t=Y("div"),i=Y("video"),s=ee(),r=Y("div"),f&&f.c(),l=ee(),u=Y("span"),d=Z(_),se(i,"tabindex","-1"),i.muted=!0,S(i.src,n=e[2])||se(i,"src",n),se(i,"class","svelte-1kmsycy"),de(i,"visibility",e[3]),se(u,"class","time-text svelte-1kmsycy"),se(r,"class","time svelte-1kmsycy"),se(t,"class","frame-preview svelte-1kmsycy")},m:function(n,a){J(n,t,a),F(t,i),F(t,s),F(t,r),f&&f.m(r,null),F(r,l),F(r,u),F(u,d),c||(h=[ie(i,"timeupdate",m),ie(i,"canplay",e[5])],c=!0)},p:function(e,t){var a=o.default(t,1)[0];4&a&&!S(i.src,n=e[2])&&se(i,"src",n),!p&&16&a&&!isNaN(e[4])&&(i.currentTime=e[4]),p=!1,8&a&&de(i,"visibility",e[3]),e[1]?f?f.p(e,a):((f=Un(e)).c(),f.m(r,l)):f&&(f.d(1),f=null),1&a&&_!==(_=kt(e[0])+"")&&le(d,_)},i:v,o:v,d:function(e){e&&Q(t),f&&f.d(),c=!1,w(h)}}}function Gn(e,t,i){var n,a,s,o,r=function(){i(7,v=!1),s=null==u?void 0:u.getPreviewAsset(),i(2,o=null==s?void 0:s.processedSrc)},l=Ae(zt),u=l.api,d=l.entity,c=t.previewTime,h=void 0===c?0:c,p=t.headerText,_=void 0===p?"":p,m=t.hideFrame,f=void 0!==m&&m,v=!1,g=[];return Ce((function(){r()})),Se((function(){g.forEach((function(e){return e()}))})),g.push(d.subscribe((function(){r()}))),e.$$set=function(e){"previewTime"in e&&i(0,h=e.previewTime),"headerText"in e&&i(1,_=e.headerText),"hideFrame"in e&&i(6,f=e.hideFrame)},e.$$.update=function(){196&e.$$.dirty&&i(3,n=o&&!f&&v?"visible":"hidden"),9&e.$$.dirty&&i(4,a="hidden"===n?0:h)},[h,_,o,n,a,function(){i(7,v=!0)},f,v,function(){a=this.currentTime,i(4,a),i(3,n),i(0,h),i(2,o),i(6,f),i(7,v)}]}var Jn=function(e){l.default(i,e);var t=u.default(i);function i(e){var n;return a.default(this,i),n=t.call(this),ut(d.default(n),e,Gn,Wn,C,{previewTime:0,headerText:1,hideFrame:6},Nn),c.default(n)}return i}(dt);function Qn(e){N(e,"svelte-1ueerdl",".bb-slider.svelte-1ueerdl.svelte-1ueerdl{width:100%;height:100%;position:relative}.bb-slider.read-only.svelte-1ueerdl.svelte-1ueerdl{--hit-height:0}.bb-slider.svelte-1ueerdl .slider-hover-container.svelte-1ueerdl{height:100%;pointer-events:all;outline-color:var(--aria-focus-color)}.bb-slider.svelte-1ueerdl .slider-hover-container .chapter-block.svelte-1ueerdl,.bb-slider.svelte-1ueerdl .slider-hover-container .progress-block.svelte-1ueerdl{position:absolute;pointer-events:none;z-index:34;top:0;right:0;bottom:0;left:0}.bb-slider.svelte-1ueerdl .slider-hover-container.rounded .chapter-block:first-child .hover-progress.svelte-1ueerdl,.bb-slider.svelte-1ueerdl .slider-hover-container.rounded .chapter-block:first-child .play-progress.svelte-1ueerdl,.bb-slider.svelte-1ueerdl .slider-hover-container.rounded .chapter-block:first-child .progress-wrapper.svelte-1ueerdl{border-radius:6px 0 0 6px}.bb-slider.svelte-1ueerdl .slider-hover-container.rounded .chapter-block:last-child .hover-progress.svelte-1ueerdl,.bb-slider.svelte-1ueerdl .slider-hover-container.rounded .chapter-block:last-child .play-progress.svelte-1ueerdl,.bb-slider.svelte-1ueerdl .slider-hover-container.rounded .chapter-block:last-child .progress-wrapper.svelte-1ueerdl{border-radius:0 6px 6px 0}.bb-slider.svelte-1ueerdl .slider-hover-container.rounded .progress-block .hover-progress.svelte-1ueerdl,.bb-slider.svelte-1ueerdl .slider-hover-container.rounded .progress-block .play-progress.svelte-1ueerdl,.bb-slider.svelte-1ueerdl .slider-hover-container.rounded .progress-block .progress-wrapper.svelte-1ueerdl{border-radius:6px}.bb-slider.svelte-1ueerdl .slider-hover-container.rounded .load-progress.svelte-1ueerdl{border-radius:6px 0 0 6px}.bb-slider.svelte-1ueerdl .slider-hover-container .chapter-block.svelte-1ueerdl{transition:transform 0.1s cubic-bezier(0.4, 0, 1, 1)}.bb-slider.svelte-1ueerdl .slider-hover-container .chapter-block.active.svelte-1ueerdl{transform:scaleY(2)}.bb-slider.svelte-1ueerdl .slider-hover-container .chapter-block.active .load-progress.svelte-1ueerdl{transform:scaleY(1)}.bb-slider.svelte-1ueerdl .slider-hover-container .progress-wrapper.svelte-1ueerdl,.bb-slider.svelte-1ueerdl .slider-hover-container .play-progress.svelte-1ueerdl,.bb-slider.svelte-1ueerdl .slider-hover-container .load-progress.svelte-1ueerdl,.bb-slider.svelte-1ueerdl .slider-hover-container .hover-progress.svelte-1ueerdl,.bb-slider.svelte-1ueerdl .slider-hover-container .highlights-container.svelte-1ueerdl,.bb-slider.svelte-1ueerdl .slider-hover-container input.svelte-1ueerdl{position:absolute;height:100%;width:100%;bottom:0;left:0;pointer-events:none;transform-origin:0 50%}.bb-slider.svelte-1ueerdl .slider-hover-container .highlight-hit-zone.svelte-1ueerdl{--hit-area-size:20px;width:var(--hit-area-size);height:var(--hit-area-size);position:absolute;right:0;bottom:0;top:calc(-1 * (var(--hit-area-size) - var(--height-progress-bar)) / 2);left:calc(var(--highlight-left-perc) - var(--hit-area-size) / 2);pointer-events:all;z-index:41;display:grid;place-content:center;cursor:pointer}.bb-slider.svelte-1ueerdl .slider-hover-container .highlight-hit-zone.active .highlight.svelte-1ueerdl{transform:scale(1.4);transform-origin:center;border:3px solid rgba(255, 255, 255, 0.25)}.bb-slider.svelte-1ueerdl .slider-hover-container .highlight-hit-zone .highlight.svelte-1ueerdl{width:8px;height:8px;border-radius:50%;background-color:#fff;background-clip:padding-box;transition:transform 0.1s cubic-bezier(0.4, 0, 1, 1)}.bb-slider.svelte-1ueerdl .slider-hover-container .progress-wrapper.svelte-1ueerdl{z-index:39;background:rgba(255, 255, 255, 0.2);transition:transform 0.1s cubic-bezier(0.4, 0, 1, 1);position:relative}.bb-slider.svelte-1ueerdl .slider-hover-container input.svelte-1ueerdl{--extra-width:16px;pointer-events:all;z-index:40;opacity:0;cursor:pointer;height:calc(50% + var(--hit-height));bottom:calc(var(--hit-height) * -0.5);width:calc(100% + var(--extra-width));left:calc(var(--extra-width) / 2 * -1);margin:2px 0;-webkit-tap-highlight-color:transparent}.bb-slider.svelte-1ueerdl .slider-hover-container .hover-progress.svelte-1ueerdl{background-color:var(--foreground-color);opacity:0;z-index:33}.bb-slider.svelte-1ueerdl .slider-hover-container .play-progress.svelte-1ueerdl{background-color:var(--accent-color);z-index:34}.bb-slider.svelte-1ueerdl .slider-hover-container .play-progress-dot-container.svelte-1ueerdl{pointer-events:none;position:absolute;top:0;right:0;bottom:0;left:0;height:100%;display:flex;flex-direction:column;align-content:center;z-index:34}.bb-slider.svelte-1ueerdl .slider-hover-container .play-progress-dot-container .play-progress-dot.svelte-1ueerdl{--wh:calc(2.67 * var(--height-progress-bar));transition:transform 0.1s cubic-bezier(0.4, 0, 1, 1);background-color:var(--foreground-color);margin-left:calc(var(--wh) * -0.5);width:var(--wh);height:var(--wh);border-radius:50%;transform:scale(0, 0);box-shadow:0px 1px 0px rgba(0, 0, 0, 0.25)}.bb-slider.svelte-1ueerdl .slider-hover-container .load-progress.svelte-1ueerdl{transform:scaleY(0.6);background:rgba(255, 255, 255, 0.4);z-index:33;transition:transform 0.15s ease-in-out}.bb-slider.svelte-1ueerdl .slider-hover-container .progress-bar-padding.svelte-1ueerdl{position:absolute;width:100%;height:var(--hit-height);top:initial;bottom:0;z-index:28}.bb-slider.svelte-1ueerdl .frame-preview-container.svelte-1ueerdl{position:absolute;bottom:1em;width:var(--frame-preview-width);opacity:0;transition:opacity 0.15s ease-in-out}.bb-slider.svelte-1ueerdl .frame-preview-container.scrubbar-active.svelte-1ueerdl{opacity:1}.bb-slider.svelte-1ueerdl:hover:not(.bb-slider:hover:active) .hover-progress.svelte-1ueerdl{transition:opacity 0s 0.1s;opacity:0.4}.bb-slider.svelte-1ueerdl:hover .frame-preview-container.svelte-1ueerdl:not(.touch-mode){opacity:1}.bb-slider.svelte-1ueerdl:not(.read-only) .slider-hover-container .progress-wrapper.svelte-1ueerdl{transform:scaleY(0.6);transform-origin:0 50%}.bb-slider.svelte-1ueerdl:not(.read-only) .slider-hover-container:hover .progress-wrapper.svelte-1ueerdl,.bb-slider.svelte-1ueerdl:not(.read-only) .slider-hover-container:hover .load-progress.svelte-1ueerdl{transform:scaleY(1)}.bb-slider.svelte-1ueerdl:not(.read-only) .slider-hover-container:hover .play-progress-dot.svelte-1ueerdl{transform:scale(1, 2.667)}.bb-slider.svelte-1ueerdl:not(.read-only) .slider-hover-container:hover .highlight.svelte-1ueerdl{width:10px;height:10px}.bb-slider:not(.read-only).hide-dot.svelte-1ueerdl:hover .progress-wrapper.svelte-1ueerdl,.bb-slider:not(.read-only).hide-dot.svelte-1ueerdl:hover .load-progress.svelte-1ueerdl{transform:scaleY(1.5)}")}function Kn(e,t,i){var n=e.slice();return n[97]=t[i],n[99]=i,n}function Yn(e,t,i){var n=e.slice();return n[100]=t[i],n[99]=i,n}function Xn(e){var t,i,n,a,s,o,r,l,u,d,c="scaleX(".concat(e[20],")"),h=!e[8]&&!e[27]&&ea(e);return{c:function(){t=Y("div"),i=Y("div"),n=ee(),a=Y("div"),s=Y("div"),o=ee(),r=Y("div"),l=ee(),h&&h.c(),u=ee(),d=Y("div"),se(i,"class","progress-bar-padding svelte-1ueerdl"),se(s,"class","play-progress svelte-1ueerdl"),de(s,"transform",c),se(a,"class","progress-wrapper svelte-1ueerdl"),se(r,"class","load-progress svelte-1ueerdl"),de(r,"background",e[53](e[26],null)),se(d,"class","ad-progress-list"),se(t,"class","progress-block svelte-1ueerdl")},m:function(e,c){J(e,t,c),F(t,i),F(t,n),F(t,a),F(a,s),F(t,o),F(t,r),F(t,l),h&&h.m(t,null),F(t,u),F(t,d)},p:function(e,i){1048576&i[0]&&c!==(c="scaleX(".concat(e[20],")"))&&de(s,"transform",c),67108864&i[0]&&de(r,"background",e[53](e[26],null)),e[8]||e[27]?h&&(h.d(1),h=null):h?h.p(e,i):((h=ea(e)).c(),h.m(t,u))},d:function(e){e&&Q(t),h&&h.d()}}}function Zn(e){for(var t,i=nt(e[24]),n=[],a=0;a<i.length;a+=1)n[a]=ia(Yn(e,i,a));return{c:function(){t=Y("div");for(var e=0;e<n.length;e+=1)n[e].c();se(t,"class","chapter-container")},m:function(e,i){J(e,t,i);for(var a=0;a<n.length;a+=1)n[a]&&n[a].m(t,null)},p:function(e,a){if(93849856&a[0]|4194304&a[1]){var s;for(i=nt(e[24]),s=0;s<i.length;s+=1){var o=Yn(e,i,s);n[s]?n[s].p(o,a):(n[s]=ia(o),n[s].c(),n[s].m(t,null))}for(;s<n.length;s+=1)n[s].d(1);n.length=i.length}},d:function(e){e&&Q(t),K(n,e)}}}function ea(e){var t,i="scaleX(".concat(e[11],")");return{c:function(){se(t=Y("div"),"class","hover-progress svelte-1ueerdl"),de(t,"transform",i)},m:function(e,i){J(e,t,i)},p:function(e,n){2048&n[0]&&i!==(i="scaleX(".concat(e[11],")"))&&de(t,"transform",i)},d:function(e){e&&Q(t)}}}function ta(e){var t,i="scaleX(".concat(da(e[11],e[100].startPerc,e[100].durationPerc),")");return{c:function(){se(t=Y("div"),"class","hover-progress svelte-1ueerdl"),de(t,"transform",i)},m:function(e,i){J(e,t,i)},p:function(e,n){16779264&n[0]&&i!==(i="scaleX(".concat(da(e[11],e[100].startPerc,e[100].durationPerc),")"))&&de(t,"transform",i)},d:function(e){e&&Q(t)}}}function ia(e){var t,i,n,a,s,o,r,l,u,d,c,h="scaleX(".concat(da(e[20],e[100].startPerc,e[100].durationPerc),")"),p=!e[8]&&ta(e);return{c:function(){t=Y("div"),i=Y("div"),n=ee(),a=Y("div"),s=Y("div"),o=ee(),p&&p.c(),r=ee(),l=Y("div"),u=ee(),d=Y("div"),c=ee(),se(i,"class","progress-bar-padding svelte-1ueerdl"),se(s,"class","play-progress svelte-1ueerdl"),de(s,"transform",h),se(l,"class","ad-progress-list"),se(d,"class","load-progress svelte-1ueerdl"),de(d,"background",e[53](e[26],e[100])),se(a,"class","progress-wrapper svelte-1ueerdl"),se(t,"class","chapter-block svelte-1ueerdl"),he(t,"active",e[99]===e[23]),de(t,"width",e[100].durationPerc-(e[99]>0?e[19]:0)+"%"),de(t,"height","100%"),de(t,"left",e[100].startPerc+(e[99]>0?e[19]:0)+"%")},m:function(e,h){J(e,t,h),F(t,i),F(t,n),F(t,a),F(a,s),F(a,o),p&&p.m(a,null),F(a,r),F(a,l),F(a,u),F(a,d),F(t,c)},p:function(e,i){17825792&i[0]&&h!==(h="scaleX(".concat(da(e[20],e[100].startPerc,e[100].durationPerc),")"))&&de(s,"transform",h),e[8]?p&&(p.d(1),p=null):p?p.p(e,i):((p=ta(e)).c(),p.m(a,r)),83886080&i[0]&&de(d,"background",e[53](e[26],e[100])),8388608&i[0]&&he(t,"active",e[99]===e[23]),17301504&i[0]&&de(t,"width",e[100].durationPerc-(e[99]>0?e[19]:0)+"%"),17301504&i[0]&&de(t,"left",e[100].startPerc+(e[99]>0?e[19]:0)+"%")},d:function(e){e&&Q(t),p&&p.d()}}}function na(e){var t,i,n,a,s,o,r,l=!e[3]&&aa(e),u=(null==(t=e[21])?void 0:t.length)&&"main"===e[32]&&sa(e);return{c:function(){l&&l.c(),i=ee(),n=Y("input"),a=ee(),u&&u.c(),s=te(),se(n,"aria-label",e[33]("Time input")),se(n,"class","range-slider svelte-1ueerdl"),se(n,"type","range"),se(n,"min",e[5]),se(n,"max",e[6]),se(n,"step",e[7])},m:function(t,d){l&&l.m(t,d),J(t,i,d),J(t,n,d),ue(n,e[0]),e[72](n),J(t,a,d),u&&u.m(t,d),J(t,s,d),o||(r=[ie(n,"input",e[69]),ie(n,"change",e[70]),ie(n,"change",e[71]),ie(n,"input",e[71]),ie(n,"focus",e[62]),ie(n,"blur",e[63])],o=!0)},p:function(e,t){var a;e[3]?l&&(l.d(1),l=null):l?l.p(e,t):((l=aa(e)).c(),l.m(i.parentNode,i)),32&t[0]&&se(n,"min",e[5]),64&t[0]&&se(n,"max",e[6]),128&t[0]&&se(n,"step",e[7]),1&t[0]&&ue(n,e[0]),null!=(a=e[21])&&a.length&&"main"===e[32]?u?u.p(e,t):((u=sa(e)).c(),u.m(s.parentNode,s)):u&&(u.d(1),u=null)},d:function(t){t&&(Q(i),Q(n),Q(a),Q(s)),l&&l.d(t),e[72](null),u&&u.d(t),o=!1,w(r)}}}function aa(e){var t,i="translateX(".concat(100*e[20],"%)");return{c:function(){(t=Y("div")).innerHTML='<div class="play-progress-dot svelte-1ueerdl"></div>',se(t,"class","play-progress-dot-container svelte-1ueerdl"),de(t,"transform",i)},m:function(e,i){J(e,t,i)},p:function(e,n){1048576&n[0]&&i!==(i="translateX(".concat(100*e[20],"%)"))&&de(t,"transform",i)},d:function(e){e&&Q(t)}}}function sa(e){for(var t,i=nt(e[21]),n=[],a=0;a<i.length;a+=1)n[a]=ra(Kn(e,i,a));return{c:function(){t=Y("div");for(var e=0;e<n.length;e+=1)n[e].c();se(t,"class","highlights-container svelte-1ueerdl")},m:function(e,i){J(e,t,i);for(var a=0;a<n.length;a+=1)n[a]&&n[a].m(t,null)},p:function(e,a){if(270532608&a[0]|1075838976&a[1]){var s;for(i=nt(e[21]),s=0;s<i.length;s+=1){var o=Kn(e,i,s);n[s]?n[s].p(o,a):(n[s]=ra(o),n[s].c(),n[s].m(t,null))}for(;s<n.length;s+=1)n[s].d(1);n.length=i.length}},d:function(e){e&&Q(t),K(n,e)}}}function oa(e){var t,i,n,a=function(){return e[73](e[99])},s=function(){return e[75](e[97])};return{c:function(){(t=Y("div")).innerHTML='<div class="highlight svelte-1ueerdl"></div> ',se(t,"class","highlight-hit-zone svelte-1ueerdl"),he(t,"active",e[99]===e[28]),de(t,"--highlight-left-perc",e[97].startPerc+"%")},m:function(o,r){J(o,t,r),i||(n=[ie(t,"mousemove",a),ie(t,"mouseleave",e[74]),ie(t,"pointerdown",ae(e[67])),ie(t,"mousedown",ae(e[68])),ie(t,"click",ne(s))],i=!0)},p:function(i,n){e=i,268435456&n[0]&&he(t,"active",e[99]===e[28]),2097152&n[0]&&de(t,"--highlight-left-perc",e[97].startPerc+"%")},d:function(e){e&&Q(t),i=!1,w(n)}}}function ra(e){var t,i=e[97].title&&oa(e);return{c:function(){i&&i.c(),t=te()},m:function(e,n){i&&i.m(e,n),J(e,t,n)},p:function(e,n){e[97].title?i?i.p(e,n):((i=oa(e)).c(),i.m(t.parentNode,t)):i&&(i.d(1),i=null)},d:function(e){e&&Q(t),i&&i.d(e)}}}function la(e){var t,i,n,a,s,o="translateX(".concat(e[12],"px)");return a=new Jn({props:{previewTime:e[22]||e[27]?e[30]:e[10],headerText:"main"===e[32]?e[18]||e[16]:"",hideFrame:e[27]||(null==(i=null==(t=e[31])?void 0:t.framePreview)?void 0:i.hidden)}}),{c:function(){n=Y("div"),st(a.$$.fragment),se(n,"class","frame-preview-container svelte-1ueerdl"),he(n,"scrubbar-active",e[22]),he(n,"touch-mode",e[27]),de(n,"--frame-preview-width",e[13]+"px"),de(n,"transform",o)},m:function(e,t){J(e,n,t),ot(a,n,null),s=!0},p:function(e,t){var i,r,l={};1212154880&t[0]&&(l.previewTime=e[22]||e[27]?e[30]:e[10]),327680&t[0]&&(l.headerText="main"===e[32]?e[18]||e[16]:""),134217728&t[0]|1&t[1]&&(l.hideFrame=e[27]||(null==(r=null==(i=e[31])?void 0:i.framePreview)?void 0:r.hidden)),a.$set(l),(!s||4194304&t[0])&&he(n,"scrubbar-active",e[22]),(!s||134217728&t[0])&&he(n,"touch-mode",e[27]),8192&t[0]&&de(n,"--frame-preview-width",e[13]+"px"),4096&t[0]&&o!==(o="translateX(".concat(e[12],"px)"))&&de(n,"transform",o)},i:function(e){s||(Ye(a.$$.fragment,e),s=!0)},o:function(e){Xe(a.$$.fragment,e),s=!1},d:function(e){e&&Q(n),rt(a)}}}function ua(e){var t,i,n,a,s,o,r,l=function(e,t){var i;return null!=(i=e[24])&&i.length&&"main"===e[32]?Zn:Xn},u=l(e),d=u(e),c=!e[2]&&na(e),h=("video"===e[29]||e[9])&&!e[8]&&("main"===e[32]||"shorts"===e[32])&&la(e);return{c:function(){var s;t=Y("div"),i=Y("div"),d.c(),n=ee(),c&&c.c(),a=ee(),h&&h.c(),se(i,"class","slider-hover-container svelte-1ueerdl"),he(i,"rounded",!e[8]),de(i,"outline-style",!e[17]||null!=(s=e[25])&&s.isMobileDevice?"unset":"auto"),se(t,"class","bb-slider svelte-1ueerdl"),he(t,"read-only",e[2]),he(t,"hide-dot",e[3]),de(t,"--accent-color",e[4]),de(t,"--hit-height",e[1]+"px")},m:function(l,u){J(l,t,u),F(t,i),d.m(i,null),F(i,n),c&&c.m(i,null),e[76](i),F(t,a),h&&h.m(t,null),s=!0,o||(r=[ie(i,"pointerdown",ae(e[66])),ie(i,"mousedown",ae(e[57])),ie(i,"mouseup",e[58]),ie(i,"touchstart",ae(e[54])),ie(i,"touchmove",e[55]),ie(i,"touchend",e[56],{passive:!0}),ie(i,"mousemove",e[77]),ie(i,"mouseleave",e[78])],o=!0)},p:function(e,a){var o;u===(u=l(e))&&d?d.p(e,a):(d.d(1),(d=u(e))&&(d.c(),d.m(i,n))),e[2]?c&&(c.d(1),c=null):c?c.p(e,a):((c=na(e)).c(),c.m(i,null)),(!s||256&a[0])&&he(i,"rounded",!e[8]),33685504&a[0]&&de(i,"outline-style",!e[17]||null!=(o=e[25])&&o.isMobileDevice?"unset":"auto"),"video"!==e[29]&&!e[9]||e[8]||"main"!==e[32]&&"shorts"!==e[32]?h&&(Qe(),Xe(h,1,1,(function(){h=null})),Ke()):h?(h.p(e,a),536871680&a[0]&&Ye(h,1)):((h=la(e)).c(),Ye(h,1),h.m(t,null)),(!s||4&a[0])&&he(t,"read-only",e[2]),(!s||8&a[0])&&he(t,"hide-dot",e[3]),16&a[0]&&de(t,"--accent-color",e[4]),2&a[0]&&de(t,"--hit-height",e[1]+"px")},i:function(e){s||(Ye(h),s=!0)},o:function(e){Xe(h),s=!1},d:function(i){i&&Q(t),d.d(),c&&c.d(),e[76](null),h&&h.d(),o=!1,w(r)}}}function da(e,t,i){var n=100*e;return n<t?0:n>t+i?1:(n-t)/i}function ca(e,t,i){var n,a,s,o,r,l,u,d,c,h,p,_,m,f,v,g,y,b,k,w,$=function(e){var t,n,a=Pe.getBoundingClientRect(),o=(null==(n=null==(t=e.touches)?void 0:t[0])?void 0:n.clientX)-a.left;i(11,Ee=Math.max(0,Math.min(1,o/a.width))),i(12,$e=Math.min(Math.max(o-Ce/2,0),a.width-(Ce+12))),P(o,a.width,!0),S(o,a),i(13,Ce=p/(null!=u&&u.length||!Me||null!=s&&s.length?1:3))},C=function(e){_e.set(!0),i(13,Ce=Me||null!=u&&u.length||null!=s&&s.length?p:p/3),Oe=!0;var t=Pe.getBoundingClientRect(),n=e.clientX-t.left;i(11,Ee=Math.max(0,Math.min(1,n/t.width))),P(n,t.width,o),S(n,t)},S=function(e,t){var n;if(h){var a=null==(n=Y())?void 0:n.getBoundingClientRect(),s=t.x-(null==a?void 0:a.x);i(12,$e=Math.min(Math.max(-1*s+d,e-Ce/2),c-(Ce+2.5*d)))}else i(12,$e=Math.min(Math.max(e-Ce/2,0),c-(Ce+2.5*d)));var o=100*Ee;re.set(u.findIndex((function(e){return o>e.startPerc&&o<e.startPerc+e.durationPerc}))),i(18,Ve=l>=0?u[l].title:"")},P=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=e/t;if(i(10,Te=r?Math.max(V,Math.min((1-a)*V,0)):Math.min(F,Math.max(a*F,0))),o&&null!=s&&s.length){var l=s.findIndex((function(e){return Te>e.start-1&&Te<e.start+1}));I(l)}if(n&&xe){i(15,xe.value=""+Te,xe);var u=new Event("input",{bubbles:!0,cancelable:!0});xe.dispatchEvent(u)}},x=function(){_e.set(!1),Oe=!1,re.set(-1),setTimeout((function(){i(18,Ve="")}),150)},I=function(e){le.set(e)},T=t.hitHeight,D=void 0===T?20:T,E=t.value,M=void 0===E?0:E,B=t.readOnly,L=void 0!==B&&B,R=t.hideDot,H=void 0!==R&&R,q=t.accentColor,O=void 0===q?"#ff0000":q,z=t.min,V=void 0===z?0:z,j=t.max,F=void 0===j?100:j,N=t.step,U=void 0===N?.1:N,W=t.isStickyBar,G=void 0!==W&&W,J=Ae(zt),Q=J.api,K=J.skinMode,Y=J.getSkinLayer,X=J.translate,Z=J.bufferTimeRanges,ee=J.chapterList,te=J.highlightList,ie=J.currentTime,ne=J.detections,ae=J.touchMode,se=J.duration,re=J.hoverChapterIndex,le=J.hoverHighlightIndex,ue=J.mountedControlbar,de=J.livePlayerWithDvr,ce=J.playerMode,he=J.playerWidth,pe=J.usingScrubbar,_e=J.hoveringScrubbar,me=J.elementVisibility,fe=J.framePreviewWidthVideo,ve=J.marginSize,ge=J.skinSize,ye=J.entity,be=J.play,ke=J.pause,we=J.seekTo;A(e,Z,(function(e){return i(26,v=e)})),A(e,ee,(function(e){return i(24,u=e)})),A(e,te,(function(e){return i(21,s=e)})),A(e,ie,(function(e){return i(30,k=e)})),A(e,ne,(function(e){return i(25,f=e)})),A(e,ae,(function(e){return i(27,g=e)})),A(e,se,(function(e){return i(65,m=e)})),A(e,re,(function(e){return i(23,l=e)})),A(e,le,(function(e){return i(28,y=e)})),A(e,ue,(function(e){return i(86,h=e)})),A(e,de,(function(e){return i(9,r=e)})),A(e,ce,(function(e){return i(29,b=e)})),A(e,he,(function(e){return i(85,c=e)})),A(e,pe,(function(e){return i(22,o=e)})),A(e,me,(function(e){return i(31,w=e)})),A(e,fe,(function(e){return i(87,p=e)})),A(e,ve,(function(e){return i(84,d=e)})),A(e,ge,(function(e){return i(64,_=e)}));var $e,Ce,Pe,xe,Te=0,Ee=0,Me=!0,Be=!1,Le=!1,Re=null,He="",qe=[];qe.push(fe.subscribe((function(e){i(13,Ce=e)}))),qe.push(ye.subscribe((function(){var e,t;Me=!(null==(t=null==(e=null==Q?void 0:Q.getPreviewAsset)?void 0:e.call(Q))||!t.processedSrc)}))),qe.push(le.subscribe((function(e){var t,n;i(16,He=null!==(n=null==(t=s[e])?void 0:t.title)&&void 0!==n?n:"")})));var Oe=!1,ze=!1,Ve="";L||qe.push(pe.subscribe((function(e){e!==Be&&(e?(Le=null==Q?void 0:Q.isPlaying())&&(Re=setTimeout((function(){ke()}),150)):Le&&(clearTimeout(Re),be()),Be=e)}))),Se((function(){qe.forEach((function(e){return e()}))}));return e.$$set=function(e){"hitHeight"in e&&i(1,D=e.hitHeight),"value"in e&&i(0,M=e.value),"readOnly"in e&&i(2,L=e.readOnly),"hideDot"in e&&i(3,H=e.hideDot),"accentColor"in e&&i(4,O=e.accentColor),"min"in e&&i(5,V=e.min),"max"in e&&i(6,F=e.max),"step"in e&&i(7,U=e.step),"isStickyBar"in e&&i(8,G=e.isStickyBar)},e.$$.update=function(){577&e.$$.dirty[0]|8&e.$$.dirty[2]&&i(20,n=m?r?Math.min(1,1-M/m):Math.min(1,M/F):0),4&e.$$.dirty[2]&&i(19,a=["XS","S"].includes(_)?.6:.35)},[M,D,L,H,O,V,F,U,G,r,Te,Ee,$e,Ce,Pe,xe,He,ze,Ve,a,n,s,o,l,u,f,v,g,y,b,k,w,K,X,Z,ee,te,ie,ne,ae,se,re,le,ue,de,ce,he,pe,me,fe,ve,ge,we,function(e,t){var i,n;if(!e)return"initial";var a="rgba(255, 255, 255, 0.25)",s="";return t?null==(i=e.start)||i.forEach((function(i,n){var o=e.end[n];if(!(i>t.end||o<t.start)){var r=Math.max(i,t.start),l=Math.min(o,t.end),u=100*((r-t.start)/t.duration),d=100*((l-t.start)/t.duration);s+=", transparent ".concat(u,"%, ").concat(a," ").concat(u,"%, ").concat(a," ").concat(d,"%, transparent ").concat(d,"% ")}})):null==(n=e.start)||n.forEach((function(t,i){var n=t/F*100,o=e.end[i]/F*100;s+=", transparent ".concat(n,"%, ").concat(a," ").concat(n,"%, ").concat(a," ").concat(o,"%, transparent ").concat(o,"% ")})),s?"linear-gradient(to right".concat(s,")"):"initial"},function(e){pe.set(!0),_e.set(!0),ae.set(!0),$(e)},$,function(){pe.set(!1),_e.set(!1)},function(){pe.set(!0)},function(){pe.set(!1)},C,x,I,function(e){var t,n=null==e?void 0:e.composedPath();null!=n&&n.length&&(t=n[n.length-1]),!Oe&&"#document-fragment"===(null==t?void 0:t.nodeName)&&i(17,ze=!0)},function(){i(17,ze=!1)},_,m,function(t){Ie.call(this,e,t)},function(t){Ie.call(this,e,t)},function(t){Ie.call(this,e,t)},function(t){Ie.call(this,e,t)},function(t){Ie.call(this,e,t)},function(){M=oe(this.value),i(0,M)},function(e){De[e?"unshift":"push"]((function(){i(15,xe=e)}))},function(e){return I(e)},function(){return I(-1)},function(e){return we(e.start)},function(e){De[e?"unshift":"push"]((function(){i(14,Pe=e)}))},function(e){return C(e)},function(){return x()}]}var ha=function(e){l.default(i,e);var t=u.default(i);function i(e){var n;return a.default(this,i),n=t.call(this),ut(d.default(n),e,ca,ua,C,{hitHeight:1,value:0,readOnly:2,hideDot:3,accentColor:4,min:5,max:6,step:7,isStickyBar:8},Qn,[-1,-1,-1,-1]),c.default(n)}return i}(dt);function pa(e){N(e,"svelte-1508t6u",".chrome.svelte-1508t6u.svelte-1508t6u.svelte-1508t6u.svelte-1508t6u{width:100%;height:100%;display:flex;flex-direction:column;background:linear-gradient(rgba(0, 0, 0, 0) 82%, rgba(0, 0, 0, 0.25) 100%)}.center-area.svelte-1508t6u.svelte-1508t6u.svelte-1508t6u.svelte-1508t6u{flex-grow:1;display:grid;place-content:center}.bottom-container.svelte-1508t6u.svelte-1508t6u.svelte-1508t6u.svelte-1508t6u{margin:5px 10px;transition:transform 0.15s ease-in-out}.bottom-container.svelte-1508t6u .ad-icon.svelte-1508t6u.svelte-1508t6u.svelte-1508t6u{display:inline-flex;justify-content:center}.bottom-container.svelte-1508t6u .ad-icon.svelte-1508t6u svg{height:var(--bar-icon-size)}.bottom-container.svelte-1508t6u .ad-info.svelte-1508t6u.svelte-1508t6u.svelte-1508t6u{height:100%;font-size:1em;font-weight:bold;display:flex;align-items:center;gap:5px;line-height:20px}@supports (-webkit-touch-callout: none) and (not (translate: none)){.bottom-container.svelte-1508t6u .ad-info.svelte-1508t6u>.svelte-1508t6u+.svelte-1508t6u{margin-left:5px}}.bb-slider-element.svelte-1508t6u.svelte-1508t6u.svelte-1508t6u.svelte-1508t6u{height:4px}.bar.svelte-1508t6u.svelte-1508t6u.svelte-1508t6u.svelte-1508t6u{display:flex;gap:2px;justify-content:flex-start;align-items:center;min-height:var(--bar-button-size)}@supports (-webkit-touch-callout: none) and (not (translate: none)){.bar.svelte-1508t6u>.svelte-1508t6u+.svelte-1508t6u.svelte-1508t6u{margin-left:2px}}.bar.svelte-1508t6u>.svelte-1508t6u.svelte-1508t6u.svelte-1508t6u{display:flex;flex-direction:column;justify-content:center}.bar.svelte-1508t6u .bar-button.svelte-1508t6u.svelte-1508t6u.svelte-1508t6u{width:var(--bar-button-size);height:var(--bar-button-size);pointer-events:initial}.bar.svelte-1508t6u .ad-info.svelte-1508t6u.svelte-1508t6u.svelte-1508t6u{flex-grow:1;flex-direction:row;justify-content:flex-start}")}function _a(e){var t,i,n,a,s,o,r,l,u,d,c,h,p,_,m,f,v,g,y,b,k,$,C,S,P,x,A=kt(e[10]-e[11])+"",I=!e[1]("commercialProgressBar");s=new pi({props:{iconHeight:e[5],toggled:e[2],name:"playPauseButton",hideTooltipSubText:!0,tooltipOffsetY:"-38px",$$slots:{toggled:[fa],normal:[ma]},$$scope:{ctx:e}}}),u=new pi({props:{iconHeight:e[5],toggled:e[6]||0===e[7],name:"muteButton",hideTooltipSubText:!0,tooltipOffsetY:"-38px",$$slots:{toggled:[ga],normal:[va]},$$scope:{ctx:e}}}),_=new Fn({props:{color:e[8]}});var T=(null==(t=e[9])?void 0:t.totalAds)>0&&ya(e),D=I&&ba(e);return{c:function(){i=Y("div"),n=Y("div"),a=Y("div"),st(s.$$.fragment),r=ee(),l=Y("div"),st(u.$$.fragment),c=ee(),h=Y("div"),p=Y("span"),st(_.$$.fragment),f=ee(),v=Y("div"),T&&T.c(),g=ee(),y=Y("span"),b=Z(A),$=ee(),D&&D.c(),C=te(),se(a,"class","play-pause-button bar-button svelte-1508t6u"),se(a,"style",o=e[1]("commercialPauseButton")),se(l,"class","volume-button bar-button svelte-1508t6u"),se(l,"style",d=e[1]("commercialMuteButton")),se(p,"class","ad-icon svelte-1508t6u"),se(h,"class","bar-button svelte-1508t6u"),se(h,"style",m=e[0]()),se(y,"class","time-display svelte-1508t6u"),se(v,"class","ad-info svelte-1508t6u"),se(v,"style",k=e[1]("remaining")),se(n,"class","bar svelte-1508t6u"),se(i,"class","bottom-container svelte-1508t6u")},m:function(t,o){J(t,i,o),F(i,n),F(n,a),ot(s,a,null),F(n,r),F(n,l),ot(u,l,null),F(n,c),F(n,h),F(h,p),ot(_,p,null),F(n,f),F(n,v),T&&T.m(v,null),F(v,g),F(v,y),F(y,b),J(t,$,o),D&&D.m(t,o),J(t,C,o),S=!0,P||(x=[ie(a,"click",e[25]),ie(l,"click",e[24])],P=!0)},p:function(e,t){var i,n={};32&t[0]&&(n.iconHeight=e[5]),4&t[0]&&(n.toggled=e[2]),4&t[1]&&(n.$$scope={dirty:t,ctx:e}),s.$set(n),(!S||2&t[0]&&o!==(o=e[1]("commercialPauseButton")))&&se(a,"style",o);var r={};32&t[0]&&(r.iconHeight=e[5]),192&t[0]&&(r.toggled=e[6]||0===e[7]),4&t[1]&&(r.$$scope={dirty:t,ctx:e}),u.$set(r),(!S||2&t[0]&&d!==(d=e[1]("commercialMuteButton")))&&se(l,"style",d);var c={};256&t[0]&&(c.color=e[8]),_.$set(c),(!S||1&t[0]&&m!==(m=e[0]()))&&se(h,"style",m),(null==(i=e[9])?void 0:i.totalAds)>0?T?T.p(e,t):((T=ya(e)).c(),T.m(v,g)):T&&(T.d(1),T=null),(!S||3072&t[0])&&A!==(A=kt(e[10]-e[11])+"")&&le(b,A),(!S||2&t[0]&&k!==(k=e[1]("remaining")))&&se(v,"style",k),2&t[0]&&(I=!e[1]("commercialProgressBar")),I?D?(D.p(e,t),2&t[0]&&Ye(D,1)):((D=ba(e)).c(),Ye(D,1),D.m(C.parentNode,C)):D&&(Qe(),Xe(D,1,1,(function(){D=null})),Ke())},i:function(e){S||(Ye(s.$$.fragment,e),Ye(u.$$.fragment,e),Ye(_.$$.fragment,e),Ye(D),S=!0)},o:function(e){Xe(s.$$.fragment,e),Xe(u.$$.fragment,e),Xe(_.$$.fragment,e),Xe(D),S=!1},d:function(e){e&&(Q(i),Q($),Q(C)),rt(s),rt(u),rt(_),T&&T.d(),D&&D.d(e),P=!1,w(x)}}}function ma(e){var t,i,n;return i=new Dn({}),{c:function(){t=Y("div"),st(i.$$.fragment),se(t,"slot","normal")},m:function(e,a){J(e,t,a),ot(i,t,null),n=!0},p:v,i:function(e){n||(Ye(i.$$.fragment,e),n=!0)},o:function(e){Xe(i.$$.fragment,e),n=!1},d:function(e){e&&Q(t),rt(i)}}}function fa(e){var t,i,n;return i=new Bn({}),{c:function(){t=Y("div"),st(i.$$.fragment),se(t,"slot","toggled")},m:function(e,a){J(e,t,a),ot(i,t,null),n=!0},p:v,i:function(e){n||(Ye(i.$$.fragment,e),n=!0)},o:function(e){Xe(i.$$.fragment,e),n=!1},d:function(e){e&&Q(t),rt(i)}}}function va(e){var t,i,n;return i=new qn({}),{c:function(){t=Y("div"),st(i.$$.fragment),se(t,"slot","normal")},m:function(e,a){J(e,t,a),ot(i,t,null),n=!0},p:v,i:function(e){n||(Ye(i.$$.fragment,e),n=!0)},o:function(e){Xe(i.$$.fragment,e),n=!1},d:function(e){e&&Q(t),rt(i)}}}function ga(e){var t,i,n;return i=new zn({}),{c:function(){t=Y("div"),st(i.$$.fragment),se(t,"slot","toggled")},m:function(e,a){J(e,t,a),ot(i,t,null),n=!0},p:v,i:function(e){n||(Ye(i.$$.fragment,e),n=!0)},o:function(e){Xe(i.$$.fragment,e),n=!1},d:function(e){e&&Q(t),rt(i)}}}function ya(e){var t,i,n,a,s,o=e[9].adPosition+"",r=e[9].totalAds+"";return{c:function(){t=Y("span"),i=Z(o),n=Z(" of "),a=Z(r),s=Z(" •"),se(t,"class","adpod-info svelte-1508t6u")},m:function(e,o){J(e,t,o),F(t,i),F(t,n),F(t,a),F(t,s)},p:function(e,t){512&t[0]&&o!==(o=e[9].adPosition+"")&&le(i,o),512&t[0]&&r!==(r=e[9].totalAds+"")&&le(a,r)},d:function(e){e&&Q(t)}}}function ba(e){var t,i,n,a,s=function(t){e[28](t)},o={readOnly:!0,accentColor:e[8],max:e[10]};return void 0!==e[11]&&(o.value=e[11]),i=new ha({props:o}),De.push((function(){return at(i,"value",s)})),{c:function(){t=Y("div"),st(i.$$.fragment),se(t,"class","bb-slider-element svelte-1508t6u")},m:function(e,n){J(e,t,n),ot(i,t,null),a=!0},p:function(e,t){var a={};256&t[0]&&(a.accentColor=e[8]),1024&t[0]&&(a.max=e[10]),!n&&2048&t[0]&&(n=!0,a.value=e[11],Oe((function(){return n=!1}))),i.$set(a)},i:function(e){a||(Ye(i.$$.fragment,e),a=!0)},o:function(e){Xe(i.$$.fragment,e),a=!1},d:function(e){e&&Q(t),rt(i)}}}function ka(e){var t,i,n,a,s,o,r="EXIT"!==e[4]&&_a(e);return{c:function(){t=Y("div"),(i=Y("div")).innerHTML='<div class="header-area"></div>',n=ee(),a=Y("div"),s=ee(),r&&r.c(),se(i,"class","top-container"),se(a,"class","center-area svelte-1508t6u"),se(t,"class","chrome svelte-1508t6u"),de(t,"--bar-button-size",e[3]+"px")},m:function(e,l){J(e,t,l),F(t,i),F(t,n),F(t,a),F(t,s),r&&r.m(t,null),o=!0},p:function(e,i){"EXIT"!==e[4]?r?(r.p(e,i),16&i[0]&&Ye(r,1)):((r=_a(e)).c(),Ye(r,1),r.m(t,null)):r&&(Qe(),Xe(r,1,1,(function(){r=null})),Ke()),8&i[0]&&de(t,"--bar-button-size",e[3]+"px")},i:function(e){o||(Ye(r),o=!0)},o:function(e){Xe(r),o=!1},d:function(e){e&&Q(t),r&&r.d()}}}function wa(e,t,i){var n,a,s,o,r,l,u,d,c,h,p,_,m,f,v=Ae(zt),g=v.toggleMute,y=v.api,b=v.adPodInfo,k=v.accentColor,w=v.currentTime,$=v.duration,C=v.playing,S=v.muted,P=v.phase,x=v.displayVolume,I=v.elementVisibility,T=v.barButtonSize,D=v.barIconSize,E=v.currentAd,M=v.play,B=v.pause;return A(e,b,(function(e){return i(9,_=e)})),A(e,k,(function(e){return i(8,p=e)})),A(e,w,(function(e){return i(11,f=e)})),A(e,$,(function(e){return i(10,m=e)})),A(e,C,(function(e){return i(2,r=e)})),A(e,S,(function(e){return i(6,c=e)})),A(e,P,(function(e){return i(4,u=e)})),A(e,x,(function(e){return i(7,h=e)})),A(e,I,(function(e){return i(27,o=e)})),A(e,T,(function(e){return i(3,l=e)})),A(e,D,(function(e){return i(5,d=e)})),A(e,E,(function(e){return i(26,s=e)})),e.$$.update=function(){134217728&e.$$.dirty[0]&&i(1,n=function(e){var t;return null!=(t=null==o?void 0:o[e])&&t.hidden?"display: none; visibility: hidden":""}),201326592&e.$$.dirty[0]&&i(0,a=function(){var e;return null!=(e=null==o?void 0:o.commercialAdIcon)&&e.hidden||!s||"application/javascript"===(null==s?void 0:s.contentType)?"display: none; visibility: hidden":""})},[a,n,r,l,u,d,c,h,p,_,m,f,b,k,w,$,C,S,P,x,I,T,D,E,function(){g()},function(){y&&(r?B():M())},s,o,function(e){f=e,w.set(f)}]}var $a=function(e){l.default(i,e);var t=u.default(i);function i(e){var n;return a.default(this,i),n=t.call(this),ut(d.default(n),e,wa,ka,C,{},pa,[-1,-1]),c.default(n)}return i}(dt);function Ca(e){var t,i;return{c:function(){t=X("svg"),se(i=X("path"),"fill","#fff"),se(i,"d","M321.7 0c19.1 0 32.9 18.3 27.6 36.6L295.8 224H381c19.3 0 34.9 15.6 34.9 34.9 0 10.3-4.5 20-12.3 26.6L144.9 505.2c-5.2 4.4-11.8 6.8-18.6 6.8-19.1 0-32.9-18.3-27.6-36.6L152.2 288H65.7C47.1 288 32 272.9 32 254.3c0-9.9 4.3-19.2 11.8-25.6L303.1 6.9c5.2-4.5 11.8-6.9 18.6-6.9zm-36.1 85L104.4 240H184c7.5 0 14.6 3.5 19.2 9.5s6 13.8 3.9 21l-44.8 157L345.5 272H264c-7.5 0-14.6-3.5-19.2-9.5s-6-13.8-3.9-21L285.6 85z"),se(t,"xmlns","http://www.w3.org/2000/svg"),se(t,"viewBox","0 0 448 512")},m:function(e,n){J(e,t,n),F(t,i)},p:v,i:v,o:v,d:function(e){e&&Q(t)}}}var Sa=function(e){l.default(i,e);var t=u.default(i);function i(e){var n;return a.default(this,i),n=t.call(this),ut(d.default(n),e,null,Ca,C,{}),c.default(n)}return i}(dt);function Pa(e){N(e,"svelte-jkefs6",".badge.svelte-jkefs6{position:absolute;background-color:#f3f5f5;color:black;font-weight:bold;width:1.5em;height:1.5em;border-radius:50%;font-size:min(0.8em, 24px);text-align:center;line-height:1.5em;opacity:var(--button-opacity);transition:opacity 0.3s ease}.badge.top-right.svelte-jkefs6{top:-0.4em;right:-0.4em}")}function xa(e){var t,i,n,a=e[3].default,s=I(a,e,e[2],null);return{c:function(){t=Y("div"),s&&s.c(),se(t,"class",i="badge "+e[0]+" svelte-jkefs6"),de(t,"--button-opacity",e[1])},m:function(e,i){J(e,t,i),s&&s.m(t,null),n=!0},p:function(e,r){var l=o.default(r,1)[0];s&&s.p&&(!n||4&l)&&E(s,a,e,e[2],n?D(a,e[2],l,null):M(e[2]),null),(!n||1&l&&i!==(i="badge "+e[0]+" svelte-jkefs6"))&&se(t,"class",i),2&l&&de(t,"--button-opacity",e[1])},i:function(e){n||(Ye(s,e),n=!0)},o:function(e){Xe(s,e),n=!1},d:function(e){e&&Q(t),s&&s.d(e)}}}function Aa(e,t,i){var n=t.$$slots,a=void 0===n?{}:n,s=t.$$scope,o=t.position,r=void 0===o?"top-right":o,l=t.buttonOpacity,u=void 0===l?"1":l;return e.$$set=function(e){"position"in e&&i(0,r=e.position),"buttonOpacity"in e&&i(1,u=e.buttonOpacity),"$$scope"in e&&i(2,s=e.$$scope)},[r,u,s,a]}var Ia=function(e){l.default(i,e);var t=u.default(i);function i(e){var n;return a.default(this,i),n=t.call(this),ut(d.default(n),e,Aa,xa,C,{position:0,buttonOpacity:1},Pa),c.default(n)}return i}(dt);function Ta(e){N(e,"svelte-fs2odr",".toggle-highlights-button.svelte-fs2odr{opacity:1;transition:opacity 0.3s ease}.toggle-highlights-button.hidden.svelte-fs2odr{opacity:0;pointer-events:none}")}function Da(e){var t,i,n,a;return i=new Sa({}),{c:function(){t=Y("div"),st(i.$$.fragment),se(t,"slot","normal"),se(t,"class","button")},m:function(e,n){J(e,t,n),ot(i,t,null),a=!0},p:v,i:function(e){a||(Ye(i.$$.fragment,e),qe((function(){a&&(n||(n=it(t,Ft,{duration:300},!0)),n.run(1))})),a=!0)},o:function(e){Xe(i.$$.fragment,e),n||(n=it(t,Ft,{duration:300},!1)),n.run(0),a=!1},d:function(e){e&&Q(t),rt(i),e&&n&&n.end()}}}function Ea(e){var t,i,n,a;return i=new bi({}),{c:function(){t=Y("div"),st(i.$$.fragment),se(t,"slot","toggled")},m:function(e,n){J(e,t,n),ot(i,t,null),a=!0},p:v,i:function(e){a||(Ye(i.$$.fragment,e),qe((function(){a&&(n||(n=it(t,Ft,{duration:300},!0)),n.run(1))})),a=!0)},o:function(e){Xe(i.$$.fragment,e),n||(n=it(t,Ft,{duration:300},!1)),n.run(0),a=!1},d:function(e){e&&Q(t),rt(i),e&&n&&n.end()}}}function Ma(e){var t,i,n=(null==(t=e[5])?void 0:t.length)+"";return{c:function(){i=Z(n)},m:function(e,t){J(e,i,t)},p:function(e,t){var a;32&t&&n!==(n=(null==(a=e[5])?void 0:a.length)+"")&&le(i,n)},d:function(e){e&&Q(i)}}}function Ba(e){var t,i,n,a,s,r,l,u;return i=new pi({props:{buttonPosition:e[0]?"absolute":"relative",bgBorderRadius:e[2]?"48px":"50%",name:e[0]?"close":"highlights",hideToolTip:!!e[2],tooltipOffsetY:"-3em",iconHeight:.9*e[3],bgHeight:e[4]+"px",toggled:e[0],standalone:!0,disabled:e[1],text:e[2]?"Highlights":"",$$slots:{toggled:[Ea],normal:[Da]},$$scope:{ctx:e}}}),a=new Ia({props:{buttonOpacity:e[0]?"0":"1",$$slots:{default:[Ma]},$$scope:{ctx:e}}}),{c:function(){t=Y("div"),st(i.$$.fragment),n=ee(),st(a.$$.fragment),se(t,"class","toggle-highlights-button svelte-fs2odr"),he(t,"hidden",e[1])},m:function(s,o){J(s,t,o),ot(i,t,null),F(t,n),ot(a,t,null),r=!0,l||(u=ie(t,"click",ae(e[22])),l=!0)},p:function(e,n){var s=o.default(n,1)[0],l={};1&s&&(l.buttonPosition=e[0]?"absolute":"relative"),4&s&&(l.bgBorderRadius=e[2]?"48px":"50%"),1&s&&(l.name=e[0]?"close":"highlights"),4&s&&(l.hideToolTip=!!e[2]),8&s&&(l.iconHeight=.9*e[3]),16&s&&(l.bgHeight=e[4]+"px"),1&s&&(l.toggled=e[0]),2&s&&(l.disabled=e[1]),4&s&&(l.text=e[2]?"Highlights":""),8388608&s&&(l.$$scope={dirty:s,ctx:e}),i.$set(l);var u={};1&s&&(u.buttonOpacity=e[0]?"0":"1"),8388640&s&&(u.$$scope={dirty:s,ctx:e}),a.$set(u),(!r||2&s)&&he(t,"hidden",e[1])},i:function(e){r||(Ye(i.$$.fragment,e),Ye(a.$$.fragment,e),qe((function(){r&&(s||(s=it(t,Ft,{duration:300},!0)),s.run(1))})),r=!0)},o:function(e){Xe(i.$$.fragment,e),Xe(a.$$.fragment,e),s||(s=it(t,Ft,{duration:300},!1)),s.run(0),r=!1},d:function(e){e&&Q(t),rt(i),rt(a),e&&s&&s.end(),l=!1,u()}}}function La(e,t,i){var n,a,s,o,r,l,u,d,c,h,p=Ae(zt),_=p.screenXXS,m=p.barButtonSize,f=p.barIconSize,v=p.elementVisibility,g=p.passedFiveSeconds,y=p.relatedItems,b=p.highlightList,k=p.playing;A(e,_,(function(e){return i(21,u=e)})),A(e,m,(function(e){return i(4,c=e)})),A(e,f,(function(e){return i(3,d=e)})),A(e,v,(function(e){return i(17,s=e)})),A(e,g,(function(e){return i(20,l=e)})),A(e,y,(function(e){return i(19,r=e)})),A(e,b,(function(e){return i(5,h=e)})),A(e,k,(function(e){return i(18,o=e)}));var w=t.placeholder,$=void 0!==w&&w,C=t.highlightPaneOpen,S=void 0!==C&&C,P=t.toggleHighlightPane,x=void 0===P?function(){}:P,I=function(){setTimeout((function(){x()}))};return e.$$set=function(e){"placeholder"in e&&i(15,$=e.placeholder),"highlightPaneOpen"in e&&i(0,S=e.highlightPaneOpen),"toggleHighlightPane"in e&&i(16,x=e.toggleHighlightPane)},e.$$.update=function(){var t;3145729&e.$$.dirty&&i(2,n=!S&&!u&&!l),950272&e.$$.dirty&&i(1,a=(null==r?void 0:r.length)&&!o&&!(null!=(t=null==s?void 0:s.relatedItems)&&t.hidden)||$)},[S,a,n,d,c,h,_,m,f,v,g,y,b,k,I,$,x,s,o,r,l,u,function(){return I()}]}var Ra=function(e){l.default(i,e);var t=u.default(i);function i(e){var n;return a.default(this,i),n=t.call(this),ut(d.default(n),e,La,Ba,C,{placeholder:15,highlightPaneOpen:0,toggleHighlightPane:16},Ta),c.default(n)}return i}(dt);function Ha(e){var t,i;return{c:function(){t=X("svg"),se(i=X("path"),"d","M0 3c0-1.657 1.399-3 3.125-3h18.75C23.599 0 25 1.343 25 3v12c0 1.655-1.401 3-3.125 3H3.125C1.399 18 0 16.655 0 15V3zm1.563 0v1.87l9.551 6.722c.825.581 1.948.581 2.773 0l9.551-6.722V3c0-.83-.698-1.5-1.562-1.5H3.081c-.819 0-1.562.67-1.562 1.5h.044zm0 3.731V15c0 .83.7 1.5 1.563 1.5h18.75c.864 0 1.563-.67 1.563-1.5V6.731l-8.628 6.07a4.03 4.03 0 0 1-4.619 0l-8.628-6.07z"),se(i,"fill","#fff"),se(t,"xmlns","http://www.w3.org/2000/svg"),se(t,"viewBox","0 0 25 18"),se(t,"fill","none")},m:function(e,n){J(e,t,n),F(t,i)},p:v,i:v,o:v,d:function(e){e&&Q(t)}}}var qa=function(e){l.default(i,e);var t=u.default(i);function i(e){var n;return a.default(this,i),n=t.call(this),ut(d.default(n),e,null,Ha,C,{}),c.default(n)}return i}(dt);function Oa(e){var t,i;return{c:function(){t=X("svg"),se(i=X("path"),"d","M8.41 10.125l.467-3.258H5.959V4.753c0-.891.408-1.76 1.715-1.76H9V.22S7.796 0 6.645 0C4.242 0 2.671 1.56 2.671 4.385v2.483H0v3.258h2.671V18h3.288v-7.875H8.41z"),se(i,"fill","#fff"),se(t,"xmlns","http://www.w3.org/2000/svg"),se(t,"viewBox","0 0 9 18"),se(t,"fill","none")},m:function(e,n){J(e,t,n),F(t,i)},p:v,i:v,o:v,d:function(e){e&&Q(t)}}}var za=function(e){l.default(i,e);var t=u.default(i);function i(e){var n;return a.default(this,i),n=t.call(this),ut(d.default(n),e,null,Oa,C,{}),c.default(n)}return i}(dt);function Va(e){var t,i;return{c:function(){t=X("svg"),se(i=X("path"),"d","M4.029 18H.297V5.982h3.732V18zM2.161 4.343A2.18 2.18 0 0 1 0 2.161 2.16 2.16 0 0 1 2.161 0a2.16 2.16 0 0 1 2.161 2.161c0 1.193-.968 2.182-2.161 2.182zM17.996 18h-3.724v-5.85c0-1.394-.028-3.182-1.94-3.182-1.94 0-2.238 1.515-2.238 3.082V18H6.367V5.982h3.579v1.639h.052c.498-.944 1.715-1.941 3.531-1.941 3.777 0 4.471 2.487 4.471 5.718V18h-.004z"),se(i,"fill","#fff"),se(t,"xmlns","http://www.w3.org/2000/svg"),se(t,"viewBox","0 0 18 18"),se(t,"fill","none")},m:function(e,n){J(e,t,n),F(t,i)},p:v,i:v,o:v,d:function(e){e&&Q(t)}}}var ja=function(e){l.default(i,e);var t=u.default(i);function i(e){var n;return a.default(this,i),n=t.call(this),ut(d.default(n),e,null,Va,C,{}),c.default(n)}return i}(dt);function Fa(e){var t,i;return{c:function(){t=X("svg"),se(i=X("path"),"d","M714.163 519.284L1160.89 0H1055.03L667.137 450.887L357.328 0H0L468.492 681.821L0 1226.37H105.866L515.491 750.218L842.672 1226.37H1200L714.137 519.284H714.163ZM569.165 687.828L521.697 619.934L144.011 79.6944H306.615L611.412 515.685L658.88 583.579L1055.08 1150.3H892.476L569.165 687.854V687.828Z"),se(i,"fill","white"),se(t,"viewBox","0 0 1200 1227"),se(t,"fill","none"),se(t,"xmlns","http://www.w3.org/2000/svg")},m:function(e,n){J(e,t,n),F(t,i)},p:v,i:v,o:v,d:function(e){e&&Q(t)}}}var Na=function(e){l.default(i,e);var t=u.default(i);function i(e){var n;return a.default(this,i),n=t.call(this),ut(d.default(n),e,null,Fa,C,{}),c.default(n)}return i}(dt);function Ua(e){var t,i;return{c:function(){t=X("svg"),se(i=X("path"),"d","M1.878 8.999l8.004 7.72c.306.291.306.769 0 1.059s-.797.295-1.099 0L.228 9.529a.73.73 0 0 1 0-1.059L8.784.22c.301-.293.797-.293 1.099 0s.306.768 0 1.06L1.878 8.999zM18.117 1.28c-.306-.292-.306-.767 0-1.06s.797-.293 1.099 0l8.555 8.25c.306.291.306.769 0 1.059l-8.555 8.249c-.301.295-.797.295-1.099 0s-.306-.769 0-1.059l8.006-7.762-8.006-7.677z"),se(i,"fill","#fff"),se(t,"xmlns","http://www.w3.org/2000/svg"),se(t,"viewBox","0 0 28 18"),se(t,"fill","none")},m:function(e,n){J(e,t,n),F(t,i)},p:v,i:v,o:v,d:function(e){e&&Q(t)}}}var Wa=function(e){l.default(i,e);var t=u.default(i);function i(e){var n;return a.default(this,i),n=t.call(this),ut(d.default(n),e,null,Ua,C,{}),c.default(n)}return i}(dt);function Ga(e){var t,i;return{c:function(){t=X("svg"),se(i=X("path"),"d","M15.304 2.616A8.85 8.85 0 0 0 8.996 0C4.078 0 .076 4.002.076 8.92a8.93 8.93 0 0 0 1.189 4.46L0 18l4.729-1.241c1.302.711 2.768 1.085 4.263 1.085h.004c4.914 0 9.004-4.002 9.004-8.92 0-2.383-1.012-4.621-2.696-6.308h0zM8.996 16.341a7.4 7.4 0 0 1-3.777-1.033l-.269-.161-2.804.735.747-2.736-.177-.281A7.39 7.39 0 0 1 1.583 8.92C1.583 4.833 4.91 1.507 9 1.507c1.981 0 3.841.771 5.239 2.174s2.258 3.262 2.254 5.243c0 4.09-3.411 7.417-7.497 7.417h0zm4.066-5.553c-.221-.113-1.318-.651-1.523-.723s-.354-.112-.502.112-.575.723-.707.876-.261.169-.482.056c-1.31-.655-2.17-1.169-3.033-2.652-.229-.394.229-.366.655-1.217.072-.149.036-.277-.02-.39s-.502-1.209-.687-1.655c-.181-.434-.366-.374-.502-.382-.129-.008-.277-.008-.426-.008s-.39.056-.595.277-.779.763-.779 1.86.8 2.158.908 2.306 1.571 2.399 3.809 3.367c1.414.611 1.969.663 2.676.559.43-.064 1.318-.538 1.503-1.061s.185-.968.129-1.061c-.052-.1-.201-.157-.422-.265z"),se(i,"fill","#fff"),se(t,"xmlns","http://www.w3.org/2000/svg"),se(t,"viewBox","0 0 18 18"),se(t,"fill","none")},m:function(e,n){J(e,t,n),F(t,i)},p:v,i:v,o:v,d:function(e){e&&Q(t)}}}var Ja=function(e){l.default(i,e);var t=u.default(i);function i(e){var n;return a.default(this,i),n=t.call(this),ut(d.default(n),e,null,Ga,C,{}),c.default(n)}return i}(dt);function Qa(e){var t,i;return{c:function(){t=X("svg"),se(i=X("path"),"d","M5.313 0C2.641 0 0 1.782 0 4.665 0 6.499 1.031 7.54 1.656 7.54c.258 0 .406-.719.406-.922 0-.242-.617-.758-.617-1.766 0-2.094 1.594-3.579 3.656-3.579 1.773 0 3.086 1.008 3.086 2.86 0 1.383-.555 3.977-2.352 3.977-.648 0-1.203-.469-1.203-1.141 0-.985.688-1.938.688-2.954 0-1.724-2.445-1.412-2.445.672 0 .438.055.922.25 1.321-.359 1.547-1.094 3.852-1.094 5.446 0 .492.07.977.117 1.469.089.099.044.088.18.039 1.313-1.797 1.266-2.149 1.859-4.501.32.609 1.148.938 1.805.938C8.758 9.4 10 6.704 10 4.274 10 1.688 7.766 0 5.313 0z"),se(i,"fill","#fff"),se(t,"xmlns","http://www.w3.org/2000/svg"),se(t,"viewBox","0 0 10 13"),se(t,"fill","none")},m:function(e,n){J(e,t,n),F(t,i)},p:v,i:v,o:v,d:function(e){e&&Q(t)}}}var Ka=function(e){l.default(i,e);var t=u.default(i);function i(e){var n;return a.default(this,i),n=t.call(this),ut(d.default(n),e,null,Qa,C,{}),c.default(n)}return i}(dt);function Ya(e){var t,i;return{c:function(){t=X("svg"),se(i=X("path"),"d","M580.3 267.2c56.2-56.2 56.2-147.3 0-203.5-53.5-53.5-139.4-56.4-196.4-6.5l-6.1 5.4c-10 8.7-11 23.9-2.3 33.9s23.9 11 33.9 2.3l6.1-5.4c38-33.2 95.2-31.3 130.9 4.4 37.4 37.4 37.4 98.1 0 135.6L433.1 346.6c-37.4 37.4-98.2 37.4-135.6 0-35.7-35.7-37.6-92.9-4.4-130.9l4.7-5.4c8.7-10 7.7-25.1-2.3-33.9s-25.1-7.7-33.9 2.3l-4.7 5.4c-49.8 57-46.9 142.9 6.6 196.4 56.2 56.2 147.3 56.2 203.5 0l113.3-113.3zM59.7 244.8C3.5 301 3.5 392.1 59.7 448.2c53.6 53.6 139.5 56.4 196.5 6.5l6.1-5.4c10-8.7 11-23.9 2.3-33.9s-23.9-11-33.9-2.3l-6.1 5.4c-38 33.2-95.2 31.3-130.9-4.4-37.4-37.4-37.4-98.1 0-135.6L207 165.4c37.4-37.4 98.1-37.4 135.6 0 35.7 35.7 37.6 92.9 4.4 130.9l-5.4 6.1c-8.7 10-7.7 25.1 2.3 33.9s25.1 7.7 33.9-2.3l5.4-6.1c49.9-57 47-142.9-6.5-196.5-56.2-56.2-147.3-56.2-203.5 0L59.7 244.8z"),se(t,"xmlns","http://www.w3.org/2000/svg"),se(t,"viewBox","0 0 640 512"),se(t,"xmlns:v","https://vecta.io/nano")},m:function(e,n){J(e,t,n),F(t,i)},p:v,i:v,o:v,d:function(e){e&&Q(t)}}}var Xa=function(e){l.default(i,e);var t=u.default(i);function i(e){var n;return a.default(this,i),n=t.call(this),ut(d.default(n),e,null,Ya,C,{}),c.default(n)}return i}(dt);function Za(e){N(e,"svelte-mrktdb",".overlay-container.svelte-mrktdb{position:absolute;width:100%;height:100%;left:0;top:0;background-color:rgba(0, 0, 0, 0.5);z-index:20;display:flex;justify-content:center;align-items:var(--align-items);pointer-events:initial}")}function es(e){var t,i,n,a,s,r=e[3].default,l=I(r,e,e[2],null);return{c:function(){t=Y("div"),l&&l.c(),se(t,"class","overlay-container svelte-mrktdb"),de(t,"--align-items",e[0])},m:function(i,o){J(i,t,o),l&&l.m(t,null),n=!0,a||(s=ie(t,"click",ae(e[4])),a=!0)},p:function(e,i){var a=o.default(i,1)[0];l&&l.p&&(!n||4&a)&&E(l,r,e,e[2],n?D(r,e[2],a,null):M(e[2]),null),1&a&&de(t,"--align-items",e[0])},i:function(e){n||(Ye(l,e),qe((function(){n&&(i||(i=it(t,Ft,{duration:150},!0)),i.run(1))})),n=!0)},o:function(e){Xe(l,e),i||(i=it(t,Ft,{duration:150},!1)),i.run(0),n=!1},d:function(e){e&&Q(t),l&&l.d(e),e&&i&&i.end(),a=!1,s()}}}function ts(e,t,i){var n=t.$$slots,a=void 0===n?{}:n,s=t.$$scope,o=t.vAlign,r=void 0===o?"center":o,l=Pe();return e.$$set=function(e){"vAlign"in e&&i(0,r=e.vAlign),"$$scope"in e&&i(2,s=e.$$scope)},[r,l,s,a,function(){return l("backdropClick")}]}var is=function(e){l.default(i,e);var t=u.default(i);function i(e){var n;return a.default(this,i),n=t.call(this),ut(d.default(n),e,ts,es,C,{vAlign:0},Za),c.default(n)}return i}(dt);function ns(e){N(e,"svelte-10uj4m1",".header.svelte-10uj4m1.svelte-10uj4m1{display:flex;justify-content:space-between;padding-bottom:calc(1em + 6px);font-weight:bold;position:relative}.header.svelte-10uj4m1 .close-button.svelte-10uj4m1{height:1.8em;width:1.8em;position:absolute;right:-0.8em;top:-0.4em}")}function as(e){var t;return{c:function(){t=Z(e[0])},m:function(e,i){J(e,t,i)},p:function(e,i){1&i&&le(t,e[0])},d:function(e){e&&Q(t)}}}function ss(e){var t,i,n;return i=new bi({}),{c:function(){t=Y("div"),st(i.$$.fragment),se(t,"slot","normal")},m:function(e,a){J(e,t,a),ot(i,t,null),n=!0},p:v,i:function(e){n||(Ye(i.$$.fragment,e),n=!0)},o:function(e){Xe(i.$$.fragment,e),n=!1},d:function(e){e&&Q(t),rt(i)}}}function os(e){var t,i,n,a,s,r,l,u,d;return n=new Qt({props:{$$slots:{default:[as]},$$scope:{ctx:e}}}),r=new pi({props:{iconHeight:.6*e[2],name:"close",hideToolTip:!0,$$slots:{normal:[ss]},$$scope:{ctx:e}}}),{c:function(){t=Y("div"),i=Y("h2"),st(n.$$.fragment),a=ee(),s=Y("div"),st(r.$$.fragment),se(s,"class","close-button svelte-10uj4m1"),se(t,"class","header svelte-10uj4m1"),de(t,"--margin",e[1]+"px")},m:function(o,c){J(o,t,c),F(t,i),ot(n,i,null),F(t,a),F(t,s),ot(r,s,null),l=!0,u||(d=ie(s,"click",e[6]),u=!0)},p:function(e,i){var a=o.default(i,1)[0],s={};257&a&&(s.$$scope={dirty:a,ctx:e}),n.$set(s);var l={};4&a&&(l.iconHeight=.6*e[2]),256&a&&(l.$$scope={dirty:a,ctx:e}),r.$set(l),2&a&&de(t,"--margin",e[1]+"px")},i:function(e){l||(Ye(n.$$.fragment,e),Ye(r.$$.fragment,e),l=!0)},o:function(e){Xe(n.$$.fragment,e),Xe(r.$$.fragment,e),l=!1},d:function(e){e&&Q(t),rt(n),rt(r),u=!1,d()}}}function rs(e,t,i){var n,a,s=Ae(zt),o=s.barIconSize,r=s.marginSize,l=s.restoreFocusPreviousElement;A(e,o,(function(e){return i(2,a=e)})),A(e,r,(function(e){return i(1,n=e)}));var u=Pe(),d=t.header;Se((function(){l()}));return e.$$set=function(e){"header"in e&&i(0,d=e.header)},[d,n,a,o,r,u,function(){return u("close")}]}var ls=function(e){l.default(i,e);var t=u.default(i);function i(e){var n;return a.default(this,i),n=t.call(this),ut(d.default(n),e,rs,os,C,{header:0},ns),c.default(n)}return i}(dt);function us(e){N(e,"svelte-1spkats",".container-pane.svelte-1spkats.svelte-1spkats{box-sizing:border-box;min-width:180px;background-color:var(--bg-color-pane);padding:1.1em 1.6em;border-radius:5px;margin:12px;pointer-events:initial;max-height:100%}.container-pane.svelte-1spkats .overlay-content.svelte-1spkats{max-height:calc(100% - 2.2em);scrollbar-width:thin;overflow:auto}.container-pane.svelte-1spkats .overlay-content.svelte-1spkats::-webkit-scrollbar{width:5px;height:5px}.container-pane.svelte-1spkats .overlay-content.svelte-1spkats::-webkit-scrollbar-track{background:#888}.container-pane.svelte-1spkats .overlay-content.svelte-1spkats::-webkit-scrollbar-thumb{background:#ccc;border-radius:5px}.container-pane.svelte-1spkats .overlay-content.svelte-1spkats::-webkit-scrollbar-thumb:hover{background:#f1f1f1}.container-pane.svelte-1spkats .overlay-content.center.svelte-1spkats{display:flex;justify-content:center;height:100%;flex-direction:column;align-items:stretch}.container-pane.size-XS.full-height.svelte-1spkats.svelte-1spkats{padding:12px;height:100%;width:100%;margin:0}")}function ds(e){var t,i,n,a,s,o,r,l;(i=new ls({props:{header:e[0]}})).$on("close",e[10]);var u=e[8].default,d=I(u,e,e[12],null);return{c:function(){t=Y("div"),st(i.$$.fragment),n=ee(),a=Y("div"),d&&d.c(),se(a,"class","overlay-content svelte-1spkats"),he(a,"center",e[1]),se(t,"class",s="container-pane size-"+e[2]+" svelte-1spkats"),he(t,"full-height",e[3]<230||e[4]<220),de(t,"flex-grow",e[4]<500?1:null)},m:function(s,u){J(s,t,u),ot(i,t,null),F(t,n),F(t,a),d&&d.m(a,null),o=!0,r||(l=ie(t,"click",ae(e[9])),r=!0)},p:function(e,n){var r={};1&n&&(r.header=e[0]),i.$set(r),d&&d.p&&(!o||4096&n)&&E(d,u,e,e[12],o?D(u,e[12],n,null):M(e[12]),null),(!o||2&n)&&he(a,"center",e[1]),(!o||4&n&&s!==(s="container-pane size-"+e[2]+" svelte-1spkats"))&&se(t,"class",s),(!o||28&n)&&he(t,"full-height",e[3]<230||e[4]<220),16&n&&de(t,"flex-grow",e[4]<500?1:null)},i:function(e){o||(Ye(i.$$.fragment,e),Ye(d,e),o=!0)},o:function(e){Xe(i.$$.fragment,e),Xe(d,e),o=!1},d:function(e){e&&Q(t),rt(i),d&&d.d(e),r=!1,l()}}}function cs(e){var t,i;return(t=new is({props:{$$slots:{default:[ds]},$$scope:{ctx:e}}})).$on("backdropClick",e[11]),{c:function(){st(t.$$.fragment)},m:function(e,n){ot(t,e,n),i=!0},p:function(e,i){var n=o.default(i,1)[0],a={};4127&n&&(a.$$scope={dirty:n,ctx:e}),t.$set(a)},i:function(e){i||(Ye(t.$$.fragment,e),i=!0)},o:function(e){Xe(t.$$.fragment,e),i=!1},d:function(e){rt(t,e)}}}function hs(e,t,i){var n,a,s,o=t.$$slots,r=void 0===o?{}:o,l=t.$$scope,u=Ae(zt),d=u.skinSize,c=u.playerWidth,h=u.playerHeight;A(e,d,(function(e){return i(2,n=e)})),A(e,c,(function(e){return i(4,s=e)})),A(e,h,(function(e){return i(3,a=e)}));var p=t.header,_=t.centerContent,m=void 0!==_&&_;return e.$$set=function(e){"header"in e&&i(0,p=e.header),"centerContent"in e&&i(1,m=e.centerContent),"$$scope"in e&&i(12,l=e.$$scope)},[p,m,n,a,s,d,c,h,r,function(t){Ie.call(this,e,t)},function(t){Ie.call(this,e,t)},function(t){Ie.call(this,e,t)},l]}var ps=function(e){l.default(i,e);var t=u.default(i);function i(e){var n;return a.default(this,i),n=t.call(this),ut(d.default(n),e,hs,cs,C,{header:0,centerContent:1},us),c.default(n)}return i}(dt);function _s(e){N(e,"svelte-1546288",".share-list.svelte-1546288.svelte-1546288.svelte-1546288.svelte-1546288{display:flex;justify-content:space-between;gap:0.5em;overflow-x:auto;padding-bottom:8px;scrollbar-width:thin}@supports (-webkit-touch-callout: none) and (not (translate: none)){.share-list.svelte-1546288>.svelte-1546288+.svelte-1546288.svelte-1546288{margin-left:0.5em}}.share-list.svelte-1546288.svelte-1546288.svelte-1546288.svelte-1546288::-webkit-scrollbar{width:5px;height:5px}.share-list.svelte-1546288.svelte-1546288.svelte-1546288.svelte-1546288::-webkit-scrollbar-track{background:#888}.share-list.svelte-1546288.svelte-1546288.svelte-1546288.svelte-1546288::-webkit-scrollbar-thumb{background:#ccc;border-radius:5px}.share-list.svelte-1546288.svelte-1546288.svelte-1546288.svelte-1546288::-webkit-scrollbar-thumb:hover{background:#f1f1f1}.share-list.svelte-1546288 .share-option.svelte-1546288.svelte-1546288.svelte-1546288{display:flex;flex-direction:column;align-items:center;gap:0.3em;padding:4px}@supports (-webkit-touch-callout: none) and (not (translate: none)){.share-list.svelte-1546288 .share-option.svelte-1546288>.svelte-1546288+.svelte-1546288{margin-left:0.3em}}.share-list.svelte-1546288 .share-option .label.svelte-1546288.svelte-1546288.svelte-1546288{font-size:0.75em}.share-list.as-grid.svelte-1546288.svelte-1546288.svelte-1546288.svelte-1546288{display:grid;gap:0.75em;grid-template-columns:repeat(auto-fit, minmax(48px, 1fr));grid-auto-flow:column;grid-auto-columns:minmax(48px, 1fr);overflow-x:auto}@supports (-webkit-touch-callout: none) and (not (translate: none)){.share-list.as-grid.svelte-1546288>.svelte-1546288+.svelte-1546288.svelte-1546288{margin-left:0.75em}}.copy-url.svelte-1546288.svelte-1546288.svelte-1546288.svelte-1546288{display:flex;margin-top:30px;padding:10px;justify-content:center;align-items:center;gap:10px;border-radius:4px;border:1px solid rgba(255, 255, 255, 0.2);background:#212121}.copy-url.svelte-1546288 input[type=text].svelte-1546288.svelte-1546288.svelte-1546288{width:100%;margin:8px 0;display:inline-block;border:none;border-radius:4px;box-sizing:border-box;background-color:transparent;color:#fff;font-size:0.75em;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.copy-url.svelte-1546288 .copy-button.svelte-1546288.svelte-1546288.svelte-1546288{font-size:calc(var(--font-size) * 0.7)}")}function ms(e,t,i){var n=e.slice();return n[31]=t[i],n}function fs(e){var t,i,n,a=e[31].icon;return a&&(i=_e(a,{})),{c:function(){t=Y("div"),i&&st(i.$$.fragment),se(t,"slot","normal")},m:function(e,a){J(e,t,a),i&&ot(i,t,null),n=!0},p:function(e,n){if(8&n[0]&&a!==(a=e[31].icon)){if(i){Qe();var s=i;Xe(s.$$.fragment,1,0,(function(){rt(s,1)})),Ke()}a?(st((i=_e(a,{})).$$.fragment),Ye(i.$$.fragment,1),ot(i,t,null)):i=null}},i:function(e){n||(i&&Ye(i.$$.fragment,e),n=!0)},o:function(e){i&&Xe(i.$$.fragment,e),n=!1},d:function(e){e&&Q(t),i&&rt(i)}}}function vs(e){var t,i=e[31].label+"";return{c:function(){t=Z(i)},m:function(e,i){J(e,t,i)},p:function(e,n){8&n[0]&&i!==(i=e[31].label+"")&&le(t,i)},d:function(e){e&&Q(t)}}}function gs(e){var t,i,n,a,s,o,r,l,u,d,c=function(){return e[19](e[31])};return n=new pi({props:{iconHeight:.9*e[6],bgColor:e[31].bgColor,bgSize:e[7]+"px",name:"share"+e[31].label,hideToolTip:!0,$$slots:{normal:[fs]},$$scope:{ctx:e}}}),o=new Qt({props:{$$slots:{default:[vs]},$$scope:{ctx:e}}}),{c:function(){t=Y("li"),i=Y("div"),st(n.$$.fragment),a=ee(),s=Y("span"),st(o.$$.fragment),r=ee(),se(i,"class","svelte-1546288"),se(s,"class","label svelte-1546288"),se(t,"class","share-option svelte-1546288")},m:function(e,h){J(e,t,h),F(t,i),ot(n,i,null),F(t,a),F(t,s),ot(o,s,null),F(t,r),l=!0,u||(d=ie(i,"click",c),u=!0)},p:function(t,i){e=t;var a={};64&i[0]&&(a.iconHeight=.9*e[6]),8&i[0]&&(a.bgColor=e[31].bgColor),128&i[0]&&(a.bgSize=e[7]+"px"),8&i[0]&&(a.name="share"+e[31].label),8&i[0]|8&i[1]&&(a.$$scope={dirty:i,ctx:e}),n.$set(a);var s={};8&i[0]|8&i[1]&&(s.$$scope={dirty:i,ctx:e}),o.$set(s)},i:function(e){l||(Ye(n.$$.fragment,e),Ye(o.$$.fragment,e),l=!0)},o:function(e){Xe(n.$$.fragment,e),Xe(o.$$.fragment,e),l=!1},d:function(e){e&&Q(t),rt(n),rt(o),u=!1,d()}}}function ys(e){var t,i,n,a,s,o,r,l,u;return s=new pi({props:{name:"copyURL",text:"Copy",standalone:!0,buttonPosition:"relative",bgBorderRadius:"5px",color:"black",noTextShadow:!0,bgHeight:"35px",bgWidth:"60px"}}),{c:function(){t=Y("div"),i=Y("input"),n=ee(),a=Y("div"),o=Y("div"),st(s.$$.fragment),se(i,"type","text"),i.value=e[12](),i.readOnly=!0,se(i,"class","svelte-1546288"),de(o,"display","contents"),de(o,"--margin-size",0),de(o,"--bg-color-button-hover","#C5C5C5"),de(o,"--bg-color-button","#fff"),se(a,"class","copy-button svelte-1546288"),se(t,"class","copy-url svelte-1546288")},m:function(d,c){J(d,t,c),F(t,i),F(t,n),F(t,a),F(a,o),ot(s,o,null),r=!0,l||(u=ie(a,"click",e[20]),l=!0)},p:v,i:function(e){r||(Ye(s.$$.fragment,e),r=!0)},o:function(e){Xe(s.$$.fragment,e),r=!1},d:function(e){e&&Q(t),rt(s),l=!1,u()}}}function bs(e){for(var t,i,n,a,s=nt(e[3]),o=[],r=0;r<s.length;r+=1)o[r]=gs(ms(e,s,r));var l=function(e){return Xe(o[e],1,1,(function(){o[e]=null}))},u=e[0].shareButtonDirectLink&&!e[1]&&ys(e);return{c:function(){t=Y("ul");for(var a=0;a<o.length;a+=1)o[a].c();i=ee(),u&&u.c(),n=te(),se(t,"class","share-list svelte-1546288"),he(t,"as-grid",e[4]>=200&&e[5]<500)},m:function(e,s){J(e,t,s);for(var r=0;r<o.length;r+=1)o[r]&&o[r].m(t,null);J(e,i,s),u&&u.m(e,s),J(e,n,s),a=!0},p:function(e,i){if(65736&i[0]){var r;for(s=nt(e[3]),r=0;r<s.length;r+=1){var d=ms(e,s,r);o[r]?(o[r].p(d,i),Ye(o[r],1)):(o[r]=gs(d),o[r].c(),Ye(o[r],1),o[r].m(t,null))}for(Qe(),r=s.length;r<o.length;r+=1)l(r);Ke()}(!a||48&i[0])&&he(t,"as-grid",e[4]>=200&&e[5]<500),e[0].shareButtonDirectLink&&!e[1]?u?(u.p(e,i),3&i[0]&&Ye(u,1)):((u=ys(e)).c(),Ye(u,1),u.m(n.parentNode,n)):u&&(Qe(),Xe(u,1,1,(function(){u=null})),Ke())},i:function(e){if(!a){for(var t=0;t<s.length;t+=1)Ye(o[t]);Ye(u),a=!0}},o:function(e){o=o.filter(Boolean);for(var t=0;t<o.length;t+=1)Xe(o[t]);Xe(u),a=!1},d:function(e){e&&(Q(t),Q(i),Q(n)),K(o,e),u&&u.d(e)}}}function ks(e){var t,i,n;return(i=new ps({props:{header:"Share video",centerContent:!0,$$slots:{default:[bs]},$$scope:{ctx:e}}})).$on("close",e[21]),i.$on("backdropClick",e[22]),{c:function(){t=Y("div"),st(i.$$.fragment),se(t,"class","share-pane")},m:function(a,s){J(a,t,s),ot(i,t,null),e[23](t),n=!0},p:function(e,t){var n={};251&t[0]|8&t[1]&&(n.$$scope={dirty:t,ctx:e}),i.$set(n)},i:function(e){n||(Ye(i.$$.fragment,e),n=!0)},o:function(e){Xe(i.$$.fragment,e),n=!1},d:function(n){n&&Q(t),rt(i),e[23](null)}}}function ws(e,t,i){var n,a,s,o,r,l,u,d,c,h=function(e,t){return"Embed"===t?p():"Copy url"===t?_():void k(e)},p=function(){var e=w();S(e,C("Embedcode copied to clipboard"))},_=function(){var e=$();S(e,C("Link copied to clipboard"))},m=Ae(zt),f=m.playout,v=m.shareOptions,g=m.barIconSize,y=m.shareIconSize,b=m.trapAriaTabFocus,k=m.doShare,w=m.getEmbedCode,$=m.getDeeplink,C=m.translate,S=m.copyToClipBoard,P=m.playerWidth,x=m.playerHeight,I=m.screenXXS;A(e,f,(function(e){return i(0,a=e)})),A(e,v,(function(e){return i(18,o=e)})),A(e,g,(function(e){return i(6,u=e)})),A(e,y,(function(e){return i(7,d=e)})),A(e,P,(function(e){return i(5,l=e)})),A(e,x,(function(e){return i(4,r=e)})),A(e,I,(function(e){return i(1,s=e)}));var T=[{label:"Copy url",icon:Xa,bgColor:"#FFF"},{label:"Embed",icon:Wa,bgColor:"#8B8B8B"},{label:"Email",icon:qa,bgColor:"#575757",value:"email"},{label:"WhatsApp",icon:Ja,bgColor:"#25D366",value:"whatsapp"},{label:"Facebook",icon:za,bgColor:"#1877F2",value:"facebook"},{label:"X",icon:Na,bgColor:"#000000",value:"twitter"},{label:"LinkedIn",icon:ja,bgColor:"#0A66C2",value:"linkedin"},{label:"Pinterest",icon:Ka,bgColor:"#E60023",value:"pinterest"}];Ce((function(){b(c,".button-content")}));return e.$$.update=function(){262147&e.$$.dirty[0]&&i(3,n=T.filter((function(e){return(null==o?void 0:o.map((function(e){return e.name})).includes(e.value))||a.shareButtonEmbedCode&&"Embed"===e.label||s&&a.shareButtonDirectLink&&"Copy url"===e.label})))},[a,s,c,n,r,l,u,d,f,v,g,y,$,P,x,I,h,_,o,function(e){return h(e.value,e.label)},function(){return _()},function(t){Ie.call(this,e,t)},function(t){Ie.call(this,e,t)},function(e){De[e?"unshift":"push"]((function(){i(2,c=e)}))}]}var $s=function(e){l.default(i,e);var t=u.default(i);function i(e){var n;return a.default(this,i),n=t.call(this),ut(d.default(n),e,ws,ks,C,{},_s,[-1,-1]),c.default(n)}return i}(dt);function Cs(e){var t,i,n;return{c:function(){t=X("svg"),i=X("circle"),n=X("path"),se(i,"cx","11"),se(i,"cy","11"),se(i,"r","11"),se(i,"fill","#12b76a"),se(n,"d","M16.77 7.235a.81.81 0 0 1 0 1.13l-6.286 6.401c-.307.313-.803.313-1.11 0l-3.144-3.2a.81.81 0 0 1 0-1.13c.307-.312.804-.312 1.111 0l2.565 2.633 5.753-5.833c.307-.313.803-.313 1.11 0z"),se(n,"fill","#fff"),se(t,"xmlns","http://www.w3.org/2000/svg"),se(t,"viewBox","0 0 22 22"),se(t,"fill","none")},m:function(e,a){J(e,t,a),F(t,i),F(t,n)},p:v,i:v,o:v,d:function(e){e&&Q(t)}}}var Ss=function(e){l.default(i,e);var t=u.default(i);function i(e){var n;return a.default(this,i),n=t.call(this),ut(d.default(n),e,null,Cs,C,{}),c.default(n)}return i}(dt);function Ps(e){var t,i,n;return{c:function(){t=X("svg"),i=X("circle"),n=X("path"),se(i,"cx","11"),se(i,"cy","11"),se(i,"r","11"),se(i,"fill","#f04438"),se(n,"d","M11 12.873c.442 0 .8-.352.8-.765v-6.32c0-.435-.358-.788-.8-.788s-.8.353-.8.788v6.276c0 .457.358.809.8.809zm0 1.181c-.552 0-1 .441-1 .984s.448.962 1 .962 1-.44 1-.962-.448-.984-1-.984z"),se(n,"fill","#fff"),se(t,"xmlns","http://www.w3.org/2000/svg"),se(t,"viewBox","0 0 22 22"),se(t,"fill","none")},m:function(e,a){J(e,t,a),F(t,i),F(t,n)},p:v,i:v,o:v,d:function(e){e&&Q(t)}}}var xs=function(e){l.default(i,e);var t=u.default(i);function i(e){var n;return a.default(this,i),n=t.call(this),ut(d.default(n),e,null,Ps,C,{}),c.default(n)}return i}(dt);function As(e){N(e,"svelte-1h5hqlb",".toastr.svelte-1h5hqlb.svelte-1h5hqlb.svelte-1h5hqlb{display:flex;align-items:center;gap:0.9em;width:100%;box-sizing:border-box;max-height:calc(100% - var(--margin-size) * 2);overflow-y:auto;margin:var(--margin-size);padding:1em;background-color:var(--bg-color-pane);border-radius:5px}@supports (-webkit-touch-callout: none) and (not (translate: none)){.toastr.svelte-1h5hqlb>.svelte-1h5hqlb+.svelte-1h5hqlb{margin-left:0.9em}}.toastr.svelte-1h5hqlb .icon.svelte-1h5hqlb.svelte-1h5hqlb,.toastr.svelte-1h5hqlb .close-button.svelte-1h5hqlb.svelte-1h5hqlb{align-self:flex-start}.toastr.svelte-1h5hqlb .icon.svelte-1h5hqlb.svelte-1h5hqlb{width:1.1em;height:1.1em;flex-shrink:0}.toastr.svelte-1h5hqlb .content.svelte-1h5hqlb.svelte-1h5hqlb{word-break:break-word}.toastr.svelte-1h5hqlb .close-button.svelte-1h5hqlb.svelte-1h5hqlb{height:0.6em;height:0.6em;margin-left:auto;margin-top:0.1em}.toastr.with-icon.svelte-1h5hqlb .close-button.svelte-1h5hqlb.svelte-1h5hqlb{margin-top:4px}")}function Is(e){var t,i,n,a,s=function(e,t){return"success"===e[0]?0:1},o=[Ds,Ts],r=[];return i=s(e),n=r[i]=o[i](e),{c:function(){t=Y("div"),n.c(),se(t,"class","icon svelte-1h5hqlb")},m:function(e,n){J(e,t,n),r[i].m(t,null),a=!0},p:function(e,a){var l=i;(i=s(e))!==l&&(Qe(),Xe(r[l],1,1,(function(){r[l]=null})),Ke(),(n=r[i])||(n=r[i]=o[i](e)).c(),Ye(n,1),n.m(t,null))},i:function(e){a||(Ye(n),a=!0)},o:function(e){Xe(n),a=!1},d:function(e){e&&Q(t),r[i].d()}}}function Ts(e){var t,i;return t=new xs({}),{c:function(){st(t.$$.fragment)},m:function(e,n){ot(t,e,n),i=!0},i:function(e){i||(Ye(t.$$.fragment,e),i=!0)},o:function(e){Xe(t.$$.fragment,e),i=!1},d:function(e){rt(t,e)}}}function Ds(e){var t,i;return t=new Ss({}),{c:function(){st(t.$$.fragment)},m:function(e,n){ot(t,e,n),i=!0},i:function(e){i||(Ye(t.$$.fragment,e),i=!0)},o:function(e){Xe(t.$$.fragment,e),i=!1},d:function(e){rt(t,e)}}}function Es(e){var t,i,n;return i=new bi({}),{c:function(){t=Y("div"),st(i.$$.fragment),se(t,"slot","normal")},m:function(e,a){J(e,t,a),ot(i,t,null),n=!0},p:v,i:function(e){n||(Ye(i.$$.fragment,e),n=!0)},o:function(e){Xe(i.$$.fragment,e),n=!1},d:function(e){e&&Q(t),rt(i)}}}function Ms(e){var t,i,n,a,s,o,r,l,u,d=e[0]&&Is(e),c=e[6].default,h=I(c,e,e[10],null);return o=new pi({props:{iconHeight:.6*e[2],$$slots:{normal:[Es]},$$scope:{ctx:e}}}),{c:function(){t=Y("div"),d&&d.c(),i=ee(),n=Y("div"),h&&h.c(),a=ee(),s=Y("div"),st(o.$$.fragment),se(n,"class","content svelte-1h5hqlb"),se(s,"class","close-button svelte-1h5hqlb"),se(t,"class","toastr svelte-1h5hqlb"),he(t,"with-icon",!!e[0]),de(t,"--margin-size",e[1]+"px")},m:function(c,p){J(c,t,p),d&&d.m(t,null),F(t,i),F(t,n),h&&h.m(n,null),F(t,a),F(t,s),ot(o,s,null),r=!0,l||(u=[ie(s,"click",e[8]),ie(t,"click",ae(e[7]))],l=!0)},p:function(e,n){e[0]?d?(d.p(e,n),1&n&&Ye(d,1)):((d=Is(e)).c(),Ye(d,1),d.m(t,i)):d&&(Qe(),Xe(d,1,1,(function(){d=null})),Ke()),h&&h.p&&(!r||1024&n)&&E(h,c,e,e[10],r?D(c,e[10],n,null):M(e[10]),null);var a={};4&n&&(a.iconHeight=.6*e[2]),1024&n&&(a.$$scope={dirty:n,ctx:e}),o.$set(a),(!r||1&n)&&he(t,"with-icon",!!e[0]),2&n&&de(t,"--margin-size",e[1]+"px")},i:function(e){r||(Ye(d),Ye(h,e),Ye(o.$$.fragment,e),r=!0)},o:function(e){Xe(d),Xe(h,e),Xe(o.$$.fragment,e),r=!1},d:function(e){e&&Q(t),d&&d.d(),h&&h.d(e),rt(o),l=!1,w(u)}}}function Bs(e){var t,i;return(t=new is({props:{vAlign:"flex-start",$$slots:{default:[Ms]},$$scope:{ctx:e}}})).$on("backdropClick",e[9]),{c:function(){st(t.$$.fragment)},m:function(e,n){ot(t,e,n),i=!0},p:function(e,i){var n=o.default(i,1)[0],a={};1031&n&&(a.$$scope={dirty:n,ctx:e}),t.$set(a)},i:function(e){i||(Ye(t.$$.fragment,e),i=!0)},o:function(e){Xe(t.$$.fragment,e),i=!1},d:function(e){rt(t,e)}}}function Ls(e,t,i){var n,a,s=function(){h(),m("close")},o=t.$$slots,r=void 0===o?{}:o,l=t.$$scope,u=Ae(zt),d=u.barIconSize,c=u.toastrMargin,h=u.resetToastr;A(e,d,(function(e){return i(2,a=e)})),A(e,c,(function(e){return i(1,n=e)}));var p,_=t.icon,m=Pe();Ce((function(){p=setTimeout((function(){return s()}),3e3)})),Se((function(){p&&clearTimeout(p)}));return e.$$set=function(e){"icon"in e&&i(0,_=e.icon),"$$scope"in e&&i(10,l=e.$$scope)},[_,n,a,d,c,s,r,function(t){Ie.call(this,e,t)},function(){return s()},function(){return s()},l]}var Rs=function(e){l.default(i,e);var t=u.default(i);function i(e){var n;return a.default(this,i),n=t.call(this),ut(d.default(n),e,Ls,Bs,C,{icon:0},As),c.default(n)}return i}(dt);function Hs(e){N(e,"svelte-1203qyy",".logo.svelte-1203qyy a.svelte-1203qyy{pointer-events:all}.logo.hidden.svelte-1203qyy.svelte-1203qyy{opacity:0}.logo.svelte-1203qyy img.svelte-1203qyy{max-height:calc(2 * var(--margin-size));max-width:calc(6 * var(--margin-size));display:block}.logo.shorts-skin.svelte-1203qyy img.svelte-1203qyy{max-height:calc(3 * var(--margin-size));max-width:calc(9 * var(--margin-size))}.no-thumb img.svelte-1203qyy.svelte-1203qyy{width:0;opacity:0}")}function qs(e){var t,i=function(e,t){var i;return null!=(i=e[0])&&i.url?zs:Os},n=i(e),a=n(e);return{c:function(){a.c(),t=te()},m:function(e,i){a.m(e,i),J(e,t,i)},p:function(e,s){n===(n=i(e))&&a?a.p(e,s):(a.d(1),(a=n(e))&&(a.c(),a.m(t.parentNode,t)))},d:function(e){e&&Q(t),a.d(e)}}}function Os(e){var t,i,n,a;return{c:function(){S((t=Y("img")).src,i=e[0].src)||se(t,"src",i),se(t,"alt","logo"),se(t,"class","svelte-1203qyy")},m:function(i,s){J(i,t,s),n||(a=ie(t,"error",e[6]),n=!0)},p:function(e,n){1&n&&!S(t.src,i=e[0].src)&&se(t,"src",i)},d:function(e){e&&Q(t),n=!1,a()}}}function zs(e){var t,i,n,a,s;return{c:function(){t=Y("a"),S((i=Y("img")).src,n=e[0].src)||se(i,"src",n),se(i,"alt","logo"),se(i,"class","svelte-1203qyy"),se(t,"href",a=e[0].url),se(t,"target","_blank"),se(t,"rel","noreferrer"),se(t,"tabindex",s=e[1]?-1:0),se(t,"aria-label",e[3]("logo")),se(t,"class","button-content svelte-1203qyy")},m:function(e,n){J(e,t,n),F(t,i)},p:function(e,o){1&o&&!S(i.src,n=e[0].src)&&se(i,"src",n),1&o&&a!==(a=e[0].url)&&se(t,"href",a),2&o&&s!==(s=e[1]?-1:0)&&se(t,"tabindex",s)},d:function(e){e&&Q(t)}}}function Vs(e){var t,i=e[2]&&qs(e);return{c:function(){t=Y("div"),i&&i.c(),se(t,"class","logo svelte-1203qyy"),he(t,"hidden",e[1]),he(t,"shorts-skin","shorts"===e[4])},m:function(e,n){J(e,t,n),i&&i.m(t,null)},p:function(e,n){var a=o.default(n,1)[0];e[2]?i?i.p(e,a):((i=qs(e)).c(),i.m(t,null)):i&&(i.d(1),i=null),2&a&&he(t,"hidden",e[1])},i:v,o:v,d:function(e){e&&Q(t),i&&i.d()}}}function js(e,t,i){var n=function(){i(2,d=!1)},a=t.logoObject,s=t.placeholder,o=void 0!==s&&s,r=Ae(zt),l=r.translate,u=r.skinMode,d=!0;return e.$$set=function(e){"logoObject"in e&&i(0,a=e.logoObject),"placeholder"in e&&i(1,o=e.placeholder)},e.$$.update=function(){1&e.$$.dirty&&a&&i(2,d=!0)},[a,o,d,l,u,n,function(){return n()}]}var Fs=function(e){l.default(i,e);var t=u.default(i);function i(e){var n;return a.default(this,i),n=t.call(this),ut(d.default(n),e,js,Vs,C,{logoObject:0,placeholder:1},Hs),c.default(n)}return i}(dt);function Ns(e){var t,i;return{c:function(){t=X("svg"),se(i=X("path"),"d","M19.094 8.333h5.687c.675 0 1.219-.557 1.219-1.25s-.546-1.25-1.219-1.25h-4.469V1.25c0-.691-.543-1.25-1.219-1.25s-1.219.559-1.219 1.25v5.833c0 .693.543 1.25 1.219 1.25zM6.906 11.667H1.219c-.673 0-1.219.557-1.219 1.25s.546 1.25 1.219 1.25h4.469v4.583c0 .693.543 1.25 1.219 1.25s1.219-.557 1.219-1.25v-5.833c0-.693-.543-1.25-1.219-1.25zm17.875 0h-5.687c-.675 0-1.219.557-1.219 1.25v5.833c0 .69.546 1.25 1.219 1.25s1.219-.56 1.219-1.25v-4.583h4.469c.673 0 1.219-.56 1.219-1.25s-.543-1.25-1.219-1.25zM6.906 0c-.675 0-1.219.559-1.219 1.25v4.583H1.219C.546 5.833 0 6.391 0 7.083s.546 1.25 1.219 1.25h5.688c.675 0 1.219-.557 1.219-1.25V1.25C8.125.559 7.582 0 6.906 0z"),se(i,"fill","#fff"),se(t,"xmlns","http://www.w3.org/2000/svg"),se(t,"viewBox","0 0 26 21"),se(t,"fill","none")},m:function(e,n){J(e,t,n),F(t,i)},p:v,i:v,o:v,d:function(e){e&&Q(t)}}}var Us=function(e){l.default(i,e);var t=u.default(i);function i(e){var n;return a.default(this,i),n=t.call(this),ut(d.default(n),e,null,Ns,C,{}),c.default(n)}return i}(dt);function Ws(e){var t,i;return{c:function(){t=X("svg"),se(i=X("path"),"d","M6.906 17.5H2.438v-4.583c0-.693-.546-1.25-1.219-1.25S0 12.224 0 12.917v5.833C0 19.443.546 20 1.219 20h5.688c.675 0 1.219-.557 1.219-1.25s-.543-1.25-1.219-1.25zm0-17.5H1.219C.546 0 0 .56 0 1.25v5.833c0 .693.546 1.25 1.219 1.25s1.219-.557 1.219-1.25V2.5h4.469c.675 0 1.219-.557 1.219-1.25S7.582 0 6.906 0zm17.875 0h-5.687c-.675 0-1.219.56-1.219 1.25s.546 1.25 1.219 1.25h4.469v4.583c0 .693.543 1.25 1.219 1.25S26 7.776 26 7.083V1.25C26 .56 25.457 0 24.781 0zm0 11.667c-.673 0-1.219.56-1.219 1.25V17.5h-4.469c-.673 0-1.219.56-1.219 1.25S18.418 20 19.094 20h5.687c.673 0 1.219-.56 1.219-1.25v-5.833c0-.693-.543-1.25-1.219-1.25z"),se(i,"fill","#f5f5f5"),se(t,"xmlns","http://www.w3.org/2000/svg"),se(t,"viewBox","0 0 26 20"),se(t,"fill","none")},m:function(e,n){J(e,t,n),F(t,i)},p:v,i:v,o:v,d:function(e){e&&Q(t)}}}var Gs=function(e){l.default(i,e);var t=u.default(i);function i(e){var n;return a.default(this,i),n=t.call(this),ut(d.default(n),e,null,Ws,C,{}),c.default(n)}return i}(dt);function Js(e){var t,i,n;return{c:function(){t=X("svg"),i=X("g"),se(n=X("path"),"d","M3.055 0C1.462 0 .166 1.295.166 2.889v14.444c0 1.593 1.295 2.889 2.889 2.889h20.222c1.593 0 2.889-1.296 2.889-2.889V2.889C26.166 1.295 24.871 0 23.277 0H3.055zm2.528 9.389h7.944a1.08 1.08 0 1 1 0 2.167H5.583a1.08 1.08 0 1 1 0-2.167zm11.556 0h3.611a1.08 1.08 0 1 1 0 2.167h-3.611a1.08 1.08 0 1 1 0-2.167zM5.583 13.722h3.611a1.08 1.08 0 1 1 0 2.167H5.583a1.08 1.08 0 1 1 0-2.167zm7.222 0h7.944a1.08 1.08 0 1 1 0 2.167h-7.944a1.08 1.08 0 1 1 0-2.167z"),se(n,"fill","#fff"),se(t,"xmlns","http://www.w3.org/2000/svg"),se(t,"viewBox","0 0 27 22"),se(t,"fill","none"),se(t,"xmlns:v","https://vecta.io/nano")},m:function(e,a){J(e,t,a),F(t,i),F(i,n)},p:v,i:v,o:v,d:function(e){e&&Q(t)}}}var Qs=function(e){l.default(i,e);var t=u.default(i);function i(e){var n;return a.default(this,i),n=t.call(this),ut(d.default(n),e,null,Js,C,{}),c.default(n)}return i}(dt);function Ks(e){var t,i,n;return{c:function(){t=X("svg"),i=X("g"),se(n=X("path"),"d","M0.166504 2.875V4.3125H20.1665V2.875C20.1665 1.28926 18.8853 0 17.3094 0H3.02365C1.44775 0 0.166504 1.28926 0.166504 2.875ZM0.166504 5.75V20.125C0.166504 21.7107 1.44775 23 3.02365 23H17.3094C18.8853 23 20.1665 21.7107 20.1665 20.125V5.75H0.166504ZM4.45222 10.0625C4.45222 9.66719 4.77365 9.34375 5.1665 9.34375H15.1665C15.5594 9.34375 15.8808 9.66719 15.8808 10.0625C15.8808 10.4578 15.5594 10.7812 15.1665 10.7812H5.1665C4.77365 10.7812 4.45222 10.4578 4.45222 10.0625ZM4.45222 14.375C4.45222 13.9797 4.77365 13.6562 5.1665 13.6562H15.1665C15.5594 13.6562 15.8808 13.9797 15.8808 14.375C15.8808 14.7703 15.5594 15.0938 15.1665 15.0938H5.1665C4.77365 15.0938 4.45222 14.7703 4.45222 14.375ZM4.45222 18.6875C4.45222 18.2922 4.77365 17.9688 5.1665 17.9688H9.45222C9.84508 17.9688 10.1665 18.2922 10.1665 18.6875C10.1665 19.0828 9.84508 19.4062 9.45222 19.4062H5.1665C4.77365 19.4062 4.45222 19.0828 4.45222 18.6875Z"),se(n,"fill","white"),se(t,"viewBox","0 0 21 24"),se(t,"fill","none"),se(t,"xmlns","http://www.w3.org/2000/svg")},m:function(e,a){J(e,t,a),F(t,i),F(i,n)},p:v,i:v,o:v,d:function(e){e&&Q(t)}}}var Ys=function(e){l.default(i,e);var t=u.default(i);function i(e){var n;return a.default(this,i),n=t.call(this),ut(d.default(n),e,null,Ks,C,{}),c.default(n)}return i}(dt);function Xs(e){var t,i,n;return{c:function(){t=X("svg"),i=X("g"),se(n=X("path"),"d","M5.55713 15.25C4.92822 15.25 4.479 14.8008 4.479 14.1719C4.479 13.5879 4.92822 13.0938 5.55713 13.0938H14.9009C15.4849 13.0938 15.979 13.5879 15.979 14.1719C15.979 14.8008 15.4849 15.25 14.9009 15.25H5.55713ZM5.55713 19.5625C4.92822 19.5625 4.479 19.1133 4.479 18.4844C4.479 17.9004 4.92822 17.4062 5.55713 17.4062H10.5884C11.1724 17.4062 11.6665 17.9004 11.6665 18.4844C11.6665 19.1133 11.1724 19.5625 10.5884 19.5625H5.55713ZM5.55713 10.9375C4.92822 10.9375 4.479 10.4883 4.479 9.85938C4.479 9.27539 4.92822 8.78125 5.55713 8.78125H14.9009C15.4849 8.78125 15.979 9.27539 15.979 9.85938C15.979 10.4883 15.4849 10.9375 14.9009 10.9375H5.55713ZM17.4165 0.875C18.9888 0.875 20.2915 2.17773 20.2915 3.75V21C20.2915 22.6172 18.9888 23.875 17.4165 23.875H3.0415C1.42432 23.875 0.166504 22.6172 0.166504 21V3.75C0.166504 2.17773 1.42432 0.875 3.0415 0.875H17.4165ZM18.1353 21V6.625H2.32275V21C2.32275 21.4043 2.63721 21.7188 3.0415 21.7188H17.4165C17.7759 21.7188 18.1353 21.4043 18.1353 21Z"),se(n,"fill","white"),se(t,"viewBox","0 0 21 25"),se(t,"fill","none"),se(t,"xmlns","http://www.w3.org/2000/svg")},m:function(e,a){J(e,t,a),F(t,i),F(i,n)},p:v,i:v,o:v,d:function(e){e&&Q(t)}}}var Zs=function(e){l.default(i,e);var t=u.default(i);function i(e){var n;return a.default(this,i),n=t.call(this),ut(d.default(n),e,null,Xs,C,{}),c.default(n)}return i}(dt);function eo(e){var t,i;return{c:function(){t=X("svg"),se(i=X("path"),"d","M5.886 10c0-2.105 1.645-3.75 3.75-3.75 2.07 0 3.75 1.645 3.75 3.75a3.75 3.75 0 0 1-3.75 3.75c-2.105 0-3.75-1.68-3.75-3.75zm3.75-1.875c-1.035 0-1.875.84-1.875 1.875s.84 1.875 1.875 1.875 1.875-.84 1.875-1.875-.84-1.875-1.875-1.875zM11.085 0c.867 0 1.621.593 1.824 1.435l.305 1.268a7.8 7.8 0 0 1 .949.55l1.254-.369a1.88 1.88 0 0 1 2.156.861l1.449 2.509c.43.75.293 1.699-.332 2.297l-.949.867.02.582-.02.547.949.902c.625.598.762 1.547.332 2.297l-1.449 2.508c-.434.75-1.324 1.105-2.156.863l-1.254-.371c-.301.203-.617.387-.949.551l-.305 1.27c-.203.84-.957 1.434-1.824 1.434H8.187c-.867 0-1.621-.594-1.824-1.434l-.305-1.27c-.332-.164-.648-.348-.949-.551l-1.289.371c-.796.242-1.686-.113-2.119-.863L.251 13.746c-.433-.75-.296-1.699.331-2.297l.947-.902-.018-.582.018-.547-.947-.867c-.627-.598-.764-1.547-.331-2.297l1.449-2.509c.433-.75 1.323-1.106 2.119-.861l1.289.369c.301-.204.617-.388.949-.55l.305-1.268C6.566.593 7.32 0 8.187 0h2.898zM7.664 4.047l-.437.184a6.16 6.16 0 0 0-1.375.797l-.379.289-2.148-.633-1.45 2.508 1.621 1.543-.06.469a6.4 6.4 0 0 0 0 1.594l.06.469-1.621 1.543 1.449 2.508 2.148-.633.379.289a6.16 6.16 0 0 0 1.375.797l.438.184.523 2.172h2.898l.523-2.172.438-.184a6.16 6.16 0 0 0 1.375-.797l.379-.289 2.149.633 1.449-2.508-1.621-1.543.059-.469a5.99 5.99 0 0 0 .051-.797 5.99 5.99 0 0 0-.051-.797l-.059-.469 1.621-1.543-1.449-2.508-2.149.633-.379-.289c-.418-.32-.879-.59-1.375-.797l-.437-.184-.523-2.172H8.187l-.523 2.172z"),se(i,"fill","#fff"),se(t,"xmlns","http://www.w3.org/2000/svg"),se(t,"viewBox","0 0 20 20"),se(t,"fill","none")},m:function(e,n){J(e,t,n),F(t,i)},p:v,i:v,o:v,d:function(e){e&&Q(t)}}}var to=function(e){l.default(i,e);var t=u.default(i);function i(e){var n;return a.default(this,i),n=t.call(this),ut(d.default(n),e,null,eo,C,{}),c.default(n)}return i}(dt);function io(e){var t,i;return{c:function(){t=X("svg"),se(i=X("path"),"d","M23.555 0H3.445C1.545 0 0 1.482 0 3.304v2.768c0 .594.504 1.071 1.125 1.071S2.25 6.665 2.25 6.071V3.304c0-.64.536-1.161 1.195-1.161h20.109c.661 0 1.195.521 1.195 1.161v13.393c0 .64-.536 1.161-1.195 1.161h-8.93c-.621 0-1.125.48-1.125 1.072S14.006 20 14.625 20h8.93C25.453 20 27 18.518 27 16.696V3.304C27 1.482 25.453 0 23.555 0zM1.5 17.143c-.828 0-1.5.64-1.5 1.428S.672 20 1.5 20 3 19.36 3 18.571s-.672-1.428-1.5-1.428zm-.375-4.286c-.621 0-1.125.482-1.125 1.071S.504 15 1.125 15C3.4 15 5.25 16.762 5.25 18.929c0 .594.506 1.071 1.125 1.071S7.5 19.522 7.5 18.929c0-3.348-2.859-6.071-6.375-6.071zm0-4.286C.504 8.571 0 9.054 0 9.643s.504 1.071 1.125 1.071c4.758 0 8.625 3.684 8.625 8.214 0 .594.506 1.071 1.125 1.071S12 19.522 12 18.929c0-5.71-4.88-10.357-10.875-10.357z"),se(i,"fill","#fff"),se(t,"xmlns","http://www.w3.org/2000/svg"),se(t,"viewBox","0 0 27 20"),se(t,"fill","none")},m:function(e,n){J(e,t,n),F(t,i)},p:v,i:v,o:v,d:function(e){e&&Q(t)}}}var no=function(e){l.default(i,e);var t=u.default(i);function i(e){var n;return a.default(this,i),n=t.call(this),ut(d.default(n),e,null,io,C,{}),c.default(n)}return i}(dt);function ao(e){var t,i;return{c:function(){t=X("svg"),se(i=X("path"),"d","M23.555 0H3.445C1.545 0 0 1.482 0 3.304v2.768c0 .594.504 1.071 1.125 1.071S2.25 6.665 2.25 6.071V3.304c0-.64.536-1.161 1.195-1.161h20.109c.661 0 1.195.521 1.195 1.161v13.393c0 .64-.536 1.161-1.195 1.161h-8.93c-.621 0-1.125.48-1.125 1.072S14.006 20 14.625 20h8.93C25.453 20 27 18.518 27 16.696V3.304C27 1.482 25.453 0 23.555 0zM1.5 17.143c-.828 0-1.5.64-1.5 1.428S.672 20 1.5 20 3 19.36 3 18.571s-.672-1.428-1.5-1.428zm-.375-4.286c-.621 0-1.125.482-1.125 1.071S.504 15 1.125 15C3.4 15 5.25 16.762 5.25 18.929c0 .594.506 1.071 1.125 1.071S7.5 19.522 7.5 18.929c0-3.348-2.859-6.071-6.375-6.071zm0-4.286C.504 8.571 0 9.054 0 9.643s.504 1.071 1.125 1.071c4.758 0 8.625 3.684 8.625 8.214 0 .594.506 1.071 1.125 1.071S12 19.522 12 18.929c0-5.71-4.88-10.357-10.875-10.357zM5 4a1 1 0 0 0-1 1v1.83c2.127.277 4.327 1.248 6.276 2.768 2.038 1.65 3.282 3.988 3.746 6.402H22a1 1 0 0 0 1-1V5a1 1 0 0 0-1-1H5z"),se(t,"xmlns","http://www.w3.org/2000/svg"),se(t,"viewBox","0 0 27 20"),se(t,"fill","#fff")},m:function(e,n){J(e,t,n),F(t,i)},p:v,i:v,o:v,d:function(e){e&&Q(t)}}}var so=function(e){l.default(i,e);var t=u.default(i);function i(e){var n;return a.default(this,i),n=t.call(this),ut(d.default(n),e,null,ao,C,{}),c.default(n)}return i}(dt);function oo(e){var t,i;return{c:function(){t=X("svg"),se(i=X("path"),"d","M22.5 2.142h-18c-1.242 0-2.25.96-2.25 2.142v8.57c0 1.183 1.008 2.142 2.25 2.142h2.508l-1.627 1.549c-.187.178-.347.379-.478.594H4.5c-2.484 0-4.5-1.919-4.5-4.285v-8.57C0 1.919 2.016 0 4.5 0h18C24.984 0 27 1.919 27 4.285v8.57c0 2.365-2.016 4.285-4.5 4.285h-.403a3.07 3.07 0 0 0-.478-.594l-1.627-1.549H22.5c1.242 0 2.25-.96 2.25-2.142v-8.57c0-1.183-1.008-2.142-2.25-2.142zm-7.941 9.703l6 5.713c.431.411.558 1.022.323 1.558s-.778.884-1.387.884H7.5c-.605 0-1.153-.348-1.388-.884a1.38 1.38 0 0 1 .323-1.558l6-5.713a1.56 1.56 0 0 1 2.124 0z"),se(i,"fill","#fff"),se(t,"xmlns","http://www.w3.org/2000/svg"),se(t,"viewBox","0 0 27 20"),se(t,"fill","none")},m:function(e,n){J(e,t,n),F(t,i)},p:v,i:v,o:v,d:function(e){e&&Q(t)}}}var ro=function(e){l.default(i,e);var t=u.default(i);function i(e){var n;return a.default(this,i),n=t.call(this),ut(d.default(n),e,null,oo,C,{}),c.default(n)}return i}(dt);function lo(e){var t,i;return{c:function(){t=X("svg"),se(i=X("path"),"d","M22.5 2.142h-18c-1.242 0-2.25.96-2.25 2.142v8.57c0 1.183 1.008 2.142 2.25 2.142h2.508l-1.627 1.549a2.91 2.91 0 0 0-.478.594H4.5c-2.484 0-4.5-1.919-4.5-4.285v-8.57C0 1.919 2.016 0 4.5 0h18C24.984 0 27 1.919 27 4.285v8.57c0 2.365-2.016 4.285-4.5 4.285h-.403a3.07 3.07 0 0 0-.478-.594l-1.627-1.549H22.5c1.242 0 2.25-.96 2.25-2.142v-8.57c0-1.183-1.008-2.142-2.25-2.142zm-7.941 9.703l6 5.713c.431.411.558 1.022.323 1.558s-.778.884-1.387.884H7.5c-.605 0-1.153-.348-1.388-.884a1.38 1.38 0 0 1 .323-1.558l6-5.713a1.56 1.56 0 0 1 2.124 0zM5 5.5a1 1 0 0 1 1-1h15a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1h-2.116a1 1 0 0 1-.669-.257l-4.046-3.641a1 1 0 0 0-1.338 0l-4.046 3.641a1 1 0 0 1-.669.257H6a1 1 0 0 1-1-1v-6z"),se(t,"xmlns","http://www.w3.org/2000/svg"),se(t,"viewBox","0 0 27 20"),se(t,"fill","#fff")},m:function(e,n){J(e,t,n),F(t,i)},p:v,i:v,o:v,d:function(e){e&&Q(t)}}}var uo=function(e){l.default(i,e);var t=u.default(i);function i(e){var n;return a.default(this,i),n=t.call(this),ut(d.default(n),e,null,lo,C,{}),c.default(n)}return i}(dt);function co(e){var t,i;return{c:function(){t=X("svg"),se(i=X("path"),"d","M2 1a1 1 0 1 0-2 0v5.109a2 2 0 0 0 2 2h4.959a1 1 0 1 0 0-2H3.392a7.68 7.68 0 0 1 8.483-3.319 7.68 7.68 0 0 1 5.693 7.42 7.68 7.68 0 0 1-5.693 7.419 7.68 7.68 0 0 1-8.64-3.579 1 1 0 1 0-1.732 1 9.68 9.68 0 0 0 10.89 4.511 9.68 9.68 0 0 0 7.176-9.351A9.68 9.68 0 0 0 12.393.858 9.68 9.68 0 0 0 2 4.595V1z"),se(i,"fill",e[0]),se(t,"xmlns","http://www.w3.org/2000/svg"),se(t,"viewBox","0 0 20 20"),se(t,"fill","none"),se(t,"data-cy","reload-svg")},m:function(e,n){J(e,t,n),F(t,i)},p:function(e,t){1&o.default(t,1)[0]&&se(i,"fill",e[0])},i:v,o:v,d:function(e){e&&Q(t)}}}function ho(e,t,i){var n=t.color,a=void 0===n?"#fff":n;return e.$$set=function(e){"color"in e&&i(0,a=e.color)},[a]}var po=function(e){l.default(i,e);var t=u.default(i);function i(e){var n;return a.default(this,i),n=t.call(this),ut(d.default(n),e,ho,co,C,{color:0}),c.default(n)}return i}(dt);function _o(e){var t,i;return{c:function(){t=X("svg"),se(i=X("path"),"fill","#fff"),se(i,"d","M156.6 46.3c7.9-15.8 1.5-35-14.3-42.9s-35-1.5-42.9 14.3L13.5 189.4C4.6 207.2 0 226.8 0 246.7V256c0 70.7 57.3 128 128 128h72 8v-.3c35.2-2.7 65.4-22.8 82.1-51.7c8.8-15.3 3.6-34.9-11.7-43.7s-34.9-3.6-43.7 11.7c-7 12-19.9 20-34.7 20c-22.1 0-40-17.9-40-40s17.9-40 40-40c14.8 0 27.7 8 34.7 20c8.8 15.3 28.4 20.5 43.7 11.7s20.5-28.4 11.7-43.7c-12.8-22.1-33.6-39.1-58.4-47.1l80.8-22c17-4.6 27.1-22.2 22.5-39.3s-22.2-27.1-39.3-22.5L194.9 124.6l81.6-68c13.6-11.3 15.4-31.5 4.1-45.1S249.1-3.9 235.5 7.4L133.6 92.3l23-46zM483.4 465.7c-7.9 15.8-1.5 35 14.3 42.9s35 1.5 42.9-14.3l85.9-171.7c8.9-17.8 13.5-37.4 13.5-57.2V256c0-70.7-57.3-128-128-128H440h-8v.3c-35.2 2.7-65.4 22.8-82.1 51.7c-8.9 15.3-3.6 34.9 11.7 43.7s34.9 3.6 43.7-11.7c7-12 19.9-20 34.7-20c22.1 0 40 17.9 40 40s-17.9 40-40 40c-14.8 0-27.7-8-34.7-20c-8.9-15.3-28.4-20.5-43.7-11.7s-20.5 28.4-11.7 43.7c12.8 22.1 33.6 39.1 58.4 47.1l-80.8 22c-17.1 4.7-27.1 22.2-22.5 39.3s22.2 27.1 39.3 22.5l100.7-27.5-81.6 68c-13.6 11.3-15.4 31.5-4.1 45.1s31.5 15.4 45.1 4.1l101.9-84.9-23 46z"),se(t,"xmlns","http://www.w3.org/2000/svg"),se(t,"viewBox","0 0 640 512")},m:function(e,n){J(e,t,n),F(t,i)},p:v,i:v,o:v,d:function(e){e&&Q(t)}}}var mo=function(e){l.default(i,e);var t=u.default(i);function i(e){var n;return a.default(this,i),n=t.call(this),ut(d.default(n),e,null,_o,C,{}),c.default(n)}return i}(dt);function fo(e){var t,i;return{c:function(){t=X("svg"),se(i=X("path"),"fill","#fff"),se(i,"d","M146.5 3.7C122-6.5 93.9 5.1 83.7 29.5L9.8 206.8C3.3 222.4 0 239.1 0 256c0 70.7 57.3 128 128 128h80c41.5 0 77.7-22.6 97-56c10.7-18.4 7.7-41-5.8-56c13.5-15 16.4-37.6 5.8-56c-5.5-9.5-12.4-18.2-20.4-25.6l31-7.8c25.7-6.4 41.4-32.5 34.9-58.2s-32.5-41.4-58.2-34.9l-16.8 4.2 10-7.8c20.9-16.3 24.6-46.5 8.2-67.4l-12.6 9.9 12.6-9.9c-16.3-20.9-46.5-24.6-67.4-8.2L176 49.7c.7-19.4-10.5-38.1-29.5-46zM263.8 256l-.3 0-.3 0c-5.5-.1-10.7-3-13.6-8c-8.3-14.4-23.9-24-41.6-24c-26.5 0-48 21.5-48 48s21.5 48 48 48c17.7 0 33.3-9.6 41.6-24c2.9-5 8.1-7.9 13.6-8l.3 0 .3 0c2.6 0 5.2 .7 7.7 2.2c7.6 4.4 10.3 14.2 5.8 21.9c-13.8 23.9-39.7 40-69.3 40H128c-53 0-96-43-96-96c0-12.7 2.5-25.2 7.4-36.9L113.2 41.8c3.4-8.2 12.8-12 20.9-8.6s12 12.8 8.6 20.9L127.9 89.9c-2.8 6.7-.7 14.5 5.1 18.9s13.8 4.4 19.6-.1l93.6-73.3c7-5.4 17-4.2 22.5 2.7s4.2 17-2.7 22.5l-69.3 54.2c-5.9 4.7-7.8 12.8-4.5 19.6s10.9 10.3 18.3 8.5l89.8-22.4c8.6-2.1 17.3 3.1 19.4 11.6s-3.1 17.3-11.6 19.4l-66.3 16.6c-6.7 1.7-11.5 7.4-12.1 14.3s3.4 13.3 9.7 16c16 6.8 29.4 18.7 38 33.7c4.4 7.6 1.8 17.4-5.8 21.9c-2.5 1.4-5.1 2.1-7.7 2.2zm-41.9 8c1.7 2.9 3.6 5.6 5.8 8c-2.1 2.4-4.1 5.1-5.8 8c-2.8 4.9-8 8-13.9 8c-8.8 0-16-7.2-16-16s7.2-16 16-16c5.9 0 11.1 3.2 13.9 8zM493.5 508.3c24.5 10.2 52.6-1.4 62.8-25.8l73.8-177.2c6.5-15.6 9.8-32.3 9.8-49.2c0-70.7-57.3-128-128-128H432c-41.5 0-77.7 22.6-97 56c-10.7 18.4-7.7 41 5.8 56c-13.5 15-16.4 37.6-5.8 56c5.5 9.5 12.4 18.2 20.4 25.6l-31 7.8c-25.7 6.4-41.4 32.5-34.9 58.2s32.5 41.4 58.2 34.9l16.8-4.2-10 7.8c-20.9 16.3-24.6 46.5-8.2 67.4s46.5 24.6 67.4 8.2L464 462.3c-.7 19.4 10.6 38.1 29.5 46zM376.2 256l.3 0 .3 0c5.5 .1 10.7 3 13.6 8c8.3 14.4 23.9 24 41.6 24c26.5 0 48-21.5 48-48s-21.5-48-48-48c-17.7 0-33.3 9.6-41.6 24c-2.9 5-8.1 7.9-13.6 8l-.3 0-.3 0c-2.6 0-5.2-.7-7.7-2.2c-7.6-4.4-10.3-14.2-5.8-21.9c13.8-23.9 39.7-40 69.3-40h80c53 0 96 43 96 96c0 12.7-2.5 25.2-7.4 36.9L526.8 470.2c-3.4 8.2-12.8 12-20.9 8.6s-12-12.8-8.6-20.9l14.9-35.8c2.8-6.7 .7-14.5-5.1-18.9s-13.8-4.4-19.6 .1l-93.6 73.3c-7 5.4-17 4.2-22.5-2.7s-4.2-17 2.7-22.5l69.3-54.2c5.9-4.7 7.8-12.8 4.5-19.6s-10.9-10.3-18.3-8.5l-89.8 22.4c-8.6 2.1-17.3-3.1-19.4-11.6s3.1-17.3 11.6-19.4l66.3-16.6c6.7-1.7 11.5-7.4 12.1-14.3s-3.4-13.3-9.7-16c-16-6.8-29.4-18.7-38-33.7c-4.4-7.6-1.8-17.4 5.8-21.9c2.5-1.4 5.1-2.1 7.7-2.2zm41.9-8c-1.7-2.9-3.6-5.6-5.8-8c2.1-2.4 4.1-5.1 5.8-8c2.8-4.9 8-8 13.9-8c8.8 0 16 7.2 16 16s-7.2 16-16 16c-5.9 0-11.1-3.2-13.9-8z"),se(t,"xmlns","http://www.w3.org/2000/svg"),se(t,"viewBox","0 0 640 512")},m:function(e,n){J(e,t,n),F(t,i)},p:v,i:v,o:v,d:function(e){e&&Q(t)}}}var vo=function(e){l.default(i,e);var t=u.default(i);function i(e){var n;return a.default(this,i),n=t.call(this),ut(d.default(n),e,null,fo,C,{}),c.default(n)}return i}(dt);function go(e){var t,i;return{c:function(){t=X("svg"),se(i=X("path"),"fill","#fff"),se(i,"d","M64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H512c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64zM213.5 173.3l72 144c5.9 11.9 1.1 26.3-10.7 32.2s-26.3 1.1-32.2-10.7l-9.4-18.9H150.9l-9.4 18.9c-5.9 11.9-20.3 16.7-32.2 10.7s-16.7-20.3-10.7-32.2l72-144c4.1-8.1 12.4-13.3 21.5-13.3s17.4 5.1 21.5 13.3zm-.4 106.6L192 237.7l-21.1 42.2h42.2zM304 184c0-13.3 10.7-24 24-24h56c53 0 96 43 96 96s-43 96-96 96H328c-13.3 0-24-10.7-24-24V184zm48 24v96h32c26.5 0 48-21.5 48-48s-21.5-48-48-48H352z"),se(t,"xmlns","http://www.w3.org/2000/svg"),se(t,"viewBox","0 0 576 512")},m:function(e,n){J(e,t,n),F(t,i)},p:v,i:v,o:v,d:function(e){e&&Q(t)}}}var yo=function(e){l.default(i,e);var t=u.default(i);function i(e){var n;return a.default(this,i),n=t.call(this),ut(d.default(n),e,null,go,C,{}),c.default(n)}return i}(dt);function bo(e){var t,i;return{c:function(){t=X("svg"),se(i=X("path"),"fill","#fff"),se(i,"d","M64 80c-8.8 0-16 7.2-16 16V416c0 8.8 7.2 16 16 16H512c8.8 0 16-7.2 16-16V96c0-8.8-7.2-16-16-16H64zM0 96C0 60.7 28.7 32 64 32H512c35.3 0 64 28.7 64 64V416c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V96zm213.5 77.3l72 144c5.9 11.9 1.1 26.3-10.7 32.2s-26.3 1.1-32.2-10.7l-9.4-18.9H150.9l-9.4 18.9c-5.9 11.9-20.3 16.7-32.2 10.7s-16.7-20.3-10.7-32.2l72-144c4.1-8.1 12.4-13.3 21.5-13.3s17.4 5.1 21.5 13.3zm-.4 106.6L192 237.7l-21.1 42.2h42.2zM304 184c0-13.3 10.7-24 24-24h56c53 0 96 43 96 96s-43 96-96 96H328c-13.3 0-24-10.7-24-24V184zm48 24v96h32c26.5 0 48-21.5 48-48s-21.5-48-48-48H352z"),se(t,"xmlns","http://www.w3.org/2000/svg"),se(t,"viewBox","0 0 576 512")},m:function(e,n){J(e,t,n),F(t,i)},p:v,i:v,o:v,d:function(e){e&&Q(t)}}}var ko=function(e){l.default(i,e);var t=u.default(i);function i(e){var n;return a.default(this,i),n=t.call(this),ut(d.default(n),e,null,bo,C,{}),c.default(n)}return i}(dt);function wo(e){N(e,"svelte-1d503bk","input.svelte-1d503bk{width:100%;--track-height:calc(var(--font-size) * 0.2);--thumb-size:calc(var(--font-size) * 0.7);pointer-events:all;background-color:transparent;border-radius:var(--track-height);height:calc(3 * var(--track-height));outline:none;-webkit-appearance:none;appearance:none;cursor:pointer}input.svelte-1d503bk:focus{outline:none}input.svelte-1d503bk::-webkit-slider-runnable-track{background:var(--bg);border:0;border-radius:var(--track-height);width:100%;height:var(--track-height);cursor:pointer}input.svelte-1d503bk::-webkit-slider-thumb{margin-top:calc(var(--thumb-size) * -0.333);width:var(--thumb-size);height:var(--thumb-size);background:#ffffff;border:0;border-radius:var(--thumb-size);cursor:pointer;-webkit-appearance:none}input.svelte-1d503bk::-moz-range-track{background:var(--bg);border:0;width:100%;height:var(--track-height);cursor:pointer}input.svelte-1d503bk::-moz-range-thumb{width:var(--thumb-size);height:var(--thumb-size);background:#ffffff;border:0;border-radius:var(--thumb-size);cursor:pointer}")}function $o(e){var t,i,n;return{c:function(){se(t=Y("input"),"type","range"),se(t,"aria-label",e[4]("Volume input")),se(t,"class","range-slider svelte-1d503bk"),se(t,"min",e[6]),se(t,"max",e[7]),se(t,"step",e[8]),de(t,"--bg","linear-gradient(to right, var(--accent-color) 0%, var(--accent-color) "+e[1]+"%, #fff "+e[1]+"%, white 100%)")},m:function(a,s){J(a,t,s),ue(t,e[3]),i||(n=[ie(t,"change",e[14]),ie(t,"input",e[14]),ie(t,"input",e[10]),ie(t,"focus",e[15]),ie(t,"blur",e[16]),ie(t,"mousemove",e[17]),ie(t,"mouseleave",e[18]),ie(t,"mousedown",ae(e[11])),ie(t,"pointerdown",ae(e[12])),ie(t,"touchstart",ae(e[13])),ie(t,"keydown",e[19])],i=!0)},p:function(e,i){var n=o.default(i,1)[0];8&n&&ue(t,e[3]),2&n&&de(t,"--bg","linear-gradient(to right, var(--accent-color) 0%, var(--accent-color) "+e[1]+"%, #fff "+e[1]+"%, white 100%)")},i:v,o:v,d:function(e){e&&Q(t),i=!1,w(n)}}}function Co(e,t,i){var n,a=function(e,t){var i,n=null==t?void 0:t.composedPath();null!=n&&n.length&&(i=n[n.length-1]),!g&&(!t||"#document-fragment"===(null==i?void 0:i.nodeName))&&h("setActive",e)},s=v,o=function(){return s(),s=P(c,(function(e){return i(3,n=e)})),c};e.$$.on_destroy.push((function(){return s()}));var r=Ae(zt),l=r.translate,u=r.setUserActive,d=t.valueStore,c=void 0===d?ht(0):d;o();var h=Pe(),p=[],_=0,m=0,f=1,g=!1;Ce((function(){p.push(c.subscribe((function(){i(1,_=100*((n-m)/f-m))})))})),Se((function(){p.forEach((function(e){return e()}))}));return e.$$set=function(e){"valueStore"in e&&o(i(0,c=e.valueStore))},[c,_,g,n,l,u,m,f,.05,a,function(t){Ie.call(this,e,t)},function(t){Ie.call(this,e,t)},function(t){Ie.call(this,e,t)},function(t){Ie.call(this,e,t)},function(){n=oe(this.value),c.set(n)},function(e){return a(!0,e)},function(){return a(!1,null)},function(){return i(2,g=!0)},function(){return i(2,g=!1)},function(e){e.stopPropagation(),u(!0)}]}var So=function(e){l.default(i,e);var t=u.default(i);function i(e){var n;return a.default(this,i),n=t.call(this),ut(d.default(n),e,Co,$o,C,{valueStore:0},wo),c.default(n)}return i}(dt);function Po(e){N(e,"svelte-i8j12m",".container.svelte-i8j12m .bb-slider-element.svelte-i8j12m.svelte-i8j12m.svelte-i8j12m{height:var(--height-progress-bar);border-radius:6px}.container.mounted.svelte-i8j12m .bb-slider-element.svelte-i8j12m.svelte-i8j12m.svelte-i8j12m{width:100%;margin-left:6px}.container.mounted.size-L.svelte-i8j12m .bb-slider-element.svelte-i8j12m.svelte-i8j12m.svelte-i8j12m{margin-left:1em}.container.mounted.size-L.svelte-i8j12m:not(.full-height) .bb-slider-element.svelte-i8j12m.svelte-i8j12m.svelte-i8j12m{margin-right:0.75em}.container.mounted.svelte-i8j12m .bar.svelte-i8j12m.svelte-i8j12m.svelte-i8j12m{background-color:rgba(0, 0, 0, 0.6);padding-right:6px}.container.full-height.svelte-i8j12m .bar.svelte-i8j12m.svelte-i8j12m.svelte-i8j12m{margin-top:0;height:100%;background-color:#444;padding-right:12px}.container.svelte-i8j12m .time-display.svelte-i8j12m.svelte-i8j12m.svelte-i8j12m{font-weight:500;flex-shrink:0;font-size:0.9em;z-index:0;display:flex}.container.svelte-i8j12m .time-display .current-time.svelte-i8j12m.svelte-i8j12m.svelte-i8j12m{display:inline-block;width:4.6ch}.container.svelte-i8j12m .time-display.hour-duration .current-time.svelte-i8j12m.svelte-i8j12m.svelte-i8j12m{width:6.3ch;text-align:right}.container.svelte-i8j12m .dot.svelte-i8j12m.svelte-i8j12m.svelte-i8j12m{height:0.25em;width:0.25em;border-radius:50%;background-color:white;flex-shrink:0;margin-left:0.6em}.container.svelte-i8j12m .bar.svelte-i8j12m.svelte-i8j12m.svelte-i8j12m{margin-top:calc(var(--margin-size) / 2);display:flex;gap:0.5em;align-items:center;min-height:var(--bar-button-size)}@supports (-webkit-touch-callout: none) and (not (translate: none)){.container.svelte-i8j12m .bar.svelte-i8j12m>.svelte-i8j12m+.svelte-i8j12m{margin-left:0.5em}}.container.svelte-i8j12m .bar.no-gap.svelte-i8j12m.svelte-i8j12m.svelte-i8j12m{gap:0}@supports (-webkit-touch-callout: none) and (not (translate: none)){.container.svelte-i8j12m .bar.no-gap.svelte-i8j12m>.svelte-i8j12m+.svelte-i8j12m{margin-left:0}}.container.svelte-i8j12m .bar.svelte-i8j12m>.svelte-i8j12m.svelte-i8j12m{display:flex;flex-direction:column;justify-content:center}.container.svelte-i8j12m .bar .spacer.svelte-i8j12m.svelte-i8j12m.svelte-i8j12m{flex-grow:1}.container.svelte-i8j12m .bar .chapter-button-text.svelte-i8j12m.svelte-i8j12m.svelte-i8j12m{max-width:40%;overflow:hidden;padding:2px}.container.svelte-i8j12m .bar .chapter-title.svelte-i8j12m.svelte-i8j12m.svelte-i8j12m{display:flex;flex-wrap:nowrap;align-items:center;padding:0.6em;padding-left:0.2em}.container.svelte-i8j12m .bar .chapter-title .text.svelte-i8j12m.svelte-i8j12m.svelte-i8j12m{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:0.9em;padding-left:0.5em}.container.svelte-i8j12m .bar .chapter-title .caret.svelte-i8j12m.svelte-i8j12m.svelte-i8j12m{height:1em;width:0.5em;flex-shrink:0;margin-top:1px;padding-left:0.5em;padding-right:0.3em}.container.svelte-i8j12m .bar-button.svelte-i8j12m.svelte-i8j12m.svelte-i8j12m{width:var(--bar-button-size);height:var(--bar-button-size);line-height:min(var(--font-size), 25px)}.container.svelte-i8j12m .volume-slider.svelte-i8j12m.svelte-i8j12m.svelte-i8j12m{outline-color:var(--aria-focus-color)}.container.svelte-i8j12m .live-indicator.svelte-i8j12m.svelte-i8j12m.svelte-i8j12m{display:flex;flex-direction:row;align-items:center;gap:0.3em;font-weight:bold;padding:0.6em;height:1em;min-width:unset}@supports (-webkit-touch-callout: none) and (not (translate: none)){.container.svelte-i8j12m .live-indicator.svelte-i8j12m>.svelte-i8j12m+.svelte-i8j12m{margin-left:0.3em}}.container.svelte-i8j12m .live-indicator .live-dot.svelte-i8j12m.svelte-i8j12m.svelte-i8j12m{flex-shrink:0;height:0.4em;width:0.4em;border-radius:50%;background-color:#ccc}.container.svelte-i8j12m .live-indicator .live-dot.is-live.svelte-i8j12m.svelte-i8j12m.svelte-i8j12m{background-color:#ff3e3e}.container.svelte-i8j12m .button-slider-container.svelte-i8j12m.svelte-i8j12m.svelte-i8j12m{height:100%;display:flex;gap:5px;flex-direction:row;align-items:center;pointer-events:all}@supports (-webkit-touch-callout: none) and (not (translate: none)){.container.svelte-i8j12m .button-slider-container.svelte-i8j12m>.svelte-i8j12m+.svelte-i8j12m{margin-left:5px}}.container.svelte-i8j12m .button-slider-container .slider-horizontal.svelte-i8j12m.svelte-i8j12m.svelte-i8j12m{transition:width 0.2s ease-in-out 0.15s, min-width 0.2s ease-in-out 0.15s, opacity 0.2s ease-in-out 0.15s;width:0;min-width:0;overflow:hidden;display:flex;align-items:center;opacity:0}.container.svelte-i8j12m .button-slider-container:hover .slider-horizontal.svelte-i8j12m.svelte-i8j12m.svelte-i8j12m,.container.svelte-i8j12m .button-slider-container.display .slider-horizontal.svelte-i8j12m.svelte-i8j12m.svelte-i8j12m{width:3em;min-width:60px;opacity:1}.container.full-height.svelte-i8j12m .cast-button.svelte-i8j12m.svelte-i8j12m.svelte-i8j12m,.container.full-height.svelte-i8j12m .chapter-button.svelte-i8j12m.svelte-i8j12m.svelte-i8j12m,.container.full-height.svelte-i8j12m .chapter-button-text.svelte-i8j12m.svelte-i8j12m.svelte-i8j12m,.container.full-height.svelte-i8j12m .subtitle-button.svelte-i8j12m.svelte-i8j12m.svelte-i8j12m,.container.full-height.svelte-i8j12m .settings-button.svelte-i8j12m.svelte-i8j12m.svelte-i8j12m,.container.full-height.svelte-i8j12m .fullscreen-button.svelte-i8j12m.svelte-i8j12m.svelte-i8j12m,.container.full-height.svelte-i8j12m .share-button.svelte-i8j12m.svelte-i8j12m.svelte-i8j12m{display:none}")}function xo(e){var t,i,n,a,s,o=function(t){e[103](t)},r={accentColor:e[20],min:e[21]<0?e[21]:0,max:e[21]<0?0:e[21]};return void 0!==e[19]&&(r.value=e[19]),i=new ha({props:r}),De.push((function(){return at(i,"value",o)})),i.$on("input",e[95]),{c:function(){var n,s,o,r;t=Y("div"),st(i.$$.fragment),se(t,"class","bb-slider-element svelte-i8j12m"),se(t,"style",a=e[0]("controlBar||progressBar")),he(t,"disabled",(null==(s=null==(n=e[18])?void 0:n.controlBar)?void 0:s.disabled)||(null==(r=null==(o=e[18])?void 0:o.progressBar)?void 0:r.disabled))},m:function(e,n){J(e,t,n),ot(i,t,null),s=!0},p:function(e,o){var r,l,u,d,c={};1048576&o[0]&&(c.accentColor=e[20]),2097152&o[0]&&(c.min=e[21]<0?e[21]:0),2097152&o[0]&&(c.max=e[21]<0?0:e[21]),!n&&524288&o[0]&&(n=!0,c.value=e[19],Oe((function(){return n=!1}))),i.$set(c),(!s||1&o[0]&&a!==(a=e[0]("controlBar||progressBar")))&&se(t,"style",a),(!s||262144&o[0])&&he(t,"disabled",(null==(l=null==(r=e[18])?void 0:r.controlBar)?void 0:l.disabled)||(null==(d=null==(u=e[18])?void 0:u.progressBar)?void 0:d.disabled))},i:function(e){s||(Ye(i.$$.fragment,e),s=!0)},o:function(e){Xe(i.$$.fragment,e),s=!1},d:function(e){e&&Q(t),rt(i)}}}function Ao(e){var t,i,n,a,s,o,r;return n=new po({props:{color:e[11]}}),o=new Dn({props:{color:e[11]}}),{c:function(){t=Y("div"),i=Y("div"),st(n.$$.fragment),a=ee(),s=Y("div"),st(o.$$.fragment),de(i,"display","POST"===e[23]||"EXIT"===e[23]?"block":"none"),de(s,"display","POST"===e[23]||"EXIT"===e[23]?"none":"block"),se(t,"slot","normal")},m:function(e,l){J(e,t,l),F(t,i),ot(n,i,null),F(t,a),F(t,s),ot(o,s,null),r=!0},p:function(e,t){var a={};2048&t[0]&&(a.color=e[11]),n.$set(a),8388608&t[0]&&de(i,"display","POST"===e[23]||"EXIT"===e[23]?"block":"none");var r={};2048&t[0]&&(r.color=e[11]),o.$set(r),8388608&t[0]&&de(s,"display","POST"===e[23]||"EXIT"===e[23]?"none":"block")},i:function(e){r||(Ye(n.$$.fragment,e),Ye(o.$$.fragment,e),r=!0)},o:function(e){Xe(n.$$.fragment,e),Xe(o.$$.fragment,e),r=!1},d:function(e){e&&Q(t),rt(n),rt(o)}}}function Io(e){var t,i,n;return i=new Bn({props:{color:e[11]}}),{c:function(){t=Y("div"),st(i.$$.fragment),se(t,"slot","toggled")},m:function(e,a){J(e,t,a),ot(i,t,null),n=!0},p:function(e,t){var n={};2048&t[0]&&(n.color=e[11]),i.$set(n)},i:function(e){n||(Ye(i.$$.fragment,e),n=!0)},o:function(e){Xe(i.$$.fragment,e),n=!1},d:function(e){e&&Q(t),rt(i)}}}function To(e){var t,i,n;return i=new qn({}),{c:function(){t=Y("div"),st(i.$$.fragment),se(t,"slot","normal")},m:function(e,a){J(e,t,a),ot(i,t,null),n=!0},p:v,i:function(e){n||(Ye(i.$$.fragment,e),n=!0)},o:function(e){Xe(i.$$.fragment,e),n=!1},d:function(e){e&&Q(t),rt(i)}}}function Do(e){var t,i,n;return i=new zn({}),{c:function(){t=Y("div"),st(i.$$.fragment),se(t,"slot","toggled")},m:function(e,a){J(e,t,a),ot(i,t,null),n=!0},p:v,i:function(e){n||(Ye(i.$$.fragment,e),n=!0)},o:function(e){Xe(i.$$.fragment,e),n=!1},d:function(e){e&&Q(t),rt(i)}}}function Eo(e){var t,i,n,a,s;return(n=new So({props:{valueStore:e[51]}})).$on("input",e[96]),n.$on("setActive",e[104]),{c:function(){t=Y("div"),i=Y("div"),st(n.$$.fragment),se(i,"class","slider-horizontal svelte-i8j12m"),se(t,"class","volume-slider svelte-i8j12m"),se(t,"style",a=e[0]("volumeSliderHorizontal")),de(t,"outline-style",e[8]?"auto":"unset")},m:function(e,a){J(e,t,a),F(t,i),ot(n,i,null),s=!0},p:function(e,i){(!s||1&i[0]&&a!==(a=e[0]("volumeSliderHorizontal")))&&se(t,"style",a);var n=1&i[0];(257&i[0]||n)&&de(t,"outline-style",e[8]?"auto":"unset")},i:function(e){s||(Ye(n.$$.fragment,e),s=!0)},o:function(e){Xe(n.$$.fragment,e),s=!1},d:function(e){e&&Q(t),rt(n)}}}function Mo(e){var t,i,n,a,s,o,r,l,u,d,c,h,p,_,m,f=kt(e[19]<=e[21]?e[19]:e[21])+"",v=kt(e[21]-e[19])+"",g=kt(e[21])+"";return{c:function(){t=Y("div"),i=Y("span"),n=Y("span"),a=Z(f),o=ee(),r=Y("span"),l=Z(v),d=ee(),c=Y("span"),h=Z("/ "),p=Z(g),se(n,"class","current-time svelte-i8j12m"),se(n,"data-cy","current-time"),se(n,"style",s=e[0]("currentTime")),se(r,"class","current-time svelte-i8j12m"),se(r,"style",u=e[0]("remaining")),se(c,"style",_=e[0]("duration")),se(t,"class","time-display svelte-i8j12m"),se(t,"style",m=e[0]("timeDisplay")),he(t,"hour-duration",e[21]/60/60>1)},m:function(e,s){J(e,t,s),F(t,i),F(i,n),F(n,a),F(i,o),F(i,r),F(r,l),F(i,d),F(i,c),F(c,h),F(c,p)},p:function(e,i){2621440&i[0]&&f!==(f=kt(e[19]<=e[21]?e[19]:e[21])+"")&&le(a,f),1&i[0]&&s!==(s=e[0]("currentTime"))&&se(n,"style",s),2621440&i[0]&&v!==(v=kt(e[21]-e[19])+"")&&le(l,v),1&i[0]&&u!==(u=e[0]("remaining"))&&se(r,"style",u),2097152&i[0]&&g!==(g=kt(e[21])+"")&&le(p,g),1&i[0]&&_!==(_=e[0]("duration"))&&se(c,"style",_),1&i[0]&&m!==(m=e[0]("timeDisplay"))&&se(t,"style",m),2097152&i[0]&&he(t,"hour-duration",e[21]/60/60>1)},d:function(e){e&&Q(t)}}}function Bo(e){var t,i;return{c:function(){se(t=Y("div"),"class","dot svelte-i8j12m"),se(t,"style",i=e[0]("timeDisplay"))},m:function(e,i){J(e,t,i)},p:function(e,n){1&n[0]&&i!==(i=e[0]("timeDisplay"))&&se(t,"style",i)},d:function(e){e&&Q(t)}}}function Lo(e){var t,i,n,a,s,o=function(t){e[105](t)},r={hitHeight:.75*e[27],accentColor:e[20],min:e[21]<0?e[21]:0,max:e[21]<0?0:e[21]};return void 0!==e[19]&&(r.value=e[19]),i=new ha({props:r}),De.push((function(){return at(i,"value",o)})),i.$on("input",e[95]),{c:function(){var n,s,o,r;t=Y("div"),st(i.$$.fragment),se(t,"class","bb-slider-element mounted svelte-i8j12m"),se(t,"style",a=e[0]("progressBar")),he(t,"disabled",(null==(s=null==(n=e[18])?void 0:n.controlBar)?void 0:s.disabled)||(null==(r=null==(o=e[18])?void 0:o.progressBar)?void 0:r.disabled))},m:function(e,n){J(e,t,n),ot(i,t,null),s=!0},p:function(e,o){var r,l,u,d,c={};134217728&o[0]&&(c.hitHeight=.75*e[27]),1048576&o[0]&&(c.accentColor=e[20]),2097152&o[0]&&(c.min=e[21]<0?e[21]:0),2097152&o[0]&&(c.max=e[21]<0?0:e[21]),!n&&524288&o[0]&&(n=!0,c.value=e[19],Oe((function(){return n=!1}))),i.$set(c),(!s||1&o[0]&&a!==(a=e[0]("progressBar")))&&se(t,"style",a),(!s||262144&o[0])&&he(t,"disabled",(null==(l=null==(r=e[18])?void 0:r.controlBar)?void 0:l.disabled)||(null==(d=null==(u=e[18])?void 0:u.progressBar)?void 0:d.disabled))},i:function(e){s||(Ye(i.$$.fragment,e),s=!0)},o:function(e){Xe(i.$$.fragment,e),s=!1},d:function(e){e&&Q(t),rt(i)}}}function Ro(e){var t,i,n,a,s;return i=new pi({props:{isSquare:e[7],buttonPosition:"relative",iconHeight:.8*e[25],name:"goToLive",bgBorderRadius:1.33*e[25]+"px",hideToolTip:e[32],tooltipOffsetY:e[7]?"-2.5em":"-4em",disabledClick:e[32],$$slots:{normal:[Ho]},$$scope:{ctx:e}}}),{c:function(){t=Y("div"),st(i.$$.fragment),se(t,"class","svelte-i8j12m")},m:function(o,r){J(o,t,r),ot(i,t,null),n=!0,a||(s=ie(t,"click",e[89]),a=!0)},p:function(e,t){var n={};128&t[0]&&(n.isSquare=e[7]),33554432&t[0]&&(n.iconHeight=.8*e[25]),33554432&t[0]&&(n.bgBorderRadius=1.33*e[25]+"px"),2&t[1]&&(n.hideToolTip=e[32]),128&t[0]&&(n.tooltipOffsetY=e[7]?"-2.5em":"-4em"),2&t[1]&&(n.disabledClick=e[32]),2&t[1]|536870912&t[3]&&(n.$$scope={dirty:t,ctx:e}),i.$set(n)},i:function(e){n||(Ye(i.$$.fragment,e),n=!0)},o:function(e){Xe(i.$$.fragment,e),n=!1},d:function(e){e&&Q(t),rt(i),a=!1,s()}}}function Ho(e){var t,i,n,a;return{c:function(){t=Y("div"),i=Y("div"),n=ee(),(a=Y("div")).textContent="".concat(e[44]("live").toUpperCase()),se(i,"class","live-dot svelte-i8j12m"),he(i,"is-live",e[32]),se(a,"class","svelte-i8j12m"),se(t,"slot","normal"),se(t,"class","live-indicator svelte-i8j12m")},m:function(e,s){J(e,t,s),F(t,i),F(t,n),F(t,a)},p:function(e,t){2&t[1]&&he(i,"is-live",e[32])},d:function(e){e&&Q(t)}}}function qo(e){var t,i,n,a,s;return i=new pi({props:{isSquare:!0,iconHeight:e[25],name:"shareButton",hideToolTip:e[1]||e[2],bgSize:e[27]+"px",tooltipOffsetY:e[7]?"-2.5em":"-4em",$$slots:{normal:[Oo]},$$scope:{ctx:e}}}),{c:function(){t=Y("div"),st(i.$$.fragment),se(t,"class","playback-speed-button bar-button svelte-i8j12m")},m:function(o,r){J(o,t,r),ot(i,t,null),n=!0,a||(s=ie(t,"click",ae(e[106])),a=!0)},p:function(e,t){var n={};33554432&t[0]&&(n.iconHeight=e[25]),6&t[0]&&(n.hideToolTip=e[1]||e[2]),134217728&t[0]&&(n.bgSize=e[27]+"px"),128&t[0]&&(n.tooltipOffsetY=e[7]?"-2.5em":"-4em"),4&t[1]|536870912&t[3]&&(n.$$scope={dirty:t,ctx:e}),i.$set(n)},i:function(e){n||(Ye(i.$$.fragment,e),n=!0)},o:function(e){Xe(i.$$.fragment,e),n=!1},d:function(e){e&&Q(t),rt(i),a=!1,s()}}}function Oo(e){var t,i,n;return{c:function(){t=Y("div"),i=Z(e[33]),n=Z("x"),se(t,"slot","normal")},m:function(e,a){J(e,t,a),F(t,i),F(t,n)},p:function(e,t){4&t[1]&&le(i,e[33])},d:function(e){e&&Q(t)}}}function zo(e){var t,i,n,a,s,o;return i=new pi({props:{buttonPosition:"relative",name:"chapterButton",hideToolTip:!0,bgBorderRadius:1.33*e[25]+"px",iconHeight:.8*e[25],ariaLabel:"chapterButton",$$slots:{normal:[Vo]},$$scope:{ctx:e}}}),{c:function(){t=Y("div"),st(i.$$.fragment),se(t,"class","chapter-button-text button-content svelte-i8j12m"),se(t,"data-cy","chapter-button-text"),se(t,"style",n=e[0]("chapterButton")),de(t,"--icon-height",Math.round(e[34]/1.667)+"px")},m:function(n,r){J(n,t,r),ot(i,t,null),a=!0,s||(o=ie(t,"click",ae(e[107])),s=!0)},p:function(e,s){var o={};33554432&s[0]&&(o.bgBorderRadius=1.33*e[25]+"px"),33554432&s[0]&&(o.iconHeight=.8*e[25]),1073741824&s[0]|536870912&s[3]&&(o.$$scope={dirty:s,ctx:e}),i.$set(o),(!a||1&s[0]&&n!==(n=e[0]("chapterButton")))&&se(t,"style",n);var r=1&s[0];(1&s[0]|8&s[1]||r)&&de(t,"--icon-height",Math.round(e[34]/1.667)+"px")},i:function(e){a||(Ye(i.$$.fragment,e),a=!0)},o:function(e){Xe(i.$$.fragment,e),a=!1},d:function(e){e&&Q(t),rt(i),s=!1,o()}}}function Vo(e){var t,i,n,a,s,o,r,l,u=(null==(t=e[30])?void 0:t.title)+"";return r=new Ci({}),{c:function(){i=Y("div"),n=Y("div"),a=Z(u),s=ee(),o=Y("div"),st(r.$$.fragment),se(n,"class","text svelte-i8j12m"),se(o,"class","caret svelte-i8j12m"),se(i,"slot","normal"),se(i,"class","chapter-title svelte-i8j12m")},m:function(e,t){J(e,i,t),F(i,n),F(n,a),F(i,s),F(i,o),ot(r,o,null),l=!0},p:function(e,t){var i;(!l||1073741824&t[0])&&u!==(u=(null==(i=e[30])?void 0:i.title)+"")&&le(a,u)},i:function(e){l||(Ye(r.$$.fragment,e),l=!0)},o:function(e){Xe(r.$$.fragment,e),l=!1},d:function(e){e&&Q(i),rt(r)}}}function jo(e){var t;return{c:function(){se(t=Y("div"),"class","spacer svelte-i8j12m")},m:function(e,i){J(e,t,i)},d:function(e){e&&Q(t)}}}function Fo(e){var t,i,n,a,s,o;return i=new pi({props:{isSquare:e[7],iconHeight:e[25],name:"shareButton",hideToolTip:e[1]||e[2],bgSize:e[27]+"px",tooltipOffsetY:e[7]?"-2.5em":"-4em",$$slots:{normal:[No]},$$scope:{ctx:e}}}),{c:function(){t=Y("div"),st(i.$$.fragment),se(t,"class","share-button bar-button svelte-i8j12m"),se(t,"style",n=e[0]("shareButton"))},m:function(n,r){J(n,t,r),ot(i,t,null),a=!0,s||(o=ie(t,"click",ae(e[108])),s=!0)},p:function(e,s){var o={};128&s[0]&&(o.isSquare=e[7]),33554432&s[0]&&(o.iconHeight=e[25]),6&s[0]&&(o.hideToolTip=e[1]||e[2]),134217728&s[0]&&(o.bgSize=e[27]+"px"),128&s[0]&&(o.tooltipOffsetY=e[7]?"-2.5em":"-4em"),536870912&s[3]&&(o.$$scope={dirty:s,ctx:e}),i.$set(o),(!a||1&s[0]&&n!==(n=e[0]("shareButton")))&&se(t,"style",n)},i:function(e){a||(Ye(i.$$.fragment,e),a=!0)},o:function(e){Xe(i.$$.fragment,e),a=!1},d:function(e){e&&Q(t),rt(i),s=!1,o()}}}function No(e){var t,i,n;return i=new Wt({}),{c:function(){t=Y("div"),st(i.$$.fragment),se(t,"slot","normal")},m:function(e,a){J(e,t,a),ot(i,t,null),n=!0},p:v,i:function(e){n||(Ye(i.$$.fragment,e),n=!0)},o:function(e){Xe(i.$$.fragment,e),n=!1},d:function(e){e&&Q(t),rt(i)}}}function Uo(e){var t,i,n,a,s,o;return i=new pi({props:{isSquare:e[7],iconHeight:e[25],name:"chapterButton",hideToolTip:e[1]||e[2],bgSize:e[27]+"px",tooltipOffsetY:e[7]?"-2.5em":"-4em",$$slots:{normal:[Wo]},$$scope:{ctx:e}}}),{c:function(){t=Y("div"),st(i.$$.fragment),se(t,"class","chapter-button bar-button svelte-i8j12m"),se(t,"data-cy","chapter-button"),se(t,"style",n=e[0]("chapterButton"))},m:function(n,r){J(n,t,r),ot(i,t,null),a=!0,s||(o=ie(t,"click",ae(e[109])),s=!0)},p:function(e,s){var o={};128&s[0]&&(o.isSquare=e[7]),33554432&s[0]&&(o.iconHeight=e[25]),6&s[0]&&(o.hideToolTip=e[1]||e[2]),134217728&s[0]&&(o.bgSize=e[27]+"px"),128&s[0]&&(o.tooltipOffsetY=e[7]?"-2.5em":"-4em"),536870912&s[3]&&(o.$$scope={dirty:s,ctx:e}),i.$set(o),(!a||1&s[0]&&n!==(n=e[0]("chapterButton")))&&se(t,"style",n)},i:function(e){a||(Ye(i.$$.fragment,e),a=!0)},o:function(e){Xe(i.$$.fragment,e),a=!1},d:function(e){e&&Q(t),rt(i),s=!1,o()}}}function Wo(e){var t,i,n;return i=new _n({}),{c:function(){t=Y("div"),st(i.$$.fragment),se(t,"slot","normal")},m:function(e,a){J(e,t,a),ot(i,t,null),n=!0},p:v,i:function(e){n||(Ye(i.$$.fragment,e),n=!0)},o:function(e){Xe(i.$$.fragment,e),n=!1},d:function(e){e&&Q(t),rt(i)}}}function Go(e){var t,i;return t=new no({}),{c:function(){st(t.$$.fragment)},m:function(e,n){ot(t,e,n),i=!0},i:function(e){i||(Ye(t.$$.fragment,e),i=!0)},o:function(e){Xe(t.$$.fragment,e),i=!1},d:function(e){rt(t,e)}}}function Jo(e){var t,i;return t=new ro({}),{c:function(){st(t.$$.fragment)},m:function(e,n){ot(t,e,n),i=!0},i:function(e){i||(Ye(t.$$.fragment,e),i=!0)},o:function(e){Xe(t.$$.fragment,e),i=!1},d:function(e){rt(t,e)}}}function Qo(e){var t,i,n,a,s=function(e,t){return"AirPlay"===e[39]?0:1},o=[Jo,Go],r=[];return i=s(e),n=r[i]=o[i](e),{c:function(){t=Y("div"),n.c(),se(t,"slot","normal")},m:function(e,n){J(e,t,n),r[i].m(t,null),a=!0},p:function(e,a){var l=i;(i=s(e))!==l&&(Qe(),Xe(r[l],1,1,(function(){r[l]=null})),Ke(),(n=r[i])||(n=r[i]=o[i](e)).c(),Ye(n,1),n.m(t,null))},i:function(e){a||(Ye(n),a=!0)},o:function(e){Xe(n),a=!1},d:function(e){e&&Q(t),r[i].d()}}}function Ko(e){var t,i;return t=new so({}),{c:function(){st(t.$$.fragment)},m:function(e,n){ot(t,e,n),i=!0},i:function(e){i||(Ye(t.$$.fragment,e),i=!0)},o:function(e){Xe(t.$$.fragment,e),i=!1},d:function(e){rt(t,e)}}}function Yo(e){var t,i;return t=new uo({}),{c:function(){st(t.$$.fragment)},m:function(e,n){ot(t,e,n),i=!0},i:function(e){i||(Ye(t.$$.fragment,e),i=!0)},o:function(e){Xe(t.$$.fragment,e),i=!1},d:function(e){rt(t,e)}}}function Xo(e){var t,i,n,a,s=function(e,t){return"AirPlay"===e[39]?0:1},o=[Yo,Ko],r=[];return i=s(e),n=r[i]=o[i](e),{c:function(){t=Y("div"),n.c(),se(t,"slot","toggled")},m:function(e,n){J(e,t,n),r[i].m(t,null),a=!0},p:function(e,a){var l=i;(i=s(e))!==l&&(Qe(),Xe(r[l],1,1,(function(){r[l]=null})),Ke(),(n=r[i])||(n=r[i]=o[i](e)).c(),Ye(n,1),n.m(t,null))},i:function(e){a||(Ye(n),a=!0)},o:function(e){Xe(n),a=!1},d:function(e){e&&Q(t),r[i].d()}}}function Zo(e){var t,i,n,a,s,o;return i=new pi({props:{isSquare:e[7],name:"transcriptButton",iconHeight:e[25],toggled:e[16],hideToolTip:e[1]||e[2],bgSize:e[27]+"px",tooltipOffsetY:e[7]?"-2.5em":"-4em",$$slots:{toggled:[tr],normal:[er]},$$scope:{ctx:e}}}),{c:function(){t=Y("div"),st(i.$$.fragment),se(t,"class","transcript-button bar-button svelte-i8j12m"),se(t,"style",n=e[0]("transcriptButton"))},m:function(n,r){J(n,t,r),ot(i,t,null),a=!0,s||(o=ie(t,"click",e[91]),s=!0)},p:function(e,s){var o={};128&s[0]&&(o.isSquare=e[7]),33554432&s[0]&&(o.iconHeight=e[25]),65536&s[0]&&(o.toggled=e[16]),6&s[0]&&(o.hideToolTip=e[1]||e[2]),134217728&s[0]&&(o.bgSize=e[27]+"px"),128&s[0]&&(o.tooltipOffsetY=e[7]?"-2.5em":"-4em"),536870912&s[3]&&(o.$$scope={dirty:s,ctx:e}),i.$set(o),(!a||1&s[0]&&n!==(n=e[0]("transcriptButton")))&&se(t,"style",n)},i:function(e){a||(Ye(i.$$.fragment,e),a=!0)},o:function(e){Xe(i.$$.fragment,e),a=!1},d:function(e){e&&Q(t),rt(i),s=!1,o()}}}function er(e){var t,i,n;return i=new Zs({}),{c:function(){t=Y("div"),st(i.$$.fragment),se(t,"slot","normal")},m:function(e,a){J(e,t,a),ot(i,t,null),n=!0},p:v,i:function(e){n||(Ye(i.$$.fragment,e),n=!0)},o:function(e){Xe(i.$$.fragment,e),n=!1},d:function(e){e&&Q(t),rt(i)}}}function tr(e){var t,i,n;return i=new Ys({}),{c:function(){t=Y("div"),st(i.$$.fragment),se(t,"slot","toggled")},m:function(e,a){J(e,t,a),ot(i,t,null),n=!0},p:v,i:function(e){n||(Ye(i.$$.fragment,e),n=!0)},o:function(e){Xe(i.$$.fragment,e),n=!1},d:function(e){e&&Q(t),rt(i)}}}function ir(e){var t,i,n,a,s,o;return i=new pi({props:{isSquare:e[7],name:"audioDescriptionButton",iconHeight:e[25],toggled:!e[15],hideToolTip:e[1]||e[2],bgSize:e[27]+"px",tooltipOffsetY:e[7]?"-2.5em":"-4em",$$slots:{toggled:[ar],normal:[nr]},$$scope:{ctx:e}}}),{c:function(){t=Y("div"),st(i.$$.fragment),se(t,"class","audiodescription-button bar-button svelte-i8j12m"),se(t,"style",n=e[0]("audioDescriptionButton"))},m:function(n,r){J(n,t,r),ot(i,t,null),a=!0,s||(o=ie(t,"click",e[92]),s=!0)},p:function(e,s){var o={};128&s[0]&&(o.isSquare=e[7]),33554432&s[0]&&(o.iconHeight=e[25]),32768&s[0]&&(o.toggled=!e[15]),6&s[0]&&(o.hideToolTip=e[1]||e[2]),134217728&s[0]&&(o.bgSize=e[27]+"px"),128&s[0]&&(o.tooltipOffsetY=e[7]?"-2.5em":"-4em"),536870912&s[3]&&(o.$$scope={dirty:s,ctx:e}),i.$set(o),(!a||1&s[0]&&n!==(n=e[0]("audioDescriptionButton")))&&se(t,"style",n)},i:function(e){a||(Ye(i.$$.fragment,e),a=!0)},o:function(e){Xe(i.$$.fragment,e),a=!1},d:function(e){e&&Q(t),rt(i),s=!1,o()}}}function nr(e){var t,i,n;return i=new ko({}),{c:function(){t=Y("div"),st(i.$$.fragment),se(t,"slot","normal")},m:function(e,a){J(e,t,a),ot(i,t,null),n=!0},p:v,i:function(e){n||(Ye(i.$$.fragment,e),n=!0)},o:function(e){Xe(i.$$.fragment,e),n=!1},d:function(e){e&&Q(t),rt(i)}}}function ar(e){var t,i,n;return i=new yo({}),{c:function(){t=Y("div"),st(i.$$.fragment),se(t,"slot","toggled")},m:function(e,a){J(e,t,a),ot(i,t,null),n=!0},p:v,i:function(e){n||(Ye(i.$$.fragment,e),n=!0)},o:function(e){Xe(i.$$.fragment,e),n=!1},d:function(e){e&&Q(t),rt(i)}}}function sr(e){var t,i,n,a,s,o;return i=new pi({props:{isSquare:e[7],name:"signLanguageButton",iconHeight:e[25],toggled:e[14],hideToolTip:e[1]||e[2],bgSize:e[27]+"px",tooltipOffsetY:e[7]?"-2.5em":"-4em",$$slots:{toggled:[rr],normal:[or]},$$scope:{ctx:e}}}),{c:function(){t=Y("div"),st(i.$$.fragment),se(t,"class","sign-language-button bar-button svelte-i8j12m"),se(t,"style",n=e[0]("signLanguageButton"))},m:function(n,r){J(n,t,r),ot(i,t,null),a=!0,s||(o=ie(t,"click",e[93]),s=!0)},p:function(e,s){var o={};128&s[0]&&(o.isSquare=e[7]),33554432&s[0]&&(o.iconHeight=e[25]),16384&s[0]&&(o.toggled=e[14]),6&s[0]&&(o.hideToolTip=e[1]||e[2]),134217728&s[0]&&(o.bgSize=e[27]+"px"),128&s[0]&&(o.tooltipOffsetY=e[7]?"-2.5em":"-4em"),536870912&s[3]&&(o.$$scope={dirty:s,ctx:e}),i.$set(o),(!a||1&s[0]&&n!==(n=e[0]("signLanguageButton")))&&se(t,"style",n)},i:function(e){a||(Ye(i.$$.fragment,e),a=!0)},o:function(e){Xe(i.$$.fragment,e),a=!1},d:function(e){e&&Q(t),rt(i),s=!1,o()}}}function or(e){var t,i,n;return i=new vo({}),{c:function(){t=Y("div"),st(i.$$.fragment),se(t,"slot","normal")},m:function(e,a){J(e,t,a),ot(i,t,null),n=!0},p:v,i:function(e){n||(Ye(i.$$.fragment,e),n=!0)},o:function(e){Xe(i.$$.fragment,e),n=!1},d:function(e){e&&Q(t),rt(i)}}}function rr(e){var t,i,n;return i=new mo({}),{c:function(){t=Y("div"),st(i.$$.fragment),se(t,"slot","toggled")},m:function(e,a){J(e,t,a),ot(i,t,null),n=!0},p:v,i:function(e){n||(Ye(i.$$.fragment,e),n=!0)},o:function(e){Xe(i.$$.fragment,e),n=!1},d:function(e){e&&Q(t),rt(i)}}}function lr(e){var t,i,n,a,s,o;return i=new pi({props:{isSquare:e[7],name:"subtitleButton",iconHeight:e[25],toggled:"-1"!==e[42],hideToolTip:e[1]||e[2],bgSize:e[27]+"px",tooltipOffsetY:e[7]?"-2.5em":"-4em",$$slots:{toggled:[dr],normal:[ur]},$$scope:{ctx:e}}}),{c:function(){t=Y("div"),st(i.$$.fragment),se(t,"class","subtitle-button bar-button svelte-i8j12m"),se(t,"style",n=e[0]("subtitleButton"))},m:function(n,r){J(n,t,r),ot(i,t,null),a=!0,s||(o=ie(t,"click",e[94]),s=!0)},p:function(e,s){var o={};128&s[0]&&(o.isSquare=e[7]),33554432&s[0]&&(o.iconHeight=e[25]),2048&s[1]&&(o.toggled="-1"!==e[42]),6&s[0]&&(o.hideToolTip=e[1]||e[2]),134217728&s[0]&&(o.bgSize=e[27]+"px"),128&s[0]&&(o.tooltipOffsetY=e[7]?"-2.5em":"-4em"),536870912&s[3]&&(o.$$scope={dirty:s,ctx:e}),i.$set(o),(!a||1&s[0]&&n!==(n=e[0]("subtitleButton")))&&se(t,"style",n)},i:function(e){a||(Ye(i.$$.fragment,e),a=!0)},o:function(e){Xe(i.$$.fragment,e),a=!1},d:function(e){e&&Q(t),rt(i),s=!1,o()}}}function ur(e){var t,i,n;return i=new hn({}),{c:function(){t=Y("div"),st(i.$$.fragment),se(t,"slot","normal")},m:function(e,a){J(e,t,a),ot(i,t,null),n=!0},p:v,i:function(e){n||(Ye(i.$$.fragment,e),n=!0)},o:function(e){Xe(i.$$.fragment,e),n=!1},d:function(e){e&&Q(t),rt(i)}}}function dr(e){var t,i,n;return i=new Qs({}),{c:function(){t=Y("div"),st(i.$$.fragment),se(t,"slot","toggled")},m:function(e,a){J(e,t,a),ot(i,t,null),n=!0},p:v,i:function(e){n||(Ye(i.$$.fragment,e),n=!0)},o:function(e){Xe(i.$$.fragment,e),n=!1},d:function(e){e&&Q(t),rt(i)}}}function cr(e){var t,i,n,a,s,o;return i=new pi({props:{isSquare:e[7],name:"settingsButton",iconHeight:e[25],toggled:e[1],hideToolTip:e[1]||e[2],toggleTransform:"rotate(30deg)",bgSize:e[27]+"px",tooltipOffsetY:e[7]?"-2.5em":"-4em",ariaLabel:"settingsButton",$$slots:{normal:[hr]},$$scope:{ctx:e}}}),{c:function(){t=Y("div"),st(i.$$.fragment),se(t,"class","settings-button bar-button asset-pane-wrapper svelte-i8j12m"),se(t,"style",n=e[0]("settingsButton"))},m:function(n,r){J(n,t,r),ot(i,t,null),a=!0,s||(o=ie(t,"click",ae(e[110])),s=!0)},p:function(e,s){var o={};128&s[0]&&(o.isSquare=e[7]),33554432&s[0]&&(o.iconHeight=e[25]),2&s[0]&&(o.toggled=e[1]),6&s[0]&&(o.hideToolTip=e[1]||e[2]),134217728&s[0]&&(o.bgSize=e[27]+"px"),128&s[0]&&(o.tooltipOffsetY=e[7]?"-2.5em":"-4em"),536870912&s[3]&&(o.$$scope={dirty:s,ctx:e}),i.$set(o),(!a||1&s[0]&&n!==(n=e[0]("settingsButton")))&&se(t,"style",n)},i:function(e){a||(Ye(i.$$.fragment,e),a=!0)},o:function(e){Xe(i.$$.fragment,e),a=!1},d:function(e){e&&Q(t),rt(i),s=!1,o()}}}function hr(e){var t,i,n;return i=new to({}),{c:function(){t=Y("div"),st(i.$$.fragment),se(t,"slot","normal")},m:function(e,a){J(e,t,a),ot(i,t,null),n=!0},p:v,i:function(e){n||(Ye(i.$$.fragment,e),n=!0)},o:function(e){Xe(i.$$.fragment,e),n=!1},d:function(e){e&&Q(t),rt(i)}}}function pr(e){var t,i,n;return i=new Gs({}),{c:function(){t=Y("div"),st(i.$$.fragment),se(t,"slot","normal")},m:function(e,a){J(e,t,a),ot(i,t,null),n=!0},p:v,i:function(e){n||(Ye(i.$$.fragment,e),n=!0)},o:function(e){Xe(i.$$.fragment,e),n=!1},d:function(e){e&&Q(t),rt(i)}}}function _r(e){var t,i,n;return i=new Us({}),{c:function(){t=Y("div"),st(i.$$.fragment),se(t,"slot","toggled")},m:function(e,a){J(e,t,a),ot(i,t,null),n=!0},p:v,i:function(e){n||(Ye(i.$$.fragment,e),n=!0)},o:function(e){Xe(i.$$.fragment,e),n=!1},d:function(e){e&&Q(t),rt(i)}}}function mr(e){var t,i,n,a,s,o,r,l,u,d,c,h,p,_,m,f,v,g,y,b,k,$,C,S,P,x,A,I,T,D,E,M,B,L,R,H,q,O,z,V,j,N,U,W,G,K,X="main"===e[4]&&e[37].length&&e[7]&&!["XS"].includes(e[17])&&!e[6],Z=!e[7]&&e[10]&&xo(e);h=new pi({props:{isSquare:e[7],iconHeight:e[25],toggled:e[26],name:["POST","EXIT"].includes(e[23])?"replayButton":"playPauseButton",bgSize:e[27]+"px",bgBorderRadius:e[7]?"0px":"50%",bgColor:e[7]?e[20]:"transparent",tooltipOffsetY:e[7]?"-2.5em":"-4em",$$slots:{toggled:[Io],normal:[Ao]},$$scope:{ctx:e}}}),v=new pi({props:{isSquare:e[7],iconHeight:e[25],toggled:e[28]||0===e[13],name:"muteButton",bgSize:e[27]+"px",tooltipOffsetY:e[7]?"-2.5em":"-4em",$$slots:{toggled:[Do],normal:[To]},$$scope:{ctx:e}}});var te=!e[12]&&Eo(e),ne=e[29]>410&&!e[6]&&e[21]>0&&Mo(e),ae=(null==(t=e[30])?void 0:t.title)&&!e[7]&&e[31]&&e[10]&&e[21]>0&&Bo(e),oe=("shorts"===e[4]||e[7]&&e[10])&&Lo(e),re=e[6]&&Ro(e),le="main"===e[4]&&e[24]&&qo(e),ue=(null==(i=e[30])?void 0:i.title)&&!e[7]&&e[31]&&!e[6]&&zo(e),de=(!e[7]||e[6]&&!e[5]||(null==(n=e[18].progressBar)?void 0:n.hidden))&&jo(),ce="main"===e[4]&&e[36]&&Fo(e),pe=X&&Uo(e);E=new pi({props:{isSquare:e[7],iconHeight:e[25],toggled:e[49](e[38]),name:"castButton",hideToolTip:e[1]||e[2],bgSize:e[27]+"px",tooltipOffsetY:e[7]?"-2.5em":"-4em",$$slots:{toggled:[Xo],normal:[Qo]},$$scope:{ctx:e}}});var _e=(null==(a=e[40])?void 0:a.length)&&"main"===e[4]&&Zo(e),me=(null==(s=e[41])?void 0:s.length)>1&&"main"===e[4]&&ir(e),fe=(null==(o=e[9])?void 0:o.id)&&"main"===e[4]&&sr(e),ve=(null==(r=e[40])?void 0:r.length)&&e[29]>350&&"main"===e[4]&&lr(e),ge="main"===e[4]&&cr(e);return V=new pi({props:{isSquare:e[7],iconHeight:e[25],toggled:e[43],hideToolTip:e[1]||e[2],name:"fullscreenButton",bgSize:e[27]+"px",tooltipOffsetY:e[7]?"-2.5em":"-4em",$$slots:{toggled:[_r],normal:[pr]},$$scope:{ctx:e}}}),{c:function(){var t,i;l=Y("div"),Z&&Z.c(),u=ee(),d=Y("div"),c=Y("div"),st(h.$$.fragment),_=ee(),m=Y("div"),f=Y("div"),st(v.$$.fragment),g=ee(),te&&te.c(),b=ee(),ne&&ne.c(),k=ee(),ae&&ae.c(),$=ee(),oe&&oe.c(),C=ee(),re&&re.c(),S=ee(),le&&le.c(),P=ee(),ue&&ue.c(),x=ee(),de&&de.c(),A=ee(),ce&&ce.c(),I=ee(),pe&&pe.c(),T=ee(),D=Y("div"),st(E.$$.fragment),B=ee(),_e&&_e.c(),L=ee(),me&&me.c(),R=ee(),fe&&fe.c(),H=ee(),ve&&ve.c(),q=ee(),ge&&ge.c(),O=ee(),z=Y("div"),st(V.$$.fragment),se(c,"class","play-pause-button bar-button svelte-i8j12m"),se(c,"style",p=e[0]("playPauseButton")),se(f,"class","volume-button bar-button svelte-i8j12m"),se(m,"class","button-slider-container svelte-i8j12m"),se(m,"style",y=e[0]("muteButton")),he(m,"display",e[8]),se(D,"class","cast-button bar-button svelte-i8j12m"),se(D,"style",M=e[0]("castButton")),se(z,"class","fullscreen-button bar-button svelte-i8j12m"),se(z,"style",j=e[0]("fullscreenButton")),se(d,"class","bar svelte-i8j12m"),se(d,"style",N="INIT"===e[23]||e[24]?"":e[0]("controlBar")),he(d,"no-gap",e[22]),he(d,"disabled",null==(i=null==(t=e[18])?void 0:t.controlBar)?void 0:i.disabled),se(l,"class",U="container size-"+e[17]+" svelte-i8j12m"),he(l,"mounted",e[7]),he(l,"full-height",e[3])},m:function(t,i){J(t,l,i),Z&&Z.m(l,null),F(l,u),F(l,d),F(d,c),ot(h,c,null),F(d,_),F(d,m),F(m,f),ot(v,f,null),F(m,g),te&&te.m(m,null),F(d,b),ne&&ne.m(d,null),F(d,k),ae&&ae.m(d,null),F(d,$),oe&&oe.m(d,null),F(d,C),re&&re.m(d,null),F(d,S),le&&le.m(d,null),F(d,P),ue&&ue.m(d,null),F(d,x),de&&de.m(d,null),F(d,A),ce&&ce.m(d,null),F(d,I),pe&&pe.m(d,null),F(d,T),F(d,D),ot(E,D,null),F(d,B),_e&&_e.m(d,null),F(d,L),me&&me.m(d,null),F(d,R),fe&&fe.m(d,null),F(d,H),ve&&ve.m(d,null),F(d,q),ge&&ge.m(d,null),F(d,O),F(d,z),ot(V,z,null),W=!0,G||(K=[ie(c,"click",e[88]),ie(c,"mouseenter",e[98]),ie(f,"click",e[86]),ie(D,"click",e[90]),ie(z,"click",e[87])],G=!0)},p:function(e,t){var i,n,a,s,o,r,_,f,g;!e[7]&&e[10]?Z?(Z.p(e,t),1152&t[0]&&Ye(Z,1)):((Z=xo(e)).c(),Ye(Z,1),Z.m(l,u)):Z&&(Qe(),Xe(Z,1,1,(function(){Z=null})),Ke());var b={};128&t[0]&&(b.isSquare=e[7]),33554432&t[0]&&(b.iconHeight=e[25]),67108864&t[0]&&(b.toggled=e[26]),8388608&t[0]&&(b.name=["POST","EXIT"].includes(e[23])?"replayButton":"playPauseButton"),134217728&t[0]&&(b.bgSize=e[27]+"px"),128&t[0]&&(b.bgBorderRadius=e[7]?"0px":"50%"),1048704&t[0]&&(b.bgColor=e[7]?e[20]:"transparent"),128&t[0]&&(b.tooltipOffsetY=e[7]?"-2.5em":"-4em"),8390656&t[0]|536870912&t[3]&&(b.$$scope={dirty:t,ctx:e}),h.$set(b),(!W||1&t[0]&&p!==(p=e[0]("playPauseButton")))&&se(c,"style",p);var w={};128&t[0]&&(w.isSquare=e[7]),33554432&t[0]&&(w.iconHeight=e[25]),268443648&t[0]&&(w.toggled=e[28]||0===e[13]),134217728&t[0]&&(w.bgSize=e[27]+"px"),128&t[0]&&(w.tooltipOffsetY=e[7]?"-2.5em":"-4em"),536870912&t[3]&&(w.$$scope={dirty:t,ctx:e}),v.$set(w),e[12]?te&&(Qe(),Xe(te,1,1,(function(){te=null})),Ke()):te?(te.p(e,t),4096&t[0]&&Ye(te,1)):((te=Eo(e)).c(),Ye(te,1),te.m(m,null)),(!W||1&t[0]&&y!==(y=e[0]("muteButton")))&&se(m,"style",y),(!W||256&t[0])&&he(m,"display",e[8]),e[29]>410&&!e[6]&&e[21]>0?ne?ne.p(e,t):((ne=Mo(e)).c(),ne.m(d,k)):ne&&(ne.d(1),ne=null),null!=(i=e[30])&&i.title&&!e[7]&&e[31]&&e[10]&&e[21]>0?ae?ae.p(e,t):((ae=Bo(e)).c(),ae.m(d,$)):ae&&(ae.d(1),ae=null),"shorts"===e[4]||e[7]&&e[10]?oe?(oe.p(e,t),1168&t[0]&&Ye(oe,1)):((oe=Lo(e)).c(),Ye(oe,1),oe.m(d,C)):oe&&(Qe(),Xe(oe,1,1,(function(){oe=null})),Ke()),e[6]?re?(re.p(e,t),64&t[0]&&Ye(re,1)):((re=Ro(e)).c(),Ye(re,1),re.m(d,S)):re&&(Qe(),Xe(re,1,1,(function(){re=null})),Ke()),"main"===e[4]&&e[24]?le?(le.p(e,t),16777232&t[0]&&Ye(le,1)):((le=qo(e)).c(),Ye(le,1),le.m(d,P)):le&&(Qe(),Xe(le,1,1,(function(){le=null})),Ke()),null!=(n=e[30])&&n.title&&!e[7]&&e[31]&&!e[6]?ue?(ue.p(e,t),1073742016&t[0]|1&t[1]&&Ye(ue,1)):((ue=zo(e)).c(),Ye(ue,1),ue.m(d,x)):ue&&(Qe(),Xe(ue,1,1,(function(){ue=null})),Ke()),!e[7]||e[6]&&!e[5]||null!=(a=e[18].progressBar)&&a.hidden?de||((de=jo()).c(),de.m(d,A)):de&&(de.d(1),de=null),"main"===e[4]&&e[36]?ce?(ce.p(e,t),16&t[0]|32&t[1]&&Ye(ce,1)):((ce=Fo(e)).c(),Ye(ce,1),ce.m(d,I)):ce&&(Qe(),Xe(ce,1,1,(function(){ce=null})),Ke()),131280&t[0]|64&t[1]&&(X="main"===e[4]&&e[37].length&&e[7]&&!["XS"].includes(e[17])&&!e[6]),X?pe?(pe.p(e,t),131280&t[0]|64&t[1]&&Ye(pe,1)):((pe=Uo(e)).c(),Ye(pe,1),pe.m(d,T)):pe&&(Qe(),Xe(pe,1,1,(function(){pe=null})),Ke());var B={};128&t[0]&&(B.isSquare=e[7]),33554432&t[0]&&(B.iconHeight=e[25]),128&t[1]&&(B.toggled=e[49](e[38])),6&t[0]&&(B.hideToolTip=e[1]||e[2]),134217728&t[0]&&(B.bgSize=e[27]+"px"),128&t[0]&&(B.tooltipOffsetY=e[7]?"-2.5em":"-4em"),256&t[1]|536870912&t[3]&&(B.$$scope={dirty:t,ctx:e}),E.$set(B),(!W||1&t[0]&&M!==(M=e[0]("castButton")))&&se(D,"style",M),null!=(s=e[40])&&s.length&&"main"===e[4]?_e?(_e.p(e,t),16&t[0]|512&t[1]&&Ye(_e,1)):((_e=Zo(e)).c(),Ye(_e,1),_e.m(d,L)):_e&&(Qe(),Xe(_e,1,1,(function(){_e=null})),Ke()),(null==(o=e[41])?void 0:o.length)>1&&"main"===e[4]?me?(me.p(e,t),16&t[0]|1024&t[1]&&Ye(me,1)):((me=ir(e)).c(),Ye(me,1),me.m(d,R)):me&&(Qe(),Xe(me,1,1,(function(){me=null})),Ke()),null!=(r=e[9])&&r.id&&"main"===e[4]?fe?(fe.p(e,t),528&t[0]&&Ye(fe,1)):((fe=sr(e)).c(),Ye(fe,1),fe.m(d,H)):fe&&(Qe(),Xe(fe,1,1,(function(){fe=null})),Ke()),null!=(_=e[40])&&_.length&&e[29]>350&&"main"===e[4]?ve?(ve.p(e,t),536870928&t[0]|512&t[1]&&Ye(ve,1)):((ve=lr(e)).c(),Ye(ve,1),ve.m(d,q)):ve&&(Qe(),Xe(ve,1,1,(function(){ve=null})),Ke()),"main"===e[4]?ge?(ge.p(e,t),16&t[0]&&Ye(ge,1)):((ge=cr(e)).c(),Ye(ge,1),ge.m(d,O)):ge&&(Qe(),Xe(ge,1,1,(function(){ge=null})),Ke());var F={};128&t[0]&&(F.isSquare=e[7]),33554432&t[0]&&(F.iconHeight=e[25]),4096&t[1]&&(F.toggled=e[43]),6&t[0]&&(F.hideToolTip=e[1]||e[2]),134217728&t[0]&&(F.bgSize=e[27]+"px"),128&t[0]&&(F.tooltipOffsetY=e[7]?"-2.5em":"-4em"),536870912&t[3]&&(F.$$scope={dirty:t,ctx:e}),V.$set(F),(!W||1&t[0]&&j!==(j=e[0]("fullscreenButton")))&&se(z,"style",j),(!W||25165825&t[0]&&N!==(N="INIT"===e[23]||e[24]?"":e[0]("controlBar")))&&se(d,"style",N),(!W||4194304&t[0])&&he(d,"no-gap",e[22]),(!W||262144&t[0])&&he(d,"disabled",null==(g=null==(f=e[18])?void 0:f.controlBar)?void 0:g.disabled),(!W||131072&t[0]&&U!==(U="container size-"+e[17]+" svelte-i8j12m"))&&se(l,"class",U),(!W||131200&t[0])&&he(l,"mounted",e[7]),(!W||131080&t[0])&&he(l,"full-height",e[3])},i:function(e){W||(Ye(Z),Ye(h.$$.fragment,e),Ye(v.$$.fragment,e),Ye(te),Ye(oe),Ye(re),Ye(le),Ye(ue),Ye(ce),Ye(pe),Ye(E.$$.fragment,e),Ye(_e),Ye(me),Ye(fe),Ye(ve),Ye(ge),Ye(V.$$.fragment,e),W=!0)},o:function(e){Xe(Z),Xe(h.$$.fragment,e),Xe(v.$$.fragment,e),Xe(te),Xe(oe),Xe(re),Xe(le),Xe(ue),Xe(ce),Xe(pe),Xe(E.$$.fragment,e),Xe(_e),Xe(me),Xe(fe),Xe(ve),Xe(ge),Xe(V.$$.fragment,e),W=!1},d:function(e){e&&Q(l),Z&&Z.d(),rt(h),rt(v),te&&te.d(),ne&&ne.d(),ae&&ae.d(),oe&&oe.d(),re&&re.d(),le&&le.d(),ue&&ue.d(),de&&de.d(),ce&&ce.d(),pe&&pe.d(),rt(E),_e&&_e.d(),me&&me.d(),fe&&fe.d(),ve&&ve.d(),ge&&ge.d(),rt(V),G=!1,w(K)}}}function fr(e,t,i){var n,a,s,o,r,l,u,d,c,h,p,_,m,f,v,g,y,b,k,w,$,C,S,P,x,I,T,D,E,M,B,L,R,H,q,O,z,V,j,F,N,U,W,G=function(e){i(8,at=e)},J=t.iStyle,Q=t.configPaneOpen,K=void 0!==Q&&Q,Y=t.mountedChaptersOpen,X=void 0!==Y&&Y,Z=t.fullHeight,ee=void 0!==Z&&Z,te=t.skinMode,ie=void 0===te?"main":te,ne=Ae(zt),ae=ne.translate,se=ne.seekTo,oe=ne.toggleMute,re=ne.searchPanelOpen,le=ne.audiotracks,ue=ne.mainAudioTrackActive,de=ne.signLanguageActive,ce=ne.toggleSubtitles,he=ne.setVolume,pe=ne.showCastTargets,_e=ne.castingActive,me=ne.playPause,fe=ne.api,ve=ne.accentColor,ge=ne.displayVolume,ye=ne.started,be=ne.currentTime,ke=ne.duration,we=ne.playing,$e=ne.fullscreen,Ce=ne.activeSubtitleId,Se=ne.phase,xe=ne.subtitlesList,Ie=ne.muted,Te=ne.playerWidth,De=ne.mountedControlbar,Ee=ne.currentChapter,Me=ne.mouseOverInterface,Be=ne.detections,Le=ne.livePlayer,Re=ne.livePlayerWithDvr,He=ne.livePlayerIsLive,qe=ne.chapterList,Oe=ne.chapterClick,ze=ne.foregroundColor,Ve=ne.iconContrastColor,je=ne.elementVisibility,Fe=ne.barIconSize,Ne=ne.barButtonSize,Ue=ne.bigIconSize,We=ne.skinSize,Ge=ne.showChapterText,Je=ne.touchMode,Qe=ne.noSizingGapControlBar,Ke=ne.castState,Ye=ne.slimAudioPlayer,Xe=ne.hasTimeline,Ze=ne.playRate,et=ne.castType,tt=ne.assets,it=ne.play;A(e,re,(function(e){return i(16,c=e)})),A(e,le,(function(e){return i(41,N=e)})),A(e,ue,(function(e){return i(15,d=e)})),A(e,de,(function(e){return i(14,u=e)})),A(e,ve,(function(e){return i(20,w=e)})),A(e,ge,(function(e){return i(13,l=e)})),A(e,be,(function(e){return i(19,k=e)})),A(e,ke,(function(e){return i(21,$=e)})),A(e,we,(function(e){return i(26,I=e)})),A(e,$e,(function(e){return i(43,W=e)})),A(e,Ce,(function(e){return i(42,U=e)})),A(e,Se,(function(e){return i(23,S=e)})),A(e,xe,(function(e){return i(40,F=e)})),A(e,Ie,(function(e){return i(28,D=e)})),A(e,Te,(function(e){return i(29,E=e)})),A(e,De,(function(e){return i(7,v=e)})),A(e,Ee,(function(e){return i(30,M=e)})),A(e,Be,(function(e){return i(102,g=e)})),A(e,Le,(function(e){return i(6,_=e)})),A(e,Re,(function(e){return i(5,p=e)})),A(e,He,(function(e){return i(32,L=e)})),A(e,qe,(function(e){return i(37,z=e)})),A(e,Oe,(function(e){return i(35,q=e)})),A(e,ze,(function(e){return i(100,m=e)})),A(e,Ve,(function(e){return i(101,f=e)})),A(e,je,(function(e){return i(18,b=e)})),A(e,Fe,(function(e){return i(25,x=e)})),A(e,Ne,(function(e){return i(27,T=e)})),A(e,Ue,(function(e){return i(34,H=e)})),A(e,We,(function(e){return i(17,y=e)})),A(e,Ge,(function(e){return i(31,B=e)})),A(e,Je,(function(e){return i(111,r=e)})),A(e,Qe,(function(e){return i(22,C=e)})),A(e,Ke,(function(e){return i(38,V=e)})),A(e,Ye,(function(e){return i(24,P=e)})),A(e,Xe,(function(e){return i(36,O=e)})),A(e,Ze,(function(e){return i(33,R=e)})),A(e,et,(function(e){return i(39,j=e)})),A(e,tt,(function(e){return i(99,h=e)}));var nt=Pe(),at=!1;return e.$$set=function(e){"iStyle"in e&&i(0,J=e.iStyle),"configPaneOpen"in e&&i(1,K=e.configPaneOpen),"mountedChaptersOpen"in e&&i(2,X=e.mountedChaptersOpen),"fullHeight"in e&&i(3,ee=e.fullHeight),"skinMode"in e&&i(4,ie=e.skinMode)},e.$$.update=function(){512&e.$$.dirty[3]&&i(12,n=null==g?void 0:g.isMobileDevice),128&e.$$.dirty[0]|384&e.$$.dirty[3]&&i(11,a=v?f:m),96&e.$$.dirty[0]&&i(10,s=!_||p),64&e.$$.dirty[3]&&i(9,o=null==h?void 0:h.find((function(e){return"180"===e.bitrate})))},[J,K,X,ee,ie,p,_,v,at,o,s,a,n,l,u,d,c,y,b,k,w,$,C,S,P,x,I,T,D,E,M,B,L,R,H,q,O,z,V,j,F,N,U,W,ae,re,le,ue,de,_e,ve,ge,be,ke,we,$e,Ce,Se,xe,Ie,Te,De,Ee,Be,Le,Re,He,qe,Oe,ze,Ve,je,Fe,Ne,Ue,We,Ge,Je,Qe,Ke,Ye,Xe,Ze,et,tt,nt,function(){oe()},function(){fe.toggleFullscreen()},function(){me()},function(){se(0,!0)},function(){pe()},function(){re.set(!c)},function(){var e,t;if(d){var i=null==(t=fe.getAudioTracks())?void 0:t.find((function(e){return!bt(e)}));null!=i&&i.id&&fe.selectAudioTrack(i.id)}else{var n=null==(e=fe.getAudioTracks())?void 0:e.find((function(e){return bt(e)}));null!=n&&n.id&&fe.selectAudioTrack(n.id)}},function(){var e=fe.getAssets();if(u){var t=null==e?void 0:e.reduce((function(e,t){return parseFloat(e.bitrate)>parseFloat(t.bitrate)?e:t}));null==fe||fe.setAsset(null==t?void 0:t.id)}else null!=o&&o.id&&(null==fe||fe.setAsset(o.id))},function(){ce()},function(e){ye||it();var t=e.target;se(+t.value)},function(){he(l)},G,function(e){r||Me.set(!1)},h,m,f,g,function(e){k=e,be.set(k)},function(e){return G(e.detail)},function(e){k=e,be.set(k)},function(){return nt("togglePlaybackSpeedPane")},function(){Oe.set(function(e,t,i){return e.set(i),t}(Oe,q++,q)),nt("openChapterMenu")},function(){return nt("toggleSharePane")},function(){return nt("openChapterMenu")},function(){return nt("openConfigMenu")}]}var vr=function(e){l.default(i,e);var t=u.default(i);function i(e){var n;return a.default(this,i),n=t.call(this),ut(d.default(n),e,fr,mr,C,{iStyle:0,configPaneOpen:1,mountedChaptersOpen:2,fullHeight:3,skinMode:4},Po,[-1,-1,-1,-1]),c.default(n)}return i}(dt);function gr(e){var t,i;return{c:function(){t=X("svg"),se(i=X("path"),"d","M4.565.244a.78.78 0 0 0-1.132 0L.234 3.576c-.23.239-.297.596-.172.909A.8.8 0 0 0 .802 5h6.397c.322 0 .615-.203.74-.515a.86.86 0 0 0-.172-.909L4.568.244h-.003z"),se(i,"fill","#FFF"),se(t,"xmlns","http://www.w3.org/2000/svg"),se(t,"viewBox","0 0 8 6"),se(t,"fill","none")},m:function(e,n){J(e,t,n),F(t,i)},p:v,i:v,o:v,d:function(e){e&&Q(t)}}}var yr=function(e){l.default(i,e);var t=u.default(i);function i(e){var n;return a.default(this,i),n=t.call(this),ut(d.default(n),e,null,gr,C,{}),c.default(n)}return i}(dt);function br(e){var t,i;return{c:function(){t=X("svg"),se(i=X("path"),"d","M.58.128v2.2h.96v-1.08h7.3v1.08h.96v-2.2H.58z"),se(i,"fill","#fff"),se(t,"xmlns","http://www.w3.org/2000/svg"),se(t,"viewBox","0 0 10 3"),se(t,"fill","none")},m:function(e,n){J(e,t,n),F(t,i)},p:v,i:v,o:v,d:function(e){e&&Q(t)}}}var kr=function(e){l.default(i,e);var t=u.default(i);function i(e){var n;return a.default(this,i),n=t.call(this),ut(d.default(n),e,null,br,C,{}),c.default(n)}return i}(dt);function wr(e){N(e,"svelte-9icqtm","label.svelte-9icqtm.svelte-9icqtm.svelte-9icqtm{--switch-width:36px;--switch-height:20px;--handle-size:16px;--spacing:calc((var(--switch-height) - var(--handle-size)) * 0.5);margin:2px}.switch-container.svelte-9icqtm.svelte-9icqtm.svelte-9icqtm{display:flex;align-items:center;cursor:pointer}.switch.svelte-9icqtm.svelte-9icqtm.svelte-9icqtm{position:relative;width:var(--switch-width);height:var(--switch-height);margin-right:10px}.switch-input.svelte-9icqtm.svelte-9icqtm.svelte-9icqtm{opacity:0;width:0;height:0}.switch-label.svelte-9icqtm.svelte-9icqtm.svelte-9icqtm{position:absolute;top:0;left:0;right:0;bottom:0;background-color:var(--element-background-color);transition:0.4s;border-radius:var(--switch-height)}.switch-handle.svelte-9icqtm.svelte-9icqtm.svelte-9icqtm{position:absolute;top:var(--spacing);left:var(--spacing);width:var(--handle-size);height:var(--handle-size);background-color:white;transition:0.25s;border-radius:50%;box-shadow:0px 1px 2px rgba(16, 24, 40, 0.06)}.switch-input.svelte-9icqtm:checked+.switch-label.svelte-9icqtm.svelte-9icqtm{background-color:var(--primary-color)}.tabbed.switch-input.svelte-9icqtm:focus+.switch-label.svelte-9icqtm.svelte-9icqtm{outline-color:var(--aria-focus-color);outline-style:auto;outline-width:1px}.switch-input.svelte-9icqtm:checked+.switch-label.svelte-9icqtm+.switch-handle.svelte-9icqtm{transform:translateX(calc(var(--switch-width) - var(--handle-size) - var(--spacing) * 2))}")}function $r(e){var t,i,n,a,s,r,l,u,d,c,h,p,_=e[6].default,m=I(_,e,e[5],null);return{c:function(){t=Y("label"),i=Y("div"),n=Y("input"),a=ee(),s=Y("span"),r=ee(),l=Y("span"),u=ee(),d=Y("span"),m&&m.c(),se(n,"tabindex","0"),se(n,"type","checkbox"),se(n,"role","switch"),se(n,"aria-checked",e[0]),n.checked=e[0],se(n,"class","switch-input svelte-9icqtm"),he(n,"tabbed",e[1]),se(s,"class","switch-label svelte-9icqtm"),se(l,"class","switch-handle svelte-9icqtm"),se(i,"class","switch svelte-9icqtm"),se(d,"class","switch-text"),se(t,"class","switch-container svelte-9icqtm")},m:function(o,_){J(o,t,_),F(t,i),F(i,n),F(i,a),F(i,s),F(i,r),F(i,l),F(t,u),F(t,d),m&&m.m(d,null),c=!0,h||(p=[ie(n,"click",e[4]),ie(n,"change",e[7]),ie(n,"input",e[2]),ie(n,"keydown",ae(e[8])),ie(n,"keyup",ae(e[3]))],h=!0)},p:function(e,t){var i=o.default(t,1)[0];(!c||1&i)&&se(n,"aria-checked",e[0]),(!c||1&i)&&(n.checked=e[0]),(!c||2&i)&&he(n,"tabbed",e[1]),m&&m.p&&(!c||32&i)&&E(m,_,e,e[5],c?D(_,e[5],i,null):M(e[5]),null)},i:function(e){c||(Ye(m,e),c=!0)},o:function(e){Xe(m,e),c=!1},d:function(e){e&&Q(t),m&&m.d(e),h=!1,w(p)}}}function Cr(e,t,i){var n=function(e){console.warn("keydown",e.key,e.code,e),("Tab"===e.key||"Space"===e.code)&&setTimeout((function(){i(1,l=!0)}),1)},a=t.$$slots,s=void 0===a?{}:a,o=t.$$scope,r=t.value,l=!1;return Ce((function(){document.addEventListener("keyup",n)})),Se((function(){document.removeEventListener("keyup",n)})),e.$$set=function(e){"value"in e&&i(0,r=e.value),"$$scope"in e&&i(5,o=e.$$scope)},[r,l,function(){i(0,r=!r)},n,function(){console.log("onClick"),i(1,l=!1)},o,s,function(t){Ie.call(this,e,t)},function(t){Ie.call(this,e,t)}]}var Sr=function(e){l.default(i,e);var t=u.default(i);function i(e){var n;return a.default(this,i),n=t.call(this),ut(d.default(n),e,Cr,$r,C,{value:0},wr),c.default(n)}return i}(dt);function Pr(e){N(e,"svelte-1yzjd2c",".content.svelte-1yzjd2c.svelte-1yzjd2c.svelte-1yzjd2c.svelte-1yzjd2c{display:grid;grid-template-columns:auto auto;margin-bottom:1em;transition:opacity 0.25s ease-in-out;gap:1em}@supports (-webkit-touch-callout: none) and (not (translate: none)){.content.svelte-1yzjd2c>.svelte-1yzjd2c+.svelte-1yzjd2c.svelte-1yzjd2c{margin-left:1em}}.content.disabled.svelte-1yzjd2c.svelte-1yzjd2c.svelte-1yzjd2c.svelte-1yzjd2c{opacity:0.33 !important}.content.svelte-1yzjd2c .option.svelte-1yzjd2c.svelte-1yzjd2c.svelte-1yzjd2c{display:flex;gap:9px;align-items:center}@supports (-webkit-touch-callout: none) and (not (translate: none)){.content.svelte-1yzjd2c .option.svelte-1yzjd2c>.svelte-1yzjd2c+.svelte-1yzjd2c{margin-left:9px}}.content.svelte-1yzjd2c .option.large.svelte-1yzjd2c.svelte-1yzjd2c.svelte-1yzjd2c{margin-right:1em}.content.svelte-1yzjd2c .option.large .key.svelte-1yzjd2c.svelte-1yzjd2c.svelte-1yzjd2c{width:90px}.content.svelte-1yzjd2c .option.large .key .icon.svelte-1yzjd2c.svelte-1yzjd2c.svelte-1yzjd2c{margin:0 auto;width:15px}.content.svelte-1yzjd2c .key.svelte-1yzjd2c.svelte-1yzjd2c.svelte-1yzjd2c{height:10px;width:10px;padding:8px 10px 12px;font-size:12px;font-weight:bold;text-align:center;color:white;border:2px solid white;border-radius:5px}.content.svelte-1yzjd2c .key .icon.svelte-1yzjd2c.svelte-1yzjd2c.svelte-1yzjd2c{width:10px}.content.size-XS.svelte-1yzjd2c.svelte-1yzjd2c.svelte-1yzjd2c.svelte-1yzjd2c{grid-template-columns:auto}.content.size-XS.svelte-1yzjd2c .option.large.svelte-1yzjd2c.svelte-1yzjd2c.svelte-1yzjd2c{margin-right:0}")}function xr(e,t,i){var n=e.slice();return n[13]=t[i],n}function Ar(e){var t,i,n,a,s,o,r,l=e[13].value&&function(e){var t,i=e[13].value+"";return{c:function(){t=Z(i)},m:function(e,i){J(e,t,i)},p:v,d:function(e){e&&Q(t)}}}(e),u=e[13].icon&&function(e){var t,i,n,a=e[13].icon;return a&&(i=_e(a,{})),{c:function(){t=Y("div"),i&&st(i.$$.fragment),se(t,"class","icon svelte-1yzjd2c"),de(t,"transform",e[13].iconTransform||"")},m:function(e,a){J(e,t,a),i&&ot(i,t,null),n=!0},p:function(e,n){if(a!==(a=e[13].icon)){if(i){Qe();var s=i;Xe(s.$$.fragment,1,0,(function(){rt(s,1)})),Ke()}a?(st((i=_e(a,{})).$$.fragment),Ye(i.$$.fragment,1),ot(i,t,null)):i=null}},i:function(e){n||(i&&Ye(i.$$.fragment,e),n=!0)},o:function(e){i&&Xe(i.$$.fragment,e),n=!1},d:function(e){e&&Q(t),i&&rt(i)}}}(e);return{c:function(){t=Y("li"),i=Y("div"),l&&l.c(),n=ee(),u&&u.c(),a=ee(),(s=Y("div")).textContent="".concat(e[4](e[13].label,!0)),o=ee(),se(i,"class","key svelte-1yzjd2c"),se(s,"class","label svelte-1yzjd2c"),se(t,"class","option svelte-1yzjd2c"),he(t,"large",e[13].large)},m:function(e,d){J(e,t,d),F(t,i),l&&l.m(i,null),F(i,n),u&&u.m(i,null),F(t,a),F(t,s),F(t,o),r=!0},p:function(e,t){e[13].value&&l.p(e,t),e[13].icon&&u.p(e,t)},i:function(e){r||(Ye(u),r=!0)},o:function(e){Xe(u),r=!1},d:function(e){e&&Q(t),l&&l.d(),u&&u.d()}}}function Ir(e){var t;return{c:function(){t=Z("Enable keyboard shortcuts")},m:function(e,i){J(e,t,i)},d:function(e){e&&Q(t)}}}function Tr(e){for(var t,i,n,a,s,o,r=function(t){e[7](t)},l=nt(e[6]),u=[],d=0;d<l.length;d+=1)u[d]=Ar(xr(e,l,d));var c=function(e){return Xe(u[e],1,1,(function(){u[e]=null}))},h={$$slots:{default:[Ir]},$$scope:{ctx:e}};return void 0!==e[0]&&(h.value=e[0]),a=new Sr({props:h}),De.push((function(){return at(a,"value",r)})),{c:function(){t=Y("ul");for(var s=0;s<u.length;s+=1)u[s].c();n=ee(),st(a.$$.fragment),se(t,"class",i="content size-"+e[2]+" svelte-1yzjd2c"),he(t,"disabled",!e[0])},m:function(e,i){J(e,t,i);for(var s=0;s<u.length;s+=1)u[s]&&u[s].m(t,null);J(e,n,i),ot(a,e,i),o=!0},p:function(e,n){if(80&n){var r;for(l=nt(e[6]),r=0;r<l.length;r+=1){var d=xr(e,l,r);u[r]?(u[r].p(d,n),Ye(u[r],1)):(u[r]=Ar(d),u[r].c(),Ye(u[r],1),u[r].m(t,null))}for(Qe(),r=l.length;r<u.length;r+=1)c(r);Ke()}(!o||4&n&&i!==(i="content size-"+e[2]+" svelte-1yzjd2c"))&&se(t,"class",i),(!o||5&n)&&he(t,"disabled",!e[0]);var h={};65536&n&&(h.$$scope={dirty:n,ctx:e}),!s&&1&n&&(s=!0,h.value=e[0],Oe((function(){return s=!1}))),a.$set(h)},i:function(e){if(!o){for(var t=0;t<l.length;t+=1)Ye(u[t]);Ye(a.$$.fragment,e),o=!0}},o:function(e){u=u.filter(Boolean);for(var t=0;t<u.length;t+=1)Xe(u[t]);Xe(a.$$.fragment,e),o=!1},d:function(e){e&&(Q(t),Q(n)),K(u,e),rt(a,e)}}}function Dr(e){var t,i,n;return(i=new ps({props:{header:"Keyboard shortcuts",$$slots:{default:[Tr]},$$scope:{ctx:e}}})).$on("close",e[8]),i.$on("backdropClick",e[9]),{c:function(){t=Y("div"),st(i.$$.fragment),se(t,"class","keyboard-pane")},m:function(a,s){J(a,t,s),ot(i,t,null),e[10](t),n=!0},p:function(e,t){var n=o.default(t,1)[0],a={};65541&n&&(a.$$scope={dirty:n,ctx:e}),i.$set(a)},i:function(e){n||(Ye(i.$$.fragment,e),n=!0)},o:function(e){Xe(i.$$.fragment,e),n=!1},d:function(n){n&&Q(t),rt(i),e[10](null)}}}function Er(e,t,i){var n,a,s=Ae(zt),o=s.skinSize,r=s.translate,l=s.api,u=s.userDisabledShortcuts;A(e,o,(function(e){return i(2,a=e)})),A(e,u,(function(e){return i(11,n=e)}));var d,c=!n,h=[{label:"tooltip-muteButton",value:"M"},{label:"tooltip-fullscreenButton",value:"F"},{label:"Volume Up",icon:yr},{label:"Volume Down",icon:yr,iconTransform:"rotate(180deg)"},{label:"tooltip-rewindVideo",icon:yr,iconTransform:"rotate(270deg)"},{label:"tooltip-forwardVideo",icon:yr,iconTransform:"rotate(90deg)"},{label:"tooltip-decreasePlaybackRate",value:"<"},{label:"tooltip-increasePlaybackRate",value:">"},{label:"tooltip-playPauseButton",icon:kr,large:!0},{label:"tooltip-subtitleButton",value:"C"}];return e.$$.update=function(){1&e.$$.dirty&&(c?(u.set(!1),l.updatePlayout({disableKeyboardControls:"false"})):(u.set(!0),l.updatePlayout({disableKeyboardControls:"true"})))},[c,d,a,o,r,u,h,function(e){i(0,c=e)},function(t){Ie.call(this,e,t)},function(t){Ie.call(this,e,t)},function(e){De[e?"unshift":"push"]((function(){i(1,d=e)}))}]}var Mr=function(e){l.default(i,e);var t=u.default(i);function i(e){var n;return a.default(this,i),n=t.call(this),ut(d.default(n),e,Er,Dr,C,{},Pr),c.default(n)}return i}(dt);function Br(e){N(e,"svelte-8zag6l","@keyframes svelte-8zag6l-fadetext{0%{opacity:0}20%{opacity:1}}@keyframes svelte-8zag6l-fadein{0%{opacity:0;transform:scale(0)}20%{opacity:1}40%{transform:scale(1)}}.center-controls.svelte-8zag6l.svelte-8zag6l.svelte-8zag6l.svelte-8zag6l{display:flex;align-items:center;gap:var(--gap-size)}@supports (-webkit-touch-callout: none) and (not (translate: none)){.center-controls.svelte-8zag6l>.svelte-8zag6l+.svelte-8zag6l.svelte-8zag6l{margin-left:var(--gap-size)}}.center-controls.svelte-8zag6l .background.svelte-8zag6l.svelte-8zag6l.svelte-8zag6l{background-color:rgba(33, 33, 33, 0.5);position:absolute;border-radius:50%;top:0;right:0;bottom:0;left:0}.center-controls.svelte-8zag6l .center-button-container.svelte-8zag6l.svelte-8zag6l.svelte-8zag6l{width:var(--size);height:var(--size)}.center-controls.svelte-8zag6l .center-button-container .fade.svelte-8zag6l.svelte-8zag6l.svelte-8zag6l{opacity:1;transition:opacity 0.5s ease-in-out;animation:svelte-8zag6l-fadein 0.6s ease-in-out;position:relative;width:100%;height:100%;display:flex;justify-content:center;align-items:center}.center-controls.svelte-8zag6l .center-button-container .fade.fade-out.svelte-8zag6l.svelte-8zag6l.svelte-8zag6l{opacity:0}.center-controls.svelte-8zag6l .center-button-container .fade.text.svelte-8zag6l.svelte-8zag6l.svelte-8zag6l{animation:svelte-8zag6l-fadetext 0.6s ease-in-out}.center-controls.svelte-8zag6l .center-button-container .fade.svelte-8zag6l svg{width:40%;height:40%;z-index:1}.center-controls.svelte-8zag6l .center-button-container .text-feedback.svelte-8zag6l.svelte-8zag6l.svelte-8zag6l{position:absolute;top:var(--offset-top);display:flex;justify-content:center}.center-controls.svelte-8zag6l .center-button-container .text-feedback .text-content.svelte-8zag6l.svelte-8zag6l.svelte-8zag6l{flex-shrink:0;background-color:rgba(33, 33, 33, 0.5);border-radius:1em;padding:0.5em 0.8em 0.5em 0.5em;display:flex;align-items:center;gap:0.5em;font-size:0.9em}@supports (-webkit-touch-callout: none) and (not (translate: none)){.center-controls.svelte-8zag6l .center-button-container .text-feedback .text-content.svelte-8zag6l>.svelte-8zag6l+.svelte-8zag6l{margin-left:0.5em}}.center-controls.svelte-8zag6l .center-button-container .text-feedback.svelte-8zag6l svg{width:1em;height:1em}.center-controls.svelte-8zag6l .playback.svelte-8zag6l.svelte-8zag6l.svelte-8zag6l{padding:1em;display:flex;justify-content:center;align-items:center;gap:0.25em}@supports (-webkit-touch-callout: none) and (not (translate: none)){}.center-controls.svelte-8zag6l .playback.playback-decrease.svelte-8zag6l.svelte-8zag6l.svelte-8zag6l{transform:rotate(180deg)}.center-controls.svelte-8zag6l .left-right-spacer-container.svelte-8zag6l.svelte-8zag6l.svelte-8zag6l{width:2.4em;height:2.4em}.center-controls.svelte-8zag6l .left-right-button-container.svelte-8zag6l.svelte-8zag6l.svelte-8zag6l{width:calc(var(--icon-height) + 2.25em);height:calc(var(--icon-height) + 2.25em)}.center-controls.svelte-8zag6l .left-right-button-container.left .caret.svelte-8zag6l.svelte-8zag6l.svelte-8zag6l{transform:rotate(180deg)}.center-controls.svelte-8zag6l .left-right-button-container .left-right-content.svelte-8zag6l.svelte-8zag6l.svelte-8zag6l{position:relative;animation:svelte-8zag6l-fadein 0.6s ease-in-out;height:100%;display:flex;flex-direction:column;justify-content:center}.center-controls.svelte-8zag6l .left-right-button-container .left-right-content .caret.svelte-8zag6l.svelte-8zag6l.svelte-8zag6l{gap:2px;display:flex;justify-content:center;align-items:center}@supports (-webkit-touch-callout: none) and (not (translate: none)){}.center-controls.svelte-8zag6l .left-right-button-container .left-right-content .caret.svelte-8zag6l svg{width:calc(var(--icon-height) * 0.4);height:calc(var(--icon-height) * 0.4);padding:0.2em 0;display:inline-flex;justify-content:center}.center-controls.svelte-8zag6l .left-right-button-container .left-right-content .time.svelte-8zag6l.svelte-8zag6l.svelte-8zag6l{margin-top:0.5em;text-align:center;font-size:0.9em}.center-controls.svelte-8zag6l .left-right-button-container .left-right-content .background.svelte-8zag6l.svelte-8zag6l.svelte-8zag6l{top:-0.5em;right:-0.5em;bottom:-0.5em;left:-0.5em}.center-controls.skinsize-XS.svelte-8zag6l .left-right-button-container.svelte-8zag6l.svelte-8zag6l.svelte-8zag6l{width:24px;height:24px;margin:12px}.center-controls.skinsize-XS.svelte-8zag6l .left-right-button-container .time.svelte-8zag6l.svelte-8zag6l.svelte-8zag6l{font-size:0.6em}")}function Lr(e){var t,i,n,a,s,o,r,l,u,d,c,h,p,_,m=kt(e[0])+"";return s=new Ci({props:{animationDelay:"0s",animationDuration:"0.15s"}}),r=new Ci({props:{animationDelay:"0.05s",animationDuration:"0.15s"}}),u=new Ci({props:{animationDelay:"0.1s",animationDuration:"0.15s"}}),{c:function(){t=Y("div"),i=Y("div"),n=ee(),a=Y("div"),st(s.$$.fragment),o=ee(),st(r.$$.fragment),l=ee(),st(u.$$.fragment),d=ee(),c=Y("div"),h=Z(m),se(i,"class","background svelte-8zag6l"),se(a,"class","caret svelte-8zag6l"),se(c,"class","time svelte-8zag6l"),se(t,"class","left-right-content svelte-8zag6l")},m:function(e,p){J(e,t,p),F(t,i),F(t,n),F(t,a),ot(s,a,null),F(a,o),ot(r,a,null),F(a,l),ot(u,a,null),F(t,d),F(t,c),F(c,h),_=!0},p:function(e,t){(!_||1&t[0])&&m!==(m=kt(e[0])+"")&&le(h,m)},i:function(e){_||(Ye(s.$$.fragment,e),Ye(r.$$.fragment,e),Ye(u.$$.fragment,e),p&&p.end(1),_=!0)},o:function(e){Xe(s.$$.fragment,e),Xe(r.$$.fragment,e),Xe(u.$$.fragment,e),p=tt(t,Ft,{}),_=!1},d:function(e){e&&Q(t),rt(s),rt(r),rt(u),e&&p&&p.end()}}}function Rr(e){var t,i,n,a=!e[3]&&Hr(e),s=e[3]&&Ur(e);return{c:function(){a&&a.c(),t=ee(),s&&s.c(),i=te()},m:function(e,o){a&&a.m(e,o),J(e,t,o),s&&s.m(e,o),J(e,i,o),n=!0},p:function(e,n){e[3]?a&&(Qe(),Xe(a,1,1,(function(){a=null})),Ke()):a?(a.p(e,n),8&n[0]&&Ye(a,1)):((a=Hr(e)).c(),Ye(a,1),a.m(t.parentNode,t)),e[3]?s?(s.p(e,n),8&n[0]&&Ye(s,1)):((s=Ur(e)).c(),Ye(s,1),s.m(i.parentNode,i)):s&&(Qe(),Xe(s,1,1,(function(){s=null})),Ke())},i:function(e){n||(Ye(a),Ye(s),n=!0)},o:function(e){Xe(a),Xe(s),n=!1},d:function(e){e&&(Q(t),Q(i)),a&&a.d(e),s&&s.d(e)}}}function Hr(e){var t,i,n,a,s,o,r,l,u=function(e,t){return 4&t[0]&&(a=null),4&t[0]&&(s=null),"play"===e[2]?0:"pause"===e[2]?1:(null==a&&(a=!!["Volume Up","Volume Down","Volume On"].includes(e[2])),a?2:"Volume Off"===e[2]?3:"Subtitles on"===e[2]?4:"Subtitles off"===e[2]?5:(null==s&&(s=!!["Decreased playback speed","Increased playback speed"].includes(e[2])),s?6:-1))},d=[Nr,Fr,jr,Vr,zr,Or,qr],c=[];return~(o=u(e,[-1,-1]))&&(r=c[o]=d[o](e)),{c:function(){t=Y("div"),i=Y("div"),n=ee(),r&&r.c(),se(i,"class","background svelte-8zag6l"),se(t,"class","fade svelte-8zag6l"),he(t,"fade-out",e[5])},m:function(e,a){J(e,t,a),F(t,i),F(t,n),~o&&c[o].m(t,null),l=!0},p:function(e,i){var n=o;(o=u(e,i))===n?~o&&c[o].p(e,i):(r&&(Qe(),Xe(c[n],1,1,(function(){c[n]=null})),Ke()),~o?((r=c[o])?r.p(e,i):(r=c[o]=d[o](e)).c(),Ye(r,1),r.m(t,null)):r=null),(!l||32&i[0])&&he(t,"fade-out",e[5])},i:function(e){l||(Ye(r),l=!0)},o:function(e){Xe(r),l=!1},d:function(e){e&&Q(t),~o&&c[o].d()}}}function qr(e){var t,i,n,a,s;return i=new Dn({}),a=new Dn({}),{c:function(){t=Y("div"),st(i.$$.fragment),n=ee(),st(a.$$.fragment),se(t,"class","playback svelte-8zag6l"),he(t,"playback-decrease","Decreased playback speed"===e[2])},m:function(e,o){J(e,t,o),ot(i,t,null),F(t,n),ot(a,t,null),s=!0},p:function(e,i){(!s||4&i[0])&&he(t,"playback-decrease","Decreased playback speed"===e[2])},i:function(e){s||(Ye(i.$$.fragment,e),Ye(a.$$.fragment,e),s=!0)},o:function(e){Xe(i.$$.fragment,e),Xe(a.$$.fragment,e),s=!1},d:function(e){e&&Q(t),rt(i),rt(a)}}}function Or(e){var t,i;return t=new hn({}),{c:function(){st(t.$$.fragment)},m:function(e,n){ot(t,e,n),i=!0},p:v,i:function(e){i||(Ye(t.$$.fragment,e),i=!0)},o:function(e){Xe(t.$$.fragment,e),i=!1},d:function(e){rt(t,e)}}}function zr(e){var t,i;return t=new Qs({}),{c:function(){st(t.$$.fragment)},m:function(e,n){ot(t,e,n),i=!0},p:v,i:function(e){i||(Ye(t.$$.fragment,e),i=!0)},o:function(e){Xe(t.$$.fragment,e),i=!1},d:function(e){rt(t,e)}}}function Vr(e){var t,i;return t=new zn({}),{c:function(){st(t.$$.fragment)},m:function(e,n){ot(t,e,n),i=!0},p:v,i:function(e){i||(Ye(t.$$.fragment,e),i=!0)},o:function(e){Xe(t.$$.fragment,e),i=!1},d:function(e){rt(t,e)}}}function jr(e){var t,i;return t=new qn({}),{c:function(){st(t.$$.fragment)},m:function(e,n){ot(t,e,n),i=!0},p:v,i:function(e){i||(Ye(t.$$.fragment,e),i=!0)},o:function(e){Xe(t.$$.fragment,e),i=!1},d:function(e){rt(t,e)}}}function Fr(e){var t,i;return t=new Bn({}),{c:function(){st(t.$$.fragment)},m:function(e,n){ot(t,e,n),i=!0},p:v,i:function(e){i||(Ye(t.$$.fragment,e),i=!0)},o:function(e){Xe(t.$$.fragment,e),i=!1},d:function(e){rt(t,e)}}}function Nr(e){var t,i;return t=new Dn({props:{center:!0}}),{c:function(){st(t.$$.fragment)},m:function(e,n){ot(t,e,n),i=!0},p:v,i:function(e){i||(Ye(t.$$.fragment,e),i=!0)},o:function(e){Xe(t.$$.fragment,e),i=!1},d:function(e){rt(t,e)}}}function Ur(e){var t,i,n,a,s,o,r,l=function(e,t){return 4&t[0]&&(n=null),4&t[0]&&(a=null),null==n&&(n=!!["Volume Up","Volume Down","Volume On"].includes(e[2])),n?0:"Volume Off"===e[2]?1:"Subtitles on"===e[2]?2:"Subtitles off"===e[2]?3:(null==a&&(a=!!["Decreased playback speed","Increased playback speed"].includes(e[2])),a?4:-1)},u=[Kr,Qr,Jr,Gr,Wr],d=[];return~(s=l(e,[-1,-1]))&&(o=d[s]=u[s](e)),{c:function(){t=Y("div"),i=Y("div"),o&&o.c(),se(i,"class","text-feedback svelte-8zag6l"),de(i,"--offset-top",Math.round((e[11]-52)/4*-1)+"px"),se(t,"class","fade text svelte-8zag6l"),he(t,"fade-out",e[5])},m:function(e,n){J(e,t,n),F(t,i),~s&&d[s].m(i,null),r=!0},p:function(e,n){var a=s;(s=l(e,n))===a?~s&&d[s].p(e,n):(o&&(Qe(),Xe(d[a],1,1,(function(){d[a]=null})),Ke()),~s?((o=d[s])?o.p(e,n):(o=d[s]=u[s](e)).c(),Ye(o,1),o.m(i,null)):o=null),2048&n[0]&&de(i,"--offset-top",Math.round((e[11]-52)/4*-1)+"px"),(!r||32&n[0])&&he(t,"fade-out",e[5])},i:function(e){r||(Ye(o),r=!0)},o:function(e){Xe(o),r=!1},d:function(e){e&&Q(t),~s&&d[s].d()}}}function Wr(e){var t,i,n,a,s,o,r,l,u;return n=new Dn({}),s=new Dn({}),{c:function(){t=Y("div"),i=Y("div"),st(n.$$.fragment),a=ee(),st(s.$$.fragment),o=ee(),r=Y("span"),l=Z(e[4]),se(i,"class","playback svelte-8zag6l"),he(i,"playback-decrease","Decreased playback speed"===e[2]),se(r,"class","svelte-8zag6l"),se(t,"class","text-content svelte-8zag6l")},m:function(e,d){J(e,t,d),F(t,i),ot(n,i,null),F(i,a),ot(s,i,null),F(t,o),F(t,r),F(r,l),u=!0},p:function(e,t){(!u||4&t[0])&&he(i,"playback-decrease","Decreased playback speed"===e[2]),(!u||16&t[0])&&le(l,e[4])},i:function(e){u||(Ye(n.$$.fragment,e),Ye(s.$$.fragment,e),u=!0)},o:function(e){Xe(n.$$.fragment,e),Xe(s.$$.fragment,e),u=!1},d:function(e){e&&Q(t),rt(n),rt(s)}}}function Gr(e){var t,i,n,a,s,o;return i=new hn({}),{c:function(){t=Y("div"),st(i.$$.fragment),n=ee(),a=Y("span"),s=Z(e[4]),se(t,"class","text-content svelte-8zag6l")},m:function(e,r){J(e,t,r),ot(i,t,null),F(t,n),F(t,a),F(a,s),o=!0},p:function(e,t){(!o||16&t[0])&&le(s,e[4])},i:function(e){o||(Ye(i.$$.fragment,e),o=!0)},o:function(e){Xe(i.$$.fragment,e),o=!1},d:function(e){e&&Q(t),rt(i)}}}function Jr(e){var t,i,n,a,s,o;return i=new Qs({}),{c:function(){t=Y("div"),st(i.$$.fragment),n=ee(),a=Y("span"),s=Z(e[4]),se(t,"class","text-content svelte-8zag6l")},m:function(e,r){J(e,t,r),ot(i,t,null),F(t,n),F(t,a),F(a,s),o=!0},p:function(e,t){(!o||16&t[0])&&le(s,e[4])},i:function(e){o||(Ye(i.$$.fragment,e),o=!0)},o:function(e){Xe(i.$$.fragment,e),o=!1},d:function(e){e&&Q(t),rt(i)}}}function Qr(e){var t,i,n,a,s;return i=new zn({}),{c:function(){t=Y("div"),st(i.$$.fragment),n=Y("span"),a=Z(e[4]),se(t,"class","text-content svelte-8zag6l")},m:function(e,o){J(e,t,o),ot(i,t,null),F(t,n),F(n,a),s=!0},p:function(e,t){(!s||16&t[0])&&le(a,e[4])},i:function(e){s||(Ye(i.$$.fragment,e),s=!0)},o:function(e){Xe(i.$$.fragment,e),s=!1},d:function(e){e&&Q(t),rt(i)}}}function Kr(e){var t,i,n,a,s,o;return i=new qn({}),{c:function(){t=Y("div"),st(i.$$.fragment),n=ee(),a=Y("span"),s=Z(e[4]),se(t,"class","text-content svelte-8zag6l")},m:function(e,r){J(e,t,r),ot(i,t,null),F(t,n),F(t,a),F(a,s),o=!0},p:function(e,t){(!o||16&t[0])&&le(s,e[4])},i:function(e){o||(Ye(i.$$.fragment,e),o=!0)},o:function(e){Xe(i.$$.fragment,e),o=!1},d:function(e){e&&Q(t),rt(i)}}}function Yr(e){var t,i,n,a,s,o,r,l,u,d,c,h,p,_,m=kt(e[1])+"";return s=new Ci({props:{animationDelay:"0s",animationDuration:"0.15s"}}),r=new Ci({props:{animationDelay:"0.05s",animationDuration:"0.15s"}}),u=new Ci({props:{animationDelay:"0.1s",animationDuration:"0.15s"}}),{c:function(){t=Y("div"),i=Y("div"),n=ee(),a=Y("div"),st(s.$$.fragment),o=ee(),st(r.$$.fragment),l=ee(),st(u.$$.fragment),d=ee(),c=Y("div"),h=Z(m),se(i,"class","background svelte-8zag6l"),se(a,"class","caret svelte-8zag6l"),se(c,"class","time svelte-8zag6l"),se(t,"class","left-right-content svelte-8zag6l")},m:function(e,p){J(e,t,p),F(t,i),F(t,n),F(t,a),ot(s,a,null),F(a,o),ot(r,a,null),F(a,l),ot(u,a,null),F(t,d),F(t,c),F(c,h),_=!0},p:function(e,t){(!_||2&t[0])&&m!==(m=kt(e[1])+"")&&le(h,m)},i:function(e){_||(Ye(s.$$.fragment,e),Ye(r.$$.fragment,e),Ye(u.$$.fragment,e),p&&p.end(1),_=!0)},o:function(e){Xe(s.$$.fragment,e),Xe(r.$$.fragment,e),Xe(u.$$.fragment,e),p=tt(t,Ft,{}),_=!1},d:function(e){e&&Q(t),rt(s),rt(r),rt(u),e&&p&&p.end()}}}function Xr(e){var t,i,n,a,s,o,r,l,u,d,c,h,p=e[0]>0&&Lr(e),_=e[2]&&Rr(e),m=e[1]>0&&Yr(e);return{c:function(){t=Y("div"),i=Y("div"),p&&p.c(),n=ee(),(a=Y("div")).innerHTML="",s=ee(),o=Y("div"),_&&_.c(),r=ee(),(l=Y("div")).innerHTML="",u=ee(),d=Y("div"),m&&m.c(),se(i,"class","left-right-button-container left svelte-8zag6l"),se(a,"class","left-right-spacer-container svelte-8zag6l"),se(o,"class","center-button-container svelte-8zag6l"),de(o,"--size",2*e[9]+e[10]+"px"),se(l,"class","left-right-spacer-container svelte-8zag6l"),se(d,"class","left-right-button-container right svelte-8zag6l"),se(t,"class",c="center-controls skinsize-"+e[6]+" svelte-8zag6l"),de(t,"--gap-size",e[7]+"px"),de(t,"--icon-height",Math.round(e[8]/1.667)+"px")},m:function(e,c){J(e,t,c),F(t,i),p&&p.m(i,null),F(t,n),F(t,a),F(t,s),F(t,o),_&&_.m(o,null),F(t,r),F(t,l),F(t,u),F(t,d),m&&m.m(d,null),h=!0},p:function(e,n){e[0]>0?p?(p.p(e,n),1&n[0]&&Ye(p,1)):((p=Lr(e)).c(),Ye(p,1),p.m(i,null)):p&&(Qe(),Xe(p,1,1,(function(){p=null})),Ke()),e[2]?_?(_.p(e,n),4&n[0]&&Ye(_,1)):((_=Rr(e)).c(),Ye(_,1),_.m(o,null)):_&&(Qe(),Xe(_,1,1,(function(){_=null})),Ke()),1536&n[0]&&de(o,"--size",2*e[9]+e[10]+"px"),e[1]>0?m?(m.p(e,n),2&n[0]&&Ye(m,1)):((m=Yr(e)).c(),Ye(m,1),m.m(d,null)):m&&(Qe(),Xe(m,1,1,(function(){m=null})),Ke()),(!h||64&n[0]&&c!==(c="center-controls skinsize-"+e[6]+" svelte-8zag6l"))&&se(t,"class",c),128&n[0]&&de(t,"--gap-size",e[7]+"px"),256&n[0]&&de(t,"--icon-height",Math.round(e[8]/1.667)+"px")},i:function(e){h||(Ye(p),Ye(_),Ye(m),h=!0)},o:function(e){Xe(p),Xe(_),Xe(m),h=!1},d:function(e){e&&Q(t),p&&p.d(),_&&_.d(),m&&m.d()}}}function Zr(e,t,i){var n,a,s,o,r,l,u,d,c,h=function(e){clearTimeout(O),clearTimeout(H),i(5,q=!1),e!==R&&V.filter((function(t){return!(t.includes(e)&&t.includes(R))})).length===V.length&&i(2,R=""),setTimeout((function(){T("bigPlayButton")?i(3,x=!1):D()?i(3,x=!0):i(3,x=!1),i(2,R=e),x&&(["Increased playback speed","Decreased playback speed"].includes(R)?i(4,I=m.getPlaybackRate()+"x"):i(4,I=f(R)))}),10),H=setTimeout((function(){i(5,q=!0),O=setTimeout((function(){i(5,q=!1),i(2,R="")}),500)}),1e3)},p=function(e){"left"===e?(clearTimeout(M),i(0,E+=10),M=setTimeout((function(){i(0,E=0),M=0}),500)):(clearTimeout(L),i(1,B+=10),L=setTimeout((function(){i(1,B=0),L=0}),500))},_=Ae(zt),m=_.api,f=_.translate,v=_.activeSubtitleId,g=_.playerHeight,y=_.playing,b=_.subtitlesList,k=_.keyPressed,w=_.bigIconSize,$=_.skinSize,C=_.gapSize,S=_.centerButtonBgSize,P=_.centerButtonBorderWidth;A(e,v,(function(e){return i(27,n=e)})),A(e,g,(function(e){return i(11,c=e)})),A(e,y,(function(e){return i(29,s=e)})),A(e,b,(function(e){return i(28,a=e)})),A(e,w,(function(e){return i(8,l=e)})),A(e,$,(function(e){return i(6,o=e)})),A(e,C,(function(e){return i(7,r=e)})),A(e,S,(function(e){return i(10,d=e)})),A(e,P,(function(e){return i(9,u=e)}));var x,I,T=t.iStyle,D=t.controlsVisible,E=0,M=0,B=0,L=0,R="",H=0,q=!1,O=0,z=[];Se((function(){z.forEach((function(e){return e()}))})),z.push(k.subscribe((function(e){if(e){switch(e){case"space":h(s?"pause":"play");break;case"up":h("Volume Up");break;case"down":h(m.getMuted()?"Volume Off":"Volume Down");break;case"m":h(null!=m&&m.getMuted()?"Volume On":"Volume Off");break;case"c":if(null==a||!a.length)break;h("-1"!==n?"Subtitles off":"Subtitles on");break;case">":h("Increased playback speed");break;case"<":h("Decreased playback speed");break;case"left":p("left");break;case"right":p("right")}k.set("")}})));var V=[["Volume On","Volume Off"],["Volume Up","Volume Down"],["Subtitles on","Subtitles off"],["play","pause"],["Increased playback speed","Decreased playback speed"]];return e.$$set=function(e){"iStyle"in e&&i(21,T=e.iStyle),"controlsVisible"in e&&i(22,D=e.controlsVisible)},[E,B,R,x,I,q,o,r,l,u,d,c,v,g,y,b,w,$,C,S,P,T,D]}var el=function(e){l.default(i,e);var t=u.default(i);function i(e){var n;return a.default(this,i),n=t.call(this),ut(d.default(n),e,Zr,Xr,C,{iStyle:21,controlsVisible:22},Br,[-1,-1]),c.default(n)}return i}(dt);function tl(e){var t,i,n;return{c:function(){t=X("svg"),i=X("path"),n=X("path"),se(i,"d","M20.173 8.039c5.206-.959 10.584.041 15.096 2.809s7.842 7.107 9.347 12.183 1.079 10.529-1.195 15.309-6.237 8.551-11.124 10.585-10.355 2.188-15.349.433-9.163-5.296-11.704-9.941S1.972 29.352 3.189 24.2s4.296-9.673 8.646-12.69m8.339-3.47l5.77-5.822m-5.77 5.822l5.756 5.608"),se(i,"stroke","#fff"),se(i,"stroke-width","4"),se(i,"stroke-linecap","round"),se(i,"stroke-linejoin","round"),se(n,"d","M13.918 35.76h2.8v-7.35l.03-1.13-1.65 1.37c-.107.087-.213.15-.32.19a1.04 1.04 0 0 1-.31.05c-.173 0-.33-.037-.47-.11-.133-.08-.233-.163-.3-.25l-.98-1.3 4.54-3.81h2.56v12.34h2.4V38h-8.3v-2.24zM34.2 30.71c0 1.273-.137 2.377-.41 3.31s-.653 1.707-1.14 2.32c-.48.613-1.053 1.07-1.72 1.37-.66.3-1.377.45-2.15.45s-1.49-.15-2.15-.45c-.653-.3-1.22-.757-1.7-1.37s-.857-1.387-1.13-2.32c-.267-.933-.4-2.037-.4-3.31s.133-2.377.4-3.31c.273-.933.65-1.707 1.13-2.32s1.047-1.067 1.7-1.36c.66-.3 1.377-.45 2.15-.45s1.49.15 2.15.45c.667.293 1.24.747 1.72 1.36.487.613.867 1.387 1.14 2.32s.41 2.037.41 3.31zm-3.2 0c0-1.007-.063-1.83-.19-2.47-.127-.647-.297-1.153-.51-1.52-.207-.367-.443-.617-.71-.75-.267-.14-.537-.21-.81-.21s-.543.07-.81.21c-.26.133-.493.383-.7.75-.2.367-.363.873-.49 1.52-.12.64-.18 1.463-.18 2.47 0 1.013.06 1.84.18 2.48.127.64.29 1.147.49 1.52.207.367.44.62.7.76.267.133.537.2.81.2s.543-.067.81-.2c.267-.14.503-.393.71-.76.213-.373.383-.88.51-1.52s.19-1.467.19-2.48z"),se(n,"fill","#fff"),se(t,"xmlns","http://www.w3.org/2000/svg"),se(t,"viewBox","0 0 48 54"),se(t,"fill","none")},m:function(e,a){J(e,t,a),F(t,i),F(t,n)},p:v,i:v,o:v,d:function(e){e&&Q(t)}}}var il=function(e){l.default(i,e);var t=u.default(i);function i(e){var n;return a.default(this,i),n=t.call(this),ut(d.default(n),e,null,tl,C,{}),c.default(n)}return i}(dt);function nl(e){var t,i,n;return{c:function(){t=X("svg"),i=X("path"),n=X("path"),se(i,"d","M27.927 8.037c-5.207-.955-10.584.049-15.094 2.82s-7.837 7.113-9.338 12.19S2.422 33.577 4.7 38.356s6.243 8.546 11.132 10.577 10.357 2.181 15.35.422 9.159-5.303 11.696-9.95 3.265-10.067 2.045-15.219-4.303-9.669-8.655-12.684m-8.341-3.464l-5.774-5.818m5.774 5.818l-5.752 5.612"),se(i,"stroke","#fff"),se(i,"stroke-width","4"),se(i,"stroke-linecap","round"),se(i,"stroke-linejoin","round"),se(n,"d","M14.918 35.76h2.8v-7.35l.03-1.13-1.65 1.37c-.107.087-.213.15-.32.19a1.04 1.04 0 0 1-.31.05c-.173 0-.33-.037-.47-.11-.133-.08-.233-.163-.3-.25l-.98-1.3 4.54-3.81h2.56v12.34h2.4V38h-8.3v-2.24zM35.2 30.71c0 1.273-.137 2.377-.41 3.31s-.653 1.707-1.14 2.32c-.48.613-1.053 1.07-1.72 1.37-.66.3-1.377.45-2.15.45s-1.49-.15-2.15-.45c-.653-.3-1.22-.757-1.7-1.37s-.857-1.387-1.13-2.32c-.267-.933-.4-2.037-.4-3.31s.133-2.377.4-3.31c.273-.933.65-1.707 1.13-2.32s1.047-1.067 1.7-1.36c.66-.3 1.377-.45 2.15-.45s1.49.15 2.15.45c.667.293 1.24.747 1.72 1.36.487.613.867 1.387 1.14 2.32s.41 2.037.41 3.31zm-3.2 0c0-1.007-.063-1.83-.19-2.47-.127-.647-.297-1.153-.51-1.52-.207-.367-.443-.617-.71-.75-.267-.14-.537-.21-.81-.21s-.543.07-.81.21c-.26.133-.493.383-.7.75-.2.367-.363.873-.49 1.52-.12.64-.18 1.463-.18 2.47 0 1.013.06 1.84.18 2.48.127.64.29 1.147.49 1.52.207.367.44.62.7.76.267.133.537.2.81.2s.543-.067.81-.2c.267-.14.503-.393.71-.76.213-.373.383-.88.51-1.52s.19-1.467.19-2.48z"),se(n,"fill","#fff"),se(t,"xmlns","http://www.w3.org/2000/svg"),se(t,"viewBox","0 0 48 54"),se(t,"fill","none")},m:function(e,a){J(e,t,a),F(t,i),F(t,n)},p:v,i:v,o:v,d:function(e){e&&Q(t)}}}var al=function(e){l.default(i,e);var t=u.default(i);function i(e){var n;return a.default(this,i),n=t.call(this),ut(d.default(n),e,null,nl,C,{}),c.default(n)}return i}(dt);function sl(e){var t,i;return{c:function(){t=X("svg"),se(i=X("path"),"fill-rule","evenodd"),se(i,"d","M57 114c31.48 0 57-25.52 57-57S88.48 0 57 0 0 25.52 0 57s25.52 57 57 57zm7.038-81.617a26.47 26.47 0 0 0-16.806 1.09c-2.864 1.173-5.478 2.832-7.733 4.885v-1.721a4.5 4.5 0 1 0-9 0v12.161c0 3.098 2.526 5.524 5.535 5.524H47a4.5 4.5 0 1 0 0-9h-1.771a17.26 17.26 0 0 1 5.415-3.521 17.47 17.47 0 0 1 11.089-.718c3.676.974 6.914 3.118 9.219 6.088s3.548 6.6 3.548 10.33-1.244 7.361-3.548 10.33-5.543 5.114-9.219 6.088a17.47 17.47 0 0 1-11.089-.718c-3.513-1.439-6.438-3.98-8.328-7.218a4.5 4.5 0 1 0-7.772 4.538c2.895 4.959 7.359 8.825 12.689 11.009a26.47 26.47 0 0 0 16.806 1.09c5.57-1.476 10.502-4.731 14.024-9.27S83.5 63.236 83.5 57.5s-1.914-11.307-5.438-15.847-8.454-7.794-14.024-9.27z"),se(i,"fill","#fff"),se(t,"xmlns","http://www.w3.org/2000/svg"),se(t,"viewBox","0 0 114 114"),se(t,"fill","none")},m:function(e,n){J(e,t,n),F(t,i)},p:v,i:v,o:v,d:function(e){e&&Q(t)}}}var ol=function(e){l.default(i,e);var t=u.default(i);function i(e){var n;return a.default(this,i),n=t.call(this),ut(d.default(n),e,null,sl,C,{}),c.default(n)}return i}(dt);function rl(e){var t,i;return{c:function(){t=X("svg"),se(i=X("path"),"fill-rule","evenodd"),se(i,"d","M57 114c31.48 0 57-25.52 57-57S88.48 0 57 0 0 25.52 0 57s25.52 57 57 57zm26-56.996c0-1.79-.929-3.451-2.456-4.394L49.798 33.755a5.11 5.11 0 0 0-5.179-.098A5.15 5.15 0 0 0 42 38.144v37.721a5.15 5.15 0 0 0 2.618 4.49 4.91 4.91 0 0 0 5.179-.193l30.747-18.86C82.071 60.455 83 58.794 83 57.004z"),se(i,"fill","#fff"),se(t,"xmlns","http://www.w3.org/2000/svg"),se(t,"viewBox","0 0 114 115"),se(t,"fill","none")},m:function(e,n){J(e,t,n),F(t,i)},p:v,i:v,o:v,d:function(e){e&&Q(t)}}}var ll=function(e){l.default(i,e);var t=u.default(i);function i(e){var n;return a.default(this,i),n=t.call(this),ut(d.default(n),e,null,rl,C,{}),c.default(n)}return i}(dt);function ul(e){var t,i;return{c:function(){t=X("svg"),se(i=X("path"),"fill-rule","evenodd"),se(i,"d","M57 114c31.48 0 57-25.52 57-57S88.48 0 57 0 0 25.52 0 57s25.52 57 57 57zm10.75-81h4.1c3.395 0 6.15 2.792 6.15 6.098v35.916C78 78.32 75.247 81 71.85 81l-4.1-.225c-3.397 0-6.15-2.68-6.15-5.986V38.874C61.6 35.68 64.353 33 67.75 33zm-24.6 0h4.1c3.395 0 6.15 2.792 6.15 6.098v35.916C53.4 78.32 50.647 81 47.25 81h-4.1C39.753 81 37 78.319 37 74.902V38.986C37 35.68 39.753 33 43.15 33z"),se(i,"fill","#fff"),se(t,"xmlns","http://www.w3.org/2000/svg"),se(t,"viewBox","0 0 114 115"),se(t,"fill","none")},m:function(e,n){J(e,t,n),F(t,i)},p:v,i:v,o:v,d:function(e){e&&Q(t)}}}var dl=function(e){l.default(i,e);var t=u.default(i);function i(e){var n;return a.default(this,i),n=t.call(this),ut(d.default(n),e,null,ul,C,{}),c.default(n)}return i}(dt);function cl(e){var t,i;return{c:function(){t=X("svg"),se(i=X("path"),"d","M22.43 32.31c1.38 0 2.43-1.036 2.43-2.313V6.94c0-1.277-1.12-2.312-2.5-2.312s-2.43 1.036-2.43 2.247v23.118c0 1.342 1.188 2.318 2.5 2.318zm-18.327-.47l15-11.497c.596-.465.893-1.122.893-1.779a2.25 2.25 0 0 0-.893-1.779l-15-11.497C2.491 3.923 0 4.962 0 6.94v23.118c0 1.978 2.491 3.018 4.102 1.783z"),se(i,"fill","#fff"),se(t,"xmlns","http://www.w3.org/2000/svg"),se(t,"viewBox","0 0 25 37"),se(t,"fill","none")},m:function(e,n){J(e,t,n),F(t,i)},p:v,i:v,o:v,d:function(e){e&&Q(t)}}}var hl=function(e){l.default(i,e);var t=u.default(i);function i(e){var n;return a.default(this,i),n=t.call(this),ut(d.default(n),e,null,cl,C,{}),c.default(n)}return i}(dt);function pl(e){var t,i;return{c:function(){t=X("svg"),se(i=X("path"),"d","M11.375 4.063c.896 0 1.625.729 1.625 1.625v5.688c0 .896-.729 1.625-1.625 1.625h-9.75C.727 13 0 12.271 0 11.375V5.688c0-.896.727-1.625 1.625-1.625h9.75zm0 1.219h-9.75c-.224 0-.406.183-.406.406v5.688c0 .223.182.406.406.406h9.75c.223 0 .406-.183.406-.406V5.688c0-.223-.183-.406-.406-.406zm-.203-3.25a.61.61 0 0 1 .609.609.61.61 0 0 1-.609.609H1.828a.61.61 0 0 1-.609-.609.61.61 0 0 1 .609-.609h9.344zM9.953 0a.61.61 0 0 1 .609.609.61.61 0 0 1-.609.609H3.047a.61.61 0 0 1-.609-.609A.61.61 0 0 1 3.047 0h6.906z"),se(i,"fill","#fff"),se(t,"xmlns","http://www.w3.org/2000/svg"),se(t,"viewBox","0 0 13 13"),se(t,"fill","none")},m:function(e,n){J(e,t,n),F(t,i)},p:v,i:v,o:v,d:function(e){e&&Q(t)}}}var _l=function(e){l.default(i,e);var t=u.default(i);function i(e){var n;return a.default(this,i),n=t.call(this),ut(d.default(n),e,null,pl,C,{}),c.default(n)}return i}(dt);function ml(e){N(e,"svelte-12zy474",".container.svelte-12zy474.svelte-12zy474.svelte-12zy474.svelte-12zy474{position:absolute;left:var(--margin-size);right:var(--margin-size);top:var(--margin-size);bottom:calc(var(--related-desired-height-img) + var(--bar-height) + var(--margin-size) * 2);display:flex;flex-direction:column;justify-content:center;align-items:center}.container.no-related.svelte-12zy474.svelte-12zy474.svelte-12zy474.svelte-12zy474{bottom:var(--margin-size)}.container.no-related.svelte-12zy474 .buttons.svelte-12zy474.svelte-12zy474.svelte-12zy474{margin-bottom:calc(12px + 0.75 * var(--margin-size))}.container.svelte-12zy474 .up-next-container.svelte-12zy474.svelte-12zy474.svelte-12zy474{display:flex;flex-direction:column;gap:calc(0.75 * var(--margin-size));justify-content:center;align-items:center;width:100%}@supports (-webkit-touch-callout: none) and (not (translate: none)){.container.svelte-12zy474 .up-next-container.svelte-12zy474>.svelte-12zy474+.svelte-12zy474{margin-left:calc(0.75 * var(--margin-size))}}.container.svelte-12zy474 .up-next-container .up-next.svelte-12zy474.svelte-12zy474.svelte-12zy474{font-size:1.2em}.container.svelte-12zy474 .up-next-container .up-next .time.svelte-12zy474.svelte-12zy474.svelte-12zy474{font-weight:bold}.container.svelte-12zy474 .up-next-container .title.svelte-12zy474.svelte-12zy474.svelte-12zy474{font-size:1.5em;max-width:75%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:normal}.container.svelte-12zy474 .up-next-container .countdown.svelte-12zy474.svelte-12zy474.svelte-12zy474{--stroke-width:4px;--circle-size:3em;font-size:2em;font-weight:bold;display:flex;flex-direction:column;align-items:center;gap:var(--margin-size);position:relative}@supports (-webkit-touch-callout: none) and (not (translate: none)){.container.svelte-12zy474 .up-next-container .countdown.svelte-12zy474>.svelte-12zy474+.svelte-12zy474{margin-left:var(--margin-size)}}.container.svelte-12zy474 .up-next-container .countdown .base-timer.svelte-12zy474.svelte-12zy474.svelte-12zy474{position:relative;height:var(--circle-size);width:var(--circle-size)}.container.svelte-12zy474 .up-next-container .countdown .base-timer .icon.svelte-12zy474.svelte-12zy474.svelte-12zy474{position:absolute;width:100%;height:100%;display:flex;justify-content:center;align-items:center}.container.svelte-12zy474 .up-next-container .countdown .base-timer .icon .action-button.svelte-12zy474.svelte-12zy474.svelte-12zy474{width:42px;height:42px}.container.svelte-12zy474 .up-next-container .countdown .base-timer .base-timer__circle.svelte-12zy474.svelte-12zy474.svelte-12zy474{fill:none}.container.svelte-12zy474 .up-next-container .countdown .base-timer .base-timer__path-bg.svelte-12zy474.svelte-12zy474.svelte-12zy474{stroke-width:var(--stroke-width);stroke:#777}.container.svelte-12zy474 .up-next-container .countdown .base-timer .base-timer__path-filler.svelte-12zy474.svelte-12zy474.svelte-12zy474{stroke-width:var(--stroke-width);stroke-linecap:round;transform:rotate(90deg);transform-origin:center;transition:0.2s linear all;stroke:currentColor}.container.svelte-12zy474 .up-next-container .countdown .base-timer .base-timer__svg.svelte-12zy474.svelte-12zy474.svelte-12zy474{transform:scale(-1, 1)}.container.svelte-12zy474 .up-next-container .countdown .buttons.svelte-12zy474.svelte-12zy474.svelte-12zy474{font-size:0.5em;display:flex;justify-content:center;gap:var(--margin-size)}@supports (-webkit-touch-callout: none) and (not (translate: none)){}.container.svelte-12zy474 .up-next-container .countdown .buttons .cancel .button.svelte-12zy474.svelte-12zy474.svelte-12zy474{line-height:1.2em;padding:0.6em 1.6em 0.6em 1.2em}.container.svelte-12zy474 .button.svelte-12zy474.svelte-12zy474.svelte-12zy474{display:flex;align-items:center;gap:0.6em}@supports (-webkit-touch-callout: none) and (not (translate: none)){}.container.mobile.svelte-12zy474.svelte-12zy474.svelte-12zy474.svelte-12zy474{bottom:var(--bar-height);top:10px}.container.mobile.svelte-12zy474 .up-next-container.svelte-12zy474.svelte-12zy474.svelte-12zy474,.container.mobile.svelte-12zy474 .countdown.svelte-12zy474.svelte-12zy474.svelte-12zy474{gap:calc(0.5 * var(--margin-size))}@supports (-webkit-touch-callout: none) and (not (translate: none)){.container.mobile.svelte-12zy474 .up-next-container.svelte-12zy474>.svelte-12zy474+.svelte-12zy474,.container.mobile.svelte-12zy474 .countdown.svelte-12zy474>.svelte-12zy474+.svelte-12zy474{margin-left:calc(0.5 * var(--margin-size))}}.container.mobile.no-progress-bar.svelte-12zy474.svelte-12zy474.svelte-12zy474.svelte-12zy474{flex-direction:column-reverse;margin-bottom:10px}.container.mobile.svelte-12zy474 .countdown .buttons.svelte-12zy474.svelte-12zy474.svelte-12zy474{font-size:0.5em}.container.mobile.svelte-12zy474 .countdown .buttons .cancel .button.svelte-12zy474.svelte-12zy474.svelte-12zy474{padding:6px 14px 6px 8px}.container.mobile.mobile-xs.svelte-12zy474 .countdown.svelte-12zy474.svelte-12zy474.svelte-12zy474{flex-direction:row-reverse;font-size:1em}.container.mobile.mobile-xs.svelte-12zy474 .countdown .buttons.svelte-12zy474.svelte-12zy474.svelte-12zy474{font-size:1em;margin-bottom:0}.container.mobile.mobile-xs.svelte-12zy474 .up-next-container.svelte-12zy474.svelte-12zy474.svelte-12zy474{gap:5px}@supports (-webkit-touch-callout: none) and (not (translate: none)){.container.mobile.mobile-xs.svelte-12zy474 .up-next-container.svelte-12zy474>.svelte-12zy474+.svelte-12zy474{margin-left:5px}}.container.mobile.mobile-xs.svelte-12zy474 .up-next.svelte-12zy474.svelte-12zy474.svelte-12zy474{font-size:0.8em}.container.mobile.mobile-xs.svelte-12zy474 .title.svelte-12zy474.svelte-12zy474.svelte-12zy474{font-size:1em}")}function fl(e){var t;return{c:function(){t=Z("Up next in")},m:function(e,i){J(e,t,i)},d:function(e){e&&Q(t)}}}function vl(e){var t,i,n;return i=new pi({props:{iconHeight:1.6*e[7],hoverTransform:"scale(1.1)",name:"pause",hideToolTip:!0,$$slots:{normal:[yl]},$$scope:{ctx:e}}}),{c:function(){t=Y("div"),st(i.$$.fragment)},m:function(e,a){J(e,t,a),ot(i,t,null),n=!0},p:function(e,t){var n={};128&t&&(n.iconHeight=1.6*e[7]),536870912&t&&(n.$$scope={dirty:t,ctx:e}),i.$set(n)},i:function(e){n||(Ye(i.$$.fragment,e),n=!0)},o:function(e){Xe(i.$$.fragment,e),n=!1},d:function(e){e&&Q(t),rt(i)}}}function gl(e){var t,i,n,a,s;return i=new pi({props:{iconHeight:2*e[7],hoverTransform:"scale(1.1)",name:"playNext",hideToolTip:!0,$$slots:{normal:[bl]},$$scope:{ctx:e}}}),{c:function(){t=Y("div"),st(i.$$.fragment),se(t,"class","action-button svelte-12zy474")},m:function(o,r){J(o,t,r),ot(i,t,null),n=!0,a||(s=ie(t,"click",e[25]),a=!0)},p:function(e,t){var n={};128&t&&(n.iconHeight=2*e[7]),536870912&t&&(n.$$scope={dirty:t,ctx:e}),i.$set(n)},i:function(e){n||(Ye(i.$$.fragment,e),n=!0)},o:function(e){Xe(i.$$.fragment,e),n=!1},d:function(e){e&&Q(t),rt(i),a=!1,s()}}}function yl(e){var t,i,n;return i=new Bn({}),{c:function(){t=Y("div"),st(i.$$.fragment),se(t,"slot","normal")},m:function(e,a){J(e,t,a),ot(i,t,null),n=!0},p:v,i:function(e){n||(Ye(i.$$.fragment,e),n=!0)},o:function(e){Xe(i.$$.fragment,e),n=!1},d:function(e){e&&Q(t),rt(i)}}}function bl(e){var t,i,n;return i=new hl({}),{c:function(){t=Y("div"),st(i.$$.fragment),se(t,"slot","normal")},m:function(e,a){J(e,t,a),ot(i,t,null),n=!0},p:v,i:function(e){n||(Ye(i.$$.fragment,e),n=!0)},o:function(e){Xe(i.$$.fragment,e),n=!1},d:function(e){e&&Q(t),rt(i)}}}function kl(e){var t;return{c:function(){t=Z("Cancel")},m:function(e,i){J(e,t,i)},d:function(e){e&&Q(t)}}}function wl(e){var t,i,n,a,s;return i=new bi({}),a=new Qt({props:{$$slots:{default:[kl]},$$scope:{ctx:e}}}),{c:function(){t=Y("div"),st(i.$$.fragment),n=ee(),st(a.$$.fragment),se(t,"slot","normal"),se(t,"class","button svelte-12zy474")},m:function(e,o){J(e,t,o),ot(i,t,null),F(t,n),ot(a,t,null),s=!0},p:function(e,t){var i={};536870912&t&&(i.$$scope={dirty:t,ctx:e}),a.$set(i)},i:function(e){s||(Ye(i.$$.fragment,e),Ye(a.$$.fragment,e),s=!0)},o:function(e){Xe(i.$$.fragment,e),Xe(a.$$.fragment,e),s=!1},d:function(e){e&&Q(t),rt(i),rt(a)}}}function $l(e){var t,i,n,a,s,r,l,u,d,c,h,p,_,m,f,v,g,y,b,k,w,$,C,S,P,x,A,I,T,D,E=function(e,t){return e[6]?1:0},M=Math.ceil(e[4])+"",B=((null==(t=e[5][0])?void 0:t.title)||"")+"";s=new Qt({props:{display:"inline-block",$$slots:{default:[fl]},$$scope:{ctx:e}}});var L=[gl,vl],R=[];return v=E(e),g=R[v]=L[v](e),A=new pi({props:{bgColor:"#424242",buttonPosition:"relative",bgBorderRadius:"8px",name:"cancel",hideToolTip:!0,iconHeight:.6*e[10],$$slots:{normal:[wl]},$$scope:{ctx:e}}}),{c:function(){var t,o;i=Y("div"),n=Y("div"),a=Y("div"),st(s.$$.fragment),r=Z(" "),l=Y("span"),u=Z(M),d=ee(),c=Y("h2"),h=Z(B),p=ee(),_=Y("div"),m=Y("div"),f=Y("div"),g.c(),y=ee(),b=X("svg"),k=X("g"),w=X("circle"),$=X("path"),S=ee(),P=Y("div"),x=Y("div"),st(A.$$.fragment),se(l,"class","time svelte-12zy474"),se(a,"class","up-next svelte-12zy474"),se(c,"class","title svelte-12zy474"),se(f,"class","icon svelte-12zy474"),se(w,"class","base-timer__path-bg svelte-12zy474"),se(w,"cx","50"),se(w,"cy","50"),se(w,"r",Cl),se($,"id","base-timer-path-filler"),se($,"stroke-dasharray",C=e[23]/e[8]*e[9]+" "+e[23]),se($,"class","base-timer__path-filler svelte-12zy474"),se($,"d","\n\t\t\t\t\t\t\t  M 50, 50\n\t\t\t\t\t\t\t  m -45, 0\n\t\t\t\t\t\t\t  a 45,45 0 1,0 90,0\n\t\t\t\t\t\t\t  a 45,45 0 1,0 -90,0\n\t\t\t\t\t\t\t"),se(k,"class","base-timer__circle svelte-12zy474"),se(b,"class","base-timer__svg svelte-12zy474"),se(b,"viewBox","0 0 100 100"),se(b,"xmlns","http://www.w3.org/2000/svg"),se(m,"class","base-timer svelte-12zy474"),se(x,"class","cancel"),se(x,"data-cy","autoplay-next-cancel"),se(P,"class","buttons svelte-12zy474"),se(_,"class","countdown svelte-12zy474"),se(n,"class","up-next-container svelte-12zy474"),se(i,"class","container svelte-12zy474"),he(i,"no-related","hide"===e[0].relatedItems||(null==(t=e[1].relatedItems)?void 0:t.hidden)),he(i,"mobile",["S","XS"].includes(e[2])),he(i,"mobile-xs","XS"===e[2]),he(i,"mobile-xxs",e[3]),he(i,"no-progress-bar",null==(o=e[1].controlBar)?void 0:o.hidden)},m:function(t,o){J(t,i,o),F(i,n),F(n,a),ot(s,a,null),F(a,r),F(a,l),F(l,u),F(n,d),F(n,c),F(c,h),F(n,p),F(n,_),F(_,m),F(m,f),R[v].m(f,null),F(m,y),F(m,b),F(b,k),F(k,w),F(k,$),F(_,S),F(_,P),F(P,x),ot(A,x,null),I=!0,T||(D=ie(x,"click",e[24]),T=!0)},p:function(e,t){var n,a,r,l=o.default(t,1)[0],d={};536870912&l&&(d.$$scope={dirty:l,ctx:e}),s.$set(d),(!I||16&l)&&M!==(M=Math.ceil(e[4])+"")&&le(u,M),(!I||32&l)&&B!==(B=((null==(n=e[5][0])?void 0:n.title)||"")+"")&&le(h,B);var c=v;(v=E(e))===c?R[v].p(e,l):(Qe(),Xe(R[c],1,1,(function(){R[c]=null})),Ke(),(g=R[v])?g.p(e,l):(g=R[v]=L[v](e)).c(),Ye(g,1),g.m(f,null)),(!I||768&l&&C!==(C=e[23]/e[8]*e[9]+" "+e[23]))&&se($,"stroke-dasharray",C);var p={};1024&l&&(p.iconHeight=.6*e[10]),536870912&l&&(p.$$scope={dirty:l,ctx:e}),A.$set(p),(!I||3&l)&&he(i,"no-related","hide"===e[0].relatedItems||(null==(a=e[1].relatedItems)?void 0:a.hidden)),(!I||4&l)&&he(i,"mobile",["S","XS"].includes(e[2])),(!I||4&l)&&he(i,"mobile-xs","XS"===e[2]),(!I||8&l)&&he(i,"mobile-xxs",e[3]),(!I||2&l)&&he(i,"no-progress-bar",null==(r=e[1].controlBar)?void 0:r.hidden)},i:function(e){I||(Ye(s.$$.fragment,e),Ye(g),Ye(A.$$.fragment,e),I=!0)},o:function(e){Xe(s.$$.fragment,e),Xe(g),Xe(A.$$.fragment,e),I=!1},d:function(e){e&&Q(i),rt(s),R[v].d(),rt(A),T=!1,D()}}}var Cl=45;function Sl(e,t,i){var n,a,s,o,r,l,u,d,c,h,p,_=Ae(zt),m=_.fontSize,f=_.marginSize,v=_.screenXXS,g=_.skinSizeHeight,y=_.elementVisibility,b=_.userPausedCountDown,k=_.startCountDown,w=_.stopCountdown,$=_.timeTotal,C=_.timeLeft,S=_.timePassed,P=_.relatedItems,x=_.playout;A(e,m,(function(e){return i(10,p=e)})),A(e,f,(function(e){return i(7,d=e)})),A(e,v,(function(e){return i(3,o=e)})),A(e,g,(function(e){return i(2,s=e)})),A(e,y,(function(e){return i(1,a=e)})),A(e,b,(function(e){return i(6,u=e)})),A(e,$,(function(e){return i(8,c=e)})),A(e,C,(function(e){return i(4,r=e)})),A(e,S,(function(e){return i(9,h=e)})),A(e,P,(function(e){return i(5,l=e)})),A(e,x,(function(e){return i(0,n=e)}));var I=Pe(),T=C.subscribe((function(e){0===e&&I("ended")})),D=Math.ceil(2*Math.PI*Cl);return Ce((function(){return k()})),Se((function(){w(),T()})),[n,a,s,o,r,l,u,d,c,h,p,m,f,v,g,y,b,$,C,S,P,x,I,D,function(){w(),I("cancel")},function(){return I("ended")}]}var Pl=function(e){l.default(i,e);var t=u.default(i);function i(e){var n;return a.default(this,i),n=t.call(this),ut(d.default(n),e,Sl,$l,C,{},ml),c.default(n)}return i}(dt);function xl(e){N(e,"svelte-1gf2c1v",'.entity-list.svelte-1gf2c1v.svelte-1gf2c1v.svelte-1gf2c1v.svelte-1gf2c1v{width:100%;transition:filter 0.25s ease-in-out 0.15s;position:relative;--btn-width:40px;filter:brightness(67%)}.entity-list.svelte-1gf2c1v .buttons.svelte-1gf2c1v.svelte-1gf2c1v.svelte-1gf2c1v{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;justify-content:space-between;pointer-events:none;left:-var(--margin-size);right:-var(--margin-size)}.entity-list.svelte-1gf2c1v .btn-container.svelte-1gf2c1v.svelte-1gf2c1v.svelte-1gf2c1v{display:flex;flex-direction:column;justify-content:center;opacity:0;transition:opacity 0.3s ease-in-out;margin-left:var(--margin-size);margin-right:var(--margin-size)}.entity-list.svelte-1gf2c1v .btn-container.show.svelte-1gf2c1v.svelte-1gf2c1v.svelte-1gf2c1v{opacity:1;display:flex}.entity-list.svelte-1gf2c1v .btn-container .btn.prev.svelte-1gf2c1v.svelte-1gf2c1v.svelte-1gf2c1v{margin-left:calc(var(--btn-width) / -2 + var(--cancel-button-right))}.entity-list.svelte-1gf2c1v .btn-container .btn.next.svelte-1gf2c1v.svelte-1gf2c1v.svelte-1gf2c1v{margin-right:calc(var(--btn-width) / -2 + var(--cancel-button-right))}.entity-list.svelte-1gf2c1v.svelte-1gf2c1v.svelte-1gf2c1v.svelte-1gf2c1v:hover,.entity-list.mobile.svelte-1gf2c1v.svelte-1gf2c1v.svelte-1gf2c1v.svelte-1gf2c1v,.entity-list.phase-exit.svelte-1gf2c1v.svelte-1gf2c1v.svelte-1gf2c1v.svelte-1gf2c1v{filter:brightness(100%)}.entity-list.svelte-1gf2c1v .container.svelte-1gf2c1v.svelte-1gf2c1v.svelte-1gf2c1v{width:calc(100% + 2 * var(--margin-size));margin-left:calc(-1 * var(--margin-size));height:100%;overflow:auto;scrollbar-width:none}.entity-list.svelte-1gf2c1v .container.svelte-1gf2c1v.svelte-1gf2c1v.svelte-1gf2c1v::-webkit-scrollbar{width:0;height:0}.entity-list.svelte-1gf2c1v .end-dummy.svelte-1gf2c1v.svelte-1gf2c1v.svelte-1gf2c1v{width:var(--margin-size);flex-shrink:0}.entity-list.svelte-1gf2c1v .items.svelte-1gf2c1v.svelte-1gf2c1v.svelte-1gf2c1v{display:flex;gap:0.8em;height:100%;padding:2px 0}@supports (-webkit-touch-callout: none) and (not (translate: none)){.entity-list.svelte-1gf2c1v .items.svelte-1gf2c1v>.svelte-1gf2c1v+.svelte-1gf2c1v{margin-left:0.8em}}.entity-list.svelte-1gf2c1v .items .item.svelte-1gf2c1v.svelte-1gf2c1v.svelte-1gf2c1v{cursor:pointer;border-radius:var(--border-radius-related);position:relative;flex-shrink:0;overflow:hidden}.entity-list.svelte-1gf2c1v .items .item img.svelte-1gf2c1v.svelte-1gf2c1v.svelte-1gf2c1v,.entity-list.svelte-1gf2c1v .items .item .fallback-img.svelte-1gf2c1v.svelte-1gf2c1v.svelte-1gf2c1v{transition:transform 0.2s ease-in-out;border-radius:var(--border-radius-related);height:var(--related-desired-height-img);width:calc(var(--related-desired-height-img) * 1.7777777778);background-color:rgba(0, 0, 0, 0.5)}.entity-list.svelte-1gf2c1v .items .item.svelte-1gf2c1v.svelte-1gf2c1v.svelte-1gf2c1v:first-child{margin-left:var(--margin-size)}.entity-list.svelte-1gf2c1v .items .item:hover img.svelte-1gf2c1v.svelte-1gf2c1v.svelte-1gf2c1v,.entity-list.svelte-1gf2c1v .items .item:hover .fallback-img.svelte-1gf2c1v.svelte-1gf2c1v.svelte-1gf2c1v{transform:scale(1.05)}.entity-list.svelte-1gf2c1v .items .item img.svelte-1gf2c1v.svelte-1gf2c1v.svelte-1gf2c1v{display:block;object-fit:cover}.entity-list.svelte-1gf2c1v .items .item .fallback-img.svelte-1gf2c1v.svelte-1gf2c1v.svelte-1gf2c1v{display:none;background-color:black}.entity-list.svelte-1gf2c1v .items .item.no-thumb .fallback-img.svelte-1gf2c1v.svelte-1gf2c1v.svelte-1gf2c1v{display:block}.entity-list.svelte-1gf2c1v .items .item .info.svelte-1gf2c1v.svelte-1gf2c1v.svelte-1gf2c1v{position:absolute;top:0;left:0;right:0;bottom:0;background:linear-gradient(rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 100%);border-radius:var(--border-radius-related);overflow:hidden}.entity-list.svelte-1gf2c1v .items .item .info .title.svelte-1gf2c1v.svelte-1gf2c1v.svelte-1gf2c1v{font-size:0.75em;line-height:1.2em;font-weight:bold;position:absolute;margin:calc(var(--margin-size) / 2);top:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.entity-list.svelte-1gf2c1v .items .item .info .duration.svelte-1gf2c1v.svelte-1gf2c1v.svelte-1gf2c1v{font-size:0.65em;font-weight:bold;color:var(--foreground-color);background-color:rgba(0, 0, 0, 0.5);margin:8px;padding:3px 0.75em;border-radius:calc(0.65em + 6px);position:absolute;right:0;bottom:0;border:1px solid transparent}.entity-list.svelte-1gf2c1v .items .item .info .duration.live.svelte-1gf2c1v.svelte-1gf2c1v.svelte-1gf2c1v{border:1px solid white;padding-left:20px}.entity-list.svelte-1gf2c1v .items .item .info .duration.live.svelte-1gf2c1v.svelte-1gf2c1v.svelte-1gf2c1v::before{content:" ";position:absolute;left:6px;top:0.375em;margin-top:2px;width:0.65em;height:0.65em;border-radius:50%;background-color:#ff3e3e}.entity-list.svelte-1gf2c1v .items .item .up-next-title.svelte-1gf2c1v.svelte-1gf2c1v.svelte-1gf2c1v{font-size:0.75em;font-weight:normal}.entity-list.svelte-1gf2c1v .items .item .up-next-bar.svelte-1gf2c1v.svelte-1gf2c1v.svelte-1gf2c1v{isolation:isolate}.entity-list.svelte-1gf2c1v .items .item .up-next-bar .bar-bg.svelte-1gf2c1v.svelte-1gf2c1v.svelte-1gf2c1v,.entity-list.svelte-1gf2c1v .items .item .up-next-bar .bar-fill.svelte-1gf2c1v.svelte-1gf2c1v.svelte-1gf2c1v{position:absolute;top:0;left:0;height:3px}.entity-list.svelte-1gf2c1v .items .item .up-next-bar .bar-bg.svelte-1gf2c1v.svelte-1gf2c1v.svelte-1gf2c1v{right:0;background-color:rgba(245, 245, 245, 0.3)}.entity-list.svelte-1gf2c1v .items .item .up-next-bar .bar-fill.svelte-1gf2c1v.svelte-1gf2c1v.svelte-1gf2c1v{background-color:var(--accent-color);transition:0.2s linear all;max-width:100%}')}function Al(e,t,i){var n=e.slice();return n[45]=t[i],n[47]=i,n}function Il(e){var t,i,n,a,s,o,r,l,u,d,c,h,p,_,m,f,v,g,y=function(){return e[30](e[45])},b=(e[45].title||"")+"",k=e[23](e[45].mediatype,e[45].length,e[45].sourcetype)+"",$=0===e[47]&&e[1]&&!e[11]&&Tl(e),C=0===e[47]&&e[1]&&!e[11]&&El(e);return{c:function(){t=Y("li"),i=Y("img"),a=ee(),s=Y("div"),o=ee(),r=Y("div"),l=Y("span"),$&&$.c(),u=ee(),d=Z(b),c=ee(),h=Y("span"),p=Z(k),_=ee(),C&&C.c(),S(i.src,n=e[27](e[45],e[7]))||se(i,"src",n),se(i,"alt",""),se(i,"loading","lazy"),se(i,"class","svelte-1gf2c1v"),se(s,"class","fallback-img svelte-1gf2c1v"),se(l,"class","title svelte-1gf2c1v"),se(h,"class","duration svelte-1gf2c1v"),he(h,"live","live"===e[45].sourcetype),se(r,"class","info svelte-1gf2c1v"),se(t,"class","item button-content svelte-1gf2c1v"),se(t,"title",m=e[45].title||""),se(t,"tabindex",0)},m:function(e,n){J(e,t,n),F(t,i),F(t,a),F(t,s),F(t,o),F(t,r),F(r,l),$&&$.m(l,null),F(l,u),F(l,d),F(r,c),F(r,h),F(h,p),F(t,_),C&&C.m(t,null),f=!0,v||(g=[ie(i,"error",ql),ie(t,"click",y)],v=!0)},p:function(a,s){e=a,(!f||129&s[0]&&!S(i.src,n=e[27](e[45],e[7])))&&se(i,"src",n),0===e[47]&&e[1]&&!e[11]?$?2050&s[0]&&Ye($,1):(($=Tl(e)).c(),Ye($,1),$.m(l,u)):$&&(Qe(),Xe($,1,1,(function(){$=null})),Ke()),(!f||1&s[0])&&b!==(b=(e[45].title||"")+"")&&le(d,b),(!f||1&s[0])&&k!==(k=e[23](e[45].mediatype,e[45].length,e[45].sourcetype)+"")&&le(p,k),(!f||1&s[0])&&he(h,"live","live"===e[45].sourcetype),0===e[47]&&e[1]&&!e[11]?C?C.p(e,s):((C=El(e)).c(),C.m(t,null)):C&&(C.d(1),C=null),(!f||1&s[0]&&m!==(m=e[45].title||""))&&se(t,"title",m)},i:function(e){f||(Ye($),f=!0)},o:function(e){Xe($),f=!1},d:function(e){e&&Q(t),$&&$.d(),C&&C.d(),v=!1,w(g)}}}function Tl(e){var t,i,n;return i=new Qt({props:{$$slots:{default:[Dl]},$$scope:{ctx:e}}}),{c:function(){t=Y("span"),st(i.$$.fragment),se(t,"class","up-next-title svelte-1gf2c1v")},m:function(e,a){J(e,t,a),ot(i,t,null),n=!0},i:function(e){n||(Ye(i.$$.fragment,e),n=!0)},o:function(e){Xe(i.$$.fragment,e),n=!1},d:function(e){e&&Q(t),rt(i)}}}function Dl(e){var t;return{c:function(){t=Z("Up next")},m:function(e,i){J(e,t,i)},d:function(e){e&&Q(t)}}}function El(e){var t,i,n,a;return{c:function(){t=Y("div"),i=Y("div"),n=ee(),a=Y("div"),se(i,"class","bar-bg svelte-1gf2c1v"),se(a,"class","bar-fill svelte-1gf2c1v"),de(a,"width",Math.ceil(e[12]/e[13]*102)+"%"),se(t,"class","up-next-bar svelte-1gf2c1v")},m:function(e,s){J(e,t,s),F(t,i),F(t,n),F(t,a)},p:function(e,t){12288&t[0]&&de(a,"width",Math.ceil(e[12]/e[13]*102)+"%")},d:function(e){e&&Q(t)}}}function Ml(e){var t,i,n=e[45]&&Il(e);return{c:function(){n&&n.c(),t=te()},m:function(e,a){n&&n.m(e,a),J(e,t,a),i=!0},p:function(e,i){e[45]?n?(n.p(e,i),1&i[0]&&Ye(n,1)):((n=Il(e)).c(),Ye(n,1),n.m(t.parentNode,t)):n&&(Qe(),Xe(n,1,1,(function(){n=null})),Ke())},i:function(e){i||(Ye(n),i=!0)},o:function(e){Xe(n),i=!1},d:function(e){e&&Q(t),n&&n.d(e)}}}function Bl(e){var t,i,n,a,s,o,r,l,u,d,c;return a=new pi({props:{iconHeight:.9*e[14],bgColor:xt,bgSize:"2em",tabindex:e[4]>0?0:-1,name:"previousRelatedButton",hideToolTip:!0,disabled:e[4]<=0,$$slots:{normal:[Ll]},$$scope:{ctx:e}}}),l=new pi({props:{iconHeight:.9*e[14],bgColor:xt,bgSize:"2em",tabindex:e[4]+e[5]<e[6]-10?0:-1,name:"nextRelatedButton",hideToolTip:!0,disabled:e[4]+e[5]>=e[6]-10,$$slots:{normal:[Rl]},$$scope:{ctx:e}}}),{c:function(){t=Y("div"),i=Y("div"),n=Y("div"),st(a.$$.fragment),s=ee(),o=Y("div"),r=Y("div"),st(l.$$.fragment),se(n,"class","prev btn svelte-1gf2c1v"),se(i,"class","btn-container svelte-1gf2c1v"),he(i,"show",e[4]>0),se(r,"class","next btn svelte-1gf2c1v"),se(o,"class","btn-container svelte-1gf2c1v"),he(o,"show",e[4]+e[5]<e[6]-10),se(t,"class","buttons svelte-1gf2c1v")},m:function(h,p){J(h,t,p),F(t,i),F(i,n),ot(a,n,null),F(t,s),F(t,o),F(o,r),ot(l,r,null),u=!0,d||(c=[ie(n,"click",e[34]),ie(r,"click",e[35])],d=!0)},p:function(e,t){var n={};16384&t[0]&&(n.iconHeight=.9*e[14]),16&t[0]&&(n.tabindex=e[4]>0?0:-1),16&t[0]&&(n.disabled=e[4]<=0),131072&t[1]&&(n.$$scope={dirty:t,ctx:e}),a.$set(n),(!u||16&t[0])&&he(i,"show",e[4]>0);var s={};16384&t[0]&&(s.iconHeight=.9*e[14]),112&t[0]&&(s.tabindex=e[4]+e[5]<e[6]-10?0:-1),112&t[0]&&(s.disabled=e[4]+e[5]>=e[6]-10),131072&t[1]&&(s.$$scope={dirty:t,ctx:e}),l.$set(s),(!u||112&t[0])&&he(o,"show",e[4]+e[5]<e[6]-10)},i:function(e){u||(Ye(a.$$.fragment,e),Ye(l.$$.fragment,e),u=!0)},o:function(e){Xe(a.$$.fragment,e),Xe(l.$$.fragment,e),u=!1},d:function(e){e&&Q(t),rt(a),rt(l),d=!1,w(c)}}}function Ll(e){var t,i,n;return i=new vi({}),{c:function(){t=Y("div"),st(i.$$.fragment),se(t,"slot","normal")},m:function(e,a){J(e,t,a),ot(i,t,null),n=!0},p:v,i:function(e){n||(Ye(i.$$.fragment,e),n=!0)},o:function(e){Xe(i.$$.fragment,e),n=!1},d:function(e){e&&Q(t),rt(i)}}}function Rl(e){var t,i,n;return i=new Ci({}),{c:function(){t=Y("div"),st(i.$$.fragment),se(t,"slot","normal")},m:function(e,a){J(e,t,a),ot(i,t,null),n=!0},p:v,i:function(e){n||(Ye(i.$$.fragment,e),n=!0)},o:function(e){Xe(i.$$.fragment,e),n=!1},d:function(e){e&&Q(t),rt(i)}}}function Hl(e){for(var t,i,n,a,s,o,r,l,u,d,c=nt(e[0]),h=[],p=0;p<c.length;p+=1)h[p]=Ml(Al(e,c,p));var _=function(e){return Xe(h[e],1,1,(function(){h[e]=null}))},m=!e[8]&&e[5]<e[6]&&Bl(e);return{c:function(){t=Y("div"),i=Y("div"),n=Y("ul");for(var o=0;o<h.length;o+=1)h[o].c();a=ee(),s=Y("div"),r=ee(),m&&m.c(),se(s,"class","end-dummy svelte-1gf2c1v"),se(n,"class","items svelte-1gf2c1v"),se(i,"class","container svelte-1gf2c1v"),qe((function(){return e[33].call(i)})),se(t,"class","entity-list svelte-1gf2c1v"),he(t,"mobile",e[8]),he(t,"phase-exit","EXIT"===e[10]),de(t,"--border-radius-related",e[9].cornerRadius?Math.ceil(e[9].cornerRadius/1.5)+"px":"0px")},m:function(c,p){J(c,t,p),F(t,i),F(i,n);for(var _=0;_<h.length;_+=1)h[_]&&h[_].m(n,null);F(n,a),F(n,s),e[31](n),e[32](i),o=ce(i,e[33].bind(i)),F(t,r),m&&m.m(t,null),l=!0,u||(d=ie(i,"scroll",e[26]),u=!0)},p:function(e,i){if(159398019&i[0]){var s;for(c=nt(e[0]),s=0;s<c.length;s+=1){var o=Al(e,c,s);h[s]?(h[s].p(o,i),Ye(h[s],1)):(h[s]=Ml(o),h[s].c(),Ye(h[s],1),h[s].m(n,a))}for(Qe(),s=c.length;s<h.length;s+=1)_(s);Ke()}!e[8]&&e[5]<e[6]?m?(m.p(e,i),352&i[0]&&Ye(m,1)):((m=Bl(e)).c(),Ye(m,1),m.m(t,null)):m&&(Qe(),Xe(m,1,1,(function(){m=null})),Ke()),(!l||256&i[0])&&he(t,"mobile",e[8]),(!l||1024&i[0])&&he(t,"phase-exit","EXIT"===e[10]),512&i[0]&&de(t,"--border-radius-related",e[9].cornerRadius?Math.ceil(e[9].cornerRadius/1.5)+"px":"0px")},i:function(e){if(!l){for(var t=0;t<c.length;t+=1)Ye(h[t]);Ye(m),l=!0}},o:function(e){h=h.filter(Boolean);for(var t=0;t<h.length;t+=1)Xe(h[t]);Xe(m),l=!1},d:function(i){i&&Q(t),K(h,i),e[31](null),e[32](null),o(),m&&m.d(),u=!1,d()}}}function ql(e){var t;null!=(t=null==e?void 0:e.target)&&t.style&&(e.target.style.display="none",e.target.parentElement.classList.add("no-thumb"))}function Ol(e,t,i){var n,a,s,o,r,l,u,d,c,h,p=function(){He().then((function(){i(6,O=(null==E?void 0:E.scrollWidth)||0),i(4,H=(null==D?void 0:D.scrollLeft)||0)}))},_=function(){var e=s;return devicePixelRatio>1&&(e*=Math.min(2,devicePixelRatio)),e},m=function(e){D.scrollTo({left:H+q*e,behavior:"smooth"})},f=Ae(zt),v=f.api,g=f.detections,y=f.playerHeight,b=f.triggeredRelated,k=f.playout,w=f.timeTotal,$=f.timePassed,C=f.barIconSize,S=f.relatedDesiredHeight,P=f.useMobileToggleRelated,x=f.getLengthLabel,I=f.loadRelatedItem,T=f.phase;A(e,g,(function(e){return i(29,o=e)})),A(e,y,(function(e){return i(37,a=e)})),A(e,k,(function(e){return i(9,r=e)})),A(e,w,(function(e){return i(13,c=e)})),A(e,$,(function(e){return i(12,d=e)})),A(e,C,(function(e){return i(14,h=e)})),A(e,S,(function(e){return i(38,s=e)})),A(e,P,(function(e){return i(11,u=e)})),A(e,T,(function(e){return i(10,l=e)}));var D,E,M=t.items,B=void 0===M?[]:M,L=t.autoPlayNext,R=void 0!==L&&L,H=0,q=1,O=2,z=0,V=0;Ce((function(){p(),setTimeout((function(){p()}),500)})),Se((function(){j(),F()}));var j=S.subscribe((function(){p(),V&&_()-V>=30&&i(7,z++,z)})),F=b.subscribe((function(){p()}));return e.$$set=function(e){"items"in e&&i(0,B=e.items),"autoPlayNext"in e&&i(1,R=e.autoPlayNext)},e.$$.update=function(){536870912&e.$$.dirty[0]&&i(8,n=null==o?void 0:o.isMobileDevice)},[B,R,D,E,H,q,O,z,n,r,l,u,d,c,h,g,y,k,w,$,C,S,P,x,I,T,function(){p()},function(e,t){if(!e)return"";var i=(e.type||"MediaClip")+":"+e.id,n=120;return a>0&&(n=_()),V=n,null==v?void 0:v.getThumbnail(i,"default",n)},m,o,function(e){return I(e.id,e.type,e.deeplink,e.gendeeplink,"RelatedItem")},function(e){De[e?"unshift":"push"]((function(){i(3,E=e)}))},function(e){De[e?"unshift":"push"]((function(){i(2,D=e)}))},function(){q=this.clientWidth,i(5,q)},function(){return m(-1)},function(){return m(1)}]}var zl=function(e){l.default(i,e);var t=u.default(i);function i(e){var n;return a.default(this,i),n=t.call(this),ut(d.default(n),e,Ol,Hl,C,{items:0,autoPlayNext:1},xl,[-1,-1]),c.default(n)}return i}(dt);function Vl(e){N(e,"svelte-1s2v0sn",".center-controls.svelte-1s2v0sn.svelte-1s2v0sn.svelte-1s2v0sn{display:flex;align-items:center;gap:var(--gap-size)}@supports (-webkit-touch-callout: none) and (not (translate: none)){.center-controls.svelte-1s2v0sn>.svelte-1s2v0sn+.svelte-1s2v0sn{margin-left:var(--gap-size)}}.center-controls.svelte-1s2v0sn .prev-back-button.svelte-1s2v0sn.svelte-1s2v0sn,.center-controls.svelte-1s2v0sn .dummy-button.svelte-1s2v0sn.svelte-1s2v0sn{width:2.4em;height:2.4em}.center-controls.svelte-1s2v0sn .big-button.svelte-1s2v0sn.svelte-1s2v0sn{position:relative;transition:opacity 0.25s ease-in-out}.center-controls.svelte-1s2v0sn .big-button .start-time.svelte-1s2v0sn.svelte-1s2v0sn{top:calc(8px + var(--size-big-button));position:absolute;left:50%;transform:translate(-50%, 0);background-color:var(--bg-color-pane);padding:8px 16px;border-radius:32px;font-size:0.8em}.center-controls.svelte-1s2v0sn .center-button-placeholder.svelte-1s2v0sn.svelte-1s2v0sn{width:var(--size);height:var(--size)}.center-controls.skinsize-XS.svelte-1s2v0sn .start-time.svelte-1s2v0sn.svelte-1s2v0sn{padding:4px 8px}.cast-info.svelte-1s2v0sn.svelte-1s2v0sn.svelte-1s2v0sn{pointer-events:all;position:absolute;top:25%;left:0;width:100%;display:grid;place-items:center}.cast-info.svelte-1s2v0sn .cast-state.svelte-1s2v0sn.svelte-1s2v0sn{display:flex}.cast-info.svelte-1s2v0sn .inner.svelte-1s2v0sn.svelte-1s2v0sn{cursor:pointer;display:flex;gap:0.5em;align-items:center;justify-content:center;height:20px;white-space:nowrap}@supports (-webkit-touch-callout: none) and (not (translate: none)){}.cast-info.svelte-1s2v0sn svg{height:var(--font-size)}.button-container.svelte-1s2v0sn.svelte-1s2v0sn.svelte-1s2v0sn{position:absolute;bottom:0;right:calc(var(--margin-size) / 2 + 12px);transform:translateY(calc((var(--bar-height) - var(--margin-size) / 2) * -1));z-index:1;transition:transform 0.15s ease-in-out, opacity 0.15s ease-in-out;display:flex;justify-content:row;gap:12px}@supports (-webkit-touch-callout: none) and (not (translate: none)){.button-container.svelte-1s2v0sn>.svelte-1s2v0sn+.svelte-1s2v0sn{margin-left:12px}}.button-container.svelte-1s2v0sn .toggle-related-button.svelte-1s2v0sn.svelte-1s2v0sn{min-width:38px;z-index:-5}.button-container.hovering-scrubbar.svelte-1s2v0sn.svelte-1s2v0sn.svelte-1s2v0sn{opacity:0.15}.mobile-replay-button.svelte-1s2v0sn.svelte-1s2v0sn.svelte-1s2v0sn{position:absolute;left:12px;bottom:6px}.center-controls.mounted-controlbar.svelte-1s2v0sn .related-items.svelte-1s2v0sn.svelte-1s2v0sn{left:calc(0.75 * var(--margin-size));right:calc(0.75 * var(--margin-size))}.center-controls.mounted-controlbar.svelte-1s2v0sn .button-container.svelte-1s2v0sn.svelte-1s2v0sn{right:0}.related-items.svelte-1s2v0sn.svelte-1s2v0sn.svelte-1s2v0sn{--padding:0.7em;transition:opacity 0.3s ease, transform 0.3s ease-in-out, visibility 0.3s ease;position:absolute;left:calc(1 * var(--margin-size));right:calc(1 * var(--margin-size));bottom:0;transform:translateY(calc(var(--bar-height) * -1));height:calc(var(--related-desired-height-img) + var(--font-size) + var(--padding));pointer-events:all}.related-items.svelte-1s2v0sn.svelte-1s2v0sn.svelte-1s2v0sn:not(.using-scrubbar){opacity:1;visibility:visible}.related-items.svelte-1s2v0sn .header.svelte-1s2v0sn.svelte-1s2v0sn{padding-bottom:var(--padding);display:flex;justify-content:space-between;font-weight:bold}.related-items.svelte-1s2v0sn .header .cancel.svelte-1s2v0sn.svelte-1s2v0sn{height:1.8em;width:1.8em;position:absolute;right:var(--cancel-button-right);top:-0.5em}.related-items.playing.svelte-1s2v0sn.svelte-1s2v0sn.svelte-1s2v0sn,.related-items.waiting.svelte-1s2v0sn.svelte-1s2v0sn.svelte-1s2v0sn{opacity:0;pointer-events:none;visibility:hidden}.soft-embargo-container.svelte-1s2v0sn.svelte-1s2v0sn.svelte-1s2v0sn{display:flex;flex-direction:column;justify-content:center;align-items:center}.soft-embargo-text.svelte-1s2v0sn.svelte-1s2v0sn.svelte-1s2v0sn{font-size:clamp(1em, var(--player-height) / 6, 3em);line-height:1.5em;max-height:1.5em;text-align:center;overflow:hidden}.soft-embargo-timer.svelte-1s2v0sn.svelte-1s2v0sn.svelte-1s2v0sn{font-size:clamp(2em, var(--player-height) / 3.5, 6em);max-height:6em;text-align:center}")}function jl(e){var t,i,n,a,s,o,r,l,u,d,c,h,p,_,m,f,v,g=function(e,t){return"AirPlay"===e[29]?0:1},y=function(e,t){return e[30]?0:1},b=(null==(i=null==(t=e[31])?void 0:t.getCastDevice())?void 0:i.friendlyName)+"",k=[Nl,Fl],w=[];s=g(e),o=w[s]=k[s](e);var $=[Wl,Ul],C=[];return u=y(e),d=C[u]=$[u](e),{c:function(){n=Y("div"),a=Y("div"),o.c(),r=ee(),l=Y("span"),d.c(),c=ee(),h=Y("span"),p=Z(" "),_=Z(b),se(h,"class","device-name"),se(l,"class","cast-state svelte-1s2v0sn"),se(a,"class","inner svelte-1s2v0sn"),se(n,"class","cast-info svelte-1s2v0sn")},m:function(t,i){J(t,n,i),F(n,a),w[s].m(a,null),F(a,r),F(a,l),C[u].m(l,null),F(l,c),F(l,h),F(h,p),F(h,_),m=!0,f||(v=ie(a,"click",e[52]),f=!0)},p:function(e,t){var i,n,h=s;(s=g(e))!==h&&(Qe(),Xe(w[h],1,1,(function(){w[h]=null})),Ke(),(o=w[s])||(o=w[s]=k[s](e)).c(),Ye(o,1),o.m(a,r));var p=u;(u=y(e))!==p&&(Qe(),Xe(C[p],1,1,(function(){C[p]=null})),Ke(),(d=C[u])||(d=C[u]=$[u](e)).c(),Ye(d,1),d.m(l,c)),(!m||1&t[1])&&b!==(b=(null==(n=null==(i=e[31])?void 0:i.getCastDevice())?void 0:n.friendlyName)+"")&&le(_,b)},i:function(e){m||(Ye(o),Ye(d),m=!0)},o:function(e){Xe(o),Xe(d),m=!1},d:function(e){e&&Q(n),w[s].d(),C[u].d(),f=!1,v()}}}function Fl(e){var t,i;return t=new so({}),{c:function(){st(t.$$.fragment)},m:function(e,n){ot(t,e,n),i=!0},i:function(e){i||(Ye(t.$$.fragment,e),i=!0)},o:function(e){Xe(t.$$.fragment,e),i=!1},d:function(e){rt(t,e)}}}function Nl(e){var t,i;return t=new uo({}),{c:function(){st(t.$$.fragment)},m:function(e,n){ot(t,e,n),i=!0},i:function(e){i||(Ye(t.$$.fragment,e),i=!0)},o:function(e){Xe(t.$$.fragment,e),i=!1},d:function(e){rt(t,e)}}}function Ul(e){var t,i,n;return i=new Qt({props:{$$slots:{default:[Gl]},$$scope:{ctx:e}}}),{c:function(){t=Y("div"),st(i.$$.fragment)},m:function(e,a){J(e,t,a),ot(i,t,null),n=!0},i:function(e){n||(Ye(i.$$.fragment,e),n=!0)},o:function(e){Xe(i.$$.fragment,e),n=!1},d:function(e){e&&Q(t),rt(i)}}}function Wl(e){var t,i,n;return i=new Qt({props:{$$slots:{default:[Jl]},$$scope:{ctx:e}}}),{c:function(){t=Y("div"),st(i.$$.fragment)},m:function(e,a){J(e,t,a),ot(i,t,null),n=!0},i:function(e){n||(Ye(i.$$.fragment,e),n=!0)},o:function(e){Xe(i.$$.fragment,e),n=!1},d:function(e){e&&Q(t),rt(i)}}}function Gl(e){var t;return{c:function(){t=Z("Connected to")},m:function(e,i){J(e,t,i)},d:function(e){e&&Q(t)}}}function Jl(e){var t;return{c:function(){t=Z("Playing on")},m:function(e,i){J(e,t,i)},d:function(e){e&&Q(t)}}}function Ql(e){var t;return{c:function(){se(t=Y("div"),"class","dummy-button svelte-1s2v0sn")},m:function(e,i){J(e,t,i)},p:v,i:v,o:v,d:function(e){e&&Q(t)}}}function Kl(e){var t,i,n=!e[20]&&(!e[13]||e[13]&&e[12])&&Yl(e);return{c:function(){n&&n.c(),t=te()},m:function(e,a){n&&n.m(e,a),J(e,t,a),i=!0},p:function(e,i){!e[20]&&(!e[13]||e[13]&&e[12])?n?(n.p(e,i),1060864&i[0]&&Ye(n,1)):((n=Yl(e)).c(),Ye(n,1),n.m(t.parentNode,t)):n&&(Qe(),Xe(n,1,1,(function(){n=null})),Ke())},i:function(e){i||(Ye(n),i=!0)},o:function(e){Xe(n),i=!1},d:function(e){e&&Q(t),n&&n.d(e)}}}function Yl(e){var t,i,n,a,s,o;return i=new pi({props:{iconHeight:Math.round(e[34]/1.667),hoverTransform:"scale(1.1)",name:"rewindVideo",hideToolTip:!0,$$slots:{normal:[Xl]},$$scope:{ctx:e}}}),{c:function(){t=Y("div"),st(i.$$.fragment),se(t,"class","prev-back-button svelte-1s2v0sn"),se(t,"style",n=e[0]("seekButtons")),se(t,"data-cy","rewind-button")},m:function(n,r){J(n,t,r),ot(i,t,null),a=!0,s||(o=ie(t,"click",e[108]),s=!0)},p:function(e,s){var o={};8&s[1]&&(o.iconHeight=Math.round(e[34]/1.667)),8&s[4]&&(o.$$scope={dirty:s,ctx:e}),i.$set(o),(!a||1&s[0]&&n!==(n=e[0]("seekButtons")))&&se(t,"style",n)},i:function(e){a||(Ye(i.$$.fragment,e),a=!0)},o:function(e){Xe(i.$$.fragment,e),a=!1},d:function(e){e&&Q(t),rt(i),s=!1,o()}}}function Xl(e){var t,i,n;return i=new il({}),{c:function(){t=Y("div"),st(i.$$.fragment),se(t,"slot","normal")},m:function(e,a){J(e,t,a),ot(i,t,null),n=!0},p:v,i:function(e){n||(Ye(i.$$.fragment,e),n=!0)},o:function(e){Xe(i.$$.fragment,e),n=!1},d:function(e){e&&Q(t),rt(i)}}}function Zl(e){var t,i,n=(!e[13]||e[13]&&e[12])&&eu(e);return{c:function(){n&&n.c(),t=te()},m:function(e,a){n&&n.m(e,a),J(e,t,a),i=!0},p:function(e,i){!e[13]||e[13]&&e[12]?n?(n.p(e,i),12288&i[0]&&Ye(n,1)):((n=eu(e)).c(),Ye(n,1),n.m(t.parentNode,t)):n&&(Qe(),Xe(n,1,1,(function(){n=null})),Ke())},i:function(e){i||(Ye(n),i=!0)},o:function(e){Xe(n),i=!1},d:function(e){e&&Q(t),n&&n.d(e)}}}function eu(e){var t,i,n,a,s=function(e,t){return e[36]&&!e[15]?0:"error"===e[32]?1:2},o=[nu,iu,tu],r=[];return t=s(e),i=r[t]=o[t](e),{c:function(){i.c(),n=te()},m:function(e,i){r[t].m(e,i),J(e,n,i),a=!0},p:function(e,a){var l=t;(t=s(e))===l?r[t].p(e,a):(Qe(),Xe(r[l],1,1,(function(){r[l]=null})),Ke(),(i=r[t])?i.p(e,a):(i=r[t]=o[t](e)).c(),Ye(i,1),i.m(n.parentNode,n))},i:function(e){a||(Ye(i),a=!0)},o:function(e){Xe(i),a=!1},d:function(e){e&&Q(n),r[t].d(e)}}}function tu(e){var t,i,n,a,s,o,r,l,u;i=new pi({props:{disabled:e[21],name:["POST","EXIT"].includes(e[5])?"replayButton":"playPauseButton",hideToolTip:!0,iconHeight:e[40],color:e[17],bgColor:e[19],bgSize:e[39]+"px",bgBorderRadius:e[18],border:e[41],toggled:e[7],hoverTransform:"scale(1.2)",noOpacityTransform:e[16],$$slots:{toggled:[hu],normal:[uu]},$$scope:{ctx:e}}});var d="INIT"===e[5]&&e[42]>360&&!e[33]&&e[22]>0&&(e[3].showStartDuration||void 0===e[3].showStartDuration)&&pu(e);return{c:function(){var r,l,u,c;t=Y("div"),st(i.$$.fragment),n=ee(),d&&d.c(),s=ee(),o=Y("div"),se(t,"class","big-button big-play-pause-button svelte-1s2v0sn"),se(t,"style",a=e[0]("bigPlayButton")),de(t,"opacity",e[21]?"0":"initial"),de(t,"--size-big-button",e[39]?"":e[40]/2+"px"),se(o,"class","center-button-placeholder svelte-1s2v0sn"),de(o,"display",null==(l=null==(r=e[6])?void 0:r.bigPlayButton)||!l.hidden||null!=(c=null==(u=e[6])?void 0:u.centerControls)&&c.hidden?"none":"block"),de(o,"--size",2*e[43]+e[39]+"px")},m:function(a,c){J(a,t,c),ot(i,t,null),F(t,n),d&&d.m(t,null),J(a,s,c),J(a,o,c),r=!0,l||(u=[ie(t,"click",e[99]),ie(t,"mouseenter",ae(e[103]))],l=!0)},p:function(e,n){var s,l,u,c,h={};2097152&n[0]&&(h.disabled=e[21]),32&n[0]&&(h.name=["POST","EXIT"].includes(e[5])?"replayButton":"playPauseButton"),512&n[1]&&(h.iconHeight=e[40]),131072&n[0]&&(h.color=e[17]),524288&n[0]&&(h.bgColor=e[19]),256&n[1]&&(h.bgSize=e[39]+"px"),262144&n[0]&&(h.bgBorderRadius=e[18]),1024&n[1]&&(h.border=e[41]),128&n[0]&&(h.toggled=e[7]),65536&n[0]&&(h.noOpacityTransform=e[16]),196640&n[0]|8&n[4]&&(h.$$scope={dirty:n,ctx:e}),i.$set(h),"INIT"===e[5]&&e[42]>360&&!e[33]&&e[22]>0&&(e[3].showStartDuration||void 0===e[3].showStartDuration)?d?d.p(e,n):((d=pu(e)).c(),d.m(t,null)):d&&(d.d(1),d=null),(!r||1&n[0]&&a!==(a=e[0]("bigPlayButton")))&&se(t,"style",a);var p=1&n[0];(2097153&n[0]||p)&&de(t,"opacity",e[21]?"0":"initial"),(1&n[0]|768&n[1]||p)&&de(t,"--size-big-button",e[39]?"":e[40]/2+"px"),64&n[0]&&de(o,"display",null==(l=null==(s=e[6])?void 0:s.bigPlayButton)||!l.hidden||null!=(c=null==(u=e[6])?void 0:u.centerControls)&&c.hidden?"none":"block"),4352&n[1]&&de(o,"--size",2*e[43]+e[39]+"px")},i:function(e){r||(Ye(i.$$.fragment,e),r=!0)},o:function(e){Xe(i.$$.fragment,e),r=!1},d:function(e){e&&(Q(t),Q(s),Q(o)),rt(i),d&&d.d(),l=!1,w(u)}}}function iu(e){return{c:v,m:v,p:v,i:v,o:v,d:v}}function nu(e){var t,i,n,a,s,o,r=wt(e[38])+"";return{c:function(){t=Y("div"),i=Y("div"),n=Z(e[37]),a=ee(),s=Y("div"),o=Z(r),se(i,"class","soft-embargo-text svelte-1s2v0sn"),se(s,"class","soft-embargo-timer svelte-1s2v0sn"),se(t,"class","soft-embargo-container svelte-1s2v0sn"),de(t,"color",e[14])},m:function(e,r){J(e,t,r),F(t,i),F(i,n),F(t,a),F(t,s),F(s,o)},p:function(e,i){64&i[1]&&le(n,e[37]),128&i[1]&&r!==(r=wt(e[38])+"")&&le(o,r),16384&i[0]&&de(t,"color",e[14])},i:v,o:v,d:function(e){e&&Q(t)}}}function au(e){var t,i;return t=new Dn({props:{color:e[17],center:!0}}),{c:function(){st(t.$$.fragment)},m:function(e,n){ot(t,e,n),i=!0},p:function(e,i){var n={};131072&i[0]&&(n.color=e[17]),t.$set(n)},i:function(e){i||(Ye(t.$$.fragment,e),i=!0)},o:function(e){Xe(t.$$.fragment,e),i=!1},d:function(e){rt(t,e)}}}function su(e){var t,i;return t=new ll({}),{c:function(){st(t.$$.fragment)},m:function(e,n){ot(t,e,n),i=!0},p:v,i:function(e){i||(Ye(t.$$.fragment,e),i=!0)},o:function(e){Xe(t.$$.fragment,e),i=!1},d:function(e){rt(t,e)}}}function ou(e){var t,i,n,a,s=function(e,t){return e[16]?0:1},o=[lu,ru],r=[];return t=s(e),i=r[t]=o[t](e),{c:function(){i.c(),n=te()},m:function(e,i){r[t].m(e,i),J(e,n,i),a=!0},p:function(e,a){var l=t;(t=s(e))===l?r[t].p(e,a):(Qe(),Xe(r[l],1,1,(function(){r[l]=null})),Ke(),(i=r[t])?i.p(e,a):(i=r[t]=o[t](e)).c(),Ye(i,1),i.m(n.parentNode,n))},i:function(e){a||(Ye(i),a=!0)},o:function(e){Xe(i),a=!1},d:function(e){e&&Q(n),r[t].d(e)}}}function ru(e){var t,i;return t=new po({props:{color:e[17]}}),{c:function(){st(t.$$.fragment)},m:function(e,n){ot(t,e,n),i=!0},p:function(e,i){var n={};131072&i[0]&&(n.color=e[17]),t.$set(n)},i:function(e){i||(Ye(t.$$.fragment,e),i=!0)},o:function(e){Xe(t.$$.fragment,e),i=!1},d:function(e){rt(t,e)}}}function lu(e){var t,i;return t=new ol({}),{c:function(){st(t.$$.fragment)},m:function(e,n){ot(t,e,n),i=!0},p:v,i:function(e){i||(Ye(t.$$.fragment,e),i=!0)},o:function(e){Xe(t.$$.fragment,e),i=!1},d:function(e){rt(t,e)}}}function uu(e){var t,i,n,a,s=function(e,t){return"POST"===e[5]||"EXIT"===e[5]?0:e[16]?1:2},o=[ou,su,au],r=[];return i=s(e),n=r[i]=o[i](e),{c:function(){t=Y("div"),n.c(),se(t,"slot","normal")},m:function(e,n){J(e,t,n),r[i].m(t,null),a=!0},p:function(e,a){var l=i;(i=s(e))===l?r[i].p(e,a):(Qe(),Xe(r[l],1,1,(function(){r[l]=null})),Ke(),(n=r[i])?n.p(e,a):(n=r[i]=o[i](e)).c(),Ye(n,1),n.m(t,null))},i:function(e){a||(Ye(n),a=!0)},o:function(e){Xe(n),a=!1},d:function(e){e&&Q(t),r[i].d()}}}function du(e){var t,i;return t=new Bn({props:{color:e[17]}}),{c:function(){st(t.$$.fragment)},m:function(e,n){ot(t,e,n),i=!0},p:function(e,i){var n={};131072&i[0]&&(n.color=e[17]),t.$set(n)},i:function(e){i||(Ye(t.$$.fragment,e),i=!0)},o:function(e){Xe(t.$$.fragment,e),i=!1},d:function(e){rt(t,e)}}}function cu(e){var t,i;return t=new dl({}),{c:function(){st(t.$$.fragment)},m:function(e,n){ot(t,e,n),i=!0},p:v,i:function(e){i||(Ye(t.$$.fragment,e),i=!0)},o:function(e){Xe(t.$$.fragment,e),i=!1},d:function(e){rt(t,e)}}}function hu(e){var t,i,n,a,s=function(e,t){return e[16]?0:1},o=[cu,du],r=[];return i=s(e),n=r[i]=o[i](e),{c:function(){t=Y("div"),n.c(),se(t,"slot","toggled")},m:function(e,n){J(e,t,n),r[i].m(t,null),a=!0},p:function(e,a){var l=i;(i=s(e))===l?r[i].p(e,a):(Qe(),Xe(r[l],1,1,(function(){r[l]=null})),Ke(),(n=r[i])?n.p(e,a):(n=r[i]=o[i](e)).c(),Ye(n,1),n.m(t,null))},i:function(e){a||(Ye(n),a=!0)},o:function(e){Xe(n),a=!1},d:function(e){e&&Q(t),r[i].d()}}}function pu(e){var t,i,n=kt(e[22])+"";return{c:function(){t=Y("div"),i=Z(n),se(t,"class","start-time svelte-1s2v0sn"),se(t,"data-cy","start-screen-duration"),de(t,"margin-top",e[39]?"var(--margin-size)":"calc(-8px + var(--margin-size))"),de(t,"margin-left",["icon",void 0].includes(e[3].centerButtonType)?"2px":"0")},m:function(e,n){J(e,t,n),F(t,i)},p:function(e,a){4194304&a[0]&&n!==(n=kt(e[22])+"")&&le(i,n),256&a[1]&&de(t,"margin-top",e[39]?"var(--margin-size)":"calc(-8px + var(--margin-size))"),8&a[0]&&de(t,"margin-left",["icon",void 0].includes(e[3].centerButtonType)?"2px":"0")},d:function(e){e&&Q(t)}}}function _u(e){var t,i,n,a,s,o;return i=new pi({props:{iconHeight:Math.round(e[34]/1.667),hoverTransform:"scale(1.1)",name:"playNext",hideToolTip:!0,$$slots:{normal:[fu]},$$scope:{ctx:e}}}),{c:function(){t=Y("div"),st(i.$$.fragment),se(t,"class","prev-back-button svelte-1s2v0sn"),se(t,"style",n=e[0]("seekButtons"))},m:function(n,r){J(n,t,r),ot(i,t,null),a=!0,s||(o=ie(t,"click",e[110]),s=!0)},p:function(e,s){var o={};8&s[1]&&(o.iconHeight=Math.round(e[34]/1.667)),8&s[4]&&(o.$$scope={dirty:s,ctx:e}),i.$set(o),(!a||1&s[0]&&n!==(n=e[0]("seekButtons")))&&se(t,"style",n)},i:function(e){a||(Ye(i.$$.fragment,e),a=!0)},o:function(e){Xe(i.$$.fragment,e),a=!1},d:function(e){e&&Q(t),rt(i),s=!1,o()}}}function mu(e){var t,i,n=!e[20]&&(!e[13]||e[13]&&e[12])&&vu(e);return{c:function(){n&&n.c(),t=te()},m:function(e,a){n&&n.m(e,a),J(e,t,a),i=!0},p:function(e,i){!e[20]&&(!e[13]||e[13]&&e[12])?n?(n.p(e,i),1060864&i[0]&&Ye(n,1)):((n=vu(e)).c(),Ye(n,1),n.m(t.parentNode,t)):n&&(Qe(),Xe(n,1,1,(function(){n=null})),Ke())},i:function(e){i||(Ye(n),i=!0)},o:function(e){Xe(n),i=!1},d:function(e){e&&Q(t),n&&n.d(e)}}}function fu(e){var t,i,n;return i=new hl({}),{c:function(){t=Y("div"),st(i.$$.fragment),se(t,"slot","normal")},m:function(e,a){J(e,t,a),ot(i,t,null),n=!0},p:v,i:function(e){n||(Ye(i.$$.fragment,e),n=!0)},o:function(e){Xe(i.$$.fragment,e),n=!1},d:function(e){e&&Q(t),rt(i)}}}function vu(e){var t,i,n,a,s,o;return i=new pi({props:{iconHeight:Math.round(e[34]/1.667),hoverTransform:"scale(1.1)",name:"forwardVideo",hideToolTip:!0,disabled:e[23]&&e[24]>-2,$$slots:{normal:[gu]},$$scope:{ctx:e}}}),{c:function(){t=Y("div"),st(i.$$.fragment),se(t,"class","prev-back-button svelte-1s2v0sn"),se(t,"style",n=e[0]("seekButtons")),se(t,"data-cy","forward-button")},m:function(n,r){J(n,t,r),ot(i,t,null),a=!0,s||(o=ie(t,"click",e[109]),s=!0)},p:function(e,s){var o={};8&s[1]&&(o.iconHeight=Math.round(e[34]/1.667)),25165824&s[0]&&(o.disabled=e[23]&&e[24]>-2),8&s[4]&&(o.$$scope={dirty:s,ctx:e}),i.$set(o),(!a||1&s[0]&&n!==(n=e[0]("seekButtons")))&&se(t,"style",n)},i:function(e){a||(Ye(i.$$.fragment,e),a=!0)},o:function(e){Xe(i.$$.fragment,e),a=!1},d:function(e){e&&Q(t),rt(i),s=!1,o()}}}function gu(e){var t,i,n;return i=new al({}),{c:function(){t=Y("div"),st(i.$$.fragment),se(t,"slot","normal")},m:function(e,a){J(e,t,a),ot(i,t,null),n=!0},p:v,i:function(e){n||(Ye(i.$$.fragment,e),n=!0)},o:function(e){Xe(i.$$.fragment,e),n=!1},d:function(e){e&&Q(t),rt(i)}}}function yu(e){var t,i;return(t=new Pl({})).$on("cancel",e[111]),t.$on("ended",e[112]),t.$on("showRelated",e[113]),{c:function(){st(t.$$.fragment)},m:function(e,n){ot(t,e,n),i=!0},p:v,i:function(e){i||(Ye(t.$$.fragment,e),i=!0)},o:function(e){Xe(t.$$.fragment,e),i=!1},d:function(e){rt(t,e)}}}function bu(e){var t,i,n,a,s,o,r,l,u,d,c,h,p;s=new Qt({props:{$$slots:{default:[ku]},$$scope:{ctx:e}}});var _=(e[13]||(null==(t=e[8])?void 0:t.length))&&wu(e);return l=new zl({props:{items:e[4],autoPlayNext:e[11]}}),{c:function(){var t;i=Y("div"),n=Y("div"),a=Y("h2"),st(s.$$.fragment),o=ee(),_&&_.c(),r=ee(),st(l.$$.fragment),se(n,"class","header svelte-1s2v0sn"),se(i,"class","related-items svelte-1s2v0sn"),se(i,"style",u=null!=(t=e[6].relatedItems)&&t.hidden?"opacity: 0; visibility: hidden;":""),he(i,"using-scrubbar",e[44]),he(i,"playing",e[7]),he(i,"waiting",e[9])},m:function(t,u){J(t,i,u),F(i,n),F(n,a),ot(s,a,null),F(n,o),_&&_.m(n,null),F(i,r),ot(l,i,null),c=!0,h||(p=[ie(i,"mouseenter",e[51]),ie(i,"focus",e[51]),ie(i,"mouseleave",e[50]),ie(i,"blur",e[50])],h=!0)},p:function(e,t){var a,o,r={};8&t[4]&&(r.$$scope={dirty:t,ctx:e}),s.$set(r),e[13]||null!=(a=e[8])&&a.length?_?(_.p(e,t),8448&t[0]&&Ye(_,1)):((_=wu(e)).c(),Ye(_,1),_.m(n,null)):_&&(Qe(),Xe(_,1,1,(function(){_=null})),Ke());var d={};16&t[0]&&(d.items=e[4]),2048&t[0]&&(d.autoPlayNext=e[11]),l.$set(d),(!c||64&t[0]&&u!==(u=null!=(o=e[6].relatedItems)&&o.hidden?"opacity: 0; visibility: hidden;":""))&&se(i,"style",u),(!c||8192&t[1])&&he(i,"using-scrubbar",e[44]),(!c||128&t[0])&&he(i,"playing",e[7]),(!c||512&t[0])&&he(i,"waiting",e[9])},i:function(e){c||(Ye(s.$$.fragment,e),Ye(_),Ye(l.$$.fragment,e),qe((function(){c&&(d||(d=it(i,Ft,{duration:300},!0)),d.run(1))})),c=!0)},o:function(e){Xe(s.$$.fragment,e),Xe(_),Xe(l.$$.fragment,e),d||(d=it(i,Ft,{duration:300},!1)),d.run(0),c=!1},d:function(e){e&&Q(i),rt(s),_&&_.d(),rt(l),e&&d&&d.end(),h=!1,w(p)}}}function ku(e){var t;return{c:function(){t=Z("Related videos")},m:function(e,i){J(e,t,i)},d:function(e){e&&Q(t)}}}function wu(e){var t,i,n,a,s;return i=new pi({props:{iconHeight:.7*e[45],bgColor:"rgba(33, 33, 33, 0.7)",$$slots:{normal:[$u]},$$scope:{ctx:e}}}),{c:function(){t=Y("div"),st(i.$$.fragment),se(t,"class","cancel svelte-1s2v0sn")},m:function(o,r){J(o,t,r),ot(i,t,null),n=!0,a||(s=ie(t,"click",e[114]),a=!0)},p:function(e,t){var n={};16384&t[1]&&(n.iconHeight=.7*e[45]),8&t[4]&&(n.$$scope={dirty:t,ctx:e}),i.$set(n)},i:function(e){n||(Ye(i.$$.fragment,e),n=!0)},o:function(e){Xe(i.$$.fragment,e),n=!1},d:function(e){e&&Q(t),rt(i),a=!1,s()}}}function $u(e){var t,i,n;return i=new bi({}),{c:function(){t=Y("div"),st(i.$$.fragment),se(t,"slot","normal"),se(t,"class","button")},m:function(e,a){J(e,t,a),ot(i,t,null),n=!0},p:v,i:function(e){n||(Ye(i.$$.fragment,e),n=!0)},o:function(e){Xe(i.$$.fragment,e),n=!1},d:function(e){e&&Q(t),rt(i)}}}function Cu(e){var t,i,n,a,s,o,r,l,u;a=new pi({props:{buttonPosition:"relative",bgBorderRadius:e[48]+"px",name:"close",hideToolTip:!0,iconHeight:.8*e[45],bgHeight:e[48]+"px",standalone:!0,text:e[49]?"":"Related videos",$$slots:{normal:[Su]},$$scope:{ctx:e}}});var d=(null==(t=e[8])?void 0:t.length)&&Pu();return{c:function(){i=Y("div"),n=Y("div"),st(a.$$.fragment),o=ee(),d&&d.c(),se(n,"class","toggle-related-button svelte-1s2v0sn"),se(i,"class","button-container svelte-1s2v0sn"),he(i,"hovering-scrubbar",e[46]||e[47])},m:function(t,s){J(t,i,s),F(i,n),ot(a,n,null),F(i,o),d&&d.m(i,null),r=!0,l||(u=ie(n,"click",e[115]),l=!0)},p:function(e,t){var n,s={};131072&t[1]&&(s.bgBorderRadius=e[48]+"px"),16384&t[1]&&(s.iconHeight=.8*e[45]),131072&t[1]&&(s.bgHeight=e[48]+"px"),262144&t[1]&&(s.text=e[49]?"":"Related videos"),8&t[4]&&(s.$$scope={dirty:t,ctx:e}),a.$set(s),null!=(n=e[8])&&n.length?d?256&t[0]&&Ye(d,1):((d=Pu()).c(),Ye(d,1),d.m(i,null)):d&&(Qe(),Xe(d,1,1,(function(){d=null})),Ke()),(!r||98304&t[1])&&he(i,"hovering-scrubbar",e[46]||e[47])},i:function(e){r||(Ye(a.$$.fragment,e),e&&qe((function(){r&&(s||(s=it(n,Ft,{duration:300},!0)),s.run(1))})),Ye(d),r=!0)},o:function(e){Xe(a.$$.fragment,e),e&&(s||(s=it(n,Ft,{duration:300},!1)),s.run(0)),Xe(d),r=!1},d:function(e){e&&Q(i),rt(a),e&&s&&s.end(),d&&d.d(),l=!1,u()}}}function Su(e){var t,i,n;return i=new _l({}),{c:function(){t=Y("div"),st(i.$$.fragment),se(t,"slot","normal"),se(t,"class","button")},m:function(e,a){J(e,t,a),ot(i,t,null),n=!0},p:v,i:function(e){n||(Ye(i.$$.fragment,e),n=!0)},o:function(e){Xe(i.$$.fragment,e),n=!1},d:function(e){e&&Q(t),rt(i)}}}function Pu(e){var t,i;return t=new Ra({props:{placeholder:!0}}),{c:function(){st(t.$$.fragment)},m:function(e,n){ot(t,e,n),i=!0},i:function(e){i||(Ye(t.$$.fragment,e),i=!0)},o:function(e){Xe(t.$$.fragment,e),i=!1},d:function(e){rt(t,e)}}}function xu(e){var t,i,n,a,s;return i=new pi({props:{bgSize:"36px",iconHeight:18,name:"replayButton",hideToolTip:!0,$$slots:{normal:[Au]},$$scope:{ctx:e}}}),{c:function(){t=Y("div"),st(i.$$.fragment),se(t,"class","mobile-replay-button svelte-1s2v0sn")},m:function(o,r){J(o,t,r),ot(i,t,null),n=!0,a||(s=ie(t,"click",e[99]),a=!0)},p:function(e,t){var n={};131072&t[0]|8&t[4]&&(n.$$scope={dirty:t,ctx:e}),i.$set(n)},i:function(e){n||(Ye(i.$$.fragment,e),n=!0)},o:function(e){Xe(i.$$.fragment,e),n=!1},d:function(e){e&&Q(t),rt(i),a=!1,s()}}}function Au(e){var t,i,n;return i=new po({props:{color:e[17]}}),{c:function(){t=Y("div"),st(i.$$.fragment),se(t,"slot","normal"),se(t,"class","button")},m:function(e,a){J(e,t,a),ot(i,t,null),n=!0},p:function(e,t){var n={};131072&t[0]&&(n.color=e[17]),i.$set(n)},i:function(e){n||(Ye(i.$$.fragment,e),n=!0)},o:function(e){Xe(i.$$.fragment,e),n=!1},d:function(e){e&&Q(t),rt(i)}}}function Iu(e){var t,i,n,a,s,o,r,l,u,d,c,h,p,_,m,f=function(e,t){return"MAIN"!==e[5]||"error"===e[32]||e[11]||e[33]&&!e[23]?e[10]?1:-1:0},v=function(e,t){return"MAIN"!==e[5]||"error"===e[32]||e[11]||e[33]&&!e[23]?!e[10]||e[2]&&!e[12]?-1:1:0},g=e[53](e[28]),y=g&&jl(e),b=[Kl,Ql],k=[];~(a=f(e))&&(s=k[a]=b[a](e));var w=!e[35]&&(!e[11]||e[10])&&Zl(e),$=[mu,_u],C=[];~(l=v(e))&&(u=C[l]=$[l](e));var S=e[11]&&!e[10]&&(!e[2]||"EXIT"===e[5]&&e[2]&&e[12])&&yu(e),P=(null==(t=e[4])?void 0:t.length)&&bu(e),x=e[12]&&e[13]&&!e[1]&&Cu(e),A=e[49]&&"EXIT"===e[5]&&e[12]&&!!e[3].autoPlayNext&&xu(e);return{c:function(){i=Y("div"),y&&y.c(),n=ee(),s&&s.c(),o=ee(),w&&w.c(),r=ee(),u&&u.c(),d=ee(),S&&S.c(),c=ee(),P&&P.c(),h=ee(),x&&x.c(),p=ee(),A&&A.c(),se(i,"class",_="center-controls skinsize-"+e[25]+" svelte-1s2v0sn"),he(i,"mounted-controlbar",e[27]),de(i,"--gap-size",e[26]+"px")},m:function(e,t){J(e,i,t),y&&y.m(i,null),F(i,n),~a&&k[a].m(i,null),F(i,o),w&&w.m(i,null),F(i,r),~l&&C[l].m(i,null),F(i,d),S&&S.m(i,null),F(i,c),P&&P.m(i,null),F(i,h),x&&x.m(i,null),F(i,p),A&&A.m(i,null),m=!0},p:function(e,t){var I;268435456&t[0]&&(g=e[53](e[28])),g?y?(y.p(e,t),268435456&t[0]&&Ye(y,1)):((y=jl(e)).c(),Ye(y,1),y.m(i,n)):y&&(Qe(),Xe(y,1,1,(function(){y=null})),Ke());var T=a;(a=f(e))===T?~a&&k[a].p(e,t):(s&&(Qe(),Xe(k[T],1,1,(function(){k[T]=null})),Ke()),~a?((s=k[a])?s.p(e,t):(s=k[a]=b[a](e)).c(),Ye(s,1),s.m(i,o)):s=null),e[35]||e[11]&&!e[10]?w&&(Qe(),Xe(w,1,1,(function(){w=null})),Ke()):w?(w.p(e,t),3072&t[0]|16&t[1]&&Ye(w,1)):((w=Zl(e)).c(),Ye(w,1),w.m(i,r));var D=l;(l=v(e))===D?~l&&C[l].p(e,t):(u&&(Qe(),Xe(C[D],1,1,(function(){C[D]=null})),Ke()),~l?((u=C[l])?u.p(e,t):(u=C[l]=$[l](e)).c(),Ye(u,1),u.m(i,d)):u=null),e[11]&&!e[10]&&(!e[2]||"EXIT"===e[5]&&e[2]&&e[12])?S?(S.p(e,t),7204&t[0]&&Ye(S,1)):((S=yu(e)).c(),Ye(S,1),S.m(i,c)):S&&(Qe(),Xe(S,1,1,(function(){S=null})),Ke()),null!=(I=e[4])&&I.length?P?(P.p(e,t),16&t[0]&&Ye(P,1)):((P=bu(e)).c(),Ye(P,1),P.m(i,h)):P&&(Qe(),Xe(P,1,1,(function(){P=null})),Ke()),e[12]&&e[13]&&!e[1]?x?(x.p(e,t),12290&t[0]&&Ye(x,1)):((x=Cu(e)).c(),Ye(x,1),x.m(i,p)):x&&(Qe(),Xe(x,1,1,(function(){x=null})),Ke()),e[49]&&"EXIT"===e[5]&&e[12]&&e[3].autoPlayNext?A?(A.p(e,t),4136&t[0]|262144&t[1]&&Ye(A,1)):((A=xu(e)).c(),Ye(A,1),A.m(i,null)):A&&(Qe(),Xe(A,1,1,(function(){A=null})),Ke()),(!m||33554432&t[0]&&_!==(_="center-controls skinsize-"+e[25]+" svelte-1s2v0sn"))&&se(i,"class",_),(!m||167772160&t[0])&&he(i,"mounted-controlbar",e[27]),67108864&t[0]&&de(i,"--gap-size",e[26]+"px")},i:function(e){m||(Ye(y),Ye(s),Ye(w),Ye(u),Ye(S),Ye(P),Ye(x),Ye(A),m=!0)},o:function(e){Xe(y),Xe(s),Xe(w),Xe(u),Xe(S),Xe(P),Xe(x),Xe(A),m=!1},d:function(e){e&&Q(i),y&&y.d(),~a&&k[a].d(),w&&w.d(),~l&&C[l].d(),S&&S.d(),P&&P.d(),x&&x.d(),A&&A.d()}}}function Tu(e,t,i){var n,a,s,o,l,u,d,c,h,p,_,m,f,v,g,y,b,k,w,$,C,S,P,I,T,D,E,M,B,L,R,H,q,O,z,V,j,F,N,U,W,G,J,Q,K,Y,X,Z,ee,te,ie,ne,ae,se=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;ve(Math.min(P+e,S?0:C))},oe=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;ve(Math.max(P-e,S?C:0))},re=function(e){var t,n,a,s;ge(null==(t=y[0])?void 0:t.id,null==(n=y[0])?void 0:n.type,null==(a=y[0])?void 0:a.deeplink,null==(s=y[0])?void 0:s.gendeeplink,e),i(10,vt=!1)},le=function(){i(10,vt=!0),de(!0)},ue=function(){re("autoPlayNext")},de=function(e){var t,i=!1===(void 0!==e?e:!(null==(t=null==f?void 0:f.relatedItems)||!t.hidden))||void 0;nt.set(r.default({},f,{relatedItems:{hidden:i}})),Je.set(x(Je)+1)},ce=t.iStyle,he=t.hideRelatedButton,pe=void 0!==he&&he,_e=Ae(zt),me=_e.continueCountdown,fe=_e.pauseCountdown,ve=_e.seekTo,ge=_e.loadRelatedItem,ye=_e.showCastTargets,be=_e.castingActive,ke=_e.api,we=_e.gapSize,$e=_e.centerButtonSize,Ce=_e.centerButtonBgSize,Pe=_e.centerButtonBorder,xe=_e.centerButtonBorderWidth,Ie=_e.bigIconSize,Te=_e.useMobileToggleRelated,De=_e.skinSizeHeight,Ee=_e.screenXXS,Me=_e.hoveringScrubbar,Be=_e.configPaneOpen,Le=_e.barButtonSize,Re=_e.barIconSize,He=_e.accentColor,qe=_e.currentTime,Oe=_e.duration,ze=_e.phase,Ve=_e.playerWidth,je=_e.playState,Fe=_e.playing,Ne=_e.detections,Ue=_e.waiting,We=_e.mountedControlbar,Ge=_e.mouseOverInterface,Je=_e.triggeredRelated,Qe=_e.livePlayer,Ke=_e.livePlayerWithDvr,Ye=_e.foregroundColor,Xe=_e.iconContrastColor,Ze=_e.castSession,et=_e.castState,tt=_e.started,it=_e.touchMode,nt=_e.callOverrides,at=_e.relatedItems,st=_e.usingScrubbar,ot=_e.playout,rt=_e.elementVisibility,lt=_e.entity,ut=_e.castType,dt=_e.play,ct=_e.pause,ht=_e.highlightList,pt=_e.softEmbargoText,_t=_e.softEmbargoTimerActive,mt=_e.softEmbargoTimerTime,ft=_e.notificationButtonActive;A(e,we,(function(e){return i(26,L=e)})),A(e,$e,(function(e){return i(40,Q=e)})),A(e,Ce,(function(e){return i(39,J=e)})),A(e,Pe,(function(e){return i(41,K=e)})),A(e,xe,(function(e){return i(43,X=e)})),A(e,Ie,(function(e){return i(34,F=e)})),A(e,Te,(function(e){return i(2,v=e)})),A(e,De,(function(e){return i(25,B=e)})),A(e,Ee,(function(e){return i(49,ae=e)})),A(e,Me,(function(e){return i(46,te=e)})),A(e,Be,(function(e){return i(47,ie=e)})),A(e,Le,(function(e){return i(48,ne=e)})),A(e,Re,(function(e){return i(45,ee=e)})),A(e,He,(function(e){return i(106,D=e)})),A(e,qe,(function(e){return i(24,P=e)})),A(e,Oe,(function(e){return i(22,C=e)})),A(e,ze,(function(e){return i(5,b=e)})),A(e,Ve,(function(e){return i(42,Y=e)})),A(e,je,(function(e){return i(32,V=e)})),A(e,Fe,(function(e){return i(7,w=e)})),A(e,Ne,(function(e){return i(107,E=e)})),A(e,Ue,(function(e){return i(9,M=e)})),A(e,We,(function(e){return i(27,R=e)})),A(e,Qe,(function(e){return i(33,j=e)})),A(e,Ke,(function(e){return i(23,S=e)})),A(e,Ye,(function(e){return i(104,I=e)})),A(e,Xe,(function(e){return i(105,T=e)})),A(e,Ze,(function(e){return i(31,z=e)})),A(e,et,(function(e){return i(28,H=e)})),A(e,tt,(function(e){return i(30,O=e)})),A(e,it,(function(e){return i(116,m=e)})),A(e,nt,(function(e){return i(117,f=e)})),A(e,at,(function(e){return i(4,y=e)})),A(e,st,(function(e){return i(44,Z=e)})),A(e,ot,(function(e){return i(3,g=e)})),A(e,rt,(function(e){return i(6,k=e)})),A(e,ut,(function(e){return i(29,q=e)})),A(e,ht,(function(e){return i(8,$=e)})),A(e,pt,(function(e){return i(37,W=e)})),A(e,_t,(function(e){return i(36,U=e)})),A(e,mt,(function(e){return i(38,G=e)})),A(e,ft,(function(e){return i(35,N=e)}));var vt=!1,gt=[];Se((function(){gt.forEach((function(e){return e()}))})),gt.push(lt.subscribe((function(){i(10,vt=!1)}))),gt.push(Te.subscribe((function(e){de(!e||"EXIT"===b&&!n)}))),gt.push(ze.subscribe((function(e){"EXIT"===e&&null!=y&&y.length&&!g.autoPlayNext&&de(!0),"PRE"===e&&v&&de(!1)})));return e.$$set=function(e){"iStyle"in e&&i(0,ce=e.iStyle),"hideRelatedButton"in e&&i(1,pe=e.hideRelatedButton)},e.$$.update=function(){var t;56&e.$$.dirty[0]&&i(11,n="EXIT"===b&&(null==y?void 0:y.length)&&!!g.autoPlayNext),640&e.$$.dirty[0]&&i(21,a=M&&w),16384&e.$$.dirty[3]&&i(20,s=null==E?void 0:E.isMobileDevice),8&e.$$.dirty[0]|8192&e.$$.dirty[3]&&i(19,o=function(e,t){return["round","square","outline"].includes(e)?t:["inversed"].includes(e)?"transparent":["outline"].includes(e)?"white":"transparent"}(g.centerButtonType,D)),8&e.$$.dirty[0]&&i(18,l="square"===g.centerButtonType?"2px":"50%"),8&e.$$.dirty[0]|6144&e.$$.dirty[3]&&i(17,u="inversed"===g.centerButtonType?"transparent":["round","square","outline"].includes(g.centerButtonType)?T:I),8&e.$$.dirty[0]&&i(16,d="inversed"===g.centerButtonType),8&e.$$.dirty[0]&&i(15,c=(null==g?void 0:g.softEmbargoTimerHidden)||!1),8&e.$$.dirty[0]&&i(14,h="#"+((null==g?void 0:g.softEmbargoFontColor)||"ffffff")),444&e.$$.dirty[0]&&i(13,p=(null==y?void 0:y.length)&&(v||(null==$?void 0:$.length))&&("EXIT"===b&&"show"===g.relatedItems||!w&&"MAIN"===b&&"show"===g.relatedItemsPause)),64&e.$$.dirty[0]&&i(12,_=!(null==(t=null==k?void 0:k.relatedItems)||!t.hidden))},[ce,pe,v,g,y,b,k,w,$,M,vt,n,_,p,h,c,d,u,l,o,s,a,C,S,P,B,L,R,H,q,O,z,V,j,F,N,U,W,G,J,Q,K,Y,X,Z,ee,te,ie,ne,ae,me,fe,ye,be,we,$e,Ce,Pe,xe,Ie,Te,De,Ee,Me,Be,Le,Re,He,qe,Oe,ze,Ve,je,Fe,Ne,Ue,We,Qe,Ke,Ye,Xe,Ze,et,tt,it,nt,at,st,ot,rt,ut,ht,pt,_t,mt,ft,se,oe,re,function(){ke&&(w?ct():dt())},le,ue,de,function(){m||Ge.set(!1)},I,T,D,E,function(){return oe()},function(){return se()},function(){return re("RelatedItem")},function(){return le()},function(){return ue()},function(){return de()},function(){return de()},function(){return de()}]}var Du=function(e){l.default(i,e);var t=u.default(i);function i(e){var n;return a.default(this,i),n=t.call(this),ut(d.default(n),e,Tu,Iu,C,{iStyle:0,hideRelatedButton:1},Vl,[-1,-1,-1,-1,-1]),c.default(n)}return i}(dt);function Eu(e){var t,i,n;return(i=new on({props:{menuName:"Chapters",options:e[1],optionActiveIndex:e[1].findIndex(e[9]),hideHeaderArrow:!0,alignLeft:!e[3]}})).$on("headerClick",e[10]),i.$on("itemClick",e[11]),{c:function(){t=Y("div"),st(i.$$.fragment)},m:function(a,s){J(a,t,s),ot(i,t,null),e[12](t),n=!0},p:function(e,t){var n=o.default(t,1)[0],a={};2&n&&(a.options=e[1]),6&n&&(a.optionActiveIndex=e[1].findIndex(e[9])),8&n&&(a.alignLeft=!e[3]),i.$set(a)},i:function(e){n||(Ye(i.$$.fragment,e),n=!0)},o:function(e){Xe(i.$$.fragment,e),n=!1},d:function(n){n&&Q(t),rt(i),e[12](null)}}}function Mu(e,t,i){var n,a,s,o=function(e){d.set(-1),c(Math.max(e,.01),!0),m("toggle")},r=Ae(zt),l=r.chapterList,u=r.currentChapter,d=r.hoverChapterIndex,c=r.seekTo,h=r.trapAriaTabFocus,p=r.mountedControlbar;A(e,l,(function(e){return i(1,n=e)})),A(e,u,(function(e){return i(2,a=e)})),A(e,p,(function(e){return i(3,s=e)}));var _,m=Pe();Ce((function(){h(_,".button-content")}));return[_,n,a,s,l,u,p,m,o,function(e){return e.id===(null==a?void 0:a.id)},function(){return m("toggle")},function(e){var t;return o(null==(t=e.detail)?void 0:t.start)},function(e){De[e?"unshift":"push"]((function(){i(0,_=e)}))}]}var Bu=function(e){l.default(i,e);var t=u.default(i);function i(e){var n;return a.default(this,i),n=t.call(this),ut(d.default(n),e,Mu,Eu,C,{}),c.default(n)}return i}(dt);function Lu(e){var t,i;return{c:function(){t=X("svg"),se(i=X("path"),"d","M2.01 14.404c3.022 0 6.306-.152 9.072-1.793C14.023 10.864 16 7.389 16 3.964h-2.105c0 2.738-1.573 5.513-3.916 6.905-2.571 1.526-5.826 1.507-8.977 1.489H0V14.4h.988 1.017l.005.005zm11.885 3.619H.005V20h13.89v-1.977zM9.571 0v1.968c0 4.974-2.87 5.992-7.18 5.992H.014v2.074H2.39c2.305 0 9.319 0 9.319-8.066V0H9.571z"),se(t,"xmlns","http://www.w3.org/2000/svg"),se(t,"viewBox","0 0 25 20"),se(t,"fill","#fff")},m:function(e,n){J(e,t,n),F(t,i)},p:v,i:v,o:v,d:function(e){e&&Q(t)}}}var Ru=function(e){l.default(i,e);var t=u.default(i);function i(e){var n;return a.default(this,i),n=t.call(this),ut(d.default(n),e,null,Lu,C,{}),c.default(n)}return i}(dt);function Hu(e){var t,i;return{c:function(){t=X("svg"),se(i=X("path"),"d","M21.333.5H2.667C1.194.5 0 1.694 0 3.167v10.667C0 15.306 1.194 16.5 2.667 16.5h18.667c1.473 0 2.667-1.194 2.667-2.667V3.167A2.67 2.67 0 0 0 21.333.5zM22 13.833a.67.67 0 0 1-.667.667H2.667A.67.67 0 0 1 2 13.833V3.167a.67.67 0 0 1 .667-.667h18.667a.67.67 0 0 1 .667.667v10.667zM5.833 4.167h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1c0-.279-.221-.5-.5-.5zm2.333 2h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1c0 .279.221.5.5.5zm3.333 0h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1c0 .279.221.5.5.5zm3.333 0h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1c0 .279.221.5.5.5zm4.333-2h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1c0-.279-.221-.5-.5-.5zM5.833 7.5h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5V8c0-.279-.221-.5-.5-.5zm2.333 2h1a.5.5 0 0 0 .5-.5V8a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1c0 .279.221.5.5.5zm3.333 0h1A.5.5 0 0 0 13 9V8a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1c0 .279.221.5.5.5zm3.333 0h1a.5.5 0 0 0 .5-.5V8a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1c0 .279.221.5.5.5zm4.333-2h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5V8c0-.279-.221-.5-.5-.5zm-2.5 3.667H7.333c-.371 0-.667.296-.667.667v.667c0 .37.297.667.667.667h9.333c.37 0 .667-.297.667-.667v-.667c0-.371-.296-.667-.667-.667z"),se(i,"fill","#fff"),se(t,"xmlns","http://www.w3.org/2000/svg"),se(t,"viewBox","0 0 25 17"),se(t,"fill","none")},m:function(e,n){J(e,t,n),F(t,i)},p:v,i:v,o:v,d:function(e){e&&Q(t)}}}var qu=function(e){l.default(i,e);var t=u.default(i);function i(e){var n;return a.default(this,i),n=t.call(this),ut(d.default(n),e,null,Hu,C,{}),c.default(n)}return i}(dt);function Ou(e){var t,i,n=e[4].length&&function(e){var t,i,n,a;return(i=new on({props:{customPos:!0,menuName:"custom",hideHeader:!0,options:e[4],optionActiveIndex:-1}})).$on("itemClick",e[8]),{c:function(){var a,s,o,r;t=Y("div"),st(i.$$.fragment),se(t,"class","context-menu-inner"),se(t,"style",n="transform:".concat((null!=(a=e[0])&&a.x?"translateX("+(null==(s=e[0])?void 0:s.x)+")":"")+(null!=(o=e[0])&&o.y?"translateY("+(null==(r=e[0])?void 0:r.y)+")":"")))},m:function(n,s){J(n,t,s),ot(i,t,null),e[9](t),a=!0},p:function(e,i){var s,o,r,l;(!a||1&i&&n!==(n="transform:".concat((null!=(s=e[0])&&s.x?"translateX("+(null==(o=e[0])?void 0:o.x)+")":"")+(null!=(r=e[0])&&r.y?"translateY("+(null==(l=e[0])?void 0:l.y)+")":""))))&&se(t,"style",n)},i:function(e){a||(Ye(i.$$.fragment,e),a=!0)},o:function(e){Xe(i.$$.fragment,e),a=!1},d:function(n){n&&Q(t),rt(i),e[9](null)}}}(e);return{c:function(){n&&n.c(),t=te()},m:function(e,a){n&&n.m(e,a),J(e,t,a),i=!0},p:function(e,t){var i=o.default(t,1)[0];e[4].length&&n.p(e,i)},i:function(e){i||(Ye(n),i=!0)},o:function(e){Xe(n),i=!1},d:function(e){e&&Q(t),n&&n.d(e)}}}function zu(e,t,i){var n,a,s,o=function(e){var t;"keyboard_shortcuts"===(null==(t=null==e?void 0:e.detail)?void 0:t.value)&&u.set(!0),null==f||f()},r=Ae(zt),l=r.api,u=r.keyboardShortcutPaneOpen,d=r.playout,c=r.translate,h=r.skinMode,p=r.trapAriaTabFocus,_=r.userDisabledShortcuts;A(e,d,(function(e){return i(11,s=e)})),A(e,_,(function(e){return i(10,a=e)}));var m,f=t.onItemSelected,v=t.transform,g=void 0===v?{}:v,y=t.contextMenuByMouseClick,b=void 0===y||y,k=null==(n=null==l?void 0:l.getPublicationData)?void 0:n.call(l),w="https://www.bluebillywig.com/?utm_medium=referral&utm_campaign=player-traffic".concat(null!=k&&k.name?"&pp="+encodeURIComponent(k.name)+"&utm_source="+encodeURIComponent(k.name):"&utm_source=bbvms"),$=[];Ce((function(){p(m,".button-content",0,!b)})),s.disableContextMenuNavigate||$.push({label:c("Blue Billywig video player"),value:"bluebillywig",href:w,icon:Ru}),(!s.disableKeyboardControls||a)&&"main"===h&&$.push({label:c("Keyboard shortcuts"),value:"keyboard_shortcuts",icon:qu});return e.$$set=function(e){"onItemSelected"in e&&i(6,f=e.onItemSelected),"transform"in e&&i(0,g=e.transform),"contextMenuByMouseClick"in e&&i(7,b=e.contextMenuByMouseClick)},[g,m,d,_,$,o,f,b,function(e){return o(e)},function(e){De[e?"unshift":"push"]((function(){i(1,m=e)}))}]}var Vu=function(e){l.default(i,e);var t=u.default(i);function i(e){var n;return a.default(this,i),n=t.call(this),ut(d.default(n),e,zu,Ou,C,{onItemSelected:6,transform:0,contextMenuByMouseClick:7}),c.default(n)}return i}(dt);function ju(e){N(e,"svelte-1ape8cz",".mobile-control.svelte-1ape8cz.svelte-1ape8cz{--bg-tap:rgba(0, 0, 0, 0.4);position:absolute;top:-12%;bottom:-12%;pointer-events:all;display:flex;justify-content:center;align-items:center;transition:background-color 0.2s ease-in-out;overflow:hidden;transform:translateZ(0)}.mobile-control.active.svelte-1ape8cz.svelte-1ape8cz{background-color:var(--bg-tap)}.mobile-control.position-back.svelte-1ape8cz.svelte-1ape8cz{left:0;right:60%;border-radius:0 50% 50% 0}.mobile-control.position-back.svelte-1ape8cz .content .caret.svelte-1ape8cz{transform:rotate(180deg)}.mobile-control.position-forward.svelte-1ape8cz.svelte-1ape8cz{right:0;left:60%;border-radius:50% 0 0 50%}.mobile-control.svelte-1ape8cz .content.svelte-1ape8cz{display:flex;flex-direction:column;gap:6px;align-items:center;font-weight:bold}@supports (-webkit-touch-callout: none) and (not (translate: none)){}.mobile-control.svelte-1ape8cz .content .caret.svelte-1ape8cz{display:flex;gap:2px;height:calc(1.5 * var(--margin-size));width:100%}@supports (-webkit-touch-callout: none) and (not (translate: none)){}@keyframes svelte-1ape8cz-ripple{to{transform:scale(4);opacity:0}}.mobile-control.svelte-1ape8cz .ripple.svelte-1ape8cz{position:absolute;border-radius:50%;transform:scale(0);animation:svelte-1ape8cz-ripple 1000ms linear;background-color:var(--bg-tap)}")}function Fu(e){var t,i,n,a,s,o,r,l,u,d,c,h,p=kt(e[1].offset)+"";n=new Ci({props:{animationDelay:"0s"}}),s=new Ci({props:{animationDelay:"0.1s"}}),r=new Ci({props:{animationDelay:"0.2s"}});var _=e[2]&&Nu(e);return{c:function(){t=Y("div"),i=Y("div"),st(n.$$.fragment),a=ee(),st(s.$$.fragment),o=ee(),st(r.$$.fragment),l=ee(),u=Z(p),d=ee(),_&&_.c(),c=te(),se(i,"class","caret svelte-1ape8cz"),se(t,"class","content svelte-1ape8cz")},m:function(e,p){J(e,t,p),F(t,i),ot(n,i,null),F(i,a),ot(s,i,null),F(i,o),ot(r,i,null),F(t,l),F(t,u),J(e,d,p),_&&_.m(e,p),J(e,c,p),h=!0},p:function(e,t){(!h||2&t)&&p!==(p=kt(e[1].offset)+"")&&le(u,p),e[2]?_?_.p(e,t):((_=Nu(e)).c(),_.m(c.parentNode,c)):_&&(_.d(1),_=null)},i:function(e){h||(Ye(n.$$.fragment,e),Ye(s.$$.fragment,e),Ye(r.$$.fragment,e),h=!0)},o:function(e){Xe(n.$$.fragment,e),Xe(s.$$.fragment,e),Xe(r.$$.fragment,e),h=!1},d:function(e){e&&(Q(t),Q(d),Q(c)),rt(n),rt(s),rt(r),_&&_.d(e)}}}function Nu(e){var t;return{c:function(){se(t=Y("div"),"class","ripple svelte-1ape8cz"),de(t,"left",e[3]),de(t,"top",e[4]),de(t,"width",e[5]),de(t,"height",e[5])},m:function(e,i){J(e,t,i)},p:function(e,i){8&i&&de(t,"left",e[3]),16&i&&de(t,"top",e[4]),32&i&&de(t,"width",e[5]),32&i&&de(t,"height",e[5])},d:function(e){e&&Q(t)}}}function Uu(e){var t,i,n,a,s,r=e[1].offset>0&&Fu(e);return{c:function(){t=Y("div"),r&&r.c(),se(t,"class",i=B("mobile-control position-".concat(e[0]))+" svelte-1ape8cz"),he(t,"active",e[1].offset>0)},m:function(i,o){J(i,t,o),r&&r.m(t,null),n=!0,a||(s=[ie(t,"touchend",ne(e[8])),ie(t,"contextmenu",e[9])],a=!0)},p:function(e,a){var s=o.default(a,1)[0];e[1].offset>0?r?(r.p(e,s),2&s&&Ye(r,1)):((r=Fu(e)).c(),Ye(r,1),r.m(t,null)):r&&(Qe(),Xe(r,1,1,(function(){r=null})),Ke()),(!n||1&s&&i!==(i=B("mobile-control position-".concat(e[0]))+" svelte-1ape8cz"))&&se(t,"class",i),(!n||3&s)&&he(t,"active",e[1].offset>0)},i:function(e){n||(Ye(r),n=!0)},o:function(e){Xe(r),n=!1},d:function(e){e&&Q(t),r&&r.d(),a=!1,w(s)}}}function Wu(e,t,i){var n=function(e){if(v)i(6,v=!1);else if(!x(l)||x(u)){if(!h.timeoutId)return r.set(!0),void a(St);i(1,h.offset+=10,h),clearTimeout(h.timeoutId),a(500),s(e),c("doubleTap",10)}},a=function(e){i(1,h.timeoutId=setTimeout((function(){i(1,h.offset=0,h),i(1,h.timeoutId=0,h)}),e),h)},s=function(e){var t=e.currentTarget;i(2,p=!1);var n=t.getBoundingClientRect(),a=Math.max(n.width,n.height),s=a/2;i(5,f=a+"px"),i(3,_="".concat(e.clientX-(n.left+s),"px")),i(4,m="".concat(e.clientY-n.top-s,"px")),He().then((function(){i(2,p=!0)}))},o=Ae(zt),r=o.closeAllPanes,l=o.livePlayer,u=o.livePlayerWithDvr,d=t.position,c=Pe(),h={offset:0,timeoutId:0},p=!1,_="",m="",f="",v=!1;return e.$$set=function(e){"position"in e&&i(0,d=e.position)},[d,h,p,_,m,f,v,n,function(e){return n(e)},function(){i(6,v=!0)}]}var Gu=function(e){l.default(i,e);var t=u.default(i);function i(e){var n;return a.default(this,i),n=t.call(this),ut(d.default(n),e,Wu,Uu,C,{position:0},ju),c.default(n)}return i}(dt);function Ju(e){N(e,"svelte-1al200m",".speedback-container.svelte-1al200m.svelte-1al200m{font-size:0.9em;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;height:100%;display:flex;align-items:center;justify-content:center;padding:0 12px;border-radius:var(--border-radius-skin);background-color:#4b4b4b;scroll-padding:50%}.speedback-container.svelte-1al200m.svelte-1al200m::-webkit-scrollbar{width:5px;height:5px}.speedback-container.svelte-1al200m.svelte-1al200m::-webkit-scrollbar-track{background:#888}.speedback-container.svelte-1al200m.svelte-1al200m::-webkit-scrollbar-thumb{background:#ccc;border-radius:5px}.speedback-container.svelte-1al200m.svelte-1al200m::-webkit-scrollbar-thumb:hover{background:#f1f1f1}.speedback-container.svelte-1al200m .speedback-option.svelte-1al200m{padding:4px 2px 0px;border-bottom:1px solid transparent;line-height:unset;min-width:35px;overflow:hidden;flex-shrink:0}.speedback-container.svelte-1al200m .speedback-option .active.svelte-1al200m{border-bottom:1px solid white;font-weight:bold}.speedback-container.svelte-1al200m .speedback-option.svelte-1al200m svg,.speedback-container.svelte-1al200m .speedback-option.svelte-1al200m [slot]{min-height:calc(100% + 3px)}.speedback-container.svelte-1al200m .speedback-option.close.svelte-1al200m{padding-right:0;border-left:1px solid rgba(255, 255, 255, 0.3)}.speedback-container.svelte-1al200m .speedback-option.close.svelte-1al200m svg,.speedback-container.svelte-1al200m .speedback-option.close.svelte-1al200m [slot]{min-height:unset}")}function Qu(e,t,i){var n=e.slice();return n[14]=t[i],n}function Ku(e){var t,i;return{c:function(){t=Y("div"),(i=Y("div")).textContent="".concat(e[14]),se(i,"class","svelte-1al200m"),he(i,"active",e[14]===e[2]),se(t,"slot","normal")},m:function(e,n){J(e,t,n),F(t,i)},p:function(e,t){4&t&&he(i,"active",e[14]===e[2])},d:function(e){e&&Q(t)}}}function Yu(e){var t,i,n,a,s,o,r=function(){return e[10](e[14])};return i=new pi({props:{isSquare:!0,iconHeight:.7*e[3],hideToolTip:!0,bgSize:e[4]+"px",disabled:!e[1],$$slots:{normal:[Ku]},$$scope:{ctx:e}}}),{c:function(){t=Y("li"),st(i.$$.fragment),n=ee(),se(t,"class","speedback-option svelte-1al200m"),he(t,"is-active",e[14]===e[2])},m:function(e,l){J(e,t,l),ot(i,t,null),F(t,n),a=!0,s||(o=ie(t,"click",ae(r)),s=!0)},p:function(n,s){e=n;var o={};8&s&&(o.iconHeight=.7*e[3]),16&s&&(o.bgSize=e[4]+"px"),2&s&&(o.disabled=!e[1]),131076&s&&(o.$$scope={dirty:s,ctx:e}),i.$set(o),(!a||4&s)&&he(t,"is-active",e[14]===e[2])},i:function(e){a||(Ye(i.$$.fragment,e),a=!0)},o:function(e){Xe(i.$$.fragment,e),a=!1},d:function(e){e&&Q(t),rt(i),s=!1,o()}}}function Xu(e){var t,i,n;return i=new bi({}),{c:function(){t=Y("div"),st(i.$$.fragment),se(t,"slot","normal")},m:function(e,a){J(e,t,a),ot(i,t,null),n=!0},p:v,i:function(e){n||(Ye(i.$$.fragment,e),n=!0)},o:function(e){Xe(i.$$.fragment,e),n=!1},d:function(e){e&&Q(t),rt(i)}}}function Zu(e){for(var t,i,n,a,s,r,l,u=nt(vt),d=[],c=0;c<u.length;c+=1)d[c]=Yu(Qu(e,u,c));var h=function(e){return Xe(d[e],1,1,(function(){d[e]=null}))};return a=new pi({props:{isSquare:!0,iconHeight:.7*e[3],hideToolTip:!0,bgSize:e[4]+"px",$$slots:{normal:[Xu]},$$scope:{ctx:e}}}),{c:function(){t=Y("ul");for(var e=0;e<d.length;e+=1)d[e].c();i=ee(),n=Y("div"),st(a.$$.fragment),se(n,"class","speedback-option close svelte-1al200m"),se(t,"class","speedback-container svelte-1al200m")},m:function(o,u){J(o,t,u);for(var c=0;c<d.length;c+=1)d[c]&&d[c].m(t,null);F(t,i),F(t,n),ot(a,n,null),e[12](t),s=!0,r||(l=ie(n,"click",ae(e[11])),r=!0)},p:function(e,n){var s=o.default(n,1)[0];if(542&s){var r;for(u=nt(vt),r=0;r<u.length;r+=1){var l=Qu(e,u,r);d[r]?(d[r].p(l,s),Ye(d[r],1)):(d[r]=Yu(l),d[r].c(),Ye(d[r],1),d[r].m(t,i))}for(Qe(),r=u.length;r<d.length;r+=1)h(r);Ke()}var c={};8&s&&(c.iconHeight=.7*e[3]),16&s&&(c.bgSize=e[4]+"px"),131072&s&&(c.$$scope={dirty:s,ctx:e}),a.$set(c)},i:function(e){if(!s){for(var t=0;t<u.length;t+=1)Ye(d[t]);Ye(a.$$.fragment,e),s=!0}},o:function(e){d=d.filter(Boolean);for(var t=0;t<d.length;t+=1)Xe(d[t]);Xe(a.$$.fragment,e),s=!1},d:function(i){i&&Q(t),K(d,i),rt(a),e[12](null),r=!1,l()}}}function ed(e,t,i){var n,a,s,o=function(e){l.setPlaybackRate(e),_("close")},r=Ae(zt),l=r.api,u=r.playRate,d=r.barIconSize,c=r.barButtonSize;A(e,u,(function(e){return i(2,n=e)})),A(e,d,(function(e){return i(3,a=e)})),A(e,c,(function(e){return i(4,s=e)}));var h,p=!1,_=Pe();Ce((function(){h.querySelector(".is-active").scrollIntoView({behavior:"smooth",inline:"nearest",block:"nearest"}),setTimeout((function(){i(1,p=!0)}),200)}));return[h,p,n,a,s,u,d,c,_,o,function(e){return o(e)},function(){return _("close")},function(e){De[e?"unshift":"push"]((function(){i(0,h=e)}))}]}var td=function(e){l.default(i,e);var t=u.default(i);function i(e){var n;return a.default(this,i),n=t.call(this),ut(d.default(n),e,ed,Zu,C,{},Ju),c.default(n)}return i}(dt);function id(e){N(e,"svelte-1m5jdp7",".highlights-container.svelte-1m5jdp7.svelte-1m5jdp7{display:grid;align-items:end;-webkit-mask-composite:destination-in;mask-composite:destination-in;max-height:max(50vh, 400px);scrollbar-width:none}.highlights-container.svelte-1m5jdp7.svelte-1m5jdp7::-webkit-scrollbar{width:0;height:0}.highlights-container.svelte-1m5jdp7 ul.svelte-1m5jdp7{display:flex;flex-direction:column;align-items:end}.highlights-container.svelte-1m5jdp7 .highlight-item.svelte-1m5jdp7{padding:0.75em calc(var(--margin-size) * 0.8);margin:0.25em 2px;border-radius:5em;max-width:calc(100% - 1.5em);background-color:var(--bg-color-highlight-pane);cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;pointer-events:all;transition:background-color 0.4s ease;font-size:0.8em;max-width:80%;white-space:nowrap;overflow:hidden !important;text-overflow:ellipsis}.highlights-container.svelte-1m5jdp7 .highlight-item.svelte-1m5jdp7:hover{background-color:var(--bg-color-pane-hover)}.highlights-container.svelte-1m5jdp7 .highlight-item.svelte-1m5jdp7:last-of-type{margin-bottom:1.1em}.highlights-container.svelte-1m5jdp7.svelte-1m5jdp7:not(.horizontal){--top:calc(var(--margin-size) * 2 + var(--bar-button-size) * 0.67);--bottom:calc(100% - var(--bar-button-size) * 1.2);--fade-height:calc(var(--bar-button-size) * 0.75);--mi:linear-gradient(\n  \t180deg,\n  \ttransparent calc(var(--top) - var(--fade-height)),\n  \trgba(0, 0, 0, 1) var(--top),\n  \trgba(0, 0, 0, 1) calc(var(--bottom) - 0px),\n  \ttransparent calc(var(--bottom) * 1.035)\n  );grid-template-rows:var(--top) 1fr calc(var(--fade-height));grid-template-columns:100%;justify-content:end;height:100%;max-width:40%;-webkit-mask-image:var(--mi);mask-image:var(--mi);overflow-y:auto;padding-bottom:10px}.highlights-container:not(.horizontal).show-mask.svelte-1m5jdp7.svelte-1m5jdp7{--mi:linear-gradient(\n  \t180deg,\n  \ttransparent calc(var(--top) - var(--fade-height)),\n  \trgba(0, 0, 0, 1) var(--top),\n  \trgba(0, 0, 0, 1) calc(var(--bottom) - var(--fade-height)),\n  \ttransparent var(--bottom)\n  )}.highlights-container.horizontal.svelte-1m5jdp7.svelte-1m5jdp7{align-items:center;margin-left:-1.5%;grid-template-columns:2% 1fr 2%;grid-template-rows:100%;width:100%;max-height:25%;height:var(--bar-button-size);overflow-x:auto;--mi:linear-gradient(\n  \t90deg,\n  \ttransparent 0%,\n  \trgba(0, 0, 0, 1) 3%,\n  \trgba(0, 0, 0, 1) calc(100% - var(--bar-button-size) * 1.75),\n  \ttransparent calc(100% - var(--bar-button-size) * 1.2)\n  );mask-image:var(--mi);-webkit-mask-image:var(--mi);padding-right:var(--bar-button-size)}.highlights-container.horizontal.svelte-1m5jdp7 ul.svelte-1m5jdp7{flex-direction:row}.highlights-container.horizontal.svelte-1m5jdp7 .highlight-item.svelte-1m5jdp7{padding:0.75em;margin:2px 0.25em;max-width:16em}.highlights-container.horizontal.svelte-1m5jdp7 .highlight-item.svelte-1m5jdp7:hover{background-color:var(--bg-color-pane-hover)}.highlights-container.horizontal.svelte-1m5jdp7 .highlight-item.svelte-1m5jdp7:last-of-type{margin-bottom:2px;margin-right:1.1em}")}function nd(e,t,i){var n=e.slice();return n[26]=t[i],n[27]=t,n[28]=i,n}function ad(e){var t,i,a,s,o,r,l=function(){return e[18](e[26])},u=function(){for(var t=arguments.length,i=new Array(t),a=0;a<t;a++)i[a]=arguments[a];var s;return(s=e)[19].apply(s,[e[26]].concat(n.default(i)))},d=function(){return e[20](e[28])},c=e[26].title+"",h=e[28],p=function(){return e[17](t,h)},_=function(){return e[17](null,h)};return{c:function(){t=Y("li"),i=Z(c),a=ee(),se(t,"class","highlight-item svelte-1m5jdp7"),se(t,"tabindex","0"),se(t,"title",s=Ct(e[1][e[28]])?e[26].title:"")},m:function(n,s){J(n,t,s),F(t,i),F(t,a),p(),o||(r=[ie(t,"click",ae(l)),ie(t,"keydown",u),ie(t,"mouseenter",d),ie(t,"mouseleave",e[21])],o=!0)},p:function(n,a){e=n,128&a&&c!==(c=e[26].title+"")&&le(i,c),130&a&&s!==(s=Ct(e[1][e[28]])?e[26].title:"")&&se(t,"title",s),h!==e[28]&&(_(),h=e[28],p())},d:function(e){e&&Q(t),_(),o=!1,w(r)}}}function sd(e){for(var t,i,n,a,s,r,l,u,d,c,h=nt(e[7]),p=[],_=0;_<h.length;_+=1)p[_]=ad(nd(e,h,_));return{c:function(){t=Y("div"),i=Y("div"),n=ee(),a=Y("ul");for(var o=0;o<p.length;o+=1)p[o].c();s=ee(),r=Y("div"),se(i,"class","padding-item"),se(a,"class","svelte-1m5jdp7"),se(r,"class","padding-item"),se(t,"class","highlights-container svelte-1m5jdp7"),he(t,"show-mask",e[4]&&!e[5]),he(t,"horizontal",e[6])},m:function(o,l){J(o,t,l),F(t,i),F(t,n),F(t,a);for(var h=0;h<p.length;h+=1)p[h]&&p[h].m(a,null);e[22](a),F(t,s),F(t,r),e[23](t),u=!0,d||(c=ie(t,"scroll",e[13]),d=!0)},p:function(e,i){var n=o.default(i,1)[0];if(4227&n){var s;for(h=nt(e[7]),s=0;s<h.length;s+=1){var r=nd(e,h,s);p[s]?p[s].p(r,n):(p[s]=ad(r),p[s].c(),p[s].m(a,null))}for(;s<p.length;s+=1)p[s].d(1);p.length=h.length}(!u||48&n)&&he(t,"show-mask",e[4]&&!e[5]),(!u||64&n)&&he(t,"horizontal",e[6])},i:function(e){u||(qe((function(){u&&(l||(l=it(t,Ft,{duration:200},!0)),l.run(1))})),u=!0)},o:function(e){l||(l=it(t,Ft,{duration:200},!1)),l.run(0),u=!1},d:function(i){i&&Q(t),K(p,i),e[22](null),e[23](null),i&&l&&l.end(),d=!1,c()}}}function od(e,t,i){var n,a,s,o,r,l=function(e){p.set(e)},u=function(){if(y){i(4,k=y.scrollHeight>y.clientHeight);var e=y.querySelector(".highlight-item:last-child");if(e){var t=e.getBoundingClientRect(),n=y.getBoundingClientRect(),a=1.3*t.height;i(5,w=t.top>=n.top&&t.bottom<=n.bottom-a)}}},d=t.goToHighlight,c=Ae(zt),h=c.highlightList,p=c.hoverHighlightIndex,_=c.trapAriaTabFocus,m=c.playerWidth,f=c.playerHeight,v=c.touchMode;A(e,h,(function(e){return i(7,r=e)})),A(e,m,(function(e){return i(16,o=e)})),A(e,f,(function(e){return i(15,s=e)})),A(e,v,(function(e){return i(14,a=e)}));var g,y,b=[],k=!1,w=!1;Ce((function(){_(g,".highlight-item",0),u(),window.addEventListener("resize",u),window.addEventListener("scroll",u)})),Se((function(){window.removeEventListener("resize",u),window.removeEventListener("scroll",u)}));return e.$$set=function(e){"goToHighlight"in e&&i(0,d=e.goToHighlight)},e.$$.update=function(){114688&e.$$.dirty&&i(6,n=o>s&&s<400&&a)},[d,b,g,y,k,w,n,r,h,m,f,v,l,u,a,s,o,function(e,t){De[e?"unshift":"push"]((function(){b[t]=e,i(1,b)}))},function(e){return d(e.start)},function(e,t){("Enter"===t.key||" "===t.key)&&(t.preventDefault(),t.stopPropagation(),d(e.start))},function(e){return l(e)},function(){return l(-1)},function(e){De[e?"unshift":"push"]((function(){i(2,g=e)}))},function(e){De[e?"unshift":"push"]((function(){i(3,y=e)}))}]}var rd=function(e){l.default(i,e);var t=u.default(i);function i(e){var n;return a.default(this,i),n=t.call(this),ut(d.default(n),e,od,sd,C,{goToHighlight:0},id),c.default(n)}return i}(dt);function ld(e){N(e,"svelte-1n6uj6g",".unmute-autofade-button.svelte-1n6uj6g{z-index:2;position:absolute;top:0;left:var(--margin-size);transform:translateY(calc(var(--header-area-height) + var(--margin-size) * 2))}")}function ud(e){var t,i,n,a,s,o;return i=new pi({props:{buttonPosition:"relative",bgBorderRadius:e[6]+"px",name:"mutedIndication",hideToolTip:!0,iconHeight:.8*e[7],bgHeight:e[6]+"px",standalone:!0,text:"Unmute",$$slots:{normal:[dd]},$$scope:{ctx:e}}}),{c:function(){t=Y("div"),st(i.$$.fragment),se(t,"class","unmute-autofade-button text-button svelte-1n6uj6g")},m:function(n,r){J(n,t,r),ot(i,t,null),a=!0,s||(o=ie(t,"click",e[16]),s=!0)},p:function(e,t){var n={};64&t&&(n.bgBorderRadius=e[6]+"px"),128&t&&(n.iconHeight=.8*e[7]),64&t&&(n.bgHeight=e[6]+"px"),524288&t&&(n.$$scope={dirty:t,ctx:e}),i.$set(n)},i:function(e){a||(Ye(i.$$.fragment,e),n&&n.end(1),a=!0)},o:function(e){Xe(i.$$.fragment,e),n=tt(t,Ft,{}),a=!1},d:function(e){e&&Q(t),rt(i),e&&n&&n.end(),s=!1,o()}}}function dd(e){var t,i,n;return i=new zn({}),{c:function(){t=Y("div"),st(i.$$.fragment),se(t,"slot","normal"),se(t,"class","button")},m:function(e,a){J(e,t,a),ot(i,t,null),n=!0},p:v,i:function(e){n||(Ye(i.$$.fragment,e),n=!0)},o:function(e){Xe(i.$$.fragment,e),n=!1},d:function(e){e&&Q(t),rt(i)}}}function cd(e){var t,i,n,a,s=!(null!=(i=null==(t=e[1])?void 0:t.mutedIndication)&&i.hidden)&&e[2]&&!e[3]&&!e[0]&&(e[4]||0===e[5])&&ud(e);return{c:function(){s&&s.c(),n=te()},m:function(e,t){s&&s.m(e,t),J(e,n,t),a=!0},p:function(e,t){var i,a,r=o.default(t,1)[0];null!=(a=null==(i=e[1])?void 0:i.mutedIndication)&&a.hidden||!e[2]||e[3]||e[0]||!e[4]&&0!==e[5]?s&&(Qe(),Xe(s,1,1,(function(){s=null})),Ke()):s?(s.p(e,r),63&r&&Ye(s,1)):((s=ud(e)).c(),Ye(s,1),s.m(n.parentNode,n))},i:function(e){a||(Ye(s),a=!0)},o:function(e){Xe(s),a=!1},d:function(e){e&&Q(n),s&&s.d(e)}}}function hd(e,t,i){var n,a,s,o,r,l,u,d=Ae(zt),c=d.toggleMute,h=d.muted,p=d.started,_=d.barButtonSize,m=d.barIconSize,f=d.displayVolume,v=d.elementVisibility;A(e,h,(function(e){return i(4,o=e)})),A(e,p,(function(e){return i(2,a=e)})),A(e,_,(function(e){return i(6,l=e)})),A(e,m,(function(e){return i(7,u=e)})),A(e,f,(function(e){return i(5,r=e)})),A(e,v,(function(e){return i(1,n=e)}));var g,y=!1,b=ht(!1);A(e,b,(function(e){return i(3,s=e)}));var k=[];return k.push(h.subscribe((function(e){e||i(0,y=!0)}))),k.push(p.subscribe((function(){g||(g=setTimeout((function(){b.set(!0)}),1e4))}))),Se((function(){k.forEach((function(e){return e()}))})),[y,n,a,s,o,r,l,u,c,h,p,_,m,f,v,b,function(){return c()}]}var pd=function(e){l.default(i,e);var t=u.default(i);function i(e){var n;return a.default(this,i),n=t.call(this),ut(d.default(n),e,hd,cd,C,{},ld),c.default(n)}return i}(dt);function _d(e){var t,i;return{c:function(){t=X("svg"),se(i=X("path"),"d","M224 0a31.97 31.97 0 0 0-32 32v17.9C119.5 61.4 64 124.2 64 200v33.4c0 45.4-15.5 89.5-43.8 124.9L5.3 377c-5.8 7.2-6.9 17.1-2.9 25.4S14.8 416 24 416h400c9.2 0 17.6-5.3 21.6-13.6s2.9-18.2-2.9-25.4l-14.9-18.6c-28.3-35.5-43.8-79.6-43.8-125V200c0-75.8-55.5-138.6-128-150.1V32a31.97 31.97 0 0 0-32-32zm0 96h8c57.4 0 104 46.6 104 104v33.4c0 47.9 13.9 94.6 39.7 134.6H72.3c25.8-40 39.7-86.7 39.7-134.6V200c0-57.4 46.6-104 104-104h8zm64 352h-64-64c0 17 6.7 33.3 18.7 45.3S207 512 224 512s33.3-6.7 45.3-18.7S288 465 288 448z"),se(i,"fill",e[0]),se(t,"xmlns","http://www.w3.org/2000/svg"),se(t,"viewBox","0 0 448 512")},m:function(e,n){J(e,t,n),F(t,i)},p:function(e,t){1&o.default(t,1)[0]&&se(i,"fill",e[0])},i:v,o:v,d:function(e){e&&Q(t)}}}function md(e,t,i){var n=t.color,a=void 0===n?"#fff":n;return e.$$set=function(e){"color"in e&&i(0,a=e.color)},[a]}var fd=function(e){l.default(i,e);var t=u.default(i);function i(e){var n;return a.default(this,i),n=t.call(this),ut(d.default(n),e,md,_d,C,{color:0}),c.default(n)}return i}(dt);function vd(e){var t,i;return{c:function(){t=X("svg"),se(i=X("path"),"d","M320 0a31.97 31.97 0 0 0-32 32v19.2C215 66 160 130.6 160 208v18.8c0 47-17.3 92.4-48.5 127.6l-7.4 8.3c-8.4 9.4-10.4 22.9-5.3 34.4S115.4 416 128 416h384c12.6 0 24-7.4 29.2-18.9s3.1-25-5.3-34.4l-7.4-8.3c-31.2-35.2-48.5-80.5-48.5-127.6V208c0-77.4-55-142-128-156.8V32a31.97 31.97 0 0 0-32-32zm45.3 493.3c12-12 18.7-28.3 18.7-45.3h-64-64c0 17 6.7 33.3 18.7 45.3S303 512 320 512s33.3-6.7 45.3-18.7zM0 200c0 13.3 10.7 24 24 24h80c13.3 0 24-10.7 24-24s-10.7-24-24-24H24c-13.3 0-24 10.7-24 24zm536-24c-13.3 0-24 10.7-24 24s10.7 24 24 24h80c13.3 0 24-10.7 24-24s-10.7-24-24-24h-80zm61.5-154.7c-5.9-11.9-20.3-16.7-32.2-10.7l-64 32c-11.9 5.9-16.7 20.3-10.7 32.2s20.3 16.7 32.2 10.7l64-32c11.9-5.9 16.7-20.3 10.7-32.2zM53.3 53.5l64 32c11.9 5.9 26.3 1.1 32.2-10.7s1.1-26.3-10.7-32.2l-64-32c-11.9-6-26.3-1.2-32.3 10.7s-1.1 26.3 10.7 32.2z"),se(i,"fill",e[0]),se(t,"xmlns","http://www.w3.org/2000/svg"),se(t,"height","1em"),se(t,"viewBox","0 0 640 512")},m:function(e,n){J(e,t,n),F(t,i)},p:function(e,t){1&o.default(t,1)[0]&&se(i,"fill",e[0])},i:v,o:v,d:function(e){e&&Q(t)}}}function gd(e,t,i){var n=t.color,a=void 0===n?"#fff":n;return e.$$set=function(e){"color"in e&&i(0,a=e.color)},[a]}var yd=function(e){l.default(i,e);var t=u.default(i);function i(e){var n;return a.default(this,i),n=t.call(this),ut(d.default(n),e,gd,vd,C,{color:0}),c.default(n)}return i}(dt);function bd(e){N(e,"svelte-vzrx4a",".container.svelte-vzrx4a{display:flex;padding-left:calc(1.2 * var(--font-size));align-items:center}.reminder-button.svelte-vzrx4a{background-color:#5d5c5c;margin:calc(0.65 * var(--margin-size));border-radius:20px;font-size:calc(var(--font-size));display:inline-block}.reminder-button.svelte-vzrx4a::before{content:attr(data-longtext);display:block;height:0;overflow:hidden;visibility:hidden}.soft-embargo-text.svelte-vzrx4a{display:flex;flex-direction:column;margin-right:10px;gap:calc(var(--margin-size) / 4)}.soft-embargo-title.svelte-vzrx4a{font-size:calc(var(--font-size))}.soft-embargo-date-time.svelte-vzrx4a{font-size:calc(var(--font-size) * 0.8)}")}function kd(e){var t,i,n;return i=new fd({props:{color:"white"}}),{c:function(){t=Y("div"),st(i.$$.fragment),se(t,"slot","normal")},m:function(e,a){J(e,t,a),ot(i,t,null),n=!0},p:v,i:function(e){n||(Ye(i.$$.fragment,e),n=!0)},o:function(e){Xe(i.$$.fragment,e),n=!1},d:function(e){e&&Q(t),rt(i)}}}function wd(e){var t,i,n;return i=new yd({props:{color:"white"}}),{c:function(){t=Y("div"),st(i.$$.fragment),se(t,"slot","toggled")},m:function(e,a){J(e,t,a),ot(i,t,null),n=!0},p:v,i:function(e){n||(Ye(i.$$.fragment,e),n=!0)},o:function(e){Xe(i.$$.fragment,e),n=!1},d:function(e){e&&Q(t),rt(i)}}}function $d(e){var t,i,n,a,s,r,l,u,d,c,h,p,_,m,f,v,g,y,b,k=wt(e[4],!0)+"",w=e[15](e[5])+"";return m=new pi({props:{text:e[1],iconHeight:.9*e[6],standalone:!0,bgHeight:.75*e[7]+"px",noTextShadow:!0,toggled:!!e[0],bgBorderRadius:"20px",$$slots:{toggled:[wd],normal:[kd]},$$scope:{ctx:e}}}),{c:function(){t=Y("div"),i=Y("div"),n=Y("div"),a=Y("span"),s=Z(e[3]),r=ee(),l=Y("span"),u=Z(k),d=ee(),c=Y("div"),h=Z(w),p=ee(),_=Y("div"),f=Y("div"),st(m.$$.fragment),se(n,"class","soft-embargo-title svelte-vzrx4a"),se(c,"class","soft-embargo-date-time svelte-vzrx4a"),se(i,"class","soft-embargo-text svelte-vzrx4a"),de(f,"display","contents"),de(f,"--bg-color-button","transparent"),de(f,"--bg-color-button-hover","transparent"),se(_,"class","reminder-button svelte-vzrx4a"),se(_,"data-longtext",v="icon ".concat(e[2])),se(t,"class","container svelte-vzrx4a")},m:function(o,v){J(o,t,v),F(t,i),F(i,n),F(n,a),F(a,s),F(n,r),F(n,l),F(l,u),F(i,d),F(i,c),F(c,h),F(t,p),F(t,_),F(_,f),ot(m,f,null),g=!0,y||(b=ie(_,"click",ae(e[14])),y=!0)},p:function(e,t){var i=o.default(t,1)[0];(!g||8&i)&&le(s,e[3]),(!g||16&i)&&k!==(k=wt(e[4],!0)+"")&&le(u,k),(!g||32&i)&&w!==(w=e[15](e[5])+"")&&le(h,w);var n={};2&i&&(n.text=e[1]),64&i&&(n.iconHeight=.9*e[6]),128&i&&(n.bgHeight=.75*e[7]+"px"),1&i&&(n.toggled=!!e[0]),1048576&i&&(n.$$scope={dirty:i,ctx:e}),m.$set(n),(!g||4&i&&v!==(v="icon ".concat(e[2])))&&se(_,"data-longtext",v)},i:function(e){g||(Ye(m.$$.fragment,e),g=!0)},o:function(e){Xe(m.$$.fragment,e),g=!1},d:function(e){e&&Q(t),rt(m),y=!1,b()}}}function Cd(e,t,i){var n,a,s,o,r,l,u=Ae(zt),d=u.translate,c=u.softEmbargoText,h=u.softEmbargoTimerTime,p=u.softEmbargoEndDate,_=u.enablePushNotification,m=u.barButtonSize,f=u.barIconSize;A(e,c,(function(e){return i(3,a=e)})),A(e,h,(function(e){return i(4,s=e)})),A(e,p,(function(e){return i(5,o=e)})),A(e,_,(function(e){return i(16,n=e)})),A(e,m,(function(e){return i(7,l=e)})),A(e,f,(function(e){return i(6,r=e)}));var v,g,y=n,b=d("Reminder set"),k=d("Set reminder");return e.$$.update=function(){1&e.$$.dirty&&i(1,v=y?b:k)},i(2,g=b.length>=k.length?b:k),[y,v,g,a,s,o,r,l,c,h,p,_,m,f,function(){i(0,y=!y),"Notification"in window?"granted"===Notification.permission?_.set(y):"denied"!==Notification.permission&&Notification.requestPermission().then((function(e){"granted"===e&&_.set(y)})):(alert("This browser does not support desktop notification"),i(0,y=!1))},function(e){var t=new Intl.NumberFormat(navigator.language).resolvedOptions().locale,i=e.toLocaleDateString(t,{day:"numeric",month:"long"}),n=new Intl.DateTimeFormat(t,{hour:"numeric",minute:"numeric"});return"".concat(i," ").concat(d("at")," ").concat(n.format(e))}]}var Sd=function(e){l.default(i,e);var t=u.default(i);function i(e){var n;return a.default(this,i),n=t.call(this),ut(d.default(n),e,Cd,$d,C,{},bd),c.default(n)}return i}(dt);function Pd(e){var t,i;return{c:function(){t=X("svg"),se(i=X("path"),"fill","#fff"),se(i,"d","M256 48a208 208 0 1 1 0 416 208 208 0 1 1 0-416zm0 464A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM175 175c-9.4 9.4-9.4 24.6 0 33.9l47 47-47 47c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l47-47 47 47c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-47-47 47-47c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-47 47-47-47c-9.4-9.4-24.6-9.4-33.9 0z"),se(t,"xmlns","http://www.w3.org/2000/svg"),se(t,"viewBox","0 0 512 512"),se(t,"fill","none")},m:function(e,n){J(e,t,n),F(t,i)},p:v,i:v,o:v,d:function(e){e&&Q(t)}}}var xd=function(e){l.default(i,e);var t=u.default(i);function i(e){var n;return a.default(this,i),n=t.call(this),ut(d.default(n),e,null,Pd,C,{}),c.default(n)}return i}(dt);function Ad(e){N(e,"svelte-lc87z9",".sub-line.svelte-lc87z9.svelte-lc87z9{background:none;pointer-events:all;cursor:pointer;display:flex;flex-direction:column;align-items:flex-start;padding:12px;gap:8px;border-radius:4px;color:var(--content-secondary);text-align:left;border:1.5px solid transparent;transition:background-color 0.2s ease-in-out, border 0.2s ease-in-out}.sub-line.svelte-lc87z9 .time-label.svelte-lc87z9{transition:background-color 0.2s ease-in-out, color 0.2s ease-in-out;color:var(--content-secondary);font-size:0.8em;background-color:#464646;padding:4px 8px 4px 8px;gap:10px;border-radius:2px;display:inline-block}.sub-line.svelte-lc87z9 .line-text.svelte-lc87z9{line-height:150%}.sub-line.active.svelte-lc87z9.svelte-lc87z9{background-color:var(--bg-active);border:1.5px solid var(--content-secondary)}.sub-line.active.svelte-lc87z9 .time-label.svelte-lc87z9{background-color:var(--content-secondary);color:var(--content-primary)}.sub-line.svelte-lc87z9.svelte-lc87z9:hover{background-color:var(--bg-active)}")}function Id(e){var t,i,n,a,s,o,r=kt(e[1].inPoint)+"",l=e[1].subtitleLine+"";return{c:function(){t=Y("div"),i=Y("div"),n=Z(r),a=ee(),s=Y("span"),se(i,"class","time-label svelte-lc87z9"),se(s,"class","line-text svelte-lc87z9"),se(t,"class","sub-line svelte-lc87z9"),se(t,"title",o=kt(e[1].inPoint)+" - "+kt(e[1].outPoint)),he(t,"active",e[0])},m:function(e,o){J(e,t,o),F(t,i),F(i,n),F(t,a),F(t,s),s.innerHTML=l},p:function(e,i){2&i&&r!==(r=kt(e[1].inPoint)+"")&&le(n,r),2&i&&l!==(l=e[1].subtitleLine+"")&&(s.innerHTML=l),2&i&&o!==(o=kt(e[1].inPoint)+" - "+kt(e[1].outPoint))&&se(t,"title",o),1&i&&he(t,"active",e[0])},d:function(e){e&&Q(t)}}}function Td(e){var t,i=e[1]&&Id(e);return{c:function(){i&&i.c(),t=te()},m:function(e,n){i&&i.m(e,n),J(e,t,n)},p:function(e,n){var a=o.default(n,1)[0];e[1]?i?i.p(e,a):((i=Id(e)).c(),i.m(t.parentNode,t)):i&&(i.d(1),i=null)},i:v,o:v,d:function(e){e&&Q(t),i&&i.d(e)}}}function Dd(e,t,i){var n=t.active,a=void 0!==n&&n,s=t.line,o=void 0===s?null:s;return e.$$set=function(e){"active"in e&&i(0,a=e.active),"line"in e&&i(1,o=e.line)},[a,o]}var Ed=function(e){l.default(i,e);var t=u.default(i);function i(e){var n;return a.default(this,i),n=t.call(this),ut(d.default(n),e,Dd,Td,C,{active:0,line:1},Ad),c.default(n)}return i}(dt);function Md(e){N(e,"svelte-4ksqxj",".transcript-container.svelte-4ksqxj.svelte-4ksqxj{position:relative;background-color:var(--background-gray);pointer-events:all;color:var(--content-secondary);display:flex;flex-direction:column;height:100%}.transcript-container.svelte-4ksqxj .close-button.svelte-4ksqxj{pointer-events:all;cursor:pointer;padding:20px}.transcript-container.svelte-4ksqxj *{text-shadow:none}.header.svelte-4ksqxj.svelte-4ksqxj{padding:12px;gap:8px;display:flex;justify-content:space-between;align-items:center}.header.svelte-4ksqxj .search-wrapper.svelte-4ksqxj{position:relative;display:flex;flex:1;--pad:8px}.header.svelte-4ksqxj .search-input.svelte-4ksqxj{background:#505050;border:none;border-radius:4px;padding:var(--pad) calc(var(--font-size) * 0.9 * 2.5);color:var(--content-secondary);width:100%;max-width:300px;line-height:150%}.header.svelte-4ksqxj .search-input.svelte-4ksqxj:focus{outline:none}.header.svelte-4ksqxj .search-icon.svelte-4ksqxj,.header.svelte-4ksqxj .clear-icon.svelte-4ksqxj{position:absolute;left:0;height:100%;aspect-ratio:1;display:grid;place-content:center}.header.svelte-4ksqxj .search-icon.svelte-4ksqxj>svg,.header.svelte-4ksqxj .clear-icon.svelte-4ksqxj>svg{height:calc((var(--font-size) * 1.5 + var(--pad) * 2) * 0.4)}.header.svelte-4ksqxj .clear-icon.svelte-4ksqxj{left:initial;right:0;cursor:pointer}.lines-container.svelte-4ksqxj.svelte-4ksqxj{scrollbar-width:thin;overflow-y:auto;max-height:100%;display:flex;flex-direction:column;gap:8px;flex:1;--mask-size:32px;padding:calc(var(--mask-size) * 0.5) 12px;--mask:linear-gradient(\n  \t\tto top,\n  \t\ttransparent 0%,\n  \t\tblack var(--mask-size),\n  \t\tblack calc(100% - var(--mask-size)),\n  \t\ttransparent 100%\n  \t),\n  \tlinear-gradient(to left, black 12px, transparent 12px);-webkit-mask-image:var(--mask);mask-image:var(--mask)}.lines-container.svelte-4ksqxj.svelte-4ksqxj::-webkit-scrollbar{width:5px;height:5px}.lines-container.svelte-4ksqxj.svelte-4ksqxj::-webkit-scrollbar-track{background:#888}.lines-container.svelte-4ksqxj.svelte-4ksqxj::-webkit-scrollbar-thumb{background:#ccc;border-radius:5px}.lines-container.svelte-4ksqxj.svelte-4ksqxj::-webkit-scrollbar-thumb:hover{background:#f1f1f1}.lines-container.svelte-4ksqxj button.svelte-4ksqxj{background:none;border:none;pointer-events:all;cursor:pointer;margin:0;padding:0;display:block;width:100%}")}function Bd(e,t,i){var n=e.slice();return n[46]=t[i],n[48]=i,n}function Ld(e){var t,i,n,a,s,o;return i=new xd({}),{c:function(){t=Y("span"),st(i.$$.fragment),se(t,"class","clear-icon svelte-4ksqxj")},m:function(n,r){J(n,t,r),ot(i,t,null),a=!0,s||(o=ie(t,"click",ae(e[19])),s=!0)},p:v,i:function(e){a||(Ye(i.$$.fragment,e),qe((function(){a&&(n||(n=it(t,Ft,{duration:75},!0)),n.run(1))})),a=!0)},o:function(e){Xe(i.$$.fragment,e),n||(n=it(t,Ft,{duration:75},!1)),n.run(0),a=!1},d:function(e){e&&Q(t),rt(i),e&&n&&n.end(),s=!1,o()}}}function Rd(e){var t,i,n;return i=new bi({}),{c:function(){t=Y("div"),st(i.$$.fragment),se(t,"slot","normal")},m:function(e,a){J(e,t,a),ot(i,t,null),n=!0},p:v,i:function(e){n||(Ye(i.$$.fragment,e),n=!0)},o:function(e){Xe(i.$$.fragment,e),n=!1},d:function(e){e&&Q(t),rt(i)}}}function Hd(e){var t,i,a,s,o,r,l=function(){return e[21](e[46])},u=function(){for(var t=arguments.length,i=new Array(t),a=0;a<t;a++)i[a]=arguments[a];var s;return(s=e)[22].apply(s,[e[46]].concat(n.default(i)))};return i=new Ed({props:{line:e[46],active:e[48]===e[5]}}),{c:function(){t=Y("button"),st(i.$$.fragment),a=ee(),se(t,"class","svelte-4ksqxj")},m:function(n,d){J(n,t,d),ot(i,t,null),F(t,a),s=!0,o||(r=[ie(t,"click",l),ie(t,"keydown",u),ie(t,"mouseenter",e[23]),ie(t,"mouseleave",e[24])],o=!0)},p:function(t,n){e=t;var a={};64&n[0]&&(a.line=e[46]),32&n[0]&&(a.active=e[48]===e[5]),i.$set(a)},i:function(e){s||(Ye(i.$$.fragment,e),s=!0)},o:function(e){Xe(i.$$.fragment,e),s=!1},d:function(e){e&&Q(t),rt(i),o=!1,w(r)}}}function qd(e){var t,i,n,a,s,o,r,l,u,d,c,h,p,_,m,f,v;s=new gn({});var g=e[0]&&Ld(e);c=new pi({props:{iconHeight:e[7],name:"closeButton",$$slots:{normal:[Rd]},$$scope:{ctx:e}}});for(var y=nt(e[6]),b=[],k=0;k<y.length;k+=1)b[k]=Hd(Bd(e,y,k));var $=function(e){return Xe(b[e],1,1,(function(){b[e]=null}))};return{c:function(){t=Y("div"),i=Y("div"),n=Y("div"),a=Y("span"),st(s.$$.fragment),o=ee(),r=Y("input"),l=ee(),g&&g.c(),u=ee(),d=Y("div"),st(c.$$.fragment),h=ee(),p=Y("div");for(var e=0;e<b.length;e+=1)b[e].c();se(a,"class","search-icon svelte-4ksqxj"),se(r,"type","text"),se(r,"placeholder","Search"),se(r,"class","search-input svelte-4ksqxj"),se(n,"class","search-wrapper svelte-4ksqxj"),se(d,"class","close-button svelte-4ksqxj"),se(i,"class","header svelte-4ksqxj"),se(p,"class","lines-container svelte-4ksqxj"),se(t,"class","transcript-container svelte-4ksqxj")},m:function(_,y){J(_,t,y),F(t,i),F(i,n),F(n,a),ot(s,a,null),F(n,o),F(n,r),e[17](r),ue(r,e[0]),F(n,l),g&&g.m(n,null),F(i,u),F(i,d),ot(c,d,null),F(t,h),F(t,p);for(var k=0;k<b.length;k+=1)b[k]&&b[k].m(p,null);e[25](p),e[28](t),m=!0,f||(v=[ie(r,"input",e[18]),ie(r,"keydown",ae(e[16])),ie(d,"click",ae(e[20])),ie(p,"mouseenter",e[26]),ie(p,"mouseleave",e[27])],f=!0)},p:function(e,t){1&t[0]&&r.value!==e[0]&&ue(r,e[0]),e[0]?g?(g.p(e,t),1&t[0]&&Ye(g,1)):((g=Ld(e)).c(),Ye(g,1),g.m(n,null)):g&&(Qe(),Xe(g,1,1,(function(){g=null})),Ke());var i={};if(128&t[0]&&(i.iconHeight=e[7]),262144&t[1]&&(i.$$scope={dirty:t,ctx:e}),c.$set(i),16488&t[0]){var a;for(y=nt(e[6]),a=0;a<y.length;a+=1){var s=Bd(e,y,a);b[a]?(b[a].p(s,t),Ye(b[a],1)):(b[a]=Hd(s),b[a].c(),Ye(b[a],1),b[a].m(p,null))}for(Qe(),a=y.length;a<b.length;a+=1)$(a);Ke()}},i:function(e){if(!m){Ye(s.$$.fragment,e),Ye(g),Ye(c.$$.fragment,e);for(var i=0;i<y.length;i+=1)Ye(b[i]);qe((function(){m&&(_||(_=it(t,Ft,{duration:250},!0)),_.run(1))})),m=!0}},o:function(e){Xe(s.$$.fragment,e),Xe(g),Xe(c.$$.fragment,e),b=b.filter(Boolean);for(var i=0;i<b.length;i+=1)Xe(b[i]);_||(_=it(t,Ft,{duration:250},!1)),_.run(0),m=!1},d:function(i){i&&Q(t),rt(s),e[17](null),g&&g.d(),rt(c),K(b,i),e[25](null),e[28](null),i&&_&&_.end(),f=!1,w(v)}}}function Od(e,t,i){var n,a,s,o,r,l,u=function(e){if(e)return e.inPoint<r&&e.outPoint>r},d=function(){var e,t;if(P&&C){var i=null==(e=v.getWrapper())?void 0:e.getBoundingClientRect();if((null==i?void 0:i.width)<=gt||!o){P.style.transform="";var n=null==(t=v.getPlayoutData())?void 0:t.cornerRadius;x.forEach((function(e){e.style.borderRadius="".concat(n,"px")}))}else{var a=C.getBoundingClientRect().width,r=s/(s+a);P.style.transform="scale(".concat(r,")"),x.forEach((function(e){e.style.borderRadius=""}))}}},c=function(){var e,t=v.getCurrentSubtitle();if("-1"===(null==t?void 0:t.languageid)&&!(null!=D&&D.length)&&($(),setTimeout((function(){$()}),1)),null!=t&&t.parsedData)i(15,D=t.parsedData);else{var n=null==(e=null==a?void 0:a.subtitles)?void 0:e.find((function(e){return(null==e?void 0:e.isocode)===(null==t?void 0:t.isocode)}));null!=n&&n.parsedData&&i(15,D=n.parsedData)}},h=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=null==S?void 0:S.querySelector(".active");if(!E&&t){var i=S.getBoundingClientRect();S.scrollTo({top:t.offsetTop-i.height/2,behavior:e?"instant":"smooth"})}B=!1},p=function(e){v.isPlaying()||v.play(),e&&v.seek(e.inPoint)},_=Ae(zt),m=_.searchPanelOpen,f=_.barIconSize,v=_.api,g=_.currentTime,y=_.playerWidth,b=_.activeSubtitleId,k=_.activeSubtitleLine,w=_.entity,$=_.toggleSubtitles;A(e,m,(function(e){return i(34,o=e)})),A(e,f,(function(e){return i(7,l=e)})),A(e,g,(function(e){return i(35,r=e)})),A(e,y,(function(e){return i(33,s=e)})),A(e,w,(function(e){return i(32,a=e)}));var C,S,P,x,I,T,D=[],E=!1,M="",B=!0,L=[];Ce((function(){var e,t=null==(e=null==v?void 0:v.getWrapper)?void 0:e.call(v);L.push(m.subscribe((function(){var e,i;P||function(){var e=null==v?void 0:v.getWrapper();e&&((P=e.querySelector(".bb-content-layer")).style.transition="transform 0.15s ease-in-out",P.style.transformOrigin="left",x=Array.from(e.querySelectorAll(".bb-content-layer, .bb-head-layer, .bb-poster-layer")))}(),d(),setTimeout((function(){null==I||I.focus(),d(),h(!0)}),(null==(i=null==(e=null==t?void 0:t.getBoundingClientRect)?void 0:e.call(t))?void 0:i.width)<=gt?1:200)})),y.subscribe((function(){d()})),k.subscribe((function(e){e&&(null!=D&&D.length||c(),setTimeout((function(){h(B)}),100))})),b.subscribe((function(){c()})),w.subscribe((function(){setTimeout((function(){c()}),100)})),g.subscribe((function(){!function(){if(null!=D&&D.length){var e=D.findIndex((function(e){return u(e)}));e!==T&&(i(5,T=e),setTimeout((function(){h()}),1))}}()})))})),Se((function(){L.forEach((function(e){return e()}))}));return e.$$.update=function(){32769&e.$$.dirty[0]&&i(6,n=D.filter((function(e){return!M||e.subtitleLine.toLowerCase().includes(M.toLowerCase())})))},[M,C,S,E,I,T,n,l,m,f,g,y,w,h,p,D,function(t){Ie.call(this,e,t)},function(e){De[e?"unshift":"push"]((function(){i(4,I=e)}))},function(){M=this.value,i(0,M)},function(){i(0,M=""),I.focus(),setTimeout((function(){h(!0)}),10)},function(){return m.set(!1)},function(e){p(e)},function(e,t){"Enter"===t.key&&p(e)},function(){i(3,E=!0)},function(){i(3,E=!1)},function(e){De[e?"unshift":"push"]((function(){i(2,S=e)}))},function(){return i(3,E=!0)},function(){return i(3,E=!1)},function(e){De[e?"unshift":"push"]((function(){i(1,C=e)}))}]}var zd=function(e){l.default(i,e);var t=u.default(i);function i(e){var n;return a.default(this,i),n=t.call(this),ut(d.default(n),e,Od,qd,C,{},Md,[-1,-1]),c.default(n)}return i}(dt);function Vd(e){N(e,"svelte-12riu2i",':host{--primary-color:#3578bb;--element-background-color:#4e4e4e}.bb-skin-container.svelte-12riu2i.svelte-12riu2i.svelte-12riu2i.svelte-12riu2i{all:initial;--transform-animation:transform 0.15s ease-in-out, visibility 0.15s ease-in-out;--content-primary:#002837;--content-secondary:#f3f5f5;--bg-active:#505050;position:absolute;left:0;top:0;width:100%;height:100%;color:var(--foreground-color);-webkit-user-select:none;user-select:none;pointer-events:none;font-family:"Lato", "Montserrat", "Arial", sans-serif;font-size:var(--font-size);isolation:isolate;overflow:hidden;border-radius:var(--border-radius-skin)}.bb-skin-container.svelte-12riu2i *{text-shadow:0px calc(var(--font-size) / 12.5) 0px rgba(0, 0, 0, 0.25)}.bb-skin-container.svelte-12riu2i h1,.bb-skin-container.svelte-12riu2i h2,.bb-skin-container.svelte-12riu2i h3{margin:0}.bb-skin-container.svelte-12riu2i h2,.bb-skin-container.svelte-12riu2i h3{font-size:1em}.bb-skin-container.svelte-12riu2i a{color:unset;-webkit-text-decoration:none;text-decoration:none}.bb-skin-container.svelte-12riu2i ul{margin:0;padding:0;list-style-type:none}.bb-skin-container.svelte-12riu2i .disabled{pointer-events:none !important;opacity:0.5 !important}.bb-skin-container.svelte-12riu2i .disabled *{pointer-events:none !important}.bb-skin-container.svelte-12riu2i .disabled-click-only{pointer-events:none !important}.bb-skin-container.svelte-12riu2i .disabled-click-only *{pointer-events:none !important}.bb-skin-container.svelte-12riu2i [tabindex="0"]:focus,.bb-skin-container.svelte-12riu2i input:focus{outline-color:var(--aria-focus-color)}.bb-skin-container.svelte-12riu2i svg,.bb-skin-container.svelte-12riu2i svg path{shape-rendering:geometricPrecision}.bb-skin-container.svelte-12riu2i button,.bb-skin-container.svelte-12riu2i input{font-family:inherit;font-size:inherit;line-height:inherit}.bb-skin-container.svelte-12riu2i .cols-container.svelte-12riu2i.svelte-12riu2i.svelte-12riu2i{display:grid;grid-template-columns:2fr 0;grid-template-rows:1fr;height:100%;transition:grid-template-columns 0.15s ease-in-out}.bb-skin-container.svelte-12riu2i .cols-container.with-secondary-col.svelte-12riu2i.svelte-12riu2i.svelte-12riu2i{grid-template-columns:2fr max(200px, min(33%, 334px))}.bb-skin-container.svelte-12riu2i .cols-container .main-col.svelte-12riu2i.svelte-12riu2i.svelte-12riu2i{position:relative;overflow:hidden}.bb-skin-container.svelte-12riu2i .cols-container .secondary-col.svelte-12riu2i.svelte-12riu2i.svelte-12riu2i{position:relative;overflow:hidden}.bb-skin-container.svelte-12riu2i .cols-container .secondary-col.total-size-xs.svelte-12riu2i.svelte-12riu2i.svelte-12riu2i{position:absolute;top:0;right:0;bottom:0;left:0}.bb-skin-container.svelte-12riu2i .cols-container .secondary-col.total-size-xs.closed.svelte-12riu2i.svelte-12riu2i.svelte-12riu2i{display:none}.bb-skin-container.is-mobile.svelte-12riu2i [tabindex="0"]:focus,.bb-skin-container.is-mobile.svelte-12riu2i input:focus{outline:none}.bb-skin-container.svelte-12riu2i .chrome.svelte-12riu2i.svelte-12riu2i.svelte-12riu2i{width:100%;height:100%;display:flex;flex-direction:column;transition:opacity 0.15s ease-in-out;opacity:0}.bb-skin-container.svelte-12riu2i .chrome-bottom-shadow.svelte-12riu2i.svelte-12riu2i.svelte-12riu2i{transition:opacity 0.15s ease-in-out;opacity:0;position:absolute;top:0;right:0;bottom:0;left:0}.bb-skin-container.svelte-12riu2i .chrome-bottom-shadow.controlbar-visible.svelte-12riu2i.svelte-12riu2i.svelte-12riu2i{background:linear-gradient(rgba(0, 0, 0, 0) 66.67%, rgba(0, 0, 0, 0.5) 100%);opacity:1}.bb-skin-container.svelte-12riu2i .center-area.svelte-12riu2i.svelte-12riu2i.svelte-12riu2i{flex-grow:1}.bb-skin-container.svelte-12riu2i .keyboard-feedback.svelte-12riu2i.svelte-12riu2i.svelte-12riu2i{display:grid;place-content:center;position:absolute;top:0;right:0;bottom:0;left:0}.bb-skin-container.svelte-12riu2i .center-controls-layer.svelte-12riu2i.svelte-12riu2i.svelte-12riu2i{display:grid;place-content:center;position:absolute;left:0;top:0;width:100%;height:100%;transition:opacity 0.15s ease-in-out}.bb-skin-container.svelte-12riu2i .center-controls-layer.backdrop.svelte-12riu2i.svelte-12riu2i.svelte-12riu2i{background-color:rgba(33, 33, 33, 0.7)}.bb-skin-container.svelte-12riu2i .center-controls-layer.backdrop-pause-related.svelte-12riu2i.svelte-12riu2i.svelte-12riu2i{background-color:var(--bg-color-pane)}.bb-skin-container.svelte-12riu2i:not(.user-active):not(.controls-visible) .center-controls.svelte-12riu2i.svelte-12riu2i.svelte-12riu2i,.bb-skin-container.svelte-12riu2i:not(.user-active):not(.controls-visible) .top-container.svelte-12riu2i.svelte-12riu2i.svelte-12riu2i{pointer-events:none;visibility:hidden}.bb-skin-container.svelte-12riu2i:not(.user-active):not(.controls-visible) .center-controls.svelte-12riu2i *:not(.mobile-control),.bb-skin-container.svelte-12riu2i:not(.user-active):not(.controls-visible) .top-container.svelte-12riu2i *:not(.mobile-control){pointer-events:none !important}.bb-skin-container.svelte-12riu2i:not(.user-active):not(.controls-visible) .center-controls.svelte-12riu2i .mobile-control,.bb-skin-container.svelte-12riu2i:not(.user-active):not(.controls-visible) .top-container.svelte-12riu2i .mobile-control{pointer-events:all !important}.bb-skin-container.svelte-12riu2i:not(.user-active):not(.controls-visible) .big-button .button-element{pointer-events:none !important}.bb-skin-container.svelte-12riu2i:not(.user-active):not(.controls-visible) .bottom-container.svelte-12riu2i .slider-hover-container{pointer-events:none !important}.bb-skin-container.svelte-12riu2i:not(.user-active):not(.controls-visible) .bottom-container.svelte-12riu2i input{pointer-events:none !important}.bb-skin-container.svelte-12riu2i .top-container.svelte-12riu2i.svelte-12riu2i.svelte-12riu2i{background:linear-gradient(rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 100%);height:85px;transition:var(--transform-animation), opacity 0.15s ease-in-out;transform:translateY(-200%);z-index:1}.bb-skin-container.svelte-12riu2i .top-container .header-area.svelte-12riu2i.svelte-12riu2i.svelte-12riu2i{margin:var(--margin-size);font-style:normal}.bb-skin-container.svelte-12riu2i .top-container .header-area .top-bar.svelte-12riu2i.svelte-12riu2i.svelte-12riu2i{display:flex;align-items:flex-start;gap:var(--margin-size)}@supports (-webkit-touch-callout: none) and (not (translate: none)){.bb-skin-container.svelte-12riu2i .top-container .header-area .top-bar.svelte-12riu2i>.svelte-12riu2i+.svelte-12riu2i{margin-left:var(--margin-size)}}.bb-skin-container.svelte-12riu2i .top-container .header-area .top-bar .metadata-wrapper.svelte-12riu2i.svelte-12riu2i.svelte-12riu2i{flex-grow:1;position:relative}.bb-skin-container.svelte-12riu2i .top-container .header-area .top-bar .metadata-wrapper .metadata.svelte-12riu2i.svelte-12riu2i.svelte-12riu2i{position:absolute;width:100%;display:inline-flex;flex-direction:column;gap:0.3em}@supports (-webkit-touch-callout: none) and (not (translate: none)){.bb-skin-container.svelte-12riu2i .top-container .header-area .top-bar .metadata-wrapper .metadata.svelte-12riu2i>.svelte-12riu2i+.svelte-12riu2i{margin-left:0.3em}}.bb-skin-container.svelte-12riu2i .top-container .header-area .top-bar .metadata-wrapper .metadata h1.title.svelte-12riu2i.svelte-12riu2i.svelte-12riu2i{font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:1.1em}.bb-skin-container.svelte-12riu2i .top-container .header-area .top-bar .metadata-wrapper .metadata .author-copyright.svelte-12riu2i.svelte-12riu2i.svelte-12riu2i{font-size:0.8em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bb-skin-container.svelte-12riu2i .top-container .header-area .top-bar .share-button.svelte-12riu2i.svelte-12riu2i.svelte-12riu2i{margin-top:calc(-0.25 * var(--bar-button-size))}.bb-skin-container.svelte-12riu2i .bottom-container.svelte-12riu2i.svelte-12riu2i.svelte-12riu2i{padding:calc(var(--margin-size) / 1.667) var(--margin-size);z-index:2;position:relative;transition:var(--transform-animation);position:absolute;bottom:0;left:0;right:0;opacity:1}.bb-skin-container.svelte-12riu2i .bottom-container.mounted.svelte-12riu2i.svelte-12riu2i.svelte-12riu2i{padding:0}.bb-skin-container.svelte-12riu2i .bottom-container:not(.mounted) .always-show-bg.svelte-12riu2i.svelte-12riu2i.svelte-12riu2i{position:absolute;top:0;right:0;bottom:0;left:0;background:linear-gradient(rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 100%);opacity:1;transition:opacity 0.15s ease-in-out}.bb-skin-container.svelte-12riu2i .bottom-controls-highlights-container.svelte-12riu2i.svelte-12riu2i.svelte-12riu2i{position:absolute;bottom:0;right:calc(var(--margin-size) / 2 + 12px);transform:translateY(calc((var(--bar-height) - var(--margin-size) / 2) * -1));transition:opacity 0.15s ease-in-out}.bb-skin-container.svelte-12riu2i .hovering-scrubbar.svelte-12riu2i.svelte-12riu2i.svelte-12riu2i{opacity:0.15}.bb-skin-container.controlbar-visible.svelte-12riu2i .bottom-container .always-show-bg.svelte-12riu2i.svelte-12riu2i.svelte-12riu2i{opacity:0.2;z-index:-1}.bb-skin-container.controls-visible.svelte-12riu2i .top-container.svelte-12riu2i.svelte-12riu2i.svelte-12riu2i,.bb-skin-container.phase-init.svelte-12riu2i .top-container.svelte-12riu2i.svelte-12riu2i.svelte-12riu2i{transform:translateY(0)}.bb-skin-container.controls-visible.svelte-12riu2i .chrome.svelte-12riu2i.svelte-12riu2i.svelte-12riu2i,.bb-skin-container.phase-init.svelte-12riu2i .chrome.svelte-12riu2i.svelte-12riu2i.svelte-12riu2i{opacity:1}.bb-skin-container.controlbar-visible.svelte-12riu2i .bottom-container.svelte-12riu2i.svelte-12riu2i.svelte-12riu2i{transform:translateY(0);visibility:visible}.bb-skin-container.svelte-12riu2i .bar-button.svelte-12riu2i.svelte-12riu2i.svelte-12riu2i{width:var(--bar-button-size);height:var(--bar-button-size)}.bb-skin-container.svelte-12riu2i .config-pane-container.svelte-12riu2i.svelte-12riu2i.svelte-12riu2i,.bb-skin-container.svelte-12riu2i .chapter-pane-container.svelte-12riu2i.svelte-12riu2i.svelte-12riu2i{position:absolute;bottom:var(--bar-height);z-index:9}.bb-skin-container.svelte-12riu2i .config-pane-container.size-XS.svelte-12riu2i.svelte-12riu2i.svelte-12riu2i,.bb-skin-container.svelte-12riu2i .chapter-pane-container.size-XS.svelte-12riu2i.svelte-12riu2i.svelte-12riu2i{background-color:rgba(33, 33, 33, 0.5);top:0;right:0;bottom:0;left:0}.bb-skin-container.svelte-12riu2i .config-pane-container.svelte-12riu2i.svelte-12riu2i.svelte-12riu2i{top:var(--margin-size);left:30%;right:0}.bb-skin-container.svelte-12riu2i .speedback-pane-container.svelte-12riu2i.svelte-12riu2i.svelte-12riu2i{pointer-events:all;position:absolute;top:0;left:var(--button-width);bottom:0;right:0;z-index:9;background-color:#1c1c1c;display:flex;align-items:center;justify-content:flex-end;height:100%;background-color:rgba(0, 0, 0, 0.6);-webkit-backdrop-filter:blur(1px);backdrop-filter:blur(1px)}.bb-skin-container.svelte-12riu2i .chapter-pane-container.svelte-12riu2i.svelte-12riu2i.svelte-12riu2i{top:40%;left:var(--position-left, 10%);right:40%}.bb-skin-container.svelte-12riu2i .chapter-pane-container.size-S.svelte-12riu2i.svelte-12riu2i.svelte-12riu2i{top:20%;right:35%}.bb-skin-container.svelte-12riu2i .chapter-pane-container.mounted.svelte-12riu2i.svelte-12riu2i.svelte-12riu2i{top:var(--margin-size);left:50%;right:0}.bb-skin-container.svelte-12riu2i .chapter-pane-container .pane.svelte-12riu2i.svelte-12riu2i.svelte-12riu2i{left:0;right:unset}.bb-skin-container.svelte-12riu2i .overlays.svelte-12riu2i.svelte-12riu2i.svelte-12riu2i{position:absolute;top:0;right:0;bottom:0;left:0}.bb-skin-container.svelte-12riu2i .overlays .context-menu.svelte-12riu2i.svelte-12riu2i.svelte-12riu2i{position:absolute;z-index:99;width:200%;height:200%}.bb-skin-container.svelte-12riu2i .overlays .context-menu.svelte-12riu2i>div.svelte-12riu2i.svelte-12riu2i{position:absolute}.bb-skin-container.svelte-12riu2i .overlays.svelte-12riu2i>.svelte-12riu2i.svelte-12riu2i{position:absolute;width:100%;height:100%}.bb-skin-container.svelte-12riu2i .overlays.svelte-12riu2i>.svelte-12riu2i.svelte-12riu2i:not(.no-padding){padding:var(--margin-size)}.bb-skin-container.svelte-12riu2i .overlays .loading-overlay.svelte-12riu2i.svelte-12riu2i.svelte-12riu2i{display:grid;place-content:center}.bb-skin-container.svelte-12riu2i .overlays .loading-overlay .loading.svelte-12riu2i.svelte-12riu2i.svelte-12riu2i{--size:var(--big-icon-size);--border-width:calc(max(var(--size) * 0.1, 5px));position:relative}.bb-skin-container.svelte-12riu2i .overlays .loading-overlay .loading .loading-icon.svelte-12riu2i.svelte-12riu2i.svelte-12riu2i{position:absolute;left:calc(var(--size) * -0.5 - 7px);top:calc(var(--size) * -0.5 - 7px);animation:svelte-12riu2i-loader-spin 2s linear infinite;border:var(--border-width) solid rgba(0, 0, 0, 0.2);border-left:var(--border-width) solid rgba(255, 255, 255, 0.75);border-radius:100px;width:var(--size);height:var(--size)}.bb-skin-container.svelte-12riu2i .overlays .loading-overlay .loading .loading-icon.svelte-12riu2i.svelte-12riu2i.svelte-12riu2i::after{position:absolute;left:calc(var(--border-width) * -1);top:calc(var(--border-width) * -1);animation:svelte-12riu2i-loader-spin 3s ease-in-out infinite;content:"";display:block;width:var(--size);height:var(--size);border-radius:100px;border:var(--border-width) solid rgba(255, 255, 255, 0);border-left:var(--border-width) solid rgba(255, 255, 255, 0.5)}@keyframes svelte-12riu2i-loader-spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.bb-skin-container.svelte-12riu2i .logo-overlay.svelte-12riu2i.svelte-12riu2i.svelte-12riu2i{position:absolute;top:var(--margin-size);right:var(--margin-size);bottom:var(--margin-size);left:var(--margin-size);display:flex;z-index:2}.bb-skin-container.svelte-12riu2i .logo-overlay.right.svelte-12riu2i.svelte-12riu2i.svelte-12riu2i{justify-content:flex-end}.bb-skin-container.svelte-12riu2i .highlights-pane-container.svelte-12riu2i.svelte-12riu2i.svelte-12riu2i{z-index:1;position:absolute;top:calc(5% + var(--margin-size));bottom:calc(var(--bar-height) - var(--margin-size) / 2);right:calc(var(--margin-size) / 2 + 12px);left:calc(var(--margin-size) / 2 + 12px);pointer-events:all;display:flex;justify-content:end;align-items:end;transition:opacity 0.15s ease-in-out}.bb-skin-container.svelte-12riu2i .sticky-progress-bar.svelte-12riu2i.svelte-12riu2i.svelte-12riu2i{position:absolute;bottom:0;left:0;right:0;height:var(--height-progress-bar)}.bb-skin-container.svelte-12riu2i .notification-button-bar-container.svelte-12riu2i.svelte-12riu2i.svelte-12riu2i{background-color:#1f1f1f;opacity:0.9;position:absolute;bottom:40px;border-radius:0px 4px 4px 0px}')}function jd(e){var t,i,n,a,s,o,r,l,u,d,c,h,p,_,m,f,v,g,y,b,k,w,$,C,S,P,x,A,I,T,D,E,M,B=e[6]()&&!e[66]&&!e[5],L=!("INIT"===e[20]||"show"!==(null==(t=e[12])?void 0:t.controlBarSticky)||e[19]&&!e[8]||e[6]()),R=(null==(i=e[25])?void 0:i.isMobileDevice)&&!e[23]&&Ud(e),H=e[56]&&Wd(),q=!e[17]&&Gd(e),O=e[17]&&e[59]&&Jd(),z=e[60]&&!(e[27]&&(null==(a=null==(n=e[10])?void 0:n.relatedItems)||!a.hidden)&&("EXIT"!==e[20]||!e[5]))&&Qd(e),V=e[0]&&Kd(e),j=(null==(s=e[61])?void 0:s.text)&&Yd(e),N=e[14]&&Zd(e),U=e[1]&&ec(e),W=e[15]&&tc(e),G=e[2]&&ic(e);C=new pd({});var K=!e[66]&&nc(e),X=!e[18]&&dc(e),Z=B&&cc(e),te=L&&pc(e),ie=(e[28]||e[7])&&_c(),ne=e[32]&&mc(e);return{c:function(){var t,i;o=Y("div"),r=Y("div"),l=Y("div"),R&&R.c(),u=ee(),d=Y("div"),H&&H.c(),c=ee(),h=ee(),q&&q.c(),p=ee(),O&&O.c(),_=ee(),m=Y("div"),z&&z.c(),v=ee(),V&&V.c(),g=ee(),j&&j.c(),y=ee(),N&&N.c(),b=ee(),U&&U.c(),k=ee(),W&&W.c(),w=ee(),G&&G.c(),$=ee(),st(C.$$.fragment),S=ee(),K&&K.c(),P=ee(),X&&X.c(),x=ee(),Z&&Z.c(),A=ee(),te&&te.c(),I=ee(),T=Y("div"),ie&&ie.c(),D=ee(),E=Y("div"),ne&&ne.c(),se(d,"class","loading-overlay no-padding svelte-12riu2i"),se(l,"class","overlays svelte-12riu2i"),se(m,"class","logo-overlay svelte-12riu2i"),se(m,"style",f=e[42]("logo")),he(m,"right",null==(i=null==(t=e[60])?void 0:t.position)?void 0:i.toLowerCase().includes("right")),se(r,"class","main-col svelte-12riu2i"),se(T,"class","secondary-col svelte-12riu2i"),he(T,"closed",!e[28]),he(T,"total-size-xs",e[43]<=gt),se(E,"class","overlays svelte-12riu2i"),se(o,"class","cols-container svelte-12riu2i"),he(o,"with-secondary-col",e[28]&&e[43]>gt)},m:function(e,t){J(e,o,t),F(o,r),F(r,l),R&&R.m(l,null),F(l,u),F(l,d),H&&H.m(d,null),F(l,c),F(r,h),q&&q.m(r,null),F(r,p),O&&O.m(r,null),F(r,_),F(r,m),z&&z.m(m,null),F(r,v),V&&V.m(r,null),F(r,g),j&&j.m(r,null),F(r,y),N&&N.m(r,null),F(r,b),U&&U.m(r,null),F(r,k),W&&W.m(r,null),F(r,w),G&&G.m(r,null),F(r,$),ot(C,r,null),F(r,S),K&&K.m(r,null),F(r,P),X&&X.m(r,null),F(r,x),Z&&Z.m(r,null),F(r,A),te&&te.m(r,null),F(o,I),F(o,T),ie&&ie.m(T,null),F(o,D),F(o,E),ne&&ne.m(E,null),M=!0},p:function(e,t){var i,n,a,s,c,h,v;null!=(i=e[25])&&i.isMobileDevice&&!e[23]?R?(R.p(e,t),41943040&t[0]&&Ye(R,1)):((R=Ud(e)).c(),Ye(R,1),R.m(l,u)):R&&(Qe(),Xe(R,1,1,(function(){R=null})),Ke()),e[56]?H?33554432&t[1]&&Ye(H,1):((H=Wd()).c(),Ye(H,1),H.m(d,null)):H&&(Qe(),Xe(H,1,1,(function(){H=null})),Ke()),e[17]?q&&(Qe(),Xe(q,1,1,(function(){q=null})),Ke()):q?(q.p(e,t),131072&t[0]&&Ye(q,1)):((q=Gd(e)).c(),Ye(q,1),q.m(r,p)),e[17]&&e[59]?O?131072&t[0]|268435456&t[1]&&Ye(O,1):((O=Jd()).c(),Ye(O,1),O.m(r,_)):O&&(Qe(),Xe(O,1,1,(function(){O=null})),Ke()),e[60]&&(!e[27]||null!=(a=null==(n=e[10])?void 0:n.relatedItems)&&a.hidden||"EXIT"===e[20]&&e[5])?z?(z.p(e,t),135267360&t[0]|536870912&t[1]&&Ye(z,1)):((z=Qd(e)).c(),Ye(z,1),z.m(m,null)):z&&(Qe(),Xe(z,1,1,(function(){z=null})),Ke()),(!M||2048&t[1]&&f!==(f=e[42]("logo")))&&se(m,"style",f),(!M||536870912&t[1])&&he(m,"right",null==(c=null==(s=e[60])?void 0:s.position)?void 0:c.toLowerCase().includes("right")),e[0]?V?(V.p(e,t),1&t[0]&&Ye(V,1)):((V=Kd(e)).c(),Ye(V,1),V.m(r,g)):V&&(Qe(),Xe(V,1,1,(function(){V=null})),Ke()),null!=(h=e[61])&&h.text?j?(j.p(e,t),1073741824&t[1]&&Ye(j,1)):((j=Yd(e)).c(),Ye(j,1),j.m(r,y)):j&&(Qe(),Xe(j,1,1,(function(){j=null})),Ke()),e[14]?N?(N.p(e,t),16384&t[0]&&Ye(N,1)):((N=Zd(e)).c(),Ye(N,1),N.m(r,b)):N&&(Qe(),Xe(N,1,1,(function(){N=null})),Ke()),e[1]?U?(U.p(e,t),2&t[0]&&Ye(U,1)):((U=ec(e)).c(),Ye(U,1),U.m(r,k)):U&&(Qe(),Xe(U,1,1,(function(){U=null})),Ke()),e[15]?W?(W.p(e,t),32768&t[0]&&Ye(W,1)):((W=tc(e)).c(),Ye(W,1),W.m(r,w)):W&&(Qe(),Xe(W,1,1,(function(){W=null})),Ke()),e[2]?G?(G.p(e,t),4&t[0]&&Ye(G,1)):((G=ic(e)).c(),Ye(G,1),G.m(r,$)):G&&(Qe(),Xe(G,1,1,(function(){G=null})),Ke()),e[66]?K&&(Qe(),Xe(K,1,1,(function(){K=null})),Ke()):K?(K.p(e,t),16&t[2]&&Ye(K,1)):((K=nc(e)).c(),Ye(K,1),K.m(r,P)),e[18]?X&&(X.d(1),X=null):X?X.p(e,t):((X=dc(e)).c(),X.m(r,x)),96&t[0]|16&t[2]&&(B=e[6]()&&!e[66]&&!e[5]),B?Z?(Z.p(e,t),96&t[0]|16&t[2]&&Ye(Z,1)):((Z=cc(e)).c(),Ye(Z,1),Z.m(r,A)):Z&&(Qe(),Xe(Z,1,1,(function(){Z=null})),Ke()),1577280&t[0]&&(L=!("INIT"===e[20]||"show"!==(null==(v=e[12])?void 0:v.controlBarSticky)||e[19]&&!e[8]||e[6]())),L?te?(te.p(e,t),1577280&t[0]&&Ye(te,1)):((te=pc(e)).c(),Ye(te,1),te.m(r,null)):te&&(Qe(),Xe(te,1,1,(function(){te=null})),Ke()),e[28]||e[7]?ie?268435584&t[0]&&Ye(ie,1):((ie=_c()).c(),Ye(ie,1),ie.m(T,null)):ie&&(Qe(),Xe(ie,1,1,(function(){ie=null})),Ke()),(!M||268435456&t[0])&&he(T,"closed",!e[28]),(!M||4096&t[1])&&he(T,"total-size-xs",e[43]<=gt),e[32]?ne?(ne.p(e,t),2&t[1]&&Ye(ne,1)):((ne=mc(e)).c(),Ye(ne,1),ne.m(E,null)):ne&&(Qe(),Xe(ne,1,1,(function(){ne=null})),Ke()),(!M||268435456&t[0]|4096&t[1])&&he(o,"with-secondary-col",e[28]&&e[43]>gt)},i:function(e){M||(Ye(R),Ye(H),Ye(q),Ye(O),Ye(z),Ye(V),Ye(j),Ye(N),Ye(U),Ye(W),Ye(G),Ye(C.$$.fragment,e),Ye(K),Ye(Z),Ye(te),Ye(ie),Ye(ne),M=!0)},o:function(e){Xe(R),Xe(H),Xe(q),Xe(O),Xe(z),Xe(V),Xe(j),Xe(N),Xe(U),Xe(W),Xe(G),Xe(C.$$.fragment,e),Xe(K),Xe(Z),Xe(te),Xe(ie),Xe(ne),M=!1},d:function(e){e&&Q(o),R&&R.d(),H&&H.d(),q&&q.d(),O&&O.d(),z&&z.d(),V&&V.d(),j&&j.d(),N&&N.d(),U&&U.d(),W&&W.d(),G&&G.d(),rt(C),K&&K.d(),X&&X.d(),Z&&Z.d(),te&&te.d(),ie&&ie.d(),ne&&ne.d()}}}function Fd(e){var t,i,n,a,s,o,r;(a=new vr({props:{fullHeight:!0,iStyle:e[42]}})).$on("togglePlaybackSpeedPane",e[147]);var l=e[34]&&fc(e);return{c:function(){t=Y("div"),i=Y("div"),n=ee(),st(a.$$.fragment),s=ee(),l&&l.c(),o=te(),se(i,"class","always-show-bg svelte-12riu2i"),se(t,"class","bottom-container svelte-12riu2i"),he(t,"mounted",!0)},m:function(u,d){J(u,t,d),F(t,i),F(t,n),ot(a,t,null),e[148](t),J(u,s,d),l&&l.m(u,d),J(u,o,d),r=!0},p:function(e,t){var i={};2048&t[1]&&(i.iStyle=e[42]),a.$set(i),e[34]?l?(l.p(e,t),8&t[1]&&Ye(l,1)):((l=fc(e)).c(),Ye(l,1),l.m(o.parentNode,o)):l&&(Qe(),Xe(l,1,1,(function(){l=null})),Ke())},i:function(e){r||(Ye(a.$$.fragment,e),Ye(l),r=!0)},o:function(e){Xe(a.$$.fragment,e),Xe(l),r=!1},d:function(i){i&&(Q(t),Q(s),Q(o)),rt(a),e[148](null),l&&l.d(i)}}}function Nd(e){var t,i,n=e[21]&&vc();return{c:function(){n&&n.c(),t=te()},m:function(e,a){n&&n.m(e,a),J(e,t,a),i=!0},p:function(e,i){e[21]?n?2097152&i[0]&&Ye(n,1):((n=vc()).c(),Ye(n,1),n.m(t.parentNode,t)):n&&(Qe(),Xe(n,1,1,(function(){n=null})),Ke())},i:function(e){i||(Ye(n),i=!0)},o:function(e){Xe(n),i=!1},d:function(e){e&&Q(t),n&&n.d(e)}}}function Ud(e){var t,i,n,a;return(t=new Gu({props:{position:"back"}})).$on("doubleTap",e[151]),(n=new Gu({props:{position:"forward"}})).$on("doubleTap",e[152]),{c:function(){st(t.$$.fragment),i=ee(),st(n.$$.fragment)},m:function(e,s){ot(t,e,s),J(e,i,s),ot(n,e,s),a=!0},p:v,i:function(e){a||(Ye(t.$$.fragment,e),Ye(n.$$.fragment,e),a=!0)},o:function(e){Xe(t.$$.fragment,e),Xe(n.$$.fragment,e),a=!1},d:function(e){e&&Q(i),rt(t,e),rt(n,e)}}}function Wd(e){var t,i,n,a;return{c:function(){(t=Y("div")).innerHTML='<div class="loading-icon svelte-12riu2i"></div>',se(t,"class","loading svelte-12riu2i")},m:function(e,i){J(e,t,i),a=!0},i:function(e){a||(qe((function(){a&&(n&&n.end(1),(i=et(t,Ft,{})).start())})),a=!0)},o:function(e){i&&i.invalidate(),n=tt(t,Ft,{}),a=!1},d:function(e){e&&Q(t),e&&n&&n.end()}}}function Gd(e){var t,i,n;return i=new el({props:{iStyle:e[42],controlsVisible:e[41]}}),{c:function(){t=Y("div"),st(i.$$.fragment),se(t,"class","keyboard-feedback no-padding svelte-12riu2i")},m:function(e,a){J(e,t,a),ot(i,t,null),n=!0},p:function(e,t){var n={};2048&t[1]&&(n.iStyle=e[42]),1024&t[1]&&(n.controlsVisible=e[41]),i.$set(n)},i:function(e){n||(Ye(i.$$.fragment,e),n=!0)},o:function(e){Xe(i.$$.fragment,e),n=!1},d:function(e){e&&Q(t),rt(i)}}}function Jd(e){var t,i,n;return i=new Sd({}),{c:function(){t=Y("div"),st(i.$$.fragment),se(t,"class","notification-button-bar-container svelte-12riu2i")},m:function(e,a){J(e,t,a),ot(i,t,null),n=!0},i:function(e){n||(Ye(i.$$.fragment,e),n=!0)},o:function(e){Xe(i.$$.fragment,e),n=!1},d:function(e){e&&Q(t),rt(i)}}}function Qd(e){var t,i;return t=new Fs({props:{logoObject:e[60]}}),{c:function(){st(t.$$.fragment)},m:function(e,n){ot(t,e,n),i=!0},p:function(e,i){var n={};536870912&i[1]&&(n.logoObject=e[60]),t.$set(n)},i:function(e){i||(Ye(t.$$.fragment,e),i=!0)},o:function(e){Xe(t.$$.fragment,e),i=!1},d:function(e){rt(t,e)}}}function Kd(e){var t,i;return(t=new $s({})).$on("close",e[154]),t.$on("backdropClick",e[155]),{c:function(){st(t.$$.fragment)},m:function(e,n){ot(t,e,n),i=!0},p:v,i:function(e){i||(Ye(t.$$.fragment,e),i=!0)},o:function(e){Xe(t.$$.fragment,e),i=!1},d:function(e){rt(t,e)}}}function Yd(e){var t,i;return t=new Rs({props:{icon:e[61].icon,$$slots:{default:[Xd]},$$scope:{ctx:e}}}),{c:function(){st(t.$$.fragment)},m:function(e,n){ot(t,e,n),i=!0},p:function(e,i){var n={};1073741824&i[1]&&(n.icon=e[61].icon),1073741824&i[1]|8192&i[6]&&(n.$$scope={dirty:i,ctx:e}),t.$set(n)},i:function(e){i||(Ye(t.$$.fragment,e),i=!0)},o:function(e){Xe(t.$$.fragment,e),i=!1},d:function(e){rt(t,e)}}}function Xd(e){var t,i=e[61].text+"";return{c:function(){t=Z(i)},m:function(e,i){J(e,t,i)},p:function(e,n){1073741824&n[1]&&i!==(i=e[61].text+"")&&le(t,i)},d:function(e){e&&Q(t)}}}function Zd(e){var t,i,n,a;return i=new An({props:{onItemSelected:e[156]}}),{c:function(){t=Y("div"),st(i.$$.fragment),se(t,"class",n="config-pane-container size-"+e[62]+" svelte-12riu2i")},m:function(e,n){J(e,t,n),ot(i,t,null),a=!0},p:function(e,i){(!a||1&i[2]&&n!==(n="config-pane-container size-"+e[62]+" svelte-12riu2i"))&&se(t,"class",n)},i:function(e){a||(Ye(i.$$.fragment,e),a=!0)},o:function(e){Xe(i.$$.fragment,e),a=!1},d:function(e){e&&Q(t),rt(i)}}}function ec(e){var t,i,n,a;return(i=new Bu({})).$on("toggle",e[157]),{c:function(){t=Y("div"),st(i.$$.fragment),se(t,"class",n="chapter-pane-container size-"+e[63]+" svelte-12riu2i"),he(t,"mounted",e[18]),de(t,"--position-left",e[64])},m:function(e,n){J(e,t,n),ot(i,t,null),a=!0},p:function(e,i){(!a||2&i[2]&&n!==(n="chapter-pane-container size-"+e[63]+" svelte-12riu2i"))&&se(t,"class",n),(!a||262144&i[0]|2&i[2])&&he(t,"mounted",e[18]),4&i[2]&&de(t,"--position-left",e[64])},i:function(e){a||(Ye(i.$$.fragment,e),a=!0)},o:function(e){Xe(i.$$.fragment,e),a=!1},d:function(e){e&&Q(t),rt(i)}}}function tc(e){var t,i;return(t=new Mr({})).$on("close",e[158]),t.$on("backdropClick",e[159]),{c:function(){st(t.$$.fragment)},m:function(e,n){ot(t,e,n),i=!0},p:v,i:function(e){i||(Ye(t.$$.fragment,e),i=!0)},o:function(e){Xe(t.$$.fragment,e),i=!1},d:function(e){rt(t,e)}}}function ic(e){var t,i,n;return i=new rd({props:{goToHighlight:e[132]}}),{c:function(){t=Y("div"),st(i.$$.fragment),se(t,"class","highlights-pane-container svelte-12riu2i"),he(t,"hovering-scrubbar",e[65]||e[14])},m:function(e,a){J(e,t,a),ot(i,t,null),n=!0},p:function(e,i){(!n||16384&i[0]|8&i[2])&&he(t,"hovering-scrubbar",e[65]||e[14])},i:function(e){n||(Ye(i.$$.fragment,e),n=!0)},o:function(e){Xe(i.$$.fragment,e),n=!1},d:function(e){e&&Q(t),rt(i)}}}function nc(e){var t,i,n,a,s,o,r,l,u,d,c,h=!(null!=(t=e[10].topContainer)&&t.hidden||"INIT"===e[20]&&e[21]&&"idle"!==e[58]||"EXIT"===e[20]&&null!=(i=e[67])&&i.length&&e[12].autoPlayNext&&null!==e[68]||e[27]&&(null==(a=null==(n=e[10])?void 0:n.relatedItems)||!a.hidden)&&("EXIT"!==e[20]||!e[5]))&&ac(e);return l=new Du({props:{iStyle:e[42],hideRelatedButton:e[2]}}),{c:function(){var t,i,n,a,c;s=Y("div"),h&&h.c(),o=ee(),r=Y("div"),st(l.$$.fragment),u=ee(),d=Y("div"),se(r,"class","center-controls-layer svelte-12riu2i"),he(r,"backdrop",!(null!=(i=null==(t=e[10])?void 0:t.backdrop)&&i.hidden)),he(r,"backdrop-pause-related","EXIT"!==e[20]&&!e[11]&&e[69]&&!(null!=(a=null==(n=e[10])?void 0:n.relatedItems)&&a.hidden)),de(r,"opacity",e[37]||e[70]&&e[11]?"0":null),se(d,"class","center-area svelte-12riu2i"),se(s,"class","chrome svelte-12riu2i"),he(s,"mounted",e[18]),he(s,"controlbar-visible",e[6]()),de(s,"background-color",null!=(c=e[10].centerControls)&&c.hidden?"":"rgba(0, 0, 0, 0.15)")},m:function(e,t){J(e,s,t),h&&h.m(s,null),F(s,o),F(s,r),ot(l,r,null),F(s,u),F(s,d),c=!0},p:function(e,t){var i,n,a,u,d,p,_,m,f;null!=(i=e[10].topContainer)&&i.hidden||"INIT"===e[20]&&e[21]&&"idle"!==e[58]||"EXIT"===e[20]&&null!=(n=e[67])&&n.length&&e[12].autoPlayNext&&null!==e[68]||e[27]&&(null==(u=null==(a=e[10])?void 0:a.relatedItems)||!u.hidden)&&("EXIT"!==e[20]||!e[5])?h&&(Qe(),Xe(h,1,1,(function(){h=null})),Ke()):h?(h.p(e,t),137368608&t[0]|134217728&t[1]|96&t[2]&&Ye(h,1)):((h=ac(e)).c(),Ye(h,1),h.m(s,o));var v={};2048&t[1]&&(v.iStyle=e[42]),4&t[0]&&(v.hideRelatedButton=e[2]),l.$set(v),(!c||1024&t[0])&&he(r,"backdrop",!(null!=(p=null==(d=e[10])?void 0:d.backdrop)&&p.hidden)),(!c||1051648&t[0]|128&t[2])&&he(r,"backdrop-pause-related","EXIT"!==e[20]&&!e[11]&&e[69]&&!(null!=(m=null==(_=e[10])?void 0:_.relatedItems)&&m.hidden)),2048&t[0]|64&t[1]|256&t[2]&&de(r,"opacity",e[37]||e[70]&&e[11]?"0":null),(!c||262144&t[0])&&he(s,"mounted",e[18]),(!c||64&t[0])&&he(s,"controlbar-visible",e[6]()),1024&t[0]&&de(s,"background-color",null!=(f=e[10].centerControls)&&f.hidden?"":"rgba(0, 0, 0, 0.15)")},i:function(e){c||(Ye(h),Ye(l.$$.fragment,e),c=!0)},o:function(e){Xe(h),Xe(l.$$.fragment,e),c=!1},d:function(e){e&&Q(s),h&&h.d(),rt(l)}}}function ac(e){var t,i,n,a,s,o,r,l,u=null==(i=null==(t=e[60])?void 0:t.position)?void 0:i.toLowerCase().includes("left"),d=u&&sc(e),c=e[16]&&oc(e),h=!e[23]&&rc(e);return{c:function(){n=Y("div"),a=Y("div"),s=Y("div"),d&&d.c(),o=ee(),c&&c.c(),r=ee(),h&&h.c(),se(s,"class","top-bar svelte-12riu2i"),se(a,"class","header-area svelte-12riu2i"),se(n,"class","top-container svelte-12riu2i"),de(n,"opacity",e[37]?"0":null)},m:function(e,t){J(e,n,t),F(n,a),F(a,s),d&&d.m(s,null),F(s,o),c&&c.m(s,null),F(s,r),h&&h.m(s,null),l=!0},p:function(e,t){var i,a;536870912&t[1]&&(u=null==(a=null==(i=e[60])?void 0:i.position)?void 0:a.toLowerCase().includes("left")),u?d?(d.p(e,t),536870912&t[1]&&Ye(d,1)):((d=sc(e)).c(),Ye(d,1),d.m(s,o)):d&&(Qe(),Xe(d,1,1,(function(){d=null})),Ke()),e[16]?c?c.p(e,t):((c=oc(e)).c(),c.m(s,r)):c&&(c.d(1),c=null),e[23]?h&&(Qe(),Xe(h,1,1,(function(){h=null})),Ke()):h?(h.p(e,t),8388608&t[0]&&Ye(h,1)):((h=rc(e)).c(),Ye(h,1),h.m(s,null)),64&t[1]&&de(n,"opacity",e[37]?"0":null)},i:function(e){l||(Ye(d),Ye(h),l=!0)},o:function(e){Xe(d),Xe(h),l=!1},d:function(e){e&&Q(n),d&&d.d(),c&&c.d(),h&&h.d()}}}function sc(e){var t,i,n,a;return i=new Fs({props:{logoObject:e[60],placeholder:!0}}),{c:function(){t=Y("div"),st(i.$$.fragment),se(t,"style",n=e[42]("logo")),se(t,"class","svelte-12riu2i")},m:function(e,n){J(e,t,n),ot(i,t,null),a=!0},p:function(e,s){var o={};536870912&s[1]&&(o.logoObject=e[60]),i.$set(o),(!a||2048&s[1]&&n!==(n=e[42]("logo")))&&se(t,"style",n)},i:function(e){a||(Ye(i.$$.fragment,e),a=!0)},o:function(e){Xe(i.$$.fragment,e),a=!1},d:function(e){e&&Q(t),rt(i)}}}function oc(e){var t,i,n,a,s,o,r,l,u,d,c,h,p,_,m,f,v,g,y,b,k,w,$=(e[16].title||"")+"",C=(e[12].authorCopyrightPrefixText||"")+"",S=(e[16].author||"")+"",P=(e[16].copyright||"")+"";return{c:function(){t=Y("div"),i=Y("div"),n=Y("h1"),a=Z($),o=ee(),r=Y("div"),l=Y("span"),u=Z(C),d=ee(),c=Y("span"),h=Z(S),_=ee(),m=Y("span"),f=Z("|"),g=ee(),y=Y("span"),b=Z(P),se(n,"class","title svelte-12riu2i"),se(n,"style",s=e[42]("title")),se(l,"class","pre-text"),se(c,"class","author"),se(c,"style",p=e[42]("author")),se(m,"class","divider"),se(m,"style",v=e[42]("author||copyright")),se(y,"class","copyright"),se(y,"style",k=e[42]("copyright")),se(r,"class","author-copyright svelte-12riu2i"),se(r,"style",w=e[42]("author&&copyright")),se(i,"class","metadata svelte-12riu2i"),se(i,"role","contentinfo"),se(t,"class","metadata-wrapper svelte-12riu2i")},m:function(s,p){J(s,t,p),F(t,i),F(i,n),F(n,a),F(i,o),F(i,r),F(r,l),F(l,u),F(r,d),F(r,c),F(c,h),F(r,_),F(r,m),F(m,f),F(r,g),F(r,y),F(y,b),e[160](i)},p:function(e,t){65536&t[0]&&$!==($=(e[16].title||"")+"")&&le(a,$),2048&t[1]&&s!==(s=e[42]("title"))&&se(n,"style",s),4096&t[0]&&C!==(C=(e[12].authorCopyrightPrefixText||"")+"")&&le(u,C),65536&t[0]&&S!==(S=(e[16].author||"")+"")&&le(h,S),2048&t[1]&&p!==(p=e[42]("author"))&&se(c,"style",p),2048&t[1]&&v!==(v=e[42]("author||copyright"))&&se(m,"style",v),65536&t[0]&&P!==(P=(e[16].copyright||"")+"")&&le(b,P),2048&t[1]&&k!==(k=e[42]("copyright"))&&se(y,"style",k),2048&t[1]&&w!==(w=e[42]("author&&copyright"))&&se(r,"style",w)},d:function(i){i&&Q(t),e[160](null)}}}function rc(e){var t,i,n,a,s,o,r,l,u,d,c=null==(i=null==(t=e[60])?void 0:t.position)?void 0:i.toLowerCase().includes("right");a=new pi({props:{iconHeight:e[49],name:"shareButton",tooltipOffsetY:"4em",$$slots:{normal:[lc]},$$scope:{ctx:e}}});var h=c&&uc(e);return{c:function(){n=Y("div"),st(a.$$.fragment),o=ee(),h&&h.c(),r=te(),se(n,"class","share-button bar-button svelte-12riu2i"),se(n,"style",s=e[42]("shareButton"))},m:function(t,i){J(t,n,i),ot(a,n,null),J(t,o,i),h&&h.m(t,i),J(t,r,i),l=!0,u||(d=ie(n,"click",ae(e[161])),u=!0)},p:function(e,t){var i,o,u={};262144&t[1]&&(u.iconHeight=e[49]),8192&t[6]&&(u.$$scope={dirty:t,ctx:e}),a.$set(u),(!l||2048&t[1]&&s!==(s=e[42]("shareButton")))&&se(n,"style",s),536870912&t[1]&&(c=null==(o=null==(i=e[60])?void 0:i.position)?void 0:o.toLowerCase().includes("right")),c?h?(h.p(e,t),536870912&t[1]&&Ye(h,1)):((h=uc(e)).c(),Ye(h,1),h.m(r.parentNode,r)):h&&(Qe(),Xe(h,1,1,(function(){h=null})),Ke())},i:function(e){l||(Ye(a.$$.fragment,e),Ye(h),l=!0)},o:function(e){Xe(a.$$.fragment,e),Xe(h),l=!1},d:function(e){e&&(Q(n),Q(o),Q(r)),rt(a),h&&h.d(e),u=!1,d()}}}function lc(e){var t,i,n;return i=new Wt({}),{c:function(){t=Y("div"),st(i.$$.fragment),se(t,"slot","normal")},m:function(e,a){J(e,t,a),ot(i,t,null),n=!0},p:v,i:function(e){n||(Ye(i.$$.fragment,e),n=!0)},o:function(e){Xe(i.$$.fragment,e),n=!1},d:function(e){e&&Q(t),rt(i)}}}function uc(e){var t,i,n,a;return i=new Fs({props:{logoObject:e[60],placeholder:!0}}),{c:function(){t=Y("div"),st(i.$$.fragment),se(t,"style",n=e[42]("logo")),se(t,"class","svelte-12riu2i")},m:function(e,n){J(e,t,n),ot(i,t,null),a=!0},p:function(e,s){var o={};536870912&s[1]&&(o.logoObject=e[60]),i.$set(o),(!a||2048&s[1]&&n!==(n=e[42]("logo")))&&se(t,"style",n)},i:function(e){a||(Ye(i.$$.fragment,e),a=!0)},o:function(e){Xe(i.$$.fragment,e),a=!1},d:function(e){e&&Q(t),rt(i)}}}function dc(e){var t;return{c:function(){se(t=Y("div"),"class","chrome-bottom-shadow svelte-12riu2i"),he(t,"controlbar-visible",e[6]())},m:function(e,i){J(e,t,i)},p:function(e,i){64&i[0]&&he(t,"controlbar-visible",e[6]())},d:function(e){e&&Q(t)}}}function cc(e){var t,i,n,a,s,o,r,l,u,d=(null==(t=e[71])?void 0:t.length)&&hc(e);return(o=new vr({props:{iStyle:e[42],configPaneOpen:e[14],mountedChaptersOpen:e[1]&&e[18]}})).$on("openConfigMenu",e[162]),o.$on("openChapterMenu",e[163]),o.$on("toggleSharePane",e[164]),{c:function(){i=Y("div"),n=Y("div"),a=ee(),d&&d.c(),s=ee(),st(o.$$.fragment),se(n,"class","always-show-bg svelte-12riu2i"),se(i,"class","bottom-container svelte-12riu2i"),se(i,"data-cy","bb-skin-bottom-controls"),he(i,"mounted",e[18])},m:function(t,r){J(t,i,r),F(i,n),F(i,a),d&&d.m(i,null),F(i,s),ot(o,i,null),e[165](i),u=!0},p:function(e,t){var n;null!=(n=e[71])&&n.length?d?(d.p(e,t),512&t[2]&&Ye(d,1)):((d=hc(e)).c(),Ye(d,1),d.m(i,s)):d&&(Qe(),Xe(d,1,1,(function(){d=null})),Ke());var a={};2048&t[1]&&(a.iStyle=e[42]),16384&t[0]&&(a.configPaneOpen=e[14]),262146&t[0]&&(a.mountedChaptersOpen=e[1]&&e[18]),o.$set(a),(!u||262144&t[0])&&he(i,"mounted",e[18])},i:function(e){u||(Ye(d),Ye(o.$$.fragment,e),qe((function(){u&&(l&&l.end(1),(r=et(i,Nt,{duration:250,y:50})).start())})),u=!0)},o:function(e){Xe(d),Xe(o.$$.fragment,e),r&&r.invalidate(),l=tt(i,Nt,{duration:250,y:50}),u=!1},d:function(t){t&&Q(i),d&&d.d(),rt(o),e[165](null),t&&l&&l.end()}}}function hc(e){var t,i,n,a;return i=new Ra({props:{toggleHighlightPane:e[133],highlightPaneOpen:e[2],placeholder:!1}}),{c:function(){t=Y("div"),st(i.$$.fragment),se(t,"class","bottom-controls-highlights-container svelte-12riu2i"),he(t,"hovering-scrubbar",e[65]||e[14])},m:function(e,n){J(e,t,n),ot(i,t,null),a=!0},p:function(e,n){var s={};4&n[0]&&(s.highlightPaneOpen=e[2]),i.$set(s),(!a||16384&n[0]|8&n[2])&&he(t,"hovering-scrubbar",e[65]||e[14])},i:function(e){a||(Ye(i.$$.fragment,e),qe((function(){a&&(n||(n=it(t,Ft,{duration:300},!0)),n.run(1))})),a=!0)},o:function(e){Xe(i.$$.fragment,e),n||(n=it(t,Ft,{duration:300},!1)),n.run(0),a=!1},d:function(e){e&&Q(t),rt(i),e&&n&&n.end()}}}function pc(e){var t,i,n,a,s,o,r=function(t){e[166](t)},l={isStickyBar:!0,readOnly:!0,accentColor:e[46],min:e[44]<0?e[44]:0,max:e[44]<0?0:e[44]};return void 0!==e[9]&&(l.value=e[9]),i=new ha({props:l}),De.push((function(){return at(i,"value",r)})),{c:function(){t=Y("div"),st(i.$$.fragment),se(t,"class","sticky-progress-bar svelte-12riu2i")},m:function(e,n){J(e,t,n),ot(i,t,null),o=!0},p:function(e,t){var a={};32768&t[1]&&(a.accentColor=e[46]),8192&t[1]&&(a.min=e[44]<0?e[44]:0),8192&t[1]&&(a.max=e[44]<0?0:e[44]),!n&&512&t[0]&&(n=!0,a.value=e[9],Oe((function(){return n=!1}))),i.$set(a)},i:function(e){o||(Ye(i.$$.fragment,e),qe((function(){o&&(s&&s.end(1),(a=et(t,Nt,{duration:250,y:10})).start())})),o=!0)},o:function(e){Xe(i.$$.fragment,e),a&&a.invalidate(),s=tt(t,Nt,{duration:250,y:10}),o=!1},d:function(e){e&&Q(t),rt(i),e&&s&&s.end()}}}function _c(e){var t,i;return t=new zd({}),{c:function(){st(t.$$.fragment)},m:function(e,n){ot(t,e,n),i=!0},i:function(e){i||(Ye(t.$$.fragment,e),i=!0)},o:function(e){Xe(t.$$.fragment,e),i=!1},d:function(e){rt(t,e)}}}function mc(e){var t,i,n,a,s;return(a=new Vu({props:{onItemSelected:e[128],transform:null==(t=e[36])?void 0:t.transform,contextMenuByMouseClick:e[33]}})).$on("close",e[167]),a.$on("backdropClick",e[168]),{c:function(){var t,s;i=Y("div"),n=Y("div"),st(a.$$.fragment),se(n,"class","context-menu-wrapper svelte-12riu2i"),de(n,"top",(null==(t=e[36])?void 0:t.y)+"px"),de(n,"left",(null==(s=e[36])?void 0:s.x)+"px"),se(i,"class","context-menu no-padding svelte-12riu2i")},m:function(e,t){J(e,i,t),F(i,n),ot(a,n,null),s=!0},p:function(e,t){var i,s,o,r={};32&t[1]&&(r.transform=null==(i=e[36])?void 0:i.transform),4&t[1]&&(r.contextMenuByMouseClick=e[33]),a.$set(r),32&t[1]&&de(n,"top",(null==(s=e[36])?void 0:s.y)+"px"),32&t[1]&&de(n,"left",(null==(o=e[36])?void 0:o.x)+"px")},i:function(e){s||(Ye(a.$$.fragment,e),s=!0)},o:function(e){Xe(a.$$.fragment,e),s=!1},d:function(e){e&&Q(i),rt(a)}}}function fc(e){var t,i,n,a,s,o;return(i=new td({})).$on("close",e[149]),{c:function(){t=Y("div"),st(i.$$.fragment),se(t,"class","speedback-pane-container svelte-12riu2i"),de(t,"--button-width",e[48]+"px")},m:function(n,r){J(n,t,r),ot(i,t,null),a=!0,s||(o=ie(t,"click",ae(e[150])),s=!0)},p:function(e,i){131072&i[1]&&de(t,"--button-width",e[48]+"px")},i:function(e){a||(Ye(i.$$.fragment,e),qe((function(){a&&(n||(n=it(t,Ft,{duration:250},!0)),n.run(1))})),a=!0)},o:function(e){Xe(i.$$.fragment,e),n||(n=it(t,Ft,{duration:250},!1)),n.run(0),a=!1},d:function(e){e&&Q(t),rt(i),e&&n&&n.end(),s=!1,o()}}}function vc(e){var t,i;return t=new $a({}),{c:function(){st(t.$$.fragment)},m:function(e,n){ot(t,e,n),i=!0},i:function(e){i||(Ye(t.$$.fragment,e),i=!0)},o:function(e){Xe(t.$$.fragment,e),i=!1},d:function(e){rt(t,e)}}}function gc(e){var t,i,n,a,s,o,r,l,u=function(e,t){return"commercial"===e[55]?0:e[22]?1:2},d=[Nd,Fd,jd],c=[];return i=u(e),n=c[i]=d[i](e),{c:function(){var i;t=Y("div"),n.c(),se(t,"data-cy","skin-mode-main"),se(t,"class",a="bb-skin-container phase-"+(null==(i=e[20])?void 0:i.toLowerCase())+" svelte-12riu2i"),se(t,"tabindex",s=e[13]?-1:0),he(t,"controls-visible",e[41]()),he(t,"controlbar-visible",e[6]()),he(t,"user-active",e[13]),he(t,"playback-started",e[21]),he(t,"playing",e[11]),he(t,"touched",e[35]),he(t,"is-mobile",e[39]),de(t,"--accent-color",e[46]),de(t,"--foreground-color",e[47]),de(t,"--background-gray",xt),de(t,"--bar-button-size",e[48]+"px"),de(t,"--bar-icon-size",e[49]+"px"),de(t,"--big-icon-size",e[50]+"px"),de(t,"--font-size",e[51]+"px"),de(t,"--margin-size",e[24]+"px"),de(t,"--cancel-button-right",e[52]+"em"),de(t,"--related-desired-height-img",e[53]+"px"),de(t,"--height-progress-bar",e[54]+"px"),de(t,"--bg-color-highlight-pane","rgba(33, 33, 33, 0.75)"),de(t,"--bg-color-pane","rgba(33, 33, 33, 0.9)"),de(t,"--bg-color-pane-hover","rgba(45, 45, 45, 0.9)"),de(t,"--bg-color-button","rgba(33, 33, 33, 0.75)"),de(t,"--bg-color-button-hover","rgba(33, 33, 33, 0.9)"),de(t,"--color-blue","#649BD2"),de(t,"--aria-focus-color",e[12].ariaFocusColor?"#"+e[12].ariaFocusColor:"-webkit-focus-ring-color"),de(t,"--bar-height",e[40]()),de(t,"--border-radius-skin",e[12].cornerRadius?e[12].cornerRadius+"px":"0px"),de(t,"--header-area-height",e[38]+"px"),de(t,"--player-width",e[29]+"px"),de(t,"--player-height",e[26]+"px")},m:function(n,a){J(n,t,a),c[i].m(t,null),e[169](t),o=!0,r||(l=[ie(t,"click",e[129]),ie(t,"contextmenu",e[136]),ie(t,"mouseenter",e[170]),ie(t,"mouseleave",e[171]),ie(t,"focus",e[172])],r=!0)},p:function(e,r){var l,h=i;(i=u(e))===h?c[i].p(e,r):(Qe(),Xe(c[h],1,1,(function(){c[h]=null})),Ke(),(n=c[i])?n.p(e,r):(n=c[i]=d[i](e)).c(),Ye(n,1),n.m(t,null)),(!o||1048576&r[0]&&a!==(a="bb-skin-container phase-"+(null==(l=e[20])?void 0:l.toLowerCase())+" svelte-12riu2i"))&&se(t,"class",a),(!o||8192&r[0]&&s!==(s=e[13]?-1:0))&&se(t,"tabindex",s),(!o||1048576&r[0]|1024&r[1])&&he(t,"controls-visible",e[41]()),(!o||1048640&r[0])&&he(t,"controlbar-visible",e[6]()),(!o||1056768&r[0])&&he(t,"user-active",e[13]),(!o||3145728&r[0])&&he(t,"playback-started",e[21]),(!o||1050624&r[0])&&he(t,"playing",e[11]),(!o||1048576&r[0]|16&r[1])&&he(t,"touched",e[35]),(!o||1048576&r[0]|256&r[1])&&he(t,"is-mobile",e[39]),32768&r[1]&&de(t,"--accent-color",e[46]),65536&r[1]&&de(t,"--foreground-color",e[47]),131072&r[1]&&de(t,"--bar-button-size",e[48]+"px"),262144&r[1]&&de(t,"--bar-icon-size",e[49]+"px"),524288&r[1]&&de(t,"--big-icon-size",e[50]+"px"),1048576&r[1]&&de(t,"--font-size",e[51]+"px"),16777216&r[0]&&de(t,"--margin-size",e[24]+"px"),2097152&r[1]&&de(t,"--cancel-button-right",e[52]+"em"),4194304&r[1]&&de(t,"--related-desired-height-img",e[53]+"px"),8388608&r[1]&&de(t,"--height-progress-bar",e[54]+"px"),4096&r[0]&&de(t,"--aria-focus-color",e[12].ariaFocusColor?"#"+e[12].ariaFocusColor:"-webkit-focus-ring-color"),512&r[1]&&de(t,"--bar-height",e[40]()),4096&r[0]&&de(t,"--border-radius-skin",e[12].cornerRadius?e[12].cornerRadius+"px":"0px"),128&r[1]&&de(t,"--header-area-height",e[38]+"px"),536870912&r[0]&&de(t,"--player-width",e[29]+"px"),67108864&r[0]&&de(t,"--player-height",e[26]+"px")},i:function(e){o||(Ye(n),o=!0)},o:function(e){Xe(n),o=!1},d:function(n){n&&Q(t),c[i].d(),e[169](null),r=!1,w(l)}}}function yc(e,t,i){var n,a,s,l,u,d,c,m,f,v,g,y,b,k,w,$,C,S,P,I,T,D,E,M,B,L,R,H,q,O,z,V,j,F,N,U,W,G,J,Q,K,Y,X,Z,ee,te,ie,ne,ae,se,oe,re,le,ue,de,ce,he,pe,_e,me,fe,ve,ge,ye,be,ke,we=function(e){var t;if(Ci){i(32,$i=!1),i(34,Si=!1);var n=e.target;ni.set(null==(t=null==xi?void 0:xi.parentElement)?void 0:t.contains(n)),$e()}else i(33,Ci=!1)},$e=function(){b&&Oe(),bi&&Bi(),St.set(!1),i(1,wi=!1),i(32,$i=!1),ai.set(!1),i(2,Pi=!1),je()},Pe=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];e&&ze(),i(1,wi=!1),St.set(!E),St||(Oe(),St.set(!1))},Ie=function(){St.set(!1),i(1,wi=!wi),wi||Oe()},Te=function(e){I.disableKeyboardControls&&!["Enter","Escape"].includes(e.key)||(D||T)&&(e.shiftKey&&"F10"===e.key&&(e.preventDefault(),i(36,Ii={x:10,y:10,transform:{}}),i(32,$i=!$i)),Ve(e))},Ee=function(){var e=!Si;setTimeout((function(){i(34,Si=e)}))},Me=function(){!bi&&ki&&!P&&(Qe(),ki=!1)},Be=function(e){e.preventDefault(),i(33,Ci=3===e.which),i(32,$i=!0);var t=xi.getBoundingClientRect(),n=e.clientX-t.left,a=e.clientY-t.top,s={x:"0",y:"0"};n>t.width/2&&(s.x="-100%"),a>t.height/2&&(s.y="-100%"),i(36,Ii={x:n,y:a,transform:s})},Le=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;Ke(Math.min($+e,w?0:k),null,!1)},Re=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;Ke(Math.max($-e,w?k:0),null,!1)},He=t.apiProp;!function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"main",i=xe(zt,{api:e,skinMode:t,translations:ht({}),adPodInfo:ht({adPosition:null,totalAds:null}),playerHasFocus:ht(!1),keyboardShortcutPaneOpen:ht(!1),searchPanelOpen:ht(!1),mainAudioTrackActive:ht(!1),signLanguageActive:ht(!1),skinContainerRef:ht(null),keyPressed:ht(""),keyDown:ht(null),timeTotal:ht(8),timeLeft:ht(null),timePassed:ht(0),userPausedCountDown:ht(!1),barIconSize:ht(20),barButtonSize:ht(48),bigIconSize:ht(70),bigButtonSize:ht(48),shareIconSize:ht(56),fontSize:ht(16),marginSize:ht(20),cancelButtonRight:ht(-.5),toastrMargin:ht(48),heightProgressBar:ht(6),framePreviewWidthVideo:ht(126),useMobileToggleRelated:ht(!1),relatedDesiredHeight:ht(0),screenXXS:ht(!1),isVerticalPlayer:ht(!1),showChapterText:ht(!1),noSizingGapControlBar:ht(!1),skinSize:ht("L"),skinSizeHeight:ht("L"),foregroundColor:ht("#ffffff"),iconContrastColor:ht("#ffffff"),accentColor:ht("#ED6A5D"),playing:ht(!1),seeking:ht(!1),usingScrubbar:ht(!1),hoveringScrubbar:ht(!1),configPaneOpen:ht(!1),started:ht(!1),fullscreen:ht(!1),displayVolume:ht(1),muted:ht(!1),userActive:ht(!1),mouseOverInterface:ht(!1),castType:ht(""),playerWidth:ht(0),playerHeight:ht(0),currentTime:ht(0),duration:ht(0),bufferTimeRanges:ht(null),playRate:ht(1),relatedItems:ht([]),shareOptions:ht([]),logoObject:ht(null),detections:ht({}),assets:ht([]),audiotracks:ht([]),currentAsset:ht({}),waiting:ht(!1),elementVisibility:ht({}),phase:ht("INIT"),playState:ht(""),playerMode:ht("commercial"),subtitlesList:ht([]),activeSubtitleId:ht("-1"),activeSubtitleLine:ht(null),activeAudiotrackId:ht("-1"),lastActiveSubtitleId:ht(null),transcriptList:ht([]),activeTranscriptId:ht("-1"),activeTranscriptLine:ht(null),lastActiveTranscriptId:ht(null),mountedControlbar:ht(!1),slimAudioPlayer:ht(!1),livePlayer:ht(!1),livePlayerWithDvr:ht(!1),livePlayerIsLive:ht(!1),chapterList:ht([]),highlightList:ht([]),currentChapter:ht(),hoverChapterIndex:ht(-1),hoverHighlightIndex:ht(-1),chapterPanePositionLeft:ht(""),chapterClick:ht(0),triggeredRelated:ht(0),hideTopContainerAutoPlay:ht(!1),entity:ht({}),clipList:ht([]),playout:ht({}),callOverrides:ht({}),closeAllPanes:ht(!1),lastActiveAriaElement:ht(null),usedEnterForClicking:ht(!1),castState:ht(""),castSession:ht(null),toastr:ht(_t),touchMode:ht(!0),gapSize:ht(0),centerButtonSize:ht(0),centerButtonBgSize:ht(0),centerButtonBorder:ht(""),centerButtonBorderWidth:ht(0),language:ht(""),ariaTrappedInMenu:ht(!1),lastEvent:ht(""),currentAd:ht({}),adSkippable:ht(!1),hasTimeline:ht(!1),dvrDurationCheckInterval:ht(null),passedFiveSeconds:ht(!1),userDisabledShortcuts:ht(!1),enablePushNotification:ht(!1),softEmbargoText:ht(null),softEmbargoTimerActive:ht(!1),softEmbargoEndDate:ht(null),softEmbargoTimerTime:ht(0),notificationButtonActive:ht(!1)});("main"===t||"shorts"===t)&&Ht(i),Rt(i),Dt(i),Pt(i),ft(i),("main"===t||"shorts"===t)&&(mt(i),Et(i),Mt(i)),yt(i),("main"===t||"shorts"===t)&&$t(i);var n=i.playing,a=i.started,s=i.subtitlesList,r=i.audiotracks,l=i.phase,u=i.playState,d=i.activeSubtitleId,c=i.activeAudiotrackId,h=i.lastActiveSubtitleId,p=i.entity,_=i.detections,m=i.playerMode,f=i.playout,v=i.language;("main"===t||"shorts"===t)&&(Ot(i.touchMode),d.subscribe((function(e){"-1"!==e&&h.set(e)})),s.subscribe((function(e){if(!x(h)&&null!=e&&e.length){var t=x(f).defaultSubtitle;if("none"!==t){var i,n=x(v);n&&(i=e.find((function(e){return e.isocode===n}))),!i&&"default language"===t&&(i=e.find((function(e){return"true"===e.default}))),d.set(i?i.id:e[0].id)}else d.set("-1")}})),r.subscribe((function(e){null!=e&&e.length&&c.set(e[0].id)})),i.gapSize=pt([i.playerWidth],(function(e){var t=o.default(e,1)[0];return Math.max(8*Math.max(5,Math.min(25,Math.round(t/64)))-51,10)})),i.centerButtonSize=pt([i.playout,i.bigIconSize],(function(e){var t=o.default(e,2),i=t[0],n=t[1],a=i.centerButtonType;return a&&"icon"!==a?"inversed"===a?Math.ceil(1.2*n):["outline","border"].includes(a)?Math.ceil(n/1.8):Math.ceil(n/1.6):n})),i.centerButtonBgSize=pt([i.playout,i.centerButtonSize],(function(e){var t=o.default(e,2),i=t[0],n=t[1],a=i.centerButtonType;return!a||["icon","inversed"].includes(a)?n:2.2*n})),i.centerButtonBorder=pt([i.playout,i.skinSizeHeight,i.iconContrastColor],(function(e){var t=o.default(e,3),i=t[0],n=t[1],a=t[2],s=i.centerButtonType;return["border","outline"].includes(s)?("L"===n?6:2)+"px solid "+("outline"===s?a:"white"):"initial"})),i.centerButtonBorderWidth=pt([i.playout,i.skinSizeHeight],(function(e){var t=o.default(e,2),i=t[0],n=t[1],a=i.centerButtonType;return["border","outline"].includes(a)?"L"===n?6:2:0})),i.softEmbargoText=pt([i.playout],(function(e){return o.default(e,1)[0].softEmbargoText||i.translate("Live in")})),i.notificationButtonActive=pt([i.playout,i.softEmbargoTimerActive],(function(e){var t=o.default(e,2),i=t[0],n=t[1];return"bottomleft"===i.softEmbargoTimerVariant&&n}))),i.elementVisibility=pt([i.playout,i.callOverrides,_,l],(function(e,s){var r=o.default(e,2),d=r[0],c=r[1],h={};u.subscribe((function(e){var o,r,u,f=x(a),v=x(p),g=x(l),y=x(n),b=f&&"paused"===e,k=x(_),w=x(m),$={title:!(null!=v&&v.title)||"main"===t&&("show"!==d.title&&"idle"===e&&"INIT"===g||"show"!==d.titlePause&&b||"show"!==d.titleHover&&y||"hide"===d.titleEnd&&"EXIT"===g)||"shorts"===t&&"show"!==d.title,description:!(null!=v&&v.description)||"show"!==d.description,author:!(null!=v&&v.author)||"show"!==d.authorCopyright&&"idle"===e&&"INIT"===g||"show"!==d.authorCopyrightPause&&b||"show"!==d.authorCopyrightHover&&y||"show"!==d.authorCopyrightEnd&&"EXIT"===g,copyright:!(null!=v&&v.copyright)||"show"!==d.authorCopyright&&"idle"===e&&"INIT"===g||"show"!==d.authorCopyrightPause&&b||"show"!==d.authorCopyrightHover&&y||"show"!==d.authorCopyrightEnd&&"EXIT"===g,controlBar:"INIT"!==g&&"hide"===d.controlBar||"INIT"===g&&"show"!==d.showStartControlBar,bigPlayButton:"commercial"===w||!0!==d.showBigPlayButton&&"idle"===e&&"INIT"===g||!0!==d.showBigPauseButtons&&b||!0!==d.showBigHoverButtons&&y||!0!==d.showBigReplayButton&&"EXIT"===g,shareButton:!d.shareButtonEmbedCode&&!d.shareButtonEmail&&!d.shareButtonFacebook&&!d.shareButtonLinkedIn&&!d.shareButtonPinterest&&!d.shareButtonTwitter&&!d.shareButtonWhatsApp||"hide"===d.shareButton&&"idle"===e&&"INIT"===g||"hide"===d.shareButtonPause&&b||"hide"===d.shareButtonHover&&y||"hide"===d.shareButtonEnd&&"EXIT"===g,mutedIndication:"hide"===d.mutedIndication||(!d.mutedIndication||"auto"===d.mutedIndication)&&x(i.hasTimeline),muteButton:"hide"===d.muteButton,playPauseButton:"shorts"===t&&!d.showPlayButton,volumeSliderHorizontal:"hide"===d.volume,timeDisplay:"hide"===d.timeDisplay,currentTime:!(null!=(o=d.timeDisplay)&&o.includes("progress")),remaining:!(null!=(r=d.timeDisplay)&&r.includes("remaining")),duration:!(null!=(u=d.timeDisplay)&&u.includes("total")),commercialPauseButton:!0!==d.commercialPauseButton,commercialMuteButton:!0!==d.commercialMuteButton,commercialProgressBar:!0!==d.commercialProgressBar,commercialAdIcon:!1===d.commercialAdIcon,subtitleButton:"hide"===d.languageSelect,transcriptButton:"show"!==d.transcriptButton,signLanguageButton:"show"!==d.signLanguageButton,audioDescriptionButton:"show"!==d.audioDescriptionButton,castButton:"show"!==d.castButton||!k.canAirPlay&&!k.canChromeCast,fullscreenButton:"show"!==d.fullScreen,progressBar:"show"!==d.timeLine,framePreview:!0===d.disableFramePreview,relatedItems:"INIT"===g&&!("error"===e&&"show"===d.relatedItems)||"MAIN"===g&&"idle"===e||(!f&&"show"!==d.relatedItems||b&&"show"!==d.relatedItemsPause)&&("MAIN"===g||"EXIT"===g)};$.topContainer=$.title&&$.author&&$.copyright&&($.shareButton||x(i.hasTimeline)),$.centerControls=$.seekButtons=$.bigPlayButton,$.backdrop="EXIT"!==g||$.centerControls&&!d.autoPlayNext&&$.relatedItems,Vt.forEach((function(e){var t,i,n;h[e]={hidden:(null==(t=c[e])?void 0:t.hidden)||$[e]&&!1!==(null==(i=c[e])?void 0:i.hidden),disabled:null==(n=c[e])?void 0:n.disabled}})),s(h)}))}))}(He);var qe=Ae(zt),Oe=qe.restoreFocusPreviousElement,ze=qe.setPreviousAriaElement,Ve=qe.onKeyPressed,je=qe.resetToastr,Fe=qe.initializeApi,Ne=qe.exitApi,Ue=qe.setUserActive,We=qe.onMouseEnterUI,Ge=qe.onMouseLeaveUI,Je=qe.pause,Qe=qe.play,Ke=qe.seekTo,Ye=qe.getDeeplink,Xe=qe.setLanguage,Ze=qe.accentColor,et=qe.foregroundColor,tt=qe.started,it=qe.playing,nt=qe.userActive,at=qe.phase,st=qe.playerMode,ot=qe.relatedItems,rt=qe.logoObject,lt=qe.waiting,ut=qe.detections,dt=qe.mountedControlbar,ct=qe.currentTime,vt=qe.duration,gt=qe.livePlayer,bt=qe.livePlayerWithDvr,kt=qe.slimAudioPlayer,wt=qe.usingScrubbar,Ct=qe.hoveringScrubbar,St=qe.configPaneOpen,xt=qe.playerHeight,At=qe.playerWidth,It=qe.playState,Tt=qe.hideTopContainerAutoPlay,Bt=qe.callOverrides,Lt=qe.playout,qt=qe.entity,jt=qe.closeAllPanes,Ft=qe.barButtonSize,Nt=qe.barIconSize,Ut=qe.bigIconSize,Wt=qe.fontSize,Gt=qe.heightProgressBar,Jt=qe.marginSize,Qt=qe.cancelButtonRight,Kt=qe.relatedDesiredHeight,Yt=qe.screenXXS,Xt=qe.skinSizeHeight,Zt=qe.useMobileToggleRelated,ei=qe.toastr,ti=qe.timeLeft,ii=qe.skinSize,ni=qe.playerHasFocus,ai=qe.keyboardShortcutPaneOpen,si=qe.elementVisibility,oi=qe.lastEvent,ri=qe.chapterPanePositionLeft,li=qe.hasTimeline,ui=qe.highlightList,di=qe.enablePushNotification,ci=qe.softEmbargoTimerActive,hi=qe.notificationButtonActive,pi=qe.skinContainerRef,_i=qe.searchPanelOpen;A(e,Ze,(function(e){return i(46,K=e)})),A(e,et,(function(e){return i(47,Y=e)})),A(e,tt,(function(e){return i(21,z=e)})),A(e,it,(function(e){return i(11,P=e)})),A(e,nt,(function(e){return i(13,T=e)})),A(e,at,(function(e){return i(20,O=e)})),A(e,st,(function(e){return i(55,se=e)})),A(e,ot,(function(e){return i(67,ve=e)})),A(e,rt,(function(e){return i(60,de=e)})),A(e,lt,(function(e){return i(56,oe=e)})),A(e,ut,(function(e){return i(25,N=e)})),A(e,dt,(function(e){return i(18,H=e)})),A(e,ct,(function(e){return i(9,$=e)})),A(e,vt,(function(e){return i(44,k=e)})),A(e,gt,(function(e){return i(19,q=e)})),A(e,bt,(function(e){return i(8,w=e)})),A(e,kt,(function(e){return i(22,V=e)})),A(e,wt,(function(e){return i(70,be=e)})),A(e,Ct,(function(e){return i(65,me=e)})),A(e,St,(function(e){return i(14,E=e)})),A(e,xt,(function(e){return i(26,U=e)})),A(e,At,(function(e){return i(29,J=e)})),A(e,It,(function(e){return i(58,le=e)})),A(e,Tt,(function(e){return i(66,fe=e)})),A(e,Bt,(function(e){return i(177,S=e)})),A(e,Lt,(function(e){return i(12,I=e)})),A(e,qt,(function(e){return i(16,B=e)})),A(e,Ft,(function(e){return i(48,X=e)})),A(e,Nt,(function(e){return i(49,Z=e)})),A(e,Ut,(function(e){return i(50,ee=e)})),A(e,Wt,(function(e){return i(51,te=e)})),A(e,Gt,(function(e){return i(54,ae=e)})),A(e,Jt,(function(e){return i(24,F=e)})),A(e,Qt,(function(e){return i(52,ie=e)})),A(e,Kt,(function(e){return i(53,ne=e)})),A(e,Yt,(function(e){return i(27,W=e)})),A(e,Xt,(function(e){return i(63,pe=e)})),A(e,Zt,(function(e){return i(69,ye=e)})),A(e,ei,(function(e){return i(61,ce=e)})),A(e,ti,(function(e){return i(68,ge=e)})),A(e,ii,(function(e){return i(62,he=e)})),A(e,ni,(function(e){return i(45,D=e)})),A(e,ai,(function(e){return i(15,M=e)})),A(e,si,(function(e){return i(10,C=e)})),A(e,oi,(function(e){return i(57,re=e)})),A(e,ri,(function(e){return i(64,_e=e)})),A(e,li,(function(e){return i(23,j=e)})),A(e,ui,(function(e){return i(71,ke=e)})),A(e,di,(function(e){return i(146,R=e)})),A(e,ci,(function(e){return i(17,L=e)})),A(e,hi,(function(e){return i(59,ue=e)})),A(e,pi,(function(e){return i(30,Q=e)})),A(e,_i,(function(e){return i(28,G=e)}));var mi=He;Fe();var fi,vi,gi,yi=!1,bi=!1,ki=!1,wi=!1,$i=!1,Ci=!0,Si=!1,Pi=!1,xi=null,Ai=!1,Ii={x:0,y:0,transform:{}},Ti=!1,Di=!1,Ei=0,Mi=[];function Bi(){return Li.apply(this,arguments)}function Li(){return(Li=p.default($parcel$interopDefault(_).mark((function e(){var t;return $parcel$interopDefault(_).wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!s||!navigator.share){e.next=13;break}return e.prev=1,P&&(Je(),ki=!0),e.next=6,navigator.share({url:Ye(),text:null!==(t=I.shareText)&&void 0!==t?t:""});case 6:Me(),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(1),Me();case 12:return e.abrupt("return");case 13:i(0,bi=!bi),bi&&P?(Je(),ki=!0):Me();case 14:case"end":return e.stop()}}),e,null,[[1,9]])})))).apply(this,arguments)}Mi.push(wt.subscribe((function(e){e!==Di&&(e&&!gi?gi=setTimeout((function(){i(37,Ti=!0)}),120):(clearTimeout(gi),gi=null,i(37,Ti=!1)),Di=e)})),_i.subscribe((function(e){setTimeout((function(){window.dispatchEvent(new Event("resize"))}),200)}))),Ce((function(){var e;if(document.addEventListener("click",we),document.addEventListener("keydown",Te),Xe(),He&&(i(141,xi=null==(e=null==mi?void 0:mi.getWrapper)?void 0:e.call(mi)),null==xi||xi.addEventListener("contextmenu",Be),xi)){var t=document.createElement("style");t.innerText=".bb_wrapper video::-webkit-media-text-track-container { transition: transform 0.3s ease-in-out; transform: var(--subtitle-transform); }",xi.appendChild(t)}Mi.push(jt.subscribe((function(e){e&&($e(),jt.set(!1))})))})),Se((function(){document.removeEventListener("click",we),document.removeEventListener("keydown",Te),null==xi||xi.removeEventListener("contextmenu",Be),Mi.forEach((function(e){return e()})),Ne()}));return e.$$set=function(e){"apiProp"in e&&i(139,He=e.apiProp)},e.$$.update=function(){var t,r,h,p;if(1610612736&e.$$.dirty[0]&&i(43,n=J&&(null==Q?void 0:Q.clientWidth)),134234118&e.$$.dirty[0]&&i(142,l=Pi||E||wi&&!W),135270400&e.$$.dirty[0]&&i(5,d="EXIT"===O&&!!I.autoPlayNext&&W),7485472&e.$$.dirty[0]|262144&e.$$.dirty[4]&&i(6,g=function(){if(L)return!1;if(V)return!0;var e="show"===I.controlBar||T||V||"autohide"===I.controlBar&&!P||("autohide"===I.controlBar||"alwaysautohide"===I.controlBar)&&T;return"INIT"!==O?(!["MAIN","EXIT"].includes(O)||"hide"!==I.controlBar)&&(!!l||(!["MAIN","EXIT"].includes(O)||e)):z?e&&"hide"!==I.controlBar:!P&&(!!l||("show"===I.showStartControlBar||"autohide"===I.showStartControlBar&&T&&!d))}),603979848&e.$$.dirty[0]&&i(143,a=fi&&U&&J&&g()?Math.round(null==fi?void 0:fi.getBoundingClientRect().height):0),33554432&e.$$.dirty[0]&&i(39,s=null==N?void 0:N.isMobileDevice),268435584&e.$$.dirty[0]&&i(7,u=u||G),131072&e.$$.dirty[4]&&i(145,c=null==xi?void 0:xi.querySelector(".bb-subtitle-layer .bb-subtitledisplay")),16777216&e.$$.dirty[0]|2621440&e.$$.dirty[4]&&c&&i(145,c.style.transform="translateY(".concat(-1*((a||0)+(a?0:F)),"px)"),c),512&e.$$.dirty[0]&&i(144,m=Math.round($)),67109904&e.$$.dirty[0]&&vi&&(U||null!=(t=null==C?void 0:C.author)&&t.hidden||null!=(r=null==C?void 0:C.copyright)&&r.hidden||null!=(h=null==C?void 0:C.title)&&h.hidden)&&setTimeout((function(){i(38,Ei=null==vi?void 0:vi.getBoundingClientRect().height)}),1),50331648&e.$$.dirty[0]|1703936&e.$$.dirty[4]&&xi&&m&&xi.style.setProperty("--subtitle-transform",null!=N&&N.isiOS&&null!=(p=null==xi?void 0:xi.querySelector("video"))&&p.webkitDisplayingFullscreen?"":"translateY(".concat(-1*((a||0)+(a?0:F)),"px)")),1024&e.$$.dirty[0]&&i(42,f=function(e){var t,i,n,a,s,r="display: none; visibility: hidden;";if(null!=e&&e.includes("||")){var l=o.default(e.split("||"),2),u=l[0],d=l[1];return null!=(t=null==C?void 0:C[u])&&t.hidden||null!=(i=null==C?void 0:C[d])&&i.hidden?r:null}if(null!=e&&e.includes("&&")){var c=o.default(e.split("&&"),2),h=c[0],p=c[1];return null!=(n=null==C?void 0:C[h])&&n.hidden&&null!=(a=null==C?void 0:C[p])&&a.hidden?r:null}return null!=(s=null==C?void 0:C[e])&&s.hidden?r:null}),15742976&e.$$.dirty[0]&&i(41,v=function(){var e=!!(V||T&&("show"===I.titleHover||"show"===I.authorCopyrightHover||I.showBigHoverButtons||"show"===I.shareButtonHover&&!j)||!P&&("show"===I.titlePause||"show"===I.authorCopyrightPause||I.showBigPauseButtons||"show"===I.relatedItemsPause||"show"===I.shareButtonPause&&!j)||V);return"INIT"!==O?"MAIN"!==O||e:z?e:!P}),1842464&e.$$.dirty[0]|262144&e.$$.dirty[4]&&i(40,y=function(){var e;return null!=(e=C.controlBar)&&e.hidden||d||"INIT"===O&&"hide"===I.showStartControlBar||"INIT"!==O&&"hide"===I.controlBar||!l&&("INIT"===O&&"autohide"===I.showStartControlBar&&!nt||"INIT"!==O&&"autohide"===I.controlBar&&!nt&&P||"INIT"!==O&&"alwaysautohide"===I.controlBar&&!nt)?"var(--margin-size)":q&&!w&&!H||H?"calc(var(--bar-button-size) + var(--margin-size))":"calc(var(--margin-size) * 2 + var(--bar-button-size) + 6px)"}),196608&e.$$.dirty[0]|4194304&e.$$.dirty[4]&&R&&!L){var _=B.id,k=B.description,S=B.title,x=mi.getThumbnail(_,"default",120);if("granted"===Notification.permission)new Notification(S,{body:k,image:x,icon:x}).onclick=function(){return window.parent.parent.focus()}}49155&e.$$.dirty[0]&&(b=E||bi||wi||M)},[bi,wi,Pi,fi,vi,d,g,u,w,$,C,P,I,T,E,M,B,L,H,q,O,z,V,j,F,N,U,W,G,J,Q,yi,$i,Ci,Si,Ai,Ii,Ti,Ei,s,y,v,f,n,k,D,K,Y,X,Z,ee,te,ie,ne,ae,se,oe,re,le,ue,de,ce,he,pe,_e,me,fe,ve,ge,ye,be,ke,Ue,We,Ge,Ze,et,tt,it,nt,at,st,ot,rt,lt,ut,dt,ct,vt,gt,bt,kt,wt,Ct,St,xt,At,It,Tt,Bt,Lt,qt,Ft,Nt,Ut,Wt,Gt,Jt,Qt,Kt,Yt,Xt,Zt,ei,ti,ii,ni,ai,si,oi,ri,li,ui,di,ci,hi,pi,_i,function(){i(32,$i=!1)},function(e){i(35,Ai="touch"===(null==e?void 0:e.pointerType)),e.stopPropagation(),$e(),ni.set(!0)},Pe,Ie,function(e){Ke(e,!0),i(2,Pi=!1)},function(){St.set(!1),i(2,Pi=!Pi),Pi||Oe()},Bi,Ee,Be,Le,Re,He,function(e,t){var i,n,a,s="",o=S;switch(e){case"show":s="hidden",a=!1;break;case"hide":s="hidden",a=!0;break;case"enable":s="disabled",a=!1;break;case"disable":s="disabled",a=!0;break;case"isVisible":return!(null!=(i=null==C?void 0:C[t])&&i.hidden);case"isEnabled":return!(null!=(n=null==C?void 0:C[t])&&n.disabled)}s&&void 0!==a&&Bt.set(r.default({},o,h.default({},t,r.default({},o[t],h.default({},s,a)))))},xi,l,a,m,c,R,function(){return Ee()},function(e){De[e?"unshift":"push"]((function(){i(3,fi=e)}))},function(){return Ee()},function(){return Ee()},function(e){return Re(e.detail)},function(e){return Le(e.detail)},function(){return i(31,yi=!yi)},function(){return Bi()},function(){return Bi()},function(){return Pe(!1)},function(){return Ie()},function(){return ai.set(!1)},function(){return ai.set(!1)},function(e){De[e?"unshift":"push"]((function(){i(4,vi=e)}))},function(){return Bi()},function(){return Pe(!0)},function(){return Ie()},function(){return Bi()},function(e){De[e?"unshift":"push"]((function(){i(3,fi=e)}))},function(e){$=e,ct.set($)},function(){return i(32,$i=!1)},function(){return i(32,$i=!1)},function(e){De[e?"unshift":"push"]((function(){Q=e,pi.set(Q)}))},function(e){return We(e)},function(e){return Ge(e)},function(){return Ue(!0)}]}var bc=function(e){l.default(i,e);var t=u.default(i);function i(e){var n;return a.default(this,i),n=t.call(this),ut(d.default(n),e,yc,gc,C,{apiProp:139,callSkin:140},Vd,[-1,-1,-1,-1,-1,-1,-1]),c.default(n)}return s.default(i,[{key:"callSkin",get:function(){return this.$$.ctx[140]}}]),i}(dt),kc=window,wc=function(){function e(t){var n,s,o,r;a.default(this,e),f(this,"_api"),f(this,"skinComponent"),performance.mark("Skin constructor"),this._api=(void 0===t?"undefined":i.default(t))<"u"?t:null;var l=(null==(s=null==(n=this._api)?void 0:n.getSkinLayer)?void 0:s.call(n))||(null==(r=null==(o=this._api)?void 0:o.getWrapper)?void 0:r.call(o).querySelector(".bb-skin-layer"));l&&(l.innerHTML="",kc.Cypress||l.attachShadow({mode:"open"}),this.skinComponent=new bc({target:kc.Cypress?l:l.shadowRoot,props:{apiProp:this._api}}))}return s.default(e,[{key:"show",value:function(e){return this.skinComponent.callSkin("show",e)}},{key:"hide",value:function(e){return this.skinComponent.callSkin("hide",e)}},{key:"enable",value:function(e){return this.skinComponent.callSkin("enable",e)}},{key:"disable",value:function(e){return this.skinComponent.callSkin("disable",e)}},{key:"isVisible",value:function(e){return this.skinComponent.callSkin("isVisible",e)}},{key:"isEnabled",value:function(e){return this.skinComponent.callSkin("isEnabled",e)}},{key:"getInfo",value:function(){return{name:"Blue Billywig Svelte Skin",type:"main",vendor:"Blue Billywig",generation:8}}}]),e}();kc.BBg8Skin=wc,e.exports=wc})),parcelRequire.register("lizyb",(function(e,t){$parcel$export(e.exports,"default",(function(){return s})),parcelRequire("lDGnc");var i=parcelRequire("lwy96"),n=parcelRequire("3DsR2"),a=parcelRequire("e06N2"),s=function(e,t){this._opts=t||{},this._masterVolume=.8,this._previousMasterVolume=null,this._masterMuted=!1,this._previousMasterMuted=null,this._localStorage=null,this._masterMutedFromPlayout=!1,this._masterVolumeHandlers={},this._masterMuteHandlers={};var i=!1;if(this._onPlayoutChangedBound=this._onPlayoutChanged.bind(this),this._onHeadVolumeChangedBound=this._onHeadVolumeChanged.bind(this),void 0!==e&&null!=e){this.$element=e,n.default.getService(this._opts.playerAliasOrId).setInstance("SoundController",this),this.$element.on("bb_media_volume_change",this._onHeadVolumeChangedBound),this.$element.on("bb_commercial_volume_change",this._onHeadVolumeChangedBound);var a=n.default.getService(this._opts.playerAliasOrId).getInstance("LocalStorage");if(void 0!==a&&null!=a){this._localStorage=a;var s=a.get("masterVolume"),o=a.get("masterMute");null!=s&&(this._masterVolume=Number(s),this._callMasterVolumeHandlers(),this.$element.trigger("bb_master_volume_set",[{volume:this._masterVolume}])),null!=o&&(this._masterMuted=o,i=!0)}null!=t&&void 0!==t.playoutData&&void 0!==t.playoutData.autoMute&&"true"==t.playoutData.autoMute&&(this._masterMuted=!0,this._masterMutedFromPlayout=!0,i=!0),this.$element.on("bb_playout_changed",this._onPlayoutChangedBound),1==i&&(this._callMasterMuteHandlers(),this.$element.trigger("bb_master_volume_mute",[{muted:this._masterMuted}]))}};s.prototype.registerMasterVolumeHandler=function(e,t){e=e||"__global__",this._masterVolumeHandlers[e]=t},s.prototype.unregisterMasterVolumeHandler=function(e){e=e||"__global__",delete this._masterVolumeHandlers[e]},s.prototype.registerMasterMuteHandler=function(e,t){e=e||"__global__",this._masterMuteHandlers[e]=t},s.prototype.unregisterMasterMuteHandler=function(e){e=e||"__global__",delete this._masterMuteHandlers[e]},s.prototype._callMasterVolumeHandlers=function(){for(var e in this._masterVolumeHandlers)try{"function"==typeof this._masterVolumeHandlers[e]&&this._masterVolumeHandlers[e]({volume:this._masterVolume})}catch(e){a.default("[SoundController] _callMasterVolumeHandlers error: "+e)}},s.prototype._callMasterMuteHandlers=function(){for(var e in this._masterMuteHandlers)try{"function"==typeof this._masterMuteHandlers[e]&&this._masterMuteHandlers[e]({muted:this._masterMuted})}catch(e){a.default("[SoundController] _callMasterMuteHandlers error: "+e)}},s.prototype.setVolume=function(e,t){return null!=this.$element&&null!=e&&e>=0&&e<=1&&(this._masterVolume=e,a.default("[SoundController] setVolume going to trigger 'bb_master_volume_set' with volume: "+this._masterVolume),this._callMasterVolumeHandlers(),this.$element.trigger("bb_master_volume_set",[{volume:this._masterVolume}]),!0===t&&!0===this._masterMuted&&this.setMuted(!1,!1,!0),!0)},s.prototype.getVolume=function(){return this._masterVolume},s.prototype.setMuted=function(e,t,s){if(null!=this.$element&&null!=e){if(!s&&!e){var o=n.default.getService(this._opts.playerAliasOrId).getInstance("Detections");if(o&&!o.canAutoPlayAdvanced)return!1}return this._masterMuted=e,a.default("[SoundController] setMuted going to trigger 'bb_master_volume_mute' with muted: "+this._masterMuted+", storeValue: "+t+"("+(void 0===t?"undefined":i.default(t))+")"),this._callMasterMuteHandlers(),this.$element.trigger("bb_master_volume_mute",[{muted:this._masterMuted}]),1==this._masterMutedFromPlayout?(this._masterMutedFromPlayout=!1,!0):(null!=this._localStorage&&!1!==t&&this._localStorage.set("masterMute",e),!0)}return!1},s.prototype.getMuted=function(){return this._masterMuted},s.prototype._onPlayoutChanged=function(e,t){t&&void 0!==t.playoutData&&void 0!==t.playoutData.autoMute&&(this._masterMuted="true"==t.playoutData.autoMute,this._masterMutedFromPlayout=!0,this._callMasterMuteHandlers(),this.$element.trigger("bb_master_volume_mute",[{muted:this._masterMuted}]))},s.prototype._onHeadVolumeChanged=function(e,t){if(void 0!==t){void 0===t.masterVolume||isNaN(parseFloat(t.masterVolume))||(this._masterVolume=Math.max(0,Math.min(t.masterVolume,1))),void 0!==t.masterMuted&&null!=t.masterMuted&&(this._masterMuted=!!t.masterMuted);var i=!1;this._previousMasterVolume!==this._masterVolume&&(this._previousMasterVolume=this._masterVolume,i=!0,null!=this._localStorage&&this._localStorage.set("masterVolume",this._masterVolume)),this._previousMasterMuted!==this._masterMuted&&(this._previousMasterMuted=this._masterMuted,i=!0),i&&this.$element.trigger("bb_master_volume_change",[{volume:this._masterVolume,muted:this._masterMuted}])}},s.prototype.exit=function(){return null!=this.$element&&(n.default.getService(this._opts.playerAliasOrId).setInstance("SoundController",null),this.$element.off("bb_playout_changed",this._onPlayoutChangedBound),this.$element.off("bb_media_volume_change",this._onHeadVolumeChangedBound),this.$element.off("bb_commercial_volume_change",this._onHeadVolumeChangedBound)),this._localStorage=null,null}})),parcelRequire.register("gZPSP",(function(e,t){$parcel$export(e.exports,"default",(function(){return n}));var i=parcelRequire("e06N2"),n=function(e,t){this.$element=null,this._onErrorBound=this._onError.bind(this),this._onWarningBound=this._onWarning.bind(this),void 0!==e&&null!=e&&(this.$element=e,this.$element.on("bb_error",this._onErrorBound),this.$element.on("bb_warning",this._onWarningBound))};n.prototype.exit=function(){return null!=this.$element&&(this.$element.off("bb_error",this._onErrorBound),this.$element.off("bb_warning",this._onWarningBound)),null},n.prototype._onError=function(e,t){if(e.stopPropagation(),"undefined"!=typeof console){var i=t?t.msg:"";void 0!==console.debug?console.debug("Error: "+i):console.log("Error: "+i),void 0!==console.trace&&console.trace("Error: "+i)}},n.prototype._onWarning=function(e,t){if(e.stopPropagation(),"undefined"!=typeof console){var n=t?t.msg:"";i.default("Warning: "+n,!0)}}})),parcelRequire.register("k8gIP",(function(e,t){$parcel$export(e.exports,"default",(function(){return o})),parcelRequire("lDGnc");var i=parcelRequire("7CnHN"),n=parcelRequire("eamhc");parcelRequire("6JR1F");var a=parcelRequire("hGJI5"),s=parcelRequire("3DsR2"),o=function(){"use strict";function e(t,n){if(i.default(this,e),this.$element=void 0!==t?t:null,this._opts=n,this.instanceService=s.default.getService(this._opts.playerAliasOrId),this._eventHandlers=null,this._server=null,this._disallowScripts=!1,this._widget=null,this._playerEventsStr="ready timeupdate ended assetselected audiotrackchange playing play pause unstalled stalled seeking seeked durationchange error resized volumechange subtitlechange inview outview subtitlelinechange fullscreen retractfullscreen loadedclipdata loadedmetadata loadeddata loadedinteractivity chapterlistchange started mouseover1s mouseover2s mouseover3s mouseover4s mouseover5s",this._onPlayoutChangedBound=this._onPlayoutChanged.bind(this),this._onMessageBound=this._onMessage.bind(this),this._onPlayerEventBound=this._onPlayerEvent.bind(this),void 0!==this._opts.playoutData.eventHandlers&&(this._eventHandlers=this._opts.playoutData.eventHandlers),void 0!==this._opts.publicationData.server&&(this._server=this._opts.publicationData.server),void 0!==this._opts.publicationData.disallowScripts&&(this._disallowScripts="true"===this._opts.publicationData.disallowScripts),this.$element){this.$element.on("bb_playout_changed",this._onPlayoutChangedBound);var a=this.$element.closest(".bb_wrapper");a.on("bb_on_message",this._onMessageBound),a.on(this._playerEventsStr,this._onPlayerEventBound)}}return n.default(e,[{key:"exit",value:function(){if(this.$element){var e=this.$element.closest(".bb_wrapper");e.off(this._playerEventsStr,this._onPlayerEventBound),e.off("bb_on_message",this._onMessageBound),this.$element.off("bb_playout_changed",this._onPlayoutChangedBound)}if(this._widget){var t=this._widget.$element;this._widget=this._widget.exit(),t&&t.remove()}return null}},{key:"getDisallowScripts",value:function(){return this._disallowScripts}},{key:"getWidgetById",value:function(e){return null}},{key:"getGroupById",value:function(e){return null}},{key:"_onPlayoutChanged",value:function(e,t){t&&t.playoutData&&void 0!==t.playoutData.eventHandlers&&(this._eventHandlers=t.playoutData.eventHandlers)}},{key:"_onPlayerEvent",value:function(e){(null==e?void 0:e.type)&&this.$element.trigger("bb_on_message",[{name:"player_"+e.type}])}},{key:"_onMessage",value:function(e,t){var i,n=""+t,s="message:2";t&&"string"!=typeof t&&(void 0!==t.name&&(n=""+t.name),void 0!==t.widgetId&&(s=t.widgetId));var o=n.toLowerCase();if(null===(i=this._eventHandlers)||void 0===i?void 0:i.some((function(e){var t;return(null==e||null===(t=e.name)||void 0===t?void 0:t.toLowerCase)&&e.name.toLowerCase()===o}))){if(!this._widget){var r=this;return this._widgetPromise||(this._widgetPromise=parcelRequire("kLe66")),void this._widgetPromise.then((function(i){var n=i.default;if("function"==typeof n){var o=$parcel$interopDefault(a)('<div class="bb_timelinewidget" style="display: none;"></div>');r.$element.append(o),r._widget=new n(o,{id:s},r),r._onMessage(e,t)}}))}if(Array.isArray(this._eventHandlers)){var l,u=!0,d=!1,c=void 0;try{for(var h,p=this._eventHandlers[Symbol.iterator]();!(u=(h=p.next()).done);u=!0){var _=h.value;if((null==_||null===(l=_.name)||void 0===l?void 0:l.toLowerCase)&&_.name.toLowerCase()===o){var m,f=!0,v=!1,g=void 0;if(Array.isArray(_.procedures))try{for(var y,b=_.procedures[Symbol.iterator]();!(f=(y=b.next()).done);f=!0){var k=y.value;null===(m=this._widget)||void 0===m||m._handleAction(k)}}catch(e){v=!0,g=e}finally{try{f||null==b.return||b.return()}finally{if(v)throw g}}}}}catch(e){d=!0,c=e}finally{try{u||null==p.return||p.return()}finally{if(d)throw c}}}}}}]),e}()})),parcelRequire.register("kLe66",(function(e,t){e.exports=parcelRequire("lrJsf")(parcelRequire("lKFlT").getBundleURL("5H5Jn")+parcelRequire("l8sJU").resolve("8GNqo")).then((function(){return parcelRequire("lYdwl")}))})),parcelRequire.register("lrJsf",(function(e,t){"use strict";var i=parcelRequire("j3Adb");e.exports=i((function(e){return new Promise((function(t,i){var n=document.getElementsByTagName("script");if([].concat(n).some((function(t){return t.src===e})))t();else{var a=document.createElement("link");a.href=e,a.rel="preload",a.as="script",document.head.appendChild(a);var s=document.createElement("script");s.async=!0,s.type="text/javascript",s.charset="utf-8",s.src=e,s.onerror=function(t){var n=new TypeError("Failed to fetch dynamically imported module: ".concat(e,". Error: ").concat(t.message));s.onerror=s.onload=null,s.remove(),i(n)},s.onload=function(){s.onerror=s.onload=null,t()},document.getElementsByTagName("head")[0].appendChild(s)}}))}))})),parcelRequire.register("j3Adb",(function(e,t){"use strict";var i={},n={},a={};function s(e){switch(e){case"preload":return n;case"prefetch":return a;default:return i}}e.exports=function(e,t){return function(i){var n=s(t);return n[i]?n[i]:n[i]=e.apply(null,arguments).catch((function(e){throw delete n[i],e}))}}})),parcelRequire.register("lKFlT",(function(e,t){var i;$parcel$export(e.exports,"getBundleURL",(function(){return i}),(function(e){return i=e}));var n={};function a(e){return(""+e).replace(/^((?:https?|file|ftp|(chrome|moz)-extension):\/\/.+)\/[^/]+$/,"$1")+"/"}i=function(e){var t=n[e];return t||(t=function(){try{throw new Error}catch(t){var e=(""+t.stack).match(/(https?|file|ftp|(chrome|moz)-extension):\/\/[^)\n]+/g);if(e)return a(e[2])}return"/"}(),n[e]=t),t}})),parcelRequire.register("d4HrM",(function(e,t){$parcel$export(e.exports,"default",(function(){return s})),parcelRequire("lDGnc");var i=parcelRequire("7CnHN"),n=parcelRequire("eamhc"),a=parcelRequire("cYwG5"),s=function(){"use strict";function e(t,n){i.default(this,e),this.$element=t,this._opts=n,this._onErrorBound=this._onError.bind(this),this._onClipLoadedBound=this._onClipLoaded.bind(this),this.$element&&(this.$display=this.$element.find(".bb-error-layer"),this.$display.hide(),this.$element.on("bb_error",this._onErrorBound),this.$element.on("bb_mediaclip_loaded",this._onClipLoadedBound))}return n.default(e,[{key:"exit",value:function(){return this.$element&&(this.$element.off("bb_error",this._onErrorBound),this.$element.off("bb_mediaclip_loaded",this._onClipLoadedBound)),null}},{key:"_onError",value:function(e,t){var i,n=this;console.log("[ErrorDisplayEngine] _onError msg: ".concat(null==t?void 0:t.msg)),e.stopPropagation(),null===customElements||void 0===customElements||customElements.whenDefined("bb-display-message").then((function(e){var i=!1;switch(n._message=document.createElement("bb-display-message"),n._message.setAttribute("style","width: 100%; height: 100%;"),null==t?void 0:t.msg){case"Geo":n._message.setAttribute("type","LOCATION"),i=!0;break;case"Domain":n._message.setAttribute("type","DOMAIN"),i=!0;break;case"IpAddress":n._message.setAttribute("type","IPADDRESS"),i=!0;break;case"Subscription":n._message.setAttribute("type","SUBSCRIPTION"),i=!0;break;case"SharedSecret":case"BadRequest":n._message.setAttribute("type","PERMISSION"),i=!0}i&&(n.$display.empty(),n.$display.append(n._message))})).catch((function(e){}));var s="https://cdn.bluebillywig.com/apps/bb-components/latest/lib/bb-display-message.wc.js",o=(null===(i=this._opts.playoutData.publication)||void 0===i?void 0:i.split(".")[1])||"prod";["dev","acc","test"].includes(o)&&(s=s.replace("//cdn.","//cdn-".concat(o,"."))),a.fetchScript(s,{type:"module",async:!0}),this.$display.show()}},{key:"_onClipLoaded",value:function(e,t){var i,n;(null==t||null===(i=t.clipData)||void 0===i||null===(n=i.assets)||void 0===n?void 0:n.length)>0&&this.$display.hide()}}]),e}()})),parcelRequire.register("b2uXE",(function(e,t){$parcel$export(e.exports,"default",(function(){return l}));var i,n,a,s,o,r=parcelRequire("dBuVa").default;i=parcelRequire("1TGgJ").default,n=parcelRequire("kPv1B").default,a=parcelRequire("kXyBH").default,s=parcelRequire("2JAog").default,o=parcelRequire("9qlnt").default;var l=function(e,t){this.$element=null,this._opts=t,this._noStats="true"===this._opts.playoutData.noStats,this._autoPlayOnlyWithPrerollAd="true"===this._opts.playoutData.autoPlayOnlyWithPrerollAd,this._autoPauseAfterPrePhase="true"===this._opts.playoutData.autoPauseAfterPrePhase,this._autoPaused=!1,this._bblogger=null,this._nslogger=null,this._galogger=null,this._gtlogger=null,this._pwlogger=null,this._onPlayoutChangedBound=this._onPlayoutChanged.bind(this),this._onAutoPauseBound=this._onAutoPause.bind(this),this._onAutoPausePlayBound=this._onAutoPausePlay.bind(this),this._onPlayBound=this._onPlay.bind(this),void 0!==e&&null!=e&&(this.$element=e,"function"==typeof r&&(this._bblogger=new r(this.$element,t)),"function"==typeof a&&(this._nslogger=new a(this.$element,t)),"function"==typeof i&&(this._galogger=new i(this.$element,t)),"function"==typeof n&&(this._gtlogger=new n(this.$element,t)),"function"==typeof s&&(this._pwlogger=new s(this.$element,t)),"function"==typeof o&&(this._mtlogger=new o(this.$element,t)),this._noStats||this._autoPlayOnlyWithPrerollAd||this._autoPauseAfterPrePhase?this._disableAll():this._enableAll(),this.$element.on("bb_playout_changed",this._onPlayoutChangedBound),this.$element.on("bb_program_autopause",this._onAutoPauseBound),this.$element.on("bb_program_autopauseplay",this._onAutoPausePlayBound),this.$element.on("bb_program_play",this._onPlayBound))};l.prototype.exit=function(){return this.$element&&(this.$element.off("bb_playout_changed",this._onPlayoutChangedBound),this.$element.off("bb_program_autopause",this._onAutoPauseBound),this.$element.off("bb_program_autopauseplay",this._onAutoPausePlayBound),this.$element.off("bb_program_play",this._onPlayBound)),null!=this._bblogger&&(this._bblogger=this._bblogger.exit()),null!=this._nslogger&&(this._nslogger=this._nslogger.exit()),null!=this._galogger&&(this._galogger=this._galogger.exit()),null!=this._gtlogger&&(this._gtlogger=this._gtlogger.exit()),null!=this._pwlogger&&(this._pwlogger=this._pwlogger.exit()),null!=this._mtlogger&&(this._mtlogger=this._mtlogger.exit()),null},l.prototype._onPlayoutChanged=function(e,t){var i;if(null==t||null===(i=t.playoutData)||void 0===i?void 0:i.noStats){var n="true"===t.playoutData.noStats;this._noStats!==n&&(this._noStats=n,this._noStats?this._disableAll():this._enableAll())}},l.prototype._onAutoPause=function(e,t){this._autoPaused=!0,this._noStats||this._handleAutoPauseAll()},l.prototype._onAutoPausePlay=function(e,t){this._autoPaused=!1,this._noStats||this._enableAll()},l.prototype._onPlay=function(e){this._autoPaused&&(this._autoPaused=!1,this._noStats||this._enableAll())},l.prototype._handleAutoPauseAll=function(){this._bblogger&&this._bblogger.handleAutoPause&&this._bblogger.handleAutoPause(),this._nslogger&&this._nslogger.handleAutoPause&&this._nslogger.handleAutoPause(),this._galogger&&this._galogger.handleAutoPause&&this._galogger.handleAutoPause(),this._gtlogger&&this._gtlogger.handleAutoPause&&this._gtlogger.handleAutoPause(),this._pwlogger&&this._pwlogger.handleAutoPause&&this._pwlogger.handleAutoPause(),this._mtlogger&&this._mtlogger.handleAutoPause&&this._mtlogger.handleAutoPause()},l.prototype._enableAll=function(){this._bblogger&&this._bblogger.enable&&this._bblogger.enable(),this._nslogger&&this._nslogger.enable&&this._nslogger.enable(),this._galogger&&this._galogger.enable&&this._galogger.enable(),this._gtlogger&&this._gtlogger.enable&&this._gtlogger.enable(),this._pwlogger&&this._pwlogger.enable&&this._pwlogger.enable(),this._mtlogger&&this._mtlogger.enable&&this._mtlogger.enable()},l.prototype._disableAll=function(){this._bblogger&&this._bblogger.disable&&this._bblogger.disable(),this._nslogger&&this._nslogger.disable&&this._nslogger.disable(),this._galogger&&this._galogger.disable&&this._galogger.disable(),this._gtlogger&&this._gtlogger.disable&&this._gtlogger.disable(),this._pwlogger&&this._pwlogger.disable&&this._pwlogger.disable(),this._mtlogger&&this._mtlogger.disable&&this._mtlogger.disable()}})),parcelRequire.register("dBuVa",(function(e,t){$parcel$export(e.exports,"default",(function(){return r}));var i=parcelRequire("3DsR2"),n=parcelRequire("e06N2"),a=parcelRequire("gDCxw"),s=parcelRequire("aNQGs"),o=parcelRequire("cYwG5");parcelRequire("h33Eq");var r=function(e,t){var n;this._opts=t,this._loggerUrl="https://stats.bluebillywig.com",this._sessionId=null,this._playerSessionId=null,this._playerSessionStartLogged=!1,this._viewId=null,this._publication=null,this._mediaClip=null,this._duration=0,this._currentTime=0,this._commercialCurrentTime=0,this._playMode="html5",this._commercialPlayMode="html5",this._asset=null,this._timelineIds={},this._referrer=null,this._realReferrer=null,this._fullScreen=!1,this._uuid=null,this._uuid_unsaved=!1,this._timer=null,this._creativeId=null,this._tsOffset=0,this._timeOffset=0,this._quartile=-1,this._progressTimer=10,this._to=null,this._to_now=null,this._enabled=!1,this._enabledQueue=[],this._prevViewId=null,this._prevClipId=null,this._startedClipId=null,this._assetBandwidth=null,this._adProperties=null,this._adUnitCode=null,this._lineItemCode=null,this._lineItemLogging=!0,this._adScheduleCode=null,this._adScheduleItemCode=null,this._paused=!0,this._isInView=!1,this._contextEntityType=null,this._contextEntityId=null,this._projectId=null,this._projectXSTLogged=!1,this._outstreamMode=!1,this._logEventBundling=!0,this._logEventQueueProcessingLock=!1,this._logEventQueue=[],this._logEventQueueProcessingTimeout=null,this._detections=i.default.getService(this._opts.playerAliasOrId).getInstance("Detections");var r=i.default.getService(this._opts.playerAliasOrId).getInstance("LocalStorage");r&&(this._uuid_ls=r.get("bb_uuid")),this._uuid_ls||(this._uuid_ls_unsaved=!0),a.getCookie&&(this._uuid_c=a.getCookie("uuid")),this._uuid_c||(this._uuid_c_unsaved=!0),this._uuid=this._uuid_ls||this._uuid_c||Math.uuid(),this._logEventBound=this._logEvent.bind(this),this._logSsEventDebounced=s.default(this._logEventBound,300,!0),this._logSeEventDebounced=s.default(this._logEventBound,300),this._logRsEventDebounced=s.default(this._logEventBound,300),this._onMediaVolumeChangeDebounced=s.default(this._onMediaVolumeChange.bind(this),300),"a"===this._opts.embedData.contentIndicator&&(this._loggerUrl="https://stats.mainroll.com",this._outstreamMode=!0),this._playout=this._opts.playoutData,"true"!==this._playout.disableCookies&&"tracking"!==this._playout.disableCookies&&(this._uuid_ls_unsaved&&r&&(r.set("bb_uuid",this._uuid),this._uuid_ls_unsaved=!1),this._uuid_c_unsaved&&a.setCookie&&(a.setCookie("uuid",this._uuid,365,this._playout),this._uuid_c_unsaved=!1)),this._logProgressAsQuartiles=!("true"!==this._playout.logProgressAsQuartiles),void 0!==this._playout.context&&(this._context=null===(n=this._playout.context)||void 0===n?void 0:n.toLowerCase()),this._noStats_content="true"===this._playout.noStats_content,this._noStats_commercial="true"===this._playout.noStats_commercial,void 0!==this._opts.clipData&&(this._mediaClip=this._opts.clipData,this._mediaClip_initial=!0),this._publication=this._opts.publicationData,this._sessionId=this._generateSessionId(),this._playerSessionId=this._generateSessionId(),this._serialNumber=0,this._determineReferrer(),this._topMostHostname=o.determineTopMostHostname(),this._onPlayoutChangedBound=this._onPlayoutChanged.bind(this),this._onProjectDataLoadedBound=this._onProjectDataLoaded.bind(this),this._onClipDataLoadedBound=this._onClipDataLoaded.bind(this),this._onClipDataFailedBound=this._onClipDataFailed.bind(this),this._onFullscreenChangeBound=this._onFullscreenChange.bind(this),this._onPlayerErrorBound=this._onPlayerError.bind(this),this._onJavascriptExecutionErrorBound=this._onJavascriptExecutionError.bind(this),this._onPlayerWarningBound=this._onPlayerWarning.bind(this),this._onHeadSelectedBound=this._onHeadSelected.bind(this),this._onCommercialHeadSelectedBound=this._onCommercialHeadSelected.bind(this),this._onAssetSelectedBound=this._onAssetSelected.bind(this),this._onMediaEventBound=this._onMediaEvent.bind(this),this._onWidgetShownBound=this._onWidgetShown.bind(this),this._onWidgetClickedBound=this._onWidgetClicked.bind(this),this._onWidgetCustomAnalyticsBound=this._onWidgetCustomAnalytics.bind(this),this._onAdUnitInitializedBound=this._onAdUnitInitialized.bind(this),this._onAdUnitFailedBound=this._onAdUnitFailed.bind(this),this._onInViewBound=this._onInView.bind(this),this._onOutViewBound=this._onOutView.bind(this),this._onAdSystemEventBound=this._onAdSystemEvent.bind(this),this._onAdScheduleEventBound=this._onAdScheduleEvent.bind(this),this._onCommercialTimeUpdateBound=this._onCommercialTimeUpdate.bind(this),this._onCommercialPausedBound=this._onCommercialPaused.bind(this),this._onCommercialPlayingBound=this._onCommercialPlaying.bind(this),this._onViewStartedBound=this._onViewStarted.bind(this),this._onViewFinishedBound=this._onViewFinished.bind(this),this._onApiCalledBound=this._onApiCalled.bind(this),this._onDvidChangedBound=this._onDvidChanged.bind(this),this._onMovingThumbnailStartedBound=this._onMovingThumbnailStarted.bind(this),this._onAdBlockDetectedBound=this._onAdBlockDetected.bind(this),this.$element=null,void 0!==e&&null!=e&&(this.$element=e,i.default.getService(this._opts.playerAliasOrId).setInstance("BlueBillywigStatisticsLogger",this),this.$element.on("bb_playout_changed",this._onPlayoutChangedBound),this.$element.on("bb_project_loaded",this._onProjectDataLoadedBound),this.$element.on("bb_mediaclip_loaded",this._onClipDataLoadedBound),this.$element.on("bb_mediaclip_failed",this._onClipDataFailedBound),this.$element.on("bb_fullscreen_change",this._onFullscreenChangeBound),this.$element.on("bb_javascript_execution_error",this._onJavascriptExecutionErrorBound),this.$element.on("bb_error",this._onPlayerErrorBound),this.$element.on("bb_warning",this._onPlayerWarningBound),this.$element.on("bb_head_selected",this._onHeadSelectedBound),this.$element.on("bb_commercial_head_selected",this._onCommercialHeadSelectedBound),this.$element.on("bb_asset_selected",this._onAssetSelectedBound),this.$element.on("bb_media_started bb_media_finished bb_media_paused bb_media_waiting bb_media_resumed bb_media_seeking bb_media_seeked bb_media_duration_change bb_media_volume_change bb_media_playback_rate_change bb_media_timeupdate",this._onMediaEventBound),this.$element.on("bb_widget_shown",this._onWidgetShownBound),this.$element.on("bb_widget_clicked",this._onWidgetClickedBound),this.$element.on("bb_widget_custom_analytics",this._onWidgetCustomAnalyticsBound),this.$element.on("bb_adunit_initialized",this._onAdUnitInitializedBound),this.$element.on("bb_adunit_failed",this._onAdUnitFailedBound),this.$element.on("bb_iawr_inview",this._onInViewBound),this.$element.on("bb_outview",this._onOutViewBound),this.$element.on("bb_adsystem_initialized bb_adsystem_loadstart bb_adsystem_blocked bb_adsystem_canplay bb_adsystem_started bb_adsystem_clicked bb_adsystem_skipped bb_adsystem_noad bb_adsystem_failed bb_adsystem_finished bb_adsystem_quartile",this._onAdSystemEventBound),this.$element.on("bb_as_initialized bb_as_placement_failed bb_as_loadstart bb_as_item_blocked bb_as_item_canplay bb_as_started bb_as_ad_clicked bb_as_item_skipped bb_as_item_noad bb_as_item_failed bb_as_finished bb_as_ad_quartile",this._onAdScheduleEventBound),this.$element.on("bb_commercial_timeupdate",this._onCommercialTimeUpdateBound),this.$element.on("bb_commercial_paused",this._onCommercialPausedBound),this.$element.on("bb_commercial_playing",this._onCommercialPlayingBound),this.$element.on("bb_view_started",this._onViewStartedBound),this.$element.on("bb_view_finished",this._onViewFinishedBound),this.$element.on("bb_api_called",this._onApiCalledBound),this.$element.on("bb_dvid_changed",this._onDvidChangedBound),this.$element.on("bb_movingthumbnail_started",this._onMovingThumbnailStartedBound),void 0===window.bluebillywig.adBlockDetected?this.$element.on("bb_adblock_detection_finished",this._onAdBlockDetectedBound):this._onAdBlockDetected())};r.prototype.reset=function(){null!=this._timer&&(clearInterval(this._timer),this._timer=null)},r.prototype.exit=function(){return this.reset(),null!=this.$element&&(this.$element.off("bb_playout_changed",this._onPlayoutChangedBound),this.$element.off("bb_project_loaded",this._onProjectDataLoadedBound),this.$element.off("bb_mediaclip_loaded",this._onClipDataLoadedBound),this.$element.off("bb_mediaclip_failed",this._onClipDataFailedBound),this.$element.off("bb_fullscreen_change",this._onFullscreenChangeBound),this.$element.off("bb_javascript_execution_error",this._onJavascriptExecutionErrorBound),this.$element.off("bb_error",this._onPlayerErrorBound),this.$element.off("bb_warning",this._onPlayerWarningBound),this.$element.off("bb_head_selected",this._onHeadSelectedBound),this.$element.off("bb_commercial_head_selected",this._onCommercialHeadSelectedBound),this.$element.off("bb_asset_selected",this._onAssetSelectedBound),this.$element.off("bb_media_started bb_media_finished bb_media_paused bb_media_waiting bb_media_resumed bb_media_seeking bb_media_seeked bb_media_duration_change bb_media_volume_change bb_media_playback_rate_change bb_media_timeupdate",this._onMediaEventBound),this.$element.off("bb_widget_shown",this._onWidgetShownBound),this.$element.off("bb_widget_clicked",this._onWidgetClickedBound),this.$element.off("bb_widget_custom_analytics",this._onWidgetCustomAnalyticsBound),this.$element.off("bb_adunit_initialized",this._onAdUnitInitializedBound),this.$element.off("bb_adunit_failed",this._onAdUnitFailedBound),this.$element.off("bb_iawr_inview",this._onInViewBound),this.$element.off("bb_outview",this._onOutViewBound),this.$element.off("bb_adsystem_initialized bb_adsystem_loadstart bb_adsystem_blocked bb_adsystem_canplay bb_adsystem_started bb_adsystem_clicked bb_adsystem_skipped bb_adsystem_noad bb_adsystem_failed bb_adsystem_finished bb_adsystem_quartile",this._onAdSystemEventBound),this.$element.off("bb_as_initialized bb_as_placement_failed bb_as_loadstart bb_as_item_loaded bb_as_item_blocked bb_as_item_canplay bb_as_started bb_as_ad_clicked bb_as_item_skipped bb_as_item_noad bb_as_item_failed bb_as_finished bb_as_ad_quartile",this._onAdScheduleEventBound),this.$element.off("bb_commercial_timeupdate",this._onCommercialTimeUpdateBound),this.$element.off("bb_commercial_paused",this._onCommercialPausedBound),this.$element.off("bb_commercial_playing",this._onCommercialPlayingBound),this.$element.off("bb_view_started",this._onViewStartedBound),this.$element.off("bb_view_finished",this._onViewFinishedBound),this.$element.off("bb_api_called",this._onApiCalledBound),this.$element.off("bb_dvid_changed",this._onDvidChangedBound),this.$element.off("bb_movingthumbnail_started",this._onMovingThumbnailStartedBound),this.$element.off("bb_adblock_detection_finished",this._onAdBlockDetectedBound)),i.default.getService(this._opts.playerAliasOrId).setInstance("BlueBillywigStatisticsLogger",null),null},r.prototype.enable=function(){for(this._enabled=!0;this._enabledQueue.length>0;){var e=this._enabledQueue.shift();this._logEvent_enabled(e.properties)}},r.prototype.disable=function(){this._enabled=!1},r.prototype.handleAutoPause=function(){for(var e=0;e<this._enabledQueue.length;){var t=this._enabledQueue[e].properties;"Session"===t.et||"it"===t.ev||"pf"===t.ev||"pw"===t.ev||"Creative"===t.et||"AdUnit"===t.et||"LineItem"===t.et||"AdSchedule"===t.et||"AdScheduleItem"===t.et?(this._enabledQueue.splice(e,1),this._logEvent_enabled(t)):e++}},r.prototype._determineProgressTimer=function(e,t){var i=e&&Number(e.length);if(i>0){var n=Math.min(i/5,3);return t&&(n=4),this._logProgressAsQuartiles?i/40:Math.min(Math.max(i/10,n),10)}return this._logProgressAsQuartiles?1:10},r.prototype._determineReferrer=function(){var e,t;this._referrer=(null===(e=this._detections)||void 0===e?void 0:e.location)||window.location.href,this._realReferrer=(null===(t=this._detections)||void 0===t?void 0:t.referrer)||document.referrer},r.prototype._onPlayoutChanged=function(e,t){var i;t&&t.playoutData&&(void 0!==t.playoutData.logProgressAsQuartiles&&(this._logProgressAsQuartiles=!("true"!==t.playoutData.logProgressAsQuartiles)),void 0!==t.playoutData.context&&void 0===this._context&&(this._context=null===(i=t.playoutData.context)||void 0===i?void 0:i.toLowerCase()),void 0!==t.playoutData.noStats_content&&(this._noStats_content="true"===this._playout.noStats_content),void 0!==t.playoutData.noStats_commercial&&(this._noStats_commercial="true"===this._playout.noStats_commercial))},r.prototype._onProjectDataLoaded=function(e,t){if(this._projectXSTLogged=!1,this._projectId=null,this._sessionId=this._generateSessionId(),this._serialNumber=0,null==this._mediaClip||this._mediaClip_initial||(this._prevClipId=this._mediaClip.id),this._timelineIds={},this._currentTime=0,this._timeOffset=0,this._quartile=-1,this.$element.attr("data-sid",this._sessionId),o.default.triggerEventOnJQueryObject(this.$element,"startedSession"),void 0===(null==t?void 0:t.contextEntityType)&&void 0===(null==t?void 0:t.contextEntityId)||(this._contextEntityType=null==t?void 0:t.contextEntityType,this._contextEntityId=null==t?void 0:t.contextEntityId),t&&t.projectData){this._projectId=t.projectData.id,this._mediaClip={id:"",title:"<unknown>",date:{published:"<unknown>"},projectId:this._projectId},this._mediaClip_initial=!1,this._determineReferrer();var i=this._playout?this._playout.name:"default",n={xu:this._referrer,xr:this._realReferrer,pt:i};void 0!==this._playout&&null!=this._playout&&(n.aup="true"==this._playout.autoPlay||!0===this._playout.autoPlay?"1":"0",n.aum="true"==this._playout.autoMute||!0===this._playout.autoMute?"1":"0",n.aul="true"===this._playout.autoLoop||!0===this._playout.autoLoop||"true"===this._playout.autoLoopClip||!0===this._playout.autoLoopClip?"1":"0"),this._playerSessionStartLogged||(this._playerSessionStartLogged=!0,this._logExtensionEvent("xst",this._playerSessionId,"Session",null,null,n)),this._logExtensionEvent("xit",this._projectId,"Project",this._playerSessionId,"Session",n)}},r.prototype._onClipDataLoaded=function(e,t){if(this._sessionId=this._generateSessionId(),this._serialNumber=0,null==this._mediaClip||this._mediaClip_initial||(this._prevClipId=this._mediaClip.id),this._timelineIds={},this._currentTime=0,this._timeOffset=0,this._quartile=-1,this.$element.attr("data-sid",this._sessionId),o.default.triggerEventOnJQueryObject(this.$element,"startedSession"),void 0===(null==t?void 0:t.contextEntityType)&&void 0===(null==t?void 0:t.contextEntityId)||(this._contextEntityType=null==t?void 0:t.contextEntityType,this._contextEntityId=null==t?void 0:t.contextEntityId),t&&t.clipData){var i,n;if(this._mediaClip=t.clipData,this._mediaClip_initial=!1,!(this._mediaClip.id>0)&&this._mediaClip.sourceid)(n=this._mediaClip.sourceid.match(/^\d+yt-.*[&?]v=([^&]*)/))||(n=this._mediaClip.sourceid.match(/^imported-from\:.*youtube.*v=([^&]*)$/))||(n=this._mediaClip.sourceid.match(/^imported-from\:.*youtu\.be\/([^&]*)$/))?this._mediaClip.id=n[1]:this._mediaClip.id=a.SHA1(this._mediaClip.sourceid);this._projectId&&(this._mediaClip.projectId=this._projectId),this._determineReferrer();var s=this._playout?this._playout.name:"default",r={xu:this._referrer,xr:this._realReferrer,pt:s};void 0!==this._playout&&null!=this._playout&&(r.aup="true"==this._playout.autoPlay||!0===this._playout.autoPlay?"1":"0",r.aum="true"==this._playout.autoMute||!0===this._playout.autoMute?"1":"0",r.aul="true"===this._playout.autoLoop||!0===this._playout.autoLoop||"true"===this._playout.autoLoopClip||!0===this._playout.autoLoopClip?"1":"0"),this._playerSessionStartLogged||(this._playerSessionStartLogged=!0,this._logExtensionEvent("xst",this._playerSessionId,"Session",null,null,r)),null!=this._mediaClip&&void 0!==this._mediaClip.usetype&&(r.ut=this._mediaClip.usetype),Array.isArray(null===(i=this._mediaClip)||void 0===i?void 0:i.subtitles)&&this._mediaClip.subtitles.length>0&&(r.sls=this._mediaClip.subtitles.map((function(e){return null==e?void 0:e.isocode})).join(","));var l=this._constructCustomFieldLogging(this._mediaClip);l&&(r.csf=JSON.stringify(l)),this._logMediaClipEvent("it",r)}else this._mediaClip=null,this._logErrorEvent("pf",{why:"clip failed to open"});null!=this._timer&&(clearInterval(this._timer),this._timer=null)},r.prototype._constructCustomFieldLogging=function(e){var t=null,i={string:"_str",relation:"_str",multistring:"_strmulti",relationlist:"_strmulti",text:"_txt",boolean:"_bool",date:"_date",int:"_int",long:"_long",float:"_float",double:"_double"};if(this._publication.customfields&&this._publication.customfields.mediaclip&&this._publication.customfields.mediaclip.length)for(var n=0;n<this._publication.customfields.mediaclip.length;n++){var a=this._publication.customfields.mediaclip[n];a&&a.includeInStats&&a.name&&void 0!==e[a.name]&&(t||(t={}),t[a.name+(i[a.type]||"_str")]=e[a.name])}return t},r.prototype._onClipDataFailed=function(e){this._onClipDataLoaded(e)},r.prototype._onHeadSelected=function(e,t){this._playMode=this._playModeFromHeadType(t.headType)},r.prototype._onCommercialHeadSelected=function(e,t){this._commercialPlayMode=this._playModeFromHeadType(t.headType)},r.prototype._playModeFromHeadType=function(e){switch(e){case"html5ima":case"html5":return"html5";default:return e}},r.prototype._onAdBlockDetected=function(){this._adBlockDetected=window.bluebillywig.adBlockDetected?1:0,this.$element&&this.$element.trigger("bb_ad_log",[{msg:"Ad event: "+(this._adBlockDetected?"An":"No")+" adblocker was detected"}])},r.prototype._onAssetSelected=function(e,t){var i,n,a,s=(null===(i=this._asset)||void 0===i?void 0:i["language-id"])||null,o=(null===(n=this._asset)||void 0===n?void 0:n.mediatype)||null,l=(null===(a=this._asset)||void 0===a?void 0:a.title)||null;if(this._asset=t.asset,this._asset){if(null!=this._viewId){var u={};void 0!==this._asset["language-id"]&&this._asset["language-id"]!==s&&(u.ali=this._asset["language-id"],u.alc=this._asset["language-isocode"]),void 0!==this._asset.mediatype&&this._asset.mediatype!==o&&(u.amt=r._simplifyAmt(this._asset.mediatype)),void 0!==this._asset.title&&this._asset.title!==l&&(u.aql=this._asset.title),Object.keys(u).length>0&&this._logExtensionEvent("xpc",this._viewId,"View",this._playerSessionId,"Session",u)}}else this._logErrorEvent("pf",{why:"no playable media"})},r._simplifyAmt=function(e){if(e){if(e.startsWith("MP4_HLS"))return"HLS";if(e.startsWith("MP4")||e.startsWith("FMP4"))return"MP4"}return e||""},r.prototype._onFullscreenChange=function(e,t){if(void 0!==t&&void 0!==t.fullscreen){this._fullScreen=t.fullscreen;var i={fs:this._fullScreen?"1":"0"};this._logExtensionEvent("xpc",this._viewId,"View",this._playerSessionId,"Session",i)}},r.prototype._onJavascriptExecutionError=function(e,t){this._logErrorEvent("jee",{error:(null==t?void 0:t.error)||"",msg:(null==t?void 0:t.msg)||""})},r.prototype._onPlayerError=function(e,t){void 0!==t&&void 0!==t.msg&&this._logErrorEvent("pf",{why:t.msg}),null!=this._timer&&(clearInterval(this._timer),this._timer=null)},r.prototype._onPlayerWarning=function(e,t){void 0!==t&&void 0!==t.msg&&this._logErrorEvent("pw",{why:t.msg})},r.prototype._onDurationChange=function(e,t){void 0!==t&&void 0!==t.duration&&(this._duration=t.duration)},r.prototype._onMediaVolumeChange=function(e,t){if(null!==(null==t?void 0:t.volume)&&null!==(null==t?void 0:t.muted)){var i={mv:parseFloat(null==t?void 0:t.masterVolume)*parseFloat(null==t?void 0:t.volume),mm:(null==t?void 0:t.masterMuted)||(null==t?void 0:t.muted)?"true":"false"};this._logExtensionEvent("xpc",this._viewId,"View",this._playerSessionId,"Session",i)}},r.prototype._onMediaPlaybackRateChange=function(e,t){var i={mpr:parseFloat(null==t?void 0:t.rate)};this._logExtensionEvent("xpc",this._viewId,"View",this._playerSessionId,"Session",i)},r.prototype._onMediaEvent=function(e,t){switch(null==e?void 0:e.type){case"bb_media_started":this._onMediaStarted(e,t);break;case"bb_media_finished":this._onMediaFinished(e,t);break;case"bb_media_paused":this._onMediaPaused(e,t);break;case"bb_media_waiting":this._onMediaWaiting(e,t);break;case"bb_media_resumed":this._onMediaResumed(e,t);break;case"bb_media_seeking":this._onMediaSeeking(e,t);break;case"bb_media_seeked":this._onMediaSeeked(e,t);break;case"bb_media_duration_change":this._onDurationChange(e,t);break;case"bb_media_volume_change":this._onMediaVolumeChangeDebounced(e,t);break;case"bb_media_playback_rate_change":this._onMediaPlaybackRateChange(e,t);break;case"bb_media_timeupdate":this._onTimeUpdate(e,t)}},r.prototype._onMediaStarted=function(e){var t;this._paused=!1,this._isReplay=!1,this._mediaClip&&this._mediaClip.id===this._startedClipId&&(this._logMediaClipEvent("rp",{to:0}),this._isReplay=!0),this._mediaClip&&(this._startedClipId=this._mediaClip.id);var i=r._simplifyAmt(null===(t=this._asset)||void 0===t?void 0:t.mediatype);if(this._asset&&!isNaN(Number(this._asset.bandwidth))){var n=o.quantizeBitrate(Number(this._asset.bandwidth));this._logMediaClipEvent("st",{to:0,amt:i,ab:n})}else if(null==this._assetBandwidth||isNaN(Number(this._assetBandwidth)))this._logMediaClipEvent("st",{to:0,amt:i});else{var a=o.quantizeBitrate(Number(this._assetBandwidth));this._logMediaClipEvent("st",{to:0,amt:i,ab:a})}null!=this._timer&&(clearInterval(this._timer),this._timer=null);var s=this,l=1e3*this._determineProgressTimer(this._mediaClip,this._isReplay);l>2e3&&setTimeout((function(){s._handleTimerTick()}),2e3),this._timer=setInterval((function(){s._handleTimerTick()}),l),this._projectXSTLogged||null==this._projectId||(this._logExtensionEvent("xst",this._projectId,"Project",this._viewId,"View",null),this._projectXSTLogged=!0)},r.prototype._onMediaFinished=function(e){if(this._logProgressAsQuartiles)for(;this._quartile<4;){this._quartile++;var t=25*this._quartile;this._logMediaClipEvent("pg",{pct:t,pet:"Session",pid:this._playerSessionId,wpa:!!this._paused})}this._logMediaClipEvent("fn",{to:this._getTimeOffset()}),null!=this._timer&&(clearInterval(this._timer),this._timer=null)},r.prototype._onMediaPaused=function(e){this._paused=!0,this._logMediaClipEvent("pa",{to:this._getTimeOffset()}),null!=this._timer&&(clearInterval(this._timer),this._timer=null);var t=this;this._timer=setInterval((function(){t._handleTimerTick()}),6e4)},r.prototype._onMediaWaiting=function(e){this._logMediaClipEvent("wa",{to:this._getTimeOffset()})},r.prototype._onMediaResumed=function(e){this._paused=!1,this._logMediaClipEvent("rs",{to:this._getTimeOffset()}),null!=this._timer&&(clearInterval(this._timer),this._timer=null);var t=this,i=1e3*this._determineProgressTimer(this._mediaClip,this._isReplay);this._timer=setInterval((function(){t._handleTimerTick()}),i)},r.prototype._onMediaSeeking=function(e,t){var i=parseFloat(null==t?void 0:t.currentTime);i>=0&&(this._currentTime=this._duration>=0?Math.min(i,this._duration):i),this._logMediaClipEvent("ss",{to:this._getTimeOffset()})},r.prototype._onMediaSeeked=function(e,t){t&&!isNaN(parseFloat(t.seekedPosition))&&t.seekedPosition>=0&&(this._currentTime=t.seekedPosition,this._duration&&this._currentTime>this._duration&&(this._currentTime=this._duration),this._timeOffset=Math.round(1e3*parseFloat(this._currentTime))),this._logMediaClipEvent("se",{to:this._getTimeOffset()})},r.prototype._onTimeUpdate=function(e,t){t&&!isNaN(parseFloat(t.currentTime))&&t.currentTime>=0&&(this._currentTime=t.currentTime,this._duration&&this._currentTime>this._duration&&(this._currentTime=this._duration))},r.prototype._getTimeOffset=function(){return this._timeOffset||(this._timeOffset=0),this._currentTime||(this._currentTime=0),this._timeOffset=Math.min(this._timeOffset+6e4,Math.round(1e3*parseFloat(this._currentTime)))},r.prototype._handleTimerTick=function(){var e=this._getTimeOffset();if(e===this._to){if(this._to_num||(this._to_num=1),this._to_now||(this._to_now=Date.now()),this._to_num++>60)return;if(Date.now()>this._to_now+36e5)return}else this._to=e,this._to_num=null,this._to_now=null;if(this._logProgressAsQuartiles)for(var t=this._duration>0?Math.floor(4*e/(1e3*this._duration)):0;this._quartile<t;){this._quartile++;var i=25*this._quartile;this._logMediaClipEvent("pg",{pct:i,pet:"Session",pid:this._playerSessionId,wpa:!!this._paused})}else this._logMediaClipEvent("pg",{to:e,pet:"Session",pid:this._playerSessionId,wpa:!!this._paused})},r.prototype._onWidgetShown=function(e,t){t&&void 0!==t.entityId&&void 0!==t.timelineId&&(this._projectXSTLogged||null==this._projectId||(this._logExtensionEvent("xst",this._projectId,"Project",this._viewId,"View",null),this._projectXSTLogged=!0),void 0===this._timelineIds[t.timelineId]&&(this._timelineIds[t.timelineId]=!0,null!=this._mediaClip?this._logExtensionEvent("xst",t.timelineId,"Timeline",this._mediaClip.id,"MediaClip"):this._logExtensionEvent("xst",t.timelineId,"Timeline")),this._logExtensionEvent("xst",t.entityId,"Widget",t.timelineId,"Timeline",{to:this._getTimeOffset(),fs:this._fullScreen?"1":"0"}))},r.prototype._onWidgetClicked=function(e,t){t&&void 0!==t.entityId&&void 0!==t.timelineId&&this._logExtensionEvent("xcl",t.entityId,"Widget",t.timelineId,"Timeline",{to:this._getTimeOffset(),fs:this._fullScreen?"1":"0"})},r.prototype._onWidgetCustomAnalytics=function(e,t){t&&void 0!==t.entityId&&void 0!==t.timelineId&&this._logExtensionEvent("xsl",t.entityId,"Widget",t.timelineId,"Timeline",{to:this._getTimeOffset(),fs:this._fullScreen?"1":"0",cs:t.data})},r.prototype._onAdUnitInitialized=function(e,t){if(void 0!==t&&null!=t&&(this._creativeId=null,this._adUnitLoggedXiv=!1,this._adUnitLoggedXov=!1,this._adUnitAdPosition=void 0!==t.adPosition&&null!==t.adPosition?t.adPosition.toLowerCase():null,this._adUnitCode=void 0!==t.adUnitCode?t.adUnitCode:null,null!=this._adUnitCode)){var i=this._adUnitAdPosition?{ap:this._adUnitAdPosition}:{};this._logExtensionEvent("xit",this._adUnitCode,"AdUnit",this._viewId,"View",i),this._isInView?this._adUnitLoggedXiv||(this._adUnitLoggedXiv=!0,this._logExtensionEvent("xiv",this._adUnitCode,"AdUnit",this._viewId,"View",i)):this._adUnitLoggedXov||(this._adUnitLoggedXov=!0,this._logExtensionEvent("xov",this._adUnitCode,"AdUnit",this._viewId,"View",i))}},r.prototype._onAdUnitFailed=function(e,t){if(void 0!==t&&null!=t&&(this._creativeId=null,this._adUnitCode=void 0!==t.adUnitCode?t.adUnitCode:null,null!=this._adUnitCode)){var i=void 0!==t.adPosition?{ap:t.adPosition.toLowerCase()}:{};this._logExtensionEvent("xpf",this._adUnitCode,"AdUnit",this._viewId,"View",i),this._isInView?this._adUnitLoggedXiv||(this._adUnitLoggedXiv=!0,this._logExtensionEvent("xiv",this._adUnitCode,"AdUnit",this._viewId,"View",i)):this._adUnitLoggedXov||(this._adUnitLoggedXov=!0,this._logExtensionEvent("xov",this._adUnitCode,"AdUnit",this._viewId,"View",i))}},r.prototype._onInView=function(e){if(this._isInView=!0,null!=this._adUnitCode&&!this._adUnitLoggedXiv){this._adUnitLoggedXiv=!0;var t=this._adUnitAdPosition?{ap:this._adUnitAdPosition}:{};this._logExtensionEvent("xiv",this._adUnitCode,"AdUnit",this._viewId,"View",t)}if(null!=this._adScheduleCode&&!this._adScheduleLoggedXiv){this._adScheduleLoggedXiv=!0;t=this._adScheduleAdPosition?{ap:this._adScheduleAdPosition}:{};this._logExtensionEvent("xiv",this._adScheduleCode,"AdSchedule",this._viewId,"View",t)}},r.prototype._onOutView=function(e){if(this._isInView=!1,null!=this._adUnitCode&&!this._adUnitLoggedXov){this._adUnitLoggedXov=!0;var t=this._adUnitAdPosition?{ap:this._adUnitAdPosition}:{};this._logExtensionEvent("xov",this._adUnitCode,"AdUnit",this._viewId,"View",t)}if(null!=this._adScheduleCode&&!this._adScheduleLoggedXov){this._adScheduleLoggedXov=!0;t=this._adScheduleAdPosition?{ap:this._adScheduleAdPosition}:{};this._logExtensionEvent("xov",this._adScheduleCode,"AdSchedule",this._viewId,"View",t)}},r.prototype._onAdSystemEvent=function(e,t){switch(null==e?void 0:e.type){case"bb_adsystem_initialized":this._onAdSystemInitialized(e,t);break;case"bb_adsystem_loadstart":this._onAdSystemLoadStart(e,t);break;case"bb_adsystem_blocked":this._onAdSystemBlocked(e,t);break;case"bb_adsystem_canplay":this._onAdSystemCanPlay(e,t);break;case"bb_adsystem_started":this._onAdSystemStarted(e,t);break;case"bb_adsystem_clicked":this._onAdSystemClicked(e,t);break;case"bb_adsystem_skipped":this._onAdSystemSkipped(e,t);break;case"bb_adsystem_noad":this._onAdSystemNoAd(e,t);break;case"bb_adsystem_failed":this._onAdSystemFailed(e,t);break;case"bb_adsystem_finished":this._onAdSystemFinished(e,t);break;case"bb_adsystem_quartile":this._onAdSystemQuartile(e,t)}},r.prototype._onAdSystemInitialized=function(e,t){void 0===t&&(t={}),this._adProperties=null,this._commercialCurrentTime=0;var i={at:t.adType,ap:t.adPosition.toLowerCase(),ar:t.adRequestUrl};this._lineItemLoggedXld=!1,this._lineItemLoggedXst=!1,this._creativeLoggedXit=!1,this._creativeLoggedXit_pi=-2,this._cuePointTuples={};var n=i;this._lineItemCode=t.lineItemCode,this._adUnitCode&&this._lineItemCode&&this._lineItemLogging&&this._logExtensionEvent("xit",this._lineItemCode,"LineItem",this._adUnitCode,"AdUnit",n)},r.prototype._onAdSystemLoadStart=function(e,t){void 0!==t&&void 0!==t.adProperties?this._adProperties=t.adProperties:this._adProperties=null;var i={at:t.adType,ap:t.adPosition.toLowerCase(),ar:t.adRequestUrl};null!=this._adProperties&&(i.sdk=this._adProperties.sdk);var n=i;void 0!==t.lineItemCode&&(this._lineItemCode=t.lineItemCode),this._adUnitCode&&this._lineItemCode&&this._lineItemLogging&&this._logExtensionEvent("xls",this._lineItemCode,"LineItem",this._adUnitCode,"AdUnit",n)},r.prototype._onAdSystemBlocked=function(e,t){void 0!==t&&void 0!==t.adProperties?this._adProperties=t.adProperties:this._adProperties=null;var i={at:t.adType,ap:t.adPosition.toLowerCase(),ar:t.adRequestUrl};null!=this._adProperties&&(i.sdk=this._adProperties.sdk),null!=this._adUnitCode&&(void 0!==t.lineItemCode&&(this._lineItemCode=t.lineItemCode),this._lineItemLogging&&this._logExtensionEvent("xlb",this._lineItemCode,"LineItem",this._adUnitCode,"AdUnit",i),i.auc=this._adUnitCode,i.lic=this._lineItemCode),null===this._creativeId&&(this._creativeId=this._constructCreativeId(t.adType,t.adPosition,this._lineItemCode)),this._logExtensionEvent("xlb",this._creativeId,"Creative",this._viewId,"View",i)},r.prototype._onAdSystemCanPlay=function(e,t){var i,n;void 0!==t&&void 0!==t.adProperties?this._adProperties=t.adProperties:this._adProperties=null;var a={at:t.adType,ap:t.adPosition.toLowerCase(),ar:t.adRequestUrl};if(null!=this._adProperties&&(a.adi=this._adProperties.adId,a.adt=this._adProperties.adTitle,a.ads=this._adProperties.adSystem,a.adl=this._adProperties.adLinear,a.add=this._adProperties.duration,a.sdk=this._adProperties.sdk,this._adProperties.adPodInfo&&(a.adp_ap=this._adProperties.adPodInfo.adPosition,a.adp_ib=!0===this._adProperties.adPodInfo.isBumper?"true":"false",a.adp_md=this._adProperties.adPodInfo.maxDuration,a.adp_pi=this._adProperties.adPodInfo.podIndex,a.adp_to=this._adProperties.adPodInfo.timeOffset,a.adp_ta=this._adProperties.adPodInfo.totalAds)),void 0!==t.lineItemCode&&(this._lineItemCode=t.lineItemCode),this._adUnitCode&&this._lineItemCode){var s={at:t.adType,ap:t.adPosition.toLowerCase(),ar:t.adRequestUrl};null!=this._adProperties&&(s.sdk=this._adProperties.sdk),this._lineItemLoggedXld||(this._lineItemLoggedXld=!0,this._logExtensionEvent("xld",this._lineItemCode,"LineItem",this._adUnitCode,"AdUnit",s)),this._lineItemLoggedXst||(this._lineItemLoggedXst=!0,this._logExtensionEvent("xst",this._lineItemCode,"LineItem",this._adUnitCode,"AdUnit",s))}if(a.vastid=(null===(i=this._adProperties)||void 0===i||null===(n=i.adWrapperAdIds)||void 0===n?void 0:n.length)>0?this._adProperties.adWrapperAdIds.slice(-1).toString():"[unknown]",this._adProperties&&this._adProperties.adPodInfo){if(this._creativeLoggedXit_pi!==this._adProperties.adPodInfo.podIndex){this._creativeLoggedXit_pi=this._adProperties.adPodInfo.podIndex;for(var o=!0===this._adProperties.adPodInfo.isBumper?"true":"false",r=this._adProperties.adPodInfo.maxDuration,l=this._adProperties.adPodInfo.podIndex,u=this._adProperties.adPodInfo.timeOffset,d=this._adProperties.adPodInfo.totalAds,c=0;c<d;c++){var h=c+1,p=this._adProperties.adPodInfo.adPosition===h?a.vastid:"",_=this._constructCreativeId(h,u,this._lineItemCode);this._cuePointTuples["#"+u]||(this._cuePointTuples["#"+u]=[]),this._cuePointTuples["#"+u].push({adPosition:h,creativeId:_}),this._logExtensionEvent("xit",_,"Creative",this._viewId,"View",{at:a.at,ap:a.ap,ar:a.ar,auc:this._adUnitCode,lic:this._lineItemCode,vastid:p,adp_ap:h,adp_ib:o,adp_md:r,adp_pi:l,adp_to:u,adp_ta:d,sdk:this._adProperties.sdk})}}}else if(!this._creativeLoggedXit){this._creativeLoggedXit=!0;var m="postroll"===a.ap?-1:(a.ap,0),f="postroll"===a.ap?-1:0;"vms"===t.adType?this._creativeId=void 0!==t.vmsClipId?t.vmsClipId:"":this._creativeId=this._constructCreativeId(t.adType,t.adPosition,this._lineItemCode),this._logExtensionEvent("xit",this._creativeId,"Creative",this._viewId,"View",{at:a.at,ap:a.ap,ar:a.ar,auc:this._adUnitCode,lic:this._lineItemCode,vastid:a.vastid,adp_ap:1,adp_ib:"false",adp_md:0,adp_pi:m,adp_to:f,adp_ta:1,sdk:this._adProperties.sdk})}if(a.auc=this._adUnitCode,a.lic=this._lineItemCode,this._adProperties&&this._adProperties.adPodInfo){var v=this._adProperties.adPodInfo.adPosition,g=this._adProperties.adPodInfo.timeOffset;if(this._cuePointTuples&&this._cuePointTuples["#"+g])for(var y in this._cuePointTuples["#"+g]){var b=this._cuePointTuples["#"+g][y];b.adPosition===v&&(this._creativeId=b.creativeId)}}this._logExtensionEvent("xls",this._creativeId,"Creative",this._viewId,"View",a),this._logExtensionEvent("xld",this._creativeId,"Creative",this._viewId,"View",a)},r.prototype._onAdSystemStarted=function(e,t){void 0===t&&(t={}),this._adSystemStarted=!0;var i={at:t.adType,ap:t.adPosition.toLowerCase(),ar:t.adRequestUrl};if(null!=this._adProperties&&(i.adi=this._adProperties.adId,i.adt=this._adProperties.adTitle,i.ads=this._adProperties.adSystem,i.adl=this._adProperties.adLinear,i.add=this._adProperties.duration,i.sdk=this._adProperties.sdk),void 0!==t.lineItemCode&&(this._lineItemCode=t.lineItemCode),this._adUnitCode&&this._lineItemCode){var n={at:t.adType,ap:t.adPosition.toLowerCase(),ar:t.adRequestUrl};null!=this._adProperties&&(n.sdk=this._adProperties.sdk),this._lineItemLoggedXst||(this._lineItemLoggedXst=!0,this._logExtensionEvent("xst",this._lineItemCode,"LineItem",this._adUnitCode,"AdUnit",n))}},r.prototype._onAdSystemClicked=function(e,t){void 0===t&&(t={});var i={at:t.adType,ap:t.adPosition.toLowerCase()};t.__pretend&&(i.hmm="1"),null!=this._adUnitCode&&(void 0!==t.lineItemCode&&(this._lineItemCode=t.lineItemCode),this._lineItemLogging&&this._logExtensionEvent("xcl",this._lineItemCode,"LineItem",this._adUnitCode,"AdUnit",i),i.auc=this._adUnitCode,i.lic=this._lineItemCode),this._logExtensionEvent("xcl",this._creativeId,"Creative",this._viewId,"View",i)},r.prototype._onAdSystemSkipped=function(e,t){void 0===t&&(t={}),this._adSystemStarted=!1;var i={at:t.adType,ap:t.adPosition.toLowerCase()};null!=this._adUnitCode&&(void 0!==t.lineItemCode&&(this._lineItemCode=t.lineItemCode),this._lineItemLogging&&this._logExtensionEvent("xsk",this._lineItemCode,"LineItem",this._adUnitCode,"AdUnit",i),i.auc=this._adUnitCode,i.lic=this._lineItemCode),this._logExtensionEvent("xsk",this._creativeId,"Creative",this._viewId,"View",i)},r.prototype._onAdSystemNoAd=function(e,t){var i,n;void 0!==t&&void 0!==t.adProperties?this._adProperties=t.adProperties:this._adProperties=null,this._adSystemStarted=!1;var a={at:t.adType,ap:t.adPosition.toLowerCase(),ar:t.adRequestUrl};if(null!=this._adProperties&&(a.why=this._adProperties.errorMessage?(this._adProperties.errorCode?"AdError "+this._adProperties.errorCode+": ":"")+this._adProperties.errorMessage:"No ad found",void 0!==this._adProperties.adId&&null!=this._adProperties.adId&&(a.adi=this._adProperties.adId),void 0!==this._adProperties.adTitle&&null!=this._adProperties.adTitle&&(a.adt=this._adProperties.adTitle),void 0!==this._adProperties.adSystem&&null!=this._adProperties.duration&&(a.ads=this._adProperties.adSystem),void 0!==this._adProperties.adLinear&&null!=this._adProperties.duration&&(a.adl=this._adProperties.adLinear),void 0!==this._adProperties.duration&&null!=this._adProperties.duration&&(a.add=this._adProperties.duration),void 0!==this._adProperties.sdk&&null!=this._adProperties.sdk&&(a.sdk=this._adProperties.sdk)),t.timeout&&(a.why="timeout after "+t.timeout/1e3+"s"),null!=this._adUnitCode&&(void 0!==t.lineItemCode&&(this._lineItemCode=t.lineItemCode),this._lineItemLogging&&this._logExtensionEvent("xpf",this._lineItemCode,"LineItem",this._adUnitCode,"AdUnit",a),a.auc=this._adUnitCode,a.lic=this._lineItemCode),a.vastid=(null===(i=this._adProperties)||void 0===i||null===(n=i.adWrapperAdIds)||void 0===n?void 0:n.length)>0?this._adProperties.adWrapperAdIds.slice(-1).toString():"[unknown]",null===this._creativeId&&(this._creativeId=this._constructCreativeId(t.adType,t.adPosition,this._lineItemCode)),this._adProperties&&this._adProperties.adPodInfo);else if(!this._creativeLoggedXit){this._creativeLoggedXit=!0;var s="postroll"===a.ap?-1:(a.ap,0),o="postroll"===a.ap?-1:0;this._logExtensionEvent("xit",this._creativeId,"Creative",this._viewId,"View",{at:a.at,ap:a.ap,ar:a.ar,auc:this._adUnitCode,lic:this._lineItemCode,vastid:a.vastid,adp_ap:1,adp_ib:"false",adp_md:0,adp_pi:s,adp_to:o,adp_ta:1,sdk:a.sdk})}this._logExtensionEvent("xpf",this._creativeId,"Creative",this._viewId,"View",a)},r.prototype._onAdSystemFailed=function(e,t){void 0!==t&&void 0!==t.adProperties?this._adProperties=t.adProperties:this._adProperties=null,this._adSystemStarted=!1;var i={at:t.adType,ap:t.adPosition.toLowerCase(),ar:t.adRequestUrl};if(null!=this._adProperties){var n,a;if(i.why=this._adProperties.errorMessage?(this._adProperties.errorCode?"AdError "+this._adProperties.errorCode+": ":"")+this._adProperties.errorMessage:"Ad system failed",void 0!==this._adProperties.adId&&null!=this._adProperties.adId&&(i.adi=this._adProperties.adId),void 0!==this._adProperties.adTitle&&null!=this._adProperties.adTitle&&(i.adt=this._adProperties.adTitle),void 0!==this._adProperties.adSystem&&null!=this._adProperties.duration&&(i.ads=this._adProperties.adSystem),void 0!==this._adProperties.adLinear&&null!=this._adProperties.duration&&(i.adl=this._adProperties.adLinear),void 0!==this._adProperties.duration&&null!=this._adProperties.duration&&(i.add=this._adProperties.duration),null!=this._adUnitCode&&(void 0!==t.lineItemCode&&(this._lineItemCode=t.lineItemCode),this._lineItemLogging&&this._logExtensionEvent("xpf",this._lineItemCode,"LineItem",this._adUnitCode,"AdUnit",i),i.auc=this._adUnitCode,i.lic=this._lineItemCode),i.vastid=(null===(n=this._adProperties)||void 0===n||null===(a=n.adWrapperAdIds)||void 0===a?void 0:a.length)>0?this._adProperties.adWrapperAdIds.slice(-1).toString():"[unknown]",null===this._creativeId&&(this._creativeId=this._constructCreativeId(t.adType,t.adPosition,this._lineItemCode)),this._adProperties&&this._adProperties.adPodInfo);else if(!this._creativeLoggedXit){this._creativeLoggedXit=!0;var s="postroll"===i.ap?-1:(i.ap,0),o="postroll"===i.ap?-1:0;this._logExtensionEvent("xit",this._creativeId,"Creative",this._viewId,"View",{at:i.at,ap:i.ap,ar:i.ar,auc:this._adUnitCode,lic:this._lineItemCode,vastid:i.vastid,adp_ap:1,adp_ib:"false",adp_md:0,adp_pi:s,adp_to:o,adp_ta:1,sdk:i.sdk})}this._logExtensionEvent("xpf",this._creativeId,"Creative",this._viewId,"View",i)}},r.prototype._onAdSystemFinished=function(e,t){void 0===t&&(t={}),this._adSystemStarted=!1;var i={at:t.adType,ap:t.adPosition.toLowerCase()};void 0!==t.lineItemCode&&(this._lineItemCode=t.lineItemCode),this._adUnitCode&&this._lineItemCode&&this._lineItemLogging&&this._logExtensionEvent("xfn",this._lineItemCode,"LineItem",this._adUnitCode,"AdUnit",i)},r.prototype._onAdSystemQuartile=function(e,t){void 0===t&&(t={});var i=25*t.quartile,n={at:t.adType,ap:t.adPosition.toLowerCase(),pct:i};switch(n.auc=this._adUnitCode,n.lic=this._lineItemCode,parseInt(t.quartile)){case 0:this._logExtensionEvent("xst",this._creativeId,"Creative",this._viewId,"View",n);break;default:this._logExtensionEvent("xpg",this._creativeId,"Creative",this._viewId,"View",n);break;case 4:this._logExtensionEvent("xfn",this._creativeId,"Creative",this._viewId,"View",n)}},r.prototype._onAdScheduleEvent=function(e,t){switch(null==e?void 0:e.type){case"bb_as_initialized":this._onAdScheduleInitialized(e,t);break;case"bb_as_placement_failed":this._onAdSchedulePlacementFailed(e,t);break;case"bb_as_loadstart":this._onAdScheduleLoadStart(e,t);break;case"bb_as_item_blocked":this._onAdScheduleItemBlocked(e,t);break;case"bb_as_item_canplay":this._onAdScheduleItemCanPlay(e,t);break;case"bb_as_started":this._onAdScheduleStarted(e,t);break;case"bb_as_ad_clicked":this._onAdScheduleAdClicked(e,t);break;case"bb_as_item_skipped":this._onAdScheduleItemSkipped(e,t);break;case"bb_as_item_noad":this._onAdScheduleItemNoAd(e,t);break;case"bb_as_item_failed":this._onAdScheduleItemFailed(e,t);break;case"bb_as_finished":this._onAdScheduleFinished(e,t);break;case"bb_as_ad_quartile":this._onAdScheduleAdQuartile(e,t)}},r.prototype._onAdScheduleInitialized=function(e,t){var i,n;t=t||{},this._adProperties=null,this._commercialCurrentTime=0,this._adScheduleAdPosition=null===(i=t.adPosition)||void 0===i?void 0:i.toLowerCase();var a={at:t.adType,ap:null===(n=t.adPosition)||void 0===n?void 0:n.toLowerCase(),ar:t.adRequestUrl};this._adScheduleLoggedXiv=!1,this._adScheduleLoggedXov=!1,this._adScheduleItemCodeLoggedXit=null,this._creativeLoggedXit=!1,this._creativeLoggedXit_pi=-2,this._cuePointTuples={},this._adScheduleCode=t.adScheduleCode,this._adScheduleCode&&(this._logExtensionEvent("xit",this._adScheduleCode,"AdSchedule",this._playerSessionId,"Session",a),this._isInView?this._adScheduleLoggedXiv||(this._adScheduleLoggedXiv=!0,this._logExtensionEvent("xiv",this._adScheduleCode,"AdSchedule",this._viewId,"View",a)):this._adScheduleLoggedXov||(this._adScheduleLoggedXov=!0,this._logExtensionEvent("xov",this._adScheduleCode,"AdSchedule",this._viewId,"View",a)))},r.prototype._onAdSchedulePlacementFailed=function(e,t){var i,n={at:(t=t||{}).adType,ap:null===(i=t.adPosition)||void 0===i?void 0:i.toLowerCase(),ar:t.adRequestUrl};this._adScheduleCode=t.adScheduleCode,null!=this._adScheduleCode&&(this._logExtensionEvent("xpf",this._adScheduleCode,"AdSchedule",this._playerSessionId,"Session",n),this._isInView?this._adScheduleLoggedXiv||(this._adScheduleLoggedXiv=!0,this._logExtensionEvent("xiv",this._adScheduleCode,"AdSchedule",this._viewId,"View",n)):this._adScheduleLoggedXov||(this._adScheduleLoggedXov=!0,this._logExtensionEvent("xov",this._adScheduleCode,"AdSchedule",this._viewId,"View",n)))},r.prototype._onAdScheduleLoadStart=function(e,t){var i;void 0!==(t=t||{}).adProperties?this._adProperties=t.adProperties:this._adProperties=null;var n={at:t.adType,ap:null===(i=t.adPosition)||void 0===i?void 0:i.toLowerCase(),ar:t.adRequestUrl};null!=this._adProperties&&(n.sdk=this._adProperties.sdk),this._adScheduleCode&&this._logExtensionEvent("xls",this._adScheduleCode,"AdSchedule",this._playerSessionId,"Session",n)},r.prototype._onAdScheduleItemBlocked=function(e,t){var i,n,a;void 0!==(t=t||{}).adProperties?this._adProperties=t.adProperties:this._adProperties=null;var s={at:t.adType,ap:null===(i=t.adPosition)||void 0===i?void 0:i.toLowerCase(),ar:t.adRequestUrl};null!=this._adProperties&&(s.sdk=this._adProperties.sdk),void 0!==t.adScheduleItemCode&&(this._adScheduleItemCode=t.adScheduleItemCode),this._adScheduleCode&&this._adScheduleItemCode&&this._logExtensionEvent("xlb",this._adScheduleItemCode,"AdScheduleItem",this._adScheduleCode,"AdSchedule",s),s.asc=this._adScheduleCode,s.asic=this._adScheduleItemCode,s.vastid=(null===(n=this._adProperties)||void 0===n||null===(a=n.adWrapperAdIds)||void 0===a?void 0:a.length)>0?this._adProperties.adWrapperAdIds.slice(-1).toString():"[unknown]",null===this._creativeId&&(this._creativeId=this._constructCreativeId(t.adType,t.adPosition,this._adScheduleItemCode)),this._logExtensionEvent("xlb",this._creativeId,"Creative",this._viewId,"View",s)},r.prototype._onAdScheduleItemCanPlay=function(e,t){var i,n,a;void 0!==(t=t||{}).adProperties?this._adProperties=t.adProperties:this._adProperties=null;var s={at:t.adType,ap:null===(i=t.adPosition)||void 0===i?void 0:i.toLowerCase(),ar:t.adRequestUrl};if(null!=this._adProperties&&(s.adi=this._adProperties.adId,s.adt=this._adProperties.adTitle,s.ads=this._adProperties.adSystem,s.adl=this._adProperties.adLinear,s.add=this._adProperties.duration,s.sdk=this._adProperties.sdk,this._adProperties.adPodInfo&&(s.adp_ap=this._adProperties.adPodInfo.adPosition,s.adp_ib=!0===this._adProperties.adPodInfo.isBumper?"true":"false",s.adp_md=this._adProperties.adPodInfo.maxDuration,s.adp_pi=this._adProperties.adPodInfo.podIndex,s.adp_to=this._adProperties.adPodInfo.timeOffset,s.adp_ta=this._adProperties.adPodInfo.totalAds)),void 0!==t.adScheduleItemCode&&(this._adScheduleItemCode=t.adScheduleItemCode),this._adScheduleCode&&this._adScheduleItemCode){var o,r,l,u={at:t.adType,ap:null===(o=t.adPosition)||void 0===o?void 0:o.toLowerCase(),ar:t.adRequestUrl,aic:t.adBreakItemCount};null!=this._adProperties&&(u.sdk=this._adProperties.sdk),u.adp_ta=(null===(r=this._adProperties)||void 0===r||null===(l=r.adPodInfo)||void 0===l?void 0:l.totalAds)||1,this._adScheduleItemCode!==this._adScheduleItemCodeLoggedXit&&(this._adScheduleItemCodeLoggedXit=this._adScheduleItemCode,this._logExtensionEvent("xit",this._adScheduleItemCode,"AdScheduleItem",this._adScheduleCode,"AdSchedule",u))}if(s.asc=this._adScheduleCode,s.asic=this._adScheduleItemCode,s.vastid=(null===(n=this._adProperties)||void 0===n||null===(a=n.adWrapperAdIds)||void 0===a?void 0:a.length)>0?this._adProperties.adWrapperAdIds.slice(-1).toString():"[unknown]",this._adProperties&&this._adProperties.adPodInfo){if(this._creativeLoggedXit_pi!==this._adProperties.adPodInfo.podIndex){this._creativeLoggedXit_pi=this._adProperties.adPodInfo.podIndex;for(var d=!0===this._adProperties.adPodInfo.isBumper?"true":"false",c=this._adProperties.adPodInfo.maxDuration,h=this._adProperties.adPodInfo.podIndex,p=this._adProperties.adPodInfo.timeOffset,_=this._adProperties.adPodInfo.totalAds,m=0;m<_;m++){var f=m+1,v=this._adProperties.adPodInfo.adPosition==f?s.vastid:"",g=this._constructCreativeId(f,p,this._adScheduleItemCode);this._cuePointTuples["#"+p]||(this._cuePointTuples["#"+p]=[]),this._cuePointTuples["#"+p].push({adPosition:f,creativeId:g}),this._logExtensionEvent("xit",g,"Creative",this._viewId,"View",{at:s.at,ap:s.ap,ar:s.ar,asc:s.asc,asic:s.asic,vastid:v,adp_ap:f,adp_ib:d,adp_md:c,adp_pi:h,adp_to:p,adp_ta:_,sdk:s.sdk})}}}else if(!this._creativeLoggedXit){this._creativeLoggedXit=!0;var y="postroll"===s.ap?-1:(s.ap,0),b="postroll"===s.ap?-1:0;this._creativeId=this._constructCreativeId(t.adType,t.adPosition,this._adScheduleItemCode),this._logExtensionEvent("xit",this._creativeId,"Creative",this._viewId,"View",{at:s.at,ap:s.ap,ar:s.ar,asc:s.asc,asic:s.asic,vastid:s.vastid,adp_ap:1,adp_ib:"false",adp_md:0,adp_pi:y,adp_to:b,adp_ta:1,sdk:s.sdk})}if(this._adProperties&&this._adProperties.adPodInfo){var k=this._adProperties.adPodInfo.adPosition,w=this._adProperties.adPodInfo.timeOffset;if(this._cuePointTuples&&this._cuePointTuples["#"+w])for(var $ in this._cuePointTuples["#"+w]){var C=this._cuePointTuples["#"+w][$];C.adPosition===k&&(this._creativeId=C.creativeId)}}this._logExtensionEvent("xld",this._creativeId,"Creative",this._viewId,"View",s)},r.prototype._onAdScheduleStarted=function(e,t){var i;t=t||{},this._adScheduleStarted=!0;var n={at:t.adType,ap:null===(i=t.adPosition)||void 0===i?void 0:i.toLowerCase(),ar:t.adRequestUrl};null!=this._adProperties&&(n.sdk=this._adProperties.sdk),this._adScheduleCode&&this._logExtensionEvent("xst",this._adScheduleCode,"AdSchedule",this._playerSessionId,"Session",n)},r.prototype._onAdScheduleAdClicked=function(e,t){var i,n,a;void 0!==(t=t||{}).adProperties&&(this._adProperties=t.adProperties);var s={at:t.adType,ap:null===(i=t.adPosition)||void 0===i?void 0:i.toLowerCase()};t.__pretend&&(s.hmm="1"),null!==this._adScheduleCode&&this._logExtensionEvent("xcl",this._adScheduleCode,"AdSchedule",this._playerSessionId,"Session",s),s.asc=this._adScheduleCode,s.asic=this._adScheduleItemCode,s.vastid=(null===(n=this._adProperties)||void 0===n||null===(a=n.adWrapperAdIds)||void 0===a?void 0:a.length)>0?this._adProperties.adWrapperAdIds.slice(-1).toString():"[unknown]",this._logExtensionEvent("xcl",this._creativeId,"Creative",this._viewId,"View",s)},r.prototype._onAdScheduleItemSkipped=function(e,t){var i,n,a;void 0!==(t=t||{}).adProperties?this._adProperties=t.adProperties:this._adProperties=null,this._adScheduleStarted=!1;var s={at:t.adType,ap:null===(i=t.adPosition)||void 0===i?void 0:i.toLowerCase()};null!=this._adProperties&&(void 0!==this._adProperties.adId&&null!=this._adProperties.adId&&(s.adi=this._adProperties.adId),void 0!==this._adProperties.adTitle&&null!=this._adProperties.adTitle&&(s.adt=this._adProperties.adTitle),void 0!==this._adProperties.adSystem&&null!=this._adProperties.adSystem&&(s.ads=this._adProperties.adSystem),void 0!==this._adProperties.adLinear&&null!=this._adProperties.adLinear&&(s.adl=this._adProperties.adLinear),void 0!==this._adProperties.duration&&null!=this._adProperties.duration&&(s.add=this._adProperties.duration),void 0!==this._adProperties.sdk&&null!=this._adProperties.sdk&&(s.sdk=this._adProperties.sdk)),null!=this._adScheduleCode&&(void 0!==t.adScheduleItemCode&&(this._adScheduleItemCode=t.adScheduleItemCode),this._logExtensionEvent("xsk",this._adScheduleItemCode,"AdScheduleItem",this._adScheduleCode,"AdSchedule",s)),s.asc=this._adScheduleCode,s.asic=this._adScheduleItemCode,s.vastid=(null===(n=this._adProperties)||void 0===n||null===(a=n.adWrapperAdIds)||void 0===a?void 0:a.length)>0?this._adProperties.adWrapperAdIds.slice(-1).toString():"[unknown]",this._logExtensionEvent("xsk",this._creativeId,"Creative",this._viewId,"View",s)},r.prototype._onAdScheduleItemNoAd=function(e,t){var i,n,a;void 0!==(t=t||{}).adProperties?this._adProperties=t.adProperties:this._adProperties=null,this._adScheduleStarted=!1;var s={at:t.adType,ap:null===(i=t.adPosition)||void 0===i?void 0:i.toLowerCase(),ar:t.adRequestUrl,aic:t.adBreakItemCount};if(null!=this._adProperties&&(s.why=this._adProperties.errorMessage?(this._adProperties.errorCode?"AdError "+this._adProperties.errorCode+": ":"")+this._adProperties.errorMessage:"No ad found",void 0!==this._adProperties.adId&&null!=this._adProperties.adId&&(s.adi=this._adProperties.adId),void 0!==this._adProperties.adTitle&&null!=this._adProperties.adTitle&&(s.adt=this._adProperties.adTitle),void 0!==this._adProperties.adSystem&&null!=this._adProperties.adSystem&&(s.ads=this._adProperties.adSystem),void 0!==this._adProperties.adLinear&&null!=this._adProperties.adLinear&&(s.adl=this._adProperties.adLinear),void 0!==this._adProperties.duration&&null!=this._adProperties.duration&&(s.add=this._adProperties.duration),void 0!==this._adProperties.sdk&&null!=this._adProperties.sdk&&(s.sdk=this._adProperties.sdk)),t.timeout&&(s.why="timeout after "+t.timeout/1e3+"s"),void 0!==t.adScheduleItemCode&&(this._adScheduleItemCode=t.adScheduleItemCode),this._adScheduleCode&&this._adScheduleItemCode){var o,r,l,u={at:t.adType,ap:null===(o=t.adPosition)||void 0===o?void 0:o.toLowerCase(),ar:t.adRequestUrl,aic:t.adBreakItemCount};null!=this._adProperties&&(u.sdk=this._adProperties.sdk),u.adp_ta=(null===(r=this._adProperties)||void 0===r||null===(l=r.adPodInfo)||void 0===l?void 0:l.totalAds)||1,this._adScheduleItemCode!==this._adScheduleItemCodeLoggedXit&&(this._adScheduleItemCodeLoggedXit=this._adScheduleItemCode,this._logExtensionEvent("xit",this._adScheduleItemCode,"AdScheduleItem",this._adScheduleCode,"AdSchedule",u))}if(null!=this._adScheduleCode&&(void 0!==t.adScheduleItemCode&&(this._adScheduleItemCode=t.adScheduleItemCode),this._logExtensionEvent("xpf",this._adScheduleItemCode,"AdScheduleItem",this._adScheduleCode,"AdSchedule",s)),s.asc=this._adScheduleCode,s.asic=this._adScheduleItemCode,s.vastid=(null===(n=this._adProperties)||void 0===n||null===(a=n.adWrapperAdIds)||void 0===a?void 0:a.length)>0?this._adProperties.adWrapperAdIds.slice(-1).toString():"[unknown]",null===this._creativeId&&(this._creativeId=this._constructCreativeId(t.adType,t.adPosition,this._adScheduleItemCode)),this._adProperties&&this._adProperties.adPodInfo);else if(!this._creativeLoggedXit){this._creativeLoggedXit=!0;var d="postroll"===s.ap?-1:(s.ap,0),c="postroll"===s.ap?-1:0;this._logExtensionEvent("xit",this._creativeId,"Creative",this._viewId,"View",{at:s.at,ap:s.ap,ar:s.ar,asc:s.asc,asic:s.asic,vastid:s.vastid,adp_ap:1,adp_ib:"false",adp_md:0,adp_pi:d,adp_to:c,adp_ta:1,sdk:s.sdk})}this._logExtensionEvent("xpf",this._creativeId,"Creative",this._viewId,"View",s)},r.prototype._onAdScheduleItemFailed=function(e,t){var i,n,a;void 0!==(t=t||{}).adProperties?this._adProperties=t.adProperties:this._adProperties=null,this._adScheduleStarted=!1;var s={at:t.adType,ap:null===(i=t.adPosition)||void 0===i?void 0:i.toLowerCase(),ar:t.adRequestUrl};if(null!=this._adProperties&&(s.why=this._adProperties.errorMessage?(this._adProperties.errorCode?"AdError "+this._adProperties.errorCode+": ":"")+this._adProperties.errorMessage:"Ad system failed",void 0!==this._adProperties.adId&&null!=this._adProperties.adId&&(s.adi=this._adProperties.adId),void 0!==this._adProperties.adTitle&&null!=this._adProperties.adTitle&&(s.adt=this._adProperties.adTitle),void 0!==this._adProperties.adSystem&&null!=this._adProperties.adSystem&&(s.ads=this._adProperties.adSystem),void 0!==this._adProperties.adLinear&&null!=this._adProperties.adLinear&&(s.adl=this._adProperties.adLinear),void 0!==this._adProperties.duration&&null!=this._adProperties.duration&&(s.add=this._adProperties.duration)),null!=this._adScheduleCode&&(void 0!==t.adScheduleItemCode&&(this._adScheduleItemCode=t.adScheduleItemCode),this._logExtensionEvent("xpf",this._adScheduleItemCode,"AdScheduleItem",this._adScheduleCode,"AdSchedule",s)),s.asc=this._adScheduleCode,s.asic=this._adScheduleItemCode,s.vastid=(null===(n=this._adProperties)||void 0===n||null===(a=n.adWrapperAdIds)||void 0===a?void 0:a.length)>0?this._adProperties.adWrapperAdIds.slice(-1).toString():"[unknown]",null===this._creativeId&&(this._creativeId=this._constructCreativeId(t.adType,t.adPosition,this._adScheduleItemCode)),this._adProperties&&this._adProperties.adPodInfo);else if(!this._creativeLoggedXit){this._creativeLoggedXit=!0;var o="postroll"===s.ap?-1:(s.ap,0),r="postroll"===s.ap?-1:0;this._logExtensionEvent("xit",this._creativeId,"Creative",this._viewId,"View",{at:s.at,ap:s.ap,ar:s.ar,asc:s.asc,asic:s.asic,vastid:s.vastid,adp_ap:1,adp_ib:"false",adp_md:0,adp_pi:o,adp_to:r,adp_ta:1,sdk:s.sdk})}this._logExtensionEvent("xpf",this._creativeId,"Creative",this._viewId,"View",s)},r.prototype._onAdScheduleFinished=function(e,t){var i;t=t||{},this._adScheduleStarted=!1;var n={at:t.adType,ap:null===(i=t.adPosition)||void 0===i?void 0:i.toLowerCase(),ar:t.adRequestUrl};this._adScheduleCode&&this._logExtensionEvent("xfn",this._adScheduleCode,"AdSchedule",this._playerSessionId,"Session",n)},r.prototype._onAdScheduleAdQuartile=function(e,t){var i,n,a;void 0!==(t=t||{}).adProperties&&(this._adProperties=t.adProperties);var s=25*t.quartile,o={at:t.adType,ap:null===(i=t.adPosition)||void 0===i?void 0:i.toLowerCase(),pct:s};switch(o.asc=this._adScheduleCode,o.asic=this._adScheduleItemCode,o.vastid=(null===(n=this._adProperties)||void 0===n||null===(a=n.adWrapperAdIds)||void 0===a?void 0:a.length)>0?this._adProperties.adWrapperAdIds.slice(-1).toString():"[unknown]",parseInt(t.quartile)){case 0:this._logExtensionEvent("xst",this._creativeId,"Creative",this._viewId,"View",o);break;case 4:this._logExtensionEvent("xfn",this._creativeId,"Creative",this._viewId,"View",o);break;default:this._logExtensionEvent("xpg",this._creativeId,"Creative",this._viewId,"View",o)}},r.prototype._getCommercialTimeOffset=function(){return this._commercialCurrentTime||(this._commercialCurrentTime=0),Math.round(1e3*parseFloat(this._commercialCurrentTime))},r.prototype._onCommercialTimeUpdate=function(e,t){t&&!isNaN(parseFloat(t.currentTime))&&t.currentTime>=0&&(this._commercialCurrentTime=t.currentTime)},r.prototype._onCommercialPaused=function(e){this._commercialPaused=!0,this._logExtensionEvent("xpa",this._creativeId,"Creative",this._viewId,"View",{to:this._getCommercialTimeOffset()})},r.prototype._onCommercialPlaying=function(e){this._commercialPaused&&(this._commercialPaused=!1,this._logExtensionEvent("xrs",this._creativeId,"Creative",this._viewId,"View",{to:this._getCommercialTimeOffset()}))},r.prototype._onViewStarted=function(e,t){this._determineReferrer();var i=this._playout?this._playout.name:"default";if(!this._playerSessionStartLogged){this._playerSessionStartLogged=!0;var n={xu:this._referrer,xr:this._realReferrer,pt:i};void 0!==this._playout&&null!=this._playout&&(n.aup="true"==this._playout.autoPlay||!0===this._playout.autoPlay?"1":"0",n.aum="true"==this._playout.autoMute||!0===this._playout.autoMute?"1":"0",n.aul="true"===this._playout.autoLoop||!0===this._playout.autoLoop||"true"===this._playout.autoLoopClip||!0===this._playout.autoLoopClip?"1":"0"),this._logExtensionEvent("xst",this._playerSessionId,"Session",null,null,n)}null!=this._viewId&&this._onViewFinished(e),this._viewId=this._generateSessionId(),this._projectXSTLogged||null==this._projectId||(this._logExtensionEvent("xst",this._projectId,"Project",this._viewId,"View",null),this._projectXSTLogged=!0);var a={fs:this._fullScreen?"1":"0",xu:this._referrer,xr:this._realReferrer,pt:i};if(void 0!==(null==t?void 0:t.initiator)&&null!=(null==t?void 0:t.initiator)){var s,o=t.initiator.split("/");o.length>0&&(a.iet=o[0]),o.length>1&&(a.iid=o[1]),null!=this._prevViewId&&(a.pvid=this._prevViewId),null!=this._prevClipId&&(a.pcid=this._prevClipId),(null===(s=a.iet)||void 0===s?void 0:s.match(/^Channel/i))&&void 0!==a.iid&&(this._channelId=a.iid)}null!=this._asset&&(void 0!==this._asset["language-id"]&&(a.ali=this._asset["language-id"]),void 0!==this._asset["language-isocode"]&&(a.alc=this._asset["language-isocode"]),void 0!==this._asset.mediatype&&(a.amt=r._simplifyAmt(this._asset.mediatype))),null!=this._mediaClip&&void 0!==this._mediaClip.usetype&&(a.ut=this._mediaClip.usetype),this._logExtensionEvent("xst",this._viewId,"View",this._playerSessionId,"Session",a)},r.prototype._onViewFinished=function(e){null!=this._timer&&(clearInterval(this._timer),this._timer=null),this._logExtensionEvent("xfn",this._viewId,"View",this._playerSessionId,"Session",{fs:this._fullScreen?"1":"0"}),this._prevViewId=this._viewId,this._viewId=null},r.prototype._onApiCalled=function(e,t){var i={};switch(t.method){case"setMuted":t.userAction?i.api=t.muted?"mute_ua":"unmute_ua":i.api=t.muted?"mute":"unmute";break;case"setAsset":i.api=t.method,i.ap0=t.quality||"unknown";break;default:i.api=t.method}(null!==this._viewId||this._playerSessionId)&&this._logExtensionEvent("xac",this._viewId,"View",this._playerSessionId,"Session",i),this._adSystemStarted&&null!==this._creativeId&&this._logExtensionEvent("xac",this._creativeId,"Creative",this._viewId,"View",i)},r.prototype._onDvidChanged=function(e,t){t&&t.dvid?this._dvid=t.dvid:this._dvid=null},r.prototype._onMovingThumbnailStarted=function(){this._mediaClip&&this._logExtensionEvent("xmt",this._playerSessionId,"Session",null,null,null)},r.prototype._generateSessionId=function(){for(var e="",t=void 0!==this._mediaClip&&null!=this._mediaClip?this._mediaClip.id:0,i=new Date,n=a.SHA1(this._uuid+"/"+t+"/"+i.getTime()),s=0;s<n.length/6&&!(s>=3);s++)for(var o=parseInt("0x"+n.substr(6*s,6),16),r=0;r<4;r++)e+=this._jk64(o%64),o/=64;return e},r.prototype._constructCreativeId=function(e,t,i){for(var n="",s=a.SHA1(e+"/"+t+"/"+i),o=0;o<s.length/6&&!(o>=3);o++)for(var r=parseInt("0x"+s.substr(6*o,6),16),l=0;l<4;l++)n+=this._jk64(r%64),r/=64;return n},r.prototype._jk64=function(e){return e<10?String.fromCharCode(e+48):e<36?String.fromCharCode(e+55):e<62?String.fromCharCode(e+61):e<64?String.fromCharCode(e-7):""},r.prototype._logMediaClipEvent=function(e,t){if(!this._noStats_content&&null!=this._mediaClip){var i={},n=new Date;if(i.vu=this._uuid,i.pm=this._playMode,i.sid=this._sessionId,i.prid=this._projectId||(this._mediaClip||{}).projectId||"",i.ts=n.getTime()+this._tsOffset++,i.pp=void 0!==this._playout&&null!=this._playout?this._playout.publication:"__root__",i.pt=void 0!==this._playout&&null!=this._playout?this._playout.name:"default",i.pv="6.x",i.ev=e,i.id=this._mediaClip.id,i.ct=this._mediaClip.title,i.pd=this._mediaClip.publisheddate,i.vs="n/a",i.rs=screen.width+"x"+screen.height,window.devicePixelRatio>1&&(i.rs+=" (x".concat(window.devicePixelRatio.toFixed(2),")")),i.fs=this._fullScreen?"1":"0",void 0!==this._mediaClip.mediatype&&(i.mt=this._mediaClip.mediatype),void 0!==this._mediaClip.mediatype_override&&(i.mt=this._mediaClip.mediatype_override),(void 0===this._mediaClip.length||isNaN(parseFloat(this._mediaClip.length))||parseFloat(this._mediaClip.length)<=0)&&"live"!==this._mediaClip.sourcetype&&(this._mediaClip.length=this._duration),void 0!==this._mediaClip.length&&(i.du=Math.round(1e3*this._mediaClip.length)),void 0!==this._mediaClip.sourcetype&&(i.sot=this._mediaClip.sourcetype),this._dvid&&(i.dvid=this._dvid),this._context&&i.prid&&(i.ctx=this._context),void 0!==this._channelId&&null!=this._channelId&&(i.chid=this._channelId),"MediaClipList"===this._contextEntityType&&this._contextEntityId&&(i.clid=this._contextEntityId),void 0!==t&&null!=t)for(var a in t)void 0===i[a]&&(i[a]=t[a]);"ss"===e?this._logSsEventDebounced(i):"se"===e?this._logSeEventDebounced(i):"rs"===e?this._logRsEventDebounced(i):this._logEvent(i)}},r.prototype._logExtensionEvent=function(e,t,i,n,a,s){var o="Creative"===i||"AdUnit"===i||"LineItem"===i||"AdSchedule"===i||"AdScheduleItem"===i;if(!(o&&this._noStats_commercial||!o&&this._noStats_content)){var r={},l=new Date;if(r.pm=o?this._commercialPlayMode:this._playMode,r.sid=this._sessionId,r.prid=this._projectId||(this._mediaClip||{}).projectId||"",r.ts=l.getTime()+this._tsOffset++,r.pp=void 0!==this._playout&&null!=this._playout?this._playout.publication:"__root__",r.ev=e,r.id=t,r.et=i,r.cid=null!=this._mediaClip?this._mediaClip.id:"",void 0!==n&&null!=n&&(r.pid=n),void 0!==a&&null!=a&&(r.pet=a),void 0!==this._adBlockDetected&&(r.abd=this._adBlockDetected),this._context&&r.prid&&(r.ctx=this._context),void 0!==this._channelId&&null!=this._channelId&&(r.chid=this._channelId),"MediaClipList"===this._contextEntityType&&this._contextEntityId&&(r.clid=this._contextEntityId),void 0!==s&&null!=s)for(var u in s)void 0===r[u]&&(r[u]=s[u]);(o||"xst"===e&&"View"===i)&&this._topMostHostname&&(r.hn=this._topMostHostname),this._logEvent(r)}},r.prototype._logErrorEvent=function(e,t){var i=!1;null==this._mediaClip&&(this._mediaClip={id:0,title:"<unknown>",date:{published:"<unknown>"},projectId:0},i=!0),this._logMediaClipEvent(e,t),i&&(this._mediaClip=null)},r.prototype._logEvent=function(e){this._outstreamMode&&"pg"===(null==e?void 0:e.ev)||(e.sn=e.sn||++this._serialNumber,this._enabled?this._logEventBundling&&this._logEventQueueProcessingLock?this._logEventQueue.push(e):this._logEvent_enabled(e):this._enabledQueue.push({properties:e}))},r.prototype._constructLogLineQuerystring=function(e){var t="";for(var i in e){0==t.length?t+="?":t+="&";var n=e[i];null==n&&(n=""),Array.isArray(n)&&(n=JSON.stringify(n)),t+=i+"="+encodeURIComponent(n)}return t=(t=(t=(t=(t=t.replace(/-/g,"%2d")).replace("~~00~~","%7E%7E00%7E%7E").replace(/ad/g,"~~00~~")).replace("~~01~~","%7E%7E01%7E%7E").replace(/aD/g,"~~01~~")).replace("~~02~~","%7E%7E02%7E%7E").replace(/Ad/g,"~~02~~")).replace("~~03~~","%7E%7E03%7E%7E").replace(/AD/g,"~~03~~")},r.prototype._addLogEventToQueue=function(e){var t=this._constructLogLineQuerystring(e);if(e.logQs=t,0===this._logEventQueue.length){var i=this;this._logEventQueue.push(e),null!==this._logEventQueueProcessingTimeout&&(clearTimeout(this._logEventQueueProcessingTimeout),this._logEventQueueProcessingTimeout=null),this._logEventQueueProcessingTimeout=setTimeout((function(){i._processEventQueue()}),50)}else this._logEventQueue.push(e)},r.prototype._processEventQueue=function(){for(null!==this._logEventQueueProcessingTimeout&&(clearTimeout(this._logEventQueueProcessingTimeout),this._logEventQueueProcessingTimeout=null),this._logEventQueueProcessingLock=!0;this._logEventQueue.length;){var e=this._logEventQueue.shift();if(this._logEventQueue.length){var t=this._logEventQueue[0],i={};for(var n in e)if("logQs"!==n){var a=Array.isArray(e[n])?e[n]:[e[n]];if(void 0!==t[n]){var s=a.slice().reverse().find((function(e){return"<-"!==e}));t[n]===s?i[n]="<-"===s?a.concat("\\<\\-"):a.concat("<-"):i[n]=a.concat(t[n])}else i[n]=a.concat(null)}for(var o in t)if(void 0===e[o]){var r=Array.isArray(t[o])?t[o]:[t[o]],l=Array.isArray(e.pp)?e.pp.length:1;i[o]=new Array(l).fill(null).concat(r)}if(i.logQs=this._constructLogLineQuerystring(i),(this._loggerUrl+i.logQs).length>1750){this._logEvent_enabled(e);continue}this._logEventQueue[0]=i}else this._logEvent_enabled(e)}this._logEventQueueProcessingLock=!1},r.prototype._logEvent_enabled=function(e){var t,i;if("function"!=typeof(null===(t=window.bbCustomStatistics)||void 0===t?void 0:t.send)||e.logQs||null===(i=window.bbCustomStatistics)||void 0===i||i.send(this._playerSessionId,e.ev,Object.assign({},e)),!this._logEventBundling||this._logEventQueueProcessingLock){var a=e.logQs||this._constructLogLineQuerystring(e),s=this._loggerUrl,o=new Image(1,1),r=0;o.onerror=function(t){n.default("[BlueBillywigStatisticsLogger] ERROR -> retrying sn "+e.sn),r<3&&(o.src=s+a,r++)},o.src=s+a,"function"==typeof window.bbJsLog&&window.bbJsLog(a)}else this._addLogEventToQueue(e)}})),parcelRequire.register("aNQGs",(function(e,t){function i(e,t,i){var n;return function(){var a=this,s=arguments,o=function(){n=null,i||e.apply(a,s)},r=i&&!n;clearTimeout(n),n=setTimeout(o,t),r&&e.apply(a,s)}}$parcel$export(e.exports,"default",(function(){return i}))})),parcelRequire.register("h33Eq",(function(e,t){
/*!
Math.uuid.js (v1.4)
http://www.broofa.com
mailto:robert@broofa.com

Copyright (c) 2010 Robert Kieffer
Dual licensed under the MIT and GPL licenses.
*/
var i;i="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),Math.uuid=function(e,t){var n,a,s=i,o=[];if(t=t||s.length,e)for(n=0;n<e;n++)o[n]=s[0|Math.random()*t];else for(o[8]=o[13]=o[18]=o[23]="-",o[14]="4",n=0;n<36;n++)o[n]||(a=0|16*Math.random(),o[n]=s[19==n?3&a|8:a]);return o.join("")},Math.uuidFast=function(){for(var e,t=i,n=new Array(36),a=0,s=0;s<36;s++)8==s||13==s||18==s||23==s?n[s]="-":14==s?n[s]="4":(a<=2&&(a=33554432+16777216*Math.random()|0),e=15&a,a>>=4,n[s]=t[19==s?3&e|8:e]);return n.join("")},Math.uuidCompact=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}))}})),parcelRequire.register("1TGgJ",(function(e,t){$parcel$export(e.exports,"default",(function(){return r}));var i=parcelRequire("3DsR2");parcelRequire("6JR1F");var n=parcelRequire("hGJI5"),a=parcelRequire("e06N2"),s=parcelRequire("cYwG5"),o=parcelRequire("gDCxw"),r=function(e,t){var a;(this._opts=t,this._sdkURL="https://www.googletagmanager.com/gtag/js?id=TAG_ID",this._sdkLoaded=!1,this._mediaClip=null,this._referrer=null,this._realReferrer=null,this._startedClipId=null,this._playerSessionId=null,this._playerSessionStartLogged=!1,this._viewId=null,this._projectId=null,this._projectTitle=null,this._projectXSTLogged=!1,this._timer=null,this._quartile=-1,this._deciles={},this._duration=0,this._queue=[],this._enabled=!1,this._enabledQueue=[],this._gaId=null,this._gtag=null,this._detections=i.default.getService(this._opts.playerAliasOrId).getInstance("Detections"),this._playerSessionId=this._generateSessionId(),this._determineReferrer(),null!=this._opts&&void 0!==this._opts.playoutData)&&(this._playout=this._opts.playoutData,null!=this._playout&&void 0!==this._playout.googleAnalyticsId&&""!=this._playout.googleAnalyticsId&&(this._gaId=$parcel$interopDefault(n).trim(this._playout.googleAnalyticsId)),null==this._playout||"true"!=this._playout.disableCookies&&"tracking"!=this._playout.disableCookies||this._gaId&&(window["ga-disable-"+this._gaId]=!0),this._logProgressAsQuartiles=!("true"!==(null===(a=this._playout)||void 0===a?void 0:a.logProgressAsQuartiles)));this._onEventBound=this._onEvent.bind(this),this.$element=null,void 0!==e&&null!=e&&(this.$element=e,null!=this._gaId&&(this.$element.on("bb_playout_changed",this._onEventBound),this.$element.on("bb_project_loaded",this._onEventBound),this.$element.on("bb_mediaclip_loaded",this._onEventBound),this.$element.on("bb_media_duration_change",this._onEventBound),this.$element.on("bb_media_started",this._onEventBound),this.$element.on("bb_media_finished",this._onEventBound),this.$element.on("bb_media_paused",this._onEventBound),this.$element.on("bb_media_resumed",this._onEventBound),this.$element.on("bb_media_seeked",this._onEventBound),this.$element.on("bb_view_started",this._onEventBound),this.$element.on("bb_view_finished",this._onEventBound),this.$element.on("bb_widget_custom_analytics",this._onEventBound),void 0!==window.ga&&(this._sdkLoaded=!0),this._loadSDK(this._loadSDK_callback.bind(this))))};r.prototype.exit=function(){null!=this.$element&&(this.$element.off("bb_playout_changed",this._onEventBound),this.$element.off("bb_project_loaded",this._onEventBound),this.$element.off("bb_mediaclip_loaded",this._onEventBound),this.$element.off("bb_media_duration_change",this._onEventBound),this.$element.off("bb_media_started",this._onEventBound),this.$element.off("bb_media_finished",this._onEventBound),this.$element.off("bb_media_paused",this._onEventBound),this.$element.off("bb_media_resumed",this._onEventBound),this.$element.off("bb_media_seeked",this._onEventBound),this.$element.off("bb_view_started",this._onEventBound),this.$element.off("bb_view_finished",this._onEventBound),this.$element.off("bb_widget_custom_analytics",this._onEventBound))},r.prototype.enable=function(){for(this._enabled=!0;this._enabledQueue.length>0;){var e=this._enabledQueue.shift();this._logMediaClipEvent_enabled(e.ev,e.aux)}},r.prototype.disable=function(){this._enabled=!1},r.prototype.handleAutoPause=function(){for(var e=0;e<this._enabledQueue.length;){var t=this._enabledQueue[e]||{};t.aux&&"Session"===t.aux.et||"it"===t.ev?(this._enabledQueue.splice(e,1),this._logMediaClipEvent_enabled(t.ev,t.aux)):e++}},r.prototype._onEvent=function(e,t){if(this._ready)switch(e.type){case"bb_playout_changed":this._onPlayoutChanged(e,t);break;case"bb_project_loaded":this._onProjectDataLoaded(e,t);break;case"bb_mediaclip_loaded":this._onClipDataLoaded(e,t);break;case"bb_media_duration_change":this._onDurationChange(e,t);break;case"bb_media_started":this._onMediaStarted(e,t);break;case"bb_media_finished":this._onMediaFinished(e,t);break;case"bb_media_paused":this._onMediaPaused(e,t);break;case"bb_media_resumed":this._onMediaResumed(e,t);break;case"bb_media_seeked":this._onMediaSeeked(e,t);break;case"bb_view_started":this._onViewStarted(e,t);break;case"bb_view_finished":this._onViewFinished(e,t);break;case"bb_widget_custom_analytics":this._onWidgetCustomAnalytics(e,t)}else this._queue.push({ev:e,payload:t})},r.prototype._loadSDK=function(e){if(this._sdkLoaded)"function"==typeof e&&e(!0);else{var t=this,i=this._sdkURL.replace("TAG_ID",encodeURIComponent(this._gaId));s.fetchScript(i,{async:!0}).then((function(n){a.default("[GAStatisticsLogger] loaded sdk ("+i+")"),t._sdkLoaded=!0,"function"==typeof e&&e(!0)})).catch((function(t){a.default("[GAStatisticsLogger] failed to load sdk ("+i+")"),"function"==typeof e&&e(!1)}))}return!0},r.prototype._loadSDK_callback=function(e){if(e){window.dataLayer=window.dataLayer||[],this._gtag=function(){window.dataLayer.push(arguments)},this._gtag("js",new Date);for(this._gtag("config",this._gaId,{vendor:"bluebillywig",cookie_flags:"SameSite=None; Secure",anonymize_ip:!0}),this._ready=!0;this._queue.length>0;){var t=this._queue.shift();this._onEvent(t.ev,t.payload)}}else this.$element.trigger("bb_warning",[{msg:"Google Analytics SDK failed to load"}])},r.prototype._generateSessionId=function(){for(var e="",t=void 0!==this._mediaClip&&null!=this._mediaClip?this._mediaClip.id:0,i=new Date,n=o.SHA1(this._uuid+"/"+t+"/"+i.getTime()),a=0;a<n.length/6&&!(a>=3);a++)for(var s=parseInt("0x"+n.substr(6*a,6),16),r=0;r<4;r++)e+=this._jk64(s%64),s/=64;return e},r.prototype._jk64=function(e){return e<10?String.fromCharCode(e+48):e<36?String.fromCharCode(e+55):e<62?String.fromCharCode(e+61):e<64?String.fromCharCode(e-7):""},r.prototype._getSessionAux=function(){this._determineReferrer();var e=this._playout?this._playout.name:"default",t={xu:this._referrer,xr:this._realReferrer,pt:e};return this._playout&&(t.aup="true"===this._playout.autoPlay||!0===this._playout.autoPlay?"1":"0",t.aum="true"===this._playout.autoMute||!0===this._playout.autoMute?"1":"0",t.aul="true"===this._playout.autoLoop||!0===this._playout.autoLoop||"true"===this._playout.autoLoopClip||!0===this._playout.autoLoopClip?"1":"0"),t},r.prototype._onPlayoutChanged=function(e,t){t&&t.playoutData&&void 0!==t.playoutData.logProgressAsQuartiles&&(this._logProgressAsQuartiles=!("true"!==t.playoutData.logProgressAsQuartiles))},r.prototype._onProjectDataLoaded=function(e,t){if(this._projectId=null,this._projectTitle=null,this._projectXSTLogged=!1,this._sessionId=this._generateSessionId(),this._serialNumber=0,null==this._mediaClip||this._mediaClip_initial||(this._prevClipId=this._mediaClip.id),t&&t.projectData){this._projectId=t.projectData.id,this._projectTitle=t.projectData.title,this._mediaClip={id:"",title:"<unknown>",date:{published:"<unknown>"},projectId:this._projectId},this._mediaClip_initial=!1,this._quartile=-1,this._deciles={},this._duration=0;var i=this._getSessionAux();this._playerSessionStartLogged||(this._playerSessionStartLogged=!0,this._logExtensionEvent("xst",this._playerSessionId,"Session",null,null,i)),i.entityTitle=this._projectTitle,this._logExtensionEvent("xit",this._projectId,"Project",this._playerSessionId,"Session",i)}},r.prototype._onClipDataLoaded=function(e,t){if(this._mediaClip=null,this._quartile=-1,this._deciles={},this._duration=0,t&&void 0!==t.clipData){if(this._mediaClip=t.clipData,null!=this._mediaClip){this._projectId&&(this._mediaClip.projectId=this._projectId),this._legacyEventLabel=this._mediaClip.id+" - "+this._mediaClip.title;var i={custom_map:{dimension1:"clip id",dimension2:"clip title",dimension3:"clip duration",dimension4:"clip source type",dimension5:"clip creation date"}};if(this._customParams={"clip id":this._mediaClip.id,"clip title":this._mediaClip.title,"clip duration":1e3*this._mediaClip.length,"clip source type":this._mediaClip.sourcetype,"clip creation date":this._mediaClip.createddate},void 0===this._playout.googleAnalytics_customVars&&(this._playout.googleAnalytics_customVars="contenttype"),this._playout.googleAnalytics_customVars)for(var n="object"!=typeof this._playout.googleAnalytics_customVars?this._playout.googleAnalytics_customVars.split(","):this._playout.googleAnalytics_customVars,a=0;a<n.length&&a<15;a++)void 0!==this._mediaClip[n[a]]&&(i.custom_map["dimension"+(a+6)]=n[a],this._customParams[n[a]]=this._mediaClip[n[a]]);i.send_page_view=!1,this._gtag("config",this._gaId,i),this._duration=this._mediaClip.length>0?parseFloat(this._mediaClip.length):0}if(!this._playerSessionStartLogged){this._playerSessionStartLogged=!0;var s=this._getSessionAux();this._logExtensionEvent("xst",this._playerSessionId,"Session",null,null,s)}this._logMediaClipEvent("it",{to:0})}},r.prototype._onDurationChange=function(e,t){void 0!==t&&void 0!==t.duration&&(this._duration=parseFloat(t.duration))},r.prototype._onViewStarted=function(e,t){this._determineReferrer();var i=this._playout?this._playout.name:"default";if(!this._playerSessionStartLogged){this._playerSessionStartLogged=!0;var n=this._getSessionAux();this._logExtensionEvent("xst",this._playerSessionId,"Session",null,null,n)}null!=this._viewId&&this._onViewFinished(e),this._viewId=this._generateSessionId(),this._projectXSTLogged||null==this._projectId||(this._logExtensionEvent("xst",this._projectId,"Project",this._viewId,"View",{entityTitle:this._projectTitle}),this._projectXSTLogged=!0);var a={fs:this._fullScreen?"1":"0",xu:this._referrer,xr:this._realReferrer,pt:i};if(void 0!==t.initiator&&null!=t.initiator){var s=t.initiator.split("/");s.length>0&&(a.iet=s[0]),s.length>1&&(a.iid=s[1]),null!=this._prevViewId&&(a.pvid=this._prevViewId),null!=this._prevClipId&&(a.pcid=this._prevClipId)}null!=this._asset&&(void 0!==this._asset["language-id"]&&(a.ali=this._asset["language-id"]),void 0!==this._asset["language-isocode"]&&(a.alc=this._asset["language-isocode"])),null!=this._mediaClip&&void 0!==this._mediaClip.usetype&&(a.ut=this._mediaClip.usetype)},r.prototype._onViewFinished=function(e){null!=this._timer&&(clearInterval(this._timer),this._timer=null),this._prevViewId=this._viewId,this._viewId=null},r.prototype._onMediaStarted=function(e){if(this._mediaClip&&this._mediaClip.id===this._startedClipId&&this._logMediaClipEvent("rp",{to:0}),this._mediaClip&&(this._startedClipId=this._mediaClip.id),this._deciles={},this._logMediaClipEvent("st",{to:0}),null!=this._timer&&(clearInterval(this._timer),this._timer=null),this._duration>0){var t=this;this._timer=setInterval((function(){t._handleTimerTick()}),50*this._duration)}this._projectXSTLogged||null==this._projectId||(this._logExtensionEvent("xst",this._projectId,"Project",this._viewId,"View",{entityTitle:this._projectTitle}),this._projectXSTLogged=!0)},r.prototype._onMediaFinished=function(e){var t=Math.round(1e3*this.$element.attr("data-currentTime"));if(this._logMediaClipEvent("fn",{to:t}),this._logProgressAsQuartiles)for(;this._quartile<4;){this._quartile++;var i=25*this._quartile;this._logMediaClipEvent("pg",{pct:i})}null!=this._timer&&(clearInterval(this._timer),this._timer=null),this._handleTimerTick()},r.prototype._onMediaPaused=function(e){var t=Math.round(1e3*this.$element.attr("data-currentTime"));this._logMediaClipEvent("pa",{to:t}),null!=this._timer&&(clearInterval(this._timer),this._timer=null),this._handleTimerTick()},r.prototype._onMediaResumed=function(e){var t=Math.round(1e3*this.$element.attr("data-currentTime"));if(this._logMediaClipEvent("rs",{to:t}),null!=this._timer&&(clearInterval(this._timer),this._timer=null),this._duration>0){var i=this;this._timer=setInterval((function(){i._handleTimerTick()}),50*this._duration)}},r.prototype._onMediaSeeked=function(e,t){var i=Math.round(1e3*(t?parseFloat(t.seekedPosition):this.$element.attr("data-currentTime")));this._logMediaClipEvent("se",{to:i})},r.prototype._onWidgetCustomAnalytics=function(e,t){t&&void 0!==t.entityId&&void 0!==t.timelineId&&this._logExtensionEvent("xsl",t.entityId,"Widget",t.timelineId,"Timeline",{cs:t.data})},r.prototype._handleTimerTick=function(){var e=this.$element.attr("data-currentTime");if(e>0&&this._duration>0)if(e=Math.min(e,this._duration),this._logProgressAsQuartiles)for(var t=Math.floor(4*e/this._duration);this._quartile<t;){this._quartile++;var i=25*this._quartile;this._logMediaClipEvent("pg",{pct:i})}else{for(var n=Math.floor(10*e/this._duration),a=1;a<n;a++)this._deciles["#"+a]||(this._deciles["#"+a]=!0,this._logMediaClipEvent("pg",{pct:10*a}));this._deciles["#"+n]||(this._deciles["#"+n]=!0,this._logMediaClipEvent("pg",{pct:10*n}))}},r.prototype._determineReferrer=function(){var e,t;this._referrer=(null===(e=this._detections)||void 0===e?void 0:e.location)||window.location.href,this._realReferrer=(null===(t=this._detections)||void 0===t?void 0:t.referrer)||document.referrer},r.prototype._logExtensionEvent=function(e,t,i,n,a,s){void 0===(s=s||{}).id&&(s.id=t),void 0===s.et&&(s.et=i),void 0===s.pid&&(s.pid=n),void 0===s.pet&&(s.pet=a),this._logMediaClipEvent(e,s)},r.prototype._logMediaClipEvent=function(e,t){this._enabled?this._logMediaClipEvent_enabled(e,t):this._enabledQueue.push({ev:e,aux:t})},r.prototype._logMediaClipEvent_enabled=function(e,t){var i=this._mediaClip&&"audio"==this._mediaClip.mediatype?"Audio":"Video",n=null,a=this._legacyEventLabel||"",s=void 0;switch(e){case"it":n="Init",s={nonInteraction:!0};break;case"st":n="Play";break;case"fn":n="Finish";break;case"pa":case"rs":case"se":break;case"rp":n="Replay";break;case"pg":t.pct&&(n="Progress_"+Math.floor(t.pct));break;case"xsl":n="Custom",t&&t.cs&&(a=t.cs);break;case"xit":n="_Init",t&&t.et&&(n=t.et+n,a=t.id+" - "+(t.entityTitle||""));break;case"xst":n="_Start",t&&t.et&&(n=t.et+n,a=t.id+" - "+(t.entityTitle||""));break;case"xfn":n="_Finish",t&&t.et&&(n=t.et+n,a=t.id+" - "+(t.entityTitle||""))}if(null!=n){var o=Object.assign({},this._customParams);o.event_category=i,o.event_label=a,o.value=s;try{this._gtag("event",n,o)}catch(e){this.$element.trigger("bb_warning",[{msg:"Google Analytics SDK exception"}])}}}})),parcelRequire.register("kPv1B",(function(e,t){$parcel$export(e.exports,"default",(function(){return s})),parcelRequire("6JR1F");var i=parcelRequire("hGJI5"),n=parcelRequire("e06N2"),a=parcelRequire("cYwG5"),s=function(e,t){var n;(this._opts=t,this._sdkURL="https://www.googletagmanager.com/gtm.js?id=TAG_ID",this._sdkLoaded=!1,this._mediaClip=null,this._startedClipId=null,this._timer=null,this._quartile=-1,this._deciles={},this._duration=0,this._queue=[],this._enabled=!1,this._enabledQueue=[],this._gtmId=null,this._gtm=null,this._opts.playoutData)&&(this._playout=this._opts.playoutData,this._playout&&void 0!==this._playout.googleTagManagerId&&""!=this._playout.googleTagManagerId&&(this._gtmId=$parcel$interopDefault(i).trim(this._playout.googleTagManagerId)),!this._playout||"true"!==this._playout.disableCookies&&"tracking"!==this._playout.disableCookies||this._gtmId&&(window["gtm-disable-"+this._gtmId]=!0),this._logProgressAsQuartiles=!("true"!==(null===(n=this._playout)||void 0===n?void 0:n.logProgressAsQuartiles)));this._onEventBound=this._onEvent.bind(this),this.$element=null,void 0!==e&&null!=e&&(this.$element=e,null!=this._gtmId&&(this.$element.on("bb_playout_changed",this._onEventBound),this.$element.on("bb_mediaclip_loaded",this._onEventBound),this.$element.on("bb_media_duration_change",this._onEventBound),this.$element.on("bb_media_started",this._onEventBound),this.$element.on("bb_media_finished",this._onEventBound),this.$element.on("bb_media_paused",this._onEventBound),this.$element.on("bb_media_resumed",this._onEventBound),this.$element.on("bb_media_seeked",this._onEventBound),void 0!==window.google_tag_manager&&(this._sdkLoaded=!0),this._loadSDK(this._loadSDK_callback.bind(this))))};s.prototype.exit=function(){null!=this.$element&&(this.$element.off("bb_playout_changed",this._onEventBound),this.$element.off("bb_mediaclip_loaded",this._onEventBound),this.$element.off("bb_media_duration_change",this._onEventBound),this.$element.off("bb_media_started",this._onEventBound),this.$element.off("bb_media_finished",this._onEventBound),this.$element.off("bb_media_paused",this._onEventBound),this.$element.off("bb_media_resumed",this._onEventBound),this.$element.off("bb_media_seeked",this._onEventBound))},s.prototype.enable=function(){for(this._enabled=!0;this._enabledQueue.length>0;){var e=this._enabledQueue.shift();this._logMediaClipEvent_enabled(e.ev,e.aux)}},s.prototype.disable=function(){this._enabled=!1},s.prototype.handleAutoPause=function(){for(var e=0;e<this._enabledQueue.length;){var t=this._enabledQueue[e].properties;"it"===t.ev?(this._enabledQueue.splice(e,1),this._logMediaClipEvent_enabled(t.ev,t.aux)):e++}},s.prototype._onEvent=function(e,t){if(this._ready)switch(e.type){case"bb_playout_changed":this._onPlayoutChanged(e,t);break;case"bb_mediaclip_loaded":this._onClipDataLoaded(e,t);break;case"bb_media_duration_change":this._onDurationChange(e,t);break;case"bb_media_started":this._onMediaStarted(e,t);break;case"bb_media_finished":this._onMediaFinished(e,t);break;case"bb_media_paused":this._onMediaPaused(e,t);break;case"bb_media_resumed":this._onMediaResumed(e,t);break;case"bb_media_seeked":this._onMediaSeeked(e,t)}else this._queue.push({ev:e,payload:t})},s.prototype._loadSDK=function(e){if(this._sdkLoaded)"function"==typeof e&&e(!0);else{var t=this;void 0===window.dataLayer&&(window.dataLayer=[]),window.dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js"});var i=this._sdkURL.replace("TAG_ID",encodeURIComponent(this._gtmId));a.fetchScript(i,{async:!0}).then((function(a){n.default("[GTMEventsLogger] loaded sdk ("+i+")"),t._sdkLoaded=!0,"function"==typeof e&&e(!0)})).catch((function(t){n.default("[GTMEventsLogger] failed to load sdk ("+i+")"),"function"==typeof e&&e(!1)}))}return!0},s.prototype._loadSDK_callback=function(e){if(e)for(void 0===window.dataLayer&&(window.dataLayer=[]),this._gtm=window.dataLayer,this._gtm.push({vendor:"bluebillywig",gtmId:this._gtmId,anonymizeIp:!0}),this._ready=!0;this._queue.length>0;){var t=this._queue.shift();this._onEvent(t.ev,t.payload)}else this.$element.trigger("bb_warning",[{msg:"Google Tag Manager SDK failed to load"}])},s.prototype._onPlayoutChanged=function(e,t){t&&t.playoutData&&void 0!==t.playoutData.logProgressAsQuartiles&&(this._logProgressAsQuartiles=!("true"!==t.playoutData.logProgressAsQuartiles))},s.prototype._onClipDataLoaded=function(e,t){if(this._mediaClip=null,this._quartile=-1,this._deciles={},this._duration=0,void 0!==t&&void 0!==t.clipData){if(this._mediaClip=t.clipData,this._mediaClip){var i="audio"==this._mediaClip.mediatype?"Audio":"Video",n=this._mediaClip.id+" - "+this._mediaClip.title;this._eventTemplate={event:"bluebillywig-None","bluebillywig-category":i,"bluebillywig-label":n},this._duration=this._mediaClip.length>0?parseFloat(this._mediaClip.length):0,this._eventTemplate["bluebillywig-duration"]=1e3*this._duration}this._logMediaClipEvent("it",{to:0})}},s.prototype._onDurationChange=function(e,t){void 0!==t&&void 0!==t.duration&&(this._duration=parseFloat(t.duration),this._eventTemplate["bluebillywig-duration"]=1e3*this._duration)},s.prototype._onMediaStarted=function(e){if(this._mediaClip&&this._mediaClip.id===this._startedClipId&&this._logMediaClipEvent("rp",{to:0}),this._mediaClip&&(this._startedClipId=this._mediaClip.id),this._deciles={},this._logMediaClipEvent("st",{to:0}),null!=this._timer&&(clearInterval(this._timer),this._timer=null),this._duration>0){var t=this;this._timer=setInterval((function(){t._handleTimerTick()}),50*this._duration)}},s.prototype._onMediaFinished=function(e){var t=Math.round(1e3*this.$element.attr("data-currentTime"));if(this._logMediaClipEvent("fn",{to:t}),this._logProgressAsQuartiles)for(;this._quartile<4;){this._quartile++;var i=25*this._quartile;this._logMediaClipEvent("pg",{pct:i})}null!=this._timer&&(clearInterval(this._timer),this._timer=null),this._handleTimerTick()},s.prototype._onMediaPaused=function(e){var t=Math.round(1e3*this.$element.attr("data-currentTime"));this._logMediaClipEvent("pa",{to:t}),null!=this._timer&&(clearInterval(this._timer),this._timer=null),this._handleTimerTick()},s.prototype._onMediaResumed=function(e){var t=Math.round(1e3*this.$element.attr("data-currentTime"));if(this._logMediaClipEvent("rs",{to:t}),null!=this._timer&&(clearInterval(this._timer),this._timer=null),this._duration>0){var i=this;this._timer=setInterval((function(){i._handleTimerTick()}),50*this._duration)}},s.prototype._onMediaSeeked=function(e,t){var i=Math.round(1e3*(t?parseFloat(t.seekedPosition):this.$element.attr("data-currentTime")));this._logMediaClipEvent("se",{to:i})},s.prototype._handleTimerTick=function(){var e=this.$element.attr("data-currentTime");if(e>0&&this._duration>0)if(e=Math.min(e,this._duration),this._logProgressAsQuartiles)for(var t=Math.floor(4*e/this._duration);this._quartile<t;){this._quartile++;var i=25*this._quartile;this._logMediaClipEvent("pg",{pct:i})}else{for(var n=Math.floor(10*e/this._duration),a=1;a<n;a++)this._deciles["#"+a]||(this._deciles["#"+a]=!0,this._logMediaClipEvent("pg",{pct:10*a}));this._deciles["#"+n]||(this._deciles["#"+n]=!0,this._logMediaClipEvent("pg",{pct:10*n}))}},s.prototype._logMediaClipEvent=function(e,t){this._enabled?this._logMediaClipEvent_enabled(e,t):this._enabledQueue.push({ev:e,aux:t})},s.prototype._logMediaClipEvent_enabled=function(e,t){var n=null,a=$parcel$interopDefault(i).extend({},this._eventTemplate);switch(e){case"it":n="Init",a["bluebillywig-nonInteraction"]=!0;break;case"st":n="Play";break;case"fn":n="Finish";break;case"pa":case"rs":case"se":break;case"rp":n="Replay";break;case"pg":t.pct&&(n="Progress_"+Math.floor(t.pct))}if(null!=n){a.event="bluebillywig-"+n;try{this._gtm.push(a)}catch(e){this.$element.trigger("bb_warning",[{msg:"Google Tag Manager exception"}])}}}})),parcelRequire.register("kXyBH",(function(e,t){$parcel$export(e.exports,"default",(function(){return n}));var i=parcelRequire("cYwG5"),n=function(e,t){if(this._opts=t,this._loggerUrl=null,this._ss=null,this._enabled=!1,this._enabledQueue=[],this._sessionId=null,null!=this._opts&&void 0!==this._opts.playoutData&&(this._playout=this._opts.playoutData,null!=this._playout&&void 0!==this._playout.nedStatLoggerUrl&&""!=this._playout.nedStatLoggerUrl&&(this._loggerUrl=this._playout.nedStatLoggerUrl)),this._onClipDataLoadedBound=this._onClipDataLoaded.bind(this),this._onMediaEventBound=this._onMediaEvent.bind(this),this.$element=null,void 0!==e&&null!=e&&(this.$element=e,null!=this._loggerUrl)){try{this._ss=new window.ns_.StreamSense({},this._loggerUrl),null!=this._playout&&(this._ss.setLabel("ns_st_st",this._playout.publication),this._ss.setLabel("ns_st_mp","bluebillywig"))}catch(e){}this.$element.on("bb_mediaclip_loaded",this._onClipDataLoadedBound),this.$element.on("bb_media_duration_change bb_media_started bb_media_finished bb_media_paused bb_media_resumed bb_media_seeked",this._onMediaEventBound)}};n.prototype.exit=function(){return null!=this.$element&&(this.$element.off("bb_mediaclip_loaded",this._onClipDataLoadedBound),this.$element.off("bb_media_duration_change bb_media_started bb_media_finished bb_media_paused bb_media_resumed bb_media_seeked",this._onMediaEventBound)),null},n.prototype.enable=function(){for(this._enabled=!0;this._enabledQueue.length>0;){var e=this._enabledQueue.shift();this._logMediaClipEvent_enabled(e.ev,e.aux)}},n.prototype.disable=function(){this._enabled=!1},n.prototype.handleAutoPause=function(){for(var e=0;e<this._enabledQueue.length;){var t=this._enabledQueue[e].properties;"it"===t.ev?(this._enabledQueue.splice(e,1),this._logMediaClipEvent_enabled(t.ev,t.aux)):e++}},n.prototype._onClipDataLoaded=function(e,t){if(this._sessionId=this._generateSessionId(),void 0!==t&&void 0!==t.clipData){if(this._mediaClip=t.clipData,null!=this._mediaClip){try{this._ss.getPlaylist().setLabel("ns_st_pl",this._mediaClip.title)}catch(e){}var i={ns_st_cn:1,ns_st_ci:this._mediaClip.id,ns_st_cl:1e3*this._mediaClip.length,ns_st_pn:1,ns_st_tp:1};i.ns_st_pr=this._mediaClip.title,i.ns_st_ep=this._mediaClip.title,i.ns_st_ty="live"==this._mediaClip.sourcetype?"live":"vod",i.ns_st_dt=this._mediaClip.createddate,i.ns_st_cu=this._mediaClip.src;try{this._ss.setClip(i)}catch(e){}}this._logMediaClipEvent("it",{to:0})}},n.prototype._onMediaEvent=function(e,t){switch(null==e?void 0:e.type){case"bb_media_duration_change":this._onDurationChange(e,t);break;case"bb_media_started":this._onMediaStarted(e,t);break;case"bb_media_finished":this._onMediaFinished(e,t);break;case"bb_media_paused":this._onMediaPaused(e,t);break;case"bb_media_resumed":this._onMediaResumed(e,t);break;case"bb_media_seeked":this._onMediaSeeked(e,t)}},n.prototype._onDurationChange=function(e,t){if(void 0!==t&&void 0!==t.duration)try{this._ss.getClip().setLabel("ns_st_cl",1e3*parseFloat(t.duration))}catch(e){}},n.prototype._onMediaStarted=function(e){this._logMediaClipEvent("st",{to:0})},n.prototype._onMediaFinished=function(e){var t=Math.round(1e3*this.$element.attr("data-currentTime"));this._logMediaClipEvent("fn",{to:t})},n.prototype._onMediaPaused=function(e){var t=Math.round(1e3*this.$element.attr("data-currentTime"));this._logMediaClipEvent("pa",{to:t})},n.prototype._onMediaResumed=function(e){var t=Math.round(1e3*this.$element.attr("data-currentTime"));this._logMediaClipEvent("rs",{to:t})},n.prototype._onMediaSeeked=function(e,t){var i=Math.round(1e3*(t?parseFloat(t.seekedPosition):this.$element.attr("data-currentTime")));this._logMediaClipEvent("se",{to:i})},n.prototype._generateSessionId=function(){for(var e="",t=void 0!==this._mediaClip&&null!=this._mediaClip?this._mediaClip.id:0,n=new Date,a=i.SHA1(this._uuid+"/"+t+"/"+n.getTime()),s=0;s<a.length/6&&!(s>=3);s++)for(var o=parseInt("0x"+a.substr(6*s,6),16),r=0;r<4;r++)e+=this._jk64(o%64),o/=64;return e},n.prototype._jk64=function(e){return e<10?String.fromCharCode(e+48):e<36?String.fromCharCode(e+55):e<62?String.fromCharCode(e+61):e<64?String.fromCharCode(e-7):""},n.prototype._logMediaClipEvent=function(e,t){this._enabled?this._logMediaClipEvent_enabled(e,t):this._enabledQueue.push({ev:e,aux:t})},n.prototype._logMediaClipEvent_enabled=function(e,t){var i=null;switch(e){case"st":i=window.ns_.StreamSense.PlayerEvents.PLAY;break;case"fn":i=window.ns_.StreamSense.PlayerEvents.END;break;case"pa":i=window.ns_.StreamSense.PlayerEvents.PAUSE;break;case"rs":i=window.ns_.StreamSense.PlayerEvents.PLAY}if(null!=i)try{this._ss.notify(i,{},t.to)}catch(e){}}})),parcelRequire.register("2JAog",(function(e,t){$parcel$export(e.exports,"default",(function(){return a}));var i=parcelRequire("e06N2"),n=parcelRequire("cYwG5"),a=function(e,t){this._opts=t,this._sdkURL="//cdnjs.cloudflare.com/ajax/libs/piwik/2.8.0/piwik.js",this._sdkLoaded=!1,this._mediaClip=null,this._queue=[],this._enabled=!1,this._enabledQueue=[],this._pw=null,this._pwUrl=null,this._pwSiteId="",this._disableCookies="false",this._contentName="Blue Billywig Player",this._contentPiece="unknown",this._contentTarget=null,this._uuid=n.getCookie("uuid"),null!=this._opts&&void 0!==this._opts.playoutData&&(this._playout=this._opts.playoutData,null!=this._playout&&void 0!==this._playout.piwikUrl&&""!=this._playout.piwikUrl&&(this._pwUrl=this._playout.piwikUrl.replace(/^[htps:]*\/\//i,"https://"),this._pwSiteId=this._playout.piwikSiteId,this._disableCookies=this._playout.disableCookies)),this._onEventBound=this._onEvent.bind(this),this.$element=null,void 0!==e&&null!=e&&(this.$element=e,null!=this._pwUrl&&(this.$element.on("bb_mediaclip_loaded",this._onEventBound),this.$element.on("bb_media_duration_change",this._onEventBound),this.$element.on("bb_media_started",this._onEventBound),this.$element.on("bb_media_finished",this._onEventBound),this.$element.on("bb_media_paused",this._onEventBound),this.$element.on("bb_media_resumed",this._onEventBound),this.$element.on("bb_media_seeked",this._onEventBound),"undefined"!=typeof Piwik&&(this._sdkLoaded=!0),this._sdkURL=this._pwUrl+"/ppms.js",this._loadSDK(this._loadSDK_callback.bind(this))))};a.prototype.exit=function(){null!=this.$element&&(this.$element.off("bb_mediaclip_loaded",this._onEventBound),this.$element.off("bb_media_duration_change",this._onEventBound),this.$element.off("bb_media_started",this._onEventBound),this.$element.off("bb_media_finished",this._onEventBound),this.$element.off("bb_media_paused",this._onEventBound),this.$element.off("bb_media_resumed",this._onEventBound),this.$element.off("bb_media_seeked",this._onEventBound))},a.prototype.enable=function(){for(this._enabled=!0;this._enabledQueue.length>0;){var e=this._enabledQueue.shift();this._logMediaClipEvent_enabled(e.ev,e.aux)}},a.prototype.disable=function(){this._enabled=!1},a.prototype.handleAutoPause=function(){for(var e=0;e<this._enabledQueue.length;){var t=this._enabledQueue[e].properties;"it"===t.ev?(this._enabledQueue.splice(e,1),this._logMediaClipEvent_enabled(t.ev,t.aux)):e++}},a.prototype._onEvent=function(e,t){if(this._ready)switch(e.type){case"bb_mediaclip_loaded":this._onClipDataLoaded(e,t);break;case"bb_media_duration_change":this._onDurationChange(e,t);break;case"bb_media_started":this._onMediaStarted(e,t);break;case"bb_media_finished":this._onMediaFinished(e,t);break;case"bb_media_paused":this._onMediaPaused(e,t);break;case"bb_media_resumed":this._onMediaResumed(e,t);break;case"bb_media_seeked":this._onMediaSeeked(e,t)}else this._queue.push({ev:e,payload:t})},a.prototype._loadSDK=function(e){var t=this;return this._sdkLoaded?"function"==typeof e&&e(!0):n.fetchScript(this._sdkURL,{async:!0}).then((function(n){i.default("[PiwikStatisticsLogger] loaded sdk ("+t._sdkURL+")"),"function"==typeof e&&e(!0),t._sdkLoaded=!0})).catch((function(n){i.default("[PiwikStatisticsLogger] failed to load sdk ("+t._sdkURL+")"),"function"==typeof e&&e(!1)})),!0},a.prototype._loadSDK_callback=function(e){if(e)if(void 0!==window.Piwik)for(this._pw=window.Piwik.getTracker(this._pwUrl+"/ppms.php",this._pwSiteId),void 0!==this._uuid&&null!=this._uuid&&this._pw.setUserId(this._uuid),"tracking"==this._disableCookies&&this._pw.setDoNotTrack(!0),"true"==this._disableCookies&&this._pw.disableCookies(),this._pw.enableLinkTracking(!1),this._ready=!0;this._queue.length>0;){var t=this._queue.shift();this._onEvent(t.ev,t.payload)}else this.$element.trigger("bb_warning",[{msg:"Piwik SDK is undefined"}]);else this.$element.trigger("bb_warning",[{msg:"Piwik SDK failed to load"}])},a.prototype._onClipDataLoaded=function(e,t){this._mediaClip=null,void 0!==t&&void 0!==t.clipData&&(this._mediaClip=t.clipData,null!=this._mediaClip&&(this._legacyEventLabel=this._mediaClip.id+" - "+this._mediaClip.title,this._contentPiece="https://"+this._playout.publication+".bbvms.com/json/mediaclip/"+this._mediaClip.id,this._contentTarget=this._mediaClip.gendeeplink||this._mediaClip.deeplink,this._pw.setCustomVariable(1,"bb_id",this._mediaClip.id,"page"),this._pw.setCustomVariable(2,"bb_title",this._mediaClip.title,"page"),this._pw.setCustomVariable(3,"bb_duration",1e3*this._mediaClip.length,"page"),this._pw.setCustomVariable(4,"bb_sourcetype",this._mediaClip.sourcetype,"page"),this._pw.setCustomVariable(5,"bb_createddate",this._mediaClip.createddate,"page")),this._logMediaClipEvent("it",{to:0}))},a.prototype._onDurationChange=function(e,t){void 0!==t&&void 0!==t.duration&&this._pw.setCustomVariable(3,"bb_duration",1e3*parseFloat(t.duration),"page")},a.prototype._onMediaStarted=function(e){this._logMediaClipEvent("st",{to:0})},a.prototype._onMediaFinished=function(e){var t=Math.round(1e3*this.$element.attr("data-currentTime"));this._logMediaClipEvent("fn",{to:t})},a.prototype._onMediaPaused=function(e){var t=Math.round(1e3*this.$element.attr("data-currentTime"));this._logMediaClipEvent("pa",{to:t})},a.prototype._onMediaResumed=function(e){var t=Math.round(1e3*this.$element.attr("data-currentTime"));this._logMediaClipEvent("rs",{to:t})},a.prototype._onMediaSeeked=function(e,t){var i=Math.round(1e3*(t?parseFloat(t.seekedPosition):this.$element.attr("data-currentTime")));this._logMediaClipEvent("se",{to:i})},a.prototype._logMediaClipEvent=function(e,t){this._enabled?this._logMediaClipEvent_enabled(e,t):this._enabledQueue.push({ev:e,aux:t})},a.prototype._logMediaClipEvent_enabled=function(e,t){var i=null,n=null;switch(e){case"it":i="Init";break;case"st":i="Play";try{this._pw.trackContentImpression(this._contentName,this._contentPiece,this._contentTarget)}catch(e){this.$element.trigger("bb_warning",[{msg:"Piwik SDK exception: "+e.message}])}break;case"fn":i="Finish";break;case"pa":n="Pause";break;case"rs":n="Resume";break;case"se":n="Seek"}if(null!=i){var a="audio"==this._mediaClip.mediatype?"Audio":"Video";try{this._pw.trackEvent(a,i,this._legacyEventLabel)}catch(e){this.$element.trigger("bb_warning",[{msg:"Piwik SDK exception:"+e.message}])}}if(null!=n)try{this._pw.trackContentInteraction(n,this._contentName,this._contentPiece,this._contentTarget)}catch(e){this.$element.trigger("bb_warning",[{msg:"Piwik SDK exception: "+e.message}])}}})),parcelRequire.register("9qlnt",(function(e,t){$parcel$export(e.exports,"default",(function(){return a}));var i=parcelRequire("e06N2"),n=parcelRequire("cYwG5"),a=(window._paq=window._paq||[],function(e,t){this._opts=t,this._sdkURL=null,this._sdkLoaded=!1,this._mediaClip=null,this._queue=[],this._enabled=!1,this._enabledQueue=[],this._matomo=null,this._matomoUrl=null,this._matomoSiteId="",this._disableCookies="false",this._contentName="Blue Billywig Player",this._contentPiece="unknown",this._contentTarget=null,this._uuid=n.getCookie("uuid"),null!=this._opts&&void 0!==this._opts.playoutData&&(this._playout=this._opts.playoutData,null!=this._playout&&void 0!==this._playout.matomoUrl&&""!==this._playout.matomoUrl&&(this._matomoUrl=this._playout.matomoUrl.replace(/^[htps:]*\/\//i,"https://"),this._matomoSiteId=this._playout.matomoSiteId,this._disableCookies=this._playout.disableCookies)),this._onEventBound=this._onEvent.bind(this),this.$element=null,void 0!==e&&null!=e&&(this.$element=e,null!=this._matomoUrl&&(this.$element.on("bb_mediaclip_loaded",this._onEventBound),this.$element.on("bb_media_duration_change",this._onEventBound),this.$element.on("bb_media_started",this._onEventBound),this.$element.on("bb_media_finished",this._onEventBound),this.$element.on("bb_media_paused",this._onEventBound),this.$element.on("bb_media_resumed",this._onEventBound),this.$element.on("bb_media_seeked",this._onEventBound),void 0!==window.Matomo&&(this._sdkLoaded=!0),this._sdkURL=this._matomoUrl+"/matomo.js",this._loadSDK(this._loadSDK_callback.bind(this))))});a.prototype.exit=function(){null!=this.$element&&(this.$element.off("bb_mediaclip_loaded",this._onEventBound),this.$element.off("bb_media_duration_change",this._onEventBound),this.$element.off("bb_media_started",this._onEventBound),this.$element.off("bb_media_finished",this._onEventBound),this.$element.off("bb_media_paused",this._onEventBound),this.$element.off("bb_media_resumed",this._onEventBound),this.$element.off("bb_media_seeked",this._onEventBound))},a.prototype.enable=function(){for(this._enabled=!0;this._enabledQueue.length>0;){var e=this._enabledQueue.shift();this._logMediaClipEvent_enabled(e.ev,e.aux)}},a.prototype.disable=function(){this._enabled=!1},a.prototype.handleAutoPause=function(){for(var e=0;e<this._enabledQueue.length;){var t=this._enabledQueue[e].properties;"it"===t.ev?(this._enabledQueue.splice(e,1),this._logMediaClipEvent_enabled(t.ev,t.aux)):e++}},a.prototype._onEvent=function(e,t){if(this._ready)switch(e.type){case"bb_mediaclip_loaded":this._onClipDataLoaded(e,t);break;case"bb_media_duration_change":this._onDurationChange(e,t);break;case"bb_media_started":this._onMediaStarted(e,t);break;case"bb_media_finished":this._onMediaFinished(e,t);break;case"bb_media_paused":this._onMediaPaused(e,t);break;case"bb_media_resumed":this._onMediaResumed(e,t);break;case"bb_media_seeked":this._onMediaSeeked(e,t)}else this._queue.push({ev:e,payload:t})},a.prototype._loadSDK=function(e){var t=this;return this._sdkLoaded?"function"==typeof e&&e(!0):n.fetchScript(this._sdkURL,{async:!0}).then((function(n){i.default("[MatomoStatisticsLogger] loaded sdk ("+t._sdkURL+")"),"function"==typeof e&&e(!0),t._sdkLoaded=!0})).catch((function(n){i.default("[MatomoStatisticsLogger] failed to load sdk ("+t._sdkURL+")"),"function"==typeof e&&e(!1)})),!0},a.prototype._loadSDK_callback=function(e){if(e)if(void 0!==window.Matomo)for(this._matomo=window.Matomo.getTracker(this._matomoUrl+"/matomo.php",this._matomoSiteId),void 0!==this._uuid&&null!=this._uuid&&this._matomo.setUserId(this._uuid),"tracking"===this._disableCookies&&this._matomo.setDoNotTrack(!0),"true"===this._disableCookies&&this._matomo.disableCookies(),this._matomo.enableLinkTracking(!1),this._ready=!0;this._queue.length>0;){var t=this._queue.shift();this._onEvent(t.ev,t.payload)}else this.$element.trigger("bb_warning",[{msg:"Matomo SDK is undefined"}]);else this.$element.trigger("bb_warning",[{msg:"Matomo SDK failed to load"}])},a.prototype._onClipDataLoaded=function(e,t){this._mediaClip=null,void 0!==t&&void 0!==t.clipData&&(this._mediaClip=t.clipData,null!=this._mediaClip&&(this._legacyEventLabel=this._mediaClip.id+" - "+this._mediaClip.title,this._contentPiece="https://"+this._playout.publication+".bbvms.com/json/mediaclip/"+this._mediaClip.id,this._contentTarget=this._mediaClip.gendeeplink||this._mediaClip.deeplink,this._matomo.setCustomVariable(1,"bb_id",this._mediaClip.id,"page"),this._matomo.setCustomVariable(2,"bb_title",this._mediaClip.title,"page"),this._matomo.setCustomVariable(3,"bb_duration",1e3*this._mediaClip.length,"page"),this._matomo.setCustomVariable(4,"bb_sourcetype",this._mediaClip.sourcetype,"page"),this._matomo.setCustomVariable(5,"bb_createddate",this._mediaClip.createddate,"page")),this._logMediaClipEvent("it",{to:0}))},a.prototype._onDurationChange=function(e,t){void 0!==t&&void 0!==t.duration&&this._matomo.setCustomVariable(3,"bb_duration",1e3*parseFloat(t.duration),"page")},a.prototype._onMediaStarted=function(e){this._logMediaClipEvent("st",{to:0})},a.prototype._onMediaFinished=function(e){var t=Math.round(1e3*this.$element.attr("data-currentTime"));this._logMediaClipEvent("fn",{to:t})},a.prototype._onMediaPaused=function(e){var t=Math.round(1e3*this.$element.attr("data-currentTime"));this._logMediaClipEvent("pa",{to:t})},a.prototype._onMediaResumed=function(e){var t=Math.round(1e3*this.$element.attr("data-currentTime"));this._logMediaClipEvent("rs",{to:t})},a.prototype._onMediaSeeked=function(e,t){var i=Math.round(1e3*(t?parseFloat(t.seekedPosition):this.$element.attr("data-currentTime")));this._logMediaClipEvent("se",{to:i})},a.prototype._logMediaClipEvent=function(e,t){this._enabled?this._logMediaClipEvent_enabled(e,t):this._enabledQueue.push({ev:e,aux:t})},a.prototype._logMediaClipEvent_enabled=function(e,t){var i=null,n=null;switch(e){case"it":i="Init";break;case"st":i="Play";try{this._matomo.trackContentImpression(this._contentName,this._contentPiece,this._contentTarget)}catch(e){this.$element.trigger("bb_warning",[{msg:"Matomo SDK exception: "+e.message}])}break;case"fn":i="Finish";break;case"pa":n="Pause";break;case"rs":n="Resume";break;case"se":n="Seek"}if(null!=i){var a="audio"===this._mediaClip.mediatype?"Audio":"Video";try{this._matomo.trackEvent(a,i,this._legacyEventLabel)}catch(e){this.$element.trigger("bb_warning",[{msg:"Matomo SDK exception:"+e.message}])}}if(null!=n)try{this._matomo.trackContentInteraction(n,this._contentName,this._contentPiece,this._contentTarget)}catch(e){this.$element.trigger("bb_warning",[{msg:"Matomo SDK exception: "+e.message}])}}})),parcelRequire.register("4p197",(function(e,t){$parcel$export(e.exports,"default",(function(){return o}));var i=parcelRequire("3DsR2"),n=parcelRequire("e06N2"),a=parcelRequire("cYwG5"),s=parcelRequire("6AtHv"),o=function(e,t){this._opts=t,this._detections=null,this._bbcb_string=void 0!==s.bbcb&&null!=s.bbcb&&s.bbcb.length>0?"?bbcb="+s.bbcb:"",this._base=this._opts.playerPath?this._opts.playerPath+"components/":"//bb.bbvms.com/apps/player/html5/player/components/",this._loading=[],this._loadedPlayerComponents={},window.bluebillywig&&window.bluebillywig._internal&&window.bluebillywig._internal._brokerSubscriptions||(window.bluebillywig=window.bluebillywig||{},window.bluebillywig._internal=window.bluebillywig._internal||{},window.bluebillywig._internal._brokerSubscriptions={}),!window.location.protocol.match(/^http/)&&this._base.match(/^\/\//)&&(this._base="https:"+this._base),this._onClipLoadedBound=this._onClipLoaded.bind(this),this.$element=null,void 0!==e&&null!=e&&(this.$element=e,i.default.getService(this._opts.playerAliasOrId).setInstance("ComponentBroker",this),this._detections=i.default.getService(this._opts.playerAliasOrId).getInstance("Detections"),this.$element.on("bb_mediaclip_loaded",this._onClipLoadedBound)),!this._opts.clipData||"true"!==this._opts.clipData.cubemapVideo&&"360video"!==this._opts.clipData.subtype&&"true"!==this._opts.clipData.isThreeSixtyVideo&&!0!==this._opts.clipData.isThreeSixtyVideo||(this.isPlayerComponentAvailable("WebGL360Helper")||this.load("WebGL360Helper:Html5SpriteGL360Head",15),this.isPlayerComponentAvailable("WebGL360Helper")||this.load("WebGL360Helper:Html5VideoGL360Head",15),this.isPlayerComponentAvailable("Html5Sprite360Head")||this.load("Html5Sprite360Head",15))};o.prototype.exit=function(){return null!=this.$element&&(this.$element.off("bb_mediaclip_loaded",this._onClipLoadedBound),i.default.getService(this._opts.playerAliasOrId).setInstance("ComponentBroker",null)),null},o.prototype.isLoading=function(e){return!!this._loading[e]},o.prototype.isPlayerComponentAvailable=function(e){return!!this._loadedPlayerComponents[e]},o.prototype.getLoadedPlayerComponent=function(e){return this._loadedPlayerComponents[e]},o.prototype.load=function(e,t){if(t=void 0===t||isNaN(parseFloat(t))?-1:parseFloat(t),e){n.default("[ComponentBroker] load component: ".concat(e));var i=e;if(e.indexOf(":")>=0){var a=e.split(":");i=a[0],e=a[1]}e!==i&&(this._loading[e]=!0),this._loading[i]?this._loading[i].push(e):(this._loading[i]||(this._loading[i]=[]),this._loading[i].push(e),["WebGL360Helper","Html5Sprite360Head","Html5HLSHelper","Html5HLSDashHelper"].includes(i)?this._load_dynamic_import(i,e):window.requirejs&&!e.match(/_IMA/)?this._load_requirejs(i,e,t):this._load_ajax(i,e,t))}else this.$element&&this.$element.triggerHandler("bb_component_failed",[{component:null}])},o.prototype._load_dynamic_import=function(e,t,i){var n,a=this,s=!1;i&&!isNaN(i)&&(n=setTimeout((function(){a._load_result(e,t,!1,"Dynamic import timed out"),s=!0}),1e3*i));var o=function(i){n&&(clearTimeout(n),n=null),a._loadedPlayerComponents[e]=i.default,s||(a._load_result(e,t,!0),s=!0)},r=function(i){n&&(clearTimeout(n),n=null),console.warn(i),s||(a._load_result(e,t,!1,"Dynamic import failed"),s=!0)};switch(e){case"WebGL360Helper":parcelRequire("jAOLp").then(o).catch(r);break;case"Html5Sprite360Head":parcelRequire("41Tze").then(o).catch(r);break;case"Html5HLSHelper":parcelRequire("5kw0R").then(o).catch(r);break;case"Html5HLSDashHelper":parcelRequire("7d8it").then(o).catch(r)}},o.prototype._load_requirejs=function(e,t,i){var n=e&&(e.match(/^\/\//)||e.match(/^\w+:\/\//))?e:this._base+e+"/"+e+".js"+this._bbcb_string;n.match(/^\/\//)&&(n="https:"+n);var a=this;try{window.requirejs([n],(function(i){"Html5HLSHead"===t&&void 0!==i&&(window.Hls=i),a._load_result(e,t,!0)}))}catch(i){this._load_result(e,t,!1)}},o.prototype._load_ajax=function(e,t,i){var n=this,s=e&&(e.match(/^\/\//)||e.match(/^\w+:\/\//))?e:this._base+e+"/"+e+".js"+this._bbcb_string;s.match(/^\/\//)&&(s="https:"+s);var o={async:!0};i>=0&&(o.timeout=1e3*i),a.fetchScript(s,o).then((function(i){n._load_result(e,t,!0)})).catch((function(i){n._load_result(e,t,!1,null==i?void 0:i.message)}))},o.prototype._load_result=function(e,t,i,a){n.default("[ComponentBroker] _load_result ("+e+") success: "+i+". textStatus: "+a);var s=i?"bb_component_loaded":"bb_component_failed";if(t!==e){for(var o=this._loading[e].length;o>=0;o--){if(t=this._loading[e][o],this._loading[t]){this._loading[t]=!1;var r={component:t};!i&&a&&(r.reason=a),this.$element&&this.$element.triggerHandler(s,[r]),this._handleSubscriptions(t,i)}this._loading[e].splice(o,1)}this._loading[e]=!1}else if(this._loading[t]){this._loading[t]=!1;r={component:t};!i&&a&&(r.reason=a),this.$element&&this.$element.triggerHandler(s,[r]),this._handleSubscriptions(t,i)}},o.prototype.subscribe=function(e,t){e&&t&&"string"==typeof e&&"function"==typeof t&&window.bluebillywig&&window.bluebillywig._internal&&window.bluebillywig._internal._brokerSubscriptions&&(window.bluebillywig._internal._brokerSubscriptions[e]=window.bluebillywig._internal._brokerSubscriptions[e]||[],window.bluebillywig._internal._brokerSubscriptions[e].push(t))},o.prototype._handleSubscriptions=function(e,t){if(window.bluebillywig&&window.bluebillywig._internal&&window.bluebillywig._internal._brokerSubscriptions&&window.bluebillywig._internal._brokerSubscriptions[e]){for(;window.bluebillywig._internal._brokerSubscriptions[e].length;)window.bluebillywig._internal._brokerSubscriptions[e].shift()(t);delete window.bluebillywig._internal._brokerSubscriptions[e]}},o.prototype._onClipLoaded=function(e,t){if(void 0!==t.clipData){var i=t.clipData;"true"!==(null==i?void 0:i.cubemapVideo)&&"360video"!==(null==i?void 0:i.subtype)&&"true"!==(null==i?void 0:i.isThreeSixtyVideo)&&!0!==(null==i?void 0:i.isThreeSixtyVideo)||(this._detections.hasWebGL?this._detections.canPlayInline?this.isPlayerComponentAvailable("WebGL360Helper")||this.load("WebGL360Helper:Html5VideoGL360Head",15):this.isPlayerComponentAvailable("WebGL360Helper")||this.load("WebGL360Helper:Html5SpriteGL360Head",15):this.isPlayerComponentAvailable("Html5Sprite360Head")||this.load("Html5Sprite360Head",15))}}})),parcelRequire.register("6AtHv",(function(e,t){e.exports=JSON.parse('{"playerBuildDate":"2024-08-05 14:17:46","bbcb":"1722867466623","release":"v8.6.0","env":"prod"}')})),parcelRequire.register("jAOLp",(function(e,t){e.exports=parcelRequire("lrJsf")(parcelRequire("lKFlT").getBundleURL("5H5Jn")+parcelRequire("l8sJU").resolve("cFisA")).then((function(){return parcelRequire("g74ry")}))})),parcelRequire.register("41Tze",(function(e,t){e.exports=parcelRequire("lrJsf")(parcelRequire("lKFlT").getBundleURL("5H5Jn")+parcelRequire("l8sJU").resolve("9Z74g")).then((function(){return parcelRequire("fh4ky")}))})),parcelRequire.register("5kw0R",(function(e,t){e.exports=parcelRequire("lrJsf")(parcelRequire("lKFlT").getBundleURL("5H5Jn")+parcelRequire("l8sJU").resolve("l8sYs")).then((function(){return parcelRequire("iulxx")}))})),parcelRequire.register("7d8it",(function(e,t){e.exports=parcelRequire("lrJsf")(parcelRequire("lKFlT").getBundleURL("5H5Jn")+parcelRequire("l8sJU").resolve("h8ZoP")).then((function(){return parcelRequire("brMRw")}))})),parcelRequire.register("dWtsw",(function(e,t){$parcel$export(e.exports,"default",(function(){return s})),parcelRequire("6JR1F");var i=parcelRequire("hGJI5"),n=parcelRequire("e06N2"),a=parcelRequire("3DsR2"),s=function(e,t){this.$element=e,this._opts=t,a.default.getService(this._opts.playerAliasOrId).setInstance("Detections",this),this._playout=t.playoutData,this._pubAvoidPreload="true"===this._opts.publicationData.avoidPreload,this._pubAvoidAndroidNativeHLS="true"===this._opts.publicationData.avoidAndroidNativeHLS,this._eventNS="Detections"+String(Math.random()).replace(".",""),this._forceCanAutoPlay="true"===this._playout.forceCanAutoPlay||!0===this._playout.forceCanAutoPlay||t.requestParams&&"true"===t.requestParams.forceCanAutoPlay,this._testVid=document.createElement("video"),this._ua=navigator.userAgent.toLowerCase(),this.measuredBandwidth=null,this._html5Elements=["source","track","audio","video"],this._asyncDetections=["iPadVersionCheck","canAutoPlayAdvancedCheck","getUserBandwidth"],void 0!==this.$element&&this.init()};s.prototype._checkEventsReady=function(e){"canAutoPlayAdvancedCheck"==e&&(Object.defineProperty||(null!==this.canAutoPlayAdvanced&&(this.canAutoPlay=this.canAutoPlayAdvanced),null!==this.canAutoPlayMutedAdvanced&&(this.canAutoPlayMuted=this.canAutoPlayMutedAdvanced)),this.$element&&this.$element.triggerHandler("bb_autoplay_check_ready",[{autoPlay:this.canAutoPlayAdvanced,canAutoPlay:this.canAutoPlay,canAutoPlayMuted:this.canAutoPlayMuted}])),this._asyncDetections=this._asyncDetections.filter((function(t){return t!==e})),0==this._asyncDetections.length&&this.$element&&this.$element.triggerHandler("bb_detections_ready")},s.prototype.init=function(){var e,t,a,s,o,r=this,l=this;l.canAutoPlayAdvanced=null,l.canAutoPlayMutedAdvanced=null,l.objectFit="objectFit"in l._testVid.style,l.compute_hasWebGL=function(){try{return!!window.WebGLRenderingContext&&!!document.createElement("canvas").getContext("experimental-webgl")}catch(e){return!1}},Object.defineProperty?Object.defineProperty(this,"hasWebGL",{get:function(){return void 0===r._hasWebGL&&(r._hasWebGL=r.compute_hasWebGL()),r._hasWebGL}}):this.hasWebGL=this.compute_hasWebGL(),l.getUserBandwidth=(e=function(e){l.measuredBandwidth=e,l.$element&&null!==e&&l.$element.triggerHandler("bb_bandwidth_measured",[{measuredBandwidth:l.measuredBandwidth}]),l._checkEventsReady("getUserBandwidth")},void setTimeout((function(){var t,i,n,a,s,o=function(){var e=navigator.connection||navigator.mozConnection||navigator.webkitConnection;if(e)return 1024*e.downlink}()||function(){var e=window.performance;if(e&&PerformanceEntry.prototype.hasOwnProperty("duration")&&PerformanceResourceTiming.prototype.hasOwnProperty("transferSize"))return(e.getEntriesByType("resource")||[]).reduce((function(e,t){return t.transferSize>0&&t.duration>0?Math.max(e,Math.round(t.transferSize/1024*8/(t.duration/1e3))):e}),0)}();o||"mainroll"===(null===(t=l._opts.clipData)||void 0===t?void 0:t.mediatype)?e(o):(i=e,n=l._opts.publicationData.baseurl+"/player/common/bwcheck.jpg",a=new Date,(s=new Image).addEventListener("load",(function(){var e=31309/(((new Date).getTime()-a.getTime())/1e3)/1024*8;e*=6;var t=Math.round(e);i(t)})),s.src=n+"?"+a.getTime())}),10)),l.isHttps="https:"==location.protocol,l.inIframe=function(){try{return window.self!==window.top}catch(e){return!0}}(),l.accessToParentIframe=function(){var e=!1;try{window.top.document.location;e=window.self.document!==window.top.document}catch(t){e=!1}return e}(),l.isUIWebView=!!navigator.userAgent.match(/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i),l.isWindowsPhone=null!==l._ua.match(/Windows Phone/i),l.isSafari=!!navigator.userAgent.match(/Safari/i)&&!l.isUIWebView,l.isiPhone=null!==l._ua.match(/iphone/i),l.isiPad=null!==l._ua.match(/ipad/i)||"iPad"===navigator.platform||navigator.maxTouchPoints>2&&/MacIntel/.test(navigator.platform),l.isWindows=null!==l._ua.match(/Windows|WinCE|Win32|Win64/i),l.isMacOS=null!==l._ua.match(/Macintosh|MacIntel/i),l.isLinux=null!==l._ua.match(/Linux|X11|Wayland/i),l.isAndroid=null!==l._ua.match(/android/i),l.isFacebookApp=null!==l._ua.match(/fban/i)||null!==l._ua.match(/fbav/i),l.isInstagram=null!==l._ua.match(/Instagram/i),l.OS=l.isiPad||l.isiPhone?"iOS":l.isAndroid?"Android":l.isWindows?"Windows":l.isMacOS?"MacOS":l.isLinux?"Linux":"Other",l.isMobileDevice=(a=!1,t=navigator.userAgent||navigator.vendor||window.opera,(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(t.substr(0,4)))&&(a=!0),a||l.isiPad||l.isiPhone||l.isAndroid||l.isWindowsPhone),l.iPadVersionCheck=l.isiPad&&l.isiPad&&void 0!==window.ondevicemotion&&-1==navigator.userAgent.toLowerCase().indexOf("firefox/")&&-1==navigator.userAgent.toLowerCase().indexOf("android")?void(window.ondevicemotion=function(e){return e.acceleration?(window.bb_iPadVersion=2===window.devicePixelRatio?3:2,l.iPadVersion=2===window.devicePixelRatio?3:2):(window.bb_iPadVersion=1,l.iPadVersion=1),window.ondevicemotion=null,l._checkEventsReady("iPadVersionCheck"),!0}):(l.iPadVersion=-1,l._checkEventsReady("iPadVersionCheck"),!0),l.iOSVersion=parseFloat((""+(/CPU.*OS ([0-9_]{1,5})|(CPU like).*AppleWebKit.*Mobile/i.exec(navigator.userAgent)||[0,""])[1]).replace("undefined","3_2").replace("_",".").replace("_",""))||-1,l.iOSVersion<0&&l.isiPad&&(l.iOSVersion=10),l.iOSVersion<0&&l.isiPhone&&(l.iOSVersion=10),l.isiOS=-1!=l.iOSVersion,l.isAndroidNative=l._ua.indexOf("mozilla/5.0")>-1&&l._ua.indexOf("android ")>-1&&l._ua.indexOf("applewebkit")>-1&&!(l._ua.indexOf("chrome")>-1),l.isBustedAndroid=null!==l._ua.match(/android 2\.[12]/),l.isBustedNativeHTTPS="https:"===location.protocol&&(null!==l._ua.match(/android [12]\./)||null!==l._ua.match(/macintosh.* version.* safari/)),l.androidVersion=!!(s=l._ua.match(/android\s([0-9\.]*)/i))&&s[1],l.chromeVersion=!!(o=navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./))&&parseInt(o[2],10),l.canControlVolume=function(){if(l.isAndroidNative&&parseFloat(l.androidVersion)<4.1)return!1;try{var e=l._testVid.volume;return l._testVid.volume=e/2+l._testVid.volume==.2?.2:.1,e!==l._testVid.volume}catch(e){return!1}}(),l.canControlMuted=function(){if(l.isAndroidNative&&parseFloat(l.androidVersion)<4.1)return!1;try{var e=l._testVid.muted;return l._testVid.muted=!l._testVid.muted,e!==l._testVid.muted}catch(e){return!1}}(),l.isLinkedInAppIOS=function(){var e=!(null===l._ua.match(/linkedin/gi)),t=!(null===document.referrer.match(/\/\/[^\/]*linkedin/gi));try{window.sessionStorage&&(t?window.sessionStorage.setItem("bb_isLinkedIn_ref","true"):t="true"===window.sessionStorage.getItem("bb_isLinkedIn_ref"))}catch(e){}return(e||t&&l.isUIWebView)&&l.isiOS}(),l.canPlayInline=!(l.isiPhone&&l.iOSVersion<10||!1!==l.androidVersion&&parseFloat(l.androidVersion)<3||l.isWindowsPhone),l.devicePixelRatio=window.devicePixelRatio?window.devicePixelRatio:1,l.deviceResolution=null,l.deviceResolution={width:window.screen.width,height:window.screen.height},l.deviceResolutionString=window.screen.width+"x"+window.screen.height,l.deviceOrientation=window.innerHeight>window.innerWidth?"landscape":"portrait",this._onOrientationChangeBound=function(){this.deviceOrientation=window.innerHeight>window.innerWidth?"landscape":"portrait",this.deviceResolution={width:window.screen.width,height:window.screen.height}}.bind(this),window.addEventListener("orientationchange",this._onOrientationChangeBound),l.isIE=-1!=navigator.appName.toLowerCase().indexOf("microsoft")||null!==navigator.userAgent.toLowerCase().match(/trident/gi),l.ieVersion=function(){var e=-1,t=navigator.userAgent;if("Microsoft Internet Explorer"==navigator.appName)null!=new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})").exec(t)&&(e=parseFloat(RegExp.$1));else if("Netscape"==navigator.appName){null!=new RegExp("Trident/.*rv:([0-9]{1,}[.0-9]{0,})").exec(t)&&(e=parseFloat(RegExp.$1))}return e}(),l.edgeVersion=function(){var e=l._ua.match(/Edg(?:e|A|iOS)?\/(\d+)?/i);return null!==e?(l.isEdge=!0,parseInt(e[1],10)):(l.isEdge=!1,-1)}(),l.supportsHTML5IMA=!(l.isIE&&l.ieVersion<11),l.isChrome=null!==l._ua.match(/chrome/gi)&&!l.isEdge,(l.isChrome||l.isEdge||l.isAndroid)&&(l.isSafari=!1),l.isFirefox=null!==l._ua.match(/firefox/gi)&&!l.isEdge,l.isWebkit=null!==l._ua.match(/webkit/gi)&&!l.isEdge,l.isChromeiOS=l.isWebkit&&null!==l._ua.match(/crios/gi),l.isGecko=null!==l._ua.match(/gecko/gi)&&!l.isWebkit&&!l.isIE&&!l.isEdge,l.isOpera=null!==l._ua.match(/opera/gi)&&!l.isEdge,l.browser=l.isChrome||l.isChromeiOS?"Chrome":l.isFirefox?"Firefox":l.isSafari?"Safari":l.isEdge?"Edge":l.isOpera?"Opera":"Other",l.hasTouch="ontouchstart"in window,l.safariVersion=function(){var e=navigator.userAgent.match(/Version\/([0-9]+)\./);return!(!l.isSafari||!e)&&parseInt(e[1],10)}(),l.isTouchDevice=l.isAndroid||l.isiOS||l.isWindowsPhone||l.isMobileDevice,l.avoidPreload=this._pubAvoidPreload&&(this.isSafari||this.isChrome||this.isFirefox),l.canAutoPlayTestComplete=!1,l.canAutoPlayAdvancedTest=function(){l.canAutoPlayAdvanced=null;try{l._media=l.canPlayInline?document.createElement("video"):document.createElement("audio"),l._media.setAttribute("playsinline",""),l._media.setAttribute("webkit-playsinline",""),l._media.setAttribute("aria-hidden","true");var e=l._media.canPlayType("audio/ogg")?"data:audio/ogg;base64,T2dnUwACAAAAAAAAAADqnjMlAAAAAOyyzPIBHgF2b3JiaXMAAAAAAUAfAABAHwAAQB8AAEAfAACZAU9nZ1MAAAAAAAAAAAAA6p4zJQEAAAANJGeqCj3//////////5ADdm9yYmlzLQAAAFhpcGguT3JnIGxpYlZvcmJpcyBJIDIwMTAxMTAxIChTY2hhdWZlbnVnZ2V0KQAAAAABBXZvcmJpcw9CQ1YBAAABAAxSFCElGVNKYwiVUlIpBR1jUFtHHWPUOUYhZBBTiEkZpXtPKpVYSsgRUlgpRR1TTFNJlVKWKUUdYxRTSCFT1jFloXMUS4ZJCSVsTa50FkvomWOWMUYdY85aSp1j1jFFHWNSUkmhcxg6ZiVkFDpGxehifDA6laJCKL7H3lLpLYWKW4q91xpT6y2EGEtpwQhhc+211dxKasUYY4wxxsXiUyiC0JBVAAABAABABAFCQ1YBAAoAAMJQDEVRgNCQVQBABgCAABRFcRTHcRxHkiTLAkJDVgEAQAAAAgAAKI7hKJIjSZJkWZZlWZameZaouaov+64u667t6roOhIasBACAAAAYRqF1TCqDEEPKQ4QUY9AzoxBDDEzGHGNONKQMMogzxZAyiFssLqgQBKEhKwKAKAAAwBjEGGIMOeekZFIi55iUTkoDnaPUUcoolRRLjBmlEluJMYLOUeooZZRCjKXFjFKJscRUAABAgAMAQICFUGjIigAgCgCAMAYphZRCjCnmFHOIMeUcgwwxxiBkzinoGJNOSuWck85JiRhjzjEHlXNOSuekctBJyaQTAAAQ4AAAEGAhFBqyIgCIEwAwSJKmWZomipamiaJniqrqiaKqWp5nmp5pqqpnmqpqqqrrmqrqypbnmaZnmqrqmaaqiqbquqaquq6nqrZsuqoum65q267s+rZru77uqapsm6or66bqyrrqyrbuurbtS56nqqKquq5nqq6ruq5uq65r25pqyq6purJtuq4tu7Js664s67pmqq5suqotm64s667s2rYqy7ovuq5uq7Ks+6os+75s67ru2rrwi65r66os674qy74x27bwy7ouHJMnqqqnqq7rmarrqq5r26rr2rqmmq5suq4tm6or26os67Yry7aumaosm64r26bryrIqy77vyrJui67r66Ys67oqy8Lu6roxzLat+6Lr6roqy7qvyrKuu7ru+7JuC7umqrpuyrKvm7Ks+7auC8us27oxuq7vq7It/KosC7+u+8Iy6z5jdF1fV21ZGFbZ9n3d95Vj1nVhWW1b+V1bZ7y+bgy7bvzKrQvLstq2scy6rSyvrxvDLux8W/iVmqratum6um7Ksq/Lui60dd1XRtf1fdW2fV+VZd+3hV9pG8OwjK6r+6os68Jry8ov67qw7MIvLKttK7+r68ow27qw3L6wLL/uC8uq277v6rrStXVluX2fsSu38QsAABhwAAAIMKEMFBqyIgCIEwBAEHIOKQahYgpCCKGkEEIqFWNSMuakZM5JKaWUFEpJrWJMSuaclMwxKaGUlkopqYRSWiqlxBRKaS2l1mJKqcVQSmulpNZKSa2llGJMrcUYMSYlc05K5pyUklJrJZXWMucoZQ5K6iCklEoqraTUYuacpA46Kx2E1EoqMZWUYgupxFZKaq2kFGMrMdXUWo4hpRhLSrGVlFptMdXWWqs1YkxK5pyUzDkqJaXWSiqtZc5J6iC01DkoqaTUYiopxco5SR2ElDLIqJSUWiupxBJSia20FGMpqcXUYq4pxRZDSS2WlFosqcTWYoy1tVRTJ6XFklKMJZUYW6y5ttZqDKXEVkqLsaSUW2sx1xZjjqGkFksrsZWUWmy15dhayzW1VGNKrdYWY40x5ZRrrT2n1mJNMdXaWqy51ZZbzLXnTkprpZQWS0oxttZijTHmHEppraQUWykpxtZara3FXEMpsZXSWiypxNhirLXFVmNqrcYWW62ltVprrb3GVlsurdXcYqw9tZRrrLXmWFNtBQAADDgAAASYUAYKDVkJAEQBAADGMMYYhEYpx5yT0ijlnHNSKucghJBS5hyEEFLKnINQSkuZcxBKSSmUklJqrYVSUmqttQIAAAocAAACbNCUWByg0JCVAEAqAIDBcTRNFFXVdX1fsSxRVFXXlW3jVyxNFFVVdm1b+DVRVFXXtW3bFn5NFFVVdmXZtoWiqrqybduybgvDqKqua9uybeuorqvbuq3bui9UXVmWbVu3dR3XtnXd9nVd+Bmzbeu2buu+8CMMR9/4IeTj+3RCCAAAT3AAACqwYXWEk6KxwEJDVgIAGQAAgDFKGYUYM0gxphhjTDHGmAAAgAEHAIAAE8pAoSErAoAoAADAOeecc84555xzzjnnnHPOOeecc44xxhhjjDHGGGOMMcYYY4wxxhhjjDHGGGOMMcYYY0wAwE6EA8BOhIVQaMhKACAcAABACCEpKaWUUkoRU85BSSmllFKqFIOMSkoppZRSpBR1lFJKKaWUIqWgpJJSSimllElJKaWUUkoppYw6SimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaVUSimllFJKKaWUUkoppRQAYPLgAACVYOMMK0lnhaPBhYasBAByAwAAhRiDEEJpraRUUkolVc5BKCWUlEpKKZWUUqqYgxBKKqmlklJKKbXSQSihlFBKKSWUUkooJYQQSgmhlFRCK6mEUkoHoYQSQimhhFRKKSWUzkEoIYUOQkmllNRCSB10VFIpIZVSSiklpZQ6CKGUklJLLZVSWkqpdBJSKamV1FJqqbWSUgmhpFZKSSWl0lpJJbUSSkklpZRSSymFVFJJJYSSUioltZZaSqm11lJIqZWUUkqppdRSSiWlkEpKqZSSUmollZRSaiGVlEpJKaTUSimlpFRCSamlUlpKLbWUSkmptFRSSaWUlEpJKaVSSksppRJKSqmllFpJKYWSUkoplZJSSyW1VEoKJaWUUkmptJRSSymVklIBAEAHDgAAAUZUWoidZlx5BI4oZJiAAgAAQABAgAkgMEBQMApBgDACAQAAAADAAAAfAABHARAR0ZzBAUKCwgJDg8MDAAAAAAAAAAAAAACAT2dnUwAEAAAAAAAAAADqnjMlAgAAADzQPmcBAQA=":"data:audio/mpeg;base64,/+MYxAAAAANIAUAAAASEEB/jwOFM/0MM/90b/+RhST//w4NFwOjf///PZu////9lns5GFDv//l9GlUIEEIAAAgIg8Ir/JGq3/+MYxDsLIj5QMYcoAP0dv9HIjUcH//yYSg+CIbkGP//8w0bLVjUP///3Z0x5QCAv/yLjwtGKTEFNRTMuOTeqqqqqqqqqqqqq/+MYxEkNmdJkUYc4AKqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq";l._media.setAttribute("src",e)}catch(e){console.debug(e.message)}var t=!1;$parcel$interopDefault(i)(l._media).on("playing",(function(e){t=null===l.canAutoPlayAdvanced||null===l.canAutoPlayMutedAdvanced,null===l.canAutoPlayAdvanced&&(l.canAutoPlayAdvanced=!!l._media&&!l._media.muted),null===l.canAutoPlayMutedAdvanced&&(l.canAutoPlayMutedAdvanced=!0),delete l._media,t&&l._checkEventsReady("canAutoPlayAdvancedCheck")}));var n=window.setTimeout((function(){t=null===l.canAutoPlayAdvanced||null===l.canAutoPlayMutedAdvanced,null===l.canAutoPlayAdvanced&&(l.canAutoPlayAdvanced=l.canAutoPlay),null===l.canAutoPlayMutedAdvanced&&(l.canAutoPlayMutedAdvanced=l.canAutoPlayMuted),delete l._media,t&&l._checkEventsReady("canAutoPlayAdvancedCheck")}),960);try{var a=l._media.play();void 0!==a&&a.then?($parcel$interopDefault(i)(l._media).off("playing"),n&&window.clearTimeout(n),a.then((function(){t=null===l.canAutoPlayAdvanced||null===l.canAutoPlayMutedAdvanced,null===l.canAutoPlayAdvanced&&(l.canAutoPlayAdvanced=!0),null===l.canAutoPlayMutedAdvanced&&(l.canAutoPlayMutedAdvanced=!0),delete l._media,t&&l._checkEventsReady("canAutoPlayAdvancedCheck")})).catch((function(e){if(null===l.canAutoPlayAdvanced&&(l.canAutoPlayAdvanced=!1),l._media){l._media.muted=!0;var i=l._media.play();void 0!==i&&i.then&&i.then((function(){t=null===l.canAutoPlayAdvanced||null===l.canAutoPlayMutedAdvanced,null===l.canAutoPlayMutedAdvanced&&(l.canAutoPlayMutedAdvanced=!0),delete l._media,t&&l._checkEventsReady("canAutoPlayAdvancedCheck")})).catch((function(e){t=null===l.canAutoPlayAdvanced||null===l.canAutoPlayMutedAdvanced,null===l.canAutoPlayMutedAdvanced&&(l.canAutoPlayMutedAdvanced=!1),delete l._media,t&&l._checkEventsReady("canAutoPlayAdvancedCheck")}))}}))):l._media&&l._media.paused&&(l._media.muted=!0,l._media.play())}catch(e){console.debug(e.message)}},l.canAutoPlayAdvancedTest_mobile=function(){l.canAutoPlayAdvanced=null;try{l._media=l.canPlayInline?document.createElement("video"):document.createElement("audio"),l._media.setAttribute("playsinline",""),l._media.setAttribute("webkit-playsinline",""),l._media.setAttribute("aria-hidden","true");var e=l._media.canPlayType("audio/ogg")?"data:audio/ogg;base64,T2dnUwACAAAAAAAAAADqnjMlAAAAAOyyzPIBHgF2b3JiaXMAAAAAAUAfAABAHwAAQB8AAEAfAACZAU9nZ1MAAAAAAAAAAAAA6p4zJQEAAAANJGeqCj3//////////5ADdm9yYmlzLQAAAFhpcGguT3JnIGxpYlZvcmJpcyBJIDIwMTAxMTAxIChTY2hhdWZlbnVnZ2V0KQAAAAABBXZvcmJpcw9CQ1YBAAABAAxSFCElGVNKYwiVUlIpBR1jUFtHHWPUOUYhZBBTiEkZpXtPKpVYSsgRUlgpRR1TTFNJlVKWKUUdYxRTSCFT1jFloXMUS4ZJCSVsTa50FkvomWOWMUYdY85aSp1j1jFFHWNSUkmhcxg6ZiVkFDpGxehifDA6laJCKL7H3lLpLYWKW4q91xpT6y2EGEtpwQhhc+211dxKasUYY4wxxsXiUyiC0JBVAAABAABABAFCQ1YBAAoAAMJQDEVRgNCQVQBABgCAABRFcRTHcRxHkiTLAkJDVgEAQAAAAgAAKI7hKJIjSZJkWZZlWZameZaouaov+64u667t6roOhIasBACAAAAYRqF1TCqDEEPKQ4QUY9AzoxBDDEzGHGNONKQMMogzxZAyiFssLqgQBKEhKwKAKAAAwBjEGGIMOeekZFIi55iUTkoDnaPUUcoolRRLjBmlEluJMYLOUeooZZRCjKXFjFKJscRUAABAgAMAQICFUGjIigAgCgCAMAYphZRCjCnmFHOIMeUcgwwxxiBkzinoGJNOSuWck85JiRhjzjEHlXNOSuekctBJyaQTAAAQ4AAAEGAhFBqyIgCIEwAwSJKmWZomipamiaJniqrqiaKqWp5nmp5pqqpnmqpqqqrrmqrqypbnmaZnmqrqmaaqiqbquqaquq6nqrZsuqoum65q267s+rZru77uqapsm6or66bqyrrqyrbuurbtS56nqqKquq5nqq6ruq5uq65r25pqyq6purJtuq4tu7Js664s67pmqq5suqotm64s667s2rYqy7ovuq5uq7Ks+6os+75s67ru2rrwi65r66os674qy74x27bwy7ouHJMnqqqnqq7rmarrqq5r26rr2rqmmq5suq4tm6or26os67Yry7aumaosm64r26bryrIqy77vyrJui67r66Ys67oqy8Lu6roxzLat+6Lr6roqy7qvyrKuu7ru+7JuC7umqrpuyrKvm7Ks+7auC8us27oxuq7vq7It/KosC7+u+8Iy6z5jdF1fV21ZGFbZ9n3d95Vj1nVhWW1b+V1bZ7y+bgy7bvzKrQvLstq2scy6rSyvrxvDLux8W/iVmqratum6um7Ksq/Lui60dd1XRtf1fdW2fV+VZd+3hV9pG8OwjK6r+6os68Jry8ov67qw7MIvLKttK7+r68ow27qw3L6wLL/uC8uq277v6rrStXVluX2fsSu38QsAABhwAAAIMKEMFBqyIgCIEwBAEHIOKQahYgpCCKGkEEIqFWNSMuakZM5JKaWUFEpJrWJMSuaclMwxKaGUlkopqYRSWiqlxBRKaS2l1mJKqcVQSmulpNZKSa2llGJMrcUYMSYlc05K5pyUklJrJZXWMucoZQ5K6iCklEoqraTUYuacpA46Kx2E1EoqMZWUYgupxFZKaq2kFGMrMdXUWo4hpRhLSrGVlFptMdXWWqs1YkxK5pyUzDkqJaXWSiqtZc5J6iC01DkoqaTUYiopxco5SR2ElDLIqJSUWiupxBJSia20FGMpqcXUYq4pxRZDSS2WlFosqcTWYoy1tVRTJ6XFklKMJZUYW6y5ttZqDKXEVkqLsaSUW2sx1xZjjqGkFksrsZWUWmy15dhayzW1VGNKrdYWY40x5ZRrrT2n1mJNMdXaWqy51ZZbzLXnTkprpZQWS0oxttZijTHmHEppraQUWykpxtZara3FXEMpsZXSWiypxNhirLXFVmNqrcYWW62ltVprrb3GVlsurdXcYqw9tZRrrLXmWFNtBQAADDgAAASYUAYKDVkJAEQBAADGMMYYhEYpx5yT0ijlnHNSKucghJBS5hyEEFLKnINQSkuZcxBKSSmUklJqrYVSUmqttQIAAAocAAACbNCUWByg0JCVAEAqAIDBcTRNFFXVdX1fsSxRVFXXlW3jVyxNFFVVdm1b+DVRVFXXtW3bFn5NFFVVdmXZtoWiqrqybduybgvDqKqua9uybeuorqvbuq3bui9UXVmWbVu3dR3XtnXd9nVd+Bmzbeu2buu+8CMMR9/4IeTj+3RCCAAAT3AAACqwYXWEk6KxwEJDVgIAGQAAgDFKGYUYM0gxphhjTDHGmAAAgAEHAIAAE8pAoSErAoAoAADAOeecc84555xzzjnnnHPOOeecc44xxhhjjDHGGGOMMcYYY4wxxhhjjDHGGGOMMcYYY0wAwE6EA8BOhIVQaMhKACAcAABACCEpKaWUUkoRU85BSSmllFKqFIOMSkoppZRSpBR1lFJKKaWUIqWgpJJSSimllElJKaWUUkoppYw6SimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaVUSimllFJKKaWUUkoppRQAYPLgAACVYOMMK0lnhaPBhYasBAByAwAAhRiDEEJpraRUUkolVc5BKCWUlEpKKZWUUqqYgxBKKqmlklJKKbXSQSihlFBKKSWUUkooJYQQSgmhlFRCK6mEUkoHoYQSQimhhFRKKSWUzkEoIYUOQkmllNRCSB10VFIpIZVSSiklpZQ6CKGUklJLLZVSWkqpdBJSKamV1FJqqbWSUgmhpFZKSSWl0lpJJbUSSkklpZRSSymFVFJJJYSSUioltZZaSqm11lJIqZWUUkqppdRSSiWlkEpKqZSSUmollZRSaiGVlEpJKaTUSimlpFRCSamlUlpKLbWUSkmptFRSSaWUlEpJKaVSSksppRJKSqmllFpJKYWSUkoplZJSSyW1VEoKJaWUUkmptJRSSymVklIBAEAHDgAAAUZUWoidZlx5BI4oZJiAAgAAQABAgAkgMEBQMApBgDACAQAAAADAAAAfAABHARAR0ZzBAUKCwgJDg8MDAAAAAAAAAAAAAACAT2dnUwAEAAAAAAAAAADqnjMlAgAAADzQPmcBAQA=":"data:audio/mpeg;base64,/+MYxAAAAANIAUAAAASEEB/jwOFM/0MM/90b/+RhST//w4NFwOjf///PZu////9lns5GFDv//l9GlUIEEIAAAgIg8Ir/JGq3/+MYxDsLIj5QMYcoAP0dv9HIjUcH//yYSg+CIbkGP//8w0bLVjUP///3Z0x5QCAv/yLjwtGKTEFNRTMuOTeqqqqqqqqqqqqq/+MYxEkNmdJkUYc4AKqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq";l._media.setAttribute("src",e)}catch(e){n.default("ERR placing media"+e.message)}var t=!1;$parcel$interopDefault(i)(l._media).on("playing",(function(e){t=null===l.canAutoPlayAdvanced||null===l.canAutoPlayMutedAdvanced,null===l.canAutoPlayAdvanced&&(l.canAutoPlayAdvanced=!!l._media&&!l._media.muted),null===l.canAutoPlayMutedAdvanced&&(l.canAutoPlayMutedAdvanced=!0),delete l._media,t&&l._checkEventsReady("canAutoPlayAdvancedCheck")}));var a=window.setTimeout((function(){t=null===l.canAutoPlayAdvanced||null===l.canAutoPlayMutedAdvanced,null===l.canAutoPlayAdvanced&&(l.canAutoPlayAdvanced=l.canAutoPlay),null===l.canAutoPlayMutedAdvanced&&(l.canAutoPlayMutedAdvanced=l.canAutoPlayMuted),delete l._media,t&&l._checkEventsReady("canAutoPlayAdvancedCheck")}),960);try{if(null===l.canAutoPlayAdvanced&&(l.canAutoPlayAdvanced=!1),l._media){l._media.muted=!0;var s=l._media.play();void 0!==s&&s.then&&($parcel$interopDefault(i)(l._media).off("playing"),a&&window.clearTimeout(a),s.then((function(){t=null===l.canAutoPlayAdvanced||null===l.canAutoPlayMutedAdvanced,null===l.canAutoPlayMutedAdvanced&&(l.canAutoPlayMutedAdvanced=!0),delete l._media,t&&l._checkEventsReady("canAutoPlayAdvancedCheck")})).catch((function(e){t=null===l.canAutoPlayAdvanced||null===l.canAutoPlayMutedAdvanced,null===l.canAutoPlayMutedAdvanced&&(l.canAutoPlayMutedAdvanced=!1),delete l._media,t&&l._checkEventsReady("canAutoPlayAdvancedCheck")})))}}catch(e){console.debug(e.message)}},l._forceCanAutoPlay?l._playout&&(l._playout.autoPlayAdvancedNotChecked="true"):l.isMobileDevice?(l.canAutoPlayAdvancedTest_mobile(),$parcel$interopDefault(i)(document).one("click."+l._eventNS,(function(){l.canAutoPlayAdvanced||l.canAutoPlayAdvancedTest_mobile()}))):(l.canAutoPlayAdvancedTest(),$parcel$interopDefault(i)(document).one("click."+l._eventNS,(function(){l.canAutoPlayAdvanced||l.canAutoPlayAdvancedTest()}))),l.svg=!!document.createElementNS&&!!document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,l.webp=!l.isSafari||l.iOSVersion>=14||!l.isiOS&&l.safariVersion>=16,l.checkWebpLossySupport=function(e){var t=new Image;t.onload=function(){e(t.width>0&&t.height>0)},t.onerror=function(){e(!1)},t.src="data:image/webp;base64,UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA"},l.checkWebpLossySupport((function(e){l.webp=e}));for(var u=0;u<l._html5Elements.length;u++)l.v=document.createElement(l._html5Elements[u]);l.supportsMediaTag=void 0!==l.v.canPlayType||l.isBustedAndroid;try{l.v.canPlayType("video/mp4")}catch(e){l.supportsMediaTag=!1}l.canPlayType=function(e,t){var i=l.v.canPlayType(e);return l.supportsMediaTag&&("probably"==i||!t&&"maybe"==i)},l.canPlayHLS=(!l._pubAvoidAndroidNativeHLS||!l.isAndroid)&&(l.canPlayType("application/x-mpegURL",l.isAndroid)||l.canPlayType("vnd.apple.mpegURL",l.isAndroid)||l.canPlayType("application/vnd.apple.mpegURL",l.isAndroid)||l.isAndroid&&"4.4"==l.androidVersion.substring(0,3)&&l.isChrome),l.canPlayMPD=!!l.canPlayType("application/dash+xml"),l.canPlayHLSJS=!(void 0===window.MediaSource||!window.MediaSource.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"')),l.compute_canAutoPlay=function(){return!!l._forceCanAutoPlay||(null!==l.canAutoPlayAdvanced?l.canAutoPlayAdvanced:!!l.supportsMediaTag&&(!l.isiOS&&!l.isAndroid))},Object.defineProperty?Object.defineProperty(this,"canAutoPlay",{get:function(){return r.compute_canAutoPlay()}}):this.canAutoPlay=this.compute_canAutoPlay(),l.compute_canAutoPlayMuted=function(){return!!l._forceCanAutoPlay||(null!==l.canAutoPlayMutedAdvanced?l.canAutoPlayMutedAdvanced:!!l.supportsMediaTag&&(!(l.isiOS&&l.iOSVersion<10)&&!(l.isAndroid&&l.chromeVersion<53)))},Object.defineProperty?Object.defineProperty(this,"canAutoPlayMuted",{get:function(){return r.compute_canAutoPlayMuted()}}):this.canAutoPlayMuted=this.compute_canAutoPlayMuted(),l.hasSemiNativeFullScreen=void 0!==l.v.webkitEnterFullscreen,l.hasNativeFullscreen=void 0!==l.v.requestFullscreen,l.hasWebkitNativeFullScreen=void 0!==l.v.webkitRequestFullScreen,l.hasMozNativeFullScreen=void 0!==l.v.mozRequestFullScreen,l.hasMsNativeFullScreen=void 0!==l.v.msRequestFullscreen,l.hasTrueNativeFullScreen=l.hasWebkitNativeFullScreen||l.hasMozNativeFullScreen||l.hasMsNativeFullScreen,l.nativeFullScreenEnabled=l.hasTrueNativeFullScreen,l.hasMozNativeFullScreen?l.nativeFullScreenEnabled=document.mozFullScreenEnabled:l.hasMsNativeFullScreen&&(l.nativeFullScreenEnabled=document.msFullscreenEnabled),l.isChrome&&(l.hasSemiNativeFullScreen=!1),l.fullScreenEventName="",l.hasWebkitNativeFullScreen?l.fullScreenEventName="webkitfullscreenchange":l.hasMozNativeFullScreen?l.fullScreenEventName="mozfullscreenchange":l.hasMsNativeFullScreen&&(l.fullScreenEventName="MSFullscreenChange"),l.isFullScreen=function(){return l.mozRequestFullScreen?document.mozFullScreen:l.webkitRequestFullScreen?document.webkitIsFullScreen:l.hasMsNativeFullScreen?null!==document.msFullscreenElement:void 0},l.requestFullScreen=function(e){l.hasWebkitNativeFullScreen?e.webkitRequestFullScreen():l.hasMozNativeFullScreen?e.mozRequestFullScreen():l.hasMsNativeFullScreen&&e.msRequestFullscreen()},l.cancelFullScreen=function(){l.hasWebkitNativeFullScreen?document.webkitCancelFullScreen():l.hasMozNativeFullScreen?document.mozCancelFullScreen():l.hasMsNativeFullScreen&&document.msExitFullscreen()},l.hasSemiNativeFullScreen&&l._ua.match(/mac os x 10_5/i)&&(l.hasNativeFullScreen=!1,l.hasSemiNativeFullScreen=!1),l.testAll=function(e){var t="";for(var i in l)-1=="$element init _asyncDetections _testVid _ua _html5Elements testAll requestFullScreen v fullScreenEventName cancelFullScreen _checkEventsReady".indexOf(i)&&(t+=e?"<strong>"+i+"</strong>":i,t+=" = ",t+="function"==typeof l[i]?l[i]():l[i],t+=";",e&&(t+="<br />"),t+="\n");return t},l.canAirPlay=!!window.WebKitPlaybackTargetAvailabilityEvent,l.compute_canChromeCast=function(){return!!(window.chrome&&window.chrome.cast&&window.chrome.cast.isAvailable)},Object.defineProperty?Object.defineProperty(this,"canChromeCast",{get:function(){return r.compute_canChromeCast()}}):this.canChromeCast=this.compute_canChromeCast(),l.compute_isSDKPlayer=function(){return!(!window.iOSAppPlayer&&!window.bbAppBridge)},Object.defineProperty?Object.defineProperty(this,"isSDKPlayer",{get:function(){return r.compute_isSDKPlayer()}}):this.isSDKPlayer=l.compute_isSDKPlayer(),Object.defineProperty?Object.defineProperty(this,"location",{get:function(){return r._getLocation()}}):this.location=this._getLocation(),Object.defineProperty?Object.defineProperty(this,"referrer",{get:function(){return r._getReferrer()}}):this.referrer=this._getReferrer()},s.prototype._getLocation=function(){var e=window.location.href,t=e.match(/#!.*referrer=([^&]+)/);return null!=t&&t.length>1&&(e=decodeURIComponent(t[1])),e},s.prototype._getReferrer=function(){var e=document.referrer,t=window.location.href.match(/#!.*realReferrer=([^&]+)/);return null!=t&&t.length>1&&(e=decodeURIComponent(t[1])),e},s.prototype.exit=function(){return window.removeEventListener("orientationchange",this._onOrientationChangeBound),a.default.getService(this._opts.playerAliasOrId).setInstance("Detections",null),null}})),parcelRequire.register("gVYGo",(function(module,exports){$parcel$export(module.exports,"default",(function(){return Executer})),parcelRequire("6JR1F");var $hGJI5=parcelRequire("hGJI5"),$3DsR2=parcelRequire("3DsR2"),Executer=function(e,t){this.$element=e,this._opts=t,this._playout=t.playoutData,this._msasController=$3DsR2.default.getService(this._opts.playerAliasOrId).getInstance("MSASController"),this._init()};Executer.prototype._init=function(){var e,t,i;$3DsR2.default.getService(this._opts.playerAliasOrId).setInstance("Executer",this),this._api=$3DsR2.default.getService(this._opts.playerAliasOrId).getInstance("PublicAPI"),this.$iaWrapper=null===(e=this.$element)||void 0===e?void 0:e.closest(".bb_iawr"),this._opts.publicationData.customCode&&this.execute(this._opts.publicationData.customCode);var n=this._api;if((null===(t=this._playout)||void 0===t?void 0:t.customCode)&&this.execute(this._playout.customCode),(null===(i=this._playout)||void 0===i?void 0:i.passbackCode)&&n){var a,s,o,r=this;if(this._adPlayed=!1,n.on("adstarted",(function(){r._adPlayed=!0})),null===(a=this._msasController)||void 0===a?void 0:a.isOutstreamRefreshEnabled())(null===(s=this._msasController)||void 0===s?void 0:s.isOutstreamRefreshRetryEnabled())||null===(o=this.$element)||void 0===o||o.on("bb_msas_outstream_refresh_finished",(function(){r.execute(r._playout.passbackCode)}));else{var l=this,u=0;n.on("statechange",(function(){"idle"===n.getState()&&(1===u&&l.execute(l._playout.passbackCode),u++)}))}}},Executer.prototype.exit=function(){return this._api&&(this._api.off("statechange"),this._api.off("adstarted")),$3DsR2.default.getService(this._opts.playerAliasOrId).setInstance("Executer",null),null},Executer.prototype.execute=function(code){var _this=this,$=$parcel$interopDefault($hGJI5),$$api=this._api,$$adPlayed=!!this._adPlayed,$$wrapper=this.$iaWrapper;try{return eval(code)}catch(e){console.debug("Notice: there was an error executing the javascript by Executer.prototype.execute. Provided JavaScript was: "+code),console.debug(e);var msg="CODE: "+code.replace(/\r?\n/g,"").substring(0,100);this.$element.trigger("bb_javascript_execution_error",[{msg:msg,error:null==e?void 0:e.message}])}}})),parcelRequire.register("dqB3a",(function(e,t){$parcel$export(e.exports,"default",(function(){return s})),parcelRequire("6JR1F");var i=parcelRequire("hGJI5"),n=parcelRequire("3DsR2"),a=parcelRequire("e06N2"),s=function(e,t){var s=this;this.$element=e,this._opts=t,this._loggerUrl=window.location.protocol+"//stats.bluebillywig.com",this._phase="",this._ready=!1,this._firstPlay=!0,this._useStickyMode=!1,this._isSticky=!1,this._forceClosed=!1,this._animatingPosition=!1,this._inittedStickyness=!1,this._started=!1,this._autoPaused=!1,this._ended=!1,this._recentFullscreenChange=!1,this._showFloatingCloseButton=!1,this._msasController=n.default.getService(this._opts.playerAliasOrId).getInstance("MSASController"),this._isAMP=window.location.hash.indexOf("amp=1")>-1,this._clip=this._opts.clipData||null,this._assets=null,this._watchingElementSize=!1,this._wrapperIsInView=null,this._playing=!1,this._fullscreen=!1,this._fullScreenMismatch=!1,this._documentVisible="hidden"!==document.visibleState,this._playerWidth=null,this._playerHeight=null,this._windowWidth=null,this._windowHeight=null,this._aspectRatio=null,this._aspectRatio_override=null,this._aspectRatio_media=null,this._aspectRatio_clip=null,this._extraHeight=0,this._playoutData=this._opts.playoutData,this._forceInviewActions=!1,"true"===this._playoutData.forceInview&&(this._forceInviewActions=!0);var o=this._playoutData.width,r=this._playoutData.height;this._autoHeight="true"===this._playoutData.autoHeight;var l="true"===this._playoutData.responsiveSizing;if((l||void 0===r)&&(this._autoHeight=!0),this._percentagePlayer=(null==o?void 0:o.indexOf("%"))>-1&&(null==r?void 0:r.indexOf("%"))>-1&&!this._autoHeight&&!l,this._exited=!1,this._iaOrigZIndex=null,this._elOrigZIndex=null,this._deltaHeight_0=null,this._deltaHeight_1=null,this.$element){var u,d,c=this;if(n.default.getService(this._opts.playerAliasOrId).setInstance("Interactivity",this),this.$interactivityWrapper=this.$element.closest(".bb_iawr"),"always"===this._playoutData.clearBothOption&&this.$interactivityWrapper.css({clear:"both"}),this._playoutData.maxWidth&&this.$element.css({maxWidth:this._playoutData.maxWidth+"px"}),this._detections=n.default.getService(this._opts.playerAliasOrId).getInstance("Detections"),this._playerIsReady=this.$element.attr("data-isready"),this._animationSpeed=this._opts.touchDevice||-1!=window.navigator.userAgent.indexOf("MSIE 7")||-1!==window.navigator.userAgent.indexOf("MSIE 6")?1:600,this._startCollapsed="true"===this._playoutData.startCollapsed||!0===this._playoutData.startCollapsed,this._showOnlyWhenPrerollAvailable="true"===this._playoutData.showOnlyWhenPrerollAvailable||!0===this._playoutData.showOnlyWhenPrerollAvailable,this._showOnlyWhenPrerollAvailable&&(this._startCollapsed=!0),this._startCollapsed&&this._startCollapsedInit(),this._onPlayerReadyBound=this._onPlayerReady.bind(this),this._onPhaseChangeBound=this._onPhaseChange.bind(this),this._onPlayoutChangedBound=this._onPlayoutChanged.bind(this),this._onLoadedClipDataBound=this._onLoadedClipData.bind(this),this._onPreCanPlayBound=this._onPreCanPlay.bind(this),this._onPlayerEndedBound=this._onPlayerEnded.bind(this),this._onMsasFinishedBound=this._onMsasFinished.bind(this),this._onAdSkippedBound=this._onAdSkipped.bind(this),this._onFullScreenChangeBound=this._onFullScreenChange.bind(this),this._onAssetsChangedBound=this._onAssetsChanged.bind(this),this._onVolumeChangeBound=this._onVolumeChange.bind(this),this._onAdSizeChangedBound=this._onAdSizeChanged.bind(this),this._onAutoPlayCheckReadyBound=this._onAutoPlayCheckReady.bind(this),this._onAutoPauseBound=this._onAutoPause.bind(this),this._onResizedBound=this._onResized.bind(this),this._onPlayerPausedBound=this._onPlayerPaused.bind(this),this._onPlayerPlayingBound=this._onPlayerPlaying.bind(this),this._onWindowResizeBound=this._onWindowResize.bind(this),this._onOrientationChangeBound=this._onOrientationChange.bind(this),this._onInViewBound=this._onInView.bind(this),this._onOutViewBound=this._onOutView.bind(this),this._onMoveBackClickBound=this._onMoveBackClick.bind(this),"true"===this._playoutData.waitForPageReady?$parcel$interopDefault(i)((function(){c._playerIsReady=c.$element.attr("data-isready"),"true"===c._playerIsReady?c._onPlayerReady():c.$element.on("ready",c._onPlayerReadyBound)})):(this._playerIsReady=this.$element.attr("data-isready"),"true"===this._playerIsReady?this._onPlayerReady():this.$element.on("ready",this._onPlayerReadyBound)),this.$element.on("bb_phase_change",this._onPhaseChangeBound),this.$element.on("bb_playout_changed",this._onPlayoutChangedBound),this.$element.on("bb_mediaclip_loaded",this._onLoadedClipDataBound),this.$element.on("bb_msas_pre_canplay",this._onPreCanPlayBound),this.$element.on("bb_as_pre_canplay",this._onPreCanPlayBound),this.$element.on("bb_media_finished",this._onPlayerEndedBound),this.$element.on("bb_msas_main_finished",this._onMsasFinishedBound),this.$element.on("bb_adsystem_skipped",this._onAdSkippedBound),this.$element.on("bb_fullscreen_change",this._onFullScreenChangeBound),this.$element.on("bb_assets_changed",this._onAssetsChangedBound),this.$element.on("bb_media_volume_change",this._onVolumeChangeBound),this.$element.on("bb_ad_size_changed",this._onAdSizeChangedBound),this.$element.on("bb_autoplay_check_ready",this._onAutoPlayCheckReadyBound),this.$element.on("bb_program_autopause",this._onAutoPauseBound),this.$element.on("bb_resized",this._onResizedBound),this.$element.on("pause",this._onPlayerPausedBound),this.$element.on("playing",this._onPlayerPlayingBound),(null===(u=this._msasController)||void 0===u?void 0:u.isOutstreamRefreshEnabled())&&!(null===(d=this._msasController)||void 0===d?void 0:d.isOutstreamRefreshRetryEnabled())){var h=this,p=function(){h.$element.off("bb_msas_outstream_refresh_finished",p),h._collapseInteractivityWrapper()};this.$element.on("bb_msas_outstream_refresh_finished",p)}}window.ResizeObserver?this._setupResizeObserver():parcelRequire("25dEx").then((function(e){"function"==typeof(null==e?void 0:e.install)&&(e.install(),s._setupResizeObserver())})).catch((function(){a.default("[Interactivity] Failed to polyfill ResizeObserver")}))};s.prototype._play=function(){var e;this._ended||this._justForceClosed||this._autoPaused||null===(e=this.api)||void 0===e||e.play()},s.prototype._pause=function(){var e;this._justForceClosed&&(null===(e=this.api)||void 0===e||e.pause())},s.prototype._onPhaseChange=function(e,t){this._phase=(null==t?void 0:t.phase)||""},s.prototype._onPlayoutChanged=function(e,t){if(null==t?void 0:t.playoutData){var i,n=null===(i=this.api)||void 0===i?void 0:i.getPlayoutData();if(n&&(this._playoutData=n),this._alwaysFloat="true"===this._playoutData.alwaysFloat&&this._stickyMode&&"none"!==this._stickyMode&&"disabled"!==this._stickyMode,this._staySticky="true"===this._playoutData.staySticky&&this._stickyMode&&"none"!==this._stickyMode&&"disabled"!==this._stickyMode,void 0!==t.playoutData.stickyMode&&(this._stickyMode=t.playoutData.stickyMode,this._stickyMode&&"none"!==this._stickyMode&&"disabled"!==this._stickyMode?(this._useStickyMode=!0,this._checkStickyness()):(this._checkStickyness(!0),this._useStickyMode=!1)),void 0!==t.playoutData.aspectRatio&&this._getAspectRatio(!0),void 0!==t.playoutData.width||void 0!==t.playoutData.height||void 0!==t.playoutData.responsiveSizing||void 0!==t.playoutData.autoHeight){var a=void 0!==t.playoutData.width?t.playoutData.width:this._playoutData.width,s=void 0!==t.playoutData.height?t.playoutData.height:this._playoutData.height;this._autoHeight=void 0!==t.playoutData.autoHeight?"true"===t.playoutData.autoHeight:"true"===this._playoutData.autoHeight;var o=void 0!==t.playoutData.responsiveSizing?"true"===t.playoutData.responsiveSizing:"true"===this._playoutData.responsiveSizing;(o||void 0===s)&&(this._autoHeight=!0),this._percentagePlayer=(null==a?void 0:a.indexOf("%"))>-1&&(null==s?void 0:s.indexOf("%"))>-1&&!this._autoHeight&&!o,this._autoHeight||(null==a?void 0:a.indexOf("%"))>-1||(null==s?void 0:s.indexOf("%"))>-1?this._watchElementSize():this._unwatchElementSize()}}},s.prototype._onVolumeChange=function(){var e;this._muted=null===(e=this.api)||void 0===e?void 0:e.getMuted()},s.prototype._onPlayerReady=function(){if(this.api=n.default.getService(this._opts.playerAliasOrId).getInstance("PublicAPI"),this._executer=n.default.getService(this._opts.playerAliasOrId).getInstance("Executer"),this._playoutData.stickyMode&&(this._stickyMode=this._playoutData.stickyMode),this._alwaysFloat="true"===this._playoutData.alwaysFloat&&this._stickyMode&&"none"!==this._stickyMode&&"disabled"!==this._stickyMode,this._staySticky="true"===this._playoutData.staySticky&&this._stickyMode&&"none"!==this._stickyMode&&"disabled"!==this._stickyMode,this._autoPlay="true"===this._playoutData.autoPlay,this._showFloatingCloseButton="true"===this._playoutData.showFloatingCloseButton,!this._ready){var e;if(this._ready=!0,this.$element.css({margin:"0 auto"}),window.addEventListener("resize",this._onWindowResizeBound),void 0!==window.onorientationchange&&(null===(e=this._detections)||void 0===e?void 0:e.isiOS)?window.onorientationchange=this._onOrientationChangeBound:window.addEventListener("orientationchange",this._onOrientationChangeBound),this.$element.on("bb_iawr_inview",this._onInViewBound),this.$element.on("bb_iawr_outview",this._onOutViewBound),!this._autoPlay&&(this._showOnlyWhenPrerollAvailable||"true"===this._playoutData.preloadMainroll)){var t=this,a=function(e){var i;if(t._phase&&"INIT"!==t._phase)return window.removeEventListener("scroll",a),void window.removeEventListener("touchend",a);"scroll"===(null==e?void 0:e.type)&&"fake"===e.detail||window.scrollY>0&&(null===(i=t.api)||void 0===i?void 0:i.preloadAds(t._showOnlyWhenPrerollAvailable?"PRE":"MAIN"))&&(window.removeEventListener("scroll",a),window.removeEventListener("touchend",a))};window.addEventListener("scroll",a,{passive:!0}),window.addEventListener("touchend",a)}this._updateWindowSize(),this._playerHeight=this.$element.height(),this._playerWidth=this.$element.width(),this._iaHeight=this.$interactivityWrapper.height(),this._iaWidth=this.$interactivityWrapper.width();var s=this._playoutData.width,o=this._playoutData.height;if(this._autoHeight="true"===this._playoutData.autoHeight,("true"===this._playoutData.responsiveSizing||void 0===o)&&(this._autoHeight=!0),(this._autoHeight||(null==s?void 0:s.indexOf("%"))>-1||(null==o?void 0:o.indexOf("%"))>-1)&&this._watchElementSize(),(this._playoutData.textAbovePlayer||this._playoutData.textCommercialSkip)&&(this.$wrapperAbovePlayer=$parcel$interopDefault(i)('<span class="bb-above" style="color:#000;font-size:10px;font-family:arial;text-align:center;z-index:99999;width:100%;display:block;height:14px;line-height:14px;"></span>'),this.$interactivityWrapper.prepend(this.$wrapperAbovePlayer)),this._playoutData.textAbovePlayer&&(this.$wrapperAbovePlayer.bb_appendSanitized(this._playoutData.textAbovePlayer),this._extraHeight=this.$wrapperAbovePlayer.height()),this._playoutData.textCommercialSkip){var r=this;this._$closeButton=$parcel$interopDefault(i)('<span class="bb-above-closebutton" style="cursor:pointer;position:relative;text-decoration:underline;right:3px;float:right;">'+this._playoutData.textCommercialSkip+"</span>").on("click",(function(){var e;(null===(e=r.api)||void 0===e?void 0:e.pause())||r._pause(),r._collapseInteractivityWrapper()})).bb_sanitize(),this.$wrapperAbovePlayer.prepend(this._$closeButton)}this._startCollapsed?this._showState="collapsed":(this._extraHeight&&this.$interactivityWrapper.height(this.$element.height()+this._extraHeight),this._showState="expanded"),window.dispatchEvent(new CustomEvent("resize")),this._alwaysFloat&&this._onInView()}},s.prototype._onAutoPlayCheckReady=function(e,t){"stickTop"!==this._stickyMode||this._autoPlay||(a.default("[Interactivity] _onAutoPlayCheckReady stickTop & not autoPlay"),(t&&t.canAutoPlay||t&&t.canAutoPlayMuted&&this._muted||t&&t.canAutoPlayMuted&&this._playoutData&&"true"===this._playoutData.autoMute)&&this._play())},s.prototype._onAutoPause=function(e,t){this._autoPaused=!0,"autoAdvanceOnlyWithPrerollAd"===(null==t?void 0:t.why)&&"true"===this._playoutData.hidePlayerOnEnd&&this._collapseInteractivityWrapper()},s.prototype._onResized=function(e){this._checkFullScreenMismatch()},s.prototype.exit=function(){var e,t,i,a;return this._exited=!0,this.$element.off("ready",this._onPlayerReadyBound),this.$element.off("bb_phase_change",this._onPhaseChangeBound),this.$element.off("bb_playout_changed",this._onPlayoutChangedBound),this.$element.off("bb_mediaclip_loaded",this._onLoadedClipDataBound),this.$element.off("bb_msas_pre_canplay",this._onPreCanPlayBound),this.$element.off("bb_as_pre_canplay",this._onPreCanPlayBound),this.$element.off("bb_media_finished",this._onPlayerEndedBound),this.$element.off("bb_msas_main_finished",this._onMsasFinishedBound),this.$element.off("bb_adsystem_skipped",this._onAdSkippedBound),this.$element.off("bb_fullscreen_change",this._onFullScreenChangeBound),this.$element.off("bb_assets_changed",this._onAssetsChangedBound),this.$element.off("bb_media_volume_change",this._onVolumeChangeBound),this.$element.off("bb_ad_size_changed",this._onAdSizeChangedBound),this.$element.off("bb_autoplay_check_ready",this._onAutoPlayCheckReadyBound),this.$element.off("bb_program_autopause",this._onAutoPauseBound),this.$element.off("bb_resized",this._onResizedBound),this.$element.off("pause",this._onPlayerPausedBound),this.$element.off("playing",this._onPlayerPlayingBound),this.$element.off("bb_iawr_inview",this._onInViewBound),this.$element.off("bb_iawr_outview",this._onOutViewBound),window.removeEventListener("resize",this._onWindowResizeBound),void 0!==window.onorientationchange&&(null===(e=this._detections)||void 0===e?void 0:e.isiOS)&&(window.onorientationchange=null),window.removeEventListener("onorientationchange",this._onOrientationChangeBound),null===(t=this._$moveBackButton)||void 0===t||t.off("click",this._onMoveBackClickBound),null===(i=this._resizeObserver)||void 0===i||i.disconnect(),null===(a=this._intersectionObserver)||void 0===a||a.disconnect(),n.default.getService(this._opts.playerAliasOrId).setInstance("Interactivity",null),null},s.prototype.getShowState=function(){return this._showState},s.prototype._onFullScreenChange=function(e,t){var i=this;void 0!==(null==t?void 0:t.fullscreen)&&(this._fullscreen=!!t.fullscreen),this._checkFullScreenMismatch(),this._deltaHeight_0=null,this._deltaHeight_1=null,this._autoHeight&&this._updateHeight(),this._animatingPosition=!0,this._recentFullscreenChange=!0,setTimeout((function(){var e;i._animatingPosition=!1,!(null===(e=i.api)||void 0===e?void 0:e.isFullscreen())&&i._isSticky&&i._forceClose(!1),i._recentFullscreenChange=!1}),1)},s.prototype._setupResizeObserver=function(){var e=this,t=getComputedStyle(document.body)["writing-mode"]||"horizontal-tb",i="horizontal-tb"===t?"inlineSize":"blockSize",n="horizontal-tb"===t?"blockSize":"inlineSize",a=this.$element[0],s=this.$interactivityWrapper[0];this._animationFrameId=null,this._resizeObserver=new ResizeObserver((function(t){var o=!1,r=!1,l=!1,u=!1,d=!0,c=!1,h=void 0;try{for(var p,_=t[Symbol.iterator]();!(d=(p=_.next()).done);d=!0){var m,f,v,g=p.value;if((null===(m=g.contentBoxSize)||void 0===m?void 0:m.length)||g.contentRect){var y=(null===(f=g.contentBoxSize)||void 0===f?void 0:f[0][i])||g.contentRect.width,b=(null===(v=g.contentBoxSize)||void 0===v?void 0:v[0][n])||g.contentRect.height;switch(g.target){case a:o=e._width!==y,r=e._height!==b,e._width=y,e._height=b,e._playerWidth=y,e._playerHeight=b;break;case s:l=e._iaWidth!==y,u=e._iaHeight!==b,e._iaWidth=y,e._iaHeight=b}}}}catch(e){c=!0,h=e}finally{try{d||null==_.return||_.return()}finally{if(c)throw h}}if(e._watchingElementSize&&e._checkResizedElement(o,r,l,u),o||r||u||l){var k=e;e._animatingPosition?e._animationFrameId||(e._animationFrameId=requestAnimationFrame((function(){k.$element.triggerHandler("bb_resized"),k._animationFrameId=null}))):e.$element.triggerHandler("bb_resized")}})),this._resizeObserver.observe(a),this._resizeObserver.observe(s)},s.prototype._handleInView=function(e){var t;this._wrapperIsInView!==e&&(this._wrapperIsInView=e,(!this._useStickyMode||this._alwaysFloat||this._staySticky&&this._isSticky||this._justForceClosed)&&(!this._useStickyMode||"stickToElement"!==this._stickyMode||!this._alwaysFloat||this._justForceClosed)||this._checkStickyness()),e&&!this._started&&(null===(t=this._startCollapsedInView)||void 0===t?void 0:t.match(/play/i))&&this._play()},s.prototype._checkResizedElement=function(e,t,i,n){(this._expanding||"collapsed"!==this._showState&&(e||t||i||n))&&((e||i||this._percentagePlayer&&n||this._expanding)&&(this._onPlayerResize(),this._autoHeight&&this._updateHeight()))},s.prototype._watchElementSize=function(){this._checkResizedElement(),this._watchingElementSize=!0},s.prototype._unwatchElementSize=function(){this._watchingElementSize=!1},s.prototype._startCollapsedInit=function(){this._showState="collapsed",this.$interactivityWrapper.css({height:"0",opacity:"0.01"}),this.$wrapperAbovePlayer&&this.$wrapperAbovePlayer.hide(),this._startCollapsedInView=this._playoutData.interactivity_inView||"none"},s.prototype._onPlayerPaused=function(){this._playing=!1},s.prototype._onPreCanPlay=function(){this._showOnlyWhenPrerollAvailable&&"collapsed"===this._showState&&this._expandInteractivityWrapper(!0)},s.prototype._onPlayerPlaying=function(){var e;this._ended=!1,this._playoutData&&"whilePlaying"===this._playoutData.clearBothOption&&this.$interactivityWrapper.css({clear:"both"}),"mainroll"===(null===(e=this._opts.clipData)||void 0===e?void 0:e.mediatype)&&this.$interactivityWrapper.css("marginBottom","10px"),this._playing=!0,this._started=!0,this._autoPaused=!1,"collapsed"===this._showState&&this._expandInteractivityWrapper();var t=this._firstPlay;this._firstPlay&&(this._firstPlay=!1,this._initStickyness()),(this._alwaysFloat||t&&this._autoPlay&&!this._wrapperIsInView)&&this._checkStickyness()},s.prototype._onAdSkipped=function(){var e,t;!(null===(e=this._msasController)||void 0===e?void 0:e.isOutstreamRefreshEnabled())&&this._isSticky&&"mainroll"===(null===(t=this._opts.clipData)||void 0===t?void 0:t.mediatype)&&this._forceClose()},s.prototype._onMsasFinished=function(){var e,t,i;"mainroll"===(null===(e=this._opts.clipData)||void 0===e?void 0:e.mediatype)&&(this._ended=!0),this.$element.css("cursor","auto"),(null===(t=this._msasController)||void 0===t?void 0:t.isOutstreamRefreshEnabled())||"true"!==this._playoutData.hidePlayerOnEnd||"mainroll"!==(null===(i=this._opts.clipData)||void 0===i?void 0:i.mediatype)||this._collapseInteractivityWrapper()},s.prototype._onPlayerEnded=function(){var e,t;this._ended=!0;var i="mainroll"===(null===(e=this._opts.clipData)||void 0===e?void 0:e.mediatype);(!i||(null===(t=this._msasController)||void 0===t?void 0:t.isOutstreamRefreshEnabled()))&&i||"true"!==this._playoutData.hidePlayerOnEnd||this._collapseInteractivityWrapper()},s.prototype._onPlayerError=function(){"true"===this._playoutData.hidePlayerOnEnd&&this._collapseInteractivityWrapper()},s.prototype._expandInteractivityWrapper=function(e){var t=this;this.$wrapperAbovePlayer&&(this.$wrapperAbovePlayer.show(),this._extraHeight=this.$wrapperAbovePlayer.outerHeight());var i=n.default.getService(this._opts.playerAliasOrId).getInstance("InViewController");window.dispatchEvent(new CustomEvent("scroll",{detail:"fake"})),null==i||i.disable(),this._expanding=!0;var a=this._autoHeight?Math.round(this._playerWidth/this._getAspectRatio()):this.$element.height(),s=this._extraHeight+a;this.$element.height(a),this.$element.css({margin:"0 auto"}),this.$interactivityWrapper.css({opacity:"1"}),e||this._alwaysFloat?this._animationSpeed=0:this.$interactivityWrapper.css({transition:"height ".concat(this._animationSpeed/1e3,"s")}),this.$interactivityWrapper.css({height:"".concat(s,"px")}),setTimeout((function(){null==i||i.enable(),t._expanding=!1,t._showState="expanded",t.$element.trigger("bb_expanded"),window.dispatchEvent(new CustomEvent("resize")),t.$interactivityWrapper.css({transition:""}),t._useStickyMode&&t._checkStickyness()}),this._animationSpeed+1),this._useStickyMode&&this._checkStickyness()},s.prototype._collapseInteractivityWrapper=function(){var e,t,i,n=this;(null===(e=this._msasController)||void 0===e?void 0:e.isOutstreamRefreshRetryEnabled())||(this.$element.find(".bb-placeholder-layer").css("visibility","hidden"),this.exit(),null===(t=this._$moveBackButton)||void 0===t||t.hide(),null===(i=this._$closeButton)||void 0===i||i.hide(),this.$interactivityWrapper.css({transition:"height ".concat(this._animationSpeed/1e3,"s"),height:"0px"}),this._isSticky&&this.$element.css({transition:"height ".concat(this._animationSpeed/1e3,"s"),height:"0px"}),setTimeout((function(){n.$interactivityWrapper.hide(),n._showState="collapsed",n.$element.triggerHandler("bb_collapsed"),"whilePlaying"===n._playoutData.clearBothOption&&n.$interactivityWrapper.css({clear:"none"})}),this._animationSpeed))},s.prototype._removePlayer=function(){this.$interactivityWrapper.hide(),this.$interactivityWrapper.remove(),this._showState="collapsed"},s.prototype._onAssetsChanged=function(e,t){t&&(this._assets=t.assets),this._autoHeight&&this._updateHeight()},s.prototype._onLoadedClipData=function(e,t){t&&(this._clip=t.clipData||null),this._aspectRatio_media=null,this._aspectRatio_clip=null,this._checkFullScreenMismatch()},s.prototype._onMoveBackClick=function(){this._forceClose(!0)},s.prototype._onInView=function(){this._handleInView(!0)},s.prototype._onOutView=function(){this._handleInView(!1)},s.prototype._convertHex=function(e,t){return e=e.replace("#",""),"rgba("+parseInt(e.substring(0,2),16)+","+parseInt(e.substring(2,4),16)+","+parseInt(e.substring(4,6),16)+","+t/100+")"},s.prototype._initStickyness=function(){if(this._alwaysFloat="true"===this._playoutData.alwaysFloat&&this._stickyMode&&"none"!==this._stickyMode&&"disabled"!==this._stickyMode,this._disableFloatAnimation="true"===this._playoutData.disableFloatAnimation&&this._stickyMode&&"none"!==this._stickyMode,90===Math.abs(window.orientation)||!this._stickyMode||-1===["stickTop","stickBoth","stickBottomRight","stickBottomLeft","stickTopRight","stickTopLeft","stickDownBottomRight","stickDownBottomLeft","stickDownTopCenter","stickToElement"].indexOf(this._stickyMode))return!1;switch(this._stickyMode){case"stickBoth":case"stickBottomRight":case"stickBottomLeft":case"stickTopRight":case"stickTopLeft":case"stickDownBottomRight":case"stickDownBottomLeft":case"stickDownTopCenter":case"stickToElement":this._disableFloatAnimation?this._animationSpeedMove=0:this._animationSpeedMove=500;var e,t={"transition-property":"top, right, bottom, left","transition-duration":"".concat(this._animationSpeedMove/1e3,"s")};if(!this._alwaysFloat)null===(e=this.$wrapperAbovePlayer)||void 0===e||e.css(t),this.$element.css(t);this._$moveBackButton=$parcel$interopDefault(i)('<div class="bb-float-close-button">&times;</div>'),this._$moveBackButton.css({cursor:"pointer",fontSize:"20px",boxSizing:"border-box",right:"0",top:"-26px",fontWeigth:"bold",borderRadius:"25px",lineHeight:"10px",padding:"5px",fontWeight:"bold",border:"2px solid #"+this._playoutData.skin_foregroundColor,position:"absolute",display:"none",overflow:"hidden",backgroundColor:this._convertHex(this._playoutData.skin_backgroundColor,this._playoutData.alphaControlBar),color:"#"+this._playoutData.skin_foregroundColor}),this._$moveBackButton.on("click",this._onMoveBackClickBound),(!this._alwaysFloat&&!this._staySticky||(this._alwaysFloat||this._staySticky)&&this._showFloatingCloseButton)&&this.$element.append(this._$moveBackButton)}this._useStickyMode=this._stickyMode&&"none"!==this._stickyMode&&"disabled"!==this._stickyMode,this._inittedStickyness=!0},s.prototype._checkStickyness=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=e||this._wrapperIsInView&&!this._alwaysFloat&&!(this._staySticky&&this._isSticky);if(this._useStickyMode&&"collapsed"!==this._showState&&(this._inittedStickyness||a)){this._executer||(this._executer=n.default.getService(this._opts.playerAliasOrId).getInstance("Executer"));var s=0,o=0,r=window.innerWidth>=454?400:window.innerWidth-54,l=this._getAspectRatio();this._executer&&this._executer.execute&&this._playoutData&&(this._playoutData.distanceFromTop&&(s=Number(this._executer.execute(this._playoutData.distanceFromTop))||0),this._playoutData.distanceFromBottom&&(o=Number(this._executer.execute(this._playoutData.distanceFromBottom))||0),this._playoutData.floatingWidth&&(r=Number(this._executer.execute(this._playoutData.floatingWidth))||r));var u=this.$interactivityWrapper||$parcel$interopDefault(i)("<div></div>"),d=this.$element||$parcel$interopDefault(i)("<div></div>"),c=this.$wrapperAbovePlayer||$parcel$interopDefault(i)("<div></div>"),h=u.length&&u[0].getBoundingClientRect?u[0].getBoundingClientRect():{top:0,left:0,width:0,height:0},p=d.length&&d[0].getBoundingClientRect?d[0].getBoundingClientRect():{top:0,left:0,width:0,height:0},_=c.length&&c[0].getBoundingClientRect?c[0].getBoundingClientRect():{top:0,left:0,width:0,height:0};if("stickToElement"===this._stickyMode&&void 0!==this._playoutData.domFloatElement){var m=$parcel$interopDefault(i)(this._playoutData.domFloatElement)[0];if(m){var f=m.getBoundingClientRect(),v=f.top+document.documentElement.scrollTop,g=f.bottom-p.height+document.documentElement.scrollTop,y=this._windowHeight-f.bottom,b=f.x+"px",k=f.x+f.width-r+"px";v=document.documentElement.scrollTop<v?v-document.documentElement.scrollTop+"px":document.documentElement.scrollTop>g?g-document.documentElement.scrollTop+"px":s?s+"px":"20px",f.bottom>this._windowHeight&&(y=o?o+"px":"20px")}else if(t<3)return void setTimeout(this._checkStickyness.bind(this),25,e,++t)}var w=this._playoutData,$=window.innerHeight/2,C=(h.top+h.bottom)/2,S=C<$?"above":"below",P=!this._wrapperIsInView&&"below"===S,x=!this._wrapperIsInView&&"above"===S;switch(this._stickyMode){case"stickTop":null==this._iaOrigZIndex&&(this._iaOrigZIndex=u.css("zIndex")),u.css({position:"fixed",zIndex:9999999,bottom:"auto",width:"100%",top:s+"px",left:0}),$parcel$interopDefault(i)("body").css({paddingTop:u.height()+"px"}),this._isSticky=!0;break;case"stickBoth":var A,I;if(this._forceClosed&&(x=!1,P=!1),a||!x&&!P)d.css({position:"relative",top:"auto",bottom:"auto"}),isNaN(parseFloat(this._elOrigZIndex))||d.css("zIndex",this._elOrigZIndex),null===(A=this._$moveBackButton)||void 0===A||A.hide(),null===(I=this._$closeButton)||void 0===I||I.show(),this._isSticky=!1;else if(x&&!this._forceClosed){var T,D;null==this._elOrigZIndex&&(this._elOrigZIndex=d.css("zIndex")),d.css({position:"fixed",zIndex:9999999,top:s+30+"px",bottom:"auto",width:u.width()+"px"}),null===(T=this._$moveBackButton)||void 0===T||T.show(),null===(D=this._$closeButton)||void 0===D||D.hide(),this._isSticky=!0}else if(P&&!this._forceClosed){var E,M;null==this._elOrigZIndex&&(this._elOrigZIndex=d.css("zIndex")),d.css({position:"fixed",zIndex:9999999,bottom:o+"px",top:"auto",width:u.width()+"px"}),null===(E=this._$moveBackButton)||void 0===E||E.show(),null===(M=this._$closeButton)||void 0===M||M.hide(),this._isSticky=!0}break;case"stickBottomRight":case"stickBottomLeft":case"stickTopRight":case"stickTopLeft":case"stickDownBottomRight":case"stickDownBottomLeft":case"stickDownTopCenter":case"stickToElement":var B,L,R=0;if(w&&w.minimumFloatWidth&&(R=Number(w.minimumFloatWidth)),a||(!this._staySticky&&!this._alwaysFloat||this._forceClosed)&&("stickToElement"!==this._stickyMode||!this._isSticky||this._forceClosed||this._wrapperIsInView)&&(this._ended||this._animatingPosition||!((window.innerWidth||window.clientWidth)>R)||this._forceClosed||this._isSticky||!this._playing||this._wrapperIsInView||(null===(B=this.api)||void 0===B?void 0:B.isFullscreen()))){if(this._isSticky&&!this._animatingPosition&&(this._wrapperIsInView||this._forceClosed||a)&&!(null===(L=this.api)||void 0===L?void 0:L.isFullscreen())){var H,q,O,z,V=this;d.triggerHandler("bb_returned_from_sticky_position"),null===(H=this._$moveBackButton)||void 0===H||H.hide(),null===(q=this._$closeButton)||void 0===q||q.show(),this._isSticky=!1,u.css({position:"relative",top:"",left:"",right:"",bottom:"",width:"",maxWidth:""}),null!=this._iaOrigZIndex&&u.css("zIndex",this._iaOrigZIndex),d.css({position:"relative",top:"",left:"",right:"",bottom:"",margin:"0px auto",width:(null===(O=w.width)||void 0===O?void 0:O.indexOf("%"))>-1?w.width:w.width+"px",maxWidth:w.maxWidth?w.maxWidth+"px":"",height:"0px"}),c.css({position:"relative",top:"",left:"",right:"",bottom:"",margin:"0px auto",height:"14px",width:(null===(z=w.width)||void 0===z?void 0:z.indexOf("%"))>-1?w.width:w.width+"px",maxWidth:""}),null!=this._elOrigZIndex&&(d.css("zIndex",this._elOrigZIndex),c.css("zIndex",this._elOrigZIndex)),setTimeout((function(){V._animatingPosition=!1}),this._animationSpeedMove),this._forceClosed&&(this._forceClosed=!1)}}else{var j=this;if(null==this._elOrigZIndex&&(this._elOrigZIndex=d.css("zIndex")),!this._alwaysFloat&&P&&("stickDownBottomLeft"===this._stickyMode||"stickDownBottomRight"===this._stickyMode||"stickDownTopCenter"===this._stickyMode))break;if("stickToElement"===this._stickyMode&&(""===w.domFloatElement||!f))break;d.triggerHandler("bb_to_sticky_position");var F=r/l,N=o?o+"px":"27px",U=s?s+"px":"27px",W="27px",G="27px",J=(window.innerHeight||document.documentElement.clientHeight)-p.top-p.height+"px",Q=(window.innerWidth||document.documentElement.clientWidth)-p.left-p.width+"px",K=(window.innerHeight||document.documentElement.clientHeight)-_.top-_.height+"px",Y=["stickBottomLeft","stickTopLeft","stickDownBottomLeft"].includes(this._stickyMode),X=["stickTopLeft","stickTopRight","stickDownTopCenter"].includes(this._stickyMode),Z={position:"fixed",zIndex:9999999,width:d.width()+"px",height:d.height()+"px"},ee={position:"fixed",zIndex:9999999,width:d.width()+"px"};Y?(Z.left=p.left+"px",ee.left=_.left+"px"):(Z.right=Q,ee.right=Q),X?(Z.top=p.top+"px",ee.top=_.top+"px"):(Z.bottom=J,ee.bottom=K),d.css(Z),c.css(ee),this._animatingPosition=this._disableFloatAnimation;var te={position:"fixed",zIndex:9999999,width:r+"px"};if("stickToElement"===this._stickyMode){if((null==w?void 0:w.domFloatElement)&&f){var ie=w.domElementAlignment||"stickTopRight";"stickTopLeft"!==ie&&"stickBottomLeft"!==ie||(te.left=b,te.marginLeft=0),"stickTopLeft"!==ie&&"stickTopRight"!==ie||(te.top=v),"stickBottomRight"!==ie&&"stickTopRight"!==ie||(te.left=k),"stickBottomRight"!==ie&&"stickBottomLeft"!==ie||(te.bottom=y)}}else Y?(te.left=W,te.marginLeft=0):te.right=G,X?te.top=U:te.bottom=N,"stickDownTopCenter"===this._stickyMode&&(te.right="calc(50% - "+r/2+"px)");if(requestAnimationFrame((function(){var e={};X?e.top=parseInt(te.top)-c.height()+"px":e.bottom=parseInt(te.bottom)+parseInt(F)+"px",d.css(Object.assign({},te,{height:F})),c.css(Object.assign({},te,e))})),"stickToElement"===this._stickyMode&&(this._animationSpeedMove=0),setTimeout((function(){j._animatingPosition=!1}),this._animationSpeedMove||1e3/60),this._isSticky=!0,this._alwaysFloat||this._staySticky){var ne,ae,se,oe;if(this._playoutData&&this._showFloatingCloseButton)null===(ne=this._$moveBackButton)||void 0===ne||ne.show(),null===(ae=this._$closeButton)||void 0===ae||ae.hide();else null===(se=this._$moveBackButton)||void 0===se||se.hide(),null===(oe=this._$closeButton)||void 0===oe||oe.show();this.$interactivityWrapper.css("position","absolute")}else{var re,le;null===(re=this._$moveBackButton)||void 0===re||re.show(),null===(le=this._$closeButton)||void 0===le||le.hide()}}}}this.$element.triggerHandler("bb_sticky_check_done",[{isSticky:this._isSticky}])},s.prototype.isStickyModeEnabled=function(){return this._useStickyMode},s.prototype.isSticky=function(){return this._isSticky},s.prototype._forceClose=function(e){var t=this;this._justForceClosed=!0,e&&this._pause(),(this._alwaysFloat||this._staySticky)&&this._showFloatingCloseButton?this._removePlayer():(this._forceClosed=!0,this._$moveBackButton&&this._$moveBackButton.hide(),setTimeout((function(){t._justForceClosed=!1,t._checkStickyness()}),100))},s.prototype._onOrientationChange=function(){this._onPlayerResize(),this._onWindowResize(),this._checkFullScreenMismatch()},s.prototype._checkFullScreenMismatch=function(){var e=this.$element&&this.$element.height()>0?this.$element.width()/this.$element.height():1,t=this._getAspectRatio_media()||1,i=null!==(document.fullscreenElement||document.fullScreenElement||document.mozFullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.webkitFullScreenElement||document.msFullscreenElement),n=(e<1&&t>1||e>1&&t<1)&&(i||this._fullscreen);this._fullScreenMismatch!==n&&(this._fullScreenMismatch=n,this.$element.triggerHandler("bb_fullscreen_mismatch",[{fullScreenMismatch:this._fullScreenMismatch,displayOrientation:e<1?"portrait":"landscape"}]))},s.prototype._onPlayerResize=function(){window.dispatchEvent(new CustomEvent("scroll",{detail:"fake"}))},s.prototype._onWindowResize=function(){this._updateWindowSize(),this._autoHeight&&this._updateHeight(),this.$element.triggerHandler("bb_resized"),window.dispatchEvent(new CustomEvent("scroll",{detail:"fake"}))},s.prototype._updateWindowSize=function(){this._windowWidth=$parcel$interopDefault(i)(window).width(),this._windowHeight=$parcel$interopDefault(i)(window).height()},s.prototype._updateHeight=function(){if((!this._animatingPosition||this._animatingPosition&&this._recentFullscreenChange)&&!this._exited&&this.api&&!this.api.isFullscreen()){var e=Math.round(this._playerWidth/this._getAspectRatio()),t=e-this.$element.height();Math.abs(t)>=.5&&((!this._deltaHeight_0||t/this._deltaHeight_0>0||!this._deltaHeight_1||t/this._deltaHeight_1<0)&&(this.$element.height(e),this.$element.triggerHandler("bb_resized"),void 0===this.$interactivityWrapper||"collapsed"===this._showState||this._isSticky?this._playoutData.maxWidth&&("stickBottomRight"===this._stickyMode||"stickBottomLeft"===this._stickyMode||"stickTopRight"===this._stickyMode||"stickTopLeft"===this._stickyMode||"stickDownBottomRight"===this._stickyMode||"stickDownBottomLeft"===this._stickyMode||"stickDownTopCenter"===this._stickyMode||"stickToElement"===this._stickyMode)&&!this._inittedStickyness&&this._showState:this.$interactivityWrapper.height(e+this._extraHeight)),this._deltaHeight_1=this._deltaHeight_0,this._deltaHeight_0=t)}},s.prototype._getAspectRatio=function(e){return this._aspectRatio&&!e?this._aspectRatio:(this._aspectRatio=this._getAspectRatio_override()||this._getAspectRatio_media()||this._getAspectRatio_clip(),this._aspectRatio?this._aspectRatio:16/9)},s.prototype._getAspectRatio_override=function(){if(null==this._aspectRatio_override&&this._playoutData&&this._playoutData.aspectRatio&&-1!==this._playoutData.aspectRatio.indexOf(":")){var e=this._playoutData.aspectRatio.split(":");e[0]>0&&e[1]>0&&(this._aspectRatio_override=Number(e[0])/Number(e[1]))}return this._aspectRatio_override},s.prototype._getAspectRatio_media=function(){if(null===this._aspectRatio_media&&this._assets)for(var e=this._assets.length-1;e>=0;){if(this._assets[e].width>0&&this._assets[e].height>0){this._aspectRatio_media=this._assets[e].width/this._assets[e].height;break}e--}return this._aspectRatio_media},s.prototype._getAspectRatio_clip=function(){return null==this._aspectRatio_clip&&this._clip&&(this._clip.width>0&&this._clip.height>0?this._aspectRatio_clip=this._clip.width/this._clip.height:this._clip.originalWidth>0&&this._clip.originaHeight>0&&(this._aspectRatio_clip=this._clip.originalWidth/this._clip.originaHeight)),this._aspectRatio_clip},s.prototype._onAdSizeChanged=function(e,t){var i,n;"mainroll"===(null===(i=this._opts.clipData)||void 0===i?void 0:i.mediatype)&&(0===(null==t?void 0:t.adWidth)||0===(null==t?void 0:t.adHeight)||(null===(n=this._playoutData.aspectRatio)||void 0===n?void 0:n.includes(":"))||(this._aspectRatio=t.adWidth/t.adHeight,this._autoHeight?this._updateHeight():this.$element.triggerHandler("bb_resized")))}})),parcelRequire.register("25dEx",(function(e,t){e.exports=parcelRequire("lrJsf")(parcelRequire("lKFlT").getBundleURL("5H5Jn")+parcelRequire("l8sJU").resolve("c2C6k")).then((function(){return parcelRequire("7jIll")}))})),parcelRequire.register("TK3qe",(function(e,t){$parcel$export(e.exports,"default",(function(){return r})),parcelRequire("lDGnc");var i=parcelRequire("7CnHN"),n=parcelRequire("eamhc");parcelRequire("6JR1F");var a=parcelRequire("hGJI5"),s=parcelRequire("3DsR2"),o=parcelRequire("e06N2"),r=function(){"use strict";function e(t,n){if(i.default(this,e),this.$element=t,this._opts=n||{},this._interactivity_mouseIn=null,this._interactivity_mouseOut=null,this._allowMouseActions=!0,this._forceMouseActions=!1,this._ready=!1,this._mouseIn=!1,this._mouseOverInterval=null,this._autoPaused=!1,this._ended=!1,this._playing=!1,this._started=!1,this._exited=!1,this._playoutData=this._opts.playoutData,this._interactivity_mouseIn=this._playoutData.interactivity_mouseIn,this._interactivity_mouseOut=this._playoutData.interactivity_mouseOut,this._interactivity_onClick=this._playoutData.interactivity_onClick,this._playout_youTubeSkinInMainPhase="true"===this._playoutData.youTubeSkinInMainPhase,s.default.getService(this._opts.playerAliasOrId).setInstance("MouseController",this),this._detections=s.default.getService(this._opts.playerAliasOrId).getInstance("Detections"),this._isTouchDevice=this._detections.isTouchDevice,this.$element){var o=this;this._onPlayerReadyBound=this._onPlayerReady.bind(this),this._onPlayoutChangedBound=this._onPlayoutChanged.bind(this),this._onLoadedClipDataBound=this._onLoadedClipData.bind(this),this._onMediaFinishedBound=this._onMediaFinished.bind(this),this._onMsasMainFinishedBound=this._onMsasMainFinished.bind(this),this._onAutoPauseBound=this._onAutoPause.bind(this),this._onPlayerPausedBound=this._onPlayerPaused.bind(this),this._onPlayerPlayingBound=this._onPlayerPlaying.bind(this),this._onTouchEventBound=this._onTouchEvent.bind(this),this._onMouseInBound=this._onMouseIn.bind(this),this._onMouseOutBound=this._onMouseOut.bind(this),this._onClickBound=this._onClick.bind(this),this._onWindowBlurBound=this._onWindowBlur.bind(this),this._onWindowFocusBound=this._onWindowFocus.bind(this),"true"===this._playoutData.waitForPageReady||this._allowMouseActions&&!$parcel$interopDefault(a).isReady&&this._interactivity_mouseIn&&"none"!==this._interactivity_mouseIn?$parcel$interopDefault(a)((function(){o._playerIsReady=o.$element.attr("data-isready"),"true"===o._playerIsReady?o._onPlayerReady():o.$element.on("ready",o._onPlayerReadyBound)})):(this._playerIsReady=this.$element.attr("data-isready"),"true"===this._playerIsReady?this._onPlayerReady():this.$element.on("ready",this._onPlayerReadyBound)),this.$element.on("bb_playout_changed",this._onPlayoutChangedBound),this.$element.on("bb_mediaclip_loaded",this._onLoadedClipDataBound),this.$element.on("bb_media_finished",this._onMediaFinishedBound),this.$element.on("bb_msas_main_finished",this._onMsasMainFinishedBound),this.$element.on("bb_program_autopause",this._onAutoPauseBound),this.$element.on("pause",this._onPlayerPausedBound),this.$element.on("playing",this._onPlayerPlayingBound)}}return n.default(e,[{key:"exit",value:function(){return this._exited=!0,this.$element.off("ready",this._onPlayerReadyBound),this.$element.off("bb_playout_changed",this._onPlayoutChangedBound),this.$element.off("bb_mediaclip_loaded",this._onLoadedClipDataBound),this.$element.off("bb_media_finished",this._onMediaFinishedBound),this.$element.off("bb_msas_main_finished",this._onMsasMainFinishedBound),this.$element.off("bb_program_autopause",this._onAutoPauseBound),this.$element.off("pause",this._onPlayerPausedBound),this.$element.off("playing",this._onPlayerPlayingBound),window.removeEventListener("touchstart",this._onTouchEventBound),window.removeEventListener("touchend",this._onTouchEventBound),this.disable(),s.default.getService(this._opts.playerAliasOrId).setInstance("MouseController",null),null}},{key:"enable",value:function(){if(!this._enabled){var e;this._enabled=!0;var t=null===(e=this.$element)||void 0===e?void 0:e.get(0);t&&(this._isTouchDevice||(t.addEventListener("mouseenter",this._onMouseInBound),t.addEventListener("mouseleave",this._onMouseOutBound)),t.addEventListener("click",this._onClickBound)),window.addEventListener("blur",this._onWindowBlurBound),window.addEventListener("focus",this._onWindowFocusBound)}}},{key:"disable",value:function(){if(this._enabled){var e;this._enabled=!1;var t=null===(e=this.$element)||void 0===e?void 0:e.get(0);t&&(this._isTouchDevice||(t.removeEventListener("mouseenter",this._onMouseInBound),t.removeEventListener("mouseleave",this._onMouseOutBound)),t.removeEventListener("click",this._onClickBound)),window.removeEventListener("blur",this._onWindowBlurBound),window.removeEventListener("focus",this._onWindowFocusBound)}}},{key:"_onPlayerReady",value:function(){if(this._api=s.default.getService(this._opts.playerAliasOrId).getInstance("PublicAPI"),this._forceMouseActions)this._allowMouseActions=!0;else{var e,t=null===(e=this._api)||void 0===e?void 0:e.getMuted();this._detections.canControlVolume||t&&this._detections.canAutoPlayMuted||"true"!==this._playoutData.nsiNoAutoPlay||(this._allowMouseActions=!1)}var i,n,a;this._allowMouseActions&&((null===(i=this._interactivity_onClick)||void 0===i?void 0:i.indexOf("open link"))>-1?null===(n=this.$element)||void 0===n||n.css("cursor","pointer"):null===(a=this.$element)||void 0===a||a.css("cursor","auto"));if(!this._ready){var o=this;this._ready=!0,window.addEventListener("touchstart",this._onTouchEventBound,{passive:!0}),window.addEventListener("touchend",this._onTouchEventBound,{passive:!0}),this.enable(),setTimeout((function(){!o._playing&&o._mouseIn&&o._intendedResume&&o._play()}),1)}}},{key:"_play",value:function(){if(this._playDeltaTime=(new Date).getTime(),this._detections.isiOS&&this._playDeltaTimePrev&&this._playDeltaTime-this._playDeltaTimePrev<500)return!1;var e;(this._playDeltaTimePrev=this._playDeltaTime,!this._allowMouseActions||this._ended||this._autoPaused)||(this._intendedResume=!0,null===(e=this._api)||void 0===e||e.play(!1))}},{key:"_pause",value:function(){var e;this._allowMouseActions&&(this._intendedResume=!1,null===(e=this._api)||void 0===e||e.pause(!1))}},{key:"_setMuted",value:function(e){var t;this._allowMouseActions&&(null===(t=this._api)||void 0===t||t.setMuted(e,!1,!1))}},{key:"_onPlayoutChanged",value:function(e,t){if(null==t?void 0:t.playoutData){var i,n;if(void 0!==t.playoutData.interactivity_mouseIn&&(this._interactivity_mouseIn=t.playoutData.interactivity_mouseIn),void 0!==t.playoutData.interactivity_mouseOut&&(this._interactivity_mouseOut=t.playoutData.interactivity_mouseOut),void 0!==t.playoutData.interactivity_onClick)this._interactivity_onClick=t.playoutData.interactivity_onClick,this._interactivity_onClick.indexOf("open link")>-1?null===(i=this.$element)||void 0===i||i.css("cursor","pointer"):null===(n=this.$element)||void 0===n||n.css("cursor","auto");void 0!==t.playoutData.youTubeSkinInMainPhase&&(this._playout_youTubeSkinInMainPhase="true"===t.playoutData.youTubeSkinInMainPhase)}}},{key:"_onLoadedClipData",value:function(e){window.dispatchEvent(new CustomEvent("mousemove"))}},{key:"_onAutoPause",value:function(e,t){this._autoPaused=!0}},{key:"_onPlayerPaused",value:function(e){this._playing=!1}},{key:"_onPlayerPlaying",value:function(e){this._ended=!1,this._playing=!0,this._autoPaused=!1}},{key:"_onMediaFinished",value:function(e){this._ended=!0,this._playing=!1,this.$element.css("cursor","auto")}},{key:"_onMsasMainFinished",value:function(){var e;"mainroll"===(null===(e=this._opts.clipData)||void 0===e?void 0:e.mediatype)&&(this._ended=!0,this._playing=!1),this.$element.css("cursor","auto")}},{key:"_onTouchEvent",value:function(e,t){t&&t.ignore||!this._playing&&this._mouseIn&&this._intendedResume&&this._play()}},{key:"_onMouseIn",value:function(e){var t,i=this;if(!this._mouseIn){o.default("[MouseController] _onMouseIn"),this._mouseIn=!0,this._mouseOverInterval&&clearInterval(this._mouseOverInterval);var n=1;switch(this._mouseOverInterval=setInterval((function(){i.$element&&i.$element.trigger("bb_mouseover_x_s",[{interval:n}]),n++}),1e3),null===(t=this._interactivity_mouseIn)||void 0===t?void 0:t.toUpperCase()){case"PLAY":this._play();break;case"UNMUTE":this._setMuted(!1);break;case"PLAY AND UNMUTE":this._setMuted(!1),this._play()}}}},{key:"_onMouseOut",value:function(e){var t;if(this._mouseIn)switch(o.default("[MouseController] _onMouseOut"),this._mouseIn=!1,this._mouseOverInterval&&clearInterval(this._mouseOverInterval),null===(t=this._interactivity_mouseOut)||void 0===t?void 0:t.toUpperCase()){case"PAUSE":this._pause();break;case"MUTE":this._setMuted(!0);break;case"PAUSE AND MUTE":this._setMuted(!0),this._pause()}}},{key:"_onWindowBlur",value:function(e){if(this._mouseIn&&!this._mouseWasIn)return this._mouseWasIn=!0,this._onMouseOut(e)}},{key:"_onWindowFocus",value:function(e){if(!this._mouseIn&&this._mouseWasIn)return this._mouseWasIn=!1,this._onMouseIn(e)}},{key:"_onClick",value:function(e){var t;if(o.default("[MouseController] _onClick"),(!this._ended||this._playout_youTubeSkinInMainPhase)&&!$parcel$interopDefault(a)(e.target).parents(".bb-commercial-layer, .bb-timeline-layer").length){var i=this._playoutData.clickUrl;switch(i&&-1===i.indexOf("http://")&&-1===i.indexOf("https://")&&(i="https://"+i),null===(t=this._interactivity_onClick)||void 0===t?void 0:t.toUpperCase()){case"PLAY OR PAUSE":var n,s;if(this._playing)null===(n=this._api)||void 0===n||n.pause(!1),this._playing=!1;else null===(s=this._api)||void 0===s||s.play(!1),this._playing=!0;break;case"OPEN LINK IN CURRENT WINDOW":var r;null===(r=this._api)||void 0===r||r.doOpenUrl(i,"_self",!0);break;case"OPEN LINK IN NEW WINDOW":var l,u;null===(l=this._api)||void 0===l||l.doOpenUrl(i,"_blank",!0),null===(u=this._api)||void 0===u||u.pause(!1),this._playing=!1;break;default:var d;if(!this._started)this._started=!0,null===(d=this._api)||void 0===d||d.play(!0),this._playing=!0}}}}]),e}()})),parcelRequire.register("2OJLU",(function(e,t){$parcel$export(e.exports,"default",(function(){return u})),parcelRequire("lDGnc");var i=parcelRequire("7CnHN"),n=parcelRequire("eamhc"),a=parcelRequire("lwy96");parcelRequire("6JR1F");var s=parcelRequire("hGJI5"),o=parcelRequire("3DsR2"),r=parcelRequire("e06N2"),l=parcelRequire("aNQGs"),u=function(){"use strict";function e(t,n){i.default(this,e),this.$element=t,this._opts=n||{},this._interactivity_inView=null,this._interactivity_outView=null,this._inviewMarginThreshold=.5,this._allowInviewActions=!0,this._forceInviewActions=!1,this._startCollapsed=!1,this._ready=!1,this._enabled=!1,this._documentVisible=!0,this._inView=!1,this._inViewForced=null,this._inViewDetected=!1,this._autoPaused=!1,this._ended=!1,this._playing=!1,this._collapsed=!1,this._playoutData=this._opts.playoutData,this._interactivity_inView=this._playoutData.interactivity_inView,this._interactivity_outView=this._playoutData.interactivity_outView;var a="stickBoth"===this._playoutData.stickyMode?.999:parseInt("".concat(this._playoutData.inviewMargin).replace("%",""))/100;if(this._inviewMarginThreshold=isNaN(a)?.5:a,this._forceInviewActions="true"===this._playoutData.forceInview,this._startCollapsed="true"===this._playoutData.startCollapsed,this._showOnlyWhenPrerollAvailable="true"===this._playoutData.showOnlyWhenPrerollAvailable,this._showOnlyWhenPrerollAvailable&&(this._startCollapsed=!0),this._startCollapsed&&(this._collapsed=!0),o.default.getService(this._opts.playerAliasOrId).setInstance("InViewController",this),this._detections=o.default.getService(this._opts.playerAliasOrId).getInstance("Detections"),this._interactivity=o.default.getService(this._opts.playerAliasOrId).getInstance("Interactivity"),this._detections.canPlayInline||(this._allowInviewActions=!1),this._detections.isiPhone&&this._detections.iOSVersion<10&&(this._allowInviewActions=!1),this.$iaWrapper=null,this._iaWrapperIsectObserver=null,this._isectObserver=null,this.$element){var r=this;this.$iaWrapper=this.$element.closest(".bb_iawr"),this._onPlayerReadyBound=this._onPlayerReady.bind(this),this._onPlayoutChangedBound=this._onPlayoutChanged.bind(this),this._onLoadedClipDataBound=this._onLoadedClipData.bind(this),this._onMediaFinishedBound=this._onMediaFinished.bind(this),this._onMsasMainFinishedBound=this._onMsasMainFinished.bind(this),this._onAutoPauseBound=this._onAutoPause.bind(this),this._onFlagChangeBound=this._onFlagChange.bind(this),this._onCollapsedBound=this._onCollapsed.bind(this),this._onExpandedBound=this._onExpanded.bind(this),this._onPlayerPausedBound=this._onPlayerPaused.bind(this),this._onPlayerPlayingBound=this._onPlayerPlaying.bind(this),this._onMediaLoadedMetadataBound=this._onMediaLoadedMetadata.bind(this),this._onTouchEventBound=this._onTouchEvent.bind(this),this._onInViewBound=this._onInView.bind(this),this._onOutViewBound=this._onOutView.bind(this),this._onVisibilityChangeBound=this._onVisibilityChange.bind(this),this._onMessageBound=this._onMessage.bind(this),this.$element.on("bb_playout_changed",this._onPlayoutChangedBound),this.$element.on("bb_mediaclip_loaded",this._onLoadedClipDataBound),this.$element.on("bb_media_loadedmetadata",this._onMediaLoadedMetadataBound),this.$element.on("bb_media_finished",this._onMediaFinishedBound),this.$element.on("bb_msas_main_finished",this._onMsasMainFinishedBound),this.$element.on("bb_program_autopause",this._onAutoPauseBound),this.$element.on("bb_flagchange",this._onFlagChangeBound),this.$element.on("bb_collapsed",this._onCollapsedBound),this.$element.on("bb_expanded",this._onExpandedBound),this.$element.on("pause",this._onPlayerPausedBound),this.$element.on("playing",this._onPlayerPlayingBound),"true"===this._playoutData.waitForPageReady||this._allowInviewActions&&!$parcel$interopDefault(s).isReady&&this._interactivity_inView&&"none"!==this._interactivity_inView?$parcel$interopDefault(s)((function(){r._playerIsReady=r.$element.attr("data-isready"),"true"===r._playerIsReady?r._onPlayerReady():r.$element.on("ready",r._onPlayerReadyBound)})):(this._playerIsReady=this.$element.attr("data-isready"),"true"===this._playerIsReady?this._onPlayerReady():this.$element.on("ready",this._onPlayerReadyBound))}}return n.default(e,[{key:"exit",value:function(){var e,t;return this.$element.off("bb_playout_changed",this._onPlayoutChangedBound),this.$element.off("bb_mediaclip_loaded",this._onLoadedClipDataBound),this.$element.off("bb_media_loadedmetadata",this._onMediaLoadedMetadataBound),this.$element.off("bb_media_finished",this._onMediaFinishedBound),this.$element.off("bb_msas_main_finished",this._onMsasMainFinishedBound),this.$element.off("bb_program_autopause",this._onAutoPauseBound),this.$element.off("bb_flagchange",this._onFlagChangeBound),this.$element.off("pause",this._onPlayerPausedBound),this.$element.off("playing",this._onPlayerPlayingBound),this.$element.off("ready",this._onPlayerReadyBound),window.removeEventListener("touchstart",this._onTouchEventBound),window.removeEventListener("touchend",this._onTouchEventBound),document.removeEventListener("visibilitychange",this._onVisibilityChangeBound),window.removeEventListener("message",this._onMessageBound),this._onScrollBoundDebounced&&(window.removeEventListener("scroll",this._onScrollBoundDebounced),this._onScrollBoundDebounced=null),null===(e=this._iaWrapperIsectObserver)||void 0===e||e.disconnect(),null===(t=this._isectObserver)||void 0===t||t.disconnect(),this.disable(),o.default.getService(this._opts.playerAliasOrId).setInstance("InViewController",null),null}},{key:"enable",value:function(){this._enabled||(this._enabled=!0,r.default("[InViewController] enable"),this.$element.on("bb_inview",this._onInViewBound),this.$element.on("bb_outview",this._onOutViewBound))}},{key:"disable",value:function(){this._enabled&&(this._enabled=!1,r.default("[InViewController] disable"),this.$element.off("bb_inview",this._onInViewBound),this.$element.off("bb_outview",this._onOutViewBound))}},{key:"setInView",value:function(e){r.default("[InViewController] setInView"),this._inViewForced=e,this._handleInViewModified()}},{key:"getInView",value:function(){return this._inView}},{key:"_onPlayerReady",value:function(){if(this._api=o.default.getService(this._opts.playerAliasOrId).getInstance("PublicAPI"),this._forceInviewActions)this._allowInviewActions=!0;else{var e,t,i=null===(e=this._api)||void 0===e?void 0:e.getFlag("canPlayInline");null!=i&&(this._allowInviewActions=!!i);var n=null===(t=this._api)||void 0===t?void 0:t.getMuted();this._detections.canControlVolume||n&&this._detections.canAutoPlayMuted||"true"!==this._playoutData.nsiNoAutoPlay||(this._allowInviewActions=!1)}if(!this._ready){var a=this;if(this._ready=!0,r.default("[InViewController] _onPlayerReady _allowInviewActions: "+this._allowInviewActions),this._debugMode=r.debugMode&&"none"!==this._interactivity_inView,this._debugMode){var l,u,d,c,h={publication:this._playoutData.publication,adUnit:null===(l=this._opts.adServicesData)||void 0===l||null===(u=l[0])||void 0===u?void 0:u.code,placementOption:this._opts.playoutData.placementOption,placementDOMSelector:this._opts.playoutData.placementDOMSelector||"",preloadMainroll:this._opts.playoutData.preloadMainroll||!1,iframeBreakout:this._opts.playoutData.iframeBreakout||!1,inviewMargin:this._opts.playoutData.inviewMargin};if(console.table(h),(null===(d=this._opts.adServicesData)||void 0===d?void 0:d.length)&&(null===(c=this._opts.adServicesData[0].lineitems)||void 0===c?void 0:c.length)){var p=this._opts.adServicesData[0],_=[],m=!0,f=!1,v=void 0;try{for(var g,y=p.lineitems[Symbol.iterator]();!(m=(g=y.next()).done);m=!0){var b=g.value;_.push({code:b.code,vast_url:b.vast_url})}}catch(e){f=!0,v=e}finally{try{m||null==y.return||y.return()}finally{if(f)throw v}}console.table(_)}this._$debugDiv=$parcel$interopDefault(s)('<div style="border:1px dashed #0f0;display:block;position:fixed;pointer-events:none !important;"></div>'),$parcel$interopDefault(s)("body").append(this._$debugDiv)}this.enable(),window.addEventListener("touchstart",this._onTouchEventBound,{passive:!0,once:!0}),window.addEventListener("touchend",this._onTouchEventBound,{passive:!0,once:!0}),document.addEventListener("visibilitychange",this._onVisibilityChangeBound),this._isAMP=window.location.hash.indexOf("amp=1")>-1,this._isAMP?(window.addEventListener("message",this._onMessageBound),window.parent.postMessage({sentinel:"amp",type:"send-intersections"},"*")):window.IntersectionObserver?this._setupIntersectionObservers():parcelRequire("6wLqk").then((function(){a._setupIntersectionObservers()})).catch((function(){r.default("[InViewController] Failed to polyfill IntersectionObserver")})),setTimeout((function(){!a._playing&&a._inView&&a._intendedResume&&a._play()}),1)}}},{key:"_play",value:function(){if(this._playDeltaTime=(new Date).getTime(),this._detections.isiOS&&this._playDeltaTimePrev&&this._playDeltaTime-this._playDeltaTimePrev<500)return!1;var e;(this._playDeltaTimePrev=this._playDeltaTime,!this._allowInviewActions||this._ended||this._autoPaused)||(this._intendedResume=!0,null===(e=this._api)||void 0===e||e.play(!1))}},{key:"_pause",value:function(){var e;this._allowInviewActions&&(this._intendedResume=!1,null===(e=this._api)||void 0===e||e.pause(!1))}},{key:"_setMuted",value:function(e){var t;this._allowInviewActions&&(null===(t=this._api)||void 0===t||t.setMuted(e,!1,!1))}},{key:"_onPlayoutChanged",value:function(e,t){if(null==t?void 0:t.playoutData){if(void 0!==t.playoutData.interactivity_inView&&(this._interactivity_inView=t.playoutData.interactivity_inView),void 0!==t.playoutData.interactivity_outView&&(this._interactivity_outView=t.playoutData.interactivity_outView),void 0!==t.playoutData.inviewMargin){var i=parseInt("".concat(t.playoutData.inviewMargin).replace("%",""))/100;this._inviewMarginThreshold=isNaN(i)?.5:i}"stickBoth"===a.default(t.playoutData.stickyMode)&&(this._inviewMarginThreshold=.999),void 0!==t.playoutData.forceInview&&(this._forceInviewActions="true"===t.playoutData.forceInview)}}},{key:"_onLoadedClipData",value:function(e){window.dispatchEvent(new CustomEvent("scroll",{detail:"fake"}))}},{key:"_onFlagChange",value:function(e,t){if(t&&void 0!==t.canPlayInline&&!this._forceInviewActions){var i=t.canPlayInline;this._allowInviewActions=!!i}}},{key:"_onCollapsed",value:function(e){this._collapsed=!0,this._triggerIaWrapperIsectObserverCallback()}},{key:"_onExpanded",value:function(e){this._collapsed=!1,this._triggerIaWrapperIsectObserverCallback()}},{key:"_setupIntersectionObservers",value:function(){var e,t,i,n;null===(e=this._iaWrapperIsectObserver)||void 0===e||e.disconnect();var a=null===(t=this.$iaWrapper)||void 0===t?void 0:t.get(0);if(a){var s,o,r,u=this,d=(null===(s=this.$element)||void 0===s?void 0:s.width())||0,c=(null===(o=this.$element)||void 0===o?void 0:o.height())||0,h=c>0?d/c:16/9,p=h>0?((null===(r=this.$iaWrapper)||void 0===r?void 0:r.width())||0)/h:c,_=Math.ceil(this._inviewMarginThreshold*p);this._iaWrapperIsectObserver=new IntersectionObserver((function(e){if(e.length){var t=e[0],i=t.boundingClientRect,n=document.documentElement.scrollHeight,s=window.innerHeight,o=a.offsetTop,r=i.top<_&&i.top>=0,d=o<_||n-o<_,c=i.top>=0&&i.top<=s&&i.bottom>=0&&i.bottom<=s,h=t.isIntersecting||r||d&&c;h||u._onScrollBoundDebounced||(u._onScrollBoundDebounced=l.default(u._onScroll.bind(u),100),window.addEventListener("scroll",u._onScrollBoundDebounced,{passive:!0})),h&&u._onScrollBoundDebounced&&(window.removeEventListener("scroll",u._onScrollBoundDebounced),u._onScrollBoundDebounced=null),u._setIaWrapperInViewDetected(h)}}),{rootMargin:"-".concat(_,"px 0px -").concat(_,"px 0px")}),this._iaWrapperIsectObserver.observe(a)}null===(i=this._isectObserver)||void 0===i||i.disconnect();var m=null===(n=this.$element)||void 0===n?void 0:n.get(0);if(m){var f=this;this._isectObserver=new IntersectionObserver((function(e){var t=f;e.forEach((function(e){e.target===m&&t._setInViewDetected(e.isIntersecting)}))}),{threshold:this._inviewMarginThreshold}),this._isectObserver.observe(m)}}},{key:"_setIaWrapperInViewDetected",value:function(e){this._iaWrapperInViewDetected=e,this._handleIaWrapperInViewModified()}},{key:"_handleIaWrapperInViewModified",value:function(){var e,t,i=this._iaWrapperInView;(this._iaWrapperInView=!(!this._iaWrapperInViewDetected||!this._documentVisible),this._iaWrapperInView!==i)&&(this._iaWrapperInView?(r.default("[InViewController] _handleIaWrapperInViewModified going to trigger INVIEW"),null===(e=this.$element)||void 0===e||e.triggerHandler("bb_iawr_inview")):(r.default("[InViewController] _handleIaWrapperInViewModified going to trigger OUTVIEW"),null===(t=this.$element)||void 0===t||t.triggerHandler("bb_iawr_outview")))}},{key:"_setInViewDetected",value:function(e){r.default("[InViewController] _setInViewDetected"),this._inViewDetected=e,this._handleInViewModified()}},{key:"_handleInViewModified",value:function(){var e,t,i=this._inView;(this._inView=null!=this._inViewForced?!!this._inViewForced:!(!this._inViewDetected||!this._documentVisible),this._inView!==i)&&(this._inView?(r.default("[InViewController] _handleInViewModified going to trigger INVIEW"),null===(e=this.$element)||void 0===e||e.triggerHandler("bb_inview")):(r.default("[InViewController] _handleInViewModified going to trigger OUTVIEW"),null===(t=this.$element)||void 0===t||t.triggerHandler("bb_outview")))}},{key:"_onAutoPause",value:function(e,t){this._autoPaused=!0}},{key:"_onPlayerPaused",value:function(e){this._playing=!1}},{key:"_onPlayerPlaying",value:function(e){var t;null===(t=this._$debugDiv)||void 0===t||t.hide(),this._ended=!1,this._playing=!0,this._autoPaused=!1}},{key:"_onMediaFinished",value:function(e){this._ended=!0,this._playing=!1}},{key:"_onMsasMainFinished",value:function(){var e;"mainroll"===(null===(e=this._opts.clipData)||void 0===e?void 0:e.mediatype)&&(this._ended=!0,this._playing=!1)}},{key:"_onMediaLoadedMetadata",value:function(e){window.dispatchEvent(new CustomEvent("scroll",{detail:"fake"}))}},{key:"_onTouchEvent",value:function(e,t){t&&t.ignore||!this._playing&&this._inView&&this._intendedResume&&this._play()}},{key:"_triggerIaWrapperIsectObserverCallback",value:function(){var e,t,i,n=null===(e=this.$iaWrapper)||void 0===e?void 0:e.get(0);n&&(null===(t=this._iaWrapperIsectObserver)||void 0===t||t.unobserve(n),null===(i=this._iaWrapperIsectObserver)||void 0===i||i.observe(n))}},{key:"_onScroll",value:function(){this._triggerIaWrapperIsectObserverCallback()}},{key:"_onInView",value:function(e){var t;switch(r.default("[InViewController] _onInView"),null===(t=this._interactivity_inView)||void 0===t?void 0:t.toUpperCase()){case"PLAY":this._play();break;case"UNMUTE":this._setMuted(!1);break;case"PLAY AND UNMUTE":this._setMuted(!1),this._play()}}},{key:"_onOutView",value:function(e){if(r.default("[InViewController] _onOutView"),this._interactivity.isStickyModeEnabled()){var t=this;this._interactivity.isSticky()?this._inView||this._handleOutViewAction():this.$element.one("bb_sticky_check_done",(function(e,i){(!i.isSticky||i.isSticky&&!t._inView)&&t._handleOutViewAction()}))}else this._handleOutViewAction()}},{key:"_handleOutViewAction",value:function(){var e;switch(r.default("[InViewController] _handleOutViewAction"),null===(e=this._interactivity_outView)||void 0===e?void 0:e.toUpperCase()){case"PAUSE":this._pause();break;case"MUTE":this._setMuted(!0);break;case"PAUSE AND MUTE":this._setMuted(!0),this._pause()}}},{key:"_onVisibilityChange",value:function(e){this._documentVisible="hidden"!==document.visibilityState,this._handleIaWrapperInViewModified(),this._handleInViewModified()}},{key:"_onMessage",value:function(e){var t=(null==e?void 0:e.originalEvent)||e||{};if(t.source===window.parent&&t.data&&"amp"===t.data.sentinel&&"intersection"===t.data.type&&t.data.changes){var i=this,n=!1;t.data.changes.forEach((function(e){e.intersectionRatio>=i._inviewMarginThreshold&&(n=!0)})),this._setInViewDetected(n)}}}]),e}()})),parcelRequire.register("6wLqk",(function(e,t){e.exports=parcelRequire("lrJsf")(parcelRequire("lKFlT").getBundleURL("5H5Jn")+parcelRequire("l8sJU").resolve("6V7By")).then((function(){return parcelRequire("15sgT")}))})),parcelRequire.register("fPU0a",(function(e,t){$parcel$export(e.exports,"default",(function(){return r}));var i=parcelRequire("3DsR2"),n=parcelRequire("e06N2"),a=null,s={_data:{},getItem:function(e){return void 0!==e&&this._data.hasOwnProperty(String(e))?this._data[String(e)]:null},key:function(e){if(Object&&Object.keys&&void 0!==e&&e>=0){var t=Object.keys(this._data);return t&&t.length-1>e?t[e]:null}return null},setItem:function(e,t){void 0!==e&&(this._data.hasOwnProperty(e)||this.length++,this._data[String(e)]=String(t))},length:0,removeItem:function(e){void 0!==e&&this.hasOwnProperty(e)&&(delete this._data[e],this.length--)},hasOwnProperty:function(e){return this._data.hasOwnProperty(e)}};try{a=window.localStorage||null}catch(e){n.default("[LocalStorage] Not allowed to access window.localStorage (Cookies are probably disabled entirely)")}if(!a){var o=navigator&&navigator.cookieEnabled&&!0===navigator.cookieEnabled;o||(document.cookie="bb_test_cookies=1",-1!==document.cookie.indexOf("bb_test_cookies=")&&(o=!0,document.cookie="bb_test_cookies=1; expires=Thu, 01-Jan-1970 00:00:01 GMT")),o?(a={getItem:function(e){return void 0!==e&&this.hasOwnProperty(e)?unescape(document.cookie.replace(new RegExp("(?:^|.*;\\s*)"+escape(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*"),"$1")):null},key:function(e){return unescape(document.cookie.replace(/\s*\=(?:.(?!;))*$/,"").split(/\s*\=(?:[^;](?!;))*[^;]?;\s*/)[e])},setItem:function(e,t){void 0!==e&&(document.cookie=escape(e)+"="+escape(t)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/",this.length=document.cookie.match(/\=/g).length)},length:0,removeItem:function(e){void 0!==e&&this.hasOwnProperty(e)&&(document.cookie=escape(e)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/",this.length--)},hasOwnProperty:function(e){return new RegExp("(?:^|;\\s*)"+escape(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(document.cookie)}}).length=(document.cookie.match(/\=/g)||a).length:(window.bluebillywig=window.bluebillywig||{},window.bluebillywig._localStoragePolyfill=window.bluebillywig._localStoragePolyfill||s,a=window.bluebillywig._localStoragePolyfill)}var r=function(e,t){this._opts=null,this.$element=null,this._disableCookies="false",this._inMemoryBackup=!1,this._store=null;try{this._store=a}catch(e){n.default("[LocalStorage] Could not load LocalStorage (third party cookies are probably disabled and we are running in an iFrame.")}void 0!==t&&null!=t&&(this._opts=t,void 0!==this._opts.playoutData&&this._opts.playoutData&&void 0!==this._opts.playoutData.disableCookies&&(this._disableCookies=this._opts.playoutData.disableCookies,"true"===this._disableCookies&&(this._store=s,this._inMemoryBackup=!0))),this._onPlayoutChangedBound=this._onPlayoutChanged.bind(this),void 0!==e&&null!=e&&(this.$element=e,i.default.getService(this._opts.playerAliasOrId).setInstance("LocalStorage",this),this.$element.on("bb_playout_changed",this._onPlayoutChangedBound))};r.prototype.exit=function(){return null!=this.$element&&(this.$element.off("bb_playout_changed",this._onPlayoutChangedBound),i.default.getService(this._opts.playerAliasOrId).setInstance("LocalStorage",null)),this._opts=null,this.$element=null,null},r.prototype.set=function(e,t){var i=this._store;if(("true"!=this._disableCookies||"true"===this._disableCookies&&this._inMemoryBackup)&&void 0!==e&&null!=e&&""!=e){try{window!==window.parent&&window.parent.postMessage({methodName:"setLocalStorageItem",params:[e,t]},"*")}catch(e){}if(void 0!==i&&null!=i&&JSON&&void 0!==JSON.stringify)try{e.match(/^bbtl_/)?i.setItem(e,t):i.setItem(e,JSON.stringify(t)),this.$element&&this.$element.trigger("bb_localstorage_updated",[{name:e,value:t}])}catch(e){}}},r.prototype.get=function(e){var t=this._store;if(void 0!==e&&null!=e&&""!=e&&void 0!==t&&null!=t&&JSON&&void 0!==JSON.parse){var i=t.getItem(e);if(void 0!==i&&null!=i)try{return e.match(/^bbtl_/)?i:JSON.parse(i)}catch(e){}}return null},r.prototype.remove=function(e){var t=this._store;if(void 0!==e&&null!=e&&""!=e){try{window!==window.parent&&window.parent.postMessage({methodName:"setLocalStorageItem",params:[e,null]},"*")}catch(e){}if(void 0!==t&&null!=t){var i,n=t.getItem(e);t.removeItem(e),null!=n&&(null===(i=this.$element)||void 0===i||i.trigger("bb_localstorage_updated",[{name:e,value:null}]))}}},r.prototype._onPlayoutChanged=function(e,t){if(t&&void 0!==t.playoutData&&void 0!==t.playoutData.disableCookies)if(this._disableCookies=t.playoutData.disableCookies,"true"===this._disableCookies)this._store=s,this._inMemoryBackup=!0;else try{this._store=a,this._inMemoryBackup=!1}catch(e){n.default("[LocalStorage] Could not load LocalStorage (third party cookies are probably disabled and we are running in an iFrame.")}}})),parcelRequire.register("drha2",(function(e,t){$parcel$export(e.exports,"default",(function(){return a})),parcelRequire("6JR1F");var i=parcelRequire("hGJI5"),n=parcelRequire("3DsR2");parcelRequire("2gDLG");var a=function(e,t){this.$element=null,this._opts=t,void 0!==e&&null!=e&&(this.$element=e,n.default.getService(this._opts.playerAliasOrId).setInstance("Sizer",this),this._init())};a.prototype._setupIframeComs=function(){var e=this;"function"==typeof window.postMessage?window.addEventListener("message",(function(t){e._onComsMessage(t.data)})):(this._windowProxy=new window.Porthole.WindowProxy(window.location.href),this._windowProxy.addEventListener((function(t){e._onComsMessage(t.data)})),this._windowProxy.post("handshake","*"))},a.prototype._onComsMessage=function(e){"handshakeSucceeded"!=e&&"handshake"!=e||(this._haveWindowProxy=!0)},a.prototype._sendComsMessage=function(e){var t;if(null===(t=n.default.getService(this._opts.playerAliasOrId).getInstance("Detections"))||void 0===t?void 0:t.inIframe){this._topWindowAccess||("function"==typeof window.postMessage?window.parent.postMessage(e,"*"):this._windowProxy.post(e,"*"))}},a.prototype._iFrameSetup=function(){try{this._addIframeProps(window)&&window.parent!=window.top&&this._addIframeProps(window.parent)&&window.parent.parent!=window.top&&this._addIframeProps(window.parent.parent)&&window.parent.parent.parent!=window.top&&this._addIframeProps(window.parent.parent.parent)&&window.parent.parent.parent.parent!=window.top&&this._addIframeProps(window.parent.parent.parent.parent)}catch(e){this._setupIframeComs()}},a.prototype._addIframeProps=function(e){var t=!1,i=e.parent.document.getElementsByTagName("iframe"),n=null;if(void 0!==i&&null!=i)for(var a in i)parseInt(a)>=0&&i[a]&&i[a].contentWindow==e&&(n=i[a]);return n&&(n.setAttribute("webkitallowfullscreen",""),n.setAttribute("mozallowFullscreen",""),n.setAttribute("oallowFullscreen",""),n.setAttribute("msallowFullscreen",""),n.setAttribute("allowfullscreen",""),e.parent==window.top&&(this._topWindowAccess=!0),this._parentIframes.push({iframe:n,oldStyle:null}),t=!0),t},a.prototype._init=function(){var e,t,a,s,o;this._parentIframes=[],this._topWindowAccess=!1;this._opts;this.$initialViewport=$parcel$interopDefault(i)('head meta[name="viewport"]'),this._haveWindowProxy=!1,(null===(e=n.default.getService(this._opts.playerAliasOrId).getInstance("Detections"))||void 0===e?void 0:e.inIframe)&&this._iFrameSetup(),this._width,this._height,this._originalViewport=null,this._oldStyle=null,this._oldIframeStyle=null,this._playoutWidth=this._opts.playerWidth,this._playoutHeight=this._opts.playerHeight,this._avoidNativeFullscreen=!1,this._forceNativeFullscreen=!1,this._forceIOSNativeVideo=!1,this._forceAndroidNativeVideo=!1,this.fullscreen=!1,this._adUnitEmbed="a"===this._opts.embedData.appIndicator||"a"===this._opts.embedData.contentIndicator,this._playout=this._opts.playoutData?this._opts.playoutData:null,null!=this._playout&&(this._playoutWidth=this._playout.width,this._playoutHeight=this._playout.height,this._avoidNativeFullscreen="true"===this._playout.avoidNativeFullscreen,this._forceNativeFullscreen="true"===this._playout.forceNativeFullscreen,this._forceIOSNativeVideo="true"===this._playout.forceIOSNativeVideo,this._forceAndroidNativeVideo="true"===this._playout.forceAndroidNativeVideo),this._showState="expanded",null!=this._playout&&"true"==this._playout.startCollapsed&&(this._showState="collapsed");var r=null===(t=this._playout)||void 0===t?void 0:t.width,l=null===(a=this._playout)||void 0===a?void 0:a.height,u="true"===(null===(s=this._playout)||void 0===s?void 0:s.autoHeight),d="true"===(null===(o=this._playout)||void 0===o?void 0:o.responsiveSizing);(d||void 0===l)&&(u=!0),this._percentagePlayer=(null==r?void 0:r.indexOf("%"))>-1&&(null==l?void 0:l.indexOf("%"))>-1&&!u&&!d;var c=n.default.getService(this._opts.playerAliasOrId).getInstance("Detections");c&&(this._isiOS=c.isiOS,this._isAndroid=c.isAndroid,this._useiOS13Sizing=c.isiPhone&&c.iOSVersion>=13),this._playInline=this._determinePlayInline(this._opts.clipData),this.setWrapperSize(this._playoutWidth,this._playoutHeight),this._onPlayoutChangedBound=this._onPlayoutChanged.bind(this),this._onSubtitleChangedBound=this._onSubtitleChanged.bind(this),this._onFullscreenChangeBound=this._onFullscreenChange.bind(this),this._onLoadedClipDataBound=this._onLoadedClipData.bind(this),this._onReadyBound=this._onReady.bind(this),this._onResizeiOS13Bound=this._onResizeiOS13.bind(this),this._onKeyDownBound=this._onKeyDown.bind(this),null!=this.$element&&(this._api=n.default.getService(this._opts.playerAliasOrId).getInstance("PublicAPI"),this.$element.on("bb_playout_changed",this._onPlayoutChangedBound),this.$element.on("bb_subtitle_changed",this._onSubtitleChangedBound),this.$element.on("fullscreenchange",this._onFullscreenChangeBound),this.$element.on("fullscreenchanged",this._onFullscreenChangeBound),this.$element.on("webkitfullscreenchange",this._onFullscreenChangeBound),document.addEventListener("MSFullscreenChange",this._onFullscreenChangeBound),document.addEventListener("mozfullscreenchange",this._onFullscreenChangeBound),this.$element.on("loadedclipdata",this._onLoadedClipDataBound),this.$element.on("ready",this._onReadyBound),this._useiOS13Sizing&&window.addEventListener("resize",this._onResizeiOS13Bound))},a.prototype._determinePlayInline=function(e){var t=!1;return e&&(t="true"===e.shouldPlayInline||!0===e.shouldPlayInline,e.timelines&&e.timelines.length>=1&&(t=!0),"true"!==e.cubemapVideo&&!0!==e.cubemapVideo&&"360video"!==e.subtype&&!0!==e.isThreeSixtyVideo&&"true"!==e.isThreeSixtyVideo||(t=!0),e.subtitles&&e.subtitles.length>0&&this._hasSubtitlesOn&&(this._isiOS||this._isAndroid)&&(t=!0)),this._avoidNativeFullscreen&&(this._isiOS||this._isAndroid)&&(t=!0),t},a.prototype._onLoadedClipData=function(e,t){t&&(this._playInline=this._determinePlayInline(t.clipData)),this._adUnitEmbed||this.$element.triggerHandler("bb_resized")},a.prototype._onReady=function(e){this._adUnitEmbed||this.$element.triggerHandler("bb_resized"),this._api||(this._api=n.default.getService(this._opts.playerAliasOrId).getInstance("PublicAPI"))},a.prototype._onFullscreenChange=function(e){this._isRealFullscreen=!!((null==e?void 0:e.isRealFullscreen)||document.fullscreenElement||document.fullScreenElement||document.mozFullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.webkitFullScreenElement||document.msFullscreenElement),!this._isRealFullscreen&&this.fullscreen&&this.retractFullscreen(),this.$element.triggerHandler("bb_resized")},a.prototype._onFullscreenBegan=function(e){this.$element.triggerHandler("bb_resized")},a.prototype._onFullscreenEnded=function(e){this._isRealFullscreen=!1,!this._isRealFullscreen&&this.fullscreen&&this.retractFullscreen(),this.$element.triggerHandler("bb_resized")},a.prototype._onResizeiOS13=function(e){if(this.fullscreen)if(this._useiOS13Sizing){var t;try{t=window.top.innerHeight}catch(e){t=window.innerHeight}this.setWrapperSize("100vw",(t||window.innerHeight)+"px",!0)}else this.setWrapperSize("100%","100%",!0)},a.prototype.exit=function(){return null!=this.$element&&(this.$element.off("bb_playout_changed",this._onPlayoutChangedBound),this.$element.off("bb_subtitle_changed",this._onSubtitleChangedBound),this.$element.off("fullscreenchange",this._onFullscreenChangeBound),this.$element.off("fullscreenchanged",this._onFullscreenChangeBound),this.$element.off("webkitfullscreenchange",this._onFullscreenChangeBound),document.removeEventListener("MSFullscreenChange",this._onFullscreenChangeBound),document.removeEventListener("mozfullscreenchange",this._onFullscreenChangeBound),this.$element.off("loadedclipdata",this._onLoadedClipDataBound),this.$element.off("ready",this._onReadyBound),document.removeEventListener("keydown",this._onKeyDownBound),this._useiOS13Sizing&&window.removeEventListener("resize",this._onResizeiOS13Bound),n.default.getService(this._opts.playerAliasOrId).setInstance("Sizer",null)),null},a.prototype._onPlayoutDataLoaded=function(){this.fullscreen||this.setWrapperSize(this._playoutWidth,this._playoutHeight)},a.prototype.setWrapperSize=function(e,t,i){(e||0==e)&&e.toString().match(/^[\d.+-\s]+$/)&&(e=parseFloat(e).toString()+"px"),(t||0==t)&&t.toString().match(/^[\d.+-\s]+$/)&&(t=parseFloat(t).toString()+"px"),n.default.getService(this._opts.playerAliasOrId).getInstance("Interactivity")&&(this._showState=n.default.getService(this._opts.playerAliasOrId).getInstance("Interactivity").getShowState());var a=this.$element.parent();if(a.hasClass("bb_iawr")){if("collapsed"!=this._showState){var s=a.find(".bb-above");s.length>0&&!i?a.css({height:"calc("+t+" + "+s.height()+"px)"}):a.css({height:t}),this._percentagePlayer&&(a[0].style.minHeight=t)}a.css({width:e});var o=-1!==(null==t?void 0:t.indexOf("%"))?"100%":t,r=-1!==(null==e?void 0:e.indexOf("%"))?"100%":e;this.$element.css({width:r,height:o})}else this.$element.css({height:t,width:e});this.$element.trigger("bb_resized")},a.prototype.expandFullscreen=function(){this.fullscreen=!0,this._html5Fullscreen(),this.$element.triggerHandler("bb_fullscreen_change",[{fullscreen:this.fullscreen}])},a.prototype.retractFullscreen=function(){this.fullscreen=!1,this._retractHtml5Fullscreen(),this.$element.triggerHandler("bb_fullscreen_change",[{fullscreen:this.fullscreen}])},a.prototype.isFullscreen=function(){return this.fullscreen},a.prototype._html5Fullscreen=function(){if(this._requestFullScreen(this.$element[0]),this._useiOS13Sizing){var e;try{e=window.top.innerHeight}catch(t){e=window.innerHeight}this.setWrapperSize("100vw",(e||window.innerHeight)+"px",!0)}else this.setWrapperSize("100%","100%",!0)},a.prototype._retractHtml5Fullscreen=function(){this._cancelFullScreen(this.$element[0]),this.setWrapperSize(this._playoutWidth,this._playoutHeight)},a.prototype._iframesFullBrowser=function(){for(var e=0;e<this._parentIframes.length;e++){var t,n=this._parentIframes[e].iframe;if(null==this._parentIframes[e].oldStyle){var a={};a.position=n.style.position,a.width=n.style.width,a.height=n.style.height,a.top=n.style.top,a.left=n.style.left,a.zIndex=n.style.zIndex,a.element_width=n.width,a.element_height=n.height,this._parentIframes[e].oldStyle=a}try{t=window.top.innerHeight}catch(e){t=window.innerHeight}$parcel$interopDefault(i)(n).css({position:"fixed",top:"0",left:"0",bottom:"0",right:"0",zIndex:"2147483646",width:this._useiOS13Sizing?"100vw":"100%",height:this._useiOS13Sizing?(t||window.innerHeight)+"px":"100%"})}},a.prototype._retractIframesFullBrowser=function(){for(var e=0;e<this._parentIframes.length;e++){var t=this._parentIframes[e].iframe;if(null!=this._parentIframes[e].oldStyle){var i=this._parentIframes[e].oldStyle;t.style.position=i.position,t.style.width=i.width,t.style.height=i.height,t.style.top=i.top,t.style.left=i.left,t.style.zIndex=i.zIndex,t.width=i.element_width,t.height=i.element_height,this._parentIframes[e].oldStyle=null}}},a.prototype._fullBrowser=function(e){var t=this.$element[0];if(this._topWindowAccess?this._iframesFullBrowser():this._sendComsMessage("fullbrowser"),null==this._oldStyle&&(this._oldStyle={},this._oldStyle.position=t.style.position,this._oldStyle.width=t.style.width,this._oldStyle.height=t.style.height,this._oldStyle.top=t.style.top,this._oldStyle.left=t.style.left,this._oldStyle.bottom=t.style.bottom,this._oldStyle.right=t.style.right,this._oldStyle.zIndex=t.style.zIndex,this._oldStyle.element_width=t.width,this._oldStyle.element_height=t.height),document.addEventListener("keydown",this._onKeyDownBound),$parcel$interopDefault(i)(t).css({position:"fixed",top:"0",left:"0",bottom:"0",right:"0",zIndex:"999999"}),this._lockZoom(!0),this._useiOS13Sizing){var n;try{n=window.top.innerHeight}catch(e){n=window.innerHeight}this.setWrapperSize("100vw",(n||window.innerHeight)+"px",!0)}else this.setWrapperSize("100%","100%",!0);this.fullscreen=!0,e||this.$element.triggerHandler("bb_fullscreen_change",[{fullscreen:this.fullscreen}])},a.prototype._retractFullBrowser=function(e){var t=this.$element[0];this._topWindowAccess&&this._retractIframesFullBrowser(),this._sendComsMessage("fullbrowser-off"),null!=this._oldStyle&&(t.style.position=this._oldStyle.position,t.style.width=this._oldStyle.width,t.style.height=this._oldStyle.height,t.style.top=this._oldStyle.top,t.style.left=this._oldStyle.left,t.style.bottom=this._oldStyle.bottom,t.style.right=this._oldStyle.right,t.style.zIndex=this._oldStyle.zIndex,t.width=this._oldStyle.element_width,t.height=this._oldStyle.element_height,this._oldStyle=null),this._lockZoom(!1),this.setWrapperSize(this._playoutWidth,this._playoutHeight),this.fullscreen=!1,e||this.$element.triggerHandler("bb_fullscreen_change",[{fullscreen:this.fullscreen}])},a.prototype._vendorPrefixes=["o","ms","moz","webkit","khtml"],a.prototype._requestFullScreen=function(e){if(this._haveWindowProxy)return this._fullBrowser();if((this._forceNativeFullscreen||this._forceIOSNativeVideo&&this._isiOS&&!this._playInline||this._forceAndroidNativeVideo&&this._isAndroid&&!this._playInline)&&this._api&&this._api.nativeFullscreen())return!0;this._fullBrowser(!0),this._sendComsMessage("fullscr");var t=!1;if(e){var i=null;if("function"==typeof e.requestFullscreen)i="requestFullscreen";else if("function"==typeof e.requestFullScreen)i="requestFullScreen";else if("function"==typeof e.enterFullscreen)i="enterFullscreen";else if("function"==typeof e.enterFullScreen)i="enterFullScreen";else for(var n=["o","ms","moz","webkit","khtml"],a=0;a<n.length&&!i;a++){var s=n[a];"function"==typeof e[s+"RequestFullscreen"]?i=s+"RequestFullscreen":"function"==typeof e[s+"RequestFullScreen"]?i=s+"RequestFullScreen":"function"==typeof e[s+"EnterFullscreen"]?i=s+"EnterFullscreen":"function"==typeof e[s+"EnterFullScreen"]&&(i=s+"EnterFullScreen")}if(i)try{var o=e[i]();void 0!==o&&o.then&&o.then((function(){})).catch((function(e){})),t=!0}catch(e){}}return t||this._haveWindowProxy||this._playInline||!this._api||(t=this._api.nativeFullscreen()),t||(t=this._fullBrowser()),t},a.prototype._cancelFullScreen=function(){if(this._haveWindowProxy)return this._retractFullBrowser();if(this._forceNativeFullscreen||this._forceIOSNativeVideo&&this._isiOS&&!this._playInline||this._forceAndroidNativeVideo&&this._isAndroid&&!this._playInline)return!0;if(this._retractFullBrowser(!0),this._sendComsMessage("cancelfullscr"),this._isRealFullscreen)if(document.exitFullscreen)document.exitFullscreen();else if(document.cancelFullscreen)document.cancelFullscreen();else{if(!document.cancelFullScreen){for(var e=0;e<this._vendorPrefixes.length;e++){var t=this._vendorPrefixes[e];if(void 0!==document[t+"ExitFullscreen"])return document[t+"ExitFullscreen"]();if(void 0!==document[t+"CancelFullscreen"])return document[t+"CancelFullscreen"]();if(void 0!==document[t+"CancelFullScreen"])return document[t+"CancelFullScreen"]()}return this._retractFullBrowser()}document.cancelFullScreen()}},a.prototype._lockZoom=function(e){e?(this._locked=!0,this.$initialViewport.length>0&&(this._originalViewport=$parcel$interopDefault(i)(this.$initialViewport[0]).attr("content"),this.$initialViewport.remove()),this.$metaViewport=$parcel$interopDefault(i)('<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=1" />'),$parcel$interopDefault(i)("head").bb_prependSanitized(this.$metaViewport)):this._locked&&(void 0!==this.$metaViewport&&this.$metaViewport.length>0&&this.$metaViewport.remove(),this._originalViewport||(this._originalViewport=""),$parcel$interopDefault(i)("head").bb_prependSanitized('<meta name="viewport" content="'+this._originalViewport+'" />'))},a.prototype._onPlayoutChanged=function(e,t){if(t&&void 0!==t.playoutData&&(void 0!==t.playoutData.width&&(this._playoutWidth=t.playoutData.width),void 0!==t.playoutData.height&&(this._playoutHeight=t.playoutData.height),void 0!==t.playoutData.startCollapsed&&(this._showState="true"==t.playoutData.startCollapsed?"collapsed":"expanded"),void 0!==t.playoutData.width||void 0!==t.playoutData.height||void 0!==t.playoutData.autoHeight||void 0!==t.playoutData.responsiveSizing)){var i,n,a=void 0!==t.playoutData.width?t.playoutData.width:this._playoutWidth,s=void 0!==t.playoutData.height?t.playoutData.height:this._playoutHeight,o=void 0!==t.playoutData.autoHeight?"true"===t.playoutData.autoHeight:"true"===(null===(i=this._playout)||void 0===i?void 0:i.autoHeight),r=void 0!==t.playoutData.responsiveSizing?"true"===t.playoutData.responsiveSizing:"true"===(null===(n=this._playout)||void 0===n?void 0:n.responsiveSizing);(r||void 0===s)&&(o=!0),this._percentagePlayer=(null==a?void 0:a.indexOf("%"))>-1&&(null==s?void 0:s.indexOf("%"))>-1&&!o&&!r}},a.prototype._onSubtitleChanged=function(e,t){var i;t&&(void 0!==t.subtitleId?this._hasSubtitlesOn=!("-1"===t.subtitleId):this._hasSubtitlesOn=!("-1"===(null===(i=t.subtitle)||void 0===i?void 0:i.id)))},a.prototype._onKeyDown=function(e){if(27===e.keyCode)this.retractFullscreen();document.removeEventListener("keydown",this._onKeyDownBound)}})),parcelRequire.register("2gDLG",(function(e,t){!function(t){var i=!1,n=/xyz/.test((function(){}))?/\b_super\b/:/.*/,a=function(){};a.extend=function(e){var t=function(){!i&&this.init&&this.init.apply(this,arguments)},s=this.prototype;i=!0;var o=new this;for(var r in i=!1,e)o[r]="function"==typeof e[r]&&"function"==typeof s[r]&&n.test(e[r])?function(e,t){return function(){var i=this._super;this._super=s[e];var n=t.apply(this,arguments);return this._super=i,n}}(r,e[r]):e[r];return(t.prototype=o).constructor=t,t.extend=a.extend,t};var s={debug:!1,trace:function(e){this.debug&&void 0!==t.console&&t.console.log("Porthole: "+e)},error:function(e){t.console,"function"==typeof t.console.error&&t.console.error("Porthole: "+e)},WindowProxy:function(){}};s.WindowProxy.prototype={post:function(e,t){},addEventListener:function(e){},removeEventListener:function(e){}},s.WindowProxyBase=a.extend({init:function(e){void 0===e&&(e=""),this.targetWindowName=e,this.origin=t.location.protocol+"//"+t.location.host,this.eventListeners=[]},getTargetWindowName:function(){return this.targetWindowName},getOrigin:function(){return this.origin},getTargetWindow:function(){return s.WindowProxy.getTargetWindow(this.targetWindowName)},post:function(e,i){void 0===i&&(i="*"),this.dispatchMessage({data:e,sourceOrigin:this.getOrigin(),targetOrigin:i,sourceWindowName:t.name,targetWindowName:this.getTargetWindowName()})},addEventListener:function(e){return this.eventListeners.push(e),e},removeEventListener:function(e){var t;try{t=this.eventListeners.indexOf(e),this.eventListeners.splice(t,1)}catch(e){this.eventListeners=[]}},dispatchEvent:function(e){var t;for(t=0;t<this.eventListeners.length;t++)try{this.eventListeners[t](e)}catch(e){s.error(e)}}}),s.WindowProxyLegacy=s.WindowProxyBase.extend({init:function(e,t){this._super(t),null!==e?(this.proxyIFrameName=this.targetWindowName+"ProxyIFrame",this.proxyIFrameLocation=e,this.proxyIFrameElement=this.createIFrameProxy()):(this.proxyIFrameElement=null,s.trace("proxyIFrameUrl is null, window will be a receiver only"),this.post=function(){throw new Error("Receiver only window")})},createIFrameProxy:function(){var e=document.createElement("iframe");return e.setAttribute("id",this.proxyIFrameName),e.setAttribute("name",this.proxyIFrameName),e.setAttribute("src",this.proxyIFrameLocation),e.setAttribute("frameBorder","1"),e.setAttribute("scrolling","auto"),e.setAttribute("width",30),e.setAttribute("height",30),e.setAttribute("style","position: absolute; left: -100px; top:0px;"),e.style.setAttribute&&e.style.setAttribute("cssText","position: absolute; left: -100px; top:0px;"),document.body.appendChild(e),e},dispatchMessage:function(e){var i=t.encodeURIComponent;if(this.proxyIFrameElement){var n=this.proxyIFrameLocation+"#"+i(s.WindowProxy.serialize(e));this.proxyIFrameElement.setAttribute("src",n),this.proxyIFrameElement.height=this.proxyIFrameElement.height>50?50:100}}}),s.WindowProxyHTML5=s.WindowProxyBase.extend({init:function(e,t){this._super(t),this.eventListenerCallback=null},dispatchMessage:function(e){this.getTargetWindow().postMessage(s.WindowProxy.serialize(e),e.targetOrigin)},addEventListener:function(e){if(0===this.eventListeners.length){var i=this;t.addEventListener?(this.eventListenerCallback=function(e){i.eventListener(i,e)},t.addEventListener("message",this.eventListenerCallback,!1)):t.attachEvent&&(this.eventListenerCallback=function(e){i.eventListener(i,t.event)},t.attachEvent("onmessage",this.eventListenerCallback))}return this._super(e)},removeEventListener:function(e){this._super(e),0===this.eventListeners.length&&(t.removeEventListener?t.removeEventListener("message",this.eventListenerCallback):t.detachEvent&&(void 0===t.onmessage&&(t.onmessage=null),t.detachEvent("onmessage",this.eventListenerCallback)),this.eventListenerCallback=null)},eventListener:function(e,t){var i=s.WindowProxy.unserialize(t.data);!i||""!==e.targetWindowName&&i.sourceWindowName!=e.targetWindowName||e.dispatchEvent(new s.MessageEvent(i.data,t.origin,e))}}),t.postMessage?(s.trace("Using built-in browser support"),s.WindowProxy=s.WindowProxyHTML5.extend({})):(s.trace("Using legacy browser support"),s.WindowProxy=s.WindowProxyLegacy.extend({})),s.WindowProxy.serialize=function(e){if("undefined"==typeof JSON)throw new Error("Porthole serialization depends on JSON!");return JSON.stringify(e)},s.WindowProxy.unserialize=function(e){if("undefined"==typeof JSON)throw new Error("Porthole unserialization dependens on JSON!");try{var t=JSON.parse(e)}catch(e){return!1}return t},s.WindowProxy.getTargetWindow=function(e){return""===e?parent:"top"===e||"parent"===e?t[e]:t.frames[e]},s.MessageEvent=function(e,t,i){this.data=e,this.origin=t,this.source=i},s.WindowProxyDispatcher={forwardMessageEvent:function(e){var i,n,a,o=t.decodeURIComponent;document.location.hash.length>0&&(i=s.WindowProxy.unserialize(o(document.location.hash.substr(1))),n=s.WindowProxy.getTargetWindow(i.targetWindowName),(a=s.WindowProxyDispatcher.findWindowProxyObjectInWindow(n,i.sourceWindowName))?a.origin===i.targetOrigin||"*"===i.targetOrigin?a.dispatchEvent(new s.MessageEvent(i.data,i.sourceOrigin,a)):s.error("Target origin "+a.origin+" does not match desired target of "+i.targetOrigin):s.error("Could not find window proxy object on the target window"))},findWindowProxyObjectInWindow:function(e,t){var i;if(e)for(i in e)if(Object.prototype.hasOwnProperty.call(e,i))try{if(null!==e[i]&&"object"==typeof e[i]&&e[i]instanceof e.Porthole.WindowProxy&&e[i].getTargetWindowName()===t)return e[i]}catch(e){}return null},start:function(){t.addEventListener?t.addEventListener("resize",s.WindowProxyDispatcher.forwardMessageEvent,!1):t.attachEvent&&"undefined"!==t.postMessage||document.body.attachEvent?t.attachEvent("onresize",s.WindowProxyDispatcher.forwardMessageEvent):s.error("Cannot attach resize event")}},e.exports=s}("undefined"!=typeof window?window:e.exports)})),parcelRequire.register("3yCUc",(function(e,t){$parcel$export(e.exports,"default",(function(){return r})),parcelRequire("lDGnc");var i=parcelRequire("lwy96");parcelRequire("6JR1F");var n=parcelRequire("hGJI5"),a=parcelRequire("3DsR2"),s=parcelRequire("e06N2"),o=parcelRequire("6HlG1"),r=function(e,t){if(this.$element=null,this._playerId="",this._playerAlias="",this._plc=null,this._pc=null,this._headController=null,this._sc=null,this._ls=null,this._relatedClipsHelper=null,this._contextMenu=null,this._browserLanguage=window.navigator.userLanguage||window.navigator.language,this._localStorage=null,this._opts=t,null!=this._opts&&void 0!==this._opts.publicationData&&(this._opts.publicationData.server=this._opts.publicationData.baseurl),this._playerId="/p/"+this._opts.playoutData.label+"/"+this._opts.embedData.contentIndicator+"/"+this._opts.embedData.contentId,this._opts.alias&&(this._playerAlias=this._opts.alias),this._autoPlay="true"===this._opts.playoutData.autoPlay,this._autoPlayNext="true"===this._opts.playoutData.autoPlayNext,"Show"===this._opts.playoutData.relatedItemsPause&&(this._relatedClipsPause=!0),e.data("flags",e.data("flags")||{}),this._playout=this._opts.playoutData?$parcel$interopDefault(n).extend({},this._opts.playoutData):null,this._projectData=null,this._clipListData=null,this._currentAd=null,this._clip=null,this._originalAssets=null,this._assets=null,this._assetsMap=null,this._asset=null,this._headType=null,this._commercialHeadType=null,this._relatedClips=null,this._relatedItems=null,this._canPlay=!1,this._phase=null,this._mode=null,this._state=null,this._mediaDuration=null,this._commercialDuration=null,this._lastKnownMediaCurrentTime=null,this._detections=null,this._msasController=null,this._currentSubtitle=null,this._currentSubtitleLine=null,this._audioTracks=null,this._currentAudioTrack=null,this._fullscreen=!1,this._beforeUnload=!1,this._timeEqual=0,this._haveplayed=!1,this._adLogs=[],this._pendingNonUserPlay=this._autoPlay,this._embedCodeForSharing=null,this._eventNS="bbapi"+String(Math.random()).replace(".",""),this._phases=["bb-phase-init","bb-phase-pre","bb-phase-main","bb-phase-post","bb-phase-exit"],this._modes=["bb-mode-static","bb-mode-commercial","bb-mode-audio","bb-mode-video","bb-mode-presentation","bb-mode-live-audio","bb-mode-live-video"],this._states=["bb-state-idle","bb-state-paused","bb-state-error","bb-state-playing","bb-state-loading"],this._adPodInfo=null,this._ready=!1,this._started=!1,this._state="idle",this._playing=!1,this._ended=!1,this._areBoundToTouchstart=!1,this._playing_med=!1,this._playing_com=!1,this._paused_com=!1,this._legacyTextTracks=!0,this._legacyAudioTracks=!0,this._loadedplayoutdata=!1,this._loadedprojectdata=!1,this._loadedclipdata=!1,this._loadedcliplistdata=!1,this._subtitles=null,void 0!==e&&null!=e){var i;this.$element=e;var s=a.default.getService(this._opts.playerAliasOrId);null==s||s.setInstance("PublicAPI",this),this._$skinLayer=null;var r=this.getSkinLayer();r&&(this._$skinLayer=$parcel$interopDefault(n)(r)),s&&(void 0!==s.getInstance("PlayoutController")&&(this._plc=s.getInstance("PlayoutController")),void 0!==s.getInstance("ProgramController")&&(this._pc=s.getInstance("ProgramController")),void 0!==s.getInstance("HeadController")&&(this._headController=s.getInstance("HeadController")),void 0!==s.getInstance("SoundController")&&(this._sc=s.getInstance("SoundController")),void 0!==s.getInstance("LocalStorage")&&(this._ls=s.getInstance("LocalStorage")),void 0!==s.getInstance("Detections")&&(this._detections=s.getInstance("Detections")),void 0!==s.getInstance("MSASController")&&(this._msasController=s.getInstance("MSASController")),void 0!==s.getInstance("Sizer")&&(this._sizer=s.getInstance("Sizer")),this._mouseController=s.getInstance("MouseController"),this._inViewController=s.getInstance("InViewController"),void 0!==s.getInstance("Interactivity")&&(this._interactivity=s.getInstance("Interactivity")),void 0!==s.getInstance("ContextMenu")&&(this._contextMenu=s.getInstance("ContextMenu")),this._callbackScheduler=s.getInstance("CallbackScheduler")),this._imageExtension=(null===(i=this._detections)||void 0===i?void 0:i.webp)?"webp":"jpg","function"==typeof o.default&&(this._relatedClipsHelper=new o.default(this.$element,this._opts)),this.$element.get(0).call=this._call.bind(this),this._onAdLoadedBound=this._onAdLoaded.bind(this),this._onPlayoutLoadedBound=this._onPlayoutLoaded.bind(this),this._onPlayoutChangedBound=this._onPlayoutChanged.bind(this),this._onProjectLoadedBound=this._onProjectLoaded.bind(this),this._onClipListLoadedBound=this._onClipListLoaded.bind(this),this._onClipListChangedBound=this._onClipListChanged.bind(this),this._onClipLoadedBound=this._onClipLoaded.bind(this),this._onTimelineChaptersChangedBound=this._onTimelineChaptersChanged.bind(this),this._onTimelineLoadedBound=this._onTimelineLoaded.bind(this),this._onPhaseChangeBound=this._onPhaseChange.bind(this),this._onRelatedClipsChangedBound=this._onRelatedClipsChanged.bind(this),this._onAssetsChangedBound=this._onAssetsChanged.bind(this),this._onAssetSelectedBound=this._onAssetSelected.bind(this),this._onAudioTrackSelectedBound=this._onAudioTrackSelected.bind(this),this._onHeadSelectedBound=this._onHeadSelected.bind(this),this._onCommercialHeadSelectedBound=this._onCommercialHeadSelected.bind(this),this._onMediaLoadStartBound=this._onMediaLoadStart.bind(this),this._onCanPlayBound=this._onCanPlay.bind(this),this._onCouldPlayBound=this._onCouldPlay.bind(this),this._onPlayBound=this._onPlay.bind(this),this._onAutoPauseBound=this._onAutoPause.bind(this),this._onMediaPlayingBound=this._onMediaPlaying.bind(this),this._onMediaPausedBound=this._onMediaPaused.bind(this),this._onMediaWaitingBound=this._onMediaWaiting.bind(this),this._onStalledBound=this._onStalled.bind(this),this._onTimeUpdateBound=this._onTimeUpdate.bind(this),this._onSeekingBound=this._onSeeking.bind(this),this._onSeekedBound=this._onSeeked.bind(this),this._onProgressBound=this._onProgress.bind(this),this._onVolumeChangeBound=this._onVolumeChange.bind(this),this._onMediaDurationChangeBound=this._onMediaDurationChange.bind(this),this._onCommercialLoadStartBound=this._onCommercialLoadStart.bind(this),this._onCommercialPlayingBound=this._onCommercialPlaying.bind(this),this._onCommercialPausedBound=this._onCommercialPaused.bind(this),this._onCommercialEndedBound=this._onCommercialEnded.bind(this),this._onCommercialDurationChangeBound=this._onCommercialDurationChange.bind(this),this._onErrorBound=this._onError.bind(this),this._onResizedBound=this._onResized.bind(this),this._onSubtitleChangedBound=this._onSubtitleChanged.bind(this),this._onSubtitleLineChangedBound=this._onSubtitleLineChanged.bind(this),this._onInviewBound=this._onInview.bind(this),this._onOutviewBound=this._onOutview.bind(this),this._onFlagChangeBound=this._onFlagChange.bind(this),this._onFullscreenChangeBound=this._onFullscreenChange.bind(this),this._onFullScreenMismatchBound=this._onFullScreenMismatch.bind(this),this._onLoadedDataBound=this._onLoadedData.bind(this),this._onLoadedMetaDataBound=this._onLoadedMetaData.bind(this),this._onAdLogBound=this._onAdLog.bind(this),this._onAdQuartileBound=this._onAdQuartile.bind(this),this._onAutoPlayNextTimerEventBound=this._onAutoPlayNextTimerEvent.bind(this),this._onSoftEmbargoTimerEventBound=this._onSoftEmbargoTimerEvent.bind(this),this._onFloatStartBound=this._onFloatStart.bind(this),this._onFloatEndBound=this._onFloatEnd.bind(this),this._onAutoPlayCheckReadyBound=this._onAutoPlayCheckReady.bind(this),this._onPlaybackAvaChangedBound=this._onPlaybackAvaChanged.bind(this),this._onAdErrorBound=this._onAdError.bind(this),this._onPlaybackRateChangedBound=this._onPlaybackRateChanged.bind(this),this._onAdSystemLoadedBound=this._onAdSystemLoaded.bind(this),this._onAdScheduleItemCanPlayBound=this._onAdScheduleItemCanPlay.bind(this),this._onAdSkippableBound=this._onAdSkippable.bind(this),this._onAdSkippedBound=this._onAdSkipped.bind(this),this._onMouseOverXSBound=this._onMouseOverXS.bind(this),this._onCollapsedBound=this._onCollapsed.bind(this),this._onExpandedBound=this._onExpanded.bind(this),this._onCastSessionChangeBound=this._onCastSessionChange.bind(this),this._onCastSessionStateChangeBound=this._onCastSessionStateChange.bind(this),this._onBeforeUnloadBound=this._onBeforeUnload.bind(this),this._onMessageBound=this._onMessage.bind(this),this.$element.on("bb_ad_loaded",this._onAdLoadedBound),this.$element.on("bb_playout_loaded",this._onPlayoutLoadedBound),this.$element.on("bb_playout_changed",this._onPlayoutChangedBound),this.$element.on("bb_project_loaded",this._onProjectLoadedBound),this.$element.on("bb_cliplist_loaded",this._onClipListLoadedBound),this.$element.on("bb_cliplist_changed",this._onClipListChangedBound),this.$element.on("bb_mediaclip_loaded",this._onClipLoadedBound),this.$element.on("bb_timeline_chapters_changed",this._onTimelineChaptersChangedBound),this.$element.on("bb_timeline_loaded",this._onTimelineLoadedBound),this.$element.on("bb_phase_change",this._onPhaseChangeBound),this.$element.on("bb_related_clips_changed",this._onRelatedClipsChangedBound),this.$element.on("bb_assets_changed",this._onAssetsChangedBound),this.$element.on("bb_asset_selected",this._onAssetSelectedBound),this.$element.on("bb_audiotrack_selected",this._onAudioTrackSelectedBound),this.$element.on("bb_head_selected",this._onHeadSelectedBound),this.$element.on("bb_commercial_head_selected",this._onCommercialHeadSelectedBound),this.$element.on("bb_media_loadstart",this._onMediaLoadStartBound),this.$element.on("bb_media_canplay",this._onCanPlayBound),this.$element.on("bb_media_couldplay",this._onCouldPlayBound),this.$element.on("bb_program_play",this._onPlayBound),this.$element.on("bb_program_autopause",this._onAutoPauseBound),this.$element.on("bb_media_playing",this._onMediaPlayingBound),this.$element.on("bb_media_paused",this._onMediaPausedBound),this.$element.on("bb_media_waiting",this._onMediaWaitingBound),this.$element.on("bb_media_stalled",this._onStalledBound),this.$element.on("bb_media_timeupdate",this._onTimeUpdateBound),this.$element.on("bb_media_seeking",this._onSeekingBound),this.$element.on("bb_media_seeked",this._onSeekedBound),this.$element.on("bb_media_progress",this._onProgressBound),this.$element.on("bb_master_volume_change",this._onVolumeChangeBound),this.$element.on("bb_media_duration_change",this._onMediaDurationChangeBound),this.$element.on("bb_commercial_loadstart",this._onCommercialLoadStartBound),this.$element.on("bb_commercial_playing",this._onCommercialPlayingBound),this.$element.on("bb_commercial_paused",this._onCommercialPausedBound),this.$element.on("bb_commercial_ended",this._onCommercialEndedBound),this.$element.on("bb_commercial_stalled",this._onStalledBound),this.$element.on("bb_commercial_timeupdate",this._onTimeUpdateBound),this.$element.on("bb_commercial_duration_change",this._onCommercialDurationChangeBound),this.$element.on("bb_error",this._onErrorBound),this.$element.on("bb_resized",this._onResizedBound),this.$element.on("bb_subtitle_changed",this._onSubtitleChangedBound),this.$element.on("bb_subtitle_line_changed",this._onSubtitleLineChangedBound),this.$element.on("bb_inview",this._onInviewBound),this.$element.on("bb_outview",this._onOutviewBound),this.$element.on("bb_flagchange",this._onFlagChangeBound),this.$element.on("bb_fullscreen_change",this._onFullscreenChangeBound),this.$element.on("bb_fullscreen_mismatch",this._onFullScreenMismatchBound),this.$element.on("bb_media_loadeddata",this._onLoadedDataBound),this.$element.on("bb_media_loadedmetadata",this._onLoadedMetaDataBound),this.$element.on("bb_ad_log",this._onAdLogBound),this.$element.on("bb_adsystem_quartile bb_as_ad_quartile",this._onAdQuartileBound),this.$element.on("bb_autoplaynexttimer_started",this._onAutoPlayNextTimerEventBound),this.$element.on("bb_autoplaynexttimer_cancelled",this._onAutoPlayNextTimerEventBound),this.$element.on("bb_autoplaynexttimer_tick",this._onAutoPlayNextTimerEventBound),this.$element.on("bb_autoplaynexttimer_finished",this._onAutoPlayNextTimerEventBound),this.$element.on("bb_autoplaynexttimer_paused",this._onAutoPlayNextTimerEventBound),this.$element.on("bb_autoplaynexttimer_resumed",this._onAutoPlayNextTimerEventBound),this.$element.on("bb_softembargotimer_started",this._onSoftEmbargoTimerEventBound),this.$element.on("bb_softembargotimer_cancelled",this._onSoftEmbargoTimerEventBound),this.$element.on("bb_softembargotimer_tick",this._onSoftEmbargoTimerEventBound),this.$element.on("bb_softembargotimer_finished",this._onSoftEmbargoTimerEventBound),this.$element.on("bb_to_sticky_position",this._onFloatStartBound),this.$element.on("bb_returned_from_sticky_position",this._onFloatEndBound),this.$element.on("bb_autoplay_check_ready",this._onAutoPlayCheckReadyBound),this.$element.on("bb_playbacktargetavailabilitychanged",this._onPlaybackAvaChangedBound),this.$element.on("bb_adsystem_noad",this._onAdErrorBound),this.$element.on("bb_adsystem_failed",this._onAdErrorBound),this.$element.on("bb_media_playback_rate_change",this._onPlaybackRateChangedBound),this.$element.on("bb_adsystem_loaded",this._onAdSystemLoadedBound),this.$element.on("bb_as_item_canplay",this._onAdScheduleItemCanPlayBound),this.$element.on("bb_ad_skippable",this._onAdSkippableBound),this.$element.on("bb_adsystem_skipped bb_as_item_skipped",this._onAdSkippedBound),this.$element.on("bb_mouseover_x_s",this._onMouseOverXSBound),this.$element.on("bb_collapsed",this._onCollapsedBound),this.$element.on("bb_expanded",this._onExpandedBound),this.$element.on("bb_castsessionchange",this._onCastSessionChangeBound),this.$element.on("bb_castsessionstatechange",this._onCastSessionStateChangeBound),window.addEventListener("beforeunload",this._onBeforeUnloadBound),window.addEventListener("message",this._onMessageBound),this._ready=!0;try{window.parent.postMessage("handshake","*")}catch(e){}null!=this._sc&&(this._sc.getMuted()?(this.$element.addClass("bb-muted"),this._$skinLayer&&this._$skinLayer.addClass("bb-muted")):(this.$element.removeClass("bb-muted"),this._$skinLayer&&this._$skinLayer.removeClass("bb-muted")),window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"volumechange"));var l=s.getInstance("LocalStorage");void 0!==l&&null!=l&&(this._localStorage=l)}};r.prototype.exit=function(){return null!=this.$element&&(this.$element.off("bb_ad_loaded",this._onAdLoadedBound),this.$element.off("bb_playout_loaded",this._onPlayoutLoadedBound),this.$element.off("bb_playout_changed",this._onPlayoutChangedBound),this.$element.off("bb_project_loaded",this._onProjectLoadedBound),this.$element.off("bb_cliplist_loaded",this._onClipListLoadedBound),this.$element.off("bb_cliplist_changed",this._onClipListChangedBound),this.$element.off("bb_mediaclip_loaded",this._onClipLoadedBound),this.$element.off("bb_timeline_chapters_changed",this._onTimelineChaptersChangedBound),this.$element.off("bb_timeline_loaded",this._onTimelineLoadedBound),this.$element.off("bb_phase_change",this._onPhaseChangeBound),this.$element.off("bb_related_clips_changed",this._onRelatedClipsChangedBound),this.$element.off("bb_assets_changed",this._onAssetsChangedBound),this.$element.off("bb_asset_selected",this._onAssetSelectedBound),this.$element.off("bb_audiotrack_selected",this._onAudioTrackSelectedBound),this.$element.off("bb_head_selected",this._onHeadSelectedBound),this.$element.off("bb_commercial_head_selected",this._onCommercialHeadSelectedBound),this.$element.off("bb_media_loadstart",this._onMediaLoadStartBound),this.$element.off("bb_media_canplay",this._onCanPlayBound),this.$element.off("bb_media_couldplay",this._onCouldPlayBound),this.$element.off("bb_program_play",this._onPlayBound),this.$element.off("bb_program_autopause",this._onAutoPauseBound),this.$element.off("bb_media_playing",this._onMediaPlayingBound),this.$element.off("bb_media_paused",this._onMediaPausedBound),this.$element.off("bb_media_waiting",this._onMediaWaitingBound),this.$element.off("bb_media_stalled",this._onStalledBound),this.$element.off("bb_media_timeupdate",this._onTimeUpdateBound),this.$element.off("bb_media_seeking",this._onSeekingBound),this.$element.off("bb_media_seeked",this._onSeekedBound),this.$element.off("bb_media_progress",this._onProgressBound),this.$element.off("bb_master_volume_change",this._onVolumeChangeBound),this.$element.off("bb_media_duration_change",this._onMediaDurationChangeBound),this.$element.off("bb_commercial_loadstart",this._onCommercialLoadStartBound),this.$element.off("bb_commercial_playing",this._onCommercialPlayingBound),this.$element.off("bb_commercial_paused",this._onCommercialPausedBound),this.$element.off("bb_commercial_ended",this._onCommercialEndedBound),this.$element.off("bb_commercial_stalled",this._onStalledBound),this.$element.off("bb_commercial_timeupdate",this._onTimeUpdateBound),this.$element.off("bb_commercial_duration_change",this._onCommercialDurationChangeBound),this.$element.off("bb_error",this._onErrorBound),this.$element.off("bb_resized",this._onResizedBound),this.$element.off("bb_subtitle_changed",this._onSubtitleChangedBound),this.$element.off("bb_subtitle_line_changed",this._onSubtitleLineChangedBound),this.$element.off("bb_inview",this._onInviewBound),this.$element.off("bb_outview",this._onOutviewBound),this.$element.off("bb_flagchange",this._onFlagChangeBound),this.$element.off("bb_fullscreen_change",this._onFullscreenChangeBound),this.$element.off("bb_fullscreen_mismatch",this._onFullScreenMismatchBound),this.$element.off("bb_media_loadeddata",this._onLoadedDataBound),this.$element.off("bb_media_loadedmetadata",this._onLoadedMetaDataBound),this.$element.off("bb_ad_log",this._onAdLogBound),this.$element.off("bb_adsystem_quartile bb_as_ad_quartile",this._onAdQuartileBound),this.$element.off("bb_autoplaynexttimer_started",this._onAutoPlayNextTimerEventBound),this.$element.off("bb_autoplaynexttimer_cancelled",this._onAutoPlayNextTimerEventBound),this.$element.off("bb_autoplaynexttimer_tick",this._onAutoPlayNextTimerEventBound),this.$element.off("bb_autoplaynexttimer_finished",this._onAutoPlayNextTimerEventBound),this.$element.off("bb_autoplaynexttimer_paused",this._onAutoPlayNextTimerEventBound),this.$element.off("bb_autoplaynexttimer_resumed",this._onAutoPlayNextTimerEventBound),this.$element.off("bb_softembargotimer_started",this._onSoftEmbargoTimerEventBound),this.$element.off("bb_softembargotimer_cancelled",this._onSoftEmbargoTimerEventBound),this.$element.off("bb_softembargotimer_tick",this._onSoftEmbargoTimerEventBound),this.$element.off("bb_softembargotimer_finished",this._onSoftEmbargoTimerEventBound),this.$element.off("bb_to_sticky_position",this._onFloatStartBound),this.$element.off("bb_returned_from_sticky_position",this._onFloatEndBound),this.$element.off("bb_autoplay_check_ready",this._onAutoPlayCheckReadyBound),this.$element.off("bb_playbacktargetavailabilitychanged",this._onPlaybackAvaChangedBound),this.$element.off("bb_adsystem_noad",this._onAdErrorBound),this.$element.off("bb_adsystem_failed",this._onAdErrorBound),this.$element.off("bb_media_playback_rate_change",this._onPlaybackRateChangedBound),this.$element.off("bb_adsystem_loaded",this._onAdSystemLoadedBound),this.$element.off("bb_as_item_canplay",this._onAdScheduleItemCanPlayBound),this.$element.off("bb_adsystem_skipped bb_as_item_skipped",this._onAdSkippedBound),this.$element.off("bb_mouseover_x_s",this._onMouseOverXSBound),this.$element.off("bb_collapsed",this._onCollapsedBound),this.$element.off("bb_expanded",this._onExpandedBound),this.$element.off("bb_castsessionchange",this._onCastSessionChangeBound),this.$element.off("bb_castsessionstatechange",this._onCastSessionStateChangeBound),window.removeEventListener("beforeunload",this._onBeforeUnloadBound),window.removeEventListener("message",this._onMessageBound),a.default.getService(this._opts.playerAliasOrId).setInstance("PublicAPI",null)),null},r.prototype.reset=function(){this._clip=null,this._subtitles=null,this._originalAssets=null,this._assets=null,this._assetsMap=null,this._asset=null,this._relatedClips=null,this._relatedItems=null,this._canPlay=!1,this._phase=null,this._mode=null,this._state=null,this._mediaDuration=0,this._commercialDuration=0,this._currentSubtitle=null,this._currentSubtitleLine=null,this._timeEqual=0,this._haveplayed=!1,this._audioTracks=null,this._currentAudioTrack=null,this._adPodInfo=null,this._state="idle",this._playing=!1,this._playing_med=!1,this._playing_com=!1},r.prototype.on=function(e,t){if(!e||"function"!=typeof t)return!1;for(var i=e.split(" "),n=0;n<i.length;n++){if(null!=i[n].match(/^bb_/))return!1;i[n].indexOf(".")<0&&(i[n]+=".external"+this._eventNS)}var a=i.join(" ");this.$element.on(a,t);for(n=0;n<i.length;n++)switch(i[n].split(".")[0]){case"ready":this._ready&&t();break;case"loadedplayoutdata":this._loadedplayoutdata&&t();break;case"loadedprojectdata":this._loadedprojectdata&&t();break;case"loadedclipdata":this._loadedclipdata&&t();break;case"loadedcliplistdata":this._loadedcliplistdata&&t();break;case"error":"error"===this._state&&t()}},r.prototype.off=function(e){for(var t=e.split(" "),i=0;i<t.length;i++){if(null!=t[i].match(/^bb_/))return!1;t[i].indexOf(".")<0&&(t[i]+=".external"+this._eventNS)}var n=t.join(" ");this.$element.off(n)},r.prototype.load=function(e){var t=!1;if(this.reset(),null!=this._pc)if(void 0!==e&&null!=e){this._pc.pause();var i=null,n="c";void 0!==e.clipId&&(i=e.clipId,n="c"),void 0!==e.cliplistId&&(i=e.cliplistId,n="l"),void 0!==e.projectId&&(i=e.projectId,n="p"),void 0===e.initiator&&(e.initiator="external"),void 0===e.autoPlay&&(e.autoPlay=!0),(void 0===e.seekTo||!e.seekTo||e.seekTo<0)&&(e.seekTo=null),void 0===e.token&&(e.token=null),void 0===e.useSession&&(e.useSession=null),null!=i?(!0!==e.autoPlay&&"true"!==e.autoPlay||(this.$element.addClass("bb-pendingplay"),this._$skinLayer&&this._$skinLayer.addClass("bb-pendingplay")),t=this._pc.load(i,n,e)):"object"==typeof e.projectData?t=this._pc.loadData(e.projectData,e):"object"==typeof e.clipListData?t=this._pc.loadData(e.clipListData,e):"object"==typeof e.clipData?t=this._pc.loadData(e.clipData,e):"object"==typeof e.adSchedulingData?t=this._pc.loadData(e.adSchedulingData,e):"object"==typeof e.adServicesData&&(t=this._pc.loadData(e.adServicesData,e))}else{t=this._pc.unload();var s=a.default.getService(this._opts.playerAliasOrId).getInstance("BlueBillywigStatisticsLogger");void 0!==s&&null!=s&&s.reset()}return window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"timeupdate"),t},r.prototype.preloadAds=function(e,t){return null!=this._pc&&this._pc.preloadAds(e,t)},r.prototype.play=function(e){var t,i,n;if(!e&&!(s.default("[PublicAPI] play non-user action"),this._pendingNonUserPlay=!0,this._started||(this._autoPlayAdvancedCheckCanAutoPlay||!this._autoPlayAdvancedCheckCanAutoPlayMuted||this.getMuted()||this._playout&&"true"!==this._playout.autoMute&&"true"!==this._playout.avoidMutedAutoPlay&&this.updatePlayout({autoMute:"true"}),this._autoPlayAdvancedCheckCanAutoPlay||this._started||"true"!==(null===(t=this._playout)||void 0===t?void 0:t.avoidMutedAutoPlay))))return s.default("[PublicAPI] preventing muted autoplay"),!1;(this.$element.off("bb_autoplay_check_ready",this._onAutoPlayCheckReadyBound),this._contextMenu||void 0===a.default.getService(this._opts.playerAliasOrId).getInstance("ContextMenu")||(this._contextMenu=a.default.getService(this._opts.playerAliasOrId).getInstance("ContextMenu")),e)&&(null===(i=this._mouseController)||void 0===i||i.disable(),null===(n=this._inViewController)||void 0===n||n.disable());return null!=this._pc&&this._pc.play(e)},r.prototype.setDvid=function(e){var t=!1;return this._pc&&(this._pc.setDvid(e),t=!0),t},r.prototype.getDvid=function(){return this._pc&&this._pc.getDvid()},r.prototype.pause=function(){var e,t,i=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];(this._pendingNonUserPlay=!1,this._bindString&&(this._areBoundToTouchstart=!1,$parcel$interopDefault(n)(window).off(this._bindString),this._bindString=null),i)&&(null===(e=this._mouseController)||void 0===e||e.disable(),null===(t=this._inViewController)||void 0===t||t.disable());return null!=this._pc&&this._pc.pause()},r.prototype.seek=function(e){"EXIT"==this._phase&&this.play();var t="commercial"===this._mode?this._commercialDuration:this._mediaDuration;if(!isNaN(t)&&!isFinite(t)){var i,n=null===(i=this._pc)||void 0===i?void 0:i.get("seekable");n&&n.length?e+=n.end(n.length-1):e=t}return null!=this._pc&&this._pc.seek(e)},r.prototype.setFlag=function(e,t){var i=!1;if("string"==typeof e){var n={};n[e]=t,null!=this.$element&&(this.$element.triggerHandler("bb_flagchange",[n]),i=!0)}return i},r.prototype.setVolume=function(e,t){return e=e>1?Math.min(e/100,1):e,null!=this._sc&&this._sc.setVolume(e,t)},r.prototype.setMuted=function(e,t,i){var n;if((null===(n=this._sc)||void 0===n?void 0:n.getMuted())!==e){var a,s;if(this.$element.trigger("bb_api_called",[{method:"setMuted",muted:e,userAction:i}]),i)null===(a=this._mouseController)||void 0===a||a.disable(),null===(s=this._inViewController)||void 0===s||s.disable();return null!=this._sc&&this._sc.setMuted(e,t,i)}},r.prototype.setProgramVolume=function(e){return e=e>1?Math.min(e/100,1):e,null!=this._pc&&this._pc.setVolume(e)},r.prototype.setProgramMuted=function(e){return null!=this._pc&&this._pc.setMuted(e)},r.prototype.setAsset=function(e){var t=this._assets.find((function(t){return(null==t?void 0:t.id)===e}));return this.$element.trigger("bb_api_called",[{method:"setAsset",quality:(null==t?void 0:t.title)||"unknown"}]),null!=this._pc&&this._pc.switchAsset(e)},r.prototype.setLocalStorageItem=function(e,t){return!!this._ls&&this._ls.set(e,t)},r.prototype.setLocalStorageItems=function(e){if(Array.isArray(e)&&this._ls){var t=!0,i=!1,n=void 0;try{for(var a,s=e[Symbol.iterator]();!(t=(a=s.next()).done);t=!0){var o=a.value;o&&this._ls.set(o.key,o.value)}}catch(e){i=!0,n=e}finally{try{t||null==s.return||s.return()}finally{if(i)throw n}}return!0}return!1},r.prototype.getLocalStorageItem=function(e){return!!this._ls&&this._ls.get(e)},r.prototype.fullscreen=function(){return this._sizer.expandFullscreen()},r.prototype.retractFullscreen=function(){return this._sizer.retractFullscreen()},r.prototype.toggleFullscreen=function(){return this._fullscreen?this._sizer.retractFullscreen():this._sizer.expandFullscreen()},r.prototype.nativeFullscreen=function(){return!!this._pc&&this._pc.nativeFullscreen()},r.prototype.increaseSizerRate=function(){return!1},r.prototype.decreaseSizerRate=function(){return!1},r.prototype.isReady=function(){return this._ready},r.prototype.getWrapper=function(){return this.$element[0]},r.prototype.getDetections=function(){return this._detections},r.prototype.getContentLayer=function(){var e=!1,t=this.$element.find(".bb-content-layer");return null!=t&&t.length>0&&(e=t[0]),e},r.prototype.getSkinLayer=function(){var e=this.$element.get(0),t=this.$element.find(".bb-skin-layer-host");return null!=t&&t.length>0&&(e=t[0].shadowRoot),e.querySelector(".bb-skin-layer")},r.prototype.getSkinContainer=function(){var e=!1,t=this.getSkinLayer(),i=$parcel$interopDefault(n)(t).find(".bb-container");return i&&i.length>0&&(e=i[0]),e},r.prototype.getSubtitleLayer=function(){var e=!1,t=this.$element.find(".bb-subtitle-layer");return null!=t&&t.length>0&&(e=t[0]),e},r.prototype.getPhase=function(){return this._phase},r.prototype.getMode=function(){return this._mode},r.prototype.getState=function(){return this._state},r.prototype.getCurrentTime=function(){var e=this.getPropertyValue("currentTime");if("EXIT"===this._phase&&this._lastKnownMediaCurrentTime)return this._lastKnownMediaCurrentTime;var t="commercial"===this._mode?this._commercialDuration:this._mediaDuration;if(!isNaN(t)&&!isFinite(t)){var i,n=null===(i=this._pc)||void 0===i?void 0:i.get("seekable");n&&n.length?e-=n.end(n.length-1):e=0}return!isNaN(e)&&e||(e=0),e},r.prototype.getBuffered=function(){return this.getPropertyValue("buffered")},r.prototype.getDuration=function(){var e="commercial"===this._mode?this._commercialDuration:this._mediaDuration;if(isNaN(e)||isFinite(e))(isNaN(parseFloat(e))||e<=0)&&(e=0);else{var t,i=null===(t=this._pc)||void 0===t?void 0:t.get("seekable");e=i&&i.length?i.start(0)-i.end(i.length-1):-10800}return e},r.prototype.getVolume=function(){return this.getPropertyValue("volume")},r.prototype.getMuted=function(){return this.getPropertyValue("muted")},r.prototype.getProgramVolume=function(){return null!=this._pc&&this._pc.get("volume")},r.prototype.getProgramMuted=function(){return null!=this._pc&&this._pc.get("muted")},r.prototype.getRootUrl=function(){return this._opts.publicationData.server},r.prototype.getLogo=function(e,t){if("number"!=typeof e&&(e="default"),"number"!=typeof t&&(t="default"),this._opts.playoutData.logoId){var i=this._opts.playoutData.logoClickUrl;return i&&((i=i.replace(/^:?\/\//,"https://")).match(/^(\w+:|)\/\//)||i.match(/^\/[^/]+/)||(i="https://"+i)),{position:this._opts.playoutData.logoAlign,url:i,src:this._opts.publicationData.server+"/mediaclip/"+this._opts.playoutData.logoId+"/pthumbnail/"+e+"/"+t+("webp"===this._imageExtension?".webp":""),id:this._opts.playoutData.logoId}}return null},r.prototype.getThumbnail=function(e,t,i){if("number"!=typeof t&&(t="default"),"number"!=typeof i&&(i="default"),e="number"==typeof e||!isNaN(parseInt(e))||"string"==typeof e&&e.indexOf(":")<0?"MediaClip:"+e:""+e){var n=e.split(":"),a=n.length>=2?n[0]:"MediaClip",s=n.length>=1?n[n.length-1]:0;return s>0?this._opts.publicationData.server+"/"+a.toLowerCase()+"/"+s+"/pthumbnail/"+t+"/"+i+"."+this._imageExtension:null}return this._clip&&this._clip.id&&this._clip.id>0?this._opts.publicationData.server+"/mediaclip/"+this._clip.id+"/pthumbnail/"+t+"/"+i+"."+this._imageExtension:null},r.prototype.getFlag=function(e){var t=null,i=this.$element.data("flags");if(void 0!==i&&null!=i)for(var n in i)n==e&&(t=i[n]);return t},r.prototype.isPlaying=function(){return this.getPropertyValue("playing")},r.prototype.isFullscreen=function(){return this._sizer.isFullscreen()},r.prototype.getAssets=function(){if(null!=this._assets)return this._assets},r.prototype.getPreviewAsset=function(){if(!this._headController||"true"===(this.playout||{}).disableFramePreview||"true"===(this._clip||{}).isThreeSixtyVideo||"true"===(this._clip||{}).isThreeSixtyVideo)return null;var e=this,t=null,i=this._clip&&this._clip.assets&&this._clip.assets.map((function(t){return t=e._headController.processAsset(t)}));if(i&&i.length){for(var n=0;n<i.length;n++){var a=i[n];if(a&&"MP4_PREVIEW"===a.mediatype){t=a;break}}if(!t){var s=i.filter((function(e){return e&&parseFloat(e.bandwidth)>0&&parseFloat(e.bandwidth)<=1e3&&e.mediatype&&(-1!==e.mediatype.indexOf("MP4")||-1!==e.mediatype.indexOf("WEBM"))&&-1===e.mediatype.indexOf("HLS")})).sort((function(e,t){return parseFloat(e.bandwidth)-parseFloat(t.bandwidth)}));t=s[0]}}return t},r.prototype.getCurrentAsset=function(){var e=null;if(null!=this._asset)e=this._asset;return e},r.prototype.getCurrentHeadType=function(){return"commercial"===this._mode?this._commercialHeadType:this._headType},r.prototype.getSubtitlesList=function(){var e=null;return this._subtitles?e=this._subtitles:this._clip&&void 0!==this._clip.subtitles&&null!=this._clip.subtitles&&(e=this._clip.subtitles),e},r.prototype.getCurrentSubtitle=function(){return this._currentSubtitle},r.prototype.setSubtitle=function(e){var t,i,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.$element.trigger("bb_subtitle_set",[{subtitleId:e,hint:this._legacyTextTracks?"":"textTracks"}]);var a=null;if(-1!=e&&e||(a="off"),this._subtitles)for(var s=0;s<this._subtitles.length;s++)if(this._subtitles[s].id&&this._subtitles[s].id==e&&this._subtitles[s].isocode){a=this._subtitles[s].isocode;break}a&&n&&this.$element.trigger("bb_api_called",[{method:"setSubtitle_"+a}]);var o=(null===(t=this._subtitles)||void 0===t?void 0:t.find((function(t){return(null==t?void 0:t.id)===e})))||{id:"-1",isocode:"dis"};null===(i=this._localStorage)||void 0===i||i.set("userSelectedTextTrackIsoCode",o.isocode)},r.prototype._setSubtitleList=function(e){this._subtitles=e,window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"subtitlelistchange")},r.prototype.setPreviewSubtitleData=function(e,t){var i;e||""===e?this._setSubtitleList([{default:"false",id:"0",isocode:"preview",languageid:"0",languagename:t||"Preview",name:"",status:"published",srtData:e}]):this._setSubtitleList((null===(i=this._clip)||void 0===i?void 0:i.subtitles)||null),this.$element.trigger("bb_preview_subtitle_changed",[{subtitles:this._subtitles}]),this.setSubtitle("0",!1)},r.prototype.contentShared=function(e){e&&this.$element.trigger("bb_api_called",[{method:"shared_"+e}])},r.prototype.doShare=function(e,t){if(e){this.$element.trigger("bb_api_called",[{method:"shared_"+e}]);var i=this.getSharing(),n=i&&i.find((function(t){return t&&t.name===e}));null!=n&&this.doOpenUrl(n.url,"_blank",t)}},r.prototype.doOpenUrl=function(e,t,i){if(i=i||!1,e){var n,a,s;if(e.match(/^\/\//)&&(e="https:"+e),"_blank"===(t=t||"_self")&&!i)((null===(n=this._detections)||void 0===n?void 0:n.isSafari)||(null===(a=this._detections)||void 0===a?void 0:a.iOSVersion)>=9)&&!(null===(s=this._detections)||void 0===s?void 0:s.isSDKPlayer)&&(t="_top");var o=!1;if("_top"===t)try{window.top.location.href=e}catch(e){o=!0}else if("_parent"===t)try{window.parent.location.href=e}catch(e){o=!0}else if("_self"===t)try{window.location.href=e}catch(e){o=!0}else{var r=t;if("_blank"===r&&(r=this._generateRandomTarget()),0!==e.indexOf(window.location.origin)&&e.match(/^(\w+:|)\/\//))try{window.open(e,r,"noopener")}catch(e){o=!0}else try{o=!window.open(e,r)}catch(e){o=!0}}o&&(this._openUrlParameters={url:e,target:t},window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"requestOpenUrl"))}},r.prototype.getOpenUrlParameters=function(){return this._openUrlParameters},r.prototype.getCurrentAudioTrack=function(){return this._currentAudioTrack},r.prototype.getAudioTracks=function(){return null!=this._audioTracks&&this._audioTracks.length<=1?null:this._audioTracks},r.prototype.selectAudioTrack=function(e){var t,i,n=null===(t=this._audioTracks)||void 0===t?void 0:t.find((function(t){return t&&t.id===e}));return(null==n?void 0:n.isocode)&&(null===(i=this._localStorage)||void 0===i||i.set("userSelectedAudioTrackIsoCode",n.isocode)),null!=this._pc&&this._pc.switchAudioTrack(e)},r.prototype.getCurrentAd=function(){return this._currentAd},r.prototype.getAdPodInfo=function(){return this._adPodInfo},r.prototype.getPlayoutData=function(){return this._playout},r.prototype.getPublicationData=function(){return this._opts.publicationData},r.prototype.getProjectData=function(){return this._projectData},r.prototype.getClipData=function(){return this._clip},r.prototype.getClipListData=function(){return this._clipListData},r.prototype.getRelatedClips=function(){return this._relatedClips},r.prototype.getRelatedItems=function(){return this._relatedItems},r.prototype.setRelatedClips=function(e){var t;return null===(t=this._relatedClipsHelper)||void 0===t?void 0:t.setItems(e)},r.prototype.setRelatedItems=function(e){var t;return null===(t=this._relatedClipsHelper)||void 0===t?void 0:t.setItems(e)},r.prototype.getChapterList=function(){var e,t,i=(null===(e=this._timelineChapters)||void 0===e?void 0:e.length)?this._timelineChapters:(null===(t=this._clipChapters)||void 0===t?void 0:t.length)?this._clipChapters:null;return i?i.sort((function(e,t){return e.timeOffset-t.timeOffset})).map((function(e,t){return{id:e.id,timeOffset:e.timeOffset,title:e.title?e.title:"Chapter ".concat(t+1),description:e.description}})):null},r.prototype.getHighlightList=function(){var e,t=(null===(e=this._clipHighlights)||void 0===e?void 0:e.length)?this._clipHighlights:null;return t?t.sort((function(e,t){return e.timeOffset-t.timeOffset})).map((function(e,t){return{id:e.id,timeOffset:e.timeOffset,title:e.title?e.title:"Highlight ".concat(t+1)}})):null},r.encodeURIComponentDotToo=function(e){return encodeURIComponent(e).replace(/\./g,"%2E")},r.prototype.getSharing=function(){var e,t,i;if(!this._clip)return null;"true"===(null===(e=this._playout.useDeeplinkForFacebook)||void 0===e?void 0:e.toLowerCase())?this.deeplink=this.getDeeplink():this._opts.publicationData.baseurl&&this._sharePlayout&&(null===(t=this._clip)||void 0===t?void 0:t.id)?(this.deeplink=this._opts.publicationData.baseurl+"/view/"+this._sharePlayout+"/"+this._clip.id+".html",this.deeplink=this.deeplink.replace(/^\/\//,"https://")):this.deeplink=(null===(i=this._detections)||void 0===i?void 0:i.location)||window.location.href;var n=(this._opts.publicationData.baseurl,this._sharePlayout,this._opts.embedData.contentIndicator,this._opts.embedData.contentId),a=this._playout.shareText||"";n=this._opts.publicationData.baseurl+"/s/"+this._sharePlayout+"/c/"+this._clip.id+".jpg";var s=[];return"true"===this._playout.shareButtonEmail&&s.push({id:0,title:"E-mail",url:"mailto:?subject="+encodeURIComponent(this._clip.title)+"&body="+r.encodeURIComponentDotToo(this.deeplink),name:"email"}),"true"===this._playout.shareButtonFacebook&&s.push({id:1,title:"Facebook",url:"https://www.facebook.com/sharer.php?display=page&u="+r.encodeURIComponentDotToo(this.deeplink),name:"facebook"}),"true"===this._playout.shareButtonTwitter&&s.push({id:2,title:"Twitter",url:"https://twitter.com/intent/tweet?text="+r.encodeURIComponentDotToo(a)+"&url="+r.encodeURIComponentDotToo(this.deeplink),name:"twitter"}),"true"===this._playout.shareButtonLinkedIn&&s.push({id:3,title:"LinkedIn",url:"https://www.linkedin.com/sharing/share-offsite/?url="+r.encodeURIComponentDotToo(this.deeplink),name:"linkedin"}),"true"===this._playout.shareButtonPinterest&&s.push({id:5,title:"Pinterest",url:"https://pinterest.com/pin/create/button/?url="+r.encodeURIComponentDotToo(this.deeplink)+"&is_video=true&media="+r.encodeURIComponentDotToo(n),name:"pinterest"}),"true"===this._playout.shareButtonWhatsApp&&s.push({id:6,title:"WhatsApp",url:"https://wa.me/?text="+r.encodeURIComponentDotToo(a)+"%20"+r.encodeURIComponentDotToo(this.deeplink),name:"whatsapp"}),"true"===this._playout.shareButtonUrl&&s.push({id:7,title:"URL",url:this.deeplink,name:"url"}),s},r.prototype.getDeeplink=function(){var e="";if(this._clip&&void 0!==this._clip.deeplink&&""!=this._clip.deeplink&&null!=this._clip.deeplink)e=this._clip.deeplink;else if(void 0!==this._playout.deeplink&&""!=this._playout.deeplink&&null!=this._playout.deeplink)e=this._playout.deeplink;else if(this._clip&&void 0!==this._clip.gendeeplink&&""!=this._clip.gendeeplink&&null!=this._clip.gendeeplink)e=this._clip.gendeeplink;else{var t,i,n,a="true"===(null===(t=this._playout)||void 0===t?void 0:t.useFallbackViewpage)||window.location.href.match(/iOSAppPlayer|AndroidAppPlayer/i),s=(null===(i=this._playout)||void 0===i?void 0:i.sharePlayout)||this._opts.embedData.playoutSafeName;e=a&&this._opts.embedData.baseurl&&s&&this._clip?(e=this._opts.embedData.baseurl+"/view/"+s+"/"+this._clip.id+".html").replace(/^\/\//,"https://"):(null===(n=this._detections)||void 0===n?void 0:n.location)||window.location.href}return e},r.prototype.getPlayerPath=function(){return this._opts.playerPath},r.prototype.getEmbedcode=function(e,t){if(this._embedCodeForSharing)return this._embedCodeForSharing;var i=this._opts.publicationData.baseurl+"/"+this._opts.embedData.playoutIndicator+"/"+this._sharePlayout+"/"+this._opts.embedData.contentIndicator+"/"+this._opts.embedData.contentId+".js";this._clip&&(i=this._opts.publicationData.baseurl+"/"+this._opts.embedData.playoutIndicator+"/"+this._sharePlayout+"/c/"+this._clip.id+".js");var n=i.replace(/\.js$/,".html?inheritDimensions=true"),a=[];"number"==typeof e?a.push("width="+e):e=768,"number"==typeof t?a.push("height="+t):t=432,a.length>0&&(i=i+"?"+a.join("&"));var s="",o=" onload=\"this.src += '#!referrer='+encodeURIComponent(location.href)+'&realReferrer='+encodeURIComponent(document.referrer)\" src=\""+n+'" frameborder="0" webkitallowfullscreen mozallowFullscreen oallowFullscreen msallowFullscreen allowfullscreen ></iframe>';return s+=e&&t?'<iframe width="'+e+'" height="'+t+'" style="width:'+e+"px; height:"+t+'px;"'+o:'<div style="padding-bottom: 56.25%; /* 16x9 Aspect Ratio */ position: relative; height: 0; overflow: hidden;"><iframe style="width:100%; height:100%;display:block"'+o+"</div>"},r.prototype.getViewPageUrl=function(){var e=window.location.href;return this._opts.publicationData.baseurl&&this._sharePlayout&&this._clip&&this._clip.id&&(e=(e=this._opts.publicationData.baseurl+"/view/"+this._sharePlayout+"/"+this._clip.id+".html").replace(/^\/\//,"https://")),e},r.prototype.getPropertyValue=function(e){if(void 0===e||null==e)return!1;var t=e.toString().split(".");if(null!=t&&t.length>0)switch(t[0]){case"id":return this._playerId;case"alias":return this._playerAlias;case"playing":return!!this._playing;case"progress":return this._pc.get("currentTime");case"volume":return this._sc.getVolume();case"muted":return this._sc.getMuted();case"isPlaying":return this._playing?"true":"false";case"isMuted":return this._sc.getMuted()?"true":"false";case"isFullscreen":return this.isFullscreen()?"true":"false";case"currentSubtitleLanguage":return void 0!==this.getCurrentSubtitle()&&null!=this.getCurrentSubtitle()&&void 0!==this.getCurrentSubtitle().languagename&&null!=this.getCurrentSubtitle().languagename?this.getCurrentSubtitle().languagename:"Disabled";case"currentSubtitleIsoCode":return void 0!==this.getCurrentSubtitle()&&null!=this.getCurrentSubtitle()&&void 0!==this.getCurrentSubtitle().isocode&&null!=this.getCurrentSubtitle().isocode?this.getCurrentSubtitle().isocode:"dis";case"currentAudioTrackLanguage":return void 0!==this.getCurrentAudioTrack()&&null!=this.getCurrentAudioTrack()&&void 0!==this.getCurrentAudioTrack().label&&null!=this.getCurrentAudioTrack().label?this.getCurrentAudioTrack().label:"Main";case"hasEmailSharing":return this.hasSharingOption("email");case"hasFacebookSharing":return this.hasSharingOption("facebook");case"hasTwitterSharing":return this.hasSharingOption("twitter");case"hasLinkedinSharing":return this.hasSharingOption("linkedin");case"hasPinterestSharing":return this.hasSharingOption("pinterest");case"hasWhatsappSharing":return this.hasSharingOption("whatsapp");case"browserLanguage":return this._browserLanguage;case"device_isMobileDevice":case"device_measuredBandwidth":case"device_objectFit":case"device_hasWebGL":case"device_inIframe":case"device_isUIWebView":case"device_isWindowsPhone":case"device_isMobileDevice":case"device_isiPad":case"device_iPadVersion":case"device_iPadVersionCheck":case"device_isiPhone":case"device_iOSVersion":case"device_isiOS":case"device_isAndroid":case"device_isAndroidNative":case"device_androidVersion":case"device_canControlVolume":case"device_canPlayInline":case"device_devicePixelRatio":case"device_deviceResolution":case"device_deviceResolutionString":case"device_deviceOrientation":case"device_isIE":case"device_ieVersion":case"device_isEdge":case"device_isSafari":case"device_edgeVersion":case"device_supportsHTML5IMA":case"device_isChrome":case"device_isFirefox":case"device_isWebkit":case"device_isGecko":case"device_isOpera":case"device_hasTouch":case"device_isTouchDevice":case"device_canAutoPlayAdvanced":case"device_svg":var i=String(t[0]).substring(7,t[0].length);return this._detections[i];default:if(t.length>1){var n=a.default.getService(this._opts.playerAliasOrId).getInstance("SkinController");if("visible"==t[1]){if(void 0!==n&&null!=n)return n.isVisible(t[0])?"true":"false"}else if("enabled"==t[1]&&void 0!==n&&null!=n)return n.isEnabled(t[0])?"true":"false"}else if(null!=this._pc)return this._pc.get(t[0])}return null},r.prototype.hasSharingOption=function(e){for(var t=this.getSharing(),i=0;i<t.length;i++){var n=t[i];if(void 0!==n.name&&null!=n.name&&n.name==e)return!0}return!1},r.prototype.showInterfaceElement=function(e){var t=a.default.getService(this._opts.playerAliasOrId).getInstance("SkinController");void 0!==t&&null!=t&&t.show(e)},r.prototype.hideInterfaceElement=function(e){var t=a.default.getService(this._opts.playerAliasOrId).getInstance("SkinController");void 0!==t&&null!=t&&t.hide(e)},r.prototype.enableInterfaceElement=function(e){var t=a.default.getService(this._opts.playerAliasOrId).getInstance("SkinController");void 0!==t&&null!=t&&t.enable(e)},r.prototype.disableInterfaceElement=function(e){var t=a.default.getService(this._opts.playerAliasOrId).getInstance("SkinController");void 0!==t&&null!=t&&t.disable(e)},r.prototype.getCurrentSubtitleLine=function(e,t){return this._currentSubtitleLine},r.prototype.getAdLogs=function(){return this._adLogs},r.prototype.setFitMode=function(e){return null!=this._pc&&this._pc.setFitMode(e)},r.prototype.updatePlayout=function(e){return null!=this._plc&&this._plc.updateData(e)},r.prototype.updateLineItemPlayout=function(e){return null!=this._msasController&&this._msasController.updateLineItemPlayout(e)},r.prototype.playAdTag=function(e){if(!this._msasController)return!1;if(!e.vastUrl&&!e.vastXml)return!1;if(e.phase&&!["PRE","MAIN","POST"].includes(e.phase))return!1;e.phase=e.phase||"MAIN";var t="number"==typeof e.time?e.time:null;return"MAIN"===e.phase&&"number"==typeof t?(this._callbackScheduler.scheduleCallback(t,this._msasController.playAdTag.bind(this._msasController,e)),!0):"MAIN"===e.phase&&"MAIN"!==this._phase?(this._callbackScheduler.scheduleCallback(Number.EPSILON,this._msasController.playAdTag.bind(this._msasController,e)),!0):this._msasController.playAdTag(e)},r.prototype.autoPlayNextCancel=function(){return!!this._pc&&this._pc.autoPlayNextCancel()},r.prototype.triggerMessage=function(e){this.$element&&this.$element.trigger("bb_on_message",[{name:e}])},r.prototype.handleParentWindowEvent=function(e){switch(e.eventType){case"deviceorientation":case"orientationchange":this._triggerEvent(e.eventType,e.eventProps,"window")}},r.prototype.handleParentDocumentEvent=function(e){if("fullscreenchange"===e.eventType)this._triggerEvent(e.eventType,e.eventProps,"document")},r.prototype._triggerEvent=function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=new Event(e,{bubbles:!0,cancelable:!1});for(var a in t)n[a]=t[a];switch(i){case"window":window.dispatchEvent(n);break;case"document":document.dispatchEvent(n);break;default:var s;null===(s=this.$element)||void 0===s||s.get(0).dispatchEvent(n)}},r.prototype.appendSanitizedHtmlTo=function(e,t){t&&"function"==typeof t.appendChild&&$parcel$interopDefault(n)(t).bb_appendSanitized(e)},r.prototype.setSanitizedHtmlTo=function(e,t){t&&"function"==typeof t.appendChild&&$parcel$interopDefault(n)(t).bb_htmlSanitized(e)},r.prototype.sanitizeHtml=function(e){var t=document.createElement("div");return r.prototype.setSanitizedHtmlTo(e,t),$parcel$interopDefault(n)(t).html()},r.prototype.setPlaybackRate=function(e){return!(!this._pc||"function"!=typeof this._pc.setPlaybackRate)&&this._pc.setPlaybackRate(e)},r.prototype.getPlaybackRate=function(){return!(!this._pc||"function"!=typeof this._pc.getPlaybackRate)&&this._pc.getPlaybackRate()},r.prototype.setInView=function(e){var t,i;return"function"==typeof(null===(t=this._inViewController)||void 0===t?void 0:t.setInView)&&(null===(i=this._inViewController)||void 0===i?void 0:i.setInView(e))},r.prototype._generateRandomTarget=function(){var e=new Date;return(Math.random().toString()+"_"+e.getTime()).replace(/[-.\s]/g,"")},r.prototype._onLoadedData=function(e){window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"loadeddata")},r.prototype._onAdLog=function(e,t){this._adLogs&&this._adLogs.push||(this._adLogs=[]),this._adLogs.push(t)},r.prototype._onAdQuartile=function(e,t){if(t&&(0===t.quartile||t.quartile>0)){e=0===t.quartile?"adstarted":4===t.quartile?"adfinished":"adquartile"+t.quartile;window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,e)}},r.prototype._onAutoPlayNextTimerEvent=function(e,t){switch(t&&void 0!==t.remainingTime&&this.$element.attr("data-autoPlayNextRemainingTime",t.remainingTime),e.type){case"bb_autoplaynexttimer_started":window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"autoplaynexttimerstarted");break;case"bb_autoplaynexttimer_cancelled":window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"autoplaynexttimercancelled");break;case"bb_autoplaynexttimer_tick":window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"autoplaynexttimertick");break;case"bb_autoplaynexttimer_finished":window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"autoplaynexttimerfinished");break;case"bb_autoplaynexttimer_paused":window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"autoplaynexttimerpaused");break;case"bb_autoplaynexttimer_resumed":window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"autoplaynexttimerresumed")}},r.prototype._onSoftEmbargoTimerEvent=function(e,t){switch(t&&void 0!==t.remainingTime&&this.$element.attr("data-softEmbargoRemainingTime",t.remainingTime),e.type){case"bb_softembargotimer_started":void 0!==(null==t?void 0:t.endDate)&&this.$element.attr("data-softEmbargoEndDateTS",t.endDate.valueOf()),window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"softembargotimerstarted");break;case"bb_softembargotimer_cancelled":window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"softembargotimercancelled");break;case"bb_softembargotimer_tick":window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"softembargotimertick");break;case"bb_softembargotimer_finished":window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"softembargotimerfinished")}},r.prototype._onLoadedMetaData=function(e){window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"loadedmetadata")},r.prototype._assetId=function(e){var t="";return e&&(t="".concat(e.mediatype).concat(Math.round(e.bandwidth)).concat(Math.round(e.width)).concat(Math.round(e.height))),t},r.prototype._assetTitle=function(){var e,t,i,n,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(a.title)return a.title;var s="",o="video";switch(this._clip&&void 0!==this._clip.mediatype&&(o=this._clip.mediatype),o){case"video":s=a.height>0?(120*Math.ceil(a.height/120)).toString()+"p":"",-1!==a.id&&"auto"!==a.height||(s="auto"+(s.length?" ("+s+")":""));break;case"audio":s=a.bandwidth>0?a.bandwidth.toString()+" kbps":"",-1!==a.id&&"auto"!==a.bandwidth||(s="auto"+(s.length?" ("+s+")":""))}return""===s&&((null===(e=a.mediatype)||void 0===e?void 0:e.match(/HLS$/i))||(null===(t=a.src)||void 0===t?void 0:t.match(/\.m3u8(\?.*|&.*|)$/i))||(null===(i=a.mediatype)||void 0===i?void 0:i.match(/MPD$/i))||(null===(n=a.src)||void 0===n?void 0:n.match(/\.mpd(\?.*|&.*|)$/i)))&&(s="auto"),s},r.prototype._assetClasses=function(e){return"bb-"+this._assetTitle(e)+" bb-"+(e.height>=720?"hd":"sd")},r.prototype._fakeMode=function(e){if(null!=e&&void 0!==e.mediatype)switch(e.mediatype){case"image":case"interactive":case"document":case"text":return"static";case"mainroll":return"commercial";case"audio":case"video":return("live"==e.sourcetype?"live-":"")+e.mediatype;case"presentation":return e.mediatype}return"video"},r.prototype._call=function(e,t){switch(void 0===t&&(t=null),isNaN(t)||(t="boolean"==typeof t?{value:t}:{value:parseFloat(t)}),e){case"load":return this.load(t);case"unload":return this.load(null);case"resume":case"play":return this.play(t);case"pause":return this.pause();case"seek":return this.seek(t.value);case"setVolume":return this.setVolume(t.value);case"setMuted":return this.setMuted(t.value);case"updatePlayout":return this.updatePlayout(t)}},r.prototype._onAdLoaded=function(e,t){e.stopPropagation(),null!=t&&void 0!==t.ad&&(this._currentAd=$parcel$interopDefault(n).extend({},t.ad),window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"ad_loaded"))},r.prototype._onPlayoutLoaded=function(e,t){e.stopPropagation(),null!=t&&void 0!==t.playoutData&&(this._playout=$parcel$interopDefault(n).extend({},t.playoutData),this._sharePlayout=this._opts.embedData.playoutSafeName,this._opts.playoutData&&void 0!==this._opts.playoutData.sharePlayout&&""!=this._opts.playoutData.sharePlayout&&(this._sharePlayout=this._opts.playoutData.sharePlayout),"true"!=this._playout.autoPlay||this._started||(this.$element.addClass("bb-pendingplay"),this._$skinLayer&&this._$skinLayer.addClass("bb-pendingplay")),this._loadedplayoutdata=!0,window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"loadedplayoutdata"))},r.prototype._onPlayoutChanged=function(e,t){if(e.stopPropagation(),null!=t&&void 0!==t.playoutData&&null!=t.playoutData){if(this._playout||(this._playout={}),t.playoutData!==this._playout)for(var i in t.playoutData)this._playout[i]=t.playoutData[i];void 0!==t.playoutData.sharePlayout&&(this._sharePlayout=""!=t.playoutData.sharePlayout?t.playoutData.sharePlayout:this._opts.embedData.playoutSafeName),window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"changedplayoutdata")}},r.prototype._onProjectLoaded=function(e,t){e.stopPropagation(),void 0!==t.projectData&&(this._projectData=t.projectData,this._loadedprojectdata=!0,window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"loadedprojectdata"))},r.prototype._onClipListLoaded=function(e,t){e.stopPropagation(),t.clipListData&&(this._clipListData=t.clipListData,this._loadedcliplistdata=!0,window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"loadedcliplistdata"))},r.prototype._onClipListChanged=function(e,t){e.stopPropagation(),t.clipListData&&(this._clipListData=t.clipListData,this._loadedcliplistdata=!0,window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"changedcliplistdata"))},r.prototype._onClipLoaded=function(e,t){var i,n;if(e.stopPropagation(),this._canPlay=!1,this._relatedClips=null,this._relatedItems=null,this.$element.attr("data-currentTime","0"),t.clipData){this._clip=t.clipData,this._setSubtitleList(this._clip.subtitles||null),void 0!==this._clip.embedCodeForSharing&&this._clip.embedCodeForSharing.toString().match(/^\s*<.*>\s*$/)&&(this._embedCodeForSharing=this._clip.embedCodeForSharing),this._loadedclipdata=!0,window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"loadedclipdata"),this.$element.trigger("bb_media_duration_change");var a=this._mode;this._mode=this._fakeMode(this._clip),this._mode!=a&&(this.$element.removeClass(this._modes.join(" ")).addClass("bb-mode-"+this._mode.toLowerCase()),this._$skinLayer&&this._$skinLayer.removeClass(this._modes.join(" ")).addClass("bb-mode-"+this._mode.toLowerCase()),window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"modechange")),this.updateClipChapters(this._clip),this.updateClipHighlights(this._clip)}((null===(i=this._clip)||void 0===i||null===(n=i.assets)||void 0===n?void 0:n.length)>0||"error"!==this._state)&&(this._state="idle",this.$element.removeClass(this._states.join(" ")).addClass("bb-state-idle"),this._$skinLayer&&this._$skinLayer.removeClass(this._states.join(" ")).addClass("bb-state-idle"),window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"statechange"),window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"timeupdate"))},r.prototype.updateClipChapters=function(e){this._clipChapters=(null==e?void 0:e.chapters)||[],window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"chapterlistchange")},r.prototype.updateClipHighlights=function(e){this._clipHighlights=(null==e?void 0:e.highlights)||[],window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"highlightlistchange")},r.prototype._onTimelineChaptersChanged=function(e,t){e.stopPropagation(),void 0!==t.chapters&&(this._timelineChapters=t.chapters,window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"chapterlistchange"))},r.prototype._onTimelineLoaded=function(e){e.stopPropagation(),window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"loadedinteractivity")},r.prototype._onPhaseChange=function(e,t){if(e.stopPropagation(),void 0!==t.phase&&!this._beforeUnload){this._phase=t.phase,s.default("[PublicAPI] _onPhaseChange phase = "+this._phase),this.$element.removeClass(this._phases.join(" ")).addClass("bb-phase-"+this._phase.toLowerCase()),this._$skinLayer&&this._$skinLayer.removeClass(this._phases.join(" ")).addClass("bb-phase-"+this._phase.toLowerCase()),window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"phasechange");var i=this._mode;"PRE"==this._phase||"POST"==this._phase?(this._mode="commercial",this._mode!=i&&(this.$element.removeClass(this._modes.join(" ")).addClass("bb-mode-"+this._mode.toLowerCase()),this._$skinLayer&&this._$skinLayer.removeClass(this._modes.join(" ")).addClass("bb-mode-"+this._mode.toLowerCase()),window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"modechange"))):(this._mode=this._fakeMode(this._clip),this._mode!=i&&(this.$element.removeClass(this._modes.join(" ")).addClass("bb-mode-"+this._mode.toLowerCase()),this._$skinLayer&&this._$skinLayer.removeClass(this._modes.join(" ")).addClass("bb-mode-"+this._mode.toLowerCase()),window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"modechange"))),(this._autoPlayNext&&"MAIN"==this._phase||!this._autoPlayNext&&"EXIT"==this._phase||this._relatedClipsPause&&"MAIN"==this._phase)&&null!=this._relatedClipsHelper&&this._relatedClipsHelper.load(),"EXIT"==this._phase?this._ended||(this._ended=!0,window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"ended"),this._state="idle",this.$element.removeClass(this._states.join(" ")).addClass("bb-state-idle"),this._$skinLayer&&this._$skinLayer.removeClass(this._states.join(" ")).addClass("bb-state-idle"),window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"statechange")):this._ended=!1,window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"timeupdate"),window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"durationchange")}},r.prototype._onRelatedClipsChanged=function(e,t){e.stopPropagation(),void 0!==t.clips&&(this._relatedClips=t.clips,this._relatedItems=t.items||t.clips,window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"relatedclipschange"))},r.prototype._onAssetsChanged=function(e,t){if(e.stopPropagation(),null==t?void 0:t.textTracks){var i;this._legacyTextTracks=!1,this._setSubtitleList(t.textTracks),window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"texttracklistchange");var n=this._currentSubtitle;if(this._currentSubtitle=null===(i=this._subtitles)||void 0===i?void 0:i.find((function(e){return null==e?void 0:e.selected})),this._currentSubtitle!==n&&window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"subtitlechange"),!this._currentSubtitle){var a,s,o=null==n?void 0:n.isocode;o&&"dis"!==o||(o=null===(a=this._localStorage)||void 0===a?void 0:a.get("userSelectedTextTrackIsoCode"));var r=null===(s=this._subtitles)||void 0===s?void 0:s.find((function(e){return(null==e?void 0:e.isocode)===o}));r&&this.$element.trigger("bb_subtitle_set",[{subtitleId:r.id,hint:"textTracks"}])}}else{var l;this._legacyTextTracks=!0,this._setSubtitleList((null===(l=this._clip)||void 0===l?void 0:l.subtitles)||null)}if(null==t?void 0:t.audioTracks){var u;this._legacyAudioTracks=!1,this._audioTracks=t.audioTracks,window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"audiotracklistchange");var d=this._currentAudioTrack;this._currentAudioTrack=null===(u=this._audioTracks)||void 0===u?void 0:u.find((function(e){return null==e?void 0:e.selected})),this._currentAudioTrack!==d&&window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"audiotrackchange")}else if(null==t?void 0:t.assets){var c=this,h=function(e){var i=t.assets[e];if(i){var n=i["language-id"]||"-1",a={id:n,label:"-1"!==n?i["language-name"]:"Main",isocode:"-1"!==n?i["language-isocode"]:"main"};c._audioTracks.findIndex((function(e){return(null==e?void 0:e.id)===a.id}))<0&&c._audioTracks.push(a)}};this._legacyAudioTracks=!0,this._audioTracks=[];for(var p=0;p<t.assets.length;p++)h(p);window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"audiotracklistchange")}if(void 0!==(null==t?void 0:t.assets)){var _=this._originalAssets=t.assets;if(null!=_){for(var m,f=this,v=function(e){var t=w[e],i=w.filter((function(e){return e.title===t.title}));if(i.length>1)if("MP3"===t.mediatype)w[e].title+=" low";else if("AAC"===t.mediatype)w[e].title+=" high";else{f._assetCanStay(t,i,t.height===S)||w.splice(e,1)}},g={},y=0;y<_.length;y++){var b=_[y];if(null!=b){var k={id:this._assetId(b),title:this._assetTitle(b),width:b.width,height:b.height,bitrate:b.bandwidth,mediatype:b.mediatype,classes:this._assetClasses(b),origId:b.id};g[""+b["language-id"]]||(g[""+b["language-id"]]=[]),g[""+b["language-id"]].push(k)}}var w=[],$=-1;for(var C in g)g[C].length>$&&($=g[C].length,w=g[C]);var S=w.reduce((function(e,t){return Number(t.height)<Number(e)?t.height:e}),null===(m=w[0])||void 0===m?void 0:m.height);"auto"!==S&&-1!=S||(S=1);for(var P=w.length-1;P>=0;P--)v(P);this._assets=w}window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"assetlistchange")}else this._originalAssets=null},r.prototype._findAssetId=function(e){var t,i=null===(t=this._originalAssets)||void 0===t?void 0:t.find((function(t){return t&&t.id===e}));if(null!=i)return this._assetId(i)},r.prototype._findAssetTitle=function(e){var t,i=null===(t=this._originalAssets)||void 0===t?void 0:t.find((function(t){return t&&t.id===e}));if(null!=i)return this._assetTitle(i)},r.prototype._assetCanStay=function(e,t){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=!1;if(!t||t.length<=1)return!0;if(i){var a,s=t.reduce((function(e,t){return Number(t.bitrate)<Number(e)?t.bitrate:e}),null===(a=t[0])||void 0===a?void 0:a.bitrate),o=t.filter((function(e){return e.bitrate===s}));n=e.bitrate===s&&e.origId===o[0].origId}else{var r,l=t.reduce((function(e,t){return Number(t.bitrate)>Number(e)?t.bitrate:e}),null===(r=t[0])||void 0===r?void 0:r.bitrate),u=t.filter((function(e){return e.bitrate===l}));n=e.bitrate===l&&e.origId===u[0].origId}return n},r.prototype._onAutoPlayCheckReady=function(e,t){s.default("[PublicAPI] _onAutoPlayCheckReady canAutoPlay = "+t.canAutoPlay+" canAutoPlayMuted = "+t.canAutoPlayMuted);var i,n=t.canAutoPlay,a=t.canAutoPlayMuted;(this._autoPlayAdvancedCheckCanAutoPlay=!!n,this._autoPlayAdvancedCheckCanAutoPlayMuted=!!a,!this._started&&this._pendingNonUserPlay)&&(this._pendingNonUserPlay=!1,n||a&&this._playout&&"true"!==this._playout.avoidMutedAutoPlay?this.play():(this.$element.removeClass("bb-pendingplay"),null===(i=this._$skinLayer)||void 0===i||i.removeClass("bb-pendingplay")))},r.prototype._onPlaybackAvaChanged=function(e,t){if(t)if("available"===t.availability)this.enableInterfaceElement("castButton");else this.disableInterfaceElement("castButton")},r.prototype._onPlaybackRateChanged=function(e,t){window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"ratechange")},r.prototype.showSubtitleLayer=function(){var e,t;null===(e=this.$element)||void 0===e||e.find(".bb-subtitle-layer").show(),null===(t=this._headController)||void 0===t||t.set("textTrackVisible",!0)},r.prototype.hideSubtitleLayer=function(){var e,t;null===(e=this.$element)||void 0===e||e.find(".bb-subtitle-layer").hide(),null===(t=this._headController)||void 0===t||t.set("textTrackVisible",!1)},r.prototype.showCastTargetPicker=function(e){var t=!1;return this._pc&&(t=this._pc.showCastTargetPicker(e)),t},r.prototype.getCastSource=function(){var e=!1;return this._pc&&(e=this._pc.getCastSource()),e},r.prototype._onCastSessionChange=function(){window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"castsessionchange")},r.prototype._onCastSessionStateChange=function(){window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"castsessionstatechange")},r.prototype.getCastSession=function(){var e,t;return(null===(e=this._pc)||void 0===e||null===(t=e.getCastSession)||void 0===t?void 0:t.call(e))||!1},r.prototype._updateAssetAndAudioTrack=function(e,t){null!=this._asset&&this._asset.id===e.id||(this._asset=e,window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"assetselected")),this._legacyAudioTracks&&(null!=this._currentAudioTrack&&this._currentAudioTrack.id===t.id||(this._currentAudioTrack=t,window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"audiotrackchange")))},r.prototype._onAssetSelected=function(e,t){if(e.stopPropagation(),(null==t?void 0:t.asset)&&this._assets){var i,n;n=void 0!==t.asset["language-id"]?{id:t.asset["language-id"],label:t.asset["language-name"]}:{id:"-1",label:"Main"};var a=this._findAssetId(t.asset.id);if(i=this._assets.find((function(e){return(null==e?void 0:e.id)===a})))return this._updateAssetAndAudioTrack(i,n);var s=this._findAssetTitle(t.asset.id);if(i=this._assets.find((function(e){return(null==e?void 0:e.title)===s})))return this._updateAssetAndAudioTrack(i,n)}},r.prototype._onAudioTrackSelected=function(e,t){null==e||e.stopPropagation(),void 0!==(null==t?void 0:t.audioTrackId)&&(this._currentAudioTrack=this._audioTracks.find((function(e){return(null==e?void 0:e.id)===t.audioTrackId})),window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"audiotrackchange"))},r.prototype._onHeadSelected=function(e,t){e.stopPropagation(),this._headType=t&&t.headType?t.headType.toLowerCase():"unknown"},r.prototype._onCommercialHeadSelected=function(e,t){e.stopPropagation(),this._commercialHeadType=t&&t.headType?t.headType.toLowerCase():"unknown"},r.prototype._onMediaLoadStart=function(e){this._isWaiting=!1,window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"load"),"loading"!=this._state&&(this._state="loading",this._playing=!1,this._playing_med=!1,this._playing_com=!1,this._paused_com=!1,this.$element.removeClass(this._states.join(" ")).addClass("bb-state-loading"),this._$skinLayer&&this._$skinLayer.removeClass(this._states.join(" ")).addClass("bb-state-loading"),window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"statechange"))},r.prototype._onCommercialLoadStart=function(e){"PRE"!=this._phase&&"POST"!=this._phase||this._onMediaLoadStart(e)},r.prototype._onCanPlay=function(e){e.stopPropagation(),this._canPlay||(this._canPlay=!0,window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"canplay")),this._isWaiting=!1,"loading"==this._state&&(this._playing||(this._state="paused",this.$element.removeClass(this._states.join(" ")).addClass("bb-state-paused"),this._$skinLayer&&this._$skinLayer.removeClass(this._states.join(" ")).addClass("bb-state-paused"),window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"statechange")))},r.prototype._onCouldPlay=function(e){var t;e.stopPropagation(),(null===(t=this._detections)||void 0===t?void 0:t.avoidPreload)&&"loading"===this._state&&(this._playing||(this._state="paused",this.$element.removeClass(this._states.join(" ")).addClass("bb-state-paused"),this._$skinLayer&&this._$skinLayer.removeClass(this._states.join(" ")).addClass("bb-state-paused"),window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"statechange")))},r.prototype._onPlay=function(e){e.stopPropagation(),this._contextMenu&&this._contextMenu.disable(),window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"play"),this.isPlaying()||(this.$element.addClass("bb-pendingplay"),this._$skinLayer&&this._$skinLayer.addClass("bb-pendingplay"))},r.prototype._onAutoPause=function(e,t){e.stopPropagation(),this.$element.removeClass("bb-pendingplay"),this.$element.removeClass("bb-loading"),this._$skinLayer&&(this._$skinLayer.removeClass("bb-pendingplay"),this._$skinLayer.removeClass("bb-loading")),this._pendingNonUserPlay=!1,"loading"!==this._state&&"autoAdvanceOnlyWithPrerollAd"!==(null==t?void 0:t.why)||this._playing||(this._state="paused",this.$element.removeClass(this._states.join(" ")).addClass("bb-state-paused"),this._$skinLayer&&this._$skinLayer.removeClass(this._states.join(" ")).addClass("bb-state-paused"),window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"statechange")),window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"autopause")},r.prototype._onFloatEnd=function(e){window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"floatend")},r.prototype._onFloatStart=function(e){window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"floatstart")},r.prototype._onPlaying=function(e){this._contextMenu&&this._contextMenu.enable(),e.stopPropagation(),this.$element.removeClass("bb-pendingplay"),this.$element.removeClass("bb-loading"),this._$skinLayer&&(this._$skinLayer.removeClass("bb-pendingplay"),this._$skinLayer.removeClass("bb-loading")),this._pendingNonUserPlay=!1;var t=this._mode;this._mode=this._playing_com||this._paused_com?"commercial":this._fakeMode(this._clip),this._mode!=t&&(this.$element.removeClass(this._modes.join(" ")).addClass("bb-mode-"+this._mode.toLowerCase()),this._$skinLayer&&this._$skinLayer.removeClass(this._modes.join(" ")).addClass("bb-mode-"+this._mode.toLowerCase()),window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"modechange"),window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"durationchange")),this._isWaiting=!1;var i=this._playing;if(this._playing=this._playing_med||this._playing_com,!i&&this._playing&&(this.$element.removeClass(this._states.join(" ")).addClass("bb-state-playing"),this._$skinLayer&&this._$skinLayer.removeClass(this._states.join(" ")).addClass("bb-state-playing"),this._state="playing",window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"playing"),window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"statechange")),!this._started){if(this._started=!0,s.debugMode)try{performance.mark("playingStarted"),performance.measure("from PLAYER_INIT to playingStarted","PLAYER_INIT","playingStarted"),performance.measure("from objectPlacement to playingStarted","objectPlacement","playingStarted");var n=performance.getEntriesByType("mark"),a={};n.forEach((function(e){if(e.name.startsWith("end_")){var t=e.name.substring(4);if(a[t]){var i="end_"+t;performance.measure(t,t,i)}}else a[e.name]=e}));var o=performance.getEntriesByType("measure");console.table(o,["startTime","name","duration"]),performance.clearMarks(),performance.clearMeasures()}catch(e){}window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"started")}this._isStalled&&(this._isStalled=!1,this.$element.removeClass("bb-stalled"),this._$skinLayer&&this._$skinLayer.removeClass("bb-stalled"),window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"unstalled"))},r.prototype._onMediaPlaying=function(e){this._playing_med=!0,this._paused_com=!1,this._onPlaying(e)},r.prototype._onCommercialPlaying=function(e){this._playing_com=!0,this._paused_com=!1,this._onPlaying(e)},r.prototype._onPaused=function(e){if(e.stopPropagation(),"MAIN"===this._phase){var t=this._mode;this._mode=this._playing_com||this._paused_com?"commercial":this._fakeMode(this._clip),this._mode!=t&&(this.$element.removeClass(this._modes.join(" ")).addClass("bb-mode-"+this._mode.toLowerCase()),this._$skinLayer&&this._$skinLayer.removeClass(this._modes.join(" ")).addClass("bb-mode-"+this._mode.toLowerCase()),window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"modechange"),window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"durationchange"))}this._isWaiting=!1;var i=this._playing;this._playing=this._playing_med||this._playing_com,i&&!this._playing&&(this._playing=!1,this.$element.removeClass("bb-pendingplay"),this.$element.removeClass(this._states.join(" ")).addClass("bb-state-paused"),this._$skinLayer&&(this._$skinLayer.removeClass("bb-pendingplay"),this._$skinLayer.removeClass(this._states.join(" ")).addClass("bb-state-paused")),this._state="paused",window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"pause"),window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"statechange")),this._isStalled&&(this._isStalled=!1,this.$element.removeClass("bb-stalled"),this._$skinLayer&&this._$skinLayer.removeClass("bb-stalled"),window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"unstalled"))},r.prototype._onMediaWaiting=function(e){e.stopPropagation(),this._isWaiting||(this._isWaiting=!0,window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"waiting"))},r.prototype._onMediaPaused=function(e){this._playing_med=!1,this._onPaused(e)},r.prototype._onCommercialPaused=function(e){this._playing_com=!1,this._paused_com=!0,this._onPaused(e)},r.prototype._onCommercialEnded=function(e){this._playing_com=!1,this._paused_com=!1,this._onPaused(e)},r.prototype._onStalled=function(e){e.stopPropagation(),!this._isStalled&&this.isPlaying()&&(this._isStalled=!0,this.$element.addClass("bb-stalled"),this._$skinLayer&&this._$skinLayer.addClass("bb-stalled"),window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"stalled"))},r.prototype._onProgress=function(e,t){window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"progress")},r.prototype._onTimeUpdate=function(e,t){e.stopPropagation();t&&t.currentTime&&(this._ctDelta=t.currentTime-this._lastCurrentTime,this._lastCurrentTime=t.currentTime,0==this._ctDelta?this._timeEqual++:this._timeEqual=0,this._timeEqual>30?!this._isStalled&&this.isPlaying()&&(this._isStalled=!0,this.$element.addClass("bb-stalled"),this._$skinLayer&&this._$skinLayer.addClass("bb-stalled"),window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"stalled")):this._isStalled&&(this._isStalled=!1,this.$element.removeClass("bb-stalled"),this._$skinLayer&&this._$skinLayer.removeClass("bb-stalled"),window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"unstalled")),this.$element.attr("data-currentTime",t.currentTime),"commercial"!==this._mode&&(this._lastKnownMediaCurrentTime=this._lastCurrentTime),window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"timeupdate"))},r.prototype._onSeeking=function(e){e.stopPropagation(),window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"seeking")},r.prototype._onSeeked=function(e,t){e.stopPropagation(),void 0!==t&&(this.$element.attr("data-currentTime",t.seekedPosition),window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"seeked"))},r.prototype._onMediaDurationChange=function(e,t){if(e.stopPropagation(),void 0!==t){var i,n=this._mediaDuration;isNaN(t.duration)?this._clip&&!isNaN(this._clip.length)?this._mediaDuration=this._clip.length:this._mediaDuration=null:this._mediaDuration=t.duration<4294967296?t.duration:1/0,n===1/0&&"live"===(null===(i=this._clip)||void 0===i?void 0:i.sourcetype)&&(this._mediaDuration=1/0),this.$element.attr("data-duration",this._mediaDuration),window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"durationchange")}else this._clip&&!isNaN(this._clip.length)&&(this._mediaDuration=this._clip.length,window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"durationchange"))},r.prototype._onCommercialDurationChange=function(e,t){e.stopPropagation(),void 0!==t&&(this._commercialDuration=t.duration,this.$element.attr("data-duration",this._commercialDuration),window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"durationchange"))},r.prototype._onError=function(e,t){e.stopPropagation(),void 0===t||this._beforeUnload||("array"!==i.default(this.$element.data("errors"))&&this.$element.data("errors",[]),this._playing=!1,this._playing_med=!1,this._playing_com=!1,this._paused_com=!1,this.$element.data("errors").push(t),this.$element.removeClass("bb-pendingplay"),this.$element.removeClass(this._states.join(" ")).addClass("bb-state-error"),this._$skinLayer&&(this._$skinLayer.removeClass("bb-pendingplay"),this._$skinLayer.removeClass(this._states.join(" ")).addClass("bb-state-error")),window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"error"),"error"!==this._state&&(this._state="error",window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"statechange")))},r.prototype._onResized=function(e,t){e.stopPropagation(),window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"resized")},r.prototype._onVolumeChange=function(e,t){e.stopPropagation(),void 0!==t&&(this.$element.attr("data-volume",t.volume),t.muted?(this.$element.addClass("bb-muted"),this._$skinLayer&&this._$skinLayer.addClass("bb-muted")):(this.$element.removeClass("bb-muted"),this._$skinLayer&&this._$skinLayer.removeClass("bb-muted")),window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"volumechange"))},r.prototype._onSubtitleChanged=function(e,t){var i;(e.stopPropagation(),t)&&(void 0!==t.subtitleId?this._currentSubtitle=null===(i=this._subtitles)||void 0===i?void 0:i.find((function(e){return e&&e.id===t.subtitleId})):this._currentSubtitle=t.subtitle||null,window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"subtitlechange"))},r.prototype._onInview=function(e,t){e.stopPropagation(),window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"inview")},r.prototype._onOutview=function(e,t){e.stopPropagation(),window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"outview")},r.prototype._onFlagChange=function(e,t){if(e.stopPropagation(),void 0!==t&&null!=t&&null!=this.$element){var i=this.$element.data("flags");for(var n in void 0!==i&&null!=i||(i={}),t)i[n]=t[n];this.$element.data("flags",i)}window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"flagchange")},r.prototype._onSubtitleLineChanged=function(e,t){e.stopPropagation(),void 0!==t&&(this._currentSubtitleLine=t.subtitleLine,window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"subtitlelinechange"))},r.prototype._onFullscreenChange=function(e,t){e.stopPropagation(),void 0!==t&&(this._fullscreen=t.fullscreen,this._fullscreen?(this.$element.addClass("bb-fullscreen"),this._$skinLayer&&this._$skinLayer.addClass("bb-fullscreen"),window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"fullscreen")):(this.$element.removeClass("bb-fullscreen"),this._$skinLayer&&this._$skinLayer.removeClass("bb-fullscreen"),window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"retractfullscreen")))},r.prototype._onFullScreenMismatch=function(e,t){(e.stopPropagation(),t&&void 0!==t.fullScreenMismatch)&&(!!t.fullScreenMismatch?window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"fullscreenmismatch"):window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"fullscreenmismatchresolved"))},r.prototype._onBeforeUnload=function(e){this._beforeUnload=!0},r.prototype._onMessage=function(e){if("string"==typeof(null==e?void 0:e.data))switch(e.data){case"handshake":try{window.parent.postMessage("handshakeSucceeded","*")}catch(e){}case"handshakeSucceeded":this._handshakeSucceeded=!0;break;case"parentCancelFullscreen":this.retractFullscreen()}else if("object"==typeof(null==e?void 0:e.data)&&"string"==typeof e.data.methodName&&0!==e.data.methodName.indexOf("_")&&"function"==typeof this[e.data.methodName]){var t=e.data.params;try{t=JSON.parse(e.data.paramsJson)}catch(e){}Array.isArray(t)?this[e.data.methodName].apply(this,t):this[e.data.methodName](t)}},r.prototype._onAdError=function(e,t){if(e.stopPropagation(),"bb_adsystem_noad"===e.type)window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"adnotfound");else window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"aderror")},r.prototype._onAdSystemLoaded=function(e,t){var i=(null==t?void 0:t.adProperties)||null;this._updateAdPodInfo(i),window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"adloaded")},r.prototype._onAdScheduleItemCanPlay=function(e,t){var i=(null==t?void 0:t.adProperties)||null;this._updateAdPodInfo(i),window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"adloaded")},r.prototype._onAdSkippable=function(){window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"adskippable")},r.prototype._onAdSkipped=function(e,t){var i,n;null===(i=this._mouseController)||void 0===i||i.disable(),null===(n=this._inViewController)||void 0===n||n.disable()},r.prototype._updateAdPodInfo=function(e){var t;this._adPodInfo=null,e&&(null===(t=e.adPodInfo)||void 0===t?void 0:t.adPosition)&&e.adPodInfo.totalAds&&parseInt(e.adPodInfo.totalAds)>1&&(this._adPodInfo={adPosition:e.adPodInfo.adPosition,totalAds:e.adPodInfo.totalAds})},r.prototype._onMouseOverXS=function(e,t){e.stopPropagation(),window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"mouseover"+t.interval+"s")},r.prototype._onCollapsed=function(e){e.stopPropagation(),window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"collapsed")},r.prototype._onExpanded=function(e){e.stopPropagation(),window.bluebillywig._internal.Util.triggerEventOnJQueryObject(this.$element,"expanded")}})),parcelRequire.register("6HlG1",(function(e,t){$parcel$export(e.exports,"default",(function(){return o})),parcelRequire("6JR1F");var i=parcelRequire("hGJI5"),n=parcelRequire("3DsR2"),a=parcelRequire("936Pi"),s=parcelRequire("cYwG5"),o=function(e,t){if(this._opts=t,this._pc=null,this._clipsSeenThisSession=[],this._contentSeenThisSession=[],this._randomizeRelatedItems=!1,this._exitscreenItemsListId=null,this._autoPlayNext=!1,this._content=null,this._randomSeed=0,null!=this._opts){var i=void 0!==this._opts.playoutData?this._opts.playoutData:null;null!=i&&(void 0!==i.randomizeRelatedItems&&(this._randomizeRelatedItems=i.randomizeRelatedItems),void 0!==i.exitscreenItemsListId&&(this._exitscreenItemsListId=i.exitscreenItemsListId),void 0!==i.autoPlayNext&&(this._autoPlayNext=!0===i.autoPlayNext||"true"===i.autoPlayNext)),this._content=void 0!==this._opts.clipData?this._opts.clipData:null}this._relatedItems=null,this._relatedClips=null,this._externalItems=null,this._externalItemsProvided=!1,this._externalItemsEnriched=!1,this._onPlayoutChangedBound=this._onPlayoutChanged.bind(this),this._onLoadedClipDataBound=this._onLoadedClipData.bind(this),this._onFailedClipDataBound=this._onFailedClipData.bind(this),this._onLoadedProjectDataBound=this._onLoadedProjectData.bind(this),this.$element=null,void 0!==e&&null!=e&&(this.$element=e,this._pc=n.default.getService(this._opts.playerAliasOrId).getInstance("ProgramController"),this.$element.on("bb_playout_changed",this._onPlayoutChangedBound),this.$element.on("bb_mediaclip_loaded",this._onLoadedClipDataBound),this.$element.on("bb_mediaclip_failed",this._onFailedClipDataBound),this.$element.on("bb_project_loaded",this._onLoadedProjectDataBound))};o.prototype.exit=function(){return null!=this.$element&&(this.$element.off("bb_playout_changed",this._onPlayoutChangedBound),this.$element.off("bb_mediaclip_loaded",this._onLoadedClipDataBound),this.$element.off("bb_mediaclip_failed",this._onFailedClipDataBound),this.$element.off("bb_project_loaded",this._onLoadedProjectDataBound)),null},o.prototype.load=function(e){var t=this;if(this._externalItemsProvided&&"append"!==e&&(e="externalItems"),this._content&&"mainroll"!=this._content.mediatype){var n,o=this;if(n=void 0!==this._content.title&&null!=this._content.title?this._content.title.split(" "):new Array,void 0===this._mode&&void 0===e){this._exitscreenAuxfield=null;for(var r="relateditems gerelateerdeitems relatedcliplist exitscreen exitscreenitems".split(" "),l=0;l<r.length;l++){var u=this._content[r[l]];void 0!==u&&""!=u&&null!=u&&(this._exitscreenAuxfield=u)}null!=this._exitscreenAuxfield?this._mode="exitscreenAuxfield":void 0!==this._exitscreenItemsListId&&null!=this._exitscreenItemsListId&&""!=this._exitscreenItemsListId?this._mode="exitscreenItemsListId":void 0!==this._content.cat&&null!=this._content.cat&&this._content.cat.length>0||null!=n&&void 0!==n&&n.length>0?this._mode="tagSearch":this._mode="latestItems"}void 0!==e&&(this._mode=e);var d,c="",h="",p="";switch(this._mode){case"externalItems":if(!this._externalItemsEnriched){var _;this._externalItemsEnriched=!0;var m={filterset:[{filters:(null===(_=this._externalItems)||void 0===_?void 0:_.map((function(e,t){return{id:"#".concat(t),type:"search",field:"id",operator:"equals",value:null==e?void 0:e.id}})))||[]}],filterbyusetype:"editorial",limit:15};this._doFilterSetSearch(m)}return;case"exitscreenAuxfield":c="",d=this._exitscreenAuxfield;break;case"exitscreenItemsListId":c="",d=this._exitscreenItemsListId,!0!==this._randomizeRelatedItems&&"true"!==this._randomizeRelatedItems||(void 0===this._randomSeed&&(this._randomSeed=Math.round(10*Math.random())),h="random_"+this._randomSeed+" desc",this._randomSeed=(this._randomSeed+1)%10);break;case"tagSearch":var f="",v="",g="",y="",b="";if(null!=this._content.cat&&void 0!==this._content.cat&&this._content.cat.length>0&&$parcel$interopDefault(i).each(this._content.cat,(function(e,t){f+=0==e?'catSort:"'+this+'"':' AND catSort:"'+this+'"',v+=0==e?'catSort:"'+this+'"':' OR catSort:"'+this+'"',b+=this+" "})),null!=n&&void 0!==n&&n.length>0&&$parcel$interopDefault(i).each(n,(function(e){g+=0==e?'catSort:"'+this+'"':' AND catSort:"'+this+'"',y+=0==e?'catSort:"'+this+'"':' OR catSort:"'+this+'"',b+=this+" "})),null!=this._clipsSeenThisSession&&this._clipsSeenThisSession.length>0){p="-id:(";for(l=0;l<this._clipsSeenThisSession.length;l++)p+='"'+this._clipsSeenThisSession[l]+'"',l!=this._clipsSeenThisSession.length-1&&(p+=",");p+=")"}""!=f&&(c+="("+f+")^10 OR "),""!=v&&(c+="("+v+")^5 OR "),""!=g&&(c+="("+g+")^3 OR "),""!=y&&(c+="("+y+")^3 OR "),""!=b&&(c+="("+b+")^1"),!0===this._randomizeRelatedItems||"true"===this._randomizeRelatedItems?(void 0===this._randomSeed&&(this._randomSeed=Math.round(10*Math.random())),h="random_"+this._randomSeed+" desc",this._randomSeed=(this._randomSeed+1)%10):(c+=" OR (typeSort:MediaClip)^1 OR (typeSort:Project)^1",h="score desc,id desc");break;default:"append"!=this._mode||this._autoPlayNext||(!0===this._randomizeRelatedItems||"true"===this._randomizeRelatedItems?(void 0===this._randomSeed&&(this._randomSeed=Math.round(10*Math.random())),h="random_"+this._randomSeed+" desc",this._randomSeed=(this._randomSeed+1)%10):h="id desc",c+="typeSort:MediaClip OR typeSort:Project")}var k='((typeSort:MediaClip AND usetypeSort:editorial AND (mediatypeSort:video OR mediatypeSort:audio)) OR (typeSort:Project)) AND statusSort:"published"';c&&(k+=" AND ("+c+")");var w={query:k,"fq[0]":p,"fq[1]":"-timeline_multistring:[* TO *]",filterbyusetype:"all",genericEntity:1,"className[0]":"MediaClip","className[1]":"Project",limit:15,allowCache:!0};h&&(w.sort=h),void 0!==d&&(w.cliplistid=d,w["fq[1]"]="");var $=this._opts.publicationData.server+"/json/search";s.fetchData($,{data:w}).then((function(i){if(i&&"true"!==i.error)if(!0===i.allowDatasource||"true"===i.allowDatasource||!0===i.allowDatasource_boolean){if(a.default){o._dataSourceHelper=new a.default(o.$element,o._opts);var n=null;"object"==typeof i.filters?n=i.filters:"string"==typeof i.filters_string&&(n=JSON.parse(i.filters_string)),n&&o._dataSourceHelper.processFiltersContainer(n,(function(e){t._doFilterSetSearch(e)}))}}else o._onDataLoaded(i);else"append"!=e?o.load("append"):o.$element.triggerHandler("bb_related_clips_changed",[{clips:o._relatedClips,items:o._relatedItems}])})).catch((function(t){"append"!=e?o.load("append"):o.$element.triggerHandler("bb_related_clips_changed",[{clips:o._relatedClips,items:o._relatedItems}])}))}},o.prototype.setItems=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(this._externalItems=t,this._externalItemsProvided=null!=this._externalItems,this._externalItemsEnriched=!1,(null===(e=this._externalItems)||void 0===e?void 0:e.length)>0){var i=this._externalItems[0];if(i.id&&i.type&&i.title&&i.deeplink){var n;for(var a in this._externalItemsEnriched=!0,this._relatedItems=[],this._relatedClips=[],this._externalItems)if(parseInt(a)>=0){var s=this._externalItems[a];if(s){var o=(s.type||"MediaClip")+":"+s.id;(!this._contentSeenThisSession||this._contentSeenThisSession.indexOf(o)<0)&&(this._relatedItems.push(this._sanitizeContentItem(s)),o.match(/^MediaClip:/)&&this._relatedClips.push(this._sanitizeContentItem(s)))}}return null===(n=this.$element)||void 0===n||n.triggerHandler("bb_related_clips_changed",[{clips:this._relatedClips,items:this._relatedItems}]),!0}}return this._mode=void 0,this.load(),!0},o.prototype._doFilterSetSearch=function(e){var t=this;if(e&&e.filterset){"object"==typeof e.filterset&&(e.filterset=JSON.stringify(e.filterset));var i=this._opts.publicationData.server+"/json/search";s.fetchData(i,{data:e}).then((function(e){e&&"true"!==e.error&&t._onDataLoaded(e)})).catch((function(e){}))}},o.prototype._onDataLoaded=function(e){var t=this._mode;if("externalItems"===t&&!e.numfound){var i=this._externalItems||[];e={items:i,numfound:i.length}}if(0!=e.numfound){for(var n in"append"==t&&null!=this._relatedItems||(this._relatedItems=[]),"append"==t&&null!=this._relatedClips||(this._relatedClips=[]),e.items)if(parseInt(n)>=0){var a=e.items[n];if(a){var s=(a.type||"MediaClip")+":"+a.id;(!this._contentSeenThisSession||this._contentSeenThisSession.indexOf(s)<0)&&(this._relatedItems.push(this._sanitizeContentItem(a)),s.match(/^MediaClip:/)&&this._relatedClips.push(this._sanitizeContentItem(a)))}}e.numfound<14&&"tagSearch"==this._mode?this.load("append"):(!0!==this._randomizeRelatedItems&&"true"!==this._randomizeRelatedItems||(this._relatedItems=this._shuffleArray(this._relatedItems),this._relatedClips=this._shuffleArray(this._relatedClips)),this.$element.triggerHandler("bb_related_clips_changed",[{clips:this._relatedClips,items:this._relatedItems}]))}else"append"!=t?this.load("append"):this.$element.triggerHandler("bb_related_clips_changed",[{clips:this._relatedClips,items:this._relatedItems}])},o.prototype._sanitizeContentItem=function(e){return this._pc&&"function"==typeof this._pc.sanitizeContentItem?this._pc.sanitizeContentItem(e):e},o.prototype._shuffleArray=function(e){for(var t=e,i=0;i<t.length-1;i++){var n=i+Math.floor(Math.random()*(t.length-i)),a=t[n];t[n]=t[i],t[i]=a}return t},o.prototype._onPlayoutChanged=function(e,t){t&&void 0!==t.playoutData&&(void 0!==t.playoutData.randomizeRelatedItems&&(this._randomizeRelatedItems=t.playoutData.randomizeRelatedItems),void 0!==t.playoutData.exitscreenItemsListId&&(this._exitscreenItemsListId=t.playoutData.exitscreenItemsListId),void 0!==t.playoutData.autoPlayNext&&(this._autoPlayNext=!0===t.playoutData.autoPlayNext||"true"===t.playoutData.autoPlayNext))},o.prototype._onLoadedClipData=function(e,t){if(this._externalItems=null,this._externalItemsEnriched=!1,void 0!==t&&null!=t&&(this._content=void 0!==t.clipData?t.clipData:null,this._content)){this._clipsSeenThisSession.push(this._content.id);var i=(this._content.type||"MediaClip")+":"+this._content.id;this._contentSeenThisSession.push(i)}},o.prototype._onLoadedProjectData=function(e,t){if(t&&(this._content=void 0!==t.projectData?t.projectData:null,this._content)){var i=(this._content.type||"Project")+":"+this._content.id;this._contentSeenThisSession.push(i)}},o.prototype._onFailedClipData=function(e){this._externalItems=null,this._externalItemsEnriched=!1,this._content=null}})),parcelRequire.register("936Pi",(function(e,t){$parcel$export(e.exports,"default",(function(){return s})),parcelRequire("6JR1F");var i=parcelRequire("hGJI5"),n=parcelRequire("3DsR2"),a=parcelRequire("cYwG5"),s=function(e,t){this._opts=t,this.$element=e,this._datafeeds={},this._dynamicPropertiesDict={},this._asyncDatasourceDispatches={},this._onDatafeedLoadedBound=this._onDatafeedLoaded.bind(this),this._onDatafeedLoadFailedBound=this._onDatafeedLoadFailed.bind(this),this.init()};s.prototype.init=function(){this.$element&&(n.default.getService(this._opts.playerAliasOrId).setInstance("DataSourceHelper",this),this.$wrapper=this.$element.closest(".bb_wrapper"),(!this.$wrapper||this.$wrapper.length<=0)&&(this.$wrapper=null)),this.$wrapper&&(void 0!==n.default.getService(this._opts.playerAliasOrId).getInstance("Executer")&&(this._executer=n.default.getService(this._opts.playerAliasOrId).getInstance("Executer")),void 0!==n.default.getService(this._opts.playerAliasOrId).getInstance("LocalStorage")&&(this._localStorage=n.default.getService(this._opts.playerAliasOrId).getInstance("LocalStorage")),this.$wrapper.on("bb_datafeed_loaded",this._onDatafeedLoadedBound),this.$wrapper.on("bb_datafeed_load_failed",this._onDatafeedLoadFailedBound))},s.prototype.exit=function(){return this.$wrapper&&(this.$wrapper.off("bb_datafeed_loaded",this._onDatafeedLoadedBound),this.$wrapper.off("bb_datafeed_load_failed",this._onDatafeedLoadFailedBound)),n.default.getService(this._opts.playerAliasOrId).setInstance("DataSourceHelper",null),null},s.prototype.processFiltersContainer=function(e,t){this._waitForDatafeeds=!1;var i=this;this._callback=t||null;for(var n={filterset:[],sort:e.sort,limit:e.limit||15},a=0;e[a];)n.filterset.push(e[a]),a++;n.filterset&&n.filterset.length&&n.filterset.forEach((function(e){e&&e.filters&&e.filters.length&&e.filters.forEach((function(e){i._processFilter(e)}))})),this.filterSetQueryObj=n,this._waitForDatafeeds||"function"!=typeof this._callback||this._callback(this.filterSetQueryObj)},s.prototype._processFilter=function(e){e&&e.datasource&&(e.value=this._processDataSource(e.datasource,e.value,e)||e.value)},s.prototype._processDataSource=function(e,t,n){var a=!1;if(e){var s=null;if("string"==typeof e)try{s=JSON.parse($parcel$interopDefault(i).trim(e.replace(/^dataSource:/i,"")))}catch(e){s=null}else s={sourceType:e.sourceType,sourceValue:this._replaceMacroStrings(e.sourceValue),defaultValue:this._replaceMacroStrings(e.defaultValue)};a=this._processDataSource_obj(s,n)}return a.defaultValue=t||a.defaultValue,a},s.prototype._filterDatafeed=function(e){var t=this,i=[];if(e&&e.columns&&e.rows){i=e.rows;var n=e.columns.filter((function(e){return e&&"condition"===e.headerType&&e.key})).map((function(e){return e.key}));n&&n.length&&(i=e.rows.filter((function(e){var i=!0;return n.forEach((function(n){if(i){var a=t._localStorage.get(n),s=e[n],o=s;if("object"==typeof s)switch(o=s.value,s.operator){case"is":case"isNot":i=a===o||String(a).toLowerCase()===String(o).toLowerCase(),"isNot"===s.operator&&(i=!i);break;case">":i=parseFloat(a)>parseFloat(o);break;case"<":i=parseFloat(a)<parseFloat(o);break;case"defined":case"undefined":i=null!=a,"undefined"===s.operator&&(i=!i);break;case"doesNotContain":case"contains":i=a&&a.toLowerCase&&o&&o.toLowerCase&&-1!==a.toLowerCase().indexOf(o.toLowerCase()),"doesNotContain"===s.operator&&(i=!i)}else void 0!==o&&(i=a===o||String(a).toLowerCase()===String(o).toLowerCase())}})),i})))}return i},s.prototype._onDatafeedLoaded=function(e,t){var i=this;t&&t.datafeed&&t.datafeed.id&&(this._datafeeds[t.datafeed.id]=t.datafeed,this._updateDatafeedProps(),this._asyncDatasourceDispatches[t.datafeed.id]&&this._asyncDatasourceDispatches[t.datafeed.id].length&&(this._asyncDatasourceDispatches[t.datafeed.id].forEach((function(e){i._processFilter(e)})),delete this._asyncDatasourceDispatches[t.datafeed.id])),0===Object.keys(this._asyncDatasourceDispatches).length&&"function"==typeof this._callback&&this._callback(this.filterSetQueryObj)},s.prototype._onDatafeedLoadFailed=function(e,t){var i=this;t&&t.id&&(delete this._datafeeds[t.id],i._asyncDatasourceDispatches[t.id]&&i._asyncDatasourceDispatches[t.id].length&&(this._asyncDatasourceDispatches[t.datafeed.id].forEach((function(e){i._processFilter(e)})),delete i._asyncDatasourceDispatches[t.id])),0===Object.keys(this._asyncDatasourceDispatches).length&&"function"==typeof this._callback&&this._callback(this.filterSetQueryObj)},s.prototype._onLocalStorageUpdated=function(e,t){this._updateDatafeedProps()},s.prototype._updateDatafeedProps=function(e){},s.prototype._fetchDatafeed=function(e){this._waitForDatafeeds=!0;var t=this.$wrapper;if(!this._datafeeds[e]&&(this._datafeeds[e]={},this._opts.publicationData&&this._opts.publicationData.server&&e)){var i=this._opts.publicationData.server+"/sapi/datafeed/"+e;a.fetchData(i).then((function(i){i?t&&t.trigger("bb_datafeed_loaded",[{datafeed:i}]):t&&t.trigger("bb_datafeed_load_failed",[{id:e}])})).catch((function(i){console.warn("error fetching datafeed",i),t&&t.trigger("bb_datafeed_load_failed",[{id:e}])}))}},s.prototype._processDataSource_obj=function(e,t){var i="";if(e&&void 0!==e.sourceType&&void 0!==e.sourceValue)if("JavaScript"==e.sourceType&&""!==e.sourceValue&&null!==this._executer&&"function"==typeof this._executer.execute){var n=this._executer.execute(e.sourceValue);void 0!==n?i=n:void 0!==e.defaultValue&&(i=String(e.defaultValue))}else if("QueryString"==e.sourceType&&""!==e.sourceValue){if(this._opts.joinedRequestParams){var a=this._opts.joinedRequestParams[String(e.sourceValue)];if(null!=a&&""!==a){var s;try{var o=atob(a),r=Uint8Array.from(o,(function(e){return e.codePointAt(0)}));s=(new TextDecoder).decode(r)}catch(e){}i=a.length%4==0&&null!=s?s:a}else void 0!==e.defaultValue&&null!==e.defaultValue&&(i=String(e.defaultValue))}}else if("LocalStorage"==e.sourceType&&""!==e.sourceValue){if(this._localStorage){var l=this._localStorage.get(e.sourceValue);null!=l?i=l:void 0!==e.defaultValue&&null!==e.defaultValue&&(i=String(e.defaultValue))}}else if("PlainText"==e.sourceType)void 0!==e.sourceValue&&null!==e.sourceValue&&""!==e.sourceValue?i=e.sourceValue:void 0!==e.defaultValue&&null!==e.defaultValue&&(i=String(e.defaultValue));else if("DatafeedValue"==e.sourceType&&""!==e.sourceValue){if(void 0!==e.sourceValue&&null!==e.sourceValue)if(2==(_=e.sourceValue.split(":")).length&&null!==_[0]&&void 0!==_[0]&&null!==_[1]&&void 0!==_[1]){var u=_[0],d=_[1];if(!u||this._datafeeds[u]&&"{}"!==JSON.stringify(this._datafeeds[u])||(this._asyncDatasourceDispatches[u]||(this._asyncDatasourceDispatches[u]=[]),t&&-1===this._asyncDatasourceDispatches[u].indexOf(t)&&this._asyncDatasourceDispatches[u].push(t)),this._datafeeds[u]){var c=this._datafeeds[u],h=this._filterDatafeed(c);if(h&&h.length){var p="true"===c.randomRowSelection||!0===c.randomRowSelection?Math.floor(Math.random()*h.length):0;void 0!==h[p][d]&&(i=String(h[p][d]))}else i=void 0!==e.defaultValue&&null!==e.defaultValue?String(e.defaultValue):""}else this._fetchDatafeed(u),i=void 0!==e.defaultValue&&null!==e.defaultValue?String(e.defaultValue):""}}else if("WidgetProperty"==e.sourceType&&""!==e.sourceValue){var _;if(void 0!==e.sourceValue&&null!==e.sourceValue)if(2==(_=e.sourceValue.split(":")).length&&null!==_[0]&&void 0!==_[0]&&null!==_[1]&&void 0!==_[1]){var m=_[0],f=_[1],v=this._arena.getWidgetById(m);null!==v&&(i=v.getPropertyValue(f))}else i=void 0!==e.defaultValue&&null!==e.defaultValue?String(e.defaultValue):"";else void 0!==e.defaultValue&&null!==e.defaultValue&&""!==e.sourceValue&&(i=String(e.defaultValue))}return i},s.prototype._replaceMacroStrings=function(e){var t=n.default.getService(this._opts.playerAliasOrId).getInstance("PublicAPI"),i=e?String(e).match(/{{\s*[\w\.]+\s*}}/g):null;if(null!==i)for(var a=i.map((function(e){return e.match(/[\w\.]+/)[0]})),s=0;s<a.length;s++){var o=a[s].split(".");if(o.length>1){switch(o[0]){case"mediaclip":if(null!=t){var r=t.getClipData();null!==r&&(u=r[o[1]])}break;case"asset":var l=t.getCurrentAsset();null!==l&&(u=l[o[1]]);break;case"player":var u=t.getPropertyValue(o[1]);break;case"playout":u=t.getPlayoutData()[o[1]];break;case"localstorage":if(this._localStorage){var d=this._localStorage.get(o[1]);null!=d?("string"==typeof d&&(d=d.replace(",","&comma;")),u=d):u=""}else u="";break;case"querystring":if(this._opts.joinedRequestParams){var c=this._opts.joinedRequestParams[String(o[1])];if(null!=c&&""!==c){var h;try{var p=atob(c),_=Uint8Array.from(p,(function(e){return e.codePointAt(0)}));h=(new TextDecoder).decode(_)}catch(e){}u=c.length%4==0&&null!=h?h:c}else u=""}}void 0!==u&&null!=u||(u=""),e=e.replace("{{"+a[s]+"}}",u)}}return e}})),parcelRequire.register("7I0ej",(function(e,t){$parcel$export(e.exports,"default",(function(){return _})),parcelRequire("lDGnc");var i=parcelRequire("lwy96"),n=parcelRequire("jxjxM");parcelRequire("6JR1F");var a,s,o=parcelRequire("hGJI5"),r=parcelRequire("3DsR2"),l=parcelRequire("e06N2"),u=parcelRequire("kv4cr"),d=parcelRequire("e1zPY"),c=parcelRequire("h0moj"),h=parcelRequire("lyJC8"),p=parcelRequire("cYwG5");a=parcelRequire("8ukkF").default,s=parcelRequire("4fMpb").default;var _=function(e,t){var i;if(this.$element=null,this._opts=t,this._data=$parcel$interopDefault(o).extend({},this._opts),this._clip=null,this._contentList=null,this._contentListIndex=0,this._projectClipList=null,this._projectClipListIndex=-1,this._prev=null,this._dataMediaClipsById={},this._clipId=null,this._clipSourceId=null,this._clipSoftEmbargo=null,this._contextEntityType=null,this._contextEntityId=null,this._headController=null,this._msasController=null,this._posterController=null,this._session_started=!1,this._view_started=!1,this._phase="INIT",this._phase_started=!1,this._prePhaseStarted=!1,this._headController_preloaded=!1,this._mediaMainFinished=!1,this._commercialMainFinished=!1,this._expectingPlayEvent=!1,this._pendingPlay=!1,this._userAction=!1,this._timelineMessageMaster=0,this._skinGeneration=null===(i=r.default.getService(this._opts.playerAliasOrId).getInstance("SkinController"))||void 0===i?void 0:i.getGeneration(),this._legacyAudioTracks=!0,this._assetsMap=[],this._currentAssetId="-1",this._currentAudioTrackId="-1",this._contentId=null!=this._opts&&void 0!==this._opts.embedData?this._opts.embedData.contentId:null,this._contentIndicator=null!=this._opts&&void 0!==this._opts.embedData?this._opts.embedData.contentIndicator:"c",this._autoPlay=null!=this._opts&&void 0!==this._opts.playoutData&&"true"==this._opts.playoutData.autoPlay,this._autoPlayOnlyWithPrerollAd="true"===this._opts.playoutData.autoPlayOnlyWithPrerollAd,this._autoLoop=null!=this._opts&&void 0!==this._opts.playoutData&&"true"==this._opts.playoutData.autoLoop,this._autoLoopClip="true"===this._opts.playoutData.autoLoopClip,this._autoPlayAdvancedNotChecked="true"===this._opts.playoutData.autoPlayAdvancedNotChecked,this._autoPlayNext="true"===this._opts.playoutData.autoPlayNext,this._autoPlayNext_excludeIds=[],this._ignoreProjectMetadata="true"===this._opts.playoutData.ignoreProjectMetadata,this._ignoreSingleMediaResource="true"===this._opts.playoutData.ignoreSingleMediaResource,this._noPosterInExitPhase="true"===this._opts.playoutData.noPosterInExitPhase,this._showOnlyWhenPrerollAvailable="true"===this._opts.playoutData.showOnlyWhenPrerollAvailable,this._initiator=this._opts.usingSuggest?"suggest":"l"===this._contentIndicator?"cliplist":"q"===this._contentIndicator?"query-embed":null,this._seekPosition=null,this._shouldPlayInline=null,this._outstreamRefreshFinished=!1,this._onPlayoutChangedBound=this._onPlayoutChanged.bind(this),this._onSkinCreatedBound=this._onSkinCreated.bind(this),this._onAssetsChangedBound=this._onAssetsChanged.bind(this),this._onAssetSelectedBound=this._onAssetSelected.bind(this),this._onRelatedClipsChangedBound=this._onRelatedClipsChanged.bind(this),this._onErrorBound=this._onError.bind(this),this._onMediaPlayBound=this._onMediaPlay.bind(this),this._onMediaPlayingBound=this._onMediaPlaying.bind(this),this._onMediaFinishedBound=this._onMediaFinished.bind(this),this._onCommercialPreCanPlayBound=this._onCommercialPreCanPlay.bind(this),this._onCommercialPreFinishedBound=this._onCommercialPreFinished.bind(this),this._onCommercialMainFinishedBound=this._onCommercialMainFinished.bind(this),this._onCommercialPostFinishedBound=this._onCommercialPostFinished.bind(this),this._onAdSystemRequestBound=this._onAdSystemRequest.bind(this),this._onAdSystemStartedBound=this._onAdSystemStarted.bind(this),this._onCommercialPlayingBound=this._onCommercialPlaying.bind(this),this._onSoftEmbargoTimerFinishedBound=this._onSoftEmbargoTimerFinished.bind(this),void 0!==e&&null!=e){var n,l,p=this;this.$element=e,r.default.getService(this._opts.playerAliasOrId).setInstance("ProgramController",this);var _,m,f=r.default.getService(this._opts.playerAliasOrId).getInstance("Detections");if(f&&(this._isiOS=f.isiOS,this._isAndroid=f.isAndroid),this._dynamicMode="d"===this._contentIndicator&&this._opts.requestParams&&this._opts.requestParams.dvid,this.setDvid(this._dynamicMode?this._opts.requestParams.dvid:null),this._initTimelineEngines(this._opts),"function"==typeof h.default&&(this._headController=new h.default(this.$element,this._opts),r.default.getService(this._opts.playerAliasOrId).setInstance("HeadController",this._headController)),"true"!==this._opts.publicationData.disablePositions)(null===(_=this._opts.adSchedulingData)||void 0===_?void 0:_.scheduleId)||(null===(m=this._opts.adSchedulingData)||void 0===m?void 0:m.scheduleCode)?"function"==typeof s&&(this._adSchedulingController=new s(this.$element,this._opts),r.default.getService(this._opts.playerAliasOrId).setInstance("AdSchedulingController",this._adSchedulingController)):"function"==typeof a&&(this._msasController=new a(this.$element,this._opts),r.default.getService(this._opts.playerAliasOrId).setInstance("MSASController",this._msasController));"function"!=typeof c.default||this._opts.noSkinMode||(this._posterController=new c.default(this.$element,this._opts),r.default.getService(this._opts.playerAliasOrId).setInstance("PosterController",this._posterController)),this._autoPlayNext_timer="function"==typeof u.default?new u.default(this.$element,this._opts):null,this._softEmbargoTimer="function"==typeof d.default?new d.default(this.$element,this._opts):null,this.$element.on("bb_playout_changed",this._onPlayoutChangedBound),this.$element.on("bb_skin_created",this._onSkinCreatedBound),this.$element.on("bb_assets_changed",this._onAssetsChangedBound),this.$element.on("bb_asset_selected",this._onAssetSelectedBound),this.$element.on("bb_related_clips_changed",this._onRelatedClipsChangedBound),this.$element.on("bb_error",this._onErrorBound),this.$element.on("bb_media_play",this._onMediaPlayBound),this.$element.on("bb_media_playing",this._onMediaPlayingBound),this.$element.on("bb_media_finished",this._onMediaFinishedBound),this.$element.on("bb_msas_pre_canplay",this._onCommercialPreCanPlayBound),this.$element.on("bb_msas_pre_finished",this._onCommercialPreFinishedBound),this.$element.on("bb_msas_main_finished",this._onCommercialMainFinishedBound),this.$element.on("bb_msas_post_finished",this._onCommercialPostFinishedBound),this.$element.on("bb_as_pre_canplay",this._onCommercialPreCanPlayBound),this.$element.on("bb_as_pre_finished",this._onCommercialPreFinishedBound),this.$element.on("bb_as_main_finished",this._onCommercialMainFinishedBound),this.$element.on("bb_as_post_finished",this._onCommercialPostFinishedBound),this.$element.on("bb_adsystem_started",this._onAdSystemStartedBound),this.$element.on("bb_adsystem_request",this._onAdSystemRequestBound),this.$element.on("bb_as_started",this._onAdSystemStartedBound),this.$element.on("bb_as_request",this._onAdSystemRequestBound),this.$element.on("bb_commercial_playing",this._onCommercialPlayingBound),this.$element.on("bb_softembargotimer_finished",this._onSoftEmbargoTimerFinishedBound),(null===(n=this._msasController)||void 0===n?void 0:n.isOutstreamRefreshEnabled())&&(null===(l=this.$element)||void 0===l||l.on("bb_msas_outstream_refresh_finished",(function(){p._outstreamRefreshFinished=!0})))}};_.prototype.exit=function(){var e,t;null!=this.$element&&(this.$element.off("bb_playout_changed",this._onPlayoutChangedBound),this.$element.off("bb_skin_created",this._onSkinCreatedBound),this.$element.off("bb_assets_changed",this._onAssetsChangedBound),this.$element.off("bb_asset_selected",this._onAssetSelectedBound),this.$element.off("bb_related_clips_changed",this._onRelatedClipsChangedBound),this.$element.off("bb_error",this._onErrorBound),this.$element.off("bb_media_play",this._onMediaPlayBound),this.$element.off("bb_media_playing",this._onMediaPlayingBound),this.$element.off("bb_media_finished",this._onMediaFinishedBound),this.$element.off("bb_msas_pre_canplay",this._onCommercialPreCanPlayBound),this.$element.off("bb_msas_pre_finished",this._onCommercialPreFinishedBound),this.$element.off("bb_msas_main_finished",this._onCommercialMainFinishedBound),this.$element.off("bb_msas_post_finished",this._onCommercialPostFinishedBound),this.$element.off("bb_as_pre_canplay",this._onCommercialPreCanPlayBound),this.$element.off("bb_as_pre_finished",this._onCommercialPreFinishedBound),this.$element.off("bb_as_main_finished",this._onCommercialMainFinishedBound),this.$element.off("bb_as_post_finished",this._onCommercialPostFinishedBound),this.$element.off("bb_adsystem_started",this._onAdSystemStartedBound),this.$element.off("bb_adsystem_request",this._onAdSystemRequestBound),this.$element.off("bb_as_started",this._onAdSystemStartedBound),this.$element.off("bb_as_request",this._onAdSystemRequestBound),this.$element.off("bb_commercial_playing",this._onCommercialPlayingBound),this.$element.off("bb_softembargotimer_finished",this._onSoftEmbargoTimerFinishedBound),null!=this._headController&&(this._headController=this._headController.exit(),r.default.getService(this._opts.playerAliasOrId).setInstance("HeadController",this._headController)),this._shortsAdController&&(this._shortsAdController=this._shortsAdController.exit(),r.default.getService(this._opts.playerAliasOrId).setInstance("ShortsAdController",this._shortsAdController)),this._adSchedulingController&&(this._adSchedulingController=this._adSchedulingController.exit(),r.default.getService(this._opts.playerAliasOrId).setInstance("AdSchedulingController",this._adSchedulingController)),null!=this._msasController&&(this._msasController=this._msasController.exit(),r.default.getService(this._opts.playerAliasOrId).setInstance("MSASController",this._msasController)),null!=this._posterController&&(this._posterController=this._posterController.exit(),r.default.getService(this._opts.playerAliasOrId).setInstance("PosterController",this._posterController)),this._timelineEngine_project=null===(e=this._timelineEngine_project)||void 0===e?void 0:e.exit(),this._timelineEngine=null===(t=this._timelineEngine)||void 0===t?void 0:t.exit(),r.default.getService(this._opts.playerAliasOrId).setInstance("ProgramController",null));return this._autoPlayNext_timer&&(this._autoPlayNext_timer=this._autoPlayNext_timer.exit()),null},_.prototype.loadData=function(e,t,i,n,a,s,o){var r,l;if(this._reset(),this._data=void 0!==e?e:null,"object"==typeof t){var u=t||{};t=u.initiator,i=u.autoPlay,n=u.seekTo,a=u.shouldPlayInline,s=u.token,o=u.useSession,r=u.contextEntityType,l=u.contextEntityId}if(this._initiator=void 0!==t?t:this._initiator,this._pendingPlay=void 0!==i&&i,this._seekPosition=void 0!==n?n:null,void 0!==a&&(this._shouldPlayInline=a),this._token=s,this._useSession=o,this._contextEntityType=void 0!==r?r:null,this._contextEntityId=void 0!==l?l:null,this._msasController&&this._msasController.resetAdCounter_load(),this._shortsAdController&&this._shortsAdController.reset(),"object"==typeof this._data&&this._data.length&&this._data[0]&&this._data[0].lineitems){if(this._msasController&&this._msasController.loadAdServicesData(this._data),!(this._data&&this._data.some&&this._data.some((function(e){return e&&"inarticle"===e.positionType&&"published"===e.status}))))return;this._data={type:"MediaClip",id:"0",usetype:"commercial",mediatype:"mainroll"}}return this._getData(this._dataCallback.bind(this))},_.prototype.load=function(e,t,i,n,a,s,o,r){var l,u;if(this._reset(),this._clip=null,this._data=null,this._contentId=e,this._contentIndicator=void 0!==t?t:"c","object"==typeof i){var d=i||{};i=d.initiator,n=d.autoPlay,a=d.seekTo,s=d.shouldPlayInline,o=d.token,r=d.useSession,l=d.contextEntityType,u=d.contextEntityId}return this._initiator=void 0!==i?i:this._initiator,this._pendingPlay=void 0!==n&&n,this._seekPosition=void 0!==a?a:null,void 0!==s&&(this._shouldPlayInline=s),this._token=o,this._useSession=r,this._contextEntityType=void 0!==l?l:null,this._contextEntityId=void 0!==u?u:null,this._msasController&&this._msasController.resetAdCounter_load(),this._shortsAdController&&this._shortsAdController.reset(),void 0!==this._contentId&&"c"===this._contentIndicator&&this._dataMediaClipsById["#"+this._contentId]&&(this._data=this._dataMediaClipsById["#"+this._contentId]),this._getData(this._dataCallback.bind(this))},_.prototype.unload=function(){return this._reset(),null!=this._headController&&this._headController.reset(),this._adSchedulingController&&this._adSchedulingController.reset(),null!=this._msasController&&this._msasController.reset(),this._shortsAdController&&this._shortsAdController.reset(),null!=this._timelineEngine&&this._timelineEngine.reset(),null!=this._timelineEngine_project&&this._timelineEngine_project.reset(),!0},_.prototype.preloadAds=function(e,t){var i,n,a,s;switch(this.$element.trigger("bb_program_preload_ads"),void 0===e&&("INIT"===this._phase?e="PRE":"PRE"===this._phase?e="MAIN":"MAIN"===this._phase?e="POST":"POST"===this._phase?e="EXIT":"EXIT"===this._phase&&(e="MAIN")),void 0!==t&&(this._userAction=!!t),this._adSchedulingController&&this._adSchedulingController.setClipData({clipId:(null===(i=this._clip)||void 0===i?void 0:i.id)||"0",clipDuration:isNaN(parseFloat(null===(n=this._clip)||void 0===n?void 0:n.length))?0:parseFloat(null===(a=this._clip)||void 0===a?void 0:a.length),disablecommercials:(null===(s=this._clip)||void 0===s?void 0:s.disablecommercials)||!1}),e){case"PRE":e!==this._phase&&(this._phase=e,this._phase_started=this._prePhaseStarted=!1,this.$element.trigger("bb_phase_change",[{phase:this._phase}])),this._phase_started||(this._phase_started=this._prePhaseStarted=!0,this._adSchedulingController?this._adSchedulingController.load(this._phase)||this._onCommercialPreFinished(null):this._msasController&&this._msasController.load(this._phase)||this._onCommercialPreFinished(null));break;case"MAIN":if(e!==this._phase&&(this._phase=e,this._phase_started=!1,this.$element.trigger("bb_phase_change",[{phase:this._phase}])),this._phase_started){if(this._headController&&null!=this._seekPosition){o=this._seekPosition;this._seekPosition=null,this._headController.set("currentTime",o)}}else{if(this._phase_started=!0,this._headController&&(this._headController_preloaded||(this._expectingPlayEvent=!1,this._headController.load(this._clip,this._seekPosition)),null!=this._seekPosition)){var o=this._seekPosition;this._seekPosition=null,"html5"!=this._headController.getCurrentHeadType()&&this._headController.set("currentTime",o)}this._adSchedulingController?this._adSchedulingController.load(this._phase)||this._onCommercialMainFinished(null):this._msasController&&this._msasController.load(this._phase)||this._onCommercialMainFinished(null)}break;case"POST":case"EXIT":this._msasController&&this._msasController.load(e)}return!0},_.prototype.nativeFullscreen=function(){return!!this._headController&&this._headController.nativeFullscreen()},_.prototype.play=function(e){if(this.$element.trigger("bb_program_play"),this._autoPlayNext_timer&&this._autoPlayNext_timer.cancel(),void 0!==e&&(this._userAction=!!e),null!=this._clip){if(this._pendingPlay=!1,this._play(),null!=this._opts&&void 0!==this._opts.playoutData&&void 0!==this._opts.playoutData.autoFullscreen&&"true"==this._opts.playoutData.autoFullscreen&&!this._autoPlay){var t=r.default.getService(this._opts.playerAliasOrId).getInstance("PublicAPI");void 0!==t&&null!=t&&(t.fullscreen(),this._opts.playoutData.autoFullscreen="false")}}else this._pendingPlay=!0},_.prototype._play=function(){var e,t,i,n;switch(this._view_started||(this._view_started=!0,this.$element.trigger("bb_view_started",[{initiator:this._initiator}])),this._clip&&this._autoPlayNext_excludeIds.push(this._clip.id),this._adSchedulingController&&this._adSchedulingController.setClipData({clipId:(null===(e=this._clip)||void 0===e?void 0:e.id)||"0",clipDuration:isNaN(parseFloat(null===(t=this._clip)||void 0===t?void 0:t.length))?0:parseFloat(null===(i=this._clip)||void 0===i?void 0:i.length),disablecommercials:(null===(n=this._clip)||void 0===n?void 0:n.disablecommercials)||!1}),this._phase){case"INIT":null!=this._headController&&(this._headController.enableResizing(),this._headController_preloaded),this._phase="PRE",this._phase_started=this._prePhaseStarted,this.$element.trigger("bb_phase_change",[{phase:this._phase}]),this._play();break;case"PRE":var a;if(this._keepPosterShowingOnPlaying=!1,this._autoPlayOnlyWithPrerollAd&&!this._userAction)this._keepPosterShowingOnPlaying=!0,null===(a=this._posterController)||void 0===a||a.show();null!=this._headController&&(this._headController.disableResizing(),this._headController_preloaded),this._phase_started?this._adSchedulingController?this._adSchedulingController.resume(this._userAction):null!=this._msasController&&this._msasController.resume(this._userAction):(this._phase_started=this._prePhaseStarted=!0,this._adSchedulingController?this._adSchedulingController.play(this._phase,null,this._userAction)||this._onCommercialPreFinished(null):null!=this._msasController&&this._msasController.play(this._phase,null,this._userAction)||this._onCommercialPreFinished(null));break;case"MAIN":var s,o;if(this._keepPosterShowingOnPlaying=!1,"audio"===(null===(s=this._clip)||void 0===s?void 0:s.mediatype))this._keepPosterShowingOnPlaying=!0,null===(o=this._posterController)||void 0===o||o.show();if(null!=this._headController&&this._headController.enableResizing(),this._phase_started){if(null!=this._headController){if(null!=this._seekPosition){r=this._seekPosition;this._seekPosition=null,this._headController.set("currentTime",r)}this._pauseRequested||(this._expectingPlayEvent=!0,this._headController.play(this._userAction))}this._adSchedulingController?this._adSchedulingController.resume():this._msasController?this._msasController.resume():this._shortsAdController&&this._shortsAdController.resume()}else{if(this._phase_started=!0,null!=this._headController){if(this._headController_preloaded||(this._expectingPlayEvent=!1,this._headController.load(this._clip,this._seekPosition)),null!=this._seekPosition){var r=this._seekPosition;this._seekPosition=null,"html5"!=this._headController.getCurrentHeadType()&&this._headController.set("currentTime",r)}this._pauseRequested||(this._expectingPlayEvent=!0,this._headController.play(this._userAction))}this._adSchedulingController?this._adSchedulingController.play(this._phase,null,this._userAction)||this._onCommercialMainFinished(null):null!=this._msasController?this._msasController.play(this._phase,null,this._userAction)||this._onCommercialMainFinished(null):this._shortsAdController&&this._shortsAdController.play(null,this._userAction)||this._onCommercialMainFinished(null)}break;case"POST":this._keepPosterShowingOnPlaying=!1,null!=this._headController&&(this._headController.disableResizing(),this._headController.reset()),this._phase_started?null!=this._msasController&&this._msasController.resume():(this._phase_started=!0,null!=this._msasController&&this._msasController.play(this._phase,null,this._userAction)||this._onCommercialPostFinished(null));break;case"EXIT":null!=this._headController&&this._headController.enableResizing(),this._mediaMainFinished=!1,this._commercialMainFinished=!1,this._phase="MAIN",this._phase_started=!1,this.$element.trigger("bb_phase_change",[{phase:this._phase}]),this._headController_preloaded=!1,this._play()}},_.prototype.pause=function(){switch(this._phase){case"INIT":case"EXIT":break;case"PRE":this._adSchedulingController&&this._adSchedulingController.pause(),null!=this._msasController&&this._msasController.pause();break;case"MAIN":null==this._headController||this._pauseRequested||this._headController.pause(),this._adSchedulingController&&this._adSchedulingController.pause(),null!=this._msasController&&this._msasController.pause(),this._shortsAdController&&this._shortsAdController.pause();break;case"POST":null!=this._msasController&&this._msasController.pause()}},_.prototype.seek=function(e){switch(this._phase){case"INIT":case"PRE":case"POST":case"EXIT":break;case"MAIN":null!=this._headController&&this._headController.set("currentTime",e)}},_.prototype.switchAsset=function(e){switch(this._phase){case"INIT":this._headController_preloaded&&this._switchAsset(e);break;case"PRE":case"POST":case"EXIT":break;case"MAIN":this._switchAsset(e)}},_.prototype._switchAsset=function(e){var t;if(this._assetsMap){var i,n=this._findAssetsMapEntry(e,this._currentAudioTrackId);void 0!==(null==n?void 0:n.assetId)&&null!=(null==n?void 0:n.assetId)&&(null===(i=this._headController)||void 0===i||i.switchAsset(n.assetId))}else null===(t=this._headController)||void 0===t||t.switchAsset(e)},_.prototype.switchAudioTrack=function(e){switch(this._phase){case"INIT":this._headController_preloaded&&this._switchAudioTrack(e);break;case"PRE":case"POST":case"EXIT":break;case"MAIN":this._switchAudioTrack(e)}},_.prototype._switchAudioTrack=function(e){if(this._assetsMap&&this._legacyAudioTracks){var t,i=this._findAssetsMapEntry(this._currentAssetId,e);void 0!==(null==i?void 0:i.assetId)&&null!==(null==i?void 0:i.assetId)&&(null===(t=this._headController)||void 0===t||t.switchAsset(i.assetId))}else{var n,a;e=null===(n=this._headController)||void 0===n?void 0:n.switchAudioTrack(e),null===(a=this.$element)||void 0===a||a.trigger("bb_audiotrack_selected",[{audioTrackId:e}])}},_.prototype._findAssetsMapEntry=function(e,t){var i,n,a,s;return null!==(s=null===(i=this._assetsMap)||void 0===i?void 0:i.find((function(i){return i.bwh===e&&i.lang===t})))||null!==(s=null===(n=this._assetsMap)||void 0===n?void 0:n.find((function(t){return t.id===e})))?s:s=null===(a=this._assetsMap)||void 0===a?void 0:a.find((function(e){return e.lang===t}))},_.prototype.setVolume=function(e){switch(this._phase){case"INIT":case"EXIT":break;case"PRE":case"POST":null!=this._msasController&&this._msasController.set("volume",e);break;case"MAIN":null!=this._headController&&this._headController.set("volume",e),null!=this._msasController&&this._msasController.set("volume",e),this._shortsAdController&&this._shortsAdController.set("volume",e)}},_.prototype.setMuted=function(e){switch(this._phase){case"INIT":case"EXIT":break;case"PRE":case"POST":null!=this._msasController&&this._msasController.set("muted",e);break;case"MAIN":null!=this._headController&&this._headController.set("muted",e),null!=this._msasController&&this._msasController.set("muted",e),this._shortsAdController&&this._shortsAdController.set("muted",e)}},_.prototype.setFitMode=function(e){return null!=this._headController&&this._headController.setFitMode(e)},_.prototype.get=function(e){switch(e){case"phase":return this._phase;case"title":if(null!=this._clip)return this._clip.title;break;case"currentTime":var t;if("PRE"===this._phase||"POST"===this._phase||"MAIN"===this._phase&&(this._pauseRequested||"mainroll"===(null===(t=this._clip)||void 0===t?void 0:t.mediatype))){if(null!=this._msasController)return this._msasController.get("currentTime");if(this._adSchedulingController)return this._adSchedulingController.get("currentTime");if(this._shortsAdController)return this._shortsAdController.get("currentTime")}else if(null!=this._headController)return this._headController.get("currentTime");break;case"skippable":var i;return(null===(i=this._msasController||this._adSchedulingController||this._shortsAdController)||void 0===i?void 0:i.get("skippable"))||!1;default:if(null!=this._headController)return this._headController.get(e)}return null},_.prototype.autoPlayNextCancel=function(){var e=!1;if(this._autoPlayNext_timer&&(e=this._autoPlayNext_timer.cancel()),"INIT"==this._phase&&(this._phase="EXIT",this._phase_started=!1,this.$element.trigger("bb_phase_change",[{phase:this._phase}]),this._prev)){this._clip=this._prev;var t={clipData:this._clip,autoPlay:this._pendingPlay,contextEntityType:this._contextEntityType,contextEntityId:this._contextEntityId};this.$element.trigger("bb_mediaclip_loaded",[t])}return e},_.prototype.showCastTargetPicker=function(e){var t=!1;return this._headController&&(t=this._headController.showCastTargetPicker(e)),t},_.prototype.getCastSession=function(){var e,t;return(null===(e=this._headController)||void 0===e||null===(t=e.getCastSession)||void 0===t?void 0:t.call(e))||!1},_.prototype.getCastSource=function(){var e=!1;return this._headController&&"function"==typeof this._headController.getCastSource&&(e=this._headController.getCastSource()),e},_.prototype.setPlaybackRate=function(e){var t=!1;return this._headController&&(t=this._headController.set("playbackRate",e)),t},_.prototype.getPlaybackRate=function(){var e=!1;return this._headController&&(e=this._headController.get("playbackRate")),e},_.prototype.setDvid=function(e){var t=this._dvid;return e?(this._dynamicMode=!0,this._dvid=e):(this._dynamicMode=!1,this._dvid=null),this._dvid!==t&&this.$element&&this.$element.trigger("bb_dvid_changed",[{dvid:this._dvid}]),!0},_.prototype.getDvid=function(){return this._dvid},_.prototype._reset=function(){var e;null===(e=this._softEmbargoTimer)||void 0===e||e.cancel(),this._isAutoAdvance=!1,this._view_started=!1,this._phase="INIT",this._phase_started=!1,this._prePhaseStarted=!1,this.$element.trigger("bb_phase_change",[{phase:this._phase}])},_.prototype._getClipUrl=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i="";return i=this._dynamicMode&&this._dvid?this._opts.publicationData.server+"/json/dynamicmediaclip/"+e+"?dvid="+this._dvid:this._opts.publicationData.server+"/json/mediaclip/"+e+"?",t&&(i+="&bbcb="+encodeURIComponent(t)),i},_.prototype._getData=function(e){var t=!1;if(null==this._data)if(null!=this._opts&&void 0!==this._opts.publicationData){var i,n=this,a={};this._token&&(a.token=this._token),this._useSession&&(a.useSession=this._useSession);var s,o=null;switch(this._contentIndicator){case"q":o=this._opts.publicationData.server+"/json/search",a.allowCache=!0,a.query=encodeURIComponent(this._contentId);break;case"l":o=this._opts.publicationData.server+"/papi/search?cliplistid="+encodeURIComponent(this._contentId),a.allowCache=!0;break;case"p":o=this._opts.publicationData.server+"/papi/project/"+encodeURIComponent(this._contentId);break;default:o=this._getClipUrl(this._contentId,this._clipSoftEmbargo)}if(AbortController)null===(s=this._getDataAbortController)||void 0===s||s.abort(),this._getDataAbortController=new AbortController;p.fetchData(o,{data:a,signal:null===(i=this._getDataAbortController)||void 0===i?void 0:i.signal}).then((function(t){t?(n._data=t,"function"==typeof e&&e(!0)):(n._logError("json request failed: no data"),"function"==typeof e&&e(!1))})).catch((function(t){n._logError("json request failed: "+t),"function"==typeof e&&e(!1)})),t=!0}else this._logError("no publicationData"),"function"==typeof e&&e(!1),t=!1;else"function"==typeof e&&e(!0),t=!0;return t},_.prototype._dataCallback=function(e){if(e){if(null!=this._data){var t={contextEntityType:this._contextEntityType,contextEntityId:this._contextEntityId};switch(void 0!==this._data.items&&(this._data.type="MediaClipList"),this._data.type){case"MediaClipList":if(this._projectClipListIndex=-1,this._contentListIndex=-1,void 0!==this._data.items&&null!=this._data.items){this._contentList=[];for(var i=0;i<this._data.items.length;i++){var n=this._data.items[i];n&&(this._contentList.push(this.sanitizeContentItem(n)),this._contentListIndex=0)}}if(this._inProject()||(this._headController.setMediaData(null),this._setMediaData(null),t.projectData=null,this.$element&&this.$element.triggerHandler("bb_project_loaded",[t])),this._contextEntityType=this._data.type,this._contextEntityId=this._data.id,this._data.cpRuleViolations&&"NotFound"!==this._data.cpRuleViolations[0]){var a=this._data.cpRuleViolations[0];if(this._playlistNextItem())return;this.$element.trigger("bb_error",[{msg:a}])}this.$element.triggerHandler("bb_cliplist_loaded",[Object.assign(t,{clipListData:this._contentList})]);break;case"Project":if(this._projectId=this._data.id,this._projectClipListIndex=-1,this._data.chapters&&this._data.chapters.length){this._projectClipList=[];for(var s=0;s<this._data.chapters.length;s++){var o=this._data.chapters[s];if(o.steps&&o.steps.length)for(var r=0;r<o.steps.length;r++){if((l=o.steps[r]).entityType||(l.entityType="MediaClip",l.entityId=l.mediaClipId),l.entityType.match(/mediaclip/i)&&void 0!==l.entityId)(u={id:l.entityId,projectId:this._projectId,sourceid:null,usetype:"editorial",isPrefetch:!1}).id==this._data.mainMediaClipId&&this._data.mainMediaClipData&&((u=this._data.mainMediaClipData).projectId=this._projectId),this._projectClipList.push(u),u.id==this._data.mainMediaClipId&&(this._projectClipListIndex=this._projectClipList.length-1),this._projectClipListIndex<0&&l.isStart&&(this._projectClipListIndex=this._projectClipList.length-1),this._projectClipListIndex<0&&"id-startstep"===l.id&&(this._projectClipListIndex=this._projectClipList.length-1),this._projectClipListIndex<0&&"id-startnode"===l.id&&(this._projectClipListIndex=this._projectClipList.length-1)}}}else if(this._data.steps&&this._data.steps.length){this._projectClipList=[];for(r=0;r<this._data.steps.length;r++){var l,u;if((l=this._data.steps[r]).entityType||(l.entityType="MediaClip",l.entityId=l.mediaClipId),l.entityType.match(/mediaclip/i)&&void 0!==l.entityId)(u={id:l.entityId,projectId:this._projectId,sourceid:null,usetype:"editorial",isPrefetch:!1}).id==this._data.mainMediaClipId&&this._data.mainMediaClipData&&((u=this._data.mainMediaClipData).projectId=this._projectId),this._projectClipList.push(u),u.id==this._data.mainMediaClipId&&(this._projectClipListIndex=this._projectClipList.length-1),this._projectClipListIndex<0&&l.isStart&&(this._projectClipListIndex=this._projectClipList.length-1),this._projectClipListIndex<0&&"id-startstep"===l.id&&(this._projectClipListIndex=this._projectClipList.length-1),this._projectClipListIndex<0&&"id-startnode"===l.id&&(this._projectClipListIndex=this._projectClipList.length-1)}}else this._data.mainMediaClipId&&(this._projectClipList=[{id:this._data.mainMediaClipId,projectId:this._projectId,sourceid:null,usetype:"editorial",isPrefetch:!1}],this._projectClipListIndex=0);var d=this._data.media||this._data.meda;if(d?(this._headController.setMediaData(this._ignoreSingleMediaResource?null:d),this._setMediaData(this._ignoreProjectMetadata?null:d)):(this._headController.setMediaData(null),this._setMediaData(null)),this._data.cpRuleViolations&&"NotFound"!==this._data.cpRuleViolations[0]){var c=this._data.cpRuleViolations[0];if(this._playlistNextItem())return;this.$element.trigger("bb_error",[{msg:c}])}t.projectData=this._data,this.$element&&this.$element.triggerHandler("bb_project_loaded",[t]),this._initTimelineEngines({projectData:this._data});break;default:if(this._data.isPrefetch=!0,parseInt(this._data.id,10)>0||!this._data.sourceid||this._data.title||(this._data.isPrefetch=!1),this._projectClipListIndex=-1,this._projectClipList&&this._projectClipList.length>0){for(var h=0;h<this._projectClipList.length&&this._data.id!=this._projectClipList[h].id;)h++;h<this._projectClipList.length&&(this._projectClipList[h]=this._data,this._projectClipListIndex=h)}if(!this._inProject())if(this._headController.setMediaData(null),this._setMediaData(null),t.projectData=null,this.$element&&this.$element.triggerHandler("bb_project_loaded",[t]),this._contentListIndex=-1,this._contentList&&this._contentList.length>0){for(h=0;h<this._contentList.length&&this._data.id!=this._contentList[h].id;)h++;h<this._contentList.length?(this._contentList[h]=this._data,this._contentListIndex=h):(this._contentList=[this._data],this._contentListIndex=0)}else this._contentList=[this._data],this._contentListIndex=0}}if(this._playlist=[],this._inProject())this._playlist.push(this._projectClipList[this._projectClipListIndex]);else if(this._contentList)if(this._contentListIndex<=0&&(this._contentListIndex=0),this._autoLoopClip)this._playlist.push(this._contentList[this._contentListIndex]);else for(var p=this._contentListIndex;p<this._contentList.length;p++)this._playlist.push(this._contentList[p]);this._playlistNextItem()||(this._clip=null)}else this._clip=null},_.prototype._playlistNextItem=function(){var e=!1;if(this._playlist&&this._playlist.length>0){this._prev=this._clip,this._clip=null,this._clipSoftEmbargo=null;var t=null;do{t=this._playlist.shift(),this._inProject()||this._contentListIndex++}while((null==t?void 0:t.cpRuleViolations)&&"Unverified"!==t.cpRuleViolations[0]&&this._playlist.length>0);if(this._autoPlayNext&&!(this._skinGeneration>=8)||this._opts.usingSuggest||this._contentList_prefetchItem(this._playlist,0),t){switch(t.type||void 0===t.items||(t.type="MediaClipList"),t.type){case"Project":case"MediaClipList":this._data=null,this._contentIndicator="MediaClipList"===t.type?"l":"p",this._contentId=t.id,t.isPrefetch&&(this._data=t),this._getData(this._dataCallback.bind(this));break;default:this._clipId=t.id,this._clipSourceId=t.sourceid,this._clipUseType=t.usetype,t.isPrefetch?(this._clip=this._sanitizeClip(t),this._clip&&null!==this._shouldPlayInline&&(this._clip.shouldPlayInline=this._shouldPlayInline?"true":"false")):"mainroll"===t.mediatype&&(this._clip=t),this._getClip(this._clipCallback.bind(this)),this._autoPlayNext_excludeIds.push(this._clipId)}e=!0}else this.$element.trigger("bb_mediaclip_failed")}return e},_.prototype._inProject=function(){return this._projectClipList&&this._projectClipListIndex>=0&&this._projectClipListIndex<this._projectClipList.length},_.prototype._inContentList=function(){return this._contentList&&this._contentListIndex>=0&&this._contentListIndex<this._contentList.length},_.prototype._setMediaData=function(e){if(e&&e.MediaClips){this._dataMediaClipsById={};for(var t=0,i=e.MediaClips.length;t<i;t++){var n=e.MediaClips[t];"MediaClip"===n.type&&parseInt(n.id,10)>0&&(n.isPrefetch=!0,this._dataMediaClipsById["#"+n.id]=n)}}if(this._dataTimelinesById=null,e&&e.Timelines){this._dataTimelinesById={};for(var a=0,s=e.Timelines.length;a<s;a++){var o=e.Timelines[a];("Timeline"===o.type||"TimelineNG"===o.type)&&parseInt(o.id,10)>0&&(o.isPrefetch=!0,this._dataTimelinesById["#"+o.id]=o)}}},_.prototype._getClip=function(e){var t=!1;if(null==this._clip)if(this._dataMediaClipsById["#"+this._clipId])this._clip=this._sanitizeClip(this._dataMediaClipsById["#"+this._clipId]),this._clip&&null!==this._shouldPlayInline&&(this._clip.shouldPlayInline=this._shouldPlayInline?"true":"false"),"function"==typeof e&&e(!0),t=!0;else if(null!=this._opts&&void 0!==this._opts.publicationData){var i;if(parseInt(this._clipId,10)>0){var n=this,a=this._getClipUrl(this._clipId,this._clipSoftEmbargo),s={};this._token&&(s.token=this._token),p.fetchData(a,{data:s}).then((function(t){t?(n._clip=n._sanitizeClip(t),null!==n._shouldPlayInline&&(n._clip.shouldPlayInline=n._shouldPlayInline?"true":"false"),n._clip.isPrefetch=!0,"function"==typeof e&&e(!0)):(n._logError("json request failed: no data"),"function"==typeof e&&e(!1))})).catch((function(t){n._logError("json request failed: "+t),"function"==typeof e&&e(!1)})),t=!0}else if(this._clipSourceId&&((i=this._clipSourceId.match(/^\d+yt-(.*)$/))||(i=this._clipSourceId.match(/^imported-from\:(.*youtube.*v=.*)$/))||(i=this._clipSourceId.match(/^imported-from\:(.*youtu\.be\/.*)$/)))){var o=this,r="https://noembed.com/embed?url="+encodeURIComponent(i[1]);this._sourceTimeoutHandle=window.setTimeout((function(){o._sourceTimeoutHandle=null,o._clip={id:o._clipId,usetype:o._clipUseType,mediatype:"video",sourceid:o._clipSourceId},o._clip&&null!==o._shouldPlayInline&&(o._clip.shouldPlayInline=o._shouldPlayInline?"true":"false"),o._inProject()&&!o._clip.projectId&&o._projectId&&(o._clip.projectId=o._projectId),"function"==typeof e&&e(!0)}),5e3),p.fetchData(r).then((function(t){t?(null!=o._sourceTimeoutHandle&&(window.clearTimeout(o._sourceTimeoutHandle),o._sourceTimeoutHandle=null),o._clip=o._sanitizeClip_noembed(t,{id:o._clipId,usetype:o._clipUseType,mediatype:"video",sourceid:o._clipSourceId}),null!==o._shouldPlayInline&&(o._clip.shouldPlayInline=o._shouldPlayInline?"true":"false"),o._clip.isPrefetch=!0,"function"==typeof e&&e(!0)):(o._logError("json request failed: no data"),"function"==typeof e&&e(!1))})).catch((function(t){o._logError("json request failed: "+t),"function"==typeof e&&e(!1)})),t=!0}else this._logError("no valid clip id or source id"),"function"==typeof e&&e(!1),t=!1}else this._logError("no publicationData"),"function"==typeof e&&e(!1),t=!1;else"function"==typeof e&&e(!0),t=!0;return t},_.prototype._clipCallback=function(e){var t,i,n={clipData:this._clip,autoPlay:this._pendingPlay,contextEntityType:this._contextEntityType,contextEntityId:this._contextEntityId};if(e)if(null!=this._clip){if(this._clip.cpRuleViolations&&"NotFound"!==this._clip.cpRuleViolations[0]){var a=this._clip.cpRuleViolations[0];if(this._playlistNextItem())return;this.$element.trigger("bb_error",[{msg:a}]),this._clip.softEmbargo=null,n.autoPlay=this._pendingPlay=!1}this.$element.trigger("bb_mediaclip_loaded",[n]),this._initTimelineEngines({clipData:this._clip})}else this.$element.trigger("bb_mediaclip_failed",[n]);else n.clipData=this._clip=null,this.$element.trigger("bb_mediaclip_failed",[n]);this._headController_preloaded=!1;var s=this._autoPlayNext&&!(this._skinGeneration>=8);"INIT"!==this._phase&&!s&&this._session_started||null!=this._posterController&&(this._pendingPlay||this._autoPlayAdvancedNotChecked&&this._autoPlay||this._posterController.show());var o,r,l,u,d=new Date,c=new Date(null===(t=this._clip)||void 0===t?void 0:t.softEmbargo);(null===(i=this._clip)||void 0===i?void 0:i.softEmbargo)&&c>d?(null===(o=this._posterController)||void 0===o||o.setSoftEmbargoActive(!0),null===(r=this._posterController)||void 0===r||r.show(),this._clipId=this._clip.id,this._clipSourceId=this._clip.sourceid,this._clipUseType=this._clip.usetype,this._clipSoftEmbargo=this._clip.softEmbargo,this._clip=null,null===(l=this._softEmbargoTimer)||void 0===l||l.start(c)):(null===(u=this._posterController)||void 0===u||u.setSoftEmbargoActive(!1),"INIT"!==this._phase&&!s&&this._session_started||(this._session_started=!0,null!=this._headController&&(this._expectingPlayEvent=!1,this._headController.load(this._clip,this._seekPosition),this._headController_preloaded=!0)),(this._pendingPlay||this._autoPlayAdvancedNotChecked&&this._autoPlay)&&this.play())},_.prototype.sanitizeContentItem=function(e){if(e)switch(e.type){case"Project":e=this._sanitizeProject(e);break;case"MediaClipList":e=this._sanitizeClipList(e);break;default:e=this._sanitizeClip(e)}return e},_.prototype._sanitizeProject=function(e){if((e=this._sanitizeGeneric(e))&&"string"==typeof e.chapters)try{e.chapters=JSON.parse(e.chapters)}catch(t){e.chapters=[]}return e},_.prototype._sanitizeClipList=function(e){return e=this._sanitizeGeneric(e)},_.prototype._sanitizeClip=function(e){if(void 0!==(e=this._sanitizeGeneric(e))&&null!=e){if("string"==typeof e.assets)try{e.assets=JSON.parse(e.assets)}catch(t){e.assets=[]}if("string"==typeof e.subtitletracks)try{e.subtitles=JSON.parse(e.subtitletracks)}catch(t){e.subtitles=[]}if(e.subtitles){e.subtitles_obj={};for(var t=0;t<e.subtitles.length;t++)e.subtitles_obj["#"+t]=e.subtitles[t]}"function"==typeof this._inProject&&this._inProject()&&!e.projectId&&this._projectId&&(e.projectId=this._projectId)}return e},_.prototype._sanitizeGeneric=function(e){if(e){if("string"==typeof e.thumbnails)try{e.thumbnails=JSON.parse(e.thumbnails)}catch(t){e.thumbnails=[]}if("array"===i.default(e.timeline_multistring)||"object"==typeof e.timeline_multistring)for(var t in e.timelines=[],e.timeline_multistring)parseInt(t)>=0&&e.timelines.push({id:e.timeline_multistring[t]});if("object"==typeof e.timelines)for(var t in e.timelines)if(parseInt(t)>=0){var n=e.timelines[t].id;this._dataTimelinesById&&this._dataTimelinesById["#"+n]&&(e.timelines[t]=this._dataTimelinesById["#"+n])}for(var a in void 0===e.publisheddate&&(e.publisheddate=e.published_date),void 0===e.date&&(e.date={created:e.createddate,published:e.publisheddate,modified:e.modifieddate}),e){(s=a.replace(/_string$/,""))!=a&&(e[s]=e[a])}for(var a in e){(s=a.replace(/_int$/,""))!=a&&(e[s]=e[a])}for(var a in e){var s;(s=a.replace(/_boolean$/,""))!=a&&(e[s]=e[a])}}return e},_.prototype._sanitizeClip_youtube=function(e){var t=null;if(void 0!==e&&null!=e){var i=e.snippet;if((t={id:this._clipId,mediatype:"video",sourceid:this._clipSourceId}).title=i.title,t.date={created:i.publishedAt,published:i.publishedAt,modified:i.publishedAt},t.author=i.channelTitle,t.cat=i.tags,i.thumbnails)for(var n in t.thumbnails=[],i.thumbnails){var a=i.thumbnails[n];t.thumbnails.push({src:a.url,width:a.width,height:a.height,main:"maxres"==n})}this._inProject()&&!t.projectId&&this._projectId&&(t.projectId=this._projectId)}return t},_.prototype._sanitizeClip_noembed=function(e,t){var i=null;return void 0!==e&&null!=e&&((i=t||{mediatype:"video"}).isYouTubeEmbed=!0,i.title=e.title,i.author=e.author_name,i.thumbnails=[{src:e.thumbnail_url,width:e.thumbnail_width,height:e.thumbnail_height,main:!0}],this._inProject()&&!i.projectId&&this._projectId&&(i.projectId=this._projectId)),i},_.prototype._onPlayoutChanged=function(e,t){t&&void 0!==t.playoutData&&(void 0!==t.playoutData.autoPlay&&(this._autoPlay="true"==t.playoutData.autoPlay),void 0!==t.playoutData.autoLoop&&(this._autoLoop="true"==t.playoutData.autoLoop),void 0!==t.playoutData.autoLoopClip&&(this._autoLoopClip="true"===t.playoutData.autoLoopClip),void 0!==t.playoutData.autoPlayNext&&(this._autoPlayNext="true"===t.playoutData.autoPlayNext),void 0!==t.playoutData.ignoreProjectMetadata&&(this._ignoreProjectMetadata="true"==t.playoutData.ignoreProjectMetadata),void 0!==t.playoutData.ignoreSingleMediaResource&&(this._ignoreSingleMediaResource="true"==t.playoutData.ignoreSingleMediaResource),void 0!==t.playoutData.noPosterInExitPhase&&(this._noPosterInExitPhase="true"===t.playoutData.noPosterInExitPhase))},_.prototype._onSkinCreated=function(e,t){t&&void 0!==t.skinGeneration&&(this._skinGeneration=t.skinGeneration)},_.prototype._onAssetsChanged=function(e,t){if((null==t?void 0:t.audioTracks)?this._legacyAudioTracks=!1:this._legacyAudioTracks=!0,null==t?void 0:t.assets){this._assetsMap=[];for(var i=0;i<t.assets.length;i++){var n=t.assets[i];if(n){var a="".concat(n.mediatype).concat(Math.round(n.bandwidth)).concat(Math.round(n.width)).concat(Math.round(n.height)),s=n["language-id"]||"-1",o=("-1"!==s&&n["language-name"],"-1"!==s?n["language-isocode"]:"main");this._assetsMap.push({bwh:a,lang:s,isocode:o,assetId:n.id})}}}},_.prototype._onAssetSelected=function(e,t){if(null==t?void 0:t.asset){var i=t.asset;if(void 0!==i.id){var n="".concat(i.mediatype).concat(Math.round(i.bandwidth)).concat(Math.round(i.width)).concat(Math.round(i.height));this._currentAssetId=n}else this._currentAssetId="-1";this._currentAudioTrackId=i["language-id"]||"-1"}},_.prototype._onRelatedClipsChanged=function(e,t){if(t&&void 0!==t.clips&&(this._autoPlayNext_clips=t.items||t.clips,this._autoPlayNext_clips))for(var i=0;i<this._autoPlayNext_clips.length;){if(this._autoPlayNext_excludeIds.indexOf(this._autoPlayNext_clips[i].id)<0){this._contentList_prefetchItem(this._autoPlayNext_clips,i);break}i++}},_.prototype._contentList_prefetchItem=function(e,t){var i=!1,n={};if(this._token&&(n.token=this._token),e&&e[t])switch(e[t].type){case"Project":case"MediaClipList":break;default:var a=e[t].id,s=e[t].usetype,o=e[t].sourceid;if(this._dataMediaClipsById["#"+a])e[t]=this._sanitizeClip(this._dataMediaClipsById["#"+a]),e[t]&&null!==this._shouldPlayInline&&(e[t].shouldPlayInline=this._shouldPlayInline?"true":"false"),i=!0;else if(null!=this._opts&&void 0!==this._opts.publicationData){var r,l;if(parseInt(a,10)>0){var u=this,d=this._getClipUrl(a);p.fetchData(d,{data:n}).then((function(i){i?(e[t]=u._sanitizeClip(i),e[t]&&null!==u._shouldPlayInline&&(e[t].shouldPlayInline=u._shouldPlayInline?"true":"false"),e[t].isPrefetch=!0,u._dataMediaClipsById["#"+a]=JSON.parse(JSON.stringify(e[t]))):(e[t]=null,u._logWarning("json request failed: no data"))})).catch((function(i){e[t]=null,u._logWarning("json request failed: "+i)})),i=!0}else if(o&&((l=o.match(/^\d+yt-(.*)$/))||(l=o.match(/^imported-from\:(.*youtube.*v=.*)$/))||(l=o.match(/^imported-from\:(.*youtu\.be\/.*)$/)))){var c=this,h="https://noembed.com/embed?url="+encodeURIComponent(l[1]);p.fetchData(h).then((function(i){i?(e[t]=c._sanitizeClip_noembed(i,{id:a,usetype:s,mediatype:"video",sourceid:o}),e[t]&&null!==c._shouldPlayInline&&(e[t].shouldPlayInline=c._shouldPlayInline?"true":"false"),e[t].isPrefetch=!0):(e[t]=null,c._logWarning("json request failed: no data"))})).catch((function(i){e[t]=null,c._logWarning("json request failed: "+i)})),i=!0}else"mainroll"===(null===(r=e[t])||void 0===r?void 0:r.mediatype)?i=!0:(e[t]=null,this._logWarning("no valid clip id or source id"),i=!1)}else this._logWarning("no publicationData"),i=!1}return i},_.prototype._onError=function(e,t){switch(e.stopPropagation(),l.default("[ProgramController] _onError phase = "+this._phase),this._phase){case"INIT":case"EXIT":break;case"PRE":this._onCommercialPreFinished(null);break;case"MAIN":this._onCommercialMainFinished(null),this._onMediaFinished(null);break;case"POST":this._onCommercialPostFinished(null)}},_.prototype._onMediaPlay=function(e){this._expectingPlayEvent||this.play()},_.prototype._onMediaPlaying=function(e){var t;this._keepPosterShowingOnPlaying||null===(t=this._posterController)||void 0===t||t.hide(),this._pauseRequested&&this._headController&&this._headController.pause()},_.prototype._onMediaFinished=function(e){l.default("[ProgramController] _onMediaFinished"),null!=e&&e.stopPropagation(),"MAIN"==this._phase&&this._phase_started&&(this._mediaMainFinished=!0),this._clip&&"mainroll"==this._clip.mediatype||this._mediaMainFinished&&this._commercialMainFinished&&(this._phase="POST",this._phase_started=!1,this.$element.trigger("bb_phase_change",[{phase:this._phase}]),this._play())},_.prototype._onCommercialPreCanPlay=function(e){var t;(l.default("[ProgramController] _onCommercialPreCanPlay"),null==e||e.stopPropagation(),this._userAction)||this._showOnlyWhenPrerollAvailable&&(this._phase="INIT",this._phase_started=!1,this.$element.trigger("bb_phase_change",[{phase:this._phase}]),null===(t=this._posterController)||void 0===t||t.show())},_.prototype._onCommercialPreFinished=function(e){var t,i;l.default("[ProgramController] _onCommercialPreFinished"),null!=e&&e.stopPropagation();var n=this._phase_started;this._mediaMainFinished=!1,this._commercialMainFinished=!1,this._phase="MAIN",this._phase_started=!1,this.$element.trigger("bb_phase_change",[{phase:this._phase}]);var a,s,o=(null===(t=this._adSchedulingController)||void 0===t?void 0:t.get("adCounter_clip"))||(null===(i=this._msasController)||void 0===i?void 0:i.get("adCounter_clip"))||0;if(this._userAction)this._isAutoAdvance&&this._autoPlayOnlyWithPrerollAd&&o<=0?(null===(a=this._posterController)||void 0===a||a.show(),this.$element.trigger("bb_program_autopause",[{why:"autoAdvanceOnlyWithPrerollAd"}])):n&&(this._play(),this.$element.trigger("bb_program_autopauseplay",[{why:"userAction"}]));else if(this._isAutoAdvance&&this._autoPlayOnlyWithPrerollAd&&o<=0)null===(s=this._posterController)||void 0===s||s.show(),this.$element.trigger("bb_program_autopause",[{why:"autoAdvanceOnlyWithPrerollAd"}]);else if(this._autoPlayOnlyWithPrerollAd&&o<=0){var r;null===(r=this._posterController)||void 0===r||r.show(),this.$element.trigger("bb_program_autopause",[{why:"autoPlayOnlyWithPrerollAd"}])}else if(this._showOnlyWhenPrerollAvailable){var u;null===(u=this._posterController)||void 0===u||u.show(),this.$element.trigger("bb_program_autopause",[{why:"showOnlyWhenPrerollAvailable"}])}else n&&(this._play(),this.$element.trigger("bb_program_autopauseplay",[{why:"autoPlayOnlyWithPrerollAd"}]))},_.prototype._onCommercialMainFinished=function(e){l.default("[ProgramController] _onCommercialMainFinished"),null!=e&&e.stopPropagation();var t=this._phase_started;this._commercialMainFinished=!0,(this._clip&&"mainroll"==this._clip.mediatype||this._mediaMainFinished&&this._commercialMainFinished)&&(this._phase="POST",this._phase_started=!1,this.$element.trigger("bb_phase_change",[{phase:this._phase}]),t&&this._play())},_.prototype._onCommercialPostFinished=function(e){var t;null!=e&&e.stopPropagation();var i=this._phase_started;if(this._view_started&&(this._view_started=!1,this.$element.trigger("bb_view_finished")),0==this._playlist.length&&this._inContentList()&&this._inProject()&&("true"===this._clip.isOutro||!0===this._clip.isOutro))if(this._contentListIndex++,this._autoLoopClip)this._playlist.push(this._contentList[this._contentListIndex]);else for(var n=this._contentListIndex;n<this._contentList.length;n++)this._playlist.push(this._contentList[n]);this._isAutoAdvance=this._playlist.length>0;var a,s=this._autoPlayNext&&!(this._skinGeneration>=8);if(0===this._playlist.length)if(this._autoLoop||this._autoLoopClip){if(this._playlist=[],this._inProject())this._playlist.push(this._projectClipList[this._projectClipListIndex]);else if(this._contentList)if(this._autoLoopClip)this._contentListIndex--,this._playlist.push(this._contentList[this._contentListIndex]);else{this._contentListIndex=0;for(var o=this._contentListIndex;o<this._contentList.length;o++)this._playlist.push(this._contentList[o])}}else if(s&&(this._playlist=[],this._autoPlayNext_clips))for(var r=0;r<this._autoPlayNext_clips.length;){if(this._autoPlayNext_clips[r]&&this._autoPlayNext_excludeIds.indexOf(this._autoPlayNext_clips[r].id)<0){this._playlist.push(this._autoPlayNext_clips[r]);break}r++}if(this._playlistNextItem())s?(this._initiator="autoPlayNext",this._phase="INIT",this._phase_started=!1,this.$element.trigger("bb_phase_change",[{phase:this._phase}]),null===(a=this._posterController)||void 0===a||a.show(),i&&this._autoPlayNext_timer&&this._autoPlayNext_timer.start()):(this._initiator||(this._initiator="autoLoop"),this._phase="PRE",this._phase_started=this._prePhaseStarted=!1,this.$element.trigger("bb_phase_change",[{phase:this._phase}]),this._headController_preloaded=!1,i&&null!=this._clip&&this._play());else if((null===(t=this._msasController)||void 0===t?void 0:t.isOutstreamRefreshEnabled())&&!this._outstreamRefreshFinished)this.pause(),this.loadData(this._opts.adServicesData,{autoPlay:!0,initiator:"OutstreamRefresh"});else{var l;this._phase="EXIT",this._phase_started=!1,this.$element.trigger("bb_phase_change",[{phase:this._phase}]),this._noPosterInExitPhase||this._inProject()&&"true"!==this._clip.isOutro&&!0!==this._clip.isOutro||null===(l=this._posterController)||void 0===l||l.show(),null!=this._headController&&this._headController.enableResizing()}},_.prototype._onCommercialPlaying=function(e){var t;this._keepPosterShowingOnPlaying||null===(t=this._posterController)||void 0===t||t.hide()},_.prototype._onSoftEmbargoTimerFinished=function(e){var t;null===(t=this._posterController)||void 0===t||t.setSoftEmbargoActive(!1),this._clipId?(this._dataMediaClipsById["#"+this._clipId]=null,this._clip=null,this._getClip(this._clipCallback.bind(this))):(this._dataMediaClipsById={},this._data=null,this._getData(this._dataCallback.bind(this)))},_.prototype._onAdSystemRequest=function(e,t){if(null!=e&&e.stopPropagation(),t)switch(t.action){case"content_pause":var i;if("MAIN"===this._phase&&this._phase_started)this._pauseRequested=!0,null===(i=this._headController)||void 0===i||i.pause();break;case"content_resume":var n;if("MAIN"===this._phase)this._pauseRequested=!1,this._mediaMainFinished||null===(n=this._headController)||void 0===n||n.play()}},_.prototype._onAdSystemStarted=function(){this._autoPlayOnlyWithPrerollAd&&"PRE"===this._phase&&this.$element.trigger("bb_program_autopauseplay",[{why:"prerollStarted"}])},_.prototype._logError=function(e){this.$element.trigger("bb_error",[{msg:e}])},_.prototype._logWarning=function(e){this.$element.trigger("bb_warning",[{msg:e}])},_._needsTimelineEngine=function(e,t){if("all"===(t=t||"all")||"MediaClip"===t){var i,n,a,s,o;if(null==e||null===(i=e.clipData)||void 0===i?void 0:i.timelineId)return!0;if((null==e||null===(n=e.clipData)||void 0===n||null===(a=n.timelines)||void 0===a?void 0:a.length)>=1)return!0;if(null==e||null===(s=e.playoutData)||void 0===s?void 0:s.timelineId)return!0;if(null==e||null===(o=e.playoutData)||void 0===o?void 0:o.templateId)return!0}if("all"===t||"Project"===t){var r,l,u;if(null==e||null===(r=e.projectData)||void 0===r?void 0:r.timelineId)return!0;if((null==e||null===(l=e.projectData)||void 0===l||null===(u=l.timelines)||void 0===u?void 0:u.length)>=1)return!0}return!1},_.prototype._initTimelineEngines=function(e){if(_._needsTimelineEngine(e)){var t=this;this._timelineEnginePromise||(this._timelineEnginePromise=parcelRequire("iJu0u")),this._timelineEnginePromise.then((function(i){var n=i.default;"function"!=typeof n||null==t._opts||t._opts.noSkinMode||(!t._timelineEngine&&_._needsTimelineEngine(e,"MediaClip")&&(t._timelineEngine=new n(t.$element,t._opts,"MediaClip",0==t._timelineMessageMaster++,e)),!t._timelineEngine_project&&_._needsTimelineEngine(e,"Project")&&(t._timelineEngine_project=new n(t.$element,t._opts,"Project",0==t._timelineMessageMaster++,e)))}))}},_.prototype.getContentList=function(){return this._contentList},_.prototype.getContentListIndex=function(){return this._contentListIndex},_.prototype.spliceIntoContentList=function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),a=1;a<t;a++)i[a-1]=arguments[a];var s,o;if(this._contentList&&!(e<0)){var r=this._contentList[this._contentListIndex];e>=this._contentListIndex&&(s=this._playlist).splice.apply(s,[e-this._contentListIndex,0].concat(n.default(i)));var l=!0,u=!1,d=void 0;try{for(var c,h=i[Symbol.iterator]();!(l=(c=h.next()).done);l=!0){var p=c.value;(null==p?void 0:p.id)&&(this._dataMediaClipsById["#"+p.id]=p)}}catch(e){u=!0,d=e}finally{try{l||null==h.return||h.return()}finally{if(u)throw d}}if((o=this._contentList).splice.apply(o,[e,0].concat(n.default(i))),r){var _=this._contentList.findIndex((function(e){return e===r}));-1!==_&&(this._contentListIndex=_)}this.$element.triggerHandler("bb_cliplist_changed",[{clipListData:this._contentList}])}}})),parcelRequire.register("kv4cr",(function(e,t){$parcel$export(e.exports,"default",(function(){return n}));var i=parcelRequire("3DsR2"),n=function(e,t){this._opts=t,this._ticks=0,this._playerOutOfView=!1,this._timerCanceledFromOutView=!1,this._shouldHaveStarted=!1,this._tickDuration=.5,this._totalDuration=8,this._interval=null,this._pc=null,this._onInViewBound=this._onInView.bind(this),this._onOutViewBound=this._onOutView.bind(this),this.$element=null,void 0!==e&&null!=e&&(this.$element=e,i.default.getService(this._opts.playerAliasOrId).setInstance("AutoPlayNextTimer",this),this._pc=i.default.getService(this._opts.playerAliasOrId).getInstance("ProgramController"),this.$element.on("bb_inview",this._onInViewBound),this.$element.on("bb_outview",this._onOutViewBound))};n.prototype.exit=function(){return this.$element&&(this.$element.off("bb_inview",this._onInViewBound),this.$element.off("bb_outview",this._onOutViewBound)),i.default.getService(this._opts.playerAliasOrId).setInstance("AutoPlayNextTimer",null),null},n.prototype.isRunning=function(){return!!this._interval},n.prototype.start=function(){if(!this._playerOutOfView)return this._interval&&(window.clearInterval(this._interval),this._interval=null),this._ticks=0,this._remainingTime=this._totalDuration,this._interval=window.setInterval(this._onTick.bind(this),1e3*this._tickDuration),this.$element&&this.$element.triggerHandler("bb_autoplaynexttimer_started",[{ticks:this._ticks,remainingTime:this._remainingTime}]),!0;this._shouldHaveStarted=!0},n.prototype.cancel=function(){return this._interval&&(window.clearInterval(this._interval),this._interval=null),this.$element&&this.$element.triggerHandler("bb_autoplaynexttimer_cancelled",[{ticks:this._ticks,remainingTime:0}]),this._playerOutOfView=!1,this._timerCanceledFromOutView=!1,!0},n.prototype._onTick=function(e){this._ticks++,this._remainingTime-=this._tickDuration,this._remainingTime>0?this.$element&&this.$element.triggerHandler("bb_autoplaynexttimer_tick",[{ticks:this._ticks,remainingTime:this._remainingTime}]):(this._interval&&(window.clearInterval(this._interval),this._interval=null),this.$element&&this.$element.triggerHandler("bb_autoplaynexttimer_finished",[{ticks:this._ticks,remainingTime:0}]),this._pc&&this._pc.play(!1))},n.prototype._onInView=function(e){this._playerOutOfView=!1,this.isRunning()||(this._timerCanceledFromOutView?(this._timerCanceledFromOutView=!1,this._interval=window.setInterval(this._onTick.bind(this),1e3*this._tickDuration),this.$element&&this.$element.triggerHandler("bb_autoplaynexttimer_resumed",[{ticks:this._ticks,remainingTime:this._remainingTime}])):this._shouldHaveStarted&&(this.start(),this._shouldHaveStarted=!1,this._playerOutOfView=!1))},n.prototype._onOutView=function(e){this.isRunning()?(this._timerCanceledFromOutView=!0,this._interval&&(window.clearInterval(this._interval),this._interval=null),this.$element&&this.$element.triggerHandler("bb_autoplaynexttimer_paused",[{ticks:this._ticks,remainingTime:this._remainingTime}])):this._playerOutOfView=!0}})),parcelRequire.register("e1zPY",(function(e,t){$parcel$export(e.exports,"default",(function(){return s})),parcelRequire("lDGnc");var i=parcelRequire("7CnHN"),n=parcelRequire("eamhc"),a=parcelRequire("3DsR2"),s=function(){"use strict";function e(t,n){i.default(this,e),this._opts=n,this._ticks=0,this._tickDuration=1,this._endDate=new Date,this._interval=null,this.$element=null,void 0!==t&&null!=t&&(this.$element=t,a.default.getService(this._opts.playerAliasOrId).setInstance("SoftEmbargoTimer",this))}return n.default(e,[{key:"exit",value:function(){return this._interval&&this.cancel(),a.default.getService(this._opts.playerAliasOrId).setInstance("SoftEmbargoTimer",null),null}},{key:"isRunning",value:function(){return!!this._interval}},{key:"start",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;null!=e&&(this._endDate=e),this._ticks=0;var t,i,n=new Date,a=(this._endDate-n)/1e3;a>0?(this._interval&&(window.clearInterval(this._interval),this._interval=null),this._interval=window.setInterval(this._onTick.bind(this),1e3*this._tickDuration),null===(t=this.$element)||void 0===t||t.triggerHandler("bb_softembargotimer_started",[{ticks:this._ticks,remainingTime:a,endDate:new Date(e)}])):(this._interval&&(window.clearInterval(this._interval),this._interval=null),null===(i=this.$element)||void 0===i||i.triggerHandler("bb_softembargotimer_finished",[{ticks:this._ticks,remainingTime:0}]));return!0}},{key:"cancel",value:function(){var e;return this._interval&&(window.clearInterval(this._interval),this._interval=null),null===(e=this.$element)||void 0===e||e.triggerHandler("bb_softembargotimer_cancelled",[{ticks:this._ticks,remainingTime:0}]),!0}},{key:"_onTick",value:function(e){var t;this._ticks++;var i,n=new Date,a=(this._endDate-n)/1e3;a>0?null===(t=this.$element)||void 0===t||t.triggerHandler("bb_softembargotimer_tick",[{ticks:this._ticks,remainingTime:a}]):(this._interval&&(window.clearInterval(this._interval),this._interval=null),null===(i=this.$element)||void 0===i||i.triggerHandler("bb_softembargotimer_finished",[{ticks:this._ticks,remainingTime:0}]))}}]),e}()})),parcelRequire.register("h0moj",(function(e,t){$parcel$export(e.exports,"default",(function(){return a})),parcelRequire("6JR1F");var i=parcelRequire("hGJI5"),n=parcelRequire("3DsR2"),a=function(e,t){this._init(e,t)};a.prototype._init=function(e,t){if(this._resizeThresHold=.7,this._isVisible=!1,this._loadNewSize=!1,this._loadedGenericId=null,this.$posterLayer=null,this.$element=null,this._opts=null,this._projectData=null,this._clipData=null,this._phase=null,this._genericId=0,this._genericType="mediaclip",this._genericMediaType="video",this._genericThumbnails=null,this._genericIsYouTubeEmbed=!1,this._imageTransition="opacity .25s ease-in-out",this._w=640,this._h=360,this._initCount=0,this._useThumbsFromMetadata=!1,this._useSession=!1,this._useMovingThumbnail=!1,this._disableMovingThumbnail=!1,this._movingThumbnailPlayTimeout=null,this._hadMovingThumbnailPlay=!1,this._movingThumbnailSrc=null,this._onPhaseChangeBound=this._onPhaseChange.bind(this),this._onMouseEnterBound=this._onMouseEnter.bind(this),this._onMouseLeaveBound=this._onMouseLeave.bind(this),this._onInviewBound=this._onInview.bind(this),this._onOutviewBound=this._onOutview.bind(this),this._onPlayoutChangedBound=this._onPlayoutChanged(this),this._onProjectLoadedBound=this._onProjectLoaded.bind(this),this._onClipLoadedBound=this._onClipLoaded.bind(this),this._onResizeBound=this._onResize.bind(this),void 0!==t&&null!=t&&(this._opts=t),void 0!==e&&null!=e){var a;this.$element=e,this.$posterLayer=this.$element.find(".bb-poster-layer"),this.$posterLayer.css({opacity:0}),this.$media=this.$element.find(".bb-content-layer video");var s=n.default.getService(this._opts.playerAliasOrId).getInstance("Detections");this._isTouchDevice=!!s&&s.isTouchDevice,this._isSafari=!!s&&s.isSafari,this._imageExtension=(null==s?void 0:s.webp)?"webp":"jpg",this._w=this.$posterLayer.width(),this._h=this.$posterLayer.height(),this._opts.publicationData.useThumbsFromMetadata&&(this._useThumbsFromMetadata="true"===this._opts.publicationData.useThumbsFromMetadata),this._opts.playoutData.useThumbsFromMetadata&&(this._useThumbsFromMetadata="true"===this._opts.playoutData.useThumbsFromMetadata),this._opts.projectData&&this._opts.projectData.useThumbsFromMetadata&&(this._useThumbsFromMetadata="true"===this._opts.projectData.useThumbsFromMetadata),this._opts.clipData&&this._opts.clipData.useThumbsFromMetadata&&(this._useThumbsFromMetadata="true"===this._opts.clipData.useThumbsFromMetadata),void 0!==this._opts.playoutData.useSession&&(this._useSession="true"===this._opts.playoutData.useSession);var o=new Date,r=null===(a=this._opts.clipData)||void 0===a?void 0:a.softEmbargo,l=new Date(r);r&&l>o&&(this._softEmbargoActive=!0),"true"===this._opts.playoutData.softEmbargoHasCustomPoster&&(this._softEmbargoCustomPosterClipId=this._opts.playoutData.softEmbargoCustomPosterClipId),(this._opts.playoutData&&"true"===this._opts.playoutData.disableMovingThumbnail||this._opts.publicationData&&"true"===this._opts.publicationData.disableMovingThumbnail)&&(this._disableMovingThumbnail=!0),!this._disableMovingThumbnail&&this._opts.clipData&&this._opts.clipData.movingThumbnails&&(this._useMovingThumbnail=!0),0==this.$posterLayer.length?this.$posterLayer=null:(this.$posterLayer.css({opacity:0,transition:this._imageTransition}),this._imageToLoad=1,this.$image1=$parcel$interopDefault(i)(document.createElement("img")).appendTo(this.$posterLayer),this.$image1.css({width:"100%",height:"100%",opacity:0,transition:this._imageTransition}),this.$image1.attr("alt","poster"),this.$image2=$parcel$interopDefault(i)(document.createElement("img")).appendTo(this.$posterLayer),this.$image2.css({width:"100%",height:"100%"}),this.$image2.attr("alt","poster"),this.$movingThumbnailVideo=null,this._useMovingThumbnail&&(this._createMovingThumbnailContainer(),this.$element.on("bb_phase_change",this._onPhaseChangeBound),this._isTouchDevice?(this.$element.on("bb_inview",this._onInviewBound),this.$element.on("bb_outview",this._onOutviewBound)):(this.$element.on("mouseenter",this._onMouseEnterBound),this.$element.on("mouseleave",this._onMouseLeaveBound)))),this.$element.on("bb_playout_changed",this._onPlayoutChangedBound),this.$element.on("bb_project_loaded",this._onProjectLoadedBound),this.$element.on("bb_mediaclip_loaded",this._onClipLoadedBound),this.$element.on("bb_resized",this._onResizeBound),void 0!==this.$posterLayer&&null!=this.$posterLayer&&this.$posterLayer.attr("aria-hidden","true")}},a.prototype.exit=function(){return this.$element.off("bb_playout_changed",this._onPlayoutChangedBound),this.$element.off("bb_project_loaded",this._onProjectLoadedBound),this.$element.off("bb_mediaclip_loaded",this._onClipLoadedBound),this.$element.off("bb_resized",this._onResizeBound),this.$element.off("bb_phase_change",this._onPhaseChangeBound),this._isTouchDevice?(this.$element.off("bb_inview",this._onInviewBound),this.$element.off("bb_outview",this._onOutviewBound)):(this.$element.off("mouseenter",this._onMouseEnterBound),this.$element.off("mouseleave",this._onMouseLeaveBound)),this._destroyMovingThumbnailContainer(),this.$posterLayer&&this.$posterLayer.html(""),this.$element=null,this.$posterLayer=null,this._opts=null,null},a.prototype._handleDataChange=function(e){e&&e.disableMovingThumbnail&&(this._disableMovingThumbnail="true"===e.disableMovingThumbnail,this._disableMovingThumbnail?this._useMovingThumbnail=!1:this._useMovingThumbnail=!(!e.movingThumbnails||!e.movingThumbnails.length)),e&&e.useThumbsFromMetadata&&(this._useThumbsFromMetadata="true"===e.useThumbsFromMetadata),e&&e.movingThumbnails&&(this._useMovingThumbnail=!this._disableMovingThumbnail&&!!e.movingThumbnails.length),this._useMovingThumbnail?this._useMovingThumbnail&&!this.$movingThumbnailVideo&&this._createMovingThumbnailContainer():this._destroyMovingThumbnailContainer()},a.prototype._onPlayoutChanged=function(e,t){t&&this._handleDataChange(t.playoutData)},a.prototype._onProjectLoaded=function(e,t){if(t){var i,n;if(this._projectData=t.projectData,this._projectData)this._genericId=this._projectData.id,this._genericType="project",this._genericMediaType=null,this._genericThumbnails=this._projectData.thumbnails,this._genericMovingThumbnails=this._projectData.movingThumbnails||null,this._genericIsYouTubeEmbed=!1,null===(i=this.$image1)||void 0===i||i.hide(),null===(n=this.$image2)||void 0===n||n.hide(),this._handleDataChange(this._projectData);!0===t.autoPlay||"true"===t.autoPlay||(this.load(),this._projectData&&this.show())}},a.prototype._onClipLoaded=function(e,t){if(t){var i,n,a;if(this._clipData=t.clipData,this._clipData&&!this._projectData)this._genericId=this._clipData.id,this._genericType="mediaclip",this._genericMediaType=this._clipData.mediatype,this._genericThumbnails=this._clipData.thumbnails,this._genericMovingThumbnails=this._clipData.movingThumbnails||null,this._genericIsYouTubeEmbed=this._clipData.isYouTubeEmbed,null===(n=this.$image1)||void 0===n||n.hide(),null===(a=this.$image2)||void 0===a||a.hide(),this._handleDataChange(this._clipData);var s=new Date,o=null===(i=this._clipData)||void 0===i?void 0:i.softEmbargo,r=new Date(o);o&&r>s&&(this._softEmbargoActive=!0),!0===t.autoPlay||"true"===t.autoPlay||this.load()}},a.prototype._onResize=function(e,t){if(this.$posterLayer){this._w=parseInt(this.$posterLayer[0].style.width.replace("px",""));var i=this._h=parseInt(this.$posterLayer[0].style.height.replace("px",""));this._loadNewSize=!1,(this._isVisible&&null==this._loadedHeight||this._loadedHeight/i<this._resizeThresHold||this._loadNewSize)&&(this._loadNewSize=!0,this._isVisible&&this.load())}},a.prototype._onInview=function(e,t){if(this._isTouchDevice&&this._useMovingThumbnail&&this.$movingThumbnailVideo){var i=this.$movingThumbnailVideo[0];if(i&&i.play){var n=i.play();n&&n.catch&&n.catch((function(e){}))}}},a.prototype._onOutview=function(e,t){if(this._isTouchDevice&&this._useMovingThumbnail&&this.$movingThumbnailVideo){var i=this.$movingThumbnailVideo[0];if(i&&i.pause)try{i.pause()}catch(e){}}},a.prototype.load=function(){var e=this,t=this._useThumbsFromMetadata,n=this._genericId,a=this._genericThumbnails,s=this._genericMovingThumbnails;if(this._softEmbargoActive&&this._softEmbargoCustomPosterClipId&&(t=!1,n=this._softEmbargoCustomPosterClipId,a=null,s=null),n&&n>0&&(n!==this._loadedGenericId||this._loadNewSize)&&this._w>=50&&this._h>=50){var o=this._w%16,r=this._w/this._h;if(this._w=this._w-o,this._h=Math.round(this._w/r),null!=this._opts&&void 0!==this._opts.publicationData){var l=null;this._hadMovingThumbnailPlay=!1;var u=this._w*this._h;if(!t&&("project"===this._genericType||"mediaclip"===this._genericType)&&n>0){var d=this._useSession?"spthumbnail":"pthumbnail",c=this._useSession?"spmovingthumbnail":"pmovingthumbnail";if(this._isSafari&&(c="movingthumbnail"),l=this._opts.publicationData.server+"/"+this._genericType+"/"+n+"/"+d+"/"+this._w+"/"+this._h+"."+this._imageExtension+"?cpPassThrough",s&&s.length){for(var h=[{width:1280,height:720},{width:854,height:480},{width:640,height:360}],p=h[2],_=0;_<h.length;_++){var m=h[_].width*h[_].height,f=Math.abs(m-u);(void 0===g||f<g)&&(g=f,p=h[_])}this._movingThumbnailSrc=this._opts.publicationData.server+"/"+this._genericType+"/"+n+"/"+c+"/"+p.width+"/"+p.height}else this._movingThumbnailSrc=null}else if(a){for(_=0;_<a.length;_++){var v=a[_];if((v.main||0==_)&&(l=v.src),v.main)break}if(!l||l.match(/^\w+:\/\//)||l.match(/^\/\//)||(l=this._opts.publicationData.defaultMediaAssetPath+l),s&&s.length){var g;this._movingThumbnailSrc=s[0].src;for(_=0;_<s.length;_++){var y=s[_];if(y.main||"true"===y.main){this._movingThumbnailSrc=y.src;break}m=+y.width*+y.height,f=Math.abs(m-u);(void 0===g||f<g)&&(g=f,this._movingThumbnailSrc=y.src)}!this._movingThumbnailSrc||this._movingThumbnailSrc.match(/^\w+:\/\//)||this._movingThumbnailSrc.match(/^\/\//)||(this._movingThumbnailSrc=this._opts.publicationData.defaultMediaAssetPath+this._movingThumbnailSrc)}else this._movingThumbnailSrc=null}if(null!=this.$posterLayer&&null!=l)switch(this._loadedGenericId=n,this._loadedHeight=this._h,this._useMovingThumbnail&&this._movingThumbnailSrc?this.$movingThumbnailVideo||this._createMovingThumbnailContainer():this.$movingThumbnailVideo&&this._destroyMovingThumbnailContainer(),this._movingThumbnailSrc&&this.$movingThumbnailVideo&&this.$movingThumbnailVideo.attr("src",this._movingThumbnailSrc),this._imageToLoad){case 1:if(this.$image1)return this.$image1.hide(),this.$image1[0].onload=function(){var t,n;null===(t=e.$element)||void 0===t||t.triggerHandler("bb_poster_changed",[{width:e.$image1[0].naturalWidth,height:e.$image1[0].naturalHeight}]),$parcel$interopDefault(i)(this).show().css({opacity:1}),null===(n=e.$image2)||void 0===n||n.hide(),e._imageCurrentlyShown=1},this.$image1.attr("src",l),this._imageToLoad=2,!0;break;case 2:if(this.$image2)return this.$image2.hide(),this.$image2[0].onload=function(){var t,n;null===(t=e.$element)||void 0===t||t.triggerHandler("bb_poster_changed",[{width:e.$image2[0].naturalWidth,height:e.$image2[0].naturalHeight}]),$parcel$interopDefault(i)(this).show(),null===(n=e.$image1)||void 0===n||n.hide(),e._imageCurrentlyShown=2},this.$image2.attr("src",l),this._imageToLoad=1,!0}}}else switch(this._imageCurrentlyShown){case 1:var b,k;null===(b=this.$image1)||void 0===b||b.show(),null===(k=this.$image2)||void 0===k||k.hide();break;case 2:var w,$;null===(w=this.$image1)||void 0===w||w.hide(),null===($=this.$image2)||void 0===$||$.show()}return!1},a.prototype.setSoftEmbargoActive=function(e){this._softEmbargoActive=!!e},a.prototype.show=function(){return"mainroll"!==this._genericMediaType&&!this._genericIsYouTubeEmbed&&(this.load(),null!=this.$posterLayer&&(this._isVisible=!0,this.$media&&this.$media.removeAttr("controls"),this.$media&&this.$media.prop("controls",!1),this.$posterLayer.css({opacity:1}),this.$posterLayer.removeAttr("aria-hidden"),!0))},a.prototype._createMovingThumbnailContainer=function(){this.$movingThumbnailVideo&&this._destroyMovingThumbnailContainer(),this.$movingThumbnailVideo=$parcel$interopDefault(i)(document.createElement("video")).appendTo(this.$posterLayer),this.$movingThumbnailVideo.css({width:"100%",height:"100%",display:"none",objectFit:"fill",position:"absolute",top:0,left:0}),this.$movingThumbnailVideo.attr("loop","true"),this.$movingThumbnailVideo.attr("preload","none"),this.$movingThumbnailVideo.attr("playsinline",""),this.$movingThumbnailVideo.attr("webkit-playsinline",""),this.$movingThumbnailVideo.attr("aria-hidden","true"),this.$movingThumbnailVideo.prop("muted",!0),this.$movingThumbnailVideo.prop("volume",0),this._movingThumbnailSrc&&this.$movingThumbnailVideo.attr("src",this._movingThumbnailSrc);var e=this;this.$movingThumbnailVideo.on("playing",(function(t){t.stopPropagation(),e._hadMovingThumbnailPlay||(e.$element.trigger("bb_movingthumbnail_started"),e._hadMovingThumbnailPlay=!0),e.$movingThumbnailVideo.show(),e.$movingThumbnailVideo.removeAttr("aria-hidden")})),this.$movingThumbnailVideo.on("pause ended error abort stalled",(function(t){switch(t.stopPropagation(),e._imageCurrentlyShown){case 1:var i;null===(i=e.$image1)||void 0===i||i.show();break;case 2:var n;null===(n=e.$image2)||void 0===n||n.show()}e.$movingThumbnailVideo.hide(),e.$movingThumbnailVideo.attr("aria-hidden","true"),e.$movingThumbnailVideo[0].currentTime=0})),"EXIT"!==this._phase&&"POST"!==this._phase||this._destroyMovingThumbnailContainer()},a.prototype._destroyMovingThumbnailContainer=function(){this._movingThumbnailPlayTimeout&&clearTimeout(this._movingThumbnailPlayTimeout),this.$movingThumbnailVideo&&(this.$movingThumbnailVideo.remove(),this.$movingThumbnailVideo=null)},a.prototype._onMouseEnter=function(){if(this._useMovingThumbnail&&this.$movingThumbnailVideo&&this.$movingThumbnailVideo[0]&&"function"==typeof this.$movingThumbnailVideo[0].play&&this.$movingThumbnailVideo.attr("src")){var e=this;this._movingThumbnailPlayTimeout&&clearTimeout(this._movingThumbnailPlayTimeout),this._movingThumbnailPlayTimeout=setTimeout((function(){try{var t=e.$movingThumbnailVideo[0].play();t&&t.catch&&t.catch((function(e){}))}catch(e){}}),150)}},a.prototype._onMouseLeave=function(){if(this._movingThumbnailPlayTimeout&&(clearTimeout(this._movingThumbnailPlayTimeout),this._movingThumbnailPlayTimeout=null),this._useMovingThumbnail)try{var e,t,i;null===(e=this.$movingThumbnailVideo)||void 0===e||null===(t=e[0])||void 0===t||null===(i=t.pause)||void 0===i||i.call(t)}catch(e){}},a.prototype._onPhaseChange=function(e,t){if(e.stopPropagation(),this._phase=t.phase,void 0!==t&&t.phase)if("INIT"===t.phase.toUpperCase())this._initCount++,this._initCount>1&&this._destroyMovingThumbnailContainer();else this._destroyMovingThumbnailContainer()},a.prototype.hide=function(e){return null!=this.$posterLayer&&(this._isVisible=!1,this.$posterLayer.css({opacity:0}),this.$posterLayer.attr("aria-hidden","true"),!0)}})),parcelRequire.register("lyJC8",(function(e,t){$parcel$export(e.exports,"default",(function(){return u})),parcelRequire("lDGnc");var i=parcelRequire("6YA9f"),n=parcelRequire("27Qiu"),a=parcelRequire("7CnHN"),s=parcelRequire("fBLaW"),o=parcelRequire("eamhc"),r=parcelRequire("7gftt"),l=parcelRequire("kVqNu"),u=function(e){"use strict";i.default(u,e);var t=n.default(u);function u(e,i){var n;return a.default(this,u),(n=t.call(this,e,i))._mediaData=null,n._reset_smr(),n._isIE=!!n._detections&&n._detections.isIE,n._isSafari=!!n._detections&&n._detections.isSafari,n._onAssetSelectedBound=n._onAssetSelected.bind(s.default(n)),n.$element&&n.$element.on("bb_asset_selected",n._onAssetSelectedBound),n}return o.default(u,[{key:"exit",value:function(){return this.$element&&this.$element.off("bb_asset_selected",this._onAssetSelectedBound),this._reset_smr(),this._mediaData=null,r.default(l.default(u.prototype),"exit",this).call(this,this)}},{key:"_reset_smr",value:function(){this._clipIds=[],this._clipDurationsTotal=0,this._clipOffsets={},this._clipDurations={},this._clipOffsetsPerAsset={},this._clipDurationsPerAsset={},this._origClip=null,this._origSeekPosition=0,this._origClipOffset=0,this._origClipDuration=0}},{key:"load",value:function(e,t){var i=!1;if(this._mediaData){this._origClip=e||{},this._origSeekPosition=t||0,this._origClipOffset=0,this._origClipDuration=parseFloat(this._origClip.length)||0;var n=this._origClip?this._origClip.id:0;this._clipOffsets&&this._clipOffsets["#"+n]>0&&(this._origClipOffset=this._clipOffsets["#"+n]),this._clipDurations&&this._clipDurations["#"+n]>0&&(this._origClipDuration=this._clipDurations["#"+n]),e=this._getClip(e),t=this._getSeekPosition(t),this._clip&&this._clip.id===e.id?(this._head&&this._head.pause(),this.$element&&(this.$element.triggerHandler("bb_media_loadstart"),this.$element.triggerHandler("bb_media_loadedmetadata"),this.$element.triggerHandler("bb_media_duration_change",[{duration:this._getDuration()}]),this.$element.triggerHandler("bb_media_loadeddata")),t!==r.default(l.default(u.prototype),"get",this).call(this,"currentTime")?(this._lastCurrentTime=0,this._started=!1,this._expectArtificialSeek=this._origSeekPosition<=0,i=r.default(l.default(u.prototype),"set",this).call(this,"currentTime",t)):i=!0,this.$element&&this.$element.triggerHandler("bb_media_canplay")):(i=r.default(l.default(u.prototype),"load",this).call(this,e,t),this._clip||(this._clip=e))}else i=r.default(l.default(u.prototype),"load",this).call(this,e,t);return i}},{key:"setMediaData",value:function(e){if(this._reset_smr(),e&&e.items&&e.assets&&!this._isIE&&!this._isSafari){var t=this,i=function(e,i){var n=t._mediaData.items[e],a=t._mediaData.assets.filter((function(e){return e.jobdefid==n.jobdefid})).map((function(e){return e.id}));t._clipOffsetsPerAsset[a]={},t._clipDurationsPerAsset[a]={};for(var s=0,o=n.items.length;s<o;s++){var r=n.items[s],l=r.mediaclipid;t._clipIds.indexOf(l)<0&&(t._clipIds.push(l),t._clipOffsets["#"+l]=parseFloat(r.offset)/1e3,t._clipDurations["#"+l]=parseFloat(r.exactlength)/1e3,t._clipDurationsTotal+=parseFloat(r.exactlength)/1e3),t._clipOffsetsPerAsset[a]["#"+l]=parseFloat(r.offset)/1e3,t._clipDurationsPerAsset[a]["#"+l]=parseFloat(r.exactlength)/1e3}};this._mediaData=e;for(var n=0,a=this._mediaData.items.length;n<a;n++)i(n)}else this._mediaData=null}},{key:"set",value:function(e,t){if(this._mediaData&&"currentTime"===e)t=this._getSeekPosition(t);return r.default(l.default(u.prototype),"set",this).call(this,e,t)}},{key:"get",value:function(e){if(this._mediaData)switch(e){case"currentTime":return this._lastCurrentTime;case"duration":return this._getDuration();case"buffered":return this._getBuffered()}return r.default(l.default(u.prototype),"get",this).call(this,e)}},{key:"_onAssetSelected",value:function(e,t){if(t&&t.asset&&t.asset.id){var i=t.asset.id;this._clipOffsetsPerAsset[i]&&(this._clipOffsets=this._clipOffsetsPerAsset[i]),this._clipDurationsPerAsset[i]&&(this._clipDurations=this._clipDurationsPerAsset[i]);var n=this._origClip?this._origClip.id:0;this._clipOffsets&&this._clipOffsets["#"+n]>0&&(this._origClipOffset=this._clipOffsets["#"+n]),this._clipDurations&&this._clipDurations["#"+n]>0&&(this._origClipDuration=this._clipDurations["#"+n])}}},{key:"_getClip",value:function(e){var t=e;if(this._clipIds&&this._clipIds.indexOf(e.id)>=0)if(this._clip)t=this._clip;else{var i=this._mediaData.projectId,n=this._mediaData.assets;t={type:"MediaClip",id:i,mediatype:e.mediatype,usetype:e.usetype,assets:n,length:this._clipDurationsTotal,width:e.width,height:e.height}}else this._reset_smr();return t}},{key:"_getSeekPosition",value:function(e){return this._origClipOffset+Math.max(0,Math.min(e,this._origClipDuration))}},{key:"_getCurrentTime",value:function(e){return e-this._origClipOffset}},{key:"_getDuration",value:function(){return this._origClipDuration}},{key:"_getBuffered",value:function(){var e=0,t=r.default(l.default(u.prototype),"get",this).call(this,"buffered");if(t&&t.start&&t.end){e={start:[],end:[],length:0};for(var i=0,n=t.start.length;i<n;i++){var a=Math.max(0,Math.min(t.start[i]-this._origClipOffset,this._origClipDuration)),s=Math.max(0,Math.min(t.end[i]-this._origClipOffset,this._origClipDuration));s>a&&(e.start.push(a),e.end.push(s),e.length++)}}return e}},{key:"_onHeadEvent",value:function(e){if(this._mediaData&&e)switch(e.stopPropagation(),e.type){case"timeupdate":var t=null;return this._head&&(t=this._getCurrentTime(this._head.get("currentTime")),this._lastCurrentTime=t),void(t>=this._origClipDuration-.16?(this._head&&(this._expectArtificialPause=!0,this._head.pause()),this.$element&&(this.$element.triggerHandler("bb_media_paused"),this._started&&(this._started=!1,this.$element.triggerHandler("bb_media_finished")))):null==this._savedSeekPosition&&this.$element&&this.$element.triggerHandler("bb_media_timeupdate",[{currentTime:t}]));case"durationchange":return void(this.$element&&this.$element.triggerHandler("bb_media_duration_change",[{duration:this._getDuration()}]));case"seeking":var i;if(this._expectArtificialSeek)return void(this._savedSeekPosition=null);var n=null;return this._head&&(n=this._getCurrentTime(this._head.get("currentTime")),this._lastCurrentTime=n),void(null===(i=this.$element)||void 0===i||i.triggerHandler("bb_media_seeking",[{currentTime:n}]));case"seeked":if(this._expectArtificialSeek)this._expectArtificialSeek=!1,this._savedSeekPosition=null,this._dispatchEvent("bb_assets_changed",{assets:this._shortlist}),this._dispatchEvent("bb_asset_selected",{asset:this._asset});else{var a=null;null!=this._savedSeekPosition?(a=this._savedSeekPosition,this._savedSeekPosition=null):this._head&&(a=this._head.get("currentTime")),a=this._getCurrentTime(a),this.$element.triggerHandler("bb_media_seeked",[{seekedPosition:a}])}return;case"pause":if(this._expectArtificialPause)return this._expectArtificialPause=!1,void(this._playing=!1)}r.default(l.default(u.prototype),"_onHeadEvent",this).call(this,e)}}]),u}(parcelRequire("bd88j").default)})),parcelRequire.register("bd88j",(function(e,t){$parcel$export(e.exports,"default",(function(){return I})),parcelRequire("lDGnc");var i=parcelRequire("6YA9f"),n=parcelRequire("27Qiu"),a=parcelRequire("7CnHN"),s=parcelRequire("fBLaW"),o=parcelRequire("eamhc"),r=parcelRequire("7gftt"),l=parcelRequire("kVqNu"),u=parcelRequire("lwy96");parcelRequire("6JR1F");var d,c,h,p,_,m,f,v,g,y,b,k,w,$=parcelRequire("hGJI5"),C=parcelRequire("3DsR2"),S=parcelRequire("e06N2"),P=parcelRequire("aVMO5"),x=parcelRequire("2XZbq"),A=parcelRequire("5CbwX");d=parcelRequire("4qy6W").default,c=parcelRequire("fEu1u").default,h=parcelRequire("4Mmd4").default,p=parcelRequire("7O3yG").default,_=parcelRequire("czAOs").default,m=parcelRequire("9DD6a").default,f=parcelRequire("rbR3F").default,v=parcelRequire("eXAFn").default,g=parcelRequire("ifaZq").default,y=parcelRequire("hTWVc").default,b=parcelRequire("1hNaQ").default,k=parcelRequire("fUtd6").default,w=parcelRequire("jcztY").default;var I=function(e){"use strict";i.default(P,e);var t=n.default(P);function P(e,i){var n;if(a.default(this,P),(n=t.call(this,e,i))._opts=i,n._localStorage=null,n._started=!1,n._fullscreen=!1,n._couldPlay=!1,n._isiPhone=!1,n._lastCurrentTime=0,n._headLockForMainroll=!1,n._currentTextTrackIsoCode=null,n._muted=!1,n._userSelectedAsset=null,n._posterWidth=0,n._posterHeight=0,n._defaultSubtitle="first",n._defaultSubtitleOnlyIfMuted=!1,n._defaultAudioTrackPlayoutVal=null,n._mobileRotateOnFullScreenMismatch=!1,n._useChromeCast=!1,n._castSession=null,n._onPosterChangedBound=n._onPosterChanged.bind(s.default(n)),n._onFullScreenMismatchBound=n._onFullScreenMismatch.bind(s.default(n)),n._onCommercialHeadSelectedBound=n._onCommercialHeadSelected.bind(s.default(n)),n._onSubtitleSetBound=n._onSubtitleSet.bind(s.default(n)),null!=n.$element){var o=C.default.getService(n._opts.playerAliasOrId).getInstance("LocalStorage");void 0!==o&&null!=o&&(n._localStorage=o);var r=C.default.getService(n._opts.playerAliasOrId).getInstance("Detections");void 0!==r&&null!=r&&(n._isiPhone=r.isiPhone,n._isMobileDevice=r.isMobileDevice,n._isSafari=r.isSafari),n._mediaManager=x.default?new x.default(e,i):null,n._sc=C.default.getService(n._opts.playerAliasOrId).getInstance("SoundController"),n._sc&&(n._muted=n._sc.getMuted()),n.$element.on("bb_poster_changed",n._onPosterChangedBound),n.$element.on("bb_fullscreen_mismatch",n._onFullScreenMismatchBound),n.$element.on("bb_subtitle_set",n._onSubtitleSetBound)}return n._opts.playoutData&&(n._autoPlay="true"===n._opts.playoutData.autoPlay,void 0!==n._opts.playoutData.defaultSubtitle&&(n._defaultSubtitle=n._opts.playoutData.defaultSubtitle),void 0!==n._opts.playoutData.defaultSubtitleOnlyIfMuted&&(n._defaultSubtitleOnlyIfMuted="true"===n._opts.playoutData.defaultSubtitleOnlyIfMuted||!0===n._opts.playoutData.defaultSubtitleOnlyIfMuted),void 0!==n._opts.playoutData.defaultAudioTrack&&(n._defaultAudioTrackPlayoutVal=n._opts.playoutData.defaultAudioTrack),void 0!==n._opts.playoutData.mobileRotateOnFullScreenMismatch&&(n._mobileRotateOnFullScreenMismatch="true"===n._opts.playoutData.mobileRotateOnFullScreenMismatch),void 0!==n._opts.playoutData.autoMute&&(n._muted="true"===n._opts.playoutData.autoMute||!0===n._opts.playoutData.autoMute),n._castContext=null,"Show"===n._opts.playoutData.castButton&&n._initCastButton()),n}return o.default(P,[{key:"_initCastButton",value:function(){var e=C.default.getService(this._opts.playerAliasOrId).getInstance("Detections");e&&e.canChromeCast?this._initChromeCast():(this.__onGCastApiAvailable=window.__onGCastApiAvailable||null,window.__onGCastApiAvailable=this._handleGCastApiAvailable.bind(this),this._broker&&this._broker.load("//www.gstatic.com/cv/js/sender/v1/cast_sender.js?loadCastFramework=1:ChromeCastFramework",15))}},{key:"exit",value:function(){var e;(this._mediaManager&&(this._mediaManager=this._mediaManager.exit()),null!=this.$element)&&(this.$element.off("bb_poster_changed",this._onPosterChangedBound),this.$element.off("bb_fullscreen_mismatch",this._onFullScreenMismatchBound),this.$element.off("bb_subtitle_set",this._onSubtitleSetBound),this.$element.off("bb_commercial_head_selected",this._onCommercialHeadSelectedBound),null===(e=this.$wrapper)||void 0===e||e.off("bb_component_loaded bb_component_failed",this._onComponentBound),this._localStorage=null);return r.default(l.default(P.prototype),"exit",this).call(this)}},{key:"reset",value:function(e){r.default(l.default(P.prototype),"reset",this).call(this),this._castSession&&(this._castSession.endSession(!0),this._castSession=null),this._castContext&&(this._castContext.removeEventListener(window.cast.framework.CastContextEventType.SESSION_STATE_CHANGED,this._onCastSessionChanged.bind(this)),this._castContext=null),this._lastCurrentTime=0,this._started=!1}},{key:"load",value:function(e,t){var i=!1;return this.reset(),t&&(this._seekPosition=t),void 0!==e&&null!=e?(this._clip=e,void 0!==this._clip.length&&this._dispatchEvent("bb_media_duration_change",{duration:this._clip.length}),this._clip.fitmode&&"FIT_NONE"!=this._clip.fitmode&&(this._fitMode=this._clip.fitmode),"mainroll"==this._clip.mediatype?(this._headLockForMainroll=!0,this.$element.on("bb_commercial_head_selected",this._onCommercialHeadSelectedBound),i=!0):(this.$element.off("bb_commercial_head_selected",this._onCommercialHeadSelectedBound),this._headLockForMainroll=!1,this._selectAsset(),i=this._switchAsset("loadClip",this._seekPosition))):i=!0,i}},{key:"get",value:function(e){switch(e){case"bitrate":if(null!=this._asset)return this._asset.bandwidth;break;case"volume":return null!=this._head&&this._masterVolume>0?this._head.get("volume")/this._masterVolume:this._headVolume;case"muted":return null!=this._head?this._masterMute?this._headMute:this._head.get("muted"):this._headMute;case"duration":if(null!=this._head){if(0!=this._head.get("duration"))return this._head.get("duration");if(null!=this._clip&&void 0!==this._clip.length)return Number(this._clip.length)}else if(null!=this._clip&&void 0!==this._clip.length)return Number(this._clip.length);break;case"currentTime":return this._lastCurrentTime}return r.default(l.default(P.prototype),"get",this).call(this,e)}},{key:"play",value:function(e){if(S.default("[MainHeadController] play user action: "+e),this._playPending=!0,null!=this._head){if(this._head.toFront(),this._couldPlay||this._canPlay||e)return this._head.play(e);this._head.load(e)}else this._clip&&"mainroll"==this._clip.mediatype&&this._isiPhone&&(void 0!==this._heads.html5_audio&&null!=this._heads.html5_audio||(this._heads.html5_audio=this._createHead("html5","audio")),this.loadHtml5Media(e));return!1}},{key:"switchAsset",value:function(e){var t=null;if(null!=this._shortlist)for(var i=0;i<this._shortlist.length;i++){var n=this._shortlist[i];if(null!=n&&n.id==e){t=n;break}}t&&!t.faked&&(this._savedAsset=null);var a,s,o=r.default(l.default(P.prototype),"switchAsset",this).call(this,e);if(o)if("auto"===(null===(a=this._asset)||void 0===a?void 0:a.bandwidth)||-1===(null===(s=this._asset)||void 0===s?void 0:s.bandwidth))this._userSelectedAsset=null;else try{this._userSelectedAsset=JSON.parse(JSON.stringify(this._asset))}catch(e){}return o}},{key:"loadHtml5Media",value:function(e){var t=null;void 0!==this._heads.sprite_video&&null!=this._heads.sprite_video?t=this._heads.sprite_video:void 0!==this._heads.html5_audio&&null!=this._heads.html5_audio?t=this._heads.html5_audio:void 0!==this._heads.html5_video&&null!=this._heads.html5_video&&(t=this._heads.html5_video),void 0===this._heads.youtube_video||null==this._heads.youtube_video||this._detections&&this._detections.isiOS&&this._detections.isiPhone&&this._detections.iOSVersion<10||this._heads.youtube_video.preload(),t&&t.load(e)}},{key:"getHtml5Video",value:function(){var e=null;return void 0!==this._heads.html5_video&&null!=this._heads.html5_video?e=this._heads.html5_video:void 0!==this._heads.Html5HLS_video&&null!=this._heads.Html5HLS_video?e=this._heads.Html5HLS_video:void 0!==this._heads.Html5VideoGL360_video&&null!==this._heads.Html5VideoGL360_video?e=this._heads.Html5VideoGL360_video:void 0!==this._heads.Html5HLSVideoGL360_video&&null!==this._heads.Html5HLSVideoGL360_video?e=this._heads.Html5HLSVideoGL360_video:(this._heads.html5_video=this._createHead("html5","video"),e=this._heads.html5_video),e&&(e.set("volume",this._headVolume*this._masterVolume),e.set("muted",this._headMute||this._masterMute)),e.$media}},{key:"borrowHtml5Video",value:function(){var e=this.getHtml5Video();return this._headBound&&!this._headLockForMainroll&&(this._headWasBound=!0,this._unbindFromHead()),this._headType,this._headIsBorrowed=!0,e}},{key:"returnHtml5Video",value:function(){this.returnHtml5Media()}},{key:"getHtml5Media",value:function(){var e=null;return void 0!==this._heads.sprite_video&&null!=this._heads.sprite_video?e=this._heads.sprite_video:void 0!==this._heads.html5_audio&&null!=this._heads.html5_audio?e=this._heads.html5_audio:void 0!==this._heads.Html5HLS_audio&&null!==this._heads.Html5HLS_audio?e=this._heads.Html5HLS_audio:void 0!==this._heads.html5_video&&null!=this._heads.html5_video?e=this._heads.html5_video:void 0!==this._heads.Html5HLS_video&&null!==this._heads.Html5HLS_video?e=this._heads.Html5HLS_video:void 0!==this._heads.Html5VideoGL360_video&&null!==this._heads.Html5VideoGL360_video?e=this._heads.Html5VideoGL360_video:void 0!==this._heads.Html5HLSVideoGL360_video&&null!==this._heads.Html5HLSVideoGL360_video?e=this._heads.Html5HLSVideoGL360_video:(this._heads.html5_audio=this._createHead("html5","audio"),e=this._heads.html5_audio),e&&(e.set("volume",this._headVolume*this._masterVolume),e.set("muted",this._headMute||this._masterMute)),e.$media}},{key:"borrowHtml5Media",value:function(){var e=this.getHtml5Media();return this._headBound&&!this._headLockForMainroll&&(this._headWasBound=!0,this._unbindFromHead()),"html5"==this._headType&&(this._canPlay=!1),this._headIsBorrowed=!0,e}},{key:"returnHtml5Media",value:function(){this._headIsBorrowed=!1,this._headWasBound&&(this._headWasBound=!1,this._bindToHead()),this.fitVideo()}},{key:"getHtml5Audio",value:function(){var e=null;return void 0!==this._heads.sprite_video&&null!=this._heads.sprite_video?e=this._heads.sprite_video:(void 0!==this._heads.html5_audio&&null!=this._heads.html5_audio||(this._heads.html5_audio=this._createHead("html5","audio")),e=this._heads.html5_audio),e.$media}},{key:"borrowHtml5Audio",value:function(){var e=this.getHtml5Audio();return this._headBound&&!this._headLockForMainroll&&(this._headWasBound=!0,this._unbindFromHead()),"html5"==this._headType&&(this._canPlay=!1),this._headIsBorrowed=!0,e}},{key:"returnHtml5Audio",value:function(){this.returnHtml5Media()}},{key:"setFitMode",value:function(e){return!0!==this._opts.noSkinMode&&(this._fitMode=e,this.fitVideo(),!0)}},{key:"setRotation",value:function(e){return this._rotation=e,this.fitVideo(),!0}},{key:"fitVideo",value:function(e,t){var i;void 0!==e&&null!=e||(e=this._fitMode),void 0!==t&&null!=t||(t=this._rotation),(null===(i=this._detections)||void 0===i?void 0:i.isAndroid)&&(t="0deg"),null!=this._detections&&this._detections.isAndroidNative&&("FIT_SMART"!=e&&"FIT_STRETCH"!=e||(e="FIT_BOTH")),this._is360Video&&(e="FIT_OVERSCAN"),this._fullscreen&&this._clip&&this._clip.timelines&&this._clip.timelines.length>0&&(e="FIT_BOTH");var n=768,a=432,s=this.$element.find(".bb-content-layer");if(s.length>0&&(n=s.width(),a=s.height(),(Math.abs(n-s[0].offsetWidth)>1||Math.abs(a-s[0].offsetHeight)>1)&&(n=s[0].offsetWidth,a=s[0].offsetHeight)),this._opts.playoutData.width&&-1===this._opts.playoutData.width.indexOf("%")&&this._opts.playoutData.height&&-1===this._opts.playoutData.height.indexOf("%")&&"true"!==this._opts.playoutData.autoHeight&&!this.$element.hasClass("bb-fullscreen")&&(n=this._opts.playoutData.width,a=this._opts.playoutData.height),null!=this._detections&&this._detections.inIframe&&this._detections.ieVersion>8&&this._detections.isFullScreen()&&(n=window.innerWidth,a=window.innerHeight),this._headIsBorrowed)this.$element.find(".bb-content-layer .bb-fitme").css({width:Math.ceil(n)+"px",height:Math.ceil(a)+"px",position:"absolute",left:"0px",top:"0px"});else{var o,r,l,u,d,c,h=768,p=432,_=!0;if(null!=this._head&&this._head.get("mediaWidth")>0?(h=this._head.get("mediaWidth"),p=this._head.get("mediaHeight"),_=!1):null!=this._asset&&this._asset.width>0?(h=this._asset.width,p=this._asset.height,_=!1):(this._posterWidth>0||this._posterHeight>0)&&(h=this._posterWidth,p=this._posterHeight,_=!1),null!=this._detections&&!1!==this._detections.androidVersion&&parseFloat(this._detections.androidVersion)>=3&&null!=this._asset&&this._asset.width>0&&(h=this._asset.width,p=this._asset.height),"90deg"===t||"-90deg"===t||"270deg"===t||"-270deg"===t){var m=h;h=p,p=m}var f,v,g=a>0?n/a:1.778,y=(c=!_&&p>0?h/p:(null===(o=this._clip)||void 0===o?void 0:o.originalWidth)&&(null===(r=this._clip)||void 0===r?void 0:r.originalHeight)&&this._clip.originalHeight>0?this._clip.originalWidth/this._clip.originalHeight:(null===(l=this._clip)||void 0===l?void 0:l.width)&&(null===(u=this._clip)||void 0===u?void 0:u.height)&&this._clip.height>0?this._clip.width/this._clip.height:(null===(d=this._clip)||void 0===d?void 0:d.dar)?parseFloat(this._clip.dar):1.778)/g,b=g/c,k=1.33,w=1;switch(e){default:case"FIT_SMART":if(c>=g?y<1.67?y<k?(f=Math.ceil(a*(c/Math.sqrt(y))),v=Math.ceil(a)):(w=Math.sqrt(y)/Math.sqrt(k),f=Math.ceil(a/w*(c/Math.sqrt(k))),v=Math.ceil(a/w)):(f=Math.ceil(n),v=Math.ceil(n/c)):b<1.67?b<k?(f=Math.ceil(n),v=Math.ceil(n/(c/Math.sqrt(y)))):(w=Math.sqrt(b)/Math.sqrt(k),f=Math.ceil(n/w),v=Math.ceil(n/w/(c*Math.sqrt(k)))):(f=Math.ceil(a*c),v=Math.ceil(a)),this._clip&&this._clip.timelines&&this._clip.timelines.length>0){var $=f/v;f>Math.ceil(n)?(f=Math.ceil(n),v=Math.ceil(f/$)):v>Math.ceil(a)&&(v=Math.ceil(a),f=Math.ceil(v*$))}break;case"FIT_NATIVE":f=h,v=p;break;case"FIT_VERTICAL":f=Math.ceil(a*c),v=Math.ceil(a);break;case"FIT_HORIZONTAL":f=Math.ceil(n),v=Math.ceil(n/c);break;case"FIT_BOTH":c<=g?(f=Math.ceil(a*c),v=Math.ceil(a)):(f=Math.ceil(n),v=Math.ceil(n/c));break;case"FIT_STRETCH":f=Math.ceil(n),v=Math.ceil(a);break;case"FIT_OVERSCAN":c>=g?(f=Math.ceil(a*c),v=Math.ceil(a)):(f=Math.ceil(n),v=Math.ceil(n/c))}n=Math.ceil(n),a=Math.ceil(a);var C=Math.floor((n-f)/2),S=Math.floor((a-v)/2);if("90deg"===t||"-270deg"===t||"-90deg"===t||"270deg"===t){var P=Math.floor((n-v)/2),x=Math.floor((a-f)/2);this.$element.find(".bb-content-layer .bb-fitme").css({width:v+"px",height:f+"px",position:"absolute",left:"0",top:"0",transformOrigin:"center",transform:"translate("+P+"px, "+x+"px) rotate("+t+")"})}else this.$element.find(".bb-content-layer .bb-fitme").css({width:f+"px",height:v+"px",position:"absolute",left:C+"px",top:S+"px",transform:""});null!=this._head&&this._head.restretch(h,p)}}},{key:"updateCastSession",value:function(e){var t,i,n=e?null:null===(t=this._castContext)||void 0===t?void 0:t.getCurrentSession();n!==this._castSession&&(this._castSession=n,null===(i=this.$element)||void 0===i||i.triggerHandler("bb_castsessionchange",[{castSession:this._castSession}]))}},{key:"_requestCastSession",value:function(){var e=!1;if(this._castContext){var t=this,i=this._castContext.requestSession();i&&i.then&&i.then((function(){S.default("[MainHeadController] showCastTargetPicker success"),t.updateCastSession()})).catch((function(e){S.default("[MainHeadController] showCastTargetPicker error: "+e),t.updateCastSession("cancel"!==e)})),e=!0}return e}},{key:"showCastTargetPicker",value:function(e){var t=!1;switch(e){default:case"AirPlay":this._head&&(t=this._head.showAirPlayTargetPicker());break;case"ChromeCast":var i;"Html5HLSDash"===this._headType?null===(i=this._head)||void 0===i||i.showChromeCastTargetPicker():this._castContext&&(t=this._requestCastSession())}return t}},{key:"getCastSession",value:function(){return this._castSession||null}},{key:"getCastSource",value:function(){var e=!1;return this._asset&&this._asset.processedSrc&&(e=this._asset.processedSrc),e}},{key:"_handleGCastApiAvailable",value:function(e){e&&this._initChromeCast(),window.__onGCastApiAvailable=this.__onGCastApiAvailable,this.__onGCastApiAvailable=null,"function"==typeof window.__onGCastApiAvailable&&window.__onGCastApiAvailable(e)}},{key:"_initChromeCast",value:function(){try{this._castContext=window.cast.framework.CastContext.getInstance()}catch(e){S.default("[MainHeadController] _initChromeCast error: "+e)}if(this._castContext){try{this._castContext.setOptions({receiverApplicationId:window.chrome.cast.media.DEFAULT_MEDIA_RECEIVER_APP_ID})}catch(e){S.default("[MainHeadController] _initChromeCast error: "+e)}try{this._castContext.addEventListener(window.cast.framework.CastContextEventType.SESSION_STATE_CHANGED,this._onCastSessionChanged.bind(this))}catch(e){S.default("[MainHeadController] _initChromeCast error: "+e)}this.$element&&this.$element.triggerHandler("bb_flagchange",[{canChromeCast:!0}])}}},{key:"_onCastSessionChanged",value:function(e){var t,i=this._useChromeCast;if(null===(t=this.$element)||void 0===t||t.triggerHandler("bb_castsessionstatechange",[]),null!=e&&Object(e)instanceof window.cast.framework.SessionStateEventData)switch(e.sessionState){case window.cast.framework.SessionState.SESSION_STARTED:case window.cast.framework.SessionState.SESSION_RESUMED:this._useChromeCast=!0,this.updateCastSession();break;case window.cast.framework.SessionState.NO_SESSION:case window.cast.framework.SessionState.SESSION_ENDED:this._useChromeCast=!1,this.updateCastSession()}this._useChromeCast!==i&&("Html5HLSDash"===this._headType&&this._head?S.default("[MainHeadController] _onCastSessionChanged do nothing; leave it to Html5HLSDash head"):(S.default("[MainHeadController] _onCastSessionChanged going to switch asset"),this._playPending=this._playPending||this._playing,this._headType&&this._headType.match(/^Html5HLS/)&&this._selectAsset(),this._switchAsset()))}},{key:"_masterVolumeHandler",value:function(e){if(null!=e&&null!=e.volume&&e.volume>=0&&e.volume<=1&&(S.default("[MainHeadController:"+this._eventNS+"] _masterVolumeHandler going to set masterVolume to: "+e.volume),this._masterVolume=e.volume,this.$element.triggerHandler("bb_media_volume_change",[{volume:null,masterVolume:this._masterVolume,muted:null,masterMuted:this._masterMute}]),null!=this._head&&!this._headIsBorrowed))this._head.set("volume",this._headVolume*this._masterVolume)}},{key:"_masterMuteHandler",value:function(e){if(null!=e&&null!=e.muted&&(S.default("[MainHeadController:"+this._eventNS+"] _masterMuteHandler going to set masterMute to: "+e.muted),this._masterMute=e.muted,this.$element.triggerHandler("bb_media_volume_change",[{volume:null,masterVolume:this._masterVolume,muted:null,masterMuted:this._masterMute}]),null!=this._head&&!this._headIsBorrowed))this._head.set("muted",this._headMute||this._masterMute)}},{key:"_selectAsset",value:function(e){if(r.default(l.default(P.prototype),"_selectAsset",this).call(this,!0),this._asset&&!this._asset.faked&&(this._savedAsset=null),this._savedShortlist=null,null!=this._localStorage){var t=null,i=this._localStorage.get("userSelectedAudioTrackIsoCode"),n=!1;if((void 0===i||null==i)&&(i="main",null!=this._defaultAudioTrackPlayoutVal))if("Main"==this._defaultAudioTrackPlayoutVal)i="main";else if("First Available Audio Track"==this._defaultAudioTrackPlayoutVal)for(var a=0;a<this._shortlist.length;a++){if(void 0!==(c=this._shortlist[a])["language-isocode"]&&""!=c["language-isocode"]){i=c["language-isocode"];break}}else if("Default Language"==this._defaultAudioTrackPlayoutVal)for(a=0;a<this._shortlist.length;a++){if((c=this._shortlist[a]).isDefaultLanguage,1==c.isDefaultLanguage&&void 0!==c["language-isocode"]&&""!==u.default(c["language-isocode"])){i=c["language-isocode"];break}}t=new Array;for(a=0;a<this._shortlist.length;a++)this._shortlist[a]["language-isocode"]!=i&&("main"!=i||void 0!==this._shortlist[a]["language-isocode"]&&""!==u.default(this._shortlist[a]["language-isocode"]))||t.push(this._shortlist[a]);0==t.length?t=this._shortlist:n=!0;null!=this._asset&&this._asset.id;var s=this._userSelectedAsset,o=null;if(void 0!==s&&null!=s?o=s:1==n&&(o=this._asset),null!=o&&t)if(this._clip&&"audio"===this._clip.mediatype){if(!o.faked&&!isNaN(parseInt(o.bandwidth))){var d=-1;for(a=0;a<t.length;a++){var c=t[a];Number(c.bandwidth)<=Number(o.bandwidth)&&Number(c.bandwidth)>=Number(d)&&(this._asset=c,d=this._asset.bandwidth)}}}else if(!o.faked&&!isNaN(parseInt(o.height))){var h=-1;for(a=0;a<t.length;a++){c=t[a];Number(c.height)<=Number(o.height)&&Number(c.height)>=Number(h)&&(this._asset=c,h=this._asset.height)}}}this._asset&&this.fitVideo(),e||(this._dispatchEvent("bb_assets_changed",{assets:this._shortlist}),this._dispatchEvent("bb_asset_selected",{asset:this._asset}))}},{key:"_onPlayoutChanged",value:function(e,t){r.default(l.default(P.prototype),"_onPlayoutChanged",this).call(this,e,t),t&&void 0!==t.playoutData&&(void 0!==t.playoutData.autoPlay&&(this._autoPlay="true"==t.playoutData.autoPlay),void 0!==t.playoutData.defaultSubtitle&&(this._defaultSubtitle=t.playoutData.defaultSubtitle),void 0!==t.playoutData.defaultSubtitleOnlyIfMuted&&(this._defaultSubtitleOnlyIfMuted="true"===t.playoutData.defaultSubtitleOnlyIfMuted||!0===t.playoutData.defaultSubtitleOnlyIfMuted),void 0!==t.playoutData.defaultAudioTrack&&(this._defaultAudioTrackPlayoutVal=t.playoutData.defaultAudioTrack),"Show"!==t.playoutData.castButton||this._castContext||this._initCastButton(),void 0!==t.playoutData.mobileRotateOnFullScreenMismatch&&(this._mobileRotateOnFullScreenMismatch="true"===t.playoutData.mobileRotateOnFullScreenMismatch))}},{key:"_onPosterChanged",value:function(e,t){var i;null!=t&&(t.width||t.height)&&(this._posterWidth=t.width,this._posterHeight=t.height,"audio"!==(null===(i=this._clip)||void 0===i?void 0:i.mediatype)&&this._started||this.fitVideo())}},{key:"_onFullScreenMismatch",value:function(e,t){if(!(!t||void 0===t.fullScreenMismatch)&&t.fullScreenMismatch&&this._mobileRotateOnFullScreenMismatch&&this._isMobileDevice){var i=-window.orientation||90;this.setRotation(i+"deg")}else this.setRotation("0deg")}},{key:"_createHead",value:function(e,t,i){var n=null,a=$parcel$interopDefault($)('<div class="bb-head" style="position:absolute; width:100%; height:100%; top:0; left:0;"></div>');switch(isNaN(parseInt(i))||a.css({zIndex:parseInt(i)}),this.$element.find(".bb-content-layer .bb-head-layer").append(a),this._avoidMediaManager||a.attr("data-useMediaManager","true"),a.attr("data-retryOnPlayFailed","false"),a.attr("data-shouldPlayInline",this._shouldPlayInline?"true":"false"),e){case"youtube":"function"==typeof w&&(n=new w(a,this._opts));break;case"Html5Sprite360":var s;if(this._broker)if(this._broker.isPlayerComponentAvailable("Html5Sprite360Head"))n=new(this._broker.getLoadedPlayerComponent("Html5Sprite360Head"))(a,this._opts);else null===(s=this.$wrapper)||void 0===s||s.on("bb_component_loaded bb_component_failed",this._onComponentBound),this._broker.load("Html5Sprite360Head",15);break;case"Html5SpriteGL360":var o;if(this._broker)if(this._broker.isPlayerComponentAvailable("WebGL360Helper"))n=new _(a,this._opts);else null===(o=this.$wrapper)||void 0===o||o.on("bb_component_loaded bb_component_failed",this._onComponentBound),this._broker.load("WebGL360Helper:Html5SpriteGL360Head",15);break;case"Html5Seek":"function"==typeof p&&(n=new p(a,this._opts));break;case"Html5HLSVideoGL360":if(this._broker)if(this._broker.isPlayerComponentAvailable("Html5HLSHelper")&&this._broker.isPlayerComponentAvailable("WebGL360Helper"))n=new g(a,this._opts);else if(this._broker.isPlayerComponentAvailable("Html5HLSHelper")){if(!this._broker.isPlayerComponentAvailable("WebGL360Helper")){var r;null===(r=this.$wrapper)||void 0===r||r.on("bb_component_loaded bb_component_failed",this._onComponentBound),this._broker.load("WebGL360Helper:Html5HLSVideoGL360Head",15)}}else{var l;null===(l=this.$wrapper)||void 0===l||l.on("bb_component_loaded bb_component_failed",this._onComponentBound),this._broker.load("Html5HLSHelper:Html5HLSVideoGL360Head",15)}break;case"Html5HLSDashVideoGL360":if(this._broker)if(this._broker.isPlayerComponentAvailable("Html5HLSDashHelper")&&this._broker.isPlayerComponentAvailable("WebGL360Helper"))n=new k(a,this._opts);else if(this._broker.isPlayerComponentAvailable("Html5HLSDashHelper")){if(!this._broker.isPlayerComponentAvailable("WebGL360Helper")){var u;null===(u=this.$wrapper)||void 0===u||u.on("bb_component_loaded bb_component_failed",this._onComponentBound),this._broker.load("WebGL360Helper:".concat(e,"Head"),15)}}else{var C;null===(C=this.$wrapper)||void 0===C||C.on("bb_component_loaded bb_component_failed",this._onComponentBound),this._broker.load("Html5HLSDashHelper:".concat(e,"Head"),15)}break;case"Html5VideoGL360":var S;if(this._broker)if(this._broker.isPlayerComponentAvailable("WebGL360Helper"))n=new m(a,this._opts);else null===(S=this.$wrapper)||void 0===S||S.on("bb_component_loaded bb_component_failed",this._onComponentBound),this._broker.load("WebGL360Helper:Html5VideoGL360Head",15);break;case"Html5HLS":var P;if(this._broker)if("audio"!==t||this._isiOS)if(this._broker.isPlayerComponentAvailable("Html5HLSHelper"))n=new v(a,this._opts);else{var x;null===(x=this.$wrapper)||void 0===x||x.on("bb_component_loaded bb_component_failed",this._onComponentBound),this._broker.load("Html5HLSHelper:Html5HLSHead",15)}else if(this._broker.isPlayerComponentAvailable("Html5HLSHelper"))n=new f(a,this._opts);else null===(P=this.$wrapper)||void 0===P||P.on("bb_component_loaded bb_component_failed",this._onComponentBound),this._broker.load("Html5HLSHelper:Html5HLSHead",15);break;case"Html5HLSDash":var I;if(this._broker)if("audio"!==t||this._isiOS)if(this._broker.isPlayerComponentAvailable("Html5HLSDashHelper"))n=new b(a,this._opts);else{var T;null===(T=this.$wrapper)||void 0===T||T.on("bb_component_loaded bb_component_failed",this._onComponentBound),this._broker.load("Html5HLSDashHelper:".concat(e,"Head"),15)}else if(this._broker.isPlayerComponentAvailable("Html5HLSDashHelper"))n=new y(a,this._opts);else null===(I=this.$wrapper)||void 0===I||I.on("bb_component_loaded bb_component_failed",this._onComponentBound),this._broker.load("Html5HLSDashHelper:".concat(e,"Head"),15);break;case"ChromeCast":var D;if(window.cast&&window.cast.framework)n=new d(a,this._opts);else null===(D=this.$wrapper)||void 0===D||D.on("bb_component_loaded bb_component_failed",this._onComponentBound),this._broker&&this._broker.load("//www.gstatic.com/cv/js/sender/v1/cast_sender.js?loadCastFramework=1:ChromeCastHead",15);break;case"html5":"image"==t||"interactive"==t?"function"==typeof h&&(n=new h(a,this._opts)):"audio"==t?"function"==typeof c&&(n=new c(a,this._opts)):"function"==typeof A.default&&(n=new A.default(a,this._opts))}return null==n&&a.remove(),n}},{key:"_onCommercialHeadSelected",value:function(e,t){void 0!==t&&null!=t&&(this._unbindFromHead(),void 0!==t.headType&&(this._headType=t.headType),void 0!==t.head&&(this._head=t.head),null!=this.$element&&this.$element.triggerHandler("bb_head_selected",[{head:this._head,headType:this._headType}]),this._bindToHead())}},{key:"_onSubtitleSet",value:function(e,t){if("textTracks"===(null==t?void 0:t.hint)&&this._head){var i,n=this._head.set("textTrackId",t.subtitleId);null===(i=this.$element)||void 0===i||i.trigger("bb_subtitle_changed",[{subtitleId:n}])}}},{key:"_selectHead",value:function(){r.default(l.default(P.prototype),"_selectHead",this).call(this),S.default("[MainHeadController] selectHead "+this._headType),null!=this.$element&&(this.$element.triggerHandler("bb_head_selected",[{head:this._head,headType:this._headType}]),this._head&&this.$element.triggerHandler("bb_flagchange",[{canControlVolume:this._head.get("canControlVolume"),canControlPlaybackRate:this._head.get("canControlPlaybackRate")}]))}},{key:"_dispatchEvent",value:function(e,t){void 0!==t?this.$element.triggerHandler(e,[t]):this.$element.triggerHandler(e)}},{key:"_processTracksQualities",value:function(){var e,t,i,n=null===(e=this._head)||void 0===e?void 0:e.get("isLive");S.default("[MainHeadController] _processTracksQualities isLive: ".concat(n)),this.$element.triggerHandler("bb_flagchange",[{isLive:n}]);var a=null===(t=this._head)||void 0===t?void 0:t.get("textTracks"),s=null===(i=this._head)||void 0===i?void 0:i.get("audioTracks"),o=this._head?this._head.get("qualities"):null;if(o&&o.length>1&&this._asset&&!this._asset.faked){this._savedAsset||(this._savedAsset=this._asset),this._savedShortlist||(this._savedShortlist=this._shortlist),this._prevAsset=this._asset,this._asset=null,this._shortlist=[];var r=this;o.forEach((function(e,t){var i={faked:!0,id:e.level,src:r._savedAsset.src,processedSrc:r._savedAsset.processedSrc+"#q="+e.level,mediatype:r._savedAsset.mediatype,"language-id":r._savedAsset["language-id"],"language-name":r._savedAsset["language-name"],"language-isocode":r._savedAsset["language-isocode"],width:e.width,height:e.height,bandwidth:e.bandwidth};i.title=r._assetTitle(i),(e.selected||1==o.length)&&(r._asset=i),r._shortlist.push(i)})),this._asset?(this._dispatchEvent("bb_assets_changed",{assets:this._shortlist,textTracks:a,audioTracks:s}),this._setupTextTracks(a),this._prevAsset&&this._asset.id===this._prevAsset.id||this._dispatchEvent("bb_asset_selected",{asset:this._asset})):(this._asset=this._savedAsset,this._shortlist=this._savedShortlist)}else(a&&a.length||s&&s.length)&&(this._dispatchEvent("bb_assets_changed",{assets:this._shortlist,textTracks:a,audioTracks:s}),this._setupTextTracks(a))}},{key:"_setupTextTracks",value:function(e){if(e&&e.length>0){var t;if(null!=this._currentTextTrackIsoCode){var i=this._currentTextTrackIsoCode;if(this._setTextTrackIsoCode(i,e))return}if(this._localStorage){var n=this._localStorage.get("userSelectedTextTrackIsoCode");if(this._setTextTrackIsoCode(n,e))return}var a=(null===(t=this._clip)||void 0===t?void 0:t.subtitles)||e;if(this._defaultSubtitleOnlyIfMuted&&this._muted||!this._defaultSubtitleOnlyIfMuted)if("None"===this._defaultSubtitle)this._setTextTrackIsoCode("dis",e);else if("Default Language"===this._defaultSubtitle){var s=a.find((function(e){return"true"===(null==e?void 0:e.default)}));s&&this._setTextTrackIsoCode(s.isocode,e)}else{var o,r,l=(null===(o=this._clip)||void 0===o||null===(r=o.subtitles_obj)||void 0===r?void 0:r["#0"])||a[0];l&&this._setTextTrackIsoCode(l.isocode,e)}}}},{key:"_setTextTrackIsoCode",value:function(e,t){var i=!1;if(null!=e)if("dis"===e)this._currentTextTrackIsoCode="dis",this._setTextTrackId("-1"),i=!0;else{var n=null==t?void 0:t.find((function(t){return(null==t?void 0:t.isocode)===e}));n&&(this._currentTextTrackIsoCode=n.isocode,this._setTextTrackId(n.id),i=!0)}return i}},{key:"_setTextTrackId",value:function(e){var t,i=this._head.set("textTrackId",e);null===(t=this.$element)||void 0===t||t.trigger("bb_subtitle_changed",[{subtitleId:i}])}},{key:"_onHeadEvent",value:function(e,t){if(e.stopPropagation(),null!=this.$element)switch(e.type){case"couldplay":var i;if(!this._couldPlay)if(S.default("[MainHeadController] couldplay event, this._playPending = "+this._playPending),this._couldPlay=!0,this.$element.triggerHandler("bb_media_couldplay"),null!=this._seekPosition&&this._head&&(this._savedSeekPosition=this._seekPosition,this._seekPosition=null,this._head.set("currentTime",this._savedSeekPosition)),this._playPending)null===(i=this._head)||void 0===i||i.set("playbackRate",this._playbackRate),this.play();this._processTracksQualities();break;case"loadstart":this._playing=!1,this._couldPlay=!1,this._canPlay=!1,this.$element.triggerHandler("bb_media_loadstart");break;case"loadedmetadata":this.$element.triggerHandler("bb_media_loadedmetadata");break;case"loadeddata":this.fitVideo(),this.$element.triggerHandler("bb_media_loadeddata"),"html5"!==this._headType||null==this._detections||this._detections.canAutoPlay||this._handleCanPlay();break;case"canplay":this._handleCanPlay(),this._processTracksQualities();break;case"play":this._playPending=!0,this.$element.triggerHandler("bb_media_play");break;case"playing":var n;this._isSafari&&(null===(n=this._head)||void 0===n?void 0:n.get("paused"))||(this._playPending=!1,this._handleCanPlay(),this._started?this.$element.triggerHandler("bb_media_resumed"):(this._started=!0,this.$element.triggerHandler("bb_media_started")),this._playing=!0,this.$element.triggerHandler("bb_media_playing"),this.fitVideo());break;case"pause":this._playing=!1,this.$element.triggerHandler("bb_media_paused");break;case"waiting":this.$element.triggerHandler("bb_media_waiting");break;case"stalled":this.$element.triggerHandler("bb_media_stalled");break;case"abort":this._playing=!1;break;case"adSkipped":case"ended":this._couldPlay=!1,this._playing=!1,this._started&&(this._started=!1,this.$element.triggerHandler("bb_media_finished"));break;case"error":this._couldPlay=!1;var a=!1,s="no head, no glory";if(null!=this._head){var o=this._head.get("error");if(null!=o){switch(o.code){case 1:s="MEDIA_ERR_ABORTED";break;case 2:s="MEDIA_ERR_NETWORK";break;case 3:s="MEDIA_ERR_DECODE";break;case 4:s="MEDIA_ERR_SRC_NOT_SUPPORTED",this._headType&&this._headType.match(/^Html5HLS/)&&(a=!0);break;default:s="unknown error code: "+o.code+", msg: "+o.error}s+=", src: "+this._head.get("currentSrc")}else s="no error specified"}if(this._headType.match(/^Html5HLS/)&&null===o)this._switchAsset();else if(!a&&null!=this._clip&&"mainroll"!=this._clip.mediatype){var r=null;this._asset&&(this._assetIdsToAvoid["#"+this._asset.id]=!0,r=this._asset.id),this._selectAsset(),this._asset&&this._asset.id!=r?(this.$element.triggerHandler("bb_warning",[{msg:s}]),this._switchAsset()):this.$element.triggerHandler("bb_error",[{msg:s}])}break;case"timeupdate":var l=null;null!=this._head&&(void 0!==t&&null!=t&&void 0!==t.currentTime&&(l=t.currentTime),null==l&&(l=this._head.get("currentTime")),this._lastCurrentTime=l),null==this._savedSeekPosition&&this.$element.triggerHandler("bb_media_timeupdate",[{currentTime:l}]);break;case"progress":this.$element.triggerHandler("bb_media_progress");break;case"seeking":var u;this.$element.triggerHandler("bb_media_seeking",[{currentTime:null===(u=this._head)||void 0===u?void 0:u.get("currentTime")}]);break;case"seeked":var d=null;null!=this._savedSeekPosition?(d=this._savedSeekPosition,this._savedSeekPosition=null):null!=this._head&&(d=this._head.get("currentTime")),this.$element.triggerHandler("bb_media_seeked",[{seekedPosition:d}]);break;case"volumechange":var c=null,h=null;null!=this._head&&(c=this._masterVolume>0?this._head.get("volume")/this._masterVolume:this._headVolume,h=this._masterMute?this._headMute:this._head.get("muted")),this.$element.triggerHandler("bb_media_volume_change",[{volume:c,masterVolume:this._masterVolume,muted:h,masterMuted:this._masterMute}]);break;case"durationchange":var p=null;null!=this._head&&(p=this._head.get("duration")),this.$element.triggerHandler("bb_media_duration_change",[{duration:p}]);break;case"ratechange":this.$element.triggerHandler("bb_media_playback_rate_change",[{rate:this.get("playbackRate")}]);break;case"webkitplaybacktargetavailabilitychanged":var _,m=e.availability||(null===(_=e.originalEvent)||void 0===_?void 0:_.availability);this.$element&&this.$element.triggerHandler("bb_playbacktargetavailabilitychanged",[{availability:m}])}}},{key:"_handleCanPlay",value:function(){var e;this._canPlay||(this._canPlay=!0,this.$element.triggerHandler("bb_media_canplay"),null!=this._seekPosition&&this._head&&(this._savedSeekPosition=this._seekPosition,this._seekPosition=null,this._head.set("currentTime",this._savedSeekPosition)),!this._couldPlay&&this._playPending&&(null===(e=this._head)||void 0===e||e.set("playbackRate",this._playbackRate),this.play()))}}]),P}(P.default)})),parcelRequire.register("aVMO5",(function(e,t){$parcel$export(e.exports,"default",(function(){return k})),parcelRequire("lDGnc");var i=parcelRequire("7CnHN"),n=parcelRequire("eamhc");parcelRequire("6JR1F");var a,s,o,r,l,u,d,c,h,p,_,m,f,v=parcelRequire("hGJI5"),g=parcelRequire("e06N2"),y=parcelRequire("3DsR2"),b=parcelRequire("cYwG5");a=parcelRequire("fEu1u").default,s=parcelRequire("4Mmd4").default,o=parcelRequire("7O3yG").default,r=parcelRequire("czAOs").default,l=parcelRequire("5CbwX").default,u=parcelRequire("9DD6a").default,d=parcelRequire("rbR3F").default,c=parcelRequire("eXAFn").default,h=parcelRequire("ifaZq").default,p=parcelRequire("hTWVc").default,_=parcelRequire("1hNaQ").default,m=parcelRequire("ifaZq").default,f=parcelRequire("jcztY").default;var k=function(){"use strict";function e(t,n){var a,s;if(i.default(this,e),this.$element=null,this.$wrapper=null,this._opts=n,this._eventNS="headcontroller"+String(Math.random()).replace(".",""),this._avoidMediaManager="true"===this._opts.publicationData.avoidMediaManager,this._secureContent=this._opts.publicationData.secureContent||"",this._avoidHLSViaShaka="true"===this._opts.publicationData.avoidHLSViaShaka,this._avoidPreload=!1,this._fitMode=null!=this._opts&&void 0!==this._opts.playoutData&&void 0!==this._opts.playoutData.fitmode?this._opts.playoutData.fitmode:"FIT_SMART",this._disableMediaSourceAdapter="true"===(null===(a=this._opts)||void 0===a||null===(s=a.playoutData)||void 0===s?void 0:s.disableMediaSourceAdapter),this._masterVolume=.7,this._masterMute=!1,this._headVolume=1,this._headMute=!1,this._playbackRate=1,this._clip=null,this._asset=null,this._asset_ipod=null,this._detections=null,this._broker=null,this._sc=null,this._headType="none",this._heads={},this._head=null,this._headBound=!1,this._headTypesToAvoid={},this._assetIdsToAvoid={},this._shortlist=[],this._couldPlay=!1,this._canPlay=!1,this._playPending=!1,this._seekPosition=null,this._savedSeekPosition=null,this._playing=!1,this._resizingEnabled=!1,this._isiOS=!1,this._isChrome=!1,this._isChromeDesktop=!1,this._couldPlayVideoGL360=!1,this._shouldPlayInline=!1,this._isVPAID=!1,this._is360Video=!1,this._onPlayoutChangedBound=this._onPlayoutChanged.bind(this),this._onContentResizedBound=this._onContentResized.bind(this),this._onComponentBound=this._onComponent.bind(this),this._onHeadEventBound=this._onHeadEvent.bind(this),void 0!==t&&null!=t){this.$element=t,this._isVPAID=!!this.$element.data("isVPAID"),this.$wrapper=this.$element.closest(".bb_wrapper"),void 0!==y.default.getService(this._opts.playerAliasOrId).getInstance("Detections")&&(this._detections=y.default.getService(this._opts.playerAliasOrId).getInstance("Detections")),void 0!==this._detections&&null!=this._detections&&(this._isiOS=this._detections.isiOS,this._isSafari=this._detections.isSafari,this._isChrome=this._detections.isChrome,this._isChromeDesktop=this._detections.isChrome&&!this._detections.isMobileDevice,this._avoidPreload=this._detections.avoidPreload,this._couldPlayVideoGL360=this._isChromeDesktop||this._detections.isAndroid||this._detections.isFirefox||this._detections.isEdge||this._detections.isSafari||this._detections.isFacebookApp||this._detections.isInstagram),void 0!==y.default.getService(this._opts.playerAliasOrId).getInstance("ComponentBroker")&&(this._broker=y.default.getService(this._opts.playerAliasOrId).getInstance("ComponentBroker")),this._sc=y.default.getService(this._opts.playerAliasOrId).getInstance("SoundController"),void 0!==this._sc&&null!=this._sc&&(this._masterVolume=this._sc.getVolume(),this._masterMute=this._sc.getMuted(),this._sc.registerMasterVolumeHandler(this._eventNS,this._masterVolumeHandler.bind(this)),this._sc.registerMasterMuteHandler(this._eventNS,this._masterMuteHandler.bind(this)));var o="true"===n.playoutData.autoMute||this._headMute||this._masterMute;null==this._opts||o&&this._detections&&this._detections.canAutoPlayMuted||void 0===this._opts.playoutData||null==this._opts.playoutData||!(void 0!==this._opts.playoutData.autoPlay&&"true"==this._opts.playoutData.autoPlay||void 0!==this._opts.playoutData.interactivity_inView&&"none"!=this._opts.playoutData.interactivity_inView)?null!=this._opts&&(this._opts._loadOnTouch=!1):null!=this._opts&&(this._opts._loadOnTouch=!0),this.enableResizing(),this.$element.on("bb_playout_changed",this._onPlayoutChangedBound)}}return n.default(e,[{key:"exit",value:function(){for(var e in this.reset(),this._heads)if(null!=this._heads[e]){var t=this._heads[e].$element;this._heads[e]=this._heads[e].exit(),t.remove()}var i;(this._heads={},null!=this.$element)&&(this.disableResizing(),this.$element.off("bb_playout_changed",this._onPlayoutChangedBound),null===(i=this.$wrapper)||void 0===i||i.off("bb_component_loaded bb_component_failed",this._onComponentBound));return this._sc&&(this._sc.unregisterMasterVolumeHandler(this._eventNS),this._sc.unregisterMasterMuteHandler(this._eventNS)),this._localStorage=null,null}},{key:"reset",value:function(){null!=this._head&&(this._head.reset(),this._unbindFromHead(),this._headVolume=1,this._headMute=!1,this._head=null),this._headTypesToAvoid={},this._assetIdsToAvoid={},this._couldPlay=!1,this._canPlay=!1,this._playing=!1,this._clip=null,this._asset=null,this._asset_ipod=null,this._playPending=!1,this._seekPosition=null,this._fitMode=null!=this._opts&&void 0!==this._opts.playoutData&&this._opts.playoutData.fitmode?this._opts.playoutData.fitmode:"FIT_SMART"}},{key:"enableResizing",value:function(){null==this.$element||this._resizingEnabled||(this._resizingEnabled=!0,this.$element.on("bb_resized",this._onContentResizedBound),this.$element.on("bb_content_resized",this._onContentResizedBound),this.$element.on("bb_fullscreen_change",this._onContentResizedBound))}},{key:"disableResizing",value:function(){null!=this.$element&&this._resizingEnabled&&(this._resizingEnabled=!1,this.$element.off("bb_resized",this._onContentResizedBound),this.$element.off("bb_content_resized",this._onContentResizedBound),this.$element.off("bb_fullscreen_change",this._onContentResizedBound))}},{key:"load",value:function(e,t){var i=!1;return this.reset(),t&&(this._seekPosition=t),void 0!==e&&null!=e?(this._clip=e,void 0!==this._clip.length&&this._dispatchEvent("bb_head_duration_change",{duration:this._clip.length}),this._clip.fitmode&&"FIT_NONE"!=this._clip.fitmode&&(this._fitMode=this._clip.fitmode),this._selectAsset(),i=this._switchAsset()):i=!0,i}},{key:"nativeFullscreen",value:function(){return!(!this._head||!this._head.mediaRequestFullscreen)&&this._head.mediaRequestFullscreen()}},{key:"play",value:function(e){if(g.default("[HeadController] play user action: "+e),this._playPending=!0,null!=this._head){if(this._head.toFront(),this._couldPlay||this._canPlay||e)return this._head.play(e);this._head.load(e)}return!1}},{key:"pause",value:function(){return this._playPending=!1,null!=this._head&&this._head.pause()}},{key:"switchAsset",value:function(e){var t=!1;if(null!=this._asset&&this._asset.id==e)return!0;var i=null;if(null!=this._shortlist)for(var n=0;n<this._shortlist.length;n++){var a=this._shortlist[n];if(null!=a&&a.id==e){i=a;break}}return null!=i?(null===this._seekPosition&&this._head&&!this._head.get("isLive")&&(this._seekPosition=this._head.get("currentTime")),this._playPending=this._playPending||this._playing,this._asset=i,this._dispatchEvent("bb_asset_selected",{asset:this._asset}),t=this._switchAsset()):this._dispatchEvent("bb_warning",{msg:"asset id not found"}),t}},{key:"_switchAsset",value:function(e,t){var i=!1;if(null!=this._asset)if(t?this._asset.processedSrc.match(/#t=[^;&]*/)?this._asset.processedSrc.replace(/#t=[^;&]*/,"#t="+t):this._asset.processedSrc+="#t="+t:this._asset.processedSrc.match(/#t=[^;&]*/)&&this._asset.processedSrc.replace(/#t=[^;&]*/,""),this._selectHead(),null!=this._head){var n,a,s,o,r=this._asset.processedSrc,l=!0===(null===(n=this._clip)||void 0===n?void 0:n.exclusive)||"true"===(null===(a=this._clip)||void 0===a?void 0:a.exclusive),u="exclusive"===this._secureContent&&l||"all"===this._secureContent;this._head.set("enforceDRM",u);var d=!0===(null===(s=this._clip)||void 0===s?void 0:s.isDVR)||"true"===(null===(o=this._clip)||void 0===o?void 0:o.isDVR)?10800:NaN;this._head.set("availabilityWindow",d),i=this._head.set("src",r,e);var c,h=this._avoidPreload;if(!h)this._preloadedOnce?(null===(c=this._headType)||void 0===c?void 0:c.match(/HLS/))&&(h=!0):this._preloadedOnce=!0;h||this._head.load()}else this._broker&&this._broker.isLoading(this._headType+"Head")||this._dispatchEvent("bb_error",{msg:"no head"});else this._dispatchEvent("bb_error",{msg:"no asset"});return i}},{key:"switchAudioTrack",value:function(e){return!!this._head&&this._head.set("audioTrackId",e)}},{key:"_onComponent",value:function(e,t){t.component===this._headType+"Head"&&(this.$wrapper.off("bb_component_loaded bb_component_failed",this._onComponentBound),this._switchAsset())}},{key:"set",value:function(e,t){switch(e){case"volume":this._headVolume=t,null!=this._head&&this._head.set("volume",this._headVolume*this._masterVolume);break;case"muted":this._headMute=t,null!=this._head&&this._head.set("muted",this._headMute||this._masterMute);break;case"currentTime":isNaN(parseFloat(t))||(this._seekPosition=t,null!=this._head&&(this._canPlay||this._playing)&&null!=this._seekPosition&&(this._savedSeekPosition=this._seekPosition,this._seekPosition=null,this._head.set("currentTime",this._savedSeekPosition)));break;case"playbackRate":var i=!1;return isNaN(parseFloat(t))||(this._playbackRate=t,i=!0,this._head&&(i=this._head.set("playbackRate",this._playbackRate))),i;default:if(null!=this._head)return this._head.set(e,t)}return null}},{key:"get",value:function(e){switch(e){case"bitrate":if(null!=this._asset)return this._asset.bandwidth;break;case"volume":return null!=this._head&&this._masterVolume>0?this._head.get("volume")/this._masterVolume:this._headVolume;case"muted":return null!=this._head?this._masterMute?this._headMute:this._head.get("muted"):this._headMute;case"duration":if(null!=this._head){if(0!=this._head.get("duration"))return this._head.get("duration");if(null!=this._clip&&void 0!==this._clip.length)return Number(this._clip.length)}else if(null!=this._clip&&void 0!==this._clip.length)return Number(this._clip.length);break;case"playbackRate":return this._head?this._head.get("playbackRate"):this._playbackRate;default:if(null!=this._head)return this._head.get(e)}return null}},{key:"getCurrentHeadType",value:function(){return this._headType}},{key:"getHeadByType",value:function(e,t,i){var n,a;if(void 0===t&&(t=null!=this._clip?this._clip.mediatype:"video"),"html5ima"===e&&((null===(n=this._opts.adSchedulingData)||void 0===n?void 0:n.scheduleId)||(null===(a=this._opts.adSchedulingData)||void 0===a?void 0:a.scheduleCode))){var s=this._heads[e+"_"+t];this._heads[e+"_"+t]=null==s?void 0:s.exit()}return void 0!==this._heads[e+"_"+t]&&null!=this._heads[e+"_"+t]||(this._heads[e+"_"+t]=this._createHead(e,t,i)),this._heads[e+"_"+t]}},{key:"getAssets",value:function(e){return this._shortlist}},{key:"fitVideo",value:function(){var e=!1;null!=this._detections&&this._detections.isAndroidNative&&(e=!0);var t=768,i=432;null!=this._head&&this._head.get("mediaWidth")>0?(t=this._head.get("mediaWidth"),i=this._head.get("mediaHeight")):null!=this._asset&&this._asset.width>0&&(t=this._asset.width,i=this._asset.height),null!=this._detections&&!1!==this._detections.androidVersion&&parseFloat(this._detections.androidVersion)>=3&&null!=this._asset&&(t=this._asset.width,i=this._asset.height),null==this._head||e||this._head.restretch(t,i)}},{key:"showCastTargetPicker",value:function(e){}},{key:"_onPlayoutChanged",value:function(e,t){t&&void 0!==t.playoutData&&(void 0!==t.playoutData.fitmode&&(this._fitMode=t.playoutData.fitmode,this._clip&&this._clip.fitmode&&"FIT_NONE"!==this._clip.fitmode&&(this._fitMode=this._clip.fitmode)),void 0!==t.playoutData.disableMediaSourceAdapter&&(this._disableMediaSourceAdapter="true"===t.playoutData.disableMediaSourceAdapter))}},{key:"_onCommercialHeadSelected",value:function(e,t){}},{key:"_onContentResized",value:function(e,t){e.stopPropagation(),this.fitVideo()}},{key:"_onMasterVolumeSet",value:function(e,t){this._masterVolumeHandler(t)}},{key:"_masterVolumeHandler",value:function(e){if(e&&void 0!==e.volume&&null!=e.volume&&e.volume>=0&&e.volume<=1&&(g.default("[HeadController:"+this._eventNS+"] _masterVolumeHandler going to set masterVolume to: "+e.volume),this._masterVolume=e.volume,this.$element.triggerHandler("bb_head_volume_change",[{volume:null,masterVolume:this._masterVolume,muted:null,masterMuted:this._masterMute}]),null!=this._head))this._head.set("volume",this._headVolume*this._masterVolume)}},{key:"_onMasterVolumeMute",value:function(e,t){this._masterMuteHandler(t)}},{key:"_masterMuteHandler",value:function(e){if(e&&void 0!==e.muted&&null!=e.muted&&(g.default("[HeadController:"+this._eventNS+"] _masterMuteHandler going to set masterMute to: "+e.muted),this._masterMute=e.muted,this.$element.triggerHandler("bb_head_volume_change",[{volume:null,masterVolume:this._masterVolume,muted:null,masterMuted:this._masterMute}]),null!=this._head))this._head.set("muted",this._headMute||this._masterMute)}},{key:"_selectHead",value:function(){var e=this._headType;this._determineHeadType(),this._headType!=e&&(null!=this._head&&(this._headVolume=this._masterVolume>0?this._head.get("volume")/this._masterVolume:1,this._headMute=!this._masterMute&&this._head.get("muted"),this._playbackRate=this._head.get("playbackRate")||1,this._head.reset(),this._unbindFromHead(),this._head=null),this._couldPlay=!1,this._canPlay=!1,this._playing=!1),this._head=this.getHeadByType(this._headType),this._bindToHead(),null!=this._head&&(this._head.set("muted",this._headMute||this._masterMute),this._head.set("volume",this._headVolume*this._masterVolume),this._head.set("playbackRate",this._playbackRate),void 0!==this._headControls&&this._head.set("controls",this._headControls))}},{key:"_selectAsset",value:function(t){if(this._asset=null,this._asset_ipod=null,this._shortlist=[],null!=this._clip){var i,n;switch(this._clip.mediatype){case"image":(u={mediatype:"image/"+this._clip.src.substr(this._clip.src.lastIndexOf(".")).toLowerCase(),id:this._clip.id,src:this._clip.src,bandwidth:-1}).processedSrc=this._preProcessSrc(u.src,this._clip.mediaassetpath),u.title="#1",this._shortlist.push(u);break;case"interactive":var a=this._opts.publicationData.server+"/mediaclip/"+this._clip.id+"/pthumbnail/default/default.png",s={mediatype:"image/png",id:this._clip.id,src:a,bandwidth:-2};s.processedSrc=this._preProcessSrc(s.src,this._clip.mediaassetpath),s.title="#1",this._shortlist.push(s);break;case"mainroll":this._shouldPlayInline=!0;break;default:case"video":this._is360Video="true"===this._clip.cubemapVideo||!0===this._clip.cubemapVideo||"360video"===this._clip.subtype||!0===this._clip.isThreeSixtyVideo||"true"===this._clip.isThreeSixtyVideo;case"audio":var o;if(this._shouldPlayInline="true"==this._clip.shouldPlayInline,void 0!==this._clip.timelines&&null!=this._clip.timelines&&this._clip.timelines.length>=1&&(this._shouldPlayInline=!0),this._is360Video&&(this._shouldPlayInline=!0),this._useYouTubeHead=!1,"true"===this._opts.playoutData.youTubeHosting){if(void 0!==this._clip.exports&&null!=this._clip.exports&&this._clip.exports.length>0)for(var r=0;r<this._clip.exports.length;r++)if(void 0!==this._clip.exports[r].exportchannel&&this._clip.exports[r].exportchannel.exportsystemname.match(/^youtube/i)&&void 0!==this._clip.exports[r].externalid){(u={mediatype:"YOUTUBE",id:this._clip.id,src:this._clip.exports[r].externalid,bandwidth:1e3}).processedSrc=u.src,u.title="auto",this._shortlist.push(u)}var l;if(0==this._shortlist.length&&this._clip.sourceid&&(null!=(l=this._clip.sourceid.match(/[0-9]+yt-.*v=([^&]+)/))||null!=(l=this._clip.sourceid.match(/[0-9]+yt-.*embed\/([^&]+)/))||null!=(l=this._clip.sourceid.match(/imported-from\:.*youtube.*v=([^&]+)/))||null!=(l=this._clip.sourceid.match(/imported-from\:.*youtu\.be\/([^&]+)/)))&&l.length>1)(u={mediatype:"YOUTUBE",id:this._clip.id,src:l[1],bandwidth:1e3}).processedSrc=u.src,u.title="auto",this._shortlist.push(u);if(this._shortlist.length>0&&null!=this._clip.assets)for(var r=0;r<this._clip.assets.length;r++){(u=this._clip.assets[r])&&u.mediatype&&u.mediatype.match(/^IMAGESEQUENCE/i)&&(u.processedSrc=this._preProcessSrc(u.src,this._clip.mediaassetpath),u.title=this._assetTitle(u),this._shortlist.push(u))}}if(0!=this._shortlist.length);else if((null===(o=this._clip.assets)||void 0===o?void 0:o.length)>0)for(r=0;r<this._clip.assets.length;r++){var u;(u=this._clip.assets[r])&&!this._doNotSelect(u)&&(u.processedSrc=this._preProcessSrc(u.src,this._clip.mediaassetpath),u.title=this._assetTitle(u),this._shortlist.push(u),u.mediatype&&u.mediatype.match(/^MP4_IPOD/i)&&(this._asset_ipod=u))}else{var d,c,h=new Date,p=new Date(null===(d=this._clip)||void 0===d?void 0:d.softEmbargo);(null===(c=this._clip)||void 0===c?void 0:c.softEmbargo)&&p>h||this._dispatchEvent("bb_error",{msg:"no assets"})}}if(null!=this._detections){if(!this._detections.supportsMediaTag)for(r=this._shortlist.length-1;r>=0;r--)this._needsMediaTag(this._shortlist[r])&&this._shortlist.splice(r,1);if(!this._detections.isiOS)for(r=this._shortlist.length-1;r>=0;r--)this._needsIOS(this._shortlist[r])&&this._shortlist.splice(r,1);if(!this._detections.canPlayType("video/webm"))for(r=this._shortlist.length-1;r>=0;r--)this._needsWebmSupport(this._shortlist[r])&&this._shortlist.splice(r,1);for(r=this._shortlist.length-1;r>=0;r--)this._needsDotAACSupport(this._shortlist[r])&&this._shortlist.splice(r,1);if(!this._detections.canPlayType("audio/aac"))for(r=this._shortlist.length-1;r>=0;r--)this._needsHtml5AACSupport(this._shortlist[r])&&this._shortlist.splice(r,1);if(this._detections.isiOS&&this._detections.iOSVersion>0&&this._detections.iOSVersion<5)for(r=this._shortlist.length-1;r>=0;r--)this._supportedByIOSVersionLessThan5(this._shortlist[r])||this._shortlist.splice(r,1);if(this._is360Video)if(this._couldPlayVideoGL360&&this._detections.hasWebGL)for(r=this._shortlist.length-1;r>=0;r--)this._needsSprite(this._shortlist[r])&&this._shortlist.splice(r,1);else for(r=this._shortlist.length-1;r>=0;r--)this._needsSprite(this._shortlist[r])||this._shortlist.splice(r,1);else{if((!this._detections.canPlayInline||(this._detections.isiPad||this._detections.isiPhone)&&this._isVPAID)&&this._shouldPlayInline)for(r=this._shortlist.length-1;r>=0;r--)this._needsHtml5Seek(this._shortlist[r])||this._shortlist.splice(r,1);else if(!this._opts.playoutData||"true"!=this._opts.playoutData.allowImageSequence)for(r=this._shortlist.length-1;r>=0;r--)this._needsHtml5Seek(this._shortlist[r])&&this._shortlist.splice(r,1);for(r=this._shortlist.length-1;r>=0;r--)this._needsSprite(this._shortlist[r])&&this._shortlist.splice(r,1)}for(r=this._shortlist.length-1;r>=0;r--)this._canPlayAsset(this._shortlist[r])||this._shortlist.splice(r,1)}0==this._shortlist.length&&null!=this._asset_ipod&&this._shortlist.push(this._asset_ipod),(null===(i=this._detections)||void 0===i?void 0:i.isSafari)||null===(n=this._detections)||void 0===n||n.isiOS;var _=this;if(this._shortlist.some((function(e){return _._needsHLSSupport(e)})))for(r=this._shortlist.length-1;r>=0;r--)this._needsMPDSupport(this._shortlist[r])&&this._shortlist.splice(r,1);this._shortlist.sort(e.sortShortList),this._shortlist&&this._shortlist.length&&(this._asset=this._shortlist[this._shortlist.length-1])}t||(this._dispatchEvent("bb_assets_changed",{assets:this._shortlist}),this._dispatchEvent("bb_asset_selected",{asset:this._asset}))}},{key:"_assetTitle",value:function(){var e,t,i,n,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(a.title)return a.title;var s="",o="video";switch(this._clip&&void 0!==this._clip.mediatype&&(o=this._clip.mediatype),o){case"video":s=a.height>0?(120*Math.ceil(a.height/120)).toString()+"p":"",-1!==a.id&&"auto"!==a.height||(s="auto"+(s.length?" ("+s+")":""));break;case"audio":s=a.bandwidth>0?a.bandwidth.toString()+" kbps":"",-1!==a.id&&"auto"!==a.bandwidth||(s="auto"+(s.length?" ("+s+")":""))}return""===s&&((null===(e=a.mediatype)||void 0===e?void 0:e.match(/HLS$/i))||(null===(t=a.src)||void 0===t?void 0:t.match(/\.m3u8(\?.*|&.*|)$/i))||(null===(i=a.mediatype)||void 0===i?void 0:i.match(/MPD$/i))||(null===(n=a.src)||void 0===n?void 0:n.match(/\.mpd(\?.*|&.*|)$/i)))&&(s="auto"),s}},{key:"_doNotSelect",value:function(e){if(e&&e.id&&this._assetIdsToAvoid["#"+e.id])return!0;if(e&&e.mediatype){if(e.mediatype.match(/^MPEG2/i)||e.mediatype.match(/^MP4_TIMELINE/i)||e.mediatype.match(/^MP4_PREVIEW/i)||e.mediatype.match(/^TEASER/i)||e.mediatype.match(/^thumbnailset/i)||e.mediatype.match(/WMV/i)||e.mediatype.match(/3GP/i))return!0;if(e.mediatype.match(/^FMP4/i))return!0}return!1}},{key:"_canPlayAsset",value:function(e){return!!e&&(this._needsYouTube(e)&&void 0!==f||this._needsHtml5HLS(e)&&void 0!==c||this._needsHtml5HLS(e)&&void 0!==d||this._needsHtml5MPD(e)&&void 0!==_||this._needsHtml5MPD(e)&&void 0!==p||this._needsSprite360(e)&&this._broker&&this._broker.isPlayerComponentAvailable("Html5Sprite360Head")||this._needsSpriteGL360(e)&&void 0!==r?"probably":this._detections&&e.mimetype?this._detections.canPlayType(e.mimetype):"maybe")}},{key:"_needsHtml5HLS",value:function(e){return!(null==this._detections||this._detections.canPlayHLS||!this._needsHLSSupport(e))}},{key:"_needsHtml5MPD",value:function(e){return!(null==this._detections||this._detections.canPlayMPD||!this._needsMPDSupport(e))}},{key:"_needsHtml5HLSDash",value:function(e){return!!this._needsHtml5MPD(e)||!(this._avoidHLSViaShaka||!this._needsHtml5HLS(e))}},{key:"_needsHtml5Seek",value:function(e){if(this._detections&&!this._detections.canPlayInline){if(e.mediatype.match(/^MP4_IPOD/i))return!0;if(e.mediatype.match(/^MP4_MAIN/i))return!0;if(e.mediatype.match(/^MP4_HD/i))return!0;if(e.mediatype.match(/^MP4_HLS/i))return!0;if(e.mediatype.match(/^MP4_HDS/i))return!0}return!1}},{key:"_needsYouTube",value:function(e){return"YOUTUBE"==e.mediatype}},{key:"_needsSprite",value:function(e){return!(!e.mediatype||!e.mediatype.match(/^IMAGESEQUENCE/i))||!(!e.processedSrc||!e.processedSrc.match(/\.json$/i))}},{key:"_needsSprite360",value:function(e){if(this._is360Video&&this._detections){if(e.mediatype&&e.mediatype.match(/^IMAGESEQUENCE/i)&&!this._detections.hasWebGL)return!0;if(e.processedSrc&&e.processedSrc.match(/\.json$/i)&&!this._detections.hasWebGL)return!0}return!1}},{key:"_needsSpriteGL360",value:function(e){if(this._is360Video){if(e.mediatype&&e.mediatype.match(/^IMAGESEQUENCE/i))return!0;if(e.processedSrc&&e.processedSrc.match(/\.json$/i))return!0}return!1}},{key:"_needsVideoGL360",value:function(e){return!!this._is360Video}},{key:"_needsHtml5HLSDashVideoGL360",value:function(e){return!(!this._needsHtml5MPD(e)||!this._needsVideoGL360(e))||!(this._avoidHLSViaShaka||!this._needsHtml5HLS(e)||!this._needsVideoGL360(e))}},{key:"_needsHtml5HLSVideoGL360",value:function(e){return!(!this._needsHtml5HLS(e)||!this._needsVideoGL360(e))}},{key:"_needsMediaTag",value:function(e){return!!e.processedSrc.match(/\.aac$/i)}},{key:"_needsIOS",value:function(e){return!1}},{key:"_needsChromeCast",value:function(e){return!!this._useChromeCast}},{key:"_needsHLSSupport",value:function(e){return b.assetNeedsHLSSupport(e)}},{key:"_needsMPDSupport",value:function(e){return b.assetNeedsMPDSupport(e)}},{key:"_needsWebmSupport",value:function(e){return!(!e.mediatype||!e.mediatype.match(/^WEBM/i))||!(!e.processedSrc||!e.processedSrc.match(/\.webm\?/i))}},{key:"_needsDotAACSupport",value:function(e){return!(!e.processedSrc||!e.processedSrc.match(/\.aac$/i))}},{key:"_needsHtml5AACSupport",value:function(e){return!(!e.mediatype||!e.mediatype.match(/^AACP/i))||(!(!e.processedSrc||!e.processedSrc.match(/\.aac$/i))||!(!e.processedSrc||!e.processedSrc.match(/aacp$/i)))}},{key:"_needsAudioMP4Support",value:function(e){return!!(e.mediatype&&e.mediatype.match(/^AAC/i)&&e.processedSrc&&e.processedSrc.match(/\.mp4$/i))||!(!e.processedSrc||!e.processedSrc.match(/\.m4a$/i))}},{key:"_supportedByIOSVersionLessThan5",value:function(e){return!(!e.mediatype||!e.mediatype.match(/^MP4_IPOD/i))||(!(!e.mediatype||!e.mediatype.match(/^MP3/i))||(!(!e.mediatype||!e.mediatype.match(/^AAC/i))||(!(!e.mediatype||!e.mediatype.match(/^image\/gif/i))||(!(!e.mediatype||!e.mediatype.match(/^image\/jpg/i))||!(!e.mediatype||!e.mediatype.match(/^image\/png/i))))))}},{key:"_supportedByMediaTag",value:function(e){return!(!e.mediatype||!e.mediatype.match(/^MP4_IPOD/i))}},{key:"_determineHeadType",value:function(){this._headType="none",null!=this._clip&&null!=this._asset&&(this._needsYouTube(this._asset)&&!this._headTypesToAvoid.youtube?this._headType="youtube":this._needsSprite360(this._asset)&&!this._headTypesToAvoid.Html5Sprite360?(this._headType="Html5Sprite360",this._headTypesToAvoid.Html5Seek=!0,this._headTypesToAvoid.html5=!0):this._needsSpriteGL360(this._asset)&&!this._headTypesToAvoid.Html5SpriteGL360?(this._headType="Html5SpriteGL360",this._headTypesToAvoid.Html5Seek=!0,this._headTypesToAvoid.html5=!0):this._needsHtml5Seek(this._asset)&&!this._headTypesToAvoid.Html5Seek?this._headType="Html5Seek":this._needsHtml5HLSDashVideoGL360(this._asset)&&!this._headTypesToAvoid.Html5HLSDashVideoGL360?(this._headType="Html5HLSDashVideoGL360",this._headTypesToAvoid.sprite=!0,this._headTypesToAvoid.html5=!0):this._needsHtml5HLSVideoGL360(this._asset)&&!this._headTypesToAvoid.Html5HLSVideoGL360?(this._headType="Html5HLSVideoGL360",this._headTypesToAvoid.sprite=!0,this._headTypesToAvoid.html5=!0):this._needsVideoGL360(this._asset)&&!this._headTypesToAvoid.Html5VideoGL360?(this._headType="Html5VideoGL360",this._headTypesToAvoid.Html5Seek=!0,this._headTypesToAvoid.html5=!0):this._needsHtml5HLSDash(this._asset)&&!this._headTypesToAvoid.Html5HLSDash?this._headType="Html5HLSDash":this._needsChromeCast(this._asset)&&!this._headTypesToAvoid.ChromeCast?this._headType="ChromeCast":this._needsHtml5HLS(this._asset)&&!this._headTypesToAvoid.Html5HLS?this._headType="Html5HLS":this._headTypesToAvoid.html5||(this._headType="html5")),null!=this._opts&&void 0!==this._opts.playoutData&&void 0!==this._opts.playoutData.forcedHead&&(this._headType=this._opts.playoutData.forcedHead),null!=this._opts&&void 0!==this._opts.requestParams&&void 0!==this._opts.requestParams.forcedHead&&(this._headType=this._opts.requestParams.forcedHead)}},{key:"_createHead",value:function(e,t,i){var n=null,g=$parcel$interopDefault(v)('<div class="bb-head" style="position:absolute; width:100%; height:100%; top:0; left:0;"></div>');switch(isNaN(parseInt(i))||g.css({zIndex:parseInt(i)}),this.$element.append(g),g.attr("data-retryOnPlayFailed","false"),e){case"youtube":"function"==typeof f&&(n=new f(g,this._opts));break;case"Html5Sprite360":var y;if(this._broker)if(this._broker.isPlayerComponentAvailable("Html5Sprite360Head"))n=new(this._broker.getLoadedPlayerComponent("Html5Sprite360Head"))(g,this._opts);else null===(y=this.$wrapper)||void 0===y||y.on("bb_component_loaded bb_component_failed",this._onComponentBound),this._broker.load("Html5Sprite360Head",15);break;case"Html5SpriteGL360":var b;if(this._broker)if(this._broker.isPlayerComponentAvailable("WebGL360Helper"))n=new r(g,this._opts);else null===(b=this.$wrapper)||void 0===b||b.on("bb_component_loaded bb_component_failed",this._onComponentBound),this._broker.load("WebGL360Helper:Html5SpriteGL360Head",15);break;case"Html5Seek":"function"==typeof o&&(n=new o(g,this._opts));break;case"Html5HLSVideoGL360":if(this._broker)if(this._broker.isPlayerComponentAvailable("Html5HLSHelper")&&this._broker.isPlayerComponentAvailable("WebGL360Helper"))n=new h(g,this._opts);else if(this._broker.isPlayerComponentAvailable("Html5HLSHelper")){if(!this._broker.isPlayerComponentAvailable("WebGL360Helper")){var k;null===(k=this.$wrapper)||void 0===k||k.on("bb_component_loaded bb_component_failed",this._onComponentBound),this._broker.load("WebGL360Helper:Html5HLSVideoGL360Head",15)}}else{var w;null===(w=this.$wrapper)||void 0===w||w.on("bb_component_loaded bb_component_failed",this._onComponentBound),this._broker.load("Html5HLSHelper:Html5HLSVideoGL360Head",15)}break;case"Html5HLSDashVideoGL360":if(this._broker)if(this._broker.isPlayerComponentAvailable("Html5HLSDashHelper")&&this._broker.isPlayerComponentAvailable("WebGL360Helper"))n=new m(g,this._opts);else if(this._broker.isPlayerComponentAvailable("Html5HLSDashHelper")){if(!this._broker.isPlayerComponentAvailable("WebGL360Helper")){var $;null===($=this.$wrapper)||void 0===$||$.on("bb_component_loaded bb_component_failed",this._onComponentBound),this._broker.load("WebGL360Helper:".concat(e,"Head"),15)}}else{var C;null===(C=this.$wrapper)||void 0===C||C.on("bb_component_loaded bb_component_failed",this._onComponentBound),this._broker.load("Html5HLSDashHelper:".concat(e,"Head"),15)}break;case"Html5VideoGL360":var S;if(this._broker)if(this._broker.isPlayerComponentAvailable("WebGL360Helper"))n=new u(g,this._opts);else null===(S=this.$wrapper)||void 0===S||S.on("bb_component_loaded bb_component_failed",this._onComponentBound),this._broker.load("WebGL360Helper:Html5VideoGL360Head",15);break;case"Html5HLS":var P;if(this._broker)if("audio"!==t||this._isiOS)if(this._broker.isPlayerComponentAvailable("Html5HLSHelper"))n=new c(g,this._opts);else{var x;null===(x=this.$wrapper)||void 0===x||x.on("bb_component_loaded bb_component_failed",this._onComponentBound),this._broker.load("Html5HLSHelper:Html5HLSHead",15)}else if(this._broker.isPlayerComponentAvailable("Html5HLSHelper"))n=new d(g,this._opts);else null===(P=this.$wrapper)||void 0===P||P.on("bb_component_loaded bb_component_failed",this._onComponentBound),this._broker.load("Html5HLSHelper:Html5HLSHead",15);break;case"Html5HLSDash":var A;if(this._broker)if("audio"!==t||this._isiOS)if(this._broker.isPlayerComponentAvailable("Html5HLSDashHelper"))n=new _(g,this._opts);else{var I;null===(I=this.$wrapper)||void 0===I||I.on("bb_component_loaded bb_component_failed",this._onComponentBound),this._broker.load("Html5HLSDashHelper:".concat(e,"Head"),15)}else if(this._broker.isPlayerComponentAvailable("Html5HLSDashHelper"))n=new p(g,this._opts);else null===(A=this.$wrapper)||void 0===A||A.on("bb_component_loaded bb_component_failed",this._onComponentBound),this._broker.load("Html5HLSDashHelper:".concat(e,"Head"),15);break;case"html5":"image"===t||"interactive"===t?"function"==typeof s&&(n=new s(g,this._opts)):"audio"===t?"function"==typeof a&&(n=new a(g,this._opts)):"function"==typeof l&&(n=new l(g,this._opts))}return null==n&&g.remove(),n}},{key:"_bindToHead",value:function(){null==this._head||this._headBound||(this._headBound=!0,null!=this._head.$element&&(this._head.$element.on("loadstart",this._onHeadEventBound),this._head.$element.on("couldplay",this._onHeadEventBound),this._head.$element.on("loadeddata",this._onHeadEventBound),this._head.$element.on("canplay",this._onHeadEventBound),this._head.$element.on("error",this._onHeadEventBound),this._head.$element.on("play",this._onHeadEventBound),this._head.$element.on("playing",this._onHeadEventBound),this._head.$element.on("pause",this._onHeadEventBound),this._head.$element.on("waiting",this._onHeadEventBound),this._head.$element.on("stalled",this._onHeadEventBound),this._head.$element.on("timeupdate",this._onHeadEventBound),this._head.$element.on("seeking",this._onHeadEventBound),this._head.$element.on("seeked",this._onHeadEventBound),this._head.$element.on("abort",this._onHeadEventBound),this._head.$element.on("adSkipped",this._onHeadEventBound),this._head.$element.on("ended",this._onHeadEventBound),this._head.$element.on("volumechange",this._onHeadEventBound),this._head.$element.on("durationchange",this._onHeadEventBound),this._head.$element.on("progress",this._onHeadEventBound),this._head.$element.on("suspend",this._onHeadEventBound),this._head.$element.on("emptied",this._onHeadEventBound),this._head.$element.on("loadedmetadata",this._onHeadEventBound),this._head.$element.on("canplaythrough",this._onHeadEventBound),this._head.$element.on("ratechange",this._onHeadEventBound),this._head.$element.on("resize",this._onHeadEventBound)),this._head.enableTimeUpdates())}},{key:"_unbindFromHead",value:function(){null!=this._head&&this._headBound&&(this._headBound=!1,null!=this._head.$element&&(this._head.$element.off("loadstart",this._onHeadEventBound),this._head.$element.off("couldplay",this._onHeadEventBound),this._head.$element.off("loadeddata",this._onHeadEventBound),this._head.$element.off("canplay",this._onHeadEventBound),this._head.$element.off("error",this._onHeadEventBound),this._head.$element.off("playing",this._onHeadEventBound),this._head.$element.off("pause",this._onHeadEventBound),this._head.$element.off("waiting",this._onHeadEventBound),this._head.$element.off("stalled",this._onHeadEventBound),this._head.$element.off("timeupdate",this._onHeadEventBound),this._head.$element.off("seeking",this._onHeadEventBound),this._head.$element.off("seeked",this._onHeadEventBound),this._head.$element.off("abort",this._onHeadEventBound),this._head.$element.off("adSkipped",this._onHeadEventBound),this._head.$element.off("ended",this._onHeadEventBound),this._head.$element.off("volumechange",this._onHeadEventBound),this._head.$element.off("durationchange",this._onHeadEventBound),this._head.$element.off("progress",this._onHeadEventBound),this._head.$element.off("suspend",this._onHeadEventBound),this._head.$element.off("emptied",this._onHeadEventBound),this._head.$element.off("loadedmetadata",this._onHeadEventBound),this._head.$element.off("canplaythrough",this._onHeadEventBound),this._head.$element.off("play",this._onHeadEventBound),this._head.$element.off("ratechange",this._onHeadEventBound),this._head.$element.off("resize",this._onHeadEventBound)),this._head.disableTimeUpdates())}},{key:"_dispatchEvent",value:function(e,t){void 0!==t?this.$element.triggerHandler(e,[t]):this.$element.triggerHandler(e)}},{key:"_onHeadEvent",value:function(e){if(e.stopPropagation(),null!=this.$element)switch(e.type){case"loadstart":this._playing=!1,this._couldPlay=!1,this._canPlay=!1;break;case"loadeddata":this.fitVideo(),this.$element.triggerHandler("bb_head_loadeddata");break;case"canplay":this._canPlay=!0,this.$element.triggerHandler("bb_head_canplay"),null!=this._seekPosition&&this._head&&(this._savedSeekPosition=this._seekPosition,this._seekPosition=null,this._head.set("currentTime",this._savedSeekPosition)),this._playPending&&this.play();break;case"play":this._playPending=!0,this.$element.triggerHandler("bb_head_play");break;case"playing":var t;this._isSafari&&(null===(t=this._head)||void 0===t?void 0:t.get("paused"))||(this._playPending=!1,this._playing=!0,this.$element.triggerHandler("bb_head_playing"));break;case"pause":this._playing=!1,this.$element.triggerHandler("bb_head_paused");break;case"waiting":this.$element.triggerHandler("bb_head_waiting");break;case"stalled":this.$element.triggerHandler("bb_head_stalled");break;case"abort":case"adSkipped":case"ended":this._playing=!1;break;case"error":var i="no head, no glory";if(null!=this._head){var n=this._head.get("error");if(null!=n){switch(n.code){case 1:i="MEDIA_ERR_ABORTED";break;case 2:i="MEDIA_ERR_NETWORK";break;case 3:i="MEDIA_ERR_DECODE";break;case 4:i="MEDIA_ERR_SRC_NOT_SUPPORTED";break;default:i="unknown error code: "+n.code+", msg: "+n.error}i+=", src: "+this._head.get("currentSrc")}else i="no error specified"}this._assetIdsToAvoid["#"+this._asset.id]=!0;var a=this._asset.id;this._selectAsset(),this._asset&&this._asset.id!=a?(this.$element.triggerHandler("bb_warning",[{msg:i}]),this._switchAsset()):this.$element.triggerHandler("bb_error",[{msg:i}]);break;case"timeupdate":var s=null;null!=this._head&&(s=this._head.get("currentTime")),this.$element.triggerHandler("bb_head_timeupdate",[{currentTime:s}]);break;case"seeking":this.$element.triggerHandler("bb_head_seeking");break;case"seeked":var o=null;null!=this._savedSeekPosition?(o=this._savedSeekPosition,this._savedSeekPosition=null):null!=this._head&&(o=this._head.get("currentTime")),this.$element.triggerHandler("bb_head_seeked",[{seekedPosition:o}]);break;case"volumechange":var r=null,l=null;null!=this._head&&(r=this._masterVolume>0?this._head.get("volume")/this._masterVolume:this._headVolume,l=this._masterMute?this._headMute:this._head.get("muted")),this.$element.triggerHandler("bb_head_volume_change",[{volume:r,masterVolume:this._masterVolume,muted:l,masterMuted:this._masterMute}]);break;case"durationchange":var u=null;null!=this._head&&(u=this._head.get("duration")),this.$element.triggerHandler("bb_head_duration_change",[{duration:u}])}}},{key:"processAsset",value:function(e){var t;return e&&!e.processedSrc&&(e.processedSrc=this._preProcessSrc(e.src,null===(t=this._clip)||void 0===t?void 0:t.mediaassetpath)),e}},{key:"_preProcessSrc",value:function(e,t){if(void 0===e||null==e)return!1;if(!(/^blob:https?:\/\//.test(e)||/^\w+:\/\//.test(e)||/^\/\//.test(e))&&null!=this._opts&&void 0!==this._opts.publicationData){void 0===t&&(t=null);var i=null;void 0!==this._opts.publicationData.defaultMediaAssetPath&&null!=(i=this._opts.publicationData.defaultMediaAssetPath)&&null==i.match(/\/\/mm\./)&&this._opts.embedData.forceSSL&&(i=i.replace(/^http:\/\//,"https://"));var n=null;void 0!==this._opts.publicationData.streamingMediaAssetPath&&null!=(n=this._opts.publicationData.streamingMediaAssetPath)&&null!=n.match(/^https:\/\//)&&this._opts.embedData.forceSSL&&(n=n.replace(/^http:\/\//,"https://"));var a=null;if(void 0!==this._opts.publicationData.mobileMediaAssetPath&&null!=(a=this._opts.publicationData.mobileMediaAssetPath)&&null==a.match(/\/\/mm\./)&&(this._opts.embedData.forceSSL&&(a=a.replace(/^http:\/\//,"https://")),a.match(/\&protocol=/)&&this._opts.embedData.forceSSL&&(a=a.replace(/\&protocol=[^&]*/,"&protocol=https")),a.match(/\?protocol=/)&&this._opts.embedData.forceSSL&&(a=a.replace(/\?protocol=[^&]*/,"?protocol=https"))),null==t&&(t=i,null!=n&&null!=this._clip&&"image"!=this._clip.mediatype&&"interactive"!=this._clip.mediatype&&null!=this._detections&&(this._detections.canPlayHLS||this._detections.canPlayHLSJS)&&(t=null!=a?a:i)),null!=t&&(e=null==t.match(/^http/)&&null==t.match(/^\/\//)||!t.match(/xspf/)?null!=t.match(/^rtmp/)?t+"%delimiter%"+e.replace(/^\//,""):null!=t.match(/\?/)&&null!=t.match(/\=$/)?t+encodeURIComponent(e):t+e:t+"&file="+encodeURIComponent(e)),null!=this._clip&&"image"==this._clip.mediatype){var s=e.substr(e.lastIndexOf("."));s&&".swf"!=s.toLowerCase()&&(e=this._opts.publicationData.server+"/mediaclip/"+this._clip.id+"/pthumbnail/default/default"+s.toLowerCase())}}return e}}],[{key:"sortShortList",value:function(e,t){return Number(e.bandwidth)<Number(t.bandwidth)||!isNaN(e.bandwidth)&&"auto"===t.bandwidth?-1:Number(e.bandwidth)>Number(t.bandwidth)||"auto"===e.bandwidth&&!isNaN(t.bandwidth)?1:0}}]),e}()})),parcelRequire.register("fEu1u",(function(e,t){$parcel$export(e.exports,"default",(function(){return h})),parcelRequire("lDGnc");var i=parcelRequire("6YA9f"),n=parcelRequire("27Qiu"),a=parcelRequire("7CnHN"),s=parcelRequire("fBLaW"),o=parcelRequire("eamhc"),r=parcelRequire("7gftt"),l=parcelRequire("kVqNu");parcelRequire("6JR1F");var u=parcelRequire("hGJI5"),d=parcelRequire("3DsR2"),c=parcelRequire("e06N2"),h=function(e){"use strict";i.default(h,e);var t=n.default(h);function h(e,i){var n;if(a.default(this,h),(n=t.call(this,e,i))._headController=null,n._avoidPreload=!1,n._onClickToPlayLayerClickBound=n._onClickToPlayLayerClick.bind(s.default(n)),null!=n.$element){n._api=d.default.getService(n._opts.playerAliasOrId).getInstance("PublicAPI"),n.$element.addClass("bb-head-html5-audio"),"true"==n.$element.attr("data-borrowHtml5Media")&&(n._headController=d.default.getService(n._opts.playerAliasOrId).getInstance("HeadController"),void 0!==n._headController&&null!=n._headController&&(n.$media=n._headController.borrowHtml5Media(),n._canAutoPlay=n._canAutoPlay||n._headController._canplay));var o=d.default.getService(n._opts.playerAliasOrId).getInstance("Detections");if(void 0!==o&&null!=o&&(n._avoidPreload=o.avoidPreload,n._isAndroidNative=o.isAndroidNative),"true"===n.$element.attr("data-useMediaManager")?(n._useMediaManager=!0,n._mediaManager&&(n.$media=$parcel$interopDefault(u)(n._mediaManager.getMedia("AUDIO")),$parcel$interopDefault(u).contains(n.$element.get(0),n.$media.get(0))||n.$media.prependTo(n.$element))):"true"==n.$element.attr("data-borrowHtml5Media")&&(n._headController=d.default.getService(n._opts.playerAliasOrId).getInstance("HeadController"),void 0!==n._headController&&null!=n._headController&&(n.$media=n._headController.borrowHtml5Media(),n._canAutoPlay=n._canAutoPlay||n._headController._canplay)),null==n.$media&&(n.$media=$parcel$interopDefault(u)(document.createElement("audio")).appendTo(n.$element),n.$media.attr("webkit-playsinline",""),n.$media.attr("playsinline",""),n.$media.attr("controlsList","nodownload"),n.$media.attr("preload",n._avoidPreload?"none":"metadata"),"true"===n._opts.playoutData.autoMute&&(n._muted=!0,n._effectuateVolumeAndMuted()),n.$media.css({width:"100%",height:"100%"}),n.$media.css({maxWidth:"none",maxHeight:"none"})),n.$element.append('<style type="text/css">.bb_wrapper .bb-head-html5-audio audio{max-width:none !important;max-height:none !important;}</style>'),i.noSkinMode?(n.$clickToPlayLayer=$parcel$interopDefault(u)('<div style="width:100%;height:100%;position:absolute;top:0;left:0;" class="bb-click-to-play-layer"></div>'),n.$clickToPlayLayer.on("click",n._onClickToPlayLayerClickBound),n.$element.append(n.$clickToPlayLayer)):n.$element.append('<div style="width:100%;height:100%;position:absolute;top:0;left:0;"></div>'),null!=n.$media&&n.$media.length<=0&&(n.$media=null),null!=n.$media){n._media=n.$media.get(0),n._useMediaManager&&n._mediaManager&&($parcel$interopDefault(u).contains(n.$element.get(0),n._media)||(n.$media=$parcel$interopDefault(u)(n._media).prependTo(n.$element)));var r=n._media.src,l=n._media.currentSrc;null!=l&&""!=l&&null==l.match(/\/null$/)?n._savedSrc=l:null!=r&&""!=r&&null==r.match(/\/null$/)&&(n._savedSrc=r),n._media.webkitCurrentPlaybackTargetIsWireless&&(n._media.setAttribute("preload","metadata"),n._media.setAttribute("x-webkit-airplay","allow"),n._antiFlickerHack&&n.$media&&(n._antiFlickerHack=!1,n.$media.css("visibility","visible")),n._isiOS&&n._useMediaManager&&n._mediaManager&&n._mediaManager.setSingleMediaMode(n._media.tagName))}var c=i.clipData&&"mainroll"===i.clipData.mediatype;i.noSkinMode&&i.addNativeControls&&(n.$media.attr("controls","controls"),n._api&&!c&&n.$media.attr("poster",n._api.getThumbnail())),n._bindMediaEvents()}return n}return o.default(h,[{key:"_onClickToPlayLayerClick",value:function(){this._api&&(this._api.play(!0),this.$clickToPlayLayer.hide())}},{key:"exit",value:function(){var e;return null===(e=this.$clickToPlayLayer)||void 0===e||e.off("click",this._onClickToPlayLayerClickBound),this._headController&&(this._headController.returnHtml5Media(),null!=this._savedSrc&&null!=this._media&&(this._media.src=this._savedSrc,this._loadMedia(!1)),this._savedSrc=null),this._unbindMediaEvents(),this.$media=null,r.default(l.default(h.prototype),"exit",this).call(this)}},{key:"play",value:function(e){return c.default("[Html5AudioHead] play user action: "+e),r.default(l.default(h.prototype),"play",this).call(this,e)}},{key:"restretch",value:function(){}},{key:"_getMediaWidth",value:function(){return 0}},{key:"_getMediaHeight",value:function(){return 0}}]),h}(parcelRequire("14b9r").default)})),parcelRequire.register("14b9r",(function(e,t){$parcel$export(e.exports,"default",(function(){return _})),parcelRequire("lDGnc");var i=parcelRequire("6YA9f"),n=parcelRequire("27Qiu"),a=parcelRequire("7CnHN"),s=parcelRequire("fBLaW"),o=parcelRequire("eamhc"),r=parcelRequire("7gftt"),l=parcelRequire("kVqNu");parcelRequire("6JR1F");var u=parcelRequire("hGJI5"),d=parcelRequire("3DsR2"),c=parcelRequire("e06N2"),h=parcelRequire("ePkDK"),p=parcelRequire("cYwG5"),_=function(e){"use strict";i.default(h,e);var t=n.default(h);function h(e,i){var n,o;if(a.default(this,h),(n=t.call(this,e,i)).$media=null,n._media=null,n._media_promise=null,n._isiOS=!1,n._isNativeAndroidBrowser=!1,n._canAutoPlay=!1,n._pendingSet=[],n._loadstart=!1,n._suspend=!1,n._canplay=!1,n._canplaythrough=!1,n._currentTime=null,n._isIE=!1,n._canControlVolume=!0,n._volume=1,n._muted=!1,n._shouldBePaused=!0,n._duration=null,n._retryOnPlayFailed=!1,n._retryCount=0,n._playing=!1,n._ended=!1,n._seeking=!1,n._exiting=!1,n._pendingPlay=!1,n._timeUpdatesEnabled=!0,n._haveStarted=!1,n._useMediaManager=!1,n._isLiveStream=!1,i.clipData&&"live"===i.clipData.sourcetype&&(n._isLiveStream=!0),n._forceIOSNativeVideo="true"===n._opts.playoutData.forceIOSNativeVideo,n._forceAndroidNativeVideo="true"===n._opts.playoutData.forceAndroidNativeVideo,n._autoMuteIfNeededForAutoPlay="true"===n._opts.playoutData.autoMuteIfNeededForAutoPlay||!0===n._opts.playoutData.autoMuteIfNeededForAutoPlay,n._autoMuteIfNeededForAutoPlay=!1,n._antiFlickerHack=!0,n._animationFrameCallbackBound=n._animationFrameCallback.bind(s.default(n)),n._onPlayoutChangedBound=n._onPlayoutChanged.bind(s.default(n)),n._onPageShowBound=n._onPageShow.bind(s.default(n)),n._onPageHideBound=n._onPageHide.bind(s.default(n)),n._onWindowTouchstartBound=n._onWindowTouchstart.bind(s.default(n)),n._onAutoPlayCheckReadyBound=n._onAutoPlayCheckReady.bind(s.default(n)),n._onEventBound=n._onEvent.bind(s.default(n)),null!=n.$element){n.$wrapper=n.$element.closest(".bb_wrapper");var r=n._detections=d.default.getService(n._opts.playerAliasOrId).getInstance("Detections");void 0!==r&&null!=r&&(n._canAutoPlayMuted=r.canAutoPlayMuted,n._isiOS=r.isiOS,n._isNativeAndroidBrowser=r.isAndroidNative,n._canAutoPlay=r.canAutoPlay,n._isIE=r.isIE,n._isAndroid=r.isAndroid,n._canControlVolume=r.canControlVolume,n._isSafari=r.isSafari),n._retryOnPlayFailed="true"===n.$element.attr("data-retryOnPlayFailed"),n._mediaManager=d.default.getService(n._opts.playerAliasOrId).getInstance("MediaManager")}return n._noSkinMode=n._opts.noSkinMode,n._antiFlickerHack=n._antiFlickerHack&&!n._opts.addNativeControls,null===(o=n.$element)||void 0===o||o.on("bb_playout_changed",n._onPlayoutChangedBound),window.addEventListener("pageshow",n._onPageShowBound),window.addEventListener("pagehide",n._onPageHideBound),n}return o.default(h,[{key:"exit",value:function(){var e;return this._exiting=!0,this._unbindMediaEvents(),this.$wrapper&&this.$wrapper.off("bb_autoplay_check_ready",this._onAutoPlayCheckReadyBound),null===(e=this.$element)||void 0===e||e.off("bb_playout_changed",this._onPlayoutChangedBound),window.removeEventListener("touchstart",this._onWindowTouchstartBound),window.removeEventListener("pageshow",this._onPageShowBound),window.removeEventListener("pagehide",this._onPageHideBound),null!=this.$element&&this.$element.empty(),this._retryCount=0,r.default(l.default(h.prototype),"exit",this).call(this)}},{key:"reset",value:function(){null!=this._media&&"function"==typeof this._media.pause&&(this._media.paused||this._pauseMedia()),this._pendingSet=[],this._loadstart=!1,this._suspend=!1,this._canplay=!1,this._canplaythrough=!1,this._retryCount=0,this._haveStarted=!1}},{key:"set",value:function(e,t,i){if(null!=this._media)switch(e){case"currentTime":return!isNaN(parseFloat(t))&&t>=0&&(t<.1&&(t=.1),this._isIE&&isNaN(this._media.duration)||!this._canplaythrough&&this._isSafari?this._pendingSet.push({key:e,value:t}):this._media.currentTime=t,!0);case"muted":return"boolean"==typeof t&&(this._muted=t,this._effectuateVolumeAndMuted(),!0);case"src":if("string"==typeof t||void 0!==t&&null==t){var n;this._retryCount=0,t!=this._media.currentSrc&&(this._suspend=!1,this._canplay=!1,this._canplaythrough=!1);try{this._antiFlickerHack&&this.$media&&this.$media.css("visibility","hidden"),this._media.src=t}catch(e){return!1}return"AUDIO"!=this._media.tagName&&"VIDEO"!=this._media.tagName||this._loadOnFirstTouch(),this._canAutoPlay||this.$media&&this.$media.data("canplay"),null===(n=this.$media)||void 0===n||n.show(),!0}return!1;case"volume":return!isNaN(parseFloat(t))&&t>=0&&t<=1&&(this._volume=t,this._effectuateVolumeAndMuted(),!0);case"playbackRate":return!isNaN(parseFloat(t))&&(!!this._media&&(this._media.playbackRate=t));default:return r.default(l.default(h.prototype),"set",this).call(this,e,t)}}},{key:"_effectuateVolumeAndMuted",value:function(){var e=this._muted?!!this._muted:!!(this._volume<=0);return this._media&&this._media.muted!==e&&(this._media.muted=e),this._media&&this._media.volume!==this._volume&&(this._media.volume=this._volume),e}},{key:"get",value:function(e){if(null!=this._media)switch(e){case"buffered":var t=this._media.buffered;if(t){for(var i=new Array,n=new Array,a=0;a<t.length;a++)i[a]=t.start(a),n[a]=t.end(a);t.start=i,t.end=n}else t=0;return t;case"currentTime":return this._media.currentTime;case"duration":return this._media.duration||0;case"ended":return null;case"error":return this._media.error;case"muted":return this._muted&&this._media.muted;case"networkState":return this._media.networkState;case"paused":return!(!this._isIE||1!=this._media.ended)||this._media.paused;case"readyState":return this._media.readyState;case"seekable":return this._media.seekable;case"src":case"currentSrc":return this._media.currentSrc;case"volume":return this._volume;case"videoWidth":return this._media.videoWidth;case"videoHeight":return this._media.videoHeight;case"mediaWidth":return this._getMediaWidth();case"mediaHeight":return this._getMediaHeight();case"canControlVolume":return this._canControlVolume;case"isLive":var s=this._media.seekable;return!s||s.length<=0;case"canControlPlaybackRate":return!!this._media&&void 0!==this._media.playbackRate;case"playbackRate":return!!this._media&&this._media.playbackRate;default:return r.default(l.default(h.prototype),"get",this).call(this,e)}}},{key:"play",value:function(e){return c.default("[Html5Head] play user action: "+e),this._pendingPlay=!0,this._shouldBePaused=!1,this._effectuateVolumeAndMuted(),this._playMedia(e),!0}},{key:"pause",value:function(){return this._pendingPlay=!1,this._shouldBePaused=!0,this._pauseMedia(),!0}},{key:"load",value:function(e){return this._loadMedia(e),this._pendingPlay&&(this._effectuateVolumeAndMuted(),this._playMedia(e)),!0}},{key:"on",value:function(e,t){}},{key:"toFront",value:function(){r.default(l.default(h.prototype),"toFront",this).call(this),this._useMediaManager&&this._mediaManager&&this.$media&&this.$element&&($parcel$interopDefault(u).contains(this.$element.get(0),this.$media.get(0))||this.$media.prependTo(this.$element))}},{key:"_playMedia",value:function(e){if(this._media)if(this._useMediaManager&&this._mediaManager)c.default("[Html5Head] going to call play() on mediaManager having src: "+this._media.src),this._mediaManager.play(e,this._media.tagName);else if(c.default("[Html5Head] going to call play() on media element having src: "+this._media.src),this._media_pauseDesired=!1,this._media.play&&!this._media_promise&&(this._media_promise=this._media.play(),this._media_promise&&this._media_promise.then&&this._media_promise.catch)){var t=this;this._media_promise.then((function(){t._media_promise=null})).catch((function(i){if(t._media_promise=null,i&&i.name&&c.default("[Html5Head] play promise error.name: "+i.name),t._retryOnPlayFailed||t._autoMuteIfNeededForAutoPlay)if(t._retryCount<5&&i&&"NotAllowedError"==i.name&&t._canAutoPlayMuted){for(t._retryCount++;t._pendingSet.length>0;){var n=t._pendingSet.shift();"muted"!==n.key&&"volume"!==n.key&&t.set(n.key,n.value)}t.set("muted",!0),t.set("volume",0),t._playMedia(e)}else t._retryCount<5&&i&&i.name}))}}},{key:"_pauseMedia",value:function(){if(this._media)if(this._useMediaManager&&this._mediaManager)this._mediaManager.pause();else if(this._media.pause)if(this._media_promise&&this._media_promise.then){this._media_pauseDesired=!0;var e=this;this._media_promise.then((function(){if(e._media_pauseDesired){var t=e._media.pause();t&&t.catch&&t.catch((function(e){}))}}))}else{var t=this._media.pause();t&&t.catch&&t.catch((function(e){}))}}},{key:"_loadMedia",value:function(e){if(this._media)if(this._useMediaManager&&this._mediaManager)c.default("[Html5Head] going to call load() on mediaManager having src: "+this._media.src),this._mediaManager.load(e,this._media.tagName);else if(c.default("[Html5Head] going to call load() on media element having src: "+this._media.src),this._media.load)if(this._media_promise&&this._media_promise.then){var t=this;this._media_promise.then((function(){t._media.load()}))}else this._media.load()}},{key:"_loadOnFirstTouch",value:function(){null!=this._media&&this._opts._loadOnTouch&&(window.addEventListener("touchstart",this._onWindowTouchstartBound,{passive:!0}),this.$wrapper&&this.$wrapper.on("bb_autoplay_check_ready",this._onAutoPlayCheckReadyBound))}},{key:"_onWindowTouchstart",value:function(e){window.removeEventListener("touchstart",this._onWindowTouchstartBound),this._pendingPlay?(this._effectuateVolumeAndMuted(),this._playMedia(!0)):this._loadMedia(!0)}},{key:"_onAutoPlayCheckReady",value:function(e,t){t&&!0===t.autoPlay&&window.removeEventListener("touchstart",this._onWindowTouchstartBound)}},{key:"_onPlayoutChanged",value:function(e,t){t&&void 0!==t.playoutData&&(void 0!==t.playoutData.commercials&&(this._antiFlickerHack=!0),this._antiFlickerHack=this._antiFlickerHack&&!this._opts.addNativeControls,void 0!==t.playoutData.forceIOSNativeVideo&&(this._forceIOSNativeVideo="true"==t.playoutData.forceIOSNativeVideo),void 0!==t.playoutData.forceAndroidNativeVideo&&(this._forceAndroidNativeVideo="true"==t.playoutData.forceAndroidNativeVideo))}},{key:"_getMediaWidth",value:function(){}},{key:"_getMediaHeight",value:function(){}},{key:"_onPageHide",value:function(e){this._useMediaManager&&this._mediaManager||(this._savedMedia="<"+this.$media.prop("tagName").toLowerCase()+' webkit-playsinline src="'+this.$media.attr("src")+'" style="'+this.$media.attr("style")+'" />',this._previousCurrentTime=this._media.currentTime,this._preSwitchPlaying=this._playing)}},{key:"_onPageShow",value:function(e){var t,i;if(!this._useMediaManager||!this._mediaManager){var n=this;if(e.persisted&&("AUDIO"===(null===(t=this._media)||void 0===t?void 0:t.tagName)||"VIDEO"===(null===(i=this._media)||void 0===i?void 0:i.tagName))){var a="pause.tmp"+n._eventNS+" play.tmp"+n._eventNS,s=setTimeout((function(){n.$media.off(a),n._transplantElement()}),300);n.$media.on(a,(function(e){clearTimeout(s),n.$media.off(a)})),n._preSwitchPlaying?(this._pauseMedia(),this._playMedia(!1)):(this._playMedia(!1),this._pauseMedia())}}}},{key:"_transplantElement",value:function(){if(!this._useMediaManager||!this._mediaManager){var e=this;this.$element.triggerHandler("pause"),this._unbindMediaEvents(),this._previousCurrentTime&&this._pendingSet.push({key:"currentTime",value:this._previousCurrentTime});var t=$parcel$interopDefault(u)(this._savedMedia);this.$media.remove(),t.appendTo(this.$element),this.$media=t,this._media=t[0],this._bindMediaEvents(),$parcel$interopDefault(u)(window).one("touchstart",(function(){e._preSwitchPlaying?t[0].play():t[0].load()}))}}},{key:"_bindMediaEvents",value:function(){null!=this.$media&&(this.$media.on("playing",this._onEventBound),this.$media.on("pause",this._onEventBound),this.$media.on("durationchange",this._onEventBound),this.$media.on("timeupdate",this._onEventBound),this.$media.on("volumechange",this._onEventBound),this.$media.on("canplay",this._onEventBound),this.$media.on("seeked",this._onEventBound),this.$media.on("loadstart",this._onEventBound),this.$media.on("progress",this._onEventBound),this.$media.on("suspend",this._onEventBound),this.$media.on("abort",this._onEventBound),this.$media.on("error",this._onEventBound),this.$media.on("emptied",this._onEventBound),this.$media.on("stalled",this._onEventBound),this.$media.on("loadedmetadata",this._onEventBound),this.$media.on("loadeddata",this._onEventBound),this.$media.on("canplaythrough",this._onEventBound),this.$media.on("waiting",this._onEventBound),this.$media.on("seeking",this._onEventBound),this.$media.on("ended",this._onEventBound),this.$media.on("play",this._onEventBound),this.$media.on("ratechange",this._onEventBound),this.$media.on("resize",this._onEventBound))}},{key:"_unbindMediaEvents",value:function(){null!=this.$media&&(this.$media.off("playing",this._onEventBound),this.$media.off("pause",this._onEventBound),this.$media.off("durationchange",this._onEventBound),this.$media.off("timeupdate",this._onEventBound),this.$media.off("volumechange",this._onEventBound),this.$media.off("canplay",this._onEventBound),this.$media.off("seeked",this._onEventBound),this.$media.off("loadstart",this._onEventBound),this.$media.off("progress",this._onEventBound),this.$media.off("suspend",this._onEventBound),this.$media.off("abort",this._onEventBound),this.$media.off("error",this._onEventBound),this.$media.off("emptied",this._onEventBound),this.$media.off("stalled",this._onEventBound),this.$media.off("loadedmetadata",this._onEventBound),this.$media.off("loadeddata",this._onEventBound),this.$media.off("canplaythrough",this._onEventBound),this.$media.off("waiting",this._onEventBound),this.$media.off("seeking",this._onEventBound),this.$media.off("ended",this._onEventBound),this.$media.off("play",this._onEventBound),this.$media.off("ratechange",this._onEventBound),this.$media.off("resize",this._onEventBound))}},{key:"_onEvent",value:function(e){if(e.stopPropagation(),this._isIE&&"ended"==e.type&&this.$element.triggerHandler("pause"),this._isLiveStream&&this._isAndroid&&"ended"==e.type)return this._effectuateVolumeAndMuted(),void this._playMedia(!1);if("loadstart"===e.type||"stalled"===e.type){var t=this.get("avoidPreloadSrc");null==t&&null!=this.$element&&this.$element.triggerHandler(e.type)}else null!=this.$element&&this.$element.triggerHandler(e.type);switch(e.type){case"loadstart":this._loadstart=!0,this._detections&&(this._canAutoPlay=this._detections.canAutoPlay,this._canAutoPlayMuted=this._detections.canAutoPlayMuted),(this._canAutoPlay||this.$media&&(this.$media.data("canplay")||this.$media.data("mediaSourceAdapter"))||this._muted&&this._canAutoPlayMuted)&&null!=this.$element&&this.$element.triggerHandler("couldplay");break;case"canplay":this.$media&&this.$media.data("canplay",!0),this._canplay=!0;break;case"progress":if(this._canplaythrough)for(;this._pendingSet.length>0;){var i=this._pendingSet.shift();this.set(i.key,i.value)}break;case"canplaythrough":if(this._canplaythrough=!0,!this._isiOS)for(;this._pendingSet.length>0;){i=this._pendingSet.shift();this.set(i.key,i.value)}break;case"playing":this._pendingPlay=!1,this._haveStarted=!0,this._loadstart=!0,this._antiFlickerHack&&this.$media&&this.$media.css("visibility","inherit"),window.removeEventListener("touchstart",this._onWindowTouchstartBound),this._playing||(this._playing=!0,p.default.requestAnimFrame(this._animationFrameCallbackBound));this.$clickToPlayLayer&&this.$clickToPlayLayer.hide();break;case"pause":case"error":case"ended":this._playing=!1;break;case"abort":this._playing=!1,this._canplay=!1,this._canplaythrough=!1;break;case"seeking":this._seeking=!0;break;case"seeked":this._seeking=!1;break;case"durationchange":this._duration=this._media.duration}}},{key:"enableTimeUpdates",value:function(){this._timeUpdatesEnabled=!0}},{key:"disableTimeUpdates",value:function(){this._timeUpdatesEnabled=!1}},{key:"showAirPlayTargetPicker",value:function(){var e=!1;return this._media&&this._media.webkitShowPlaybackTargetPicker&&(this._media.setAttribute("preload","metadata"),this._media.setAttribute("x-webkit-airplay","allow"),this._antiFlickerHack&&this.$media&&(this._antiFlickerHack=!1,this.$media.css("visibility","visible")),this._isiOS&&this._useMediaManager&&this._mediaManager&&this._mediaManager.setSingleMediaMode(this._media.tagName),this._media.webkitShowPlaybackTargetPicker(),e=!0),e}},{key:"_animationFrameCallback",value:function(){this._exiting||this._playing&&(p.default.requestAnimFrame(this._animationFrameCallbackBound),this._timeUpdatesEnabled&&!this._seeking&&this.$element.triggerHandler("timeupdate"))}}]),h}(h.default)})),parcelRequire.register("ePkDK",(function(e,t){$parcel$export(e.exports,"default",(function(){return s})),parcelRequire("lDGnc");var i=parcelRequire("7CnHN"),n=parcelRequire("eamhc"),a=parcelRequire("e06N2"),s=function(){"use strict";function e(t,n){i.default(this,e),this.$element=null,this._opts=n,this._eventNS="head"+String(Math.random()).replace(".",""),this._started=!1,this._playing=!1,this._seeking=!1,this._exiting=!1,void 0!==t&&null!=t&&(this.$element=t)}return n.default(e,[{key:"exit",value:function(){return null!=this.$element&&(this.$element=null),null}},{key:"load",value:function(e){}},{key:"reset",value:function(){}},{key:"toFront",value:function(){null!=this.$element&&this.$element.css({zIndex:1,visibility:"inherit"}).siblings(".bb-head").css({zIndex:0,visibility:"hidden"})}},{key:"play",value:function(){}},{key:"pause",value:function(){}},{key:"set",value:function(e,t){switch(e){case"currentTime":case"muted":case"src":case"volume":a.default("Head set: "+e+"  is not implemented in current head")}}},{key:"get",value:function(e){switch(e){case"currentTime":case"duration":case"muted":case"volume":case"currentSrc":case"error":case"src":case"buffered":case"ended":case"networkState":case"paused":case"readyState":case"seekable":case"videoWidth":case"videoHeight":case"canControlVolume":case"canControlPlaybackRate":return a.default("Head get: "+e+"  is not implemented in current head"),null}}},{key:"restretch",value:function(){}},{key:"enableTimeUpdates",value:function(){}},{key:"disableTimeUpdates",value:function(){}},{key:"showAirPlayTargetPicker",value:function(){}}]),e}()})),parcelRequire.register("4Mmd4",(function(e,t){$parcel$export(e.exports,"default",(function(){return u})),parcelRequire("lDGnc");var i=parcelRequire("6YA9f"),n=parcelRequire("27Qiu"),a=parcelRequire("7CnHN"),s=parcelRequire("eamhc"),o=parcelRequire("7gftt"),r=parcelRequire("kVqNu");parcelRequire("6JR1F");var l=parcelRequire("hGJI5"),u=function(e){"use strict";i.default(u,e);var t=n.default(u);function u(e,i){var n;return a.default(this,u),(n=t.call(this,e,i)).firstLoad=!0,n.$preloadImage=$parcel$interopDefault(l)(document.createElement("img")),n.$preloadImage.hide(),n._canControlVolume=!1,n._loaded=!1,n._imageWidth=null,n._imageHeight=null,n._playing=!1,null!=n.$element&&(n.$element.addClass("bb-head-html5-image"),n.$media=$parcel$interopDefault(l)(document.createElement("img")).appendTo(n.$element).css({width:"100%",height:"100%"}),n.$media.css({maxWidth:"none",maxHeight:"none",display:"inline-block",top:0,left:0,position:"absolute"}),n._media=n.$media.get(0),n.$media.attr("aria-hidden","true"),n._bindMediaEvents()),n}return s.default(u,[{key:"set",value:function(e,t){if(null!=this._media&&"src"===e){if("string"==typeof t){if(this._loaded=!1,this.$element.triggerHandler("loadstart"),this.firstLoad){var i=this;this._media.src=t,window.setTimeout((function(e){i.$media.trigger("load")}),5e3),this.firstLoad=!1}else this._preloadImage(t);return!0}return void 0!==t&&null==t&&(this._media.src=t,this._imageWidth=0,this._imageHeight=0,!0)}}},{key:"get",value:function(e){if(null!=this._media)switch(e){case"currentTime":return 0;case"src":case"currentSrc":return this._media.src;case"isLive":return!1;case"seekable":return{length:0,start:function(e){return 0},end:function(e){return 0}};case"mediaWidth":return this._getMediaWidth();case"mediaHeight":return this._getMediaHeight();default:return o.default(r.default(u.prototype),"get",this).call(this,e)}}},{key:"play",value:function(){return this.$element.triggerHandler("play"),this._playing||(this._playing=!0,this.$element.triggerHandler("playing")),!0}},{key:"pause",value:function(){return!1}},{key:"restretch",value:function(){}},{key:"_getMediaWidth",value:function(){return this._imageWidth}},{key:"_getMediaHeight",value:function(){return this._imageHeight}},{key:"_bindMediaEvents",value:function(){null!=this.$media&&this._onEventBound&&(this.$media.on("load",this._onEventBound),this.$media.on("error",this._onEventBound))}},{key:"_unbindMediaEvents",value:function(){null!=this.$media&&this._onEventBound&&(this.$media.off("load",this._onEventBound),this.$media.off("error",this._onEventBound))}},{key:"_onEvent",value:function(e){switch(e.stopPropagation(),e.type){case"load":var t,i;if(!this._loaded)this._loaded=!0,this._imageWidth=null===(t=this._media)||void 0===t?void 0:t.naturalWidth,this._imageHeight=null===(i=this._media)||void 0===i?void 0:i.naturalHeight,null!=this.$element&&(this.$element.triggerHandler("loadedmetadata"),this.$element.triggerHandler("loadeddata"),this.$element.triggerHandler("canplay"),this.$element.triggerHandler("canplaythrough"));break;case"error":this._loaded=!0,null!=this.$element&&this.$element.triggerHandler("error")}}},{key:"_preloadImage",value:function(e){var t=this;this.$media.attr("src")!=e&&(this.$preloadImage[0].onload=function(){var i=t;t.$media.attr("src",e),window.setTimeout((function(e){i.$media.trigger("load")}),5e3)},this.$preloadImage.attr("src",e))}}]),u}(parcelRequire("14b9r").default)})),parcelRequire.register("7O3yG",(function(e,t){$parcel$export(e.exports,"default",(function(){return _})),parcelRequire("lDGnc");var i=parcelRequire("6YA9f"),n=parcelRequire("27Qiu"),a=parcelRequire("7CnHN"),s=parcelRequire("fBLaW"),o=parcelRequire("eamhc"),r=parcelRequire("7gftt"),l=parcelRequire("kVqNu");parcelRequire("6JR1F");var u=parcelRequire("hGJI5"),d=parcelRequire("3DsR2"),c=parcelRequire("e06N2"),h=parcelRequire("14b9r"),p=parcelRequire("cYwG5"),_=function(e){"use strict";i.default(h,e);var t=n.default(h);function h(e,i){var n;if(a.default(this,h),(n=t.call(this,e,i))._canControlVolume=!0,n._bufferTime=10,n._src=null,n._frameRate=25,n._frameWidth=768,n._frameHeight=432,n._segmentDuration=.04,n._segmentNr=0,n._avoidPreload=!1,n._pendingSet=[],n._pretendStall=!1,n._pretendMute=!1,n._havePlayed=!1,n._loadstart=!1,n._loadstart_audio=!1,n._loadedmetadata=!1,n._loadeddata=!1,n._progress=!1,n._canplaythrough_audio=!1,n._muted=!1,n._currentTime=0,n._time_start=0,n._headController=null,n._error=null,n.$cinema_1=null,n._cinema_1=null,n._vendorPrefixes=["","-o-","-ms-","-moz-","-webkit-","-khtml-"],n._onCinema1LoadedMetadataBound=n._onCinema1LoadedMetadata.bind(s.default(n)),n._onCinema1EventBound=n._onCinema1Event.bind(s.default(n)),n._onTimeUpdateBound=n._onTimeUpdate.bind(s.default(n)),null!=n.$element){n.$element.addClass("bb-head-html5-seek"),n.$element.append('<style type="text/css">.bb_wrapper .bb-head-html5-seek audio{max-width:none !important;max-height:none !important;} .bb_wrapper .IIV::-webkit-media-controls-play-button, .bb_wrapper .IIV::-webkit-media-controls-start-playback-button { opacity: 0; pointer-events: none; width: 5px; }</style>');var o=d.default.getService(n._opts.playerAliasOrId).getInstance("Detections");if(void 0!==o&&null!=o&&(n._avoidPreload=o.avoidPreload),"true"===n.$element.attr("data-useMediaManager")?(n._useMediaManager=!0,n._mediaManager&&(n.$media=$parcel$interopDefault(u)(n._mediaManager.getMedia("AUDIO")),n.$cinema_1=$parcel$interopDefault(u)(n._mediaManager.getMedia("VIDEO")),$parcel$interopDefault(u).contains(n.$element.get(0),n.$cinema_1.get(0))||n.$cinema_1.prependTo(n.$element))):"true"==n.$element.attr("data-borrowHtml5Media")&&(n._headController=d.default.getService(n._opts.playerAliasOrId).getInstance("HeadController"),void 0!==n._headController&&null!=n._headController&&(n.$media=n._headController.borrowHtml5Audio(),n.$media.attr("webkit-playsinline",""),n.$media.attr("playsinline",""),n.$cinema_1=n._headController.borrowHtml5Video(),n.$cinema_1.addClass("IIV"),n.$cinema_1.attr("webkit-playsinline",""),n.$cinema_1.attr("playsinline",""),n.$cinema_1.attr("muted",""))),null==n.$media&&(n.$media=$parcel$interopDefault(u)(document.createElement("audio")).appendTo(n.$element),n.$media.attr("webkit-playsinline",""),n.$media.attr("playsinline",""),n.$media.attr("preload",n._avoidPreload?"none":"metadata"),n.$media.css({width:"100%",height:"100%"}),n.$media.css({maxWidth:"none",maxHeight:"none"})),null==n.$cinema_1&&(n.$cinema_1=$parcel$interopDefault(u)(document.createElement("video")).appendTo(n.$element),n.$cinema_1.css({width:"100%",height:"100%"}),n.$cinema_1.attr("crossOrigin",""),n.$cinema_1.attr("webkit-playsinline",""),n.$cinema_1.attr("playsinline",""),n.$cinema_1.attr("muted",""),n.$cinema_1.attr("preload","metadata"),n.$cinema_1.addClass("IIV")),null!=n.$media&&n.$media.length<=0&&(n.$media=null),null!=n.$media){n._media=n.$media.get(0);var r=n._media.src;if(void 0!==(c=n._media.currentSrc)&&null!=c&&""!=c&&null==c.match(/\/null$/))n._savedSrc=c;else if(void 0!==r&&null!=r&&""!=r&&null==r.match(/\/null$/))n._savedSrc=r;else if(n._media.canPlayType("audio/ogg"))n._media.src="data:audio/ogg;base64,T2dnUwACAAAAAAAAAADqnjMlAAAAAOyyzPIBHgF2b3JiaXMAAAAAAUAfAABAHwAAQB8AAEAfAACZAU9nZ1MAAAAAAAAAAAAA6p4zJQEAAAANJGeqCj3//////////5ADdm9yYmlzLQAAAFhpcGguT3JnIGxpYlZvcmJpcyBJIDIwMTAxMTAxIChTY2hhdWZlbnVnZ2V0KQAAAAABBXZvcmJpcw9CQ1YBAAABAAxSFCElGVNKYwiVUlIpBR1jUFtHHWPUOUYhZBBTiEkZpXtPKpVYSsgRUlgpRR1TTFNJlVKWKUUdYxRTSCFT1jFloXMUS4ZJCSVsTa50FkvomWOWMUYdY85aSp1j1jFFHWNSUkmhcxg6ZiVkFDpGxehifDA6laJCKL7H3lLpLYWKW4q91xpT6y2EGEtpwQhhc+211dxKasUYY4wxxsXiUyiC0JBVAAABAABABAFCQ1YBAAoAAMJQDEVRgNCQVQBABgCAABRFcRTHcRxHkiTLAkJDVgEAQAAAAgAAKI7hKJIjSZJkWZZlWZameZaouaov+64u667t6roOhIasBACAAAAYRqF1TCqDEEPKQ4QUY9AzoxBDDEzGHGNONKQMMogzxZAyiFssLqgQBKEhKwKAKAAAwBjEGGIMOeekZFIi55iUTkoDnaPUUcoolRRLjBmlEluJMYLOUeooZZRCjKXFjFKJscRUAABAgAMAQICFUGjIigAgCgCAMAYphZRCjCnmFHOIMeUcgwwxxiBkzinoGJNOSuWck85JiRhjzjEHlXNOSuekctBJyaQTAAAQ4AAAEGAhFBqyIgCIEwAwSJKmWZomipamiaJniqrqiaKqWp5nmp5pqqpnmqpqqqrrmqrqypbnmaZnmqrqmaaqiqbquqaquq6nqrZsuqoum65q267s+rZru77uqapsm6or66bqyrrqyrbuurbtS56nqqKquq5nqq6ruq5uq65r25pqyq6purJtuq4tu7Js664s67pmqq5suqotm64s667s2rYqy7ovuq5uq7Ks+6os+75s67ru2rrwi65r66os674qy74x27bwy7ouHJMnqqqnqq7rmarrqq5r26rr2rqmmq5suq4tm6or26os67Yry7aumaosm64r26bryrIqy77vyrJui67r66Ys67oqy8Lu6roxzLat+6Lr6roqy7qvyrKuu7ru+7JuC7umqrpuyrKvm7Ks+7auC8us27oxuq7vq7It/KosC7+u+8Iy6z5jdF1fV21ZGFbZ9n3d95Vj1nVhWW1b+V1bZ7y+bgy7bvzKrQvLstq2scy6rSyvrxvDLux8W/iVmqratum6um7Ksq/Lui60dd1XRtf1fdW2fV+VZd+3hV9pG8OwjK6r+6os68Jry8ov67qw7MIvLKttK7+r68ow27qw3L6wLL/uC8uq277v6rrStXVluX2fsSu38QsAABhwAAAIMKEMFBqyIgCIEwBAEHIOKQahYgpCCKGkEEIqFWNSMuakZM5JKaWUFEpJrWJMSuaclMwxKaGUlkopqYRSWiqlxBRKaS2l1mJKqcVQSmulpNZKSa2llGJMrcUYMSYlc05K5pyUklJrJZXWMucoZQ5K6iCklEoqraTUYuacpA46Kx2E1EoqMZWUYgupxFZKaq2kFGMrMdXUWo4hpRhLSrGVlFptMdXWWqs1YkxK5pyUzDkqJaXWSiqtZc5J6iC01DkoqaTUYiopxco5SR2ElDLIqJSUWiupxBJSia20FGMpqcXUYq4pxRZDSS2WlFosqcTWYoy1tVRTJ6XFklKMJZUYW6y5ttZqDKXEVkqLsaSUW2sx1xZjjqGkFksrsZWUWmy15dhayzW1VGNKrdYWY40x5ZRrrT2n1mJNMdXaWqy51ZZbzLXnTkprpZQWS0oxttZijTHmHEppraQUWykpxtZara3FXEMpsZXSWiypxNhirLXFVmNqrcYWW62ltVprrb3GVlsurdXcYqw9tZRrrLXmWFNtBQAADDgAAASYUAYKDVkJAEQBAADGMMYYhEYpx5yT0ijlnHNSKucghJBS5hyEEFLKnINQSkuZcxBKSSmUklJqrYVSUmqttQIAAAocAAACbNCUWByg0JCVAEAqAIDBcTRNFFXVdX1fsSxRVFXXlW3jVyxNFFVVdm1b+DVRVFXXtW3bFn5NFFVVdmXZtoWiqrqybduybgvDqKqua9uybeuorqvbuq3bui9UXVmWbVu3dR3XtnXd9nVd+Bmzbeu2buu+8CMMR9/4IeTj+3RCCAAAT3AAACqwYXWEk6KxwEJDVgIAGQAAgDFKGYUYM0gxphhjTDHGmAAAgAEHAIAAE8pAoSErAoAoAADAOeecc84555xzzjnnnHPOOeecc44xxhhjjDHGGGOMMcYYY4wxxhhjjDHGGGOMMcYYY0wAwE6EA8BOhIVQaMhKACAcAABACCEpKaWUUkoRU85BSSmllFKqFIOMSkoppZRSpBR1lFJKKaWUIqWgpJJSSimllElJKaWUUkoppYw6SimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaVUSimllFJKKaWUUkoppRQAYPLgAACVYOMMK0lnhaPBhYasBAByAwAAhRiDEEJpraRUUkolVc5BKCWUlEpKKZWUUqqYgxBKKqmlklJKKbXSQSihlFBKKSWUUkooJYQQSgmhlFRCK6mEUkoHoYQSQimhhFRKKSWUzkEoIYUOQkmllNRCSB10VFIpIZVSSiklpZQ6CKGUklJLLZVSWkqpdBJSKamV1FJqqbWSUgmhpFZKSSWl0lpJJbUSSkklpZRSSymFVFJJJYSSUioltZZaSqm11lJIqZWUUkqppdRSSiWlkEpKqZSSUmollZRSaiGVlEpJKaTUSimlpFRCSamlUlpKLbWUSkmptFRSSaWUlEpJKaVSSksppRJKSqmllFpJKYWSUkoplZJSSyW1VEoKJaWUUkmptJRSSymVklIBAEAHDgAAAUZUWoidZlx5BI4oZJiAAgAAQABAgAkgMEBQMApBgDACAQAAAADAAAAfAABHARAR0ZzBAUKCwgJDg8MDAAAAAAAAAAAAAACAT2dnUwAEAAAAAAAAAADqnjMlAgAAADzQPmcBAQA=";else{var l=void 0!==n._opts.playerPath?n._opts.playerPath:"";null!=l&&""!=l&&null==l.match(/\/$/)&&(l+="/"),n._media.src=l+"dummy.mp3"}}if(null!=n.$cinema_1&&(n._cinema_1=n.$cinema_1.get(0),"true"==n.$element.attr("data-borrowHtml5Media"))){var c;r=n._cinema_1.src;void 0!==(c=n._cinema_1.currentSrc)&&null!=c&&""!=c&&null==c.match(/^data:$/)?n._cinema_1_savedSrc=c:void 0!==r&&null!=r&&""!=r&&null==r.match(/^data:$/)&&(n._cinema_1_savedSrc=r),n._cinema_1_savedStyles={height:n._cinema_1.style.height,width:n._cinema_1.style.width,display:n._cinema_1.style.display};for(var p=0;p<n._vendorPrefixes.length;p++)n.$cinema_1.css(n._vendorPrefixes[p]+"transform")&&(n._cinema_1_savedStyles[n._vendorPrefixes[p]+"transform"]=n.$cinema_1.css(n._vendorPrefixes[p]+"transform"),n.$cinema_1.css(n._vendorPrefixes[p]+"transform","scale(1.0, 1.0)"))}n.$cinema_1.on("loadedmetadata",n._onCinema1LoadedMetadataBound),n.$cinema_1.on("canplay canplaythrough durationchange emptied ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting",n._onCinema1EventBound),n.$element.on("timeupdate",n._onTimeUpdateBound),n._bindMediaEvents()}return n}return o.default(h,[{key:"exit",value:function(){return this.$element&&this.$element.off("timeupdate",this._onTimeUpdateBound),null!=this.$cinema_1&&(this.$cinema_1.off("loadedmetadata",this._onCinema1LoadedMetadataBound),this.$cinema_1.off("canplay canplaythrough durationchange emptied ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting",this._onCinema1EventBound),this._cinema_1_savedStyles&&this.$cinema_1.css(this._cinema_1_savedStyles)),this._headController&&(null!=this._savedSrc&&null!=this._media&&(this._media.src=this._savedSrc,this._media.load()),this._headController.returnHtml5Audio(),this._savedSrc=null),this.$media=null,r.default(l.default(h.prototype),"exit",this).call(this)}},{key:"reset",value:function(){this.pause(),this._pendingPlay=!1,this._pendingSet=[],this._pretendStall=!1,this._loadstart=!1,this._loadedmetadata=!1,this._loadeddata=!1,this._canplay=!1,this._progress=!1,this._canplaythrough=!1}},{key:"set",value:function(e,t){var i=!1;if(void 0!==t)switch(e){case"src":t==this._src||"string"!=typeof t&&null!=t||(this._src=t,void 0!==this._src&&null!=this._src&&(this._pendingPlay=!1,this._pendingSet=[],this._pretendStall=!1,this._segmentNr=0,this._loadstart=!1,this._loadstart_audio=!1,this._loadedmetadata=!1,this._loadeddata=!1,this._canplay=!1,this._progress=!1,this._canplaythrough=!1,this._canplaythrough_audio=!1,this._playing=!1,this._frameRate=25,this._frameWidth=768,this._frameHeight=432,this._segmentDuration=.04,this._duration=0,this._media&&(this._media.src=this._src),this._cinema_1&&(this._cinema_1.src=this._src),this._muted&&null!=this.$element&&this.$element.triggerHandler("couldplay")),i=!0);break;case"volume":if(!(!isNaN(parseFloat(t))&&t>=0&&t<=1))return!1;t=t<=.01;case"muted":"boolean"==typeof t&&(t!=this._muted?(this._muted=t,this._muted?(this._media&&(this._currentTime=this._media.currentTime),this._playing||this._pendingPlay?(this._pretendMute=!0,this._playTimer(),this._media&&this._media.pause()):null!=this.$element&&this.$element.triggerHandler("volumechange")):(this._playing||this._pendingPlay?(this._pretendMute=!0,this._media&&this._media.play(),this._pauseTimer()):null!=this.$element&&this.$element.triggerHandler("volumechange"),this._canplaythrough_audio?this._media&&(this._media.currentTime=this._currentTime>.1?this._currentTime:.1):this._pendingSet.push({key:"currentTime",value:this._currentTime}))):null!=this.$element&&this.$element.triggerHandler("volumechange"),i=!0);break;case"currentTime":if(!isNaN(parseFloat(t))&&t>=0){if(this._muted){if(this._currentTime=t,this._playing){var n=new Date;this._time_start=n.getTime()-1e3*this._currentTime}null!=this.$element&&this.$element.triggerHandler("seeked")}else this._canplaythrough_audio?this._media.currentTime=t>.1?t:.1:this._pendingSet.push({key:e,value:t});i=!0}break;default:i=r.default(l.default(h.prototype),"set",this).call(this,e,t)}return i}},{key:"get",value:function(e){if("src"==e)return this._src;if("videoWidth"==e)return this._frameWidth;if("videoHeight"==e)return this._frameHeight;if("currentTime"==e){var t=null;if(this._muted)if(this._playing&&!this._stalled)t=((new Date).getTime()-this._time_start)/1e3;else t=this._currentTime;else t=this._media.currentTime;return t}return"duration"==e?this._canplaythrough_audio?this._media.duration:this._duration:"error"==e?this._error:r.default(l.default(h.prototype),"get",this).call(this,e)}},{key:"play",value:function(){return c.default("[Html5SeekHead] play currentTime: "+this._currentTime),this._pendingPlay=!0,this._muted?(this._pretendMute=!0,null!=this.$element&&this.$element.triggerHandler("play"),this._canplaythrough_audio||this._media&&this._media.load(),this._playTimer()):(this._pretendMute=!1,this._media&&this._media.play()),this._detections&&this._detections.isLinkedInAppIOS&&this._cinema_1.load(),!0}},{key:"pause",value:function(){return this._pendingPlay=!1,this._muted?(this._pretendMute=!0,this._pauseTimer(),this._playing&&(this._playing=!1,null!=this.$element&&this.$element.triggerHandler("pause"))):(this._pretendMute=!1,this._media&&this._media.pause()),!0}},{key:"load",value:function(){return this._muted?(this._currentTime=0,this._loadTimer(),this._pendingPlay&&this._playTimer()):this._media&&(this._media.load(),this._pendingPlay&&this._media.play()),!0}},{key:"_pauseTimer",value:function(){if(null!=this._timer&&(clearInterval(this._timer),this._timer=null),this._playing&&!this._stalled){var e=new Date;this._currentTime=(e.getTime()-this._time_start)/1e3}this._playing&&this._handleTimerTick()}},{key:"_playTimer",value:function(){var e=new Date;if(this._time_start=e.getTime()-1e3*this._currentTime,null==this._timer){var t=this;this._timer=setInterval((function(){t._handleTimerTick()}),200)}this._handleTimerTick()}},{key:"_loadTimer",value:function(){this._loadstart||(this._loadstart=!0,null!=this.$element&&this.$element.triggerHandler("loadstart")),this._loadedmetadata_cinema_1&&(this._loadedmetadata||(this._loadedmetadata=!0,null!=this.$element&&this.$element.triggerHandler("loadedmetadata"),null!=this.$element&&this.$element.triggerHandler("durationchange")),this._loadeddata||(this._loadeddata=!0,null!=this.$element&&this.$element.triggerHandler("loadeddata")),this._canplay||(this._canplay=!0,null!=this.$element&&this.$element.triggerHandler("canplay")),this._progress||(this._progress=!0,null!=this.$element&&this.$element.triggerHandler("progress")),this._canplaythrough||(this._canplaythrough=!0,null!=this.$element&&this.$element.triggerHandler("canplaythrough")))}},{key:"_handleTimerTick",value:function(){if(this._playing&&!this._stalled){var e=new Date;this._currentTime=(e.getTime()-this._time_start)/1e3}this._loadTimer(),this._loadedmetadata_cinema_1&&(this._currentTime<this._duration?(this._ended=!1,this._playing||(this._playing=!0,null!=this.$element&&this.$element.triggerHandler("playing"),this._pendingPlay=!1,this._animationFrameCallbackBound&&p.default.requestAnimFrame(this._animationFrameCallbackBound))):(null!=this._timer&&(clearInterval(this._timer),this._timer=null),this._currentTime=this._duration,this._playing&&(this._playing=!1,null!=this.$element&&this.$element.triggerHandler("pause"),this._currentTime=this._duration),this._ended||(this._ended=!0,null!=this.$element&&this.$element.triggerHandler("ended"))))}},{key:"restretch",value:function(e,t){if(null!=this.$element&&this.$element.parent().length>0){var i=this.$element.parent()[0];if(void 0!==i&&null!=i){var n=void 0!==i.style.width&&i.style.width.match(/px/)?parseInt(i.style.width.replace("px","")):this.$element.width(),a=void 0!==i.style.height&&i.style.height.match(/px/)?parseInt(i.style.height.replace("px","")):this.$element.height();n>0&&a>0&&this.$cinema_A&&(this.$cinema_A.attr("width",n),this.$cinema_A.attr("height",a))}}}},{key:"_onTimeUpdate",value:function(e){var t=this.get("currentTime");if(t<this._duration){var i=1+Math.floor(t/this._segmentDuration);this.$cinema_A=this.$cinema_1,this.$cinema_A.get(0).currentTime=(i-1)*this._segmentDuration}}},{key:"_onCinema1LoadedMetadata",value:function(e){this._loadedmetadata_cinema_1=!0,this._cinema_1&&(this._frameRate=25,this._cinema_1.videoWidth&&this._cinema_1.videoHeight&&(this._frameWidth=parseInt(this._cinema_1.videoWidth),this._frameHeight=parseInt(this._cinema_1.videoHeight)),this._segmentDuration=1/this._frameRate)}},{key:"_onCinema1Event",value:function(e){e.stopPropagation()}},{key:"_onEvent",value:function(e){if(e.stopPropagation(),this._loadstart_audio||"loadstart"==e.type){switch(e.type){case"timeupdate":if(this._media&&this._media.currentTime>=this._duration){if(this._playing&&this._media.pause(),this._ended)return;this._ended=!0,e.type="ended"}break;case"loadstart":if(this._media.currentSrc.replace(/^[a-z:]*\/\//,"")!=this._src.replace(/^[a-z:]*\/\//,""))return;if(this._loadstart_audio=!0,this._loadstart)return;this._loadstart=!0,(this._canAutoPlay||this.$media&&this.$media.data("canplay")||this._muted)&&null!=this.$element&&this.$element.triggerHandler("couldplay"),this._cinema_1&&this._cinema_1.load();break;case"loadedmetadata":if(this._loadedmetadata)return;this._loadedmetadata=!0,this._duration=this._media.duration;break;case"loadeddata":if(this._loadeddata)return;this._loadeddata=!0;break;case"canplay":if(this.$media&&this.$media.data("canplay",!0),this._canplay)return;this._canplay=!0,this._cinema_1&&this._cinema_1.load();break;case"progress":if(this._progress=!0,this._canplaythrough_audio)for(;this._pendingSet.length>0;){var t=this._pendingSet.shift();this.set(t.key,t.value)}break;case"canplaythrough":if(this._canplaythrough_audio=!0,!this._isiOS)for(;this._pendingSet.length>0;){t=this._pendingSet.shift();this.set(t.key,t.value)}if(this._canplaythrough)return;this._canplaythrough=!0;break;case"play":if(this._pretendMute)return;if(this._pretendStall)return;break;case"playing":this._ended=!1,this._pendingPlay=!1,this._havePlayed=!0,this._onWindowTouchstartBound&&window.removeEventListener("touchstart",this._onWindowTouchstartBound),this._pretendMute&&(this._pretendMute=!1,e.type="volumechange"),this._pretendStall&&(this._pretendStall=!1,e.type="volumechange"),this._playing||(this._playing=!0,this._animationFrameCallbackBound&&p.default.requestAnimFrame(this._animationFrameCallbackBound));break;case"pause":this._pretendMute?e.type="volumechange":this._pretendStall?e.type="stalled":this._playing=!1;break;case"stalled":if(this._pretendStall||this._pretendMute||this._muted)return;this._stalled=!0;break;case"error":if(this._pretendStall||this._pretendMute||this._muted)return;this._playing=!1,this._error=this._media.error;break;case"ended":if(this._playing=!1,this._isIE&&null!=this.$element&&this.$element.triggerHandler("pause"),this._isLiveStream&&this._isAndroid)return void(this._media&&this._media.play());this._ended=!0;break;case"abort":if(this._canplaythrough_audio=!1,this._pretendStall||this._pretendMute||this._muted)return;this._playing=!1,this._canplay=!1,this._canplaythrough=!1;break;case"seeking":if(this._pretendMute)return;this._seeking=!0;break;case"seeked":if(this._pretendMute)return;this._seeking=!1;break;case"durationchange":this._media&&this._media.duration>0&&(this._duration=this._duration>0?Math.min(this._media.duration,this._duration):this._media.duration)}null!=this.$element&&this.$element.triggerHandler(e.type)}}},{key:"_getMediaWidth",value:function(){return this._frameWidth}},{key:"_getMediaHeight",value:function(){return this._frameHeight}},{key:"_animationFrameCallback",value:function(){this._exiting||this._playing&&(this._animationFrameCallbackBound&&p.default.requestAnimFrame(this._animationFrameCallbackBound),this.$element.triggerHandler("timeupdate"))}}]),h}(h.default)})),parcelRequire.register("czAOs",(function(e,t){$parcel$export(e.exports,"default",(function(){return p})),parcelRequire("lDGnc");var i=parcelRequire("6YA9f"),n=parcelRequire("27Qiu"),a=parcelRequire("7CnHN"),s=parcelRequire("fBLaW"),o=parcelRequire("eamhc"),r=parcelRequire("7gftt"),l=parcelRequire("kVqNu"),u=parcelRequire("3DsR2"),d=parcelRequire("e06N2"),c=parcelRequire("cXwRy"),h=parcelRequire("cYwG5"),p=function(e){"use strict";i.default(c,e);var t=n.default(c);function c(e,i){var n;if(a.default(this,c),(n=t.call(this,e,i))._fps=10,n._startTime=0,n._fpsInterval=1e3/n._fps,n._then=0,n._elapsed=0,n._broker=null,n._helper=null,n._onLoadedMetaDataBound=n._onLoadedMetaData.bind(s.default(n)),n._onElementPlayingBound=n._onElementPlaying.bind(s.default(n)),null!=n.$element&&(n.$element.on("loadedmetadata",n._onLoadedMetaDataBound),n.$element.on("playing",n._onElementPlayingBound),void 0!==u.default.getService(n._opts.playerAliasOrId).getInstance("ComponentBroker"))){n._broker=u.default.getService(n._opts.playerAliasOrId).getInstance("ComponentBroker");var o=n._broker.getLoadedPlayerComponent("WebGL360Helper");o&&(n._helper=new o(n.$element,n._opts),n._helper.setMedia(n.$canvas))}return n}return o.default(c,[{key:"exit",value:function(){return this._helper&&(this._helper=this._helper.exit()),null!=this.$element&&(this.$element.off("loadedmetadata",this._onLoadedMetaDataBound),this.$element.off("playing",this._onElementPlayingBound)),r.default(l.default(c.prototype),"exit",this).call(this)}},{key:"play",value:function(e){d.default("[Html5SpriteGL360Head] play userAction: "+e),r.default(l.default(c.prototype),"play",this).call(this,e),this._helper&&this._helper.requestControls(e)}},{key:"load",value:function(e){r.default(l.default(c.prototype),"load",this).call(this,e),this._helper&&this._helper.requestControls(e)}},{key:"_onLoadedMetaData",value:function(e){this._videoWidth=this._getMediaWidth(),this._videoHeight=this._getMediaHeight(),this._videoWidth>0&&this._videoHeight>0&&this._helper&&this._helper.setMediaSize(this._videoWidth,this._videoHeight)}},{key:"_onElementPlaying",value:function(e){this._startTime=this._then=Date.now()}},{key:"_animationFrameCallback",value:function(){!this._exiting&&this._loadstart&&(this._animationFrameCallbackBound&&h.default.requestAnimFrame(this._animationFrameCallbackBound),this._playing&&this.$element.triggerHandler("timeupdate"),this._helper&&(this._elapsed=Date.now()-this._then,this._elapsed>this._fpsInterval&&(this._then=Date.now()-this._elapsed%this._fpsInterval,this._helper.renderContent()),this._helper.renderGL()))}},{key:"restretch",value:function(e,t){if(r.default(l.default(c.prototype),"restretch",this).call(this,e,t),null!=this.$element&&null!=this._media&&this.$element.closest(".bb-fitme")&&this.$element.closest(".bb-fitme")[0]){var i=this.$element.parent()[0],n=void 0!==i.style.width&&i.style.width.match(/px/)?parseInt(i.style.width.replace("px","")):this.$element.width(),a=void 0!==i.style.height&&i.style.height.match(/px/)?parseInt(i.style.height.replace("px","")):this.$element.height();n>0&&a>0&&this._helper&&this._helper.setSize(n,a)}}}]),c}(c.default)})),parcelRequire.register("cXwRy",(function(e,t){$parcel$export(e.exports,"default",(function(){return _})),parcelRequire("lDGnc");var i=parcelRequire("6YA9f"),n=parcelRequire("27Qiu"),a=parcelRequire("7CnHN"),s=parcelRequire("fBLaW"),o=parcelRequire("eamhc"),r=parcelRequire("7gftt"),l=parcelRequire("kVqNu");parcelRequire("6JR1F");var u=parcelRequire("hGJI5"),d=parcelRequire("3DsR2"),c=parcelRequire("e06N2"),h=parcelRequire("14b9r"),p=parcelRequire("cYwG5"),_=function(e){"use strict";i.default(h,e);var t=n.default(h);function h(e,i){var n;if(a.default(this,h),(n=t.call(this,e,i))._canControlVolume=!0,n._bufferTime=10,n._ajaxLoaded=!1,n._src=null,n._base=null,n._audioSrc=null,n._spriteSrc_pre=null,n._spriteSrc_post=null,n._frameRate=12,n._frameWidth=512,n._frameHeight=288,n._segmentDuration=1,n._end=0,n._segmentNr=0,n._maxSegmentNr=0,n._isSegmentLoaded={},n._isSegmentLoading={},n._avoidPreload=!1,n._pendingSet=[],n._pretendStall=!1,n._pretendMute=!1,n._havePlayed=!1,n._loadstart=!1,n._loadstart_audio=!1,n._loadedmetadata=!1,n._loadeddata=!1,n._progress=!1,n._canplaythrough_audio=!1,n._muted=!1,n._currentTime=0,n._time_start=0,n._headController=null,n._error=null,n._vendorPrefixes=["","-o-","-ms-","-moz-","-webkit-","-khtml-"],n._onTimeUpdateBound=n._onTimeUpdate.bind(s.default(n)),n._onSegmentLoadedBound=n._onSegmentLoaded.bind(s.default(n)),n._onSegmentErrorBound=n._onSegmentError.bind(s.default(n)),null!=n.$element){n.$element.addClass("bb-head-html5-sprite"),n.$element.append('<style type="text/css">.bb_wrapper .bb-head-html5-sprite audio{max-width:none !important;max-height:none !important;}</style>');var o=d.default.getService(n._opts.playerAliasOrId).getInstance("Detections");if(void 0!==o&&null!=o&&(n._avoidPreload=o.avoidPreload),"true"===n.$element.attr("data-useMediaManager")?(n._useMediaManager=!0,n._mediaManager&&(n.$media=$parcel$interopDefault(u)(n._mediaManager.getMedia("AUDIO")),$parcel$interopDefault(u).contains(n.$element.get(0),n.$media.get(0))||n.$media.prependTo(n.$element))):"true"==n.$element.attr("data-borrowHtml5Media")&&(n._headController=d.default.getService(n._opts.playerAliasOrId).getInstance("HeadController"),void 0!==n._headController&&null!=n._headController&&(n.$media=n._headController.borrowHtml5Audio())),null==n.$media&&(n.$media=$parcel$interopDefault(u)(document.createElement("audio")).appendTo(n.$element),n.$media.attr("playsinline",""),n.$media.attr("webkit-playsinline",""),n.$media.attr("controlsList","nodownload"),n.$media.attr("preload",n._avoidPreload?"none":"metadata"),"true"===n._opts.playoutData.autoMute&&(n._muted=!0,n._effectuateVolumeAndMuted()),n.$media.css({width:"100%",height:"100%"}),n.$media.css({maxWidth:"none",maxHeight:"none"})),null!=n.$media&&n.$media.length<=0&&(n.$media=null),null!=n.$media){n._media=n.$media.get(0);var r=n._media.src,l=n._media.currentSrc;if(void 0!==l&&null!=l&&""!=l&&null==l.match(/\/null$/))n._savedSrc=l;else if(void 0!==r&&null!=r&&""!=r&&null==r.match(/\/null$/))n._savedSrc=r;else if(n._media.canPlayType("audio/ogg"))n._media.src="data:audio/ogg;base64,T2dnUwACAAAAAAAAAADqnjMlAAAAAOyyzPIBHgF2b3JiaXMAAAAAAUAfAABAHwAAQB8AAEAfAACZAU9nZ1MAAAAAAAAAAAAA6p4zJQEAAAANJGeqCj3//////////5ADdm9yYmlzLQAAAFhpcGguT3JnIGxpYlZvcmJpcyBJIDIwMTAxMTAxIChTY2hhdWZlbnVnZ2V0KQAAAAABBXZvcmJpcw9CQ1YBAAABAAxSFCElGVNKYwiVUlIpBR1jUFtHHWPUOUYhZBBTiEkZpXtPKpVYSsgRUlgpRR1TTFNJlVKWKUUdYxRTSCFT1jFloXMUS4ZJCSVsTa50FkvomWOWMUYdY85aSp1j1jFFHWNSUkmhcxg6ZiVkFDpGxehifDA6laJCKL7H3lLpLYWKW4q91xpT6y2EGEtpwQhhc+211dxKasUYY4wxxsXiUyiC0JBVAAABAABABAFCQ1YBAAoAAMJQDEVRgNCQVQBABgCAABRFcRTHcRxHkiTLAkJDVgEAQAAAAgAAKI7hKJIjSZJkWZZlWZameZaouaov+64u667t6roOhIasBACAAAAYRqF1TCqDEEPKQ4QUY9AzoxBDDEzGHGNONKQMMogzxZAyiFssLqgQBKEhKwKAKAAAwBjEGGIMOeekZFIi55iUTkoDnaPUUcoolRRLjBmlEluJMYLOUeooZZRCjKXFjFKJscRUAABAgAMAQICFUGjIigAgCgCAMAYphZRCjCnmFHOIMeUcgwwxxiBkzinoGJNOSuWck85JiRhjzjEHlXNOSuekctBJyaQTAAAQ4AAAEGAhFBqyIgCIEwAwSJKmWZomipamiaJniqrqiaKqWp5nmp5pqqpnmqpqqqrrmqrqypbnmaZnmqrqmaaqiqbquqaquq6nqrZsuqoum65q267s+rZru77uqapsm6or66bqyrrqyrbuurbtS56nqqKquq5nqq6ruq5uq65r25pqyq6purJtuq4tu7Js664s67pmqq5suqotm64s667s2rYqy7ovuq5uq7Ks+6os+75s67ru2rrwi65r66os674qy74x27bwy7ouHJMnqqqnqq7rmarrqq5r26rr2rqmmq5suq4tm6or26os67Yry7aumaosm64r26bryrIqy77vyrJui67r66Ys67oqy8Lu6roxzLat+6Lr6roqy7qvyrKuu7ru+7JuC7umqrpuyrKvm7Ks+7auC8us27oxuq7vq7It/KosC7+u+8Iy6z5jdF1fV21ZGFbZ9n3d95Vj1nVhWW1b+V1bZ7y+bgy7bvzKrQvLstq2scy6rSyvrxvDLux8W/iVmqratum6um7Ksq/Lui60dd1XRtf1fdW2fV+VZd+3hV9pG8OwjK6r+6os68Jry8ov67qw7MIvLKttK7+r68ow27qw3L6wLL/uC8uq277v6rrStXVluX2fsSu38QsAABhwAAAIMKEMFBqyIgCIEwBAEHIOKQahYgpCCKGkEEIqFWNSMuakZM5JKaWUFEpJrWJMSuaclMwxKaGUlkopqYRSWiqlxBRKaS2l1mJKqcVQSmulpNZKSa2llGJMrcUYMSYlc05K5pyUklJrJZXWMucoZQ5K6iCklEoqraTUYuacpA46Kx2E1EoqMZWUYgupxFZKaq2kFGMrMdXUWo4hpRhLSrGVlFptMdXWWqs1YkxK5pyUzDkqJaXWSiqtZc5J6iC01DkoqaTUYiopxco5SR2ElDLIqJSUWiupxBJSia20FGMpqcXUYq4pxRZDSS2WlFosqcTWYoy1tVRTJ6XFklKMJZUYW6y5ttZqDKXEVkqLsaSUW2sx1xZjjqGkFksrsZWUWmy15dhayzW1VGNKrdYWY40x5ZRrrT2n1mJNMdXaWqy51ZZbzLXnTkprpZQWS0oxttZijTHmHEppraQUWykpxtZara3FXEMpsZXSWiypxNhirLXFVmNqrcYWW62ltVprrb3GVlsurdXcYqw9tZRrrLXmWFNtBQAADDgAAASYUAYKDVkJAEQBAADGMMYYhEYpx5yT0ijlnHNSKucghJBS5hyEEFLKnINQSkuZcxBKSSmUklJqrYVSUmqttQIAAAocAAACbNCUWByg0JCVAEAqAIDBcTRNFFXVdX1fsSxRVFXXlW3jVyxNFFVVdm1b+DVRVFXXtW3bFn5NFFVVdmXZtoWiqrqybduybgvDqKqua9uybeuorqvbuq3bui9UXVmWbVu3dR3XtnXd9nVd+Bmzbeu2buu+8CMMR9/4IeTj+3RCCAAAT3AAACqwYXWEk6KxwEJDVgIAGQAAgDFKGYUYM0gxphhjTDHGmAAAgAEHAIAAE8pAoSErAoAoAADAOeecc84555xzzjnnnHPOOeecc44xxhhjjDHGGGOMMcYYY4wxxhhjjDHGGGOMMcYYY0wAwE6EA8BOhIVQaMhKACAcAABACCEpKaWUUkoRU85BSSmllFKqFIOMSkoppZRSpBR1lFJKKaWUIqWgpJJSSimllElJKaWUUkoppYw6SimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaVUSimllFJKKaWUUkoppRQAYPLgAACVYOMMK0lnhaPBhYasBAByAwAAhRiDEEJpraRUUkolVc5BKCWUlEpKKZWUUqqYgxBKKqmlklJKKbXSQSihlFBKKSWUUkooJYQQSgmhlFRCK6mEUkoHoYQSQimhhFRKKSWUzkEoIYUOQkmllNRCSB10VFIpIZVSSiklpZQ6CKGUklJLLZVSWkqpdBJSKamV1FJqqbWSUgmhpFZKSSWl0lpJJbUSSkklpZRSSymFVFJJJYSSUioltZZaSqm11lJIqZWUUkqppdRSSiWlkEpKqZSSUmollZRSaiGVlEpJKaTUSimlpFRCSamlUlpKLbWUSkmptFRSSaWUlEpJKaVSSksppRJKSqmllFpJKYWSUkoplZJSSyW1VEoKJaWUUkmptJRSSymVklIBAEAHDgAAAUZUWoidZlx5BI4oZJiAAgAAQABAgAkgMEBQMApBgDACAQAAAADAAAAfAABHARAR0ZzBAUKCwgJDg8MDAAAAAAAAAAAAAACAT2dnUwAEAAAAAAAAAADqnjMlAgAAADzQPmcBAQA=";else{var c=void 0!==n._opts.playerPath?n._opts.playerPath:"";null!=c&&""!=c&&null==c.match(/\/$/)&&(c+="/"),n._media.src=c+"dummy.mp3"}}n.$cinema_1=$parcel$interopDefault(u)(document.createElement("img")).appendTo(n.$element),n.$cinema_1.css({display:"none"}),n.$cinema_1.get(0).crossOrigin="",n.$cinema_2=$parcel$interopDefault(u)(document.createElement("img")).appendTo(n.$element),n.$cinema_2.css({display:"none"}),n.$cinema_2.get(0).crossOrigin="",n.$canvas=$parcel$interopDefault(u)(document.createElement("canvas")).appendTo(n.$element),n.$canvas.css({width:"100%",height:"100%",maxWidth:"none",maxHeight:"none",position:"absolute",top:0,left:0,zIndex:3}),n.canvasImageContext=n.$canvas.get(0).getContext("2d"),n.$element.on("timeupdate",n._onTimeUpdateBound),n._bindMediaEvents()}return n}return o.default(h,[{key:"exit",value:function(){var e;return null===(e=this.$element)||void 0===e||e.off("timeupdate",this._onTimeUpdateBound),this._headController&&(null!=this._savedSrc&&null!=this._media&&(this._media.src=this._savedSrc,this._loadMedia(!1)),this._headController.returnHtml5Audio(),this._savedSrc=null),this.$media=null,r.default(l.default(h.prototype),"exit",this).call(this)}},{key:"reset",value:function(){this.pause(),this._pendingPlay=!1,this._pendingSet=[],this._pretendStall=!1,this._ajaxLoaded=!1,this._loadstart=!1,this._loadedmetadata=!1,this._loadeddata=!1,this._canplay=!1,this._progress=!1,this._canplaythrough=!1}},{key:"set",value:function(e,t){var i=!1;if(void 0!==t)switch(e){case"src":if(t!=this._src&&("string"==typeof t||null==t)){if(this._src=t,void 0!==this._src&&null!=this._src){var n=this;this._base=this._src.replace(/\/[^\/]*$/,"/"),this._ajaxLoaded=!1,p.fetchData(this._src).then((function(e){e?n._ajaxSuccessHandler(e):n._ajaxErrorHandler(null,"error","No Data")})).catch((function(e){n._ajaxErrorHandler(null,e.status,e.message)}))}i=!0}break;case"volume":if(!(!isNaN(parseFloat(t))&&t>=0&&t<=1))return!1;t=t<=.01;case"muted":"boolean"==typeof t&&(t!=this._muted?(this._muted=t,this._muted?(this._media&&(this._currentTime=this._media.currentTime),this._playing||this._pendingPlay?(this._pretendMute=!0,this._playTimer(),this._pauseMedia()):null!=this.$element&&this.$element.triggerHandler("volumechange")):(this._playing||this._pendingPlay?(this._pretendMute=!0,this._playMedia(!1),this._pauseTimer()):null!=this.$element&&this.$element.triggerHandler("volumechange"),this._canplaythrough_audio?this._media&&(this._media.currentTime=this._currentTime>.1?this._currentTime:.1):this._pendingSet.push({key:"currentTime",value:this._currentTime}))):null!=this.$element&&this.$element.triggerHandler("volumechange"),i=!0);break;case"currentTime":if(!isNaN(parseFloat(t))&&t>=0){if(this._muted){if(this._currentTime=t,this._playing){var a=new Date;this._time_start=a.getTime()-1e3*this._currentTime}null!=this.$element&&this.$element.triggerHandler("seeked")}else this._canplaythrough_audio?this._media&&(this._media.currentTime=t>.1?t:.1):this._pendingSet.push({key:e,value:t});i=!0}break;default:i=r.default(l.default(h.prototype),"set",this).call(this,e,t)}return i}},{key:"get",value:function(e){if("src"==e)return this._src;if("videoWidth"==e)return this._frameWidth;if("videoHeight"==e)return this._frameHeight;if("currentTime"==e){var t=null;if(this._muted)if(this._playing&&!this._stalled)t=((new Date).getTime()-this._time_start)/1e3;else t=this._currentTime;else t=this._media.currentTime;return t}return"duration"==e?this._canplaythrough_audio?this._media.duration:this._duration:"error"==e?this._error:r.default(l.default(h.prototype),"get",this).call(this,e)}},{key:"play",value:function(e){return c.default("[Html5SpriteHead] play currentTime: "+this._currentTime),this._pendingPlay=!0,this._muted?(this._pretendMute=!0,null!=this.$element&&this.$element.triggerHandler("play"),this._canplaythrough_audio||this._loadMedia(e),this._playTimer()):(this._pretendMute=!1,this._effectuateVolumeAndMuted(),this._playMedia(e)),!0}},{key:"pause",value:function(){return this._pendingPlay=!1,this._muted?(this._pretendMute=!0,this._pauseTimer(),this._playing&&(this._playing=!1,null!=this.$element&&this.$element.triggerHandler("pause"))):(this._pretendMute=!1,this._pauseMedia()),!0}},{key:"load",value:function(e){return this._muted?(this._currentTime=0,this._loadTimer(),this._pendingPlay&&this._playTimer()):(this._loadMedia(e),this._pendingPlay&&(this._effectuateVolumeAndMuted(),this._playMedia(e))),!0}},{key:"_pauseTimer",value:function(){if(null!=this._timer&&(clearInterval(this._timer),this._timer=null),this._playing&&!this._stalled){var e=new Date;this._currentTime=(e.getTime()-this._time_start)/1e3}this._playing&&this._handleTimerTick()}},{key:"_playTimer",value:function(){var e=new Date;if(this._time_start=e.getTime()-1e3*this._currentTime,null==this._timer){var t=this;this._timer=setInterval((function(){t._handleTimerTick()}),200)}this._handleTimerTick()}},{key:"_loadTimer",value:function(){this._loadstart||(this._loadstart=!0,null!=this.$element&&this.$element.triggerHandler("loadstart")),this._ajaxLoaded&&(this._loadedmetadata||(this._loadedmetadata=!0,null!=this.$element&&this.$element.triggerHandler("loadedmetadata"),null!=this.$element&&this.$element.triggerHandler("durationchange")),this._loadeddata||(this._loadeddata=!0,null!=this.$element&&this.$element.triggerHandler("loadeddata")),this._canplay||(this._canplay=!0,null!=this.$element&&this.$element.triggerHandler("canplay")),this._progress||(this._progress=!0,null!=this.$element&&this.$element.triggerHandler("progress")),this._canplaythrough||(this._canplaythrough=!0,null!=this.$element&&this.$element.triggerHandler("canplaythrough")))}},{key:"_handleTimerTick",value:function(){if(this._playing&&!this._stalled){var e=new Date;this._currentTime=(e.getTime()-this._time_start)/1e3}this._loadTimer(),this._ajaxLoaded&&(this._currentTime<this._duration?(this._ended=!1,this._playing||(this._playing=!0,null!=this.$element&&this.$element.triggerHandler("playing"),this._pendingPlay=!1,this._animationFrameCallbackBound&&p.default.requestAnimFrame(this._animationFrameCallbackBound))):(null!=this._timer&&(clearInterval(this._timer),this._timer=null),this._currentTime=this._duration,this._playing&&(this._playing=!1,null!=this.$element&&this.$element.triggerHandler("pause"),this._currentTime=this._duration),this._ended||(this._ended=!0,null!=this.$element&&this.$element.triggerHandler("ended"))))}},{key:"restretch",value:function(e,t){if(null!=this.$element&&this.$element.parent().length>0){var i=this.$element.parent()[0];if(void 0!==i&&null!=i){var n=void 0!==i.style.width&&i.style.width.match(/px/)?parseInt(i.style.width.replace("px","")):this.$element.width(),a=void 0!==i.style.height&&i.style.height.match(/px/)?parseInt(i.style.height.replace("px","")):this.$element.height();if(n>0&&a>0){this.$canvas.css({width:"",height:""}),this.$canvas.attr("width",n),this.$canvas.attr("height",a);var s=this.get("currentTime"),o=Math.floor(s%this._segmentDuration*this._frameRate);try{this.canvasImageContext.drawImage(this.$cinema_A.get(0),o*this._frameWidth,0,this._frameWidth,this._frameHeight,0,0,this.$canvas.width(),this.$canvas.height())}catch(e){}}}}}},{key:"_ajaxSuccessHandler",value:function(e,t,i){if(void 0!==e&&null!=e){if(this._pendingPlay=!1,this._pendingSet=[],this._pretendStall=!1,this._segmentNr=0,this._maxSegmentNr=0,this._isSegmentLoaded={},this._isSegmentLoading={},this._loadstart=!1,this._loadstart_audio=!1,this._loadedmetadata=!1,this._loadeddata=!1,this._canplay=!1,this._progress=!1,this._canplaythrough=!1,this._canplaythrough_audio=!1,this._playing=!1,this._audioSrc="audio.mp3",this._spriteSrc_pre="sequence-",this._spriteSrc_post=".jpg",this._frameRate=12,this._frameWidth=512,this._frameHeight=288,this._segmentDuration=1,this._end=0,this._duration=0,this._audioSrc=e.audioSrc,void 0!==e.spriteSrc&&null!=e.spriteSrc){var n=e.spriteSrc.split("%d");this._spriteSrc_pre=n.length>0?n[0]:"",this._spriteSrc_post=n.length>1?n[1]:""}this._frameRate=parseFloat(e.frameRate),this._frameWidth=parseInt(e.frameWidth),this._frameHeight=parseInt(e.frameHeight),this._segmentDuration=parseFloat(e.segmentDuration),this._end=parseInt(e.end),this._duration=this._segmentDuration*this._end,this._maxSegmentNr=Math.min(1+Math.floor(this._bufferTime/this._segmentDuration),3),void 0!==e.base&&""!=e.base&&(this._base=e.base),this._ajaxLoaded=!0,null!=this._audioSrc?this._media.src=this._base+this._audioSrc:this._loadstart||(this._loadstart=!0,null!=this.$element&&this.$element.triggerHandler("loadstart")),this._muted&&null!=this.$element&&this.$element.triggerHandler("couldplay")}}},{key:"_ajaxErrorHandler",value:function(e,t,i){this._error={error:"manifest request failed",code:2},null!=this.$element&&this.$element.triggerHandler("error")}},{key:"_preloadSegment",value:function(e){this._isSegmentLoading["#"+e]=!0;var t=new Image;t.crossOrigin="",$parcel$interopDefault(u)(t).on("load",{segmentNr:e},this._onSegmentLoadedBound),$parcel$interopDefault(u)(t).on("error",{segmentNr:e},this._onSegmentErrorBound),t.src=this._base+this._spriteSrc_pre+e+this._spriteSrc_post}},{key:"_preloadNextSegment",value:function(e){if(!(e<this._segmentNr))for(var t=e+1;t<=this._maxSegmentNr;){if(!this._isSegmentLoaded["#"+t]&&!this._isSegmentLoading["#"+t]){this._preloadSegment(t);break}t++}}},{key:"_onSegmentLoaded",value:function(e){var t=e.data.segmentNr;t>=this._maxSegmentNr-1&&this._stalled&&(this._stalled=!1,this._muted?this._playTimer():this._pretendStall&&this._playMedia(!1)),this._isSegmentLoading["#"+t]&&(this._preloadNextSegment(t),this._isSegmentLoaded["#"+t]=!0,this._isSegmentLoading["#"+t]=!1)}},{key:"_onSegmentError",value:function(e){var t=e.data.segmentNr;this._isSegmentLoading["#"+t]&&(this._preloadNextSegment(t),this._isSegmentLoaded["#"+t]=!1,this._isSegmentLoading["#"+t]=!1)}},{key:"_onTimeUpdate",value:function(e){var t=this.get("currentTime");if(this._maxSegmentNr=Math.min(1+Math.floor((t+this._bufferTime)/this._segmentDuration),this._end),t<this._duration){var i=1+Math.floor(t/this._segmentDuration);if(this._isSegmentLoaded["#"+i]){var n=Math.floor(t%this._segmentDuration*this._frameRate);if(i!=this._segmentNr){this._segmentNr=i,this._segmentNr%2?(this.$cinema_A=this.$cinema_1,this.$cinema_B=this.$cinema_2):(this.$cinema_A=this.$cinema_2,this.$cinema_B=this.$cinema_1),this.$cinema_A.attr("data-segmentNr")!=i&&(this.$cinema_A.attr("src",this._base+this._spriteSrc_pre+this._segmentNr+this._spriteSrc_post),this.$cinema_A.attr("data-segmentNr",i)),this.$cinema_A.css("z-index",2),this.$cinema_B.css("z-index",1);for(var a=i+1;a<=this._maxSegmentNr&&!this._isSegmentLoading["#"+a];)a++;a>this._maxSegmentNr&&this._preloadNextSegment(i)}try{this.canvasImageContext.drawImage(this.$cinema_A.get(0),n*this._frameWidth,0,this._frameWidth,this._frameHeight,0,0,this.$canvas.width(),this.$canvas.height())}catch(e){}}else this._stalled||(this._stalled=!0,this._muted?(this._pauseTimer(),null!=this.$element&&this.$element.triggerHandler("stalled")):(this._pretendStall=!0,this._pauseMedia()),i<=this._maxSegmentNr&&(this._isSegmentLoaded["#"+i]||this._isSegmentLoading["#"+i]||this._preloadSegment(i)))}var s=i+1;this._isSegmentLoaded["#"+s]&&s!=this._segmentNr_B&&(this._segmentNr_B=s,this.$cinema_B.attr("src",this._base+this._spriteSrc_pre+this._segmentNr_B+this._spriteSrc_post),this.$cinema_B.attr("data-segmentNr",s))}},{key:"_onEvent",value:function(e){if(e.stopPropagation(),this._loadstart_audio||"loadstart"==e.type){switch(e.type){case"timeupdate":if(this._media&&this._media.currentTime>=this._duration){if(this._playing&&this._pauseMedia(),this._ended)return;this._ended=!0,e.type="ended"}break;case"loadstart":if(1<=this._maxSegmentNr&&(this._isSegmentLoaded["#1"]||this._isSegmentLoading["#1"]||this._preloadSegment(1)),this._media.currentSrc.replace(/^[a-z:]*\/\//,"")!=(this._base+this._audioSrc).replace(/^[a-z:]*\/\//,""))return;if(this._loadstart_audio=!0,this._loadstart)return;this._loadstart=!0,(this._canAutoPlay||this.$media&&this.$media.data("canplay")||this._muted)&&null!=this.$element&&this.$element.triggerHandler("couldplay");break;case"loadedmetadata":if(this._loadedmetadata)return;this._loadedmetadata=!0;break;case"loadeddata":if(this._loadeddata)return;this._loadeddata=!0;break;case"canplay":if(this.$media&&this.$media.data("canplay",!0),this._canplay)return;this._canplay=!0;break;case"progress":if(this._progress=!0,this._canplaythrough_audio)for(;this._pendingSet.length>0;){var t=this._pendingSet.shift();this.set(t.key,t.value)}break;case"canplaythrough":if(this._canplaythrough_audio=!0,!this._isiOS)for(;this._pendingSet.length>0;){t=this._pendingSet.shift();this.set(t.key,t.value)}if(this._canplaythrough)return;this._canplaythrough=!0;break;case"play":if(this._pretendMute)return;if(this._pretendStall)return;break;case"playing":this._ended=!1,this._pendingPlay=!1,this._havePlayed=!0,this._onWindowTouchstartBound&&window.removeEventListener("touchstart",this._onWindowTouchstartBound),this._pretendMute&&(this._pretendMute=!1,e.type="volumechange"),this._pretendStall&&(this._pretendStall=!1,e.type="volumechange"),this._playing||(this._playing=!0,this._animationFrameCallbackBound&&p.default.requestAnimFrame(this._animationFrameCallbackBound));break;case"pause":this._pretendMute?e.type="volumechange":this._pretendStall?e.type="stalled":this._playing=!1;break;case"stalled":if(this._pretendStall||this._pretendMute||this._muted)return;this._stalled=!0;break;case"error":if(this._pretendStall||this._pretendMute||this._muted)return;this._playing=!1,this._error=this._media.error;break;case"ended":if(this._playing=!1,this._isIE&&null!=this.$element&&this.$element.triggerHandler("pause"),this._isLiveStream&&this._isAndroid)return void this._playMedia(!1);this._ended=!0;break;case"abort":if(this._canplaythrough_audio=!1,this._pretendStall||this._pretendMute||this._muted)return;this._playing=!1,this._canplay=!1,this._canplaythrough=!1;break;case"seeking":if(this._pretendMute)return;this._seeking=!0;break;case"seeked":if(this._pretendMute)return;this._seeking=!1;break;case"durationchange":this._media&&this._media.duration>0&&(this._duration=this._duration>0?Math.min(this._media.duration,this._duration):this._media.duration)}null!=this.$element&&this.$element.triggerHandler(e.type)}}},{key:"_getMediaWidth",value:function(){return this._frameWidth}},{key:"_getMediaHeight",value:function(){return this._frameHeight}},{key:"_animationFrameCallback",value:function(){this._exiting||this._playing&&(this._animationFrameCallbackBound&&p.default.requestAnimFrame(this._animationFrameCallbackBound),this.$element.triggerHandler("timeupdate"))}}]),h}(h.default)})),parcelRequire.register("5CbwX",(function(e,t){$parcel$export(e.exports,"default",(function(){return _})),parcelRequire("lDGnc");var i=parcelRequire("6YA9f"),n=parcelRequire("27Qiu"),a=parcelRequire("7CnHN"),s=parcelRequire("fBLaW"),o=parcelRequire("eamhc"),r=parcelRequire("7gftt"),l=parcelRequire("kVqNu"),u=parcelRequire("jxjxM");parcelRequire("6JR1F");var d=parcelRequire("hGJI5"),c=parcelRequire("3DsR2"),h=parcelRequire("14b9r"),p=parcelRequire("cYwG5"),_=function(e){"use strict";i.default(h,e);var t=n.default(h);function h(e,i){var n;if(a.default(this,h),(n=t.call(this,e,i))._headController=null,n._savedAttrCrossOrigin=null,n._savedSrc=null,n._savedStyles=null,n._textTrackVisible=!0,n._avoidPreload=!1,n._objectFit=!1,n._isAndroid=!1,n._isSafari=!1,n._unmuteAfterLoad=null,n._canPlayHLS=!1,n._vendorPrefixes=["","-o-","-ms-","-moz-","-webkit-","-khtml-"],n._onClickToPlayLayerClickBound=n._onClickToPlayLayerClick.bind(s.default(n)),n._onFullscreenChangeBound=n._onFullscreenChange.bind(s.default(n)),n._onMediaEnterFullscreenBound=n._onMediaEnterFullscreen.bind(s.default(n)),n._onMediaLeaveFullscreenBound=n._onMediaLeaveFullscreen.bind(s.default(n)),null!=n.$element){n.$element.addClass("bb-head-html5-video");var o=n.$element.closest(".bb_wrapper");n._api=c.default.getService(n._opts.playerAliasOrId).getInstance("PublicAPI");var r,l=c.default.getService(n._opts.playerAliasOrId).getInstance("Detections");if(void 0!==l&&null!=l&&(n._objectFit=l.objectFit,n._isAndroid=l.isAndroid,n._isSafari=l.isSafari,n._isAndroidNative=l.isAndroidNative,n._avoidPreload=l.avoidPreload,n._canPlayHLS=l.canPlayHLS),n._shouldPlayInline="true"===n.$element.attr("data-shouldPlayInline"),"true"===n.$element.attr("data-useMediaManager")?(n._useMediaManager=!0,n._mediaManager&&(n.$media=$parcel$interopDefault(d)(n._mediaManager.getMedia("VIDEO")),$parcel$interopDefault(d).contains(n.$element.get(0),n.$media.get(0))||n.$media.prependTo(n.$element))):"true"==n.$element.attr("data-borrowHtml5Media")&&(n._headController=c.default.getService(n._opts.playerAliasOrId).getInstance("HeadController"),void 0!==n._headController&&null!=n._headController?(n.$media=n._headController.borrowHtml5Video(),n.$media.attr("playsinline",""),n.$media.attr("webkit-playsinline",""),n.$media.attr("controlsList","nodownload"),"true"===n.$element.attr("data-noCrossOrigin")&&(n._savedAttrCrossOrigin=n.$media.attr("crossOrigin"),n.$media.removeAttr("crossOrigin")),n._canAutoPlay=n._canAutoPlay||n._headController._canplay):(n.$media=o.find("video.bb-media-element"),n.$media.attr("playsinline",""),n.$media.attr("webkit-playsinline",""),n.$media.attr("controlsList","nodownload"))),null==n.$media)n.$media=$parcel$interopDefault(d)(document.createElement("video")).appendTo(n.$element),n.$media.attr("webkit-playsinline",""),n.$media.attr("playsinline",""),n.$media.attr("controlsList","nodownload"),n.$media.attr("preload",n._avoidPreload?"none":"metadata"),n.$media.attr("aria-hidden","true"),"true"==="".concat(null===(r=s.default(n))||void 0===r?void 0:r._opts.playoutData.useCors)&&n.$media.attr("crossorigin",""),n.$media.css({width:"100%",height:"100%"}),n.$media.css({maxWidth:"none",maxHeight:"none"}),"true"===n._opts.playoutData.autoMute&&(n._muted=!0,n._effectuateVolumeAndMuted());if(n.$media.css({maxWidth:"none",maxHeight:"none",display:"block",top:0,left:0,position:"absolute"}),n._opts.playoutData&&n._updateFromPlayout(n._opts.playoutData),n.$element.append('<style type="text/css">.bb_wrapper .bb-head-html5-video video{max-width:none !important;max-height:none !important;}</style>'),i.noSkinMode?(n.$clickToPlayLayer=$parcel$interopDefault(d)('<div style="width:100%;height:100%;position:absolute;top:0;left:0;" class="bb-click-to-play-layer"></div>'),n.$clickToPlayLayer.on("click",n._onClickToPlayLayerClickBound),n.$element.append(n.$clickToPlayLayer)):n.$element.append('<div style="width:100%;height:100%;position:absolute;top:0;left:0;"></div>'),null!=n.$media&&n.$media.length<=0&&(n.$media=null),null!=n.$media){n._media=n.$media.get(0);var u=n._media.src,p=n._media.currentSrc;if(null!=p&&""!=p&&null==p.match(/\/null$/)?n._savedSrc=p:null!=u&&""!=u&&null==u.match(/\/null$/)&&(n._savedSrc=u),"true"==n.$element.attr("data-borrowHtml5Media")){n._savedStyles={height:n._media.style.height,width:n._media.style.width},n.$media.css({height:"100%",width:"100%"});for(var _=0;_<n._vendorPrefixes.length;_++)n.$media.css(n._vendorPrefixes[_]+"transform")&&(n._savedStyles[n._vendorPrefixes[_]+"transform"]=n.$media.css(n._vendorPrefixes[_]+"transform"),n.$media.css(n._vendorPrefixes[_]+"transform","scale(1.0, 1.0)"));n.$media.css("object-fit")&&(n._savedStyles["object-fit"]=n.$media.css("object-fit"),n.$media.css("object-fit","contain"))}else n._objectFit&&n.$media.css("object-fit","fill");n._media.webkitCurrentPlaybackTargetIsWireless&&(n._media.setAttribute("preload","metadata"),n._media.setAttribute("x-webkit-airplay","allow"),n._antiFlickerHack&&n.$media&&(n._antiFlickerHack=!1,n.$media.css("visibility","visible")),n._isiOS&&n._useMediaManager&&n._mediaManager&&n._mediaManager.setSingleMediaMode(n._media.tagName)),n._canPlayHLS&&n.$media.prepend('<style type="text/css">\n\t\t\t\t\t\t::cue(.white) { color: rgba(255,255,255,1); }\n\t\t\t\t\t\t::cue(.lime) { color: rgba(0,255,0,1); }\n\t\t\t\t\t\t::cue(.cyan) { color: rgba(0,255,255,1); }\n\t\t\t\t\t\t::cue(.red) { color: rgba(255,0,0,1); }\n\t\t\t\t\t\t::cue(.yellow) { color: rgba(255,255,0,1); }\n\t\t\t\t\t\t::cue(.magenta) { color: rgba(255,0,255,1); }\n\t\t\t\t\t\t::cue(.blue) { color: rgba(0,0,255,1); }\n\t\t\t\t\t\t::cue(.black) { color: rgba(0,0,0,1); }\n\n\t\t\t\t\t\t::cue(.bg_white) { background-color: rgba(255,255,255,1); }\n\t\t\t\t\t\t::cue(.bg_lime) { background-color: rgba(0,255,0,1); }\n\t\t\t\t\t\t::cue(.bg_cyan) { background-color: rgba(0,255,255,1); }\n\t\t\t\t\t\t::cue(.bg_red) { background-color: rgba(255,0,0,1); }\n\t\t\t\t\t\t::cue(.bg_yellow) { background-color: rgba(255,255,0,1); }\n\t\t\t\t\t\t::cue(.bg_magenta) { background-color: rgba(255,0,255,1); }\n\t\t\t\t\t\t::cue(.bg_blue) { background-color: rgba(0,0,255,1); }\n\t\t\t\t\t\t::cue(.bg_black) { background-color: rgba(0,0,0,1); }\n\t\t\t\t\t\t</style>')}var m=i.clipData&&"mainroll"===i.clipData.mediatype,f=!1;i.noSkinMode&&i.addNativeControls&&(n.$media.attr("controls","controls"),n._api&&!m&&n.$media.attr("poster",n._api.getThumbnail()),n._api&&l&&parseFloat(l.androidVersion)<3&&n.$media.on("click",(function(){f||(this.play(),f=!0)}))),n._$canvas=$parcel$interopDefault(d)("<canvas />"),n._$canvas.css({left:0,top:0,width:"100%",height:"100%",position:"absolute",display:"none"}),n.$element.append(n._$canvas),n._bindMediaEvents()}return n}return o.default(h,[{key:"_hideCanvas",value:function(){if(this._$canvas&&this._$canvas[0]&&"none"!==this._$canvas[0].style.display){var e=this;setTimeout((function(){e._$canvas[0].style.display="none",!0===e._unmuteAfterLoad&&e._safariMuteWhileLoading&&(e._unmuteAfterLoad=null,e.set("muted",!1))}),75)}}},{key:"_writeToCanvas",value:function(){if(this._$canvas&&this._media)try{var e=this._$canvas[0];if(!e)return;e.setAttribute("width",this._media.videoWidth),e.setAttribute("height",this._media.videoHeight);var t=e.getContext("2d");if(!t)return;t.drawImage(this._media,0,0,this._media.videoWidth,this._media.videoHeight),e.style.display="block"}catch(e){}}},{key:"_onClickToPlayLayerClick",value:function(){this._api&&(this._api.play(!0),this.$clickToPlayLayer.hide())}},{key:"exit",value:function(){return this._unbindFSEvents(),this.$clickToPlayLayer&&(this.$clickToPlayLayer.off("click",this._onClickToPlayLayerClickBound),this.$clickToPlayLayer.remove()),this._headController&&(null!=this._savedStyles&&null!=this.$media&&this.$media.css(this._savedStyles),null!==this._savedAttrCrossOrigin&&(void 0!==this._savedAttrCrossOrigin?this.$media.attr("crossOrigin",this._savedAttrCrossOrigin):this.$media.removeAttr("crossOrigin"),this._savedAttrCrossOrigin=null),this._headController.returnHtml5Video(),null!=this._savedSrc&&null!=this._media&&(this._media.src=this._savedSrc,this._loadMedia(!1)),this._savedSrc=null),this.$media=null,r.default(l.default(h.prototype),"exit",this).call(this)}},{key:"set",value:function(e,t,i){var n,a=!1;if("src"===e){if(this._canvasWaitForSeeked=!1,t&&-1!==t.indexOf("#t=")){var s=parseFloat(t.split("#t=")[1]);this._canvasWaitForSeeked=!!(s>.2),this._canvasHaveSeeked=!1,this._canvasHadPlaying=!1}this._useCanvasFrameSwitch&&(this._writeToCanvas(),this._antiFlickerHack=!1),this._canvasWaitForSeeked&&this._media&&!this._media.muted&&this._safariMuteWhileLoading&&(this.set("muted",!0),this._unmuteAfterLoad=!0)}if(null!=this._media)switch(e){case"controls":t?(this.$media.attr("controls","controls"),this.$media.attr("disablePictureInPicture",""),this.$media.attr("controlsList","nofullscreen nodownload"),this.$media.css({"z-index":"1"}),this.$media.append('<style type="text/css">video::-webkit-media-controls-fullscreen-button{display:none !important;}</style>')):this.$media.removeAttr("controls");break;case"audioTrackId":var o,u;a=-1,this._audioTrackId=t,n=(null===(o=this._media)||void 0===o||null===(u=o.audioTracks)||void 0===u?void 0:u.length)||0;for(var d=0;d<n;d++){this._media.audioTracks[d].id===this._audioTrackId?(this._media.audioTracks[d].enabled=!0,a=this._audioTrackId):this._media.audioTracks[d].enabled=!1}return a;case"textTrackId":var c,p;a=-1,this._textTrackId=t,n=(null===(c=this._media)||void 0===c||null===(p=c.textTracks)||void 0===p?void 0:p.length)||0;for(var _=0;_<n;_++){var m=this._media.textTracks[_];!this._textTrackVisible||m.id!==this._textTrackId&&m.language!==this._textTrackId?(this._media.textTracks[_].mode="disabled",this._media.textTracks[_].default=!1,this._media.textTracks[_].enabled=!1):(this._media.textTracks[_].mode="showing",this._media.textTracks[_].default=!0,this._media.textTracks[_].enabled=!0,a=this._textTrackId)}return a;case"textTrackVisible":return this._textTrackVisible=t,this.set("textTrackId",this._textTrackId)>=0;default:return r.default(l.default(h.prototype),"set",this).call(this,e,t,i)}}},{key:"get",value:function(e){var t,i,n;switch(e){case"qualities":var a,s;if(this._canPlayHLS&&p.assetNeedsHLSSupport({processedSrc:(null===(a=this._media)||void 0===a?void 0:a.currentSrc)||(null===(s=this._media)||void 0===s?void 0:s.src)||""}))return[{level:-1,selected:!0,width:-1,height:-1,bandwidth:-1}];break;case"audioTrackId":var o;if((null==(t=null===(o=this._media)||void 0===o?void 0:o.audioTracks)?void 0:t.length)&&this._canPlayHLS)return(n=(i=u.default(t)).find((function(e){return null==e?void 0:e.enabled})))&&(this._audioTrackId=n.id),this._audioTrackId;break;case"audioTracks":var d;if((null==(t=null===(d=this._media)||void 0===d?void 0:d.audioTracks)?void 0:t.length)&&this._canPlayHLS){var c=this;return(n=(i=u.default(t)).find((function(e){return null==e?void 0:e.enabled})))&&(this._audioTrackId=n.id),i.map((function(e){if(e){var t=e.label||p.default.languageFromIsoCode(e.language);return{id:e.id,selected:e.id===c._audioTrackId,isocode:e.language,label:t}}return null}))}break;case"textTrackId":var _;if((null==(t=null===(_=this._media)||void 0===_?void 0:_.textTracks)?void 0:t.length)&&this._canPlayHLS)return(n=(i=u.default(t)).find((function(e){return"showing"===(null==e?void 0:e.mode)||(null==e?void 0:e.enabled)})))&&(this._textTrackId=""!==n.id?n.id:n.language),this._textTrackId;break;case"textTracks":var m;if((null==(t=null===(m=this._media)||void 0===m?void 0:m.textTracks)?void 0:t.length)&&this._canPlayHLS){var f=this;return(n=(i=u.default(t).filter((function(e){return"subtitles"===(null==e?void 0:e.kind)}))).find((function(e){return"showing"===(null==e?void 0:e.mode)||(null==e?void 0:e.enabled)})))&&(this._textTrackId=""!==n.id?n.id:n.language),i.map((function(e){if(e){var t=""!==e.id?e.id:e.language,i=e.label||p.default.languageFromIsoCode(e.language);return{id:t,selected:e.id===f._textTrackId||e.language===f._textTrackId,isocode:e.language,languagename:i}}return null}))}break;case"textTrackVisible":return this._textTrackVisible;default:return r.default(l.default(h.prototype),"get",this).call(this,e)}}},{key:"_onEvent",value:function(e){switch(r.default(l.default(h.prototype),"_onEvent",this).call(this,e),e&&e.type){case"play":this._forceIOSNativeVideo&&this._isiOS&&!this._shouldPlayInline&&this.mediaRequestFullscreen(),this._forceAndroidNativeVideo&&this._isAndroid&&!this._shouldPlayInline&&this.mediaRequestFullscreen();break;case"seeking":this._canvasHaveSeeked=!1;break;case"seeked":this._useCanvasFrameSwitch&&(this._canvasHaveSeeked=!0,this._canvasHadPlaying&&this._hideCanvas());break;case"playing":this._useCanvasFrameSwitch&&(this._canvasHadPlaying=!0,!this._canvasHaveSeeked&&this._canvasWaitForSeeked||this._hideCanvas())}}},{key:"_onMediaEnterFullscreen",value:function(e){e&&e.stopPropagation(),this._isNativeFullscreen=!0,this.$wrapper.trigger("fullscreenchange")}},{key:"_onMediaLeaveFullscreen",value:function(e){if(e&&e.stopPropagation(),this._unbindFSEvents(),this._isNativeFullscreen=!1,this._media){var t=$parcel$interopDefault(d)(this._media);this._savedAttrs&&(void 0!==this._savedAttrs.controls?t.attr("controls",this._savedAttrs.controls):t.removeAttr("controls"),this._savedAttrs=null),this._savedProps&&(void 0!==this._savedProps.controls?t.prop("controls",this._savedProps.controls):t.prop("controls",!1),this._savedProps=null),this._savedCss&&(t.css("pointer-events",this._savedCss["pointer-events"]),t.css("object-fit",this._savedCss["object-fit"]),t.css("transform-origin",this._savedCss["transform-origin"]),t.css("transform",this._savedCss.transform),t.css("background-color",this._savedCss["background-color"]),this._savedCss=null)}this.$wrapper.trigger("fullscreenchange")}},{key:"_onFullscreenChange",value:function(e){var t=document.fullscreenElement||document.fullScreenElement||document.mozFullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.webkitFullScreenElement||document.msFullscreenElement;t&&t===this._media||this._media&&this._media.webkitDisplayingFullscreen?this._onMediaEnterFullscreen(e):this._onMediaLeaveFullscreen(e)}},{key:"_bindFSEvents",value:function(e){if(!this._boundFSEvents&&this._media){this._boundFSEvents=!0;var t=$parcel$interopDefault(d)(this._media);t.on("fullscreenchange",this._onFullscreenChangeBound),t.on("fullscreenerror",this._onFullscreenChangeBound),t.on("fullscreenchanged",this._onFullscreenChangeBound),t.on("webkitfullscreenchange",this._onFullscreenChangeBound),t.on("mozfullscreenchange",this._onFullscreenChangeBound),document.addEventListener("MSFullscreenChange",this._onFullscreenChangeBound),t.on("webkitbeginfullscreen",this._onMediaEnterFullscreenBound),t.on("webkitendfullscreen",this._onMediaLeaveFullscreenBound),t.on("webkitEnterFullScreen",this._onMediaEnterFullscreenBound),t.on("webkitExitFullScreen",this._onMediaLeaveFullscreenBound)}}},{key:"_unbindFSEvents",value:function(e){if(this._boundFSEvents&&this._media){this._boundFSEvents=!1;var t=$parcel$interopDefault(d)(this._media);t.off("fullscreenchange",this._onFullscreenChangeBound),t.off("fullscreenerror",this._onFullscreenChangeBound),t.off("fullscreenchanged",this._onFullscreenChangeBound),t.off("webkitfullscreenchange",this._onFullscreenChangeBound),t.off("mozfullscreenchange",this._onFullscreenChangeBound),document.removeEventListener("MSFullscreenChange",this._onFullscreenChangeBound),t.off("webkitbeginfullscreen",this._onMediaEnterFullscreenBound),t.off("webkitendfullscreen",this._onMediaLeaveFullscreenBound),t.off("webkitEnterFullScreen",this._onMediaEnterFullscreenBound),t.off("webkitExitFullScreen",this._onMediaLeaveFullscreenBound)}}},{key:"mediaRequestFullscreen",value:function(){if(this._isNativeFullscreen)return!0;var e=!1;if(this._media){var t=null;if(this._media.requestFullscreen)t="requestFullscreen";else if(this._media.requestFullScreen)t="requestFullScreen";else if(this._media.enterFullscreen)t="enterFullscreen";else if(this._media.enterFullScreen)t="enterFullScreen";else for(var i=["o","ms","moz","webkit","khtml"],n=0;n<i.length&&!t;n++){var a=i[n];void 0!==this._media[a+"RequestFullscreen"]?t=a+"RequestFullscreen":void 0!==this._media[a+"RequestFullScreen"]?t=a+"RequestFullScreen":void 0!==this._media[a+"EnterFullscreen"]?t=a+"EnterFullscreen":void 0!==this._media[a+"EnterFullScreen"]&&(t=a+"EnterFullScreen")}if(t){this._isNativeFullscreen=!0;var s=$parcel$interopDefault(d)(this._media);this._savedProps||(this._savedProps={},this._savedProps.controls=s.prop("controls"),s.prop("controls",!0)),this._savedAttrs||(this._savedAttrs={},this._savedAttrs.controls=s.attr("controls"),s.attr("controls","controls")),this._savedCss||(this._savedCss={},this._savedCss["pointer-events"]=s.css("pointer-events"),s.css("pointer-events","auto"),this._savedCss["object-fit"]=s.css("object-fit"),s.css("object-fit","contain"),this._savedCss["transform-origin"]=s.css("transform-origin"),s.css("transform-origin",""),this._savedCss.transform=s.css("transform"),s.css("transform",""),this._savedCss["background-color"]=s.css("background-color"),s.css("background-color","black")),this._bindFSEvents();try{var o=this._media[t]();void 0!==o&&o.then&&o.then((function(){})).catch((function(e){})),e=!0}catch(e){$parcel$interopDefault(d)(this._media).trigger("fullscreenerror")}}}return e}},{key:"_updateFromPlayout",value:function(e){if(e){var t=c.default.getService(this._opts.playerAliasOrId).getInstance("Detections")||{};this.$media&&void 0!==e.bgColor&&this.$media.css("background-color","#"+e.bgColor),void 0!==e.forceNativeFullscreen&&(this._objectFit="true"!==e.forceNativeFullscreen&&(t&&t.objectFit)),this._useCanvasFrameSwitch="true"===e.showFrameWhileLoading&&"Html5VideoGL360Head"!==this._classType,this._safariMuteWhileLoading="true"===e.safariMuteWhileLoading&&this._isSafari}}},{key:"_onPlayoutChanged",value:function(e,t){r.default(l.default(h.prototype),"_onPlayoutChanged",this).call(this,e,t),t&&void 0!==t.playoutData&&this._updateFromPlayout(t.playoutData)}},{key:"_getMediaWidth",value:function(){if(null!=this._media)return this._media.videoWidth}},{key:"_getMediaHeight",value:function(){if(null!=this._media)return this._media.videoHeight}},{key:"restretch",value:function(e,t){if(this._isAndroidNative)return!1;if(this._isNativeFullscreen)return!1;try{var i;window.getComputedStyle(null===(i=this.$media)||void 0===i?void 0:i[0])}catch(e){return!1}if(null!=this.$element&&null!=this._media&&this.$element.closest(".bb-fitme")&&this.$element.closest(".bb-fitme")[0])if(this._objectFit){for(var n=0;n<this._vendorPrefixes.length;n++)this.$media.css(this._vendorPrefixes[n]+"transform","scale(1.0, 1.0)").css(this._vendorPrefixes[n]+"transform-origin","0 0");this.$media.css("height","100%").css("width","100%"),this.$media.css("object-fit","fill")}else{var a=this.$element.parent()[0],s=void 0!==(null==a?void 0:a.style.width)&&a.style.width.match(/px/)?parseInt(a.style.width.replace("px","")):this.$element.width(),o=void 0!==(null==a?void 0:a.style.height)&&a.style.height.match(/px/)?parseInt(a.style.height.replace("px","")):this.$element.height(),r=this._isAndroid&&void 0!==e?e:this._media.videoWidth,l=this._isAndroid&&void 0!==t?t:this._media.videoHeight;if(r>0&&l>0){var u=s/r,d=o/l;for(n=0;n<this._vendorPrefixes.length;n++)this.$media.css(this._vendorPrefixes[n]+"transform","scale("+u+", "+d+")").css(this._vendorPrefixes[n]+"transform-origin","0 0");this.$media.css("height",l+"px").css("width",r+"px"),this.$media.css("object-fit","contain")}}}}]),h}(h.default)})),parcelRequire.register("9DD6a",(function(e,t){$parcel$export(e.exports,"default",(function(){return p})),parcelRequire("lDGnc");var i=parcelRequire("6YA9f"),n=parcelRequire("27Qiu"),a=parcelRequire("7CnHN"),s=parcelRequire("fBLaW"),o=parcelRequire("eamhc"),r=parcelRequire("7gftt"),l=parcelRequire("kVqNu"),u=parcelRequire("3DsR2"),d=parcelRequire("e06N2"),c=parcelRequire("5CbwX"),h=parcelRequire("cYwG5"),p=function(e){"use strict";i.default(c,e);var t=n.default(c);function c(e,i){var n;if(a.default(this,c),(n=t.call(this,e,i))._classType="Html5VideoGL360Head",n._fps=25,n._startTime=0,n._fpsInterval=1e3/n._fps,n._then=0,n._elapsed=0,n._helper=null,n._onLoadedMetaDataBound=n._onLoadedMetaData.bind(s.default(n)),n._onElementPlayingBound=n._onElementPlaying.bind(s.default(n)),null!=n.$element&&(n.$element.on("loadedmetadata",n._onLoadedMetaDataBound),n.$element.on("playing",n._onElementPlayingBound)),null!==n.$wrapper&&void 0!==u.default.getService(n._opts.playerAliasOrId).getInstance("ComponentBroker")){n._broker=u.default.getService(n._opts.playerAliasOrId).getInstance("ComponentBroker");var o=n._broker.getLoadedPlayerComponent("WebGL360Helper");o&&(n._helper=new o(n.$element,n._opts),n._helper.setMedia(n.$media))}return n}return o.default(c,[{key:"exit",value:function(){return this._helper&&(this._helper=this._helper.exit()),null!=this.$element&&(this.$element.off("loadedmetadata",this._onLoadedMetaDataBound),this.$element.off("playing",this._onElementPlayingBound)),r.default(l.default(c.prototype),"exit",this).call(this)}},{key:"set",value:function(e,t,i){var n,a=!1;"src"===e?(a=r.default(l.default(c.prototype),"set",this).call(this,e,t,i),null===(n=this.$media)||void 0===n||n.hide()):a=r.default(l.default(c.prototype),"set",this).call(this,e,t,i);return a}},{key:"play",value:function(e){var t;d.default("[Html5VideoGL360Head] play userAction: "+e),null===(t=this.$media)||void 0===t||t.hide(),r.default(l.default(c.prototype),"play",this).call(this,e),this._helper&&this._helper.requestControls(e)}},{key:"load",value:function(e){r.default(l.default(c.prototype),"load",this).call(this,e),this._helper&&this._helper.requestControls(e)}},{key:"_onLoadedMetaData",value:function(e){this._videoWidth=this._getMediaWidth(),this._videoHeight=this._getMediaHeight(),this._videoWidth>0&&this._videoHeight>0&&this._helper&&this._helper.setMediaSize(this._videoWidth,this._videoHeight)}},{key:"_onElementPlaying",value:function(e){this._startTime=this._then=Date.now()}},{key:"_animationFrameCallback",value:function(){!this._exiting&&this._loadstart&&(this._animationFrameCallbackBound&&h.default.requestAnimFrame(this._animationFrameCallbackBound),this._playing&&(this._timeUpdatesEnabled&&!this._seeking&&this.$element.triggerHandler("timeupdate"),this._helper&&(this._elapsed=Date.now()-this._then,this._elapsed>this._fpsInterval&&(this._then=Date.now()-this._elapsed%this._fpsInterval,this._helper.renderContent()))),this._helper&&this._helper.renderGL())}},{key:"restretch",value:function(e,t){if(r.default(l.default(c.prototype),"restretch",this).call(this,e,t),null!=this.$element&&null!=this._media&&this.$element.closest(".bb-fitme")&&this.$element.closest(".bb-fitme")[0]){var i=this.$element.parent()[0],n=void 0!==i.style.width&&i.style.width.match(/px/)?parseInt(i.style.width.replace("px","")):this.$element.width(),a=void 0!==i.style.height&&i.style.height.match(/px/)?parseInt(i.style.height.replace("px","")):this.$element.height();n>0&&a>0&&this._helper&&this._helper.setSize(n,a)}}}]),c}(c.default)})),parcelRequire.register("rbR3F",(function(e,t){$parcel$export(e.exports,"default",(function(){return u})),parcelRequire("lDGnc");var i=parcelRequire("6YA9f"),n=parcelRequire("27Qiu"),a=parcelRequire("7CnHN"),s=parcelRequire("eamhc"),o=parcelRequire("7gftt"),r=parcelRequire("kVqNu"),l=parcelRequire("3DsR2"),u=function(e){"use strict";i.default(u,e);var t=n.default(u);function u(e,i){var n,s;if(a.default(this,u),(n=t.call(this,e,i))._avoidPreloadSrc=null,n._broker=null,void 0!==l.default.getService(n._opts.playerAliasOrId).getInstance("ComponentBroker")&&(n._broker=l.default.getService(n._opts.playerAliasOrId).getInstance("ComponentBroker")),n._hlsHelper=null,null===(s=n._broker)||void 0===s?void 0:s.isPlayerComponentAvailable("Html5HLSHelper")){var o=n._broker.getLoadedPlayerComponent("Html5HLSHelper");n._hlsHelper=new o(n.$element,n._opts),n._hlsHelper.setMedia(n.$media)}return n}return s.default(u,[{key:"exit",value:function(){return o.default(r.default(u.prototype),"exit",this).call(this)}},{key:"set",value:function(e,t,i){if(null!=this._media){if("src"===e){if("string"==typeof t||void 0===t&&null==t){var n,a=t,s=t.match(/#q=([^&#]*)/);if(s&&s.length>=1){a=t.replace("#q="+s[1],"");var l=s[1]}return a!=(null===(n=this._hlsHelper)||void 0===n?void 0:n.getSrc())&&(this._suspend=!1,this._canplay=!1,this._canplaythrough=!1,this._avoidPreload?this._avoidPreloadSrc=a:this._hlsHelper&&this._hlsHelper.setSrc(a)),isNaN(parseFloat(l))||this._hlsHelper&&this._hlsHelper.setQualityLevel(l),!0}return!1}return o.default(r.default(u.prototype),"set",this).call(this,e,t,i)}}},{key:"get",value:function(e){switch(e){case"qualities":return!!this._hlsHelper&&this._hlsHelper.getQualities();case"textTrackId":case"textTracks":return;default:return o.default(r.default(u.prototype),"get",this).call(this,e)}}},{key:"load",value:function(e){this._avoidPreloadSrc||o.default(r.default(u.prototype),"load",this).call(this,e)}},{key:"play",value:function(e){var t;this._hlsHelper&&(this._avoidPreloadSrc?(this._hlsHelper.setSrc(this._avoidPreloadSrc),this._avoidPreloadSrc=null):!(null===(t=this._media)||void 0===t?void 0:t.src)&&this._hlsHelper.getSrc()&&this._hlsHelper.setSrc(this._hlsHelper.getSrc()));o.default(r.default(u.prototype),"play",this).call(this,e)}},{key:"_onPlayoutChanged",value:function(e,t){o.default(r.default(u.prototype),"_onPlayoutChanged",this).call(this,e,t)}}]),u}(parcelRequire("fEu1u").default)})),parcelRequire.register("eXAFn",(function(e,t){$parcel$export(e.exports,"default",(function(){return d})),parcelRequire("lDGnc");var i=parcelRequire("6YA9f"),n=parcelRequire("27Qiu"),a=parcelRequire("7CnHN"),s=parcelRequire("eamhc"),o=parcelRequire("7gftt"),r=parcelRequire("kVqNu"),l=parcelRequire("3DsR2"),u=parcelRequire("e06N2"),d=function(e){"use strict";i.default(d,e);var t=n.default(d);function d(e,i){var n,s;if(a.default(this,d),(n=t.call(this,e,i))._avoidPreloadSrc=n._avoidPreload?0:null,n._broker=null,void 0!==l.default.getService(n._opts.playerAliasOrId).getInstance("ComponentBroker")&&(n._broker=l.default.getService(n._opts.playerAliasOrId).getInstance("ComponentBroker")),n._hlsHelper=null,null===(s=n._broker)||void 0===s?void 0:s.isPlayerComponentAvailable("Html5HLSHelper")){var o=n._broker.getLoadedPlayerComponent("Html5HLSHelper");n._hlsHelper=new o(n.$element,n._opts),n._hlsHelper.setMedia(n.$media)}return n}return s.default(d,[{key:"exit",value:function(){var e;return this._hlsHelper=null===(e=this._hlsHelper)||void 0===e?void 0:e.exit(),o.default(r.default(d.prototype),"exit",this).call(this)}},{key:"reset",value:function(){var e;return null===(e=this._hlsHelper)||void 0===e||e.setSrc(null),o.default(r.default(d.prototype),"reset",this).call(this)}},{key:"set",value:function(e,t,i){if("src"===e&&this._useCanvasFrameSwitch&&this._writeToCanvas(),null!=this._media)switch(e){case"src":if("string"==typeof t||void 0===t&&null==t){var n,a,s=t,l=t.match(/#q=([^&#]*)/);if(l&&l.length>=1){s=t.replace("#q="+l[1],"");var u=l[1]}if(s!=(null===(n=this._hlsHelper)||void 0===n?void 0:n.getSrc())){var c=this._canplay;this._suspend=!1,this._canplay=!1,this._canplaythrough=!1,this._avoidPreload&&!c?(this._avoidPreloadSrc=s,this.$element&&this.$element.triggerHandler("couldplay")):(this._hlsHelper&&this._hlsHelper.setSrc(s),this._avoidPreloadSrc=null)}else this.$element&&this.$element.triggerHandler("couldplay");return isNaN(parseFloat(u))||this._hlsHelper&&this._hlsHelper.setQualityLevel(u),null===(a=this.$media)||void 0===a||a.show(),!0}return!1;case"qualityLevel":return!isNaN(parseFloat(t))&&(!!this._hlsHelper&&this._hlsHelper.setQualityLevel(t));default:return o.default(r.default(d.prototype),"set",this).call(this,e,t,i)}}},{key:"get",value:function(e){switch(e){case"qualityLevel":return!!this._hlsHelper&&this._hlsHelper.getQualityLevel();case"qualities":return!!this._hlsHelper&&this._hlsHelper.getQualities();case"textTrackId":case"textTracks":return;case"avoidPreloadSrc":return this._avoidPreloadSrc;default:return o.default(r.default(d.prototype),"get",this).call(this,e)}}},{key:"load",value:function(e){this._avoidPreloadSrc||o.default(r.default(d.prototype),"load",this).call(this,e)}},{key:"play",value:function(e){var t;(u.default("[Html5HLSVideoHead] play userAction: "+e),this._hlsHelper)&&(this._avoidPreloadSrc?(this._hlsHelper.setSrc(this._avoidPreloadSrc),this._avoidPreloadSrc=null):!(null===(t=this._media)||void 0===t?void 0:t.src)&&this._hlsHelper.getSrc()&&this._hlsHelper.setSrc(this._hlsHelper.getSrc()));o.default(r.default(d.prototype),"play",this).call(this,e)}},{key:"_onPlayoutChanged",value:function(e,t){o.default(r.default(d.prototype),"_onPlayoutChanged",this).call(this,e,t)}}]),d}(parcelRequire("5CbwX").default)})),parcelRequire.register("ifaZq",(function(e,t){$parcel$export(e.exports,"default",(function(){return p})),parcelRequire("lDGnc");var i=parcelRequire("6YA9f"),n=parcelRequire("27Qiu"),a=parcelRequire("7CnHN"),s=parcelRequire("fBLaW"),o=parcelRequire("eamhc"),r=parcelRequire("7gftt"),l=parcelRequire("kVqNu"),u=parcelRequire("3DsR2"),d=parcelRequire("e06N2"),c=parcelRequire("5CbwX"),h=parcelRequire("cYwG5"),p=function(e){"use strict";i.default(c,e);var t=n.default(c);function c(e,i){var n;if(a.default(this,c),(n=t.call(this,e,i))._fps=25,n._startTime=0,n._fpsInterval=1e3/n._fps,n._then=0,n._elapsed=0,n._avoidPreloadSrc=null,n._broker=null,n._hlsHelper=null,n._wglHelper=null,n._onMediaLoadedMetaDataBound=n._onMediaLoadedMetaData.bind(s.default(n)),n._onMediaPlayingBound=n._onMediaPlaying.bind(s.default(n)),void 0!==u.default.getService(n._opts.playerAliasOrId).getInstance("ComponentBroker")){if(n._broker=u.default.getService(n._opts.playerAliasOrId).getInstance("ComponentBroker"),n._broker.isPlayerComponentAvailable("WebGL360Helper")){var o=n._broker.getLoadedPlayerComponent("WebGL360Helper");o&&(n._wglHelper=new o(n.$element,n._opts),n._wglHelper.setMedia(n.$media),n._media&&(n._media.addEventListener("loadedmetadata",n._onMediaLoadedMetaDataBound),n._media.addEventListener("playing",n._onMediaPlayingBound)))}if(n._broker.isPlayerComponentAvailable("Html5HLSHelper")){var r=n._broker.getLoadedPlayerComponent("Html5HLSHelper");r&&(n._hlsHelper=new r(n.$element,n._opts),n._hlsHelper.setMedia(n.$media))}}return n}return o.default(c,[{key:"exit",value:function(){var e;return this._hlsDashHelper=null===(e=this._hlsDashHelper)||void 0===e?void 0:e.exit(),this._media&&(this._media.removeEventListener("loadedmetadata",this._onMediaLoadedMetaDataBound),this._media.removeEventListener("playing",this._onMediaPlayingBound)),this._wglHelper&&(this._wglHelper=this._wglHelper.exit()),r.default(l.default(c.prototype),"exit",this).call(this)}},{key:"load",value:function(e){r.default(l.default(c.prototype),"load",this).call(this,e),this._wglHelper&&this._wglHelper.requestControls(e)}},{key:"play",value:function(e){var t,i;this._hlsHelper&&(this._avoidPreloadSrc?(this._hlsHelper.setSrc(this._avoidPreloadSrc),this._avoidPreloadSrc=null):!(null===(i=this._media)||void 0===i?void 0:i.src)&&this._hlsHelper.getSrc()&&this._hlsHelper.setSrc(this._hlsHelper.getSrc()));null===(t=this.$media)||void 0===t||t.hide(),r.default(l.default(c.prototype),"play",this).call(this,e),this._wglHelper&&this._wglHelper.requestControls(e)}},{key:"_onMediaLoadedMetaData",value:function(e){d.default("[Html5HLSVideoGL360Head] _onMediaLoadedMetaData"),this._videoWidth=this._getMediaWidth(),this._videoHeight=this._getMediaHeight(),this._videoWidth>0&&this._videoHeight>0&&this._wglHelper&&this._wglHelper.setMediaSize(this._videoWidth,this._videoHeight)}},{key:"set",value:function(e,t,i){if(null!=this._media){if("src"===e){if("string"==typeof t||void 0===t&&null==t){var n,a=t,s=t.match(/#q=([^&#]*)/);if(s&&s.length>=1){a=t.replace("#q="+s[1],"");var o=s[1]}return a!=(null===(n=this._hlsHelper)||void 0===n?void 0:n.getSrc())&&(this._suspend=!1,this._canplay=!1,this._canplaythrough=!1,this._avoidPreload?this._avoidPreloadSrc=a:this._hlsHelper&&this._hlsHelper.setSrc(a)),isNaN(parseFloat(o))||this._hlsHelper&&this._hlsHelper.setQualityLevel(o),!0}return!1}return r.default(l.default(c.prototype),"set",this).call(this,e,t,i)}}},{key:"get",value:function(e){switch(e){case"qualities":return!!this._hlsHelper&&this._hlsHelper.getQualities();case"textTrackId":case"textTracks":return;default:return r.default(l.default(c.prototype),"get",this).call(this,e)}}},{key:"_onPlayoutChanged",value:function(e,t){r.default(l.default(c.prototype),"_onPlayoutChanged",this).call(this,e,t)}},{key:"_onMediaPlaying",value:function(e){d.default("[Html5HLSVideoGL360Head] _onMediaPlaying"),this._startTime=this._then=Date.now()}},{key:"_animationFrameCallback",value:function(){!this._exiting&&this._loadstart&&(h.default.requestAnimFrame(this._animationFrameCallbackBound),this._playing&&this._timeUpdatesEnabled&&!this._seeking&&this.$element.triggerHandler("timeupdate"),this._wglHelper&&(this._elapsed=Date.now()-this._then,this._elapsed>this._fpsInterval&&(this._then=Date.now()-this._elapsed%this._fpsInterval,this._wglHelper.renderContent()),this._wglHelper.renderGL()))}},{key:"restretch",value:function(e,t){if(r.default(l.default(c.prototype),"restretch",this).call(this,e,t),null!=this.$element&&null!=this._media&&this.$element.closest(".bb-fitme")&&this.$element.closest(".bb-fitme")[0]){var i=this.$element.parent()[0],n=void 0!==i.style.width&&i.style.width.match(/px/)?parseInt(i.style.width.replace("px","")):this.$element.width(),a=void 0!==i.style.height&&i.style.height.match(/px/)?parseInt(i.style.height.replace("px","")):this.$element.height();n>0&&a>0&&this._wglHelper&&this._wglHelper.setSize(n,a)}}}]),c}(c.default)})),parcelRequire.register("hTWVc",(function(e,t){$parcel$export(e.exports,"default",(function(){return c})),parcelRequire("lDGnc");var i=parcelRequire("6YA9f"),n=parcelRequire("27Qiu"),a=parcelRequire("7CnHN"),s=parcelRequire("eamhc"),o=parcelRequire("7gftt"),r=parcelRequire("kVqNu"),l=parcelRequire("3DsR2"),u=parcelRequire("fEu1u");parcelRequire("ePkDK");var d=parcelRequire("cYwG5"),c=function(e){"use strict";i.default(u,e);var t=n.default(u);function u(e,i){var n,s;if(a.default(this,u),(n=t.call(this,e,i))._token=null,n._drmServers=null,n._avoidPreload=!0,n._avoidPreloadSrc=n._avoidPreload?0:null,n._broker=null,"string"==typeof n._opts.publicationData.drm){var o;try{o=JSON.parse(n._opts.publicationData.drm)}catch(e){}(null==o?void 0:o.servers)&&(n._drmServers=o.servers)}else if("object"==typeof n._opts.publicationData.drm){var r=n._opts.publicationData.drm;(null==r?void 0:r.servers)&&(n._drmServers=r.servers)}if(void 0!==n._opts.playoutData.token&&(n._token=n._opts.playoutData.token),void 0!==l.default.getService(n._opts.playerAliasOrId).getInstance("ComponentBroker")&&(n._broker=l.default.getService(n._opts.playerAliasOrId).getInstance("ComponentBroker")),n._hlsDashHelper=null,null===(s=n._broker)||void 0===s?void 0:s.isPlayerComponentAvailable("Html5HLSDashHelper")){var d=n._broker.getLoadedPlayerComponent("Html5HLSDashHelper");n._hlsDashHelper=new d(n.$element,n._opts),isNaN(parseFloat(n._opts.publicationData.livePresentationDelay))||n._hlsDashHelper.setLivePresentationDelay(n._opts.publicationData.livePresentationDelay),n._hlsDashHelper.setMedia(n._media),n._mediaProxy=n._hlsDashHelper.getMediaProxy(),n._bindMediaProxyEvents()}return n}return s.default(u,[{key:"exit",value:function(){return o.default(r.default(u.prototype),"exit",this).call(this)}},{key:"reset",value:function(){var e;return null===(e=this._hlsDashHelper)||void 0===e||e.setSrc(null),o.default(r.default(u.prototype),"reset",this).call(this)}},{key:"set",value:function(e,t,i){if(null!=this._media)switch(e){case"src":if("string"==typeof t||void 0===t&&null==t){var n,a,s=t,l=t.match(/#q=([^&#]*)/);if(l&&l.length>=1){s=t.replace("#q="+l[1],"");var d=l[1]}if(s!=(null===(n=this._hlsDashHelper)||void 0===n?void 0:n.getSrc())){var c=this._canplay;if(this._suspend=!1,this._canplay=!1,this._canplaythrough=!1,this._avoidPreload&&!c){var h;this._avoidPreloadSrc=s,null===(h=this.$element)||void 0===h||h.triggerHandler("couldplay")}else{var p=this._inferMimeType(s);this._hlsDashHelper&&this._hlsDashHelper.setSrc(s,p)}}else null===(a=this.$element)||void 0===a||a.triggerHandler("couldplay");return isNaN(parseFloat(d))||this._hlsDashHelper&&this._hlsDashHelper.setQualityLevel(d),!0}return!1;case"currentTime":return this._mediaProxy&&!isNaN(parseFloat(t))&&t>=0&&(this._mediaProxy.currentTime=t),o.default(r.default(u.prototype),"set",this).call(this,"currentTime",t,i);case"textTrackId":var _,m=null===(_=this._hlsDashHelper)||void 0===_?void 0:_.setTextTrackById(t);return!!m&&m.id;case"audioTrackId":var f,v=null===(f=this._hlsDashHelper)||void 0===f?void 0:f.setAudioTrackById(t);return!!v&&v.id;case"enforceDRM":var g,y;return t?null===(g=this._hlsDashHelper)||void 0===g?void 0:g.setDrmServers(this._drmServers,this._token):null===(y=this._hlsDashHelper)||void 0===y?void 0:y.setDrmServers({});case"textTrackVisible":var b;return null===(b=this._hlsDashHelper)||void 0===b?void 0:b.setTextTrackVisible(!!t);default:return o.default(r.default(u.prototype),"set",this).call(this,e,t,i)}}},{key:"get",value:function(e){switch(e){case"currentTime":return this._mediaProxy?this._mediaProxy.currentTime:o.default(r.default(u.prototype),"get",this).call(this,"currentTime");case"qualities":return!!this._hlsDashHelper&&this._hlsDashHelper.getQualities();case"textTrackId":return!!this._hlsDashHelper&&this._hlsDashHelper.getTextTrackId();case"textTracks":return!!this._hlsDashHelper&&this._hlsDashHelper.getTextTracks();case"audioTrackId":return!!this._hlsDashHelper&&this._hlsDashHelper.getAudioTrackId();case"audioTracks":return!!this._hlsDashHelper&&this._hlsDashHelper.getAudioTracks();case"textTrackVisible":var t;return null===(t=this._hlsDashHelper)||void 0===t?void 0:t.isTextTrackVisible();default:return o.default(r.default(u.prototype),"get",this).call(this,e)}}},{key:"load",value:function(e){this._avoidPreloadSrc||o.default(r.default(u.prototype),"load",this).call(this,e)}},{key:"play",value:function(e){if(this._avoidPreloadSrc&&this._hlsDashHelper){var t=this._inferMimeType(this._avoidPreloadSrc);this._hlsDashHelper.setSrc(this._avoidPreloadSrc,t),this._avoidPreloadSrc=null}o.default(r.default(u.prototype),"play",this).call(this,e)}},{key:"showChromeCastTargetPicker",value:function(){var e;null===(e=this._hlsDashHelper)||void 0===e||e.showChromeCastTargetPicker()}},{key:"_bindMediaEvents",value:function(){o.default(r.default(u.prototype),"_bindMediaEvents",this).call(this),this._bindMediaProxyEvents()}},{key:"_bindMediaProxyEvents",value:function(){this._mediaProxy&&(this._mediaProxy.addEventListener("playing",this._onEventBound),this._mediaProxy.addEventListener("pause",this._onEventBound),this._mediaProxy.addEventListener("durationchange",this._onEventBound),this._mediaProxy.addEventListener("timeupdate",this._onEventBound),this._mediaProxy.addEventListener("volumechange",this._onEventBound),this._mediaProxy.addEventListener("canplay",this._onEventBound),this._mediaProxy.addEventListener("seeked",this._onEventBound),this._mediaProxy.addEventListener("loadstart",this._onEventBound),this._mediaProxy.addEventListener("progress",this._onEventBound),this._mediaProxy.addEventListener("suspend",this._onEventBound),this._mediaProxy.addEventListener("abort",this._onEventBound),this._mediaProxy.addEventListener("error",this._onEventBound),this._mediaProxy.addEventListener("emptied",this._onEventBound),this._mediaProxy.addEventListener("stalled",this._onEventBound),this._mediaProxy.addEventListener("loadedmetadata",this._onEventBound),this._mediaProxy.addEventListener("loadeddata",this._onEventBound),this._mediaProxy.addEventListener("canplaythrough",this._onEventBound),this._mediaProxy.addEventListener("waiting",this._onEventBound),this._mediaProxy.addEventListener("seeking",this._onEventBound),this._mediaProxy.addEventListener("ended",this._onEventBound),this._mediaProxy.addEventListener("play",this._onEventBound),this._mediaProxy.addEventListener("ratechange",this._onEventBound),this._mediaProxy.addEventListener("resize",this._onEventBound))}},{key:"_unbindMediaEvents",value:function(){o.default(r.default(u.prototype),"_unbindMediaEvents",this).call(this),this._unbindMediaProxyEvents()}},{key:"_unbindMediaProxyEvents",value:function(){this._mediaProxy&&(this._mediaProxy.removeEventListener("playing",this._onEventBound),this._mediaProxy.removeEventListener("pause",this._onEventBound),this._mediaProxy.removeEventListener("durationchange",this._onEventBound),this._mediaProxy.removeEventListener("timeupdate",this._onEventBound),this._mediaProxy.removeEventListener("volumechange",this._onEventBound),this._mediaProxy.removeEventListener("canplay",this._onEventBound),this._mediaProxy.removeEventListener("seeked",this._onEventBound),this._mediaProxy.removeEventListener("loadstart",this._onEventBound),this._mediaProxy.removeEventListener("progress",this._onEventBound),this._mediaProxy.removeEventListener("suspend",this._onEventBound),this._mediaProxy.removeEventListener("abort",this._onEventBound),this._mediaProxy.removeEventListener("error",this._onEventBound),this._mediaProxy.removeEventListener("emptied",this._onEventBound),this._mediaProxy.removeEventListener("stalled",this._onEventBound),this._mediaProxy.removeEventListener("loadedmetadata",this._onEventBound),this._mediaProxy.removeEventListener("loadeddata",this._onEventBound),this._mediaProxy.removeEventListener("canplaythrough",this._onEventBound),this._mediaProxy.removeEventListener("waiting",this._onEventBound),this._mediaProxy.removeEventListener("seeking",this._onEventBound),this._mediaProxy.removeEventListener("ended",this._onEventBound),this._mediaProxy.removeEventListener("play",this._onEventBound),this._mediaProxy.removeEventListener("ratechange",this._onEventBound),this._mediaProxy.removeEventListener("resize",this._onEventBound))}},{key:"_pauseMedia",value:function(){this._hlsDashHelper?this._hlsDashHelper.pause():o.default(r.default(u.prototype),"_pauseMedia",this).call(this)}},{key:"_playMedia",value:function(e){this._hlsDashHelper?this._hlsDashHelper.play():o.default(r.default(u.prototype),"_playMedia",this).call(this,e)}},{key:"_onPlayoutChanged",value:function(e,t){o.default(r.default(u.prototype),"_onPlayoutChanged",this).call(this,e,t)}},{key:"_effectuateVolumeAndMuted",value:function(){var e=this._muted?!!this._muted:!!(this._volume<=0);return this._mediaProxy&&(this._mediaProxy.muted!==e&&(this._mediaProxy.muted=e),this._mediaProxy.volume!==this._volume&&(this._mediaProxy.volume=this._volume)),this._media&&(this._media.muted!==e&&(this._media.muted=e),this._media.volume!==this._volume&&(this._media.volume=this._volume)),e}},{key:"_inferMimeType",value:function(e){var t={processedSrc:e};return d.assetNeedsHLSSupport(t)?"application/x-mpegurl":d.assetNeedsMPDSupport(t)?"application/dash+xml":void 0}}]),u}(u.default)})),parcelRequire.register("1hNaQ",(function(e,t){$parcel$export(e.exports,"default",(function(){return h})),parcelRequire("lDGnc");var i=parcelRequire("6YA9f"),n=parcelRequire("27Qiu"),a=parcelRequire("7CnHN"),s=parcelRequire("eamhc"),o=parcelRequire("7gftt"),r=parcelRequire("kVqNu"),l=parcelRequire("3DsR2"),u=parcelRequire("e06N2"),d=parcelRequire("5CbwX");parcelRequire("ePkDK");var c=parcelRequire("cYwG5"),h=function(e){"use strict";i.default(d,e);var t=n.default(d);function d(e,i){var n,s;if(a.default(this,d),(n=t.call(this,e,i))._token=null,n._drmServers=null,n._avoidPreload=!0,n._avoidPreloadSrc=n._avoidPreload?0:null,n._broker=null,"string"==typeof n._opts.publicationData.drm){var o;try{o=JSON.parse(n._opts.publicationData.drm)}catch(e){}(null==o?void 0:o.servers)&&(n._drmServers=o.servers)}else if("object"==typeof n._opts.publicationData.drm){var r=n._opts.publicationData.drm;(null==r?void 0:r.servers)&&(n._drmServers=r.servers)}if(void 0!==n._opts.playoutData.token&&(n._token=n._opts.playoutData.token),void 0!==l.default.getService(n._opts.playerAliasOrId).getInstance("ComponentBroker")&&(n._broker=l.default.getService(n._opts.playerAliasOrId).getInstance("ComponentBroker")),n._hlsDashHelper=null,null===(s=n._broker)||void 0===s?void 0:s.isPlayerComponentAvailable("Html5HLSDashHelper")){var u=n._broker.getLoadedPlayerComponent("Html5HLSDashHelper");n._hlsDashHelper=new u(n.$element,n._opts),isNaN(parseFloat(n._opts.publicationData.livePresentationDelay))||n._hlsDashHelper.setLivePresentationDelay(n._opts.publicationData.livePresentationDelay),n._hlsDashHelper.setMedia(n._media),n._mediaProxy=n._hlsDashHelper.getMediaProxy(),n._bindMediaProxyEvents()}return n}return s.default(d,[{key:"exit",value:function(){var e;return this._hlsDashHelper=null===(e=this._hlsDashHelper)||void 0===e?void 0:e.exit(),o.default(r.default(d.prototype),"exit",this).call(this)}},{key:"reset",value:function(){var e;return null===(e=this._hlsDashHelper)||void 0===e||e.setSrc(null),o.default(r.default(d.prototype),"reset",this).call(this)}},{key:"set",value:function(e,t,i){if("src"===e&&this._useCanvasFrameSwitch&&this._writeToCanvas(),null!=this._media)switch(e){case"src":if("string"==typeof t||void 0===t&&null==t){var n,a,s,l,u=t,c=t.match(/#q=([^&#]*)/);if(c&&c.length>=1){u=t.replace("#q="+c[1],"");var h=c[1]}if(u!=(null===(n=this._hlsDashHelper)||void 0===n?void 0:n.getSrc())){var p=this._canplay;if(this._suspend=!1,this._canplay=!1,this._canplaythrough=!1,this._avoidPreload&&!p){var _;this._avoidPreloadSrc=u,null===(_=this.$element)||void 0===_||_.triggerHandler("couldplay")}else{var m,f=this._inferMimeType(u);null===(m=this._hlsDashHelper)||void 0===m||m.setSrc(u,f),this._avoidPreloadSrc=null}}else null===(a=this.$element)||void 0===a||a.triggerHandler("couldplay");return isNaN(parseFloat(h))||null===(s=this._hlsDashHelper)||void 0===s||s.setQualityLevel(h),null===(l=this.$media)||void 0===l||l.show(),!0}return!1;case"currentTime":return this._mediaProxy&&!isNaN(parseFloat(t))&&t>=0&&(this._mediaProxy.currentTime=t),o.default(r.default(d.prototype),"set",this).call(this,"currentTime",t,i);case"availabilityWindow":return!!this._hlsDashHelper&&this._hlsDashHelper.setAvailabilityWindow(t);case"qualityLevel":return!isNaN(parseFloat(t))&&(!!this._hlsDashHelper&&this._hlsDashHelper.setQualityLevel(t));case"textTrackId":var v,g=null===(v=this._hlsDashHelper)||void 0===v?void 0:v.setTextTrackById(t);return!!g&&g.id;case"audioTrackId":var y,b=null===(y=this._hlsDashHelper)||void 0===y?void 0:y.setAudioTrackById(t);return!!b&&b.id;case"enforceDRM":var k,w;return t?null===(k=this._hlsDashHelper)||void 0===k?void 0:k.setDrmServers(this._drmServers,this._token):null===(w=this._hlsDashHelper)||void 0===w?void 0:w.setDrmServers({});case"textTrackVisible":var $;return null===($=this._hlsDashHelper)||void 0===$?void 0:$.setTextTrackVisible(!!t);default:return o.default(r.default(d.prototype),"set",this).call(this,e,t,i)}}},{key:"get",value:function(e){switch(e){case"currentTime":return this._mediaProxy?this._mediaProxy.currentTime:o.default(r.default(d.prototype),"get",this).call(this,"currentTime");case"isLive":return!!this._hlsDashHelper&&this._hlsDashHelper.isLive();case"seekable":return!!this._hlsDashHelper&&this._hlsDashHelper.getSeekable();case"qualityLevel":return!!this._hlsDashHelper&&this._hlsDashHelper.getQualityLevel();case"qualities":return!!this._hlsDashHelper&&this._hlsDashHelper.getQualities();case"textTrackId":return!!this._hlsDashHelper&&this._hlsDashHelper.getTextTrackId();case"textTracks":return!!this._hlsDashHelper&&this._hlsDashHelper.getTextTracks();case"audioTrackId":return!!this._hlsDashHelper&&this._hlsDashHelper.getAudioTrackId();case"audioTracks":return!!this._hlsDashHelper&&this._hlsDashHelper.getAudioTracks();case"avoidPreloadSrc":return this._avoidPreloadSrc;case"textTrackVisible":var t;return null===(t=this._hlsDashHelper)||void 0===t?void 0:t.isTextTrackVisible();default:return o.default(r.default(d.prototype),"get",this).call(this,e)}}},{key:"load",value:function(e){this._avoidPreloadSrc||o.default(r.default(d.prototype),"load",this).call(this,e)}},{key:"play",value:function(e){if(u.default("[Html5HLSDashVideoHead] play userAction: "+e),this._avoidPreloadSrc&&this._hlsDashHelper){var t=this._inferMimeType(this._avoidPreloadSrc);this._hlsDashHelper.setSrc(this._avoidPreloadSrc,t),this._avoidPreloadSrc=null}o.default(r.default(d.prototype),"play",this).call(this,e)}},{key:"showChromeCastTargetPicker",value:function(){var e;null===(e=this._hlsDashHelper)||void 0===e||e.showChromeCastTargetPicker()}},{key:"_bindMediaEvents",value:function(){o.default(r.default(d.prototype),"_bindMediaEvents",this).call(this),this._bindMediaProxyEvents()}},{key:"_bindMediaProxyEvents",value:function(){this._mediaProxy&&(this._mediaProxy.addEventListener("playing",this._onEventBound),this._mediaProxy.addEventListener("pause",this._onEventBound),this._mediaProxy.addEventListener("durationchange",this._onEventBound),this._mediaProxy.addEventListener("timeupdate",this._onEventBound),this._mediaProxy.addEventListener("volumechange",this._onEventBound),this._mediaProxy.addEventListener("canplay",this._onEventBound),this._mediaProxy.addEventListener("seeked",this._onEventBound),this._mediaProxy.addEventListener("loadstart",this._onEventBound),this._mediaProxy.addEventListener("progress",this._onEventBound),this._mediaProxy.addEventListener("suspend",this._onEventBound),this._mediaProxy.addEventListener("abort",this._onEventBound),this._mediaProxy.addEventListener("error",this._onEventBound),this._mediaProxy.addEventListener("emptied",this._onEventBound),this._mediaProxy.addEventListener("stalled",this._onEventBound),this._mediaProxy.addEventListener("loadedmetadata",this._onEventBound),this._mediaProxy.addEventListener("loadeddata",this._onEventBound),this._mediaProxy.addEventListener("canplaythrough",this._onEventBound),this._mediaProxy.addEventListener("waiting",this._onEventBound),this._mediaProxy.addEventListener("seeking",this._onEventBound),this._mediaProxy.addEventListener("ended",this._onEventBound),this._mediaProxy.addEventListener("play",this._onEventBound),this._mediaProxy.addEventListener("ratechange",this._onEventBound),this._mediaProxy.addEventListener("resize",this._onEventBound))}},{key:"_unbindMediaEvents",value:function(){o.default(r.default(d.prototype),"_unbindMediaEvents",this).call(this),this._unbindMediaProxyEvents()}},{key:"_unbindMediaProxyEvents",value:function(){this._mediaProxy&&(this._mediaProxy.removeEventListener("playing",this._onEventBound),this._mediaProxy.removeEventListener("pause",this._onEventBound),this._mediaProxy.removeEventListener("durationchange",this._onEventBound),this._mediaProxy.removeEventListener("timeupdate",this._onEventBound),this._mediaProxy.removeEventListener("volumechange",this._onEventBound),this._mediaProxy.removeEventListener("canplay",this._onEventBound),this._mediaProxy.removeEventListener("seeked",this._onEventBound),this._mediaProxy.removeEventListener("loadstart",this._onEventBound),this._mediaProxy.removeEventListener("progress",this._onEventBound),this._mediaProxy.removeEventListener("suspend",this._onEventBound),this._mediaProxy.removeEventListener("abort",this._onEventBound),this._mediaProxy.removeEventListener("error",this._onEventBound),this._mediaProxy.removeEventListener("emptied",this._onEventBound),this._mediaProxy.removeEventListener("stalled",this._onEventBound),this._mediaProxy.removeEventListener("loadedmetadata",this._onEventBound),this._mediaProxy.removeEventListener("loadeddata",this._onEventBound),this._mediaProxy.removeEventListener("canplaythrough",this._onEventBound),this._mediaProxy.removeEventListener("waiting",this._onEventBound),this._mediaProxy.removeEventListener("seeking",this._onEventBound),this._mediaProxy.removeEventListener("ended",this._onEventBound),this._mediaProxy.removeEventListener("play",this._onEventBound),this._mediaProxy.removeEventListener("ratechange",this._onEventBound),this._mediaProxy.removeEventListener("resize",this._onEventBound))}},{key:"_pauseMedia",value:function(){u.default("[Html5HLSDashVideoHead] _pauseMedia"),this._hlsDashHelper?this._hlsDashHelper.pause():o.default(r.default(d.prototype),"_pauseMedia",this).call(this)}},{key:"_playMedia",value:function(e){u.default("[Html5HLSDashVideoHead] _playMedia userAction: "+e),this._hlsDashHelper?this._hlsDashHelper.play():o.default(r.default(d.prototype),"_playMedia",this).call(this,e)}},{key:"_onPlayoutChanged",value:function(e,t){o.default(r.default(d.prototype),"_onPlayoutChanged",this).call(this,e,t)}},{key:"_effectuateVolumeAndMuted",value:function(){var e=this._muted?!!this._muted:!!(this._volume<=0);return this._mediaProxy&&(this._mediaProxy.muted!==e&&(this._mediaProxy.muted=e),this._mediaProxy.volume!==this._volume&&(this._mediaProxy.volume=this._volume)),this._media&&(this._media.muted!==e&&(this._media.muted=e),this._media.volume!==this._volume&&(this._media.volume=this._volume)),e}},{key:"_inferMimeType",value:function(e){var t={processedSrc:e};return c.assetNeedsHLSSupport(t)?"application/x-mpegurl":c.assetNeedsMPDSupport(t)?"application/dash+xml":void 0}}]),d}(d.default)})),parcelRequire.register("jcztY",(function(e,t){$parcel$export(e.exports,"default",(function(){return f})),parcelRequire("lDGnc");var i=parcelRequire("6YA9f"),n=parcelRequire("27Qiu"),a=parcelRequire("7CnHN"),s=parcelRequire("fBLaW"),o=parcelRequire("eamhc"),r=parcelRequire("7gftt"),l=parcelRequire("kVqNu");parcelRequire("6JR1F");var u=parcelRequire("hGJI5"),d=parcelRequire("3DsR2"),c=parcelRequire("e06N2"),h=parcelRequire("ePkDK"),p=0,_=function(e){window.YT.loaded&&"function"==typeof window.YT.Player?$parcel$interopDefault(u)(window).triggerHandler("bb_youtubeapiready"):p<20&&(p++,window.setTimeout(_,100))};if(void 0===window.YT){var m=null;"function"==typeof window.onYouTubeIframeAPIReady&&(m=window.onYouTubeIframeAPIReady),window.onYouTubeIframeAPIReady=function(){$parcel$interopDefault(u)(window).triggerHandler("bb_youtubeapiready"),"function"==typeof m&&m()}}else _(null);var f=function(e){"use strict";i.default(h,e);var t=n.default(h);function h(e,i){var n;if(a.default(this,h),(n=t.call(this,e,i))._commandQueue=[],n._youtubePlayer=null,n.$videoElement=null,n._lastError=null,n._pendingSet=[],n._videoId=null,n._queuedSrc=null,n._timeupdate=null,n._play=!1,n._seeked=!1,n._canplay=!1,n._opts=i,n._controls=0,n._currentTime=null,n._volume=null,n._muted=null,n._readyState=0,n._updateRate=250,n._opts.playoutData&&(n._controls="true"===n._opts.playoutData.youTubeSkinInMainPhase?1:0,n._hideControlBar=n._opts.playoutData.controlBar&&n._opts.playoutData.controlBar.match(/^hide$/i),n._hideRelatedItems=n._opts.playoutData.relatedItems&&n._opts.playoutData.relatedItems.match(/^hide$/i)),n._onYoutubeLoadedBound=n._onYoutubeLoaded.bind(s.default(n)),n._onYoutubeReadyBound=n._onYoutubeReady.bind(s.default(n)),n._onPlayerReadyBound=n._onPlayerReady.bind(s.default(n)),n._onStateChangeBound=n._onStateChange.bind(s.default(n)),n._onQualityChangeBound=n._onQualityChange.bind(s.default(n)),n._onErrorBound=n._onError.bind(s.default(n)),n._onApiChangeBound=n._onApiChange.bind(s.default(n)),$parcel$interopDefault(u)(window).on("bb_youtubeapiready",n._onYoutubeReadyBound),null!=n.$element&&(n.$element.addClass("bb-head-youtube"),n._detections=d.default.getService(n._opts.playerAliasOrId).getInstance("Detections"),n._api=d.default.getService(n._opts.playerAliasOrId).getInstance("PublicAPI"),n._hash="yt"+Math.random().toString(36).substr(2),n._$youtubeElement=n.$element.append('<div id="'+n._hash+'" style="pointer-events:all"></div>'),n._$blockLayer=$parcel$interopDefault(u)('<div class="bb-block-youtube-layer" style="position: absolute; width: 100%; height: 100%; top: 0; left: 0; z-index: 1;pointer-events: all; user-select:none; cursor: pointer;"></div>'),n.$element.append(n._$blockLayer),n._detections&&n._detections.isiOS&&n._detections.iOSVersion<10&&n._api&&n._api.updatePlayout({commercials:"false",showBigPlayButton:"false"})),void 0===window.YT){if(!$parcel$interopDefault(u)("#bb-youtubeapi").length){var o=document.createElement("script");o.src=void 0!==i&&null!=i?i.protocol+"www.youtube.com/iframe_api":location.protocol+"//www.youtube.com/iframe_api",o.id="bb-youtubeapi",o.onload=n._onYoutubeLoadedBound;var r=document.getElementsByTagName("script")[0];n._retries=0,n._youtubeScriptTag=r.parentNode.insertBefore(o,r)}}else n._onYoutubeLoaded(null);return n}return o.default(h,[{key:"exit",value:function(){$parcel$interopDefault(u)(window).off("bb_youtubeapiready",this._onYoutubeReadyBound),clearInterval(this._timeupdate);try{null!=this._youtubePlayer&&this._youtubePlayer.getIframe()&&this._youtubePlayer.destroy()}catch(e){}return null!=this._youtubeScriptTag&&$parcel$interopDefault(u)(this._youtubeScriptTag).remove(),null!=this._youtubeElement&&$parcel$interopDefault(u)(this._youtubeElement).remove(),null!=this.$element&&this.$element.empty(),r.default(l.default(h.prototype),"exit",this).call(this)}},{key:"_onYoutubeLoaded",value:function(e){window.YT.loaded&&"function"==typeof window.YT.Player?$parcel$interopDefault(u)(window).triggerHandler("bb_youtubeapiready"):this._retries<20&&(this._retries++,window.setTimeout(this._onYoutubeLoadedBound,100))}},{key:"_onYoutubeReady",value:function(e){if($parcel$interopDefault(u)(window).off("bb_youtubeapiready",this._onYoutubeReadyBound),null==this._youtubePlayer){try{this._youtubePlayer=new window.YT.Player(this._hash,{width:"100%",height:"100%",playerVars:{enablejsapi:1,modestbranding:1,showinfo:0,fs:1,rel:0,wmode:"opaque",controls:this._controls,disablekb:1,autoplay:0},events:{onReady:this._onPlayerReadyBound,onStateChange:this._onStateChangeBound,onPlaybackQualityChange:this._onQualityChangeBound,onError:this._onErrorBound,onApiChange:this._onApiChangeBound}})}catch(e){}null!=this.$element&&(this._youtubeElement=this.$element.find("#"+this._hash))}}},{key:"_onPlayerReady",value:function(){if(this._youtubePlayerReady=!0,null!=this.$element){for(this._queuedSrc&&(this.set("src",this._queuedSrc),this._queuedSrc=null);this._pendingSet.length>0;){var e=this._pendingSet.shift();this.set(e.key,e.value)}var t=this;this._timeupdate=setInterval((function(){t._animationCallback()}),this._updateRate),this.$element.triggerHandler("ready")}for(var i=!1;i=this._commandQueue.shift();)i.cmd&&"function"==typeof h.prototype[i.cmd]&&h.prototype[i.cmd].apply(this,i.args)}},{key:"_onStateChange",value:function(e){if(void 0!==this.$element&&null!=this.$element&&null!=this._youtubePlayer)switch(e.data){case-1:this._play=!1;break;case 0:this._play=!1,null!=this.$element&&this.$element.triggerHandler("pause"),null!=this.$element&&this.$element.triggerHandler("ended");break;case 1:this._readyState=4,null!=this.$element&&this.$element.triggerHandler("durationchange"),this._play||(this._play=!0,null!=this.$element&&this.$element.triggerHandler("play")),null!=this.$element&&this.$element.triggerHandler("playing"),this._$blockLayer.hide();break;case 2:this._play=!1,null!=this.$element&&this.$element.triggerHandler("pause");break;case 3:this._readyState=2,null!=this.$element&&this.$element.triggerHandler("waiting");break;case 5:this._play=!1,this._canplay=!0,null!=this.$element&&this.$element.triggerHandler("canplay")}}},{key:"_onQualityChange",value:function(){void 0!==this.$element&&null!=this._youtubePlayer&&this.$element.triggerHandler("assetchange")}},{key:"_onError",value:function(e){void 0!==this.$element&&null!=this._youtubePlayer&&(this.$element.triggerHandler("error"),this._lastError=e)}},{key:"_onApiChange",value:function(){void 0!==this.$element&&this._youtubePlayer}},{key:"_animationCallback",value:function(){var e=this.get("currentTime"),t=this.get("volume"),i=this.get("muted"),n=null;try{n=this._youtubePlayer.getPlayerState()}catch(e){}this._seeked&&this._currentTime!=e&&(this.$element&&this.$element.triggerHandler("seeked"),this._seeked=!1),this._currentTime!=e&&(this._currentTime=e,this.$element&&this.$element.triggerHandler("timeupdate")),this._volume!=t&&(this._volume=t,this.$element&&this.$element.triggerHandler("volumechange")),this._muted!=i&&(this._muted=i,this.$element&&this.$element.triggerHandler("volumechange")),5!=n||this._canplay||(this._canplay=!0,this._readyState=4,this.$element&&(this.$element.triggerHandler("loadeddata"),this.$element.triggerHandler("canplay")))}},{key:"set",value:function(e,t){switch(e){case"currentTime":if(isNaN(parseFloat(t))||!(t>=0))return!1;if(null!=this._youtubePlayer&&this._youtubePlayerReady)try{return this._youtubePlayer.seekTo(t,!0),this._seeked=!0,!0}catch(e){return!1}else this._pendingSet.push({key:e,value:t});break;case"muted":if("boolean"!=typeof t)return!1;if(null!=this._youtubePlayer&&this._youtubePlayerReady)try{return 1==t?this._youtubePlayer.mute():this._youtubePlayer.unMute(),this.$element.triggerHandler("volumechange"),!0}catch(e){return!1}else this._pendingSet.push({key:e,value:t});break;case"src":if("string"!=typeof t)return!1;if(null!=this._youtubePlayer&&this._youtubePlayerReady)try{return this._videoId=t,this._canplay=!1,this._youtubePlayer.cueVideoById(this._videoId),!0}catch(e){return!1}else this._queuedSrc=t,this._videoId=t;break;case"volume":if(!(!isNaN(parseFloat(t))&&t>=0&&t<=1))return!1;if(null!=this._youtubePlayer&&this._youtubePlayerReady)try{return this._youtubePlayer.setVolume(100*t),this.$element.triggerHandler("volumechange"),!0}catch(e){return!1}else this._pendingSet.push({key:e,value:t});break;default:return r.default(l.default(h.prototype),"set",this).call(this,e,t)}}},{key:"get",value:function(e){if(null!=this._youtubePlayer)switch(e){case"buffered":var t={length:1,start:[],end:[]};t.start[0]=0;try{return isNaN(this.get("duration"))||isNaN(this._youtubePlayer.getVideoLoadedFraction())?t.end[0]=0:t.end[0]=this._youtubePlayer.getVideoLoadedFraction()*this.get("duration"),t}catch(e){return!1}break;case"currentTime":try{return this._youtubePlayer.getCurrentTime()}catch(e){return!1}break;case"duration":try{return 0==this._youtubePlayer.getDuration()?NaN:this._youtubePlayer.getDuration()}catch(e){return!1}break;case"ended":return null;case"error":return this._lastError;case"muted":try{return this._youtubePlayer.isMuted()}catch(e){return!1}break;case"networkState":return-1;case"paused":try{return 1!=this._youtubePlayer.getPlayerState()}catch(e){return!1}break;case"readyState":return this._readyState;case"seekable":var i=this;return{length:1,start:function(e){return 0},end:function(e){var t;return(null===(t=i._youtubePlayer)||void 0===t?void 0:t.getDuration())||0}};case"src":return this._videoId;case"volume":try{return this._youtubePlayer.getVolume()/100}catch(e){return!1}break;case"videoWidth":case"mediaWidth":return this._getVideoDimensions().x;case"videoHeight":case"mediaHeight":return this._getVideoDimensions().y;case"canControlVolume":return!0;default:return r.default(l.default(h.prototype),"get",this).call(this,e)}}},{key:"_getVideoDimensions",value:function(){try{var e=this._youtubePlayer.getPlaybackQuality()}catch(e){return!1}var t={};switch(e){case"small":t.y=240;break;case"medium":default:t.y=360;break;case"large":t.y=480;break;case"hd720":t.y=720;break;case"hd1080":t.y=1080;break;case"highres":t.y=1440}return t.x=t.y/9*16,t}},{key:"play",value:function(){if(c.default("[YoutubeHead] play"),null===this._youtubePlayer||!this._youtubePlayerReady)return this._commandQueue.push({cmd:"play"}),!1;try{return c.default(this._youtubePlayer.playVideo()),!0}catch(e){return!1}}},{key:"preload",value:function(){if(null===this._youtubePlayer||!this._youtubePlayerReady)return this._commandQueue.push({cmd:"preload"}),!1;try{return c.default("[YoutubeHead]"+this._videoId),c.default("[YoutubeHead]"+JSON.stringify(this._youtubePlayer.playVideo())),c.default("[YoutubeHead]"+this._youtubePlayer.pauseVideo()),!0}catch(e){return!1}}},{key:"pause",value:function(){if(null===this._youtubePlayer||!this._youtubePlayerReady)return this._commandQueue.push({cmd:"pause"}),!1;try{return this._youtubePlayer.pauseVideo(),!0}catch(e){return!1}}},{key:"load",value:function(){c.default("[YoutubeHead] load");var e=!1;if(null!==this._youtubePlayer&&this._youtubePlayerReady){if(this._canplay)this.$element.triggerHandler("canplay"),e=!0;else if(this._videoId){this._canplay=!1;try{this._youtubePlayer.cueVideoById(this._videoId),e=!0}catch(e){}}}else this._commandQueue.push({cmd:"load"}),e=!0;return e}},{key:"reset",value:function(){try{this._youtubePlayer.clearVideo()}catch(e){}this._play=!1,this._canplay=!1,this._controls&&this._hideControlBar&&this._hideRelatedItems||(this._$blockLayer.show(),this._$blockLayer.css("cursor","default"))}},{key:"restretch",value:function(){}}]),h}(h.default)})),parcelRequire.register("2XZbq",(function(e,t){$parcel$export(e.exports,"default",(function(){return a}));var i=parcelRequire("3DsR2"),n=parcelRequire("e06N2"),a=function(e,t){if(this._opts=t,this._eventNS="MediaManager"+String(Math.random()).replace(".",""),this._singleMediaMode=!1,this._avoidMutedAutoPlay="true"===this._opts.playoutData.avoidMutedAutoPlay||!0===this._opts.playoutData.avoidMutedAutoPlay,this._avoidPreload=!1,this._useCors="true"==="".concat(null===this||void 0===this?void 0:this._opts.playoutData.useCors),this.$element=null,void 0!==e&&null!=e){this.$element=e,i.default.getService(this._opts.playerAliasOrId).setInstance("MediaManager",this);var a=i.default.getService(this._opts.playerAliasOrId).getInstance("Detections");a&&("undefined"!==a.canAutoPlay&&(this._canAutoPlay=a.canAutoPlay),"undefined"!==a.canAutoPlayMuted&&(this._canAutoPlayMuted=a.canAutoPlayMuted),"undefined"!==a.avoidPreload&&(this._avoidPreload=a.avoidPreload)),this._sc=i.default.getService(this._opts.playerAliasOrId).getInstance("SoundController")}this._audio_loaded=!1,this._audio_promise=null,this._audio=document.createElement("audio");try{this._audio.setAttribute("muted",""),this._audio.setAttribute("preload",this._avoidPreload?"none":"metadata"),this._audio.setAttribute("playsinline",""),this._audio.setAttribute("webkit-playsinline",""),this._useCors&&this._audio.setAttribute("crossorigin",""),this._audio.setAttribute("controlsList","nodownload"),this._audio.setAttribute("aria-hidden","true")}catch(e){n.default("[MediaManager] audio error: "+e)}this._video_loaded=!1,this._video_promise=null,this._video=document.createElement("video");try{this._video.setAttribute("muted",""),this._video.setAttribute("preload",this._avoidPreload?"none":"metadata"),this._video.setAttribute("playsinline",""),this._video.setAttribute("webkit-playsinline",""),this._video.setAttribute("aria-hidden","true"),this._useCors&&this._video.setAttribute("crossorigin",""),this._video.setAttribute("controlsList","nodownload")}catch(e){n.default("[MediaManager] video error: "+e)}};a.prototype.exit=function(){return i.default.getService(this._opts.playerAliasOrId).setInstance("MediaManager",null),null},a.prototype.load=function(e){return this.play(e,"_NONE_")},a.prototype.play=function(e,t){var i=this;n.default("[MediaManager] play userAction: "+e+", tagName: "+t);var a=void 0!==this._opts.playerPath?this._opts.playerPath:"";if(null!=a&&""!=a&&null==a.match(/\/$/)&&(a+="/"),"AUDIO"===t&&(this._audio_pauseDesired=!1),this._audio&&this._audio.play&&!this._audio_promise&&(!this._singleMediaMode||"AUDIO"===this._singleMediaMode))if(this._audio_loaded)this._audio_promise="AUDIO"===t?this._audio.play():this._audio.load(),void 0!==this._audio_promise&&this._audio_promise.then&&this._audio_promise.then((function(){i._audio_promise=null})).catch((function(){i._audio_promise=null}));else try{this._audio.src||this._audio.setAttribute("src",a+"dummy.mp3"),this._audio_promise="AUDIO"===t?this._audio.play():this._audio.load(),void 0!==this._audio_promise&&this._audio_promise.then?this._audio_promise.then((function(){i._audio_promise=null,i._audio_loaded=!0})).catch((function(e){i._audio_promise=null,n.default("[MediaManager] AUDIO promise rejected: ".concat(e.message))})):(n.default("[MediaManager] AUDIO promise not supported; falling back to user action tracking"),this._audio_promise=null,e&&(this._audio_loaded=!0))}catch(e){this._audio_promise=null}if("VIDEO"===t&&(this._video_pauseDesired=!1),this._video&&this._video.play&&!this._video_promise&&(!this._singleMediaMode||"VIDEO"===this._singleMediaMode))if(this._video_loaded)this._video_promise="VIDEO"===t?this._video.play():this._video.load(),void 0!==this._video_promise&&this._video_promise.then&&this._video_promise.then((function(){i._video_promise=null})).catch((function(){i._video_promise=null}));else try{this._video.src||this._video.setAttribute("src",a+"dummy.mp3"),this._video_promise="VIDEO"===t?this._video.play():this._video.load(),void 0!==this._video_promise&&this._video_promise.then?this._video_promise.then((function(){i._video_promise=null,i._video_loaded=!0})).catch((function(e){var a;(i._video_promise=null,n.default("[MediaManager] VIDEO promise rejected: ".concat(e.message)),i._avoidMutedAutoPlay||i._video.muted)||(null===(a=i._sc)||void 0===a||a.setMuted(!0),i._video.muted=!0,i._video_promise="VIDEO"===t?i._video.play():i._video.load(),void 0!==i._video_promise&&i._video_promise.then&&i._video_promise.then((function(){i._video_promise=null})).catch((function(){i._video_promise=null})))})):(this._video_promise=null,e&&(this._video_loaded=!0))}catch(e){this._video_promise=null}return!0},a.prototype.pause=function(){var e,t,i,n,a,s,o,r;if(null===(e=this._audio)||void 0===e?void 0:e.pause)if(null===(i=this._audio_promise)||void 0===i?void 0:i.then){var l,u,d=this;this._audio_pauseDesired=!0,null===(l=this._audio_promise.then((function(){var e,t;d._audio_pauseDesired&&(null===(e=d._audio.pause())||void 0===e||null===(t=e.catch)||void 0===t||t.call(e,(function(){})))})))||void 0===l||null===(u=l.catch)||void 0===u||u.call(l,(function(){}))}else null===(n=this._audio.pause())||void 0===n||null===(a=n.catch)||void 0===a||a.call(n,(function(){}));if(null===(t=this._video)||void 0===t?void 0:t.pause)if(null===(s=this._video_promise)||void 0===s?void 0:s.then){var c,h,p=this;this._video_pauseDesired=!0,null===(c=this._video_promise.then((function(){var e,t;p._video_pauseDesired&&(null===(e=p._video)||void 0===e||null===(t=e.pause)||void 0===t||t.call(e).catch((function(){})))})))||void 0===c||null===(h=c.catch)||void 0===h||h.call(c,(function(){}))}else null===(o=this._video.pause())||void 0===o||null===(r=o.catch)||void 0===r||r.call(o,(function(){}));return!0},a.prototype.getMedia=function(e){switch(e){case"AUDIO":return this._audio;case"VIDEO":return this._video}return null},a.prototype.setSingleMediaMode=function(e){return this._singleMediaMode=e,!0}})),parcelRequire.register("4qy6W",(function(e,t){$parcel$export(e.exports,"default",(function(){return h})),parcelRequire("lDGnc");var i=parcelRequire("6YA9f"),n=parcelRequire("27Qiu"),a=parcelRequire("7CnHN"),s=parcelRequire("fBLaW"),o=parcelRequire("eamhc"),r=parcelRequire("7gftt"),l=parcelRequire("kVqNu"),u=parcelRequire("e06N2"),d=parcelRequire("ePkDK"),c=parcelRequire("cYwG5"),h=function(e){"use strict";i.default(d,e);var t=n.default(d);function d(e,i){var n;return a.default(this,d),(n=t.call(this,e,i))._muted=!1,n._onRemotePlayerChangeBound=n._onRemotePlayerChange.bind(s.default(n)),n._animationFrameCallbackBound=n._animationFrameCallback.bind(s.default(n)),n._castContext=null,n._castSession=null,n._remotePlayer=null,n._remotePlayerController=null,window.cast&&window.cast.framework&&window.cast.framework.CastContext&&(n._castContext=window.cast.framework.CastContext.getInstance(),n._castContext&&(n._castSession=n._castContext.getCurrentSession()),n._remotePlayer=new window.cast.framework.RemotePlayer,n._remotePlayerController=new window.cast.framework.RemotePlayerController(n._remotePlayer),n._remotePlayerController.addEventListener(window.cast.framework.RemotePlayerEventType.IS_MEDIA_LOADED_CHANGED,n._onRemotePlayerChangeBound),n._remotePlayerController.addEventListener(window.cast.framework.RemotePlayerEventType.IS_PAUSED_CHANGED,n._onRemotePlayerChangeBound),n._remotePlayerController.addEventListener(window.cast.framework.RemotePlayerEventType.PLAYER_STATE_CHANGED,n._onRemotePlayerChangeBound),n._remotePlayerController.addEventListener(window.cast.framework.RemotePlayerEventType.DURATION_CHANGED,n._onRemotePlayerChangeBound),n._remotePlayerController.addEventListener(window.cast.framework.RemotePlayerEventType.IS_MUTED_CHANGED,n._onRemotePlayerChangeBound),n._remotePlayerController.addEventListener(window.cast.framework.RemotePlayerEventType.VOLUME_LEVEL_CHANGED,n._onRemotePlayerChangeBound),n._remotePlayerController.addEventListener(window.cast.framework.RemotePlayerEventType.CAN_CONTROL_VOLUME_CHANGED,n._onRemotePlayerChangeBound),n._remotePlayerController.addEventListener(window.cast.framework.RemotePlayerEventType.ANY_CHANGE,n._onRemotePlayerChangeBound)),n}return o.default(d,[{key:"exit",value:function(){return this.reset(),this._exiting=!0,this._remotePlayerController&&(this._remotePlayerController.removeEventListener(window.cast.framework.RemotePlayerEventType.IS_MEDIA_LOADED_CHANGED,this._onRemotePlayerChangeBound),this._remotePlayerController.removeEventListener(window.cast.framework.RemotePlayerEventType.IS_PAUSED_CHANGED,this._onRemotePlayerChangeBound),this._remotePlayerController.removeEventListener(window.cast.framework.RemotePlayerEventType.PLAYER_STATE_CHANGED,this._onRemotePlayerChangeBound),this._remotePlayerController.removeEventListener(window.cast.framework.RemotePlayerEventType.DURATION_CHANGED,this._onRemotePlayerChangeBound),this._remotePlayerController.removeEventListener(window.cast.framework.RemotePlayerEventType.IS_MUTED_CHANGED,this._onRemotePlayerChangeBound),this._remotePlayerController.removeEventListener(window.cast.framework.RemotePlayerEventType.VOLUME_LEVEL_CHANGED,this._onRemotePlayerChangeBound),this._remotePlayerController.removeEventListener(window.cast.framework.RemotePlayerEventType.CAN_CONTROL_VOLUME_CHANGED,this._onRemotePlayerChangeBound),this._remotePlayerController.removeEventListener(window.cast.framework.RemotePlayerEventType.ANY_CHANGE,this._onRemotePlayerChangeBound)),this._remotePlayerController=null,this._remotePlayer=null,r.default(l.default(d.prototype),"exit",this).call(this)}},{key:"load",value:function(e){}},{key:"reset",value:function(){this._remotePlayerController&&this._remotePlayerController.stop()}},{key:"toFront",value:function(){null!=this.$element&&this.$element.css({zIndex:1,visibility:"visibile"}).siblings(".bb-head").css({zIndex:0,visibility:"hidden"})}},{key:"play",value:function(){this.$element&&this.$element.triggerHandler("play");var e=this._castSession.getMediaSession();if(e&&e.play(),this._remotePlayer&&this._remotePlayer.volumeLevel>=1&&(this._remotePlayer.volumeLevel=.99),this._remotePlayerController){var t=this._remotePlayerController;window.setTimeout((function(){t.setVolumeLevel()}),200),window.setTimeout((function(){t.setVolumeLevel()}),2e3)}}},{key:"pause",value:function(){var e=this._castSession.getMediaSession();if(e&&e.pause(),this._remotePlayer&&this._remotePlayer.volumeLevel>=1&&(this._remotePlayer.volumeLevel=.99),this._remotePlayerController){var t=this._remotePlayerController;window.setTimeout((function(){t.setVolumeLevel()}),200),window.setTimeout((function(){t.setVolumeLevel()}),2e3)}}},{key:"set",value:function(e,t){switch(e){case"currentTime":this._remotePlayer&&this._remotePlayerController&&(this._remotePlayer.currentTime=t,this._remotePlayerController.seek(),this._seeking=!0,this.$element&&this.$element.triggerHandler("seeking"));break;case"muted":this._muted=!!t,this._remotePlayer&&this._remotePlayer.isMuted!=this._muted&&this._remotePlayerController&&this._remotePlayerController.muteOrUnmute();break;case"src":if(this._castSession){this._src=t,this._src&&this._src.match(/^\/\//)&&(this._src="https:"+this._src);var i="application/x-mpeg",n=this._src.match(/\.(\w+)[?&#]*/);if(n&&n.length>1)switch(n[1].toLowerCase()){case"mp4":i="application/x-mpeg";break;case"m3u8":i="application/x-mpegURL";break;case"mp3":i="audio/mpeg"}if(this._src&&this._src.match(/xlcdn\.com/)){var a=this,s=this._src+"&format=json";c.fetchData(s).then((function(e){if(e){var t=e.data||a._src;a._loadMedia(t,i)}else a._loadMedia(a._src,i)})).catch((function(e){a._loadMedia(a._src,i)}))}else this._loadMedia(this._src,i)}break;case"volume":this._remotePlayer&&this._remotePlayerController&&(this._remotePlayer.volumeLevel=Math.max(0,Math.min(t,.99)),this._remotePlayerController.setVolumeLevel())}}},{key:"_loadMedia",value:function(e,t){var i=new window.chrome.cast.media.MediaInfo(e,t),n=new window.chrome.cast.media.LoadRequest(i);n.autoplay=this._playing;var a=this;this._castSession.loadMedia(n).then((function(){window.setTimeout((function(){a._handleMediaLoaded(!0)}),2e3)}),(function(e){u.default("[ChromeCastHead] set src error code: "+e)}))}},{key:"_handleMediaLoaded",value:function(e){this._medialoaded=e,this._medialoaded&&(this._loadstart||(this._loadstart=!0,this.$element&&this.$element.triggerHandler("loadstart")),this.$element&&this.$element.triggerHandler("metadataloaded"),this.$element&&this.$element.triggerHandler("dataloaded"),this.$element&&this.$element.triggerHandler("canplay"),this.$element&&this.$element.triggerHandler("canplaythrough"),this._remotePlayer&&this._remotePlayer.isMuted!=this._muted&&this._remotePlayerController&&this._remotePlayerController.muteOrUnmute())}},{key:"get",value:function(e){switch(e){case"currentTime":if(this._remotePlayer)return this._remotePlayer.currentTime;break;case"duration":return this._remotePlayer?this._remotePlayer.duration:null;case"muted":return this._remotePlayer?this._remotePlayer.isMuted:null;case"volume":return this._remotePlayer?this._remotePlayer.volumeLevel:null;case"currentSrc":case"src":return this._src;case"error":case"buffered":case"ended":case"networkState":case"readyState":case"videoWidth":case"videoHeight":return null;case"paused":return this._remotePlayer?this._remotePlayer.isPaused:null;case"isLive":var t;return void 0!==(null===(t=this._remotePlayer)||void 0===t?void 0:t.liveSeekableRange);case"seekable":var i,n=this;return(null===(i=this._remotePlayer)||void 0===i?void 0:i.canSeek)?{length:1,start:function(e){return 0},end:function(e){return n._remotePlayer.duration}}:{length:0,start:function(e){return 0},end:function(e){return 0}};case"canControlVolume":return this._remotePlayer?this._remotePlayer.canControlVolume:null}}},{key:"restretch",value:function(){}},{key:"enableTimeUpdates",value:function(){this._timeUpdatesEnabled=!0}},{key:"disableTimeUpdates",value:function(){this._timeUpdatesEnabled=!1}},{key:"showCastTargetPicker",value:function(){}},{key:"_onRemotePlayerChange",value:function(e){if(null!=e&&Object(e)instanceof window.cast.framework.RemotePlayerChangedEvent)switch(e.type){case window.cast.framework.RemotePlayerEventType.IS_MEDIA_LOADED_CHANGED:this._handleMediaLoaded(this._remotePlayer.isMediaLoaded);break;case window.cast.framework.RemotePlayerEventType.IS_PAUSED_CHANGED:this._playing=!this._remotePlayer.isPaused,this._playing?(this._seeking&&(this._seeking=!1,this.$element&&this.$element.triggerHandler("seeked")),this.$element&&this.$element.triggerHandler("playing")):this.$element&&this.$element.triggerHandler("pause");break;case window.cast.framework.RemotePlayerEventType.PLAYER_STATE_CHANGED:if(this._playerState=this._remotePlayer.playerState,this._playerState===window.chrome.cast.media.PlayerState.IDLE){var t=this._castSession.getMediaSession();if(t)switch(t.idleReason){case"CANCELLED":case"INTERRUPTED":this._loadstart=!1,this.$element&&this.$element.triggerHandler("abort");break;case"FINISHED":this.$element&&this.$element.triggerHandler("pause"),this.$element&&this.$element.triggerHandler("ended");break;case"ERROR":this.$element&&this.$element.triggerHandler("error")}}else this._playerState===window.chrome.cast.media.PlayerState.PAUSED?(this._playing=!1,this.$element&&this.$element.triggerHandler("pause")):this._playerState===window.chrome.cast.media.PlayerState.PLAYING&&(this._playing=!0,this._seeking&&(this._seeking=!1,this.$element&&this.$element.triggerHandler("seeked")),this.$element&&this.$element.triggerHandler("playing"));break;case window.cast.framework.RemotePlayerEventType.DURATION_CHANGED:this.$element&&this.$element.triggerHandler("durationchange");break;case window.cast.framework.RemotePlayerEventType.IS_MUTED_CHANGED:case window.cast.framework.RemotePlayerEventType.VOLUME_LEVEL_CHANGED:this.$element&&this.$element.triggerHandler("volumechange");break;case window.cast.framework.RemotePlayerEventType.CAN_CONTROL_VOLUME_CHANGED:break;case window.cast.framework.RemotePlayerEventType.ANY_CHANGE:default:u.default("[ChromeCastHead] _onRemotePlayerChange field: "+e.field+", value: "+e.value)}}},{key:"_animationFrameCallback",value:function(){this._exiting||this._playing&&(c.default.requestAnimFrame(this._animationFrameCallbackBound),this._timeUpdatesEnabled&&!this._seeking&&this.$element&&this.$element.triggerHandler("timeupdate"))}}]),d}(d.default)})),parcelRequire.register("fUtd6",(function(e,t){$parcel$export(e.exports,"default",(function(){return p})),parcelRequire("lDGnc");var i=parcelRequire("6YA9f"),n=parcelRequire("27Qiu"),a=parcelRequire("7CnHN"),s=parcelRequire("fBLaW"),o=parcelRequire("eamhc"),r=parcelRequire("7gftt"),l=parcelRequire("kVqNu"),u=parcelRequire("3DsR2"),d=parcelRequire("e06N2"),c=parcelRequire("5CbwX");parcelRequire("ePkDK");var h=parcelRequire("cYwG5"),p=function(e){"use strict";i.default(c,e);var t=n.default(c);function c(e,i){var n,o,r;if(a.default(this,c),(n=t.call(this,e,i))._token=null,n._drmServers=null,n._avoidPreload=!0,n._avoidPreloadSrc=n._avoidPreload?0:null,n._broker=null,n._hlsDashHelper=null,n._wglHelper=null,n._onMediaLoadedMetaDataBound=n._onMediaLoadedMetaData.bind(s.default(n)),n._onMediaPlayingBound=n._onMediaPlaying.bind(s.default(n)),"string"==typeof n._opts.publicationData.drm){var l;try{l=JSON.parse(n._opts.publicationData.drm)}catch(e){}(null==l?void 0:l.servers)&&(n._drmServers=l.servers)}else if("object"==typeof n._opts.publicationData.drm){var d=n._opts.publicationData.drm;(null==d?void 0:d.servers)&&(n._drmServers=d.servers)}if(void 0!==n._opts.playoutData.token&&(n._token=n._opts.playoutData.token),void 0!==u.default.getService(n._opts.playerAliasOrId).getInstance("ComponentBroker")&&(n._broker=u.default.getService(n._opts.playerAliasOrId).getInstance("ComponentBroker")),null===(o=n._broker)||void 0===o?void 0:o.isPlayerComponentAvailable("WebGL360Helper")){var h=n._broker.getLoadedPlayerComponent("WebGL360Helper");h&&(n._wglHelper=new h(n.$element,n._opts),n._wglHelper.setMedia(n.$media),n._media&&(n._media.addEventListener("loadedmetadata",n._onMediaLoadedMetaDataBound),n._media.addEventListener("playing",n._onMediaPlayingBound)))}if(null===(r=n._broker)||void 0===r?void 0:r.isPlayerComponentAvailable("Html5HLSDashHelper")){var p=n._broker.getLoadedPlayerComponent("Html5HLSDashHelper");p&&(n._hlsDashHelper=new p(n.$element,n._opts),isNaN(parseFloat(n._opts.publicationData.livePresentationDelay))||n._hlsDashHelper.setLivePresentationDelay(n._opts.publicationData.livePresentationDelay),n._hlsDashHelper.setMedia(n._media),n._mediaProxy=n._hlsDashHelper.getMediaProxy(),n._bindMediaProxyEvents())}return n}return o.default(c,[{key:"exit",value:function(){var e,t;return this._hlsDashHelper=null===(e=this._hlsDashHelper)||void 0===e?void 0:e.exit(),this._media&&(this._media.removeEventListener("loadedmetadata",this._onMediaLoadedMetaDataBound),this._media.removeEventListener("playing",this._onMediaPlayingBound)),this._mediaOrig&&(this._mediaOrig.removeEventListener("loadedmetadata",this._onMediaLoadedMetaDataBound),this._mediaOrig.removeEventListener("playing",this._onMediaPlayingBound)),this._wglHelper=null===(t=this._wglHelper)||void 0===t?void 0:t.exit(),r.default(l.default(c.prototype),"exit",this).call(this)}},{key:"reset",value:function(){var e;return null===(e=this._hlsDashHelper)||void 0===e||e.setSrc(null),r.default(l.default(c.prototype),"reset",this).call(this)}},{key:"set",value:function(e,t,i){if("src"===e&&this._useCanvasFrameSwitch&&this._writeToCanvas(),null!=this._media)switch(e){case"src":if("string"==typeof t||void 0===t&&null==t){var n,a,s,o=t,u=t.match(/#q=([^&#]*)/);if(u&&u.length>=1){o=t.replace("#q="+u[1],"");var d=u[1]}if(o!=(null===(n=this._hlsDashHelper)||void 0===n?void 0:n.getSrc())){var h=this._canplay;if(this._suspend=!1,this._canplay=!1,this._canplaythrough=!1,this._avoidPreload&&!h){var p;this._avoidPreloadSrc=o,null===(p=this.$element)||void 0===p||p.triggerHandler("couldplay")}else{var _,m=this._inferMimeType(o);null===(_=this._hlsDashHelper)||void 0===_||_.setSrc(o,m),this._avoidPreloadSrc=null}}else null===(a=this.$element)||void 0===a||a.triggerHandler("couldplay");return isNaN(parseFloat(d))||null===(s=this._hlsDashHelper)||void 0===s||s.setQualityLevel(d),!0}return!1;case"currentTime":return this._mediaProxy&&!isNaN(parseFloat(t))&&t>=0&&(this._mediaProxy.currentTime=t),r.default(l.default(c.prototype),"set",this).call(this,"currentTime",t,i);case"qualityLevel":return!isNaN(parseFloat(t))&&(!!this._hlsDashHelper&&this._hlsDashHelper.setQualityLevel(t));case"textTrackId":var f,v=null===(f=this._hlsDashHelper)||void 0===f?void 0:f.setTextTrackById(t);return!!v&&v.id;case"enforceDRM":var g,y;return t?null===(g=this._hlsDashHelper)||void 0===g?void 0:g.setDrmServers(this._drmServers,this._token):null===(y=this._hlsDashHelper)||void 0===y?void 0:y.setDrmServers({});case"textTrackVisible":var b;return null===(b=this._hlsDashHelper)||void 0===b?void 0:b.setTextTrackVisible(!!t);default:return r.default(l.default(c.prototype),"set",this).call(this,e,t,i)}}},{key:"get",value:function(e){switch(e){case"currentTime":return this._mediaProxy?this._mediaProxy.currentTime:r.default(l.default(c.prototype),"get",this).call(this,"currentTime");case"qualityLevel":return!!this._hlsDashHelper&&this._hlsDashHelper.getQualityLevel();case"qualities":return!!this._hlsDashHelper&&this._hlsDashHelper.getQualities();case"textTrackId":return!!this._hlsDashHelper&&this._hlsDashHelper.getTextTrackId();case"textTracks":return!!this._hlsDashHelper&&this._hlsDashHelper.getTextTracks();case"avoidPreloadSrc":return this._avoidPreloadSrc;case"textTrackVisible":var t;return null===(t=this._hlsDashHelper)||void 0===t?void 0:t.isTextTrackVisible();default:return r.default(l.default(c.prototype),"get",this).call(this,e)}}},{key:"load",value:function(e){this._avoidPreloadSrc||r.default(l.default(c.prototype),"load",this).call(this,e),this._wglHelper&&this._wglHelper.requestControls(e)}},{key:"play",value:function(e){var t;if(d.default("[Html5HLSDashVideoGL360Head] play userAction: "+e),this._avoidPreloadSrc&&this._hlsDashHelper){var i=this._inferMimeType(this._avoidPreloadSrc);this._hlsDashHelper.setSrc(this._avoidPreloadSrc,i),this._avoidPreloadSrc=null}null===(t=this.$media)||void 0===t||t.hide(),r.default(l.default(c.prototype),"play",this).call(this,e),this._wglHelper&&this._wglHelper.requestControls(e)}},{key:"showChromeCastTargetPicker",value:function(){var e;null===(e=this._hlsDashHelper)||void 0===e||e.showChromeCastTargetPicker()}},{key:"restretch",value:function(e,t){if(r.default(l.default(c.prototype),"restretch",this).call(this,e,t),null!=this.$element&&null!=this._media&&this.$element.closest(".bb-fitme")&&this.$element.closest(".bb-fitme")[0]){var i=this.$element.parent()[0],n=void 0!==i.style.width&&i.style.width.match(/px/)?parseInt(i.style.width.replace("px","")):this.$element.width(),a=void 0!==i.style.height&&i.style.height.match(/px/)?parseInt(i.style.height.replace("px","")):this.$element.height();n>0&&a>0&&this._wglHelper&&this._wglHelper.setSize(n,a)}}},{key:"_bindMediaEvents",value:function(){r.default(l.default(c.prototype),"_bindMediaEvents",this).call(this),this._bindMediaProxyEvents()}},{key:"_bindMediaProxyEvents",value:function(){this._mediaProxy&&(this._mediaProxy.addEventListener("playing",this._onEventBound),this._mediaProxy.addEventListener("pause",this._onEventBound),this._mediaProxy.addEventListener("durationchange",this._onEventBound),this._mediaProxy.addEventListener("timeupdate",this._onEventBound),this._mediaProxy.addEventListener("volumechange",this._onEventBound),this._mediaProxy.addEventListener("canplay",this._onEventBound),this._mediaProxy.addEventListener("seeked",this._onEventBound),this._mediaProxy.addEventListener("loadstart",this._onEventBound),this._mediaProxy.addEventListener("progress",this._onEventBound),this._mediaProxy.addEventListener("suspend",this._onEventBound),this._mediaProxy.addEventListener("abort",this._onEventBound),this._mediaProxy.addEventListener("error",this._onEventBound),this._mediaProxy.addEventListener("emptied",this._onEventBound),this._mediaProxy.addEventListener("stalled",this._onEventBound),this._mediaProxy.addEventListener("loadedmetadata",this._onEventBound),this._mediaProxy.addEventListener("loadeddata",this._onEventBound),this._mediaProxy.addEventListener("canplaythrough",this._onEventBound),this._mediaProxy.addEventListener("waiting",this._onEventBound),this._mediaProxy.addEventListener("seeking",this._onEventBound),this._mediaProxy.addEventListener("ended",this._onEventBound),this._mediaProxy.addEventListener("play",this._onEventBound),this._mediaProxy.addEventListener("ratechange",this._onEventBound),this._mediaProxy.addEventListener("resize",this._onEventBound))}},{key:"_unbindMediaEvents",value:function(){r.default(l.default(c.prototype),"_unbindMediaEvents",this).call(this),this._unbindMediaProxyEvents()}},{key:"_unbindMediaProxyEvents",value:function(){this._mediaProxy&&(this._mediaProxy.removeEventListener("playing",this._onEventBound),this._mediaProxy.removeEventListener("pause",this._onEventBound),this._mediaProxy.removeEventListener("durationchange",this._onEventBound),this._mediaProxy.removeEventListener("timeupdate",this._onEventBound),this._mediaProxy.removeEventListener("volumechange",this._onEventBound),this._mediaProxy.removeEventListener("canplay",this._onEventBound),this._mediaProxy.removeEventListener("seeked",this._onEventBound),this._mediaProxy.removeEventListener("loadstart",this._onEventBound),this._mediaProxy.removeEventListener("progress",this._onEventBound),this._mediaProxy.removeEventListener("suspend",this._onEventBound),this._mediaProxy.removeEventListener("abort",this._onEventBound),this._mediaProxy.removeEventListener("error",this._onEventBound),this._mediaProxy.removeEventListener("emptied",this._onEventBound),this._mediaProxy.removeEventListener("stalled",this._onEventBound),this._mediaProxy.removeEventListener("loadedmetadata",this._onEventBound),this._mediaProxy.removeEventListener("loadeddata",this._onEventBound),this._mediaProxy.removeEventListener("canplaythrough",this._onEventBound),this._mediaProxy.removeEventListener("waiting",this._onEventBound),this._mediaProxy.removeEventListener("seeking",this._onEventBound),this._mediaProxy.removeEventListener("ended",this._onEventBound),this._mediaProxy.removeEventListener("play",this._onEventBound),this._mediaProxy.removeEventListener("ratechange",this._onEventBound),this._mediaProxy.removeEventListener("resize",this._onEventBound))}},{key:"_pauseMedia",value:function(){this._hlsDashHelper?this._hlsDashHelper.pause():r.default(l.default(c.prototype),"_pauseMedia",this).call(this)}},{key:"_playMedia",value:function(e){this._hlsDashHelper?this._hlsDashHelper.play():r.default(l.default(c.prototype),"_playMedia",this).call(this,e)}},{key:"_onPlayoutChanged",value:function(e,t){r.default(l.default(c.prototype),"_onPlayoutChanged",this).call(this,e,t)}},{key:"_onMediaLoadedMetaData",value:function(e){d.default("[Html5HLSDashVideoGL360Head] _onMediaLoadedMetaData"),this._videoWidth=this._getMediaWidth(),this._videoHeight=this._getMediaHeight(),this._videoWidth>0&&this._videoHeight>0&&this._wglHelper&&this._wglHelper.setMediaSize(this._videoWidth,this._videoHeight)}},{key:"_onMediaPlaying",value:function(e){d.default("[Html5HLSDashVideoGL360Head] _onMediaPlaying"),this._startTime=this._then=Date.now()}},{key:"_animationFrameCallback",value:function(){!this._exiting&&this._loadstart&&(h.default.requestAnimFrame(this._animationFrameCallbackBound),this._playing&&this._timeUpdatesEnabled&&!this._seeking&&this.$element.triggerHandler("timeupdate"),this._wglHelper&&(this._elapsed=Date.now()-this._then,this._elapsed>this._fpsInterval&&(this._then=Date.now()-this._elapsed%this._fpsInterval,this._wglHelper.renderContent()),this._wglHelper.renderGL()))}},{key:"_effectuateVolumeAndMuted",value:function(){var e=this._muted?!!this._muted:!!(this._volume<=0);return this._mediaProxy&&(this._mediaProxy.muted!==e&&(this._mediaProxy.muted=e),this._mediaProxy.volume!==this._volume&&(this._mediaProxy.volume=this._volume)),this._media&&(this._media.muted!==e&&(this._media.muted=e),this._media.volume!==this._volume&&(this._media.volume=this._volume)),e}},{key:"_inferMimeType",value:function(e){var t={processedSrc:e};return h.assetNeedsHLSSupport(t)?"application/x-mpegurl":h.assetNeedsMPDSupport(t)?"application/dash+xml":void 0}}]),c}(c.default)})),parcelRequire.register("8ukkF",(function(e,t){$parcel$export(e.exports,"default",(function(){return h})),parcelRequire("lDGnc");var i=parcelRequire("7CnHN"),n=parcelRequire("eamhc"),a=parcelRequire("bTQBy"),s=parcelRequire("jxjxM"),o=parcelRequire("3DsR2"),r=parcelRequire("e06N2"),l=parcelRequire("5AjVZ"),u=parcelRequire("3vYzT"),d=parcelRequire("9B1gs"),c=parcelRequire("7DHuI"),h=function(){"use strict";function e(t,n){if(i.default(this,e),this.$element=null,this._opts=n,this._adUnits=null,this._disabled=!1,this._disableCookies="false",this._clipDuration=0,this._clipAdUnits=null,this._clipDisabled=!1,this._clipIsInArticle=!1,this._shouldPause=!1,this._commercialBehaviour=null,this._minClipDurationPreroll=0,this._minClipDurationPostroll=0,this._skipOffset=-1,this._skipCounterText=null,this._skipButtonText=null,this._upcomingVideo=null,this._upcomingText=null,this._imaEnablePreloading=!1,this._imaCustomPlaybackForIOS10Plus=!1,this._adsystem_rdid=null,this._adsystem_idtype=null,this._adsystem_is_lat=!1,this._adsystem_buid=null,this._playout=null,this._playout_commercialBehaviour=null,this._playout_minClipDurationPreroll=0,this._playout_minClipDurationPostroll=0,this._playout_skipOffset=-1,this._playout_skipCounterText=null,this._playout_skipButtonText=null,this._playout_imaEnablePreloading=!1,this._adUnit_commercialBehaviour=null,this._adUnit_minClipDurationPreroll=0,this._adUnit_minClipDurationPostroll=0,this._adUnit_skipOffset=-1,this._adUnit_skipCounterText=null,this._adUnit_skipButtonText=null,this._adUnit_imaEnablePreloading=!1,this._adUnit_imaCustomPlaybackForIOS10Plus=!1,this._adSystemsSdk=null,this._perPositionAdCounter_clip={},this._perPositionAdCounter_load={},this._perPositionAdCounter_sess={},this._blockInsecureVPAID=!1,this._playoutLabel="untitled",this._canPlayInline=!1,this._isMobileDevice=!1,this._isTouchDevice=!1,this._outstreamRefreshFinished=!1,this._posInternal=null,this._posInarticleSuccessInternal=!1,this._line=-1,this._currentAdUnit=null,this._loadedHtml5Media=!1,this._programmaticSystems={},this._programmaticSystems[e.PosType.PREROLL]=[],this._programmaticSystems[e.PosType.POSTROLL]=[],this._server=this._opts.publicationData.server,void 0!==this._opts.playoutData){var a=this._playout=this._opts.playoutData;void 0!==this._opts.playoutData.label&&(this._playoutLabel=this._opts.playoutData.label),void 0!==this._opts.playoutData.positions&&(this._adUnits=this._adUnitsFromLegacyPositions(this._opts.playoutData.positions)),this._disabled="false"===this._opts.playoutData.commercials,void 0!==this._opts.playoutData.disableCookies&&(this._disableCookies=this._opts.playoutData.disableCookies),void 0!==this._opts.playoutData.commercialBehaviour&&(this._commercialBehaviour=this._playout_commercialBehaviour=this._opts.playoutData.commercialBehaviour),void 0!==this._opts.playoutData.minClipDurationPreroll&&parseFloat(this._opts.playoutData.minClipDurationPreroll)>=0&&(this._minClipDurationPreroll=this._playout_minClipDurationPreroll=parseFloat(this._opts.playoutData.minClipDurationPreroll)),void 0!==this._opts.playoutData.minClipDurationPostroll&&parseFloat(this._opts.playoutData.minClipDurationPostroll)>=0&&(this._minClipDurationPostroll=this._playout_minClipDurationPostroll=parseFloat(this._opts.playoutData.minClipDurationPostroll)),void 0!==this._opts.playoutData.skipOffset&&parseFloat(this._opts.playoutData.skipOffset)>=0&&(this._skipOffset=this._playout_skipOffset=parseFloat(this._opts.playoutData.skipOffset),void 0!==this._opts.playoutData.skipCounterText&&null!=this._opts.playoutData.skipCounterText&&(this._skipCounterText=this._playout_skipCounterText=this._opts.playoutData.skipCounterText),void 0!==this._opts.playoutData.skipButtonText&&null!=this._opts.playoutData.skipButtonText&&(this._skipButtonText=this._playout_skipButtonText=this._opts.playoutData.skipButtonText)),this._forceCanAutoPlay="true"===this._opts.playoutData.forceCanAutoPlay,this._blockInsecureVPAID=this._playout_blockInsecureVPAID="true"===this._opts.playoutData.blockInsecureVPAID,void 0!==this._opts.playoutData.imaEnablePreloading&&(this._imaEnablePreloading=this._playout_imaEnablePreloading="true"===this._opts.playoutData.imaEnablePreloading),void 0!==a.useSession&&(this._useSession="true"===a.useSession),void 0!==a.adsystem_rdid&&(this._adsystem_rdid=a.adsystem_rdid),void 0!==a.adsystem_idtype&&(this._adsystem_idtype=a.adsystem_idtype),void 0!==a.adsystem_is_lat&&(this._adsystem_is_lat="true"===a.adsystem_is_lat||1===parseInt(a.adsystem_is_lat,10)),void 0!==a.adsystem_buid&&(this._adsystem_buid=a.adsystem_buid)}if(void 0!==this._opts.adServicesData){var s=this._adUnits&&this._adUnits.find&&this._adUnits.find((function(t){return t&&t.positionType===e.PosType.LEADER}));this._adUnits=this._opts.adServicesData,s&&this._adUnits.push(s)}if(void 0!==this._opts.clipData&&null!=this._opts.clipData){var r=this._opts.clipData;this._opts.msasClipData=r,void 0!==r.positions&&(this._clipAdUnits=this._adUnitsFromLegacyPositions(r.positions)),this._clipDuration=isNaN(parseFloat(r.length))?0:parseFloat(r.length),this._clipDisabled="true"===r.disablecommercials||!0===r.disablecommercials,this._clipIsInArticle=r.mediatype===e.PosType.INARTICLE||"mainroll"===r.mediatype}if(this._onPlayoutChangedBound=this._onPlayoutChanged.bind(this),this._onLoadedClipDataBound=this._onLoadedClipData.bind(this),this._onAdSystemCanPlayBound=this._onAdSystemCanPlay.bind(this),this._onAdSystemStartedBound=this._onAdSystemStarted.bind(this),this._onAdSystemFinishedBound=this._onAdSystemFinished.bind(this),this._onAdSystemSkippedBound=this._onAdSystemSkipped.bind(this),this._onAdSystemFailedBound=this._onAdSystemFailed.bind(this),this._onAdSystemNoAdBound=this._onAdSystemNoAd.bind(this),this._onAdSystemRequestBound=this._onAdSystemRequest.bind(this),this._onPlayerPauseBound=this._onPlayerPause.bind(this),this._onPlayerPlayingBound=this._onPlayerPlaying.bind(this),this._onLearnMoreClickedBound=this._onLearnMoreClicked.bind(this),void 0!==t&&null!=t){this.$element=t,o.default.getService(this._opts.playerAliasOrId).setInstance("MSASController",this),this.$wrapper=this.$element.closest(".bb_wrapper");var l=o.default.getService(this._opts.playerAliasOrId).getInstance("Detections");l&&(this._canPlayInline=!!l.canPlayInline,this._isMobileDevice=!!l.isMobileDevice,this._isTouchDevice=!!l.isTouchDevice,this._avoidPreload=!!l.avoidPreload,this._isAndroid=!!l.isAndroid),this._playoutController=o.default.getService(this._opts.playerAliasOrId).getInstance("PlayoutController"),this._msasPlaceholderController=new c.default(this.$element,this._opts),this.$element.on("bb_playout_changed",this._onPlayoutChangedBound),this.$element.on("bb_mediaclip_loaded",this._onLoadedClipDataBound),this.$element.on("bb_adsystem_canplay",this._onAdSystemCanPlayBound),this.$element.on("bb_adsystem_started",this._onAdSystemStartedBound),this.$element.on("bb_adsystem_finished",this._onAdSystemFinishedBound),this.$element.on("bb_adsystem_skipped",this._onAdSystemSkippedBound),this.$element.on("bb_adsystem_failed",this._onAdSystemFailedBound),this.$element.on("bb_adsystem_noad",this._onAdSystemNoAdBound),this.$element.on("bb_adsystem_request",this._onAdSystemRequestBound),this.$element.on("bb_learnmore_clicked",this._onLearnMoreClickedBound),this.$element.on("pause",this._onPlayerPauseBound),this.$element.on("playing",this._onPlayerPlayingBound),this._msasCtaController=new d.default(this.$element,this._opts)}var h=null!=this._clipAdUnits?this._clipAdUnits:this._adUnits;null!=h&&(h=this._pruneLineItems(h),this._clipIsInArticle&&!this._canPlayInline&&null!=this.$element&&this.$element.triggerHandler("bb_flagchange",[{canPlayInline:h.length>0}])),(null==h?void 0:h.length)&&u.loadIMA()}return n.default(e,[{key:"_pos",get:function(){return this._posInternal},set:function(e){var t,i;this._posInternal=e,null===(t=this._msasCtaController)||void 0===t||t.setPosition(e),null===(i=this._msasPlaceholderController)||void 0===i||i.setPosition(e)}},{key:"_posInarticleSuccess",get:function(){return this._posInarticleSuccessInternal},set:function(e){var t,i;this._posInarticleSuccessInternal=e,null===(t=this._msasCtaController)||void 0===t||t.setPosInarticleSuccess(e),null===(i=this._msasPlaceholderController)||void 0===i||i.setPosInarticleSuccess(e)}},{key:"_onPlayerPause",value:function(){var e,t,i;this._system&&"true"!==(null===(e=this._currentAdUnit)||void 0===e||null===(t=e.playout)||void 0===t?void 0:t.commercialPauseButton)&&(null===(i=this._playoutController)||void 0===i||i.setTemporaryPlayoutData({commercialPauseButton:"true"}))}},{key:"_onPlayerPlaying",value:function(){var e,t,i,n,a;this._system&&"true"!==(null===(e=this._currentAdUnit)||void 0===e||null===(t=e.playout)||void 0===t?void 0:t.commercialPauseButton)&&(null===(i=this._playoutController)||void 0===i||i.setTemporaryPlayoutData({commercialPauseButton:null===(n=this._currentAdUnit)||void 0===n||null===(a=n.playout)||void 0===a?void 0:a.commercialPauseButton}))}},{key:"_onLearnMoreClicked",value:function(){if((Array.isArray(this._currentAdUnit.lineitems)||"object"==typeof this._currentAdUnit.lineitems&&null!==this._currentAdUnit.lineitems)&&this._line<this._currentAdUnit.lineitems.length){var e=this._currentAdUnit.lineitems[this._line];if(e){var t={adType:e.vast_subtype?e.vast_subtype:"generic",adPosition:this._pos,lineItemCode:e.code};this.$element&&this.$element.triggerHandler("bb_adsystem_clicked",[t])}}}},{key:"exit",value:function(){return null!=this.$element&&(this.$element.off("bb_playout_changed",this._onPlayoutChangedBound),this.$element.off("bb_mediaclip_loaded",this._onLoadedClipDataBound),this.$element.off("bb_adsystem_started",this._onAdSystemStartedBound),this.$element.off("bb_adsystem_finished",this._onAdSystemFinishedBound),this.$element.off("bb_adsystem_skipped",this._onAdSystemSkippedBound),this.$element.off("bb_adsystem_failed",this._onAdSystemFailedBound),this.$element.off("bb_adsystem_noad",this._onAdSystemNoAdBound),this.$element.off("bb_adsystem_request",this._onAdSystemRequestBound),this.$element.off("bb_learnmore_clicked",this._onLearnMoreClickedBound),this.$element.off("pause",this._onPlayerPauseBound),this.$element.off("playing",this._onPlayerPlayingBound)),this._line=-1,this._currentAdUnit={},null!=this._system&&(this._system=this._system.exit()),o.default.getService(this._opts.playerAliasOrId).setInstance("MSASController",null),null}},{key:"reset",value:function(){var e;this._line=-1,this._currentAdUnit={},null!=this._system&&(this._system=this._system.exit()),null===(e=this._playoutController)||void 0===e||e.resetTemporaryPlayoutData()}},{key:"load",value:function(e,t){return r.default("[MSASController] load, going to call play with shouldPause = true (preloadAds)"),this.play(e,!0,t)}},{key:"loadAdServicesData",value:function(e){this._adUnits=e||[],this._clipAdUnits=null}},{key:"play",value:function(t,i,n){if(this._userAction=n,this._shouldPause=!!i,this._disabled||this._clipDisabled)return!1;var a=!0;switch(t){case"PRE":this._preCanplay=!1,this._playPosition(e.PosType.PREROLL)||(a=this._playNextPosition());break;case"MAIN":this._playPosition(e.PosType.INARTICLE)||this._playPosition(e.PosType.VMAP)||this._playPosition(e.PosType.MIDROLL)||this._playPosition(e.PosType.OVERLAY)||(a=this._playNextPosition());break;case"POST":this._playPosition(e.PosType.POSTROLL)||(a=this._playNextPosition());break;default:a=!1}return a}},{key:"playAdTag",value:function(t){var i,n=t.phase,o="PRE"===n?e.PosType.PREROLL:"MAIN"===n?e.PosType.MIDROLL:e.PosType.POSTROLL;if("PRE"===n||"POST"===n){if(null===(i=this._adUnits)||void 0===i?void 0:i.some((function(e){return(null==e?void 0:e.positionType)===o&&"published"===e.status})))return!1}else if("MAIN"===n){var r;if(null===(r=this._adUnits)||void 0===r?void 0:r.some((function(t){return((null==t?void 0:t.positionType)===e.PosType.VMAP||(null==t?void 0:t.positionType)===e.PosType.MIDROLL)&&"published"===t.status})))return!1}var u={systemconfig:{adUnitCode:"playadtag_api",publication:this._opts.playoutData.publication,vastPrefetch:!1,useAuction:!1},type:"VAST",subtype:"generic"};t.vastUrl?u.systemconfig.url=t.vastUrl:t.vastXml&&(u.systemconfig.xml=t.vastXml);var d={lineItem:{id:"-1",playout:{},type:"LineItem",status:"published",title:"playadtag_api",code:"playadtag_api"},config:u,timeout:15e3,isVPAIDAd:!1,skipOffset:this._skipOffset,skipCounterText:this._skipCounterText,skipButtonText:this._skipButtonText,upcomingVideo:this._upcomingVideo,upcomingText:this._upcomingText,blockInsecureVPAID:this._blockInsecureVPAID,imaEnablePreloading:this._imaEnablePreloading,msasPos:o.toUpperCase(),imaDisableCustomPlaybackForIOS10Plus:!this._imaCustomPlaybackForIOS10Plus},c=[this.$element,this._opts,{adsystem_rdid:this._adsystem_rdid,adsystem_idtype:this._adsystem_idtype,adsystem_is_lat:this._adsystem_is_lat?0:1,adsystem_buid:this._adsystem_buid}];return["PRE","POST"].includes(n)?(this._programmaticSystems[o].push({systemData:d,systemParams:c}),!0):"MAIN"===n&&(this._system&&(this._system=this._system.exit()),this._opts.msasSystemData=d,this._system=a.default(l.default,s.default(c)),void this._system.handlePosition(e.PosType.MIDROLL,!1,this._userAction))}},{key:"pause",value:function(){this._shouldPause=!0,null!=this._system&&this._system.pause()}},{key:"resume",value:function(e){this._shouldPause=!1,null!=this._system&&this._system.resume(e)}},{key:"set",value:function(e,t){var i=!1;switch(e){case"muted":case"volume":null!=this._system&&(i=this._system.set(e,t))}return i}},{key:"get",value:function(t){switch(t){case"disabled":return this._disabled;case"adCounter_clip":var i=0;for(var n in this._perPositionAdCounter_clip)Object.prototype.hasOwnProperty.call(this._perPositionAdCounter_clip,n)&&n!==e.PosType.LEADER&&(i+=this._perPositionAdCounter_clip[n]);return i;default:if(null!=this._system)return this._system.get(t)}}},{key:"resetAdCounter_load",value:function(){this._perPositionAdCounter_load={},this.reset()}},{key:"isPlaying",value:function(){return null!=this._system&&this._system.isPlaying()}},{key:"_adUnitsFromLegacyPositions",value:function(t){var i=null;if(void 0!==t&&null!=t){i=[];for(var n=0;n<t.length;n++){var a=t[n].systems;if(void 0!==a&&null!=a){for(var s=1,o="mainroll"===t[n].type?e.PosType.INARTICLE:t[n].type,r=void 0!==t[n].name?t[n].name:this._playoutLabel+"_"+this._pos,l={id:"-1",type:"AdUnit",status:"published",playout:{commercialControls:"automatic",commercialMuteButton:"true",commercialPauseButton:"true",textCommercialTimeRemaining:""},lineitems:[],positionType:o,title:"legacy",code:r,timeout:15},u=0;u<a.length;u++){var d=a[u].systemconfig;if(void 0!==d&&null!=d&&"true"!==d.disabled){var c=r+"_"+a[u].type+"_"+(void 0!==d.subtype?d.subtype:a[u].subtype)+"_"+s,h={id:"-1",playout:{},type:"LineItem",status:"published",title:d.label,code:c,priority:s};if("vms"===a[u].type)h.creativeType="creative",h.creativeId=d["media-clipid"];else h.creativeType="VAST",h.vast_url=d.url,h.vast_xml=d.xml,h.legacy_subtype=d.subtype,h.vast_subtype=a[u].subtype,h.timeout=d.timeout,h.legacy_isVPAIDAd="string"==typeof d.subtype&&d.subtype.match(/_inline/)||"true"===d.inline;h.playout={commercialBehaviour:this._commercialBehaviour,play_inline:d.inline,disableControls:"false",minClipDurationPreroll:this._minClipDurationPreroll,minClipDurationPostroll:this._minClipDurationPostroll,imaEnablePreloading:d.imaEnablePreloading},l.lineitems.push(h),s++}}i.push(l)}}}return i}},{key:"_onPlayoutChanged",value:function(e,t){if(t&&void 0!==t.playoutData){var i=t.playoutData;void 0!==i.label&&(this._playoutLabel=i.label),void 0!==i.positions&&(this._adUnits=this._adUnitsFromLegacyPositions(i.positions)),void 0!==i.commercials&&(this._disabled="false"===i.commercials),void 0!==i.disableCookies&&(this._disableCookies=i.disableCookies),void 0!==i.commercialBehaviour&&(this._commercialBehaviour=this._playout_commercialBehaviour=i.commercialBehaviour),void 0!==i.minClipDurationPreroll&&parseFloat(i.minClipDurationPreroll)>=0&&(this._minClipDurationPreroll=this._playout_minClipDurationPreroll=parseFloat(i.minClipDurationPreroll)),void 0!==i.minClipDurationPostroll&&parseFloat(i.minClipDurationPostroll)>=0&&(this._minClipDurationPostroll=this._playout_minClipDurationPostroll=parseFloat(i.minClipDurationPostroll)),void 0!==i.skipOffset&&parseFloat(i.skipOffset)>=0&&(this._skipOffset=this._playout_skipOffset=parseFloat(i.skipOffset),void 0!==i.skipCounterText&&null!=i.skipCounterText&&(this._skipCounterText=this._playout_skipCounterText=i.skipCounterText),void 0!==i.skipButtonText&&null!=i.skipButtonText&&(this._skipButtonText=this._playout_skipButtonText=i.skipButtonText)),void 0!==i.blockInsecureVPAID&&(this._blockInsecureVPAID=this._playout_blockInsecureVPAID="true"===i.blockInsecureVPAID),void 0!==i.imaEnablePreloading&&(this._imaEnablePreloading=this._playout_imaEnablePreloading="true"===i.imaEnablePreloading),void 0!==i.useSession&&(this._useSession="true"===i.useSession),void 0!==i.adsystem_rdid&&(this._adsystem_rdid=i.adsystem_rdid),void 0!==i.adsystem_idtype&&(this._adsystem_idtype=i.adsystem_idtype),void 0!==i.adsystem_is_lat&&(this._adsystem_is_lat="true"===i.adsystem_is_lat||1===parseInt(i.adsystem_is_lat,10)),void 0!==i.adsystem_buid&&(this._adsystem_buid=i.adsystem_buid)}}},{key:"_onLoadedClipData",value:function(t,i){if(this._clipDuration=0,this._clipPositions=null,this._clipDisabled=!1,this._clipIsInArticle=!1,this._perPositionAdCounter_clip={},void 0!==i&&null!=i){var n=i.clipData;this._opts.msasClipData=n,"object"==typeof n&&(n.length>0&&(this._clipDuration=parseFloat(n.length)),n.mediatype!==e.PosType.INARTICLE&&"mainroll"!==n.mediatype||(this._clipIsInArticle=!0),void 0!==n.positions&&(this._clipAdUnits=this._adUnitsFromLegacyPositions(n.positions)),void 0!==n.disablecommercials&&(this._clipDisabled="true"===n.disablecommercials||!0===n.disablecommercials))}}},{key:"_pruneLineItems",value:function(e){if(void 0!==e&&null!=e)for(var t=e.length-1;t>=0;t--){var i=e[t].lineitems;if(void 0!==i&&null!=i)for(var n=i.length-1;n>=0;n--){var a=i[n];if(void 0!==a&&null!=a){var s=!1;if("published"!==a.status?s=!0:this._clipIsInArticle&&!this._canPlayInline&&("true"===a.playout.play_inline||a.legacy_isVPAIDAd?this._clipDuration>0&&this._clipDuration<a.playout.minClipDuration&&(s=!0):s=!0),a.conditions){var o=void 0!==this._opts.userDeviceType?this._opts.userDeviceType:"UNKNOWN";"UNKNOWN"===o&&(o=this._isMobileDevice?"MOBILE":this._isTouchDevice?"TABLET":"DESKTOP");for(var r=!0,l=0;l<a.conditions.length;l++){var u=a.conditions[l];if(u){for(var d=!1,c=0;c<u.filters.length;c++){var h=u.filters[c];"is"===h.operator?h.value===o.toLowerCase()&&(d=!0):h.value!==o.toLowerCase()&&(d=!0)}r=r&&d}}r||(s=!0)}s&&i.splice(n,1)}}}return e}},{key:"_okForCommercialBehaviour",value:function(){var e=!1;if(this._clipIsInArticle)return!0;switch(this._commercialBehaviour){case"Once per load":e=!(this._perPositionAdCounter_load[this._pos]>0);break;case"Once per session":e=!(this._perPositionAdCounter_sess[this._pos]>0);break;default:e=!(this._perPositionAdCounter_clip[this._pos]>0)}return e}},{key:"_okForClipDuration",value:function(){var t=!0;switch(this._pos){case e.PosType.PREROLL:this._clipDuration>0&&this._clipDuration<this._minClipDurationPreroll&&(t=!1);break;case e.PosType.POSTROLL:this._clipDuration>0&&this._clipDuration<this._minClipDurationPostroll&&(t=!1)}return t}},{key:"_playPosition",value:function(t){var i;r.default("[MSASController] _playPosition: "+t);var n=!1;this._pos=t.toLowerCase(),"mainroll"===this._pos&&(this._pos=e.PosType.INARTICLE),this._commercialBehaviour=this._playout_commercialBehaviour,this._minClipDurationPreroll=this._playout_minClipDurationPreroll,this._minClipDurationPostroll=this._playout_minClipDurationPostroll,this._clipIsInArticle||this.reset();var a,s=null!=this._clipAdUnits?this._clipAdUnits:this._adUnits;if(null!=s){s=this._pruneLineItems(s),this._clipIsInArticle&&!this._canPlayInline&&null!=this.$element&&this.$element.triggerHandler("bb_flagchange",[{canPlayInline:s.length>0}]);for(var o=0;o<s.length&&(s[o].positionType!==this._pos||"published"!==s[o].status);)o++;o<s.length&&(a=this._currentAdUnit=s[o],this.$element.trigger("bb_adunit_initialized",[{adPosition:this._pos,adUnitCode:a.code}]),this._commercialBehaviour=this._adUnit_commercialBehaviour=a&&void 0!==a.playout&&void 0!==a.playout.commercialBehaviour?a.playout.commercialBehaviour:this._playout_commercialBehaviour,this._minClipDurationPreroll=this._adUnit_minClipDurationPreroll=a&&void 0!==a.playout&&void 0!==a.playout.minClipDurationPreroll&&parseFloat(a.playout.minClipDurationPreroll)>=0?Math.max(a.playout.minClipDurationPreroll,this._playout_minClipDurationPreroll):this._playout_minClipDurationPreroll,this._minClipDurationPostroll=this._adUnit_minClipDurationPostroll=a&&void 0!==a.playout&&void 0!==a.playout.minClipDurationPostroll&&parseFloat(a.playout.minClipDurationPostroll)>=0?Math.max(a.playout.minClipDurationPostroll,this._playout_minClipDurationPostroll):this._playout_minClipDurationPostroll,a&&a.playout&&parseFloat(a.playout.skipOffset)>=0?(this._skipOffset=this._adUnit_skipOffset=a&&a.playout&&void 0!==a.playout.skipOffset&&parseFloat(a.playout.skipOffset)>=0?parseFloat(a.playout.skipOffset):this._playout_skipOffset,this._skipCounterText=this._adUnit_skipCounterText=a&&a.playout&&void 0!==a.playout.skipCounterText&&null!=a.playout.skipCounterText?a.playout.skipCounterText:this._playout_skipCounterText,this._skipButtonText=this._adUnit_skipButtonText=a&&a.playout&&void 0!==a.playout.skipButtonText&&null!=a.playout.skipButtonText?a.playout.skipButtonText:this._playout_skipButtonText):(this._skipOffset=this._adUnit_skipOffset=this._playout_skipOffset,this._skipCounterText=this._adUnit_skipCounterText=this._playout_skipCounterText,this._skipButtonText=this._adUnit_skipButtonText=this._playout_skipButtonText),this._upcomingVideo=a&&void 0!==a.playout&&void 0!==a.playout.upcomingVideo&&null!=a.playout.upcomingVideo?a.playout.upcomingVideo:this._upcomingVideo,this._upcomingText=a&&void 0!==a.playout&&void 0!==a.playout.upcomingText&&null!=a.playout.upcomingText?a.playout.upcomingText:this._upcomingText,this._blockInsecureVPAID=this._adUnit_blockInsecureVPAID=a&&void 0!==a.playout&&"true"===a.playout.blockInsecureVPAID?"true"===a.playout.blockInsecureVPAID:this._playout_blockInsecureVPAID,this._imaEnablePreloading=this._adUnit_imaEnablePreloading=a&&a.playout&&void 0!==a.playout.imaEnablePreloading?"true"===a.playout.imaEnablePreloading:this._playout_imaEnablePreloading,this._imaCustomPlaybackForIOS10Plus=this._adUnit_imaCustomPlaybackForIOS10Plus=!(!a||!a.playout||void 0===a.playout.imaCustomPlaybackForIOS10Plus)&&"true"===a.playout.imaCustomPlaybackForIOS10Plus,a.playout&&(this._msasPlaceholderController.updateAdUnitPlayoutSettings(a.playout),this._msasCtaController.updateAdUnitPlayoutSettings(a.playout)),this._line=-1,this._okForCommercialBehaviour()&&this._okForClipDuration()&&(n=this._handleNextLineItem()))}return a||(null===(i=this._programmaticSystems[this._pos])||void 0===i?void 0:i.length)&&(this.$element.trigger("bb_adunit_initialized",[{adPosition:this._pos,adUnitCode:"playadtag_api"}]),this._okForCommercialBehaviour()&&this._okForClipDuration()&&(n=this._handleNextProgrammaticSystem())),this._pos===e.PosType.INARTICLE&&n&&(this._posInarticleSuccess=!0),n}},{key:"_playNextPosition",value:function(t){var i;r.default("MSASController.prototype._playNextPosition: mayTrigger = "+t),null===(i=this._playoutController)||void 0===i||i.resetTemporaryPlayoutData();var n=!0;switch(void 0===t&&(t=!1),this._pos){case e.PosType.PREROLL:this._programmaticSystems[e.PosType.PREROLL]=[],this._playPosition(e.PosType.LEADER)||(t&&this.$element.trigger("bb_msas_pre_finished"),n=!1);break;case e.PosType.LEADER:t&&this.$element.trigger("bb_msas_pre_finished"),n=!1;break;case e.PosType.INARTICLE:case e.PosType.VMAP:case e.PosType.OVERLAY:case e.PosType.MIDROLL:t&&this.$element.trigger("bb_msas_main_finished"),n=!1;break;case e.PosType.POSTROLL:this._programmaticSystems[e.PosType.POSTROLL]=[],this._playPosition(e.PosType.EXITSCREEN)||(t&&this.$element.trigger("bb_msas_post_finished"),n=!1);break;case e.PosType.EXITSCREEN:t&&this.$element.trigger("bb_msas_post_finished"),n=!1}return n}},{key:"updateLineItemPlayout",value:function(e){var t;return null===(t=this._playoutController)||void 0===t?void 0:t.setTemporaryPlayoutData(e)}},{key:"_handleNextProgrammaticSystem",value:function(){var e,t=!1;if(null===(e=this._programmaticSystems[this._pos])||void 0===e?void 0:e.length){var i=this._programmaticSystems[this._pos].shift(),n=i.systemData,o=i.systemParams;this._system&&(this._system=this._system.exit()),this._opts.msasSystemData=n,this._system=a.default(l.default,s.default(o)),t=this._system.handlePosition(this._pos,!1,this._userAction)}return t}},{key:"_handleNextLineItem",value:function(){var t,i=!1;if(null===(t=this._playoutController)||void 0===t||t.resetTemporaryPlayoutData(),(Array.isArray(this._currentAdUnit.lineitems)||"object"==typeof this._currentAdUnit.lineitems&&null!==this._currentAdUnit.lineitems)&&(this._line++,this._line<this._currentAdUnit.lineitems.length)){var n,a=this._currentAdUnit.lineitems[this._line];r.default("[MSASController] _handleNextLineItem, LINEITEM code = "+a.code+"; id = "+a.id),void 0!==a.playout.disableControls||(a.playout.disableControls="false"),this._currentAdUnit&&this._currentAdUnit.playout&&(a.playout.commercialControls=this._currentAdUnit.playout.commercialControls,a.playout.commercialPauseButton=this._currentAdUnit.playout.commercialPauseButton,a.playout.commercialMuteButton=this._currentAdUnit.playout.commercialMuteButton,a.playout.textCommercialTimeRemaining=this._currentAdUnit.playout.textCommercialTimeRemaining,a.playout.commercialProgressBar=this._currentAdUnit.playout.commercialProgressBar,a.playout.commercialProgressBarColor=this._currentAdUnit.playout.commercialProgressBarColor,a.playout.eventHandlers=this._currentAdUnit.playout.eventHandlers),""===a.playout.commercialBehaviour&&delete a.playout.commercialBehaviour,null===(n=this._playoutController)||void 0===n||n.setTemporaryPlayoutData(a.playout),-1!==a.id&&(this._minClipDurationPreroll=a&&a.playout&&void 0!==a.playout.minClipDurationPreroll&&parseFloat(a.playout.minClipDurationPreroll)>=0?Math.max(a.playout.minClipDurationPreroll,this._adUnit_minClipDurationPreroll):this._adUnit_minClipDurationPreroll,this._minClipDurationPostroll=a&&a.playout&&void 0!==a.playout.minClipDurationPostroll&&parseFloat(a.playout.minClipDurationPostroll)>=0?Math.max(a.playout.minClipDurationPostroll,this._adUnit_minClipDurationPostroll):this._adUnit_minClipDurationPostroll,a&&a.playout&&parseFloat(a.playout.skipOffset)>=0?(this._skipOffset=a&&a.playout&&void 0!==a.playout.skipOffset&&parseFloat(a.playout.skipOffset)>=0?parseFloat(a.playout.skipOffset):this._adUnit_skipOffset,this._skipCounterText=a&&a.playout&&void 0!==a.playout.skipCounterText&&null!=a.playout.skipCounterText?a.playout.skipCounterText:this._adUnit_skipCounterText,this._skipButtonText=a&&a.playout&&void 0!==a.playout.skipButtonText&&null!=a.playout.skipButtonText?a.playout.skipButtonText:this._adUnit_skipButtonText):(this._skipOffset=this._adUnit_skipOffset,this._skipCounterText=this._adUnit_skipCounterText,this._skipButtonText=this._adUnit_skipButtonText),!this._blockInsecureVPAID&&a&&a.playout&&void 0!==a.playout.blockInsecureVPAID&&"true"===a.playout.blockInsecureVPAID?this._blockInsecureVPAID=!0:this._blockInsecureVPAID=this._blockInsecureVPAID||this._adUnit_blockInsecureVPAID,this._imaEnablePreloading=a&&a.playout&&void 0!==a.playout.imaEnablePreloading?"true"===a.playout.imaEnablePreloading:this._adUnit_imaEnablePreloading,this._imaCustomPlaybackForIOS10Plus=a&&a.playout&&void 0!==a.playout.imaCustomPlaybackForIOS10Plus&&""!==a.playout.imaCustomPlaybackForIOS10Plus?"true"===a.playout.imaCustomPlaybackForIOS10Plus:this._adUnit_imaCustomPlaybackForIOS10Plus);var s={systemconfig:{},type:null,subtype:null},u=this._line===this._currentAdUnit.lineitems.length-1?15e3:5e3;a&&parseFloat(a.timeout)>0?u=parseFloat(1e3*a.timeout):a&&a.playout&&parseFloat(a.playout.timeout)>0&&(u=parseFloat(1e3*a.playout.timeout));var d=!1;if(a&&a.legacy_isVPAIDAd&&(d=!0),this._opts.msasSystemData={lineItem:a,config:s,timeout:u,isVPAIDAd:d,skipOffset:this._skipOffset,skipCounterText:this._skipCounterText,skipButtonText:this._skipButtonText,upcomingVideo:this._upcomingVideo,upcomingText:this._upcomingText,blockInsecureVPAID:this._blockInsecureVPAID,imaEnablePreloading:this._imaEnablePreloading,imaDisableCustomPlaybackForIOS10Plus:!this._imaCustomPlaybackForIOS10Plus},null!=this._system&&(this._system=this._system.exit()),s.type="VAST",s.systemconfig.adUnitCode=this._currentAdUnit.code,s.systemconfig.publication=this._opts.playoutData.publication,s.subtype=a.vast_subtype?a.vast_subtype:"generic",void 0!==a.legacy_subtype&&(s.systemconfig.subtype=a.legacy_subtype),s.systemconfig.url=a.vast_url,s.systemconfig.xml=a.vast_xml,s.systemconfig.vastPrefetch=a.vastPrefetch,s.systemconfig.useAuction="auction"===a.subtype&&"prebid"===a.auctionSubtype,s.systemconfig.useAuction&&(s.systemconfig.prebidConfig=a.auctionConfiguration),this._system=new l.default(this.$element,this._opts,{adsystem_rdid:this._adsystem_rdid,adsystem_idtype:this._adsystem_idtype,adsystem_is_lat:this._adsystem_is_lat?0:1,adsystem_buid:this._adsystem_buid}),null!=this._system){if((this._pos===e.PosType.PREROLL||this._pos===e.PosType.LEADER)&&(!this._avoidPreload||this._userAction)&&(!this._isAndroid||!this._forceCanAutoPlay)){var c=o.default.getService(this._opts.playerAliasOrId).getInstance("HeadController");null==c||this._loadedHtml5Media||(this._loadedHtml5Media=!0,c.loadHtml5Media(this._userAction))}this._okForCommercialBehaviour()&&this._okForClipDuration()&&(i=this._system.handlePosition(this._pos,this._shouldPause,this._userAction))}}return i}},{key:"_onAdSystemCanPlay",value:function(t,i){var n;this._pos===e.PosType.PREROLL&&(this._preCanplay||(this._preCanplay=!0,null===(n=this.$element)||void 0===n||n.trigger("bb_msas_pre_canplay")))}},{key:"_onAdSystemStarted",value:function(e,t){this._msasCtaController.setHasCompanionAd(this._msasPlaceholderController.hasCompanionAd()),void 0===t&&(t={});var i=t.adProperties;if(i&&"BB Adserver"===i.adSystem&&(!i.adContentType||i.adContentType.match(/application/i))){var n=o.default.getService(this._opts.playerAliasOrId).getInstance("SkinController");n&&n.hide("tapToUnmute")}}},{key:"_onAdSystemSkipped",value:function(t){this._perPositionAdCounter_clip[this._pos]?this._perPositionAdCounter_clip[this._pos]++:this._perPositionAdCounter_clip[this._pos]=1,this._perPositionAdCounter_load[this._pos]?this._perPositionAdCounter_load[this._pos]++:this._perPositionAdCounter_load[this._pos]=1,this._perPositionAdCounter_sess[this._pos]?this._perPositionAdCounter_sess[this._pos]++:this._perPositionAdCounter_sess[this._pos]=1,this._pos!==e.PosType.VMAP&&(this._system&&(this._system=this._system.exit()),this._playNextPosition(!0))}},{key:"_onAdSystemFinished",value:function(e){this._perPositionAdCounter_clip[this._pos]?this._perPositionAdCounter_clip[this._pos]++:this._perPositionAdCounter_clip[this._pos]=1,this._perPositionAdCounter_load[this._pos]?this._perPositionAdCounter_load[this._pos]++:this._perPositionAdCounter_load[this._pos]=1,this._perPositionAdCounter_sess[this._pos]?this._perPositionAdCounter_sess[this._pos]++:this._perPositionAdCounter_sess[this._pos]=1,this._system&&(this._system=this._system.exit()),this._playNextPosition(!0)}},{key:"_onAdSystemFailed",value:function(e){null!=this._system&&(this._system=this._system.exit()),this._okForCommercialBehaviour()&&this._okForClipDuration()&&(this._handleNextLineItem()||this._handleNextProgrammaticSystem())||(this.isOutstreamRefreshEnabled()&&(this._outstreamRefreshFinished=!0,this.$element.trigger("bb_msas_outstream_refresh_finished")),this._playNextPosition(!0))}},{key:"_onAdSystemNoAd",value:function(e){null!=this._system&&(this._system=this._system.exit()),this._okForCommercialBehaviour()&&this._okForClipDuration()&&(this._handleNextLineItem()||this._handleNextProgrammaticSystem())||(this.isOutstreamRefreshEnabled()&&(this._outstreamRefreshFinished=!0,this.$element.trigger("bb_msas_outstream_refresh_finished")),this._playNextPosition(!0))}},{key:"_onAdSystemRequest",value:function(e,t){switch(null==t?void 0:t.action){case"content_pause":var i;null===(i=this._playoutController)||void 0===i||i.setTemporaryPlayoutData({commercialPauseButton:"true",commercialMuteButton:"true",commercialProgressBar:"true",disableControls:"false"});break;case"content_resume":var n,a;(null===(n=this._currentAdUnit)||void 0===n?void 0:n.playout)&&(null===(a=this._playoutController)||void 0===a||a.setTemporaryPlayoutData({commercialPauseButton:this._currentAdUnit.playout.commercialPauseButton,commercialMuteButton:this._currentAdUnit.playout.commercialMuteButton,commercialProgressBar:this._currentAdUnit.playout.commercialProgressBar,disableControls:this._currentAdUnit.playout.disableControls}))}}},{key:"isOutstreamRefreshEnabled",value:function(){var e,t;return(!this._currentAdUnit||(null===(e=this._currentAdUnit)||void 0===e||null===(t=e.lineitems)||void 0===t?void 0:t.length))&&!0!==this._opts.isRenderer&&"true"===this._opts.playoutData.outstreamRefresh}},{key:"isOutstreamRefreshRetryEnabled",value:function(){return this.isOutstreamRefreshEnabled()&&"true"===this._opts.playoutData.outstreamRefreshRetry}}]),e}();h.PosType={PREROLL:"preroll",LEADER:"leader",INARTICLE:"inarticle",VMAP:"vmap",MIDROLL:"midroll",OVERLAY:"overlay",POSTROLL:"postroll",EXITSCREEN:"exitscreen"}})),parcelRequire.register("5AjVZ",(function(e,t){$parcel$export(e.exports,"default",(function(){return y})),parcelRequire("lDGnc");var i=parcelRequire("6YA9f"),n=parcelRequire("27Qiu"),a=parcelRequire("7CnHN"),s=parcelRequire("fBLaW"),o=parcelRequire("eamhc"),r=parcelRequire("7gftt"),l=parcelRequire("kVqNu"),u=parcelRequire("gCaES"),d=parcelRequire("eLoLc"),c=parcelRequire("dZQbR");parcelRequire("6JR1F");var h=parcelRequire("hGJI5"),p=parcelRequire("3DsR2"),_=parcelRequire("e06N2"),m=parcelRequire("gDCxw");parcelRequire("h33Eq");var f=parcelRequire("cYwG5"),v=parcelRequire("k4rzQ"),g=parcelRequire("bbFoI"),y=function(e){"use strict";i.default(c,e);var t=n.default(c);function c(e,i){var n,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return a.default(this,c),(n=t.call(this,e,i,o))._rdid=null,n._idtype=null,n._is_lat=!1,n._buid=null,n._consentString="",n._consentGdprApplies=0,n._consentCmpVersion=0,n._adMacroHelper=new g.default(e,i),o&&n._adMacroHelper.updateDeviceInfo(o),n.$wrapper&&(n._consentFrameworkSupport=p.default.getService(n._opts.playerAliasOrId).getInstance("ConsentFrameworkSupport"),n._consentFrameworkSupport&&n._consentFrameworkSupport.getCmpData(n._onCmpDataSuccessCallback.bind(s.default(n)),n._onCmpDataErrorCallback.bind(s.default(n)))),n}return o.default(c,[{key:"exit",value:function(){return this.$outstreamIframe&&this.$outstreamIframe.remove(),r.default(l.default(c.prototype),"exit",this).call(this)}},{key:"handlePosition",value:function(e,t,i){this._shouldPause=t,this._userAction=i;var n=!1;if(void 0!==e&&(this._pos=e),this._opts.msasPos=this._pos.toUpperCase(),this._loaded)this._headController&&(this._shouldPause||this._headController.play(this._userAction)),n=!0;else if(null!=this._config&&void 0!==this._config.systemconfig){var a=this;if(this._url=this._config.systemconfig.url,this._xml=this._config.systemconfig.xml,this._vastPrefetch=!0===this._config.systemconfig.vastPrefetch||"true"===this._config.systemconfig.vastPrefetch||"true"===this._opts.playoutData.vastPrefetch,this._useAuction=this._config.systemconfig.useAuction,!this._url&&this._useAuction&&(this._url="__auction_direct__"),!this._url&&!this._xml)return!1;if(this._xml&&(this._url=null),this._url&&(this._urlPromise=this._handleMacros(this._url).then((function(e){e&&(a._url=e,a._vastPrefetch||a._useAuction||(a._data=f.wrapVastUrlInXml(a._url)))}))),this._vastPrefetch)this._data=null;else if(this._xml){var s,o,r;null===(s=this.$element)||void 0===s||s.trigger("bb_ad_log",[{msg:"Ad event: going to handle VAST XML "}]);var l={adType:(null===(o=this._config)||void 0===o?void 0:o.subtype)||"unknown",adPosition:this._pos,adRequestUrl:"n/a"};this._lineItem&&(l.lineItemCode=this._lineItem.code),null===(r=this.$element)||void 0===r||r.triggerHandler("bb_adsystem_initialized",[l]),this._data=this._xml}null!=this._timeoutHandle&&(this._timeoutHandle.clear(),this._timeoutHandle=null),this._timeoutHandle=new f.Timer(this._onTimeout.bind(this),this._timeout),this._isInview||this._timeoutHandle.pause(),n=this._useAuction?this._getPrebidData(this._dataCallback.bind(this)):this._getData(this._dataCallback.bind(this))}return n}},{key:"_handleMacros",value:function(e){var t=this;return u.default($parcel$interopDefault(d).mark((function i(){var n,a,s,o,r,l,u,c,h,f,v,g,y,b,k,w;return $parcel$interopDefault(d).wrap((function(i){for(;;)switch(i.prev=i.next){case 0:c=(new Date).getTime().toString(),h=window.location.protocol+"//"+window.location.hostname+window.location.pathname,f=(null===(n=p.default.getService(t._opts.playerAliasOrId).getInstance("PublicAPI"))||void 0===n?void 0:n.getClipData())||{},(v=m.getCookie("uuid"))||(v=Math.uuid()),e.match(/doubleclick\.net\/[\w/]*pfadx\//i)&&(t._config.subtype="dart"),-1!==e.indexOf("doubleclick.net/gampad/")&&(t._config.subtype="dfp"),t._useAuction&&"__auction_direct__"===t._url&&(t._config.subtype="auction_direct"),e.startsWith("[aps:")&&(t._config.subtype="aps"),_.default("[MSASSystemVAST] handlePosition url: "+e),t.$element&&t.$element.trigger("bb_ad_log",[{msg:"Ad event: going to handle VAST URL "+t._url}]),i.t0=t._config.subtype,i.next="zoomin"===i.t0?15:"smartclip"===i.t0?17:"smartclip_old"===i.t0?18:"openx"===i.t0?26:"dart"===i.t0?28:"dfp"===i.t0?38:44;break;case 15:return t._url=t._url.replace(/&unk=[^&]*/g,"&unk="+v),i.abrupt("break",44);case 17:return i.abrupt("break",44);case 18:return g="400x320","MIDROLL"!==t._pos&&"OVERLAY"!==t._pos||(g="400x299"),"POSTROLL"===t._pos&&(g="400x300"),e.replace(/;sz=[^;|?]*/g,";sz="+g),e=(e=(e=e.replace(/\|;\|sz=[^;|?]*/g,"|;|sz="+g)).replace(/;ord=[^;|?]*/g,";ord="+c)).replace(/\|;\|ord=[^;|?]*/g,"|;|ord="+c),i.abrupt("break",44);case 26:return e=e.replace(/&r=[^&]*/g,"&r="+Math.random()),i.abrupt("break",44);case 28:return e=(e=(e=(e=e.replace(/;kw=[^;|?]*/g,";kw=html5linearnonlinear")).replace(/\|;\|kw=[^;|?]*/g,"|;|kw=html5linearnonlinear")).replace(/;ord=[^;|?]*/g,";ord="+c)).replace(/\|;\|ord=[^;|?]*/g,"|;|ord="+c),v&&t._idtype&&void 0!==t._is_lat&&(e=(e=e.match(/;dc_rdid=?[^;?&#]*/)?e.replace(/;dc_rdid=?[^;?&#]*/g,";dc_rdid="+v):e+";dc_rdid="+v).match(/;dc_lat=?[^;?&#]*/)?e.replace(/;dc_lat=?[^;?&#]*/g,";dc_lat="+(t._is_lat?"1":"0")):e+";dc_lat="+(t._is_lat?"1":"0")),t._restriction_npaOnly&&(e.match(/;npa=?[^;?&#]*/)?e=e.replace(/;npa=?[^;?&#]*/g,";npa=1"):e+=";npa=1"),e=(e=(e=t._addCustomDartParameters(e)).replace(/&url=[^&]*/g,"&url="+encodeURIComponent(h))).replace(/&correlator=[^&]*/g,"&correlator="+c),i.abrupt("break",44);case 38:return e=(e=e.replace(/&url=[^&]*/g,"&url="+encodeURIComponent(h))).replace(/&correlator=[^&]*/g,"&correlator="+c),v&&t._idtype&&void 0!==t._is_lat&&(e=(e=null!=(e=e.match(/[?&]{1}rdid=?[^&#]*/)?(e=e.replace(/&rdid=?[^&#]*/g,"&rdid="+v)).replace(/\?rdid=?[^&#]*/g,"?rdid="+v):e+(e.indexOf("?")>=0?"&":"?")+"rdid="+v).match(/[?&]{1}idtype=?[^&#]*/)?(e=e.replace(/&idtype=?[^&#]*/g,"&idtype="+t._idtype)).replace(/\?idtype=?[^&#]*/g,"?idtype="+t._idtype):e+(e.indexOf("?")>=0?"&":"?")+"idtype="+t._idtype).match(/[?&]{1}is_lat=?[^&#]*/)?(e=e.replace(/&is_lat=?[^&#]*/g,"&is_lat="+(t._is_lat?"1":"0"))).replace(/\?is_lat=?[^&#]*/g,"?is_lat="+(t._is_lat?"1":"0")):e+(e.indexOf("?")>=0?"&":"?")+"is_lat="+(t._is_lat?"1":"0")),t._restriction_npaOnly&&(e=null!=e.match(/[?&]{1}npa=?[^&#]*/)?(e=e.replace(/&npa=?[^&#]*/g,"&npa=1")).replace(/\?npa=?[^&#]*/g,"?npa=1"):e+(e.indexOf("?")>=0?"&":"?")+"npa=1"),e=t._addCustomDfPParameters(e),i.abrupt("break",44);case 44:return _.default("[MSASSystemVAST] url before replacing macros = "+t._url),y=window.location.protocol+"//"+window.location.hostname,b=y,"true"!==(null===(a=t._lineItem)||void 0===a||null===(s=a.playout)||void 0===s?void 0:s.blockInsecureVPAID)&&!0!==(null===(o=t._lineItem)||void 0===o||null===(r=o.playout)||void 0===r?void 0:r.blockInsecureVPAID)||(null===(l=t._detections)||void 0===l?void 0:l.isiOS)&&t._detections.iOSVersion<10||(b=window.location.protocol+"//imasdk.googleapis.com"),i.next=50,t._adMacroHelper.findAndResolveMacros(e,!0);case 50:return e=i.sent,"aps"===t._config.subtype&&(e=decodeURIComponent(e)),e=(e=(e=e.replace(/\[clipTitle\]/gi,encodeURIComponent(null==f?void 0:f.title))).replace(/\[clipID\]/gi,null==f?void 0:f.id)).replace(/\[corsdomain\]/gi,encodeURIComponent(b)),k=null!=t._config?t._config.subtype:"unknown",w={adType:k,adPosition:t._pos,adRequestUrl:t._url},t._lineItem&&(w.lineItemCode=t._lineItem.code),null===(u=t.$element)||void 0===u||u.triggerHandler("bb_adsystem_initialized",[w]),e=(e=e.replace(/\[format\]/gi,"application/javascript")).replace(/\[playmode\]/gi,"html5"),i.abrupt("return",e);case 62:case"end":return i.stop()}}),i)})))()}},{key:"_handleJsMacros",value:function(e){if(this._executer&&e){var t=e.match(/\[js:.*?\]/gi);if(!t)return e;for(var i=0;i<t.length;i++){var n=t[i],a=n.replace(/\[js:/,"").replace(/(.*)\]/,"$1"),s=this._executer.execute(a);e=e.replace(n,encodeURIComponent(s))}}return e}},{key:"_handleJs2Macros",value:function(e){if(this._executer&&e){var t=e.match(/\[js2:.*?\]/gi);if(!t)return e;for(var i=0;i<t.length;i++){var n=t[i],a=n.replace(/\[js2:/,"").replace(/(.*)\]/,"$1"),s=this._executer.execute(a);e=e.replace(n,s)}}return e}},{key:"_addCustomDfPParameters",value:function(e){var t=!1;if("object"==typeof this._opts.msasClipData){var i=[];if(null!=(n=e.match(/&iu=([^&#]*)/))&&n.length>1&&(i=n[1].split("/")),void 0!==this._opts.msasClipData.dfp_adunit_l1&&""!=this._opts.msasClipData.dfp_adunit_l1){for(;i.length<=2;)i.push("");i[2]=encodeURIComponent(this._opts.msasClipData.dfp_adunit_l1),t=!0}if(void 0!==this._opts.msasClipData.dfp_adunit_l2&&""!=this._opts.msasClipData.dfp_adunit_l2){for(;i.length<=3;)i.push("");i[3]=encodeURIComponent(this._opts.msasClipData.dfp_adunit_l2),t=!0}if(void 0!==this._opts.msasClipData.dart_zone&&""!=this._opts.msasClipData.dart_zone){for(;i.length<=3;)i.push("");i[3]=encodeURIComponent(this._opts.msasClipData.dart_zone),t=!0}if(void 0!==this._opts.msasClipData.dfp_adunit_l3&&""!=this._opts.msasClipData.dfp_adunit_l3){for(;i.length<=4;)i.push("");i[4]=encodeURIComponent(this._opts.msasClipData.dfp_adunit_l3),t=!0}t&&(e=e.replace(/&iu=[^&#]*/g,"&iu="+i.join("/")))}if(e=this._handleSystem_adunits(e),"object"==typeof this._opts.playoutData){var n,a={},s=[];if(null!=(n=e.match(/[?&]{1}cust_params=([^&#]*)/))&&n.length>1)try{s=decodeURIComponent(n[1].replaceAll("%%","%2525%2525")).split("&")}catch(e){}for(var o=0;o<s.length;o++)try{var r=s[o].split("=");if(1==r.length){var l=this._handleJsMacros(r[0]);decodeURIComponent(l).split("&").forEach((function(e){var t=decodeURIComponent(e).split("=");a[t[0]]=decodeURIComponent(t[1])}))}else a[r[0]]=decodeURIComponent(r[1])}catch(e){}if("object"==typeof this._opts.msasClipData)for(var u in this._opts.msasClipData){(h=u.replace(/^dart_/,""))!=u&&(a[h]=this._opts.msasClipData[u])}for(var d in this._opts.playoutData){(h=d.replace(/^dart_/,""))!=d&&(a[h]=this._opts.playoutData[d])}s=[];var c=[];for(var h in a)a[h]&&(a[h].startsWith("[")||a[h].startsWith("%%"))?c.push(h+encodeURIComponent("=")+a[h]):s.push(h+"="+encodeURIComponent(a[h]));null!=n&&n.length>1?e=(e=e.replace(/&cust_params=[^&#]*/,(function(){return"&cust_params="+encodeURIComponent(s.join("&"))+(s.length&&c.length?encodeURIComponent("&"):"")+c.join(encodeURIComponent("&"))}))).replace(/\?cust_params=[^&#]*/,(function(){return"?cust_params="+encodeURIComponent(s.join("&"))+(s.length&&c.length?encodeURIComponent("&"):"")+c.join(encodeURIComponent("&"))})):e+=(e.indexOf("?")>=0?"&":"?")+"cust_params="+encodeURIComponent(s.join("&"))+(s.length&&c.length?encodeURIComponent("&"):"")+c.join(encodeURIComponent("&"))}return e}},{key:"_addCustomDartParameters",value:function(e){var t=e.indexOf("|;|")>0?"|;|":";",i=t.replace("|","|");if("object"==typeof this._opts.playoutData)for(var n in this._opts.playoutData){var a=n.replace(/^dart_/,"");if(a!=n){var s=new RegExp(i+a+"=[^;|?]*","g");e=e.replace(s,t+a+"="+encodeURIComponent(this._opts.playoutData[n]))}}if("object"==typeof this._opts.msasClipData&&void 0!==this._opts.msasClipData.dart_zone&&""!=this._opts.msasClipData.dart_zone){var o=new RegExp("/[^/;|?]*"+i);e=e.replace(o,"/"+encodeURIComponent(this._opts.msasClipData.dart_zone)+t)}return e}},{key:"_handleSystem_adunits",value:function(e){var t=!1;if("object"==typeof this._opts.playoutData){var i=[],n=e.match(/&iu=([^&#]*)/);for(var a in null!=n&&n.length>1&&(i=String(n[1]).split("/")),this._opts.playoutData){if(null!=(n=a.match(/^dfp_adunit/))&&n.length>0){var s=a.match(/^dfp_adunit_l([0-9]+)$/);if(null!=s&&s.length>1){for(var o=parseInt(s[1]);i.length<=o+1;)i.push("");i[o+1]=encodeURIComponent(this._opts.playoutData[a]),""!=this._opts.playoutData[a]&&(t=!0)}}}t&&(e=e.replace(/&iu=[^&#]*/g,"&iu="+i.join("/")))}return e}},{key:"_getPrebidData",value:function(e){var t=this,i=null!==this._url;return this._url?this._urlPromise.then((function(){try{var i={prebidConfig:t._config.systemconfig.prebidConfig,adServerUrl:t._url,position:t._pos,context:{type:"AdUnit",code:t._config.systemconfig.adUnitCode}},n=new v.default(t.$element,t._opts,i);n.addAdUnits();var a=function(t){var i,a=!1,s=(null==t?void 0:t.length)&&t[0];if((null==s?void 0:s.vastXml)&&(a=!0,s.selfWrappedVast?this._data=s.vastXml:this._xml=s.vastXml,s.adId&&(s.renderer||(null===(i=s.adUnit)||void 0===i?void 0:i.renderer))))try{var o=s.bidderCode&&s.bidderCode.match(/unruly|teads/i),r=this._createOutstreamDoc(o);o&&(a=!1),window[n.pbjsNamespace].renderAd(r,s.adId)}catch(e){_.default("[MSASSystemVAST] _getPrebidData warning: "+e)}"function"==typeof e&&e(a)}.bind(t);n.getBids(a)}catch(e){_.default(e)}})):("function"==typeof e&&e(!1),i=!1),i}},{key:"_createOutstreamDoc",value:function(e){e=e||!1;var t={getElementsByTagName:function(){return[{firstChild:{},insertBefore:function(){}}]}},i=this.$element?this.$element.closest(".bb_wrapper"):null,n=i?i.parent():null;if(n){var a=null;this.$outstreamIframe=n.find("#"+this._eventNS),this.$outstreamIframe&&this.$outstreamIframe.length>0?a=this.$outstreamIframe.get(0):((a=document.createElement("iframe")).id=this._eventNS,a.height=e?i.height():1,a.width=e?i.width():1,a.border="0",a.hspace="0",a.vspace="0",a.marginWidth="0",a.marginHeight="0",a.scrolling="no",a.frameBorder="0",a.style.border="0",a.style.margin="0",a.style.position="absolute",a.style.left="0",a.style.top="0",a.style.pointerEvents=e?"auto":"none",a.src="about:blank",this.$outstreamIframe=$parcel$interopDefault(h)(a).appendTo(n));try{t=a.contentWindow?a.contentWindow.document:a.contentDocument.document?a.contentDocument.document:a.contentDocument}catch(e){}}return t}},{key:"_getData",value:function(e){var t=!1;if(this._data)"function"==typeof e&&e(!0),t=!0;else if(this._url){var i=this;this._urlPromise.then((function(){var t=i;null!==i._data?e(!0):f.fetchData(i._url,{dataType:"text",credentials:"include"}).then((function(i){i?(t._xml=i,"function"==typeof e&&e(!0)):"function"==typeof e&&e(!1)})).catch((function(t){"function"==typeof e&&e(!1)}))})),t=!0}else"function"==typeof e&&e(!1);return t}},{key:"_dataCallback",value:function(e){if(e)if(this._xml)this._clip={assets:[{mediatype:"vast_"+this._config.subtype,response:this._xml}]};else{var t="string"==typeof this._data?$parcel$interopDefault(h)($parcel$interopDefault(h).parseXML(this._data)):$parcel$interopDefault(h)(this._data),i=t.find("VAST Ad InLine"),n=t.find("VAST Ad Wrapper");if(null!=i&&i.length>0)this._clip={assets:[{mediatype:"vast_"+this._config.subtype,src:this._url}]};else if(null!=n&&n.length>0){var a=n.find("AdSystem").text(),s=n.find("VASTAdTagURI").text();a.match(/UnwrapMe/i)?this._clip={assets:[{mediatype:"vast_"+this._config.subtype,src:s}]}:this._clip={assets:[{mediatype:"vast_"+this._config.subtype,src:this._url}]}}else this._clip={assets:[]}}else this._clip={assets:[]};if(this._clip&&this._clip.assets)for(var o=this._clip.assets.length-1;o>=0;o--){var r=this._clip.assets[o];if(r&&r.src)try{decodeURI(r.src)}catch(e){this._clip.assets.splice(o,1)}}null!=this._headController&&this._headController.load(this._clip),null!=this._headController&&(this._shouldPause||this._headController.play(this._userAction))}},{key:"_onCmpDataSuccessCallback",value:function(e,t){this._consentGdprApplies=e&&e.gdprApplies?1:0,this._consentCmpVersion=t,1===t?this._consentString=e&&e.consentData?e.consentData:"":2===t&&(this._consentString=e&&e.tcString?e.tcString:"")}},{key:"_onCmpDataErrorCallback",value:function(){}}]),c}(c.default)})),parcelRequire.register("dZQbR",(function(e,t){$parcel$export(e.exports,"default",(function(){return o})),parcelRequire("lDGnc");var i=parcelRequire("7CnHN"),n=parcelRequire("eamhc"),a=parcelRequire("3DsR2"),s=parcelRequire("iX08o"),o=function(){"use strict";function e(t,n){i.default(this,e),this._init(t,n)}return n.default(e,[{key:"_init",value:function(e,t){if(this.$element=null,this._opts=t,this._eventNS="MSASSystem"+String(Math.random()).replace(".",""),this._loaded=!1,this._started=!1,this._config=null!=this._opts&&void 0!==this._opts.msasSystemData&&void 0!==this._opts.msasSystemData.config?this._opts.msasSystemData.config:null,this._lineItem=null!=this._opts&&void 0!==this._opts.msasSystemData&&void 0!==this._opts.msasSystemData.lineItem?this._opts.msasSystemData.lineItem:null,this._timeout=null!=this._opts&&void 0!==this._opts.msasSystemData&&void 0!==this._opts.msasSystemData.timeout?this._timeout=this._opts.msasSystemData.timeout:10,this._systemOverrule=null!=this._opts&&this._opts.msasSystemData&&this._opts.msasSystemData.config&&this._opts.msasSystemData.config.systemconfig&&this._opts.msasSystemData.config.systemconfig.subtype&&""!=this._opts.msasSystemData.config.systemconfig.subtype?this._opts.msasSystemData.config.systemconfig.subtype:null,this._config&&(this._timeout&&(this._config.timeout=this._timeout),this._systemOverrule&&(this._config.subtype=this._systemOverrule)),this._restriction_npaOnly="true"===this._opts.playoutData.restriction_npaOnly,this._pos=null,this._url=null,this._timeoutHandle=null,this._detections=null,this._shouldPause=!1,this._onInViewBound=this._onInView.bind(this),this._onOutViewBound=this._onOutView.bind(this),void 0!==e&&null!=e){this.$element=e,this.$wrapper=this.$element.closest(".bb_wrapper"),this.$wrapper&&(this.$wrapper.on("bb_inview",this._onInViewBound),this.$wrapper.on("bb_outview",this._onOutViewBound)),this._headController=new s.default(this.$element,this._opts),this._headController.setLoadStartCallback(this._loadStartCallback.bind(this)),this._headController.setLoadedDataCallback(this._loadedDataCallback.bind(this)),this._headController.setCanPlayCallback(this._canPlayCallback.bind(this)),this._headController.setStartedCallback(this._startedCallback.bind(this)),this._headController.setEndedCallback(this._endedCallback.bind(this)),this._headController.setClickCallback(this._clickCallback.bind(this)),this._headController.setQuartileCallback(this._quartileCallback.bind(this)),this._headController.setRequestCallback(this._requestCallback.bind(this)),this._headController.setAdMetadataCallback(this._adMetadataCallback.bind(this)),this._headController.enableResizing(),void 0!==a.default.getService(this._opts.playerAliasOrId).getInstance("Detections")&&(this._detections=a.default.getService(this._opts.playerAliasOrId).getInstance("Detections"));var i=this.$element.find(".bb_clicktracker");null!=i&&i.length>0&&(this._clickTracker=i[0])}}},{key:"_onOutView",value:function(){this._timeoutHandle&&this._timeoutHandle.pause(),this._isInview=!1}},{key:"_onInView",value:function(){this._timeoutHandle&&this._timeoutHandle.resume(),this._isInview=!0}},{key:"exit",value:function(){return null!=this._timeoutHandle&&(this._timeoutHandle.clear(),this._timeoutHandle=null),this.$wrapper&&(this.$wrapper.off("bb_inview",this._onInViewBound),this.$wrapper.off("bb_outview",this._onOutViewBound)),null!=this._headController&&(this._headController=this._headController.exit()),null!=this.$element&&(this.$element=null),null}},{key:"handlePosition",value:function(e,t,i){return!1}},{key:"reset",value:function(e){var t=!1;return null!=this._headController&&(t=this._headController.reset()),null!=this._timeoutHandle&&(this._timeoutHandle.clear(),this._timeoutHandle=null),t}},{key:"resume",value:function(e){this._shouldPause=!1;return null!=this._headController&&this._headController.play(e),!1}},{key:"pause",value:function(){var e=!1;return null!=this._headController&&(e=this._headController.pause()),e}},{key:"isPlaying",value:function(){var e=!1;return null!=this._headController&&(e=this._headController.isPlaying()),e}},{key:"hasLoaded",value:function(){return this._loaded}},{key:"hasStarted",value:function(){return this._started}},{key:"set",value:function(e,t){var i=!1;return null!=this._headController&&(i=this._headController.set(e,t)),i}},{key:"get",value:function(e){if(null!=this._headController)return this._headController.get(e)}},{key:"_onTimeout",value:function(){this._timeoutHandle=null;var e=null!=this._config&&this._config.timeout?this._config.timeout:"unknown",t={adType:null!=this._config?this._config.subtype:"unknown",adPosition:this._pos,adRequestUrl:this._url,timeout:e};null!=this._lineItem&&(t.lineItemCode=this._lineItem.code),this.reset(),this.$element.triggerHandler("bb_adsystem_noad",[t])}},{key:"_loadStartCallback",value:function(e,t){var i={adType:null!=this._config?this._config.subtype:"unknown",adPosition:this._pos,adRequestUrl:this._url,adProperties:t};null!=this._lineItem&&(i.lineItemCode=this._lineItem.code),e?null!=this.$element&&this.$element.triggerHandler("bb_adsystem_loadstart",[i]):null!=this.$element&&this.$element.triggerHandler("bb_adsystem_blocked",[i])}},{key:"_loadedDataCallback",value:function(e,t){null!=this._timeoutHandle&&(this._timeoutHandle.clear(),this._timeoutHandle=null);var i={adType:null!=this._config?this._config.subtype:"unknown",adPosition:this._pos,adRequestUrl:this._url,adProperties:t};null!=this._lineItem&&(i.lineItemCode=this._lineItem.code),e?(this._loaded=!0,null!=this.$element&&this.$element.triggerHandler("bb_adsystem_loaded",[i])):null!=this.$element&&this.$element.triggerHandler("bb_adsystem_noad",[i])}},{key:"_canPlayCallback",value:function(e,t){null!=this._timeoutHandle&&(this._timeoutHandle.clear(),this._timeoutHandle=null);var i={adType:null!=this._config?this._config.subtype:"unknown",adPosition:this._pos,adRequestUrl:this._url,adProperties:t};null!=this._lineItem&&(i.lineItemCode=this._lineItem.code),e?(this._loaded=!0,null!=this.$element&&this.$element.triggerHandler("bb_adsystem_canplay",[i])):null!=this.$element&&this.$element.triggerHandler("bb_adsystem_noad",[i])}},{key:"_startedCallback",value:function(e,t){this._started=!0,null!=this._timeoutHandle&&(this._timeoutHandle.clear(),this._timeoutHandle=null);var i={adType:null!=this._config?this._config.subtype:"unknown",adPosition:this._pos,adRequestUrl:this._url,adProperties:t};null!=this._lineItem&&(i.lineItemCode=this._lineItem.code),e?null!=this.$element&&this.$element.triggerHandler("bb_adsystem_started",[i]):null!=this.$element&&this.$element.triggerHandler("bb_adsystem_failed",[i])}},{key:"_endedCallback",value:function(e){null!=this._timeoutHandle&&(this._timeoutHandle.clear(),this._timeoutHandle=null);var t={adType:null!=this._config?this._config.subtype:"unknown",adPosition:this._pos,adRequestUrl:this._url};null!=this._lineItem&&(t.lineItemCode=this._lineItem.code),e?null!=this.$element&&this.$element.triggerHandler("bb_adsystem_finished",[t]):null!=this.$element&&this.$element.triggerHandler("bb_adsystem_skipped",[t])}},{key:"_clickCallback",value:function(e){var t={adType:null!=this._config?this._config.subtype:"unknown",adPosition:this._pos,adRequestUrl:this._url};null!=this._lineItem&&(t.lineItemCode=this._lineItem.code),e&&null!=this.$element&&this.$element.triggerHandler("bb_adsystem_clicked",[t])}},{key:"_quartileCallback",value:function(e){var t={adType:null!=this._config?this._config.subtype:"unknown",adPosition:this._pos,adRequestUrl:this._url};null!=this._lineItem&&(t.lineItemCode=this._lineItem.code),e>=0&&e<=4&&(t.quartile=e,null!=this.$element&&this.$element.triggerHandler("bb_adsystem_quartile",[t]))}},{key:"_requestCallback",value:function(e){var t={adType:null!=this._config?this._config.subtype:"unknown",adPosition:this._pos,adRequestUrl:this._url};null!=this._lineItem&&(t.lineItemCode=this._lineItem.code),t.action=e,this.$element&&this.$element.triggerHandler("bb_adsystem_request",[t])}},{key:"_adMetadataCallback",value:function(e){if(e&&this.$element){var t={adType:this._config?this._config.subtype:"unknown",adPosition:this._pos,adRequestUrl:this._url,adProperties:e};this.$element.triggerHandler("bb_adsystem_metadata",[t])}}}]),e}()})),parcelRequire.register("iX08o",(function(e,t){$parcel$export(e.exports,"default",(function(){return _})),parcelRequire("lDGnc");var i=parcelRequire("6YA9f"),n=parcelRequire("27Qiu"),a=parcelRequire("7CnHN"),s=parcelRequire("fBLaW"),o=parcelRequire("eamhc"),r=parcelRequire("7gftt"),l=parcelRequire("kVqNu");parcelRequire("6JR1F");var u,d=parcelRequire("hGJI5"),c=parcelRequire("3DsR2"),h=parcelRequire("aVMO5"),p=parcelRequire("fpZdv");u=parcelRequire("bd88j").default;var _=function(e){"use strict";i.default(h,e);var t=n.default(h);function h(e,i){var n;return a.default(this,h),(n=t.call(this,e,i))._ended=!1,n._isNonLinearPosition=!1,n._errorCallback=null,n._loadStartCallback=null,n._canPlayCallback=null,n._startedCallback=null,n._endedCallback=null,n._clickCallback=null,n._quartileCallback=null,n._requestCallback=null,n._adMetadataCallback=null,n._duration=0,n._quartile=0,n._onAdClickedBound=n._onAdClicked.bind(s.default(n)),n}return o.default(h,[{key:"exit",value:function(){for(var e in this.reset(),this._heads)if(null!=this._heads[e]){var t,i=this._heads[e].$element;if(-1!=e.indexOf("html5ima")&&null!=this.$wrapper)c.default.getService(this._opts.playerAliasOrId).setInstance("G_html5IMAHead",this._heads[e]),this._heads[e]=null,null===(t=c.default.getService(this._opts.playerAliasOrId).getInstance("G_html5IMAHead"))||void 0===t||t.reset(),i.hide();else this._heads[e]=this._heads[e].exit(),i.remove()}return this._heads={},null!=this.$element&&this.disableResizing(),this._sc&&(this._sc.unregisterMasterVolumeHandler(this._eventNS),this._sc.unregisterMasterMuteHandler(this._eventNS)),this._localStorage=null,null}},{key:"reset",value:function(){r.default(l.default(h.prototype),"reset",this).call(this),this._ended=!1}},{key:"setErrorCallback",value:function(e){void 0!==e&&(this._errorCallback=e)}},{key:"setLoadStartCallback",value:function(e){void 0!==e&&(this._loadStartCallback=e)}},{key:"setLoadedAdListMetadataCallback",value:function(e){void 0!==e&&(this._loadedAdListMetadataCallback=e)}},{key:"setLoadedDataCallback",value:function(e){void 0!==e&&(this._loadedDataCallback=e)}},{key:"setCanPlayCallback",value:function(e){void 0!==e&&(this._canPlayCallback=e)}},{key:"setStartedCallback",value:function(e){void 0!==e&&(this._startedCallback=e)}},{key:"setEndedCallback",value:function(e){void 0!==e&&(this._endedCallback=e)}},{key:"setClickCallback",value:function(e){void 0!==e&&(this._clickCallback=e)}},{key:"setQuartileCallback",value:function(e){void 0!==e&&(this._quartileCallback=e)}},{key:"setRequestCallback",value:function(e){void 0!==e&&(this._requestCallback=e)}},{key:"setAdMetadataCallback",value:function(e){void 0!==e&&(this._adMetadataCallback=e)}},{key:"isPlaying",value:function(){return this._playing}},{key:"_switchAsset",value:function(){var e=!1;this._isNonLinearPosition=null!=this._opts&&("OVERLAY"==this._opts.msasPos||"EXITSCREEN"==this._opts.msasPos);var t=768,i=432,n=this.$element.find(".bb-commercial-layer");n.length>0&&(t=n.width(),i=n.height());var a=t,s=i,o=0;if(this._isNonLinearPosition){var r=$parcel$interopDefault(d)(".bb-controlbar").height(),l=i-(r>0?r:30);switch(this._opts.msasPos){case"OVERLAY":o=l-(s=90);break;case"EXITSCREEN":s=l,o=0}}return this.$element.find(".bb-commercial-layer > .bb-fitme").css({width:a+"px",height:s+"px",position:"absolute",left:"0px",top:o+"px"}),null!=this._asset?(this._selectHead(),null!=this._head?e=void 0!==this._asset.response&&null!=this._asset.response&&""!=this._asset.response?this._head.set("adsResponse",this._asset.response):this._head.set("src",this._asset.processedSrc):this._dispatchEvent("bb_error",{msg:"no head"})):this._dispatchEvent("bb_error",{msg:"no asset"}),e}},{key:"_determineHeadType",value:function(){this._headType="html5";null!=this._clip&&null!=this._asset&&(this._needsIMA(this._asset)?this._headType="html5ima":this._needsYouTube(this._asset)?this._headType="youtube":this._needsHtml5Seek(this._asset)?this._headType="Html5Seek":this._headType="html5")}},{key:"_selectHead",value:function(){var e=this._headType;r.default(l.default(h.prototype),"_selectHead",this).call(this),this._headType!==e&&(this._ended=!1),null!=this.$element&&(this.$element.trigger("bb_ad_log",[{msg:"Ad event: "+this._headType+" rendering mode selected."}]),this.$element.triggerHandler("bb_commercial_head_selected",[{head:this._head,headType:this._headType}]))}},{key:"_needsIMA",value:function(e){return!!e.mediatype.match(/^vast_/i)}},{key:"_createHead",value:function(){var e=null,t=$parcel$interopDefault(d)('<div class="bb-head" style="position:absolute; width:100%; height:100%; top:0; left:0;"></div>');return this.$element.find(".bb-commercial-layer .bb-head-layer").append(t),t.attr("data-retryOnPlayFailed","true"),c.default.getService(this._opts.playerAliasOrId).getInstance("G_html5IMAHead")?((e=c.default.getService(this._opts.playerAliasOrId).getInstance("G_html5IMAHead")).updateOpts&&e.updateOpts(this._opts),e.$element.show(),t.remove()):(t.attr("data-borrowHtml5Media","true"),"function"==typeof p.default&&(e=new p.default(t,this._opts))),null==e&&t.remove(),e}},{key:"_addClickThrough",value:function(e){if(null!=e&&null!=this._clip){var t,i=null;if(void 0!==this._clip.gendeeplink&&null!=this._clip.gendeeplink)null==(t=this._clip.gendeeplink).match(/^\w+:\/\//)&&null==t.match(/^\/\//)||(i=t);if(void 0!==this._clip.deeplink&&null!=this._clip.deeplink)null==(t=this._clip.deeplink).match(/^\w+:\/\//)&&null==t.match(/^\/\//)||(i=t);var n="commercial"==this._clip.usetype&&"image"==this._clip.mediatype?this._clip.url:i;if(void 0!==n&&null!=n&&(null!=n.match(/^\w+:\/\//)||null!=n.match(/^\/\//))){var a=this;e.on("click",(function(e){var t=c.default.getService(a._opts.playerAliasOrId).getInstance("PublicAPI");t?t.doOpenUrl(n,"_blank",!0):window.open(n,"_blank","noopener")})).css("cursor","pointer")}}}},{key:"_dispatchEvent",value:function(e,t){"bb_error"==e&&(this._canPlay=!1,"function"==typeof this._canPlayCallback&&this._canPlayCallback(this._canPlay))}},{key:"_bindToHead",value:function(){if(null!=this._head&&!this._headBound&&null!=this._head.$element){if("html5ima"===this._headType)this._head.$element.on("bb_ad_clicked",this._onAdClickedBound);else this._head.$element.on("click",this._onAdClickedBound);"html5ima"==this._headType&&(this._head.$element.on("adStarted",this._onHeadEventBound),this._head.$element.on("adFirstQuartile",this._onHeadEventBound),this._head.$element.on("adMidPoint",this._onHeadEventBound),this._head.$element.on("adThirdQuartile",this._onHeadEventBound),this._head.$element.on("adComplete",this._onHeadEventBound),this._head.$element.on("loadedadlistmetadata",this._onHeadEventBound),this._head.$element.on("adContentPauseReq",this._onHeadEventBound),this._head.$element.on("adContentResumeReq",this._onHeadEventBound))}r.default(l.default(h.prototype),"_bindToHead",this).call(this)}},{key:"_unbindFromHead",value:function(){if(null!=this._head&&this._headBound&&null!=this._head.$element){if("html5ima"===this._headType)this._head.$element.off("bb_ad_clicked",this._onAdClickedBound);else this._head.$element.off("click",this._onAdClickedBound);"html5ima"==this._headType&&(this._head.$element.off("adStarted",this._onHeadEventBound),this._head.$element.off("adFirstQuartile",this._onHeadEventBound),this._head.$element.off("adMidPoint",this._onHeadEventBound),this._head.$element.off("adThirdQuartile",this._onHeadEventBound),this._head.$element.off("adComplete",this._onHeadEventBound),this._head.$element.off("loadedadlistmetadata",this._onHeadEventBound),this._head.$element.off("adContentPauseReq",this._onHeadEventBound),this._head.$element.off("adContentResumeReq",this._onHeadEventBound))}r.default(l.default(h.prototype),"_unbindFromHead",this).call(this)}},{key:"fitVideo",value:function(){this._isNonLinearPosition||(this._head&&this._head.get("restretchWillObjectFitContain")?u.prototype.fitVideo.call(this,"FIT_STRETCH"):u.prototype.fitVideo.call(this,"FIT_BOTH"));var e=768,t=432,i=this.$element.find(".bb-commercial-layer");i.length>0&&(e=i.width(),t=i.height());var n=e,a=t,s=0;if(this._isNonLinearPosition){var o=$parcel$interopDefault(d)(".bb-controlbar").height(),r=t-(o>0?o:30);switch(this._opts.msasPos){case"OVERLAY":s=r-(a=90);break;case"EXITSCREEN":a=r,s=0}}this.$element.find(".bb-commercial-layer > .bb-fitme").css({width:n+"px",height:a+"px",position:"absolute",left:"0px",top:s+"px"}),null!=this._head&&this._head.restretch()}},{key:"_onHeadEvent",value:function(e){e.stopPropagation();var t=this._head?{adWrapperAdIds:this._head.get("adWrapperAdIds")}:null;if(null!=this.$element)switch(e.type){case"couldplay":this._couldPlay=!0,this._playPending?this.play():null!=this._seekPosition&&this._head&&this._head.load(!1);break;case"loadstart":this._couldPlay=!1,this._loadedData=!1,this._canPlay=!1,this._playing=!1,this.$element.triggerHandler("bb_commercial_loadstart");var i=null;null!=this._head&&(i={sdk:this._head.get("sdk")}),"function"==typeof this._loadStartCallback&&this._loadStartCallback(!0,i);break;case"loadedadlistmetadata":var n={},a=this._head.get("cuePoints");(null==a?void 0:a.length)&&(n.cuePoints=a),"function"==typeof this._loadedAdListMetadataCallback&&this._loadedAdListMetadataCallback(!0,n);break;case"loadeddata":this._loadedData=!0,this._playing=!1;i=null;if(null!=this._head)(i={adId:this._head.get("adId"),adSystem:this._head.get("adSystem"),adTitle:this._head.get("adTitle"),adDescription:this._head.get("adDescription"),adLinear:this._head.get("adLinear"),adContentType:this._head.get("adContentType"),duration:this._head.get("duration"),sdk:this._head.get("sdk")}).adWrapperAdIds=this._head.get("adWrapperAdIds"),(o=this._head.get("adPodInfo"))&&(i.adPodInfo=o),(r=this._head.get("cuePoints"))&&r.join&&(i.cuePoints=r.join(",")),(l=this._head.get("clickThroughUrl"))&&(i.clickThroughUrl=l);"function"==typeof this._loadedDataCallback&&this._loadedDataCallback(!0,i),this.fitVideo();break;case"error":i=null;if(null!=this._head){var s=this._head.get("error");null==s&&(s={error:"no error specified",code:666}),(i={errorMessage:s.error,errorCode:s.code,adId:this._head.get("adId"),adSystem:this._head.get("adSystem"),adTitle:this._head.get("adTitle"),adLinear:this._head.get("adLinear"),duration:this._head.get("duration"),sdk:this._head.get("sdk")}).adWrapperAdIds=this._head.get("adWrapperAdIds"),this.$element&&this.$element.trigger("bb_ad_log",[{msg:"Ad error: "+s.error}])}this._canPlay?(this._canPlay=!1,"function"==typeof this._startedCallback&&this._startedCallback(!1,i)):this._loadedData?"function"==typeof this._canPlayCallback&&this._canPlayCallback(!1,i):"function"==typeof this._loadedDataCallback&&this._loadedDataCallback(!1,i);break;case"canplay":this._canPlay=!0;var o,r;i=null;if(null!=this._head)(i={adId:this._head.get("adId"),adSystem:this._head.get("adSystem"),adTitle:this._head.get("adTitle"),adLinear:this._head.get("adLinear"),adContentType:this._head.get("adContentType"),duration:this._head.get("duration"),sdk:this._head.get("sdk")}).adWrapperAdIds=this._head.get("adWrapperAdIds"),(o=this._head.get("adPodInfo"))&&(i.adPodInfo=o),(r=this._head.get("cuePoints"))&&r.join&&(i.cuePoints=r.join(","));"function"==typeof this._canPlayCallback&&this._canPlayCallback(!0,i),this._playPending&&(this._playPending=!1,this.play());break;case"playing":if(!this._started){this._started=!0;var l;i=null;if(null!=this._head)(i={ad:this._head.get("ad"),adId:this._head.get("adId"),adSystem:this._head.get("adSystem"),adContentType:this._head.get("adContentType"),adTitle:this._head.get("adTitle"),adLinear:this._head.get("adLinear"),duration:this._head.get("duration"),sdk:this._head.get("sdk")}).adWrapperAdIds=this._head.get("adWrapperAdIds"),(l=this._head.get("clickThroughUrl"))&&(i.clickThroughUrl=l);"function"==typeof this._startedCallback&&this._startedCallback(!0,i)}this._playPending=!1,this._playing=!0,this._isNonLinearPosition||this.$element.triggerHandler("bb_commercial_playing");break;case"pause":this._playing=!1,this._isNonLinearPosition||this.$element.triggerHandler("bb_commercial_paused");break;case"timeupdate":var u=null;null!=this._head&&(u=this._head.get("currentTime")),this._isNonLinearPosition||this.$element.triggerHandler("bb_commercial_timeupdate",[{currentTime:u}]),"html5ima"!=this._headType&&this._duration>0&&u>=(this._quartile+1)/4*this._duration&&(this._quartile++,"function"==typeof this._quartileCallback&&this._quartileCallback(this._quartile,t));break;case"adSkipped":if(this._playing=!1,this._isNonLinearPosition||this.$element.triggerHandler("bb_commercial_ended"),this._started&&!this._ended){var d=null!=this._head?{adId:this._head.get("adId"),adSystem:this._head.get("adSystem"),adTitle:this._head.get("adTitle"),adLinear:this._head.get("adLinear"),duration:this._head.get("duration"),sdk:this._head.get("sdk"),adPodInfo:this._head.get("adPodInfo"),adWrapperAdIds:this._head.get("adWrapperAdIds")}:{},c=this._head.get("cuePoints");if((null==c?void 0:c.length)>1){var h,p=this._head.get("currentTime");this._ended=-1===(null==d||null===(h=d.adPodInfo)||void 0===h?void 0:h.podIndex)||-1===c.indexOf(-1)&&p>Math.max(c)}else this._ended=!0;"function"==typeof this._endedCallback&&this._endedCallback(!1,d,this._ended)}break;case"ended":if(this._playing=!1,this._isNonLinearPosition||this.$element.triggerHandler("bb_commercial_ended"),this._started)this._ended||(this._ended=!0,"function"==typeof this._endedCallback&&this._endedCallback(!0));else if(!this._ended){var _;(i=null!=this._head?{adId:this._head.get("adId"),adSystem:this._head.get("adSystem"),adTitle:this._head.get("adTitle"),adLinear:this._head.get("adLinear"),duration:this._head.get("duration"),sdk:this._head.get("sdk")}:{}).adWrapperAdIds=null===(_=this._head)||void 0===_?void 0:_.get("adWrapperAdIds"),this._canPlay?(i.errorMessage="BB - Timeout of MediaFile",i.errorCode=403,"function"==typeof this._canPlayCallback&&this._startedCallback(!1,i)):(i.errorMessage="BB - Timeout of Ad Tag URI",i.errorCode=402,"function"==typeof this._canPlayCallback&&this._canPlayCallback(!1,i))}break;case"volumechange":var m=null,f=null;null!=this._head&&(m=this._masterVolume>0?this._head.get("volume")/this._masterVolume:this._headVolume,f=this._masterMute?this._headMute:this._head.get("muted")),this.$element.triggerHandler("bb_commercial_volume_change",[{volume:m,masterVolume:this._masterVolume,muted:f,masterMuted:this._masterMute}]);break;case"durationchange":var v=null;null!=this._head&&(v=this._head.get("duration")),null!=v&&(this._duration=v),this._isNonLinearPosition||this.$element.triggerHandler("bb_commercial_duration_change",[{duration:v}]);break;case"adStarted":if(this._head){var g={ad:this._head.get("ad"),adId:this._head.get("adId"),adSystem:this._head.get("adSystem"),adContentType:this._head.get("adContentType"),adTitle:this._head.get("adTitle"),adLinear:this._head.get("adLinear"),duration:this._head.get("duration"),sdk:this._head.get("sdk")};g.adWrapperAdIds=this._head.get("adWrapperAdIds");var y=this._head.get("clickThroughUrl");y&&(g.clickThroughUrl=y);var b=this._head.get("adPodInfo");b&&(g.adPodInfo=b);var k=this._head.get("cuePoints");k&&k.join&&(g.cuePoints=k.join(",")),"function"==typeof this._adMetadataCallback&&this._adMetadataCallback(g)}"function"==typeof this._quartileCallback&&this._quartileCallback(0,t);break;case"adFirstQuartile":"function"==typeof this._quartileCallback&&this._quartileCallback(1,t);break;case"adMidPoint":"function"==typeof this._quartileCallback&&this._quartileCallback(2,t);break;case"adThirdQuartile":"function"==typeof this._quartileCallback&&this._quartileCallback(3,t);break;case"adComplete":"function"==typeof this._quartileCallback&&this._quartileCallback(4,t);break;case"adContentPauseReq":"function"==typeof this._requestCallback&&this._requestCallback("content_pause");break;case"adContentResumeReq":"function"==typeof this._requestCallback&&this._requestCallback("content_resume")}}},{key:"_onAdClicked",value:function(e){e.stopPropagation();var t=this._head?{adWrapperAdIds:this._head.get("adWrapperAdIds")}:null;"function"==typeof this._clickCallback&&this._clickCallback(!0,t)}},{key:"_supportedByIOSVersionLessThan5",value:function(e){return!(!e.mediatype||!e.mediatype.match(/^vast_/i))||r.default(l.default(h.prototype),"_supportedByIOSVersionLessThan5",this).call(this,e)}}]),h}(h.default)})),parcelRequire.register("fpZdv",(function(e,t){$parcel$export(e.exports,"default",(function(){return v})),parcelRequire("lDGnc");var i=parcelRequire("6YA9f"),n=parcelRequire("27Qiu"),a=parcelRequire("7CnHN"),s=parcelRequire("fBLaW"),o=parcelRequire("eamhc"),r=parcelRequire("7gftt"),l=parcelRequire("kVqNu");parcelRequire("6JR1F");var u=parcelRequire("hGJI5"),d=parcelRequire("3DsR2"),c=parcelRequire("e06N2"),h=parcelRequire("ePkDK"),p=parcelRequire("2pJYD"),_=parcelRequire("gDCxw");parcelRequire("h33Eq");var m=parcelRequire("cYwG5"),f=parcelRequire("3vYzT"),v=function(e){"use strict";i.default(h,e);var t=n.default(h);function h(e,i){var n,o,r,l;if(a.default(this,h),(n=t.call(this,e,i))._objectFit=!1,n._canControlVolume=!0,n._isiPhone=!1,n._isiPad=!1,window.tmpHead=s.default(n),n._adDisplayContainer=null,n._adDisplayContainerInitialized=!1,n._adsRequestTimeout=null,n._adLoadTimeout=null,n._adsManagerStarted=!1,n._adSkippable=!1,n._blockInsecureVPAID=!1,n._imaEnablePreloading=!1,n._imaDisableCustomPlaybackForIOS10Plus=!0,n._adTagUrl=null,n._adResponse=null,n._ad=null,n._adPodInfo_flat=null,n._adMediaMismatch=!1,n._currentTime=0,n._adDuration=-1,n._adContentType=null,n._volume=1,n._muted=!1,n._paused=!1,n._exiting=!1,n._expectingPause=!1,n._pausedByBlur=!1,n._savedSrc=null,n._api=null,n._isMuted=!1,n._haveStarted=!1,n._playing=!1,n._pendingCanplay=!1,n._isTouchDevice=!1,n._isMobileDevice=!1,n._pendingSet_imaReady=[],n._pendingSet_adsManager=[],n._lastTouchY=null,n._opts.publicationData.googleImaURL&&(n._googleImaURL=n._opts.publicationData.googleImaURL),n._isNonLinearPosition="OVERLAY"===n._opts.msasPos||"EXITSCREEN"===n._opts.msasPos,n._isVMAPPosition="VMAP"===n._opts.msasPos,n._isMidrollPosition="MIDROLL"===n._opts.msasPos,n._hasAdPlaylist=!1,n._isNotOverlayPosition="OVERLAY"!==n._opts.msasPos&&"MIDROLL"!==n._opts.msasPos,n._disableHtml5VPAID="true"===n._opts.playoutData.disableHtml5VPAID,n._isVPAIDAd=(null===(o=n._opts.msasSystemData)||void 0===o?void 0:o.isVPAIDAd)||!1,n._forceCanAutoPlay="true"===n._opts.playoutData.forceCanAutoPlay,n._isAutoMuteSet="true"===n._opts.playoutData.autoMute||!0===n._opts.playoutData.autoMute,n._allowCustomClickLayer="true"===n._opts.playoutData.allowCustomClickLayer,n._allowScrollFaking="true"===n._opts.publicationData.allowScrollFaking||!0===n._opts.publicationData.allowScrollFaking,n._disableTrackingCookies="tracking"===n._opts.playoutData.disableCookies,!0===(null===(r=n._opts.msasSystemData)||void 0===r?void 0:r.blockInsecureVPAID)&&(n._blockInsecureVPAID=!0),n._opts.msasSystemData&&(void 0!==n._opts.msasSystemData.imaEnablePreloading&&(n._imaEnablePreloading="true"===n._opts.msasSystemData.imaEnablePreloading||!0===n._opts.msasSystemData.imaEnablePreloading),void 0!==n._opts.msasSystemData.imaDisableCustomPlaybackForIOS10Plus&&(n._imaDisableCustomPlaybackForIOS10Plus=!!n._opts.msasSystemData.imaDisableCustomPlaybackForIOS10Plus)),n.$media=null,n._media=null,n.$adClickLayer_fake=null,n.$adClickLayer=null,n.$adSkipLayer=null,n._skipOffset=-1,n._skipCounterText="You can skip this ad in",n._skipButtonText="Skip Ad",n._$skipLayer=null,n._skipController=null,n._skipTimer=null,n._usingAdSchedule=!!n._opts.adSchedulingData,n._skippableAdBreaks=(null===(l=n._opts.adSchedulingData)||void 0===l?void 0:l.skippableAdBreaks)||[],n._upcomingVideo="false",n._upcomingText="Video will play after this ad",n._opts.msasSystemData&&(void 0!==n._opts.msasSystemData.skipOffset&&(n._skipOffset=n._opts.msasSystemData.skipOffset),void 0!==n._opts.msasSystemData.skipCounterText&&(n._skipCounterText=n._opts.msasSystemData.skipCounterText),void 0!==n._opts.msasSystemData.skipButtonText&&(n._skipButtonText=n._opts.msasSystemData.skipButtonText),void 0!==n._opts.msasSystemData.upcomingVideo&&(n._upcomingVideo=n._opts.msasSystemData.upcomingVideo),void 0!==n._opts.msasSystemData.upcomingText&&(n._upcomingText=n._opts.msasSystemData.upcomingText)),n._windowHasFocus=!0,n._onWindowBlurBound=n._onWindowBlur.bind(s.default(n)),n._onWindowFocusBound=n._onWindowFocus.bind(s.default(n)),n._onWindowTouchstartBound=n._onWindowTouchstart.bind(s.default(n)),n._onAdContainerTouchStartBound=n._onAdContainerTouchStart.bind(s.default(n)),n._onAdContainerTouchMoveBound=n._onAdContainerTouchMove.bind(s.default(n)),n._onAdsRequestTimeoutBound=n._onAdsRequestTimeout.bind(s.default(n)),n._onAdLoadTimeoutBound=n._onAdLoadTimeout.bind(s.default(n)),n._onDurationTimeoutBound=n._onDurationTimeout.bind(s.default(n)),n._onContentEndedBound=n._onContentEnded.bind(s.default(n)),n._onSkipClickBound=n._onSkipClick.bind(s.default(n)),n._onSkipTimerTickBound=n._onSkipTimerTick.bind(s.default(n)),n._onFakeAdClickLayerClickBound=n._onFakeAdClickLayerClick.bind(s.default(n)),n._onAdClickLayerClickBound=n._onAdClickLayerClick.bind(s.default(n)),n._onAdSkipLayerClickBound=n._onAdSkipLayerClick.bind(s.default(n)),n._onMediaPlayingBound=n._onMediaPlaying.bind(s.default(n)),n._onMediaPauseBound=n._onMediaPause.bind(s.default(n)),n._onMediaErrorBound=n._onMediaError.bind(s.default(n)),n._onMediaEndedBound=n._onMediaEnded.bind(s.default(n)),n._onIPhoneMediaPlayingBound=n._onIPhoneMediaPlaying.bind(s.default(n)),n._onAdsManagerLoadedBound=n._onAdsManagerLoaded.bind(s.default(n)),n._onAdsLoaderAdErrorBound=n._onAdsLoaderAdError.bind(s.default(n)),n._onAdStartedBound=n._onAdStarted.bind(s.default(n)),n._onAdErrorBound=n._onAdError.bind(s.default(n)),n._onAdEventBound=n._onAdEvent.bind(s.default(n)),window.addEventListener("blur",n._onWindowBlurBound),window.addEventListener("focus",n._onWindowFocusBound),n._vendorPrefixes=["","-o-","-ms-","-moz-","-webkit-","-khtml-"],null!=n.$element){n.$wrapper=n.$element.closest(".bb_wrapper"),n._api=d.default.getService(n._opts.playerAliasOrId).getInstance("PublicAPI");n.$adContainer=$parcel$interopDefault(u)('<div class="bb-ad-container"></div>').css({width:"100%",height:"100%",position:"absolute",pointerEvents:"none"}),n.$element.append("<style>.bb_wrapper .bb-head-html5-ima .bb-ad-container video {left:0;top:0;}</style>"),n.$element.append(n.$adContainer),n._isNonLinearPosition||(n.$adClickLayer_fake=$parcel$interopDefault(u)('<div class="bb-ad-clicklayer"></div>').css({width:"100%",height:"66.7%",position:"absolute"}).css("cursor","pointer").css("pointer-events","auto"),n.$adClickLayer_fake.on("click",n._onFakeAdClickLayerClickBound),n.$element.append(n.$adClickLayer_fake.hide()),n.$adClickLayer=$parcel$interopDefault(u)('<div class="bb-ad-clicklayer"></div>').css({width:"100%",height:"66.7%",position:"absolute"}).css("cursor","pointer").css("pointer-events","auto"),n.$element.append(n.$adClickLayer.hide()),n.$adSkipLayer=$parcel$interopDefault(u)('<div class="bb-ad-clicklayer"></div>').css({width:"100%",height:"33.3%",position:"absolute",top:"66.7%"}).css("cursor","pointer").css("pointer-events","auto"),n.$element.append(n.$adSkipLayer.hide())),n.$element.addClass("bb-head-html5-ima");var c=d.default.getService(n._opts.playerAliasOrId).getInstance("LocalStorage");c&&(n._uuid_ls=c.get("bb_uuid")),_.getCookie&&(n._uuid_c=_.getCookie("uuid")),n._uuid=n._uuid_ls||n._uuid_c||Math.uuid(),n._checkAdSkipController(),n._onAdScheduleItemCanPlayBound=n._onAdScheduleItemCanPlay.bind(s.default(n)),n._onPlayoutChangedBound=n._onPlayoutChanged.bind(s.default(n)),n._onAutoPlayCheckReadyBound=n._onAutoPlayCheckReady.bind(s.default(n)),n._onBandwidthMeasuredBound=n._onBandwidthMeasured.bind(s.default(n)),n.$wrapper&&(n.$wrapper.on("bb_as_item_canplay",n._onAdScheduleItemCanPlayBound),n.$wrapper.on("bb_playout_changed",n._onPlayoutChangedBound),n.$wrapper.on("bb_autoplay_check_ready",n._onAutoPlayCheckReadyBound),n.$wrapper.on("bb_bandwidth_measured",n._onBandwidthMeasuredBound));var p,m=d.default.getService(n._opts.playerAliasOrId).getInstance("Detections");if(void 0!==m&&null!=m)n._objectFit=m.objectFit,n._canAutoPlay=m.canAutoPlay,n._canControlVolume=m.canControlVolume,n._canAutoPlayMuted=m.canAutoPlayMuted,n._isiPhone=m.isiPhone,n._isAndroid=m.isAndroid,n._androidVersion=m.androidVersion,n._isiPad=m.isiPad,n._isiOS=m.isiOS,n._iOSVersion=m.iOSVersion,n._isChrome=m.isChrome,n._isChromeiOS=m.isChromeiOS,n._chromeVersion=m.chromeVersion,n._isMainroll="mainroll"===(null===(p=n._opts.clipData)||void 0===p?void 0:p.mediatype),n._isTouchDevice=m.isTouchDevice,n._isMobileDevice=m.isMobileDevice,n._avoidPreload=m.avoidPreload,n._measuredBandwidth=m.measuredBandwidth;if(n._disableCustomClickLayer=!n._allowCustomClickLayer||n._isNonLinearPosition||n._isiOS&&n._iOSVersion<10,n._headController=d.default.getService(n._opts.playerAliasOrId).getInstance("HeadController"),void 0!==n._headController&&(n._isVPAIDAd?n.$media=n._headController.getHtml5Media():n.$media=n._headController.getHtml5Video(),null!=n.$media&&n.$media.length<=0&&(n.$media=null)),void 0!==d.default.getService(n._opts.playerAliasOrId).getInstance("ComponentBroker")&&(n._broker=d.default.getService(n._opts.playerAliasOrId).getInstance("ComponentBroker")),null!=n.$media){if(n._media=n.$media.get(0),n._media&&!n._usingAdSchedule){var f=n._media.src,v=n._media.currentSrc;v&&""!==v&&null==v.match(/\/null$/)?n._savedSrc=v:f&&""!==f&&null==f.match(/\/null$/)&&(n._savedSrc=f),n._savedCrossOrigin=n._media.crossOrigin}null!=n.$media&&n.$media.on("ended.content",n._onContentEndedBound),n._isNonLinearPosition||n._initializeOnFirstTouch()}}return n._loadIMA(),n}return o.default(h,[{key:"_checkAdSkipController",value:function(){if(this._skipOffset>=0||"true"===this._upcomingVideo||this._skippableAdBreaks.length){var e;null==this._$skipLayer&&(this._$skipLayer=$parcel$interopDefault(u)('<div class="bbima-skip-layer" style="width:100%; height:100%; position:absolute; z-index:99999; pointer-events:none;"></div>'),this._$skipLayer.on("click",this._onSkipClickBound),this._$skipLayer.appendTo(this.$element)),this._skipController=null===(e=this._skipController)||void 0===e?void 0:e.exit();var t={skipCounterText:this._skipCounterText,skipButtonText:this._skipButtonText,upcomingText:this._upcomingText};this._skipController=new p.default(this._$skipLayer,this._opts,t),this._skipController.setType(this._isNonLinearPosition?"close":"skip")}else this._skipController&&(this._skipController.reset(),this._skipController.exit(),this._skipController=null),this._$skipLayer&&(this._$skipLayer.remove(),this._$skipLayer=null)}},{key:"updateOpts",value:function(e){this._opts=e;var t=this._imaDisableCustomPlaybackForIOS10Plus;this._isNonLinearPosition="OVERLAY"===this._opts.msasPos||"EXITSCREEN"===this._opts.msasPos,this._isVMAPPosition="VMAP"===this._opts.msasPos,this._opts.msasSystemData&&(void 0!==this._opts.msasSystemData.isVPAIDAd&&(this._isVPAIDAd="true"===this._opts.msasSystemData.isVPAIDAd||!0===this._opts.msasSystemData.isVPAIDAd),void 0!==this._opts.msasSystemData.blockInsecureVPAID&&(this._blockInsecureVPAID="true"===this._opts.msasSystemData.blockInsecureVPAID||!0===this._opts.msasSystemData.blockInsecureVPAID),void 0!==this._opts.msasSystemData.imaEnablePreloading&&(this._imaEnablePreloading="true"===this._opts.msasSystemData.imaEnablePreloading||!0===this._opts.msasSystemData.imaEnablePreloading),void 0!==this._opts.msasSystemData.imaDisableCustomPlaybackForIOS10Plus&&(this._imaDisableCustomPlaybackForIOS10Plus=!!this._opts.msasSystemData.imaDisableCustomPlaybackForIOS10Plus),void 0!==this._opts.msasSystemData.skipOffset&&(this._skipOffset=this._opts.msasSystemData.skipOffset),void 0!==this._opts.msasSystemData.skipCounterText&&(this._skipCounterText=this._opts.msasSystemData.skipCounterText),void 0!==this._opts.msasSystemData.skipButtonText&&(this._skipButtonText=this._opts.msasSystemData.skipButtonText),void 0!==this._opts.msasSystemData.upcomingVideo&&(this._upcomingVideo=this._opts.msasSystemData.upcomingVideo),void 0!==this._opts.msasSystemData.upcomingText&&(this._upcomingText=this._opts.msasSystemData.upcomingText)),this._opts.adSchedulingData?(this._usingAdSchedule=!0,this._skippableAdBreaks=this._opts.adSchedulingData.skippableAdBreaks||[]):this._usingAdSchedule=!1,this._checkAdSkipController(),t!==this._imaDisableCustomPlaybackForIOS10Plus&&this._loadIMA()}},{key:"_onWindowBlur",value:function(e){!this._paused&&this._isiOS&&(this._pausedByBlur=!0,this._expectingPause=!0,this.pause()),this._windowHasFocus=!1}},{key:"_onWindowFocus",value:function(e){this._pausedByBlur&&(this._pausedByBlur=!1,this._expectingPause=!1),this._windowHasFocus=!0}},{key:"_onAdScheduleItemCanPlay",value:function(e,t){var i,n;if(this._skipOffset=-1,this._upcomingVideo="false","function"!=typeof(null===(i=this._ad)||void 0===i?void 0:i.isSkippable)||!(null===(n=this._ad)||void 0===n?void 0:n.isSkippable())){var a=(null==t?void 0:t.adScheduleItemCode)||null,s=null;if(a&&a.indexOf("#")>-1){var o=a.split("#",2)[1];s=m.mapPodIndexToPosition(o)}"preroll"===s&&(this._upcomingVideo="true"),this._skippableAdBreaks.indexOf(s)>-1&&(this._skipOffset=5)}this._checkAdSkipController()}},{key:"_onPlayoutChanged",value:function(e,t){var i;t&&t.playoutData&&(void 0!==t.playoutData.skipOffset&&""!==t.playoutData.skipOffset&&(this._skipOffset=t.playoutData.skipOffset,this._checkAdSkipController()),(null==t||null===(i=t.playoutData)||void 0===i?void 0:i.allowCustomClickLayer)&&(this._allowCustomClickLayer="true"===t.playoutData.allowCustomClickLayer))}},{key:"_onAutoPlayCheckReady",value:function(e,t){if(t){var i=this._canAutoPlay,n=this._canAutoPlayMuted;void 0!==t.canAutoPlay&&(this._canAutoPlay=t.canAutoPlay),void 0!==t.canAutoPlayMuted&&(this._canAutoPlayMuted=t.canAutoPlayMuted),i===this._canAutoPlay&&n===this._canAutoPlayMuted||(this._canAutoPlay||this._canAutoPlayMuted&&this._isMuted)&&this._pendingCanplay&&this.$element&&(this._pendingCanplay=!1,this.$element.triggerHandler("canplay"),this.$element.triggerHandler("canplaythrough"))}}},{key:"_onBandwidthMeasured",value:function(e,t){(null==t?void 0:t.measuredBandwidth)&&(this._measuredBandwidth=t.measuredBandwidth)}},{key:"_performMediaBorrow",value:function(){if(this._headController&&(this._isNonLinearPosition||(this._isVPAIDAd?this.$media=this._headController.borrowHtml5Media():this.$media=this._headController.borrowHtml5Video()),null!=this.$media&&this.$media.length<=0&&(this.$media=null)),null!=this.$media&&(this._media=this.$media.get(0),this._isVMAPPosition&&(this._savedPlaybackStatePlaying=!this._media.paused&&!this._media.ended,this._savedPlaybackStatePlaying&&this._media.pause()),!this._isNonLinearPosition&&(void 0===this._savedCrossOrigin&&(this._savedCrossOrigin=this._media.crossOrigin),this._media.crossOrigin=null,!this._savedSrc))){var e=this._media.src,t=this._media.currentSrc;t&&""!==t&&null==t.match(/\/null$/)?this._savedSrc=t:e&&""!==e&&null==e.match(/\/null$/)&&(this._savedSrc=e)}}},{key:"_performMediaReturn",value:function(){this._isNonLinearPosition||(void 0!==this._savedCrossOrigin&&(this._media.crossOrigin=this._savedCrossOrigin),null!=this._savedSrc&&null!=this._media&&(this._media.src=this._savedSrc),this._savedSrc=null,this._isVMAPPosition&&(this._savedPlaybackStatePlaying&&this._media.play(),this._savedPlaybackStatePlaying=!1),this._headController&&(this._isVPAIDAd?this._headController.returnHtml5Media():this._headController.returnHtml5Video()))}},{key:"_initializeOnFirstTouch",value:function(){window.addEventListener("touchstart",this._onWindowTouchstartBound,{passive:!0})}},{key:"exit",value:function(){var e,t,i,n;if(this.reset(),this._skipController&&(this._skipController=this._skipController.exit()),null===(e=this._$skipLayer)||void 0===e||e.off("click",this._onSkipClickBound),this._isNonLinearPosition||this._headController&&(this._isVPAIDAd?this.$media=this._headController.returnHtml5Media():this.$media=this._headController.returnHtml5Video(),null!=this._savedSrc&&null!=this._media&&(this._media.src=this._savedSrc),this._savedSrc=null,this._isVMAPPosition&&(this._savedPlaybackStatePlaying&&this._media.play(),this._savedPlaybackStatePlaying=!1)),this._media=null,this.$media=null,null!=this.$element&&this.$element.hide(),this.$wrapper&&(this.$wrapper.off("bb_as_item_canplay",this._onAdScheduleItemCanPlayBound),this.$wrapper.off("bb_playout_changed",this._onPlayoutChangedBound),this.$wrapper.off("bb_autoplay_check_ready",this._onAutoPlayCheckReadyBound),this.$wrapper.off("bb_bandwidth_measured",this._onBandwidthMeasuredBound)),null===(t=this.$adClickLayer_fake)||void 0===t||t.off("click",this._onFakeAdClickLayerClickBound),null===(i=this.$adClickLayer)||void 0===i||i.off("click",this._onAdClickLayerClickBound),null===(n=this.$adSkipLayer)||void 0===n||n.off("click",this._onAdSkipLayerClickBound),window.removeEventListener("touchstart",this._onWindowTouchstartBound),window.removeEventListener("blur",this._onWindowBlurBound),window.removeEventListener("focus",this._onWindowFocusBound),this._allowScrollFaking&&this._isMobileDevice&&this._isTouchDevice&&this.$adContainer&&this.$adContainer.length&&(this.$adContainer[0].removeEventListener("touchstart",this._onAdContainerTouchStartBound),this.$adContainer[0].removeEventListener("touchmove",this._onAdContainerTouchMoveBound),this._lastTouchY=null),this._imaReady=!1,null!=this._adsManager){try{this._adsManager.destroy()}catch(e){}this._adsManager=null}return this._adsManagerInited=!1,this._adsManagerStarted=!1,r.default(l.default(h.prototype),"exit",this).call(this)}},{key:"reset",value:function(){if(null!==this._adsRequestTimeout&&(clearTimeout(this._adsRequestTimeout),this._adsRequestTimeout=null),null!==this._adLoadTimeout&&(clearTimeout(this._adLoadTimeout),this._adLoadTimeout=null),this.$element.css("pointer-events","none"),this.$adContainer.css("pointer-events","none"),this.$adClickLayer&&this.$adClickLayer.hide(),this.$adSkipLayer&&this.$adSkipLayer.hide(),this._paused=!0,this._playing=!1,this._pendingPlay=!1,this._pendingCanplay=!1,this._hasAdPlaylist=!1,null!=this._adsManager){if(this._bindArray)for(var e=0;e<this._bindArray.length;e++)this._adsManager.removeEventListener(window.google.ima.AdEvent.Type[this._bindArray[e]],this._onAdEventBound);this._expectingPause=!0;try{this._adsManager.stop()}catch(e){}}this._pendingSet_imaReady=[],this._pendingSet_adsManager=[],this._skipController&&this._skipController.reset(),null!=this.$media&&this._unbindMediaEvents(this.$media),null!=this._skipTimer&&(window.clearInterval(this._skipTimer),this._skipTimer=null)}},{key:"_isImaLoaded",value:function(){var e=window.google;return!(!e||"object"!=typeof e.ima||"string"!=typeof e.ima.VERSION)}},{key:"_loadIMA",value:function(e){var t=this;f.isIMALoaded()?this._onIMALoaded(!1):f.loadIMA().then((function(){return t._onIMALoaded(!0)})).catch((function(){return t._onLoadIMATimeout()}))}},{key:"_onLoadIMATimeout",value:function(){this._pendingPlay=!1,c.default("[Html5IMAHead] Timeout loading IMA script"),null!=this.$element&&this.$element.triggerHandler("bb_ima_load_failed"),this._errorMessage="Timeout loading IMA script",this._errorCode=-1,null!=this.$element&&this.$element.triggerHandler("error")}},{key:"_onIMALoaded",value:function(e){if(!this._isImaLoaded())return null!=this.$element&&this.$element.triggerHandler("bb_ima_load_failed"),this._errorMessage="Error loading IMA script",this._errorCode=0,null!=this.$element&&this.$element.triggerHandler("error"),!1;var t;this._vendor=window.google,this._viewMode=window.google.ima.ViewMode.NORMAL,this._contentCompleteCalled=!1;try{window.google.ima.settings.setSessionId(this._uuid)}catch(e){"string"==typeof window.google.ima.settings.Y&&window.google.ima.settings.Y.match(/\w{8}-\w{4}-\w{4}-\w{4}-\w{12}/)&&(window.google.ima.settings.Y=this._uuid)}try{window.google.ima.settings.setPlayerType("Blue Billywig Player"),window.google.ima.settings.setPlayerVersion("6.x"),window.google.ima.settings.setDisableCustomPlaybackForIOS10Plus(this._imaDisableCustomPlaybackForIOS10Plus),window.google.ima.settings.setCookiesEnabled(!this._disableTrackingCookies)}catch(e){}try{window.google.ima.settings.setNumRedirects(10)}catch(e){}if(this._disableHtml5VPAID)try{window.google.ima.settings.setVpaidMode(window.google.ima.ImaSdkSettings.VpaidMode.DISABLED)}catch(e){}else{try{window.google.ima.settings.setVpaidAllowed(!0)}catch(e){}if(this._blockInsecureVPAID||this._isiOS&&this._isChromeiOS)try{window.google.ima.settings.setVpaidMode(window.google.ima.ImaSdkSettings.VpaidMode.ENABLED)}catch(e){}else try{window.google.ima.settings.setVpaidMode(window.google.ima.ImaSdkSettings.VpaidMode.INSECURE)}catch(e){}}var i,n=["af","am","ar","ar_eg","ar_sa","eu","be","bn","bg","ca","zh","zh_cn","zh_hk","zh_tw","hr","cs","da","nl","en","en_au","en_ca","en_gb","en_ie","en_in","en_sg","en_za","et","fa","fil","fi","fr","fr_ca","fr_ch","gl","de","de_at","el","gu","he","hi","hu","is","id","it","ja","kn","ko","lo","lv","ln","lt","ms","ml","mr","no","pl","pt","pt_br","pt_pt","ro","ru","sr","sk","sl","es","es_419","es_ar","es_cl","es_co","es_cr","es_do","es_ec","es_sv","es_gt","es_hn","es_mx","es_ni","es_pa","es_pe","es_pr","es_py","es_us","es_uy","es_ve","sw","sv","gsw","tl","ta","te","th","tr","uk","ur","vi","zu"],a={"de-CH":"gsw"},s=window.navigator.languages.map((function(e){var t=a[e],i=e.replace("-","_").toLowerCase(),s=n.includes(i)?i:i.split("_")[0];return t||s})).find((function(e){return n.includes(e)}))||"en";if(window.google.ima.settings.setLocale(s),this._adDisplayContainerInitialized=!1,this._disableCustomClickLayer=!this._allowCustomClickLayer||this._isNonLinearPosition||this._isiOS&&this._iOSVersion<10,this._disableCustomClickLayer?(this._allowScrollFaking&&this._isMobileDevice&&this._isTouchDevice&&(null===(i=this.$adContainer)||void 0===i?void 0:i.length)&&(this.$adContainer[0].addEventListener("touchstart",this._onAdContainerTouchStartBound,{passive:!0}),this.$adContainer[0].addEventListener("touchmove",this._onAdContainerTouchMoveBound,{passive:!0})),this._adDisplayContainer=new window.google.ima.AdDisplayContainer(this.$adContainer[0],this._media)):this._adDisplayContainer=new window.google.ima.AdDisplayContainer(this.$adContainer[0],this._media,this.$adClickLayer_fake[0]),this._adsLoader=new window.google.ima.AdsLoader(this._adDisplayContainer),this._adsManager)try{this._adsManager.destroy()}catch(e){}for(this._adsManager=null,this._adsManagerInited=!1,this._adsManagerStarted=!1,this._adsLoader.addEventListener(window.google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,this._onAdsManagerLoadedBound,!1),this._adsLoader.addEventListener(window.google.ima.AdErrorEvent.Type.AD_ERROR,this._onAdsLoaderAdErrorBound,!1),this._imaReady=!0;this._pendingSet_imaReady.length>0;){var o=this._pendingSet_imaReady.shift();this.set(o.propertyName,o.value)}if(!e&&(!this._isMainroll||this._forceCanAutoPlay||this._canAutoPlayMuted&&(this._isAutoMuteSet||(null===(t=this._media)||void 0===t?void 0:t.muted)))&&null!=this._adDisplayContainer&&!this._adDisplayContainerInitialized)try{var r;this._adDisplayContainer.initialize(),this._adDisplayContainerInitialized=!0,this._avoidPreload||!this._isNotOverlayPosition&&!this._isVMAPPosition||(null===(r=this._media.currentSrc)||void 0===r?void 0:r.match(/^blob:/))||this._media.load()}catch(e){}}},{key:"_onWindowTouchstart",value:function(e){if(null!=this._adDisplayContainer&&(window.removeEventListener("touchstart",this._onWindowTouchstartBound),!this._haveStarted&&!this._adDisplayContainerInitialized))try{var t;this._adDisplayContainer.initialize(),this._adDisplayContainerInitialized=!0,this._avoidPreload||!this._isNotOverlayPosition&&!this._isVMAPPosition||(null===(t=this._media.currentSrc)||void 0===t?void 0:t.match(/^blob:/))||this._media.load(),this._pendingCanplay&&this.$element&&(this._pendingCanplay=!1,this.$element.triggerHandler("canplay"),this.$element.triggerHandler("canplaythrough"))}catch(e){c.default("[Html5IMAHead] caught error in _initializeOnFirstTouch while going to initialize AdDisplayContainer")}}},{key:"_onAdContainerTouchStart",value:function(e){var t,i;this._lastTouchY=null==e||null===(t=e.changedTouches)||void 0===t||null===(i=t[0])||void 0===i?void 0:i.screenY}},{key:"_onAdContainerTouchMove",value:function(e){var t,i=null==e||null===(t=e.changedTouches)||void 0===t?void 0:t[0];if(i){this._lastTouchY||(this._lastTouchY=i.screenY);var n=i.screenY-this._lastTouchY;0!==n&&window.scrollBy({top:-2.5*n,left:0,behavior:"instant"}),this._lastTouchY=i.screenY}}},{key:"_createAdsRequest",value:function(e,t){if(!this._vendor||"adTagUrl"!==e&&"adsResponse"!==e)return null;var i,n,a=new window.google.ima.AdsRequest;return a[e]=t,a.linearAdSlotWidth=this.$element.width(),a.linearAdSlotHeight=this.$element.height(),a.nonLinearAdSlotWidth=this.$element.width(),a.nonLinearAdSlotHeight=this.$element.height(),c.default("[Html5IMAHead.set] going to adsRequest.setAdWillAutoPlay("+(this._canAutoPlayMuted||this._canAutoPlay)+");"),null===(i=a.setAdWillAutoPlay)||void 0===i||i.call(a,this._canAutoPlayMuted||this._canAutoPlay),c.default("[Html5IMAHead.set] going to adsRequest.setAdWillPlayMuted("+(this._canAutoPlayMuted&&!this._canAutoPlay)+");"),null===(n=a.setAdWillPlayMuted)||void 0===n||n.call(a,this._canAutoPlayMuted&&!this._canAutoPlay),null!==this._adsRequestTimeout&&(clearTimeout(this._adsRequestTimeout),this._adsRequestTimeout=null),null!==this._adLoadTimeout&&(clearTimeout(this._adLoadTimeout),this._adLoadTimeout=null),this._adsRequestTimeout=setTimeout(this._onAdsRequestTimeoutBound,6e3),a}},{key:"set",value:function(e,t){if(!this._imaReady)return"muted"===e&&"boolean"==typeof t&&(this._muted=t),"volume"===e&&!isNaN(parseFloat(t))&&t>=0&&t<=1&&(this._volume=t),this._pendingSet_imaReady.push({propertyName:e,value:t}),!1;if(!this._adsManager&&"src"!==e&&"adsResponse"!==e)return this._pendingSet_adsManager.push({propertyName:e,value:t}),!1;switch(c.default("[Html5IMAHead] set: propertyName = "+e+", value = "+t),e){case"currentTime":break;case"muted":return"boolean"==typeof t&&(this._muted=t,this._effectuateVolumeAndMuted(!0),!0);case"src":case"adsResponse":var i,n;if(!this._adsLoader)return!1;null===(i=this._skipController)||void 0===i||i.reset(),null===(n=this.$element)||void 0===n||n.triggerHandler("loadstart");try{var a;null===(a=this._adsManager)||void 0===a||a.destroy()}catch(e){}this._adsManager=null,this._adsManagerInited=!1,this._adsManagerStarted=!1,this._manageLeaderStyle();var s="src"===e?"adTagUrl":"adsResponse";"adTagUrl"===s?this._adTagUrl=t:this._adsResponse=t;var o=this._createAdsRequest(s,t);if(o){var r;try{this._adsLoader.requestAds(o)}catch(e){return!1}return null===(r=this.$media)||void 0===r||r.show(),!0}return!1;case"volume":return!isNaN(parseFloat(t))&&t>=0&&t<=1&&(this._volume=t,this._effectuateVolumeAndMuted(!0),!0)}}},{key:"_manageLeaderStyle",value:function(){"LEADER"===this._opts.msasPos?this.$leaderStyle||(this.$leaderStyle=$parcel$interopDefault(u)("<style>.bb-head-html5-ima video { object-fit: cover; }</style>"),this.$leaderStyle.prependTo(this.$element)):this.$leaderStyle&&(this.$leaderStyle.remove(),this.$leaderStyle=null)}},{key:"_effectuateVolumeAndMuted",value:function(e){if(c.default("[Html5IMAHead] _effectuateVolumeAndMuted muted: "+this._muted),this._muted?this._adsManager&&this._adsManager.setVolume&&this._adsManager.setVolume(0):this._adsManager&&this._adsManager.setVolume&&this._adsManager.setVolume(this._volume),this._isMuted=this._muted||this._volume<=0,this._media&&this._media.muted!==this._isMuted&&(this._media.muted=this._isMuted),this._isMainroll){var t=this;this.$element.find("video").each((function(e,i){i.muted=t._isMuted}))}if(this._isMuted&&e&&this._pendingPlay&&!this._playing&&this._adsManager&&this._adsManagerInited&&this._adsManagerStarted){c.default("[Html5IMAHead] _effectuateVolumeAndMuted: pausing and resuming adsManager because of _pendingPlay and not _playing.");try{this._adsManager.pause()}catch(e){}var i=this;setTimeout((function(){try{i._adsManager.resume()}catch(e){}}),500)}return this._isMuted}},{key:"get",value:function(e){if(!this._imaReady)return!1;switch(e){case"remainingTime":return null!=this._adsManager&&this._adsManager.getRemainingTime();case"paused":return this._paused;case"duration":return null!=this._ad?this._ad.getDuration():-1;case"currentTime":return this._currentTime;case"muted":return void 0!==this._muted&&this._muted;case"src":return this._adTagUrl;case"adsResponse":return this._adsResponse;case"volume":return void 0!==this._volume&&this._volume;case"cuePoints":return null!=this._adsManager&&this._adsManager.getCuePoints();case"skippable":var t,i;return(null===(t=this._skipController)||void 0===t?void 0:t.getSkippableState())||(null===(i=this._adsManager)||void 0===i?void 0:i.getAdSkippableState())||!1;case"prerollCuePoint":var n,a;return null!==(a=null===(n=window.google.ima.AdCuePoints)||void 0===n?void 0:n.PREROLL)&&void 0!==a?a:-1;case"postrollCuePoint":var s,o;return null!==(o=null===(s=window.google.ima.AdCuePoints)||void 0===s?void 0:s.POSTROLL)&&void 0!==o?o:-1;case"mediaWidth":return this._adWidth;case"mediaHeight":return this._adHeight;case"ad":return this._ad;case"adId":return this._adId;case"adTitle":return this._adTitle;case"adLinear":return this._adLinear;case"adSystem":return this._adSystem;case"adContentType":return this._adContentType;case"adPodInfo":return this._adPodInfo_flat;case"adMediaMismatch":return this._adMediaMismatch;case"adWrapperAdIds":return this._adWrapperAdIds;case"creativeAdId":return this._creativeAdId;case"creativeId":return this._creativeId;case"clickThroughUrl":return this._savedClickThroughUrl;case"sdk":return"GOOGLE_IMA";case"restretchWillObjectFitContain":return this._objectFit&&null!=this.$media;case"error":return{error:this._errorMessage};case"canControlVolume":return this._canControlVolume}}},{key:"pause",value:function(){if(this._pendingPlay=!1,this._playing=!1,this._adsManager){this._expectingPause=!0;try{this._adsManager.pause()}catch(e){}}}},{key:"_onSkipTimerTick",value:function(){if(!this._paused&&null!=this._adsManager){var e=this._adsManager.getRemainingTime();h._timeIsValid(e)?(h._timeIsValid(this._adDuration)||(this._adDuration=e+0,null!=this.$element&&this.$element.triggerHandler("durationchange")),this._currentTime=Math.max(this._adDuration-e,this._currentTime+.5)):this._currentTime=this._currentTime+.5,null!=this.$element&&this.$element.triggerHandler("timeupdate"),this._skipController&&this._skipController.hasSkippableStateChanged(this._currentTime,this._skipOffset,this._adDuration)}}},{key:"_onAdStarted",value:function(e){c.default("[Html5IMAHead] ad started "),null!=this._skipTimer&&(window.clearInterval(this._skipTimer),this._skipTimer=null),this._skipTimer=window.setInterval(this._onSkipTimerTickBound,500),this._currentTime=0,this._skipController&&this._skipController.hasSkippableStateChanged(this._currentTime,this._skipOffset,this._adDuration),this._skipController&&"true"===this._upcomingVideo&&this._skipController.setUpcomingVideo()}},{key:"_tryInitialize",value:function(){if(null!==this._adDisplayContainer)try{this._adDisplayContainer.initialize(),this._adDisplayContainerInitialized=!0,this._pendingCanplay&&this.$element&&(this._pendingCanplay=!1,this.$element.triggerHandler("canplay"),this.$element.triggerHandler("canplaythrough"))}catch(e){e&&c.default("[Html5IMAHead] _tryInitialize => adDisplayContainer.initialize() error = "+e.message)}else this._pendingInitialize=!0}},{key:"load",value:function(e){!this._adDisplayContainerInitialized&&e&&this._tryInitialize()}},{key:"play",value:function(e){if(c.default("[Html5IMAHead] resume/play userAction: "+e),null!=this.$element&&this._isMuted&&this._isMainroll&&this.$element.find("video").each((function(e,t){t.muted=!0})),this._adDisplayContainerInitialized||this._tryInitialize(),!this._imaReady)return!1;if(this._adsManager&&!this._pendingPlay&&!this._playing){var t;this._pendingPlay=!0,null===(t=this.$element)||void 0===t||t.triggerHandler("play"),this._effectuateVolumeAndMuted();try{this._adsManagerStarted?this._adsManager.resume():this._adsManager.start()}catch(e){var i;this._errorMessage=e.message,c.default("[Html5IMAHead] play adsManager.start() error; error = "+this._errorMessage),null===(i=this.$element)||void 0===i||i.triggerHandler("error")}}}},{key:"resume",value:function(e){this.play(e)}},{key:"restretch",value:function(e,t){if(!this.$element)return!1;var i=this.$element.parent()[0];if(i){var n=void 0!==i.style.width&&i.style.width.match(/px/)?parseInt(i.style.width.replace("px","")):this.$element.width(),a=void 0!==i.style.height&&i.style.height.match(/px/)?parseInt(i.style.height.replace("px","")):this.$element.height();if(this._objectFit&&null!=this.$media){for(var s=0;s<this._vendorPrefixes.length;s++)this.$media.css(this._vendorPrefixes[s]+"transform","scale(1.0, 1.0)").css(this._vendorPrefixes[s]+"transform-origin","0 0");this.$media.css("height","100%").css("width","100%"),this.$media.css("object-fit","contain")}if(null!=this._adsManager){if(this._previousResizeWidth===n&&this._previousResizeHeight===a)return!1;this._api&&this._api.isFullscreen()?this._viewMode=window.google.ima.ViewMode.FULLSCREEN:this._viewMode=window.google.ima.ViewMode.NORMAL,this._isNonLinearPosition?n>=this._adWidth&&a>=this._adHeight&&this._adsManager.resize(n,a,this._viewMode):this._adsManager.resize(n,a,this._viewMode),this._previousResizeWidth=n,this._previousResizeHeight=a}}}},{key:"contentEnded",value:function(){this._contentCompleteCalled=!0,this._adsLoader.contentComplete()}},{key:"_onAdsRequestTimeout",value:function(e){var t;this._adsRequestTimeout=null,this.reset(),null===(t=this.$element)||void 0===t||t.triggerHandler("error")}},{key:"_onAdLoadTimeout",value:function(e){var t;this._adLoadTimeout=null,this.reset(),null===(t=this.$element)||void 0===t||t.triggerHandler("error")}},{key:"_onAdsLoaderAdError",value:function(e){if(c.default("[Html5IMAHead] _onAdsLoaderAdError"),null!==this._adsRequestTimeout){clearTimeout(this._adsRequestTimeout),this._adsRequestTimeout=null,null!==this._adLoadTimeout&&(clearTimeout(this._adLoadTimeout),this._adLoadTimeout=null);var t,i=e.getError();if(c.default("[Html5IMAHead] _onAdsLoaderAdError error: "+i.toString()),(null==i?void 0:i.getErrorCode())===window.google.ima.AdError.ErrorCode.VAST_MEDIA_LOAD_TIMEOUT);else this._errorMessage=null==i?void 0:i.toString(),this._errorCode=null==i?void 0:i.getErrorCode().toString(),this.reset(),null===(t=this.$element)||void 0===t||t.triggerHandler("error")}}},{key:"_onAdsManagerLoaded",value:function(e){if(null!==this._adsRequestTimeout){clearTimeout(this._adsRequestTimeout),this._adsRequestTimeout=null,null!==this._adLoadTimeout&&(clearTimeout(this._adLoadTimeout),this._adLoadTimeout=null),this._adLoadTimeout=setTimeout(this._onAdLoadTimeoutBound,6e3);var t=new window.google.ima.AdsRenderingSettings;t.loadVideoTimeout=1e4,t.useStyledNonLinearAds=!0,t.useStyledLinearAds=!1,t.uiElements=[],t.restoreCustomPlaybackStateOnAdBreakComplete=!1,t.enablePreloading=this._imaEnablePreloading,t.bitrate="number"==typeof this._measuredBandwidth&&this._measuredBandwidth>0?Math.round(.25*this._measuredBandwidth):-1;var i=this._media;if(this._headController){var n=this;i={},Object.defineProperty(i,"duration",{get:function(){var e;return(null===(e=n._headController)||void 0===e?void 0:e.get("duration"))||0}}),Object.defineProperty(i,"currentTime",{get:function(){var e;return(null===(e=n._headController)||void 0===e?void 0:e.get("currentTime"))||0}})}else i||(i={currentTime:0,duration:0});if(this._adsManager=e.getAdsManager(i,t),this._adsManager)for(;this._pendingSet_adsManager.length>0;){var a=this._pendingSet_adsManager.shift();this.set(a.propertyName,a.value)}this._processAdsManager(this._adsManager)}}},{key:"_processAdsManager",value:function(e){e.addEventListener(window.google.ima.AdErrorEvent.Type.AD_ERROR,this._onAdErrorBound,!1),e.addEventListener(window.google.ima.AdEvent.Type.STARTED,this._onAdStartedBound,!1),this._bindArray="ALL_ADS_COMPLETED CLICK COMPLETE CONTENT_PAUSE_REQUESTED CONTENT_RESUME_REQUESTED FIRST_QUARTILE LOADED AD_METADATA LOG MIDPOINT PAUSED RESUMED SKIPPABLE_STATE_CHANGED SKIPPED STARTED AD_PROGRESS THIRD_QUARTILE USER_CLOSE VOLUME_CHANGED VOLUME_MUTED".split(" ");for(var t=0;t<this._bindArray.length;t++)e.addEventListener(window.google.ima.AdEvent.Type[this._bindArray[t]],this._onAdEventBound,!1);this._initAdsManager()}},{key:"_initAdsManager",value:function(){if(this._adsManager&&!this._adsManagerInited){this._adsManagerInited=!0;var e=this.$element.width(),t=this.$element.height();this._api&&this._api.isFullscreen()?this._viewMode=window.google.ima.ViewMode.FULLSCREEN:this._viewMode=window.google.ima.ViewMode.NORMAL,this._adsManager.init(e,t,this._viewMode)}}},{key:"onContentPauseRequested_",value:function(e){}},{key:"onContentResumeRequested_",value:function(e){this._contentCompleteCalled}},{key:"_onAdEvent",value:function(e){switch(e.type!==window.google.ima.AdEvent.Type.AD_PROGRESS&&c.default("[Html5IMAHead] Ad event: "+e.type),this.$element&&this.$element.trigger("bb_ad_log",[{msg:"Ad event: "+e.type}]),e.type){case window.google.ima.AdEvent.Type.LOG:var t=e.getAdData();t.adError&&(c.default("[Html5IMAHead] Non-fatal error occurred: "+t.adError.getMessage()),null!=this.$element&&this.$element.triggerHandler("warning"));break;case window.google.ima.AdEvent.Type.AD_METADATA:var i;null!==this._adLoadTimeout&&(clearTimeout(this._adLoadTimeout),this._adLoadTimeout=null),this._hasAdPlaylist=!0,null===(i=this.$element)||void 0===i||i.triggerHandler("loadedadlistmetadata");break;case window.google.ima.AdEvent.Type.LOADED:var n;if(null!==this._adLoadTimeout&&(clearTimeout(this._adLoadTimeout),this._adLoadTimeout=null),this.$media&&(this._bindMediaEvents(this.$media),this.$media.closest(".bb-head").show()),null!=this.$element&&(this.$element.triggerHandler("loadedmetadata"),this._isMainroll&&this.$element.find("video").each((function(e,t){t.muted=!0}))),this._adWidth=0,this._adHeight=0,this._ad=e.getAd(),null!=this._ad){var a,s,o,r,l={};l.duration=this._adDuration=this._ad.getDuration(),l.id=this._adId=this._ad.getAdId(),l.title=this._adTitle=this._ad.getTitle(),l.linear=this._adLinear=this._ad.isLinear(),l.adSystem=this._adSystem=this._ad.getAdSystem(),l.surveyURL=this._adSurveyUrl="function"==typeof this._ad.getSurveyUrl?this._ad.getSurveyUrl():null,l.wrapperAdIds=this._adWrapperAdIds="function"==typeof this._ad.getWrapperAdIds?this._ad.getWrapperAdIds():null,l.creativeAdId=this._creativeAdId=null===(s=(a=this._ad).getCreativeAdId)||void 0===s?void 0:s.call(a),l.creativeId=this._creativeId=null===(r=(o=this._ad).getCreativeId)||void 0===r?void 0:r.call(o),l.width=this._ad.getWidth(),l.height=this._ad.getHeight(),this._updateAdDimensions(),this._adLinear||this._adDuration<0&&(this._adDuration=27),l.contentType=this._adContentType=this._ad.getContentType(),this._adPodInfo_flat=null;var u=l.adPodInfo=this._ad.getAdPodInfo?this._ad.getAdPodInfo():null;u&&(this._adPodInfo_flat=l.adPodData={},l.adPodData.adPosition=this._adPodInfo_flat.adPosition=u.getAdPosition(),l.adPodData.isBumper=this._adPodInfo_flat.isBumper=u.getIsBumper(),l.adPodData.maxDuration=this._adPodInfo_flat.maxDuration=u.getMaxDuration(),l.adPodData.podIndex=this._adPodInfo_flat.podIndex=u.getPodIndex(),l.adPodData.timeOffset=this._adPodInfo_flat.timeOffset=u.getTimeOffset(),l.adPodData.totalAds=this._adPodInfo_flat.totalAds=u.getTotalAds());var d=h.extractClickThroughUrl(this._ad);d&&(l.clickThroughUrl=d,this._savedClickThroughUrl=d),null!=this.$element&&this.$element.triggerHandler("durationchange"),"function"==typeof this._ad.isSkippable&&this._ad.isSkippable()&&this._skipController&&(this._skipController=this._skipController.exit()),null!=this.$element&&this.$element.trigger("bb_ad_loaded",[{ad:l}])}null!=this.$element&&this.$element.triggerHandler("loadeddata"),this._pendingInitialize&&this._tryInitialize(),this._adDisplayContainerInitialized||this._canAutoPlay||this._canAutoPlayMuted&&this._isMuted?(null!=this.$element&&this.$element.triggerHandler("canplay"),null!=this.$element&&this.$element.triggerHandler("canplaythrough")):this._pendingCanplay=!0,null===(n=this.$adClickLayer)||void 0===n||n.off("click",this._onAdClickLayerClickBound);break;case window.google.ima.AdEvent.Type.AD_PROGRESS:if(!this._adsManagerStarted){var p=e.getAdData();p&&p.currentTime>0&&p.currentTime<p.duration&&(this._adsManagerStarted=!0)}break;case window.google.ima.AdEvent.Type.STARTED:if(this._adsManagerStarted=!0,this._ad=e.getAd(),null!=this._ad){this._adDuration=this._ad.getDuration(),this._updateAdDimensions(),this._adLinear||(this._adDuration<0&&(this._adDuration=27),null!=this._durationTimeout&&(clearTimeout(this._durationTimeout),this._durationTimeout=null),this._durationTimeout=setTimeout(this._onDurationTimeoutBound,1e3*this._adDuration),"OVERLAY"===this._opts.msasPos&&null!=this._media&&this._media.play()),this._adContentType=this._ad.getContentType(),null!=this.$element&&this.$element.triggerHandler("durationchange");var _=h.extractClickThroughUrl(this._ad);_&&(this._savedClickThroughUrl=_)}if(this.$adClickLayer&&this.$adSkipLayer?(this._isCustomClickTrackingUsed=null!=this._adsManager&&this._adsManager.isCustomClickTrackingUsed(),this._isVPAIDAd&&(this._isCustomClickTrackingUsed=!1),"application/javascript"!==this._adContentType&&"application/x-shockwave-flash"!==this._adContentType||(this._isCustomClickTrackingUsed=!1),this._isCustomClickTrackingUsed?(this.$element.css("pointer-events","auto"),this.$adClickLayer.show(),this.$adSkipLayer.show(),this.$adClickLayer.on("click",this._onAdClickLayerClickBound),this.$adSkipLayer.on("click",this._onAdSkipLayerClickBound)):(this.$element.css("pointer-events","none"),this.$adClickLayer.off("click",this._onAdClickLayerClickBound),this.$adSkipLayer.off("click",this._onAdSkipLayerClickBound),this.$adClickLayer.hide(),this.$adSkipLayer.hide())):this.$element.css("pointer-events","none"),this.$adContainer.css("pointer-events","auto"),this._paused=!1,this._playing=!0,this._pendingPlay=!1,null!=this.$element&&this.$element.triggerHandler("playing"),null!=this.$element&&this.$element.triggerHandler("adStarted"),this._adSurveyUrl&&this._adSurveyUrl.match(/^https:\/\//)&&this._adSurveyUrl.match(/[/.]{1}leanlab\.co\//)){var f=this._adSurveyUrl;2*Math.random()<1&&setTimeout((function(){m.fetchScript(f,{async:!0}).then((function(e){c.default("[Html5IMAHead] _onAdEvent STARTED survey request status: "+e)})).catch((function(e){c.default("[Html5IMAHead] _onAdEvent STARTED survey request status: error")}))}),1)}break;case window.google.ima.AdEvent.Type.PAUSED:this._paused=!0,this._playing=!1,this._pendingPlay=!1,null!=this.$element&&this.$element.triggerHandler("pause");break;case window.google.ima.AdEvent.Type.RESUMED:this._paused=!1,this._playing=!0,this._pendingPlay=!1,null!=this.$element&&this.$element.triggerHandler("playing");break;case window.google.ima.AdEvent.Type.COMPLETE:this._playing=!1,this._pendingPlay=!1,this.$element.css("pointer-events","none"),this.$adContainer.css("pointer-events","none"),this.$adClickLayer&&this.$adClickLayer.hide(),this.$adSkipLayer&&this.$adSkipLayer.hide(),this._skipController&&this._skipController.reset(),null!=this._skipTimer&&(window.clearInterval(this._skipTimer),this._skipTimer=null),h._timeIsValid(this._adDuration)&&(this._currentTime=this._adDuration,null!=this.$element&&this.$element.triggerHandler("timeupdate")),this._paused=!0,null!=this.$element&&this.$element.triggerHandler("pause"),null!=this.$element&&this.$element.triggerHandler("adComplete");break;case window.google.ima.AdEvent.Type.ALL_ADS_COMPLETED:this.$element.css("pointer-events","none"),this._paused=!0,this._playing=!1,this._pendingPlay=!1,this.reset(),null!=this.$element&&this.$element.triggerHandler("ended");break;case window.google.ima.AdEvent.Type.SKIPPABLE_STATE_CHANGED:var v;if(null!=this._adsManager&&this._adsManager.getAdSkippableState())if(this._pendingSkip){this._expectingPause=!0;try{this._adsManager.skip(),this._playing=!1}catch(e){var g;null===(g=this.$element)||void 0===g||g.triggerHandler("bb_ad_skippable")}}else null===(v=this.$element)||void 0===v||v.triggerHandler("bb_ad_skippable");break;case window.google.ima.AdEvent.Type.USER_CLOSE:case window.google.ima.AdEvent.Type.SKIPPED:this.$element.css("pointer-events","none"),this._paused=!0,this._playing=!1,this._pendingPlay=!1,this.reset(),this._opts.clipData&&"mainroll"===this._opts.clipData.mediatype&&this._media&&!this._avoidPreload&&this._media.load(),null!=this.$element&&this.$element.triggerHandler("adSkipped");break;case window.google.ima.AdEvent.Type.CLICK:this._isCustomClickTrackingUsed||null!=this.$element&&this.$element.triggerHandler("bb_ad_clicked");break;case window.google.ima.AdEvent.Type.FIRST_QUARTILE:null!=this.$element&&this.$element.triggerHandler("adFirstQuartile");break;case window.google.ima.AdEvent.Type.MIDPOINT:null!=this.$element&&this.$element.triggerHandler("adMidPoint");break;case window.google.ima.AdEvent.Type.THIRD_QUARTILE:null!=this.$element&&this.$element.triggerHandler("adThirdQuartile");break;case window.google.ima.AdEvent.Type.VOLUME_CHANGED:null!=this.$element&&this.$element.triggerHandler("volumechange");case window.google.ima.AdEvent.Type.VOLUME_MUTED:null!=this.$element&&this.$element.triggerHandler("volumechange");break;case window.google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED:var y;this._adContentType&&this._adContentType.match(/^image/)&&!this._isNonLinearPosition||(this._adsManager&&this._adsManager.isCustomPlaybackUsed()?this._performMediaBorrow():(this._isVMAPPosition||this._usingAdSchedule||this._hasAdPlaylist||this._isMidrollPosition)&&(this._expectingPause=!0,this.$element&&this.$element.triggerHandler("adContentPauseReq"))),null===(y=this.$media)||void 0===y||y.off("ended.content",this._onContentEndedBound);break;case window.google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED:var b;null===(b=this.$media)||void 0===b||b.on("ended.content",this._onContentEndedBound),this._adContentType&&this._adContentType.match(/^image/)&&!this._isNonLinearPosition?(this.$element.css("pointer-events","none"),this._paused=!0,this._playing=!1,this._pendingPlay=!1,this.reset(),null!=this.$element&&this.$element.triggerHandler("ended")):this._adsManager&&this._adsManager.isCustomPlaybackUsed()?this._performMediaReturn():(this._isVMAPPosition||this._usingAdSchedule||this._hasAdPlaylist||this._isMidrollPosition)&&(this._expectingPause=!1,this.$element&&this.$element.triggerHandler("adContentResumeReq"))}}},{key:"_updateAdDimensions",value:function(){var e=this._adWidth,t=this._adHeight;try{var i;this._adWidth=this._ad.getWidth()||this._ad.getVastMediaWidth(),this._adHeight=this._ad.getHeight()||this._ad.getVastMediaHeight();var n=(null===(i=this._media)||void 0===i?void 0:i.videoHeight)>0?this._media.videoWidth/this._media.videoHeight:1.777,a=this._adHeight>0?this._adWidth/this._adHeight:1.777;if(this._adMediaMismatch=a>0&&Math.abs(1-n/a)>.05,this.$element&&0!==this._adWidth&&(e!==this._adWidth||t!==this._adHeight)){var s={adWidth:this._adWidth,adHeight:this._adHeight};this.$element.trigger("bb_ad_size_changed",[s])}}catch(e){e&&e.message&&c.default("[Html5IMAHead] error in _updateAdDimensions: "+e.message)}}},{key:"_onDurationTimeout",value:function(e){if(null!=this._adsManager){this._expectingPause=!0;try{this._adsManager.stop()}catch(e){}}this._onAdEvent({type:window.google.ima.AdEvent.Type.ALL_ADS_COMPLETED,getAd:function(){return null}})}},{key:"_onSkipClick",value:function(e){this._handleSkipClick()}},{key:"_handleSkipClick",value:function(){var e=!1;if(null!=this._adsManager){var t,i=m.mapPodIndexToPosition(this._adPodInfo_flat.podIndex),n=this._adsManager.getAdSkippableState(),a=!!(null===(t=this._skipController)||void 0===t?void 0:t.getSkippableState()),s=n||a;if(this._isVMAPPosition&&(!this._usingAdSchedule||this._usingAdSchedule&&this._skippableAdBreaks.indexOf(i)>-1)&&s){try{this._adsManager.discardAdBreak(),e=!0}catch(e){}this._skipController&&this._skipController.reset(),this._skipTimer&&(window.clearInterval(this._skipTimer),this._skipTimer=null),this.$element&&this.$element.triggerHandler("adSkipped")}else if(n){this._expectingPause=!0;try{this._adsManager.skip(),e=!0}catch(e){}this._skipController&&this._skipController.reset(),null!=this._skipTimer&&(window.clearInterval(this._skipTimer),this._skipTimer=null)}else a&&(this._paused=!0,this.reset(),e=!0,this._opts.clipData&&"mainroll"===this._opts.clipData.mediatype&&this._media&&!this._avoidPreload&&this._media.load(),null!=this.$element&&this.$element.trigger("bb_ad_log",[{msg:"Ad event: skip"}]),null!=this.$element&&this.$element.triggerHandler("adSkipped"))}return e}},{key:"_onFakeAdClickLayerClick",value:function(e){e.preventDefault(),e.stopPropagation()}},{key:"_onAdClickLayerClick",value:function(e){var t=this._media&&!this._media.paused&&!this._media.ended;if(null!=this._adsManager&&this._adsManager.isCustomPlaybackUsed()&&!t)this.resume();else if(this.$adClickLayer_fake&&this.$adClickLayer_fake.trigger("click"),this.$element&&this.$element.triggerHandler("bb_ad_clicked"),this._windowHasFocus&&this._savedClickThroughUrl){e.preventDefault();var i=d.default.getService(this._opts.playerAliasOrId).getInstance("PublicAPI");i?i.doOpenUrl(this._savedClickThroughUrl,"_blank",!0):window.open(this._savedClickThroughUrl,"_blank","noopener")}}},{key:"_onAdSkipLayerClick",value:function(e){this._handleSkipClick()||this._onAdClickLayerClick(e)}},{key:"_onAdError",value:function(e){c.default("[Html5IMAHead] Ad error: "+e.getError().toString());var t=e.getError();if(t.getErrorCode()===window.google.ima.AdError.ErrorCode.VAST_MEDIA_LOAD_TIMEOUT);else this._errorMessage=e.getError().toString(),this._errorCode=t.getErrorCode().toString(),this.reset(),null!=this.$element&&this.$element.triggerHandler("error")}},{key:"_bindMediaEvents",value:function(e){this._isiPhone?e.on("playing",this._onIPhoneMediaPlayingBound):(e.on("playing",this._onMediaPlayingBound),e.on("pause",this._onMediaPauseBound),e.on("error",this._onMediaErrorBound),e.on("ended",this._onMediaEndedBound))}},{key:"_unbindMediaEvents",value:function(e){this._isiPhone?e.off("playing",this._onIPhoneMediaPlayingBound):(e.off("playing",this._onMediaPlayingBound),e.off("pause",this._onMediaPauseBound),e.off("error",this._onMediaErrorBound),e.off("ended",this._onMediaEndedBound))}},{key:"_onIPhoneMediaPlaying",value:function(e){this._haveStarted=!0}},{key:"_onMediaPlaying",value:function(e){if(this._pausedUnexpectedly=!1,this._expectingPause=!1,this._haveStarted=!0,this._pausedByBlur=!1,!this._mediaPlaying){this._mediaPlaying=!0;var t=this;window.setTimeout((function(){t._animationCallback()}),1e3/60)}this._mediaFinished=!1}},{key:"_onMediaPause",value:function(e){this._pausedUnexpectedly=!this._expectingPause,this._expectingPause=!1,this._mediaPlaying=!1}},{key:"_onMediaError",value:function(e){this._pausedUnexpectedly=!1,this._mediaPlaying=!1,this._mediaFinished=!0}},{key:"_onMediaEnded",value:function(e){this._pausedUnexpectedly=!1,this._mediaPlaying=!1,this._mediaFinished=!0}},{key:"_onContentEnded",value:function(e){try{this._adsLoader.contentComplete()}catch(e){}}},{key:"_animationCallback",value:function(){var e;if(this._mediaPlaying){var t=this;window.setTimeout((function(){t._animationCallback()}),1e3/60)}this._pausedUnexpectedly&&!this._mediaFinished&&(null===(e=this._adsManager)||void 0===e?void 0:e.isCustomPlaybackUsed())&&this.$media[0].play()}}],[{key:"_timeIsValid",value:function(e){return!isNaN(parseFloat(e))&&e>0}},{key:"extractClickThroughUrl",value:function(e){var t;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&"object"==typeof e[i]){if(e[i].clickThroughUrl){t=e[i].clickThroughUrl;break}if(e[i].traffickingParameters)try{var n=JSON.parse(e[i].traffickingParameters);if(null==n?void 0:n.page_url){t=n.page_url;break}}catch(e){}}return t}}]),h}(h.default)})),parcelRequire.register("2pJYD",(function(e,t){$parcel$export(e.exports,"default",(function(){return s})),parcelRequire("6JR1F");var i=parcelRequire("hGJI5"),n=parcelRequire("3DsR2"),a=parcelRequire("e06N2"),s=function(e,t,i){this._init(e,t,i)};s.prototype._init=function(e,t,a){var s,o;if(this._opts=t||{},this._skipOptions=a||{},this._eventNS="AdSkipController"+String(Math.random()).replace(".",""),this._type="skip",this._skipOffset=-1,this._skipCounterText=(null==a?void 0:a.skipCounterText)||"You can skip this ad in",this._skipButtonText=(null==a?void 0:a.skipButtonText)||"Skip Ad",this._upcomingText=(null==a?void 0:a.upcomingText)||"Video will play after this ad",this._upcomingTitle=null,this._upcomingClipId=null,this._upcomingThumb=null,this._isOutstream="mainroll"===(null===(s=this._opts.clipData)||void 0===s?void 0:s.mediatype)||"inarticle"===(null===(o=this._opts.clipData)||void 0===o?void 0:o.mediatype),this._visible=!1,this._skippable=!1,this._skipTimeRemaining=0,this.$skipCounter=null,this.$skipCounterText=null,this.$skipCounterIcon=null,this.$skipButton=null,this.$closeButton=null,this._api=null,this.$upcomingVideoDiv=null,this.$upcomingText=null,this.$upcomingThumbnail=null,this._genericType="mediaclip",this._onSkipClickBound=this._onSkipClick.bind(this),this._onLoadedClipDataBound=this._onLoadedClipData.bind(this),this._onResizedBound=this._onResized.bind(this),this.$element=null,void 0!==e&&null!=e){var r;this.$element=e,this.$element.hide();var l='<svg style="height: 12px;" viewBox="0 0 12 15" fill="none" xmlns="http://www.w3.org/2000/svg">\n\t\t\t<g>\n\t\t\t\t<path d="M10.8272 13.9677C11.4935 13.9677 12 13.4452 12 12.8009V1.1668C12 0.522508 11.4596 0 10.7932 0C10.1268 0 9.62037 0.522508 9.62037 1.13398V12.7983C9.62037 13.4755 10.1936 13.9677 10.8272 13.9677ZM1.98026 13.7307L9.22099 7.92951C9.50855 7.69483 9.65204 7.36324 9.65204 7.0318C9.65204 6.70021 9.5084 6.36891 9.22099 6.13409L1.98026 0.332903C1.20226 -0.355509 0 0.168821 0 1.1668V12.8312C0 13.8291 1.20226 14.3542 1.98026 13.7307Z" fill="white"/>\n\t\t\t</g>\n\t\t</svg>';if((null===(r=n.default.getService(this._opts.playerAliasOrId).getInstance("SkinController"))||void 0===r?void 0:r.getGeneration())>=8?(this.$skipWrapper=$parcel$interopDefault(i)('<div class="bb-skip-wrapper" style="--skip-font-size:16px;pointer-events:none;user-select:none;font-weight:500;font-size:var(--skip-font-size);font-family:Lato,arial,sans-serif; color:#fff;min-width:var(--skip-font-size); min-height:var(--skip-font-size);background-color: rgba(0,0,0,0.5);border-radius: 5px 0 0 5px;text-align:center; position:absolute;right:0;bottom:max(40px,18%); display:flex"></div>').appendTo(this.$element),this.$skipCounter=$parcel$interopDefault(i)('<div class="bb-skip-counter" style="pointer-events:all;padding:var(--skip-font-size);display:flex;align-items:center;gap:12px;white-space:nowrap;"></div>').appendTo(this.$skipWrapper),this.$skipButton=$parcel$interopDefault(i)('<div class="bb-skip-button" style="padding:var(--skip-font-size);pointer-events:auto;cursor:pointer;display:flex;align-items:center;gap:12px;white-space:nowrap;"></div>').appendTo(this.$skipWrapper).hide(),$parcel$interopDefault(i)('<span class="bb-skip-text">'+this._skipButtonText+" </span>"+l).appendTo(this.$skipButton)):(this.$skipWrapper=$parcel$interopDefault(i)('<div class="bb-skip-button" style="pointer-events:none; user-select:none; font:normal 12px Ubuntu,arial,helvetica,sans-serif; color:#fff;min-width:12px; min-height:12px;background-color: rgba(0,0,0,0.6);border-radius: 2px;border: 1px solid #000000;text-align:center; position:absolute; right:-2px; bottom:50px; display:flex"></div>').appendTo(this.$element),this.$skipCounter=$parcel$interopDefault(i)('<div class="bb-skip-counter" style="pointer-events:all;padding:8px 12px 8px 10px;display:flex;align-items:center;gap:12px;white-space:nowrap;"></div>').appendTo(this.$skipWrapper),this.$skipButton=$parcel$interopDefault(i)('<div class="bb-skip-button" style="pointer-events:auto;padding:8px 12px 8px 10px;cursor:pointer;"></div>').appendTo(this.$skipWrapper).hide(),$parcel$interopDefault(i)('<span class="bb-skip-text">'+this._skipButtonText+" </span>").appendTo(this.$skipButton)),this.$skipButton.on("click",this._onSkipClickBound),this.$skipCounterText=$parcel$interopDefault(i)('<span class="bb-skip-counter-text"></span>').appendTo(this.$skipCounter),this.$skipCounterIcon=$parcel$interopDefault(i)(l).appendTo(this.$skipCounter),this.$closeButton=$parcel$interopDefault(i)('<div class="bb-skip-close-button" style="pointer-events:auto;padding:8px 12px 8px 10px;"></div>').appendTo(this.$skipWrapper).hide(),this.$closeButton.on("click",this._onSkipClickBound),!this._isOutstream&&(this.$upcomingVideoDiv=$parcel$interopDefault(i)('<div class="bb-upcoming" style="pointer-events:auto;cursor:auto;display:flex;align-items:center"></div>').appendTo(this.$skipWrapper).hide(),this.$upcomingVideoDiv.attr("title",this._upcomingTitle),this.$upcomingText=$parcel$interopDefault(i)('<span class="bb-upcoming-text" style="padding:0px 0.5em;display: -webkit-box;-webkit-box-orient:vertical;overflow:hidden;-webkit-line-clamp:2">'+this._upcomingText+" </span>").appendTo(this.$upcomingVideoDiv),this.$upcomingThumbnail=$parcel$interopDefault(i)(document.createElement("img")).appendTo(this.$upcomingVideoDiv),this.$upcomingThumbnail.css({width:"75px",height:"42px",background:"rgba(0,0,0,0.6)",color:"transparent"}),this.$upcomingThumbnail.attr("alt","poster"),this._api=n.default.getService(this._opts.playerAliasOrId).getInstance("PublicAPI"),this._api)){if(!this._upcomingClipId||!this._upcomingTitle){var u=this._api.getClipData();this._upcomingClipId=null==u?void 0:u.id,this._upcomingTitle=null==u?void 0:u.title}this._upcomingClipId&&(this._upcomingThumb=this._api.getThumbnail(this._upcomingClipId,75,42))}this.$wrapper=this.$element.closest(".bb_wrapper"),this.$wrapper&&(this._onResized(),this.$wrapper.on("bb_mediaclip_loaded",this._onLoadedClipDataBound),this.$wrapper.on("bb_resized",this._onResizedBound))}},s.prototype.exit=function(){var e,t;null!=this.$element&&(null===(e=this.$skipButton)||void 0===e||e.off("click",this._onSkipClickBound),null===(t=this.$closeButton)||void 0===t||t.off("click",this._onSkipClickBound),this.$element.empty());return this.$wrapper&&(this.$wrapper.off("bb_mediaclip_loaded",this._onLoadedClipDataBound),this.$wrapper.off("bb_resize",this._onResizedBound)),null},s.prototype.reset=function(){var e,t;(this._skipOffset=-1,this._visible=!1,this._skippable=!1,this.$element)&&(null===(e=this.$upcomingThumbnail)||void 0===e||e.hide(),null===(t=this.$upcomingVideoDiv)||void 0===t||t.hide(),this.$element.hide());this._showHideElements()},s.prototype.setType=function(e){this._type=void 0!==e?e:"skip"},s.prototype.getSkippableState=function(){return this._skippable},s.prototype.hasSkippableStateChanged=function(e,t,i){void 0!==t&&(this._skipOffset=t),(isNaN(parseFloat(i))||i<=0)&&(i=999999);var n=!1;if(this._skipOffset>=0&&this._skipOffset<i)if(this._visible||(this._visible=!0,this.$element.show(),this._showHideElements()),this._skipTimeRemaining=this._skipOffset-e,this._skipTimeRemaining>0)this._updateCounter();else if(!this._skippable){var s;this._skippable=!0,this._showHideElements(),a.default("[AdSkipController] hasSkippableStateChanged skippable!"),null===(s=this.$element)||void 0===s||s.triggerHandler("bb_ad_skippable"),n=!0}return n},s.prototype.setUpcomingVideo=function(){!this._isOutstream&&this.$element&&(this.$upcomingVideoDiv.attr("title",this._upcomingTitle),this._upcomingThumb?this.$upcomingThumbnail.attr("src",this._upcomingThumb).show():this.$upcomingThumbnail.hide(),this._skipOffset>=0?(this.$upcomingText.css({display:"none"}),this.$skipCounter.css({padding:"12px 12px 8px 10px"}),this.$skipButton.css({padding:"12px 12px 8px 10px"})):(this.$upcomingText.css({display:"-webkit-box"}),this.$skipCounter.css({display:"none"})),this.$element.show(),this.$upcomingVideoDiv.show())},s.prototype._updateCounter=function(){if(this._skipTimeRemaining){var e="";this.$wrapper.width()>300?(e=this._skipCounterText+" ",this.$skipCounterIcon.hide()):this.$skipCounterIcon.show(),this.$skipCounterText.text(e+s._timeToTimeStr(Math.ceil(this._skipTimeRemaining)))}},s.prototype._onResized=function(){var e,t,i=Math.min(this.$wrapper.height(),this.$wrapper.width());null===(e=this.$skipWrapper)||void 0===e||e.css({"--skip-font-size":Math.max(12,Math.min(16,.0235*i))+"px"}),null===(t=this.$upcomingText)||void 0===t||t.css({maxWidth:this.$wrapper.width()>480?"13em":"7em"}),this._updateCounter()},s.prototype._onSkipClick=function(e){this._skippable||e.stopPropagation()},s.prototype._showHideElements=function(e){var t,i;this._skippable?(this.$skipCounter.hide(),null===(t=this.$upcomingThumbnail)||void 0===t||t.css({cursor:"pointer"}),"close"===this._type?(this.$skipButton.hide(),this.$closeButton.show()):(this.$skipButton.show(),this.$closeButton.hide())):(null===(i=this.$upcomingThumbnail)||void 0===i||i.css({cursor:"auto"}),"close"===this._type?this.$skipCounter.hide():this.$skipCounter.show(),this.$skipButton.hide(),this.$closeButton.hide())},s._timeToTimeStr=function(e){var t="--:--";if(!isNaN(parseFloat(e))&&e>=0){var i=Math.round(e),n=Math.floor(i/3600),a=Math.floor((i-3600*n)/60),s=i-3600*n-60*a;n=n<10?"0"+n:n.toString(),a=a<10?"0"+a:a.toString(),s=s<10&&i>=60?"0"+s:s.toString();var o=[];i>=3600&&o.push(n),i>=60&&o.push(a),o.push(s),t=o.join(":")}return t},s.prototype._onLoadedClipData=function(e,t){!this._isOutstream&&(null==t?void 0:t.clipData)&&(this._upcomingTitle=t.clipData.title,this._upcomingClipId=t.clipData.id,this._api&&this._upcomingClipId?this._upcomingThumb=this._api.getThumbnail(this._upcomingClipId,75,42):this._upcomingThumb=null)}})),parcelRequire.register("3vYzT",(function(e,t){$parcel$export(e.exports,"isIMALoaded",(function(){return s})),$parcel$export(e.exports,"loadIMA",(function(){return o}));var i=parcelRequire("e06N2"),n=parcelRequire("cYwG5"),a="//s0.2mdn.net/instream/html5/".concat(i.debugMode?"ima3_debug":"ima3",".js"),s=function(){var e,t;return"string"==typeof(null===(e=window.google)||void 0===e||null===(t=e.ima)||void 0===t?void 0:t.VERSION)},o=function(){return s()||window.bluebillywig._internal.ima_load_promise?!s()&&window.bluebillywig._internal.ima_load_promise?window.bluebillywig._internal.ima_load_promise:s()?new Promise((function(e){return e()})):void 0:(window.bluebillywig._internal.ima_load_promise=new Promise((function(e,t){s()?e():n.fetchScript(a,{async:!0,timeout:1e4}).then((function(){delete window.bluebillywig._internal.ima_load_promise,e()})).catch((function(e){delete window.bluebillywig._internal.ima_load_promise,t(e)}))})),window.bluebillywig._internal.ima_load_promise)}})),parcelRequire.register("k4rzQ",(function(module,exports){$parcel$export(module.exports,"START_DELAY",(function(){return START_DELAY})),$parcel$export(module.exports,"default",(function(){return BBPrebid})),parcelRequire("lDGnc");var $7CnHN=parcelRequire("7CnHN"),$eamhc=parcelRequire("eamhc"),$gCaES=parcelRequire("gCaES"),$jxjxM=parcelRequire("jxjxM"),$eLoLc=parcelRequire("eLoLc"),$bbFoI=parcelRequire("bbFoI"),$3DsR2=parcelRequire("3DsR2"),$e06N2=parcelRequire("e06N2"),$cYwG5=parcelRequire("cYwG5");parcelRequire("h33Eq");var TOP_MOST_HOSTNAME=$cYwG5.determineTopMostHostname(),START_DELAY={PREROLL:0,GENERICMIDROLL:-1,MIDROLL:function(e){return e>0?Math.floor(e):-1},POSTROLL:-2},PREBID_AUCTION_ID_TO_BB_METADATA_MAPPING={},anyPlayerHasNoStats=!1,PREBID_EVENTS={AUCTION_INIT:"auctionInit",AUCTION_END:"auctionEnd",BID_TIMEOUT:"bidTimeout",BID_REQUESTED:"bidRequested",BID_RESPONSE:"bidResponse",BID_REJECTED:"bidRejected",NO_BID:"noBid",BID_WON:"bidWon",BIDDER_ERROR:"bidderError",SET_TARGETING:"setTargeting",AUCTION_DEBUG:"auctionDebug"},BBPrebid=function(){"use strict";function BBPrebid(e){var t,i,n,a,s,o,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},u=this;$7CnHN.default(this,BBPrebid),this.$element=e,this._opts=r,this._publication=this._opts.playoutData.publication,this._noStats="true"===this._opts.playoutData.noStats,this._adMacroHelper=new $bbFoI.default(e,this._opts),this._context=l.context||{},this._position=l.position||"inarticle",this._appId=this._opts.embedData.appId||"default",this._adUnits=l.prebidConfig.adUnits||this._opts.appConfig,this._config=l.prebidConfig.config||{usePrebidCache:!0,cache:{url:"https://prebid.adnxs.com/pbc/v1/cache"}},this._adUnitCodes=[],this._analytics=l.prebidConfig.analytics,this._analyticsUrl="https://".concat((null===(t=this._publication)||void 0===t?void 0:t.indexOf("."))>-1?"dev.":"","pba.mainroll.com/v1/pba-ingest"),this._adServerUrl="__auction_direct__"===l.adServerUrl?null:l.adServerUrl||null,this._isOutstream="inarticle"===this._position||"mainroll"===(null===(i=this._opts.clipData)||void 0===i?void 0:i.mediatype)||"inarticle"===(null===(n=this._opts.clipData)||void 0===n?void 0:n.mediatype),this._startDelay=l.startDelay||null,this._skipOffset=null!==(o=null===(a=this._opts.msasSystemData)||void 0===a?void 0:a.skipOffset)&&void 0!==o?o:-1;var d=$3DsR2.default.getService(this._opts.playerAliasOrId);this._detections=null==d?void 0:d.getInstance("Detections"),this._noStats&&(anyPlayerHasNoStats=!0),this._scriptBlocked=null,this._bidCallbacks={};var c=this._publication.replace(".","_"),h="bluebillywig_pbjs_".concat(c);if(this.pbjsNamespace="bluebillywig_pbjs",window[h])this.pbjsNamespace=h;else{var p=document.querySelectorAll('script[src$="bluebillywig_pbjs.js"]'),_=new RegExp("/".concat(c,"/\\w+/bluebillywig_pbjs.js$")),m=!0,f=!1,v=void 0;try{for(var g,y=p[Symbol.iterator]();!(m=(g=y.next()).done);m=!0){var b=g.value;if(b.src.match(_)){this.pbjsNamespace=h;break}}}catch(e){f=!0,v=e}finally{try{m||null==y.return||y.return()}finally{if(f)throw v}}}if(window.document.querySelector('script[src$="bluebillywig_pbjs.js"]'))(null===(s=window[this.pbjsNamespace])||void 0===s?void 0:s.libLoaded)||!1===this._scriptBlocked||(this._scriptBlocked=!0);else{var k;if(r.playerPath){var w=new URL(r.playerPath);k="".concat(w.protocol,"//").concat(w.hostname,"/scripts/prebid/bluebillywig_pbjs.js")}else if("string"==typeof this._publication){var $=-1===this._publication.indexOf(".")?"prod":this._publication.split(".")[1],C="prod"===$?"":"-".concat($);k="https://cdn".concat(C,".bluebillywig.com/scripts/prebid/bluebillywig_pbjs.js")}var S=document.createElement("script");S.src=k,S.async=!0,S.addEventListener("error",this._checkScriptLoaded.bind(this),{once:!0}),window.document.getElementsByTagName("head")[0].appendChild(S)}window[this.pbjsNamespace]=window[this.pbjsNamespace]||{},window[this.pbjsNamespace].que=window[this.pbjsNamespace].que||[],window[this.pbjsNamespace].que.push((function(){u._initPromise=u._init()}))}return $eamhc.default(BBPrebid,[{key:"_init",value:function _init(){var _this=this;return $gCaES.default($parcel$interopDefault($eLoLc).mark((function _callee(){var ref,ref6,targetingOverride,label,adUnit1,render,_iteratorNormalCompletion,_didIteratorError,_iteratorError,_iterator,_step,bid1,multiplier,startDelay,bidderAliases,purposes,_iteratorNormalCompletion1,_didIteratorError1,_iteratorError1,_iterator1,_step1,purpose;return $parcel$interopDefault($eLoLc).wrap((function _callee$(_ctx){for(;;)switch(_ctx.prev=_ctx.next){case 0:return _this._scriptBlocked=!1,_ctx.next=4,_this._adMacroHelper.resolveMacrosRecursively(_this._config,!0);case 4:return _this._config=_ctx.sent,_ctx.next=7,_this._adMacroHelper.resolveMacrosRecursively(_this._adUnits,!0);case 7:_this._adUnits=_ctx.sent,targetingOverride=_this._config.adserverTargetingOverride||{},window[_this.pbjsNamespace].bidderSettings={standard:{storageAllowed:!0,allowAlternateBidderCodes:!0,allowedAlternateBidderCodes:["*"],adserverTargeting:[{key:targetingOverride.hb_bidder||"hb_bidder",val:function(e){return e.bidderCode}},{key:targetingOverride.hb_adid||"hb_adid",val:function(e){return e.adId}},{key:targetingOverride.hb_pb||"hb_pb",val:function(e){switch(_this._config.priceGranularity){case"low":return e.pbLg;case"medium":return e.pbMg;case"high":default:return e.pbHg;case"auto":return e.pbAg;case"dense":return e.pbDg}}},{key:targetingOverride.hb_size||"hb_size",val:function(e){return e.size}},{key:targetingOverride.hb_source||"hb_source",val:function(e){return e.source}},{key:targetingOverride.hb_format||"hb_format",val:function(e){return e.mediaType}},{key:targetingOverride.hb_impression_id||"hb_impression_id",val:function(e){return e.impression_id}}]}},_ctx.t0=regeneratorRuntime.keys(_this._adUnits);case 11:if((_ctx.t1=_ctx.t0()).done){_ctx.next=54;break}if(label=_ctx.t1.value,adUnit1=_this._adUnits[label],_this._adUnitCodes.push(adUnit1.code||label),void 0!==adUnit1.renderer)if("BB"===adUnit1.renderer)adUnit1.renderer={url:"https://cdn.bluebillywig.com/apps/dummy/latest/app.js",render:function(e){}};else if(adUnit1.renderer.url&&"string"==typeof adUnit1.renderer.render&&adUnit1.renderer.render.match(/^function/)){render=adUnit1.renderer.render;try{eval('adUnit["renderer"]["render"] = '+render)}catch(e){}}else delete adUnit1.renderer;if(void 0===adUnit1.bids){_ctx.next=34;break}for(_iteratorNormalCompletion=!0,_didIteratorError=!1,_iteratorError=void 0,_ctx.prev=18,_iterator=adUnit1.bids[Symbol.iterator]();!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=!0)bid1=_step.value,void 0!==bid1.bidCpmAdjustmentMultiplier&&("number"!=typeof bid1.bidCpmAdjustmentMultiplier&&isNaN(parseFloat(bid1.bidCpmAdjustmentMultiplier))||(multiplier="number"==typeof bid1.bidCpmAdjustmentMultiplier?bid1.bidCpmAdjustmentMultiplier:parseFloat(bid1.bidCpmAdjustmentMultiplier),window[_this.pbjsNamespace].bidderSettings[bid1.bidder]=window[_this.pbjsNamespace].bidderSettings[bid1.bidder]||{},window[_this.pbjsNamespace].bidderSettings[bid1.bidder].bidCpmAdjustment=function(e,t){return e*multiplier}),delete bid1.bidCpmAdjustmentMultiplier);_ctx.next=26;break;case 22:_ctx.prev=22,_ctx.t2=_ctx.catch(18),_didIteratorError=!0,_iteratorError=_ctx.t2;case 26:_ctx.prev=26,_ctx.prev=27,_iteratorNormalCompletion||null==_iterator.return||_iterator.return();case 29:if(_ctx.prev=29,!_didIteratorError){_ctx.next=32;break}throw _iteratorError;case 32:return _ctx.finish(29);case 33:return _ctx.finish(26);case 34:if(adUnit1.mediaTypes=adUnit1.mediaTypes||{},adUnit1.mediaTypes.video=adUnit1.mediaTypes.video||{},adUnit1.mediaTypes.video.context=_this._isOutstream?"outstream":"instream",_this._isOutstream&&_this._adServerUrl&&(adUnit1.mediaTypes.video.useCacheKey=!0),_this._isOutstream){_ctx.next=50;break}_ctx.t3=_this._position.toUpperCase(),_ctx.next="PREROLL"===_ctx.t3?43:"POSTROLL"===_ctx.t3?45:"MIDROLL"===_ctx.t3||"VMAP"===_ctx.t3?47:49;break;case 43:return startDelay=START_DELAY.PREROLL,_ctx.abrupt("break",49);case 45:return startDelay=START_DELAY.POSTROLL,_ctx.abrupt("break",49);case 47:return startDelay="number"==typeof _this._startDelay?START_DELAY.MIDROLL(_this._startDelay):START_DELAY.GENERICMIDROLL,_ctx.abrupt("break",49);case 49:adUnit1.mediaTypes.video.startdelay=startDelay;case 50:adUnit1.mediaTypes.video.skip=_this._skipOffset>-1?1:0,_this._skipOffset>-1?adUnit1.mediaTypes.video.skipafter=_this._skipOffset:delete adUnit1.mediaTypes.video.skipafter,_ctx.next=11;break;case 54:if(_this._config.userSync||(_this._config.userSync={}),_this._config.userSync.filterSettings||(_this._config.userSync.filterSettings={iframe:{bidders:"*",filter:"include"}}),_this._config.currency||(_this._config.currency={adServerCurrency:"USD"}),bidderAliases=Object.values(_this._adUnits).map((function(e){return e.bids})).flat().filter((function(e){return!!e.alias})).map((function(e){return e.bidder})),_this._config.enableTIDs=!0,!bidderAliases.length||!Array.isArray(null===(ref=_this._config.consentManagement)||void 0===ref||null===(ref6=ref.gdpr)||void 0===ref6?void 0:ref6.rules)){_ctx.next=78;break}for(purposes=["basicAds","personalizedAds"],_iteratorNormalCompletion1=!0,_didIteratorError1=!1,_iteratorError1=void 0,_ctx.prev=62,_iterator1=purposes[Symbol.iterator]();!(_iteratorNormalCompletion1=(_step1=_iterator1.next()).done);_iteratorNormalCompletion1=!0)purpose=_step1.value,_this._config.consentManagement.gdpr.rules.some((function(e){return e.purpose===purpose}))||_this._config.consentManagement.gdpr.rules.push({purpose:purpose,enforcePurpose:!0,enforceVendor:!0,softVendorExceptions:bidderAliases});_ctx.next=70;break;case 66:_ctx.prev=66,_ctx.t4=_ctx.catch(62),_didIteratorError1=!0,_iteratorError1=_ctx.t4;case 70:_ctx.prev=70,_ctx.prev=71,_iteratorNormalCompletion1||null==_iterator1.return||_iterator1.return();case 73:if(_ctx.prev=73,!_didIteratorError1){_ctx.next=76;break}throw _iteratorError1;case 76:return _ctx.finish(73);case 77:return _ctx.finish(70);case 78:_this._config.debug=$e06N2.debugMode,window[_this.pbjsNamespace].setConfig(_this._config),_this._analytics&&window[_this.pbjsNamespace].enableAnalytics&&window[_this.pbjsNamespace].enableAnalytics(_this._analytics),window[_this.pbjsNamespace].enableAnalytics({provider:"generic",options:{gvlid:684,batchSize:50,handler:_this.sendPrebidEvents.bind(_this),events:Object.values(PREBID_EVENTS).reduce((function(e,t){return e[t]=_this.mapEventData.bind(_this,t),e}),{})},includeEvents:Object.values(PREBID_EVENTS)});case 82:case"end":return _ctx.stop()}}),_callee,null,[[18,22,26,34],[27,,29,33],[62,66,70,78],[71,,73,77]])})))()}},{key:"mapEventData",value:function(e,t){var i,n,a,s={};switch(e){case PREBID_EVENTS.AUCTION_DEBUG:if("ERROR"!==(null==t?void 0:t.type)||!(null==t?void 0:t.arguments))return!1;s.message=$jxjxM.default(t.arguments).join("").trim();break;case PREBID_EVENTS.AUCTION_INIT:case PREBID_EVENTS.AUCTION_END:s.bidders=t.bidderRequests.map((function(e){return e.bidderCode})).sort();break;case PREBID_EVENTS.BID_REQUESTED:var o,r;if(!(1===(null==t||null===(o=t.bids)||void 0===o?void 0:o.length)&&(null===(r=t.bids)||void 0===r?void 0:r[0])))return!1;s.bidder=t.bidderCode;break;case PREBID_EVENTS.BIDDER_ERROR:s.bidder=t.bidderRequest.bidderCode;break;case PREBID_EVENTS.NO_BID:var l=Array.isArray(t.params)&&t.params.length?t.params[0]:t.params;s.bidder=t.bidder,s.params=$cYwG5.flattenObject(l);break;case PREBID_EVENTS.BID_TIMEOUT:if(!(null==t?void 0:t.length))return!1;s.bidders=t.map((function(e){return e.bidder})).sort();break;case PREBID_EVENTS.BID_WON:case PREBID_EVENTS.BID_RESPONSE:s.bidder=t.bidder,s.timeToRespond=parseInt(t.timeToRespond),s.cpm=parseFloat(t.cpm),s.currency=t.currency,s.adserverTargeting=Object.keys(t.adserverTargeting).reduce((function(e,i){return e[i]=t.adserverTargeting[i]||"",e}),{});break;default:return!1}var u=(null==t?void 0:t.auctionId)||(null==t||null===(i=t.bidderRequest)||void 0===i?void 0:i.auctionId)||(null==t?void 0:t.length)&&t[0].auctionId;return u&&PREBID_AUCTION_ID_TO_BB_METADATA_MAPPING[u]?s=Object.assign(s,PREBID_AUCTION_ID_TO_BB_METADATA_MAPPING[u]):s.publication="unknown",s.eventName=e,s.timestamp=(new Date).toISOString(),s.domain=TOP_MOST_HOSTNAME,s.operatingSystem=(null===(n=this._detections)||void 0===n?void 0:n.OS)||"Other",s.browser=(null===(a=this._detections)||void 0===a?void 0:a.browser)||"Other",s}},{key:"sendPrebidEvents",value:function(e){var t=this;return $gCaES.default($parcel$interopDefault($eLoLc).mark((function i(){return $parcel$interopDefault($eLoLc).wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(!anyPlayerHasNoStats){i.next=2;break}return i.abrupt("return");case 2:if(!((e=e.filter((function(e){return!!e}))).length<1)){i.next=5;break}return i.abrupt("return");case 5:return i.prev=5,i.next=8,$cYwG5.fetchData(t._analyticsUrl,{method:"POST",contentType:"text/plain",dataType:"text",data:e.reduce((function(e,t){return e+JSON.stringify(t)}),""),cache:"no-store"});case 8:i.next=13;break;case 10:i.prev=10,i.t0=i.catch(5),$e06N2.default("[BBPrebid] Error sending prebid events",i.t0);case 13:case"end":return i.stop()}}),i,null,[[5,10]])})))()}},{key:"_checkScriptLoaded",value:function(){var e;if(!1!==this._scriptBlocked&&(this._scriptBlocked=!(null===(e=window[this.pbjsNamespace])||void 0===e?void 0:e.libLoaded),this._scriptBlocked))for(var t in this._bidCallbacks)"function"==typeof this._bidCallbacks[t]&&this._bidCallbacks[t]([]),delete this._bidCallbacks[t]}},{key:"addAdUnits",value:function(){var e=this;window[this.pbjsNamespace].que.push((function(){var t,i,n=e;null===(t=e._initPromise)||void 0===t||null===(i=t.then)||void 0===i||i.call(t,(function(){for(var e in n._adUnits){var t,i=n._adUnits[e];if(null==i||null===(t=i.bids)||void 0===t?void 0:t.length){var a=!0,s=!1,o=void 0;try{for(var r,l=i.bids[Symbol.iterator]();!(a=(r=l.next()).done);a=!0){var u=r.value;u.alias&&u.code&&(window[n.pbjsNamespace].aliasBidder(u.alias.replace(/_(in|out)stream$/,""),u.code),delete u.alias,delete u.code)}}catch(e){s=!0,o=e}finally{try{a||null==l.return||l.return()}finally{if(s)throw o}}}}for(var d in n._adUnits){var c=n._adUnits[d];window[n.pbjsNamespace].removeAdUnit(c.code),window[n.pbjsNamespace].addAdUnits(c)}}))}))}},{key:"getBids",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,i=this;if(this._scriptBlocked)e([]);else{var n=Math.uuid();this._bidCallbacks[n]=e,PREBID_AUCTION_ID_TO_BB_METADATA_MAPPING[n]={publication:this._publication,contextType:this._context.type,contextCode:this._context.code,auctionCode:Object.keys(this._adUnits)[0]||""},window[this.pbjsNamespace].que.push((function(){var e,a,s=i;null===(e=i._initPromise)||void 0===e||null===(a=e.then)||void 0===a||a.call(e,(function(){var e=s;window[s.pbjsNamespace].requestBids({bidsBackHandler:function(i){var a=e,s=[];for(var o in i){var r,l=i[o].bids||[];(r=s).push.apply(r,$jxjxM.default(l))}var u=s.filter((function(e){var t,i,n,a;return e&&(e.vastXml||e.vastUrl||(null===(t=e.adResponse)||void 0===t||null===(i=t.ad)||void 0===i||null===(n=i.rtb)||void 0===n||null===(a=n.video)||void 0===a?void 0:a.content))})).sort((function(e,t){return e.cpm>t.cpm||e.cpm===t.cpm&&e.timeToRespond<t.timeToRespond?-1:1})).map((function(e){if(e.adUnit=a._adUnits[e.adUnitCode],a._adServerUrl){var t=window[a.pbjsNamespace].adServers.dfp.buildVideoUrl({adUnit:e.adUnit,url:a._adServerUrl,bid:e,params:{output:"vast",ad_rule:"0"}});$e06N2.default("[BBPrebid] mapped bid to url: "+t),e.vastXml=$cYwG5.wrapVastUrlInXml(t),e.selfWrappedVast=!0}else e.vastXml||(e.vastUrl?(e.vastXml=$cYwG5.wrapVastUrlInXml(e.vastUrl),e.selfWrappedVast=!0):e.vastXml=e.adResponse.ad.rtb.video.content);return e})).slice(0,t);if(!u.length&&e._adServerUrl){var d={};$e06N2.default("[BBPrebid] no bids, set url to: "+e._adServerUrl),d.vastXml=$cYwG5.wrapVastUrlInXml(e._adServerUrl),d.selfWrappedVast=!0,u.push(d)}e._adUnitCodes=[],"function"==typeof e._bidCallbacks[n]&&(e._bidCallbacks[n](u),delete e._bidCallbacks[n])},adUnitCodes:s._adUnitCodes,auctionId:n})}))}))}}}]),BBPrebid}()})),parcelRequire.register("bbFoI",(function(e,t){$parcel$export(e.exports,"default",(function(){return c})),parcelRequire("lDGnc");var i,n=parcelRequire("7CnHN"),a=parcelRequire("eamhc"),s=parcelRequire("gCaES"),o=parcelRequire("eLoLc"),r=parcelRequire("3DsR2"),l=parcelRequire("e06N2"),u=parcelRequire("gDCxw");parcelRequire("h33Eq");var d=["[CONTENTCAT]","[PLAYBACKMETHODS]","[STOREID]","[STOREURL]","[CACHEBUSTING]","[TIMESTAMP]","[ADCATEGORIES]","[ADCOUNT]","[ADTYPE]","[BLOCKEDADCATEGORIES]","[BREAKMAXADLENGTH]","[BREAKMAXADS]","[BREAKMAXDURATION]","[BREAKMINADLENGTH]","[BREAKPOSITION]","[CONTENTPLAYHEAD]","[MEDIAPLAYHEAD]","[PLACEMENTTYPE]","[UNIVERSALADID]","[CLIENTUA]","[DEVICEIP]","[DEVICEUA]","[IFA]","[IFATYPE]","[LATLONG]","[SERVERSIDE]","[SERVERUA]","[APPBUNDLE]","[DOMAIN]","[PAGEURL]","[APIFRAMEWORKS]","[CLICKTYPE]","[EXTENSIONS]","[MEDIAMIME]","[OMIDPARTNER]","[PLAYERCAPABILITIES]","[VASTVERSIONS]","[VERIFICATIONVENDORS]","[ADPLAYHEAD]","[ADSERVINGID]","[ASSETURI]","[CONTENTID]","[CONTENTURI]","[INVENTORYSTATE]","[PLAYERSIZE]","[PLAYERSTATE]","[PODSEQUENCE]","[CLICKPOS]","[ERRORCODE]","[REASON]","[GDPRCONSENT]","[LIMITADTRACKING]","[REGULATIONS]"],c=function(){"use strict";function e(t,i){n.default(this,e),this._init(t,i)}return a.default(e,[{key:"_api",get:function(){return this._apiInternal||r.default.getService(this._opts.playerAliasOrId).getInstance("PublicAPI")}},{key:"_executer",get:function(){return this._executerInternal||r.default.getService(this._opts.playerAliasOrId).getInstance("Executer")}},{key:"_init",value:function(e,t){var i,n,a;for(var s in this.$element=e,this._opts=t,this.$wrapper=null===(i=this.$element)||void 0===i?void 0:i.closest(".bb_wrapper"),this.reset(),this.eventCallbacks={bb_playout_changed:this._onPlayoutChanged.bind(this)},this.eventCallbacks)null===(n=this.$wrapper)||void 0===n||n.on(s,this.eventCallbacks[s]);null===(a=r.default.getService(this._opts.playerAliasOrId).getInstance("ConsentFrameworkSupport"))||void 0===a||a.getCmpData(this._onCmpDataSuccessCallback.bind(this),this._onCmpDataErrorCallback.bind(this)),this._apiInternal=r.default.getService(this._opts.playerAliasOrId).getInstance("PublicAPI")||null,this._executerInternal=r.default.getService(this._opts.playerAliasOrId).getInstance("Executer")||null}},{key:"_onPlayoutChanged",value:function(e,t){if(null==t?void 0:t.playoutData){var i=t.playoutData;this.updateDeviceInfo(i)}}},{key:"updateDeviceInfo",value:function(e){e&&(e.adsystem_rdid&&(this._uuid=this._rdid=e.adsystem_rdid),e.adsystem_idtype&&(this._idtype=e.adsystem_idtype),void 0!==e.adsystem_is_lat&&(this._is_lat="true"===e.adsystem_is_lat||1===parseInt(e.adsystem_is_lat,10)),e.adsystem_buid&&(this._buid=e.adsystem_buid))}},{key:"_onCmpDataSuccessCallback",value:function(e,t){this._consentGdprApplies=e&&e.gdprApplies?1:0,this._consentCmpVersion=t,1===t?this._consentString=e&&e.consentData?e.consentData:"":2===t&&(this._consentString=e&&e.tcString?e.tcString:"")}},{key:"_onCmpDataErrorCallback",value:function(){l.default("[AdMacroService] Error getting CMP data")}},{key:"reset",value:function(){this._uuid=u.getCookie("uuid")||Math.uuid(),this._rdid=null,this._idtype=null,this._is_lat=!1,this._buid=null,this._consentGdprApplies=0,this._consentCmpVersion=0,this._consentString=""}},{key:"resolveMacrosRecursively",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this;return s.default($parcel$interopDefault(o).mark((function n(){var a,r,l,u;return $parcel$interopDefault(o).wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(a="object"==typeof e,r=Array.isArray(e),a||r){n.next=11;break}if("string"!=typeof e){n.next=10;break}return n.next=6,i.resolveMacro(e,t);case 6:return l=n.sent,n.abrupt("return",(null==l?void 0:l.doNotReplace)?e:l);case 10:return n.abrupt("return",e);case 11:if(!r){n.next=17;break}return n.next=14,Promise.all(e.map(function(){var e=s.default($parcel$interopDefault(o).mark((function e(n){return $parcel$interopDefault(o).wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,i.resolveMacrosRecursively(n,t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 14:return n.abrupt("return",n.sent);case 17:n.t0=regeneratorRuntime.keys(e);case 18:if((n.t1=n.t0()).done){n.next=25;break}return u=n.t1.value,n.next=22,i.resolveMacrosRecursively(e[u],t);case 22:e[u]=n.sent,n.next=18;break;case 25:return n.abrupt("return",e);case 26:case"end":return n.stop()}}),n)})))()}},{key:"findAndResolveMacros",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this;return s.default($parcel$interopDefault(o).mark((function n(){var a,s,r,l,u,d,c,h,p,_,m;return $parcel$interopDefault(o).wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!e.startsWith("[aps:")){n.next=4;break}return n.next=3,i._resolveAPSMacro(e);case 3:return n.abrupt("return",n.sent);case 4:if(a=e.match(/%%[^%]*%%/g)||[],s=e.match(/(\[[^[]+?\])/g)||[],r=a.concat(s),l=!0,u=!1,d=void 0,!(null==r?void 0:r.length)){n.next=34;break}n.prev=9,c=r[Symbol.iterator]();case 11:if(l=(h=c.next()).done){n.next=20;break}return p=h.value,n.next=15,i.resolveMacro(p,t);case 15:(null==(_=n.sent)?void 0:_.doNotReplace)||(m=p.startsWith("[js2:"),e=e.replaceAll(p,m?_:encodeURIComponent(_)));case 17:l=!0,n.next=11;break;case 20:n.next=26;break;case 22:n.prev=22,n.t0=n.catch(9),u=!0,d=n.t0;case 26:n.prev=26,n.prev=27,l||null==c.return||c.return();case 29:if(n.prev=29,!u){n.next=32;break}throw d;case 32:return n.finish(29);case 33:return n.finish(26);case 34:return n.abrupt("return",e);case 35:case"end":return n.stop()}}),n,null,[[9,22,26,34],[27,,29,33]])})))()}},{key:"resolveMacro",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this;return s.default($parcel$interopDefault(o).mark((function n(){var a;return $parcel$interopDefault(o).wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(a={doNotReplace:!0},!e.startsWith("%%")){n.next=5;break}a=i._resolvePercentMacro(e),n.next=17;break;case 5:if(!/\[.+\]/.test(e)){n.next=17;break}if(!t||!e.startsWith("[js:")&&!e.startsWith("[js2:")){n.next=10;break}a=i._resolveJSMacro(e),n.next=17;break;case 10:if(!e.startsWith("[aps:")){n.next=16;break}return n.next=13,i._resolveAPSMacro(e);case 13:a=n.sent,n.next=17;break;case 16:a=i._resolveBracketMacro(e);case 17:return n.abrupt("return",a);case 18:case"end":return n.stop()}}),n)})))()}},{key:"_resolvePercentMacro",value:function(e){var t,i=e.replaceAll("%%","");switch(i){case"APP_BUNDLE_ID":t=this._buid;break;case"ADVERTISING_IDENTIFIER_PLAIN":t=this._uuid;break;case"ADVERTISING_IDENTIFIER_TYPE":t=this._idtype;break;case"ADVERTISING_IDENTIFIER_IS_LAT":t=this._is_lat?"1":"0";break;default:var n;t=null===(n=this._api)||void 0===n?void 0:n.getPlayoutData()["macro_".concat(i)]}return t||""}},{key:"_resolveBracketMacro",value:function(e){var t,i,n;if(d.includes(e))return{doNotReplace:!0};var a,s=null===(t=e.match(/\[(.+)\]/))||void 0===t?void 0:t[1];if(s.startsWith("mediaclip_"))a=null===(i=this._api)||void 0===i?void 0:i.getClipData()[s.split("mediaclip_")[1]];else if(s.startsWith("playout_"))a=null===(n=this._api)||void 0===n?void 0:n.getPlayoutData()[s.split("playout_")[1]];else switch(s.toLowerCase()){case"url":a=window.location.protocol+"//"+window.location.hostname+window.location.pathname;break;case"deeplink":case"description_url":var o;a=null===(o=this._api)||void 0===o?void 0:o.getDeeplink();break;case"correlator":a=this._uuid;break;case"timestamp":case"random":a=Date.now().toString();break;case"playerwidth":var r;a=((null===(r=this.$wrapper)||void 0===r?void 0:r.width())||768).toString();break;case"playerheight":var l;a=((null===(l=this.$wrapper)||void 0===l?void 0:l.height())||432).toString();break;case"consent_string":a=this._consentString;break;case"gdpr_applies":a=this._consentGdprApplies;break;case"cmp_version":a=this._consentCmpVersion}return a||""}},{key:"_resolveAPSMacro",value:function(e){var t=this;return s.default($parcel$interopDefault(o).mark((function n(){var a,s,r,l,u,d,c,h;return $parcel$interopDefault(o).wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!((a=e.replace(/^\[aps:/,"").replace(/\]$/,"").split("|")).length<3)){n.next=3;break}return n.abrupt("return","");case 3:s={},r={0:"pubID",1:"slotID",2:"slotSize",3:"adServerUrl",4:"targetingKey",5:"targetingSeparator",6:"targetingOperator"},l=0;case 6:if(!(l<a.length)){n.next=13;break}if(!(l>=Object.keys(r).length)){n.next=9;break}return n.abrupt("break",13);case 9:s[r[l]]=a[l];case 10:l++,n.next=6;break;case 13:if(s.slotSize=s.slotSize.split("x").map((function(e){return parseInt(e)})),!s.adServerUrl){n.next=18;break}return n.next=17,t.findAndResolveMacros(s.adServerUrl);case 17:s.adServerUrl=n.sent;case 18:if(i){n.next=30;break}return n.prev=19,n.next=22,parcelRequire("4CAKQ");case 22:u=n.sent,"function"==typeof(d=u.default)&&(i=d),n.next=30;break;case 27:return n.prev=27,n.t0=n.catch(19),n.abrupt("return","");case 30:return c=new i(t.$element,t._opts,s),n.next=33,c.getVastUrl();case 33:return h=n.sent,n.abrupt("return",h||"");case 35:case"end":return n.stop()}}),n,null,[[19,27]])})))()}},{key:"_resolveJSMacro",value:function(e){var t,i=e.match(/\[js2?:.*\]/gi);if(null==i?void 0:i.length){var n,a=i[0].replace(/\[js2?:/,"").replace(/(.*)\]$/,"$1");t=null===(n=this._executer)||void 0===n?void 0:n.execute(a)}return t||""}},{key:"exit",value:function(){for(var e in this.eventCallbacks)this.$wrapper.off(e,this.eventCallbacks[e])}}]),e}()})),parcelRequire.register("4CAKQ",(function(e,t){e.exports=parcelRequire("lrJsf")(parcelRequire("lKFlT").getBundleURL("5H5Jn")+parcelRequire("l8sJU").resolve("fwBR9")).then((function(){return parcelRequire("lGW5I")}))})),parcelRequire.register("9B1gs",(function(e,t){$parcel$export(e.exports,"default",(function(){return l})),parcelRequire("lDGnc");var i=parcelRequire("7CnHN"),n=parcelRequire("eamhc");parcelRequire("6JR1F");var a=parcelRequire("hGJI5"),s=parcelRequire("3DsR2"),o=parcelRequire("cYwG5"),r=parcelRequire("8ukkF"),l=function(){"use strict";function e(t,n){i.default(this,e),this.$element=t,this._opts=n,this._pos=null,this._posInarticleSuccess=!1,this._hasCompanionAd=!1;var r=s.default.getService(this._opts.playerAliasOrId).getInstance("Detections");if(this._isMobileDevice=!!(null==r?void 0:r.isMobileDevice),this.$element){this.$ctaLayer=this.$element.find(".bb-commercial-layer .bb-cta-layer"),this.$cta_style=$parcel$interopDefault(a)("<style></style>"),this._ctaBgColor="000000",this.$cta_style.text(".bb-commercial-layer .bb-cta-layer .bb-dimmed { background: "+o.rgbaCssColor(this._ctaBgColor,.4)+"; transition: background 0.3s linear; } .bb-commercial-layer .bb-cta-layer .bb-opaque { background: "+o.rgbaCssColor(this._ctaBgColor,1)+"; transition: background 0.3s linear; }"),this.$ctaLayer.append(this.$cta_style),this.$cta=$parcel$interopDefault(a)('<div style="display:table-cell; height:100%;"><button class="bb-dimmed" style="border:solid 2px white; color:white; border-radius:16px; padding-right:1em; padding-left:1em; vertical-align:middle; letter-spacing:0.1em; font-family:Ubuntu, sans-serif; text-shadow:1px 1px 1px black;">LEARN MORE</button></div>'),this.$ctaLayer.css({display:"none"}).append(this.$cta),this._ctaRescale();var l=this._onResized.bind(this),u=this.hide.bind(this);for(var d in this._eventBindings={bb_resized:l,bb_content_resized:l,bb_fullscreen_change:l,bb_adsystem_metadata:this._onAdSystemMetadata.bind(this),bb_adsystem_skipped:u,bb_adsystem_finished:u,bb_adsystem_failed:u,bb_adsystem_noad:u},r&&!this._isMobileDevice&&(this._eventBindings.mouseover=this._onMouseOver.bind(this),this._eventBindings.mouseout=this._onMouseOut.bind(this)),this._eventBindings)this.$element.on(d,this._eventBindings[d])}}return n.default(e,[{key:"setPosition",value:function(e){this._pos=e,this._showingOnExitScreen=this._checkShowExitScreen()}},{key:"setPosInarticleSuccess",value:function(e){this._posInarticleSuccess=e}},{key:"setHasCompanionAd",value:function(e){this._hasCompanionAd=e}},{key:"showMidPlay",value:function(){this.$ctaLayer.css({display:"table",backgroundColor:"none"}),this._ctaRescale()}},{key:"_checkShowExitScreen",value:function(){if(this._pos===r.default.PosType.EXITSCREEN&&this._posInarticleSuccess&&(this._ctaShowOnExitScreen||""===this._ctaShowOnExitScreen&&!this._hasCompanionAd)){var e={display:"table",backgroundColor:this._ctaExitScreenShade?o.rgbaCssColor(this._ctaHighColor,.75):"none"};return this.$ctaLayer.css(e),this._ctaRescale(),!0}return!1}},{key:"hide",value:function(){this._showingOnExitScreen||this.$ctaLayer.css({display:"none"})}},{key:"updateAdUnitPlayoutSettings",value:function(e){void 0!==e.ctaMidplay&&(this._ctaShowMidplay=e.ctaMidplay&&e.ctaMidplay.match(/^show/i),e.ctaMidplay&&e.ctaMidplay.match(/^show_nonVPAID/i)&&(this._ctaShowMidplay="")),void 0!==e.ctaMidplayPosition&&(this._ctaMidplayPosition=e.ctaMidplayPosition),void 0!==e.ctaExitScreen&&(this._ctaShowOnExitScreen=e.ctaExitScreen&&e.ctaExitScreen.match(/^show/i),e.ctaExitScreen&&e.ctaExitScreen.match(/^show_nonCompanion/i)&&(this._ctaShowOnExitScreen="")),void 0!==e.ctaHighlightColor&&(this._ctaHighColor=o.sanitizeCssColor(e.ctaHighlightColor),this.$cta.find("button").css("color",this._ctaHighColor),this.$cta.find("button").css("border-color",this._ctaHighColor)),void 0!==e.ctaBackgroundColor&&(this._ctaBgColor=o.sanitizeCssColor(e.ctaBackgroundColor),this.$cta_style.text(".bb-commercial-layer .bb-cta-layer .bb-dimmed { background: "+o.rgbaCssColor(this._ctaBgColor,.4)+"; transition: background 0.3s linear; } .bb-commercial-layer .bb-cta-layer .bb-opaque { background: "+o.rgbaCssColor(this._ctaBgColor,1)+"; transition: background 0.3s linear; }")),void 0!==e.ctaExitScreenShade&&(this._ctaExitScreenShade=e.ctaExitScreenShade&&e.ctaExitScreenShade.match(/^true/i)),void 0!==e.ctaText&&this.$cta.find("button").text(e.ctaText.toUpperCase())}},{key:"_onAdSystemMetadata",value:function(e,t){var i,n,a=(null==t?void 0:t.adProperties)&&("application/javascript"===t.adProperties.adContentType||"application/x-shockwave-flash"===t.adProperties.adContentType),o=null==t||null===(i=t.adProperties)||void 0===i?void 0:i.sdk;if(this._clickThroughUrl=(null==t||null===(n=t.adProperties)||void 0===n?void 0:n.clickThroughUrl)||null,this._clickThroughUrl){var l=this,u=this.$cta.find("button");u.css("pointer-events","auto"),u.off("click"),u.on("click",(function(){var e=s.default.getService(l._opts.playerAliasOrId).getInstance("PublicAPI");e?e.doOpenUrl(l._clickThroughUrl,"_blank",!0):window.open(l._clickThroughUrl,"_blank","noopener")}))}var d=[r.default.PosType.PREROLL,r.default.PosType.POSTROLL,r.default.PosType.INARTICLE].includes(this._pos);d&&this._ctaShowMidplay&&"GOOGLE_IMA"===o&&this._isMobileDevice?(this.showMidPlay(),this.$cta.find("button").removeClass("bb-dimmed").addClass("bb-opaque")):d&&this._ctaShowMidplay||d&&""===this._ctaShowMidplay&&!a?this.showMidPlay():!this._outstreamRefresh&&this._pos===r.default.PosType.EXITSCREEN&&this._posInarticleSuccess&&this._ctaShowOnExitScreen?this._showingOnExitScreen=this._checkShowExitScreen():this._outstreamRefresh||this._pos!==r.default.PosType.EXITSCREEN||!this._posInarticleSuccess||""!==this._ctaShowOnExitScreen||this._hasCompanionAd?this.hide():this._showingOnExitScreen=this._checkShowExitScreen(),this._ctaRescale()}},{key:"_onAdSystemSkippedFinishedFailedNoAdNoAd",value:function(){this.$ctaLayer.css({display:"none"})}},{key:"_onResized",value:function(){this._ctaRescale()}},{key:"_onMouseOver",value:function(){this.$cta.find("button").removeClass("bb-dimmed").addClass("bb-opaque")}},{key:"_onMouseOut",value:function(){this.$cta.find("button").removeClass("bb-opaque").addClass("bb-dimmed")}},{key:"_ctaRescale",value:function(){var e,t=this.$ctaLayer.width();e=t>=1280?"XL":t>=600?"L":t>=480?"M":t>=300?"S":t>=220?"XS":"thumb",this._pos===r.default.PosType.EXITSCREEN?(this.$cta.css({verticalAlign:"middle",textAlign:"center"}),"XL"===e?this.$cta.find("button").css({height:"98px",margin:"auto",fontSize:"36pt",borderRadius:"49px",borderWidth:"2px"}):"L"===e||"M"===e?this.$cta.find("button").css({height:"44px",margin:"auto",fontSize:"16pt",borderRadius:"22px",borderWidth:"2px"}):this.$cta.find("button").css({height:"32px",margin:"auto",fontSize:"12pt",borderRadius:"16px",borderWidth:"2px"})):(this.$cta.css({verticalAlign:"top",textAlign:"top_left"===this._ctaMidplayPosition?"left":"right"}),"XL"===e?this.$cta.find("button").css({height:"44px",margin:"20px",fontSize:"16pt",borderRadius:"22px",borderWidth:"1px"}):"L"===e||"M"===e?this.$cta.find("button").css({height:"32px",margin:"10px",fontSize:"12pt",borderRadius:"16px",borderWidth:"1px"}):this.$cta.find("button").css({height:"24px",margin:"5px",fontSize:"12pt",borderRadius:"12px",borderWidth:"1px"}),"BB_IMA"!==this._adSystemSdk&&this._isMobileDevice&&(this.$cta.css({verticalAlign:"top",textAlign:"right"}),this.$cta.find("button").css({margin:"2px"})))}},{key:"exit",value:function(){if(this.$element)for(var e in this._eventBindings)this.$element.off(e,this._eventBindings[e])}}]),e}()})),parcelRequire.register("7DHuI",(function(e,t){$parcel$export(e.exports,"default",(function(){return l})),parcelRequire("lDGnc");var i=parcelRequire("7CnHN"),n=parcelRequire("eamhc");parcelRequire("6JR1F");var a=parcelRequire("hGJI5"),s=parcelRequire("cYwG5"),o=parcelRequire("8ukkF"),r='<a style="display:block;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:1.5em;text-decoration:none"></a>',l=function(){"use strict";function e(t,n){if(i.default(this,e),this.$element=t,this._opts=n,this._pos=null,this._posInarticleSuccess=!1,this._hasCompanionAd=!1,this._placeholderText=null,this._gptLoadPromise=null,this._gpt=null,this.$element){this.$placeholderLayer=this.$element.find(".bb-commercial-layer .bb-placeholder-layer"),this.$placeholder=$parcel$interopDefault(a)(r).css({backgroundColor:"#808080",color:"#000000"}),this.$placeholderLayer.css({display:"none"}).append(this.$placeholder),this._onLearnMoreClickedBound=this._onLearnMoreClicked.bind(this);var s=this._showHide.bind(this);for(var o in this._eventBindings={bb_adsystem_started:this._onAdSystemStarted.bind(this),bb_adsystem_skipped:s,bb_adsystem_finished:s,bb_adsystem_failed:s,bb_adsystem_noad:s},this._eventBindings)this.$element.on(o,this._eventBindings[o])}}return n.default(e,[{key:"setPosition",value:function(e){this._pos=e,this._showHide()}},{key:"setPosInarticleSuccess",value:function(e){this._posInarticleSuccess=!1}},{key:"hasCompanionAd",value:function(){return this._hasCompanionAd}},{key:"_showHide",value:function(){if(this._pos===o.default.PosType.INARTICLE||this._posInarticleSuccess||this._pos===o.default.PosType.EXITSCREEN?(this._pos===o.default.PosType.EXITSCREEN&&(this._ctaShowOnExitScreen||""===this._ctaShowOnExitScreen&&!this._hasCompanionAd)?this._hasCompanionAd||this.$placeholder.text(""):this.$placeholder.text()||this.$placeholder.text(this._placeholderText),this.$placeholderLayer.css({display:"block"})):this.$placeholderLayer.css({display:"none"}),this._pos===o.default.PosType.EXITSCREEN&&"true"!==this._opts.playoutData.hidePlayerOnEnd&&this._pbSettings){var e=this._opts.playerAliasOrId.replace(/https?:\/{0,2}/,"").replace(/\./g,"_")+"/"+Math.random().toString().substring(2);if("GPT"===this._pbSettings.type)this._loadGPTSlot(this._pbSettings,e);else if("HTML"===this._pbSettings.type&&this._pbSettings.html){this.$placeholder.css({display:"none"});var t=document.createElement("iframe");t.id=e,t.srcdoc='<!DOCTYPE html><html><head><meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta charset="utf-8" /><style>html, body { margin: 0; padding: 0; } body { overflow: hidden; }</style></head><body>'.concat(this._pbSettings.html,"</body></html>"),t.width="100%",t.height="100%",t.style.border="none",t.style.pointerEvents="all",t.allowFullscreen="",t.allow="",this.$placeholderLayer.append(t),this.$placeholder.css({display:"none"}),this.$placeholderLayer.css({backgroundColor:"transparent"}),this.$element.css({backgroundColor:"transparent"}),this.$element.find(".bb-skin-layer").css({display:"none"})}}}},{key:"_getCompanionAd",value:function(e){var t=null;try{var i=new window.google.ima.CompanionAdSelectionSettings;i.resourceType=window.google.ima.CompanionAdSelectionSettings.ResourceType.ALL,i.creativeType=window.google.ima.CompanionAdSelectionSettings.CreativeType.ALL,i.sizeCriteria=window.google.ima.CompanionAdSelectionSettings.SizeCriteria.IGNORE,t=e.getCompanionAds(1,1,i)}catch(e){}if(t&&t.length>0){var n=t[0],a=null;try{a=n.getContent()}catch(e){}return!!a&&(a+='<style>\n\t\t\t\t\t.bb-placeholder-layer div, .bb-placeholder-layer a, .bb-placeholder-layer img {\n\t\t\t\t\t\twidth: 100% !important; pointer-events: all;\n\t\t\t\t\t}\n\t\t\t\t\t.bb-placeholder-layer div, .bb-placeholder-layer a {\n\t\t\t\t\t\theight: 100% !important;\n\t\t\t\t\t}\n\t\t\t\t\t.bb-placeholder-layer img {\n\t\t\t\t\t\theight: auto !important;\n\t\t\t\t\t}\n\t\t\t\t\t.overlayContainer > img {\n\t\t\t\t\t\tposition: absolute;\n\t\t\t\t\t\tleft:50%;\n\t\t\t\t\t\ttop:50%;\n\t\t\t\t\t\ttransform: translate(-50%,-50%);\n\t\t\t\t\t}\n\t\t\t\t\ta[href*="whythisad"], a[href*="whythisad"] > img {\n\t\t\t\t\t\theight: initial !important;\n\t\t\t\t\t\twidth: initial !important;\n\t\t\t\t\t}\n\t\t\t\t</style>')}return!1}},{key:"_onAdSystemStarted",value:function(e,t){this._clickThroughUrl=t&&t.adProperties&&t.adProperties.clickThroughUrl?t.adProperties.clickThroughUrl:null;var i=this._getCompanionAd(t.adProperties.ad);this.$placeholder&&(i&&t&&t.adProperties&&t.adProperties.ad?(this.$placeholder.html(i),this._hasCompanionAd=!0):(this.$placeholder.html(r),this._hasCompanionAd=!1),this._clickThroughUrl&&(this.$placeholder.attr("href",this._clickThroughUrl),this.$placeholder.attr("target","_blank"),this.$placeholder.attr("rel","noopener"),this.$placeholder.css("pointer-events","auto"),this.$placeholder.on("click",this._onLearnMoreClickedBound)))}},{key:"_onLearnMoreClicked",value:function(){this.$element.triggerHandler("bb_learnmore_clicked")}},{key:"_loadGPT",value:function(){var e=this;this._gptLoadPromise||(this._gptLoadPromise=parcelRequire("cWDRG").then((function(t){var i=t.default;e._gpt=new i})))}},{key:"_loadGPTSlot",value:function(e,t){var i=this;(null==e?void 0:e.path)&&e.sizing&&(this._gptLoadPromise||this._loadGPT(),this._gptLoadPromise.then((function(){var n=i,s=e.sizing,o=document.createElement("div");o.id=t;var r={position:"absolute",left:"50%",top:"50%",transform:"translate(-50%, -50%)",transformOrigin:"50%",pointerEvents:"all",visibility:"hidden"};if(Array.isArray(s)&&s.length)if(s.some((function(e){return"fluid"===e})))r.width="100%",r.height="auto";else if(2!==s.length||isNaN(parseInt(s[0]))||isNaN(parseInt(s[1]))){if(Array.isArray(s[0])){var l=-1,u=-1,d=-1,c=!0,h=!1,p=void 0;try{for(var _,m=s[Symbol.iterator]();!(c=(_=m.next()).done);c=!0){var f=_.value;if(Array.isArray(f)&&2===f.length){var v=parseInt(f[0]),g=parseInt(f[1]);if(!isNaN(v)&&!isNaN(g)){var y=v*g;y>l&&(l=y,u=v,d=g)}}}}catch(e){h=!0,p=e}finally{try{c||null==m.return||m.return()}finally{if(h)throw p}}-1!==u&&1!==d?(r.width="".concat(u,"px"),r.height="".concat(d,"px")):(r.width="100%",r.height="auto")}}else r.width="".concat(s[0],"px"),r.height="".concat(s[1],"px");else r.width="100%",r.height="auto";$parcel$interopDefault(a)(o).css(r),i.$placeholderLayer.append(o);var b=!1;i._gpt.defineSlot(e.path,s,t),i._gpt.addEventListener(t,"slotRenderEnded",(function(e){b=!1===(null==e?void 0:e.isEmpty)}),!1),i._gpt.addEventListener(t,"slotOnload",(function(){var e=n,t=function(){var t=e;requestAnimationFrame((function(){var e,i=(null===(e=o.firstChild)||void 0===e?void 0:e.firstChild)||o,n=t.$element.width(),a=t.$element.height(),s=i.offsetWidth,r=i.offsetHeight,l=0===n?0:s/n,u=0===a?0:r/a,d=l>u?l:u,c=1/d;d>1&&(o.style.transform="translate(-50%, -50%) scale(".concat(c,")")),o.style.visibility="visible"}))};setTimeout((function(){b&&(e.$element.on("bb_resized",t),e.$element.on("bb_returned_from_sticky_position",t),t())}))}),!1),i._gpt.displaySlot(t),e.refreshInterval&&i._gpt.setupSlotRefresh(t,e.refreshInterval)})))}},{key:"updateAdUnitPlayoutSettings",value:function(e){void 0!==e.bgColor&&(this._bgColor=s.sanitizeCssColor(e.bgColor),this.$placeholder.css("background-color",this._bgColor)),void 0!==e.placeholderTextColor&&this.$placeholder.css("color",s.sanitizeCssColor(e.placeholderTextColor)),void 0!==e.placeholderText&&(this._placeholderText=e.placeholderText),void 0!==e.placeholderShowReplay&&(this._placeholderShowReplay="true"===e.placeholderShowReplay),void 0!==e.ctaExitScreen&&(this._ctaShowOnExitScreen=e.ctaExitScreen&&e.ctaExitScreen.match(/^show/i),e.ctaExitScreen&&e.ctaExitScreen.match(/^show_nonCompanion/i)&&(this._ctaShowOnExitScreen="")),e.placeholderPassbackSettings&&(this._pbSettings=e.placeholderPassbackSettings,"GPT"===this._pbSettings.type&&this._loadGPT())}},{key:"exit",value:function(){var e;if(this.$element)for(var t in this._eventBindings)this.$element.off(t,this._eventBindings[t]);null===(e=this.$placeholder)||void 0===e||e.off("click",this._onLearnMoreClickedBound)}}]),e}()})),parcelRequire.register("cWDRG",(function(e,t){e.exports=parcelRequire("lrJsf")(parcelRequire("lKFlT").getBundleURL("5H5Jn")+parcelRequire("l8sJU").resolve("iG6mx")).then((function(){return parcelRequire("9pjMR")}))})),parcelRequire.register("4fMpb",(function(e,t){$parcel$export(e.exports,"default",(function(){return d})),parcelRequire("lDGnc");var i=parcelRequire("gCaES"),n=parcelRequire("eLoLc");parcelRequire("e06N2");var a,s=parcelRequire("iX08o"),o=parcelRequire("bbFoI"),r=parcelRequire("3DsR2"),l=parcelRequire("k4rzQ"),u=parcelRequire("DxDBi"),d=function(e,t){this._init(e,t)};d.prototype._init=function(e,t){this._opts=t,this._baseUrl="https://bbvms.com",this._isCustomHostname=!1,this._publicationLabel="",this._scheduleId=0,this._scheduleCode="0",this._scheduleMacros=null,this._clipDuration=0,this._clipId=0,this._disabled="false"===t.playoutData.commercials,this._clipDisabled=!1,this._adType="ad-scheduling",this._adPosition="vmap",this._adRequestUrl=null,this._adBreakItemCount={preroll:0,midroll:0,postroll:0},this._perPositionAdCounter_clip={},this._adMacroHelper=new o.default(e,t),this._finishedPhases=[];var i=r.default.getService(t.playerAliasOrId),n=t.embedData||null;void 0!==(null==n?void 0:n.baseurl)&&(this._baseUrl=null==n?void 0:n.baseurl);var a=t.publicationData||null;(null==a?void 0:a.baseurl)&&(this._baseUrl=null==a?void 0:a.baseurl.toLowerCase(),this._isCustomHostname=-1===this._baseUrl.indexOf("bbovp.com")&&-1===this._baseUrl.indexOf("bbvms.com")&&-1===this._baseUrl.indexOf("mainroll.com"),this._publicationLabel=t.playoutData.publication||a.name);var l,d=t.adSchedulingData||null;(void 0!==(null==d?void 0:d.scheduleId)&&(this._scheduleId=d.scheduleId),void 0!==(null==d?void 0:d.scheduleCode)?this._scheduleCode=d.scheduleCode:this._scheduleCode=String(this._scheduleId),(null==d?void 0:d.adBreakItemCount)&&(this._adBreakItemCount=d.adBreakItemCount),this._disabled="false"===t.playoutData.commercials,this._scheduleMacros=null==d?void 0:d.macros,this._auctionMapping=null==d?void 0:d.auctionMapping,this._auctionMapping&&(this._callbackScheduler=null==i?void 0:i.getInstance("CallbackScheduler"),this._prebidCache=new u.default(e,t),this._prebidCacheSuffix=Math.random().toString(36).substring(2),this._auctions=null==d?void 0:d.auctions),this._playoutController=null==i?void 0:i.getInstance("PlayoutController"),this.$element=null,void 0!==e&&null!=e)&&(this.$element=e,t.msasPos=null===(l=this._adPosition)||void 0===l?void 0:l.toUpperCase(),this._headController=new s.default(this.$element,t),this._headController.setLoadStartCallback(this._loadStartCallback.bind(this)),this._headController.setLoadedDataCallback(this._loadedDataCallback.bind(this)),this._headController.setCanPlayCallback(this._canPlayCallback.bind(this)),this._headController.setStartedCallback(this._startedCallback.bind(this)),this._headController.setEndedCallback(this._endedCallback.bind(this)),this._headController.setClickCallback(this._clickCallback.bind(this)),this._headController.setQuartileCallback(this._quartileCallback.bind(this)),this._headController.setRequestCallback(this._requestCallback.bind(this)),this._headController.setLoadedAdListMetadataCallback(this._loadedAdListMetadataCallback.bind(this)),this._onPlayoutChangedBound=this._onPlayoutChanged.bind(this),this._onPhaseChangedBound=this._onPhaseChanged.bind(this),this.$element.on("bb_playout_changed",this._onPlayoutChangedBound),this.$element.on("bb_phase_change",this._onPhaseChangedBound))},d.prototype.exit=function(){var e,t,i;return this._headController=null===(e=this._headController)||void 0===e?void 0:e.exit(),null===(t=this.$element)||void 0===t||t.off("bb_playout_changed",this._onPlayoutChangedBound),null===(i=this.$element)||void 0===i||i.off("bb_phase_change",this._onPhaseChangedBound),null},d.prototype.setClipData=function(e){(null==e?void 0:e.clipId)&&this._clipId!==e.clipId&&(this._finishedPhases=[]),void 0!==(null==e?void 0:e.clipDuration)&&(this._clipDuration=e.clipDuration),void 0!==(null==e?void 0:e.clipId)&&(this._clipId=e.clipId),this._clipDisabled="true"===(null==e?void 0:e.disablecommercials)||!0===(null==e?void 0:e.disablecommercials)},d.prototype.reset=function(){this._scheduleId=0,this._scheduleCode="0",this._scheduleMacros=null,this._clipDuration=0,this._clipId=0,this._finishedPhases=[],this._adMacroHelper.reset()},d.prototype.get=function(e){var t;if("adCounter_clip"===e){var i=0;for(var n in this._perPositionAdCounter_clip)this._perPositionAdCounter_clip.hasOwnProperty(n)&&"leader"!==n&&(i+=this._perPositionAdCounter_clip[n]);return i}return null===(t=this._headController)||void 0===t?void 0:t.get(e)},d.prototype.load=function(e){var t,i=this;if(this._phase=e,"PRE"===this._phase&&(this._preCanplay=!1),"PRE"===this._phase&&(null===(t=this._auctionMapping)||void 0===t?void 0:t.preroll))for(var n in this._auctionMapping.preroll)this._runPrebidAuction(n,"preroll");return this._getScheduleUrl(e).then((function(e){var t;if(i._url=e,i._clip={assets:[{mediatype:"vast_as",src:i._url}]},null===(t=i._headController)||void 0===t||t.load(i._clip),"PRE"===i._phase){var n,a={adType:i._adType,adPosition:i._adPosition,adRequestUrl:i._url,adScheduleCode:i._scheduleCode};null===(n=i.$element)||void 0===n||n.triggerHandler("bb_as_initialized",[a])}})),!0},d.prototype.play=function(e,t,i){var n;return!this._disabled&&!this._clipDisabled&&(this.load(e,i),t||null===(n=this._headController)||void 0===n||n.play(i),!0)},d.prototype.pause=function(){var e;null===(e=this._headController)||void 0===e||e.pause()},d.prototype.resume=function(e){var t;null===(t=this._headController)||void 0===t||t.play(e)},d.prototype._getScheduleUrl=(a=i.default($parcel$interopDefault(n).mark((function e(t){var i,a,s,o,r,l,u,d,c,h,p,_,m,f,v,g;return $parcel$interopDefault(n).wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(l={},!(null===(i=this._scheduleMacros)||void 0===i||null===(a=i[t.toLowerCase()])||void 0===a?void 0:a.length)){e.next=32;break}u=this._scheduleMacros[t.toLowerCase()],d=!0,c=!1,h=void 0,e.prev=5,p=u[Symbol.iterator]();case 7:if(d=(_=p.next()).done){e.next=18;break}if("string"==typeof(m=_.value)){e.next=11;break}return e.abrupt("continue",15);case 11:return e.next=13,this._adMacroHelper.resolveMacro(m);case 13:(null==(f=e.sent)?void 0:f.doNotReplace)||(l[encodeURIComponent(m)]=f);case 15:d=!0,e.next=7;break;case 18:e.next=24;break;case 20:e.prev=20,e.t0=e.catch(5),c=!0,h=e.t0;case 24:e.prev=24,e.prev=25,d||null==p.return||p.return();case 27:if(e.prev=27,!c){e.next=30;break}throw h;case 30:return e.finish(27);case 31:return e.finish(24);case 32:return v={scheduleCode:this._scheduleCode,clipLength:this._clipDuration,phase:t},("PRE"===t&&(null===(s=this._auctionMapping)||void 0===s?void 0:s.preroll)||"MAIN"===t&&((null===(o=this._auctionMapping)||void 0===o?void 0:o.midroll)||(null===(r=this._auctionMapping)||void 0===r?void 0:r.postroll)))&&(v.csfx=this._prebidCacheSuffix),Object.keys(l).length&&(v.macros=JSON.stringify(l)),"MAIN"===t.toUpperCase()&&(v.clipId=this._clipId),this._isCustomHostname&&(v.publicationLabel=this._publicationLabel),g=Object.keys(v).map((function(e){return"".concat(e,"=").concat(encodeURIComponent(v[e]))})).join("&"),e.abrupt("return","".concat(this._baseUrl,"/ad-scheduling/document/vmap/1.0?").concat(g));case 39:case"end":return e.stop()}}),e,this,[[5,20,24,32],[25,,27,31]])}))),function(e){return a.apply(this,arguments)}),d.prototype._loadStartCallback=function(e,t){if(e){if("PRE"===this._phase){var i,n={adType:this._adType,adPosition:this._adPosition,adRequestUrl:this._adRequestUrl,adProperties:t};null===(i=this.$element)||void 0===i||i.triggerHandler("bb_as_loadstart",[n])}}else this._signalPhaseAsFinished(this._phase)},d.prototype._loadedDataCallback=function(e,t){var i,n;this._adScheduleItemCode="".concat(this._scheduleCode,"#").concat(null==t||null===(i=t.adPodInfo)||void 0===i?void 0:i.podIndex);var a,s={adType:this._adType,adPosition:this._adPosition,adRequestUrl:this._adRequestUrl,adScheduleItemCode:this._adScheduleItemCode,adProperties:t};e?null===(n=this.$element)||void 0===n||n.triggerHandler("bb_as_item_loaded",[s]):(null===(a=this.$element)||void 0===a||a.triggerHandler("bb_as_item_blocked",[s]),this._signalPhaseAsFinished(this._phase))},d.prototype._canPlayCallback=function(e,t){var i,n,a=null==t||null===(i=t.adPodInfo)||void 0===i?void 0:i.podIndex;this._adScheduleItemCode="".concat(this._scheduleCode,"#").concat(null==t||null===(n=t.adPodInfo)||void 0===n?void 0:n.podIndex);var s,o,r,l="PRE"===this._phase?"preroll":-1===a?"postroll":"midroll",u={adType:this._adType,adPosition:this._adPosition,adRequestUrl:this._adRequestUrl,adScheduleItemCode:this._adScheduleItemCode,adBreakPosition:l,adBreakItemCount:this._adBreakItemCount[l],adProperties:t};e?(null===(s=this.$element)||void 0===s||s.triggerHandler("bb_as_item_canplay",[u]),"preroll"!==l||this._preCanplay||(this._preCanplay=!0,null===(o=this.$element)||void 0===o||o.triggerHandler("bb_as_pre_canplay"))):(null===(r=this.$element)||void 0===r||r.triggerHandler("bb_as_item_noad",[u]),this._signalPhaseAsFinished(this._phase))},d.prototype._startedCallback=function(e,t){var i,n,a={adType:this._adType,adPosition:this._adPosition,adRequestUrl:this._adRequestUrl,adScheduleItemCode:this._adScheduleItemCode,adProperties:t};e?"PRE"===this._phase&&(null===(i=this.$element)||void 0===i||i.triggerHandler("bb_as_started",[a])):(null===(n=this.$element)||void 0===n||n.triggerHandler("bb_as_item_failed",[a]),this._signalPhaseAsFinished(this._phase))},d.prototype._endedCallback=function(e,t){var i,n,a,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o={adType:this._adType,adPosition:this._adPosition,adRequestUrl:this._adRequestUrl,adScheduleItemCode:this._adScheduleItemCode,adProperties:t};e?("PRE"!==this._phase&&(null===(n=this.$element)||void 0===n||n.triggerHandler("bb_as_ended",[o])),this._signalPhaseAsFinished(this._phase)):(this._perPositionAdCounter_clip[this._adPosition]?this._perPositionAdCounter_clip[this._adPosition]++:this._perPositionAdCounter_clip[this._adPosition]=1,null===(a=this.$element)||void 0===a||a.triggerHandler("bb_as_item_skipped",[o]),"PRE"===this._phase?this._signalPhaseAsFinished("PRE"):s&&this._signalPhaseAsFinished("MAIN"));null===(i=this._playoutController)||void 0===i||i.resetTemporaryPlayoutData()},d.prototype._clickCallback=function(e,t){var i,n={adType:this._adType,adPosition:this._adPosition,adRequestUrl:this._adRequestUrl,adScheduleItemCode:this._adScheduleItemCode,adProperties:t};e&&(null===(i=this.$element)||void 0===i||i.triggerHandler("bb_as_ad_clicked",[n]))},d.prototype._quartileCallback=function(e,t){4==e&&(this._perPositionAdCounter_clip[this._adPosition]?this._perPositionAdCounter_clip[this._adPosition]++:this._perPositionAdCounter_clip[this._adPosition]=1);var i,n={adType:this._adType,adPosition:this._adPosition,adRequestUrl:this._adRequestUrl,adScheduleItemCode:this._adScheduleItemCode,adProperties:t};e>=0&&e<=4&&(n.quartile=e,null===(i=this.$element)||void 0===i||i.triggerHandler("bb_as_ad_quartile",[n]))},d.prototype._requestCallback=function(e){var t,i={adType:this._adType,adPosition:this._adPosition,adRequestUrl:this._adRequestUrl,adScheduleItemCode:this._adScheduleItemCode};switch(i.action=e,null===(t=this.$element)||void 0===t||t.triggerHandler("bb_as_request",[i]),e){case"content_pause":var n;null===(n=this._playoutController)||void 0===n||n.setTemporaryPlayoutData({commercialPauseButton:"true",commercialMuteButton:"true",commercialProgressBar:"true",commercialProgressBarColor:"ffcc00",disableControls:"false"});break;case"content_resume":var a;null===(a=this._playoutController)||void 0===a||a.resetTemporaryPlayoutData()}},d.prototype._loadedAdListMetadataCallback=function(e,t){var i;if(e&&"MAIN"===this._phase&&(null==t||null===(i=t.cuePoints)||void 0===i?void 0:i.length))for(var n=this,a=function(e){var t,i,a,r=n,l=s[e]===o,u=l?n._clipDuration:s[e],d=l?1:e+1,c=l?null===(t=n._auctionMapping)||void 0===t?void 0:t.postroll:null===(i=n._auctionMapping)||void 0===i?void 0:i.midroll,h=l&&s.length>1?Math.min(n._clipDuration-15,s[e-1]):u-15;c&&(null===(a=n._callbackScheduler)||void 0===a||a.scheduleCallback(h,(function(e){var t=u-e>=3;for(var i in c)t?r._runPrebidAuction(i,l?"postroll":"midroll",d,u-e):r._submitResultToCache(i,c[i].sequence,d)})))},s=t.cuePoints,o=this._headController.get("postrollCuePoint"),r=0;r<s.length;r++)a(r)},d.prototype._signalPhaseAsFinished=function(e){var t;["PRE","MAIN"].includes(e)&&!this._finishedPhases.includes(e)&&(this._finishedPhases.push(e),null===(t=this.$element)||void 0===t||t.triggerHandler("bb_as_".concat(e.toLowerCase(),"_finished")))},d.prototype._runPrebidAuction=function(e,t){var i,n,a,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,r=t.toUpperCase(),u=null===(i=this._auctionMapping[t])||void 0===i||null===(n=i[e])||void 0===n?void 0:n.auctionId;if(!u)return!1;var d=null===(a=this._auctions[u])||void 0===a?void 0:a.auctionConfiguration;if(!d)return!1;var c={prebidConfig:d,adServerUrl:this._auctions[u].adServerUrl,position:r,startDelay:o,context:{type:"AdSchedule",code:this._scheduleCode}},h=new l.default(this.$element,this._opts,c);h.addAdUnits();var p=this._auctionMapping[t][e].sequence;h.getBids(this._handleAuctionResult.bind(this,e,p,s))},d.prototype._handleAuctionResult=function(e,t,i,n){var a=(null==n?void 0:n.length)&&n[0],s=null==a?void 0:a.vastXml;this._submitResultToCache(e,t,i,s)},d.prototype._submitResultToCache=function(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:'<VAST version="2.0"></VAST>',a="".concat(e,"_seq").concat(t,"_adb").concat(i,"_").concat(this._prebidCacheSuffix);this._prebidCache.submitItem(a,n)},d.prototype._onPlayoutChanged=function(e,t){var i;this._disabled="false"===(null==t||null===(i=t.playoutData)||void 0===i?void 0:i.commercials)},d.prototype._onPhaseChanged=function(e,t){"INIT"!==(null==t?void 0:t.phase)&&"EXIT"!==(null==t?void 0:t.phase)||(this._finishedPhases=[])}})),parcelRequire.register("DxDBi",(function(e,t){$parcel$export(e.exports,"default",(function(){return l})),parcelRequire("lDGnc");var i=parcelRequire("7CnHN"),n=parcelRequire("eamhc"),a=parcelRequire("gCaES"),s=parcelRequire("eLoLc"),o=parcelRequire("cYwG5"),r=parcelRequire("e06N2"),l=function(){"use strict";function e(t,n){var a;i.default(this,e);var s=-1===(null===(a=n.playoutData.publication)||void 0===a?void 0:a.indexOf("."))?"prod":n.playoutData.publication.split(".")[1];this._cacheUrl=["dev","acc","test"].includes(s)?"https://".concat(s,".bb-pbc.mainroll.com/cache"):"https://bb-pbc.mainroll.com/cache"}return n.default(e,[{key:"submitItem",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:120,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"xml",l=this;return a.default($parcel$interopDefault(s).mark((function a(){var u,d,c,h;return $parcel$interopDefault(s).wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if("string"==typeof e&&"string"==typeof t){a.next=2;break}return a.abrupt("return",!1);case 2:return u={puts:[{type:n,ttlseconds:i,key:e,value:t}]},a.prev=3,a.next=7,o.fetchData(l._cacheUrl,{method:"POST",data:u,cache:"no-store"});case 7:return h=a.sent,a.abrupt("return",(null==h||null===(d=h.responses)||void 0===d||null===(c=d[0])||void 0===c?void 0:c.uuid)===e);case 11:return a.prev=11,a.t0=a.catch(3),r.default("[PrebidCache] failed to submit ".concat(e," to cache: ").concat(a.t0)),a.abrupt("return",!1);case 15:case"end":return a.stop()}}),a,null,[[3,11]])})))()}}]),e}()})),parcelRequire.register("iJu0u",(function(e,t){e.exports=Promise.all([parcelRequire("lrJsf")(parcelRequire("lKFlT").getBundleURL("5H5Jn")+parcelRequire("l8sJU").resolve("8GNqo")),parcelRequire("lrJsf")(parcelRequire("lKFlT").getBundleURL("5H5Jn")+parcelRequire("l8sJU").resolve("gy46e"))]).then((function(){return parcelRequire("3VObx")}))})),parcelRequire.register("8AL3v",(function(e,t){$parcel$export(e.exports,"default",(function(){return s})),parcelRequire("6JR1F");var i=parcelRequire("hGJI5"),n=parcelRequire("3DsR2"),a=parcelRequire("6AtHv"),s=function(e,t){if(this.$element=null,this._opts=t||{},this._onPlayoutChangedBound=this._onPlayoutChanged.bind(this),this._onResizedBound=this._onResized.bind(this),this._onContextMenuBound=this._onContextMenu.bind(this),this._onClickBound=this._onClick.bind(this),void 0!==e&&null!=e){if(this.$element=e,this._$contextLayer=null,this._playerWidth,this._playerHeight,this._detections=n.default.getService(this._opts.playerAliasOrId).getInstance("Detections"),this._buildTime="unknown","number"==typeof parseInt(a.bbcb)&&!isNaN(parseInt(a.bbcb))){var s=new Date(1e3*parseInt(a.bbcb));this._buildTime=s.toString()}this._opts.playerPath&&this._opts.playerPath.match(/\.dev\./)?this._buildTime=this._buildTime+" (dev)":this._opts.playerPath&&this._opts.playerPath.match(/\.acc\./)&&(this._buildTime=this._buildTime+" (acc)"),this._detections.ieVersion>0&&this._detections.ieVersion<8?this._bbicon='<div style="width: 14px; height: 15px; margin-left: -20px; margin-right: 5px; display:inline;"><img style="border: none; vertical-align: middle;" width="14" height="15" src="'+this._opts.playerPath+'bb.png" /></div>':this._bbicon='<div style="width: 14px; height: 15px; margin-left: -20px; margin-right: 5px; display:inline;"><svg style="width: 14px; height: 15px; vertical-align: -20%;" version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="14px" height="15px" viewBox="0 0 381.946 434.02" enable-background="new 0 0 381.946 434.02" xml:space="preserve"><path fill="#6DABDD" d="M330.789,279.364c0-32.41-14.492-58.056-51.207-58.056H219.31v166.717h60.272\tc36.715,0,51.207-25.688,51.207-58.064V279.364z"></path><path fill="#ABA095" d="M268.648,0H219.31v175.482h66.307c65.606,0,96.33,39.705,96.33,103.881V113.212 C381.946,50.684,331.222,0,268.648,0z"></path><path fill="#7E6B56" d="M0,320.807C0,383.295,50.727,434.02,113.299,434.02h54.85V0H0V320.807z"></path><path fill-rule="evenodd" clip-rule="evenodd" fill="#FFFFFF" d="M330.789,279.453c0-32.371-14.492-58.06-51.207-58.06H219.31\tV388.11h60.272c36.715,0,51.207-25.688,51.207-58.061V279.453z M285.616,433.935H168.149V0.087h51.161v175.482h66.307 c65.606,0,96.33,39.705,96.33,103.884v50.597C381.946,394.229,351.223,433.935,285.616,433.935z"></path></svg></div>',this._animSpeed=200,this.api=n.default.getService(this._opts.playerAliasOrId).getInstance("PublicAPI"),this._$buildDisplay=$parcel$interopDefault(i)(document.createElement("div")).css({position:"absolute",width:"10px",height:"10px",bottom:"0px",left:"0px"}).attr("title",this._buildTime),this._$contextMenu=$parcel$interopDefault(i)(document.createElement("div")).addClass("bb-contextmenu bb-hidden").attr("dir","ltr").append(this._$buildDisplay),n.default.getService(this._opts.playerAliasOrId).setInstance("ContextMenu",this),this._init()}};s.prototype.disable=function(){this._enabled=!1},s.prototype.enable=function(){this._enabled=!0},s.prototype._init=function(){this._onResized(),this._build(),this._enabled=!0,this._$contextLayer=this.$element.find(".bb-context-layer"),this._$contextLayer.append(this._$contextMenu),this.$element.on("bb_playout_changed",this._onPlayoutChangedBound),this.$element.on("bb_resized",this._onResizedBound),"true"!=this._opts.playoutData.disableContextMenuNavigate&&this.$element.on("mousedown contextmenu",this._onContextMenuBound)},s.prototype.exit=function(){return this.$element.off("bb_playout_changed",this._onPlayoutChangedBound),this.$element.off("bb_resized",this._onResizedBound),this.$element.off("mousedown contextmenu",this._onContextMenuBound),document.removeEventListener("mousedown",this._onClickBound),document.removeEventListener("contextmenu",this._onClickBound),n.default.getService(this._opts.playerAliasOrId).setInstance("ContextMenu",null),null},s.prototype._build=function(){if(this._$contextMenu.css({position:"absolute",background:"#fff","z-index":"100",display:"none",padding:"6px 0","-webkit-box-shadow":"0 2px 3px rgba(0,0,0,0.5)","-moz-box-shadow":"0 2px 3px rgba(0,0,0,0.5)","box-shadow":"0 2px 3px rgba(0,0,0,0.5)",cursor:"default","font-size":"12px","font-family":"arial, helvetica, sans-serif","border-radius":"2px","line-height":"normal","pointer-events":"all !important","font-weight":"normal"}),this._$contextMenu.empty(),this._opts.playoutData&&void 0!==this._opts.playoutData.playerSignature&&null!=this._opts.playoutData.playerSignature&&""!=this._opts.playoutData.playerSignature){if(void 0!==this._opts.playoutData.playerSignatureLink&&null!=this._opts.playoutData.playerSignatureLink&&""!=this._opts.playoutData.playerSignatureLink)var e={href:this._opts.playoutData.playerSignatureLink,target:"_blank",rel:"noopener"};else e={};this._$contextMenu.bb_appendSanitized(this._button(e,this._opts.playoutData.playerSignature))}else this._$contextMenu.bb_appendSanitized(this._blueBillywigButton())},s.prototype._onPlayoutChanged=function(e,t){this._build(),t&&void 0!==t.playoutData&&void 0!==t.playoutData.disableContextMenuNavigate&&("true"!=t.playoutData.disableContextMenuNavigate?this.$element.on("mousedown contextmenu",this._onContextMenuBound):this.$element.off("mousedown contextmenu",this._onContextMenuBound))},s.prototype._button=function(e,t){var n=this,a=$parcel$interopDefault(i)(document.createElement("a"));return a.attr(e),a.html(t),a.css({display:"block",position:"relative",color:"#333",cursor:"pointer","pointer-events":"all","list-style":"none",margin:"0",padding:"4px 3em 4px 28px","white-space":"nowrap","font-family":"helvetica, arial, sans-serif","text-decoration":"none",background:"none",border:"none","text-align":"left","font-weight":"normal"}),a.on("mouseover",(function(e){$parcel$interopDefault(i)(n).css("background-color","#E6E6E6")})),a.on("mouseout",(function(e){$parcel$interopDefault(i)(n).css("background","none")})),a},s.prototype._blueBillywigButton=function(){var e={href:"https://www.bluebillywig.com/?utm_medium=referral&utm_campaign=player-traffic",target:"_blank"};this._opts.publicationData.name?e.href+="&pp="+encodeURIComponent(this._opts.publicationData.name)+"&utm_source="+encodeURIComponent(this._opts.publicationData.name):e.href+="&utm_source=bbvms";var t=this._bbicon+"Blue Billywig Video Player";return this._button(e,t)},s.prototype._seperator=function(){return $parcel$interopDefault(i)(document.createElement("div")).addClass("bb-context-seperator").css({height:"1px","background-color":"#DDD",width:"100%",margin:"3px 0"})},s.prototype._onResized=function(){this._playerWidth=this.$element.width(),this._playerHeight=this.$element.height()},s.prototype._onMouseDown=function(e){if(this._enabled&&3==e.which)return this._onContextMenu(e),e.preventDefault(),!1},s.prototype._onContextMenu=function(e){if(this._enabled&&("contextmenu"==e.type||3==e.which)){if(this._$contextMenu.outerWidth()>this._playerHeight||this._$contextMenu.outerHeight()>this._playerWidth)return this.$element.trigger("bb_contextmenu"),!1;var t=e.pageX-this.$element.offset().left,i=e.pageY-this.$element.offset().top,n="initial",a="initial",s="initial",o="initial";return t+this._$contextMenu.outerWidth()>this.$element.width()?a="1px":n=t+"px",i+this._$contextMenu.outerHeight()>this.$element.height()?o="1px":s=i+"px",this._$contextMenu.css({left:n,right:a,top:s,bottom:o}).show(),document.addEventListener("mousedown",this._onClickBound),document.addEventListener("contextmenu",this._onClickBound),this.$element.trigger("bb_contextmenu"),!1}},s.prototype._onClick=function(e){if(this._enabled&&(3!=e.which||this._$contextMenu.has(e.target).length<=0)&&(document.removeEventListener("mousedown",this._onClickBound),document.removeEventListener("contextmenu",this._onClickBound),this._$contextMenu.is(":visible")))return this._$contextMenu.fadeOut(this._animSpeed),e.preventDefault(),!1}})),parcelRequire.register("84IEE",(function(e,t){$parcel$export(e.exports,"default",(function(){return s})),parcelRequire("lDGnc");var i=parcelRequire("7CnHN"),n=parcelRequire("eamhc"),a=parcelRequire("3DsR2"),s=function(){"use strict";function e(t,n){var s,o;i.default(this,e),this._opts=n,this._instanceService=a.default.getService(this._opts.playerAliasOrId),null===(s=this._instanceService)||void 0===s||s.setInstance("CallbackScheduler",this),this.$element=t,this.$wrapper=this.$element.closest(".bb_wrapper"),this._onClipDataLoadedBound=this._onClipDataLoaded.bind(this),this._onMediaSeekingBound=this._onMediaSeeking.bind(this),this._onMediaSeekedBound=this._onMediaSeeked.bind(this),this._onMediaTimeUpdateBound=this._onMediaTimeUpdate.bind(this),this._seeking=!1,this._scheduledCallbacks={},this._isFirstClipLoad=!0,null===(o=this.$wrapper)||void 0===o||o.on("bb_mediaclip_loaded",this._onClipDataLoadedBound),this._bindMediaTimeEvents()}return n.default(e,[{key:"_onClipDataLoaded",value:function(){this._isFirstClipLoad||(this._scheduledCallbacks={}),this._isFirstClipLoad=!1}},{key:"_bindMediaTimeEvents",value:function(){var e,t,i;null===(e=this.$wrapper)||void 0===e||e.on("bb_media_seeking",this._onMediaSeekingBound),null===(t=this.$wrapper)||void 0===t||t.on("bb_media_seeked",this._onMediaSeekedBound),null===(i=this.$wrapper)||void 0===i||i.on("bb_media_timeupdate",this._onMediaTimeUpdateBound)}},{key:"_unbindMediaTimeEvents",value:function(){var e,t,i;null===(e=this.$wrapper)||void 0===e||e.off("bb_media_seeking",this._onMediaSeekingBound),null===(t=this.$wrapper)||void 0===t||t.off("bb_media_seeked",this._onMediaSeekedBound),null===(i=this.$wrapper)||void 0===i||i.off("bb_media_timeupdate",this._onMediaTimeUpdateBound)}},{key:"_onMediaSeeking",value:function(){this._seeking=!0}},{key:"_onMediaSeeked",value:function(){this._seeking=!1}},{key:"_onMediaTimeUpdate",value:function(e,t){if(!this._seeking&&(null==t?void 0:t.currentTime)){var i=parseFloat(t.currentTime);for(var n in this._scheduledCallbacks){var a=this._scheduledCallbacks[n];"number"==typeof a.time&&(i>=a.time&&(a.callback(i),delete this._scheduledCallbacks[n]))}}}},{key:"scheduleCallback",value:function(e,t){if("number"!=typeof e||"function"!=typeof t)return!1;var i=Math.random().toString().substring(2);return this._scheduledCallbacks[i]={time:e,callback:t},i}},{key:"cancelScheduledCallback",value:function(e){return!!this._scheduledCallbacks[e]&&(delete this._scheduledCallbacks[e],!0)}},{key:"exit",value:function(){var e,t;null===(e=this.$wrapper)||void 0===e||e.off("bb_mediaclip_loaded",this._onClipDataLoadedBound),null===(t=this._instanceService)||void 0===t||t.setInstance("CallbackScheduler",null),this._unbindMediaTimeEvents()}}]),e}()})),parcelRequire.register("e8VwD",(function(e,t){$parcel$export(e.exports,"default",(function(){return s})),parcelRequire("lDGnc");var i=parcelRequire("7CnHN"),n=parcelRequire("eamhc"),a=parcelRequire("3DsR2"),s=function(){"use strict";function e(t,n){i.default(this,e),this._eventNS="SharedDataService"+String(Math.random()).replace(".",""),this._clipData=null,this.widgetStats={},this.boundEvents=[],this.$element=t,this._opts=n,this._onWidgetStatsLoadedBound=this.onWidgetStatsLoaded.bind(this),this._onMediaclipLoadedBound=this.onMediaclipLoaded.bind(this),this.init()}return n.default(e,[{key:"init",value:function(){var e,t;this.$wrapper=null===(e=this.$element)||void 0===e?void 0:e.closest(".bb_wrapper"),(null===(t=this.$wrapper)||void 0===t?void 0:t.length)&&(a.default.getService(this._opts.playerAliasOrId).setInstance("SharedDataService",this),this.addListener("bb_widgetstats_loaded",this._onWidgetStatsLoadedBound),this.addListener("bb_widgetstats_load_failed",this._onWidgetStatsLoadedBound),this.addListener("bb_mediaclip_loaded",this._onMediaclipLoadedBound),this.addListener("bb_mediaclip_failed",this._onMediaclipLoadedBound))}},{key:"onMediaclipLoaded",value:function(e,t){this._clipData=(null==t?void 0:t.clipData)||{}}},{key:"onWidgetStatsLoaded",value:function(e,t){var i,n=(null==t?void 0:t.clipId)||(null===(i=this._clipData)||void 0===i?void 0:i.id);this.widgetStats[n]=(null==t?void 0:t.widgetStats)||{}}},{key:"getWidgetStats",value:function(e){var t,i,n=null===(t=this._clipData)||void 0===t?void 0:t.id;return null===(i=this.widgetStats[n])||void 0===i?void 0:i[e]}},{key:"addListener",value:function(e,t){this.$wrapper.on(e,t),this.boundEvents.push({eventName:e,callback:t})}},{key:"exit",value:function(){var e=this;return this.boundEvents.forEach((function(t){var i=t.eventName,n=t.callback;e.$wrapper.off(i,n)})),this.boundEvents=[],this.widgetStats={},this._clipData=null,a.default.getService(this._opts.playerAliasOrId).setInstance("SharedDataService",null),null}}]),e}()})),parcelRequire.register("b58e1",(function(e,t){$parcel$export(e.exports,"default",(function(){return s})),parcelRequire("6JR1F");var i=parcelRequire("hGJI5"),n=parcelRequire("3DsR2"),a=parcelRequire("cYwG5"),s=function(e,t){this._opts=t,n.default.getService(this._opts.playerAliasOrId).setInstance("CSSFontInjector",this),void 0!==e&&null!=e&&(this.$element=e)};s.prototype.exit=function(){return n.default.getService(this._opts.playerAliasOrId).setInstance("CSSFontInjector",null),null},s.prototype.addFontMediaClip=function(e){null!=this._opts&&(this._url=this._opts.publicationData.server+"/json/mediaclip/"+e,this._loadClip(this._dataCallback.bind(this)))},s.prototype._loadClip=function(e){var t=this;a.fetchData(this._url).then((function(i){t._loadedData=i,"function"==typeof e&&e(!0)})).catch((function(t){"function"==typeof e&&e(!1)}))},s.prototype._dataCallback=function(e){var t,n;if(e&&(null===(t=this._loadedData)||void 0===t||null===(n=t.assets)||void 0===n?void 0:n.length)&&this._loadedData.originalfilename){var a=this,s=this._loadedData.originalfilename.replace(/\.[^.]*$/,""),o={ttf:"truetype"},r=this._loadedData.assets.filter((function(e){return e.mediatype&&e.src})).sort((function(e,t){return"eot"===e.mediatype?-1:"eot"===t.mediatype?1:0})).map((function(e){return e.src.match(/^\w+:\/\//)||(e.src=a._opts.publicationData.defaultMediaAssetPath+e.src),e.src.match(/^\/\//)&&(e.src="https:"+e.src),e.src.match(/\.eot$/i)&&(e.src+="?"),"url('".concat(e.src,"') format('").concat(o[e.mediatype]||e.mediatype,"')")}));r.splice(Math.max(0,r.findIndex((function(e){return e.indexOf("eot")>-1}))+1),0,"local('☺')"),$parcel$interopDefault(i)("<style>").prop("type","text/css").html("\n\t\t\t\t\t@font-face {\n\t\t\t\t\t\tfont-family: '".concat(s,"';\n\t\t\t\t\t\tsrc: ").concat(r.join(", "),";\n\t\t\t\t\t}")).appendTo("head")}}})),parcelRequire.register("hoTj7",(function(e,t){$parcel$export(e.exports,"default",(function(){return n})),parcelRequire("6JR1F");var i=parcelRequire("hGJI5"),n=function(e,t){this.$element=null,this._opts=t,this._mediaClip=null,this._alternativeTextDiv=null,this._onClipDataLoadedBound=this._onClipDataLoaded.bind(this),this._onPlayoutChangedBound=this._onPlayoutChanged.bind(this),void 0!==e&&null!=e&&(this.$element=e,this.$element.on("bb_mediaclip_loaded",this._onClipDataLoadedBound),this.$element.on("bb_playout_changed",this._onPlayoutChangedBound))};n.prototype.exit=function(){return null!=this.$element&&(this.$element.empty(),this.$element.off("bb_mediaclip_loaded",this._onClipDataLoadedBound),this.$element.off("bb_playout_changed",this._onPlayoutChangedBound)),this.$element=null,this._opts=null,this._mediaClip=null,this._alternativeTextDiv=null,null},n.prototype._onPlayoutChanged=function(e,t){},n.prototype._onClipDataLoaded=function(e,t){this._alternativeTextDiv&&this._alternativeTextDiv.remove(),void 0!==t&&void 0!==t.clipData&&(this._mediaClip=t.clipData),this._mediaClip&&void 0!==this._opts.playoutData.textAlternative&&this._mediaClip[this._opts.playoutData.textAlternative]&&(this._alternativeTextDiv=$parcel$interopDefault(i)('<div clas="bb-fitme" id="text-alternative-'+this._mediaClip.id+'" style="visibility: hidden; position: absolute; pointer-events: none !important;">'+this._mediaClip[this._opts.playoutData.textAlternative]+"</div>"),this.$element.find(".bb-content-layer").append(this._alternativeTextDiv),this.$element.find(".bb-content-layer").attr({"aria-labelledby":"text-alternative-"+this._mediaClip.id,tabindex:"0"}))}})),parcelRequire.register("1NbW2",(function(e,t){$parcel$export(e.exports,"default",(function(){return o})),parcelRequire("6JR1F");var i=parcelRequire("hGJI5"),n=parcelRequire("3DsR2"),a=parcelRequire("34nCd"),s=parcelRequire("cYwG5"),o=function(e,t){if(this.$element=null,this._opts=t,this._enabled=!1,this._mediaClip=null,this._subtitles=null,this._currentSubtitle=null,this._currentData=null,this._loadedData=null,this._previousSubtitleText="",this._mayShowSubtitles=!0,this._localStorage=null,this._defaultSubtitle=this._playoutDefaultSubtitle="first",this._defaultSubtitleOnlyIfMuted=!1,this._muted=!1,this.__lastCurrentTime=null,this._opts.playoutData&&(void 0!==this._opts.playoutData.defaultSubtitle&&(this._defaultSubtitle=this._playoutDefaultSubtitle=this._opts.playoutData.defaultSubtitle),void 0!==this._opts.playoutData.defaultSubtitleOnlyIfMuted&&(this._defaultSubtitleOnlyIfMuted="true"===this._opts.playoutData.defaultSubtitleOnlyIfMuted||!0===this._opts.playoutData.defaultSubtitleOnlyIfMuted),void 0!==this._opts.playoutData.autoMute&&(this._muted="true"===this._opts.playoutData.autoMute||!0===this._opts.playoutData.autoMute)),this._onClipDataLoadedBound=this._onClipDataLoaded.bind(this),this._onTimeUpdateBound=this._onTimeUpdate.bind(this),this._onSubtitleSetBound=this._onSubtitleSet.bind(this),this._onPhaseChangeBound=this._onPhaseChange.bind(this),this._onPlayoutChangedBound=this._onPlayoutChanged.bind(this),this._onMasterVolumeChangedBound=this._onMasterVolumeChanged.bind(this),this._onAssetsChangedBound=this._onAssetsChanged.bind(this),this._onAssetSelectedBound=this._onAssetSelected.bind(this),this._onHeadSelectedBound=this._onHeadSelected.bind(this),this._onPreviewSubtitleDataChangedBound=this._onPreviewSubtitleDataChanged.bind(this),void 0!==e&&null!=e){this.$element=e,this._sc=n.default.getService(this._opts.playerAliasOrId).getInstance("SoundController"),void 0!==this._sc&&null!=this._sc&&(this._muted=this._sc.getMuted()),this._enable(),this.$element.on("bb_mediaclip_loaded",this._onClipDataLoadedBound),this.$element.on("bb_phase_change",this._onPhaseChangeBound),this.$element.on("bb_playout_changed",this._onPlayoutChangedBound),this.$element.on("bb_master_volume_change",this._onMasterVolumeChangedBound),this.$element.on("bb_assets_changed",this._onAssetsChangedBound),this.$element.on("bb_asset_selected",this._onAssetSelectedBound),this.$element.on("bb_head_selected",this._onHeadSelectedBound),this.$element.on("bb_preview_subtitle_changed",this._onPreviewSubtitleDataChangedBound);var s=$parcel$interopDefault(i)('<div class="bb-subtitledisplay" style="position: absolute; pointer-events: none !important;"></div>');this.$element.find(".bb-subtitle-layer").append(s),this._arena=new a.default(s,this._opts),void 0!==n.default.getService(this._opts.playerAliasOrId).getInstance("LocalStorage")&&(this._localStorage=n.default.getService(this._opts.playerAliasOrId).getInstance("LocalStorage"))}this._defaultSubtitle=this._defaultSubtitleOnlyIfMuted&&!this._muted?"None":this._playoutDefaultSubtitle,this._setup()};o.prototype.exit=function(){return null!=this.$element&&(this.$element.empty(),this._arena=this._arena.exit(),this._disable(),this.$element.off("bb_mediaclip_loaded",this._onClipDataLoadedBound),this.$element.off("bb_phase_change",this._onPhaseChangeBound),this.$element.off("bb_playout_changed",this._onPlayoutChangedBound),this.$element.off("bb_master_volume_change",this._onMasterVolumeChangedBound),this.$element.off("bb_assets_changed",this._onAssetsChangedBound),this.$element.off("bb_asset_selected",this._onAssetSelectedBound),this.$element.off("bb_head_selected",this._onHeadSelectedBound),this.$element.off("bb_preview_subtitle_changed",this._onPreviewSubtitleDataChangedBound)),this.$element=null,this._opts=null,this._mediaClip=null,this._subtitles=null,this._currentSubtitle=null,this._loadedData=null,null},o.prototype._disable=function(){this.$element&&this._enabled&&(this._enabled=!1,this.$element.off("bb_media_timeupdate",this._onTimeUpdateBound),this.$element.off("bb_media_seeking",this._onTimeUpdateBound),this.$element.off("bb_subtitle_set",this._onSubtitleSetBound));var e;""!==this._previousSubtitleText&&(this._previousSubtitleText="",null===(e=this.$element)||void 0===e||e.trigger("bb_subtitle_line_changed",[{subtitleLine:""}]))},o.prototype._enable=function(){this.$element&&!this._enabled&&(this._enabled=!0,this.$element.on("bb_media_timeupdate",this._onTimeUpdateBound),this.$element.on("bb_media_seeking",this._onTimeUpdateBound),this.$element.on("bb_subtitle_set",this._onSubtitleSetBound))},o.prototype._onPhaseChange=function(e,t){switch(t.phase){case"INIT":case"PRE":case"POST":case"EXIT":this._mayShowSubtitles=!1;break;case"MAIN":this._mayShowSubtitles=!0}},o.prototype._onPlayoutChanged=function(e,t){if(t&&t.playoutData){var i=!1;if(void 0!==t.playoutData.defaultSubtitle){var n=this._playoutDefaultSubtitle;this._playoutDefaultSubtitle=t.playoutData.defaultSubtitle,this._playoutDefaultSubtitle!==n&&(i=!0)}if(void 0!==t.playoutData.defaultSubtitleOnlyIfMuted){var a=this._defaultSubtitleOnlyIfMuted;this._defaultSubtitleOnlyIfMuted="true"===t.playoutData.defaultSubtitleOnlyIfMuted||!0===t.playoutData.defaultSubtitleOnlyIfMuted,this._defaultSubtitleOnlyIfMuted!==a&&(i=!0)}i&&(this._defaultSubtitle=this._defaultSubtitleOnlyIfMuted&&!this._muted?"None":this._playoutDefaultSubtitle,this._setup())}},o.prototype._onMasterVolumeChanged=function(e,t){if(t){var i=!1;if(void 0!==t.muted){var n=this._muted;this._muted=!!t.muted,this._muted!==n&&(i=!0)}i&&(this._defaultSubtitle=this._defaultSubtitleOnlyIfMuted&&!this._muted?"None":this._playoutDefaultSubtitle,this._setup())}},o.prototype._setSubtitle=function(e,t){if(null!=e&&this._subtitleIsValid(e)&&(this._currentSubtitle=e,this.$element.trigger("bb_subtitle_changed",[{subtitle:this._currentSubtitle}]),1==t&&null!=this._localStorage&&this._localStorage.set("subtitle",e),this._currentSubtitle&&"-1"!==this._currentSubtitle.id)){if(void 0!==this._currentSubtitle.parsedData&&null!=this._currentSubtitle.parsedData)return!0;this._loadSubtitleData(this._dataCallback.bind(this))}return!1},o.prototype._onPreviewSubtitleDataChanged=function(e,t){(null==t?void 0:t.subtitles)?this._setSubtitleList(t.subtitles):this._setSubtitleList(this._mediaClip.subtitles)},o.prototype._onSubtitleSet=function(e,t){if(this._clearSubtitles(),"textTracks"!==(null==t?void 0:t.hint)){if(this._subtitles&&void 0!==t&&void 0!==t.subtitleId)for(var i=0;i<this._subtitles.length;i++){var n=this._subtitles[i];if(null!=n&&this._subtitleIsValid(n)&&n.id==t.subtitleId)return void this._setSubtitle(n,!0)}this._setSubtitle({id:"-1",isocode:"dis",languageid:"-1",languagename:"Disabled",status:"published",default:"false",name:""},!0)}},o.prototype._clearSubtitles=function(){this._currentSubtitle=null,this.$element.trigger("bb_subtitle_line_changed",[{subtitleLine:""}])},o.prototype._onClipDataLoaded=function(e,t){this._clearSubtitles(),this._subtitles=null,void 0!==t&&void 0!==t.clipData&&(this._mediaClip=t.clipData,null!=this._mediaClip&&void 0!==this._mediaClip.subtitles&&(this._setSubtitleList(this._mediaClip.subtitles),this._setup()))},o.prototype._setSubtitleList=function(e){this._subtitles=e},o.prototype._setup=function(){if(null!=this._subtitles&&this._subtitles.length>0){if(null!=this._localStorage){var e=this._localStorage.get("subtitle");if(null!=e){if(void 0!==e.id&&"-1"==e.id&&this._subtitles.length>0)return void this._setSubtitle(e,!1);for(var t=0;t<this._subtitles.length;t++){if((i=this._subtitles[t])&&(i.parsedData=null),null!=i&&this._subtitleIsValid(i)&&i.isocode==e.isocode)return void this._setSubtitle(i,!1)}}}if(this._defaultSubtitle){if("None"===this._defaultSubtitle)this._setSubtitle({id:"-1",isocode:"dis",languageid:"-1",languagename:"Disabled",status:"published",default:"false",name:""},!1);else if("Default Language"===this._defaultSubtitle)for(t=0;t<this._subtitles.length;t++){var i;if(null!=(i=this._subtitles[t])&&this._subtitleIsValid(i)&&"true"==i.default)return void this._setSubtitle(i,!1)}else this._setSubtitle(this._mediaClip.subtitles_obj?this._mediaClip.subtitles_obj["#0"]:this._subtitles[0],!1);return}this._setSubtitle(this._mediaClip.subtitles_obj?this._mediaClip.subtitles_obj["#0"]:this._subtitles[0],!1)}},o.prototype._onTimeUpdate=function(e,t){if(this._lastCurrentTime=null==t?void 0:t.currentTime,1==this._enabled&&1==this._mayShowSubtitles){var i="",n=null;if(void 0!==t&&void 0!==t.currentTime&&null!=t.currentTime&&this._currentSubtitle&&this._currentSubtitle.parsedData){for(var a=0;a<this._currentSubtitle.parsedData.length;a++){var s=this._currentSubtitle.parsedData[a];if(Number(t.currentTime)>s.inPoint&&Number(t.currentTime)<s.outPoint){n=s;break}}null!=n&&(i=s.subtitleLine)}(i!==this._previousSubtitleText||(null==t?void 0:t.forceUpdate))&&(this._previousSubtitleText=i,this.$element.trigger("bb_subtitle_line_changed",[{subtitleLine:i}]))}},o.prototype._onAssetsChanged=function(e,t){this._textTracks=null==t?void 0:t.textTracks,this._assetNeedsHSSupport&&"html5"===this._headType||void 0!==this._textTracks?this._disable():this._enable()},o.prototype._onAssetSelected=function(e,t){this._assetNeedsHSSupport=s.assetNeedsHLSSupport(null==t?void 0:t.asset)||s.assetNeedsMPDSupport(null==t?void 0:t.asset),this._assetNeedsHSSupport&&"html5"===this._headType||void 0!==this._textTracks?this._disable():this._enable()},o.prototype._onHeadSelected=function(e,t){this._headType=null==t?void 0:t.headType,this._assetNeedsHSSupport&&"html5"===this._headType||void 0!==this._textTracks?this._disable():this._enable()},o.prototype._loadSubtitleData=function(e){if(this._currentSubtitle&&this._currentSubtitle.srtData)return this._loadedData=this._currentSubtitle.srtData,"function"==typeof e&&e(!0),void this._onTimeUpdate(null,{currentTime:this._lastCurrentTime||0,forceUpdate:!0});if(null==this._loadedData){var t=this,i=null;if(this._currentSubtitle&&this._currentSubtitle.src){if(!(i=this._currentSubtitle.src).match(/^\w+:\/\//)&&!i.match(/^\/\//))i=(this._opts.publicationData.defaultMediaAssetPath||"")+i}else this._currentSubtitle&&(i=this._opts.publicationData.server+"/subtitle/"+this._currentSubtitle.id+".srt");i?s.fetchData(i,{dataType:"text"}).then((function(i){i?(t._loadedData=i,"function"==typeof e&&e(!0)):"function"==typeof e&&e(!1)})).catch((function(t){"function"==typeof e&&e(!1)})):"function"==typeof e&&e(!1)}else"function"==typeof e&&e(!0)},o.prototype._dataCallback=function(e){if(e){var t=new Array,i=this._loadedData.replace(/(\r\n|\r|\n)/g,"\n").split("\n\n");if(null!=i&&i.length>0){i.sort((function(e,t){var i=e.split("\n"),n=t.split("\n");return Number(i[0])-Number(n[0])}));for(var n=0;n<i.length;n++)if(""!=i[n]){var a=new Object,s=i[n].split("\n"),o=s[1].split(" --\x3e ");a.inPoint=this._timeCodeToSeconds(o[0]),a.outPoint=this._timeCodeToSeconds(o[1]);for(var r="",l=2;l<s.length;l++)r+=s[l],l<s.length-1&&(r+="<br />");a.subtitleLine=r,t.push(a)}this._currentSubtitle&&"-1"!==this._currentSubtitle.id&&(this._currentSubtitle.parsedData=t)}}this._loadedData=null},o.prototype._timeCodeToSeconds=function(e){var t,i,n;return e?(i=(t=e.split(","))[0].split(":"),n=t[1]?Number("0."+t[1]):0,Math.floor(3600*i[0])+Math.floor(60*i[1])+Math.floor(i[2])+n):0},o.prototype._subtitleIsValid=function(e){return null!=e&&null!=e.id&&""!=e.id&&null!=e.isocode&&""!=e.isocode&&null!=e.languageid&&""!=e.languageid&&null!=e.status&&"published"==e.status&&null!=e.default&&""!=e.default}})),parcelRequire.register("34nCd",(function(e,t){$parcel$export(e.exports,"default",(function(){return a})),parcelRequire("6JR1F");var i=parcelRequire("hGJI5"),n=parcelRequire("3DsR2"),a=function(e,t){var i;this.$element=null,this.$wrapper=null,this._opts=t,this._size=25,this.$display=null,this._skinGeneration=null===(i=n.default.getService(this._opts.playerAliasOrId).getInstance("SkinController"))||void 0===i?void 0:i.getGeneration(),this._onSubtitleLineChangedBound=this._onSubtitleLineChanged.bind(this),this._onResizedBound=this._onResized.bind(this),this._onSkinCreatedBound=this._onSkinCreated.bind(this),void 0!==e&&null!=e&&(this.$element=e,n.default.getService(this._opts.playerAliasOrId).setInstance("SubtitleDisplay",this),this.$wrapper=this.$element.closest(".bb_wrapper"),(!this.$wrapper||this.$wrapper.length<=0)&&(this.$wrapper=null)),this.init()};a.prototype.init=function(){null!=this.$wrapper&&(this.$wrapper.on("bb_subtitle_line_changed",this._onSubtitleLineChangedBound),this.$wrapper.on("bb_resized",this._onResizedBound),this.$wrapper.on("bb_skin_created",this._onSkinCreatedBound)),this._onResized(null),this._updateCss()},a.prototype._onSkinCreated=function(e,t){t&&void 0!==t.skinGeneration&&(this._skinGeneration=t.skinGeneration),this._updateCss()},a.prototype._updateCss=function(){var e,t,i;this._skinGeneration>=8?(null===(t=this.$element)||void 0===t||t.css({position:"absolute",display:"flex","flex-direction":"column",left:"10%",width:"80%",bottom:"5px","text-align":"center","font-family":"Roboto, Arial, Helvetica, sans-serif","font-weight":"500",color:"#FFF","text-shadow":"none",transition:"transform 0.25s ease-in-out",background:"none","line-height":"initial"}),null===(i=this.$wrapper)||void 0===i||i.append("<style>\n\t\t.bb_wrapper#".concat(this.$wrapper.attr("id")," video::cue {\n\t\t\tbackground-color: rgba(33, 33, 33, 0.8);\n\t\t}\n\t\t</style>"))):null===(e=this.$element)||void 0===e||e.css({position:"absolute",left:"10%",bottom:"5px",width:"80%","text-align":"center","font-family":"Helvetica, sans-serif","font-weight":"bold",color:"#FFF","text-shadow":"-1.5px -1.5px 0 #000, 0 -1.5px 0 #000, 1.5px -1.5px 0 #000, 1.5px 0 0 #000, 1.5px 1.5px 0 #000, 0 1.5px 0 #000, -1.5px 1.5px 0 #000, -1.5px 0 0 #000",transition:"bottom 0.25s",background:"none","line-height":"initial"})},a.prototype.exit=function(){return null!=this.$wrapper&&(this.$wrapper.off("bb_subtitle_line_changed",this._onSubtitleLineChangedBound),this.$wrapper.off("bb_resized",this._onResizedBound),this.$wrapper.off("bb_skin_created",this._onSkinCreatedBound)),n.default.getService(this._opts.playerAliasOrId).setInstance("SubtitleDisplay",null),null},a.prototype._onSubtitleLineChanged=function(e,t){if(void 0!==t&&void 0!==t.subtitleLine)if(this._skinGeneration>=8){var n=this,a=t.subtitleLine.split("<br />"),s="";this.$element.empty(),a.forEach((function(e){var t,a;if(e){var o=e,r=null===(t=(o=o.replace(/<font[^<>]*>[^<>]*<\/font>/gi,"")).match(/<font[^<>]*>/i))||void 0===t?void 0:t[0],l=null===(a=o.match(/<\/font>/i))||void 0===a?void 0:a[0];r?(s=r,e+="</font>"):l?(e=s+e,s=""):s&&(e=s+e+"</font>");var u=$parcel$interopDefault(i)(document.createElement("span")).bb_htmlSanitized(e);null!=n.$element&&(u.css({color:"#fff",background:"rgba(33,33,33,0.8)",margin:"0px auto","margin-top":"0.5%",padding:"min(0.25em, 5px) min(0.5em, 10px)","border-radius":"5px",display:"inline-block"}),n.$element.append(u),""===e&&u.css({background:"none"}))}}))}else{var o=$parcel$interopDefault(i)(document.createElement("span")).bb_htmlSanitized(t.subtitleLine);null!=this.$element&&(this.$element.empty().append(o),o.css({color:"#fff",background:"rgba(60,67,75,0.5)",margin:"0px auto","margin-top":"5px",padding:"0px 5px",display:"inline-block"}),""===t.subtitleLine&&o.css({background:"none"}))}},a.prototype._onResized=function(e){var t=432;this.$wrapper&&(t=Math.min(this.$wrapper.width()/1.75,this.$wrapper.height()));var i=Math.round(t/this._size);!isNaN(i)&&i>0&&(this._skinGeneration>=8?this.$element&&this.$element.css({"font-size":Math.min(i,55)+"px"}):(this.$element&&this.$element.css({"font-size":i+"px"}),this.$element&&this.$element.html(this.$element.html()+"&nbsp;")))}})),parcelRequire.register("7BZDv",(function(e,t){e.exports=parcelRequire("lrJsf")(parcelRequire("lKFlT").getBundleURL("5H5Jn")+parcelRequire("l8sJU").resolve("1oO4T")).then((function(){return parcelRequire("71l4s")}))})),parcelRequire.register("5S9Nn",(function(e,t){$parcel$export(e.exports,"default",(function(){return n})),parcelRequire("6JR1F");var i=parcelRequire("e06N2"),n=function(){this._init()};n.prototype._init=function(){this._onMessageBound=this._onMessage.bind(this),this._findCmpAndGetData()},n.prototype._findCmpAndGetData=function(){var e=window;for(this._cmpData=null,this._cmpFrame=null,this._cmpVersion=null,this._cmpFunction=null,this._cmpRequestInProgress=!1,this._successCallbacks=[],this._errorCallbacks=[];!this._cmpFrame;){try{if("function"==typeof e.__tcfapi||"function"==typeof e.__cmp){"function"==typeof e.__tcfapi?(this._cmpVersion=2,this._cmpFunction=e.__tcfapi):(this._cmpVersion=1,this._cmpFunction=e.__cmp),this._cmpFrame=e;break}}catch(e){}try{if(e.frames.__tcfapiLocator){this._cmpVersion=2,this._cmpFrame=e;break}}catch(e){}try{if(e.frames.__cmpLocator){this._cmpVersion=1,this._cmpFrame=e;break}}catch(e){}if(e===window.top)break;e=e.parent}if(!this._cmpFrame||!this._cmpVersion)return!1;i.default("[IABConsentFrameworkSupport] _findCmp: found CMP version "+this._cmpVersion+", requesting CMP data"),"function"!=typeof this._cmpFunction&&(this._cmpCallbacks={},window.addEventListener("message",this._onMessageBound)),this._makeCmpDataRequests(),this.cmpFound=!(!this._cmpFunction&&!this._cmpFrame)},n.prototype.getApiName=function(){return 2===this._cmpVersion?"__tcfapi":"__cmp"},n.prototype._callSuccessCallbacks=function(e,t){for(;this._successCallbacks.length;){var i=this._successCallbacks.shift();"function"==typeof i&&i(e,t)}this._errorCallbacks=[]},n.prototype._callErrorCallbacks=function(){for(;this._errorCallbacks.length;){var e=this._errorCallbacks.shift();"function"==typeof e&&e()}this._successCallbacks=[]},n.prototype._v2CmpResponseHandler=function(e,t){e&&"cmpuishown"===e.eventStatus||(this._cmpRequestInProgress=!1,"function"==typeof this._cmpFunction&&this._cmpFunction("removeEventListener",this._cmpVersion,(function(){}),e.listenerId),!t||!1!==e.gdprApplies&&"tcloaded"!==e.eventStatus&&"useractioncomplete"!==e.eventStatus?(i.default("[IABConsentFrameworkSupport] _v2CmpResponseHandler: did not get tcfData in correct state, firing error callback"),this._callErrorCallbacks()):(i.default("[IABConsentFrameworkSupport] _v2CmpResponseHandler: got tcfData in correct state, firing success callback"),this._cmpData=e,this._callSuccessCallbacks(this._cmpData,this._cmpVersion)))},n.prototype._v1CmpResponseHandler=function(e){this._cmpRequestInProgress=!1,e?(this._cmpData=e,this._callSuccessCallbacks(this._cmpData,this._cmpVersion)):this._callErrorCallbacks()},n.prototype._callCmpFromIframe=function(e,t){var i=(Math.random()+"").replace(".",""),n={};n["".concat(this.getApiName(),"Call")]={command:e,parameter:null,callId:i},this._cmpCallbacks[i]=t,this._cmpFrame.postMessage(n,"*")},n.prototype._onMessage=function(e){e=e.originalEvent||e;var t=this.getApiName()+"Return";try{var i=e.data&&"string"==typeof e.data?JSON.parse(e.data):e.data;if(i&&i[t]&&i[t].callId){var n=i[t];"function"==typeof this._cmpCallbacks[n.callId]&&(this._cmpCallbacks[n.callId](n.returnValue,n.success),this._cmpCallbacks[n.callId]=null)}}catch(e){}},n.prototype._makeCmpDataRequests=function(){this._cmpRequestInProgress=!0,this._cmpFrame&&this._cmpVersion?"function"==typeof this._cmpFunction?1===this._cmpVersion?this._cmpFunction("getConsentData",null,this._v1CmpResponseHandler.bind(this)):2===this._cmpVersion&&this._cmpFunction("addEventListener",this._cmpVersion,this._v2CmpResponseHandler.bind(this)):1===this._cmpVersion?this._callCmpFromIframe("getConsentData",this._v1CmpResponseHandler.bind(this)):2===this._cmpVersion&&this._callCmpFromIframe("addEventListener",this._v2CmpResponseHandler.bind(this)):(this._cmpRequestInProgress=!1,this._callErrorCallbacks())},n.prototype.callCmp=function(e,t){"function"==typeof this._cmpFunction?1===this._cmpVersion?this._cmpFunction(e,null,t):2===this._cmpVersion&&this._cmpFunction(e,this._cmpVersion,t):(1===this._cmpVersion||2===this._cmpVersion)&&this._callCmpFromIframe(e,t)},n.prototype.getCmpData=function(e,t){this._successCallbacks.push(e),this._errorCallbacks.push(t),"function"==typeof e&&"function"==typeof t&&(!this._cmpRequestInProgress&&this._cmpData?this._callSuccessCallbacks(this._cmpData,this._cmpVersion):this._cmpRequestInProgress||this._makeCmpDataRequests())},n.prototype.isRequestInProgress=function(){return this._cmpRequestInProgress},n.prototype.getCmpVersion=function(){return this._cmpVersion},n.prototype.refreshCmpData=function(){this._successCallbacks=[],this._errorCallbacks=[],this._findCmpAndGetData()},n.prototype.exit=function(){return window.removeEventListener("message",this._onMessageBound),this._cmpCallbacks={},this._cmpFrame=null,this._cmpFunction=null,this._cmpVersion=null,this._cmpData=null,this._cmpRequestInProgress=!1,null}})),parcelRequire.register("5iTqT",(function(e,t){$parcel$export(e.exports,"default",(function(){return n}));var i=parcelRequire("e06N2"),n={_pad:function(e,t,i){return void 0===t?e:i?(e+t).slice(-e.length):(t+e).substring(0,e.length)},decodeBase64StringToBitString:function(e){var t=!1,i=e.replace(/-/g,"+").replace(/_/g,"/")+"==".substring(0,3*e.length%4);try{var a=atob(i);t="";for(var s=0;s<a.length;s++){var o=a.charCodeAt(s).toString(2);t+=n._pad("00000000",o,8-o.length)}}catch(e){}return t},decodeBitsToInt:function(e,t,i){return parseInt(e.substr(t,i),2)},decodeBitsToIds:function(e,t,i){return e.substr(t,i).split("").reduce((function(e,t,i){return"1"===t&&-1===e.indexOf(i+1)&&e.push(i+1),e}),[])},ingestConsentIntoPlayout:function(e,t){t=t||{},e&&e.indexOf(".")>-1&&(e=e.split(".")[0]);var a=e?n.decodeBase64StringToBitString(e):"00000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000";switch(n.decodeBitsToInt(a,0,6)){default:case 2:var s=n.decodeBitsToIds(a,152,24),o=n.decodeBitsToIds(a,176,24);if(["disableCookies","restriction_npaOnly","restriction_npcOnly","noStats"].forEach((function(e){void 0!==t[e]&&void 0===t[e+"__orig__"]&&(t[e+"__orig__"]=t[e])})),s){var r=-1===s.indexOf(1),l=-1===s.indexOf(3)||-1===s.indexOf(5);r?t.disableCookies="true":!r&&l?t.disableCookies="true"===t.disableCookies__orig__?"true":"tracking":r||l||(t.disableCookies="true"===t.disableCookies__orig__||"tracking"===t.disableCookies__orig__?t.disableCookies__orig__:"false"),-1===s.indexOf(4)?t.restriction_npaOnly="true":t.restriction_npaOnly="true"===t.restriction_npaOnly__orig__?"true ":"false",-1===s.indexOf(6)?t.restriction_npcOnly="true":t.restriction_npcOnly="true"===t.restriction_npcOnly__orig__?"true":"false";var u=-1===s.indexOf(7)&&-1===o.indexOf(7),d=-1===s.indexOf(8)&&-1===o.indexOf(8);u&&(t.noStats_commercial="true",i.default("[IABConsentFrameworkUtils] no legal basis found for purpose 7")),d&&(t.noStats_content="true",i.default("[IABConsentFrameworkUtils] no legal basis found for purpose 8"))}break;case 1:var c=n.decodeBitsToInt(a,132,6);void 0!==t.disableCookies&&void 0===t.disableCookies__orig__&&(t.disableCookies__orig__=t.disableCookies),t.disableCookies=32&c?16&c?"false":"tracking":"true",void 0!==t.restriction_npaOnly&&void 0===t.restriction_npaOnly__orig__&&(t.restriction_npaOnly__orig__=t.restriction_npaOnly),t.restriction_npaOnly=8&c?"false":"true",void 0!==t.restriction_npcOnly&&void 0===t.restriction_npcOnly__orig__&&(t.restriction_npcOnly__orig__=t.restriction_npcOnly),t.restriction_npcOnly=4&c?"false":"true",void 0!==t.noStats&&void 0===t.noStats__orig__&&(t.noStats__orig__=t.noStats),t.noStats=2&c?"false":"true"}return t}}})),parcelRequire.register("lemI3",(function(e,t){$parcel$export(e.exports,"default",(function(){return a})),parcelRequire("6JR1F");var i=parcelRequire("hGJI5"),n=parcelRequire("3DsR2"),a=function(e,t){this.$element=e,this._opts=t,n.default.getService(this._opts.playerAliasOrId).setInstance("Placement",this),this._spotFound=!1};a.prototype.exit=function(){return n.default.getService(this._opts.playerAliasOrId).setInstance("Placement",null),null},a.prototype.inarticleFindSpot=function(){var e=this;this._playout=this._opts.playoutData;var t=$parcel$interopDefault(i)(window).height(),n=[],a=this._playout.placementDOMSelector;"string"==typeof a&&a&&(a=a.replace(/((?:[\w-]+)?[#.][\w-]+):eq\((\d+)\)/gi,(function(e,t,i){return":nth-child(".concat(parseInt(i)+1," of ").concat(t,")")})).replace(/:eq\((\d+)\)/gi,(function(e,t){return":nth-of-type(".concat(parseInt(t)+1,")")})).replace(/((?:[\w-]+)?[#.][\w-]+):last(?!-)/gi,(function(e,t){return":nth-last-child(1 of ".concat(t,")")})).replace(/:last(?!-)/gi,":last-of-type"));var s=$parcel$interopDefault(i)(a);switch(e.$placementElement=null,this._playout.placementOption){default:break;case"afterSelector":case"appendTo":s&&(e.$placementElement=s[0]);break;case"halfwaySelectors":s&&s.length>0&&(e.$placementElement=s[Math.floor(s.length/2)-1]);break;case"fold":case"foldOrLast":if(s&&s.each((function(e,a){$parcel$interopDefault(i)(this).offset().top>t&&n.push(this)})),n.length>0){var o=s.length-n.length;o>0&&(o-=1),e.$placementElement=s[o]}else s&&s.length>0&&"foldOrLast"==this._playout.placementOption&&(e.$placementElement=s[s.length-1])}return e._movePlayerToSpotFound("appendTo"===this._playout.placementOption),this._spotFound},a.prototype._movePlayerToSpotFound=function(e){null!=this.$placementElement&&(void 0!==this._opts.debugmode&&!0===this._opts.debugmode&&$parcel$interopDefault(i)(this.$placementElement).css({border:"1px dashed red"}).attr("title","This element was found by the Blue Billywig placement DOM-selector"),e?$parcel$interopDefault(i)(this.$placementElement).append(this.$element):this.$element.insertAfter(this.$placementElement),this._spotFound=!0)}})),parcelRequire.register("5rCzW",(function(module,exports){$parcel$export(module.exports,"default",(function(){return Suggest}));var $cYwG5=parcelRequire("cYwG5"),Suggest=function(e,t,i){this._opts=e,this._player=t,"function"==typeof i&&(this._callback=i),this._init()};Suggest.prototype._init=function(){this._jsonLdData=this._getJsonLdData(),this._pageLanguage=this._getLanguage(this._jsonLdData),this._viewedClips=[],this._extraSuggestQuery=this._checkExtraQuery();var e=this._opts.clipListData&&this._opts.clipListData.query;this._searchParams={limit:10,"fq[]":e?'typeSort:"MediaClip" AND ('+e+")":'typeSort:"MediaClip" AND status:"published"'},this._searchParams.query=this._createQuery();try{this._viewedClips=JSON.parse(localStorage.getItem("bb_player_viewed_clips"))||[]}catch(e){}this._search()},Suggest.prototype._getLanguage=function(e){var t="";if("NewsArticle BlogPosting WebPage".split(" ").forEach((function(i){!t&&e[i]&&e[i].inLanguage&&(t=e[i].inLanguage)})),!t){var i=document.querySelector("html");t=this._getMetaContent("locale")||i&&i.getAttribute("lang")||""}return t&&-1!==t.indexOf("-")&&(t=t.split("-")[0]),t.toLowerCase()},Suggest.prototype._search=function(){if(this._opts.publicationData.baseurl){var e=this,t=this._opts.publicationData.baseurl+"/json/search",i=null;$cYwG5.fetchData(t,{data:this._searchParams}).then((function(t){var n=e;if(t&&t.items&&t.items.length){var a=e,s=null;e._viewedClips&&e._viewedClips.length&&t.items.forEach((function(e){!s&&e.id&&-1===a._viewedClips.indexOf(e.id)&&(s=e)})),e._opts.clipListData&&(e._opts.clipListData.items=t.items),e._opts.clipData=s||t.items[0],e._opts.usingSuggest=!0,i=e._opts}"function"==typeof e._callback&&e._callback(i),setTimeout((function(){var e=n;n._player&&n._player.on&&n._player.on("started",(function(){var t=e._player.getClipData();t&&t.id&&e._viewedClips&&e._viewedClips.indexOf&&-1===e._viewedClips.indexOf(t.id)&&(e._viewedClips.push(t.id),localStorage.setItem("bb_player_viewed_clips",JSON.stringify(e._viewedClips)))}))}),500)})).catch((function(t){console.warn("[Suggest] Error in search:",t),"function"==typeof e._callback&&e._callback(null)}))}},Suggest.prototype._createQuery=function(){var e="",t=[],i=this._getMetaContent("keywords"),n=this._getMetaContent("title"),a=this._getMetaContent("description");if(i&&i.length&&(t.push(i.join(" AND ")),t.push(i.join(" "))),n&&(t.push('"'+n.replaceAll('"',"")+'"'),t.push(this._filter(n))),a&&t.push(this._filter(a)),location&&location.pathname){var s=location.pathname.split("/").join(" "),o=this._filter(s);o&&t.push(o)}return this._extraSuggestQuery&&-1===this._extraSuggestQuery.indexOf("^")&&t.unshift(this._extraSuggestQuery),t.forEach((function(e,i){e&&(t[i]="("+e+")^"+15*(t.length-i))})),e+=t.join(" OR "),this._extraSuggestQuery&&-1!==this._extraSuggestQuery.indexOf("^")&&(e+=(e?" OR ":"")+this._extraSuggestQuery),e?e+=" OR *:*^1":(e="*:*",this._searchParams.sort="id desc"),e},Suggest.prototype._getMetaContent=function(e){var t=null,i=document.querySelector('meta[name="'+("keywords"===e?"":"og:")+e+'"]'),n=i&&i.getAttribute("content"),a=this._jsonLdData&&(this._jsonLdData.NewsArticle||this._jsonLdData.BlogPosting);switch(e){default:t=n||"";break;case"title":t=this._jsonLdData.NewsArticle&&this._jsonLdData.NewsArticle.headline||n||document.querySelector("title")&&document.querySelector("title").innerText;break;case"keywords":var s=n&&n.split(",")||a&&a.keywords&&"string"==typeof a.keywords&&a.keywords.split(",")||a&&a.tag;"object"==typeof s&&s.forEach((function(e,t){"string"==typeof e&&(s[t]=e.trim().toLowerCase(),s[t]||s.splice(t,1))})),t=s;break;case"description":t=this._jsonLdData.NewsArticle&&this._jsonLdData.NewsArticle.description||n||document.querySelector("description")&&document.querySelector("description").innerText}return"string"==typeof t&&(t=t.toLowerCase()),t},Suggest.prototype._getJsonLdData=function(){var e=document.querySelectorAll('script[type="application/ld+json"]'),t={};return e&&e.length&&e.forEach((function(e,i){var n;try{n=JSON.parse(e.innerText)}catch(e){}n&&n["@type"]&&(t[n["@type"]]=n)})),t},Suggest.prototype._filter=function(e){if("string"!=typeof e)return"";e=e.toLowerCase().replace(/[-_]/g," ").replace(/[^0-9a-z ]/g,"");var t={en:"a aboard about above according accordingly across actual actually additional additionally after again against all almost along alongside also although always am amid amidst among amongst an and another anti any anybody anyone anything anyway apparent apparently are around as astride at atop away barring be because been before behind below beneath beside besides between beyond both but by can cannot certain certainly circa clear clearly commonly comparable comparative comparatively concerning consequent consequently considering contrarily conversely could cum despite did different do does done down during each eight eighteen eighteenth eighth eightieth eighty either eleven eleventh elsewhere equally especially even every everybody everyone everything evident evidently except excepting excluding few fifteen fifteenth fifth fiftieth fifty finally first five following for fortieth forty four fourteen fourteenth fourth from further furthermore generally get gets getting go going gone got had has have he hence henceforth her here hers herself him himself his honestly how however I if important in incidentally including inside instead into is it its itself just less likely likewise little many may me meanwhile might mine minus more moreover most much must my myself namely near nearly neither never nevertheless next nine nineteen nineteenth ninetieth ninety ninth no nobody none nonetheless nor not nothing notwithstanding now of off often on once one only onto or other others otherwise our ours ourselves out outside over particular particularly per plus prior provided rather re really regard regarding regardless relatively same seem seemingly seems seven seventeen seventeenth seventh seventieth seventy several she should similar similarly since six sixteen sixteenth sixth sixtieth sixty small so some somebody someone something soon specific specific specifically still subsequent subsequently such ten tenth than that the their theirs them themselves then there thereafter therefore these they third thirteen thirteenth thirtieth thirty this those though three through throughout thru thus till to together too toward towards truly twelfth twelve twentieth twenty twice two ultimately under underneath undoubtedly unless unlike until up upon us versus very via vis-a-vis vs was way we well went were what whatever when whenever where whereas wherever whether which whichever while who whoever whom whomever whose why will with within without worse worst would yes yet you your yours yourself yourselves"},i=(t[this._pageLanguage]||t.en).split(" "),n=[];return e&&e.split(" ").forEach((function(e){e&&e.length>3&&isNaN(parseFloat(e))&&-1===i.indexOf(e)&&n.push(e)})),n.join(" ")},Suggest.prototype._checkExtraQuery=function(){var extraSuggestQuery=this._opts.clipListData&&this._opts.clipListData.extraSuggestQuery,q="";try{q=extraSuggestQuery?eval(extraSuggestQuery):""}catch(e){"string"==typeof extraSuggestQuery&&extraSuggestQuery&&(q=extraSuggestQuery)}return q}}));var $42aee1890534d5f8$exports={};parcelRequire("l8sJU").register(JSON.parse('{"5H5Jn":"player.js","8GNqo":"TimelineWidget.3acfc8c8.js","cFisA":"WebGL360Helper.bff0a52b.js","9Z74g":"Html5Sprite360Head.05892668.js","l8sYs":"Html5HLSHelper.c6985702.js","h8ZoP":"Html5HLSDashHelper.59a1a90f.js","c2C6k":"ResizeObserver.d75bce69.js","6V7By":"intersection-observer.3351ffca.js","fwBR9":"APS.3f8eabb3.js","iG6mx":"GooglePublisherTag.b84de084.js","gy46e":"TimelineEngine.20af4419.js","1oO4T":"ItemScope.43c763da.js"}')),parcelRequire("lDGnc");var $6YA9f=parcelRequire("6YA9f"),$27Qiu=parcelRequire("27Qiu"),$7CnHN=parcelRequire("7CnHN"),$fBLaW=parcelRequire("fBLaW"),$eamhc=parcelRequire("eamhc"),$7dai1=parcelRequire("7dai1"),$ajyCG=parcelRequire("ajyCG"),$7gftt=parcelRequire("7gftt"),$kVqNu=parcelRequire("kVqNu"),$jxjxM=parcelRequire("jxjxM");parcelRequire("lDGnc");var $7CnHN=parcelRequire("7CnHN"),$eamhc=parcelRequire("eamhc"),$7dai1=parcelRequire("7dai1"),$cb9cb8f53b272a61$export$918a9776c0a3cf27;!function(e){e.fatal="fatal",e.error="error",e.warning="warning",e.log="log",e.info="info",e.debug="debug",e.critical="critical"}($cb9cb8f53b272a61$export$918a9776c0a3cf27||($cb9cb8f53b272a61$export$918a9776c0a3cf27={}));var $cb9cb8f53b272a61$export$e2103b51b91f1d3=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,$cb9cb8f53b272a61$export$f18e921c0800e6cd=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,$cb9cb8f53b272a61$export$4609cb2a646caff2=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,$cb9cb8f53b272a61$export$27c7e15d453fc0ac="?",$cb9cb8f53b272a61$export$9924a64a4b8b0d58="X-Sentry-Auth",$cb9cb8f53b272a61$export$9cf23d5fcc655403=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function $cb9cb8f53b272a61$var$computeStackTraceFromStackProp(e){if(!e.stack)return null;for(var t,i,n=[],a=e.stack.split("\n"),s=0;s<a.length;++s){if(t=$cb9cb8f53b272a61$export$e2103b51b91f1d3.exec(a[s]))i={filename:t[2]&&0===t[2].indexOf("address at ")?t[2].substr(11):t[2],function:t[1]||$cb9cb8f53b272a61$export$27c7e15d453fc0ac,lineno:t[3]?+t[3]:null,colno:t[4]?+t[4]:null};else if(t=$cb9cb8f53b272a61$export$4609cb2a646caff2.exec(a[s]))i={filename:t[2],function:t[1]||$cb9cb8f53b272a61$export$27c7e15d453fc0ac,lineno:+t[3],colno:t[4]?+t[4]:null};else{if(!(t=$cb9cb8f53b272a61$export$f18e921c0800e6cd.exec(a[s])))continue;0!==s||t[5]||void 0===e.columnNumber||(n[0].column=e.columnNumber+1),i={filename:t[3],function:t[1]||$cb9cb8f53b272a61$export$27c7e15d453fc0ac,lineno:t[4]?+t[4]:null,colno:t[5]?+t[5]:null}}!i.function&&i.lineno&&(i.function=$cb9cb8f53b272a61$export$27c7e15d453fc0ac),n.push(i)}return n.length?{value:$cb9cb8f53b272a61$var$extractMessage(e),type:e.name,stacktrace:{frames:n.reverse()}}:null}function $cb9cb8f53b272a61$var$extractMessage(e){return(e&&e.message||"No error message").split("\n").filter((function(e){return!!e}))[0]}function $cb9cb8f53b272a61$var$computeStackTrace(e){try{var t=$cb9cb8f53b272a61$var$computeStackTraceFromStackProp(e);if(t)return t}catch(e){}return{value:$cb9cb8f53b272a61$var$extractMessage(e),type:e&&e.name,stacktrace:{frames:[]}}}function $cb9cb8f53b272a61$var$uuid4(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}var $cb9cb8f53b272a61$export$81ed3b35b0102f0d=function(){"use strict";function e(t){if($7CnHN.default(this,e),t&&t.dsn){var i=$cb9cb8f53b272a61$export$9cf23d5fcc655403.exec(t.dsn),n=i?i.slice(1):[],a=n[5].split("/"),s=a.slice(0,-1).join("/");this.apiUrl=n[0]+"://"+n[3]+(n[4]?":"+n[4]:"")+(s?"/"+s:"")+"/api/"+a.pop()+"/store/",this.authHeader="Sentry sentry_version=7,sentry_key="+n[1]+(n[2]?",sentry_secret="+n[2]:"")}this.environment=t&&t.environment}return $eamhc.default(e,[{key:"prepare",value:function(e){return $7dai1.default({},this.getRequestBlank(),{exception:{values:[$cb9cb8f53b272a61$var$computeStackTrace(e)]}})}},{key:"report",value:function(e){this.send(this.prepare(e))}},{key:"send",value:function(e){this.apiUrl&&e&&this.createRequest(e)}},{key:"createRequest",value:function(e){var t=new XMLHttpRequest;t.open("POST",this.apiUrl,!0),t.setRequestHeader("Content-type","application/json"),t.setRequestHeader($cb9cb8f53b272a61$export$9924a64a4b8b0d58,this.authHeader||""),t.send(JSON.stringify(e))}},{key:"getRequestBlank",value:function(){return{platform:"javascript",event_id:$cb9cb8f53b272a61$var$uuid4(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}}]),e}();function $56ed3037743c26b6$var$isMatchingPattern(e,t){return"[object RegExp]"===Object.prototype.toString.call(t)?t.test(e):"string"==typeof t&&-1!==e.indexOf(t)}function $56ed3037743c26b6$var$getWindow(){return window}var $56ed3037743c26b6$export$59ac8f2f1b4f4385=function(e){"use strict";$6YA9f.default(i,e);var t=$27Qiu.default(i);function i(e){var n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:$56ed3037743c26b6$var$getWindow();$7CnHN.default(this,i),(n=t.call(this,e)).options=e,n.window=a,n.destroyed=!1,n._state={};var s=n.options||{},o=s.plugins,r=void 0===o?[]:o,l=s.beforeSend,u=void 0===l?function(e){return e}:l,d=s.beforeBreadcrumb,c=void 0===d?function(e){return e}:d,h=s.blacklistUrls,p=void 0===h?[]:h,_=s.ignoreErrors,m=void 0===_?[]:_,f=s.release;return n.plugins=r.map((function(e){return new e($fBLaW.default(n))})),n.beforeSend=u,n.beforeBreadcrumb=c,n.blacklistUrls=p,n.ignoreErrors=m,n.release=f,n}return $eamhc.default(i,[{key:"state",get:function(){return this._state}},{key:"clearState",value:function(){this._state={}}},{key:"setTags",value:function(e){return this.setKeyState("tags",$7dai1.default({},e)),this}},{key:"setTag",value:function(e,t){return this.extendState({tags:$ajyCG.default({},e,t)}),this}},{key:"setExtra",value:function(e,t){return this.extendState({extra:$ajyCG.default({},e,t)}),this}},{key:"setExtras",value:function(e){return this.setKeyState("extra",$7dai1.default({},e)),this}},{key:"setUser",value:function(e){return this.setKeyState("user",$7dai1.default({},e)),this}},{key:"clone",value:function(){var e=new i($7dai1.default({},this.options,{plugins:[]}));return e.extendState(this.state),e}},{key:"withScope",value:function(e){var t=this.clone();e(t),t.destroy(),this.setBreadcrumbs(void 0)}},{key:"addBreadcrumb",value:function(e){this.extendState({breadcrumbs:[$7dai1.default({timestamp:Date.now()/1e3},this.beforeBreadcrumb(e))]})}},{key:"setBreadcrumbs",value:function(e){this.setKeyState("breadcrumbs",e)}},{key:"captureMessage",value:function(e,t){this.send($7dai1.default({},this.getRequestBlank(),{message:e,level:t}))}},{key:"destroy",value:function(){this.destroyed=!0,this.plugins.forEach((function(e){e.destroy&&e.destroy()}))}},{key:"isIgnoredError",value:function(e){var t=this;return!!this.ignoreErrors.length&&this.getPossibleEventMessages(e).some((function(e){return t.ignoreErrors.some((function(t){return $56ed3037743c26b6$var$isMatchingPattern(e,t)}))}))}},{key:"getRequestBlank",value:function(){return $7dai1.default({request:{url:this.window.location.toString(),headers:{"User-Agent":this.window.navigator.userAgent}}},$7gftt.default($kVqNu.default(i.prototype),"getRequestBlank",this).call(this),{sdk:{name:"micro-sentry.javascript.browser",version:"0.0.0"}},this.state)}},{key:"send",value:function(e){this.destroyed||this.isDeniedUrl(e)||this.isIgnoredError(e)||($7gftt.default($kVqNu.default(i.prototype),"send",this).call(this,this.beforeSend($7dai1.default({release:this.release},e))),this.setBreadcrumbs(void 0))}},{key:"getPossibleEventMessages",value:function(e){if(e.message)return[e.message];if(e.exception)try{var t=e.exception.values&&e.exception.values[0]||{},i=t.type,n=void 0===i?"":i,a=t.value,s=void 0===a?"":a;return["".concat(s),"".concat(n,": ").concat(s)]}catch(e){return[]}return[]}},{key:"isDeniedUrl",value:function(e){if(!this.blacklistUrls.length)return!1;var t=this.getEventFilterUrl(e);return!!t&&this.blacklistUrls.some((function(e){return $56ed3037743c26b6$var$isMatchingPattern(t,e)}))}},{key:"getEventFilterUrl",value:function(e){try{if(e.exception){var t=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return t&&t[t.length-1].filename||null}return null}catch(e){return null}}},{key:"extendState",value:function(e){var t=this;this._state=Object.keys(e).reduce((function(i,n){var a=t._state[n],s=Array.isArray(a)?a:null,o=e[n],r=Array.isArray(o)?o:null;return $7dai1.default({},i,$ajyCG.default({},n,s||r?$jxjxM.default(s||[]).concat($jxjxM.default(r||[])):$7dai1.default({},"string"!=typeof a?a:{},"string"!=typeof o?o:{})))}),this._state)}},{key:"setKeyState",value:function(e,t){this._state[e]=t}}]),i}($cb9cb8f53b272a61$export$81ed3b35b0102f0d),$6AtHv=parcelRequire("6AtHv"),$e06N2=parcelRequire("e06N2");if(window.bluebillywig=window.bluebillywig||{},window.bluebillywig._internal=window.bluebillywig._internal||{},window.bluebillywig._internal._sentries=window.bluebillywig._internal._senties||[],-1===window.bluebillywig._internal._sentries.indexOf(void 0)){window.bluebillywig._internal._sentries.push("MAIN");var SAMPLE_RATE=.05,CDN_URL="cdn".concat("prod"===$6AtHv.env?"":"-".concat($6AtHv.env),".bluebillywig.com"),RELEVANT_URL_PARTS=[":1234/index","/player.js","/launchpad",CDN_URL],sentry=new $56ed3037743c26b6$export$59ac8f2f1b4f4385({dsn:"https://a84f663370b17486ba35c3023eb99b81@o4504604721020928.ingest.us.sentry.io/4507021712228352",release:"standardplayer@".concat($6AtHv.release),environment:$6AtHv.env}),handleError=function(e,t){e&&!e._bblogged&&RELEVANT_URL_PARTS.some((function(e){return(null==t?void 0:t.indexOf(e))>-1}))&&(e._bblogged=!0,($e06N2.debugMode||Math.random()<SAMPLE_RATE)&&sentry.report(e))};window.addEventListener("error",(function(e){(null==e?void 0:e.error)&&e.filename&&handleError(e.error,e.filename)})),window.addEventListener("unhandledrejection",(function(e){var t;(null==e||null===(t=e.reason)||void 0===t?void 0:t.fileName)&&e.reason.stack&&handleError(e.reason,e.reason.fileName)}))}parcelRequire("5oGeJ");var $6AtHv=parcelRequire("6AtHv");window.bluebillywig=window.bluebillywig||{},window.bluebillywig._internal=window.bluebillywig._internal||{},window.bluebillywig._internal.playerBuildDate=$6AtHv.playerBuildDate})();
//# sourceMappingURL=player.js.map