(function(){var g={}; var _ = _ || {}
var f=function(window){var uy="VerimatrixVCAS",vy="clpp.verimatrix.Vcas",wy="clpp.verimatrix.VcasComponent",Cy=function(a){_.an.call(this,uy);var b={};b[xy]=xy;b[yy]=yy;var c=a.authenticator,d=void 0===a.licenseRequestVuidLocation?zy:a.licenseRequestVuidLocation;b=void 0===a.httpHeaderNames?b:a.httpHeaderNames;var e=a.widevineLicenseUrl,f=a.playReadyLicenseUrl,g=a.fairPlayLicenseUrl,h=a.fairPlayCertificateUrl,l=a.fairPlaySiteId,m=void 0===a.fairPlayAssetIdStrategy?Ay:a.fairPlayAssetIdStrategy;this.A=a.deviceId;this.a=c;
this.C=d;this.B=b;this.w=By(this,e);this.o=By(this,f);this.l=By(this,g);this.j=h;this.H=l;this.G=m;this.g=new _.J(vy);_.Q.empty(this.w)?this.g.warn(_.Zb):this.fb(_.Gd,{licenseUrl:this.w,videoRobustness:[_.Fb,void 0],audioRobustness:[_.Eb,void 0],persistentStateRequired:!1,distinctiveIdentifierRequired:!1,serverCertificate:null,modifiers:{licenseRequest:this.h.bind(this)}});_.Q.empty(this.o)?this.g.warn(_.tb):this.fb(_.Ed,{licenseUrl:this.o,videoRobustness:["3000"],audioRobustness:["2000"],modifiers:{licenseRequest:this.h.bind(this)}});
_.Q.empty(this.l)?this.g.warn(_.Ra):_.Q.empty(this.j)?this.g.warn(_.Qa):this.fb(_.Cd,{licenseUrl:this.l,certificateUrl:this.j,modifiers:{licenseRequest:this.K.bind(this),licenseResponse:this.L.bind(this),extractContentId:this.I.bind(this)}})},By=function(a,b){if(a.C===zy){var c=Object.assign({},{deviceId:_.Mm(_.Q.Fd(a.A))},a.a&&{authenticator:_.Mm(_.Q.Fd(a.a))});return b+_.Ok(c)}return b},Dy=function(){this.g=new _.J(wy)};_.w(Cy,_.an);
Cy.prototype.h=function(a,b){if(this.C===Ey){var c=this.B[yy],d={};d[this.B[xy]]=this.A;this.a&&(d[c]=this.a);Object.keys(d).forEach(function(e){b.headers[e]=d[e]})}};Cy.prototype.I=function(a,b){var c=_.yn(b);switch(this.G){case Fy:c=_.Ok({r:c,yp:this.H},!0)}return c};Cy.prototype.K=function(a,b){this.h(a,b);_.Bn(b)};Cy.prototype.L=function(a,b){_.Cn(b)};_.I(vy,Cy);Cy.prototype.constructor=Cy.prototype.constructor;Cy.NAME=uy;var zy="query-string",Ey="http-header";
Cy.LicenseRequestVuidLocation={QUERY_STRING:zy,HTTP_HEADER:Ey};var xy="DeviceId",yy="Authenticator";Cy.LicenseRequestHttpHeader={DEVICE_ID_HEADER:xy,AUTHENTICATOR_HEADER:yy};var Ay="keyid",Fy="contentid-siteid";Cy.FairPlayAssetIdStrategy={KEYID:Ay,CONTENTID_SITEID:Fy};_.w(Dy,_.Bu);Dy.prototype.a=function(){delete _.Vm.VerimatrixVCAS};Dy.prototype.h=function(a){a=a.getConfiguration();if(a.drm&&a.drm.env===uy){a=a.drm.customData;if(!a)throw new _.N(_.O,7,7100,_.Hd);a=new Cy(a);this.g.info("Registering the Verimatrix VCAS Ultra environment");_.Wm(a)}};Dy.prototype.id=function(){return"verimatrix-vcas"};_.I(wy,Dy);};
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));}
})();