@newrelic/video-core 3.1.1 → 3.2.0-beta-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -2
- package/README.md +15 -2
- package/dist/cjs/index.js +3 -1
- package/dist/cjs/index.js.LICENSE.txt +1 -1
- package/dist/cjs/index.js.map +1 -0
- package/dist/esm/index.js +3 -1
- package/dist/esm/index.js.LICENSE.txt +1 -1
- package/dist/esm/index.js.map +1 -0
- package/dist/umd/nrvideo.min.js +3 -1
- package/dist/umd/nrvideo.min.js.LICENSE.txt +1 -1
- package/dist/umd/nrvideo.min.js.map +1 -0
- package/package.json +5 -5
- package/src/agent.js +6 -0
- package/src/authConfiguration.js +138 -0
- package/src/chrono.js +78 -0
- package/src/constants.js +43 -0
- package/src/core.js +100 -0
- package/src/emitter.js +81 -0
- package/src/eventAggregator.js +66 -0
- package/src/harvester.js +171 -0
- package/src/index.js +22 -0
- package/src/log.js +323 -0
- package/src/recordEvent.js +68 -0
- package/src/tracker.js +281 -0
- package/src/utils.js +101 -0
- package/src/videotracker.js +1060 -0
- package/src/videotrackerstate.js +574 -0
package/dist/umd/nrvideo.min.js
CHANGED
|
@@ -1 +1,3 @@
|
|
|
1
|
-
function a0b(a,b){var c=a0a();return a0b=function(d,e){d=d-0xaf;var f=c[d];return f;},a0b(a,b);}(function(a,b){var a0=a0b,c=a();while(!![]){try{var d=parseInt(a0(0x238))/0x1+-parseInt(a0(0x23e))/0x2+-parseInt(a0(0xd1))/0x3*(parseInt(a0(0xbb))/0x4)+-parseInt(a0(0x25e))/0x5*(parseInt(a0(0x22d))/0x6)+-parseInt(a0(0x16d))/0x7+-parseInt(a0(0x1b6))/0x8+-parseInt(a0(0xc3))/0x9*(-parseInt(a0(0x24e))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0a,0x1fafe),!function(a,b){var a1=a0b;a1(0x1da)==typeof exports&&a1(0x1da)==typeof module?module[a1(0x1d1)]=b():a1(0x1b3)==typeof define&&define[a1(0x131)]?define([],b):'object'==typeof exports?exports[a1(0x249)]=b():a['nrvideo']=b();}(self,()=>((()=>{'use strict';var e3=a0b;var a={0x33:(f,g)=>{var a7=a0b;function h(p){var a2=a0b;return h=a2(0x1b3)==typeof Symbol&&a2(0xc1)==typeof Symbol[a2(0x235)]?function(q){return typeof q;}:function(q){var a3=a2;return q&&a3(0x1b3)==typeof Symbol&&q[a3(0x218)]===Symbol&&q!==Symbol[a3(0x223)]?a3(0xc1):typeof q;},h(p);}function j(p,q){var a4=a0b;for(var u=0x0;u<q[a4(0xd9)];u++){var v=q[u];v[a4(0xd4)]=v['enumerable']||!0x1,v[a4(0x149)]=!0x0,a4(0x251)in v&&(v[a4(0xbf)]=!0x0),Object[a4(0x109)](p,l(v[a4(0x25b)]),v);}}function k(p,q,u){var a5=a0b;return q&&j(p[a5(0x223)],q),u&&j(p,u),Object[a5(0x109)](p,a5(0x223),{'writable':!0x1}),p;}function l(p){var q=function(u){var a6=a0b;if(a6(0x1da)!=h(u)||!u)return u;var v=u[Symbol[a6(0x234)]];if(void 0x0!==v){var w=v[a6(0x19c)](u,a6(0x201));if(a6(0x1da)!=h(w))return w;throw new TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return String(u);}(p);return'symbol'==h(q)?q:q+'';}Object['defineProperty'](g,a7(0x205),{'value':!0x0}),g[a7(0x128)]=void 0x0;var m=k(function p(){!function(q,u){if(!(q instanceof u))throw new TypeError('Cannot\x20call\x20a\x20class\x20as\x20a\x20function');}(this,p);});m['AdPositions']={'PRE':a7(0x1ed),'MID':'mid','POST':a7(0x1fd)},g[a7(0x128)]=m;},0x90:(f,g)=>{var ac=a0b;function h(v){var a8=a0b;return h=a8(0x1b3)==typeof Symbol&&'symbol'==typeof Symbol[a8(0x235)]?function(w){return typeof w;}:function(w){var a9=a8;return w&&'function'==typeof Symbol&&w[a9(0x218)]===Symbol&&w!==Symbol[a9(0x223)]?'symbol':typeof w;},h(v);}function j(v,w){var aa=a0b;for(var x=0x0;x<w[aa(0xd9)];x++){var y=w[x];y[aa(0xd4)]=y['enumerable']||!0x1,y[aa(0x149)]=!0x0,aa(0x251)in y&&(y['writable']=!0x0),Object[aa(0x109)](v,k(y['key']),y);}}function k(v){var w=function(x){var ab=a0b;if(ab(0x1da)!=h(x)||!x)return x;var y=x[Symbol[ab(0x234)]];if(void 0x0!==y){var z=y[ab(0x19c)](x,ab(0x201));if(ab(0x1da)!=h(z))return z;throw new TypeError(ab(0x228));}return String(x);}(v);return'symbol'==h(w)?w:w+'';}Object[ac(0x109)](g,ac(0x205),{'value':!0x0}),g[ac(0x128)]=void 0x0;var l=(function(){var af=ac;function v(){!function(y,z){var ad=a0b;if(!(y instanceof z))throw new TypeError(ad(0x122));}(this,v);}return w=v,x=[{'key':'error','value':function(){var ae=a0b;for(var y=arguments[ae(0xd9)],z=new Array(y),A=0x0;A<y;A++)z[A]=arguments[A];m(z,v[ae(0xe7)][ae(0x10b)],ae(0x150));}},{'key':af(0x24f),'value':function(){var ag=af;for(var y=arguments[ag(0xd9)],z=new Array(y),A=0x0;A<y;A++)z[A]=arguments[A];m(z,v['Levels'][ag(0x13d)],ag(0xb8));}},{'key':af(0x17b),'value':function(){var ah=af;for(var y=arguments[ah(0xd9)],z=new Array(y),A=0x0;A<y;A++)z[A]=arguments[A];m([][ah(0x1a9)]['call'](arguments),v[ah(0xe7)]['NOTICE'],'darkcyan');}},{'key':af(0x200),'value':function(){var ai=af;for(var y=arguments['length'],z=new Array(y),A=0x0;A<y;A++)z[A]=arguments[A];m(z,v[ai(0xe7)][ai(0x272)],'indigo');}},{'key':af(0x230),'value':function(y,z,A){var aj=af;try{if(v[aj(0x116)]<=v[aj(0xe7)]['DEBUG']){A=A||function(D){var ak=aj;v[ak(0x200)](ak(0x148)+D['type']);};var B=[aj(0x1cc),aj(0x1e5),aj(0xeb),aj(0x142),aj(0x1b2),aj(0x17d),aj(0x174),aj(0x1dd),'error','abort',aj(0x1ba),'seeking',aj(0x267),aj(0x209),aj(0xe1),'loadeddata',aj(0x179),aj(0x1fb)];z&&(null===z[0x0]?(z[aj(0x135)](),B=z):B=B[aj(0xcf)](z));for(var C=0x0;C<B[aj(0xd9)];C++)aj(0x1b3)==typeof y?y[aj(0x19c)](window,B[C],A):y['on']?y['on'](B[C],A):y['addEventListener']?y['addEventListener'](B[C],A):y['addEventHandler']?y['addEventHandler'](B[C],A):v[aj(0x24f)]('debugCommonVideoEvents:\x20No\x20common\x20listener\x20function\x20found\x20for\x20',y);}}catch(D){v[aj(0x24f)](D);}}}],null&&j(w[af(0x223)],null),x&&j(w,x),Object[af(0x109)](w,'prototype',{'writable':!0x1}),w;var w,x;}());function m(v,w,x){var al=ac;w=w||l[al(0xe7)]['NOTICE'],x=x||'darkcyan';var y,z,A=l['prefix'];l[al(0x15b)]&&(A+='['+('0'+(y=new Date())[al(0x1c4)]())[al(0x1a9)](-0x2)+':'+('0'+y[al(0x244)]())[al(0x1a9)](-0x2)+':'+('0'+y[al(0x10e)]())['slice'](-0x2)+'.'+('00'+y['getMilliseconds']())['slice'](-0x3)+']\x20'),A+=function(B){return q[B];}(w)+':',l[al(0x116)]<=w&&w!==l[al(0xe7)][al(0x16c)]&&(!l['colorful']||al(0x1ce)!=typeof document&&document[al(0x172)]?p(v,A):(z=w===l['Levels'][al(0x10b)]&&console[al(0x1f2)]?console[al(0x1f2)]:w===l['Levels'][al(0x13d)]&&console[al(0x24f)]?console[al(0x24f)]:w===l['Levels'][al(0x272)]&&console[al(0x200)]&&null==window[al(0xe9)]?console[al(0x200)]:console['log'],A='%c'+A,v[al(0xb6)](0x0,0x0,A,al(0x195)+x),z[al(0x126)](console,v)));}function p(v,w){var am=ac;if(v instanceof Array){for(var x in v)p(v[x],w);}else am(0x201)==typeof v?console[am(0x1fe)](w+'\x20'+v):(console[am(0x1fe)](w+'↵'),console[am(0x1fe)](v));}l[ac(0xe7)]={'SILENT':0x5,'ERROR':0x4,'WARNING':0x3,'NOTICE':0x2,'DEBUG':0x1,'ALL':0x0},l[ac(0x116)]=l['Levels'][ac(0x10b)],l[ac(0x160)]=!0x0,l[ac(0x15b)]=!0x0,l[ac(0x1e7)]='[nrvideo]';var q={0x4:'e',0x3:'w',0x2:'n',0x1:'d'};!(function(){var an=ac;if(an(0x1ce)!=typeof window&&window['location']&&window[an(0x1dc)][an(0x1a3)]){var v=/\?.*&*nrvideo-debug=(.+)/i['exec'](window['location']['search']);null!==v&&(an(0x1cf)===v[0x1]?l[an(0x116)]=l[an(0xe7)][an(0x1ee)]:l[an(0x116)]=v[0x1]),null!==/\?.*&*nrvideo-colors=false/i[an(0x11b)](window[an(0x1dc)][an(0x1a3)])&&(l[an(0x160)]=!0x1);}}()),g[ac(0x128)]=l;},0x92:(f,g)=>{var at=a0b;function h(m){var ao=a0b;return h=ao(0x1b3)==typeof Symbol&&ao(0xc1)==typeof Symbol[ao(0x235)]?function(o){return typeof o;}:function(o){var ap=ao;return o&&'function'==typeof Symbol&&o[ap(0x218)]===Symbol&&o!==Symbol[ap(0x223)]?ap(0xc1):typeof o;},h(m);}function j(m,o){var aq=a0b;for(var p=0x0;p<o[aq(0xd9)];p++){var q=o[p];q[aq(0xd4)]=q[aq(0xd4)]||!0x1,q[aq(0x149)]=!0x0,'value'in q&&(q['writable']=!0x0),Object[aq(0x109)](m,k(q[aq(0x25b)]),q);}}function k(m){var as=a0b,o=function(p){var ar=a0b;if('object'!=h(p)||!p)return p;var q=p[Symbol[ar(0x234)]];if(void 0x0!==q){var u=q['call'](p,'string');if('object'!=h(u))return u;throw new TypeError(ar(0x228));}return String(p);}(m);return as(0xc1)==h(o)?o:o+'';}Object[at(0x109)](g,at(0x205),{'value':!0x0}),g[at(0x128)]=void 0x0;var l=(function(){var aw=at;return m=function p(q){var av=a0b;!function(u,v){var au=a0b;if(!(u instanceof v))throw new TypeError(au(0x122));}(this,p),this[av(0x265)]={};},(o=[{'key':aw(0xd3),'value':function(q,u){var ax=aw;u=Object[ax(0x11a)](u||{},this[ax(0x265)]);}},{'key':aw(0xc7),'value':function(q,u){var ay=aw;this[ay(0x265)][q]=u;}},{'key':aw(0xdc),'value':function(q){var az=aw;this[az(0x265)][az(0x226)](q);}}])&&j(m[aw(0x223)],o),Object[aw(0x109)](m,aw(0x223),{'writable':!0x1}),m;var m,o;}());g[at(0x128)]=l;},0x12e:(g,j,k)=>{var aC=a0b;function m(F){var aA=a0b;return m=aA(0x1b3)==typeof Symbol&&aA(0xc1)==typeof Symbol['iterator']?function(G){return typeof G;}:function(G){var aB=aA;return G&&aB(0x1b3)==typeof Symbol&&G[aB(0x218)]===Symbol&&G!==Symbol[aB(0x223)]?aB(0xc1):typeof G;},m(F);}Object[aC(0x109)](j,'__esModule',{'value':!0x0}),j[aC(0x128)]=void 0x0;var p=x(k(0x14a)),q=x(k(0x238)),v=x(k(0x1c7)),w=x(k(0x33));function x(F){var aD=aC;return F&&F[aD(0x205)]?F:{'default':F};}function z(F,G){var aE=aC;for(var H=0x0;H<G['length'];H++){var I=G[H];I[aE(0xd4)]=I[aE(0xd4)]||!0x1,I[aE(0x149)]=!0x0,aE(0x251)in I&&(I[aE(0xbf)]=!0x0),Object[aE(0x109)](F,A(I['key']),I);}}function A(F){var aG=aC,G=function(H){var aF=a0b;if(aF(0x1da)!=m(H)||!H)return H;var I=H[Symbol[aF(0x234)]];if(void 0x0!==I){var J=I[aF(0x19c)](H,aF(0x201));if(aF(0x1da)!=m(J))return J;throw new TypeError(aF(0x228));}return String(H);}(F);return aG(0xc1)==m(G)?G:G+'';}function B(){var aH=aC;try{var F=!Boolean[aH(0x223)][aH(0x241)][aH(0x19c)](Reflect[aH(0x1be)](Boolean,[],function(){}));}catch(G){}return(B=function(){return!!F;})();}function C(F){var aI=aC;return C=Object['setPrototypeOf']?Object[aI(0x13e)][aI(0xdf)]():function(G){var aJ=aI;return G['__proto__']||Object[aJ(0x13e)](G);},C(F);}function D(F,G){var aK=aC;return D=Object[aK(0x1d8)]?Object[aK(0x1d8)]['bind']():function(H,I){return H['__proto__']=I,H;},D(F,G);}var E=function(F){var aQ=aC;function G(J){var aN=a0b,K;return function(L,M){if(!(L instanceof M))throw new TypeError('Cannot\x20call\x20a\x20class\x20as\x20a\x20function');}(this,G),(K=function(L,M,N){var aM=a0b;return M=C(M),function(O,P){var aL=a0b;if(P&&('object'==m(P)||'function'==typeof P))return P;if(void 0x0!==P)throw new TypeError(aL(0x1b4));return function(Q){if(void 0x0===Q)throw new ReferenceError('this\x20hasn\x27t\x20been\x20initialised\x20-\x20super()\x20hasn\x27t\x20been\x20called');return Q;}(O);}(L,B()?Reflect[aM(0x1be)](M,N||[],C(L)[aM(0x218)]):M[aM(0x126)](L,N));}(this,G))[aN(0x171)]={},K[aN(0x151)]=null,K[aN(0x1a6)]=null,K[aN(0xc4)]=new v['default'](),K[aN(0xc4)][aN(0x252)](),K[aN(0x188)]=w[aN(0x128)][aN(0x14e)],K[aN(0x17f)]=w['default'][aN(0xf4)],J=J||{},K['setOptions'](J),K;}return function(J,K){var aO=a0b;if(aO(0x1b3)!=typeof K&&null!==K)throw new TypeError(aO(0x23d));J[aO(0x223)]=Object['create'](K&&K[aO(0x223)],{'constructor':{'value':J,'writable':!0x0,'configurable':!0x0}}),Object[aO(0x109)](J,aO(0x223),{'writable':!0x1}),K&&D(J,K);}(G,F),H=G,(I=[{'key':'setOptions','value':function(J){var aP=a0b;J&&(J[aP(0x1a6)]&&(this[aP(0x1a6)]=J[aP(0x1a6)]),J['customData']&&(this[aP(0x171)]=J[aP(0x171)]),J[aP(0x151)]&&(this['heartbeat']=J['heartbeat']));}},{'key':aQ(0xe1),'value':function(){var aR=aQ;this[aR(0x1ea)]();}},{'key':aQ(0x1b9),'value':function(){}},{'key':'unregisterListeners','value':function(){}},{'key':aQ(0x1bc),'value':function(){var aS=aQ;return this[aS(0xee)][aS(0x129)]?0x7d0:this[aS(0x151)]?this[aS(0x151)]:this[aS(0x1a6)]&&this[aS(0x1a6)][aS(0x151)]?this['parentTracker'][aS(0x151)]:0x7530;}},{'key':'startHeartbeat','value':function(){var aT=aQ;this['_heartbeatInterval']=setInterval(this[aT(0x1c7)][aT(0xdf)](this),Math[aT(0x250)](this[aT(0x1bc)](),0x7d0));}},{'key':'stopHeartbeat','value':function(){var aU=aQ;this[aU(0x106)]&&clearInterval(this[aU(0x106)]);}},{'key':'sendHeartbeat','value':function(J){var aV=aQ;this['sendVideoAction'](G[aV(0x24c)][aV(0x14f)],J);}},{'key':aQ(0x1a7),'value':function(J,K){var aW=aQ;for(var L in((J=J||{})[aW(0x259)]=this[aW(0x275)](),J[aW(0x1d9)]=this[aW(0x108)](),J[aW(0x247)]=p[aW(0x128)][aW(0x1ac)],J[aW(0x164)]=this['_trackerReadyChrono']['getDeltaTime'](),this['customData']))J[L]=this[aW(0x171)][L];return null!=document[aW(0x190)]&&(J[aW(0xba)]=document['hidden']),J;}},{'key':aQ(0x108),'value':function(){var aX=aQ;return p['default'][aX(0x1ac)];}},{'key':'getTrackerName','value':function(){var aY=aQ;return aY(0x15e);}},{'key':aQ(0x112),'value':function(J,K){this['emit']('VideoAction',J,this['getAttributes'](K));}},{'key':'sendVideoAdAction','value':function(J,K){var aZ=aQ;this[aZ(0xb9)](aZ(0xb5),J,this[aZ(0x1a7)](K));}},{'key':'sendVideoErrorAction','value':function(J,K){var b0=aQ,L=this[b0(0x208)]()?'adError':b0(0x222);this[b0(0xb9)](b0(0x192),J,this[b0(0x1a7)](K,L));}},{'key':aQ(0x225),'value':function(J,K){var b1=aQ;this[b1(0xb9)]('VideoCustomAction',J,this[b1(0x1a7)](K,b1(0x182)));}}])&&z(H[aQ(0x223)],I),Object['defineProperty'](H,aQ(0x223),{'writable':!0x1}),H;var H,I;}(q[aC(0x128)]);E[aC(0x24c)]={'HEARTBEAT':'HEARTBEAT'},j[aC(0x128)]=E;},0x148:(f,g,h)=>{var b2=a0b;Object[b2(0x109)](g,'__esModule',{'value':!0x0}),g[b2(0x128)]=void 0x0;var j=m(h(0x1c7)),k=m(h(0x90));function m(z){var b3=b2;return z&&z[b3(0x205)]?z:{'default':z};}function p(z){var b4=b2;return p=b4(0x1b3)==typeof Symbol&&b4(0xc1)==typeof Symbol[b4(0x235)]?function(A){return typeof A;}:function(A){var b5=b4;return A&&b5(0x1b3)==typeof Symbol&&A['constructor']===Symbol&&A!==Symbol['prototype']?b5(0xc1):typeof A;},p(z);}function q(z,A){return function(B){if(Array['isArray'](B))return B;}(z)||function(B,C){var b6=a0b,D=null==B?null:'undefined'!=typeof Symbol&&B[Symbol['iterator']]||B[b6(0x271)];if(null!=D){var E,F,G,H,I=[],J=!0x0,K=!0x1;try{if(G=(D=D[b6(0x19c)](B))['next'],0x0===C){if(Object(D)!==D)return;J=!0x1;}else{for(;!(J=(E=G[b6(0x19c)](D))[b6(0x1c3)])&&(I[b6(0x1f4)](E[b6(0x251)]),I[b6(0xd9)]!==C);J=!0x0);}}catch(L){K=!0x0,F=L;}finally{try{if(!J&&null!=D['return']&&(H=D[b6(0x1e2)](),Object(H)!==H))return;}finally{if(K)throw F;}}return I;}}(z,A)||function(B,C){var b7=a0b;if(B){if('string'==typeof B)return v(B,C);var D={}[b7(0x270)][b7(0x19c)](B)[b7(0x1a9)](0x8,-0x1);return b7(0xef)===D&&B[b7(0x218)]&&(D=B['constructor'][b7(0x20e)]),'Map'===D||b7(0x141)===D?Array[b7(0x260)](B):b7(0x1ab)===D||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/[b7(0x12c)](D)?v(B,C):void 0x0;}}(z,A)||(function(){var b8=a0b;throw new TypeError(b8(0x1e6));}());}function v(z,A){(null==A||A>z['length'])&&(A=z['length']);for(var B=0x0,C=Array(A);B<A;B++)C[B]=z[B];return C;}function w(z,A){var b9=b2;for(var B=0x0;B<A[b9(0xd9)];B++){var C=A[B];C[b9(0xd4)]=C[b9(0xd4)]||!0x1,C[b9(0x149)]=!0x0,'value'in C&&(C[b9(0xbf)]=!0x0),Object[b9(0x109)](z,x(C[b9(0x25b)]),C);}}function x(z){var bb=b2,A=function(B){var ba=a0b;if(ba(0x1da)!=p(B)||!B)return B;var C=B[Symbol[ba(0x234)]];if(void 0x0!==C){var D=C['call'](B,ba(0x201));if('object'!=p(D))return D;throw new TypeError(ba(0x228));}return String(B);}(z);return bb(0xc1)==p(A)?A:A+'';}var y=(function(){var be=b2;return z=function B(){var bd=a0b;!function(C,D){var bc=a0b;if(!(C instanceof D))throw new TypeError(bc(0x122));}(this,B),this[bd(0x167)](),this[bd(0x1ca)]=Date[bd(0x1c6)](),this['_hb']=!0x0,this[bd(0xcc)]=0x0,this[bd(0xde)]=0x0;},(A=[{'key':be(0x167),'value':function(){var bf=be;this[bf(0xe6)]=null,this[bf(0x102)]=0x0,this[bf(0x129)]=!0x1,this[bf(0xd2)]=0x0,this[bf(0x22b)]=0x0,this[bf(0x132)]=0x0,this['totalPlaytime']=0x0,this[bf(0xe2)]=0x0,this[bf(0x1fa)]=!0x1,this[bf(0x1fc)]=!0x1,this[bf(0x206)](),this[bf(0x18d)]();}},{'key':'resetFlags','value':function(){var bg=be;this[bg(0x104)]=!0x1,this['isRequested']=!0x1,this[bg(0x1cb)]=!0x1,this[bg(0x175)]=!0x1,this[bg(0x191)]=!0x1,this[bg(0x25f)]=!0x1,this[bg(0xf2)]=!0x1;}},{'key':be(0x18d),'value':function(){var bh=be;this[bh(0x123)]=new j[(bh(0x128))](),this[bh(0x101)]=new j[(bh(0x128))](),this[bh(0x161)]=new j['default'](),this['timeSinceSeekBegin']=new j[(bh(0x128))](),this['timeSinceBufferBegin']=new j[(bh(0x128))](),this['timeSinceAdBreakStart']=new j[(bh(0x128))](),this[bh(0x134)]=new j[(bh(0x128))](),this[bh(0x253)]=new j[(bh(0x128))](),this['timeSinceLastRenditionChange']=new j[(bh(0x128))](),this[bh(0x255)]=new j[(bh(0x128))](),this[bh(0x12e)]=new j[(bh(0x128))](),this['timeSinceResumed']=new j[(bh(0x128))](),this[bh(0x256)]=new j[(bh(0x128))](),this[bh(0x17c)]=new j[(bh(0x128))](),this[bh(0xf1)]={},this[bh(0x16b)]=new j['default'](),this[bh(0xe0)]=new j[(bh(0x128))]();}},{'key':'isAd','value':function(){var bi=be;return this[bi(0x129)];}},{'key':be(0x15d),'value':function(C){var bj=be;this[bj(0x129)]=C;}},{'key':be(0x1bf),'value':function(C){var bk=be;this[bk(0xf1)][C]=new j[(bk(0x128))](),this['customTimeSinceAttributes'][C]['start']();}},{'key':be(0x184),'value':function(C){delete this['customTimeSinceAttributes'][C];}},{'key':be(0x165),'value':function(){var bl=be;if(!this[bl(0xe6)]){var C=new Date()['getTime'](),D=Math[bl(0x25c)]()[bl(0x270)](0x24)[bl(0x120)](0x2)+Math[bl(0x25c)]()[bl(0x270)](0x24)[bl(0x120)](0x2);this[bl(0xe6)]=C+'-'+D;}return this[bl(0xe6)];}},{'key':be(0x273),'value':function(){var bm=be;return this[bm(0x165)]()+'-'+this['_viewCount'];}},{'key':be(0x214),'value':function(C){var bn=be;C=C||{},this['isAd']()?(this[bn(0x113)]&&(C[bn(0x136)]=this['timeSinceRequested']['getDeltaTime'](),C[bn(0x121)]=this['timeSinceLastHeartbeat'][bn(0x22a)]()),this[bn(0x1cb)]&&(C[bn(0x1c9)]=this[bn(0x101)][bn(0x22a)]()),this['isPaused']&&(C[bn(0x216)]=this[bn(0x161)][bn(0x22a)]()),this['isBuffering']&&(C['timeSinceAdBufferBegin']=this[bn(0xfc)][bn(0x22a)]()),this[bn(0x191)]&&(C[bn(0x23a)]=this[bn(0x13f)]['getDeltaTime']()),this['isAdBreak']&&(C[bn(0x15f)]=this[bn(0x24d)][bn(0x22a)]()),C[bn(0x22b)]=this['numberOfAds']):(this[bn(0x113)]&&(C[bn(0x123)]=this['timeSinceRequested'][bn(0x22a)](),C[bn(0x253)]=this[bn(0x253)][bn(0x22a)]()),this[bn(0x1cb)]&&(C['timeSinceStarted']=this[bn(0x101)]['getDeltaTime']()),this[bn(0x175)]&&(C[bn(0x161)]=this[bn(0x161)][bn(0x22a)]()),this[bn(0x25f)]&&(C[bn(0xfc)]=this[bn(0xfc)]['getDeltaTime']()),this[bn(0x191)]&&(C[bn(0x13f)]=this['timeSinceSeekBegin'][bn(0x22a)]()),C[bn(0x12e)]=this[bn(0x12e)][bn(0x22a)](),C['numberOfVideos']=this[bn(0x132)]),C['numberOfErrors']=this[bn(0xd2)],this[bn(0x208)]()||(this[bn(0x17c)][bn(0x14b)]>0x0?C[bn(0x17c)]=this[bn(0x17c)][bn(0x22a)]():C[bn(0x17c)]=0x0,this['isPlaying']?this[bn(0x17c)][bn(0x252)]():this[bn(0x17c)][bn(0x167)](),this[bn(0x264)]+=C['playtimeSinceLastEvent'],C['totalPlaytime']=this[bn(0x264)]);for(var D=0x0,E=Object[bn(0x1d0)](this['customTimeSinceAttributes']);D<E[bn(0xd9)];D++){var F=q(E[D],0x2),G=F[0x0],H=F[0x1];C[G]=H[bn(0x22a)]();}return C;}},{'key':be(0x211),'value':function(C){var bo=be,D;return D=C?'initial':this['isSeeking']?bo(0x1ba):this[bo(0x175)]?bo(0x174):bo(0xe3),k[bo(0x128)][bo(0x200)](bo(0x23b)+D),D;}},{'key':'goViewCountUp','value':function(){var bp=be;this[bp(0x102)]++;}},{'key':be(0x110),'value':function(){var bq=be;return!this[bq(0x104)]&&(this[bq(0x104)]=!0x0,!0x0);}},{'key':'goRequest','value':function(){var br=be;return!this[br(0x113)]&&(this['isRequested']=!0x0,this[br(0x12e)][br(0x167)](),this['timeSinceRequested'][br(0x252)](),!0x0);}},{'key':be(0x1d6),'value':function(){var bs=be;return!(!this[bs(0x113)]||this[bs(0x1cb)]||(this[bs(0x208)]()?this[bs(0x22b)]++:this['numberOfVideos']++,this[bs(0x1cb)]=!0x0,this[bs(0xf2)]=!0x0,this[bs(0x101)][bs(0x252)](),this[bs(0x17c)]['start'](),0x0));}},{'key':be(0x1d2),'value':function(){var bt=be;return!!this[bt(0x113)]&&(this[bt(0xd2)]=0x0,this[bt(0x206)](),this[bt(0x123)][bt(0x15c)](),this['timeSinceStarted'][bt(0x15c)](),this[bt(0x17c)][bt(0x15c)](),!0x0);}},{'key':'goPause','value':function(){var bu=be;return!(!this[bu(0x1cb)]||this['isPaused']||(this[bu(0x175)]=!0x0,this[bu(0xf2)]=!0x1,this[bu(0x161)]['start'](),this[bu(0x17c)][bu(0x15c)](),this['timeSinceResumed'][bu(0x167)](),this['isBuffering']&&(this[bu(0xde)]+=this[bu(0xe0)][bu(0x22a)]()),this[bu(0x16b)][bu(0x252)](),0x0));}},{'key':be(0x119),'value':function(){var bv=be;return!(!this[bv(0x1cb)]||!this['isPaused']||(this[bv(0x175)]=!0x1,this[bv(0xf2)]=!0x0,this['timeSincePaused'][bv(0x15c)](),this[bv(0x1e1)][bv(0x252)](),this['_hb']?(this[bv(0xcc)]=this[bv(0x16b)][bv(0x22a)](),this[bv(0x1db)]=!0x1):(this[bv(0x25f)]&&this[bv(0xe0)][bv(0x252)](),this[bv(0xcc)]+=this[bv(0x16b)][bv(0x22a)]()),0x0));}},{'key':be(0xf9),'value':function(){var bw=be;return!(!this['isRequested']||this['isBuffering']||(this[bw(0x25f)]=!0x0,this[bw(0xf2)]=!0x1,this[bw(0xfc)][bw(0x252)](),this[bw(0xe0)][bw(0x252)](),0x0));}},{'key':be(0x1e9),'value':function(){var bx=be;return!(!this[bx(0x113)]||!this[bx(0x25f)]||(this[bx(0x25f)]=!0x1,this[bx(0xf2)]=!0x0,this[bx(0xfc)][bx(0x15c)](),this['_hb']?(this[bx(0xde)]=this['bufferElapsedTime']['getDeltaTime'](),this['_hb']=!0x1):this[bx(0xde)]+=this[bx(0xe0)][bx(0x22a)](),0x0));}},{'key':be(0x1f8),'value':function(){var by=be;return!(!this[by(0x1cb)]||this[by(0x191)]||(this[by(0x191)]=!0x0,this['isPlaying']=!0x1,this[by(0x13f)][by(0x252)](),this[by(0x256)][by(0x167)](),0x0));}},{'key':be(0xd6),'value':function(){var bz=be;return!(!this['isStarted']||!this[bz(0x191)]||(this['isSeeking']=!0x1,this[bz(0xf2)]=!0x0,this['timeSinceSeekBegin'][bz(0x15c)](),this[bz(0x256)][bz(0x252)](),0x0));}},{'key':be(0xca),'value':function(){var bA=be;return!this['isAdBreak']&&(this['isAdBreak']=!0x0,this['timeSinceAdBreakStart'][bA(0x252)](),!0x0);}},{'key':be(0x14a),'value':function(){var bB=be;return!!this[bB(0x1fa)]&&(this[bB(0x113)]=!0x1,this[bB(0x1fa)]=!0x1,this[bB(0xe2)]=this[bB(0x24d)][bB(0x22a)](),this[bB(0x24d)]['stop'](),!0x0);}},{'key':be(0x163),'value':function(){var bC=be;this[bC(0x134)]['start']();}},{'key':'goHeartbeat','value':function(){var bD=be;this[bD(0x253)][bD(0x252)]();}},{'key':be(0xc0),'value':function(){var bE=be;this[bE(0x156)][bE(0x252)]();}},{'key':be(0xff),'value':function(){var bF=be;this['timeSinceLastAdQuartile'][bF(0x252)]();}},{'key':'goError','value':function(){var bG=be;this[bG(0x217)]=!0x0,this[bG(0xd2)]++;}},{'key':be(0xd5),'value':function(){var bH=be;this[bH(0x12e)][bH(0x252)]();}}])&&w(z[be(0x223)],A),Object[be(0x109)](z,be(0x223),{'writable':!0x1}),z;var z,A;}());g[b2(0x128)]=y;},0x14a:f=>{var bI=a0b;f['exports']=JSON['parse'](bI(0x21c));},0x18f:(g,j,k)=>{var bJ=a0b;Object[bJ(0x109)](j,bJ(0x205),{'value':!0x0}),j[bJ(0x128)]=void 0x0;var m=q(k(0x90)),p=q(k(0x92));function q(H){var bK=bJ;return H&&H[bK(0x205)]?H:{'default':H};}function w(H){var bL=bJ;return w=bL(0x1b3)==typeof Symbol&&bL(0xc1)==typeof Symbol['iterator']?function(I){return typeof I;}:function(I){var bM=bL;return I&&bM(0x1b3)==typeof Symbol&&I[bM(0x218)]===Symbol&&I!==Symbol[bM(0x223)]?bM(0xc1):typeof I;},w(H);}function x(H,I){var bN=bJ,J=Object[bN(0x137)](H);if(Object['getOwnPropertySymbols']){var K=Object['getOwnPropertySymbols'](H);I&&(K=K[bN(0x14d)](function(L){var bO=bN;return Object[bO(0x1ff)](H,L)[bO(0xd4)];})),J[bN(0x1f4)][bN(0x126)](J,K);}return J;}function z(H,I,J){return(I=B(I))in H?Object['defineProperty'](H,I,{'value':J,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):H[I]=J,H;}function A(H,I){var bP=bJ;for(var J=0x0;J<I[bP(0xd9)];J++){var K=I[J];K['enumerable']=K['enumerable']||!0x1,K['configurable']=!0x0,bP(0x251)in K&&(K['writable']=!0x0),Object[bP(0x109)](H,B(K['key']),K);}}function B(H){var bR=bJ,I=function(J){var bQ=a0b;if(bQ(0x1da)!=w(J)||!J)return J;var K=J[Symbol[bQ(0x234)]];if(void 0x0!==K){var L=K['call'](J,bQ(0x201));if(bQ(0x1da)!=w(L))return L;throw new TypeError(bQ(0x228));}return String(J);}(H);return bR(0xc1)==w(I)?I:I+'';}var C,D=(function(){var bU=bJ;function H(){!function(K,L){var bS=a0b;if(!(K instanceof L))throw new TypeError(bS(0x122));}(this,H);}return I=H,J=[{'key':'addTracker','value':function(K){var bT=a0b;K['on']&&K[bT(0xb9)]?(E[bT(0x1f4)](K),K['on']('*',G),bT(0x1b3)==typeof K[bT(0x114)]&&K['trackerInit']()):m[bT(0x128)][bT(0x1f2)](bT(0x107),K);}},{'key':bU(0x12d),'value':function(K){var bV=bU;K[bV(0x215)]('*',G),K[bV(0xe1)]();var L=E['indexOf'](K);-0x1!==L&&E['splice'](L,0x1);}},{'key':bU(0x19d),'value':function(){return E;}},{'key':bU(0x21f),'value':function(){return C;}},{'key':bU(0x177),'value':function(K){C=K;}},{'key':bU(0xd3),'value':function(K,L,M){var bW=bU;null!=H[bW(0x21f)]()&&H[bW(0x21f)]()instanceof p['default']?H[bW(0x21f)]()[bW(0xd3)](K,L,M):bW(0x1ce)!=typeof newrelic&&newrelic[bW(0x203)]?(void 0x0!==M&&(M['timeSinceLoad']=window[bW(0x157)][bW(0x1c6)]()/0x3e8),newrelic['recordCustomEvent'](K,function(N){var bX=bW;for(var O=0x1;O<arguments[bX(0xd9)];O++){var P=null!=arguments[O]?arguments[O]:{};O%0x2?x(Object(P),!0x0)[bX(0x210)](function(Q){z(N,Q,P[Q]);}):Object[bX(0x166)]?Object[bX(0x1de)](N,Object[bX(0x166)](P)):x(Object(P))[bX(0x210)](function(Q){var bY=bX;Object[bY(0x109)](N,Q,Object[bY(0x1ff)](P,Q));});}return N;}({'actionName':L},M))):F||(m['default'][bW(0x1f2)](bW(0x1b5),bW(0xb3)),F=!0x0);}},{'key':bU(0x212),'value':function(K){var bZ=bU;H[bZ(0xd3)](bZ(0x10b),K);}}],null&&A(I['prototype'],null),J&&A(I,J),Object[bU(0x109)](I,bU(0x223),{'writable':!0x1}),I;var I,J;}()),E=[],F=!0x1;function G(H){var c0=bJ,I=function(J){var K={};for(var L in J)null!==J[L]&&void 0x0!==J[L]&&(K[L]=J[L]);return K;}(H[c0(0x1b0)]);m['default'][c0(0x116)]<=m[c0(0x128)]['Levels']['DEBUG']?m['default'][c0(0x17b)](c0(0x1c2),H['type'],I):m[c0(0x128)]['notice'](c0(0x1c2),H[c0(0x219)]),D[c0(0xd3)](H[c0(0x10a)],H[c0(0x219)],I);}j[bJ(0x128)]=D;},0x196:(g,j,k)=>{var c3=a0b;function m(D){var c1=a0b;return m='function'==typeof Symbol&&c1(0xc1)==typeof Symbol[c1(0x235)]?function(E){return typeof E;}:function(E){var c2=c1;return E&&'function'==typeof Symbol&&E[c2(0x218)]===Symbol&&E!==Symbol['prototype']?c2(0xc1):typeof E;},m(D);}Object[c3(0x109)](j,'__esModule',{'value':!0x0}),j['default']=void 0x0;var p=v(k(0x92)),q=v(k(0x90));function v(D){var c4=c3;return D&&D[c4(0x205)]?D:{'default':D};}function w(D,E){var c5=c3;for(var F=0x0;F<E[c5(0xd9)];F++){var G=E[F];G[c5(0xd4)]=G[c5(0xd4)]||!0x1,G[c5(0x149)]=!0x0,c5(0x251)in G&&(G['writable']=!0x0),Object[c5(0x109)](D,x(G[c5(0x25b)]),G);}}function x(D){var c7=c3,E=function(F){var c6=a0b;if(c6(0x1da)!=m(F)||!F)return F;var G=F[Symbol[c6(0x234)]];if(void 0x0!==G){var H=G[c6(0x19c)](F,'string');if(c6(0x1da)!=m(H))return H;throw new TypeError(c6(0x228));}return String(F);}(D);return c7(0xc1)==m(E)?E:E+'';}function y(){var c8=c3;try{var D=!Boolean['prototype'][c8(0x241)][c8(0x19c)](Reflect[c8(0x1be)](Boolean,[],function(){}));}catch(E){}return(y=function(){return!!D;})();}function z(){var c9=c3;return z=c9(0x1ce)!=typeof Reflect&&Reflect['get']?Reflect[c9(0x23f)]['bind']():function(D,E,F){var cb=c9,G=function(I,J){var ca=a0b;for(;!{}[ca(0x242)][ca(0x19c)](I,J)&&null!==(I=A(I)););return I;}(D,E);if(G){var H=Object[cb(0x1ff)](G,E);return H[cb(0x23f)]?H[cb(0x23f)][cb(0x19c)](arguments[cb(0xd9)]<0x3?D:F):H[cb(0x251)];}},z[c9(0x126)](null,arguments);}function A(D){var cc=c3;return A=Object[cc(0x1d8)]?Object[cc(0x13e)][cc(0xdf)]():function(E){var cd=cc;return E[cd(0x263)]||Object[cd(0x13e)](E);},A(D);}function B(D,E){var ce=c3;return B=Object[ce(0x1d8)]?Object[ce(0x1d8)][ce(0xdf)]():function(F,G){var cf=ce;return F[cf(0x263)]=G,F;},B(D,E);}var C=function(D){var cn=c3;function E(H,I){var ck=a0b,J;return function(K,L){var cg=a0b;if(!(K instanceof L))throw new TypeError(cg(0x122));}(this,E),(J=function(K,L,M){var cj=a0b;return L=A(L),function(N,O){var ch=a0b;if(O&&(ch(0x1da)==m(O)||ch(0x1b3)==typeof O))return O;if(void 0x0!==O)throw new TypeError('Derived\x20constructors\x20may\x20only\x20return\x20object\x20or\x20undefined');return function(P){var ci=ch;if(void 0x0===P)throw new ReferenceError(ci(0x246));return P;}(N);}(K,y()?Reflect[cj(0x1be)](L,M||[],A(K)[cj(0x218)]):L[cj(0x126)](K,M));}(this,E))[ck(0x232)]=H,J[ck(0x26b)]=I,J['_eventType']='',J['_eventBuffer']=[],J['_harvestLocked']=!0x1,J['_lastTimestamp']=0x0,setInterval(function(){var cl=ck;J['harvestHandler'](E['Source'][cl(0x1d7)]);},0x2710),J;}return function(H,I){var cm=a0b;if(cm(0x1b3)!=typeof I&&null!==I)throw new TypeError(cm(0x23d));H[cm(0x223)]=Object['create'](I&&I['prototype'],{'constructor':{'value':H,'writable':!0x0,'configurable':!0x0}}),Object['defineProperty'](H,'prototype',{'writable':!0x1}),I&&B(H,I);}(E,D),F=E,G=[{'key':cn(0xd3),'value':function(H,I,J){var co=cn,K,L,M;if(this[co(0xe4)]=H,(K=E,L=this,'function'==typeof(M=z(A(0x1&0x3?K['prototype']:K),'send',L))?function(O){var cp=co;return M[cp(0x126)](L,O);}:M)([I,J]),this['_eventBuffer'][co(0xd9)]<0x1f4){(J=this[co(0x11c)](J))[co(0x10a)]=this[co(0xe4)],J['actionName']=I;var N=Date[co(0x1c6)]();N>this[co(0x18a)]?(J[co(0x237)]=N,this[co(0x18a)]=N):(this[co(0x18a)]++,J['timestamp']=this[co(0x18a)]),this[co(0x1cd)][co(0x1f4)](J);}}},{'key':cn(0x11c),'value':function(H){var cq=cn;H[cq(0xf0)]=window[cq(0x1dc)][cq(0x124)],H[cq(0x26a)]=window[cq(0x1dc)]['origin']+window[cq(0x1dc)][cq(0x257)],H[cq(0x144)]=document[cq(0xdb)];var I='Unknown';-0x1!=navigator[cq(0x143)][cq(0xec)](cq(0x105))?I='Windows':-0x1!=navigator['userAgent']['indexOf'](cq(0xc8))?I='Android':-0x1!=navigator['userAgent'][cq(0xec)](cq(0x147))?I=cq(0x147):navigator[cq(0x143)]['match'](/iPhone|iPad|iPod/i)?I=cq(0xfd):-0x1!=navigator[cq(0x143)]['indexOf'](cq(0x125))?I=cq(0x125):-0x1!=navigator[cq(0x143)]['indexOf'](cq(0x1f7))&&(I=cq(0x152)),H['userAgentOS']=I;var J=cq(0x117);if(-0x1!=navigator[cq(0x143)][cq(0xec)](cq(0xcd))?J='Chrome':-0x1!=navigator[cq(0x143)][cq(0xec)](cq(0x115))?J=cq(0x115):-0x1!=navigator[cq(0x143)][cq(0xec)](cq(0xfa))?J='IE':-0x1!=navigator['userAgent']['indexOf'](cq(0x22c))?J='Microsoft\x20Edge':-0x1!=navigator[cq(0x143)][cq(0xec)]('Safari')?J='Safari':-0x1!=navigator['userAgent']['indexOf']('Opera')&&(J=cq(0x1bb)),H['userAgentName']=J,!H[cq(0x231)]){var K;K=navigator['userAgent'][cq(0x168)](/Tablet|iPad/i)?cq(0x193):navigator[cq(0x143)][cq(0x168)](/Mobile|Windows Phone|Lumia|Android|webOS|iPhone|iPod|Blackberry|PlayBook|BB10|Opera Mini|\bCrMo\/|Opera Mobi/i)?'Mobile':null!=window[cq(0xe9)]?cq(0x20d):cq(0x12a),H[cq(0x231)]=K;}return H;}},{'key':cn(0x248),'value':function(H){var cr=cn;H==E[cr(0x16e)]['TIMER']&&this[cr(0x1a8)]?q[cr(0x128)][cr(0x200)]('Harvest\x20still\x20locked,\x20abort'):(this[cr(0x1a8)]=!0x0,this['_eventBuffer'][cr(0xd9)]>0x0?(q['default']['debug'](cr(0x240),this[cr(0x1cd)]),this[cr(0xda)](this[cr(0x1cd)][cr(0x224)]())):this[cr(0x1a8)]=!0x1);}},{'key':cn(0xda),'value':function(H){var cs=cn,I=this,J={'method':'POST','headers':{'Content-Type':cs(0x10c),'X-Insert-Key':this['_apiKey']},'body':JSON['stringify'](H)},K=cs(0xe5)+this['_accountId']+cs(0x1c0);fetch(K,J)['then'](function(L){var ct=cs;return L[ct(0x19e)]();})[cs(0x227)](function(L){I['insightsRequestResponse'](L);})['catch'](function(L){var cu=cs;q[cu(0x128)][cu(0x1f2)](cu(0x26e),L,H),I[cu(0x1cd)][cu(0x1f4)](H),I[cu(0x1a8)]=!0x1;});}},{'key':'insightsRequestResponse','value':function(H){var cv=cn;this[cv(0x248)](E[cv(0x16e)]['FETCH']);}}],G&&w(F['prototype'],G),Object[cn(0x109)](F,cn(0x223),{'writable':!0x1}),F;var F,G;}(p['default']);C[c3(0x16e)]={'TIMER':'TIMER','FETCH':c3(0x18e)},j['default']=C;},0x1c7:(f,g)=>{var cB=a0b;function h(m){var cw=a0b;return h=cw(0x1b3)==typeof Symbol&&cw(0xc1)==typeof Symbol[cw(0x235)]?function(o){return typeof o;}:function(o){var cx=cw;return o&&'function'==typeof Symbol&&o[cx(0x218)]===Symbol&&o!==Symbol['prototype']?cx(0xc1):typeof o;},h(m);}function j(m,o){var cy=a0b;for(var p=0x0;p<o[cy(0xd9)];p++){var q=o[p];q[cy(0xd4)]=q[cy(0xd4)]||!0x1,q[cy(0x149)]=!0x0,cy(0x251)in q&&(q['writable']=!0x0),Object[cy(0x109)](m,k(q['key']),q);}}function k(m){var cA=a0b,o=function(p){var cz=a0b;if(cz(0x1da)!=h(p)||!p)return p;var q=p[Symbol['toPrimitive']];if(void 0x0!==q){var u=q['call'](p,cz(0x201));if(cz(0x1da)!=h(u))return u;throw new TypeError(cz(0x228));}return String(p);}(m);return cA(0xc1)==h(o)?o:o+'';}Object['defineProperty'](g,cB(0x205),{'value':!0x0}),g[cB(0x128)]=void 0x0;var l=(function(){var cF=cB;function m(){var cC=a0b;!function(q,u){if(!(q instanceof u))throw new TypeError('Cannot\x20call\x20a\x20class\x20as\x20a\x20function');}(this,m),this[cC(0x167)]();}return o=m,(p=[{'key':'reset','value':function(){var cD=a0b;this[cD(0x14b)]=0x0,this[cD(0x245)]=0x0,this[cD(0x100)]=0x0;}},{'key':'getDeltaTime','value':function(){var cE=a0b;return this['startTime']?this['offset']+(new Date()[cE(0x19a)]()-this['startTime']):null;}},{'key':cF(0x252),'value':function(){var cG=cF;this['startTime']=new Date()[cG(0x19a)](),this[cG(0x245)]=0x0;}},{'key':cF(0x15c),'value':function(){var cH=cF;return this[cH(0x245)]=new Date()[cH(0x19a)](),this[cH(0x22a)]();}},{'key':cF(0x197),'value':function(){var cI=cF,q=new m();return q['startTime']=this[cI(0x14b)],q[cI(0x245)]=this[cI(0x245)],q[cI(0x100)]=this[cI(0x100)],q;}}])&&j(o['prototype'],p),Object[cF(0x109)](o,cF(0x223),{'writable':!0x1}),o;var o,p;}());g[cB(0x128)]=l;},0x238:(f,g)=>{function h(m){var cJ=a0b;return h=cJ(0x1b3)==typeof Symbol&&cJ(0xc1)==typeof Symbol[cJ(0x235)]?function(o){return typeof o;}:function(o){var cK=cJ;return o&&'function'==typeof Symbol&&o[cK(0x218)]===Symbol&&o!==Symbol[cK(0x223)]?cK(0xc1):typeof o;},h(m);}function j(m,o){var cL=a0b;for(var p=0x0;p<o[cL(0xd9)];p++){var q=o[p];q[cL(0xd4)]=q[cL(0xd4)]||!0x1,q[cL(0x149)]=!0x0,cL(0x251)in q&&(q['writable']=!0x0),Object['defineProperty'](m,k(q[cL(0x25b)]),q);}}function k(m){var cN=a0b,o=function(p){var cM=a0b;if(cM(0x1da)!=h(p)||!p)return p;var q=p[Symbol[cM(0x234)]];if(void 0x0!==q){var u=q[cM(0x19c)](p,cM(0x201));if(cM(0x1da)!=h(u))return u;throw new TypeError(cM(0x228));}return String(p);}(m);return cN(0xc1)==h(o)?o:o+'';}Object['defineProperty'](g,'__esModule',{'value':!0x0}),g['default']=void 0x0;var l=(function(){var cQ=a0b;return m=function p(){!function(q,u){var cO=a0b;if(!(q instanceof u))throw new TypeError(cO(0x122));}(this,p);},(o=[{'key':'on','value':function(q,u){var cP=a0b;if(this['_listeners']=this[cP(0x170)]||{},cP(0x1b3)==typeof u)return this[cP(0x170)][q]=this['_listeners'][q]||[],this[cP(0x170)][q][cP(0x1f4)](u),this;}},{'key':cQ(0x215),'value':function(q,u){var cR=cQ;if(this['_listeners']=this[cR(0x170)]||{},this[cR(0x170)][q]){var v=this[cR(0x170)][q][cR(0xec)](u);-0x1!==v&&this[cR(0x170)][q][cR(0xb6)](v,0x1);}return this;}},{'key':cQ(0xb9),'value':function(q,u,v){var cS=cQ,w=this;return this[cS(0x170)]=this['_listeners']||{},v=v||{},Array[cS(0x221)](this['_listeners'][u])&&this[cS(0x170)][u][cS(0x210)](function(x){x['call'](w,{'eventType':q,'type':u,'data':v,'target':w});}),Array[cS(0x221)](this[cS(0x170)]['*'])&&this['_listeners']['*']['forEach'](function(x){x['call'](w,{'eventType':q,'type':u,'data':v,'target':w});}),this;}}])&&j(m[cQ(0x223)],o),Object['defineProperty'](m,cQ(0x223),{'writable':!0x1}),m;var m,o;}());g['default']=l;},0x319:(j,k,q)=>{var cV=a0b;function w(N){var cT=a0b;return w=cT(0x1b3)==typeof Symbol&&cT(0xc1)==typeof Symbol[cT(0x235)]?function(O){return typeof O;}:function(O){var cU=cT;return O&&cU(0x1b3)==typeof Symbol&&O[cU(0x218)]===Symbol&&O!==Symbol['prototype']?'symbol':typeof O;},w(N);}Object['defineProperty'](k,cV(0x205),{'value':!0x0}),k[cV(0x128)]=void 0x0;var x=C(q(0x90)),z=C(q(0x12e)),A=C(q(0x148)),B=C(q(0x14a));function C(N){var cW=cV;return N&&N[cW(0x205)]?N:{'default':N};}function D(N,O){var cX=cV,P=Object[cX(0x137)](N);if(Object['getOwnPropertySymbols']){var Q=Object[cX(0x20b)](N);O&&(Q=Q['filter'](function(R){var cY=cX;return Object[cY(0x1ff)](N,R)[cY(0xd4)];})),P[cX(0x1f4)]['apply'](P,Q);}return P;}function E(N){var cZ=cV;for(var O=0x1;O<arguments['length'];O++){var P=null!=arguments[O]?arguments[O]:{};O%0x2?D(Object(P),!0x0)['forEach'](function(Q){F(N,Q,P[Q]);}):Object['getOwnPropertyDescriptors']?Object[cZ(0x1de)](N,Object[cZ(0x166)](P)):D(Object(P))[cZ(0x210)](function(Q){var d0=cZ;Object[d0(0x109)](N,Q,Object[d0(0x1ff)](P,Q));});}return N;}function F(N,O,P){var d1=cV;return(O=H(O))in N?Object[d1(0x109)](N,O,{'value':P,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):N[O]=P,N;}function G(N,O){var d2=cV;for(var P=0x0;P<O['length'];P++){var Q=O[P];Q[d2(0xd4)]=Q['enumerable']||!0x1,Q[d2(0x149)]=!0x0,'value'in Q&&(Q[d2(0xbf)]=!0x0),Object['defineProperty'](N,H(Q[d2(0x25b)]),Q);}}function H(N){var O=function(P){var d3=a0b;if(d3(0x1da)!=w(P)||!P)return P;var Q=P[Symbol[d3(0x234)]];if(void 0x0!==Q){var R=Q[d3(0x19c)](P,'string');if(d3(0x1da)!=w(R))return R;throw new TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return String(P);}(N);return'symbol'==w(O)?O:O+'';}function I(){var d4=cV;try{var N=!Boolean[d4(0x223)][d4(0x241)]['call'](Reflect['construct'](Boolean,[],function(){}));}catch(O){}return(I=function(){return!!N;})();}function J(N){var d5=cV;return J=Object['setPrototypeOf']?Object[d5(0x13e)][d5(0xdf)]():function(O){var d6=d5;return O[d6(0x263)]||Object[d6(0x13e)](O);},J(N);}function K(N,O){var d7=cV;return K=Object[d7(0x1d8)]?Object[d7(0x1d8)][d7(0xdf)]():function(P,Q){var d8=d7;return P[d8(0x263)]=Q,P;},K(N,O);}var L=function(N){var de=cV;function O(R,S){var dc=a0b,T;return function(U,V){var d9=a0b;if(!(U instanceof V))throw new TypeError(d9(0x122));}(this,O),(T=function(U,V,W){var db=a0b;return V=J(V),function(X,Y){var da=a0b;if(Y&&(da(0x1da)==w(Y)||'function'==typeof Y))return Y;if(void 0x0!==Y)throw new TypeError(da(0x1b4));return function(Z){if(void 0x0===Z)throw new ReferenceError('this\x20hasn\x27t\x20been\x20initialised\x20-\x20super()\x20hasn\x27t\x20been\x20called');return Z;}(X);}(U,I()?Reflect['construct'](V,W||[],J(U)[db(0x218)]):V[db(0x126)](U,W));}(this,O))[dc(0xee)]=new A['default'](),T['adsTracker']=null,T[dc(0x162)]=null,T[dc(0x155)]=null,S=S||{},T[dc(0x25d)](S),R&&T[dc(0x15a)](R,S[dc(0x18c)]),x[dc(0x128)][dc(0x17b)]('Tracker\x20'+T[dc(0x275)]()+'\x20v'+T['getTrackerVersion']()+dc(0x127)),T;}return function(R,S){var dd=a0b;if('function'!=typeof S&&null!==S)throw new TypeError(dd(0x23d));R[dd(0x223)]=Object['create'](S&&S[dd(0x223)],{'constructor':{'value':R,'writable':!0x0,'configurable':!0x0}}),Object['defineProperty'](R,'prototype',{'writable':!0x1}),S&&K(R,S);}(O,N),P=O,Q=[{'key':de(0xb7),'value':function(R){var df=de;this[df(0x155)]=R;}},{'key':de(0x25d),'value':function(R){var dg=de;R&&(R['adsTracker']&&this[dg(0x19f)](R[dg(0x262)]),'boolean'==typeof R[dg(0x208)]&&this[dg(0x15d)](R[dg(0x208)]),z['default']['prototype'][dg(0x25d)]['apply'](this,arguments));}},{'key':de(0x15a),'value':function(R,S){var dh=de;(this['player']||this[dh(0x18c)])&&this[dh(0xe1)](),'undefined'!=typeof document&&document[dh(0x159)]&&(dh(0x201)==typeof R&&(R=document[dh(0x159)](R)),'string'==typeof S&&(S=document[dh(0x159)](S))),S=S||R,this[dh(0xea)]=R,this[dh(0x18c)]=S,this['registerListeners']();}},{'key':de(0x208),'value':function(){var di=de;return this['state'][di(0x208)]();}},{'key':de(0x15d),'value':function(R){var dj=de;this[dj(0xee)]['setIsAd'](R);}},{'key':de(0x19f),'value':function(R){var dk=de;this[dk(0x23c)](),R&&(this[dk(0x262)]=R,this[dk(0x262)]['setIsAd'](!0x0),this[dk(0x262)][dk(0x1a6)]=this,this[dk(0x262)]['on']('*',M['bind'](this)));}},{'key':de(0x23c),'value':function(){var dl=de;this[dl(0x262)]&&(this[dl(0x262)]['off']('*',M),this[dl(0x262)][dl(0xe1)]());}},{'key':de(0xe1),'value':function(){var dm=de;this[dm(0xfb)](),this[dm(0x23c)](),this[dm(0x1ea)](),this[dm(0xea)]=null,this['tag']=null;}},{'key':de(0x1b9),'value':function(){}},{'key':de(0x1ea),'value':function(){}},{'key':de(0x273),'value':function(){var dn=de;return this[dn(0x1a6)]?this[dn(0x1a6)][dn(0x273)]():this[dn(0xee)][dn(0x273)]();}},{'key':de(0x165),'value':function(){var dp=de;return this[dp(0x1a6)]?this[dp(0x1a6)][dp(0x165)]():this[dp(0xee)][dp(0x165)]();}},{'key':de(0xb1),'value':function(){return null;}},{'key':de(0x274),'value':function(){return null;}},{'key':de(0x1d4),'value':function(){return null;}},{'key':de(0x1f3),'value':function(){return null;}},{'key':de(0x10f),'value':function(){var dq=de;if(this[dq(0x18c)]&&this['tag'][dq(0x1f1)]){var R;if(this[dq(0x1a0)]){var S=(R=this['tag'][dq(0x1f1)])-this[dq(0x1a0)],T=this[dq(0x1bc)]()/0x3e8;R=Math['round'](S/T*0x8);}return this[dq(0x1a0)]=this[dq(0x18c)][dq(0x1f1)],R||null;}}},{'key':de(0x103),'value':function(){return null;}},{'key':de(0x243),'value':function(){return null;}},{'key':de(0xf5),'value':function(R){var dr=de,S,T=this[dr(0x243)]();return this[dr(0x208)]()?(S=this['_lastAdRendition'],R&&(this[dr(0x1ae)]=T)):(S=this[dr(0xf6)],R&&(this['_lastRendition']=T)),T&&S?T>S?'up':T<S?'down':null:null;}},{'key':de(0xd0),'value':function(){var ds=de;return this[ds(0x18c)]?this[ds(0x18c)][ds(0xdd)]:null;}},{'key':de(0xed),'value':function(){var dt=de;return this[dt(0x18c)]?this['tag'][dt(0x202)]:null;}},{'key':de(0xfe),'value':function(){return this['tag']?this['tag']['duration']:null;}},{'key':de(0xaf),'value':function(){var du=de;return this[du(0x18c)]?this[du(0x18c)]['currentTime']:null;}},{'key':de(0x26f),'value':function(){return null;}},{'key':'getSrc','value':function(){var dv=de;return this[dv(0x18c)]?this['tag'][dv(0x1d5)]:null;}},{'key':'getPlayrate','value':function(){var dw=de;return this['tag']?this[dw(0x18c)][dw(0x204)]:null;}},{'key':'isMuted','value':function(){var dx=de;return this['tag']?this[dx(0x18c)][dx(0x145)]:null;}},{'key':de(0x11d),'value':function(){return null;}},{'key':'getCdn','value':function(){return null;}},{'key':'getPlayerName','value':function(){var dy=de;return this[dy(0x275)]();}},{'key':de(0x14c),'value':function(){var dz=de;return B[dz(0x128)][dz(0x1ac)];}},{'key':'getFps','value':function(){return null;}},{'key':'isAutoplayed','value':function(){var dA=de;return this[dA(0x18c)]?this[dA(0x18c)][dA(0x11f)]:null;}},{'key':de(0x199),'value':function(){var dB=de;return this[dB(0x18c)]?this['tag']['preload']:null;}},{'key':de(0x17e),'value':function(){return null;}},{'key':de(0x17a),'value':function(){var dC=de;return this[dC(0x1a6)]?this[dC(0x1a6)]['state']['isStarted']?dC(0x130):dC(0x1ed):null;}},{'key':'getAdPartner','value':function(){return null;}},{'key':de(0xc6),'value':function(){return null;}},{'key':de(0x1af),'value':function(){return null;}},{'key':de(0x269),'value':function(){return null;}},{'key':de(0x207),'value':function(){return null;}},{'key':de(0x1a7),'value':function(R,S){var dD=de;if(void 0x0===(R=z[dD(0x128)][dD(0x223)]['getAttributes'][dD(0x126)](this,arguments))[dD(0x208)]&&(R['isAd']=this[dD(0x208)]()),R[dD(0x20f)]=this[dD(0x165)](),R[dD(0x1a4)]=this[dD(0x273)](),R[dD(0x1c8)]=this[dD(0xd8)](),R[dD(0x10d)]=this[dD(0x14c)](),R[dD(0x16a)]=this[dD(0x1af)](),R[dD(0x16f)]=this['getInstrumentationName'](),R[dD(0x1b7)]=this[dD(0x207)](),R[dD(0x187)]=this[dD(0x155)],R['src']=dD(0xbd),'customAction'===S)return R;try{R['pageUrl']=window['location'][dD(0x124)];}catch(U){}for(var T in(this[dD(0x208)]()?(R[dD(0x1b1)]=this[dD(0xb1)](),R[dD(0x13c)]=this[dD(0x274)](),R[dD(0xc9)]=this[dD(0x18b)](),R[dD(0x189)]=this[dD(0x183)](),R[dD(0x22f)]=this[dD(0x1f3)]()||this[dD(0x10f)]()||this[dD(0x243)](),R[dD(0x266)]=this[dD(0x103)](),R['adRenditionBitrate']=this[dD(0x243)](),R[dD(0x1e4)]=this['getRenditionHeight'](),R[dD(0x196)]=this['getRenditionWidth'](),R[dD(0x154)]=this[dD(0xfe)](),R[dD(0x139)]=this[dD(0xaf)](),R[dD(0x21a)]=this[dD(0x26f)](),R['adIsMuted']=this[dD(0x1c1)](),R['adFps']=this[dD(0x1eb)](),R[dD(0x26d)]=this[dD(0x17a)](),R[dD(0x1e8)]=this['getAdCreativeId'](),R[dD(0x140)]=this[dD(0xbc)]()):(R[dD(0x1a5)]=this[dD(0xb1)](),R[dD(0x25a)]=this[dD(0x274)](),R[dD(0x153)]=this[dD(0x18b)](),R[dD(0x239)]=this[dD(0x183)](),R[dD(0x258)]=this['getPlayhead'](),R[dD(0xb4)]=this['isLive'](),R[dD(0x1df)]=this[dD(0x1f3)]()||this['getWebkitBitrate']()||this[dD(0x243)](),R[dD(0xf8)]=this[dD(0x103)](),R['contentRenditionBitrate']=this[dD(0x243)](),R['contentRenditionHeight']=this[dD(0xd0)](),R['contentRenditionWidth']=this[dD(0xed)](),R[dD(0x1aa)]=this[dD(0xfe)](),R[dD(0x1f0)]=this['getLanguage'](),R[dD(0x133)]=this[dD(0x1c5)](),R[dD(0xe8)]=this[dD(0x11d)](),R[dD(0x24b)]=this[dD(0x1c1)](),R['contentIsAutoplayed']=this['isAutoplayed'](),R[dD(0x1e0)]=this[dD(0x199)](),R[dD(0x178)]=this[dD(0x1eb)](),null!=this[dD(0x262)]&&this[dD(0x262)][dD(0xee)][dD(0xe2)]>0x0&&(R[dD(0xe2)]=this['adsTracker'][dD(0xee)]['totalAdPlaytime'])),this[dD(0xee)][dD(0x214)](R),this[dD(0x171)]))R[T]=this[dD(0x171)][T];return R;}},{'key':de(0x146),'value':function(R,S,T){var dE=de;T=T||{},this[dE(0x225)](R,T),this['state'][dE(0x1bf)](S);}},{'key':de(0x1d3),'value':function(R){var dF=de;this[dF(0xee)]['goPlayerReady']()&&(R=R||{},this['sendVideoAction'](O[dF(0x24c)][dF(0x158)],R));}},{'key':'sendRequest','value':function(R){var dG=de,S;this[dG(0xee)]['goRequest']()&&(this[dG(0x208)]()?(S=O[dG(0x24c)][dG(0x1ef)],this[dG(0x180)](S,R)):(S=O[dG(0x24c)][dG(0x229)],this['sendVideoAction'](S,R)));}},{'key':de(0xc5),'value':function(R){var dH=de,S;this[dH(0xee)][dH(0x1d6)]()&&(this['isAd']()?(S=O[dH(0x24c)][dH(0x1f9)],this[dH(0x1a6)]&&(this['parentTracker'][dH(0xee)][dH(0xf2)]=!0x1),this[dH(0x180)](S,R)):(S=O[dH(0x24c)][dH(0x21e)],this[dH(0x112)](S,R)),this[dH(0x13a)](),this[dH(0xee)]['goHeartbeat']());}},{'key':'sendEnd','value':function(R){var dI=de,S;this['state']['goEnd']()&&(R=R||{},this[dI(0x208)]()?(S=O['Events'][dI(0x1f6)],R[dI(0x136)]=this['state'][dI(0x123)][dI(0x22a)](),R['timeSinceAdStarted']=this[dI(0xee)]['timeSinceStarted'][dI(0x22a)](),this[dI(0x1a6)]&&(this[dI(0x1a6)][dI(0xee)]['isPlaying']=!0x0)):(S=O[dI(0x24c)]['CONTENT_END'],R['timeSinceRequested']=this[dI(0xee)][dI(0x123)][dI(0x22a)](),R[dI(0x101)]=this['state'][dI(0x101)][dI(0x22a)]()),this[dI(0xfb)](),this['isAd']()?this[dI(0x180)](S,R):this[dI(0x112)](S,R),this[dI(0x1a6)]&&this[dI(0x208)]()&&this[dI(0x1a6)][dI(0xee)][dI(0xd5)](),this['state']['goViewCountUp'](),this[dI(0xee)]['totalPlaytime']=0x0);}},{'key':de(0xbe),'value':function(R){var dJ=de;if(this[dJ(0xee)][dJ(0x11e)]()){var S=this[dJ(0x208)]()?O[dJ(0x24c)][dJ(0x176)]:O[dJ(0x24c)][dJ(0x13b)];this[dJ(0x208)]()?this[dJ(0x180)](S,R):this['sendVideoAction'](S,R);}}},{'key':de(0x233),'value':function(R){var dK=de,S;this[dK(0xee)][dK(0x119)]()&&(R=R||{},this[dK(0x208)]()?(S=O[dK(0x24c)][dK(0xb0)],R['timeSinceAdPaused']=this[dK(0xee)][dK(0x161)][dK(0x22a)]()):(S=O[dK(0x24c)][dK(0x1ec)],R[dK(0x161)]=this[dK(0xee)][dK(0x161)][dK(0x22a)]()),this['isAd']()?this[dK(0x180)](S,R):this[dK(0x112)](S,R));}},{'key':de(0x24a),'value':function(R){var dL=de,S;this[dL(0xee)][dL(0xf9)]()&&(R=R||{},S=this[dL(0x208)]()?O[dL(0x24c)][dL(0x19b)]:O[dL(0x24c)][dL(0x21b)],R=this['buildBufferAttributes'](R),this['_lastBufferType']=R[dL(0x18f)],this[dL(0x208)]()?this[dL(0x180)](S,R):this['sendVideoAction'](S,R));}},{'key':'sendBufferEnd','value':function(R){var dM=de,S;this['state'][dM(0x1e9)]()&&(R=R||{},this[dM(0x208)]()?(S=O[dM(0x24c)]['AD_BUFFER_END'],R[dM(0x181)]=this[dM(0xee)][dM(0xfc)][dM(0x22a)]()):(S=O[dM(0x24c)][dM(0x12b)],R[dM(0xfc)]=this[dM(0xee)][dM(0xfc)][dM(0x22a)]()),R=this[dM(0x26c)](R),null!=this['_lastBufferType']&&(R[dM(0x18f)]=this[dM(0x162)]),this[dM(0x208)]()?this[dM(0x180)](S,R):this[dM(0x112)](S,R),this[dM(0xee)][dM(0x1fc)]=!0x0);}},{'key':de(0x26c),'value':function(R){var dN=de;return null==R['timeSinceStarted']||R[dN(0x101)]<0x64?R[dN(0x118)]=!this[dN(0xee)][dN(0x1fc)]:R[dN(0x118)]=!0x1,R['bufferType']=this['state'][dN(0x211)](R[dN(0x118)]),R['timeSinceResumed']=this[dN(0xee)][dN(0x1e1)][dN(0x22a)](),R[dN(0x256)]=this[dN(0xee)][dN(0x256)][dN(0x22a)](),R;}},{'key':de(0x20a),'value':function(R){var dO=de,S;this[dO(0xee)][dO(0x1f8)]()&&(S=this[dO(0x208)]()?O[dO(0x24c)][dO(0x1a2)]:O[dO(0x24c)][dO(0x213)],this[dO(0x208)]()?this[dO(0x180)](S,R):this['sendVideoAction'](S,R));}},{'key':de(0xf3),'value':function(R){var dP=de,S;this[dP(0xee)][dP(0xd6)]()&&(R=R||{},this['isAd']()?(S=O[dP(0x24c)]['AD_SEEK_END'],R[dP(0x23a)]=this[dP(0xee)][dP(0x13f)][dP(0x22a)]()):(S=O[dP(0x24c)][dP(0x20c)],R[dP(0x13f)]=this[dP(0xee)]['timeSinceSeekBegin'][dP(0x22a)]()),this['isAd']()?this[dP(0x180)](S,R):this[dP(0x112)](S,R));}},{'key':de(0x138),'value':function(R){var dQ=de;(R=R||{})[dQ(0xee)]||x['default'][dQ(0x24f)]('Called\x20sendDownload\x20without\x20{\x20state:\x20xxxxx\x20}.'),this[dQ(0x112)](O[dQ(0x24c)]['DOWNLOAD'],R),this[dQ(0xee)][dQ(0x163)]();}},{'key':de(0x212),'value':function(R){var dR=de;(R=R||{})['isAd']=this[dR(0x208)](),this['state'][dR(0xce)]();var S=this[dR(0x208)]()?O['Events'][dR(0x1e3)]:O[dR(0x24c)][dR(0x261)];this[dR(0x12f)](S,R);}},{'key':de(0x194),'value':function(R){var dS=de,S;(R=R||{})[dS(0x156)]=this[dS(0xee)][dS(0x156)]['getDeltaTime'](),R['shift']=this[dS(0xf5)](!0x0),S=this['isAd']()?O[dS(0x24c)][dS(0x111)]:O[dS(0x24c)]['CONTENT_RENDITION_CHANGE'],this[dS(0x208)]()?this['sendVideoAdAction'](S,R):this['sendVideoAction'](S,R),this[dS(0xee)][dS(0xc0)]();}},{'key':de(0x1c7),'value':function(R){var dT=de;if(this[dT(0xee)][dT(0x113)]){var S,T=this[dT(0x1bc)]();this[dT(0xee)]['_hb']=!0x0,T=this[dT(0x220)](T),this[dT(0x208)]()?(S=O[dT(0x24c)][dT(0xcb)],dT(0x1bd)===this['getPlayerName']()?this[dT(0x180)](S,R):this[dT(0x180)](S,E({'elapsedTime':T},R))):(S=O[dT(0x24c)][dT(0x185)],this['sendVideoAction'](S,E({'elapsedTime':T},R))),this[dT(0xee)][dT(0xd7)]();}}},{'key':'adjustElapsedTimeForPause','value':function(R){var dU=de;return this['state'][dU(0xcc)]&&(R-=this[dU(0xee)][dU(0xcc)],this['state'][dU(0xcc)]=0x0),this['state'][dU(0x175)]&&((R-=this[dU(0xee)][dU(0x16b)][dU(0x22a)]())<0xa&&(R=0x0),this[dU(0xee)][dU(0x16b)][dU(0x252)]()),this['state'][dU(0xde)]?(R-=this[dU(0xee)][dU(0xde)],this[dU(0xee)][dU(0xde)]=0x0):this[dU(0xee)][dU(0x25f)]&&((R-=this['state']['bufferElapsedTime'][dU(0x22a)]())<0x5&&(R=0x0),this[dU(0xee)][dU(0xe0)][dU(0x252)]()),Math[dU(0x250)](0x0,R);}},{'key':de(0xc2),'value':function(R){var dV=de;this[dV(0x208)]()&&this['state'][dV(0xca)]()&&(this[dV(0xee)][dV(0xe2)]=0x0,this[dV(0x1a6)]&&(this[dV(0x1a6)]['state'][dV(0xf2)]=!0x1),this[dV(0x180)](O[dV(0x24c)]['AD_BREAK_START'],R));}},{'key':de(0x169),'value':function(R){var dW=de;this[dW(0x208)]()&&this[dW(0xee)][dW(0x14a)]()&&((R=R||{})[dW(0x15f)]=this[dW(0xee)]['timeSinceAdBreakStart'][dW(0x22a)](),this[dW(0x180)](O[dW(0x24c)][dW(0x1ad)],R),this[dW(0x1a6)]&&(this['parentTracker'][dW(0xee)][dW(0xf2)]=!0x0),this[dW(0xfb)](),this[dW(0x1a6)]&&this[dW(0x208)]()&&this['parentTracker'][dW(0xee)][dW(0xd5)]());}},{'key':de(0x22e),'value':function(R){var dX=de;this[dX(0x208)]()&&((R=R||{})[dX(0x236)]||x[dX(0x128)][dX(0x24f)](dX(0x254)),R['timeSinceLastAdQuartile']=this[dX(0xee)][dX(0x255)][dX(0x22a)](),this[dX(0x180)](O[dX(0x24c)][dX(0x1a1)],R),this[dX(0xee)][dX(0xff)]());}},{'key':'sendAdClick','value':function(R){var dY=de;this[dY(0x208)]()&&((R=R||{})[dY(0x186)]||x['default'][dY(0x24f)](dY(0x268)),this[dY(0x180)](O['Events'][dY(0x1b8)],R));}}],Q&&G(P[de(0x223)],Q),Object[de(0x109)](P,de(0x223),{'writable':!0x1}),P;var P,Q;}(z[cV(0x128)]);function M(N){var dZ=cV;N[dZ(0x219)]!==L['Events'][dZ(0x1e3)]?this[dZ(0x180)](N[dZ(0x219)],N[dZ(0x1b0)]):this[dZ(0x12f)](N['type'],N['data']);}L['Events']={'PLAYER_READY':cV(0x158),'DOWNLOAD':cV(0xf7),'ERROR':'ERROR','CONTENT_REQUEST':cV(0x229),'CONTENT_START':cV(0x21e),'CONTENT_END':cV(0xb2),'CONTENT_PAUSE':cV(0x13b),'CONTENT_RESUME':cV(0x1ec),'CONTENT_SEEK_START':cV(0x213),'CONTENT_SEEK_END':cV(0x20c),'CONTENT_BUFFER_START':cV(0x21b),'CONTENT_BUFFER_END':'CONTENT_BUFFER_END','CONTENT_HEARTBEAT':cV(0x185),'CONTENT_RENDITION_CHANGE':cV(0x1f5),'CONTENT_ERROR':'CONTENT_ERROR','AD_REQUEST':cV(0x1ef),'AD_START':cV(0x1f9),'AD_END':cV(0x1f6),'AD_PAUSE':cV(0x176),'AD_RESUME':cV(0xb0),'AD_SEEK_START':'AD_SEEK_START','AD_SEEK_END':cV(0x198),'AD_BUFFER_START':cV(0x19b),'AD_BUFFER_END':cV(0x173),'AD_HEARTBEAT':cV(0xcb),'AD_RENDITION_CHANGE':cV(0x111),'AD_ERROR':cV(0x1e3),'AD_BREAK_START':cV(0x21d),'AD_BREAK_END':cV(0x1ad),'AD_QUARTILE':cV(0x1a1),'AD_CLICK':cV(0x1b8)},k['default']=L;}},b={};function c(f){var e0=a0b,g=b[f];if(void 0x0!==g)return g[e0(0x1d1)];var h=b[f]={'exports':{}};return a[f](h,h[e0(0x1d1)],c),h[e0(0x1d1)];}var d={};return((()=>{var e1=a0b,g=d;g[e1(0x128)]=void 0x0;var j=D(c(0x92)),k=D(c(0x196)),m=D(c(0x18f)),p=D(c(0x33)),q=D(c(0x1c7)),w=D(c(0x90)),x=D(c(0x238)),z=D(c(0x12e)),A=D(c(0x319)),B=D(c(0x148)),C=c(0x14a);function D(F){var e2=e1;return F&&F[e2(0x205)]?F:{'default':F};}var E={'Constants':p[e1(0x128)],'Chrono':q[e1(0x128)],'Log':w[e1(0x128)],'Emitter':x['default'],'Tracker':z[e1(0x128)],'VideoTracker':A[e1(0x128)],'VideoTrackerState':B[e1(0x128)],'Core':m[e1(0x128)],'Backend':j[e1(0x128)],'NRInsightsBackend':k[e1(0x128)],'version':C['version']};g[e1(0x128)]=E;})()),d[e3(0x128)];})())));function a0a(){var e4=['clone','AD_SEEK_END','getPreload','getTime','AD_BUFFER_START','call','getTrackers','json','setAdsTracker','_lastWebkitBitrate','AD_QUARTILE','AD_SEEK_START','search','viewId','contentId','parentTracker','getAttributes','_harvestLocked','slice','contentDuration','Arguments','version','AD_BREAK_END','_lastAdRendition','getInstrumentationProvider','data','adId','play','function','Derived\x20constructors\x20may\x20only\x20return\x20object\x20or\x20undefined','newrelic.recordCustomEvent()\x20is\x20not\x20available.','175328uQhxeu','instrumentation.version','AD_CLICK','registerListeners','seek','Opera','getHeartbeat','bitmovin-ads','construct','setTimeSinceAttribute','/events','isMuted','Sent','done','getDate','getPlayrate','now','sendHeartbeat','playerName','timeSinceAdStarted','_createdAt','isStarted','canplay','_eventBuffer','undefined','true','entries','exports','goEnd','sendPlayerReady','isLive','currentSrc','goStart','TIMER','setPrototypeOf','trackerVersion','object','_hb','location','resume','defineProperties','contentBitrate','contentPreload','timeSinceResumed','return','AD_ERROR','adRenditionHeight','buffering','Invalid\x20attempt\x20to\x20destructure\x20non-iterable\x20instance.\x0aIn\x20order\x20to\x20be\x20iterable,\x20non-array\x20objects\x20must\x20have\x20a\x20[Symbol.iterator]()\x20method.','prefix','adCreativeId','goBufferEnd','unregisterListeners','getFps','CONTENT_RESUME','pre','ALL','AD_REQUEST','contentLanguage','webkitVideoDecodedByteCount','error','getBitrate','push','CONTENT_RENDITION_CHANGE','AD_END','X11','goSeekStart','AD_START','isAdBreak','loadedmetadata','initialBufferingHappened','post','log','getOwnPropertyDescriptor','debug','string','videoWidth','recordCustomEvent','playbackRate','__esModule','resetFlags','getInstrumentationVersion','isAd','stalled','sendSeekStart','getOwnPropertySymbols','CONTENT_SEEK_END','Cast','name','viewSession','forEach','calculateBufferType','sendError','CONTENT_SEEK_START','getStateAttributes','off','timeSinceAdPaused','isError','constructor','type','adLanguage','CONTENT_BUFFER_START','{\x22name\x22:\x22@newrelic/video-core\x22,\x22version\x22:\x223.1.1\x22,\x22description\x22:\x22New\x20Relic\x20video\x20tracking\x20core\x20library\x22,\x22main\x22:\x22./dist/cjs/index.js\x22,\x22module\x22:\x22./dist/esm/index.js\x22,\x22scripts\x22:{\x22build\x22:\x22webpack\x20--mode\x20production\x22,\x22build:dev\x22:\x22webpack\x20--mode\x20development\x22,\x22watch\x22:\x22webpack\x20--mode\x20production\x20--progress\x20--color\x20--watch\x22,\x22watch:dev\x22:\x22webpack\x20--progress\x20--color\x20--watch\x22,\x22clean\x22:\x22rm\x20-rf\x20dist\x20coverage\x20doc\x22,\x22test\x22:\x22nyc\x20--reporter=html\x20--reporter=text\x20mocha\x20--require\x20@babel/register\x22,\x22doc\x22:\x22jsdoc\x20-c\x20jsdoc.json\x20-d\x20documentation\x22,\x22deploy\x22:\x22node\x20scripts/deploy.js\x22,\x22third-party-updates\x22:\x22oss\x20third-party\x20manifest\x20--includeOptDeps\x20&&\x20oss\x20third-party\x20notices\x20--includeOptDeps\x20&&\x20git\x20add\x20THIRD_PARTY_NOTICES.md\x20third_party_manifest.json\x22},\x22repository\x22:{\x22type\x22:\x22git\x22,\x22url\x22:\x22https://github.com/newrelic/video-core-js\x22},\x22author\x22:\x22Jordi\x20Aguilar\x22,\x22contributors\x22:[\x22Andreu\x20Santarén\x20Llop\x22],\x22license\x22:\x22Apache-2.0\x22,\x22devDependencies\x22:{\x22@babel/core\x22:\x22^7.24.5\x22,\x22@babel/plugin-transform-modules-commonjs\x22:\x22^7.24.1\x22,\x22@newrelic/newrelic-oss-cli\x22:\x22^0.1.2\x22,\x22@babel/preset-env\x22:\x22^7.24.5\x22,\x22@babel/register\x22:\x22^7.24.6\x22,\x22aws-sdk\x22:\x22^2.920.0\x22,\x22babel-loader\x22:\x22^9.1.3\x22,\x22chai\x22:\x22^4.3.4\x22,\x22diff\x22:\x22^5.0.0\x22,\x22jsdom\x22:\x22^25.0.1\x22,\x22mocha\x22:\x22^10.4.0\x22,\x22nyc\x22:\x22^15.1.0\x22,\x22sinon\x22:\x22^2.4.1\x22,\x22webpack\x22:\x22^5.91.0\x22,\x22webpack-cli\x22:\x22^4.9.2\x22,\x22webpack-obfuscator\x22:\x22^3.5.1\x22},\x22files\x22:[\x22THIRD_PARTY_NOTICES.md\x22,\x22dist\x22,\x22CHANGELOG.md\x22,\x22LICENSE\x22,\x22README.md\x22,\x22!test\x22],\x22publishConfig\x22:{\x22access\x22:\x22public\x22}}','AD_BREAK_START','CONTENT_START','getBackend','adjustElapsedTimeForPause','isArray','videoError','prototype','pop','sendVideoCustomAction','append','then','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','CONTENT_REQUEST','getDeltaTime','numberOfAds','Edge','52692iwsone','sendAdQuartile','adBitrate','debugCommonVideoEvents','deviceType','_accountId','sendResume','toPrimitive','iterator','quartile','timestamp','85538GiAdMn','contentCdn','timeSinceAdSeekBegin','Buffer\x20Type\x20=\x20','disposeAdsTracker','Super\x20expression\x20must\x20either\x20be\x20null\x20or\x20a\x20function','329196VLlxMe','get','Push\x20events\x20to\x20Insights\x20=\x20','valueOf','hasOwnProperty','getRenditionBitrate','getMinutes','stopTime','this\x20hasn\x27t\x20been\x20initialised\x20-\x20super()\x20hasn\x27t\x20been\x20called','coreVersion','harvestHandler','nrvideo','sendBufferStart','contentIsMuted','Events','timeSinceAdBreakStart','70hvqdyH','warn','max','value','start','timeSinceLastHeartbeat','Called\x20sendAdQuartile\x20without\x20{\x20quartile:\x20xxxxx\x20}.','timeSinceLastAdQuartile','timeSinceSeekEnd','pathname','contentPlayhead','trackerName','contentTitle','key','random','setOptions','115sZmjxT','isBuffering','from','CONTENT_ERROR','adsTracker','__proto__','totalPlaytime','_attributes','adRenditionName','seeked','Called\x20sendAdClick\x20without\x20{\x20url:\x20xxxxx\x20}.','getInstrumentationName','currentUrl','_apiKey','buildBufferAttributes','adPosition','Error:','getLanguage','toString','@@iterator','DEBUG','getViewId','getTitle','getTrackerName','getPlayhead','AD_RESUME','getVideoId','CONTENT_END','In\x20order\x20to\x20use\x20NewRelic\x20Video\x20you\x20will\x20need\x20New\x20Relic\x20Browser\x20Agent.','contentIsLive','VideoAdAction','splice','setUserId','darkorange','emit','isBackgroundEvent','10984VnRsbH','getAdPartner','Browser','sendPause','writable','goRenditionChange','symbol','sendAdBreakStart','778077FBjxTE','_trackerReadyChrono','sendStart','getAdCreativeId','setAttribute','Android','adSrc','goAdBreakStart','AD_HEARTBEAT','_acc','Chrome','goError','concat','getRenditionHeight','138XIGWgs','numberOfErrors','send','enumerable','goLastAd','goSeekEnd','goHeartbeat','getPlayerName','length','pushEventToInsights','referrer','setAttributes','videoHeight','_bufferAcc','bind','bufferElapsedTime','dispose','totalAdPlaytime','connection','_eventType','https://insights-collector.newrelic.com/v1/accounts/','_viewSession','Levels','contentIsFullscreen','cast','player','waiting','indexOf','getRenditionWidth','state','Object','pageUrl','customTimeSinceAttributes','isPlaying','sendSeekEnd','ACTION_AD_TABLE','getRenditionShift','_lastRendition','DOWNLOAD','contentRenditionName','goBufferStart','MSIE','stopHeartbeat','timeSinceBufferBegin','iOS','getDuration','goAdQuartile','offset','timeSinceStarted','_viewCount','getRenditionName','isPlayerReady','Win','_heartbeatInterval','Tried\x20to\x20load\x20a\x20non-tracker.','getTrackerVersion','defineProperty','eventType','ERROR','application/json','playerVersion','getSeconds','getWebkitBitrate','goPlayerReady','AD_RENDITION_CHANGE','sendVideoAction','isRequested','trackerInit','Firefox','level','Unknown','isInitialBuffering','goResume','assign','exec','generateAttributes','isFullscreen','goPause','autoplay','substring','timeSinceLastAdHeartbeat','Cannot\x20call\x20a\x20class\x20as\x20a\x20function','timeSinceRequested','href','Linux','apply','\x20is\x20ready.','default','_isAd','Desktop','CONTENT_BUFFER_END','test','removeTracker','timeSinceLastAd','sendVideoErrorAction','mid','amd','numberOfVideos','contentPlayrate','timeSinceLastDownload','shift','timeSinceAdRequested','keys','sendDownload','adPlayhead','startHeartbeat','CONTENT_PAUSE','adTitle','WARNING','getPrototypeOf','timeSinceSeekBegin','adPartner','Set','ended','userAgent','referrerUrl','muted','sendCustom','Mac','Event:\x20','configurable','goAdBreakEnd','startTime','getPlayerVersion','filter','ACTION_TABLE','HEARTBEAT','darkred','heartbeat','UNIX','contentSrc','adDuration','_userId','timeSinceLastRenditionChange','performance','PLAYER_READY','getElementById','setPlayer','includeTime','stop','setIsAd','base-tracker','timeSinceAdBreakBegin','colorful','timeSincePaused','_lastBufferType','goDownload','timeSinceTrackerReady','getViewSession','getOwnPropertyDescriptors','reset','match','sendAdBreakEnd','instrumentation.provider','elapsedTime','SILENT','322721yBjwsz','Source','instrumentation.name','_listeners','customData','documentMode','AD_BUFFER_END','pause','isPaused','AD_PAUSE','setBackend','contentFps','loadstart','getAdPosition','notice','playtimeSinceLastEvent','playing','getAdQuartile','_actionAdTable','sendVideoAdAction','timeSinceAdBufferBegin','customAction','getCdn','removeTimeSinceAttribute','CONTENT_HEARTBEAT','url','enduser.id','_actionTable','adCdn','_lastTimestamp','getSrc','tag','resetChronos','FETCH','bufferType','hidden','isSeeking','VideoErrorAction','Tablet','sendRenditionChanged','color:\x20','adRenditionWidth'];a0a=function(){return e4;};return a0a();}
|
|
1
|
+
/*! For license information please see nrvideo.min.js.LICENSE.txt */
|
|
2
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.nrvideo=t():e.nrvideo=t()}(self,(()=>(()=>{"use strict";var e={51:(e,t)=>{function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function n(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,o(n.key),n)}}function r(e,t,i){return t&&n(e.prototype,t),i&&n(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e}function o(e){var t=function(e){if("object"!=i(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==i(t)?t:t+""}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}));a.AdPositions={PRE:"pre",MID:"mid",POST:"post"},a.INTERVAL=1e4,a.MAX_EVENTS_PER_BATCH=1e3,a.MAX_PAYLOAD_SIZE=1,a.MAX_BEACON_SIZE=.0625,a.MAX_EVENT_SIZE=.0625,a.VALID_EVENT_TYPES=["VideoAction","VideoAdAction","VideoErrorAction","VideoCustomAction"],a.COLLECTOR={US:"bam-cell.nr-data.net",EU:"bam.eu01.nr-data.net",Stage:"staging-bam-cell.nr-data.net",GOV:"gov-bam.nr-data.net"},t.default=a},144:(e,t)=>{function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function n(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,r(n.key),n)}}function r(e){var t=function(e){if("object"!=i(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==i(t)?t:t+""}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return t=e,i=[{key:"error",value:function(){for(var t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];a(i,e.Levels.ERROR,"darkred")}},{key:"warn",value:function(){for(var t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];a(i,e.Levels.WARNING,"darkorange")}},{key:"notice",value:function(){for(var t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];a([].slice.call(arguments),e.Levels.NOTICE,"darkcyan")}},{key:"debug",value:function(){for(var t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];a(i,e.Levels.DEBUG,"indigo")}},{key:"debugCommonVideoEvents",value:function(t,i,n){try{if(e.level<=e.Levels.DEBUG){n=n||function(t){e.debug("Event: "+t.type)};var r=["canplay","buffering","waiting","ended","play","playing","pause","resume","error","abort","seek","seeking","seeked","stalled","dispose","loadeddata","loadstart","loadedmetadata"];i&&(null===i[0]?(i.shift(),r=i):r=r.concat(i));for(var o=0;o<r.length;o++)"function"==typeof t?t.call(window,r[o],n):t.on?t.on(r[o],n):t.addEventListener?t.addEventListener(r[o],n):t.addEventHandler?t.addEventHandler(r[o],n):e.warn("debugCommonVideoEvents: No common listener function found for ",t)}}catch(t){e.warn(t)}}}],null&&n(t.prototype,null),i&&n(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,i}();function a(e,t,i){t=t||o.Levels.NOTICE,i=i||"darkcyan";var n,r,a=o.prefix;o.includeTime&&(a+="["+("0"+(n=new Date).getDate()).slice(-2)+":"+("0"+n.getMinutes()).slice(-2)+":"+("0"+n.getSeconds()).slice(-2)+"."+("00"+n.getMilliseconds()).slice(-3)+"] "),a+=function(e){return u[e]}(t)+":",o.level<=t&&t!==o.Levels.SILENT&&(!o.colorful||"undefined"!=typeof document&&document.documentMode?s(e,a):(r=t===o.Levels.ERROR&&console.error?console.error:t===o.Levels.WARNING&&console.warn?console.warn:t===o.Levels.DEBUG&&console.debug&&null==window.cast?console.debug:console.log,a="%c"+a,e.splice(0,0,a,"color: "+i),r.apply(console,e)))}function s(e,t){if(e instanceof Array)for(var i in e)s(e[i],t);else"string"==typeof e?console.log(t+" "+e):(console.log(t+"↵"),console.log(e))}o.Levels={SILENT:5,ERROR:4,WARNING:3,NOTICE:2,DEBUG:1,ALL:0},o.level=o.Levels.ERROR,o.colorful=!0,o.includeTime=!0,o.prefix="[nrvideo]";var u={4:"e",3:"w",2:"n",1:"d"};!function(){if("undefined"!=typeof window&&window.location&&window.location.search){var e=/\?.*&*nrvideo-debug=(.+)/i.exec(window.location.search);null!==e&&("true"===e[1]?o.level=o.Levels.ALL:o.level=e[1]),null!==/\?.*&*nrvideo-colors=false/i.exec(window.location.search)&&(o.colorful=!1)}}(),t.default=o},302:(e,t,i)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(i(330)),o=u(i(568)),a=u(i(455)),s=u(i(51));function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,l(n.key),n)}}function l(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function f(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(f=function(){return!!e})()}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function h(e,t){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}var y=function(e){function t(e){var i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(i=function(e,t,i){return t=d(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,f()?Reflect.construct(t,i||[],d(e).constructor):t.apply(e,i))}(this,t)).customData={},i.heartbeat=null,i.parentTracker=null,i._trackerReadyChrono=new a.default,i._trackerReadyChrono.start(),i._actionTable=s.default.ACTION_TABLE,i._actionAdTable=s.default.ACTION_AD_TABLE,e=e||{},i.setOptions(e),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(t,e),i=t,(o=[{key:"setOptions",value:function(e){e&&(e.parentTracker&&(this.parentTracker=e.parentTracker),e.customData&&(this.customData=e.customData),e.heartbeat&&(this.heartbeat=e.heartbeat))}},{key:"dispose",value:function(){this.unregisterListeners()}},{key:"registerListeners",value:function(){}},{key:"unregisterListeners",value:function(){}},{key:"getHeartbeat",value:function(){return this.state._isAd?2e3:this.heartbeat?this.heartbeat:this.parentTracker&&this.parentTracker.heartbeat?this.parentTracker.heartbeat:3e4}},{key:"startHeartbeat",value:function(){this._heartbeatInterval=setInterval(this.sendHeartbeat.bind(this),Math.max(this.getHeartbeat(),2e3))}},{key:"stopHeartbeat",value:function(){this._heartbeatInterval&&clearInterval(this._heartbeatInterval)}},{key:"sendHeartbeat",value:function(e){this.sendVideoAction(t.Events.HEARTBEAT,e)}},{key:"getAttributes",value:function(e,t){for(var i in(e=e||{}).trackerName=this.getTrackerName(),e.trackerVersion=this.getTrackerVersion(),e.coreVersion=r.default.version,e.timeSinceTrackerReady=this._trackerReadyChrono.getDeltaTime(),this.customData)e[i]=this.customData[i];return null!=document.hidden&&(e.isBackgroundEvent=document.hidden),e}},{key:"getTrackerVersion",value:function(){return r.default.version}},{key:"getTrackerName",value:function(){return"base-tracker"}},{key:"sendVideoAction",value:function(e,t){this.emit("VideoAction",e,this.getAttributes(t))}},{key:"sendVideoAdAction",value:function(e,t){this.emit("VideoAdAction",e,this.getAttributes(t))}},{key:"sendVideoErrorAction",value:function(e,t){var i=this.isAd()?"adError":"videoError";this.emit("VideoErrorAction",e,this.getAttributes(t,i))}},{key:"sendVideoCustomAction",value:function(e,t){this.emit("VideoCustomAction",e,this.getAttributes(t,"customAction"))}}])&&c(i.prototype,o),Object.defineProperty(i,"prototype",{writable:!1}),i;var i,o}(o.default);y.Events={HEARTBEAT:"HEARTBEAT"},t.default=y},324:(e,t,i)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.NRVideoHarvester=void 0;var r=s(i(51)),o=s(i(330)),a=i(347);function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=Array(t);i<t;i++)n[i]=e[i];return n}function c(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,l(n.key),n)}}function l(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function f(e,t,i){d(e,t),t.set(e,i)}function d(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function h(e,t){return e.get(p(e,t))}function y(e,t,i){return e.set(p(e,t),i),i}function p(e,t,i){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:i;throw new TypeError("Private element is not present on this object")}var v=r.default.INTERVAL,m=r.default.MAX_EVENTS_PER_BATCH,g=r.default.MAX_PAYLOAD_SIZE,b=r.default.MAX_BEACON_SIZE,A=new WeakMap,E=new WeakMap,S=new WeakMap,T=new WeakSet;function k(){try{if(!window.NRVIDEO||!window.NRVIDEO.info)throw new Error("NRVIDEO info is not available.");var e=window.NRVIDEO.info,t=e.beacon,i=e.licenseKey,n=e.applicationID;if(e.sa,!t||!i||!n)throw new Error("Options object provided by New Relic is not correctly initialized");return"https://".concat(t,"/ins/1/").concat(i,"?a=").concat(n,"&v=").concat(o.default.version,"&ref=").concat(window.location.href,"&ca=VA")}catch(e){return console.error(e.message),null}}t.NRVideoHarvester=function(){return e=function e(t){var i,n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),d(this,i=T),i.add(this),f(this,A,!1),f(this,E,void 0),f(this,S,null),y(E,this,t),window.addEventListener("pagehide",(function(){return n.triggerHarvest({isFinalHarvest:!0})}))},t=[{key:"startTimer",value:function(){var e=this;if(!h(A,this)){y(A,this,!0);var t=function(){e.triggerHarvest({}),h(A,e)&&y(S,e,setTimeout(t,v))};y(S,this,setTimeout(t,v))}}},{key:"stopTimer",value:function(){y(A,this,!1),h(S,this)&&(clearTimeout(h(S,this)),y(S,this,null))}},{key:"triggerHarvest",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!h(E,this).isEmpty())try{var i=h(E,this).drain(),n=t.isFinalHarvest?b:g,r=this.chunkEvents(i,n);r.forEach((function(i,n){var o=n===r.length-1;e.sendChunk(i,t,o)}))}catch(e){console.error("Error during harvest:",e)}}},{key:"chunkEvents",value:function(e,t){var i,n=[],r=[],o=function(e,t){var i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=function(e,t){if(e){if("string"==typeof e)return u(e,t);var i={}.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?u(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){i&&(e=i);var n=0,r=function(){};return{s:r,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==i.return||i.return()}finally{if(s)throw o}}}}(e);try{for(o.s();!(i=o.n()).done;){var s=i.value;if(r.length>=m&&(n.push(r),r=[]),r.push(s),(0,a.getPayloadSize)({ins:r})>t){var c=r.pop();r.length>0&&n.push(r),r=[c]}}}catch(e){o.e(e)}finally{o.f()}return r.length>0&&n.push(r),n}},{key:"sendChunk",value:function(e,t,i){var n=this,r=p(T,this,k).call(this);if(r){var o={body:{ins:e}};(0,a.callApi)({url:r,payload:o,options:t},(function(t){t.retry&&(t.chunk=e),h(E,n).postHarvestCleanup(t)}))}else h(E,this).postHarvestCleanup({retry:!1,status:0})}}],t&&c(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}()},328:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(i(455)),r=o(i(144));function o(e){return e&&e.__esModule?e:{default:e}}function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var n,r,o,a,s=[],u=!0,c=!1;try{if(o=(i=i.call(e)).next,0===t){if(Object(i)!==i)return;u=!1}else for(;!(u=(n=o.call(i)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(e){c=!0,r=e}finally{try{if(!u&&null!=i.return&&(a=i.return(),Object(a)!==a))return}finally{if(c)throw r}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var i={}.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?u(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=Array(t);i<t;i++)n[i]=e[i];return n}function c(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,l(n.key),n)}}function l(e){var t=function(e){if("object"!=a(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!=a(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==a(t)?t:t+""}var f=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.reset(),this._createdAt=Date.now(),this._hb=!0,this._acc=0,this._bufferAcc=0},(t=[{key:"reset",value:function(){this._viewSession=null,this._viewCount=0,this._isAd=!1,this.numberOfErrors=0,this.numberOfAds=0,this.numberOfVideos=0,this.totalPlaytime=0,this.totalAdPlaytime=0,this.isAdBreak=!1,this.initialBufferingHappened=!1,this.resetFlags(),this.resetChronos()}},{key:"resetFlags",value:function(){this.isPlayerReady=!1,this.isRequested=!1,this.isStarted=!1,this.isPaused=!1,this.isSeeking=!1,this.isBuffering=!1,this.isPlaying=!1}},{key:"resetChronos",value:function(){this.timeSinceRequested=new n.default,this.timeSinceStarted=new n.default,this.timeSincePaused=new n.default,this.timeSinceSeekBegin=new n.default,this.timeSinceBufferBegin=new n.default,this.timeSinceAdBreakStart=new n.default,this.timeSinceLastDownload=new n.default,this.timeSinceLastHeartbeat=new n.default,this.timeSinceLastRenditionChange=new n.default,this.timeSinceLastAdQuartile=new n.default,this.timeSinceLastAd=new n.default,this.timeSinceResumed=new n.default,this.timeSinceSeekEnd=new n.default,this.playtimeSinceLastEvent=new n.default,this.customTimeSinceAttributes={},this.elapsedTime=new n.default,this.bufferElapsedTime=new n.default}},{key:"isAd",value:function(){return this._isAd}},{key:"setIsAd",value:function(e){this._isAd=e}},{key:"setTimeSinceAttribute",value:function(e){this.customTimeSinceAttributes[e]=new n.default,this.customTimeSinceAttributes[e].start()}},{key:"removeTimeSinceAttribute",value:function(e){delete this.customTimeSinceAttributes[e]}},{key:"getViewSession",value:function(){if(!this._viewSession){var e=(new Date).getTime(),t=Math.random().toString(36).substring(2)+Math.random().toString(36).substring(2);this._viewSession=e+"-"+t}return this._viewSession}},{key:"getViewId",value:function(){return this.getViewSession()+"-"+this._viewCount}},{key:"getStateAttributes",value:function(e){e=e||{},this.isAd()?(this.isRequested&&(e.timeSinceAdRequested=this.timeSinceRequested.getDeltaTime(),e.timeSinceLastAdHeartbeat=this.timeSinceLastHeartbeat.getDeltaTime()),this.isStarted&&(e.timeSinceAdStarted=this.timeSinceStarted.getDeltaTime()),this.isPaused&&(e.timeSinceAdPaused=this.timeSincePaused.getDeltaTime()),this.isBuffering&&(e.timeSinceAdBufferBegin=this.timeSinceBufferBegin.getDeltaTime()),this.isSeeking&&(e.timeSinceAdSeekBegin=this.timeSinceSeekBegin.getDeltaTime()),this.isAdBreak&&(e.timeSinceAdBreakBegin=this.timeSinceAdBreakStart.getDeltaTime()),e.numberOfAds=this.numberOfAds):(this.isRequested&&(e.timeSinceRequested=this.timeSinceRequested.getDeltaTime(),e.timeSinceLastHeartbeat=this.timeSinceLastHeartbeat.getDeltaTime()),this.isStarted&&(e.timeSinceStarted=this.timeSinceStarted.getDeltaTime()),this.isPaused&&(e.timeSincePaused=this.timeSincePaused.getDeltaTime()),this.isBuffering&&(e.timeSinceBufferBegin=this.timeSinceBufferBegin.getDeltaTime()),this.isSeeking&&(e.timeSinceSeekBegin=this.timeSinceSeekBegin.getDeltaTime()),e.timeSinceLastAd=this.timeSinceLastAd.getDeltaTime(),e.numberOfVideos=this.numberOfVideos),e.numberOfErrors=this.numberOfErrors,this.isAd()||(this.playtimeSinceLastEvent.startTime>0?e.playtimeSinceLastEvent=this.playtimeSinceLastEvent.getDeltaTime():e.playtimeSinceLastEvent=0,this.isPlaying?this.playtimeSinceLastEvent.start():this.playtimeSinceLastEvent.reset(),this.totalPlaytime+=e.playtimeSinceLastEvent,e.totalPlaytime=this.totalPlaytime);for(var t=0,i=Object.entries(this.customTimeSinceAttributes);t<i.length;t++){var n=s(i[t],2),r=n[0],o=n[1];e[r]=o.getDeltaTime()}return e}},{key:"calculateBufferType",value:function(e){var t;return t=e?"initial":this.isSeeking?"seek":this.isPaused?"pause":"connection",r.default.debug("Buffer Type = "+t),t}},{key:"goViewCountUp",value:function(){this._viewCount++}},{key:"goPlayerReady",value:function(){return!this.isPlayerReady&&(this.isPlayerReady=!0,!0)}},{key:"goRequest",value:function(){return!this.isRequested&&(this.isRequested=!0,this.timeSinceLastAd.reset(),this.timeSinceRequested.start(),!0)}},{key:"goStart",value:function(){return!(!this.isRequested||this.isStarted||(this.isAd()?this.numberOfAds++:this.numberOfVideos++,this.isStarted=!0,this.isPlaying=!0,this.timeSinceStarted.start(),this.playtimeSinceLastEvent.start(),0))}},{key:"goEnd",value:function(){return!!this.isRequested&&(this.numberOfErrors=0,this.resetFlags(),this.timeSinceRequested.stop(),this.timeSinceStarted.stop(),this.playtimeSinceLastEvent.stop(),!0)}},{key:"goPause",value:function(){return!(!this.isStarted||this.isPaused||(this.isPaused=!0,this.isPlaying=!1,this.timeSincePaused.start(),this.playtimeSinceLastEvent.stop(),this.timeSinceResumed.reset(),this.isBuffering&&(this._bufferAcc+=this.bufferElapsedTime.getDeltaTime()),this.elapsedTime.start(),0))}},{key:"goResume",value:function(){return!(!this.isStarted||!this.isPaused||(this.isPaused=!1,this.isPlaying=!0,this.timeSincePaused.stop(),this.timeSinceResumed.start(),this._hb?(this._acc=this.elapsedTime.getDeltaTime(),this._hb=!1):(this.isBuffering&&this.bufferElapsedTime.start(),this._acc+=this.elapsedTime.getDeltaTime()),0))}},{key:"goBufferStart",value:function(){return!(!this.isRequested||this.isBuffering||(this.isBuffering=!0,this.isPlaying=!1,this.timeSinceBufferBegin.start(),this.bufferElapsedTime.start(),0))}},{key:"goBufferEnd",value:function(){return!(!this.isRequested||!this.isBuffering||(this.isBuffering=!1,this.isPlaying=!0,this.timeSinceBufferBegin.stop(),this._hb?(this._bufferAcc=this.bufferElapsedTime.getDeltaTime(),this._hb=!1):this._bufferAcc+=this.bufferElapsedTime.getDeltaTime(),0))}},{key:"goSeekStart",value:function(){return!(!this.isStarted||this.isSeeking||(this.isSeeking=!0,this.isPlaying=!1,this.timeSinceSeekBegin.start(),this.timeSinceSeekEnd.reset(),0))}},{key:"goSeekEnd",value:function(){return!(!this.isStarted||!this.isSeeking||(this.isSeeking=!1,this.isPlaying=!0,this.timeSinceSeekBegin.stop(),this.timeSinceSeekEnd.start(),0))}},{key:"goAdBreakStart",value:function(){return!this.isAdBreak&&(this.isAdBreak=!0,this.timeSinceAdBreakStart.start(),!0)}},{key:"goAdBreakEnd",value:function(){return!!this.isAdBreak&&(this.isRequested=!1,this.isAdBreak=!1,this.totalAdPlaytime=this.timeSinceAdBreakStart.getDeltaTime(),this.timeSinceAdBreakStart.stop(),!0)}},{key:"goDownload",value:function(){this.timeSinceLastDownload.start()}},{key:"goHeartbeat",value:function(){this.timeSinceLastHeartbeat.start()}},{key:"goRenditionChange",value:function(){this.timeSinceLastRenditionChange.start()}},{key:"goAdQuartile",value:function(){this.timeSinceLastAdQuartile.start()}},{key:"goError",value:function(){this.isError=!0,this.numberOfErrors++}},{key:"goLastAd",value:function(){this.timeSinceLastAd.start()}}])&&c(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();t.default=f},330:e=>{e.exports=JSON.parse('{"name":"@newrelic/video-core","version":"3.2.0-beta-1","description":"New Relic video tracking core library","main":"./dist/cjs/index.js","module":"./dist/esm/index.js","scripts":{"build":"webpack --mode production","build:dev":"webpack --mode development","watch":"webpack --mode production --progress --color --watch","watch:dev":"webpack --progress --color --watch","clean":"rm -rf dist coverage doc","test":"nyc --reporter=html --reporter=text mocha --require @babel/register","doc":"jsdoc -c jsdoc.json -d documentation","deploy":"node scripts/deploy.js","third-party-updates":"oss third-party manifest --includeOptDeps && oss third-party notices --includeOptDeps && git add THIRD_PARTY_NOTICES.md third_party_manifest.json"},"repository":{"type":"git","url":"https://github.com/newrelic/video-core-js"},"author":"Jordi Aguilar","contributors":["Andreu Santarén Llop"],"license":"Apache-2.0","devDependencies":{"@babel/core":"^7.24.5","@babel/plugin-transform-modules-commonjs":"^7.24.1","@babel/preset-env":"^7.24.5","@babel/register":"^7.24.6","@newrelic/newrelic-oss-cli":"^0.1.2","aws-sdk":"^2.920.0","babel-loader":"^9.1.3","chai":"^4.3.4","diff":"^5.0.0","jsdom":"^25.0.1","mocha":"^10.4.0","nyc":"^15.1.0","sinon":"^2.4.1","webpack":"^5.91.0","webpack-cli":"^4.9.2"},"files":["THIRD_PARTY_NOTICES.md","dist","src","CHANGELOG.md","LICENSE","README.md","!test"],"publishConfig":{"access":"public"}}')},347:(e,t)=>{function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.callApi=function(e,t){var i,n=e.url,r=e.payload,o=e.options,a=void 0===o?{}:o;if(!n||!r||!t)return console.error("callApi: Missing required parameters"),void(t&&t({retry:!1,status:0}));try{i=JSON.stringify(r.body)}catch(e){return console.error("callApi: Error serializing payload",e),void t({retry:!1,status:0})}if(a.isFinalHarvest&&navigator.sendBeacon)try{var s=navigator.sendBeacon(n,i);t({retry:!s,status:s?200:0})}catch(e){t({retry:!0,status:0})}else fetch(n,{method:"POST",body:i,headers:{"Content-Type":"application/json"},keepalive:a.isFinalHarvest}).then((function(e){var i=function(e){switch(e){case 408:case 429:case 500:return!0;case 401:case 403:case 404:return!1}return e>=502&&e<=504||e>=512&&e<=530}(e.status);t({retry:i,status:e.status,ok:e.ok})})).catch((function(){t({retry:!0,status:0})}))},t.getPayloadSize=function(e){if(!e||"object"!==i(e))return 0;try{var t=JSON.stringify(e);return(new TextEncoder).encode(t).length/1048576}catch(e){return console.error("getPayloadSize: Error calculating payload size",e),0}}},399:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,r=(n=i(144))&&n.__esModule?n:{default:n},o=i(449),a=i(418);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function u(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function c(e,t,i){return(t=f(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function l(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,f(n.key),n)}}function f(e){var t=function(e){if("object"!=s(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!=s(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==s(t)?t:t+""}var d=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return function(e,t,i){return i&&l(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e}(e,0,[{key:"addTracker",value:function(e,t){(0,a.setAuthConfig)(t.info),e.on&&e.emit?(h.push(e),e.on("*",y),"function"==typeof e.trackerInit&&e.trackerInit()):r.default.error("Tried to load a non-tracker.",e)}},{key:"removeTracker",value:function(e){e.off("*",y),e.dispose();var t=h.indexOf(e);-1!==t&&h.splice(t,1)}},{key:"getTrackers",value:function(){return h}},{key:"send",value:function(e,t,i){i.timeSinceLoad=window.performance.now()/1e3,(0,o.recordEvent)(e,function(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?u(Object(i),!0).forEach((function(t){c(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):u(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}({actionName:t},i))}},{key:"sendError",value:function(t){e.send("ERROR",t)}}])}(),h=[];function y(e){var t=function(e){var t={};for(var i in e)null!==e[i]&&void 0!==e[i]&&(t[i]=e[i]);return t}(e.data);r.default.level<=r.default.Levels.DEBUG?r.default.notice("Sent",e.type,t):r.default.notice("Sent",e.type),d.send(e.eventType,e.type,t)}t.default=d},418:(e,t,i)=>{var n;function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.setAuthConfig=function(e){try{if(!e||"object"!==r(e)||Array.isArray(e))throw new Error("setAuthConfig: info parameter must be a valid object");if(function(e){if(!e||"object"!==r(e))return!1;var t=e.licenseKey,i=e.appName,n=e.region,o=e.applicationID,a=e.beacon;return!(!t||"string"!=typeof t||0===t.trim().length)&&(o?!!(a&&"string"==typeof a&&a.trim().length>0):!!(i&&"string"==typeof i&&i.trim().length>0&&n&&"string"==typeof n&&n.trim().length>0))}(e)){var t=e.licenseKey,i=e.appName,n=e.region,a=e.beacon,s=e.sa,u=e.applicationID;window.NRVIDEO=window.NRVIDEO||{};var c=a;if(!c&&n){if(!o[n])throw new Error("setAuthConfig: Invalid region '".concat(n,"'. Valid regions: ").concat(Object.keys(o).join(", ")));c=o[n]}return window.NRVIDEO.info={beacon:c,licenseKey:t,applicationID:u||null,appName:i||null,sa:s||0},!0}var l=function(e){if(!e||"object"!==r(e))return"info parameter must be a valid object";var t=e.licenseKey,i=e.appName,n=e.region,o=e.applicationID,a=e.beacon;if(!t||"string"!=typeof t||0===t.trim().length)return"licenseKey is required and must be a non-empty string";if(o){if(!a||"string"!=typeof a||0===a.trim().length)return"beacon URL is required when using applicationID"}else{if(!i||"string"!=typeof i||0===i.trim().length)return"appName is required when not using applicationID";if(!n||"string"!=typeof n||0===n.trim().length)return"region is required when not using applicationID"}return"configuration validation failed"}(e);throw new Error("setAuthConfig: ".concat(l))}catch(e){return console.error("setAuthConfig:",e.message),!1}};var o=((n=i(51))&&n.__esModule?n:{default:n}).default.COLLECTOR},431:(e,t,i)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.NRVideoEventAggregator=void 0;var r,o=i(347),a=(r=i(51))&&r.__esModule?r:{default:r};function s(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var i={}.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?u(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=Array(t);i<t;i++)n[i]=e[i];return n}function c(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,l(n.key),n)}}function l(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function f(e,t,i){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,i)}function d(e,t,i){return e.set(y(e,t),i),i}function h(e,t){return e.get(y(e,t))}function y(e,t,i){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:i;throw new TypeError("Private element is not present on this object")}var p=a.default.MAX_EVENTS_PER_BATCH,v=a.default.MAX_PAYLOAD_SIZE,m=new WeakMap,g=new WeakMap;t.NRVideoEventAggregator=function(){return function(e,t){return t&&c(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),f(this,m,[]),f(this,g,[])}),[{key:"isEmpty",value:function(){return 0===h(m,this).length&&0===h(g,this).length}},{key:"drain",value:function(){var e=[].concat(s(h(g,this)),s(h(m,this)));return d(m,this,[]),d(g,this,[]),e}},{key:"add",value:function(e){h(m,this).push(e)}},{key:"postHarvestCleanup",value:function(e){var t,i;if(e.retry&&null!==(t=e.chunk)&&void 0!==t&&t.length){for(;h(g,this).length>0&&((0,o.getPayloadSize)(h(g,this))+(0,o.getPayloadSize)(e.chunk)>v||h(g,this).length+e.chunk.length>p);)h(g,this).shift();(i=h(g,this)).push.apply(i,s(e.chunk))}else d(g,this,[])}}])}()},449:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.recordEvent=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"!=typeof e||0===e.length||!f.includes(e))return console.warn("recordEvent: Invalid eventType provided:",e),!1;if(null!==t&&("object"!==l(t)||Array.isArray(t)))return console.warn("recordEvent: attributes must be a plain object"),!1;if(t=t||{},!window.NRVIDEO||!window.NRVIDEO.info)return console.error("recordEvent: NRVIDEO not properly initialized"),!1;try{var i=window.NRVIDEO.info.appName,n=u(u({},t),{},{eventType:e,appName:i,timestamp:Date.now()}),a=(0,o.getPayloadSize)(n);return a>d?(console.warn("recordEvent: Event size (".concat(a," bytes) exceeds maximum (").concat(d," bytes)")),!1):(r.customEventAggregator.add(n),!0)}catch(e){return console.error("recordEvent: Error recording event:",e),!1}};var n,r=i(487),o=i(347),a=(n=i(51))&&n.__esModule?n:{default:n};function s(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function u(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?s(Object(i),!0).forEach((function(t){c(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):s(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function c(e,t,i){return(t=function(e){var t=function(e){if("object"!=l(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!=l(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==l(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}var f=a.default.VALID_EVENT_TYPES,d=a.default.MAX_EVENT_SIZE},455:(e,t)=>{function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function n(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,r(n.key),n)}}function r(e){var t=function(e){if("object"!=i(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==i(t)?t:t+""}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.reset()}return t=e,(i=[{key:"reset",value:function(){this.startTime=0,this.stopTime=0,this.offset=0}},{key:"getDeltaTime",value:function(){return this.startTime?this.offset+((new Date).getTime()-this.startTime):null}},{key:"start",value:function(){this.startTime=(new Date).getTime(),this.stopTime=0}},{key:"stop",value:function(){return this.stopTime=(new Date).getTime(),this.getDeltaTime()}},{key:"clone",value:function(){var t=new e;return t.startTime=this.startTime,t.stopTime=this.stopTime,t.offset=this.offset,t}}])&&n(t.prototype,i),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,i}();t.default=o},487:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.customEventAggregator=void 0;var n=i(431),r=i(324),o=t.customEventAggregator=new n.NRVideoEventAggregator;new r.NRVideoHarvester(o).startTimer()},568:(e,t)=>{function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function n(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,r(n.key),n)}}function r(e){var t=function(e){if("object"!=i(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==i(t)?t:t+""}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},(t=[{key:"on",value:function(e,t){if(this._listeners=this._listeners||{},"function"==typeof t)return this._listeners[e]=this._listeners[e]||[],this._listeners[e].push(t),this}},{key:"off",value:function(e,t){if(this._listeners=this._listeners||{},this._listeners[e]){var i=this._listeners[e].indexOf(t);-1!==i&&this._listeners[e].splice(i,1)}return this}},{key:"emit",value:function(e,t,i){var n=this;return this._listeners=this._listeners||{},i=i||{},Array.isArray(this._listeners[t])&&this._listeners[t].forEach((function(r){r.call(n,{eventType:e,type:t,data:i,target:n})})),Array.isArray(this._listeners["*"])&&this._listeners["*"].forEach((function(r){r.call(n,{eventType:e,type:t,data:i,target:n})})),this}}])&&n(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();t.default=o},793:(e,t,i)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(i(144)),o=u(i(302)),a=u(i(328)),s=u(i(330));function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function l(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?c(Object(i),!0).forEach((function(t){f(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):c(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function f(e,t,i){return(t=h(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function d(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,h(n.key),n)}}function h(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function y(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(y=function(){return!!e})()}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function v(e,t){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},v(e,t)}var m=function(e){function t(e,i){var o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(o=function(e,t,i){return t=p(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,y()?Reflect.construct(t,i||[],p(e).constructor):t.apply(e,i))}(this,t)).state=new a.default,o.adsTracker=null,o._lastBufferType=null,o._userId=null,i=i||{},o.setOptions(i),e&&o.setPlayer(e,i.tag),r.default.notice("Tracker "+o.getTrackerName()+" v"+o.getTrackerVersion()+" is ready."),o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&v(e,t)}(t,e),i=t,u=[{key:"setUserId",value:function(e){this._userId=e}},{key:"setOptions",value:function(e){e&&(e.adsTracker&&this.setAdsTracker(e.adsTracker),"boolean"==typeof e.isAd&&this.setIsAd(e.isAd),o.default.prototype.setOptions.apply(this,arguments))}},{key:"setPlayer",value:function(e,t){(this.player||this.tag)&&this.dispose(),"undefined"!=typeof document&&document.getElementById&&("string"==typeof e&&(e=document.getElementById(e)),"string"==typeof t&&(t=document.getElementById(t))),t=t||e,this.player=e,this.tag=t,this.registerListeners()}},{key:"isAd",value:function(){return this.state.isAd()}},{key:"setIsAd",value:function(e){this.state.setIsAd(e)}},{key:"setAdsTracker",value:function(e){this.disposeAdsTracker(),e&&(this.adsTracker=e,this.adsTracker.setIsAd(!0),this.adsTracker.parentTracker=this,this.adsTracker.on("*",g.bind(this)))}},{key:"disposeAdsTracker",value:function(){this.adsTracker&&(this.adsTracker.off("*",g),this.adsTracker.dispose())}},{key:"dispose",value:function(){this.stopHeartbeat(),this.disposeAdsTracker(),this.unregisterListeners(),this.player=null,this.tag=null}},{key:"registerListeners",value:function(){}},{key:"unregisterListeners",value:function(){}},{key:"getViewId",value:function(){return this.parentTracker?this.parentTracker.getViewId():this.state.getViewId()}},{key:"getViewSession",value:function(){return this.parentTracker?this.parentTracker.getViewSession():this.state.getViewSession()}},{key:"getVideoId",value:function(){return null}},{key:"getTitle",value:function(){return null}},{key:"isLive",value:function(){return null}},{key:"getBitrate",value:function(){return null}},{key:"getWebkitBitrate",value:function(){if(this.tag&&this.tag.webkitVideoDecodedByteCount){var e;if(this._lastWebkitBitrate){var t=(e=this.tag.webkitVideoDecodedByteCount)-this._lastWebkitBitrate,i=this.getHeartbeat()/1e3;e=Math.round(t/i*8)}return this._lastWebkitBitrate=this.tag.webkitVideoDecodedByteCount,e||null}}},{key:"getRenditionName",value:function(){return null}},{key:"getRenditionBitrate",value:function(){return null}},{key:"getRenditionShift",value:function(e){var t,i=this.getRenditionBitrate();return this.isAd()?(t=this._lastAdRendition,e&&(this._lastAdRendition=i)):(t=this._lastRendition,e&&(this._lastRendition=i)),i&&t?i>t?"up":i<t?"down":null:null}},{key:"getRenditionHeight",value:function(){return this.tag?this.tag.videoHeight:null}},{key:"getRenditionWidth",value:function(){return this.tag?this.tag.videoWidth:null}},{key:"getDuration",value:function(){return this.tag?this.tag.duration:null}},{key:"getPlayhead",value:function(){return this.tag?this.tag.currentTime:null}},{key:"getLanguage",value:function(){return null}},{key:"getSrc",value:function(){return this.tag?this.tag.currentSrc:null}},{key:"getPlayrate",value:function(){return this.tag?this.tag.playbackRate:null}},{key:"isMuted",value:function(){return this.tag?this.tag.muted:null}},{key:"isFullscreen",value:function(){return null}},{key:"getCdn",value:function(){return null}},{key:"getPlayerName",value:function(){return this.getTrackerName()}},{key:"getPlayerVersion",value:function(){return s.default.version}},{key:"getFps",value:function(){return null}},{key:"isAutoplayed",value:function(){return this.tag?this.tag.autoplay:null}},{key:"getPreload",value:function(){return this.tag?this.tag.preload:null}},{key:"getAdQuartile",value:function(){return null}},{key:"getAdPosition",value:function(){return this.parentTracker?this.parentTracker.state.isStarted?"mid":"pre":null}},{key:"getAdPartner",value:function(){return null}},{key:"getAdCreativeId",value:function(){return null}},{key:"getInstrumentationProvider",value:function(){return null}},{key:"getInstrumentationName",value:function(){return null}},{key:"getInstrumentationVersion",value:function(){return null}},{key:"getAttributes",value:function(e,t){if(void 0===(e=o.default.prototype.getAttributes.apply(this,arguments)).isAd&&(e.isAd=this.isAd()),e.viewSession=this.getViewSession(),e.viewId=this.getViewId(),e.playerName=this.getPlayerName(),e.playerVersion=this.getPlayerVersion(),e["instrumentation.provider"]=this.getInstrumentationProvider(),e["instrumentation.name"]=this.getInstrumentationName(),e["instrumentation.version"]=this.getInstrumentationVersion(),e["enduser.id"]=this._userId,e.src="Browser","customAction"===t)return e;try{e.pageUrl=window.location.href}catch(e){}for(var i in this.isAd()?(e.adId=this.getVideoId(),e.adTitle=this.getTitle(),e.adSrc=this.getSrc(),e.adCdn=this.getCdn(),e.adBitrate=this.getBitrate()||this.getWebkitBitrate()||this.getRenditionBitrate(),e.adRenditionName=this.getRenditionName(),e.adRenditionBitrate=this.getRenditionBitrate(),e.adRenditionHeight=this.getRenditionHeight(),e.adRenditionWidth=this.getRenditionWidth(),e.adDuration=this.getDuration(),e.adPlayhead=this.getPlayhead(),e.adLanguage=this.getLanguage(),e.adIsMuted=this.isMuted(),e.adFps=this.getFps(),e.adPosition=this.getAdPosition(),e.adCreativeId=this.getAdCreativeId(),e.adPartner=this.getAdPartner()):(e.contentId=this.getVideoId(),e.contentTitle=this.getTitle(),e.contentSrc=this.getSrc(),e.contentCdn=this.getCdn(),e.contentPlayhead=this.getPlayhead(),e.contentIsLive=this.isLive(),e.contentBitrate=this.getBitrate()||this.getWebkitBitrate()||this.getRenditionBitrate(),e.contentRenditionName=this.getRenditionName(),e.contentRenditionBitrate=this.getRenditionBitrate(),e.contentRenditionHeight=this.getRenditionHeight(),e.contentRenditionWidth=this.getRenditionWidth(),e.contentDuration=this.getDuration(),e.contentLanguage=this.getLanguage(),e.contentPlayrate=this.getPlayrate(),e.contentIsFullscreen=this.isFullscreen(),e.contentIsMuted=this.isMuted(),e.contentIsAutoplayed=this.isAutoplayed(),e.contentPreload=this.getPreload(),e.contentFps=this.getFps(),null!=this.adsTracker&&this.adsTracker.state.totalAdPlaytime>0&&(e.totalAdPlaytime=this.adsTracker.state.totalAdPlaytime)),this.state.getStateAttributes(e),this.customData)e[i]=this.customData[i];return e}},{key:"sendCustom",value:function(e,t,i){i=i||{},this.sendVideoCustomAction(e,i),this.state.setTimeSinceAttribute(t)}},{key:"sendPlayerReady",value:function(e){this.state.goPlayerReady()&&(e=e||{},this.sendVideoAction(t.Events.PLAYER_READY,e))}},{key:"sendRequest",value:function(e){var i;this.state.goRequest()&&(this.isAd()?(i=t.Events.AD_REQUEST,this.sendVideoAdAction(i,e)):(i=t.Events.CONTENT_REQUEST,this.sendVideoAction(i,e)))}},{key:"sendStart",value:function(e){var i;this.state.goStart()&&(this.isAd()?(i=t.Events.AD_START,this.parentTracker&&(this.parentTracker.state.isPlaying=!1),this.sendVideoAdAction(i,e)):(i=t.Events.CONTENT_START,this.sendVideoAction(i,e)),this.startHeartbeat(),this.state.goHeartbeat())}},{key:"sendEnd",value:function(e){var i;this.state.goEnd()&&(e=e||{},this.isAd()?(i=t.Events.AD_END,e.timeSinceAdRequested=this.state.timeSinceRequested.getDeltaTime(),e.timeSinceAdStarted=this.state.timeSinceStarted.getDeltaTime(),this.parentTracker&&(this.parentTracker.state.isPlaying=!0)):(i=t.Events.CONTENT_END,e.timeSinceRequested=this.state.timeSinceRequested.getDeltaTime(),e.timeSinceStarted=this.state.timeSinceStarted.getDeltaTime()),this.stopHeartbeat(),this.isAd()?this.sendVideoAdAction(i,e):this.sendVideoAction(i,e),this.parentTracker&&this.isAd()&&this.parentTracker.state.goLastAd(),this.state.goViewCountUp(),this.state.totalPlaytime=0)}},{key:"sendPause",value:function(e){if(this.state.goPause()){var i=this.isAd()?t.Events.AD_PAUSE:t.Events.CONTENT_PAUSE;this.isAd()?this.sendVideoAdAction(i,e):this.sendVideoAction(i,e)}}},{key:"sendResume",value:function(e){var i;this.state.goResume()&&(e=e||{},this.isAd()?(i=t.Events.AD_RESUME,e.timeSinceAdPaused=this.state.timeSincePaused.getDeltaTime()):(i=t.Events.CONTENT_RESUME,e.timeSincePaused=this.state.timeSincePaused.getDeltaTime()),this.isAd()?this.sendVideoAdAction(i,e):this.sendVideoAction(i,e))}},{key:"sendBufferStart",value:function(e){var i;this.state.goBufferStart()&&(e=e||{},i=this.isAd()?t.Events.AD_BUFFER_START:t.Events.CONTENT_BUFFER_START,e=this.buildBufferAttributes(e),this._lastBufferType=e.bufferType,this.isAd()?this.sendVideoAdAction(i,e):this.sendVideoAction(i,e))}},{key:"sendBufferEnd",value:function(e){var i;this.state.goBufferEnd()&&(e=e||{},this.isAd()?(i=t.Events.AD_BUFFER_END,e.timeSinceAdBufferBegin=this.state.timeSinceBufferBegin.getDeltaTime()):(i=t.Events.CONTENT_BUFFER_END,e.timeSinceBufferBegin=this.state.timeSinceBufferBegin.getDeltaTime()),e=this.buildBufferAttributes(e),null!=this._lastBufferType&&(e.bufferType=this._lastBufferType),this.isAd()?this.sendVideoAdAction(i,e):this.sendVideoAction(i,e),this.state.initialBufferingHappened=!0)}},{key:"buildBufferAttributes",value:function(e){return null==e.timeSinceStarted||e.timeSinceStarted<100?e.isInitialBuffering=!this.state.initialBufferingHappened:e.isInitialBuffering=!1,e.bufferType=this.state.calculateBufferType(e.isInitialBuffering),e.timeSinceResumed=this.state.timeSinceResumed.getDeltaTime(),e.timeSinceSeekEnd=this.state.timeSinceSeekEnd.getDeltaTime(),e}},{key:"sendSeekStart",value:function(e){var i;this.state.goSeekStart()&&(i=this.isAd()?t.Events.AD_SEEK_START:t.Events.CONTENT_SEEK_START,this.isAd()?this.sendVideoAdAction(i,e):this.sendVideoAction(i,e))}},{key:"sendSeekEnd",value:function(e){var i;this.state.goSeekEnd()&&(e=e||{},this.isAd()?(i=t.Events.AD_SEEK_END,e.timeSinceAdSeekBegin=this.state.timeSinceSeekBegin.getDeltaTime()):(i=t.Events.CONTENT_SEEK_END,e.timeSinceSeekBegin=this.state.timeSinceSeekBegin.getDeltaTime()),this.isAd()?this.sendVideoAdAction(i,e):this.sendVideoAction(i,e))}},{key:"sendDownload",value:function(e){(e=e||{}).state||r.default.warn("Called sendDownload without { state: xxxxx }."),this.sendVideoAction(t.Events.DOWNLOAD,e),this.state.goDownload()}},{key:"sendError",value:function(e){(e=e||{}).isAd=this.isAd(),this.state.goError();var i=this.isAd()?t.Events.AD_ERROR:t.Events.CONTENT_ERROR;this.sendVideoErrorAction(i,e)}},{key:"sendRenditionChanged",value:function(e){var i;(e=e||{}).timeSinceLastRenditionChange=this.state.timeSinceLastRenditionChange.getDeltaTime(),e.shift=this.getRenditionShift(!0),i=this.isAd()?t.Events.AD_RENDITION_CHANGE:t.Events.CONTENT_RENDITION_CHANGE,this.isAd()?this.sendVideoAdAction(i,e):this.sendVideoAction(i,e),this.state.goRenditionChange()}},{key:"sendHeartbeat",value:function(e){if(this.state.isRequested){var i,n=this.getHeartbeat();this.state._hb=!0,n=this.adjustElapsedTimeForPause(n),this.isAd()?(i=t.Events.AD_HEARTBEAT,"bitmovin-ads"===this.getPlayerName()?this.sendVideoAdAction(i,e):this.sendVideoAdAction(i,l({elapsedTime:n},e))):(i=t.Events.CONTENT_HEARTBEAT,this.sendVideoAction(i,l({elapsedTime:n},e))),this.state.goHeartbeat()}}},{key:"adjustElapsedTimeForPause",value:function(e){return this.state._acc&&(e-=this.state._acc,this.state._acc=0),this.state.isPaused&&((e-=this.state.elapsedTime.getDeltaTime())<10&&(e=0),this.state.elapsedTime.start()),this.state._bufferAcc?(e-=this.state._bufferAcc,this.state._bufferAcc=0):this.state.isBuffering&&((e-=this.state.bufferElapsedTime.getDeltaTime())<5&&(e=0),this.state.bufferElapsedTime.start()),Math.max(0,e)}},{key:"sendAdBreakStart",value:function(e){this.isAd()&&this.state.goAdBreakStart()&&(this.state.totalAdPlaytime=0,this.parentTracker&&(this.parentTracker.state.isPlaying=!1),this.sendVideoAdAction(t.Events.AD_BREAK_START,e))}},{key:"sendAdBreakEnd",value:function(e){this.isAd()&&this.state.goAdBreakEnd()&&((e=e||{}).timeSinceAdBreakBegin=this.state.timeSinceAdBreakStart.getDeltaTime(),this.sendVideoAdAction(t.Events.AD_BREAK_END,e),this.parentTracker&&(this.parentTracker.state.isPlaying=!0),this.stopHeartbeat(),this.parentTracker&&this.isAd()&&this.parentTracker.state.goLastAd())}},{key:"sendAdQuartile",value:function(e){this.isAd()&&((e=e||{}).quartile||r.default.warn("Called sendAdQuartile without { quartile: xxxxx }."),e.timeSinceLastAdQuartile=this.state.timeSinceLastAdQuartile.getDeltaTime(),this.sendVideoAdAction(t.Events.AD_QUARTILE,e),this.state.goAdQuartile())}},{key:"sendAdClick",value:function(e){this.isAd()&&((e=e||{}).url||r.default.warn("Called sendAdClick without { url: xxxxx }."),this.sendVideoAdAction(t.Events.AD_CLICK,e))}}],u&&d(i.prototype,u),Object.defineProperty(i,"prototype",{writable:!1}),i;var i,u}(o.default);function g(e){e.type!==m.Events.AD_ERROR?this.sendVideoAdAction(e.type,e.data):this.sendVideoErrorAction(e.type,e.data)}m.Events={PLAYER_READY:"PLAYER_READY",DOWNLOAD:"DOWNLOAD",ERROR:"ERROR",CONTENT_REQUEST:"CONTENT_REQUEST",CONTENT_START:"CONTENT_START",CONTENT_END:"CONTENT_END",CONTENT_PAUSE:"CONTENT_PAUSE",CONTENT_RESUME:"CONTENT_RESUME",CONTENT_SEEK_START:"CONTENT_SEEK_START",CONTENT_SEEK_END:"CONTENT_SEEK_END",CONTENT_BUFFER_START:"CONTENT_BUFFER_START",CONTENT_BUFFER_END:"CONTENT_BUFFER_END",CONTENT_HEARTBEAT:"CONTENT_HEARTBEAT",CONTENT_RENDITION_CHANGE:"CONTENT_RENDITION_CHANGE",CONTENT_ERROR:"CONTENT_ERROR",AD_REQUEST:"AD_REQUEST",AD_START:"AD_START",AD_END:"AD_END",AD_PAUSE:"AD_PAUSE",AD_RESUME:"AD_RESUME",AD_SEEK_START:"AD_SEEK_START",AD_SEEK_END:"AD_SEEK_END",AD_BUFFER_START:"AD_BUFFER_START",AD_BUFFER_END:"AD_BUFFER_END",AD_HEARTBEAT:"AD_HEARTBEAT",AD_RENDITION_CHANGE:"AD_RENDITION_CHANGE",AD_ERROR:"AD_ERROR",AD_BREAK_START:"AD_BREAK_START",AD_BREAK_END:"AD_BREAK_END",AD_QUARTILE:"AD_QUARTILE",AD_CLICK:"AD_CLICK"},t.default=m}},t={};function i(n){var r=t[n];if(void 0!==r)return r.exports;var o=t[n]={exports:{}};return e[n](o,o.exports,i),o.exports}var n={};return(()=>{var e=n;e.default=void 0;var t=d(i(399)),r=d(i(51)),o=d(i(455)),a=d(i(144)),s=d(i(568)),u=d(i(302)),c=d(i(793)),l=d(i(328)),f=i(330);function d(e){return e&&e.__esModule?e:{default:e}}var h={Constants:r.default,Chrono:o.default,Log:a.default,Emitter:s.default,Tracker:u.default,VideoTracker:c.default,VideoTrackerState:l.default,Core:t.default,version:f.version};e.default=h})(),n.default})()));
|
|
3
|
+
//# sourceMappingURL=nrvideo.min.js.map
|