@streamlayer/react 1.24.7 → 1.24.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/advertisement.js +74 -75
- package/lib/cjs/bet-pack.js +65 -66
- package/lib/cjs/index.js +328 -329
- package/lib/cjs/insight.js +146 -147
- package/lib/cjs/masters.js +257 -258
- package/lib/cjs/notification.js +123 -124
- package/lib/cjs/points.js +31 -32
- package/lib/cjs/style.css +1 -1
- package/lib/dist/cjs/index.js +257 -258
- package/lib/dist/es/index.js +257 -258
- package/lib/es/advertisement.js +2 -2
- package/lib/es/index.js +1 -1
- package/lib/es/index10.js +9 -9
- package/lib/es/index12.js +17 -17
- package/lib/es/index13.js +41 -41
- package/lib/es/index14.js +29 -29
- package/lib/es/index16.js +30 -30
- package/lib/es/index2.js +35 -36
- package/lib/es/index4.js +1 -1
- package/lib/es/index5.js +273 -3
- package/lib/es/index6.js +3 -7
- package/lib/es/index7.js +5 -284
- package/lib/es/index8.js +11 -11
- package/lib/es/insight.js +1 -1
- package/lib/es/masters2.js +26 -26
- package/lib/es/notification.js +23 -23
- package/lib/es/pause-ad.js +1 -1
- package/lib/es/points.js +10 -10
- package/lib/es/polymarket.js +2 -2
- package/lib/es/storage.js +12 -12
- package/lib/es/style.css +1 -1
- package/lib/source.css +1 -1
- package/package.json +14 -14
package/lib/cjs/points.js
CHANGED
|
@@ -52,7 +52,6 @@ require('core-js/modules/es.object.from-entries.js');
|
|
|
52
52
|
require('core-js/modules/es.object.get-own-property-descriptors.js');
|
|
53
53
|
require('core-js/modules/es.regexp.to-string.js');
|
|
54
54
|
require('core-js/modules/es.string.replace.js');
|
|
55
|
-
require('@storybook/blocks');
|
|
56
55
|
require('core-js/modules/es.array.find.js');
|
|
57
56
|
require('core-js/modules/es.array.last-index-of.js');
|
|
58
57
|
require('core-js/modules/es.array.reduce.js');
|
|
@@ -703,7 +702,7 @@ e.name==="QuotaExceededError"||// Firefox
|
|
|
703
702
|
e.name==="NS_ERROR_DOM_QUOTA_REACHED");}var Mt=/*#__PURE__*/_createClass(function Mt(){var _this11=this;var _t31=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"main";var _n0=arguments.length>1&&arguments[1]!==undefined?arguments[1]:window.localStorage;_classCallCheck(this,Mt);_defineProperty(this,"delimiter",":");_defineProperty(this,"prefix",void 0);_defineProperty(this,"storage",void 0);_defineProperty(this,"clear",function(){for(var t in window.localStorage)t.startsWith(_this11.prefix)&&_this11.storage.removeItem(t);});_defineProperty(this,"generateKey",function(t){return "".concat(_this11.prefix).concat(_this11.delimiter).concat(t.join(_this11.delimiter));});_defineProperty(this,"write",function(){for(var _len11=arguments.length,t=new Array(_len11),_key11=0;_key11<_len11;_key11++){t[_key11]=arguments[_key11];}var n=t.pop()||"",l=_this11.generateKey(t);try{_this11.storage.setItem(l,n);}catch(o){_c(o)&&_this11.storage===window.sessionStorage&&(window.sessionStorage.removeItem("slstreamlogs"),_this11.storage.setItem(l,n));}});_defineProperty(this,"read",function(){for(var _len12=arguments.length,t=new Array(_len12),_key12=0;_key12<_len12;_key12++){t[_key12]=arguments[_key12];}var n=_this11.storage.getItem(_this11.generateKey(t));return n===null?void 0:n;});_defineProperty(this,"remove",function(){for(var _len13=arguments.length,t=new Array(_len13),_key13=0;_key13<_len13;_key13++){t[_key13]=arguments[_key13];}_this11.storage.removeItem(_this11.generateKey(t));});this.prefix="sl-sdk".concat(this.delimiter).concat(_t31),this.storage=_n0;});var Qe;(function(e){e.Init="init",e.Ready="ready",e.Connecting="connecting",e.Connected="connected",e.Disconnected="disconnected",e.Failed="failed",e.Reconnect="reconnect",e.Reconnecting="reconnecting";})(Qe||(Qe={}));ve("grpc:stream");/* @__PURE__ */new Set([P$3.Unknown,P$3.Internal,P$3.DeadlineExceeded,P$3.ResourceExhausted,P$3.FailedPrecondition,P$3.Unavailable,P$3.DataLoss]);ve("grpc:retry");({retryAttempts:nr$1(10,{description:"Number of attempts to retry"}),retryDelay:nr$1(3e4,{description:"Max delay between retries in milliseconds"})});var lt$1;(function(e){e.SCHEMA="schema",e.EXTERNAL_TOKEN="eToken",e.TOKEN="token";})(lt$1||(lt$1={}));var Bt=/*#__PURE__*/function(_Mt2){function Bt(){var _this14;_classCallCheck(this,Bt);_this14=_callSuper(this,Bt,["user"]);// Schema
|
|
704
703
|
_defineProperty(_this14,"setSchema",function(t){_this14.write(lt$1.SCHEMA,t);});_defineProperty(_this14,"getSchema",function(){return _this14.read(lt$1.SCHEMA);});// Token
|
|
705
704
|
_defineProperty(_this14,"setToken",function(t){_this14.write(lt$1.TOKEN,t);});_defineProperty(_this14,"getToken",function(){return _this14.read(lt$1.TOKEN);});// External Token
|
|
706
|
-
_defineProperty(_this14,"setExternalToken",function(t){_this14.write(lt$1.EXTERNAL_TOKEN,t);});_defineProperty(_this14,"getExternalToken",function(){return _this14.read(lt$1.EXTERNAL_TOKEN);});_defineProperty(_this14,"removeToken",function(){_this14.remove(lt$1.TOKEN);});return _this14;}_inherits(Bt,_Mt2);return _createClass(Bt);}(Mt);var it$1;(function(e){e.DISABLED="disabled",e.INITIALIZATION="initialization",e.READY="ready",e.FAILED="failed",e.SUSPENDED="suspended";})(it$1||(it$1={}));var Ct;(function(e){e.SHOWED="showed",e.EVENT="ev";})(Ct||(Ct={}));var Me;(function(e){e.ONBOARDING="onboarding",e.ONBOARDING_IO="onboarding_io",e.QUESTION_RECEIVED="q-received",e.QUESTION_OPENED="q-opened";})(Me||(Me={}));var Rt;(function(e){e.ALLOWED="allowed",e.DISALLOWED="disallowed";})(Rt||(Rt={}));var Ln;(function(e){e.OPENED="opened";})(Ln||(Ln={}));var xt;(function(e){e.UNKNOWN="unknown",e.ALREADY_VOTED="already_voted";})(xt||(xt={}));ve("deep_link");ve("bypass");new Bt();ve("video_player");_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({},ee.FACTOID,"insight"),ee.POLL,"poll"),ee.TRIVIA,"trivia"),ee.PREDICTION,"prediction"),ee.TWEET,"tweet");var fe;(function(e){e.Unset="unset",e.Required="required",e.Optional="optional",e.Completed="completed",e.Disabled="disabled",e.Unavailable="unavailable";})(fe||(fe={}));/* @__PURE__ */new Set([ee.POLL,ee.PREDICTION,ee.TRIVIA]);_defineProperty({},be.GAMES,true);function Ko(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return {id:e.id||null,adId:e.adId||null,sequence:e.sequence||null,apiFramework:e.apiFramework||null,universalAdIds:[],creativeExtensions:[]};}var Vg=["ADCATEGORIES","ADCOUNT","ADPLAYHEAD","ADSERVINGID","ADTYPE","APIFRAMEWORKS","APPBUNDLE","ASSETURI","BLOCKEDADCATEGORIES","BREAKMAXADLENGTH","BREAKMAXADS","BREAKMAXDURATION","BREAKMINADLENGTH","BREAKMINDURATION","BREAKPOSITION","CLICKPOS","CLICKTYPE","CLIENTUA","CONTENTID","CONTENTPLAYHEAD","CONTENTURI","DEVICEIP","DEVICEUA","DOMAIN","EXTENSIONS","GDPRCONSENT","IFA","IFATYPE","INVENTORYSTATE","LATLONG","LIMITADTRACKING","MEDIAMIME","MEDIAPLAYHEAD","OMIDPARTNER","PAGEURL","PLACEMENTTYPE","PLAYERCAPABILITIES","PLAYERSIZE","PLAYERSTATE","PODSEQUENCE","REGULATIONS","SERVERSIDE","SERVERUA","TRANSACTIONID","UNIVERSALADID","VASTVERSIONS","VERIFICATIONVENDORS"];function Nr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var l=[],o=iu(e);!t.ERRORCODE||n.isCustomCode||/^[0-9]{3}$/.test(t.ERRORCODE)||(t.ERRORCODE=900),t.CACHEBUSTING=su(Math.round(1e8*Math.random())),t.TIMESTAMP=(/* @__PURE__ */new Date()).toISOString(),t.RANDOM=t.random=t.CACHEBUSTING;for(var _i34 in t)t[_i34]=au(t[_i34]);for(var _i35 in o){var r=o[_i35];typeof r=="string"&&l.push(ou(r,t));}return l;}function ou(e,t){var n=(e=Ir(e,t)).match(/[^[\]]+(?=])/g);if(!n)return e;var l=n.filter(function(o){return Vg.indexOf(o)>-1;});return l.length===0?e:(l=l.reduce(function(o,i){return o[i]=-1,o;},{}),Ir(e,l));}function Ir(e,t){var n=e;for(var _l13 in t){var _o21=t[_l13];n=n.replace(new RegExp("(?:\\[|%%)(".concat(_l13,")(?:\\]|%%)"),"g"),_o21);}return n;}function iu(e){return Array.isArray(e)?e.map(function(t){return t&&t.hasOwnProperty("url")?t.url:t;}):e;}function Yr(e){return /^(https?:\/\/|\/\/)/.test(e);}function Ur(e,t){for(var n=0;n<t.length;n++)if(ru(t[n],e))return true;return false;}function ru(e,t){if(e&&t){var n=Object.getOwnPropertyNames(e),_l14=Object.getOwnPropertyNames(t);return n.length===_l14.length&&e.id===t.id&&e.url===t.url;}return false;}function au(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(t){return "%".concat(t.charCodeAt(0).toString(16));});}function su(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:8;return e.toString().padStart(t,"0");}var Ft={track:function track(e,t,n){Nr(e,t,n).forEach(function(l){(typeof window==="undefined"?"undefined":_typeof(window))<"u"&&window!==null&&(new Image().src=l);});},resolveURLTemplates:Nr,extractURLsFromTemplates:iu,filterUrlTemplates:function filterUrlTemplates(e){return e.reduce(function(t,n){var l=n.url||n;return Yr(l)?t.validUrls.push(l):t.invalidUrls.push(l),t;},{validUrls:[],invalidUrls:[]});},containsTemplateObject:Ur,isTemplateObjectEqual:ru,encodeURIComponentRFC3986:au,replaceUrlMacros:ou,isNumeric:function isNumeric(e){return !isNaN(parseFloat(e))&&isFinite(e);},flatten:function e(t){return t.reduce(function(n,l){return n.concat(Array.isArray(l)?e(l):l);},[]);},joinArrayOfUniqueTemplateObjs:function joinArrayOfUniqueTemplateObjs(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];var n=Array.isArray(e)?e:[],l=Array.isArray(t)?t:[];return n.concat(l).reduce(function(o,i){return Ur(i,o)||o.push(i),o;},[]);},isValidTimeValue:function isValidTimeValue(e){return Number.isFinite(e)&&e>=-2;},addLeadingZeros:su,isValidUrl:Yr,isBrowserEnvironment:function isBrowserEnvironment(){return (typeof window==="undefined"?"undefined":_typeof(window))<"u";},formatMacrosValues:function formatMacrosValues(e){return _typeof(e)!="object"?e:JSON.stringify(e);}};function Br(e){return ["true","TRUE","True","1"].includes(e);}function gg(e){if(e==null)return -1;if(Ft.isNumeric(e))return parseInt(e);var t=e.split(":");if(t.length!==3)return -1;var n=t[2].split(".");var l=parseInt(n[0]);n.length===2&&(l+=parseFloat("0.".concat(n[1])));var o=parseInt(60*t[1]),i=parseInt(60*t[0]*60);return isNaN(i)||isNaN(o)||isNaN(l)||o>3600||l>60?-1:i+o+l;}var G$3={childByName:function childByName(e,t){return Array.from(e.childNodes).find(function(n){return n.nodeName===t;});},childrenByName:function childrenByName(e,t){return Array.from(e.childNodes).filter(function(n){return n.nodeName===t;});},resolveVastAdTagURI:function resolveVastAdTagURI(e,t){if(!t)return e;if(e.startsWith("//")){var _location=location,n=_location.protocol;return "".concat(n).concat(e);}if(!e.includes("://")){var _n16=t.slice(0,t.lastIndexOf("/"));return "".concat(_n16,"/").concat(e);}return e;},parseBoolean:Br,parseNodeText:function parseNodeText(e){return e&&(e.textContent||e.text||"").trim();},copyNodeAttribute:function copyNodeAttribute(e,t,n){var l=t.getAttribute(e);l&&n.setAttribute(e,l);},parseAttributes:function parseAttributes(e){return Array.from(e.attributes).reduce(function(t,n){return t[n.nodeName]=n.nodeValue,t;},{});},parseDuration:gg,getStandAloneAds:function getStandAloneAds(){return (arguments.length>0&&arguments[0]!==void 0?arguments[0]:[]).filter(function(e){return !parseInt(e.sequence,10);});},getSortedAdPods:function getSortedAdPods(){return (arguments.length>0&&arguments[0]!==void 0?arguments[0]:[]).filter(function(e){return parseInt(e.sequence,10);}).sort(function(e,t){return e.sequence-t.sequence;});},assignAttributes:function assignAttributes(e,t){e&&Array.from(e).forEach(function(n){var l=n.nodeName,o=n.nodeValue;if(l&&o&&t.hasOwnProperty(l)){var _i36=o;typeof t[l]=="boolean"&&(_i36=Br(_i36)),t[l]=_i36;}});},mergeWrapperAdData:function mergeWrapperAdData(e,t){var n;e.errorURLTemplates=t.errorURLTemplates.concat(e.errorURLTemplates),e.impressionURLTemplates=t.impressionURLTemplates.concat(e.impressionURLTemplates),e.extensions=t.extensions.concat(e.extensions),t.viewableImpression.length>0&&(e.viewableImpression=[].concat(_toConsumableArray(e.viewableImpression),_toConsumableArray(t.viewableImpression))),e.followAdditionalWrappers=t.followAdditionalWrappers,e.allowMultipleAds=t.allowMultipleAds,e.fallbackOnNoAd=t.fallbackOnNoAd;var l=(t.creatives||[]).filter(function(a){return a&&a.type==="companion";}),o=l.reduce(function(a,s){return (s.variations||[]).forEach(function(c){(c.companionClickTrackingURLTemplates||[]).forEach(function(u){Ft.containsTemplateObject(u,a)||a.push(u);});}),a;},[]);e.creatives=l.concat(e.creatives);var i=t.videoClickTrackingURLTemplates&&t.videoClickTrackingURLTemplates.length,r=t.videoCustomClickURLTemplates&&t.videoCustomClickURLTemplates.length;if(e.creatives.forEach(function(a){if(t.trackingEvents&&t.trackingEvents[a.type])for(var s in t.trackingEvents[a.type]){var _c0=t.trackingEvents[a.type][s];Array.isArray(a.trackingEvents[s])||(a.trackingEvents[s]=[]),a.trackingEvents[s]=a.trackingEvents[s].concat(_c0);}a.type==="linear"&&(i&&(a.videoClickTrackingURLTemplates=a.videoClickTrackingURLTemplates.concat(t.videoClickTrackingURLTemplates)),r&&(a.videoCustomClickURLTemplates=a.videoCustomClickURLTemplates.concat(t.videoCustomClickURLTemplates)),!t.videoClickThroughURLTemplate||a.videoClickThroughURLTemplate!==null&&a.videoClickThroughURLTemplate!==void 0||(a.videoClickThroughURLTemplate=t.videoClickThroughURLTemplate)),a.type==="companion"&&o.length&&(a.variations||[]).forEach(function(s){s.companionClickTrackingURLTemplates=Ft.joinArrayOfUniqueTemplateObjs(s.companionClickTrackingURLTemplates,o);});}),t.adVerifications&&(e.adVerifications=e.adVerifications.concat(t.adVerifications)),t.blockedAdCategories&&(e.blockedAdCategories=e.blockedAdCategories.concat(t.blockedAdCategories)),(n=t.creatives)!==null&&n!==void 0&&n.length){var a=t.creatives.filter(function(s){var c;return ((c=s.icons)===null||c===void 0?void 0:c.length)&&!s.mediaFiles.length;});a.length&&(e.creatives=e.creatives.concat(a));}}};function Ag(e,t){var n=function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};var _Ko=Ko(l),o=_Ko.id,i=_Ko.adId,r=_Ko.sequence,a=_Ko.apiFramework;return {id:o,adId:i,sequence:r,apiFramework:a,type:"companion",required:null,variations:[]};}(t);return n.required=e.getAttribute("required")||null,n.variations=G$3.childrenByName(e,"Companion").map(function(l){var o=function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return {id:a.id||null,adType:"companionAd",width:a.width||0,height:a.height||0,assetWidth:a.assetWidth||null,assetHeight:a.assetHeight||null,expandedWidth:a.expandedWidth||null,expandedHeight:a.expandedHeight||null,apiFramework:a.apiFramework||null,adSlotId:a.adSlotId||null,pxratio:a.pxratio||"1",renderingMode:a.renderingMode||"default",staticResources:[],htmlResources:[],iframeResources:[],adParameters:null,altText:null,companionClickThroughURLTemplate:null,companionClickTrackingURLTemplates:[],trackingEvents:{}};}(G$3.parseAttributes(l));o.htmlResources=G$3.childrenByName(l,"HTMLResource").reduce(function(a,s){var c=G$3.parseNodeText(s);return c?a.concat(c):a;},[]),o.iframeResources=G$3.childrenByName(l,"IFrameResource").reduce(function(a,s){var c=G$3.parseNodeText(s);return c?a.concat(c):a;},[]),o.staticResources=G$3.childrenByName(l,"StaticResource").reduce(function(a,s){var c=G$3.parseNodeText(s);return c?a.concat({url:c,creativeType:s.getAttribute("creativeType")||null}):a;},[]),o.altText=G$3.parseNodeText(G$3.childByName(l,"AltText"))||null;var i=G$3.childByName(l,"TrackingEvents");i&&G$3.childrenByName(i,"Tracking").forEach(function(a){var s=a.getAttribute("event"),c=G$3.parseNodeText(a);s&&c&&(Array.isArray(o.trackingEvents[s])||(o.trackingEvents[s]=[]),o.trackingEvents[s].push(c));}),o.companionClickTrackingURLTemplates=G$3.childrenByName(l,"CompanionClickTracking").map(function(a){return {id:a.getAttribute("id")||null,url:G$3.parseNodeText(a)};}),o.companionClickThroughURLTemplate=G$3.parseNodeText(G$3.childByName(l,"CompanionClickThrough"))||null;var r=G$3.childByName(l,"AdParameters");return r&&(o.adParameters={value:G$3.parseNodeText(r),xmlEncoded:r.getAttribute("xmlEncoded")||null}),o;}),n;}function Rg(e,t){var n;var l=function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};var _Ko2=Ko(s),c=_Ko2.id,u=_Ko2.adId,b=_Ko2.sequence,h=_Ko2.apiFramework;return {id:c,adId:u,sequence:b,apiFramework:h,type:"linear",duration:0,skipDelay:null,mediaFiles:[],mezzanine:null,interactiveCreativeFile:null,closedCaptionFiles:[],videoClickThroughURLTemplate:null,videoClickTrackingURLTemplates:[],videoCustomClickURLTemplates:[],adParameters:null,icons:[],trackingEvents:{}};}(t);l.duration=G$3.parseDuration(G$3.parseNodeText(G$3.childByName(e,"Duration")));var o=e.getAttribute("skipoffset");if(o==null)l.skipDelay=null;else if(o.charAt(o.length-1)==="%"&&l.duration!==-1){var s=parseInt(o,10);l.skipDelay=l.duration*(s/100);}else l.skipDelay=G$3.parseDuration(o);var i=G$3.childByName(e,"VideoClicks");if(i){var _s7=G$3.childByName(i,"ClickThrough");l.videoClickThroughURLTemplate=_s7?{id:_s7.getAttribute("id")||null,url:G$3.parseNodeText(_s7)}:null,G$3.childrenByName(i,"ClickTracking").forEach(function(c){l.videoClickTrackingURLTemplates.push({id:c.getAttribute("id")||null,url:G$3.parseNodeText(c)});}),G$3.childrenByName(i,"CustomClick").forEach(function(c){l.videoCustomClickURLTemplates.push({id:c.getAttribute("id")||null,url:G$3.parseNodeText(c)});});}var r=G$3.childByName(e,"AdParameters");r&&(l.adParameters={value:G$3.parseNodeText(r),xmlEncoded:r.getAttribute("xmlEncoded")||null}),G$3.childrenByName(e,"TrackingEvents").forEach(function(s){G$3.childrenByName(s,"Tracking").forEach(function(c){var u=c.getAttribute("event");var b=G$3.parseNodeText(c);if(u&&b){if(u==="progress"){if(n=c.getAttribute("offset"),!n)return;u=n.charAt(n.length-1)==="%"?"progress-".concat(n):"progress-".concat(G$3.parseDuration(n));}Array.isArray(l.trackingEvents[u])||(l.trackingEvents[u]=[]),l.trackingEvents[u].push(b);}});}),G$3.childrenByName(e,"MediaFiles").forEach(function(s){G$3.childrenByName(s,"MediaFile").forEach(function(d){l.mediaFiles.push(function(m){var V={id:null,fileURL:null,fileSize:0,deliveryType:"progressive",mimeType:null,mediaType:null,codec:null,bitrate:0,minBitrate:0,maxBitrate:0,width:0,height:0,apiFramework:null,scalable:null,maintainAspectRatio:null};V.id=m.getAttribute("id"),V.fileURL=G$3.parseNodeText(m),V.deliveryType=m.getAttribute("delivery"),V.codec=m.getAttribute("codec"),V.mimeType=m.getAttribute("type"),V.mediaType=m.getAttribute("mediaType")||"2D",V.apiFramework=m.getAttribute("apiFramework"),V.fileSize=parseInt(m.getAttribute("fileSize")||0),V.bitrate=parseInt(m.getAttribute("bitrate")||0),V.minBitrate=parseInt(m.getAttribute("minBitrate")||0),V.maxBitrate=parseInt(m.getAttribute("maxBitrate")||0),V.width=parseInt(m.getAttribute("width")||0),V.height=parseInt(m.getAttribute("height")||0);var Z=m.getAttribute("scalable");Z&&typeof Z=="string"&&(V.scalable=G$3.parseBoolean(Z));var g=m.getAttribute("maintainAspectRatio");return g&&typeof g=="string"&&(V.maintainAspectRatio=G$3.parseBoolean(g)),V;}(d));});var c=G$3.childByName(s,"InteractiveCreativeFile");c&&(l.interactiveCreativeFile=function(d){var m=function(){var V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return {type:V.type||null,apiFramework:V.apiFramework||null,variableDuration:G$3.parseBoolean(V.variableDuration),fileURL:null};}(G$3.parseAttributes(d));return m.fileURL=G$3.parseNodeText(d),m;}(c));var u=G$3.childByName(s,"ClosedCaptionFiles");u&&G$3.childrenByName(u,"ClosedCaptionFile").forEach(function(d){var m=function(){var V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return {type:V.type||null,language:V.language||null,fileURL:null};}(G$3.parseAttributes(d));m.fileURL=G$3.parseNodeText(d),l.closedCaptionFiles.push(m);});var b=G$3.childByName(s,"Mezzanine"),h=function(d,m){var V={};var Z=false;return m.forEach(function(g){d&&d.getAttribute(g)?V[g]=d.getAttribute(g):Z=true;}),Z?null:V;}(b,["delivery","type","width","height"]);if(h){var d={id:null,fileURL:null,delivery:null,codec:null,type:null,width:0,height:0,fileSize:0,mediaType:"2D"};d.id=b.getAttribute("id"),d.fileURL=G$3.parseNodeText(b),d.delivery=h.delivery,d.codec=b.getAttribute("codec"),d.type=h.type,d.width=parseInt(h.width,10),d.height=parseInt(h.height,10),d.fileSize=parseInt(b.getAttribute("fileSize"),10),d.mediaType=b.getAttribute("mediaType")||"2D",l.mezzanine=d;}});var a=G$3.childByName(e,"Icons");return a&&G$3.childrenByName(a,"Icon").forEach(function(s){l.icons.push(function(c){var u={program:null,height:0,width:0,xPosition:0,yPosition:0,apiFramework:null,offset:null,duration:0,type:null,staticResource:null,htmlResource:null,iframeResource:null,pxratio:"1",iconClickThroughURLTemplate:null,iconClickTrackingURLTemplates:[],iconViewTrackingURLTemplate:null,iconClickFallbackImages:[],altText:null,hoverText:null};u.program=c.getAttribute("program"),u.height=parseInt(c.getAttribute("height")||0),u.width=parseInt(c.getAttribute("width")||0),u.xPosition=function(h){return ["left","right"].indexOf(h)!==-1?h:parseInt(h||0);}(c.getAttribute("xPosition")),u.yPosition=function(h){return ["top","bottom"].indexOf(h)!==-1?h:parseInt(h||0);}(c.getAttribute("yPosition")),u.apiFramework=c.getAttribute("apiFramework"),u.pxratio=c.getAttribute("pxratio")||"1",u.offset=G$3.parseDuration(c.getAttribute("offset")),u.duration=G$3.parseDuration(c.getAttribute("duration")),u.altText=c.getAttribute("altText"),u.hoverText=c.getAttribute("hoverText"),G$3.childrenByName(c,"HTMLResource").forEach(function(h){u.type=h.getAttribute("creativeType")||"text/html",u.htmlResource=G$3.parseNodeText(h);}),G$3.childrenByName(c,"IFrameResource").forEach(function(h){u.type=h.getAttribute("creativeType")||0,u.iframeResource=G$3.parseNodeText(h);}),G$3.childrenByName(c,"StaticResource").forEach(function(h){u.type=h.getAttribute("creativeType")||0,u.staticResource=G$3.parseNodeText(h);});var b=G$3.childByName(c,"IconClicks");if(b){u.iconClickThroughURLTemplate=G$3.parseNodeText(G$3.childByName(b,"IconClickThrough")),G$3.childrenByName(b,"IconClickTracking").forEach(function(d){u.iconClickTrackingURLTemplates.push({id:d.getAttribute("id")||null,url:G$3.parseNodeText(d)});});var h=G$3.childByName(b,"IconClickFallbackImages");h&&G$3.childrenByName(h,"IconClickFallbackImage").forEach(function(d){u.iconClickFallbackImages.push({url:G$3.parseNodeText(d)||null,width:d.getAttribute("width")||null,height:d.getAttribute("height")||null});});}return u.iconViewTrackingURLTemplate=G$3.parseNodeText(G$3.childByName(c,"IconViewTracking")),u;}(s));}),l;}function pg(e,t){var n=function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};var _Ko3=Ko(l),o=_Ko3.id,i=_Ko3.adId,r=_Ko3.sequence,a=_Ko3.apiFramework;return {id:o,adId:i,sequence:r,apiFramework:a,type:"nonlinear",variations:[],trackingEvents:{}};}(t);return G$3.childrenByName(e,"TrackingEvents").forEach(function(l){var o,i;G$3.childrenByName(l,"Tracking").forEach(function(r){o=r.getAttribute("event"),i=G$3.parseNodeText(r),o&&i&&(Array.isArray(n.trackingEvents[o])||(n.trackingEvents[o]=[]),n.trackingEvents[o].push(i));});}),G$3.childrenByName(e,"NonLinear").forEach(function(l){var o={id:null,width:0,height:0,expandedWidth:0,expandedHeight:0,scalable:true,maintainAspectRatio:true,minSuggestedDuration:0,apiFramework:"static",adType:"nonLinearAd",type:null,staticResource:null,htmlResource:null,iframeResource:null,nonlinearClickThroughURLTemplate:null,nonlinearClickTrackingURLTemplates:[],adParameters:null};o.id=l.getAttribute("id")||null,o.width=l.getAttribute("width"),o.height=l.getAttribute("height"),o.expandedWidth=l.getAttribute("expandedWidth"),o.expandedHeight=l.getAttribute("expandedHeight"),o.scalable=G$3.parseBoolean(l.getAttribute("scalable")),o.maintainAspectRatio=G$3.parseBoolean(l.getAttribute("maintainAspectRatio")),o.minSuggestedDuration=G$3.parseDuration(l.getAttribute("minSuggestedDuration")),o.apiFramework=l.getAttribute("apiFramework"),G$3.childrenByName(l,"HTMLResource").forEach(function(r){o.type=r.getAttribute("creativeType")||"text/html",o.htmlResource=G$3.parseNodeText(r);}),G$3.childrenByName(l,"IFrameResource").forEach(function(r){o.type=r.getAttribute("creativeType")||0,o.iframeResource=G$3.parseNodeText(r);}),G$3.childrenByName(l,"StaticResource").forEach(function(r){o.type=r.getAttribute("creativeType")||0,o.staticResource=G$3.parseNodeText(r);});var i=G$3.childByName(l,"AdParameters");i&&(o.adParameters={value:G$3.parseNodeText(i),xmlEncoded:i.getAttribute("xmlEncoded")||null}),o.nonlinearClickThroughURLTemplate=G$3.parseNodeText(G$3.childByName(l,"NonLinearClickThrough")),G$3.childrenByName(l,"NonLinearClickTracking").forEach(function(r){o.nonlinearClickTrackingURLTemplates.push({id:r.getAttribute("id")||null,url:G$3.parseNodeText(r)});}),n.variations.push(o);}),n;}function Cr(e){var t=[];return e.forEach(function(n){var l=cu(n);l&&t.push(l);}),t;}function cu(e){if(e.nodeName==="#comment")return null;var t={name:null,value:null,attributes:{},children:[]},n=e.attributes,l=e.childNodes;if(t.name=e.nodeName,e.attributes){for(var _i37 in n)if(n.hasOwnProperty(_i37)){var r=n[_i37];r.nodeName&&r.nodeValue&&(t.attributes[r.nodeName]=r.nodeValue);}}for(var _i38 in l)if(l.hasOwnProperty(_i38)){var _r1=cu(l[_i38]);_r1&&t.children.push(_r1);}if(t.children.length===0||t.children.length===1&&["#cdata-section","#text"].indexOf(t.children[0].name)>=0){var _i39=G$3.parseNodeText(e);_i39!==""&&(t.value=_i39),t.children=[];}return (o=t).value===null&&Object.keys(o.attributes).length===0&&o.children.length===0?null:t;var o;}function Eg(e){return e.getAttribute("AdID")||e.getAttribute("adID")||e.getAttribute("adId")||null;}var Jn={Wrapper:{subElements:["VASTAdTagURI","Impression"]},BlockedAdCategories:{attributes:["authority"]},InLine:{subElements:["AdSystem","AdTitle","Impression","AdServingId","Creatives"]},Category:{attributes:["authority"]},Pricing:{attributes:["model","currency"]},Verification:{oneOfinLineResources:["JavaScriptResource","ExecutableResource"],attributes:["vendor"]},UniversalAdId:{attributes:["idRegistry"]},JavaScriptResource:{attributes:["apiFramework","browserOptional"]},ExecutableResource:{attributes:["apiFramework","type"]},Tracking:{attributes:["event"]},Creatives:{subElements:["Creative"]},Creative:{subElements:["UniversalAdId"]},Linear:{subElements:["MediaFiles","Duration"]},MediaFiles:{subElements:["MediaFile"]},MediaFile:{attributes:["delivery","type","width","height"]},Mezzanine:{attributes:["delivery","type","width","height"]},NonLinear:{oneOfinLineResources:["StaticResource","IFrameResource","HTMLResource"],attributes:["width","height"]},Companion:{oneOfinLineResources:["StaticResource","IFrameResource","HTMLResource"],attributes:["width","height"]},StaticResource:{attributes:["creativeType"]},Icons:{subElements:["Icon"]},Icon:{oneOfinLineResources:["StaticResource","IFrameResource","HTMLResource"]}};function Jr(e,t){if(!Jn[e.nodeName]||!Jn[e.nodeName].attributes)return;var n=Jn[e.nodeName].attributes.filter(function(l){return !e.getAttribute(l);});n.length>0&&on({name:e.nodeName,parentName:e.parentNode.nodeName,attributes:n},t);}function vr(e,t,n){var l=Jn[e.nodeName],o=!n&&e.nodeName!=="Wrapper";if(!(!l||o)){if(l.subElements){var _i40=l.subElements.filter(function(r){return !G$3.childByName(e,r);});_i40.length>0&&on({name:e.nodeName,parentName:e.parentNode.nodeName,subElements:_i40},t);}!n||!l.oneOfinLineResources||l.oneOfinLineResources.some(function(i){return G$3.childByName(e,i);})||on({name:e.nodeName,parentName:e.parentNode.nodeName,oneOfResources:l.oneOfinLineResources},t);}}function Tr(e){return e.children&&e.children.length!==0;}function on(e,t){var n=e.name,l=e.parentName,o=e.attributes,i=e.subElements,r=e.oneOfResources,a="Element '".concat(n,"'");a+=o?" missing required attribute(s) '".concat(o.join(", "),"' "):i?" missing required sub element(s) '".concat(i.join(", "),"' "):r?" must provide one of the following '".concat(r.join(", "),"' "):" is empty",t("VAST-warning",{message:a,parentElement:l,specVersion:4.1});}var Wg={verifyRequiredValues:function e(t,n,l){if(t&&t.nodeName)if(t.nodeName==="InLine"&&(l=true),Jr(t,n),Tr(t)){vr(t,n,l);for(var _o22=0;_o22<t.children.length;_o22++)e(t.children[_o22],n,l);}else G$3.parseNodeText(t).length===0&&on({name:t.nodeName,parentName:t.parentNode.nodeName},n);},hasSubElements:Tr,emitMissingValueWarning:on,verifyRequiredAttributes:Jr,verifyRequiredSubElements:vr};function Zg(e,t){var _ref76=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=_ref76.allowMultipleAds,l=_ref76.followAdditionalWrappers;var o=Array.from(e.childNodes).filter(function(i){var r=i.nodeName.toLowerCase();return r==="inline"||l!==false&&r==="wrapper";});var _iterator75=_createForOfIteratorHelper(o),_step75;try{for(_iterator75.s();!(_step75=_iterator75.n()).done;){var _i41=_step75.value;if(G$3.copyNodeAttribute("id",e,_i41),G$3.copyNodeAttribute("sequence",e,_i41),G$3.copyNodeAttribute("adType",e,_i41),_i41.nodeName==="Wrapper")return {ad:yg(_i41,t),type:"WRAPPER"};if(_i41.nodeName==="InLine")return {ad:fg(_i41,t,{allowMultipleAds:n}),type:"INLINE"};var r=_i41.nodeName.toLowerCase();t("VAST-warning",{message:"<".concat(_i41.nodeName,r==="inline"?"> must be written <InLine>":"> must be written <Wrapper>"),wrongNode:_i41});}}catch(err){_iterator75.e(err);}finally{_iterator75.f();}}function fg(e,t){var _ref77=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=_ref77.allowMultipleAds;return n===false&&e.getAttribute("sequence")?null:uu(e,t);}function uu(e,t){var n=[];t&&Wg.verifyRequiredValues(e,t);var l=Array.from(e.childNodes),o=function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return {id:i.id||null,sequence:i.sequence||null,adType:i.adType||null,adServingId:null,categories:[],expires:null,viewableImpression:[],system:null,title:null,description:null,advertiser:null,pricing:null,survey:null,errorURLTemplates:[],impressionURLTemplates:[],creatives:[],extensions:[],adVerifications:[],blockedAdCategories:[],followAdditionalWrappers:true,allowMultipleAds:false,fallbackOnNoAd:null};}(G$3.parseAttributes(e));return l.forEach(function(i){switch(i.nodeName){case "Error":o.errorURLTemplates.push(G$3.parseNodeText(i));break;case "Impression":o.impressionURLTemplates.push({id:i.getAttribute("id")||null,url:G$3.parseNodeText(i)});break;case "Creatives":o.creatives=function(r){var a=[];return r.forEach(function(s){var c={id:s.getAttribute("id")||null,adId:Eg(s),sequence:s.getAttribute("sequence")||null,apiFramework:s.getAttribute("apiFramework")||null},u=[];var b;G$3.childrenByName(s,"UniversalAdId").forEach(function(d){var m={idRegistry:d.getAttribute("idRegistry")||"unknown",value:G$3.parseNodeText(d)};u.push(m);});var h=G$3.childByName(s,"CreativeExtensions");h&&(b=Cr(G$3.childrenByName(h,"CreativeExtension")));for(var d in s.childNodes){var m=s.childNodes[d];var V=void 0;switch(m.nodeName){case "Linear":V=Rg(m,c);break;case "NonLinearAds":V=pg(m,c);break;case "CompanionAds":V=Ag(m,c);}V&&(u&&(V.universalAdIds=u),b&&(V.creativeExtensions=b),a.push(V));}}),a;}(G$3.childrenByName(i,"Creative"));break;case "Extensions":{var r=G$3.childrenByName(i,"Extension");o.extensions=Cr(r),o.adVerifications.length||(n=function(a){var s=null,c=[];return a.some(function(u){return s=G$3.childByName(u,"AdVerifications");}),s&&(c=kr(G$3.childrenByName(s,"Verification"))),c;}(r));break;}case "AdVerifications":o.adVerifications=kr(G$3.childrenByName(i,"Verification"));break;case "AdSystem":o.system={value:G$3.parseNodeText(i),version:i.getAttribute("version")||null};break;case "AdTitle":o.title=G$3.parseNodeText(i);break;case "AdServingId":o.adServingId=G$3.parseNodeText(i);break;case "Category":o.categories.push({authority:i.getAttribute("authority")||null,value:G$3.parseNodeText(i)});break;case "Expires":o.expires=parseInt(G$3.parseNodeText(i),10);break;case "ViewableImpression":o.viewableImpression.push(function(r){var a=function a(s,c){var u=G$3.parseNodeText(c);return u&&s.push(u),s;};return {id:r.getAttribute("id")||null,viewable:G$3.childrenByName(r,"Viewable").reduce(a,[]),notViewable:G$3.childrenByName(r,"NotViewable").reduce(a,[]),viewUndetermined:G$3.childrenByName(r,"ViewUndetermined").reduce(a,[])};}(i));break;case "Description":o.description=G$3.parseNodeText(i);break;case "Advertiser":o.advertiser={id:i.getAttribute("id")||null,value:G$3.parseNodeText(i)};break;case "Pricing":o.pricing={value:G$3.parseNodeText(i),model:i.getAttribute("model")||null,currency:i.getAttribute("currency")||null};break;case "Survey":o.survey={value:G$3.parseNodeText(i),type:i.getAttribute("type")||null};break;case "BlockedAdCategories":o.blockedAdCategories.push({authority:i.getAttribute("authority")||null,value:G$3.parseNodeText(i)});}}),n.length&&(o.adVerifications=o.adVerifications.concat(n)),o;}function yg(e,t){var n=uu(e,t),l=e.getAttribute("followAdditionalWrappers"),o=e.getAttribute("allowMultipleAds"),i=e.getAttribute("fallbackOnNoAd");n.followAdditionalWrappers=!l||G$3.parseBoolean(l),n.allowMultipleAds=!!o&&G$3.parseBoolean(o),n.fallbackOnNoAd=i?G$3.parseBoolean(i):null;var r=G$3.childByName(e,"VASTAdTagURI");if(r?n.nextWrapperURL=G$3.parseNodeText(r):(r=G$3.childByName(e,"VASTAdTagURL"),r&&(n.nextWrapperURL=G$3.parseNodeText(G$3.childByName(r,"URL")))),n.creatives.forEach(function(a){if(["linear","nonlinear"].includes(a.type)){if(a.trackingEvents){n.trackingEvents||(n.trackingEvents={}),n.trackingEvents[a.type]||(n.trackingEvents[a.type]={});var _loop3=function _loop3(s){var c=a.trackingEvents[s];Array.isArray(n.trackingEvents[a.type][s])||(n.trackingEvents[a.type][s]=[]),c.forEach(function(u){n.trackingEvents[a.type][s].push(u);});};for(var s in a.trackingEvents){_loop3(s);}}a.videoClickTrackingURLTemplates&&(Array.isArray(n.videoClickTrackingURLTemplates)||(n.videoClickTrackingURLTemplates=[]),a.videoClickTrackingURLTemplates.forEach(function(s){n.videoClickTrackingURLTemplates.push(s);})),a.videoClickThroughURLTemplate&&(n.videoClickThroughURLTemplate=a.videoClickThroughURLTemplate),a.videoCustomClickURLTemplates&&(Array.isArray(n.videoCustomClickURLTemplates)||(n.videoCustomClickURLTemplates=[]),a.videoCustomClickURLTemplates.forEach(function(s){n.videoCustomClickURLTemplates.push(s);}));}}),n.nextWrapperURL)return n;}function kr(e){var t=[];return e.forEach(function(n){var l={resource:null,vendor:null,browserOptional:false,apiFramework:null,type:null,parameters:null,trackingEvents:{}},o=Array.from(n.childNodes);G$3.assignAttributes(n.attributes,l),o.forEach(function(r){var a=r.nodeName,s=r.textContent,c=r.attributes;switch(a){case "JavaScriptResource":case "ExecutableResource":l.resource=s.trim(),G$3.assignAttributes(c,l);break;case "VerificationParameters":l.parameters=s.trim();}});var i=G$3.childByName(n,"TrackingEvents");i&&G$3.childrenByName(i,"Tracking").forEach(function(r){var a=r.getAttribute("event"),s=G$3.parseNodeText(r);a&&s&&(Array.isArray(l.trackingEvents[a])||(l.trackingEvents[a]=[]),l.trackingEvents[a].push(s));}),t.push(l);}),t;}var Gg=/*#__PURE__*/function(){function Gg(){_classCallCheck(this,Gg);this._handlers=[];}return _createClass(Gg,[{key:"on",value:function on(t,n){if(typeof n!="function")throw new TypeError("The handler argument must be of type Function. Received type ".concat(_typeof(n)));if(!t)throw new TypeError("The event argument must be of type String. Received type ".concat(_typeof(t)));return this._handlers.push({event:t,handler:n}),this;}},{key:"once",value:function once(t,n){return this.on(t,function(l,o,i){var r={fired:false,wrapFn:void 0};function a(){r.fired||(l.off(o,r.wrapFn),r.fired=true,i.bind(l).apply(void 0,arguments));}return r.wrapFn=a,a;}(this,t,n));}},{key:"off",value:function off(t,n){return this._handlers=this._handlers.filter(function(l){return l.event!==t||l.handler!==n;}),this;}},{key:"emit",value:function emit(t){for(var n=arguments.length,l=new Array(n>1?n-1:0),o=1;o<n;o++)l[o-1]=arguments[o];var i=false;return this._handlers.forEach(function(r){r.event==="*"&&(i=true,r.handler.apply(r,[t].concat(l))),r.event===t&&(i=true,r.handler.apply(r,l));}),i;}},{key:"removeAllListeners",value:function removeAllListeners(t){return t?(this._handlers=this._handlers.filter(function(n){return n.event!==t;}),this):(this._handlers=[],this);}},{key:"listenerCount",value:function listenerCount(t){return this._handlers.filter(function(n){return n.event===t;}).length;}},{key:"listeners",value:function listeners(t){return this._handlers.reduce(function(n,l){return l.event===t&&n.push(l.handler),n;},[]);}},{key:"eventNames",value:function eventNames(){return this._handlers.map(function(t){return t.event;});}}]);}();var Qr=0,co=0;var du=function du(e,t){!e||!t||e<=0||t<=0||(co=(co*Qr+8*e/t)/++Qr);},Xg={ERRORCODE:900,extensions:[]},wr="VAST response version not supported";var Fg=/*#__PURE__*/function(_Gg){function Fg(){var _this29;_classCallCheck(this,Fg);var _ref78=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=_ref78.fetcher;_this29=_callSuper(this,Fg),_this29.maxWrapperDepth=null,_this29.rootErrorURLTemplates=[],_this29.errorURLTemplates=[],_this29.remainingAds=[],_this29.parsingOptions={},_this29.fetcher=t||null,_this29.keepFailedAdPod=false;return _this29;}_inherits(Fg,_Gg);return _createClass(Fg,[{key:"trackVastError",value:function trackVastError(t,n){for(var l=arguments.length,o=new Array(l>2?l-2:0),i=2;i<l;i++)o[i-2]=arguments[i];this.emit("VAST-error",Object.assign.apply(Object,[{},Xg,n].concat(o))),Ft.track(t,n);}},{key:"getErrorURLTemplates",value:function getErrorURLTemplates(){return this.rootErrorURLTemplates.concat(this.errorURLTemplates);}},{key:"getEstimatedBitrate",value:function getEstimatedBitrate(){return co;}},{key:"initParsingStatus",value:function initParsingStatus(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.maxWrapperDepth=t.wrapperLimit||10,this.parsingOptions={allowMultipleAds:t.allowMultipleAds},this.keepFailedAdPod=t.keepFailedAdPod||false,this.rootURL="",this.resetParsingStatus(),du(t.byteLength,t.requestDuration);}},{key:"resetParsingStatus",value:function resetParsingStatus(){this.errorURLTemplates=[],this.rootErrorURLTemplates=[],this.vastVersion=null;}},{key:"getRemainingAds",value:function getRemainingAds(t){var _this30=this;if(this.remainingAds.length===0)return Promise.reject(new Error("No more ads are available for the given VAST"));var n=t?this.remainingAds:[this.remainingAds.shift()];return this.errorURLTemplates=[],this.resolveAds(n,{wrapperDepth:0,url:this.rootURL}).then(function(l){return _this30.buildVASTResponse(l);});}},{key:"parseVAST",value:function parseVAST(t){var _this31=this;var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.initParsingStatus(n),n.isRootVAST=true,this.parse(t,n).then(function(l){return _this31.buildVASTResponse(l);});}},{key:"buildVASTResponse",value:function buildVASTResponse(t){var n=function(l){var o=l.ads,i=l.errorURLTemplates,r=l.version;return {ads:o||[],errorURLTemplates:i||[],version:r||null};}({ads:t,errorURLTemplates:this.getErrorURLTemplates(),version:this.vastVersion});return this.completeWrapperResolving(n),n;}},{key:"parseVastXml",value:function parseVastXml(t,n){var _n$isRootVAST=n.isRootVAST,l=_n$isRootVAST===void 0?false:_n$isRootVAST,_n$url=n.url,o=_n$url===void 0?null:_n$url,_n$wrapperDepth=n.wrapperDepth,i=_n$wrapperDepth===void 0?0:_n$wrapperDepth,r=n.allowMultipleAds,a=n.followAdditionalWrappers;if(!t||!t.documentElement||t.documentElement.nodeName!=="VAST"){var s;this.emit("VAST-ad-parsed",{type:"ERROR",url:o,wrapperDepth:i});var h=(t==null||(s=t.documentElement)===null||s===void 0?void 0:s.nodeName)==="VideoAdServingTemplate";throw new Error(h?wr:"Invalid VAST XMLDocument");}var c=[],u=t.documentElement.childNodes,b=t.documentElement.getAttribute("version");l&&b&&(this.vastVersion=b);for(var _h5 in u){var d=u[_h5];if(d.nodeName==="Error"){var m=G$3.parseNodeText(d);l?this.rootErrorURLTemplates.push(m):this.errorURLTemplates.push(m);}else if(d.nodeName==="Ad"){if(this.vastVersion&&parseFloat(this.vastVersion)<3)r=true;else if(r===false&&c.length>1)break;var _m3=Zg(d,this.emit.bind(this),{allowMultipleAds:r,followAdditionalWrappers:a});_m3.ad?(c.push(_m3.ad),this.emit("VAST-ad-parsed",{type:_m3.type,url:o,wrapperDepth:i,adIndex:c.length-1,vastVersion:b})):this.trackVastError(this.getErrorURLTemplates(),{ERRORCODE:101});}}return c;}},{key:"parse",value:function parse(t){var _ref79=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},_ref79$url=_ref79.url,n=_ref79$url===void 0?null:_ref79$url,_ref79$resolveAll=_ref79.resolveAll,l=_ref79$resolveAll===void 0?true:_ref79$resolveAll,_ref79$wrapperSequenc=_ref79.wrapperSequence,o=_ref79$wrapperSequenc===void 0?null:_ref79$wrapperSequenc,_ref79$previousUrl=_ref79.previousUrl,i=_ref79$previousUrl===void 0?null:_ref79$previousUrl,_ref79$wrapperDepth=_ref79.wrapperDepth,r=_ref79$wrapperDepth===void 0?0:_ref79$wrapperDepth,_ref79$isRootVAST=_ref79.isRootVAST,a=_ref79$isRootVAST===void 0?false:_ref79$isRootVAST,s=_ref79.followAdditionalWrappers,c=_ref79.allowMultipleAds,u=[];this.vastVersion&&parseFloat(this.vastVersion)<3&&a&&(c=true);try{u=this.parseVastXml(t,{isRootVAST:a,url:n,wrapperDepth:r,allowMultipleAds:c,followAdditionalWrappers:s});}catch(b){return Promise.reject(b);}if(u.length===1&&o!=null&&(u[0].sequence=o),l===false){var b=G$3.getSortedAdPods(u),h=G$3.getStandAloneAds(u);b.length?u=b:h.length&&(u=[h.shift()]),this.remainingAds=h;}return this.resolveAds(u,{wrapperDepth:r,previousUrl:i,url:n});}},{key:"resolveAds",value:function resolveAds(){var _this32=this;var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],_ref80=arguments.length>1?arguments[1]:void 0,n=_ref80.wrapperDepth,l=_ref80.previousUrl,o=_ref80.url;var i=[];return l=o,t.forEach(function(r){var a=_this32.resolveWrappers(r,n,l);i.push(a);}),Promise.all(i).then(function(r){return Ft.flatten(r);});}},{key:"resolveWrappers",value:function resolveWrappers(t,n,l){var _this33=this;var o=_objectSpread2({},t);return new Promise(function(i){var r;if(n++,!o.nextWrapperURL)return delete o.nextWrapperURL,i(o);if(!_this33.fetcher)return o.VASTAdTagURI=o.nextWrapperURL,delete o.nextWrapperURL,i(o);if(n>=_this33.maxWrapperDepth)return o.errorCode=302,delete o.nextWrapperURL,i(o);o.nextWrapperURL=G$3.resolveVastAdTagURI(o.nextWrapperURL,l);var a=(r=_this33.parsingOptions.allowMultipleAds)!==null&&r!==void 0?r:o.allowMultipleAds,s=o.sequence;_this33.fetcher.fetchVAST({url:o.nextWrapperURL,emitter:_this33.emit.bind(_this33),maxWrapperDepth:_this33.maxWrapperDepth}).then(function(c){return _this33.parse(c,{url:o.nextWrapperURL,previousUrl:l,wrapperSequence:s,wrapperDepth:n,followAdditionalWrappers:o.followAdditionalWrappers,allowMultipleAds:a}).then(function(u){if(delete o.nextWrapperURL,u.length===0)return o.creatives=[],i(o);u.forEach(function(b){b&&G$3.mergeWrapperAdData(b,o);}),i(u);});}).catch(function(c){o.errorCode=c.message===wr?102:301,o.errorMessage=c.message,i(o);});});}},{key:"completeWrapperResolving",value:function completeWrapperResolving(t){if(t.ads.length===0)this.trackVastError(t.errorURLTemplates,{ERRORCODE:303});else for(var n=t.ads.length-1;n>=0;n--){var _l15=t.ads[n],_o23=!_l15.creatives.some(function(i){var r,a;return ((r=i.mediaFiles)===null||r===void 0?void 0:r.length)>0||((a=i.variations)===null||a===void 0?void 0:a.length)>0;});!_l15.errorCode&&!_o23||_l15.VASTAdTagURI||(this.trackVastError(_l15.errorURLTemplates.concat(t.errorURLTemplates),{ERRORCODE:_l15.errorCode||303},{ERRORMESSAGE:_l15.errorMessage||""},{extensions:_l15.extensions},{system:_l15.system}),this.keepFailedAdPod&&_l15.sequence?_l15.hasFailed=true:t.ads.splice(n,1));}}}]);}(Gg);var et=null;var Sg={data:{},length:0,getItem:function getItem(e){return this.data[e];},setItem:function setItem(e,t){this.data[e]=t,this.length=Object.keys(this.data).length;},removeItem:function removeItem(e){delete this.data[e],this.length=Object.keys(this.data).length;},clear:function clear(){this.data={},this.length=0;}};var Ng=/*#__PURE__*/function(){function Ng(){_classCallCheck(this,Ng);this.storage=this.initStorage();}return _createClass(Ng,[{key:"initStorage",value:function initStorage(){if(et)return et;try{et=(typeof window==="undefined"?"undefined":_typeof(window))<"u"&&window!==null?window.localStorage||window.sessionStorage:null;}catch(_unused26){et=null;}return et&&!this.isStorageDisabled(et)||(et=Sg,et.clear()),et;}},{key:"isStorageDisabled",value:function isStorageDisabled(t){var n="__VASTStorage__";try{if(t.setItem(n,n),t.getItem(n)!==n)return t.removeItem(n),!0;}catch(_unused27){return true;}return t.removeItem(n),false;}},{key:"getItem",value:function getItem(t){return this.storage.getItem(t);}},{key:"setItem",value:function setItem(t,n){return this.storage.setItem(t,n);}},{key:"removeItem",value:function removeItem(t){return this.storage.removeItem(t);}},{key:"clear",value:function clear(){return this.storage.clear();}}]);}();var uo=12e4,Ig={get:function(){var _get=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee54(e,t){var n,_l16,_o24,_i42,_t100;return _regenerator().w(function(_context61){while(1)switch(_context61.p=_context61.n){case 0:_context61.p=0;n=new AbortController();_l16=setTimeout(function(){throw n.abort(),new Error("URLHandler: Request timed out after ".concat(t.timeout||uo," ms (408)"));},t.timeout||uo);_context61.n=1;return fetch(e,_objectSpread2(_objectSpread2({},t),{},{signal:n.signal,credentials:t.withCredentials?"include":"omit"})).finally(function(){clearTimeout(_l16);});case 1:_o24=_context61.v;_i42=function(r){return Ft.isBrowserEnvironment()&&window.location.protocol==="https:"&&r.url.includes("http://")?"URLHandler: Cannot go from HTTPS to HTTP.":r.status===200&&r.ok?null:"URLHandler: ".concat(r.statusText," (").concat(r.status,")");}(_o24);return _context61.a(2,_i42?{error:new Error(_i42),statusCode:_o24.status}:function(){var _ref81=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee53(r){var a,s,_t98,_t99;return _regenerator().w(function(_context60){while(1)switch(_context60.n){case 0:_context60.n=1;return r.text();case 1:a=_context60.v;if(!Ft.isBrowserEnvironment()){_context60.n=2;break;}_t98=new DOMParser();_context60.n=4;break;case 2:_context60.n=3;return Promise.resolve().then(function () { return indexD8wyDNJD; }).then(function(c){return c.i;});case 3:_t99=_context60.v.DOMParser;_t98=new _t99();case 4:s=_t98;return _context60.a(2,{xml:s.parseFromString(a,"text/xml"),details:{byteLength:a.length,statusCode:r.status,rawXml:a}});}},_callee53);}));return function(_x87){return _ref81.apply(this,arguments);};}()(_o24));case 2:_context61.p=2;_t100=_context61.v;return _context61.a(2,{error:_t100,statusCode:_t100.name==="AbortError"?408:null});}},_callee54,null,[[0,2]]);}));function get(_x85,_x86){return _get.apply(this,arguments);}return get;}()};var Yg=/*#__PURE__*/function(){function Yg(){_classCallCheck(this,Yg);this.URLTemplateFilters=[];}return _createClass(Yg,[{key:"setOptions",value:function setOptions(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.urlHandler=t.urlHandler||t.urlhandler||Ig,this.fetchingOptions=_objectSpread2(_objectSpread2({},t.fetchOptions),{},{timeout:t.timeout||uo,withCredentials:!!t.withCredentials});}},{key:"addURLTemplateFilter",value:function addURLTemplateFilter(t){typeof t=="function"&&this.URLTemplateFilters.push(t);}},{key:"removeLastURLTemplateFilter",value:function removeLastURLTemplateFilter(){this.URLTemplateFilters.pop();}},{key:"countURLTemplateFilters",value:function countURLTemplateFilters(){return this.URLTemplateFilters.length;}},{key:"clearURLTemplateFilters",value:function clearURLTemplateFilters(){this.URLTemplateFilters=[];}},{key:"fetchVAST",value:function(){var _fetchVAST=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee55(t){var n,l,o,i,_t$wrapperDepth,r,_t$previousUrl,a,_t$wrapperAd,s,c,u,b;return _regenerator().w(function(_context62){while(1)switch(_context62.n){case 0:l=t.url,o=t.maxWrapperDepth,i=t.emitter,_t$wrapperDepth=t.wrapperDepth,r=_t$wrapperDepth===void 0?0:_t$wrapperDepth,_t$previousUrl=t.previousUrl,a=_t$previousUrl===void 0?null:_t$previousUrl,_t$wrapperAd=t.wrapperAd,s=_t$wrapperAd===void 0?null:_t$wrapperAd;c=Date.now();this.URLTemplateFilters.forEach(function(h){l=h(l);}),i("VAST-resolving",{url:l,previousUrl:a,wrapperDepth:r,maxWrapperDepth:o,timeout:this.fetchingOptions.timeout,wrapperAd:s});_context62.n=1;return this.urlHandler.get(l,this.fetchingOptions);case 1:u=_context62.v;b=Math.round(Date.now()-c);if(!(i("VAST-resolved",_objectSpread2({url:l,previousUrl:a,wrapperDepth:r,error:(u===null||u===void 0?void 0:u.error)||null,duration:b,statusCode:(u===null||u===void 0?void 0:u.statusCode)||null},u===null||u===void 0?void 0:u.details)),du(u==null||(n=u.details)===null||n===void 0?void 0:n.byteLength,b),u.error)){_context62.n=2;break;}throw new Error(u.error);case 2:return _context62.a(2,u.xml);}},_callee55,this);}));function fetchVAST(_x88){return _fetchVAST.apply(this,arguments);}return fetchVAST;}()}]);}();var Ug=/*#__PURE__*/function(){function Ug(){_classCallCheck(this,Ug);var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:new Ng();this.cappingFreeLunch=t,this.cappingMinimumTimeInterval=n,this.fetcher=new Yg(),this.vastParser=new Fg({fetcher:this.fetcher}),this.storage=l,this.lastSuccessfulAd===void 0&&(this.lastSuccessfulAd=0),this.totalCalls===void 0&&(this.totalCalls=0),this.totalCallsTimeout===void 0&&(this.totalCallsTimeout=0);}return _createClass(Ug,[{key:"addURLTemplateFilter",value:function addURLTemplateFilter(t){this.fetcher.addURLTemplateFilter(t);}},{key:"removeLastURLTemplateFilter",value:function removeLastURLTemplateFilter(){this.fetcher.removeLastURLTemplateFilter();}},{key:"countURLTemplateFilters",value:function countURLTemplateFilters(){return this.fetcher.countURLTemplateFilters();}},{key:"clearURLTemplateFilters",value:function clearURLTemplateFilters(){this.fetcher.clearURLTemplateFilters();}},{key:"getParser",value:function getParser(){return this.vastParser;}},{key:"lastSuccessfulAd",get:function get(){return this.storage.getItem("vast-client-last-successful-ad");},set:function set(t){this.storage.setItem("vast-client-last-successful-ad",t);}},{key:"totalCalls",get:function get(){return this.storage.getItem("vast-client-total-calls");},set:function set(t){this.storage.setItem("vast-client-total-calls",t);}},{key:"totalCallsTimeout",get:function get(){return this.storage.getItem("vast-client-total-calls-timeout");},set:function set(t){this.storage.setItem("vast-client-total-calls-timeout",t);}},{key:"hasRemainingAds",value:function hasRemainingAds(){return this.vastParser.remainingAds.length>0;}},{key:"getNextAds",value:function getNextAds(t){return this.vastParser.getRemainingAds(t);}},{key:"parseVAST",value:function parseVAST(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.fetcher.setOptions(n),this.vastParser.parseVAST(t,n);}},{key:"get",value:function get(t){var _this34=this;var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};var l=Date.now();return n.hasOwnProperty("resolveAll")||(n.resolveAll=false),this.totalCallsTimeout<l?(this.totalCalls=1,this.totalCallsTimeout=l+36e5):this.totalCalls++,new Promise(function(o,i){if(_this34.cappingFreeLunch>=_this34.totalCalls)return i(new Error("VAST call canceled – FreeLunch capping not reached yet ".concat(_this34.totalCalls,"/").concat(_this34.cappingFreeLunch)));var r=l-_this34.lastSuccessfulAd;if(r<0)_this34.lastSuccessfulAd=0;else if(r<_this34.cappingMinimumTimeInterval)return i(new Error("VAST call canceled – (".concat(_this34.cappingMinimumTimeInterval,")ms minimum interval reached")));_this34.vastParser.initParsingStatus(n),_this34.fetcher.setOptions(n),_this34.vastParser.rootURL=t,_this34.fetcher.fetchVAST({url:t,emitter:_this34.vastParser.emit.bind(_this34.vastParser),maxWrapperDepth:_this34.vastParser.maxWrapperDepth}).then(function(a){return n.previousUrl=t,n.isRootVAST=true,n.url=t,_this34.vastParser.parse(a,n).then(function(s){var c=_this34.vastParser.buildVASTResponse(s);o(c);});}).catch(function(a){return i(a);});});}}]);}();new Ug();ve("ui:gam-static");(_Qg={},_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_Qg,ae.UNSET,he$1.UNSET),ae.INGAME_IAB21,he$1.PROMOTION_INGAME_IAB21),ae.INGAME_IAB21_SIDEBAR,he$1.PROMOTION_INGAME_IAB21),ae.INGAME_IAB11_LBAR,he$1.PROMOTION_INGAME_IAB11_LBAR),ae.INGAME_IAB11,he$1.PROMOTION_INGAME_IAB11),ae.INGAME_IAB11_SIDEBAR,he$1.PROMOTION_INGAME_IAB11),ae.INGAME_IAB21_LBAR,he$1.PROMOTION_INGAME_IAB21_LBAR),ae.INGAME_IAB61,he$1.PROMOTION_INGAME_IAB61),ae.INGAME_IAB61_SIDEBAR,he$1.PROMOTION_INGAME_IAB61),ae.EXTERNAL_AD,he$1.PROMOTION_GAM),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_Qg,ae.VIDEO_SIDE_BY_SIDE,he$1.PROMOTION_VIDEO_SIDE_BY_SIDE),ae.PICTURE_IN_PICTURE,he$1.PROMOTION_PICTURE_IN_PICTURE),ae.LOWER_THIRD,he$1.PROMOTION_LOWER_THIRD),ae.SHOP_LBAR,he$1.PROMOTION_SHOP_LBAR),ae.SHOP_OVERLAY,he$1.PROMOTION_SHOP_OVERLAY),ae.SHOP_SIDEBAR,he$1.PROMOTION_SHOP_SIDEBAR),ae.NFL_SHOP_LBAR,he$1.PROMOTION_SHOP_LBAR),ae.NFL_SHOP_OVERLAY,he$1.PROMOTION_SHOP_OVERLAY),ae.NFL_SHOP_SIDEBAR,he$1.PROMOTION_SHOP_SIDEBAR),ae.STATS,he$1.UNSET),_defineProperty(_defineProperty(_defineProperty(_Qg,ae.STANDARD,he$1.UNSET),ae.SHOP,he$1.UNSET),ae.NFL_SHOP,he$1.UNSET));({25:re$1.AD_VIDEO_Q25,50:re$1.AD_VIDEO_Q50,75:re$1.AD_VIDEO_Q75});_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({},ee.UNSET,ce.UNSET),ee.FACTOID,ce.POLLS_INSIGHT),ee.POLL,ce.POLLS_POLL),ee.PREDICTION,ce.POLLS_PREDICTION),ee.PROMOTION,ce.POLLS_PROMOTION),ee.TRIVIA,ce.POLLS_TRIVIA),ee.TWEET,ce.POLLS_TWITTER);ee.UNSET+"",nt.UNSET,ee.FACTOID+"",nt.POLLS,ee.POLL+"",nt.POLLS,ee.PREDICTION+"",nt.POLLS,ee.PROMOTION+"",nt.POLLS,ee.TRIVIA+"",nt.POLLS,ee.TWEET+"",nt.POLLS;(_zg={},_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_zg,be.UNSET,Ge.UNSET),be.INPLAY,Ge.INPLAY),be.MESSAGING,Ge.MESSAGING),be.STATISTICS,Ge.STATS),be.BETTING,Ge.BETTING),be.TWITTER,Ge.TWITTER),be.MERCHANDISE,Ge.MERCHANDISE),be.CONTESTS,Ge.CONTESTS),be.VOICE_CHAT,Ge.CALLING),be.TICKETS,Ge.TICKETS),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_zg,be.WHOIS_WATCHING,Ge.WHOISWATCHING),be.PROFILE,Ge.PROFILE),be.GAMES,Ge.POLLS),be.GOLF_STATISTICS,Ge.STATS),be.HIGHLIGHTS,Ge.HIGHLIGHTS),be.PUBLIC_CHAT,Ge.PUBLIC_CHAT));ve("analytics");var bu=(typeof globalThis==="undefined"?"undefined":_typeof(globalThis))<"u"?globalThis:(typeof window==="undefined"?"undefined":_typeof(window))<"u"?window:_typeof(Po)<"u"?Po:(typeof self==="undefined"?"undefined":_typeof(self))<"u"?self:{};function Dg(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e;}var Gn={exports:{}},Xn={exports:{}},hl,zr;function jg(){if(zr)return hl;zr=1;function e(t){var n=new t(),l=n;function o(){var r=n;return r.next?n=r.next:(n=new t(),l=n),r.next=null,r;}function i(r){l.next=r,l=r;}return {get:o,release:i};}return hl=e,hl;}var Kr;function hu(){if(Kr)return Xn.exports;Kr=1;var e=jg();function t(i,r,a){if(typeof i=="function"&&(a=r,r=i,i=null),!(a>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");var s=e(l),c=null,u=null,b=0,h=null,d={push:p,drain:n,saturated:n,pause:V,paused:false,get concurrency(){return a;},set concurrency(I){if(!(I>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");if(a=I,!d.paused)for(;c&&b<a;)b++,B();},running:m,resume:R,idle:N,length:Z,getQueue:g,unshift:U,empty:n,kill:J,killAndDrain:E,error:F};return d;function m(){return b;}function V(){d.paused=true;}function Z(){for(var I=c,C=0;I;)I=I.next,C++;return C;}function g(){for(var I=c,C=[];I;)C.push(I.value),I=I.next;return C;}function R(){if(d.paused){if(d.paused=false,c===null){b++,B();return;}for(;c&&b<a;)b++,B();}}function N(){return b===0&&d.length()===0;}function p(I,C){var Y=s.get();Y.context=i,Y.release=B,Y.value=I,Y.callback=C||n,Y.errorHandler=h,b>=a||d.paused?u?(u.next=Y,u=Y):(c=Y,u=Y,d.saturated()):(b++,r.call(i,Y.value,Y.worked));}function U(I,C){var Y=s.get();Y.context=i,Y.release=B,Y.value=I,Y.callback=C||n,Y.errorHandler=h,b>=a||d.paused?c?(Y.next=c,c=Y):(c=Y,u=Y,d.saturated()):(b++,r.call(i,Y.value,Y.worked));}function B(I){I&&s.release(I);var C=c;C&&b<=a?d.paused?b--:(u===c&&(u=null),c=C.next,C.next=null,r.call(i,C.value,C.worked),u===null&&d.empty()):--b===0&&d.drain();}function J(){c=null,u=null,d.drain=n;}function E(){c=null,u=null,d.drain(),d.drain=n;}function F(I){h=I;}}function n(){}function l(){this.value=null,this.callback=n,this.next=null,this.release=n,this.context=null,this.errorHandler=null;var i=this;this.worked=function(r,a){var s=i.callback,c=i.errorHandler,u=i.value;i.value=null,i.callback=n,i.errorHandler&&c(r,u),s.call(i.context,r,a),i.release(i);};}function o(i,r,a){typeof i=="function"&&(a=r,r=i,i=null);function s(V,Z){r.call(this,V).then(function(g){Z(null,g);},Z);}var c=t(i,s,a),u=c.push,b=c.unshift;return c.push=h,c.unshift=d,c.drained=m,c;function h(V){var Z=new Promise(function(g,R){u(V,function(N,p){if(N){R(N);return;}g(p);});});return Z.catch(n),Z;}function d(V){var Z=new Promise(function(g,R){b(V,function(N,p){if(N){R(N);return;}g(p);});});return Z.catch(n),Z;}function m(){if(c.idle())return new Promise(function(g){g();});var V=c.drain,Z=new Promise(function(g){c.drain=function(){V(),g();};});return Z;}}return Xn.exports=t,Xn.exports.promise=o,Xn.exports;}var Fn={exports:{}},xr;function mu(){if(xr)return Fn.exports;xr=1;var e=(typeof Reflect==="undefined"?"undefined":_typeof(Reflect))=="object"?Reflect:null,t=e&&typeof e.apply=="function"?e.apply:function(p,U,B){return Function.prototype.apply.call(p,U,B);},n;e&&typeof e.ownKeys=="function"?n=e.ownKeys:Object.getOwnPropertySymbols?n=function n(p){return Object.getOwnPropertyNames(p).concat(Object.getOwnPropertySymbols(p));}:n=function n(p){return Object.getOwnPropertyNames(p);};function l(p){console&&console.warn&&console.warn(p);}var o=Number.isNaN||function(p){return p!==p;};function i(){i.init.call(this);}Fn.exports=i,Fn.exports.once=g,i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var r=10;function a(p){if(typeof p!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+_typeof(p));}Object.defineProperty(i,"defaultMaxListeners",{enumerable:true,get:function get(){return r;},set:function set(p){if(typeof p!="number"||p<0||o(p))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+p+".");r=p;}}),i.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=/* @__PURE__ */Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0;},i.prototype.setMaxListeners=function(p){if(typeof p!="number"||p<0||o(p))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+p+".");return this._maxListeners=p,this;};function s(p){return p._maxListeners===void 0?i.defaultMaxListeners:p._maxListeners;}i.prototype.getMaxListeners=function(){return s(this);},i.prototype.emit=function(p){for(var U=[],B=1;B<arguments.length;B++)U.push(arguments[B]);var J=p==="error",E=this._events;if(E!==void 0)J=J&&E.error===void 0;else if(!J)return false;if(J){var F;if(U.length>0&&(F=U[0]),F instanceof Error)throw F;var I=new Error("Unhandled error."+(F?" ("+F.message+")":""));throw I.context=F,I;}var C=E[p];if(C===void 0)return false;if(typeof C=="function")t(C,this,U);else for(var Y=C.length,K=m(C,Y),B=0;B<Y;++B)t(K[B],this,U);return true;};function c(p,U,B,J){var E,F,I;if(a(B),F=p._events,F===void 0?(F=p._events=/* @__PURE__ */Object.create(null),p._eventsCount=0):(F.newListener!==void 0&&(p.emit("newListener",U,B.listener?B.listener:B),F=p._events),I=F[U]),I===void 0)I=F[U]=B,++p._eventsCount;else if(typeof I=="function"?I=F[U]=J?[B,I]:[I,B]:J?I.unshift(B):I.push(B),E=s(p),E>0&&I.length>E&&!I.warned){I.warned=true;var C=new Error("Possible EventEmitter memory leak detected. "+I.length+" "+String(U)+" listeners added. Use emitter.setMaxListeners() to increase limit");C.name="MaxListenersExceededWarning",C.emitter=p,C.type=U,C.count=I.length,l(C);}return p;}i.prototype.addListener=function(p,U){return c(this,p,U,false);},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(p,U){return c(this,p,U,true);};function u(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=true,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments);}function b(p,U,B){var J={fired:false,wrapFn:void 0,target:p,type:U,listener:B},E=u.bind(J);return E.listener=B,J.wrapFn=E,E;}i.prototype.once=function(p,U){return a(U),this.on(p,b(this,p,U)),this;},i.prototype.prependOnceListener=function(p,U){return a(U),this.prependListener(p,b(this,p,U)),this;},i.prototype.removeListener=function(p,U){var B,J,E,F,I;if(a(U),J=this._events,J===void 0)return this;if(B=J[p],B===void 0)return this;if(B===U||B.listener===U)--this._eventsCount===0?this._events=/* @__PURE__ */Object.create(null):(delete J[p],J.removeListener&&this.emit("removeListener",p,B.listener||U));else if(typeof B!="function"){for(E=-1,F=B.length-1;F>=0;F--)if(B[F]===U||B[F].listener===U){I=B[F].listener,E=F;break;}if(E<0)return this;E===0?B.shift():V(B,E),B.length===1&&(J[p]=B[0]),J.removeListener!==void 0&&this.emit("removeListener",p,I||U);}return this;},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(p){var U,B,J;if(B=this._events,B===void 0)return this;if(B.removeListener===void 0)return arguments.length===0?(this._events=/* @__PURE__ */Object.create(null),this._eventsCount=0):B[p]!==void 0&&(--this._eventsCount===0?this._events=/* @__PURE__ */Object.create(null):delete B[p]),this;if(arguments.length===0){var E=Object.keys(B),F;for(J=0;J<E.length;++J)F=E[J],F!=="removeListener"&&this.removeAllListeners(F);return this.removeAllListeners("removeListener"),this._events=/* @__PURE__ */Object.create(null),this._eventsCount=0,this;}if(U=B[p],typeof U=="function")this.removeListener(p,U);else if(U!==void 0)for(J=U.length-1;J>=0;J--)this.removeListener(p,U[J]);return this;};function h(p,U,B){var J=p._events;if(J===void 0)return [];var E=J[U];return E===void 0?[]:typeof E=="function"?B?[E.listener||E]:[E]:B?Z(E):m(E,E.length);}i.prototype.listeners=function(p){return h(this,p,true);},i.prototype.rawListeners=function(p){return h(this,p,false);},i.listenerCount=function(p,U){return typeof p.listenerCount=="function"?p.listenerCount(U):d.call(p,U);},i.prototype.listenerCount=d;function d(p){var U=this._events;if(U!==void 0){var B=U[p];if(typeof B=="function")return 1;if(B!==void 0)return B.length;}return 0;}i.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[];};function m(p,U){for(var B=new Array(U),J=0;J<U;++J)B[J]=p[J];return B;}function V(p,U){for(;U+1<p.length;U++)p[U]=p[U+1];p.pop();}function Z(p){for(var U=new Array(p.length),B=0;B<U.length;++B)U[B]=p[B].listener||p[B];return U;}function g(p,U){return new Promise(function(B,J){function E(I){p.removeListener(U,F),J(I);}function F(){typeof p.removeListener=="function"&&p.removeListener("error",E),B([].slice.call(arguments));}N(p,U,F,{once:true}),U!=="error"&&R(p,E,{once:true});});}function R(p,U,B){typeof p.on=="function"&&N(p,"error",U,B);}function N(p,U,B,J){if(typeof p.on=="function")J.once?p.once(U,B):p.on(U,B);else if(typeof p.addEventListener=="function")p.addEventListener(U,function E(F){J.once&&p.removeEventListener(U,E),B(F);});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+_typeof(p));}return Fn.exports;}var Mr={},Hr={},Or,Dr;function Vu(){return Dr||(Dr=1,Or=function Or(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return false;if(_typeof(Symbol.iterator)=="symbol")return true;var e={},t=/* @__PURE__ */Symbol("test"),n=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return false;var l=42;e[t]=l;for(var o in e)return false;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return false;var i=Object.getOwnPropertySymbols(e);if(i.length!==1||i[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return false;if(typeof Object.getOwnPropertyDescriptor=="function"){var r=/** @type {PropertyDescriptor} */Object.getOwnPropertyDescriptor(e,t);if(r.value!==l||r.enumerable!==true)return false;}return true;}),Or;}var ml,jr;function jn(){if(jr)return ml;jr=1;var e=Vu();return ml=function ml(){return e()&&!!Symbol.toStringTag;},ml;}var Pr,_r;function gu(){return _r||(_r=1,Pr=Object),Pr;}var qr,$r;function Pg(){return $r||($r=1,qr=Error),qr;}var ea,ta;function _g(){return ta||(ta=1,ea=EvalError),ea;}var na,la;function qg(){return la||(la=1,na=RangeError),na;}var oa,ia;function $g(){return ia||(ia=1,oa=ReferenceError),oa;}var ra,aa;function Au(){return aa||(aa=1,ra=SyntaxError),ra;}var sa,ca;function bn(){return ca||(ca=1,sa=TypeError),sa;}var ua,da;function eA(){return da||(da=1,ua=URIError),ua;}var ba,ha;function tA(){return ha||(ha=1,ba=Math.abs),ba;}var ma,Va;function nA(){return Va||(Va=1,ma=Math.floor),ma;}var ga,Aa;function lA(){return Aa||(Aa=1,ga=Math.max),ga;}var Ra,pa;function oA(){return pa||(pa=1,Ra=Math.min),Ra;}var Ea,Wa;function iA(){return Wa||(Wa=1,Ea=Math.pow),Ea;}var Za,fa;function rA(){return fa||(fa=1,Za=Math.round),Za;}var ya,Ga;function aA(){return Ga||(Ga=1,ya=Number.isNaN||function(e){return e!==e;}),ya;}var Vl,Xa;function sA(){if(Xa)return Vl;Xa=1;var e=/* @__PURE__ */aA();return Vl=function Vl(t){return e(t)||t===0?t:t<0?-1:1;},Vl;}var Fa,Sa;function cA(){return Sa||(Sa=1,Fa=Object.getOwnPropertyDescriptor),Fa;}var gl,Na;function Ht(){if(Na)return gl;Na=1;var e=/* @__PURE__ */cA();if(e)try{e([],"length");}catch(_unused28){e=null;}return gl=e,gl;}var Al,Ia;function Pn(){if(Ia)return Al;Ia=1;var e=Object.defineProperty||false;if(e)try{e({},"a",{value:1});}catch(_unused29){e=false;}return Al=e,Al;}var Rl,Ya;function uA(){if(Ya)return Rl;Ya=1;var e=(typeof Symbol==="undefined"?"undefined":_typeof(Symbol))<"u"&&Symbol,t=Vu();return Rl=function Rl(){return typeof e!="function"||typeof Symbol!="function"||_typeof(e("foo"))!="symbol"||_typeof(/* @__PURE__ */Symbol("bar"))!="symbol"?false:t();},Rl;}var Ua,Ba;function Ru(){return Ba||(Ba=1,Ua=(typeof Reflect==="undefined"?"undefined":_typeof(Reflect))<"u"&&Reflect.getPrototypeOf||null),Ua;}var pl,Ca;function pu(){if(Ca)return pl;Ca=1;var e=/* @__PURE__ */gu();return pl=e.getPrototypeOf||null,pl;}var El,Ja;function dA(){if(Ja)return El;Ja=1;var e="Function.prototype.bind called on incompatible ",t=Object.prototype.toString,n=Math.max,l="[object Function]",o=function o(a,s){for(var c=[],u=0;u<a.length;u+=1)c[u]=a[u];for(var b=0;b<s.length;b+=1)c[b+a.length]=s[b];return c;},i=function i(a,s){for(var c=[],u=s,b=0;u<a.length;u+=1,b+=1)c[b]=a[u];return c;},r=function r(a,s){for(var c="",u=0;u<a.length;u+=1)c+=a[u],u+1<a.length&&(c+=s);return c;};return El=function El(a){var s=this;if(typeof s!="function"||t.apply(s)!==l)throw new TypeError(e+s);for(var c=i(arguments,1),u,b=function b(){if(this instanceof u){var Z=s.apply(this,o(c,arguments));return Object(Z)===Z?Z:this;}return s.apply(a,o(c,arguments));},h=n(0,s.length-c.length),d=[],m=0;m<h;m++)d[m]="$"+m;if(u=Function("binder","return function ("+r(d,",")+"){ return binder.apply(this,arguments); }")(b),s.prototype){var V=function V(){};V.prototype=s.prototype,u.prototype=new V(),V.prototype=null;}return u;},El;}var Wl,va;function hn(){if(va)return Wl;va=1;var e=dA();return Wl=Function.prototype.bind||e,Wl;}var Ta,ka;function xo(){return ka||(ka=1,Ta=Function.prototype.call),Ta;}var Qa,wa;function Mo(){return wa||(wa=1,Qa=Function.prototype.apply),Qa;}var La,za;function bA(){return za||(za=1,La=(typeof Reflect==="undefined"?"undefined":_typeof(Reflect))<"u"&&Reflect&&Reflect.apply),La;}var Zl,Ka;function Eu(){if(Ka)return Zl;Ka=1;var e=hn(),t=Mo(),n=xo(),l=bA();return Zl=l||e.call(n,t),Zl;}var fl,xa;function Ho(){if(xa)return fl;xa=1;var e=hn(),t=/* @__PURE__ */bn(),n=xo(),l=Eu();return fl=function fl(o){if(o.length<1||typeof o[0]!="function")throw new t("a function is required");return l(e,n,o);},fl;}var yl,Ma;function hA(){if(Ma)return yl;Ma=1;var e=Ho(),t=/* @__PURE__ */Ht(),n;try{n=/** @type {{ __proto__?: typeof Array.prototype }} */[].__proto__===Array.prototype;}catch(r){if(!r||_typeof(r)!="object"||!("code"in r)||r.code!=="ERR_PROTO_ACCESS")throw r;}var l=!!n&&t&&t(Object.prototype,/** @type {keyof typeof Object.prototype} */"__proto__"),o=Object,i=o.getPrototypeOf;return yl=l&&typeof l.get=="function"?e([l.get]):typeof i=="function"?(/** @type {import('./get')} */function(r){return i(r==null?r:o(r));}):false,yl;}var Gl,Ha;function Oo(){if(Ha)return Gl;Ha=1;var e=Ru(),t=pu(),n=/* @__PURE__ */hA();return Gl=e?function(l){return e(l);}:t?function(l){if(!l||_typeof(l)!="object"&&typeof l!="function")throw new TypeError("getProto: not an object");return t(l);}:n?function(l){return n(l);}:null,Gl;}var Xl,Oa;function Wu(){if(Oa)return Xl;Oa=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,n=hn();return Xl=n.call(e,t),Xl;}var Fl,Da;function Do(){if(Da)return Fl;Da=1;var e,t=/* @__PURE__ */gu(),n=/* @__PURE__ */Pg(),l=/* @__PURE__ */_g(),o=/* @__PURE__ */qg(),i=/* @__PURE__ */$g(),r=/* @__PURE__ */Au(),a=/* @__PURE__ */bn(),s=/* @__PURE__ */eA(),c=/* @__PURE__ */tA(),u=/* @__PURE__ */nA(),b=/* @__PURE__ */lA(),h=/* @__PURE__ */oA(),d=/* @__PURE__ */iA(),m=/* @__PURE__ */rA(),V=/* @__PURE__ */sA(),Z=Function,g=function g(L){try{return Z('"use strict"; return ('+L+").constructor;")();}catch(_unused30){}},R=/* @__PURE__ */Ht(),N=/* @__PURE__ */Pn(),p=function p(){throw new a();},U=R?function(){try{return arguments.callee,p;}catch(_unused31){try{return R(arguments,"callee").get;}catch(_unused32){return p;}}}():p,B=uA()(),J=Oo(),E=pu(),F=Ru(),I=Mo(),C=xo(),Y={},K=(typeof Uint8Array==="undefined"?"undefined":_typeof(Uint8Array))>"u"||!J?e:J(Uint8Array),$={__proto__:null,"%AggregateError%":(typeof AggregateError==="undefined"?"undefined":_typeof(AggregateError))>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":(typeof ArrayBuffer==="undefined"?"undefined":_typeof(ArrayBuffer))>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":B&&J?J([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":Y,"%AsyncGenerator%":Y,"%AsyncGeneratorFunction%":Y,"%AsyncIteratorPrototype%":Y,"%Atomics%":(typeof Atomics==="undefined"?"undefined":_typeof(Atomics))>"u"?e:Atomics,"%BigInt%":(typeof BigInt==="undefined"?"undefined":_typeof(BigInt))>"u"?e:BigInt,"%BigInt64Array%":(typeof BigInt64Array==="undefined"?"undefined":_typeof(BigInt64Array))>"u"?e:BigInt64Array,"%BigUint64Array%":(typeof BigUint64Array==="undefined"?"undefined":_typeof(BigUint64Array))>"u"?e:BigUint64Array,"%Boolean%":Boolean,"%DataView%":(typeof DataView==="undefined"?"undefined":_typeof(DataView))>"u"?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":n,"%eval%":eval,// eslint-disable-line no-eval
|
|
705
|
+
_defineProperty(_this14,"setExternalToken",function(t){_this14.write(lt$1.EXTERNAL_TOKEN,t);});_defineProperty(_this14,"getExternalToken",function(){return _this14.read(lt$1.EXTERNAL_TOKEN);});_defineProperty(_this14,"removeToken",function(){_this14.remove(lt$1.TOKEN);});return _this14;}_inherits(Bt,_Mt2);return _createClass(Bt);}(Mt);var it$1;(function(e){e.DISABLED="disabled",e.INITIALIZATION="initialization",e.READY="ready",e.FAILED="failed",e.SUSPENDED="suspended";})(it$1||(it$1={}));var Ct;(function(e){e.SHOWED="showed",e.EVENT="ev";})(Ct||(Ct={}));var Me;(function(e){e.ONBOARDING="onboarding",e.ONBOARDING_IO="onboarding_io",e.QUESTION_RECEIVED="q-received",e.QUESTION_OPENED="q-opened";})(Me||(Me={}));var Rt;(function(e){e.ALLOWED="allowed",e.DISALLOWED="disallowed";})(Rt||(Rt={}));var Ln;(function(e){e.OPENED="opened";})(Ln||(Ln={}));var xt;(function(e){e.UNKNOWN="unknown",e.ALREADY_VOTED="already_voted";})(xt||(xt={}));ve("deep_link");ve("bypass");new Bt();ve("video_player");_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({},ee.FACTOID,"insight"),ee.POLL,"poll"),ee.TRIVIA,"trivia"),ee.PREDICTION,"prediction"),ee.TWEET,"tweet");var fe;(function(e){e.Unset="unset",e.Required="required",e.Optional="optional",e.Completed="completed",e.Disabled="disabled",e.Unavailable="unavailable";})(fe||(fe={}));/* @__PURE__ */new Set([ee.POLL,ee.PREDICTION,ee.TRIVIA]);_defineProperty({},be.GAMES,true);function Ko(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return {id:e.id||null,adId:e.adId||null,sequence:e.sequence||null,apiFramework:e.apiFramework||null,universalAdIds:[],creativeExtensions:[]};}var Vg=["ADCATEGORIES","ADCOUNT","ADPLAYHEAD","ADSERVINGID","ADTYPE","APIFRAMEWORKS","APPBUNDLE","ASSETURI","BLOCKEDADCATEGORIES","BREAKMAXADLENGTH","BREAKMAXADS","BREAKMAXDURATION","BREAKMINADLENGTH","BREAKMINDURATION","BREAKPOSITION","CLICKPOS","CLICKTYPE","CLIENTUA","CONTENTID","CONTENTPLAYHEAD","CONTENTURI","DEVICEIP","DEVICEUA","DOMAIN","EXTENSIONS","GDPRCONSENT","IFA","IFATYPE","INVENTORYSTATE","LATLONG","LIMITADTRACKING","MEDIAMIME","MEDIAPLAYHEAD","OMIDPARTNER","PAGEURL","PLACEMENTTYPE","PLAYERCAPABILITIES","PLAYERSIZE","PLAYERSTATE","PODSEQUENCE","REGULATIONS","SERVERSIDE","SERVERUA","TRANSACTIONID","UNIVERSALADID","VASTVERSIONS","VERIFICATIONVENDORS"];function Nr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var l=[],o=iu(e);!t.ERRORCODE||n.isCustomCode||/^[0-9]{3}$/.test(t.ERRORCODE)||(t.ERRORCODE=900),t.CACHEBUSTING=su(Math.round(1e8*Math.random())),t.TIMESTAMP=(/* @__PURE__ */new Date()).toISOString(),t.RANDOM=t.random=t.CACHEBUSTING;for(var _i34 in t)t[_i34]=au(t[_i34]);for(var _i35 in o){var r=o[_i35];typeof r=="string"&&l.push(ou(r,t));}return l;}function ou(e,t){var n=(e=Ir(e,t)).match(/[^[\]]+(?=])/g);if(!n)return e;var l=n.filter(function(o){return Vg.indexOf(o)>-1;});return l.length===0?e:(l=l.reduce(function(o,i){return o[i]=-1,o;},{}),Ir(e,l));}function Ir(e,t){var n=e;for(var _l13 in t){var _o21=t[_l13];n=n.replace(new RegExp("(?:\\[|%%)(".concat(_l13,")(?:\\]|%%)"),"g"),_o21);}return n;}function iu(e){return Array.isArray(e)?e.map(function(t){return t&&t.hasOwnProperty("url")?t.url:t;}):e;}function Yr(e){return /^(https?:\/\/|\/\/)/.test(e);}function Ur(e,t){for(var n=0;n<t.length;n++)if(ru(t[n],e))return true;return false;}function ru(e,t){if(e&&t){var n=Object.getOwnPropertyNames(e),_l14=Object.getOwnPropertyNames(t);return n.length===_l14.length&&e.id===t.id&&e.url===t.url;}return false;}function au(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(t){return "%".concat(t.charCodeAt(0).toString(16));});}function su(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:8;return e.toString().padStart(t,"0");}var Ft={track:function track(e,t,n){Nr(e,t,n).forEach(function(l){(typeof window==="undefined"?"undefined":_typeof(window))<"u"&&window!==null&&(new Image().src=l);});},resolveURLTemplates:Nr,extractURLsFromTemplates:iu,filterUrlTemplates:function filterUrlTemplates(e){return e.reduce(function(t,n){var l=n.url||n;return Yr(l)?t.validUrls.push(l):t.invalidUrls.push(l),t;},{validUrls:[],invalidUrls:[]});},containsTemplateObject:Ur,isTemplateObjectEqual:ru,encodeURIComponentRFC3986:au,replaceUrlMacros:ou,isNumeric:function isNumeric(e){return !isNaN(parseFloat(e))&&isFinite(e);},flatten:function e(t){return t.reduce(function(n,l){return n.concat(Array.isArray(l)?e(l):l);},[]);},joinArrayOfUniqueTemplateObjs:function joinArrayOfUniqueTemplateObjs(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];var n=Array.isArray(e)?e:[],l=Array.isArray(t)?t:[];return n.concat(l).reduce(function(o,i){return Ur(i,o)||o.push(i),o;},[]);},isValidTimeValue:function isValidTimeValue(e){return Number.isFinite(e)&&e>=-2;},addLeadingZeros:su,isValidUrl:Yr,isBrowserEnvironment:function isBrowserEnvironment(){return (typeof window==="undefined"?"undefined":_typeof(window))<"u";},formatMacrosValues:function formatMacrosValues(e){return _typeof(e)!="object"?e:JSON.stringify(e);}};function Br(e){return ["true","TRUE","True","1"].includes(e);}function gg(e){if(e==null)return -1;if(Ft.isNumeric(e))return parseInt(e);var t=e.split(":");if(t.length!==3)return -1;var n=t[2].split(".");var l=parseInt(n[0]);n.length===2&&(l+=parseFloat("0.".concat(n[1])));var o=parseInt(60*t[1]),i=parseInt(60*t[0]*60);return isNaN(i)||isNaN(o)||isNaN(l)||o>3600||l>60?-1:i+o+l;}var G$4={childByName:function childByName(e,t){return Array.from(e.childNodes).find(function(n){return n.nodeName===t;});},childrenByName:function childrenByName(e,t){return Array.from(e.childNodes).filter(function(n){return n.nodeName===t;});},resolveVastAdTagURI:function resolveVastAdTagURI(e,t){if(!t)return e;if(e.startsWith("//")){var _location=location,n=_location.protocol;return "".concat(n).concat(e);}if(!e.includes("://")){var _n16=t.slice(0,t.lastIndexOf("/"));return "".concat(_n16,"/").concat(e);}return e;},parseBoolean:Br,parseNodeText:function parseNodeText(e){return e&&(e.textContent||e.text||"").trim();},copyNodeAttribute:function copyNodeAttribute(e,t,n){var l=t.getAttribute(e);l&&n.setAttribute(e,l);},parseAttributes:function parseAttributes(e){return Array.from(e.attributes).reduce(function(t,n){return t[n.nodeName]=n.nodeValue,t;},{});},parseDuration:gg,getStandAloneAds:function getStandAloneAds(){return (arguments.length>0&&arguments[0]!==void 0?arguments[0]:[]).filter(function(e){return !parseInt(e.sequence,10);});},getSortedAdPods:function getSortedAdPods(){return (arguments.length>0&&arguments[0]!==void 0?arguments[0]:[]).filter(function(e){return parseInt(e.sequence,10);}).sort(function(e,t){return e.sequence-t.sequence;});},assignAttributes:function assignAttributes(e,t){e&&Array.from(e).forEach(function(n){var l=n.nodeName,o=n.nodeValue;if(l&&o&&t.hasOwnProperty(l)){var _i36=o;typeof t[l]=="boolean"&&(_i36=Br(_i36)),t[l]=_i36;}});},mergeWrapperAdData:function mergeWrapperAdData(e,t){var n;e.errorURLTemplates=t.errorURLTemplates.concat(e.errorURLTemplates),e.impressionURLTemplates=t.impressionURLTemplates.concat(e.impressionURLTemplates),e.extensions=t.extensions.concat(e.extensions),t.viewableImpression.length>0&&(e.viewableImpression=[].concat(_toConsumableArray(e.viewableImpression),_toConsumableArray(t.viewableImpression))),e.followAdditionalWrappers=t.followAdditionalWrappers,e.allowMultipleAds=t.allowMultipleAds,e.fallbackOnNoAd=t.fallbackOnNoAd;var l=(t.creatives||[]).filter(function(a){return a&&a.type==="companion";}),o=l.reduce(function(a,s){return (s.variations||[]).forEach(function(c){(c.companionClickTrackingURLTemplates||[]).forEach(function(u){Ft.containsTemplateObject(u,a)||a.push(u);});}),a;},[]);e.creatives=l.concat(e.creatives);var i=t.videoClickTrackingURLTemplates&&t.videoClickTrackingURLTemplates.length,r=t.videoCustomClickURLTemplates&&t.videoCustomClickURLTemplates.length;if(e.creatives.forEach(function(a){if(t.trackingEvents&&t.trackingEvents[a.type])for(var s in t.trackingEvents[a.type]){var _c0=t.trackingEvents[a.type][s];Array.isArray(a.trackingEvents[s])||(a.trackingEvents[s]=[]),a.trackingEvents[s]=a.trackingEvents[s].concat(_c0);}a.type==="linear"&&(i&&(a.videoClickTrackingURLTemplates=a.videoClickTrackingURLTemplates.concat(t.videoClickTrackingURLTemplates)),r&&(a.videoCustomClickURLTemplates=a.videoCustomClickURLTemplates.concat(t.videoCustomClickURLTemplates)),!t.videoClickThroughURLTemplate||a.videoClickThroughURLTemplate!==null&&a.videoClickThroughURLTemplate!==void 0||(a.videoClickThroughURLTemplate=t.videoClickThroughURLTemplate)),a.type==="companion"&&o.length&&(a.variations||[]).forEach(function(s){s.companionClickTrackingURLTemplates=Ft.joinArrayOfUniqueTemplateObjs(s.companionClickTrackingURLTemplates,o);});}),t.adVerifications&&(e.adVerifications=e.adVerifications.concat(t.adVerifications)),t.blockedAdCategories&&(e.blockedAdCategories=e.blockedAdCategories.concat(t.blockedAdCategories)),(n=t.creatives)!==null&&n!==void 0&&n.length){var a=t.creatives.filter(function(s){var c;return ((c=s.icons)===null||c===void 0?void 0:c.length)&&!s.mediaFiles.length;});a.length&&(e.creatives=e.creatives.concat(a));}}};function Ag(e,t){var n=function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};var _Ko=Ko(l),o=_Ko.id,i=_Ko.adId,r=_Ko.sequence,a=_Ko.apiFramework;return {id:o,adId:i,sequence:r,apiFramework:a,type:"companion",required:null,variations:[]};}(t);return n.required=e.getAttribute("required")||null,n.variations=G$4.childrenByName(e,"Companion").map(function(l){var o=function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return {id:a.id||null,adType:"companionAd",width:a.width||0,height:a.height||0,assetWidth:a.assetWidth||null,assetHeight:a.assetHeight||null,expandedWidth:a.expandedWidth||null,expandedHeight:a.expandedHeight||null,apiFramework:a.apiFramework||null,adSlotId:a.adSlotId||null,pxratio:a.pxratio||"1",renderingMode:a.renderingMode||"default",staticResources:[],htmlResources:[],iframeResources:[],adParameters:null,altText:null,companionClickThroughURLTemplate:null,companionClickTrackingURLTemplates:[],trackingEvents:{}};}(G$4.parseAttributes(l));o.htmlResources=G$4.childrenByName(l,"HTMLResource").reduce(function(a,s){var c=G$4.parseNodeText(s);return c?a.concat(c):a;},[]),o.iframeResources=G$4.childrenByName(l,"IFrameResource").reduce(function(a,s){var c=G$4.parseNodeText(s);return c?a.concat(c):a;},[]),o.staticResources=G$4.childrenByName(l,"StaticResource").reduce(function(a,s){var c=G$4.parseNodeText(s);return c?a.concat({url:c,creativeType:s.getAttribute("creativeType")||null}):a;},[]),o.altText=G$4.parseNodeText(G$4.childByName(l,"AltText"))||null;var i=G$4.childByName(l,"TrackingEvents");i&&G$4.childrenByName(i,"Tracking").forEach(function(a){var s=a.getAttribute("event"),c=G$4.parseNodeText(a);s&&c&&(Array.isArray(o.trackingEvents[s])||(o.trackingEvents[s]=[]),o.trackingEvents[s].push(c));}),o.companionClickTrackingURLTemplates=G$4.childrenByName(l,"CompanionClickTracking").map(function(a){return {id:a.getAttribute("id")||null,url:G$4.parseNodeText(a)};}),o.companionClickThroughURLTemplate=G$4.parseNodeText(G$4.childByName(l,"CompanionClickThrough"))||null;var r=G$4.childByName(l,"AdParameters");return r&&(o.adParameters={value:G$4.parseNodeText(r),xmlEncoded:r.getAttribute("xmlEncoded")||null}),o;}),n;}function Rg(e,t){var n;var l=function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};var _Ko2=Ko(s),c=_Ko2.id,u=_Ko2.adId,b=_Ko2.sequence,h=_Ko2.apiFramework;return {id:c,adId:u,sequence:b,apiFramework:h,type:"linear",duration:0,skipDelay:null,mediaFiles:[],mezzanine:null,interactiveCreativeFile:null,closedCaptionFiles:[],videoClickThroughURLTemplate:null,videoClickTrackingURLTemplates:[],videoCustomClickURLTemplates:[],adParameters:null,icons:[],trackingEvents:{}};}(t);l.duration=G$4.parseDuration(G$4.parseNodeText(G$4.childByName(e,"Duration")));var o=e.getAttribute("skipoffset");if(o==null)l.skipDelay=null;else if(o.charAt(o.length-1)==="%"&&l.duration!==-1){var s=parseInt(o,10);l.skipDelay=l.duration*(s/100);}else l.skipDelay=G$4.parseDuration(o);var i=G$4.childByName(e,"VideoClicks");if(i){var _s7=G$4.childByName(i,"ClickThrough");l.videoClickThroughURLTemplate=_s7?{id:_s7.getAttribute("id")||null,url:G$4.parseNodeText(_s7)}:null,G$4.childrenByName(i,"ClickTracking").forEach(function(c){l.videoClickTrackingURLTemplates.push({id:c.getAttribute("id")||null,url:G$4.parseNodeText(c)});}),G$4.childrenByName(i,"CustomClick").forEach(function(c){l.videoCustomClickURLTemplates.push({id:c.getAttribute("id")||null,url:G$4.parseNodeText(c)});});}var r=G$4.childByName(e,"AdParameters");r&&(l.adParameters={value:G$4.parseNodeText(r),xmlEncoded:r.getAttribute("xmlEncoded")||null}),G$4.childrenByName(e,"TrackingEvents").forEach(function(s){G$4.childrenByName(s,"Tracking").forEach(function(c){var u=c.getAttribute("event");var b=G$4.parseNodeText(c);if(u&&b){if(u==="progress"){if(n=c.getAttribute("offset"),!n)return;u=n.charAt(n.length-1)==="%"?"progress-".concat(n):"progress-".concat(G$4.parseDuration(n));}Array.isArray(l.trackingEvents[u])||(l.trackingEvents[u]=[]),l.trackingEvents[u].push(b);}});}),G$4.childrenByName(e,"MediaFiles").forEach(function(s){G$4.childrenByName(s,"MediaFile").forEach(function(d){l.mediaFiles.push(function(m){var V={id:null,fileURL:null,fileSize:0,deliveryType:"progressive",mimeType:null,mediaType:null,codec:null,bitrate:0,minBitrate:0,maxBitrate:0,width:0,height:0,apiFramework:null,scalable:null,maintainAspectRatio:null};V.id=m.getAttribute("id"),V.fileURL=G$4.parseNodeText(m),V.deliveryType=m.getAttribute("delivery"),V.codec=m.getAttribute("codec"),V.mimeType=m.getAttribute("type"),V.mediaType=m.getAttribute("mediaType")||"2D",V.apiFramework=m.getAttribute("apiFramework"),V.fileSize=parseInt(m.getAttribute("fileSize")||0),V.bitrate=parseInt(m.getAttribute("bitrate")||0),V.minBitrate=parseInt(m.getAttribute("minBitrate")||0),V.maxBitrate=parseInt(m.getAttribute("maxBitrate")||0),V.width=parseInt(m.getAttribute("width")||0),V.height=parseInt(m.getAttribute("height")||0);var Z=m.getAttribute("scalable");Z&&typeof Z=="string"&&(V.scalable=G$4.parseBoolean(Z));var g=m.getAttribute("maintainAspectRatio");return g&&typeof g=="string"&&(V.maintainAspectRatio=G$4.parseBoolean(g)),V;}(d));});var c=G$4.childByName(s,"InteractiveCreativeFile");c&&(l.interactiveCreativeFile=function(d){var m=function(){var V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return {type:V.type||null,apiFramework:V.apiFramework||null,variableDuration:G$4.parseBoolean(V.variableDuration),fileURL:null};}(G$4.parseAttributes(d));return m.fileURL=G$4.parseNodeText(d),m;}(c));var u=G$4.childByName(s,"ClosedCaptionFiles");u&&G$4.childrenByName(u,"ClosedCaptionFile").forEach(function(d){var m=function(){var V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return {type:V.type||null,language:V.language||null,fileURL:null};}(G$4.parseAttributes(d));m.fileURL=G$4.parseNodeText(d),l.closedCaptionFiles.push(m);});var b=G$4.childByName(s,"Mezzanine"),h=function(d,m){var V={};var Z=false;return m.forEach(function(g){d&&d.getAttribute(g)?V[g]=d.getAttribute(g):Z=true;}),Z?null:V;}(b,["delivery","type","width","height"]);if(h){var d={id:null,fileURL:null,delivery:null,codec:null,type:null,width:0,height:0,fileSize:0,mediaType:"2D"};d.id=b.getAttribute("id"),d.fileURL=G$4.parseNodeText(b),d.delivery=h.delivery,d.codec=b.getAttribute("codec"),d.type=h.type,d.width=parseInt(h.width,10),d.height=parseInt(h.height,10),d.fileSize=parseInt(b.getAttribute("fileSize"),10),d.mediaType=b.getAttribute("mediaType")||"2D",l.mezzanine=d;}});var a=G$4.childByName(e,"Icons");return a&&G$4.childrenByName(a,"Icon").forEach(function(s){l.icons.push(function(c){var u={program:null,height:0,width:0,xPosition:0,yPosition:0,apiFramework:null,offset:null,duration:0,type:null,staticResource:null,htmlResource:null,iframeResource:null,pxratio:"1",iconClickThroughURLTemplate:null,iconClickTrackingURLTemplates:[],iconViewTrackingURLTemplate:null,iconClickFallbackImages:[],altText:null,hoverText:null};u.program=c.getAttribute("program"),u.height=parseInt(c.getAttribute("height")||0),u.width=parseInt(c.getAttribute("width")||0),u.xPosition=function(h){return ["left","right"].indexOf(h)!==-1?h:parseInt(h||0);}(c.getAttribute("xPosition")),u.yPosition=function(h){return ["top","bottom"].indexOf(h)!==-1?h:parseInt(h||0);}(c.getAttribute("yPosition")),u.apiFramework=c.getAttribute("apiFramework"),u.pxratio=c.getAttribute("pxratio")||"1",u.offset=G$4.parseDuration(c.getAttribute("offset")),u.duration=G$4.parseDuration(c.getAttribute("duration")),u.altText=c.getAttribute("altText"),u.hoverText=c.getAttribute("hoverText"),G$4.childrenByName(c,"HTMLResource").forEach(function(h){u.type=h.getAttribute("creativeType")||"text/html",u.htmlResource=G$4.parseNodeText(h);}),G$4.childrenByName(c,"IFrameResource").forEach(function(h){u.type=h.getAttribute("creativeType")||0,u.iframeResource=G$4.parseNodeText(h);}),G$4.childrenByName(c,"StaticResource").forEach(function(h){u.type=h.getAttribute("creativeType")||0,u.staticResource=G$4.parseNodeText(h);});var b=G$4.childByName(c,"IconClicks");if(b){u.iconClickThroughURLTemplate=G$4.parseNodeText(G$4.childByName(b,"IconClickThrough")),G$4.childrenByName(b,"IconClickTracking").forEach(function(d){u.iconClickTrackingURLTemplates.push({id:d.getAttribute("id")||null,url:G$4.parseNodeText(d)});});var h=G$4.childByName(b,"IconClickFallbackImages");h&&G$4.childrenByName(h,"IconClickFallbackImage").forEach(function(d){u.iconClickFallbackImages.push({url:G$4.parseNodeText(d)||null,width:d.getAttribute("width")||null,height:d.getAttribute("height")||null});});}return u.iconViewTrackingURLTemplate=G$4.parseNodeText(G$4.childByName(c,"IconViewTracking")),u;}(s));}),l;}function pg(e,t){var n=function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};var _Ko3=Ko(l),o=_Ko3.id,i=_Ko3.adId,r=_Ko3.sequence,a=_Ko3.apiFramework;return {id:o,adId:i,sequence:r,apiFramework:a,type:"nonlinear",variations:[],trackingEvents:{}};}(t);return G$4.childrenByName(e,"TrackingEvents").forEach(function(l){var o,i;G$4.childrenByName(l,"Tracking").forEach(function(r){o=r.getAttribute("event"),i=G$4.parseNodeText(r),o&&i&&(Array.isArray(n.trackingEvents[o])||(n.trackingEvents[o]=[]),n.trackingEvents[o].push(i));});}),G$4.childrenByName(e,"NonLinear").forEach(function(l){var o={id:null,width:0,height:0,expandedWidth:0,expandedHeight:0,scalable:true,maintainAspectRatio:true,minSuggestedDuration:0,apiFramework:"static",adType:"nonLinearAd",type:null,staticResource:null,htmlResource:null,iframeResource:null,nonlinearClickThroughURLTemplate:null,nonlinearClickTrackingURLTemplates:[],adParameters:null};o.id=l.getAttribute("id")||null,o.width=l.getAttribute("width"),o.height=l.getAttribute("height"),o.expandedWidth=l.getAttribute("expandedWidth"),o.expandedHeight=l.getAttribute("expandedHeight"),o.scalable=G$4.parseBoolean(l.getAttribute("scalable")),o.maintainAspectRatio=G$4.parseBoolean(l.getAttribute("maintainAspectRatio")),o.minSuggestedDuration=G$4.parseDuration(l.getAttribute("minSuggestedDuration")),o.apiFramework=l.getAttribute("apiFramework"),G$4.childrenByName(l,"HTMLResource").forEach(function(r){o.type=r.getAttribute("creativeType")||"text/html",o.htmlResource=G$4.parseNodeText(r);}),G$4.childrenByName(l,"IFrameResource").forEach(function(r){o.type=r.getAttribute("creativeType")||0,o.iframeResource=G$4.parseNodeText(r);}),G$4.childrenByName(l,"StaticResource").forEach(function(r){o.type=r.getAttribute("creativeType")||0,o.staticResource=G$4.parseNodeText(r);});var i=G$4.childByName(l,"AdParameters");i&&(o.adParameters={value:G$4.parseNodeText(i),xmlEncoded:i.getAttribute("xmlEncoded")||null}),o.nonlinearClickThroughURLTemplate=G$4.parseNodeText(G$4.childByName(l,"NonLinearClickThrough")),G$4.childrenByName(l,"NonLinearClickTracking").forEach(function(r){o.nonlinearClickTrackingURLTemplates.push({id:r.getAttribute("id")||null,url:G$4.parseNodeText(r)});}),n.variations.push(o);}),n;}function Cr(e){var t=[];return e.forEach(function(n){var l=cu(n);l&&t.push(l);}),t;}function cu(e){if(e.nodeName==="#comment")return null;var t={name:null,value:null,attributes:{},children:[]},n=e.attributes,l=e.childNodes;if(t.name=e.nodeName,e.attributes){for(var _i37 in n)if(n.hasOwnProperty(_i37)){var r=n[_i37];r.nodeName&&r.nodeValue&&(t.attributes[r.nodeName]=r.nodeValue);}}for(var _i38 in l)if(l.hasOwnProperty(_i38)){var _r1=cu(l[_i38]);_r1&&t.children.push(_r1);}if(t.children.length===0||t.children.length===1&&["#cdata-section","#text"].indexOf(t.children[0].name)>=0){var _i39=G$4.parseNodeText(e);_i39!==""&&(t.value=_i39),t.children=[];}return (o=t).value===null&&Object.keys(o.attributes).length===0&&o.children.length===0?null:t;var o;}function Eg(e){return e.getAttribute("AdID")||e.getAttribute("adID")||e.getAttribute("adId")||null;}var Jn={Wrapper:{subElements:["VASTAdTagURI","Impression"]},BlockedAdCategories:{attributes:["authority"]},InLine:{subElements:["AdSystem","AdTitle","Impression","AdServingId","Creatives"]},Category:{attributes:["authority"]},Pricing:{attributes:["model","currency"]},Verification:{oneOfinLineResources:["JavaScriptResource","ExecutableResource"],attributes:["vendor"]},UniversalAdId:{attributes:["idRegistry"]},JavaScriptResource:{attributes:["apiFramework","browserOptional"]},ExecutableResource:{attributes:["apiFramework","type"]},Tracking:{attributes:["event"]},Creatives:{subElements:["Creative"]},Creative:{subElements:["UniversalAdId"]},Linear:{subElements:["MediaFiles","Duration"]},MediaFiles:{subElements:["MediaFile"]},MediaFile:{attributes:["delivery","type","width","height"]},Mezzanine:{attributes:["delivery","type","width","height"]},NonLinear:{oneOfinLineResources:["StaticResource","IFrameResource","HTMLResource"],attributes:["width","height"]},Companion:{oneOfinLineResources:["StaticResource","IFrameResource","HTMLResource"],attributes:["width","height"]},StaticResource:{attributes:["creativeType"]},Icons:{subElements:["Icon"]},Icon:{oneOfinLineResources:["StaticResource","IFrameResource","HTMLResource"]}};function Jr(e,t){if(!Jn[e.nodeName]||!Jn[e.nodeName].attributes)return;var n=Jn[e.nodeName].attributes.filter(function(l){return !e.getAttribute(l);});n.length>0&&on({name:e.nodeName,parentName:e.parentNode.nodeName,attributes:n},t);}function vr(e,t,n){var l=Jn[e.nodeName],o=!n&&e.nodeName!=="Wrapper";if(!(!l||o)){if(l.subElements){var _i40=l.subElements.filter(function(r){return !G$4.childByName(e,r);});_i40.length>0&&on({name:e.nodeName,parentName:e.parentNode.nodeName,subElements:_i40},t);}!n||!l.oneOfinLineResources||l.oneOfinLineResources.some(function(i){return G$4.childByName(e,i);})||on({name:e.nodeName,parentName:e.parentNode.nodeName,oneOfResources:l.oneOfinLineResources},t);}}function Tr(e){return e.children&&e.children.length!==0;}function on(e,t){var n=e.name,l=e.parentName,o=e.attributes,i=e.subElements,r=e.oneOfResources,a="Element '".concat(n,"'");a+=o?" missing required attribute(s) '".concat(o.join(", "),"' "):i?" missing required sub element(s) '".concat(i.join(", "),"' "):r?" must provide one of the following '".concat(r.join(", "),"' "):" is empty",t("VAST-warning",{message:a,parentElement:l,specVersion:4.1});}var Wg={verifyRequiredValues:function e(t,n,l){if(t&&t.nodeName)if(t.nodeName==="InLine"&&(l=true),Jr(t,n),Tr(t)){vr(t,n,l);for(var _o22=0;_o22<t.children.length;_o22++)e(t.children[_o22],n,l);}else G$4.parseNodeText(t).length===0&&on({name:t.nodeName,parentName:t.parentNode.nodeName},n);},hasSubElements:Tr,emitMissingValueWarning:on,verifyRequiredAttributes:Jr,verifyRequiredSubElements:vr};function Zg(e,t){var _ref76=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=_ref76.allowMultipleAds,l=_ref76.followAdditionalWrappers;var o=Array.from(e.childNodes).filter(function(i){var r=i.nodeName.toLowerCase();return r==="inline"||l!==false&&r==="wrapper";});var _iterator75=_createForOfIteratorHelper(o),_step75;try{for(_iterator75.s();!(_step75=_iterator75.n()).done;){var _i41=_step75.value;if(G$4.copyNodeAttribute("id",e,_i41),G$4.copyNodeAttribute("sequence",e,_i41),G$4.copyNodeAttribute("adType",e,_i41),_i41.nodeName==="Wrapper")return {ad:yg(_i41,t),type:"WRAPPER"};if(_i41.nodeName==="InLine")return {ad:fg(_i41,t,{allowMultipleAds:n}),type:"INLINE"};var r=_i41.nodeName.toLowerCase();t("VAST-warning",{message:"<".concat(_i41.nodeName,r==="inline"?"> must be written <InLine>":"> must be written <Wrapper>"),wrongNode:_i41});}}catch(err){_iterator75.e(err);}finally{_iterator75.f();}}function fg(e,t){var _ref77=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=_ref77.allowMultipleAds;return n===false&&e.getAttribute("sequence")?null:uu(e,t);}function uu(e,t){var n=[];t&&Wg.verifyRequiredValues(e,t);var l=Array.from(e.childNodes),o=function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return {id:i.id||null,sequence:i.sequence||null,adType:i.adType||null,adServingId:null,categories:[],expires:null,viewableImpression:[],system:null,title:null,description:null,advertiser:null,pricing:null,survey:null,errorURLTemplates:[],impressionURLTemplates:[],creatives:[],extensions:[],adVerifications:[],blockedAdCategories:[],followAdditionalWrappers:true,allowMultipleAds:false,fallbackOnNoAd:null};}(G$4.parseAttributes(e));return l.forEach(function(i){switch(i.nodeName){case "Error":o.errorURLTemplates.push(G$4.parseNodeText(i));break;case "Impression":o.impressionURLTemplates.push({id:i.getAttribute("id")||null,url:G$4.parseNodeText(i)});break;case "Creatives":o.creatives=function(r){var a=[];return r.forEach(function(s){var c={id:s.getAttribute("id")||null,adId:Eg(s),sequence:s.getAttribute("sequence")||null,apiFramework:s.getAttribute("apiFramework")||null},u=[];var b;G$4.childrenByName(s,"UniversalAdId").forEach(function(d){var m={idRegistry:d.getAttribute("idRegistry")||"unknown",value:G$4.parseNodeText(d)};u.push(m);});var h=G$4.childByName(s,"CreativeExtensions");h&&(b=Cr(G$4.childrenByName(h,"CreativeExtension")));for(var d in s.childNodes){var m=s.childNodes[d];var V=void 0;switch(m.nodeName){case "Linear":V=Rg(m,c);break;case "NonLinearAds":V=pg(m,c);break;case "CompanionAds":V=Ag(m,c);}V&&(u&&(V.universalAdIds=u),b&&(V.creativeExtensions=b),a.push(V));}}),a;}(G$4.childrenByName(i,"Creative"));break;case "Extensions":{var r=G$4.childrenByName(i,"Extension");o.extensions=Cr(r),o.adVerifications.length||(n=function(a){var s=null,c=[];return a.some(function(u){return s=G$4.childByName(u,"AdVerifications");}),s&&(c=kr(G$4.childrenByName(s,"Verification"))),c;}(r));break;}case "AdVerifications":o.adVerifications=kr(G$4.childrenByName(i,"Verification"));break;case "AdSystem":o.system={value:G$4.parseNodeText(i),version:i.getAttribute("version")||null};break;case "AdTitle":o.title=G$4.parseNodeText(i);break;case "AdServingId":o.adServingId=G$4.parseNodeText(i);break;case "Category":o.categories.push({authority:i.getAttribute("authority")||null,value:G$4.parseNodeText(i)});break;case "Expires":o.expires=parseInt(G$4.parseNodeText(i),10);break;case "ViewableImpression":o.viewableImpression.push(function(r){var a=function a(s,c){var u=G$4.parseNodeText(c);return u&&s.push(u),s;};return {id:r.getAttribute("id")||null,viewable:G$4.childrenByName(r,"Viewable").reduce(a,[]),notViewable:G$4.childrenByName(r,"NotViewable").reduce(a,[]),viewUndetermined:G$4.childrenByName(r,"ViewUndetermined").reduce(a,[])};}(i));break;case "Description":o.description=G$4.parseNodeText(i);break;case "Advertiser":o.advertiser={id:i.getAttribute("id")||null,value:G$4.parseNodeText(i)};break;case "Pricing":o.pricing={value:G$4.parseNodeText(i),model:i.getAttribute("model")||null,currency:i.getAttribute("currency")||null};break;case "Survey":o.survey={value:G$4.parseNodeText(i),type:i.getAttribute("type")||null};break;case "BlockedAdCategories":o.blockedAdCategories.push({authority:i.getAttribute("authority")||null,value:G$4.parseNodeText(i)});}}),n.length&&(o.adVerifications=o.adVerifications.concat(n)),o;}function yg(e,t){var n=uu(e,t),l=e.getAttribute("followAdditionalWrappers"),o=e.getAttribute("allowMultipleAds"),i=e.getAttribute("fallbackOnNoAd");n.followAdditionalWrappers=!l||G$4.parseBoolean(l),n.allowMultipleAds=!!o&&G$4.parseBoolean(o),n.fallbackOnNoAd=i?G$4.parseBoolean(i):null;var r=G$4.childByName(e,"VASTAdTagURI");if(r?n.nextWrapperURL=G$4.parseNodeText(r):(r=G$4.childByName(e,"VASTAdTagURL"),r&&(n.nextWrapperURL=G$4.parseNodeText(G$4.childByName(r,"URL")))),n.creatives.forEach(function(a){if(["linear","nonlinear"].includes(a.type)){if(a.trackingEvents){n.trackingEvents||(n.trackingEvents={}),n.trackingEvents[a.type]||(n.trackingEvents[a.type]={});var _loop3=function _loop3(s){var c=a.trackingEvents[s];Array.isArray(n.trackingEvents[a.type][s])||(n.trackingEvents[a.type][s]=[]),c.forEach(function(u){n.trackingEvents[a.type][s].push(u);});};for(var s in a.trackingEvents){_loop3(s);}}a.videoClickTrackingURLTemplates&&(Array.isArray(n.videoClickTrackingURLTemplates)||(n.videoClickTrackingURLTemplates=[]),a.videoClickTrackingURLTemplates.forEach(function(s){n.videoClickTrackingURLTemplates.push(s);})),a.videoClickThroughURLTemplate&&(n.videoClickThroughURLTemplate=a.videoClickThroughURLTemplate),a.videoCustomClickURLTemplates&&(Array.isArray(n.videoCustomClickURLTemplates)||(n.videoCustomClickURLTemplates=[]),a.videoCustomClickURLTemplates.forEach(function(s){n.videoCustomClickURLTemplates.push(s);}));}}),n.nextWrapperURL)return n;}function kr(e){var t=[];return e.forEach(function(n){var l={resource:null,vendor:null,browserOptional:false,apiFramework:null,type:null,parameters:null,trackingEvents:{}},o=Array.from(n.childNodes);G$4.assignAttributes(n.attributes,l),o.forEach(function(r){var a=r.nodeName,s=r.textContent,c=r.attributes;switch(a){case "JavaScriptResource":case "ExecutableResource":l.resource=s.trim(),G$4.assignAttributes(c,l);break;case "VerificationParameters":l.parameters=s.trim();}});var i=G$4.childByName(n,"TrackingEvents");i&&G$4.childrenByName(i,"Tracking").forEach(function(r){var a=r.getAttribute("event"),s=G$4.parseNodeText(r);a&&s&&(Array.isArray(l.trackingEvents[a])||(l.trackingEvents[a]=[]),l.trackingEvents[a].push(s));}),t.push(l);}),t;}var Gg=/*#__PURE__*/function(){function Gg(){_classCallCheck(this,Gg);this._handlers=[];}return _createClass(Gg,[{key:"on",value:function on(t,n){if(typeof n!="function")throw new TypeError("The handler argument must be of type Function. Received type ".concat(_typeof(n)));if(!t)throw new TypeError("The event argument must be of type String. Received type ".concat(_typeof(t)));return this._handlers.push({event:t,handler:n}),this;}},{key:"once",value:function once(t,n){return this.on(t,function(l,o,i){var r={fired:false,wrapFn:void 0};function a(){r.fired||(l.off(o,r.wrapFn),r.fired=true,i.bind(l).apply(void 0,arguments));}return r.wrapFn=a,a;}(this,t,n));}},{key:"off",value:function off(t,n){return this._handlers=this._handlers.filter(function(l){return l.event!==t||l.handler!==n;}),this;}},{key:"emit",value:function emit(t){for(var n=arguments.length,l=new Array(n>1?n-1:0),o=1;o<n;o++)l[o-1]=arguments[o];var i=false;return this._handlers.forEach(function(r){r.event==="*"&&(i=true,r.handler.apply(r,[t].concat(l))),r.event===t&&(i=true,r.handler.apply(r,l));}),i;}},{key:"removeAllListeners",value:function removeAllListeners(t){return t?(this._handlers=this._handlers.filter(function(n){return n.event!==t;}),this):(this._handlers=[],this);}},{key:"listenerCount",value:function listenerCount(t){return this._handlers.filter(function(n){return n.event===t;}).length;}},{key:"listeners",value:function listeners(t){return this._handlers.reduce(function(n,l){return l.event===t&&n.push(l.handler),n;},[]);}},{key:"eventNames",value:function eventNames(){return this._handlers.map(function(t){return t.event;});}}]);}();var Qr=0,co=0;var du=function du(e,t){!e||!t||e<=0||t<=0||(co=(co*Qr+8*e/t)/++Qr);},Xg={ERRORCODE:900,extensions:[]},wr="VAST response version not supported";var Fg=/*#__PURE__*/function(_Gg){function Fg(){var _this29;_classCallCheck(this,Fg);var _ref78=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=_ref78.fetcher;_this29=_callSuper(this,Fg),_this29.maxWrapperDepth=null,_this29.rootErrorURLTemplates=[],_this29.errorURLTemplates=[],_this29.remainingAds=[],_this29.parsingOptions={},_this29.fetcher=t||null,_this29.keepFailedAdPod=false;return _this29;}_inherits(Fg,_Gg);return _createClass(Fg,[{key:"trackVastError",value:function trackVastError(t,n){for(var l=arguments.length,o=new Array(l>2?l-2:0),i=2;i<l;i++)o[i-2]=arguments[i];this.emit("VAST-error",Object.assign.apply(Object,[{},Xg,n].concat(o))),Ft.track(t,n);}},{key:"getErrorURLTemplates",value:function getErrorURLTemplates(){return this.rootErrorURLTemplates.concat(this.errorURLTemplates);}},{key:"getEstimatedBitrate",value:function getEstimatedBitrate(){return co;}},{key:"initParsingStatus",value:function initParsingStatus(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.maxWrapperDepth=t.wrapperLimit||10,this.parsingOptions={allowMultipleAds:t.allowMultipleAds},this.keepFailedAdPod=t.keepFailedAdPod||false,this.rootURL="",this.resetParsingStatus(),du(t.byteLength,t.requestDuration);}},{key:"resetParsingStatus",value:function resetParsingStatus(){this.errorURLTemplates=[],this.rootErrorURLTemplates=[],this.vastVersion=null;}},{key:"getRemainingAds",value:function getRemainingAds(t){var _this30=this;if(this.remainingAds.length===0)return Promise.reject(new Error("No more ads are available for the given VAST"));var n=t?this.remainingAds:[this.remainingAds.shift()];return this.errorURLTemplates=[],this.resolveAds(n,{wrapperDepth:0,url:this.rootURL}).then(function(l){return _this30.buildVASTResponse(l);});}},{key:"parseVAST",value:function parseVAST(t){var _this31=this;var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.initParsingStatus(n),n.isRootVAST=true,this.parse(t,n).then(function(l){return _this31.buildVASTResponse(l);});}},{key:"buildVASTResponse",value:function buildVASTResponse(t){var n=function(l){var o=l.ads,i=l.errorURLTemplates,r=l.version;return {ads:o||[],errorURLTemplates:i||[],version:r||null};}({ads:t,errorURLTemplates:this.getErrorURLTemplates(),version:this.vastVersion});return this.completeWrapperResolving(n),n;}},{key:"parseVastXml",value:function parseVastXml(t,n){var _n$isRootVAST=n.isRootVAST,l=_n$isRootVAST===void 0?false:_n$isRootVAST,_n$url=n.url,o=_n$url===void 0?null:_n$url,_n$wrapperDepth=n.wrapperDepth,i=_n$wrapperDepth===void 0?0:_n$wrapperDepth,r=n.allowMultipleAds,a=n.followAdditionalWrappers;if(!t||!t.documentElement||t.documentElement.nodeName!=="VAST"){var s;this.emit("VAST-ad-parsed",{type:"ERROR",url:o,wrapperDepth:i});var h=(t==null||(s=t.documentElement)===null||s===void 0?void 0:s.nodeName)==="VideoAdServingTemplate";throw new Error(h?wr:"Invalid VAST XMLDocument");}var c=[],u=t.documentElement.childNodes,b=t.documentElement.getAttribute("version");l&&b&&(this.vastVersion=b);for(var _h5 in u){var d=u[_h5];if(d.nodeName==="Error"){var m=G$4.parseNodeText(d);l?this.rootErrorURLTemplates.push(m):this.errorURLTemplates.push(m);}else if(d.nodeName==="Ad"){if(this.vastVersion&&parseFloat(this.vastVersion)<3)r=true;else if(r===false&&c.length>1)break;var _m3=Zg(d,this.emit.bind(this),{allowMultipleAds:r,followAdditionalWrappers:a});_m3.ad?(c.push(_m3.ad),this.emit("VAST-ad-parsed",{type:_m3.type,url:o,wrapperDepth:i,adIndex:c.length-1,vastVersion:b})):this.trackVastError(this.getErrorURLTemplates(),{ERRORCODE:101});}}return c;}},{key:"parse",value:function parse(t){var _ref79=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},_ref79$url=_ref79.url,n=_ref79$url===void 0?null:_ref79$url,_ref79$resolveAll=_ref79.resolveAll,l=_ref79$resolveAll===void 0?true:_ref79$resolveAll,_ref79$wrapperSequenc=_ref79.wrapperSequence,o=_ref79$wrapperSequenc===void 0?null:_ref79$wrapperSequenc,_ref79$previousUrl=_ref79.previousUrl,i=_ref79$previousUrl===void 0?null:_ref79$previousUrl,_ref79$wrapperDepth=_ref79.wrapperDepth,r=_ref79$wrapperDepth===void 0?0:_ref79$wrapperDepth,_ref79$isRootVAST=_ref79.isRootVAST,a=_ref79$isRootVAST===void 0?false:_ref79$isRootVAST,s=_ref79.followAdditionalWrappers,c=_ref79.allowMultipleAds,u=[];this.vastVersion&&parseFloat(this.vastVersion)<3&&a&&(c=true);try{u=this.parseVastXml(t,{isRootVAST:a,url:n,wrapperDepth:r,allowMultipleAds:c,followAdditionalWrappers:s});}catch(b){return Promise.reject(b);}if(u.length===1&&o!=null&&(u[0].sequence=o),l===false){var b=G$4.getSortedAdPods(u),h=G$4.getStandAloneAds(u);b.length?u=b:h.length&&(u=[h.shift()]),this.remainingAds=h;}return this.resolveAds(u,{wrapperDepth:r,previousUrl:i,url:n});}},{key:"resolveAds",value:function resolveAds(){var _this32=this;var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],_ref80=arguments.length>1?arguments[1]:void 0,n=_ref80.wrapperDepth,l=_ref80.previousUrl,o=_ref80.url;var i=[];return l=o,t.forEach(function(r){var a=_this32.resolveWrappers(r,n,l);i.push(a);}),Promise.all(i).then(function(r){return Ft.flatten(r);});}},{key:"resolveWrappers",value:function resolveWrappers(t,n,l){var _this33=this;var o=_objectSpread2({},t);return new Promise(function(i){var r;if(n++,!o.nextWrapperURL)return delete o.nextWrapperURL,i(o);if(!_this33.fetcher)return o.VASTAdTagURI=o.nextWrapperURL,delete o.nextWrapperURL,i(o);if(n>=_this33.maxWrapperDepth)return o.errorCode=302,delete o.nextWrapperURL,i(o);o.nextWrapperURL=G$4.resolveVastAdTagURI(o.nextWrapperURL,l);var a=(r=_this33.parsingOptions.allowMultipleAds)!==null&&r!==void 0?r:o.allowMultipleAds,s=o.sequence;_this33.fetcher.fetchVAST({url:o.nextWrapperURL,emitter:_this33.emit.bind(_this33),maxWrapperDepth:_this33.maxWrapperDepth}).then(function(c){return _this33.parse(c,{url:o.nextWrapperURL,previousUrl:l,wrapperSequence:s,wrapperDepth:n,followAdditionalWrappers:o.followAdditionalWrappers,allowMultipleAds:a}).then(function(u){if(delete o.nextWrapperURL,u.length===0)return o.creatives=[],i(o);u.forEach(function(b){b&&G$4.mergeWrapperAdData(b,o);}),i(u);});}).catch(function(c){o.errorCode=c.message===wr?102:301,o.errorMessage=c.message,i(o);});});}},{key:"completeWrapperResolving",value:function completeWrapperResolving(t){if(t.ads.length===0)this.trackVastError(t.errorURLTemplates,{ERRORCODE:303});else for(var n=t.ads.length-1;n>=0;n--){var _l15=t.ads[n],_o23=!_l15.creatives.some(function(i){var r,a;return ((r=i.mediaFiles)===null||r===void 0?void 0:r.length)>0||((a=i.variations)===null||a===void 0?void 0:a.length)>0;});!_l15.errorCode&&!_o23||_l15.VASTAdTagURI||(this.trackVastError(_l15.errorURLTemplates.concat(t.errorURLTemplates),{ERRORCODE:_l15.errorCode||303},{ERRORMESSAGE:_l15.errorMessage||""},{extensions:_l15.extensions},{system:_l15.system}),this.keepFailedAdPod&&_l15.sequence?_l15.hasFailed=true:t.ads.splice(n,1));}}}]);}(Gg);var et=null;var Sg={data:{},length:0,getItem:function getItem(e){return this.data[e];},setItem:function setItem(e,t){this.data[e]=t,this.length=Object.keys(this.data).length;},removeItem:function removeItem(e){delete this.data[e],this.length=Object.keys(this.data).length;},clear:function clear(){this.data={},this.length=0;}};var Ng=/*#__PURE__*/function(){function Ng(){_classCallCheck(this,Ng);this.storage=this.initStorage();}return _createClass(Ng,[{key:"initStorage",value:function initStorage(){if(et)return et;try{et=(typeof window==="undefined"?"undefined":_typeof(window))<"u"&&window!==null?window.localStorage||window.sessionStorage:null;}catch(_unused26){et=null;}return et&&!this.isStorageDisabled(et)||(et=Sg,et.clear()),et;}},{key:"isStorageDisabled",value:function isStorageDisabled(t){var n="__VASTStorage__";try{if(t.setItem(n,n),t.getItem(n)!==n)return t.removeItem(n),!0;}catch(_unused27){return true;}return t.removeItem(n),false;}},{key:"getItem",value:function getItem(t){return this.storage.getItem(t);}},{key:"setItem",value:function setItem(t,n){return this.storage.setItem(t,n);}},{key:"removeItem",value:function removeItem(t){return this.storage.removeItem(t);}},{key:"clear",value:function clear(){return this.storage.clear();}}]);}();var uo=12e4,Ig={get:function(){var _get=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee54(e,t){var n,_l16,_o24,_i42,_t100;return _regenerator().w(function(_context61){while(1)switch(_context61.p=_context61.n){case 0:_context61.p=0;n=new AbortController();_l16=setTimeout(function(){throw n.abort(),new Error("URLHandler: Request timed out after ".concat(t.timeout||uo," ms (408)"));},t.timeout||uo);_context61.n=1;return fetch(e,_objectSpread2(_objectSpread2({},t),{},{signal:n.signal,credentials:t.withCredentials?"include":"omit"})).finally(function(){clearTimeout(_l16);});case 1:_o24=_context61.v;_i42=function(r){return Ft.isBrowserEnvironment()&&window.location.protocol==="https:"&&r.url.includes("http://")?"URLHandler: Cannot go from HTTPS to HTTP.":r.status===200&&r.ok?null:"URLHandler: ".concat(r.statusText," (").concat(r.status,")");}(_o24);return _context61.a(2,_i42?{error:new Error(_i42),statusCode:_o24.status}:function(){var _ref81=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee53(r){var a,s,_t98,_t99;return _regenerator().w(function(_context60){while(1)switch(_context60.n){case 0:_context60.n=1;return r.text();case 1:a=_context60.v;if(!Ft.isBrowserEnvironment()){_context60.n=2;break;}_t98=new DOMParser();_context60.n=4;break;case 2:_context60.n=3;return Promise.resolve().then(function () { return indexD8wyDNJD; }).then(function(c){return c.i;});case 3:_t99=_context60.v.DOMParser;_t98=new _t99();case 4:s=_t98;return _context60.a(2,{xml:s.parseFromString(a,"text/xml"),details:{byteLength:a.length,statusCode:r.status,rawXml:a}});}},_callee53);}));return function(_x87){return _ref81.apply(this,arguments);};}()(_o24));case 2:_context61.p=2;_t100=_context61.v;return _context61.a(2,{error:_t100,statusCode:_t100.name==="AbortError"?408:null});}},_callee54,null,[[0,2]]);}));function get(_x85,_x86){return _get.apply(this,arguments);}return get;}()};var Yg=/*#__PURE__*/function(){function Yg(){_classCallCheck(this,Yg);this.URLTemplateFilters=[];}return _createClass(Yg,[{key:"setOptions",value:function setOptions(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.urlHandler=t.urlHandler||t.urlhandler||Ig,this.fetchingOptions=_objectSpread2(_objectSpread2({},t.fetchOptions),{},{timeout:t.timeout||uo,withCredentials:!!t.withCredentials});}},{key:"addURLTemplateFilter",value:function addURLTemplateFilter(t){typeof t=="function"&&this.URLTemplateFilters.push(t);}},{key:"removeLastURLTemplateFilter",value:function removeLastURLTemplateFilter(){this.URLTemplateFilters.pop();}},{key:"countURLTemplateFilters",value:function countURLTemplateFilters(){return this.URLTemplateFilters.length;}},{key:"clearURLTemplateFilters",value:function clearURLTemplateFilters(){this.URLTemplateFilters=[];}},{key:"fetchVAST",value:function(){var _fetchVAST=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee55(t){var n,l,o,i,_t$wrapperDepth,r,_t$previousUrl,a,_t$wrapperAd,s,c,u,b;return _regenerator().w(function(_context62){while(1)switch(_context62.n){case 0:l=t.url,o=t.maxWrapperDepth,i=t.emitter,_t$wrapperDepth=t.wrapperDepth,r=_t$wrapperDepth===void 0?0:_t$wrapperDepth,_t$previousUrl=t.previousUrl,a=_t$previousUrl===void 0?null:_t$previousUrl,_t$wrapperAd=t.wrapperAd,s=_t$wrapperAd===void 0?null:_t$wrapperAd;c=Date.now();this.URLTemplateFilters.forEach(function(h){l=h(l);}),i("VAST-resolving",{url:l,previousUrl:a,wrapperDepth:r,maxWrapperDepth:o,timeout:this.fetchingOptions.timeout,wrapperAd:s});_context62.n=1;return this.urlHandler.get(l,this.fetchingOptions);case 1:u=_context62.v;b=Math.round(Date.now()-c);if(!(i("VAST-resolved",_objectSpread2({url:l,previousUrl:a,wrapperDepth:r,error:(u===null||u===void 0?void 0:u.error)||null,duration:b,statusCode:(u===null||u===void 0?void 0:u.statusCode)||null},u===null||u===void 0?void 0:u.details)),du(u==null||(n=u.details)===null||n===void 0?void 0:n.byteLength,b),u.error)){_context62.n=2;break;}throw new Error(u.error);case 2:return _context62.a(2,u.xml);}},_callee55,this);}));function fetchVAST(_x88){return _fetchVAST.apply(this,arguments);}return fetchVAST;}()}]);}();var Ug=/*#__PURE__*/function(){function Ug(){_classCallCheck(this,Ug);var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:new Ng();this.cappingFreeLunch=t,this.cappingMinimumTimeInterval=n,this.fetcher=new Yg(),this.vastParser=new Fg({fetcher:this.fetcher}),this.storage=l,this.lastSuccessfulAd===void 0&&(this.lastSuccessfulAd=0),this.totalCalls===void 0&&(this.totalCalls=0),this.totalCallsTimeout===void 0&&(this.totalCallsTimeout=0);}return _createClass(Ug,[{key:"addURLTemplateFilter",value:function addURLTemplateFilter(t){this.fetcher.addURLTemplateFilter(t);}},{key:"removeLastURLTemplateFilter",value:function removeLastURLTemplateFilter(){this.fetcher.removeLastURLTemplateFilter();}},{key:"countURLTemplateFilters",value:function countURLTemplateFilters(){return this.fetcher.countURLTemplateFilters();}},{key:"clearURLTemplateFilters",value:function clearURLTemplateFilters(){this.fetcher.clearURLTemplateFilters();}},{key:"getParser",value:function getParser(){return this.vastParser;}},{key:"lastSuccessfulAd",get:function get(){return this.storage.getItem("vast-client-last-successful-ad");},set:function set(t){this.storage.setItem("vast-client-last-successful-ad",t);}},{key:"totalCalls",get:function get(){return this.storage.getItem("vast-client-total-calls");},set:function set(t){this.storage.setItem("vast-client-total-calls",t);}},{key:"totalCallsTimeout",get:function get(){return this.storage.getItem("vast-client-total-calls-timeout");},set:function set(t){this.storage.setItem("vast-client-total-calls-timeout",t);}},{key:"hasRemainingAds",value:function hasRemainingAds(){return this.vastParser.remainingAds.length>0;}},{key:"getNextAds",value:function getNextAds(t){return this.vastParser.getRemainingAds(t);}},{key:"parseVAST",value:function parseVAST(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.fetcher.setOptions(n),this.vastParser.parseVAST(t,n);}},{key:"get",value:function get(t){var _this34=this;var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};var l=Date.now();return n.hasOwnProperty("resolveAll")||(n.resolveAll=false),this.totalCallsTimeout<l?(this.totalCalls=1,this.totalCallsTimeout=l+36e5):this.totalCalls++,new Promise(function(o,i){if(_this34.cappingFreeLunch>=_this34.totalCalls)return i(new Error("VAST call canceled – FreeLunch capping not reached yet ".concat(_this34.totalCalls,"/").concat(_this34.cappingFreeLunch)));var r=l-_this34.lastSuccessfulAd;if(r<0)_this34.lastSuccessfulAd=0;else if(r<_this34.cappingMinimumTimeInterval)return i(new Error("VAST call canceled – (".concat(_this34.cappingMinimumTimeInterval,")ms minimum interval reached")));_this34.vastParser.initParsingStatus(n),_this34.fetcher.setOptions(n),_this34.vastParser.rootURL=t,_this34.fetcher.fetchVAST({url:t,emitter:_this34.vastParser.emit.bind(_this34.vastParser),maxWrapperDepth:_this34.vastParser.maxWrapperDepth}).then(function(a){return n.previousUrl=t,n.isRootVAST=true,n.url=t,_this34.vastParser.parse(a,n).then(function(s){var c=_this34.vastParser.buildVASTResponse(s);o(c);});}).catch(function(a){return i(a);});});}}]);}();new Ug();ve("ui:gam-static");(_Qg={},_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_Qg,ae.UNSET,he$1.UNSET),ae.INGAME_IAB21,he$1.PROMOTION_INGAME_IAB21),ae.INGAME_IAB21_SIDEBAR,he$1.PROMOTION_INGAME_IAB21),ae.INGAME_IAB11_LBAR,he$1.PROMOTION_INGAME_IAB11_LBAR),ae.INGAME_IAB11,he$1.PROMOTION_INGAME_IAB11),ae.INGAME_IAB11_SIDEBAR,he$1.PROMOTION_INGAME_IAB11),ae.INGAME_IAB21_LBAR,he$1.PROMOTION_INGAME_IAB21_LBAR),ae.INGAME_IAB61,he$1.PROMOTION_INGAME_IAB61),ae.INGAME_IAB61_SIDEBAR,he$1.PROMOTION_INGAME_IAB61),ae.EXTERNAL_AD,he$1.PROMOTION_GAM),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_Qg,ae.VIDEO_SIDE_BY_SIDE,he$1.PROMOTION_VIDEO_SIDE_BY_SIDE),ae.PICTURE_IN_PICTURE,he$1.PROMOTION_PICTURE_IN_PICTURE),ae.LOWER_THIRD,he$1.PROMOTION_LOWER_THIRD),ae.SHOP_LBAR,he$1.PROMOTION_SHOP_LBAR),ae.SHOP_OVERLAY,he$1.PROMOTION_SHOP_OVERLAY),ae.SHOP_SIDEBAR,he$1.PROMOTION_SHOP_SIDEBAR),ae.NFL_SHOP_LBAR,he$1.PROMOTION_SHOP_LBAR),ae.NFL_SHOP_OVERLAY,he$1.PROMOTION_SHOP_OVERLAY),ae.NFL_SHOP_SIDEBAR,he$1.PROMOTION_SHOP_SIDEBAR),ae.STATS,he$1.UNSET),_defineProperty(_defineProperty(_defineProperty(_Qg,ae.STANDARD,he$1.UNSET),ae.SHOP,he$1.UNSET),ae.NFL_SHOP,he$1.UNSET));({25:re$1.AD_VIDEO_Q25,50:re$1.AD_VIDEO_Q50,75:re$1.AD_VIDEO_Q75});_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({},ee.UNSET,ce.UNSET),ee.FACTOID,ce.POLLS_INSIGHT),ee.POLL,ce.POLLS_POLL),ee.PREDICTION,ce.POLLS_PREDICTION),ee.PROMOTION,ce.POLLS_PROMOTION),ee.TRIVIA,ce.POLLS_TRIVIA),ee.TWEET,ce.POLLS_TWITTER);ee.UNSET+"",nt.UNSET,ee.FACTOID+"",nt.POLLS,ee.POLL+"",nt.POLLS,ee.PREDICTION+"",nt.POLLS,ee.PROMOTION+"",nt.POLLS,ee.TRIVIA+"",nt.POLLS,ee.TWEET+"",nt.POLLS;(_zg={},_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_zg,be.UNSET,Ge.UNSET),be.INPLAY,Ge.INPLAY),be.MESSAGING,Ge.MESSAGING),be.STATISTICS,Ge.STATS),be.BETTING,Ge.BETTING),be.TWITTER,Ge.TWITTER),be.MERCHANDISE,Ge.MERCHANDISE),be.CONTESTS,Ge.CONTESTS),be.VOICE_CHAT,Ge.CALLING),be.TICKETS,Ge.TICKETS),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_zg,be.WHOIS_WATCHING,Ge.WHOISWATCHING),be.PROFILE,Ge.PROFILE),be.GAMES,Ge.POLLS),be.GOLF_STATISTICS,Ge.STATS),be.HIGHLIGHTS,Ge.HIGHLIGHTS),be.PUBLIC_CHAT,Ge.PUBLIC_CHAT));ve("analytics");var bu=(typeof globalThis==="undefined"?"undefined":_typeof(globalThis))<"u"?globalThis:(typeof window==="undefined"?"undefined":_typeof(window))<"u"?window:_typeof(Po)<"u"?Po:(typeof self==="undefined"?"undefined":_typeof(self))<"u"?self:{};function Dg(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e;}var Gn={exports:{}},Xn={exports:{}},hl,zr;function jg(){if(zr)return hl;zr=1;function e(t){var n=new t(),l=n;function o(){var r=n;return r.next?n=r.next:(n=new t(),l=n),r.next=null,r;}function i(r){l.next=r,l=r;}return {get:o,release:i};}return hl=e,hl;}var Kr;function hu(){if(Kr)return Xn.exports;Kr=1;var e=jg();function t(i,r,a){if(typeof i=="function"&&(a=r,r=i,i=null),!(a>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");var s=e(l),c=null,u=null,b=0,h=null,d={push:p,drain:n,saturated:n,pause:V,paused:false,get concurrency(){return a;},set concurrency(I){if(!(I>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");if(a=I,!d.paused)for(;c&&b<a;)b++,B();},running:m,resume:R,idle:N,length:Z,getQueue:g,unshift:U,empty:n,kill:J,killAndDrain:E,error:F};return d;function m(){return b;}function V(){d.paused=true;}function Z(){for(var I=c,C=0;I;)I=I.next,C++;return C;}function g(){for(var I=c,C=[];I;)C.push(I.value),I=I.next;return C;}function R(){if(d.paused){if(d.paused=false,c===null){b++,B();return;}for(;c&&b<a;)b++,B();}}function N(){return b===0&&d.length()===0;}function p(I,C){var Y=s.get();Y.context=i,Y.release=B,Y.value=I,Y.callback=C||n,Y.errorHandler=h,b>=a||d.paused?u?(u.next=Y,u=Y):(c=Y,u=Y,d.saturated()):(b++,r.call(i,Y.value,Y.worked));}function U(I,C){var Y=s.get();Y.context=i,Y.release=B,Y.value=I,Y.callback=C||n,Y.errorHandler=h,b>=a||d.paused?c?(Y.next=c,c=Y):(c=Y,u=Y,d.saturated()):(b++,r.call(i,Y.value,Y.worked));}function B(I){I&&s.release(I);var C=c;C&&b<=a?d.paused?b--:(u===c&&(u=null),c=C.next,C.next=null,r.call(i,C.value,C.worked),u===null&&d.empty()):--b===0&&d.drain();}function J(){c=null,u=null,d.drain=n;}function E(){c=null,u=null,d.drain(),d.drain=n;}function F(I){h=I;}}function n(){}function l(){this.value=null,this.callback=n,this.next=null,this.release=n,this.context=null,this.errorHandler=null;var i=this;this.worked=function(r,a){var s=i.callback,c=i.errorHandler,u=i.value;i.value=null,i.callback=n,i.errorHandler&&c(r,u),s.call(i.context,r,a),i.release(i);};}function o(i,r,a){typeof i=="function"&&(a=r,r=i,i=null);function s(V,Z){r.call(this,V).then(function(g){Z(null,g);},Z);}var c=t(i,s,a),u=c.push,b=c.unshift;return c.push=h,c.unshift=d,c.drained=m,c;function h(V){var Z=new Promise(function(g,R){u(V,function(N,p){if(N){R(N);return;}g(p);});});return Z.catch(n),Z;}function d(V){var Z=new Promise(function(g,R){b(V,function(N,p){if(N){R(N);return;}g(p);});});return Z.catch(n),Z;}function m(){if(c.idle())return new Promise(function(g){g();});var V=c.drain,Z=new Promise(function(g){c.drain=function(){V(),g();};});return Z;}}return Xn.exports=t,Xn.exports.promise=o,Xn.exports;}var Fn={exports:{}},xr;function mu(){if(xr)return Fn.exports;xr=1;var e=(typeof Reflect==="undefined"?"undefined":_typeof(Reflect))=="object"?Reflect:null,t=e&&typeof e.apply=="function"?e.apply:function(p,U,B){return Function.prototype.apply.call(p,U,B);},n;e&&typeof e.ownKeys=="function"?n=e.ownKeys:Object.getOwnPropertySymbols?n=function n(p){return Object.getOwnPropertyNames(p).concat(Object.getOwnPropertySymbols(p));}:n=function n(p){return Object.getOwnPropertyNames(p);};function l(p){console&&console.warn&&console.warn(p);}var o=Number.isNaN||function(p){return p!==p;};function i(){i.init.call(this);}Fn.exports=i,Fn.exports.once=g,i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var r=10;function a(p){if(typeof p!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+_typeof(p));}Object.defineProperty(i,"defaultMaxListeners",{enumerable:true,get:function get(){return r;},set:function set(p){if(typeof p!="number"||p<0||o(p))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+p+".");r=p;}}),i.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=/* @__PURE__ */Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0;},i.prototype.setMaxListeners=function(p){if(typeof p!="number"||p<0||o(p))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+p+".");return this._maxListeners=p,this;};function s(p){return p._maxListeners===void 0?i.defaultMaxListeners:p._maxListeners;}i.prototype.getMaxListeners=function(){return s(this);},i.prototype.emit=function(p){for(var U=[],B=1;B<arguments.length;B++)U.push(arguments[B]);var J=p==="error",E=this._events;if(E!==void 0)J=J&&E.error===void 0;else if(!J)return false;if(J){var F;if(U.length>0&&(F=U[0]),F instanceof Error)throw F;var I=new Error("Unhandled error."+(F?" ("+F.message+")":""));throw I.context=F,I;}var C=E[p];if(C===void 0)return false;if(typeof C=="function")t(C,this,U);else for(var Y=C.length,K=m(C,Y),B=0;B<Y;++B)t(K[B],this,U);return true;};function c(p,U,B,J){var E,F,I;if(a(B),F=p._events,F===void 0?(F=p._events=/* @__PURE__ */Object.create(null),p._eventsCount=0):(F.newListener!==void 0&&(p.emit("newListener",U,B.listener?B.listener:B),F=p._events),I=F[U]),I===void 0)I=F[U]=B,++p._eventsCount;else if(typeof I=="function"?I=F[U]=J?[B,I]:[I,B]:J?I.unshift(B):I.push(B),E=s(p),E>0&&I.length>E&&!I.warned){I.warned=true;var C=new Error("Possible EventEmitter memory leak detected. "+I.length+" "+String(U)+" listeners added. Use emitter.setMaxListeners() to increase limit");C.name="MaxListenersExceededWarning",C.emitter=p,C.type=U,C.count=I.length,l(C);}return p;}i.prototype.addListener=function(p,U){return c(this,p,U,false);},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(p,U){return c(this,p,U,true);};function u(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=true,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments);}function b(p,U,B){var J={fired:false,wrapFn:void 0,target:p,type:U,listener:B},E=u.bind(J);return E.listener=B,J.wrapFn=E,E;}i.prototype.once=function(p,U){return a(U),this.on(p,b(this,p,U)),this;},i.prototype.prependOnceListener=function(p,U){return a(U),this.prependListener(p,b(this,p,U)),this;},i.prototype.removeListener=function(p,U){var B,J,E,F,I;if(a(U),J=this._events,J===void 0)return this;if(B=J[p],B===void 0)return this;if(B===U||B.listener===U)--this._eventsCount===0?this._events=/* @__PURE__ */Object.create(null):(delete J[p],J.removeListener&&this.emit("removeListener",p,B.listener||U));else if(typeof B!="function"){for(E=-1,F=B.length-1;F>=0;F--)if(B[F]===U||B[F].listener===U){I=B[F].listener,E=F;break;}if(E<0)return this;E===0?B.shift():V(B,E),B.length===1&&(J[p]=B[0]),J.removeListener!==void 0&&this.emit("removeListener",p,I||U);}return this;},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(p){var U,B,J;if(B=this._events,B===void 0)return this;if(B.removeListener===void 0)return arguments.length===0?(this._events=/* @__PURE__ */Object.create(null),this._eventsCount=0):B[p]!==void 0&&(--this._eventsCount===0?this._events=/* @__PURE__ */Object.create(null):delete B[p]),this;if(arguments.length===0){var E=Object.keys(B),F;for(J=0;J<E.length;++J)F=E[J],F!=="removeListener"&&this.removeAllListeners(F);return this.removeAllListeners("removeListener"),this._events=/* @__PURE__ */Object.create(null),this._eventsCount=0,this;}if(U=B[p],typeof U=="function")this.removeListener(p,U);else if(U!==void 0)for(J=U.length-1;J>=0;J--)this.removeListener(p,U[J]);return this;};function h(p,U,B){var J=p._events;if(J===void 0)return [];var E=J[U];return E===void 0?[]:typeof E=="function"?B?[E.listener||E]:[E]:B?Z(E):m(E,E.length);}i.prototype.listeners=function(p){return h(this,p,true);},i.prototype.rawListeners=function(p){return h(this,p,false);},i.listenerCount=function(p,U){return typeof p.listenerCount=="function"?p.listenerCount(U):d.call(p,U);},i.prototype.listenerCount=d;function d(p){var U=this._events;if(U!==void 0){var B=U[p];if(typeof B=="function")return 1;if(B!==void 0)return B.length;}return 0;}i.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[];};function m(p,U){for(var B=new Array(U),J=0;J<U;++J)B[J]=p[J];return B;}function V(p,U){for(;U+1<p.length;U++)p[U]=p[U+1];p.pop();}function Z(p){for(var U=new Array(p.length),B=0;B<U.length;++B)U[B]=p[B].listener||p[B];return U;}function g(p,U){return new Promise(function(B,J){function E(I){p.removeListener(U,F),J(I);}function F(){typeof p.removeListener=="function"&&p.removeListener("error",E),B([].slice.call(arguments));}N(p,U,F,{once:true}),U!=="error"&&R(p,E,{once:true});});}function R(p,U,B){typeof p.on=="function"&&N(p,"error",U,B);}function N(p,U,B,J){if(typeof p.on=="function")J.once?p.once(U,B):p.on(U,B);else if(typeof p.addEventListener=="function")p.addEventListener(U,function E(F){J.once&&p.removeEventListener(U,E),B(F);});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+_typeof(p));}return Fn.exports;}var Mr={},Hr={},Or,Dr;function Vu(){return Dr||(Dr=1,Or=function Or(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return false;if(_typeof(Symbol.iterator)=="symbol")return true;var e={},t=/* @__PURE__ */Symbol("test"),n=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return false;var l=42;e[t]=l;for(var o in e)return false;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return false;var i=Object.getOwnPropertySymbols(e);if(i.length!==1||i[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return false;if(typeof Object.getOwnPropertyDescriptor=="function"){var r=/** @type {PropertyDescriptor} */Object.getOwnPropertyDescriptor(e,t);if(r.value!==l||r.enumerable!==true)return false;}return true;}),Or;}var ml,jr;function jn(){if(jr)return ml;jr=1;var e=Vu();return ml=function ml(){return e()&&!!Symbol.toStringTag;},ml;}var Pr,_r;function gu(){return _r||(_r=1,Pr=Object),Pr;}var qr,$r;function Pg(){return $r||($r=1,qr=Error),qr;}var ea,ta;function _g(){return ta||(ta=1,ea=EvalError),ea;}var na,la;function qg(){return la||(la=1,na=RangeError),na;}var oa,ia;function $g(){return ia||(ia=1,oa=ReferenceError),oa;}var ra,aa;function Au(){return aa||(aa=1,ra=SyntaxError),ra;}var sa,ca;function bn(){return ca||(ca=1,sa=TypeError),sa;}var ua,da;function eA(){return da||(da=1,ua=URIError),ua;}var ba,ha;function tA(){return ha||(ha=1,ba=Math.abs),ba;}var ma,Va;function nA(){return Va||(Va=1,ma=Math.floor),ma;}var ga,Aa;function lA(){return Aa||(Aa=1,ga=Math.max),ga;}var Ra,pa;function oA(){return pa||(pa=1,Ra=Math.min),Ra;}var Ea,Wa;function iA(){return Wa||(Wa=1,Ea=Math.pow),Ea;}var Za,fa;function rA(){return fa||(fa=1,Za=Math.round),Za;}var ya,Ga;function aA(){return Ga||(Ga=1,ya=Number.isNaN||function(e){return e!==e;}),ya;}var Vl,Xa;function sA(){if(Xa)return Vl;Xa=1;var e=/* @__PURE__ */aA();return Vl=function Vl(t){return e(t)||t===0?t:t<0?-1:1;},Vl;}var Fa,Sa;function cA(){return Sa||(Sa=1,Fa=Object.getOwnPropertyDescriptor),Fa;}var gl,Na;function Ht(){if(Na)return gl;Na=1;var e=/* @__PURE__ */cA();if(e)try{e([],"length");}catch(_unused28){e=null;}return gl=e,gl;}var Al,Ia;function Pn(){if(Ia)return Al;Ia=1;var e=Object.defineProperty||false;if(e)try{e({},"a",{value:1});}catch(_unused29){e=false;}return Al=e,Al;}var Rl,Ya;function uA(){if(Ya)return Rl;Ya=1;var e=(typeof Symbol==="undefined"?"undefined":_typeof(Symbol))<"u"&&Symbol,t=Vu();return Rl=function Rl(){return typeof e!="function"||typeof Symbol!="function"||_typeof(e("foo"))!="symbol"||_typeof(/* @__PURE__ */Symbol("bar"))!="symbol"?false:t();},Rl;}var Ua,Ba;function Ru(){return Ba||(Ba=1,Ua=(typeof Reflect==="undefined"?"undefined":_typeof(Reflect))<"u"&&Reflect.getPrototypeOf||null),Ua;}var pl,Ca;function pu(){if(Ca)return pl;Ca=1;var e=/* @__PURE__ */gu();return pl=e.getPrototypeOf||null,pl;}var El,Ja;function dA(){if(Ja)return El;Ja=1;var e="Function.prototype.bind called on incompatible ",t=Object.prototype.toString,n=Math.max,l="[object Function]",o=function o(a,s){for(var c=[],u=0;u<a.length;u+=1)c[u]=a[u];for(var b=0;b<s.length;b+=1)c[b+a.length]=s[b];return c;},i=function i(a,s){for(var c=[],u=s,b=0;u<a.length;u+=1,b+=1)c[b]=a[u];return c;},r=function r(a,s){for(var c="",u=0;u<a.length;u+=1)c+=a[u],u+1<a.length&&(c+=s);return c;};return El=function El(a){var s=this;if(typeof s!="function"||t.apply(s)!==l)throw new TypeError(e+s);for(var c=i(arguments,1),u,b=function b(){if(this instanceof u){var Z=s.apply(this,o(c,arguments));return Object(Z)===Z?Z:this;}return s.apply(a,o(c,arguments));},h=n(0,s.length-c.length),d=[],m=0;m<h;m++)d[m]="$"+m;if(u=Function("binder","return function ("+r(d,",")+"){ return binder.apply(this,arguments); }")(b),s.prototype){var V=function V(){};V.prototype=s.prototype,u.prototype=new V(),V.prototype=null;}return u;},El;}var Wl,va;function hn(){if(va)return Wl;va=1;var e=dA();return Wl=Function.prototype.bind||e,Wl;}var Ta,ka;function xo(){return ka||(ka=1,Ta=Function.prototype.call),Ta;}var Qa,wa;function Mo(){return wa||(wa=1,Qa=Function.prototype.apply),Qa;}var La,za;function bA(){return za||(za=1,La=(typeof Reflect==="undefined"?"undefined":_typeof(Reflect))<"u"&&Reflect&&Reflect.apply),La;}var Zl,Ka;function Eu(){if(Ka)return Zl;Ka=1;var e=hn(),t=Mo(),n=xo(),l=bA();return Zl=l||e.call(n,t),Zl;}var fl,xa;function Ho(){if(xa)return fl;xa=1;var e=hn(),t=/* @__PURE__ */bn(),n=xo(),l=Eu();return fl=function fl(o){if(o.length<1||typeof o[0]!="function")throw new t("a function is required");return l(e,n,o);},fl;}var yl,Ma;function hA(){if(Ma)return yl;Ma=1;var e=Ho(),t=/* @__PURE__ */Ht(),n;try{n=/** @type {{ __proto__?: typeof Array.prototype }} */[].__proto__===Array.prototype;}catch(r){if(!r||_typeof(r)!="object"||!("code"in r)||r.code!=="ERR_PROTO_ACCESS")throw r;}var l=!!n&&t&&t(Object.prototype,/** @type {keyof typeof Object.prototype} */"__proto__"),o=Object,i=o.getPrototypeOf;return yl=l&&typeof l.get=="function"?e([l.get]):typeof i=="function"?(/** @type {import('./get')} */function(r){return i(r==null?r:o(r));}):false,yl;}var Gl,Ha;function Oo(){if(Ha)return Gl;Ha=1;var e=Ru(),t=pu(),n=/* @__PURE__ */hA();return Gl=e?function(l){return e(l);}:t?function(l){if(!l||_typeof(l)!="object"&&typeof l!="function")throw new TypeError("getProto: not an object");return t(l);}:n?function(l){return n(l);}:null,Gl;}var Xl,Oa;function Wu(){if(Oa)return Xl;Oa=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,n=hn();return Xl=n.call(e,t),Xl;}var Fl,Da;function Do(){if(Da)return Fl;Da=1;var e,t=/* @__PURE__ */gu(),n=/* @__PURE__ */Pg(),l=/* @__PURE__ */_g(),o=/* @__PURE__ */qg(),i=/* @__PURE__ */$g(),r=/* @__PURE__ */Au(),a=/* @__PURE__ */bn(),s=/* @__PURE__ */eA(),c=/* @__PURE__ */tA(),u=/* @__PURE__ */nA(),b=/* @__PURE__ */lA(),h=/* @__PURE__ */oA(),d=/* @__PURE__ */iA(),m=/* @__PURE__ */rA(),V=/* @__PURE__ */sA(),Z=Function,g=function g(L){try{return Z('"use strict"; return ('+L+").constructor;")();}catch(_unused30){}},R=/* @__PURE__ */Ht(),N=/* @__PURE__ */Pn(),p=function p(){throw new a();},U=R?function(){try{return arguments.callee,p;}catch(_unused31){try{return R(arguments,"callee").get;}catch(_unused32){return p;}}}():p,B=uA()(),J=Oo(),E=pu(),F=Ru(),I=Mo(),C=xo(),Y={},K=(typeof Uint8Array==="undefined"?"undefined":_typeof(Uint8Array))>"u"||!J?e:J(Uint8Array),$={__proto__:null,"%AggregateError%":(typeof AggregateError==="undefined"?"undefined":_typeof(AggregateError))>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":(typeof ArrayBuffer==="undefined"?"undefined":_typeof(ArrayBuffer))>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":B&&J?J([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":Y,"%AsyncGenerator%":Y,"%AsyncGeneratorFunction%":Y,"%AsyncIteratorPrototype%":Y,"%Atomics%":(typeof Atomics==="undefined"?"undefined":_typeof(Atomics))>"u"?e:Atomics,"%BigInt%":(typeof BigInt==="undefined"?"undefined":_typeof(BigInt))>"u"?e:BigInt,"%BigInt64Array%":(typeof BigInt64Array==="undefined"?"undefined":_typeof(BigInt64Array))>"u"?e:BigInt64Array,"%BigUint64Array%":(typeof BigUint64Array==="undefined"?"undefined":_typeof(BigUint64Array))>"u"?e:BigUint64Array,"%Boolean%":Boolean,"%DataView%":(typeof DataView==="undefined"?"undefined":_typeof(DataView))>"u"?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":n,"%eval%":eval,// eslint-disable-line no-eval
|
|
707
706
|
"%EvalError%":l,"%Float16Array%":(typeof Float16Array==="undefined"?"undefined":_typeof(Float16Array))>"u"?e:Float16Array,"%Float32Array%":(typeof Float32Array==="undefined"?"undefined":_typeof(Float32Array))>"u"?e:Float32Array,"%Float64Array%":(typeof Float64Array==="undefined"?"undefined":_typeof(Float64Array))>"u"?e:Float64Array,"%FinalizationRegistry%":(typeof FinalizationRegistry==="undefined"?"undefined":_typeof(FinalizationRegistry))>"u"?e:FinalizationRegistry,"%Function%":Z,"%GeneratorFunction%":Y,"%Int8Array%":(typeof Int8Array==="undefined"?"undefined":_typeof(Int8Array))>"u"?e:Int8Array,"%Int16Array%":(typeof Int16Array==="undefined"?"undefined":_typeof(Int16Array))>"u"?e:Int16Array,"%Int32Array%":(typeof Int32Array==="undefined"?"undefined":_typeof(Int32Array))>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":B&&J?J(J([][Symbol.iterator]())):e,"%JSON%":(typeof JSON==="undefined"?"undefined":_typeof(JSON))=="object"?JSON:e,"%Map%":(typeof Map==="undefined"?"undefined":_typeof(Map))>"u"?e:Map,"%MapIteratorPrototype%":(typeof Map==="undefined"?"undefined":_typeof(Map))>"u"||!B||!J?e:J((/* @__PURE__ */new Map())[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":t,"%Object.getOwnPropertyDescriptor%":R,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":(typeof Promise==="undefined"?"undefined":_typeof(Promise))>"u"?e:Promise,"%Proxy%":(typeof Proxy==="undefined"?"undefined":_typeof(Proxy))>"u"?e:Proxy,"%RangeError%":o,"%ReferenceError%":i,"%Reflect%":(typeof Reflect==="undefined"?"undefined":_typeof(Reflect))>"u"?e:Reflect,"%RegExp%":RegExp,"%Set%":(typeof Set==="undefined"?"undefined":_typeof(Set))>"u"?e:Set,"%SetIteratorPrototype%":(typeof Set==="undefined"?"undefined":_typeof(Set))>"u"||!B||!J?e:J((/* @__PURE__ */new Set())[Symbol.iterator]()),"%SharedArrayBuffer%":(typeof SharedArrayBuffer==="undefined"?"undefined":_typeof(SharedArrayBuffer))>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":B&&J?J(""[Symbol.iterator]()):e,"%Symbol%":B?Symbol:e,"%SyntaxError%":r,"%ThrowTypeError%":U,"%TypedArray%":K,"%TypeError%":a,"%Uint8Array%":(typeof Uint8Array==="undefined"?"undefined":_typeof(Uint8Array))>"u"?e:Uint8Array,"%Uint8ClampedArray%":(typeof Uint8ClampedArray==="undefined"?"undefined":_typeof(Uint8ClampedArray))>"u"?e:Uint8ClampedArray,"%Uint16Array%":(typeof Uint16Array==="undefined"?"undefined":_typeof(Uint16Array))>"u"?e:Uint16Array,"%Uint32Array%":(typeof Uint32Array==="undefined"?"undefined":_typeof(Uint32Array))>"u"?e:Uint32Array,"%URIError%":s,"%WeakMap%":(typeof WeakMap==="undefined"?"undefined":_typeof(WeakMap))>"u"?e:WeakMap,"%WeakRef%":(typeof WeakRef==="undefined"?"undefined":_typeof(WeakRef))>"u"?e:WeakRef,"%WeakSet%":(typeof WeakSet==="undefined"?"undefined":_typeof(WeakSet))>"u"?e:WeakSet,"%Function.prototype.call%":C,"%Function.prototype.apply%":I,"%Object.defineProperty%":N,"%Object.getPrototypeOf%":E,"%Math.abs%":c,"%Math.floor%":u,"%Math.max%":b,"%Math.min%":h,"%Math.pow%":d,"%Math.round%":m,"%Math.sign%":V,"%Reflect.getPrototypeOf%":F};if(J)try{null.error;}catch(L){var X=J(J(L));$["%Error.prototype%"]=X;}var k=function L(w){var z;if(w==="%AsyncFunction%")z=g("async function () {}");else if(w==="%GeneratorFunction%")z=g("function* () {}");else if(w==="%AsyncGeneratorFunction%")z=g("async function* () {}");else if(w==="%AsyncGenerator%"){var M=L("%AsyncGeneratorFunction%");M&&(z=M.prototype);}else if(w==="%AsyncIteratorPrototype%"){var ie=L("%AsyncGenerator%");ie&&J&&(z=J(ie.prototype));}return $[w]=z,z;},Q={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},H=hn(),v=/* @__PURE__ */Wu(),D=H.call(C,Array.prototype.concat),_=H.call(I,Array.prototype.splice),A=H.call(C,String.prototype.replace),y=H.call(C,String.prototype.slice),f=H.call(C,RegExp.prototype.exec),T=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,j=/\\(\\)?/g,O=function O(L){var w=y(L,0,1),z=y(L,-1);if(w==="%"&&z!=="%")throw new r("invalid intrinsic syntax, expected closing `%`");if(z==="%"&&w!=="%")throw new r("invalid intrinsic syntax, expected opening `%`");var M=[];return A(L,T,function(ie,te,ne,ye){M[M.length]=ne?A(ye,j,"$1"):te||ie;}),M;},x=function x(L,w){var z=L,M;if(v(Q,z)&&(M=Q[z],z="%"+M[0]+"%"),v($,z)){var ie=$[z];if(ie===Y&&(ie=k(z)),_typeof(ie)>"u"&&!w)throw new a("intrinsic "+L+" exists, but is not available. Please file an issue!");return {alias:M,name:z,value:ie};}throw new r("intrinsic "+L+" does not exist!");};return Fl=function Fl(L,w){if(typeof L!="string"||L.length===0)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof w!="boolean")throw new a('"allowMissing" argument must be a boolean');if(f(/^%?[^%]*%?$/,L)===null)throw new r("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var z=O(L),M=z.length>0?z[0]:"",ie=x("%"+M+"%",w),te=ie.name,ne=ie.value,ye=false,Ie=ie.alias;Ie&&(M=Ie[0],_(z,D([0,1],Ie)));for(var Ye=1,S=true;Ye<z.length;Ye+=1){var Ze=z[Ye],$e=y(Ze,0,1),mn=y(Ze,-1);if(($e==='"'||$e==="'"||$e==="`"||mn==='"'||mn==="'"||mn==="`")&&$e!==mn)throw new r("property names with quotes must have matching quotes");if((Ze==="constructor"||!S)&&(ye=true),M+="."+Ze,te="%"+M+"%",v($,te))ne=$[te];else if(ne!=null){if(!(Ze in ne)){if(!w)throw new a("base intrinsic for "+L+" exists, but the property is not available.");return;}if(R&&Ye+1>=z.length){var Vn=R(ne,Ze);S=!!Vn,S&&"get"in Vn&&!("originalValue"in Vn.get)?ne=Vn.get:ne=ne[Ze];}else S=v(ne,Ze),ne=ne[Ze];S&&!ye&&($[te]=ne);}}return ne;},Fl;}var ja={exports:{}},Sl,Pa;function mA(){if(Pa)return Sl;Pa=1;var e=/* @__PURE__ */Pn(),t=/* @__PURE__ */Au(),n=/* @__PURE__ */bn(),l=/* @__PURE__ */Ht();return Sl=function Sl(o,i,r){if(!o||_typeof(o)!="object"&&typeof o!="function")throw new n("`obj` must be an object or a function`");if(typeof i!="string"&&_typeof(i)!="symbol")throw new n("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new n("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new n("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new n("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new n("`loose`, if provided, must be a boolean");var a=arguments.length>3?arguments[3]:null,s=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,u=arguments.length>6?arguments[6]:false,b=!!l&&l(o,i);if(e)e(o,i,{configurable:c===null&&b?b.configurable:!c,enumerable:a===null&&b?b.enumerable:!a,value:r,writable:s===null&&b?b.writable:!s});else if(u||!a&&!s&&!c)o[i]=r;else throw new t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");},Sl;}var Nl,_a;function VA(){if(_a)return Nl;_a=1;var e=/* @__PURE__ */Pn(),t=function t(){return !!e;};return t.hasArrayLengthDefineBug=function(){if(!e)return null;try{return e([],"length",{value:1}).length!==1;}catch(_unused33){return true;}},Nl=t,Nl;}var Il,qa;function gA(){if(qa)return Il;qa=1;var e=/* @__PURE__ */Do(),t=/* @__PURE__ */mA(),n=/* @__PURE__ */VA()(),l=/* @__PURE__ */Ht(),o=/* @__PURE__ */bn(),i=e("%Math.floor%");return Il=function Il(r,a){if(typeof r!="function")throw new o("`fn` is not a function");if(typeof a!="number"||a<0||a>4294967295||i(a)!==a)throw new o("`length` must be a positive 32-bit integer");var s=arguments.length>2&&!!arguments[2],c=true,u=true;if("length"in r&&l){var b=l(r,"length");b&&!b.configurable&&(c=false),b&&!b.writable&&(u=false);}return (c||u||!s)&&(n?t(/** @type {Parameters<define>[0]} */r,"length",a,true,true):t(/** @type {Parameters<define>[0]} */r,"length",a)),r;},Il;}var Yl,$a;function AA(){if($a)return Yl;$a=1;var e=hn(),t=Mo(),n=Eu();return Yl=function Yl(){return n(e,t,arguments);},Yl;}var es;function Zu(){return es||(es=1,function(e){var t=/* @__PURE__ */gA(),n=/* @__PURE__ */Pn(),l=Ho(),o=AA();e.exports=function(i){var r=l(arguments),a=i.length-(arguments.length-1);return t(r,1+(a>0?a:0),true);},n?n(e.exports,"apply",{value:o}):e.exports.apply=o;}(ja)),ja.exports;}var Ul,ts;function RA(){if(ts)return Ul;ts=1;var e=/* @__PURE__ */Do(),t=Zu(),n=t(e("String.prototype.indexOf"));return Ul=function Ul(l,o){var i=e(l,!!o);return typeof i=="function"&&n(l,".prototype.")>-1?t(i):i;},Ul;}var Bl,ns;function pA(){if(ns)return Bl;ns=1;var e=jn()(),t=RA(),n=t("Object.prototype.toString"),l=function l(r){return e&&r&&_typeof(r)=="object"&&Symbol.toStringTag in r?false:n(r)==="[object Arguments]";},o=function o(r){return l(r)?true:r!==null&&_typeof(r)=="object"&&typeof r.length=="number"&&r.length>=0&&n(r)!=="[object Array]"&&n(r.callee)==="[object Function]";},i=function(){return l(arguments);}();return l.isLegacyArguments=o,Bl=i?l:o,Bl;}var Cl,ls;function _n(){if(ls)return Cl;ls=1;var e=/* @__PURE__ */Do(),t=Ho(),n=t([e("%String.prototype.indexOf%")]);return Cl=function Cl(l,o){var i=/** @type {(this: unknown, ...args: unknown[]) => unknown} */e(l,!!o);return typeof i=="function"&&n(l,".prototype.")>-1?t(/** @type {const} */[i]):i;},Cl;}var Jl,os;function EA(){if(os)return Jl;os=1;var e=/* @__PURE__ */_n(),t=jn()(),n=/* @__PURE__ */Wu(),l=/* @__PURE__ */Ht(),o;if(t){var i=e("RegExp.prototype.exec"),r={},a=function a(){throw r;},s={toString:a,valueOf:a};_typeof(Symbol.toPrimitive)=="symbol"&&(s[Symbol.toPrimitive]=a),o=function o(b){if(!b||_typeof(b)!="object")return false;var h=/** @type {NonNullable<typeof gOPD>} */l(/** @type {{ lastIndex?: unknown }} */b,"lastIndex"),d=h&&n(h,"value");if(!d)return false;try{i(b,/** @type {string} *//** @type {unknown} */s);}catch(m){return m===r;}};}else {var c=e("Object.prototype.toString"),u="[object RegExp]";o=function o(b){return !b||_typeof(b)!="object"&&typeof b!="function"?false:c(b)===u;};}return Jl=o,Jl;}var vl,is;function WA(){if(is)return vl;is=1;var e=/* @__PURE__ */_n(),t=EA(),n=e("RegExp.prototype.exec"),l=/* @__PURE__ */bn();return vl=function vl(o){if(!t(o))throw new l("`regex` must be a RegExp");return function(i){return n(o,i)!==null;};},vl;}var Tl,rs;function ZA(){if(rs)return Tl;rs=1;var e=/* @__PURE__ */_n(),t=/* @__PURE__ */WA(),n=t(/^\s*(?:function)?\*/),l=jn()(),o=Oo(),i=e("Object.prototype.toString"),r=e("Function.prototype.toString"),a=function a(){if(!l)return false;try{return Function("return function*() {}")();}catch(_unused34){}},s;return Tl=function Tl(c){if(typeof c!="function")return false;if(n(r(c)))return true;if(!l){var u=i(c);return u==="[object GeneratorFunction]";}if(!o)return false;if(_typeof(s)>"u"){var b=a();s=b?(/** @type {GeneratorFunctionConstructor} */o(b)):false;}return o(c)===s;},Tl;}var kl,as;function fA(){if(as)return kl;as=1;var e=Function.prototype.toString,t=(typeof Reflect==="undefined"?"undefined":_typeof(Reflect))=="object"&&Reflect!==null&&Reflect.apply,n,l;if(typeof t=="function"&&typeof Object.defineProperty=="function")try{n=Object.defineProperty({},"length",{get:function get(){throw l;}}),l={},t(function(){throw 42;},null,n);}catch(R){R!==l&&(t=null);}else t=null;var o=/^\s*class\b/,i=function i(R){try{var N=e.call(R);return o.test(N);}catch(_unused35){return false;}},r=function r(R){try{return i(R)?!1:(e.call(R),!0);}catch(_unused36){return false;}},a=Object.prototype.toString,s="[object Object]",c="[object Function]",u="[object GeneratorFunction]",b="[object HTMLAllCollection]",h="[object HTML document.all class]",d="[object HTMLCollection]",m=typeof Symbol=="function"&&!!Symbol.toStringTag,V=!(0 in[,]),Z=function Z(){return false;};if((typeof document==="undefined"?"undefined":_typeof(document))=="object"){var g=document.all;a.call(g)===a.call(document.all)&&(Z=function Z(R){if((V||!R)&&(_typeof(R)>"u"||_typeof(R)=="object"))try{var N=a.call(R);return (N===b||N===h||N===d||N===s)&&R("")==null;}catch(_unused37){}return false;});}return kl=t?function(R){if(Z(R))return true;if(!R||typeof R!="function"&&_typeof(R)!="object")return false;try{t(R,null,n);}catch(N){if(N!==l)return false;}return !i(R)&&r(R);}:function(R){if(Z(R))return true;if(!R||typeof R!="function"&&_typeof(R)!="object")return false;if(m)return r(R);if(i(R))return false;var N=a.call(R);return N!==c&&N!==u&&!/^\[object HTML/.test(N)?false:r(R);},kl;}var Ql,ss;function yA(){if(ss)return Ql;ss=1;var e=fA(),t=Object.prototype.toString,n=Object.prototype.hasOwnProperty,l=function l(a,s,c){for(var u=0,b=a.length;u<b;u++)n.call(a,u)&&(c==null?s(a[u],u,a):s.call(c,a[u],u,a));},o=function o(a,s,c){for(var u=0,b=a.length;u<b;u++)c==null?s(a.charAt(u),u,a):s.call(c,a.charAt(u),u,a);},i=function i(a,s,c){for(var u in a)n.call(a,u)&&(c==null?s(a[u],u,a):s.call(c,a[u],u,a));};function r(a){return t.call(a)==="[object Array]";}return Ql=function Ql(a,s,c){if(!e(s))throw new TypeError("iterator must be a function");var u;arguments.length>=3&&(u=c),r(a)?l(a,s,u):typeof a=="string"?o(a,s,u):i(a,s,u);},Ql;}var cs,us;function GA(){return us||(us=1,cs=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),cs;}var wl,ds;function XA(){if(ds)return wl;ds=1;var e=/* @__PURE__ */GA(),t=(typeof globalThis==="undefined"?"undefined":_typeof(globalThis))>"u"?bu:globalThis;return wl=function wl(){for(var n=[],l=0;l<e.length;l++)typeof t[e[l]]=="function"&&(n[n.length]=e[l]);return n;},wl;}var Ll,bs;function fu(){if(bs)return Ll;bs=1;var e=yA(),t=/* @__PURE__ */XA(),n=Zu(),l=/* @__PURE__ */_n(),o=/* @__PURE__ */Ht(),i=Oo(),r=l("Object.prototype.toString"),a=jn()(),s=(typeof globalThis==="undefined"?"undefined":_typeof(globalThis))>"u"?bu:globalThis,c=t(),u=l("String.prototype.slice"),b=l("Array.prototype.indexOf",true)||function(V,Z){for(var g=0;g<V.length;g+=1)if(V[g]===Z)return g;return -1;},h={__proto__:null};a&&o&&i?e(c,function(V){var Z=new s[V]();if(Symbol.toStringTag in Z&&i){var g=i(Z),R=o(g,Symbol.toStringTag);if(!R&&g){var N=i(g);R=o(N,Symbol.toStringTag);}if(R&&R.get){var p=n(R.get);h[/** @type {`$${import('.').TypedArrayName}`} */"$"+V]=p;}}}):e(c,function(V){var Z=new s[V](),g=Z.slice||Z.set;if(g){var R=/** @type {import('./types').BoundSlice | import('./types').BoundSet} */// @ts-expect-error TODO FIXME
|
|
708
707
|
n(g);h[/** @type {`$${import('.').TypedArrayName}`} */"$"+V]=R;}});var d=function d(V){var Z=false;return e(/** @type {Record<`\$${import('.').TypedArrayName}`, Getter>} */h,/** @type {(getter: Getter, name: `\$${import('.').TypedArrayName}`) => void} */function(g,R){if(!Z)try{"$"+g(V)===R&&(Z=/** @type {import('.').TypedArrayName} */u(R,1));}catch(_unused38){}}),Z;},m=function m(V){var Z=false;return e(/** @type {Record<`\$${import('.').TypedArrayName}`, Getter>} */h,/** @type {(getter: Getter, name: `\$${import('.').TypedArrayName}`) => void} */function(g,R){if(!Z)try{g(V),Z=/** @type {import('.').TypedArrayName} */u(R,1);}catch(_unused39){}}),Z;};return Ll=function Ll(V){if(!V||_typeof(V)!="object")return false;if(!a){var Z=u(r(V),8,-1);return b(c,Z)>-1?Z:Z!=="Object"?false:m(V);}return o?d(V):null;},Ll;}var zl,hs;function FA(){if(hs)return zl;hs=1;var e=/* @__PURE__ */fu();return zl=function zl(t){return !!e(t);},zl;}var ms;function SA(){return ms||(ms=1,function(e){var t=pA(),n=ZA(),l=/* @__PURE__ */fu(),o=/* @__PURE__ */FA();function i(S){return S.call.bind(S);}var r=(typeof BigInt==="undefined"?"undefined":_typeof(BigInt))<"u",a=(typeof Symbol==="undefined"?"undefined":_typeof(Symbol))<"u",s=i(Object.prototype.toString),c=i(Number.prototype.valueOf),u=i(String.prototype.valueOf),b=i(Boolean.prototype.valueOf);if(r)var h=i(BigInt.prototype.valueOf);if(a)var d=i(Symbol.prototype.valueOf);function m(S,Ze){if(_typeof(S)!="object")return false;try{return Ze(S),!0;}catch(_unused40){return false;}}e.isArgumentsObject=t,e.isGeneratorFunction=n,e.isTypedArray=o;function V(S){return (typeof Promise==="undefined"?"undefined":_typeof(Promise))<"u"&&S instanceof Promise||S!==null&&_typeof(S)=="object"&&typeof S.then=="function"&&typeof S.catch=="function";}e.isPromise=V;function Z(S){return (typeof ArrayBuffer==="undefined"?"undefined":_typeof(ArrayBuffer))<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(S):o(S)||y(S);}e.isArrayBufferView=Z;function g(S){return l(S)==="Uint8Array";}e.isUint8Array=g;function R(S){return l(S)==="Uint8ClampedArray";}e.isUint8ClampedArray=R;function N(S){return l(S)==="Uint16Array";}e.isUint16Array=N;function p(S){return l(S)==="Uint32Array";}e.isUint32Array=p;function U(S){return l(S)==="Int8Array";}e.isInt8Array=U;function B(S){return l(S)==="Int16Array";}e.isInt16Array=B;function J(S){return l(S)==="Int32Array";}e.isInt32Array=J;function E(S){return l(S)==="Float32Array";}e.isFloat32Array=E;function F(S){return l(S)==="Float64Array";}e.isFloat64Array=F;function I(S){return l(S)==="BigInt64Array";}e.isBigInt64Array=I;function C(S){return l(S)==="BigUint64Array";}e.isBigUint64Array=C;function Y(S){return s(S)==="[object Map]";}Y.working=(typeof Map==="undefined"?"undefined":_typeof(Map))<"u"&&Y(/* @__PURE__ */new Map());function K(S){return (typeof Map==="undefined"?"undefined":_typeof(Map))>"u"?false:Y.working?Y(S):S instanceof Map;}e.isMap=K;function $(S){return s(S)==="[object Set]";}$.working=(typeof Set==="undefined"?"undefined":_typeof(Set))<"u"&&$(/* @__PURE__ */new Set());function X(S){return (typeof Set==="undefined"?"undefined":_typeof(Set))>"u"?false:$.working?$(S):S instanceof Set;}e.isSet=X;function k(S){return s(S)==="[object WeakMap]";}k.working=(typeof WeakMap==="undefined"?"undefined":_typeof(WeakMap))<"u"&&k(/* @__PURE__ */new WeakMap());function Q(S){return (typeof WeakMap==="undefined"?"undefined":_typeof(WeakMap))>"u"?false:k.working?k(S):S instanceof WeakMap;}e.isWeakMap=Q;function H(S){return s(S)==="[object WeakSet]";}H.working=(typeof WeakSet==="undefined"?"undefined":_typeof(WeakSet))<"u"&&H(/* @__PURE__ */new WeakSet());function v(S){return H(S);}e.isWeakSet=v;function D(S){return s(S)==="[object ArrayBuffer]";}D.working=(typeof ArrayBuffer==="undefined"?"undefined":_typeof(ArrayBuffer))<"u"&&D(new ArrayBuffer());function _(S){return (typeof ArrayBuffer==="undefined"?"undefined":_typeof(ArrayBuffer))>"u"?false:D.working?D(S):S instanceof ArrayBuffer;}e.isArrayBuffer=_;function A(S){return s(S)==="[object DataView]";}A.working=(typeof ArrayBuffer==="undefined"?"undefined":_typeof(ArrayBuffer))<"u"&&(typeof DataView==="undefined"?"undefined":_typeof(DataView))<"u"&&A(new DataView(new ArrayBuffer(1),0,1));function y(S){return (typeof DataView==="undefined"?"undefined":_typeof(DataView))>"u"?false:A.working?A(S):S instanceof DataView;}e.isDataView=y;var f=(typeof SharedArrayBuffer==="undefined"?"undefined":_typeof(SharedArrayBuffer))<"u"?SharedArrayBuffer:void 0;function T(S){return s(S)==="[object SharedArrayBuffer]";}function j(S){return _typeof(f)>"u"?false:(_typeof(T.working)>"u"&&(T.working=T(new f())),T.working?T(S):S instanceof f);}e.isSharedArrayBuffer=j;function O(S){return s(S)==="[object AsyncFunction]";}e.isAsyncFunction=O;function x(S){return s(S)==="[object Map Iterator]";}e.isMapIterator=x;function L(S){return s(S)==="[object Set Iterator]";}e.isSetIterator=L;function w(S){return s(S)==="[object Generator]";}e.isGeneratorObject=w;function z(S){return s(S)==="[object WebAssembly.Module]";}e.isWebAssemblyCompiledModule=z;function M(S){return m(S,c);}e.isNumberObject=M;function ie(S){return m(S,u);}e.isStringObject=ie;function te(S){return m(S,b);}e.isBooleanObject=te;function ne(S){return r&&m(S,h);}e.isBigIntObject=ne;function ye(S){return a&&m(S,d);}e.isSymbolObject=ye;function Ie(S){return M(S)||ie(S)||te(S)||ne(S)||ye(S);}e.isBoxedPrimitive=Ie;function Ye(S){return (typeof Uint8Array==="undefined"?"undefined":_typeof(Uint8Array))<"u"&&(_(S)||j(S));}e.isAnyArrayBuffer=Ye,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(S){Object.defineProperty(e,S,{enumerable:false,value:function value(){throw new Error(S+" is not supported in userland");}});});}(Hr)),Hr;}var Vs,gs;function NA(){return gs||(gs=1,Vs=function Vs(e){return e&&_typeof(e)=="object"&&typeof e.copy=="function"&&typeof e.fill=="function"&&typeof e.readUInt8=="function";}),Vs;}var Kl={exports:{}},As;function IA(){return As||(As=1,typeof Object.create=="function"?Kl.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}}));}:Kl.exports=function(e,t){if(t){e.super_=t;var n=function n(){};n.prototype=t.prototype,e.prototype=new n(),e.prototype.constructor=e;}}),Kl.exports;}var Rs;function jo(){return Rs||(Rs=1,function(e){var t=Object.getOwnPropertyDescriptors||function(A){for(var y=Object.keys(A),f={},T=0;T<y.length;T++)f[y[T]]=Object.getOwnPropertyDescriptor(A,y[T]);return f;},n=/%[sdj%]/g;e.format=function(A){if(!U(A)){for(var y=[],f=0;f<arguments.length;f++)y.push(r(arguments[f]));return y.join(" ");}for(var f=1,T=arguments,j=T.length,O=String(A).replace(n,function(w){if(w==="%%")return "%";if(f>=j)return w;switch(w){case "%s":return String(T[f++]);case "%d":return Number(T[f++]);case "%j":try{return JSON.stringify(T[f++]);}catch(_unused41){return "[Circular]";}default:return w;}}),x=T[f];f<j;x=T[++f])R(x)||!F(x)?O+=" "+x:O+=" "+r(x);return O;},e.deprecate=function(A,y){if(_typeof(q$2)<"u"&&q$2.noDeprecation===true)return A;if(_typeof(q$2)>"u")return function(){return e.deprecate(A,y).apply(this,arguments);};var f=false;function T(){if(!f){if(q$2.throwDeprecation)throw new Error(y);q$2.traceDeprecation?console.trace(y):console.error(y),f=true;}return A.apply(this,arguments);}return T;};var l={},o=/^$/;if(q$2.env.NODE_DEBUG){var i=q$2.env.NODE_DEBUG;i=i.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),o=new RegExp("^"+i+"$","i");}e.debuglog=function(A){if(A=A.toUpperCase(),!l[A])if(o.test(A)){var y=q$2.pid;l[A]=function(){var f=e.format.apply(e,arguments);console.error("%s %d: %s",A,y,f);};}else l[A]=function(){};return l[A];};function r(A,y){var f={seen:[],stylize:s};return arguments.length>=3&&(f.depth=arguments[2]),arguments.length>=4&&(f.colors=arguments[3]),g(y)?f.showHidden=y:y&&e._extend(f,y),J(f.showHidden)&&(f.showHidden=false),J(f.depth)&&(f.depth=2),J(f.colors)&&(f.colors=false),J(f.customInspect)&&(f.customInspect=true),f.colors&&(f.stylize=a),u(f,A,f.depth);}e.inspect=r,r.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},r.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",// "name": intentionally not styling
|
|
709
708
|
regexp:"red"};function a(A,y){var f=r.styles[y];return f?"\x1B["+r.colors[f][0]+"m"+A+"\x1B["+r.colors[f][1]+"m":A;}function s(A,y){return A;}function c(A){var y={};return A.forEach(function(f,T){y[f]=true;}),y;}function u(A,y,f){if(A.customInspect&&y&&Y(y.inspect)&&// Filter out the util module, it's inspect function is special
|
|
@@ -721,7 +720,7 @@ function M$1(e, t, n) {
|
|
|
721
720
|
r.has(c) && n(o, a, c);
|
|
722
721
|
});
|
|
723
722
|
}
|
|
724
|
-
var B$
|
|
723
|
+
var B$1 = function B() {
|
|
725
724
|
var t = Array.prototype.slice.call(arguments).filter(Boolean),
|
|
726
725
|
n = {},
|
|
727
726
|
r = [];
|
|
@@ -739,7 +738,7 @@ var B$2 = function B() {
|
|
|
739
738
|
for (var a in n) Object.prototype.hasOwnProperty.call(n, a) && o.push(n[a]);
|
|
740
739
|
return o.push.apply(o, r), o.join(" ");
|
|
741
740
|
},
|
|
742
|
-
T$2 = B$
|
|
741
|
+
T$2 = B$1;
|
|
743
742
|
function D$1(e) {
|
|
744
743
|
var t = /* @__PURE__ */Object.create(null);
|
|
745
744
|
return function (n) {
|
|
@@ -751,7 +750,7 @@ var H$2 = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|de
|
|
|
751
750
|
return H$2.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
|
|
752
751
|
}
|
|
753
752
|
/* Z+1 */),
|
|
754
|
-
j$
|
|
753
|
+
j$3 = function j(e) {
|
|
755
754
|
return e.toUpperCase() === e;
|
|
756
755
|
},
|
|
757
756
|
q$1 = function q(e) {
|
|
@@ -786,7 +785,7 @@ function F$2(e) {
|
|
|
786
785
|
u = _a$as === void 0 ? e : _a$as,
|
|
787
786
|
_a$class = a.class,
|
|
788
787
|
p = _a$class === void 0 ? t : _a$class,
|
|
789
|
-
v = n.propsAsIs === void 0 ? !(typeof u == "string" && u.indexOf("-") === -1 && !j$
|
|
788
|
+
v = n.propsAsIs === void 0 ? !(typeof u == "string" && u.indexOf("-") === -1 && !j$3(u[0])) : n.propsAsIs,
|
|
790
789
|
d = z$1(v, a, ["as", "class"]);
|
|
791
790
|
d.ref = c, d.className = n.atomic ? T$2(n.class, d.className || p) : T$2(d.className || p, n.class);
|
|
792
791
|
var s = n.vars;
|
|
@@ -826,7 +825,7 @@ var ne = F$2,
|
|
|
826
825
|
},
|
|
827
826
|
k$2 = {};
|
|
828
827
|
var R$1;
|
|
829
|
-
function G$
|
|
828
|
+
function G$3() {
|
|
830
829
|
if (R$1) return k$2;
|
|
831
830
|
R$1 = 1;
|
|
832
831
|
var e = e__namespace.default;
|
|
@@ -880,7 +879,7 @@ function G$2() {
|
|
|
880
879
|
}
|
|
881
880
|
var C$1;
|
|
882
881
|
function W$1() {
|
|
883
|
-
return C$1 || (C$1 = 1, E$1.exports = G$
|
|
882
|
+
return C$1 || (C$1 = 1, E$1.exports = G$3()), E$1.exports;
|
|
884
883
|
}
|
|
885
884
|
var $$2 = W$1();
|
|
886
885
|
var w$1 = function w(e, t) {
|
|
@@ -1037,7 +1036,7 @@ function c$1(e) {
|
|
|
1037
1036
|
var l$1 = new se();
|
|
1038
1037
|
|
|
1039
1038
|
var _excluded$1 = ["value", "decimals", "duration", "preserveValue"];
|
|
1040
|
-
var G$
|
|
1039
|
+
var G$2 = {},
|
|
1041
1040
|
_$ = function $() {
|
|
1042
1041
|
return _$ = Object.assign || function (s) {
|
|
1043
1042
|
for (var i, u = 1, l = arguments.length; u < l; u++) for (var e in i = arguments[u]) Object.prototype.hasOwnProperty.call(i, e) && (s[e] = i[e]);
|
|
@@ -1149,8 +1148,8 @@ var st = /* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({
|
|
|
1149
1148
|
ot = /* @__PURE__ */c$1(st);
|
|
1150
1149
|
var K$1;
|
|
1151
1150
|
function ut() {
|
|
1152
|
-
if (K$1) return G$
|
|
1153
|
-
K$1 = 1, Object.defineProperty(G$
|
|
1151
|
+
if (K$1) return G$2;
|
|
1152
|
+
K$1 = 1, Object.defineProperty(G$2, "__esModule", {
|
|
1154
1153
|
value: true
|
|
1155
1154
|
});
|
|
1156
1155
|
var s = e__namespace.default,
|
|
@@ -1486,7 +1485,7 @@ function ut() {
|
|
|
1486
1485
|
style: w
|
|
1487
1486
|
}, o), _typeof(t.start) < "u" ? O().formattingFn(t.start) : "");
|
|
1488
1487
|
};
|
|
1489
|
-
return G$
|
|
1488
|
+
return G$2.default = tt, G$2.useCountUp = W, G$2;
|
|
1490
1489
|
}
|
|
1491
1490
|
var lt = ut();
|
|
1492
1491
|
var ft = /* @__PURE__ */f$1(lt),
|
|
@@ -1925,7 +1924,7 @@ var a = function a(C) {
|
|
|
1925
1924
|
fill: "#107D57"
|
|
1926
1925
|
}));
|
|
1927
1926
|
},
|
|
1928
|
-
B
|
|
1927
|
+
B = function B(C) {
|
|
1929
1928
|
return /* @__PURE__ */e__namespace.createElement("svg", _objectSpread2({
|
|
1930
1929
|
width: 35,
|
|
1931
1930
|
height: 35,
|
|
@@ -1961,7 +1960,7 @@ var a = function a(C) {
|
|
|
1961
1960
|
fill: "white"
|
|
1962
1961
|
}))));
|
|
1963
1962
|
},
|
|
1964
|
-
O
|
|
1963
|
+
O = function O(C) {
|
|
1965
1964
|
return /* @__PURE__ */e__namespace.createElement("svg", _objectSpread2({
|
|
1966
1965
|
width: 12,
|
|
1967
1966
|
height: 13,
|
|
@@ -2104,7 +2103,7 @@ var a = function a(C) {
|
|
|
2104
2103
|
strokeLinejoin: "round"
|
|
2105
2104
|
}));
|
|
2106
2105
|
},
|
|
2107
|
-
j$
|
|
2106
|
+
j$2 = function j(C) {
|
|
2108
2107
|
return /* @__PURE__ */e__namespace.createElement("svg", _objectSpread2({
|
|
2109
2108
|
width: 17,
|
|
2110
2109
|
height: 18,
|
|
@@ -2219,7 +2218,7 @@ var a = function a(C) {
|
|
|
2219
2218
|
}
|
|
2220
2219
|
}));
|
|
2221
2220
|
},
|
|
2222
|
-
G = function G(C) {
|
|
2221
|
+
G$1 = function G(C) {
|
|
2223
2222
|
return /* @__PURE__ */e__namespace.createElement("svg", _objectSpread2({
|
|
2224
2223
|
width: 48,
|
|
2225
2224
|
height: 48,
|
|
@@ -3230,10 +3229,10 @@ var a = function a(C) {
|
|
|
3230
3229
|
"icon-prediction": s1,
|
|
3231
3230
|
"icon-insight": L1,
|
|
3232
3231
|
"icon-poll": w1,
|
|
3233
|
-
"icon-play": G,
|
|
3232
|
+
"icon-play": G$1,
|
|
3234
3233
|
"icon-pause": A,
|
|
3235
3234
|
"icon-masters-logo": I$1,
|
|
3236
|
-
"icon-logout": j$
|
|
3235
|
+
"icon-logout": j$2,
|
|
3237
3236
|
"icon-link": b$1,
|
|
3238
3237
|
"icon-external-link": D,
|
|
3239
3238
|
"icon-invite-arrow": _,
|
|
@@ -3261,7 +3260,7 @@ var a = function a(C) {
|
|
|
3261
3260
|
"icon-twitter-verified": Q,
|
|
3262
3261
|
"icon-trophy-bet-pack": J,
|
|
3263
3262
|
"icon-trivia-transparent": q,
|
|
3264
|
-
dashboard: B
|
|
3263
|
+
dashboard: B,
|
|
3265
3264
|
iconMute: S,
|
|
3266
3265
|
iconUnMute: X,
|
|
3267
3266
|
correct: c1,
|
|
@@ -3280,13 +3279,13 @@ var a = function a(C) {
|
|
|
3280
3279
|
chevronRight: h,
|
|
3281
3280
|
noImageIcon: a1,
|
|
3282
3281
|
iconArrowRight: f,
|
|
3283
|
-
iconEarlyPrediction: O
|
|
3282
|
+
iconEarlyPrediction: O,
|
|
3284
3283
|
iconArrowPrev: p,
|
|
3285
3284
|
mastersLogoWhite: i1,
|
|
3286
3285
|
loader: t1,
|
|
3287
3286
|
fgIcon: s
|
|
3288
3287
|
},
|
|
3289
|
-
|
|
3288
|
+
E1 = function E1(_ref) {
|
|
3290
3289
|
var C = _ref.name,
|
|
3291
3290
|
i = _ref.style,
|
|
3292
3291
|
n = _ref.className,
|
|
@@ -3307,7 +3306,7 @@ var H = {
|
|
|
3307
3306
|
sdk: null
|
|
3308
3307
|
},
|
|
3309
3308
|
d = e$2.createContext(H),
|
|
3310
|
-
j = function j() {
|
|
3309
|
+
j$1 = function j() {
|
|
3311
3310
|
var _l = e$2.useContext(d),
|
|
3312
3311
|
e = _l.sdk;
|
|
3313
3312
|
return e;
|
|
@@ -3341,7 +3340,7 @@ var I = /* @__PURE__ */ne("div")({
|
|
|
3341
3340
|
propsAsIs: false
|
|
3342
3341
|
}),
|
|
3343
3342
|
b = function b() {
|
|
3344
|
-
return
|
|
3343
|
+
return E1;
|
|
3345
3344
|
},
|
|
3346
3345
|
k = /* @__PURE__ */ne(b())({
|
|
3347
3346
|
name: "PointsSvg",
|
|
@@ -3363,7 +3362,7 @@ var I = /* @__PURE__ */ne("div")({
|
|
|
3363
3362
|
class: "prj9b3v",
|
|
3364
3363
|
propsAsIs: false
|
|
3365
3364
|
}),
|
|
3366
|
-
|
|
3365
|
+
C = function C(_ref) {
|
|
3367
3366
|
var s = _ref.points,
|
|
3368
3367
|
e$1 = _ref.onClick;
|
|
3369
3368
|
return /* @__PURE__ */jsxRuntime.jsxs(I, {
|
|
@@ -3384,7 +3383,7 @@ var I = /* @__PURE__ */ne("div")({
|
|
|
3384
3383
|
})]
|
|
3385
3384
|
});
|
|
3386
3385
|
},
|
|
3387
|
-
|
|
3386
|
+
$ = function $(_ref2) {
|
|
3388
3387
|
var s = _ref2.gamification;
|
|
3389
3388
|
var e = s.userSummary.$store,
|
|
3390
3389
|
_u = e$2.useState(0),
|
|
@@ -3399,7 +3398,7 @@ var I = /* @__PURE__ */ne("div")({
|
|
|
3399
3398
|
return function () {
|
|
3400
3399
|
r();
|
|
3401
3400
|
};
|
|
3402
|
-
}, [e]), /* @__PURE__ */jsxRuntime.jsx(
|
|
3401
|
+
}, [e]), /* @__PURE__ */jsxRuntime.jsx(C, {
|
|
3403
3402
|
points: a,
|
|
3404
3403
|
onClick: function onClick() {
|
|
3405
3404
|
var r = s.status.get();
|
|
@@ -3419,24 +3418,24 @@ var I = /* @__PURE__ */ne("div")({
|
|
|
3419
3418
|
}
|
|
3420
3419
|
});
|
|
3421
3420
|
},
|
|
3422
|
-
|
|
3421
|
+
j = function j(_ref3) {
|
|
3423
3422
|
var s = _ref3.sdk;
|
|
3424
3423
|
if (!re(s.featuresList.getStore())) return null;
|
|
3425
3424
|
var e = s.getFeature(be.GAMES);
|
|
3426
|
-
return e ? /* @__PURE__ */jsxRuntime.jsx(
|
|
3425
|
+
return e ? /* @__PURE__ */jsxRuntime.jsx($, {
|
|
3427
3426
|
gamification: e
|
|
3428
3427
|
}) : null;
|
|
3429
3428
|
},
|
|
3430
|
-
|
|
3429
|
+
G = function G(_ref4) {
|
|
3431
3430
|
var s = _ref4.theme;
|
|
3432
|
-
var e = j(),
|
|
3431
|
+
var e = j$1(),
|
|
3433
3432
|
a = V();
|
|
3434
3433
|
return e ? /* @__PURE__ */jsxRuntime.jsx("div", {
|
|
3435
3434
|
className: "StreamLayerSDK",
|
|
3436
3435
|
children: /* @__PURE__ */jsxRuntime.jsx(l$2, {
|
|
3437
3436
|
customTheme: s !== null && s !== void 0 ? s : a.theme,
|
|
3438
3437
|
themeMode: a.themeMode,
|
|
3439
|
-
children: /* @__PURE__ */jsxRuntime.jsx(
|
|
3438
|
+
children: /* @__PURE__ */jsxRuntime.jsx(j, {
|
|
3440
3439
|
sdk: e
|
|
3441
3440
|
})
|
|
3442
3441
|
})
|
|
@@ -7186,4 +7185,4 @@ var indexD8wyDNJD = /*#__PURE__*/Object.freeze({
|
|
|
7186
7185
|
i: mr
|
|
7187
7186
|
});
|
|
7188
7187
|
|
|
7189
|
-
exports.StreamLayerSDKPoints =
|
|
7188
|
+
exports.StreamLayerSDKPoints = G;
|