@vkontakte/videoplayer-shared 1.0.50-dev.e0ca2fd5.0 → 1.0.50-dev.ef136aa4.0

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