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