@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.
@@ -64,7 +64,6 @@ require('core-js/modules/esnext.iterator.find.js');
64
64
  require('core-js/modules/esnext.iterator.map.js');
65
65
  require('core-js/modules/esnext.iterator.to-array.js');
66
66
  var vt$2 = require('lodash.throttle');
67
- require('@storybook/blocks');
68
67
  require('core-js/modules/es.array.find-index.js');
69
68
  require('core-js/modules/es.array.reduce.js');
70
69
  require('core-js/modules/es.object.entries.js');
@@ -721,7 +720,7 @@ o=new Ld(t,n,this.check)),o;case "message":return No$1(t,n,this.check);case "sca
721
720
  * with the code Unknown by default.
722
721
  * The original value will be used for the "cause" property for the new
723
722
  * ConnectError.
724
- */_inherits(ue,_Error2);return _createClass(ue,[{key:"findDetails",value:function findDetails(t){var n=t.kind==="message"?{getMessage:function getMessage(o){return o===t.typeName?t:void 0;}}:t,l=[];var _iterator55=_createForOfIteratorHelper(this.details),_step55;try{for(_iterator55.s();!(_step55=_iterator55.n()).done;){var o=_step55.value;if("desc"in o){n.getMessage(o.desc.typeName)&&l.push(ze$2(o.desc,o.value));continue;}var i=n.getMessage(o.type);if(i)try{l.push(sn$2(i,o.value));}catch(_unused12){}}}catch(err){_iterator55.e(err);}finally{_iterator55.f();}return l;}}],[{key:"from",value:function from(t){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:P$3.Unknown;return t instanceof ue?t:t instanceof Error?t.name=="AbortError"?new ue(t.message,P$3.Canceled):new ue(t.message,n,void 0,void 0,t):new ue(String(t),n,void 0,void 0,t);}},{key:Symbol.hasInstance,value:function value(t){return t instanceof Error?Object.getPrototypeOf(t)===ue.prototype?true:t.name==="ConnectError"&&"code"in t&&typeof t.code=="number"&&"metadata"in t&&"details"in t&&Array.isArray(t.details)&&"rawMessage"in t&&typeof t.rawMessage=="string"&&"cause"in t:false;}}]);}(/*#__PURE__*/_wrapNativeSuper(Error));function Ih(e,t){return e.length?"[".concat(_i$1(t),"] ").concat(e):"[".concat(_i$1(t),"]");}function nr$3(e,t){return {id:Symbol(t===null||t===void 0?void 0:t.description),defaultValue:e};}var am=function am(){return {emit:function emit(e){for(var _len8=arguments.length,t=new Array(_len8>1?_len8-1:0),_key8=1;_key8<_len8;_key8++){t[_key8-1]=arguments[_key8];}for(var n=this.events[e]||[],l=0,o=n.length;l<o;l++)n[l].apply(n,t);},events:{},on:function on(e,t){var _this$events,_this4=this;return ((_this$events=this.events)[e]||(_this$events[e]=[])).push(t),function(){var _this4$events$e;_this4.events[e]=(_this4$events$e=_this4.events[e])===null||_this4$events$e===void 0?void 0:_this4$events$e.filter(function(n){return t!==n;});};}};};function sm(_ref9){var e=_ref9.retryCount;return ~~((Math.random()+0.5)*(1<<(e<8?e:8)))*2e3;}var cm=function cm(_ref0){var _ref1=_slicedToArray(_ref0,3),e=_ref1[0],t=_ref1[1],n=_ref1[2];var l=function l(){var _ref10=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},_ref10$cache=_ref10.cache,g=_ref10$cache===void 0?/* @__PURE__ */new Map():_ref10$cache,R=_ref10.fetcher,N=_objectWithoutProperties(_ref10,_excluded$5);var p=am();var U=true;t(function(){U=e(),U&&p.emit(a);}),n(function(){return p.emit(s);});var B=/* @__PURE__ */new Map(),J=/* @__PURE__ */new Map(),E=/* @__PURE__ */new Map();var F={};var I=function I(v){var D=g.get(v);return D?(D.expires||0)>d()?[D.data,D.error]:[]:[];},C=/*#__PURE__*/function(){var _ref12=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee10(_ref11,_,A){var _I,_I2;var _ref13,v,D,y,f,_A$F,_A$F$dedupeTime,T,_A$F$cacheLifetime,j,O,_A$F$onErrorRetry,x,L,w,z,M,ie,te,ne,_A$onError,_g$get,_ne,ye,_t18;return _regenerator().w(function(_context16){while(1)switch(_context16.p=_context16.n){case 0:_ref13=_slicedToArray(_ref11,2),v=_ref13[0],D=_ref13[1];if(U){_context16.n=1;break;}return _context16.a(2);case 1:y=function y(te){_.key===v&&(_.set(te),p.emit(b,v,te,true));},f=function f(te){y(_objectSpread2(_objectSpread2(_objectSpread2({},te===void 0?{}:{data:te}),V),{},{promise:E.get(v)}));};_A$F=_objectSpread2(_objectSpread2({},A),F),_A$F$dedupeTime=_A$F.dedupeTime,T=_A$F$dedupeTime===void 0?4e3:_A$F$dedupeTime,_A$F$cacheLifetime=_A$F.cacheLifetime,j=_A$F$cacheLifetime===void 0?1/0:_A$F$cacheLifetime,O=_A$F.fetcher,_A$F$onErrorRetry=_A$F.onErrorRetry,x=_A$F$onErrorRetry===void 0?sm:_A$F$onErrorRetry;j<T&&(j=T);L=d();if(!E.has(v)){_context16.n=2;break;}_.value.loading||f(I(v)[0]);return _context16.a(2);case 2:M=g.get(v);if(!(((M===null||M===void 0?void 0:M.data)!==void 0||M!==null&&M!==void 0&&M.error)&&(_I=I(v),_I2=_slicedToArray(_I,2),w=_I2[0],z=_I2[1],(M.created||0)+T>L))){_context16.n=3;break;}(_.value.data!=w||_.value.error!=z)&&y(_objectSpread2(_objectSpread2({},Z),{},{data:w,error:z}));return _context16.a(2);case 3:ie=zb();_context16.p=4;clearTimeout(J.get(v));te=O.apply(void 0,_toConsumableArray(D));E.set(v,te),f(w);_context16.n=5;return te;case 5:ne=_context16.v;g.set(v,{data:ne,created:d(),expires:d()+j}),y(_objectSpread2({data:ne},Z));_context16.n=7;break;case 6:_context16.p=6;_t18=_context16.v;(_A$onError=A.onError)===null||_A$onError===void 0||_A$onError.call(A,_t18);_ne=(((_g$get=g.get(v))===null||_g$get===void 0?void 0:_g$get.retryCount)||0)+1;if(g.set(v,{error:_t18,created:d(),expires:d()+j,retryCount:_ne}),x){ye=x({error:_t18,key:v,retryCount:_ne});ye&&J.set(v,setTimeout(function(){$(v),g.set(v,{retryCount:_ne});},ye));}y(_objectSpread2({data:_.value.data,error:_t18},Z));case 7:_context16.p=7;ie(),E.delete(v);return _context16.f(7);case 8:return _context16.a(2);}},_callee10,null,[[4,6,7,8]]);}));return function C(_x0,_x1,_x10){return _ref12.apply(this,arguments);};}(),Y=function Y(v){var _ref14=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},_ref14$fetcher=_ref14.fetcher,D=_ref14$fetcher===void 0?R:_ref14$fetcher,_=_objectWithoutProperties(_ref14,_excluded2$2);var A=/* @__PURE__ */oo$1(_objectSpread2({},Z)),y=_objectSpread2(_objectSpread2(_objectSpread2({},N),_),{},{fetcher:D});A._=m,A.invalidate=function(){var M=A.key;M&&$(M);},A.revalidate=function(){var M=A.key;M&&X(M);},A.mutate=function(M){var ie=A.key;ie&&k(ie,M);},A.fetch=/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee11(){var M,ie,te;return _regenerator().w(function(_context17){while(1)switch(_context17.n){case 0:ie=new Promise(function(ne){return M=ne;}),te=A.listen(function(_ref16){var ne=_ref16.error,ye=_ref16.data;ne!==void 0&&M({error:ne}),ye!==void 0&&M({data:ye});});return _context17.a(2,ie.finally(te));}},_callee11);}));var f,T,j,O,x,L=[];Zc(A,function(){var _i25,_i26,_ie;var M=!f;_i25=i(v),_i26=_slicedToArray(_i25,2),x=_i26[0],f=_i26[1],O=x.subscribe(function(S){if(S){var _S=_slicedToArray(S,2),Ze=_S[0],$e=_S[1];A.key=Ze,C([Ze,$e],A,y),T=Ze,j=$e;}else A.key=T=j=void 0,A.set(_objectSpread2({},Z));});var ie=x.get();ie&&(_ie=_slicedToArray(ie,2),T=_ie[0],j=_ie[1],M&&w());var _y$revalidateInterval=y.revalidateInterval,te=_y$revalidateInterval===void 0?0:_y$revalidateInterval,ne=y.revalidateOnFocus,ye=y.revalidateOnReconnect,Ie=function Ie(){T&&C([T,j],A,y);};te>0&&B.set(v,setInterval(Ie,te)),ne&&L.push(p.on(a,Ie)),ye&&L.push(p.on(s,Ie));var Ye=function Ye(S){T&&h(T,S)&&C([T,j],A,y);};L.push(p.on(c,Ye),p.on(u,Ye),p.on(b,function(S,Ze,$e){T&&h(T,S)&&A.value!==Ze&&A.value.data!==Ze&&A.set($e?Ze:_objectSpread2({data:Ze},Z));}));});var w=function w(){T&&j&&C([T,j],A,y);},z=A.listen;return A.listen=function(M){var ie=z(M);return M(A.value),w(),ie;},Mi$1(A,function(){var _f,_O;A.value=_objectSpread2({},Z),(_f=f)!==null&&_f!==void 0&&_f(),L.forEach(function(M){return M();}),L=[],(_O=O)!==null&&_O!==void 0&&_O(),clearInterval(B.get(v));}),A;},K=function K(v,D){var _iterator60=_createForOfIteratorHelper(g.keys()),_step60;try{for(_iterator60.s();!(_step60=_iterator60.n()).done;){var _=_step60.value;h(_,v)&&D(_);}}catch(err){_iterator60.e(err);}finally{_iterator60.f();}},$=function $(v){K(v,function(D){g.delete(D);}),p.emit(c,v);},X=function X(v){K(v,function(D){var _=g.get(D);_&&g.set(D,_objectSpread2(_objectSpread2({},_),{},{created:-1/0}));}),p.emit(u,v);},k=function k(v,D){K(v,function(_){var _N$cacheLifetime;D===void 0?g.delete(_):g.set(_,{data:D,created:d(),expires:d()+((_N$cacheLifetime=N.cacheLifetime)!==null&&_N$cacheLifetime!==void 0?_N$cacheLifetime:8e3)});}),p.emit(b,v,D);};function Q(v,D){var _ref17=D!==null&&D!==void 0?D:{throttleCalls:true,onError:N===null||N===void 0?void 0:N.onError},_=_ref17.throttleCalls,A=_ref17.onError,y=/*#__PURE__*/function(_y){function y(_x11){return _y.apply(this,arguments);}y.toString=function(){return _y.toString();};return y;}(function(){var _ref18=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee12(T){var _f$value,_F$fetcher;var j,O,x,L,w,_t19;return _regenerator().w(function(_context18){while(1)switch(_context18.p=_context18.n){case 0:if(!(_&&(_f$value=f.value)!==null&&_f$value!==void 0&&_f$value.loading)){_context18.n=1;break;}return _context18.a(2);case 1:j=(_F$fetcher=F.fetcher)!==null&&_F$fetcher!==void 0?_F$fetcher:v,O=[],x=[],L=function L(w,z){f.lc&&f.setKey(w,z);};_context18.p=2;f.set(_objectSpread2({error:void 0,data:void 0,mutate:y},V));_context18.n=3;return j({data:T,invalidate:function invalidate(z){O.push(z);},revalidate:function revalidate(z){x.push(z);},getCacheUpdater:function getCacheUpdater(z){var _g$get2;var M=arguments.length>1&&arguments[1]!==undefined?arguments[1]:true;return [function(ie){k(z,ie),M&&x.push(z);},(_g$get2=g.get(z))===null||_g$get2===void 0?void 0:_g$get2.data];}});case 3:w=_context18.v;return _context18.a(2,(L("data",w),w));case 4:_context18.p=4;_t19=_context18.v;A!==null&&A!==void 0&&A(_t19),L("error",_t19),f.setKey("error",_t19);case 5:_context18.p=5;L("loading",false),O.forEach($),x.forEach(X);return _context18.f(5);case 6:return _context18.a(2);}},_callee12,null,[[2,4,5,6]]);}));return function(_x12){return _ref18.apply(this,arguments);};}()),f=/* @__PURE__ */oo$1(_objectSpread2({mutate:y},Z));return Mi$1(f,function(){return f.set(_objectSpread2({mutate:y},Z));}),f.mutate=y,f;}return [Y,Q,{__unsafeOverruleSettings:function __unsafeOverruleSettings(v){console.warn("You should only use __unsafeOverruleSettings in test environment"),F=v;},invalidateKeys:$,revalidateKeys:X,mutateCache:k}];};function o(g){return typeof g=="string"||typeof g=="number"||g===true;}var i=function i(g){if(o(g))return [/* @__PURE__ */bt$1([""+g,[g]]),function(){}];var R=[],N=/* @__PURE__ */bt$1(null),p=/* @__PURE__ */new Map(),U=function U(){R.some(function(E){return E==null||E===false;})?N.set(null):N.set([R.join(""),R]);};for(var E=0;E<g.length;E++){var F=g[E];o(F)?R.push(F):(R.push(null),p.set(F,E));}var B=_toConsumableArray(p.keys()),J=/* @__PURE__ */lo$1(B,function(){for(var _len9=arguments.length,E=new Array(_len9),_key9=0;_key9<_len9;_key9++){E[_key9]=arguments[_key9];}for(var _F=0;_F<E.length;_F++){var I=B[_F],C=p.get(I);R[C]=I._===m?I.value&&"data"in I.value?I.key:null:E[_F];}U();});return U(),[N,J.subscribe(r)];};function r(){}var a=1,s=2,c=3,u=4,b=5,h=function h(g,R){return Array.isArray(R)?R.includes(g):typeof R=="function"?R(g):g===R;},d=function d(){return (/* @__PURE__ */new Date()).getTime();},m=/* @__PURE__ */Symbol(),V={loading:true},Z={loading:false};return l;},mr$3=function mr(e,t){(typeof window==="undefined"?"undefined":_typeof(window))>"u"||addEventListener(e,t);},um=[function(){return !document.hidden;},function(e){return mr$3("visibilitychange",e);},function(e){return mr$3("online",e);}];cm(um);var zo$1=/* @__PURE__ */se$2("CjpzdHJlYW1sYXllci9hbmFseXRpY3MvdjEvbm90aWZpY2F0aW9ucy9ub3RpZmljYXRpb25zLnByb3RvEiZzdHJlYW1sYXllci5hbmFseXRpY3MudjEubm90aWZpY2F0aW9ucyKaBAoZVG90YWxOb3RpZmljYXRpb25zUmVxdWVzdBJkCgZmaWx0ZXIYASABKAsyVC5zdHJlYW1sYXllci5hbmFseXRpY3MudjEubm90aWZpY2F0aW9ucy5Ub3RhbE5vdGlmaWNhdGlvbnNSZXF1ZXN0LlRvdGFsUmVxdWVzdEZpbHRlchqWAwoSVG90YWxSZXF1ZXN0RmlsdGVyEjcKBnBlcmlvZBgBIAEoCzInLnN0cmVhbWxheWVyLmFuYWx5dGljcy52MS5jb21tb24uUGVyaW9kEhEKCWV2ZW50X2lkcxgCIAMoBBI9CgpjYXRlZ29yaWVzGAMgAygOMikuc3RyZWFtbGF5ZXIuYW5hbHl0aWNzLnYxLmNvbW1vbi5DYXRlZ29yeRJUChJub3RpZmljYXRpb25fa2luZHMYBCADKA4yOC5zdHJlYW1sYXllci5hbmFseXRpY3MudjEubm90aWZpY2F0aW9ucy5Ob3RpZmljYXRpb25LaW5kElQKEm5vdGlmaWNhdGlvbl90eXBlcxgFIAMoDjI4LnN0cmVhbWxheWVyLmFuYWx5dGljcy52MS5ub3RpZmljYXRpb25zLk5vdGlmaWNhdGlvblR5cGUSMwoEa2luZBgGIAEoDjIlLnN0cmVhbWxheWVyLmFuYWx5dGljcy52MS5jb21tb24uS2luZBIUCgxjb3VudF91bmlxdWUYByABKAgitgEKGlRvdGFsTm90aWZpY2F0aW9uc1Jlc3BvbnNlEmIKBGRhdGEYASADKAsyVC5zdHJlYW1sYXllci5hbmFseXRpY3MudjEubm90aWZpY2F0aW9ucy5Ub3RhbE5vdGlmaWNhdGlvbnNSZXNwb25zZS5Ub3RhbFJlc3BvbnNlRGF0YRo0ChFUb3RhbFJlc3BvbnNlRGF0YRIQCghldmVudF9pZBgBIAEoBBINCgVjb3VudBgCIAEoBCK2BgoXU2VuZE5vdGlmaWNhdGlvblJlcXVlc3QSXwoEZGF0YRgBIAMoCzJRLnN0cmVhbWxheWVyLmFuYWx5dGljcy52MS5ub3RpZmljYXRpb25zLlNlbmROb3RpZmljYXRpb25SZXF1ZXN0LkNyZWF0ZVJlcXVlc3REYXRhGrkFChFDcmVhdGVSZXF1ZXN0RGF0YRIQCghldmVudF9pZBgBIAEoBBIPCgd1c2VyX2lkGAIgASgEEjsKCGNhdGVnb3J5GAMgASgOMikuc3RyZWFtbGF5ZXIuYW5hbHl0aWNzLnYxLmNvbW1vbi5DYXRlZ29yeRJTChFub3RpZmljYXRpb25fa2luZBgEIAEoDjI4LnN0cmVhbWxheWVyLmFuYWx5dGljcy52MS5ub3RpZmljYXRpb25zLk5vdGlmaWNhdGlvbktpbmQSUwoRbm90aWZpY2F0aW9uX3R5cGUYBSABKA4yOC5zdHJlYW1sYXllci5hbmFseXRpY3MudjEubm90aWZpY2F0aW9ucy5Ob3RpZmljYXRpb25UeXBlEjMKBGtpbmQYBiABKA4yJS5zdHJlYW1sYXllci5hbmFseXRpY3MudjEuY29tbW9uLktpbmQSMwoPdHJhY2tfdGltZXN0YW1wGAcgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIRCglkZXZpY2VfaWQYCCABKAkSCgoCb3MYCSABKAkSEgoKdXNlcl9hZ2VudBgKIAEoCRIWCg5zbF9zZGtfdmVyc2lvbhgLIAEoCRISCgpzZXNzaW9uX2lkGAwgASgJEhoKEm92ZXJsYXlfc2Vzc2lvbl9pZBgNIAEoCRIQCgh0b3BpY19pZBgOIAEoCRI+Cgp0b3BpY190eXBlGBUgASgOMiouc3RyZWFtbGF5ZXIuYW5hbHl0aWNzLnYxLmNvbW1vbi5Ub3BpY1R5cGUSEwoLdXNlcl9pZF9zdHIYEyABKAkSTgoSc2NyZWVuX29yaWVudGF0aW9uGBQgASgOMjIuc3RyZWFtbGF5ZXIuYW5hbHl0aWNzLnYxLmNvbW1vbi5TY3JlZW5PcmllbnRhdGlvbiLSAQoYU2VuZE5vdGlmaWNhdGlvblJlc3BvbnNlEmEKBGRhdGEYASABKAsyUy5zdHJlYW1sYXllci5hbmFseXRpY3MudjEubm90aWZpY2F0aW9ucy5TZW5kTm90aWZpY2F0aW9uUmVzcG9uc2UuQ3JlYXRlUmVzcG9uc2VEYXRhGlMKEkNyZWF0ZVJlc3BvbnNlRGF0YRI9CgZyZXN1bHQYASABKA4yLS5zdHJlYW1sYXllci5hbmFseXRpY3MudjEuY29tbW9uLlJlc3VsdFN0YXR1cyKYAwolVG90YWxOb3RpZmljYXRpb25zQnlDYXRlZ29yaWVzUmVxdWVzdBJwCgZmaWx0ZXIYASABKAsyYC5zdHJlYW1sYXllci5hbmFseXRpY3MudjEubm90aWZpY2F0aW9ucy5Ub3RhbE5vdGlmaWNhdGlvbnNCeUNhdGVnb3JpZXNSZXF1ZXN0LlRvdGFsUmVxdWVzdEZpbHRlchr8AQoSVG90YWxSZXF1ZXN0RmlsdGVyEjcKBnBlcmlvZBgBIAEoCzInLnN0cmVhbWxheWVyLmFuYWx5dGljcy52MS5jb21tb24uUGVyaW9kEhAKCGV2ZW50X2lkGAIgASgEEjMKBGtpbmQYAyABKA4yJS5zdHJlYW1sYXllci5hbmFseXRpY3MudjEuY29tbW9uLktpbmQSPQoKY2F0ZWdvcmllcxgEIAMoDjIpLnN0cmVhbWxheWVyLmFuYWx5dGljcy52MS5jb21tb24uQ2F0ZWdvcnkSEQoJcm91dGVfbWFwGAUgASgJEhQKDGNvdW50X3VuaXF1ZRgGIAEoCCLOAQomVG90YWxOb3RpZmljYXRpb25zQnlDYXRlZ29yaWVzUmVzcG9uc2USbgoEZGF0YRgBIAMoCzJgLnN0cmVhbWxheWVyLmFuYWx5dGljcy52MS5ub3RpZmljYXRpb25zLlRvdGFsTm90aWZpY2F0aW9uc0J5Q2F0ZWdvcmllc1Jlc3BvbnNlLlRvdGFsUmVzcG9uc2VEYXRhGjQKEVRvdGFsUmVzcG9uc2VEYXRhEhAKCGV2ZW50X2lkGAEgASgEEg0KBWNvdW50GAIgASgEKvECChBOb3RpZmljYXRpb25LaW5kEhsKF05PVElGSUNBVElPTl9LSU5EX1VOU0VUEAASHQoZTk9USUZJQ0FUSU9OX0tJTkRfTUVTU0FHRRABEhoKFk5PVElGSUNBVElPTl9LSU5EX0NBTEwQAhIdChlOT1RJRklDQVRJT05fS0lORF9UV0lUVEVSEAMSGgoWTk9USUZJQ0FUSU9OX0tJTkRfV0FWRRAEEhwKGE5PVElGSUNBVElPTl9LSU5EX0lOUExBWRAFEiAKHE5PVElGSUNBVElPTl9LSU5EX0dST1VQX0NBTEwQBhIhCh1OT1RJRklDQVRJT05fS0lORF9NSVNTRURfQ0FMTBAHEicKI05PVElGSUNBVElPTl9LSU5EX01JU1NFRF9HUk9VUF9DQUxMEAgSIQodTk9USUZJQ0FUSU9OX0tJTkRfV0FUQ0hfUEFSVFkQCRIbChdOT1RJRklDQVRJT05fS0lORF9QT0xMUxAKKmkKEE5vdGlmaWNhdGlvblR5cGUSGwoXTk9USUZJQ0FUSU9OX1RZUEVfVU5TRVQQABIcChhOT1RJRklDQVRJT05fVFlQRV9JTl9BUFAQARIaChZOT1RJRklDQVRJT05fVFlQRV9QVVNIEAJCvgEKKmNvbS5zdHJlYW1sYXllci5hbmFseXRpY3Mubm90aWZpY2F0aW9ucy52MUIdU3RyZWFtTGF5ZXJOb3RpZmljYXRpb25zUHJvdG9QAVpmZ2l0aHViLmNvbS9zdHJlYW1sYXllci9zbC1wcm90b2ZpbGVzLy5idWlsZC9nby9zdHJlYW1sYXllci9hbmFseXRpY3MvdjEvbm90aWZpY2F0aW9ucztzbF9ub3RpZmljYXRpb25zogIGU0xfQVBJYgZwcm90bzM",[Ce$2,St$1]),Im=/* @__PURE__ */oe$1(zo$1,0),nt$2=/* @__PURE__ */le$2(Im);function Jm(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e;}var Mc$1={exports:{}},Ee$1=Mc$1.exports={},De$3,je$1;function ro$1(){throw new Error("setTimeout has not been defined");}function ao$1(){throw new Error("clearTimeout has not been defined");}(function(){try{typeof setTimeout=="function"?De$3=setTimeout:De$3=ro$1;}catch(_unused14){De$3=ro$1;}try{typeof clearTimeout=="function"?je$1=clearTimeout:je$1=ao$1;}catch(_unused15){je$1=ao$1;}})();function Hc(e){if(De$3===setTimeout)return setTimeout(e,0);if((De$3===ro$1||!De$3)&&setTimeout)return De$3=setTimeout,setTimeout(e,0);try{return De$3(e,0);}catch(_unused16){try{return De$3.call(null,e,0);}catch(_unused17){return De$3.call(this,e,0);}}}function vm(e){if(je$1===clearTimeout)return clearTimeout(e);if((je$1===ao$1||!je$1)&&clearTimeout)return je$1=clearTimeout,clearTimeout(e);try{return je$1(e);}catch(_unused18){try{return je$1.call(null,e);}catch(_unused19){return je$1.call(this,e);}}}var ct$2=[],vt$1=false,yt$1,Bn$1=-1;function Tm(){!vt$1||!yt$1||(vt$1=false,yt$1.length?ct$2=yt$1.concat(ct$2):Bn$1=-1,ct$2.length&&Oc$1());}function Oc$1(){if(!vt$1){var e=Hc(Tm);vt$1=true;for(var t=ct$2.length;t;){for(yt$1=ct$2,ct$2=[];++Bn$1<t;)yt$1&&yt$1[Bn$1].run();Bn$1=-1,t=ct$2.length;}yt$1=null,vt$1=false,vm(e);}}Ee$1.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];ct$2.push(new Dc(e,t)),ct$2.length===1&&!vt$1&&Hc(Oc$1);};function Dc(e,t){this.fun=e,this.array=t;}Dc.prototype.run=function(){this.fun.apply(null,this.array);};Ee$1.title="browser";Ee$1.browser=true;Ee$1.env={};Ee$1.argv=[];Ee$1.version="";Ee$1.versions={};function Vt$2(){}Ee$1.on=Vt$2;Ee$1.addListener=Vt$2;Ee$1.once=Vt$2;Ee$1.off=Vt$2;Ee$1.removeListener=Vt$2;Ee$1.removeAllListeners=Vt$2;Ee$1.emit=Vt$2;Ee$1.prependListener=Vt$2;Ee$1.prependOnceListener=Vt$2;Ee$1.listeners=function(e){return [];};Ee$1.binding=function(e){throw new Error("process.binding is not supported");};Ee$1.cwd=function(){return "/";};Ee$1.chdir=function(e){throw new Error("process.chdir is not supported");};Ee$1.umask=function(){return 0;};var km=Mc$1.exports;var q$3=/* @__PURE__ */Jm(km),Qm=Cu$1.pino({level:"trace",enabled:(typeof window==="undefined"?"undefined":_typeof(window))<"u"&&!!window.localStorage.getItem("SL_DEBUG"),browser:{write:function write(e){console.log(e);}}}),ve$2=function ve(e,t){return Qm.child({name:e},t);};var wm=/*#__PURE__*/function(_Event){function wm(t,n){var _this5;_classCallCheck(this,wm);_this5=_callSuper(this,wm,[t]),_defineProperty(_assertThisInitialized(_this5),"slEventBus",void 0),_this5.slEventBus=n;return _this5;}_inherits(wm,_Event);return _createClass(wm);}(/*#__PURE__*/_wrapNativeSuper(Event));var Lm=ve$2("event-bus");var zm=/*#__PURE__*/function(){function zm(){var _this6=this;var _t20=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"sl-event-bus";_classCallCheck(this,zm);_defineProperty(this,"name",void 0);_defineProperty(this,"listeners",void 0);_defineProperty(this,"emit",function(t,n){var l=new wm(_this6.name,_objectSpread2(_objectSpread2({},n),{},{type:t}));Lm.debug(l,"Emitting event"),window.dispatchEvent(l);});_defineProperty(this,"destroy",function(){_this6.listeners.forEach(function(t){window.removeEventListener(_this6.name,t),_this6.listeners.delete(t);}),_this6.listeners.clear();});this.name=_t20,this.listeners=/* @__PURE__ */new Set();}return _createClass(zm,[{key:"listen",value:function listen(t){var _this7=this;return window.addEventListener(this.name,t),this.listeners.add(t),function(){_this7.off(t);};}},{key:"off",value:function off(t){window.removeEventListener(this.name,t),this.listeners.delete(t);}}]);}();var ut$3;(function(e){e[e.ONBOARDING=1]="ONBOARDING",e[e.QUESTION=2]="QUESTION",e[e.QUESTION_RESOLVED=3]="QUESTION_RESOLVED";})(ut$3||(ut$3={}));window.slStore=/* @__PURE__ */Object.create(null);var ot$3;(function(e){e.ORGANIZATION="ORGANIZATION",e.STREAM="STREAM";})(ot$3||(ot$3={}));_defineProperty(_defineProperty(_defineProperty(_defineProperty({},be$2.BETTING,"betting"),be$2.GAMES,"games"),be$2.PUBLIC_CHAT,"publicChat"),be$2.TWITTER,"twitter");var pt$1;(function(e){e.Ready="ready",e.Suspended="suspended";})(pt$1||(pt$1={}));new zm();window.dispatchEvent(new CustomEvent("grpc_devtools_loaded"));function _c$1(e){return e instanceof DOMException&&(// everything except Firefox
723
+ */_inherits(ue,_Error2);return _createClass(ue,[{key:"findDetails",value:function findDetails(t){var n=t.kind==="message"?{getMessage:function getMessage(o){return o===t.typeName?t:void 0;}}:t,l=[];var _iterator55=_createForOfIteratorHelper(this.details),_step55;try{for(_iterator55.s();!(_step55=_iterator55.n()).done;){var o=_step55.value;if("desc"in o){n.getMessage(o.desc.typeName)&&l.push(ze$2(o.desc,o.value));continue;}var i=n.getMessage(o.type);if(i)try{l.push(sn$2(i,o.value));}catch(_unused12){}}}catch(err){_iterator55.e(err);}finally{_iterator55.f();}return l;}}],[{key:"from",value:function from(t){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:P$3.Unknown;return t instanceof ue?t:t instanceof Error?t.name=="AbortError"?new ue(t.message,P$3.Canceled):new ue(t.message,n,void 0,void 0,t):new ue(String(t),n,void 0,void 0,t);}},{key:Symbol.hasInstance,value:function value(t){return t instanceof Error?Object.getPrototypeOf(t)===ue.prototype?true:t.name==="ConnectError"&&"code"in t&&typeof t.code=="number"&&"metadata"in t&&"details"in t&&Array.isArray(t.details)&&"rawMessage"in t&&typeof t.rawMessage=="string"&&"cause"in t:false;}}]);}(/*#__PURE__*/_wrapNativeSuper(Error));function Ih(e,t){return e.length?"[".concat(_i$1(t),"] ").concat(e):"[".concat(_i$1(t),"]");}function nr$3(e,t){return {id:Symbol(t===null||t===void 0?void 0:t.description),defaultValue:e};}var am=function am(){return {emit:function emit(e){for(var _len8=arguments.length,t=new Array(_len8>1?_len8-1:0),_key8=1;_key8<_len8;_key8++){t[_key8-1]=arguments[_key8];}for(var n=this.events[e]||[],l=0,o=n.length;l<o;l++)n[l].apply(n,t);},events:{},on:function on(e,t){var _this$events,_this4=this;return ((_this$events=this.events)[e]||(_this$events[e]=[])).push(t),function(){var _this4$events$e;_this4.events[e]=(_this4$events$e=_this4.events[e])===null||_this4$events$e===void 0?void 0:_this4$events$e.filter(function(n){return t!==n;});};}};};function sm(_ref9){var e=_ref9.retryCount;return ~~((Math.random()+0.5)*(1<<(e<8?e:8)))*2e3;}var cm=function cm(_ref0){var _ref1=_slicedToArray(_ref0,3),e=_ref1[0],t=_ref1[1],n=_ref1[2];var l=function l(){var _ref10=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},_ref10$cache=_ref10.cache,g=_ref10$cache===void 0?/* @__PURE__ */new Map():_ref10$cache,R=_ref10.fetcher,N=_objectWithoutProperties(_ref10,_excluded$5);var p=am();var U=true;t(function(){U=e(),U&&p.emit(a);}),n(function(){return p.emit(s);});var B=/* @__PURE__ */new Map(),J=/* @__PURE__ */new Map(),E=/* @__PURE__ */new Map();var F={};var I=function I(v){var D=g.get(v);return D?(D.expires||0)>d()?[D.data,D.error]:[]:[];},C=/*#__PURE__*/function(){var _ref12=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee10(_ref11,_,A){var _I,_I2;var _ref13,v,D,y,f,_A$F,_A$F$dedupeTime,T,_A$F$cacheLifetime,j,O,_A$F$onErrorRetry,x,L,w,z,M,ie,te,ne,_A$onError,_g$get,_ne,ye,_t18;return _regenerator().w(function(_context16){while(1)switch(_context16.p=_context16.n){case 0:_ref13=_slicedToArray(_ref11,2),v=_ref13[0],D=_ref13[1];if(U){_context16.n=1;break;}return _context16.a(2);case 1:y=function y(te){_.key===v&&(_.set(te),p.emit(b,v,te,true));},f=function f(te){y(_objectSpread2(_objectSpread2(_objectSpread2({},te===void 0?{}:{data:te}),V),{},{promise:E.get(v)}));};_A$F=_objectSpread2(_objectSpread2({},A),F),_A$F$dedupeTime=_A$F.dedupeTime,T=_A$F$dedupeTime===void 0?4e3:_A$F$dedupeTime,_A$F$cacheLifetime=_A$F.cacheLifetime,j=_A$F$cacheLifetime===void 0?1/0:_A$F$cacheLifetime,O=_A$F.fetcher,_A$F$onErrorRetry=_A$F.onErrorRetry,x=_A$F$onErrorRetry===void 0?sm:_A$F$onErrorRetry;j<T&&(j=T);L=d();if(!E.has(v)){_context16.n=2;break;}_.value.loading||f(I(v)[0]);return _context16.a(2);case 2:M=g.get(v);if(!(((M===null||M===void 0?void 0:M.data)!==void 0||M!==null&&M!==void 0&&M.error)&&(_I=I(v),_I2=_slicedToArray(_I,2),w=_I2[0],z=_I2[1],(M.created||0)+T>L))){_context16.n=3;break;}(_.value.data!=w||_.value.error!=z)&&y(_objectSpread2(_objectSpread2({},Z),{},{data:w,error:z}));return _context16.a(2);case 3:ie=zb();_context16.p=4;clearTimeout(J.get(v));te=O.apply(void 0,_toConsumableArray(D));E.set(v,te),f(w);_context16.n=5;return te;case 5:ne=_context16.v;g.set(v,{data:ne,created:d(),expires:d()+j}),y(_objectSpread2({data:ne},Z));_context16.n=7;break;case 6:_context16.p=6;_t18=_context16.v;(_A$onError=A.onError)===null||_A$onError===void 0||_A$onError.call(A,_t18);_ne=(((_g$get=g.get(v))===null||_g$get===void 0?void 0:_g$get.retryCount)||0)+1;if(g.set(v,{error:_t18,created:d(),expires:d()+j,retryCount:_ne}),x){ye=x({error:_t18,key:v,retryCount:_ne});ye&&J.set(v,setTimeout(function(){$(v),g.set(v,{retryCount:_ne});},ye));}y(_objectSpread2({data:_.value.data,error:_t18},Z));case 7:_context16.p=7;ie(),E.delete(v);return _context16.f(7);case 8:return _context16.a(2);}},_callee10,null,[[4,6,7,8]]);}));return function C(_x0,_x1,_x10){return _ref12.apply(this,arguments);};}(),Y=function Y(v){var _ref14=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},_ref14$fetcher=_ref14.fetcher,D=_ref14$fetcher===void 0?R:_ref14$fetcher,_=_objectWithoutProperties(_ref14,_excluded2$2);var A=/* @__PURE__ */oo$1(_objectSpread2({},Z)),y=_objectSpread2(_objectSpread2(_objectSpread2({},N),_),{},{fetcher:D});A._=m,A.invalidate=function(){var M=A.key;M&&$(M);},A.revalidate=function(){var M=A.key;M&&X(M);},A.mutate=function(M){var ie=A.key;ie&&k(ie,M);},A.fetch=/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee11(){var M,ie,te;return _regenerator().w(function(_context17){while(1)switch(_context17.n){case 0:ie=new Promise(function(ne){return M=ne;}),te=A.listen(function(_ref16){var ne=_ref16.error,ye=_ref16.data;ne!==void 0&&M({error:ne}),ye!==void 0&&M({data:ye});});return _context17.a(2,ie.finally(te));}},_callee11);}));var f,T,j,O,x,L=[];Zc(A,function(){var _i25,_i26,_ie;var M=!f;_i25=i(v),_i26=_slicedToArray(_i25,2),x=_i26[0],f=_i26[1],O=x.subscribe(function(S){if(S){var _S=_slicedToArray(S,2),Ze=_S[0],$e=_S[1];A.key=Ze,C([Ze,$e],A,y),T=Ze,j=$e;}else A.key=T=j=void 0,A.set(_objectSpread2({},Z));});var ie=x.get();ie&&(_ie=_slicedToArray(ie,2),T=_ie[0],j=_ie[1],M&&w());var _y$revalidateInterval=y.revalidateInterval,te=_y$revalidateInterval===void 0?0:_y$revalidateInterval,ne=y.revalidateOnFocus,ye=y.revalidateOnReconnect,Ie=function Ie(){T&&C([T,j],A,y);};te>0&&B.set(v,setInterval(Ie,te)),ne&&L.push(p.on(a,Ie)),ye&&L.push(p.on(s,Ie));var Ye=function Ye(S){T&&h(T,S)&&C([T,j],A,y);};L.push(p.on(c,Ye),p.on(u,Ye),p.on(b,function(S,Ze,$e){T&&h(T,S)&&A.value!==Ze&&A.value.data!==Ze&&A.set($e?Ze:_objectSpread2({data:Ze},Z));}));});var w=function w(){T&&j&&C([T,j],A,y);},z=A.listen;return A.listen=function(M){var ie=z(M);return M(A.value),w(),ie;},Mi$1(A,function(){var _f,_O;A.value=_objectSpread2({},Z),(_f=f)!==null&&_f!==void 0&&_f(),L.forEach(function(M){return M();}),L=[],(_O=O)!==null&&_O!==void 0&&_O(),clearInterval(B.get(v));}),A;},K=function K(v,D){var _iterator60=_createForOfIteratorHelper(g.keys()),_step60;try{for(_iterator60.s();!(_step60=_iterator60.n()).done;){var _=_step60.value;h(_,v)&&D(_);}}catch(err){_iterator60.e(err);}finally{_iterator60.f();}},$=function $(v){K(v,function(D){g.delete(D);}),p.emit(c,v);},X=function X(v){K(v,function(D){var _=g.get(D);_&&g.set(D,_objectSpread2(_objectSpread2({},_),{},{created:-1/0}));}),p.emit(u,v);},k=function k(v,D){K(v,function(_){var _N$cacheLifetime;D===void 0?g.delete(_):g.set(_,{data:D,created:d(),expires:d()+((_N$cacheLifetime=N.cacheLifetime)!==null&&_N$cacheLifetime!==void 0?_N$cacheLifetime:8e3)});}),p.emit(b,v,D);};function Q(v,D){var _ref17=D!==null&&D!==void 0?D:{throttleCalls:true,onError:N===null||N===void 0?void 0:N.onError},_=_ref17.throttleCalls,A=_ref17.onError,y=/*#__PURE__*/function(_y){function y(_x11){return _y.apply(this,arguments);}y.toString=function(){return _y.toString();};return y;}(function(){var _ref18=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee12(T){var _f$value,_F$fetcher;var j,O,x,L,w,_t19;return _regenerator().w(function(_context18){while(1)switch(_context18.p=_context18.n){case 0:if(!(_&&(_f$value=f.value)!==null&&_f$value!==void 0&&_f$value.loading)){_context18.n=1;break;}return _context18.a(2);case 1:j=(_F$fetcher=F.fetcher)!==null&&_F$fetcher!==void 0?_F$fetcher:v,O=[],x=[],L=function L(w,z){f.lc&&f.setKey(w,z);};_context18.p=2;f.set(_objectSpread2({error:void 0,data:void 0,mutate:y},V));_context18.n=3;return j({data:T,invalidate:function invalidate(z){O.push(z);},revalidate:function revalidate(z){x.push(z);},getCacheUpdater:function getCacheUpdater(z){var _g$get2;var M=arguments.length>1&&arguments[1]!==undefined?arguments[1]:true;return [function(ie){k(z,ie),M&&x.push(z);},(_g$get2=g.get(z))===null||_g$get2===void 0?void 0:_g$get2.data];}});case 3:w=_context18.v;return _context18.a(2,(L("data",w),w));case 4:_context18.p=4;_t19=_context18.v;A!==null&&A!==void 0&&A(_t19),L("error",_t19),f.setKey("error",_t19);case 5:_context18.p=5;L("loading",false),O.forEach($),x.forEach(X);return _context18.f(5);case 6:return _context18.a(2);}},_callee12,null,[[2,4,5,6]]);}));return function(_x12){return _ref18.apply(this,arguments);};}()),f=/* @__PURE__ */oo$1(_objectSpread2({mutate:y},Z));return Mi$1(f,function(){return f.set(_objectSpread2({mutate:y},Z));}),f.mutate=y,f;}return [Y,Q,{__unsafeOverruleSettings:function __unsafeOverruleSettings(v){console.warn("You should only use __unsafeOverruleSettings in test environment"),F=v;},invalidateKeys:$,revalidateKeys:X,mutateCache:k}];};function o(g){return typeof g=="string"||typeof g=="number"||g===true;}var i=function i(g){if(o(g))return [/* @__PURE__ */bt$1([""+g,[g]]),function(){}];var R=[],N=/* @__PURE__ */bt$1(null),p=/* @__PURE__ */new Map(),U=function U(){R.some(function(E){return E==null||E===false;})?N.set(null):N.set([R.join(""),R]);};for(var E=0;E<g.length;E++){var F=g[E];o(F)?R.push(F):(R.push(null),p.set(F,E));}var B=_toConsumableArray(p.keys()),J=/* @__PURE__ */lo$1(B,function(){for(var _len9=arguments.length,E=new Array(_len9),_key9=0;_key9<_len9;_key9++){E[_key9]=arguments[_key9];}for(var _F=0;_F<E.length;_F++){var I=B[_F],C=p.get(I);R[C]=I._===m?I.value&&"data"in I.value?I.key:null:E[_F];}U();});return U(),[N,J.subscribe(r)];};function r(){}var a=1,s=2,c=3,u=4,b=5,h=function h(g,R){return Array.isArray(R)?R.includes(g):typeof R=="function"?R(g):g===R;},d=function d(){return (/* @__PURE__ */new Date()).getTime();},m=/* @__PURE__ */Symbol(),V={loading:true},Z={loading:false};return l;},mr$3=function mr(e,t){(typeof window==="undefined"?"undefined":_typeof(window))>"u"||addEventListener(e,t);},um=[function(){return !document.hidden;},function(e){return mr$3("visibilitychange",e);},function(e){return mr$3("online",e);}];cm(um);var zo$1=/* @__PURE__ */se$2("CjpzdHJlYW1sYXllci9hbmFseXRpY3MvdjEvbm90aWZpY2F0aW9ucy9ub3RpZmljYXRpb25zLnByb3RvEiZzdHJlYW1sYXllci5hbmFseXRpY3MudjEubm90aWZpY2F0aW9ucyKaBAoZVG90YWxOb3RpZmljYXRpb25zUmVxdWVzdBJkCgZmaWx0ZXIYASABKAsyVC5zdHJlYW1sYXllci5hbmFseXRpY3MudjEubm90aWZpY2F0aW9ucy5Ub3RhbE5vdGlmaWNhdGlvbnNSZXF1ZXN0LlRvdGFsUmVxdWVzdEZpbHRlchqWAwoSVG90YWxSZXF1ZXN0RmlsdGVyEjcKBnBlcmlvZBgBIAEoCzInLnN0cmVhbWxheWVyLmFuYWx5dGljcy52MS5jb21tb24uUGVyaW9kEhEKCWV2ZW50X2lkcxgCIAMoBBI9CgpjYXRlZ29yaWVzGAMgAygOMikuc3RyZWFtbGF5ZXIuYW5hbHl0aWNzLnYxLmNvbW1vbi5DYXRlZ29yeRJUChJub3RpZmljYXRpb25fa2luZHMYBCADKA4yOC5zdHJlYW1sYXllci5hbmFseXRpY3MudjEubm90aWZpY2F0aW9ucy5Ob3RpZmljYXRpb25LaW5kElQKEm5vdGlmaWNhdGlvbl90eXBlcxgFIAMoDjI4LnN0cmVhbWxheWVyLmFuYWx5dGljcy52MS5ub3RpZmljYXRpb25zLk5vdGlmaWNhdGlvblR5cGUSMwoEa2luZBgGIAEoDjIlLnN0cmVhbWxheWVyLmFuYWx5dGljcy52MS5jb21tb24uS2luZBIUCgxjb3VudF91bmlxdWUYByABKAgitgEKGlRvdGFsTm90aWZpY2F0aW9uc1Jlc3BvbnNlEmIKBGRhdGEYASADKAsyVC5zdHJlYW1sYXllci5hbmFseXRpY3MudjEubm90aWZpY2F0aW9ucy5Ub3RhbE5vdGlmaWNhdGlvbnNSZXNwb25zZS5Ub3RhbFJlc3BvbnNlRGF0YRo0ChFUb3RhbFJlc3BvbnNlRGF0YRIQCghldmVudF9pZBgBIAEoBBINCgVjb3VudBgCIAEoBCK2BgoXU2VuZE5vdGlmaWNhdGlvblJlcXVlc3QSXwoEZGF0YRgBIAMoCzJRLnN0cmVhbWxheWVyLmFuYWx5dGljcy52MS5ub3RpZmljYXRpb25zLlNlbmROb3RpZmljYXRpb25SZXF1ZXN0LkNyZWF0ZVJlcXVlc3REYXRhGrkFChFDcmVhdGVSZXF1ZXN0RGF0YRIQCghldmVudF9pZBgBIAEoBBIPCgd1c2VyX2lkGAIgASgEEjsKCGNhdGVnb3J5GAMgASgOMikuc3RyZWFtbGF5ZXIuYW5hbHl0aWNzLnYxLmNvbW1vbi5DYXRlZ29yeRJTChFub3RpZmljYXRpb25fa2luZBgEIAEoDjI4LnN0cmVhbWxheWVyLmFuYWx5dGljcy52MS5ub3RpZmljYXRpb25zLk5vdGlmaWNhdGlvbktpbmQSUwoRbm90aWZpY2F0aW9uX3R5cGUYBSABKA4yOC5zdHJlYW1sYXllci5hbmFseXRpY3MudjEubm90aWZpY2F0aW9ucy5Ob3RpZmljYXRpb25UeXBlEjMKBGtpbmQYBiABKA4yJS5zdHJlYW1sYXllci5hbmFseXRpY3MudjEuY29tbW9uLktpbmQSMwoPdHJhY2tfdGltZXN0YW1wGAcgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIRCglkZXZpY2VfaWQYCCABKAkSCgoCb3MYCSABKAkSEgoKdXNlcl9hZ2VudBgKIAEoCRIWCg5zbF9zZGtfdmVyc2lvbhgLIAEoCRISCgpzZXNzaW9uX2lkGAwgASgJEhoKEm92ZXJsYXlfc2Vzc2lvbl9pZBgNIAEoCRIQCgh0b3BpY19pZBgOIAEoCRI+Cgp0b3BpY190eXBlGBUgASgOMiouc3RyZWFtbGF5ZXIuYW5hbHl0aWNzLnYxLmNvbW1vbi5Ub3BpY1R5cGUSEwoLdXNlcl9pZF9zdHIYEyABKAkSTgoSc2NyZWVuX29yaWVudGF0aW9uGBQgASgOMjIuc3RyZWFtbGF5ZXIuYW5hbHl0aWNzLnYxLmNvbW1vbi5TY3JlZW5PcmllbnRhdGlvbiLSAQoYU2VuZE5vdGlmaWNhdGlvblJlc3BvbnNlEmEKBGRhdGEYASABKAsyUy5zdHJlYW1sYXllci5hbmFseXRpY3MudjEubm90aWZpY2F0aW9ucy5TZW5kTm90aWZpY2F0aW9uUmVzcG9uc2UuQ3JlYXRlUmVzcG9uc2VEYXRhGlMKEkNyZWF0ZVJlc3BvbnNlRGF0YRI9CgZyZXN1bHQYASABKA4yLS5zdHJlYW1sYXllci5hbmFseXRpY3MudjEuY29tbW9uLlJlc3VsdFN0YXR1cyKYAwolVG90YWxOb3RpZmljYXRpb25zQnlDYXRlZ29yaWVzUmVxdWVzdBJwCgZmaWx0ZXIYASABKAsyYC5zdHJlYW1sYXllci5hbmFseXRpY3MudjEubm90aWZpY2F0aW9ucy5Ub3RhbE5vdGlmaWNhdGlvbnNCeUNhdGVnb3JpZXNSZXF1ZXN0LlRvdGFsUmVxdWVzdEZpbHRlchr8AQoSVG90YWxSZXF1ZXN0RmlsdGVyEjcKBnBlcmlvZBgBIAEoCzInLnN0cmVhbWxheWVyLmFuYWx5dGljcy52MS5jb21tb24uUGVyaW9kEhAKCGV2ZW50X2lkGAIgASgEEjMKBGtpbmQYAyABKA4yJS5zdHJlYW1sYXllci5hbmFseXRpY3MudjEuY29tbW9uLktpbmQSPQoKY2F0ZWdvcmllcxgEIAMoDjIpLnN0cmVhbWxheWVyLmFuYWx5dGljcy52MS5jb21tb24uQ2F0ZWdvcnkSEQoJcm91dGVfbWFwGAUgASgJEhQKDGNvdW50X3VuaXF1ZRgGIAEoCCLOAQomVG90YWxOb3RpZmljYXRpb25zQnlDYXRlZ29yaWVzUmVzcG9uc2USbgoEZGF0YRgBIAMoCzJgLnN0cmVhbWxheWVyLmFuYWx5dGljcy52MS5ub3RpZmljYXRpb25zLlRvdGFsTm90aWZpY2F0aW9uc0J5Q2F0ZWdvcmllc1Jlc3BvbnNlLlRvdGFsUmVzcG9uc2VEYXRhGjQKEVRvdGFsUmVzcG9uc2VEYXRhEhAKCGV2ZW50X2lkGAEgASgEEg0KBWNvdW50GAIgASgEKvECChBOb3RpZmljYXRpb25LaW5kEhsKF05PVElGSUNBVElPTl9LSU5EX1VOU0VUEAASHQoZTk9USUZJQ0FUSU9OX0tJTkRfTUVTU0FHRRABEhoKFk5PVElGSUNBVElPTl9LSU5EX0NBTEwQAhIdChlOT1RJRklDQVRJT05fS0lORF9UV0lUVEVSEAMSGgoWTk9USUZJQ0FUSU9OX0tJTkRfV0FWRRAEEhwKGE5PVElGSUNBVElPTl9LSU5EX0lOUExBWRAFEiAKHE5PVElGSUNBVElPTl9LSU5EX0dST1VQX0NBTEwQBhIhCh1OT1RJRklDQVRJT05fS0lORF9NSVNTRURfQ0FMTBAHEicKI05PVElGSUNBVElPTl9LSU5EX01JU1NFRF9HUk9VUF9DQUxMEAgSIQodTk9USUZJQ0FUSU9OX0tJTkRfV0FUQ0hfUEFSVFkQCRIbChdOT1RJRklDQVRJT05fS0lORF9QT0xMUxAKKmkKEE5vdGlmaWNhdGlvblR5cGUSGwoXTk9USUZJQ0FUSU9OX1RZUEVfVU5TRVQQABIcChhOT1RJRklDQVRJT05fVFlQRV9JTl9BUFAQARIaChZOT1RJRklDQVRJT05fVFlQRV9QVVNIEAJCvgEKKmNvbS5zdHJlYW1sYXllci5hbmFseXRpY3Mubm90aWZpY2F0aW9ucy52MUIdU3RyZWFtTGF5ZXJOb3RpZmljYXRpb25zUHJvdG9QAVpmZ2l0aHViLmNvbS9zdHJlYW1sYXllci9zbC1wcm90b2ZpbGVzLy5idWlsZC9nby9zdHJlYW1sYXllci9hbmFseXRpY3MvdjEvbm90aWZpY2F0aW9ucztzbF9ub3RpZmljYXRpb25zogIGU0xfQVBJYgZwcm90bzM",[Ce$2,St$1]),Im=/* @__PURE__ */oe$1(zo$1,0),nt$2=/* @__PURE__ */le$2(Im);function Jm(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e;}var Mc$1={exports:{}},Ee$1=Mc$1.exports={},De$3,je$1;function ro$1(){throw new Error("setTimeout has not been defined");}function ao$1(){throw new Error("clearTimeout has not been defined");}(function(){try{typeof setTimeout=="function"?De$3=setTimeout:De$3=ro$1;}catch(_unused14){De$3=ro$1;}try{typeof clearTimeout=="function"?je$1=clearTimeout:je$1=ao$1;}catch(_unused15){je$1=ao$1;}})();function Hc(e){if(De$3===setTimeout)return setTimeout(e,0);if((De$3===ro$1||!De$3)&&setTimeout)return De$3=setTimeout,setTimeout(e,0);try{return De$3(e,0);}catch(_unused16){try{return De$3.call(null,e,0);}catch(_unused17){return De$3.call(this,e,0);}}}function vm(e){if(je$1===clearTimeout)return clearTimeout(e);if((je$1===ao$1||!je$1)&&clearTimeout)return je$1=clearTimeout,clearTimeout(e);try{return je$1(e);}catch(_unused18){try{return je$1.call(null,e);}catch(_unused19){return je$1.call(this,e);}}}var ct$2=[],vt$1=false,yt$1,Bn$2=-1;function Tm(){!vt$1||!yt$1||(vt$1=false,yt$1.length?ct$2=yt$1.concat(ct$2):Bn$2=-1,ct$2.length&&Oc$1());}function Oc$1(){if(!vt$1){var e=Hc(Tm);vt$1=true;for(var t=ct$2.length;t;){for(yt$1=ct$2,ct$2=[];++Bn$2<t;)yt$1&&yt$1[Bn$2].run();Bn$2=-1,t=ct$2.length;}yt$1=null,vt$1=false,vm(e);}}Ee$1.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];ct$2.push(new Dc(e,t)),ct$2.length===1&&!vt$1&&Hc(Oc$1);};function Dc(e,t){this.fun=e,this.array=t;}Dc.prototype.run=function(){this.fun.apply(null,this.array);};Ee$1.title="browser";Ee$1.browser=true;Ee$1.env={};Ee$1.argv=[];Ee$1.version="";Ee$1.versions={};function Vt$2(){}Ee$1.on=Vt$2;Ee$1.addListener=Vt$2;Ee$1.once=Vt$2;Ee$1.off=Vt$2;Ee$1.removeListener=Vt$2;Ee$1.removeAllListeners=Vt$2;Ee$1.emit=Vt$2;Ee$1.prependListener=Vt$2;Ee$1.prependOnceListener=Vt$2;Ee$1.listeners=function(e){return [];};Ee$1.binding=function(e){throw new Error("process.binding is not supported");};Ee$1.cwd=function(){return "/";};Ee$1.chdir=function(e){throw new Error("process.chdir is not supported");};Ee$1.umask=function(){return 0;};var km=Mc$1.exports;var q$3=/* @__PURE__ */Jm(km),Qm=Cu$1.pino({level:"trace",enabled:(typeof window==="undefined"?"undefined":_typeof(window))<"u"&&!!window.localStorage.getItem("SL_DEBUG"),browser:{write:function write(e){console.log(e);}}}),ve$2=function ve(e,t){return Qm.child({name:e},t);};var wm=/*#__PURE__*/function(_Event){function wm(t,n){var _this5;_classCallCheck(this,wm);_this5=_callSuper(this,wm,[t]),_defineProperty(_assertThisInitialized(_this5),"slEventBus",void 0),_this5.slEventBus=n;return _this5;}_inherits(wm,_Event);return _createClass(wm);}(/*#__PURE__*/_wrapNativeSuper(Event));var Lm=ve$2("event-bus");var zm=/*#__PURE__*/function(){function zm(){var _this6=this;var _t20=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"sl-event-bus";_classCallCheck(this,zm);_defineProperty(this,"name",void 0);_defineProperty(this,"listeners",void 0);_defineProperty(this,"emit",function(t,n){var l=new wm(_this6.name,_objectSpread2(_objectSpread2({},n),{},{type:t}));Lm.debug(l,"Emitting event"),window.dispatchEvent(l);});_defineProperty(this,"destroy",function(){_this6.listeners.forEach(function(t){window.removeEventListener(_this6.name,t),_this6.listeners.delete(t);}),_this6.listeners.clear();});this.name=_t20,this.listeners=/* @__PURE__ */new Set();}return _createClass(zm,[{key:"listen",value:function listen(t){var _this7=this;return window.addEventListener(this.name,t),this.listeners.add(t),function(){_this7.off(t);};}},{key:"off",value:function off(t){window.removeEventListener(this.name,t),this.listeners.delete(t);}}]);}();var ut$3;(function(e){e[e.ONBOARDING=1]="ONBOARDING",e[e.QUESTION=2]="QUESTION",e[e.QUESTION_RESOLVED=3]="QUESTION_RESOLVED";})(ut$3||(ut$3={}));window.slStore=/* @__PURE__ */Object.create(null);var ot$3;(function(e){e.ORGANIZATION="ORGANIZATION",e.STREAM="STREAM";})(ot$3||(ot$3={}));_defineProperty(_defineProperty(_defineProperty(_defineProperty({},be$2.BETTING,"betting"),be$2.GAMES,"games"),be$2.PUBLIC_CHAT,"publicChat"),be$2.TWITTER,"twitter");var pt$1;(function(e){e.Ready="ready",e.Suspended="suspended";})(pt$1||(pt$1={}));new zm();window.dispatchEvent(new CustomEvent("grpc_devtools_loaded"));function _c$1(e){return e instanceof DOMException&&(// everything except Firefox
725
724
  e.code===22||// Firefox
726
725
  e.code===1014||// test name field too, because code might not be present
727
726
  // everything except Firefox
@@ -729,7 +728,7 @@ e.name==="QuotaExceededError"||// Firefox
729
728
  e.name==="NS_ERROR_DOM_QUOTA_REACHED");}var Mt$2=/*#__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$1(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$2;(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$2||(Qe$2={}));ve$2("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$2("grpc:retry");({retryAttempts:nr$3(10,{description:"Number of attempts to retry"}),retryDelay:nr$3(3e4,{description:"Max delay between retries in milliseconds"})});var lt$3;(function(e){e.SCHEMA="schema",e.EXTERNAL_TOKEN="eToken",e.TOKEN="token";})(lt$3||(lt$3={}));var Bt$2=/*#__PURE__*/function(_Mt2){function Bt(){var _this14;_classCallCheck(this,Bt);_this14=_callSuper(this,Bt,["user"]);// Schema
730
729
  _defineProperty(_this14,"setSchema",function(t){_this14.write(lt$3.SCHEMA,t);});_defineProperty(_this14,"getSchema",function(){return _this14.read(lt$3.SCHEMA);});// Token
731
730
  _defineProperty(_this14,"setToken",function(t){_this14.write(lt$3.TOKEN,t);});_defineProperty(_this14,"getToken",function(){return _this14.read(lt$3.TOKEN);});// External Token
732
- _defineProperty(_this14,"setExternalToken",function(t){_this14.write(lt$3.EXTERNAL_TOKEN,t);});_defineProperty(_this14,"getExternalToken",function(){return _this14.read(lt$3.EXTERNAL_TOKEN);});_defineProperty(_this14,"removeToken",function(){_this14.remove(lt$3.TOKEN);});return _this14;}_inherits(Bt,_Mt2);return _createClass(Bt);}(Mt$2);var it$3;(function(e){e.DISABLED="disabled",e.INITIALIZATION="initialization",e.READY="ready",e.FAILED="failed",e.SUSPENDED="suspended";})(it$3||(it$3={}));var Ct$2;(function(e){e.SHOWED="showed",e.EVENT="ev";})(Ct$2||(Ct$2={}));var Me$2;(function(e){e.ONBOARDING="onboarding",e.ONBOARDING_IO="onboarding_io",e.QUESTION_RECEIVED="q-received",e.QUESTION_OPENED="q-opened";})(Me$2||(Me$2={}));var Rt$2;(function(e){e.ALLOWED="allowed",e.DISALLOWED="disallowed";})(Rt$2||(Rt$2={}));var Ln$1;(function(e){e.OPENED="opened";})(Ln$1||(Ln$1={}));var xt$2;(function(e){e.UNKNOWN="unknown",e.ALREADY_VOTED="already_voted";})(xt$2||(xt$2={}));ve$2("deep_link");ve$2("bypass");new Bt$2();ve$2("video_player");_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({},ee$2.FACTOID,"insight"),ee$2.POLL,"poll"),ee$2.TRIVIA,"trivia"),ee$2.PREDICTION,"prediction"),ee$2.TWEET,"tweet");var fe$1;(function(e){e.Unset="unset",e.Required="required",e.Optional="optional",e.Completed="completed",e.Disabled="disabled",e.Unavailable="unavailable";})(fe$1||(fe$1={}));/* @__PURE__ */new Set([ee$2.POLL,ee$2.PREDICTION,ee$2.TRIVIA]);_defineProperty({},be$2.GAMES,true);function Ko$1(){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$1(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$1(e);!t.ERRORCODE||n.isCustomCode||/^[0-9]{3}$/.test(t.ERRORCODE)||(t.ERRORCODE=900),t.CACHEBUSTING=su$1(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$1(t[_i34]);for(var _i35 in o){var r=o[_i35];typeof r=="string"&&l.push(ou$1(r,t));}return l;}function ou$1(e,t){var n=(e=Ir$2(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$2(e,l));}function Ir$2(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$1(e){return Array.isArray(e)?e.map(function(t){return t&&t.hasOwnProperty("url")?t.url:t;}):e;}function Yr$1(e){return /^(https?:\/\/|\/\/)/.test(e);}function Ur$1(e,t){for(var n=0;n<t.length;n++)if(ru$1(t[n],e))return true;return false;}function ru$1(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$1(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(t){return "%".concat(t.charCodeAt(0).toString(16));});}function su$1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:8;return e.toString().padStart(t,"0");}var Ft$2={track:function track(e,t,n){Nr$1(e,t,n).forEach(function(l){(typeof window==="undefined"?"undefined":_typeof(window))<"u"&&window!==null&&(new Image().src=l);});},resolveURLTemplates:Nr$1,extractURLsFromTemplates:iu$1,filterUrlTemplates:function filterUrlTemplates(e){return e.reduce(function(t,n){var l=n.url||n;return Yr$1(l)?t.validUrls.push(l):t.invalidUrls.push(l),t;},{validUrls:[],invalidUrls:[]});},containsTemplateObject:Ur$1,isTemplateObjectEqual:ru$1,encodeURIComponentRFC3986:au$1,replaceUrlMacros:ou$1,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$1(i,o)||o.push(i),o;},[]);},isValidTimeValue:function isValidTimeValue(e){return Number.isFinite(e)&&e>=-2;},addLeadingZeros:su$1,isValidUrl:Yr$1,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$1(e){return ["true","TRUE","True","1"].includes(e);}function gg(e){if(e==null)return -1;if(Ft$2.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$1,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$1(_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$2.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$2.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$1(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$1(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$1(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$2(e){var t=[];return e.forEach(function(n){var l=cu$1(n);l&&t.push(l);}),t;}function cu$1(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$1(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$1={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$1(e,t){if(!Jn$1[e.nodeName]||!Jn$1[e.nodeName].attributes)return;var n=Jn$1[e.nodeName].attributes.filter(function(l){return !e.getAttribute(l);});n.length>0&&on$2({name:e.nodeName,parentName:e.parentNode.nodeName,attributes:n},t);}function vr$2(e,t,n){var l=Jn$1[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$2({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$2({name:e.nodeName,parentName:e.parentNode.nodeName,oneOfResources:l.oneOfinLineResources},t);}}function Tr$2(e){return e.children&&e.children.length!==0;}function on$2(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$1(t,n),Tr$2(t)){vr$2(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$2({name:t.nodeName,parentName:t.parentNode.nodeName},n);},hasSubElements:Tr$2,emitMissingValueWarning:on$2,verifyRequiredAttributes:Jr$1,verifyRequiredSubElements:vr$2};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$1(e,t);}function uu$1(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$2(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$2(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$2(G$4.childrenByName(s,"Verification"))),c;}(r));break;}case "AdVerifications":o.adVerifications=kr$2(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$1(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$2(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$1=0,co$1=0;var du$1=function du(e,t){!e||!t||e<=0||t<=0||(co$1=(co$1*Qr$1+8*e/t)/++Qr$1);},Xg={ERRORCODE:900,extensions:[]},wr$2="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$2.track(t,n);}},{key:"getErrorURLTemplates",value:function getErrorURLTemplates(){return this.rootErrorURLTemplates.concat(this.errorURLTemplates);}},{key:"getEstimatedBitrate",value:function getEstimatedBitrate(){return co$1;}},{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$1(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$2:"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$2.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$2?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$2=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$2)return et$2;try{et$2=(typeof window==="undefined"?"undefined":_typeof(window))<"u"&&window!==null?window.localStorage||window.sessionStorage:null;}catch(_unused26){et$2=null;}return et$2&&!this.isStorageDisabled(et$2)||(et$2=Sg,et$2.clear()),et$2;}},{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$1=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$1," ms (408)"));},t.timeout||uo$1);_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$2.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$2.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$1,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$1(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$2("ui:gam-static");(_Qg={},_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_Qg,ae$1.UNSET,he$3.UNSET),ae$1.INGAME_IAB21,he$3.PROMOTION_INGAME_IAB21),ae$1.INGAME_IAB21_SIDEBAR,he$3.PROMOTION_INGAME_IAB21),ae$1.INGAME_IAB11_LBAR,he$3.PROMOTION_INGAME_IAB11_LBAR),ae$1.INGAME_IAB11,he$3.PROMOTION_INGAME_IAB11),ae$1.INGAME_IAB11_SIDEBAR,he$3.PROMOTION_INGAME_IAB11),ae$1.INGAME_IAB21_LBAR,he$3.PROMOTION_INGAME_IAB21_LBAR),ae$1.INGAME_IAB61,he$3.PROMOTION_INGAME_IAB61),ae$1.INGAME_IAB61_SIDEBAR,he$3.PROMOTION_INGAME_IAB61),ae$1.EXTERNAL_AD,he$3.PROMOTION_GAM),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_Qg,ae$1.VIDEO_SIDE_BY_SIDE,he$3.PROMOTION_VIDEO_SIDE_BY_SIDE),ae$1.PICTURE_IN_PICTURE,he$3.PROMOTION_PICTURE_IN_PICTURE),ae$1.LOWER_THIRD,he$3.PROMOTION_LOWER_THIRD),ae$1.SHOP_LBAR,he$3.PROMOTION_SHOP_LBAR),ae$1.SHOP_OVERLAY,he$3.PROMOTION_SHOP_OVERLAY),ae$1.SHOP_SIDEBAR,he$3.PROMOTION_SHOP_SIDEBAR),ae$1.NFL_SHOP_LBAR,he$3.PROMOTION_SHOP_LBAR),ae$1.NFL_SHOP_OVERLAY,he$3.PROMOTION_SHOP_OVERLAY),ae$1.NFL_SHOP_SIDEBAR,he$3.PROMOTION_SHOP_SIDEBAR),ae$1.STATS,he$3.UNSET),_defineProperty(_defineProperty(_defineProperty(_Qg,ae$1.STANDARD,he$3.UNSET),ae$1.SHOP,he$3.UNSET),ae$1.NFL_SHOP,he$3.UNSET));({25:re$3.AD_VIDEO_Q25,50:re$3.AD_VIDEO_Q50,75:re$3.AD_VIDEO_Q75});_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({},ee$2.UNSET,ce$1.UNSET),ee$2.FACTOID,ce$1.POLLS_INSIGHT),ee$2.POLL,ce$1.POLLS_POLL),ee$2.PREDICTION,ce$1.POLLS_PREDICTION),ee$2.PROMOTION,ce$1.POLLS_PROMOTION),ee$2.TRIVIA,ce$1.POLLS_TRIVIA),ee$2.TWEET,ce$1.POLLS_TWITTER);ee$2.UNSET+"",nt$2.UNSET,ee$2.FACTOID+"",nt$2.POLLS,ee$2.POLL+"",nt$2.POLLS,ee$2.PREDICTION+"",nt$2.POLLS,ee$2.PROMOTION+"",nt$2.POLLS,ee$2.TRIVIA+"",nt$2.POLLS,ee$2.TWEET+"",nt$2.POLLS;(_zg={},_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_zg,be$2.UNSET,Ge$2.UNSET),be$2.INPLAY,Ge$2.INPLAY),be$2.MESSAGING,Ge$2.MESSAGING),be$2.STATISTICS,Ge$2.STATS),be$2.BETTING,Ge$2.BETTING),be$2.TWITTER,Ge$2.TWITTER),be$2.MERCHANDISE,Ge$2.MERCHANDISE),be$2.CONTESTS,Ge$2.CONTESTS),be$2.VOICE_CHAT,Ge$2.CALLING),be$2.TICKETS,Ge$2.TICKETS),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_zg,be$2.WHOIS_WATCHING,Ge$2.WHOISWATCHING),be$2.PROFILE,Ge$2.PROFILE),be$2.GAMES,Ge$2.POLLS),be$2.GOLF_STATISTICS,Ge$2.STATS),be$2.HIGHLIGHTS,Ge$2.HIGHLIGHTS),be$2.PUBLIC_CHAT,Ge$2.PUBLIC_CHAT));ve$2("analytics");var bu$1=(typeof globalThis==="undefined"?"undefined":_typeof(globalThis))<"u"?globalThis:(typeof window==="undefined"?"undefined":_typeof(window))<"u"?window:_typeof(Po$1)<"u"?Po$1:(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$1={exports:{}},Xn$1={exports:{}},hl,zr$2;function jg(){if(zr$2)return hl;zr$2=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$1;function hu$1(){if(Kr$1)return Xn$1.exports;Kr$1=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$1.exports=t,Xn$1.exports.promise=o,Xn$1.exports;}var Fn$2={exports:{}},xr$2;function mu$1(){if(xr$2)return Fn$2.exports;xr$2=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$2.exports=i,Fn$2.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$2.exports;}var Mr$2={},Hr$1={},Or$2,Dr$1;function Vu$1(){return Dr$1||(Dr$1=1,Or$2=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$2;}var ml,jr$1;function jn$1(){if(jr$1)return ml;jr$1=1;var e=Vu$1();return ml=function ml(){return e()&&!!Symbol.toStringTag;},ml;}var Pr$2,_r$2;function gu$1(){return _r$2||(_r$2=1,Pr$2=Object),Pr$2;}var qr$1,$r$2;function Pg(){return $r$2||($r$2=1,qr$1=Error),qr$1;}var ea,ta$1;function _g(){return ta$1||(ta$1=1,ea=EvalError),ea;}var na$1,la$1;function qg(){return la$1||(la$1=1,na$1=RangeError),na$1;}var oa$1,ia$1;function $g(){return ia$1||(ia$1=1,oa$1=ReferenceError),oa$1;}var ra$1,aa$1;function Au(){return aa$1||(aa$1=1,ra$1=SyntaxError),ra$1;}var sa$1,ca$1;function bn$2(){return ca$1||(ca$1=1,sa$1=TypeError),sa$1;}var ua$1,da$1;function eA(){return da$1||(da$1=1,ua$1=URIError),ua$1;}var ba$1,ha$1;function tA(){return ha$1||(ha$1=1,ba$1=Math.abs),ba$1;}var ma$1,Va$1;function nA(){return Va$1||(Va$1=1,ma$1=Math.floor),ma$1;}var ga$1,Aa$1;function lA(){return Aa$1||(Aa$1=1,ga$1=Math.max),ga$1;}var Ra$1,pa$1;function oA(){return pa$1||(pa$1=1,Ra$1=Math.min),Ra$1;}var Ea$1,Wa$1;function iA(){return Wa$1||(Wa$1=1,Ea$1=Math.pow),Ea$1;}var Za$1,fa$1;function rA(){return fa$1||(fa$1=1,Za$1=Math.round),Za$1;}var ya$1,Ga$1;function aA(){return Ga$1||(Ga$1=1,ya$1=Number.isNaN||function(e){return e!==e;}),ya$1;}var Vl,Xa$1;function sA(){if(Xa$1)return Vl;Xa$1=1;var e=/* @__PURE__ */aA();return Vl=function Vl(t){return e(t)||t===0?t:t<0?-1:1;},Vl;}var Fa$1,Sa$1;function cA(){return Sa$1||(Sa$1=1,Fa$1=Object.getOwnPropertyDescriptor),Fa$1;}var gl,Na$1;function Ht$2(){if(Na$1)return gl;Na$1=1;var e=/* @__PURE__ */cA();if(e)try{e([],"length");}catch(_unused28){e=null;}return gl=e,gl;}var Al,Ia$1;function Pn$1(){if(Ia$1)return Al;Ia$1=1;var e=Object.defineProperty||false;if(e)try{e({},"a",{value:1});}catch(_unused29){e=false;}return Al=e,Al;}var Rl,Ya$1;function uA(){if(Ya$1)return Rl;Ya$1=1;var e=(typeof Symbol==="undefined"?"undefined":_typeof(Symbol))<"u"&&Symbol,t=Vu$1();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$1,Ba$1;function Ru(){return Ba$1||(Ba$1=1,Ua$1=(typeof Reflect==="undefined"?"undefined":_typeof(Reflect))<"u"&&Reflect.getPrototypeOf||null),Ua$1;}var pl,Ca$1;function pu$1(){if(Ca$1)return pl;Ca$1=1;var e=/* @__PURE__ */gu$1();return pl=e.getPrototypeOf||null,pl;}var El,Ja$1;function dA(){if(Ja$1)return El;Ja$1=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$1;function hn$2(){if(va$1)return Wl;va$1=1;var e=dA();return Wl=Function.prototype.bind||e,Wl;}var Ta$1,ka$1;function xo$1(){return ka$1||(ka$1=1,Ta$1=Function.prototype.call),Ta$1;}var Qa$1,wa$1;function Mo$1(){return wa$1||(wa$1=1,Qa$1=Function.prototype.apply),Qa$1;}var La$1,za$1;function bA(){return za$1||(za$1=1,La$1=(typeof Reflect==="undefined"?"undefined":_typeof(Reflect))<"u"&&Reflect&&Reflect.apply),La$1;}var Zl,Ka$1;function Eu$1(){if(Ka$1)return Zl;Ka$1=1;var e=hn$2(),t=Mo$1(),n=xo$1(),l=bA();return Zl=l||e.call(n,t),Zl;}var fl,xa$1;function Ho$1(){if(xa$1)return fl;xa$1=1;var e=hn$2(),t=/* @__PURE__ */bn$2(),n=xo$1(),l=Eu$1();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$1;function hA(){if(Ma$1)return yl;Ma$1=1;var e=Ho$1(),t=/* @__PURE__ */Ht$2(),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$1;function Oo$1(){if(Ha$1)return Gl;Ha$1=1;var e=Ru(),t=pu$1(),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$1;function Wu$1(){if(Oa$1)return Xl;Oa$1=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,n=hn$2();return Xl=n.call(e,t),Xl;}var Fl,Da$1;function Do$1(){if(Da$1)return Fl;Da$1=1;var e,t=/* @__PURE__ */gu$1(),n=/* @__PURE__ */Pg(),l=/* @__PURE__ */_g(),o=/* @__PURE__ */qg(),i=/* @__PURE__ */$g(),r=/* @__PURE__ */Au(),a=/* @__PURE__ */bn$2(),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$2(),N=/* @__PURE__ */Pn$1(),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$1(),E=pu$1(),F=Ru(),I=Mo$1(),C=xo$1(),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
731
+ _defineProperty(_this14,"setExternalToken",function(t){_this14.write(lt$3.EXTERNAL_TOKEN,t);});_defineProperty(_this14,"getExternalToken",function(){return _this14.read(lt$3.EXTERNAL_TOKEN);});_defineProperty(_this14,"removeToken",function(){_this14.remove(lt$3.TOKEN);});return _this14;}_inherits(Bt,_Mt2);return _createClass(Bt);}(Mt$2);var it$3;(function(e){e.DISABLED="disabled",e.INITIALIZATION="initialization",e.READY="ready",e.FAILED="failed",e.SUSPENDED="suspended";})(it$3||(it$3={}));var Ct$2;(function(e){e.SHOWED="showed",e.EVENT="ev";})(Ct$2||(Ct$2={}));var Me$2;(function(e){e.ONBOARDING="onboarding",e.ONBOARDING_IO="onboarding_io",e.QUESTION_RECEIVED="q-received",e.QUESTION_OPENED="q-opened";})(Me$2||(Me$2={}));var Rt$2;(function(e){e.ALLOWED="allowed",e.DISALLOWED="disallowed";})(Rt$2||(Rt$2={}));var Ln$1;(function(e){e.OPENED="opened";})(Ln$1||(Ln$1={}));var xt$2;(function(e){e.UNKNOWN="unknown",e.ALREADY_VOTED="already_voted";})(xt$2||(xt$2={}));ve$2("deep_link");ve$2("bypass");new Bt$2();ve$2("video_player");_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({},ee$2.FACTOID,"insight"),ee$2.POLL,"poll"),ee$2.TRIVIA,"trivia"),ee$2.PREDICTION,"prediction"),ee$2.TWEET,"tweet");var fe$1;(function(e){e.Unset="unset",e.Required="required",e.Optional="optional",e.Completed="completed",e.Disabled="disabled",e.Unavailable="unavailable";})(fe$1||(fe$1={}));/* @__PURE__ */new Set([ee$2.POLL,ee$2.PREDICTION,ee$2.TRIVIA]);_defineProperty({},be$2.GAMES,true);function Ko$1(){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$1(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$1(e);!t.ERRORCODE||n.isCustomCode||/^[0-9]{3}$/.test(t.ERRORCODE)||(t.ERRORCODE=900),t.CACHEBUSTING=su$1(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$1(t[_i34]);for(var _i35 in o){var r=o[_i35];typeof r=="string"&&l.push(ou$1(r,t));}return l;}function ou$1(e,t){var n=(e=Ir$2(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$2(e,l));}function Ir$2(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$1(e){return Array.isArray(e)?e.map(function(t){return t&&t.hasOwnProperty("url")?t.url:t;}):e;}function Yr$1(e){return /^(https?:\/\/|\/\/)/.test(e);}function Ur$1(e,t){for(var n=0;n<t.length;n++)if(ru$1(t[n],e))return true;return false;}function ru$1(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$1(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(t){return "%".concat(t.charCodeAt(0).toString(16));});}function su$1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:8;return e.toString().padStart(t,"0");}var Ft$2={track:function track(e,t,n){Nr$1(e,t,n).forEach(function(l){(typeof window==="undefined"?"undefined":_typeof(window))<"u"&&window!==null&&(new Image().src=l);});},resolveURLTemplates:Nr$1,extractURLsFromTemplates:iu$1,filterUrlTemplates:function filterUrlTemplates(e){return e.reduce(function(t,n){var l=n.url||n;return Yr$1(l)?t.validUrls.push(l):t.invalidUrls.push(l),t;},{validUrls:[],invalidUrls:[]});},containsTemplateObject:Ur$1,isTemplateObjectEqual:ru$1,encodeURIComponentRFC3986:au$1,replaceUrlMacros:ou$1,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$1(i,o)||o.push(i),o;},[]);},isValidTimeValue:function isValidTimeValue(e){return Number.isFinite(e)&&e>=-2;},addLeadingZeros:su$1,isValidUrl:Yr$1,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$1(e){return ["true","TRUE","True","1"].includes(e);}function gg(e){if(e==null)return -1;if(Ft$2.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$1,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$1(_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$2.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$2.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$1(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$1(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$1(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$2(e){var t=[];return e.forEach(function(n){var l=cu$1(n);l&&t.push(l);}),t;}function cu$1(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$1(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$1={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$1(e,t){if(!Jn$1[e.nodeName]||!Jn$1[e.nodeName].attributes)return;var n=Jn$1[e.nodeName].attributes.filter(function(l){return !e.getAttribute(l);});n.length>0&&on$2({name:e.nodeName,parentName:e.parentNode.nodeName,attributes:n},t);}function vr$2(e,t,n){var l=Jn$1[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$2({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$2({name:e.nodeName,parentName:e.parentNode.nodeName,oneOfResources:l.oneOfinLineResources},t);}}function Tr$2(e){return e.children&&e.children.length!==0;}function on$2(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$1(t,n),Tr$2(t)){vr$2(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$2({name:t.nodeName,parentName:t.parentNode.nodeName},n);},hasSubElements:Tr$2,emitMissingValueWarning:on$2,verifyRequiredAttributes:Jr$1,verifyRequiredSubElements:vr$2};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$1(e,t);}function uu$1(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$2(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$2(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$2(G$4.childrenByName(s,"Verification"))),c;}(r));break;}case "AdVerifications":o.adVerifications=kr$2(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$1(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$2(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$1=0,co$1=0;var du$1=function du(e,t){!e||!t||e<=0||t<=0||(co$1=(co$1*Qr$1+8*e/t)/++Qr$1);},Xg={ERRORCODE:900,extensions:[]},wr$2="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$2.track(t,n);}},{key:"getErrorURLTemplates",value:function getErrorURLTemplates(){return this.rootErrorURLTemplates.concat(this.errorURLTemplates);}},{key:"getEstimatedBitrate",value:function getEstimatedBitrate(){return co$1;}},{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$1(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$2:"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$2.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$2?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$2=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$2)return et$2;try{et$2=(typeof window==="undefined"?"undefined":_typeof(window))<"u"&&window!==null?window.localStorage||window.sessionStorage:null;}catch(_unused26){et$2=null;}return et$2&&!this.isStorageDisabled(et$2)||(et$2=Sg,et$2.clear()),et$2;}},{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$1=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$1," ms (408)"));},t.timeout||uo$1);_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$2.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$2.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$1,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$1(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$2("ui:gam-static");(_Qg={},_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_Qg,ae$1.UNSET,he$3.UNSET),ae$1.INGAME_IAB21,he$3.PROMOTION_INGAME_IAB21),ae$1.INGAME_IAB21_SIDEBAR,he$3.PROMOTION_INGAME_IAB21),ae$1.INGAME_IAB11_LBAR,he$3.PROMOTION_INGAME_IAB11_LBAR),ae$1.INGAME_IAB11,he$3.PROMOTION_INGAME_IAB11),ae$1.INGAME_IAB11_SIDEBAR,he$3.PROMOTION_INGAME_IAB11),ae$1.INGAME_IAB21_LBAR,he$3.PROMOTION_INGAME_IAB21_LBAR),ae$1.INGAME_IAB61,he$3.PROMOTION_INGAME_IAB61),ae$1.INGAME_IAB61_SIDEBAR,he$3.PROMOTION_INGAME_IAB61),ae$1.EXTERNAL_AD,he$3.PROMOTION_GAM),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_Qg,ae$1.VIDEO_SIDE_BY_SIDE,he$3.PROMOTION_VIDEO_SIDE_BY_SIDE),ae$1.PICTURE_IN_PICTURE,he$3.PROMOTION_PICTURE_IN_PICTURE),ae$1.LOWER_THIRD,he$3.PROMOTION_LOWER_THIRD),ae$1.SHOP_LBAR,he$3.PROMOTION_SHOP_LBAR),ae$1.SHOP_OVERLAY,he$3.PROMOTION_SHOP_OVERLAY),ae$1.SHOP_SIDEBAR,he$3.PROMOTION_SHOP_SIDEBAR),ae$1.NFL_SHOP_LBAR,he$3.PROMOTION_SHOP_LBAR),ae$1.NFL_SHOP_OVERLAY,he$3.PROMOTION_SHOP_OVERLAY),ae$1.NFL_SHOP_SIDEBAR,he$3.PROMOTION_SHOP_SIDEBAR),ae$1.STATS,he$3.UNSET),_defineProperty(_defineProperty(_defineProperty(_Qg,ae$1.STANDARD,he$3.UNSET),ae$1.SHOP,he$3.UNSET),ae$1.NFL_SHOP,he$3.UNSET));({25:re$3.AD_VIDEO_Q25,50:re$3.AD_VIDEO_Q50,75:re$3.AD_VIDEO_Q75});_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({},ee$2.UNSET,ce$1.UNSET),ee$2.FACTOID,ce$1.POLLS_INSIGHT),ee$2.POLL,ce$1.POLLS_POLL),ee$2.PREDICTION,ce$1.POLLS_PREDICTION),ee$2.PROMOTION,ce$1.POLLS_PROMOTION),ee$2.TRIVIA,ce$1.POLLS_TRIVIA),ee$2.TWEET,ce$1.POLLS_TWITTER);ee$2.UNSET+"",nt$2.UNSET,ee$2.FACTOID+"",nt$2.POLLS,ee$2.POLL+"",nt$2.POLLS,ee$2.PREDICTION+"",nt$2.POLLS,ee$2.PROMOTION+"",nt$2.POLLS,ee$2.TRIVIA+"",nt$2.POLLS,ee$2.TWEET+"",nt$2.POLLS;(_zg={},_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_zg,be$2.UNSET,Ge$2.UNSET),be$2.INPLAY,Ge$2.INPLAY),be$2.MESSAGING,Ge$2.MESSAGING),be$2.STATISTICS,Ge$2.STATS),be$2.BETTING,Ge$2.BETTING),be$2.TWITTER,Ge$2.TWITTER),be$2.MERCHANDISE,Ge$2.MERCHANDISE),be$2.CONTESTS,Ge$2.CONTESTS),be$2.VOICE_CHAT,Ge$2.CALLING),be$2.TICKETS,Ge$2.TICKETS),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_zg,be$2.WHOIS_WATCHING,Ge$2.WHOISWATCHING),be$2.PROFILE,Ge$2.PROFILE),be$2.GAMES,Ge$2.POLLS),be$2.GOLF_STATISTICS,Ge$2.STATS),be$2.HIGHLIGHTS,Ge$2.HIGHLIGHTS),be$2.PUBLIC_CHAT,Ge$2.PUBLIC_CHAT));ve$2("analytics");var bu$1=(typeof globalThis==="undefined"?"undefined":_typeof(globalThis))<"u"?globalThis:(typeof window==="undefined"?"undefined":_typeof(window))<"u"?window:_typeof(Po$1)<"u"?Po$1:(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$1={exports:{}},Xn$1={exports:{}},hl,zr$2;function jg(){if(zr$2)return hl;zr$2=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$1;function hu$1(){if(Kr$1)return Xn$1.exports;Kr$1=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$1.exports=t,Xn$1.exports.promise=o,Xn$1.exports;}var Fn$1={exports:{}},xr$2;function mu$1(){if(xr$2)return Fn$1.exports;xr$2=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$1.exports=i,Fn$1.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$1.exports;}var Mr$2={},Hr$1={},Or$2,Dr$1;function Vu$1(){return Dr$1||(Dr$1=1,Or$2=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$2;}var ml,jr$1;function jn$1(){if(jr$1)return ml;jr$1=1;var e=Vu$1();return ml=function ml(){return e()&&!!Symbol.toStringTag;},ml;}var Pr$2,_r$2;function gu$1(){return _r$2||(_r$2=1,Pr$2=Object),Pr$2;}var qr$1,$r$2;function Pg(){return $r$2||($r$2=1,qr$1=Error),qr$1;}var ea,ta$1;function _g(){return ta$1||(ta$1=1,ea=EvalError),ea;}var na$1,la$1;function qg(){return la$1||(la$1=1,na$1=RangeError),na$1;}var oa$1,ia$1;function $g(){return ia$1||(ia$1=1,oa$1=ReferenceError),oa$1;}var ra$1,aa$1;function Au(){return aa$1||(aa$1=1,ra$1=SyntaxError),ra$1;}var sa$1,ca$1;function bn$2(){return ca$1||(ca$1=1,sa$1=TypeError),sa$1;}var ua$1,da$1;function eA(){return da$1||(da$1=1,ua$1=URIError),ua$1;}var ba$1,ha$1;function tA(){return ha$1||(ha$1=1,ba$1=Math.abs),ba$1;}var ma$1,Va$1;function nA(){return Va$1||(Va$1=1,ma$1=Math.floor),ma$1;}var ga$1,Aa$1;function lA(){return Aa$1||(Aa$1=1,ga$1=Math.max),ga$1;}var Ra$1,pa$1;function oA(){return pa$1||(pa$1=1,Ra$1=Math.min),Ra$1;}var Ea$1,Wa$1;function iA(){return Wa$1||(Wa$1=1,Ea$1=Math.pow),Ea$1;}var Za$1,fa$1;function rA(){return fa$1||(fa$1=1,Za$1=Math.round),Za$1;}var ya$1,Ga$1;function aA(){return Ga$1||(Ga$1=1,ya$1=Number.isNaN||function(e){return e!==e;}),ya$1;}var Vl,Xa$1;function sA(){if(Xa$1)return Vl;Xa$1=1;var e=/* @__PURE__ */aA();return Vl=function Vl(t){return e(t)||t===0?t:t<0?-1:1;},Vl;}var Fa$1,Sa$1;function cA(){return Sa$1||(Sa$1=1,Fa$1=Object.getOwnPropertyDescriptor),Fa$1;}var gl,Na$1;function Ht$2(){if(Na$1)return gl;Na$1=1;var e=/* @__PURE__ */cA();if(e)try{e([],"length");}catch(_unused28){e=null;}return gl=e,gl;}var Al,Ia$1;function Pn$1(){if(Ia$1)return Al;Ia$1=1;var e=Object.defineProperty||false;if(e)try{e({},"a",{value:1});}catch(_unused29){e=false;}return Al=e,Al;}var Rl,Ya$1;function uA(){if(Ya$1)return Rl;Ya$1=1;var e=(typeof Symbol==="undefined"?"undefined":_typeof(Symbol))<"u"&&Symbol,t=Vu$1();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$1,Ba$1;function Ru(){return Ba$1||(Ba$1=1,Ua$1=(typeof Reflect==="undefined"?"undefined":_typeof(Reflect))<"u"&&Reflect.getPrototypeOf||null),Ua$1;}var pl,Ca$1;function pu$1(){if(Ca$1)return pl;Ca$1=1;var e=/* @__PURE__ */gu$1();return pl=e.getPrototypeOf||null,pl;}var El,Ja$1;function dA(){if(Ja$1)return El;Ja$1=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$1;function hn$2(){if(va$1)return Wl;va$1=1;var e=dA();return Wl=Function.prototype.bind||e,Wl;}var Ta$1,ka$1;function xo$1(){return ka$1||(ka$1=1,Ta$1=Function.prototype.call),Ta$1;}var Qa$1,wa$1;function Mo$1(){return wa$1||(wa$1=1,Qa$1=Function.prototype.apply),Qa$1;}var La$1,za$1;function bA(){return za$1||(za$1=1,La$1=(typeof Reflect==="undefined"?"undefined":_typeof(Reflect))<"u"&&Reflect&&Reflect.apply),La$1;}var Zl,Ka$1;function Eu$1(){if(Ka$1)return Zl;Ka$1=1;var e=hn$2(),t=Mo$1(),n=xo$1(),l=bA();return Zl=l||e.call(n,t),Zl;}var fl,xa$1;function Ho$1(){if(xa$1)return fl;xa$1=1;var e=hn$2(),t=/* @__PURE__ */bn$2(),n=xo$1(),l=Eu$1();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$1;function hA(){if(Ma$1)return yl;Ma$1=1;var e=Ho$1(),t=/* @__PURE__ */Ht$2(),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$1;function Oo$1(){if(Ha$1)return Gl;Ha$1=1;var e=Ru(),t=pu$1(),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$1;function Wu$1(){if(Oa$1)return Xl;Oa$1=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,n=hn$2();return Xl=n.call(e,t),Xl;}var Fl,Da$1;function Do$1(){if(Da$1)return Fl;Da$1=1;var e,t=/* @__PURE__ */gu$1(),n=/* @__PURE__ */Pg(),l=/* @__PURE__ */_g(),o=/* @__PURE__ */qg(),i=/* @__PURE__ */$g(),r=/* @__PURE__ */Au(),a=/* @__PURE__ */bn$2(),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$2(),N=/* @__PURE__ */Pn$1(),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$1(),E=pu$1(),F=Ru(),I=Mo$1(),C=xo$1(),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
733
732
  "%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$2(),v=/* @__PURE__ */Wu$1(),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$1={exports:{}},Sl,Pa$1;function mA(){if(Pa$1)return Sl;Pa$1=1;var e=/* @__PURE__ */Pn$1(),t=/* @__PURE__ */Au(),n=/* @__PURE__ */bn$2(),l=/* @__PURE__ */Ht$2();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$1;function VA(){if(_a$1)return Nl;_a$1=1;var e=/* @__PURE__ */Pn$1(),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$1;function gA(){if(qa$1)return Il;qa$1=1;var e=/* @__PURE__ */Do$1(),t=/* @__PURE__ */mA(),n=/* @__PURE__ */VA()(),l=/* @__PURE__ */Ht$2(),o=/* @__PURE__ */bn$2(),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$1;function AA(){if($a$1)return Yl;$a$1=1;var e=hn$2(),t=Mo$1(),n=Eu$1();return Yl=function Yl(){return n(e,t,arguments);},Yl;}var es$3;function Zu$1(){return es$3||(es$3=1,function(e){var t=/* @__PURE__ */gA(),n=/* @__PURE__ */Pn$1(),l=Ho$1(),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$1)),ja$1.exports;}var Ul,ts$3;function RA(){if(ts$3)return Ul;ts$3=1;var e=/* @__PURE__ */Do$1(),t=Zu$1(),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$3;function pA(){if(ns$3)return Bl;ns$3=1;var e=jn$1()(),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$3;function _n$1(){if(ls$3)return Cl;ls$3=1;var e=/* @__PURE__ */Do$1(),t=Ho$1(),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$3;function EA(){if(os$3)return Jl;os$3=1;var e=/* @__PURE__ */_n$1(),t=jn$1()(),n=/* @__PURE__ */Wu$1(),l=/* @__PURE__ */Ht$2(),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$3;function WA(){if(is$3)return vl;is$3=1;var e=/* @__PURE__ */_n$1(),t=EA(),n=e("RegExp.prototype.exec"),l=/* @__PURE__ */bn$2();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$3;function ZA(){if(rs$3)return Tl;rs$3=1;var e=/* @__PURE__ */_n$1(),t=/* @__PURE__ */WA(),n=t(/^\s*(?:function)?\*/),l=jn$1()(),o=Oo$1(),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$3;function fA(){if(as$3)return kl;as$3=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$3;function yA(){if(ss$3)return Ql;ss$3=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$3,us$3;function GA(){return us$3||(us$3=1,cs$3=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),cs$3;}var wl,ds$3;function XA(){if(ds$3)return wl;ds$3=1;var e=/* @__PURE__ */GA(),t=(typeof globalThis==="undefined"?"undefined":_typeof(globalThis))>"u"?bu$1: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$3;function fu$1(){if(bs$3)return Ll;bs$3=1;var e=yA(),t=/* @__PURE__ */XA(),n=Zu$1(),l=/* @__PURE__ */_n$1(),o=/* @__PURE__ */Ht$2(),i=Oo$1(),r=l("Object.prototype.toString"),a=jn$1()(),s=(typeof globalThis==="undefined"?"undefined":_typeof(globalThis))>"u"?bu$1: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
734
733
  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$3;function FA(){if(hs$3)return zl;hs$3=1;var e=/* @__PURE__ */fu$1();return zl=function zl(t){return !!e(t);},zl;}var ms$3;function SA(){return ms$3||(ms$3=1,function(e){var t=pA(),n=ZA(),l=/* @__PURE__ */fu$1(),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$1)),Hr$1;}var Vs$3,gs$3;function NA(){return gs$3||(gs$3=1,Vs$3=function Vs(e){return e&&_typeof(e)=="object"&&typeof e.copy=="function"&&typeof e.fill=="function"&&typeof e.readUInt8=="function";}),Vs$3;}var Kl={exports:{}},As$3;function IA(){return As$3||(As$3=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$3;function jo$1(){return Rs$3||(Rs$3=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$3)<"u"&&q$3.noDeprecation===true)return A;if(_typeof(q$3)>"u")return function(){return e.deprecate(A,y).apply(this,arguments);};var f=false;function T(){if(!f){if(q$3.throwDeprecation)throw new Error(y);q$3.traceDeprecation?console.trace(y):console.error(y),f=true;}return A.apply(this,arguments);}return T;};var l={},o=/^$/;if(q$3.env.NODE_DEBUG){var i=q$3.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$3.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
735
734
  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
@@ -2817,7 +2816,7 @@ var a = function a(C) {
2817
2816
  loader: t1,
2818
2817
  fgIcon: s
2819
2818
  },
2820
- H1 = function H1(_ref) {
2819
+ E1 = function E1(_ref) {
2821
2820
  var C = _ref.name,
2822
2821
  i = _ref.style,
2823
2822
  n = _ref.className,
@@ -3356,7 +3355,7 @@ function Me$1() {
3356
3355
  return i.prototype.clear = r, i.prototype.delete = e, i.prototype.get = t, i.prototype.has = n, i.prototype.set = a, br$1 = i, br$1;
3357
3356
  }
3358
3357
  var mr$2, La;
3359
- function Bn() {
3358
+ function Bn$1() {
3360
3359
  if (La) return mr$2;
3361
3360
  La = 1;
3362
3361
  var r = de$2(),
@@ -3370,7 +3369,7 @@ function $u() {
3370
3369
  Na = 1;
3371
3370
  var r = ku(),
3372
3371
  e = Me$1(),
3373
- t = Bn();
3372
+ t = Bn$1();
3374
3373
  function n() {
3375
3374
  this.size = 0, this.__data__ = {
3376
3375
  hash: new r(),
@@ -4207,7 +4206,7 @@ function Lo() {
4207
4206
  if (Yi) return St;
4208
4207
  Yi = 1;
4209
4208
  var r = Me$1(),
4210
- e = Bn(),
4209
+ e = Bn$1(),
4211
4210
  t = jn(),
4212
4211
  n = 200;
4213
4212
  function a(i, s) {
@@ -4518,7 +4517,7 @@ function Qo() {
4518
4517
  if (ls$2) return Wt$1;
4519
4518
  ls$2 = 1;
4520
4519
  var r = Yo(),
4521
- e = Bn(),
4520
+ e = Bn$1(),
4522
4521
  t = Jo(),
4523
4522
  n = Xo(),
4524
4523
  a = Zo(),
@@ -4999,9 +4998,9 @@ function _c() {
4999
4998
  }
5000
4999
  return Cn$1 = r, Cn$1;
5001
5000
  }
5002
- var Fn$1, ks$2;
5001
+ var Fn, ks$2;
5003
5002
  function bc() {
5004
- return ks$2 || (ks$2 = 1, Fn$1 = _c()), Fn$1;
5003
+ return ks$2 || (ks$2 = 1, Fn = _c()), Fn;
5005
5004
  }
5006
5005
  var Rn, Hs$2;
5007
5006
  function mc() {
@@ -6280,7 +6279,7 @@ function Te$2(t, e) {
6280
6279
  };
6281
6280
  }
6282
6281
  var U = (typeof window === "undefined" ? "undefined" : _typeof(window)) > "u" ? e$1.useEffect : e$1.useLayoutEffect,
6283
- j$1 = function j(_ref6) {
6282
+ H$2 = function H(_ref6) {
6284
6283
  var t = _ref6.isPlaying,
6285
6284
  e = _ref6.duration,
6286
6285
  _ref6$startAt = _ref6.startAt,
@@ -6308,10 +6307,10 @@ var U = (typeof window === "undefined" ? "undefined" : _typeof(window)) > "u" ?
6308
6307
  var F = u - o.current,
6309
6308
  C = T.current + F;
6310
6309
  o.current = u, T.current = C;
6311
- var O = R.current + (n === 0 ? C : (C / n | 0) * n),
6310
+ var B = R.current + (n === 0 ? C : (C / n | 0) * n),
6312
6311
  D = R.current + C,
6313
6312
  g = typeof e == "number" && D >= e;
6314
- l(g ? e : O), g || (_.current = requestAnimationFrame(_m));
6313
+ l(g ? e : B), g || (_.current = requestAnimationFrame(_m));
6315
6314
  },
6316
6315
  I = function I() {
6317
6316
  _.current && cancelAnimationFrame(_.current), c.current && clearTimeout(c.current), o.current = null;
@@ -6341,7 +6340,7 @@ var U = (typeof window === "undefined" ? "undefined" : _typeof(window)) > "u" ?
6341
6340
  reset: N
6342
6341
  };
6343
6342
  },
6344
- z = function z(t, e, i) {
6343
+ j$1 = function j(t, e, i) {
6345
6344
  var n = t / 2,
6346
6345
  r = e / 2,
6347
6346
  a = n - r,
@@ -6356,7 +6355,7 @@ var U = (typeof window === "undefined" ? "undefined" : _typeof(window)) > "u" ?
6356
6355
  G$1 = function G(t, e) {
6357
6356
  return t === 0 || t === e ? 0 : typeof e == "number" ? t - e : 0;
6358
6357
  },
6359
- H$2 = function H(t) {
6358
+ z = function z(t) {
6360
6359
  return {
6361
6360
  position: "relative",
6362
6361
  width: t,
@@ -6426,10 +6425,10 @@ var U = (typeof window === "undefined" ? "undefined" : _typeof(window)) > "u" ?
6426
6425
  _ = t.onUpdate,
6427
6426
  o = e$1.useRef(),
6428
6427
  c = Math.max(a, E !== null && E !== void 0 ? E : 0),
6429
- _z = z(r, c, R),
6430
- m = _z.path,
6431
- I = _z.pathLength,
6432
- _j = j$1({
6428
+ _j = j$1(r, c, R),
6429
+ m = _j.path,
6430
+ I = _j.pathLength,
6431
+ _H = H$2({
6433
6432
  isPlaying: l,
6434
6433
  duration: e,
6435
6434
  startAt: G$1(e, i),
@@ -6442,16 +6441,16 @@ var U = (typeof window === "undefined" ? "undefined" : _typeof(window)) > "u" ?
6442
6441
  var F;
6443
6442
  var _ref8 = (F = s(u)) != null ? F : {},
6444
6443
  C = _ref8.shouldRepeat,
6445
- O = _ref8.delay,
6444
+ B = _ref8.delay,
6446
6445
  D = _ref8.newInitialRemainingTime;
6447
6446
  if (C) return {
6448
6447
  shouldRepeat: C,
6449
- delay: O,
6448
+ delay: B,
6450
6449
  newStartAt: G$1(e, D)
6451
6450
  };
6452
6451
  } : void 0
6453
6452
  }),
6454
- N = _j.elapsedTime,
6453
+ N = _H.elapsedTime,
6455
6454
  f = e - N;
6456
6455
  return {
6457
6456
  elapsedTime: N,
@@ -6480,7 +6479,7 @@ var U = (typeof window === "undefined" ? "undefined" : _typeof(window)) > "u" ?
6480
6479
  _ = _Z.size,
6481
6480
  o = _Z.strokeWidth;
6482
6481
  return e__namespace.default.createElement("div", {
6483
- style: H$2(_)
6482
+ style: z(_)
6484
6483
  }, e__namespace.default.createElement("svg", {
6485
6484
  viewBox: "0 0 ".concat(_, " ").concat(_),
6486
6485
  width: _,
@@ -6570,7 +6569,7 @@ var ee$1 = [10, 10, 1, 0],
6570
6569
  height: t,
6571
6570
  width: e
6572
6571
  },
6573
- children: /* @__PURE__ */jsxRuntime.jsx(H1, {
6572
+ children: /* @__PURE__ */jsxRuntime.jsx(E1, {
6574
6573
  name: "loader"
6575
6574
  })
6576
6575
  });
@@ -7190,7 +7189,7 @@ var J$1 = new Je$2(),
7190
7189
  propsAsIs: false
7191
7190
  }),
7192
7191
  ls$1 = function ls() {
7193
- return H1;
7192
+ return E1;
7194
7193
  },
7195
7194
  ds$1 = /* @__PURE__ */ne$2(ls$1())({
7196
7195
  name: "Icon",
@@ -7231,7 +7230,7 @@ var J$1 = new Je$2(),
7231
7230
  propsAsIs: false
7232
7231
  }),
7233
7232
  Is$1 = function Is() {
7234
- return H1;
7233
+ return E1;
7235
7234
  },
7236
7235
  ve$1 = /* @__PURE__ */ne$2(Is$1())({
7237
7236
  name: "IconPrediction",
@@ -7323,10 +7322,10 @@ var J$1 = new Je$2(),
7323
7322
  C = P && k,
7324
7323
  V = P && r,
7325
7324
  f = l === ee$2.PREDICTION && c && v && r,
7326
- F = c && l === ee$2.POLL && v,
7325
+ B = c && l === ee$2.POLL && v,
7327
7326
  w = a ? "correct" : "incorrect",
7328
7327
  L = a ? n === null || n === void 0 ? void 0 : n.correctFeedback : n === null || n === void 0 ? void 0 : n.incorrectFeedback;
7329
- return p || h || C || V || S || F || f || m ? /* @__PURE__ */jsxRuntime.jsx(ms$1, {
7328
+ return p || h || C || V || S || B || f || m ? /* @__PURE__ */jsxRuntime.jsx(ms$1, {
7330
7329
  enabled: v,
7331
7330
  animate: !m && p ? true : y,
7332
7331
  onAnimationEnd: q,
@@ -7340,7 +7339,7 @@ var J$1 = new Je$2(),
7340
7339
  })]
7341
7340
  }), !m && p && /* @__PURE__ */jsxRuntime.jsxs(Q$1, {
7342
7341
  children: [!I && /* @__PURE__ */jsxRuntime.jsx(X, {
7343
- children: /* @__PURE__ */jsxRuntime.jsx(H1, {
7342
+ children: /* @__PURE__ */jsxRuntime.jsx(E1, {
7344
7343
  name: "questionExpired"
7345
7344
  })
7346
7345
  }), /* @__PURE__ */jsxRuntime.jsxs("div", {
@@ -7355,7 +7354,7 @@ var J$1 = new Je$2(),
7355
7354
  }), !m && h && /* @__PURE__ */jsxRuntime.jsxs(Q$1, {
7356
7355
  className: T$1(Ae),
7357
7356
  children: [/* @__PURE__ */jsxRuntime.jsx(X, {
7358
- children: /* @__PURE__ */jsxRuntime.jsx(H1, {
7357
+ children: /* @__PURE__ */jsxRuntime.jsx(E1, {
7359
7358
  name: "questionExpired"
7360
7359
  })
7361
7360
  }), /* @__PURE__ */jsxRuntime.jsxs("div", {
@@ -7369,7 +7368,7 @@ var J$1 = new Je$2(),
7369
7368
  })]
7370
7369
  }), S && /* @__PURE__ */jsxRuntime.jsxs(Q$1, {
7371
7370
  children: [!I && /* @__PURE__ */jsxRuntime.jsx(X, {
7372
- children: /* @__PURE__ */jsxRuntime.jsx(H1, {
7371
+ children: /* @__PURE__ */jsxRuntime.jsx(E1, {
7373
7372
  name: "questionExpired"
7374
7373
  })
7375
7374
  }), /* @__PURE__ */jsxRuntime.jsxs("div", {
@@ -7391,10 +7390,10 @@ var J$1 = new Je$2(),
7391
7390
  children: "We’ll notify you of the result."
7392
7391
  })]
7393
7392
  })]
7394
- }), !m && F && /* @__PURE__ */jsxRuntime.jsxs(Q$1, {
7393
+ }), !m && B && /* @__PURE__ */jsxRuntime.jsxs(Q$1, {
7395
7394
  children: [!I && /* @__PURE__ */jsxRuntime.jsx(X, {
7396
7395
  "data-feedback-type": "correct",
7397
- children: /* @__PURE__ */jsxRuntime.jsx(H1, {
7396
+ children: /* @__PURE__ */jsxRuntime.jsx(E1, {
7398
7397
  name: "correct"
7399
7398
  })
7400
7399
  }), /* @__PURE__ */jsxRuntime.jsx(W, {
@@ -7404,7 +7403,7 @@ var J$1 = new Je$2(),
7404
7403
  className: T$1(h && Ae),
7405
7404
  children: [!I && /* @__PURE__ */jsxRuntime.jsx(X, {
7406
7405
  "data-feedback-type": w,
7407
- children: /* @__PURE__ */jsxRuntime.jsx(H1, {
7406
+ children: /* @__PURE__ */jsxRuntime.jsx(E1, {
7408
7407
  name: w
7409
7408
  })
7410
7409
  }), /* @__PURE__ */jsxRuntime.jsx("div", {
@@ -7462,7 +7461,7 @@ var J$1 = new Je$2(),
7462
7461
  propsAsIs: false
7463
7462
  }),
7464
7463
  Ds$1 = function Ds() {
7465
- return H1;
7464
+ return E1;
7466
7465
  },
7467
7466
  qs$1 = /* @__PURE__ */ne$2(Ds$1())({
7468
7467
  name: "Icon",
@@ -7547,16 +7546,16 @@ var J$1 = new Je$2(),
7547
7546
  class: "e1l05ict",
7548
7547
  propsAsIs: false
7549
7548
  }),
7550
- Bs$1 = function Bs() {
7551
- return H1;
7549
+ Fs$1 = function Fs() {
7550
+ return E1;
7552
7551
  },
7553
- Fs$1 = /* @__PURE__ */ne$2(Bs$1())({
7552
+ Bs$1 = /* @__PURE__ */ne$2(Fs$1())({
7554
7553
  name: "EarlyPredictionIcon",
7555
7554
  class: "ez9juex",
7556
7555
  propsAsIs: true
7557
7556
  }),
7558
7557
  zs$1 = function zs() {
7559
- return H1;
7558
+ return E1;
7560
7559
  },
7561
7560
  Ys$1 = /* @__PURE__ */ne$2(zs$1())({
7562
7561
  name: "SponsorIcon",
@@ -7578,12 +7577,12 @@ var J$1 = new Je$2(),
7578
7577
  class: "b1gq1lnf",
7579
7578
  propsAsIs: false
7580
7579
  }),
7581
- _s$1 = /* @__PURE__ */ne$2("span")({
7580
+ Hs$1 = /* @__PURE__ */ne$2("span")({
7582
7581
  name: "ButtonBody",
7583
7582
  class: "b1j65z51",
7584
7583
  propsAsIs: false
7585
7584
  }),
7586
- Hs$1 = /* @__PURE__ */ne$2("div")({
7585
+ _s$1 = /* @__PURE__ */ne$2("div")({
7587
7586
  name: "IconContainer",
7588
7587
  class: "i19tpfua",
7589
7588
  propsAsIs: false
@@ -7640,7 +7639,7 @@ var J$1 = new Je$2(),
7640
7639
  propsAsIs: false
7641
7640
  }),
7642
7641
  on = function on() {
7643
- return H1;
7642
+ return E1;
7644
7643
  },
7645
7644
  cn = /* @__PURE__ */ne$2(on())({
7646
7645
  name: "CheckIcon",
@@ -7654,7 +7653,7 @@ var J$1 = new Je$2(),
7654
7653
  src: n
7655
7654
  });
7656
7655
  }), HA.TRANSPARENT, function (n) {
7657
- return /* @__PURE__ */jsxRuntime.jsx(Hs$1, {
7656
+ return /* @__PURE__ */jsxRuntime.jsx(_s$1, {
7658
7657
  "data-testid": "vote-icon",
7659
7658
  children: /* @__PURE__ */jsxRuntime.jsx(Zs$1, {
7660
7659
  style: {
@@ -7720,13 +7719,13 @@ var J$1 = new Je$2(),
7720
7719
  C = n.marketClosed,
7721
7720
  V = n.isEarlyPrediction,
7722
7721
  f = n.isAd,
7723
- F = n.webos,
7722
+ B = n.webos,
7724
7723
  _$3 = e$1.useState(0),
7725
7724
  _$4 = _slicedToArray(_$3, 2),
7726
7725
  w = _$4[0],
7727
7726
  L = _$4[1],
7728
7727
  z = dn(n),
7729
- H = pn({
7728
+ _ = pn({
7730
7729
  questionType: P,
7731
7730
  questionVoted: y,
7732
7731
  correct: k,
@@ -7743,7 +7742,7 @@ var J$1 = new Je$2(),
7743
7742
  });
7744
7743
  }, [r]), /* @__PURE__ */jsxRuntime.jsxs(un, {
7745
7744
  value: a,
7746
- webos: F,
7745
+ webos: B,
7747
7746
  autoFocus: i,
7748
7747
  "data-selected": b,
7749
7748
  "data-answer-state": z,
@@ -7766,7 +7765,7 @@ var J$1 = new Je$2(),
7766
7765
  },
7767
7766
  "data-is-ad": f
7768
7767
  })
7769
- }), /* @__PURE__ */jsxRuntime.jsxs(_s$1, {
7768
+ }), /* @__PURE__ */jsxRuntime.jsxs(Hs$1, {
7770
7769
  "data-a": "intr",
7771
7770
  children: [c && O && ((_ln$O = ln[O]) === null || _ln$O === void 0 ? void 0 : _ln$O.call(ln, c)), /* @__PURE__ */jsxRuntime.jsx(sn, {
7772
7771
  "data-a": "intr",
@@ -7776,7 +7775,7 @@ var J$1 = new Je$2(),
7776
7775
  children: "pts"
7777
7776
  })]
7778
7777
  }), ne && /* @__PURE__ */jsxRuntime.jsxs(nn, {
7779
- children: [H && /* @__PURE__ */jsxRuntime.jsx(cn, {
7778
+ children: [_ && /* @__PURE__ */jsxRuntime.jsx(cn, {
7780
7779
  name: V ? "selectedBetPack" : "selected"
7781
7780
  }), /* @__PURE__ */jsxRuntime.jsx(an, {
7782
7781
  children: /* @__PURE__ */jsxRuntime.jsx(ht, {
@@ -7812,7 +7811,7 @@ var J$1 = new Je$2(),
7812
7811
  propsAsIs: false
7813
7812
  }),
7814
7813
  yn = function yn() {
7815
- return H1;
7814
+ return E1;
7816
7815
  },
7817
7816
  Tn = /* @__PURE__ */ne$2(yn())({
7818
7817
  name: "WinIcon",
@@ -7880,7 +7879,7 @@ var J$1 = new Je$2(),
7880
7879
  wn = function wn(n, a) {
7881
7880
  return n === "already_voted" ? a === ee$2.POLL ? "You’ve already answered this question on another device." : "You’ve already answered this question on another device. So the points for this answer won't tally." : "Something went wrong, please try again";
7882
7881
  },
7883
- Fn = function Fn(_ref0) {
7882
+ Bn = function Bn(_ref0) {
7884
7883
  var _n$options, _n$appearance2;
7885
7884
  var n = _ref0.openedQuestion,
7886
7885
  a = _ref0.isLoading,
@@ -7913,7 +7912,7 @@ var J$1 = new Je$2(),
7913
7912
  _$1 = e$1.useState(false),
7914
7913
  _$10 = _slicedToArray(_$1, 2),
7915
7914
  f = _$10[0],
7916
- F = _$10[1],
7915
+ B = _$10[1],
7917
7916
  _$11 = e$1.useState(false),
7918
7917
  _$12 = _slicedToArray(_$11, 2),
7919
7918
  w = _$12[0],
@@ -7921,7 +7920,7 @@ var J$1 = new Je$2(),
7921
7920
  _$13 = e$1.useState(""),
7922
7921
  _$14 = _slicedToArray(_$13, 2),
7923
7922
  z = _$14[0],
7924
- H = _$14[1],
7923
+ _ = _$14[1],
7925
7924
  _$15 = e$1.useState(""),
7926
7925
  _$16 = _slicedToArray(_$15, 2),
7927
7926
  x = _$16[0],
@@ -7971,7 +7970,7 @@ var J$1 = new Je$2(),
7971
7970
  break;
7972
7971
  }
7973
7972
  D = u.currentTarget.value;
7974
- H(D);
7973
+ _(D);
7975
7974
  _context.p = 1;
7976
7975
  _context.n = 2;
7977
7976
  return c(y, D);
@@ -7982,7 +7981,7 @@ var J$1 = new Je$2(),
7982
7981
  case 3:
7983
7982
  _context.p = 3;
7984
7983
  _t = _context.v;
7985
- ne(wn(_t.message, i)), H(""), console.error("Error while voting", _t), ae.current = false;
7984
+ ne(wn(_t.message, i)), _(""), console.error("Error while voting", _t), ae.current = false;
7986
7985
  case 4:
7987
7986
  return _context.a(2);
7988
7987
  }
@@ -7991,9 +7990,9 @@ var J$1 = new Je$2(),
7991
7990
  return function (_x) {
7992
7991
  return _ref1.apply(this, arguments);
7993
7992
  };
7994
- }(), [i, y, H, c, T, he]),
7993
+ }(), [i, y, _, c, T, he]),
7995
7994
  Oe = e$1.useCallback(function () {
7996
- F(true), M({
7995
+ B(true), M({
7997
7996
  delay: 3500
7998
7997
  });
7999
7998
  }, [M]),
@@ -8062,8 +8061,8 @@ var J$1 = new Je$2(),
8062
8061
  je = !ce || ce && i === ee$2.PREDICTION && q && !Y,
8063
8062
  Qe = (i === ee$2.TRIVIA || i === ee$2.PREDICTION) && d && A && (R === null || R === void 0 ? void 0 : R.youVoted),
8064
8063
  We = d || j || oe || i === ee$2.TRIVIA && m === Ne$2.RESOLVED && C,
8065
- Be = !r && (f || w) || ue,
8066
- Fe = function Fe() {
8064
+ Fe = !r && (f || w) || ue,
8065
+ Be = function Be() {
8067
8066
  var u = function u() {
8068
8067
  return i === ee$2.TRIVIA ? d !== null && d !== void 0 && d.correct ? "That's correct!\nYou chose wisely." : "So close!\nBetter luck next time." : i === ee$2.POLL ? "Thanks for answering.\nPlease stay tuned for the next question." : i === ee$2.PREDICTION ? "Stay tuned to see if your prediction was correct." : "";
8069
8068
  },
@@ -8126,9 +8125,9 @@ var J$1 = new Je$2(),
8126
8125
  timerDuration: We ? 0 : Number((n === null || n === void 0 || (_n$appearance2 = n.appearance) === null || _n$appearance2 === void 0 ? void 0 : _n$appearance2.autoHideInterval) || "30"),
8127
8126
  votedInCurrentRender: q,
8128
8127
  percentsAnimated: Y
8129
- }), Be ? Fe() : /* @__PURE__ */jsxRuntime.jsxs(jsxRuntime.Fragment, {
8128
+ }), Fe ? Be() : /* @__PURE__ */jsxRuntime.jsxs(jsxRuntime.Fragment, {
8130
8129
  children: [r && /* @__PURE__ */jsxRuntime.jsxs(Ws$1, {
8131
- children: [/* @__PURE__ */jsxRuntime.jsx(Fs$1, {
8130
+ children: [/* @__PURE__ */jsxRuntime.jsx(Bs$1, {
8132
8131
  name: "iconEarlyPrediction"
8133
8132
  }), "EARLY PREDICTION"]
8134
8133
  }), /* @__PURE__ */jsxRuntime.jsx(Ls$1, {
@@ -11020,7 +11019,7 @@ var Qs = function Qs() {
11020
11019
  propsAsIs: false
11021
11020
  }),
11022
11021
  Js = function Js() {
11023
- return H1;
11022
+ return E1;
11024
11023
  },
11025
11024
  Zs = /* @__PURE__ */ne$2(Js())({
11026
11025
  name: "SponsorIconI",
@@ -11187,7 +11186,7 @@ var Qs = function Qs() {
11187
11186
  ur$1 = function ur(_ref1) {
11188
11187
  var t = _ref1.question,
11189
11188
  e = _ref1.vote;
11190
- return t ? /* @__PURE__ */jsxRuntime.jsx(Fn, {
11189
+ return t ? /* @__PURE__ */jsxRuntime.jsx(Bn, {
11191
11190
  close: function close() {},
11192
11191
  openedQuestion: t,
11193
11192
  vote: e,
@@ -11201,7 +11200,7 @@ var Qs = function Qs() {
11201
11200
  propsAsIs: false
11202
11201
  }),
11203
11202
  fr = function fr() {
11204
- return H1;
11203
+ return E1;
11205
11204
  },
11206
11205
  mr$1 = /* @__PURE__ */ne$2(fr())({
11207
11206
  name: "IconArrowRight",
@@ -11732,7 +11731,7 @@ var br = function br(_ref11) {
11732
11731
  }),
11733
11732
  Fe = "b590k5k",
11734
11733
  kr = function kr() {
11735
- return H1;
11734
+ return E1;
11736
11735
  },
11737
11736
  ut = /* @__PURE__ */ne$2(kr())({
11738
11737
  name: "IconArrowPrev",
@@ -11826,13 +11825,13 @@ var br = function br(_ref11) {
11826
11825
  ref: r,
11827
11826
  children: [/* @__PURE__ */jsxRuntime.jsxs(Ar, {
11828
11827
  children: [/* @__PURE__ */jsxRuntime.jsxs(Or, {
11829
- children: [/* @__PURE__ */jsxRuntime.jsx(H1, {
11828
+ children: [/* @__PURE__ */jsxRuntime.jsx(E1, {
11830
11829
  name: "fgIcon"
11831
11830
  }), "Featured Groups+"]
11832
11831
  }), /* @__PURE__ */jsxRuntime.jsx(Mr, {
11833
11832
  "data-a": "intr",
11834
11833
  onClick: s,
11835
- children: /* @__PURE__ */jsxRuntime.jsx(H1, {
11834
+ children: /* @__PURE__ */jsxRuntime.jsx(E1, {
11836
11835
  name: "icon-close-btn-gray"
11837
11836
  })
11838
11837
  })]