(function(){var g={}; var _ = _ || {}
var f=function(window){var pC=function(){this.g=new _.J("clpp.onboard");this.j=new Set},qC=function(a,b){function c(l){return l&&(_.Q.startsWith(l,"https://")||_.Q.startsWith(l,"http://")||_.Q.startsWith(l,"//"))?l:d+l}var d=b.baseUrl;_.Q.endsWith(d,"/")||(d+="/");var e=c(b.widevineUrl||"widevine"),f=c(b.playreadyUrl||"playready"),g=c(b.fairplayUrl||"fairplay"),h=new _.an(a);h.fb(_.Gd,{licenseUrl:e,videoRobustness:[_.Fb,void 0],audioRobustness:[_.Eb,void 0],persistentStateRequired:!1,distinctiveIdentifierRequired:!1,serverCertificate:null,
modifiers:{licenseRequest:_.Sn,licenseResponse:_.Xn}});h.fb(_.Cd,{licenseUrl:g,certificateUrl:g,modifiers:{licenseRequest:_.Un,licenseResponse:_.Vn,extractContentId:_.Qn,certificateRequest:_.Wn}});h.fb(_.Ed,{licenseUrl:f,modifiers:{licenseRequest:_.Sn}});_.Wm(h)};_.w(pC,_.Bu);pC.prototype.a=function(){for(var a=_.u(this.j),b=a.next();!b.done;b=a.next())delete _.Vm[b.value];this.j.clear()};
pC.prototype.h=function(a){a=a.getConfiguration().drm;var b;if(b=!(!a||!a.env))b=a&&a.customData,b=!(!b||!b.baseUrl);b&&(b=a.env,a=a.customData,a={baseUrl:a.baseUrl,widevineUrl:a.widevineUrl,playreadyUrl:a.playreadyUrl,fairplayUrl:a.fairplayUrl},this.g.info("Registering the DRMtoday Onboard environment, name\x3d'"+b+"'"),qC(b,a),this.j.add(b))};pC.prototype.id=function(){return"onboard"};_.I("clpp.onboard.OnboardComponent",pC);_.I("clpp.onboard.register",qC);};
if(typeof(module)!="undefined"&&module.exports){var x=require("./cl.core.js");_ = x._;(f.call(g,this));module.exports=g;}
else if (typeof(define)!="undefined"&&define.amd) {define(["./cl.core"], function(c){_=c._;(f.call(g,this));return g;});}
else{_=this.clpp._;(f.call(g,this));}
})();