@vkontakte/videoplayer-shared 1.0.50-dev.d9acbe42.0 → 1.0.50-dev.e0ca2fd5.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 +3 -3
- package/es2015.esm.js +3 -3
- package/es2018.cjs.js +3 -3
- package/es2018.esm.js +3 -3
- package/esnext.cjs.js +3 -3
- package/esnext.esm.js +3 -3
- package/evergreen.esm.js +3 -3
- package/package.json +1 -1
package/esnext.cjs.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vkontakte/videoplayer-shared v1.0.50-dev.
|
|
3
|
-
* Mon, 02 Dec 2024
|
|
2
|
+
* @vkontakte/videoplayer-shared v1.0.50-dev.e0ca2fd5.0
|
|
3
|
+
* Mon, 02 Dec 2024 09:23:33 GMT
|
|
4
4
|
* https://st.mycdn.me/static/vkontakte-videoplayer/1-0-50/doc/
|
|
5
5
|
*/
|
|
6
|
-
"use strict";var ks=Object.create;var Oe=Object.defineProperty;var Ms=Object.getOwnPropertyDescriptor;var Ns=Object.getOwnPropertyNames;var Vs=Object.getPrototypeOf,Ds=Object.prototype.hasOwnProperty;var o=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),Vt=(e,r)=>{for(var t in r)Oe(e,t,{get:r[t],enumerable:!0})},Dt=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of Ns(r))!Ds.call(e,i)&&i!==t&&Oe(e,i,{get:()=>r[i],enumerable:!(n=Ms(r,i))||n.enumerable});return e};var xe=(e,r,t)=>(t=e!=null?ks(Vs(e)):{},Dt(r||!e||!e.__esModule?Oe(t,"default",{value:e,enumerable:!0}):t,e)),Fs=e=>Dt(Oe({},"__esModule",{value:!0}),e);var x=o((sr,Yt)=>{"use strict";var te=function(e){return e&&e.Math===Math&&e};Yt.exports=te(typeof globalThis=="object"&&globalThis)||te(typeof window=="object"&&window)||te(typeof self=="object"&&self)||te(typeof global=="object"&&global)||te(typeof sr=="object"&&sr)||function(){return this}()||Function("return this")()});var E=o(($v,Ht)=>{"use strict";Ht.exports=function(e){try{return!!e()}catch{return!0}}});var ne=o((Wv,Xt)=>{"use strict";var Us=E();Xt.exports=!Us(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var tn=o((Kv,rn)=>{"use strict";var Gs=ne(),en=Function.prototype,Jt=en.apply,Zt=en.call;rn.exports=typeof Reflect=="object"&&Reflect.apply||(Gs?Zt.bind(Jt):function(){return Zt.apply(Jt,arguments)})});var C=o((zv,an)=>{"use strict";var nn=ne(),on=Function.prototype,ur=on.call,Bs=nn&&on.bind.bind(ur,ur);an.exports=nn?Bs:function(e){return function(){return ur.apply(e,arguments)}}});var Re=o((Yv,un)=>{"use strict";var sn=C(),Qs=sn({}.toString),$s=sn("".slice);un.exports=function(e){return $s(Qs(e),8,-1)}});var cr=o((Hv,cn)=>{"use strict";var Ws=Re(),Ks=C();cn.exports=function(e){if(Ws(e)==="Function")return Ks(e)}});var w=o((Xv,ln)=>{"use strict";var lr=typeof document=="object"&&document.all;ln.exports=typeof lr>"u"&&lr!==void 0?function(e){return typeof e=="function"||e===lr}:function(e){return typeof e=="function"}});var R=o((Jv,pn)=>{"use strict";var zs=E();pn.exports=!zs(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var D=o((Zv,fn)=>{"use strict";var Ys=ne(),Pe=Function.prototype.call;fn.exports=Ys?Pe.bind(Pe):function(){return Pe.apply(Pe,arguments)}});var pr=o(dn=>{"use strict";var vn={}.propertyIsEnumerable,bn=Object.getOwnPropertyDescriptor,Hs=bn&&!vn.call({1:2},1);dn.f=Hs?function(r){var t=bn(this,r);return!!t&&t.enumerable}:vn});var ie=o((rb,mn)=>{"use strict";mn.exports=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}}});var hn=o((tb,Tn)=>{"use strict";var Xs=C(),Js=E(),Zs=Re(),fr=Object,eu=Xs("".split);Tn.exports=Js(function(){return!fr("z").propertyIsEnumerable(0)})?function(e){return Zs(e)==="String"?eu(e,""):fr(e)}:fr});var _e=o((nb,yn)=>{"use strict";yn.exports=function(e){return e==null}});var Ae=o((ib,gn)=>{"use strict";var ru=_e(),tu=TypeError;gn.exports=function(e){if(ru(e))throw new tu("Can't call method on "+e);return e}});var B=o((ob,In)=>{"use strict";var nu=hn(),iu=Ae();In.exports=function(e){return nu(iu(e))}});var j=o((ab,On)=>{"use strict";var ou=w();On.exports=function(e){return typeof e=="object"?e!==null:ou(e)}});var oe=o((sb,xn)=>{"use strict";xn.exports={}});var Ce=o((ub,En)=>{"use strict";var vr=oe(),br=x(),au=w(),wn=function(e){return au(e)?e:void 0};En.exports=function(e,r){return arguments.length<2?wn(vr[e])||wn(br[e]):vr[e]&&vr[e][r]||br[e]&&br[e][r]}});var dr=o((cb,Sn)=>{"use strict";var su=C();Sn.exports=su({}.isPrototypeOf)});var _n=o((lb,Pn)=>{"use strict";var uu=x(),qn=uu.navigator,Rn=qn&&qn.userAgent;Pn.exports=Rn?String(Rn):""});var Nn=o((pb,Mn)=>{"use strict";var kn=x(),mr=_n(),An=kn.process,Cn=kn.Deno,Ln=An&&An.versions||Cn&&Cn.version,jn=Ln&&Ln.v8,P,Le;jn&&(P=jn.split("."),Le=P[0]>0&&P[0]<4?1:+(P[0]+P[1]));!Le&&mr&&(P=mr.match(/Edge\/(\d+)/),(!P||P[1]>=74)&&(P=mr.match(/Chrome\/(\d+)/),P&&(Le=+P[1])));Mn.exports=Le});var Tr=o((fb,Dn)=>{"use strict";var Vn=Nn(),cu=E(),lu=x(),pu=lu.String;Dn.exports=!!Object.getOwnPropertySymbols&&!cu(function(){var e=Symbol("symbol detection");return!pu(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Vn&&Vn<41})});var hr=o((vb,Fn)=>{"use strict";var fu=Tr();Fn.exports=fu&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var yr=o((bb,Un)=>{"use strict";var vu=Ce(),bu=w(),du=dr(),mu=hr(),Tu=Object;Un.exports=mu?function(e){return typeof e=="symbol"}:function(e){var r=vu("Symbol");return bu(r)&&du(r.prototype,Tu(e))}});var je=o((db,Gn)=>{"use strict";var hu=String;Gn.exports=function(e){try{return hu(e)}catch{return"Object"}}});var ae=o((mb,Bn)=>{"use strict";var yu=w(),gu=je(),Iu=TypeError;Bn.exports=function(e){if(yu(e))return e;throw new Iu(gu(e)+" is not a function")}});var ke=o((Tb,Qn)=>{"use strict";var Ou=ae(),xu=_e();Qn.exports=function(e,r){var t=e[r];return xu(t)?void 0:Ou(t)}});var Wn=o((hb,$n)=>{"use strict";var gr=D(),Ir=w(),Or=j(),wu=TypeError;$n.exports=function(e,r){var t,n;if(r==="string"&&Ir(t=e.toString)&&!Or(n=gr(t,e))||Ir(t=e.valueOf)&&!Or(n=gr(t,e))||r!=="string"&&Ir(t=e.toString)&&!Or(n=gr(t,e)))return n;throw new wu("Can't convert object to primitive value")}});var se=o((yb,Kn)=>{"use strict";Kn.exports=!0});var Hn=o((gb,Yn)=>{"use strict";var zn=x(),Eu=Object.defineProperty;Yn.exports=function(e,r){try{Eu(zn,e,{value:r,configurable:!0,writable:!0})}catch{zn[e]=r}return r}});var Me=o((Ib,Zn)=>{"use strict";var Su=se(),qu=x(),Ru=Hn(),Xn="__core-js_shared__",Jn=Zn.exports=qu[Xn]||Ru(Xn,{});(Jn.versions||(Jn.versions=[])).push({version:"3.38.0",mode:Su?"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 xr=o((Ob,ri)=>{"use strict";var ei=Me();ri.exports=function(e,r){return ei[e]||(ei[e]=r||{})}});var wr=o((xb,ti)=>{"use strict";var Pu=Ae(),_u=Object;ti.exports=function(e){return _u(Pu(e))}});var k=o((wb,ni)=>{"use strict";var Au=C(),Cu=wr(),Lu=Au({}.hasOwnProperty);ni.exports=Object.hasOwn||function(r,t){return Lu(Cu(r),t)}});var Er=o((Eb,ii)=>{"use strict";var ju=C(),ku=0,Mu=Math.random(),Nu=ju(1 .toString);ii.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Nu(++ku+Mu,36)}});var M=o((Sb,ai)=>{"use strict";var Vu=x(),Du=xr(),oi=k(),Fu=Er(),Uu=Tr(),Gu=hr(),z=Vu.Symbol,Sr=Du("wks"),Bu=Gu?z.for||z:z&&z.withoutSetter||Fu;ai.exports=function(e){return oi(Sr,e)||(Sr[e]=Uu&&oi(z,e)?z[e]:Bu("Symbol."+e)),Sr[e]}});var li=o((qb,ci)=>{"use strict";var Qu=D(),si=j(),ui=yr(),$u=ke(),Wu=Wn(),Ku=M(),zu=TypeError,Yu=Ku("toPrimitive");ci.exports=function(e,r){if(!si(e)||ui(e))return e;var t=$u(e,Yu),n;if(t){if(r===void 0&&(r="default"),n=Qu(t,e,r),!si(n)||ui(n))return n;throw new zu("Can't convert object to primitive value")}return r===void 0&&(r="number"),Wu(e,r)}});var qr=o((Rb,pi)=>{"use strict";var Hu=li(),Xu=yr();pi.exports=function(e){var r=Hu(e,"string");return Xu(r)?r:r+""}});var Pr=o((Pb,vi)=>{"use strict";var Ju=x(),fi=j(),Rr=Ju.document,Zu=fi(Rr)&&fi(Rr.createElement);vi.exports=function(e){return Zu?Rr.createElement(e):{}}});var _r=o((_b,bi)=>{"use strict";var ec=R(),rc=E(),tc=Pr();bi.exports=!ec&&!rc(function(){return Object.defineProperty(tc("div"),"a",{get:function(){return 7}}).a!==7})});var Ti=o(mi=>{"use strict";var nc=R(),ic=D(),oc=pr(),ac=ie(),sc=B(),uc=qr(),cc=k(),lc=_r(),di=Object.getOwnPropertyDescriptor;mi.f=nc?di:function(r,t){if(r=sc(r),t=uc(t),lc)try{return di(r,t)}catch{}if(cc(r,t))return ac(!ic(oc.f,r,t),r[t])}});var yi=o((Cb,hi)=>{"use strict";var pc=E(),fc=w(),vc=/#|\.prototype\./,ue=function(e,r){var t=dc[bc(e)];return t===Tc?!0:t===mc?!1:fc(r)?pc(r):!!r},bc=ue.normalize=function(e){return String(e).replace(vc,".").toLowerCase()},dc=ue.data={},mc=ue.NATIVE="N",Tc=ue.POLYFILL="P";hi.exports=ue});var Ar=o((Lb,Ii)=>{"use strict";var gi=cr(),hc=ae(),yc=ne(),gc=gi(gi.bind);Ii.exports=function(e,r){return hc(e),r===void 0?e:yc?gc(e,r):function(){return e.apply(r,arguments)}}});var Cr=o((jb,Oi)=>{"use strict";var Ic=R(),Oc=E();Oi.exports=Ic&&Oc(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var Q=o((kb,xi)=>{"use strict";var xc=j(),wc=String,Ec=TypeError;xi.exports=function(e){if(xc(e))return e;throw new Ec(wc(e)+" is not an object")}});var Y=o(Ei=>{"use strict";var Sc=R(),qc=_r(),Rc=Cr(),Ne=Q(),wi=qr(),Pc=TypeError,Lr=Object.defineProperty,_c=Object.getOwnPropertyDescriptor,jr="enumerable",kr="configurable",Mr="writable";Ei.f=Sc?Rc?function(r,t,n){if(Ne(r),t=wi(t),Ne(n),typeof r=="function"&&t==="prototype"&&"value"in n&&Mr in n&&!n[Mr]){var i=_c(r,t);i&&i[Mr]&&(r[t]=n.value,n={configurable:kr in n?n[kr]:i[kr],enumerable:jr in n?n[jr]:i[jr],writable:!1})}return Lr(r,t,n)}:Lr:function(r,t,n){if(Ne(r),t=wi(t),Ne(n),qc)try{return Lr(r,t,n)}catch{}if("get"in n||"set"in n)throw new Pc("Accessors not supported");return"value"in n&&(r[t]=n.value),r}});var H=o((Nb,Si)=>{"use strict";var Ac=R(),Cc=Y(),Lc=ie();Si.exports=Ac?function(e,r,t){return Cc.f(e,r,Lc(1,t))}:function(e,r,t){return e[r]=t,e}});var le=o((Vb,Ri)=>{"use strict";var ce=x(),jc=tn(),kc=cr(),Mc=w(),Nc=Ti().f,Vc=yi(),X=oe(),Dc=Ar(),J=H(),qi=k();Me();var Fc=function(e){var r=function(t,n,i){if(this instanceof r){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,i)}return jc(e,this,arguments)};return r.prototype=e.prototype,r};Ri.exports=function(e,r){var t=e.target,n=e.global,i=e.stat,a=e.proto,s=n?ce:i?ce[t]:ce[t]&&ce[t].prototype,u=n?X:X[t]||J(X,t,{})[t],p=u.prototype,l,v,c,b,d,T,h,I,y;for(b in r)l=Vc(n?b:t+(i?".":"#")+b,e.forced),v=!l&&s&&qi(s,b),T=u[b],v&&(e.dontCallGetSet?(y=Nc(s,b),h=y&&y.value):h=s[b]),d=v&&h?h:r[b],!(!l&&!a&&typeof T==typeof d)&&(e.bind&&v?I=Dc(d,ce):e.wrap&&v?I=Fc(d):a&&Mc(d)?I=kc(d):I=d,(e.sham||d&&d.sham||T&&T.sham)&&J(I,"sham",!0),J(u,b,I),a&&(c=t+"Prototype",qi(X,c)||J(X,c,{}),J(X[c],b,d),e.real&&p&&(l||!p[b])&&J(p,b,d)))}});var _i=o((Db,Pi)=>{"use strict";var Uc=Math.ceil,Gc=Math.floor;Pi.exports=Math.trunc||function(r){var t=+r;return(t>0?Gc:Uc)(t)}});var Nr=o((Fb,Ai)=>{"use strict";var Bc=_i();Ai.exports=function(e){var r=+e;return r!==r||r===0?0:Bc(r)}});var Li=o((Ub,Ci)=>{"use strict";var Qc=Nr(),$c=Math.max,Wc=Math.min;Ci.exports=function(e,r){var t=Qc(e);return t<0?$c(t+r,0):Wc(t,r)}});var ki=o((Gb,ji)=>{"use strict";var Kc=Nr(),zc=Math.min;ji.exports=function(e){var r=Kc(e);return r>0?zc(r,9007199254740991):0}});var Vr=o((Bb,Mi)=>{"use strict";var Yc=ki();Mi.exports=function(e){return Yc(e.length)}});var Dr=o((Qb,Vi)=>{"use strict";var Hc=B(),Xc=Li(),Jc=Vr(),Ni=function(e){return function(r,t,n){var i=Hc(r),a=Jc(i);if(a===0)return!e&&-1;var s=Xc(n,a),u;if(e&&t!==t){for(;a>s;)if(u=i[s++],u!==u)return!0}else for(;a>s;s++)if((e||s in i)&&i[s]===t)return e||s||0;return!e&&-1}};Vi.exports={includes:Ni(!0),indexOf:Ni(!1)}});var Fr=o(($b,Di)=>{"use strict";Di.exports=function(){}});var Fi=o(()=>{"use strict";var Zc=le(),el=Dr().includes,rl=E(),tl=Fr(),nl=rl(function(){return!Array(1).includes()});Zc({target:"Array",proto:!0,forced:nl},{includes:function(r){return el(this,r,arguments.length>1?arguments[1]:void 0)}});tl("includes")});var Gi=o((zb,Ui)=>{"use strict";var il=Ce();Ui.exports=il});var Qi=o((Yb,Bi)=>{"use strict";Fi();var ol=Gi();Bi.exports=ol("Array","includes")});var Wi=o((Hb,$i)=>{"use strict";var al=Qi();$i.exports=al});var zi=o((Xb,Ki)=>{"use strict";var sl=Wi();Ki.exports=sl});var Be=o((im,mo)=>{"use strict";var hl=xr(),yl=Er(),bo=hl("keys");mo.exports=function(e){return bo[e]||(bo[e]=yl(e))}});var ho=o((om,To)=>{"use strict";var gl=E();To.exports=!gl(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var Qe=o((am,go)=>{"use strict";var Il=k(),Ol=w(),xl=wr(),wl=Be(),El=ho(),yo=wl("IE_PROTO"),$r=Object,Sl=$r.prototype;go.exports=El?$r.getPrototypeOf:function(e){var r=xl(e);if(Il(r,yo))return r[yo];var t=r.constructor;return Ol(t)&&r instanceof t?t.prototype:r instanceof $r?Sl:null}});var $e=o((sm,Io)=>{"use strict";Io.exports={}});var wo=o((um,xo)=>{"use strict";var ql=C(),Wr=k(),Rl=B(),Pl=Dr().indexOf,_l=$e(),Oo=ql([].push);xo.exports=function(e,r){var t=Rl(e),n=0,i=[],a;for(a in t)!Wr(_l,a)&&Wr(t,a)&&Oo(i,a);for(;r.length>n;)Wr(t,a=r[n++])&&(~Pl(i,a)||Oo(i,a));return i}});var Kr=o((cm,Eo)=>{"use strict";Eo.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var zr=o((lm,So)=>{"use strict";var Al=wo(),Cl=Kr();So.exports=Object.keys||function(r){return Al(r,Cl)}});var Co=o((pm,Ao)=>{"use strict";var Ro=R(),Ll=E(),Po=C(),jl=Qe(),kl=zr(),Ml=B(),Nl=pr().f,_o=Po(Nl),Vl=Po([].push),Dl=Ro&&Ll(function(){var e=Object.create(null);return e[2]=2,!_o(e,2)}),qo=function(e){return function(r){for(var t=Ml(r),n=kl(t),i=Dl&&jl(t)===null,a=n.length,s=0,u=[],p;a>s;)p=n[s++],(!Ro||(i?p in t:_o(t,p)))&&Vl(u,e?[p,t[p]]:t[p]);return u}};Ao.exports={entries:qo(!0),values:qo(!1)}});var Lo=o(()=>{"use strict";var Fl=le(),Ul=Co().entries;Fl({target:"Object",stat:!0},{entries:function(r){return Ul(r)}})});var ko=o((bm,jo)=>{"use strict";Lo();var Gl=oe();jo.exports=Gl.Object.entries});var No=o((dm,Mo)=>{"use strict";var Bl=ko();Mo.exports=Bl});var Yr=o((mm,Vo)=>{"use strict";var Ql=No();Vo.exports=Ql});var W=o((CT,zo)=>{"use strict";zo.exports={}});var Xo=o((LT,Ho)=>{"use strict";var Kl=x(),zl=w(),Yo=Kl.WeakMap;Ho.exports=zl(Yo)&&/native code/.test(String(Yo))});var ra=o((jT,ea)=>{"use strict";var Yl=Xo(),Zo=x(),Hl=j(),Xl=H(),mt=k(),Tt=Me(),Jl=Be(),Zl=$e(),Jo="Object already initialized",ht=Zo.TypeError,ep=Zo.WeakMap,ze,Te,Ye,rp=function(e){return Ye(e)?Te(e):ze(e,{})},tp=function(e){return function(r){var t;if(!Hl(r)||(t=Te(r)).type!==e)throw new ht("Incompatible receiver, "+e+" required");return t}};Yl||Tt.state?(_=Tt.state||(Tt.state=new ep),_.get=_.get,_.has=_.has,_.set=_.set,ze=function(e,r){if(_.has(e))throw new ht(Jo);return r.facade=e,_.set(e,r),r},Te=function(e){return _.get(e)||{}},Ye=function(e){return _.has(e)}):(K=Jl("state"),Zl[K]=!0,ze=function(e,r){if(mt(e,K))throw new ht(Jo);return r.facade=e,Xl(e,K,r),r},Te=function(e){return mt(e,K)?e[K]:{}},Ye=function(e){return mt(e,K)});var _,K;ea.exports={set:ze,get:Te,has:Ye,enforce:rp,getterFor:tp}});var ia=o((kT,na)=>{"use strict";var yt=R(),np=k(),ta=Function.prototype,ip=yt&&Object.getOwnPropertyDescriptor,gt=np(ta,"name"),op=gt&&function(){}.name==="something",ap=gt&&(!yt||yt&&ip(ta,"name").configurable);na.exports={EXISTS:gt,PROPER:op,CONFIGURABLE:ap}});var aa=o(oa=>{"use strict";var sp=R(),up=Cr(),cp=Y(),lp=Q(),pp=B(),fp=zr();oa.f=sp&&!up?Object.defineProperties:function(r,t){lp(r);for(var n=pp(t),i=fp(t),a=i.length,s=0,u;a>s;)cp.f(r,u=i[s++],n[u]);return r}});var ua=o((NT,sa)=>{"use strict";var vp=Ce();sa.exports=vp("document","documentElement")});var wt=o((VT,da)=>{"use strict";var bp=Q(),dp=aa(),ca=Kr(),mp=$e(),Tp=ua(),hp=Pr(),yp=Be(),la=">",pa="<",Ot="prototype",xt="script",va=yp("IE_PROTO"),It=function(){},ba=function(e){return pa+xt+la+e+pa+"/"+xt+la},fa=function(e){e.write(ba("")),e.close();var r=e.parentWindow.Object;return e=null,r},gp=function(){var e=hp("iframe"),r="java"+xt+":",t;return e.style.display="none",Tp.appendChild(e),e.src=String(r),t=e.contentWindow.document,t.open(),t.write(ba("document.F=Object")),t.close(),t.F},He,Xe=function(){try{He=new ActiveXObject("htmlfile")}catch{}Xe=typeof document<"u"?document.domain&&He?fa(He):gp():fa(He);for(var e=ca.length;e--;)delete Xe[Ot][ca[e]];return Xe()};mp[va]=!0;da.exports=Object.create||function(r,t){var n;return r!==null?(It[Ot]=bp(r),n=new It,It[Ot]=null,n[va]=r):n=Xe(),t===void 0?n:dp.f(n,t)}});var Et=o((DT,ma)=>{"use strict";var Ip=H();ma.exports=function(e,r,t,n){return n&&n.enumerable?e[r]=t:Ip(e,r,t),e}});var Pt=o((FT,ya)=>{"use strict";var Op=E(),xp=w(),wp=j(),Ep=wt(),Ta=Qe(),Sp=Et(),qp=M(),Rp=se(),Rt=qp("iterator"),ha=!1,N,St,qt;[].keys&&(qt=[].keys(),"next"in qt?(St=Ta(Ta(qt)),St!==Object.prototype&&(N=St)):ha=!0);var Pp=!wp(N)||Op(function(){var e={};return N[Rt].call(e)!==e});Pp?N={}:Rp&&(N=Ep(N));xp(N[Rt])||Sp(N,Rt,function(){return this});ya.exports={IteratorPrototype:N,BUGGY_SAFARI_ITERATORS:ha}});var Je=o((UT,Ia)=>{"use strict";var _p=M(),Ap=_p("toStringTag"),ga={};ga[Ap]="z";Ia.exports=String(ga)==="[object z]"});var _t=o((GT,Oa)=>{"use strict";var Cp=Je(),Lp=w(),Ze=Re(),jp=M(),kp=jp("toStringTag"),Mp=Object,Np=Ze(function(){return arguments}())==="Arguments",Vp=function(e,r){try{return e[r]}catch{}};Oa.exports=Cp?Ze:function(e){var r,t,n;return e===void 0?"Undefined":e===null?"Null":typeof(t=Vp(r=Mp(e),kp))=="string"?t:Np?Ze(r):(n=Ze(r))==="Object"&&Lp(r.callee)?"Arguments":n}});var wa=o((BT,xa)=>{"use strict";var Dp=Je(),Fp=_t();xa.exports=Dp?{}.toString:function(){return"[object "+Fp(this)+"]"}});var er=o((QT,Sa)=>{"use strict";var Up=Je(),Gp=Y().f,Bp=H(),Qp=k(),$p=wa(),Wp=M(),Ea=Wp("toStringTag");Sa.exports=function(e,r,t,n){var i=t?e:e&&e.prototype;i&&(Qp(i,Ea)||Gp(i,Ea,{configurable:!0,value:r}),n&&!Up&&Bp(i,"toString",$p))}});var Ra=o(($T,qa)=>{"use strict";var Kp=Pt().IteratorPrototype,zp=wt(),Yp=ie(),Hp=er(),Xp=W(),Jp=function(){return this};qa.exports=function(e,r,t,n){var i=r+" Iterator";return e.prototype=zp(Kp,{next:Yp(+!n,t)}),Hp(e,i,!1,!0),Xp[i]=Jp,e}});var _a=o((WT,Pa)=>{"use strict";var Zp=C(),ef=ae();Pa.exports=function(e,r,t){try{return Zp(ef(Object.getOwnPropertyDescriptor(e,r)[t]))}catch{}}});var Ca=o((KT,Aa)=>{"use strict";var rf=j();Aa.exports=function(e){return rf(e)||e===null}});var ja=o((zT,La)=>{"use strict";var tf=Ca(),nf=String,of=TypeError;La.exports=function(e){if(tf(e))return e;throw new of("Can't set "+nf(e)+" as a prototype")}});var Ma=o((YT,ka)=>{"use strict";var af=_a(),sf=j(),uf=Ae(),cf=ja();ka.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,r={},t;try{t=af(Object.prototype,"__proto__","set"),t(r,[]),e=r instanceof Array}catch{}return function(i,a){return uf(i),cf(a),sf(i)&&(e?t(i,a):i.__proto__=a),i}}():void 0)});var Ka=o((HT,Wa)=>{"use strict";var lf=le(),pf=D(),rr=se(),Qa=ia(),ff=w(),vf=Ra(),Na=Qe(),Va=Ma(),bf=er(),df=H(),At=Et(),mf=M(),Da=W(),$a=Pt(),Tf=Qa.PROPER,hf=Qa.CONFIGURABLE,Fa=$a.IteratorPrototype,tr=$a.BUGGY_SAFARI_ITERATORS,he=mf("iterator"),Ua="keys",ye="values",Ga="entries",Ba=function(){return this};Wa.exports=function(e,r,t,n,i,a,s){vf(t,r,n);var u=function(y){if(y===i&&b)return b;if(!tr&&y&&y in v)return v[y];switch(y){case Ua:return function(){return new t(this,y)};case ye:return function(){return new t(this,y)};case Ga:return function(){return new t(this,y)}}return function(){return new t(this)}},p=r+" Iterator",l=!1,v=e.prototype,c=v[he]||v["@@iterator"]||i&&v[i],b=!tr&&c||u(i),d=r==="Array"&&v.entries||c,T,h,I;if(d&&(T=Na(d.call(new e)),T!==Object.prototype&&T.next&&(!rr&&Na(T)!==Fa&&(Va?Va(T,Fa):ff(T[he])||At(T,he,Ba)),bf(T,p,!0,!0),rr&&(Da[p]=Ba))),Tf&&i===ye&&c&&c.name!==ye&&(!rr&&hf?df(v,"name",ye):(l=!0,b=function(){return pf(c,this)})),i)if(h={values:u(ye),keys:a?b:u(Ua),entries:u(Ga)},s)for(I in h)(tr||l||!(I in v))&&At(v,I,h[I]);else lf({target:r,proto:!0,forced:tr||l},h);return(!rr||s)&&v[he]!==b&&At(v,he,b,{name:i}),Da[r]=b,h}});var Ya=o((XT,za)=>{"use strict";za.exports=function(e,r){return{value:e,done:r}}});var Lt=o((JT,es)=>{"use strict";var yf=B(),Ct=Fr(),Ha=W(),Ja=ra(),gf=Y().f,If=Ka(),nr=Ya(),Of=se(),xf=R(),Za="Array Iterator",wf=Ja.set,Ef=Ja.getterFor(Za);es.exports=If(Array,"Array",function(e,r){wf(this,{type:Za,target:yf(e),index:0,kind:r})},function(){var e=Ef(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 Xa=Ha.Arguments=Ha.Array;Ct("keys");Ct("values");Ct("entries");if(!Of&&xf&&Xa.name!=="values")try{gf(Xa,"name",{value:"values"})}catch{}});var ts=o((ZT,rs)=>{"use strict";var Sf=M(),qf=W(),Rf=Sf("iterator"),Pf=Array.prototype;rs.exports=function(e){return e!==void 0&&(qf.Array===e||Pf[Rf]===e)}});var jt=o((eh,is)=>{"use strict";var _f=_t(),ns=ke(),Af=_e(),Cf=W(),Lf=M(),jf=Lf("iterator");is.exports=function(e){if(!Af(e))return ns(e,jf)||ns(e,"@@iterator")||Cf[_f(e)]}});var as=o((rh,os)=>{"use strict";var kf=D(),Mf=ae(),Nf=Q(),Vf=je(),Df=jt(),Ff=TypeError;os.exports=function(e,r){var t=arguments.length<2?Df(e):r;if(Mf(t))return Nf(kf(t,e));throw new Ff(Vf(e)+" is not iterable")}});var cs=o((th,us)=>{"use strict";var Uf=D(),ss=Q(),Gf=ke();us.exports=function(e,r,t){var n,i;ss(e);try{if(n=Gf(e,"return"),!n){if(r==="throw")throw t;return t}n=Uf(n,e)}catch(a){i=!0,n=a}if(r==="throw")throw t;if(i)throw n;return ss(n),t}});var bs=o((nh,vs)=>{"use strict";var Bf=Ar(),Qf=D(),$f=Q(),Wf=je(),Kf=ts(),zf=Vr(),ls=dr(),Yf=as(),Hf=jt(),ps=cs(),Xf=TypeError,ir=function(e,r){this.stopped=e,this.result=r},fs=ir.prototype;vs.exports=function(e,r,t){var n=t&&t.that,i=!!(t&&t.AS_ENTRIES),a=!!(t&&t.IS_RECORD),s=!!(t&&t.IS_ITERATOR),u=!!(t&&t.INTERRUPTED),p=Bf(r,n),l,v,c,b,d,T,h,I=function(g){return l&&ps(l,"normal",g),new ir(!0,g)},y=function(g){return i?($f(g),u?p(g[0],g[1],I):p(g[0],g[1])):u?p(g,I):p(g)};if(a)l=e.iterator;else if(s)l=e;else{if(v=Hf(e),!v)throw new Xf(Wf(e)+" is not iterable");if(Kf(v)){for(c=0,b=zf(e);b>c;c++)if(d=y(e[c]),d&&ls(fs,d))return d;return new ir(!1)}l=Yf(e,v)}for(T=a?e.next:l.next;!(h=Qf(T,l)).done;){try{d=y(h.value)}catch(g){ps(l,"throw",g)}if(typeof d=="object"&&d&&ls(fs,d))return d}return new ir(!1)}});var ms=o((ih,ds)=>{"use strict";var Jf=R(),Zf=Y(),ev=ie();ds.exports=function(e,r,t){Jf?Zf.f(e,r,ev(0,t)):e[r]=t}});var Ts=o(()=>{"use strict";var rv=le(),tv=bs(),nv=ms();rv({target:"Object",stat:!0},{fromEntries:function(r){var t={};return tv(r,function(n,i){nv(t,n,i)},{AS_ENTRIES:!0}),t}})});var ys=o((sh,hs)=>{"use strict";Lt();Ts();var iv=oe();hs.exports=iv.Object.fromEntries});var Is=o((uh,gs)=>{"use strict";gs.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 xs=o(()=>{"use strict";Lt();var ov=Is(),av=x(),sv=er(),Os=W();for(or in ov)sv(av[or],or),Os[or]=Os.Array;var or});var Es=o((ph,ws)=>{"use strict";var uv=ys();xs();ws.exports=uv});var qs=o((fh,Ss)=>{"use strict";var cv=Es();Ss.exports=cv});var bv={};Vt(bv,{ErrorCategory:()=>$o,InterfaceLanguage:()=>As,Logger:()=>we,Observable:()=>f,Subject:()=>L,Subscription:()=>O,Tracer:()=>Ee,VERSION:()=>Ft,VKNumericLanguage:()=>_s,ValueSubject:()=>ve,VideoQuality:()=>Ve,abortable:()=>zt,addScript:()=>Wt,areQualitiesExact:()=>so,assertEmptyArray:()=>$t,assertNever:()=>A,assertNonNullable:()=>Gt,assertNotEmptyArray:()=>Qt,assertNullable:()=>Bt,assertQualityIsExact:()=>uo,buffer:()=>Zr,checkNever:()=>Ut,clearVideoElement:()=>fo,clientChecker:()=>Hi,cloneDeep:()=>lo,cloneDeepWith:()=>pe,combine:()=>Hr,createURL:()=>Tl,debounce:()=>rt,debounceFn:()=>Ue,detectEmbed:()=>Ji,fillWithDefault:()=>co,filter:()=>ot,filterChanged:()=>st,flattenObject:()=>fe,fromEvent:()=>Bo,getExponentialDelay:()=>Xi,getHighestQuality:()=>to,getTraceSubscriptionMethod:()=>vo,interval:()=>Uo,isHigher:()=>Zi,isHigherOrEqual:()=>eo,isInvariantQuality:()=>Fe,isLower:()=>De,isLowerOrEqual:()=>ro,isMobile:()=>Gr,isNonNullable:()=>G,isNullable:()=>qe,isValidURL:()=>ml,loadVKLangPack:()=>pv,map:()=>be,mapTo:()=>ct,merge:()=>Xr,noop:()=>V,now:()=>Kt,observableFrom:()=>Go,observeElementSize:()=>po,once:()=>lt,pairwise:()=>ft,safeStorage:()=>Qr,tap:()=>bt,throttle:()=>nt,throttleFn:()=>Ge,timeCodeToString:()=>bl,timeout:()=>Fo,videoHeightToQuality:()=>io,videoQualityToHeight:()=>ao,videoSizeToQuality:()=>oo});module.exports=Fs(bv);var Ft="1.0.50-dev.d9acbe42.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`)},Ut=e=>{};var V=()=>{};var f=class{constructor(r){r&&(this._subscribe=r)}subscribe(r,t){let n;t?typeof t=="function"?n={next:t,error:V}:n={next:s=>t.next(s),error:s=>t.error?.(s)}:n={next:V,error:V};let i=typeof r=="function"?{next:s=>{try{r(s)}catch(u){n.next(u)}},error:s=>n.next(s)}:{next:s=>r.next(s),error:s=>r.error?r.error(s):n.next(s)},a;try{a=this._subscribe(i)}catch(s){i.error?.(s)}return new O().add(()=>{switch(i.next=V,i.error=V,typeof a){case"function":a();return;case"object":a.unsubscribe();return;case"undefined":return;default:return A(a)}})}pipe(...r){return r.reduce((t,n)=>n(t),this)}_subscribe(r){}};var L=class extends f{constructor(){super();this.keyCounter=0;this.subscribers=new Map}next(t){this.subscribers.forEach(n=>n.next(t))}error(t){this.subscribers.forEach(n=>n.error?.(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 L;this.logs=[];this.log=r=>{let t={...r,timestamp:Date.now()};this.logs.push(t),this.log$.next(t)};this.getAllLogs=()=>this.logs}createCustomLog(r){return(...t)=>{let n;try{n=r(...t)}catch{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 U=require("@tracer/opentelemetry"),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 s=(0,U.initTracerOpenTelemetry)({serviceName:"videoplayer-sdk-web",appToken:"L9SBoka6ZWk4xPjaK7tmfSfYvMhcge7nvGDjpdMmscb",spanLimits:{attributeCountLimit:1/0,eventCountLimit:1/0,attributePerEventCountLimit:1/0}}).getProvider(),u=new U.TracerMemorySpanExporter,p=new U.TracerMemorySpanExporter;this.spanExporter=u,s.addSpanProcessor(new U.TracerAllSpansProcessor({startedSpansExporter:u,endedSpansExporter:p})),this.tracer=s.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,{...t,type:"log"})}error(r,t){this.span.addEvent(r,{...t,type:"error"})}critical(r,t){this.span.addEvent(r,{...t,type:"critical"})}static createRootTracer(r=!1){return r?new e({name:"Root"}):new 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(){return this.spanExporter?.getJsonData()}getTraceId(){return this.span.spanContext().traceId}};function Gt(e,r='Assertion "value is not nullable" failed'){if(e==null)throw new Error(r)}function Bt(e,r='Assertion "value is nullable" failed'){if(e!=null)throw new Error(r)}function G(e){return typeof e<"u"&&e!==null}function qe(e){return e==null}function Qt(e,r){if(!e?.length)throw new Error(r)}function $t(e,r){if(e?.length)throw new Error(r)}var Wt=(e,r,t)=>new Promise((n,i)=>{r.addEventListener("abort",()=>{u(),l.remove()});let a=()=>{u(),i()},s=()=>{u(),n()},u=()=>{p&&clearTimeout(p),l.removeEventListener("load",s),l.removeEventListener("error",a)},p;t&&(p=window.setTimeout(a,t));let l=document.createElement("script");l.addEventListener("load",s),l.addEventListener("error",a),l.src=e,document.head.appendChild(l)});var Kt=typeof window.performance?.now=="function"?()=>window.performance.now():()=>Date.now();var zt=(e,r)=>async(...t)=>{let n=r(...t),i=e.aborted,a;for(;!i&&!e.aborted;)try{let s=await n.next(a);i=s.done??!1,a=s.value}catch(s){await n.throw(s)}return a};var Yi=xe(zi(),1);var Gr=()=>/Mobile|mini|Fennec|Android|iP(ad|od|hone)/.test(navigator.appVersion??navigator.userAgent)||navigator?.userAgentData?.mobile,Ur=class{constructor(){this.detect()}get browser(){return this._currentBrowser}get device(){return this._currentDevice}get isTouch(){return this._maxTouchPoints>0}get isIOS(){return(0,Yi.default)(["iPhone","iPad","iPod"],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?.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(){let{userAgent:r,maxTouchPoints:t}=navigator;try{this._maxTouchPoints=t,this._isHdr=!!matchMedia("(dynamic-range: high)")?.matches}catch(n){console.error(n)}try{this._isMobile=Gr()}catch(n){console.error(n)}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,a=/chromium/i.test(r)?"Chromium":void 0,s=/firefox|fxios/i.test(r)?"Firefox":void 0,u=/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||s||p||l||i||a||u||"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,a=/ipod/i.test(r)?"iPod":void 0,s=/mac/i.test(r)?"Mac":void 0,u=/webOS|BlackBerry|IEMobile|Opera Mini/i.test(r)?"RestMobile":void 0;this._currentDevice=t||n||i||a||u||s||"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)}}},Hi=new Ur;var Xi=(e,{start:r=0,factor:t=2,max:n=1/0,min:i=r,random:a=0}={})=>{let s=r;return s*=t**e,s*=1+(Math.random()*a*2-a),s=Math.round(s),s=Math.min(s,n),s=Math.max(s,i),s};var Qr={};Vt(Qr,{clear:()=>vl,get:()=>cl,has:()=>pl,isPersistent:()=>ul,remove:()=>fl,set:()=>ll});var Z,$,Br=`vk-videoplayer-dummy-key-${Math.random()}`,ee=()=>{if($!==void 0)return $;try{localStorage.setItem(Br,"test"),localStorage.removeItem(Br),$=0}catch(e){if(e instanceof DOMException||e instanceof TypeError)try{sessionStorage.getItem(Br),$=1}catch(r){if(r instanceof DOMException||r instanceof TypeError)$=2;else throw r}else throw e}return $===2&&(Z=new Map),$},ul=()=>ee()===0,cl=e=>{let r=ee();switch(r){case 0:return localStorage.getItem(e)??void 0;case 1:return sessionStorage.getItem(e)??void 0;case 2:return Z?.get(e);default:A(r)}},ll=(e,r)=>{let t=ee();switch(t){case 0:try{localStorage.setItem(e,r)}catch(n){if(n instanceof DOMException)console.error(n);else throw n}break;case 1:try{sessionStorage.setItem(e,r)}catch(n){if(n instanceof DOMException)console.error(n);else throw n}break;case 2:return void Z?.set(e,r);default:A(t)}},pl=e=>{let r=ee();switch(r){case 0:return e in localStorage;case 1:return e in sessionStorage;case 2:return Z?.has(e)??!1;default:return A(r),!1}},fl=e=>{let r=ee();switch(r){case 0:return localStorage.removeItem(e);case 1:return sessionStorage.removeItem(e);case 2:return void Z?.delete(e);default:A(r)}},vl=()=>{let e=ee();switch(e){case 0:return localStorage.clear();case 1:return sessionStorage.clear();case 2:return Z?.clear();default:A(e)}};var Ji=()=>{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 Ve=(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))(Ve||{});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}},Zi=(e,r)=>S[e].height>S[r].height,eo=(e,r)=>S[e].height>=S[r].height,De=(e,r)=>S[e].height<S[r].height,ro=(e,r)=>S[e].height<=S[r].height,to=e=>e.sort((r,t)=>r===t?0:r==="Invariant quality"?1:t==="Invariant quality"?-1:De(r,t)?1:-1)[0],no=Object.keys(S).sort((e,r)=>De(e,r)?-1:1),io=(e,r=.02)=>[...no].find(n=>S[n].height*(1+r)>=e),oo=({width:e,height:r})=>{let t=Math.min(e,r),n=Math.max(e,r);return no.find(i=>{let a=S[i];return a.width>=n&&a.height>=t})},ao=e=>S[e].height,Fe=e=>e==="Invariant quality",so=e=>e.every(r=>!Fe(r));function uo(e){if(Fe(e))throw new Error("Expected exact quality")}var co=(e,r)=>{let t={};for(let n of Object.keys(r)){let i=r[n],a=e[n];Array.isArray(i)&&Array.isArray(a)?t[n]=a:typeof i=="object"&&typeof a=="object"?t[n]=co(a,i):t[n]=n in e?a:i}return t};var bl=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 Ue(e,r=0,t){let n,i,a,s,u,p,l=0,v=!1,c=!1,b=!0,d=!r&&r!==0&&typeof window.requestAnimationFrame=="function";t&&(v=!!t.leading,c="maxWait"in t,a=t?.maxWait?Math.max(+t?.maxWait||0,r):a,b="trailing"in t?!!t.trailing:b);function T(m){let q=n,F=i;return n=i=void 0,l=m,s=e.apply(F,q),s}function h(m,q){return d?(u&&window.cancelAnimationFrame(u),window.requestAnimationFrame(m)):setTimeout(m,q)}function I(m){if(d){window.cancelAnimationFrame(m);return}clearTimeout(m)}function y(m){return l=m,u=h(ge,r),v?T(m):s}function g(m){let q=m-p,F=m-l,Nt=r-q;return c?Math.min(Nt,a-F):Nt}function kt(m){let q=m-p,F=m-l;return p===void 0||q>=r||q<0||c&&F>=a}function ge(){let m=Date.now();if(kt(m))return Mt(m);u=h(ge,g(m))}function Mt(m){return u=void 0,b&&n?T(m):(n=i=void 0,s)}function Cs(){u!==void 0&&I(u),l=0,n=p=i=u=void 0}function Ls(){return u===void 0?s:Mt(Date.now())}function js(){return u!==void 0}function Ie(...m){let q=Date.now(),F=kt(q);if(n=m,i=this,p=q,F){if(u===void 0)return y(p);if(c)return u=h(ge,r),T(p)}return u===void 0&&(u=h(ge,r)),s}return Ie.cancel=Cs,Ie.flush=Ls,Ie.pending=js,Ie}var Ge=(e,r=0,t)=>Ue(e,r,{...{leading:!0,trailing:!0},...t,maxWait:r});var pe=(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]=pe(e[n],r):t[n]=e[n]}return t};var lo=e=>pe(e);var dl=300,po=(e,r=dl)=>new f(t=>{let{width:n,height:i}=e.getBoundingClientRect();if(t.next({width:n,height:i}),!window.ResizeObserver)return;let a=new ResizeObserver(Ge(s=>{let u=s[0];if(!u)return;let p,l;u.contentBoxSize&&u.contentBoxSize[0]?(l=u.contentBoxSize[0].blockSize,p=u.contentBoxSize[0].inlineSize):u.contentRect&&(p=u.contentRect.width,l=u.contentRect.height),G(p)&&G(l)&&t.next({width:p,height:l})},r));return a.observe(e),()=>a.disconnect()});var fe=(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 a=fe(e[i],r-1);for(let s in a)a.hasOwnProperty(s)&&(n[i+t+s]=a[s])}else n[i]=e[i];return n};var fo=e=>{e.removeAttribute("src"),e.load()};var ml=e=>{let r;try{r=new URL(e)}catch{return!1}return r.protocol==="https:"};var Tl=e=>{try{return new URL(e)}catch{return null}};var vo=e=>r=>t=>{let n=typeof t=="object";t==null||n&&!Object.keys(t).length||e(r,n?fe(t):{value:t})};var ve=class extends L{constructor(r){super(),this.value=r}next(r){super.next(this.value=r)}error(r){super.error(this.value=r)}getValue(){return this.value}_subscribe(r){let t=super._subscribe(r);return r.next(this.value),t}};var Do=xe(Yr(),1);function Hr(e){return new f(r=>{let t={},n=Object.keys(e).length,i=a=>s=>{a in t||n--,t[a]=s,n===0&&r.next(t)};return(0,Do.default)(Object,e).reduce((a,[s,u])=>a.add(u.subscribe(i(s))),new O)})}function Xr(...e){return new f(r=>e.reduce((t,n)=>t.add(n.subscribe(r)),new O))}var Fo=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 Uo=e=>new f(r=>{let t=window.setInterval(()=>r.next(),e);return()=>{t&&(window.clearInterval(t),t=void 0)}});var Go=e=>new f(r=>{e.forEach(t=>r.next(t))});var Bo=(e,r)=>new f(t=>{let n=i=>t.next(i);return e.addEventListener(r,n),()=>e.removeEventListener(r,n)});function Zr(e){return r=>new f(t=>r.subscribe(new Jr(t,e)))}var Jr=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){this.destination.error?.(r)}};var $l={leading:!1,trailing:!0};function rt(e,r=$l){return t=>new f(n=>t.subscribe(new et(n,e,r)))}var et=class{constructor(r,t,n){this.destination=r;this.time=t;this.config=n}next(r){this.lastValue=r,G(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){this.destination.error?.(r)}};var Wl={leading:!0,trailing:!1};function nt(e,r=Wl){return t=>new f(n=>t.subscribe(new tt(n,e,r)))}var tt=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){this.destination.error?.(r)}};function ot(e){return r=>new f(t=>r.subscribe(new it(t,e)))}var it=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){this.destination.error?.(r)}};function st(e=(r,t)=>r===t){return r=>new f(t=>r.subscribe(new at(t,e)))}var Qo={},at=class{constructor(r,t){this.destination=r;this.predicate=t;this.lastValue=Qo}next(r){let t;try{t=this.lastValue===Qo||!this.predicate(this.lastValue,r),this.lastValue=r}catch(n){throw this.error(n),n}t&&this.destination.next(r)}error(r){this.destination.error?.(r)}};function be(e){return r=>new f(t=>r.subscribe(new ut(t,e)))}var ut=class{constructor(r,t){this.destination=r;this.mapper=t}next(r){let t;try{t=this.mapper(r)}catch(n){throw this.error(n),n}this.destination.next(t)}error(r){this.destination.error?.(r)}};function ct(e){return be(()=>e)}function lt(){return e=>new f(r=>{let t=!1,n=!1,i=e.subscribe(a=>{t||(t=!0,r.next(a)),n&&i.unsubscribe()},a=>{t=!0,r.error?.(a),n&&i.unsubscribe()});return n=!0,t&&i.unsubscribe(),i})}function ft(){return e=>new f(r=>e.subscribe(new pt(r)))}var pt=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){this.destination.error?.(r)}};function bt(e){return r=>new f(t=>r.subscribe(new vt(t,e)))}var vt=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){this.destination.error?.(r)}};var $o=(u=>(u.NETWORK="network",u.VIDEO_PIPELINE="video_pipeline",u.EXTERNAL_API="external_api",u.PARSER="parser",u.DOM="dom",u.WTF="wtf",u.FATAL="fatal",u))($o||{});var We=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,a=n.length;i<a;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,a=n.length;i<a;i++){let s=n[i];try{s.callback.call(this,r)}catch(u){Promise.resolve().then(()=>{throw u})}s.options&&s.options.once&&this.removeEventListener(r.type,s.callback)}return!r.defaultPrevented}},re=class extends We{constructor(){super(),this.listeners||We.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)}},de=class{constructor(){Object.defineProperty(this,"signal",{value:new re,writable:!0,configurable:!0})}abort(r){let t;try{t=new Event("abort")}catch{typeof document<"u"?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>"u")n=new Error("This operation was aborted"),n.name="AbortError";else try{n=new DOMException("signal is aborted without reason")}catch{n=new Error("This operation was aborted"),n.name="AbortError"}this.signal.reason=n,this.signal.dispatchEvent(t)}toString(){return"[object AbortController]"}};typeof Symbol<"u"&&Symbol.toStringTag&&(de.prototype[Symbol.toStringTag]="AbortController",re.prototype[Symbol.toStringTag]="AbortSignal");function Ke(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 dt(e){typeof e=="function"&&(e={fetch:e});let{fetch:r,Request:t=r.Request,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:i=!1}=e;if(!Ke({fetch:r,Request:t,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:i}))return{fetch:r,Request:a};let a=t;(a&&!a.prototype.hasOwnProperty("signal")||i)&&(a=function(l,v){let c;v&&v.signal&&(c=v.signal,delete v.signal);let b=new t(l,v);return c&&Object.defineProperty(b,"signal",{writable:!1,enumerable:!1,configurable:!0,value:c}),b},a.prototype=t.prototype);let s=r;return{fetch:(p,l)=>{let v=a&&a.prototype.isPrototypeOf(p)?p.signal:l?l.signal:void 0;if(v){let c;try{c=new DOMException("Aborted","AbortError")}catch{c=new Error("Aborted"),c.name="AbortError"}if(v.aborted)return Promise.reject(c);let b=new Promise((d,T)=>{v.addEventListener("abort",()=>T(c),{once:!0})});return l&&l.signal&&delete l.signal,Promise.race([b,s(p,l)])}return s(p,l)},Request:a}}var me=Ke({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}),Wo=me?dt({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}):void 0,Ko=me?Wo.fetch:window.fetch,RT=me?Wo.Request:window.Request,PT=me?de:window.AbortController,_T=me?re:window.AbortSignal;var Rs=xe(Yr(),1),Ps=xe(qs(),1),_s=(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))(_s||{}),lv="vk.com",pv=async(e,r,t)=>{let n=new URL(`https://${lv}/js/lang-pack.js`);n.searchParams.set("format","json"),n.searchParams.set("name",r),e!==void 0&&n.searchParams.set("lang",e);let a=await(await Ko(n.toString())).json();return fv(a,t)},fv=(e,r)=>(0,Ps.default)(Object,(0,Rs.default)(Object,e.keys).map(([t,n])=>[t.substring(`${r}_`.length),vv(n)])),vv=e=>Array.isArray(e)?e[0]:e;var As=(t=>(t.RU="ru",t.EN="en",t))(As||{});
|
|
6
|
+
"use strict";var Ms=Object.create;var Oe=Object.defineProperty;var Ns=Object.getOwnPropertyDescriptor;var ks=Object.getOwnPropertyNames;var Vs=Object.getPrototypeOf,Ds=Object.prototype.hasOwnProperty;var o=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),Vt=(e,r)=>{for(var t in r)Oe(e,t,{get:r[t],enumerable:!0})},Dt=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of ks(r))!Ds.call(e,i)&&i!==t&&Oe(e,i,{get:()=>r[i],enumerable:!(n=Ns(r,i))||n.enumerable});return e};var xe=(e,r,t)=>(t=e!=null?Ms(Vs(e)):{},Dt(r||!e||!e.__esModule?Oe(t,"default",{value:e,enumerable:!0}):t,e)),Fs=e=>Dt(Oe({},"__esModule",{value:!0}),e);var x=o((sr,Yt)=>{"use strict";var te=function(e){return e&&e.Math===Math&&e};Yt.exports=te(typeof globalThis=="object"&&globalThis)||te(typeof window=="object"&&window)||te(typeof self=="object"&&self)||te(typeof global=="object"&&global)||te(typeof sr=="object"&&sr)||function(){return this}()||Function("return this")()});var E=o(($v,Ht)=>{"use strict";Ht.exports=function(e){try{return!!e()}catch{return!0}}});var ne=o((Wv,Xt)=>{"use strict";var Us=E();Xt.exports=!Us(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var tn=o((Kv,rn)=>{"use strict";var Gs=ne(),en=Function.prototype,Jt=en.apply,Zt=en.call;rn.exports=typeof Reflect=="object"&&Reflect.apply||(Gs?Zt.bind(Jt):function(){return Zt.apply(Jt,arguments)})});var C=o((zv,an)=>{"use strict";var nn=ne(),on=Function.prototype,ur=on.call,Bs=nn&&on.bind.bind(ur,ur);an.exports=nn?Bs:function(e){return function(){return ur.apply(e,arguments)}}});var Re=o((Yv,un)=>{"use strict";var sn=C(),Qs=sn({}.toString),$s=sn("".slice);un.exports=function(e){return $s(Qs(e),8,-1)}});var cr=o((Hv,cn)=>{"use strict";var Ws=Re(),Ks=C();cn.exports=function(e){if(Ws(e)==="Function")return Ks(e)}});var w=o((Xv,ln)=>{"use strict";var lr=typeof document=="object"&&document.all;ln.exports=typeof lr>"u"&&lr!==void 0?function(e){return typeof e=="function"||e===lr}:function(e){return typeof e=="function"}});var R=o((Jv,pn)=>{"use strict";var zs=E();pn.exports=!zs(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var D=o((Zv,fn)=>{"use strict";var Ys=ne(),Pe=Function.prototype.call;fn.exports=Ys?Pe.bind(Pe):function(){return Pe.apply(Pe,arguments)}});var pr=o(dn=>{"use strict";var vn={}.propertyIsEnumerable,bn=Object.getOwnPropertyDescriptor,Hs=bn&&!vn.call({1:2},1);dn.f=Hs?function(r){var t=bn(this,r);return!!t&&t.enumerable}:vn});var ie=o((rb,mn)=>{"use strict";mn.exports=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}}});var hn=o((tb,Tn)=>{"use strict";var Xs=C(),Js=E(),Zs=Re(),fr=Object,eu=Xs("".split);Tn.exports=Js(function(){return!fr("z").propertyIsEnumerable(0)})?function(e){return Zs(e)==="String"?eu(e,""):fr(e)}:fr});var _e=o((nb,yn)=>{"use strict";yn.exports=function(e){return e==null}});var Ae=o((ib,gn)=>{"use strict";var ru=_e(),tu=TypeError;gn.exports=function(e){if(ru(e))throw new tu("Can't call method on "+e);return e}});var B=o((ob,In)=>{"use strict";var nu=hn(),iu=Ae();In.exports=function(e){return nu(iu(e))}});var j=o((ab,On)=>{"use strict";var ou=w();On.exports=function(e){return typeof e=="object"?e!==null:ou(e)}});var oe=o((sb,xn)=>{"use strict";xn.exports={}});var Ce=o((ub,En)=>{"use strict";var vr=oe(),br=x(),au=w(),wn=function(e){return au(e)?e:void 0};En.exports=function(e,r){return arguments.length<2?wn(vr[e])||wn(br[e]):vr[e]&&vr[e][r]||br[e]&&br[e][r]}});var dr=o((cb,Sn)=>{"use strict";var su=C();Sn.exports=su({}.isPrototypeOf)});var _n=o((lb,Pn)=>{"use strict";var uu=x(),qn=uu.navigator,Rn=qn&&qn.userAgent;Pn.exports=Rn?String(Rn):""});var kn=o((pb,Nn)=>{"use strict";var Mn=x(),mr=_n(),An=Mn.process,Cn=Mn.Deno,Ln=An&&An.versions||Cn&&Cn.version,jn=Ln&&Ln.v8,P,Le;jn&&(P=jn.split("."),Le=P[0]>0&&P[0]<4?1:+(P[0]+P[1]));!Le&&mr&&(P=mr.match(/Edge\/(\d+)/),(!P||P[1]>=74)&&(P=mr.match(/Chrome\/(\d+)/),P&&(Le=+P[1])));Nn.exports=Le});var Tr=o((fb,Dn)=>{"use strict";var Vn=kn(),cu=E(),lu=x(),pu=lu.String;Dn.exports=!!Object.getOwnPropertySymbols&&!cu(function(){var e=Symbol("symbol detection");return!pu(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Vn&&Vn<41})});var hr=o((vb,Fn)=>{"use strict";var fu=Tr();Fn.exports=fu&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var yr=o((bb,Un)=>{"use strict";var vu=Ce(),bu=w(),du=dr(),mu=hr(),Tu=Object;Un.exports=mu?function(e){return typeof e=="symbol"}:function(e){var r=vu("Symbol");return bu(r)&&du(r.prototype,Tu(e))}});var je=o((db,Gn)=>{"use strict";var hu=String;Gn.exports=function(e){try{return hu(e)}catch{return"Object"}}});var ae=o((mb,Bn)=>{"use strict";var yu=w(),gu=je(),Iu=TypeError;Bn.exports=function(e){if(yu(e))return e;throw new Iu(gu(e)+" is not a function")}});var Me=o((Tb,Qn)=>{"use strict";var Ou=ae(),xu=_e();Qn.exports=function(e,r){var t=e[r];return xu(t)?void 0:Ou(t)}});var Wn=o((hb,$n)=>{"use strict";var gr=D(),Ir=w(),Or=j(),wu=TypeError;$n.exports=function(e,r){var t,n;if(r==="string"&&Ir(t=e.toString)&&!Or(n=gr(t,e))||Ir(t=e.valueOf)&&!Or(n=gr(t,e))||r!=="string"&&Ir(t=e.toString)&&!Or(n=gr(t,e)))return n;throw new wu("Can't convert object to primitive value")}});var se=o((yb,Kn)=>{"use strict";Kn.exports=!0});var Hn=o((gb,Yn)=>{"use strict";var zn=x(),Eu=Object.defineProperty;Yn.exports=function(e,r){try{Eu(zn,e,{value:r,configurable:!0,writable:!0})}catch{zn[e]=r}return r}});var Ne=o((Ib,Zn)=>{"use strict";var Su=se(),qu=x(),Ru=Hn(),Xn="__core-js_shared__",Jn=Zn.exports=qu[Xn]||Ru(Xn,{});(Jn.versions||(Jn.versions=[])).push({version:"3.38.0",mode:Su?"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 xr=o((Ob,ri)=>{"use strict";var ei=Ne();ri.exports=function(e,r){return ei[e]||(ei[e]=r||{})}});var wr=o((xb,ti)=>{"use strict";var Pu=Ae(),_u=Object;ti.exports=function(e){return _u(Pu(e))}});var M=o((wb,ni)=>{"use strict";var Au=C(),Cu=wr(),Lu=Au({}.hasOwnProperty);ni.exports=Object.hasOwn||function(r,t){return Lu(Cu(r),t)}});var Er=o((Eb,ii)=>{"use strict";var ju=C(),Mu=0,Nu=Math.random(),ku=ju(1 .toString);ii.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+ku(++Mu+Nu,36)}});var N=o((Sb,ai)=>{"use strict";var Vu=x(),Du=xr(),oi=M(),Fu=Er(),Uu=Tr(),Gu=hr(),z=Vu.Symbol,Sr=Du("wks"),Bu=Gu?z.for||z:z&&z.withoutSetter||Fu;ai.exports=function(e){return oi(Sr,e)||(Sr[e]=Uu&&oi(z,e)?z[e]:Bu("Symbol."+e)),Sr[e]}});var li=o((qb,ci)=>{"use strict";var Qu=D(),si=j(),ui=yr(),$u=Me(),Wu=Wn(),Ku=N(),zu=TypeError,Yu=Ku("toPrimitive");ci.exports=function(e,r){if(!si(e)||ui(e))return e;var t=$u(e,Yu),n;if(t){if(r===void 0&&(r="default"),n=Qu(t,e,r),!si(n)||ui(n))return n;throw new zu("Can't convert object to primitive value")}return r===void 0&&(r="number"),Wu(e,r)}});var qr=o((Rb,pi)=>{"use strict";var Hu=li(),Xu=yr();pi.exports=function(e){var r=Hu(e,"string");return Xu(r)?r:r+""}});var Pr=o((Pb,vi)=>{"use strict";var Ju=x(),fi=j(),Rr=Ju.document,Zu=fi(Rr)&&fi(Rr.createElement);vi.exports=function(e){return Zu?Rr.createElement(e):{}}});var _r=o((_b,bi)=>{"use strict";var ec=R(),rc=E(),tc=Pr();bi.exports=!ec&&!rc(function(){return Object.defineProperty(tc("div"),"a",{get:function(){return 7}}).a!==7})});var Ti=o(mi=>{"use strict";var nc=R(),ic=D(),oc=pr(),ac=ie(),sc=B(),uc=qr(),cc=M(),lc=_r(),di=Object.getOwnPropertyDescriptor;mi.f=nc?di:function(r,t){if(r=sc(r),t=uc(t),lc)try{return di(r,t)}catch{}if(cc(r,t))return ac(!ic(oc.f,r,t),r[t])}});var yi=o((Cb,hi)=>{"use strict";var pc=E(),fc=w(),vc=/#|\.prototype\./,ue=function(e,r){var t=dc[bc(e)];return t===Tc?!0:t===mc?!1:fc(r)?pc(r):!!r},bc=ue.normalize=function(e){return String(e).replace(vc,".").toLowerCase()},dc=ue.data={},mc=ue.NATIVE="N",Tc=ue.POLYFILL="P";hi.exports=ue});var Ar=o((Lb,Ii)=>{"use strict";var gi=cr(),hc=ae(),yc=ne(),gc=gi(gi.bind);Ii.exports=function(e,r){return hc(e),r===void 0?e:yc?gc(e,r):function(){return e.apply(r,arguments)}}});var Cr=o((jb,Oi)=>{"use strict";var Ic=R(),Oc=E();Oi.exports=Ic&&Oc(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var Q=o((Mb,xi)=>{"use strict";var xc=j(),wc=String,Ec=TypeError;xi.exports=function(e){if(xc(e))return e;throw new Ec(wc(e)+" is not an object")}});var Y=o(Ei=>{"use strict";var Sc=R(),qc=_r(),Rc=Cr(),ke=Q(),wi=qr(),Pc=TypeError,Lr=Object.defineProperty,_c=Object.getOwnPropertyDescriptor,jr="enumerable",Mr="configurable",Nr="writable";Ei.f=Sc?Rc?function(r,t,n){if(ke(r),t=wi(t),ke(n),typeof r=="function"&&t==="prototype"&&"value"in n&&Nr in n&&!n[Nr]){var i=_c(r,t);i&&i[Nr]&&(r[t]=n.value,n={configurable:Mr in n?n[Mr]:i[Mr],enumerable:jr in n?n[jr]:i[jr],writable:!1})}return Lr(r,t,n)}:Lr:function(r,t,n){if(ke(r),t=wi(t),ke(n),qc)try{return Lr(r,t,n)}catch{}if("get"in n||"set"in n)throw new Pc("Accessors not supported");return"value"in n&&(r[t]=n.value),r}});var H=o((kb,Si)=>{"use strict";var Ac=R(),Cc=Y(),Lc=ie();Si.exports=Ac?function(e,r,t){return Cc.f(e,r,Lc(1,t))}:function(e,r,t){return e[r]=t,e}});var le=o((Vb,Ri)=>{"use strict";var ce=x(),jc=tn(),Mc=cr(),Nc=w(),kc=Ti().f,Vc=yi(),X=oe(),Dc=Ar(),J=H(),qi=M();Ne();var Fc=function(e){var r=function(t,n,i){if(this instanceof r){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,i)}return jc(e,this,arguments)};return r.prototype=e.prototype,r};Ri.exports=function(e,r){var t=e.target,n=e.global,i=e.stat,a=e.proto,s=n?ce:i?ce[t]:ce[t]&&ce[t].prototype,u=n?X:X[t]||J(X,t,{})[t],p=u.prototype,l,v,c,b,d,T,h,I,y;for(b in r)l=Vc(n?b:t+(i?".":"#")+b,e.forced),v=!l&&s&&qi(s,b),T=u[b],v&&(e.dontCallGetSet?(y=kc(s,b),h=y&&y.value):h=s[b]),d=v&&h?h:r[b],!(!l&&!a&&typeof T==typeof d)&&(e.bind&&v?I=Dc(d,ce):e.wrap&&v?I=Fc(d):a&&Nc(d)?I=Mc(d):I=d,(e.sham||d&&d.sham||T&&T.sham)&&J(I,"sham",!0),J(u,b,I),a&&(c=t+"Prototype",qi(X,c)||J(X,c,{}),J(X[c],b,d),e.real&&p&&(l||!p[b])&&J(p,b,d)))}});var _i=o((Db,Pi)=>{"use strict";var Uc=Math.ceil,Gc=Math.floor;Pi.exports=Math.trunc||function(r){var t=+r;return(t>0?Gc:Uc)(t)}});var kr=o((Fb,Ai)=>{"use strict";var Bc=_i();Ai.exports=function(e){var r=+e;return r!==r||r===0?0:Bc(r)}});var Li=o((Ub,Ci)=>{"use strict";var Qc=kr(),$c=Math.max,Wc=Math.min;Ci.exports=function(e,r){var t=Qc(e);return t<0?$c(t+r,0):Wc(t,r)}});var Mi=o((Gb,ji)=>{"use strict";var Kc=kr(),zc=Math.min;ji.exports=function(e){var r=Kc(e);return r>0?zc(r,9007199254740991):0}});var Vr=o((Bb,Ni)=>{"use strict";var Yc=Mi();Ni.exports=function(e){return Yc(e.length)}});var Dr=o((Qb,Vi)=>{"use strict";var Hc=B(),Xc=Li(),Jc=Vr(),ki=function(e){return function(r,t,n){var i=Hc(r),a=Jc(i);if(a===0)return!e&&-1;var s=Xc(n,a),u;if(e&&t!==t){for(;a>s;)if(u=i[s++],u!==u)return!0}else for(;a>s;s++)if((e||s in i)&&i[s]===t)return e||s||0;return!e&&-1}};Vi.exports={includes:ki(!0),indexOf:ki(!1)}});var Fr=o(($b,Di)=>{"use strict";Di.exports=function(){}});var Fi=o(()=>{"use strict";var Zc=le(),el=Dr().includes,rl=E(),tl=Fr(),nl=rl(function(){return!Array(1).includes()});Zc({target:"Array",proto:!0,forced:nl},{includes:function(r){return el(this,r,arguments.length>1?arguments[1]:void 0)}});tl("includes")});var Gi=o((zb,Ui)=>{"use strict";var il=Ce();Ui.exports=il});var Qi=o((Yb,Bi)=>{"use strict";Fi();var ol=Gi();Bi.exports=ol("Array","includes")});var Wi=o((Hb,$i)=>{"use strict";var al=Qi();$i.exports=al});var zi=o((Xb,Ki)=>{"use strict";var sl=Wi();Ki.exports=sl});var Be=o((im,mo)=>{"use strict";var hl=xr(),yl=Er(),bo=hl("keys");mo.exports=function(e){return bo[e]||(bo[e]=yl(e))}});var ho=o((om,To)=>{"use strict";var gl=E();To.exports=!gl(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var Qe=o((am,go)=>{"use strict";var Il=M(),Ol=w(),xl=wr(),wl=Be(),El=ho(),yo=wl("IE_PROTO"),$r=Object,Sl=$r.prototype;go.exports=El?$r.getPrototypeOf:function(e){var r=xl(e);if(Il(r,yo))return r[yo];var t=r.constructor;return Ol(t)&&r instanceof t?t.prototype:r instanceof $r?Sl:null}});var $e=o((sm,Io)=>{"use strict";Io.exports={}});var wo=o((um,xo)=>{"use strict";var ql=C(),Wr=M(),Rl=B(),Pl=Dr().indexOf,_l=$e(),Oo=ql([].push);xo.exports=function(e,r){var t=Rl(e),n=0,i=[],a;for(a in t)!Wr(_l,a)&&Wr(t,a)&&Oo(i,a);for(;r.length>n;)Wr(t,a=r[n++])&&(~Pl(i,a)||Oo(i,a));return i}});var Kr=o((cm,Eo)=>{"use strict";Eo.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var zr=o((lm,So)=>{"use strict";var Al=wo(),Cl=Kr();So.exports=Object.keys||function(r){return Al(r,Cl)}});var Co=o((pm,Ao)=>{"use strict";var Ro=R(),Ll=E(),Po=C(),jl=Qe(),Ml=zr(),Nl=B(),kl=pr().f,_o=Po(kl),Vl=Po([].push),Dl=Ro&&Ll(function(){var e=Object.create(null);return e[2]=2,!_o(e,2)}),qo=function(e){return function(r){for(var t=Nl(r),n=Ml(t),i=Dl&&jl(t)===null,a=n.length,s=0,u=[],p;a>s;)p=n[s++],(!Ro||(i?p in t:_o(t,p)))&&Vl(u,e?[p,t[p]]:t[p]);return u}};Ao.exports={entries:qo(!0),values:qo(!1)}});var Lo=o(()=>{"use strict";var Fl=le(),Ul=Co().entries;Fl({target:"Object",stat:!0},{entries:function(r){return Ul(r)}})});var Mo=o((bm,jo)=>{"use strict";Lo();var Gl=oe();jo.exports=Gl.Object.entries});var ko=o((dm,No)=>{"use strict";var Bl=Mo();No.exports=Bl});var Yr=o((mm,Vo)=>{"use strict";var Ql=ko();Vo.exports=Ql});var W=o((CT,zo)=>{"use strict";zo.exports={}});var Xo=o((LT,Ho)=>{"use strict";var Kl=x(),zl=w(),Yo=Kl.WeakMap;Ho.exports=zl(Yo)&&/native code/.test(String(Yo))});var ra=o((jT,ea)=>{"use strict";var Yl=Xo(),Zo=x(),Hl=j(),Xl=H(),mt=M(),Tt=Ne(),Jl=Be(),Zl=$e(),Jo="Object already initialized",ht=Zo.TypeError,ep=Zo.WeakMap,ze,Te,Ye,rp=function(e){return Ye(e)?Te(e):ze(e,{})},tp=function(e){return function(r){var t;if(!Hl(r)||(t=Te(r)).type!==e)throw new ht("Incompatible receiver, "+e+" required");return t}};Yl||Tt.state?(_=Tt.state||(Tt.state=new ep),_.get=_.get,_.has=_.has,_.set=_.set,ze=function(e,r){if(_.has(e))throw new ht(Jo);return r.facade=e,_.set(e,r),r},Te=function(e){return _.get(e)||{}},Ye=function(e){return _.has(e)}):(K=Jl("state"),Zl[K]=!0,ze=function(e,r){if(mt(e,K))throw new ht(Jo);return r.facade=e,Xl(e,K,r),r},Te=function(e){return mt(e,K)?e[K]:{}},Ye=function(e){return mt(e,K)});var _,K;ea.exports={set:ze,get:Te,has:Ye,enforce:rp,getterFor:tp}});var ia=o((MT,na)=>{"use strict";var yt=R(),np=M(),ta=Function.prototype,ip=yt&&Object.getOwnPropertyDescriptor,gt=np(ta,"name"),op=gt&&function(){}.name==="something",ap=gt&&(!yt||yt&&ip(ta,"name").configurable);na.exports={EXISTS:gt,PROPER:op,CONFIGURABLE:ap}});var aa=o(oa=>{"use strict";var sp=R(),up=Cr(),cp=Y(),lp=Q(),pp=B(),fp=zr();oa.f=sp&&!up?Object.defineProperties:function(r,t){lp(r);for(var n=pp(t),i=fp(t),a=i.length,s=0,u;a>s;)cp.f(r,u=i[s++],n[u]);return r}});var ua=o((kT,sa)=>{"use strict";var vp=Ce();sa.exports=vp("document","documentElement")});var wt=o((VT,da)=>{"use strict";var bp=Q(),dp=aa(),ca=Kr(),mp=$e(),Tp=ua(),hp=Pr(),yp=Be(),la=">",pa="<",Ot="prototype",xt="script",va=yp("IE_PROTO"),It=function(){},ba=function(e){return pa+xt+la+e+pa+"/"+xt+la},fa=function(e){e.write(ba("")),e.close();var r=e.parentWindow.Object;return e=null,r},gp=function(){var e=hp("iframe"),r="java"+xt+":",t;return e.style.display="none",Tp.appendChild(e),e.src=String(r),t=e.contentWindow.document,t.open(),t.write(ba("document.F=Object")),t.close(),t.F},He,Xe=function(){try{He=new ActiveXObject("htmlfile")}catch{}Xe=typeof document<"u"?document.domain&&He?fa(He):gp():fa(He);for(var e=ca.length;e--;)delete Xe[Ot][ca[e]];return Xe()};mp[va]=!0;da.exports=Object.create||function(r,t){var n;return r!==null?(It[Ot]=bp(r),n=new It,It[Ot]=null,n[va]=r):n=Xe(),t===void 0?n:dp.f(n,t)}});var Et=o((DT,ma)=>{"use strict";var Ip=H();ma.exports=function(e,r,t,n){return n&&n.enumerable?e[r]=t:Ip(e,r,t),e}});var Pt=o((FT,ya)=>{"use strict";var Op=E(),xp=w(),wp=j(),Ep=wt(),Ta=Qe(),Sp=Et(),qp=N(),Rp=se(),Rt=qp("iterator"),ha=!1,k,St,qt;[].keys&&(qt=[].keys(),"next"in qt?(St=Ta(Ta(qt)),St!==Object.prototype&&(k=St)):ha=!0);var Pp=!wp(k)||Op(function(){var e={};return k[Rt].call(e)!==e});Pp?k={}:Rp&&(k=Ep(k));xp(k[Rt])||Sp(k,Rt,function(){return this});ya.exports={IteratorPrototype:k,BUGGY_SAFARI_ITERATORS:ha}});var Je=o((UT,Ia)=>{"use strict";var _p=N(),Ap=_p("toStringTag"),ga={};ga[Ap]="z";Ia.exports=String(ga)==="[object z]"});var _t=o((GT,Oa)=>{"use strict";var Cp=Je(),Lp=w(),Ze=Re(),jp=N(),Mp=jp("toStringTag"),Np=Object,kp=Ze(function(){return arguments}())==="Arguments",Vp=function(e,r){try{return e[r]}catch{}};Oa.exports=Cp?Ze:function(e){var r,t,n;return e===void 0?"Undefined":e===null?"Null":typeof(t=Vp(r=Np(e),Mp))=="string"?t:kp?Ze(r):(n=Ze(r))==="Object"&&Lp(r.callee)?"Arguments":n}});var wa=o((BT,xa)=>{"use strict";var Dp=Je(),Fp=_t();xa.exports=Dp?{}.toString:function(){return"[object "+Fp(this)+"]"}});var er=o((QT,Sa)=>{"use strict";var Up=Je(),Gp=Y().f,Bp=H(),Qp=M(),$p=wa(),Wp=N(),Ea=Wp("toStringTag");Sa.exports=function(e,r,t,n){var i=t?e:e&&e.prototype;i&&(Qp(i,Ea)||Gp(i,Ea,{configurable:!0,value:r}),n&&!Up&&Bp(i,"toString",$p))}});var Ra=o(($T,qa)=>{"use strict";var Kp=Pt().IteratorPrototype,zp=wt(),Yp=ie(),Hp=er(),Xp=W(),Jp=function(){return this};qa.exports=function(e,r,t,n){var i=r+" Iterator";return e.prototype=zp(Kp,{next:Yp(+!n,t)}),Hp(e,i,!1,!0),Xp[i]=Jp,e}});var _a=o((WT,Pa)=>{"use strict";var Zp=C(),ef=ae();Pa.exports=function(e,r,t){try{return Zp(ef(Object.getOwnPropertyDescriptor(e,r)[t]))}catch{}}});var Ca=o((KT,Aa)=>{"use strict";var rf=j();Aa.exports=function(e){return rf(e)||e===null}});var ja=o((zT,La)=>{"use strict";var tf=Ca(),nf=String,of=TypeError;La.exports=function(e){if(tf(e))return e;throw new of("Can't set "+nf(e)+" as a prototype")}});var Na=o((YT,Ma)=>{"use strict";var af=_a(),sf=j(),uf=Ae(),cf=ja();Ma.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,r={},t;try{t=af(Object.prototype,"__proto__","set"),t(r,[]),e=r instanceof Array}catch{}return function(i,a){return uf(i),cf(a),sf(i)&&(e?t(i,a):i.__proto__=a),i}}():void 0)});var Ka=o((HT,Wa)=>{"use strict";var lf=le(),pf=D(),rr=se(),Qa=ia(),ff=w(),vf=Ra(),ka=Qe(),Va=Na(),bf=er(),df=H(),At=Et(),mf=N(),Da=W(),$a=Pt(),Tf=Qa.PROPER,hf=Qa.CONFIGURABLE,Fa=$a.IteratorPrototype,tr=$a.BUGGY_SAFARI_ITERATORS,he=mf("iterator"),Ua="keys",ye="values",Ga="entries",Ba=function(){return this};Wa.exports=function(e,r,t,n,i,a,s){vf(t,r,n);var u=function(y){if(y===i&&b)return b;if(!tr&&y&&y in v)return v[y];switch(y){case Ua:return function(){return new t(this,y)};case ye:return function(){return new t(this,y)};case Ga:return function(){return new t(this,y)}}return function(){return new t(this)}},p=r+" Iterator",l=!1,v=e.prototype,c=v[he]||v["@@iterator"]||i&&v[i],b=!tr&&c||u(i),d=r==="Array"&&v.entries||c,T,h,I;if(d&&(T=ka(d.call(new e)),T!==Object.prototype&&T.next&&(!rr&&ka(T)!==Fa&&(Va?Va(T,Fa):ff(T[he])||At(T,he,Ba)),bf(T,p,!0,!0),rr&&(Da[p]=Ba))),Tf&&i===ye&&c&&c.name!==ye&&(!rr&&hf?df(v,"name",ye):(l=!0,b=function(){return pf(c,this)})),i)if(h={values:u(ye),keys:a?b:u(Ua),entries:u(Ga)},s)for(I in h)(tr||l||!(I in v))&&At(v,I,h[I]);else lf({target:r,proto:!0,forced:tr||l},h);return(!rr||s)&&v[he]!==b&&At(v,he,b,{name:i}),Da[r]=b,h}});var Ya=o((XT,za)=>{"use strict";za.exports=function(e,r){return{value:e,done:r}}});var Lt=o((JT,es)=>{"use strict";var yf=B(),Ct=Fr(),Ha=W(),Ja=ra(),gf=Y().f,If=Ka(),nr=Ya(),Of=se(),xf=R(),Za="Array Iterator",wf=Ja.set,Ef=Ja.getterFor(Za);es.exports=If(Array,"Array",function(e,r){wf(this,{type:Za,target:yf(e),index:0,kind:r})},function(){var e=Ef(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 Xa=Ha.Arguments=Ha.Array;Ct("keys");Ct("values");Ct("entries");if(!Of&&xf&&Xa.name!=="values")try{gf(Xa,"name",{value:"values"})}catch{}});var ts=o((ZT,rs)=>{"use strict";var Sf=N(),qf=W(),Rf=Sf("iterator"),Pf=Array.prototype;rs.exports=function(e){return e!==void 0&&(qf.Array===e||Pf[Rf]===e)}});var jt=o((eh,is)=>{"use strict";var _f=_t(),ns=Me(),Af=_e(),Cf=W(),Lf=N(),jf=Lf("iterator");is.exports=function(e){if(!Af(e))return ns(e,jf)||ns(e,"@@iterator")||Cf[_f(e)]}});var as=o((rh,os)=>{"use strict";var Mf=D(),Nf=ae(),kf=Q(),Vf=je(),Df=jt(),Ff=TypeError;os.exports=function(e,r){var t=arguments.length<2?Df(e):r;if(Nf(t))return kf(Mf(t,e));throw new Ff(Vf(e)+" is not iterable")}});var cs=o((th,us)=>{"use strict";var Uf=D(),ss=Q(),Gf=Me();us.exports=function(e,r,t){var n,i;ss(e);try{if(n=Gf(e,"return"),!n){if(r==="throw")throw t;return t}n=Uf(n,e)}catch(a){i=!0,n=a}if(r==="throw")throw t;if(i)throw n;return ss(n),t}});var bs=o((nh,vs)=>{"use strict";var Bf=Ar(),Qf=D(),$f=Q(),Wf=je(),Kf=ts(),zf=Vr(),ls=dr(),Yf=as(),Hf=jt(),ps=cs(),Xf=TypeError,ir=function(e,r){this.stopped=e,this.result=r},fs=ir.prototype;vs.exports=function(e,r,t){var n=t&&t.that,i=!!(t&&t.AS_ENTRIES),a=!!(t&&t.IS_RECORD),s=!!(t&&t.IS_ITERATOR),u=!!(t&&t.INTERRUPTED),p=Bf(r,n),l,v,c,b,d,T,h,I=function(g){return l&&ps(l,"normal",g),new ir(!0,g)},y=function(g){return i?($f(g),u?p(g[0],g[1],I):p(g[0],g[1])):u?p(g,I):p(g)};if(a)l=e.iterator;else if(s)l=e;else{if(v=Hf(e),!v)throw new Xf(Wf(e)+" is not iterable");if(Kf(v)){for(c=0,b=zf(e);b>c;c++)if(d=y(e[c]),d&&ls(fs,d))return d;return new ir(!1)}l=Yf(e,v)}for(T=a?e.next:l.next;!(h=Qf(T,l)).done;){try{d=y(h.value)}catch(g){ps(l,"throw",g)}if(typeof d=="object"&&d&&ls(fs,d))return d}return new ir(!1)}});var ms=o((ih,ds)=>{"use strict";var Jf=R(),Zf=Y(),ev=ie();ds.exports=function(e,r,t){Jf?Zf.f(e,r,ev(0,t)):e[r]=t}});var Ts=o(()=>{"use strict";var rv=le(),tv=bs(),nv=ms();rv({target:"Object",stat:!0},{fromEntries:function(r){var t={};return tv(r,function(n,i){nv(t,n,i)},{AS_ENTRIES:!0}),t}})});var ys=o((sh,hs)=>{"use strict";Lt();Ts();var iv=oe();hs.exports=iv.Object.fromEntries});var Is=o((uh,gs)=>{"use strict";gs.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 xs=o(()=>{"use strict";Lt();var ov=Is(),av=x(),sv=er(),Os=W();for(or in ov)sv(av[or],or),Os[or]=Os.Array;var or});var Es=o((ph,ws)=>{"use strict";var uv=ys();xs();ws.exports=uv});var qs=o((fh,Ss)=>{"use strict";var cv=Es();Ss.exports=cv});var bv={};Vt(bv,{ErrorCategory:()=>$o,InterfaceLanguage:()=>As,Logger:()=>we,Observable:()=>f,Subject:()=>L,Subscription:()=>O,Tracer:()=>Ee,VERSION:()=>Ft,VKNumericLanguage:()=>_s,ValueSubject:()=>ve,VideoQuality:()=>Ve,abortable:()=>zt,addScript:()=>Wt,areQualitiesExact:()=>so,assertEmptyArray:()=>$t,assertNever:()=>A,assertNonNullable:()=>Gt,assertNotEmptyArray:()=>Qt,assertNullable:()=>Bt,assertQualityIsExact:()=>uo,buffer:()=>Zr,checkNever:()=>Ut,clearVideoElement:()=>fo,clientChecker:()=>Hi,cloneDeep:()=>lo,cloneDeepWith:()=>pe,combine:()=>Hr,createURL:()=>Tl,debounce:()=>rt,debounceFn:()=>Ue,detectEmbed:()=>Ji,fillWithDefault:()=>co,filter:()=>ot,filterChanged:()=>st,flattenObject:()=>fe,fromEvent:()=>Bo,getExponentialDelay:()=>Xi,getHighestQuality:()=>to,getTraceSubscriptionMethod:()=>vo,interval:()=>Uo,isHigher:()=>Zi,isHigherOrEqual:()=>eo,isInvariantQuality:()=>Fe,isLower:()=>De,isLowerOrEqual:()=>ro,isMobile:()=>Gr,isNonNullable:()=>G,isNullable:()=>qe,isValidURL:()=>ml,loadVKLangPack:()=>pv,map:()=>be,mapTo:()=>ct,merge:()=>Xr,noop:()=>V,now:()=>Kt,observableFrom:()=>Go,observeElementSize:()=>po,once:()=>lt,pairwise:()=>ft,safeStorage:()=>Qr,tap:()=>bt,throttle:()=>nt,throttleFn:()=>Ge,timeCodeToString:()=>bl,timeout:()=>Fo,videoHeightToQuality:()=>io,videoQualityToHeight:()=>ao,videoSizeToQuality:()=>oo});module.exports=Fs(bv);var Ft="1.0.50-dev.e0ca2fd5.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`)},Ut=e=>{};var V=()=>{};var f=class{constructor(r){r&&(this._subscribe=r)}subscribe(r,t){let n;t?typeof t=="function"?n={next:t,error:V}:n={next:s=>t.next(s),error:s=>t.error?.(s)}:n={next:V,error:V};let i=typeof r=="function"?{next:s=>{try{r(s)}catch(u){n.next(u)}},error:s=>n.next(s)}:{next:s=>r.next(s),error:s=>r.error?r.error(s):n.next(s)},a;try{a=this._subscribe(i)}catch(s){i.error?.(s)}return new O().add(()=>{switch(i.next=V,i.error=V,typeof a){case"function":a();return;case"object":a.unsubscribe();return;case"undefined":return;default:return A(a)}})}pipe(...r){return r.reduce((t,n)=>n(t),this)}_subscribe(r){}};var L=class extends f{constructor(){super();this.keyCounter=0;this.subscribers=new Map}next(t){this.subscribers.forEach(n=>n.next(t))}error(t){this.subscribers.forEach(n=>n.error?.(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 L;this.logs=[];this.log=r=>{let t={...r,timestamp:Date.now()};this.logs.push(t),this.log$.next(t)};this.getAllLogs=()=>this.logs}createCustomLog(r){return(...t)=>{let n;try{n=r(...t)}catch{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 U=require("@tracer/opentelemetry"),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 s=(0,U.initTracerOpenTelemetry)({serviceName:"videoplayer-sdk-web",appToken:"L9SBoka6ZWk4xPjaK7tmfSfYvMhcge7nvGDjpdMmscb",spanLimits:{attributeCountLimit:1/0,eventCountLimit:1/0,attributePerEventCountLimit:1/0}}).getProvider(),u=new U.TracerMemorySpanExporter,p=new U.TracerMemorySpanExporter;this.spanExporter=u,s.addSpanProcessor(new U.TracerAllSpansProcessor({startedSpansExporter:u,endedSpansExporter:p})),this.tracer=s.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,{...t,type:"log"})}error(r,t){this.span.addEvent(r,{...t,type:"error"})}critical(r,t){this.span.addEvent(r,{...t,type:"critical"})}static createRootTracer(r=!1){return r?new e({name:"Root"}):new 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(){return this.spanExporter?.getJsonData()}getTraceId(){return this.span.spanContext().traceId}};function Gt(e,r='Assertion "value is not nullable" failed'){if(e==null)throw new Error(r)}function Bt(e,r='Assertion "value is nullable" failed'){if(e!=null)throw new Error(r)}function G(e){return typeof e<"u"&&e!==null}function qe(e){return e==null}function Qt(e,r){if(!e?.length)throw new Error(r)}function $t(e,r){if(e?.length)throw new Error(r)}var Wt=(e,r,t)=>new Promise((n,i)=>{r.addEventListener("abort",()=>{u(),l.remove()});let a=()=>{u(),i()},s=()=>{u(),n()},u=()=>{p&&clearTimeout(p),l.removeEventListener("load",s),l.removeEventListener("error",a)},p;t&&(p=window.setTimeout(a,t));let l=document.createElement("script");l.addEventListener("load",s),l.addEventListener("error",a),l.src=e,document.head.appendChild(l)});var Kt=typeof window.performance?.now=="function"?()=>window.performance.now():()=>Date.now();var zt=(e,r)=>async(...t)=>{let n=r(...t),i=e.aborted,a;for(;!i&&!e.aborted;)try{let s=await n.next(a);i=s.done??!1,a=s.value}catch(s){await n.throw(s)}return a};var Yi=xe(zi(),1);var Gr=()=>/Mobile|mini|Fennec|Android|iP(ad|od|hone)/.test(navigator.appVersion??navigator.userAgent)||navigator?.userAgentData?.mobile,Ur=class{constructor(){this.detect()}get browser(){return this._currentBrowser}get device(){return this._currentDevice}get isTouch(){return this._maxTouchPoints>0}get isIOS(){return(0,Yi.default)(["iPhone","iPad","iPod"],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?.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(){let{userAgent:r,maxTouchPoints:t}=navigator;try{this._maxTouchPoints=t,this._isHdr=!!matchMedia("(dynamic-range: high)")?.matches}catch(n){console.error(n)}try{this._isMobile=Gr()}catch(n){console.error(n)}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,a=/chromium/i.test(r)?"Chromium":void 0,s=/firefox|fxios/i.test(r)?"Firefox":void 0,u=/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||s||p||l||i||a||u||"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,a=/ipod/i.test(r)?"iPod":void 0,s=/mac/i.test(r)?"Mac":void 0,u=/webOS|BlackBerry|IEMobile|Opera Mini/i.test(r)?"RestMobile":void 0;this._currentDevice=t||n||i||a||u||s||"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)}}},Hi=new Ur;var Xi=(e,{start:r=0,factor:t=2,max:n=1/0,min:i=r,random:a=0}={})=>{let s=r;return s*=t**e,s*=1+(Math.random()*a*2-a),s=Math.round(s),s=Math.min(s,n),s=Math.max(s,i),s};var Qr={};Vt(Qr,{clear:()=>vl,get:()=>cl,has:()=>pl,isPersistent:()=>ul,remove:()=>fl,set:()=>ll});var Z,$,Br=`vk-videoplayer-dummy-key-${Math.random()}`,ee=()=>{if($!==void 0)return $;try{localStorage.setItem(Br,"test"),localStorage.removeItem(Br),$=0}catch(e){if(e instanceof DOMException||e instanceof TypeError)try{sessionStorage.getItem(Br),$=1}catch(r){if(r instanceof DOMException||r instanceof TypeError)$=2;else throw r}else throw e}return $===2&&(Z=new Map),$},ul=()=>ee()===0,cl=e=>{let r=ee();switch(r){case 0:return localStorage.getItem(e)??void 0;case 1:return sessionStorage.getItem(e)??void 0;case 2:return Z?.get(e);default:A(r)}},ll=(e,r)=>{let t=ee();switch(t){case 0:try{localStorage.setItem(e,r)}catch(n){if(n instanceof DOMException)console.error(n);else throw n}break;case 1:try{sessionStorage.setItem(e,r)}catch(n){if(n instanceof DOMException)console.error(n);else throw n}break;case 2:return void Z?.set(e,r);default:A(t)}},pl=e=>{let r=ee();switch(r){case 0:return e in localStorage;case 1:return e in sessionStorage;case 2:return Z?.has(e)??!1;default:return A(r),!1}},fl=e=>{let r=ee();switch(r){case 0:return localStorage.removeItem(e);case 1:return sessionStorage.removeItem(e);case 2:return void Z?.delete(e);default:A(r)}},vl=()=>{let e=ee();switch(e){case 0:return localStorage.clear();case 1:return sessionStorage.clear();case 2:return Z?.clear();default:A(e)}};var Ji=()=>{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 Ve=(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))(Ve||{});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}},Zi=(e,r)=>S[e].height>S[r].height,eo=(e,r)=>S[e].height>=S[r].height,De=(e,r)=>S[e].height<S[r].height,ro=(e,r)=>S[e].height<=S[r].height,to=e=>e.sort((r,t)=>r===t?0:r==="Invariant quality"?1:t==="Invariant quality"?-1:De(r,t)?1:-1)[0],no=Object.keys(S).sort((e,r)=>De(e,r)?-1:1),io=(e,r=.02)=>[...no].find(n=>S[n].height*(1+r)>=e),oo=({width:e,height:r})=>{let t=Math.min(e,r),n=Math.max(e,r);return no.find(i=>{let a=S[i];return a.width>=n&&a.height>=t})},ao=e=>S[e].height,Fe=e=>e==="Invariant quality",so=e=>e.every(r=>!Fe(r));function uo(e){if(Fe(e))throw new Error("Expected exact quality")}var co=(e,r)=>{let t={};for(let n of Object.keys(r)){let i=r[n],a=e[n];Array.isArray(i)&&Array.isArray(a)?t[n]=a:typeof i=="object"&&typeof a=="object"?t[n]=co(a,i):t[n]=n in e?a:i}return t};var bl=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 Ue(e,r=0,t){let n,i,a,s,u,p,l=0,v=!1,c=!1,b=!0,d=!r&&r!==0&&typeof window.requestAnimationFrame=="function";t&&(v=!!t.leading,c="maxWait"in t,a=t?.maxWait?Math.max(+t?.maxWait||0,r):a,b="trailing"in t?!!t.trailing:b);function T(m){let q=n,F=i;return n=i=void 0,l=m,s=e.apply(F,q),s}function h(m,q){return d?(u&&window.cancelAnimationFrame(u),window.requestAnimationFrame(m)):setTimeout(m,q)}function I(m){if(d){window.cancelAnimationFrame(m);return}clearTimeout(m)}function y(m){return l=m,u=h(ge,r),v?T(m):s}function g(m){let q=m-p,F=m-l,kt=r-q;return c?Math.min(kt,a-F):kt}function Mt(m){let q=m-p,F=m-l;return p===void 0||q>=r||q<0||c&&F>=a}function ge(){let m=Date.now();if(Mt(m))return Nt(m);u=h(ge,g(m))}function Nt(m){return u=void 0,b&&n?T(m):(n=i=void 0,s)}function Cs(){u!==void 0&&I(u),l=0,n=p=i=u=void 0}function Ls(){return u===void 0?s:Nt(Date.now())}function js(){return u!==void 0}function Ie(...m){let q=Date.now(),F=Mt(q);if(n=m,i=this,p=q,F){if(u===void 0)return y(p);if(c)return u=h(ge,r),T(p)}return u===void 0&&(u=h(ge,r)),s}return Ie.cancel=Cs,Ie.flush=Ls,Ie.pending=js,Ie}var Ge=(e,r=0,t)=>Ue(e,r,{...{leading:!0,trailing:!0},...t,maxWait:r});var pe=(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]=pe(e[n],r):t[n]=e[n]}return t};var lo=e=>pe(e);var dl=300,po=(e,r=dl)=>new f(t=>{let{width:n,height:i}=e.getBoundingClientRect();if(t.next({width:n,height:i}),!window.ResizeObserver)return;let a=new ResizeObserver(Ge(s=>{let u=s[0];if(!u)return;let p,l;u.contentBoxSize&&u.contentBoxSize[0]?(l=u.contentBoxSize[0].blockSize,p=u.contentBoxSize[0].inlineSize):u.contentRect&&(p=u.contentRect.width,l=u.contentRect.height),G(p)&&G(l)&&t.next({width:p,height:l})},r));return a.observe(e),()=>a.disconnect()});var fe=(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 a=fe(e[i],r-1);for(let s in a)a.hasOwnProperty(s)&&(n[i+t+s]=a[s])}else n[i]=e[i];return n};var fo=e=>{e.removeAttribute("src"),e.load()};var ml=e=>{let r;try{r=new URL(e)}catch{return!1}return r.protocol==="https:"};var Tl=e=>{try{return new URL(e)}catch{return null}};var vo=e=>r=>t=>{let n=typeof t=="object";t==null||n&&!Object.keys(t).length||e(r,n?fe(t):{value:t})};var ve=class extends L{constructor(r){super(),this.value=r}next(r){super.next(this.value=r)}error(r){super.error(this.value=r)}getValue(){return this.value}_subscribe(r){let t=super._subscribe(r);return r.next(this.value),t}};var Do=xe(Yr(),1);function Hr(e){return new f(r=>{let t={},n=Object.keys(e).length,i=a=>s=>{a in t||n--,t[a]=s,n===0&&r.next(t)};return(0,Do.default)(e).reduce((a,[s,u])=>a.add(u.subscribe(i(s))),new O)})}function Xr(...e){return new f(r=>e.reduce((t,n)=>t.add(n.subscribe(r)),new O))}var Fo=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 Uo=e=>new f(r=>{let t=window.setInterval(()=>r.next(),e);return()=>{t&&(window.clearInterval(t),t=void 0)}});var Go=e=>new f(r=>{e.forEach(t=>r.next(t))});var Bo=(e,r)=>new f(t=>{let n=i=>t.next(i);return e.addEventListener(r,n),()=>e.removeEventListener(r,n)});function Zr(e){return r=>new f(t=>r.subscribe(new Jr(t,e)))}var Jr=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){this.destination.error?.(r)}};var $l={leading:!1,trailing:!0};function rt(e,r=$l){return t=>new f(n=>t.subscribe(new et(n,e,r)))}var et=class{constructor(r,t,n){this.destination=r;this.time=t;this.config=n}next(r){this.lastValue=r,G(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){this.destination.error?.(r)}};var Wl={leading:!0,trailing:!1};function nt(e,r=Wl){return t=>new f(n=>t.subscribe(new tt(n,e,r)))}var tt=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){this.destination.error?.(r)}};function ot(e){return r=>new f(t=>r.subscribe(new it(t,e)))}var it=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){this.destination.error?.(r)}};function st(e=(r,t)=>r===t){return r=>new f(t=>r.subscribe(new at(t,e)))}var Qo={},at=class{constructor(r,t){this.destination=r;this.predicate=t;this.lastValue=Qo}next(r){let t;try{t=this.lastValue===Qo||!this.predicate(this.lastValue,r),this.lastValue=r}catch(n){throw this.error(n),n}t&&this.destination.next(r)}error(r){this.destination.error?.(r)}};function be(e){return r=>new f(t=>r.subscribe(new ut(t,e)))}var ut=class{constructor(r,t){this.destination=r;this.mapper=t}next(r){let t;try{t=this.mapper(r)}catch(n){throw this.error(n),n}this.destination.next(t)}error(r){this.destination.error?.(r)}};function ct(e){return be(()=>e)}function lt(){return e=>new f(r=>{let t=!1,n=!1,i=e.subscribe(a=>{t||(t=!0,r.next(a)),n&&i.unsubscribe()},a=>{t=!0,r.error?.(a),n&&i.unsubscribe()});return n=!0,t&&i.unsubscribe(),i})}function ft(){return e=>new f(r=>e.subscribe(new pt(r)))}var pt=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){this.destination.error?.(r)}};function bt(e){return r=>new f(t=>r.subscribe(new vt(t,e)))}var vt=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){this.destination.error?.(r)}};var $o=(u=>(u.NETWORK="network",u.VIDEO_PIPELINE="video_pipeline",u.EXTERNAL_API="external_api",u.PARSER="parser",u.DOM="dom",u.WTF="wtf",u.FATAL="fatal",u))($o||{});var We=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,a=n.length;i<a;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,a=n.length;i<a;i++){let s=n[i];try{s.callback.call(this,r)}catch(u){Promise.resolve().then(()=>{throw u})}s.options&&s.options.once&&this.removeEventListener(r.type,s.callback)}return!r.defaultPrevented}},re=class extends We{constructor(){super(),this.listeners||We.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)}},de=class{constructor(){Object.defineProperty(this,"signal",{value:new re,writable:!0,configurable:!0})}abort(r){let t;try{t=new Event("abort")}catch{typeof document<"u"?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>"u")n=new Error("This operation was aborted"),n.name="AbortError";else try{n=new DOMException("signal is aborted without reason")}catch{n=new Error("This operation was aborted"),n.name="AbortError"}this.signal.reason=n,this.signal.dispatchEvent(t)}toString(){return"[object AbortController]"}};typeof Symbol<"u"&&Symbol.toStringTag&&(de.prototype[Symbol.toStringTag]="AbortController",re.prototype[Symbol.toStringTag]="AbortSignal");function Ke(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 dt(e){typeof e=="function"&&(e={fetch:e});let{fetch:r,Request:t=r.Request,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:i=!1}=e;if(!Ke({fetch:r,Request:t,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:i}))return{fetch:r,Request:a};let a=t;(a&&!a.prototype.hasOwnProperty("signal")||i)&&(a=function(l,v){let c;v&&v.signal&&(c=v.signal,delete v.signal);let b=new t(l,v);return c&&Object.defineProperty(b,"signal",{writable:!1,enumerable:!1,configurable:!0,value:c}),b},a.prototype=t.prototype);let s=r;return{fetch:(p,l)=>{let v=a&&a.prototype.isPrototypeOf(p)?p.signal:l?l.signal:void 0;if(v){let c;try{c=new DOMException("Aborted","AbortError")}catch{c=new Error("Aborted"),c.name="AbortError"}if(v.aborted)return Promise.reject(c);let b=new Promise((d,T)=>{v.addEventListener("abort",()=>T(c),{once:!0})});return l&&l.signal&&delete l.signal,Promise.race([b,s(p,l)])}return s(p,l)},Request:a}}var me=Ke({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}),Wo=me?dt({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}):void 0,Ko=me?Wo.fetch:window.fetch,RT=me?Wo.Request:window.Request,PT=me?de:window.AbortController,_T=me?re:window.AbortSignal;var Rs=xe(Yr(),1),Ps=xe(qs(),1),_s=(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))(_s||{}),lv="vk.com",pv=async(e,r,t)=>{let n=new URL(`https://${lv}/js/lang-pack.js`);n.searchParams.set("format","json"),n.searchParams.set("name",r),e!==void 0&&n.searchParams.set("lang",e);let a=await(await Ko(n.toString())).json();return fv(a,t)},fv=(e,r)=>(0,Ps.default)((0,Rs.default)(e.keys).map(([t,n])=>[t.substring(`${r}_`.length),vv(n)])),vv=e=>Array.isArray(e)?e[0]:e;var As=(t=>(t.RU="ru",t.EN="en",t))(As||{});
|
package/esnext.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vkontakte/videoplayer-shared v1.0.50-dev.
|
|
3
|
-
* Mon, 02 Dec 2024
|
|
2
|
+
* @vkontakte/videoplayer-shared v1.0.50-dev.e0ca2fd5.0
|
|
3
|
+
* Mon, 02 Dec 2024 09:23:33 GMT
|
|
4
4
|
* https://st.mycdn.me/static/vkontakte-videoplayer/1-0-50/doc/
|
|
5
5
|
*/
|
|
6
|
-
var Za=Object.create;var Ye=Object.defineProperty;var es=Object.getOwnPropertyDescriptor;var rs=Object.getOwnPropertyNames;var ts=Object.getPrototypeOf,ns=Object.prototype.hasOwnProperty;var o=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),is=(e,r)=>{for(var t in r)Ye(e,t,{get:r[t],enumerable:!0})},os=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of rs(r))!ns.call(e,i)&&i!==t&&Ye(e,i,{get:()=>r[i],enumerable:!(n=es(r,i))||n.enumerable});return e};var Te=(e,r,t)=>(t=e!=null?Za(ts(e)):{},os(r||!e||!e.__esModule?Ye(t,"default",{value:e,enumerable:!0}):t,e));var O=o((er,wt)=>{"use strict";var re=function(e){return e&&e.Math===Math&&e};wt.exports=re(typeof globalThis=="object"&&globalThis)||re(typeof window=="object"&&window)||re(typeof self=="object"&&self)||re(typeof global=="object"&&global)||re(typeof er=="object"&&er)||function(){return this}()||Function("return this")()});var E=o((Qv,Et)=>{"use strict";Et.exports=function(e){try{return!!e()}catch{return!0}}});var te=o(($v,St)=>{"use strict";var ys=E();St.exports=!ys(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var At=o((Wv,_t)=>{"use strict";var gs=te(),Pt=Function.prototype,qt=Pt.apply,Rt=Pt.call;_t.exports=typeof Reflect=="object"&&Reflect.apply||(gs?Rt.bind(qt):function(){return Rt.apply(qt,arguments)})});var A=o((Kv,jt)=>{"use strict";var Ct=te(),Lt=Function.prototype,rr=Lt.call,Is=Ct&&Lt.bind.bind(rr,rr);jt.exports=Ct?Is:function(e){return function(){return rr.apply(e,arguments)}}});var he=o((zv,Mt)=>{"use strict";var kt=A(),Os=kt({}.toString),xs=kt("".slice);Mt.exports=function(e){return xs(Os(e),8,-1)}});var tr=o((Yv,Nt)=>{"use strict";var ws=he(),Es=A();Nt.exports=function(e){if(ws(e)==="Function")return Es(e)}});var x=o((Hv,Vt)=>{"use strict";var nr=typeof document=="object"&&document.all;Vt.exports=typeof nr>"u"&&nr!==void 0?function(e){return typeof e=="function"||e===nr}:function(e){return typeof e=="function"}});var R=o((Xv,Dt)=>{"use strict";var Ss=E();Dt.exports=!Ss(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var V=o((Jv,Ft)=>{"use strict";var qs=te(),ye=Function.prototype.call;Ft.exports=qs?ye.bind(ye):function(){return ye.apply(ye,arguments)}});var ir=o(Bt=>{"use strict";var Ut={}.propertyIsEnumerable,Gt=Object.getOwnPropertyDescriptor,Rs=Gt&&!Ut.call({1:2},1);Bt.f=Rs?function(r){var t=Gt(this,r);return!!t&&t.enumerable}:Ut});var ne=o((eb,Qt)=>{"use strict";Qt.exports=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}}});var Wt=o((rb,$t)=>{"use strict";var Ps=A(),_s=E(),As=he(),or=Object,Cs=Ps("".split);$t.exports=_s(function(){return!or("z").propertyIsEnumerable(0)})?function(e){return As(e)==="String"?Cs(e,""):or(e)}:or});var ge=o((tb,Kt)=>{"use strict";Kt.exports=function(e){return e==null}});var Ie=o((nb,zt)=>{"use strict";var Ls=ge(),js=TypeError;zt.exports=function(e){if(Ls(e))throw new js("Can't call method on "+e);return e}});var U=o((ib,Yt)=>{"use strict";var ks=Wt(),Ms=Ie();Yt.exports=function(e){return ks(Ms(e))}});var L=o((ob,Ht)=>{"use strict";var Ns=x();Ht.exports=function(e){return typeof e=="object"?e!==null:Ns(e)}});var ie=o((ab,Xt)=>{"use strict";Xt.exports={}});var Oe=o((sb,Zt)=>{"use strict";var ar=ie(),sr=O(),Vs=x(),Jt=function(e){return Vs(e)?e:void 0};Zt.exports=function(e,r){return arguments.length<2?Jt(ar[e])||Jt(sr[e]):ar[e]&&ar[e][r]||sr[e]&&sr[e][r]}});var ur=o((ub,en)=>{"use strict";var Ds=A();en.exports=Ds({}.isPrototypeOf)});var on=o((cb,nn)=>{"use strict";var Fs=O(),rn=Fs.navigator,tn=rn&&rn.userAgent;nn.exports=tn?String(tn):""});var fn=o((lb,pn)=>{"use strict";var ln=O(),cr=on(),an=ln.process,sn=ln.Deno,un=an&&an.versions||sn&&sn.version,cn=un&&un.v8,P,xe;cn&&(P=cn.split("."),xe=P[0]>0&&P[0]<4?1:+(P[0]+P[1]));!xe&&cr&&(P=cr.match(/Edge\/(\d+)/),(!P||P[1]>=74)&&(P=cr.match(/Chrome\/(\d+)/),P&&(xe=+P[1])));pn.exports=xe});var lr=o((pb,bn)=>{"use strict";var vn=fn(),Us=E(),Gs=O(),Bs=Gs.String;bn.exports=!!Object.getOwnPropertySymbols&&!Us(function(){var e=Symbol("symbol detection");return!Bs(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&vn&&vn<41})});var pr=o((fb,dn)=>{"use strict";var Qs=lr();dn.exports=Qs&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var fr=o((vb,mn)=>{"use strict";var $s=Oe(),Ws=x(),Ks=ur(),zs=pr(),Ys=Object;mn.exports=zs?function(e){return typeof e=="symbol"}:function(e){var r=$s("Symbol");return Ws(r)&&Ks(r.prototype,Ys(e))}});var we=o((bb,Tn)=>{"use strict";var Hs=String;Tn.exports=function(e){try{return Hs(e)}catch{return"Object"}}});var oe=o((db,hn)=>{"use strict";var Xs=x(),Js=we(),Zs=TypeError;hn.exports=function(e){if(Xs(e))return e;throw new Zs(Js(e)+" is not a function")}});var Ee=o((mb,yn)=>{"use strict";var eu=oe(),ru=ge();yn.exports=function(e,r){var t=e[r];return ru(t)?void 0:eu(t)}});var In=o((Tb,gn)=>{"use strict";var vr=V(),br=x(),dr=L(),tu=TypeError;gn.exports=function(e,r){var t,n;if(r==="string"&&br(t=e.toString)&&!dr(n=vr(t,e))||br(t=e.valueOf)&&!dr(n=vr(t,e))||r!=="string"&&br(t=e.toString)&&!dr(n=vr(t,e)))return n;throw new tu("Can't convert object to primitive value")}});var ae=o((hb,On)=>{"use strict";On.exports=!0});var En=o((yb,wn)=>{"use strict";var xn=O(),nu=Object.defineProperty;wn.exports=function(e,r){try{nu(xn,e,{value:r,configurable:!0,writable:!0})}catch{xn[e]=r}return r}});var Se=o((gb,Rn)=>{"use strict";var iu=ae(),ou=O(),au=En(),Sn="__core-js_shared__",qn=Rn.exports=ou[Sn]||au(Sn,{});(qn.versions||(qn.versions=[])).push({version:"3.38.0",mode:iu?"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 mr=o((Ib,_n)=>{"use strict";var Pn=Se();_n.exports=function(e,r){return Pn[e]||(Pn[e]=r||{})}});var Tr=o((Ob,An)=>{"use strict";var su=Ie(),uu=Object;An.exports=function(e){return uu(su(e))}});var j=o((xb,Cn)=>{"use strict";var cu=A(),lu=Tr(),pu=cu({}.hasOwnProperty);Cn.exports=Object.hasOwn||function(r,t){return pu(lu(r),t)}});var hr=o((wb,Ln)=>{"use strict";var fu=A(),vu=0,bu=Math.random(),du=fu(1 .toString);Ln.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+du(++vu+bu,36)}});var k=o((Eb,kn)=>{"use strict";var mu=O(),Tu=mr(),jn=j(),hu=hr(),yu=lr(),gu=pr(),K=mu.Symbol,yr=Tu("wks"),Iu=gu?K.for||K:K&&K.withoutSetter||hu;kn.exports=function(e){return jn(yr,e)||(yr[e]=yu&&jn(K,e)?K[e]:Iu("Symbol."+e)),yr[e]}});var Dn=o((Sb,Vn)=>{"use strict";var Ou=V(),Mn=L(),Nn=fr(),xu=Ee(),wu=In(),Eu=k(),Su=TypeError,qu=Eu("toPrimitive");Vn.exports=function(e,r){if(!Mn(e)||Nn(e))return e;var t=xu(e,qu),n;if(t){if(r===void 0&&(r="default"),n=Ou(t,e,r),!Mn(n)||Nn(n))return n;throw new Su("Can't convert object to primitive value")}return r===void 0&&(r="number"),wu(e,r)}});var gr=o((qb,Fn)=>{"use strict";var Ru=Dn(),Pu=fr();Fn.exports=function(e){var r=Ru(e,"string");return Pu(r)?r:r+""}});var Or=o((Rb,Gn)=>{"use strict";var _u=O(),Un=L(),Ir=_u.document,Au=Un(Ir)&&Un(Ir.createElement);Gn.exports=function(e){return Au?Ir.createElement(e):{}}});var xr=o((Pb,Bn)=>{"use strict";var Cu=R(),Lu=E(),ju=Or();Bn.exports=!Cu&&!Lu(function(){return Object.defineProperty(ju("div"),"a",{get:function(){return 7}}).a!==7})});var Wn=o($n=>{"use strict";var ku=R(),Mu=V(),Nu=ir(),Vu=ne(),Du=U(),Fu=gr(),Uu=j(),Gu=xr(),Qn=Object.getOwnPropertyDescriptor;$n.f=ku?Qn:function(r,t){if(r=Du(r),t=Fu(t),Gu)try{return Qn(r,t)}catch{}if(Uu(r,t))return Vu(!Mu(Nu.f,r,t),r[t])}});var zn=o((Ab,Kn)=>{"use strict";var Bu=E(),Qu=x(),$u=/#|\.prototype\./,se=function(e,r){var t=Ku[Wu(e)];return t===Yu?!0:t===zu?!1:Qu(r)?Bu(r):!!r},Wu=se.normalize=function(e){return String(e).replace($u,".").toLowerCase()},Ku=se.data={},zu=se.NATIVE="N",Yu=se.POLYFILL="P";Kn.exports=se});var wr=o((Cb,Hn)=>{"use strict";var Yn=tr(),Hu=oe(),Xu=te(),Ju=Yn(Yn.bind);Hn.exports=function(e,r){return Hu(e),r===void 0?e:Xu?Ju(e,r):function(){return e.apply(r,arguments)}}});var Er=o((Lb,Xn)=>{"use strict";var Zu=R(),ec=E();Xn.exports=Zu&&ec(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var G=o((jb,Jn)=>{"use strict";var rc=L(),tc=String,nc=TypeError;Jn.exports=function(e){if(rc(e))return e;throw new nc(tc(e)+" is not an object")}});var z=o(ei=>{"use strict";var ic=R(),oc=xr(),ac=Er(),qe=G(),Zn=gr(),sc=TypeError,Sr=Object.defineProperty,uc=Object.getOwnPropertyDescriptor,qr="enumerable",Rr="configurable",Pr="writable";ei.f=ic?ac?function(r,t,n){if(qe(r),t=Zn(t),qe(n),typeof r=="function"&&t==="prototype"&&"value"in n&&Pr in n&&!n[Pr]){var i=uc(r,t);i&&i[Pr]&&(r[t]=n.value,n={configurable:Rr in n?n[Rr]:i[Rr],enumerable:qr in n?n[qr]:i[qr],writable:!1})}return Sr(r,t,n)}:Sr:function(r,t,n){if(qe(r),t=Zn(t),qe(n),oc)try{return Sr(r,t,n)}catch{}if("get"in n||"set"in n)throw new sc("Accessors not supported");return"value"in n&&(r[t]=n.value),r}});var Y=o((Mb,ri)=>{"use strict";var cc=R(),lc=z(),pc=ne();ri.exports=cc?function(e,r,t){return lc.f(e,r,pc(1,t))}:function(e,r,t){return e[r]=t,e}});var ce=o((Nb,ni)=>{"use strict";var ue=O(),fc=At(),vc=tr(),bc=x(),dc=Wn().f,mc=zn(),H=ie(),Tc=wr(),X=Y(),ti=j();Se();var hc=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,a=e.proto,s=n?ue:i?ue[t]:ue[t]&&ue[t].prototype,u=n?H:H[t]||X(H,t,{})[t],p=u.prototype,l,v,c,b,d,T,h,I,y;for(b in r)l=mc(n?b:t+(i?".":"#")+b,e.forced),v=!l&&s&&ti(s,b),T=u[b],v&&(e.dontCallGetSet?(y=dc(s,b),h=y&&y.value):h=s[b]),d=v&&h?h:r[b],!(!l&&!a&&typeof T==typeof d)&&(e.bind&&v?I=Tc(d,ue):e.wrap&&v?I=hc(d):a&&bc(d)?I=vc(d):I=d,(e.sham||d&&d.sham||T&&T.sham)&&X(I,"sham",!0),X(u,b,I),a&&(c=t+"Prototype",ti(H,c)||X(H,c,{}),X(H[c],b,d),e.real&&p&&(l||!p[b])&&X(p,b,d)))}});var oi=o((Vb,ii)=>{"use strict";var yc=Math.ceil,gc=Math.floor;ii.exports=Math.trunc||function(r){var t=+r;return(t>0?gc:yc)(t)}});var _r=o((Db,ai)=>{"use strict";var Ic=oi();ai.exports=function(e){var r=+e;return r!==r||r===0?0:Ic(r)}});var ui=o((Fb,si)=>{"use strict";var Oc=_r(),xc=Math.max,wc=Math.min;si.exports=function(e,r){var t=Oc(e);return t<0?xc(t+r,0):wc(t,r)}});var li=o((Ub,ci)=>{"use strict";var Ec=_r(),Sc=Math.min;ci.exports=function(e){var r=Ec(e);return r>0?Sc(r,9007199254740991):0}});var Ar=o((Gb,pi)=>{"use strict";var qc=li();pi.exports=function(e){return qc(e.length)}});var Cr=o((Bb,vi)=>{"use strict";var Rc=U(),Pc=ui(),_c=Ar(),fi=function(e){return function(r,t,n){var i=Rc(r),a=_c(i);if(a===0)return!e&&-1;var s=Pc(n,a),u;if(e&&t!==t){for(;a>s;)if(u=i[s++],u!==u)return!0}else for(;a>s;s++)if((e||s in i)&&i[s]===t)return e||s||0;return!e&&-1}};vi.exports={includes:fi(!0),indexOf:fi(!1)}});var Lr=o((Qb,bi)=>{"use strict";bi.exports=function(){}});var di=o(()=>{"use strict";var Ac=ce(),Cc=Cr().includes,Lc=E(),jc=Lr(),kc=Lc(function(){return!Array(1).includes()});Ac({target:"Array",proto:!0,forced:kc},{includes:function(r){return Cc(this,r,arguments.length>1?arguments[1]:void 0)}});jc("includes")});var Ti=o((Kb,mi)=>{"use strict";var Mc=Oe();mi.exports=Mc});var yi=o((zb,hi)=>{"use strict";di();var Nc=Ti();hi.exports=Nc("Array","includes")});var Ii=o((Yb,gi)=>{"use strict";var Vc=yi();gi.exports=Vc});var xi=o((Hb,Oi)=>{"use strict";var Dc=Ii();Oi.exports=Dc});var Ae=o((am,Pi)=>{"use strict";var ll=mr(),pl=hr(),Ri=ll("keys");Pi.exports=function(e){return Ri[e]||(Ri[e]=pl(e))}});var Ai=o((sm,_i)=>{"use strict";var fl=E();_i.exports=!fl(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var Ce=o((um,Li)=>{"use strict";var vl=j(),bl=x(),dl=Tr(),ml=Ae(),Tl=Ai(),Ci=ml("IE_PROTO"),Ur=Object,hl=Ur.prototype;Li.exports=Tl?Ur.getPrototypeOf:function(e){var r=dl(e);if(vl(r,Ci))return r[Ci];var t=r.constructor;return bl(t)&&r instanceof t?t.prototype:r instanceof Ur?hl:null}});var Le=o((cm,ji)=>{"use strict";ji.exports={}});var Ni=o((lm,Mi)=>{"use strict";var yl=A(),Gr=j(),gl=U(),Il=Cr().indexOf,Ol=Le(),ki=yl([].push);Mi.exports=function(e,r){var t=gl(e),n=0,i=[],a;for(a in t)!Gr(Ol,a)&&Gr(t,a)&&ki(i,a);for(;r.length>n;)Gr(t,a=r[n++])&&(~Il(i,a)||ki(i,a));return i}});var Br=o((pm,Vi)=>{"use strict";Vi.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var Qr=o((fm,Di)=>{"use strict";var xl=Ni(),wl=Br();Di.exports=Object.keys||function(r){return xl(r,wl)}});var $i=o((vm,Qi)=>{"use strict";var Ui=R(),El=E(),Gi=A(),Sl=Ce(),ql=Qr(),Rl=U(),Pl=ir().f,Bi=Gi(Pl),_l=Gi([].push),Al=Ui&&El(function(){var e=Object.create(null);return e[2]=2,!Bi(e,2)}),Fi=function(e){return function(r){for(var t=Rl(r),n=ql(t),i=Al&&Sl(t)===null,a=n.length,s=0,u=[],p;a>s;)p=n[s++],(!Ui||(i?p in t:Bi(t,p)))&&_l(u,e?[p,t[p]]:t[p]);return u}};Qi.exports={entries:Fi(!0),values:Fi(!1)}});var Wi=o(()=>{"use strict";var Cl=ce(),Ll=$i().entries;Cl({target:"Object",stat:!0},{entries:function(r){return Ll(r)}})});var zi=o((mm,Ki)=>{"use strict";Wi();var jl=ie();Ki.exports=jl.Object.entries});var Hi=o((Tm,Yi)=>{"use strict";var kl=zi();Yi.exports=kl});var $r=o((hm,Xi)=>{"use strict";var Ml=Hi();Xi.exports=Ml});var Q=o((jT,vo)=>{"use strict";vo.exports={}});var To=o((kT,mo)=>{"use strict";var Ql=O(),$l=x(),bo=Ql.WeakMap;mo.exports=$l(bo)&&/native code/.test(String(bo))});var Io=o((MT,go)=>{"use strict";var Wl=To(),yo=O(),Kl=L(),zl=Y(),rt=j(),tt=Se(),Yl=Ae(),Hl=Le(),ho="Object already initialized",nt=yo.TypeError,Xl=yo.WeakMap,Ne,fe,Ve,Jl=function(e){return Ve(e)?fe(e):Ne(e,{})},Zl=function(e){return function(r){var t;if(!Kl(r)||(t=fe(r)).type!==e)throw new nt("Incompatible receiver, "+e+" required");return t}};Wl||tt.state?(_=tt.state||(tt.state=new Xl),_.get=_.get,_.has=_.has,_.set=_.set,Ne=function(e,r){if(_.has(e))throw new nt(ho);return r.facade=e,_.set(e,r),r},fe=function(e){return _.get(e)||{}},Ve=function(e){return _.has(e)}):($=Yl("state"),Hl[$]=!0,Ne=function(e,r){if(rt(e,$))throw new nt(ho);return r.facade=e,zl(e,$,r),r},fe=function(e){return rt(e,$)?e[$]:{}},Ve=function(e){return rt(e,$)});var _,$;go.exports={set:Ne,get:fe,has:Ve,enforce:Jl,getterFor:Zl}});var wo=o((NT,xo)=>{"use strict";var it=R(),ep=j(),Oo=Function.prototype,rp=it&&Object.getOwnPropertyDescriptor,ot=ep(Oo,"name"),tp=ot&&function(){}.name==="something",np=ot&&(!it||it&&rp(Oo,"name").configurable);xo.exports={EXISTS:ot,PROPER:tp,CONFIGURABLE:np}});var So=o(Eo=>{"use strict";var ip=R(),op=Er(),ap=z(),sp=G(),up=U(),cp=Qr();Eo.f=ip&&!op?Object.defineProperties:function(r,t){sp(r);for(var n=up(t),i=cp(t),a=i.length,s=0,u;a>s;)ap.f(r,u=i[s++],n[u]);return r}});var Ro=o((DT,qo)=>{"use strict";var lp=Oe();qo.exports=lp("document","documentElement")});var ct=o((FT,ko)=>{"use strict";var pp=G(),fp=So(),Po=Br(),vp=Le(),bp=Ro(),dp=Or(),mp=Ae(),_o=">",Ao="<",st="prototype",ut="script",Lo=mp("IE_PROTO"),at=function(){},jo=function(e){return Ao+ut+_o+e+Ao+"/"+ut+_o},Co=function(e){e.write(jo("")),e.close();var r=e.parentWindow.Object;return e=null,r},Tp=function(){var e=dp("iframe"),r="java"+ut+":",t;return e.style.display="none",bp.appendChild(e),e.src=String(r),t=e.contentWindow.document,t.open(),t.write(jo("document.F=Object")),t.close(),t.F},De,Fe=function(){try{De=new ActiveXObject("htmlfile")}catch{}Fe=typeof document<"u"?document.domain&&De?Co(De):Tp():Co(De);for(var e=Po.length;e--;)delete Fe[st][Po[e]];return Fe()};vp[Lo]=!0;ko.exports=Object.create||function(r,t){var n;return r!==null?(at[st]=pp(r),n=new at,at[st]=null,n[Lo]=r):n=Fe(),t===void 0?n:fp.f(n,t)}});var lt=o((UT,Mo)=>{"use strict";var hp=Y();Mo.exports=function(e,r,t,n){return n&&n.enumerable?e[r]=t:hp(e,r,t),e}});var bt=o((GT,Do)=>{"use strict";var yp=E(),gp=x(),Ip=L(),Op=ct(),No=Ce(),xp=lt(),wp=k(),Ep=ae(),vt=wp("iterator"),Vo=!1,M,pt,ft;[].keys&&(ft=[].keys(),"next"in ft?(pt=No(No(ft)),pt!==Object.prototype&&(M=pt)):Vo=!0);var Sp=!Ip(M)||yp(function(){var e={};return M[vt].call(e)!==e});Sp?M={}:Ep&&(M=Op(M));gp(M[vt])||xp(M,vt,function(){return this});Do.exports={IteratorPrototype:M,BUGGY_SAFARI_ITERATORS:Vo}});var Ue=o((BT,Uo)=>{"use strict";var qp=k(),Rp=qp("toStringTag"),Fo={};Fo[Rp]="z";Uo.exports=String(Fo)==="[object z]"});var dt=o((QT,Go)=>{"use strict";var Pp=Ue(),_p=x(),Ge=he(),Ap=k(),Cp=Ap("toStringTag"),Lp=Object,jp=Ge(function(){return arguments}())==="Arguments",kp=function(e,r){try{return e[r]}catch{}};Go.exports=Pp?Ge:function(e){var r,t,n;return e===void 0?"Undefined":e===null?"Null":typeof(t=kp(r=Lp(e),Cp))=="string"?t:jp?Ge(r):(n=Ge(r))==="Object"&&_p(r.callee)?"Arguments":n}});var Qo=o(($T,Bo)=>{"use strict";var Mp=Ue(),Np=dt();Bo.exports=Mp?{}.toString:function(){return"[object "+Np(this)+"]"}});var Be=o((WT,Wo)=>{"use strict";var Vp=Ue(),Dp=z().f,Fp=Y(),Up=j(),Gp=Qo(),Bp=k(),$o=Bp("toStringTag");Wo.exports=function(e,r,t,n){var i=t?e:e&&e.prototype;i&&(Up(i,$o)||Dp(i,$o,{configurable:!0,value:r}),n&&!Vp&&Fp(i,"toString",Gp))}});var zo=o((KT,Ko)=>{"use strict";var Qp=bt().IteratorPrototype,$p=ct(),Wp=ne(),Kp=Be(),zp=Q(),Yp=function(){return this};Ko.exports=function(e,r,t,n){var i=r+" Iterator";return e.prototype=$p(Qp,{next:Wp(+!n,t)}),Kp(e,i,!1,!0),zp[i]=Yp,e}});var Ho=o((zT,Yo)=>{"use strict";var Hp=A(),Xp=oe();Yo.exports=function(e,r,t){try{return Hp(Xp(Object.getOwnPropertyDescriptor(e,r)[t]))}catch{}}});var Jo=o((YT,Xo)=>{"use strict";var Jp=L();Xo.exports=function(e){return Jp(e)||e===null}});var ea=o((HT,Zo)=>{"use strict";var Zp=Jo(),ef=String,rf=TypeError;Zo.exports=function(e){if(Zp(e))return e;throw new rf("Can't set "+ef(e)+" as a prototype")}});var ta=o((XT,ra)=>{"use strict";var tf=Ho(),nf=L(),of=Ie(),af=ea();ra.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,r={},t;try{t=tf(Object.prototype,"__proto__","set"),t(r,[]),e=r instanceof Array}catch{}return function(i,a){return of(i),af(a),nf(i)&&(e?t(i,a):i.__proto__=a),i}}():void 0)});var va=o((JT,fa)=>{"use strict";var sf=ce(),uf=V(),Qe=ae(),la=wo(),cf=x(),lf=zo(),na=Ce(),ia=ta(),pf=Be(),ff=Y(),mt=lt(),vf=k(),oa=Q(),pa=bt(),bf=la.PROPER,df=la.CONFIGURABLE,aa=pa.IteratorPrototype,$e=pa.BUGGY_SAFARI_ITERATORS,ve=vf("iterator"),sa="keys",be="values",ua="entries",ca=function(){return this};fa.exports=function(e,r,t,n,i,a,s){lf(t,r,n);var u=function(y){if(y===i&&b)return b;if(!$e&&y&&y in v)return v[y];switch(y){case sa:return function(){return new t(this,y)};case be:return function(){return new t(this,y)};case ua:return function(){return new t(this,y)}}return function(){return new t(this)}},p=r+" Iterator",l=!1,v=e.prototype,c=v[ve]||v["@@iterator"]||i&&v[i],b=!$e&&c||u(i),d=r==="Array"&&v.entries||c,T,h,I;if(d&&(T=na(d.call(new e)),T!==Object.prototype&&T.next&&(!Qe&&na(T)!==aa&&(ia?ia(T,aa):cf(T[ve])||mt(T,ve,ca)),pf(T,p,!0,!0),Qe&&(oa[p]=ca))),bf&&i===be&&c&&c.name!==be&&(!Qe&&df?ff(v,"name",be):(l=!0,b=function(){return uf(c,this)})),i)if(h={values:u(be),keys:a?b:u(sa),entries:u(ua)},s)for(I in h)($e||l||!(I in v))&&mt(v,I,h[I]);else sf({target:r,proto:!0,forced:$e||l},h);return(!Qe||s)&&v[ve]!==b&&mt(v,ve,b,{name:i}),oa[r]=b,h}});var da=o((ZT,ba)=>{"use strict";ba.exports=function(e,r){return{value:e,done:r}}});var ht=o((eh,ga)=>{"use strict";var mf=U(),Tt=Lr(),ma=Q(),ha=Io(),Tf=z().f,hf=va(),We=da(),yf=ae(),gf=R(),ya="Array Iterator",If=ha.set,Of=ha.getterFor(ya);ga.exports=hf(Array,"Array",function(e,r){If(this,{type:ya,target:mf(e),index:0,kind:r})},function(){var e=Of(this),r=e.target,t=e.index++;if(!r||t>=r.length)return e.target=void 0,We(void 0,!0);switch(e.kind){case"keys":return We(t,!1);case"values":return We(r[t],!1)}return We([t,r[t]],!1)},"values");var Ta=ma.Arguments=ma.Array;Tt("keys");Tt("values");Tt("entries");if(!yf&&gf&&Ta.name!=="values")try{Tf(Ta,"name",{value:"values"})}catch{}});var Oa=o((rh,Ia)=>{"use strict";var xf=k(),wf=Q(),Ef=xf("iterator"),Sf=Array.prototype;Ia.exports=function(e){return e!==void 0&&(wf.Array===e||Sf[Ef]===e)}});var yt=o((th,wa)=>{"use strict";var qf=dt(),xa=Ee(),Rf=ge(),Pf=Q(),_f=k(),Af=_f("iterator");wa.exports=function(e){if(!Rf(e))return xa(e,Af)||xa(e,"@@iterator")||Pf[qf(e)]}});var Sa=o((nh,Ea)=>{"use strict";var Cf=V(),Lf=oe(),jf=G(),kf=we(),Mf=yt(),Nf=TypeError;Ea.exports=function(e,r){var t=arguments.length<2?Mf(e):r;if(Lf(t))return jf(Cf(t,e));throw new Nf(kf(e)+" is not iterable")}});var Pa=o((ih,Ra)=>{"use strict";var Vf=V(),qa=G(),Df=Ee();Ra.exports=function(e,r,t){var n,i;qa(e);try{if(n=Df(e,"return"),!n){if(r==="throw")throw t;return t}n=Vf(n,e)}catch(a){i=!0,n=a}if(r==="throw")throw t;if(i)throw n;return qa(n),t}});var ja=o((oh,La)=>{"use strict";var Ff=wr(),Uf=V(),Gf=G(),Bf=we(),Qf=Oa(),$f=Ar(),_a=ur(),Wf=Sa(),Kf=yt(),Aa=Pa(),zf=TypeError,Ke=function(e,r){this.stopped=e,this.result=r},Ca=Ke.prototype;La.exports=function(e,r,t){var n=t&&t.that,i=!!(t&&t.AS_ENTRIES),a=!!(t&&t.IS_RECORD),s=!!(t&&t.IS_ITERATOR),u=!!(t&&t.INTERRUPTED),p=Ff(r,n),l,v,c,b,d,T,h,I=function(g){return l&&Aa(l,"normal",g),new Ke(!0,g)},y=function(g){return i?(Gf(g),u?p(g[0],g[1],I):p(g[0],g[1])):u?p(g,I):p(g)};if(a)l=e.iterator;else if(s)l=e;else{if(v=Kf(e),!v)throw new zf(Bf(e)+" is not iterable");if(Qf(v)){for(c=0,b=$f(e);b>c;c++)if(d=y(e[c]),d&&_a(Ca,d))return d;return new Ke(!1)}l=Wf(e,v)}for(T=a?e.next:l.next;!(h=Uf(T,l)).done;){try{d=y(h.value)}catch(g){Aa(l,"throw",g)}if(typeof d=="object"&&d&&_a(Ca,d))return d}return new Ke(!1)}});var Ma=o((ah,ka)=>{"use strict";var Yf=R(),Hf=z(),Xf=ne();ka.exports=function(e,r,t){Yf?Hf.f(e,r,Xf(0,t)):e[r]=t}});var Na=o(()=>{"use strict";var Jf=ce(),Zf=ja(),ev=Ma();Jf({target:"Object",stat:!0},{fromEntries:function(r){var t={};return Zf(r,function(n,i){ev(t,n,i)},{AS_ENTRIES:!0}),t}})});var Da=o((ch,Va)=>{"use strict";ht();Na();var rv=ie();Va.exports=rv.Object.fromEntries});var Ua=o((lh,Fa)=>{"use strict";Fa.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}});var Ba=o(()=>{"use strict";ht();var tv=Ua(),nv=O(),iv=Be(),Ga=Q();for(ze in tv)iv(nv[ze],ze),Ga[ze]=Ga.Array;var ze});var $a=o((vh,Qa)=>{"use strict";var ov=Da();Ba();Qa.exports=ov});var Ka=o((bh,Wa)=>{"use strict";var av=$a();Wa.exports=av});var as="1.0.50-dev.d9acbe42.0";var w=class{constructor(){this.subscriptions=[]}unsubscribe(){let r=this.subscriptions;this.subscriptions=[],r.forEach(t=>typeof t=="function"?t():t.unsubscribe())}add(r){return this.subscriptions.push(r),this}};var C=e=>{throw new Error(`${e} is value of unexpected type`)},ss=e=>{};var F=()=>{};var f=class{constructor(r){r&&(this._subscribe=r)}subscribe(r,t){let n;t?typeof t=="function"?n={next:t,error:F}:n={next:s=>t.next(s),error:s=>t.error?.(s)}:n={next:F,error:F};let i=typeof r=="function"?{next:s=>{try{r(s)}catch(u){n.next(u)}},error:s=>n.next(s)}:{next:s=>r.next(s),error:s=>r.error?r.error(s):n.next(s)},a;try{a=this._subscribe(i)}catch(s){i.error?.(s)}return new w().add(()=>{switch(i.next=F,i.error=F,typeof a){case"function":a();return;case"object":a.unsubscribe();return;case"undefined":return;default:return C(a)}})}pipe(...r){return r.reduce((t,n)=>n(t),this)}_subscribe(r){}};var N=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=>n.error?.(t))}_subscribe(t){let n=this.keyCounter++;return this.subscribers.set(n,t),new w().add(()=>this.subscribers.delete(n))}};var He=class{constructor(){this.log$=new N;this.logs=[];this.log=r=>{let t={...r,timestamp:Date.now()};this.logs.push(t),this.log$.next(t)};this.getAllLogs=()=>this.logs}createCustomLog(r){return(...t)=>{let n;try{n=r(...t)}catch{n={message:"error in `createCustomLog`",component:"Logger"}}this.log(n)}}createComponentLog(r){return this.createCustomLog(t=>({component:r,...t}))}};import{trace as us,context as cs}from"@opentelemetry/api";import{TracerAllSpansProcessor as ls,TracerMemorySpanExporter as xt,initTracerOpenTelemetry as ps}from"@tracer/opentelemetry";var Xe=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}},Je=class e{constructor({name:r,parentContext:t,tracer:n}){this.childTracers=[];let i=!n;if(i){let s=ps({serviceName:"videoplayer-sdk-web",appToken:"L9SBoka6ZWk4xPjaK7tmfSfYvMhcge7nvGDjpdMmscb",spanLimits:{attributeCountLimit:1/0,eventCountLimit:1/0,attributePerEventCountLimit:1/0}}).getProvider(),u=new xt,p=new xt;this.spanExporter=u,s.addSpanProcessor(new ls({startedSpansExporter:u,endedSpansExporter:p})),this.tracer=s.getTracer("sdk-videoplayer-tracer")}else this.tracer=n;this.span=this.tracer.startSpan(r,{root:i},t),this.context=us.setSpan(cs.active(),this.span)}log(r,t){this.span.addEvent(r,{...t,type:"log"})}error(r,t){this.span.addEvent(r,{...t,type:"error"})}critical(r,t){this.span.addEvent(r,{...t,type:"critical"})}static createRootTracer(r=!1){return r?new e({name:"Root"}):new Xe({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(){return this.spanExporter?.getJsonData()}getTraceId(){return this.span.spanContext().traceId}};function fs(e,r='Assertion "value is not nullable" failed'){if(e==null)throw new Error(r)}function vs(e,r='Assertion "value is nullable" failed'){if(e!=null)throw new Error(r)}function W(e){return typeof e<"u"&&e!==null}function Ze(e){return e==null}function bs(e,r){if(!e?.length)throw new Error(r)}function ds(e,r){if(e?.length)throw new Error(r)}var ms=(e,r,t)=>new Promise((n,i)=>{r.addEventListener("abort",()=>{u(),l.remove()});let a=()=>{u(),i()},s=()=>{u(),n()},u=()=>{p&&clearTimeout(p),l.removeEventListener("load",s),l.removeEventListener("error",a)},p;t&&(p=window.setTimeout(a,t));let l=document.createElement("script");l.addEventListener("load",s),l.addEventListener("error",a),l.src=e,document.head.appendChild(l)});var Ts=typeof window.performance?.now=="function"?()=>window.performance.now():()=>Date.now();var hs=(e,r)=>async(...t)=>{let n=r(...t),i=e.aborted,a;for(;!i&&!e.aborted;)try{let s=await n.next(a);i=s.done??!1,a=s.value}catch(s){await n.throw(s)}return a};var wi=Te(xi(),1);var Ei=()=>/Mobile|mini|Fennec|Android|iP(ad|od|hone)/.test(navigator.appVersion??navigator.userAgent)||navigator?.userAgentData?.mobile,jr=class{constructor(){this.detect()}get browser(){return this._currentBrowser}get device(){return this._currentDevice}get isTouch(){return this._maxTouchPoints>0}get isIOS(){return(0,wi.default)(["iPhone","iPad","iPod"],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?.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(){let{userAgent:r,maxTouchPoints:t}=navigator;try{this._maxTouchPoints=t,this._isHdr=!!matchMedia("(dynamic-range: high)")?.matches}catch(n){console.error(n)}try{this._isMobile=Ei()}catch(n){console.error(n)}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,a=/chromium/i.test(r)?"Chromium":void 0,s=/firefox|fxios/i.test(r)?"Firefox":void 0,u=/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||s||p||l||i||a||u||"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,a=/ipod/i.test(r)?"iPod":void 0,s=/mac/i.test(r)?"Mac":void 0,u=/webOS|BlackBerry|IEMobile|Opera Mini/i.test(r)?"RestMobile":void 0;this._currentDevice=t||n||i||a||u||s||"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)}}},Fc=new jr;var Uc=(e,{start:r=0,factor:t=2,max:n=1/0,min:i=r,random:a=0}={})=>{let s=r;return s*=t**e,s*=1+(Math.random()*a*2-a),s=Math.round(s),s=Math.min(s,n),s=Math.max(s,i),s};var Si={};is(Si,{clear:()=>Kc,get:()=>Bc,has:()=>$c,isPersistent:()=>Gc,remove:()=>Wc,set:()=>Qc});var J,B,kr=`vk-videoplayer-dummy-key-${Math.random()}`,Z=()=>{if(B!==void 0)return B;try{localStorage.setItem(kr,"test"),localStorage.removeItem(kr),B=0}catch(e){if(e instanceof DOMException||e instanceof TypeError)try{sessionStorage.getItem(kr),B=1}catch(r){if(r instanceof DOMException||r instanceof TypeError)B=2;else throw r}else throw e}return B===2&&(J=new Map),B},Gc=()=>Z()===0,Bc=e=>{let r=Z();switch(r){case 0:return localStorage.getItem(e)??void 0;case 1:return sessionStorage.getItem(e)??void 0;case 2:return J?.get(e);default:C(r)}},Qc=(e,r)=>{let t=Z();switch(t){case 0:try{localStorage.setItem(e,r)}catch(n){if(n instanceof DOMException)console.error(n);else throw n}break;case 1:try{sessionStorage.setItem(e,r)}catch(n){if(n instanceof DOMException)console.error(n);else throw n}break;case 2:return void J?.set(e,r);default:C(t)}},$c=e=>{let r=Z();switch(r){case 0:return e in localStorage;case 1:return e in sessionStorage;case 2:return J?.has(e)??!1;default:return C(r),!1}},Wc=e=>{let r=Z();switch(r){case 0:return localStorage.removeItem(e);case 1:return sessionStorage.removeItem(e);case 2:return void J?.delete(e);default:C(r)}},Kc=()=>{let e=Z();switch(e){case 0:return localStorage.clear();case 1:return sessionStorage.clear();case 2:return J?.clear();default:C(e)}};var zc=()=>{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 Mr=(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))(Mr||{});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}},Yc=(e,r)=>S[e].height>S[r].height,Hc=(e,r)=>S[e].height>=S[r].height,Nr=(e,r)=>S[e].height<S[r].height,Xc=(e,r)=>S[e].height<=S[r].height,Jc=e=>e.sort((r,t)=>r===t?0:r==="Invariant quality"?1:t==="Invariant quality"?-1:Nr(r,t)?1:-1)[0],qi=Object.keys(S).sort((e,r)=>Nr(e,r)?-1:1),Zc=(e,r=.02)=>[...qi].find(n=>S[n].height*(1+r)>=e),el=({width:e,height:r})=>{let t=Math.min(e,r),n=Math.max(e,r);return qi.find(i=>{let a=S[i];return a.width>=n&&a.height>=t})},rl=e=>S[e].height,Vr=e=>e==="Invariant quality",tl=e=>e.every(r=>!Vr(r));function nl(e){if(Vr(e))throw new Error("Expected exact quality")}var il=(e,r)=>{let t={};for(let n of Object.keys(r)){let i=r[n],a=e[n];Array.isArray(i)&&Array.isArray(a)?t[n]=a:typeof i=="object"&&typeof a=="object"?t[n]=il(a,i):t[n]=n in e?a:i}return t};var od=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 Dr(e,r=0,t){let n,i,a,s,u,p,l=0,v=!1,c=!1,b=!0,d=!r&&r!==0&&typeof window.requestAnimationFrame=="function";t&&(v=!!t.leading,c="maxWait"in t,a=t?.maxWait?Math.max(+t?.maxWait||0,r):a,b="trailing"in t?!!t.trailing:b);function T(m){let q=n,D=i;return n=i=void 0,l=m,s=e.apply(D,q),s}function h(m,q){return d?(u&&window.cancelAnimationFrame(u),window.requestAnimationFrame(m)):setTimeout(m,q)}function I(m){if(d){window.cancelAnimationFrame(m);return}clearTimeout(m)}function y(m){return l=m,u=h(de,r),v?T(m):s}function g(m){let q=m-p,D=m-l,Ot=r-q;return c?Math.min(Ot,a-D):Ot}function gt(m){let q=m-p,D=m-l;return p===void 0||q>=r||q<0||c&&D>=a}function de(){let m=Date.now();if(gt(m))return It(m);u=h(de,g(m))}function It(m){return u=void 0,b&&n?T(m):(n=i=void 0,s)}function Ha(){u!==void 0&&I(u),l=0,n=p=i=u=void 0}function Xa(){return u===void 0?s:It(Date.now())}function Ja(){return u!==void 0}function me(...m){let q=Date.now(),D=gt(q);if(n=m,i=this,p=q,D){if(u===void 0)return y(p);if(c)return u=h(de,r),T(p)}return u===void 0&&(u=h(de,r)),s}return me.cancel=Ha,me.flush=Xa,me.pending=Ja,me}var Fr=(e,r=0,t)=>Dr(e,r,{...{leading:!0,trailing:!0},...t,maxWait:r});var Re=(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]=Re(e[n],r):t[n]=e[n]}return t};var ol=e=>Re(e);var al=300,sl=(e,r=al)=>new f(t=>{let{width:n,height:i}=e.getBoundingClientRect();if(t.next({width:n,height:i}),!window.ResizeObserver)return;let a=new ResizeObserver(Fr(s=>{let u=s[0];if(!u)return;let p,l;u.contentBoxSize&&u.contentBoxSize[0]?(l=u.contentBoxSize[0].blockSize,p=u.contentBoxSize[0].inlineSize):u.contentRect&&(p=u.contentRect.width,l=u.contentRect.height),W(p)&&W(l)&&t.next({width:p,height:l})},r));return a.observe(e),()=>a.disconnect()});var Pe=(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 a=Pe(e[i],r-1);for(let s in a)a.hasOwnProperty(s)&&(n[i+t+s]=a[s])}else n[i]=e[i];return n};var ul=e=>{e.removeAttribute("src"),e.load()};var hd=e=>{let r;try{r=new URL(e)}catch{return!1}return r.protocol==="https:"};var gd=e=>{try{return new URL(e)}catch{return null}};var cl=e=>r=>t=>{let n=typeof t=="object";t==null||n&&!Object.keys(t).length||e(r,n?Pe(t):{value:t})};var _e=class extends N{constructor(r){super(),this.value=r}next(r){super.next(this.value=r)}error(r){super.error(this.value=r)}getValue(){return this.value}_subscribe(r){let t=super._subscribe(r);return r.next(this.value),t}};var Ji=Te($r(),1);function Zi(e){return new f(r=>{let t={},n=Object.keys(e).length,i=a=>s=>{a in t||n--,t[a]=s,n===0&&r.next(t)};return(0,Ji.default)(Object,e).reduce((a,[s,u])=>a.add(u.subscribe(i(s))),new w)})}function eo(...e){return new f(r=>e.reduce((t,n)=>t.add(n.subscribe(r)),new w))}var Nl=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 Vl=e=>new f(r=>{let t=window.setInterval(()=>r.next(),e);return()=>{t&&(window.clearInterval(t),t=void 0)}});var Dl=e=>new f(r=>{e.forEach(t=>r.next(t))});var Fl=(e,r)=>new f(t=>{let n=i=>t.next(i);return e.addEventListener(r,n),()=>e.removeEventListener(r,n)});function ro(e){return r=>new f(t=>r.subscribe(new Wr(t,e)))}var Wr=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){this.destination.error?.(r)}};var Ul={leading:!1,trailing:!0};function to(e,r=Ul){return t=>new f(n=>t.subscribe(new Kr(n,e,r)))}var Kr=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){this.destination.error?.(r)}};var Gl={leading:!0,trailing:!1};function no(e,r=Gl){return t=>new f(n=>t.subscribe(new zr(n,e,r)))}var zr=class{constructor(r,t,n){this.destination=r;this.time=t;this.config=n}next(r){this.lastValue=r,Ze(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){this.destination.error?.(r)}};function io(e){return r=>new f(t=>r.subscribe(new Yr(t,e)))}var Yr=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){this.destination.error?.(r)}};function ao(e=(r,t)=>r===t){return r=>new f(t=>r.subscribe(new Hr(t,e)))}var oo={},Hr=class{constructor(r,t){this.destination=r;this.predicate=t;this.lastValue=oo}next(r){let t;try{t=this.lastValue===oo||!this.predicate(this.lastValue,r),this.lastValue=r}catch(n){throw this.error(n),n}t&&this.destination.next(r)}error(r){this.destination.error?.(r)}};function je(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){this.destination.error?.(r)}};function so(e){return je(()=>e)}function uo(){return e=>new f(r=>{let t=!1,n=!1,i=e.subscribe(a=>{t||(t=!0,r.next(a)),n&&i.unsubscribe()},a=>{t=!0,r.error?.(a),n&&i.unsubscribe()});return n=!0,t&&i.unsubscribe(),i})}function co(){return e=>new f(r=>e.subscribe(new Jr(r)))}var Jr=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){this.destination.error?.(r)}};function lo(e){return r=>new f(t=>r.subscribe(new Zr(t,e)))}var Zr=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){this.destination.error?.(r)}};var Bl=(u=>(u.NETWORK="network",u.VIDEO_PIPELINE="video_pipeline",u.EXTERNAL_API="external_api",u.PARSER="parser",u.DOM="dom",u.WTF="wtf",u.FATAL="fatal",u))(Bl||{});var ke=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,a=n.length;i<a;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,a=n.length;i<a;i++){let s=n[i];try{s.callback.call(this,r)}catch(u){Promise.resolve().then(()=>{throw u})}s.options&&s.options.once&&this.removeEventListener(r.type,s.callback)}return!r.defaultPrevented}},ee=class extends ke{constructor(){super(),this.listeners||ke.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)}},le=class{constructor(){Object.defineProperty(this,"signal",{value:new ee,writable:!0,configurable:!0})}abort(r){let t;try{t=new Event("abort")}catch{typeof document<"u"?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>"u")n=new Error("This operation was aborted"),n.name="AbortError";else try{n=new DOMException("signal is aborted without reason")}catch{n=new Error("This operation was aborted"),n.name="AbortError"}this.signal.reason=n,this.signal.dispatchEvent(t)}toString(){return"[object AbortController]"}};typeof Symbol<"u"&&Symbol.toStringTag&&(le.prototype[Symbol.toStringTag]="AbortController",ee.prototype[Symbol.toStringTag]="AbortSignal");function Me(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 et(e){typeof e=="function"&&(e={fetch:e});let{fetch:r,Request:t=r.Request,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:i=!1}=e;if(!Me({fetch:r,Request:t,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:i}))return{fetch:r,Request:a};let a=t;(a&&!a.prototype.hasOwnProperty("signal")||i)&&(a=function(l,v){let c;v&&v.signal&&(c=v.signal,delete v.signal);let b=new t(l,v);return c&&Object.defineProperty(b,"signal",{writable:!1,enumerable:!1,configurable:!0,value:c}),b},a.prototype=t.prototype);let s=r;return{fetch:(p,l)=>{let v=a&&a.prototype.isPrototypeOf(p)?p.signal:l?l.signal:void 0;if(v){let c;try{c=new DOMException("Aborted","AbortError")}catch{c=new Error("Aborted"),c.name="AbortError"}if(v.aborted)return Promise.reject(c);let b=new Promise((d,T)=>{v.addEventListener("abort",()=>T(c),{once:!0})});return l&&l.signal&&delete l.signal,Promise.race([b,s(p,l)])}return s(p,l)},Request:a}}var pe=Me({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}),po=pe?et({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}):void 0,fo=pe?po.fetch:window.fetch,_T=pe?po.Request:window.Request,AT=pe?le:window.AbortController,CT=pe?ee:window.AbortSignal;var za=Te($r(),1),Ya=Te(Ka(),1),sv=(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))(sv||{}),uv="vk.com",mh=async(e,r,t)=>{let n=new URL(`https://${uv}/js/lang-pack.js`);n.searchParams.set("format","json"),n.searchParams.set("name",r),e!==void 0&&n.searchParams.set("lang",e);let a=await(await fo(n.toString())).json();return cv(a,t)},cv=(e,r)=>(0,Ya.default)(Object,(0,za.default)(Object,e.keys).map(([t,n])=>[t.substring(`${r}_`.length),lv(n)])),lv=e=>Array.isArray(e)?e[0]:e;var pv=(t=>(t.RU="ru",t.EN="en",t))(pv||{});export{Bl as ErrorCategory,pv as InterfaceLanguage,He as Logger,f as Observable,N as Subject,w as Subscription,Je as Tracer,as as VERSION,sv as VKNumericLanguage,_e as ValueSubject,Mr as VideoQuality,hs as abortable,ms as addScript,tl as areQualitiesExact,ds as assertEmptyArray,C as assertNever,fs as assertNonNullable,bs as assertNotEmptyArray,vs as assertNullable,nl as assertQualityIsExact,ro as buffer,ss as checkNever,ul as clearVideoElement,Fc as clientChecker,ol as cloneDeep,Re as cloneDeepWith,Zi as combine,gd as createURL,to as debounce,Dr as debounceFn,zc as detectEmbed,il as fillWithDefault,io as filter,ao as filterChanged,Pe as flattenObject,Fl as fromEvent,Uc as getExponentialDelay,Jc as getHighestQuality,cl as getTraceSubscriptionMethod,Vl as interval,Yc as isHigher,Hc as isHigherOrEqual,Vr as isInvariantQuality,Nr as isLower,Xc as isLowerOrEqual,Ei as isMobile,W as isNonNullable,Ze as isNullable,hd as isValidURL,mh as loadVKLangPack,je as map,so as mapTo,eo as merge,F as noop,Ts as now,Dl as observableFrom,sl as observeElementSize,uo as once,co as pairwise,Si as safeStorage,lo as tap,no as throttle,Fr as throttleFn,od as timeCodeToString,Nl as timeout,Zc as videoHeightToQuality,rl as videoQualityToHeight,el as videoSizeToQuality};
|
|
6
|
+
var Za=Object.create;var Ye=Object.defineProperty;var es=Object.getOwnPropertyDescriptor;var rs=Object.getOwnPropertyNames;var ts=Object.getPrototypeOf,ns=Object.prototype.hasOwnProperty;var o=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),is=(e,r)=>{for(var t in r)Ye(e,t,{get:r[t],enumerable:!0})},os=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of rs(r))!ns.call(e,i)&&i!==t&&Ye(e,i,{get:()=>r[i],enumerable:!(n=es(r,i))||n.enumerable});return e};var Te=(e,r,t)=>(t=e!=null?Za(ts(e)):{},os(r||!e||!e.__esModule?Ye(t,"default",{value:e,enumerable:!0}):t,e));var O=o((er,wt)=>{"use strict";var re=function(e){return e&&e.Math===Math&&e};wt.exports=re(typeof globalThis=="object"&&globalThis)||re(typeof window=="object"&&window)||re(typeof self=="object"&&self)||re(typeof global=="object"&&global)||re(typeof er=="object"&&er)||function(){return this}()||Function("return this")()});var E=o((Qv,Et)=>{"use strict";Et.exports=function(e){try{return!!e()}catch{return!0}}});var te=o(($v,St)=>{"use strict";var ys=E();St.exports=!ys(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var At=o((Wv,_t)=>{"use strict";var gs=te(),Pt=Function.prototype,qt=Pt.apply,Rt=Pt.call;_t.exports=typeof Reflect=="object"&&Reflect.apply||(gs?Rt.bind(qt):function(){return Rt.apply(qt,arguments)})});var A=o((Kv,jt)=>{"use strict";var Ct=te(),Lt=Function.prototype,rr=Lt.call,Is=Ct&&Lt.bind.bind(rr,rr);jt.exports=Ct?Is:function(e){return function(){return rr.apply(e,arguments)}}});var he=o((zv,Nt)=>{"use strict";var Mt=A(),Os=Mt({}.toString),xs=Mt("".slice);Nt.exports=function(e){return xs(Os(e),8,-1)}});var tr=o((Yv,kt)=>{"use strict";var ws=he(),Es=A();kt.exports=function(e){if(ws(e)==="Function")return Es(e)}});var x=o((Hv,Vt)=>{"use strict";var nr=typeof document=="object"&&document.all;Vt.exports=typeof nr>"u"&&nr!==void 0?function(e){return typeof e=="function"||e===nr}:function(e){return typeof e=="function"}});var R=o((Xv,Dt)=>{"use strict";var Ss=E();Dt.exports=!Ss(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var V=o((Jv,Ft)=>{"use strict";var qs=te(),ye=Function.prototype.call;Ft.exports=qs?ye.bind(ye):function(){return ye.apply(ye,arguments)}});var ir=o(Bt=>{"use strict";var Ut={}.propertyIsEnumerable,Gt=Object.getOwnPropertyDescriptor,Rs=Gt&&!Ut.call({1:2},1);Bt.f=Rs?function(r){var t=Gt(this,r);return!!t&&t.enumerable}:Ut});var ne=o((eb,Qt)=>{"use strict";Qt.exports=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}}});var Wt=o((rb,$t)=>{"use strict";var Ps=A(),_s=E(),As=he(),or=Object,Cs=Ps("".split);$t.exports=_s(function(){return!or("z").propertyIsEnumerable(0)})?function(e){return As(e)==="String"?Cs(e,""):or(e)}:or});var ge=o((tb,Kt)=>{"use strict";Kt.exports=function(e){return e==null}});var Ie=o((nb,zt)=>{"use strict";var Ls=ge(),js=TypeError;zt.exports=function(e){if(Ls(e))throw new js("Can't call method on "+e);return e}});var U=o((ib,Yt)=>{"use strict";var Ms=Wt(),Ns=Ie();Yt.exports=function(e){return Ms(Ns(e))}});var L=o((ob,Ht)=>{"use strict";var ks=x();Ht.exports=function(e){return typeof e=="object"?e!==null:ks(e)}});var ie=o((ab,Xt)=>{"use strict";Xt.exports={}});var Oe=o((sb,Zt)=>{"use strict";var ar=ie(),sr=O(),Vs=x(),Jt=function(e){return Vs(e)?e:void 0};Zt.exports=function(e,r){return arguments.length<2?Jt(ar[e])||Jt(sr[e]):ar[e]&&ar[e][r]||sr[e]&&sr[e][r]}});var ur=o((ub,en)=>{"use strict";var Ds=A();en.exports=Ds({}.isPrototypeOf)});var on=o((cb,nn)=>{"use strict";var Fs=O(),rn=Fs.navigator,tn=rn&&rn.userAgent;nn.exports=tn?String(tn):""});var fn=o((lb,pn)=>{"use strict";var ln=O(),cr=on(),an=ln.process,sn=ln.Deno,un=an&&an.versions||sn&&sn.version,cn=un&&un.v8,P,xe;cn&&(P=cn.split("."),xe=P[0]>0&&P[0]<4?1:+(P[0]+P[1]));!xe&&cr&&(P=cr.match(/Edge\/(\d+)/),(!P||P[1]>=74)&&(P=cr.match(/Chrome\/(\d+)/),P&&(xe=+P[1])));pn.exports=xe});var lr=o((pb,bn)=>{"use strict";var vn=fn(),Us=E(),Gs=O(),Bs=Gs.String;bn.exports=!!Object.getOwnPropertySymbols&&!Us(function(){var e=Symbol("symbol detection");return!Bs(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&vn&&vn<41})});var pr=o((fb,dn)=>{"use strict";var Qs=lr();dn.exports=Qs&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var fr=o((vb,mn)=>{"use strict";var $s=Oe(),Ws=x(),Ks=ur(),zs=pr(),Ys=Object;mn.exports=zs?function(e){return typeof e=="symbol"}:function(e){var r=$s("Symbol");return Ws(r)&&Ks(r.prototype,Ys(e))}});var we=o((bb,Tn)=>{"use strict";var Hs=String;Tn.exports=function(e){try{return Hs(e)}catch{return"Object"}}});var oe=o((db,hn)=>{"use strict";var Xs=x(),Js=we(),Zs=TypeError;hn.exports=function(e){if(Xs(e))return e;throw new Zs(Js(e)+" is not a function")}});var Ee=o((mb,yn)=>{"use strict";var eu=oe(),ru=ge();yn.exports=function(e,r){var t=e[r];return ru(t)?void 0:eu(t)}});var In=o((Tb,gn)=>{"use strict";var vr=V(),br=x(),dr=L(),tu=TypeError;gn.exports=function(e,r){var t,n;if(r==="string"&&br(t=e.toString)&&!dr(n=vr(t,e))||br(t=e.valueOf)&&!dr(n=vr(t,e))||r!=="string"&&br(t=e.toString)&&!dr(n=vr(t,e)))return n;throw new tu("Can't convert object to primitive value")}});var ae=o((hb,On)=>{"use strict";On.exports=!0});var En=o((yb,wn)=>{"use strict";var xn=O(),nu=Object.defineProperty;wn.exports=function(e,r){try{nu(xn,e,{value:r,configurable:!0,writable:!0})}catch{xn[e]=r}return r}});var Se=o((gb,Rn)=>{"use strict";var iu=ae(),ou=O(),au=En(),Sn="__core-js_shared__",qn=Rn.exports=ou[Sn]||au(Sn,{});(qn.versions||(qn.versions=[])).push({version:"3.38.0",mode:iu?"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 mr=o((Ib,_n)=>{"use strict";var Pn=Se();_n.exports=function(e,r){return Pn[e]||(Pn[e]=r||{})}});var Tr=o((Ob,An)=>{"use strict";var su=Ie(),uu=Object;An.exports=function(e){return uu(su(e))}});var j=o((xb,Cn)=>{"use strict";var cu=A(),lu=Tr(),pu=cu({}.hasOwnProperty);Cn.exports=Object.hasOwn||function(r,t){return pu(lu(r),t)}});var hr=o((wb,Ln)=>{"use strict";var fu=A(),vu=0,bu=Math.random(),du=fu(1 .toString);Ln.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+du(++vu+bu,36)}});var M=o((Eb,Mn)=>{"use strict";var mu=O(),Tu=mr(),jn=j(),hu=hr(),yu=lr(),gu=pr(),K=mu.Symbol,yr=Tu("wks"),Iu=gu?K.for||K:K&&K.withoutSetter||hu;Mn.exports=function(e){return jn(yr,e)||(yr[e]=yu&&jn(K,e)?K[e]:Iu("Symbol."+e)),yr[e]}});var Dn=o((Sb,Vn)=>{"use strict";var Ou=V(),Nn=L(),kn=fr(),xu=Ee(),wu=In(),Eu=M(),Su=TypeError,qu=Eu("toPrimitive");Vn.exports=function(e,r){if(!Nn(e)||kn(e))return e;var t=xu(e,qu),n;if(t){if(r===void 0&&(r="default"),n=Ou(t,e,r),!Nn(n)||kn(n))return n;throw new Su("Can't convert object to primitive value")}return r===void 0&&(r="number"),wu(e,r)}});var gr=o((qb,Fn)=>{"use strict";var Ru=Dn(),Pu=fr();Fn.exports=function(e){var r=Ru(e,"string");return Pu(r)?r:r+""}});var Or=o((Rb,Gn)=>{"use strict";var _u=O(),Un=L(),Ir=_u.document,Au=Un(Ir)&&Un(Ir.createElement);Gn.exports=function(e){return Au?Ir.createElement(e):{}}});var xr=o((Pb,Bn)=>{"use strict";var Cu=R(),Lu=E(),ju=Or();Bn.exports=!Cu&&!Lu(function(){return Object.defineProperty(ju("div"),"a",{get:function(){return 7}}).a!==7})});var Wn=o($n=>{"use strict";var Mu=R(),Nu=V(),ku=ir(),Vu=ne(),Du=U(),Fu=gr(),Uu=j(),Gu=xr(),Qn=Object.getOwnPropertyDescriptor;$n.f=Mu?Qn:function(r,t){if(r=Du(r),t=Fu(t),Gu)try{return Qn(r,t)}catch{}if(Uu(r,t))return Vu(!Nu(ku.f,r,t),r[t])}});var zn=o((Ab,Kn)=>{"use strict";var Bu=E(),Qu=x(),$u=/#|\.prototype\./,se=function(e,r){var t=Ku[Wu(e)];return t===Yu?!0:t===zu?!1:Qu(r)?Bu(r):!!r},Wu=se.normalize=function(e){return String(e).replace($u,".").toLowerCase()},Ku=se.data={},zu=se.NATIVE="N",Yu=se.POLYFILL="P";Kn.exports=se});var wr=o((Cb,Hn)=>{"use strict";var Yn=tr(),Hu=oe(),Xu=te(),Ju=Yn(Yn.bind);Hn.exports=function(e,r){return Hu(e),r===void 0?e:Xu?Ju(e,r):function(){return e.apply(r,arguments)}}});var Er=o((Lb,Xn)=>{"use strict";var Zu=R(),ec=E();Xn.exports=Zu&&ec(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var G=o((jb,Jn)=>{"use strict";var rc=L(),tc=String,nc=TypeError;Jn.exports=function(e){if(rc(e))return e;throw new nc(tc(e)+" is not an object")}});var z=o(ei=>{"use strict";var ic=R(),oc=xr(),ac=Er(),qe=G(),Zn=gr(),sc=TypeError,Sr=Object.defineProperty,uc=Object.getOwnPropertyDescriptor,qr="enumerable",Rr="configurable",Pr="writable";ei.f=ic?ac?function(r,t,n){if(qe(r),t=Zn(t),qe(n),typeof r=="function"&&t==="prototype"&&"value"in n&&Pr in n&&!n[Pr]){var i=uc(r,t);i&&i[Pr]&&(r[t]=n.value,n={configurable:Rr in n?n[Rr]:i[Rr],enumerable:qr in n?n[qr]:i[qr],writable:!1})}return Sr(r,t,n)}:Sr:function(r,t,n){if(qe(r),t=Zn(t),qe(n),oc)try{return Sr(r,t,n)}catch{}if("get"in n||"set"in n)throw new sc("Accessors not supported");return"value"in n&&(r[t]=n.value),r}});var Y=o((Nb,ri)=>{"use strict";var cc=R(),lc=z(),pc=ne();ri.exports=cc?function(e,r,t){return lc.f(e,r,pc(1,t))}:function(e,r,t){return e[r]=t,e}});var ce=o((kb,ni)=>{"use strict";var ue=O(),fc=At(),vc=tr(),bc=x(),dc=Wn().f,mc=zn(),H=ie(),Tc=wr(),X=Y(),ti=j();Se();var hc=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,a=e.proto,s=n?ue:i?ue[t]:ue[t]&&ue[t].prototype,u=n?H:H[t]||X(H,t,{})[t],p=u.prototype,l,v,c,b,d,T,h,I,y;for(b in r)l=mc(n?b:t+(i?".":"#")+b,e.forced),v=!l&&s&&ti(s,b),T=u[b],v&&(e.dontCallGetSet?(y=dc(s,b),h=y&&y.value):h=s[b]),d=v&&h?h:r[b],!(!l&&!a&&typeof T==typeof d)&&(e.bind&&v?I=Tc(d,ue):e.wrap&&v?I=hc(d):a&&bc(d)?I=vc(d):I=d,(e.sham||d&&d.sham||T&&T.sham)&&X(I,"sham",!0),X(u,b,I),a&&(c=t+"Prototype",ti(H,c)||X(H,c,{}),X(H[c],b,d),e.real&&p&&(l||!p[b])&&X(p,b,d)))}});var oi=o((Vb,ii)=>{"use strict";var yc=Math.ceil,gc=Math.floor;ii.exports=Math.trunc||function(r){var t=+r;return(t>0?gc:yc)(t)}});var _r=o((Db,ai)=>{"use strict";var Ic=oi();ai.exports=function(e){var r=+e;return r!==r||r===0?0:Ic(r)}});var ui=o((Fb,si)=>{"use strict";var Oc=_r(),xc=Math.max,wc=Math.min;si.exports=function(e,r){var t=Oc(e);return t<0?xc(t+r,0):wc(t,r)}});var li=o((Ub,ci)=>{"use strict";var Ec=_r(),Sc=Math.min;ci.exports=function(e){var r=Ec(e);return r>0?Sc(r,9007199254740991):0}});var Ar=o((Gb,pi)=>{"use strict";var qc=li();pi.exports=function(e){return qc(e.length)}});var Cr=o((Bb,vi)=>{"use strict";var Rc=U(),Pc=ui(),_c=Ar(),fi=function(e){return function(r,t,n){var i=Rc(r),a=_c(i);if(a===0)return!e&&-1;var s=Pc(n,a),u;if(e&&t!==t){for(;a>s;)if(u=i[s++],u!==u)return!0}else for(;a>s;s++)if((e||s in i)&&i[s]===t)return e||s||0;return!e&&-1}};vi.exports={includes:fi(!0),indexOf:fi(!1)}});var Lr=o((Qb,bi)=>{"use strict";bi.exports=function(){}});var di=o(()=>{"use strict";var Ac=ce(),Cc=Cr().includes,Lc=E(),jc=Lr(),Mc=Lc(function(){return!Array(1).includes()});Ac({target:"Array",proto:!0,forced:Mc},{includes:function(r){return Cc(this,r,arguments.length>1?arguments[1]:void 0)}});jc("includes")});var Ti=o((Kb,mi)=>{"use strict";var Nc=Oe();mi.exports=Nc});var yi=o((zb,hi)=>{"use strict";di();var kc=Ti();hi.exports=kc("Array","includes")});var Ii=o((Yb,gi)=>{"use strict";var Vc=yi();gi.exports=Vc});var xi=o((Hb,Oi)=>{"use strict";var Dc=Ii();Oi.exports=Dc});var Ae=o((am,Pi)=>{"use strict";var ll=mr(),pl=hr(),Ri=ll("keys");Pi.exports=function(e){return Ri[e]||(Ri[e]=pl(e))}});var Ai=o((sm,_i)=>{"use strict";var fl=E();_i.exports=!fl(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var Ce=o((um,Li)=>{"use strict";var vl=j(),bl=x(),dl=Tr(),ml=Ae(),Tl=Ai(),Ci=ml("IE_PROTO"),Ur=Object,hl=Ur.prototype;Li.exports=Tl?Ur.getPrototypeOf:function(e){var r=dl(e);if(vl(r,Ci))return r[Ci];var t=r.constructor;return bl(t)&&r instanceof t?t.prototype:r instanceof Ur?hl:null}});var Le=o((cm,ji)=>{"use strict";ji.exports={}});var ki=o((lm,Ni)=>{"use strict";var yl=A(),Gr=j(),gl=U(),Il=Cr().indexOf,Ol=Le(),Mi=yl([].push);Ni.exports=function(e,r){var t=gl(e),n=0,i=[],a;for(a in t)!Gr(Ol,a)&&Gr(t,a)&&Mi(i,a);for(;r.length>n;)Gr(t,a=r[n++])&&(~Il(i,a)||Mi(i,a));return i}});var Br=o((pm,Vi)=>{"use strict";Vi.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var Qr=o((fm,Di)=>{"use strict";var xl=ki(),wl=Br();Di.exports=Object.keys||function(r){return xl(r,wl)}});var $i=o((vm,Qi)=>{"use strict";var Ui=R(),El=E(),Gi=A(),Sl=Ce(),ql=Qr(),Rl=U(),Pl=ir().f,Bi=Gi(Pl),_l=Gi([].push),Al=Ui&&El(function(){var e=Object.create(null);return e[2]=2,!Bi(e,2)}),Fi=function(e){return function(r){for(var t=Rl(r),n=ql(t),i=Al&&Sl(t)===null,a=n.length,s=0,u=[],p;a>s;)p=n[s++],(!Ui||(i?p in t:Bi(t,p)))&&_l(u,e?[p,t[p]]:t[p]);return u}};Qi.exports={entries:Fi(!0),values:Fi(!1)}});var Wi=o(()=>{"use strict";var Cl=ce(),Ll=$i().entries;Cl({target:"Object",stat:!0},{entries:function(r){return Ll(r)}})});var zi=o((mm,Ki)=>{"use strict";Wi();var jl=ie();Ki.exports=jl.Object.entries});var Hi=o((Tm,Yi)=>{"use strict";var Ml=zi();Yi.exports=Ml});var $r=o((hm,Xi)=>{"use strict";var Nl=Hi();Xi.exports=Nl});var Q=o((jT,vo)=>{"use strict";vo.exports={}});var To=o((MT,mo)=>{"use strict";var Ql=O(),$l=x(),bo=Ql.WeakMap;mo.exports=$l(bo)&&/native code/.test(String(bo))});var Io=o((NT,go)=>{"use strict";var Wl=To(),yo=O(),Kl=L(),zl=Y(),rt=j(),tt=Se(),Yl=Ae(),Hl=Le(),ho="Object already initialized",nt=yo.TypeError,Xl=yo.WeakMap,ke,fe,Ve,Jl=function(e){return Ve(e)?fe(e):ke(e,{})},Zl=function(e){return function(r){var t;if(!Kl(r)||(t=fe(r)).type!==e)throw new nt("Incompatible receiver, "+e+" required");return t}};Wl||tt.state?(_=tt.state||(tt.state=new Xl),_.get=_.get,_.has=_.has,_.set=_.set,ke=function(e,r){if(_.has(e))throw new nt(ho);return r.facade=e,_.set(e,r),r},fe=function(e){return _.get(e)||{}},Ve=function(e){return _.has(e)}):($=Yl("state"),Hl[$]=!0,ke=function(e,r){if(rt(e,$))throw new nt(ho);return r.facade=e,zl(e,$,r),r},fe=function(e){return rt(e,$)?e[$]:{}},Ve=function(e){return rt(e,$)});var _,$;go.exports={set:ke,get:fe,has:Ve,enforce:Jl,getterFor:Zl}});var wo=o((kT,xo)=>{"use strict";var it=R(),ep=j(),Oo=Function.prototype,rp=it&&Object.getOwnPropertyDescriptor,ot=ep(Oo,"name"),tp=ot&&function(){}.name==="something",np=ot&&(!it||it&&rp(Oo,"name").configurable);xo.exports={EXISTS:ot,PROPER:tp,CONFIGURABLE:np}});var So=o(Eo=>{"use strict";var ip=R(),op=Er(),ap=z(),sp=G(),up=U(),cp=Qr();Eo.f=ip&&!op?Object.defineProperties:function(r,t){sp(r);for(var n=up(t),i=cp(t),a=i.length,s=0,u;a>s;)ap.f(r,u=i[s++],n[u]);return r}});var Ro=o((DT,qo)=>{"use strict";var lp=Oe();qo.exports=lp("document","documentElement")});var ct=o((FT,Mo)=>{"use strict";var pp=G(),fp=So(),Po=Br(),vp=Le(),bp=Ro(),dp=Or(),mp=Ae(),_o=">",Ao="<",st="prototype",ut="script",Lo=mp("IE_PROTO"),at=function(){},jo=function(e){return Ao+ut+_o+e+Ao+"/"+ut+_o},Co=function(e){e.write(jo("")),e.close();var r=e.parentWindow.Object;return e=null,r},Tp=function(){var e=dp("iframe"),r="java"+ut+":",t;return e.style.display="none",bp.appendChild(e),e.src=String(r),t=e.contentWindow.document,t.open(),t.write(jo("document.F=Object")),t.close(),t.F},De,Fe=function(){try{De=new ActiveXObject("htmlfile")}catch{}Fe=typeof document<"u"?document.domain&&De?Co(De):Tp():Co(De);for(var e=Po.length;e--;)delete Fe[st][Po[e]];return Fe()};vp[Lo]=!0;Mo.exports=Object.create||function(r,t){var n;return r!==null?(at[st]=pp(r),n=new at,at[st]=null,n[Lo]=r):n=Fe(),t===void 0?n:fp.f(n,t)}});var lt=o((UT,No)=>{"use strict";var hp=Y();No.exports=function(e,r,t,n){return n&&n.enumerable?e[r]=t:hp(e,r,t),e}});var bt=o((GT,Do)=>{"use strict";var yp=E(),gp=x(),Ip=L(),Op=ct(),ko=Ce(),xp=lt(),wp=M(),Ep=ae(),vt=wp("iterator"),Vo=!1,N,pt,ft;[].keys&&(ft=[].keys(),"next"in ft?(pt=ko(ko(ft)),pt!==Object.prototype&&(N=pt)):Vo=!0);var Sp=!Ip(N)||yp(function(){var e={};return N[vt].call(e)!==e});Sp?N={}:Ep&&(N=Op(N));gp(N[vt])||xp(N,vt,function(){return this});Do.exports={IteratorPrototype:N,BUGGY_SAFARI_ITERATORS:Vo}});var Ue=o((BT,Uo)=>{"use strict";var qp=M(),Rp=qp("toStringTag"),Fo={};Fo[Rp]="z";Uo.exports=String(Fo)==="[object z]"});var dt=o((QT,Go)=>{"use strict";var Pp=Ue(),_p=x(),Ge=he(),Ap=M(),Cp=Ap("toStringTag"),Lp=Object,jp=Ge(function(){return arguments}())==="Arguments",Mp=function(e,r){try{return e[r]}catch{}};Go.exports=Pp?Ge:function(e){var r,t,n;return e===void 0?"Undefined":e===null?"Null":typeof(t=Mp(r=Lp(e),Cp))=="string"?t:jp?Ge(r):(n=Ge(r))==="Object"&&_p(r.callee)?"Arguments":n}});var Qo=o(($T,Bo)=>{"use strict";var Np=Ue(),kp=dt();Bo.exports=Np?{}.toString:function(){return"[object "+kp(this)+"]"}});var Be=o((WT,Wo)=>{"use strict";var Vp=Ue(),Dp=z().f,Fp=Y(),Up=j(),Gp=Qo(),Bp=M(),$o=Bp("toStringTag");Wo.exports=function(e,r,t,n){var i=t?e:e&&e.prototype;i&&(Up(i,$o)||Dp(i,$o,{configurable:!0,value:r}),n&&!Vp&&Fp(i,"toString",Gp))}});var zo=o((KT,Ko)=>{"use strict";var Qp=bt().IteratorPrototype,$p=ct(),Wp=ne(),Kp=Be(),zp=Q(),Yp=function(){return this};Ko.exports=function(e,r,t,n){var i=r+" Iterator";return e.prototype=$p(Qp,{next:Wp(+!n,t)}),Kp(e,i,!1,!0),zp[i]=Yp,e}});var Ho=o((zT,Yo)=>{"use strict";var Hp=A(),Xp=oe();Yo.exports=function(e,r,t){try{return Hp(Xp(Object.getOwnPropertyDescriptor(e,r)[t]))}catch{}}});var Jo=o((YT,Xo)=>{"use strict";var Jp=L();Xo.exports=function(e){return Jp(e)||e===null}});var ea=o((HT,Zo)=>{"use strict";var Zp=Jo(),ef=String,rf=TypeError;Zo.exports=function(e){if(Zp(e))return e;throw new rf("Can't set "+ef(e)+" as a prototype")}});var ta=o((XT,ra)=>{"use strict";var tf=Ho(),nf=L(),of=Ie(),af=ea();ra.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,r={},t;try{t=tf(Object.prototype,"__proto__","set"),t(r,[]),e=r instanceof Array}catch{}return function(i,a){return of(i),af(a),nf(i)&&(e?t(i,a):i.__proto__=a),i}}():void 0)});var va=o((JT,fa)=>{"use strict";var sf=ce(),uf=V(),Qe=ae(),la=wo(),cf=x(),lf=zo(),na=Ce(),ia=ta(),pf=Be(),ff=Y(),mt=lt(),vf=M(),oa=Q(),pa=bt(),bf=la.PROPER,df=la.CONFIGURABLE,aa=pa.IteratorPrototype,$e=pa.BUGGY_SAFARI_ITERATORS,ve=vf("iterator"),sa="keys",be="values",ua="entries",ca=function(){return this};fa.exports=function(e,r,t,n,i,a,s){lf(t,r,n);var u=function(y){if(y===i&&b)return b;if(!$e&&y&&y in v)return v[y];switch(y){case sa:return function(){return new t(this,y)};case be:return function(){return new t(this,y)};case ua:return function(){return new t(this,y)}}return function(){return new t(this)}},p=r+" Iterator",l=!1,v=e.prototype,c=v[ve]||v["@@iterator"]||i&&v[i],b=!$e&&c||u(i),d=r==="Array"&&v.entries||c,T,h,I;if(d&&(T=na(d.call(new e)),T!==Object.prototype&&T.next&&(!Qe&&na(T)!==aa&&(ia?ia(T,aa):cf(T[ve])||mt(T,ve,ca)),pf(T,p,!0,!0),Qe&&(oa[p]=ca))),bf&&i===be&&c&&c.name!==be&&(!Qe&&df?ff(v,"name",be):(l=!0,b=function(){return uf(c,this)})),i)if(h={values:u(be),keys:a?b:u(sa),entries:u(ua)},s)for(I in h)($e||l||!(I in v))&&mt(v,I,h[I]);else sf({target:r,proto:!0,forced:$e||l},h);return(!Qe||s)&&v[ve]!==b&&mt(v,ve,b,{name:i}),oa[r]=b,h}});var da=o((ZT,ba)=>{"use strict";ba.exports=function(e,r){return{value:e,done:r}}});var ht=o((eh,ga)=>{"use strict";var mf=U(),Tt=Lr(),ma=Q(),ha=Io(),Tf=z().f,hf=va(),We=da(),yf=ae(),gf=R(),ya="Array Iterator",If=ha.set,Of=ha.getterFor(ya);ga.exports=hf(Array,"Array",function(e,r){If(this,{type:ya,target:mf(e),index:0,kind:r})},function(){var e=Of(this),r=e.target,t=e.index++;if(!r||t>=r.length)return e.target=void 0,We(void 0,!0);switch(e.kind){case"keys":return We(t,!1);case"values":return We(r[t],!1)}return We([t,r[t]],!1)},"values");var Ta=ma.Arguments=ma.Array;Tt("keys");Tt("values");Tt("entries");if(!yf&&gf&&Ta.name!=="values")try{Tf(Ta,"name",{value:"values"})}catch{}});var Oa=o((rh,Ia)=>{"use strict";var xf=M(),wf=Q(),Ef=xf("iterator"),Sf=Array.prototype;Ia.exports=function(e){return e!==void 0&&(wf.Array===e||Sf[Ef]===e)}});var yt=o((th,wa)=>{"use strict";var qf=dt(),xa=Ee(),Rf=ge(),Pf=Q(),_f=M(),Af=_f("iterator");wa.exports=function(e){if(!Rf(e))return xa(e,Af)||xa(e,"@@iterator")||Pf[qf(e)]}});var Sa=o((nh,Ea)=>{"use strict";var Cf=V(),Lf=oe(),jf=G(),Mf=we(),Nf=yt(),kf=TypeError;Ea.exports=function(e,r){var t=arguments.length<2?Nf(e):r;if(Lf(t))return jf(Cf(t,e));throw new kf(Mf(e)+" is not iterable")}});var Pa=o((ih,Ra)=>{"use strict";var Vf=V(),qa=G(),Df=Ee();Ra.exports=function(e,r,t){var n,i;qa(e);try{if(n=Df(e,"return"),!n){if(r==="throw")throw t;return t}n=Vf(n,e)}catch(a){i=!0,n=a}if(r==="throw")throw t;if(i)throw n;return qa(n),t}});var ja=o((oh,La)=>{"use strict";var Ff=wr(),Uf=V(),Gf=G(),Bf=we(),Qf=Oa(),$f=Ar(),_a=ur(),Wf=Sa(),Kf=yt(),Aa=Pa(),zf=TypeError,Ke=function(e,r){this.stopped=e,this.result=r},Ca=Ke.prototype;La.exports=function(e,r,t){var n=t&&t.that,i=!!(t&&t.AS_ENTRIES),a=!!(t&&t.IS_RECORD),s=!!(t&&t.IS_ITERATOR),u=!!(t&&t.INTERRUPTED),p=Ff(r,n),l,v,c,b,d,T,h,I=function(g){return l&&Aa(l,"normal",g),new Ke(!0,g)},y=function(g){return i?(Gf(g),u?p(g[0],g[1],I):p(g[0],g[1])):u?p(g,I):p(g)};if(a)l=e.iterator;else if(s)l=e;else{if(v=Kf(e),!v)throw new zf(Bf(e)+" is not iterable");if(Qf(v)){for(c=0,b=$f(e);b>c;c++)if(d=y(e[c]),d&&_a(Ca,d))return d;return new Ke(!1)}l=Wf(e,v)}for(T=a?e.next:l.next;!(h=Uf(T,l)).done;){try{d=y(h.value)}catch(g){Aa(l,"throw",g)}if(typeof d=="object"&&d&&_a(Ca,d))return d}return new Ke(!1)}});var Na=o((ah,Ma)=>{"use strict";var Yf=R(),Hf=z(),Xf=ne();Ma.exports=function(e,r,t){Yf?Hf.f(e,r,Xf(0,t)):e[r]=t}});var ka=o(()=>{"use strict";var Jf=ce(),Zf=ja(),ev=Na();Jf({target:"Object",stat:!0},{fromEntries:function(r){var t={};return Zf(r,function(n,i){ev(t,n,i)},{AS_ENTRIES:!0}),t}})});var Da=o((ch,Va)=>{"use strict";ht();ka();var rv=ie();Va.exports=rv.Object.fromEntries});var Ua=o((lh,Fa)=>{"use strict";Fa.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}});var Ba=o(()=>{"use strict";ht();var tv=Ua(),nv=O(),iv=Be(),Ga=Q();for(ze in tv)iv(nv[ze],ze),Ga[ze]=Ga.Array;var ze});var $a=o((vh,Qa)=>{"use strict";var ov=Da();Ba();Qa.exports=ov});var Ka=o((bh,Wa)=>{"use strict";var av=$a();Wa.exports=av});var as="1.0.50-dev.e0ca2fd5.0";var w=class{constructor(){this.subscriptions=[]}unsubscribe(){let r=this.subscriptions;this.subscriptions=[],r.forEach(t=>typeof t=="function"?t():t.unsubscribe())}add(r){return this.subscriptions.push(r),this}};var C=e=>{throw new Error(`${e} is value of unexpected type`)},ss=e=>{};var F=()=>{};var f=class{constructor(r){r&&(this._subscribe=r)}subscribe(r,t){let n;t?typeof t=="function"?n={next:t,error:F}:n={next:s=>t.next(s),error:s=>t.error?.(s)}:n={next:F,error:F};let i=typeof r=="function"?{next:s=>{try{r(s)}catch(u){n.next(u)}},error:s=>n.next(s)}:{next:s=>r.next(s),error:s=>r.error?r.error(s):n.next(s)},a;try{a=this._subscribe(i)}catch(s){i.error?.(s)}return new w().add(()=>{switch(i.next=F,i.error=F,typeof a){case"function":a();return;case"object":a.unsubscribe();return;case"undefined":return;default:return C(a)}})}pipe(...r){return r.reduce((t,n)=>n(t),this)}_subscribe(r){}};var k=class extends f{constructor(){super();this.keyCounter=0;this.subscribers=new Map}next(t){this.subscribers.forEach(n=>n.next(t))}error(t){this.subscribers.forEach(n=>n.error?.(t))}_subscribe(t){let n=this.keyCounter++;return this.subscribers.set(n,t),new w().add(()=>this.subscribers.delete(n))}};var He=class{constructor(){this.log$=new k;this.logs=[];this.log=r=>{let t={...r,timestamp:Date.now()};this.logs.push(t),this.log$.next(t)};this.getAllLogs=()=>this.logs}createCustomLog(r){return(...t)=>{let n;try{n=r(...t)}catch{n={message:"error in `createCustomLog`",component:"Logger"}}this.log(n)}}createComponentLog(r){return this.createCustomLog(t=>({component:r,...t}))}};import{trace as us,context as cs}from"@opentelemetry/api";import{TracerAllSpansProcessor as ls,TracerMemorySpanExporter as xt,initTracerOpenTelemetry as ps}from"@tracer/opentelemetry";var Xe=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}},Je=class e{constructor({name:r,parentContext:t,tracer:n}){this.childTracers=[];let i=!n;if(i){let s=ps({serviceName:"videoplayer-sdk-web",appToken:"L9SBoka6ZWk4xPjaK7tmfSfYvMhcge7nvGDjpdMmscb",spanLimits:{attributeCountLimit:1/0,eventCountLimit:1/0,attributePerEventCountLimit:1/0}}).getProvider(),u=new xt,p=new xt;this.spanExporter=u,s.addSpanProcessor(new ls({startedSpansExporter:u,endedSpansExporter:p})),this.tracer=s.getTracer("sdk-videoplayer-tracer")}else this.tracer=n;this.span=this.tracer.startSpan(r,{root:i},t),this.context=us.setSpan(cs.active(),this.span)}log(r,t){this.span.addEvent(r,{...t,type:"log"})}error(r,t){this.span.addEvent(r,{...t,type:"error"})}critical(r,t){this.span.addEvent(r,{...t,type:"critical"})}static createRootTracer(r=!1){return r?new e({name:"Root"}):new Xe({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(){return this.spanExporter?.getJsonData()}getTraceId(){return this.span.spanContext().traceId}};function fs(e,r='Assertion "value is not nullable" failed'){if(e==null)throw new Error(r)}function vs(e,r='Assertion "value is nullable" failed'){if(e!=null)throw new Error(r)}function W(e){return typeof e<"u"&&e!==null}function Ze(e){return e==null}function bs(e,r){if(!e?.length)throw new Error(r)}function ds(e,r){if(e?.length)throw new Error(r)}var ms=(e,r,t)=>new Promise((n,i)=>{r.addEventListener("abort",()=>{u(),l.remove()});let a=()=>{u(),i()},s=()=>{u(),n()},u=()=>{p&&clearTimeout(p),l.removeEventListener("load",s),l.removeEventListener("error",a)},p;t&&(p=window.setTimeout(a,t));let l=document.createElement("script");l.addEventListener("load",s),l.addEventListener("error",a),l.src=e,document.head.appendChild(l)});var Ts=typeof window.performance?.now=="function"?()=>window.performance.now():()=>Date.now();var hs=(e,r)=>async(...t)=>{let n=r(...t),i=e.aborted,a;for(;!i&&!e.aborted;)try{let s=await n.next(a);i=s.done??!1,a=s.value}catch(s){await n.throw(s)}return a};var wi=Te(xi(),1);var Ei=()=>/Mobile|mini|Fennec|Android|iP(ad|od|hone)/.test(navigator.appVersion??navigator.userAgent)||navigator?.userAgentData?.mobile,jr=class{constructor(){this.detect()}get browser(){return this._currentBrowser}get device(){return this._currentDevice}get isTouch(){return this._maxTouchPoints>0}get isIOS(){return(0,wi.default)(["iPhone","iPad","iPod"],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?.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(){let{userAgent:r,maxTouchPoints:t}=navigator;try{this._maxTouchPoints=t,this._isHdr=!!matchMedia("(dynamic-range: high)")?.matches}catch(n){console.error(n)}try{this._isMobile=Ei()}catch(n){console.error(n)}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,a=/chromium/i.test(r)?"Chromium":void 0,s=/firefox|fxios/i.test(r)?"Firefox":void 0,u=/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||s||p||l||i||a||u||"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,a=/ipod/i.test(r)?"iPod":void 0,s=/mac/i.test(r)?"Mac":void 0,u=/webOS|BlackBerry|IEMobile|Opera Mini/i.test(r)?"RestMobile":void 0;this._currentDevice=t||n||i||a||u||s||"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)}}},Fc=new jr;var Uc=(e,{start:r=0,factor:t=2,max:n=1/0,min:i=r,random:a=0}={})=>{let s=r;return s*=t**e,s*=1+(Math.random()*a*2-a),s=Math.round(s),s=Math.min(s,n),s=Math.max(s,i),s};var Si={};is(Si,{clear:()=>Kc,get:()=>Bc,has:()=>$c,isPersistent:()=>Gc,remove:()=>Wc,set:()=>Qc});var J,B,Mr=`vk-videoplayer-dummy-key-${Math.random()}`,Z=()=>{if(B!==void 0)return B;try{localStorage.setItem(Mr,"test"),localStorage.removeItem(Mr),B=0}catch(e){if(e instanceof DOMException||e instanceof TypeError)try{sessionStorage.getItem(Mr),B=1}catch(r){if(r instanceof DOMException||r instanceof TypeError)B=2;else throw r}else throw e}return B===2&&(J=new Map),B},Gc=()=>Z()===0,Bc=e=>{let r=Z();switch(r){case 0:return localStorage.getItem(e)??void 0;case 1:return sessionStorage.getItem(e)??void 0;case 2:return J?.get(e);default:C(r)}},Qc=(e,r)=>{let t=Z();switch(t){case 0:try{localStorage.setItem(e,r)}catch(n){if(n instanceof DOMException)console.error(n);else throw n}break;case 1:try{sessionStorage.setItem(e,r)}catch(n){if(n instanceof DOMException)console.error(n);else throw n}break;case 2:return void J?.set(e,r);default:C(t)}},$c=e=>{let r=Z();switch(r){case 0:return e in localStorage;case 1:return e in sessionStorage;case 2:return J?.has(e)??!1;default:return C(r),!1}},Wc=e=>{let r=Z();switch(r){case 0:return localStorage.removeItem(e);case 1:return sessionStorage.removeItem(e);case 2:return void J?.delete(e);default:C(r)}},Kc=()=>{let e=Z();switch(e){case 0:return localStorage.clear();case 1:return sessionStorage.clear();case 2:return J?.clear();default:C(e)}};var zc=()=>{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 Nr=(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))(Nr||{});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}},Yc=(e,r)=>S[e].height>S[r].height,Hc=(e,r)=>S[e].height>=S[r].height,kr=(e,r)=>S[e].height<S[r].height,Xc=(e,r)=>S[e].height<=S[r].height,Jc=e=>e.sort((r,t)=>r===t?0:r==="Invariant quality"?1:t==="Invariant quality"?-1:kr(r,t)?1:-1)[0],qi=Object.keys(S).sort((e,r)=>kr(e,r)?-1:1),Zc=(e,r=.02)=>[...qi].find(n=>S[n].height*(1+r)>=e),el=({width:e,height:r})=>{let t=Math.min(e,r),n=Math.max(e,r);return qi.find(i=>{let a=S[i];return a.width>=n&&a.height>=t})},rl=e=>S[e].height,Vr=e=>e==="Invariant quality",tl=e=>e.every(r=>!Vr(r));function nl(e){if(Vr(e))throw new Error("Expected exact quality")}var il=(e,r)=>{let t={};for(let n of Object.keys(r)){let i=r[n],a=e[n];Array.isArray(i)&&Array.isArray(a)?t[n]=a:typeof i=="object"&&typeof a=="object"?t[n]=il(a,i):t[n]=n in e?a:i}return t};var od=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 Dr(e,r=0,t){let n,i,a,s,u,p,l=0,v=!1,c=!1,b=!0,d=!r&&r!==0&&typeof window.requestAnimationFrame=="function";t&&(v=!!t.leading,c="maxWait"in t,a=t?.maxWait?Math.max(+t?.maxWait||0,r):a,b="trailing"in t?!!t.trailing:b);function T(m){let q=n,D=i;return n=i=void 0,l=m,s=e.apply(D,q),s}function h(m,q){return d?(u&&window.cancelAnimationFrame(u),window.requestAnimationFrame(m)):setTimeout(m,q)}function I(m){if(d){window.cancelAnimationFrame(m);return}clearTimeout(m)}function y(m){return l=m,u=h(de,r),v?T(m):s}function g(m){let q=m-p,D=m-l,Ot=r-q;return c?Math.min(Ot,a-D):Ot}function gt(m){let q=m-p,D=m-l;return p===void 0||q>=r||q<0||c&&D>=a}function de(){let m=Date.now();if(gt(m))return It(m);u=h(de,g(m))}function It(m){return u=void 0,b&&n?T(m):(n=i=void 0,s)}function Ha(){u!==void 0&&I(u),l=0,n=p=i=u=void 0}function Xa(){return u===void 0?s:It(Date.now())}function Ja(){return u!==void 0}function me(...m){let q=Date.now(),D=gt(q);if(n=m,i=this,p=q,D){if(u===void 0)return y(p);if(c)return u=h(de,r),T(p)}return u===void 0&&(u=h(de,r)),s}return me.cancel=Ha,me.flush=Xa,me.pending=Ja,me}var Fr=(e,r=0,t)=>Dr(e,r,{...{leading:!0,trailing:!0},...t,maxWait:r});var Re=(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]=Re(e[n],r):t[n]=e[n]}return t};var ol=e=>Re(e);var al=300,sl=(e,r=al)=>new f(t=>{let{width:n,height:i}=e.getBoundingClientRect();if(t.next({width:n,height:i}),!window.ResizeObserver)return;let a=new ResizeObserver(Fr(s=>{let u=s[0];if(!u)return;let p,l;u.contentBoxSize&&u.contentBoxSize[0]?(l=u.contentBoxSize[0].blockSize,p=u.contentBoxSize[0].inlineSize):u.contentRect&&(p=u.contentRect.width,l=u.contentRect.height),W(p)&&W(l)&&t.next({width:p,height:l})},r));return a.observe(e),()=>a.disconnect()});var Pe=(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 a=Pe(e[i],r-1);for(let s in a)a.hasOwnProperty(s)&&(n[i+t+s]=a[s])}else n[i]=e[i];return n};var ul=e=>{e.removeAttribute("src"),e.load()};var hd=e=>{let r;try{r=new URL(e)}catch{return!1}return r.protocol==="https:"};var gd=e=>{try{return new URL(e)}catch{return null}};var cl=e=>r=>t=>{let n=typeof t=="object";t==null||n&&!Object.keys(t).length||e(r,n?Pe(t):{value:t})};var _e=class extends k{constructor(r){super(),this.value=r}next(r){super.next(this.value=r)}error(r){super.error(this.value=r)}getValue(){return this.value}_subscribe(r){let t=super._subscribe(r);return r.next(this.value),t}};var Ji=Te($r(),1);function Zi(e){return new f(r=>{let t={},n=Object.keys(e).length,i=a=>s=>{a in t||n--,t[a]=s,n===0&&r.next(t)};return(0,Ji.default)(e).reduce((a,[s,u])=>a.add(u.subscribe(i(s))),new w)})}function eo(...e){return new f(r=>e.reduce((t,n)=>t.add(n.subscribe(r)),new w))}var kl=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 Vl=e=>new f(r=>{let t=window.setInterval(()=>r.next(),e);return()=>{t&&(window.clearInterval(t),t=void 0)}});var Dl=e=>new f(r=>{e.forEach(t=>r.next(t))});var Fl=(e,r)=>new f(t=>{let n=i=>t.next(i);return e.addEventListener(r,n),()=>e.removeEventListener(r,n)});function ro(e){return r=>new f(t=>r.subscribe(new Wr(t,e)))}var Wr=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){this.destination.error?.(r)}};var Ul={leading:!1,trailing:!0};function to(e,r=Ul){return t=>new f(n=>t.subscribe(new Kr(n,e,r)))}var Kr=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){this.destination.error?.(r)}};var Gl={leading:!0,trailing:!1};function no(e,r=Gl){return t=>new f(n=>t.subscribe(new zr(n,e,r)))}var zr=class{constructor(r,t,n){this.destination=r;this.time=t;this.config=n}next(r){this.lastValue=r,Ze(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){this.destination.error?.(r)}};function io(e){return r=>new f(t=>r.subscribe(new Yr(t,e)))}var Yr=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){this.destination.error?.(r)}};function ao(e=(r,t)=>r===t){return r=>new f(t=>r.subscribe(new Hr(t,e)))}var oo={},Hr=class{constructor(r,t){this.destination=r;this.predicate=t;this.lastValue=oo}next(r){let t;try{t=this.lastValue===oo||!this.predicate(this.lastValue,r),this.lastValue=r}catch(n){throw this.error(n),n}t&&this.destination.next(r)}error(r){this.destination.error?.(r)}};function je(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){this.destination.error?.(r)}};function so(e){return je(()=>e)}function uo(){return e=>new f(r=>{let t=!1,n=!1,i=e.subscribe(a=>{t||(t=!0,r.next(a)),n&&i.unsubscribe()},a=>{t=!0,r.error?.(a),n&&i.unsubscribe()});return n=!0,t&&i.unsubscribe(),i})}function co(){return e=>new f(r=>e.subscribe(new Jr(r)))}var Jr=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){this.destination.error?.(r)}};function lo(e){return r=>new f(t=>r.subscribe(new Zr(t,e)))}var Zr=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){this.destination.error?.(r)}};var Bl=(u=>(u.NETWORK="network",u.VIDEO_PIPELINE="video_pipeline",u.EXTERNAL_API="external_api",u.PARSER="parser",u.DOM="dom",u.WTF="wtf",u.FATAL="fatal",u))(Bl||{});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,a=n.length;i<a;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,a=n.length;i<a;i++){let s=n[i];try{s.callback.call(this,r)}catch(u){Promise.resolve().then(()=>{throw u})}s.options&&s.options.once&&this.removeEventListener(r.type,s.callback)}return!r.defaultPrevented}},ee=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)}},le=class{constructor(){Object.defineProperty(this,"signal",{value:new ee,writable:!0,configurable:!0})}abort(r){let t;try{t=new Event("abort")}catch{typeof document<"u"?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>"u")n=new Error("This operation was aborted"),n.name="AbortError";else try{n=new DOMException("signal is aborted without reason")}catch{n=new Error("This operation was aborted"),n.name="AbortError"}this.signal.reason=n,this.signal.dispatchEvent(t)}toString(){return"[object AbortController]"}};typeof Symbol<"u"&&Symbol.toStringTag&&(le.prototype[Symbol.toStringTag]="AbortController",ee.prototype[Symbol.toStringTag]="AbortSignal");function Ne(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 et(e){typeof e=="function"&&(e={fetch:e});let{fetch:r,Request:t=r.Request,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:i=!1}=e;if(!Ne({fetch:r,Request:t,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:i}))return{fetch:r,Request:a};let a=t;(a&&!a.prototype.hasOwnProperty("signal")||i)&&(a=function(l,v){let c;v&&v.signal&&(c=v.signal,delete v.signal);let b=new t(l,v);return c&&Object.defineProperty(b,"signal",{writable:!1,enumerable:!1,configurable:!0,value:c}),b},a.prototype=t.prototype);let s=r;return{fetch:(p,l)=>{let v=a&&a.prototype.isPrototypeOf(p)?p.signal:l?l.signal:void 0;if(v){let c;try{c=new DOMException("Aborted","AbortError")}catch{c=new Error("Aborted"),c.name="AbortError"}if(v.aborted)return Promise.reject(c);let b=new Promise((d,T)=>{v.addEventListener("abort",()=>T(c),{once:!0})});return l&&l.signal&&delete l.signal,Promise.race([b,s(p,l)])}return s(p,l)},Request:a}}var pe=Ne({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}),po=pe?et({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}):void 0,fo=pe?po.fetch:window.fetch,_T=pe?po.Request:window.Request,AT=pe?le:window.AbortController,CT=pe?ee:window.AbortSignal;var za=Te($r(),1),Ya=Te(Ka(),1),sv=(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))(sv||{}),uv="vk.com",mh=async(e,r,t)=>{let n=new URL(`https://${uv}/js/lang-pack.js`);n.searchParams.set("format","json"),n.searchParams.set("name",r),e!==void 0&&n.searchParams.set("lang",e);let a=await(await fo(n.toString())).json();return cv(a,t)},cv=(e,r)=>(0,Ya.default)((0,za.default)(e.keys).map(([t,n])=>[t.substring(`${r}_`.length),lv(n)])),lv=e=>Array.isArray(e)?e[0]:e;var pv=(t=>(t.RU="ru",t.EN="en",t))(pv||{});export{Bl as ErrorCategory,pv as InterfaceLanguage,He as Logger,f as Observable,k as Subject,w as Subscription,Je as Tracer,as as VERSION,sv as VKNumericLanguage,_e as ValueSubject,Nr as VideoQuality,hs as abortable,ms as addScript,tl as areQualitiesExact,ds as assertEmptyArray,C as assertNever,fs as assertNonNullable,bs as assertNotEmptyArray,vs as assertNullable,nl as assertQualityIsExact,ro as buffer,ss as checkNever,ul as clearVideoElement,Fc as clientChecker,ol as cloneDeep,Re as cloneDeepWith,Zi as combine,gd as createURL,to as debounce,Dr as debounceFn,zc as detectEmbed,il as fillWithDefault,io as filter,ao as filterChanged,Pe as flattenObject,Fl as fromEvent,Uc as getExponentialDelay,Jc as getHighestQuality,cl as getTraceSubscriptionMethod,Vl as interval,Yc as isHigher,Hc as isHigherOrEqual,Vr as isInvariantQuality,kr as isLower,Xc as isLowerOrEqual,Ei as isMobile,W as isNonNullable,Ze as isNullable,hd as isValidURL,mh as loadVKLangPack,je as map,so as mapTo,eo as merge,F as noop,Ts as now,Dl as observableFrom,sl as observeElementSize,uo as once,co as pairwise,Si as safeStorage,lo as tap,no as throttle,Fr as throttleFn,od as timeCodeToString,kl as timeout,Zc as videoHeightToQuality,rl as videoQualityToHeight,el as videoSizeToQuality};
|