1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3823],{37442:function(t,e,i){var n=i(84669),s=i(49777),r={getPosition:function(){return null},getGivenBreaks:function(){return null},getExpectedBreaks:function(){return null},getExpectedPattern:function(){return null},getBreaksTime:function(){return null},getGivenAds:function(){return null},getExpectedAds:function(){return null},getIsVisible:function(){return!0},getAudioEnabled:function(){return null},getIsSkippable:function(){return null},getIsFullscreen:function(){return null},getCampaign:function(){return null},getCreativeId:function(){return null},getProvider:function(){return null},getAdInsertionType:function(){return null},fireClick:function(t){"string"===typeof t&&(t={url:t}),this.emit(n.Event.CLICK,{params:t})},fireQuartile:function(t){this.flags.isStarted&&"number"===typeof t&&t>this.flags.lastQuartileSent&&t<4&&(this.flags.lastQuartileSent++,this.emit(n.Event.QUARTILE,{params:{quartile:t}}))},startChronoView:function(){if(this.getIsVisible()&&!this.plugin.backgroundDetector.isInBackground){var t=this.chronos.viewedMax;0!==t.length&&0===t[t.length-1].stopTime||(t.push(new s),t[t.length-1].start())}},stopChronoView:function(){var t=this.chronos.viewedMax;t[0]&&t.length>0&&0===t[t.length-1].stopTime&&t[t.length-1].stop()},fireManifest:function(t,e){var i={params:t};"string"===typeof t&&(i={params:{errorType:t,errorMessage:e}}),this.emit(n.Event.MANIFEST,i)},fireSkip:function(t){void 0===t&&(t={}),t.skipped=!0,this.fireStop(t)},fireBreakStart:function(t){this.emit(n.Event.PODSTART,{params:t})},fireBreakStop:function(t){this.emit(n.Event.PODSTOP,{params:t})}};t.exports=r},88590:function(t,e,i){var n=i(84669),s=i(56654),r={getPlayrate:function(){return this.flags.isPaused?0:1},getFramesPerSecond:function(){return null},getDroppedFrames:function(){return null},getThroughput:function(){return null},getRendition:function(){return null},getTitle2:function(){return null},getIsLive:function(){return null},getCdnTraffic:function(){return null},getP2PTraffic:function(){return null},getUploadTraffic:function(){return null},getIsP2PEnabled:function(){return null},getSegmentDuration:function(){return null},getHouseholdId:function(){return null},getLatency:function(){return null},getPacketLoss:function(){return null},getPacketSent:function(){return null},getMetrics:function(){return null},getAudioCodec:function(){return null},getVideoCodec:function(){return null},getURLToParse:function(){return null},fireSeekBegin:function(t,e,i){if(this._discardFalseBuffers(),this.plugin&&this.plugin.getIsLive()&&this.plugin.options["content.isLive.noSeek"])return null;if(this.flags.isJoined&&!this.flags.isSeeking){if(this.flags.isBuffering){if(!1===e)return;s.notice("Converting current buffer to seek"),this.chronos.seek=this.chronos.buffer.clone(),this.chronos.buffer.reset(),this.flags.isBuffering=!1}else this.chronos.seek.start();try{this.fireEventsStruct.seek=[],i?this.fireEventsStruct.seek.push(i):this.fireEventsStruct.seek.push("undefinedEvent")}catch(r){}this.flags.isSeeking=!0,this.emit(n.Event.SEEK_BEGIN,{params:t})}},fireSeekEnd:function(t,e){if(this.plugin&&this.plugin.getIsLive()&&this.plugin.options["content.isLive.noSeek"])return null;if(this.flags.isJoined&&this.flags.isSeeking){try{e?this.fireEventsStruct.seek.push(e):this.fireEventsStruct.seek.push("undefinedEvent")}catch(i){}(t=t||{}).triggeredEvents=this.fireEventsStruct.seek,this._shouldSplitView()&&(t.viewIndex=this.plugin.viewTransform._viewIndex),this.cancelSeek(),this.emit(n.Event.SEEK_END,{params:t})}},cancelSeek:function(t){this.flags.isJoined&&this.flags.isSeeking&&(this.flags.isSeeking=!1,this.chronos.seek.stop(),this.monitor&&this.monitor.skipNextTick())},fireEvent:function(t,e,i,s,r){var a=s||{};a.name=t||"",a.dimensions=e||{},a.values=i||{},"boolean"!==typeof r&&(r=!1),r&&(a.hasEndDatetime=r),this.emit(n.Event.VIDEO_EVENT,{params:a})},fireEventEnd:function(t){var e={};e.name=t||"",this.emit(n.Event.VIDEO_EVENT_END,{params:e})}};t.exports=r},15382:function(t,e,i){var n=i(48600),s=i(56654),r=i(73183),a=i(11095),o=i(68267),u=i(36686),d=i(36011),c=i(40461),h=i(84669),l=n.extend({constructor:function(t){this.flags=new u,this.chronos=new o,this.fireEventsStruct={},this.fireEventsStruct.buffer=[],this.fireEventsStruct.seek=[],this.monitor=null,this.plugin=null,this.player=null,this._isAdsAdapter=null,this.setPlayer(t),this.tag=this.player,s.notice("Adapter "+this.getVersion()+" with Lib "+a+" is ready.")},setPlayer:function(t){this.player&&this.unregisterListeners(),"string"===typeof t&&"undefined"!==typeof document?this.player=document.getElementById(t):this.player=t,this.registerListeners()},registerListeners:function(){},unregisterListeners:function(){},dispose:function(){this.stopMonitor(),this.stopReadyStateMonitor(),this.fireStop(),this.unregisterListeners(),this.player=null,this.tag=null}
1,monitorPlayhead:function(t,e,i){this.stopMonitor();var n=0;t&&(n|=d.Type.BUFFER),e&&(n|=d.Type.SEEK),this.monitor&&this.monitor._timer.isRunning?this.monitor.skipNextTick():this.monitor=new d(this,n,i)},stopMonitor:function(){this.monitor&&this.monitor.stop()},monitorReadyState:function(t){this.stopReadyStateMonitor(),this.stateMonitor=new c(this,t)},startReadyStateMonitor:function(){this.stateMonitor&&this.stateMonitor.start()},stopReadyStateMonitor:function(){this.stateMonitor&&this.stateMonitor.stop()},checkReadyState:function(t,e){try{this.plugin&&this.plugin.getReadyStateMonitorEnabled()&&t&&(t>3&&!this.flags.isSeeking?this.flags.isBuffering?this.fireBufferEnd({},e+"-readyState"):this.flags.isJoined||this.fireJoin({},e+"-readyState"):t<4&&!this.flags.isBuffering&&this.fireBufferBegin({},!1,e+"-readyState",!0))}catch(i){s.error("Can't check readyState property correctly")}},getPlayhead:function(){return null},getDuration:function(){return null},getBitrate:function(){return null},getTotalBytes:function(){return null},getTitle:function(){return null},getResource:function(){return null},getPlayerVersion:function(){return null},getPlayerName:function(){return null},getVersion:function(){return a+"-generic-js"},getVideoObject:function(){return null},fireInit:function(t,e){this.plugin&&this.plugin.fireInit(t,e)},fireStart:function(t,e){if(this.plugin&&this.plugin.backgroundDetector&&this.plugin.backgroundDetector.canBlockStartCalls())return null;this.flags.isStarted||(this.flags.isStarted=!0,this.chronos.total.start(),this.chronos.join.start(),e&&((t=t||{}).triggeredEvents=[e]),this.startReadyStateMonitor(),this.emit(h.Event.START,{params:t}))},fireJoin:function(t,e){this.flags.isJoined||this.flags.isStarted||this._isAds()||!this.plugin||!this.plugin.isInitiated||this.fireStart({},e),this.flags.isStarted&&!this.flags.isJoined&&(this.flags.isStarted=!0,this.monitor&&this.monitor.start(),this.flags.isJoined=!0,this.chronos.join.stop(),t=t||{},e&&(t.triggeredEvents=[e]),this._shouldSplitView()&&(t.viewIndex=this.plugin.viewTransform._viewIndex),this.emit(h.Event.JOIN,{params:t}))},firePause:function(t,e){this._discardFalseBuffers(),this.flags.isBuffering&&this.fireBufferEnd(null,"firePauseCall"),this.flags.isJoined&&!this.flags.isPaused&&(this.flags.isPaused=!0,this.chronos.pause.start(),t=t||{},e&&(t.triggeredEvents=[e]),this._shouldSplitView()&&(t.viewIndex=this.plugin.viewTransform._viewIndex),this.emit(h.Event.PAUSE,{params:t}))},fireResume:function(t,e){this._discardFalseBuffers(),this.flags.isJoined&&this.flags.isPaused&&(this.flags.isPaused=!1,this.chronos.pause.stop(),this.monitor&&this.monitor.skipNextTick(),t=t||{},e&&(t.triggeredEvents=[e]),this._shouldSplitView()&&(t.viewIndex=this.plugin.viewTransform._viewIndex),this.emit(h.Event.RESUME,{params:t}))},fireBufferBegin:function(t,e,i,n){if(n=n||!1,this.flags.isJoined&&!this.flags.isBuffering){if(this.flags.isSeeking){if(!e)return;s.notice("Converting current buffer to seek"),this.chronos.buffer=this.chronos.seek.clone(),this.chronos.seek.reset(),this.flags.isSeeking=!1}else this.chronos.buffer.start();try{this.fireEventsStruct.buffer=[],i?this.fireEventsStruct.buffer.push(i):this.fireEventsStruct.buffer.push("undefinedEvent")}catch(r){}this.flags.isBuffering=!0,this.flags.isVideoStateBuffering=n,this._shouldSplitView()&&((t=t||{}).viewIndex=this.plugin.viewTransform._viewIndex),this.emit(h.Event.BUFFER_BEGIN,{params:t})}},fireBufferEnd:function(t,e){if(this.flags.isJoined&&this.flags.isBuffering){try{e?this.fireEventsStruct.buffer.push(e):this.fireEventsStruct.buffer.push("undefinedEvent")}catch(i){}(t=t||{}).triggeredEvents=this.fireEventsStruct.buffer,this._shouldSplitView()&&(t.viewIndex=this.plugin.viewTransform._viewIndex),this.cancelBuffer(),this.emit(h.Event.BUFFER_END,{params:t})}},_discardFalseBuffers:function(){try{this.flags.isBuffering&&this.flags.isVideoStateBuffering&&this._getDeltaBufferTime()<=100&&this.cancelBuffer()}catch(t){}},cancelBuffer:function(t){this.flags.isJoined&&this.flags.isBuffering&&(this.flags.isBuffering=!1,this.flags.isVideoStateBuffering=!1,this.chronos.buffer.stop(),this.monitor&&this.monitor.skipNextTick())},_getDeltaBufferTime:function(){return this.chronos&&this.chronos.buffer?this.chronos.buffer.getDeltaTime(!1):0},fireStop:function(t,e){(this._isAds()||this.plugin&&this.plugin._isStopReady())&&(this._isAds()&&this.flags.isStarted||!this._isAds()&&(this.flags.isStarted||this.plugin&&this.plugin.isInitiated))&&(this.stopMonitor(),this.stopReadyStateMonitor(),this.flags.reset(),this.chronos.total.stop(),this.chronos.join.reset(),this.chronos.pause.stop(),this.chronos.buffer.stop(),this.chronos.seek.stop(),t=t||{},e&&(t.triggeredEvents=[e]),this._shouldSplitView()&&(t.viewIndex=this.plugin.viewTransform._viewIndex),this.emit
1(h.Event.STOP,{params:t}),this.chronos.pause.reset(),this.chronos.buffer.reset(),this.chronos.seek.reset(),this.chronos.viewedMax.splice(0,this.chronos.viewedMax.length))},setIsAds:function(t){this._isAdsAdapter=t},_isAds:function(){return this._isAdsAdapter},fireCasted:function(t,e){t||(t={}),t.casted=!0,this.fireStop(t,e)},fireError:function(t,e,i,n,s){var a=r.buildErrorParams(t,e,i,n);a.code&&delete a.code,a=a||{},s&&(a.triggeredEvents=[s]),this._shouldSplitView()&&(a.viewIndex=this.plugin.viewTransform._viewIndex);var o=this.plugin?this.plugin.options:{};"undefined"!==typeof a.errorCode&&o["errors.ignore"]&&o["errors.ignore"].indexOf(a.errorCode.toString())>-1||(this.emit(h.Event.ERROR,{params:a}),"undefined"!==typeof a.errorCode&&o["errors.fatal"]&&o["errors.fatal"].indexOf(a.errorCode.toString())>-1&&this.fireStop({},s))},fireFatalError:function(t,e,i,n,s){var r=this.plugin?this.plugin.options:{};"undefined"!==typeof t&&r["errors.ignore"]&&r["errors.ignore"].indexOf(t.toString())>-1||(this.monitor&&this.monitor.stop(),this.fireError(t,e,i,n,s),"undefined"!==typeof t&&r["errors.nonFatal"]&&r["errors.nonFatal"].indexOf(t.toString())>-1||this.fireStop({},s))},_shouldSplitView:function(){return this.plugin&&this.plugin.options&&this.plugin.options["session.splitViews"]}},{Event:h.Event});r.assign(l.prototype,i(37442)),r.assign(l.prototype,i(88590)),t.exports=l},68267:function(t,e,i){var n=i(7569),s=i(49777),r=n.extend({constructor:function(){this.reset()},reset:function(){this.join=new s,this.seek=new s,this.pause=new s,this.buffer=new s,this.total=new s,this.viewedMax=[]}});t.exports=r},36686:function(t,e,i){var n=i(7569).extend({constructor:function(){this.reset()},reset:function(){this.isStarted=!1,this.isJoined=!1,this.isPaused=!1,this.isSeeking=!1,this.isBuffering=!1,this.isVideoStateBuffering=!1,this.isEnded=!1,this.isStopped=!1,this.lastQuartileSent=0}});t.exports=n},36011:function(t,e,i){var n=i(7569),s=i(37664),r=i(49777),a=n.extend({constructor:function(t,e,i){this._adapter=t,this._seekEnabled=e&a.Type.SEEK,this._bufferEnabled=e&a.Type.BUFFER,i=i||800,this._chrono=new r,this._lastPlayhead=0,i>0&&(this._timer=new s(this.progress.bind(this),i))},start:function(){this.stop(),this.canBeUsed()&&this._timer.start()},stop:function(){this._lastPlayhead=0,this._timer&&this._timer.stop()},skipNextTick:function(){this._lastPlayhead=0},progress:function(){var t=this._chrono.stop();this._chrono.start();var e=t*a.kBUFFER_THRESHOLD_RATIO,i=t*a.kSEEK_THRESHOLD_RATIO;this._adapter.getPlayrate&&this._adapter.getPlayrate()&&1!==this._adapter.getPlayrate()&&(e*=this._adapter.getPlayrate(),i*=this._adapter.getPlayrate());var n=this._getPlayhead(),s=1e3*Math.abs(this._lastPlayhead-n);s<e?this._bufferEnabled&&this._lastPlayhead>0&&!this._adapter.flags.isPaused&&!this._adapter.flags.isSeeking&&this._adapter.fireBufferBegin(null,!1,"playheadMonitor"):s>i?this._seekEnabled&&this._lastPlayhead>0&&this._adapter.fireSeekBegin(null,!1,"playheadMonitor"):(this._seekEnabled&&this._adapter.fireSeekEnd(null,"playheadMonitor"),this._bufferEnabled&&this._adapter.fireBufferEnd(null,"playheadMonitor")),this._lastPlayhead=n},canBeUsed:function(){var t=this._adapter.plugin;return!(!t||!t.getPlayheadMonitorEnabled()||!this._seekEnabled&&!this._bufferEnabled)&&(!t.getIsLive()||!t.options["content.isLive.noMonitor"])},_getPlayhead:function(){return this._adapter.getPlayhead()}},{Type:{NONE:0,BUFFER:1,SEEK:2},kBUFFER_THRESHOLD_RATIO:.5,kSEEK_THRESHOLD_RATIO:2});t.exports=a},40461:function(t,e,i){var n=i(7569),s=i(56654),r=n.extend({constructor:function(t,e){this._adapter=t,this._videoElement=t.getVideoObject(),this._startedStateCheck=!1,this._intervalCheckId=null,this._intervalMilliseconds=e||300},start:function(){var t=this._adapter.plugin;t&&t.getReadyStateMonitorEnabled()&&this._videoElement&&!this._startedStateCheck&&(this._intervalCheckId=setInterval(this.checkStateProperty.bind(this),this._intervalMilliseconds),this._startedStateCheck=!0)},stop:function(){try{this._startedStateCheck&&this._intervalCheckId&&clearInterval(this._intervalCheckId),this._intervalCheckId=null,this._startedStateCheck=!1}catch(t){s.error("Produced error stopping the network monitor")}},checkStateProperty:function(t){try{this._videoElement&&this._adapter&&this._videoElement.readyState&&(this._videoElement.readyState>3&&!this._adapter.flags.isSeeking?this._adapter.flags.isBuffering?this.fireBufferEnd({},"stateMonitor"):this._adapter.flags.isJoined||this.fireJoin({},"stateMonitor"):this._videoElement.readyState<4&&!this._adapter.flags.isBuffering&&this.fireBufferBegin({},!1,"stateMonitor",!0))}catch(t){}}});t.exports=r}
1,49777:function(t,e,i){var n=i(7569).extend({constructor:function(){this.reset()},reset:function(){this.startTime=0,this.stopTime=0,this.pauseTime=0,this.offset=0},getDeltaTime:function(t){var e=-1,i=(new Date).getTime();if(this.startTime){t&&!this.stopTime&&(this.stopTime=i);var n=this.pauseTime?i-this.pauseTime:0,s=this.stopTime?this.stopTime:i;e=this.offset-n+(s-this.startTime)}return e},start:function(){this.startTime=(new Date).getTime(),this.stopTime=0,this.offset=0},stop:function(){return this.pauseTime&&this.resume(),this.stopTime=(new Date).getTime(),this.startTime?this.offset+(this.stopTime-this.startTime):-1},pause:function(){this.pauseTime=(new Date).getTime()},resume:function(){this.offset-=(new Date).getTime()-this.pauseTime,this.pauseTime=0},clone:function(){var t=new n;return t.startTime=this.startTime,t.stopTime=this.stopTime,t.offset=this.offset,t}});t.exports=n},6596:function(t,e,i){var n=i(7569),s=i(56654),r=i(5013),a=i(81935),o=n.extend({constructor:function(t){this.transforms=[],this.pluginRef=t,this._requests=[]},sendRequest:function(t,e,i){t&&("function"===typeof e&&t.on(r.Event.SUCCESS,e,i),this._registerRequest(t))},buildRequest:function(t,e,i,n){var s=new r(t,e,i=i||{});"function"===typeof n&&s.on(r.Event.SUCCESS,n),this._registerRequest(s)},addTransform:function(t){t.parse&&t.isBlocking?(this.transforms.push(t),t.on(a.Event.DONE,this._processRequests.bind(this))):s.warn(t+" is not a valid RequestTransform.")},removeTransform:function(t){var e=this.transforms.indexOf(t);-1!==e?this.transforms.splice(e,1):s.warn("Trying to remove unexisting Transform '"+t+"'.")},_registerRequest:function(t){if(this.pluginRef){var e=this.pluginRef.options;e.authToken&&(t.options.requestHeaders.Authorization=e.authType+" "+e.authToken)}this._requests.push(t),this._processRequests()},_processRequests:function(){var t=this._requests;this._requests=[];for(var e=[];t.length;){var i=t.shift(),n=this._transform(i);n===a.STATE_NO_BLOCKED?(this.pluginRef&&(i.host=this.pluginRef.getHost()),i.send()):n===a.STATE_BLOCKED&&e.push(i)}for(;e.length;)this._requests.push(e.shift())},_transform:function(t){var e=a.STATE_NO_BLOCKED;
1return this.transforms.forEach((function(i){i.isBlocking(t)?e=a.STATE_BLOCKED:(i.parse(t),i.getState()===a.STATE_OFFLINE&&(e=a.STATE_OFFLINE))})),e}});t.exports=o},5013:function(t,e,i){var n=i(7569),s=i(56654),r=i(73183),a=n.extend({constructor:function(t,e,i,n){this.xhr=this.createXHR(),this.host=t||"",this.service=e||"",this.params=i||{},this.options=r.assign({},a.defaultOptions,n),this.retries=0,this.sendPostRequest=!1,this.preparedPostRequest=!1,this.options.cache||this.setParam("timemark",(new Date).getTime())},createXHR:function(){var t={};try{t=XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP")}catch(e){s.error(e)}return t},getXHR:function(){return this.xhr},getResponse:function(){return this.xhr.response},getResponseText:function(){return this.xhr.responseText},getResponseHeaders:function(){return this.xhr.getAllResponseHeaders()},getUrl:function(){return this.host+this.service+this.getParamString()},on:function(t,e,i){return this.xhr.addEventListener?this.xhr.addEventListener(t,e.bind(this,this,i)):t===a.Event.SUCCESS&&(this.xhr.onreadystatechange=function(){4===this.xhr.readyState&&e.bind(this,this,i)}.bind(this)),this},off:function(t,e){return this.xhr.removeEventListener(t,e),this},getParamString:function(){try{var t="?";for(var e in this.params){var i=this.params[e];if(null!==i&&"object"===typeof i){var n=JSON.stringify(i);"{}"!==n&&(t+=encodeURIComponent(e)+"="+encodeURIComponent(n)+"&")}else null!==i&&"undefined"!==typeof i&&""!==i&&(t+=encodeURIComponent(e)+"="+encodeURIComponent(i)+"&")}return t.slice(0,-1)}catch(r){return s.error(r),""}},getParam:function(t){return this.params[t]},setParam:function(t,e){return this.params[t]=e,this},setBody:function(t){this.body=t},setPostRequest:function(t){this.sendPostRequest=t},getParamsForPostMessages:function(){var t={};try{var e=this.getParam("timemark"),i=this.getParam("code"),n=this.getParam("sessionRoot"),r=this.getParam("sessionId");e&&(t.timemark=e),i&&(t.code=i),n&&(t.sessionRoot=n),r&&(t.sessionId=r)}catch(a){s.error(a)}return t},send:function(){try{try{this.sendPostRequest&&!this.preparedPostRequest&&(this.options.method="POST",this.body=JSON.stringify(this.params),this.params=this.getParamsForPostMessages(),this.preparedPostRequest=!0)}catch(i){}if(this.xhr.open(this.options.method,this.getUrl(),!0),this.options.requestHeaders)for(var t in this.options.requestHeaders)this.options.requestHeaders.hasOwnProperty(t)&&this.xhr.setRequestHeader(t,this.options.requestHeaders[t]);if(this.options.retryAfter>0&&this.options.maxRetries>0){0===this.retries&&this.on(a.Event.ERROR,function(){if(this.retries>=this.options.maxRetries)s.error('Aborting failed request "'+this.service+'". Max retries reached.');else{s.warn('YBRequest "'+this.service+'" failed. Retry '+(this.retries+1)+" of "+this.options.maxRetries+" in "+this.options.retryAfter+"ms.");try{setTimeout(function(){this.retries+=1,this.send()}.bind(this),this.options.retryAfter)}catch(i){"undefined"!==typeof atv?atv.setTimeout(function(){this.retries+=1,this.send()}.bind(this),this.options.retryAfter):s.error(i)}}}.bind(this))}for(var e in s.logLevel<=s.Level.VERBOSE&&s.verbose("XHR Req: "+this.getUrl()),a._globalListeners)a._globalListeners[e].forEach(function(t){this.on(e,t)}.bind(this));return this.xhr.send(this.body)}catch(i){s.error(i)}}},{Event:{SUCCESS:"load",LOAD:"load",ERROR:"error",ABORT:"abort"},defaultOptions:{method:"GET",requestHeaders:{},maxRetries:3,retryAfter:5e3,cache:!1},_globalListeners:{},onEvery:function(t,e){a._globalListeners[t]=a._globalListeners[t]||[],a._globalListeners[t].push(e)},offEvery:function(t,e){if(a._globalListeners[t]){var i=a._globalListeners[t].indexOf(e);-1!==i&&a._globalListeners[t].splice(i,1)}}});t.exports=a},84628:function(t,e,i){var n=i(81935),s=i(96229),r=n.extend({_services:[s.Service.INIT,s.Service.START,s.Service.OFFLINE_EVENTS],isBlocking:function(t){if(this._isBusy&&null!=t)if(-1!==this._services.indexOf(t.service))this.done();else if(t.service===s.Service.ERROR)return!1;return n.prototype.isBlocking.apply(this,arguments)}});t.exports=r}
1,98548:function(t,e,i){var n=i(81935),s=n.extend({constructor:function(t,e){this._sendRequest=!1,this._isBusy=!1,this.plugin=t,this.session=e,this.transformName="Offline"},parse:function(t){t&&this.plugin.offlineStorage&&this.plugin.offlineStorage.addEvent(t.service,t.params)},hasToSend:function(t){return!1},getState:function(){return n.STATE_OFFLINE}});t.exports=s},67897:function(t,e,i){var n=i(81935),s=i(23786),r=i(14011),a=i(18233),o=i(92153),u=i(27294),d=i(75269),c=i(56654),h=i(96229),l=n.extend({constructor:function(t){l.__super__.constructor.apply(this,arguments),this._plugin=t,this._realResource=null,this._transportFormat=null,this._initResource=null,this._cdnName=null,this._cdnNodeHost=null,this._cdnNodeTypeString=null,this._cdnNodeType=null,this._responses={},this._isBusy=!1,this.transformName="Resource"},getResource:function(){return this._realResource},_getInitialCdnResource:function(){return this._realResource||this._initResource},getTransportFormat:function(){return this._transportFormat},getCdnName:function(){return this._cdnName},getNodeHost:function(){return this._cdnNodeHost},getNodeTypeString:function(){return this._cdnNodeTypeString},getNodeType:function(){return this._cdnNodeType},init:function(t){t?this._isBusy||(this._isBusy=!0,this._initResource=t,this._parseManifestEnabled=this._plugin.isParseManifest(),this._cdnEnabled=this._plugin.isParseCdnNode(),this._cdnList=this._plugin.getParseCdnNodeList().slice(),r.setBalancerHeaderName(this._plugin.getParseCdnNodeNameHeader(),this._plugin.getParseNodeHeader()),this._setTimeout(),this._parseManifestEnabled?this._isFinalUrl(this._initResource)?(this._realResource=this._initResource,this.done()):this.parseManifest():this._parseCDN()):this.done()},_isFinalUrl:function(t){var e=[".ts",".mp4",".m4s",".cmfv",".mp3"];for(var i in t=t||"",e){var n=e[i];if(t.lastIndexOf(n)===t.length-n.length)return!0}return!1},_setTimeout:function(){var t=function(){this._isBusy&&(this.done(),c.warn("ResourceTransform has exceeded the maximum execution time (3s) and will be aborted."))}.bind(this);try{this._parseTimeout=setTimeout(t,3e3)}catch(e){"undefined"!==typeof atv?this._parseTimeout=atv.setTimeout(t,3e3):c.error(e)}},parseManifest:function(t,e){var i=this._plugin.options["parse.manifest.auth"],n=this._plugin.isParseLocationHeaderGetRequest(),r=this._plugin.isParseManifest(),a=this._plugin.options["parse.manifest.lastChunk"]||!1,u=new d(i);u.setGetRequest(r||n);var c=new o(i);c.setParseLastChunk(a);var h=new s(i);h.setParseLastChunk(a);var l=[u,c,h];this._parseManifest(l,t,e||this._initResource)},_parseManifest:function(t,e,i,n){if(t.length>0){var s=t[0];s.shouldExecute(e)?(s.on(u.Event.DONE,function(){this._parseManifest(t.slice(1,t.length),s.getLastManifest(),s.getResource(),s.getTransportFormat()||n)}.bind(this)),s.parse(i,e)):this._parseManifest(t.slice(1,t.length),e,i,n)}else this._transportFormat=n,this._realResource=i,this._parseCDN()},_parseCDN:function(){if(this._plugin.isCdnSwitch())this.switchDetector=new a(this._plugin),this.switchDetector.on(a.Events.DONE,function(t){this._cdnName=t.data,this.done()}.bind(this)),this.switchDetector.on(a.Events.ERROR,function(){this.done()}.bind(this)),this.switchDetector.init();else if(this._cdnEnabled&&this._cdnList.length>0){var t=this._cdnList.shift();if(this.getNodeHost())return;var e=r.create(t);if(e){var i=this._plugin.isCDNParserHeaderGetRequest()?"GET":"HEAD";e.setRequestMethod(i),e.on(r.Event.DONE,function(){this._responses=e.getResponses(),this._cdnName=e.getParsedCdnName(),this._cdnNodeHost=e.getParsedNodeHost(),this._cdnNodeTypeString=e.getParsedNodeTypeString(),this._cdnNodeType=e.getParsedNodeType(),this.getNodeHost()?this.done():this._parseCDN()}.bind(this)),e.parse(this._getInitialCdnResource(),this._responses)}else this._parseCDN()}else this.done()},parse:function(t){if(t.service===h.Service.START){var e=this._plugin.requestBuilder.lastSent;e.parsedResource=t.params.parsedResource=this.getResource()||t.params.parsedResource,e.transportFormat=t.params.transportFormat=this.getTransportFormat()||t.params.transportFormat,this._cdnEnabled&&(e.cdn=t.params.cdn=t.params.cdn||this.getCdnName(),e.nodeHost=t.params.nodeHost=this.getNodeHost()||t.params.nodeHost,e.nodeType=t.params.nodeType=this.getNodeType()||t.params.nodeType,e.nodeTypeString=t.params.nodeTypeString=this.getNodeTypeString()||t.params.nodeTypeString)}}});t.exports=l}
1,18233:function(t,e,i){var n=i(48600),s=i(56654),r=i(5013),a=n.extend({constructor:function(t){this.plugin=t,this.headerName="x-cdn"},init:function(){var t=null;this.plugin&&(t=this.plugin.getAdapter()&&this.plugin.getAdapter().getURLToParse()?this.plugin.getAdapter().getURLToParse():this.plugin.getResource()),this.plugin&&this.plugin.getAdapter()&&this.plugin.getAdapter().flags.isStarted&&this._request(t)},done:function(t){this.emit(a.Events.DONE,t)},error:function(){this.emit(a.Events.ERROR)},_successfulRequest:function(t){setTimeout(this.init.bind(this),1e3*parseInt(this.plugin.options["parse.cdnTTL"]));var e=t.getResponseHeaders().split("\n"),i=null;for(var n in e){var s=e[n],r=s.indexOf(this.headerName);r>-1&&(i=s.substring(r+this.headerName.length+1,s.length-1).replace(" ",""))}this.done(i)},_failedRequest:function(){setTimeout(this.init.bind(this),1e3*parseInt(this.plugin.options["parse.cdnTTL"])),s.warn("CDN switch detection request failed"),this.error()},_request:function(t){var e=new r(t,null,null,{method:"HEAD",cache:!0});e.on(r.Event.SUCCESS,this._successfulRequest.bind(this)),e.on(r.Event.ERROR,this._failedRequest.bind(this)),e.send()}},{Events:{DONE:"done",ERROR:"error"}});t.exports=a},14011:function(t,e,i){var n=i(48600),s=i(56654),r=i(73183),a=i(5013),o=n.extend({constructor:function(t){this._options=r.assign({cdnName:null,parsers:[],requestMethod:"HEAD",requestHeaders:{},parseType:function(){return 0}},t),this._responses={}},done:function(){this.emit(o.Event.DONE)},addParser:function(t){return this._options.parsers.push(t),this},setCdnName:function(t){return this._options.cdnName=t,this},setRequestMethod:function(t){return this._options.requestMethod=t,this},setRequestHeader:function(t,e){return this._options.requestHeaders[t]=e,this},setParseType:function(t){return this._options.parseType=t,this},getParsedCdnName:function(){return this._cdnName},getParsedNodeHost:function(){return this._cdnNodeHost},getParsedNodeTypeString:function(){return this._cdnNodeTypeString},getParsedNodeType:function(){return this._cdnNodeType},getResponses:function(){return this._responses},parse:function(t,e){this._responses=e||{};var i=JSON.stringify(this._options.requestHeaders);this._responses[i]?this._parseResponse(this._responses[i]):this._requestResponse(t)},_requestResponse:function(t){var e=JSON.stringify(this._options.requestHeaders),i="{}"!==e,n=new a(t,null,null,{method:this._options.requestMethod,maxRetries:0,requestHeaders:this._options.requestHeaders,cache:!0});n.on(a.Event.SUCCESS,function(t){this._responses[e]=t.getResponseHeaders(),this._parseResponse(this._responses[e])}.bind(this)),n.on(a.Event.ERROR,function(e){i?(this._options.requestHeaders={},this._requestResponse(t)):this.done()}.bind(this)),n.send()},_parseResponse:function(t){this._options.parsers.forEach(function(e){if("string"===typeof e.headerName)this._parseHeaderResponse(t,e,e.headerName);else if(Array.isArray(e.headerName))for(var i=0,n=e.headerName.length;i<n;i++){var s=e.headerName[i];"string"===typeof s&&this._parseHeaderResponse(t,e,s)}}.bind(this)),this.done()},_parseHeaderResponse:function(t,e,i){i&&(i=i?i.toLowerCase():"",t.split("\n").forEach(function(t){var n=t.indexOf(":");-1!==n&&(t.slice(0,n).toLowerCase()===i&&this._executeParser(e,t.slice(n+1)))}.bind(this)))},_executeParser:function(t,e){try{var i=t.regex.exec(e.trim());if(null!==i)switch(this._options.cdnName&&(this._cdnName=this._options.cdnName),t.element){case o.ElementType.HOST:this._cdnNodeHost=i[1];break;case o.ElementType.TYPE:this._cdnNodeTypeString=i[1],this._cdnNodeType=this._options.parseType(this._cdnNodeTypeString);break;case o.ElementType.HOST_AND_TYPE:this._cdnNodeHost=i[1],this._cdnNodeTypeString=i[2],this._cdnNodeType=this._options.parseType(this._cdnNodeTypeString);break;case o.ElementType.TYPE_AND_HOST:this._cdnNodeTypeString=i[1],this._cdnNodeType=this._options.parseType(this._cdnNodeTypeString),this._cdnNodeHost=i[2];break;case o.ElementType.NAME:this._cdnName=i[1].toUpperCase()}}catch(n){s.warn("CDN parsing for "+this._options.cdnName+" could not parse header value "+e)}},shouldExecute:function(){return!0}},{Event:{DONE:"done"},ElementType:{HOST:"host",TYPE:"type",HOST_AND_TYPE:"host+type",TYPE_AND_HOST:"type+host",NAME:"name"},_cdnConfigs:{},setBalancerHeaderName:function(t,e){o._cdnConfigs.Balancer.parsers[0].headerName=t,o._cdnConfigs.Balancer.parsers[1].headerName=e},create:function(t){if(o._cdnConfigs[t])return new o(o._cdnConfigs[t]);s.warn("Tried to create an unexisting CdnParser named "+t)},add:function(t,e){o._cdnConfigs[t]=e}});o.add("Level3",i(54659)),o.add("Cloudfront",i(536)),o.add("Akamai",i(27977)),o.add("Highwinds",i(46415)),o.add("Fastly",i(80966)),o.add("Telefonica",i(91559)),o.add("Amazon",i(67988)),o.add("Edgecast",i(39031)),o.add("Balancer",i(98666)),o.add("NosOtt",i(3072)),t.exports=o},27977:function(t){t.exports={cdnName:"AKAMAI",parsers:[{element:"type+host",headerName:"X-Cache",regex:/(.+)\sfrom.+AkamaiGHost\/(.+)\).+/},{element:"host",headerName:"akamai-mon-iucid-del",regex:/(.*)/},{element:"type",headerName:"akamai-cache-status",regex:/(.+)\sfrom\schild/}],requestHeaders:{Pragma:"akamai-x-cache-on"},parseType:function(t){var e=t.toLowerCase();return-1!==e.indexOf("hit")?1:-1!==e.indexOf("miss")?2:0}}},67988:function(t){t.exports={cdnName:"AMAZON",parsers:[{element:"host",headerName:"x-amz-cf-pop",regex:/(.+)/},{element:"type",headerName:"x-cache",regex:/(.+)\sfrom.+/}],parseType:function(t){return-1!==t.toLowerCase().indexOf("hit")?1:-1!==t.toLowerCase().indexOf("miss")?2:0}}},98666:function(t){t.exports={parsers:[{element:"name",headerName:null,regex:/(.+)/},{element:"host",headerName:null,regex:/(.+)/}]}},536:function(t){t.exports={cdnName:"CLOUDFRT",parsers:[{element:"host",headerName:"X-Amz-Cf-Id",regex:/(.+)/},{element:"type",headerName:"X-Cache",regex:/(\S+)\s.+/}],parseType:function(t){switch(t){case"Hit":return 1;case"Miss":return 2;default:return 0}}}},39031:function(t){t.exports={cdnName:"EDGECAST",parsers:[{element:"host",headerName:"Server",regex:/\((.+)\/.+\)/},{element:"type",headerName:"X-Cache",regex:/(.+)/}],parseType:function(t){return"HIT"===t?1:2}}},80966:function(t){t.exports={cdnName:"FASTLY",parsers:[{element:"host",headerName:"X-Served-By",regex:/([^,\s]+)$/},{element:"type",headerName:"X-Cache",regex:/([^,\s]+)$/}],parseType:function(t){switch(t){case"HIT":return 1;case"MISS":return 2;default:return 0}}}},46415:function(t){t.exports={cdnName:"HIGHNEGR",parsers:[{element:"host+type",headerName:"X-HW",regex:/.+,[0-9]+\.(.+)\.(.+)/}],parseType:function(t){switch(t){case"c":case"x":return 1;default:return 2}}}},54659:function(t){t.exports={cdnName:"LEVEL3",parsers:[{element:"host+type",headerName:"X-WR-Diag",regex:/Host:(.+)\sType:(.+)/}],requestHeaders:{"X-WR-Diag":"host"}
1,parseType:function(t){if(t){if(0===t.indexOf("TCP_HIT")||0===t.indexOf("TCP_MEM_HIT")||0===t.indexOf("TCP_IMS_HIT"))return 1;if(0===t.indexOf("TCP_MISS"))return 2}return 0}}},3072:function(t){t.exports={cdnName:"NOSOTT",parsers:[{element:"host",headerName:"X-NOS-Server",regex:/(.+)/},{element:"type",headerName:"X-Cache",regex:/(.*)/}],parseType:function(t){switch(t){case"Hit":return 1;case"Miss":return 2;default:return 0}}}},91559:function(t){t.exports={cdnName:"TELEFO",parsers:[{element:"host+type",headerName:"x-tcdn",regex:/Host:(.+)\sType:(.+)/}],requestHeaders:{"x-tcdn":"host"},parseType:function(t){if(t){if(-1!==t.indexOf("p")||-1!==t.indexOf("c"))return 1;if(-1!==t.indexOf("i")||-1!==t.indexOf("m"))return 2}return 0}}},92153:function(t,e,i){var n=i(5013),s=i(27294),r=i(56654),a=i(86860),o=s.extend({parse:function(t,e){if(e)this.parseLocation(e,t);else{var i=new n(t,null,null,{cache:!0,requestHeaders:this._headers});i.on(n.Event.SUCCESS,function(e){this.parseLocation(e,t)}.bind(this)),i.on(n.Event.ERROR,function(t){this.done()}.bind(this)),i.send()}},parseLocation:function(t,e){this.iterations--;var i=new RegExp(/<Location>([\s\S]+)<\/Location>/);try{this._lastManifest=t;var n=t.getResponseText(),s=i.exec(n);if(s&&s[1])var a=this._htmlDecode(s[1].replace("\n",""));a&&a!==e&&this.iterations>0?this.parse(a):this.parseFinalResource(n,e)}catch(o){r.warn("Dash parse failed"),this.done()}},_htmlDecode:function(t){if("undefined"!==typeof document&&"function"===typeof document.createElement){var e=document.createElement("textarea");return e.innerHTML=t,e.childNodes&&e.childNodes.length?e.childNodes[0].nodeValue:t}return t},parseFinalResource:function(t,e){var i=new RegExp(/<BaseURL>[\r\n]*(.*?)[\r\n]*<\/BaseURL>/g),n=new RegExp(/<SegmentTemplate[\s\S]*?media="([^"]+)"/g),s=new RegExp(/<SegmentURL[\s\S]*?media="([^"]+)"/g),a=null;try{if(this._parseLastChunk){for(var o,u=[];null!==(o=i.exec(t));)o[1]&&this._isFullUrl(o[1])&&u.push(o);if(0===u.length)for(;null!==(o=n.exec(t));)o[1]&&u.push(o);if(0===u.length)for(;null!==(o=s.exec(t));)o[1]&&u.push(o);u.length>0&&(a=u[u.length-1])}else{var d=/<BaseURL>[\r\n]*(.*?)[\r\n]*<\/BaseURL>/.exec(t),c=/<SegmentTemplate[\s\S]*media="([^"]+)/.exec(t),h=/<SegmentURL[\s\S]*media="([^"]+)/.exec(t);a=d||c||h}this._getManifestMetadata(t),a&&a[1]&&this._isFullUrl(a[1])?a[1].indexOf('"')>0?this._realResource=a[1].substr(0,a[1].indexOf('"')).replace("\n",""):this._realResource=a[1].replace("\n",""):this._realResource=e}catch(l){r.warn("Dash manifest parse failed")}this.done()},_getManifestMetadata:function(t){try{var e=new RegExp(/<AdaptationSet[\s\S]*mimeType="video\/([^"]+)/).exec(t),i=null;switch(e[1]){case"mp4":case"m4s":i=a.MP4;break;case"mp2t":i=a.MPEG2;break;case"cmfv":i=a.CMF}this._transportFormat=i}catch(n){r.warn("Couldnt find the transport format")}},_isFullUrl:function(t){return-1!==t.indexOf("http")},shouldExecute:function(t){var e=!0;t&&(e=-1!==t.getResponseText().indexOf("<MPD"));return e}});t.exports=o},23786:function(t,e,i){var n=i(5013),s=i(27294),r=i(56654),a=i(86860),o=s.extend({parse:function(t,e,i){i=i||"";var s=null;try{var o=this._findVideoStreamUrl(t);if(o)s=o;else{var u=t.replaceAll(",URI=","\n").replaceAll('"',"").replaceAll(",","\n");if(this._parseLastChunk){for(var d,c=[],h=/((\S*?)(\.m3u8|\.m3u|\.ts|\.m4s|\.mp4|\.cmfv|\.fmp4)((\?|;)\S*|\n|\r|$))/gi;null!==(d=h.exec(u));)c.push(d);if(c.length>0)s=c[c.length-1];else{var l=/((\S*?)(\.m4a|\.aac|\.mp3|\.ac3|\.ec3)((\?|;)\S*|\n|\r|$))/gi;for(c=[];null!==(d=l.exec(u));)c.push(d);c.length>0&&(s=c[c.length-1])}}else(s=/((\S*?)(\.m3u8|\.m3u|\.ts|\.m4s|\.mp4|\.cmfv|\.fmp4)((\?|;)\S*|\n|\r|$))/i.exec(u))||(s=/((\S*?)(\.m4a|\.aac|\.mp3|\.ac3|\.ec3)((\?|;)\S*|\n|\r|$))/i.exec(u))}}catch(v){r.warn("Parse HLS Regex failed",v),this.done()}if(null!==s){var p=s[1].trim(),f="",g=i.lastIndexOf("/");if(0!==p.indexOf("http")&&-1!==g){if("/"===p[0]&&"/"!==p[1]){var m=i.indexOf("/")+1;m+=i.substr(m,i.length).indexOf("/")+1,m+=i.substr(m,i.length).indexOf("/"),p=i.slice(0,m)+p}else p=i.slice(0,g)+"/"+p;f=i.slice(0,g)+"/"}if(".m3u8"===s[3]||".m3u"===s[3])if(e)this._parseWithManifest(e,f,s);else{var _=new n(p,null,null,{cache:!0,requestHeaders:this._headers});_.on(n.Event.SUCCESS,function(t){this._parseWithManifest(t,f,s)}.bind(this)),_.on(n.Event.ERROR,function(t){this.done()}.bind(this)),_.send()}else{switch(s[3]){case".mp4":case".m4s":case".fmp4":case".m4a":case".aac":case".mp3":case".ac3":case".ec3":this._transportFormat=a.MP4;break;case".ts":this._transportFormat=a.MPEG2;break;case".cmfv":this._transportFormat=a.CMF}this._realResource=p,this.done()}}else this.done()}
1,_parseWithManifest:function(t,e,i){this._lastManifest=t,this.parse(t.getResponseText(),null,e+i[2])},shouldExecute:function(t){var e=!0;t&&(e=-1!==t.getResponseText().indexOf("#EXTM3U"));return e},_findVideoStreamUrl:function(t){if(-1===t.indexOf("#EXTM3U"))return null;for(var e=t.split("\n"),i=0;i<e.length-1;i++){var n=e[i].trim();if(0===n.indexOf("#EXT-X-STREAM-INF:")){var s=-1!==n.indexOf("RESOLUTION="),r=-1!==n.indexOf("avc1.")||-1!==n.indexOf("hev1.")||-1!==n.indexOf("hvc1.");if(s||r){var a=e[i+1].trim(),o=/((\S*?)(\.m3u8|\.m3u)((\?|;)\S*|$))/i.exec(a);if(o)return o}}}return null}});t.exports=o},75269:function(t,e,i){var n=i(5013),s=i(27294).extend({setGetRequest:function(t){this._getRequest=t},parse:function(t,e){if(e)this._parseWithManifest(e);else{this._realResource=t;var i={cache:!0,requestHeaders:this._headers};this._getRequest||(i.method="HEAD");var s=new n(t,null,null,i);s.on(n.Event.SUCCESS,function(t){this._parseWithManifest(t)}.bind(this)),s.on(n.Event.ERROR,function(t){this.done()}.bind(this)),s.send()}},_parseWithManifest:function(t){this._lastManifest=t;var e=t.getResponseHeaders(),i=!1;t&&t.xhr&&t.xhr.responseURL&&t.xhr.responseURL!==this._realResource?(this._realResource=t.xhr.responseURL,this.parse(this._realResource),i=!0):e.split("\n").forEach(function(t){t.startsWith("Location:")&&(this._realResource=t.slice(10),this.parse(this._realResource),i=!0)}.bind(this)),i||this.done()}});t.exports=s},27294:function(t,e,i){var n=i(48600).extend({constructor:function(t){this._realResource=null,this._lastManifest=null,this._transportFormat=null,this.iterations=3,this._headers=t,this._parseLastChunk=!1},setParseLastChunk:function(t){this._parseLastChunk=t},done:function(){this.iterations=3,this.emit(n.Event.DONE)},parse:function(t,e){},getResource:function(){return this._realResource},getTransportFormat:function(){return this._transportFormat},getLastManifest:function(){return this._lastManifest},shouldExecute:function(t){return!0}},{Event:{DONE:"done"}});t.exports=n},81935:function(t,e,i){var n=i(48600).extend({constructor:function(){this._isBusy=!0,this._sendRequest=!0,this.transformName="Transform"},parse:function(t){},isBlocking:function(t){return this._isBusy},done:function(){this._isBusy=!1,this.emit(n.Event.DONE)},hasToSend:function(t){return this._sendRequest},getState:function(){return this._sendRequest?this._isBusy?this.STATE_BLOCKED:this.STATE_NO_BLOCKED:this.STATE_OFFLINE}},{STATE_OFFLINE:2,STATE_BLOCKED:1,STATE_NO_BLOCKED:0,Event:{DONE:"done"}});t.exports=n},46e3:function(t,e,i){var n=i(5013),s=i(81935),r=i(56654),a=i(73183),o=i(96229),u=s.extend({constructor:function(t,e){s.prototype.constructor.apply(this,arguments),this.response={},this._viewIndex=(new Date).getTime(),this._session=e,this._httpSecure=t.options["app.https"],this._plugin=t,this.transformName="View"},init:function(){if(this._plugin.options&&this._plugin.options.offline)return this.response.host="OFFLINE",this.response.code="OFFLINE",this.response.pingTime=60,this.response.beatTime=60,this.done(),null;if(this._plugin.storage.isEnabled()&&((new Date).getTime()<this._plugin.sessionExpire+(Number(this._plugin.getDataTime())||0)&&this._plugin.getStoredData()))return this.setData(this._plugin.getStoredData()),null;var t=o.Service.DATA,e={outputformat:"json"};null!==(e=this._plugin.requestBuilder.buildParams(e,t))&&(r.notice(t+" "+e.system),"nicetest"===e.system&&r.error("No accountCode has been set. Please set your accountCode inside plugin's options."),new n(this._plugin.getHost(),t,e).on(n.Event.SUCCESS,this._receiveData.bind(this)).on(n.Event.ERROR,this._failedData.bind(this)).send())},setData:function(t){try{var e=JSON.parse(t);this._plugin.options["parse.fdsResponseHost"]&&(t=t.replace(e.q.h,this._plugin.options["parse.fdsResponseHost"](e.q.h)),e=JSON.parse(t)),this.response.msg=t,this.response.host=a.addProtocol(e.q.h,this._httpSecure),this.response.code=e.q.c,this.response.pingTime=e.q.pt||5,this.response.beatTime=e.q.i&&e.q.i.bt||30,this.response.sessionExpire=e.q.i&&e.q.i.exp||300,this._plugin.storage.setLocal("sessionExpire",this.response.sessionExpire),this.done()}
1catch(i){r.error("Fastdata response is invalid.")}},_receiveData:function(t,e){var i=t.getResponse();this.setData(i)},_failedData:function(t,e){r.error("Fastdata request has failed.")},nextView:function(){return this._viewIndex=(new Date).getTime(),this.getViewCode()},getViewCode:function(t){return null!==t&&this._plugin&&this._plugin.options&&this._plugin.options["session.splitViews"]?this.response.code+"_"+(t||this._viewIndex):this.response.code+"_"+this._viewIndex},getSession:function(){return this._session},setSession:function(t){this._session=t},setHost:function(t){this.response.host=t},parse:function(t){t.host=t.host||this.response.host,t.params.system=this._plugin.getAccountCode(),t.params.sessionRoot=t.params.sessionRoot||this.getSession(),-1!==u.EventList.PingTime.indexOf(t.service)&&(t.params.pingTime=t.params.pingTime||this.response.pingTime),-1===u.EventList.Infinity.indexOf(t.service)?this._plugin&&this._plugin.options&&this._plugin.options["session.splitViews"]?(t.params.code=t.params.code||this.getViewCode(t.params.viewIndex),delete t.params.viewIndex):t.params.code=t.params.code||this.getViewCode():t.params.sessionId=t.params.sessionRoot,-1!==u.EventList.CreateView.indexOf(t.service)&&(this._plugin.infinity.infinityStarted||this._plugin.storage.isEnabled()&&this._plugin.storage.getLocal("infinityStarted"))&&(t.params.parentId=t.params.sessionRoot,t.params.navContext=t.params.navContext||this._plugin.getContext())}},{EventList:{CreateView:[o.Service.START,o.Service.INIT,o.Service.ERROR],Infinity:[o.Service.NAV,o.Service.SESSION_START,o.Service.SESSION_STOP,o.Service.EVENT,o.Service.EVENT_END,o.Service.BEAT],PingTime:[o.Service.START,o.Service.PING]}});t.exports=u},81090:function(t,e,i){var n=i(81935).extend({isBlocking:function(t){return!t.params.sessionId}});t.exports=n},96229:function(t,e,i){var n=i(12628),s=i(84669),r={AdPosition:n,ManifestError:i(41142),RequestMethod:i(93551),Service:i(48619),WillSendEvent:i(17238),AdInsertionType:i(89840),Adapter:s};t.exports=r},89840:function(t){t.exports={ClientSide:"csai",ServerSide:"ssai"}},12628:function(t){t.exports={Preroll:"pre",Midroll:"mid",Postroll:"post"}},84669:function(t,e,i){var n={Event:i(72078)};t.exports=n},72078:function(t){t.exports={START:"start",JOIN:"join",PAUSE:"pause",RESUME:"resume",SEEK_BEGIN:"seek-begin",SEEK_END:"seek-end",BUFFER_BEGIN:"buffer-begin",BUFFER_END:"buffer-end",ERROR:"error",STOP:"stop",CLICK:"click",MANIFEST:"manifest",PODSTART:"break-start",PODSTOP:"break-stop",QUARTILE:"quartile",VIDEO_EVENT:"video-event",VIDEO_EVENT_END:"video-event-end"}},41142:function(t){t.exports={NO_RESPONSE:"NO_RESPONSE",EMPTY:"EMPTY_RESPONSE",WRONG:"WRONG_RESPONSE"}},93551:function(t){t.exports={GET:"get",POST:"post"}},48619:function(t){t.exports={DATA:"/data",INIT:"/init",START:"/start",JOIN:"/joinTime",PAUSE:"/pause",RESUME:"/resume",SEEK:"/seek",BUFFER:"/bufferUnderrun",ERROR:"/error",STOP:"/stop",PING:"/ping",VIDEO_EVENT:"/infinity/video/event",VIDEO_EVENT_END:"/infinity/video/event/stop",AD_INIT:"/adInit",AD_START:"/adStart",AD_JOIN:"/adJoin",AD_PAUSE:"/adPause",AD_RESUME:"/adResume",AD_BUFFER:"/adBufferUnderrun",AD_STOP:"/adStop",AD_CLICK:"/adClick",AD_ERROR:"/adError",AD_MANIFEST:"/adManifest",AD_POD_START:"/adBreakStart",AD_POD_STOP:"/adBreakStop",AD_QUARTILE:"/adQuartile",EVENT:"/infinity/session/event",EVENT_END:"/infinity/session/event/stop",SESSION_START:"/infinity/session/start",SESSION_STOP:"/infinity/session/stop",NAV:"/infinity/session/nav",BEAT:"/infinity/session/beat",OFFLINE_EVENTS:"/offlineEvents"}},68747:function(t){t.exports={HDS:"HDS",HLS:"HLS",MSS:"MSS",DASH:"DASH",RTMP:"RTMP",RTP:"RTP",RTSP:"RTSP",DVB:"DVB",DVBC:"DVB-C",DVBT:"DVB-T",DVBT2:"DVB-T2",MULTICAST:"MULTICAST"}},86860:function(t){t.exports={MP4:"MP4",MPEG2:"TS",CMF:"CMF"}},17238:function(t){t.exports={WILL_SEND_INIT:"will-send-init",WILL_SEND_START:"will-send-start",WILL_SEND_JOIN:"will-send-join",WILL_SEND_PAUSE:"will-send-pause",WILL_SEND_RESUME:"will-send-resume",WILL_SEND_SEEK:"will-send-seek",WILL_SEND_BUFFER:"will-send-buffer",WILL_SEND_ERROR:"will-send-error",WILL_SEND_FATAL_ERROR:"will-send-fatal-error",WILL_SEND_STOP:"will-send-stop",WILL_SEND_PING:"will-send-ping",WILL_SEND_VIDEO_EVENT:"will-send-video-event",WILL_SEND_VIDEO_EVENT_END:"will-send-video-event-end",WILL_SEND_AD_START:"will-send-ad-start",WILL_SEND_AD_JOIN:"will-send-ad-join",WILL_SEND_AD_PAUSE:"will-send-ad-pause",WILL_SEND_AD_RESUME:"will-send-ad-resume",WILL_SEND_AD_BUFFER:"will-send-ad-buffer",WILL_SEND_AD_STOP:"will-send-ad-stop",WILL_SEND_AD_CLICK:"will-send-ad-click",WILL_SEND_AD_ERROR:"will-send-ad-error",WILL_SEND_AD_MANIFEST:"will-send-ad-manifest",WILL_SEND_AD_POD_START:"will-send-ad-break-start",WILL_SEND_AD_POD_STOP:"will-send-ad-break-stop",WILL_SEND_AD_QUARTILE:"will-send-ad-quartile",WILL_SEND_SESSION_START:"will-send-session-start",WILL_SEND_SESSION_STOP:"will-send-session-stop",WILL_SEND_NAV:"will-send-nav",WILL_SEND_BEAT:"will-send-beat",WILL_SEND_EVENT:"will-send-event",WILL_SEND_EVENT_END:"will-send-event-end",WILL_SEND_OFFLINE_EVENTS:"will-send-offline-events"}}
1,86852:function(t,e,i){var n=i(7569).extend({constructor:function(t){this.plugin=t,this.isInBackground=!1,this.listenerReference=this._visibilityListener.bind(this),this._reset()},startDetection:function(){this.isBackgroundDetectorStarted||"undefined"===typeof document||(this.isBackgroundDetectorStarted=!0,document.addEventListener("visibilitychange",this.listenerReference))},stopDetection:function(){this.isBackgroundDetectorStarted&&"undefined"!==typeof document&&(document.removeEventListener("visibilitychange",this.listenerReference),this._reset())},_reset:function(){this.isBackgroundDetectorStarted=!1},_visibilityListener:function(t){if("undefined"!==typeof document){var e=this._getSettings();"hidden"===document.visibilityState?this._toBackground(e):"visible"===document.visibilityState&&this._toForeground(e)}},_toBackground:function(t){if(this.isInBackground=!0,this.plugin&&this.plugin._adsAdapter&&this.plugin._adsAdapter.stopChronoView(),"string"===typeof t){switch(t){case"stop":this._fireStop();break;case"pause":this._firePause()}if(this.plugin.infinity.infinityStarted){this.lastBeatTime=(new Date).getTime();var e=this.plugin._beat.chrono.startTime?this.lastBeatTime-this.plugin._beat.chrono.startTime:0;this.plugin._sendBeat(e),this.plugin._beat.stop()}}},_toForeground:function(t){if(this.isInBackground=!1,this.plugin&&this.plugin._adsAdapter&&this.plugin._adsAdapter.startChronoView(),"string"===typeof t&&t&&this.plugin.infinity.infinityStarted){var e=(new Date).getTime();e-this.lastBeatTime<this.plugin.sessionExpire?(this.plugin._sendBeat(e-this.lastBeatTime),this.plugin._beat.start()):this.plugin.infinity.newSession()}},_getSettings:function(){return"string"===typeof this.plugin.options["background.settings"]&&this.plugin.options["background.settings"]?this.plugin.options["background.settings"]:this.plugin.deviceDetector.isSmartTV()?this.plugin.options["background.settings.tv"]:this.plugin.deviceDetector.isDesktop()?this.plugin.options["background.settings.desktop"]:this.plugin.deviceDetector.isAndroid()?this.plugin.options["background.settings.android"]:this.plugin.deviceDetector.isIphone()?this.plugin.options["background.settings.iOS"]:this.plugin.deviceDetector.isPlayStation()?this.plugin.options["background.settings.playstation"]:void 0},_firePause:function(){this._fireX("firePause")},_fireStop:function(){this._fireX("fireStop"),this.plugin.fireStop()},_fireX:function(t){this.adsAdapter=this.plugin.getAdsAdapter(),this.adsAdapter&&this.adsAdapter[t](),this.contentAdapter=this.plugin.getAdapter(),this.contentAdapter&&this.contentAdapter[t]()},canBlockStartCalls:function(){return this.isInBackground&&!0===this.plugin.options["background.enabled"]&&this._getSettings()}});t.exports=n},97416:function(t,e,i){var n=i(7569).extend({constructor:function(){"undefined"!==typeof navigator&&navigator.userAgent&&(this._isSmartTVDevice=navigator.userAgent.toLowerCase().match(/smarttv/)||navigator.userAgent.toLowerCase().match(/smart-tv/)||navigator.userAgent.toLowerCase().match(/appletv/)||navigator.userAgent.toLowerCase().match(/apple tv/),this._isPlaystationDevice=null!==navigator.userAgent.match(/PlayStation/),this._isIphoneDevice=null!==navigator.userAgent.match(/iPhone|iPad|iPod/i),this._isAndroidDevice=null!==navigator.userAgent.match(/Android/),this._isSmartphoneDevice=!this._isSmartTVDevice&&!this._isPlaystationDevice&&(this._isIphoneDevice||this._isAndroidDevice),this._isDesktopDevice=!this._isSmartphoneDevice&&!this._isSmartTVDevice&&!this._isPlaystationDevice)},isIphone:function(){return this._isIphoneDevice},isAndroid:function(){return this._isAndroidDevice},isSmartphone:function(){return this._isSmartphoneDevice},isDesktop:function(){return this._isDesktopDevice},isSmartTV:function(){return this._isSmartTVDevice},isPlayStation:function(){return this._isPlaystationDevice}});t.exports=n},60191:function(t,e,i){var n=i(7569).extend({constructor:function(t){this.pluginref=t,this.listenerReference=this._changeListener.bind(this),this.loadReference=this._loadListener.bind(this),this.isEnabled=!1,this.pageHeight=0,this.maxHeight=0,this.startDetection()},startDetection:function(){this.isEnabled||"undefined"===typeof window||"function"!==typeof window.addEventListener||(window.addEventListener("scroll",this.listenerReference),window.addEventListener("resize",this.listenerReference),window.addEventListener("load",this.loadReference),this.isEnabled=!0)},stopDetection:function(){this.isEnabled&&"undefined"!==typeof window&&"function"===typeof window.removeEventListener&&(window.removeEventListener("scroll",this.listenerReference),window.removeEventListener("resize",this.listenerReference),window.removeEventListener("load",this.loadReference),this.isEnabled=!1)},getScrollDepth:function(){var t=null;return this.maxHeight&&this.pageHeight&&(t=Math.min(Math.trunc(this.maxHeight/this.pageHeight*100),100)),t},_loadListener:function(){if("undefined"!==typeof document){var t=document.documentElement;t&&(this.pageHeight=Math.round(t.scrollHeight,t.clientHeight,t.offsetHeight),this.maxHeight=window.innerHeight,this._updateCompletionRate())}},_changeListener:function(){if(this.pageHeight){var t=this.maxHeight;this.maxHeight=Math.max(this.maxHeight,window.pageYOffset+window.innerHeight),t!==this.maxHeight&&this._updateCompletionRate()}var e=this.pluginref.getAdsAdapter();e&&e.flags.isStarted&&(e.getIsVisible()?e.startChronoView():e.stopChronoView())},_updateCompletionRate:function(){setTimeout(function(){this.pluginref.storage.setSession("pageScrollDepth",this.get
1ScrollDepth())}.bind(this),3e3)}});t.exports=n},68030:function(t,e,i){var n=i(7569).extend({constructor:function(t){this.plugin=t},getAllData:function(){var t=this.getNonRandomData();return t.timestamp=this.getTimestamp(),t},getNonRandomData:function(){var t={};return t.userAgent=this.getUserAgent(),t.threads=this.getVirtualCores(),t.language=this.getLanguage(),t.langList=this.getAvailableLanguages(),t.resolution=this.getResolution(),t.colorDepth=this.getColorDepth(),t.deviceMemory=this.getMemory(),t.touchscreen=this.getTouchscreen(),t.localStorage=this.getLocalStorage(),t.sessionStorage=this.getSessionStorage(),t.cookiesAvailable=this.getCookiesAvailable(),t.flashAvailable=this.getHasFlash(),t.timeZone=this.getTimeZone(),t.plugins=this.getPluginList(),t},getUserAgent:function(){return this._getNavigatorValue("userAgent")},getVirtualCores:function(){return this._getNavigatorValue("hardwareConcurrency")},getLanguage:function(){return this._getNavigatorValue("language")},getAvailableLanguages:function(){return this._getNavigatorValue("languages")},getResolution:function(){var t=null;try{this._getNavigatorValue("screen")&&(t=navigator.screen.width.toString()+navigator.screen.height.toString())}catch(e){}return t},getColorDepth:function(){var t=null;try{this._getNavigatorValue("screen")&&(t=navigator.screen.colorDepth)}catch(e){}return t},getMemory:function(){return this._getNavigatorValue("deviceMemory")},getTouchscreen:function(){return this._getNavigatorValue("maxTouchPoints")||!1},getLocalStorage:function(){var t=!1;try{t="undefined"!==typeof localStorage}catch(e){}return t},getSessionStorage:function(){var t=!1;try{t="undefined"!==typeof sessionStorage}catch(e){}return t},getCookiesAvailable:function(){return this._getNavigatorValue("cookieEnabled")||!1},getHasFlash:function(){var t=!1;try{var e=this._getNavigatorValue("plugins");t=e&&"object"===typeof e["Shockwave Flash"]||"undefined"!==typeof window&&window.ActiveXObject&&!1!==new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(i){}return t},getPluginList:function(){var t=null;try{var e=this._getNavigatorValue("plugins");if(e&&0!==e.length){for(var i="",n=0;n<navigator.plugins.length;n++)i+=navigator.plugins[n].description+" "+navigator.plugins[n].filename+" "+navigator.plugins[n].name+" ";t=i}}catch(s){}return t},getTimeZone:function(){var t=null;try{t=(new Date).getTimezoneOffset().toString()}catch(e){}return t},getTimestamp:function(){return(new Date).getTime()},_navigatorCheck:function(){return"undefined"!==typeof navigator},_getNavigatorValue:function(t){var e=null;try{this._navigatorCheck()&&(e=navigator[t])}catch(i){}return e}});t.exports=n},92836:function(t,e,i){var n=i(68030),s=i(7569),r=i(27025),a=s.extend({constructor:function(t){this.plugin=t,this.dataExtractor=new n,this.key=this.getPreviousKey()},generateHashKey:function(){if(!this.key){var t=this.dataExtractor.getAllData();this.key=this._hashFunction(t),this.plugin.storage.setLocal("youboraDeviceUUID",this.key)}},getKey:function(){return this.key||this.generateHashKey(),this.key},_hashFunction:function(t){var e=t;return"string"!==typeof t&&(e=JSON.stringify(t)),r(e)},_reset:function(){this.key=void 0},getPreviousKey:function(){return this.plugin.storage.getLocal("youboraDeviceUUID")}});t.exports=a},27025:function(t){t.exports=function(t){function e(t,e){return t<<e|t>>>32-e}function i(t,e){var i,n,s,r,a;return s=2147483648&t,r=2147483648&e,a=(1073741823&t)+(1073741823&e),(i=1073741824&t)&(n=1073741824&e)?2147483648^a^s^r:i|n?1073741824&a?3221225472^a^s^r:1073741824^a^s^r:a^s^r}function n(t,n,s,r,a,o,u){return t=i(t,i(i(function(t,e,i){return t&e|~t&i}(n,s,r),a),u)),i(e(t,o),n)}function s(t,n,s,r,a,o,u){return t=i(t,i(i(function(t,e,i){return t&i|e&~i}(n,s,r),a),u)),i(e(t,o),n)}function r(t,n,s,r,a,o,u){return t=i(t,i(i(function(t,e,i){return t^e^i}(n,s,r),a),u)),i(e(t,o),n)}function a(t,n,s,r,a,o,u){return t=i(t,i(i(function(t,e,i){return e^(t|~i)}(n,s,r),a),u)),i(e(t,o),n)}function o(t){var e,i="",n="";for(e=0;e<=3;e++)i+=(n="0"+(t>>>8*e&255).toString(16)).substr(n.length-2,2);return i}var u,d,c,h,l,p,f,g,m,_=Array();for(_=function(t){for(var e,i=t.length,n=i+8,s=16*((n-n%64)/64+1),r=Array(s-1),a=0,o=0;o<i;)a=o%4*8,r[e=(o-o%4)/4]=r[e]|t.charCodeAt(o)<<a,o++;return a=o%4*8,r[e=(o-o%4)/4]=r[e]|128<<a,r[s-2]=i<<3,r[s-1]=i>>>29,r}(t=function(t){t=t.replace(/rn/g,"n");for(var e="",i=0;i<t.length;i++){var n=t.charCodeAt(i);
1n<128?e+=String.fromCharCode(n):n>127&&n<2048?(e+=String.fromCharCode(n>>6|192),e+=String.fromCharCode(63&n|128)):(e+=String.fromCharCode(n>>12|224),e+=String.fromCharCode(n>>6&63|128),e+=String.fromCharCode(63&n|128))}return e}(t)),p=1732584193,f=4023233417,g=2562383102,m=271733878,u=0;u<_.length;u+=16)d=p,c=f,h=g,l=m,p=n(p,f,g,m,_[u+0],7,3614090360),m=n(m,p,f,g,_[u+1],12,3905402710),g=n(g,m,p,f,_[u+2],17,606105819),f=n(f,g,m,p,_[u+3],22,3250441966),p=n(p,f,g,m,_[u+4],7,4118548399),m=n(m,p,f,g,_[u+5],12,1200080426),g=n(g,m,p,f,_[u+6],17,2821735955),f=n(f,g,m,p,_[u+7],22,4249261313),p=n(p,f,g,m,_[u+8],7,1770035416),m=n(m,p,f,g,_[u+9],12,2336552879),g=n(g,m,p,f,_[u+10],17,4294925233),f=n(f,g,m,p,_[u+11],22,2304563134),p=n(p,f,g,m,_[u+12],7,1804603682),m=n(m,p,f,g,_[u+13],12,4254626195),g=n(g,m,p,f,_[u+14],17,2792965006),p=s(p,f=n(f,g,m,p,_[u+15],22,1236535329),g,m,_[u+1],5,4129170786),m=s(m,p,f,g,_[u+6],9,3225465664),g=s(g,m,p,f,_[u+11],14,643717713),f=s(f,g,m,p,_[u+0],20,3921069994),p=s(p,f,g,m,_[u+5],5,3593408605),m=s(m,p,f,g,_[u+10],9,38016083),g=s(g,m,p,f,_[u+15],14,3634488961),f=s(f,g,m,p,_[u+4],20,3889429448),p=s(p,f,g,m,_[u+9],5,568446438),m=s(m,p,f,g,_[u+14],9,3275163606),g=s(g,m,p,f,_[u+3],14,4107603335),f=s(f,g,m,p,_[u+8],20,1163531501),p=s(p,f,g,m,_[u+13],5,2850285829),m=s(m,p,f,g,_[u+2],9,4243563512),g=s(g,m,p,f,_[u+7],14,1735328473),p=r(p,f=s(f,g,m,p,_[u+12],20,2368359562),g,m,_[u+5],4,4294588738),m=r(m,p,f,g,_[u+8],11,2272392833),g=r(g,m,p,f,_[u+11],16,1839030562),f=r(f,g,m,p,_[u+14],23,4259657740),p=r(p,f,g,m,_[u+1],4,2763975236),m=r(m,p,f,g,_[u+4],11,1272893353),g=r(g,m,p,f,_[u+7],16,4139469664),f=r(f,g,m,p,_[u+10],23,3200236656),p=r(p,f,g,m,_[u+13],4,681279174),m=r(m,p,f,g,_[u+0],11,3936430074),g=r(g,m,p,f,_[u+3],16,3572445317),f=r(f,g,m,p,_[u+6],23,76029189),p=r(p,f,g,m,_[u+9],4,3654602809),m=r(m,p,f,g,_[u+12],11,3873151461),g=r(g,m,p,f,_[u+15],16,530742520),p=a(p,f=r(f,g,m,p,_[u+2],23,3299628645),g,m,_[u+0],6,4096336452),m=a(m,p,f,g,_[u+7],10,1126891415),g=a(g,m,p,f,_[u+14],15,2878612391),f=a(f,g,m,p,_[u+5],21,4237533241),p=a(p,f,g,m,_[u+12],6,1700485571),m=a(m,p,f,g,_[u+3],10,2399980690),g=a(g,m,p,f,_[u+10],15,4293915773),f=a(f,g,m,p,_[u+1],21,2240044497),p=a(p,f,g,m,_[u+8],6,1873313359),m=a(m,p,f,g,_[u+15],10,4264355552),g=a(g,m,p,f,_[u+6],15,2734768916),f=a(f,g,m,p,_[u+13],21,1309151649),p=a(p,f,g,m,_[u+4],6,4149444226),m=a(m,p,f,g,_[u+11],10,3174756917),g=a(g,m,p,f,_[u+2],15,718787259),f=a(f,g,m,p,_[u+9],21,3951481745),p=i(p,d),f=i(f,c),g=i(g,h),m=i(m,l);return(o(p)+o(f)+o(g)+o(m)).toLowerCase()}},48600:function(t,e,i){var n=i(7569),s=i(58436),r=n.extend({on:function(t,e){if(this._listeners=this._listeners||{},"function"===typeof e)return this._listeners[t]=this._listeners[t]||[],this._listeners[t].push(e),this},off:function(t,e){if(this._listeners=this._listeners||{},this._listeners[t]){var i=this._listeners[t].indexOf(e);-1!==i&&this._listeners[t].splice(i,1)}return this},emit:function(t,e){return this._listeners=this._listeners||{},e=e||{},s(this._listeners[t])&&this._listeners[t].forEach(this._eachCallback.bind(this,t,e)),s(this._listeners["*"])&&this._listeners["*"].forEach(this._eachCallback.bind(this,t,e)),this},_eachCallback:function(t,e,i){"function"===typeof i&&i({type:t,data:e,target:this})}});t.exports=r},73194:function(t,e,i){var n=i(48600),s=i(6596),r=i(81090),a=i(73183),o=n.extend({constructor:function(t){this._plugin=t,this.infinityStopped=!1,this.infinityStarted=!1},andBeyond:function(){o.prototype.begin.apply(this,arguments)},begin:function(t,e){(e=e||!1)&&(this._plugin.storage.removeStorages("infinityStarted"),this._plugin.storage.removeStorages("data"),this._plugin.restartViewTransform()),this._comm=new s(this._plugin),this._comm.addTransform(this._plugin.viewTransform),this._comm.addTransform(new r(this._plugin)),this._plugin&&this._plugin.storage&&"function"===typeof this._plugin.storage.getLocal&&(this._registeredProperties=this._plugin.storage.getLocal("inifnityRegisteredProperties")),this.infinityStarted="true"===this._plugin.storage.getLocal("infinityStarted"),this.infinityStopped||!this.infinityStarted?this.fireSessionStart(t):(this.fireNav(t),this._sendExtraBeat())},_setLastActive:function(){this._firstActive||(this._firstActive=this.getFirstActive()),this._plugin.storage.setStorages("lastactive",(new Date).getTime())},getFirstActive:function(){return Number(this._plugin.getLastActive())||0},getComm:function(){return this._comm},fireSessionStart:function(t){this.infinityStopped&&(this._plugin.restartViewTransform(),this._comm=new s(this._plugin),this._comm.addTransform(this._plugin.viewTransform),this._comm.addTransform(new r(this._plugin)),this.infinityStopped=!1),this.infinityStarted||(this._plugin.storage.setLocal("infinityStarted","true"),this.infinityStarted=!0,this.emit
1(o.Event.SESSION_START,this._getParamsJson(t,null,null,!0,!0)),this._setLastActive())},fireSessionStop:function(t){this.infinityStarted&&(this.infinityStopped=!0,this.infinityStarted=!1,this._plugin.storage.removeStorages("infinityStarted"),this.emit(o.Event.SESSION_STOP,t),this._plugin.storage.removeStorages("data"),this._plugin.storage.removeStorages("session"),this._plugin.storage.removeStorages("lastactive"))},newSession:function(t,e){this.isActive()&&(this.infinityStarted?this.fireSessionStop():(this._plugin.storage.removeStorages("infinityStarted"),this._plugin.storage.removeStorages("data"),this._comm&&this._comm.removeTransform(this._plugin.viewTransform),this._plugin.restartViewTransform(),this._comm&&this._comm.addTransform(this._plugin.viewTransform))),this._plugin.setOptions(t),this.begin(e)},fireNav:function(t){this.isActive()&&(this.infinityStarted=!0,this.emit(o.Event.NAV,this._getParamsJson(t,null,null,!0)))},_sendExtraBeat:function(){if(this._plugin&&this._plugin._beat){var t=(new Date).getTime(),e=this._plugin._beat.chrono.startTime?t-this._plugin._beat.chrono.startTime:0;this._plugin._sendBeat(e),this._plugin._beat.chrono.startTime=t}this._setLastActive()},fireEvent:function(t,e,i,n,s){if(this.infinityStarted){var r=this._getParamsJson(e,i,t,!1,!1,s);a.assign(r.params,n||{}),this.emit(o.Event.EVENT,r),this._setLastActive()}},fireEventEnd:function(t,e){if(this.infinityStarted){var i=this._getParamsJson(null,null,t,!1,!1,!1);a.assign(i.params,e||{}),this.emit(o.Event.EVENT_END,i),this._setLastActive()}},register:function(t,e){this._registeredProperties={dimensions:t,values:e},this._plugin.storage.setLocal("inifnityRegisteredProperties",JSON.stringify(this._registeredProperties))},registerOnce:function(t,e){this._registeredProperties||this.register(t,e)},unregister:function(){this._registeredProperties=null,this._plugin.storage.removeLocal("inifnityRegisteredProperties")},_getParamsJson:function(t,e,i,n,s,r){var a={};if("boolean"!==typeof r&&(r=!1),i&&(a.name=i),a.dimensions=t||{},a.values=e||{},this._registeredProperties){for(var o in this._registeredProperties.dimensions)a.dimensions[o]=this._registeredProperties.dimensions[o];for(var u in this._registeredProperties.values)a.values[u]=this._registeredProperties.values[u]}var d={params:a};return n&&(d.params.dimensions.page&&(d.params.page=d.params.dimensions.page,delete d.params.dimensions.page),d.params.dimensions.route&&(d.params.route=d.params.dimensions.route,delete d.params.dimensions.route),s||delete d.params.dimensions,delete d.params.values),r&&(d.params.hasEndDatetime=r),d},isActive:function(){var t=this._plugin.storage.getLocal("infinityStarted");if(this.infinityStarted||t&&"false"!==t)return!0;var e=(new Date).getTime();return Number(this._plugin.getLastActive())+this._plugin.sessionExpire>e}},{Event:{NAV:"nav",SESSION_START:"sessionStart",SESSION_STOP:"sessionStop",BEAT:"beat",EVENT:"event",EVENT_END:"eventEnd"}});t.exports=o},56654:function(t,e,i){var n=i(48600),s=i(58436),r={_emitter:new n,on:function(){r._emitter.on.apply(r._emitter,arguments)},off:function(){r._emitter.off.apply(r._emitter,arguments)},emit:function(){r._emitter.emit.apply(r._emitter,arguments)},Level:{SILENT:6,ERROR:5,WARNING:4,NOTICE:3,DEBUG:2,VERBOSE:1},Event:{LOG:"log"},logLevel:5,plainLogs:!1,report:function(t,e,i){if("undefined"!==typeof console&&console.log&&"undefined"!==typeof document){i=i||"darkcyan";var n,a={5:"e",4:"w",3:"n",2:"d",1:"v"}[e=e||r.Level.NOTICE],o="[Youbora]"+r._getCurrentTime()+" "+a+":";if(this.emit("log",{level:e,msg:t,prefix:o}),r.logLevel<=e)if(r.plainLogs||document.documentMode)r._plainReport(t,o);else n=e===r.Level.ERROR&&console.error?console.error:e===r.Level.WARNING&&console.warn?console.warn:e===r.Level.DEBUG&&console.debug?console.debug:console.log,o="%c"+o,s(t)?(t.splice(0,0,o,"color: "+i),n.apply(console,t)):n.call(console,o,"color: "+i,t)}},_getCurrentTime:function(){var t=new Date;return"["+("0"+t.getDate()).slice(-2)+":"+("0"+t.getMinutes()).slice(-2)+":"+("0"+t.getSeconds()).slice(-2)+"."+("00"+t.getMilliseconds()).slice(-3)+"]"},_plainReport:function(t,e){if(t instanceof Array)for(var i in t)r._plainReport(t[i],e);else"string"===typeof t?console.log(e+" "+t):(console.log(e+" <next line>"),console.log(t))},error:function(){r.report([].slice.call(arguments),r.Level.ERROR,"darkred")},warn:function(){r.report([].slice.call(arguments),r.Level.WARNING,"darkorange")},notice:function(){r.report([].slice.call(arguments),r.Level.NOTICE,"darkgreen")},debug:function(){r.report([].slice.call(arguments),r.Level.DEBUG,"indigo")}
1,verbose:function(){r.report([].slice.call(arguments),r.Level.VERBOSE,"navy")},loadLevelFromUrl:function(){"undefined"!==typeof window&&window.location&&this._parseLevelFromUrl(window.location.search)},_parseLevelFromUrl:function(t){if(t){var e=/\?.*&*youbora-debug=(.+)/i.exec(t);null!==e&&(r.logLevel=e[1]),null!==/\?.*&*youbora-debug=plain/i.exec(t)&&(r.plainLogs=!0)}}};t.exports=r},65429:function(t){t.exports=function(t){if(void 0===t||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),i=1;i<arguments.length;i++){var n=arguments[i];if(void 0!==n&&null!==n)for(var s in n)n.hasOwnProperty(s)&&(e[s]=n[s])}return e}},93501:function(t){var e=function(){};t.exports=function(t){if(arguments.length>1)throw Error("Second argument not supported");if(null===t)throw Error("Cannot set a null [[Prototype]]");if("object"!==typeof t)throw TypeError("Argument must be an object");return e.prototype=t,new e}},58436:function(t){t.exports=function(t){return"[object Array]"===Object.prototype.toString.call(t)}},37981:function(t,e,i){var n=i(7569),s=i(77709),r=n.extend({constructor:function(t){if(this.infinity=t.infinity,this.timeObject=null,this.playerSetup=null,this.perfObject=null,this.myTimesObject={},"undefined"!==typeof window&&"function"===typeof window.addEventListener&&(window.addEventListener("load",this._windowLoaded.bind(this)),window.performance&&window.performance.timing)){try{"function"===typeof window.performance.getEntriesByType&&(this.perfObject=window.performance)}catch(i){}this.timeObject=window.performance.timing}try{if("function"===typeof PerformanceObserver){var e=new PerformanceObserver(function(t,e){var i=t.getEntries();this.myTimesObject.largestContentfulPaint=i[i.length-1].renderTime}.bind(this));PerformanceObserver.supportedEntryTypes.indexOf("largest-contentful-paint")>-1&&e.observe({entryTypes:["largest-contentful-paint"]})}}catch(i){}},_windowLoaded:function(){this.myTimesObject.onLoad=(new Date).getTime(),this._getEnoughFPS(),setTimeout(this._fireLoadTimesEvent.bind(this),1e3)},_fireLoadTimesEvent:function(){this._getLastMetrics(),this.infinity.fireEvent("loadTimes",{},this._getAllValues())},_getAllValues:function(){var t={PageLoadTime:this.getPageLoadTime(),DNSTime:this.getDnsTime(),TCPTime:this.getTcpTime(),HandshakeTime:this.getHandshakeTime(),DomReadyTime:this.getDomReadyTime(),BackendTime:this.getBackendTime(),FrontendTime:this.getFrontendTime(),VisualReady:this.getTimeToVisuallyReady(),TimeToInteractive:this.getTimeToInteractive(),JsTime:this.getJSTime(),CssTime:this.getCSSTime(),ImageTime:this.getImageTime(),FontTime:this.getFontTime(),AvgReqLatency:this.getAvgReqLatency(),MaxReqLatency:this.getMaxReqLatency(),FirstPaint:this.getFirstPaint(),FirstContentfulPaint:this.getFirstContentfulPaint(),LargestContentfulPaint:this.getLargestContentfulPaint(),SpeedIndex:this.getSpeedIndex()};for(var e in t)null===t[e]||void 0===t[e]||t[e]<0?delete t[e]:t[e]=Math.round(t[e]);return t},getPageLoadTime:function(){var t=null;return this.timeObject&&(t=this.timeObject.loadEventEnd-this.timeObject.navigationStart),t},getPlayerStartupTime:function(){var t=null;return this.timeObject&&this.playerSetup&&(t=this.playerSetup-this.timeObject.navigationStart),t},getDnsTime:function(){var t=null;return this.timeObject&&(t=this.timeObject.domainLookupEnd-this.timeObject.domainLookupStart),t},getTcpTime:function(){var t=null;return this.timeObject&&(t=this.timeObject.connectEnd-this.timeObject.connectStart),t},getHandshakeTime:function(){var t=null;return this.timeObject&&this.timeObject.secureConnectionStart&&(t=this.timeObject.connectEnd-this.timeObject.secureConnectionStart),t},getDomReadyTime:function(){var t=null;return this.timeObject&&(t=this.timeObject.domComplete-this.timeObject.navigationStart),t},getBackendTime:function(){var t=null;return this.timeObject&&(t=this.timeObject.responseStart-this.timeObject.navigationStart),t},getFrontendTime:function(){var t=null;return this.timeObject&&(t=this.myTimesObject.onLoad-this.timeObject.responseStart),t},getTimeToVisuallyReady:function(){var t=this.myTimesObject.firstPaint||0;return this.timeObject?Math.max(t,this.timeObject.domContentLoadedEventEnd-this.timeObject.navigationStart||0):t||null},getTimeToInteractive:function(){if(this.myTimesObject.fps&&this.getTimeToVisuallyReady())return Math.max(this.myTimesObject.fps,this.getTimeToVisuallyReady());setTimeout(function(){this.getTimeToInteractive()}.bind(this),500)},getJSTime:function(){return this._getXTime("script")},getCSSTime:function(){return this._getXTime("css")},getImageTime:function(){return this._getXTime("img")},getFontTime:function(){return this._getXTime("css",[".woff",".otf",".ttf"])},getAvgReqLatency:function(){try{if(this.perfObject&&"function"===typeof this.perfObject.getEntriesByType){var t=0,e=0,i=this.perfObject.getEntriesByType("resource");for(var n in i)i[n].requestStart&&i[n].responseStart&&(e+=i[n].responseStart-i[n].requestStart),t++;return e/t}}catch(s){}return null},getFirstPaint:function(){return this.myTimesObject?this.myTimesObject.firstPaint:null},getFirstContentfulPaint:function(){return this.myTimesObject?this.myTimesObject.firstContentfulPaint:null},getLargestContentfulPaint:function(){return this.myTimesObject?this.myTimesObject.largestContentfulPaint:null},getMaxReqLatency:function(){try{if(this.perfObject&&"function"===typeof this.perfObject.getEntriesByType){var t=this.perfObject.getEntriesByType("resource"),e=0;for(var i in t)t[i].requestStart&&t[i].responseStart&&(e=Math.max(e,t[i].responseStart-t[i].requestStart));return e}}catch(n){}return null},getSpeedIndex:function(){var t=null;if("undefined"!==typeof window&&window.performance&&"function"===typeof window.performance.getEntriesByType)try{t=s()}catch(e){}return t},_getXTime:function(t,e){var i=0;try{if(this.perfObject&&"function"===typeof this.perfObject.getEntriesByType){var n=this.perfObject.getEntriesByType("resource");for(var s in n)if(n[s].initiatorType===t)if(e){var r=!1;for(var a in e)n[s].name.indexOf(e[a]>0)&&(r=!0);r&&(i+=n[s].duration)}else i+=n[s].duration}}catch(o){}return Math.round(i)||null},_getLastMetrics:function(){var t=null,e=null;try{if(this.perfObject&&"function"===typeof this.perfObject.getEntriesByType){var i=this.perfObject.getEntriesByType("paint");for(var n in i)"first-paint"===i[n].name?t=i[n].startTime:"first-contentful-paint"===i[n].name&&(e=i[n].startTime)}}catch(s){}!t&&this.timeObject&&(t=this.timeObject.msFirstPaint-this.timeObject.navigationStart),this.myTimesObject.firstPaint=t,this.myTimesObject.firstContentfulPaint=e,this.getTimeToInteractive()},_getEnoughFPS:function(){if(!this.timeObject||"undefined"===typeof window)return!0;var t=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||function(){};this.preFPS=(new Date).getTime(),t(function(){var t=(new Date).getTime();t<this.preFPS+50?this.myTimesObject.fps=t-this.timeObject.navigationStart:setTimeout(function(){return this._getEnoughFPS()}.bind(this),50)}.bind(this))},setPlayerSetupTime:function(){this.playerSetup=this.playerSetup||(new Date).getTime()}});t.exports=r}
1,60449:function(t,e,i){var n=i(7569).extend({getCdnTraffic:function(){var t=null;if("undefined"!==typeof CdnBalancerStats&&CdnBalancerStats.cdn)t=CdnBalancerStats.cdn.totalDownloadedBytes;else if("undefined"!==typeof Streamroot)t=this._getStreamrootPeerObject("cdn",!1)||this._getStreamrootInstanceObject("cdnDownload");else if("undefined"!==typeof peer5&&peer5.getStats)t=peer5.getStats().totalHttpDownloaded;else if("undefined"!==typeof teltoo&&teltoo.getStats){var e=teltoo.getStats();t=e.totalReceivedBytes-e.p2pReceivedBytes}return t},getMultiCdnInfo:function(){var t=null;if("undefined"!==typeof CdnBalancerStats&&CdnBalancerStats.cdn&&CdnBalancerStats.cdn.cdns){var e=CdnBalancerStats.p2p;t={P2P:{downloaded_bytes:e.downloadedBytes,uploaded_bytes:e.uploadedBytes,downloaded_chunks:e.downloadedSegments,uploaded_chunks:e.uploadedSegments,errors:e.failedRequests?e.failedRequests.total:0,missed_downloaded_chunks:e.failedRequests?e.failedRequests.absent:0,timeout_errors:e.failedRequests?e.failedRequests.timeout:0,other_errors:e.failedRequests?e.failedRequests.error:0,late_uploaded_chunks:e.discardedUploadedSegments,late_uploaded_bytes:e.discardedUploadedBytes,late_downloaded_bytes:e.discardedDownloadedBytes,time:e.downloadMillis,active_peers:e.activePeers,peers:e.totalPeers}},CdnBalancerStats.cdn.cdns.forEach((function(e){t[e.name]={downloaded_bytes:e.bytes,downloaded_chunks:e.chunks,errors:e.failures,time:e.downloadMillis}}))}return t},getSegmentDuration:function(){return"undefined"!==typeof CdnBalancerStats&&CdnBalancerStats.segmentDuration?CdnBalancerStats.segmentDuration:null},getBalancerResponseId:function(){return"undefined"!==typeof CdnBalancerStats&&CdnBalancerStats.cdn?CdnBalancerStats.cdn.responseUUID:null},getP2PTraffic:function(){var t=null;return"undefined"!==typeof CdnBalancerStats&&CdnBalancerStats.p2p?t=CdnBalancerStats.p2p.downloadedBytes:"undefined"!==typeof Streamroot?t=this._getStreamrootPeerObject("p2p",!0)||this._getStreamrootInstanceObject("dnaDownload"):"undefined"!==typeof peer5&&peer5.getStats?t=peer5.getStats().totalP2PDownloaded:"undefined"!==typeof teltoo&&teltoo.getStats&&(t=teltoo.getStats().p2pReceivedBytes),t},getUploadTraffic:function(){var t=null;return"undefined"!==typeof CdnBalancerStats&&CdnBalancerStats.p2p?t=CdnBalancerStats.p2p.uploadedBytes:"undefined"!==typeof Streamroot?t=this._getStreamrootPeerObject("upload",!0)||this._getStreamrootInstanceObject("dnaUpload"):"undefined"!==typeof peer5&&peer5.getStats&&(t=peer5.getStats().totalP2PUploaded),t},getIsP2PEnabled:function(){var t=!1;if("undefined"!==typeof CdnBalancerStats&&CdnBalancerStats.p2p)t=CdnBalancerStats.p2p.downloadEnabled;else if("undefined"!==typeof Streamroot)if(Streamroot.p2pAvailable&&Streamroot.peerAgents)for(var e in Streamroot.peerAgents)t=t||Streamroot.peerAgents[e].isP2PEnabled;else Streamroot.instances&&Streamroot.instances.forEach((function(e){t=t||e.dnaDownloadEnabled||e.dnaUploadEnabled}));else"undefined"!==typeof peer5&&peer5.isEnabled?t=peer5.isEnabled():"undefined"!==typeof teltoo&&(t=!0);return t},_getStreamrootPeerObject:function(t,e){var i=null;if(Streamroot.p2pAvailable&&Streamroot.peerAgents)for(var n in Streamroot.peerAgents){var s=Streamroot.peerAgents[n];!s.stats||e&&!s.isP2PEnabled||(i+=s.stats[t])}return i},_getStreamrootInstanceObject:function(t){var e=null;return Streamroot.instances&&Streamroot.instances.forEach((function(i){i.stats&&i.stats.currentContent&&(e+=i.stats.currentContent[t])})),e}});t.exports=n},77709:function(t){var e=function(t){var i,n,s=(t=t||window).document,r=function(e){var i=!1;if(e.getBoundingClientRect){var n=e.getBoundingClientRect();(i={top:Math.max(n.top,0),left:Math.max(n.left,0),bottom:Math.min(n.bottom,t.innerHeight||s.documentElement.clientHeight),right:Math.min(n.right,t.innerWidth||s.documentElement.clientWidth)}).bottom<=i.top||i.right<=i.left?i=!1:i.area=(i.bottom-i.top)*(i.right-i.left)}return i},a=function(t,e){if(e){var i=r(t);i&&o.push({url:e,area:i.area,rect:i})}},o=[],u=[],d=.1;try{var c=t.performance.timing.navigationStart;!function(){for(var i=s.getElementsByTagName("*"),n=/url\(.*(http.*)\)/gi,u=0;u<i.length;u++){var d=i[u],c=t.getComputedStyle(d);if("IMG"===d.tagName&&a(d,d.src),c["background-image"]){n.lastIndex=0;var h=n.exec(c["background-image"]);h&&h.length>1&&a(d,h[1].replace('"',""))}if("IFRAME"===d.tagName)try{var l=r(d);if(l){var p=e(d.contentWindow);p&&o.push({tm:p,area:l.area,rect:l})}}catch(f){}}}(),function(){for(var e={},i=t.performance.getEntriesByType("resource"),n=0;n<i.length;n++)e[i[n].name]=i[n].responseEnd;for(var s=0;s<o.length;s++)"tm"in o[s]||(o[s].tm=void 0!==e[o[s].url]?e[o[s].url]:0)}(),function(){"msFirstPaint"in t.performance.timing&&(i=t.performance.timing.msFirstPaint-c);for(var e=t.performance.getEntriesByType("paint"),n=0;n<e.length;n++)"first-paint"===e[n].name&&(i=e[n].startTime);if(void 0===i||i<0||i>12e4){i=t.performance.timing.responseStart-c;for(var r={},a=s.getElementsByTagName("head")[0].children,o=0;o<a.length;o++){var u=a[o];"SCRIPT"===u.tagName&&u.src&&!u.async&&(r[u.src]=!0),"LINK"===u.tagName&&"stylesheet"===u.rel&&u.href&&(r[u.href]=!0)}for(var d=t.performance.getEntriesByType("resource"),h=!1,l=0;l<d.length;l++)if(h||!r[d[l].name]||"script"!==d[l].initiatorType&&"link"!==d[l].initiatorType)h=!0;else{var p=d[l].responseEnd;(void 0===i||p>i)&&(i=p)}}i=Math.max(i,0)}(),function(){for(var e={0:0},n=0,r=0;r<o.length;r++){var a=i;"tm"in o[r]&&o[r].tm>i&&(a=o[r].tm),void 0===e[a]&&(e[a]=0),e[a]+=o[r].area,n+=o[r].area}var c=Math.max(s.documentElement.clientWidth,t.innerWidth||0)*Math.max(s.documentElement.clientHeight,t.innerHe
1ight||0);if(c>0&&(c=Math.max(c-n,0)*d,void 0===e[i]&&(e[i]=0),e[i]+=c,n+=c),n){for(var h in e)e.hasOwnProperty(h)&&u.push({tm:h,area:e[h]});u.sort((function(t,e){return t.tm-e.tm}));for(var l=0,p=0;p<u.length;p++)l+=u[p].area,u[p].progress=l/n}}(),function(){if(u.length){n=0;for(var t=0,e=0,s=0;s<u.length;s++){var r=u[s].tm-t;r>0&&e<1&&(n+=(1-e)*r),t=u[s].tm,e=u[s].progress}}else n=i}()}catch(h){}return n};t.exports=e},7569:function(t,e,i){var n=i(65429),s=i(93501),r=function(){};r.prototype={constructor:function(){}},r.extend=function(t,e){var i,r=this;return i=t&&t.hasOwnProperty("constructor")?t.constructor:function(){return r.apply(this,arguments)},n(i,r,e),i.prototype=s(r.prototype),t&&n(i.prototype,t),i.prototype.constructor=i,i.__super__=r.prototype,i},t.exports=r},37432:function(t,e,i){var n=i(7569),s=i(56654),r=n.extend({exists:function(t){return r.Dictionary.hasOwnProperty(t)},getNewName:function(t){var e=r.Dictionary[t];return s.warn('The option "'+t+'" is deprecated, use "'+e+'" instead'),e}},{Dictionary:{httpSecure:"app.https",username:"user.name",anonymousUser:"user.anonymousId",obfuscateIp:"user.obfuscateIp",userType:"user.type","content.title2":"content.program","background.settings.iphone":"background.settings.iOS","parse.hls":"parse.manifest","parse.dash":"parse.manifest","parse.locationHeader":"parse.manifest","extraparam.1":"content.customDimension.1","extraparam.2":"content.customDimension.2","extraparam.3":"content.customDimension.3","extraparam.4":"content.customDimension.4","extraparam.5":"content.customDimension.5","extraparam.6":"content.customDimension.6","extraparam.7":"content.customDimension.7","extraparam.8":"content.customDimension.8","extraparam.9":"content.customDimension.9","extraparam.10":"content.customDimension.10","extraparam.11":"content.customDimension.11","extraparam.12":"content.customDimension.12","extraparam.13":"content.customDimension.13","extraparam.14":"content.customDimension.14","extraparam.15":"content.customDimension.15","extraparam.16":"content.customDimension.16","extraparam.17":"content.customDimension.17","extraparam.18":"content.customDimension.18","extraparam.19":"content.customDimension.19","extraparam.20":"content.customDimension.20","ad.extraparam.1":"ad.customDimension.1","ad.extraparam.2":"ad.customDimension.2","ad.extraparam.3":"ad.customDimension.3","ad.extraparam.4":"ad.customDimension.4","ad.extraparam.5":"ad.customDimension.5","ad.extraparam.6":"ad.customDimension.6","ad.extraparam.7":"ad.customDimension.7","ad.extraparam.8":"ad.customDimension.8","ad.extraparam.9":"ad.customDimension.9","ad.extraparam.10":"ad.customDimension.10"}});t.exports=r},59055:function(t,e,i){var n=i(7569),s=i(89062),r=n.extend({constructor:function(){this.storage=new s("youboraOffline",!0),this.actualView=null,this.viewList=[],this.givenIds=[],this._getOldViewList()},_newView:function(){var t=this._getValidId();this.storage.setLocal(t,""),this.viewList.push(t),this.storage.setLocal("views",this.viewList),this.actualView=t},addEvent:function(t,e){if("/start"===t&&this._newView(),"/init"===t)return null;if(!this.actualView)return null;var i='{"request":"'+t.slice(1)+'",';for(var n in i+='"unixtime":'+Date.now()+",",e){if(void 0===e[n])break;i+='"'+n+'":',"code"===n?i+='"CODE_PLACEHOLDER",':"sessionId"===n?i+='"SESSION_PLACEHOLDER",':"sessionRoot"===n?i+='"ROOT_PLACEHOLDER",':"string"===typeof e[n]?i+='"'+e[n]+'",':"object"===typeof e[n]?i+='"'+JSON.stringify(e[n]).replace(/"/g,'\\"')+'",':i+=e[n]+","}i=i.slice(0,-1),i+="}";var s=this.storage.getLocal(this.actualView);""!==s&&(s+=","),this.storage.setLocal(this.actualView,s+i)},getView:function(){if(this.viewList.length>this.givenIds.length)for(var t=0;;){var e=this.viewList[t];if(this.givenIds.indexOf(e)<0)return this.givenIds.push(e),["["+this.storage.getLocal(e)+"]",e];t++}return[null,null]},removeView:function(t){this.storage.removeLocal(t);var e=this.viewList.indexOf(t);-1!==e&&this.viewList.splice(e,1),-1!==(e=this.givenIds.indexOf(t))&&this.givenIds.splice(e,1),this.storage.setLocal("views",this.viewList.toString()),t===this.actualView&&(this.actualView=null)},_getOldViewList:function(){var t="";this.storage.getLocal("views")?t=this.storage.getLocal("views"):this.storage.setLocal("views",""),""===t?this.viewList=[]:"function"===typeof t.split&&(this.viewList=t.split(","))},_getValidId:function(){var t=Math.floor(1e8*Math.random()).toString();return this.viewList.indexOf(t)>=0?this._getValidId():t},sent:function(){this.givenIds=[]}});t.exports=r}
1,8041:function(t,e,i){var n=i(7569),s=i(37432),r=i(56654),a=i(86860),o=i(68747),u=i(93551),d=n.extend({constructor:function(t){this.enabled=!0,this.host="a-fds.youborafds01.com",this.accountCode="nicetest",this.authToken=null,this.authType="Bearer",this.preventZombieViews=!0,this.offline=!1,this.referer=null,this.referral=null,this.disableCookies=!0,this.forceCookies=!1,this.disableStorage=!1,this["user.email"]=null,this["user.type"]=null,this["user.name"]=null,this["user.obfuscateIp"]=!1,this["user.anonymousId"]=null,this["user.privacyProtocol"]=null,this["user.profileId"]=null,this["parse.manifest"]=!1,this["parse.cdnParser.get"]=!1,this["parse.manifest.lastChunk"]=!1,this["parse.locationHeader.get"]=!1,this["parse.manifest.auth"]={},this["parse.cdnNameHeader"]=["x-cdn-forward"],this["parse.cdnNodeHeader"]="",this["parse.cdnNode"]=!1,this["parse.cdnNode.list"]=["Akamai","Amazon","Cloudfront","Level3","Fastly","Highwinds","Telefonica","Edgecast","NosOtt"],this["parse.fdsResponseHost"]=null,this["parse.cdnSwitchHeader"]=!1,this["parse.cdnTTL"]=60,this["network.ip"]=null,this["network.isp"]=null,this["network.connectionType"]=null,this["device.id"]=null,this["device.code"]=null,this["device.model"]=null,this["device.brand"]=null,this["device.type"]=null,this["device.name"]=null,this["device.osName"]=null,this["device.osVersion"]=null,this["device.browserName"]=null,this["device.browserVersion"]=null,this["device.browserType"]=null,this["device.browserEngine"]=null,this["device.EDID"]=null,this["device.isAnonymous"]=!1,this["content.transactionCode"]=null,this["content.resource"]=null,this["content.isLive"]=null,this["content.isLive.noSeek"]=!1,this["content.isLive.noMonitor"]=!1,this["content.title"]=null,this["content.program"]=null,this["content.duration"]=null,this["content.fps"]=null,this["content.segmentDuration"]=null,this["content.bitrate"]=null,this["content.totalBytes"]=null,this["content.sendTotalBytes"]=!1,this["content.throughput"]=null,this["content.rendition"]=null,this["content.cdn"]=null,this["content.cdnNode"]=null,this["content.cdnType"]=null,this["content.metadata"]={},this["content.metrics"]={},this["content.streamingProtocol"]=null,this["content.transportFormat"]=null,this["content.package"]=null,this["content.saga"]=null,this["content.tvShow"]=null,this["content.season"]=null,this["content.episodeTitle"]=null,this["content.channel"]=null,this["content.id"]=null,this["content.imdbId"]=null,this["content.gracenoteId"]=null,this["content.type"]=null,this["content.genre"]=null,this["content.language"]=null,this["content.autodetect.language"]=!0,this["content.subtitles"]=null,this["content.autodetect.subtitles"]=!0,this["content.contractedResolution"]=null,this["content.cost"]=null,this["content.price"]=null,this["content.playbackType"]=null,this["content.drm"]=null,this["content.encoding.videoCodec"]=null,this["content.encoding.audioCodec"]=null,this["content.encoding.codecSettings"]=null,this["content.encoding.codecProfile"]=null,this["content.encoding.containerFormat"]=null,this["ad.metadata"]={},this["ad.campaign"]=null,this["ad.creativeId"]=null,this["ad.provider"]=null,this["ad.resource"]=null,this["ad.title"]=null,this["ad.duration"]=null,this["ad.expectedPattern"]=null,this["ad.givenAds"]=null,this["ad.breaksTime"]=null,this["ad.expectedBreaks"]=null,this["ad.givenBreaks"]=null,this["ad.ignore"]=!1,this["ad.blockerDetected"]=null,this["app.name"]=null,this["app.releaseVersion"]=null,this["app.https"]=!1,this["background.enabled"]=!0,this["background.settings"]=null,this["background.settings.android"]="stop",this["background.settings.iOS"]="stop",this["background.settings.desktop"]=null,this["background.settings.tv"]="stop",this["background.settings.playstation"]="stop",this["cdnbalancer.uuid"]=null,this["content.customDimensions"]={},this["content.customDimension.1"]=null,this["content.customDimension.2"]=null,this["content.customDimension.3"]=null,this["content.customDimension.4"]=null,this["content.customDimension.5"]=null,this["content.customDimension.6"]=null,this["content.customDimension.7"]=null,this["content.customDimension.8"]=null,this["content.customDimension.9"]=null,this["content.customDimension.10"]=null,this["content.customDimension.11"]=null,this["content.customDimension.12"]=null,this["content.customDimension.13"]=null,this["content.customDimension.14"]=null,this["content.customDimension.15"]=null,this["content.customDimension.16"]=null,this["content.customDimension.17"]=null,this["content.customDimension.18"]=null,this["content.customDimension.19"]=null,this["content.customDimension.20"]=null,this["ad.customDimension.1"]=null,this["ad.customDimension.2"]=null,this["ad.customDimension.3"]=null,this["ad.customDimension.4"]=null,this["ad.customDimension.5"]=null,this["ad.customDimension.6"]=null,this["ad.customDimension.7"]=null,this["ad.customDimension.8"]=null,this["ad.customDimension.9"]=null,this["ad.customDimension.10"]=null,this.forceInit=!1,this["session.metrics"]={},this["session.context"]=!1,this["errors.fatal"]=[],this["errors.nonFatal"]=[],this["errors.ignore"]=[],this.linkedViewId=null,this.waitForMetadata=!1,this.pendingMetadata=[],this.method=u.GET,this["playhead.monitor"]=!0,this["readyState.monitor"]=!0,this["session.splitViews"]=!1,this.setOptions(t)},setOptions:function(t,e){var i=!1;if(void 0===e){e=this,i=!0;var n=new s}if("undefined"!==typeof t)for(var a in t){var o=!1,u=null;i&&(this.hasOwnProperty(a)||(n.exists(a)?(u=n.getNewName(a),o=!0):r.warn('The option "'+a+'" does not exist, so it cannot be set'))),"object"!==typeof e[a]||null===e[a]||Array.isArray(e[a])||"parse.cdnNode.list"!==a?o?e[u]=t[a]:e[a]=t[a]:this.setOptions(t[a],e[a])}},setExtraParams:function(t){if("object"===typeof t&&t.length){for(t.length>=20&&(t=t.slice(0,20));t.length<20;)t.push(null);t.forEach(function(t,e){this["content.customDimension."+(e+1).toString()]=t}.bind(this))}},setCustomDimensions:function(){d.prototype.setExtraParams.apply(this,arguments)},setAdExtraParams:function(t){if("object"===typeof t&&t.length){for(t.length>
1=10&&(t=t.slice(0,10));t.length<10;)t.push(null);t.forEach(function(t,e){this["ad.customDimension."+(e+1).toString()]=t}.bind(this))}},setAdCustomDimensions:function(){d.prototype.setAdExtraParams.apply(this,arguments)}},{StreamingProtocol:o,TransportFormat:a,RequestMethod:u});t.exports=d},11754:function(t,e,i){var n=i(56654),s=i(73183),r=i(96229),a={getAdPlayerVersion:function(){return this._safeGetterAdsAdapter("getPlayerVersion")||""},getAdPosition:function(){var t=r.AdPosition.Preroll;if(this._adsAdapter)try{var e=this._adsAdapter.getPosition();r.AdPosition.Preroll!==e&&r.AdPosition.Midroll!==e&&r.AdPosition.Postroll!==e||(t=e)}catch(i){n.warn("An error occured while calling getAdPosition",i)}return!t&&this._adapter&&(t=this._adapter.flags.isJoined?r.AdPosition.Midroll:r.AdPosition.Preroll),t},getAdNumber:function(){return this.requestBuilder.lastSent.adNumber||0},getAdNumberInBreak:function(){return this.requestBuilder.lastSent.adNumberInBreak||0},getBreakNumber:function(){return this.requestBuilder.lastSent.breakNumber||0},getAdPlayhead:function(){var t=this._safeGetterAdsAdapter("getPlayhead");return s.parseNumber(t,0)},getAdDuration:function(){var t=this._safeGetterAdsAdapter("getDuration","ad.duration");return s.parseNumber(t,0)},getAdBitrate:function(){var t=this._safeGetterAdsAdapter("getBitrate");return t&&-1!==t||(t=this.getWebkitAdBitrate()),s.parseNumber(t,-1)},getWebkitAdBitrate:function(){if(this._adsAdapter&&this._adsAdapter.tag&&this._adsAdapter.tag.webkitVideoDecodedByteCount){var t=this._adsAdapter.tag.webkitVideoDecodedByteCount;if(this._lastWebkitAdBitrate){var e=this._adsAdapter.tag.webkitVideoDecodedByteCount-this._lastWebkitAdBitrate;t=Math.round(e/this.viewTransform.response.pingTime*8)}return this._lastWebkitAdBitrate=this._adsAdapter.tag.webkitVideoDecodedByteCount,0!==t?t:-1}},getAdTitle:function(){return this._safeGetterAdsAdapter("getTitle","ad.title")},getAdResource:function(){return this._safeGetterAdsAdapter("getResource","ad.resource")},getAdCampaign:function(){return this._safeGetterAdsAdapter("getCampaign","ad.campaign")},getAdCreativeId:function(){return this._safeGetterAdsAdapter("getCreativeId","ad.creativeId")},getAdProvider:function(){return this._safeGetterAdsAdapter("getProvider","ad.provider")},getAdAdapterVersion:function(){return this._safeGetterAdsAdapter("getVersion")},getAdMetadata:function(){return this.options["ad.metadata"]},getAdInsertionType:function(){return this._safeGetterAdsAdapter("getAdInsertionType")},getGivenBreaks:function(){return this._safeGetterAdsAdapter("getGivenBreaks","ad.givenBreaks")},getExpectedBreaks:function(){var t=null,e=this.options["ad.expectedBreaks"],i=this.options["ad.expectedPattern"];if(e)t=e;else if(i)t=0,t=i.pre?i.pre.length:0,t+=i.mid?i.mid.length:0,t+=i.post?i.post.length:0;else if(this._adsAdapter)try{t=this._adsAdapter.getExpectedBreaks()}catch(s){n.warn("An error occured while calling expectedBreaks",s)}return t},getExpectedPattern:function(){return this._safeGetterAdsAdapter("getExpectedPattern","ad.expectedPattern")},getBreaksTime:function(){return this._safeGetterAdsAdapter("getBreaksTime","ad.breaksTime")},getGivenAds:function(){return this._safeGetterAdsAdapter("getGivenAds","ad.givenAds")},getExpectedAds:function(){var t=null;try{if(this._adsAdapter){var e=this.options["ad.expectedPattern"];if(e&&this.getAdPosition()){var i=[];if(e.pre&&(i=i.concat(e.pre)),e.mid&&(i=i.concat(e.mid)),e.post&&(i=i.concat(e.post)),i.length>0){var s=this.requestBuilder.lastSent.breakNumber;s>i.length&&(s=i.length),t=i[s-1]}}else t=this._adsAdapter.getExpectedAds()}}catch(r){n.warn("An error occured while calling expectedAds",r)}return t},getAdsExpected:function(){var t=null;try{t=this.getExpectedPattern()||this.getGivenAds()||!1}catch(e){n.warn("An error occured while calling givenAds or expectedPattern",e)}return t},getAdJoinDuration:function(){return this._adsAdapter?this._adsAdapter.chronos.join.getDeltaTime(!1):-1},getAdBufferDuration:function(){return this._adsAdapter?this._adsAdapter.chronos.buffer.getDeltaTime(!1):-1},getAdPauseDuration:function(){return this._adsAdapter?this._adsAdapter.chronos.pause.getDeltaTime(!1):0},getAdTotalDuration:function(){return this._adsAdapter?this._adsAdapter.chronos.total.getDeltaTime(!1):-1},getAdViewedDuration:function(){return this._getTimeMaxOrAcum(!0)},getAdViewability:function(){return this._getTimeMaxOrAcum()},_getTimeMaxOrAcum:function(t){var e=0;return this._adsAdapter&&this._adsAdapter.chronos.viewedMax.forEac
1h((function(i){t?e+=i.getDeltaTime(!1):e=Math.max(i.getDeltaTime(!1),e)})),e},getAudioEnabled:function(){return this._safeGetterAdsAdapter("getAudioEnabled")},getIsSkippable:function(){return this._safeGetterAdsAdapter("getIsSkippable")},getIsFullscreen:function(){return this._safeGetterAdsAdapter("getIsFullscreen")},_safeGetterAdsAdapter:function(t,e){var i=null;if(e&&this.options[e])i=this.options[e];else try{this._adsAdapter&&"function"===typeof this._adsAdapter[t]&&(i=this._adsAdapter[t]())}catch(s){n.warn("An error occured while calling "+t,s)}return i}};t.exports=a},99020:function(t,e,i){var n=i(56654),s=i(96229),r=i(15382),a=i(73183),o={getAdsAdapter:function(){return this._adsAdapter},setAdsAdapter:function(t){if(t.plugin)n.warn("Adapters can only be added to a single plugin");else for(var e in this.removeAdsAdapter(),t.plugin=this,this._adsAdapter=t,t.setIsAds(!0),this.adsAdapterListeners={},this.adsAdapterListeners[r.Event.START]=this._adStartListener.bind(this),this.adsAdapterListeners[r.Event.JOIN]=this._adJoinListener.bind(this),this.adsAdapterListeners[r.Event.PAUSE]=this._adPauseListener.bind(this),this.adsAdapterListeners[r.Event.RESUME]=this._adResumeListener.bind(this),this.adsAdapterListeners[r.Event.BUFFER_BEGIN]=this._adBufferBeginListener.bind(this),this.adsAdapterListeners[r.Event.BUFFER_END]=this._adBufferEndListener.bind(this),this.adsAdapterListeners[r.Event.STOP]=this._adStopListener.bind(this),this.adsAdapterListeners[r.Event.ERROR]=this._adErrorListener.bind(this),this.adsAdapterListeners[r.Event.CLICK]=this._adClickListener.bind(this),this.adsAdapterListeners[r.Event.MANIFEST]=this._adManifestListener.bind(this),this.adsAdapterListeners[r.Event.PODSTART]=this._adBreakStartListener.bind(this),this.adsAdapterListeners[r.Event.PODSTOP]=this._adBreakStopListener.bind(this),this.adsAdapterListeners[r.Event.QUARTILE]=this._adQuartileListener.bind(this),this.adsAdapterListeners)this._adsAdapter.on(e,this.adsAdapterListeners[e])},removeAdsAdapter:function(){if(this._adsAdapter){if(this._adsAdapter.dispose(),this._adsAdapter.plugin=null,this.adsAdapterListeners){for(var t in this.adsAdapterListeners)this._adsAdapter.off(t,this.adsAdapterListeners[t]);delete this.adsAdapterListeners}this.resizeScrollDetector.stopDetection(),this._adsAdapter=null}},_adStartListener:function(t){this._adapter?(this._adapter.fireBufferEnd(null,"adStartListener"),this._adapter.fireSeekEnd(null,"adStartListener"),this.isInitiated||this._adapter.flags.isStarted||this._adapter.fireStart(),this._adapter.flags.isPaused&&this._adapter.chronos.pause.reset()):this.fireInit(),this._adsAdapter&&(this._adsAdapter.chronos.viewedMax=[]);var e=t.data.params||{};e.adNumber=this.requestBuilder.getNewAdNumber(),(this.getAdResource()||this.getAdTitle())&&"number"===typeof this.getAdDuration()?(this.adStartSent=!0,this._adsAdapter.fireManifest(),this._adsAdapter.fireBreakStart(),e.adNumberInBreak=this.requestBuilder.getNewAdNumberInBreak(),this._sendAdEventIfAllowed(s.WillSendEvent.WILL_SEND_AD_START,s.Service.AD_START,e)):(this.adInitSent=!0,e.adNumberInBreak=this.requestBuilder.getNewAdNumberInBreak(),this._sendAdEventIfAllowed(s.WillSendEvent.WILL_SEND_AD_INIT,s.Service.AD_INIT,e))},_adJoinListener:function(t){var e={};a.assign(e,t.data.params||{}),this.adInitSent&&!this.adStartSent&&(this._adsAdapter.fireManifest(),this._adsAdapter.fireBreakStart(),this._sendAdEventIfAllowed(s.WillSendEvent.WILL_SEND_AD_START,s.Service.AD_START,e)),this._adsAdapter.startChronoView(),this.adConnected&&(this._adsAdapter.chronos.join.startTime=this.adConnectedTime,this._adsAdapter.chronos.total.startTime=this.adConnectedTime,this.adConnectedTime=0,this.adConnected=!1),e=t.data.params||{},this._sendAdEventIfAllowed(s.WillSendEvent.WILL_SEND_AD_JOIN,s.Service.AD_JOIN,e),this.adInitSent=!1,this.adStartSent=!1},_adPauseListener:function(t){var e=t.data.params||{};this._adsAdapter.stopChronoView(),this._sendAdEventIfAllowed(s.WillSendEvent.WILL_SEND_AD_PAUSE,s.Service.AD_PAUSE,e)},_adResumeListener:function(t){var e=t.data.params||{};this._adsAdapter.startChronoView(),this._sendAdEventIfAllowed(s.WillSendEvent.WILL_SEND_AD_RESUME,s.Service.AD_RESUME,e)},_adBufferBeginListener:function(t){n.notice("Ad Buffer Begin"),this._adsAdapter.stopChronoView(),this._adsAdapter&&this._adsAdapter.flags.isPaused&&this._adsAdapter.chronos.pause.reset()},_adBufferEndListener:function(t){var e=t.data.params||{};this._adsAdapter.startChronoView(),this._sendAdEventIfAllowed(s.WillSendEvent.WILL_SEND_AD_BUFFER,s.Service.AD_BUFFER,e)},_adStopListener:function(t){this._adsAdapter.stopChronoView(),this._adsAdapter.flags.reset(),this._totalPrerollsTime=(this._totalPrerollsTime||0)+this._adsAdapter.chronos.total.getDeltaTime();var e=t.data.params||{};if(e.position=this.requestBuilder.lastSent.position,this._sendAdEventIfAllowed(s.WillSendEvent.WILL_SEND_AD_STOP,s.Service.AD_STOP,e),this.requestBuilder.lastSent.position===s.AdPosition.Postroll){var i=this.options["ad.expectedPattern"];this.playedPostrolls++,(this.requestBuilder.lastSent.givenAds&&this.requestBuilder.lastSent.givenAds<=this.playedPostrolls||!this.requestBuilder.lastSent.givenAds&&i&&i.post&&i.post[0]&&i.post[0]<=this.playedPostrolls)&&this.fireStop()}this.adConnected=!0,this.adConnectedTime=(new Date).getTime()},_adErrorListener:function(t){var e=t.data.params||{};return!this._adapter||this._adapter.flags.isStarted||this.isInitiated?this._blockAdError(t.data.params)?null:(this._adsAdapter&&(this._adsAdapter.fireManifest(),this._adsAdapter.fireBreakStart()),this._adsAdapter&&this._adsAdapter.flags.isStarted||(e.adNumber=this.requestBuilder.getNewAdNumber(),e.adNumberInBreak=this.requestBuilder.getNewAdNumberInBreak()),this.isBreakStarted||(e.breakNumber=this.requestBuilder.getNewBreakNumber()),void this._sendAdEventIfAllowed(s.WillSendEvent.WILL_SEND_AD_ERROR,s.Service.AD_ERROR,e)):(this._savedAdError=t,null)},_adSavedError:function(){this._savedAdError&&(this._adErrorListener(this._savedAdError),this._savedAdError=null)},_adSavedManifest:function(){this._savedAdManifest&&(this._adManifestListener(this._savedAdManifest),this._savedAdManifest=null)},_blockAdError:function(t){var e=Date.now();
1return this._lastAdErrorParams&&this._lastAdErrorParams.errorCode===t.errorCode&&this._lastAdErrorParams.msg===t.msg&&this._lastAdErrorParams.adCreativeId===this.getAdCreativeId()&&this._lastAdErrorTime+5e3>e?(this._lastAdErrorTime=e,!0):(this._lastAdErrorTime=e,this._lastAdErrorParams=t,!1)},_adClickListener:function(t){var e=t.data.params||{};this._adsAdapter.stopChronoView(),this._sendAdEventIfAllowed(s.WillSendEvent.WILL_SEND_AD_CLICK,s.Service.AD_CLICK,e)},_adManifestListener:function(t){if(!this.isAdsManifestSent){if(this._adapter&&!this._adapter.flags.isStarted&&!this.isInitiated)return this._savedAdManifest=t,null;var e=t.data.params||{};this.isAdsManifestSent=!0,this._sendAdEventIfAllowed(s.WillSendEvent.WILL_SEND_AD_MANIFEST,s.Service.AD_MANIFEST,e)}},_adBreakStartListener:function(t){if(!this.isBreakStarted){this.isBreakStarted=!0,this._adapter&&this._adapter.firePause();var e=t.data.params||{};e.breakNumber=this.requestBuilder.getNewBreakNumber(),this._sendAdEventIfAllowed(s.WillSendEvent.WILL_SEND_AD_POD_START,s.Service.AD_POD_START,e),this.adConnected=!1}},_adBreakStopListener:function(t){if(this.isBreakStarted){this.isBreakStarted=!1;var e=t.data.params||{};e.position=this.requestBuilder.lastSent.position,this._sendAdEventIfAllowed(s.WillSendEvent.WILL_SEND_AD_POD_STOP,s.Service.AD_POD_STOP,e),this.adConnected=!1,this._adapter&&this._adapter.fireResume()}},_adQuartileListener:function(t){var e=t.data.params||{};e.quartile&&this._sendAdEventIfAllowed(s.WillSendEvent.WILL_SEND_AD_QUARTILE,s.Service.AD_QUARTILE,e)},_sendAdEventIfAllowed:function(t,e,i){this.options["ad.ignore"]||this._send(t,e,i),n.notice(e)}};t.exports=o},75006:function(t,e,i){var n=i(56654),s=i(73183),r=i(11095),a=i(86860),o=i(68747),u={getPlayhead:function(){var t=this._safeGetterAdapter("getPlayhead");return s.parseNumber(t,0)},getPlayrate:function(){var t=0;if(this._adapter&&this._adapter.flags&&!this._adapter.flags.isPaused)try{t=this._adapter.getPlayrate()}catch(e){n.warn("An error occured while calling getPlayrate",e)}return t},getFramesPerSecond:function(){return this._safeGetterAdapter("getFramesPerSecond","content.fps")},getSegmentDuration:function(){return this.hybridNetwork.getSegmentDuration()||this._safeGetterAdapter("getSegmentDuration","content.segmentDuration")},getDroppedFrames:function(){var t=this._safeGetterAdapter("getDroppedFrames");return t||(t=this.getWebkitDroppedFrames()),s.parseNumber(t,0)},getWebkitDroppedFrames:function(){return this._adapter&&this._adapter.tag&&this._adapter.tag.webkitDroppedFrameCount?this._adapter.tag.webkitDroppedFrameCount:null},getDuration:function(){var t=this._safeGetterAdapter("getDuration","content.duration")||null;return s.parseNumber(Math.round(t),null)},getBitrate:function(){var t=this._safeGetterAdapter("getBitrate","content.bitrate");return t&&-1!==t||(t=this.getWebkitBitrate()),s.parseNumber(t,-1)},getTotalBytes:function(){return this.options["content.sendTotalBytes"]?this._safeGetterAdapter("getTotalBytes","content.totalBytes"):null},getWebkitBitrate:function(){if(this._adapter&&this._adapter.tag&&this._adapter.tag.webkitVideoDecodedByteCount){var t=this._adapter.tag.webkitVideoDecodedByteCount;if(this._lastWebkitBitrate){var e=this._adapter.tag.webkitVideoDecodedByteCount-this._lastWebkitBitrate;t=Math.round(e/this.viewTransform.response.pingTime*8)}return this._lastWebkitBitrate=this._adapter.tag.webkitVideoDecodedByteCount,0!==t?t:-1}},getThroughput:function(){var t=this._safeGetterAdapter("getThroughput","content.throughput");return s.parseNumber(t,-1)},getRendition:function(){return this._safeGetterAdapter("getRendition","content.rendition")},getTitle:function(){return this._safeGetterAdapter("getTitle","content.title")},getTitle2:function(){return this._safeGetterAdapter("getTitle2","content.program")},getIsLive:function(){var t=this.options["content.isLive"];return(t=this._convertStringToBoolean(t))||!1===t||(t=this._safeGetterAdapter("getIsLive")||!1),t},getResource:function(){return this._safeGetterAdapter("getResource","content.resource")},getParsedResource:function(){var t=null;return this.resourceTransform.isBlocking()||(t=this.resourceTransform.getResource()),(t=t||this._safeGetterAdapter("getURLToParse"))===this.getResource()?null:t},getTransactionCode:function(){return this.options["content.transactionCode"]},getMetadata:function(){return this.options["content.metadata"]},getPlayerVersion:function(){return this._safeGetterAdapter("getPlayerVersion")||""},getPlayerName:function(){return this._safeGetterAdapter("getPlayerName")||""},getCdn:function(){var t=null;return this.resourceTransform.isBlocking()||(t=this.resourceTransform.getCdnName()),t||this.options["content.cdn"]},getPluginVersion:function(){var t=this.getAdapterVersion();return t||(t=r+"-adapterless-js"),t},getLibVersion:function(){return r},getAdapterVersion:function(){return this._safeGetterAdapter("getVersion")},getCdnTraffic:function(){return this._safeGetterAdapter("getCdnTraffic")||this.hybridNetwork.getCdnTraffic()},getMultiCdnInfo:function(){return this.hybridNetwork.getMultiCdnInfo()},getBalancerResponseId:function(){var t=this.hybridNetwork.getBalancerResponseId();return!t&&this.options["cdnbalancer.uuid"]?this.options["cdnbalancer.uuid"]:t},getP2PTraffic:function(){return this._safeGetterAdapter("getP2PTraffic")||this.hybridNetwork.getP2PTraffic()},getUploadTraffic:function(){return this._safeGetterAdapter("getUploadTraffic")||this.hybridNetwork.getUploadTraffic()},getIsP2PEnabled:function(){return this._safeGetterAdapter("getIsP2PEnabled")||this.hybridNetwork.getIsP2PEnabled()},getStreamingProtocol:function(){var t=this.options["content.streamingProtocol"];if(t)for(var e in o)if(o[e]===t)return t;return null},getTransportFormat:function(){var t=this.options["content.transportFormat"];if(t||!this.options["parse.manifest"]||this.resourceTransform.isBlocking()||(t=this.resourceTransform.getTransportFormat()),t)for(var e in a)if(a[e]===t)return t;return null},getHouseholdId:function(){return this._safeGetterAdapter("getHouseholdId")},getLatency:function(){return this.getIsLive()?this._safeGetterAdapter("getLatency"):null},getPacketLoss:function(){return this._safeGetterAdapter("getPacketLoss")},getPacketSent:function(){return this._safeGetterAdapter("getPacketSent")},getVideoMetrics:function(){return s.getMetricsFrom(this._adapter?this._adapter.getMetrics():null,this.options["content.metrics"])},getPlayerStartupTime:function(){return this.browserLoadTimes.getPlayerStartupTime()},getJoinDuration:function(){return this._adapter?this._adapter.chronos.join.getDeltaTime(!1):-1},getBufferDuration:function(){return this._adapter?this._adapter.chronos.buffer.getDeltaTime(!1):-1},getSeekDuration:function(){return this._adapter?this._adapter.chronos.seek.getDeltaTime(!1):-1},getPauseDuration:function(){return this._adapter?this._adapter.chronos.pause.getDeltaTime(!1):0},getPackage:function(){return this.options["content.package"]},getSaga:function(){return this.options["content.saga"]},getTvShow:function(){return this.options["content.tvShow"]},getSeason:function(){return this.options["content.season"]},getEpisodeTitle:function(){return this.options["content.episodeTitle"]},getChannel:function(){return this.options["content.channel"]},getID:function(){return this.options["content.id"]},getImdbId:function(){return this.options["content.imdbId"]},getGracenoteID:function(){return this.options["content.gracenoteId"]},getType:function(){return this.options["content.type"]},getGenre:function(){return this.options["content.genre"]},getVideoLanguage:function(){return this.options["content.language"]},getSubtitles:function(){return this.options["content.subtitles"]},getContractedResolution:function(){return this.options["content.contractedResolution"]},getCost:function(){return this.options["content.cost"]}
1,getPrice:function(){return this.options["content.price"]},getPlaybackType:function(){var t=this.options["content.playbackType"];if(!t){var e=this.options["content.isLive"];"boolean"!==typeof e&&(e=this._safeGetterAdapter("getIsLive")),"boolean"===typeof e&&(t=e?"Live":"VoD")}return t},getDRM:function(){return this.options["content.drm"]},getVideoCodec:function(){return this._safeGetterAdapter("getVideoCodec","content.encoding.videoCodec")},getAudioCodec:function(){return this._safeGetterAdapter("getAudioCodec","content.encoding.audioCodec")},getCodecSettings:function(){return this.options["content.encoding.codecSettings"]},getCodecProfile:function(){return this.options["content.encoding.codecProfile"]},getContainerFormat:function(){return this.options["content.encoding.containerFormat"]},getLinkedViewId:function(){return this.options.linkedViewId},_safeGetterAdapter:function(t,e){var i=null;if(e&&this.options[e])i=this.options[e];else try{this._adapter&&"function"===typeof this._adapter[t]&&(i=this._adapter[t]())}catch(s){n.warn("An error occured while calling "+t,s)}return i},_convertStringToBoolean:function(t){return"true"===t||"false"!==t&&"string"!==typeof t&&t}};t.exports=u},2516:function(t,e,i){var n=i(56654),s=i(96229),r=i(73183),a=i(15382),o={setAdapter:function(t){if(this.browserLoadTimes&&this.browserLoadTimes.setPlayerSetupTime(),t.plugin)n.warn("Adapters can only be added to a single plugin");else{for(var e in this.removeAdapter(),this._adapter=t,t.plugin=this,t.setIsAds(!1),this.contentAdapterListeners={},this.contentAdapterListeners[a.Event.START]=this._startListener.bind(this),this.contentAdapterListeners[a.Event.JOIN]=this._joinListener.bind(this),this.contentAdapterListeners[a.Event.PAUSE]=this._pauseListener.bind(this),this.contentAdapterListeners[a.Event.RESUME]=this._resumeListener.bind(this),this.contentAdapterListeners[a.Event.SEEK_BEGIN]=this._seekBufferBeginListener.bind(this),this.contentAdapterListeners[a.Event.SEEK_END]=this._seekEndListener.bind(this),this.contentAdapterListeners[a.Event.BUFFER_BEGIN]=this._seekBufferBeginListener.bind(this),this.contentAdapterListeners[a.Event.BUFFER_END]=this._bufferEndListener.bind(this),this.contentAdapterListeners[a.Event.ERROR]=this._errorListener.bind(this),this.contentAdapterListeners[a.Event.STOP]=this._stopListener.bind(this),this.contentAdapterListeners[a.Event.VIDEO_EVENT]=this._videoEventListener.bind(this),this.contentAdapterListeners[a.Event.VIDEO_EVENT_END]=this._videoEventEndListener.bind(this),this.contentAdapterListeners)this._adapter.on(e,this.contentAdapterListeners[e]);this.productAnalytics&&this.productAnalytics.adapterAfterSet()}},getAdapter:function(){return this._adapter},removeAdapter:function(){if(this._adapter){if(this.productAnalytics&&this.productAnalytics.adapterBeforeRemove(),this._adapter.dispose(),this._adapter.plugin=null,this.contentAdapterListeners){for(var t in this.contentAdapterListeners)this._adapter.off(t,this.contentAdapterListeners[t]);delete this.contentAdapterListeners}this._adapter=null}},_startListener:function(t){this.isInitiated?0!==this.initChrono.startTime&&(this._adapter.chronos.join.startTime=this.initChrono.startTime):(this.viewTransform.nextView(),this.options&&this.options["session.splitViews"]&&(t.data.params.viewIndex=this.viewTransform._viewIndex),this._initComm(),this._startPings());try{if(this._adapter&&this.resourceTransform){var e=this._getResourceForTransform();this.resourceTransform.init(e)}}catch(t){}var i=t.data.params||{},r=this.getResource()&&"boolean"===typeof this.getIsLive()&&(this.getIsLive()||"number"===typeof this.getDuration()&&this.getDuration()>0)&&this.getTitle();(r=!this.options.forceInit&&(r&&this._isExtraMetadataReady()))&&!this.isInitiated?(this._send(s.WillSendEvent.WILL_SEND_START,s.Service.START,i),this._adSavedError(),this._adSavedManifest(),n.notice(s.Service.START+" "+(i.title||i.mediaResource)),this.isStarted=!0):this.isInitiated||(this.isInitiated=!0,this._adapter.chronos.join.start(),this._send(s.WillSendEvent.WILL_SEND_INIT,s.Service.INIT,i),this._adSavedError(),this._adSavedManifest(),n.notice(s.Service.INIT+" "+(i.title||i.mediaResource)))},_retryStart:function(t){this._isExtraMetadataReady()&&(this._send(s.WillSendEvent.WILL_SEND_START,s.Service.START,{}),this.startDelayed=!1)},_joinListener:function(t){var e={};r.assign(e,t.data.params||{}),this._adsAdapter&&this._adsAdapter.flags.isStarted?(this._adapter.monitor&&this._adapter.monitor.stop(),this._adapter.flags.isJoined=!1,this._adapter.chronos.join.stopTime=0):(this._adapter&&(this._adapter.chronos.join.startTime=Math.min(this._adapter.chronos.join.startTime+(this._totalPrerollsTime||0),(new Date).getTime()),this._totalPrerollsTime=0),this.isInitiated&&!this.isStarted&&(this._isExtraMetadataReady()?this._send(s.WillSendEvent.WILL_SEND_START,s.Service.START,e):this.startDelayed=!0,this._adSavedError(),this._adSavedManifest(),n.notice(s.Service.START+" "+(e.title||e.mediaResource)),this.isStarted=!0),e=t.data.params||{},this._adsAdapter&&this.isBreakStarted&&this._adsAdapter.fireBreakStop(),this._send(s.WillSendEvent.WILL_SEND_JOIN,s.Service.JOIN,e),n.notice(s.Service.JOIN+" "+e.joinDuration+"ms"))},_pauseListener:function(t){this._adapter&&(this._adapter.flags.isBuffering||this._adapter.flags.isSeeking||this._adsAdapter&&this._adsAdapter.flags.isStarted)&&this._adapter.chronos.pause.reset();var e=t.data.params||{};this._send(s.WillSendEvent.WILL_SEND_PAUSE,s.Service.PAUSE,e),n.notice(s.Service.PAUSE+" at "+e.playhead+"s")},_resumeListener:function(t){this._adsAdapter&&this.isBreakStarted&&!this._adsAdapter.flags.isStarted&&this._adsAdapter.fireBreakStop();var e=t.data.params||{};this._send(s.WillSendEvent.WILL_SEND_RESUME,s.Service.RESUME,e),n.notice(s.Service.RESUME+" "+e.pauseDuration+"ms"),this._adapter.chronos.pause.reset()},_seekBufferBeginListener:function(t){this._adapter&&this._adapter.flags.isPaused&&this._adapter.chronos.pause.reset(),t.type&&t.type.includes("buffer")?n.notice(t.type+", eventsTriggered: "+this._adapter.fireEventsStruct.buffer):n.notice(t.type+", eventsTriggered: "+this._adapter.fireEventsStruct.seek)},_seekEndListener:function(t){var e=t.data.params||{};this._send(s.WillSendEvent.WILL_SEND_SEEK,s.Service.SEEK,e),n.notice(s.Service.SEEK+" to "+e.playhead+" in "+e.seekDuration+"ms"+(e.triggeredEvents?", eventsTriggered: "+e.triggeredEvents:""))},_bufferEndListener:function(t){var e=t.data.params||{};this._send(s.WillSendEvent.WILL_SEND_BUFFER,s.Service.BUFFER,e),n.notice(s.Service.BUFFER+" to "+e.playhead+" in "+e.bufferDuration+"ms"+(e.triggeredEvents?", eventsTriggered: "+e.triggeredEvents:""))},_errorListener:function(t){this._blockError(t.data.params)||(this.fireError(t.data.params||{}),this._adSavedError(),this._adSavedManifest())},_blockError:function(t){var e=Date.now();
1return!!this._lastErrorParams&&(this._lastErrorParams.errorCode===t.errorCode&&this._lastErrorParams.msg===t.msg)&&this._lastErrorTime+5e3>e?(this._lastErrorTime=e,!0):(this._lastErrorTime=e,this._lastErrorParams=t,!1)},_stopListener:function(t){this.fireStop(t.data.params||{})},_isStopReady:function(t){var e=!1;if(!this.requestBuilder.lastSent.live&&this._adsAdapter&&this._adapter&&(!this._adapter.getPlayhead()||this._adapter.getPlayhead()>=this.requestBuilder.lastSent.mediaDuration-1)){var i=0,n=this.options["ad.expectedPattern"];if(n&&n.post&&n.post[0])i=n.post[0];else if(this.requestBuilder.lastSent.breaksTime){if(this.requestBuilder.lastSent.position===s.AdPosition.Postroll&&(i=this.requestBuilder.lastSent.givenAds),!i&&this.requestBuilder.lastSent.breaksTime){var r=this.requestBuilder.lastSent.breaksTime;if(r.length>0&&this.requestBuilder.lastSent.mediaDuration)Math.round(r[r.length-1])+1>=this.requestBuilder.lastSent.mediaDuration&&(i=1)}}else e=!0;i<=this.playedPostrolls&&(e=!0)}else e=!0;return e},_videoEventListener:function(t){this._send(s.WillSendEvent.WILL_SEND_VIDEO_EVENT,s.Service.VIDEO_EVENT,t.data.params)},_videoEventEndListener:function(t){this._send(s.WillSendEvent.WILL_SEND_VIDEO_EVENT_END,s.Service.VIDEO_EVENT_END,t.data.params)},_isExtraMetadataReady:function(t){if(!this.options.waitForMetadata||this.options.pendingMetadata.length<1)return!0;var e=this.requestBuilder.getGetters();return this.options.pendingMetadata.map(function(t){if(e.hasOwnProperty(t))return!!this[e[t]]()}.bind(this)).indexOf(!1)<0}};t.exports=o},47064:function(t,e,i){var n=i(56654),s=i(73183),r=i(96229),a=i(81935),o={fireInit:function(t,e){this.isInitiated||(!this.getAdapter()||this.getAdapter()&&!this.getAdapter().flags.isStarted)&&(this.viewTransform.nextView(),this._initComm(),this._startPings(),this.initChrono.start(),this.isInitiated=!0,t=t||{},e&&(t.triggeredEvents=[e]),this.options&&this.options["session.splitViews"]&&(t.viewIndex=this.plugin.viewTransform._viewIndex),this._send(r.WillSendEvent.WILL_SEND_INIT,r.Service.INIT,t),this._adSavedError(),this._adSavedManifest(),n.notice(r.Service.INIT+" "+(t.title||t.mediaResource)))},fireError:function(t,e,i,a){this.fireInit();var o=s.buildErrorParams(t,e,i,a);o.code&&delete o.code,this._send(r.WillSendEvent.WILL_SEND_ERROR,r.Service.ERROR,o),this._adSavedError(),this._adSavedManifest(),n.notice(r.Service.ERROR+" "+o.errorLevel+" "+o.errorCode),"fatal"===o.errorLevel&&this.fireStop()},fireFatalError:function(t,e,i,n){this.fireError(t,e,i,n),this.fireStop()},fireStop:function(t){if(this.isInitiated||this.isStarted){this._adapter&&(this._adapter.flags.isStopped=!0,this._adapter.monitor&&this._adapter.monitor.stop()),this._adsAdapter&&this.isBreakStarted&&(this._adsAdapter.fireStop(),this._adsAdapter.fireBreakStop()),t=t||{},this._send(r.WillSendEvent.WILL_SEND_STOP,r.Service.STOP,t);var e=this._adapter?this._adapter.chronos:null;e&&(e.total.stop(),e.join.reset(),e.pause.reset(),e.buffer.reset(),e.seek.reset()),n.notice(r.Service.STOP+" at "+t.playhead+"s"),this._reset()}},fireOfflineEvents:function(t){this.options&&!this.options.offline?this.isInitiated||this._adapter&&this._adapter.flags.isStarted||this._adsAdapter&&this._adsAdapter.flags.isStarted?n.error("Adapters have to be stopped"):(this._offlineParams=t,this.viewTransform.response.code&&this.viewTransform.response.host?this._generateAndSendOffline():(this.offlineReference=this._generateAndSendOffline.bind(this),this.viewTransform.on(a.Event.DONE,this.offlineReference))):n.error("To send offline events, offline option must be disabled")},_generateAndSendOffline:function(){if(this.options.disableStorage)return null;var t=this._offlineParams;for(this._initComm();;){var e=this.requestBuilder.buildBody(r.Service.OFFLINE_EVENTS).viewJson;if(null===e[0])break;var i=this.viewTransform.nextView(),n=e[0].replace(/CODE_PLACEHOLDER/g,i.toString()).replace(/,"sessionId":"SESSION_PLACEHOLDER"/g,"").replace(/,"sessionRoot":"ROOT_PLACEHOLDER"/g,"");this._send(r.WillSendEvent.WILL_SEND_OFFLINE_EVENTS,r.Service.OFFLINE_EVENTS,t,n,"POST",function(t,e){this.offlineStorage.removeView(e.offlineId)}.bind(this),{offlineId:e[1]})}this.offlineStorage.sent(),this._offlineParams=null}};t.exports=o}
1,22693:function(t,e,i){var n=i(73183),s=i(11095),r=i(93551),a={getHost:function(){var t=this.options.host;return this.viewTransform&&this.viewTransform.response&&this.viewTransform.response.host&&(t=this.viewTransform.response.host),n.addProtocol(n.stripProtocol(t),this.options["app.https"])},getUserType:function(){return this.options["user.type"]},isParseManifest:function(){return this.options["parse.manifest"]},isParseLocationHeaderGetRequest:function(){return this.options["parse.locationHeader.get"]},isCDNParserHeaderGetRequest:function(){return this.options["parse.cdnParser.get"]},isParseCdnNode:function(){return this.options["parse.cdnNode"]},isCdnSwitch:function(){return this.options["parse.cdnSwitchHeader"]},getParseCdnNodeList:function(){return this.options["parse.cdnNode.list"]},getParseCdnNodeNameHeader:function(){return this.options["parse.cdnNameHeader"]},getParseNodeHeader:function(){return this.options["parse.cdnNodeHeader"]},getObfuscateIp:function(){return this.options["user.obfuscateIp"]},getPrivacyProtocol:function(){var t=this.options["user.privacyProtocol"];return"string"===typeof t&&(t=t.toLowerCase()),"optin"===t||"optout"===t?t:null},getCustomDimensions:function(){var t=this.options["content.customDimensions"];return"object"===typeof t?t:null},getExtraparam1:function(){return this.options["content.customDimension.1"]},getExtraparam2:function(){return this.options["content.customDimension.2"]},getExtraparam3:function(){return this.options["content.customDimension.3"]},getExtraparam4:function(){return this.options["content.customDimension.4"]},getExtraparam5:function(){return this.options["content.customDimension.5"]},getExtraparam6:function(){return this.options["content.customDimension.6"]},getExtraparam7:function(){return this.options["content.customDimension.7"]},getExtraparam8:function(){return this.options["content.customDimension.8"]},getExtraparam9:function(){return this.options["content.customDimension.9"]},getExtraparam10:function(){return this.options["content.customDimension.10"]},getExtraparam11:function(){return this.options["content.customDimension.11"]},getExtraparam12:function(){return this.options["content.customDimension.12"]},getExtraparam13:function(){return this.options["content.customDimension.13"]},getExtraparam14:function(){return this.options["content.customDimension.14"]},getExtraparam15:function(){return this.options["content.customDimension.15"]},getExtraparam16:function(){return this.options["content.customDimension.16"]},getExtraparam17:function(){return this.options["content.customDimension.17"]},getExtraparam18:function(){return this.options["content.customDimension.18"]},getExtraparam19:function(){return this.options["content.customDimension.19"]},getExtraparam20:function(){return this.options["content.customDimension.20"]},getAdExtraparam1:function(){return this.options["ad.customDimension.1"]},getAdExtraparam2:function(){return this.options["ad.customDimension.2"]},getAdExtraparam3:function(){return this.options["ad.customDimension.3"]},getAdExtraparam4:function(){return this.options["ad.customDimension.4"]},getAdExtraparam5:function(){return this.options["ad.customDimension.5"]},getAdExtraparam6:function(){return this.options["ad.customDimension.6"]},getAdExtraparam7:function(){return this.options["ad.customDimension.7"]},getAdExtraparam8:function(){return this.options["ad.customDimension.8"]},getAdExtraparam9:function(){return this.options["ad.customDimension.9"]},getAdExtraparam10:function(){return this.options["ad.customDimension.10"]},getPluginInfo:function(){return{lib:s,adapter:this.getAdapterVersion(),adAdapter:this.getAdAdapterVersion()}},getIp:function(){return this.options["network.ip"]},getIsp:function(){return this.options["network.isp"]},getConnectionType:function(){return this.options["network.connectionType"]},getDeviceInfo:function(){var t={};return this.getDeviceCode()&&(t.deviceCode=this.getDeviceCode()),this.getModel()&&(t.model=this.getModel()),this.getBrand()&&(t.brand=this.getBrand()),this.getDeviceType()&&(t.deviceType=this.getDeviceType()),this.getDeviceName()&&(t.deviceName=this.getDeviceName()),this.getOsName()&&(t.osName=this.getOsName()),this.getOsVersion()&&(t.osVersion=this.getOsVersion()),this.getBrowserName()&&(t.browserName=this.getBrowserName()),this.getBrowserVersion()&&(t.browserVersion=this.getBrowserVersion()),this.getBrowserType()&&(t.browserType=this.getBrowserType()),this.getBrowserEngine()&&(t.browserEngine=this.getBrowserEngine()),t!=={}?t:null},getEDID:function(){var t=this.options["device.EDID"];return t?t.toString():null},getDeviceCode:function(){return this.options["device.code"]},getModel:function(){return this.options["device.model"]},getBrand:function(){return this.options["device.brand"]},getDeviceType:function(){return this.options["device.type"]},getDeviceName:function(){return this.options["device.name"]},getOsName:function(){return this.options["device.osName"]},getOsVersion:function(){return this.options["device.osVersion"]},getBrowserName:function(){return this.options["device.browserName"]},getBrowserVersion:function(){return this.options["device.browserVersion"]},getBrowserType:function(){return this.options["device.browserType"]},getBrowserEngine:function(){return this.options["device.browserEngine"]},getAccountCode:function(){return this.options.accountCode},getUsername:function(){return this.options["user.name"]},getAnonymousUser:function(){return this.options["user.anonymousId"]},getEmail:function(){return this.options["user.email"]},getProfileId:function(){return this.options["user.profileId"]},getReferer:function(){var t=this.options.referer||"";return!t&&"undefined"!==typeof window&&window.location&&(t=window.location.href),t},getReferral:function(){var t=this.options.referral||"";return t||"undefined"===typeof document||(t=document.referrer),t},getLanguage:function(){var t=null;return"undefined"!==typeof navigator&&(t=navigator.language),t},getScreenResolution:function(){var t=null;try{if(window&&window.screen){var e=window.devicePixelRatio||1;t=window.screen.width*e+"x"+window.screen.height*e}}catch(i){}return t},getNodeHost:function(){return this.options["content.cdnNode"]||this.resourceTransform.getNodeHost()},getNodeType:function(){return this.options["content.cdnType"]||this.resourceTransform.getNodeType()},getNodeTypeString:function(){return this.resourceTransform.getNodeTypeString()},getRequestNumber:function(){return Math.random()},getOfflineView:function(){var t=null;return this.offlineStorage&&(t=this.offlineStorage.getView()),t},getDeviceUUID:function(){var t=null;return this.options["device.isAnonymous"]||(t=this.options["device.id"]||this.uuidGenerator.getKey()),t},getAppName:function(){return this.options["app.name"]},getAppReleaseVersion:function(){return this.options["app.releaseVersion"]},getIsBlocked:function(){return this.options["ad.blockerDetected"]},isMethodPostEnabled:function(){return this.options.method&&this.options.method.toLowerCase()===r.POST},getPlayheadMonitorEnabled:function(){return this.options["playhead.monitor"]},getReadyStateMonitorEnabled:function(){return this.options["readyState.monitor"]}};t.exports=a}
1,26844:function(t,e,i){var n=i(73183),s={getContext:function(){return"Default"},getScrollDepth:function(){var t=this.storage.getSession("pageScrollDepth");return this.storage.removeSession("pageScrollDepth"),t},getSession:function(){var t=this.storage.getStorages("session");if("undefined"===t&&(t=void 0),!t){var e=this.getStoredData();if(e)try{t=JSON.parse(e).q.c}catch(i){}}return t},getStorageHost:function(){var t=null,e=this.getStoredData();if(e)try{t=JSON.parse(e).q.h}catch(i){}return t?n.addProtocol(t,this.options["app.https"]):t},getStoredData:function(){return this.storage.getStorages("data")},getDataTime:function(){return this.storage.getStorages("dataTime")},getLastActive:function(){return this.storage.getStorages("lastactive")},setStoredData:function(t){this.storage.setStorages("data",t)},setSession:function(t){this.storage.setStorages("session",t)},setDataTime:function(t){this.storage.setStorages("dataTime",t)},setLastActive:function(t){this.storage.setStorages("lastactive",t)},getPageName:function(){if("undefined"!==typeof document&&document.title)return document.title},getPageLoadTime:function(){return this.browserLoadTimes.getPageLoadTime()},getIsSessionExpired:function(){var t=(new Date).getTime();return!this.getSession()||this.infinity.getFirstActive()<t-this.sessionExpire},getIsDataExpired:function(){var t=(new Date).getTime();return!this.storage.isEnabled()||!this.getStoredData()||this.infinity.getFirstActive()<t-this.sessionExpire}};t.exports=s},64849:function(t,e,i){var n=i(96229),s=i(56654),r=i(5013),a=i(73183),o=i(73194),u={_initInfinity:function(){this.infinity.on(o.Event.NAV,this._navListener.bind(this)),this.infinity.on(o.Event.SESSION_START,this._sessionStartListener.bind(this)),this.infinity.on(o.Event.SESSION_STOP,this._sessionStopListener.bind(this)),this.infinity.on(o.Event.EVENT,this._eventListener.bind(this)),this.infinity.on(o.Event.EVENT_END,this._eventEndListener.bind(this))},_sendInfinity:function(t,e,i){var n={params:i=this.requestBuilder.buildParams(i,e),plugin:this,adapter:this.getAdapter(),adsAdapter:this.getAdsAdapter()};if(this.emit(t,n),this.infinity._comm&&null!==i&&this.options.enabled){this.lastServeiceSent=e;var s=new r(null,e,i);this.isMethodPostEnabled()&&s.setPostRequest(!0),this.infinity._comm.sendRequest(s)}},_navListener:function(t){var e=t.data.params||{};this._sendInfinity(n.WillSendEvent.WILL_SEND_NAV,n.Service.NAV,e),this._beat.isRunning||this._beat.start(),s.notice(n.Service.NAV+" "+e.route)},_sessionStartListener:function(t){var e=t.data.params||{};this._sendInfinity(n.WillSendEvent.WILL_SEND_SESSION_START,n.Service.SESSION_START,e),this._beat.isRunning||this._beat.start(),s.notice(n.Service.SESSION_START+" "+e.route)},_sessionStopListener:function(t){var e=t.data.params||{};this._sendInfinity(n.WillSendEvent.WILL_SEND_SESSION_STOP,n.Service.SESSION_STOP,e),this._beat.isRunning&&this._beat.stop(),s.notice(n.Service.SESSION_STOP+" "+e.route)},_eventListener:function(t){var e=t.data.params||{};this._sendInfinity(n.WillSendEvent.WILL_SEND_EVENT,n.Service.EVENT,e),s.notice(n.Service.EVENT+" "+e.name)},_eventEndListener:function(t){var e=t.data.params||{};this._sendInfinity(n.WillSendEvent.WILL_SEND_EVENT_END,n.Service.EVENT_END,e),s.notice(n.Service.EVENT_END+" "+e.name)},_sendBeat:function(t){var e={diffTime:t};this._sendInfinity(n.WillSendEvent.WILL_SEND_BEAT,n.Service.BEAT,e),this.infinity&&this.infinity._setLastActive(),s.verbose(n.Service.BEAT)},getSessionMetrics:function(){return a.getMetricsFrom(this.options["session.metrics"])}};t.exports=u},59332:function(t,e,i){var n=i(56654),s=i(96229),r={_startPings:function(){this._ping.isRunning||this._ping.start()},_stopPings:function(){this._ping.stop()},_sendPing:function(t){var e={diffTime:t,entities:this.requestBuilder.getChangedEntities()};this._adapter&&(e=this._adapter.flags.isPaused?this.requestBuilder.fetchParams(e,["pauseDuration"]):this.requestBuilder.fetchParams(e,["bitrate","throughput","fps"]),this._adapter.flags.isJoined&&(e=this.requestBuilder.fetchParams(e,["playhead"])),this._adapter.flags.isBuffering&&(e=this.requestBuilder.fetchParams(e,["bufferDuration"])),this._adapter.flags.isSeeking&&(e=this.requestBuilder.fetchParams(e,["seekDuration"]))),this._adsAdapter&&!this.options["ad.ignore"]&&(this._adsAdapter.flags.isStarted&&(e=this.requestBuilder.fetchParams(e,["adPlayhead","adViewedDuration","adViewability"]),e=this._adsAdapter.flags.isPaused?this.requestBuilder.fetchParams(e,["adPauseDuration"]):this.requestBuilder.fetchParams(e,["adBitrate"])),this._adsAdapter.flags.isBuffering&&(e=this.requestBuilder.fetchParams(e,["adBufferDuration"]))),this._send(s.WillSendEvent.WILL_SEND_PING,s.Service.PING,e),this.startDelayed&&this._retryStart(),n.verbose(s.Service.PING)}};t.exports=r}
1,89699:function(t,e,i){var n=i(48600),s=i(37664),r=i(49777),a=i(96229),o=i(73183),u=i(5013),d=i(6596),c=i(84628),h=i(46e3),l=i(67897),p=i(98548),f=i(8041),g=i(89062),m=i(59055),_=i(6856),v=i(73194),S=i(66723),E=i(60449),y=i(37981),T=i(86852),b=i(97416),A=i(60191),w=i(92836),D=n.extend({constructor:function(t,e,i){"string"!==typeof e||i||(i=e,e=null),this.storage=new g,this.uuidGenerator=new w(this),this.infinity=new v(this),this.productAnalytics=new S(this),this.isInitiated=!1,this.isAdsManifestSent=!1,this.playedPostrolls=0,this.isBreakStarted=!1,this.initChrono=new r,this.options=new f(t),this.storage=new g(null,this.options.disableCookies,this.options.forceCookies,this.options.disableStorage),this.options.disableStorage||(this.offlineStorage=new m),this._adapter=null,this._adsAdapter=null,this._ping=new s(this._sendPing.bind(this),5e3),this._beat=new s(this._sendBeat.bind(this),3e4),this._refreshData=new s(this._checkOldData.bind(this),36e5),this._refreshData.start(),this.sessionExpire=1e3*Number(this.storage.getLocal("sessionExpire"))||18e4,this.requestBuilder=new _(this),this.resourceTransform=new l(this),this.lastEventTime=null,this.restartViewTransform(i),this._initInfinity(),this.hybridNetwork=new E,this.browserLoadTimes=new y(this),this.deviceDetector=new b,this.backgroundDetector=new T(this),this.resizeScrollDetector=new A(this),this.options["background.enabled"]&&this.backgroundDetector.startDetection(),e&&this.setAdapter(e)},_checkOldData:function(){this._adapter&&this._adapter.flags.isStarted||this.infinity.infinityStarted||this.restartViewTransform()},restartViewTransform:function(t){this.viewTransform=new h(this),this.viewTransform.on(h.Event.DONE,this._receiveData.bind(this)),t?this.viewTransform.setData(t):this.getIsDataExpired()||!this.getStorageHost()||this.storage.getLocal("accCode")!==this.options.accountCode&&this.storage.getSession("accCode")!==this.options.accountCode?(this.storage.removeStorages("data"),this.storage.removeStorages("session"),this.storage.removeLocal("infinityStarted"),this.viewTransform.init()):this.viewTransform.setData(this.getStoredData())},_receiveData:function(t){this._ping.interval=1e3*t.target.response.pingTime,this._beat.interval=1e3*t.target.response.beatTime,this.sessionExpire=1e3*t.target.response.sessionExpire,this.storage.setStorages("data",t.target.response.msg),this.storage.setStorages("dataTime",(new Date).getTime()),this.storage.setStorages("accCode",this.options.accountCode),this.getIsSessionExpired()?(this.viewTransform.setSession(this.viewTransform.response.code),this.storage.setStorages("session",this.viewTransform.response.code),this.storage.setStorages("host",this.viewTransform.response.host)):(this.viewTransform.setSession(this.getSession()),this.viewTransform.setHost(this.getStorageHost()))},_reset:function(){this._stopPings(),this.resourceTransform=new l(this),this._adapter&&this._adapter.flags.reset(),this.isInitiated=!1,this.isStarted=!1,this.startDelayed=!1,this.isAdsManifestSent=!1,this.initChrono.reset(),this._totalPrerollsTime=0,this.requestBuilder.lastSent.breakNumber=0,this.requestBuilder.lastSent.adNumber=0,this._savedAdManifest=null,this._savedAdError=null,this.playedPostrolls=0,this.isBreakStarted=!1},_send:function(t,e,i,n,s,r,o){var d=(new Date).getTime();this.options.preventZombieViews&&this.lastEventTime&&d>this.lastEventTime+6e5&&this.viewTransform.nextView(),this.lastEventTime=e===a.Service.STOP?null:d,i=this.requestBuilder.buildParams(i,e),this.getIsLive()&&(i.mediaDuration=this.options["content.duration"],i.playhead=void 0);var c={params:i,plugin:this,adapter:this.getAdapter(),adsAdapter:this.getAdsAdapter()};if(this.emit(t,c),this._comm&&(null!==i||"undefined"!==typeof s)&&this.options.enabled){this.lastServeiceSent=e;var h={};"undefined"!==typeof s&&"GET"!==s&&(h.method=s);var l=new u(null,e,i,h);n&&l.setBody(n),this.isMethodPostEnabled()&&l.setPostRequest(!0),this._comm.sendRequest(l,r,o)}},_initComm:function(){var t=this._getResourceForTransform();this.resourceTransform.init(t),this._comm=new d,this._comm.addTransform(new c),this._comm.addTransform(this.viewTransform),this.options&&this.options.offline?this._comm.addTransform(new p(this)):this._comm.addTransform(this.resourceTransform)},_getResourceForTransform:function(){var t=this.getResource();
1return this._adapter&&this._adapter.getURLToParse()&&(t=this._adapter.getURLToParse()),t},getComm:function(){return this._comm},setOptions:function(t){t&&(this.options.setOptions(t),"boolean"===typeof t["background.enabled"]&&(t["background.enabled"]?this.backgroundDetector.startDetection():this.backgroundDetector.stopDetection()))},getFastDataConfig:function(){return this.viewTransform.response.msg},disable:function(){this.setOptions({enabled:!1})},enable:function(){this.setOptions({enabled:!0})}},{Event:a.WillSendEvent});o.assign(D.prototype,i(2516)),o.assign(D.prototype,i(22693)),o.assign(D.prototype,i(75006)),o.assign(D.prototype,i(99020)),o.assign(D.prototype,i(11754)),o.assign(D.prototype,i(59332)),o.assign(D.prototype,i(47064)),o.assign(D.prototype,i(64849)),o.assign(D.prototype,i(26844)),t.exports=D},6856:function(t,e,i){var n=i(7569),s=i(56654),r=["accountCode","username","anonymousUser","profileId","rendition","deviceInfo","player","title","title2","live","segmentDuration","mediaDuration","mediaResource","parsedResource","transactionCode","properties","cdn","playerVersion","param1","param2","param3","param4","param5","param6","param7","param8","param9","param10","param11","param12","param13","param14","param15","param16","param17","param18","param19","param20","dimensions","playerStartupTime","obfuscateIp","privacyProtocol","p2pEnabled","pluginVersion","pluginInfo","isp","connectionType","ip","referer","userType","streamingProtocol","transportFormat","householdId","adsBlocked","adsExpected","deviceUUID","libVersion","nodeHost","nodeType","appName","appReleaseVersion","package","saga","tvshow","season","titleEpisode","channel","imdbID","gracenoteID","contentType","genre","contentLanguage","subtitles","cost","price","playbackType","email","drm","videoCodec","audioCodec","codecSettings","codecProfile","containerFormat","contentId","contractedResolution","linkedViewId","edid","cdnBalancerResponseUUID","triggeredEvents"],a=["player","playhead","adTitle","position","adDuration","adCampaign","adCreativeId","adProvider","adResource","adPlayerVersion","adProperties","adAdapterVersion","adInsertionType","extraparam1","extraparam2","extraparam3","extraparam4","extraparam5","extraparam6","extraparam7","extraparam8","extraparam9","extraparam10","fullscreen","audio","skippable","adNumber","adNumberInBreak","breakNumber"],o=n.extend({constructor:function(t){this._plugin=t,this._adNumber=0,this._adNumberInBreak=0,this.lastSent={}},fetchParams:function(t,e,i){t=t||{},e=e||[];for(var n=0;n<e.length;n++){var r=e[n];if(!t[r]){var a=o.getters[r];if(this._plugin[a]){var u=this._plugin[a]();null===u||i&&this.lastSent[r]===u||(t[r]=u,this.lastSent[r]=u)}else s.warn("Trying to call undefined getter "+r+":"+a)}}return t},getGetters:function(){return o.getters},buildBody:function(t){return this.fetchParams(null,o.bodyParams[t],!1)},buildParams:function(t,e){return t=t||{},this.fetchParams(t,o.params[e],!1),this.fetchParams(t,o.differentParams[e],!0),t},getNewAdNumber:function(){var t=this.lastSent.adNumber;return t&&this.lastSent.position===this._plugin.getAdPosition()?t+=1:t=1,this.lastSent.adNumber=t,t},getNewAdNumberInBreak:function(){return this._adNumberInBreak++,this.lastSent.adNumberInBreak=this._adNumberInBreak,this._adNumberInBreak},getNewBreakNumber:function(){var t=1;return this._adNumberInBreak=0,this.lastSent.breakNumber&&(t=this.lastSent.breakNumber+1),this.lastSent.breakNumber=t,t},getChangedEntities:function(){return this.fetchParams({},o.differentParams.entities,!0)}},{params:{"/data":["system","pluginVersion","requestNumber","username"],"/init":r,"/start":r,"/joinTime":["joinDuration","playhead","bitrate","triggeredEvents"],"/pause":["playhead","triggeredEvents"],"/resume":["pauseDuration","playhead","triggeredEvents"],"/seek":["seekDuration","playhead","triggeredEvents"],"/bufferUnderrun":["bufferDuration","playhead","triggeredEvents"],"/error":["player","playhead","triggeredEvents"].concat(r),"/stop":["bitrate","totalBytes","playhead","pauseDuration","metrics","cdnDownloadedTraffic","multiCdnInfo","p2pDownloadedTraffic","uploadTraffic","triggeredEvents"],"/infinity/video/event":["playhead"],"/infinity/video/event/stop":["playhead"],"/adInit":a,"/adStart":a,"/adJoin":["playhead","position","adJoinDuration","adPlayhead","adNumber","adNumberInBreak","breakNumber"],"/adPause":["playhead","position","adPlayhead","adNumber","adNumberInBreak","breakNumber"],"/adResume":["playhead","position","adPlayhead","adPauseDuration","adNumber","adNumberInBreak","breakNumber"],"/adBufferUnderrun":["playhead","position","adPlayhead","adBufferDuration","adNumber","adNumberInBreak","breakNumber"],"/adStop":["playhead","position","adPlayhead","adBitrate","adTotalDuration","pauseDuration","adViewedDuration","adViewability","adNumber","adNumberInBreak","breakNumber"],"/adClick":["playhead","position","adPlayhead","adNumber","adNumberInBreak","breakNumber"],"/adError":["playhead"].concat(a),"/adManifest":["givenBreaks","expectedBreaks","expectedPattern","breaksTime"],"/adBreakStart":["position","givenAds","expectedAds","breakNumber","adInsertionType"],"/adBreakStop":["position","breakNumber"],"/adQuartile":["position","adViewedDuration","adViewability","adNumber","adNumberInBreak","breakNumber"],"/ping":["droppedFrames","playrate","cdnDownloadedTraffic","multiCdnInfo","p2pDownloadedTraffic","uploadTraffic","latency","packetLoss","packetSent","metrics","totalBytes","segmentDuration"],"/infinity/session/start":["accountCode","username","userType","anonymousUser","profileId","route","page","referer","referral","screenResolution","language","deviceInfo","adsBlocked","deviceUUID","libVersion","appName","appReleaseVersion","isp","connectionType","ip","obfuscateIp","privacyProtocol","dimensions","param1","param2","param3","param4","param5","param6","param7","param8","param9","param10","param11","param12","param13","param14","param15","param16","param17","param18","param19","param20","edid"],"/infinity/session/stop":["sessionMetrics"],"/infinity/session/nav":["route","page","scrollDepth"],"/infinity/session/beat":["sessionMetrics"],"/infinity/session/event":["accountCode"],"/infinity/session/event/stop":["accountCode"],"/offlineEvents":{}},bodyParams:{"/offlineEvents":["viewJson"]}
1,differentParams:{entities:["rendition","title","title2","param1","param2","param3","param4","param5","param6","param7","param8","param9","param10","param11","param12","param13","param14","param15","param16","param17","param18","param19","param20","cdn","nodeHost","nodeType","nodeTypeString","subtitles","contentLanguage","contentId"]},getters:{requestNumber:"getRequestNumber",playhead:"getPlayhead",playrate:"getPlayrate",fps:"getFramesPerSecond",segmentDuration:"getSegmentDuration",droppedFrames:"getDroppedFrames",mediaDuration:"getDuration",bitrate:"getBitrate",totalBytes:"getTotalBytes",throughput:"getThroughput",rendition:"getRendition",title:"getTitle",title2:"getTitle2",live:"getIsLive",mediaResource:"getResource",parsedResource:"getParsedResource",transactionCode:"getTransactionCode",properties:"getMetadata",playerVersion:"getPlayerVersion",player:"getPlayerName",cdn:"getCdn",pluginVersion:"getPluginVersion",libVersion:"getLibVersion",userType:"getUserType",streamingProtocol:"getStreamingProtocol",transportFormat:"getTransportFormat",obfuscateIp:"getObfuscateIp",privacyProtocol:"getPrivacyProtocol",householdId:"getHouseholdId",latency:"getLatency",packetLoss:"getPacketLoss",packetSent:"getPacketSent",metrics:"getVideoMetrics",dimensions:"getCustomDimensions",param1:"getExtraparam1",param2:"getExtraparam2",param3:"getExtraparam3",param4:"getExtraparam4",param5:"getExtraparam5",param6:"getExtraparam6",param7:"getExtraparam7",param8:"getExtraparam8",param9:"getExtraparam9",param10:"getExtraparam10",param11:"getExtraparam11",param12:"getExtraparam12",param13:"getExtraparam13",param14:"getExtraparam14",param15:"getExtraparam15",param16:"getExtraparam16",param17:"getExtraparam17",param18:"getExtraparam18",param19:"getExtraparam19",param20:"getExtraparam20",extraparam1:"getAdExtraparam1",extraparam2:"getAdExtraparam2",extraparam3:"getAdExtraparam3",extraparam4:"getAdExtraparam4",extraparam5:"getAdExtraparam5",extraparam6:"getAdExtraparam6",extraparam7:"getAdExtraparam7",extraparam8:"getAdExtraparam8",extraparam9:"getAdExtraparam9",extraparam10:"getAdExtraparam10",position:"getAdPosition",adNumber:"getAdNumber",adNumberInBreak:"getAdNumberInBreak",breakNumber:"getBreakNumber",adPlayhead:"getAdPlayhead",adDuration:"getAdDuration",adCampaign:"getAdCampaign",adCreativeId:"getAdCreativeId",adBitrate:"getAdBitrate",adTitle:"getAdTitle",adResource:"getAdResource",adPlayerVersion:"getAdPlayerVersion",adProperties:"getAdMetadata",adAdapterVersion:"getAdAdapterVersion",givenBreaks:"getGivenBreaks",expectedBreaks:"getExpectedBreaks",expectedPattern:"getExpectedPattern",breaksTime:"getBreaksTime",givenAds:"getGivenAds",expectedAds:"getExpectedAds",adsExpected:"getAdsExpected",adViewedDuration:"getAdViewedDuration",adViewability:"getAdViewability",fullscreen:"getIsFullscreen",audio:"getAudioEnabled",skippable:"getIsSkippable",adProvider:"getAdProvider",adInsertionType:"getAdInsertionType",pluginInfo:"getPluginInfo",isp:"getIsp",connectionType:"getConnectionType",ip:"getIp",deviceInfo:"getDeviceInfo",edid:"getEDID",system:"getAccountCode",accountCode:"getAccountCode",username:"getUsername",anonymousUser:"getAnonymousUser",profileId:"getProfileId",joinDuration:"getJoinDuration",bufferDuration:"getBufferDuration",seekDuration:"getSeekDuration",pauseDuration:"getPauseDuration",adJoinDuration:"getAdJoinDuration",adBufferDuration:"getAdBufferDuration",adPauseDuration:"getAdPauseDuration",adTotalDuration:"getAdTotalDuration",referer:"getReferer",referral:"getReferral",language:"getLanguage",screenResolution:"getScreenResolution",nodeHost:"getNodeHost",nodeType:"getNodeType",nodeTypeString:"getNodeTypeString",route:"getReferer",page:"getPageName",playerStartupTime:"getPlayerStartupTime",pageLoadTime:"getPageLoadTime",cdnDownloadedTraffic:"getCdnTraffic",multiCdnInfo:"getMultiCdnInfo",p2pDownloadedTraffic:"getP2PTraffic",p2pEnabled:"getIsP2PEnabled",uploadTraffic:"getUploadTraffic",cdnBalancerResponseUUID:"getBalancerResponseId",viewJson:"getOfflineView",deviceUUID:"getDeviceUUID",sessionMetrics:"getSessionMetrics",scrollDepth:"getScrollDepth",adsBlocked:"getIsBlocked",linkedViewId:"getLinkedViewId",appName:"getAppName",appReleaseVersion:"getAppReleaseVersion",package:"getPackage",saga:"getSaga",tvshow:"getTvShow",
1season:"getSeason",titleEpisode:"getEpisodeTitle",channel:"getChannel",drm:"getDRM",videoCodec:"getVideoCodec",audioCodec:"getAudioCodec",codecSettings:"getCodecSettings",codecProfile:"getCodecProfile",containerFormat:"getContainerFormat",contentId:"getID",imdbID:"getImdbId",gracenoteID:"getGracenoteID",contentType:"getType",genre:"getGenre",contentLanguage:"getVideoLanguage",subtitles:"getSubtitles",contractedResolution:"getContractedResolution",cost:"getCost",price:"getPrice",playbackType:"getPlaybackType",email:"getEmail"}});t.exports=o},89062:function(t,e,i){var n=i(7569),s=i(56654),r=n.extend({constructor:function(t,e,i,n){this.prefix=t||"youbora",this.disableCookies=e,this.forceCookies=i,this.disabled=n},isEnabled:function(){if(this.disabled)return!1;var t=!0;if(!this.forceCookies)try{localStorage.setItem(this.prefix+".test","true"),localStorage.removeItem(this.prefix+".test")}catch(e){t=!1}return t},setLocal:function(t,e){if(this.disabled)return null;var i=null;try{i=!this.forceCookies&&("undefined"!==typeof localStorage&&localStorage||this.disableCookies)?localStorage.setItem(this.prefix+"."+t,e):this._setCookie(this.prefix+".local."+t,e)}catch(n){s.error("Youbora Infinity needs localStorage or cookies, not supported by your browser.")}return i},getLocal:function(t){return this.disabled?null:this._localGetRemove("getItem","_getCookie",t)},removeLocal:function(t){return this.disabled?null:this._localGetRemove("removeItem","_removeCookie",t)},_localGetRemove:function(t,e,i){var n=null;try{n=!this.forceCookies&&("undefined"!==typeof localStorage&&localStorage||this.disableCookies)?localStorage[t](this.prefix+"."+i):this[e](this.prefix+".local."+i)}catch(r){s.error("Youbora Infinity needs localStorage or cookies, not supported by your browser.")}return n},setSession:function(t,e){if(this.disabled)return null;var i=null;try{i=!this.forceCookies&&("undefined"!==typeof sessionStorage&&sessionStorage||this.disableCookies)?sessionStorage.setItem(this.prefix+"."+t,e):this._setCookie(this.prefix+".session."+t,e)}catch(n){s.error("Youbora Infinity needs sessionStorage or cookies, not supported by your browser.")}return i},getSession:function(t){return this.disabled?null:this._sessionGetRemove("getItem","_getCookie",t)},removeSession:function(t){return this.disabled?null:this._sessionGetRemove("removeItem","_removeCookie",t)},_sessionGetRemove:function(t,e,i){var n=null;try{n=!this.forceCookies&&("undefined"!==typeof sessionStorage&&sessionStorage||this.disableCookies)?sessionStorage[t](this.prefix+"."+i):this[e](this.prefix+".session."+i)}catch(r){s.error("Youbora Infinity needs sessionStorage or cookies, not supported by your browser.")}return n},getStorages:function(t){return this.getSession(t)||this.getLocal(t)},setStorages:function(t,e){this.setSession(t,e),this.setLocal(t,e)},removeStorages:function(t){this.removeSession(t),this.removeLocal(t)},_setCookie:function(t,e){if("undefined"!==typeof document){var i=";";"undefined"!==typeof location&&(i+="domain="+location.host.split(".").reverse().splice(0,2).reverse().join(".")+";path=/;"),document.cookie=t+"="+e+i}},_getCookie:function(t){if("undefined"!==typeof document)for(var e=t+"=",i=decodeURIComponent(document.cookie).split(";"),n=0;n<i.length;n++){for(var s=i[n];" "===s.charAt(0);)s=s.substring(1);if(0===s.indexOf(e))return s.substring(e.length,s.length)}return null},_removeCookie:function(t){this._setCookie(t,"")}});t.exports=r},13014:function(t){t.exports=function(){Function.prototype.bind=Function.prototype.bind||function(t){var e=Array.prototype.slice,i=this,n=e.call(arguments,1);function s(){var s=i.prototype&&this instanceof i;return i.apply(!s&&t||this,n.concat(e.call(arguments)))}return s.prototype=i.prototype,s},Array.prototype.forEach=Array.prototype.forEach||function(t,e){if("function"!==typeof t)throw new TypeError(t+" is not a function!");for(var i=this.length,n=0;n<i;n++)t.call(e,this[n],n,this)},Math.trunc=Math.trunc||function(t){return isNaN(t)?NaN:t>0?Math.floor(t):Math.ceil(t)}}},66723:function(t,e,i){var n=i(7569),s=i(56654),r=i(16881),a=i(67901),o=n.extend({constructor:function(t){if(this._plugin="undefined"===typeof t?null:t,this._infinity=this._plugin&&this._plugin.infinity?this._plugin.infinity:null,this._initialized=!1,this._productAnalyticsSettingsDefault={autoTrackNavigation:!0,autoTrackAttribution:!0,highlightContentAfter:1e3,enableStateTracking:!1,activeStateTimeout:3e4,activeStateDimension:9,pageRules:[]},this._productAnalyticsSettings=Object.assign({},this._productAnalyticsSettingsDefault),this._page=null,this._userState=null,this._config=null,this._searchQuery=null,this._url=null,"undefined"!==typeof window&&"undefined"!==typeof window.location)try{this._url=new URL(window.location)}catch(e){}this._contentHighlighted=null,this._contentHighlightTimeout=null,this._pendingVideoEvents=[],this._plugin||s.warn("Plugin reference unset."),this._infinity||s.warn("Infinity reference unset."),this._url||s.warn("URL reference unset.")},initialize:function(t,e){var i;if(this._productAnalyticsSettings=Object.assign({},this._productAnalyticsSettingsDefault),"object"===typeof t&&Object.assign(this._productAnalyticsSettings,t),"boolean"!==typeof this._productAnalyticsSettings.autoTrackNavigation&&(this._productAnalyticsSettings.autoTrackNavigation=this._productAnalyticsSettingsDefault.autoTrackNavigation),"boolean"!==typeof this._productAnalyticsSettings.autoTrackAttribution&&(this._productAnalyticsSettings.autoTrackAttribution=this._productAnalyticsSettingsDefault.autoTrackAttribution),"number"!==typeof this._productAnalyticsSettings.highlightContentAfter?this._productAnalyticsSettings.highlightContentAfter=this._productAnalyticsSettingsDefault.highlightContentAfter:this._productAnalyticsSettings.highlightContentAfter<1e3&&(s.warn("Invalid higlightContentAfter value. Using default value instead."),this._productAnalyticsSettings.highlightContentAfter=this._productAnalyticsSettingsDefault.highlightContentAfter),"boolean"!==typeof this._productAnalyticsSettings.enableStateTracking&&(this._productAnalyticsSettings.enableStateTracking=this._productAnalyticsSettingsDefault.enableStateTracking),"number"!==typeof this._productAnalyticsSettings.activeStateTimeout&&(this._productAnalyticsSettings.activeStateTimeout=this._productAnalyticsSettingsDefault.activeStateTimeout),("number"!==typeof this._productAnalyticsSettings.activeStateDimension||this._productAnalyticsSettings.activeStateDimension<1||this._productAnalyticsSettings.activeStateDimension>9)&&(this._productAnalyticsSettings.activeStateDimension=this._productAnalyticsSettingsDefault.activeStateDimension),"undefined"!==typeof this._productAnalyticsSettings.pageRules&&Array.isArray(this._productAnalyticsSettings.pageRules)||(this._productAnalyticsSettings.pageRules=this._productAnalyticsSettingsDefault.pageRules),this._config=new r(this._fireEvent.bind(this)),this._identify(),this._initialized=!0,this._infinity){var n={};e&&Object.assign(n,e),Object.assign(n,{route:null===this._url?"":this._url.href,page:this._page}),this._infinity.begin(n)}else s.warn("Cannot open a new session since infinity is unavailable");this._productAnalyticsSettings.autoTrackNavigation&&("undefined"===typeof window?s.warn("Cannot track user state since DOM is not available."):(window.removeEventListener("pageshow",this._trackNavigationCached),window.addEventListener("pageshow",this._trackNavigationCached.bind(this))),this._trackNavigation()),this._productAnalyticsSettings.autoTrackAttribution&&(i=null===this._url?"":this._url.search,this._trackAttribution(new URLSearchParams(i)))},_identify:function(){var t,e,i;for(null===this._config?this._page=null:this._page=this._config.identify(this._url),i=0;i<this._productAnalyticsSettings.pageRules.length&&null===this._page&&null!==this._url;i++)if("undefined"!==typeof(e=this._productAnalyticsSettings.pageRules[i]).rule&&"undefined"!==typeof e.page){try{t=new RegExp(e.rule)}catch(n){t=null,s.warn("Error processing rule",e.rule,e.page)}null!==t&&null!==this._url.pathname.match(t)&&(this._page=this._url.pathname.replace(t,e.page))}null===this._page&&null!==this._url&&(this._page=this._url.pathname)},_adapterTrackStart:function(){this._initialized&&this.trackPlayerInteraction("start",{},{},!0)},adapterAfterSet:function(){var t;this._initialized&&(this._productAnalyticsSettings.enableStateTracking?(null!==this._userState&&s.warn("userState is already initialized."),this._plugin?this._plugin.setOptions?this._userState=new a(this._productAnalyticsSettings.activeStateDimension,this._productAnalyticsSettings.activeStateTimeout,this._fireAdapterEvent.bind(this),this._plugin.setOptions.bind(this._plugin)):s.warn("Cannot track user state since plugin options are unavailable."):s.warn("Cannot track user state since plugin is unavailable.")):this._userState=null,(t=this._adapterGet())?t.on("start",this._adapterTrackStart.bind(this)):s.warn("Cannot bind adapter start since it is unavailable."))},adapterBeforeRemove:function(){var t;(t=this._adapterGet())?t.off("start",this._adapterTrackStart):this._initialized&&s.warn("Cannot unbind adapter start since it is unavailable."),this._userState&&this._userState.dispose(),this._userState=null,this._pendingVideoEvents=[]},_adapterGet:function(){var t;return"undefined"===typeof(t=this._plugin?"function"!==typeof this._plugin.getAdapter?null:this._plugin.getAdapter():null)?null:t},newSession:function(t){var e=!1;return this._initialized?this._infinity?(this._infinity.newSession(void 0,t),e=!0):s.warn("Cannot start a new session since infinity is unavailable."):s.warn("Cannot start a new session since Product Analytics is uninitialized."),e},endSession:function(t){var e=!1;if(this._initialized)if(this._infinity){var i=null;t&&(i={params:{dimensions:{}}},Object.assign(i.params.dimensions,t)),this._infinity.fireSessionStop(i),e=!0}else s.warn("Cannot end session since infinity is unavailable.");else s.warn("Cannot end session since Product Analytics is uninitialized.");return e}
1,loginSuccessful:function(t,e,i,n,r,a){var u;this._checkState("log in successfully")&&("string"!==typeof t&&"number"!==typeof t?s.warn("Cannot log in successfully since userId is unavailable."):""===t?s.warn("Cannot log in successfully since userId is unset."):(this._fireEvent("User Login Successful",o.EventTypes.user,{username:t},n,r),"undefined"!==typeof e&&""!==e||(e=null),null!==e&&this._userProfileSelectedEvent(e,i,n,r),u={username:t},null!==e&&(u["user.profileId"]=e),this._plugin.setOptions(u),this.newSession(a)))},loginUnsuccessful:function(t,e){this._checkState("log in unsuccessful")&&this._fireEvent("User Login Unsuccessful",o.EventTypes.user,{},t,e)},logout:function(t,e,i){var n;this._checkState("log out")&&(this._fireEvent("User Logout",o.EventTypes.user,{},t,e),(n={username:null})["user.profileId"]=null,this._plugin.setOptions(n),this.newSession(i))},userProfileCreated:function(t,e,i,n){var r;this._checkState("create user profile")&&("string"!==typeof t&&"number"!==typeof t?s.warn("Cannot create user profile since profileId is unavailable."):""===t?s.warn("Cannot create user profile since profileId is unset."):(r=this._getUserProfileDimensions(t,e),this._fireEvent("User Profile Created",o.EventTypes.userProfile,r,i,n)))},userProfileSelected:function(t,e,i,n,r){var a;this._checkState("select user profile")&&("string"!==typeof t&&"number"!==typeof t?s.warn("Cannot select user profile since profileId is unavailable."):""===t?s.warn("Cannot select user profile since profileId is unset."):(this._userProfileSelectedEvent(t,e,i,n),a={"user.profileId":t},this._plugin.setOptions(a),this.newSession(r)))},_userProfileSelectedEvent:function(t,e,i,n){var s;s=this._getUserProfileDimensions(t,e),this._fireEvent("User Profile Selected",o.EventTypes.userProfile,s,i,n)},userProfileDeleted:function(t,e,i){var n;this._checkState("delete user profile")&&("string"!==typeof t&&"number"!==typeof t?s.warn("Cannot delete user profile since profileId is unavailable."):""===t?s.warn("Cannot delete user profile since profileId is unset."):(n=this._getUserProfileDimensions(t,null),this._fireEvent("User Profile Deleted",o.EventTypes.userProfile,n,e,i)))},_getUserProfileDimensions:function(t,e){var i;return i={profileId:t},"undefined"!==typeof e&&null!==e&&(i.profileType=e),i},trackNavByRoute:function(t,e,i){if(this._checkState("track navigation"))if("string"!==typeof t||""===t)s.warn("Cannot track navigation since route has not been supplied.");else{var n;try{n=new URL(t)}catch(r){n=null}null===n?s.warn("Cannot track navigation since route is invalid."):(this._url=n,this._identify(),this._trackNavigation(e,i))}else;},trackNavByName:function(t,e,i){this._checkState("track navigation")&&("string"!==typeof t||""===t?s.warn("Cannot track navigation since page has not been supplied."):(this._page=t,this._trackNavigation(e,i)))},_trackNavigationCached:function(t){t.persisted&&this._trackNavigation()},_trackNavigation:function(t,e){var i,n,s;null===this._url?(i="",n="",s=""):(i=this._url.href,n=this._url.pathname,s=this._url.hostname),this._checkState("track navigation")&&this._fireEvent("paNavigation",o.EventTypes.navigation,{paRoute:n,paRouteDomain:s,paFullRoute:i,paReferrer:this._plugin.getReferral()||""},t,e,!0)},trackAttribution:function(t,e,i,n,r,a,o){if(this._checkState("track attribution"))if(this._productAnalyticsSettings.autoTrackAttribution)s.warn("Automatic attribution tracking is enabled: this request won't be processed.");else{var u;u={},"undefined"!==typeof t&&(u.utm_source=t),"undefined"!==typeof e&&(u.utm_medium=e),"undefined"!==typeof i&&(u.utm_campaign=i),"undefined"!==typeof n&&(u.utm_term=n),"undefined"!==typeof r&&(u.utm_content=r),this._trackAttribution(new URLSearchParams(u),a,o)}else;},_trackAttribution:function(t,e,i){var n=this._getUTMParams(t),s=null===this._url?"":this._url.href;this._checkState("track attribution")&&n&&this._fireEvent("Attribution",o.EventTypes.attribution,Object.assign({utmUrl:s},n),e,i)},_getUTMParams:function(t){var e,i,n;return i={utm_source:"utmSource",utm_medium:"utmMedium",utm_campaign:"utmCampaign",utm_term:"utmTerm",utm_content:"utmContent"},e={},t.forEach((function(t,s){"undefined"!==typeof(n=i[s.toLowerCase()])&&(e[n]=t)})),Object.keys(e).length>0?e:null}
1,trackSectionVisible:function(t,e,i,n){this._checkState("track section visible")&&("string"!==typeof t||""===t?s.warn("Cannot track section visible since no section has been supplied."):"number"!==typeof e||e<1?s.warn("Cannot track section visible since sectionOrder is invalid."):this._fireEvent("Section Visible",o.EventTypes.section,{sectionOrder:e,section:t},i,n))},trackSectionHidden:function(t,e,i,n){this._checkState("track section hidden")&&("string"!==typeof t||""===t?s.warn("Cannot track section hidden since no section has been supplied."):"number"!==typeof e||e<1?s.warn("Cannot track section hidden since sectionOrder is invalid."):this._fireEvent("Section Hidden",o.EventTypes.section,{sectionOrder:e,section:t},i,n))},contentFocusIn:function(t,e,i,n,r,a,o){this.contentFocusOut(),this._checkState("track content highlight")&&("string"!==typeof t||""===t?s.warn("Cannot track content highlight since no section has been supplied."):"number"!==typeof e||e<1?s.warn("Cannot track content highlight since sectionOrder is invalid."):"number"!==typeof i||i<1?s.warn("Cannot track content highlight since column is invali
1d."):"number"!==typeof n||n<1?s.warn("Cannot track content highlight since row is invalid."):"string"!==typeof r||""===r?s.warn("Cannot track content highlight since no contentID has been supplied."):(this._contentHighlighted={sectionOrder:e,section:t,column:i,row:n,contentID:r,dimensions:a,metrics:o},this._contentHighlightTimeout=setTimeout(this._trackContentHiglight.bind(this),this._productAnalyticsSettings.highlightContentAfter)))},contentFocusOut:function(){null!==this._contentHighlightTimeout&&clearTimeout(this._contentHighlightTimeout),this._contentHighlighted=null,this._contentHighlightTimeout=null},_trackContentHiglight:function(){this._contentHighlighted?this._fireEvent("Section Content Highlight",o.EventTypes.section,{sectionOrder:this._contentHighlighted.sectionOrder,section:this._contentHighlighted.section,column:this._contentHighlighted.column,row:this._contentHighlighted.row,contentId:this._contentHighlighted.contentID},this._contentHighlighted.dimensions,this._contentHighlighted.metrics):s.warn("Cannot highlight content since no content is selected")},trackContentClick:function(t,e,i,n,r,a,u){this._checkState("track content click")&&("string"!==typeof t||""===t?s.warn("Cannot track content click since no section has been supplied."):"number"!==typeof e||e<1?s.warn("Cannot track content click since sectionOrder is invalid."):"number"!==typeof i||i<1?s.warn("Cannot track content click since column is invali
1d."):"number"!==typeof n||n<1?s.warn("Cannot track content click since row is invalid."):"string"!==typeof r||""===r?s.warn("Cannot track content click since no contentID has been supplied."):this._fireEvent("Section Content Click",o.EventTypes.section,{sectionOrder:e,section:t,column:i,row:n,contentId:r},a,u))},trackPlay:function(t,e,i){var n="Content Play";this._checkState("track play")&&("string"!==typeof t||""===t?s.warn("Cannot track play since no contentID has been supplied."):this._plugin.isStarted?(this._trackPlayerEventsPending(),this._trackPlayerEvent(n,t,e,i)):this._pendingVideoEvents.push({eventName:n,contentID:t,dimensions:e,metrics:i}))},trackPlayerInteraction:function(t,e,i,n){var r="Content Play "+t;this._checkState("track player interaction")&&("string"!==typeof t||""===t?s.warn("Cannot track player interaction since no interaction name has been supplied."):this._plugin.isStarted?(this._trackPlayerEventsPending(),this._trackPlayerEvent(r,null,e,i,n)):this._pendingVideoEvents.push({eventName:r,contentID:null,dimensions:e,metrics:i,startEvent:n}))},_trackPlayerEventsPending:function(){this._pendingVideoEvents.forEach(function(t){this._trackPlayerEvent(t.eventName,t.contentID,t.dimensions,t.metrics,t.startEvent)}.bind(this)),this._pendingVideoEvents=[]},_trackPlayerEvent:function(t,e,i,n,s){"boolean"!==typeof s&&(s=!1);var r={};null!==e&&(r.contentId=e),this._fireAdapterEvent(t,r,i,n),null===this._userState||s||this._userState.setActive(t)},trackSearchQuery:function(t,e,i){this._checkState("track search query")&&("string"!==typeof t||""===t?s.warn("Cannot track search query since no searchQuery has been supplied."):(this._searchQuery=t,this._fireEvent("Search Query",o.EventTypes.search,{query:this._searchQuery},e,i)))},trackSearchResult:function(t,e,i,n){if(this._checkState("track search result"))if("number"!==typeof t)s.warn("Cannot track search result since no resultCount has been supplied.");else{var r="string"===typeof e&&""!==e?e:this._searchQuery;this._fireEvent("Search Results",o.EventTypes.search,{query:r,resultCount:t},i,n)}else;},trackSearchClick:function(t,e,i,n,r,a,u,d){if(this._checkState("track search click"))if("number"!==typeof i)s.warn("Cannot track search click since no column has been supplied.");else if("number"!==typeof n)s.warn("Cannot track search click since no row has been supplied.");else if("string"!==typeof r||""===r)s.warn("Cannot track search click since no contentID has been supplied.");else{var c="string"===typeof a&&""!==a?a:this._searchQuery;"string"===typeof t&&""!==t||(t="Search"),("number"!==typeof e||e<1)&&(e=1),this._fireEvent("Search Result Click",o.EventTypes.search,{sectionOrder:e,section:t,query:c,column:i,row:n,contentId:r},u,d)}else;},trackExternalAppLaunch:function(t,e,i){this._checkState("track external application launch")&&("string"!==typeof t||""===t?s.warn("Cannot track external application launch since no appName has been supplied."):this._fireEvent("External Application Launch",o.EventTypes.externalApplication,{paExtAppName:t},e,i))},trackExternalAppExit:function(t,e,i){this._checkState("track external application exit")&&("string"!==typeof t||""===t?s.warn("Cannot track external application exit since no appName has been supplied."):this._fireEvent("External Application Exit",o.EventTypes.externalApplication,{paExtAppName:t},e,i))},trackEngagementEvent:function(t,e,i,n){this._checkState("track engagement event")&&("string"!==typeof t||""===t?s.warn("Cannot track engagement event since no eventName has been supplied."):"string"!==typeof e||""===e?s.warn("Cannot track engagement event since no contentID has been supplied."):this._fireEvent("Engagement "+t,o.EventTypes.engagement,{contentId:e},i,n))},trackEvent:function(t,e,i,n){"boolean"!==typeof n&&(n=!1),this._checkState("track custom event")&&("string"!==typeof t||""===t?s.warn("Cannot track custom event since no eventName has been supplied."):this._fireEvent("Custom "+t,o.EventTypes.custom,{},e,i,n))},_fireEvent:function(t,e,i,n,r,a){var o,u=!1;return s.notice(t),"boolean"!==typeof a&&(a=!1),o=this._buildDimensions(e,i,n),this._infinity?(this._infinity.fireEvent(t,o.custom,r,o.top,a),u=!0):s.warn("Cannot fire",t,"since infinity is unavailable."),u}
1,_fireAdapterEvent:function(t,e,i,n){var r,a,u=!1;return s.notice(t),(a=this._adapterGet())?(r=this._buildDimensions(o.EventTypes.contentPlayback,e,i),a.fireEvent(t,r.custom,n,r.top),u=!0):s.warn("Cannot fire "+t+" event since adapter is unavailable."),u},_buildDimensions:function(t,e,i){var n,s,r;for(var a in r={paPage:this._page},"undefined"!==typeof e&&(r=Object.assign(r,e)),"undefined"!==typeof i&&(r=Object.assign(r,i)),n=["contentid","contentId","contentID","utmSource","utmMedium","utmCampaign","utmTerm","utmContent","profileId","profile_id","username"],s={},r=Object.assign(r,{eventSource:"Product Analytics",eventType:t}))Object.prototype.hasOwnProperty.call(r,a)&&-1!==n.indexOf(a)&&(s[a]=r[a]);return n.forEach((function(t){delete r[t]})),{custom:r,top:s}},_checkState:function(t){var e;return this._initialized?null==this._infinity?(e=!1,s.warn("Cannot "+t+" since infinity is unavailable.")):this._infinity.isActive()?e=!0:(e=!1,s.warn("Cannot "+t+" since session is closed.")):(e=!1,s.warn("Cannot "+t+" since Product Analytics is uninitialized.")),e}},{EventTypes:{userProfile:"User Profile",user:"User",navigation:"Navigation",attribution:"Attribution",section:"Section",contentPlayback:"Content Playback",search:"Search",externalApplication:"External Application",engagement:"Engagement",custom:"Custom Event"}});t.exports=o},16881:function(t,e,i){var n=i(56654),s=i(7569).extend({constructor:function(t){this._fireEvent="function"===typeof t?t:null,"undefined"===typeof window||"object"!==typeof window.npawtmConfig?this._npawtmConfig=null:this._npawtmConfig=window.npawtmConfig},identify:function(t){var e,i;return i=null,e=[],this._npawtmConfig?null===(i=this._getPage(t))?n.warn("no page found"):e=this._getEvents(i):n.warn("no config descriptor available"),"undefined"===typeof window?n.warn("Product Analytics Config: cannot bind events since DOM is not available"):e.length>0&&window.addEventListener("load",function(){this._bindElements(e)}.bind(this)),i},_getPage:function(t){var e,i,n,s,r,a=null;if("object"===typeof t&&null!==t&&this._npawtmConfig&&this._npawtmConfig.urls&&this._npawtmConfig.regexes&&this._npawtmConfig.domains&&this._npawtmConfig.domains.includes(t.hostname.toLowerCase()))for("undefined"!==typeof(n=this._npawtmConfig.urls[t.pathname])&&"undefined"!==typeof n.page&&(a=n.page),e=t.pathname+t.search,r=0;r<this._npawtmConfig.regexes.length&&null===a;r++)i=this._npawtmConfig.regexes[r],s=new RegExp(i.regex),e.match(s)&&(a=i.page);return a},_getEvents:function(t){var e=this._npawtmConfig&&this._npawtmConfig.events?this._npawtmConfig.events[t]:null;return"undefined"!==typeof e&&null!==e||(e=[]),e},_bindElements:function(t){var e,i,s,r,a;for(a=0;a<t.length;a++)if(e=t[a],null===(s=document.querySelector(e.selector)))n.warn("element "+e.selector+" not found");else if(0===e.events.length)n.warn("element "+e.selector+" has no events to bind");else for(r=0;r<e.events.length;r++)i=e.events[r],s.npawEventInfo=e,s.npawEventType=i,s.addEventListener(i,function(t){var e=t.currentTarget.npawEventInfo,i=t.currentTarget.npawEventType;this._elementEvent(e,i,t)}.bind(this))},_elementEvent:function(t,e,i){this._fireEvent?this._fireEvent(t.name,e,{uiElement:t.name,eventName:t.name}):n.warn("Cannot trigger event since no handler has been provided")}});t.exports=s},67901:function(t,e,i){var n=i(56654),s=i(7569).extend({constructor:function(t,e,i,r){"function"!==typeof i&&(n.warn("Fire Adapter Event unset"),i=null),"function"!==typeof r&&(n.warn("Plugin Options Handler unset"),r=null),("number"!==typeof t||t<1||t>9)&&(t=9),"number"!==typeof e&&(e=3e4),this._fireAdapterEvent=i,this._pluginOptionsHandler=r,this._dimension="content.customDimension."+t,this._timerId=null,this._timerInterval=e,this._started=!1,this._storeState(s.States.PASSIVE)},dispose:function(){this._timerStop(),this._started=!1},setActive:function(t){var e=s.States.ACTIVE;this._state!==e&&(this._fireEvent(e,t),this._storeState(e)),this._timerStart()},_fireEvent:function(t,e){var i;if(n.notice("User changing from state "+this._state+" to "+t),i={newState:t,triggerEvent:e,stateFromTo:this._state
1+" to "+t},this._fireAdapterEvent)switch(t){case s.States.ACTIVE:this._fireAdapterEvent("Content Playback State Switch to Active",i);break;case s.States.PASSIVE:this._fireAdapterEvent("Content Playback State Switch to Passive",i)}else n.warn("Cannot fire user state event since handler is unavailable")},_storeState:function(t){var e;this._state=t,(e={})[this._dimension]=this._state,this._pluginOptionsHandler?this._pluginOptionsHandler(e):n.warn("Cannot store user state since handler is unavailable")},_timerStart:function(){var t=s.States.PASSIVE;this._timerStop(),this._timerId=setTimeout(function(){this._fireEvent(t,"timer"),this._storeState(t)}.bind(this),this._timerInterval)},_timerStop:function(){this._timerId&&(clearTimeout(this._timerId),this._timerId=null)}},{States:{ACTIVE:"active",PASSIVE:"passive"}});t.exports=s},37664:function(t,e,i){var n=i(7569),s=i(49777),r=n.extend({constructor:function(t,e){this.callback=t,this.interval=e||5e3,this.isRunning=!1,this._timer=null,this.chrono=new s},start:function(){this.isRunning||(this.isRunning=!0,this._setTick())},stop:function(){if(this.isRunning=!1,this._timer)try{clearTimeout(this._timer),this._timer=null}catch(t){"undefined"!==typeof atv&&(atv.clearTimeout(this._timer),this._timer=null)}},_setTick:function(){if(this.isRunning){this.chrono.start();try{this._timer=setTimeout(function(){this.callback(this.chrono.stop()),this._setTick()}.bind(this),this.interval)}catch(t){"undefined"!==typeof atv&&(this._timer=atv.setTimeout(function(){this.callback(this.chrono.stop()),this._setTick()}.bind(this),this.interval))}}}});t.exports=r},73183:function(t,e,i){var n=i(56654),s={stripProtocol:function(t){var e=t;try{e=t.replace(/^(.*?:\/\/|\/\/)/i,"")}catch(i){n.warn(i)}return e},addProtocol:function(t,e){var i="http://localhost/";try{i="http://"+t,e||"undefined"!==typeof window&&0===window.location.protocol.indexOf("https")?i="https://"+t:"undefined"!==typeof window&&0===window.location.protocol.indexOf("http")&&(i="//"+t)}catch(s){n.warn(s)}return i},parseNumber:function(t,e){return!isNaN(t)&&t>=0&&t!==1/0&&t!==-1/0&&null!==t&&"undefined"!==typeof t?t:e},logAllEvents:function(t,e,i){try{if(n.logLevel<=n.Level.DEBUG){i=i||function(t){n.debug("Event: "+t.type)};var s=["canplay","buffering","waiting","ended","play","playing","pause","resume","error","abort","seek","seeking","seeked","stalled","dispose","loadeddata","loadstart"];e&&(null===e[0]?(e.shift(),s=e):s=s.concat(e));for(var r=0;r<s.length;r++)"function"===typeof t?t.call(window,s[r],i):t.on?t.on(s[r],i):t.addEventListener&&t.addEventListener(s[r],i)}}catch(a){n.error(a)}},buildRenditionString:function(t,e,i){1===arguments.length&&(i=t,t=null,e=null);var n=null;return t&&e&&(n=t+"x"+e),"number"===typeof i&&!isNaN(i)&&i>=1&&(n?n+="@":n="",n+=i<1e3?Math.round(i)+"bps":i<1e6?(i=Math.round(i/1e3))+"Kbps":(i=Math.round(i/1e4)/100)+"Mbps"),n},buildErrorParams:function(t,e,i,n){var s={};return"object"===typeof t&&null!==t?s=t:(s.errorCode=t||"FAILURE",s.msg=e||s.errorCode,s.errorMetadata=i,s.errorLevel=n),s},calculateAdViewability:function(t,e){var i=!0;if("undefined"!==typeof window&&t&&"function"===typeof t.getBoundingClientRect){var n=t.getBoundingClientRect();if(n.top>=window.innerHeight||n.bottom<=0||n.right<=0||n.left>=window.innerWidth)i=!1;else{var s=Math.trunc(n.height*n.width),r=n.top>0?n.top:0,a=n.bottom>window.innerHeight?window.innerHeight:n.bottom,o=n.left>0?n.left:0;i=100*(((n.right>window.innerWidth?window.innerWidth:n.right)-o)*(a-r))>s*(e||50)}}return i},getMetricsFrom:function(t,e){var i=t||e;for(var n in i)if("object"!==typeof i[n]||!i[n].value){var s={};s.value=i[n],i[n]=s}return i},assign:i(65429),isArray:i(58436)};t.exports=s},11095:function(t,e,i){t.exports=i(82598).version},53823:function(t,e,i){var n=s,s={noConflict:function(){return s=n,this}};s.VERSION=i(11095),s.polyfills=i(13014),s.polyfills(),s.Object=i(7569),s.Emitter=i(48600),s.Log=i(56654),s.Log.loadLevelFromUrl(),s.Util=i(73183),s.HybridNetwork=i(60449),s.Chrono=i(49777),s.Timer=i(37664),s.Constants=i(96229),s.Request=i(5013),s.Communication=i(6596),s.Transform=i(81935),s.ViewTransform=i(4
16e3),s.ResourceTransform=i(67897),s.CdnParser=i(14011),s.HlsParser=i(23786),s.DashParser=i(92153),s.OfflineParser=i(98548),s.LocationheaderParser=i(75269),s.Options=i(8041),s.Plugin=i(89699),s.Storage=i(89062),s.RequestBuilder=i(6856),s.PlayheadMonitor=i(36011),s.Adapter=i(15382),s.adapters={},s.Infinity=i(73194),s.BackgroundDetector=i(86852),s.DeviceDetector=i(97416),s.UUIDGenerator=i(92836),s.registerAdapter=function(t,e){this.adapters[t]=e}.bind(s),s.unregisterAdapter=function(t){this.adapters[t]=null}.bind(s),t.exports=s},82598:function(t){"use strict";t.exports={version:"6.8.67"}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.