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

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