@vkontakte/videoplayer-shared 1.0.63-dev.8749d62b.0 → 1.0.63-dev.96cd632e.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/es2015.cjs.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
- * @vkontakte/videoplayer-shared v1.0.63-dev.8749d62b.0
3
- * Mon, 30 Jun 2025 13:53:59 GMT
2
+ * @vkontakte/videoplayer-shared v1.0.63-dev.96cd632e.0
3
+ * Mon, 30 Jun 2025 12:43:39 GMT
4
4
  * https://st.mycdn.me/static/vkontakte-videoplayer/1-0-63/doc/
5
5
  */
6
- "use strict";var su=Object.create;var ce=Object.defineProperty,au=Object.defineProperties,uu=Object.getOwnPropertyDescriptor,lu=Object.getOwnPropertyDescriptors,cu=Object.getOwnPropertyNames,Ht=Object.getOwnPropertySymbols,pu=Object.getPrototypeOf,Jt=Object.prototype.hasOwnProperty,fu=Object.prototype.propertyIsEnumerable;var Zt=Math.pow,Xt=(e,r,t)=>r in e?ce(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,q=(e,r)=>{for(var t in r||(r={}))Jt.call(r,t)&&Xt(e,t,r[t]);if(Ht)for(var t of Ht(r))fu.call(r,t)&&Xt(e,t,r[t]);return e},U=(e,r)=>au(e,lu(r));var s=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),gr=(e,r)=>{for(var t in r)ce(e,t,{get:r[t],enumerable:!0})},en=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of cu(r))!Jt.call(e,i)&&i!==t&&ce(e,i,{get:()=>r[i],enumerable:!(n=uu(r,i))||n.enumerable});return e};var G=(e,r,t)=>(t=e!=null?su(pu(e)):{},en(r||!e||!e.__esModule?ce(t,"default",{value:e,enumerable:!0}):t,e)),bu=e=>en(ce({},"__esModule",{value:!0}),e);var ee=(e,r,t)=>new Promise((n,i)=>{var o=l=>{try{a(t.next(l))}catch(p){i(p)}},u=l=>{try{a(t.throw(l))}catch(p){i(p)}},a=l=>l.done?n(l.value):Promise.resolve(l.value).then(o,u);a((t=t.apply(e,r)).next())});var w=s((Or,dn)=>{"use strict";var pe=function(e){return e&&e.Math===Math&&e};dn.exports=pe(typeof globalThis=="object"&&globalThis)||pe(typeof window=="object"&&window)||pe(typeof self=="object"&&self)||pe(typeof global=="object"&&global)||pe(typeof Or=="object"&&Or)||function(){return this}()||Function("return this")()});var R=s((Nd,vn)=>{"use strict";vn.exports=function(e){try{return!!e()}catch(r){return!0}}});var fe=s((jd,mn)=>{"use strict";var Iu=R();mn.exports=!Iu(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var In=s((kd,gn)=>{"use strict";var Ou=fe(),hn=Function.prototype,Tn=hn.apply,yn=hn.call;gn.exports=typeof Reflect=="object"&&Reflect.apply||(Ou?yn.bind(Tn):function(){return yn.apply(Tn,arguments)})});var j=s((Md,En)=>{"use strict";var On=fe(),xn=Function.prototype,xr=xn.call,xu=On&&xn.bind.bind(xr,xr);En.exports=On?xu:function(e){return function(){return xr.apply(e,arguments)}}});var Ce=s((Vd,Sn)=>{"use strict";var wn=j(),Eu=wn({}.toString),wu=wn("".slice);Sn.exports=function(e){return wu(Eu(e),8,-1)}});var Er=s((Fd,qn)=>{"use strict";var Su=Ce(),qu=j();qn.exports=function(e){if(Su(e)==="Function")return qu(e)}});var S=s((Dd,Rn)=>{"use strict";var wr=typeof document=="object"&&document.all;Rn.exports=typeof wr=="undefined"&&wr!==void 0?function(e){return typeof e=="function"||e===wr}:function(e){return typeof e=="function"}});var A=s((Ud,Pn)=>{"use strict";var Ru=R();Pn.exports=!Ru(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var Q=s((Gd,_n)=>{"use strict";var Pu=fe(),Ne=Function.prototype.call;_n.exports=Pu?Ne.bind(Ne):function(){return Ne.apply(Ne,arguments)}});var Sr=s(Cn=>{"use strict";var An={}.propertyIsEnumerable,Ln=Object.getOwnPropertyDescriptor,_u=Ln&&!An.call({1:2},1);Cn.f=_u?function(r){var t=Ln(this,r);return!!t&&t.enumerable}:An});var be=s((Qd,Nn)=>{"use strict";Nn.exports=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}}});var kn=s((zd,jn)=>{"use strict";var Au=j(),Lu=R(),Cu=Ce(),qr=Object,Nu=Au("".split);jn.exports=Lu(function(){return!qr("z").propertyIsEnumerable(0)})?function(e){return Cu(e)==="String"?Nu(e,""):qr(e)}:qr});var je=s((Kd,Mn)=>{"use strict";Mn.exports=function(e){return e==null}});var ke=s((Wd,Vn)=>{"use strict";var ju=je(),ku=TypeError;Vn.exports=function(e){if(ju(e))throw new ku("Can't call method on "+e);return e}});var Y=s(($d,Fn)=>{"use strict";var Mu=kn(),Vu=ke();Fn.exports=function(e){return Mu(Vu(e))}});var M=s((Yd,Dn)=>{"use strict";var Fu=S();Dn.exports=function(e){return typeof e=="object"?e!==null:Fu(e)}});var de=s((Hd,Un)=>{"use strict";Un.exports={}});var Me=s((Xd,Bn)=>{"use strict";var Rr=de(),Pr=w(),Du=S(),Gn=function(e){return Du(e)?e:void 0};Bn.exports=function(e,r){return arguments.length<2?Gn(Rr[e])||Gn(Pr[e]):Rr[e]&&Rr[e][r]||Pr[e]&&Pr[e][r]}});var _r=s((Jd,Qn)=>{"use strict";var Uu=j();Qn.exports=Uu({}.isPrototypeOf)});var $n=s((Zd,Wn)=>{"use strict";var Gu=w(),zn=Gu.navigator,Kn=zn&&zn.userAgent;Wn.exports=Kn?String(Kn):""});var ri=s((ev,ei)=>{"use strict";var Zn=w(),Ar=$n(),Yn=Zn.process,Hn=Zn.Deno,Xn=Yn&&Yn.versions||Hn&&Hn.version,Jn=Xn&&Xn.v8,L,Ve;Jn&&(L=Jn.split("."),Ve=L[0]>0&&L[0]<4?1:+(L[0]+L[1]));!Ve&&Ar&&(L=Ar.match(/Edge\/(\d+)/),(!L||L[1]>=74)&&(L=Ar.match(/Chrome\/(\d+)/),L&&(Ve=+L[1])));ei.exports=Ve});var Lr=s((rv,ni)=>{"use strict";var ti=ri(),Bu=R(),Qu=w(),zu=Qu.String;ni.exports=!!Object.getOwnPropertySymbols&&!Bu(function(){var e=Symbol("symbol detection");return!zu(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&ti&&ti<41})});var Cr=s((tv,ii)=>{"use strict";var Ku=Lr();ii.exports=Ku&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var Nr=s((nv,oi)=>{"use strict";var Wu=Me(),$u=S(),Yu=_r(),Hu=Cr(),Xu=Object;oi.exports=Hu?function(e){return typeof e=="symbol"}:function(e){var r=Wu("Symbol");return $u(r)&&Yu(r.prototype,Xu(e))}});var Fe=s((iv,si)=>{"use strict";var Ju=String;si.exports=function(e){try{return Ju(e)}catch(r){return"Object"}}});var ve=s((ov,ai)=>{"use strict";var Zu=S(),el=Fe(),rl=TypeError;ai.exports=function(e){if(Zu(e))return e;throw new rl(el(e)+" is not a function")}});var De=s((sv,ui)=>{"use strict";var tl=ve(),nl=je();ui.exports=function(e,r){var t=e[r];return nl(t)?void 0:tl(t)}});var ci=s((av,li)=>{"use strict";var jr=Q(),kr=S(),Mr=M(),il=TypeError;li.exports=function(e,r){var t,n;if(r==="string"&&kr(t=e.toString)&&!Mr(n=jr(t,e))||kr(t=e.valueOf)&&!Mr(n=jr(t,e))||r!=="string"&&kr(t=e.toString)&&!Mr(n=jr(t,e)))return n;throw new il("Can't convert object to primitive value")}});var me=s((uv,pi)=>{"use strict";pi.exports=!0});var di=s((lv,bi)=>{"use strict";var fi=w(),ol=Object.defineProperty;bi.exports=function(e,r){try{ol(fi,e,{value:r,configurable:!0,writable:!0})}catch(t){fi[e]=r}return r}});var Ue=s((cv,Ti)=>{"use strict";var sl=me(),al=w(),ul=di(),vi="__core-js_shared__",mi=Ti.exports=al[vi]||ul(vi,{});(mi.versions||(mi.versions=[])).push({version:"3.43.0",mode:sl?"pure":"global",copyright:"\xA9 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.43.0/LICENSE",source:"https://github.com/zloirock/core-js"})});var Vr=s((pv,hi)=>{"use strict";var yi=Ue();hi.exports=function(e,r){return yi[e]||(yi[e]=r||{})}});var Ge=s((fv,gi)=>{"use strict";var ll=ke(),cl=Object;gi.exports=function(e){return cl(ll(e))}});var V=s((bv,Ii)=>{"use strict";var pl=j(),fl=Ge(),bl=pl({}.hasOwnProperty);Ii.exports=Object.hasOwn||function(r,t){return bl(fl(r),t)}});var Fr=s((dv,Oi)=>{"use strict";var dl=j(),vl=0,ml=Math.random(),Tl=dl(1.1.toString);Oi.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Tl(++vl+ml,36)}});var F=s((vv,Ei)=>{"use strict";var yl=w(),hl=Vr(),xi=V(),gl=Fr(),Il=Lr(),Ol=Cr(),ne=yl.Symbol,Dr=hl("wks"),xl=Ol?ne.for||ne:ne&&ne.withoutSetter||gl;Ei.exports=function(e){return xi(Dr,e)||(Dr[e]=Il&&xi(ne,e)?ne[e]:xl("Symbol."+e)),Dr[e]}});var Ri=s((mv,qi)=>{"use strict";var El=Q(),wi=M(),Si=Nr(),wl=De(),Sl=ci(),ql=F(),Rl=TypeError,Pl=ql("toPrimitive");qi.exports=function(e,r){if(!wi(e)||Si(e))return e;var t=wl(e,Pl),n;if(t){if(r===void 0&&(r="default"),n=El(t,e,r),!wi(n)||Si(n))return n;throw new Rl("Can't convert object to primitive value")}return r===void 0&&(r="number"),Sl(e,r)}});var Ur=s((Tv,Pi)=>{"use strict";var _l=Ri(),Al=Nr();Pi.exports=function(e){var r=_l(e,"string");return Al(r)?r:r+""}});var Br=s((yv,Ai)=>{"use strict";var Ll=w(),_i=M(),Gr=Ll.document,Cl=_i(Gr)&&_i(Gr.createElement);Ai.exports=function(e){return Cl?Gr.createElement(e):{}}});var Qr=s((hv,Li)=>{"use strict";var Nl=A(),jl=R(),kl=Br();Li.exports=!Nl&&!jl(function(){return Object.defineProperty(kl("div"),"a",{get:function(){return 7}}).a!==7})});var ji=s(Ni=>{"use strict";var Ml=A(),Vl=Q(),Fl=Sr(),Dl=be(),Ul=Y(),Gl=Ur(),Bl=V(),Ql=Qr(),Ci=Object.getOwnPropertyDescriptor;Ni.f=Ml?Ci:function(r,t){if(r=Ul(r),t=Gl(t),Ql)try{return Ci(r,t)}catch(n){}if(Bl(r,t))return Dl(!Vl(Fl.f,r,t),r[t])}});var Mi=s((Iv,ki)=>{"use strict";var zl=R(),Kl=S(),Wl=/#|\.prototype\./,Te=function(e,r){var t=Yl[$l(e)];return t===Xl?!0:t===Hl?!1:Kl(r)?zl(r):!!r},$l=Te.normalize=function(e){return String(e).replace(Wl,".").toLowerCase()},Yl=Te.data={},Hl=Te.NATIVE="N",Xl=Te.POLYFILL="P";ki.exports=Te});var zr=s((Ov,Fi)=>{"use strict";var Vi=Er(),Jl=ve(),Zl=fe(),ec=Vi(Vi.bind);Fi.exports=function(e,r){return Jl(e),r===void 0?e:Zl?ec(e,r):function(){return e.apply(r,arguments)}}});var Kr=s((xv,Di)=>{"use strict";var rc=A(),tc=R();Di.exports=rc&&tc(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var H=s((Ev,Ui)=>{"use strict";var nc=M(),ic=String,oc=TypeError;Ui.exports=function(e){if(nc(e))return e;throw new oc(ic(e)+" is not an object")}});var ie=s(Bi=>{"use strict";var sc=A(),ac=Qr(),uc=Kr(),Be=H(),Gi=Ur(),lc=TypeError,Wr=Object.defineProperty,cc=Object.getOwnPropertyDescriptor,$r="enumerable",Yr="configurable",Hr="writable";Bi.f=sc?uc?function(r,t,n){if(Be(r),t=Gi(t),Be(n),typeof r=="function"&&t==="prototype"&&"value"in n&&Hr in n&&!n[Hr]){var i=cc(r,t);i&&i[Hr]&&(r[t]=n.value,n={configurable:Yr in n?n[Yr]:i[Yr],enumerable:$r in n?n[$r]:i[$r],writable:!1})}return Wr(r,t,n)}:Wr:function(r,t,n){if(Be(r),t=Gi(t),Be(n),ac)try{return Wr(r,t,n)}catch(i){}if("get"in n||"set"in n)throw new lc("Accessors not supported");return"value"in n&&(r[t]=n.value),r}});var oe=s((Sv,Qi)=>{"use strict";var pc=A(),fc=ie(),bc=be();Qi.exports=pc?function(e,r,t){return fc.f(e,r,bc(1,t))}:function(e,r,t){return e[r]=t,e}});var ue=s((qv,Ki)=>{"use strict";var ye=w(),dc=In(),vc=Er(),mc=S(),Tc=ji().f,yc=Mi(),se=de(),hc=zr(),ae=oe(),zi=V();Ue();var gc=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 dc(e,this,arguments)};return r.prototype=e.prototype,r};Ki.exports=function(e,r){var t=e.target,n=e.global,i=e.stat,o=e.proto,u=n?ye:i?ye[t]:ye[t]&&ye[t].prototype,a=n?se:se[t]||ae(se,t,{})[t],l=a.prototype,p,b,c,d,v,T,y,I,h;for(d in r)p=yc(n?d:t+(i?".":"#")+d,e.forced),b=!p&&u&&zi(u,d),T=a[d],b&&(e.dontCallGetSet?(h=Tc(u,d),y=h&&h.value):y=u[d]),v=b&&y?y:r[d],!(!p&&!o&&typeof T==typeof v)&&(e.bind&&b?I=hc(v,ye):e.wrap&&b?I=gc(v):o&&mc(v)?I=vc(v):I=v,(e.sham||v&&v.sham||T&&T.sham)&&ae(I,"sham",!0),ae(a,d,I),o&&(c=t+"Prototype",zi(se,c)||ae(se,c,{}),ae(se[c],d,v),e.real&&l&&(p||!l[d])&&ae(l,d,v)))}});var $i=s((Rv,Wi)=>{"use strict";var Ic=Math.ceil,Oc=Math.floor;Wi.exports=Math.trunc||function(r){var t=+r;return(t>0?Oc:Ic)(t)}});var Qe=s((Pv,Yi)=>{"use strict";var xc=$i();Yi.exports=function(e){var r=+e;return r!==r||r===0?0:xc(r)}});var Xi=s((_v,Hi)=>{"use strict";var Ec=Qe(),wc=Math.min;Hi.exports=function(e){var r=Ec(e);return r>0?wc(r,9007199254740991):0}});var ze=s((Av,Ji)=>{"use strict";var Sc=Xi();Ji.exports=function(e){return Sc(e.length)}});var Ke=s((Lv,Zi)=>{"use strict";Zi.exports=function(){}});var eo=s(()=>{"use strict";var qc=ue(),Rc=Ge(),Pc=ze(),_c=Qe(),Ac=Ke();qc({target:"Array",proto:!0},{at:function(r){var t=Rc(this),n=Pc(t),i=_c(r),o=i>=0?i:n+i;return o<0||o>=n?void 0:t[o]}});Ac("at")});var Xr=s((jv,ro)=>{"use strict";var Lc=Me();ro.exports=Lc});var no=s((kv,to)=>{"use strict";eo();var Cc=Xr();to.exports=Cc("Array","at")});var oo=s((Mv,io)=>{"use strict";var Nc=no();io.exports=Nc});var ao=s((Vv,so)=>{"use strict";var jc=oo();so.exports=jc});var tr=s((bT,qo)=>{"use strict";var Dc=Vr(),Uc=Fr(),So=Dc("keys");qo.exports=function(e){return So[e]||(So[e]=Uc(e))}});var Po=s((dT,Ro)=>{"use strict";var Gc=R();Ro.exports=!Gc(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var nr=s((vT,Ao)=>{"use strict";var Bc=V(),Qc=S(),zc=Ge(),Kc=tr(),Wc=Po(),_o=Kc("IE_PROTO"),Zr=Object,$c=Zr.prototype;Ao.exports=Wc?Zr.getPrototypeOf:function(e){var r=zc(e);if(Bc(r,_o))return r[_o];var t=r.constructor;return Qc(t)&&r instanceof t?t.prototype:r instanceof Zr?$c:null}});var Co=s((mT,Lo)=>{"use strict";var Yc=Qe(),Hc=Math.max,Xc=Math.min;Lo.exports=function(e,r){var t=Yc(e);return t<0?Hc(t+r,0):Xc(t,r)}});var et=s((TT,jo)=>{"use strict";var Jc=Y(),Zc=Co(),ep=ze(),No=function(e){return function(r,t,n){var i=Jc(r),o=ep(i);if(o===0)return!e&&-1;var u=Zc(n,o),a;if(e&&t!==t){for(;o>u;)if(a=i[u++],a!==a)return!0}else for(;o>u;u++)if((e||u in i)&&i[u]===t)return e||u||0;return!e&&-1}};jo.exports={includes:No(!0),indexOf:No(!1)}});var ir=s((yT,ko)=>{"use strict";ko.exports={}});var Fo=s((hT,Vo)=>{"use strict";var rp=j(),rt=V(),tp=Y(),np=et().indexOf,ip=ir(),Mo=rp([].push);Vo.exports=function(e,r){var t=tp(e),n=0,i=[],o;for(o in t)!rt(ip,o)&&rt(t,o)&&Mo(i,o);for(;r.length>n;)rt(t,o=r[n++])&&(~np(i,o)||Mo(i,o));return i}});var tt=s((gT,Do)=>{"use strict";Do.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var nt=s((IT,Uo)=>{"use strict";var op=Fo(),sp=tt();Uo.exports=Object.keys||function(r){return op(r,sp)}});var Wo=s((OT,Ko)=>{"use strict";var Bo=A(),ap=R(),Qo=j(),up=nr(),lp=nt(),cp=Y(),pp=Sr().f,zo=Qo(pp),fp=Qo([].push),bp=Bo&&ap(function(){var e=Object.create(null);return e[2]=2,!zo(e,2)}),Go=function(e){return function(r){for(var t=cp(r),n=lp(t),i=bp&&up(t)===null,o=n.length,u=0,a=[],l;o>u;)l=n[u++],(!Bo||(i?l in t:zo(t,l)))&&fp(a,e?[l,t[l]]:t[l]);return a}};Ko.exports={entries:Go(!0),values:Go(!1)}});var $o=s(()=>{"use strict";var dp=ue(),vp=Wo().entries;dp({target:"Object",stat:!0},{entries:function(r){return vp(r)}})});var Ho=s((wT,Yo)=>{"use strict";$o();var mp=de();Yo.exports=mp.Object.entries});var Jo=s((ST,Xo)=>{"use strict";var Tp=Ho();Xo.exports=Tp});var it=s((qT,Zo)=>{"use strict";var yp=Jo();Zo.exports=yp});var os=s(()=>{"use strict";var Ip=ue(),Op=et().includes,xp=R(),Ep=Ke(),wp=xp(function(){return!Array(1).includes()});Ip({target:"Array",proto:!0,forced:wp},{includes:function(r){return Op(this,r,arguments.length>1?arguments[1]:void 0)}});Ep("includes")});var as=s((ty,ss)=>{"use strict";os();var Sp=Xr();ss.exports=Sp("Array","includes")});var ls=s((ny,us)=>{"use strict";var qp=as();us.exports=qp});var ps=s((iy,cs)=>{"use strict";var Rp=ls();cs.exports=Rp});var J=s((sh,hs)=>{"use strict";hs.exports={}});var Os=s((ah,Is)=>{"use strict";var Lp=w(),Cp=S(),gs=Lp.WeakMap;Is.exports=Cp(gs)&&/native code/.test(String(gs))});var Ss=s((uh,ws)=>{"use strict";var Np=Os(),Es=w(),jp=M(),kp=oe(),qt=V(),Rt=Ue(),Mp=tr(),Vp=ir(),xs="Object already initialized",Pt=Es.TypeError,Fp=Es.WeakMap,ar,we,ur,Dp=function(e){return ur(e)?we(e):ar(e,{})},Up=function(e){return function(r){var t;if(!jp(r)||(t=we(r)).type!==e)throw new Pt("Incompatible receiver, "+e+" required");return t}};Np||Rt.state?(C=Rt.state||(Rt.state=new Fp),C.get=C.get,C.has=C.has,C.set=C.set,ar=function(e,r){if(C.has(e))throw new Pt(xs);return r.facade=e,C.set(e,r),r},we=function(e){return C.get(e)||{}},ur=function(e){return C.has(e)}):(Z=Mp("state"),Vp[Z]=!0,ar=function(e,r){if(qt(e,Z))throw new Pt(xs);return r.facade=e,kp(e,Z,r),r},we=function(e){return qt(e,Z)?e[Z]:{}},ur=function(e){return qt(e,Z)});var C,Z;ws.exports={set:ar,get:we,has:ur,enforce:Dp,getterFor:Up}});var Ps=s((lh,Rs)=>{"use strict";var _t=A(),Gp=V(),qs=Function.prototype,Bp=_t&&Object.getOwnPropertyDescriptor,At=Gp(qs,"name"),Qp=At&&function(){}.name==="something",zp=At&&(!_t||_t&&Bp(qs,"name").configurable);Rs.exports={EXISTS:At,PROPER:Qp,CONFIGURABLE:zp}});var As=s(_s=>{"use strict";var Kp=A(),Wp=Kr(),$p=ie(),Yp=H(),Hp=Y(),Xp=nt();_s.f=Kp&&!Wp?Object.defineProperties:function(r,t){Yp(r);for(var n=Hp(t),i=Xp(t),o=i.length,u=0,a;o>u;)$p.f(r,a=i[u++],n[a]);return r}});var Cs=s((ph,Ls)=>{"use strict";var Jp=Me();Ls.exports=Jp("document","documentElement")});var jt=s((fh,Ds)=>{"use strict";var Zp=H(),ef=As(),Ns=tt(),rf=ir(),tf=Cs(),nf=Br(),of=tr(),js=">",ks="<",Ct="prototype",Nt="script",Vs=of("IE_PROTO"),Lt=function(){},Fs=function(e){return ks+Nt+js+e+ks+"/"+Nt+js},Ms=function(e){e.write(Fs("")),e.close();var r=e.parentWindow.Object;return e=null,r},sf=function(){var e=nf("iframe"),r="java"+Nt+":",t;return e.style.display="none",tf.appendChild(e),e.src=String(r),t=e.contentWindow.document,t.open(),t.write(Fs("document.F=Object")),t.close(),t.F},lr,cr=function(){try{lr=new ActiveXObject("htmlfile")}catch(r){}cr=typeof document!="undefined"?document.domain&&lr?Ms(lr):sf():Ms(lr);for(var e=Ns.length;e--;)delete cr[Ct][Ns[e]];return cr()};rf[Vs]=!0;Ds.exports=Object.create||function(r,t){var n;return r!==null?(Lt[Ct]=Zp(r),n=new Lt,Lt[Ct]=null,n[Vs]=r):n=cr(),t===void 0?n:ef.f(n,t)}});var kt=s((bh,Us)=>{"use strict";var af=oe();Us.exports=function(e,r,t,n){return n&&n.enumerable?e[r]=t:af(e,r,t),e}});var Dt=s((dh,Qs)=>{"use strict";var uf=R(),lf=S(),cf=M(),pf=jt(),Gs=nr(),ff=kt(),bf=F(),df=me(),Ft=bf("iterator"),Bs=!1,D,Mt,Vt;[].keys&&(Vt=[].keys(),"next"in Vt?(Mt=Gs(Gs(Vt)),Mt!==Object.prototype&&(D=Mt)):Bs=!0);var vf=!cf(D)||uf(function(){var e={};return D[Ft].call(e)!==e});vf?D={}:df&&(D=pf(D));lf(D[Ft])||ff(D,Ft,function(){return this});Qs.exports={IteratorPrototype:D,BUGGY_SAFARI_ITERATORS:Bs}});var pr=s((vh,Ks)=>{"use strict";var mf=F(),Tf=mf("toStringTag"),zs={};zs[Tf]="z";Ks.exports=String(zs)==="[object z]"});var Ut=s((mh,Ws)=>{"use strict";var yf=pr(),hf=S(),fr=Ce(),gf=F(),If=gf("toStringTag"),Of=Object,xf=fr(function(){return arguments}())==="Arguments",Ef=function(e,r){try{return e[r]}catch(t){}};Ws.exports=yf?fr:function(e){var r,t,n;return e===void 0?"Undefined":e===null?"Null":typeof(t=Ef(r=Of(e),If))=="string"?t:xf?fr(r):(n=fr(r))==="Object"&&hf(r.callee)?"Arguments":n}});var Ys=s((Th,$s)=>{"use strict";var wf=pr(),Sf=Ut();$s.exports=wf?{}.toString:function(){return"[object "+Sf(this)+"]"}});var br=s((yh,Xs)=>{"use strict";var qf=pr(),Rf=ie().f,Pf=oe(),_f=V(),Af=Ys(),Lf=F(),Hs=Lf("toStringTag");Xs.exports=function(e,r,t,n){var i=t?e:e&&e.prototype;i&&(_f(i,Hs)||Rf(i,Hs,{configurable:!0,value:r}),n&&!qf&&Pf(i,"toString",Af))}});var Zs=s((hh,Js)=>{"use strict";var Cf=Dt().IteratorPrototype,Nf=jt(),jf=be(),kf=br(),Mf=J(),Vf=function(){return this};Js.exports=function(e,r,t,n){var i=r+" Iterator";return e.prototype=Nf(Cf,{next:jf(+!n,t)}),kf(e,i,!1,!0),Mf[i]=Vf,e}});var ra=s((gh,ea)=>{"use strict";var Ff=j(),Df=ve();ea.exports=function(e,r,t){try{return Ff(Df(Object.getOwnPropertyDescriptor(e,r)[t]))}catch(n){}}});var na=s((Ih,ta)=>{"use strict";var Uf=M();ta.exports=function(e){return Uf(e)||e===null}});var oa=s((Oh,ia)=>{"use strict";var Gf=na(),Bf=String,Qf=TypeError;ia.exports=function(e){if(Gf(e))return e;throw new Qf("Can't set "+Bf(e)+" as a prototype")}});var aa=s((xh,sa)=>{"use strict";var zf=ra(),Kf=M(),Wf=ke(),$f=oa();sa.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,r={},t;try{t=zf(Object.prototype,"__proto__","set"),t(r,[]),e=r instanceof Array}catch(n){}return function(i,o){return Wf(i),$f(o),Kf(i)&&(e?t(i,o):i.__proto__=o),i}}():void 0)});var ya=s((Eh,Ta)=>{"use strict";var Yf=ue(),Hf=Q(),dr=me(),va=Ps(),Xf=S(),Jf=Zs(),ua=nr(),la=aa(),Zf=br(),eb=oe(),Gt=kt(),rb=F(),ca=J(),ma=Dt(),tb=va.PROPER,nb=va.CONFIGURABLE,pa=ma.IteratorPrototype,vr=ma.BUGGY_SAFARI_ITERATORS,Se=rb("iterator"),fa="keys",qe="values",ba="entries",da=function(){return this};Ta.exports=function(e,r,t,n,i,o,u){Jf(t,r,n);var a=function(h){if(h===i&&d)return d;if(!vr&&h&&h in b)return b[h];switch(h){case fa:return function(){return new t(this,h)};case qe:return function(){return new t(this,h)};case ba:return function(){return new t(this,h)}}return function(){return new t(this)}},l=r+" Iterator",p=!1,b=e.prototype,c=b[Se]||b["@@iterator"]||i&&b[i],d=!vr&&c||a(i),v=r==="Array"&&b.entries||c,T,y,I;if(v&&(T=ua(v.call(new e)),T!==Object.prototype&&T.next&&(!dr&&ua(T)!==pa&&(la?la(T,pa):Xf(T[Se])||Gt(T,Se,da)),Zf(T,l,!0,!0),dr&&(ca[l]=da))),tb&&i===qe&&c&&c.name!==qe&&(!dr&&nb?eb(b,"name",qe):(p=!0,d=function(){return Hf(c,this)})),i)if(y={values:a(qe),keys:o?d:a(fa),entries:a(ba)},u)for(I in y)(vr||p||!(I in b))&&Gt(b,I,y[I]);else Yf({target:r,proto:!0,forced:vr||p},y);return(!dr||u)&&b[Se]!==d&&Gt(b,Se,d,{name:i}),ca[r]=d,y}});var ga=s((wh,ha)=>{"use strict";ha.exports=function(e,r){return{value:e,done:r}}});var Qt=s((Sh,wa)=>{"use strict";var ib=Y(),Bt=Ke(),Ia=J(),xa=Ss(),ob=ie().f,sb=ya(),mr=ga(),ab=me(),ub=A(),Ea="Array Iterator",lb=xa.set,cb=xa.getterFor(Ea);wa.exports=sb(Array,"Array",function(e,r){lb(this,{type:Ea,target:ib(e),index:0,kind:r})},function(){var e=cb(this),r=e.target,t=e.index++;if(!r||t>=r.length)return e.target=null,mr(void 0,!0);switch(e.kind){case"keys":return mr(t,!1);case"values":return mr(r[t],!1)}return mr([t,r[t]],!1)},"values");var Oa=Ia.Arguments=Ia.Array;Bt("keys");Bt("values");Bt("entries");if(!ab&&ub&&Oa.name!=="values")try{ob(Oa,"name",{value:"values"})}catch(e){}});var qa=s((qh,Sa)=>{"use strict";var pb=F(),fb=J(),bb=pb("iterator"),db=Array.prototype;Sa.exports=function(e){return e!==void 0&&(fb.Array===e||db[bb]===e)}});var zt=s((Rh,Pa)=>{"use strict";var vb=Ut(),Ra=De(),mb=je(),Tb=J(),yb=F(),hb=yb("iterator");Pa.exports=function(e){if(!mb(e))return Ra(e,hb)||Ra(e,"@@iterator")||Tb[vb(e)]}});var Aa=s((Ph,_a)=>{"use strict";var gb=Q(),Ib=ve(),Ob=H(),xb=Fe(),Eb=zt(),wb=TypeError;_a.exports=function(e,r){var t=arguments.length<2?Eb(e):r;if(Ib(t))return Ob(gb(t,e));throw new wb(xb(e)+" is not iterable")}});var Na=s((_h,Ca)=>{"use strict";var Sb=Q(),La=H(),qb=De();Ca.exports=function(e,r,t){var n,i;La(e);try{if(n=qb(e,"return"),!n){if(r==="throw")throw t;return t}n=Sb(n,e)}catch(o){i=!0,n=o}if(r==="throw")throw t;if(i)throw n;return La(n),t}});var Fa=s((Ah,Va)=>{"use strict";var Rb=zr(),Pb=Q(),_b=H(),Ab=Fe(),Lb=qa(),Cb=ze(),ja=_r(),Nb=Aa(),jb=zt(),ka=Na(),kb=TypeError,Tr=function(e,r){this.stopped=e,this.result=r},Ma=Tr.prototype;Va.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),a=!!(t&&t.INTERRUPTED),l=Rb(r,n),p,b,c,d,v,T,y,I=function(O){return p&&ka(p,"normal"),new Tr(!0,O)},h=function(O){return i?(_b(O),a?l(O[0],O[1],I):l(O[0],O[1])):a?l(O,I):l(O)};if(o)p=e.iterator;else if(u)p=e;else{if(b=jb(e),!b)throw new kb(Ab(e)+" is not iterable");if(Lb(b)){for(c=0,d=Cb(e);d>c;c++)if(v=h(e[c]),v&&ja(Ma,v))return v;return new Tr(!1)}p=Nb(e,b)}for(T=o?e.next:p.next;!(y=Pb(T,p)).done;){try{v=h(y.value)}catch(O){ka(p,"throw",O)}if(typeof v=="object"&&v&&ja(Ma,v))return v}return new Tr(!1)}});var Ua=s((Lh,Da)=>{"use strict";var Mb=A(),Vb=ie(),Fb=be();Da.exports=function(e,r,t){Mb?Vb.f(e,r,Fb(0,t)):e[r]=t}});var Ga=s(()=>{"use strict";var Db=ue(),Ub=Fa(),Gb=Ua();Db({target:"Object",stat:!0},{fromEntries:function(r){var t={};return Ub(r,function(n,i){Gb(t,n,i)},{AS_ENTRIES:!0}),t}})});var Qa=s((jh,Ba)=>{"use strict";Qt();Ga();var Bb=de();Ba.exports=Bb.Object.fromEntries});var Ka=s((kh,za)=>{"use strict";za.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 $a=s(()=>{"use strict";Qt();var Qb=Ka(),zb=w(),Kb=br(),Wa=J();for(yr in Qb)Kb(zb[yr],yr),Wa[yr]=Wa.Array;var yr});var Ha=s((Fh,Ya)=>{"use strict";var Wb=Qa();$a();Ya.exports=Wb});var Ja=s((Dh,Xa)=>{"use strict";var $b=Ha();Xa.exports=$b});var od={};gr(od,{ErrorCategory:()=>ds,InterfaceLanguage:()=>tu,InternalsExposure:()=>Kt,Logger:()=>Ae,Observable:()=>f,Subject:()=>k,Subscription:()=>E,SubscriptionRemovable:()=>Oe,TracerFactory:()=>rr,VERSION:()=>rn,VKNumericLanguage:()=>ru,ValueSubject:()=>Ie,VideoQuality:()=>We,abortable:()=>pn,addScript:()=>un,areQualitiesExact:()=>yo,assertEmptyArray:()=>an,assertNever:()=>N,assertNonNullable:()=>nn,assertNotEmptyArray:()=>sn,assertNullable:()=>on,assertQualityIsExact:()=>ho,buffer:()=>ut,checkNever:()=>tn,clearVideoElement:()=>xo,cloneDeep:()=>Io,cloneDeepWith:()=>he,combine:()=>ot,createURL:()=>Fc,debounce:()=>ct,debounceFn:()=>He,detectEmbed:()=>uo,devNull:()=>hr,fillWithDefault:()=>go,filter:()=>dt,filterChanged:()=>mt,flattenObject:()=>ge,fromEvent:()=>is,getExponentialDelay:()=>fn,getHighestQuality:()=>fo,getTraceSubscriptionMethod:()=>wo,interval:()=>ts,isHigher:()=>lo,isHigherOrEqual:()=>co,isIntersecting:()=>Eo,isInvariantQuality:()=>Ye,isLower:()=>$e,isLowerOrEqual:()=>po,isNonNullable:()=>W,isNullable:()=>re,isValidURL:()=>Vc,loadVKLangPack:()=>Hb,map:()=>xe,mapTo:()=>yt,merge:()=>st,noop:()=>B,now:()=>cn,observableFrom:()=>ns,observeElementSize:()=>Oo,once:()=>ht,pairwise:()=>It,safeStorage:()=>Le,skip:()=>wt,tap:()=>xt,throttle:()=>ft,throttleFn:()=>Xe,timeCodeToString:()=>kc,timeout:()=>rs,videoHeightToQuality:()=>vo,videoQualityToHeight:()=>To,videoSizeToQuality:()=>mo});module.exports=bu(od);var rn="1.0.63-dev.8749d62b.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 N=e=>{throw new Error(`${e} is value of unexpected type`)},tn=e=>{};var B=()=>{};var f=class{constructor(r){r&&(this._subscribe=r)}subscribe(r,t){var u;let n;t?typeof t=="function"?n={next:t,error:B}:n={next:a=>t.next(a),error:a=>{var l;return(l=t.error)==null?void 0:l.call(t,a)}}:n={next:B,error:B};let i=typeof r=="function"?{next:a=>{try{let l=r(a);l instanceof Promise&&l.catch(p=>n.next(p))}catch(l){n.next(l)}},error:a=>n.next(a)}:{next:a=>r.next(a),error:a=>r.error?r.error(a):n.next(a)},o;try{o=this._subscribe(i)}catch(a){(u=i.error)==null||u.call(i,a)}return new E().add(()=>{switch(i.next=B,i.error=B,typeof o){case"function":o();return;case"object":o.unsubscribe();return;case"undefined":return;default:return N(o)}})}pipe(...r){return r.reduce((t,n)=>n(t),this)}_subscribe(r){}};var k=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 Ae=class{constructor(){this.log$=new k;this.logs=[];this.log=r=>{let t=U(q({},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=>q({component:r},t))}};function nn(e,r='Assertion "value is not nullable" failed'){if(e==null)throw new Error(r)}function on(e,r='Assertion "value is nullable" failed'){if(e!=null)throw new Error(r)}function W(e){return typeof e!="undefined"&&e!==null}function re(e){return e==null}function sn(e,r){if(!(e!=null&&e.length))throw new Error(r)}function an(e,r){if(e!=null&&e.length)throw new Error(r)}var un=(e,r,t)=>new Promise((n,i)=>{r.addEventListener("abort",()=>{a(),p.remove()});let o=()=>{a(),i("error")},u=()=>{a(),n()},a=()=>{l&&clearTimeout(l),p.removeEventListener("load",u),p.removeEventListener("error",o)},l;t&&(l=window.setTimeout(()=>{a(),i("timeout")},t));let p=document.createElement("script");p.addEventListener("load",u),p.addEventListener("error",o),p.src=e,document.head.appendChild(p)});var ln,cn=typeof((ln=window.performance)==null?void 0:ln.now)=="function"?()=>window.performance.now():()=>Date.now();var pn=(e,r)=>(...t)=>ee(null,null,function*(){var u;let n=r(...t),i=e.aborted,o;for(;!i&&!e.aborted;)try{let a=yield n.next(o);i=(u=a.done)!=null?u:!1,o=a.value}catch(a){yield n.throw(a)}return o});var fn=(e,{start:r=0,factor:t=2,max:n=1/0,min:i=r,random:o=0}={})=>{let u=r;return u*=Zt(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 Le={};gr(Le,{clear:()=>hu,get:()=>vu,has:()=>Tu,isPersistent:()=>du,remove:()=>yu,set:()=>mu});var x,$,Ir=`vk-videoplayer-dummy-key-${Math.random()}`,te=()=>{if($!==void 0)return $;try{localStorage.setItem(Ir,"test"),localStorage.removeItem(Ir),$=0}catch(e){if(e instanceof DOMException||e instanceof TypeError)try{sessionStorage.getItem(Ir),$=1}catch(r){if(r instanceof DOMException||r instanceof TypeError)$=2;else throw r}else throw e}return $===2&&(x=new Map),$},du=()=>te()===0,vu=e=>{var t,n;let r=te();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:N(r)}},mu=(e,r)=>{let t=te();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:x==null||x.set(e,r);return;default:N(t)}},Tu=e=>{var t;let r=te();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 N(r),!1}},yu=e=>{let r=te();switch(r){case 0:return localStorage.removeItem(e);case 1:return sessionStorage.removeItem(e);case 2:x==null||x.delete(e);return;default:N(r)}},hu=()=>{let e=te();switch(e){case 0:return localStorage.clear();case 1:return sessionStorage.clear();case 2:return x==null?void 0:x.clear();default:N(e)}};var gu=(e,r,t)=>{if(typeof e.canParse=="function")return e.canParse(r,t);try{return new e(r,t),!0}catch(n){return!1}},bn=gu;var Jr=G(ao(),1),uo=()=>{let e,r=[];try{e=window.self!==window.top}catch(t){t instanceof DOMException&&t.name==="SecurityError"?e=!0:(e=!1,console.error(t))}try{window.location.ancestorOrigins&&(r=[...window.location.ancestorOrigins])}catch(t){console.error(t)}try{!r.length&&document.referrer&&(r=[new URL(document.referrer).origin])}catch(t){console.error(t)}return r=r.filter(t=>bn(URL,t)),{isEmbed:e,origins:r,topOrigin:(0,Jr.default)(r,-1),immediateOrigin:(0,Jr.default)(r,0)}};var We=(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))(We||{});var P={"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}},lo=(e,r)=>P[e].height>P[r].height,co=(e,r)=>P[e].height>=P[r].height,$e=(e,r)=>P[e].height<P[r].height,po=(e,r)=>P[e].height<=P[r].height,fo=e=>e.sort((r,t)=>r===t?0:r==="Invariant quality"?1:t==="Invariant quality"?-1:$e(r,t)?1:-1)[0],bo=Object.keys(P).sort((e,r)=>$e(e,r)?-1:1),vo=(e,r=.02)=>[...bo].find(n=>P[n].height*(1+r)>=e),mo=({width:e,height:r})=>{let t=Math.min(e,r),n=Math.max(e,r);return bo.find(i=>{let o=P[i];return o.width>=n&&o.height>=t})},To=e=>P[e].height,Ye=e=>e==="Invariant quality",yo=e=>e.every(r=>!Ye(r));function ho(e){if(Ye(e))throw new Error("Expected exact quality")}var go=(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]=go(o,i):t[n]=n in e?o:i}return t};var kc=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 He(e,r=0,t){let n,i,o,u,a,l,p=0,b=!1,c=!1,d=!0,v=!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,d="trailing"in t?!!t.trailing:d);function T(m){let _=n,K=i;return n=i=void 0,p=m,u=e.apply(K,_),u}function y(m,_){return v?(a&&window.cancelAnimationFrame(a),window.requestAnimationFrame(m)):setTimeout(m,_)}function I(m){if(v){window.cancelAnimationFrame(m);return}clearTimeout(m)}function h(m){return p=m,a=y(Pe,r),b?T(m):u}function O(m){let _=m-l,K=m-p,Yt=r-_;return c?Math.min(Yt,o-K):Yt}function Wt(m){let _=m-l,K=m-p;return l===void 0||_>=r||_<0||c&&K>=o}function Pe(){let m=Date.now();if(Wt(m))return $t(m);a=y(Pe,O(m))}function $t(m){return a=void 0,d&&n?T(m):(n=i=void 0,u)}function nu(){a!==void 0&&I(a),p=0,n=l=i=a=void 0}function iu(){return a===void 0?u:$t(Date.now())}function ou(){return a!==void 0}function _e(...m){let _=Date.now(),K=Wt(_);if(n=m,i=this,l=_,K){if(a===void 0)return h(l);if(c)return a=y(Pe,r),T(l)}return a===void 0&&(a=y(Pe,r)),u}return _e.cancel=nu,_e.flush=iu,_e.pending=ou,_e}var Xe=(e,r=0,t)=>He(e,r,U(q(q({},{leading:!0,trailing:!0}),t),{maxWait:r}));var he=(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]=he(e[n],r):t[n]=e[n]}return t};var Io=e=>he(e);var Mc=300,Oo=(e,r=Mc)=>new f(t=>{let{width:n,height:i}=e.getBoundingClientRect();if(t.next({width:n,height:i}),!window.ResizeObserver)return;let o=new ResizeObserver(Xe(u=>{let a=u[0];if(!a)return;let l,p;a.contentBoxSize&&a.contentBoxSize[0]?(p=a.contentBoxSize[0].blockSize,l=a.contentBoxSize[0].inlineSize):a.contentRect&&(l=a.contentRect.width,p=a.contentRect.height),W(l)&&W(p)&&t.next({width:l,height:p})},r));return o.observe(e),()=>o.disconnect()});var ge=(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=ge(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 xo=e=>{e.removeAttribute("src"),e.load()};var Vc=e=>{let r;try{r=new URL(e)}catch(t){return!1}return r.protocol==="https:"};var Fc=e=>{try{return new URL(e)}catch(r){return null}};var Eo=(e,r)=>!(e.right<r.left||e.left>r.right||e.bottom<r.top||e.top>r.bottom);var wo=e=>r=>t=>{let n=typeof t=="object";t==null||n&&!Object.keys(t).length||e(r,n?ge(t):{value:t})},Je=(e={})=>{let r=n=>{let i=n;return n===void 0?i="undefined":n===null?i="null":(typeof n=="number"||typeof n=="boolean")&&(i=n.toString()),i},t={};for(let n in e)Array.isArray(e[n])?t[n]=e[n].map(r):t[n]=r(e[n]);return t};var g=class g{constructor({name:r,getParentContext:t}){this.dynamicImportTimeout=5e3;this.childTracers=[];g.dynamicImportStatus==="not_started"&&(g.dynamicImportPromise=this.loadOpentelemetry());let n=Date.now();this.initPromise=g.dynamicImportPromise.then(i=>{g.dynamicImportStatus==="completed"&&this.init({name:r,getParentContext:t},n)})}init({name:r,getParentContext:t},n){this.span=g.rootTracer.startSpan(r,{startTime:n},t==null?void 0:t()),this.context=g.dynamicImports.opentelemetryApi.trace.setSpan(g.dynamicImports.opentelemetryApi.context.active(),this.span)}loadOpentelemetry(){return ee(this,null,function*(){if(g.dynamicImportStatus==="not_started"){g.dynamicImportStatus="in_progress";try{let r=new Promise((u,a)=>setTimeout(a,this.dynamicImportTimeout)),t=Promise.all([import("@opentelemetry/api"),import("@opentelemetry/sdk-trace-web"),import("@tracer/opentelemetry")]),[n,i,o]=yield Promise.race([t,r]);g.dynamicImports={opentelemetryApi:n,opentelemetrySdk:i,tracer:o},g.dynamicImportStatus="completed"}catch(r){g.dynamicImportStatus="failed"}}})}isComponentTracerNotInitialized(){return re(this.span)||g.dynamicImportStatus==="failed"}log(r,t){let n=Date.now();this.initPromise.then(i=>{this.isComponentTracerNotInitialized()||this.span.addEvent(r,U(q({},Je(t)),{type:"log"}),n)})}error(r,t){let n=Date.now();this.initPromise.then(i=>{this.isComponentTracerNotInitialized()||this.span.addEvent(r,U(q({},Je(t)),{type:"error"}),n)})}critical(r,t){let n=Date.now();this.initPromise.then(i=>{this.isComponentTracerNotInitialized()||this.span.addEvent(r,U(q({},Je(t)),{type:"critical"}),n)})}createComponentTracer(r){let t=new g({name:r,getParentContext:()=>this.context});return this.childTracers.push(t),t}end(){this.initPromise.then(r=>{this.isComponentTracerNotInitialized()||(this.childTracers.forEach(t=>t.end()),this.span.end())})}};g.dynamicImportStatus="not_started";var z=g;var Ze=class extends z{constructor(){super({name:"Root"})}init({name:r,getParentContext:t},n){let o=z.dynamicImports.tracer.initTracerOpenTelemetry({serviceName:"videoplayer-sdk-web",appToken:"L9SBoka6ZWk4xPjaK7tmfSfYvMhcge7nvGDjpdMmscb",spanLimits:{attributeCountLimit:1/0,eventCountLimit:1/0,attributePerEventCountLimit:1/0}}).getProvider(),u=new z.dynamicImports.tracer.TracerMemorySpanExporter;this.spanExporter=u,o.addSpanProcessor(new z.dynamicImports.tracer.TracerAllSpansProcessor({startedSpansExporter:u})),z.rootTracer=o.getTracer("sdk-videoplayer-tracer"),super.init({name:r,getParentContext:t},n)}getFinishedSpans(){var r;if(!this.isComponentTracerNotInitialized())return(r=this.spanExporter)==null?void 0:r.getJsonData()}getTraceId(){return this.isComponentTracerNotInitialized()?"":this.span.spanContext().traceId}};var er=class e{constructor(r){}log(r,t){}error(r,t){}critical(r,t){}createComponentTracer(r){return new e({name:r})}end(){}getFinishedSpans(){}getTraceId(){return this.fakeTraceId}};var rr=class{static createRootTracer(r=!1){return r?new Ze:new er}};var Ie=class extends k{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}};var es=G(it(),1);function ot(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(0,es.default)(e).reduce((o,[u,a])=>o.add(a.subscribe(i(u))),new E)})}function st(...e){return new f(r=>e.reduce((t,n)=>t.add(n.subscribe(r)),new E))}var rs=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 ts=e=>new f(r=>{let t=window.setInterval(()=>r.next(),e);return()=>{t&&(window.clearInterval(t),t=void 0)}});var ns=e=>new f(r=>{e.forEach(t=>r.next(t))});var is=(e,r)=>new f(t=>{let n=i=>t.next(i);return e.addEventListener(r,n),()=>e.removeEventListener(r,n)});var Oe=class extends E{remove(r){this.subscriptions=this.subscriptions.filter(t=>t!==r)}};function ut(e){return r=>new f(t=>r.subscribe(new at(t,e)))}var at=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 hp={leading:!1,trailing:!0};function ct(e,r=hp){return t=>new f(n=>t.subscribe(new lt(n,e,r)))}var lt=class{constructor(r,t,n){this.destination=r;this.time=t;this.config=n}next(r){this.lastValue=r,W(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 gp={leading:!0,trailing:!1};function ft(e,r=gp){return t=>new f(n=>t.subscribe(new pt(n,e,r)))}var pt=class{constructor(r,t,n){this.destination=r;this.time=t;this.config=n}next(r){this.lastValue=r,re(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 dt(e){return r=>new f(t=>r.subscribe(new bt(t,e)))}var bt=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)}};var bs=G(ps(),1);var Pp=(e,r)=>{let t=(n,i)=>{let o=Object.keys(n);for(let u in i)if(!(0,bs.default)(o,u)||i[u]!==n[u])return!1;return!0};return t(e,r)&&t(r,e)},_p=(e,r)=>e instanceof Object&&r instanceof Object?Pp(e,r):e===r;function mt(e=_p){return r=>new f(t=>r.subscribe(new vt(t,e)))}var fs={},vt=class{constructor(r,t){this.destination=r;this.predicate=t;this.lastValue=fs}next(r){let t;try{t=this.lastValue===fs||!this.predicate(this.lastValue,r),this.lastValue=r instanceof Object?q({},r):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 xe(e){return r=>new f(t=>r.subscribe(new Tt(t,e)))}var Tt=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 yt(e){return xe(()=>e)}function ht(){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 It(){return e=>new f(r=>e.subscribe(new gt(r)))}var gt=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 xt(e){return r=>new f(t=>r.subscribe(new Ot(t,e)))}var Ot=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)}};function wt(e){return r=>new f(t=>r.subscribe(new Et(t,e)))}var Et=class{constructor(r,t){this.destination=r;this.count=t;var n,i;t<0&&((i=(n=this.destination).error)==null||i.call(n,new Error("Count can not be less than zero")))}next(r){this.count===0?this.destination.next(r):this.count--}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};var ds=(a=>(a.NETWORK="network",a.VIDEO_PIPELINE="video_pipeline",a.EXTERNAL_API="external_api",a.PARSER="parser",a.DOM="dom",a.WTF="wtf",a.FATAL="fatal",a))(ds||{});var{NativeAbortSignal:zy,NativeAbortController:Ky}=function(e){return{NativeAbortSignal:e.AbortSignal,NativeAbortController:e.AbortController}}(typeof self!="undefined"?self:global);function vs(e){let r;try{r=new Event("abort")}catch(t){typeof document!="undefined"?document.createEvent?(r=document.createEvent("Event"),r.initEvent("abort",!1,!1)):(r=document.createEventObject(),r.type="abort"):r={type:"abort",bubbles:!1,cancelable:!1}}return r.reason=e,r}function ms(e){if(e===void 0)if(typeof document=="undefined")e=new Error("This operation was aborted"),e.name="AbortError";else try{e=new DOMException("signal is aborted without reason"),Object.defineProperty(e,"name",{value:"AbortError"})}catch(r){e=new Error("This operation was aborted"),e.name="AbortError"}return e}var or=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(a){Promise.resolve().then(()=>{throw a})}u.options&&u.options.once&&this.removeEventListener(r.type,u.callback)}return!r.defaultPrevented}},le=class extends or{constructor(){super(),this.listeners||or.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)}throwIfAborted(){let{aborted:r,reason:t="Aborted"}=this;if(r)throw t}static timeout(r){let t=new X;return setTimeout(()=>t.abort(new DOMException(`This signal is timeout in ${r}ms`,"TimeoutError")),r),t.signal}static any(r){let t=new X;function n(){t.abort(this.reason),i()}function i(){for(let o of r)o.removeEventListener("abort",n)}for(let o of r)if(o.aborted){t.abort(o.reason);break}else o.addEventListener("abort",n);return t.signal}},X=class{constructor(){Object.defineProperty(this,"signal",{value:new le,writable:!0,configurable:!0})}abort(r){let t=ms(r),n=vs(t);this.signal.reason=t,this.signal.dispatchEvent(n)}toString(){return"[object AbortController]"}};typeof Symbol!="undefined"&&Symbol.toStringTag&&(X.prototype[Symbol.toStringTag]="AbortController",le.prototype[Symbol.toStringTag]="AbortSignal");function sr(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 St(e){typeof e=="function"&&(e={fetch:e});let{fetch:r,Request:t=r.Request,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:i=!1}=e;if(!sr({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(p,b){let c;b&&b.signal&&(c=b.signal,delete b.signal);let d=new t(p,b);return c&&Object.defineProperty(d,"signal",{writable:!1,enumerable:!1,configurable:!0,value:c}),d},o.prototype=t.prototype);let u=r;return{fetch:(l,p)=>{let b=o&&o.prototype.isPrototypeOf(l)?l.signal:p?p.signal:void 0;if(b){let c;try{c=new DOMException("Aborted","AbortError")}catch(v){c=new Error("Aborted"),c.name="AbortError"}if(b.aborted)return Promise.reject(c);let d=new Promise((v,T)=>{b.addEventListener("abort",()=>T(c),{once:!0})});return p&&p.signal&&delete p.signal,Promise.race([d,u(l,p)])}return u(l,p)},Request:o}}var Ap=()=>"fetch"in window,Ee=Ap()&&sr({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}),Ts=Ee?St({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}):void 0,ys=Ee?Ts.fetch:window.fetch,th=Ee?Ts.Request:window.Request,nh=Ee?X:window.AbortController,ih=Ee?le:window.AbortSignal;var Za=G(it(),1),eu=G(Ja(),1);var ru=(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))(ru||{}),Yb="vk.com",Hb=(e,r,t)=>ee(null,null,function*(){let n=new URL(`https://${Yb}/js/lang-pack.js`);n.searchParams.set("format","json"),n.searchParams.set("name",r),e!==void 0&&n.searchParams.set("lang",e);let o=yield(yield ys(n.toString())).json();return Xb(o,t)}),Xb=(e,r)=>(0,eu.default)((0,Za.default)(e.keys).map(([t,n])=>[t.substring(`${r}_`.length),Jb(n)])),Jb=e=>Array.isArray(e)?e[0]:e;var tu=(t=>(t.RU="ru",t.EN="en",t))(tu||{});var Zb={UI:"__vkVideoPlayer",CORE:"__vkVideoCore"},ed=(()=>{let e=0;return()=>{let r=e;return e=(e+1)%Number.MAX_SAFE_INTEGER,r}})(),Kt=class{constructor(r){this.id=ed();this.type=r,this.initWindowObjects()}getWindowObject(){var t,n;let r=this.key();return(n=(t=window[r])==null?void 0:t[this.id])!=null?n:{}}initWindowObjects(){let r=this.key();window[r]||(window[r]={}),window[r][this.id]={}}expose(r){Object.assign(this.getWindowObject(),r)}destroy(){let r=this.key();window&&window[r]&&window[r][this.id]&&(delete window[r][this.id],Object.keys(window[r]).length||delete window[r])}key(){let{type:r}=this;return Zb[r]}};var hr={};gr(hr,{create:()=>rd,destroy:()=>td,push:()=>nd,subscribe:()=>id});var Re=new Map,rd=(e,r)=>Re.set(e,r!=null?r:[]),td=e=>Re.delete(e),nd=(e,r)=>{let t=Re.get(e);t&&(typeof t=="function"?t(r):t.push(r))},id=(e,r)=>{let t=Re.get(e);if(t){if(t&&Array.isArray(t))for(let n of t)r(n);Re.set(e,r)}};
6
+ "use strict";var su=Object.create;var ce=Object.defineProperty,au=Object.defineProperties,uu=Object.getOwnPropertyDescriptor,lu=Object.getOwnPropertyDescriptors,cu=Object.getOwnPropertyNames,Ht=Object.getOwnPropertySymbols,pu=Object.getPrototypeOf,Jt=Object.prototype.hasOwnProperty,fu=Object.prototype.propertyIsEnumerable;var Zt=Math.pow,Xt=(e,r,t)=>r in e?ce(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,q=(e,r)=>{for(var t in r||(r={}))Jt.call(r,t)&&Xt(e,t,r[t]);if(Ht)for(var t of Ht(r))fu.call(r,t)&&Xt(e,t,r[t]);return e},U=(e,r)=>au(e,lu(r));var s=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),gr=(e,r)=>{for(var t in r)ce(e,t,{get:r[t],enumerable:!0})},en=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of cu(r))!Jt.call(e,i)&&i!==t&&ce(e,i,{get:()=>r[i],enumerable:!(n=uu(r,i))||n.enumerable});return e};var G=(e,r,t)=>(t=e!=null?su(pu(e)):{},en(r||!e||!e.__esModule?ce(t,"default",{value:e,enumerable:!0}):t,e)),du=e=>en(ce({},"__esModule",{value:!0}),e);var ee=(e,r,t)=>new Promise((n,i)=>{var o=l=>{try{a(t.next(l))}catch(p){i(p)}},u=l=>{try{a(t.throw(l))}catch(p){i(p)}},a=l=>l.done?n(l.value):Promise.resolve(l.value).then(o,u);a((t=t.apply(e,r)).next())});var w=s((Or,bn)=>{"use strict";var pe=function(e){return e&&e.Math===Math&&e};bn.exports=pe(typeof globalThis=="object"&&globalThis)||pe(typeof window=="object"&&window)||pe(typeof self=="object"&&self)||pe(typeof global=="object"&&global)||pe(typeof Or=="object"&&Or)||function(){return this}()||Function("return this")()});var R=s((Nb,vn)=>{"use strict";vn.exports=function(e){try{return!!e()}catch(r){return!0}}});var fe=s((jb,mn)=>{"use strict";var Iu=R();mn.exports=!Iu(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var In=s((kb,gn)=>{"use strict";var Ou=fe(),hn=Function.prototype,Tn=hn.apply,yn=hn.call;gn.exports=typeof Reflect=="object"&&Reflect.apply||(Ou?yn.bind(Tn):function(){return yn.apply(Tn,arguments)})});var j=s((Mb,En)=>{"use strict";var On=fe(),xn=Function.prototype,xr=xn.call,xu=On&&xn.bind.bind(xr,xr);En.exports=On?xu:function(e){return function(){return xr.apply(e,arguments)}}});var Ce=s((Vb,Sn)=>{"use strict";var wn=j(),Eu=wn({}.toString),wu=wn("".slice);Sn.exports=function(e){return wu(Eu(e),8,-1)}});var Er=s((Fb,qn)=>{"use strict";var Su=Ce(),qu=j();qn.exports=function(e){if(Su(e)==="Function")return qu(e)}});var S=s((Db,Rn)=>{"use strict";var wr=typeof document=="object"&&document.all;Rn.exports=typeof wr=="undefined"&&wr!==void 0?function(e){return typeof e=="function"||e===wr}:function(e){return typeof e=="function"}});var A=s((Ub,Pn)=>{"use strict";var Ru=R();Pn.exports=!Ru(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var Q=s((Gb,_n)=>{"use strict";var Pu=fe(),Ne=Function.prototype.call;_n.exports=Pu?Ne.bind(Ne):function(){return Ne.apply(Ne,arguments)}});var Sr=s(Cn=>{"use strict";var An={}.propertyIsEnumerable,Ln=Object.getOwnPropertyDescriptor,_u=Ln&&!An.call({1:2},1);Cn.f=_u?function(r){var t=Ln(this,r);return!!t&&t.enumerable}:An});var de=s((Qb,Nn)=>{"use strict";Nn.exports=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}}});var kn=s((zb,jn)=>{"use strict";var Au=j(),Lu=R(),Cu=Ce(),qr=Object,Nu=Au("".split);jn.exports=Lu(function(){return!qr("z").propertyIsEnumerable(0)})?function(e){return Cu(e)==="String"?Nu(e,""):qr(e)}:qr});var je=s((Kb,Mn)=>{"use strict";Mn.exports=function(e){return e==null}});var ke=s((Wb,Vn)=>{"use strict";var ju=je(),ku=TypeError;Vn.exports=function(e){if(ju(e))throw new ku("Can't call method on "+e);return e}});var Y=s(($b,Fn)=>{"use strict";var Mu=kn(),Vu=ke();Fn.exports=function(e){return Mu(Vu(e))}});var M=s((Yb,Dn)=>{"use strict";var Fu=S();Dn.exports=function(e){return typeof e=="object"?e!==null:Fu(e)}});var be=s((Hb,Un)=>{"use strict";Un.exports={}});var Me=s((Xb,Bn)=>{"use strict";var Rr=be(),Pr=w(),Du=S(),Gn=function(e){return Du(e)?e:void 0};Bn.exports=function(e,r){return arguments.length<2?Gn(Rr[e])||Gn(Pr[e]):Rr[e]&&Rr[e][r]||Pr[e]&&Pr[e][r]}});var _r=s((Jb,Qn)=>{"use strict";var Uu=j();Qn.exports=Uu({}.isPrototypeOf)});var $n=s((Zb,Wn)=>{"use strict";var Gu=w(),zn=Gu.navigator,Kn=zn&&zn.userAgent;Wn.exports=Kn?String(Kn):""});var ri=s((ev,ei)=>{"use strict";var Zn=w(),Ar=$n(),Yn=Zn.process,Hn=Zn.Deno,Xn=Yn&&Yn.versions||Hn&&Hn.version,Jn=Xn&&Xn.v8,L,Ve;Jn&&(L=Jn.split("."),Ve=L[0]>0&&L[0]<4?1:+(L[0]+L[1]));!Ve&&Ar&&(L=Ar.match(/Edge\/(\d+)/),(!L||L[1]>=74)&&(L=Ar.match(/Chrome\/(\d+)/),L&&(Ve=+L[1])));ei.exports=Ve});var Lr=s((rv,ni)=>{"use strict";var ti=ri(),Bu=R(),Qu=w(),zu=Qu.String;ni.exports=!!Object.getOwnPropertySymbols&&!Bu(function(){var e=Symbol("symbol detection");return!zu(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&ti&&ti<41})});var Cr=s((tv,ii)=>{"use strict";var Ku=Lr();ii.exports=Ku&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var Nr=s((nv,oi)=>{"use strict";var Wu=Me(),$u=S(),Yu=_r(),Hu=Cr(),Xu=Object;oi.exports=Hu?function(e){return typeof e=="symbol"}:function(e){var r=Wu("Symbol");return $u(r)&&Yu(r.prototype,Xu(e))}});var Fe=s((iv,si)=>{"use strict";var Ju=String;si.exports=function(e){try{return Ju(e)}catch(r){return"Object"}}});var ve=s((ov,ai)=>{"use strict";var Zu=S(),el=Fe(),rl=TypeError;ai.exports=function(e){if(Zu(e))return e;throw new rl(el(e)+" is not a function")}});var De=s((sv,ui)=>{"use strict";var tl=ve(),nl=je();ui.exports=function(e,r){var t=e[r];return nl(t)?void 0:tl(t)}});var ci=s((av,li)=>{"use strict";var jr=Q(),kr=S(),Mr=M(),il=TypeError;li.exports=function(e,r){var t,n;if(r==="string"&&kr(t=e.toString)&&!Mr(n=jr(t,e))||kr(t=e.valueOf)&&!Mr(n=jr(t,e))||r!=="string"&&kr(t=e.toString)&&!Mr(n=jr(t,e)))return n;throw new il("Can't convert object to primitive value")}});var me=s((uv,pi)=>{"use strict";pi.exports=!0});var bi=s((lv,di)=>{"use strict";var fi=w(),ol=Object.defineProperty;di.exports=function(e,r){try{ol(fi,e,{value:r,configurable:!0,writable:!0})}catch(t){fi[e]=r}return r}});var Ue=s((cv,Ti)=>{"use strict";var sl=me(),al=w(),ul=bi(),vi="__core-js_shared__",mi=Ti.exports=al[vi]||ul(vi,{});(mi.versions||(mi.versions=[])).push({version:"3.43.0",mode:sl?"pure":"global",copyright:"\xA9 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.43.0/LICENSE",source:"https://github.com/zloirock/core-js"})});var Vr=s((pv,hi)=>{"use strict";var yi=Ue();hi.exports=function(e,r){return yi[e]||(yi[e]=r||{})}});var Ge=s((fv,gi)=>{"use strict";var ll=ke(),cl=Object;gi.exports=function(e){return cl(ll(e))}});var V=s((dv,Ii)=>{"use strict";var pl=j(),fl=Ge(),dl=pl({}.hasOwnProperty);Ii.exports=Object.hasOwn||function(r,t){return dl(fl(r),t)}});var Fr=s((bv,Oi)=>{"use strict";var bl=j(),vl=0,ml=Math.random(),Tl=bl(1.1.toString);Oi.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Tl(++vl+ml,36)}});var F=s((vv,Ei)=>{"use strict";var yl=w(),hl=Vr(),xi=V(),gl=Fr(),Il=Lr(),Ol=Cr(),ne=yl.Symbol,Dr=hl("wks"),xl=Ol?ne.for||ne:ne&&ne.withoutSetter||gl;Ei.exports=function(e){return xi(Dr,e)||(Dr[e]=Il&&xi(ne,e)?ne[e]:xl("Symbol."+e)),Dr[e]}});var Ri=s((mv,qi)=>{"use strict";var El=Q(),wi=M(),Si=Nr(),wl=De(),Sl=ci(),ql=F(),Rl=TypeError,Pl=ql("toPrimitive");qi.exports=function(e,r){if(!wi(e)||Si(e))return e;var t=wl(e,Pl),n;if(t){if(r===void 0&&(r="default"),n=El(t,e,r),!wi(n)||Si(n))return n;throw new Rl("Can't convert object to primitive value")}return r===void 0&&(r="number"),Sl(e,r)}});var Ur=s((Tv,Pi)=>{"use strict";var _l=Ri(),Al=Nr();Pi.exports=function(e){var r=_l(e,"string");return Al(r)?r:r+""}});var Br=s((yv,Ai)=>{"use strict";var Ll=w(),_i=M(),Gr=Ll.document,Cl=_i(Gr)&&_i(Gr.createElement);Ai.exports=function(e){return Cl?Gr.createElement(e):{}}});var Qr=s((hv,Li)=>{"use strict";var Nl=A(),jl=R(),kl=Br();Li.exports=!Nl&&!jl(function(){return Object.defineProperty(kl("div"),"a",{get:function(){return 7}}).a!==7})});var ji=s(Ni=>{"use strict";var Ml=A(),Vl=Q(),Fl=Sr(),Dl=de(),Ul=Y(),Gl=Ur(),Bl=V(),Ql=Qr(),Ci=Object.getOwnPropertyDescriptor;Ni.f=Ml?Ci:function(r,t){if(r=Ul(r),t=Gl(t),Ql)try{return Ci(r,t)}catch(n){}if(Bl(r,t))return Dl(!Vl(Fl.f,r,t),r[t])}});var Mi=s((Iv,ki)=>{"use strict";var zl=R(),Kl=S(),Wl=/#|\.prototype\./,Te=function(e,r){var t=Yl[$l(e)];return t===Xl?!0:t===Hl?!1:Kl(r)?zl(r):!!r},$l=Te.normalize=function(e){return String(e).replace(Wl,".").toLowerCase()},Yl=Te.data={},Hl=Te.NATIVE="N",Xl=Te.POLYFILL="P";ki.exports=Te});var zr=s((Ov,Fi)=>{"use strict";var Vi=Er(),Jl=ve(),Zl=fe(),ec=Vi(Vi.bind);Fi.exports=function(e,r){return Jl(e),r===void 0?e:Zl?ec(e,r):function(){return e.apply(r,arguments)}}});var Kr=s((xv,Di)=>{"use strict";var rc=A(),tc=R();Di.exports=rc&&tc(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var H=s((Ev,Ui)=>{"use strict";var nc=M(),ic=String,oc=TypeError;Ui.exports=function(e){if(nc(e))return e;throw new oc(ic(e)+" is not an object")}});var ie=s(Bi=>{"use strict";var sc=A(),ac=Qr(),uc=Kr(),Be=H(),Gi=Ur(),lc=TypeError,Wr=Object.defineProperty,cc=Object.getOwnPropertyDescriptor,$r="enumerable",Yr="configurable",Hr="writable";Bi.f=sc?uc?function(r,t,n){if(Be(r),t=Gi(t),Be(n),typeof r=="function"&&t==="prototype"&&"value"in n&&Hr in n&&!n[Hr]){var i=cc(r,t);i&&i[Hr]&&(r[t]=n.value,n={configurable:Yr in n?n[Yr]:i[Yr],enumerable:$r in n?n[$r]:i[$r],writable:!1})}return Wr(r,t,n)}:Wr:function(r,t,n){if(Be(r),t=Gi(t),Be(n),ac)try{return Wr(r,t,n)}catch(i){}if("get"in n||"set"in n)throw new lc("Accessors not supported");return"value"in n&&(r[t]=n.value),r}});var oe=s((Sv,Qi)=>{"use strict";var pc=A(),fc=ie(),dc=de();Qi.exports=pc?function(e,r,t){return fc.f(e,r,dc(1,t))}:function(e,r,t){return e[r]=t,e}});var ue=s((qv,Ki)=>{"use strict";var ye=w(),bc=In(),vc=Er(),mc=S(),Tc=ji().f,yc=Mi(),se=be(),hc=zr(),ae=oe(),zi=V();Ue();var gc=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 bc(e,this,arguments)};return r.prototype=e.prototype,r};Ki.exports=function(e,r){var t=e.target,n=e.global,i=e.stat,o=e.proto,u=n?ye:i?ye[t]:ye[t]&&ye[t].prototype,a=n?se:se[t]||ae(se,t,{})[t],l=a.prototype,p,d,c,b,v,T,y,I,h;for(b in r)p=yc(n?b:t+(i?".":"#")+b,e.forced),d=!p&&u&&zi(u,b),T=a[b],d&&(e.dontCallGetSet?(h=Tc(u,b),y=h&&h.value):y=u[b]),v=d&&y?y:r[b],!(!p&&!o&&typeof T==typeof v)&&(e.bind&&d?I=hc(v,ye):e.wrap&&d?I=gc(v):o&&mc(v)?I=vc(v):I=v,(e.sham||v&&v.sham||T&&T.sham)&&ae(I,"sham",!0),ae(a,b,I),o&&(c=t+"Prototype",zi(se,c)||ae(se,c,{}),ae(se[c],b,v),e.real&&l&&(p||!l[b])&&ae(l,b,v)))}});var $i=s((Rv,Wi)=>{"use strict";var Ic=Math.ceil,Oc=Math.floor;Wi.exports=Math.trunc||function(r){var t=+r;return(t>0?Oc:Ic)(t)}});var Qe=s((Pv,Yi)=>{"use strict";var xc=$i();Yi.exports=function(e){var r=+e;return r!==r||r===0?0:xc(r)}});var Xi=s((_v,Hi)=>{"use strict";var Ec=Qe(),wc=Math.min;Hi.exports=function(e){var r=Ec(e);return r>0?wc(r,9007199254740991):0}});var ze=s((Av,Ji)=>{"use strict";var Sc=Xi();Ji.exports=function(e){return Sc(e.length)}});var Ke=s((Lv,Zi)=>{"use strict";Zi.exports=function(){}});var eo=s(()=>{"use strict";var qc=ue(),Rc=Ge(),Pc=ze(),_c=Qe(),Ac=Ke();qc({target:"Array",proto:!0},{at:function(r){var t=Rc(this),n=Pc(t),i=_c(r),o=i>=0?i:n+i;return o<0||o>=n?void 0:t[o]}});Ac("at")});var Xr=s((jv,ro)=>{"use strict";var Lc=Me();ro.exports=Lc});var no=s((kv,to)=>{"use strict";eo();var Cc=Xr();to.exports=Cc("Array","at")});var oo=s((Mv,io)=>{"use strict";var Nc=no();io.exports=Nc});var ao=s((Vv,so)=>{"use strict";var jc=oo();so.exports=jc});var tr=s((dT,qo)=>{"use strict";var Dc=Vr(),Uc=Fr(),So=Dc("keys");qo.exports=function(e){return So[e]||(So[e]=Uc(e))}});var Po=s((bT,Ro)=>{"use strict";var Gc=R();Ro.exports=!Gc(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var nr=s((vT,Ao)=>{"use strict";var Bc=V(),Qc=S(),zc=Ge(),Kc=tr(),Wc=Po(),_o=Kc("IE_PROTO"),Zr=Object,$c=Zr.prototype;Ao.exports=Wc?Zr.getPrototypeOf:function(e){var r=zc(e);if(Bc(r,_o))return r[_o];var t=r.constructor;return Qc(t)&&r instanceof t?t.prototype:r instanceof Zr?$c:null}});var Co=s((mT,Lo)=>{"use strict";var Yc=Qe(),Hc=Math.max,Xc=Math.min;Lo.exports=function(e,r){var t=Yc(e);return t<0?Hc(t+r,0):Xc(t,r)}});var et=s((TT,jo)=>{"use strict";var Jc=Y(),Zc=Co(),ep=ze(),No=function(e){return function(r,t,n){var i=Jc(r),o=ep(i);if(o===0)return!e&&-1;var u=Zc(n,o),a;if(e&&t!==t){for(;o>u;)if(a=i[u++],a!==a)return!0}else for(;o>u;u++)if((e||u in i)&&i[u]===t)return e||u||0;return!e&&-1}};jo.exports={includes:No(!0),indexOf:No(!1)}});var ir=s((yT,ko)=>{"use strict";ko.exports={}});var Fo=s((hT,Vo)=>{"use strict";var rp=j(),rt=V(),tp=Y(),np=et().indexOf,ip=ir(),Mo=rp([].push);Vo.exports=function(e,r){var t=tp(e),n=0,i=[],o;for(o in t)!rt(ip,o)&&rt(t,o)&&Mo(i,o);for(;r.length>n;)rt(t,o=r[n++])&&(~np(i,o)||Mo(i,o));return i}});var tt=s((gT,Do)=>{"use strict";Do.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var nt=s((IT,Uo)=>{"use strict";var op=Fo(),sp=tt();Uo.exports=Object.keys||function(r){return op(r,sp)}});var Wo=s((OT,Ko)=>{"use strict";var Bo=A(),ap=R(),Qo=j(),up=nr(),lp=nt(),cp=Y(),pp=Sr().f,zo=Qo(pp),fp=Qo([].push),dp=Bo&&ap(function(){var e=Object.create(null);return e[2]=2,!zo(e,2)}),Go=function(e){return function(r){for(var t=cp(r),n=lp(t),i=dp&&up(t)===null,o=n.length,u=0,a=[],l;o>u;)l=n[u++],(!Bo||(i?l in t:zo(t,l)))&&fp(a,e?[l,t[l]]:t[l]);return a}};Ko.exports={entries:Go(!0),values:Go(!1)}});var $o=s(()=>{"use strict";var bp=ue(),vp=Wo().entries;bp({target:"Object",stat:!0},{entries:function(r){return vp(r)}})});var Ho=s((wT,Yo)=>{"use strict";$o();var mp=be();Yo.exports=mp.Object.entries});var Jo=s((ST,Xo)=>{"use strict";var Tp=Ho();Xo.exports=Tp});var it=s((qT,Zo)=>{"use strict";var yp=Jo();Zo.exports=yp});var os=s(()=>{"use strict";var Ip=ue(),Op=et().includes,xp=R(),Ep=Ke(),wp=xp(function(){return!Array(1).includes()});Ip({target:"Array",proto:!0,forced:wp},{includes:function(r){return Op(this,r,arguments.length>1?arguments[1]:void 0)}});Ep("includes")});var as=s((ty,ss)=>{"use strict";os();var Sp=Xr();ss.exports=Sp("Array","includes")});var ls=s((ny,us)=>{"use strict";var qp=as();us.exports=qp});var ps=s((iy,cs)=>{"use strict";var Rp=ls();cs.exports=Rp});var J=s((sh,hs)=>{"use strict";hs.exports={}});var Os=s((ah,Is)=>{"use strict";var Lp=w(),Cp=S(),gs=Lp.WeakMap;Is.exports=Cp(gs)&&/native code/.test(String(gs))});var Ss=s((uh,ws)=>{"use strict";var Np=Os(),Es=w(),jp=M(),kp=oe(),qt=V(),Rt=Ue(),Mp=tr(),Vp=ir(),xs="Object already initialized",Pt=Es.TypeError,Fp=Es.WeakMap,ar,we,ur,Dp=function(e){return ur(e)?we(e):ar(e,{})},Up=function(e){return function(r){var t;if(!jp(r)||(t=we(r)).type!==e)throw new Pt("Incompatible receiver, "+e+" required");return t}};Np||Rt.state?(C=Rt.state||(Rt.state=new Fp),C.get=C.get,C.has=C.has,C.set=C.set,ar=function(e,r){if(C.has(e))throw new Pt(xs);return r.facade=e,C.set(e,r),r},we=function(e){return C.get(e)||{}},ur=function(e){return C.has(e)}):(Z=Mp("state"),Vp[Z]=!0,ar=function(e,r){if(qt(e,Z))throw new Pt(xs);return r.facade=e,kp(e,Z,r),r},we=function(e){return qt(e,Z)?e[Z]:{}},ur=function(e){return qt(e,Z)});var C,Z;ws.exports={set:ar,get:we,has:ur,enforce:Dp,getterFor:Up}});var Ps=s((lh,Rs)=>{"use strict";var _t=A(),Gp=V(),qs=Function.prototype,Bp=_t&&Object.getOwnPropertyDescriptor,At=Gp(qs,"name"),Qp=At&&function(){}.name==="something",zp=At&&(!_t||_t&&Bp(qs,"name").configurable);Rs.exports={EXISTS:At,PROPER:Qp,CONFIGURABLE:zp}});var As=s(_s=>{"use strict";var Kp=A(),Wp=Kr(),$p=ie(),Yp=H(),Hp=Y(),Xp=nt();_s.f=Kp&&!Wp?Object.defineProperties:function(r,t){Yp(r);for(var n=Hp(t),i=Xp(t),o=i.length,u=0,a;o>u;)$p.f(r,a=i[u++],n[a]);return r}});var Cs=s((ph,Ls)=>{"use strict";var Jp=Me();Ls.exports=Jp("document","documentElement")});var jt=s((fh,Ds)=>{"use strict";var Zp=H(),ef=As(),Ns=tt(),rf=ir(),tf=Cs(),nf=Br(),of=tr(),js=">",ks="<",Ct="prototype",Nt="script",Vs=of("IE_PROTO"),Lt=function(){},Fs=function(e){return ks+Nt+js+e+ks+"/"+Nt+js},Ms=function(e){e.write(Fs("")),e.close();var r=e.parentWindow.Object;return e=null,r},sf=function(){var e=nf("iframe"),r="java"+Nt+":",t;return e.style.display="none",tf.appendChild(e),e.src=String(r),t=e.contentWindow.document,t.open(),t.write(Fs("document.F=Object")),t.close(),t.F},lr,cr=function(){try{lr=new ActiveXObject("htmlfile")}catch(r){}cr=typeof document!="undefined"?document.domain&&lr?Ms(lr):sf():Ms(lr);for(var e=Ns.length;e--;)delete cr[Ct][Ns[e]];return cr()};rf[Vs]=!0;Ds.exports=Object.create||function(r,t){var n;return r!==null?(Lt[Ct]=Zp(r),n=new Lt,Lt[Ct]=null,n[Vs]=r):n=cr(),t===void 0?n:ef.f(n,t)}});var kt=s((dh,Us)=>{"use strict";var af=oe();Us.exports=function(e,r,t,n){return n&&n.enumerable?e[r]=t:af(e,r,t),e}});var Dt=s((bh,Qs)=>{"use strict";var uf=R(),lf=S(),cf=M(),pf=jt(),Gs=nr(),ff=kt(),df=F(),bf=me(),Ft=df("iterator"),Bs=!1,D,Mt,Vt;[].keys&&(Vt=[].keys(),"next"in Vt?(Mt=Gs(Gs(Vt)),Mt!==Object.prototype&&(D=Mt)):Bs=!0);var vf=!cf(D)||uf(function(){var e={};return D[Ft].call(e)!==e});vf?D={}:bf&&(D=pf(D));lf(D[Ft])||ff(D,Ft,function(){return this});Qs.exports={IteratorPrototype:D,BUGGY_SAFARI_ITERATORS:Bs}});var pr=s((vh,Ks)=>{"use strict";var mf=F(),Tf=mf("toStringTag"),zs={};zs[Tf]="z";Ks.exports=String(zs)==="[object z]"});var Ut=s((mh,Ws)=>{"use strict";var yf=pr(),hf=S(),fr=Ce(),gf=F(),If=gf("toStringTag"),Of=Object,xf=fr(function(){return arguments}())==="Arguments",Ef=function(e,r){try{return e[r]}catch(t){}};Ws.exports=yf?fr:function(e){var r,t,n;return e===void 0?"Undefined":e===null?"Null":typeof(t=Ef(r=Of(e),If))=="string"?t:xf?fr(r):(n=fr(r))==="Object"&&hf(r.callee)?"Arguments":n}});var Ys=s((Th,$s)=>{"use strict";var wf=pr(),Sf=Ut();$s.exports=wf?{}.toString:function(){return"[object "+Sf(this)+"]"}});var dr=s((yh,Xs)=>{"use strict";var qf=pr(),Rf=ie().f,Pf=oe(),_f=V(),Af=Ys(),Lf=F(),Hs=Lf("toStringTag");Xs.exports=function(e,r,t,n){var i=t?e:e&&e.prototype;i&&(_f(i,Hs)||Rf(i,Hs,{configurable:!0,value:r}),n&&!qf&&Pf(i,"toString",Af))}});var Zs=s((hh,Js)=>{"use strict";var Cf=Dt().IteratorPrototype,Nf=jt(),jf=de(),kf=dr(),Mf=J(),Vf=function(){return this};Js.exports=function(e,r,t,n){var i=r+" Iterator";return e.prototype=Nf(Cf,{next:jf(+!n,t)}),kf(e,i,!1,!0),Mf[i]=Vf,e}});var ra=s((gh,ea)=>{"use strict";var Ff=j(),Df=ve();ea.exports=function(e,r,t){try{return Ff(Df(Object.getOwnPropertyDescriptor(e,r)[t]))}catch(n){}}});var na=s((Ih,ta)=>{"use strict";var Uf=M();ta.exports=function(e){return Uf(e)||e===null}});var oa=s((Oh,ia)=>{"use strict";var Gf=na(),Bf=String,Qf=TypeError;ia.exports=function(e){if(Gf(e))return e;throw new Qf("Can't set "+Bf(e)+" as a prototype")}});var aa=s((xh,sa)=>{"use strict";var zf=ra(),Kf=M(),Wf=ke(),$f=oa();sa.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,r={},t;try{t=zf(Object.prototype,"__proto__","set"),t(r,[]),e=r instanceof Array}catch(n){}return function(i,o){return Wf(i),$f(o),Kf(i)&&(e?t(i,o):i.__proto__=o),i}}():void 0)});var ya=s((Eh,Ta)=>{"use strict";var Yf=ue(),Hf=Q(),br=me(),va=Ps(),Xf=S(),Jf=Zs(),ua=nr(),la=aa(),Zf=dr(),ed=oe(),Gt=kt(),rd=F(),ca=J(),ma=Dt(),td=va.PROPER,nd=va.CONFIGURABLE,pa=ma.IteratorPrototype,vr=ma.BUGGY_SAFARI_ITERATORS,Se=rd("iterator"),fa="keys",qe="values",da="entries",ba=function(){return this};Ta.exports=function(e,r,t,n,i,o,u){Jf(t,r,n);var a=function(h){if(h===i&&b)return b;if(!vr&&h&&h in d)return d[h];switch(h){case fa:return function(){return new t(this,h)};case qe:return function(){return new t(this,h)};case da:return function(){return new t(this,h)}}return function(){return new t(this)}},l=r+" Iterator",p=!1,d=e.prototype,c=d[Se]||d["@@iterator"]||i&&d[i],b=!vr&&c||a(i),v=r==="Array"&&d.entries||c,T,y,I;if(v&&(T=ua(v.call(new e)),T!==Object.prototype&&T.next&&(!br&&ua(T)!==pa&&(la?la(T,pa):Xf(T[Se])||Gt(T,Se,ba)),Zf(T,l,!0,!0),br&&(ca[l]=ba))),td&&i===qe&&c&&c.name!==qe&&(!br&&nd?ed(d,"name",qe):(p=!0,b=function(){return Hf(c,this)})),i)if(y={values:a(qe),keys:o?b:a(fa),entries:a(da)},u)for(I in y)(vr||p||!(I in d))&&Gt(d,I,y[I]);else Yf({target:r,proto:!0,forced:vr||p},y);return(!br||u)&&d[Se]!==b&&Gt(d,Se,b,{name:i}),ca[r]=b,y}});var ga=s((wh,ha)=>{"use strict";ha.exports=function(e,r){return{value:e,done:r}}});var Qt=s((Sh,wa)=>{"use strict";var id=Y(),Bt=Ke(),Ia=J(),xa=Ss(),od=ie().f,sd=ya(),mr=ga(),ad=me(),ud=A(),Ea="Array Iterator",ld=xa.set,cd=xa.getterFor(Ea);wa.exports=sd(Array,"Array",function(e,r){ld(this,{type:Ea,target:id(e),index:0,kind:r})},function(){var e=cd(this),r=e.target,t=e.index++;if(!r||t>=r.length)return e.target=null,mr(void 0,!0);switch(e.kind){case"keys":return mr(t,!1);case"values":return mr(r[t],!1)}return mr([t,r[t]],!1)},"values");var Oa=Ia.Arguments=Ia.Array;Bt("keys");Bt("values");Bt("entries");if(!ad&&ud&&Oa.name!=="values")try{od(Oa,"name",{value:"values"})}catch(e){}});var qa=s((qh,Sa)=>{"use strict";var pd=F(),fd=J(),dd=pd("iterator"),bd=Array.prototype;Sa.exports=function(e){return e!==void 0&&(fd.Array===e||bd[dd]===e)}});var zt=s((Rh,Pa)=>{"use strict";var vd=Ut(),Ra=De(),md=je(),Td=J(),yd=F(),hd=yd("iterator");Pa.exports=function(e){if(!md(e))return Ra(e,hd)||Ra(e,"@@iterator")||Td[vd(e)]}});var Aa=s((Ph,_a)=>{"use strict";var gd=Q(),Id=ve(),Od=H(),xd=Fe(),Ed=zt(),wd=TypeError;_a.exports=function(e,r){var t=arguments.length<2?Ed(e):r;if(Id(t))return Od(gd(t,e));throw new wd(xd(e)+" is not iterable")}});var Na=s((_h,Ca)=>{"use strict";var Sd=Q(),La=H(),qd=De();Ca.exports=function(e,r,t){var n,i;La(e);try{if(n=qd(e,"return"),!n){if(r==="throw")throw t;return t}n=Sd(n,e)}catch(o){i=!0,n=o}if(r==="throw")throw t;if(i)throw n;return La(n),t}});var Fa=s((Ah,Va)=>{"use strict";var Rd=zr(),Pd=Q(),_d=H(),Ad=Fe(),Ld=qa(),Cd=ze(),ja=_r(),Nd=Aa(),jd=zt(),ka=Na(),kd=TypeError,Tr=function(e,r){this.stopped=e,this.result=r},Ma=Tr.prototype;Va.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),a=!!(t&&t.INTERRUPTED),l=Rd(r,n),p,d,c,b,v,T,y,I=function(O){return p&&ka(p,"normal"),new Tr(!0,O)},h=function(O){return i?(_d(O),a?l(O[0],O[1],I):l(O[0],O[1])):a?l(O,I):l(O)};if(o)p=e.iterator;else if(u)p=e;else{if(d=jd(e),!d)throw new kd(Ad(e)+" is not iterable");if(Ld(d)){for(c=0,b=Cd(e);b>c;c++)if(v=h(e[c]),v&&ja(Ma,v))return v;return new Tr(!1)}p=Nd(e,d)}for(T=o?e.next:p.next;!(y=Pd(T,p)).done;){try{v=h(y.value)}catch(O){ka(p,"throw",O)}if(typeof v=="object"&&v&&ja(Ma,v))return v}return new Tr(!1)}});var Ua=s((Lh,Da)=>{"use strict";var Md=A(),Vd=ie(),Fd=de();Da.exports=function(e,r,t){Md?Vd.f(e,r,Fd(0,t)):e[r]=t}});var Ga=s(()=>{"use strict";var Dd=ue(),Ud=Fa(),Gd=Ua();Dd({target:"Object",stat:!0},{fromEntries:function(r){var t={};return Ud(r,function(n,i){Gd(t,n,i)},{AS_ENTRIES:!0}),t}})});var Qa=s((jh,Ba)=>{"use strict";Qt();Ga();var Bd=be();Ba.exports=Bd.Object.fromEntries});var Ka=s((kh,za)=>{"use strict";za.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 $a=s(()=>{"use strict";Qt();var Qd=Ka(),zd=w(),Kd=dr(),Wa=J();for(yr in Qd)Kd(zd[yr],yr),Wa[yr]=Wa.Array;var yr});var Ha=s((Fh,Ya)=>{"use strict";var Wd=Qa();$a();Ya.exports=Wd});var Ja=s((Dh,Xa)=>{"use strict";var $d=Ha();Xa.exports=$d});var ob={};gr(ob,{ErrorCategory:()=>bs,InterfaceLanguage:()=>tu,InternalsExposure:()=>Kt,Logger:()=>Ae,Observable:()=>f,Subject:()=>k,Subscription:()=>E,SubscriptionRemovable:()=>Oe,TracerFactory:()=>rr,VERSION:()=>rn,VKNumericLanguage:()=>ru,ValueSubject:()=>Ie,VideoQuality:()=>We,abortable:()=>pn,addScript:()=>un,areQualitiesExact:()=>yo,assertEmptyArray:()=>an,assertNever:()=>N,assertNonNullable:()=>nn,assertNotEmptyArray:()=>sn,assertNullable:()=>on,assertQualityIsExact:()=>ho,buffer:()=>ut,checkNever:()=>tn,clearVideoElement:()=>xo,cloneDeep:()=>Io,cloneDeepWith:()=>he,combine:()=>ot,createURL:()=>Fc,debounce:()=>ct,debounceFn:()=>He,detectEmbed:()=>uo,devNull:()=>hr,fillWithDefault:()=>go,filter:()=>bt,filterChanged:()=>mt,flattenObject:()=>ge,fromEvent:()=>is,getExponentialDelay:()=>fn,getHighestQuality:()=>fo,getTraceSubscriptionMethod:()=>wo,interval:()=>ts,isHigher:()=>lo,isHigherOrEqual:()=>co,isIntersecting:()=>Eo,isInvariantQuality:()=>Ye,isLower:()=>$e,isLowerOrEqual:()=>po,isNonNullable:()=>W,isNullable:()=>re,isValidURL:()=>Vc,loadVKLangPack:()=>Hd,map:()=>xe,mapTo:()=>yt,merge:()=>st,noop:()=>B,now:()=>cn,observableFrom:()=>ns,observeElementSize:()=>Oo,once:()=>ht,pairwise:()=>It,safeStorage:()=>Le,skip:()=>wt,tap:()=>xt,throttle:()=>ft,throttleFn:()=>Xe,timeCodeToString:()=>kc,timeout:()=>rs,videoHeightToQuality:()=>vo,videoQualityToHeight:()=>To,videoSizeToQuality:()=>mo});module.exports=du(ob);var rn="1.0.63-dev.96cd632e.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 N=e=>{throw new Error(`${e} is value of unexpected type`)},tn=e=>{};var B=()=>{};var f=class{constructor(r){r&&(this._subscribe=r)}subscribe(r,t){var u;let n;t?typeof t=="function"?n={next:t,error:B}:n={next:a=>t.next(a),error:a=>{var l;return(l=t.error)==null?void 0:l.call(t,a)}}:n={next:B,error:B};let i=typeof r=="function"?{next:a=>{try{let l=r(a);l instanceof Promise&&l.catch(p=>n.next(p))}catch(l){n.next(l)}},error:a=>n.next(a)}:{next:a=>r.next(a),error:a=>r.error?r.error(a):n.next(a)},o;try{o=this._subscribe(i)}catch(a){(u=i.error)==null||u.call(i,a)}return new E().add(()=>{switch(i.next=B,i.error=B,typeof o){case"function":o();return;case"object":o.unsubscribe();return;case"undefined":return;default:return N(o)}})}pipe(...r){return r.reduce((t,n)=>n(t),this)}_subscribe(r){}};var k=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 Ae=class{constructor(){this.log$=new k;this.logs=[];this.log=r=>{let t=U(q({},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=>q({component:r},t))}};function nn(e,r='Assertion "value is not nullable" failed'){if(e==null)throw new Error(r)}function on(e,r='Assertion "value is nullable" failed'){if(e!=null)throw new Error(r)}function W(e){return typeof e!="undefined"&&e!==null}function re(e){return e==null}function sn(e,r){if(!(e!=null&&e.length))throw new Error(r)}function an(e,r){if(e!=null&&e.length)throw new Error(r)}var un=(e,r,t)=>new Promise((n,i)=>{r.addEventListener("abort",()=>{a(),p.remove()});let o=()=>{a(),i("error")},u=()=>{a(),n()},a=()=>{l&&clearTimeout(l),p.removeEventListener("load",u),p.removeEventListener("error",o)},l;t&&(l=window.setTimeout(()=>{a(),i("timeout")},t));let p=document.createElement("script");p.addEventListener("load",u),p.addEventListener("error",o),p.src=e,document.head.appendChild(p)});var ln,cn=typeof((ln=window.performance)==null?void 0:ln.now)=="function"?()=>window.performance.now():()=>Date.now();var pn=(e,r)=>(...t)=>ee(null,null,function*(){var u;let n=r(...t),i=e.aborted,o;for(;!i&&!e.aborted;)try{let a=yield n.next(o);i=(u=a.done)!=null?u:!1,o=a.value}catch(a){yield n.throw(a)}return o});var fn=(e,{start:r=0,factor:t=2,max:n=1/0,min:i=r,random:o=0}={})=>{let u=r;return u*=Zt(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 Le={};gr(Le,{clear:()=>hu,get:()=>vu,has:()=>Tu,isPersistent:()=>bu,remove:()=>yu,set:()=>mu});var x,$,Ir=`vk-videoplayer-dummy-key-${Math.random()}`,te=()=>{if($!==void 0)return $;try{localStorage.setItem(Ir,"test"),localStorage.removeItem(Ir),$=0}catch(e){if(e instanceof DOMException||e instanceof TypeError)try{sessionStorage.getItem(Ir),$=1}catch(r){if(r instanceof DOMException||r instanceof TypeError)$=2;else throw r}else throw e}return $===2&&(x=new Map),$},bu=()=>te()===0,vu=e=>{var t,n;let r=te();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:N(r)}},mu=(e,r)=>{let t=te();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:x==null||x.set(e,r);return;default:N(t)}},Tu=e=>{var t;let r=te();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 N(r),!1}},yu=e=>{let r=te();switch(r){case 0:return localStorage.removeItem(e);case 1:return sessionStorage.removeItem(e);case 2:x==null||x.delete(e);return;default:N(r)}},hu=()=>{let e=te();switch(e){case 0:return localStorage.clear();case 1:return sessionStorage.clear();case 2:return x==null?void 0:x.clear();default:N(e)}};var gu=(e,r,t)=>{if(typeof e.canParse=="function")return e.canParse(r,t);try{return new e(r,t),!0}catch(n){return!1}},dn=gu;var Jr=G(ao(),1),uo=()=>{let e,r=[];try{e=window.self!==window.top}catch(t){t instanceof DOMException&&t.name==="SecurityError"?e=!0:(e=!1,console.error(t))}try{window.location.ancestorOrigins&&(r=[...window.location.ancestorOrigins])}catch(t){console.error(t)}try{!r.length&&document.referrer&&(r=[new URL(document.referrer).origin])}catch(t){console.error(t)}return r=r.filter(t=>dn(URL,t)),{isEmbed:e,origins:r,topOrigin:(0,Jr.default)(r,-1),immediateOrigin:(0,Jr.default)(r,0)}};var We=(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))(We||{});var P={"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}},lo=(e,r)=>P[e].height>P[r].height,co=(e,r)=>P[e].height>=P[r].height,$e=(e,r)=>P[e].height<P[r].height,po=(e,r)=>P[e].height<=P[r].height,fo=e=>e.sort((r,t)=>r===t?0:r==="Invariant quality"?1:t==="Invariant quality"?-1:$e(r,t)?1:-1)[0],bo=Object.keys(P).sort((e,r)=>$e(e,r)?-1:1),vo=(e,r=.02)=>[...bo].find(n=>P[n].height*(1+r)>=e),mo=({width:e,height:r})=>{let t=Math.min(e,r),n=Math.max(e,r);return bo.find(i=>{let o=P[i];return o.width>=n&&o.height>=t})},To=e=>P[e].height,Ye=e=>e==="Invariant quality",yo=e=>e.every(r=>!Ye(r));function ho(e){if(Ye(e))throw new Error("Expected exact quality")}var go=(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]=go(o,i):t[n]=n in e?o:i}return t};var kc=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 He(e,r=0,t){let n,i,o,u,a,l,p=0,d=!1,c=!1,b=!0,v=!r&&r!==0&&typeof window.requestAnimationFrame=="function";t&&(d=!!t.leading,c="maxWait"in t,o=t!=null&&t.maxWait?Math.max(+(t==null?void 0:t.maxWait)||0,r):o,b="trailing"in t?!!t.trailing:b);function T(m){let _=n,K=i;return n=i=void 0,p=m,u=e.apply(K,_),u}function y(m,_){return v?(a&&window.cancelAnimationFrame(a),window.requestAnimationFrame(m)):setTimeout(m,_)}function I(m){if(v){window.cancelAnimationFrame(m);return}clearTimeout(m)}function h(m){return p=m,a=y(Pe,r),d?T(m):u}function O(m){let _=m-l,K=m-p,Yt=r-_;return c?Math.min(Yt,o-K):Yt}function Wt(m){let _=m-l,K=m-p;return l===void 0||_>=r||_<0||c&&K>=o}function Pe(){let m=Date.now();if(Wt(m))return $t(m);a=y(Pe,O(m))}function $t(m){return a=void 0,b&&n?T(m):(n=i=void 0,u)}function nu(){a!==void 0&&I(a),p=0,n=l=i=a=void 0}function iu(){return a===void 0?u:$t(Date.now())}function ou(){return a!==void 0}function _e(...m){let _=Date.now(),K=Wt(_);if(n=m,i=this,l=_,K){if(a===void 0)return h(l);if(c)return a=y(Pe,r),T(l)}return a===void 0&&(a=y(Pe,r)),u}return _e.cancel=nu,_e.flush=iu,_e.pending=ou,_e}var Xe=(e,r=0,t)=>He(e,r,U(q(q({},{leading:!0,trailing:!0}),t),{maxWait:r}));var he=(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]=he(e[n],r):t[n]=e[n]}return t};var Io=e=>he(e);var Mc=300,Oo=(e,r=Mc)=>new f(t=>{let{width:n,height:i}=e.getBoundingClientRect();if(t.next({width:n,height:i}),!window.ResizeObserver)return;let o=new ResizeObserver(Xe(u=>{let a=u[0];if(!a)return;let l,p;a.contentBoxSize&&a.contentBoxSize[0]?(p=a.contentBoxSize[0].blockSize,l=a.contentBoxSize[0].inlineSize):a.contentRect&&(l=a.contentRect.width,p=a.contentRect.height),W(l)&&W(p)&&t.next({width:l,height:p})},r));return o.observe(e),()=>o.disconnect()});var ge=(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=ge(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 xo=e=>{e.removeAttribute("src"),e.load()};var Vc=e=>{let r;try{r=new URL(e)}catch(t){return!1}return r.protocol==="https:"};var Fc=e=>{try{return new URL(e)}catch(r){return null}};var Eo=(e,r)=>!(e.right<r.left||e.left>r.right||e.bottom<r.top||e.top>r.bottom);var wo=e=>r=>t=>{let n=typeof t=="object";t==null||n&&!Object.keys(t).length||e(r,n?ge(t):{value:t})},Je=(e={})=>{let r=n=>{let i=n;return n===void 0?i="undefined":n===null?i="null":(typeof n=="number"||typeof n=="boolean")&&(i=n.toString()),i},t={};for(let n in e)Array.isArray(e[n])?t[n]=e[n].map(r):t[n]=r(e[n]);return t};var g=class g{constructor({name:r,getParentContext:t}){this.dynamicImportTimeout=5e3;this.childTracers=[];g.dynamicImportStatus==="not_started"&&(g.dynamicImportPromise=this.loadOpentelemetry());let n=Date.now();this.initPromise=g.dynamicImportPromise.then(i=>{g.dynamicImportStatus==="completed"&&this.init({name:r,getParentContext:t},n)})}init({name:r,getParentContext:t},n){this.span=g.rootTracer.startSpan(r,{startTime:n},t==null?void 0:t()),this.context=g.dynamicImports.opentelemetryApi.trace.setSpan(g.dynamicImports.opentelemetryApi.context.active(),this.span)}loadOpentelemetry(){return ee(this,null,function*(){if(g.dynamicImportStatus==="not_started"){g.dynamicImportStatus="in_progress";try{let r=new Promise((u,a)=>setTimeout(a,this.dynamicImportTimeout)),t=Promise.all([import("@opentelemetry/api"),import("@opentelemetry/sdk-trace-web"),import("@tracer/opentelemetry")]),[n,i,o]=yield Promise.race([t,r]);g.dynamicImports={opentelemetryApi:n,opentelemetrySdk:i,tracer:o},g.dynamicImportStatus="completed"}catch(r){g.dynamicImportStatus="failed"}}})}isComponentTracerNotInitialized(){return re(this.span)||g.dynamicImportStatus==="failed"}log(r,t){let n=Date.now();this.initPromise.then(i=>{this.isComponentTracerNotInitialized()||this.span.addEvent(r,U(q({},Je(t)),{type:"log"}),n)})}error(r,t){let n=Date.now();this.initPromise.then(i=>{this.isComponentTracerNotInitialized()||this.span.addEvent(r,U(q({},Je(t)),{type:"error"}),n)})}critical(r,t){let n=Date.now();this.initPromise.then(i=>{this.isComponentTracerNotInitialized()||this.span.addEvent(r,U(q({},Je(t)),{type:"critical"}),n)})}createComponentTracer(r){let t=new g({name:r,getParentContext:()=>this.context});return this.childTracers.push(t),t}end(){this.initPromise.then(r=>{this.isComponentTracerNotInitialized()||(this.childTracers.forEach(t=>t.end()),this.span.end())})}};g.dynamicImportStatus="not_started";var z=g;var Ze=class extends z{constructor(){super({name:"Root"})}init({name:r,getParentContext:t},n){let o=z.dynamicImports.tracer.initTracerOpenTelemetry({serviceName:"videoplayer-sdk-web",appToken:"L9SBoka6ZWk4xPjaK7tmfSfYvMhcge7nvGDjpdMmscb",spanLimits:{attributeCountLimit:1/0,eventCountLimit:1/0,attributePerEventCountLimit:1/0}}).getProvider(),u=new z.dynamicImports.tracer.TracerMemorySpanExporter;this.spanExporter=u,o.addSpanProcessor(new z.dynamicImports.tracer.TracerAllSpansProcessor({startedSpansExporter:u})),z.rootTracer=o.getTracer("sdk-videoplayer-tracer"),super.init({name:r,getParentContext:t},n)}getFinishedSpans(){var r;if(!this.isComponentTracerNotInitialized())return(r=this.spanExporter)==null?void 0:r.getJsonData()}getTraceId(){return this.isComponentTracerNotInitialized()?"":this.span.spanContext().traceId}};var er=class e{constructor(r){}log(r,t){}error(r,t){}critical(r,t){}createComponentTracer(r){return new e({name:r})}end(){}getFinishedSpans(){}getTraceId(){return this.fakeTraceId}};var rr=class{static createRootTracer(r=!1){return r?new Ze:new er}};var Ie=class extends k{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}};var es=G(it(),1);function ot(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(0,es.default)(e).reduce((o,[u,a])=>o.add(a.subscribe(i(u))),new E)})}function st(...e){return new f(r=>e.reduce((t,n)=>t.add(n.subscribe(r)),new E))}var rs=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 ts=e=>new f(r=>{let t=window.setInterval(()=>r.next(),e);return()=>{t&&(window.clearInterval(t),t=void 0)}});var ns=e=>new f(r=>{e.forEach(t=>r.next(t))});var is=(e,r)=>new f(t=>{let n=i=>t.next(i);return e.addEventListener(r,n),()=>e.removeEventListener(r,n)});var Oe=class extends E{remove(r){this.subscriptions=this.subscriptions.filter(t=>t!==r)}};function ut(e){return r=>new f(t=>r.subscribe(new at(t,e)))}var at=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 hp={leading:!1,trailing:!0};function ct(e,r=hp){return t=>new f(n=>t.subscribe(new lt(n,e,r)))}var lt=class{constructor(r,t,n){this.destination=r;this.time=t;this.config=n}next(r){this.lastValue=r,W(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 gp={leading:!0,trailing:!1};function ft(e,r=gp){return t=>new f(n=>t.subscribe(new pt(n,e,r)))}var pt=class{constructor(r,t,n){this.destination=r;this.time=t;this.config=n}next(r){this.lastValue=r,re(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 bt(e){return r=>new f(t=>r.subscribe(new dt(t,e)))}var dt=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)}};var ds=G(ps(),1);var Pp=(e,r)=>{let t=(n,i)=>{let o=Object.keys(n);for(let u in i)if(!(0,ds.default)(o,u)||i[u]!==n[u])return!1;return!0};return t(e,r)&&t(r,e)},_p=(e,r)=>e instanceof Object&&r instanceof Object?Pp(e,r):e===r;function mt(e=_p){return r=>new f(t=>r.subscribe(new vt(t,e)))}var fs={},vt=class{constructor(r,t){this.destination=r;this.predicate=t;this.lastValue=fs}next(r){let t;try{t=this.lastValue===fs||!this.predicate(this.lastValue,r),this.lastValue=r instanceof Object?q({},r):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 xe(e){return r=>new f(t=>r.subscribe(new Tt(t,e)))}var Tt=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 yt(e){return xe(()=>e)}function ht(){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 It(){return e=>new f(r=>e.subscribe(new gt(r)))}var gt=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 xt(e){return r=>new f(t=>r.subscribe(new Ot(t,e)))}var Ot=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)}};function wt(e){return r=>new f(t=>r.subscribe(new Et(t,e)))}var Et=class{constructor(r,t){this.destination=r;this.count=t;var n,i;t<0&&((i=(n=this.destination).error)==null||i.call(n,new Error("Count can not be less than zero")))}next(r){this.count===0?this.destination.next(r):this.count--}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};var bs=(a=>(a.NETWORK="network",a.VIDEO_PIPELINE="video_pipeline",a.EXTERNAL_API="external_api",a.PARSER="parser",a.DOM="dom",a.WTF="wtf",a.FATAL="fatal",a))(bs||{});var{NativeAbortSignal:zy,NativeAbortController:Ky}=function(e){return{NativeAbortSignal:e.AbortSignal,NativeAbortController:e.AbortController}}(typeof self!="undefined"?self:global);function vs(e){let r;try{r=new Event("abort")}catch(t){typeof document!="undefined"?document.createEvent?(r=document.createEvent("Event"),r.initEvent("abort",!1,!1)):(r=document.createEventObject(),r.type="abort"):r={type:"abort",bubbles:!1,cancelable:!1}}return r.reason=e,r}function ms(e){if(e===void 0)if(typeof document=="undefined")e=new Error("This operation was aborted"),e.name="AbortError";else try{e=new DOMException("signal is aborted without reason"),Object.defineProperty(e,"name",{value:"AbortError"})}catch(r){e=new Error("This operation was aborted"),e.name="AbortError"}return e}var or=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(a){Promise.resolve().then(()=>{throw a})}u.options&&u.options.once&&this.removeEventListener(r.type,u.callback)}return!r.defaultPrevented}},le=class extends or{constructor(){super(),this.listeners||or.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)}throwIfAborted(){let{aborted:r,reason:t="Aborted"}=this;if(r)throw t}static timeout(r){let t=new X;return setTimeout(()=>t.abort(new DOMException(`This signal is timeout in ${r}ms`,"TimeoutError")),r),t.signal}static any(r){let t=new X;function n(){t.abort(this.reason),i()}function i(){for(let o of r)o.removeEventListener("abort",n)}for(let o of r)if(o.aborted){t.abort(o.reason);break}else o.addEventListener("abort",n);return t.signal}},X=class{constructor(){Object.defineProperty(this,"signal",{value:new le,writable:!0,configurable:!0})}abort(r){let t=ms(r),n=vs(t);this.signal.reason=t,this.signal.dispatchEvent(n)}toString(){return"[object AbortController]"}};typeof Symbol!="undefined"&&Symbol.toStringTag&&(X.prototype[Symbol.toStringTag]="AbortController",le.prototype[Symbol.toStringTag]="AbortSignal");function sr(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 St(e){typeof e=="function"&&(e={fetch:e});let{fetch:r,Request:t=r.Request,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:i=!1}=e;if(!sr({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(p,d){let c;d&&d.signal&&(c=d.signal,delete d.signal);let b=new t(p,d);return c&&Object.defineProperty(b,"signal",{writable:!1,enumerable:!1,configurable:!0,value:c}),b},o.prototype=t.prototype);let u=r;return{fetch:(l,p)=>{let d=o&&o.prototype.isPrototypeOf(l)?l.signal:p?p.signal:void 0;if(d){let c;try{c=new DOMException("Aborted","AbortError")}catch(v){c=new Error("Aborted"),c.name="AbortError"}if(d.aborted)return Promise.reject(c);let b=new Promise((v,T)=>{d.addEventListener("abort",()=>T(c),{once:!0})});return p&&p.signal&&delete p.signal,Promise.race([b,u(l,p)])}return u(l,p)},Request:o}}var Ap=()=>"fetch"in window,Ee=Ap()&&sr({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}),Ts=Ee?St({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}):void 0,ys=Ee?Ts.fetch:window.fetch,th=Ee?Ts.Request:window.Request,nh=Ee?X:window.AbortController,ih=Ee?le:window.AbortSignal;var Za=G(it(),1),eu=G(Ja(),1);var ru=(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))(ru||{}),Yd="vk.com",Hd=(e,r,t)=>ee(null,null,function*(){let n=new URL(`https://${Yd}/js/lang-pack.js`);n.searchParams.set("format","json"),n.searchParams.set("name",r),e!==void 0&&n.searchParams.set("lang",e);let o=yield(yield ys(n.toString())).json();return Xd(o,t)}),Xd=(e,r)=>(0,eu.default)((0,Za.default)(e.keys).map(([t,n])=>[t.substring(`${r}_`.length),Jd(n)])),Jd=e=>Array.isArray(e)?e[0]:e;var tu=(t=>(t.RU="ru",t.EN="en",t))(tu||{});var Zd={UI:"__vkVideoPlayer",CORE:"__vkVideoCore"},eb=(()=>{let e=0;return()=>{let r=e;return e=(e+1)%Number.MAX_SAFE_INTEGER,r}})(),Kt=class{constructor(r){this.id=eb();this.type=r,this.initWindowObjects()}getWindowObject(){var t,n;let r=this.key();return(n=(t=window[r])==null?void 0:t[this.id])!=null?n:{}}initWindowObjects(){let r=this.key();window[r]||(window[r]={}),window[r][this.id]={}}expose(r){Object.assign(this.getWindowObject(),r)}destroy(){let r=this.key();window&&window[r]&&window[r][this.id]&&(delete window[r][this.id],Object.keys(window[r]).length||delete window[r])}key(){let{type:r}=this;return Zd[r]}};var hr={};gr(hr,{create:()=>rb,destroy:()=>tb,push:()=>nb,subscribe:()=>ib});var Re=new Map,rb=(e,r)=>Re.set(e,r!=null?r:[]),tb=e=>Re.delete(e),nb=(e,r)=>{let t=Re.get(e);t&&(typeof t=="function"?t(r):t.push(r))},ib=(e,r)=>{let t=Re.get(e);if(t){if(t&&Array.isArray(t))for(let n of t)r(n);Re.set(e,r)}};
package/es2015.esm.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
- * @vkontakte/videoplayer-shared v1.0.63-dev.8749d62b.0
3
- * Mon, 30 Jun 2025 13:53:59 GMT
2
+ * @vkontakte/videoplayer-shared v1.0.63-dev.96cd632e.0
3
+ * Mon, 30 Jun 2025 12:43:39 GMT
4
4
  * https://st.mycdn.me/static/vkontakte-videoplayer/1-0-63/doc/
5
5
  */
6
- var Sa=Object.create;var we=Object.defineProperty,qa=Object.defineProperties,Ra=Object.getOwnPropertyDescriptor,Pa=Object.getOwnPropertyDescriptors,_a=Object.getOwnPropertyNames,kt=Object.getOwnPropertySymbols,Aa=Object.getPrototypeOf,Vt=Object.prototype.hasOwnProperty,La=Object.prototype.propertyIsEnumerable;var Ft=Math.pow,Mt=(e,r,t)=>r in e?we(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,q=(e,r)=>{for(var t in r||(r={}))Vt.call(r,t)&&Mt(e,t,r[t]);if(kt)for(var t of kt(r))La.call(r,t)&&Mt(e,t,r[t]);return e},D=(e,r)=>qa(e,Pa(r));var s=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),Dt=(e,r)=>{for(var t in r)we(e,t,{get:r[t],enumerable:!0})},Ca=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of _a(r))!Vt.call(e,i)&&i!==t&&we(e,i,{get:()=>r[i],enumerable:!(n=Ra(r,i))||n.enumerable});return e};var ue=(e,r,t)=>(t=e!=null?Sa(Aa(e)):{},Ca(r||!e||!e.__esModule?we(t,"default",{value:e,enumerable:!0}):t,e));var J=(e,r,t)=>new Promise((n,i)=>{var o=l=>{try{a(t.next(l))}catch(p){i(p)}},u=l=>{try{a(t.throw(l))}catch(p){i(p)}},a=l=>l.done?n(l.value):Promise.resolve(l.value).then(o,u);a((t=t.apply(e,r)).next())});var w=s((dr,Bt)=>{"use strict";var ce=function(e){return e&&e.Math===Math&&e};Bt.exports=ce(typeof globalThis=="object"&&globalThis)||ce(typeof window=="object"&&window)||ce(typeof self=="object"&&self)||ce(typeof global=="object"&&global)||ce(typeof dr=="object"&&dr)||function(){return this}()||Function("return this")()});var R=s((Rd,Qt)=>{"use strict";Qt.exports=function(e){try{return!!e()}catch(r){return!0}}});var pe=s((Pd,zt)=>{"use strict";var Xa=R();zt.exports=!Xa(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var Ht=s((_d,Yt)=>{"use strict";var Ja=pe(),$t=Function.prototype,Kt=$t.apply,Wt=$t.call;Yt.exports=typeof Reflect=="object"&&Reflect.apply||(Ja?Wt.bind(Kt):function(){return Wt.apply(Kt,arguments)})});var N=s((Ad,Zt)=>{"use strict";var Xt=pe(),Jt=Function.prototype,vr=Jt.call,Za=Xt&&Jt.bind.bind(vr,vr);Zt.exports=Xt?Za:function(e){return function(){return vr.apply(e,arguments)}}});var Se=s((Ld,rn)=>{"use strict";var en=N(),eu=en({}.toString),ru=en("".slice);rn.exports=function(e){return ru(eu(e),8,-1)}});var mr=s((Cd,tn)=>{"use strict";var tu=Se(),nu=N();tn.exports=function(e){if(tu(e)==="Function")return nu(e)}});var S=s((Nd,nn)=>{"use strict";var Tr=typeof document=="object"&&document.all;nn.exports=typeof Tr=="undefined"&&Tr!==void 0?function(e){return typeof e=="function"||e===Tr}:function(e){return typeof e=="function"}});var A=s((jd,on)=>{"use strict";var iu=R();on.exports=!iu(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var G=s((kd,sn)=>{"use strict";var ou=pe(),qe=Function.prototype.call;sn.exports=ou?qe.bind(qe):function(){return qe.apply(qe,arguments)}});var yr=s(ln=>{"use strict";var an={}.propertyIsEnumerable,un=Object.getOwnPropertyDescriptor,su=un&&!an.call({1:2},1);ln.f=su?function(r){var t=un(this,r);return!!t&&t.enumerable}:an});var fe=s((Vd,cn)=>{"use strict";cn.exports=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}}});var fn=s((Fd,pn)=>{"use strict";var au=N(),uu=R(),lu=Se(),hr=Object,cu=au("".split);pn.exports=uu(function(){return!hr("z").propertyIsEnumerable(0)})?function(e){return lu(e)==="String"?cu(e,""):hr(e)}:hr});var Re=s((Dd,bn)=>{"use strict";bn.exports=function(e){return e==null}});var Pe=s((Ud,dn)=>{"use strict";var pu=Re(),fu=TypeError;dn.exports=function(e){if(pu(e))throw new fu("Can't call method on "+e);return e}});var W=s((Gd,vn)=>{"use strict";var bu=fn(),du=Pe();vn.exports=function(e){return bu(du(e))}});var k=s((Bd,mn)=>{"use strict";var vu=S();mn.exports=function(e){return typeof e=="object"?e!==null:vu(e)}});var be=s((Qd,Tn)=>{"use strict";Tn.exports={}});var _e=s((zd,hn)=>{"use strict";var gr=be(),Ir=w(),mu=S(),yn=function(e){return mu(e)?e:void 0};hn.exports=function(e,r){return arguments.length<2?yn(gr[e])||yn(Ir[e]):gr[e]&&gr[e][r]||Ir[e]&&Ir[e][r]}});var Or=s((Kd,gn)=>{"use strict";var Tu=N();gn.exports=Tu({}.isPrototypeOf)});var En=s((Wd,xn)=>{"use strict";var yu=w(),In=yu.navigator,On=In&&In.userAgent;xn.exports=On?String(On):""});var An=s(($d,_n)=>{"use strict";var Pn=w(),xr=En(),wn=Pn.process,Sn=Pn.Deno,qn=wn&&wn.versions||Sn&&Sn.version,Rn=qn&&qn.v8,L,Ae;Rn&&(L=Rn.split("."),Ae=L[0]>0&&L[0]<4?1:+(L[0]+L[1]));!Ae&&xr&&(L=xr.match(/Edge\/(\d+)/),(!L||L[1]>=74)&&(L=xr.match(/Chrome\/(\d+)/),L&&(Ae=+L[1])));_n.exports=Ae});var Er=s((Yd,Cn)=>{"use strict";var Ln=An(),hu=R(),gu=w(),Iu=gu.String;Cn.exports=!!Object.getOwnPropertySymbols&&!hu(function(){var e=Symbol("symbol detection");return!Iu(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Ln&&Ln<41})});var wr=s((Hd,Nn)=>{"use strict";var Ou=Er();Nn.exports=Ou&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var Sr=s((Xd,jn)=>{"use strict";var xu=_e(),Eu=S(),wu=Or(),Su=wr(),qu=Object;jn.exports=Su?function(e){return typeof e=="symbol"}:function(e){var r=xu("Symbol");return Eu(r)&&wu(r.prototype,qu(e))}});var Le=s((Jd,kn)=>{"use strict";var Ru=String;kn.exports=function(e){try{return Ru(e)}catch(r){return"Object"}}});var de=s((Zd,Mn)=>{"use strict";var Pu=S(),_u=Le(),Au=TypeError;Mn.exports=function(e){if(Pu(e))return e;throw new Au(_u(e)+" is not a function")}});var Ce=s((ev,Vn)=>{"use strict";var Lu=de(),Cu=Re();Vn.exports=function(e,r){var t=e[r];return Cu(t)?void 0:Lu(t)}});var Dn=s((rv,Fn)=>{"use strict";var qr=G(),Rr=S(),Pr=k(),Nu=TypeError;Fn.exports=function(e,r){var t,n;if(r==="string"&&Rr(t=e.toString)&&!Pr(n=qr(t,e))||Rr(t=e.valueOf)&&!Pr(n=qr(t,e))||r!=="string"&&Rr(t=e.toString)&&!Pr(n=qr(t,e)))return n;throw new Nu("Can't convert object to primitive value")}});var ve=s((tv,Un)=>{"use strict";Un.exports=!0});var Qn=s((nv,Bn)=>{"use strict";var Gn=w(),ju=Object.defineProperty;Bn.exports=function(e,r){try{ju(Gn,e,{value:r,configurable:!0,writable:!0})}catch(t){Gn[e]=r}return r}});var Ne=s((iv,Wn)=>{"use strict";var ku=ve(),Mu=w(),Vu=Qn(),zn="__core-js_shared__",Kn=Wn.exports=Mu[zn]||Vu(zn,{});(Kn.versions||(Kn.versions=[])).push({version:"3.43.0",mode:ku?"pure":"global",copyright:"\xA9 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.43.0/LICENSE",source:"https://github.com/zloirock/core-js"})});var _r=s((ov,Yn)=>{"use strict";var $n=Ne();Yn.exports=function(e,r){return $n[e]||($n[e]=r||{})}});var je=s((sv,Hn)=>{"use strict";var Fu=Pe(),Du=Object;Hn.exports=function(e){return Du(Fu(e))}});var M=s((av,Xn)=>{"use strict";var Uu=N(),Gu=je(),Bu=Uu({}.hasOwnProperty);Xn.exports=Object.hasOwn||function(r,t){return Bu(Gu(r),t)}});var Ar=s((uv,Jn)=>{"use strict";var Qu=N(),zu=0,Ku=Math.random(),Wu=Qu(1.1.toString);Jn.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Wu(++zu+Ku,36)}});var V=s((lv,ei)=>{"use strict";var $u=w(),Yu=_r(),Zn=M(),Hu=Ar(),Xu=Er(),Ju=wr(),re=$u.Symbol,Lr=Yu("wks"),Zu=Ju?re.for||re:re&&re.withoutSetter||Hu;ei.exports=function(e){return Zn(Lr,e)||(Lr[e]=Xu&&Zn(re,e)?re[e]:Zu("Symbol."+e)),Lr[e]}});var ii=s((cv,ni)=>{"use strict";var el=G(),ri=k(),ti=Sr(),rl=Ce(),tl=Dn(),nl=V(),il=TypeError,ol=nl("toPrimitive");ni.exports=function(e,r){if(!ri(e)||ti(e))return e;var t=rl(e,ol),n;if(t){if(r===void 0&&(r="default"),n=el(t,e,r),!ri(n)||ti(n))return n;throw new il("Can't convert object to primitive value")}return r===void 0&&(r="number"),tl(e,r)}});var Cr=s((pv,oi)=>{"use strict";var sl=ii(),al=Sr();oi.exports=function(e){var r=sl(e,"string");return al(r)?r:r+""}});var jr=s((fv,ai)=>{"use strict";var ul=w(),si=k(),Nr=ul.document,ll=si(Nr)&&si(Nr.createElement);ai.exports=function(e){return ll?Nr.createElement(e):{}}});var kr=s((bv,ui)=>{"use strict";var cl=A(),pl=R(),fl=jr();ui.exports=!cl&&!pl(function(){return Object.defineProperty(fl("div"),"a",{get:function(){return 7}}).a!==7})});var pi=s(ci=>{"use strict";var bl=A(),dl=G(),vl=yr(),ml=fe(),Tl=W(),yl=Cr(),hl=M(),gl=kr(),li=Object.getOwnPropertyDescriptor;ci.f=bl?li:function(r,t){if(r=Tl(r),t=yl(t),gl)try{return li(r,t)}catch(n){}if(hl(r,t))return ml(!dl(vl.f,r,t),r[t])}});var bi=s((vv,fi)=>{"use strict";var Il=R(),Ol=S(),xl=/#|\.prototype\./,me=function(e,r){var t=wl[El(e)];return t===ql?!0:t===Sl?!1:Ol(r)?Il(r):!!r},El=me.normalize=function(e){return String(e).replace(xl,".").toLowerCase()},wl=me.data={},Sl=me.NATIVE="N",ql=me.POLYFILL="P";fi.exports=me});var Mr=s((mv,vi)=>{"use strict";var di=mr(),Rl=de(),Pl=pe(),_l=di(di.bind);vi.exports=function(e,r){return Rl(e),r===void 0?e:Pl?_l(e,r):function(){return e.apply(r,arguments)}}});var Vr=s((Tv,mi)=>{"use strict";var Al=A(),Ll=R();mi.exports=Al&&Ll(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var $=s((yv,Ti)=>{"use strict";var Cl=k(),Nl=String,jl=TypeError;Ti.exports=function(e){if(Cl(e))return e;throw new jl(Nl(e)+" is not an object")}});var te=s(hi=>{"use strict";var kl=A(),Ml=kr(),Vl=Vr(),ke=$(),yi=Cr(),Fl=TypeError,Fr=Object.defineProperty,Dl=Object.getOwnPropertyDescriptor,Dr="enumerable",Ur="configurable",Gr="writable";hi.f=kl?Vl?function(r,t,n){if(ke(r),t=yi(t),ke(n),typeof r=="function"&&t==="prototype"&&"value"in n&&Gr in n&&!n[Gr]){var i=Dl(r,t);i&&i[Gr]&&(r[t]=n.value,n={configurable:Ur in n?n[Ur]:i[Ur],enumerable:Dr in n?n[Dr]:i[Dr],writable:!1})}return Fr(r,t,n)}:Fr:function(r,t,n){if(ke(r),t=yi(t),ke(n),Ml)try{return Fr(r,t,n)}catch(i){}if("get"in n||"set"in n)throw new Fl("Accessors not supported");return"value"in n&&(r[t]=n.value),r}});var ne=s((gv,gi)=>{"use strict";var Ul=A(),Gl=te(),Bl=fe();gi.exports=Ul?function(e,r,t){return Gl.f(e,r,Bl(1,t))}:function(e,r,t){return e[r]=t,e}});var se=s((Iv,Oi)=>{"use strict";var Te=w(),Ql=Ht(),zl=mr(),Kl=S(),Wl=pi().f,$l=bi(),ie=be(),Yl=Mr(),oe=ne(),Ii=M();Ne();var Hl=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 Ql(e,this,arguments)};return r.prototype=e.prototype,r};Oi.exports=function(e,r){var t=e.target,n=e.global,i=e.stat,o=e.proto,u=n?Te:i?Te[t]:Te[t]&&Te[t].prototype,a=n?ie:ie[t]||oe(ie,t,{})[t],l=a.prototype,p,b,c,d,v,T,y,I,h;for(d in r)p=$l(n?d:t+(i?".":"#")+d,e.forced),b=!p&&u&&Ii(u,d),T=a[d],b&&(e.dontCallGetSet?(h=Wl(u,d),y=h&&h.value):y=u[d]),v=b&&y?y:r[d],!(!p&&!o&&typeof T==typeof v)&&(e.bind&&b?I=Yl(v,Te):e.wrap&&b?I=Hl(v):o&&Kl(v)?I=zl(v):I=v,(e.sham||v&&v.sham||T&&T.sham)&&oe(I,"sham",!0),oe(a,d,I),o&&(c=t+"Prototype",Ii(ie,c)||oe(ie,c,{}),oe(ie[c],d,v),e.real&&l&&(p||!l[d])&&oe(l,d,v)))}});var Ei=s((Ov,xi)=>{"use strict";var Xl=Math.ceil,Jl=Math.floor;xi.exports=Math.trunc||function(r){var t=+r;return(t>0?Jl:Xl)(t)}});var Me=s((xv,wi)=>{"use strict";var Zl=Ei();wi.exports=function(e){var r=+e;return r!==r||r===0?0:Zl(r)}});var qi=s((Ev,Si)=>{"use strict";var ec=Me(),rc=Math.min;Si.exports=function(e){var r=ec(e);return r>0?rc(r,9007199254740991):0}});var Ve=s((wv,Ri)=>{"use strict";var tc=qi();Ri.exports=function(e){return tc(e.length)}});var Fe=s((Sv,Pi)=>{"use strict";Pi.exports=function(){}});var _i=s(()=>{"use strict";var nc=se(),ic=je(),oc=Ve(),sc=Me(),ac=Fe();nc({target:"Array",proto:!0},{at:function(r){var t=ic(this),n=oc(t),i=sc(r),o=i>=0?i:n+i;return o<0||o>=n?void 0:t[o]}});ac("at")});var Br=s((Pv,Ai)=>{"use strict";var uc=_e();Ai.exports=uc});var Ci=s((_v,Li)=>{"use strict";_i();var lc=Br();Li.exports=lc("Array","at")});var ji=s((Av,Ni)=>{"use strict";var cc=Ci();Ni.exports=cc});var Mi=s((Lv,ki)=>{"use strict";var pc=ji();ki.exports=pc});var Ke=s((cT,Di)=>{"use strict";var Pc=_r(),_c=Ar(),Fi=Pc("keys");Di.exports=function(e){return Fi[e]||(Fi[e]=_c(e))}});var Gi=s((pT,Ui)=>{"use strict";var Ac=R();Ui.exports=!Ac(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var We=s((fT,Qi)=>{"use strict";var Lc=M(),Cc=S(),Nc=je(),jc=Ke(),kc=Gi(),Bi=jc("IE_PROTO"),Xr=Object,Mc=Xr.prototype;Qi.exports=kc?Xr.getPrototypeOf:function(e){var r=Nc(e);if(Lc(r,Bi))return r[Bi];var t=r.constructor;return Cc(t)&&r instanceof t?t.prototype:r instanceof Xr?Mc:null}});var Ki=s((bT,zi)=>{"use strict";var Vc=Me(),Fc=Math.max,Dc=Math.min;zi.exports=function(e,r){var t=Vc(e);return t<0?Fc(t+r,0):Dc(t,r)}});var Jr=s((dT,$i)=>{"use strict";var Uc=W(),Gc=Ki(),Bc=Ve(),Wi=function(e){return function(r,t,n){var i=Uc(r),o=Bc(i);if(o===0)return!e&&-1;var u=Gc(n,o),a;if(e&&t!==t){for(;o>u;)if(a=i[u++],a!==a)return!0}else for(;o>u;u++)if((e||u in i)&&i[u]===t)return e||u||0;return!e&&-1}};$i.exports={includes:Wi(!0),indexOf:Wi(!1)}});var $e=s((vT,Yi)=>{"use strict";Yi.exports={}});var Ji=s((mT,Xi)=>{"use strict";var Qc=N(),Zr=M(),zc=W(),Kc=Jr().indexOf,Wc=$e(),Hi=Qc([].push);Xi.exports=function(e,r){var t=zc(e),n=0,i=[],o;for(o in t)!Zr(Wc,o)&&Zr(t,o)&&Hi(i,o);for(;r.length>n;)Zr(t,o=r[n++])&&(~Kc(i,o)||Hi(i,o));return i}});var et=s((TT,Zi)=>{"use strict";Zi.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var rt=s((yT,eo)=>{"use strict";var $c=Ji(),Yc=et();eo.exports=Object.keys||function(r){return $c(r,Yc)}});var so=s((hT,oo)=>{"use strict";var to=A(),Hc=R(),no=N(),Xc=We(),Jc=rt(),Zc=W(),ep=yr().f,io=no(ep),rp=no([].push),tp=to&&Hc(function(){var e=Object.create(null);return e[2]=2,!io(e,2)}),ro=function(e){return function(r){for(var t=Zc(r),n=Jc(t),i=tp&&Xc(t)===null,o=n.length,u=0,a=[],l;o>u;)l=n[u++],(!to||(i?l in t:io(t,l)))&&rp(a,e?[l,t[l]]:t[l]);return a}};oo.exports={entries:ro(!0),values:ro(!1)}});var ao=s(()=>{"use strict";var np=se(),ip=so().entries;np({target:"Object",stat:!0},{entries:function(r){return ip(r)}})});var lo=s((OT,uo)=>{"use strict";ao();var op=be();uo.exports=op.Object.entries});var po=s((xT,co)=>{"use strict";var sp=lo();co.exports=sp});var tt=s((ET,fo)=>{"use strict";var ap=po();fo.exports=ap});var Io=s(()=>{"use strict";var dp=se(),vp=Jr().includes,mp=R(),Tp=Fe(),yp=mp(function(){return!Array(1).includes()});dp({target:"Array",proto:!0,forced:yp},{includes:function(r){return vp(this,r,arguments.length>1?arguments[1]:void 0)}});Tp("includes")});var xo=s((ZT,Oo)=>{"use strict";Io();var hp=Br();Oo.exports=hp("Array","includes")});var wo=s((ey,Eo)=>{"use strict";var gp=xo();Eo.exports=gp});var qo=s((ry,So)=>{"use strict";var Ip=wo();So.exports=Ip});var H=s((nh,Do)=>{"use strict";Do.exports={}});var Bo=s((ih,Go)=>{"use strict";var Sp=w(),qp=S(),Uo=Sp.WeakMap;Go.exports=qp(Uo)&&/native code/.test(String(Uo))});var Wo=s((oh,Ko)=>{"use strict";var Rp=Bo(),zo=w(),Pp=k(),_p=ne(),bt=M(),dt=Ne(),Ap=Ke(),Lp=$e(),Qo="Object already initialized",vt=zo.TypeError,Cp=zo.WeakMap,Ze,he,er,Np=function(e){return er(e)?he(e):Ze(e,{})},jp=function(e){return function(r){var t;if(!Pp(r)||(t=he(r)).type!==e)throw new vt("Incompatible receiver, "+e+" required");return t}};Rp||dt.state?(C=dt.state||(dt.state=new Cp),C.get=C.get,C.has=C.has,C.set=C.set,Ze=function(e,r){if(C.has(e))throw new vt(Qo);return r.facade=e,C.set(e,r),r},he=function(e){return C.get(e)||{}},er=function(e){return C.has(e)}):(X=Ap("state"),Lp[X]=!0,Ze=function(e,r){if(bt(e,X))throw new vt(Qo);return r.facade=e,_p(e,X,r),r},he=function(e){return bt(e,X)?e[X]:{}},er=function(e){return bt(e,X)});var C,X;Ko.exports={set:Ze,get:he,has:er,enforce:Np,getterFor:jp}});var Ho=s((sh,Yo)=>{"use strict";var mt=A(),kp=M(),$o=Function.prototype,Mp=mt&&Object.getOwnPropertyDescriptor,Tt=kp($o,"name"),Vp=Tt&&function(){}.name==="something",Fp=Tt&&(!mt||mt&&Mp($o,"name").configurable);Yo.exports={EXISTS:Tt,PROPER:Vp,CONFIGURABLE:Fp}});var Jo=s(Xo=>{"use strict";var Dp=A(),Up=Vr(),Gp=te(),Bp=$(),Qp=W(),zp=rt();Xo.f=Dp&&!Up?Object.defineProperties:function(r,t){Bp(r);for(var n=Qp(t),i=zp(t),o=i.length,u=0,a;o>u;)Gp.f(r,a=i[u++],n[a]);return r}});var es=s((uh,Zo)=>{"use strict";var Kp=_e();Zo.exports=Kp("document","documentElement")});var It=s((lh,as)=>{"use strict";var Wp=$(),$p=Jo(),rs=et(),Yp=$e(),Hp=es(),Xp=jr(),Jp=Ke(),ts=">",ns="<",ht="prototype",gt="script",os=Jp("IE_PROTO"),yt=function(){},ss=function(e){return ns+gt+ts+e+ns+"/"+gt+ts},is=function(e){e.write(ss("")),e.close();var r=e.parentWindow.Object;return e=null,r},Zp=function(){var e=Xp("iframe"),r="java"+gt+":",t;return e.style.display="none",Hp.appendChild(e),e.src=String(r),t=e.contentWindow.document,t.open(),t.write(ss("document.F=Object")),t.close(),t.F},rr,tr=function(){try{rr=new ActiveXObject("htmlfile")}catch(r){}tr=typeof document!="undefined"?document.domain&&rr?is(rr):Zp():is(rr);for(var e=rs.length;e--;)delete tr[ht][rs[e]];return tr()};Yp[os]=!0;as.exports=Object.create||function(r,t){var n;return r!==null?(yt[ht]=Wp(r),n=new yt,yt[ht]=null,n[os]=r):n=tr(),t===void 0?n:$p.f(n,t)}});var Ot=s((ch,us)=>{"use strict";var ef=ne();us.exports=function(e,r,t,n){return n&&n.enumerable?e[r]=t:ef(e,r,t),e}});var St=s((ph,ps)=>{"use strict";var rf=R(),tf=S(),nf=k(),of=It(),ls=We(),sf=Ot(),af=V(),uf=ve(),wt=af("iterator"),cs=!1,F,xt,Et;[].keys&&(Et=[].keys(),"next"in Et?(xt=ls(ls(Et)),xt!==Object.prototype&&(F=xt)):cs=!0);var lf=!nf(F)||rf(function(){var e={};return F[wt].call(e)!==e});lf?F={}:uf&&(F=of(F));tf(F[wt])||sf(F,wt,function(){return this});ps.exports={IteratorPrototype:F,BUGGY_SAFARI_ITERATORS:cs}});var nr=s((fh,bs)=>{"use strict";var cf=V(),pf=cf("toStringTag"),fs={};fs[pf]="z";bs.exports=String(fs)==="[object z]"});var qt=s((bh,ds)=>{"use strict";var ff=nr(),bf=S(),ir=Se(),df=V(),vf=df("toStringTag"),mf=Object,Tf=ir(function(){return arguments}())==="Arguments",yf=function(e,r){try{return e[r]}catch(t){}};ds.exports=ff?ir:function(e){var r,t,n;return e===void 0?"Undefined":e===null?"Null":typeof(t=yf(r=mf(e),vf))=="string"?t:Tf?ir(r):(n=ir(r))==="Object"&&bf(r.callee)?"Arguments":n}});var ms=s((dh,vs)=>{"use strict";var hf=nr(),gf=qt();vs.exports=hf?{}.toString:function(){return"[object "+gf(this)+"]"}});var or=s((vh,ys)=>{"use strict";var If=nr(),Of=te().f,xf=ne(),Ef=M(),wf=ms(),Sf=V(),Ts=Sf("toStringTag");ys.exports=function(e,r,t,n){var i=t?e:e&&e.prototype;i&&(Ef(i,Ts)||Of(i,Ts,{configurable:!0,value:r}),n&&!If&&xf(i,"toString",wf))}});var gs=s((mh,hs)=>{"use strict";var qf=St().IteratorPrototype,Rf=It(),Pf=fe(),_f=or(),Af=H(),Lf=function(){return this};hs.exports=function(e,r,t,n){var i=r+" Iterator";return e.prototype=Rf(qf,{next:Pf(+!n,t)}),_f(e,i,!1,!0),Af[i]=Lf,e}});var Os=s((Th,Is)=>{"use strict";var Cf=N(),Nf=de();Is.exports=function(e,r,t){try{return Cf(Nf(Object.getOwnPropertyDescriptor(e,r)[t]))}catch(n){}}});var Es=s((yh,xs)=>{"use strict";var jf=k();xs.exports=function(e){return jf(e)||e===null}});var Ss=s((hh,ws)=>{"use strict";var kf=Es(),Mf=String,Vf=TypeError;ws.exports=function(e){if(kf(e))return e;throw new Vf("Can't set "+Mf(e)+" as a prototype")}});var Rs=s((gh,qs)=>{"use strict";var Ff=Os(),Df=k(),Uf=Pe(),Gf=Ss();qs.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,r={},t;try{t=Ff(Object.prototype,"__proto__","set"),t(r,[]),e=r instanceof Array}catch(n){}return function(i,o){return Uf(i),Gf(o),Df(i)&&(e?t(i,o):i.__proto__=o),i}}():void 0)});var Fs=s((Ih,Vs)=>{"use strict";var Bf=se(),Qf=G(),sr=ve(),ks=Ho(),zf=S(),Kf=gs(),Ps=We(),_s=Rs(),Wf=or(),$f=ne(),Rt=Ot(),Yf=V(),As=H(),Ms=St(),Hf=ks.PROPER,Xf=ks.CONFIGURABLE,Ls=Ms.IteratorPrototype,ar=Ms.BUGGY_SAFARI_ITERATORS,ge=Yf("iterator"),Cs="keys",Ie="values",Ns="entries",js=function(){return this};Vs.exports=function(e,r,t,n,i,o,u){Kf(t,r,n);var a=function(h){if(h===i&&d)return d;if(!ar&&h&&h in b)return b[h];switch(h){case Cs:return function(){return new t(this,h)};case Ie:return function(){return new t(this,h)};case Ns:return function(){return new t(this,h)}}return function(){return new t(this)}},l=r+" Iterator",p=!1,b=e.prototype,c=b[ge]||b["@@iterator"]||i&&b[i],d=!ar&&c||a(i),v=r==="Array"&&b.entries||c,T,y,I;if(v&&(T=Ps(v.call(new e)),T!==Object.prototype&&T.next&&(!sr&&Ps(T)!==Ls&&(_s?_s(T,Ls):zf(T[ge])||Rt(T,ge,js)),Wf(T,l,!0,!0),sr&&(As[l]=js))),Hf&&i===Ie&&c&&c.name!==Ie&&(!sr&&Xf?$f(b,"name",Ie):(p=!0,d=function(){return Qf(c,this)})),i)if(y={values:a(Ie),keys:o?d:a(Cs),entries:a(Ns)},u)for(I in y)(ar||p||!(I in b))&&Rt(b,I,y[I]);else Bf({target:r,proto:!0,forced:ar||p},y);return(!sr||u)&&b[ge]!==d&&Rt(b,ge,d,{name:i}),As[r]=d,y}});var Us=s((Oh,Ds)=>{"use strict";Ds.exports=function(e,r){return{value:e,done:r}}});var _t=s((xh,Ks)=>{"use strict";var Jf=W(),Pt=Fe(),Gs=H(),Qs=Wo(),Zf=te().f,eb=Fs(),ur=Us(),rb=ve(),tb=A(),zs="Array Iterator",nb=Qs.set,ib=Qs.getterFor(zs);Ks.exports=eb(Array,"Array",function(e,r){nb(this,{type:zs,target:Jf(e),index:0,kind:r})},function(){var e=ib(this),r=e.target,t=e.index++;if(!r||t>=r.length)return e.target=null,ur(void 0,!0);switch(e.kind){case"keys":return ur(t,!1);case"values":return ur(r[t],!1)}return ur([t,r[t]],!1)},"values");var Bs=Gs.Arguments=Gs.Array;Pt("keys");Pt("values");Pt("entries");if(!rb&&tb&&Bs.name!=="values")try{Zf(Bs,"name",{value:"values"})}catch(e){}});var $s=s((Eh,Ws)=>{"use strict";var ob=V(),sb=H(),ab=ob("iterator"),ub=Array.prototype;Ws.exports=function(e){return e!==void 0&&(sb.Array===e||ub[ab]===e)}});var At=s((wh,Hs)=>{"use strict";var lb=qt(),Ys=Ce(),cb=Re(),pb=H(),fb=V(),bb=fb("iterator");Hs.exports=function(e){if(!cb(e))return Ys(e,bb)||Ys(e,"@@iterator")||pb[lb(e)]}});var Js=s((Sh,Xs)=>{"use strict";var db=G(),vb=de(),mb=$(),Tb=Le(),yb=At(),hb=TypeError;Xs.exports=function(e,r){var t=arguments.length<2?yb(e):r;if(vb(t))return mb(db(t,e));throw new hb(Tb(e)+" is not iterable")}});var ra=s((qh,ea)=>{"use strict";var gb=G(),Zs=$(),Ib=Ce();ea.exports=function(e,r,t){var n,i;Zs(e);try{if(n=Ib(e,"return"),!n){if(r==="throw")throw t;return t}n=gb(n,e)}catch(o){i=!0,n=o}if(r==="throw")throw t;if(i)throw n;return Zs(n),t}});var sa=s((Rh,oa)=>{"use strict";var Ob=Mr(),xb=G(),Eb=$(),wb=Le(),Sb=$s(),qb=Ve(),ta=Or(),Rb=Js(),Pb=At(),na=ra(),_b=TypeError,lr=function(e,r){this.stopped=e,this.result=r},ia=lr.prototype;oa.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),a=!!(t&&t.INTERRUPTED),l=Ob(r,n),p,b,c,d,v,T,y,I=function(O){return p&&na(p,"normal"),new lr(!0,O)},h=function(O){return i?(Eb(O),a?l(O[0],O[1],I):l(O[0],O[1])):a?l(O,I):l(O)};if(o)p=e.iterator;else if(u)p=e;else{if(b=Pb(e),!b)throw new _b(wb(e)+" is not iterable");if(Sb(b)){for(c=0,d=qb(e);d>c;c++)if(v=h(e[c]),v&&ta(ia,v))return v;return new lr(!1)}p=Rb(e,b)}for(T=o?e.next:p.next;!(y=xb(T,p)).done;){try{v=h(y.value)}catch(O){na(p,"throw",O)}if(typeof v=="object"&&v&&ta(ia,v))return v}return new lr(!1)}});var ua=s((Ph,aa)=>{"use strict";var Ab=A(),Lb=te(),Cb=fe();aa.exports=function(e,r,t){Ab?Lb.f(e,r,Cb(0,t)):e[r]=t}});var la=s(()=>{"use strict";var Nb=se(),jb=sa(),kb=ua();Nb({target:"Object",stat:!0},{fromEntries:function(r){var t={};return jb(r,function(n,i){kb(t,n,i)},{AS_ENTRIES:!0}),t}})});var pa=s((Lh,ca)=>{"use strict";_t();la();var Mb=be();ca.exports=Mb.Object.fromEntries});var ba=s((Ch,fa)=>{"use strict";fa.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 va=s(()=>{"use strict";_t();var Vb=ba(),Fb=w(),Db=or(),da=H();for(cr in Vb)Db(Fb[cr],cr),da[cr]=da.Array;var cr});var Ta=s((kh,ma)=>{"use strict";var Ub=pa();va();ma.exports=Ub});var ha=s((Mh,ya)=>{"use strict";var Gb=Ta();ya.exports=Gb});var Na="1.0.63-dev.8749d62b.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 j=e=>{throw new Error(`${e} is value of unexpected type`)},ja=e=>{};var z=()=>{};var f=class{constructor(r){r&&(this._subscribe=r)}subscribe(r,t){var u;let n;t?typeof t=="function"?n={next:t,error:z}:n={next:a=>t.next(a),error:a=>{var l;return(l=t.error)==null?void 0:l.call(t,a)}}:n={next:z,error:z};let i=typeof r=="function"?{next:a=>{try{let l=r(a);l instanceof Promise&&l.catch(p=>n.next(p))}catch(l){n.next(l)}},error:a=>n.next(a)}:{next:a=>r.next(a),error:a=>r.error?r.error(a):n.next(a)},o;try{o=this._subscribe(i)}catch(a){(u=i.error)==null||u.call(i,a)}return new E().add(()=>{switch(i.next=z,i.error=z,typeof o){case"function":o();return;case"object":o.unsubscribe();return;case"undefined":return;default:return j(o)}})}pipe(...r){return r.reduce((t,n)=>n(t),this)}_subscribe(r){}};var U=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 pr=class{constructor(){this.log$=new U;this.logs=[];this.log=r=>{let t=D(q({},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=>q({component:r},t))}};function ka(e,r='Assertion "value is not nullable" failed'){if(e==null)throw new Error(r)}function Ma(e,r='Assertion "value is nullable" failed'){if(e!=null)throw new Error(r)}function Z(e){return typeof e!="undefined"&&e!==null}function le(e){return e==null}function Va(e,r){if(!(e!=null&&e.length))throw new Error(r)}function Fa(e,r){if(e!=null&&e.length)throw new Error(r)}var Da=(e,r,t)=>new Promise((n,i)=>{r.addEventListener("abort",()=>{a(),p.remove()});let o=()=>{a(),i("error")},u=()=>{a(),n()},a=()=>{l&&clearTimeout(l),p.removeEventListener("load",u),p.removeEventListener("error",o)},l;t&&(l=window.setTimeout(()=>{a(),i("timeout")},t));let p=document.createElement("script");p.addEventListener("load",u),p.addEventListener("error",o),p.src=e,document.head.appendChild(p)});var Ut,Ua=typeof((Ut=window.performance)==null?void 0:Ut.now)=="function"?()=>window.performance.now():()=>Date.now();var Ga=(e,r)=>(...t)=>J(null,null,function*(){var u;let n=r(...t),i=e.aborted,o;for(;!i&&!e.aborted;)try{let a=yield n.next(o);i=(u=a.done)!=null?u:!1,o=a.value}catch(a){yield n.throw(a)}return o});var Ba=(e,{start:r=0,factor:t=2,max:n=1/0,min:i=r,random:o=0}={})=>{let u=r;return u*=Ft(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 br={};Dt(br,{clear:()=>Ya,get:()=>za,has:()=>Wa,isPersistent:()=>Qa,remove:()=>$a,set:()=>Ka});var x,K,fr=`vk-videoplayer-dummy-key-${Math.random()}`,ee=()=>{if(K!==void 0)return K;try{localStorage.setItem(fr,"test"),localStorage.removeItem(fr),K=0}catch(e){if(e instanceof DOMException||e instanceof TypeError)try{sessionStorage.getItem(fr),K=1}catch(r){if(r instanceof DOMException||r instanceof TypeError)K=2;else throw r}else throw e}return K===2&&(x=new Map),K},Qa=()=>ee()===0,za=e=>{var t,n;let r=ee();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:j(r)}},Ka=(e,r)=>{let t=ee();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:x==null||x.set(e,r);return;default:j(t)}},Wa=e=>{var t;let r=ee();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 j(r),!1}},$a=e=>{let r=ee();switch(r){case 0:return localStorage.removeItem(e);case 1:return sessionStorage.removeItem(e);case 2:x==null||x.delete(e);return;default:j(r)}},Ya=()=>{let e=ee();switch(e){case 0:return localStorage.clear();case 1:return sessionStorage.clear();case 2:return x==null?void 0:x.clear();default:j(e)}};var Ha=(e,r,t)=>{if(typeof e.canParse=="function")return e.canParse(r,t);try{return new e(r,t),!0}catch(n){return!1}},Gt=Ha;var Qr=ue(Mi(),1),fc=()=>{let e,r=[];try{e=window.self!==window.top}catch(t){t instanceof DOMException&&t.name==="SecurityError"?e=!0:(e=!1,console.error(t))}try{window.location.ancestorOrigins&&(r=[...window.location.ancestorOrigins])}catch(t){console.error(t)}try{!r.length&&document.referrer&&(r=[new URL(document.referrer).origin])}catch(t){console.error(t)}return r=r.filter(t=>Gt(URL,t)),{isEmbed:e,origins:r,topOrigin:(0,Qr.default)(r,-1),immediateOrigin:(0,Qr.default)(r,0)}};var zr=(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))(zr||{});var P={"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}},bc=(e,r)=>P[e].height>P[r].height,dc=(e,r)=>P[e].height>=P[r].height,Kr=(e,r)=>P[e].height<P[r].height,vc=(e,r)=>P[e].height<=P[r].height,mc=e=>e.sort((r,t)=>r===t?0:r==="Invariant quality"?1:t==="Invariant quality"?-1:Kr(r,t)?1:-1)[0],Vi=Object.keys(P).sort((e,r)=>Kr(e,r)?-1:1),Tc=(e,r=.02)=>[...Vi].find(n=>P[n].height*(1+r)>=e),yc=({width:e,height:r})=>{let t=Math.min(e,r),n=Math.max(e,r);return Vi.find(i=>{let o=P[i];return o.width>=n&&o.height>=t})},hc=e=>P[e].height,Wr=e=>e==="Invariant quality",gc=e=>e.every(r=>!Wr(r));function Ic(e){if(Wr(e))throw new Error("Expected exact quality")}var Oc=(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]=Oc(o,i):t[n]=n in e?o:i}return t};var Fv=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 $r(e,r=0,t){let n,i,o,u,a,l,p=0,b=!1,c=!1,d=!0,v=!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,d="trailing"in t?!!t.trailing:d);function T(m){let _=n,Q=i;return n=i=void 0,p=m,u=e.apply(Q,_),u}function y(m,_){return v?(a&&window.cancelAnimationFrame(a),window.requestAnimationFrame(m)):setTimeout(m,_)}function I(m){if(v){window.cancelAnimationFrame(m);return}clearTimeout(m)}function h(m){return p=m,a=y(xe,r),b?T(m):u}function O(m){let _=m-l,Q=m-p,jt=r-_;return c?Math.min(jt,o-Q):jt}function Ct(m){let _=m-l,Q=m-p;return l===void 0||_>=r||_<0||c&&Q>=o}function xe(){let m=Date.now();if(Ct(m))return Nt(m);a=y(xe,O(m))}function Nt(m){return a=void 0,d&&n?T(m):(n=i=void 0,u)}function xa(){a!==void 0&&I(a),p=0,n=l=i=a=void 0}function Ea(){return a===void 0?u:Nt(Date.now())}function wa(){return a!==void 0}function Ee(...m){let _=Date.now(),Q=Ct(_);if(n=m,i=this,l=_,Q){if(a===void 0)return h(l);if(c)return a=y(xe,r),T(l)}return a===void 0&&(a=y(xe,r)),u}return Ee.cancel=xa,Ee.flush=Ea,Ee.pending=wa,Ee}var Yr=(e,r=0,t)=>$r(e,r,D(q(q({},{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 xc=e=>De(e);var Ec=300,wc=(e,r=Ec)=>new f(t=>{let{width:n,height:i}=e.getBoundingClientRect();if(t.next({width:n,height:i}),!window.ResizeObserver)return;let o=new ResizeObserver(Yr(u=>{let a=u[0];if(!a)return;let l,p;a.contentBoxSize&&a.contentBoxSize[0]?(p=a.contentBoxSize[0].blockSize,l=a.contentBoxSize[0].inlineSize):a.contentRect&&(l=a.contentRect.width,p=a.contentRect.height),Z(l)&&Z(p)&&t.next({width:l,height:p})},r));return o.observe(e),()=>o.disconnect()});var Ue=(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=Ue(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 Sc=e=>{e.removeAttribute("src"),e.load()};var Zv=e=>{let r;try{r=new URL(e)}catch(t){return!1}return r.protocol==="https:"};var rm=e=>{try{return new URL(e)}catch(r){return null}};var qc=(e,r)=>!(e.right<r.left||e.left>r.right||e.bottom<r.top||e.top>r.bottom);var Rc=e=>r=>t=>{let n=typeof t=="object";t==null||n&&!Object.keys(t).length||e(r,n?Ue(t):{value:t})},Ge=(e={})=>{let r=n=>{let i=n;return n===void 0?i="undefined":n===null?i="null":(typeof n=="number"||typeof n=="boolean")&&(i=n.toString()),i},t={};for(let n in e)Array.isArray(e[n])?t[n]=e[n].map(r):t[n]=r(e[n]);return t};var g=class g{constructor({name:r,getParentContext:t}){this.dynamicImportTimeout=5e3;this.childTracers=[];g.dynamicImportStatus==="not_started"&&(g.dynamicImportPromise=this.loadOpentelemetry());let n=Date.now();this.initPromise=g.dynamicImportPromise.then(i=>{g.dynamicImportStatus==="completed"&&this.init({name:r,getParentContext:t},n)})}init({name:r,getParentContext:t},n){this.span=g.rootTracer.startSpan(r,{startTime:n},t==null?void 0:t()),this.context=g.dynamicImports.opentelemetryApi.trace.setSpan(g.dynamicImports.opentelemetryApi.context.active(),this.span)}loadOpentelemetry(){return J(this,null,function*(){if(g.dynamicImportStatus==="not_started"){g.dynamicImportStatus="in_progress";try{let r=new Promise((u,a)=>setTimeout(a,this.dynamicImportTimeout)),t=Promise.all([import("@opentelemetry/api"),import("@opentelemetry/sdk-trace-web"),import("@tracer/opentelemetry")]),[n,i,o]=yield Promise.race([t,r]);g.dynamicImports={opentelemetryApi:n,opentelemetrySdk:i,tracer:o},g.dynamicImportStatus="completed"}catch(r){g.dynamicImportStatus="failed"}}})}isComponentTracerNotInitialized(){return le(this.span)||g.dynamicImportStatus==="failed"}log(r,t){let n=Date.now();this.initPromise.then(i=>{this.isComponentTracerNotInitialized()||this.span.addEvent(r,D(q({},Ge(t)),{type:"log"}),n)})}error(r,t){let n=Date.now();this.initPromise.then(i=>{this.isComponentTracerNotInitialized()||this.span.addEvent(r,D(q({},Ge(t)),{type:"error"}),n)})}critical(r,t){let n=Date.now();this.initPromise.then(i=>{this.isComponentTracerNotInitialized()||this.span.addEvent(r,D(q({},Ge(t)),{type:"critical"}),n)})}createComponentTracer(r){let t=new g({name:r,getParentContext:()=>this.context});return this.childTracers.push(t),t}end(){this.initPromise.then(r=>{this.isComponentTracerNotInitialized()||(this.childTracers.forEach(t=>t.end()),this.span.end())})}};g.dynamicImportStatus="not_started";var B=g;var Be=class extends B{constructor(){super({name:"Root"})}init({name:r,getParentContext:t},n){let o=B.dynamicImports.tracer.initTracerOpenTelemetry({serviceName:"videoplayer-sdk-web",appToken:"L9SBoka6ZWk4xPjaK7tmfSfYvMhcge7nvGDjpdMmscb",spanLimits:{attributeCountLimit:1/0,eventCountLimit:1/0,attributePerEventCountLimit:1/0}}).getProvider(),u=new B.dynamicImports.tracer.TracerMemorySpanExporter;this.spanExporter=u,o.addSpanProcessor(new B.dynamicImports.tracer.TracerAllSpansProcessor({startedSpansExporter:u})),B.rootTracer=o.getTracer("sdk-videoplayer-tracer"),super.init({name:r,getParentContext:t},n)}getFinishedSpans(){var r;if(!this.isComponentTracerNotInitialized())return(r=this.spanExporter)==null?void 0:r.getJsonData()}getTraceId(){return this.isComponentTracerNotInitialized()?"":this.span.spanContext().traceId}};var Qe=class e{constructor(r){}log(r,t){}error(r,t){}critical(r,t){}createComponentTracer(r){return new e({name:r})}end(){}getFinishedSpans(){}getTraceId(){return this.fakeTraceId}};var Hr=class{static createRootTracer(r=!1){return r?new Be:new Qe}};var ze=class extends U{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}};var bo=ue(tt(),1);function vo(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(0,bo.default)(e).reduce((o,[u,a])=>o.add(a.subscribe(i(u))),new E)})}function mo(...e){return new f(r=>e.reduce((t,n)=>t.add(n.subscribe(r)),new E))}var up=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 lp=e=>new f(r=>{let t=window.setInterval(()=>r.next(),e);return()=>{t&&(window.clearInterval(t),t=void 0)}});var cp=e=>new f(r=>{e.forEach(t=>r.next(t))});var pp=(e,r)=>new f(t=>{let n=i=>t.next(i);return e.addEventListener(r,n),()=>e.removeEventListener(r,n)});var Ye=class extends E{remove(r){this.subscriptions=this.subscriptions.filter(t=>t!==r)}};function To(e){return r=>new f(t=>r.subscribe(new nt(t,e)))}var nt=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 fp={leading:!1,trailing:!0};function yo(e,r=fp){return t=>new f(n=>t.subscribe(new it(n,e,r)))}var it=class{constructor(r,t,n){this.destination=r;this.time=t;this.config=n}next(r){this.lastValue=r,Z(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 bp={leading:!0,trailing:!1};function ho(e,r=bp){return t=>new f(n=>t.subscribe(new ot(n,e,r)))}var ot=class{constructor(r,t,n){this.destination=r;this.time=t;this.config=n}next(r){this.lastValue=r,le(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 go(e){return r=>new f(t=>r.subscribe(new st(t,e)))}var st=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)}};var Po=ue(qo(),1);var Op=(e,r)=>{let t=(n,i)=>{let o=Object.keys(n);for(let u in i)if(!(0,Po.default)(o,u)||i[u]!==n[u])return!1;return!0};return t(e,r)&&t(r,e)},xp=(e,r)=>e instanceof Object&&r instanceof Object?Op(e,r):e===r;function _o(e=xp){return r=>new f(t=>r.subscribe(new at(t,e)))}var Ro={},at=class{constructor(r,t){this.destination=r;this.predicate=t;this.lastValue=Ro}next(r){let t;try{t=this.lastValue===Ro||!this.predicate(this.lastValue,r),this.lastValue=r instanceof Object?q({},r):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 ut(t,e)))}var ut=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 Ao(e){return He(()=>e)}function Lo(){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 Co(){return e=>new f(r=>e.subscribe(new lt(r)))}var lt=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 No(e){return r=>new f(t=>r.subscribe(new ct(t,e)))}var ct=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)}};function jo(e){return r=>new f(t=>r.subscribe(new pt(t,e)))}var pt=class{constructor(r,t){this.destination=r;this.count=t;var n,i;t<0&&((i=(n=this.destination).error)==null||i.call(n,new Error("Count can not be less than zero")))}next(r){this.count===0?this.destination.next(r):this.count--}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};var Ep=(a=>(a.NETWORK="network",a.VIDEO_PIPELINE="video_pipeline",a.EXTERNAL_API="external_api",a.PARSER="parser",a.DOM="dom",a.WTF="wtf",a.FATAL="fatal",a))(Ep||{});var{NativeAbortSignal:Gy,NativeAbortController:By}=function(e){return{NativeAbortSignal:e.AbortSignal,NativeAbortController:e.AbortController}}(typeof self!="undefined"?self:global);function ko(e){let r;try{r=new Event("abort")}catch(t){typeof document!="undefined"?document.createEvent?(r=document.createEvent("Event"),r.initEvent("abort",!1,!1)):(r=document.createEventObject(),r.type="abort"):r={type:"abort",bubbles:!1,cancelable:!1}}return r.reason=e,r}function Mo(e){if(e===void 0)if(typeof document=="undefined")e=new Error("This operation was aborted"),e.name="AbortError";else try{e=new DOMException("signal is aborted without reason"),Object.defineProperty(e,"name",{value:"AbortError"})}catch(r){e=new Error("This operation was aborted"),e.name="AbortError"}return e}var Xe=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(a){Promise.resolve().then(()=>{throw a})}u.options&&u.options.once&&this.removeEventListener(r.type,u.callback)}return!r.defaultPrevented}},ae=class extends Xe{constructor(){super(),this.listeners||Xe.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)}throwIfAborted(){let{aborted:r,reason:t="Aborted"}=this;if(r)throw t}static timeout(r){let t=new Y;return setTimeout(()=>t.abort(new DOMException(`This signal is timeout in ${r}ms`,"TimeoutError")),r),t.signal}static any(r){let t=new Y;function n(){t.abort(this.reason),i()}function i(){for(let o of r)o.removeEventListener("abort",n)}for(let o of r)if(o.aborted){t.abort(o.reason);break}else o.addEventListener("abort",n);return t.signal}},Y=class{constructor(){Object.defineProperty(this,"signal",{value:new ae,writable:!0,configurable:!0})}abort(r){let t=Mo(r),n=ko(t);this.signal.reason=t,this.signal.dispatchEvent(n)}toString(){return"[object AbortController]"}};typeof Symbol!="undefined"&&Symbol.toStringTag&&(Y.prototype[Symbol.toStringTag]="AbortController",ae.prototype[Symbol.toStringTag]="AbortSignal");function Je(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 ft(e){typeof e=="function"&&(e={fetch:e});let{fetch:r,Request:t=r.Request,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:i=!1}=e;if(!Je({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(p,b){let c;b&&b.signal&&(c=b.signal,delete b.signal);let d=new t(p,b);return c&&Object.defineProperty(d,"signal",{writable:!1,enumerable:!1,configurable:!0,value:c}),d},o.prototype=t.prototype);let u=r;return{fetch:(l,p)=>{let b=o&&o.prototype.isPrototypeOf(l)?l.signal:p?p.signal:void 0;if(b){let c;try{c=new DOMException("Aborted","AbortError")}catch(v){c=new Error("Aborted"),c.name="AbortError"}if(b.aborted)return Promise.reject(c);let d=new Promise((v,T)=>{b.addEventListener("abort",()=>T(c),{once:!0})});return p&&p.signal&&delete p.signal,Promise.race([d,u(l,p)])}return u(l,p)},Request:o}}var wp=()=>"fetch"in window,ye=wp()&&Je({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}),Vo=ye?ft({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}):void 0,Fo=ye?Vo.fetch:window.fetch,Zy=ye?Vo.Request:window.Request,eh=ye?Y:window.AbortController,rh=ye?ae:window.AbortSignal;var ga=ue(tt(),1),Ia=ue(ha(),1);var Bb=(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))(Bb||{}),Qb="vk.com",Fh=(e,r,t)=>J(null,null,function*(){let n=new URL(`https://${Qb}/js/lang-pack.js`);n.searchParams.set("format","json"),n.searchParams.set("name",r),e!==void 0&&n.searchParams.set("lang",e);let o=yield(yield Fo(n.toString())).json();return zb(o,t)}),zb=(e,r)=>(0,Ia.default)((0,ga.default)(e.keys).map(([t,n])=>[t.substring(`${r}_`.length),Kb(n)])),Kb=e=>Array.isArray(e)?e[0]:e;var Wb=(t=>(t.RU="ru",t.EN="en",t))(Wb||{});var $b={UI:"__vkVideoPlayer",CORE:"__vkVideoCore"},Yb=(()=>{let e=0;return()=>{let r=e;return e=(e+1)%Number.MAX_SAFE_INTEGER,r}})(),Oa=class{constructor(r){this.id=Yb();this.type=r,this.initWindowObjects()}getWindowObject(){var t,n;let r=this.key();return(n=(t=window[r])==null?void 0:t[this.id])!=null?n:{}}initWindowObjects(){let r=this.key();window[r]||(window[r]={}),window[r][this.id]={}}expose(r){Object.assign(this.getWindowObject(),r)}destroy(){let r=this.key();window&&window[r]&&window[r][this.id]&&(delete window[r][this.id],Object.keys(window[r]).length||delete window[r])}key(){let{type:r}=this;return $b[r]}};var Lt={};Dt(Lt,{create:()=>Hb,destroy:()=>Xb,push:()=>Jb,subscribe:()=>Zb});var Oe=new Map,Hb=(e,r)=>Oe.set(e,r!=null?r:[]),Xb=e=>Oe.delete(e),Jb=(e,r)=>{let t=Oe.get(e);t&&(typeof t=="function"?t(r):t.push(r))},Zb=(e,r)=>{let t=Oe.get(e);if(t){if(t&&Array.isArray(t))for(let n of t)r(n);Oe.set(e,r)}};export{Ep as ErrorCategory,Wb as InterfaceLanguage,Oa as InternalsExposure,pr as Logger,f as Observable,U as Subject,E as Subscription,Ye as SubscriptionRemovable,Hr as TracerFactory,Na as VERSION,Bb as VKNumericLanguage,ze as ValueSubject,zr as VideoQuality,Ga as abortable,Da as addScript,gc as areQualitiesExact,Fa as assertEmptyArray,j as assertNever,ka as assertNonNullable,Va as assertNotEmptyArray,Ma as assertNullable,Ic as assertQualityIsExact,To as buffer,ja as checkNever,Sc as clearVideoElement,xc as cloneDeep,De as cloneDeepWith,vo as combine,rm as createURL,yo as debounce,$r as debounceFn,fc as detectEmbed,Lt as devNull,Oc as fillWithDefault,go as filter,_o as filterChanged,Ue as flattenObject,pp as fromEvent,Ba as getExponentialDelay,mc as getHighestQuality,Rc as getTraceSubscriptionMethod,lp as interval,bc as isHigher,dc as isHigherOrEqual,qc as isIntersecting,Wr as isInvariantQuality,Kr as isLower,vc as isLowerOrEqual,Z as isNonNullable,le as isNullable,Zv as isValidURL,Fh as loadVKLangPack,He as map,Ao as mapTo,mo as merge,z as noop,Ua as now,cp as observableFrom,wc as observeElementSize,Lo as once,Co as pairwise,br as safeStorage,jo as skip,No as tap,ho as throttle,Yr as throttleFn,Fv as timeCodeToString,up as timeout,Tc as videoHeightToQuality,hc as videoQualityToHeight,yc as videoSizeToQuality};
6
+ var Sa=Object.create;var we=Object.defineProperty,qa=Object.defineProperties,Ra=Object.getOwnPropertyDescriptor,Pa=Object.getOwnPropertyDescriptors,_a=Object.getOwnPropertyNames,kt=Object.getOwnPropertySymbols,Aa=Object.getPrototypeOf,Vt=Object.prototype.hasOwnProperty,La=Object.prototype.propertyIsEnumerable;var Ft=Math.pow,Mt=(e,r,t)=>r in e?we(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,q=(e,r)=>{for(var t in r||(r={}))Vt.call(r,t)&&Mt(e,t,r[t]);if(kt)for(var t of kt(r))La.call(r,t)&&Mt(e,t,r[t]);return e},D=(e,r)=>qa(e,Pa(r));var s=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),Dt=(e,r)=>{for(var t in r)we(e,t,{get:r[t],enumerable:!0})},Ca=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of _a(r))!Vt.call(e,i)&&i!==t&&we(e,i,{get:()=>r[i],enumerable:!(n=Ra(r,i))||n.enumerable});return e};var ue=(e,r,t)=>(t=e!=null?Sa(Aa(e)):{},Ca(r||!e||!e.__esModule?we(t,"default",{value:e,enumerable:!0}):t,e));var J=(e,r,t)=>new Promise((n,i)=>{var o=l=>{try{a(t.next(l))}catch(p){i(p)}},u=l=>{try{a(t.throw(l))}catch(p){i(p)}},a=l=>l.done?n(l.value):Promise.resolve(l.value).then(o,u);a((t=t.apply(e,r)).next())});var w=s((br,Bt)=>{"use strict";var ce=function(e){return e&&e.Math===Math&&e};Bt.exports=ce(typeof globalThis=="object"&&globalThis)||ce(typeof window=="object"&&window)||ce(typeof self=="object"&&self)||ce(typeof global=="object"&&global)||ce(typeof br=="object"&&br)||function(){return this}()||Function("return this")()});var R=s((Rb,Qt)=>{"use strict";Qt.exports=function(e){try{return!!e()}catch(r){return!0}}});var pe=s((Pb,zt)=>{"use strict";var Xa=R();zt.exports=!Xa(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var Ht=s((_b,Yt)=>{"use strict";var Ja=pe(),$t=Function.prototype,Kt=$t.apply,Wt=$t.call;Yt.exports=typeof Reflect=="object"&&Reflect.apply||(Ja?Wt.bind(Kt):function(){return Wt.apply(Kt,arguments)})});var N=s((Ab,Zt)=>{"use strict";var Xt=pe(),Jt=Function.prototype,vr=Jt.call,Za=Xt&&Jt.bind.bind(vr,vr);Zt.exports=Xt?Za:function(e){return function(){return vr.apply(e,arguments)}}});var Se=s((Lb,rn)=>{"use strict";var en=N(),eu=en({}.toString),ru=en("".slice);rn.exports=function(e){return ru(eu(e),8,-1)}});var mr=s((Cb,tn)=>{"use strict";var tu=Se(),nu=N();tn.exports=function(e){if(tu(e)==="Function")return nu(e)}});var S=s((Nb,nn)=>{"use strict";var Tr=typeof document=="object"&&document.all;nn.exports=typeof Tr=="undefined"&&Tr!==void 0?function(e){return typeof e=="function"||e===Tr}:function(e){return typeof e=="function"}});var A=s((jb,on)=>{"use strict";var iu=R();on.exports=!iu(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var G=s((kb,sn)=>{"use strict";var ou=pe(),qe=Function.prototype.call;sn.exports=ou?qe.bind(qe):function(){return qe.apply(qe,arguments)}});var yr=s(ln=>{"use strict";var an={}.propertyIsEnumerable,un=Object.getOwnPropertyDescriptor,su=un&&!an.call({1:2},1);ln.f=su?function(r){var t=un(this,r);return!!t&&t.enumerable}:an});var fe=s((Vb,cn)=>{"use strict";cn.exports=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}}});var fn=s((Fb,pn)=>{"use strict";var au=N(),uu=R(),lu=Se(),hr=Object,cu=au("".split);pn.exports=uu(function(){return!hr("z").propertyIsEnumerable(0)})?function(e){return lu(e)==="String"?cu(e,""):hr(e)}:hr});var Re=s((Db,dn)=>{"use strict";dn.exports=function(e){return e==null}});var Pe=s((Ub,bn)=>{"use strict";var pu=Re(),fu=TypeError;bn.exports=function(e){if(pu(e))throw new fu("Can't call method on "+e);return e}});var W=s((Gb,vn)=>{"use strict";var du=fn(),bu=Pe();vn.exports=function(e){return du(bu(e))}});var k=s((Bb,mn)=>{"use strict";var vu=S();mn.exports=function(e){return typeof e=="object"?e!==null:vu(e)}});var de=s((Qb,Tn)=>{"use strict";Tn.exports={}});var _e=s((zb,hn)=>{"use strict";var gr=de(),Ir=w(),mu=S(),yn=function(e){return mu(e)?e:void 0};hn.exports=function(e,r){return arguments.length<2?yn(gr[e])||yn(Ir[e]):gr[e]&&gr[e][r]||Ir[e]&&Ir[e][r]}});var Or=s((Kb,gn)=>{"use strict";var Tu=N();gn.exports=Tu({}.isPrototypeOf)});var En=s((Wb,xn)=>{"use strict";var yu=w(),In=yu.navigator,On=In&&In.userAgent;xn.exports=On?String(On):""});var An=s(($b,_n)=>{"use strict";var Pn=w(),xr=En(),wn=Pn.process,Sn=Pn.Deno,qn=wn&&wn.versions||Sn&&Sn.version,Rn=qn&&qn.v8,L,Ae;Rn&&(L=Rn.split("."),Ae=L[0]>0&&L[0]<4?1:+(L[0]+L[1]));!Ae&&xr&&(L=xr.match(/Edge\/(\d+)/),(!L||L[1]>=74)&&(L=xr.match(/Chrome\/(\d+)/),L&&(Ae=+L[1])));_n.exports=Ae});var Er=s((Yb,Cn)=>{"use strict";var Ln=An(),hu=R(),gu=w(),Iu=gu.String;Cn.exports=!!Object.getOwnPropertySymbols&&!hu(function(){var e=Symbol("symbol detection");return!Iu(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Ln&&Ln<41})});var wr=s((Hb,Nn)=>{"use strict";var Ou=Er();Nn.exports=Ou&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var Sr=s((Xb,jn)=>{"use strict";var xu=_e(),Eu=S(),wu=Or(),Su=wr(),qu=Object;jn.exports=Su?function(e){return typeof e=="symbol"}:function(e){var r=xu("Symbol");return Eu(r)&&wu(r.prototype,qu(e))}});var Le=s((Jb,kn)=>{"use strict";var Ru=String;kn.exports=function(e){try{return Ru(e)}catch(r){return"Object"}}});var be=s((Zb,Mn)=>{"use strict";var Pu=S(),_u=Le(),Au=TypeError;Mn.exports=function(e){if(Pu(e))return e;throw new Au(_u(e)+" is not a function")}});var Ce=s((ev,Vn)=>{"use strict";var Lu=be(),Cu=Re();Vn.exports=function(e,r){var t=e[r];return Cu(t)?void 0:Lu(t)}});var Dn=s((rv,Fn)=>{"use strict";var qr=G(),Rr=S(),Pr=k(),Nu=TypeError;Fn.exports=function(e,r){var t,n;if(r==="string"&&Rr(t=e.toString)&&!Pr(n=qr(t,e))||Rr(t=e.valueOf)&&!Pr(n=qr(t,e))||r!=="string"&&Rr(t=e.toString)&&!Pr(n=qr(t,e)))return n;throw new Nu("Can't convert object to primitive value")}});var ve=s((tv,Un)=>{"use strict";Un.exports=!0});var Qn=s((nv,Bn)=>{"use strict";var Gn=w(),ju=Object.defineProperty;Bn.exports=function(e,r){try{ju(Gn,e,{value:r,configurable:!0,writable:!0})}catch(t){Gn[e]=r}return r}});var Ne=s((iv,Wn)=>{"use strict";var ku=ve(),Mu=w(),Vu=Qn(),zn="__core-js_shared__",Kn=Wn.exports=Mu[zn]||Vu(zn,{});(Kn.versions||(Kn.versions=[])).push({version:"3.43.0",mode:ku?"pure":"global",copyright:"\xA9 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.43.0/LICENSE",source:"https://github.com/zloirock/core-js"})});var _r=s((ov,Yn)=>{"use strict";var $n=Ne();Yn.exports=function(e,r){return $n[e]||($n[e]=r||{})}});var je=s((sv,Hn)=>{"use strict";var Fu=Pe(),Du=Object;Hn.exports=function(e){return Du(Fu(e))}});var M=s((av,Xn)=>{"use strict";var Uu=N(),Gu=je(),Bu=Uu({}.hasOwnProperty);Xn.exports=Object.hasOwn||function(r,t){return Bu(Gu(r),t)}});var Ar=s((uv,Jn)=>{"use strict";var Qu=N(),zu=0,Ku=Math.random(),Wu=Qu(1.1.toString);Jn.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Wu(++zu+Ku,36)}});var V=s((lv,ei)=>{"use strict";var $u=w(),Yu=_r(),Zn=M(),Hu=Ar(),Xu=Er(),Ju=wr(),re=$u.Symbol,Lr=Yu("wks"),Zu=Ju?re.for||re:re&&re.withoutSetter||Hu;ei.exports=function(e){return Zn(Lr,e)||(Lr[e]=Xu&&Zn(re,e)?re[e]:Zu("Symbol."+e)),Lr[e]}});var ii=s((cv,ni)=>{"use strict";var el=G(),ri=k(),ti=Sr(),rl=Ce(),tl=Dn(),nl=V(),il=TypeError,ol=nl("toPrimitive");ni.exports=function(e,r){if(!ri(e)||ti(e))return e;var t=rl(e,ol),n;if(t){if(r===void 0&&(r="default"),n=el(t,e,r),!ri(n)||ti(n))return n;throw new il("Can't convert object to primitive value")}return r===void 0&&(r="number"),tl(e,r)}});var Cr=s((pv,oi)=>{"use strict";var sl=ii(),al=Sr();oi.exports=function(e){var r=sl(e,"string");return al(r)?r:r+""}});var jr=s((fv,ai)=>{"use strict";var ul=w(),si=k(),Nr=ul.document,ll=si(Nr)&&si(Nr.createElement);ai.exports=function(e){return ll?Nr.createElement(e):{}}});var kr=s((dv,ui)=>{"use strict";var cl=A(),pl=R(),fl=jr();ui.exports=!cl&&!pl(function(){return Object.defineProperty(fl("div"),"a",{get:function(){return 7}}).a!==7})});var pi=s(ci=>{"use strict";var dl=A(),bl=G(),vl=yr(),ml=fe(),Tl=W(),yl=Cr(),hl=M(),gl=kr(),li=Object.getOwnPropertyDescriptor;ci.f=dl?li:function(r,t){if(r=Tl(r),t=yl(t),gl)try{return li(r,t)}catch(n){}if(hl(r,t))return ml(!bl(vl.f,r,t),r[t])}});var di=s((vv,fi)=>{"use strict";var Il=R(),Ol=S(),xl=/#|\.prototype\./,me=function(e,r){var t=wl[El(e)];return t===ql?!0:t===Sl?!1:Ol(r)?Il(r):!!r},El=me.normalize=function(e){return String(e).replace(xl,".").toLowerCase()},wl=me.data={},Sl=me.NATIVE="N",ql=me.POLYFILL="P";fi.exports=me});var Mr=s((mv,vi)=>{"use strict";var bi=mr(),Rl=be(),Pl=pe(),_l=bi(bi.bind);vi.exports=function(e,r){return Rl(e),r===void 0?e:Pl?_l(e,r):function(){return e.apply(r,arguments)}}});var Vr=s((Tv,mi)=>{"use strict";var Al=A(),Ll=R();mi.exports=Al&&Ll(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var $=s((yv,Ti)=>{"use strict";var Cl=k(),Nl=String,jl=TypeError;Ti.exports=function(e){if(Cl(e))return e;throw new jl(Nl(e)+" is not an object")}});var te=s(hi=>{"use strict";var kl=A(),Ml=kr(),Vl=Vr(),ke=$(),yi=Cr(),Fl=TypeError,Fr=Object.defineProperty,Dl=Object.getOwnPropertyDescriptor,Dr="enumerable",Ur="configurable",Gr="writable";hi.f=kl?Vl?function(r,t,n){if(ke(r),t=yi(t),ke(n),typeof r=="function"&&t==="prototype"&&"value"in n&&Gr in n&&!n[Gr]){var i=Dl(r,t);i&&i[Gr]&&(r[t]=n.value,n={configurable:Ur in n?n[Ur]:i[Ur],enumerable:Dr in n?n[Dr]:i[Dr],writable:!1})}return Fr(r,t,n)}:Fr:function(r,t,n){if(ke(r),t=yi(t),ke(n),Ml)try{return Fr(r,t,n)}catch(i){}if("get"in n||"set"in n)throw new Fl("Accessors not supported");return"value"in n&&(r[t]=n.value),r}});var ne=s((gv,gi)=>{"use strict";var Ul=A(),Gl=te(),Bl=fe();gi.exports=Ul?function(e,r,t){return Gl.f(e,r,Bl(1,t))}:function(e,r,t){return e[r]=t,e}});var se=s((Iv,Oi)=>{"use strict";var Te=w(),Ql=Ht(),zl=mr(),Kl=S(),Wl=pi().f,$l=di(),ie=de(),Yl=Mr(),oe=ne(),Ii=M();Ne();var Hl=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 Ql(e,this,arguments)};return r.prototype=e.prototype,r};Oi.exports=function(e,r){var t=e.target,n=e.global,i=e.stat,o=e.proto,u=n?Te:i?Te[t]:Te[t]&&Te[t].prototype,a=n?ie:ie[t]||oe(ie,t,{})[t],l=a.prototype,p,d,c,b,v,T,y,I,h;for(b in r)p=$l(n?b:t+(i?".":"#")+b,e.forced),d=!p&&u&&Ii(u,b),T=a[b],d&&(e.dontCallGetSet?(h=Wl(u,b),y=h&&h.value):y=u[b]),v=d&&y?y:r[b],!(!p&&!o&&typeof T==typeof v)&&(e.bind&&d?I=Yl(v,Te):e.wrap&&d?I=Hl(v):o&&Kl(v)?I=zl(v):I=v,(e.sham||v&&v.sham||T&&T.sham)&&oe(I,"sham",!0),oe(a,b,I),o&&(c=t+"Prototype",Ii(ie,c)||oe(ie,c,{}),oe(ie[c],b,v),e.real&&l&&(p||!l[b])&&oe(l,b,v)))}});var Ei=s((Ov,xi)=>{"use strict";var Xl=Math.ceil,Jl=Math.floor;xi.exports=Math.trunc||function(r){var t=+r;return(t>0?Jl:Xl)(t)}});var Me=s((xv,wi)=>{"use strict";var Zl=Ei();wi.exports=function(e){var r=+e;return r!==r||r===0?0:Zl(r)}});var qi=s((Ev,Si)=>{"use strict";var ec=Me(),rc=Math.min;Si.exports=function(e){var r=ec(e);return r>0?rc(r,9007199254740991):0}});var Ve=s((wv,Ri)=>{"use strict";var tc=qi();Ri.exports=function(e){return tc(e.length)}});var Fe=s((Sv,Pi)=>{"use strict";Pi.exports=function(){}});var _i=s(()=>{"use strict";var nc=se(),ic=je(),oc=Ve(),sc=Me(),ac=Fe();nc({target:"Array",proto:!0},{at:function(r){var t=ic(this),n=oc(t),i=sc(r),o=i>=0?i:n+i;return o<0||o>=n?void 0:t[o]}});ac("at")});var Br=s((Pv,Ai)=>{"use strict";var uc=_e();Ai.exports=uc});var Ci=s((_v,Li)=>{"use strict";_i();var lc=Br();Li.exports=lc("Array","at")});var ji=s((Av,Ni)=>{"use strict";var cc=Ci();Ni.exports=cc});var Mi=s((Lv,ki)=>{"use strict";var pc=ji();ki.exports=pc});var Ke=s((cT,Di)=>{"use strict";var Pc=_r(),_c=Ar(),Fi=Pc("keys");Di.exports=function(e){return Fi[e]||(Fi[e]=_c(e))}});var Gi=s((pT,Ui)=>{"use strict";var Ac=R();Ui.exports=!Ac(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var We=s((fT,Qi)=>{"use strict";var Lc=M(),Cc=S(),Nc=je(),jc=Ke(),kc=Gi(),Bi=jc("IE_PROTO"),Xr=Object,Mc=Xr.prototype;Qi.exports=kc?Xr.getPrototypeOf:function(e){var r=Nc(e);if(Lc(r,Bi))return r[Bi];var t=r.constructor;return Cc(t)&&r instanceof t?t.prototype:r instanceof Xr?Mc:null}});var Ki=s((dT,zi)=>{"use strict";var Vc=Me(),Fc=Math.max,Dc=Math.min;zi.exports=function(e,r){var t=Vc(e);return t<0?Fc(t+r,0):Dc(t,r)}});var Jr=s((bT,$i)=>{"use strict";var Uc=W(),Gc=Ki(),Bc=Ve(),Wi=function(e){return function(r,t,n){var i=Uc(r),o=Bc(i);if(o===0)return!e&&-1;var u=Gc(n,o),a;if(e&&t!==t){for(;o>u;)if(a=i[u++],a!==a)return!0}else for(;o>u;u++)if((e||u in i)&&i[u]===t)return e||u||0;return!e&&-1}};$i.exports={includes:Wi(!0),indexOf:Wi(!1)}});var $e=s((vT,Yi)=>{"use strict";Yi.exports={}});var Ji=s((mT,Xi)=>{"use strict";var Qc=N(),Zr=M(),zc=W(),Kc=Jr().indexOf,Wc=$e(),Hi=Qc([].push);Xi.exports=function(e,r){var t=zc(e),n=0,i=[],o;for(o in t)!Zr(Wc,o)&&Zr(t,o)&&Hi(i,o);for(;r.length>n;)Zr(t,o=r[n++])&&(~Kc(i,o)||Hi(i,o));return i}});var et=s((TT,Zi)=>{"use strict";Zi.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var rt=s((yT,eo)=>{"use strict";var $c=Ji(),Yc=et();eo.exports=Object.keys||function(r){return $c(r,Yc)}});var so=s((hT,oo)=>{"use strict";var to=A(),Hc=R(),no=N(),Xc=We(),Jc=rt(),Zc=W(),ep=yr().f,io=no(ep),rp=no([].push),tp=to&&Hc(function(){var e=Object.create(null);return e[2]=2,!io(e,2)}),ro=function(e){return function(r){for(var t=Zc(r),n=Jc(t),i=tp&&Xc(t)===null,o=n.length,u=0,a=[],l;o>u;)l=n[u++],(!to||(i?l in t:io(t,l)))&&rp(a,e?[l,t[l]]:t[l]);return a}};oo.exports={entries:ro(!0),values:ro(!1)}});var ao=s(()=>{"use strict";var np=se(),ip=so().entries;np({target:"Object",stat:!0},{entries:function(r){return ip(r)}})});var lo=s((OT,uo)=>{"use strict";ao();var op=de();uo.exports=op.Object.entries});var po=s((xT,co)=>{"use strict";var sp=lo();co.exports=sp});var tt=s((ET,fo)=>{"use strict";var ap=po();fo.exports=ap});var Io=s(()=>{"use strict";var bp=se(),vp=Jr().includes,mp=R(),Tp=Fe(),yp=mp(function(){return!Array(1).includes()});bp({target:"Array",proto:!0,forced:yp},{includes:function(r){return vp(this,r,arguments.length>1?arguments[1]:void 0)}});Tp("includes")});var xo=s((ZT,Oo)=>{"use strict";Io();var hp=Br();Oo.exports=hp("Array","includes")});var wo=s((ey,Eo)=>{"use strict";var gp=xo();Eo.exports=gp});var qo=s((ry,So)=>{"use strict";var Ip=wo();So.exports=Ip});var H=s((nh,Do)=>{"use strict";Do.exports={}});var Bo=s((ih,Go)=>{"use strict";var Sp=w(),qp=S(),Uo=Sp.WeakMap;Go.exports=qp(Uo)&&/native code/.test(String(Uo))});var Wo=s((oh,Ko)=>{"use strict";var Rp=Bo(),zo=w(),Pp=k(),_p=ne(),dt=M(),bt=Ne(),Ap=Ke(),Lp=$e(),Qo="Object already initialized",vt=zo.TypeError,Cp=zo.WeakMap,Ze,he,er,Np=function(e){return er(e)?he(e):Ze(e,{})},jp=function(e){return function(r){var t;if(!Pp(r)||(t=he(r)).type!==e)throw new vt("Incompatible receiver, "+e+" required");return t}};Rp||bt.state?(C=bt.state||(bt.state=new Cp),C.get=C.get,C.has=C.has,C.set=C.set,Ze=function(e,r){if(C.has(e))throw new vt(Qo);return r.facade=e,C.set(e,r),r},he=function(e){return C.get(e)||{}},er=function(e){return C.has(e)}):(X=Ap("state"),Lp[X]=!0,Ze=function(e,r){if(dt(e,X))throw new vt(Qo);return r.facade=e,_p(e,X,r),r},he=function(e){return dt(e,X)?e[X]:{}},er=function(e){return dt(e,X)});var C,X;Ko.exports={set:Ze,get:he,has:er,enforce:Np,getterFor:jp}});var Ho=s((sh,Yo)=>{"use strict";var mt=A(),kp=M(),$o=Function.prototype,Mp=mt&&Object.getOwnPropertyDescriptor,Tt=kp($o,"name"),Vp=Tt&&function(){}.name==="something",Fp=Tt&&(!mt||mt&&Mp($o,"name").configurable);Yo.exports={EXISTS:Tt,PROPER:Vp,CONFIGURABLE:Fp}});var Jo=s(Xo=>{"use strict";var Dp=A(),Up=Vr(),Gp=te(),Bp=$(),Qp=W(),zp=rt();Xo.f=Dp&&!Up?Object.defineProperties:function(r,t){Bp(r);for(var n=Qp(t),i=zp(t),o=i.length,u=0,a;o>u;)Gp.f(r,a=i[u++],n[a]);return r}});var es=s((uh,Zo)=>{"use strict";var Kp=_e();Zo.exports=Kp("document","documentElement")});var It=s((lh,as)=>{"use strict";var Wp=$(),$p=Jo(),rs=et(),Yp=$e(),Hp=es(),Xp=jr(),Jp=Ke(),ts=">",ns="<",ht="prototype",gt="script",os=Jp("IE_PROTO"),yt=function(){},ss=function(e){return ns+gt+ts+e+ns+"/"+gt+ts},is=function(e){e.write(ss("")),e.close();var r=e.parentWindow.Object;return e=null,r},Zp=function(){var e=Xp("iframe"),r="java"+gt+":",t;return e.style.display="none",Hp.appendChild(e),e.src=String(r),t=e.contentWindow.document,t.open(),t.write(ss("document.F=Object")),t.close(),t.F},rr,tr=function(){try{rr=new ActiveXObject("htmlfile")}catch(r){}tr=typeof document!="undefined"?document.domain&&rr?is(rr):Zp():is(rr);for(var e=rs.length;e--;)delete tr[ht][rs[e]];return tr()};Yp[os]=!0;as.exports=Object.create||function(r,t){var n;return r!==null?(yt[ht]=Wp(r),n=new yt,yt[ht]=null,n[os]=r):n=tr(),t===void 0?n:$p.f(n,t)}});var Ot=s((ch,us)=>{"use strict";var ef=ne();us.exports=function(e,r,t,n){return n&&n.enumerable?e[r]=t:ef(e,r,t),e}});var St=s((ph,ps)=>{"use strict";var rf=R(),tf=S(),nf=k(),of=It(),ls=We(),sf=Ot(),af=V(),uf=ve(),wt=af("iterator"),cs=!1,F,xt,Et;[].keys&&(Et=[].keys(),"next"in Et?(xt=ls(ls(Et)),xt!==Object.prototype&&(F=xt)):cs=!0);var lf=!nf(F)||rf(function(){var e={};return F[wt].call(e)!==e});lf?F={}:uf&&(F=of(F));tf(F[wt])||sf(F,wt,function(){return this});ps.exports={IteratorPrototype:F,BUGGY_SAFARI_ITERATORS:cs}});var nr=s((fh,ds)=>{"use strict";var cf=V(),pf=cf("toStringTag"),fs={};fs[pf]="z";ds.exports=String(fs)==="[object z]"});var qt=s((dh,bs)=>{"use strict";var ff=nr(),df=S(),ir=Se(),bf=V(),vf=bf("toStringTag"),mf=Object,Tf=ir(function(){return arguments}())==="Arguments",yf=function(e,r){try{return e[r]}catch(t){}};bs.exports=ff?ir:function(e){var r,t,n;return e===void 0?"Undefined":e===null?"Null":typeof(t=yf(r=mf(e),vf))=="string"?t:Tf?ir(r):(n=ir(r))==="Object"&&df(r.callee)?"Arguments":n}});var ms=s((bh,vs)=>{"use strict";var hf=nr(),gf=qt();vs.exports=hf?{}.toString:function(){return"[object "+gf(this)+"]"}});var or=s((vh,ys)=>{"use strict";var If=nr(),Of=te().f,xf=ne(),Ef=M(),wf=ms(),Sf=V(),Ts=Sf("toStringTag");ys.exports=function(e,r,t,n){var i=t?e:e&&e.prototype;i&&(Ef(i,Ts)||Of(i,Ts,{configurable:!0,value:r}),n&&!If&&xf(i,"toString",wf))}});var gs=s((mh,hs)=>{"use strict";var qf=St().IteratorPrototype,Rf=It(),Pf=fe(),_f=or(),Af=H(),Lf=function(){return this};hs.exports=function(e,r,t,n){var i=r+" Iterator";return e.prototype=Rf(qf,{next:Pf(+!n,t)}),_f(e,i,!1,!0),Af[i]=Lf,e}});var Os=s((Th,Is)=>{"use strict";var Cf=N(),Nf=be();Is.exports=function(e,r,t){try{return Cf(Nf(Object.getOwnPropertyDescriptor(e,r)[t]))}catch(n){}}});var Es=s((yh,xs)=>{"use strict";var jf=k();xs.exports=function(e){return jf(e)||e===null}});var Ss=s((hh,ws)=>{"use strict";var kf=Es(),Mf=String,Vf=TypeError;ws.exports=function(e){if(kf(e))return e;throw new Vf("Can't set "+Mf(e)+" as a prototype")}});var Rs=s((gh,qs)=>{"use strict";var Ff=Os(),Df=k(),Uf=Pe(),Gf=Ss();qs.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,r={},t;try{t=Ff(Object.prototype,"__proto__","set"),t(r,[]),e=r instanceof Array}catch(n){}return function(i,o){return Uf(i),Gf(o),Df(i)&&(e?t(i,o):i.__proto__=o),i}}():void 0)});var Fs=s((Ih,Vs)=>{"use strict";var Bf=se(),Qf=G(),sr=ve(),ks=Ho(),zf=S(),Kf=gs(),Ps=We(),_s=Rs(),Wf=or(),$f=ne(),Rt=Ot(),Yf=V(),As=H(),Ms=St(),Hf=ks.PROPER,Xf=ks.CONFIGURABLE,Ls=Ms.IteratorPrototype,ar=Ms.BUGGY_SAFARI_ITERATORS,ge=Yf("iterator"),Cs="keys",Ie="values",Ns="entries",js=function(){return this};Vs.exports=function(e,r,t,n,i,o,u){Kf(t,r,n);var a=function(h){if(h===i&&b)return b;if(!ar&&h&&h in d)return d[h];switch(h){case Cs:return function(){return new t(this,h)};case Ie:return function(){return new t(this,h)};case Ns:return function(){return new t(this,h)}}return function(){return new t(this)}},l=r+" Iterator",p=!1,d=e.prototype,c=d[ge]||d["@@iterator"]||i&&d[i],b=!ar&&c||a(i),v=r==="Array"&&d.entries||c,T,y,I;if(v&&(T=Ps(v.call(new e)),T!==Object.prototype&&T.next&&(!sr&&Ps(T)!==Ls&&(_s?_s(T,Ls):zf(T[ge])||Rt(T,ge,js)),Wf(T,l,!0,!0),sr&&(As[l]=js))),Hf&&i===Ie&&c&&c.name!==Ie&&(!sr&&Xf?$f(d,"name",Ie):(p=!0,b=function(){return Qf(c,this)})),i)if(y={values:a(Ie),keys:o?b:a(Cs),entries:a(Ns)},u)for(I in y)(ar||p||!(I in d))&&Rt(d,I,y[I]);else Bf({target:r,proto:!0,forced:ar||p},y);return(!sr||u)&&d[ge]!==b&&Rt(d,ge,b,{name:i}),As[r]=b,y}});var Us=s((Oh,Ds)=>{"use strict";Ds.exports=function(e,r){return{value:e,done:r}}});var _t=s((xh,Ks)=>{"use strict";var Jf=W(),Pt=Fe(),Gs=H(),Qs=Wo(),Zf=te().f,ed=Fs(),ur=Us(),rd=ve(),td=A(),zs="Array Iterator",nd=Qs.set,id=Qs.getterFor(zs);Ks.exports=ed(Array,"Array",function(e,r){nd(this,{type:zs,target:Jf(e),index:0,kind:r})},function(){var e=id(this),r=e.target,t=e.index++;if(!r||t>=r.length)return e.target=null,ur(void 0,!0);switch(e.kind){case"keys":return ur(t,!1);case"values":return ur(r[t],!1)}return ur([t,r[t]],!1)},"values");var Bs=Gs.Arguments=Gs.Array;Pt("keys");Pt("values");Pt("entries");if(!rd&&td&&Bs.name!=="values")try{Zf(Bs,"name",{value:"values"})}catch(e){}});var $s=s((Eh,Ws)=>{"use strict";var od=V(),sd=H(),ad=od("iterator"),ud=Array.prototype;Ws.exports=function(e){return e!==void 0&&(sd.Array===e||ud[ad]===e)}});var At=s((wh,Hs)=>{"use strict";var ld=qt(),Ys=Ce(),cd=Re(),pd=H(),fd=V(),dd=fd("iterator");Hs.exports=function(e){if(!cd(e))return Ys(e,dd)||Ys(e,"@@iterator")||pd[ld(e)]}});var Js=s((Sh,Xs)=>{"use strict";var bd=G(),vd=be(),md=$(),Td=Le(),yd=At(),hd=TypeError;Xs.exports=function(e,r){var t=arguments.length<2?yd(e):r;if(vd(t))return md(bd(t,e));throw new hd(Td(e)+" is not iterable")}});var ra=s((qh,ea)=>{"use strict";var gd=G(),Zs=$(),Id=Ce();ea.exports=function(e,r,t){var n,i;Zs(e);try{if(n=Id(e,"return"),!n){if(r==="throw")throw t;return t}n=gd(n,e)}catch(o){i=!0,n=o}if(r==="throw")throw t;if(i)throw n;return Zs(n),t}});var sa=s((Rh,oa)=>{"use strict";var Od=Mr(),xd=G(),Ed=$(),wd=Le(),Sd=$s(),qd=Ve(),ta=Or(),Rd=Js(),Pd=At(),na=ra(),_d=TypeError,lr=function(e,r){this.stopped=e,this.result=r},ia=lr.prototype;oa.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),a=!!(t&&t.INTERRUPTED),l=Od(r,n),p,d,c,b,v,T,y,I=function(O){return p&&na(p,"normal"),new lr(!0,O)},h=function(O){return i?(Ed(O),a?l(O[0],O[1],I):l(O[0],O[1])):a?l(O,I):l(O)};if(o)p=e.iterator;else if(u)p=e;else{if(d=Pd(e),!d)throw new _d(wd(e)+" is not iterable");if(Sd(d)){for(c=0,b=qd(e);b>c;c++)if(v=h(e[c]),v&&ta(ia,v))return v;return new lr(!1)}p=Rd(e,d)}for(T=o?e.next:p.next;!(y=xd(T,p)).done;){try{v=h(y.value)}catch(O){na(p,"throw",O)}if(typeof v=="object"&&v&&ta(ia,v))return v}return new lr(!1)}});var ua=s((Ph,aa)=>{"use strict";var Ad=A(),Ld=te(),Cd=fe();aa.exports=function(e,r,t){Ad?Ld.f(e,r,Cd(0,t)):e[r]=t}});var la=s(()=>{"use strict";var Nd=se(),jd=sa(),kd=ua();Nd({target:"Object",stat:!0},{fromEntries:function(r){var t={};return jd(r,function(n,i){kd(t,n,i)},{AS_ENTRIES:!0}),t}})});var pa=s((Lh,ca)=>{"use strict";_t();la();var Md=de();ca.exports=Md.Object.fromEntries});var da=s((Ch,fa)=>{"use strict";fa.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 va=s(()=>{"use strict";_t();var Vd=da(),Fd=w(),Dd=or(),ba=H();for(cr in Vd)Dd(Fd[cr],cr),ba[cr]=ba.Array;var cr});var Ta=s((kh,ma)=>{"use strict";var Ud=pa();va();ma.exports=Ud});var ha=s((Mh,ya)=>{"use strict";var Gd=Ta();ya.exports=Gd});var Na="1.0.63-dev.96cd632e.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 j=e=>{throw new Error(`${e} is value of unexpected type`)},ja=e=>{};var z=()=>{};var f=class{constructor(r){r&&(this._subscribe=r)}subscribe(r,t){var u;let n;t?typeof t=="function"?n={next:t,error:z}:n={next:a=>t.next(a),error:a=>{var l;return(l=t.error)==null?void 0:l.call(t,a)}}:n={next:z,error:z};let i=typeof r=="function"?{next:a=>{try{let l=r(a);l instanceof Promise&&l.catch(p=>n.next(p))}catch(l){n.next(l)}},error:a=>n.next(a)}:{next:a=>r.next(a),error:a=>r.error?r.error(a):n.next(a)},o;try{o=this._subscribe(i)}catch(a){(u=i.error)==null||u.call(i,a)}return new E().add(()=>{switch(i.next=z,i.error=z,typeof o){case"function":o();return;case"object":o.unsubscribe();return;case"undefined":return;default:return j(o)}})}pipe(...r){return r.reduce((t,n)=>n(t),this)}_subscribe(r){}};var U=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 pr=class{constructor(){this.log$=new U;this.logs=[];this.log=r=>{let t=D(q({},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=>q({component:r},t))}};function ka(e,r='Assertion "value is not nullable" failed'){if(e==null)throw new Error(r)}function Ma(e,r='Assertion "value is nullable" failed'){if(e!=null)throw new Error(r)}function Z(e){return typeof e!="undefined"&&e!==null}function le(e){return e==null}function Va(e,r){if(!(e!=null&&e.length))throw new Error(r)}function Fa(e,r){if(e!=null&&e.length)throw new Error(r)}var Da=(e,r,t)=>new Promise((n,i)=>{r.addEventListener("abort",()=>{a(),p.remove()});let o=()=>{a(),i("error")},u=()=>{a(),n()},a=()=>{l&&clearTimeout(l),p.removeEventListener("load",u),p.removeEventListener("error",o)},l;t&&(l=window.setTimeout(()=>{a(),i("timeout")},t));let p=document.createElement("script");p.addEventListener("load",u),p.addEventListener("error",o),p.src=e,document.head.appendChild(p)});var Ut,Ua=typeof((Ut=window.performance)==null?void 0:Ut.now)=="function"?()=>window.performance.now():()=>Date.now();var Ga=(e,r)=>(...t)=>J(null,null,function*(){var u;let n=r(...t),i=e.aborted,o;for(;!i&&!e.aborted;)try{let a=yield n.next(o);i=(u=a.done)!=null?u:!1,o=a.value}catch(a){yield n.throw(a)}return o});var Ba=(e,{start:r=0,factor:t=2,max:n=1/0,min:i=r,random:o=0}={})=>{let u=r;return u*=Ft(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 dr={};Dt(dr,{clear:()=>Ya,get:()=>za,has:()=>Wa,isPersistent:()=>Qa,remove:()=>$a,set:()=>Ka});var x,K,fr=`vk-videoplayer-dummy-key-${Math.random()}`,ee=()=>{if(K!==void 0)return K;try{localStorage.setItem(fr,"test"),localStorage.removeItem(fr),K=0}catch(e){if(e instanceof DOMException||e instanceof TypeError)try{sessionStorage.getItem(fr),K=1}catch(r){if(r instanceof DOMException||r instanceof TypeError)K=2;else throw r}else throw e}return K===2&&(x=new Map),K},Qa=()=>ee()===0,za=e=>{var t,n;let r=ee();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:j(r)}},Ka=(e,r)=>{let t=ee();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:x==null||x.set(e,r);return;default:j(t)}},Wa=e=>{var t;let r=ee();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 j(r),!1}},$a=e=>{let r=ee();switch(r){case 0:return localStorage.removeItem(e);case 1:return sessionStorage.removeItem(e);case 2:x==null||x.delete(e);return;default:j(r)}},Ya=()=>{let e=ee();switch(e){case 0:return localStorage.clear();case 1:return sessionStorage.clear();case 2:return x==null?void 0:x.clear();default:j(e)}};var Ha=(e,r,t)=>{if(typeof e.canParse=="function")return e.canParse(r,t);try{return new e(r,t),!0}catch(n){return!1}},Gt=Ha;var Qr=ue(Mi(),1),fc=()=>{let e,r=[];try{e=window.self!==window.top}catch(t){t instanceof DOMException&&t.name==="SecurityError"?e=!0:(e=!1,console.error(t))}try{window.location.ancestorOrigins&&(r=[...window.location.ancestorOrigins])}catch(t){console.error(t)}try{!r.length&&document.referrer&&(r=[new URL(document.referrer).origin])}catch(t){console.error(t)}return r=r.filter(t=>Gt(URL,t)),{isEmbed:e,origins:r,topOrigin:(0,Qr.default)(r,-1),immediateOrigin:(0,Qr.default)(r,0)}};var zr=(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))(zr||{});var P={"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}},dc=(e,r)=>P[e].height>P[r].height,bc=(e,r)=>P[e].height>=P[r].height,Kr=(e,r)=>P[e].height<P[r].height,vc=(e,r)=>P[e].height<=P[r].height,mc=e=>e.sort((r,t)=>r===t?0:r==="Invariant quality"?1:t==="Invariant quality"?-1:Kr(r,t)?1:-1)[0],Vi=Object.keys(P).sort((e,r)=>Kr(e,r)?-1:1),Tc=(e,r=.02)=>[...Vi].find(n=>P[n].height*(1+r)>=e),yc=({width:e,height:r})=>{let t=Math.min(e,r),n=Math.max(e,r);return Vi.find(i=>{let o=P[i];return o.width>=n&&o.height>=t})},hc=e=>P[e].height,Wr=e=>e==="Invariant quality",gc=e=>e.every(r=>!Wr(r));function Ic(e){if(Wr(e))throw new Error("Expected exact quality")}var Oc=(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]=Oc(o,i):t[n]=n in e?o:i}return t};var Fv=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 $r(e,r=0,t){let n,i,o,u,a,l,p=0,d=!1,c=!1,b=!0,v=!r&&r!==0&&typeof window.requestAnimationFrame=="function";t&&(d=!!t.leading,c="maxWait"in t,o=t!=null&&t.maxWait?Math.max(+(t==null?void 0:t.maxWait)||0,r):o,b="trailing"in t?!!t.trailing:b);function T(m){let _=n,Q=i;return n=i=void 0,p=m,u=e.apply(Q,_),u}function y(m,_){return v?(a&&window.cancelAnimationFrame(a),window.requestAnimationFrame(m)):setTimeout(m,_)}function I(m){if(v){window.cancelAnimationFrame(m);return}clearTimeout(m)}function h(m){return p=m,a=y(xe,r),d?T(m):u}function O(m){let _=m-l,Q=m-p,jt=r-_;return c?Math.min(jt,o-Q):jt}function Ct(m){let _=m-l,Q=m-p;return l===void 0||_>=r||_<0||c&&Q>=o}function xe(){let m=Date.now();if(Ct(m))return Nt(m);a=y(xe,O(m))}function Nt(m){return a=void 0,b&&n?T(m):(n=i=void 0,u)}function xa(){a!==void 0&&I(a),p=0,n=l=i=a=void 0}function Ea(){return a===void 0?u:Nt(Date.now())}function wa(){return a!==void 0}function Ee(...m){let _=Date.now(),Q=Ct(_);if(n=m,i=this,l=_,Q){if(a===void 0)return h(l);if(c)return a=y(xe,r),T(l)}return a===void 0&&(a=y(xe,r)),u}return Ee.cancel=xa,Ee.flush=Ea,Ee.pending=wa,Ee}var Yr=(e,r=0,t)=>$r(e,r,D(q(q({},{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 xc=e=>De(e);var Ec=300,wc=(e,r=Ec)=>new f(t=>{let{width:n,height:i}=e.getBoundingClientRect();if(t.next({width:n,height:i}),!window.ResizeObserver)return;let o=new ResizeObserver(Yr(u=>{let a=u[0];if(!a)return;let l,p;a.contentBoxSize&&a.contentBoxSize[0]?(p=a.contentBoxSize[0].blockSize,l=a.contentBoxSize[0].inlineSize):a.contentRect&&(l=a.contentRect.width,p=a.contentRect.height),Z(l)&&Z(p)&&t.next({width:l,height:p})},r));return o.observe(e),()=>o.disconnect()});var Ue=(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=Ue(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 Sc=e=>{e.removeAttribute("src"),e.load()};var Zv=e=>{let r;try{r=new URL(e)}catch(t){return!1}return r.protocol==="https:"};var rm=e=>{try{return new URL(e)}catch(r){return null}};var qc=(e,r)=>!(e.right<r.left||e.left>r.right||e.bottom<r.top||e.top>r.bottom);var Rc=e=>r=>t=>{let n=typeof t=="object";t==null||n&&!Object.keys(t).length||e(r,n?Ue(t):{value:t})},Ge=(e={})=>{let r=n=>{let i=n;return n===void 0?i="undefined":n===null?i="null":(typeof n=="number"||typeof n=="boolean")&&(i=n.toString()),i},t={};for(let n in e)Array.isArray(e[n])?t[n]=e[n].map(r):t[n]=r(e[n]);return t};var g=class g{constructor({name:r,getParentContext:t}){this.dynamicImportTimeout=5e3;this.childTracers=[];g.dynamicImportStatus==="not_started"&&(g.dynamicImportPromise=this.loadOpentelemetry());let n=Date.now();this.initPromise=g.dynamicImportPromise.then(i=>{g.dynamicImportStatus==="completed"&&this.init({name:r,getParentContext:t},n)})}init({name:r,getParentContext:t},n){this.span=g.rootTracer.startSpan(r,{startTime:n},t==null?void 0:t()),this.context=g.dynamicImports.opentelemetryApi.trace.setSpan(g.dynamicImports.opentelemetryApi.context.active(),this.span)}loadOpentelemetry(){return J(this,null,function*(){if(g.dynamicImportStatus==="not_started"){g.dynamicImportStatus="in_progress";try{let r=new Promise((u,a)=>setTimeout(a,this.dynamicImportTimeout)),t=Promise.all([import("@opentelemetry/api"),import("@opentelemetry/sdk-trace-web"),import("@tracer/opentelemetry")]),[n,i,o]=yield Promise.race([t,r]);g.dynamicImports={opentelemetryApi:n,opentelemetrySdk:i,tracer:o},g.dynamicImportStatus="completed"}catch(r){g.dynamicImportStatus="failed"}}})}isComponentTracerNotInitialized(){return le(this.span)||g.dynamicImportStatus==="failed"}log(r,t){let n=Date.now();this.initPromise.then(i=>{this.isComponentTracerNotInitialized()||this.span.addEvent(r,D(q({},Ge(t)),{type:"log"}),n)})}error(r,t){let n=Date.now();this.initPromise.then(i=>{this.isComponentTracerNotInitialized()||this.span.addEvent(r,D(q({},Ge(t)),{type:"error"}),n)})}critical(r,t){let n=Date.now();this.initPromise.then(i=>{this.isComponentTracerNotInitialized()||this.span.addEvent(r,D(q({},Ge(t)),{type:"critical"}),n)})}createComponentTracer(r){let t=new g({name:r,getParentContext:()=>this.context});return this.childTracers.push(t),t}end(){this.initPromise.then(r=>{this.isComponentTracerNotInitialized()||(this.childTracers.forEach(t=>t.end()),this.span.end())})}};g.dynamicImportStatus="not_started";var B=g;var Be=class extends B{constructor(){super({name:"Root"})}init({name:r,getParentContext:t},n){let o=B.dynamicImports.tracer.initTracerOpenTelemetry({serviceName:"videoplayer-sdk-web",appToken:"L9SBoka6ZWk4xPjaK7tmfSfYvMhcge7nvGDjpdMmscb",spanLimits:{attributeCountLimit:1/0,eventCountLimit:1/0,attributePerEventCountLimit:1/0}}).getProvider(),u=new B.dynamicImports.tracer.TracerMemorySpanExporter;this.spanExporter=u,o.addSpanProcessor(new B.dynamicImports.tracer.TracerAllSpansProcessor({startedSpansExporter:u})),B.rootTracer=o.getTracer("sdk-videoplayer-tracer"),super.init({name:r,getParentContext:t},n)}getFinishedSpans(){var r;if(!this.isComponentTracerNotInitialized())return(r=this.spanExporter)==null?void 0:r.getJsonData()}getTraceId(){return this.isComponentTracerNotInitialized()?"":this.span.spanContext().traceId}};var Qe=class e{constructor(r){}log(r,t){}error(r,t){}critical(r,t){}createComponentTracer(r){return new e({name:r})}end(){}getFinishedSpans(){}getTraceId(){return this.fakeTraceId}};var Hr=class{static createRootTracer(r=!1){return r?new Be:new Qe}};var ze=class extends U{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}};var bo=ue(tt(),1);function vo(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(0,bo.default)(e).reduce((o,[u,a])=>o.add(a.subscribe(i(u))),new E)})}function mo(...e){return new f(r=>e.reduce((t,n)=>t.add(n.subscribe(r)),new E))}var up=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 lp=e=>new f(r=>{let t=window.setInterval(()=>r.next(),e);return()=>{t&&(window.clearInterval(t),t=void 0)}});var cp=e=>new f(r=>{e.forEach(t=>r.next(t))});var pp=(e,r)=>new f(t=>{let n=i=>t.next(i);return e.addEventListener(r,n),()=>e.removeEventListener(r,n)});var Ye=class extends E{remove(r){this.subscriptions=this.subscriptions.filter(t=>t!==r)}};function To(e){return r=>new f(t=>r.subscribe(new nt(t,e)))}var nt=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 fp={leading:!1,trailing:!0};function yo(e,r=fp){return t=>new f(n=>t.subscribe(new it(n,e,r)))}var it=class{constructor(r,t,n){this.destination=r;this.time=t;this.config=n}next(r){this.lastValue=r,Z(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 dp={leading:!0,trailing:!1};function ho(e,r=dp){return t=>new f(n=>t.subscribe(new ot(n,e,r)))}var ot=class{constructor(r,t,n){this.destination=r;this.time=t;this.config=n}next(r){this.lastValue=r,le(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 go(e){return r=>new f(t=>r.subscribe(new st(t,e)))}var st=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)}};var Po=ue(qo(),1);var Op=(e,r)=>{let t=(n,i)=>{let o=Object.keys(n);for(let u in i)if(!(0,Po.default)(o,u)||i[u]!==n[u])return!1;return!0};return t(e,r)&&t(r,e)},xp=(e,r)=>e instanceof Object&&r instanceof Object?Op(e,r):e===r;function _o(e=xp){return r=>new f(t=>r.subscribe(new at(t,e)))}var Ro={},at=class{constructor(r,t){this.destination=r;this.predicate=t;this.lastValue=Ro}next(r){let t;try{t=this.lastValue===Ro||!this.predicate(this.lastValue,r),this.lastValue=r instanceof Object?q({},r):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 ut(t,e)))}var ut=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 Ao(e){return He(()=>e)}function Lo(){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 Co(){return e=>new f(r=>e.subscribe(new lt(r)))}var lt=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 No(e){return r=>new f(t=>r.subscribe(new ct(t,e)))}var ct=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)}};function jo(e){return r=>new f(t=>r.subscribe(new pt(t,e)))}var pt=class{constructor(r,t){this.destination=r;this.count=t;var n,i;t<0&&((i=(n=this.destination).error)==null||i.call(n,new Error("Count can not be less than zero")))}next(r){this.count===0?this.destination.next(r):this.count--}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};var Ep=(a=>(a.NETWORK="network",a.VIDEO_PIPELINE="video_pipeline",a.EXTERNAL_API="external_api",a.PARSER="parser",a.DOM="dom",a.WTF="wtf",a.FATAL="fatal",a))(Ep||{});var{NativeAbortSignal:Gy,NativeAbortController:By}=function(e){return{NativeAbortSignal:e.AbortSignal,NativeAbortController:e.AbortController}}(typeof self!="undefined"?self:global);function ko(e){let r;try{r=new Event("abort")}catch(t){typeof document!="undefined"?document.createEvent?(r=document.createEvent("Event"),r.initEvent("abort",!1,!1)):(r=document.createEventObject(),r.type="abort"):r={type:"abort",bubbles:!1,cancelable:!1}}return r.reason=e,r}function Mo(e){if(e===void 0)if(typeof document=="undefined")e=new Error("This operation was aborted"),e.name="AbortError";else try{e=new DOMException("signal is aborted without reason"),Object.defineProperty(e,"name",{value:"AbortError"})}catch(r){e=new Error("This operation was aborted"),e.name="AbortError"}return e}var Xe=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(a){Promise.resolve().then(()=>{throw a})}u.options&&u.options.once&&this.removeEventListener(r.type,u.callback)}return!r.defaultPrevented}},ae=class extends Xe{constructor(){super(),this.listeners||Xe.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)}throwIfAborted(){let{aborted:r,reason:t="Aborted"}=this;if(r)throw t}static timeout(r){let t=new Y;return setTimeout(()=>t.abort(new DOMException(`This signal is timeout in ${r}ms`,"TimeoutError")),r),t.signal}static any(r){let t=new Y;function n(){t.abort(this.reason),i()}function i(){for(let o of r)o.removeEventListener("abort",n)}for(let o of r)if(o.aborted){t.abort(o.reason);break}else o.addEventListener("abort",n);return t.signal}},Y=class{constructor(){Object.defineProperty(this,"signal",{value:new ae,writable:!0,configurable:!0})}abort(r){let t=Mo(r),n=ko(t);this.signal.reason=t,this.signal.dispatchEvent(n)}toString(){return"[object AbortController]"}};typeof Symbol!="undefined"&&Symbol.toStringTag&&(Y.prototype[Symbol.toStringTag]="AbortController",ae.prototype[Symbol.toStringTag]="AbortSignal");function Je(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 ft(e){typeof e=="function"&&(e={fetch:e});let{fetch:r,Request:t=r.Request,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:i=!1}=e;if(!Je({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(p,d){let c;d&&d.signal&&(c=d.signal,delete d.signal);let b=new t(p,d);return c&&Object.defineProperty(b,"signal",{writable:!1,enumerable:!1,configurable:!0,value:c}),b},o.prototype=t.prototype);let u=r;return{fetch:(l,p)=>{let d=o&&o.prototype.isPrototypeOf(l)?l.signal:p?p.signal:void 0;if(d){let c;try{c=new DOMException("Aborted","AbortError")}catch(v){c=new Error("Aborted"),c.name="AbortError"}if(d.aborted)return Promise.reject(c);let b=new Promise((v,T)=>{d.addEventListener("abort",()=>T(c),{once:!0})});return p&&p.signal&&delete p.signal,Promise.race([b,u(l,p)])}return u(l,p)},Request:o}}var wp=()=>"fetch"in window,ye=wp()&&Je({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}),Vo=ye?ft({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}):void 0,Fo=ye?Vo.fetch:window.fetch,Zy=ye?Vo.Request:window.Request,eh=ye?Y:window.AbortController,rh=ye?ae:window.AbortSignal;var ga=ue(tt(),1),Ia=ue(ha(),1);var Bd=(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))(Bd||{}),Qd="vk.com",Fh=(e,r,t)=>J(null,null,function*(){let n=new URL(`https://${Qd}/js/lang-pack.js`);n.searchParams.set("format","json"),n.searchParams.set("name",r),e!==void 0&&n.searchParams.set("lang",e);let o=yield(yield Fo(n.toString())).json();return zd(o,t)}),zd=(e,r)=>(0,Ia.default)((0,ga.default)(e.keys).map(([t,n])=>[t.substring(`${r}_`.length),Kd(n)])),Kd=e=>Array.isArray(e)?e[0]:e;var Wd=(t=>(t.RU="ru",t.EN="en",t))(Wd||{});var $d={UI:"__vkVideoPlayer",CORE:"__vkVideoCore"},Yd=(()=>{let e=0;return()=>{let r=e;return e=(e+1)%Number.MAX_SAFE_INTEGER,r}})(),Oa=class{constructor(r){this.id=Yd();this.type=r,this.initWindowObjects()}getWindowObject(){var t,n;let r=this.key();return(n=(t=window[r])==null?void 0:t[this.id])!=null?n:{}}initWindowObjects(){let r=this.key();window[r]||(window[r]={}),window[r][this.id]={}}expose(r){Object.assign(this.getWindowObject(),r)}destroy(){let r=this.key();window&&window[r]&&window[r][this.id]&&(delete window[r][this.id],Object.keys(window[r]).length||delete window[r])}key(){let{type:r}=this;return $d[r]}};var Lt={};Dt(Lt,{create:()=>Hd,destroy:()=>Xd,push:()=>Jd,subscribe:()=>Zd});var Oe=new Map,Hd=(e,r)=>Oe.set(e,r!=null?r:[]),Xd=e=>Oe.delete(e),Jd=(e,r)=>{let t=Oe.get(e);t&&(typeof t=="function"?t(r):t.push(r))},Zd=(e,r)=>{let t=Oe.get(e);if(t){if(t&&Array.isArray(t))for(let n of t)r(n);Oe.set(e,r)}};export{Ep as ErrorCategory,Wd as InterfaceLanguage,Oa as InternalsExposure,pr as Logger,f as Observable,U as Subject,E as Subscription,Ye as SubscriptionRemovable,Hr as TracerFactory,Na as VERSION,Bd as VKNumericLanguage,ze as ValueSubject,zr as VideoQuality,Ga as abortable,Da as addScript,gc as areQualitiesExact,Fa as assertEmptyArray,j as assertNever,ka as assertNonNullable,Va as assertNotEmptyArray,Ma as assertNullable,Ic as assertQualityIsExact,To as buffer,ja as checkNever,Sc as clearVideoElement,xc as cloneDeep,De as cloneDeepWith,vo as combine,rm as createURL,yo as debounce,$r as debounceFn,fc as detectEmbed,Lt as devNull,Oc as fillWithDefault,go as filter,_o as filterChanged,Ue as flattenObject,pp as fromEvent,Ba as getExponentialDelay,mc as getHighestQuality,Rc as getTraceSubscriptionMethod,lp as interval,dc as isHigher,bc as isHigherOrEqual,qc as isIntersecting,Wr as isInvariantQuality,Kr as isLower,vc as isLowerOrEqual,Z as isNonNullable,le as isNullable,Zv as isValidURL,Fh as loadVKLangPack,He as map,Ao as mapTo,mo as merge,z as noop,Ua as now,cp as observableFrom,wc as observeElementSize,Lo as once,Co as pairwise,dr as safeStorage,jo as skip,No as tap,ho as throttle,Yr as throttleFn,Fv as timeCodeToString,up as timeout,Tc as videoHeightToQuality,hc as videoQualityToHeight,yc as videoSizeToQuality};