@vkontakte/videoplayer-shared 1.0.50-dev.1326de93.0 → 1.0.50-dev.eaae0302.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/es2018.cjs.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
- * @vkontakte/videoplayer-shared v1.0.50-dev.1326de93.0
3
- * Wed, 20 Nov 2024 09:05:47 GMT
2
+ * @vkontakte/videoplayer-shared v1.0.50-dev.eaae0302.0
3
+ * Thu, 21 Nov 2024 07:42:12 GMT
4
4
  * https://st.mycdn.me/static/vkontakte-videoplayer/1-0-50/doc/
5
5
  */
6
- "use strict";var ls=Object.create;var ge=Object.defineProperty;var ps=Object.getOwnPropertyDescriptor;var fs=Object.getOwnPropertyNames;var bs=Object.getPrototypeOf,vs=Object.prototype.hasOwnProperty;var a=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),Ct=(e,r)=>{for(var t in r)ge(e,t,{get:r[t],enumerable:!0})},Lt=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of fs(r))!vs.call(e,i)&&i!==t&&ge(e,i,{get:()=>r[i],enumerable:!(n=ps(r,i))||n.enumerable});return e};var ds=(e,r,t)=>(t=e!=null?ls(bs(e)):{},Lt(r||!e||!e.__esModule?ge(t,"default",{value:e,enumerable:!0}):t,e)),ms=e=>Lt(ge({},"__esModule",{value:!0}),e);var A=a((Id,Tn)=>{"use strict";Tn.exports=function(e){try{return!!e()}catch(r){return!0}}});var ue=a((xd,hn)=>{"use strict";var Ps=A();hn.exports=!Ps(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var M=a((Od,In)=>{"use strict";var yn=ue(),gn=Function.prototype,qr=gn.call,_s=yn&&gn.bind.bind(qr,qr);In.exports=yn?_s:function(e){return function(){return qr.apply(e,arguments)}}});var Le=a((wd,On)=>{"use strict";var xn=M(),As=xn({}.toString),Cs=xn("".slice);On.exports=function(e){return Cs(As(e),8,-1)}});var En=a((Ed,wn)=>{"use strict";var Ls=M(),Ms=A(),js=Le(),Rr=Object,Ns=Ls("".split);wn.exports=Ms(function(){return!Rr("z").propertyIsEnumerable(0)})?function(e){return js(e)==="String"?Ns(e,""):Rr(e)}:Rr});var Me=a((Sd,Sn)=>{"use strict";Sn.exports=function(e){return e==null}});var je=a((qd,qn)=>{"use strict";var ks=Me(),Vs=TypeError;qn.exports=function(e){if(ks(e))throw new Vs("Can't call method on "+e);return e}});var H=a((Rd,Rn)=>{"use strict";var Ds=En(),Fs=je();Rn.exports=function(e){return Ds(Fs(e))}});var _n=a((Pd,Pn)=>{"use strict";Pn.exports=function(){}});var W=a((_d,An)=>{"use strict";An.exports={}});var w=a((Pr,Cn)=>{"use strict";var ce=function(e){return e&&e.Math===Math&&e};Cn.exports=ce(typeof globalThis=="object"&&globalThis)||ce(typeof window=="object"&&window)||ce(typeof self=="object"&&self)||ce(typeof global=="object"&&global)||ce(typeof Pr=="object"&&Pr)||function(){return this}()||Function("return this")()});var E=a((Ad,Ln)=>{"use strict";var _r=typeof document=="object"&&document.all;Ln.exports=typeof _r=="undefined"&&_r!==void 0?function(e){return typeof e=="function"||e===_r}:function(e){return typeof e=="function"}});var Nn=a((Cd,jn)=>{"use strict";var Us=w(),Gs=E(),Mn=Us.WeakMap;jn.exports=Gs(Mn)&&/native code/.test(String(Mn))});var j=a((Ld,kn)=>{"use strict";var Bs=E();kn.exports=function(e){return typeof e=="object"?e!==null:Bs(e)}});var C=a((Md,Vn)=>{"use strict";var Qs=A();Vn.exports=!Qs(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var Cr=a((jd,Fn)=>{"use strict";var Ws=w(),Dn=j(),Ar=Ws.document,$s=Dn(Ar)&&Dn(Ar.createElement);Fn.exports=function(e){return $s?Ar.createElement(e):{}}});var Lr=a((Nd,Un)=>{"use strict";var zs=C(),Ks=A(),Ys=Cr();Un.exports=!zs&&!Ks(function(){return Object.defineProperty(Ys("div"),"a",{get:function(){return 7}}).a!==7})});var Mr=a((kd,Gn)=>{"use strict";var Hs=C(),Xs=A();Gn.exports=Hs&&Xs(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var $=a((Vd,Bn)=>{"use strict";var Js=j(),Zs=String,eu=TypeError;Bn.exports=function(e){if(Js(e))return e;throw new eu(Zs(e)+" is not an object")}});var F=a((Dd,Qn)=>{"use strict";var ru=ue(),Ne=Function.prototype.call;Qn.exports=ru?Ne.bind(Ne):function(){return Ne.apply(Ne,arguments)}});var ke=a((Fd,Wn)=>{"use strict";Wn.exports={}});var kr=a((Ud,zn)=>{"use strict";var jr=ke(),Nr=w(),tu=E(),$n=function(e){return tu(e)?e:void 0};zn.exports=function(e,r){return arguments.length<2?$n(jr[e])||$n(Nr[e]):jr[e]&&jr[e][r]||Nr[e]&&Nr[e][r]}});var Vr=a((Gd,Kn)=>{"use strict";var nu=M();Kn.exports=nu({}.isPrototypeOf)});var Jn=a((Bd,Xn)=>{"use strict";var iu=w(),Yn=iu.navigator,Hn=Yn&&Yn.userAgent;Xn.exports=Hn?String(Hn):""});var oi=a((Qd,ii)=>{"use strict";var ni=w(),Dr=Jn(),Zn=ni.process,ei=ni.Deno,ri=Zn&&Zn.versions||ei&&ei.version,ti=ri&&ri.v8,R,Ve;ti&&(R=ti.split("."),Ve=R[0]>0&&R[0]<4?1:+(R[0]+R[1]));!Ve&&Dr&&(R=Dr.match(/Edge\/(\d+)/),(!R||R[1]>=74)&&(R=Dr.match(/Chrome\/(\d+)/),R&&(Ve=+R[1])));ii.exports=Ve});var Fr=a((Wd,si)=>{"use strict";var ai=oi(),ou=A(),au=w(),su=au.String;si.exports=!!Object.getOwnPropertySymbols&&!ou(function(){var e=Symbol("symbol detection");return!su(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&ai&&ai<41})});var Ur=a(($d,ui)=>{"use strict";var uu=Fr();ui.exports=uu&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var Gr=a((zd,ci)=>{"use strict";var cu=kr(),lu=E(),pu=Vr(),fu=Ur(),bu=Object;ci.exports=fu?function(e){return typeof e=="symbol"}:function(e){var r=cu("Symbol");return lu(r)&&pu(r.prototype,bu(e))}});var De=a((Kd,li)=>{"use strict";var vu=String;li.exports=function(e){try{return vu(e)}catch(r){return"Object"}}});var le=a((Yd,pi)=>{"use strict";var du=E(),mu=De(),Tu=TypeError;pi.exports=function(e){if(du(e))return e;throw new Tu(mu(e)+" is not a function")}});var Fe=a((Hd,fi)=>{"use strict";var hu=le(),yu=Me();fi.exports=function(e,r){var t=e[r];return yu(t)?void 0:hu(t)}});var vi=a((Xd,bi)=>{"use strict";var Br=F(),Qr=E(),Wr=j(),gu=TypeError;bi.exports=function(e,r){var t,n;if(r==="string"&&Qr(t=e.toString)&&!Wr(n=Br(t,e))||Qr(t=e.valueOf)&&!Wr(n=Br(t,e))||r!=="string"&&Qr(t=e.toString)&&!Wr(n=Br(t,e)))return n;throw new gu("Can't convert object to primitive value")}});var pe=a((Jd,di)=>{"use strict";di.exports=!0});var hi=a((Zd,Ti)=>{"use strict";var mi=w(),Iu=Object.defineProperty;Ti.exports=function(e,r){try{Iu(mi,e,{value:r,configurable:!0,writable:!0})}catch(t){mi[e]=r}return r}});var Ue=a((em,Ii)=>{"use strict";var xu=pe(),Ou=w(),wu=hi(),yi="__core-js_shared__",gi=Ii.exports=Ou[yi]||wu(yi,{});(gi.versions||(gi.versions=[])).push({version:"3.38.0",mode:xu?"pure":"global",copyright:"\xA9 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.38.0/LICENSE",source:"https://github.com/zloirock/core-js"})});var $r=a((rm,Oi)=>{"use strict";var xi=Ue();Oi.exports=function(e,r){return xi[e]||(xi[e]=r||{})}});var zr=a((tm,wi)=>{"use strict";var Eu=je(),Su=Object;wi.exports=function(e){return Su(Eu(e))}});var N=a((nm,Ei)=>{"use strict";var qu=M(),Ru=zr(),Pu=qu({}.hasOwnProperty);Ei.exports=Object.hasOwn||function(r,t){return Pu(Ru(r),t)}});var Kr=a((im,Si)=>{"use strict";var _u=M(),Au=0,Cu=Math.random(),Lu=_u(1 .toString);Si.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Lu(++Au+Cu,36)}});var k=a((om,Ri)=>{"use strict";var Mu=w(),ju=$r(),qi=N(),Nu=Kr(),ku=Fr(),Vu=Ur(),X=Mu.Symbol,Yr=ju("wks"),Du=Vu?X.for||X:X&&X.withoutSetter||Nu;Ri.exports=function(e){return qi(Yr,e)||(Yr[e]=ku&&qi(X,e)?X[e]:Du("Symbol."+e)),Yr[e]}});var Ci=a((am,Ai)=>{"use strict";var Fu=F(),Pi=j(),_i=Gr(),Uu=Fe(),Gu=vi(),Bu=k(),Qu=TypeError,Wu=Bu("toPrimitive");Ai.exports=function(e,r){if(!Pi(e)||_i(e))return e;var t=Uu(e,Wu),n;if(t){if(r===void 0&&(r="default"),n=Fu(t,e,r),!Pi(n)||_i(n))return n;throw new Qu("Can't convert object to primitive value")}return r===void 0&&(r="number"),Gu(e,r)}});var Hr=a((sm,Li)=>{"use strict";var $u=Ci(),zu=Gr();Li.exports=function(e){var r=$u(e,"string");return zu(r)?r:r+""}});var J=a(ji=>{"use strict";var Ku=C(),Yu=Lr(),Hu=Mr(),Ge=$(),Mi=Hr(),Xu=TypeError,Xr=Object.defineProperty,Ju=Object.getOwnPropertyDescriptor,Jr="enumerable",Zr="configurable",et="writable";ji.f=Ku?Hu?function(r,t,n){if(Ge(r),t=Mi(t),Ge(n),typeof r=="function"&&t==="prototype"&&"value"in n&&et in n&&!n[et]){var i=Ju(r,t);i&&i[et]&&(r[t]=n.value,n={configurable:Zr in n?n[Zr]:i[Zr],enumerable:Jr in n?n[Jr]:i[Jr],writable:!1})}return Xr(r,t,n)}:Xr:function(r,t,n){if(Ge(r),t=Mi(t),Ge(n),Yu)try{return Xr(r,t,n)}catch(i){}if("get"in n||"set"in n)throw new Xu("Accessors not supported");return"value"in n&&(r[t]=n.value),r}});var fe=a((cm,Ni)=>{"use strict";Ni.exports=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}}});var Z=a((lm,ki)=>{"use strict";var Zu=C(),ec=J(),rc=fe();ki.exports=Zu?function(e,r,t){return ec.f(e,r,rc(1,t))}:function(e,r,t){return e[r]=t,e}});var Be=a((pm,Di)=>{"use strict";var tc=$r(),nc=Kr(),Vi=tc("keys");Di.exports=function(e){return Vi[e]||(Vi[e]=nc(e))}});var Qe=a((fm,Fi)=>{"use strict";Fi.exports={}});var Qi=a((bm,Bi)=>{"use strict";var ic=Nn(),Gi=w(),oc=j(),ac=Z(),rt=N(),tt=Ue(),sc=Be(),uc=Qe(),Ui="Object already initialized",nt=Gi.TypeError,cc=Gi.WeakMap,We,be,$e,lc=function(e){return $e(e)?be(e):We(e,{})},pc=function(e){return function(r){var t;if(!oc(r)||(t=be(r)).type!==e)throw new nt("Incompatible receiver, "+e+" required");return t}};ic||tt.state?(P=tt.state||(tt.state=new cc),P.get=P.get,P.has=P.has,P.set=P.set,We=function(e,r){if(P.has(e))throw new nt(Ui);return r.facade=e,P.set(e,r),r},be=function(e){return P.get(e)||{}},$e=function(e){return P.has(e)}):(z=sc("state"),uc[z]=!0,We=function(e,r){if(rt(e,z))throw new nt(Ui);return r.facade=e,ac(e,z,r),r},be=function(e){return rt(e,z)?e[z]:{}},$e=function(e){return rt(e,z)});var P,z;Bi.exports={set:We,get:be,has:$e,enforce:lc,getterFor:pc}});var Yi=a((vm,Ki)=>{"use strict";var fc=ue(),zi=Function.prototype,Wi=zi.apply,$i=zi.call;Ki.exports=typeof Reflect=="object"&&Reflect.apply||(fc?$i.bind(Wi):function(){return $i.apply(Wi,arguments)})});var it=a((dm,Hi)=>{"use strict";var bc=Le(),vc=M();Hi.exports=function(e){if(bc(e)==="Function")return vc(e)}});var eo=a(Zi=>{"use strict";var Xi={}.propertyIsEnumerable,Ji=Object.getOwnPropertyDescriptor,dc=Ji&&!Xi.call({1:2},1);Zi.f=dc?function(r){var t=Ji(this,r);return!!t&&t.enumerable}:Xi});var no=a(to=>{"use strict";var mc=C(),Tc=F(),hc=eo(),yc=fe(),gc=H(),Ic=Hr(),xc=N(),Oc=Lr(),ro=Object.getOwnPropertyDescriptor;to.f=mc?ro:function(r,t){if(r=gc(r),t=Ic(t),Oc)try{return ro(r,t)}catch(n){}if(xc(r,t))return yc(!Tc(hc.f,r,t),r[t])}});var oo=a((hm,io)=>{"use strict";var wc=A(),Ec=E(),Sc=/#|\.prototype\./,ve=function(e,r){var t=Rc[qc(e)];return t===_c?!0:t===Pc?!1:Ec(r)?wc(r):!!r},qc=ve.normalize=function(e){return String(e).replace(Sc,".").toLowerCase()},Rc=ve.data={},Pc=ve.NATIVE="N",_c=ve.POLYFILL="P";io.exports=ve});var ot=a((ym,so)=>{"use strict";var ao=it(),Ac=le(),Cc=ue(),Lc=ao(ao.bind);so.exports=function(e,r){return Ac(e),r===void 0?e:Cc?Lc(e,r):function(){return e.apply(r,arguments)}}});var at=a((gm,co)=>{"use strict";var de=w(),Mc=Yi(),jc=it(),Nc=E(),kc=no().f,Vc=oo(),ee=ke(),Dc=ot(),re=Z(),uo=N();Ue();var Fc=function(e){var r=function(t,n,i){if(this instanceof r){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,i)}return Mc(e,this,arguments)};return r.prototype=e.prototype,r};co.exports=function(e,r){var t=e.target,n=e.global,i=e.stat,o=e.proto,u=n?de:i?de[t]:de[t]&&de[t].prototype,s=n?ee:ee[t]||re(ee,t,{})[t],p=s.prototype,l,b,c,v,d,T,h,I,y;for(v in r)l=Vc(n?v:t+(i?".":"#")+v,e.forced),b=!l&&u&&uo(u,v),T=s[v],b&&(e.dontCallGetSet?(y=kc(u,v),h=y&&y.value):h=u[v]),d=b&&h?h:r[v],!(!l&&!o&&typeof T==typeof d)&&(e.bind&&b?I=Dc(d,de):e.wrap&&b?I=Fc(d):o&&Nc(d)?I=jc(d):I=d,(e.sham||d&&d.sham||T&&T.sham)&&re(I,"sham",!0),re(s,v,I),o&&(c=t+"Prototype",uo(ee,c)||re(ee,c,{}),re(ee[c],v,d),e.real&&p&&(l||!p[v])&&re(p,v,d)))}});var fo=a((Im,po)=>{"use strict";var st=C(),Uc=N(),lo=Function.prototype,Gc=st&&Object.getOwnPropertyDescriptor,ut=Uc(lo,"name"),Bc=ut&&function(){}.name==="something",Qc=ut&&(!st||st&&Gc(lo,"name").configurable);po.exports={EXISTS:ut,PROPER:Bc,CONFIGURABLE:Qc}});var vo=a((xm,bo)=>{"use strict";var Wc=Math.ceil,$c=Math.floor;bo.exports=Math.trunc||function(r){var t=+r;return(t>0?$c:Wc)(t)}});var ct=a((Om,mo)=>{"use strict";var zc=vo();mo.exports=function(e){var r=+e;return r!==r||r===0?0:zc(r)}});var ho=a((wm,To)=>{"use strict";var Kc=ct(),Yc=Math.max,Hc=Math.min;To.exports=function(e,r){var t=Kc(e);return t<0?Yc(t+r,0):Hc(t,r)}});var go=a((Em,yo)=>{"use strict";var Xc=ct(),Jc=Math.min;yo.exports=function(e){var r=Xc(e);return r>0?Jc(r,9007199254740991):0}});var lt=a((Sm,Io)=>{"use strict";var Zc=go();Io.exports=function(e){return Zc(e.length)}});var wo=a((qm,Oo)=>{"use strict";var el=H(),rl=ho(),tl=lt(),xo=function(e){return function(r,t,n){var i=el(r),o=tl(i);if(o===0)return!e&&-1;var u=rl(n,o),s;if(e&&t!==t){for(;o>u;)if(s=i[u++],s!==s)return!0}else for(;o>u;u++)if((e||u in i)&&i[u]===t)return e||u||0;return!e&&-1}};Oo.exports={includes:xo(!0),indexOf:xo(!1)}});var qo=a((Rm,So)=>{"use strict";var nl=M(),pt=N(),il=H(),ol=wo().indexOf,al=Qe(),Eo=nl([].push);So.exports=function(e,r){var t=il(e),n=0,i=[],o;for(o in t)!pt(al,o)&&pt(t,o)&&Eo(i,o);for(;r.length>n;)pt(t,o=r[n++])&&(~ol(i,o)||Eo(i,o));return i}});var ft=a((Pm,Ro)=>{"use strict";Ro.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var _o=a((_m,Po)=>{"use strict";var sl=qo(),ul=ft();Po.exports=Object.keys||function(r){return sl(r,ul)}});var Co=a(Ao=>{"use strict";var cl=C(),ll=Mr(),pl=J(),fl=$(),bl=H(),vl=_o();Ao.f=cl&&!ll?Object.defineProperties:function(r,t){fl(r);for(var n=bl(t),i=vl(t),o=i.length,u=0,s;o>u;)pl.f(r,s=i[u++],n[s]);return r}});var Mo=a((Cm,Lo)=>{"use strict";var dl=kr();Lo.exports=dl("document","documentElement")});var mt=a((Lm,Uo)=>{"use strict";var ml=$(),Tl=Co(),jo=ft(),hl=Qe(),yl=Mo(),gl=Cr(),Il=Be(),No=">",ko="<",vt="prototype",dt="script",Do=Il("IE_PROTO"),bt=function(){},Fo=function(e){return ko+dt+No+e+ko+"/"+dt+No},Vo=function(e){e.write(Fo("")),e.close();var r=e.parentWindow.Object;return e=null,r},xl=function(){var e=gl("iframe"),r="java"+dt+":",t;return e.style.display="none",yl.appendChild(e),e.src=String(r),t=e.contentWindow.document,t.open(),t.write(Fo("document.F=Object")),t.close(),t.F},ze,Ke=function(){try{ze=new ActiveXObject("htmlfile")}catch(r){}Ke=typeof document!="undefined"?document.domain&&ze?Vo(ze):xl():Vo(ze);for(var e=jo.length;e--;)delete Ke[vt][jo[e]];return Ke()};hl[Do]=!0;Uo.exports=Object.create||function(r,t){var n;return r!==null?(bt[vt]=ml(r),n=new bt,bt[vt]=null,n[Do]=r):n=Ke(),t===void 0?n:Tl.f(n,t)}});var Bo=a((Mm,Go)=>{"use strict";var Ol=A();Go.exports=!Ol(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var ht=a((jm,Wo)=>{"use strict";var wl=N(),El=E(),Sl=zr(),ql=Be(),Rl=Bo(),Qo=ql("IE_PROTO"),Tt=Object,Pl=Tt.prototype;Wo.exports=Rl?Tt.getPrototypeOf:function(e){var r=Sl(e);if(wl(r,Qo))return r[Qo];var t=r.constructor;return El(t)&&r instanceof t?t.prototype:r instanceof Tt?Pl:null}});var yt=a((Nm,$o)=>{"use strict";var _l=Z();$o.exports=function(e,r,t,n){return n&&n.enumerable?e[r]=t:_l(e,r,t),e}});var Ot=a((km,Yo)=>{"use strict";var Al=A(),Cl=E(),Ll=j(),Ml=mt(),zo=ht(),jl=yt(),Nl=k(),kl=pe(),xt=Nl("iterator"),Ko=!1,V,gt,It;[].keys&&(It=[].keys(),"next"in It?(gt=zo(zo(It)),gt!==Object.prototype&&(V=gt)):Ko=!0);var Vl=!Ll(V)||Al(function(){var e={};return V[xt].call(e)!==e});Vl?V={}:kl&&(V=Ml(V));Cl(V[xt])||jl(V,xt,function(){return this});Yo.exports={IteratorPrototype:V,BUGGY_SAFARI_ITERATORS:Ko}});var Ye=a((Vm,Xo)=>{"use strict";var Dl=k(),Fl=Dl("toStringTag"),Ho={};Ho[Fl]="z";Xo.exports=String(Ho)==="[object z]"});var wt=a((Dm,Jo)=>{"use strict";var Ul=Ye(),Gl=E(),He=Le(),Bl=k(),Ql=Bl("toStringTag"),Wl=Object,$l=He(function(){return arguments}())==="Arguments",zl=function(e,r){try{return e[r]}catch(t){}};Jo.exports=Ul?He:function(e){var r,t,n;return e===void 0?"Undefined":e===null?"Null":typeof(t=zl(r=Wl(e),Ql))=="string"?t:$l?He(r):(n=He(r))==="Object"&&Gl(r.callee)?"Arguments":n}});var ea=a((Fm,Zo)=>{"use strict";var Kl=Ye(),Yl=wt();Zo.exports=Kl?{}.toString:function(){return"[object "+Yl(this)+"]"}});var Xe=a((Um,ta)=>{"use strict";var Hl=Ye(),Xl=J().f,Jl=Z(),Zl=N(),ep=ea(),rp=k(),ra=rp("toStringTag");ta.exports=function(e,r,t,n){var i=t?e:e&&e.prototype;i&&(Zl(i,ra)||Xl(i,ra,{configurable:!0,value:r}),n&&!Hl&&Jl(i,"toString",ep))}});var ia=a((Gm,na)=>{"use strict";var tp=Ot().IteratorPrototype,np=mt(),ip=fe(),op=Xe(),ap=W(),sp=function(){return this};na.exports=function(e,r,t,n){var i=r+" Iterator";return e.prototype=np(tp,{next:ip(+!n,t)}),op(e,i,!1,!0),ap[i]=sp,e}});var aa=a((Bm,oa)=>{"use strict";var up=M(),cp=le();oa.exports=function(e,r,t){try{return up(cp(Object.getOwnPropertyDescriptor(e,r)[t]))}catch(n){}}});var ua=a((Qm,sa)=>{"use strict";var lp=j();sa.exports=function(e){return lp(e)||e===null}});var la=a((Wm,ca)=>{"use strict";var pp=ua(),fp=String,bp=TypeError;ca.exports=function(e){if(pp(e))return e;throw new bp("Can't set "+fp(e)+" as a prototype")}});var fa=a(($m,pa)=>{"use strict";var vp=aa(),dp=j(),mp=je(),Tp=la();pa.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,r={},t;try{t=vp(Object.prototype,"__proto__","set"),t(r,[]),e=r instanceof Array}catch(n){}return function(i,o){return mp(i),Tp(o),dp(i)&&(e?t(i,o):i.__proto__=o),i}}():void 0)});var Oa=a((zm,xa)=>{"use strict";var hp=at(),yp=F(),Je=pe(),ga=fo(),gp=E(),Ip=ia(),ba=ht(),va=fa(),xp=Xe(),Op=Z(),Et=yt(),wp=k(),da=W(),Ia=Ot(),Ep=ga.PROPER,Sp=ga.CONFIGURABLE,ma=Ia.IteratorPrototype,Ze=Ia.BUGGY_SAFARI_ITERATORS,me=wp("iterator"),Ta="keys",Te="values",ha="entries",ya=function(){return this};xa.exports=function(e,r,t,n,i,o,u){Ip(t,r,n);var s=function(y){if(y===i&&v)return v;if(!Ze&&y&&y in b)return b[y];switch(y){case Ta:return function(){return new t(this,y)};case Te:return function(){return new t(this,y)};case ha:return function(){return new t(this,y)}}return function(){return new t(this)}},p=r+" Iterator",l=!1,b=e.prototype,c=b[me]||b["@@iterator"]||i&&b[i],v=!Ze&&c||s(i),d=r==="Array"&&b.entries||c,T,h,I;if(d&&(T=ba(d.call(new e)),T!==Object.prototype&&T.next&&(!Je&&ba(T)!==ma&&(va?va(T,ma):gp(T[me])||Et(T,me,ya)),xp(T,p,!0,!0),Je&&(da[p]=ya))),Ep&&i===Te&&c&&c.name!==Te&&(!Je&&Sp?Op(b,"name",Te):(l=!0,v=function(){return yp(c,this)})),i)if(h={values:s(Te),keys:o?v:s(Ta),entries:s(ha)},u)for(I in h)(Ze||l||!(I in b))&&Et(b,I,h[I]);else hp({target:r,proto:!0,forced:Ze||l},h);return(!Je||u)&&b[me]!==v&&Et(b,me,v,{name:i}),da[r]=v,h}});var Ea=a((Km,wa)=>{"use strict";wa.exports=function(e,r){return{value:e,done:r}}});var qt=a((Ym,_a)=>{"use strict";var qp=H(),St=_n(),Sa=W(),Ra=Qi(),Rp=J().f,Pp=Oa(),er=Ea(),_p=pe(),Ap=C(),Pa="Array Iterator",Cp=Ra.set,Lp=Ra.getterFor(Pa);_a.exports=Pp(Array,"Array",function(e,r){Cp(this,{type:Pa,target:qp(e),index:0,kind:r})},function(){var e=Lp(this),r=e.target,t=e.index++;if(!r||t>=r.length)return e.target=void 0,er(void 0,!0);switch(e.kind){case"keys":return er(t,!1);case"values":return er(r[t],!1)}return er([t,r[t]],!1)},"values");var qa=Sa.Arguments=Sa.Array;St("keys");St("values");St("entries");if(!_p&&Ap&&qa.name!=="values")try{Rp(qa,"name",{value:"values"})}catch(e){}});var Ca=a((Hm,Aa)=>{"use strict";var Mp=k(),jp=W(),Np=Mp("iterator"),kp=Array.prototype;Aa.exports=function(e){return e!==void 0&&(jp.Array===e||kp[Np]===e)}});var Rt=a((Xm,Ma)=>{"use strict";var Vp=wt(),La=Fe(),Dp=Me(),Fp=W(),Up=k(),Gp=Up("iterator");Ma.exports=function(e){if(!Dp(e))return La(e,Gp)||La(e,"@@iterator")||Fp[Vp(e)]}});var Na=a((Jm,ja)=>{"use strict";var Bp=F(),Qp=le(),Wp=$(),$p=De(),zp=Rt(),Kp=TypeError;ja.exports=function(e,r){var t=arguments.length<2?zp(e):r;if(Qp(t))return Wp(Bp(t,e));throw new Kp($p(e)+" is not iterable")}});var Da=a((Zm,Va)=>{"use strict";var Yp=F(),ka=$(),Hp=Fe();Va.exports=function(e,r,t){var n,i;ka(e);try{if(n=Hp(e,"return"),!n){if(r==="throw")throw t;return t}n=Yp(n,e)}catch(o){i=!0,n=o}if(r==="throw")throw t;if(i)throw n;return ka(n),t}});var Qa=a((eT,Ba)=>{"use strict";var Xp=ot(),Jp=F(),Zp=$(),ef=De(),rf=Ca(),tf=lt(),Fa=Vr(),nf=Na(),of=Rt(),Ua=Da(),af=TypeError,rr=function(e,r){this.stopped=e,this.result=r},Ga=rr.prototype;Ba.exports=function(e,r,t){var n=t&&t.that,i=!!(t&&t.AS_ENTRIES),o=!!(t&&t.IS_RECORD),u=!!(t&&t.IS_ITERATOR),s=!!(t&&t.INTERRUPTED),p=Xp(r,n),l,b,c,v,d,T,h,I=function(g){return l&&Ua(l,"normal",g),new rr(!0,g)},y=function(g){return i?(Zp(g),s?p(g[0],g[1],I):p(g[0],g[1])):s?p(g,I):p(g)};if(o)l=e.iterator;else if(u)l=e;else{if(b=of(e),!b)throw new af(ef(e)+" is not iterable");if(rf(b)){for(c=0,v=tf(e);v>c;c++)if(d=y(e[c]),d&&Fa(Ga,d))return d;return new rr(!1)}l=nf(e,b)}for(T=o?e.next:l.next;!(h=Jp(T,l)).done;){try{d=y(h.value)}catch(g){Ua(l,"throw",g)}if(typeof d=="object"&&d&&Fa(Ga,d))return d}return new rr(!1)}});var $a=a((rT,Wa)=>{"use strict";var sf=C(),uf=J(),cf=fe();Wa.exports=function(e,r,t){sf?uf.f(e,r,cf(0,t)):e[r]=t}});var za=a(()=>{"use strict";var lf=at(),pf=Qa(),ff=$a();lf({target:"Object",stat:!0},{fromEntries:function(r){var t={};return pf(r,function(n,i){ff(t,n,i)},{AS_ENTRIES:!0}),t}})});var Ya=a((iT,Ka)=>{"use strict";qt();za();var bf=ke();Ka.exports=bf.Object.fromEntries});var Xa=a((oT,Ha)=>{"use strict";Ha.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}});var Za=a(()=>{"use strict";qt();var vf=Xa(),df=w(),mf=Xe(),Ja=W();for(tr in vf)mf(df[tr],tr),Ja[tr]=Ja.Array;var tr});var rs=a((uT,es)=>{"use strict";var Tf=Ya();Za();es.exports=Tf});var ns=a((cT,ts)=>{"use strict";var hf=rs();ts.exports=hf});var Of={};Ct(Of,{ErrorCategory:()=>vn,InterfaceLanguage:()=>as,Logger:()=>Ie,Observable:()=>f,Subject:()=>L,Subscription:()=>O,Tracer:()=>xe,VERSION:()=>Mt,VKNumericLanguage:()=>os,ValueSubject:()=>ie,VideoQuality:()=>Se,abortable:()=>Bt,addScript:()=>Ft,areQualitiesExact:()=>rn,assertEmptyArray:()=>Dt,assertNever:()=>_,assertNonNullable:()=>Nt,assertNotEmptyArray:()=>Vt,assertNullable:()=>kt,assertQualityIsExact:()=>tn,buffer:()=>lr,checkNever:()=>jt,clearVideoElement:()=>sn,clientChecker:()=>Qt,cloneDeep:()=>on,cloneDeepWith:()=>te,combine:()=>sr,createURL:()=>Ss,debounce:()=>fr,debounceFn:()=>Pe,detectEmbed:()=>$t,fillWithDefault:()=>nn,filter:()=>mr,filterChanged:()=>hr,flattenObject:()=>ne,fromEvent:()=>fn,getExponentialDelay:()=>Wt,getHighestQuality:()=>Ht,getTraceSubscriptionMethod:()=>un,interval:()=>ln,isHigher:()=>zt,isHigherOrEqual:()=>Kt,isInvariantQuality:()=>Re,isLower:()=>qe,isLowerOrEqual:()=>Yt,isMobile:()=>or,isNonNullable:()=>B,isNullable:()=>we,isValidURL:()=>Es,loadVKLangPack:()=>gf,map:()=>oe,mapTo:()=>gr,merge:()=>ur,noop:()=>D,now:()=>Gt,observableFrom:()=>pn,observeElementSize:()=>an,once:()=>Ir,pairwise:()=>Or,safeStorage:()=>Ee,tap:()=>Er,throttle:()=>vr,throttleFn:()=>_e,timeCodeToString:()=>Os,timeout:()=>cn,videoHeightToQuality:()=>Jt,videoQualityToHeight:()=>en,videoSizeToQuality:()=>Zt});module.exports=ms(Of);var Mt="1.0.50-dev.1326de93.0";var O=class{constructor(){this.subscriptions=[]}unsubscribe(){let r=this.subscriptions;this.subscriptions=[],r.forEach(t=>typeof t=="function"?t():t.unsubscribe())}add(r){return this.subscriptions.push(r),this}};var _=e=>{throw new Error(`${e} is value of unexpected type`)},jt=e=>{};var D=()=>{};var f=class{constructor(r){r&&(this._subscribe=r)}subscribe(r,t){var u;let n;t?typeof t=="function"?n={next:t,error:D}:n={next:s=>t.next(s),error:s=>{var p;return(p=t.error)==null?void 0:p.call(t,s)}}:n={next:D,error:D};let i=typeof r=="function"?{next:s=>{try{r(s)}catch(p){n.next(p)}},error:s=>n.next(s)}:{next:s=>r.next(s),error:s=>r.error?r.error(s):n.next(s)},o;try{o=this._subscribe(i)}catch(s){(u=i.error)==null||u.call(i,s)}return new O().add(()=>{switch(i.next=D,i.error=D,typeof o){case"function":o();return;case"object":o.unsubscribe();return;case"undefined":return;default:return _(o)}})}pipe(...r){return r.reduce((t,n)=>n(t),this)}_subscribe(r){}};var L=class extends f{constructor(){super();this.keyCounter=0;this.subscribers=new Map}next(t){this.subscribers.forEach(n=>n.next(t))}error(t){this.subscribers.forEach(n=>{var i;return(i=n.error)==null?void 0:i.call(n,t)})}_subscribe(t){let n=this.keyCounter++;return this.subscribers.set(n,t),new O().add(()=>this.subscribers.delete(n))}};var Ie=class{constructor(){this.log$=new L;this.logs=[];this.log=r=>{let t={...r,timestamp:Date.now()};this.logs.push(t),this.log$.next(t)};this.getAllLogs=()=>this.logs}createCustomLog(r){return(...t)=>{let n;try{n=r(...t)}catch(i){n={message:"error in `createCustomLog`",component:"Logger"}}this.log(n)}}createComponentLog(r){return this.createCustomLog(t=>({component:r,...t}))}};var Oe=require("@opentelemetry/api");var G=require("@tracer/opentelemetry"),nr=class e{constructor({name:r}){}log(r,t){}error(r,t){}critical(r,t){}createComponentTracer(r){return new e({name:r})}end(){}getFinishedSpans(){}getTraceId(){return this.fakeTraceId}},xe=class e{constructor({name:r,parentContext:t,tracer:n}){this.childTracers=[];let i=!n;if(i){let u=(0,G.initTracerOpenTelemetry)({serviceName:"videoplayer-sdk-web",appToken:"L9SBoka6ZWk4xPjaK7tmfSfYvMhcge7nvGDjpdMmscb",spanLimits:{attributeCountLimit:1/0,eventCountLimit:1/0,attributePerEventCountLimit:1/0}}).getProvider(),s=new G.TracerMemorySpanExporter,p=new G.TracerMemorySpanExporter;this.spanExporter=s,u.addSpanProcessor(new G.TracerAllSpansProcessor({startedSpansExporter:s,endedSpansExporter:p})),this.tracer=u.getTracer("sdk-videoplayer-tracer")}else this.tracer=n;this.span=this.tracer.startSpan(r,{root:i},t),this.context=Oe.trace.setSpan(Oe.context.active(),this.span)}log(r,t){this.span.addEvent(r,{...t,type:"log"})}error(r,t){this.span.addEvent(r,{...t,type:"error"})}critical(r,t){this.span.addEvent(r,{...t,type:"critical"})}static createRootTracer(r=!1){return r?new e({name:"Root"}):new nr({name:"Root"})}createComponentTracer(r){let t=new e({name:r,parentContext:this.context,tracer:this.tracer});return this.childTracers.push(t),t}end(){this.childTracers.forEach(r=>r.end()),this.span.end()}getFinishedSpans(){var r;return(r=this.spanExporter)==null?void 0:r.getJsonData()}getTraceId(){return this.span.spanContext().traceId}};function Nt(e,r='Assertion "value is not nullable" failed'){if(e==null)throw new Error(r)}function kt(e,r='Assertion "value is nullable" failed'){if(e!=null)throw new Error(r)}function B(e){return typeof e!="undefined"&&e!==null}function we(e){return e==null}function Vt(e,r){if(!(e!=null&&e.length))throw new Error(r)}function Dt(e,r){if(e!=null&&e.length)throw new Error(r)}var Ft=(e,r,t)=>new Promise((n,i)=>{r.addEventListener("abort",()=>{s(),l.remove()});let o=()=>{s(),i()},u=()=>{s(),n()},s=()=>{p&&clearTimeout(p),l.removeEventListener("load",u),l.removeEventListener("error",o)},p;t&&(p=window.setTimeout(o,t));let l=document.createElement("script");l.addEventListener("load",u),l.addEventListener("error",o),l.src=e,document.head.appendChild(l)});var Ut,Gt=typeof((Ut=window.performance)==null?void 0:Ut.now)=="function"?()=>window.performance.now():()=>Date.now();var Bt=(e,r)=>async(...t)=>{var u;let n=r(...t),i=e.aborted,o;for(;!i&&!e.aborted;)try{let s=await n.next(o);i=(u=s.done)!=null?u:!1,o=s.value}catch(s){await n.throw(s)}return o};var or=()=>{var e,r;return/Mobile|mini|Fennec|Android|iP(ad|od|hone)/.test((e=navigator.appVersion)!=null?e:navigator.userAgent)||((r=navigator==null?void 0:navigator.userAgentData)==null?void 0:r.mobile)},ir=class{constructor(){this.detect()}get browser(){return this._currentBrowser}get device(){return this._currentDevice}get isTouch(){return this._maxTouchPoints>0}get isIOS(){return["iPhone","iPad","iPod"].includes(this.device)}get isMac(){return this.device==="Mac"}get isApple(){return this.isIOS||this.isMac}get isIphoneOrOldIpad(){if(!this.isApple||!this.isTouch)return!1;let r=this.device==="iPad"||(window==null?void 0:window.screen.width)>700,t=this._iosVersion;return!r||r&&!!t&&t<16}get isAndroid(){return this.device==="Android"}get isMobile(){return this._isMobile}get iOSVersion(){return this._iosVersion}get macVersion(){return this._macVersion}get isYandex(){return this.browser==="Yandex"}get isSafari(){return this.browser==="Safari"}get isSamsungBrowser(){return this.browser==="SamsungBrowser"}get isHDR(){return this._isHdr}detect(){var n;let{userAgent:r,maxTouchPoints:t}=navigator;try{this._maxTouchPoints=t,this._isHdr=!!((n=matchMedia("(dynamic-range: high)"))!=null&&n.matches)}catch(i){console.error(i)}try{this._isMobile=or()}catch(i){console.error(i)}this.detectBrowser(r),this.detectDevice(r),this.isIOS&&this.detectIOSVersion(),this.isMac&&this.detectMacVersion()}detectBrowser(r){try{let t=/yabrowser/i.test(r)?"Yandex":void 0,n=/samsungbrowser/i.test(r)?"SamsungBrowser":void 0,i=/chrome|crios/i.test(r)?"Chrome":void 0,o=/chromium/i.test(r)?"Chromium":void 0,u=/firefox|fxios/i.test(r)?"Firefox":void 0,s=/webkit|safari|khtml/i.test(r)?"Safari":void 0,p=/opr\//i.test(r)?"Opera":void 0,l=/edg/i.test(r)?"Edge":void 0;this._currentBrowser=t||n||u||p||l||i||o||s||"Rest"}catch(t){console.error(t)}}detectDevice(r){try{let t=/android/i.test(r)?"Android":void 0,n=/iphone/i.test(r)?"iPhone":void 0,i=/ipad/i.test(r)?"iPad":void 0,o=/ipod/i.test(r)?"iPod":void 0,u=/mac/i.test(r)?"Mac":void 0,s=/webOS|BlackBerry|IEMobile|Opera Mini/i.test(r)?"RestMobile":void 0;this._currentDevice=t||n||i||o||s||u||"Desktop"}catch(t){console.error(t)}}detectIOSVersion(){try{let{userAgent:r}=window.navigator,t=r.match(/Version\/(\d+(\.\d+)?)/i);if(!t)return;let n=t[1],i=parseFloat(n);if(isNaN(i))return;this._iosVersion=i}catch(r){console.error(r)}}detectMacVersion(){try{let{userAgent:r}=window.navigator,t=r.match(/Version\/(\d+)/);if(!t)return;let n=t[1],i=parseInt(n,10);if(isNaN(i))return;this._macVersion=i}catch(r){console.error(r)}}},Qt=new ir;var Wt=(e,{start:r=0,factor:t=2,max:n=1/0,min:i=r,random:o=0}={})=>{let u=r;return u*=t**e,u*=1+(Math.random()*o*2-o),u=Math.round(u),u=Math.min(u,n),u=Math.max(u,i),u};var Ee={};Ct(Ee,{clear:()=>xs,get:()=>hs,has:()=>gs,isPersistent:()=>Ts,remove:()=>Is,set:()=>ys});var x,Q,ar=`vk-videoplayer-dummy-key-${Math.random()}`,K=()=>{if(Q!==void 0)return Q;try{localStorage.setItem(ar,"test"),localStorage.removeItem(ar),Q=0}catch(e){if(e instanceof DOMException||e instanceof TypeError)try{sessionStorage.getItem(ar),Q=1}catch(r){if(r instanceof DOMException||r instanceof TypeError)Q=2;else throw r}else throw e}return Q===2&&(x=new Map),Q},Ts=()=>K()===0,hs=e=>{var t,n;let r=K();switch(r){case 0:return(t=localStorage.getItem(e))!=null?t:void 0;case 1:return(n=sessionStorage.getItem(e))!=null?n:void 0;case 2:return x==null?void 0:x.get(e);default:_(r)}},ys=(e,r)=>{let t=K();switch(t){case 0:try{localStorage.setItem(e,r)}catch(n){if(n instanceof DOMException)console.error(n);else throw n}break;case 1:try{sessionStorage.setItem(e,r)}catch(n){if(n instanceof DOMException)console.error(n);else throw n}break;case 2:return void(x==null?void 0:x.set(e,r));default:_(t)}},gs=e=>{var t;let r=K();switch(r){case 0:return e in localStorage;case 1:return e in sessionStorage;case 2:return(t=x==null?void 0:x.has(e))!=null?t:!1;default:return _(r),!1}},Is=e=>{let r=K();switch(r){case 0:return localStorage.removeItem(e);case 1:return sessionStorage.removeItem(e);case 2:return void(x==null?void 0:x.delete(e));default:_(r)}},xs=()=>{let e=K();switch(e){case 0:return localStorage.clear();case 1:return sessionStorage.clear();case 2:return x==null?void 0:x.clear();default:_(e)}};var $t=()=>{let e,r;try{e=window.self!==window.top}catch(n){n instanceof DOMException&&n.name==="SecurityError"?e=!0:(e=!1,console.error(n))}try{window.location.ancestorOrigins&&(r=window.location.ancestorOrigins[window.location.ancestorOrigins.length-1])}catch(n){console.error(n)}try{!r&&document.referrer&&(r=document.referrer)}catch(n){console.error(n)}let t=r?new URL(r).hostname:void 0;return{isEmbed:e,host:t}};var Se=(c=>(c.INVARIANT="Invariant quality",c.Q_144P="144p",c.Q_240P="240p",c.Q_360P="360p",c.Q_480P="480p",c.Q_576P="576p",c.Q_720P="720p",c.Q_1080P="1080p",c.Q_1440P="1440p",c.Q_2160P="2160p",c.Q_4320P="4320p",c))(Se||{});var S={"144p":{width:256,height:144},"240p":{width:428,height:240},"360p":{width:640,height:360},"480p":{width:856,height:480},"576p":{width:1024,height:576},"720p":{width:1280,height:720},"1080p":{width:1920,height:1080},"1440p":{width:2560,height:1440},"2160p":{width:3840,height:2160},"4320p":{width:7680,height:4320}},zt=(e,r)=>S[e].height>S[r].height,Kt=(e,r)=>S[e].height>=S[r].height,qe=(e,r)=>S[e].height<S[r].height,Yt=(e,r)=>S[e].height<=S[r].height,Ht=e=>e.sort((r,t)=>r===t?0:r==="Invariant quality"?1:t==="Invariant quality"?-1:qe(r,t)?1:-1)[0],Xt=Object.keys(S).sort((e,r)=>qe(e,r)?-1:1),Jt=(e,r=.02)=>[...Xt].find(n=>S[n].height*(1+r)>=e),Zt=({width:e,height:r})=>{let t=Math.min(e,r),n=Math.max(e,r);return Xt.find(i=>{let o=S[i];return o.width>=n&&o.height>=t})},en=e=>S[e].height,Re=e=>e==="Invariant quality",rn=e=>e.every(r=>!Re(r));function tn(e){if(Re(e))throw new Error("Expected exact quality")}var nn=(e,r)=>{let t={};for(let n of Object.keys(r)){let i=r[n],o=e[n];Array.isArray(i)&&Array.isArray(o)?t[n]=o:typeof i=="object"&&typeof o=="object"?t[n]=nn(o,i):t[n]=n in e?o:i}return t};var Os=e=>{let r="";return e>=3600&&(r+=Math.floor(e/3600)+"h",e=e%3600),e>=60&&(r+=Math.floor(e/60)+"m",e=e%60),e>0&&(r+=Math.floor(e)+"s"),r};function Pe(e,r=0,t){let n,i,o,u,s,p,l=0,b=!1,c=!1,v=!0,d=!r&&r!==0&&typeof window.requestAnimationFrame=="function";t&&(b=!!t.leading,c="maxWait"in t,o=t!=null&&t.maxWait?Math.max(+(t==null?void 0:t.maxWait)||0,r):o,v="trailing"in t?!!t.trailing:v);function T(m){let q=n,U=i;return n=i=void 0,l=m,u=e.apply(U,q),u}function h(m,q){return d?(s&&window.cancelAnimationFrame(s),window.requestAnimationFrame(m)):setTimeout(m,q)}function I(m){if(d){window.cancelAnimationFrame(m);return}clearTimeout(m)}function y(m){return l=m,s=h(he,r),b?T(m):u}function g(m){let q=m-p,U=m-l,At=r-q;return c?Math.min(At,o-U):At}function Pt(m){let q=m-p,U=m-l;return p===void 0||q>=r||q<0||c&&U>=o}function he(){let m=Date.now();if(Pt(m))return _t(m);s=h(he,g(m))}function _t(m){return s=void 0,v&&n?T(m):(n=i=void 0,u)}function ss(){s!==void 0&&I(s),l=0,n=p=i=s=void 0}function us(){return s===void 0?u:_t(Date.now())}function cs(){return s!==void 0}function ye(...m){let q=Date.now(),U=Pt(q);if(n=m,i=this,p=q,U){if(s===void 0)return y(p);if(c)return s=h(he,r),T(p)}return s===void 0&&(s=h(he,r)),u}return ye.cancel=ss,ye.flush=us,ye.pending=cs,ye}var _e=(e,r=0,t)=>Pe(e,r,{...{leading:!0,trailing:!0},...t,maxWait:r});var te=(e,r)=>{if(e===null||typeof e!="object")return e;let t=Array.isArray(e)?[]:{};for(let n in e){if(typeof r=="function"){let i=r(e[n],n,e,t);if(i!==void 0){t[n]=i;continue}}typeof e[n]=="object"?t[n]=te(e[n],r):t[n]=e[n]}return t};var on=e=>te(e);var ws=300,an=(e,r=ws)=>new f(t=>{let{width:n,height:i}=e.getBoundingClientRect();if(t.next({width:n,height:i}),!window.ResizeObserver)return;let o=new ResizeObserver(_e(u=>{let s=u[0];if(!s)return;let p,l;s.contentBoxSize&&s.contentBoxSize[0]?(l=s.contentBoxSize[0].blockSize,p=s.contentBoxSize[0].inlineSize):s.contentRect&&(p=s.contentRect.width,l=s.contentRect.height),B(p)&&B(l)&&t.next({width:p,height:l})},r));return o.observe(e),()=>o.disconnect()});var ne=(e,r=6,t=".")=>{let n={};for(let i in e)if(!(!e.hasOwnProperty(i)||e[i]instanceof HTMLElement||!r))if(typeof e[i]=="object"&&e[i]!==null){let o=ne(e[i],r-1);for(let u in o)o.hasOwnProperty(u)&&(n[i+t+u]=o[u])}else n[i]=e[i];return n};var sn=e=>{e.removeAttribute("src"),e.load()};var Es=e=>{let r;try{r=new URL(e)}catch(t){return!1}return r.protocol==="https:"};var Ss=e=>{try{return new URL(e)}catch(r){return null}};var un=e=>r=>t=>{let n=typeof t=="object";t==null||n&&!Object.keys(t).length||e(r,n?ne(t):{value:t})};var ie=class extends L{constructor(r){super(),this.value=r}next(r){super.next(this.value=r)}error(r){super.error(this.value=r)}getValue(){return this.value}_subscribe(r){let t=super._subscribe(r);return r.next(this.value),t}};function sr(e){return new f(r=>{let t={},n=Object.keys(e).length,i=o=>u=>{o in t||n--,t[o]=u,n===0&&r.next(t)};return Object.entries(e).reduce((o,[u,s])=>o.add(s.subscribe(i(u))),new O)})}function ur(...e){return new f(r=>e.reduce((t,n)=>t.add(n.subscribe(r)),new O))}var cn=e=>new f(r=>{let t=window.setTimeout(()=>{try{r.next()}catch(n){if(r.error)r.error(n);else throw n}},e);return()=>window.clearTimeout(t)});var ln=e=>new f(r=>{let t=window.setInterval(()=>r.next(),e);return()=>{t&&(window.clearInterval(t),t=void 0)}});var pn=e=>new f(r=>{e.forEach(t=>r.next(t))});var fn=(e,r)=>new f(t=>{let n=i=>t.next(i);return e.addEventListener(r,n),()=>e.removeEventListener(r,n)});function lr(e){return r=>new f(t=>r.subscribe(new cr(t,e)))}var cr=class{constructor(r,t){this.destination=r;this.size=t;this.lastValues=[]}next(r){this.lastValues.length===this.size&&this.lastValues.shift(),this.lastValues.push(r),this.destination.next(this.lastValues)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};var qs={leading:!1,trailing:!0};function fr(e,r=qs){return t=>new f(n=>t.subscribe(new pr(n,e,r)))}var pr=class{constructor(r,t,n){this.destination=r;this.time=t;this.config=n}next(r){this.lastValue=r,B(this.timeout)?window.clearTimeout(this.timeout):this.config.leading&&this.destination.next(r),this.timeout=window.setTimeout(()=>{if(this.config.trailing)try{this.destination.next(this.lastValue)}catch(t){if(this.destination.error)this.destination.error(t);else throw t}this.timeout=void 0},this.time)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};var Rs={leading:!0,trailing:!1};function vr(e,r=Rs){return t=>new f(n=>t.subscribe(new br(n,e,r)))}var br=class{constructor(r,t,n){this.destination=r;this.time=t;this.config=n}next(r){this.lastValue=r,we(this.timeout)&&(this.config.leading&&this.destination.next(r),this.timeout=window.setTimeout(()=>{this.config.trailing&&this.destination.next(this.lastValue),this.timeout=void 0},this.time))}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function mr(e){return r=>new f(t=>r.subscribe(new dr(t,e)))}var dr=class{constructor(r,t){this.destination=r;this.predicate=t}next(r){let t;try{t=this.predicate(r)}catch(n){throw this.error(n),n}t&&this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function hr(e=(r,t)=>r===t){return r=>new f(t=>r.subscribe(new Tr(t,e)))}var bn={},Tr=class{constructor(r,t){this.destination=r;this.predicate=t;this.lastValue=bn}next(r){let t;try{t=this.lastValue===bn||!this.predicate(this.lastValue,r),this.lastValue=r}catch(n){throw this.error(n),n}t&&this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function oe(e){return r=>new f(t=>r.subscribe(new yr(t,e)))}var yr=class{constructor(r,t){this.destination=r;this.mapper=t}next(r){let t;try{t=this.mapper(r)}catch(n){throw this.error(n),n}this.destination.next(t)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function gr(e){return oe(()=>e)}function Ir(){return e=>new f(r=>{let t=!1,n=!1,i=e.subscribe(o=>{t||(t=!0,r.next(o)),n&&i.unsubscribe()},o=>{var u;t=!0,(u=r.error)==null||u.call(r,o),n&&i.unsubscribe()});return n=!0,t&&i.unsubscribe(),i})}function Or(){return e=>new f(r=>e.subscribe(new xr(r)))}var xr=class{constructor(r){this.destination=r;this.hasLast=!1}next(r){let t=this.last;if(this.last=r,!this.hasLast){this.hasLast=!0;return}this.destination.next([t,r])}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function Er(e){return r=>new f(t=>r.subscribe(new wr(t,e)))}var wr=class{constructor(r,t){this.destination=r;this.effect=t}next(r){try{this.effect(r)}catch(t){throw this.error(t),t}this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};var vn=(s=>(s.NETWORK="network",s.VIDEO_PIPELINE="video_pipeline",s.EXTERNAL_API="external_api",s.PARSER="parser",s.DOM="dom",s.WTF="wtf",s.FATAL="fatal",s))(vn||{});var Ae=class{constructor(){Object.defineProperty(this,"listeners",{value:{},writable:!0,configurable:!0})}addEventListener(r,t,n){r in this.listeners||(this.listeners[r]=[]),this.listeners[r].push({callback:t,options:n})}removeEventListener(r,t){if(!(r in this.listeners))return;let n=this.listeners[r];for(let i=0,o=n.length;i<o;i++)if(n[i].callback===t){n.splice(i,1);return}}dispatchEvent(r){if(!(r.type in this.listeners))return;let n=this.listeners[r.type].slice();for(let i=0,o=n.length;i<o;i++){let u=n[i];try{u.callback.call(this,r)}catch(s){Promise.resolve().then(()=>{throw s})}u.options&&u.options.once&&this.removeEventListener(r.type,u.callback)}return!r.defaultPrevented}},Y=class extends Ae{constructor(){super(),this.listeners||Ae.call(this),Object.defineProperty(this,"aborted",{value:!1,writable:!0,configurable:!0}),Object.defineProperty(this,"onabort",{value:null,writable:!0,configurable:!0}),Object.defineProperty(this,"reason",{value:void 0,writable:!0,configurable:!0})}toString(){return"[object AbortSignal]"}dispatchEvent(r){r.type==="abort"&&(this.aborted=!0,typeof this.onabort=="function"&&this.onabort.call(this,r)),super.dispatchEvent(r)}},ae=class{constructor(){Object.defineProperty(this,"signal",{value:new Y,writable:!0,configurable:!0})}abort(r){let t;try{t=new Event("abort")}catch(i){typeof document!="undefined"?document.createEvent?(t=document.createEvent("Event"),t.initEvent("abort",!1,!1)):(t=document.createEventObject(),t.type="abort"):t={type:"abort",bubbles:!1,cancelable:!1}}let n=r;if(n===void 0)if(typeof document=="undefined")n=new Error("This operation was aborted"),n.name="AbortError";else try{n=new DOMException("signal is aborted without reason")}catch(i){n=new Error("This operation was aborted"),n.name="AbortError"}this.signal.reason=n,this.signal.dispatchEvent(t)}toString(){return"[object AbortController]"}};typeof Symbol!="undefined"&&Symbol.toStringTag&&(ae.prototype[Symbol.toStringTag]="AbortController",Y.prototype[Symbol.toStringTag]="AbortSignal");function Ce(e){return e.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL?(console.log("__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL=true is set, will force install polyfill"),!0):typeof e.Request=="function"&&!e.Request.prototype.hasOwnProperty("signal")||!e.AbortController}function Sr(e){typeof e=="function"&&(e={fetch:e});let{fetch:r,Request:t=r.Request,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:i=!1}=e;if(!Ce({fetch:r,Request:t,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:i}))return{fetch:r,Request:o};let o=t;(o&&!o.prototype.hasOwnProperty("signal")||i)&&(o=function(l,b){let c;b&&b.signal&&(c=b.signal,delete b.signal);let v=new t(l,b);return c&&Object.defineProperty(v,"signal",{writable:!1,enumerable:!1,configurable:!0,value:c}),v},o.prototype=t.prototype);let u=r;return{fetch:(p,l)=>{let b=o&&o.prototype.isPrototypeOf(p)?p.signal:l?l.signal:void 0;if(b){let c;try{c=new DOMException("Aborted","AbortError")}catch(d){c=new Error("Aborted"),c.name="AbortError"}if(b.aborted)return Promise.reject(c);let v=new Promise((d,T)=>{b.addEventListener("abort",()=>T(c),{once:!0})});return l&&l.signal&&delete l.signal,Promise.race([v,u(p,l)])}return u(p,l)},Request:o}}var se=Ce({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}),dn=se?Sr({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}):void 0,mn=se?dn.fetch:window.fetch,Td=se?dn.Request:window.Request,hd=se?ae:window.AbortController,yd=se?Y:window.AbortSignal;var is=ds(ns(),1),os=(c=>(c.Armenian="58",c.Azerbaijani="57",c.Belarusian="114",c.English="3",c.Kazakh="97",c.Portuguese="73",c.Russian="0",c.Spanish="4",c.Ukrainian="1",c.Uzbek="65",c.Vietnamese="75",c))(os||{}),yf="vk.com",gf=async(e,r,t)=>{let n=new URL(`https://${yf}/js/lang-pack.js`);n.searchParams.set("format","json"),n.searchParams.set("name",r),e!==void 0&&n.searchParams.set("lang",e);let o=await(await mn(n.toString())).json();return If(o,t)},If=(e,r)=>(0,is.default)(Object.entries(e.keys).map(([t,n])=>[t.substring(`${r}_`.length),xf(n)])),xf=e=>Array.isArray(e)?e[0]:e;var as=(t=>(t.RU="ru",t.EN="en",t))(as||{});
6
+ "use strict";var ls=Object.create;var ge=Object.defineProperty;var ps=Object.getOwnPropertyDescriptor;var fs=Object.getOwnPropertyNames;var bs=Object.getPrototypeOf,vs=Object.prototype.hasOwnProperty;var a=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),Ct=(e,r)=>{for(var t in r)ge(e,t,{get:r[t],enumerable:!0})},Lt=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of fs(r))!vs.call(e,i)&&i!==t&&ge(e,i,{get:()=>r[i],enumerable:!(n=ps(r,i))||n.enumerable});return e};var ds=(e,r,t)=>(t=e!=null?ls(bs(e)):{},Lt(r||!e||!e.__esModule?ge(t,"default",{value:e,enumerable:!0}):t,e)),ms=e=>Lt(ge({},"__esModule",{value:!0}),e);var A=a((Id,Tn)=>{"use strict";Tn.exports=function(e){try{return!!e()}catch(r){return!0}}});var ue=a((xd,hn)=>{"use strict";var Ps=A();hn.exports=!Ps(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var M=a((Od,In)=>{"use strict";var yn=ue(),gn=Function.prototype,qr=gn.call,_s=yn&&gn.bind.bind(qr,qr);In.exports=yn?_s:function(e){return function(){return qr.apply(e,arguments)}}});var Le=a((wd,On)=>{"use strict";var xn=M(),As=xn({}.toString),Cs=xn("".slice);On.exports=function(e){return Cs(As(e),8,-1)}});var En=a((Ed,wn)=>{"use strict";var Ls=M(),Ms=A(),js=Le(),Rr=Object,Ns=Ls("".split);wn.exports=Ms(function(){return!Rr("z").propertyIsEnumerable(0)})?function(e){return js(e)==="String"?Ns(e,""):Rr(e)}:Rr});var Me=a((Sd,Sn)=>{"use strict";Sn.exports=function(e){return e==null}});var je=a((qd,qn)=>{"use strict";var ks=Me(),Vs=TypeError;qn.exports=function(e){if(ks(e))throw new Vs("Can't call method on "+e);return e}});var H=a((Rd,Rn)=>{"use strict";var Ds=En(),Fs=je();Rn.exports=function(e){return Ds(Fs(e))}});var _n=a((Pd,Pn)=>{"use strict";Pn.exports=function(){}});var W=a((_d,An)=>{"use strict";An.exports={}});var w=a((Pr,Cn)=>{"use strict";var ce=function(e){return e&&e.Math===Math&&e};Cn.exports=ce(typeof globalThis=="object"&&globalThis)||ce(typeof window=="object"&&window)||ce(typeof self=="object"&&self)||ce(typeof global=="object"&&global)||ce(typeof Pr=="object"&&Pr)||function(){return this}()||Function("return this")()});var E=a((Ad,Ln)=>{"use strict";var _r=typeof document=="object"&&document.all;Ln.exports=typeof _r=="undefined"&&_r!==void 0?function(e){return typeof e=="function"||e===_r}:function(e){return typeof e=="function"}});var Nn=a((Cd,jn)=>{"use strict";var Us=w(),Gs=E(),Mn=Us.WeakMap;jn.exports=Gs(Mn)&&/native code/.test(String(Mn))});var j=a((Ld,kn)=>{"use strict";var Bs=E();kn.exports=function(e){return typeof e=="object"?e!==null:Bs(e)}});var C=a((Md,Vn)=>{"use strict";var Qs=A();Vn.exports=!Qs(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var Cr=a((jd,Fn)=>{"use strict";var Ws=w(),Dn=j(),Ar=Ws.document,$s=Dn(Ar)&&Dn(Ar.createElement);Fn.exports=function(e){return $s?Ar.createElement(e):{}}});var Lr=a((Nd,Un)=>{"use strict";var zs=C(),Ks=A(),Ys=Cr();Un.exports=!zs&&!Ks(function(){return Object.defineProperty(Ys("div"),"a",{get:function(){return 7}}).a!==7})});var Mr=a((kd,Gn)=>{"use strict";var Hs=C(),Xs=A();Gn.exports=Hs&&Xs(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var $=a((Vd,Bn)=>{"use strict";var Js=j(),Zs=String,eu=TypeError;Bn.exports=function(e){if(Js(e))return e;throw new eu(Zs(e)+" is not an object")}});var F=a((Dd,Qn)=>{"use strict";var ru=ue(),Ne=Function.prototype.call;Qn.exports=ru?Ne.bind(Ne):function(){return Ne.apply(Ne,arguments)}});var ke=a((Fd,Wn)=>{"use strict";Wn.exports={}});var kr=a((Ud,zn)=>{"use strict";var jr=ke(),Nr=w(),tu=E(),$n=function(e){return tu(e)?e:void 0};zn.exports=function(e,r){return arguments.length<2?$n(jr[e])||$n(Nr[e]):jr[e]&&jr[e][r]||Nr[e]&&Nr[e][r]}});var Vr=a((Gd,Kn)=>{"use strict";var nu=M();Kn.exports=nu({}.isPrototypeOf)});var Jn=a((Bd,Xn)=>{"use strict";var iu=w(),Yn=iu.navigator,Hn=Yn&&Yn.userAgent;Xn.exports=Hn?String(Hn):""});var oi=a((Qd,ii)=>{"use strict";var ni=w(),Dr=Jn(),Zn=ni.process,ei=ni.Deno,ri=Zn&&Zn.versions||ei&&ei.version,ti=ri&&ri.v8,R,Ve;ti&&(R=ti.split("."),Ve=R[0]>0&&R[0]<4?1:+(R[0]+R[1]));!Ve&&Dr&&(R=Dr.match(/Edge\/(\d+)/),(!R||R[1]>=74)&&(R=Dr.match(/Chrome\/(\d+)/),R&&(Ve=+R[1])));ii.exports=Ve});var Fr=a((Wd,si)=>{"use strict";var ai=oi(),ou=A(),au=w(),su=au.String;si.exports=!!Object.getOwnPropertySymbols&&!ou(function(){var e=Symbol("symbol detection");return!su(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&ai&&ai<41})});var Ur=a(($d,ui)=>{"use strict";var uu=Fr();ui.exports=uu&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var Gr=a((zd,ci)=>{"use strict";var cu=kr(),lu=E(),pu=Vr(),fu=Ur(),bu=Object;ci.exports=fu?function(e){return typeof e=="symbol"}:function(e){var r=cu("Symbol");return lu(r)&&pu(r.prototype,bu(e))}});var De=a((Kd,li)=>{"use strict";var vu=String;li.exports=function(e){try{return vu(e)}catch(r){return"Object"}}});var le=a((Yd,pi)=>{"use strict";var du=E(),mu=De(),Tu=TypeError;pi.exports=function(e){if(du(e))return e;throw new Tu(mu(e)+" is not a function")}});var Fe=a((Hd,fi)=>{"use strict";var hu=le(),yu=Me();fi.exports=function(e,r){var t=e[r];return yu(t)?void 0:hu(t)}});var vi=a((Xd,bi)=>{"use strict";var Br=F(),Qr=E(),Wr=j(),gu=TypeError;bi.exports=function(e,r){var t,n;if(r==="string"&&Qr(t=e.toString)&&!Wr(n=Br(t,e))||Qr(t=e.valueOf)&&!Wr(n=Br(t,e))||r!=="string"&&Qr(t=e.toString)&&!Wr(n=Br(t,e)))return n;throw new gu("Can't convert object to primitive value")}});var pe=a((Jd,di)=>{"use strict";di.exports=!0});var hi=a((Zd,Ti)=>{"use strict";var mi=w(),Iu=Object.defineProperty;Ti.exports=function(e,r){try{Iu(mi,e,{value:r,configurable:!0,writable:!0})}catch(t){mi[e]=r}return r}});var Ue=a((em,Ii)=>{"use strict";var xu=pe(),Ou=w(),wu=hi(),yi="__core-js_shared__",gi=Ii.exports=Ou[yi]||wu(yi,{});(gi.versions||(gi.versions=[])).push({version:"3.38.0",mode:xu?"pure":"global",copyright:"\xA9 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.38.0/LICENSE",source:"https://github.com/zloirock/core-js"})});var $r=a((rm,Oi)=>{"use strict";var xi=Ue();Oi.exports=function(e,r){return xi[e]||(xi[e]=r||{})}});var zr=a((tm,wi)=>{"use strict";var Eu=je(),Su=Object;wi.exports=function(e){return Su(Eu(e))}});var N=a((nm,Ei)=>{"use strict";var qu=M(),Ru=zr(),Pu=qu({}.hasOwnProperty);Ei.exports=Object.hasOwn||function(r,t){return Pu(Ru(r),t)}});var Kr=a((im,Si)=>{"use strict";var _u=M(),Au=0,Cu=Math.random(),Lu=_u(1 .toString);Si.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Lu(++Au+Cu,36)}});var k=a((om,Ri)=>{"use strict";var Mu=w(),ju=$r(),qi=N(),Nu=Kr(),ku=Fr(),Vu=Ur(),X=Mu.Symbol,Yr=ju("wks"),Du=Vu?X.for||X:X&&X.withoutSetter||Nu;Ri.exports=function(e){return qi(Yr,e)||(Yr[e]=ku&&qi(X,e)?X[e]:Du("Symbol."+e)),Yr[e]}});var Ci=a((am,Ai)=>{"use strict";var Fu=F(),Pi=j(),_i=Gr(),Uu=Fe(),Gu=vi(),Bu=k(),Qu=TypeError,Wu=Bu("toPrimitive");Ai.exports=function(e,r){if(!Pi(e)||_i(e))return e;var t=Uu(e,Wu),n;if(t){if(r===void 0&&(r="default"),n=Fu(t,e,r),!Pi(n)||_i(n))return n;throw new Qu("Can't convert object to primitive value")}return r===void 0&&(r="number"),Gu(e,r)}});var Hr=a((sm,Li)=>{"use strict";var $u=Ci(),zu=Gr();Li.exports=function(e){var r=$u(e,"string");return zu(r)?r:r+""}});var J=a(ji=>{"use strict";var Ku=C(),Yu=Lr(),Hu=Mr(),Ge=$(),Mi=Hr(),Xu=TypeError,Xr=Object.defineProperty,Ju=Object.getOwnPropertyDescriptor,Jr="enumerable",Zr="configurable",et="writable";ji.f=Ku?Hu?function(r,t,n){if(Ge(r),t=Mi(t),Ge(n),typeof r=="function"&&t==="prototype"&&"value"in n&&et in n&&!n[et]){var i=Ju(r,t);i&&i[et]&&(r[t]=n.value,n={configurable:Zr in n?n[Zr]:i[Zr],enumerable:Jr in n?n[Jr]:i[Jr],writable:!1})}return Xr(r,t,n)}:Xr:function(r,t,n){if(Ge(r),t=Mi(t),Ge(n),Yu)try{return Xr(r,t,n)}catch(i){}if("get"in n||"set"in n)throw new Xu("Accessors not supported");return"value"in n&&(r[t]=n.value),r}});var fe=a((cm,Ni)=>{"use strict";Ni.exports=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}}});var Z=a((lm,ki)=>{"use strict";var Zu=C(),ec=J(),rc=fe();ki.exports=Zu?function(e,r,t){return ec.f(e,r,rc(1,t))}:function(e,r,t){return e[r]=t,e}});var Be=a((pm,Di)=>{"use strict";var tc=$r(),nc=Kr(),Vi=tc("keys");Di.exports=function(e){return Vi[e]||(Vi[e]=nc(e))}});var Qe=a((fm,Fi)=>{"use strict";Fi.exports={}});var Qi=a((bm,Bi)=>{"use strict";var ic=Nn(),Gi=w(),oc=j(),ac=Z(),rt=N(),tt=Ue(),sc=Be(),uc=Qe(),Ui="Object already initialized",nt=Gi.TypeError,cc=Gi.WeakMap,We,be,$e,lc=function(e){return $e(e)?be(e):We(e,{})},pc=function(e){return function(r){var t;if(!oc(r)||(t=be(r)).type!==e)throw new nt("Incompatible receiver, "+e+" required");return t}};ic||tt.state?(P=tt.state||(tt.state=new cc),P.get=P.get,P.has=P.has,P.set=P.set,We=function(e,r){if(P.has(e))throw new nt(Ui);return r.facade=e,P.set(e,r),r},be=function(e){return P.get(e)||{}},$e=function(e){return P.has(e)}):(z=sc("state"),uc[z]=!0,We=function(e,r){if(rt(e,z))throw new nt(Ui);return r.facade=e,ac(e,z,r),r},be=function(e){return rt(e,z)?e[z]:{}},$e=function(e){return rt(e,z)});var P,z;Bi.exports={set:We,get:be,has:$e,enforce:lc,getterFor:pc}});var Yi=a((vm,Ki)=>{"use strict";var fc=ue(),zi=Function.prototype,Wi=zi.apply,$i=zi.call;Ki.exports=typeof Reflect=="object"&&Reflect.apply||(fc?$i.bind(Wi):function(){return $i.apply(Wi,arguments)})});var it=a((dm,Hi)=>{"use strict";var bc=Le(),vc=M();Hi.exports=function(e){if(bc(e)==="Function")return vc(e)}});var eo=a(Zi=>{"use strict";var Xi={}.propertyIsEnumerable,Ji=Object.getOwnPropertyDescriptor,dc=Ji&&!Xi.call({1:2},1);Zi.f=dc?function(r){var t=Ji(this,r);return!!t&&t.enumerable}:Xi});var no=a(to=>{"use strict";var mc=C(),Tc=F(),hc=eo(),yc=fe(),gc=H(),Ic=Hr(),xc=N(),Oc=Lr(),ro=Object.getOwnPropertyDescriptor;to.f=mc?ro:function(r,t){if(r=gc(r),t=Ic(t),Oc)try{return ro(r,t)}catch(n){}if(xc(r,t))return yc(!Tc(hc.f,r,t),r[t])}});var oo=a((hm,io)=>{"use strict";var wc=A(),Ec=E(),Sc=/#|\.prototype\./,ve=function(e,r){var t=Rc[qc(e)];return t===_c?!0:t===Pc?!1:Ec(r)?wc(r):!!r},qc=ve.normalize=function(e){return String(e).replace(Sc,".").toLowerCase()},Rc=ve.data={},Pc=ve.NATIVE="N",_c=ve.POLYFILL="P";io.exports=ve});var ot=a((ym,so)=>{"use strict";var ao=it(),Ac=le(),Cc=ue(),Lc=ao(ao.bind);so.exports=function(e,r){return Ac(e),r===void 0?e:Cc?Lc(e,r):function(){return e.apply(r,arguments)}}});var at=a((gm,co)=>{"use strict";var de=w(),Mc=Yi(),jc=it(),Nc=E(),kc=no().f,Vc=oo(),ee=ke(),Dc=ot(),re=Z(),uo=N();Ue();var Fc=function(e){var r=function(t,n,i){if(this instanceof r){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,i)}return Mc(e,this,arguments)};return r.prototype=e.prototype,r};co.exports=function(e,r){var t=e.target,n=e.global,i=e.stat,o=e.proto,u=n?de:i?de[t]:de[t]&&de[t].prototype,s=n?ee:ee[t]||re(ee,t,{})[t],p=s.prototype,l,b,c,v,d,T,h,I,y;for(v in r)l=Vc(n?v:t+(i?".":"#")+v,e.forced),b=!l&&u&&uo(u,v),T=s[v],b&&(e.dontCallGetSet?(y=kc(u,v),h=y&&y.value):h=u[v]),d=b&&h?h:r[v],!(!l&&!o&&typeof T==typeof d)&&(e.bind&&b?I=Dc(d,de):e.wrap&&b?I=Fc(d):o&&Nc(d)?I=jc(d):I=d,(e.sham||d&&d.sham||T&&T.sham)&&re(I,"sham",!0),re(s,v,I),o&&(c=t+"Prototype",uo(ee,c)||re(ee,c,{}),re(ee[c],v,d),e.real&&p&&(l||!p[v])&&re(p,v,d)))}});var fo=a((Im,po)=>{"use strict";var st=C(),Uc=N(),lo=Function.prototype,Gc=st&&Object.getOwnPropertyDescriptor,ut=Uc(lo,"name"),Bc=ut&&function(){}.name==="something",Qc=ut&&(!st||st&&Gc(lo,"name").configurable);po.exports={EXISTS:ut,PROPER:Bc,CONFIGURABLE:Qc}});var vo=a((xm,bo)=>{"use strict";var Wc=Math.ceil,$c=Math.floor;bo.exports=Math.trunc||function(r){var t=+r;return(t>0?$c:Wc)(t)}});var ct=a((Om,mo)=>{"use strict";var zc=vo();mo.exports=function(e){var r=+e;return r!==r||r===0?0:zc(r)}});var ho=a((wm,To)=>{"use strict";var Kc=ct(),Yc=Math.max,Hc=Math.min;To.exports=function(e,r){var t=Kc(e);return t<0?Yc(t+r,0):Hc(t,r)}});var go=a((Em,yo)=>{"use strict";var Xc=ct(),Jc=Math.min;yo.exports=function(e){var r=Xc(e);return r>0?Jc(r,9007199254740991):0}});var lt=a((Sm,Io)=>{"use strict";var Zc=go();Io.exports=function(e){return Zc(e.length)}});var wo=a((qm,Oo)=>{"use strict";var el=H(),rl=ho(),tl=lt(),xo=function(e){return function(r,t,n){var i=el(r),o=tl(i);if(o===0)return!e&&-1;var u=rl(n,o),s;if(e&&t!==t){for(;o>u;)if(s=i[u++],s!==s)return!0}else for(;o>u;u++)if((e||u in i)&&i[u]===t)return e||u||0;return!e&&-1}};Oo.exports={includes:xo(!0),indexOf:xo(!1)}});var qo=a((Rm,So)=>{"use strict";var nl=M(),pt=N(),il=H(),ol=wo().indexOf,al=Qe(),Eo=nl([].push);So.exports=function(e,r){var t=il(e),n=0,i=[],o;for(o in t)!pt(al,o)&&pt(t,o)&&Eo(i,o);for(;r.length>n;)pt(t,o=r[n++])&&(~ol(i,o)||Eo(i,o));return i}});var ft=a((Pm,Ro)=>{"use strict";Ro.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var _o=a((_m,Po)=>{"use strict";var sl=qo(),ul=ft();Po.exports=Object.keys||function(r){return sl(r,ul)}});var Co=a(Ao=>{"use strict";var cl=C(),ll=Mr(),pl=J(),fl=$(),bl=H(),vl=_o();Ao.f=cl&&!ll?Object.defineProperties:function(r,t){fl(r);for(var n=bl(t),i=vl(t),o=i.length,u=0,s;o>u;)pl.f(r,s=i[u++],n[s]);return r}});var Mo=a((Cm,Lo)=>{"use strict";var dl=kr();Lo.exports=dl("document","documentElement")});var mt=a((Lm,Uo)=>{"use strict";var ml=$(),Tl=Co(),jo=ft(),hl=Qe(),yl=Mo(),gl=Cr(),Il=Be(),No=">",ko="<",vt="prototype",dt="script",Do=Il("IE_PROTO"),bt=function(){},Fo=function(e){return ko+dt+No+e+ko+"/"+dt+No},Vo=function(e){e.write(Fo("")),e.close();var r=e.parentWindow.Object;return e=null,r},xl=function(){var e=gl("iframe"),r="java"+dt+":",t;return e.style.display="none",yl.appendChild(e),e.src=String(r),t=e.contentWindow.document,t.open(),t.write(Fo("document.F=Object")),t.close(),t.F},ze,Ke=function(){try{ze=new ActiveXObject("htmlfile")}catch(r){}Ke=typeof document!="undefined"?document.domain&&ze?Vo(ze):xl():Vo(ze);for(var e=jo.length;e--;)delete Ke[vt][jo[e]];return Ke()};hl[Do]=!0;Uo.exports=Object.create||function(r,t){var n;return r!==null?(bt[vt]=ml(r),n=new bt,bt[vt]=null,n[Do]=r):n=Ke(),t===void 0?n:Tl.f(n,t)}});var Bo=a((Mm,Go)=>{"use strict";var Ol=A();Go.exports=!Ol(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var ht=a((jm,Wo)=>{"use strict";var wl=N(),El=E(),Sl=zr(),ql=Be(),Rl=Bo(),Qo=ql("IE_PROTO"),Tt=Object,Pl=Tt.prototype;Wo.exports=Rl?Tt.getPrototypeOf:function(e){var r=Sl(e);if(wl(r,Qo))return r[Qo];var t=r.constructor;return El(t)&&r instanceof t?t.prototype:r instanceof Tt?Pl:null}});var yt=a((Nm,$o)=>{"use strict";var _l=Z();$o.exports=function(e,r,t,n){return n&&n.enumerable?e[r]=t:_l(e,r,t),e}});var Ot=a((km,Yo)=>{"use strict";var Al=A(),Cl=E(),Ll=j(),Ml=mt(),zo=ht(),jl=yt(),Nl=k(),kl=pe(),xt=Nl("iterator"),Ko=!1,V,gt,It;[].keys&&(It=[].keys(),"next"in It?(gt=zo(zo(It)),gt!==Object.prototype&&(V=gt)):Ko=!0);var Vl=!Ll(V)||Al(function(){var e={};return V[xt].call(e)!==e});Vl?V={}:kl&&(V=Ml(V));Cl(V[xt])||jl(V,xt,function(){return this});Yo.exports={IteratorPrototype:V,BUGGY_SAFARI_ITERATORS:Ko}});var Ye=a((Vm,Xo)=>{"use strict";var Dl=k(),Fl=Dl("toStringTag"),Ho={};Ho[Fl]="z";Xo.exports=String(Ho)==="[object z]"});var wt=a((Dm,Jo)=>{"use strict";var Ul=Ye(),Gl=E(),He=Le(),Bl=k(),Ql=Bl("toStringTag"),Wl=Object,$l=He(function(){return arguments}())==="Arguments",zl=function(e,r){try{return e[r]}catch(t){}};Jo.exports=Ul?He:function(e){var r,t,n;return e===void 0?"Undefined":e===null?"Null":typeof(t=zl(r=Wl(e),Ql))=="string"?t:$l?He(r):(n=He(r))==="Object"&&Gl(r.callee)?"Arguments":n}});var ea=a((Fm,Zo)=>{"use strict";var Kl=Ye(),Yl=wt();Zo.exports=Kl?{}.toString:function(){return"[object "+Yl(this)+"]"}});var Xe=a((Um,ta)=>{"use strict";var Hl=Ye(),Xl=J().f,Jl=Z(),Zl=N(),ep=ea(),rp=k(),ra=rp("toStringTag");ta.exports=function(e,r,t,n){var i=t?e:e&&e.prototype;i&&(Zl(i,ra)||Xl(i,ra,{configurable:!0,value:r}),n&&!Hl&&Jl(i,"toString",ep))}});var ia=a((Gm,na)=>{"use strict";var tp=Ot().IteratorPrototype,np=mt(),ip=fe(),op=Xe(),ap=W(),sp=function(){return this};na.exports=function(e,r,t,n){var i=r+" Iterator";return e.prototype=np(tp,{next:ip(+!n,t)}),op(e,i,!1,!0),ap[i]=sp,e}});var aa=a((Bm,oa)=>{"use strict";var up=M(),cp=le();oa.exports=function(e,r,t){try{return up(cp(Object.getOwnPropertyDescriptor(e,r)[t]))}catch(n){}}});var ua=a((Qm,sa)=>{"use strict";var lp=j();sa.exports=function(e){return lp(e)||e===null}});var la=a((Wm,ca)=>{"use strict";var pp=ua(),fp=String,bp=TypeError;ca.exports=function(e){if(pp(e))return e;throw new bp("Can't set "+fp(e)+" as a prototype")}});var fa=a(($m,pa)=>{"use strict";var vp=aa(),dp=j(),mp=je(),Tp=la();pa.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,r={},t;try{t=vp(Object.prototype,"__proto__","set"),t(r,[]),e=r instanceof Array}catch(n){}return function(i,o){return mp(i),Tp(o),dp(i)&&(e?t(i,o):i.__proto__=o),i}}():void 0)});var Oa=a((zm,xa)=>{"use strict";var hp=at(),yp=F(),Je=pe(),ga=fo(),gp=E(),Ip=ia(),ba=ht(),va=fa(),xp=Xe(),Op=Z(),Et=yt(),wp=k(),da=W(),Ia=Ot(),Ep=ga.PROPER,Sp=ga.CONFIGURABLE,ma=Ia.IteratorPrototype,Ze=Ia.BUGGY_SAFARI_ITERATORS,me=wp("iterator"),Ta="keys",Te="values",ha="entries",ya=function(){return this};xa.exports=function(e,r,t,n,i,o,u){Ip(t,r,n);var s=function(y){if(y===i&&v)return v;if(!Ze&&y&&y in b)return b[y];switch(y){case Ta:return function(){return new t(this,y)};case Te:return function(){return new t(this,y)};case ha:return function(){return new t(this,y)}}return function(){return new t(this)}},p=r+" Iterator",l=!1,b=e.prototype,c=b[me]||b["@@iterator"]||i&&b[i],v=!Ze&&c||s(i),d=r==="Array"&&b.entries||c,T,h,I;if(d&&(T=ba(d.call(new e)),T!==Object.prototype&&T.next&&(!Je&&ba(T)!==ma&&(va?va(T,ma):gp(T[me])||Et(T,me,ya)),xp(T,p,!0,!0),Je&&(da[p]=ya))),Ep&&i===Te&&c&&c.name!==Te&&(!Je&&Sp?Op(b,"name",Te):(l=!0,v=function(){return yp(c,this)})),i)if(h={values:s(Te),keys:o?v:s(Ta),entries:s(ha)},u)for(I in h)(Ze||l||!(I in b))&&Et(b,I,h[I]);else hp({target:r,proto:!0,forced:Ze||l},h);return(!Je||u)&&b[me]!==v&&Et(b,me,v,{name:i}),da[r]=v,h}});var Ea=a((Km,wa)=>{"use strict";wa.exports=function(e,r){return{value:e,done:r}}});var qt=a((Ym,_a)=>{"use strict";var qp=H(),St=_n(),Sa=W(),Ra=Qi(),Rp=J().f,Pp=Oa(),er=Ea(),_p=pe(),Ap=C(),Pa="Array Iterator",Cp=Ra.set,Lp=Ra.getterFor(Pa);_a.exports=Pp(Array,"Array",function(e,r){Cp(this,{type:Pa,target:qp(e),index:0,kind:r})},function(){var e=Lp(this),r=e.target,t=e.index++;if(!r||t>=r.length)return e.target=void 0,er(void 0,!0);switch(e.kind){case"keys":return er(t,!1);case"values":return er(r[t],!1)}return er([t,r[t]],!1)},"values");var qa=Sa.Arguments=Sa.Array;St("keys");St("values");St("entries");if(!_p&&Ap&&qa.name!=="values")try{Rp(qa,"name",{value:"values"})}catch(e){}});var Ca=a((Hm,Aa)=>{"use strict";var Mp=k(),jp=W(),Np=Mp("iterator"),kp=Array.prototype;Aa.exports=function(e){return e!==void 0&&(jp.Array===e||kp[Np]===e)}});var Rt=a((Xm,Ma)=>{"use strict";var Vp=wt(),La=Fe(),Dp=Me(),Fp=W(),Up=k(),Gp=Up("iterator");Ma.exports=function(e){if(!Dp(e))return La(e,Gp)||La(e,"@@iterator")||Fp[Vp(e)]}});var Na=a((Jm,ja)=>{"use strict";var Bp=F(),Qp=le(),Wp=$(),$p=De(),zp=Rt(),Kp=TypeError;ja.exports=function(e,r){var t=arguments.length<2?zp(e):r;if(Qp(t))return Wp(Bp(t,e));throw new Kp($p(e)+" is not iterable")}});var Da=a((Zm,Va)=>{"use strict";var Yp=F(),ka=$(),Hp=Fe();Va.exports=function(e,r,t){var n,i;ka(e);try{if(n=Hp(e,"return"),!n){if(r==="throw")throw t;return t}n=Yp(n,e)}catch(o){i=!0,n=o}if(r==="throw")throw t;if(i)throw n;return ka(n),t}});var Qa=a((eT,Ba)=>{"use strict";var Xp=ot(),Jp=F(),Zp=$(),ef=De(),rf=Ca(),tf=lt(),Fa=Vr(),nf=Na(),of=Rt(),Ua=Da(),af=TypeError,rr=function(e,r){this.stopped=e,this.result=r},Ga=rr.prototype;Ba.exports=function(e,r,t){var n=t&&t.that,i=!!(t&&t.AS_ENTRIES),o=!!(t&&t.IS_RECORD),u=!!(t&&t.IS_ITERATOR),s=!!(t&&t.INTERRUPTED),p=Xp(r,n),l,b,c,v,d,T,h,I=function(g){return l&&Ua(l,"normal",g),new rr(!0,g)},y=function(g){return i?(Zp(g),s?p(g[0],g[1],I):p(g[0],g[1])):s?p(g,I):p(g)};if(o)l=e.iterator;else if(u)l=e;else{if(b=of(e),!b)throw new af(ef(e)+" is not iterable");if(rf(b)){for(c=0,v=tf(e);v>c;c++)if(d=y(e[c]),d&&Fa(Ga,d))return d;return new rr(!1)}l=nf(e,b)}for(T=o?e.next:l.next;!(h=Jp(T,l)).done;){try{d=y(h.value)}catch(g){Ua(l,"throw",g)}if(typeof d=="object"&&d&&Fa(Ga,d))return d}return new rr(!1)}});var $a=a((rT,Wa)=>{"use strict";var sf=C(),uf=J(),cf=fe();Wa.exports=function(e,r,t){sf?uf.f(e,r,cf(0,t)):e[r]=t}});var za=a(()=>{"use strict";var lf=at(),pf=Qa(),ff=$a();lf({target:"Object",stat:!0},{fromEntries:function(r){var t={};return pf(r,function(n,i){ff(t,n,i)},{AS_ENTRIES:!0}),t}})});var Ya=a((iT,Ka)=>{"use strict";qt();za();var bf=ke();Ka.exports=bf.Object.fromEntries});var Xa=a((oT,Ha)=>{"use strict";Ha.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}});var Za=a(()=>{"use strict";qt();var vf=Xa(),df=w(),mf=Xe(),Ja=W();for(tr in vf)mf(df[tr],tr),Ja[tr]=Ja.Array;var tr});var rs=a((uT,es)=>{"use strict";var Tf=Ya();Za();es.exports=Tf});var ns=a((cT,ts)=>{"use strict";var hf=rs();ts.exports=hf});var Of={};Ct(Of,{ErrorCategory:()=>vn,InterfaceLanguage:()=>as,Logger:()=>Ie,Observable:()=>f,Subject:()=>L,Subscription:()=>O,Tracer:()=>xe,VERSION:()=>Mt,VKNumericLanguage:()=>os,ValueSubject:()=>ie,VideoQuality:()=>Se,abortable:()=>Bt,addScript:()=>Ft,areQualitiesExact:()=>rn,assertEmptyArray:()=>Dt,assertNever:()=>_,assertNonNullable:()=>Nt,assertNotEmptyArray:()=>Vt,assertNullable:()=>kt,assertQualityIsExact:()=>tn,buffer:()=>lr,checkNever:()=>jt,clearVideoElement:()=>sn,clientChecker:()=>Qt,cloneDeep:()=>on,cloneDeepWith:()=>te,combine:()=>sr,createURL:()=>Ss,debounce:()=>fr,debounceFn:()=>Pe,detectEmbed:()=>$t,fillWithDefault:()=>nn,filter:()=>mr,filterChanged:()=>hr,flattenObject:()=>ne,fromEvent:()=>fn,getExponentialDelay:()=>Wt,getHighestQuality:()=>Ht,getTraceSubscriptionMethod:()=>un,interval:()=>ln,isHigher:()=>zt,isHigherOrEqual:()=>Kt,isInvariantQuality:()=>Re,isLower:()=>qe,isLowerOrEqual:()=>Yt,isMobile:()=>or,isNonNullable:()=>B,isNullable:()=>we,isValidURL:()=>Es,loadVKLangPack:()=>gf,map:()=>oe,mapTo:()=>gr,merge:()=>ur,noop:()=>D,now:()=>Gt,observableFrom:()=>pn,observeElementSize:()=>an,once:()=>Ir,pairwise:()=>Or,safeStorage:()=>Ee,tap:()=>Er,throttle:()=>vr,throttleFn:()=>_e,timeCodeToString:()=>Os,timeout:()=>cn,videoHeightToQuality:()=>Jt,videoQualityToHeight:()=>en,videoSizeToQuality:()=>Zt});module.exports=ms(Of);var Mt="1.0.50-dev.eaae0302.0";var O=class{constructor(){this.subscriptions=[]}unsubscribe(){let r=this.subscriptions;this.subscriptions=[],r.forEach(t=>typeof t=="function"?t():t.unsubscribe())}add(r){return this.subscriptions.push(r),this}};var _=e=>{throw new Error(`${e} is value of unexpected type`)},jt=e=>{};var D=()=>{};var f=class{constructor(r){r&&(this._subscribe=r)}subscribe(r,t){var u;let n;t?typeof t=="function"?n={next:t,error:D}:n={next:s=>t.next(s),error:s=>{var p;return(p=t.error)==null?void 0:p.call(t,s)}}:n={next:D,error:D};let i=typeof r=="function"?{next:s=>{try{r(s)}catch(p){n.next(p)}},error:s=>n.next(s)}:{next:s=>r.next(s),error:s=>r.error?r.error(s):n.next(s)},o;try{o=this._subscribe(i)}catch(s){(u=i.error)==null||u.call(i,s)}return new O().add(()=>{switch(i.next=D,i.error=D,typeof o){case"function":o();return;case"object":o.unsubscribe();return;case"undefined":return;default:return _(o)}})}pipe(...r){return r.reduce((t,n)=>n(t),this)}_subscribe(r){}};var L=class extends f{constructor(){super();this.keyCounter=0;this.subscribers=new Map}next(t){this.subscribers.forEach(n=>n.next(t))}error(t){this.subscribers.forEach(n=>{var i;return(i=n.error)==null?void 0:i.call(n,t)})}_subscribe(t){let n=this.keyCounter++;return this.subscribers.set(n,t),new O().add(()=>this.subscribers.delete(n))}};var Ie=class{constructor(){this.log$=new L;this.logs=[];this.log=r=>{let t={...r,timestamp:Date.now()};this.logs.push(t),this.log$.next(t)};this.getAllLogs=()=>this.logs}createCustomLog(r){return(...t)=>{let n;try{n=r(...t)}catch(i){n={message:"error in `createCustomLog`",component:"Logger"}}this.log(n)}}createComponentLog(r){return this.createCustomLog(t=>({component:r,...t}))}};var Oe=require("@opentelemetry/api");var G=require("@tracer/opentelemetry"),nr=class e{constructor({name:r}){}log(r,t){}error(r,t){}critical(r,t){}createComponentTracer(r){return new e({name:r})}end(){}getFinishedSpans(){}getTraceId(){return this.fakeTraceId}},xe=class e{constructor({name:r,parentContext:t,tracer:n}){this.childTracers=[];let i=!n;if(i){let u=(0,G.initTracerOpenTelemetry)({serviceName:"videoplayer-sdk-web",appToken:"L9SBoka6ZWk4xPjaK7tmfSfYvMhcge7nvGDjpdMmscb",spanLimits:{attributeCountLimit:1/0,eventCountLimit:1/0,attributePerEventCountLimit:1/0}}).getProvider(),s=new G.TracerMemorySpanExporter,p=new G.TracerMemorySpanExporter;this.spanExporter=s,u.addSpanProcessor(new G.TracerAllSpansProcessor({startedSpansExporter:s,endedSpansExporter:p})),this.tracer=u.getTracer("sdk-videoplayer-tracer")}else this.tracer=n;this.span=this.tracer.startSpan(r,{root:i},t),this.context=Oe.trace.setSpan(Oe.context.active(),this.span)}log(r,t){this.span.addEvent(r,{...t,type:"log"})}error(r,t){this.span.addEvent(r,{...t,type:"error"})}critical(r,t){this.span.addEvent(r,{...t,type:"critical"})}static createRootTracer(r=!1){return r?new e({name:"Root"}):new nr({name:"Root"})}createComponentTracer(r){let t=new e({name:r,parentContext:this.context,tracer:this.tracer});return this.childTracers.push(t),t}end(){this.childTracers.forEach(r=>r.end()),this.span.end()}getFinishedSpans(){var r;return(r=this.spanExporter)==null?void 0:r.getJsonData()}getTraceId(){return this.span.spanContext().traceId}};function Nt(e,r='Assertion "value is not nullable" failed'){if(e==null)throw new Error(r)}function kt(e,r='Assertion "value is nullable" failed'){if(e!=null)throw new Error(r)}function B(e){return typeof e!="undefined"&&e!==null}function we(e){return e==null}function Vt(e,r){if(!(e!=null&&e.length))throw new Error(r)}function Dt(e,r){if(e!=null&&e.length)throw new Error(r)}var Ft=(e,r,t)=>new Promise((n,i)=>{r.addEventListener("abort",()=>{s(),l.remove()});let o=()=>{s(),i()},u=()=>{s(),n()},s=()=>{p&&clearTimeout(p),l.removeEventListener("load",u),l.removeEventListener("error",o)},p;t&&(p=window.setTimeout(o,t));let l=document.createElement("script");l.addEventListener("load",u),l.addEventListener("error",o),l.src=e,document.head.appendChild(l)});var Ut,Gt=typeof((Ut=window.performance)==null?void 0:Ut.now)=="function"?()=>window.performance.now():()=>Date.now();var Bt=(e,r)=>async(...t)=>{var u;let n=r(...t),i=e.aborted,o;for(;!i&&!e.aborted;)try{let s=await n.next(o);i=(u=s.done)!=null?u:!1,o=s.value}catch(s){await n.throw(s)}return o};var or=()=>{var e,r;return/Mobile|mini|Fennec|Android|iP(ad|od|hone)/.test((e=navigator.appVersion)!=null?e:navigator.userAgent)||((r=navigator==null?void 0:navigator.userAgentData)==null?void 0:r.mobile)},ir=class{constructor(){this.detect()}get browser(){return this._currentBrowser}get device(){return this._currentDevice}get isTouch(){return this._maxTouchPoints>0}get isIOS(){return["iPhone","iPad","iPod"].includes(this.device)}get isMac(){return this.device==="Mac"}get isApple(){return this.isIOS||this.isMac}get isIphoneOrOldIpad(){if(!this.isApple||!this.isTouch)return!1;let r=this.device==="iPad"||(window==null?void 0:window.screen.width)>700,t=this._iosVersion;return!r||r&&!!t&&t<16}get isAndroid(){return this.device==="Android"}get isMobile(){return this._isMobile}get iOSVersion(){return this._iosVersion}get macVersion(){return this._macVersion}get isYandex(){return this.browser==="Yandex"}get isSafari(){return this.browser==="Safari"}get isSamsungBrowser(){return this.browser==="SamsungBrowser"}get isHDR(){return this._isHdr}detect(){var n;let{userAgent:r,maxTouchPoints:t}=navigator;try{this._maxTouchPoints=t,this._isHdr=!!((n=matchMedia("(dynamic-range: high)"))!=null&&n.matches)}catch(i){console.error(i)}try{this._isMobile=or()}catch(i){console.error(i)}this.detectBrowser(r),this.detectDevice(r),this.isIOS&&this.detectIOSVersion(),this.isMac&&this.detectMacVersion()}detectBrowser(r){try{let t=/yabrowser/i.test(r)?"Yandex":void 0,n=/samsungbrowser/i.test(r)?"SamsungBrowser":void 0,i=/chrome|crios/i.test(r)?"Chrome":void 0,o=/chromium/i.test(r)?"Chromium":void 0,u=/firefox|fxios/i.test(r)?"Firefox":void 0,s=/webkit|safari|khtml/i.test(r)?"Safari":void 0,p=/opr\//i.test(r)?"Opera":void 0,l=/edg/i.test(r)?"Edge":void 0;this._currentBrowser=t||n||u||p||l||i||o||s||"Rest"}catch(t){console.error(t)}}detectDevice(r){try{let t=/android/i.test(r)?"Android":void 0,n=/iphone/i.test(r)?"iPhone":void 0,i=/ipad/i.test(r)?"iPad":void 0,o=/ipod/i.test(r)?"iPod":void 0,u=/mac/i.test(r)?"Mac":void 0,s=/webOS|BlackBerry|IEMobile|Opera Mini/i.test(r)?"RestMobile":void 0;this._currentDevice=t||n||i||o||s||u||"Desktop"}catch(t){console.error(t)}}detectIOSVersion(){try{let{userAgent:r}=window.navigator,t=r.match(/Version\/(\d+(\.\d+)?)/i);if(!t)return;let n=t[1],i=parseFloat(n);if(isNaN(i))return;this._iosVersion=i}catch(r){console.error(r)}}detectMacVersion(){try{let{userAgent:r}=window.navigator,t=r.match(/Version\/(\d+)/);if(!t)return;let n=t[1],i=parseInt(n,10);if(isNaN(i))return;this._macVersion=i}catch(r){console.error(r)}}},Qt=new ir;var Wt=(e,{start:r=0,factor:t=2,max:n=1/0,min:i=r,random:o=0}={})=>{let u=r;return u*=t**e,u*=1+(Math.random()*o*2-o),u=Math.round(u),u=Math.min(u,n),u=Math.max(u,i),u};var Ee={};Ct(Ee,{clear:()=>xs,get:()=>hs,has:()=>gs,isPersistent:()=>Ts,remove:()=>Is,set:()=>ys});var x,Q,ar=`vk-videoplayer-dummy-key-${Math.random()}`,K=()=>{if(Q!==void 0)return Q;try{localStorage.setItem(ar,"test"),localStorage.removeItem(ar),Q=0}catch(e){if(e instanceof DOMException||e instanceof TypeError)try{sessionStorage.getItem(ar),Q=1}catch(r){if(r instanceof DOMException||r instanceof TypeError)Q=2;else throw r}else throw e}return Q===2&&(x=new Map),Q},Ts=()=>K()===0,hs=e=>{var t,n;let r=K();switch(r){case 0:return(t=localStorage.getItem(e))!=null?t:void 0;case 1:return(n=sessionStorage.getItem(e))!=null?n:void 0;case 2:return x==null?void 0:x.get(e);default:_(r)}},ys=(e,r)=>{let t=K();switch(t){case 0:try{localStorage.setItem(e,r)}catch(n){if(n instanceof DOMException)console.error(n);else throw n}break;case 1:try{sessionStorage.setItem(e,r)}catch(n){if(n instanceof DOMException)console.error(n);else throw n}break;case 2:return void(x==null?void 0:x.set(e,r));default:_(t)}},gs=e=>{var t;let r=K();switch(r){case 0:return e in localStorage;case 1:return e in sessionStorage;case 2:return(t=x==null?void 0:x.has(e))!=null?t:!1;default:return _(r),!1}},Is=e=>{let r=K();switch(r){case 0:return localStorage.removeItem(e);case 1:return sessionStorage.removeItem(e);case 2:return void(x==null?void 0:x.delete(e));default:_(r)}},xs=()=>{let e=K();switch(e){case 0:return localStorage.clear();case 1:return sessionStorage.clear();case 2:return x==null?void 0:x.clear();default:_(e)}};var $t=()=>{let e,r;try{e=window.self!==window.top}catch(n){n instanceof DOMException&&n.name==="SecurityError"?e=!0:(e=!1,console.error(n))}try{window.location.ancestorOrigins&&(r=window.location.ancestorOrigins[window.location.ancestorOrigins.length-1])}catch(n){console.error(n)}try{!r&&document.referrer&&(r=document.referrer)}catch(n){console.error(n)}let t=r?new URL(r).hostname:void 0;return{isEmbed:e,host:t}};var Se=(c=>(c.INVARIANT="Invariant quality",c.Q_144P="144p",c.Q_240P="240p",c.Q_360P="360p",c.Q_480P="480p",c.Q_576P="576p",c.Q_720P="720p",c.Q_1080P="1080p",c.Q_1440P="1440p",c.Q_2160P="2160p",c.Q_4320P="4320p",c))(Se||{});var S={"144p":{width:256,height:144},"240p":{width:428,height:240},"360p":{width:640,height:360},"480p":{width:856,height:480},"576p":{width:1024,height:576},"720p":{width:1280,height:720},"1080p":{width:1920,height:1080},"1440p":{width:2560,height:1440},"2160p":{width:3840,height:2160},"4320p":{width:7680,height:4320}},zt=(e,r)=>S[e].height>S[r].height,Kt=(e,r)=>S[e].height>=S[r].height,qe=(e,r)=>S[e].height<S[r].height,Yt=(e,r)=>S[e].height<=S[r].height,Ht=e=>e.sort((r,t)=>r===t?0:r==="Invariant quality"?1:t==="Invariant quality"?-1:qe(r,t)?1:-1)[0],Xt=Object.keys(S).sort((e,r)=>qe(e,r)?-1:1),Jt=(e,r=.02)=>[...Xt].find(n=>S[n].height*(1+r)>=e),Zt=({width:e,height:r})=>{let t=Math.min(e,r),n=Math.max(e,r);return Xt.find(i=>{let o=S[i];return o.width>=n&&o.height>=t})},en=e=>S[e].height,Re=e=>e==="Invariant quality",rn=e=>e.every(r=>!Re(r));function tn(e){if(Re(e))throw new Error("Expected exact quality")}var nn=(e,r)=>{let t={};for(let n of Object.keys(r)){let i=r[n],o=e[n];Array.isArray(i)&&Array.isArray(o)?t[n]=o:typeof i=="object"&&typeof o=="object"?t[n]=nn(o,i):t[n]=n in e?o:i}return t};var Os=e=>{let r="";return e>=3600&&(r+=Math.floor(e/3600)+"h",e=e%3600),e>=60&&(r+=Math.floor(e/60)+"m",e=e%60),e>0&&(r+=Math.floor(e)+"s"),r};function Pe(e,r=0,t){let n,i,o,u,s,p,l=0,b=!1,c=!1,v=!0,d=!r&&r!==0&&typeof window.requestAnimationFrame=="function";t&&(b=!!t.leading,c="maxWait"in t,o=t!=null&&t.maxWait?Math.max(+(t==null?void 0:t.maxWait)||0,r):o,v="trailing"in t?!!t.trailing:v);function T(m){let q=n,U=i;return n=i=void 0,l=m,u=e.apply(U,q),u}function h(m,q){return d?(s&&window.cancelAnimationFrame(s),window.requestAnimationFrame(m)):setTimeout(m,q)}function I(m){if(d){window.cancelAnimationFrame(m);return}clearTimeout(m)}function y(m){return l=m,s=h(he,r),b?T(m):u}function g(m){let q=m-p,U=m-l,At=r-q;return c?Math.min(At,o-U):At}function Pt(m){let q=m-p,U=m-l;return p===void 0||q>=r||q<0||c&&U>=o}function he(){let m=Date.now();if(Pt(m))return _t(m);s=h(he,g(m))}function _t(m){return s=void 0,v&&n?T(m):(n=i=void 0,u)}function ss(){s!==void 0&&I(s),l=0,n=p=i=s=void 0}function us(){return s===void 0?u:_t(Date.now())}function cs(){return s!==void 0}function ye(...m){let q=Date.now(),U=Pt(q);if(n=m,i=this,p=q,U){if(s===void 0)return y(p);if(c)return s=h(he,r),T(p)}return s===void 0&&(s=h(he,r)),u}return ye.cancel=ss,ye.flush=us,ye.pending=cs,ye}var _e=(e,r=0,t)=>Pe(e,r,{...{leading:!0,trailing:!0},...t,maxWait:r});var te=(e,r)=>{if(e===null||typeof e!="object")return e;let t=Array.isArray(e)?[]:{};for(let n in e){if(typeof r=="function"){let i=r(e[n],n,e,t);if(i!==void 0){t[n]=i;continue}}typeof e[n]=="object"?t[n]=te(e[n],r):t[n]=e[n]}return t};var on=e=>te(e);var ws=300,an=(e,r=ws)=>new f(t=>{let{width:n,height:i}=e.getBoundingClientRect();if(t.next({width:n,height:i}),!window.ResizeObserver)return;let o=new ResizeObserver(_e(u=>{let s=u[0];if(!s)return;let p,l;s.contentBoxSize&&s.contentBoxSize[0]?(l=s.contentBoxSize[0].blockSize,p=s.contentBoxSize[0].inlineSize):s.contentRect&&(p=s.contentRect.width,l=s.contentRect.height),B(p)&&B(l)&&t.next({width:p,height:l})},r));return o.observe(e),()=>o.disconnect()});var ne=(e,r=6,t=".")=>{let n={};for(let i in e)if(!(!e.hasOwnProperty(i)||e[i]instanceof HTMLElement||!r))if(typeof e[i]=="object"&&e[i]!==null){let o=ne(e[i],r-1);for(let u in o)o.hasOwnProperty(u)&&(n[i+t+u]=o[u])}else n[i]=e[i];return n};var sn=e=>{e.removeAttribute("src"),e.load()};var Es=e=>{let r;try{r=new URL(e)}catch(t){return!1}return r.protocol==="https:"};var Ss=e=>{try{return new URL(e)}catch(r){return null}};var un=e=>r=>t=>{let n=typeof t=="object";t==null||n&&!Object.keys(t).length||e(r,n?ne(t):{value:t})};var ie=class extends L{constructor(r){super(),this.value=r}next(r){super.next(this.value=r)}error(r){super.error(this.value=r)}getValue(){return this.value}_subscribe(r){let t=super._subscribe(r);return r.next(this.value),t}};function sr(e){return new f(r=>{let t={},n=Object.keys(e).length,i=o=>u=>{o in t||n--,t[o]=u,n===0&&r.next(t)};return Object.entries(e).reduce((o,[u,s])=>o.add(s.subscribe(i(u))),new O)})}function ur(...e){return new f(r=>e.reduce((t,n)=>t.add(n.subscribe(r)),new O))}var cn=e=>new f(r=>{let t=window.setTimeout(()=>{try{r.next()}catch(n){if(r.error)r.error(n);else throw n}},e);return()=>window.clearTimeout(t)});var ln=e=>new f(r=>{let t=window.setInterval(()=>r.next(),e);return()=>{t&&(window.clearInterval(t),t=void 0)}});var pn=e=>new f(r=>{e.forEach(t=>r.next(t))});var fn=(e,r)=>new f(t=>{let n=i=>t.next(i);return e.addEventListener(r,n),()=>e.removeEventListener(r,n)});function lr(e){return r=>new f(t=>r.subscribe(new cr(t,e)))}var cr=class{constructor(r,t){this.destination=r;this.size=t;this.lastValues=[]}next(r){this.lastValues.length===this.size&&this.lastValues.shift(),this.lastValues.push(r),this.destination.next(this.lastValues)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};var qs={leading:!1,trailing:!0};function fr(e,r=qs){return t=>new f(n=>t.subscribe(new pr(n,e,r)))}var pr=class{constructor(r,t,n){this.destination=r;this.time=t;this.config=n}next(r){this.lastValue=r,B(this.timeout)?window.clearTimeout(this.timeout):this.config.leading&&this.destination.next(r),this.timeout=window.setTimeout(()=>{if(this.config.trailing)try{this.destination.next(this.lastValue)}catch(t){if(this.destination.error)this.destination.error(t);else throw t}this.timeout=void 0},this.time)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};var Rs={leading:!0,trailing:!1};function vr(e,r=Rs){return t=>new f(n=>t.subscribe(new br(n,e,r)))}var br=class{constructor(r,t,n){this.destination=r;this.time=t;this.config=n}next(r){this.lastValue=r,we(this.timeout)&&(this.config.leading&&this.destination.next(r),this.timeout=window.setTimeout(()=>{this.config.trailing&&this.destination.next(this.lastValue),this.timeout=void 0},this.time))}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function mr(e){return r=>new f(t=>r.subscribe(new dr(t,e)))}var dr=class{constructor(r,t){this.destination=r;this.predicate=t}next(r){let t;try{t=this.predicate(r)}catch(n){throw this.error(n),n}t&&this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function hr(e=(r,t)=>r===t){return r=>new f(t=>r.subscribe(new Tr(t,e)))}var bn={},Tr=class{constructor(r,t){this.destination=r;this.predicate=t;this.lastValue=bn}next(r){let t;try{t=this.lastValue===bn||!this.predicate(this.lastValue,r),this.lastValue=r}catch(n){throw this.error(n),n}t&&this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function oe(e){return r=>new f(t=>r.subscribe(new yr(t,e)))}var yr=class{constructor(r,t){this.destination=r;this.mapper=t}next(r){let t;try{t=this.mapper(r)}catch(n){throw this.error(n),n}this.destination.next(t)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function gr(e){return oe(()=>e)}function Ir(){return e=>new f(r=>{let t=!1,n=!1,i=e.subscribe(o=>{t||(t=!0,r.next(o)),n&&i.unsubscribe()},o=>{var u;t=!0,(u=r.error)==null||u.call(r,o),n&&i.unsubscribe()});return n=!0,t&&i.unsubscribe(),i})}function Or(){return e=>new f(r=>e.subscribe(new xr(r)))}var xr=class{constructor(r){this.destination=r;this.hasLast=!1}next(r){let t=this.last;if(this.last=r,!this.hasLast){this.hasLast=!0;return}this.destination.next([t,r])}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function Er(e){return r=>new f(t=>r.subscribe(new wr(t,e)))}var wr=class{constructor(r,t){this.destination=r;this.effect=t}next(r){try{this.effect(r)}catch(t){throw this.error(t),t}this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};var vn=(s=>(s.NETWORK="network",s.VIDEO_PIPELINE="video_pipeline",s.EXTERNAL_API="external_api",s.PARSER="parser",s.DOM="dom",s.WTF="wtf",s.FATAL="fatal",s))(vn||{});var Ae=class{constructor(){Object.defineProperty(this,"listeners",{value:{},writable:!0,configurable:!0})}addEventListener(r,t,n){r in this.listeners||(this.listeners[r]=[]),this.listeners[r].push({callback:t,options:n})}removeEventListener(r,t){if(!(r in this.listeners))return;let n=this.listeners[r];for(let i=0,o=n.length;i<o;i++)if(n[i].callback===t){n.splice(i,1);return}}dispatchEvent(r){if(!(r.type in this.listeners))return;let n=this.listeners[r.type].slice();for(let i=0,o=n.length;i<o;i++){let u=n[i];try{u.callback.call(this,r)}catch(s){Promise.resolve().then(()=>{throw s})}u.options&&u.options.once&&this.removeEventListener(r.type,u.callback)}return!r.defaultPrevented}},Y=class extends Ae{constructor(){super(),this.listeners||Ae.call(this),Object.defineProperty(this,"aborted",{value:!1,writable:!0,configurable:!0}),Object.defineProperty(this,"onabort",{value:null,writable:!0,configurable:!0}),Object.defineProperty(this,"reason",{value:void 0,writable:!0,configurable:!0})}toString(){return"[object AbortSignal]"}dispatchEvent(r){r.type==="abort"&&(this.aborted=!0,typeof this.onabort=="function"&&this.onabort.call(this,r)),super.dispatchEvent(r)}},ae=class{constructor(){Object.defineProperty(this,"signal",{value:new Y,writable:!0,configurable:!0})}abort(r){let t;try{t=new Event("abort")}catch(i){typeof document!="undefined"?document.createEvent?(t=document.createEvent("Event"),t.initEvent("abort",!1,!1)):(t=document.createEventObject(),t.type="abort"):t={type:"abort",bubbles:!1,cancelable:!1}}let n=r;if(n===void 0)if(typeof document=="undefined")n=new Error("This operation was aborted"),n.name="AbortError";else try{n=new DOMException("signal is aborted without reason")}catch(i){n=new Error("This operation was aborted"),n.name="AbortError"}this.signal.reason=n,this.signal.dispatchEvent(t)}toString(){return"[object AbortController]"}};typeof Symbol!="undefined"&&Symbol.toStringTag&&(ae.prototype[Symbol.toStringTag]="AbortController",Y.prototype[Symbol.toStringTag]="AbortSignal");function Ce(e){return e.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL?(console.log("__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL=true is set, will force install polyfill"),!0):typeof e.Request=="function"&&!e.Request.prototype.hasOwnProperty("signal")||!e.AbortController}function Sr(e){typeof e=="function"&&(e={fetch:e});let{fetch:r,Request:t=r.Request,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:i=!1}=e;if(!Ce({fetch:r,Request:t,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:i}))return{fetch:r,Request:o};let o=t;(o&&!o.prototype.hasOwnProperty("signal")||i)&&(o=function(l,b){let c;b&&b.signal&&(c=b.signal,delete b.signal);let v=new t(l,b);return c&&Object.defineProperty(v,"signal",{writable:!1,enumerable:!1,configurable:!0,value:c}),v},o.prototype=t.prototype);let u=r;return{fetch:(p,l)=>{let b=o&&o.prototype.isPrototypeOf(p)?p.signal:l?l.signal:void 0;if(b){let c;try{c=new DOMException("Aborted","AbortError")}catch(d){c=new Error("Aborted"),c.name="AbortError"}if(b.aborted)return Promise.reject(c);let v=new Promise((d,T)=>{b.addEventListener("abort",()=>T(c),{once:!0})});return l&&l.signal&&delete l.signal,Promise.race([v,u(p,l)])}return u(p,l)},Request:o}}var se=Ce({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}),dn=se?Sr({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}):void 0,mn=se?dn.fetch:window.fetch,Td=se?dn.Request:window.Request,hd=se?ae:window.AbortController,yd=se?Y:window.AbortSignal;var is=ds(ns(),1),os=(c=>(c.Armenian="58",c.Azerbaijani="57",c.Belarusian="114",c.English="3",c.Kazakh="97",c.Portuguese="73",c.Russian="0",c.Spanish="4",c.Ukrainian="1",c.Uzbek="65",c.Vietnamese="75",c))(os||{}),yf="vk.com",gf=async(e,r,t)=>{let n=new URL(`https://${yf}/js/lang-pack.js`);n.searchParams.set("format","json"),n.searchParams.set("name",r),e!==void 0&&n.searchParams.set("lang",e);let o=await(await mn(n.toString())).json();return If(o,t)},If=(e,r)=>(0,is.default)(Object.entries(e.keys).map(([t,n])=>[t.substring(`${r}_`.length),xf(n)])),xf=e=>Array.isArray(e)?e[0]:e;var as=(t=>(t.RU="ru",t.EN="en",t))(as||{});
package/es2018.esm.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
- * @vkontakte/videoplayer-shared v1.0.50-dev.1326de93.0
3
- * Wed, 20 Nov 2024 09:05:47 GMT
2
+ * @vkontakte/videoplayer-shared v1.0.50-dev.eaae0302.0
3
+ * Thu, 21 Nov 2024 07:42:12 GMT
4
4
  * https://st.mycdn.me/static/vkontakte-videoplayer/1-0-50/doc/
5
5
  */
6
- var Ra=Object.create;var We=Object.defineProperty;var Pa=Object.getOwnPropertyDescriptor;var _a=Object.getOwnPropertyNames;var Aa=Object.getPrototypeOf,Ca=Object.prototype.hasOwnProperty;var a=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),La=(e,r)=>{for(var t in r)We(e,t,{get:r[t],enumerable:!0})},Ma=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of _a(r))!Ca.call(e,i)&&i!==t&&We(e,i,{get:()=>r[i],enumerable:!(n=Pa(r,i))||n.enumerable});return e};var ja=(e,r,t)=>(t=e!=null?Ra(Aa(e)):{},Ma(r||!e||!e.__esModule?We(t,"default",{value:e,enumerable:!0}):t,e));var _=a((Od,Nt)=>{"use strict";Nt.exports=function(e){try{return!!e()}catch(r){return!0}}});var ne=a((wd,kt)=>{"use strict";var Ss=_();kt.exports=!Ss(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var L=a((Ed,Ft)=>{"use strict";var Vt=ne(),Dt=Function.prototype,br=Dt.call,qs=Vt&&Dt.bind.bind(br,br);Ft.exports=Vt?qs:function(e){return function(){return br.apply(e,arguments)}}});var Ie=a((Sd,Gt)=>{"use strict";var Ut=L(),Rs=Ut({}.toString),Ps=Ut("".slice);Gt.exports=function(e){return Ps(Rs(e),8,-1)}});var Qt=a((qd,Bt)=>{"use strict";var _s=L(),As=_(),Cs=Ie(),vr=Object,Ls=_s("".split);Bt.exports=As(function(){return!vr("z").propertyIsEnumerable(0)})?function(e){return Cs(e)==="String"?Ls(e,""):vr(e)}:vr});var xe=a((Rd,Wt)=>{"use strict";Wt.exports=function(e){return e==null}});var Oe=a((Pd,$t)=>{"use strict";var Ms=xe(),js=TypeError;$t.exports=function(e){if(Ms(e))throw new js("Can't call method on "+e);return e}});var Y=a((_d,zt)=>{"use strict";var Ns=Qt(),ks=Oe();zt.exports=function(e){return Ns(ks(e))}});var Yt=a((Ad,Kt)=>{"use strict";Kt.exports=function(){}});var B=a((Cd,Ht)=>{"use strict";Ht.exports={}});var O=a((dr,Xt)=>{"use strict";var ie=function(e){return e&&e.Math===Math&&e};Xt.exports=ie(typeof globalThis=="object"&&globalThis)||ie(typeof window=="object"&&window)||ie(typeof self=="object"&&self)||ie(typeof global=="object"&&global)||ie(typeof dr=="object"&&dr)||function(){return this}()||Function("return this")()});var w=a((Ld,Jt)=>{"use strict";var mr=typeof document=="object"&&document.all;Jt.exports=typeof mr=="undefined"&&mr!==void 0?function(e){return typeof e=="function"||e===mr}:function(e){return typeof e=="function"}});var rn=a((Md,en)=>{"use strict";var Vs=O(),Ds=w(),Zt=Vs.WeakMap;en.exports=Ds(Zt)&&/native code/.test(String(Zt))});var M=a((jd,tn)=>{"use strict";var Fs=w();tn.exports=function(e){return typeof e=="object"?e!==null:Fs(e)}});var A=a((Nd,nn)=>{"use strict";var Us=_();nn.exports=!Us(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var hr=a((kd,an)=>{"use strict";var Gs=O(),on=M(),Tr=Gs.document,Bs=on(Tr)&&on(Tr.createElement);an.exports=function(e){return Bs?Tr.createElement(e):{}}});var yr=a((Vd,sn)=>{"use strict";var Qs=A(),Ws=_(),$s=hr();sn.exports=!Qs&&!Ws(function(){return Object.defineProperty($s("div"),"a",{get:function(){return 7}}).a!==7})});var gr=a((Dd,un)=>{"use strict";var zs=A(),Ks=_();un.exports=zs&&Ks(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var Q=a((Fd,cn)=>{"use strict";var Ys=M(),Hs=String,Xs=TypeError;cn.exports=function(e){if(Ys(e))return e;throw new Xs(Hs(e)+" is not an object")}});var D=a((Ud,ln)=>{"use strict";var Js=ne(),we=Function.prototype.call;ln.exports=Js?we.bind(we):function(){return we.apply(we,arguments)}});var Ee=a((Gd,pn)=>{"use strict";pn.exports={}});var Or=a((Bd,bn)=>{"use strict";var Ir=Ee(),xr=O(),Zs=w(),fn=function(e){return Zs(e)?e:void 0};bn.exports=function(e,r){return arguments.length<2?fn(Ir[e])||fn(xr[e]):Ir[e]&&Ir[e][r]||xr[e]&&xr[e][r]}});var wr=a((Qd,vn)=>{"use strict";var eu=L();vn.exports=eu({}.isPrototypeOf)});var hn=a((Wd,Tn)=>{"use strict";var ru=O(),dn=ru.navigator,mn=dn&&dn.userAgent;Tn.exports=mn?String(mn):""});var En=a(($d,wn)=>{"use strict";var On=O(),Er=hn(),yn=On.process,gn=On.Deno,In=yn&&yn.versions||gn&&gn.version,xn=In&&In.v8,R,Se;xn&&(R=xn.split("."),Se=R[0]>0&&R[0]<4?1:+(R[0]+R[1]));!Se&&Er&&(R=Er.match(/Edge\/(\d+)/),(!R||R[1]>=74)&&(R=Er.match(/Chrome\/(\d+)/),R&&(Se=+R[1])));wn.exports=Se});var Sr=a((zd,qn)=>{"use strict";var Sn=En(),tu=_(),nu=O(),iu=nu.String;qn.exports=!!Object.getOwnPropertySymbols&&!tu(function(){var e=Symbol("symbol detection");return!iu(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Sn&&Sn<41})});var qr=a((Kd,Rn)=>{"use strict";var ou=Sr();Rn.exports=ou&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var Rr=a((Yd,Pn)=>{"use strict";var au=Or(),su=w(),uu=wr(),cu=qr(),lu=Object;Pn.exports=cu?function(e){return typeof e=="symbol"}:function(e){var r=au("Symbol");return su(r)&&uu(r.prototype,lu(e))}});var qe=a((Hd,_n)=>{"use strict";var pu=String;_n.exports=function(e){try{return pu(e)}catch(r){return"Object"}}});var oe=a((Xd,An)=>{"use strict";var fu=w(),bu=qe(),vu=TypeError;An.exports=function(e){if(fu(e))return e;throw new vu(bu(e)+" is not a function")}});var Re=a((Jd,Cn)=>{"use strict";var du=oe(),mu=xe();Cn.exports=function(e,r){var t=e[r];return mu(t)?void 0:du(t)}});var Mn=a((Zd,Ln)=>{"use strict";var Pr=D(),_r=w(),Ar=M(),Tu=TypeError;Ln.exports=function(e,r){var t,n;if(r==="string"&&_r(t=e.toString)&&!Ar(n=Pr(t,e))||_r(t=e.valueOf)&&!Ar(n=Pr(t,e))||r!=="string"&&_r(t=e.toString)&&!Ar(n=Pr(t,e)))return n;throw new Tu("Can't convert object to primitive value")}});var ae=a((em,jn)=>{"use strict";jn.exports=!0});var Vn=a((rm,kn)=>{"use strict";var Nn=O(),hu=Object.defineProperty;kn.exports=function(e,r){try{hu(Nn,e,{value:r,configurable:!0,writable:!0})}catch(t){Nn[e]=r}return r}});var Pe=a((tm,Un)=>{"use strict";var yu=ae(),gu=O(),Iu=Vn(),Dn="__core-js_shared__",Fn=Un.exports=gu[Dn]||Iu(Dn,{});(Fn.versions||(Fn.versions=[])).push({version:"3.38.0",mode:yu?"pure":"global",copyright:"\xA9 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.38.0/LICENSE",source:"https://github.com/zloirock/core-js"})});var Cr=a((nm,Bn)=>{"use strict";var Gn=Pe();Bn.exports=function(e,r){return Gn[e]||(Gn[e]=r||{})}});var Lr=a((im,Qn)=>{"use strict";var xu=Oe(),Ou=Object;Qn.exports=function(e){return Ou(xu(e))}});var j=a((om,Wn)=>{"use strict";var wu=L(),Eu=Lr(),Su=wu({}.hasOwnProperty);Wn.exports=Object.hasOwn||function(r,t){return Su(Eu(r),t)}});var Mr=a((am,$n)=>{"use strict";var qu=L(),Ru=0,Pu=Math.random(),_u=qu(1 .toString);$n.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+_u(++Ru+Pu,36)}});var N=a((sm,Kn)=>{"use strict";var Au=O(),Cu=Cr(),zn=j(),Lu=Mr(),Mu=Sr(),ju=qr(),H=Au.Symbol,jr=Cu("wks"),Nu=ju?H.for||H:H&&H.withoutSetter||Lu;Kn.exports=function(e){return zn(jr,e)||(jr[e]=Mu&&zn(H,e)?H[e]:Nu("Symbol."+e)),jr[e]}});var Jn=a((um,Xn)=>{"use strict";var ku=D(),Yn=M(),Hn=Rr(),Vu=Re(),Du=Mn(),Fu=N(),Uu=TypeError,Gu=Fu("toPrimitive");Xn.exports=function(e,r){if(!Yn(e)||Hn(e))return e;var t=Vu(e,Gu),n;if(t){if(r===void 0&&(r="default"),n=ku(t,e,r),!Yn(n)||Hn(n))return n;throw new Uu("Can't convert object to primitive value")}return r===void 0&&(r="number"),Du(e,r)}});var Nr=a((cm,Zn)=>{"use strict";var Bu=Jn(),Qu=Rr();Zn.exports=function(e){var r=Bu(e,"string");return Qu(r)?r:r+""}});var X=a(ri=>{"use strict";var Wu=A(),$u=yr(),zu=gr(),_e=Q(),ei=Nr(),Ku=TypeError,kr=Object.defineProperty,Yu=Object.getOwnPropertyDescriptor,Vr="enumerable",Dr="configurable",Fr="writable";ri.f=Wu?zu?function(r,t,n){if(_e(r),t=ei(t),_e(n),typeof r=="function"&&t==="prototype"&&"value"in n&&Fr in n&&!n[Fr]){var i=Yu(r,t);i&&i[Fr]&&(r[t]=n.value,n={configurable:Dr in n?n[Dr]:i[Dr],enumerable:Vr in n?n[Vr]:i[Vr],writable:!1})}return kr(r,t,n)}:kr:function(r,t,n){if(_e(r),t=ei(t),_e(n),$u)try{return kr(r,t,n)}catch(i){}if("get"in n||"set"in n)throw new Ku("Accessors not supported");return"value"in n&&(r[t]=n.value),r}});var se=a((pm,ti)=>{"use strict";ti.exports=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}}});var J=a((fm,ni)=>{"use strict";var Hu=A(),Xu=X(),Ju=se();ni.exports=Hu?function(e,r,t){return Xu.f(e,r,Ju(1,t))}:function(e,r,t){return e[r]=t,e}});var Ae=a((bm,oi)=>{"use strict";var Zu=Cr(),ec=Mr(),ii=Zu("keys");oi.exports=function(e){return ii[e]||(ii[e]=ec(e))}});var Ce=a((vm,ai)=>{"use strict";ai.exports={}});var li=a((dm,ci)=>{"use strict";var rc=rn(),ui=O(),tc=M(),nc=J(),Ur=j(),Gr=Pe(),ic=Ae(),oc=Ce(),si="Object already initialized",Br=ui.TypeError,ac=ui.WeakMap,Le,ue,Me,sc=function(e){return Me(e)?ue(e):Le(e,{})},uc=function(e){return function(r){var t;if(!tc(r)||(t=ue(r)).type!==e)throw new Br("Incompatible receiver, "+e+" required");return t}};rc||Gr.state?(P=Gr.state||(Gr.state=new ac),P.get=P.get,P.has=P.has,P.set=P.set,Le=function(e,r){if(P.has(e))throw new Br(si);return r.facade=e,P.set(e,r),r},ue=function(e){return P.get(e)||{}},Me=function(e){return P.has(e)}):(W=ic("state"),oc[W]=!0,Le=function(e,r){if(Ur(e,W))throw new Br(si);return r.facade=e,nc(e,W,r),r},ue=function(e){return Ur(e,W)?e[W]:{}},Me=function(e){return Ur(e,W)});var P,W;ci.exports={set:Le,get:ue,has:Me,enforce:sc,getterFor:uc}});var di=a((mm,vi)=>{"use strict";var cc=ne(),bi=Function.prototype,pi=bi.apply,fi=bi.call;vi.exports=typeof Reflect=="object"&&Reflect.apply||(cc?fi.bind(pi):function(){return fi.apply(pi,arguments)})});var Qr=a((Tm,mi)=>{"use strict";var lc=Ie(),pc=L();mi.exports=function(e){if(lc(e)==="Function")return pc(e)}});var gi=a(yi=>{"use strict";var Ti={}.propertyIsEnumerable,hi=Object.getOwnPropertyDescriptor,fc=hi&&!Ti.call({1:2},1);yi.f=fc?function(r){var t=hi(this,r);return!!t&&t.enumerable}:Ti});var Oi=a(xi=>{"use strict";var bc=A(),vc=D(),dc=gi(),mc=se(),Tc=Y(),hc=Nr(),yc=j(),gc=yr(),Ii=Object.getOwnPropertyDescriptor;xi.f=bc?Ii:function(r,t){if(r=Tc(r),t=hc(t),gc)try{return Ii(r,t)}catch(n){}if(yc(r,t))return mc(!vc(dc.f,r,t),r[t])}});var Ei=a((gm,wi)=>{"use strict";var Ic=_(),xc=w(),Oc=/#|\.prototype\./,ce=function(e,r){var t=Ec[wc(e)];return t===qc?!0:t===Sc?!1:xc(r)?Ic(r):!!r},wc=ce.normalize=function(e){return String(e).replace(Oc,".").toLowerCase()},Ec=ce.data={},Sc=ce.NATIVE="N",qc=ce.POLYFILL="P";wi.exports=ce});var Wr=a((Im,qi)=>{"use strict";var Si=Qr(),Rc=oe(),Pc=ne(),_c=Si(Si.bind);qi.exports=function(e,r){return Rc(e),r===void 0?e:Pc?_c(e,r):function(){return e.apply(r,arguments)}}});var $r=a((xm,Pi)=>{"use strict";var le=O(),Ac=di(),Cc=Qr(),Lc=w(),Mc=Oi().f,jc=Ei(),Z=Ee(),Nc=Wr(),ee=J(),Ri=j();Pe();var kc=function(e){var r=function(t,n,i){if(this instanceof r){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,i)}return Ac(e,this,arguments)};return r.prototype=e.prototype,r};Pi.exports=function(e,r){var t=e.target,n=e.global,i=e.stat,o=e.proto,u=n?le:i?le[t]:le[t]&&le[t].prototype,s=n?Z:Z[t]||ee(Z,t,{})[t],p=s.prototype,l,b,c,v,d,T,h,I,y;for(v in r)l=jc(n?v:t+(i?".":"#")+v,e.forced),b=!l&&u&&Ri(u,v),T=s[v],b&&(e.dontCallGetSet?(y=Mc(u,v),h=y&&y.value):h=u[v]),d=b&&h?h:r[v],!(!l&&!o&&typeof T==typeof d)&&(e.bind&&b?I=Nc(d,le):e.wrap&&b?I=kc(d):o&&Lc(d)?I=Cc(d):I=d,(e.sham||d&&d.sham||T&&T.sham)&&ee(I,"sham",!0),ee(s,v,I),o&&(c=t+"Prototype",Ri(Z,c)||ee(Z,c,{}),ee(Z[c],v,d),e.real&&p&&(l||!p[v])&&ee(p,v,d)))}});var Ci=a((Om,Ai)=>{"use strict";var zr=A(),Vc=j(),_i=Function.prototype,Dc=zr&&Object.getOwnPropertyDescriptor,Kr=Vc(_i,"name"),Fc=Kr&&function(){}.name==="something",Uc=Kr&&(!zr||zr&&Dc(_i,"name").configurable);Ai.exports={EXISTS:Kr,PROPER:Fc,CONFIGURABLE:Uc}});var Mi=a((wm,Li)=>{"use strict";var Gc=Math.ceil,Bc=Math.floor;Li.exports=Math.trunc||function(r){var t=+r;return(t>0?Bc:Gc)(t)}});var Yr=a((Em,ji)=>{"use strict";var Qc=Mi();ji.exports=function(e){var r=+e;return r!==r||r===0?0:Qc(r)}});var ki=a((Sm,Ni)=>{"use strict";var Wc=Yr(),$c=Math.max,zc=Math.min;Ni.exports=function(e,r){var t=Wc(e);return t<0?$c(t+r,0):zc(t,r)}});var Di=a((qm,Vi)=>{"use strict";var Kc=Yr(),Yc=Math.min;Vi.exports=function(e){var r=Kc(e);return r>0?Yc(r,9007199254740991):0}});var Hr=a((Rm,Fi)=>{"use strict";var Hc=Di();Fi.exports=function(e){return Hc(e.length)}});var Bi=a((Pm,Gi)=>{"use strict";var Xc=Y(),Jc=ki(),Zc=Hr(),Ui=function(e){return function(r,t,n){var i=Xc(r),o=Zc(i);if(o===0)return!e&&-1;var u=Jc(n,o),s;if(e&&t!==t){for(;o>u;)if(s=i[u++],s!==s)return!0}else for(;o>u;u++)if((e||u in i)&&i[u]===t)return e||u||0;return!e&&-1}};Gi.exports={includes:Ui(!0),indexOf:Ui(!1)}});var $i=a((_m,Wi)=>{"use strict";var el=L(),Xr=j(),rl=Y(),tl=Bi().indexOf,nl=Ce(),Qi=el([].push);Wi.exports=function(e,r){var t=rl(e),n=0,i=[],o;for(o in t)!Xr(nl,o)&&Xr(t,o)&&Qi(i,o);for(;r.length>n;)Xr(t,o=r[n++])&&(~tl(i,o)||Qi(i,o));return i}});var Jr=a((Am,zi)=>{"use strict";zi.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var Yi=a((Cm,Ki)=>{"use strict";var il=$i(),ol=Jr();Ki.exports=Object.keys||function(r){return il(r,ol)}});var Xi=a(Hi=>{"use strict";var al=A(),sl=gr(),ul=X(),cl=Q(),ll=Y(),pl=Yi();Hi.f=al&&!sl?Object.defineProperties:function(r,t){cl(r);for(var n=ll(t),i=pl(t),o=i.length,u=0,s;o>u;)ul.f(r,s=i[u++],n[s]);return r}});var Zi=a((Mm,Ji)=>{"use strict";var fl=Or();Ji.exports=fl("document","documentElement")});var tt=a((jm,ao)=>{"use strict";var bl=Q(),vl=Xi(),eo=Jr(),dl=Ce(),ml=Zi(),Tl=hr(),hl=Ae(),ro=">",to="<",et="prototype",rt="script",io=hl("IE_PROTO"),Zr=function(){},oo=function(e){return to+rt+ro+e+to+"/"+rt+ro},no=function(e){e.write(oo("")),e.close();var r=e.parentWindow.Object;return e=null,r},yl=function(){var e=Tl("iframe"),r="java"+rt+":",t;return e.style.display="none",ml.appendChild(e),e.src=String(r),t=e.contentWindow.document,t.open(),t.write(oo("document.F=Object")),t.close(),t.F},je,Ne=function(){try{je=new ActiveXObject("htmlfile")}catch(r){}Ne=typeof document!="undefined"?document.domain&&je?no(je):yl():no(je);for(var e=eo.length;e--;)delete Ne[et][eo[e]];return Ne()};dl[io]=!0;ao.exports=Object.create||function(r,t){var n;return r!==null?(Zr[et]=bl(r),n=new Zr,Zr[et]=null,n[io]=r):n=Ne(),t===void 0?n:vl.f(n,t)}});var uo=a((Nm,so)=>{"use strict";var gl=_();so.exports=!gl(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var it=a((km,lo)=>{"use strict";var Il=j(),xl=w(),Ol=Lr(),wl=Ae(),El=uo(),co=wl("IE_PROTO"),nt=Object,Sl=nt.prototype;lo.exports=El?nt.getPrototypeOf:function(e){var r=Ol(e);if(Il(r,co))return r[co];var t=r.constructor;return xl(t)&&r instanceof t?t.prototype:r instanceof nt?Sl:null}});var ot=a((Vm,po)=>{"use strict";var ql=J();po.exports=function(e,r,t,n){return n&&n.enumerable?e[r]=t:ql(e,r,t),e}});var ct=a((Dm,vo)=>{"use strict";var Rl=_(),Pl=w(),_l=M(),Al=tt(),fo=it(),Cl=ot(),Ll=N(),Ml=ae(),ut=Ll("iterator"),bo=!1,k,at,st;[].keys&&(st=[].keys(),"next"in st?(at=fo(fo(st)),at!==Object.prototype&&(k=at)):bo=!0);var jl=!_l(k)||Rl(function(){var e={};return k[ut].call(e)!==e});jl?k={}:Ml&&(k=Al(k));Pl(k[ut])||Cl(k,ut,function(){return this});vo.exports={IteratorPrototype:k,BUGGY_SAFARI_ITERATORS:bo}});var ke=a((Fm,To)=>{"use strict";var Nl=N(),kl=Nl("toStringTag"),mo={};mo[kl]="z";To.exports=String(mo)==="[object z]"});var lt=a((Um,ho)=>{"use strict";var Vl=ke(),Dl=w(),Ve=Ie(),Fl=N(),Ul=Fl("toStringTag"),Gl=Object,Bl=Ve(function(){return arguments}())==="Arguments",Ql=function(e,r){try{return e[r]}catch(t){}};ho.exports=Vl?Ve:function(e){var r,t,n;return e===void 0?"Undefined":e===null?"Null":typeof(t=Ql(r=Gl(e),Ul))=="string"?t:Bl?Ve(r):(n=Ve(r))==="Object"&&Dl(r.callee)?"Arguments":n}});var go=a((Gm,yo)=>{"use strict";var Wl=ke(),$l=lt();yo.exports=Wl?{}.toString:function(){return"[object "+$l(this)+"]"}});var De=a((Bm,xo)=>{"use strict";var zl=ke(),Kl=X().f,Yl=J(),Hl=j(),Xl=go(),Jl=N(),Io=Jl("toStringTag");xo.exports=function(e,r,t,n){var i=t?e:e&&e.prototype;i&&(Hl(i,Io)||Kl(i,Io,{configurable:!0,value:r}),n&&!zl&&Yl(i,"toString",Xl))}});var wo=a((Qm,Oo)=>{"use strict";var Zl=ct().IteratorPrototype,ep=tt(),rp=se(),tp=De(),np=B(),ip=function(){return this};Oo.exports=function(e,r,t,n){var i=r+" Iterator";return e.prototype=ep(Zl,{next:rp(+!n,t)}),tp(e,i,!1,!0),np[i]=ip,e}});var So=a((Wm,Eo)=>{"use strict";var op=L(),ap=oe();Eo.exports=function(e,r,t){try{return op(ap(Object.getOwnPropertyDescriptor(e,r)[t]))}catch(n){}}});var Ro=a(($m,qo)=>{"use strict";var sp=M();qo.exports=function(e){return sp(e)||e===null}});var _o=a((zm,Po)=>{"use strict";var up=Ro(),cp=String,lp=TypeError;Po.exports=function(e){if(up(e))return e;throw new lp("Can't set "+cp(e)+" as a prototype")}});var Co=a((Km,Ao)=>{"use strict";var pp=So(),fp=M(),bp=Oe(),vp=_o();Ao.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,r={},t;try{t=pp(Object.prototype,"__proto__","set"),t(r,[]),e=r instanceof Array}catch(n){}return function(i,o){return bp(i),vp(o),fp(i)&&(e?t(i,o):i.__proto__=o),i}}():void 0)});var Bo=a((Ym,Go)=>{"use strict";var dp=$r(),mp=D(),Fe=ae(),Fo=Ci(),Tp=w(),hp=wo(),Lo=it(),Mo=Co(),yp=De(),gp=J(),pt=ot(),Ip=N(),jo=B(),Uo=ct(),xp=Fo.PROPER,Op=Fo.CONFIGURABLE,No=Uo.IteratorPrototype,Ue=Uo.BUGGY_SAFARI_ITERATORS,pe=Ip("iterator"),ko="keys",fe="values",Vo="entries",Do=function(){return this};Go.exports=function(e,r,t,n,i,o,u){hp(t,r,n);var s=function(y){if(y===i&&v)return v;if(!Ue&&y&&y in b)return b[y];switch(y){case ko:return function(){return new t(this,y)};case fe:return function(){return new t(this,y)};case Vo:return function(){return new t(this,y)}}return function(){return new t(this)}},p=r+" Iterator",l=!1,b=e.prototype,c=b[pe]||b["@@iterator"]||i&&b[i],v=!Ue&&c||s(i),d=r==="Array"&&b.entries||c,T,h,I;if(d&&(T=Lo(d.call(new e)),T!==Object.prototype&&T.next&&(!Fe&&Lo(T)!==No&&(Mo?Mo(T,No):Tp(T[pe])||pt(T,pe,Do)),yp(T,p,!0,!0),Fe&&(jo[p]=Do))),xp&&i===fe&&c&&c.name!==fe&&(!Fe&&Op?gp(b,"name",fe):(l=!0,v=function(){return mp(c,this)})),i)if(h={values:s(fe),keys:o?v:s(ko),entries:s(Vo)},u)for(I in h)(Ue||l||!(I in b))&&pt(b,I,h[I]);else dp({target:r,proto:!0,forced:Ue||l},h);return(!Fe||u)&&b[pe]!==v&&pt(b,pe,v,{name:i}),jo[r]=v,h}});var Wo=a((Hm,Qo)=>{"use strict";Qo.exports=function(e,r){return{value:e,done:r}}});var bt=a((Xm,Ho)=>{"use strict";var wp=Y(),ft=Yt(),$o=B(),Ko=li(),Ep=X().f,Sp=Bo(),Ge=Wo(),qp=ae(),Rp=A(),Yo="Array Iterator",Pp=Ko.set,_p=Ko.getterFor(Yo);Ho.exports=Sp(Array,"Array",function(e,r){Pp(this,{type:Yo,target:wp(e),index:0,kind:r})},function(){var e=_p(this),r=e.target,t=e.index++;if(!r||t>=r.length)return e.target=void 0,Ge(void 0,!0);switch(e.kind){case"keys":return Ge(t,!1);case"values":return Ge(r[t],!1)}return Ge([t,r[t]],!1)},"values");var zo=$o.Arguments=$o.Array;ft("keys");ft("values");ft("entries");if(!qp&&Rp&&zo.name!=="values")try{Ep(zo,"name",{value:"values"})}catch(e){}});var Jo=a((Jm,Xo)=>{"use strict";var Ap=N(),Cp=B(),Lp=Ap("iterator"),Mp=Array.prototype;Xo.exports=function(e){return e!==void 0&&(Cp.Array===e||Mp[Lp]===e)}});var vt=a((Zm,ea)=>{"use strict";var jp=lt(),Zo=Re(),Np=xe(),kp=B(),Vp=N(),Dp=Vp("iterator");ea.exports=function(e){if(!Np(e))return Zo(e,Dp)||Zo(e,"@@iterator")||kp[jp(e)]}});var ta=a((eT,ra)=>{"use strict";var Fp=D(),Up=oe(),Gp=Q(),Bp=qe(),Qp=vt(),Wp=TypeError;ra.exports=function(e,r){var t=arguments.length<2?Qp(e):r;if(Up(t))return Gp(Fp(t,e));throw new Wp(Bp(e)+" is not iterable")}});var oa=a((rT,ia)=>{"use strict";var $p=D(),na=Q(),zp=Re();ia.exports=function(e,r,t){var n,i;na(e);try{if(n=zp(e,"return"),!n){if(r==="throw")throw t;return t}n=$p(n,e)}catch(o){i=!0,n=o}if(r==="throw")throw t;if(i)throw n;return na(n),t}});var la=a((tT,ca)=>{"use strict";var Kp=Wr(),Yp=D(),Hp=Q(),Xp=qe(),Jp=Jo(),Zp=Hr(),aa=wr(),ef=ta(),rf=vt(),sa=oa(),tf=TypeError,Be=function(e,r){this.stopped=e,this.result=r},ua=Be.prototype;ca.exports=function(e,r,t){var n=t&&t.that,i=!!(t&&t.AS_ENTRIES),o=!!(t&&t.IS_RECORD),u=!!(t&&t.IS_ITERATOR),s=!!(t&&t.INTERRUPTED),p=Kp(r,n),l,b,c,v,d,T,h,I=function(g){return l&&sa(l,"normal",g),new Be(!0,g)},y=function(g){return i?(Hp(g),s?p(g[0],g[1],I):p(g[0],g[1])):s?p(g,I):p(g)};if(o)l=e.iterator;else if(u)l=e;else{if(b=rf(e),!b)throw new tf(Xp(e)+" is not iterable");if(Jp(b)){for(c=0,v=Zp(e);v>c;c++)if(d=y(e[c]),d&&aa(ua,d))return d;return new Be(!1)}l=ef(e,b)}for(T=o?e.next:l.next;!(h=Yp(T,l)).done;){try{d=y(h.value)}catch(g){sa(l,"throw",g)}if(typeof d=="object"&&d&&aa(ua,d))return d}return new Be(!1)}});var fa=a((nT,pa)=>{"use strict";var nf=A(),of=X(),af=se();pa.exports=function(e,r,t){nf?of.f(e,r,af(0,t)):e[r]=t}});var ba=a(()=>{"use strict";var sf=$r(),uf=la(),cf=fa();sf({target:"Object",stat:!0},{fromEntries:function(r){var t={};return uf(r,function(n,i){cf(t,n,i)},{AS_ENTRIES:!0}),t}})});var da=a((aT,va)=>{"use strict";bt();ba();var lf=Ee();va.exports=lf.Object.fromEntries});var Ta=a((sT,ma)=>{"use strict";ma.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}});var ya=a(()=>{"use strict";bt();var pf=Ta(),ff=O(),bf=De(),ha=B();for(Qe in pf)bf(ff[Qe],Qe),ha[Qe]=ha.Array;var Qe});var Ia=a((lT,ga)=>{"use strict";var vf=da();ya();ga.exports=vf});var Oa=a((pT,xa)=>{"use strict";var df=Ia();xa.exports=df});var Na="1.0.50-dev.1326de93.0";var E=class{constructor(){this.subscriptions=[]}unsubscribe(){let r=this.subscriptions;this.subscriptions=[],r.forEach(t=>typeof t=="function"?t():t.unsubscribe())}add(r){return this.subscriptions.push(r),this}};var C=e=>{throw new Error(`${e} is value of unexpected type`)},ka=e=>{};var U=()=>{};var f=class{constructor(r){r&&(this._subscribe=r)}subscribe(r,t){var u;let n;t?typeof t=="function"?n={next:t,error:U}:n={next:s=>t.next(s),error:s=>{var p;return(p=t.error)==null?void 0:p.call(t,s)}}:n={next:U,error:U};let i=typeof r=="function"?{next:s=>{try{r(s)}catch(p){n.next(p)}},error:s=>n.next(s)}:{next:s=>r.next(s),error:s=>r.error?r.error(s):n.next(s)},o;try{o=this._subscribe(i)}catch(s){(u=i.error)==null||u.call(i,s)}return new E().add(()=>{switch(i.next=U,i.error=U,typeof o){case"function":o();return;case"object":o.unsubscribe();return;case"undefined":return;default:return C(o)}})}pipe(...r){return r.reduce((t,n)=>n(t),this)}_subscribe(r){}};var V=class extends f{constructor(){super();this.keyCounter=0;this.subscribers=new Map}next(t){this.subscribers.forEach(n=>n.next(t))}error(t){this.subscribers.forEach(n=>{var i;return(i=n.error)==null?void 0:i.call(n,t)})}_subscribe(t){let n=this.keyCounter++;return this.subscribers.set(n,t),new E().add(()=>this.subscribers.delete(n))}};var $e=class{constructor(){this.log$=new V;this.logs=[];this.log=r=>{let t={...r,timestamp:Date.now()};this.logs.push(t),this.log$.next(t)};this.getAllLogs=()=>this.logs}createCustomLog(r){return(...t)=>{let n;try{n=r(...t)}catch(i){n={message:"error in `createCustomLog`",component:"Logger"}}this.log(n)}}createComponentLog(r){return this.createCustomLog(t=>({component:r,...t}))}};import{trace as Va,context as Da}from"@opentelemetry/api";import{TracerAllSpansProcessor as Fa,TracerMemorySpanExporter as ht,initTracerOpenTelemetry as Ua}from"@tracer/opentelemetry";var ze=class e{constructor({name:r}){}log(r,t){}error(r,t){}critical(r,t){}createComponentTracer(r){return new e({name:r})}end(){}getFinishedSpans(){}getTraceId(){return this.fakeTraceId}},Ke=class e{constructor({name:r,parentContext:t,tracer:n}){this.childTracers=[];let i=!n;if(i){let u=Ua({serviceName:"videoplayer-sdk-web",appToken:"L9SBoka6ZWk4xPjaK7tmfSfYvMhcge7nvGDjpdMmscb",spanLimits:{attributeCountLimit:1/0,eventCountLimit:1/0,attributePerEventCountLimit:1/0}}).getProvider(),s=new ht,p=new ht;this.spanExporter=s,u.addSpanProcessor(new Fa({startedSpansExporter:s,endedSpansExporter:p})),this.tracer=u.getTracer("sdk-videoplayer-tracer")}else this.tracer=n;this.span=this.tracer.startSpan(r,{root:i},t),this.context=Va.setSpan(Da.active(),this.span)}log(r,t){this.span.addEvent(r,{...t,type:"log"})}error(r,t){this.span.addEvent(r,{...t,type:"error"})}critical(r,t){this.span.addEvent(r,{...t,type:"critical"})}static createRootTracer(r=!1){return r?new e({name:"Root"}):new ze({name:"Root"})}createComponentTracer(r){let t=new e({name:r,parentContext:this.context,tracer:this.tracer});return this.childTracers.push(t),t}end(){this.childTracers.forEach(r=>r.end()),this.span.end()}getFinishedSpans(){var r;return(r=this.spanExporter)==null?void 0:r.getJsonData()}getTraceId(){return this.span.spanContext().traceId}};function Ga(e,r='Assertion "value is not nullable" failed'){if(e==null)throw new Error(r)}function Ba(e,r='Assertion "value is nullable" failed'){if(e!=null)throw new Error(r)}function $(e){return typeof e!="undefined"&&e!==null}function Ye(e){return e==null}function Qa(e,r){if(!(e!=null&&e.length))throw new Error(r)}function Wa(e,r){if(e!=null&&e.length)throw new Error(r)}var $a=(e,r,t)=>new Promise((n,i)=>{r.addEventListener("abort",()=>{s(),l.remove()});let o=()=>{s(),i()},u=()=>{s(),n()},s=()=>{p&&clearTimeout(p),l.removeEventListener("load",u),l.removeEventListener("error",o)},p;t&&(p=window.setTimeout(o,t));let l=document.createElement("script");l.addEventListener("load",u),l.addEventListener("error",o),l.src=e,document.head.appendChild(l)});var yt,za=typeof((yt=window.performance)==null?void 0:yt.now)=="function"?()=>window.performance.now():()=>Date.now();var Ka=(e,r)=>async(...t)=>{var u;let n=r(...t),i=e.aborted,o;for(;!i&&!e.aborted;)try{let s=await n.next(o);i=(u=s.done)!=null?u:!1,o=s.value}catch(s){await n.throw(s)}return o};var gt=()=>{var e,r;return/Mobile|mini|Fennec|Android|iP(ad|od|hone)/.test((e=navigator.appVersion)!=null?e:navigator.userAgent)||((r=navigator==null?void 0:navigator.userAgentData)==null?void 0:r.mobile)},He=class{constructor(){this.detect()}get browser(){return this._currentBrowser}get device(){return this._currentDevice}get isTouch(){return this._maxTouchPoints>0}get isIOS(){return["iPhone","iPad","iPod"].includes(this.device)}get isMac(){return this.device==="Mac"}get isApple(){return this.isIOS||this.isMac}get isIphoneOrOldIpad(){if(!this.isApple||!this.isTouch)return!1;let r=this.device==="iPad"||(window==null?void 0:window.screen.width)>700,t=this._iosVersion;return!r||r&&!!t&&t<16}get isAndroid(){return this.device==="Android"}get isMobile(){return this._isMobile}get iOSVersion(){return this._iosVersion}get macVersion(){return this._macVersion}get isYandex(){return this.browser==="Yandex"}get isSafari(){return this.browser==="Safari"}get isSamsungBrowser(){return this.browser==="SamsungBrowser"}get isHDR(){return this._isHdr}detect(){var n;let{userAgent:r,maxTouchPoints:t}=navigator;try{this._maxTouchPoints=t,this._isHdr=!!((n=matchMedia("(dynamic-range: high)"))!=null&&n.matches)}catch(i){console.error(i)}try{this._isMobile=gt()}catch(i){console.error(i)}this.detectBrowser(r),this.detectDevice(r),this.isIOS&&this.detectIOSVersion(),this.isMac&&this.detectMacVersion()}detectBrowser(r){try{let t=/yabrowser/i.test(r)?"Yandex":void 0,n=/samsungbrowser/i.test(r)?"SamsungBrowser":void 0,i=/chrome|crios/i.test(r)?"Chrome":void 0,o=/chromium/i.test(r)?"Chromium":void 0,u=/firefox|fxios/i.test(r)?"Firefox":void 0,s=/webkit|safari|khtml/i.test(r)?"Safari":void 0,p=/opr\//i.test(r)?"Opera":void 0,l=/edg/i.test(r)?"Edge":void 0;this._currentBrowser=t||n||u||p||l||i||o||s||"Rest"}catch(t){console.error(t)}}detectDevice(r){try{let t=/android/i.test(r)?"Android":void 0,n=/iphone/i.test(r)?"iPhone":void 0,i=/ipad/i.test(r)?"iPad":void 0,o=/ipod/i.test(r)?"iPod":void 0,u=/mac/i.test(r)?"Mac":void 0,s=/webOS|BlackBerry|IEMobile|Opera Mini/i.test(r)?"RestMobile":void 0;this._currentDevice=t||n||i||o||s||u||"Desktop"}catch(t){console.error(t)}}detectIOSVersion(){try{let{userAgent:r}=window.navigator,t=r.match(/Version\/(\d+(\.\d+)?)/i);if(!t)return;let n=t[1],i=parseFloat(n);if(isNaN(i))return;this._iosVersion=i}catch(r){console.error(r)}}detectMacVersion(){try{let{userAgent:r}=window.navigator,t=r.match(/Version\/(\d+)/);if(!t)return;let n=t[1],i=parseInt(n,10);if(isNaN(i))return;this._macVersion=i}catch(r){console.error(r)}}},Ya=new He;var Ha=(e,{start:r=0,factor:t=2,max:n=1/0,min:i=r,random:o=0}={})=>{let u=r;return u*=t**e,u*=1+(Math.random()*o*2-o),u=Math.round(u),u=Math.min(u,n),u=Math.max(u,i),u};var Je={};La(Je,{clear:()=>ts,get:()=>Ja,has:()=>es,isPersistent:()=>Xa,remove:()=>rs,set:()=>Za});var x,G,Xe=`vk-videoplayer-dummy-key-${Math.random()}`,z=()=>{if(G!==void 0)return G;try{localStorage.setItem(Xe,"test"),localStorage.removeItem(Xe),G=0}catch(e){if(e instanceof DOMException||e instanceof TypeError)try{sessionStorage.getItem(Xe),G=1}catch(r){if(r instanceof DOMException||r instanceof TypeError)G=2;else throw r}else throw e}return G===2&&(x=new Map),G},Xa=()=>z()===0,Ja=e=>{var t,n;let r=z();switch(r){case 0:return(t=localStorage.getItem(e))!=null?t:void 0;case 1:return(n=sessionStorage.getItem(e))!=null?n:void 0;case 2:return x==null?void 0:x.get(e);default:C(r)}},Za=(e,r)=>{let t=z();switch(t){case 0:try{localStorage.setItem(e,r)}catch(n){if(n instanceof DOMException)console.error(n);else throw n}break;case 1:try{sessionStorage.setItem(e,r)}catch(n){if(n instanceof DOMException)console.error(n);else throw n}break;case 2:return void(x==null?void 0:x.set(e,r));default:C(t)}},es=e=>{var t;let r=z();switch(r){case 0:return e in localStorage;case 1:return e in sessionStorage;case 2:return(t=x==null?void 0:x.has(e))!=null?t:!1;default:return C(r),!1}},rs=e=>{let r=z();switch(r){case 0:return localStorage.removeItem(e);case 1:return sessionStorage.removeItem(e);case 2:return void(x==null?void 0:x.delete(e));default:C(r)}},ts=()=>{let e=z();switch(e){case 0:return localStorage.clear();case 1:return sessionStorage.clear();case 2:return x==null?void 0:x.clear();default:C(e)}};var ns=()=>{let e,r;try{e=window.self!==window.top}catch(n){n instanceof DOMException&&n.name==="SecurityError"?e=!0:(e=!1,console.error(n))}try{window.location.ancestorOrigins&&(r=window.location.ancestorOrigins[window.location.ancestorOrigins.length-1])}catch(n){console.error(n)}try{!r&&document.referrer&&(r=document.referrer)}catch(n){console.error(n)}let t=r?new URL(r).hostname:void 0;return{isEmbed:e,host:t}};var Ze=(c=>(c.INVARIANT="Invariant quality",c.Q_144P="144p",c.Q_240P="240p",c.Q_360P="360p",c.Q_480P="480p",c.Q_576P="576p",c.Q_720P="720p",c.Q_1080P="1080p",c.Q_1440P="1440p",c.Q_2160P="2160p",c.Q_4320P="4320p",c))(Ze||{});var S={"144p":{width:256,height:144},"240p":{width:428,height:240},"360p":{width:640,height:360},"480p":{width:856,height:480},"576p":{width:1024,height:576},"720p":{width:1280,height:720},"1080p":{width:1920,height:1080},"1440p":{width:2560,height:1440},"2160p":{width:3840,height:2160},"4320p":{width:7680,height:4320}},is=(e,r)=>S[e].height>S[r].height,os=(e,r)=>S[e].height>=S[r].height,er=(e,r)=>S[e].height<S[r].height,as=(e,r)=>S[e].height<=S[r].height,ss=e=>e.sort((r,t)=>r===t?0:r==="Invariant quality"?1:t==="Invariant quality"?-1:er(r,t)?1:-1)[0],It=Object.keys(S).sort((e,r)=>er(e,r)?-1:1),us=(e,r=.02)=>[...It].find(n=>S[n].height*(1+r)>=e),cs=({width:e,height:r})=>{let t=Math.min(e,r),n=Math.max(e,r);return It.find(i=>{let o=S[i];return o.width>=n&&o.height>=t})},ls=e=>S[e].height,rr=e=>e==="Invariant quality",ps=e=>e.every(r=>!rr(r));function fs(e){if(rr(e))throw new Error("Expected exact quality")}var bs=(e,r)=>{let t={};for(let n of Object.keys(r)){let i=r[n],o=e[n];Array.isArray(i)&&Array.isArray(o)?t[n]=o:typeof i=="object"&&typeof o=="object"?t[n]=bs(o,i):t[n]=n in e?o:i}return t};var sb=e=>{let r="";return e>=3600&&(r+=Math.floor(e/3600)+"h",e=e%3600),e>=60&&(r+=Math.floor(e/60)+"m",e=e%60),e>0&&(r+=Math.floor(e)+"s"),r};function tr(e,r=0,t){let n,i,o,u,s,p,l=0,b=!1,c=!1,v=!0,d=!r&&r!==0&&typeof window.requestAnimationFrame=="function";t&&(b=!!t.leading,c="maxWait"in t,o=t!=null&&t.maxWait?Math.max(+(t==null?void 0:t.maxWait)||0,r):o,v="trailing"in t?!!t.trailing:v);function T(m){let q=n,F=i;return n=i=void 0,l=m,u=e.apply(F,q),u}function h(m,q){return d?(s&&window.cancelAnimationFrame(s),window.requestAnimationFrame(m)):setTimeout(m,q)}function I(m){if(d){window.cancelAnimationFrame(m);return}clearTimeout(m)}function y(m){return l=m,s=h(be,r),b?T(m):u}function g(m){let q=m-p,F=m-l,Tt=r-q;return c?Math.min(Tt,o-F):Tt}function dt(m){let q=m-p,F=m-l;return p===void 0||q>=r||q<0||c&&F>=o}function be(){let m=Date.now();if(dt(m))return mt(m);s=h(be,g(m))}function mt(m){return s=void 0,v&&n?T(m):(n=i=void 0,u)}function Ea(){s!==void 0&&I(s),l=0,n=p=i=s=void 0}function Sa(){return s===void 0?u:mt(Date.now())}function qa(){return s!==void 0}function ve(...m){let q=Date.now(),F=dt(q);if(n=m,i=this,p=q,F){if(s===void 0)return y(p);if(c)return s=h(be,r),T(p)}return s===void 0&&(s=h(be,r)),u}return ve.cancel=Ea,ve.flush=Sa,ve.pending=qa,ve}var nr=(e,r=0,t)=>tr(e,r,{...{leading:!0,trailing:!0},...t,maxWait:r});var de=(e,r)=>{if(e===null||typeof e!="object")return e;let t=Array.isArray(e)?[]:{};for(let n in e){if(typeof r=="function"){let i=r(e[n],n,e,t);if(i!==void 0){t[n]=i;continue}}typeof e[n]=="object"?t[n]=de(e[n],r):t[n]=e[n]}return t};var vs=e=>de(e);var ds=300,ms=(e,r=ds)=>new f(t=>{let{width:n,height:i}=e.getBoundingClientRect();if(t.next({width:n,height:i}),!window.ResizeObserver)return;let o=new ResizeObserver(nr(u=>{let s=u[0];if(!s)return;let p,l;s.contentBoxSize&&s.contentBoxSize[0]?(l=s.contentBoxSize[0].blockSize,p=s.contentBoxSize[0].inlineSize):s.contentRect&&(p=s.contentRect.width,l=s.contentRect.height),$(p)&&$(l)&&t.next({width:p,height:l})},r));return o.observe(e),()=>o.disconnect()});var me=(e,r=6,t=".")=>{let n={};for(let i in e)if(!(!e.hasOwnProperty(i)||e[i]instanceof HTMLElement||!r))if(typeof e[i]=="object"&&e[i]!==null){let o=me(e[i],r-1);for(let u in o)o.hasOwnProperty(u)&&(n[i+t+u]=o[u])}else n[i]=e[i];return n};var Ts=e=>{e.removeAttribute("src"),e.load()};var gb=e=>{let r;try{r=new URL(e)}catch(t){return!1}return r.protocol==="https:"};var xb=e=>{try{return new URL(e)}catch(r){return null}};var hs=e=>r=>t=>{let n=typeof t=="object";t==null||n&&!Object.keys(t).length||e(r,n?me(t):{value:t})};var Te=class extends V{constructor(r){super(),this.value=r}next(r){super.next(this.value=r)}error(r){super.error(this.value=r)}getValue(){return this.value}_subscribe(r){let t=super._subscribe(r);return r.next(this.value),t}};function xt(e){return new f(r=>{let t={},n=Object.keys(e).length,i=o=>u=>{o in t||n--,t[o]=u,n===0&&r.next(t)};return Object.entries(e).reduce((o,[u,s])=>o.add(s.subscribe(i(u))),new E)})}function Ot(...e){return new f(r=>e.reduce((t,n)=>t.add(n.subscribe(r)),new E))}var ys=e=>new f(r=>{let t=window.setTimeout(()=>{try{r.next()}catch(n){if(r.error)r.error(n);else throw n}},e);return()=>window.clearTimeout(t)});var gs=e=>new f(r=>{let t=window.setInterval(()=>r.next(),e);return()=>{t&&(window.clearInterval(t),t=void 0)}});var Is=e=>new f(r=>{e.forEach(t=>r.next(t))});var xs=(e,r)=>new f(t=>{let n=i=>t.next(i);return e.addEventListener(r,n),()=>e.removeEventListener(r,n)});function wt(e){return r=>new f(t=>r.subscribe(new ir(t,e)))}var ir=class{constructor(r,t){this.destination=r;this.size=t;this.lastValues=[]}next(r){this.lastValues.length===this.size&&this.lastValues.shift(),this.lastValues.push(r),this.destination.next(this.lastValues)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};var Os={leading:!1,trailing:!0};function Et(e,r=Os){return t=>new f(n=>t.subscribe(new or(n,e,r)))}var or=class{constructor(r,t,n){this.destination=r;this.time=t;this.config=n}next(r){this.lastValue=r,$(this.timeout)?window.clearTimeout(this.timeout):this.config.leading&&this.destination.next(r),this.timeout=window.setTimeout(()=>{if(this.config.trailing)try{this.destination.next(this.lastValue)}catch(t){if(this.destination.error)this.destination.error(t);else throw t}this.timeout=void 0},this.time)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};var ws={leading:!0,trailing:!1};function St(e,r=ws){return t=>new f(n=>t.subscribe(new ar(n,e,r)))}var ar=class{constructor(r,t,n){this.destination=r;this.time=t;this.config=n}next(r){this.lastValue=r,Ye(this.timeout)&&(this.config.leading&&this.destination.next(r),this.timeout=window.setTimeout(()=>{this.config.trailing&&this.destination.next(this.lastValue),this.timeout=void 0},this.time))}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function qt(e){return r=>new f(t=>r.subscribe(new sr(t,e)))}var sr=class{constructor(r,t){this.destination=r;this.predicate=t}next(r){let t;try{t=this.predicate(r)}catch(n){throw this.error(n),n}t&&this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function Pt(e=(r,t)=>r===t){return r=>new f(t=>r.subscribe(new ur(t,e)))}var Rt={},ur=class{constructor(r,t){this.destination=r;this.predicate=t;this.lastValue=Rt}next(r){let t;try{t=this.lastValue===Rt||!this.predicate(this.lastValue,r),this.lastValue=r}catch(n){throw this.error(n),n}t&&this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function he(e){return r=>new f(t=>r.subscribe(new cr(t,e)))}var cr=class{constructor(r,t){this.destination=r;this.mapper=t}next(r){let t;try{t=this.mapper(r)}catch(n){throw this.error(n),n}this.destination.next(t)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function _t(e){return he(()=>e)}function At(){return e=>new f(r=>{let t=!1,n=!1,i=e.subscribe(o=>{t||(t=!0,r.next(o)),n&&i.unsubscribe()},o=>{var u;t=!0,(u=r.error)==null||u.call(r,o),n&&i.unsubscribe()});return n=!0,t&&i.unsubscribe(),i})}function Ct(){return e=>new f(r=>e.subscribe(new lr(r)))}var lr=class{constructor(r){this.destination=r;this.hasLast=!1}next(r){let t=this.last;if(this.last=r,!this.hasLast){this.hasLast=!0;return}this.destination.next([t,r])}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function Lt(e){return r=>new f(t=>r.subscribe(new pr(t,e)))}var pr=class{constructor(r,t){this.destination=r;this.effect=t}next(r){try{this.effect(r)}catch(t){throw this.error(t),t}this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};var Es=(s=>(s.NETWORK="network",s.VIDEO_PIPELINE="video_pipeline",s.EXTERNAL_API="external_api",s.PARSER="parser",s.DOM="dom",s.WTF="wtf",s.FATAL="fatal",s))(Es||{});var ye=class{constructor(){Object.defineProperty(this,"listeners",{value:{},writable:!0,configurable:!0})}addEventListener(r,t,n){r in this.listeners||(this.listeners[r]=[]),this.listeners[r].push({callback:t,options:n})}removeEventListener(r,t){if(!(r in this.listeners))return;let n=this.listeners[r];for(let i=0,o=n.length;i<o;i++)if(n[i].callback===t){n.splice(i,1);return}}dispatchEvent(r){if(!(r.type in this.listeners))return;let n=this.listeners[r.type].slice();for(let i=0,o=n.length;i<o;i++){let u=n[i];try{u.callback.call(this,r)}catch(s){Promise.resolve().then(()=>{throw s})}u.options&&u.options.once&&this.removeEventListener(r.type,u.callback)}return!r.defaultPrevented}},K=class extends ye{constructor(){super(),this.listeners||ye.call(this),Object.defineProperty(this,"aborted",{value:!1,writable:!0,configurable:!0}),Object.defineProperty(this,"onabort",{value:null,writable:!0,configurable:!0}),Object.defineProperty(this,"reason",{value:void 0,writable:!0,configurable:!0})}toString(){return"[object AbortSignal]"}dispatchEvent(r){r.type==="abort"&&(this.aborted=!0,typeof this.onabort=="function"&&this.onabort.call(this,r)),super.dispatchEvent(r)}},re=class{constructor(){Object.defineProperty(this,"signal",{value:new K,writable:!0,configurable:!0})}abort(r){let t;try{t=new Event("abort")}catch(i){typeof document!="undefined"?document.createEvent?(t=document.createEvent("Event"),t.initEvent("abort",!1,!1)):(t=document.createEventObject(),t.type="abort"):t={type:"abort",bubbles:!1,cancelable:!1}}let n=r;if(n===void 0)if(typeof document=="undefined")n=new Error("This operation was aborted"),n.name="AbortError";else try{n=new DOMException("signal is aborted without reason")}catch(i){n=new Error("This operation was aborted"),n.name="AbortError"}this.signal.reason=n,this.signal.dispatchEvent(t)}toString(){return"[object AbortController]"}};typeof Symbol!="undefined"&&Symbol.toStringTag&&(re.prototype[Symbol.toStringTag]="AbortController",K.prototype[Symbol.toStringTag]="AbortSignal");function ge(e){return e.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL?(console.log("__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL=true is set, will force install polyfill"),!0):typeof e.Request=="function"&&!e.Request.prototype.hasOwnProperty("signal")||!e.AbortController}function fr(e){typeof e=="function"&&(e={fetch:e});let{fetch:r,Request:t=r.Request,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:i=!1}=e;if(!ge({fetch:r,Request:t,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:i}))return{fetch:r,Request:o};let o=t;(o&&!o.prototype.hasOwnProperty("signal")||i)&&(o=function(l,b){let c;b&&b.signal&&(c=b.signal,delete b.signal);let v=new t(l,b);return c&&Object.defineProperty(v,"signal",{writable:!1,enumerable:!1,configurable:!0,value:c}),v},o.prototype=t.prototype);let u=r;return{fetch:(p,l)=>{let b=o&&o.prototype.isPrototypeOf(p)?p.signal:l?l.signal:void 0;if(b){let c;try{c=new DOMException("Aborted","AbortError")}catch(d){c=new Error("Aborted"),c.name="AbortError"}if(b.aborted)return Promise.reject(c);let v=new Promise((d,T)=>{b.addEventListener("abort",()=>T(c),{once:!0})});return l&&l.signal&&delete l.signal,Promise.race([v,u(p,l)])}return u(p,l)},Request:o}}var te=ge({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}),Mt=te?fr({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}):void 0,jt=te?Mt.fetch:window.fetch,yd=te?Mt.Request:window.Request,gd=te?re:window.AbortController,Id=te?K:window.AbortSignal;var wa=ja(Oa(),1),mf=(c=>(c.Armenian="58",c.Azerbaijani="57",c.Belarusian="114",c.English="3",c.Kazakh="97",c.Portuguese="73",c.Russian="0",c.Spanish="4",c.Ukrainian="1",c.Uzbek="65",c.Vietnamese="75",c))(mf||{}),Tf="vk.com",bT=async(e,r,t)=>{let n=new URL(`https://${Tf}/js/lang-pack.js`);n.searchParams.set("format","json"),n.searchParams.set("name",r),e!==void 0&&n.searchParams.set("lang",e);let o=await(await jt(n.toString())).json();return hf(o,t)},hf=(e,r)=>(0,wa.default)(Object.entries(e.keys).map(([t,n])=>[t.substring(`${r}_`.length),yf(n)])),yf=e=>Array.isArray(e)?e[0]:e;var gf=(t=>(t.RU="ru",t.EN="en",t))(gf||{});export{Es as ErrorCategory,gf as InterfaceLanguage,$e as Logger,f as Observable,V as Subject,E as Subscription,Ke as Tracer,Na as VERSION,mf as VKNumericLanguage,Te as ValueSubject,Ze as VideoQuality,Ka as abortable,$a as addScript,ps as areQualitiesExact,Wa as assertEmptyArray,C as assertNever,Ga as assertNonNullable,Qa as assertNotEmptyArray,Ba as assertNullable,fs as assertQualityIsExact,wt as buffer,ka as checkNever,Ts as clearVideoElement,Ya as clientChecker,vs as cloneDeep,de as cloneDeepWith,xt as combine,xb as createURL,Et as debounce,tr as debounceFn,ns as detectEmbed,bs as fillWithDefault,qt as filter,Pt as filterChanged,me as flattenObject,xs as fromEvent,Ha as getExponentialDelay,ss as getHighestQuality,hs as getTraceSubscriptionMethod,gs as interval,is as isHigher,os as isHigherOrEqual,rr as isInvariantQuality,er as isLower,as as isLowerOrEqual,gt as isMobile,$ as isNonNullable,Ye as isNullable,gb as isValidURL,bT as loadVKLangPack,he as map,_t as mapTo,Ot as merge,U as noop,za as now,Is as observableFrom,ms as observeElementSize,At as once,Ct as pairwise,Je as safeStorage,Lt as tap,St as throttle,nr as throttleFn,sb as timeCodeToString,ys as timeout,us as videoHeightToQuality,ls as videoQualityToHeight,cs as videoSizeToQuality};
6
+ var Ra=Object.create;var We=Object.defineProperty;var Pa=Object.getOwnPropertyDescriptor;var _a=Object.getOwnPropertyNames;var Aa=Object.getPrototypeOf,Ca=Object.prototype.hasOwnProperty;var a=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),La=(e,r)=>{for(var t in r)We(e,t,{get:r[t],enumerable:!0})},Ma=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of _a(r))!Ca.call(e,i)&&i!==t&&We(e,i,{get:()=>r[i],enumerable:!(n=Pa(r,i))||n.enumerable});return e};var ja=(e,r,t)=>(t=e!=null?Ra(Aa(e)):{},Ma(r||!e||!e.__esModule?We(t,"default",{value:e,enumerable:!0}):t,e));var _=a((Od,Nt)=>{"use strict";Nt.exports=function(e){try{return!!e()}catch(r){return!0}}});var ne=a((wd,kt)=>{"use strict";var Ss=_();kt.exports=!Ss(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var L=a((Ed,Ft)=>{"use strict";var Vt=ne(),Dt=Function.prototype,br=Dt.call,qs=Vt&&Dt.bind.bind(br,br);Ft.exports=Vt?qs:function(e){return function(){return br.apply(e,arguments)}}});var Ie=a((Sd,Gt)=>{"use strict";var Ut=L(),Rs=Ut({}.toString),Ps=Ut("".slice);Gt.exports=function(e){return Ps(Rs(e),8,-1)}});var Qt=a((qd,Bt)=>{"use strict";var _s=L(),As=_(),Cs=Ie(),vr=Object,Ls=_s("".split);Bt.exports=As(function(){return!vr("z").propertyIsEnumerable(0)})?function(e){return Cs(e)==="String"?Ls(e,""):vr(e)}:vr});var xe=a((Rd,Wt)=>{"use strict";Wt.exports=function(e){return e==null}});var Oe=a((Pd,$t)=>{"use strict";var Ms=xe(),js=TypeError;$t.exports=function(e){if(Ms(e))throw new js("Can't call method on "+e);return e}});var Y=a((_d,zt)=>{"use strict";var Ns=Qt(),ks=Oe();zt.exports=function(e){return Ns(ks(e))}});var Yt=a((Ad,Kt)=>{"use strict";Kt.exports=function(){}});var B=a((Cd,Ht)=>{"use strict";Ht.exports={}});var O=a((dr,Xt)=>{"use strict";var ie=function(e){return e&&e.Math===Math&&e};Xt.exports=ie(typeof globalThis=="object"&&globalThis)||ie(typeof window=="object"&&window)||ie(typeof self=="object"&&self)||ie(typeof global=="object"&&global)||ie(typeof dr=="object"&&dr)||function(){return this}()||Function("return this")()});var w=a((Ld,Jt)=>{"use strict";var mr=typeof document=="object"&&document.all;Jt.exports=typeof mr=="undefined"&&mr!==void 0?function(e){return typeof e=="function"||e===mr}:function(e){return typeof e=="function"}});var rn=a((Md,en)=>{"use strict";var Vs=O(),Ds=w(),Zt=Vs.WeakMap;en.exports=Ds(Zt)&&/native code/.test(String(Zt))});var M=a((jd,tn)=>{"use strict";var Fs=w();tn.exports=function(e){return typeof e=="object"?e!==null:Fs(e)}});var A=a((Nd,nn)=>{"use strict";var Us=_();nn.exports=!Us(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var hr=a((kd,an)=>{"use strict";var Gs=O(),on=M(),Tr=Gs.document,Bs=on(Tr)&&on(Tr.createElement);an.exports=function(e){return Bs?Tr.createElement(e):{}}});var yr=a((Vd,sn)=>{"use strict";var Qs=A(),Ws=_(),$s=hr();sn.exports=!Qs&&!Ws(function(){return Object.defineProperty($s("div"),"a",{get:function(){return 7}}).a!==7})});var gr=a((Dd,un)=>{"use strict";var zs=A(),Ks=_();un.exports=zs&&Ks(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var Q=a((Fd,cn)=>{"use strict";var Ys=M(),Hs=String,Xs=TypeError;cn.exports=function(e){if(Ys(e))return e;throw new Xs(Hs(e)+" is not an object")}});var D=a((Ud,ln)=>{"use strict";var Js=ne(),we=Function.prototype.call;ln.exports=Js?we.bind(we):function(){return we.apply(we,arguments)}});var Ee=a((Gd,pn)=>{"use strict";pn.exports={}});var Or=a((Bd,bn)=>{"use strict";var Ir=Ee(),xr=O(),Zs=w(),fn=function(e){return Zs(e)?e:void 0};bn.exports=function(e,r){return arguments.length<2?fn(Ir[e])||fn(xr[e]):Ir[e]&&Ir[e][r]||xr[e]&&xr[e][r]}});var wr=a((Qd,vn)=>{"use strict";var eu=L();vn.exports=eu({}.isPrototypeOf)});var hn=a((Wd,Tn)=>{"use strict";var ru=O(),dn=ru.navigator,mn=dn&&dn.userAgent;Tn.exports=mn?String(mn):""});var En=a(($d,wn)=>{"use strict";var On=O(),Er=hn(),yn=On.process,gn=On.Deno,In=yn&&yn.versions||gn&&gn.version,xn=In&&In.v8,R,Se;xn&&(R=xn.split("."),Se=R[0]>0&&R[0]<4?1:+(R[0]+R[1]));!Se&&Er&&(R=Er.match(/Edge\/(\d+)/),(!R||R[1]>=74)&&(R=Er.match(/Chrome\/(\d+)/),R&&(Se=+R[1])));wn.exports=Se});var Sr=a((zd,qn)=>{"use strict";var Sn=En(),tu=_(),nu=O(),iu=nu.String;qn.exports=!!Object.getOwnPropertySymbols&&!tu(function(){var e=Symbol("symbol detection");return!iu(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Sn&&Sn<41})});var qr=a((Kd,Rn)=>{"use strict";var ou=Sr();Rn.exports=ou&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var Rr=a((Yd,Pn)=>{"use strict";var au=Or(),su=w(),uu=wr(),cu=qr(),lu=Object;Pn.exports=cu?function(e){return typeof e=="symbol"}:function(e){var r=au("Symbol");return su(r)&&uu(r.prototype,lu(e))}});var qe=a((Hd,_n)=>{"use strict";var pu=String;_n.exports=function(e){try{return pu(e)}catch(r){return"Object"}}});var oe=a((Xd,An)=>{"use strict";var fu=w(),bu=qe(),vu=TypeError;An.exports=function(e){if(fu(e))return e;throw new vu(bu(e)+" is not a function")}});var Re=a((Jd,Cn)=>{"use strict";var du=oe(),mu=xe();Cn.exports=function(e,r){var t=e[r];return mu(t)?void 0:du(t)}});var Mn=a((Zd,Ln)=>{"use strict";var Pr=D(),_r=w(),Ar=M(),Tu=TypeError;Ln.exports=function(e,r){var t,n;if(r==="string"&&_r(t=e.toString)&&!Ar(n=Pr(t,e))||_r(t=e.valueOf)&&!Ar(n=Pr(t,e))||r!=="string"&&_r(t=e.toString)&&!Ar(n=Pr(t,e)))return n;throw new Tu("Can't convert object to primitive value")}});var ae=a((em,jn)=>{"use strict";jn.exports=!0});var Vn=a((rm,kn)=>{"use strict";var Nn=O(),hu=Object.defineProperty;kn.exports=function(e,r){try{hu(Nn,e,{value:r,configurable:!0,writable:!0})}catch(t){Nn[e]=r}return r}});var Pe=a((tm,Un)=>{"use strict";var yu=ae(),gu=O(),Iu=Vn(),Dn="__core-js_shared__",Fn=Un.exports=gu[Dn]||Iu(Dn,{});(Fn.versions||(Fn.versions=[])).push({version:"3.38.0",mode:yu?"pure":"global",copyright:"\xA9 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.38.0/LICENSE",source:"https://github.com/zloirock/core-js"})});var Cr=a((nm,Bn)=>{"use strict";var Gn=Pe();Bn.exports=function(e,r){return Gn[e]||(Gn[e]=r||{})}});var Lr=a((im,Qn)=>{"use strict";var xu=Oe(),Ou=Object;Qn.exports=function(e){return Ou(xu(e))}});var j=a((om,Wn)=>{"use strict";var wu=L(),Eu=Lr(),Su=wu({}.hasOwnProperty);Wn.exports=Object.hasOwn||function(r,t){return Su(Eu(r),t)}});var Mr=a((am,$n)=>{"use strict";var qu=L(),Ru=0,Pu=Math.random(),_u=qu(1 .toString);$n.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+_u(++Ru+Pu,36)}});var N=a((sm,Kn)=>{"use strict";var Au=O(),Cu=Cr(),zn=j(),Lu=Mr(),Mu=Sr(),ju=qr(),H=Au.Symbol,jr=Cu("wks"),Nu=ju?H.for||H:H&&H.withoutSetter||Lu;Kn.exports=function(e){return zn(jr,e)||(jr[e]=Mu&&zn(H,e)?H[e]:Nu("Symbol."+e)),jr[e]}});var Jn=a((um,Xn)=>{"use strict";var ku=D(),Yn=M(),Hn=Rr(),Vu=Re(),Du=Mn(),Fu=N(),Uu=TypeError,Gu=Fu("toPrimitive");Xn.exports=function(e,r){if(!Yn(e)||Hn(e))return e;var t=Vu(e,Gu),n;if(t){if(r===void 0&&(r="default"),n=ku(t,e,r),!Yn(n)||Hn(n))return n;throw new Uu("Can't convert object to primitive value")}return r===void 0&&(r="number"),Du(e,r)}});var Nr=a((cm,Zn)=>{"use strict";var Bu=Jn(),Qu=Rr();Zn.exports=function(e){var r=Bu(e,"string");return Qu(r)?r:r+""}});var X=a(ri=>{"use strict";var Wu=A(),$u=yr(),zu=gr(),_e=Q(),ei=Nr(),Ku=TypeError,kr=Object.defineProperty,Yu=Object.getOwnPropertyDescriptor,Vr="enumerable",Dr="configurable",Fr="writable";ri.f=Wu?zu?function(r,t,n){if(_e(r),t=ei(t),_e(n),typeof r=="function"&&t==="prototype"&&"value"in n&&Fr in n&&!n[Fr]){var i=Yu(r,t);i&&i[Fr]&&(r[t]=n.value,n={configurable:Dr in n?n[Dr]:i[Dr],enumerable:Vr in n?n[Vr]:i[Vr],writable:!1})}return kr(r,t,n)}:kr:function(r,t,n){if(_e(r),t=ei(t),_e(n),$u)try{return kr(r,t,n)}catch(i){}if("get"in n||"set"in n)throw new Ku("Accessors not supported");return"value"in n&&(r[t]=n.value),r}});var se=a((pm,ti)=>{"use strict";ti.exports=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}}});var J=a((fm,ni)=>{"use strict";var Hu=A(),Xu=X(),Ju=se();ni.exports=Hu?function(e,r,t){return Xu.f(e,r,Ju(1,t))}:function(e,r,t){return e[r]=t,e}});var Ae=a((bm,oi)=>{"use strict";var Zu=Cr(),ec=Mr(),ii=Zu("keys");oi.exports=function(e){return ii[e]||(ii[e]=ec(e))}});var Ce=a((vm,ai)=>{"use strict";ai.exports={}});var li=a((dm,ci)=>{"use strict";var rc=rn(),ui=O(),tc=M(),nc=J(),Ur=j(),Gr=Pe(),ic=Ae(),oc=Ce(),si="Object already initialized",Br=ui.TypeError,ac=ui.WeakMap,Le,ue,Me,sc=function(e){return Me(e)?ue(e):Le(e,{})},uc=function(e){return function(r){var t;if(!tc(r)||(t=ue(r)).type!==e)throw new Br("Incompatible receiver, "+e+" required");return t}};rc||Gr.state?(P=Gr.state||(Gr.state=new ac),P.get=P.get,P.has=P.has,P.set=P.set,Le=function(e,r){if(P.has(e))throw new Br(si);return r.facade=e,P.set(e,r),r},ue=function(e){return P.get(e)||{}},Me=function(e){return P.has(e)}):(W=ic("state"),oc[W]=!0,Le=function(e,r){if(Ur(e,W))throw new Br(si);return r.facade=e,nc(e,W,r),r},ue=function(e){return Ur(e,W)?e[W]:{}},Me=function(e){return Ur(e,W)});var P,W;ci.exports={set:Le,get:ue,has:Me,enforce:sc,getterFor:uc}});var di=a((mm,vi)=>{"use strict";var cc=ne(),bi=Function.prototype,pi=bi.apply,fi=bi.call;vi.exports=typeof Reflect=="object"&&Reflect.apply||(cc?fi.bind(pi):function(){return fi.apply(pi,arguments)})});var Qr=a((Tm,mi)=>{"use strict";var lc=Ie(),pc=L();mi.exports=function(e){if(lc(e)==="Function")return pc(e)}});var gi=a(yi=>{"use strict";var Ti={}.propertyIsEnumerable,hi=Object.getOwnPropertyDescriptor,fc=hi&&!Ti.call({1:2},1);yi.f=fc?function(r){var t=hi(this,r);return!!t&&t.enumerable}:Ti});var Oi=a(xi=>{"use strict";var bc=A(),vc=D(),dc=gi(),mc=se(),Tc=Y(),hc=Nr(),yc=j(),gc=yr(),Ii=Object.getOwnPropertyDescriptor;xi.f=bc?Ii:function(r,t){if(r=Tc(r),t=hc(t),gc)try{return Ii(r,t)}catch(n){}if(yc(r,t))return mc(!vc(dc.f,r,t),r[t])}});var Ei=a((gm,wi)=>{"use strict";var Ic=_(),xc=w(),Oc=/#|\.prototype\./,ce=function(e,r){var t=Ec[wc(e)];return t===qc?!0:t===Sc?!1:xc(r)?Ic(r):!!r},wc=ce.normalize=function(e){return String(e).replace(Oc,".").toLowerCase()},Ec=ce.data={},Sc=ce.NATIVE="N",qc=ce.POLYFILL="P";wi.exports=ce});var Wr=a((Im,qi)=>{"use strict";var Si=Qr(),Rc=oe(),Pc=ne(),_c=Si(Si.bind);qi.exports=function(e,r){return Rc(e),r===void 0?e:Pc?_c(e,r):function(){return e.apply(r,arguments)}}});var $r=a((xm,Pi)=>{"use strict";var le=O(),Ac=di(),Cc=Qr(),Lc=w(),Mc=Oi().f,jc=Ei(),Z=Ee(),Nc=Wr(),ee=J(),Ri=j();Pe();var kc=function(e){var r=function(t,n,i){if(this instanceof r){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,i)}return Ac(e,this,arguments)};return r.prototype=e.prototype,r};Pi.exports=function(e,r){var t=e.target,n=e.global,i=e.stat,o=e.proto,u=n?le:i?le[t]:le[t]&&le[t].prototype,s=n?Z:Z[t]||ee(Z,t,{})[t],p=s.prototype,l,b,c,v,d,T,h,I,y;for(v in r)l=jc(n?v:t+(i?".":"#")+v,e.forced),b=!l&&u&&Ri(u,v),T=s[v],b&&(e.dontCallGetSet?(y=Mc(u,v),h=y&&y.value):h=u[v]),d=b&&h?h:r[v],!(!l&&!o&&typeof T==typeof d)&&(e.bind&&b?I=Nc(d,le):e.wrap&&b?I=kc(d):o&&Lc(d)?I=Cc(d):I=d,(e.sham||d&&d.sham||T&&T.sham)&&ee(I,"sham",!0),ee(s,v,I),o&&(c=t+"Prototype",Ri(Z,c)||ee(Z,c,{}),ee(Z[c],v,d),e.real&&p&&(l||!p[v])&&ee(p,v,d)))}});var Ci=a((Om,Ai)=>{"use strict";var zr=A(),Vc=j(),_i=Function.prototype,Dc=zr&&Object.getOwnPropertyDescriptor,Kr=Vc(_i,"name"),Fc=Kr&&function(){}.name==="something",Uc=Kr&&(!zr||zr&&Dc(_i,"name").configurable);Ai.exports={EXISTS:Kr,PROPER:Fc,CONFIGURABLE:Uc}});var Mi=a((wm,Li)=>{"use strict";var Gc=Math.ceil,Bc=Math.floor;Li.exports=Math.trunc||function(r){var t=+r;return(t>0?Bc:Gc)(t)}});var Yr=a((Em,ji)=>{"use strict";var Qc=Mi();ji.exports=function(e){var r=+e;return r!==r||r===0?0:Qc(r)}});var ki=a((Sm,Ni)=>{"use strict";var Wc=Yr(),$c=Math.max,zc=Math.min;Ni.exports=function(e,r){var t=Wc(e);return t<0?$c(t+r,0):zc(t,r)}});var Di=a((qm,Vi)=>{"use strict";var Kc=Yr(),Yc=Math.min;Vi.exports=function(e){var r=Kc(e);return r>0?Yc(r,9007199254740991):0}});var Hr=a((Rm,Fi)=>{"use strict";var Hc=Di();Fi.exports=function(e){return Hc(e.length)}});var Bi=a((Pm,Gi)=>{"use strict";var Xc=Y(),Jc=ki(),Zc=Hr(),Ui=function(e){return function(r,t,n){var i=Xc(r),o=Zc(i);if(o===0)return!e&&-1;var u=Jc(n,o),s;if(e&&t!==t){for(;o>u;)if(s=i[u++],s!==s)return!0}else for(;o>u;u++)if((e||u in i)&&i[u]===t)return e||u||0;return!e&&-1}};Gi.exports={includes:Ui(!0),indexOf:Ui(!1)}});var $i=a((_m,Wi)=>{"use strict";var el=L(),Xr=j(),rl=Y(),tl=Bi().indexOf,nl=Ce(),Qi=el([].push);Wi.exports=function(e,r){var t=rl(e),n=0,i=[],o;for(o in t)!Xr(nl,o)&&Xr(t,o)&&Qi(i,o);for(;r.length>n;)Xr(t,o=r[n++])&&(~tl(i,o)||Qi(i,o));return i}});var Jr=a((Am,zi)=>{"use strict";zi.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var Yi=a((Cm,Ki)=>{"use strict";var il=$i(),ol=Jr();Ki.exports=Object.keys||function(r){return il(r,ol)}});var Xi=a(Hi=>{"use strict";var al=A(),sl=gr(),ul=X(),cl=Q(),ll=Y(),pl=Yi();Hi.f=al&&!sl?Object.defineProperties:function(r,t){cl(r);for(var n=ll(t),i=pl(t),o=i.length,u=0,s;o>u;)ul.f(r,s=i[u++],n[s]);return r}});var Zi=a((Mm,Ji)=>{"use strict";var fl=Or();Ji.exports=fl("document","documentElement")});var tt=a((jm,ao)=>{"use strict";var bl=Q(),vl=Xi(),eo=Jr(),dl=Ce(),ml=Zi(),Tl=hr(),hl=Ae(),ro=">",to="<",et="prototype",rt="script",io=hl("IE_PROTO"),Zr=function(){},oo=function(e){return to+rt+ro+e+to+"/"+rt+ro},no=function(e){e.write(oo("")),e.close();var r=e.parentWindow.Object;return e=null,r},yl=function(){var e=Tl("iframe"),r="java"+rt+":",t;return e.style.display="none",ml.appendChild(e),e.src=String(r),t=e.contentWindow.document,t.open(),t.write(oo("document.F=Object")),t.close(),t.F},je,Ne=function(){try{je=new ActiveXObject("htmlfile")}catch(r){}Ne=typeof document!="undefined"?document.domain&&je?no(je):yl():no(je);for(var e=eo.length;e--;)delete Ne[et][eo[e]];return Ne()};dl[io]=!0;ao.exports=Object.create||function(r,t){var n;return r!==null?(Zr[et]=bl(r),n=new Zr,Zr[et]=null,n[io]=r):n=Ne(),t===void 0?n:vl.f(n,t)}});var uo=a((Nm,so)=>{"use strict";var gl=_();so.exports=!gl(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var it=a((km,lo)=>{"use strict";var Il=j(),xl=w(),Ol=Lr(),wl=Ae(),El=uo(),co=wl("IE_PROTO"),nt=Object,Sl=nt.prototype;lo.exports=El?nt.getPrototypeOf:function(e){var r=Ol(e);if(Il(r,co))return r[co];var t=r.constructor;return xl(t)&&r instanceof t?t.prototype:r instanceof nt?Sl:null}});var ot=a((Vm,po)=>{"use strict";var ql=J();po.exports=function(e,r,t,n){return n&&n.enumerable?e[r]=t:ql(e,r,t),e}});var ct=a((Dm,vo)=>{"use strict";var Rl=_(),Pl=w(),_l=M(),Al=tt(),fo=it(),Cl=ot(),Ll=N(),Ml=ae(),ut=Ll("iterator"),bo=!1,k,at,st;[].keys&&(st=[].keys(),"next"in st?(at=fo(fo(st)),at!==Object.prototype&&(k=at)):bo=!0);var jl=!_l(k)||Rl(function(){var e={};return k[ut].call(e)!==e});jl?k={}:Ml&&(k=Al(k));Pl(k[ut])||Cl(k,ut,function(){return this});vo.exports={IteratorPrototype:k,BUGGY_SAFARI_ITERATORS:bo}});var ke=a((Fm,To)=>{"use strict";var Nl=N(),kl=Nl("toStringTag"),mo={};mo[kl]="z";To.exports=String(mo)==="[object z]"});var lt=a((Um,ho)=>{"use strict";var Vl=ke(),Dl=w(),Ve=Ie(),Fl=N(),Ul=Fl("toStringTag"),Gl=Object,Bl=Ve(function(){return arguments}())==="Arguments",Ql=function(e,r){try{return e[r]}catch(t){}};ho.exports=Vl?Ve:function(e){var r,t,n;return e===void 0?"Undefined":e===null?"Null":typeof(t=Ql(r=Gl(e),Ul))=="string"?t:Bl?Ve(r):(n=Ve(r))==="Object"&&Dl(r.callee)?"Arguments":n}});var go=a((Gm,yo)=>{"use strict";var Wl=ke(),$l=lt();yo.exports=Wl?{}.toString:function(){return"[object "+$l(this)+"]"}});var De=a((Bm,xo)=>{"use strict";var zl=ke(),Kl=X().f,Yl=J(),Hl=j(),Xl=go(),Jl=N(),Io=Jl("toStringTag");xo.exports=function(e,r,t,n){var i=t?e:e&&e.prototype;i&&(Hl(i,Io)||Kl(i,Io,{configurable:!0,value:r}),n&&!zl&&Yl(i,"toString",Xl))}});var wo=a((Qm,Oo)=>{"use strict";var Zl=ct().IteratorPrototype,ep=tt(),rp=se(),tp=De(),np=B(),ip=function(){return this};Oo.exports=function(e,r,t,n){var i=r+" Iterator";return e.prototype=ep(Zl,{next:rp(+!n,t)}),tp(e,i,!1,!0),np[i]=ip,e}});var So=a((Wm,Eo)=>{"use strict";var op=L(),ap=oe();Eo.exports=function(e,r,t){try{return op(ap(Object.getOwnPropertyDescriptor(e,r)[t]))}catch(n){}}});var Ro=a(($m,qo)=>{"use strict";var sp=M();qo.exports=function(e){return sp(e)||e===null}});var _o=a((zm,Po)=>{"use strict";var up=Ro(),cp=String,lp=TypeError;Po.exports=function(e){if(up(e))return e;throw new lp("Can't set "+cp(e)+" as a prototype")}});var Co=a((Km,Ao)=>{"use strict";var pp=So(),fp=M(),bp=Oe(),vp=_o();Ao.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,r={},t;try{t=pp(Object.prototype,"__proto__","set"),t(r,[]),e=r instanceof Array}catch(n){}return function(i,o){return bp(i),vp(o),fp(i)&&(e?t(i,o):i.__proto__=o),i}}():void 0)});var Bo=a((Ym,Go)=>{"use strict";var dp=$r(),mp=D(),Fe=ae(),Fo=Ci(),Tp=w(),hp=wo(),Lo=it(),Mo=Co(),yp=De(),gp=J(),pt=ot(),Ip=N(),jo=B(),Uo=ct(),xp=Fo.PROPER,Op=Fo.CONFIGURABLE,No=Uo.IteratorPrototype,Ue=Uo.BUGGY_SAFARI_ITERATORS,pe=Ip("iterator"),ko="keys",fe="values",Vo="entries",Do=function(){return this};Go.exports=function(e,r,t,n,i,o,u){hp(t,r,n);var s=function(y){if(y===i&&v)return v;if(!Ue&&y&&y in b)return b[y];switch(y){case ko:return function(){return new t(this,y)};case fe:return function(){return new t(this,y)};case Vo:return function(){return new t(this,y)}}return function(){return new t(this)}},p=r+" Iterator",l=!1,b=e.prototype,c=b[pe]||b["@@iterator"]||i&&b[i],v=!Ue&&c||s(i),d=r==="Array"&&b.entries||c,T,h,I;if(d&&(T=Lo(d.call(new e)),T!==Object.prototype&&T.next&&(!Fe&&Lo(T)!==No&&(Mo?Mo(T,No):Tp(T[pe])||pt(T,pe,Do)),yp(T,p,!0,!0),Fe&&(jo[p]=Do))),xp&&i===fe&&c&&c.name!==fe&&(!Fe&&Op?gp(b,"name",fe):(l=!0,v=function(){return mp(c,this)})),i)if(h={values:s(fe),keys:o?v:s(ko),entries:s(Vo)},u)for(I in h)(Ue||l||!(I in b))&&pt(b,I,h[I]);else dp({target:r,proto:!0,forced:Ue||l},h);return(!Fe||u)&&b[pe]!==v&&pt(b,pe,v,{name:i}),jo[r]=v,h}});var Wo=a((Hm,Qo)=>{"use strict";Qo.exports=function(e,r){return{value:e,done:r}}});var bt=a((Xm,Ho)=>{"use strict";var wp=Y(),ft=Yt(),$o=B(),Ko=li(),Ep=X().f,Sp=Bo(),Ge=Wo(),qp=ae(),Rp=A(),Yo="Array Iterator",Pp=Ko.set,_p=Ko.getterFor(Yo);Ho.exports=Sp(Array,"Array",function(e,r){Pp(this,{type:Yo,target:wp(e),index:0,kind:r})},function(){var e=_p(this),r=e.target,t=e.index++;if(!r||t>=r.length)return e.target=void 0,Ge(void 0,!0);switch(e.kind){case"keys":return Ge(t,!1);case"values":return Ge(r[t],!1)}return Ge([t,r[t]],!1)},"values");var zo=$o.Arguments=$o.Array;ft("keys");ft("values");ft("entries");if(!qp&&Rp&&zo.name!=="values")try{Ep(zo,"name",{value:"values"})}catch(e){}});var Jo=a((Jm,Xo)=>{"use strict";var Ap=N(),Cp=B(),Lp=Ap("iterator"),Mp=Array.prototype;Xo.exports=function(e){return e!==void 0&&(Cp.Array===e||Mp[Lp]===e)}});var vt=a((Zm,ea)=>{"use strict";var jp=lt(),Zo=Re(),Np=xe(),kp=B(),Vp=N(),Dp=Vp("iterator");ea.exports=function(e){if(!Np(e))return Zo(e,Dp)||Zo(e,"@@iterator")||kp[jp(e)]}});var ta=a((eT,ra)=>{"use strict";var Fp=D(),Up=oe(),Gp=Q(),Bp=qe(),Qp=vt(),Wp=TypeError;ra.exports=function(e,r){var t=arguments.length<2?Qp(e):r;if(Up(t))return Gp(Fp(t,e));throw new Wp(Bp(e)+" is not iterable")}});var oa=a((rT,ia)=>{"use strict";var $p=D(),na=Q(),zp=Re();ia.exports=function(e,r,t){var n,i;na(e);try{if(n=zp(e,"return"),!n){if(r==="throw")throw t;return t}n=$p(n,e)}catch(o){i=!0,n=o}if(r==="throw")throw t;if(i)throw n;return na(n),t}});var la=a((tT,ca)=>{"use strict";var Kp=Wr(),Yp=D(),Hp=Q(),Xp=qe(),Jp=Jo(),Zp=Hr(),aa=wr(),ef=ta(),rf=vt(),sa=oa(),tf=TypeError,Be=function(e,r){this.stopped=e,this.result=r},ua=Be.prototype;ca.exports=function(e,r,t){var n=t&&t.that,i=!!(t&&t.AS_ENTRIES),o=!!(t&&t.IS_RECORD),u=!!(t&&t.IS_ITERATOR),s=!!(t&&t.INTERRUPTED),p=Kp(r,n),l,b,c,v,d,T,h,I=function(g){return l&&sa(l,"normal",g),new Be(!0,g)},y=function(g){return i?(Hp(g),s?p(g[0],g[1],I):p(g[0],g[1])):s?p(g,I):p(g)};if(o)l=e.iterator;else if(u)l=e;else{if(b=rf(e),!b)throw new tf(Xp(e)+" is not iterable");if(Jp(b)){for(c=0,v=Zp(e);v>c;c++)if(d=y(e[c]),d&&aa(ua,d))return d;return new Be(!1)}l=ef(e,b)}for(T=o?e.next:l.next;!(h=Yp(T,l)).done;){try{d=y(h.value)}catch(g){sa(l,"throw",g)}if(typeof d=="object"&&d&&aa(ua,d))return d}return new Be(!1)}});var fa=a((nT,pa)=>{"use strict";var nf=A(),of=X(),af=se();pa.exports=function(e,r,t){nf?of.f(e,r,af(0,t)):e[r]=t}});var ba=a(()=>{"use strict";var sf=$r(),uf=la(),cf=fa();sf({target:"Object",stat:!0},{fromEntries:function(r){var t={};return uf(r,function(n,i){cf(t,n,i)},{AS_ENTRIES:!0}),t}})});var da=a((aT,va)=>{"use strict";bt();ba();var lf=Ee();va.exports=lf.Object.fromEntries});var Ta=a((sT,ma)=>{"use strict";ma.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}});var ya=a(()=>{"use strict";bt();var pf=Ta(),ff=O(),bf=De(),ha=B();for(Qe in pf)bf(ff[Qe],Qe),ha[Qe]=ha.Array;var Qe});var Ia=a((lT,ga)=>{"use strict";var vf=da();ya();ga.exports=vf});var Oa=a((pT,xa)=>{"use strict";var df=Ia();xa.exports=df});var Na="1.0.50-dev.eaae0302.0";var E=class{constructor(){this.subscriptions=[]}unsubscribe(){let r=this.subscriptions;this.subscriptions=[],r.forEach(t=>typeof t=="function"?t():t.unsubscribe())}add(r){return this.subscriptions.push(r),this}};var C=e=>{throw new Error(`${e} is value of unexpected type`)},ka=e=>{};var U=()=>{};var f=class{constructor(r){r&&(this._subscribe=r)}subscribe(r,t){var u;let n;t?typeof t=="function"?n={next:t,error:U}:n={next:s=>t.next(s),error:s=>{var p;return(p=t.error)==null?void 0:p.call(t,s)}}:n={next:U,error:U};let i=typeof r=="function"?{next:s=>{try{r(s)}catch(p){n.next(p)}},error:s=>n.next(s)}:{next:s=>r.next(s),error:s=>r.error?r.error(s):n.next(s)},o;try{o=this._subscribe(i)}catch(s){(u=i.error)==null||u.call(i,s)}return new E().add(()=>{switch(i.next=U,i.error=U,typeof o){case"function":o();return;case"object":o.unsubscribe();return;case"undefined":return;default:return C(o)}})}pipe(...r){return r.reduce((t,n)=>n(t),this)}_subscribe(r){}};var V=class extends f{constructor(){super();this.keyCounter=0;this.subscribers=new Map}next(t){this.subscribers.forEach(n=>n.next(t))}error(t){this.subscribers.forEach(n=>{var i;return(i=n.error)==null?void 0:i.call(n,t)})}_subscribe(t){let n=this.keyCounter++;return this.subscribers.set(n,t),new E().add(()=>this.subscribers.delete(n))}};var $e=class{constructor(){this.log$=new V;this.logs=[];this.log=r=>{let t={...r,timestamp:Date.now()};this.logs.push(t),this.log$.next(t)};this.getAllLogs=()=>this.logs}createCustomLog(r){return(...t)=>{let n;try{n=r(...t)}catch(i){n={message:"error in `createCustomLog`",component:"Logger"}}this.log(n)}}createComponentLog(r){return this.createCustomLog(t=>({component:r,...t}))}};import{trace as Va,context as Da}from"@opentelemetry/api";import{TracerAllSpansProcessor as Fa,TracerMemorySpanExporter as ht,initTracerOpenTelemetry as Ua}from"@tracer/opentelemetry";var ze=class e{constructor({name:r}){}log(r,t){}error(r,t){}critical(r,t){}createComponentTracer(r){return new e({name:r})}end(){}getFinishedSpans(){}getTraceId(){return this.fakeTraceId}},Ke=class e{constructor({name:r,parentContext:t,tracer:n}){this.childTracers=[];let i=!n;if(i){let u=Ua({serviceName:"videoplayer-sdk-web",appToken:"L9SBoka6ZWk4xPjaK7tmfSfYvMhcge7nvGDjpdMmscb",spanLimits:{attributeCountLimit:1/0,eventCountLimit:1/0,attributePerEventCountLimit:1/0}}).getProvider(),s=new ht,p=new ht;this.spanExporter=s,u.addSpanProcessor(new Fa({startedSpansExporter:s,endedSpansExporter:p})),this.tracer=u.getTracer("sdk-videoplayer-tracer")}else this.tracer=n;this.span=this.tracer.startSpan(r,{root:i},t),this.context=Va.setSpan(Da.active(),this.span)}log(r,t){this.span.addEvent(r,{...t,type:"log"})}error(r,t){this.span.addEvent(r,{...t,type:"error"})}critical(r,t){this.span.addEvent(r,{...t,type:"critical"})}static createRootTracer(r=!1){return r?new e({name:"Root"}):new ze({name:"Root"})}createComponentTracer(r){let t=new e({name:r,parentContext:this.context,tracer:this.tracer});return this.childTracers.push(t),t}end(){this.childTracers.forEach(r=>r.end()),this.span.end()}getFinishedSpans(){var r;return(r=this.spanExporter)==null?void 0:r.getJsonData()}getTraceId(){return this.span.spanContext().traceId}};function Ga(e,r='Assertion "value is not nullable" failed'){if(e==null)throw new Error(r)}function Ba(e,r='Assertion "value is nullable" failed'){if(e!=null)throw new Error(r)}function $(e){return typeof e!="undefined"&&e!==null}function Ye(e){return e==null}function Qa(e,r){if(!(e!=null&&e.length))throw new Error(r)}function Wa(e,r){if(e!=null&&e.length)throw new Error(r)}var $a=(e,r,t)=>new Promise((n,i)=>{r.addEventListener("abort",()=>{s(),l.remove()});let o=()=>{s(),i()},u=()=>{s(),n()},s=()=>{p&&clearTimeout(p),l.removeEventListener("load",u),l.removeEventListener("error",o)},p;t&&(p=window.setTimeout(o,t));let l=document.createElement("script");l.addEventListener("load",u),l.addEventListener("error",o),l.src=e,document.head.appendChild(l)});var yt,za=typeof((yt=window.performance)==null?void 0:yt.now)=="function"?()=>window.performance.now():()=>Date.now();var Ka=(e,r)=>async(...t)=>{var u;let n=r(...t),i=e.aborted,o;for(;!i&&!e.aborted;)try{let s=await n.next(o);i=(u=s.done)!=null?u:!1,o=s.value}catch(s){await n.throw(s)}return o};var gt=()=>{var e,r;return/Mobile|mini|Fennec|Android|iP(ad|od|hone)/.test((e=navigator.appVersion)!=null?e:navigator.userAgent)||((r=navigator==null?void 0:navigator.userAgentData)==null?void 0:r.mobile)},He=class{constructor(){this.detect()}get browser(){return this._currentBrowser}get device(){return this._currentDevice}get isTouch(){return this._maxTouchPoints>0}get isIOS(){return["iPhone","iPad","iPod"].includes(this.device)}get isMac(){return this.device==="Mac"}get isApple(){return this.isIOS||this.isMac}get isIphoneOrOldIpad(){if(!this.isApple||!this.isTouch)return!1;let r=this.device==="iPad"||(window==null?void 0:window.screen.width)>700,t=this._iosVersion;return!r||r&&!!t&&t<16}get isAndroid(){return this.device==="Android"}get isMobile(){return this._isMobile}get iOSVersion(){return this._iosVersion}get macVersion(){return this._macVersion}get isYandex(){return this.browser==="Yandex"}get isSafari(){return this.browser==="Safari"}get isSamsungBrowser(){return this.browser==="SamsungBrowser"}get isHDR(){return this._isHdr}detect(){var n;let{userAgent:r,maxTouchPoints:t}=navigator;try{this._maxTouchPoints=t,this._isHdr=!!((n=matchMedia("(dynamic-range: high)"))!=null&&n.matches)}catch(i){console.error(i)}try{this._isMobile=gt()}catch(i){console.error(i)}this.detectBrowser(r),this.detectDevice(r),this.isIOS&&this.detectIOSVersion(),this.isMac&&this.detectMacVersion()}detectBrowser(r){try{let t=/yabrowser/i.test(r)?"Yandex":void 0,n=/samsungbrowser/i.test(r)?"SamsungBrowser":void 0,i=/chrome|crios/i.test(r)?"Chrome":void 0,o=/chromium/i.test(r)?"Chromium":void 0,u=/firefox|fxios/i.test(r)?"Firefox":void 0,s=/webkit|safari|khtml/i.test(r)?"Safari":void 0,p=/opr\//i.test(r)?"Opera":void 0,l=/edg/i.test(r)?"Edge":void 0;this._currentBrowser=t||n||u||p||l||i||o||s||"Rest"}catch(t){console.error(t)}}detectDevice(r){try{let t=/android/i.test(r)?"Android":void 0,n=/iphone/i.test(r)?"iPhone":void 0,i=/ipad/i.test(r)?"iPad":void 0,o=/ipod/i.test(r)?"iPod":void 0,u=/mac/i.test(r)?"Mac":void 0,s=/webOS|BlackBerry|IEMobile|Opera Mini/i.test(r)?"RestMobile":void 0;this._currentDevice=t||n||i||o||s||u||"Desktop"}catch(t){console.error(t)}}detectIOSVersion(){try{let{userAgent:r}=window.navigator,t=r.match(/Version\/(\d+(\.\d+)?)/i);if(!t)return;let n=t[1],i=parseFloat(n);if(isNaN(i))return;this._iosVersion=i}catch(r){console.error(r)}}detectMacVersion(){try{let{userAgent:r}=window.navigator,t=r.match(/Version\/(\d+)/);if(!t)return;let n=t[1],i=parseInt(n,10);if(isNaN(i))return;this._macVersion=i}catch(r){console.error(r)}}},Ya=new He;var Ha=(e,{start:r=0,factor:t=2,max:n=1/0,min:i=r,random:o=0}={})=>{let u=r;return u*=t**e,u*=1+(Math.random()*o*2-o),u=Math.round(u),u=Math.min(u,n),u=Math.max(u,i),u};var Je={};La(Je,{clear:()=>ts,get:()=>Ja,has:()=>es,isPersistent:()=>Xa,remove:()=>rs,set:()=>Za});var x,G,Xe=`vk-videoplayer-dummy-key-${Math.random()}`,z=()=>{if(G!==void 0)return G;try{localStorage.setItem(Xe,"test"),localStorage.removeItem(Xe),G=0}catch(e){if(e instanceof DOMException||e instanceof TypeError)try{sessionStorage.getItem(Xe),G=1}catch(r){if(r instanceof DOMException||r instanceof TypeError)G=2;else throw r}else throw e}return G===2&&(x=new Map),G},Xa=()=>z()===0,Ja=e=>{var t,n;let r=z();switch(r){case 0:return(t=localStorage.getItem(e))!=null?t:void 0;case 1:return(n=sessionStorage.getItem(e))!=null?n:void 0;case 2:return x==null?void 0:x.get(e);default:C(r)}},Za=(e,r)=>{let t=z();switch(t){case 0:try{localStorage.setItem(e,r)}catch(n){if(n instanceof DOMException)console.error(n);else throw n}break;case 1:try{sessionStorage.setItem(e,r)}catch(n){if(n instanceof DOMException)console.error(n);else throw n}break;case 2:return void(x==null?void 0:x.set(e,r));default:C(t)}},es=e=>{var t;let r=z();switch(r){case 0:return e in localStorage;case 1:return e in sessionStorage;case 2:return(t=x==null?void 0:x.has(e))!=null?t:!1;default:return C(r),!1}},rs=e=>{let r=z();switch(r){case 0:return localStorage.removeItem(e);case 1:return sessionStorage.removeItem(e);case 2:return void(x==null?void 0:x.delete(e));default:C(r)}},ts=()=>{let e=z();switch(e){case 0:return localStorage.clear();case 1:return sessionStorage.clear();case 2:return x==null?void 0:x.clear();default:C(e)}};var ns=()=>{let e,r;try{e=window.self!==window.top}catch(n){n instanceof DOMException&&n.name==="SecurityError"?e=!0:(e=!1,console.error(n))}try{window.location.ancestorOrigins&&(r=window.location.ancestorOrigins[window.location.ancestorOrigins.length-1])}catch(n){console.error(n)}try{!r&&document.referrer&&(r=document.referrer)}catch(n){console.error(n)}let t=r?new URL(r).hostname:void 0;return{isEmbed:e,host:t}};var Ze=(c=>(c.INVARIANT="Invariant quality",c.Q_144P="144p",c.Q_240P="240p",c.Q_360P="360p",c.Q_480P="480p",c.Q_576P="576p",c.Q_720P="720p",c.Q_1080P="1080p",c.Q_1440P="1440p",c.Q_2160P="2160p",c.Q_4320P="4320p",c))(Ze||{});var S={"144p":{width:256,height:144},"240p":{width:428,height:240},"360p":{width:640,height:360},"480p":{width:856,height:480},"576p":{width:1024,height:576},"720p":{width:1280,height:720},"1080p":{width:1920,height:1080},"1440p":{width:2560,height:1440},"2160p":{width:3840,height:2160},"4320p":{width:7680,height:4320}},is=(e,r)=>S[e].height>S[r].height,os=(e,r)=>S[e].height>=S[r].height,er=(e,r)=>S[e].height<S[r].height,as=(e,r)=>S[e].height<=S[r].height,ss=e=>e.sort((r,t)=>r===t?0:r==="Invariant quality"?1:t==="Invariant quality"?-1:er(r,t)?1:-1)[0],It=Object.keys(S).sort((e,r)=>er(e,r)?-1:1),us=(e,r=.02)=>[...It].find(n=>S[n].height*(1+r)>=e),cs=({width:e,height:r})=>{let t=Math.min(e,r),n=Math.max(e,r);return It.find(i=>{let o=S[i];return o.width>=n&&o.height>=t})},ls=e=>S[e].height,rr=e=>e==="Invariant quality",ps=e=>e.every(r=>!rr(r));function fs(e){if(rr(e))throw new Error("Expected exact quality")}var bs=(e,r)=>{let t={};for(let n of Object.keys(r)){let i=r[n],o=e[n];Array.isArray(i)&&Array.isArray(o)?t[n]=o:typeof i=="object"&&typeof o=="object"?t[n]=bs(o,i):t[n]=n in e?o:i}return t};var sb=e=>{let r="";return e>=3600&&(r+=Math.floor(e/3600)+"h",e=e%3600),e>=60&&(r+=Math.floor(e/60)+"m",e=e%60),e>0&&(r+=Math.floor(e)+"s"),r};function tr(e,r=0,t){let n,i,o,u,s,p,l=0,b=!1,c=!1,v=!0,d=!r&&r!==0&&typeof window.requestAnimationFrame=="function";t&&(b=!!t.leading,c="maxWait"in t,o=t!=null&&t.maxWait?Math.max(+(t==null?void 0:t.maxWait)||0,r):o,v="trailing"in t?!!t.trailing:v);function T(m){let q=n,F=i;return n=i=void 0,l=m,u=e.apply(F,q),u}function h(m,q){return d?(s&&window.cancelAnimationFrame(s),window.requestAnimationFrame(m)):setTimeout(m,q)}function I(m){if(d){window.cancelAnimationFrame(m);return}clearTimeout(m)}function y(m){return l=m,s=h(be,r),b?T(m):u}function g(m){let q=m-p,F=m-l,Tt=r-q;return c?Math.min(Tt,o-F):Tt}function dt(m){let q=m-p,F=m-l;return p===void 0||q>=r||q<0||c&&F>=o}function be(){let m=Date.now();if(dt(m))return mt(m);s=h(be,g(m))}function mt(m){return s=void 0,v&&n?T(m):(n=i=void 0,u)}function Ea(){s!==void 0&&I(s),l=0,n=p=i=s=void 0}function Sa(){return s===void 0?u:mt(Date.now())}function qa(){return s!==void 0}function ve(...m){let q=Date.now(),F=dt(q);if(n=m,i=this,p=q,F){if(s===void 0)return y(p);if(c)return s=h(be,r),T(p)}return s===void 0&&(s=h(be,r)),u}return ve.cancel=Ea,ve.flush=Sa,ve.pending=qa,ve}var nr=(e,r=0,t)=>tr(e,r,{...{leading:!0,trailing:!0},...t,maxWait:r});var de=(e,r)=>{if(e===null||typeof e!="object")return e;let t=Array.isArray(e)?[]:{};for(let n in e){if(typeof r=="function"){let i=r(e[n],n,e,t);if(i!==void 0){t[n]=i;continue}}typeof e[n]=="object"?t[n]=de(e[n],r):t[n]=e[n]}return t};var vs=e=>de(e);var ds=300,ms=(e,r=ds)=>new f(t=>{let{width:n,height:i}=e.getBoundingClientRect();if(t.next({width:n,height:i}),!window.ResizeObserver)return;let o=new ResizeObserver(nr(u=>{let s=u[0];if(!s)return;let p,l;s.contentBoxSize&&s.contentBoxSize[0]?(l=s.contentBoxSize[0].blockSize,p=s.contentBoxSize[0].inlineSize):s.contentRect&&(p=s.contentRect.width,l=s.contentRect.height),$(p)&&$(l)&&t.next({width:p,height:l})},r));return o.observe(e),()=>o.disconnect()});var me=(e,r=6,t=".")=>{let n={};for(let i in e)if(!(!e.hasOwnProperty(i)||e[i]instanceof HTMLElement||!r))if(typeof e[i]=="object"&&e[i]!==null){let o=me(e[i],r-1);for(let u in o)o.hasOwnProperty(u)&&(n[i+t+u]=o[u])}else n[i]=e[i];return n};var Ts=e=>{e.removeAttribute("src"),e.load()};var gb=e=>{let r;try{r=new URL(e)}catch(t){return!1}return r.protocol==="https:"};var xb=e=>{try{return new URL(e)}catch(r){return null}};var hs=e=>r=>t=>{let n=typeof t=="object";t==null||n&&!Object.keys(t).length||e(r,n?me(t):{value:t})};var Te=class extends V{constructor(r){super(),this.value=r}next(r){super.next(this.value=r)}error(r){super.error(this.value=r)}getValue(){return this.value}_subscribe(r){let t=super._subscribe(r);return r.next(this.value),t}};function xt(e){return new f(r=>{let t={},n=Object.keys(e).length,i=o=>u=>{o in t||n--,t[o]=u,n===0&&r.next(t)};return Object.entries(e).reduce((o,[u,s])=>o.add(s.subscribe(i(u))),new E)})}function Ot(...e){return new f(r=>e.reduce((t,n)=>t.add(n.subscribe(r)),new E))}var ys=e=>new f(r=>{let t=window.setTimeout(()=>{try{r.next()}catch(n){if(r.error)r.error(n);else throw n}},e);return()=>window.clearTimeout(t)});var gs=e=>new f(r=>{let t=window.setInterval(()=>r.next(),e);return()=>{t&&(window.clearInterval(t),t=void 0)}});var Is=e=>new f(r=>{e.forEach(t=>r.next(t))});var xs=(e,r)=>new f(t=>{let n=i=>t.next(i);return e.addEventListener(r,n),()=>e.removeEventListener(r,n)});function wt(e){return r=>new f(t=>r.subscribe(new ir(t,e)))}var ir=class{constructor(r,t){this.destination=r;this.size=t;this.lastValues=[]}next(r){this.lastValues.length===this.size&&this.lastValues.shift(),this.lastValues.push(r),this.destination.next(this.lastValues)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};var Os={leading:!1,trailing:!0};function Et(e,r=Os){return t=>new f(n=>t.subscribe(new or(n,e,r)))}var or=class{constructor(r,t,n){this.destination=r;this.time=t;this.config=n}next(r){this.lastValue=r,$(this.timeout)?window.clearTimeout(this.timeout):this.config.leading&&this.destination.next(r),this.timeout=window.setTimeout(()=>{if(this.config.trailing)try{this.destination.next(this.lastValue)}catch(t){if(this.destination.error)this.destination.error(t);else throw t}this.timeout=void 0},this.time)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};var ws={leading:!0,trailing:!1};function St(e,r=ws){return t=>new f(n=>t.subscribe(new ar(n,e,r)))}var ar=class{constructor(r,t,n){this.destination=r;this.time=t;this.config=n}next(r){this.lastValue=r,Ye(this.timeout)&&(this.config.leading&&this.destination.next(r),this.timeout=window.setTimeout(()=>{this.config.trailing&&this.destination.next(this.lastValue),this.timeout=void 0},this.time))}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function qt(e){return r=>new f(t=>r.subscribe(new sr(t,e)))}var sr=class{constructor(r,t){this.destination=r;this.predicate=t}next(r){let t;try{t=this.predicate(r)}catch(n){throw this.error(n),n}t&&this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function Pt(e=(r,t)=>r===t){return r=>new f(t=>r.subscribe(new ur(t,e)))}var Rt={},ur=class{constructor(r,t){this.destination=r;this.predicate=t;this.lastValue=Rt}next(r){let t;try{t=this.lastValue===Rt||!this.predicate(this.lastValue,r),this.lastValue=r}catch(n){throw this.error(n),n}t&&this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function he(e){return r=>new f(t=>r.subscribe(new cr(t,e)))}var cr=class{constructor(r,t){this.destination=r;this.mapper=t}next(r){let t;try{t=this.mapper(r)}catch(n){throw this.error(n),n}this.destination.next(t)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function _t(e){return he(()=>e)}function At(){return e=>new f(r=>{let t=!1,n=!1,i=e.subscribe(o=>{t||(t=!0,r.next(o)),n&&i.unsubscribe()},o=>{var u;t=!0,(u=r.error)==null||u.call(r,o),n&&i.unsubscribe()});return n=!0,t&&i.unsubscribe(),i})}function Ct(){return e=>new f(r=>e.subscribe(new lr(r)))}var lr=class{constructor(r){this.destination=r;this.hasLast=!1}next(r){let t=this.last;if(this.last=r,!this.hasLast){this.hasLast=!0;return}this.destination.next([t,r])}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function Lt(e){return r=>new f(t=>r.subscribe(new pr(t,e)))}var pr=class{constructor(r,t){this.destination=r;this.effect=t}next(r){try{this.effect(r)}catch(t){throw this.error(t),t}this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};var Es=(s=>(s.NETWORK="network",s.VIDEO_PIPELINE="video_pipeline",s.EXTERNAL_API="external_api",s.PARSER="parser",s.DOM="dom",s.WTF="wtf",s.FATAL="fatal",s))(Es||{});var ye=class{constructor(){Object.defineProperty(this,"listeners",{value:{},writable:!0,configurable:!0})}addEventListener(r,t,n){r in this.listeners||(this.listeners[r]=[]),this.listeners[r].push({callback:t,options:n})}removeEventListener(r,t){if(!(r in this.listeners))return;let n=this.listeners[r];for(let i=0,o=n.length;i<o;i++)if(n[i].callback===t){n.splice(i,1);return}}dispatchEvent(r){if(!(r.type in this.listeners))return;let n=this.listeners[r.type].slice();for(let i=0,o=n.length;i<o;i++){let u=n[i];try{u.callback.call(this,r)}catch(s){Promise.resolve().then(()=>{throw s})}u.options&&u.options.once&&this.removeEventListener(r.type,u.callback)}return!r.defaultPrevented}},K=class extends ye{constructor(){super(),this.listeners||ye.call(this),Object.defineProperty(this,"aborted",{value:!1,writable:!0,configurable:!0}),Object.defineProperty(this,"onabort",{value:null,writable:!0,configurable:!0}),Object.defineProperty(this,"reason",{value:void 0,writable:!0,configurable:!0})}toString(){return"[object AbortSignal]"}dispatchEvent(r){r.type==="abort"&&(this.aborted=!0,typeof this.onabort=="function"&&this.onabort.call(this,r)),super.dispatchEvent(r)}},re=class{constructor(){Object.defineProperty(this,"signal",{value:new K,writable:!0,configurable:!0})}abort(r){let t;try{t=new Event("abort")}catch(i){typeof document!="undefined"?document.createEvent?(t=document.createEvent("Event"),t.initEvent("abort",!1,!1)):(t=document.createEventObject(),t.type="abort"):t={type:"abort",bubbles:!1,cancelable:!1}}let n=r;if(n===void 0)if(typeof document=="undefined")n=new Error("This operation was aborted"),n.name="AbortError";else try{n=new DOMException("signal is aborted without reason")}catch(i){n=new Error("This operation was aborted"),n.name="AbortError"}this.signal.reason=n,this.signal.dispatchEvent(t)}toString(){return"[object AbortController]"}};typeof Symbol!="undefined"&&Symbol.toStringTag&&(re.prototype[Symbol.toStringTag]="AbortController",K.prototype[Symbol.toStringTag]="AbortSignal");function ge(e){return e.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL?(console.log("__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL=true is set, will force install polyfill"),!0):typeof e.Request=="function"&&!e.Request.prototype.hasOwnProperty("signal")||!e.AbortController}function fr(e){typeof e=="function"&&(e={fetch:e});let{fetch:r,Request:t=r.Request,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:i=!1}=e;if(!ge({fetch:r,Request:t,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:i}))return{fetch:r,Request:o};let o=t;(o&&!o.prototype.hasOwnProperty("signal")||i)&&(o=function(l,b){let c;b&&b.signal&&(c=b.signal,delete b.signal);let v=new t(l,b);return c&&Object.defineProperty(v,"signal",{writable:!1,enumerable:!1,configurable:!0,value:c}),v},o.prototype=t.prototype);let u=r;return{fetch:(p,l)=>{let b=o&&o.prototype.isPrototypeOf(p)?p.signal:l?l.signal:void 0;if(b){let c;try{c=new DOMException("Aborted","AbortError")}catch(d){c=new Error("Aborted"),c.name="AbortError"}if(b.aborted)return Promise.reject(c);let v=new Promise((d,T)=>{b.addEventListener("abort",()=>T(c),{once:!0})});return l&&l.signal&&delete l.signal,Promise.race([v,u(p,l)])}return u(p,l)},Request:o}}var te=ge({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}),Mt=te?fr({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}):void 0,jt=te?Mt.fetch:window.fetch,yd=te?Mt.Request:window.Request,gd=te?re:window.AbortController,Id=te?K:window.AbortSignal;var wa=ja(Oa(),1),mf=(c=>(c.Armenian="58",c.Azerbaijani="57",c.Belarusian="114",c.English="3",c.Kazakh="97",c.Portuguese="73",c.Russian="0",c.Spanish="4",c.Ukrainian="1",c.Uzbek="65",c.Vietnamese="75",c))(mf||{}),Tf="vk.com",bT=async(e,r,t)=>{let n=new URL(`https://${Tf}/js/lang-pack.js`);n.searchParams.set("format","json"),n.searchParams.set("name",r),e!==void 0&&n.searchParams.set("lang",e);let o=await(await jt(n.toString())).json();return hf(o,t)},hf=(e,r)=>(0,wa.default)(Object.entries(e.keys).map(([t,n])=>[t.substring(`${r}_`.length),yf(n)])),yf=e=>Array.isArray(e)?e[0]:e;var gf=(t=>(t.RU="ru",t.EN="en",t))(gf||{});export{Es as ErrorCategory,gf as InterfaceLanguage,$e as Logger,f as Observable,V as Subject,E as Subscription,Ke as Tracer,Na as VERSION,mf as VKNumericLanguage,Te as ValueSubject,Ze as VideoQuality,Ka as abortable,$a as addScript,ps as areQualitiesExact,Wa as assertEmptyArray,C as assertNever,Ga as assertNonNullable,Qa as assertNotEmptyArray,Ba as assertNullable,fs as assertQualityIsExact,wt as buffer,ka as checkNever,Ts as clearVideoElement,Ya as clientChecker,vs as cloneDeep,de as cloneDeepWith,xt as combine,xb as createURL,Et as debounce,tr as debounceFn,ns as detectEmbed,bs as fillWithDefault,qt as filter,Pt as filterChanged,me as flattenObject,xs as fromEvent,Ha as getExponentialDelay,ss as getHighestQuality,hs as getTraceSubscriptionMethod,gs as interval,is as isHigher,os as isHigherOrEqual,rr as isInvariantQuality,er as isLower,as as isLowerOrEqual,gt as isMobile,$ as isNonNullable,Ye as isNullable,gb as isValidURL,bT as loadVKLangPack,he as map,_t as mapTo,Ot as merge,U as noop,za as now,Is as observableFrom,ms as observeElementSize,At as once,Ct as pairwise,Je as safeStorage,Lt as tap,St as throttle,nr as throttleFn,sb as timeCodeToString,ys as timeout,us as videoHeightToQuality,ls as videoQualityToHeight,cs as videoSizeToQuality};