(()=>{var t=[,(t,e,r)=>{"use strict";r.r(e),r.d(e,{AdsManager:()=>m});var n=r(2),o=r(3),i=r(6),a=r(74),s=r(72),c=r(75);function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}function l(t){return function(t){if(Array.isArray(t))return f(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return f(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return f(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(c&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),I(r),g}},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 o=n.arg;I(r)}return o}}throw new 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),g}},e}function h(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,o)}function p(t,e){for(var r=0;r0&&void 0!==o[0]&&o[0]?setTimeout((function(){var t,e,r;n.adUnit.emit(n.rulesMOL.AdStopped,{adUnit:n.adUnit,type:n.rulesMOL.AdStopped,data:{}}),n.adUnit.emit(n.rulesMOL.AdUserClose,{adUnit:n.adUnit,type:n.rulesMOL.AdUserClose,data:{}}),"VPAID"===(null==n||null===(t=n.adUnit)||void 0===t?void 0:t.type)?null===(e=n.adUnit.creativeAd)||void 0===e||null===(r=e.stopAd)||void 0===r||r.call(e):(n.adUnit.pause(),n.adUnit.cancel())}),200):((r=null===(e=this.adUnit)||void 0===e||null===(e=e.videoAdContainer)||void 0===e?void 0:e.videoElement)&&(r.volume=0,r.muted=!0),this.adUnit.setVolume(0));case 2:case"end":return t.stop()}}),t,this)})),v=function(){var t=this,e=arguments;return new Promise((function(r,n){var o=f.apply(t,e);function i(t){h(o,r,n,i,a,"next",t)}function a(t){h(o,r,n,i,a,"throw",t)}i(void 0)}))},function(){return v.apply(this,arguments)})},{key:"launchAd",value:function(t){var e=this;this.tag=t,this.videoEl.muted=!0,this.videoEl.volume=0,this.videoEl.autoplay=!0,this.videoEl.playbackRate=1;var r=(new DOMParser).parseFromString(t.xml,"application/xml"),a={measurable:l(r.querySelectorAll('Tracking[event="measurable_impression"]')).map((function(t){return t.textContent})),viewable:l(r.querySelectorAll('Tracking[event="viewable_impression"]')).map((function(t){return t.textContent})),creativeView:l(r.querySelectorAll('Tracking[event="creativeView"]')).map((function(t){return t.textContent}))};(0,n.runWaterfall)(t.parsedUrl,this.wrapperEl,{responsive:!1,autoplay:!1,timeout:this.config.dataConfig.adTimeOut,onAdReady:function(r){e.handleAdReady(r,t)},onAdStart:function(){e.cleanupViewability=(0,o.sendViewability)(e.adContainer,e.wrapperEl,a,(function(){return e.events.indexOf(c.adViewableImpression)>-1&&e.trackEvent(c.adViewableImpression,t)}))},onError:function(r){e.errorReported||(e.errorReported=!0,e.onAdError(t),["No next ad to request","No Ad"].includes(r.message)||(r.name="AdError",(0,i.handleElasticErrorCapture)(r,{tag:t,config:e.config})),e.logger.error(r),e.cleanupViewability&&e.cleanupViewability())},onRunFinish:function(){e.handleAdCompleted(),e.cleanupViewability&&e.cleanupViewability()},videoElement:this.videoEl,macroReplacer:this.macroReplacer},t.xml)}},{key:"handleAdReady",value:function(t,e){var r=this;this.prepare(e.isVpaid),this.adUnit=t;for(var n=this.rulesMOL,o=function(){var o=r.events[i],a=n[o];a&&t.on(a,(function(){r.trackEvent(o,e)})),"AdVpaidAttempt"===o&&e.isVpaid&&r.trackEvent("AdVpaidAttempt",e)},i=0;i-1&&e.isVpaid&&r.trackEvent("AdVpaidImpression",e)})),t.on(this.rulesMOL.AdClickThru,(function(){r.onAdClicked()})),t.on(this.rulesMOL.AdVideoComplete,(function(){var t,e;r.videoEl&&(null===(t=(e=r.videoEl).pause)||void 0===t||t.call(e),r.videoEl.removeAttribute("src"),r.videoEl.removeAttribute("poster"))})),t.on(this.rulesMOL.AdVideoThirdQuartile,(function(){r.requestAds()})),t.start()}}],r&&p(e.prototype,r),u&&p(e,u),Object.defineProperty(e,"prototype",{writable:!1}),t}();m.sdkName="vidoplayer"},function(t,e,r){var n,o,i,a;function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}a=function(t){"use strict";var e,n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==r.g?r.g:"undefined"!=typeof self?self:{},o=(function(t){!function(e){var r,n=Object.prototype,o=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag",l=e.regeneratorRuntime;if(l)t.exports=l;else{(l=e.regeneratorRuntime=t.exports).wrap=w;var f="suspendedStart",d="suspendedYield",h="executing",p="completed",v={},m={};m[a]=function(){return this};var y=Object.getPrototypeOf,g=y&&y(y(I([])));g&&g!==n&&o.call(g,a)&&(m=g);var b=_.prototype=S.prototype=Object.create(m);T.prototype=b.constructor=_,_.constructor=T,_[u]=T.displayName="GeneratorFunction",l.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===T||"GeneratorFunction"===(e.displayName||e.name))},l.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,u in t||(t[u]="GeneratorFunction")),t.prototype=Object.create(b),t},l.awrap=function(t){return{__await:t}},A(x.prototype),x.prototype[c]=function(){return this},l.AsyncIterator=x,l.async=function(t,e,r,n){var o=new x(w(t,e,r,n));return l.isGeneratorFunction(e)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},A(b),b[u]="Generator",b[a]=function(){return this},b.toString=function(){return"[object Generator]"},l.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},l.values=I,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach(C),!t)for(var e in this)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=r)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(n,o){return s.type="throw",s.arg=t,e.next=n,o&&(e.method="next",e.arg=r),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(c&&u){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),C(r),v}},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 o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:I(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=r),v}}}function w(t,e,r,n){var o=e&&e.prototype instanceof S?e:S,i=Object.create(o.prototype),a=new L(n||[]);return i._invoke=function(t,e,r){var n=f;return function(o,i){if(n===h)throw new Error("Generator is already running");if(n===p){if("throw"===o)throw i;return P()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=k(a,r);if(s){if(s===v)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===f)throw n=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=h;var c=E(t,e,r);if("normal"===c.type){if(n=r.done?p:d,c.arg===v)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n=p,r.method="throw",r.arg=c.arg)}}}(t,r,a),i}function E(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}function S(){}function T(){}function _(){}function A(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function x(t){var e;this._invoke=function(r,n){function i(){return new Promise((function(e,i){!function e(r,n,i,a){var c=E(t[r],t,n);if("throw"!==c.type){var u=c.arg,l=u.value;return l&&"object"==s(l)&&o.call(l,"__await")?Promise.resolve(l.__await).then((function(t){e("next",t,i,a)}),(function(t){e("throw",t,i,a)})):Promise.resolve(l).then((function(t){u.value=t,i(u)}),a)}a(c.arg)}(r,n,e,i)}))}return e=e?e.then(i,i):i()}}function k(t,e){var n=t.iterator[e.method];if(n===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=r,k(t,e),"throw"===e.method))return v;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var o=E(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,v;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=r),e.delegate=null,v):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,v)}function O(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 C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function I(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n=0,c=a&&i.regeneratorRuntime;i.regeneratorRuntime=void 0;var u=o;if(a)i.regeneratorRuntime=c;else try{delete i.regeneratorRuntime}catch(t){i.regeneratorRuntime=void 0}var l,f,d,h=u,p={clickThrough:"clickThrough",closeLinear:"closeLinear",complete:"complete",error:"error",exitFullscreen:"exitFullscreen",firstQuartile:"firstQuartile",fullscreen:"fullscreen",iconClick:"iconClick",iconView:"iconView",impression:"impression",midpoint:"midpoint",mute:"mute",otherAdInteraction:"otherAdInteraction",pause:"pause",playerCollapse:"playerCollapse",playerExpand:"playerExpand",progress:"progress",resume:"resume",rewind:"rewind",skip:"skip",start:"start",thirdQuartile:"thirdQuartile",timeSpentViewing:"timeSpentViewing",unmute:"unmute"},v="acceptInvitation",m="adCollapse",y="creativeView",g={acceptInvitation:v,adCollapse:m,close:"close",creativeView:y},b=[new RegExp("^]*>This page contains the following errors:]*>(.+?)\n?"),new RegExp("^(.+)\n")],w=function(t){return function(t){var e;if(null===t)throw new Error("Parse error");var r=function(t){return"parsererror"===t.documentElement.tagName&&"http://www.mozilla.org/newlayout/xml/parsererror.xml"===t.documentElement.namespaceURI?t.documentElement:("xml"===t.documentElement.tagName||"html"===t.documentElement.tagName)&&t.documentElement.childNodes&&t.documentElement.childNodes.length>0&&"parsererror"===t.documentElement.childNodes[0].nodeName?t.documentElement.childNodes[0]:"html"===t.documentElement.tagName&&t.documentElement.childNodes&&t.documentElement.childNodes.length>0&&"body"===t.documentElement.childNodes[0].nodeName&&t.documentElement.childNodes[0].childNodes&&t.documentElement.childNodes[0].childNodes.length&&"parsererror"===t.documentElement.childNodes[0].childNodes[0].nodeName?t.documentElement.childNodes[0].childNodes[0]:void 0}(t);if(void 0!==r)throw e=function(t){var e,r,n,o,i=(e=t,r=new XMLSerializer,Array.prototype.map.call(e.childNodes,(function(t){return r.serializeToString(t)})).join(""));for(n=0;n0){n.attributes={};var o=!0,i=!1,a=void 0;try{for(var s,c=Array.from(e.attributes)[Symbol.iterator]();!(o=(s=c.next()).done);o=!0){var u=s.value;n.attributes[u.nodeName]=u.nodeValue}}catch(t){i=!0,a=t}finally{try{!o&&c.return&&c.return()}finally{if(i)throw a}}}}else r===S&&(n.text=e.nodeValue.replace("","").trim());if(e.hasChildNodes()){var l=Array.from(e.childNodes).filter((function(t){return[1,3,4].includes(t.nodeType)})),f=[];n.elements=f;var d=!0,h=!1,p=void 0;try{for(var v,m=l[Symbol.iterator]();!(d=(v=m.next()).done);d=!0){var y=t(v.value);(y.type!==S||y.text.length>0)&&f.push(y)}}catch(t){h=!0,p=t}finally{try{!d&&m.return&&m.return()}finally{if(h)throw p}}}return n},_=function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).elements;return void 0===t?[]:t},A=function(t,e){return _(t).find((function(t){var r=t.name;return(void 0===r?"":r).toUpperCase()===e.toUpperCase()}))},x=function(t,e){return"string"==typeof e?function(t,e){return _(t).filter((function(t){var r=t.name;return(void 0===r?"":r).toUpperCase()===e.toUpperCase()}))}(t,e):_(t)},k=function(t){return _(t)[0]||null},O=function(t){var e=t&&k(t);return e&&e.text||null},C=function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).attributes;return void 0===t?{}:t},L=function(t,e){return C(t)[e]},I=new DOMParser,P=function(t){return function(t,e){var r=t.parseFromString(e,"application/xml");return w(r),T(r)}(I,t)},R=function(t){if("string"==typeof t){var e=t.match(/(\d\d):(\d\d):(\d\d)(\.(\d\d\d))?/);if(e){var r=(i=e[1],60*parseInt(i,10)*60*1e3+(o=e[2],60*parseInt(o,10)*1e3)+(n=e[3],1e3*parseInt(n,10))+parseInt(e[5]||0,10));if(!isNaN(r))return r}}var n,o,i;return null},N=function(t){return function(t){return/^\d+(\.\d+)?%$/g.test(t)}(t)?t:R(t)},j=function(t){var e=k(t),r=e&&A(e,"creatives");return r&&x(r).find((function(t){return A(t,"linear")}))||null},M=function(t,e){var r=t&&j(t);if(r){var n=A(r,"Linear"),o=n&&A(n,"TrackingEvents"),i=o&&x(o,"Tracking");if(i&&i.length>0){var a=i.map((function(t){var e=C(t),r=e.event,n=e.offset,o=O(t);return{event:r,offset:n&&N(n),uri:o}}));if(!e)return a;var s=a.filter((function(t){return t.event===e}));if(s.length>0)return s}}return null},V=function(t,e){var r=t&&j(t);if(r){var n=A(r,"NonLinearAds"),o=n&&A(n,"TrackingEvents"),i=o&&x(o,"Tracking");if(i&&i.length>0){var a=i.map((function(t){return{event:C(t).event,uri:O(t)}}));if(!e)return a;var s=a.filter((function(t){return t.event===e}));if(s.length>0)return s}}return null},F=function(t){return function(){var e=t.apply(this,arguments);return new Promise((function(t,r){return function n(o,i){try{var a=e[o](i),s=a.value}catch(t){return void r(t)}if(!a.done)return Promise.resolve(s).then((function(t){n("next",t)}),(function(t){n("throw",t)}));t(s)}("next")}))}},D=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},U=function(){function t(t,e){for(var r=0;r0?o.map((function(t){return H({},function(t){var e=C(t),r=e.duration,n=e.height,o=e.offset,i=e.program,a=e.pxratio,s=e.width,c=e.xPosition,u=void 0===c?"right":c,l=e.yPosition,f=void 0===l?"top":l;return{duration:r&&R(r),height:n&&X(n),offset:o&&R(o),program:i,pxratio:a&&parseInt(a,10),width:s&&X(s),xPosition:u&&Z(u),yPosition:f&&Z(f)}}(t),function(t){var e=A(t,"StaticResource"),r=A(t,"HTMLResource"),n=A(t,"IFrameResource");return e?{staticResource:O(e)}:r?{htmlResource:O(r)}:n?{iFrameResource:O(n)}:{staticResource:O(t)}}(t),function(t){var e=x(t,"IconViewTracking").map((function(t){return O(t)}));return 0===e.length?{}:{iconViewTracking:e}}(t),function(t){var e=A(t,"IconClicks"),r=e&&A(e,"IconClickThrough"),n=e&&x(e,"IconClickTracking").map((function(t){return O(t)}));return{iconClickThrough:r&&O(r),iconClickTracking:n&&n.length>0?n:void 0}}(t))})):null},K=function(t){return"string"==typeof t?"true"===t:Boolean(t)},Q=function(t,e){var r=parseInt(L(t,"sequence"),10),n=parseInt(L(e,"sequence"),10);return rn?1:0},$=function(t){var e=t&&A(t,"VAST"),r=e&&x(e,"Ad");return r&&r.length>0?r:[]},tt=function(t){var e=t&&A(t,"VAST");if(e){var r=A(e,"Error");if(r)return O(r)}return null},et=function(t){var e=parseInt(L(t,"sequence"),10);return"number"!=typeof e||isNaN(e)?null:e},rt=function(t){return Boolean(et(t))},nt=function(t){var e=$(t);return Array.isArray(e)&&e.filter(rt).length>1},ot=function(t){var e=$(t);return Array.isArray(e)&&e.length>0?nt(t)?e.filter(rt).sort(Q)[0]:e[0]:null},it=function(){return Boolean(A((arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})||{},"Wrapper"))},at=function(t){return Boolean(A(t||{},"Inline"))},st=function(t){var e=A(t,"Wrapper"),r=e&&A(e,"VastAdTagUri");return r&&O(r)||null},ct=function(t){var e=C(A(t,"Wrapper")),r=e.allowMultipleAds,n=e.fallbackOnNoAd,o=e.followAdditionalWrappers,i={};return r&&(i.allowMultipleAds=K(r)),n&&(i.fallbackOnNoAd=K(n)),o&&(i.followAdditionalWrappers=K(o)),i},ut=function(t){var e=t&&k(t);if(e){var r=A(e,"Error");if(r)return O(r)}return null},lt=function(t){var e=t&&k(t);if(e){var r=x(e,"Impression");if(Array.isArray(r)&&r.length>0)return r.map((function(t){return{uri:O(t)}}))}return null},ft=function(t){var e=t&&j(t);if(e){var r=A(e,"UniversalAdId"),n=r&&O(r)||null,o=A(e,"Linear"),i=A(o,"MediaFiles"),a=i&&x(i,"MediaFile");if(a&&a.length>0)return a.map((function(t){var e=O(t),r=C(t),o=r.apiFramework,i=r.bitrate,a=r.codec,s=r.delivery,c=r.height,u=r.id,l=r.maintainAspectRatio,f=r.maxBitrate,d=r.minBitrate,h=r.scalable,p=r.type,v=r.width;return{apiFramework:o,bitrate:i,codec:a,delivery:s,height:c,id:u,maintainAspectRatio:l,maxBitrate:f,minBitrate:d,scalable:h,src:e,type:p,universalAdId:n,width:v}}))}return null},dt=function(t){var e=t&&j(t);if(e){var r=A(e,"Linear"),n=A(r,"MediaFiles"),o=n&&x(n,"InteractiveCreativeFile");if(o&&o.length>0)return o.map((function(t){var e=C(t),r=e.apiFramework,n=e.type;return{apiFramework:r,src:O(t),type:n}}))}return null},ht=function(t){var e=dt(t);if(e)return e;var r=ft(t);return r&&(e=r.filter((function(t){var e=t.apiFramework;return"vpaid"===(void 0===e?"":e).toLowerCase()})).map((function(t){return{apiFramework:t.apiFramework,src:t.src,type:t.type}}))).length>0?e:null},pt=function(t){var e=t&&j(t),r=e&&A(e,"Linear");return r&&A(r,"VideoClicks")||null},vt=function(t){var e=pt(t),r=e&&A(e,"ClickThrough");return r?O(r):null},mt=function(t){var e=pt(t),r=e&&x(e,"ClickTracking");return r&&r.length>0?r.map((function(t){return O(t)})):null},yt=function(t){var e=pt(t),r=e&&x(e,"CustomClick");return r&&r.length>0?r.map((function(t){return O(t)})):null},gt=function(t){var e=t&&j(t),r=e&&A(e,"Linear"),n=r&&L(r,"skipoffset");return n?N(n):null},bt=function(t){var e=function(t){var e=/([\s\S]*)<\/AdParameters>/gm.exec(t);return e&&e[1].replace(/[\n\s]*[\n\s]*$/,"").replace(/\]\]\]\]>/,"]]>").trim()}(e),xmlEncoded:e&&function(t){var e=//gim.exec(t);return Boolean(e)&&"true"===e[1]}(e)}},wt=Object.freeze({getAds:$,getVastErrorURI:tt,getPodAdSequence:et,isPodAd:rt,hasAdPod:nt,isAdPod:function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map((function(t){return t.parsedXML})).some(nt)},getFirstAd:ot,isWrapper:it,isInline:at,getVASTAdTagURI:st,getWrapperOptions:ct,getAdErrorURI:ut,getImpressionUri:function(t){var e=t&&k(t);if(e){var r=A(e,"Impression");if(r)return O(r)}return null},getAllImpressionUris:lt,getMediaFiles:ft,getInteractiveCreativeFiles:dt,getInteractiveFiles:ht,getClickThrough:vt,getClickTracking:mt,getCustomClick:yt,getSkipOffset:gt,getCreativeData:bt,getIcons:J,getLinearTrackingEvents:M,getNonLinearTrackingEvents:V}),Et=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=function(t){var e,r,n=t,o=(e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={},Object.keys(e).forEach((function(t){r[t.toUpperCase()]=e[t]})),r);return Boolean(o.CACHEBUSTING)||(o.CACHEBUSTING=Math.round(1e10*Math.random())),Boolean(o.TIMESTAMP)||(o.TIMESTAMP=(new Date).toISOString()),Object.keys(o).forEach((function(t){if(n&&"string"==typeof n){var e=encodeURIComponent(o[t]);n=n.replace(new RegExp("\\["+t+"\\]","gm"),e)}})),n}(t,e),o=null;if(!n)return o;var i=new URL(n).href;if(i.includes(".js")||i.includes("adsafeprotected.com")&&!i.includes(".gif")&&!i.includes(".png"))try{(o=top.document.createElement("script")).src=n,r&&r.element?r.element.parentElement.parentElement.appendChild(o):top.document.body.appendChild(o)}catch(t){}else try{(o=new Image).src=n}catch(t){}return o},St=function(t,e,r){var n=e.errorCode,o=e.tracker,i=void 0===o?Et:o;t.forEach((function(t){var e=t.ad,o=t.parsedXML,a=ut(e)||tt(o);Boolean(a)&&i(a,{errorCode:n},r)}))},Tt=function(t){return function(e,r,n){var o=r.data,i=r.tracker,a=void 0===i?Et:i;e.forEach((function(e){var r=e.ad,i=t(r);if(Boolean(i))switch(!0){case"string"==typeof i:a(i,o,n);break;case Array.isArray(i):i.map((function(t){var e=t.uri;return a(e,o,n)}))}}))}},_t=function(t){return function(e){return M(e,t)}},At=(G(l={},"clickThrough",Tt((function(t){var e=[],r=mt(t),n=yt(t);return Array.isArray(r)&&r.length>0&&e.push.apply(e,Y(r.map((function(t){return{uri:t}})))),Array.isArray(n)&&n.length>0&&e.push.apply(e,Y(n.map((function(t){return{uri:t}})))),e}))),G(l,"closeLinear",Tt(_t("closeLinear"))),G(l,"complete",Tt(_t("complete"))),G(l,"error",St),G(l,"exitFullscreen",Tt(_t("exitFullscreen"))),G(l,"firstQuartile",Tt(_t("firstQuartile"))),G(l,"fullscreen",Tt(_t("fullscreen"))),G(l,"iconClick",(function(t,e,r){var n=e.data,o=e.tracker,i=void 0===o?Et:o,a=n.iconClickTracking;if(Array.isArray(a)){var s=!0,c=!1,u=void 0;try{for(var l,f=a[Symbol.iterator]();!(s=(l=f.next()).done);s=!0)i(l.value,H({},n),r)}catch(t){c=!0,u=t}finally{try{!s&&f.return&&f.return()}finally{if(c)throw u}}}})),G(l,"iconView",(function(t,e,r){var n=e.data,o=e.tracker,i=void 0===o?Et:o,a=n.iconViewTracking;if(Array.isArray(a)){var s=!0,c=!1,u=void 0;try{for(var l,f=a[Symbol.iterator]();!(s=(l=f.next()).done);s=!0)i(l.value,H({},n),r)}catch(t){c=!0,u=t}finally{try{!s&&f.return&&f.return()}finally{if(c)throw u}}}})),G(l,"impression",Tt(lt)),G(l,"midpoint",Tt(_t("midpoint"))),G(l,"mute",Tt(_t("mute"))),G(l,"pause",Tt(_t("pause"))),G(l,"playerCollapse",Tt(_t("playerCollapse"))),G(l,"playerExpand",Tt(_t("playerExpand"))),G(l,"progress",(function(t,e){var r=e.data,n=e.tracker,o=void 0===n?Et:n,i=r.progressUri;Boolean(i)&&o(i,H({},r))})),G(l,"resume",Tt(_t("resume"))),G(l,"rewind",Tt(_t("rewind"))),G(l,"skip",Tt(_t("skip"))),G(l,"start",Tt(_t("start"))),G(l,"thirdQuartile",Tt(_t("thirdQuartile"))),G(l,"unmute",Tt(_t("unmute"))),l),xt=function(t){return function(e){return V(e,t)}},kt=(G(f={},v,Tt(xt(v))),G(f,m,Tt(xt(m))),G(f,"close",Tt(xt("close"))),G(f,y,Tt(xt(y))),f),Ot=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.async,n=void 0!==r&&r,o=e.defer,i=void 0!==o&&o,a=e.type,s=void 0===a?"text/javascript":a,c=e.placeholder;if(!t)throw new TypeError('Missing required "src" parameter');return new Promise((function(e,r){var o=document.createElement("script"),a=c;o.type=s,o.async=n,o.defer=i,o.onerror=function(){return r(new URIError("The script "+t+" is not accessible."))},o.onload=function(){return e(o)},a||(a=document.currentScript?document.currentScript.parentNode:document.head),o.src=t,a.appendChild(o)}))},Ct=function(t){return t.contentDocument||t.contentWindow&&t.contentWindow.document},Lt="srcdoc"in document.createElement("iframe"),It=function(){var t=document.createElement("IFRAME");return t.sandbox="allow-forms allow-popups allow-scripts allow-same-origin",t.style.margin="0",t.style.padding="0",t.style.border="none",t.style.width="0",t.style.height="0",t.style.position="absolute",t},Pt=function(t,e){return new Promise((function(r,n){var o,i=function(t,e){return"\n\n \n \n