@vkontakte/videoplayer-shared 1.0.58-dev.ef87de0a.0 → 1.0.59-beta.0

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