vendor: 4,427 bytes, lines 1-2
1/*! For license information please see 1133-790e102c5723394c.bundle.js.LICENSE.txt */ 2(globalThis.__LOADABLE_LOADED_CHUNKS__||=[]).push([[1133],{46470(t,e,r){var n=r(3703).Buffer;!function(t){t.parser=function(t,e){return new a(t,e)},t.SAXParser=a,t.SAXStream=s,t.createStream=function(t,e){return new s(t,e)},t.MAX_BUFFER_LENGTH=65536;var e,i=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];function a(e,r){if(!(this instanceof a))return new a(e,r);var n=this;!function(t){for(var e=0,r=i.length;e<r;e++)t[i[e]]=""}(n),n.q=n.c="",n.bufferCheckPosition=t.MAX_BUFFER_LENGTH,n.opt=r||{},n.opt.lowercase=n.opt.lowercase||n.opt.lowercasetags,n.looseCase=n.opt.lowercase?"toLowerCase":"toUpperCase",n.tags=[],n.closed=n.closedRoot=n.sawRoot=!1,n.tag=n.error=null,n.strict=!!e,n.noscript=!(!e&&!n.opt.noscript),n.state=I.BEGIN,n.strictEntities=n.opt.strictEntities,n.ENTITIES=n.strictEntities?Object.create(t.XML_ENTITIES):Object.create(t.ENTITIES),n.attribList=[],n.opt.xmlns&&(n.ns=Object.create(h)),n.trackPosition=!1!==n.opt.position,n.trackPosition&&(n.position=n.line=n.column=0),C(n,"onready")}t.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"],Object.create||(Object.create=function(t){function e(){}return e.prototype=t,new e}),Object.keys||(Object.keys=function(t){var e=[];for(var r in t)t.hasOwnProperty(r)&&e.push(r);return e}),a.prototype={end:function(){R(this)},write:function(e){var r=this;if(this.error)throw this.error;if(r.closed)return _(r,"Cannot write after close. Assign an onready handler.");if(null===e)return R(r);"object"==typeof e&&(e=e.toString());for(var n=0,a="";a=x(e,n++),r.c=a,a;)switch(r.trackPosition&&(r.position++,"\n"===a?(r.line++,r.column=0):r.column++),r.state){case I.BEGIN:if(r.state=I.BEGIN_WHITESPACE,"\ufeff"===a)continue;Y(r,a);continue;case I.BEGIN_WHITESPACE:Y(r,a);continue;case I.TEXT:if(r.sawRoot&&!r.closedRoot){for(var o=n-1;a&&"<"!==a&&"&"!==a;)(a=x(e,n++))&&r.trackPosition&&(r.position++,"\n"===a?(r.line++,r.column=0):r.column++);r.textNode+=e.substring(o,n-1)}"<"!==a||r.sawRoot&&r.closedRoot&&!r.strict?(y(a)||r.sawRoot&&!r.closedRoot||w(r,"Text data outside of root node."),"&"===a?r.state=I.TEXT_ENTITY:r.textNode+=a):(r.state=I.OPEN_WAKA,r.startTagPosition=r.position);continue;case I.SCRIPT:"<"===a?r.state=I.SCRIPT_ENDING:r.script+=a;continue;case I.SCRIPT_ENDING:"/"===a?r.state=I.CLOSE_TAG:(r.script+="<"+a,r.state=I.SCRIPT);continue;case I.OPEN_WAKA:if("!"===a)r.state=I.SGML_DECL,r.sgmlDecl="";else if(y(a));else if(A(g,a))r.state=I.OPEN_TAG,r.tagName=a;else if("/"===a)r.state=I.CLOSE_TAG,r.tagName="";else if("?"===a)r.state=I.PROC_INST,r.procInstName=r.procInstBody="";else{if(w(r,"Unencoded <"),r.startTagPosition+1<r.position){var s=r.position-r.startTagPosition;a=new Array(s).join(" ")+a}r.textNode+="<"+a,r.state=I.TEXT}continue;case I.SGML_DECL:(r.sgmlDecl+a).toUpperCase()===c?(P(r,"onopencdata"),r.state=I.CDATA,r.sgmlDecl="",r.cdata=""):r.sgmlDecl+a==="--"?(r.state=I.COMMENT,r.comment="",r.sgmlDecl=""):(r.sgmlDecl+a).toUpperCase()===l?(r.state=I.DOCTYPE,(r.doctype||r.sawRoot)&&w(r,"Inappropriately located doctype declaration"),r.doctype="",r.sgmlDecl=""):">"===a?(P(r,"onsgmldeclaration",r.sgmlDecl),r.sgmlDecl="",r.state=I.TEXT):m(a)?(r.state=I.SGML_DECL_QUOTED,r.sgmlDecl+=a):r.sgmlDecl+=a;continue;case I.SGML_DECL_QUOTED:a===r.q&&(r.state=I.SGML_DECL,r.q=""),r.sgmlDecl+=a;continue;case I.DOCTYPE:">"===a?(r.state=I.TEXT,P(r,"ondoctype",r.doctype),r.doctype=!0):(r.doctype+=a,"["===a?r.state=I.DOCTYPE_DTD:m(a)&&(r.state=I.DOCTYPE_QUOTED,r.q=a));continue;case I.DOCTYPE_QUOTED:r.doctype+=a,a===r.q&&(r.q="",r.state=I.DOCTYPE);continue;case I.DOCTYPE_DTD:r.doctype+=a,"]"===a?r.state=I.DOCTYPE:m(a)&&(r.state=I.DOCTYPE_DTD_QUOTED,r.q=a);continue;case I.DOCTYPE_DTD_QUOTED:r.doctype+=a,a===r.q&&(r.state=I.DOCTYPE_DTD,r.q="");continue;case I.COMMENT:"-"===a?r.state=I.COMMENT_ENDING:r.comment+=a;continue;case I.COMMENT_ENDING:"-"===a?(r.state=I.COMMENT_ENDED,r.comment=N(r.opt,r.comment),r.comment&&P(r,"oncomment",r.comment),r.comment=""):(r.comment+="-"+a,r.state=I.COMMENT);continue;case I.COMMENT_ENDED:">"!==a?(w(r,"Malformed comment"),r.comment+="--"+a,r.state=I.COMMENT):r.
vendor: 4,720 bytes, line 2
2state=I.TEXT;continue;case I.CDATA:"]"===a?r.state=I.CDATA_ENDING:r.cdata+=a;continue;case I.CDATA_ENDING:"]"===a?r.state=I.CDATA_ENDING_2:(r.cdata+="]"+a,r.state=I.CDATA);continue;case I.CDATA_ENDING_2:">"===a?(r.cdata&&P(r,"oncdata",r.cdata),P(r,"onclosecdata"),r.cdata="",r.state=I.TEXT):"]"===a?r.cdata+="]":(r.cdata+="]]"+a,r.state=I.CDATA);continue;case I.PROC_INST:"?"===a?r.state=I.PROC_INST_ENDING:y(a)?r.state=I.PROC_INST_BODY:r.procInstName+=a;continue;case I.PROC_INST_BODY:if(!r.procInstBody&&y(a))continue;"?"===a?r.state=I.PROC_INST_ENDING:r.procInstBody+=a;continue;case I.PROC_INST_ENDING:">"===a?(P(r,"onprocessinginstruction",{name:r.procInstName,body:r.procInstBody}),r.procInstName=r.procInstBody="",r.state=I.TEXT):(r.procInstBody+="?"+a,r.state=I.PROC_INST_BODY);continue;case I.OPEN_TAG:A(p,a)?r.tagName+=a:(O(r),">"===a?U(r):"/"===a?r.state=I.OPEN_TAG_SLASH:(y(a)||w(r,"Invalid character in tag name"),r.state=I.ATTRIB));continue;case I.OPEN_TAG_SLASH:">"===a?(U(r,!0),F(r)):(w(r,"Forward-slash in opening tag not followed by >"),r.state=I.ATTRIB);continue;case I.ATTRIB:if(y(a))continue;">"===a?U(r):"/"===a?r.state=I.OPEN_TAG_SLASH:A(g,a)?(r.attribName=a,r.attribValue="",r.state=I.ATTRIB_NAME):w(r,"Invalid attribute name");continue;case I.ATTRIB_NAME:"="===a?r.state=I.ATTRIB_VALUE:">"===a?(w(r,"Attribute without value"),r.attribValue=r.attribName,B(r),U(r)):y(a)?r.state=I.ATTRIB_NAME_SAW_WHITE:A(p,a)?r.attribName+=a:w(r,"Invalid attribute name");continue;case I.ATTRIB_NAME_SAW_WHITE:if("="===a)r.state=I.ATTRIB_VALUE;else{if(y(a))continue;w(r,"Attribute without value"),r.tag.attributes[r.attribName]="",r.attribValue="",P(r,"onattribute",{name:r.attribName,value:""}),r.attribName="",">"===a?U(r):A(g,a)?(r.attribName=a,r.state=I.ATTRIB_NAME):(w(r,"Invalid attribute name"),r.state=I.ATTRIB)}continue;case I.ATTRIB_VALUE:if(y(a))continue;m(a)?(r.q=a,r.state=I.ATTRIB_VALUE_QUOTED):(w(r,"Unquoted attribute value"),r.state=I.ATTRIB_VALUE_UNQUOTED,r.attribValue=a);continue;case I.ATTRIB_VALUE_QUOTED:if(a!==r.q){"&"===a?r.state=I.ATTRIB_VALUE_ENTITY_Q:r.attribValue+=a;continue}B(r),r.q="",r.state=I.ATTRIB_VALUE_CLOSED;continue;case I.ATTRIB_VALUE_CLOSED:y(a)?r.state=I.ATTRIB:">"===a?U(r):"/"===a?r.state=I.OPEN_TAG_SLASH:A(g,a)?(w(r,"No whitespace between attributes"),r.attribName=a,r.attribValue="",r.state=I.ATTRIB_NAME):w(r,"Invalid attribute name");continue;case I.ATTRIB_VALUE_UNQUOTED:if(!E(a)){"&"===a?r.state=I.ATTRIB_VALUE_ENTITY_U:r.attribValue+=a;continue}B(r),">"===a?U(r):r.state=I.ATTRIB;continue;case I.CLOSE_TAG:if(r.tagName)">"===a?F(r):A(p,a)?r.tagName+=a:r.script?(r.script+="</"+r.tagName,r.tagName="",r.state=I.SCRIPT):(y(a)||w(r,"Invalid tagname in closing tag"),r.state=I.CLOSE_TAG_SAW_WHITE);else{if(y(a))continue;T(g,a)?r.script?(r.script+="</"+a,r.state=I.SCRIPT):w(r,"Invalid tagname in closing tag."):r.tagName=a}continue;case I.CLOSE_TAG_SAW_WHITE:if(y(a))continue;">"===a?F(r):w(r,"Invalid characters in closing tag");continue;case I.TEXT_ENTITY:case I.ATTRIB_VALUE_ENTITY_Q:case I.ATTRIB_VALUE_ENTITY_U:var u,d;switch(r.state){case I.TEXT_ENTITY:u=I.TEXT,d="textNode";break;case I.ATTRIB_VALUE_ENTITY_Q:u=I.ATTRIB_VALUE_QUOTED,d="attribValue";break;case I.ATTRIB_VALUE_ENTITY_U:u=I.ATTRIB_VALUE_UNQUOTED,d="attribValue"}if(";"===a)if(r.opt.unparsedEntities){var h=V(r);r.entity="",r.state=u,r.write(h)}else r[d]+=V(r),r.entity="",r.state=u;else A(r.entity.length?v:f,a)?r.entity+=a:(w(r,"Invalid character in entity name"),r[d]+="&"+r.entity+a,r.entity="",r.state=u);continue;default:throw new Error(r,"Unknown state: "+r.state)}return r.position>=r.bufferCheckPosition&&function(e){for(var r=Math.max(t.MAX_BUFFER_LENGTH,10),n=0,a=0,o=i.length;a<o;a++){var s=e[i[a]].length;if(s>r)switch(i[a]){case"textNode":L(e);break;case"cdata":P(e,"oncdata",e.cdata),e.cdata="";break;case"script":P(e,"onscript",e.script),e.script="";break;default:_(e,"Max buffer length exceeded: "+i[a])}n=Math.max(n,s)}var c=t.MAX_BUFFER_LENGTH-n;e.bufferCheckPosition=c+e.position}(r),r},resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){var t;L(t=this),""!==t.cdata&&(P(t,"oncdata",t.cdata),t.cdata=""),""!==t.script&&(P(t,"onscript",t.script),t.script="")}};try{e=r(82577).Stream}catch(t){e=function(){}}e||(e=function(){});var o=t.EVENTS.filter(function(t){return"error"!==t&&"end"!==t});function s(t,r){if(!(this instanceof s))return new s(t,r);e.apply(this),this._parser=new a(t,r),this.writable=!0,this.readable=!0;var n=this;this._parser.onend=function(){n.emit("end")},this._parser.onerror=function(t){n.emit("error",t),n._parser.error=null},this._decoder=null,o.forEach(function(t){Object.defineProperty(n,"on"
vendor: 3,272 bytes, line 2
2+t,{get:function(){return n._parser["on"+t]},set:function(e){if(!e)return n.removeAllListeners(t),n._parser["on"+t]=e,e;n.on(t,e)},enumerable:!0,configurable:!1})})}s.prototype=Object.create(e.prototype,{constructor:{value:s}}),s.prototype.write=function(t){if("function"==typeof n&&"function"==typeof n.isBuffer&&n.isBuffer(t)){if(!this._decoder){var e=r(16574).I;this._decoder=new e("utf8")}t=this._decoder.write(t)}return this._parser.write(t.toString()),this.emit("data",t),!0},s.prototype.end=function(t){return t&&t.length&&this.write(t),this._parser.end(),!0},s.prototype.on=function(t,r){var n=this;return n._parser["on"+t]||-1===o.indexOf(t)||(n._parser["on"+t]=function(){var e=1===arguments.length?[arguments[0]]:Array.apply(null,arguments);e.splice(0,0,t),n.emit.apply(n,e)}),e.prototype.on.call(n,t,r)};var c="[CDATA[",l="DOCTYPE",u="http://www.w3.org/XML/1998/namespace",d="http://www.w3.org/2000/xmlns/",h={xml:u,xmlns:d},g=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,p=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,f=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,v=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function y(t){return" "===t||"\n"===t||"\r"===t||"\t"===t}function m(t){return'"'===t||"'"===t}function E(t){return">"===t||y(t)}function A(t,e){return t.test(e)}function T(t,e){return!A(t,e)}var k,b,S,I=0;for(var D in t.STATE={BEGIN:I++,BEGIN_WHITESPACE:I++,TEXT:I++,TEXT_ENTITY:I++,OPEN_WAKA:I++,SGML_DECL:I++,SGML_DECL_QUOTED:I++,DOCTYPE:I++,DOCTYPE_QUOTED:I++,DOCTYPE_DTD:I++,DOCTYPE_DTD_QUOTED:I++,COMMENT_STARTING:I++,COMMENT:I++,COMMENT_ENDING:I++,COMMENT_ENDED:I++,CDATA:I++,CDATA_ENDING:I++,CDATA_ENDING_2:I++,PROC_INST:I++,PROC_INST_BODY:I++,PROC_INST_ENDING:I++,OPEN_TAG:I++,OPEN_TAG_SLASH:I++,ATTRIB:I++,ATTRIB_NAME:I++,ATTRIB_NAME_SAW_WHITE:I++,ATTRIB_VALUE:I++,ATTRIB_VALUE_QUOTED:I++,ATTRIB_VALUE_CLOSED:I++,ATTRIB_VALUE_UNQUOTED:I++,ATTRIB_VALUE_ENTITY_Q:I++,ATTRIB_VALUE_ENTITY_U:I++,CLOSE_TAG:I++,CLOSE_TAG_SAW_WHITE:I++,SCRIPT:I++,SCRIPT_ENDING:I++},t.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},t.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:1
vendor: 4,092 bytes, line 2
274,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(t.ENTITIES).forEach(function(e){var r=t.ENTITIES[e],n="number"==typeof r?String.fromCharCode(r):r;t.ENTITIES[e]=n}),t.STATE)t.STATE[t.STATE[D]]=D;function C(t,e,r){t[e]&&t[e](r)}function P(t,e,r){t.textNode&&L(t),C(t,e,r)}function L(t){t.textNode=N(t.opt,t.textNode),t.textNode&&C(t,"ontext",t.textNode),t.textNode=""}function N(t,e){return t.trim&&(e=e.trim()),t.normalize&&(e=e.replace(/\s+/g," ")),e}function _(t,e){return L(t),t.trackPosition&&(e+="\nLine: "+t.line+"\nColumn: "+t.column+"\nChar: "+t.c),e=new Error(e),t.error=e,C(t,"onerror",e),t}function R(t){return t.sawRoot&&!t.closedRoot&&w(t,"Unclosed root tag"),t.state!==I.BEGIN&&t.state!==I.BEGIN_WHITESPACE&&t.state!==I.TEXT&&_(t,"Unexpected end"),L(t),t.c="",t.closed=!0,C(t,"onend"),a.call(t,t.strict,t.opt),t}function w(t,e){if("object"!=typeof t||!(t instanceof a))throw new Error("bad call to strictFail");t.strict&&_(t,e)}function O(t){t.strict||(t.tagName=t.tagName[t.looseCase]());var e=t.tags[t.tags.length-1]||t,r=t.tag={name:t.tagName,attributes:{}};t.opt.xmlns&&(r.ns=e.ns),t.attribList.length=0,P(t,"onopentagstart",r)}function M(t,e){var r=t.indexOf(":")<0?["",t]:t.split(":"),n=r[0],i=r[1];return e&&"xmlns"===t&&(n="xmlns",i=""),{prefix:n,local:i}}function B(t){if(t.strict||(t.attribName=t.attribName[t.looseCase]()),-1!==t.attribList.indexOf(t.attribName)||t.tag.attributes.hasOwnProperty(t.attribName))t.attribName=t.attribValue="";else{if(t.opt.xmlns){var e=M(t.attribName,!0),r=e.prefix,n=e.local;if("xmlns"===r)if("xml"===n&&t.attribValue!==u)w(t,"xml: prefix must be bound to "+u+"\nActual: "+t.attribValue);else if("xmlns"===n&&t.attribValue!==d)w(t,"xmlns: prefix must be bound to "+d+"\nActual: "+t.attribValue);else{var i=t.tag,a=t.tags[t.tags.length-1]||t;i.ns===a.ns&&(i.ns=Object.create(a.ns)),i.ns[n]=t.attribValue}t.attribList.push([t.attribName,t.attribValue])}else t.tag.attributes[t.attribName]=t.attribValue,P(t,"onattribute",{name:t.attribName,value:t.attribValue});t.attribName=t.attribValue=""}}function U(t,e){if(t.opt.xmlns){var r=t.tag,n=M(t.tagName);r.prefix=n.prefix,r.local=n.local,r.uri=r.ns[n.prefix]||"",r.prefix&&!r.uri&&(w(t,"Unbound namespace prefix: "+JSON.stringify(t.tagName)),r.uri=n.prefix);var i=t.tags[t.tags.length-1]||t;
2r.ns&&i.ns!==r.ns&&Object.keys(r.ns).forEach(function(e){P(t,"onopennamespace",{prefix:e,uri:r.ns[e]})});for(var a=0,o=t.attribList.length;a<o;a++){var s=t.attribList[a],c=s[0],l=s[1],u=M(c,!0),d=u.prefix,h=u.local,g=""===d?"":r.ns[d]||"",p={name:c,value:l,prefix:d,local:h,uri:g};d&&"xmlns"!==d&&!g&&(w(t,"Unbound namespace prefix: "+JSON.stringify(d)),p.uri=d),t.tag.attributes[c]=p,P(t,"onattribute",p)}t.attribList.length=0}t.tag.isSelfClosing=!!e,t.sawRoot=!0,t.tags.push(t.tag),P(t,"onopentag",t.tag),e||(t.noscript||"script"!==t.tagName.toLowerCase()?t.state=I.TEXT:t.state=I.SCRIPT,t.tag=null,t.tagName=""),t.attribName=t.attribValue="",t.attribList.length=0}function F(t){if(!t.tagName)return w(t,"Weird empty close tag."),t.textNode+="</>",void(t.state=I.TEXT);if(t.script){if("script"!==t.tagName)return t.script+="</"+t.tagName+">",t.tagName="",void(t.state=I.SCRIPT);P(t,"onscript",t.script),t.script=""}var e=t.tags.length,r=t.tagName;t.strict||(r=r[t.looseCase]());for(var n=r;e--&&t.tags[e].name!==n;)w(t,"Unexpected close tag");if(e<0)return w(t,"Unmatched closing tag: "+t.tagName),t.textNode+="</"+t.tagName+">",void(t.state=I.TEXT);t.tagName=r;for(var i=t.tags.length;i-- >e;){var a=t.tag=t.tags.pop();t.tagName=t.tag.name,P(t,"onclosetag",t.tagName);var o={};for(var s in a.ns)o[s]=a.ns[s];var c=t.tags[t.tags.length-1]||t;t.opt.xmlns&&a.ns!==c.ns&&Object.keys(a.ns).forEach(function(e){var r=a.ns[e];P(t,"onclosenamespace",{prefix:e,uri:r})})}0===e&&(t.closedRoot=!0),t.tagName=t.attribValue=t.attribName="",t.attribList.length=0,t.state=I.TEXT}function V(t){var e,r=t.entity,n=r.toLowerCase(),i="";return t.ENTITIES[r]?t.ENTITIES[r]:t.ENTITIES[n]?t.ENTITIES[n]:("#"===(r=n).charAt(0)&&("x"===r.charAt(1)?(r=r.slice(2),i=(e=parseInt(r,16)).toString(16)):(r=r.slice(1),i=(e=parseInt(r,10)).toString(10))),r=r.replace(/^0+/,""),isNaN(e)||i.toLowerCase()!==r?(w(t,"Invalid character entity"),"&"+t.entity+";"):String.fromCodePoint(e))}function Y(t,e){"<"===e?(t.state=I.OPEN_WAKA,t.startTagPosition=t.position):y(e)||(w(t,"Non-whitespace before first tag."),t.textNode=e,t.state=I.TEXT)}function x(t,e){var r="";return e<t.length&&(r=t.charAt(e)),r}I=t.STATE,String.fromCodePoint||(k=String.fromCharCode,b=Math.floor,S=function(){var t,e,r=[],n=-1,i=arguments.length;if(!i)return"";for(var a="";++n<i;){var o=Number(arguments[n]);if(!isFinite(o)||o<0||o>1114111||b(o)!==o)throw RangeError("Invalid code point: "+o);o<=65535?r.push(o):(t=55296+((o-=65536)>>10),e=o%1024+56320,r.push(t,e)),(n+1===i||r.length>16384)&&(a+=k.apply(null,r),r.length=0)}return a},Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:S,configurable:!0,writable:!0}):String.fromCodePoint=S)}(e)},82773(t,e,r){"use strict";e.__esModule=!0,e.BreakType=e.AdBreak=void 0,e.normalisePosition=u;var n=r(49573),i=r(47555),a=(r(64275),r(22436),r(10209));function o(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return s(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function c(t,e){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},c(t,e)}var l=e.BreakType=Object.freeze({LINEAR:0,NONLINEAR:1,DISPLAY:2});function u(t,e,r){var n=t?t.toLowerCase():"";return"preroll"===n||"midroll"===n||"postroll"===n?n:0===e?"preroll":r===l.LINEAR?"midroll":"unknown"}e.AdBreak=function(t){function e(r,n,i,a,o,s,c,d){var h;return(h=t.call(this)||this).startMillis=r,h.duration=n,h.trackingMap=a||new Map,h.breakType=e.getBreakTypeFromString(o),h.position=u(i,r,h.breakType),h.identifier=s,h.extensions=c,h.broker=null,h.adverts=[],h.adTagUri=d||null,h.breakType!==l.LINEAR&&-1===h.startMillis&&(h.startMillis=0),h}var r,i;i=t,(r=e).prototype=Object.create(i.prototype),r.prototype.constructor=r,c(r,i),e.getBreakTypeFromString=function(t){return(0,a.equalsIgnoreCase)(t,"
2nonlinear")?l.NONLINEAR:(0,a.equalsIgnoreCase)(t,"display")?l.DISPLAY:l.LINEAR};var s=e.prototype;return s.adjustForEarlyReturn=function(t){var e=this.getAdvertFromPlayhead(t);if(e){var r=e.getStart()===t;return r||e.adjustForEarlyReturn(t),this.removeAdvertsFrom(e,r),this.setDuration(t-this.startMillis),!0}return!1},s.getAdvertForCreative=function(t){for(var e,r=o(this.adverts);!(e=r()).done;){var n=e.value;if(n.containsCreative(t))return n}return null},s.getAdvertFromPlayhead=function(t){for(var e,r=o(this.adverts);!(e=r()).done;){var n=e.value;if(n.getStart()<=t&&t<n.getEnd())return n}return null},s.getAdvertFromIdentifier=function(t){for(var e,r=o(this.adverts);!(e=r()).done;){var n=e.value;if(n.getMediaIdentifier()===t)return n}return null},s.getAdverts=function(){return Object.assign([],this.adverts)},s.getAdTagUri=function(){return this.adTagUri},s.getBreakTypeAsString=function(){switch(this.breakType){case l.NONLINEAR:return"nonlinear";case l.DISPLAY:return"display";default:return"linear"}},s.getType=function(){return this.breakType},s.getDuration=function(){return this.duration},s.getExtensions=function(){return this.extensions},s.getIdentifier=function(){return this.identifier},s.isPlaceholder=function(){return null!==this.adTagUri},s.getPosition=function(){return this.position},s.getRemainingTime=function(t){var e=0;if(this.adverts.length>0){var r=this.adverts[0].getStart()+this.getDuration();e=Math.min(r-t,this.getDuration())}return Math.max(0,e)},s.getStart=function(){return this.startMillis},s.getTrackingMap=function(){return this.trackingMap},s.getTrackingReport=function(t,e){var r=this.trackingMap.get(t);return r&&e&&this.trackingMap.delete(t),r},s.isActive=function(){if(!this.adverts)return!1;for(var t,e=o(this.adverts);!(t=e()).done;)if(t.value.isActive())return!0;return!1},s.isNonLinear=function(){return this.breakType!==l.LINEAR},s.isValid=function(){return this.breakType===l.LINEAR&&-1===this.startMillis?(n.YoLog.e("Linear AdBreak is invalid - start position is unknown"),!1):this.adverts.length>0||this.trackingMap.size>0||this.isPlaceholder()},s.mergePlaceholderAdverts=function(t){this.setAdverts(t.getAdverts()),this.adTagUri=null},s.onNonLinearTrackingEvent=function(t){if(this.isNonLinear()){var e=this.getTrackingReport(t,!1);e&&this.broker.fireTrackingReport(e)}else n.YoLog.w("Warning: AdBreak is not nonlinear - can't signal NonLinearTrackingEvent")},s.postParse=function(t){this.broker=t;for(var e,r=this.startMillis,n=o(this.adverts);!(e=n()).done;){var i=e.value;i.setStart(r),r+=i.getDuration(),i.postParse(t)}},s.removeAdvertsFrom=function(t,e){for(var r=0;r<this.adverts.length;++r)if(this.adverts[r]===t){var n=!0===e?r:r+1;return void this.adverts.splice(n,this.adverts.length-n)}},s.setAdverts=function(t){Array.prototype.push.apply(this.adverts,t);for(var e,r=this.startMillis,n=o(this.adverts);!(e=n()).done;){var i=e.value;i.setStart(r),r+=i.getDuration()}},s.setAdvertsInactivePriorTo=function(t){for(var e,r=o(this.adverts);!(e=r()).done;){var n=e.value;if(!(n.getEnd()<t))return!1;n.setInactive()}return!0},s.setDuration=function(t){this.duration=t},s.setInactive=function(){if(!this.isNonLinear()){for(var t,e=o(this.adverts);!(t=e()).done;)t.value.setInactive();this.trackingMap.clear()}},s.toString=function(){return"\n--- AdBreak ---\n breakType:"+this.getBreakTypeAsString()+" start:"+this.startMillis+" milliseconds, duration:"+this.duration+", position:"+this.position+"\nNumber of adverts:"+this.adverts.length},e}(i.AdBreakEventHandler)},97527(t,e,r){"use strict";e.__esModule=!0,e.AdVerification=void 0;var n=r(50103),i=r(49573),a=r(10209),o=r(23572);function s(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return c(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function l(t,e){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},l(t,e)}r(85085),e.AdVerification=function(t){function e(e){var r;
2return(r=t.call(this)||this).vendor=e.verificationVendor,r.resources=e.verificationResources,r.verificationEvents=e.verificationEvents,r.parameters=e.verificationParameters,r.listeners=[],r.broker=null,r}var r,o;o=t,(r=e).prototype=Object.create(o.prototype),r.prototype.constructor=r,l(r,o);var c=e.prototype;return c.getAdVerificationEvents=function(){return this.verificationEvents},c.getParameters=function(){return this.parameters},c.getResources=function(){return Object.assign([],this.resources)},c.getVendor=function(){return this.vendor},c.isValid=function(){return!!(this.vendor&&this.resources&&this.resources.length>0)},c.onVerificationEvent=function(t,e){if(0!==this.listeners.length){var r=Number.isInteger(e);e&&!r&&i.YoLog.w("onVerificationEvent: reason should be an integer.");var a=this.verificationEvents.get(t);if(a){if(r&&e)for(var o,c=s(this.listeners);!(o=c()).done;)(0,o.value)(new n.Event(e));this.broker.fireTrackingReport(a)}}else i.YoLog.w("No event listeners - can't signal VerificationEvent")},c.postParse=function(t,e){this.broker=t,e?this.listeners.push(e):i.YoLog.e("postParse: callback was null")},c.toString=function(){var t="";if(this.verificationEvents.size>0){t+="\n - Verification events:";for(var e,r=s(this.verificationEvents);!(e=r()).done;){var n=e.value;t+="\n "+n[0]+"="+n[1]}}var i="\n--- Ad Verification:\n - Vendor:";i+=this.vendor,i+="\n - Resources:";for(var o,c=s(this.resources);!(o=c()).done;){var l=o.value;i+="\n"+(0,a.toIndentedString)(l)}return i+=t,(i+="\n - VerificationParameters:")+this.parameters},e}(o.VerificationEventHandler)},64275(t,e,r){"use strict";e.__esModule=!0,e.Advert=void 0;var n=r(60353),i=r(62994),a=r(49573),o=r(80674),s=r(7349),c=r(10209),l=r(41665),u=(r(97527),r(8164),r(80782),r(71936),r(52205)),d=r(43910);function h(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return g(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?g(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function g(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function p(t,e){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},p(t,e)}r(85085),r(5922),r(22436);var f=e.Advert=function(t){function e(e){var r;return(r=t.call(this)||this).startMillis=0,r.active=!1,r.identifier=e.identifier,r.mediaIdentifier=e.mediaIdentifier,r.properties=e.properties?e.properties:[],r.linearCreative=e.linearCreative,r.nonLinearAds=e.nonLinearAds?e.nonLinearAds:new s.NonLinearAds,r.companionAds=e.companionAds?e.companionAds:new n.CompanionAds,r.impressions=e.impressions,r.errors=e.errors,r.viewableImpressions=e.viewableImpressions?e.viewableImpressions:new Map,r.adVerifications=e.adVerifications?e.adVerifications:[],r.sequence=e.sequence,r.adType=e.adType,r.nonLinear=e.nonLinear,r.filler=e.filler,r.trackingSchedule=new Map,e.topLevelWrapper&&e.topLevelWrapper.isValid()?r.wrapper=e.topLevelWrapper:r.wrapper=null,r.extensions=e.extensions,r.broker=null,r.macroSubstitutions=new Map,r.earlyReturn=!1,r}var r,l;l=t,(r=e).prototype=Object.create(l.prototype),r.prototype.constructor=r,p(r,l),e.buildMapString=function(t){if(t.size>0)for(var e,r=h(t);!(e=r()).done;){var n=e.value;n[0],n[1]}};var g=e.prototype;return g.addMacroSubstitution=function(t,e){this.macroSubstitutions.set(t,e)},g.addTrackingScheduleEntry=function(t,e){for(var r=e*this.linearCreative.getDuration();this.trackingSchedule.has(r);)++r;this.trackingSchedule.set(r,t)},g.adjustForEarlyReturn=function(t){var e=t-this.startMillis;this.setDuration(e);for(var r,n=h(this.getTrackingSchedule().keys());!(r=n()).done;){var i=r.value;i>e&&this.removeFromTrackingSchedule(i)}this.earlyReturn=!0},g.clearTrackingSchedule=function(){this.trackingSchedule.clear()},g.containsCreative=function(t){return t instanceof u.LinearCreative?t===this.linearCreative:t instanceof d.NonLinearCreative?this.nonLinearAds.containsCreative(t):t instanceof i.CompanionCreative&&this.companionAds.containsCreative(t)},g.containsIcon=function(t){for(var e,r=h(this.linearCreative.getIndustryIcons());!(e=r()).done;)if(e.value===t)return!0;return!1},g.getAdVerifications=function(){return Object.assign([],this.adVerifications)},g.getAdType=function(){return this.adType},g.getAssetUrl=function(){return null!==this.linearCreative?this.linearCreative.getAssetUri():""},g.getCompanionAds=function(){return this.companionAds},g.getCompanionAdsByType=function(t){return this.companionAds.getCompanionsByType(t)},g.getCompanionRequired=function(){return this.companionAds.getRequired()},g.getDuration=function(){return this.nonLinear?0:this.linearCreative.getDuration()},g.getEnd=function(){return this.startMillis+this.linearCreative.getDuration()},g.getExtensions=function(){return this.extensions},g.getIdentifier=function(){return this.identifier},g.getImpressions=function(t){if(!this.impressions)return null;var e=this.impressions.copy();return t&&(this.impressions=null),e},g.getIndustryIcons=function(){return this.linearCreative.getIndustryIcons()},g.getInteractiveCreative=function(){return this.linearCreative.getInteractiveCreative()},g.isTruncated=function(){return this.earlyReturn},g.getLineage=function(){return this.wrapper},g.getLinearCreative=function(){return this.linearCreative},g.getMacroSubstitutions=function(){return this.macroSubstitutions},g.getMediaIdentifier=function(){return this.mediaIdentifier},g.getNonLinearAds=function(){return this.nonLinearAds},g.getNonLinearCreativesByType=function(t){return this.nonLinearAds.getNonLinearCreativesByType(t)},g.getProperties=function(){return Object.assign([],this.properties)},g.getProperty=function(t){for(var e,r=h(this.properties);!(e=r()).done;){var n=e.value;if(n.getName()===t)return n}return null},g.getProportion=function(t){var e=0,r=t.split("-");if(2!==r.length)a.YoLog.w("Badly formed progress event in VAST/VMAP: "+t),e=-1;else if(-1!==r[1].indexOf("%")){var n=parseFloat(r[1].substring(0,r[1].length-1));(e=n?n/100:-1)<0&&a.YoLog.w("Badly formed percentage string in VAST/VMAP: "+r[1])}else e=parseFloat((0,o.timeStringToMillis)(r[1],-1)/this.linearCreative.getDuration());return e},g.getRemainingTime=function(t){var e=this.startMillis+this.linearCreative.getDuration(),r=Math.min(e-t,this.linearCreative.getDuration());return Math.max(0,r)},g.getSequence=function(){return this.sequence},g.getSkipOffset=function(){return this.linearCreative.getSkipOffset()},g.getStart=function(){return this.startMillis},g.getTrackingReports=function(t){var e=[],r=this.linearCreative.getTrackingReport(t);return r&&e.push(r),(r=this.nonLinearAds.getTrackingReport(t))&&e.push(r),e},g.getTrackingReportLinear=function(t){if(this.linearCreative)return this.linearCreative.getTrackingReport(t)},g.getTrackingReportNonLinear=function(t){if(this.nonLinearAds)return this.nonLinearAds.getTrackingReport(t)},g.getTrackingSchedule=function(){return this.trackingSchedule},g.getViewableImpressions=function(){return this.viewableImpressions},g.isActive=function(){return this.active},g.isFiller=function(){return this.filler},g.isNonLinear=function(){return this.nonLinear},g.isValid=function(){return this.nonLinear?!this.linearCreative:!(0,c.isNullOrEmpty)(this.mediaIdentifier)&&null!==this.linearCreative},g.onErrorEvent=function(t){this.errors&&(t&&this.addMacroSubstitution("ERRORCODE",t.toString()),this.broker.fireTrackingReport(this.errors))},g.onImpressionEvent=function(){if(this.nonLinear){var t=this.getImpressions(!1);t&&this.broker.fireTrackingReport(t)}else a.YoLog.w("Warning: Advert is not nonlinear - can't signal ImpressionEvent")},g.onViewableEvent=function(t){var r=e.viewableEventMap.get(t),n=this.viewableImpressions.get(r);n&&this.broker.fireTrackingReport(n)},g.postParse=function(t){var e=this;if(this.broker=t,!this.nonLinear){this.addTrackingScheduleEntry("loaded",0),this.addTrackingScheduleEntry("start",0),this.addTrackingScheduleEntry("firstQuartile",.25),this.addTrackingScheduleEntry("midpoint",.5),this.addTrackingScheduleEntry("thirdQuartile",.75),this.addTrackingScheduleEntry("complete",1);for(var r,n=h(this.linearCreative.getTrackingMap());!(r=n()).done;){var i=r.value,a=i[0],o=i[1];if(-1!==a.indexOf("progress")){var s=this.getProportion(a,o);s>=0&&this.addTrackingScheduleEntry(a,s)}}this.trackingSchedule=new Map(Array.from(this.trackingSchedule).sort(function(t,e){return t[0]-e[0]}))}for(var c,l=h(this.adVerifications);!(c=l()).done;)c.value.postParse(this.broker,function(t){e.addMacroSubstitution("REASON",t.getPayload())});this.nonLinearAds.postParse(),this.linearCreative&&this.linearCreative.initialiseInteractiveCreative(this.nonLinearAds.getNonLinearCreatives()),this.prefetchResources(t.getSessionProperties()),this.active=!0},g.prefetchResources=function(t){t.getPrefetchResources()&&(this.nonLinearAds.prefetchResources(t.getResourceTimeout()),this.companionAds.prefetchResources(t.getResourceTimeout()))},g.removeFromTrackingSchedule=function(t){this.trackingSchedule.delete(t)},g.removeMacroSubstitution=function(t){this.macroSubstitutions.delete(t)},g.removeTrackingSchedule=function(){this.trackingSchedule.clear()},g.setDuration=function(t){this.linearCreative&&this.linearCreative.setDuration(t)},g.setInactive=function(){this.active=!1},g.setStart=function(t){this.startMillis=t},g.toString=function(){if(this.isFiller())return"\n--- Advert ---\n - Filler duration: "+this.getDuration();var t="\n* Impression(s):";if(this.impressions)for(var r,n=h(this.impressions.getTrackingUrls());!(r=n()).done;)t+=r.value;else t+="NONE";var i="\n* Viewable Impression(s):";i+=e.buildMapString(this.viewableImpressions);var a="\n * Ad Verification(s):";a+=(0,c.toIndentedString)(this.adVerifications);var o="\n Error(s):";if(this.errors)for(var s,l=h(this.errors.getTrackingUrls());!(s=l()).done;){var u=s.value;o+=(0,c.toIndentedString)("\n - "+u)}else o+="NONE";var d="\n--- Advert ---\n ID:";d+=this.mediaIdentifier,d+="(",d+=this.identifier,d+=")",d+=" duration:",d+=this.getDuration(),d+=" sequence:",d+=this.sequence,d+=" adtype:",d+=this.adType;for(var g,p=h(this.properties);!(g=p()).done;){var f=g.value;d+="\n"+(0,c.toIndentedString)(f)}return this.extensions&&(d+="\n * Extensions:",d+="\n"+(0,c.toIndentedString)(this.getExtensions())),this.wrapper&&(d+="\n * Lineage -\n",d+=(0,c.toIndentedString)(this.wrapper)),d+=(0,c.toIndentedString)(t),d+=(0,c.toIndentedString)(i),d+=(0,c.toIndentedString)(a),d+=(0,c.toIndentedString)(o),this.nonLinear||(d+=(0,c.toIndentedString)(this.linearCreative)),(d+=(0,c.toIndentedString)(this.nonLinearAds))+(0,c.toIndentedString)(this.companionAds)},e}(l.AdvertEventHandler);f.viewableEventMap=new Map,f.viewableEventMap.set(l.ViewableEvent.VIEWABLE,"Viewable"),f.viewableEventMap.set(l.ViewableEvent.NOT_VIEWABLE,"NotViewable"),f.viewableEventMap.set(l.ViewableEvent.VIEW_UNDETERMINED,"ViewUndetermined")},8164(t,e,r){"use strict";
2e.__esModule=!0,e.AdvertWrapper=void 0;var n=r(92704);function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}e.AdvertWrapper=function(t){function e(e,r,n){var i;return(i=t.call(this)||this).identifier=e,i.creativeIdentifier=r,i.adSystem=n,i.child=null,i}var r,n;n=t,(r=e).prototype=Object.create(n.prototype),r.prototype.constructor=r,i(r,n);var a=e.prototype;return a.getAdSystem=function(){return this.adSystem},a.getCreativeIdentifier=function(){return this.creativeIdentifier},a.getIdentifier=function(){return this.identifier},a.getLineage=function(){return this.child},a.isValid=function(){var t=this;do{if(!t.identifier||""===t.identifier)return!1;t=t.getLineage()}while(t);return!0},a.setChild=function(t){this.child=t},e}(n.XmlValidation)},60353(t,e,r){"use strict";e.__esModule=!0,e.CompanionAds=void 0;var n=r(10209),i=r(85085);function a(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return o(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}e.CompanionAds=function(){function t(t,e){this.required=t,this.companions=e||[]}var e=t.prototype;return e.containsCreative=function(t){return-1!==this.companions.indexOf(t)},e.getCompanions=function(){return Object.assign([],this.companions)},e.getCompanionsByType=function(t){for(var e,r=[],n=a(this.companions);!(e=n()).done;){var o=e.value;(o.getResource(t)||t===i.ResourceType.UNKNOWN&&0===o.getResources().size)&&r.push(o)}return r},e.getRequired=function(){return this.required},e.prefetchResources=function(t){for(var e,r=a(this.companions);!(e=r()).done;)e.value.prefetchResources(t)},e.toString=function(){var t="";if(this.companions.length>0){t="\n--- Companion Ads required:",t+=this.required;for(var e,r=a(this.companions);!(e=r()).done;){var i=e.value;t+=(0,n.toIndentedString)(i)}}return t},t}()},62994(t,e,r){"use strict";e.__esModule=!0,e.CompanionCreative=void 0;var n=r(24232),i=r(38351),a=r(41493),o=r(49573),s=r(10209);function c(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return l(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function u(t,e){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},u(t,e)}r(85085),r(5922),e.CompanionCreative=function(t){function e(e,r,n,a,o){var s;(s=t.call(this,e)||this).resources=new Map,s.visible=!1,s.properties=e.properties?e.properties:[],s.altText=e.altText,s.trackingMap=a||new Map,s.videoClicks=r||new i.VideoClicks,s.broker=o,s.companionExtensions=e.companionExtensions;for(var l,u=c(n);!(l=u()).done;){var d=l.value;s.resources.set(d.getResourceType(),d)}return s}var r,n;n=t,(r=e).prototype=Object.create(n.prototype),r.prototype.constructor=r,u(r,n);var l=e.prototype;return l.getAltText=function(){return this.altText},l.getClickThroughUrl=function(){return this.videoClicks.getClickThroughUrl()},l.getClickTrackingUrls=function(){return this.videoClicks.getClickTrackingUrls()},l.getProperties=function(){return Object.assign([],this.properties)},l.getProperty=function(t){for(var e,r=c(this.properties);!(e=r()).done;){var n=e.value;if(n.getName()===t)return n}return null},l.getResource=function(t){return this.resources.has(t)?this.resources.get(t):null},l.getResources=function(){return this.resources},l.getTrackingMap=function(){return this.trackingMap},l.isValid=function(){return(0,a.isValidSize)(this.properties)&&this.resources.size>0||this.trackingMap.size>0},l.isVisible=function(){return this.visible},l.onClickThrough=function(){if(this.isVisible()){var t=this.videoClicks.getClickTrackingUrls(),e=(0,a.getClickTrackingReport)(t,"CompanionCl
2ickTracking");e&&this.broker.fireTrackingReportForCreative(e,this)}else o.YoLog.w("Companion is not visible")},l.onTrackingEvent=function(t){},l.prefetchResources=function(t){(0,a.prefetch)(this.resources,t)},l.setVisible=function(t){if(this.visible!==t&&(this.visible=t,t)){var e=this.trackingMap.get("creativeView");e&&this.broker.fireTrackingReportForCreative(e,this)}},l.toString=function(){for(var e,r="\n--- Companion ---\n",n=c(this.properties);!(e=n()).done;){var i=e.value;r+="\n"+(0,s.toIndentedString)(i)}r+=(0,s.toIndentedString)("\nAlt Text: "+this.altText),r+=(0,s.toIndentedString)(this.videoClicks);for(var a,o=c(this.resources);!(a=o()).done;){var l=a.value,u=l[0],d=l[1];r+=(0,s.toIndentedString)(u+":"+d)}return r+t.prototype.toString.call(this)},e}(n.Creative)},24232(t,e,r){"use strict";e.__esModule=!0,e.Creative=void 0;var n=r(10209),i=r(14058);function a(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return o(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}
2function s(t,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},s(t,e)}r(5922),r(22436),e.Creative=function(t){function e(e){var r;return(r=t.call(this)||this).advertId=e.advertId?e.advertId:"",r.creativeId=e.id?e.id:"",r.universalAdIds=e.universalAdIds,r.sequence=e.sequence,r.adParameters=e.adParameters,r.extensions=null,r.nonLinear=!1,r}var r,i;i=t,(r=e).prototype=Object.create(i.prototype),r.prototype.constructor=r,s(r,i);var o=e.prototype;return o.postParse=function(t){if(this.extensions=t,this.companionExtensions)for(var e,r=a(this.companionExtensions.getChildren());!(e=r()).done;){var n=e.value;this.extensions.addChild(n)}},o.getAdvertIdentifier=function(){return this.advertId},o.getAdParameters=function(){return this.adParameters},o.getExtensions=function(){return this.extensions},o.getCreativeIdentifier=function(){return this.creativeId},o.getSequence=function(){return this.sequence},o.getUniversalAdIds=function(){return this.universalAdIds},o.isNonLinear=function(){return this.nonLinear},o.setNonLinear=function(t){this.nonLinear=t},o.setVisible=function(t){},o.toString=function(){var t="";if(t+="\n - Id:"+this.creativeId+" AdId:"+this.advertId+" Sequence:"+this.sequence,this.adParameters&&(t+="\n - AdParameters:",t+="\n"+(0,n.toIndentedString)(this.adParameters)),this.universalAdIds){t+="\n - UniversalAdIds:";for(var e,r=a(this.universalAdIds);!(e=r()).done;){var i=e.value;t+="\n"+(0,n.toIndentedString)(i)}}return this.extensions&&(t+="\n - CreativeExtensions:",t+="\n"+(0,n.toIndentedString)(this.extensions)),t},e}(i.CreativeEventHandler)},47363(t,e,r){"use strict";e.__esModule=!0,e.IconClickFallbackImage=void 0;var n=r(92704),i=r(10209);function a(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return o(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}
2function s(t,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},s(t,e)}r(85085),r(5922),e.IconClickFallbackImage=function(t){function e(e,r,n){var i;return(i=t.call(this)||this).properties=e||[],i.altText=r,i.resource=n,i}var r,n;n=t,(r=e).prototype=Object.create(n.prototype),r.prototype.constructor=r,s(r,n);var o=e.prototype;return o.getAltText=function(){return this.altText},o.getProperties=function(){return Object.assign([],this.properties)},o.getProperty=function(t){for(var e,r=a(this.properties);!(e=r()).done;){var n=e.value;if(n.getName()===t)return n}return null},o.getResource=function(){return this.resource},o.isValid=function(){return!(0,i.isNullOrEmpty)(this.altText)||Boolean(this.resource)},o.toString=function(){var t="";this.properties.length>0&&(t+="\nIconClickFallbackImage Properties: ");for(var e,r=a(this.properties);!(e=r()).done;){var n=e.value;t+="\n"+(0,i.toIndentedString)(n)}return t+="\nAlt Text: "+this.altText,this.resource&&(t+="\nIcon Resource: "+this.resource),t},e}(n.XmlValidation)},80782(t,e,r){"use strict";e.__esModule=!0,e.IndustryIcon=void 0;var n=r(38351),i=r(10209),a=r(14058),o=r(37178),s=(r(47363),r(85085),r(5922),r(41493));function c(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return l(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function u(t,e){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},u(t,e)}e.IndustryIcon=function(t){function e(e,r,i,a,o){var s;(s=t.call(this)||this).resources=new Map,s.visible=!1,s.properties=e||[],s.videoClicks=i||new n.VideoClicks,s.clickFallbackImages=a||[],s.broker=o;for(var l,u=c(r);!(l=u()).done;){var d=l.value;s.resources.set(d.getResourceType(),d)}return s}var r,a;a=t,(r=e).prototype=Object.create(a.prototype),r.prototype.constructor=r,u(r,a);var l=e.prototype;return l.getClickFallbackImages=function(){return Object.assign([],this.clickFallbackImages)},l.getClickThroughUrl=function(){return this.videoClicks.getClickThroughUrl()},l.getClickTrackingUrls=function(){return this.videoClicks.getClickTrackingUrls()},l.isVisible=function(){return this.visible},l.getViewTrackingUrls=function(){return this.videoClicks.getCustomClicks()},l.getProperties=function(){return Object.assign([],this.properties)},l.getProperty=function(t){for(var e,r=c(this.properties);!(e=r()).done;){var n=e.value;if(n.getName()===t)return n}},l.getResource=function(t){return this.resources.get(t)},l.getResources=function(){return this.resources},l.isValid=function(){for(var t,e=null,r=null,n=null,a=null,o=null,s=c(this.properties);!(t=s()).done;){var l=t.value,u=l.getValue();(0,i.isNullOrEmpty)(u)||("program"===l.getName()&&(e=l),"width"===l.getName()&&(r=l),"height"===l.getName()&&(n=l),"xPosition"===l.getName()&&(a=l),"yPosition"===l.getName()&&(o=l))}return null!==r&&null!==n&&null!==e&&null!==a&&null!==o&&this.resources.size>0},l.onClickThrough=function(){if(this.isVisible()){var t=this.videoClicks.getClickTrackingUrls();if(t.length>0){var e=(0,s.getClickTrackingReport)(t,"IconClickTracking");e&&this.broker.fireTrackingReportForIcon(e,this)}}},l.onTrackingEvent=function(t){},l.setVisible=function(t){if(this.visible!==t&&(this.visible=t,this.visible&&this.videoClicks.getCustomClicks().length>0)){var e=new o.TrackingReport("IconViewTracking",this.videoClicks.getCustomClicks());e&&this.broker.fireTrackingReportForIcon(e,this)}},l.toString=function(){var t="";t+=this.videoClicks.toString(),this.properties.length>0&&(t+="\nIcon Properties: ");for(var e,r=c(this.properties);!(e=r()).done;){var n=e.value;t+="\n"+(0,i.toIndentedString)(n)}this.resources.length>0&&(t+="\nIcon Resource(s): ");for(var a,o=c(this.resources);!(a=o()).done;){var s=a.value,l=s[0],u=s[1];t+=(0,i.toIndentedString)(l+":"+u)}this.clickFallbackImages.length>0&&(t+="\nIcon Click Fallback Images: ");for(var d,h=c(this.clickFallbackImages);!(d=h()).done;){var g=d.value;t+="\n"+(0,i.toIndentedString)(g)}return t},e}(a.CreativeEventHandler)},71936(t,e,r){"use strict";
2e.__esModule=!0,e.InteractiveCreative=void 0;var n=r(10209),i=r(37178),a=r(14058),o=(r(43910),r(5922),r(49573)),s=r(48762);function c(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return l(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function u(t,e){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},u(t,e)}e.InteractiveCreative=function(t){function e(e,r,n,i){var a;return(a=t.call(this)||this).source=e,a.properties=r||[],a.broker=n,a.adParameters=null,a.advertDuration=0,a.tracking=null,a.offset=0,a.visible=!1,a.nonLinearCreatives=[],a.isSIMID()&&(a.tracking=i),a}var r,a;a=t,(r=e).prototype=Object.create(a.prototype),r.prototype.constructor=r,u(r,a);var l=e.prototype;return l.getAdParameters=function(){return this.adParameters},l.getAdvertDuration=function(){return this.advertDuration},l.getNonLinearCreatives=function(){return this.nonLinearCreatives},l.getProperties=function(){return Object.assign([],this.properties)},l.getProperty=function(t){for(var e,r=c(this.properties);!(e=r()).done;){var n=e.value;if(n.getName()===t)return n}return null},l.getSource=function(){return this.source},l.getTracking=function(){return this.tracking},l.initialise=function(t,e,r){this.adParameters=t,this.advertDuration=e,this.nonLinearCreatives=[];var n=this.getProperty("apiFramework");if(n)for(var i,a=n.getValue(),o=c(r);!(i=o()).done;){var s=i.value,l=s.getProperty("apiFramework");l&&l.getValue()===a&&this.nonLinearCreatives.push(s)}},l.isSIMID=function(){for(var t,e=c(this.properties);!(t=e()).done;){var r=t.value;if("apiFramework"===r.getName()&&"SIMID"===r.getValue())return!0}return!1},l.isValid=function(){return!(0,n.isNullOrEmpty)(this.source)},l.isVisible=function(){return this.visible},l.onClickThrough=function(){},l.onTrackingEvent=function(t){this.isVisible()?(0,s.getUrl)(t)?this.isSIMID()&&this.broker.fireTrackingReport(new i.TrackingReport("custom",[t])):o.YoLog.w("Invalid custom tracker URL"):o.YoLog.w("Warning: InteractiveCreative is not visible")},l.setTracking=function(t){this.tracking=t},l.setVisible=function(t){this.visible!==t&&(this.visible=t,this.visible&&this.isSIMID()&&this.tracking&&this.broker.fireTrackingReport(this.tracking))},l.toString=function(){var t="InteractiveCreative source: "+this.source;if(this.properties.length>0){t+="\nProperties:";for(var e,r=c(this.properties);!(e=r()).done;){var i=e.value;t+=(0,n.toIndentedString)(i)}}return this.tracking&&(t+="\nTracking event:",t+=(0,n.toIndentedString)("\n "+this.tracking)),t},e}(a.CreativeEventHandler)},52205(t,e,r){"use strict";e.__esModule=!0,e.LinearCreative=void 0;var n=r(24232),i=r(80674),a=r(38351),o=r(49573),s=r(37178),c=r(41493),l=r(10209);function u(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return d(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?d(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}
2function h(t,e){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},h(t,e)}e.LinearCreative=function(t){function e(e,r,n,o){var s;return(s=t.call(this,e)||this).duration=(0,i.timeStringToMillis)(e.duration,0),s.trackingMap=e.trackingMap?e.trackingMap:new Map,s.videoClicks=r||new a.VideoClicks("",null,null),s.icons=e.icons,s.assetUri=e.currentAssetUri?e.currentAssetUri:"",s.interactiveCreative=n,s.skipOffset=e.skipOffset,s.broker=o,s}var r,n;n=t,(r=e).prototype=Object.create(n.prototype),r.prototype.constructor=r,h(r,n);var d=e.prototype;return d.getAssetUri=function(){return this.assetUri},d.getClickThroughUrl=function(){return this.videoClicks.getClickThroughUrl()},d.getClickTrackingUrls=function(){return this.videoClicks.getClickTrackingUrls()},d.getCustomClickUrls=function(){return this.videoClicks.getCustomClicks()},d.getDuration=function(){return this.duration},d.getIndustryIcons=function(){return Object.assign([],this.icons)},d.getInteractiveCreative=function(){return this.interactiveCreative},d.getSkipOffset=function(){if(!this.skipOffset||""===this.skipOffset)return-1;if(-1!==this.skipOffset.indexOf("%")){var t=parseFloat(this.skipOffset.substring(0,this.skipOffset.length-1));return t?Math.round(t*this.duration/100):(o.YoLog.w("Invalid skipoffset string: "+this.skipOffset),-1)}return(0,i.timeStringToMillis)(this.skipOffset,-1)},d.getTrackingMap=function(){return this.trackingMap},d.getTrackingReport=function(t){return this.trackingMap.has(t)?this.trackingMap.get(t):null},d.initialiseInteractiveCreative=function(t){this.interactiveCreative&&this.interactiveCreative.initialise(this.getAdParameters(),this.duration,t)},d.isNonLinear=function(){return!1},d.isValid=function(){return this.duration>0},d.onClickThrough=function(){var t=this.videoClicks.getClickTrackingUrls();if(t.length>0){var e=(0,c.getClickTrackingReport)(t,"ClickTracking");this.broker.fireTrackingReportForCreative(e,this)}
2this.broker.raiseTrackingCallbackForCreative("ClickTracking",this)},d.onTrackingEvent=function(t){if("customClick"===t){var e=this.videoClicks.getCustomClicks();if(e.length){var r=new s.TrackingReport(t,e);this.broker.fireTrackingReportForCreative(r,this)}}else{if(s.TrackingReport.isValidPlayerOperationEvent(t))return void o.YoLog.w("Use PlaybackEventHandler functions to signal event "+t);if(s.TrackingReport.isTimelineEvent(t))return void o.YoLog.w("Invalid event: "+t+". Timeline events are signalled by position updates");var n=this.trackingMap.get(t);n&&this.broker.fireTrackingReportForCreative(n,this)}},d.setDuration=function(t){this.duration=t},d.toString=function(){var e="";if(this.trackingMap.size>0){e+="\n ** Tracking events - ";for(var r,n=u(this.trackingMap);!(r=n()).done;){var i=r.value,a=i[0],o=i[1];e+=(0,l.toIndentedString)("\n "+a+":"+o)}}var s="";if(this.icons.length>0){s+="\n ** Industry Icon(s) - ";for(var c,d=u(this.icons);!(c=d()).done;)s+=c.value}var h="\n--- Linear Creative:\n - assetUri:";return h+=this.assetUri,this.interactiveCreative&&(h+=this.interactiveCreative),h+=t.prototype.toString.call(this),(0,l.isNullOrEmpty)(this.skipOffset)||(h+="\n - SkipOffset:",h+=this.skipOffset),h+=e,(h+=(0,l.toIndentedString)(this.videoClicks))+s},e}(n.Creative)},7349(t,e,r){"use strict";e.__esModule=!0,e.NonLinearAds=void 0;var n=r(10209);function i(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return a(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}e.NonLinearAds=function(){function t(t,e){this.trackingMap=t||new Map,this.nonLinearCreatives=e||[]}var e=t.prototype;return e.allNonLinearsAreInactive=function(){for(var t,e=i(this.nonLinearCreatives);!(t=e()).done;)if(t.value.isVisible())return!1;return!0},e.containsCreative=function(t){return-1!==this.nonLinearCreatives.indexOf(t)},e.getNonLinearCreatives=function(){return Object.assign([],this.nonLinearCreatives)},e.getNonLinearCreativesByType=function(t){for(var e,r=[],n=i(this.nonLinearCreatives);!(e=n()).done;){var a=e.value;a.getResource(t)&&r.push(a)}return r},e.getTrackingMap=function(){return this.trackingMap},e.getTrackingReport=function(t){if(!this.allNonLinearsAreInactive())return this.trackingMap.get(t)},e.postParse=function(){for(var t,e=i(this.nonLinearCreatives);!(t=e()).done;)t.value.setTrackingReports(this.trackingMap)},e.prefetchResources=function(t){for(var e,r=i(this.nonLinearCreatives);!(e=r()).done;)e.value.prefetchResources(t)},e.toString=function(){if(this.nonLinearCreatives.length>0){var t="\n--- NonLinear Ads:";if(this.trackingMap.size>0){t+="\n ** Tracking events - ";for(var e,r=i(this.trackingMap);!(e=r()).done;){var a=e.value,o=a[0],s=a[1];t+=(0,n.toIndentedString)("\n "+o+":"+s)}}for(var c,l=i(this.nonLinearCreatives);!(c=l()).done;){var u=c.value;t+=(0,n.toIndentedString)(u)}return t}return""},t}()},43910(t,e,r){"use strict";e.__esModule=!0,e.NonLinearCreative=void 0;var n=r(24232),i=r(38351),a=r(41493),o=r(10209),s=r(49573),c=r(37178);function l(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return u(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}
2function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}r(5922),r(85085),e.NonLinearCreative=function(t){function e(e,r,n,a){var o;if((o=t.call(this,e)||this).resources=new Map,o.visible=!1,o.videoClicks=r||new i.VideoClicks("",null,null),o.properties=e.properties?e.properties:[],o.broker=a,o.trackingMap=new Map,n)for(var s,c=l(n);!(s=c()).done;){var u=s.value;o.resources.set(u.getResourceType(),u)}return o}var r,n;n=t,(r=e).prototype=Object.create(n.prototype),r.prototype.constructor=r,d(r,n);var u=e.prototype;return u.getApiFramework=function(){var t=this.getProperty("apiFramework");return t?t.getValue():null},u.getClickThroughUrl=function(){return this.videoClicks.getClickThroughUrl()},u.getClickTrackingUrls=function(){return this.videoClicks.getClickTrackingUrls()},u.getProperties=function(){return Object.assign([],this.properties)},u.getProperty=function(t){for(var e,r=l(this.properties);!(e=r()).done;){var n=e.value;if(n.getName()===t)return n}return null},u.getResource=function(t){return this.resources.get(t)},u.getResources=function(){return this.resources},u.getTrackingReports=function(){return this.trackingMap},u.isValid=function(){return(0,a.isValidSize)(this.properties)&&this.resources.size>0},u.isVisible=function(){return this.visible},u.onClickThrough=function(){if(this.visible){var t=this.videoClicks.getClickTrackingUrls();if(t.length>0){var e=(0,a.getClickTrackingReport)(t,"NonLinearClickTracking");e&&this.broker.fireTrackingReportForCreative(e,this)}}else s.YoLog.w("Nonlinear creative is not visible")},u.onTrackingEvent=function(t){if(this.visible)if(c.TrackingReport.isValidVisibleEvent(t))s.YoLog.w("Use method setVisible() to signal event: "+t);else if(!c.TrackingReport.isValidPlayerOperationEvent(t)||this.isNonLinear)if(c.TrackingReport.isValidNonLinearEvent(t)){var e=this.trackingMap.get(t);e&&this.broker.fireTrackingReportForCreative(e,this),"acceptInvitation"===t&&this.broker.raiseTrackingCallbackFor
2Creative(t,this)}else s.YoLog.w("Invalid tracking event: "+t);else s.YoLog.w("Use PlaybackEventHandler functions to signal event: "+t);else s.YoLog.w("Nonlinear creative is not visible")},u.prefetchResources=function(t){(0,a.prefetch)(this.resources,t)},u.setTrackingReports=function(t){this.trackingMap=t},u.setVisible=function(t){if(this.visible!==t){this.visible=t;var e;(e=t?this.trackingMap.get("creativeView"):this.trackingMap.get("close"))&&this.broker.fireTrackingReportForCreative(e,this)}},u.toString=function(){var e="\n--- NonLinear Creative:";e+=(0,o.toIndentedString)(this.videoClicks),this.properties.length>0&&(e+="\n - NonLinear Properties: ");for(var r,n=l(this.properties);!(r=n()).done;){var i=r.value;e+="\n"+(0,o.toIndentedString)(i)}this.resources.size>0&&(e+="\n - NonLinear Resource(s): ");for(var a,s=l(this.resources);!(a=s()).done;){var c=a.value,u=c[0],d=c[1];e+=(0,o.toIndentedString)(u+":"+d)}return e+t.prototype.toString.call(this)},e}(n.Creative)},42167(t,e,r){"use strict";e.__esModule=!0,e.ReportsManager=e.ReportingParams=void 0;var n=r(80674),i=r(37178),a=r(49573),o=r(48762),s=r(10209),c=r(81763),l=r(16296),u=r(45734),d=r(89219);function h(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return g(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?g(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function g(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}e.ReportsManager=function(){function t(t,e){this.properties=t,this.suppress=!1,this.observers=[],this.addTrackingError=e}var e=t.prototype;return e.addAnalyticObserver=function(t){t?this.observers.push(t):a.YoLog.e("addAnalyticObserver: listener was null")},e.applyEncryptedTracking=function(t){return this.properties.getApplyEncryptedTracking()&&(t=t.replace("http:","https:")),t},e.fire=function(t,e){var r=this,n={};this.properties.getAllowCorsForAnalytics()?(0,s.isNullOrEmpty)(this.properties.getUserAgent())||(n.headers=(0,o.createHeaders)(this.properties.getUserAgent())):n.mode="no-cors";for(var i,l=function(){var s=i.value;if(r.performMacroSubstitutionForUrl(s,e),r.applyEncryptedTracking(s),(0,o.getUrl)(s))a.YoLog.d(a.DebugFlags.DEBUG_REPORTS,"Firing report url: "+s),c.HttpConnection.get(s,n,r.properties.getResourceTimeout()).then(function(e){if(!e.ok&&0!==e.status){var n=new u.TrackingError(s,e.status,t.trackingEvent,t.getAdBreakIdentifier(),t.getMediaIdentifier());r.addTrackingError(n)}});else{a.YoLog.e("Invalid report URL: "+s);var l=new u.TrackingError(s,d.MALFORMED_URL,t.trackingEvent,t.getAdBreakIdentifier(),t.getMediaIdentifier());r.addTrackingError(l)}},g=h(t.getTrackingUrls());!(i=g()).done;)l()},e.fireBeacon=function(t,e){if(t&&t.getTrackingUrls().length>0&&!this.shouldSuppress(t.event))try{this.fire(t,e)}catch(t){throw a.YoLog.e("Unable to fire tracking URLs for report: "+t),t}},e.fireBeacons=function(t,e){for(var r,n=[],a=h(t);!(r=a()).done;)for(var o,s=h(r.value.getTrackingUrls());!(o=s()).done;){var c=o.value;n.push(c)}this.fireBeacon(new i.TrackingReport("",n),e)},e.performMacroSubstitutionForUrl=function(t,e){var r,i=(0,n.millisToTimestamp)(Date.now()),a=(0,n.millisToTimeString)(e.getPlayhead()),o=-1===e.getAdvertStart()?"-1":(0,n.millisToTimeString)(e.getAdvertStart());r=encodeURIComponent(e.getAssetUri()),i=encodeURIComponent(i),a=encodeURIComponent(a),o=encodeURIComponent(o);var s=1e7+Math.round(1e8*Math.random());t=t.replace("[ASSETURI]",r).replace("%5BASSETURI%5D",r).replace("[CACHEBUSTING]",s).replace("%5BCACHEBUSTING%5D",s).replace("[TIMESTAMP]",i).replace("%5BTIMESTAMP%5D",i).replace("[CONTENTPLAYHEAD]",a).replace("%5BCONTENTPLAYHEAD%5D",a).replace("[MEDIAPLAYHEAD]",a).replace("%5BMEDIAPLAYHEAD%5D",a).replace("[ADPLAYHEAD]",o).replace("%5BADPLAYHEAD%5D",o);for(var c,l=h(e.getMacroSubstitutions());!(c=l()).done;){var u=c.value,d=u[0],g=u[1];
2t=t.replace("["+d+"]",g).replace("%5B"+d+"%5D",g)}return(t=t.replace(/\[(.*?)]/g,"-1")).replace(/%5B(.*)%5D/g,"-1")},e.raiseAdBreakEarlyReturn=function(t,e){a.YoLog.trace("earlyreturn");for(var r,n=h(this.observers);!(r=n()).done;){var i=r.value;(0,l.raiseCallback)(i,i.onAdvertBreakEarlyReturn,t,e)}},e.raiseAdBreakCallback=function(t,e,r){if("start"===t)for(var n,i=h(this.observers);!(n=i()).done;){var a=n.value;(0,l.raiseCallback)(a,a.onAdvertBreakStart,e,r)}else if("end"===t)for(var o,s=h(this.observers);!(o=s()).done;){var c=o.value;(0,l.raiseCallback)(c,c.onAdvertBreakEnd,r)}},e.raiseAdvertCallback=function(t,e,r){if("start"===t)for(var n,i=h(this.observers);!(n=i()).done;){var a=n.value;(0,l.raiseCallback)(a,a.onAdvertStart,e,r)}else if("end"===t)for(var o,s=h(this.observers);!(o=s()).done;){var c=o.value;(0,l.raiseCallback)(c,c.onAdvertEnd,r)}},e.raiseAnalyticUpdateCallback=function(t){if(!this.suppress)for(var e,r=h(this.observers);!(e=r()).done;){var n=e.value;(0,l.raiseCallback)(n,n.onAnalyticUpdate,t)}},e.raiseSessionErrorCallback=function(t,e){for(var r,n=h(this.observers);!(r=n()).done;){var i=r.value;(0,l.raiseCallback)(i,i.onSessionError,t,e)}},e.raiseTrackingCallback=function(t,e){if(!this.shouldSuppress(t))for(var r,n=h(this.observers);!(r=n()).done;){var i=r.value;(0,l.raiseCallback)(i,i.onTrackingEvent,t,e)}},e.raiseTrackingErrorCallback=function(t,e){for(var r,n=h(this.observers);!(r=n()).done;){var i=r.value;(0,l.raiseCallback)(i,i.onTrackingError,t,e)}},e.removeAnalyticObserver=function(t){this.observers.splice(this.observers.indexOf(t))},e.reportsSuppressed=function(){return this.suppress},e.shouldSuppress=function(t){var e=i.TrackingReport.categoryForEvent(t);return 0===(this.properties.getExcludedCategories()&e)&&this.suppress},e.suppressReports=function(t){this.suppress!==t&&(this.suppress=t,a.YoLog.d(a.DebugFlags.DEBUG_REPORTS,t?"Suppress reports":"Unsuppress reports"))},t}(),e.ReportingParams=function(){function t(t,e,r,n){this.playhead=t,this.advertStart=e&&e>=0?t-e:-1,this.assetUri=r||"",this.macroSubstitutions=n||new Map}var e=t.prototype;return e.getAdvertStart=function(){return this.advertStart},e.getAssetUri=function(){return this.assetUri},e.getMacroSubstitutions=function(){return this.macroSubstitutions},e.getPlayhead=function(){return this.playhead},t}()},85085(t,e,r){"use strict";e.__esModule=!0,e.ResourceType=e.Resource=void 0;var n=r(10209),i=r(92704),a=r(49573),o=r(81763);
2function s(t,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},s(t,e)}var c=e.ResourceType={STATIC:0,HTML:1,IFRAME:2,UNKNOWN:3};e.Resource=function(t){function e(e,r,n,i){var a;switch(a=t.call(this)||this,e){case c.STATIC:a.stringData=r,a.creativeType=n,a.encoded=!1,a.type=e;break;case c.IFRAME:a.stringData=r,a.creativeType=null,a.type=e,a.encoded=!1;break;case c.HTML:a.stringData=r,a.creativeType=null,a.type=e,a.encoded=i}return a.byteData=null,a.isFallbackImage=!1,a}var r,i;i=t,(r=e).prototype=Object.create(i.prototype),r.prototype.constructor=r,s(r,i);var l=e.prototype;return l.getByteData=function(){return this.byteData},l.getCreativeType=function(){return this.creativeType},l.getResourceType=function(){return this.type},l.getStringData=function(){return this.stringData},l.isEncoded=function(){return this.encoded},l.isValid=function(){switch(this.type){case c.STATIC:if((0,n.isNullOrEmpty)(this.stringData)||(0,n.isNullOrEmpty)(this.creativeType)&&!this.isFallbackImage)return!1;break;case c.HTML:if(!this.stringData||""===this.stringData)return!1;break;case c.IFRAME:try{new URL(this.stringData)}catch(t){return!1}break;default:return!1}return!0},l.prefetch=function(t){var e=this;this.byteData||this.type===c.HTML||this.type===c.UNKNOWN||o.HttpConnection.get(this.stringData,{},t).then(function(t){t.ok?e.byteData=t.body:a.YoLog.e("Resource prefetch request failed: "+e.stringData+", status: "+t.status+", error:"+t.statusText)})},l.toString=function(){var t="";switch(this.type){case c.STATIC:t+="\nStatic resource (",t+=this.creativeType,t+="): ",t+=this.stringData;break;case c.HTML:t+="\nHTML resource (",t+=this.encoded?"encoded): ":"unencoded): ",t+=(0,n.formatHtml)(this.stringData);break;case c.IFRAME:t+="\niFrame resource: ",t+=this.stringData}return t},l.setFallbackImage=function(t){this.isFallbackImage=t},e}(i.XmlValidation)},37178(t,e,r){"use strict";e.__esModule=!0,e.TrackingReport=void 0;var n=r(63575),i=r(49573);function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}e.TrackingReport=function(){function t(t,e,r,n){this.trackingEvent=t,this.trackingUrls=JSON.parse(JSON.stringify(e||[])),this.adBreakIdentifier=r||"",this.mediaIdentifier=n||""}t.categoryForEvent=function(e){return t.isValidAdBreakEvent(e)?n.CAT_AD_BREAK_EVENTS:t.isTimelineEvent(e)?n.CAT_TIMELINE_EVENTS:0},t.isValidPlayerOperationEvent=function(t){return-1!==n.PLAYER_OPERATION_EVENTS.indexOf(t)},t.isValidCompanionEvent=function(t){return-1!==n.COMPANION_EVENTS.indexOf(t)},t.isValidInteractiveEvent=function(t){return-1!==n.INTERACTIVE_EVENTS.indexOf(t)},t.isValidLinearEvent=function(t){return-1!==n.LINEAR_EVENTS.indexOf(t)},t.isValidNonLinearEvent=function(t){return-1!==n.NON_LINEAR_EVENTS.indexOf(t)},t.isValidVerificationEvent=function(t){return-1!==n.VERIFICATION_EVENTS.indexOf(t)},t.isTimelineEvent=function(t){return-1!==n.TIMELINE_EVENTS.indexOf(t)},t.isValidAdBreakEvent=function(t){return-1!==n.AD_BREAK_EVENTS.indexOf(t)},t.isValidVisibleEvent=function(t){return-1!==n.VISIBLE_EVENTS.indexOf(t)},t.mapLegacyEvent=function(t){return n.LEGACY_EVENT_MAPPING[t]};var e=t.prototype;return e.copy=function(){return new t(this.trackingEvent,this.trackingUrls,this.adBreakIdentifier,this.mediaIdentifier)},e.addTrackingUrl=function(t){t?this.trackingUrls.push(t):i.YoLog.e("addTrackingUrl: url was null")},e.getAdBreakIdentifier=function(){return this.adBreakIdentifier},e.getEventType=function(){return this.trackingEvent},e.getMediaIdentifier=function(){return this.mediaIdentifier},e.getTrackingUrls=function(){return Object.assign([],this.trackingUrls)},e.removeTrackingUrls=function(){this.trackingUrls=[]},e.toString=function(){var t="";t+="Event:",t+=this.trackingEvent;for(var e,r=function(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return a(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(this.trackingUrls);!(e=r()).done;)t+="\n - Url:",t+=e.value;return t},t}()},5922(t,e,r){"use strict";
2e.__esModule=!0,e.VASTProperty=void 0;var n=r(10209);function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}e.VASTProperty=function(){function t(t,e,r,n){this.name=t,this.value=e||"",this.attributes=new Map,r&&n&&this.addAttribute(r,n)}var e=t.prototype;return e.addAttribute=function(t,e){this.attributes.set(t,e)},e.getName=function(){return this.name},e.getValue=function(){return this.value},e.getAttributes=function(){return this.attributes},e.setValue=function(t){this.value=t},e.toString=function(){var t="";if(t+="Property Name: ",t+=this.name,(0,n.isNullOrEmpty)(this.value)||(t+=", Value: ",t+=this.value),this.attributes.size>0){t+=", Attributes:{";for(var e,r=function(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return i(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(this.attributes);!(e=r()).done;){var a=e.value;t+=a[0]+":"+a[1]+" "}t+="}"}return t},t}()},38351(t,e,r){"use strict";e.__esModule=!0,e.VideoClicks=void 0;var n=r(10209);function i(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return a(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}e.VideoClicks=function(){function t(t,e,r){this.clickThroughUrl=t||"",this.clickTrackingUrls=e||[],this.customClicks=r||[]}var e=t.prototype;return e.getClickThroughUrl=function(){return this.clickThroughUrl},e.getClickTrackingUrls=function(){return this.clickTrackingUrls},e.getCustomClicks=function(){return this.customClicks},e.toString=function(){var t="";if((0,n.isNullOrEmpty)(this.clickThroughUrl)||(t+="\n* Click-through Url: ",t+=this.clickThroughUrl),this.clickTrackingUrls.length>0)for(var e,r=i(this.clickTrackingUrls);!(e=r()).done;)t+="\n* Click tracking Url: ",t+=e.value;if(this.customClicks.length>0)for(var a,o=i(this.customClicks);!(a=o()).done;)t+="\n* Custom click Url: ",t+=a.value;return t},t}()},22436(t,e,r){"use strict";e.__esModule=!0,e.XmlNode=void 0;var n=r(10209);function i(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return a(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}e.XmlNode=function(){function t(t,e){this.name=t,this.attributes=e||new Map,this.text="",this.children=[]}t.attributeToString=function(t,e){return" "+t+'="'+e+'"'};var e=t.prototype;return e.getAttributes=function(){return this.attributes},e.getAttribute=function(t){return this.attributes.get(t)},e.getChildren=function(){return this.children},e.getInnerText=function(){return this.text},e.getName=function(){return this.name},e.addChild=function(t){this.children.push(t)},e.setInnerText=function(t){this.text=t},e.toString=function(){var e="<";e+=this.name;for(var r,a=i(this.attributes);!(r=a()).done;){var o=r.value,s=o[0],c=o[1];e+=t.attributeToString(s,c)}if(0===this.children.length&&(0,n.isNullOrEmpty)(this.text))e+="/>";else{e+=">",(0,n.isNullOrEmpty)(this.text)||(e+=this.text);for(var l,u=i(this.children);!(l=u()).done;){var d=l.value;e+=(0,n.toIndentedString)("\n"+d)}(0,n.isNullOrEmpty)(this.text)||0!==this.children.length?e+=(0,n.toUnindentedString)("\n</"+this.name+">"):(e+="</",e+=this.name,e+=">")}return e},t}()},37841(t,e){"use strict";function r(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return n(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var i=0;return function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}e.__esModule=!0,e.AnalyticPayload=void 0,e.AnalyticPayload=function(){function t(t,e){if(t){this.linearAdBreaks=t.linearAdBreaks?t.linearAdBreaks:[],this.nonLinearAdBreaks=t.nonLinearAdBreaks?t.nonLinearAdBreaks:[],this.displayAdBreaks=t.displayAdBreaks?t.displayAdBreaks:[];var r=t.getStreamData();this.processStreamData(r)}this.setHash(e)}var e=t.prototype;return e.getDisplayAdBreaks=function(){return this.displayAdBreaks},e.getEarlyReturn=function(){return this.earlyReturn},e.getLinearAdBreaks=function(){return this.linearAdBreaks},e.getHasPlaceholder=function(){return this.hasPlaceholder},e.getHostNode=function(){return this.hostNode},e.getHostSuffix=function(){return this.hostSuffix},e.getNonLinearAdBreaks=function(){return this.nonLinearAdBreaks},e.getPdtInitial=function(){return this.pdtInitial},e.getPdtStart=function(){return this.pdtStart},e.getPdtEnd=function(){return this.pdtEnd},e.getSessionIdentifier=function(){return this.sessionIdentifier},e.getStreamDuration=function(){return this.streamDuration},e.hasAdBreaks=function(){return this.linearAdBreaks.length>0||this.nonLinearAdBreaks.length>0||this.displayAdBreaks.length>0},e.isEqualTo=function(t){return this.hashCode===t.hashCode},e.processStreamData=function(t){this.sessionIdentifier=t.getSessionIdentifier(),this.streamDuration=t.getDuration(),this.hostNode=t.getHostNode(),this.hostSuffix=t.getHostSuffix(),this.pdtInitial=t.getPdtInitial(),this.pdtStart=t.getPdtStart(),this.pdtEnd=t.getPdtEnd(),this.earlyReturn=t.getEarlyReturn(),this.hasPlaceholder=t.getHasPlaceholder()},e.setHash=function(t){if(t){var e,r=0;for(e=0;e<t.length;e++)r=(r<<5)-r+t.charCodeAt(e),r&=r;this.hashCode=r}},e.toString=function(){for(var t,e="Linear AdBreaks:",n=r(this.linearAdBreaks);!(t=n()).done;)e+="\n"+t.value;e+="\n\nNonLinear AdBreaks:";for(var i,a=r(this.nonLinearAdBreaks);!(i=a()).done;)e+="\n"+i.value;e+="\n\nDisplay AdBreaks:";for(var o,s=r(this.displayAdBreaks);!(o=s()).done;)e+="\n"+o.value;return e+="\n\nHostNode:",e+="\n"+this.hostNode,e+="\n\nHostSuffix:",e+="\n"+this.hostSuffix,e+="\n\nSessionIdentifier:",e+="\n"+this.sessionIdentifier,e+="\n\nStreamDuration:",e+="\n"+this.streamDuration,e+="\n\npdtInitial:",e+="\n"+this.pdtInitial,e+="\n\npdtStart:",e+="\n"+this.pdtStart,e+="\n\npdtEnd:",e+="\n"+this.pdtEnd,(e+="mmearlyReturn:")+"\
2n"+this.earlyReturn},t}()},29918(t,e,r){"use strict";e.__esModule=!0,e.DashManifestParser=void 0;var n,i=r(49573),a=r(17814),o=(n=r(46470))&&n.__esModule?n:{default:n},s=r(63575);e.DashManifestParser=function(){function t(){this.data=new Map,this.s="",this.error=null,this.onError=this.onError.bind(this),this.onText=this.onText.bind(this),this.onOpenTag=this.onOpenTag.bind(this),this.onCloseTag=this.onCloseTag.bind(this),this.onCdata=this.onCdata.bind(this)}t.parse=function(e){return e&&0!==e.length?(new t).parse(e):(i.YoLog.e("Yospace DASH manifest is empty"),null)};var e=t.prototype;return e.parse=function(t){var e=o.default.parser(!0);return e.onerror=this.onError,e.ontext=this.onText,e.onopentag=this.onOpenTag,e.onclosetag=this.onCloseTag,e.oncdata=this.onCdata,e.write(t),this.error?null:new a.PlaylistPayload(this.data,1600)},e.onCdata=function(t){this.s+=t},e.onError=function(t){i.YoLog.e("Parsing error: "+t),this.error=!0},e.onCloseTag=function(t){if("LOCATION"===t.toUpperCase()){var e=this.s.trim();this.data.set(s.Payload.LOCATION,e);var r=e.split(/\?/);try{var n=new URL(r[0]);this.data.set(s.Payload.SCHEME,n.protocol.substring(0,n.protocol.length-1)),this.data.set(s.Payload.HOSTNODE,n.hostname),this.data.set(s.Payload.PORT,n.port),this.data.set(s.Payload.QS,2===r.length?r[1]:null);var a=r[0].match(";jsessionid=([^?\\s]+)");if(a)this.data.set(s.Payload.IDENTIFIER,a[1]);else if(-1!==e.indexOf("yo.js")){var o=e.match("yo.js=([^&]+)");o&&this.data.set(s.Payload.IDENTIFIER,o[1])}void 0===this.data.get(s.Payload.IDENTIFIER)&&(this.error=!0)}catch(t){i.YoLog.e("Failed to parse Location element: "+t),this.error=!0}}},e.onOpenTag=function(t){this.s="","MPD"===t.name.toUpperCase()&&(this.data.set(s.Payload.ANALYTICURL,t.attributes.analytics),this.data.set(s.Payload.PAUSEURL,t.attributes.livePause),this.data.set(s.Payload.AVAILABILITYSTART,new Date(t.attributes.availabilityStartTime)))},e.onText=function(t){this.s=t},t}()},43593(t,e,r){"use strict";e.__esModule=!0,e.HlsManifestParser=void 0;var n=r(10209),i=r(49573),a=r(63575),o=r(17814),s=r(48762);function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var l=/;jsessionid=([^?]+)/,u="yo.js";e.HlsManifestParser=function(){function t(){this.data=new Map,this.nextLineStreamInf=!1}var e=t.prototype;return e.buildPlaybackUrl=function(){var t=this.data.get(a.Payload.LOCATION),e=(0,s.getUrl)(t);if(e&&this.parseUrlComponents(e)){var r=this.data.get(a.Payload.SCHEME)+"//"+this.data.get(a.Payload.HOSTNODE)+this.data.get(a.Payload.PORT)+e.pathname.substring(0,e.pathname.lastIndexOf("/"))+".m3u8";return e.searchParams.has(u)||(r+=";jsessionid="+this.data.get(a.Payload.IDENTIFIER)),r+=e.search,this.data.set(a.Payload.LOCATION,r),!0}return!1},t.checkParameters=function(e){return(0,n.isNullOrEmpty)(e)?(i.YoLog.w("HLS manifest is empty"),!1):t.isHlsManifest(e)?-1!==e.indexOf("#EXT-X-STREAM-INF:")||(i.YoLog.w("No stream info found in HLS manifest"),!1):(i.YoLog.w("Not an HLS manifest"),!1)},t.isHlsManifest=function(t){return t.length>=7&&-1!==t.toUpperCase().indexOf("#EXTM3U")},e.parseManifestLines=function(t){for(var e,r=!1,n=function(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return c(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(t.split(/\r?\n/).filter(function(t){return t.trim().length>0}));!(e=n()).done;){var i=e.value;i.startsWith("#")?r=this.processManifestDirective(i):r&&!this.data.has(a.Payload.LOCATION)&&(this.data.set(a.Payload.LOCATION,i),r=!1)}},e.processManifestDirective=function(t){var e=t.indexOf(":");if(-1===e)return!1;var r=t.substring(e+1),n=t.substring(0,e);if(n.includes("#EXT-X-YOSPACE-ANALYTICS-URL"))this.data.set(a.Payload.ANALYTICURL,r.replace(/"/g,""));else if(n.includes("#EXT-X-STREAM-INF")){if(!this.data.has("FIRSTLEVELPLAYLIST"))return!0}else n.includes("#EXT-X-YOSPACE-PAUSE")?this.data.set(a.Payload.PAUSEURL,r.replace(/"/g,"")):n.includes("#EXT-X-YOSPACE-SDK-MASTER-URL")&&this.data.set("MASTERURL",r.replace(/"/g,""));return!1},e.retrieveMasterUrl=function(){var t=this.data.get("MASTERURL");if(t){var e=(0,s.getUrl)(t);if(e)return this.parseUrlComponents(e),this.data.set(a.Payload.LOCATION,e.toString()),!0;i.YoLog.w("Master Url invalid in HLS manifest: '"+e+"'")}return!1},e.parseUrlComponents=function(t){return!!(this.parseSessionIdentifier(t)&&t.protocol&&t.hostname&&t.pathname)&&(this.data.set(a.Payload.HOSTNODE,t.hostname),this.data.set(a.Payload.PORT,t.port),this.data.set(a.Payload.SCHEME,t.protocol),this.data.set(a.Payload.QS,t.search),!0)},e.parseSessionIdentifier=function(t){var e=t.searchParams.get(u);if(e)return i.YoLog.d(i.DebugFlags.DEBUG_PARSING,"Detected yo.js parameter"),this.data.set(a.Payload.IDENTIFIER,e),!0;var r=t.toString().match(l);return!!r&&(this.data.set(a.Payload.IDENTIFIER,r[1]),!0)},t.parse=function(e){var r=new t;return t.checkParameters(e)?(r.parseManifestLines(e),r.retrieveMasterUrl()||r.buildPlaybackUrl(),new o.PlaylistPayload(r.data,a.Constant.INTERSEGMENT_TIMEOUT)):null},t}()},62121(t,e){"use strict";
2e.__esModule=!0,e.JSONParser=void 0,e.JSONParser=function(){function t(){}return t.isJSON=function(t){return t.toLowerCase().includes("application/json")},t.parseUrl=function(t){var e=JSON.parse(t);return new URL(e.url)},t}()},19811(t,e,r){"use strict";e.__esModule=!0,e.StreamData=e.Parser=e.CreativeData=e.AdvertData=void 0;var n,i=(n=r(46470))&&n.__esModule?n:{default:n},a=r(49573),o=r(80674),s=r(82773),c=r(64275),l=r(8164),u=r(62994),d=r(47363),h=r(80782),g=r(71936),p=r(52205),f=r(7349),v=r(43910),y=r(85085),m=r(5922),E=r(38351),A=r(22436),T=r(37178),k=r(97527),b=r(60353),S=r(10209),I=r(48762),D=r(37841),C=r(70334),P=r(27481);function L(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return N(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?N(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function N(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var _="AdServingId",R="Description",w="vmap:AdBreak",O="vmap:Tracking",M="Category",B="AdSystem",U="Advertiser",F="Survey",V="Pricing",Y="UniversalAdId",x="Extensions",H="Creative",G="Linear",j="Icon",W="IconClickFallbackImage",q="AdParameters",K="InteractiveCreativeFile",X="NonLinearAds",z="NonLinear",Q="CompanionAds",$="Companion",J="StaticResource",Z="HTMLResource",tt="Tracking",et="Verification",rt="JavaScriptResource",nt="ExecutableResource",it="CreativeExtensions",at=function(){function t(){this.clear()}return t.prototype.clear=function(){this.adverts=[],this.timelineTrackingMap=new Map,this.trackingEvent=null,this.start=0,this.duration=0,this.position=null,this.breakType=null,this.identifier=null,this.earlyReturn=null,this.adTagUri=null,this.timeOffset=null,this.vastVersion=null},t}(),ot=e.AdvertData=function(){function t(){this.clear()}var e=t.prototype;return e.clear=function(){this.id=null,this.sequence=null,this.adType=null,this.properties=[],this.linearCreative=null,this.companionAds=null,this.impressions=null,this.errors=null,this.viewableImpressions=new Map,this.adVerifications=[],this.filler=!1,this.nonLinear=!1,this.topLevelWrapper=null,this.extensions=null,this.processingCompanionCreative=!1,this.currentCreativeType=0,this.nonLinearAds=null,this.adSystemVersion=null,this.advertiserId=null,this.categoryAuthority=null,this.pricingModel=null,this.pricingCurrency=null,this.surveyType=null,this.verificationVendor=null,this.verificationEvents=new Map,this.verificationResources=[],this.verificationApiFramework=null,this.verificationBrowserOptional=null,this.verificationParameters=null,this.verificationResourceType=null,this.extensionStack=[],this.identifier="",this.mediaIdentifier=""},e.parseId=function(t){if(this.id=t,this.identifier="",this.mediaIdentifier="",t){var e=t.split("_YO_");2===e.length&&(this.identifier=e[0],this.mediaIdentifier=e[1])}},t}(),st=function(){function t(){this.clear()}return t.prototype.clear=function(){this.required=null,this.companions=[]},t}(),ct=e.CreativeData=function(){function t(){this.clearAll()}var e=t.prototype;return e.clear=function(){this.clickThroughUrl="",this.clickThroughTrackings=[],this.clickThroughCustoms=[],this.nonLinearResources=[],this.duration=null,this.trackingMap=new Map,this.interactiveTracking=null,this.icons=[],this.currentAssetUri=null,this.skipOffset=null,this.adParameters=null,this.staticResourceCreativeType=null,this.trackingEvent=null,this.htmlResourceEncoded=!1,this.altText=null,this.companionExtensionStack=[],this.companionExtensions=null,this.icSource=null,this.properties=[]},e.clearAll=function(){this.advertId=null,this.id=null,this.sequence=null,this.universalAdIds=[],this.universalAdIdRegistry=null,this.extensions=null,this.extensionStack=[],this.clickThroughTrackings=[],this.clickThroughUrl="",this.adParameters=null,this.trackingEvent=null,this.duration=null,this.trackingMap=new Map,this.interactiveTracking=null,this.icons=[],this.currentAssetUri=null,this.skipOffset=null,this.clickThroughCustoms=[],this.nonLinearResources=[],this.staticResourceCreativeType=null,this.htmlResourceEncoded=null,this.altText=null,this.companionExtensions=null,this.companionExtensionStack=[],this.properties=[],this.icSource=null},t}(),lt=function(){function t(){this.clear()}return t.prototype.clear=function(){this.resources=[],this.properties=[],this.clickThroughUrl=null,this.staticResourceCreativeType=null,this.clickTrackings=[],this.clickFallbackImages=[],this.viewTrackings=[],this.htmlResourceEncoded=!1},t}(),ut=function(){function t(){this.clear()}return t.prototype.clear=function(){this.properties=[],this.resource=null,this.staticResourceCreativeType=null,this.altText=null},t}(),dt=function(){function t(){this.clear()}return t.prototype.clear=function(){this.nonLinearCreatives=[],this.trackingMap=new Map},t}(),ht=e.StreamData=function(){function t(){this.sessionIdentifier=null,this.duration=0,this.hostNode=null,this.hostSuffix=null,this.pdtInitial=null,this.pdtStart=null,this.pdtEnd=null,this.earlyReturn=null,this.hasPlaceholder=!1}var e=t.prototype;return e.getSessionIdentifier=function(){return this.sessionIdentifier},e.getDuration=function(){return this.duration},e.getHasPlaceholder=function(){return this.hasPlaceholder},e.getHostNode=function(){return this.hostNode},e.getHostSuffix=function(){return this.hostSuffix},e.getPdtInitial=function(){return this.pdtInitial},e.getPdtStart=function(){return this.pdtStart},e.getPdtEnd=function(){return this.pdtEnd},e.getEarlyReturn=function(){return this.earlyReturn},t}();e.Parser=function(){function t(t){this.broker=t,this.skipNormalisation=!1,this.linearAdBreaks=[],this.nonLinearAdBreaks=[],this.displayAdBreaks=[],this.isVmap=!1,this.isValidVAST=!0,this.processingAdvertExtensions=!1,this.processingCreativeExtensions=!1,this.characters="",this.adBreakData=new at,this.advertData=new ot,this.companionAdsData=new st,this.creativeData=new ct,this.iconData=new lt,this.iconClickFallbackImageData=null,this.nonLinearAdsData=new dt,this.streamData=new ht,this.onCdata=this.onCdata.bind(this),this.onOpenTag=this.onOpenTag.bind(this),this.onCloseTag=this.onCloseTag.bind(this),this.onText=this.onText.bind(this)}var e=t.prototype;return e.addToCreativeExtensionStack=function(t){this.advertData.processingCompanionCreative?this.creativeData.companionExtensionStack.push(t):this.creativeData.extensionStack.push(t)},e.checkAdBreakForParsingErrors=function(t){if(t.getType()===s.BreakType.LINEAR){if(-1===t.getStart()){var e=new P.ParsingError(this.adBreakData.identifier,P.ParsingError.Message.INVALID_START_TIME,P.ParsingError.Message.INVALID_START_TIME+": "+this.adBreakData.timeOffset);this.broker.addParsingError(e)}if(0===t.getAdverts().length&&0===t.getTrackingMap().size){var r=new P.ParsingError(this.adBreakData.identifier,P.ParsingError.Message.EMPTY_ADVERT_AND_TRACKING,"Empty ad break at offset: "+this.adBreakData.timeOffset);this.broker.addParsingError(r)}}},e.checkValidVersion=function(t){var e=parseFloat(t);return!Number.isNaN(e)&&e>=4.2},e.getStreamData=function(){return this.streamData},e.handleCreativeExtensionsForOnEndDefault=function(t){var e=this.advertData.processingCompanionCreative?this.creativeData.companionExtensionStack:this.creativeData.extensionStack,r=e.length;2===r?(this.pop(!1,!0),this.processingCreativeExtensions=!1):r>0&&t===e[r-1].getName()&&this.pop(!1,!0)},e.handleStartAd=function(t){this.advertData.parseId(t.id);var e=parseInt(t.sequence);this.advertData.sequence=Number.isNaN(e)?0:e,Number.isNaN(e)||(this.advertData.sequence=e),this.advertData.adType=t.adType,s.AdBreak.getBreakTypeFromString(this.adBreakData.breakType)!==s.BreakType.LINEAR&&(this.advertData.nonLinear=!0)}
2,e.handleStartAdWrapper=function(t){var e=t.id?t.id:"",r=t.creativeId?t.creativeId:"",n=t.AdSystem?t.AdSystem:"",i=new l.AdvertWrapper(e,r,n);this.advertData.topLevelWrapper&&i.setChild(this.advertData.topLevelWrapper),this.advertData.topLevelWrapper=i},e.handleStartCreative=function(t){this.creativeData.advertId=t.adId,this.creativeData.id=t.id;var e=parseInt(t.sequence);this.creativeData.sequence=isNaN(e)?0:e},e.handleStartCreativeExtension=function(t,e){var r=t.type;-1===(r=r||"").indexOf("com.yospace")&&-1===r.indexOf("AdVerifications")&&(this.processingCreativeExtensions=!0,this.addToCreativeExtensionStack(new A.XmlNode(e.name,(0,C.objectToMap)(t))))},e.handleStartExtension=function(t,e){var r=t.type;-1===(r=r||"").indexOf("com.yospace")&&-1===r.indexOf("AdVerifications")&&(this.processingAdvertExtensions=!0,this.advertData.extensionStack.push(new A.XmlNode(e.name,(0,C.objectToMap)(t))))},e.handleStartExtensionElement=function(t,e){this.processingAdvertExtensions?this.advertData.extensionStack.push(new A.XmlNode(e.name,(0,C.objectToMap)(t))):this.processingCreativeExtensions&&this.addToCreativeExtensionStack(new A.XmlNode(e.name,(0,C.objectToMap)(t)))},e.handleStartHtmlResource=function(t){var e=t.xmlEncoded,r=!!e&&("TRUE"===e.toUpperCase()||"1"===e);this.iconData.properties.length>0?this.iconData.htmlResourceEncoded=r:this.creativeData.htmlResourceEncoded=r},e.handleStartPricing=function(t){var e=t.model;this.advertData.pricingModel=e?e.toUpperCase():"",this.advertData.pricingCurrency=t.currency},e.handleStartStaticResource=function(t){null!=this.iconClickFallbackImageData?this.iconClickFallbackImageData.staticResourceCreativeType=t.creativeType:this.iconData.properties.length>0?this.iconData.staticResourceCreativeType=t.creativeType:this.creativeData.staticResourceCreativeType=t.creativeType},e.handleStartTracking=function(t){if(this.creativeData.trackingEvent=t.event,"progress"===this.creativeData.trackingEvent){var e=t.offset;(0,S.isNullOrEmpty)(e)||(this.creativeData.trackingEvent=this.creativeData.trackingEvent+"-"+e)}},e.handleEndAd=function(){var t=new c.Advert(this.advertData);if(t.isValid())this.adBreakData.adverts.push(t);else if(this.advertData.nonLinear||this.advertData.linearCreative){if((0,S.isNullOrEmpty)(t.mediaIdentifier)){var e=new P.ParsingError(null,P.ParsingError.Message.INVALID_MEDIAID,"Yospace media identifier could not be parsed (advert id: "+this.advertData.id+")");this.broker.addParsingError(e)}}else{var r=new P.ParsingError(null,P.ParsingError.Message.MISSING_CREATIVE,"No creative for advert: "+this.advertData.id);this.broker.addParsingError(r)}t.isValid()||a.YoLog.w("Invalid advert. Discarding ("+this.advertData.id+")"),this.advertData.clear()},e.handleAdvertExtensionsForOnEndDefault=function(t){var e=this.advertData.extensionStack.length;2===e?(this.pop(!0,!0),this.processingAdvertExtensions=!1):e>0&&t===this.advertData.extensionStack[e-1].getName()&&this.pop(!0,!0)},e.handleEndAdTitle=function(){var t=this.characters.trim();this.advertData.properties.push(new m.VASTProperty("AdTitle",t)),"filler"===t&&(this.advertData.filler=!0)},e.handleEndClickTracking=function(){var t=this.characters.trim();(0,I.getUrl)(t)?this.creativeData.clickThroughTrackings.push(t):a.YoLog.w("Discarding click tracking URL:"+t)},e.handleEndCompanion=function(){var t=null;(0,S.isNullOrEmpty)(this.creativeData.clickThroughUrl)||(t=new E.VideoClicks(this.creativeData.clickThroughUrl,this.creativeData.clickThroughTrackings,null));var e=new u.CompanionCreative(this.creativeData,t,this.creativeData.nonLinearResources,this.creativeData.trackingMap,this.broker);e.isValid()?(e.setNonLinear(this.advertData.nonLinear),this.companionAdsData.companions.push(e)):a.YoLog.w("Discarding invalid Companion"),this.creativeData.clear()},e.handleEndCompanionClickTracking=function(){var t=this.characters.trim();(0,I.getUrl)(t)?this.creativeData.clickThroughTrackings.push(t):a.YoLog.w("Discarding empty Companion click tracking URL")},e.handleEndCreative=function(){switch(this.advertData.currentCreativeType){case 1:for(var t,e=L(this.advertData.companionAds.companions);!(t=e()).done;)t.value.postParse(this.creativeData.extensions);break;case 2:this.advertData.linearCreative&&this.advertData.linearCreative.postParse(this.creativeData.extensions);break;case 3:for(var r,n=L(this.advertData.nonLinearAds.nonLinearCreatives);!(r=n()).done;)r.value.postParse(this.creativeData.extensions)}this.creativeData.clearAll()},e.handleEndCustomClick=function(){var t=this.characters.trim();""!==t?this.creativeData.clickThroughCustoms.push(t):a.YoLog.w("Discarding empty custom click URL")},e.handleEndError=function(t){var e=this.characters.trim();(0,I.getUrl)(e)?this.advertData.errors?this.advertData.errors.addTrackingUrl(e):this.advertData.errors=new T.TrackingReport(t,[e],this.adBreakData.identifier,this.advertData.mediaIdentifier):a.YoLog.w("Discarding empty Error")},e.handleEndExecutableResource=function(){if(this.advertData.verificationApiFramework&&this.advertData.verificationResourceType){var t=new m.VASTProperty("ExecutableResource",this.characters.trim(),"apiFramework",this.advertData.verificationApiFramework);t.addAttribute("type",this.advertData.verificationResourceType),this.advertData.verificationResources.push(t)}this.advertData.verificationApiFramework=null,this.advertData.verificationResourceType=null},e.handleEndIcon=function(){var t=null;(!(0,S.isNullOrEmpty)(this.iconData.clickThroughUrl)||this.iconData.viewTrackings.length>0)&&(t=(0,S.isNullOrEmpty)(this.iconData.clickThroughUrl)?new E.VideoClicks(null,null,this.iconData.viewTrackings):new E.VideoClicks(this.iconData.clickThroughUrl,this.iconData.clickTrackings,this.iconData.viewTrackings));var e=new h.IndustryIcon(this.iconData.properties,this.iconData.resources,t,this.iconData.clickFallbackImages,this.broker);e.isValid()?this.creativeData.icons.push(e):a.YoLog.w("Discarding invalid Icon"),this.iconData.clear()},e.handleEndIFrameResource=function(){var t=this.characters.trim();this.iconData.properties.length>0?this.iconData.resources.push(new y.Resource(y.ResourceType.IFRAME,t)):this.creativeData.nonLinearResources.push(new y.Resource(y.ResourceType.IFRAME,t))},e.handleEndExtensionElement=function(t){this.processingAdvertExtensions?this.handleAdvertExtensionsForOnEndDefault(t):this.handleCreativeExtensionsForOnEndDefault(t)},e.handleEndHtmlResource=function(){if(this.iconData.properties.length>0){var t=this.characters.trim();this.iconData.resources.push(new y.Resource(y.ResourceType.HTML,t,null,this.iconData.htmlResourceEncoded))}else this.creativeData.nonLinearResources.push(new y.Resource(y.ResourceType.HTML,this.characters,null,this.creativeData.htmlResourceEncoded))},e.handleEndIconClickFallbackImage=function(){var t=new d.IconClickFallbackImage(this.iconClickFallbackImageData.properties,this.iconClickFallbackImageData.altText,this.iconClickFallbackImageData.resource);t.isValid()?this.iconData.clickFallbackImages.push(t):a.YoLog.w("Discarding invalid IconClickFallbackImage"),this.iconClickFallbackImageData=null},e.handleEndIconClickTracking=function(){var t=this.characters.trim();(0,I.getUrl)(t)?this.iconData.clickTrackings.push(t):a.YoLog.w("Discarding empty Icon click tracking URL")},e.handleEndIconViewTracking=function(){var t=this.characters.trim();(0,I.getUrl)(t)?this.iconData.viewTrackings.push(t):a.YoLog.w("Discarding empty Icon view tracking URL")},e.handleEndInteractiveTracking=function(){this.creativeData.interactiveTracking?this.creativeData.interactiveTracking.addTrackingUrl(this.characters.trim()):this.creativeData.interactiveTracking=new T.TrackingReport(this.creativeData.trackingEvent,[this.characters.trim()],this.adBreakData.identifier,this.advertData.mediaIdentifier)},e.handleEndLinear=function(){var t=null;(!(0,S.isNullOrEmpty)(this.creativeData.clickThroughUrl)||this.creativeData.clickThroughCustoms.length>0)&&(t=(0,S.isNullOrEmpty)(this.creativeData.clickThroughUrl)?new E.VideoClicks(null,null,this.creativeData.clickThroughCustoms):new E.VideoClicks(this.creativeData.clickThroughUrl,this.creativeData.clickThroughTrackings,this.creativeData.clickThroughCustoms));var e=null;this.creativeData.properties.length>0&&((e=new g.InteractiveCreative(this.creativeData.icSource,this.creativeData.properties,this.broker,this.creativeData.interactiveTracking)).isValid()||(a.YoLog.w("Discarding invalid InteractiveCreative"),e=null));var r=new p.LinearCreative(this.creativeData,t,e,this.broker);r.isValid()?this.advertData.linearCreative=r:a.YoLog.w("Discarding invalid LinearCreative"),this.creativeData.clear()},e.handleEndImpression=function(t){var e=this.characters.trim();(0,S.isNullOrEmpty)(e)?a.YoLog.w("Discarding empty Impression"):this.advertData.impressions?this.advertData.impressions.addTrackingUrl(e):this.advertData.impressions=new T.TrackingReport(t,[e],this.adBreakData.identifier,this.advertData.mediaIdentifier)},e.handleEndInteractiveCreativeFile=function(){this.creativeData.icSource=this.characters.trim()},e.handleEndJavaScriptResource=function(){if(this.advertData.verificationApiFramework&&this.advertData.verificationBrowserOptional){var t=new m.VASTProperty(rt,this.characters.trim(),"apiFramework",this.advertData.verificationApiFramework);t.addAttribute("browserOptional",this.advertData.verificationBrowserOptional),this.advertData.verificationResources.push(t)}this.advertData.verificationApiFramework=null,this.advertData.verificationBrowserOptional=null},e.handleEndMediaFile=function(){0!==this.creativeData.properties.length?this.creativeData.icSource=this.characters.trim():this.creativeData.currentAssetUri=this.characters.trim()},e.handleEndNonLinearClickTracking=function(){var t=this.characters.trim();(0,I.getUrl)(t)?this.creativeData.clickThroughTrackings.push(t):a.YoLog.w("Discarding empty Nonlinear click tracking URL")},e.handleEndPricing=function(){var t=this.characters.trim();if(""!==t){var e=new m.VASTProperty(V,t,"currency",this.advertData.pricingCurrency);e.addAttribute("model",this.advertData.pricingModel),(0,S.isNullOrEmpty)(this.advertData.pricingCurrency)||(0,S.isNullOrEmpty)(this.advertData.pricingModel)?a.YoLog.w("Discarding invalid Pricing property"):this.advertData.properties.push(e)}else a.YoLog.w("Discarding invalid Pricing property")},e.handleEndUniversalAdId=function(){var t=this.characters.trim();""!==t?this.creativeData.universalAdIds.push(new m.VASTProperty(Y,t,"idRegistry",this.creativeData.universalAdIdRegistry)):a.YoLog.w("Discarding empty UniversalAdId URL")},e.handleEndVerification=function(){var t=new k.AdVerification(this.advertData);t.isValid()?this.advertData.adVerifications.push(t):a.YoLog.w("Discarding invalid AdVerification"),this.advertData.verificationEvents=new Map,this.advertData.verificationResources=[],this.advertData.verificationParameters=null},e.handleEndVmapTracking=function(){var t=this.characters.trim();if(T.TrackingReport.isValidAdBreakEvent(this.adBreakData.trackingEvent))if((0,S.isNullOrEmpty)(t))a.YoLog.w("Discarding empty VMAP");else{var e=this.adBreakData.timelineTrackingMap.get(this.adBreakData.trackingEvent);e?e.addTrackingUrl(t):(e=new T.TrackingReport(this.adBreakData.trackingEvent,[t],this.adBreakData.identifier,this.advertData.mediaIdentifier),this.adBreakData.timelineTrackingMap.set(this.adBreakData.trackingEvent,e))}else a.YoLog.d(a.DebugFlags.DEBUG_PARSING,"Discarding invalid vmap:Tracking event")},e.handleEndNonLinear=function(){var t=null;this.creativeData.clickThroughUrl&&""!==this.creativeData.clickThroughUrl&&(t=new E.VideoClicks(this.creativeData.clickThroughUrl,this.creativeData.clickThroughTrackings,null));var e=new v.NonLinearCreative(this.creativeData,t,this.creativeData.nonLinearResources,this.broker);
2e.isValid()?(e.setNonLinear(this.advertData.nonLinear),this.nonLinearAdsData.nonLinearCreatives.push(e)):a.YoLog.w("Discarding invalid NonLinear"),this.creativeData.clear()},e.handleEndStaticResource=function(){var t=this.characters.trim();if(null!=this.iconClickFallbackImageData){var e=new y.Resource(y.ResourceType.STATIC,t,this.iconClickFallbackImageData.staticResourceCreativeType);if(e.setFallbackImage(!0),e.isValid())return void(this.iconClickFallbackImageData.resource=e)}else if(this.iconData.properties.length>0){var r=new y.Resource(y.ResourceType.STATIC,t,this.iconData.staticResourceCreativeType);if(r.isValid())return void this.iconData.resources.push(r)}else{var n=new y.Resource(y.ResourceType.STATIC,t,this.creativeData.staticResourceCreativeType);if(n.isValid())return void this.creativeData.nonLinearResources.push(n)}a.YoLog.w("Discarding invalid StaticResource")},e.handleEndTracking=function(){var t=this.characters.trim();if((0,S.isNullOrEmpty)((0,I.getUrl)(t))){a.YoLog.w("Discarding empty tracking URL");var e=new P.ParsingError(null,P.ParsingError.Message.INVALID_TRACKING_URL,"Bad tracking url:"+t+" event: "+this.creativeData.trackingEvent);this.broker.addParsingError(e)}else{var r=null;T.TrackingReport.isValidVerificationEvent(this.creativeData.trackingEvent)?r=this.advertData.verificationEvents:2===this.advertData.currentCreativeType?r=this.handleEndTrackingForLinear(r):1===this.advertData.currentCreativeType&&T.TrackingReport.isValidCompanionEvent(this.creativeData.trackingEvent)?r=this.creativeData.trackingMap:3===this.advertData.currentCreativeType&&(r=this.handleEndTrackingForNonLinear(r)),r&&this.parseMapForOnEndTracking(r)}},e.handleEndTrackingForLinear=function(t){var e=T.TrackingReport.mapLegacyEvent(this.creativeData.trackingEvent);return T.TrackingReport.isValidInteractiveEvent(this.creativeData.trackingEvent)?this.handleEndInteractiveTracking():T.TrackingReport.isValidLinearEvent(this.creativeData.trackingEvent)||0===this.creativeData.trackingEvent.indexOf("progress")?t=this.creativeData.trackingMap:null!=e?(this.creativeData.trackingEvent=e,t=this.creativeData.trackingMap):a.YoLog.w("Discarding invalid event: "+this.creativeData.trackingEvent),t},e.handleEndTrackingForNonLinear=function(t){var e=T.TrackingReport.mapLegacyEvent(this.creativeData.trackingEvent);return T.TrackingReport.isValidNonLinearEvent(this.creativeData.trackingEvent)?t=this.nonLinearAdsData.trackingMap:null!=e?(this.creativeData.trackingEvent=e,t=this.nonLinearAdsData.trackingMap):a.YoLog.w("Discarding invalid event: "+this.creativeData.trackingEvent),t},e.handleEndViewableImpression=function(t){var e=this.characters.trim();if((0,S.isNullOrEmpty)((0,I.getUrl)(e)))a.YoLog.w("Discarding empty ViewableImpression URL");else{var r=this.advertData.viewableImpressions.get(t);r?r.addTrackingUrl(e):(r=new T.TrackingReport(t,[e],this.adBreakData.identifier,this.advertData.mediaIdentifier),this.advertData.viewableImpressions.set(t,r))}},e.handleTextDataForExtensions=function(){var t=this.characters.trim();if(""!==t){var e=[];(e=this.processingAdvertExtensions?this.advertData.extensionStack:this.advertData.processingCompanionCreative?this.creativeData.companionExtensionStack:this.creativeData.extensionStack).length>0&&e[e.length-1].setInnerText(t)}},e.handleVmapAdBreak=function(){if(null!==this.adBreakData.earlyReturn)return this.streamData.earlyReturn=this.adBreakData.earlyReturn,void this.adBreakData.clear();s.AdBreak.getBreakTypeFromString(this.adBreakData.breakType)!==s.BreakType.LINEAR||this.skipNormalisation||(this.adBreakData.start=this.broker.normaliseAdBreakStart(this.adBreakData.start,this.adBreakData.position));var t=new s.AdBreak(this.adBreakData.start,this.adBreakData.duration,this.adBreakData.position,this.adBreakData.timelineTrackingMap,this.adBreakData.breakType,this.adBreakData.identifier,null,this.adBreakData.adTagUri);if(this.adBreakData.adverts.length>0&&t.setAdverts(this.adBreakData.adverts),t.postParse(this.broker),t.isValid())switch(s.AdBreak.getBreakTypeFromString(this.adBreakData.breakType)){case s.BreakType.LINEAR:this.linearAdBreaks.push(t);break;case s.BreakType.NONLINEAR:this.nonLinearAdBreaks.push(t);break;case s.BreakType.DISPLAY:this.displayAdBreaks.push(t)}else{var e=this.streamData.hasPlaceholder?" placeholder ":" ";a.YoLog.w("Discarding empty"+e+"ad break"),this.checkAdBreakForParsingErrors(t)}this.adBreakData.clear()},e.handleVmapAdTagURI=function(){this.streamData.hasPlaceholder=!0,this.adBreakData.adTagUri=this.characters.trim()},e.handleStartYospaceAdBreak=function(t){var e=t.duration;if(e&&(this.adBreakData.duration=(0,o.timeStringToMillis)(e,-1)),s.AdBreak.getBreakTypeFromString(this.adBreakData.breakType)===s.BreakType.LINEAR&&-1===this.adBreakData.duration){var r=new P.ParsingError(this.adBreakData.identifier,P.ParsingError.Message.INVALID_DURATION,P.ParsingError.Message.INVALID_DURATION+": "+e);this.broker.addParsingError(r)}var n=t.position;n&&(this.adBreakData.position=n);var i=t.earlyReturn;if(i){var a=(0,o.timeStringToMillis)(i,-1);this.adBreakData.earlyReturn=-1!==a?a+this.adBreakData.start:-1}},e.handleYospaceStream=function(t){var e=t.urlDomain;e&&(this.streamData.hostNode=e);var r=t.urlSuffix;if(r&&(this.streamData.hostSuffix=r),t.duration){var n=(0,o.timeStringToMillis)(t.duration,0);n&&(this.streamData.duration=n)}
2if(this.streamData.hostSuffix){var i=this.streamData.hostSuffix.match("yo.p.si=([^&]+)");i&&(this.streamData.sessionIdentifier=i[1])}this.streamData.pdtInitial=(0,o.pdtToMillis)(t.pdtinitial,null),this.streamData.pdtStart=(0,o.pdtToMillis)(t.pdtstart,null),this.streamData.pdtEnd=(0,o.pdtToMillis)(t.pdtend,null),(null===this.streamData.pdtStart||null===this.streamData.pdtEnd||this.streamData.pdtStart>this.streamData.pdtEnd)&&(this.streamData.pdtStart=null,this.streamData.pdtEnd=null,this.streamData.pdtInitial=null)},e.onCdata=function(t){this.characters=t,(this.processingAdvertExtensions||this.processingCreativeExtensions)&&this.handleTextDataForExtensions()},e.onOpenTag=function(t){var e=t.attributes;if(this.processingAdvertExtensions||this.processingCreativeExtensions)this.handleStartExtensionElement(e,t);else{if("vmap:VMAP"===t.name&&(this.isVmap=!0),"yospace:Stream"===t.name&&this.handleYospaceStream(e),t.name===w){this.adBreakData.timeOffset=e.timeOffset,this.adBreakData.timeOffset&&(this.adBreakData.start=(0,o.timeStringToMillis)(this.adBreakData.timeOffset,-1));var r=e.breakType;r&&(this.adBreakData.breakType=r);var n=e.breakId;n&&(this.adBreakData.identifier=n)}"yospace:AdBreak"===t.name&&this.handleStartYospaceAdBreak(e),t.name===O&&(this.adBreakData.trackingEvent=e.event),"VAST"===t.name&&(this.adBreakData.vastVersion=e.version,this.checkValidVersion(this.adBreakData.vastVersion)||(a.YoLog.e("Invalid or missing VAST version; is AV tag defined?"),this.isValidVAST=!1)),"Ad"===t.name&&this.handleStartAd(e),"AdWrapper"===t.name&&this.handleStartAdWrapper(e),t.name===M&&(this.advertData.categoryAuthority=e.authority),t.name===B&&(this.advertData.adSystemVersion=e.version),t.name===U&&(this.advertData.advertiserId=e.id),t.name===F&&(this.advertData.surveyType=e.type),t.name===V&&this.handleStartPricing(e),t.name===Y&&(this.creativeData.universalAdIdRegistry=e.idRegistry),t.name===x&&this.advertData.extensionStack.push(new A.XmlNode(t.name,(0,C.objectToMap)(e))),t.name===H&&this.handleStartCreative(e),t.name===G&&(this.advertData.currentCreativeType=2,this.creativeData.skipOffset=e.skipoffset),t.name===j&&this.populateIconPropertyList(e),t.name===W&&(this.iconClickFallbackImageData=new ut,this.populateIconClickFallbackImagePropertyList(e)),t.name===q&&(this.creativeData.adParameters=new m.VASTProperty(q,null,"xmlEncoded",e.xmlEncoded)),t.name===K&&this.populateInteractiveCreativePropertyList(e),t.name===X&&(this.advertData.currentCreativeType=3),t.name===z&&this.populateNonLinearPropertyList(e),t.name===Q&&(this.advertData.currentCreativeType=1,this.advertData.processingCompanionCreative=!0,this.companionAdsData.required=e.required),t.name===$&&this.populateCompanionPropertyList(e),t.name===J&&this.handleStartStaticResource(e),t.name===Z&&this.handleStartHtmlResource(e),t.name===tt&&this.handleStartTracking(e),t.name===et&&(this.advertData.verificationVendor=e.vendor),t.name===rt&&(this.advertData.verificationApiFramework=e.apiFramework,this.advertData.verificationBrowserOptional=e.browserOptional),t.name===nt&&(this.advertData.verificationApiFramework=e.apiFramework,this.advertData.verificationResourceType=e.type),"Extension"===t.name&&this.handleStartExtension(e,t),t.name===it&&this.addToCreativeExtensionStack(new A.XmlNode(t.name,(0,C.objectToMap)(e))),"CreativeExtension"===t.name&&this.handleStartCreativeExtension(e,t),t.isSelfClosing&&this.onCloseTag(t)}},e.onCloseTag=function(t){if(this.processingAdvertExtensions||this.processingCreativeExtensions)return this.handleEndExtensionElement(t),void(this.characters="");t===w&&this.handleVmapAdBreak(),t===O&&this.handleEndVmapTracking(),"Ad"===t&&this.handleEndAd(),t===B&&this.advertData.properties.push(new m.VASTProperty("AdSystem",this.characters.trim(),"version",this.advertData.adSystemVersion)),"AdTitle"===t&&this.handleEndAdTitle(),"Impression"===t&&this.handleEndImpression(t),t===_&&this.advertData.properties.push(new m.VASTProperty(_,this.characters.trim())),t===M&&this.advertData.properties.push(new m.VASTProperty(M,this.characters.trim(),"authority",this.advertData.categoryAuthority)),t===R&&this.advertData.properties.push(new m.VASTProperty(R,this.characters.trim())),t===U&&this.advertData.properties.push(new m.VASTProperty(U,this.characters.trim(),"id",this.advertData.advertiserId)),t===F&&this.advertData.properties.push(new m.VASTProperty(F,this.characters.trim(),"type",this.advertData.surveyType)),"Error"===t&&this.handleEndError(t),t===V&&this.handleEndPricing(),t===Y&&this.handleEndUniversalAdId(),t===x&&this.pop(!0,!1),t===it&&this.pop(!1,!1),t===et&&this.handleEndVerification(),"VerificationParameters"===t&&(this.advertData.verificationParameters=this.characters.trim()),"MediaFile"===t&&this.handleEndMediaFile(),t===K&&this.handleEndInteractiveCreativeFile(),"ClickThrough"!==t&&"NonLinearClickThrough"!==t&&"CompanionCl
2ickThrough"!==t||(this.creativeData.clickThroughUrl=this.characters.trim()),"IconClickThrough"===t&&(this.iconData.clickThroughUrl=this.characters.trim()),"ClickTracking"===t&&this.handleEndClickTracking(),"NonLinearClickTracking"===t&&this.handleEndNonLinearClickTracking(),"CompanionClickTracking"===t&&this.handleEndCompanionClickTracking(),"IconClickTracking"===t&&this.handleEndIconClickTracking(),t===W&&this.handleEndIconClickFallbackImage(),"AltText"===t&&(null!=this.iconClickFallbackImageData?this.iconClickFallbackImageData.altText=this.characters.trim():this.creativeData.altText=this.characters.trim()),"CustomClick"===t&&this.handleEndCustomClick(),"IconViewTracking"===t&&this.handleEndIconViewTracking(),t===H&&this.handleEndCreative(),t===G&&this.handleEndLinear(),t===X&&(this.advertData.nonLinearAds=new f.NonLinearAds(this.nonLinearAdsData.trackingMap,this.nonLinearAdsData.nonLinearCreatives),this.nonLinearAdsData.clear()),t===z&&this.handleEndNonLinear(),t===Q&&(this.advertData.companionAds=new b.CompanionAds(this.companionAdsData.required,this.companionAdsData.companions),this.companionAdsData.clear(),this.advertData.processingCompanionCreative=!1),t===$&&this.handleEndCompanion(),t===j&&this.handleEndIcon(),t===q&&this.creativeData.adParameters.setValue(this.characters.trim()),"Duration"===t&&(this.creativeData.duration=this.characters.trim()),"Viewable"!==t&&"NotViewable"!==t&&"ViewUndetermined"!==t||this.handleEndViewableImpression(t),t===J&&this.handleEndStaticResource(),t===Z&&this.handleEndHtmlResource(),"IFrameResource"===t&&this.handleEndIFrameResource(),t===tt&&this.handleEndTracking(),t===rt&&this.handleEndJavaScriptResource(),t===nt&&this.handleEndExecutableResource(),"vmap:AdTagURI"===t&&this.handleVmapAdTagURI()},e.onText=function(t){this.characters=t,(this.processingAdvertExtensions||this.processingCreativeExtensions)&&this.handleTextDataForExtensions()},t.parse=function(e,r,n){return new t(r).parse(e,n)},e.parse=function(t,e){var r=this;this.skipNormalisation=!(!e||!e.skipNormalisation)&&e.skipNormalisation;var n=!1;return new Promise(function(e,o){try{var s,c=i.default.parser(!0);if(c.onerror=function(t){n=!0,a.YoLog.e("Failed to parse document: "+t),r.broker.addParsingError(new P.ParsingError(null,P.ParsingError.Message.BAD_XML,t.message)),e(null)},c.ontext=r.onText,c.onopentag=r.onOpenTag,c.onclosetag=r.onCloseTag,c.oncdata=r.onCdata,c.write(t).close(),n)return;if(!r.isVmap)return r.broker.addParsingError(new P.ParsingError(null,P.ParsingError.Message.NO_VMAP)),a.YoLog.e("Failed to parse document. VMAP not found"),void e(null);if(!r.isValidVAST)return r.broker.addParsingError(new P.ParsingError(null,P.ParsingError.Message.INCORRECT_VAST_VERSION,"Version is "+r.adBreakData.vastVersion+", expected >= 4.2")),a.YoLog.e("Failed to parse document. VAST not valid"),void e(null);!function(t){if(a.YoLog.debugflags&a.DebugFlags.DEBUG_PARSING){a.YoLog.d(a.DebugFlags.DEBUG_PARSING,"\n--------------- VMAP PARSING SUMMARY ---------------"),a.YoLog.d(a.DebugFlags.DEBUG_PARSING," * Number of ad breaks: "+t.linearAdBreaks.length),a.YoLog.d(a.DebugFlags.DEBUG_PARSING," * Number of nonlinear ad breaks: "+t.nonLinearAdBreaks.length),a.YoLog.d(a.DebugFlags.DEBUG_PARSING," * Number of display ad breaks: "+t.displayAdBreaks.length),a.YoLog.d(a.DebugFlags.DEBUG_PARSING," * Stream duration: "+t.streamData.duration+"ms\n");for(var e,r=L(t.linearAdBreaks);!(e=r()).done;){var n=e.value;a.YoLog.d(a.DebugFlags.DEBUG_PARSING,n.toString());for(var i,o=L(n.getAdverts());!(i=o()).done;){var s=i.value;a.YoLog.d(a.DebugFlags.DEBUG_PARSING,s.toString())}}for(var c,l=L(t.nonLinearAdBreaks);!(c=l()).done;){var u=c.value;a.YoLog.d(a.DebugFlags.DEBUG_PARSING,u.toString());for(var d,h=L(u.getAdverts());!(d=h()).done;){var g=d.value;a.YoLog.d(a.DebugFlags.DEBUG_PARSING,g.toString())}}for(var p,f=L(t.displayAdBreaks);!(p=f()).done;){var v=p.value;a.YoLog.d(a.DebugFlags.DEBUG_PARSING,v.toString());for(var y,m=L(v.getAdverts());!(y=m()).done;){var E=y.value;a.YoLog.d(a.DebugFlags.DEBUG_PARSING,E.toString())}}t.streamData.getEarlyReturn()&&a.YoLog.d(a.DebugFlags.DEBUG_PARSING,"Early return: "+t.streamData.getE
2arlyReturn()),a.YoLog.d(a.DebugFlags.DEBUG_PARSING,"--------------- END PARSING SUMMARY ----------------\n")}}(r),s=new D.AnalyticPayload(r,t.toString()),e(s)}catch(t){r.broker.addParsingError(new P.ParsingError(null,P.ParsingError.Message.BAD_XML,t.message)),o(t)}})},e.parseMapForOnEndTracking=function(t){var e=this.characters.trim(),r=t.get(this.creativeData.trackingEvent);r?r.addTrackingUrl(e):(r=-1!==this.creativeData.trackingEvent.indexOf("progress")?new T.TrackingReport("progress",[e],this.adBreakData.identifier,this.advertData.mediaIdentifier):new T.TrackingReport(this.creativeData.trackingEvent,[e],this.adBreakData.identifier,this.advertData.mediaIdentifier),t.set(this.creativeData.trackingEvent,r))},e.pop=function(t,e){var r=[],n=(r=t?this.advertData.extensionStack:this.advertData.processingCompanionCreative?this.creativeData.companionExtensionStack:this.creativeData.extensionStack).pop();e?r[r.length-1].addChild(n):t?this.advertData.extensions=n:this.advertData.processingCompanionCreative?this.creativeData.companionExtensions=n:this.creativeData.extensions=n},e.populateCompanionProperty=function(t,e){this.populateCreativeProperty(t,e)},e.populateCompanionPropertyList=function(t){this.populateCompanionProperty(t,"id"),this.populateCompanionProperty(t,"width"),this.populateCompanionProperty(t,"height"),this.populateCompanionProperty(t,"assetWidth"),this.populateCompanionProperty(t,"assetHeight"),this.populateCompanionProperty(t,"expandedWidth"),this.populateCompanionProperty(t,"expandedHeight"),this.populateCompanionProperty(t,"apiFramework"),this.populateCompanionProperty(t,"adSlotId"),this.populateCompanionProperty(t,"pxratio"),this.populateCompanionProperty(t,"renderingMode")},e.populateCreativeProperty=function(t,e){var r=t[e];(0,S.isNullOrEmpty)(r)||this.creativeData.properties.push(new m.VASTProperty(e,r))},e.populateIconProperty=function(t,e){var r=t[e];(0,S.isNullOrEmpty)(r)||this.iconData.properties.push(new m.VASTProperty(e,r))},e.populateIconPropertyList=function(t){for(var e in t)this.populateIconProperty(t,e)},e.populateIconClickFallbackImageProperty=function(t,e){var r=t[e];(0,S.isNullOrEmpty)(r)||this.iconClickFallbackImageData.properties.push(new m.VASTProperty(e,r))},e.populateIconClickFallbackImagePropertyList=function(t){this.populateIconClickFallbackImageProperty(t,"width"),this.populateIconClickFallbackImageProperty(t,"height")},e.populateInteractiveCreativeProperty=function(t,e){this.populateCreativeProperty(t,e)},e.populateInteractiveCreativePropertyList=function(t){this.populateInteractiveCreativeProperty(t,"apiFramework"),this.populateInteractiveCreativeProperty(t,"type");var e=t.variableDuration;(0,S.isNullOrEmpty)(e)?this.creativeData.properties.push(new m.VASTProperty("variableDuration","false")):this.populateInteractiveCreativeProperty(t,"variableDuration")},e.populateNonLinearProperty=function(t,e){this.populateCreativeProperty(t,e)},e.populateNonLinearPropertyList=function(t){this.populateNonLinearProperty(t,"id"),this.populateNonLinearProperty(t,"width"),this.populateNonLinearProperty(t,"height"),this.populateNonLinearProperty(t,"expandedWidth"),this.populateNonLinearProperty(t,"expandedHeight"),this.populateNonLinearProperty(t,"scalable"),this.populateNonLinearProperty(t,"maintainAspectRatio"),this.populateNonLinearProperty(t,"apiFramework"),this.populateNonLinearProperty(t,"minSuggestedDuration")},t}()},17814(t,e,r){"use strict";e.__esModule=!0,e.PlaylistPayload=void 0;var n=r(63575);e.PlaylistPayload=function(){function t(t,e){this.sessionIdentifier=t.get(n.Payload.IDENTIFIER),this.location=t.get(n.Payload.LOCATION),this.analyticUrl=t.get(n.Payload.ANALYTICURL),this.pauseUrl=t.get(n.Payload.PAUSEURL),this.availabilityStartTime=t.get(n.Payload.AVAILABILITYSTART)||null,this.interSegmentTimeout=e}var e=t.prototype;return e.getAnalyticUrl=function(){return this.analyticUrl},e.getIntersegmentTimeout=function(){return this.interSegmentTimeout},e.getPlaybackUrl=function(){return this.location},e.getPauseUrl=function(){return this.pauseUrl},e.getSessionIdentifier=function(){return this.sessionIdentifier},e.getAvailabilityStartTime=function(){return this.availabilityStartTime},t}()},92704(t,e){"use strict";
2e.__esModule=!0,e.XmlValidation=void 0,e.XmlValidation=function(){function t(){if((this instanceof t?this.constructor:void 0)===t)throw new TypeError("Cannot construct abstract class XmlValidation directly")}return t.prototype.isValid=function(){return!0},t}()},47555(t,e,r){"use strict";e.__esModule=!0,e.AdBreakEventHandler=void 0;var n=r(92704);function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}e.AdBreakEventHandler=function(t){function e(){return t.apply(this,arguments)||this}var r,n;return n=t,(r=e).prototype=Object.create(n.prototype),r.prototype.constructor=r,i(r,n),e.prototype.onNonLinearTrackingEvent=function(t){throw new Error("Function must be overridden")},e}(n.XmlValidation)},41665(t,e,r){"use strict";e.__esModule=!0,e.ViewableEvent=e.AdvertEventHandler=void 0;var n=r(92704);function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}e.ViewableEvent=Object.freeze({VIEWABLE:0,NOT_VIEWABLE:1,VIEW_UNDETERMINED:2}),e.AdvertEventHandler=function(t){function e(){return t.apply(this,arguments)||this}var r,n;n=t,(r=e).prototype=Object.create(n.prototype),r.prototype.constructor=r,i(r,n);var a=e.prototype;return a.onViewableEvent=function(t){throw new Error("Function must be overridden")},a.onErrorEvent=function(t){throw new Error("Function must be overridden")},a.onImpressionEvent=function(){throw new Error("Function must be overridden")},e}(n.XmlValidation)},20280(t,e,r){"use strict";e.__esModule=!0,e.AnalyticEventObserver=void 0,r(64275),r(82773),r(89219),r(45734),e.AnalyticEventObserver=function(){function t(){}var e=t.prototype;return e.onAdvertBreakStart=function(t,e){throw new Error("Function must be overridden")},e.onAdvertBreakEnd=function(t){throw new Error("Function must be overridden")},e.onAdvertBreakEarlyReturn=function(t,e){throw new Error("Function must be overridden")},e.onAdvertEnd=function(t){throw new Error("Function must be overridden")},e.onAdvertStart=function(t,e){throw new Error("Function must be overridden")},e.onAnalyticUpdate=function(t){throw new Error("Function must be overridden")},e.onTrackingEvent=function(t,e){throw new Error("Function must be overridden")},e.onSessionError=function(t,e){throw new Error("Function must be overridden")},e.onTrackingError=function(t,e){throw new Error("Function must be overridden")},t}()},14058(t,e,r){"use strict";e.__esModule=!0,e.CreativeEventHandler=void 0;var n=r(92704);function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}e.CreativeEventHandler=function(t){function e(){return t.apply(this,arguments)||this}var r,n;n=t,(r=e).prototype=Object.create(n.prototype),r.prototype.constructor=r,i(r,n);var a=e.prototype;return a.onClickThrough=function(){throw new Error("Function must be overridden")},a.onTrackingEvent=function(t){throw new Error("Function must be overridden")},a.setVisible=function(t){throw new Error("Function must be overridden")},e}(n.XmlValidation)},50103(t,e,r){"use strict";e.__esModule=!0,e.Event=void 0,r(89219),e.Event=function(){function t(t,e){this.payload=t,this.source=e||null}var e=t.prototype;return e.getPayload=function(){return this.payload},e.getSource=function(){return this.source},t}()},27481(t,e,r){"use strict";e.__esModule=!0,e.ParsingError=void 0;var n=r(10209),i=r(80674),a=r(59481);function o(t,e){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},o(t,e)}(e.ParsingError=function(t){function e(e,r,a){var o;(o=t.call(this,(0,i.millisToTimestamp)(Date.now()))||this).message=r;var s=(0,n.isNullOrEmpty)(a)?r:a;return s+=(0,n.isNullOrEmpty)(e)?"":" (breakId: "+e+")",o.errorDetail=s,o}var r,a;a=t,(r=e).prototype=Object.create(a.prototype),r.prototype.constructor=r,o(r,a);var s=e.prototype;return s.getMessage=function(){return this.message},s.getErrorDetail=function(){return this.errorDetail},e}(a.SessionError)).Message=Object.freeze({BAD_XML:"XML is not well-formed",NO_VMAP:"Document is not VMAP",INCORRECT_VAST_VERSION:"Incorrect VAST version",INVALID_DURATION:"Invalid duration",INVALID_START_TIME:"Invalid start time",EMPTY_ADVERT_AND_TRACKING:"No adverts or tracking",INVALID_MEDIAID:"Yospace media id not found",MISSING_CREATIVE:"Missing Linear Creative",INVA
2LID_TRACKING_URL:"Invalid tracking URL"})},17086(t,e,r){"use strict";e.__esModule=!0,e.ViewSize=e.PlayerEvent=e.PlaybackEventHandler=void 0;var n=r(52616);function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}r(8621),e.PlayerEvent=Object.freeze({START:0,STOP:1,PAUSE:2,RESUME:3,STALL:4,CONTINUE:5,ADVERT_REWIND:6,ADVERT_SKIP:7,SEEK:8,PLAYBACK_READY:9}),e.ViewSize=Object.freeze({COLLAPSED:0,EXPANDED:1}),e.PlaybackEventHandler=function(t){function e(){return t.apply(this,arguments)||this}var r,n;n=t,(r=e).prototype=Object.create(n.prototype),r.prototype.constructor=r,i(r,n);var a=e.prototype;return a.onPlayerEvent=function(t,e){throw new Error("Function must be overridden")},a.onPlayheadUpdate=function(t){throw new Error("Function must be overridden")},a.onTimedMetadata=function(t){throw new Error("Function must be overridden")},a.onViewSizeChange=function(t){throw new Error("Function must be overridden")},a.onVolumeChange=function(t){throw new Error("Function must be overridden")},e}(n.PlaybackPolicy)},52616(t,e,r){"use strict";e.__esModule=!0,e.PlaybackPolicy=void 0;var n=r(92704);function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}e.PlaybackPolicy=function(t){function e(){return t.apply(this,arguments)||this}var r,n;n=t,(r=e).prototype=Object.create(n.prototype),r.prototype.constructor=r,i(r,n);var a=e.prototype;return a.canStop=function(){throw new Error("Function must be overridden")},a.canPause=function(){throw new Error("Function must be overridden")},a.canSkip=function(){throw new Error("Function must be overridden")},a.willSeekTo=function(t){throw new Error("Function must be overridden")},a.canChangeVolume=function(t){throw new Error("Function must be overridden")},a.canResize=function(t){throw new Error("Function must be overridden")},a.canResizeCreative=function(t){throw new Error("Function must be overridden")},a.canClickThrough=function(t){throw new Error("Function must be overridden")},e}(n.XmlValidation)},76894(t,e,r){"use strict";e.__esModule=!0,e.PlaybackPolicyHandler=void 0,r(89219),e.PlaybackPolicyHandler=function(){function t(){}var e=t.prototype;
2return e.canStop=function(t,e){throw new Error("Must be overridden")},e.canPause=function(t,e){throw new Error("Must be overridden")},e.canSkip=function(t,e,r){throw new Error("Must be overridden")},e.willSeekTo=function(t,e,r){throw new Error("Must be overridden")},e.canChangeVolume=function(t,e,r){throw new Error("Must be overridden")},e.canResize=function(t,e,r){throw new Error("Must be overridden")},e.canResizeCreative=function(t,e,r){throw new Error("Must be overridden")},e.canClickThrough=function(t,e,r){throw new Error("Must be overridden")},e.setPlaybackMode=function(t){throw new Error("Must be overridden")},e.didSkip=function(t,e,r){throw new Error("Must be overridden")},e.didSeek=function(t,e,r){throw new Error("Must be overridden")},t}()},89219(t,e,r){"use strict";e.__esModule=!0,e.UNKNOWN_FORMAT=e.SessionState=e.SessionProperties=e.SessionErrorCode=e.Session=e.PlaybackMode=e.PARTIAL_VMAP=e.NO_DVRLIVE=e.MALFORMED_URL=e.INVALID_WINDOW=e.FALLBACK_URL=e.CONNECTION_TIMEOUT=e.CONNECTION_ERROR=void 0;var n=r(63575),i=r(42167),a=r(56925),o=r(82773),s=r(49573),c=r(10209),l=r(17086),u=r(16296),d=r(16357),h=r(70334),g=r(81763),p=r(48762),f=r(20280),v=(r(64275),r(52205)),y=r(76894),m=(r(27481),r(62121));function E(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return A(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?A(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function A(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function T(t,e){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},T(t,e)}var k=r(84590),b=e.PlaybackMode=Object.freeze({LIVE:0,DVRLIVE:1,VOD:2}),S=e.SessionState=Object.freeze({NONE:0,INITIALISED:1,FAILED:2,NO_ANALYTICS:3,SHUTDOWN:4}),I=e.SessionErrorCode=Object.freeze({TIMEOUT:0,UNRESOLVED_BREAK:1,PARSING_ERROR:2}),D=(e.CONNECTION_ERROR=-1,e.CONNECTION_TIMEOUT=-2,e.MALFORMED_URL=-3),C=(e.NO_DVRLIVE=-11,e.UNKNOWN_FORMAT=-20,e.FALLBACK_URL=-21),P=(e.PARTIAL_VMAP=-22,e.INVALID_WINDOW=-1,e.Session=function(t){function e(r){var n;return(n=t.call(this)||this).sessionProperties=r?Object.assign(Object.create(Object.getPrototypeOf(r)),r):new P,n.reportsManager=new i.ReportsManager(n.sessionProperties,n.addTrackingError.bind(n)),n.linearAdBreaks=[],n.nonLinearAdBreaks=[],n.displayAdBreaks=[],n.playbackBuffering=!1,n.playing=!1,n.currentAdBreak=null,n.currentAdvert=null,n.identifier="",n.playbackUrl=null,n.analyticsUrl=null,n.lastAnalyticUpdate=null,n.playhead=0,n.lastPlayed=0,n.lastTraced=0,n.sessionState=S.NONE,n.resultCode=0,n.policyHandler=null,n.parsingErrors=[],n.defaultPolicyHandler=new d.DefaultPlaybackPolicyHandler(n.getPlaybackMode()),n.analyticPoller=null,s.YoLog.trace("sdk javascript "+e.getVersion()+" "+(0,h.getKeyFromValue)(n.getPlaybackMode(),b)),n.logSessionInfo(),n}var r,a;a=t,(r=e).prototype=Object.create(a.prototype),r.prototype.constructor=r,T(r,a);var A=e.prototype;return A.logSessionInfo=function(){if(s.YoLog.logger.debug("Yospace AdManagement SDK for JavaScript v"+e.getVersion()+" ("+(0,h.getKeyFromValue)(this.getPlaybackMode(),b)+")"),s.YoLog.logger.debug("Debug flags:"),s.YoLog.getDebugFlags()===s.DebugFlags.DEBUG_ALL)s.YoLog.logger.debug(" DEBUG_ALL is set");else for(var t in s.DebugFlags)s.DebugFlags[t]!==s.DebugFlags.DEBUG_ALL&&s.DebugFlags[t]&s.YoLog.getDebugFlags()&&s.YoLog.logger.debug(" "+t+" is set");s.YoLog.logger.debug(this.getSessionProperties().toString())},A.addAnalyticObserver=function(t){if(!(0,u.isValidCallbackImplementation)(t,f.AnalyticEventObserver))throw new Error("addAnalyticObserver: invalid observer");this.reportsManager.addAnalyticObserver(t),this.parsingErrors.length>0&&this.getReportsManager().raiseSessionErrorCallback(I.PARSING_ERROR,this)},A.addParsingError=function(t){this.parsingErrors.push(t)},A.addTrackingError=function(t){this.reportsManager.raiseTrackingErrorCallback(t,this)},A.analyticsSuppressed=function(){return this.reportsManager.reportsSuppressed()},A.adjustForEarlyReturn=function(t){var e=this.getAdBreakForPlayhead(t);e&&e.adjustForEarlyReturn(t)&&(this.getReportsManager().raiseAdBreakEarlyReturn(e,this),e.isValid()||this.linearAdBreaks.splice(this.linearAdBreaks.indexOf(e)))},A.canChangeVolume=function(t){var e=(0,u.raiseCallback)(this.policyHandler,this.policyHandler.canChangeVolume,t,this.playhead,this.linearAdBreaks);return null===e&&(e=this.defaultPolicyHandler.canChangeVolume(t,this.playhead,this.linearAdBreaks)),e},A.canClickThrough=function(t){var e=(0,u.raiseCallback)(this.policyHandler,this.policyHandler.canClickThrough,t,this.playhead,this.linearAdBreaks);return null===e&&(e=this.defaultPolicyHandler.canClickThrough(t,this.playhead,this.linearAdBreaks)),e},A.canPause=function(){var t=(0,u.raiseCallback)(this.policyHandler,this.policyHandler.canPause,this.playhead,this.linearAdBreaks);return null===t&&(t=this.defaultPolicyHandler.canPause(this.playhead,this.linearAdBreaks)),t},A.canResize=function(t){var e=(0,u.raiseCallback)(this.policyHandler,this.policyHandler.canResize,t,this.playhead,this.linearAdBreaks);return null===e&&(e=this.defaultPolicyHandler.canResize(t,this.playhead,this.linearAdBreaks)),e},A.canResizeCreative=function(t){var e=(0,u.raiseCallback)(this.policyHandler,this.policyHandler.canResizeCreative,t,this.playhead,this.linearAdBreaks);return null===e&&(e=this.defaultPolicyHandler.canResizeCreative(t,this.playhead,this.linearAdBreaks)),e},A.canSkip=function(){var t=(0,u.raiseCallback)(this.policyHandler,this.policyHandler.canSkip,this.playhead,this.linearAdBreaks,0);return null===t&&(t=this.defaultPolicyHandler.canSkip(this.playhead,this.linearAdBreaks,0)),t},A.canStop=function(){var t=(0,u.raiseCallback)(this.policyHandler,this.policyHandler.canStop,this.playhead,this.linearAdBreaks);return null===t&&(t=this.defaultPolicyHandler.canStop(this.playhead,this.linearAdBreaks)),t},A.clearParsingErrors=function(){this.parsingErrors=[]},A.initialiseFromSession=function(t){var e=this;return new Promise(function(r,n){if(s.YoLog.trace("sdk init"),!(0,p.getUrl)(t))return e.completeWithStatus(S.FAILED,D),void n(e);var i=Date.now(),a=e.sessionProperties.getCustomHttpHeaders();return g.HttpConnection.get(t,{},e.sessionProperties.getRequestTimeout(),a).then(function(a){var o=Date.now()-i,c=Date.now();if(a.ok){m.JSONParser.isJSON(a.headers.get("content-type"))?e.initialiseFromJson(a.body)||n(e):e.parseResponse(a.body,a.url);var l=Date.now()-c;s.YoLog.d(s.DebugFlags.DEBUG_LIFECYCLE,"initialisation took "+(o+l)+"ms (HTTP request:"+o+"ms setup:"+l+"ms)"),r(e)}else s.YoLog.e("HTTP Url request failed: "+t+", status: "+a.status+", error: "+a.statusText),e.completeWithStatus(S.FAILED,a.status),n(e)})})},A.completeWithStatus=function(t,e){this.setState(t),this.setResultCode(e),t===S.INITIALISED&&s.YoLog.trace("sessionStart")},A.fireImpressionReport=function(){var t=this.currentAdvert;if(t&&t.isActive()){var e=t.getImpressions(!0);if(e){s.YoLog.trace("impression");var r=e.copy(),n=new i.ReportingParams(this.getPlayhead(),t.getStart(),t.getLinearCreative().getAssetUri(),t.getMacroSubstitutions());this.reportsManager.fireBeacon(r,n),e.removeTrackingUrls()}}},A.fireTrackingReport=function(t){var e=null,r=null,n=null,a=this.getCurrentAdvert();a&&(e=a.getStart(),a.getLinearCreative()&&(r=a.getLinearCreative().getAssetUri()),n=a.getMacroSubstitutions()),s.YoLog.trace("trackingEvent "+t.getEventType());var o=new i.ReportingParams(this.getPlayhead(),e,r,n);this.reportsManager.fireBeacon(t,o)},A.fireTrackingReportForCreative=function(t,e){var r=null,n=this.getAdvertForCreative(e);
2if(n){n.getLinearCreative()&&(r=n.getLinearCreative().getAssetUri()),s.YoLog.trace("trackingEvent "+t.getEventType());var a=new i.ReportingParams(this.getPlayhead(),n.getStart(),r,n.getMacroSubstitutions());this.reportsManager.fireBeacon(t,a)}},A.fireTrackingReportForIcon=function(t,e){var r=null,n=this.currentAdvert;if(n&&n.isActive()&&n.containsIcon(e)){n.getLinearCreative()&&(r=n.getLinearCreative().getAssetUri()),s.YoLog.trace("trackingEvent "+t.getEventType());var a=new i.ReportingParams(this.getPlayhead(),n.getStart(),r,n.getMacroSubstitutions());this.reportsManager.fireBeacon(t,a)}},A.getAdBreakForPlayhead=function(t){for(var e,r=E(this.linearAdBreaks);!(e=r()).done;){var n=e.value;if(n.getStart()<=t&&t<n.getStart()+n.getDuration())return n}return null},A.getAdBreaksByType=function(t){switch(t){case o.BreakType.LINEAR:return Object.assign([],this.linearAdBreaks);case o.BreakType.NONLINEAR:return Object.assign([],this.nonLinearAdBreaks);case o.BreakType.DISPLAY:return Object.assign([],this.displayAdBreaks);default:return null}},A.getAnalyticsUrl=function(){return this.analyticsUrl},A.getAdvertForCreative=function(t){var e=this.currentAdvert;if(e&&e.isActive()&&e.getLinearCreative()===t)return e;if(t.isNonLinear()){for(var r,n=E(this.nonLinearAdBreaks);!(r=n()).done;)if(e=r.value.getAdvertForCreative(t))return e;for(var i,a=E(this.displayAdBreaks);!(i=a()).done;)if(e=i.value.getAdvertForCreative(t))return e}else if(!(t instanceof v.LinearCreative))for(var o,s=E(this.linearAdBreaks);!(o=s()).done;)if(e=o.value.getAdvertForCreative(t))return e;return null},A.getCurrentAdBreak=function(){return this.currentAdBreak},A.getCurrentAdvert=function(){return this.currentAdvert},A.getIdentifier=function(){return this.identifier},A.getPlaybackMode=function(){throw new Error("This must be overridden")},A.getPlaybackUrl=function(){return this.playbackUrl},A.getPlayhead=function(){return this.playhead},A.getResultCode=function(){return this.resultCode},A.getLastAnalyticUpdate=function(){return this.lastAnalyticUpdate},A.getLastPlayed=function(){return this.lastPlayed},A.getReportsManager=function(){return this.reportsManager},A.getParsingErrors=function(){return Object.assign([],this.parsingErrors)},A.getSessionProperties=function(){return Object.freeze(this.sessionProperties)},A.getSessionState=function(){return this.sessionState},A.getToken=function(){return this.sessionProperties.getToken()},e.getVersion=function(){return k.version},A.initialiseFromJson=function(t){try{var e=m.JSONParser.parseUrl(t);return this.setPlaybackUrl(e),this.completeWithStatus(S.NO_ANALYTICS,C),!0}catch(t){return this.completeWithStatus(S.FAILED,C),!1}},A.isNotPlaying=function(){return!this.playing},A.isPlaybackBuffering=function(){return this.playbackBuffering},A.normaliseAdBreakStart=function(t,e){var r=this.linearAdBreaks.length;if(r){var i=this.linearAdBreaks[r-1],a=(0,o.normalisePosition)(e,t,o.BreakType.LINEAR);if(i.getPosition().toLowerCase()===a.toLowerCase()){var s=i.getStart()+i.getDuration(),c=this.analyticPoller?this.analyticPoller.getFrequency():n.Constant.DEFAULT_POLLING_DELAY,l=Math.min(this.sessionProperties.getConsecutiveBreakTolerance(),c);if(s>t||t-s<l)return s}}return t},A.onAdvertStart=function(t,e){t&&s.YoLog.d(s.DebugFlags.DEBUG_REPORTS,"onAdvertStart: "+(t.isActive()?"active ":"inactive ")+(t.isFiller()?"filler":"advert")+", duration: "+t.getDuration()+", trackingSchedule: "+(0,h.mapToString)(t.getTrackingSchedule()))},A.onAdvertSkip=function(t){this.signalActionTrackingEvent("skip"),this.policyHandler&&(0,u.raiseCallback)(this.policyHandler,this.policyHandler.didSkip,this.playhead,t,this.linearAdBreaks),this.playhead=t},A.onPlaybackContinue=function(){this.playbackBuffering?(this.playbackBuffering=!1,s.YoLog.trace("playbackEvent continue")):s.YoLog.d(s.DebugFlags.DEBUG_PLAYBACK,"Reporting CONTINUE when not buffering")},A.onPlayerEvent=function(t,e){switch(s.YoLog.d(s.DebugFlags.DEBUG_PLAYBACK,"New playback event: "+(0,h.getKeyFromValue)(t,l.PlayerEvent)+", playhead: "+e),t){case l.PlayerEvent.START:this.onPlaybackStart(e);break;case l.PlayerEvent.STOP:this.onPlaybackStop();break;case l.PlayerEvent.PAUSE:this.onPlaybackPause();break;case l.PlayerEvent.RESUME:this.onPlaybackResume();break;case l.PlayerEvent.STALL:this.onPlaybackStall();break;case l.PlayerEvent.CONTINUE:this.onPlaybackContinue();break;case l.PlayerEvent.ADVERT_REWIND:this.onPlaybackRewind(e);break;case l.PlayerEvent.ADVERT_SKIP:this.onAdvertSkip(e);break;case l.PlayerEvent.SEEK:this.onPlaybackSeek(e);break;case l.PlayerEvent.PLAYBACK_READY:this.onPlaybackReady();break;default:s.YoLog.w("Unknown playback event: "+t)}s.YoLog.d(s.DebugFlags.DEBUG_PLAYBACK,"Playing: "+this.playing+", Buffering: "+this.playbackBuffering)},A.onPlaybackPause=function(){this.playing?(this.playing=!1,this.signalActionTrackingEvent("pause")):s.YoLog.d(s.DebugFlags.DEBUG_PLAYBACK,"Reporting PAUSE when already paused")},A.onPlaybackResume=function(){this.playing?s.YoLog.d(s.DebugFlags.DEBUG_PLAYBACK,"Reporting RESUME when already paying"):(this.playing=!0,this.signalActionTrackingEvent("resume"))},A.onPlaybackReady=function(){s.YoLog.trace("playbackevent ready"),this.get
2SessionState()!==S.INITIALISED?s.YoLog.d(s.DebugFlags.DEBUG_PLAYBACK,"Reporting PLAYBACKREADY when the session is not initialised"):!0===this.playing&&s.YoLog.d(s.DebugFlags.DEBUG_PLAYBACK,"Reporting PLAYBACKREADY when playback has already begun")},A.onPlaybackRewind=function(t){this.signalActionTrackingEvent("rewind"),this.playhead=t},A.onPlaybackSeek=function(t){this.policyHandler&&(0,u.raiseCallback)(this.policyHandler,this.policyHandler.didSeek,this.playhead,t,this.linearAdBreaks),s.YoLog.trace("playbackEvent seek: "+t),this.playhead=t},A.onPlaybackStall=function(){this.playing&&!this.playbackBuffering?(this.playbackBuffering=!0,s.YoLog.trace("playbackEvent stall")):s.YoLog.d(s.DebugFlags.DEBUG_PLAYBACK,"Reporting STALL when not buffering")},A.onPlaybackStart=function(t){this.playing?s.YoLog.d(s.DebugFlags.DEBUG_PLAYBACK,"Reporting START when already playing"):(this.playing=!0,s.YoLog.trace("playbackEvent start"))},A.onPlaybackStop=function(){if(this.playing){this.playing=!1,this.playbackBuffering=!1,s.YoLog.trace("playbackEvent stop");var t=this.currentAdvert;if(t){var e=t.getLinearCreative();if(e){var r=e.getTrackingReport("closeLinear");r&&this.fireTrackingReport(r)}}}},A.onPlayheadSeek=function(t){this.policyHandler&&(0,u.raiseCallback)(this.policyHandler,this.policyHandler.didSeek,this.playhead,t,this.linearAdBreaks),s.YoLog.trace("playbackEvent seek: "+t),this.playhead=t},A.onPlayheadUpdate=function(t){(0===this.lastTraced||t<this.lastTraced||t-this.lastTraced>=5e3)&&(s.YoLog.trace("sdk playhead "+t),this.lastTraced=t),this.lastPlayed=this.playhead,this.playhead=t},A.onSessionError=function(t){s.YoLog.trace("sessionerror "+t),t===I.TIMEOUT&&(s.YoLog.e("Yospace session has expired"),this.setState(S.SHUTDOWN)),this.getReportsManager().raiseSessionErrorCallback(t,this)},A.onTimedMetadata=function(t){},A.onViewSizeChange=function(t){switch(t){case l.ViewSize.EXPANDED:this.signalActionTrackingEvent("playerExpand");break;case l.ViewSize.COLLAPSED:this.signalActionTrackingEvent("playerCollapse");break;default:s.YoLog.w("Unknown ViewSize: "+(0,h.getKeyFromValue)(t,l.ViewSize))}},A.onVolumeChange=function(t){var e=t?"mute":"unmute";this.signalActionTrackingEvent(e)}
2,A.raiseTrackingCallbackForCreative=function(t,e){this.getAdvertForCreative(e)&&(s.YoLog.trace("trackingEvent "+t),this.getReportsManager().raiseTrackingCallback(t,this))},A.removeAllNonLinearAdBreaks=function(){this.nonLinearAdBreaks=[],this.displayAdBreaks=[]},A.removeAnalyticObserver=function(t){this.reportsManager.removeAnalyticObserver(t)},A.removeNonLinearAdBreak=function(t){for(var e=0;e<this.nonLinearAdBreaks.length;++e)if(this.nonLinearAdBreaks[e]===t)return void this.nonLinearAdBreaks.splice(e,1);for(var r=0;r<this.displayAdBreaks.length;++r)if(this.displayAdBreaks[r]===t)return void this.displayAdBreaks.splice(r,1)},A.removeKeysFromTrackingSchedule=function(t){for(var e,r=E(t);!(e=r()).done;){var n=e.value;this.currentAdvert.removeFromTrackingSchedule(n)}},A.setAnalyticsUrl=function(t){this.analyticsUrl=t},A.setCurrentAdBreak=function(t){this.currentAdBreak=t},A.setCurrentAdvert=function(t){this.currentAdvert=t},A.setIdentifier=function(t){this.identifier=t},A.setLastAnalyticUpdate=function(t){this.lastAnalyticUpdate=t},A.setPlaybackPolicyHandler=function(t){if(t){if(!(0,u.isValidCallbackImplementation)(t,y.PlaybackPolicyHandler))throw new Error("setPlaybackPolicyHandler: invalid playback handler");this.policyHandler=t}else this.policyHandler=this.defaultPolicyHandler;(0,u.raiseCallback)(this.policyHandler,this.policyHandler.setPlaybackMode,this.getPlaybackMode())},A.setPlaybackUrl=function(t){this.playbackUrl=t},A.setPlayhead=function(t){this.playhead=t},A.setReportsManager=function(t){this.reportsManager=t},A.setResultCode=function(t){this.resultCode=t},A.setState=function(t){this.sessionState=t},A.shutdown=function(){s.YoLog.d(s.DebugFlags.DEBUG_LIFECYCLE,"Session shutdown"),this.setState(S.SHUTDOWN),this.onPlaybackStop(),s.YoLog.trace("sessionEnd")},A.signalActionTrackingEvent=function(t){var e=this.currentAdvert;if(e&&e.isActive()&&!e.isFiller()&&!(0,c.isNullOrEmpty)(t)){s.YoLog.trace("actionEvent "+t);var r=e.getTrackingReports(t),n=new i.ReportingParams(this.getPlayhead(),e.getStart(),e.getLinearCreative().getAssetUri(),e.getMacroSubstitutions());r.length>0&&this.reportsManager.fireBeacons(r,n),"closeLinear"!==t&&this.reportsManager.raiseTrackingCallback(t,this)}},A.signalNonLinearTrackingEvent=function(t){var e=this.currentAdvert;if(e&&e.isActive()&&!e.isFiller()&&!(0,c.isNullOrEmpty)(t)){s.YoLog.trace("nonlinearTrackingEvent "+t);var r=e.getTrackingReportLinear(t);if(r){var n=new i.ReportingParams(this.getPlayhead(),e.getStart(),e.getLinearCreative().getAssetUri(),e.getMacroSubstitutions());this.reportsManager.fireBeacon(r,n)}this.reportsManager.raiseTrackingCallback(t,this)}},A.signalTimelineTrackingEvents=function(t){var e=this.currentAdvert;if(e&&e.isActive()&&!e.isFiller()){for(var r,a=new i.ReportingParams(this.getPlayhead(),e.getStart(),e.getLinearCreative().getAssetUri(),e.getMacroSubstitutions()),o=[],c=E(e.getTrackingSchedule());!(r=c()).done;){var l=r.value,u=l[0],d=l[1];if(t+n.Constant.EVENT_CUEPOINT_TOL>=u){s.YoLog.d(s.DebugFlags.DEBUG_REPORTS,"Tracking schedule entry retrieved: "+d),o.push(u);var h=e.getTrackingReportLinear(d);h&&this.reportsManager.fireBeacon(h,a);var g=-1!==d.indexOf("progress")?"progress":d;s.YoLog.trace("timelineEvent "+g),this.reportsManager.raiseTrackingCallback(g,this)}}this.removeKeysFromTrackingSchedule(o)}},A.signalTrackingEvent=function(t,e){var r=this.currentAdvert;if(r&&r.isActive()&&!r.isFiller()&&!(0,c.isNullOrEmpty)(t)){if(s.YoLog.trace("trackingEvent"+t),e){var n=new i.ReportingParams(this.getPlayhead(),r.getStart(),r.getLinearCreative().getAssetUri(),r.getMacroSubstitutions());this.reportsManager.fireBeacon(e,n)}this.reportsManager.raiseTrackingCallback(t,this)}},A.suppressAnalytics=function(t){if(this.reportsManager.suppressReports(t),!t&&this.currentAdBreak){var e=this.currentAdBreak.getTrackingReport("breakStart",!0);this.getReportsManager().fireBeacon(e,new i.ReportingParams(this.getPlayhead()))}},A.willSeekTo=function(t){var e=this.policyHandler?(0,u.raiseCallback)(this.policyHandler,this.policyHandler.willSeekTo,t,this.linearAdBreaks,this.getPlayhead()):t;return null===e&&(e=this.defaultPolicyHandler.willSeekTo(t,this.linearAdBreaks,this.getPlayhead())),e},e}(a.AnalyticBroker),e.SessionProperties=function(){function t(t){this.requestTimeout=t&&t.requestTimeout?t.requestTimeout:n.Constant.REQUEST_TIMEOUT,this.resourceTimeout=t&&t.resourceTimeout?t.resourceTimeout:n.Constant.REQUEST_TIMEOUT,this.userAgent=t?t.userAgent:"",this.prefetchResources=!!t&&t.prefetchResources,this.fireHistoricalBeacons=!t||t.fireHistoricalBeacons,this.eventCategories=t?t.eventCategories:0,this.allowCorsForAnalytics=!!t&&t.allowCorsForAnalytics,this.setCustomHttpHeaders(t?t.customHttpHeaders:new Map),this.useHttps=!!t&&t.useHttps,this.consecutiveBreakTolerance=t?t.consecutiveBreakTolerance:0,this.token=t?t.token:Math.floor(1e8*Math.random())}var e=t.prototype;return e.excludeFromSuppression=function(t){this.eventCategories=t},e.getCustomHttpHeaders=function(){return this.customHttpHeaders},e.getExcludedCategories=function(){return this.eventCategories},e.getFireHistoricalBeacons=function(){return this.fireHistoricalBeacons},e.getPrefetchResources=function(){return this.prefetchResources},e.getRequestTimeout=function(){return this.requestTimeout},e.getResourceTimeout=function(){return this.resourceTimeout},e.getUserAgent=function(){return this.userAgent},e.getToken=function(){return this.token},e.getAllowCorsForAnalytics=function(){return this.allowCorsForAnalytics},e.getApplyEncryptedTracking=function(){return this.useHttps},e.getConsecutiveBreakTolerance=function(){return this.consecutiveBreakTolerance},e.setAllowCorsForAnalytics=function(t){this.allowCorsForAnalytics=t},e.setApplyEncryptedTracking=function(t){this.useHttps=t},e.setConsecutiveBreakTolerance=function(t){this.consecutiveBreakTolerance=t},e.setCustomHttpHeaders=function(t){if(t)for(var e,r=E(t);!(e=r()).done;){var n=e.value[0];"USER-AGENT"===n.toUpperCase()&&(s.YoLog.w("SessionProperties: 'User-Agent' ignored"),t.delete(n))}else t=new Map;this.customHttpHeaders=t},e.setFireHistoricalBeacons=function(t){this.fireHistoricalBeacons=t},e.setPrefetchResources=function(t){this.prefetchResources=t},e.setRequestTimeout=function(t){this.requestTimeout=t},e.setResourceTimeout=function(t){this.resourceTimeout=t},e.setToken=function(t){this.token=t},e.setUserAgent=function(t){this.userAgent=t},e.toString=function(){return"Session Properties:\n allowCorsForAnalytics: "+this.allowCorsForAnalytics+"\n applyEncryptedTracking: "+this.useHttps+"\n consecutiveBreakTolerance: "+this.consecutiveBreakTolerance+"\n customHttpHeaders: "+(0,h.mapToString)(this.customHttpHeaders)+"\n eventCategories: "+this.eventCategories+"\n fireHistoricalBeacons: "+this.fireHistoricalBeacons+"\n prefetchResources: "+this.prefetchResources+"\n requestTimeout: "+this.requestTimeout+"\n resourceTimeout: "+this.resourceTimeout+"\n userAgent: "+this.userAgent+"\n token: "+this.token},t}())},9373(t,e,r){"use strict";
2e.__esModule=!0,e.SessionDVRLive=void 0;var n=r(7999),i=r(29918),a=r(50103),o=r(43593),s=r(37964),c=r(19811),l=r(48762),u=r(10209),d=r(49573),h=r(17086),g=r(89219),p=r(16296),f=r(63575),v=r(16357);function y(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function m(t,e){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},m(t,e)}e.SessionDVRLive=function(t){function e(e){var r;return(r=t.call(this,e)||this).streamStart=g.INVALID_WINDOW,r.manifestData=new Map,r.windowStart=g.INVALID_WINDOW,r.windowEnd=g.INVALID_WINDOW,r.windowSize=g.INVALID_WINDOW,r.pausePoller=null,r.pauseUrl="",r.targetDuration=f.Constant.DEFAULT_POLLING_DELAY,r.setPlaybackPolicyHandler(new v.DefaultPlaybackPolicyHandler(g.PlaybackMode.DVRLIVE)),r}var r,n;n=t,(r=e).prototype=Object.create(n.prototype),r.prototype.constructor=r,m(r,n),e.create=function(t,r,n){var i=new e(r);if(!n)return i.initialiseFromSession(t);i.initialiseFromSession(t).then(function(){d.YoLog.d(d.DebugFlags.DEBUG_LIFECYCLE,"Session initialised")}).catch(function(){d.YoLog.d(d.DebugFlags.DEBUG_LIFECYCLE,"Session failed to initialise")}).finally(function(){n(new a.Event(i))})};var E=e.prototype;return E.getDuration=function(){return this.windowEnd},E.getPauseUrl=function(){return this.pauseUrl},E.getStreamStart=function(){return this.streamStart},E.getManifestData=function(t){return t?this.manifestData.get(t):this.manifestData},E.getWindowStart=function(){return this.windowStart},E.getWindowEnd=function(){return this.windowEnd},E.getWindowSize=function(){return this.windowSize},E.removeExpiredAdBreaks=function(){for(var t=this.streamStart===g.INVALID_WINDOW?this.getPlayhead():this.windowStart,e=this.getAdBreakForPlayhead(this.getPlayhead()),r=this.linearAdBreaks.length-1;r>=0;r--){var n=this.linearAdBreaks[r];if(n.getStart()+n.getDuration()<=t){if(d.YoLog.d(d.DebugFlags.DEBUG_LIFECYCLE,"Removing ad break. Start: "+n.getStart()+"; duration: "+n.getDuration()),n===e){d.YoLog.d(d.DebugFlags.DEBUG_LIFECYCLE,"Removing the current adbreak");var i=e.getAdvertFromPlayhead(this.getPlayhead());i&&i.setInactive(),this.onAdvertEnd(),this.onAdvertBreakEnd()}this.linearAdBreaks.splice(r,1)}}},E.shutdown=function(){t.prototype.shutdown.call(this),this.analyticPoller&&(this.analyticPoller.shutdown(),this.analyticPoller=null),this.pausePoller&&(this.pausePoller.shutdown(),this.pausePoller=null),d.YoLog.d(d.DebugFlags.DEBUG_LIFECYCLE,"resources released")},E.getPlaybackMode=function(){return g.PlaybackMode.DVRLIVE},E.initialisePoller=function(){var t=this;this.getAnalyticsUrl()&&this.pauseUrl&&this.getSessionState()===g.SessionState.INITIALISED&&(this.analyticPoller=new s.UrlPoller(this.getAnalyticsUrl(),this.getSessionProperties().getRequestTimeout(),function(e,r){400===e.status?t.onSessionError(g.SessionErrorCode.TIMEOUT):e.ok&&(t.targetDuration=r,t.parseAnalyticPayload(e.body))}),this.pausePoller=new s.UrlPoller(this.pauseUrl,this.getSessionProperties().getRequestTimeout(),null))},E.hasAnalyticUpdateChanged=function(t){return!this.getLastAnalyticUpdate()||!this.getLastAnalyticUpdate().isEqualTo(t)||(d.YoLog.d(d.DebugFlags.DEBUG_PARSING,"Content unchanged. Analytic update not delivered"),!1)},E.adjustForPdtInitial=function(t){if(this.streamStart===g.INVALID_WINDOW){var e=t.getPdtInitial();null!==e&&(this.streamStart=e,this.manifestData.get("availabilityStartTime")||this.manifestData.set("availabilityStartTime",new Date(e)))}},E.handlePdtStartEnd=function(t){var e=!1,r=t.getPdtStart(),n=t.getPdtEnd();if(null!==r&&null!==n){var i=r,a=n;this.streamStart===g.INVALID_WINDOW&&(this.streamStart=i);var o=i-this.streamStart,s=a-this.streamStart;o===this.windowStart&&s===this.windowEnd||(e=!0,this.windowStart=o,this.windowEnd=s,this.windowSize=this.windowEnd-this.windowStart)}else d.YoLog.w("PDT start/end value(s) invalid or missing");return e},E.updateAdBreaks=function(t){var e=t.getLinearAdBreaks(),r=t.getNonLinearAdBreaks(),n=t.getDisplayAdBreaks(),i=e.length,a=r.length,o=n.length;Array.prototype.push.apply(this.linearAdBreaks,e),Array.prototype.push.apply(this.nonLinearAdBreaks,r),this.streamStart===g.INVALID_WINDOW?d.YoLog.d(d.DebugFlags.DEBUG_PARSING,"Received "+i+" linear, "+a+" nonlinear "+o+" display ad breaks"):d.YoLog.d(d.DebugFlags.DEBUG_PARSING,"Received: "+i+" linear, "+a+" nonlinear "+o+" display ad breaks. New window start: "+this.windowStart+", end: "+this.windowEnd+" (total: "+this.windowSize+")"),this.removeExpiredAdBreaks()},E.parseAnalyticPayload=function(t){var e=this;return this.clearParsingErrors(),c.Parser.parse(t,this).then(function(t){if(e.parsingErrors.length>0&&e.getReportsManager().raiseSessionErrorCallback(g.SessionErrorCode.PARSING_ERROR,e),!t)return null;
2if(!e.hasAnalyticUpdateChanged(t))return t;var r=t.getEarlyReturn();r&&-1!==r&&e.adjustForEarlyReturn(r),e.adjustForPdtInitial(t);var n=e.handlePdtStartEnd(t);return e.updateAdBreaks(t),(e.streamStart!==g.INVALID_WINDOW&&n||t.hasAdBreaks())&&(d.YoLog.trace("sdk analytics "+t.getLinearAdBreaks().length+" "+t.getNonLinearAdBreaks().length+" "+t.getDisplayAdBreaks().length+" "+e.getDuration()),e.setLastAnalyticUpdate(t),e.getReportsManager().raiseAnalyticUpdateCallback(e)),t}).catch(function(t){d.YoLog.d(d.DebugFlags.DEBUG_POLLING,"Analytic Poll completed with unreadable data: "+t),e.parsingErrors.length>0&&e.getReportsManager().raiseSessionErrorCallback(g.SessionErrorCode.PARSING_ERROR,e)})},E.setAdBreaksInactivePriorTo=function(t){for(var e,r=function(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return y(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?y(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(this.linearAdBreaks);!(e=r()).done&&e.value.setAdvertsInactivePriorTo(t););},E.setStreamStart=function(t){this.streamStart=t},E.parseResponse=function(t,e){var r=this.parseManifestResponse(t,e);this.initialiseFromPayload(r,e),this.initialisePoller()},E.initialiseFromPayload=function(t,e){this.setPlaybackUrl(e),t?(0,u.isNullOrEmpty)(t.getAnalyticUrl())?(d.YoLog.w("Analytics URL not found in manifest payload"),this.completeWithStatus(g.SessionState.NO_ANALYTICS,0)):(0,l.getUrl)(t.getAnalyticUrl())?(0,l.getUrl)(t.getPlaybackUrl())?(this.setPlaybackUrl(t.getPlaybackUrl()),(0,u.isNullOrEmpty)(t.getPauseUrl())?(d.YoLog.e("Pause URL not found in manifest"),this.completeWithStatus(g.SessionState.NO_ANALYTICS,g.NO_DVRLIVE)):(0,l.getUrl)(t.getPauseUrl())?(this.setIdentifier(t.getSessionIdentifier()),this.setAnalyticsUrl(t.getAnalyticUrl()),this.pauseUrl=t.getPauseUrl(),this.manifestData.set("availabilityStartTime",t.getAvailabilityStartTime()),this.completeWithStatus(g.SessionState.INITIALISED,0),d.YoLog.d(d.DebugFlags.DEBUG_LIFECYCLE,"Successful. Url: "+this.getPlaybackUrl())):(d.YoLog.w("Malformed pause URL in manifest"),this.completeWithStatus(g.SessionState.NO_ANALYTICS,g.NO_DVRLIVE))):(d.YoLog.w("Player URL is invalid: "+t.getPlaybackUrl()),this.completeWithStatus(g.SessionState.NO_ANALYTICS,g.MALFORMED_URL)):(d.YoLog.w("Malformed analytics URL in manifest"),this.completeWithStatus(g.SessionState.NO_ANALYTICS,g.MALFORMED_URL)):(d.YoLog.e("Unable to process master manifest"),this.completeWithStatus(g.SessionState.NO_ANALYTICS,g.UNKNOWN_FORMAT))},E.parseManifestResponse=function(t,e){return o.HlsManifestParser.isHlsManifest(t)?(d.YoLog.d(d.DebugFlags.DEBUG_PARSING,"Processing HLS master manifest: "+e),o.HlsManifestParser.parse(t)):(d.YoLog.d(d.DebugFlags.DEBUG_PARSING,"Processing DASH manifest: "+e),i.DashManifestParser.parse(t))},E.onPlaybackStart=function(e){this.isNotPlaying()?this.getSessionState()!==g.SessionState.INITIALISED?d.YoLog.w("Reporting START when session is not initialised"):this.analyticPoller&&(t.prototype.onPlaybackStart.call(this,e),this.analyticPoller.start()):d.YoLog.w("Reporting START when start has already been reported")},E.onPlaybackReady=function(){t.prototype.onPlaybackReady.call(this),this.getSessionState()===g.SessionState.INITIALISED&&!0!==this.playing&&this.analyticPoller&&this.analyticPoller.request()},E.onPlaybackPause=function(){this.isNotPlaying()||this.pausePoller&&this.get
2SessionState()===g.SessionState.INITIALISED&&this.pausePoller.start(),t.prototype.onPlaybackPause.call(this)},E.onPlaybackResume=function(){this.isNotPlaying()&&this.pausePoller&&this.pausePoller.stop(),t.prototype.onPlaybackResume.call(this)},E.onPlayerEvent=function(e,r){e!==h.PlayerEvent.SEEK&&e!==h.PlayerEvent.ADVERT_SKIP&&e!==h.PlayerEvent.ADVERT_REWIND||(this.didSeek=!0),t.prototype.onPlayerEvent.call(this,e,r)},E.onPlayheadUpdate=function(e){this.handleHeartbeat(e),t.prototype.onPlayheadUpdate.call(this,e)},E.canPause=function(){return this.streamStart!==g.INVALID_WINDOW&&t.prototype.canPause.call(this)},E.canSkip=function(){if(this.streamStart===g.INVALID_WINDOW)return-1;if(this.policyHandler){var t=(0,p.raiseCallback)(this.policyHandler,this.policyHandler.canSkip,this.getPlayhead(),this.linearAdBreaks,this.getDuration());return null===t&&(t=this.defaultPolicyHandler.canSkip(this.getPlayhead(),this.linearAdBreaks,this.getDuration())),t}return 0},E.willSeekTo=function(e){return this.streamStart===g.INVALID_WINDOW?this.getPlayhead():t.prototype.willSeekTo.call(this,e)},e}(n.SessionSeekable)},7705(t,e,r){"use strict";e.__esModule=!0,e.SessionLive=void 0;var n=r(63575),i=r(29918),a=r(16357),o=r(50103),s=r(89219),c=r(49573),l=r(10209),u=r(42167),d=r(43593),h=r(8621),g=r(48762),p=r(37964),f=r(19811);function v(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return y(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?y(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function y(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function m(t,e){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},m(t,e)}var E=Object.freeze({PLAYED_OUT:0,NOT_PLAYED_OUT:1,NEW_ADVERT_STARTING:2});e.SessionLive=function(t){function e(e,r){var i;return(i=t.call(this,e)||this).advertEndWatchdog=null,i.interSegmentTimeout=n.Constant.INTERSEGMENT_TIMEOUT,i.lastTimedMetadata=null,i.pendingTimedMetadata=null,i.historicalTimedMetadata=[],i.inAdBreak=!1,i.targetDuration=n.Constant.DEFAULT_POLLING_DELAY,i.setAnalyticsUrl(r),i.setPlaybackPolicyHandler(new a.DefaultPlaybackPolicyHandler(s.PlaybackMode.LIVE)),i}var r,y;y=t,(r=e).prototype=Object.create(y.prototype),r.prototype.constructor=r,m(r,y),e.create=function(t,r,n){var i=new e(r,null);if(!n)return i.initialiseFromSession(t);i.initialiseFromSession(t).then(function(){c.YoLog.d(c.DebugFlags.DEBUG_LIFECYCLE,"Session initialised")}).catch(function(){c.YoLog.d(c.DebugFlags.DEBUG_LIFECYCLE,"Session failed to initialise")}).finally(function(){n(new o.Event(i))})};var A=e.prototype;return A.cancelScheduleWatchdog=function(){null!==this.advertEndWatchdog&&(clearTimeout(this.advertEndWatchdog),this.advertEndWatchdog=null,c.YoLog.d(c.DebugFlags.DEBUG_LIFECYCLE,"Cancelled watchdog timer"))},A.getAdBreakForAdvert=function(t){if(t&&this.linearAdBreaks.length>0)for(var e,r=t.getMediaIdentifier(),n=v(this.linearAdBreaks);!(e=n()).done;){var i=e.value;if(i.getAdvertFromIdentifier(r))return i}return null},A.getFirstAdvertRemovingAllPrevious=function(t){if(0===this.linearAdBreaks.length)return null;for(var e=null,r=-1,n=0;n<this.linearAdBreaks.length;++n){for(var i,a=v(this.linearAdBreaks[n].getAdverts());!(i=a()).done;){var o=i.value;if(o.getMediaIdentifier()===t&&o.isActive()){e=o,r=n;break}o.setInactive()}if(null!==e)break}return r>0&&this.linearAdBreaks.splice(0,r),e},A.getMetadataTimeout=function(t){return t&&t.getTypeWithinSegment()===h.TypeWithinSegment.END?this.interSegmentTimeout:Math.max(this.targetDuration+1e3>>1,n.Constant.MIN_INTRASEGMENT_TIMEOUT)},A.getPlaybackMode=function(){return s.PlaybackMode.LIVE},A.handleMetaDataInSequence=function(t,e){var r=this.getCurrentAdvert();if(e.isFirstInSequence())this.onAdvertStart(t,e.getPlayhead());else if(e.isLastInSequence())!r||r.isFiller()&&!this.hasAdvertExpired(r,e)||this.onAdvertEnd(E.PLAYED_OUT);
2else if(r)if(e.isLastInSegment()&&(r.isFiller()||r.isTruncated())&&this.hasAdvertExpired(r,e))c.YoLog.d(c.DebugFlags.DEBUG_STATE_MACHINE,"Filler expired or truncated advert completed. Ending advert and ad break"),this.onAdvertEnd(E.PLAYED_OUT);else{var n=Math.max(e.getPlayhead()-r.getStart(),0);this.signalTimelineTrackingEvents(n)}else this.onAdvertBreakStart(t)},A.handleMetaDataOutOfSequence=function(t,e){var r=this.getCurrentAdvert();r?r.getMediaIdentifier()!==t.getMediaIdentifier()&&(this.onAdvertEnd(E.NOT_PLAYED_OUT),e.isFirstInSequence()?this.onAdvertStart(t,e.getPlayhead()):(e.isLastInSequence()||(t.isFiller()||t.isTruncated())&&e.isLastInSegment()&&this.hasAdvertExpired(t,e))&&(t.setInactive(),this.getCurrentAdBreak().isActive()||this.onAdvertBreakEnd())):e.isFirstInSequence()?this.onAdvertStart(t,e.getPlayhead()):this.scheduleAdvertBreakEnd(this.interSegmentTimeout)},A.hasAdvertExpired=function(t,e){var r=this.interSegmentTimeout,n=e.getPlayhead()-t.getStart()+r;return c.YoLog.d(c.DebugFlags.DEBUG_STATE_MACHINE,"("+(t.isFiller()?"FILLER":"ADVERT")+" CHECK): Ad duration: "+t.getDuration()+", elapsed: "+(e.getPlayhead()-t.getStart()+this.interSegmentTimeout)),n>=t.getDuration()},A.initialisePoller=function(){var t=this;this.getAnalyticsUrl()&&this.getSessionState()===s.SessionState.INITIALISED&&(this.analyticPoller=new p.UrlPoller(this.getAnalyticsUrl(),this.getSessionProperties().getRequestTimeout(),function(e,r){400===e.status?t.onSessionError(s.SessionErrorCode.TIMEOUT):e.ok&&(t.targetDuration=r,t.parseAnalyticPayload(e.body))}))},A.isMetadataInSequence=function(t,e){return this.pendingTimedMetadata?(c.YoLog.d(c.DebugFlags.DEBUG_STATE_MACHINE,"Pending metadata"),!1):e.isInSequence(t)},A.onAdvertBreakEnd=function(){if(this.inAdBreak){var t=this.getCurrentAdBreak();if(t){var e=t.getTrackingReport("breakEnd",!0);this.getReportsManager().fireBeacon(e,new u.ReportingParams(this.getPlayhead()))}this.inAdBreak=!1,c.YoLog.trace("adbreakEnd"),this.getReportsManager().raiseAdBreakCallback("end",null,this),this.linearAdBreaks.length>0&&(this.linearAdBreaks.splice(0,1),c.YoLog.d(c.DebugFlags.DEBUG_LIFECYCLE,"Removed AdBreak. Remaining: "+this.linearAdBreaks.length)),this.pendingTimedMetadata=null,this.historicalTimedMetadata=[],this.setCurrentAdvert(null),this.setCurrentAdBreak(null)}},A.onAdvertBreakStart=function(t){var e=this.getAdBreakForAdvert(t);if(this.inAdBreak){if(null!==e){var r=e.getTrackingReport("breakStart",!this.reportsManager.reportsSuppressed());this.getReportsManager().fireBeacon(r,new u.ReportingParams(this.getPlayhead()))}}else if(this.inAdBreak=!0,this.setCurrentAdBreak(e),c.YoLog.d(c.DebugFlags.DEBUG_LIFECYCLE,"AdBreak count: "+this.linearAdBreaks.length),c.YoLog.trace("adbreakStart"),this.getReportsManager().raiseAdBreakCallback("start",e,this),e){var n=e.getTrackingReport("breakStart",!this.reportsManager.reportsSuppressed());this.getReportsManager().fireBeacon(n,new u.ReportingParams(this.getPlayhead()))}},A.onAdvertEnd=function(t){this.getCurrentAdvert()&&(t!==E.NEW_ADVERT_STARTING?this.cancelScheduleWatchdog():c.YoLog.d(c.DebugFlags.DEBUG_STATE_MACHINE,"onAdvertEnd(): new ad starting, not firing adbreak watchdog timer"),t===E.PLAYED_OUT?this.signalTimelineTrackingEvents(this.getCurrentAdvert().getDuration()):this.getCurrentAdvert().clearTrackingSchedule(),this.getCurrentAdvert().setInactive(),c.YoLog.trace("advertEnd"),this.getReportsManager().raiseAdvertCallback("end",null,this),this.setCurrentAdvert(null),this.getCurrentAdBreak().isActive()?t!==E.NEW_ADVERT_STARTING&&this.scheduleAdvertBreakEnd(this.interSegmentTimeout):this.onAdvertBreakEnd())},A.onAdvertStart=function(e,r){e.setStart(r),this.onAdvertEnd(E.NEW_ADVERT_STARTING),this.onAdvertBreakStart(e),this.setCurrentAdBreak(this.getAdBreakForAdvert(e)),this.getCurrentAdBreak()?(this.setCurrentAdvert(e),t.prototype.onAdvertStart.call(this,e),this.reportsManager.reportsSuppressed()&&this.getCurrentAdvert().clearTrackingSchedule(),c.YoLog.trace("advertStart"),this.getReportsManager().raiseAdvertCallback("start",e,this),this.fireImpressionReport(),this.signalTimelineTrackingEvents(n.Constant.ADVERT_START_TIMESLOT)):c.YoLog.e("*** AdBreak is null ***")},A.parseAnalyticPayload=function(t){var e=this;return this.clearParsingErrors(),f.Parser.parse(t,this).then(function(t){if(e.parsingErrors.length>0&&e.getReportsManager().raiseSessionErrorCallback(s.SessionErrorCode.PARSING_ERROR,e),!t)return null;
2if(e.getLastAnalyticUpdate()&&t.isEqualTo(e.getLastAnalyticUpdate()))return c.YoLog.d(c.DebugFlags.DEBUG_PARSING,"Content unchanged. Analytic update not delivered"),t;var r=t.getEarlyReturn();if(r&&-1!==r&&e.adjustForEarlyReturn(r),e.setLastAnalyticUpdate(t),!t.hasAdBreaks())return c.YoLog.d(c.DebugFlags.DEBUG_PARSING,"No ad breaks in payload"),e.playing||(c.YoLog.trace("sdk analytics 0 0 0"),e.reportsManager.raiseAnalyticUpdateCallback(e)),t;c.YoLog.trace("sdk analytics: "+t.getLinearAdBreaks().length+" "+t.getNonLinearAdBreaks().length+" "+t.getDisplayAdBreaks().length);for(var n,i=!1,a=v(t.getLinearAdBreaks());!(n=a()).done;){var o=n.value;if(0===o.getAdverts().length){var l=new u.ReportingParams(e.getPlayhead());e.getReportsManager().fireBeacon(o.getTrackingReport("breakStart",!0),l),e.getReportsManager().fireBeacon(o.getTrackingReport("breakEnd",!0),l)}else e.linearAdBreaks.push(o),i=!0}for(var d,h=v(t.getNonLinearAdBreaks());!(d=h()).done;){var g=d.value;e.nonLinearAdBreaks.push(g),i=!0}for(var p,f=v(t.getDisplayAdBreaks());!(p=f()).done;){var y=p.value;e.displayAdBreaks.push(y),i=!0}if(i&&!e.pendingTimedMetadata&&e.getReportsManager().raiseAnalyticUpdateCallback(e),e.pendingTimedMetadata){c.YoLog.d(c.DebugFlags.DEBUG_STATE_MACHINE,"Process pending metadata: "+e.pendingTimedMetadata);var m=e.pendingTimedMetadata;e.pendingTimedMetadata=null,e.onTimedMetadata(m)}return e.processHistoricalData(),t}).catch(function(t){c.YoLog.d(c.DebugFlags.DEBUG_POLLING,"Analytic Poll completed with unreadable data: "+t),e.parsingErrors.length>0&&e.getReportsManager().raiseSessionErrorCallback(s.SessionErrorCode.PARSING_ERROR,e)})},A.onPlaybackContinue=function(){this.isPlaybackBuffering()&&(this.getCurrentAdvert()?this.scheduleAdvertEnd():this.getCurrentAdBreak()&&this.scheduleAdvertBreakEnd(this.interSegmentTimeout)),t.prototype.onPlaybackContinue.call(this)},A.onPlaybackPause=function(){t.prototype.onPlaybackPause.call(this),this.cancelScheduleWatchdog()},A.onPlaybackReady=function(){t.prototype.onPlaybackReady.call(this),this.getSessionState()===s.SessionState.INITIALISED&&!0!==this.playing&&this.analyticPoller&&this.analyticPoller.request()},A.onPlaybackResume=function(){this.isNotPlaying()&&!this.isPlaybackBuffering()&&(this.getCurrentAdvert()?this.scheduleAdvertEnd(null):this.getCurrentAdBreak()&&this.scheduleAdvertBreakEnd(this.interSegmentTimeout)),t.prototype.onPlaybackResume.call(this)},A.onPlaybackStall=function(){t.prototype.onPlaybackStall.call(this),this.cancelScheduleWatchdog()},A.onPlaybackStart=function(e){this.isNotPlaying()?this.getSessionState()!==s.SessionState.INITIALISED?c.YoLog.w("Reporting START when session has not been initialised"):(t.prototype.onPlaybackStart.call(this,e),this.analyticPoller.start()):c.YoLog.w("Reporting START when start has already been reported")},A.onTimedMetadata=function(t){if(c.YoLog.trace("timedmetadata "+t.getTypeWithinSegment().key+t.getSegmentNumber()+":"+t.getSegmentCount()+" "+t.getPlayhead()),c.YoLog.d(c.DebugFlags.DEBUG_STATE_MACHINE,"Received metadata: "+t+", timestamp: "+t.getTimestamp()),this.isPlaybackBuffering())c.YoLog.w("Playback buffering - should not be receiving timed metadata");else if(this.isNotPlaying())c.YoLog.w("Playback not playing - should not be receiving timed metadata");else if(this.scheduleAdvertEnd(t),t.isDuplicate(this.lastTimedMetadata)||t.isDuplicate(this.pendingTimedMetadata))c.YoLog.d(c.DebugFlags.DEBUG_STATE_MACHINE,"Duplicate metadata: "+t);else{var e=t.getMediaId(),r=this.getFirstAdvertRemovingAllPrevious(e);if(!r)return t.isFirstInSequence()?(c.YoLog.d(c.DebugFlags.DEBUG_STATE_MACHINE,"FIRST pending metadata for advert "+e),this.pendingTimedMetadata=t,this.lastTimedMetadata=null,this.analyticPoller&&this.analyticPoller.request()):t.isLastInSequence()&&this.getSessionProperties().getFireHistoricalBeacons()&&this.pendingTimedMetadata&&(c.YoLog.d(c.DebugFlags.DEBUG_STATE_MACHINE,"LAST pending metadata for advert: "+e+" . Moving to historical list"),this.historicalTimedMetadata.push(this.pendingTimedMetadata),this.pendingTimedMetadata=null),void this.onAdvertBreakStart(null);if(this.isMetadataInSequence(this.lastTimedMetadata,t))return this.lastTimedMetadata=t,void this.handleMetaDataInSequence(r,t);c.YoLog.d(c.DebugFlags.DEBUG_STATE_MACHINE,"Metadata out of sequence"),this.pendingTimedMetadata=null,this.lastTimedMetadata=t,this.handleMetaDataOutOfSequence(r,t)}},A.parseResponse=function(t,e){var r=this.parseManifestResponse(t,e);this.initialiseFromPayload(r,e),this.initialisePoller()}
2,A.parseManifestResponse=function(t,e){return d.HlsManifestParser.isHlsManifest(t)?(c.YoLog.d(c.DebugFlags.DEBUG_PARSING,"Processing HLS master playlist: "+e),d.HlsManifestParser.parse(t)):(c.YoLog.d(c.DebugFlags.DEBUG_PARSING,"Processing DASH manifest: "+e),i.DashManifestParser.parse(t))},A.initialiseFromPayload=function(t,e){t?(0,l.isNullOrEmpty)(t.getAnalyticUrl())?(this.setPlaybackUrl(e),c.YoLog.w("Analytics URL not found in manifest payload"),this.completeWithStatus(s.SessionState.NO_ANALYTICS,0)):(0,g.getUrl)(t.getAnalyticUrl())?(0,g.getUrl)(t.getPlaybackUrl())?(this.setPlaylistProperties(t),this.interSegmentTimeout=t.getIntersegmentTimeout(),this.completeWithStatus(s.SessionState.INITIALISED,0),c.YoLog.d(c.DebugFlags.DEBUG_LIFECYCLE,"Successful. URL: "+this.getPlaybackUrl())):(this.setPlaybackUrl(e),c.YoLog.w("Playback URL not found in manifest payload"),this.completeWithStatus(s.SessionState.NO_ANALYTICS,s.MALFORMED_URL)):(this.setPlaybackUrl(e),c.YoLog.w("Malformed analytics URL in manifest payload"),this.completeWithStatus(s.SessionState.NO_ANALYTICS,s.MALFORMED_URL)):(this.setPlaybackUrl(e),c.YoLog.w("Playlist/manifest processing unsuccessful"),this.completeWithStatus(s.SessionState.NO_ANALYTICS,s.UNKNOWN_FORMAT))},A.processHistoricalData=function(){var t=this.getCurrentAdBreak();if(t)for(var e,r=v(this.historicalTimedMetadata);!(e=r()).done;){var n=e.value.getMediaId(),i=t.getAdvertFromIdentifier(n);if(i){c.YoLog.d(c.DebugFlags.DEBUG_REPORTS,"Firing beacon for historical advert: "+n);for(var a,o=new u.ReportingParams(this.getPlayhead(),i.getStart(),i.getLinearCreative().getAssetUri(),i.getMacroSubstitutions()),s=[],l=v(i.getTrackingSchedule());!(a=l()).done;){var d=a.value,h=d[0],g=d[1];s.push(h);var p=i.getTrackingReportLinear(g);p&&(c.YoLog.d(c.DebugFlags.DEBUG_REPORTS,"Firing beacon(s) for event: "+h),this.getReportsManager().fireBeacon(p,o))}this.removeKeysFromTrackingSchedule(s)}}this.historicalTimedMetadata=[]},A.scheduleAdvertBreakEnd=function(t){this.cancelScheduleWatchdog(),this.advertEndWatchdog=setTimeout(this.metadataWatchdogEndBreak.bind(this),t),c.YoLog.d(c.DebugFlags.DEBUG_STATE_MACHINE,"Scheduled adbreak end watchdog timer: "+t+"ms")},A.scheduleAdvertEnd=function(t){this.cancelScheduleWatchdog();var e=this.getMetadataTimeout(t);this.advertEndWatchdog=setTimeout(this.metadataWatchdog.bind(this),e),c.YoLog.d(c.DebugFlags.DEBUG_STATE_MACHINE,"Scheduled advert end watchdog timer: "+e+"ms")},A.setTargetDuration=function(t){this.targetDuration=t},A.shutdown=function(){t.prototype.shutdown.call(this),this.cancelScheduleWatchdog(),this.analyticPoller&&(this.analyticPoller.shutdown(),this.analyticPoller=null,c.YoLog.d(c.DebugFlags.DEBUG_LIFECYCLE,"Analytic poller cancelled"))},A.setPlaylistProperties=function(t){this.setIdentifier(t.getSessionIdentifier()),this.setAnalyticsUrl(t.getAnalyticUrl()),this.setPlaybackUrl(t.getPlaybackUrl())},A.metadataWatchdog=function(){c.YoLog.w("Watchdog timer expired before metadata was received"),this.pendingTimedMetadata?this.onAdvertBreakEnd():this.onAdvertEnd(E.NOT_PLAYED_OUT)},A.metadataWatchdogEndBreak=function(){c.YoLog.w("Watchdog timer expired before metadata was received"),this.onAdvertBreakEnd()},e}(s.Session)},41878(t,e,r){"use strict";e.__esModule=!0,e.SessionVOD=void 0;var n=r(50103),i=r(49573),a=r(89219),o=r(19811),s=r(10209),c=r(17086),l=r(81763),u=r(48762),d=r(7999),h=r(16357);function g(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return p(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?p(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function p(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function f(t,e){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},f(t,e)}var v=/(.+?:\/\/)/;e.SessionVOD=function(t){function e(e){var r;return(r=t.call(this,e)||this).setPlaybackPolicyHandler(new h.DefaultPlaybackPolicyHandler(a.PlaybackMode.VOD)),r.resolveOnStart=!1,r}var r,d;d=t,(r=e).prototype=Object.create(d.prototype),r.prototype.constructor=r,f(r,d),e.create=function(t,r,a){var o=new e(r);return a?o.initialiseFromSession(t).then(function(){i.YoLog.d(i.DebugFlags.DEBUG_LIFECYCLE,"Session initialised")}).catch(function(){i.YoLog.d(i.DebugFlags.DEBUG_LIFECYCLE,"Session failed to initialise")}).finally(function(){a(new n.Event(o))}):o.initialiseFromSession(t)};var p=e.prototype;return p.getContentPositionForPlayhead=function(t){if(0===this.duration||0===t)return 0;if(0===this.linearAdBreaks.length)return t;for(var e,r=g(this.linearAdBreaks);!(e=r()).done;){var n=e.value;if(n.getStart()<=t&&t<n.getStart()+n.getDuration()){t=n.getStart()+n.getDuration();break}}for(var i=0,a=t;i<this.linearAdBreaks.length&&this.linearAdBreaks[i].getStart()<t;)a-=this.linearAdBreaks[i++].getDuration();return a},p.getPlaybackMode=function(){return a.PlaybackMode.VOD},p.getPlayheadForContentPosition=function(t){if(0===this.linearAdBreaks.length)return t;for(var e=0;
2e<this.linearAdBreaks.length&&this.linearAdBreaks[e].getStart()<=t;)t+=this.linearAdBreaks[e++].getDuration();return t},p.logVmapParseWarning=function(t){var e="Unable to parse VMAP data.\n - Stream duration: "+(t?t.getStreamDuration():"null")+"\n - Host node: "+(t?t.getHostNode():"null")+"\n - Host suffix: "+(t?t.getHostSuffix():null);i.YoLog.d(i.DebugFlags.DEBUG_LIFECYCLE,e)},p.parseResponse=function(t,e){var r=this;return o.Parser.parse(t,this).then(function(t){!t||0===t.getStreamDuration()||(0,s.isNullOrEmpty)(t.getHostNode()||(0,s.isNullOrEmpty)(t.getHostSuffix()))?(r.setPlaybackUrl(e),r.logVmapParseWarning(t),t?r.completeWithStatus(a.SessionState.NO_ANALYTICS,0):r.completeWithStatus(a.SessionState.NO_ANALYTICS,a.UNKNOWN_FORMAT)):(r.initialiseFromAnalyticData(t,r.findScheme(e)),i.YoLog.d(i.DebugFlags.DEBUG_PARSING,t.toString()),t.getHasPlaceholder()?(r.completeWithStatus(a.SessionState.INITIALISED,a.PARTIAL_VMAP),r.resolveOnStart=!0):r.completeWithStatus(a.SessionState.INITIALISED,0))}),!0},p.findScheme=function(t){return v.exec(t)?v.exec(t)[1]:(i.YoLog.w("Unable to match scheme in primary URL. Assuming http://"),"http://")},p.fetchPlaceholderFulfilment=function(){var t=this;i.YoLog.d(i.DebugFlags.DEBUG_LIFECYCLE,"Found partial VMAP");var e=this.findFulfilmentUrl(this.linearAdBreaks);if(!(0,u.getUrl)(e))return i.YoLog.e("Fulfilment payload followup URL is not valid: "+e),void this.onSessionError(a.SessionErrorCode.UNRESOLVED_BREAK);var r=this.sessionProperties.getCustomHttpHeaders();return l.HttpConnection.get(e,{},this.sessionProperties.getRequestTimeout(),r).then(function(e){if(e.ok)return t.handleFulfilmentResponse(e.body);i.YoLog.e("Fulfilment payload request failed: "+e.statusText),t.onSessionError(a.SessionErrorCode.UNRESOLVED_BREAK)})},p.findFulfilmentUrl=function(t){for(var e=null,r=t.length-1;r>=0&&!(e=t[r].getAdTagUri());--r);return e},p.handleFulfilmentResponse=function(t){var e=this;return o.Parser.parse(t,this,{skipNormalisation:!0}).then(function(t){e.parsingErrors.length>0&&e.getReportsManager().raiseSessionErrorCallback(a.SessionErrorCode.PARSING_ERROR,e),t?(e.replacePlaceholderAdbreaks(t.getLinearAdBreaks())?e.reportsManager.raiseAnalyticUpdateCallback(e):(i.YoLog.e("Fulfilment payload could not be merged"),e.onSessionError(a.SessionErrorCode.UNRESOLVED_BREAK)),i.YoLog.d(i.DebugFlags.DEBUG_PARSING,t.toString())):(i.YoLog.e("Fulfilment payload could not be parsed"),e.onSessionError(a.SessionErrorCode.UNRESOLVED_BREAK))})},p.replacePlaceholderAdbreaks=function(t){for(var e,r=!0,n=g(this.linearAdBreaks);!(e=n()).done;){var a=e.value;if(a.isPlaceholder())for(var o,s=g(t);!(o=s()).done;){var c=o.value;a.getIdentifier()===c.getIdentifier()&&a.getStart()===c.getStart()&&a.mergePlaceholderAdverts(c)}a.isPlaceholder()&&(i.YoLog.e("Placeholder AdBreak with id "+a.getIdentifier()+" not found"),r=!1)}return r},p.onPlayerEvent=function(e,r){e!==c.PlayerEvent.SEEK&&e!==c.PlayerEvent.ADVERT_SKIP&&e!==c.PlayerEvent.ADVERT_REWIND||(this.didSeek=!0),t.prototype.onPlayerEvent.call(this,e,r)},p.onPlaybackStart=function(e){t.prototype.onPlaybackStart.call(this,e),this.resolveOnStart&&(this.resolveOnStart=!1,this.fetchPlaceholderFulfilment())},p.onPlayheadUpdate=function(e){this.handleHeartbeat(e),t.prototype.onPlayheadUpdate.call(this,e)},p.setAdBreaksInactivePriorTo=function(e){t.prototype.setAdBreaksInactivePriorTo.call(this,e)},p.setDuration=function(t){this.duration=t},e}(d.SessionSeekable)},8621(t,e,r){"use strict";e.__esModule=!0,e.TypeWithinSegment=e.TimedMetadata=void 0;var n=r(49573),i=(e.TimedMetadata=function(){function t(e,r,n,i,a,o){this.mediaId=t.decodeString(e),this.offset=a,this.segmentCount=n,this.segmentNumber=r,this.playhead=o,this.timestamp=Date.now(),this.typeWithinSegment=i}t.createFromMetadata=function(e,r,a,o,s){if(!e)return n.YoLog.e("Failed to interpret ymid"),null;a=t.decodeString(a);var c=i.getForKey(a);if(null==c)return n.YoLog.e("Failed to interpret ytyp"),null;var l=t.decodeString(r).split(":");if(2!==l.length)return n.YoLog.e("Failed to interpret yseq"),null;var u=parseInt(l[0]),d=parseInt(l[1]);if(isNaN(u)||0===u||isNaN(d)||0===d)return n.YoLog.e("Failed to interpret yseq"),null;var h=parseFloat(this.decodeString(o)),g=Number.isNaN(h)?0:Math.round(1e3*h);return s<0?(n.YoLog.w("Invalid playhead provided:"+s),null):new t(e,u,d,c,g,s)},t.decodeString=function(t){return t&&t.length>0&&3===t[0]?t.substring(1):t};var e=t.prototype;return e.getMediaId=function(){return this.mediaId},e.getOffset=function(){return this.offset},e.getPlayhead=function(){return this.playhead},e.getSegmentCount=function(){return this.segmentCount},e.getSegmentNumber=function(){return this.segmentNumber},e.getTimestamp=function(){return this.timestamp},e.getTypeWithinSegment=function(){return this.typeWithinSegment},e.isDuplicate=function(t){return!!t&&this.mediaId===t.mediaId&&this.segmentNumber===t.segmentNumber&&this.segmentCount===t.segmentCount&&this.typeWithinSegment===t.typeWithinSegment&&this.offset===t.offset},e.isFirstInSequence=function(){return this.isFirstInSegment()&&1===this.segmentNumber},e.isFirstInSegment=function(){return this.typeWithinSegment===i.START},e.isInSequence=function(t){if(!t)return!0;
2if(this.mediaId!==t.mediaId)return this.isFirstInSequence();var e=this.segmentNumber-t.segmentNumber;return 0===e?this.typeWithinSegment.isInSequence(t.typeWithinSegment)||this.typeWithinSegment.isEqualMidType(t.typeWithinSegment)&&this.offset>t.offset:e>0},e.isLastInSegment=function(){return this.typeWithinSegment===i.END},e.isLastInSequence=function(){return this.isLastInSegment()&&this.isLastSegment()},e.isLastSegment=function(){return this.segmentNumber===this.segmentCount},e.toString=function(){return"Metadata [ @"+this.playhead+" / "+this.mediaId+" / "+this.segmentNumber+":"+this.segmentCount+" / "+this.typeWithinSegment.key+" : "+this.offset+" ]"},t}(),e.TypeWithinSegment=function(){function t(t,e){this.key=t,this.order=e}t.getForKey=function(e){if(!t.initialised){var r=t.END,n=t.MID,i=t.START;t.KEY_MAP.set(r.key,r),t.KEY_MAP.set(n.key,n),t.KEY_MAP.set(i.key,i),t.initialised=!0}return t.KEY_MAP.get(e)};var e=t.prototype;return e.isEqualMidType=function(t){return!!t&&1===this.order&&1===t.order},e.isInSequence=function(t){return!t||this.order>t.order},t}());i.END=new i("E",2),i.MID=new i("M",1),i.START=new i("S",0),i.KEY_MAP=new Map,i.initialised=!1},45734(t,e,r){"use strict";e.__esModule=!0,e.TrackingError=void 0;var n=r(80674),i=r(59481);function a(t,e){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},a(t,e)}e.TrackingError=function(t){function e(e,r,i,a,o){var s;return(s=t.call(this,(0,n.millisToTimestamp)(Date.now()))||this).adBreakIdentifier=a,s.url=e,s.errorCode=r,s.event=i,s.mediaIdentifier=o||"",s}var r,i;i=t,(r=e).prototype=Object.create(i.prototype),r.prototype.constructor=r,a(r,i);var o=e.prototype;return o.getAdBreakIdentifier=function(){return this.adBreakIdentifier},o.getMediaIdentifier=function(){return this.mediaIdentifier},o.getUrl=function(){return this.url},o.getErrorCode=function(){return this.errorCode},o.getEvent=function(){return this.event},e}(i.SessionError)},23572(t,e,r){"use strict";e.__esModule=!0,e.VerificationEventHandler=void 0;var n=r(92704);function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}e.VerificationEventHandler=function(t){function e(){return t.apply(this,arguments)||this}var r,n;return n=t,(r=e).prototype=Object.create(n.prototype),r.prototype.constructor=r,i(r,n),e.prototype.onVerificationEvent=function(t,e){throw new Error("Function must be overridden")},e}(n.XmlValidation)},16296(t,e,r){"use strict";e.__esModule=!0,e.isValidCallbackImplementation=function(t,e){if(!t)return n.YoLog.e(e.name+" has not been implemented"),!1;for(var r,a=!0,o=new e,s=function(t){var e="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(e)return(e=e.call(t)).next.bind(e);if(Array.isArray(t)||(e=function(t,e){if(t){if("string"==typeof t)return i(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(t,e):void 0}}(t))){e&&(t=e);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[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.")}(Object.getOwnPropertyNames(e.prototype));!(r=s()).done;){var c=r.value;"constructor"!==c&&(t[c]&&t[c]!==o[c]||(n.YoLog.e(e.name+" does not implement "+c),a=!1))}return a},e.raiseCallback=function(t,e){t&&(e=e.bind(t));var r=null;try{for(var i=arguments.length,a=new Array(i>2?i-2:0),o=2;o<i;o++)a[o-2]=arguments[o];r=e.apply(void 0,a)}catch(t){var s=e.toString(),c=/function ([^\(]*)/.exec(s);c&&c.length>0?n.YoLog.e("Exception thrown from callback function "+c[1]+": "+t):n.YoLog.e("Exception thrown from callback function.")}return r};var n=r(49573);function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}},70334(t,e,r){"use strict";e.__esModule=!0,e.copyMap=function(t){for(var e,r=new Map,n=function(t){var e="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(e)return(e=e.call(t)).next.bind(e);if(Array.isArray(t)||(e=function(t,e){if(t){if("string"==typeof t)return i(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(t,e):void 0}}(t))){e&&(t=e);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[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.")}(t);!(e=n()).done;){var a=e.value,o=a[0],s=a[1];r.set(o,s)}return r},e.getKeyFromValue=function(t,e){if(!e)return n.YoLog.e("getKeyFromValue: obj is null"),null;for(var r=0,i=Object.entries(e);r<i.length;r++){var a=i[r],o=a[0];if(t===a[1])return o}return null},e.mapToString=function(t){return t?"{"+Array.from(t,function(t){return t[0]+": "+t[1]}).join(", ")+"}":"{}"},e.objectToMap=function(t){var e=new Map;if(t)for(var r in t)e.set(r,t[r]);return e};var n=r(49573);function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}},63575(t,e){"use strict";
2e.__esModule=!0,e.VISIBLE_EVENTS=e.VERIFICATION_EVENTS=e.TIMELINE_EVENTS=e.Payload=e.PLAYER_OPERATION_EVENTS=e.NON_LINEAR_EVENTS=e.LINEAR_EVENTS=e.LEGACY_EVENT_MAPPING=e.INTERACTIVE_EVENTS=e.Constant=e.COMPANION_EVENTS=e.CAT_TIMELINE_EVENTS=e.CAT_AD_BREAK_EVENTS=e.AD_BREAK_EVENTS=void 0,e.getLogTag=function(){return"YoAdManagement: "},e.PLAYER_OPERATION_EVENTS=["mute","unmute","pause","resume","rewind","playerExpand","playerCollapse","closeLinear","skip"],e.COMPANION_EVENTS=["creativeView"],e.INTERACTIVE_EVENTS=["interactiveStart"],e.LINEAR_EVENTS=["loaded","start","firstQuartile","midpoint","thirdQuartile","complete","progress","mute","unmute","pause","resume","rewind","playerExpand","playerCollapse","closeLinear","skip","otherAdInteraction"],e.NON_LINEAR_EVENTS=["creativeView","mute","unmute","pause","resume","rewind","skip","playerExpand","playerCollapse","adExpand","adCollapse","minimize","overlayViewDuration","acceptInvitation","close","otherAdInteraction"],e.VISIBLE_EVENTS=["creativeView","close","interactiveStart"],e.VERIFICATION_EVENTS=["verificationNotExecuted"],e.TIMELINE_EVENTS=["loaded","start","firstQuartile","midpoint","thirdQuartile","complete","progress"],e.AD_BREAK_EVENTS=["breakStart","breakEnd"],e.LEGACY_EVENT_MAPPING={creativeView:"start",fullscreen:"playerExpand",exitFullscreen:"playerCollapse",expand:"playerExpand",collapse:"playerCollapse"},e.Constant=Object.freeze({ADVERT_START_TIMESLOT:5,DEFAULT_POLLING_DELAY:11e3,EVENT_CUEPOINT_TOL:10,EXPECTED_POLL_COMPLETE_TIME:250,INTERSEGMENT_TIMEOUT:2700,REQUEST_TIMEOUT:5e3,MAX_CADENCE:250,MIN_INTRASEGMENT_TIMEOUT:2500,MIN_SEGMENT_LENGTH:2e3,USER_AGENT:"Yospace SDK/3.0"}),e.CAT_AD_BREAK_EVENTS=1,e.CAT_TIMELINE_EVENTS=2,e.Payload=Object.freeze({IDENTIFIER:"SESSIONIDENTIFIER",LOCATION:"LOCATION",HOSTNODE:"HOST",PORT:"PORT",ANALYTICURL:"ANALYTICURL",PAUSEURL:"PAUSEURL",SCHEME:"SCHEME",QS:"QUERYSTRING",AVAILABILITYSTART:"AVAILABILITYSTARTTIME"})},80674(t,e){"use strict";e.__esModule=!0,e.millisToTimeString=function(t){var e=Math.floor(t/1e3%60),r=Math.floor(t/6e4%60),n=Math.floor(t/36e5%24);return""+(n<10?0:"")+n+":"+(r<10?0:"")+r+":"+(e<10?0:"")+e+"."+((t=Math.round(t%1e3))<10?"00":t<100?"0":"")+t},e.millisToTimestamp=function(t){return new Date(t).toISOString()},e.pdtToMillis=function(t,e){if(!t||0===t.length||-1===t.indexOf("T"))return e;var r=t.substring(t.indexOf("T"),t.length-1);-1===r.indexOf("+")&&-1===r.indexOf("-")&&Number.isInteger(Number.parseInt(t.charAt(t.length-1)))&&(t+="Z");var n=Date.parse(t);return Number.isNaN(n)?e:n},e.stringToIntegerNumber=function(t,e){var r=Number.parseInt(t);return Number.isInteger(r)?r:e},e.timeStringToMillis=function(t,e){var r=void 0!==e?e:-1;if(!("string"==typeof t&&t.length>0))return r;var n=t.split(":");if(3!==n.length)return r;var i=parseInt(n[0]),a=parseInt(n[1]);if(Number.isNaN(i)||Number.isNaN(a))return r;var o=0,s=0,c=n[2].split(".");return 2!==c.length?o=parseInt(n[2]):(o=parseInt(c[0]),s=parseInt(c[1])),Number.isNaN(o)||Number.isNaN(s)||i>23||a>59||o>59?r:36e5*i+6e4*a+1e3*o+s}},41493(t,e,r){"use strict";e.__esModule=!0,e.getClickTrackingReport=function(t,e){return t.length>0?new i.TrackingReport(e,t):null},e.isValidSize=function(t){if(!t)return!1;for(var e,r=null,i=null,o=a(t);!(e=o()).done;){var s=e.value,c=s.getName(),l=s.getValue();"width"!==c||(0,n.isNullOrEmpty)(l)?"height"!==c||(0,n.isNullOrEmpty)(l)||(i=s):r=s}return!(!r||!i)},e.prefetch=function(t,e){for(var r,n=a(t);!(r=n()).done;)r.value[1].prefetch(e)};var n=r(10209),i=r(37178);function a(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return o(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}},81763(t,e,r){"use strict";
vendor: 4,619 bytes, line 2
2e.__esModule=!0,e.HttpConnection=void 0;var n=r(48762),i=r(63575),a=r(49573),o=r(89219);function s(){s=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function d(t,e,r,n){var a=e&&e.prototype instanceof m?e:m,o=Object.create(a.prototype),s=new _(n||[]);return i(o,"_invoke",{value:C(t,r,s)}),o}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=d;var g="suspendedStart",p="suspendedYield",f="executing",v="completed",y={};function m(){}function E(){}function A(){}var T={};u(T,o,function(){return this});var k=Object.getPrototypeOf,b=k&&k(k(R([])));b&&b!==r&&n.call(b,o)&&(T=b);var S=A.prototype=m.prototype=Object.create(T);function I(t){["next","throw","return"].forEach(function(e){u(t,e,function(t){return this._invoke(e,t)})})}function D(t,e){function r(i,a,o,s){var c=h(t[i],t,a);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==typeof u&&n.call(u,"__await")?e.resolve(u.__await).then(function(t){r("next",t,o,s)},function(t){r("throw",t,o,s)}):e.resolve(u).then(function(t){l.value=t,o(l)},function(t){return r("throw",t,o,s)})}s(c.arg)}var a;i(this,"_invoke",{value:function(t,n){function i(){return new e(function(e,i){r(t,n,e,i)})}return a=a?a.then(i,i):i()}})}function C(e,r,n){var i=g;return function(a,o){if(i===f)throw Error("Generator is already running");if(i===v){if("throw"===a)throw o;return{value:t,done:!0}}for(n.method=a,n.arg=o;;){var s=n.delegate;if(s){var c=P(s,n);if(c){if(c===y)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===g)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=f;var l=h(e,r,n);if("normal"===l.type){if(i=n.done?v:p,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i=v,n.method="throw",n.arg=l.arg)}}}function P(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,P(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var a=h(i,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,y;var o=a.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function L(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function N(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function _(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function R(e){if(e||""===e){var r=e[o];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(typeof e+" is not iterable")}return E.prototype=A,i(S,"constructor",{value:A,configurable:!0}),i(A,"constructor",{value:E,configurable:!0}),E.displayName=u(A,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===E||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,A):(t.__proto__=A,u(t,l,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},I(D.prototype),u(D.prototype,c,function(){return this}),e.AsyncIterator=D,e.async=function(t,r,n,i,a){void 0===a&&(a=Promise);var o=new D(d(t,r,n,i),a);return e.isGeneratorFunction(r)?o:o.next().then(function(t){return t.done?t.value:o.next()})},I(S),u(S,l,"Generator"),u(S,o,function(){return this}),u(S,"toString",function(){return"[object Generator]"}),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=R,_.prototype={constructor:_,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEac
2h(N),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return s.type="throw",s.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=t,o.arg=e,a?(this.method="next",this.next=a.finallyLoc,y):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),N(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;N(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function c(t,e,r,n,i,a,o){try{var s=t[a](o),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function l(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return u(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}e.HttpConnection=function(){function t(t,e,r){this.url=t,this.opts=e,this.requestTimeout=r||i.Constant.REQUEST_TIMEOUT}return t.get=function(e,r,n,i,a){return t.handleGet(e,r,n,i,a)},t.handleGet=function(e,r,i,o,s){if(a.YoLog.d(a.DebugFlags.DEBUG_HTTP_REQUESTS,"Requesting "+e),s instanceof Map){var c=(0,n.getUrl)(e);if(c){for(var u,d=l(s);!(u=d()).done;){var h=u.value,g=h[0],p=h[1];c.searchParams.set(g,p)}e=c.toString()}}if(r.headers=r.headers?r.headers:new Headers,o)for(var f,v=l(o);!(f=v()).done;){var y=f.value,m=y[0],E=y[1];r.headers.set(m,E)}return new t(e,r,i).executeGet()},t.prototype.executeGet=function(){var t,e=(t=s().mark(function t(){var e,r;return s().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e={},this.opts.method="GET",t.next=4,(0,n.fetchWithTimeout)(this.url,this.opts,this.requestTimeout);case 4:if(r=t.sent,e.ok=r.ok,e.headers=r.headers,e.status=r.status,e.statusText=r.statusText,e.timeout=r.timeout,e.url=r.url,e.error=r.error,e.type=r.type,e.timeout&&a.YoLog.w("Request to "+(e.url||this.url)+" timed out"),e.error&&a.YoLog.w("Request to "+(e.url||this.url)+" failed: "+e.error),!r.ok){t.next=29;break}return t.prev=16,t.next=19,r.text();case 19:e.body=t.sent,t.next=29;break;case 22:return t.prev=22,t.t0=t.catch(16),e.ok=!1,e.status=o.CONNECTION_ERROR,e.statusText=t.t0.message,e.error=t.t0,t.abrupt("return",e);case 29:return e.status&&a.YoLog.d(a.DebugFlags.DEBUG_HTTP_REQUESTS,"HTTP response: "+e.status+" ("+this.url+")"),t.abrupt("return",e);case 31:case"end":return t.stop()}},t,this,[[16,22]])}),function(){var e=this,r=arguments;
2return new Promise(function(n,i){var a=t.apply(e,r);function o(t){c(a,n,i,o,s,"next",t)}function s(t){c(a,n,i,o,s,"throw",t)}o(void 0)})});return function(){return e.apply(this,arguments)}}(),t}()},48762(t,e,r){"use strict";e.__esModule=!0,e.createHeaders=function(t){var e=new Headers;return e.append("User-Agent",t),e},e.fetchWithTimeout=function(t,e,r){var n=null,o=new Promise(function(t){n=setTimeout(t,r,{timeout:!0,error:"timeout",statusText:"Connection timeout",status:a.CONNECTION_TIMEOUT})});return Promise.race([o,fetch(t,e)]).then(function(e){return e.timeout?i.YoLog.d(i.DebugFlags.DEBUG_HTTP_REQUESTS,"Request for "+t+" timed out"):!e.ok&&e.status&&i.YoLog.d(i.DebugFlags.DEBUG_HTTP_REQUESTS,"Request for "+t+" failed. Status: "+e.status+". Message: "+e.statusText),e}).catch(function(e){i.YoLog.d(i.DebugFlags.DEBUG_HTTP_REQUESTS,"Request for "+t+" failed. Exception: "+e);var r=a.CONNECTION_ERROR;return("ERR_INVALID_URL"===e.code||e.cause&&"ERR_INVALID_URL"===e.cause.code)&&(r=a.MALFORMED_URL),{error:e,statusText:e.message,status:r}}).finally(function(){clearTimeout(n)})},e.getAbsolute=function(t,e){var r=new URL(e);return new URL(r,t).toString()},e.getUrl=function(t){if((0,n.isNullOrEmpty)(t))return null;var e=null;try{e=new URL(t)}catch(t){return null}if(!e)return null;try{decodeURI(e.pathname)}catch(t){return null}return e};var n=r(10209),i=r(49573),a=r(89219)},75196(t,e){"use strict";e.__esModule=!0,e.Loggable=void 0,e.Loggable=function(){function t(){}return t.debug=function(t){},t.error=function(t){},t.info=function(t){},t.warn=function(t){},t}()},10209(t,e){"use strict";function r(t){return"string"==typeof t||t instanceof String}function n(t,e,r){var n=t;if(0===e||">"===e){n+="\n";for(var i=0;i<4*r;++i)n+=" "}return n}e.__esModule=!0,e.equalsIgnoreCase=function(t,e){return null===t?null===e:void 0===t?void 0===e:!(!r(t)||!r(e))&&t.toUpperCase()===e.toUpperCase()},e.formatHtml=function(t){if(!t)return"";try{for(var e=0,r="",i=null,a=0,o=0;o<t.length;++o){if("<"===(i=t[o])){var s=t[o+1];"/"===s&&e--,r=n(r,a,e),"/"!==s&&"!"!==s&&e++}r+=i,a=i}if(0===e)return r}catch(t){}return t},e.isNullOrEmpty=function(t){return!t||""===t},e.isString=r,e.toIndentedString=function(t){return t?" "+t.toString().replace("\n","\n "):"null"},e.toUnindentedString=function(t){return t?""+t.toString().replace("\n ","\n"):"null"}},49573(t,e,r){"use strict";e.__esModule=!0,e.YoLog=e.DebugFlags=void 0;var n=r(5271),i=r(63575),a=(r(75196),e.DebugFlags=Object.freeze({DEBUG_PLAYBACK:1,DEBUG_LIFECYCLE:2,DEBUG_POLLING:4,DEBUG_REPORTS:8,DEBUG_STATE_MACHINE:16,DEBUG_HTTP_REQUESTS:32,DEBUG_PARSING:64,DEBUG_VALIDATION:128,DEBUG_ALL:Number.MAX_SAFE_INTEGER})),o=e.YoLog=function(){function t(){}return t.setLogger=function(e){t.logger=e},t.setDebugFlags=function(e){t.debugflags=e},t.getDebugFlags=function(){return t.debugflags},t.d=function(e,r){t.debugflags&e&&t.logger.debug((0,i.getLogTag)()+r)},t.e=function(e){t.logger.error((0,i.getLogTag)()+e)},t.i=function(e,r){t.debugflags&e&&t.logger.info((0,i.getLogTag)()+r)},t.w=function(e){t.logger.warn((0,i.getLogTag)()+e)},t.trace=function(e){t.d(a.DEBUG_VALIDATION,"["+Date.now()+"][YoSDK:"+e+"]")},t}();o.debugflags=0,o.logger=n.Logger},31133(t,e,r){"use strict";e.__esModule=!0;var n=r(49573);e.DebugFlags=n.DebugFlags,e.YoLog=n.YoLog;var i=r(82773);e.AdBreak=i.AdBreak,e.BreakType=i.BreakType;var a=r(47555);e.AdBreakEventHandler=a.AdBreakEventHandler;var o=r(97527);e.AdVerification=o.AdVerification;var s=r(64275);e.Advert=s.Advert;var c=r(41665);e.AdvertEventHandler=c.AdvertEventHandler,e.ViewableEvent=c.ViewableEvent;var l=r(8164);e.AdvertWrapper=l.AdvertWrapper;var u=r(20280);e.AnalyticEventObserver=u.AnalyticEventObserver;var d=r(62994);e.CompanionCreative=d.CompanionCreative;var h=r(24232);e.Creative=h.Creative;var g=r(14058);e.CreativeEventHandler=g.CreativeEventHandler;var p=r(50103);e.Event=p.Event;var f=r(47363);e.IconClickFallbackImage=f.IconClickFallbackImage;var v=r(80782);e.IndustryIcon=v.IndustryIcon;var y=r(71936);e.InteractiveCreative=y.InteractiveCreative;var m=r(75196);e.Loggable=m.Loggable;var E=r(52205);e.LinearCreative=E.LinearCreative;var A=r(43910);e.NonLinearCreative=A.NonLinearCreative;var T=r(17086);e.PlaybackEventHandler=T.PlaybackEventHandler,e.PlayerEvent=T.PlayerEvent,e.Vie
2wSize=T.ViewSize;var k=r(52616);e.PlaybackPolicy=k.PlaybackPolicy;var b=r(76894);e.PlaybackPolicyHandler=b.PlaybackPolicyHandler;var S=r(89219);e.PlaybackMode=S.PlaybackMode,e.Session=S.Session,e.SessionProperties=S.SessionProperties,e.SessionState=S.SessionState,e.SessionErrorCode=S.SessionErrorCode,e.CONNECTION_ERROR=S.CONNECTION_ERROR,e.CONNECTION_TIMEOUT=S.CONNECTION_TIMEOUT,e.MALFORMED_URL=S.MALFORMED_URL,e.UNKNOWN_FORMAT=S.UNKNOWN_FORMAT,e.NO_DVRLIVE=S.NO_DVRLIVE,e.FALLBACK_URL=S.FALLBACK_URL,e.INVALID_WINDOW=S.INVALID_WINDOW,e.PARTIAL_VMAP=S.PARTIAL_VMAP;var I=r(63575);e.CAT_AD_BREAK_EVENTS=I.CAT_AD_BREAK_EVENTS,e.CAT_TIMELINE_EVENTS=I.CAT_TIMELINE_EVENTS;var D=r(85085);e.Resource=D.Resource,e.ResourceType=D.ResourceType;var C=r(9373);e.SessionDVRLive=C.SessionDVRLive;var P=r(7705);e.SessionLive=P.SessionLive;var L=r(41878);e.SessionVOD=L.SessionVOD;var N=r(8621);e.TimedMetadata=N.TimedMetadata;var _=r(5922);e.VASTProperty=_.VASTProperty;var R=r(23572);e.VerificationEventHandler=R.VerificationEventHandler},56925(t,e,r){"use strict";e.__esModule=!0,e.AnalyticBroker=void 0;var n=r(17086);function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}e.AnalyticBroker=function(t){function e(){return t.apply(this,arguments)||this}var r,n;n=t,(r=e).prototype=Object.create(n.prototype),r.prototype.constructor=r,i(r,n);var a=e.prototype;return a.addParsingError=function(t){throw new Error("Function must be overridden")},a.clearParsingErrors=function(){throw new Error("Function must be overridden")},a.fireTrackingReport=function(t){throw new Error("Function must be overridden")},a.fireTrackingReportForCreative=function(t,e){throw new Error("Function must be overridden")},a.fireTrackingReportForIcon=function(t,e){throw new Error("Function must be overridden")}
2,a.raiseTrackingCallbackForCreative=function(t,e){throw new Error("Function must be overridden")},a.getSessionProperties=function(){throw new Error("Function must be overridden")},a.normaliseAdBreakStart=function(t,e){throw new Error("Function must be overridden")},e}(n.PlaybackEventHandler)},16357(t,e,r){"use strict";e.__esModule=!0,e.DefaultPlaybackPolicyHandler=void 0;var n=r(76894),i=r(89219);function a(t,e){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},a(t,e)}e.DefaultPlaybackPolicyHandler=function(t){function e(e){var r;return(r=t.call(this)||this).playbackMode=e,r}var r,n;n=t,(r=e).prototype=Object.create(n.prototype),r.prototype.constructor=r,a(r,n);var o=e.prototype;return o.canStop=function(t,e){switch(this.playbackMode){case i.PlaybackMode.LIVE:case i.PlaybackMode.DVRLIVE:case i.PlaybackMode.VOD:}return!0},o.canPause=function(t,e){switch(this.playbackMode){case i.PlaybackMode.LIVE:return!1;case i.PlaybackMode.DVRLIVE:case i.PlaybackMode.VOD:default:return!0}},o.canSkip=function(t,e,r){switch(this.playbackMode){case i.PlaybackMode.LIVE:return-1;case i.PlaybackMode.DVRLIVE:case i.PlaybackMode.VOD:default:return 0}},o.willSeekTo=function(t,e,r){switch(this.playbackMode){case i.PlaybackMode.LIVE:return r;case i.PlaybackMode.DVRLIVE:case i.PlaybackMode.VOD:default:return t}},o.canChangeVolume=function(t,e,r){switch(this.playbackMode){case i.PlaybackMode.LIVE:case i.PlaybackMode.DVRLIVE:case i.PlaybackMode.VOD:}return!0},o.canResize=function(t,e,r){switch(this.playbackMode){case i.PlaybackMode.LIVE:case i.PlaybackMode.DVRLIVE:case i.PlaybackMode.VOD:}return!0},o.canResizeCreative=function(t,e,r){switch(this.playbackMode){case i.PlaybackMode.LIVE:case i.PlaybackMode.DVRLIVE:case i.PlaybackMode.VOD:}return!0},o.canClickThrough=function(t,e,r){switch(this.playbackMode){case i.PlaybackMode.LIVE:case i.PlaybackMode.DVRLIVE:case i.PlaybackMode.VOD:}return!0},o.setPlaybackMode=function(t){this.playbackMode=t},o.didSkip=function(t,e,r){},o.didSeek=function(t,e,r){},e}(n.PlaybackPolicyHandler)},5271(t,e,r){"use strict";e.__esModule=!0,e.Logger=void 0;var n=r(75196);function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}e.Logger=function(t){function e(){return t.apply(this,arguments)||this}var r,n;return n=t,(r=e).prototype=Object.create(n.prototype),r.prototype.constructor=r,i(r,n),e.debug=function(t){console.log(t)},e.error=function(t){console.error(t)},e.info=function(t){console.info(t)},e.warn=function(t){console.warn(t)},e}(n.Loggable)},59481(t,e){"use strict";e.__esModule=!0,e.SessionError=void 0,e.SessionError=function(){function t(t){this.utcTimestamp=t}var e=t.prototype;return e.toJsonString=function(){return JSON.stringify(this)},e.getUtcTimestamp=function(){return this.utcTimestamp},t}()},7999(t,e,r){"use strict";e.__esModule=!0,e.SessionSeekable=void 0;var n=r(42167),i=r(89219),a=r(63575),o=r(49573);function s(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return c(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function l(t,e){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},l(t,e)}var u=2*a.Constant.MAX_CADENCE;e.SessionSeekable=function(t){function e(e){var r;return(r=t.call(this,e)||this).didSeek=!1,r.duration=0,r}var r,i;i=t,(r=e).prototype=Object.create(i.prototype),r.prototype.constructor=r,l(r,i);var c=e.prototype;return c.getDuration=function(){return this.duration},c.initialiseFromAnalyticData=function(t,e){this.setPlaybackUrl(e+t.getHostNode()+t.getHostSuffix()),this.setDuration(t.getStreamDuration()),this.setIdentifier(t.getSessionIdentifier()),Array.prototype.push.apply(this.linearAdBreaks,t.getLinearAdBreaks()),Array.prototype.push.apply(this.nonLinearAdBreaks,t.getNonLinearAdBreaks()),Array.prototype.push.apply(this.displayAdBreaks,t.getDisplayAdBreaks())},c.onAdvertBreakStart=function(t){if(!this.getCurrentAdBreak()&&(this.setCurrentAdBreak(t),o.YoLog.trace("adbreakStart"),this.getReportsManager().raiseAdBreakCallback("start",this.getCurrentAdBreak(),this),t&&!this.reportsManager.shouldSuppress("breakStart"))){var e=t.getTrackingReport("breakStart",!0);this.getReportsManager().fireBeacon(e,new n.ReportingParams(this.getPlayhead()))}},c.onAdvertBreakEnd=function(){var t=this.getCurrentAdBreak();if(t&&!this.reportsManager.shouldSuppress("breakEnd")){var e=t.getTrackingReport("breakEnd",!0);this.getReportsManager().fireBeacon(e,new n.ReportingParams(this.getPlayhead()))}o.YoLog.trace("adbreakEnd"),this.getReportsManager().raiseAdBreakCallback("end",null,this),this.setCurrentAdBreak(null)},c.onAdvertEnd=function(){var t=this.getCurrentAdvert();t&&(t.isActive()&&this.signalTimelineTrackingEvents(t.getStart()+t.getDuration()),t.setInactive(),o.YoLog.trace("advertEnd"),this.getReportsManager().raiseAdvertCallback("end",null,this),this.setCurrentAdvert(null))},c.onAdvertStart=function(e){e&&!this.getCurrentAdvert()&&(this.setCurrentAdvert(e),t.prototype.onAdvertStart.call(this,e),this.getReportsManager().reportsSuppressed()&&e.removeTrackingSchedule(),o.YoLog.trace("advertStart"),this.getReportsManager().raiseAdvertCallback("start",e,this),e&&e.isActive()&&(this.fireImpressionReport(),this.signalTimelineTrackingEvents(a.Constant.ADVERT_START_TIMESLOT)))},c.handlePostSeek=function(t){var e=this.getLastPlayed();o.YoLog.d(o.DebugFlags.DEBUG_STATE_MACHINE,"handlePostSeek: "+e+" -> "+t);var r=t-e;r>=0&&r<=u?o.YoLog.d(o.DebugFlags.DEBUG_STATE_MACHINE,"handlePostSeek: ignoring interval "+r+"ms"):this.getCurrentAdBreak()?this.handlePostSeekForAdBreak(e,t):this.handlePostSeekForContent(t)},c.handlePostSeekForContent=function(t){var e=this.adBreakForPlayhead(t);if(e){o.YoLog.d(o.DebugFlags.DEBUG_STATE_MACHINE,"handlePostSeek: CONTENT -> BREAK");var r=e.getAdvertFromPlayhead(t);r&&t-r.getStart()>u&&r.setInactive()}else o.YoLog.d(o.DebugFlags.DEBUG_STATE_MACHINE,"handlePostSeek: within content")},c.handlePostSeekForAdBreak=function(t,e){var r=this.adBreakForPlayhead(e);if(r)if(r!==this.getCurrentAdBreak()){o.YoLog.d(o.DebugFlags.DEBUG_STATE_MACHINE,"handlePostSeek: BREAK -> BREAK");var n=this.getCurrentAdBreak().getAdvertFromPlayhead(t);n&&n.setInactive();var i=r.getAdvertFromPlayhead(e);i&&e-i.getStart()>u&&i.setInactive()}else this.handlePostSeekForAdvertToAdvert(e);else{o.YoLog.d(o.DebugFlags.DEBUG_STATE_MACHINE,"handlePostSeek: BREAK -> CONTENT");var a=this.getCurrentAdBreak().getAdvertFromPlayhead(t);a&&a.setInactive()}},c.handlePostSeekForAdvertToAdvert=function(t){var e=this.getCurrentAdBreak().getAdvertFromPlayhead(t);e&&(this.getCurrentAdvert().setInactive(),e!==this.getCurrentAdvert()?(o.YoLog.d(o.DebugFlags.DEBUG_STATE_MACHINE,"handlePostSeek: ADVERT -> ADVERT"),t-e.getStart()>u&&e.setInactive()):o.YoLog.d(o.DebugFlags.DEBUG_STATE_MACHINE,"handlePostSeek: with advert"))},c.handleHeartbeat=function(t){o.YoLog.d(o.DebugFlags.DEBUG_STATE_MACHINE,"handleHeartbeat (playhead: "+t+")"),this.didSeek&&(this.handlePostSeek(t),this.didSeek=!1);var e=this.getLastPlayed();this.setPlayhead(t),this.getCurrentAdBreak()?this.handleHeartbeatForAdbreak(t):this.handleHeartbeatForContent(e,t)},c.handleHeartbeatForContent=function(t,e){var r=this.missedOpportunityBreak(t,e);if(r){var i=new n.ReportingParams(this.getPlayhead());this.getReportsManager().fireBeacon(r.getTrackingReport("breakStart",!0),i),this.getReportsManager().fireBeacon(r.getTrackingReport("breakEnd",!0),i),-1!==this.linearAdBreaks.indexOf(r)&&this.linearAdBreaks.splice(this.linearAdBreaks.indexOf(r),1)}var a=this.adBreakForPlayhead(e);if(a){o.YoLog.d(o.DebugFlags.DEBUG_STATE_MACHINE,"CONTENT -> BREAK (playhead: "+e+")"),this.onAdvertBreakStart(a);var s=a.getAdvertFromPlayhead(e);this.onAdvertStart(s)}},c.handleHeartbeatForAdbreak=function(t){var e=this.adBreakForPlayhead(t);if(e)if(e!==this.getCurrentAdBreak()){o.YoLog.d(o.DebugFlags.DEBUG_STATE_MACHINE,"BREAK -> BREAK"),this.onAdvertEnd(),this.onAdvertBreakEnd(),this.onAdvertBreakStart(e);var r=e.getAdvertFromPlayhead(t);this.onAdvertStart(r)}else this.handleHeartbeatForAdvertToAdvert(t);else o.YoLog.d(o.DebugFlags.DEBUG_STATE_MACHINE,"BREAK -> CONTENT"),this.onAdvertEnd(),this.onAdvertBreakEnd()},c.handleHeartbeatForAdvertToAdvert=function(t){var e=this.getCurrentAdBreak().getAdvertFromPlayhead(t);if(e)if(e!==this.getCurrentAdvert())o.YoLog.d(o.DebugFlags.DEBUG_STATE_MACHINE,"ADVERT -> ADVERT"),this.getCurrentAdvert()&&this.onAdvertEnd(),this.onAdvertStart(e);else{var r=Math.max(t-this.getCurrentAdvert().getStart(),0);this.signalTimelineTrackingEvents(r)}},c.adBreakForPlayhead=function(t){for(var e,r=s(this.linearAdBreaks);!(e=r()).done;){var n=e.value;if(n.getStart()<=t&&t<n.getStart()+n.getDuration())return n}return null},c.missedOpportunityBreak=function(t,e){for(var r,n=s(this.linearAdBreaks);!(r=n()).done;){var i=r.value;if(0===i.getDuration()){var a=i.getStart();if(t<=a&&e>=a)return i}}return null},c.onPlaybackStart=function(e){t.prototype.onPlaybackStart.call(this,e),this.handleHeartbeat(e)},c.setAdBreaksInactivePriorTo=function(t){for(var e,r=s(this.linearAdBreaks);!(e=r()).done&&e.value.setAdvertsInactivePriorTo(t););},e}(i.Session)},37964(t,e,r){"use strict";
vendor: 4,614 bytes, line 2
2e.__esModule=!0,e.UrlPoller=void 0;var n=r(49573),i=r(63575),a=r(81763),o=r(89219);function s(){s=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function d(t,e,r,n){var a=e&&e.prototype instanceof m?e:m,o=Object.create(a.prototype),s=new _(n||[]);return i(o,"_invoke",{value:C(t,r,s)}),o}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=d;var g="suspendedStart",p="suspendedYield",f="executing",v="completed",y={};function m(){}function E(){}function A(){}var T={};u(T,o,function(){return this});var k=Object.getPrototypeOf,b=k&&k(k(R([])));b&&b!==r&&n.call(b,o)&&(T=b);var S=A.prototype=m.prototype=Object.create(T);function I(t){["next","throw","return"].forEach(function(e){u(t,e,function(t){return this._invoke(e,t)})})}function D(t,e){function r(i,a,o,s){var c=h(t[i],t,a);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==typeof u&&n.call(u,"__await")?e.resolve(u.__await).then(function(t){r("next",t,o,s)},function(t){r("throw",t,o,s)}):e.resolve(u).then(function(t){l.value=t,o(l)},function(t){return r("throw",t,o,s)})}s(c.arg)}var a;i(this,"_invoke",{value:function(t,n){function i(){return new e(function(e,i){r(t,n,e,i)})}return a=a?a.then(i,i):i()}})}function C(e,r,n){var i=g;return function(a,o){if(i===f)throw Error("Generator is already running");if(i===v){if("throw"===a)throw o;return{value:t,done:!0}}for(n.method=a,n.arg=o;;){var s=n.delegate;if(s){var c=P(s,n);if(c){if(c===y)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===g)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=f;var l=h(e,r,n);if("normal"===l.type){if(i=n.done?v:p,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i=v,n.method="throw",n.arg=l.arg)}}}function P(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,P(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var a=h(i,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,y;var o=a.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function L(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function N(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function _(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function R(e){if(e||""===e){var r=e[o];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(typeof e+" is not iterable")}return E.prototype=A,i(S,"constructor",{value:A,configurable:!0}),i(A,"constructor",{value:E,configurable:!0}),E.displayName=u(A,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===E||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,A):(t.__proto__=A,u(t,l,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},I(D.prototype),u(D.prototype,c,function(){return this}),e.AsyncIterator=D,e.async=function(t,r,n,i,a){void 0===a&&(a=Promise);var o=new D(d(t,r,n,i),a);return e.isGeneratorFunction(r)?o:o.next().then(function(t){return t.done?t.value:o.next()})},I(S),u(S,l,"Generator"),u(S,o,function(){return this}),u(S,"toString",function(){return"[object Generator]"}),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=R,_.prototype={constructor:_,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEac
2h(N),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return s.type="throw",s.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=t,o.arg=e,a?(this.method="next",this.next=a.finallyLoc,y):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),N(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;N(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function c(t,e,r,n,i,a,o){try{var s=t[a](o),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function l(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var a=t.apply(e,r);function o(t){c(a,n,i,o,s,"next",t)}function s(t){c(a,n,i,o,s,"throw",t)}o(void 0)})}}e.UrlPoller=function(){function t(t,e,r,n){this.url=t,this.timeout=e,this.responseHandler=r,this.frequency=n||i.Constant.DEFAULT_POLLING_DELAY,this.requestInProgress=!1,this.intervalID=null,this.lastPollTime=0,this.lastPollTimeMetric=0}var e=t.prototype;return e.handleRequest=function(){var t=l(s().mark(function t(){var e,r;return s().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,a.HttpConnection.get(this.url,{},this.timeout,null,new Map([["ysdk",o.Session.getVersion()]]));case 2:return(e=t.sent).error&&n.YoLog.w("Poll failed: "+e.error),this.checkResponse(e)&&(n.YoLog.trace("sdk poll"),(r=this.getRetryFromResponse(e))!==this.frequency&&(n.YoLog.d(n.DebugFlags.DEBUG_POLLING,"Poll interval changed to "+r+" millis"),this.frequency=r,this.isRunning()&&this._start(!1))),t.abrupt("return",e);case 6:case"end":return t.stop()}},t,this)}));return function(){return t.apply(this,arguments)}}(),e.checkResponse=function(t){return!!t.ok||(400===t.status||410===t.status?(this.stop(),410===t.status&&n.YoLog.d(n.DebugFlags.DEBUG_POLLING,"Stream is resolved. Stopping "+(this.responseHandler?"analytic":"pause")+" poller")):n.YoLog.w("Unexpected poll response "+t.status+", intervalID: "+this.frequency+" ms"),!1)},e.getRetryFromResponse=function(t){var e=t.headers.get("Retry-After");return e=1e3*Number.parseFloat(e),!Number.isNaN(e)&&e>0?e:this.frequency},e.getFrequency=function(){return this.frequency},e.isRunning=function(){return null!==this.intervalID},e.request=function(){n.YoLog.d(n.DebugFlags.DEBUG_POLLING,"Request poll"),this._poll(!0)},e._poll=function(){var t=l(s().mark(function t(e){var r,n;return s().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(this.shouldPoll(e)){t.next=2;break}return t.abrupt("return");case 2:return this.requestInProgress=!0,r=Date.now(),0!==this.lastPollTime&&e||(this.lastPollTime=r),this.lastPollTimeMetric=r,t.next=8,this.handleRequest();case 8:n=t.sent,this.responseHandler&&this.responseHandler(n,this.frequency),this.requestInProgress=!1;case 11:case"end":return t.stop()}},t,this)}));return function(e){return t.apply(this,arguments)}}(),e.shouldPoll=function(t){if(this.requestInProgress)return n.YoLog.d(n.DebugFlags.DEBUG_POLLING,"Last poll still in flight. Ignoring."),!1;if(t)return!0;var e=Date.now()-this.lastPollTime;return!(e<this.frequency/2&&(n.YoLog.d(n.DebugFlags.DEBUG_POLLING,"Last poll too recent ("+e/1e3+"s). Ignoring."),1))},e.start=function(){this._start(!0)},e._start=function(e){var r=this;this.stop();var n=t.computeTimeToNextInterval(Date.now(),this.lastPollTime,this.frequency);this.intervalID=setTimeout(function(){r.intervalID=setInterval(function(){r._poll()},r.frequency),r._poll()},e?0:n)},t.computeTimeToNextInterval=function(t,e,r){return e+r*(Math.floor(Math.abs(t-e)/r)+1)-t},e.stop=function(){clearInterval(this.intervalID),this.intervalID=null},e.shutdown=function(){this.stop(),this.responseHandler=function(){},n.YoLog.d(n.DebugFlags.DEBUG_LIFECYCLE,"Poller shutdown")},t}()},84590(t){"use strict";
2t.exports=JSON.parse('{"name":"@bedrock-player/sdk-yospace","version":"3.9.3","description":"Yospace AdManagement SDK","homepage":"https://yospace.com","main":"src/index.js","types":"types/index.d.ts","private":false,"dependencies":{"sax":"1.3.0"},"devDependencies":{"@babel/core":"^7.22.9","@babel/plugin-transform-modules-commonjs":"^7.22.5","@babel/preset-env":"^7.22.9","babel-jest":"^29.6.2","babel-loader":"^9.1.3","babel-plugin-transform-es2015-modules-simple-commonjs":"^0.3.0","documentation":"^13.2.5","jest":"^29.6.2","jest-jasmine2":"^29.6.2","jest-junit":"^16.0.0","jest-sonar-reporter":"^2.0.0","jsdoc":"^4.0.2","jshint":"^2.13.6","msw":"^2.0.4","node-fetch":"^3.3.2","nodemon":"^3.0.1","npm-check-updates":"^16.10.17","process":"0.11.10","sinon":"^15.2.0","stream-browserify":"3.0.0","typescript":"5.6.2","webpack":"^5.88.2","webpack-cli":"^5.1.4","ws":"^8.13.0"},"author":{"name":"Yospace Technologies Ltd","email":"[email protected]"},"license":"SEE LICENSE IN LICENCE","files":["src/","docs/","types/"],"repository":"[email protected]:m6web/bedrock-player.git","gitHead":"1e467cd6039bd16d3892c415a445b0525c2faeff"}')}}]); 3//# sourceMappingURL=sourcemaps/1133-790e102c5723394c.bundle.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.