/*! v:1076713 b:default c:586 */ try{var cnc=function(e){if(!e||!e.toString)return!1;const t=e.toString();return/\[native code\]/.test(t)||/\/\* source code not available \*\//.test(t)};cnc(Function.prototype.bind)?Function.prototype.__pbind=Function.prototype.bind:Function.prototype.__pbind=function(e,...t){let n=this;return function(...r){return n.apply(e,[...t,...r])}},cnc(Array.prototype.reduce)?Object.defineProperty&&Object.defineProperty(Array.prototype,"__preduce",{enumerable:!1,iterable:!1,value:Array.prototype.reduce}):Object.defineProperty(Array.prototype,"__preduce",{enumerable:!1,iterable:!1,value:function(e){if(null==this)throw new TypeError("Array.prototype.reduce called on null or undefined");if("function"!=typeof e)throw new TypeError(e+" is not a function");var t,n=Object(this),r=n.length>>>0,o=0;if(arguments.length>=2)t=arguments[1];else{for(;o=r)throw new TypeError("Reduce of empty array with no initial value");t=n[o++]}for(;o{const t=function(e=window){try{return(e.navigator||{}).userAgent||""}catch(e){return""}}(e).toLowerCase();if(t.indexOf("android")>-1)return!1;const n=t.replace(/\(.+?\)/gi,"").split(" ").map((e=>e.trim().split("/")[0])).filter((e=>e&&"mobile"!==e));return 4===n.length&&"mozilla"===n[0]&&"applewebkit"===n[1]&&"version"===n[2]&&"safari"===n[3]})(e)||function(e=window){const t=e.navigator.userAgent.toLowerCase();return/ipad|iphone|ipod/.test(t)&&!e.MSStream&&!((e=window)=>e.navigator.userAgent.indexOf("UCBrowser")>-1)(e)}(e)||function(e=window){return/Apple/.test(e.navigator.vendor)&&function(e=window){return function(e){return"ontouchstart"in e}(e)}(e)}(e)}()},56926:function(e,t,n){n.d(t,{M:function(){return v}});const r=!(0,n(85981).E)(Math.random)||Math.random()==Math.random();var o=n(27287);const i=Date&&(0,o.m)(Date.now)?()=>Date.now():()=>(new Date).getTime(),a="undefined"==typeof window?void 0:window.performance,s=a&&(0,o.m)(a.now),c=a&&a.timing&&a.timing.navigationStart?a.timing.navigationStart:i();let u=0;const l=s?()=>a.now():()=>(()=>{const e=i()-c;return u=Math.max(e,u),u})(),d=2147483647;let f=Date.now()*l()%d;const v=r?function(){return f=16807*f%d,(f-1)/2147483646}:function(){return Math.random()}},85981:function(e,t,n){function r(e){if(!e||!e.toString)return!1;try{const t=e.toString();return/\[native code\]/.test(t)||/\/\* source code not available \*\//.test(t)}catch(e){return!1}}n.d(t,{E:function(){return r}})},39082:function(e,t,n){function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function o(e,t,n){for(const o in e)r(e,o)&&t.call(n,e[o],o,e)}n.d(t,{M:function(){return o}})},77343:function(e,t,n){n.d(t,{T:function(){return o}});var r=n(85758);const o=e=>{const t=[];for(;e;)try{if((0,r.b)(e),t.push(e),e.parent===e)break;e=e.parent}catch(e){break}return t}},12346:function(e,t,n){n.d(t,{M:function(){return i}});const r={}.toString,o=/\[object (\w+)\]/,i=e=>{const t=r.call(e);if(!t)return null;const n=t.match(o);if(!n)return null;return n[1]||null}},41990:function(e,t,n){n.d(t,{F:function(){return i}});var r=n(85758),o=n(49847);function i(e){const t=function(e,t=!0){if(o.$&&t)return[];{const t=[];let n=e;for(;;)try{if(n=n.ownerDocument.defaultView.frameElement,!n)return t;t.push(n)}catch(e){return t}}}(e.documentElement).map((e=>e.ownerDocument));return t.unshift(e),t.map((e=>({location:(0,r.b)(e.defaultView),referrer:e.referrer})))}},85758:function(e,t,n){function r(e){if(e&&e.location){const{location:t}=e;return"function"==typeof t.toString?t.toString():t.href||""}return""}n.d(t,{b:function(){return r}})},14307:function(e,t,n){n.d(t,{V:function(){return o}});var r=n(12346);const o=e=>e instanceof Error||"Error"===(0,r.M)(e)},27287:function(e,t,n){n.d(t,{m:function(){return o}});var r=n(12346);function o(e){return"function"==typeof e||"Function"===(0,r.M)(e)}},93288:function(e,t,n){n.d(t,{H:function(){return o}});var r=n(58256);function o(e){return(0,r.H)(e)&&e.length>0}},58256:function(e,t,n){function r(e){return"string"==typeof e}n.d(t,{H:function(){return r}})},25516:function(e,t,n){n.d(t,{m:function(){return o}});var r=n(58256);function o(e){if(void 0!==e){if(!(0,r.H)(e))throw new Error(`testIdsString is not a string or undefined [${e}]`);if(0!==e.length){for(const t of e.split(";")){const n=t.split(",");if(3!==n.length)throw new Error(`testIdParts length error [${e}]`);const[r,,o]=n;if(0===r.trim().length)throw new Error(`testId length error [${e}]`);if(0===o.trim().length)throw new Error(`testId bucket length error [${e}]`)}return e}}}},21877:function(e,t,n){n.d(t,{V:function(){return u}});var r=n(14514);const o=(e,t)=>{for(let n=0;n{const t=o(u.errorHandlers,(t=>t===e));-1!==t&&u.errorHandlers.splice(t,1)}}static addCallAfterDestroyErrorHandler(e){return u.callAfterDestroyErrorHandlers.push(e),()=>{const t=o(u.callAfterDestroyErrorHandlers,(t=>t===e));-1!==t&&u.callAfterDestroyErrorHandlers.splice(t,1)}}addDestroyHandler(e){this._addDestroyHandler(e)}destroy(...e){const[t]=e;this._isDestroyed||(this._isDestroyed=!0,this._destroyReason=t,(0,a.E)(this.destroyHandlers,(t=>{try{t(...e)}catch(e){(0,s.p)(u.errorHandlers,e)}})),this.destroyHandlers.length=0)}ignoreAfterDestroy(e,t,n=i.DO_NOTHING){return(...o)=>{if(!this.isDestroyed)return e.apply(this,o);const a=new r.J({code:"DESTROYABLE_METHOD_CALLED_AFTER_DESTROY",details:{identifier:t}});if((0,s.p)(u.callAfterDestroyErrorHandlers,a),n===i.DEPENDS_ON_AB_FLAGS){if("TRUE"===c.L.getFlagValueAndActivateTestId("VAS_DESTROYABLE_THROW_ERROR_AFTER_DESTROY"))throw new Error("You cannot call a method of a class that had destroy() called");if("TRUE"===c.L.getFlagValueAndActivateTestId("VAS_DESTROYABLE_RETURN_UNDEFINED_AFTER_DESTROY"))return}return n===i.CALL_NORMALLY?e.apply(this,o):void 0}}_addDestroyHandler(e){this._isDestroyed?e(this._destroyReason):this.destroyHandlers.push(e)}}Object.defineProperty(u,"errorHandlers",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(u,"callAfterDestroyErrorHandlers",{enumerable:!0,configurable:!0,writable:!0,value:[]})},18941:function(e,t,n){n.r(t),n.d(t,{loadVasModule:function(){return Q}});var r=n(93288),o=n(61175);function i(...e){const t=(0,o.h)(e,Boolean);if(0!==t.length)return t.join(";")}var a=n(25516),s=n(14514),c=n(51597),u=n(27287),l=n(94093),d=n(11358);class f{constructor(e){Object.defineProperty(this,"dispatch",{enumerable:!0,configurable:!0,writable:!0,value:(0,d.I)((e=>{this.value=e,this._isDispatched=!0,(0,c.p)(this.callbacks,e),this.callbacks.length=0}))}),Object.defineProperty(this,"callbacks",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_isDispatched",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),(0,u.m)(e)&&this.callbacks.push(e)}subscribe(e){return this._isDispatched?(e(this.value),l.Z):(this.callbacks.push(e),()=>{this.callbacks=(0,o.h)(this.callbacks,(t=>t!==e))})}getDispatched(){return this._isDispatched}getValue(){return this.value}wait(){return new Promise((e=>{this.subscribe(e)}))}}var v=n(10145),h=n(41990);function g(e){let t="",n="";return e&&(0,h.F)(e).reverse().forEach((({location:e,referrer:r})=>{t=t||e,n=n||r})),{location:t,referrer:n}}function b(e){let t=function(){let n;return t=()=>n,n=e.apply(this,arguments),n};return function(){return t.apply(this,arguments)}}function p(...e){}var m=n(39082);const _=200;function S(e){const{method:t,url:n,async:r=!0,data:o,responseType:i="text",onBeforeSend:a=p,onRetry:s=p,checkStatus:c=(e=>_===e),headers:u={},xhrConstructor:l=XMLHttpRequest,retries:d=0,timeout:f=0,withCredentials:v,onAbort:h,onSetup:g}=e;if(!l)return;const A=e.onSuccess?b(e.onSuccess):p,y=e.onError?b(e.onError):p;let w,E=!1,O=0,I=e=>{E=!0,I=p,w=e,T(new Error("Abort request")),"function"==typeof h&&h(e)};const T=t=>{if(D.onerror=null,D.onreadystatechange=null,O&&clearTimeout(O),O&&4!==D.readyState||E)try{D.abort()}catch(e){}if(!E)if(d>0){const n=s(t,D);if("boolean"!=typeof n||n||I(),E)return;S(Object.assign(Object.assign({},e),{onSetup:({abort:e})=>{I=t=>e(t),E&&e(w)},retries:d-1}))}else I=p,y(t,D)},D=new l;try{D.open(t,n,r)}catch(e){return void T(e)}if(D.responseType=i,D.withCredentials=Boolean(v),(0,m.M)(u,((e,t)=>{try{D.setRequestHeader(t,e)}catch(e){}})),f>0&&isFinite(f)&&(O=window.setTimeout((()=>{T(new Error(`Request timeout, ${n}`))}),f)),D.onerror=T,D.onreadystatechange=()=>{if(4===D.readyState){const{status:e}=D;c(e)?(I=p,clearTimeout(O),A(D)):T(new Error(`Invalid request status ${e}, ${n}`))}},!("function"==typeof g&&(g({abort:e=>I(e)}),E)||(a(D,e),E)))try{D.send(o)}catch(e){T(e)}}var A=n(85981);const y=e=>(0,A.E)(e.navigator.sendBeacon),w=y(window);var E=n(25759);class O{constructor({defaultProbability:e,rnd:t,vsid:n,serviceName:r,serviceVersion:o}){Object.defineProperty(this,"rnd",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"vsid",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"defaultProbability",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"serviceName",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"serviceVersion",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"error",{enumerable:!0,configurable:!0,writable:!0,value:({error:e})=>{this.push({eventName:String(e.code),eventType:"error",eventData:e,probability:1})}}),this.rnd=t,this.vsid=n,this.defaultProbability=e,this.serviceName=r,this.serviceVersion=o}log({name:e,probability:t,data:n}){this.push({eventType:"event",eventName:e,probability:t,eventData:n})}push({eventType:e,eventName:t,probability:r=this.defaultProbability,eventData:o}){if(this.rnd{t=function(e){const t=D(e,"adsdkecmaver");if("ES2017"===t||"ES5"===t)return t}(e)})),(0,v.Y)((()=>{i=Boolean(D(e,"adsdkdebug"))})),(0,v.Y)((()=>{n=D(e,"adsdkver")})),(0,v.Y)((()=>{r=Boolean(D(e,"vasnetworklogs"))})),(0,v.Y)((()=>{o=((e,t)=>{const n=D(e,t);return"false"!==n&&Boolean(n)})(e,"vasfulldebug")})),i&&(console.warn("adsdkdebug is deprecated, use vasfulldebug instead"),o=!0),o&&(r=!0),{adsdkecmaver:t,vasfulldebug:o,vasnetworklogs:r,adsdkver:n,adsdkdebug:i}}(window),N=R.vasnetworklogs?1:.05,V=(0,n(56926).M)();var P=n(60825);const L=e=>{var t;const{error:n,config:o}=(0,P.vn)(e);if(!n){const e=o.flags,n=null!==(t=e["ADSDKVER"])&&void 0!==t?t:e["VAS_STABLE_VERSION"],i=(0,r.H)(n)?n:void 0;if((0,r.H)(i))return{version:i,parsedUaasConfig:o,parseUaasConfigError:void 0}}return{version:void 0,parsedUaasConfig:void 0,parseUaasConfigError:n}};var j;const F=(e=>{try{if("noModule"in e.HTMLScriptElement.prototype)return!0}catch(e){}return!1})(j=window)&&y(j)?"ES2017":"ES5";function $(e,t){var n,r,o;return null===(o=null===(r=null===(n=t.ya)||void 0===n?void 0:n.videoAd)||void 0===r?void 0:r.loadedModules)||void 0===o?void 0:o[e]}const k={ES5:"bundles",ES2017:"bundles-es2017"};var C=n(77343),M=n(72999);const U=(e,t)=>{for(const n of t.split(".")){if(!(0,M.K)(e)){e=void 0;break}e=e[n]}return e},H="__ADB_CONFIG__";var B=n(45589);const x=(0,M.K)(H)&&(0,M.K)(H.fn)?H.fn:void 0,G=["encodeUrl","decodeUrl","encodeCSS","isEncodedUrl"],Y=Object.assign(Object.assign({},{InPage:"inpage",AdLoader:"loader",Multiroll:"multiroll",YaMusicAPI:"ya-music-api",VpaidPlayer:"vpaid_player",Rum:"rum"}),{MotionTailor:"motion_ad_creative",Survey:"survey"});var K=n(59414);const W=`https://${n(91761).N9}/vas-bundles/`;const z=({bundleName:e,win:t,ecmaVersion:n,version:r})=>{const o=k[n],i=(e=>(e=>{if(x)return x;const t={},n=(0,C.T)(e);for(;n.length;){const e=n.pop();e&&(0,B.E)(G,(n=>{if((0,u.m)(t[n]))return;const r=U(e,`ya.videoAd.${n}`);(0,u.m)(r)&&(t[n]=r)}))}return t})(e).encodeUrl)(t),a=`${Y[e]}.bundle.js`,s=`${function(e){return K.m1||function(e){return`${W}${e}/`}(e)}(r)}${o}/${a}`;return(0,u.m)(i)?i(s):s};var J=n(40003),Z=n(31310);const q=e=>new Promise(((t,n)=>{S({method:"GET",url:"https://yandex.ru/ads/system/video-ads-sdk/vas_uaas",responseType:"json",retries:2,withCredentials:Boolean(e),onSuccess:e=>{t(e.response)},onError:()=>{n(new Error("Cannot load uaas"))}})})),X=(0,n(67748).QC)("1"),Q=e=>{var t;const{win:n,config:{vasUaasConfig:o,activeTestIds:c,additionalCustomRootFields:u,vh_sid:d,withCredentials:h},moduleName:g,serviceName:b,serviceVersion:p,productTheme:m,pageId:_,impId:S}=e,A=null!==(t=null==u?void 0:u.vsid)&&void 0!==t?t:X,y=(({serviceName:e,serviceVersion:t,vsid:n})=>{const r=new O({rnd:V,vsid:n,defaultProbability:N,serviceName:e,serviceVersion:t});return{event:e=>r.log(e),error:e=>r.error(e)}})({serviceName:b,serviceVersion:p,vsid:A}),w=Object.assign({},u),E=(0,r.H)(d)?d:void 0;!(0,r.H)(w.vh_sid)&&E&&(w.vh_sid=E);const I=(0,v.Y)((()=>(0,a.m)(null==w?void 0:w.testIds)),(e=>{y.error({error:new s.J({code:"LOAD_VAS_MODULE_INVALID_TEST_IDS",details:{message:e.message}})})}));return(e=>{const t=new f;return{promise:new Promise(((e,r)=>{(({resolve:e,reject:t,subscribeForTeardown:r})=>{let a=!1;r((()=>{a=!0,t(new Error("Teardown called"))})),(({externalUaasConfig:e,loaderFunctionsStatsWrapper:t,withCredentials:n})=>new Promise(((r,o)=>{var i,a;const c=L(e);e?c.parseUaasConfigError?t.error({error:new s.J({code:"LOAD_VAS_MODULE_PARSE_EXTERNAL_UAAS_CONFIG_ERROR",details:{message:c.parseUaasConfigError.message,vasUaasConfig:e}})}):void 0===(null===(a=null===(i=c.parsedUaasConfig)||void 0===i?void 0:i.flags)||void 0===a?void 0:a.VAS_STABLE_VERSION)&&t.error({error:new s.J({code:"LOAD_VAS_MODULE_NO_VAS_STABLE_VERSION_IN_EXTERNAL_AB_FLAGS",details:{vasUaasConfig:e}})}):t.event({name:"LoadVasModule_NoUAAS",data:{}}),c.version?r({uaasConfig:c.parsedUaasConfig,rawUaasConfig:e,version:c.version}):q(n).then((e=>{var n,o,i;const a=L(e);a.parseUaasConfigError?t.error({error:new s.J({code:"LOAD_VAS_MODULE_PARSE_LOADED_UAAS_CONFIG_ERROR",details:{message:a.parseUaasConfigError.message,vasUaasConfig:e}})}):void 0===(null===(o=null===(n=a.parsedUaasConfig)||void 0===n?void 0:n.flags)||void 0===o?void 0:o.VAS_STABLE_VERSION)&&t.error({error:new s.J({code:"LOAD_VAS_MODULE_NO_VAS_STABLE_VERSION_IN_LOADED_AB_FLAGS",details:{vasUaasConfig:e}})}),r({uaasConfig:a.parsedUaasConfig,rawUaasConfig:e,version:null!==(i=a.version)&&void 0!==i?i:String(e.stableVersion),stableVersion:e.stableVersion})})).catch(o)})))({externalUaasConfig:o,loaderFunctionsStatsWrapper:y,withCredentials:h}).then((({uaasConfig:o,rawUaasConfig:u,version:d,stableVersion:f})=>{var v,h;if(a)return;if((e=>!(!(e=>{const t=e.document;return"documentMode"in t&&void 0!==t["documentMode"]})(e)&&!(e=>{const t=e.navigator.userAgent;return t.indexOf("MSIE ")>0||t.indexOf("Trident/")>0||t.indexOf("Edge/")>0})(e)))(n))return y.event({name:"LoadVasModule_brokeInIE11",probability:N,data:{bundleName:g}}),e(void 0);const b={AB_FLAGS_STORE:void 0,AB_FLAGS:null!==(v=null==o?void 0:o.flags)&&void 0!==v?v:{},ICOOKIE:null==o?void 0:o.iCookie,TEST_IDS:i(I,null==o?void 0:o.testIds),VAS_UAAS_CONFIG:o,ActiveTestIds:c,AdditionalStatsRootFields:w,VSID:A,VAS_USER_SESSION_RANDOM:V,STATS_ROOT_PARAMS:{},loaderLoadedFromAnYandexRu:void 0,loaderLoadedFromYaRu:void 0,grWasSent:void 0,productTheme:m,pageId:_,impId:S},p=e=>{const{promise:t,teardown:o}=(({moduleName:e,version:t,win:n,scriptSessionParams:r})=>{var o;const i=$(e,n);if(i)return{promise:Promise.resolve(i),teardown:l.Z};const a=z({version:t,bundleName:e,win:n,ecmaVersion:null!==(o=R.adsdkecmaver)&&void 0!==o?o:F}),{promise:c,teardown:u}=function(e){return function(e){const{src:t,win:n,onBeforeLoad:r=l.Z}=e,o=new s.J(new Error,{});let i=l.Z;return{promise:new Promise(((e,a)=>{const c=n.document.createElement("script");let u=!1;i=()=>{u=!0,(0,Z.L)(c)},c.type="text/javascript",c.async=!0,c.onload=()=>{u||e()},c.onerror=e=>{u||(a(new s.J(o,{message:`Failed to load script [${t}]`,details:{src:t,isSelfWindow:n===window,event:e}})),i())},c.src=t,c.charset="utf-8",r(c),function(e){const t=e.document;let n=t.getElementsByTagName("head")[0];return n||(n=t.createElement("head"),t.documentElement.appendChild(n)),n}(n).appendChild(c)})),teardown:i}}(e)}({src:a,win:n,onBeforeLoad:e=>{(e=>{e.crossOrigin="anonymous"})(e),(0,J.O4)(e,r)}});return{promise:c.then((()=>$(e,n))),teardown:u}})({moduleName:g,scriptSessionParams:b,version:e,win:n});return r(o),t},E=t=>{y.event({name:"LoadVasModule_ModuleLoaded",probability:N,data:{bundleName:g}}),e(t)},O=null!==(h=R.adsdkver)&&void 0!==h?h:d;p(O).then(E).catch((e=>{if(O===String(f))throw e;return y.error({error:new s.J({code:"LOAD_VAS_MODULE_CANNOT_LOAD_MODULE_WITH_UAAS_VERSION",details:{vasUaasConfig:u}})}),f?p(String(f)).then(E):q().then((e=>String(e.stableVersion))).then(p).then(E)})).catch(t)})).catch(t)})({resolve:e,reject:r,subscribeForTeardown:e=>{t.subscribe(e)}})})),teardown:()=>t.dispatch(void 0)}})()}},25759:function(e,t,n){n.d(t,{L:function(){return b}});var r=n(53133),o=n(93288),i=n(25138),a=n(45589),s=n(7261),c=n(97775);const u=e=>void 0===e?{}:function(e,t){const n={};return(0,a.E)((0,s.Z)(e),(t=>{var r;n[t]=(r=e[t],(0,c.u)(r,((e,{value:t,testId:n})=>{var r;const o=null!==(r=e[t])&&void 0!==r?r:[];return o.push(n),e[t]=o,e}),{}))})),n}(e);var l=n(61175),d=n(27287);const f=e=>{if((0,d.m)(Array.from))return Array.from(e);const t=[];for(const n of e.values())t.push(n);return t};class v{constructor(e,t){Object.defineProperty(this,"abFlags",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"initialAbFlags",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"activeTestIds",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"externalActiveTestIds",{enumerable:!0,configurable:!0,writable:!0,value:new Set}),Object.defineProperty(this,"initialActiveTestIds",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"activeFlags",{enumerable:!0,configurable:!0,writable:!0,value:new Set}),Object.defineProperty(this,"testIdMap",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"flagToTestIdMap",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"getFlagValueAndActivateTestId",{enumerable:!0,configurable:!0,writable:!0,value:e=>{var t;const n=this.abFlags[e],r=n?null===(t=this.flagToTestIdMap[e])||void 0===t?void 0:t[n]:void 0;if(r)for(const t of r){const n=this.testIdMap.get(t);n&&(this.activateTestId(n),this.activateFlag(e))}return n}}),Object.defineProperty(this,"getFlagValue",{enumerable:!0,configurable:!0,writable:!0,value:e=>this.abFlags[e]}),Object.defineProperty(this,"getActiveTestIds",{enumerable:!0,configurable:!0,writable:!0,value:()=>{return e=[...this.activeTestIds,...f(this.externalActiveTestIds)],(0,l.h)(e,((e,t,n)=>n.indexOf(e)===t));var e}}),Object.defineProperty(this,"activateExternalTestIds",{enumerable:!0,configurable:!0,writable:!0,value:(...e)=>{for(const t of e){const[e]=t.split(",");if(!(0,o.H)(e))continue;const n=this.testIdMap.get(e);(0,o.H)(n)&&this.externalActiveTestIds.add(n)}}}),Object.defineProperty(this,"__isFlagActive",{enumerable:!0,configurable:!0,writable:!0,value:e=>this.activeFlags.has(e)}),Object.defineProperty(this,"__setAbFlags",{enumerable:!0,configurable:!0,writable:!0,value:e=>{this.abFlags=e}}),Object.defineProperty(this,"__restoreAbFlags",{enumerable:!0,configurable:!0,writable:!0,value:()=>{this.abFlags=this.initialAbFlags}}),Object.defineProperty(this,"__setActiveTestIds",{enumerable:!0,configurable:!0,writable:!0,value:e=>{this.initialActiveTestIds=this.activeTestIds,this.activeTestIds=e}}),Object.defineProperty(this,"__restoreActiveTestIds",{enumerable:!0,configurable:!0,writable:!0,value:()=>{this.activeTestIds=this.initialActiveTestIds}}),Object.defineProperty(this,"onTestIdActivated",{enumerable:!0,configurable:!0,writable:!0,value:new i.M}),this.abFlags=t,this.initialAbFlags=t;const{flagsMap:n,testIds:r}=e;if(this.testIdMap=new Map,(0,o.H)(r))for(const e of r.split(";")){const[t]=e.split(",");this.testIdMap.set(t,e)}this.flagToTestIdMap=u(n)}activateTestId(e){(0,r.q)(this.activeTestIds,e)||(this.activeTestIds.push(e),this.onTestIdActivated.dispatch(e))}activateFlag(e){this.activeFlags.has(e)||this.activeFlags.add(e)}getNumberFlagValueAndActivateTestId(e){const t=this.getFlagValueAndActivateTestId(e),n=Number(t);return"number"==typeof(r=n)&&isFinite(r)?n:void 0;var r}}var h=n(78802),g=n(11807);const b=(null===g.$||void 0===g.$?void 0:g.$.AB_FLAGS_STORE)||function(){const e=new v(h.N.VAS_UAAS_CONFIG,h.N.AB_FLAGS);e.getFlagValueAndActivateTestId("ADSDKVER");const t=null===g.$||void 0===g.$?void 0:g.$.ActiveTestIds;return t&&e.activateExternalTestIds(...t),e}()},78802:function(e,t,n){n.d(t,{N:function(){return J}});var r=n(60825);const o=(0,n(11358).I)((e=>(0,r.vn)(e||(0,r.Ou)())));var i=n(93288),a=n(10145),s=n(7261),c=n(72999);var u=n(67748),l=n(56926),d=n(58256),f=n(97775),v=n(39082),h=n(41990);const g=document.createElement("a"),b=/^(android-app:|chrome-extension:)/;function p(e){g.href=e;let t=g.pathname||"";"/"!==t.charAt(0)&&(t=`/${t}`);const n=(g.search||"")+(g.hash||""),r=e.lastIndexOf(n),o=-1===r?e:e.slice(0,r);if(b.test(e)){const t=p(e.replace(b,"https:"));return g.href=e,Object.assign(Object.assign({},t),{originalPath:o,protocol:e.slice(0,e.indexOf(":")+1),href:g.href})}const i=g.protocol&&/^[a-z-]+:/i.test(g.protocol)?g.protocol:"";return{originalPath:o,href:g.href,protocol:i,host:g.host,hostname:g.hostname,port:g.port,pathname:t,search:g.search,hash:g.hash}}const m=e=>{try{return decodeURIComponent(e)}catch(t){return e}};function _(e){const t={},n=e.replace(/^[?#]+/,"").replace(/#.*$/,"").split("&");for(let e=0;e(0,i.H)(e)?e:void 0,adsdkecmaver:e=>{const t=null==e?void 0:e.toUpperCase();return"ES2017"===t||"ES5"===t?t:void 0},adsdktracelogs:N,adsdksecuremode:e=>e&&(0,R.q)(D,e)?e:void 0,adsdkwithcredentials:e=>{const t=e?`${e}`.toLowerCase():void 0;return"true"===t||"false"!==t&&void 0},adsdkabflags:V,adsdkuaas:V,[S]:V,[A]:V,[y]:V,[w]:V,[E]:V,[O]:V,adsdkhoneypotforced:N,adsdkgrforced:N,vasnetworklogs:N,vasconsolelogs:N,vasdebug:N,vasfulldebug:e=>"false"!==e&&Boolean(e),adsdkdebug:N};var L=n(27287),j=n(82667),F=n(77599);const $=new Set(T);function k(e,t){const n=C(M(e,{}),t);return r=t,$.has(r)?(0,P[t])(n):n;var r}function C(e,t){for(const{sourceName:r,getter:o}of e){const e=(0,a.Y)((()=>o(t)));if((0,i.H)(e))return n=`VAS WARNING! Hardcoded parameter=[${t}] with value=[${e}] found in [${r}]`,(0,c.K)(console)&&(0,L.m)(console.warn)&&console.warn(n),e}var n}function M(e,t){const n={},r=(0,h.F)(e.document);for(const{location:e}of r){const t=_(p(e).search);(0,v.M)(t,((e,t)=>{n[t]=e}))}const o=function(e){return{adsdktracelogs:e.VAS_TRACE_LOGS,adsdksecuremode:e.VAS_SECURE_MODE,adsdkwithcredentials:e.VAS_WITH_CREDENTIALS,adsdkabflags:e.VAS_AB_FLAGS,adsdkuaas:e.VAS_UAAS,[S]:e.VAS_AIM_BANNER_ID,[A]:e.VAS_AIM_MODE,[y]:e.VAS_AIM_DESIGN_ID,[w]:e.VAS_AIM_DESIGN_NAME,[E]:e.VAS_AIM_SUBDESIGN_ID,[O]:e.VAS_DISABLED_PRODUCT_TYPES,adsdkhoneypotforced:e.VAS_HONEYPOT_FORCED,adsdkgrforced:e.VAS_GR_FORCED,vasconsolelogs:e.VAS_CONSOLE_LOGS,vasnetworklogs:e.VAS_NETWORK_LOGS,vasdebug:e.VAS_DEBUG,vasfulldebug:e.VAS_FULL_DEBUG}}(t);return[{sourceName:"UrlParams",getter:e=>n[e]},{sourceName:"LocalStorage",getter:t=>j.J.getItem(e,t)},{sourceName:"GlobalVariable",getter:t=>(0,F.$)(e,t)},{sourceName:"ABFlag",getter:e=>o[e]}]}var U=n(59414);const H=(0,n(28214).A)(document.documentElement),{length:B}=H,x=B>0?H[B-1].ownerDocument.defaultView:window;var G=n(11807),Y=n(36551);const K=Y.Y?Y.Y.src:"";var W=n(91761);const z="AdSDKLoader"===U.R0,J=function(e){var t,n,v,h,g,b;const m=(e=>{let t;const n=(0,a.Y)((()=>(e=>{if((0,c.K)(e)){const t={},{vsid:n,contentPlayerVersion:r,pcodeVersion:o,widgetVersion:a}=e;if((0,i.H)(n)&&(t.vsid=n),(0,i.H)(r)&&(t.contentPlayerVersion=r),(0,i.H)(o)&&(t.pcodeVersion=o),(0,i.H)(a)&&(t.widgetVersion=a),(0,s.Z)(t).length>0)return t}})(e)),(e=>{t=e}))||void 0;return{rootFields:n,extractionError:t}})(null===G.$||void 0===G.$?void 0:G.$.STATS_ROOT_PARAMS),{config:_,parsingError:S}=function(e,t){let n,i=(null==t?void 0:t.VAS_UAAS_CONFIG)||r.Lh;try{const t=k(e,"adsdkuaas"),n=o(t);if(n.error)throw n.error;i=n.config}catch(e){n=e}return{config:i,parsingError:n}}(e,G.$),A=function(e,t,n){var r;const o=t.flags,i=null!==(r=null==n?void 0:n.AB_FLAGS)&&void 0!==r?r:{};const a=k(e,"adsdkabflags"),s=(0,d.H)(a)?(0,f.u)(a.split(","),((e,t)=>{const[n,r]=t.split("=");return Object.assign(Object.assign({},e),{[n]:r})}),{}):{};return Object.assign(Object.assign(Object.assign(Object.assign({},{}),o),i),s)}(e,_,G.$),y=function(e,t){const n=M(e,t),r=(0,f.u)(T,((e,t)=>{const r=C(n,t),o=(0,P[t])(r);return Object.assign(Object.assign({},e),{[t]:o})}),{});return r.adsdkdebug&&(console.warn("adsdkdebug is deprecated, use vasfulldebug instead"),r.vasfulldebug=!0),r.vasfulldebug&&(r.vasnetworklogs="false"!==C(n,"vasnetworklogs"),r.vasconsolelogs="false"!==C(n,"vasconsolelogs"),r.vasdebug="false"!==C(n,"vasdebug")),r}(e,A),w=y.vasdebug,E=y.vasconsolelogs,O=(y.adsdktracelogs,I=E,function(e,...t){var n;const r=x.console;if(!I||void 0===r)return;const o=`AdSDKJS[${U.R0}]:`;null===(n=r.log)||void 0===n||n.call(r,o,e,...t)});var I;const D=(null===(t=null==m?void 0:m.rootFields)||void 0===t?void 0:t.vsid)||(null===G.$||void 0===G.$?void 0:G.$.VSID)||(0,u.QC)();O(`${(null===(n=null==m?void 0:m.rootFields)||void 0===n?void 0:n.vsid)||(null===G.$||void 0===G.$?void 0:G.$.VSID)?"Use VSID from session":"Generate new VSID"} [${D}]`);const R=null!==(v=null===G.$||void 0===G.$?void 0:G.$.VAS_USER_SESSION_RANDOM)&&void 0!==v?v:(0,l.M)(),N=(null===G.$||void 0===G.$?void 0:G.$.ICOOKIE)||_.iCookie,V=(null===G.$||void 0===G.$?void 0:G.$.AdditionalStatsRootFields)||m.rootFields||void 0,L=(null===G.$||void 0===G.$?void 0:G.$.TEST_IDS)||_.testIds||void 0,j=K?p(K).hostname:void 0,F=j===W.l3,$=(null===G.$||void 0===G.$?void 0:G.$.loaderLoadedFromYaRu)||j===W.HO,H=null!==(h=null===G.$||void 0===G.$?void 0:G.$.loaderLoadedFromAnYandexRu)&&void 0!==h?h:z&&("an"===_.src_domain||F),{productTheme:B,pageId:Y,impId:J}=null!==G.$&&void 0!==G.$?G.$:{};return{hardcodedParams:y,isDebugEnabled:w,VSID:D,VAS_USER_SESSION_RANDOM:R,AB_FLAGS:A,ICOOKIE:N,TEST_IDS:L,VAS_UAAS_CONFIG:_,VAS_UAAS_CONFIG_ParseError:S,AdditionalStatsRootFields:V,AdditionalStatsRootFieldsExtractionError:m.extractionError,STATS_ROOT_PARAMS:null!==(g=null===G.$||void 0===G.$?void 0:G.$.STATS_ROOT_PARAMS)&&void 0!==g?g:{},isRumEnabledByLogProbability:!1,loaderLoadedFromAnYandexRu:H,loaderLoadedFromYaRu:$,activeTestIds:null===G.$||void 0===G.$?void 0:G.$.ActiveTestIds,grWasSent:null!==(b=null===G.$||void 0===G.$?void 0:G.$.grWasSent)&&void 0!==b&&b,productTheme:B,pageId:Y,impId:J}}(window)},11807:function(e,t,n){n.d(t,{$:function(){return i}});var r=n(36551),o=n(40003);const i=r.Y?(0,o.NQ)(r.Y):void 0;r.Y&&(0,o.dm)(r.Y)},40003:function(e,t,n){n.d(t,{H4:function(){return o},NQ:function(){return a},O4:function(){return i},dm:function(){return s}});var r=n(72999);const o=e=>(0,r.K)(e.__AD_SDK_SCRIPT_SESSION_PARAMETERS__),i=(e,t)=>{e.__AD_SDK_SCRIPT_SESSION_PARAMETERS__=t},a=e=>e.__AD_SDK_SCRIPT_SESSION_PARAMETERS__,s=e=>{delete e.__AD_SDK_SCRIPT_SESSION_PARAMETERS__}},77599:function(e,t,n){n.d(t,{$:function(){return o}});var r=n(77343);const o=(e,t)=>{var n,o;for(const i of(0,r.T)(e)){const e=null===(o=null===(n=i.Ya)||void 0===n?void 0:n.hardcodedParams)||void 0===o?void 0:o[t];if(e)return String(e)}}},91761:function(e,t,n){n.d(t,{HO:function(){return o},N9:function(){return i},l3:function(){return r}});const r=["a","n.ya","nd","ex.ru"].join(""),o=(["y","a","nde","x.ru"].join(""),["y","a",".r","u"].join("")),i=["ya","sta","tic.net"].join("");["ver","ify.y","a","nde","x.ru"].join("")},36551:function(e,t,n){n.d(t,{Y:function(){return a}});var r=n(40003),o=n(92800);let i=document.currentScript;if(!i){const e=function(e){if(!e)return[];const t=[];for(let n=0;n{if(void 0!==e)try{e.set(n,r)}catch(e){t.push({path:r,value:n})}else t.push({path:r,value:n})},get:n=>{const r=(0,s.s)(t,(e=>e.value===n));return void 0!==e&&void 0===r?e.get(n):r?r.path:void 0}}}();return(n,s)=>{if((0,c.m)(s))return(0,o.H)(s.name)?s.name:"[Function]";if((0,r.V)(s))return{name:(u=s).name,message:u.message,stack:u.stack};var u,l;if(!(0,a.K)(s))return s;if((e=>{try{return"display"in function(e,t=window){return("function"==typeof t.getComputedStyle?t.getComputedStyle(e,null):e.currentStyle)||{}}(e)}catch(e){return!1}})(s))return(l=s).id?l.id:l.className?l.className:"HTML Element";const d=t.get(s);if((0,i.H)(d))return`[Circular ${d}]`;for(;e.length>0&&e[e.length-1].value[n]!==s;)e.pop();const f=(e.length>0?e[e.length-1].path:"")+(n?`/${n}`:"~");return e.push({path:f,value:s}),t.set(s,f),s}}())}var l=n(56026),d=n.n(l);const f="DEFAULT_ERROR_MESSAGE",v="?:?:?";class h extends Error{constructor(...e){const t=2===e.length?e[0]:void 0,n=2===e.length?e[1]:e[0],r=(i=t,(0,a.K)(i)&&(0,o.H)(i.name)&&(0,o.H)(i.message)||"object"==typeof t&&t&&"code"in t&&"details"in t?t:{message:String(t||f)});var i;super(),Object.defineProperty(this,"originalError",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"message",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"stack",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"toString",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"toJSON",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.originalError="object"==typeof t&&t?t:{unknown:t,unknownStr:String(t)},d()(this,h.prototype);const s=n.code||r.code||r.id||"0",c=n.message||r.message||f;this.message=`VAS Error [${s}]`+(c?`[${c}]`:""),this.code=s,this.details=n.details||r.details||"";const l=r.stack||function(e){const{url:t,line:n,col:r,fileName:o,columnNumber:i,lineNumber:a}=e;return`${t||o||"?"}:${n||a||"?"}:${r||i||"?"}`}(r);let g=l===v?this.stack:l;if(g&&g!==v)this.stack=g;else if(!this.stack)try{throw new Error(this.message)}catch(e){this.stack=g=e.stack||v}this.toString=()=>u(this.toJSON()),this.toJSON=()=>({originalError:this.originalError,message:this.message,code:this.code,details:this.details,stack:g})}}},82667:function(e,t,n){n.d(t,{J:function(){return r}});const r={getItem:(e,t)=>{try{return e.localStorage.getItem(t)}catch(e){return null}},setItem:(e,t,n)=>{try{e.localStorage.setItem(t,n)}catch(e){return}},removeItem:(e,t)=>{try{e.localStorage.removeItem(t)}catch(e){return}}}},59414:function(e,t,n){n.d(t,{R0:function(){return o},m1:function(){return r}});const r="undefined"==typeof BUNDLES_PATH?"":BUNDLES_PATH,o="undefined"==typeof BUNDLE_NAME?"Test":BUNDLE_NAME;"undefined"==typeof BUILD_TIME||BUILD_TIME},61175:function(e,t,n){n.d(t,{h:function(){return r}});const r=(e,t,n)=>{const r=[];for(let o=0;oo.call(e,t):(e,t)=>{for(let n=0;n{for(let r=0;ri.call(Array,e):e=>"Array"===(0,r.M)(e)},97775:function(e,t,n){n.d(t,{u:function(){return r}});const r=function(e,t,n){let r=0;for(arguments.length<3&&(r=1,n=e[0]);r{"function"==typeof e&&e(...t)}))}},39118:function(e,t,n){function r(e){if(!Boolean(null==e?void 0:e.toString))return!1;try{const t=e.toString();return/\[native code\]/.test(t)||/\/\* source code not available \*\//.test(t)}catch(e){return!1}}n.d(t,{E:function(){return r}})},94093:function(e,t,n){function r(...e){}n.d(t,{Z:function(){return r}})},11358:function(e,t,n){function r(e){let t=function(){let n;return t=()=>n,n=e.apply(this,arguments),n};return function(){return t.apply(this,arguments)}}n.d(t,{I:function(){return r}})},10145:function(e,t,n){function r(e,t){try{return e()}catch(e){"function"==typeof t&&t(e)}}n.d(t,{Y:function(){return r}})},28214:function(e,t,n){n.d(t,{A:function(){return o}});var r=n(49847);function o(e,t=!0){if(r.$&&t)return[];{const t=[];let n=e;for(;;)try{if(n=n.ownerDocument.defaultView.frameElement,!n)return t;t.push(n)}catch(e){return t}}}},7261:function(e,t,n){function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function o(e){if("function"==typeof Object.keys)return Object.keys(e);const t=[];for(const n in e)r(e,n)&&t.push(n);return t}n.d(t,{Z:function(){return o}})},72999:function(e,t,n){function r(e){const t=typeof e;return Boolean(e)&&("object"===t||"function"===t)}n.d(t,{K:function(){return r}})},98221:function(e,t,n){function r(e,t){!function(e){return"function"==typeof e.dispatch}(e)?e(t):e.dispatch(t)}n.d(t,{p:function(){return r}})},25138:function(e,t,n){n.d(t,{M:function(){return s}});var r=n(61175),o=n(45589),i=n(98221);function a(e,t){(0,o.E)(e,(e=>{(0,i.p)(e,t)}))}class s{constructor(){Object.defineProperty(this,"on",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"once",{enumerable:!0,configurable:!0,writable:!0,value:[]})}add(...e){return this.on.push(...e),()=>{this.remove(...e)}}addOne(...e){return this.once.push(...e),()=>{this.remove(...e)}}promise(){return new Promise((e=>{this.addOne(e)}))}dispatch(e){const{once:t}=this;this.once=[],a(this.on,e),a(t,e)}removeAll(){this.on.length=0,this.once.length=0}remove(...e){this.on=(0,r.h)(this.on,(t=>e.indexOf(t)<0)),this.once=(0,r.h)(this.once,(t=>e.indexOf(t)<0))}}},72683:function(e,t,n){n.d(t,{R:function(){return i}});var r=n(25138),o=n(98221);class i extends r.M{constructor(e,t=((e,t)=>e===t)){super(),Object.defineProperty(this,"checkToEqualFunction",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.value=e}getValue(){return this.value}subscribeValueCondition(e,t){return this.add((n=>{e(n)&&(0,o.p)(t,n)}))}subscribeValueConditionOnce(e,t){const n=this.subscribeValueCondition(e,(e=>{n(),(0,o.p)(t,e)}));return n}dispatch(e){this.checkToEqualFunction(this.value,e)||(this.value=e,super.dispatch(e))}}},4429:function(e,t,n){n.r(t),n.d(t,{SizeSensor:function(){return l}});const r={left:0,width:0,top:0,height:0,right:0,bottom:0},o=e=>{if(null==e)return r;try{const t=e.getBoundingClientRect();return{left:t.left,right:t.right,top:t.top,bottom:t.bottom,width:t.right-t.left,height:t.bottom-t.top}}catch(e){return r}};var i=n(21877),a=n(98257),s=n(39118),c=n(72683),u=n(82553);class l extends i.V{constructor(e){var t;super(),Object.defineProperty(this,"onResize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"resizeObserverCallback",{enumerable:!0,configurable:!0,writable:!0,value:([{contentRect:{width:e,height:t}}])=>{this.onResize.dispatch({width:e,height:t})}}),Object.defineProperty(this,"getElementWindow",{enumerable:!0,configurable:!0,writable:!0,value:e=>{var t;return(null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView)||null}});const n=o(e);this.onResize=new c.R({width:n.width,height:n.height},((e,{width:t,height:n})=>e.width===t&&e.height===n)),this.addDestroyHandler((()=>{this.onResize.removeAll()}));const r=this.getElementWindow(e),i=null!==(t=null==r?void 0:r.ResizeObserver)&&void 0!==t?t:window.ResizeObserver;if(void 0!==i&&(0,s.E)(ResizeObserver))try{const t=new i(this.resizeObserverCallback);t.observe(e),this.addDestroyHandler((()=>{t.disconnect()}))}catch(t){this.fallbackToCustomDetectionMethods(e)}else this.fallbackToCustomDetectionMethods(e)}getSize(){return Object.assign({},this.onResize.getValue())}fallbackToCustomDetectionMethods(e){const t=this.getElementWindow(e);if(!t)return;const n=()=>{const t=o(e);this.onResize.dispatch({width:t.width,height:t.height})};this.addDestroyHandler((0,a.addElementEventListener)({element:t,eventName:"resize",listener:n,options:{passive:!0}})),this.addDestroyHandler((0,u.X)(n))}}},82553:function(e,t,n){n.d(t,{X:function(){return a}});var r=n(51597);let o=0;const i=[];function a(e){return 0===i.length&&(o=window.setInterval((()=>{(0,r.p)(i)}),250)),i.push(e),()=>{const t=i.indexOf(e);t>-1&&i.splice(t,1),0===i.length&&window.clearInterval(o)}}},60825:function(e,t,n){n.d(t,{Lh:function(){return l},Ou:function(){return d},vn:function(){return f}});var r=n(14307),o=n(25516),i=n(45589),a=n(93666),s=n(11358),c=n(7261),u=n(72999);const l={testIds:"",flags:{}},d=(0,s.I)((()=>{try{return __UAAS_CFG__}catch(e){return e}})),f=e=>{if((0,r.V)(e))return{error:e,config:l};try{const t=(0,u.K)(e)?e:n.lv["json"].parse(`${e||""}`),r=(e=>!!(0,u.K)(e)&&!(!("expFlags"in e)||!(0,a.k)(e.expFlags)))(t)?(e=>{const{expFlags:t}=e,n=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{(0,i.E)(e,(({CONTEXT:{FLAGS:e},TESTID:t})=>{(0,u.K)(e)&&(0,i.E)((0,c.Z)(e),(n=>{var i;const a=e[n];r[n]=a,o[n]=null!==(i=o[n])&&void 0!==i?i:[],o[n].push({value:a,testId:t[0]})}))}))})),Object.assign({flags:r,flagsMap:o},n)})(t):t;if(!((e,t)=>{if(!(0,u.K)(t))throw new Error(`Parsed replaced macro is not an object: ${e}`);if((0,o.m)(t.testIds),!("flags"in t)||!(0,u.K)(t.flags))throw new Error(`Parsed replaced macro has no flags field: ${e}`);return!0})(String(e),r))throw new Error(`UAAS config is not valid: ${e}`);return{error:void 0,config:r}}catch(e){return{error:e,config:l}}}},24419:function(e,t,n){function r(e){return e.muted?0:e.volume}n.r(t),n.d(t,{getVideoVolume:function(){return r}})},35497:function(e,t,n){n.r(t),n.d(t,{subscribeVideoContentSize:function(){return s}});var r=n(98257),o=n(51597),i=n(82553);function a(e){return"number"==typeof e&&isFinite(e)&&e>0}function s(e,t){const n=()=>{const n=function(e){const{videoWidth:t,videoHeight:n}=e;if(a(t)&&a(n))return{width:t,height:n}}(e);t(n)},s=[];return s.push((0,r.addElementEventListener)({element:e,eventName:"resize",listener:n}),(0,i.X)(n)),()=>{(0,o.p)(s)}}},98257:function(e,t,n){n.r(t),n.d(t,{addElementEventListener:function(){return u},createFullOptionsObject:function(){return c}});var r=n(27287),o=n(94093);let i=!1,a=!1,s=!1;try{const e=document.createElement("div"),t={};Object.defineProperty(t,"once",{get:()=>i=!0}),Object.defineProperty(t,"passive",{get:()=>a=!0}),Object.defineProperty(t,"capture",{get:()=>s=!0}),e.addEventListener("click",o.Z,t)}catch(e){}function c(e){let t=!1,n=!1,r=!1;return!0===e?t=!0:"object"==typeof e&&(t=Boolean(e.capture),n=Boolean(e.passive),r=Boolean(e.once)),{capture:t,passive:n,once:r}}function u({element:e,eventName:t,listener:n,options:o,ignoreBubbling:a=!1}){const u=a?function(t){t.target===e&&n.call(this,t)}:n,l=c(o),d=s?l:l.capture,f=l.once&&!i?function(e){v(),u.call(this,e)}:u,v=()=>{(0,r.m)(e.removeEventListener)&&e.removeEventListener(t,f,d)};return e.addEventListener(t,f,d),v}},67748:function(e,t,n){n.d(t,{QC:function(){return l}});var r=n(56926);function o(e){let t="";for(let n=0;n0){let t=n;for(;t.lengthr?t.substr(0,r):t)+e}return e}let a;try{a=BUILD_VERSION}catch(e){a="INVALID_BUILD_VERSION"}const s=a,c="VAS",u=e=>i(e.substr(-4),4,"0"),l=(e=s)=>[o(44),c,u(e),i(Date.now().toString().slice(0,10),10,"0")].join("x")},56026:function(e){e.exports=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){return e.__proto__=t,e}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(e,n)||(e[n]=t[n]);return e})}}]);