@vkontakte/videoplayer-shared 1.0.40-dev.53bf33a7.0 → 1.0.40-dev.85b25f2f.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 +20 -3
package/es2015.cjs.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vkontakte/videoplayer-shared v1.0.40-dev.
|
|
3
|
-
*
|
|
2
|
+
* @vkontakte/videoplayer-shared v1.0.40-dev.85b25f2f.0
|
|
3
|
+
* Wed, 04 Sep 2024 13:58:58 GMT
|
|
4
4
|
* https://st.mycdn.me/static/vkontakte-videoplayer/1-0-40/doc/
|
|
5
5
|
*/
|
|
6
|
-
"use strict";var ou=Object.create;var fe=Object.defineProperty,iu=Object.defineProperties,au=Object.getOwnPropertyDescriptor,su=Object.getOwnPropertyDescriptors,uu=Object.getOwnPropertyNames,sn=Object.getOwnPropertySymbols,cu=Object.getPrototypeOf,cn=Object.prototype.hasOwnProperty,lu=Object.prototype.propertyIsEnumerable;var ln=Math.pow,un=(e,r,t)=>r in e?fe(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,A=(e,r)=>{for(var t in r||(r={}))cn.call(r,t)&&un(e,t,r[t]);if(sn)for(var t of sn(r))lu.call(r,t)&&un(e,t,r[t]);return e},U=(e,r)=>iu(e,su(r));var u=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),pn=(e,r)=>{for(var t in r)fe(e,t,{get:r[t],enumerable:!0})},fn=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let o of uu(r))!cn.call(e,o)&&o!==t&&fe(e,o,{get:()=>r[o],enumerable:!(n=au(r,o))||n.enumerable});return e};var pu=(e,r,t)=>(t=e!=null?ou(cu(e)):{},fn(r||!e||!e.__esModule?fe(t,"default",{value:e,enumerable:!0}):t,e)),fu=e=>fn(fe({},"__esModule",{value:!0}),e);var Me=(e,r,t)=>new Promise((n,o)=>{var i=c=>{try{a(t.next(c))}catch(l){o(l)}},s=c=>{try{a(t.throw(c))}catch(l){o(l)}},a=c=>c.done?n(c.value):Promise.resolve(c.value).then(i,s);a((t=t.apply(e,r)).next())});var N=u((WT,po)=>{"use strict";po.exports=function(e){try{return!!e()}catch(r){return!0}}});var Oe=u((KT,fo)=>{"use strict";var Uu=N();fo.exports=!Uu(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var k=u(($T,mo)=>{"use strict";var vo=Oe(),bo=Function.prototype,rt=bo.call,Qu=vo&&bo.bind.bind(rt,rt);mo.exports=vo?Qu:function(e){return function(){return rt.apply(e,arguments)}}});var Je=u((YT,ho)=>{"use strict";var To=k(),Wu=To({}.toString),Ku=To("".slice);ho.exports=function(e){return Ku(Wu(e),8,-1)}});var go=u((zT,yo)=>{"use strict";var $u=k(),Yu=N(),zu=Je(),tt=Object,Hu=$u("".split);yo.exports=Yu(function(){return!tt("z").propertyIsEnumerable(0)})?function(e){return zu(e)==="String"?Hu(e,""):tt(e)}:tt});var Ze=u((HT,xo)=>{"use strict";xo.exports=function(e){return e==null}});var er=u((XT,Io)=>{"use strict";var Xu=Ze(),Ju=TypeError;Io.exports=function(e){if(Xu(e))throw new Ju("Can't call method on "+e);return e}});var ae=u((JT,Oo)=>{"use strict";var Zu=go(),ec=er();Oo.exports=function(e){return Zu(ec(e))}});var wo=u((ZT,So)=>{"use strict";So.exports=function(){}});var X=u((eh,Eo)=>{"use strict";Eo.exports={}});var w=u((nt,_o)=>{"use strict";var Se=function(e){return e&&e.Math===Math&&e};_o.exports=Se(typeof globalThis=="object"&&globalThis)||Se(typeof window=="object"&&window)||Se(typeof self=="object"&&self)||Se(typeof global=="object"&&global)||Se(typeof nt=="object"&&nt)||function(){return this}()||Function("return this")()});var E=u((rh,Ro)=>{"use strict";var ot=typeof document=="object"&&document.all;Ro.exports=typeof ot=="undefined"&&ot!==void 0?function(e){return typeof e=="function"||e===ot}:function(e){return typeof e=="function"}});var Ao=u((th,qo)=>{"use strict";var rc=w(),tc=E(),Po=rc.WeakMap;qo.exports=tc(Po)&&/native code/.test(String(Po))});var D=u((nh,Co)=>{"use strict";var nc=E();Co.exports=function(e){return typeof e=="object"?e!==null:nc(e)}});var L=u((oh,No)=>{"use strict";var oc=N();No.exports=!oc(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var at=u((ih,Mo)=>{"use strict";var ic=w(),Lo=D(),it=ic.document,ac=Lo(it)&&Lo(it.createElement);Mo.exports=function(e){return ac?it.createElement(e):{}}});var st=u((ah,jo)=>{"use strict";var sc=L(),uc=N(),cc=at();jo.exports=!sc&&!uc(function(){return Object.defineProperty(cc("div"),"a",{get:function(){return 7}}).a!==7})});var ut=u((sh,Vo)=>{"use strict";var lc=L(),pc=N();Vo.exports=lc&&pc(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var J=u((uh,ko)=>{"use strict";var fc=D(),vc=String,dc=TypeError;ko.exports=function(e){if(fc(e))return e;throw new dc(vc(e)+" is not an object")}});var K=u((ch,Do)=>{"use strict";var bc=Oe(),rr=Function.prototype.call;Do.exports=bc?rr.bind(rr):function(){return rr.apply(rr,arguments)}});var tr=u((lh,Fo)=>{"use strict";Fo.exports={}});var pt=u((ph,Bo)=>{"use strict";var ct=tr(),lt=w(),mc=E(),Go=function(e){return mc(e)?e:void 0};Bo.exports=function(e,r){return arguments.length<2?Go(ct[e])||Go(lt[e]):ct[e]&&ct[e][r]||lt[e]&<[e][r]}});var ft=u((fh,Uo)=>{"use strict";var Tc=k();Uo.exports=Tc({}.isPrototypeOf)});var $o=u((vh,Ko)=>{"use strict";var hc=w(),Qo=hc.navigator,Wo=Qo&&Qo.userAgent;Ko.exports=Wo?String(Wo):""});var ei=u((dh,Zo)=>{"use strict";var Jo=w(),vt=$o(),Yo=Jo.process,zo=Jo.Deno,Ho=Yo&&Yo.versions||zo&&zo.version,Xo=Ho&&Ho.v8,P,nr;Xo&&(P=Xo.split("."),nr=P[0]>0&&P[0]<4?1:+(P[0]+P[1]));!nr&&vt&&(P=vt.match(/Edge\/(\d+)/),(!P||P[1]>=74)&&(P=vt.match(/Chrome\/(\d+)/),P&&(nr=+P[1])));Zo.exports=nr});var dt=u((bh,ti)=>{"use strict";var ri=ei(),yc=N(),gc=w(),xc=gc.String;ti.exports=!!Object.getOwnPropertySymbols&&!yc(function(){var e=Symbol("symbol detection");return!xc(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&ri&&ri<41})});var bt=u((mh,ni)=>{"use strict";var Ic=dt();ni.exports=Ic&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var mt=u((Th,oi)=>{"use strict";var Oc=pt(),Sc=E(),wc=ft(),Ec=bt(),_c=Object;oi.exports=Ec?function(e){return typeof e=="symbol"}:function(e){var r=Oc("Symbol");return Sc(r)&&wc(r.prototype,_c(e))}});var or=u((hh,ii)=>{"use strict";var Rc=String;ii.exports=function(e){try{return Rc(e)}catch(r){return"Object"}}});var we=u((yh,ai)=>{"use strict";var Pc=E(),qc=or(),Ac=TypeError;ai.exports=function(e){if(Pc(e))return e;throw new Ac(qc(e)+" is not a function")}});var ir=u((gh,si)=>{"use strict";var Cc=we(),Nc=Ze();si.exports=function(e,r){var t=e[r];return Nc(t)?void 0:Cc(t)}});var ci=u((xh,ui)=>{"use strict";var Tt=K(),ht=E(),yt=D(),Lc=TypeError;ui.exports=function(e,r){var t,n;if(r==="string"&&ht(t=e.toString)&&!yt(n=Tt(t,e))||ht(t=e.valueOf)&&!yt(n=Tt(t,e))||r!=="string"&&ht(t=e.toString)&&!yt(n=Tt(t,e)))return n;throw new Lc("Can't convert object to primitive value")}});var Ee=u((Ih,li)=>{"use strict";li.exports=!0});var vi=u((Oh,fi)=>{"use strict";var pi=w(),Mc=Object.defineProperty;fi.exports=function(e,r){try{Mc(pi,e,{value:r,configurable:!0,writable:!0})}catch(t){pi[e]=r}return r}});var ar=u((Sh,mi)=>{"use strict";var jc=Ee(),Vc=w(),kc=vi(),di="__core-js_shared__",bi=mi.exports=Vc[di]||kc(di,{});(bi.versions||(bi.versions=[])).push({version:"3.38.0",mode:jc?"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 gt=u((wh,hi)=>{"use strict";var Ti=ar();hi.exports=function(e,r){return Ti[e]||(Ti[e]=r||{})}});var xt=u((Eh,yi)=>{"use strict";var Dc=er(),Fc=Object;yi.exports=function(e){return Fc(Dc(e))}});var F=u((_h,gi)=>{"use strict";var Gc=k(),Bc=xt(),Uc=Gc({}.hasOwnProperty);gi.exports=Object.hasOwn||function(r,t){return Uc(Bc(r),t)}});var It=u((Rh,xi)=>{"use strict";var Qc=k(),Wc=0,Kc=Math.random(),$c=Qc(1 .toString);xi.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+$c(++Wc+Kc,36)}});var G=u((Ph,Oi)=>{"use strict";var Yc=w(),zc=gt(),Ii=F(),Hc=It(),Xc=dt(),Jc=bt(),se=Yc.Symbol,Ot=zc("wks"),Zc=Jc?se.for||se:se&&se.withoutSetter||Hc;Oi.exports=function(e){return Ii(Ot,e)||(Ot[e]=Xc&&Ii(se,e)?se[e]:Zc("Symbol."+e)),Ot[e]}});var _i=u((qh,Ei)=>{"use strict";var el=K(),Si=D(),wi=mt(),rl=ir(),tl=ci(),nl=G(),ol=TypeError,il=nl("toPrimitive");Ei.exports=function(e,r){if(!Si(e)||wi(e))return e;var t=rl(e,il),n;if(t){if(r===void 0&&(r="default"),n=el(t,e,r),!Si(n)||wi(n))return n;throw new ol("Can't convert object to primitive value")}return r===void 0&&(r="number"),tl(e,r)}});var St=u((Ah,Ri)=>{"use strict";var al=_i(),sl=mt();Ri.exports=function(e){var r=al(e,"string");return sl(r)?r:r+""}});var ue=u(qi=>{"use strict";var ul=L(),cl=st(),ll=ut(),sr=J(),Pi=St(),pl=TypeError,wt=Object.defineProperty,fl=Object.getOwnPropertyDescriptor,Et="enumerable",_t="configurable",Rt="writable";qi.f=ul?ll?function(r,t,n){if(sr(r),t=Pi(t),sr(n),typeof r=="function"&&t==="prototype"&&"value"in n&&Rt in n&&!n[Rt]){var o=fl(r,t);o&&o[Rt]&&(r[t]=n.value,n={configurable:_t in n?n[_t]:o[_t],enumerable:Et in n?n[Et]:o[Et],writable:!1})}return wt(r,t,n)}:wt:function(r,t,n){if(sr(r),t=Pi(t),sr(n),cl)try{return wt(r,t,n)}catch(o){}if("get"in n||"set"in n)throw new pl("Accessors not supported");return"value"in n&&(r[t]=n.value),r}});var _e=u((Nh,Ai)=>{"use strict";Ai.exports=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}}});var ce=u((Lh,Ci)=>{"use strict";var vl=L(),dl=ue(),bl=_e();Ci.exports=vl?function(e,r,t){return dl.f(e,r,bl(1,t))}:function(e,r,t){return e[r]=t,e}});var ur=u((Mh,Li)=>{"use strict";var ml=gt(),Tl=It(),Ni=ml("keys");Li.exports=function(e){return Ni[e]||(Ni[e]=Tl(e))}});var cr=u((jh,Mi)=>{"use strict";Mi.exports={}});var Di=u((Vh,ki)=>{"use strict";var hl=Ao(),Vi=w(),yl=D(),gl=ce(),Pt=F(),qt=ar(),xl=ur(),Il=cr(),ji="Object already initialized",At=Vi.TypeError,Ol=Vi.WeakMap,lr,Re,pr,Sl=function(e){return pr(e)?Re(e):lr(e,{})},wl=function(e){return function(r){var t;if(!yl(r)||(t=Re(r)).type!==e)throw new At("Incompatible receiver, "+e+" required");return t}};hl||qt.state?(q=qt.state||(qt.state=new Ol),q.get=q.get,q.has=q.has,q.set=q.set,lr=function(e,r){if(q.has(e))throw new At(ji);return r.facade=e,q.set(e,r),r},Re=function(e){return q.get(e)||{}},pr=function(e){return q.has(e)}):(Z=xl("state"),Il[Z]=!0,lr=function(e,r){if(Pt(e,Z))throw new At(ji);return r.facade=e,gl(e,Z,r),r},Re=function(e){return Pt(e,Z)?e[Z]:{}},pr=function(e){return Pt(e,Z)});var q,Z;ki.exports={set:lr,get:Re,has:pr,enforce:Sl,getterFor:wl}});var Qi=u((kh,Ui)=>{"use strict";var El=Oe(),Bi=Function.prototype,Fi=Bi.apply,Gi=Bi.call;Ui.exports=typeof Reflect=="object"&&Reflect.apply||(El?Gi.bind(Fi):function(){return Gi.apply(Fi,arguments)})});var Ct=u((Dh,Wi)=>{"use strict";var _l=Je(),Rl=k();Wi.exports=function(e){if(_l(e)==="Function")return Rl(e)}});var zi=u(Yi=>{"use strict";var Ki={}.propertyIsEnumerable,$i=Object.getOwnPropertyDescriptor,Pl=$i&&!Ki.call({1:2},1);Yi.f=Pl?function(r){var t=$i(this,r);return!!t&&t.enumerable}:Ki});var Ji=u(Xi=>{"use strict";var ql=L(),Al=K(),Cl=zi(),Nl=_e(),Ll=ae(),Ml=St(),jl=F(),Vl=st(),Hi=Object.getOwnPropertyDescriptor;Xi.f=ql?Hi:function(r,t){if(r=Ll(r),t=Ml(t),Vl)try{return Hi(r,t)}catch(n){}if(jl(r,t))return Nl(!Al(Cl.f,r,t),r[t])}});var ea=u((Bh,Zi)=>{"use strict";var kl=N(),Dl=E(),Fl=/#|\.prototype\./,Pe=function(e,r){var t=Bl[Gl(e)];return t===Ql?!0:t===Ul?!1:Dl(r)?kl(r):!!r},Gl=Pe.normalize=function(e){return String(e).replace(Fl,".").toLowerCase()},Bl=Pe.data={},Ul=Pe.NATIVE="N",Ql=Pe.POLYFILL="P";Zi.exports=Pe});var Nt=u((Uh,ta)=>{"use strict";var ra=Ct(),Wl=we(),Kl=Oe(),$l=ra(ra.bind);ta.exports=function(e,r){return Wl(e),r===void 0?e:Kl?$l(e,r):function(){return e.apply(r,arguments)}}});var Lt=u((Qh,oa)=>{"use strict";var qe=w(),Yl=Qi(),zl=Ct(),Hl=E(),Xl=Ji().f,Jl=ea(),le=tr(),Zl=Nt(),pe=ce(),na=F();ar();var ep=function(e){var r=function(t,n,o){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,o)}return Yl(e,this,arguments)};return r.prototype=e.prototype,r};oa.exports=function(e,r){var t=e.target,n=e.global,o=e.stat,i=e.proto,s=n?qe:o?qe[t]:qe[t]&&qe[t].prototype,a=n?le:le[t]||pe(le,t,{})[t],c=a.prototype,l,p,f,d,b,T,h,x,y;for(d in r)l=Jl(n?d:t+(o?".":"#")+d,e.forced),p=!l&&s&&na(s,d),T=a[d],p&&(e.dontCallGetSet?(y=Xl(s,d),h=y&&y.value):h=s[d]),b=p&&h?h:r[d],!(!l&&!i&&typeof T==typeof b)&&(e.bind&&p?x=Zl(b,qe):e.wrap&&p?x=ep(b):i&&Hl(b)?x=zl(b):x=b,(e.sham||b&&b.sham||T&&T.sham)&&pe(x,"sham",!0),pe(a,d,x),i&&(f=t+"Prototype",na(le,f)||pe(le,f,{}),pe(le[f],d,b),e.real&&c&&(l||!c[d])&&pe(c,d,b)))}});var sa=u((Wh,aa)=>{"use strict";var Mt=L(),rp=F(),ia=Function.prototype,tp=Mt&&Object.getOwnPropertyDescriptor,jt=rp(ia,"name"),np=jt&&function(){}.name==="something",op=jt&&(!Mt||Mt&&tp(ia,"name").configurable);aa.exports={EXISTS:jt,PROPER:np,CONFIGURABLE:op}});var ca=u((Kh,ua)=>{"use strict";var ip=Math.ceil,ap=Math.floor;ua.exports=Math.trunc||function(r){var t=+r;return(t>0?ap:ip)(t)}});var Vt=u(($h,la)=>{"use strict";var sp=ca();la.exports=function(e){var r=+e;return r!==r||r===0?0:sp(r)}});var fa=u((Yh,pa)=>{"use strict";var up=Vt(),cp=Math.max,lp=Math.min;pa.exports=function(e,r){var t=up(e);return t<0?cp(t+r,0):lp(t,r)}});var da=u((zh,va)=>{"use strict";var pp=Vt(),fp=Math.min;va.exports=function(e){var r=pp(e);return r>0?fp(r,9007199254740991):0}});var kt=u((Hh,ba)=>{"use strict";var vp=da();ba.exports=function(e){return vp(e.length)}});var ha=u((Xh,Ta)=>{"use strict";var dp=ae(),bp=fa(),mp=kt(),ma=function(e){return function(r,t,n){var o=dp(r),i=mp(o);if(i===0)return!e&&-1;var s=bp(n,i),a;if(e&&t!==t){for(;i>s;)if(a=o[s++],a!==a)return!0}else for(;i>s;s++)if((e||s in o)&&o[s]===t)return e||s||0;return!e&&-1}};Ta.exports={includes:ma(!0),indexOf:ma(!1)}});var xa=u((Jh,ga)=>{"use strict";var Tp=k(),Dt=F(),hp=ae(),yp=ha().indexOf,gp=cr(),ya=Tp([].push);ga.exports=function(e,r){var t=hp(e),n=0,o=[],i;for(i in t)!Dt(gp,i)&&Dt(t,i)&&ya(o,i);for(;r.length>n;)Dt(t,i=r[n++])&&(~yp(o,i)||ya(o,i));return o}});var Ft=u((Zh,Ia)=>{"use strict";Ia.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var Sa=u((ey,Oa)=>{"use strict";var xp=xa(),Ip=Ft();Oa.exports=Object.keys||function(r){return xp(r,Ip)}});var Ea=u(wa=>{"use strict";var Op=L(),Sp=ut(),wp=ue(),Ep=J(),_p=ae(),Rp=Sa();wa.f=Op&&!Sp?Object.defineProperties:function(r,t){Ep(r);for(var n=_p(t),o=Rp(t),i=o.length,s=0,a;i>s;)wp.f(r,a=o[s++],n[a]);return r}});var Ra=u((ty,_a)=>{"use strict";var Pp=pt();_a.exports=Pp("document","documentElement")});var Qt=u((ny,Ma)=>{"use strict";var qp=J(),Ap=Ea(),Pa=Ft(),Cp=cr(),Np=Ra(),Lp=at(),Mp=ur(),qa=">",Aa="<",Bt="prototype",Ut="script",Na=Mp("IE_PROTO"),Gt=function(){},La=function(e){return Aa+Ut+qa+e+Aa+"/"+Ut+qa},Ca=function(e){e.write(La("")),e.close();var r=e.parentWindow.Object;return e=null,r},jp=function(){var e=Lp("iframe"),r="java"+Ut+":",t;return e.style.display="none",Np.appendChild(e),e.src=String(r),t=e.contentWindow.document,t.open(),t.write(La("document.F=Object")),t.close(),t.F},fr,vr=function(){try{fr=new ActiveXObject("htmlfile")}catch(r){}vr=typeof document!="undefined"?document.domain&&fr?Ca(fr):jp():Ca(fr);for(var e=Pa.length;e--;)delete vr[Bt][Pa[e]];return vr()};Cp[Na]=!0;Ma.exports=Object.create||function(r,t){var n;return r!==null?(Gt[Bt]=qp(r),n=new Gt,Gt[Bt]=null,n[Na]=r):n=vr(),t===void 0?n:Ap.f(n,t)}});var Va=u((oy,ja)=>{"use strict";var Vp=N();ja.exports=!Vp(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var Kt=u((iy,Da)=>{"use strict";var kp=F(),Dp=E(),Fp=xt(),Gp=ur(),Bp=Va(),ka=Gp("IE_PROTO"),Wt=Object,Up=Wt.prototype;Da.exports=Bp?Wt.getPrototypeOf:function(e){var r=Fp(e);if(kp(r,ka))return r[ka];var t=r.constructor;return Dp(t)&&r instanceof t?t.prototype:r instanceof Wt?Up:null}});var $t=u((ay,Fa)=>{"use strict";var Qp=ce();Fa.exports=function(e,r,t,n){return n&&n.enumerable?e[r]=t:Qp(e,r,t),e}});var Xt=u((sy,Ua)=>{"use strict";var Wp=N(),Kp=E(),$p=D(),Yp=Qt(),Ga=Kt(),zp=$t(),Hp=G(),Xp=Ee(),Ht=Hp("iterator"),Ba=!1,B,Yt,zt;[].keys&&(zt=[].keys(),"next"in zt?(Yt=Ga(Ga(zt)),Yt!==Object.prototype&&(B=Yt)):Ba=!0);var Jp=!$p(B)||Wp(function(){var e={};return B[Ht].call(e)!==e});Jp?B={}:Xp&&(B=Yp(B));Kp(B[Ht])||zp(B,Ht,function(){return this});Ua.exports={IteratorPrototype:B,BUGGY_SAFARI_ITERATORS:Ba}});var dr=u((uy,Wa)=>{"use strict";var Zp=G(),ef=Zp("toStringTag"),Qa={};Qa[ef]="z";Wa.exports=String(Qa)==="[object z]"});var Jt=u((cy,Ka)=>{"use strict";var rf=dr(),tf=E(),br=Je(),nf=G(),of=nf("toStringTag"),af=Object,sf=br(function(){return arguments}())==="Arguments",uf=function(e,r){try{return e[r]}catch(t){}};Ka.exports=rf?br:function(e){var r,t,n;return e===void 0?"Undefined":e===null?"Null":typeof(t=uf(r=af(e),of))=="string"?t:sf?br(r):(n=br(r))==="Object"&&tf(r.callee)?"Arguments":n}});var Ya=u((ly,$a)=>{"use strict";var cf=dr(),lf=Jt();$a.exports=cf?{}.toString:function(){return"[object "+lf(this)+"]"}});var mr=u((py,Ha)=>{"use strict";var pf=dr(),ff=ue().f,vf=ce(),df=F(),bf=Ya(),mf=G(),za=mf("toStringTag");Ha.exports=function(e,r,t,n){var o=t?e:e&&e.prototype;o&&(df(o,za)||ff(o,za,{configurable:!0,value:r}),n&&!pf&&vf(o,"toString",bf))}});var Ja=u((fy,Xa)=>{"use strict";var Tf=Xt().IteratorPrototype,hf=Qt(),yf=_e(),gf=mr(),xf=X(),If=function(){return this};Xa.exports=function(e,r,t,n){var o=r+" Iterator";return e.prototype=hf(Tf,{next:yf(+!n,t)}),gf(e,o,!1,!0),xf[o]=If,e}});var es=u((vy,Za)=>{"use strict";var Of=k(),Sf=we();Za.exports=function(e,r,t){try{return Of(Sf(Object.getOwnPropertyDescriptor(e,r)[t]))}catch(n){}}});var ts=u((dy,rs)=>{"use strict";var wf=D();rs.exports=function(e){return wf(e)||e===null}});var os=u((by,ns)=>{"use strict";var Ef=ts(),_f=String,Rf=TypeError;ns.exports=function(e){if(Ef(e))return e;throw new Rf("Can't set "+_f(e)+" as a prototype")}});var as=u((my,is)=>{"use strict";var Pf=es(),qf=D(),Af=er(),Cf=os();is.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,r={},t;try{t=Pf(Object.prototype,"__proto__","set"),t(r,[]),e=r instanceof Array}catch(n){}return function(o,i){return Af(o),Cf(i),qf(o)&&(e?t(o,i):o.__proto__=i),o}}():void 0)});var Ts=u((Ty,ms)=>{"use strict";var Nf=Lt(),Lf=K(),Tr=Ee(),ds=sa(),Mf=E(),jf=Ja(),ss=Kt(),us=as(),Vf=mr(),kf=ce(),Zt=$t(),Df=G(),cs=X(),bs=Xt(),Ff=ds.PROPER,Gf=ds.CONFIGURABLE,ls=bs.IteratorPrototype,hr=bs.BUGGY_SAFARI_ITERATORS,Ae=Df("iterator"),ps="keys",Ce="values",fs="entries",vs=function(){return this};ms.exports=function(e,r,t,n,o,i,s){jf(t,r,n);var a=function(y){if(y===o&&d)return d;if(!hr&&y&&y in p)return p[y];switch(y){case ps:return function(){return new t(this,y)};case Ce:return function(){return new t(this,y)};case fs:return function(){return new t(this,y)}}return function(){return new t(this)}},c=r+" Iterator",l=!1,p=e.prototype,f=p[Ae]||p["@@iterator"]||o&&p[o],d=!hr&&f||a(o),b=r==="Array"&&p.entries||f,T,h,x;if(b&&(T=ss(b.call(new e)),T!==Object.prototype&&T.next&&(!Tr&&ss(T)!==ls&&(us?us(T,ls):Mf(T[Ae])||Zt(T,Ae,vs)),Vf(T,c,!0,!0),Tr&&(cs[c]=vs))),Ff&&o===Ce&&f&&f.name!==Ce&&(!Tr&&Gf?kf(p,"name",Ce):(l=!0,d=function(){return Lf(f,this)})),o)if(h={values:a(Ce),keys:i?d:a(ps),entries:a(fs)},s)for(x in h)(hr||l||!(x in p))&&Zt(p,x,h[x]);else Nf({target:r,proto:!0,forced:hr||l},h);return(!Tr||s)&&p[Ae]!==d&&Zt(p,Ae,d,{name:o}),cs[r]=d,h}});var ys=u((hy,hs)=>{"use strict";hs.exports=function(e,r){return{value:e,done:r}}});var rn=u((yy,Ss)=>{"use strict";var Bf=ae(),en=wo(),gs=X(),Is=Di(),Uf=ue().f,Qf=Ts(),yr=ys(),Wf=Ee(),Kf=L(),Os="Array Iterator",$f=Is.set,Yf=Is.getterFor(Os);Ss.exports=Qf(Array,"Array",function(e,r){$f(this,{type:Os,target:Bf(e),index:0,kind:r})},function(){var e=Yf(this),r=e.target,t=e.index++;if(!r||t>=r.length)return e.target=void 0,yr(void 0,!0);switch(e.kind){case"keys":return yr(t,!1);case"values":return yr(r[t],!1)}return yr([t,r[t]],!1)},"values");var xs=gs.Arguments=gs.Array;en("keys");en("values");en("entries");if(!Wf&&Kf&&xs.name!=="values")try{Uf(xs,"name",{value:"values"})}catch(e){}});var Es=u((gy,ws)=>{"use strict";var zf=G(),Hf=X(),Xf=zf("iterator"),Jf=Array.prototype;ws.exports=function(e){return e!==void 0&&(Hf.Array===e||Jf[Xf]===e)}});var tn=u((xy,Rs)=>{"use strict";var Zf=Jt(),_s=ir(),ev=Ze(),rv=X(),tv=G(),nv=tv("iterator");Rs.exports=function(e){if(!ev(e))return _s(e,nv)||_s(e,"@@iterator")||rv[Zf(e)]}});var qs=u((Iy,Ps)=>{"use strict";var ov=K(),iv=we(),av=J(),sv=or(),uv=tn(),cv=TypeError;Ps.exports=function(e,r){var t=arguments.length<2?uv(e):r;if(iv(t))return av(ov(t,e));throw new cv(sv(e)+" is not iterable")}});var Ns=u((Oy,Cs)=>{"use strict";var lv=K(),As=J(),pv=ir();Cs.exports=function(e,r,t){var n,o;As(e);try{if(n=pv(e,"return"),!n){if(r==="throw")throw t;return t}n=lv(n,e)}catch(i){o=!0,n=i}if(r==="throw")throw t;if(o)throw n;return As(n),t}});var ks=u((Sy,Vs)=>{"use strict";var fv=Nt(),vv=K(),dv=J(),bv=or(),mv=Es(),Tv=kt(),Ls=ft(),hv=qs(),yv=tn(),Ms=Ns(),gv=TypeError,gr=function(e,r){this.stopped=e,this.result=r},js=gr.prototype;Vs.exports=function(e,r,t){var n=t&&t.that,o=!!(t&&t.AS_ENTRIES),i=!!(t&&t.IS_RECORD),s=!!(t&&t.IS_ITERATOR),a=!!(t&&t.INTERRUPTED),c=fv(r,n),l,p,f,d,b,T,h,x=function(g){return l&&Ms(l,"normal",g),new gr(!0,g)},y=function(g){return o?(dv(g),a?c(g[0],g[1],x):c(g[0],g[1])):a?c(g,x):c(g)};if(i)l=e.iterator;else if(s)l=e;else{if(p=yv(e),!p)throw new gv(bv(e)+" is not iterable");if(mv(p)){for(f=0,d=Tv(e);d>f;f++)if(b=y(e[f]),b&&Ls(js,b))return b;return new gr(!1)}l=hv(e,p)}for(T=i?e.next:l.next;!(h=vv(T,l)).done;){try{b=y(h.value)}catch(g){Ms(l,"throw",g)}if(typeof b=="object"&&b&&Ls(js,b))return b}return new gr(!1)}});var Fs=u((wy,Ds)=>{"use strict";var xv=L(),Iv=ue(),Ov=_e();Ds.exports=function(e,r,t){xv?Iv.f(e,r,Ov(0,t)):e[r]=t}});var Gs=u(()=>{"use strict";var Sv=Lt(),wv=ks(),Ev=Fs();Sv({target:"Object",stat:!0},{fromEntries:function(r){var t={};return wv(r,function(n,o){Ev(t,n,o)},{AS_ENTRIES:!0}),t}})});var Us=u((Ry,Bs)=>{"use strict";rn();Gs();var _v=tr();Bs.exports=_v.Object.fromEntries});var Ws=u((Py,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=u(()=>{"use strict";rn();var Rv=Ws(),Pv=w(),qv=mr(),Ks=X();for(xr in Rv)qv(Pv[xr],xr),Ks[xr]=Ks.Array;var xr});var zs=u((Cy,Ys)=>{"use strict";var Av=Us();$s();Ys.exports=Av});var Xs=u((Ny,Hs)=>{"use strict";var Cv=zs();Hs.exports=Cv});var Vv={};pn(Vv,{ErrorCategory:()=>uo,InterfaceLanguage:()=>eu,Logger:()=>je,Observable:()=>v,Subject:()=>M,Subscription:()=>S,Tracer:()=>Be,VERSION:()=>vn,VKNumericLanguage:()=>Zs,ValueSubject:()=>ye,VideoQuality:()=>We,abortable:()=>kn,addScript:()=>Mn,areQualitiesExact:()=>Hn,assertEmptyArray:()=>Ln,assertNever:()=>C,assertNonNullable:()=>An,assertNotEmptyArray:()=>Nn,assertNullable:()=>Cn,assertQualityIsExact:()=>Xn,buffer:()=>kr,checkNever:()=>dn,clearVideoElement:()=>ro,clientChecker:()=>Dn,cloneDeep:()=>Zn,cloneDeepWith:()=>Te,combine:()=>Mr,debounce:()=>Fr,debounceFn:()=>Ye,detectEmbed:()=>Gn,fillWithDefault:()=>Jn,filter:()=>Qr,filterChanged:()=>Kr,flattenObject:()=>he,fromEvent:()=>ao,getExponentialDelay:()=>Fn,getHighestQuality:()=>Wn,getTraceSubscriptionMethod:()=>to,interval:()=>oo,isHigher:()=>Bn,isHigherOrEqual:()=>Un,isInvariantQuality:()=>$e,isLower:()=>Ke,isLowerOrEqual:()=>Qn,isMobile:()=>Nr,isNonNullable:()=>z,isNullable:()=>Ue,loadVKLangPack:()=>Lv,map:()=>ge,mapTo:()=>Yr,merge:()=>jr,noop:()=>Q,now:()=>Vn,observableFrom:()=>io,observeElementSize:()=>eo,once:()=>zr,pairwise:()=>Xr,safeStorage:()=>Qe,tap:()=>Zr,throttle:()=>Br,throttleFn:()=>ze,timeCodeToString:()=>Du,timeout:()=>no,videoHeightToQuality:()=>$n,videoQualityToHeight:()=>zn,videoSizeToQuality:()=>Yn});module.exports=fu(Vv);var vn="1.0.40-dev.53bf33a7.0";var S=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`)},dn=e=>{};var Q=()=>{};var v=class{constructor(r){r&&(this._subscribe=r)}subscribe(r,t){var s;let n;t?typeof t=="function"?n={next:t,error:Q}:n={next:a=>t.next(a),error:a=>{var c;return(c=t.error)==null?void 0:c.call(t,a)}}:n={next:Q,error:Q};let o=typeof r=="function"?{next:a=>{try{r(a)}catch(c){n.next(c)}},error:a=>n.next(a)}:{next:a=>r.next(a),error:a=>r.error?r.error(a):n.next(a)},i;try{i=this._subscribe(o)}catch(a){(s=o.error)==null||s.call(o,a)}return new S().add(()=>{switch(o.next=Q,o.error=Q,typeof i){case"function":i();return;case"object":i.unsubscribe();return;case"undefined":return;default:return C(i)}})}pipe(...r){return r.reduce((t,n)=>n(t),this)}_subscribe(r){}};var M=class extends v{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 o;return(o=n.error)==null?void 0:o.call(n,t)})}_subscribe(t){let n=this.keyCounter++;return this.subscribers.set(n,t),new S().add(()=>this.subscribers.delete(n))}};var je=class{constructor(){this.log$=new M;this.logs=[];this.log=r=>{let t=U(A({},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(o){n={message:"error in `createCustomLog`",component:"Logger"}}this.log(n)}}createComponentLog(r){return this.createCustomLog(t=>A({component:r},t))}};var bn=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{};var j="1.8.0";var mn=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function vu(e){var r=new Set([e]),t=new Set,n=e.match(mn);if(!n)return function(){return!1};var o={major:+n[1],minor:+n[2],patch:+n[3],prerelease:n[4]};if(o.prerelease!=null)return function(c){return c===e};function i(a){return t.add(a),!1}function s(a){return r.add(a),!0}return function(c){if(r.has(c))return!0;if(t.has(c))return!1;var l=c.match(mn);if(!l)return i(c);var p={major:+l[1],minor:+l[2],patch:+l[3],prerelease:l[4]};return p.prerelease!=null||o.major!==p.major?i(c):o.major===0?o.minor===p.minor&&o.patch<=p.patch?s(c):i(c):o.minor<=p.minor?s(c):i(c)}}var Tn=vu(j);var du=j.split(".")[0],ve=Symbol.for("opentelemetry.js.api."+du),de=bn;function ee(e,r,t,n){var o;n===void 0&&(n=!1);var i=de[ve]=(o=de[ve])!==null&&o!==void 0?o:{version:j};if(!n&&i[e]){var s=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+e);return t.error(s.stack||s.message),!1}if(i.version!==j){var s=new Error("@opentelemetry/api: Registration of version v"+i.version+" for "+e+" does not match previously registered API v"+j);return t.error(s.stack||s.message),!1}return i[e]=r,t.debug("@opentelemetry/api: Registered a global for "+e+" v"+j+"."),!0}function V(e){var r,t,n=(r=de[ve])===null||r===void 0?void 0:r.version;if(!(!n||!Tn(n)))return(t=de[ve])===null||t===void 0?void 0:t[e]}function re(e,r){r.debug("@opentelemetry/api: Unregistering a global for "+e+" v"+j+".");var t=de[ve];t&&delete t[e]}var bu=function(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),o,i=[],s;try{for(;(r===void 0||r-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(s)throw s.error}}return i},mu=function(e,r,t){if(t||arguments.length===2)for(var n=0,o=r.length,i;n<o;n++)(i||!(n in r))&&(i||(i=Array.prototype.slice.call(r,0,n)),i[n]=r[n]);return e.concat(i||Array.prototype.slice.call(r))},hn=function(){function e(r){this._namespace=r.namespace||"DiagComponentLogger"}return e.prototype.debug=function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return be("debug",this._namespace,r)},e.prototype.error=function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return be("error",this._namespace,r)},e.prototype.info=function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return be("info",this._namespace,r)},e.prototype.warn=function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return be("warn",this._namespace,r)},e.prototype.verbose=function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return be("verbose",this._namespace,r)},e}();function be(e,r,t){var n=V("diag");if(n)return t.unshift(r),n[e].apply(n,mu([],bu(t),!1))}var O;(function(e){e[e.NONE=0]="NONE",e[e.ERROR=30]="ERROR",e[e.WARN=50]="WARN",e[e.INFO=60]="INFO",e[e.DEBUG=70]="DEBUG",e[e.VERBOSE=80]="VERBOSE",e[e.ALL=9999]="ALL"})(O||(O={}));function yn(e,r){e<O.NONE?e=O.NONE:e>O.ALL&&(e=O.ALL),r=r||{};function t(n,o){var i=r[n];return typeof i=="function"&&e>=o?i.bind(r):function(){}}return{error:t("error",O.ERROR),warn:t("warn",O.WARN),info:t("info",O.INFO),debug:t("debug",O.DEBUG),verbose:t("verbose",O.VERBOSE)}}var Tu=function(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),o,i=[],s;try{for(;(r===void 0||r-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(s)throw s.error}}return i},hu=function(e,r,t){if(t||arguments.length===2)for(var n=0,o=r.length,i;n<o;n++)(i||!(n in r))&&(i||(i=Array.prototype.slice.call(r,0,n)),i[n]=r[n]);return e.concat(i||Array.prototype.slice.call(r))},yu="diag",te=function(){function e(){function r(o){return function(){for(var i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];var a=V("diag");if(a)return a[o].apply(a,hu([],Tu(i),!1))}}var t=this,n=function(o,i){var s,a,c;if(i===void 0&&(i={logLevel:O.INFO}),o===t){var l=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return t.error((s=l.stack)!==null&&s!==void 0?s:l.message),!1}typeof i=="number"&&(i={logLevel:i});var p=V("diag"),f=yn((a=i.logLevel)!==null&&a!==void 0?a:O.INFO,o);if(p&&!i.suppressOverrideMessage){var d=(c=new Error().stack)!==null&&c!==void 0?c:"<failed to generate stacktrace>";p.warn("Current logger will be overwritten from "+d),f.warn("Current logger will overwrite one already registered from "+d)}return ee("diag",f,t,!0)};t.setLogger=n,t.disable=function(){re(yu,t)},t.createComponentLogger=function(o){return new hn(o)},t.verbose=r("verbose"),t.debug=r("debug"),t.info=r("info"),t.warn=r("warn"),t.error=r("error")}return e.instance=function(){return this._instance||(this._instance=new e),this._instance},e}();function gn(e){return Symbol.for(e)}var gu=function(){function e(r){var t=this;t._currentContext=r?new Map(r):new Map,t.getValue=function(n){return t._currentContext.get(n)},t.setValue=function(n,o){var i=new e(t._currentContext);return i._currentContext.set(n,o),i},t.deleteValue=function(n){var o=new e(t._currentContext);return o._currentContext.delete(n),o}}return e}(),xn=new gu;var xu=function(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),o,i=[],s;try{for(;(r===void 0||r-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(s)throw s.error}}return i},Iu=function(e,r,t){if(t||arguments.length===2)for(var n=0,o=r.length,i;n<o;n++)(i||!(n in r))&&(i||(i=Array.prototype.slice.call(r,0,n)),i[n]=r[n]);return e.concat(i||Array.prototype.slice.call(r))},In=function(){function e(){}return e.prototype.active=function(){return xn},e.prototype.with=function(r,t,n){for(var o=[],i=3;i<arguments.length;i++)o[i-3]=arguments[i];return t.call.apply(t,Iu([n],xu(o),!1))},e.prototype.bind=function(r,t){return t},e.prototype.enable=function(){return this},e.prototype.disable=function(){return this},e}();var Ou=function(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),o,i=[],s;try{for(;(r===void 0||r-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(s)throw s.error}}return i},Su=function(e,r,t){if(t||arguments.length===2)for(var n=0,o=r.length,i;n<o;n++)(i||!(n in r))&&(i||(i=Array.prototype.slice.call(r,0,n)),i[n]=r[n]);return e.concat(i||Array.prototype.slice.call(r))},Ir="context",wu=new In,ne=function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalContextManager=function(r){return ee(Ir,r,te.instance())},e.prototype.active=function(){return this._getContextManager().active()},e.prototype.with=function(r,t,n){for(var o,i=[],s=3;s<arguments.length;s++)i[s-3]=arguments[s];return(o=this._getContextManager()).with.apply(o,Su([r,t,n],Ou(i),!1))},e.prototype.bind=function(r,t){return this._getContextManager().bind(r,t)},e.prototype._getContextManager=function(){return V(Ir)||wu},e.prototype.disable=function(){this._getContextManager().disable(),re(Ir,te.instance())},e}();var Ve;(function(e){e[e.NONE=0]="NONE",e[e.SAMPLED=1]="SAMPLED"})(Ve||(Ve={}));var Or="0000000000000000",Sr="00000000000000000000000000000000",On={traceId:Sr,spanId:Or,traceFlags:Ve.NONE};var W=function(){function e(r){r===void 0&&(r=On),this._spanContext=r}return e.prototype.spanContext=function(){return this._spanContext},e.prototype.setAttribute=function(r,t){return this},e.prototype.setAttributes=function(r){return this},e.prototype.addEvent=function(r,t){return this},e.prototype.setStatus=function(r){return this},e.prototype.updateName=function(r){return this},e.prototype.end=function(r){},e.prototype.isRecording=function(){return!1},e.prototype.recordException=function(r,t){},e}();var wr=gn("OpenTelemetry Context Key SPAN");function ke(e){return e.getValue(wr)||void 0}function Sn(){return ke(ne.getInstance().active())}function me(e,r){return e.setValue(wr,r)}function wn(e){return e.deleteValue(wr)}function En(e,r){return me(e,new W(r))}function De(e){var r;return(r=ke(e))===null||r===void 0?void 0:r.spanContext()}var Eu=/^([0-9a-f]{32})$/i,_u=/^[0-9a-f]{16}$/i;function Ru(e){return Eu.test(e)&&e!==Sr}function Pu(e){return _u.test(e)&&e!==Or}function Fe(e){return Ru(e.traceId)&&Pu(e.spanId)}function _n(e){return new W(e)}var Er=ne.getInstance(),Ge=function(){function e(){}return e.prototype.startSpan=function(r,t,n){n===void 0&&(n=Er.active());var o=!!(t!=null&&t.root);if(o)return new W;var i=n&&De(n);return qu(i)&&Fe(i)?new W(i):new W},e.prototype.startActiveSpan=function(r,t,n,o){var i,s,a;if(!(arguments.length<2)){arguments.length===2?a=t:arguments.length===3?(i=t,a=n):(i=t,s=n,a=o);var c=s!=null?s:Er.active(),l=this.startSpan(r,i,c),p=me(c,l);return Er.with(p,a,void 0,l)}},e}();function qu(e){return typeof e=="object"&&typeof e.spanId=="string"&&typeof e.traceId=="string"&&typeof e.traceFlags=="number"}var Au=new Ge,Rn=function(){function e(r,t,n,o){this._provider=r,this.name=t,this.version=n,this.options=o}return e.prototype.startSpan=function(r,t,n){return this._getTracer().startSpan(r,t,n)},e.prototype.startActiveSpan=function(r,t,n,o){var i=this._getTracer();return Reflect.apply(i.startActiveSpan,i,arguments)},e.prototype._getTracer=function(){if(this._delegate)return this._delegate;var r=this._provider.getDelegateTracer(this.name,this.version,this.options);return r?(this._delegate=r,this._delegate):Au},e}();var Pn=function(){function e(){}return e.prototype.getTracer=function(r,t,n){return new Ge},e}();var Cu=new Pn,_r=function(){function e(){}return e.prototype.getTracer=function(r,t,n){var o;return(o=this.getDelegateTracer(r,t,n))!==null&&o!==void 0?o:new Rn(this,r,t,n)},e.prototype.getDelegate=function(){var r;return(r=this._delegate)!==null&&r!==void 0?r:Cu},e.prototype.setDelegate=function(r){this._delegate=r},e.prototype.getDelegateTracer=function(r,t,n){var o;return(o=this._delegate)===null||o===void 0?void 0:o.getTracer(r,t,n)},e}();var Rr=ne.getInstance();var Pr="trace",qn=function(){function e(){this._proxyTracerProvider=new _r,this.wrapSpanContext=_n,this.isSpanContextValid=Fe,this.deleteSpan=wn,this.getSpan=ke,this.getActiveSpan=Sn,this.getSpanContext=De,this.setSpan=me,this.setSpanContext=En}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalTracerProvider=function(r){var t=ee(Pr,this._proxyTracerProvider,te.instance());return t&&this._proxyTracerProvider.setDelegate(r),t},e.prototype.getTracerProvider=function(){return V(Pr)||this._proxyTracerProvider},e.prototype.getTracer=function(r,t){return this.getTracerProvider().getTracer(r,t)},e.prototype.disable=function(){re(Pr,te.instance()),this._proxyTracerProvider=new _r},e}();var qr=qn.getInstance();var Y=require("@tracer/opentelemetry");var Ar=class e{constructor({name:r}){}log(r,t){}error(r,t){}critical(r,t){}createComponentTracer(r){return new e({name:r})}end(){}getFinishedSpans(){}getTraceId(){return this.fakeTraceId}},Be=class e{constructor({name:r,parentContext:t,tracer:n}){this.childTracers=[];let o=!n;if(o){let s=(0,Y.initTracerOpenTelemetry)({serviceName:"videoplayer-sdk-web",appToken:"L9SBoka6ZWk4xPjaK7tmfSfYvMhcge7nvGDjpdMmscb",spanLimits:{attributeCountLimit:1/0,eventCountLimit:1/0,attributePerEventCountLimit:1/0}}).getProvider(),a=new Y.TracerMemorySpanExporter,c=new Y.TracerMemorySpanExporter;this.spanExporter=a,s.addSpanProcessor(new Y.TracerAllSpansProcessor({startedSpansExporter:a,endedSpansExporter:c})),this.tracer=s.getTracer("sdk-videoplayer-tracer")}else this.tracer=n;this.span=this.tracer.startSpan(r,{root:o},t),this.context=qr.setSpan(Rr.active(),this.span)}log(r,t){this.span.addEvent(r,U(A({},t),{type:"log"}))}error(r,t){this.span.addEvent(r,U(A({},t),{type:"error"}))}critical(r,t){this.span.addEvent(r,U(A({},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 An(e,r='Assertion "value is not nullable" failed'){if(e==null)throw new Error(r)}function Cn(e,r='Assertion "value is nullable" failed'){if(e!=null)throw new Error(r)}function z(e){return typeof e!="undefined"&&e!==null}function Ue(e){return e==null}function Nn(e,r){if(!(e!=null&&e.length))throw new Error(r)}function Ln(e,r){if(e!=null&&e.length)throw new Error(r)}var Mn=(e,r,t)=>new Promise((n,o)=>{r.addEventListener("abort",()=>{a(),l.remove()});let i=()=>{a(),o()},s=()=>{a(),n()},a=()=>{c&&clearTimeout(c),l.removeEventListener("load",s),l.removeEventListener("error",i)},c;t&&(c=window.setTimeout(i,t));let l=document.createElement("script");l.addEventListener("load",s),l.addEventListener("error",i),l.src=e,document.head.appendChild(l)});var jn,Vn=typeof((jn=window.performance)==null?void 0:jn.now)=="function"?()=>window.performance.now():()=>Date.now();var kn=(e,r)=>(...t)=>Me(void 0,null,function*(){var s;let n=r(...t),o=e.aborted,i;for(;!o&&!e.aborted;)try{let a=yield n.next(i);o=(s=a.done)!=null?s:!1,i=a.value}catch(a){yield n.throw(a)}return i});var Nr=()=>{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)},Cr=class{constructor(){this.detect()}get browser(){return this._currentBrowser}get device(){return this._currentDevice}get isTouch(){return this._maxTouchPoints>0}get isIOS(){return["iPhone","iPad","iPod"].includes(this.device)}get isMac(){return this.device==="Mac"}get isApple(){return this.isIOS||this.isMac}get isIphoneOrOldIpad(){if(!this.isApple||!this.isTouch)return!1;let r=this.device==="iPad"||(window==null?void 0:window.screen.width)>700,t=this._iosVersion;return!r||r&&!!t&&t<16}get isAndroid(){return this.device==="Android"}get isMobile(){return this._isMobile}get iOSVersion(){return this._iosVersion}get macVersion(){return this._macVersion}get isYandex(){return this.browser==="Yandex"}get isSafari(){return this.browser==="Safari"}get isSamsungBrowser(){return this.browser==="SamsungBrowser"}get isHDR(){return this._isHdr}detect(){var n;let{userAgent:r,maxTouchPoints:t}=navigator;try{this._maxTouchPoints=t,this._isHdr=!!((n=matchMedia("(dynamic-range: high)"))!=null&&n.matches)}catch(o){console.error(o)}try{this._isMobile=Nr()}catch(o){console.error(o)}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,o=/chrome|crios/i.test(r)?"Chrome":void 0,i=/chromium/i.test(r)?"Chromium":void 0,s=/firefox|fxios/i.test(r)?"Firefox":void 0,a=/webkit|safari|khtml/i.test(r)?"Safari":void 0,c=/opr\//i.test(r)?"Opera":void 0,l=/edg/i.test(r)?"Edge":void 0;this._currentBrowser=t||n||s||c||l||o||i||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,o=/ipad/i.test(r)?"iPad":void 0,i=/ipod/i.test(r)?"iPod":void 0,s=/mac/i.test(r)?"Mac":void 0,a=/webOS|BlackBerry|IEMobile|Opera Mini/i.test(r)?"RestMobile":void 0;this._currentDevice=t||n||o||i||a||s||"Desktop"}catch(t){console.error(t)}}detectIOSVersion(){try{let{userAgent:r}=window.navigator,t=r.match(/Version\/(\d+(\.\d+)?)/i);if(!t)return;let n=t[1],o=parseFloat(n);if(isNaN(o))return;this._iosVersion=o}catch(r){console.error(r)}}detectMacVersion(){try{let{userAgent:r}=window.navigator,t=r.match(/Version\/(\d+)/);if(!t)return;let n=t[1],o=parseInt(n,10);if(isNaN(o))return;this._macVersion=o}catch(r){console.error(r)}}},Dn=new Cr;var Fn=(e,{start:r=0,factor:t=2,max:n=1/0,min:o=r,random:i=0}={})=>{let s=r;return s*=ln(t,e),s*=1+(Math.random()*i*2-i),s=Math.round(s),s=Math.min(s,n),s=Math.max(s,o),s};var Qe={};pn(Qe,{clear:()=>ku,get:()=>Lu,has:()=>ju,isPersistent:()=>Nu,remove:()=>Vu,set:()=>Mu});var I,H,Lr=`vk-videoplayer-dummy-key-${Math.random()}`,oe=()=>{if(H!==void 0)return H;try{localStorage.setItem(Lr,"test"),localStorage.removeItem(Lr),H=0}catch(e){if(e instanceof DOMException||e instanceof TypeError)try{sessionStorage.getItem(Lr),H=1}catch(r){if(r instanceof DOMException||r instanceof TypeError)H=2;else throw r}else throw e}return H===2&&(I=new Map),H},Nu=()=>oe()===0,Lu=e=>{var t,n;let r=oe();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 I==null?void 0:I.get(e);default:C(r)}},Mu=(e,r)=>{let t=oe();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(I==null?void 0:I.set(e,r));default:C(t)}},ju=e=>{var t;let r=oe();switch(r){case 0:return e in localStorage;case 1:return e in sessionStorage;case 2:return(t=I==null?void 0:I.has(e))!=null?t:!1;default:return C(r),!1}},Vu=e=>{let r=oe();switch(r){case 0:return localStorage.removeItem(e);case 1:return sessionStorage.removeItem(e);case 2:return void(I==null?void 0:I.delete(e));default:C(r)}},ku=()=>{let e=oe();switch(e){case 0:return localStorage.clear();case 1:return sessionStorage.clear();case 2:return I==null?void 0:I.clear();default:C(e)}};var Gn=()=>{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 We=(p=>(p.INVARIANT="Invariant quality",p.Q_144P="144p",p.Q_240P="240p",p.Q_360P="360p",p.Q_480P="480p",p.Q_720P="720p",p.Q_1080P="1080p",p.Q_1440P="1440p",p.Q_2160P="2160p",p.Q_4320P="4320p",p))(We||{});var _={"144p":{width:256,height:144},"240p":{width:428,height:240},"360p":{width:640,height:360},"480p":{width:856,height:480},"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}},Bn=(e,r)=>_[e].height>_[r].height,Un=(e,r)=>_[e].height>=_[r].height,Ke=(e,r)=>_[e].height<_[r].height,Qn=(e,r)=>_[e].height<=_[r].height,Wn=e=>e.sort((r,t)=>r===t?0:r==="Invariant quality"?1:t==="Invariant quality"?-1:Ke(r,t)?1:-1)[0],Kn=Object.keys(_).sort((e,r)=>Ke(e,r)?-1:1),$n=(e,r=.02)=>[...Kn].find(n=>_[n].height*(1+r)>=e),Yn=({width:e,height:r})=>{let t=Math.min(e,r),n=Math.max(e,r);return Kn.find(o=>{let i=_[o];return i.width>=n&&i.height>=t})},zn=e=>_[e].height,$e=e=>e==="Invariant quality",Hn=e=>e.every(r=>!$e(r));function Xn(e){if($e(e))throw new Error("Expected exact quality")}var Jn=(e,r)=>{let t={};for(let n of Object.keys(r)){let o=r[n],i=e[n];Array.isArray(o)&&Array.isArray(i)?t[n]=i:typeof o=="object"&&typeof i=="object"?t[n]=Jn(i,o):t[n]=n in e?i:o}return t};var Du=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 Ye(e,r=0,t){let n,o,i,s,a,c,l=0,p=!1,f=!1,d=!0,b=!r&&r!==0&&typeof window.requestAnimationFrame=="function";t&&(p=!!t.leading,f="maxWait"in t,i=t!=null&&t.maxWait?Math.max(+(t==null?void 0:t.maxWait)||0,r):i,d="trailing"in t?!!t.trailing:d);function T(m){let R=n,$=o;return n=o=void 0,l=m,s=e.apply($,R),s}function h(m,R){return b?(a&&window.cancelAnimationFrame(a),window.requestAnimationFrame(m)):setTimeout(m,R)}function x(m){if(b){window.cancelAnimationFrame(m);return}clearTimeout(m)}function y(m){return l=m,a=h(Ne,r),p?T(m):s}function g(m){let R=m-c,$=m-l,an=r-R;return f?Math.min(an,i-$):an}function nn(m){let R=m-c,$=m-l;return c===void 0||R>=r||R<0||f&&$>=i}function Ne(){let m=Date.now();if(nn(m))return on(m);a=h(Ne,g(m))}function on(m){return a=void 0,d&&n?T(m):(n=o=void 0,s)}function ru(){a!==void 0&&x(a),l=0,n=c=o=a=void 0}function tu(){return a===void 0?s:on(Date.now())}function nu(){return a!==void 0}function Le(...m){let R=Date.now(),$=nn(R);if(n=m,o=this,c=R,$){if(a===void 0)return y(c);if(f)return a=h(Ne,r),T(c)}return a===void 0&&(a=h(Ne,r)),s}return Le.cancel=ru,Le.flush=tu,Le.pending=nu,Le}var ze=(e,r=0,t)=>Ye(e,r,U(A(A({},{leading:!0,trailing:!0}),t),{maxWait:r}));var Te=(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 o=r(e[n],n,e,t);if(o!==void 0){t[n]=o;continue}}typeof e[n]=="object"?t[n]=Te(e[n],r):t[n]=e[n]}return t};var Zn=e=>Te(e);var Fu=300,eo=(e,r=Fu)=>new v(t=>{let{width:n,height:o}=e.getBoundingClientRect();if(t.next({width:n,height:o}),!window.ResizeObserver)return;let i=new ResizeObserver(ze(s=>{let a=s[0];if(!a)return;let c,l;a.contentBoxSize&&a.contentBoxSize[0]?(l=a.contentBoxSize[0].blockSize,c=a.contentBoxSize[0].inlineSize):a.contentRect&&(c=a.contentRect.width,l=a.contentRect.height),z(c)&&z(l)&&t.next({width:c,height:l})},r));return i.observe(e),()=>i.disconnect()});var he=(e,r=".")=>{let t={};for(let n in e)if(e.hasOwnProperty(n))if(typeof e[n]=="object"&&e[n]!==null){let o=he(e[n]);for(let i in o)o.hasOwnProperty(i)&&(t[n+r+i]=o[i])}else t[n]=e[n];return t};var ro=e=>{e.removeAttribute("src"),e.load()};var to=e=>r=>t=>{let n=typeof t=="object";t==null||n&&!Object.keys(t).length||e(r,n?he(t):{value:t})};var ye=class extends M{constructor(r){super(),this.value=r}next(r){super.next(this.value=r)}error(r){super.error(this.value=r)}getValue(){return this.value}_subscribe(r){let t=super._subscribe(r);return r.next(this.value),t}};function Mr(e){return new v(r=>{let t={},n=Object.keys(e).length,o=i=>s=>{i in t||n--,t[i]=s,n===0&&r.next(t)};return Object.entries(e).reduce((i,[s,a])=>i.add(a.subscribe(o(s))),new S)})}function jr(...e){return new v(r=>e.reduce((t,n)=>t.add(n.subscribe(r)),new S))}var no=e=>new v(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 oo=e=>new v(r=>{let t=window.setInterval(()=>r.next(),e);return()=>{t&&(window.clearInterval(t),t=void 0)}});var io=e=>new v(r=>{e.forEach(t=>r.next(t))});var ao=(e,r)=>new v(t=>{let n=o=>t.next(o);return e.addEventListener(r,n),()=>e.removeEventListener(r,n)});function kr(e){return r=>new v(t=>r.subscribe(new Vr(t,e)))}var Vr=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 Gu={leading:!1,trailing:!0};function Fr(e,r=Gu){return t=>new v(n=>t.subscribe(new Dr(n,e,r)))}var Dr=class{constructor(r,t,n){this.destination=r;this.time=t;this.config=n}next(r){this.lastValue=r,z(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 Bu={leading:!0,trailing:!1};function Br(e,r=Bu){return t=>new v(n=>t.subscribe(new Gr(n,e,r)))}var Gr=class{constructor(r,t,n){this.destination=r;this.time=t;this.config=n}next(r){this.lastValue=r,Ue(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 Qr(e){return r=>new v(t=>r.subscribe(new Ur(t,e)))}var Ur=class{constructor(r,t){this.destination=r;this.predicate=t}next(r){let t;try{t=this.predicate(r)}catch(n){throw this.error(n),n}t&&this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function Kr(e=(r,t)=>r===t){return r=>new v(t=>r.subscribe(new Wr(t,e)))}var so={},Wr=class{constructor(r,t){this.destination=r;this.predicate=t;this.lastValue=so}next(r){let t;try{t=this.lastValue===so||!this.predicate(this.lastValue,r),this.lastValue=r}catch(n){throw this.error(n),n}t&&this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function ge(e){return r=>new v(t=>r.subscribe(new $r(t,e)))}var $r=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 Yr(e){return ge(()=>e)}function zr(){return e=>new v(r=>{let t=!1,n=!1,o=e.subscribe(i=>{t||(t=!0,r.next(i)),n&&o.unsubscribe()},i=>{var s;t=!0,(s=r.error)==null||s.call(r,i),n&&o.unsubscribe()});return n=!0,t&&o.unsubscribe(),o})}function Xr(){return e=>new v(r=>e.subscribe(new Hr(r)))}var Hr=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 Zr(e){return r=>new v(t=>r.subscribe(new Jr(t,e)))}var Jr=class{constructor(r,t){this.destination=r;this.effect=t}next(r){try{this.effect(r)}catch(t){throw this.error(t),t}this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};var uo=(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))(uo||{});var He=class{constructor(){Object.defineProperty(this,"listeners",{value:{},writable:!0,configurable:!0})}addEventListener(r,t,n){r in this.listeners||(this.listeners[r]=[]),this.listeners[r].push({callback:t,options:n})}removeEventListener(r,t){if(!(r in this.listeners))return;let n=this.listeners[r];for(let o=0,i=n.length;o<i;o++)if(n[o].callback===t){n.splice(o,1);return}}dispatchEvent(r){if(!(r.type in this.listeners))return;let n=this.listeners[r.type].slice();for(let o=0,i=n.length;o<i;o++){let s=n[o];try{s.callback.call(this,r)}catch(a){Promise.resolve().then(()=>{throw a})}s.options&&s.options.once&&this.removeEventListener(r.type,s.callback)}return!r.defaultPrevented}},ie=class extends He{constructor(){super(),this.listeners||He.call(this),Object.defineProperty(this,"aborted",{value:!1,writable:!0,configurable:!0}),Object.defineProperty(this,"onabort",{value:null,writable:!0,configurable:!0}),Object.defineProperty(this,"reason",{value:void 0,writable:!0,configurable:!0})}toString(){return"[object AbortSignal]"}dispatchEvent(r){r.type==="abort"&&(this.aborted=!0,typeof this.onabort=="function"&&this.onabort.call(this,r)),super.dispatchEvent(r)}},xe=class{constructor(){Object.defineProperty(this,"signal",{value:new ie,writable:!0,configurable:!0})}abort(r){let t;try{t=new Event("abort")}catch(o){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(o){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&&(xe.prototype[Symbol.toStringTag]="AbortController",ie.prototype[Symbol.toStringTag]="AbortSignal");function Xe(e){return e.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL?(console.log("__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL=true is set, will force install polyfill"),!0):typeof e.Request=="function"&&!e.Request.prototype.hasOwnProperty("signal")||!e.AbortController}function et(e){typeof e=="function"&&(e={fetch:e});let{fetch:r,Request:t=r.Request,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:o=!1}=e;if(!Xe({fetch:r,Request:t,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:o}))return{fetch:r,Request:i};let i=t;(i&&!i.prototype.hasOwnProperty("signal")||o)&&(i=function(l,p){let f;p&&p.signal&&(f=p.signal,delete p.signal);let d=new t(l,p);return f&&Object.defineProperty(d,"signal",{writable:!1,enumerable:!1,configurable:!0,value:f}),d},i.prototype=t.prototype);let s=r;return{fetch:(c,l)=>{let p=i&&i.prototype.isPrototypeOf(c)?c.signal:l?l.signal:void 0;if(p){let f;try{f=new DOMException("Aborted","AbortError")}catch(b){f=new Error("Aborted"),f.name="AbortError"}if(p.aborted)return Promise.reject(f);let d=new Promise((b,T)=>{p.addEventListener("abort",()=>T(f),{once:!0})});return l&&l.signal&&delete l.signal,Promise.race([d,s(c,l)])}return s(c,l)},Request:i}}var Ie=Xe({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}),co=Ie?et({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}):void 0,lo=Ie?co.fetch:window.fetch,GT=Ie?co.Request:window.Request,BT=Ie?xe:window.AbortController,UT=Ie?ie:window.AbortSignal;var Js=pu(Xs(),1);var Zs=(f=>(f.Armenian="58",f.Azerbaijani="57",f.Belarusian="114",f.English="3",f.Kazakh="97",f.Portuguese="73",f.Russian="0",f.Spanish="4",f.Ukrainian="1",f.Uzbek="65",f.Vietnamese="75",f))(Zs||{}),Nv="vk.com",Lv=(e,r,t)=>Me(void 0,null,function*(){let n=new URL(`https://${Nv}/js/lang-pack.js`);n.searchParams.set("format","json"),n.searchParams.set("name",r),e!==void 0&&n.searchParams.set("lang",e);let i=yield(yield lo(n.toString())).json();return Mv(i,t)}),Mv=(e,r)=>(0,Js.default)(Object.entries(e.keys).map(([t,n])=>[t.substring(`${r}_`.length),jv(n)])),jv=e=>Array.isArray(e)?e[0]:e;var eu=(t=>(t.RU="ru",t.EN="en",t))(eu||{});
|
|
6
|
+
"use strict";var hs=Object.create;var ie=Object.defineProperty,ys=Object.defineProperties,gs=Object.getOwnPropertyDescriptor,Is=Object.getOwnPropertyDescriptors,Os=Object.getOwnPropertyNames,Mt=Object.getOwnPropertySymbols,xs=Object.getPrototypeOf,kt=Object.prototype.hasOwnProperty,ws=Object.prototype.propertyIsEnumerable;var Vt=Math.pow,Nt=(e,r,t)=>r in e?ie(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,A=(e,r)=>{for(var t in r||(r={}))kt.call(r,t)&&Nt(e,t,r[t]);if(Mt)for(var t of Mt(r))ws.call(r,t)&&Nt(e,t,r[t]);return e},F=(e,r)=>ys(e,Is(r));var a=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),Dt=(e,r)=>{for(var t in r)ie(e,t,{get:r[t],enumerable:!0})},Ft=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of Os(r))!kt.call(e,i)&&i!==t&&ie(e,i,{get:()=>r[i],enumerable:!(n=gs(r,i))||n.enumerable});return e};var Es=(e,r,t)=>(t=e!=null?hs(xs(e)):{},Ft(r||!e||!e.__esModule?ie(t,"default",{value:e,enumerable:!0}):t,e)),Ss=e=>Ft(ie({},"__esModule",{value:!0}),e);var xe=(e,r,t)=>new Promise((n,i)=>{var o=l=>{try{s(t.next(l))}catch(c){i(c)}},u=l=>{try{s(t.throw(l))}catch(c){i(c)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(o,u);s((t=t.apply(e,r)).next())});var C=a((Ad,En)=>{"use strict";En.exports=function(e){try{return!!e()}catch(r){return!0}}});var pe=a((_d,Sn)=>{"use strict";var ks=C();Sn.exports=!ks(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var M=a((Cd,Pn)=>{"use strict";var qn=pe(),Rn=Function.prototype,Ar=Rn.call,Vs=qn&&Rn.bind.bind(Ar,Ar);Pn.exports=qn?Vs:function(e){return function(){return Ar.apply(e,arguments)}}});var Ne=a((Ld,_n)=>{"use strict";var An=M(),Ds=An({}.toString),Fs=An("".slice);_n.exports=function(e){return Fs(Ds(e),8,-1)}});var Ln=a((jd,Cn)=>{"use strict";var Us=M(),Gs=C(),Bs=Ne(),_r=Object,Qs=Us("".split);Cn.exports=Gs(function(){return!_r("z").propertyIsEnumerable(0)})?function(e){return Bs(e)==="String"?Qs(e,""):_r(e)}:_r});var ke=a((Md,jn)=>{"use strict";jn.exports=function(e){return e==null}});var Ve=a((Nd,Mn)=>{"use strict";var Ws=ke(),$s=TypeError;Mn.exports=function(e){if(Ws(e))throw new $s("Can't call method on "+e);return e}});var J=a((kd,Nn)=>{"use strict";var zs=Ln(),Ys=Ve();Nn.exports=function(e){return zs(Ys(e))}});var Vn=a((Vd,kn)=>{"use strict";kn.exports=function(){}});var z=a((Dd,Dn)=>{"use strict";Dn.exports={}});var w=a((Cr,Fn)=>{"use strict";var fe=function(e){return e&&e.Math===Math&&e};Fn.exports=fe(typeof globalThis=="object"&&globalThis)||fe(typeof window=="object"&&window)||fe(typeof self=="object"&&self)||fe(typeof global=="object"&&global)||fe(typeof Cr=="object"&&Cr)||function(){return this}()||Function("return this")()});var E=a((Fd,Un)=>{"use strict";var Lr=typeof document=="object"&&document.all;Un.exports=typeof Lr=="undefined"&&Lr!==void 0?function(e){return typeof e=="function"||e===Lr}:function(e){return typeof e=="function"}});var Qn=a((Ud,Bn)=>{"use strict";var Ks=w(),Hs=E(),Gn=Ks.WeakMap;Bn.exports=Hs(Gn)&&/native code/.test(String(Gn))});var N=a((Gd,Wn)=>{"use strict";var Xs=E();Wn.exports=function(e){return typeof e=="object"?e!==null:Xs(e)}});var L=a((Bd,$n)=>{"use strict";var Js=C();$n.exports=!Js(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var Mr=a((Qd,Yn)=>{"use strict";var Zs=w(),zn=N(),jr=Zs.document,eu=zn(jr)&&zn(jr.createElement);Yn.exports=function(e){return eu?jr.createElement(e):{}}});var Nr=a((Wd,Kn)=>{"use strict";var ru=L(),tu=C(),nu=Mr();Kn.exports=!ru&&!tu(function(){return Object.defineProperty(nu("div"),"a",{get:function(){return 7}}).a!==7})});var kr=a(($d,Hn)=>{"use strict";var iu=L(),ou=C();Hn.exports=iu&&ou(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var Y=a((zd,Xn)=>{"use strict";var au=N(),su=String,uu=TypeError;Xn.exports=function(e){if(au(e))return e;throw new uu(su(e)+" is not an object")}});var G=a((Yd,Jn)=>{"use strict";var cu=pe(),De=Function.prototype.call;Jn.exports=cu?De.bind(De):function(){return De.apply(De,arguments)}});var Fe=a((Kd,Zn)=>{"use strict";Zn.exports={}});var Fr=a((Hd,ri)=>{"use strict";var Vr=Fe(),Dr=w(),lu=E(),ei=function(e){return lu(e)?e:void 0};ri.exports=function(e,r){return arguments.length<2?ei(Vr[e])||ei(Dr[e]):Vr[e]&&Vr[e][r]||Dr[e]&&Dr[e][r]}});var Ur=a((Xd,ti)=>{"use strict";var pu=M();ti.exports=pu({}.isPrototypeOf)});var ai=a((Jd,oi)=>{"use strict";var fu=w(),ni=fu.navigator,ii=ni&&ni.userAgent;oi.exports=ii?String(ii):""});var bi=a((Zd,fi)=>{"use strict";var pi=w(),Gr=ai(),si=pi.process,ui=pi.Deno,ci=si&&si.versions||ui&&ui.version,li=ci&&ci.v8,R,Ue;li&&(R=li.split("."),Ue=R[0]>0&&R[0]<4?1:+(R[0]+R[1]));!Ue&&Gr&&(R=Gr.match(/Edge\/(\d+)/),(!R||R[1]>=74)&&(R=Gr.match(/Chrome\/(\d+)/),R&&(Ue=+R[1])));fi.exports=Ue});var Br=a((em,di)=>{"use strict";var vi=bi(),bu=C(),vu=w(),du=vu.String;di.exports=!!Object.getOwnPropertySymbols&&!bu(function(){var e=Symbol("symbol detection");return!du(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&vi&&vi<41})});var Qr=a((rm,mi)=>{"use strict";var mu=Br();mi.exports=mu&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var Wr=a((tm,Ti)=>{"use strict";var Tu=Fr(),hu=E(),yu=Ur(),gu=Qr(),Iu=Object;Ti.exports=gu?function(e){return typeof e=="symbol"}:function(e){var r=Tu("Symbol");return hu(r)&&yu(r.prototype,Iu(e))}});var Ge=a((nm,hi)=>{"use strict";var Ou=String;hi.exports=function(e){try{return Ou(e)}catch(r){return"Object"}}});var be=a((im,yi)=>{"use strict";var xu=E(),wu=Ge(),Eu=TypeError;yi.exports=function(e){if(xu(e))return e;throw new Eu(wu(e)+" is not a function")}});var Be=a((om,gi)=>{"use strict";var Su=be(),qu=ke();gi.exports=function(e,r){var t=e[r];return qu(t)?void 0:Su(t)}});var Oi=a((am,Ii)=>{"use strict";var $r=G(),zr=E(),Yr=N(),Ru=TypeError;Ii.exports=function(e,r){var t,n;if(r==="string"&&zr(t=e.toString)&&!Yr(n=$r(t,e))||zr(t=e.valueOf)&&!Yr(n=$r(t,e))||r!=="string"&&zr(t=e.toString)&&!Yr(n=$r(t,e)))return n;throw new Ru("Can't convert object to primitive value")}});var ve=a((sm,xi)=>{"use strict";xi.exports=!0});var Si=a((um,Ei)=>{"use strict";var wi=w(),Pu=Object.defineProperty;Ei.exports=function(e,r){try{Pu(wi,e,{value:r,configurable:!0,writable:!0})}catch(t){wi[e]=r}return r}});var Qe=a((cm,Pi)=>{"use strict";var Au=ve(),_u=w(),Cu=Si(),qi="__core-js_shared__",Ri=Pi.exports=_u[qi]||Cu(qi,{});(Ri.versions||(Ri.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 Kr=a((lm,_i)=>{"use strict";var Ai=Qe();_i.exports=function(e,r){return Ai[e]||(Ai[e]=r||{})}});var Hr=a((pm,Ci)=>{"use strict";var Lu=Ve(),ju=Object;Ci.exports=function(e){return ju(Lu(e))}});var k=a((fm,Li)=>{"use strict";var Mu=M(),Nu=Hr(),ku=Mu({}.hasOwnProperty);Li.exports=Object.hasOwn||function(r,t){return ku(Nu(r),t)}});var Xr=a((bm,ji)=>{"use strict";var Vu=M(),Du=0,Fu=Math.random(),Uu=Vu(1 .toString);ji.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Uu(++Du+Fu,36)}});var V=a((vm,Ni)=>{"use strict";var Gu=w(),Bu=Kr(),Mi=k(),Qu=Xr(),Wu=Br(),$u=Qr(),Z=Gu.Symbol,Jr=Bu("wks"),zu=$u?Z.for||Z:Z&&Z.withoutSetter||Qu;Ni.exports=function(e){return Mi(Jr,e)||(Jr[e]=Wu&&Mi(Z,e)?Z[e]:zu("Symbol."+e)),Jr[e]}});var Fi=a((dm,Di)=>{"use strict";var Yu=G(),ki=N(),Vi=Wr(),Ku=Be(),Hu=Oi(),Xu=V(),Ju=TypeError,Zu=Xu("toPrimitive");Di.exports=function(e,r){if(!ki(e)||Vi(e))return e;var t=Ku(e,Zu),n;if(t){if(r===void 0&&(r="default"),n=Yu(t,e,r),!ki(n)||Vi(n))return n;throw new Ju("Can't convert object to primitive value")}return r===void 0&&(r="number"),Hu(e,r)}});var Zr=a((mm,Ui)=>{"use strict";var ec=Fi(),rc=Wr();Ui.exports=function(e){var r=ec(e,"string");return rc(r)?r:r+""}});var ee=a(Bi=>{"use strict";var tc=L(),nc=Nr(),ic=kr(),We=Y(),Gi=Zr(),oc=TypeError,et=Object.defineProperty,ac=Object.getOwnPropertyDescriptor,rt="enumerable",tt="configurable",nt="writable";Bi.f=tc?ic?function(r,t,n){if(We(r),t=Gi(t),We(n),typeof r=="function"&&t==="prototype"&&"value"in n&&nt in n&&!n[nt]){var i=ac(r,t);i&&i[nt]&&(r[t]=n.value,n={configurable:tt in n?n[tt]:i[tt],enumerable:rt in n?n[rt]:i[rt],writable:!1})}return et(r,t,n)}:et:function(r,t,n){if(We(r),t=Gi(t),We(n),nc)try{return et(r,t,n)}catch(i){}if("get"in n||"set"in n)throw new oc("Accessors not supported");return"value"in n&&(r[t]=n.value),r}});var de=a((hm,Qi)=>{"use strict";Qi.exports=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}}});var re=a((ym,Wi)=>{"use strict";var sc=L(),uc=ee(),cc=de();Wi.exports=sc?function(e,r,t){return uc.f(e,r,cc(1,t))}:function(e,r,t){return e[r]=t,e}});var $e=a((gm,zi)=>{"use strict";var lc=Kr(),pc=Xr(),$i=lc("keys");zi.exports=function(e){return $i[e]||($i[e]=pc(e))}});var ze=a((Im,Yi)=>{"use strict";Yi.exports={}});var Ji=a((Om,Xi)=>{"use strict";var fc=Qn(),Hi=w(),bc=N(),vc=re(),it=k(),ot=Qe(),dc=$e(),mc=ze(),Ki="Object already initialized",at=Hi.TypeError,Tc=Hi.WeakMap,Ye,me,Ke,hc=function(e){return Ke(e)?me(e):Ye(e,{})},yc=function(e){return function(r){var t;if(!bc(r)||(t=me(r)).type!==e)throw new at("Incompatible receiver, "+e+" required");return t}};fc||ot.state?(P=ot.state||(ot.state=new Tc),P.get=P.get,P.has=P.has,P.set=P.set,Ye=function(e,r){if(P.has(e))throw new at(Ki);return r.facade=e,P.set(e,r),r},me=function(e){return P.get(e)||{}},Ke=function(e){return P.has(e)}):(K=dc("state"),mc[K]=!0,Ye=function(e,r){if(it(e,K))throw new at(Ki);return r.facade=e,vc(e,K,r),r},me=function(e){return it(e,K)?e[K]:{}},Ke=function(e){return it(e,K)});var P,K;Xi.exports={set:Ye,get:me,has:Ke,enforce:hc,getterFor:yc}});var no=a((xm,to)=>{"use strict";var gc=pe(),ro=Function.prototype,Zi=ro.apply,eo=ro.call;to.exports=typeof Reflect=="object"&&Reflect.apply||(gc?eo.bind(Zi):function(){return eo.apply(Zi,arguments)})});var st=a((wm,io)=>{"use strict";var Ic=Ne(),Oc=M();io.exports=function(e){if(Ic(e)==="Function")return Oc(e)}});var uo=a(so=>{"use strict";var oo={}.propertyIsEnumerable,ao=Object.getOwnPropertyDescriptor,xc=ao&&!oo.call({1:2},1);so.f=xc?function(r){var t=ao(this,r);return!!t&&t.enumerable}:oo});var po=a(lo=>{"use strict";var wc=L(),Ec=G(),Sc=uo(),qc=de(),Rc=J(),Pc=Zr(),Ac=k(),_c=Nr(),co=Object.getOwnPropertyDescriptor;lo.f=wc?co:function(r,t){if(r=Rc(r),t=Pc(t),_c)try{return co(r,t)}catch(n){}if(Ac(r,t))return qc(!Ec(Sc.f,r,t),r[t])}});var bo=a((qm,fo)=>{"use strict";var Cc=C(),Lc=E(),jc=/#|\.prototype\./,Te=function(e,r){var t=Nc[Mc(e)];return t===Vc?!0:t===kc?!1:Lc(r)?Cc(r):!!r},Mc=Te.normalize=function(e){return String(e).replace(jc,".").toLowerCase()},Nc=Te.data={},kc=Te.NATIVE="N",Vc=Te.POLYFILL="P";fo.exports=Te});var ut=a((Rm,mo)=>{"use strict";var vo=st(),Dc=be(),Fc=pe(),Uc=vo(vo.bind);mo.exports=function(e,r){return Dc(e),r===void 0?e:Fc?Uc(e,r):function(){return e.apply(r,arguments)}}});var ct=a((Pm,ho)=>{"use strict";var he=w(),Gc=no(),Bc=st(),Qc=E(),Wc=po().f,$c=bo(),te=Fe(),zc=ut(),ne=re(),To=k();Qe();var Yc=function(e){var r=function(t,n,i){if(this instanceof r){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,i)}return Gc(e,this,arguments)};return r.prototype=e.prototype,r};ho.exports=function(e,r){var t=e.target,n=e.global,i=e.stat,o=e.proto,u=n?he:i?he[t]:he[t]&&he[t].prototype,s=n?te:te[t]||ne(te,t,{})[t],l=s.prototype,c,p,f,v,d,T,h,I,y;for(v in r)c=$c(n?v:t+(i?".":"#")+v,e.forced),p=!c&&u&&To(u,v),T=s[v],p&&(e.dontCallGetSet?(y=Wc(u,v),h=y&&y.value):h=u[v]),d=p&&h?h:r[v],!(!c&&!o&&typeof T==typeof d)&&(e.bind&&p?I=zc(d,he):e.wrap&&p?I=Yc(d):o&&Qc(d)?I=Bc(d):I=d,(e.sham||d&&d.sham||T&&T.sham)&&ne(I,"sham",!0),ne(s,v,I),o&&(f=t+"Prototype",To(te,f)||ne(te,f,{}),ne(te[f],v,d),e.real&&l&&(c||!l[v])&&ne(l,v,d)))}});var Io=a((Am,go)=>{"use strict";var lt=L(),Kc=k(),yo=Function.prototype,Hc=lt&&Object.getOwnPropertyDescriptor,pt=Kc(yo,"name"),Xc=pt&&function(){}.name==="something",Jc=pt&&(!lt||lt&&Hc(yo,"name").configurable);go.exports={EXISTS:pt,PROPER:Xc,CONFIGURABLE:Jc}});var xo=a((_m,Oo)=>{"use strict";var Zc=Math.ceil,el=Math.floor;Oo.exports=Math.trunc||function(r){var t=+r;return(t>0?el:Zc)(t)}});var ft=a((Cm,wo)=>{"use strict";var rl=xo();wo.exports=function(e){var r=+e;return r!==r||r===0?0:rl(r)}});var So=a((Lm,Eo)=>{"use strict";var tl=ft(),nl=Math.max,il=Math.min;Eo.exports=function(e,r){var t=tl(e);return t<0?nl(t+r,0):il(t,r)}});var Ro=a((jm,qo)=>{"use strict";var ol=ft(),al=Math.min;qo.exports=function(e){var r=ol(e);return r>0?al(r,9007199254740991):0}});var bt=a((Mm,Po)=>{"use strict";var sl=Ro();Po.exports=function(e){return sl(e.length)}});var Co=a((Nm,_o)=>{"use strict";var ul=J(),cl=So(),ll=bt(),Ao=function(e){return function(r,t,n){var i=ul(r),o=ll(i);if(o===0)return!e&&-1;var u=cl(n,o),s;if(e&&t!==t){for(;o>u;)if(s=i[u++],s!==s)return!0}else for(;o>u;u++)if((e||u in i)&&i[u]===t)return e||u||0;return!e&&-1}};_o.exports={includes:Ao(!0),indexOf:Ao(!1)}});var Mo=a((km,jo)=>{"use strict";var pl=M(),vt=k(),fl=J(),bl=Co().indexOf,vl=ze(),Lo=pl([].push);jo.exports=function(e,r){var t=fl(e),n=0,i=[],o;for(o in t)!vt(vl,o)&&vt(t,o)&&Lo(i,o);for(;r.length>n;)vt(t,o=r[n++])&&(~bl(i,o)||Lo(i,o));return i}});var dt=a((Vm,No)=>{"use strict";No.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var Vo=a((Dm,ko)=>{"use strict";var dl=Mo(),ml=dt();ko.exports=Object.keys||function(r){return dl(r,ml)}});var Fo=a(Do=>{"use strict";var Tl=L(),hl=kr(),yl=ee(),gl=Y(),Il=J(),Ol=Vo();Do.f=Tl&&!hl?Object.defineProperties:function(r,t){gl(r);for(var n=Il(t),i=Ol(t),o=i.length,u=0,s;o>u;)yl.f(r,s=i[u++],n[s]);return r}});var Go=a((Um,Uo)=>{"use strict";var xl=Fr();Uo.exports=xl("document","documentElement")});var yt=a((Gm,Ko)=>{"use strict";var wl=Y(),El=Fo(),Bo=dt(),Sl=ze(),ql=Go(),Rl=Mr(),Pl=$e(),Qo=">",Wo="<",Tt="prototype",ht="script",zo=Pl("IE_PROTO"),mt=function(){},Yo=function(e){return Wo+ht+Qo+e+Wo+"/"+ht+Qo},$o=function(e){e.write(Yo("")),e.close();var r=e.parentWindow.Object;return e=null,r},Al=function(){var e=Rl("iframe"),r="java"+ht+":",t;return e.style.display="none",ql.appendChild(e),e.src=String(r),t=e.contentWindow.document,t.open(),t.write(Yo("document.F=Object")),t.close(),t.F},He,Xe=function(){try{He=new ActiveXObject("htmlfile")}catch(r){}Xe=typeof document!="undefined"?document.domain&&He?$o(He):Al():$o(He);for(var e=Bo.length;e--;)delete Xe[Tt][Bo[e]];return Xe()};Sl[zo]=!0;Ko.exports=Object.create||function(r,t){var n;return r!==null?(mt[Tt]=wl(r),n=new mt,mt[Tt]=null,n[zo]=r):n=Xe(),t===void 0?n:El.f(n,t)}});var Xo=a((Bm,Ho)=>{"use strict";var _l=C();Ho.exports=!_l(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var It=a((Qm,Zo)=>{"use strict";var Cl=k(),Ll=E(),jl=Hr(),Ml=$e(),Nl=Xo(),Jo=Ml("IE_PROTO"),gt=Object,kl=gt.prototype;Zo.exports=Nl?gt.getPrototypeOf:function(e){var r=jl(e);if(Cl(r,Jo))return r[Jo];var t=r.constructor;return Ll(t)&&r instanceof t?t.prototype:r instanceof gt?kl:null}});var Ot=a((Wm,ea)=>{"use strict";var Vl=re();ea.exports=function(e,r,t,n){return n&&n.enumerable?e[r]=t:Vl(e,r,t),e}});var St=a(($m,na)=>{"use strict";var Dl=C(),Fl=E(),Ul=N(),Gl=yt(),ra=It(),Bl=Ot(),Ql=V(),Wl=ve(),Et=Ql("iterator"),ta=!1,D,xt,wt;[].keys&&(wt=[].keys(),"next"in wt?(xt=ra(ra(wt)),xt!==Object.prototype&&(D=xt)):ta=!0);var $l=!Ul(D)||Dl(function(){var e={};return D[Et].call(e)!==e});$l?D={}:Wl&&(D=Gl(D));Fl(D[Et])||Bl(D,Et,function(){return this});na.exports={IteratorPrototype:D,BUGGY_SAFARI_ITERATORS:ta}});var Je=a((zm,oa)=>{"use strict";var zl=V(),Yl=zl("toStringTag"),ia={};ia[Yl]="z";oa.exports=String(ia)==="[object z]"});var qt=a((Ym,aa)=>{"use strict";var Kl=Je(),Hl=E(),Ze=Ne(),Xl=V(),Jl=Xl("toStringTag"),Zl=Object,ep=Ze(function(){return arguments}())==="Arguments",rp=function(e,r){try{return e[r]}catch(t){}};aa.exports=Kl?Ze:function(e){var r,t,n;return e===void 0?"Undefined":e===null?"Null":typeof(t=rp(r=Zl(e),Jl))=="string"?t:ep?Ze(r):(n=Ze(r))==="Object"&&Hl(r.callee)?"Arguments":n}});var ua=a((Km,sa)=>{"use strict";var tp=Je(),np=qt();sa.exports=tp?{}.toString:function(){return"[object "+np(this)+"]"}});var er=a((Hm,la)=>{"use strict";var ip=Je(),op=ee().f,ap=re(),sp=k(),up=ua(),cp=V(),ca=cp("toStringTag");la.exports=function(e,r,t,n){var i=t?e:e&&e.prototype;i&&(sp(i,ca)||op(i,ca,{configurable:!0,value:r}),n&&!ip&&ap(i,"toString",up))}});var fa=a((Xm,pa)=>{"use strict";var lp=St().IteratorPrototype,pp=yt(),fp=de(),bp=er(),vp=z(),dp=function(){return this};pa.exports=function(e,r,t,n){var i=r+" Iterator";return e.prototype=pp(lp,{next:fp(+!n,t)}),bp(e,i,!1,!0),vp[i]=dp,e}});var va=a((Jm,ba)=>{"use strict";var mp=M(),Tp=be();ba.exports=function(e,r,t){try{return mp(Tp(Object.getOwnPropertyDescriptor(e,r)[t]))}catch(n){}}});var ma=a((Zm,da)=>{"use strict";var hp=N();da.exports=function(e){return hp(e)||e===null}});var ha=a((eT,Ta)=>{"use strict";var yp=ma(),gp=String,Ip=TypeError;Ta.exports=function(e){if(yp(e))return e;throw new Ip("Can't set "+gp(e)+" as a prototype")}});var ga=a((rT,ya)=>{"use strict";var Op=va(),xp=N(),wp=Ve(),Ep=ha();ya.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,r={},t;try{t=Op(Object.prototype,"__proto__","set"),t(r,[]),e=r instanceof Array}catch(n){}return function(i,o){return wp(i),Ep(o),xp(i)&&(e?t(i,o):i.__proto__=o),i}}():void 0)});var _a=a((tT,Aa)=>{"use strict";var Sp=ct(),qp=G(),rr=ve(),Ra=Io(),Rp=E(),Pp=fa(),Ia=It(),Oa=ga(),Ap=er(),_p=re(),Rt=Ot(),Cp=V(),xa=z(),Pa=St(),Lp=Ra.PROPER,jp=Ra.CONFIGURABLE,wa=Pa.IteratorPrototype,tr=Pa.BUGGY_SAFARI_ITERATORS,ye=Cp("iterator"),Ea="keys",ge="values",Sa="entries",qa=function(){return this};Aa.exports=function(e,r,t,n,i,o,u){Pp(t,r,n);var s=function(y){if(y===i&&v)return v;if(!tr&&y&&y in p)return p[y];switch(y){case Ea:return function(){return new t(this,y)};case ge:return function(){return new t(this,y)};case Sa:return function(){return new t(this,y)}}return function(){return new t(this)}},l=r+" Iterator",c=!1,p=e.prototype,f=p[ye]||p["@@iterator"]||i&&p[i],v=!tr&&f||s(i),d=r==="Array"&&p.entries||f,T,h,I;if(d&&(T=Ia(d.call(new e)),T!==Object.prototype&&T.next&&(!rr&&Ia(T)!==wa&&(Oa?Oa(T,wa):Rp(T[ye])||Rt(T,ye,qa)),Ap(T,l,!0,!0),rr&&(xa[l]=qa))),Lp&&i===ge&&f&&f.name!==ge&&(!rr&&jp?_p(p,"name",ge):(c=!0,v=function(){return qp(f,this)})),i)if(h={values:s(ge),keys:o?v:s(Ea),entries:s(Sa)},u)for(I in h)(tr||c||!(I in p))&&Rt(p,I,h[I]);else Sp({target:r,proto:!0,forced:tr||c},h);return(!rr||u)&&p[ye]!==v&&Rt(p,ye,v,{name:i}),xa[r]=v,h}});var La=a((nT,Ca)=>{"use strict";Ca.exports=function(e,r){return{value:e,done:r}}});var At=a((iT,Va)=>{"use strict";var Mp=J(),Pt=Vn(),ja=z(),Na=Ji(),Np=ee().f,kp=_a(),nr=La(),Vp=ve(),Dp=L(),ka="Array Iterator",Fp=Na.set,Up=Na.getterFor(ka);Va.exports=kp(Array,"Array",function(e,r){Fp(this,{type:ka,target:Mp(e),index:0,kind:r})},function(){var e=Up(this),r=e.target,t=e.index++;if(!r||t>=r.length)return e.target=void 0,nr(void 0,!0);switch(e.kind){case"keys":return nr(t,!1);case"values":return nr(r[t],!1)}return nr([t,r[t]],!1)},"values");var Ma=ja.Arguments=ja.Array;Pt("keys");Pt("values");Pt("entries");if(!Vp&&Dp&&Ma.name!=="values")try{Np(Ma,"name",{value:"values"})}catch(e){}});var Fa=a((oT,Da)=>{"use strict";var Gp=V(),Bp=z(),Qp=Gp("iterator"),Wp=Array.prototype;Da.exports=function(e){return e!==void 0&&(Bp.Array===e||Wp[Qp]===e)}});var _t=a((aT,Ga)=>{"use strict";var $p=qt(),Ua=Be(),zp=ke(),Yp=z(),Kp=V(),Hp=Kp("iterator");Ga.exports=function(e){if(!zp(e))return Ua(e,Hp)||Ua(e,"@@iterator")||Yp[$p(e)]}});var Qa=a((sT,Ba)=>{"use strict";var Xp=G(),Jp=be(),Zp=Y(),ef=Ge(),rf=_t(),tf=TypeError;Ba.exports=function(e,r){var t=arguments.length<2?rf(e):r;if(Jp(t))return Zp(Xp(t,e));throw new tf(ef(e)+" is not iterable")}});var za=a((uT,$a)=>{"use strict";var nf=G(),Wa=Y(),of=Be();$a.exports=function(e,r,t){var n,i;Wa(e);try{if(n=of(e,"return"),!n){if(r==="throw")throw t;return t}n=nf(n,e)}catch(o){i=!0,n=o}if(r==="throw")throw t;if(i)throw n;return Wa(n),t}});var Ja=a((cT,Xa)=>{"use strict";var af=ut(),sf=G(),uf=Y(),cf=Ge(),lf=Fa(),pf=bt(),Ya=Ur(),ff=Qa(),bf=_t(),Ka=za(),vf=TypeError,ir=function(e,r){this.stopped=e,this.result=r},Ha=ir.prototype;Xa.exports=function(e,r,t){var n=t&&t.that,i=!!(t&&t.AS_ENTRIES),o=!!(t&&t.IS_RECORD),u=!!(t&&t.IS_ITERATOR),s=!!(t&&t.INTERRUPTED),l=af(r,n),c,p,f,v,d,T,h,I=function(g){return c&&Ka(c,"normal",g),new ir(!0,g)},y=function(g){return i?(uf(g),s?l(g[0],g[1],I):l(g[0],g[1])):s?l(g,I):l(g)};if(o)c=e.iterator;else if(u)c=e;else{if(p=bf(e),!p)throw new vf(cf(e)+" is not iterable");if(lf(p)){for(f=0,v=pf(e);v>f;f++)if(d=y(e[f]),d&&Ya(Ha,d))return d;return new ir(!1)}c=ff(e,p)}for(T=o?e.next:c.next;!(h=sf(T,c)).done;){try{d=y(h.value)}catch(g){Ka(c,"throw",g)}if(typeof d=="object"&&d&&Ya(Ha,d))return d}return new ir(!1)}});var es=a((lT,Za)=>{"use strict";var df=L(),mf=ee(),Tf=de();Za.exports=function(e,r,t){df?mf.f(e,r,Tf(0,t)):e[r]=t}});var rs=a(()=>{"use strict";var hf=ct(),yf=Ja(),gf=es();hf({target:"Object",stat:!0},{fromEntries:function(r){var t={};return yf(r,function(n,i){gf(t,n,i)},{AS_ENTRIES:!0}),t}})});var ns=a((bT,ts)=>{"use strict";At();rs();var If=Fe();ts.exports=If.Object.fromEntries});var os=a((vT,is)=>{"use strict";is.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 ss=a(()=>{"use strict";At();var Of=os(),xf=w(),wf=er(),as=z();for(or in Of)wf(xf[or],or),as[or]=as.Array;var or});var cs=a((TT,us)=>{"use strict";var Ef=ns();ss();us.exports=Ef});var ps=a((hT,ls)=>{"use strict";var Sf=cs();ls.exports=Sf});var _f={};Dt(_f,{Attributes:()=>mn.Attributes,ErrorCategory:()=>On,InterfaceLanguage:()=>vs,Logger:()=>we,Observable:()=>b,Subject:()=>j,Subscription:()=>x,Tracer:()=>Ee,VERSION:()=>Ut,VKNumericLanguage:()=>bs,ValueSubject:()=>se,VideoQuality:()=>Pe,abortable:()=>Ht,addScript:()=>zt,areQualitiesExact:()=>cn,assertEmptyArray:()=>$t,assertNever:()=>_,assertNonNullable:()=>Bt,assertNotEmptyArray:()=>Wt,assertNullable:()=>Qt,assertQualityIsExact:()=>ln,buffer:()=>br,checkNever:()=>Gt,clearVideoElement:()=>vn,clientChecker:()=>Xt,cloneDeep:()=>fn,cloneDeepWith:()=>oe,combine:()=>lr,debounce:()=>dr,debounceFn:()=>Ce,detectEmbed:()=>Zt,fillWithDefault:()=>pn,filter:()=>yr,filterChanged:()=>Ir,flattenObject:()=>ae,fromEvent:()=>gn,getExponentialDelay:()=>Jt,getHighestQuality:()=>nn,getTraceSubscriptionMethod:()=>dn,interval:()=>hn,isHigher:()=>en,isHigherOrEqual:()=>rn,isInvariantQuality:()=>_e,isLower:()=>Ae,isLowerOrEqual:()=>tn,isMobile:()=>ur,isNonNullable:()=>W,isNullable:()=>qe,loadVKLangPack:()=>Rf,map:()=>ue,mapTo:()=>xr,merge:()=>pr,noop:()=>U,now:()=>Kt,observableFrom:()=>yn,observeElementSize:()=>bn,once:()=>wr,pairwise:()=>Sr,safeStorage:()=>Re,tap:()=>Rr,throttle:()=>Tr,throttleFn:()=>Le,timeCodeToString:()=>Ls,timeout:()=>Tn,videoHeightToQuality:()=>an,videoQualityToHeight:()=>un,videoSizeToQuality:()=>sn});module.exports=Ss(_f);var Ut="1.0.40-dev.85b25f2f.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 _=e=>{throw new Error(`${e} is value of unexpected type`)},Gt=e=>{};var U=()=>{};var b=class{constructor(r){r&&(this._subscribe=r)}subscribe(r,t){var u;let n;t?typeof t=="function"?n={next:t,error:U}:n={next:s=>t.next(s),error:s=>{var l;return(l=t.error)==null?void 0:l.call(t,s)}}:n={next:U,error:U};let i=typeof r=="function"?{next:s=>{try{r(s)}catch(l){n.next(l)}},error:s=>n.next(s)}:{next:s=>r.next(s),error:s=>r.error?r.error(s):n.next(s)},o;try{o=this._subscribe(i)}catch(s){(u=i.error)==null||u.call(i,s)}return new x().add(()=>{switch(i.next=U,i.error=U,typeof o){case"function":o();return;case"object":o.unsubscribe();return;case"undefined":return;default:return _(o)}})}pipe(...r){return r.reduce((t,n)=>n(t),this)}_subscribe(r){}};var j=class extends b{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 j;this.logs=[];this.log=r=>{let t=F(A({},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=>A({component:r},t))}};var Se=require("@opentelemetry/api");var Q=require("/Users/builder/teamcity-agent/work/ae259db4970b1067/packages/shared/libs/tracer/lib/index.mjs");var ar=class e{constructor({name:r}){}log(r,t){}error(r,t){}critical(r,t){}createComponentTracer(r){return new e({name:r})}end(){}getFinishedSpans(){}getTraceId(){return this.fakeTraceId}},Ee=class e{constructor({name:r,parentContext:t,tracer:n}){this.childTracers=[];let i=!n;if(i){let u=(0,Q.initTracerOpenTelemetry)({serviceName:"videoplayer-sdk-web",appToken:"L9SBoka6ZWk4xPjaK7tmfSfYvMhcge7nvGDjpdMmscb",spanLimits:{attributeCountLimit:1/0,eventCountLimit:1/0,attributePerEventCountLimit:1/0}}).getProvider(),s=new Q.TracerMemorySpanExporter,l=new Q.TracerMemorySpanExporter;this.spanExporter=s,u.addSpanProcessor(new Q.TracerAllSpansProcessor({startedSpansExporter:s,endedSpansExporter:l})),this.tracer=u.getTracer("sdk-videoplayer-tracer")}else this.tracer=n;this.span=this.tracer.startSpan(r,{root:i},t),this.context=Se.trace.setSpan(Se.context.active(),this.span)}log(r,t){this.span.addEvent(r,F(A({},t),{type:"log"}))}error(r,t){this.span.addEvent(r,F(A({},t),{type:"error"}))}critical(r,t){this.span.addEvent(r,F(A({},t),{type:"critical"}))}static createRootTracer(r=!1){return r?new e({name:"Root"}):new ar({name:"Root"})}createComponentTracer(r){let t=new e({name:r,parentContext:this.context,tracer:this.tracer});return this.childTracers.push(t),t}end(){this.childTracers.forEach(r=>r.end()),this.span.end()}getFinishedSpans(){var r;return(r=this.spanExporter)==null?void 0:r.getJsonData()}getTraceId(){return this.span.spanContext().traceId}};function Bt(e,r='Assertion "value is not nullable" failed'){if(e==null)throw new Error(r)}function Qt(e,r='Assertion "value is nullable" failed'){if(e!=null)throw new Error(r)}function W(e){return typeof e!="undefined"&&e!==null}function qe(e){return e==null}function Wt(e,r){if(!(e!=null&&e.length))throw new Error(r)}function $t(e,r){if(e!=null&&e.length)throw new Error(r)}var zt=(e,r,t)=>new Promise((n,i)=>{r.addEventListener("abort",()=>{s(),c.remove()});let o=()=>{s(),i()},u=()=>{s(),n()},s=()=>{l&&clearTimeout(l),c.removeEventListener("load",u),c.removeEventListener("error",o)},l;t&&(l=window.setTimeout(o,t));let c=document.createElement("script");c.addEventListener("load",u),c.addEventListener("error",o),c.src=e,document.head.appendChild(c)});var Yt,Kt=typeof((Yt=window.performance)==null?void 0:Yt.now)=="function"?()=>window.performance.now():()=>Date.now();var Ht=(e,r)=>(...t)=>xe(void 0,null,function*(){var u;let n=r(...t),i=e.aborted,o;for(;!i&&!e.aborted;)try{let s=yield n.next(o);i=(u=s.done)!=null?u:!1,o=s.value}catch(s){yield n.throw(s)}return o});var ur=()=>{var e,r;return/Mobile|mini|Fennec|Android|iP(ad|od|hone)/.test((e=navigator.appVersion)!=null?e:navigator.userAgent)||((r=navigator==null?void 0:navigator.userAgentData)==null?void 0:r.mobile)},sr=class{constructor(){this.detect()}get browser(){return this._currentBrowser}get device(){return this._currentDevice}get isTouch(){return this._maxTouchPoints>0}get isIOS(){return["iPhone","iPad","iPod"].includes(this.device)}get isMac(){return this.device==="Mac"}get isApple(){return this.isIOS||this.isMac}get isIphoneOrOldIpad(){if(!this.isApple||!this.isTouch)return!1;let r=this.device==="iPad"||(window==null?void 0:window.screen.width)>700,t=this._iosVersion;return!r||r&&!!t&&t<16}get isAndroid(){return this.device==="Android"}get isMobile(){return this._isMobile}get iOSVersion(){return this._iosVersion}get macVersion(){return this._macVersion}get isYandex(){return this.browser==="Yandex"}get isSafari(){return this.browser==="Safari"}get isSamsungBrowser(){return this.browser==="SamsungBrowser"}get isHDR(){return this._isHdr}detect(){var n;let{userAgent:r,maxTouchPoints:t}=navigator;try{this._maxTouchPoints=t,this._isHdr=!!((n=matchMedia("(dynamic-range: high)"))!=null&&n.matches)}catch(i){console.error(i)}try{this._isMobile=ur()}catch(i){console.error(i)}this.detectBrowser(r),this.detectDevice(r),this.isIOS&&this.detectIOSVersion(),this.isMac&&this.detectMacVersion()}detectBrowser(r){try{let t=/yabrowser/i.test(r)?"Yandex":void 0,n=/samsungbrowser/i.test(r)?"SamsungBrowser":void 0,i=/chrome|crios/i.test(r)?"Chrome":void 0,o=/chromium/i.test(r)?"Chromium":void 0,u=/firefox|fxios/i.test(r)?"Firefox":void 0,s=/webkit|safari|khtml/i.test(r)?"Safari":void 0,l=/opr\//i.test(r)?"Opera":void 0,c=/edg/i.test(r)?"Edge":void 0;this._currentBrowser=t||n||u||l||c||i||o||s||"Rest"}catch(t){console.error(t)}}detectDevice(r){try{let t=/android/i.test(r)?"Android":void 0,n=/iphone/i.test(r)?"iPhone":void 0,i=/ipad/i.test(r)?"iPad":void 0,o=/ipod/i.test(r)?"iPod":void 0,u=/mac/i.test(r)?"Mac":void 0,s=/webOS|BlackBerry|IEMobile|Opera Mini/i.test(r)?"RestMobile":void 0;this._currentDevice=t||n||i||o||s||u||"Desktop"}catch(t){console.error(t)}}detectIOSVersion(){try{let{userAgent:r}=window.navigator,t=r.match(/Version\/(\d+(\.\d+)?)/i);if(!t)return;let n=t[1],i=parseFloat(n);if(isNaN(i))return;this._iosVersion=i}catch(r){console.error(r)}}detectMacVersion(){try{let{userAgent:r}=window.navigator,t=r.match(/Version\/(\d+)/);if(!t)return;let n=t[1],i=parseInt(n,10);if(isNaN(i))return;this._macVersion=i}catch(r){console.error(r)}}},Xt=new sr;var Jt=(e,{start:r=0,factor:t=2,max:n=1/0,min:i=r,random:o=0}={})=>{let u=r;return u*=Vt(t,e),u*=1+(Math.random()*o*2-o),u=Math.round(u),u=Math.min(u,n),u=Math.max(u,i),u};var Re={};Dt(Re,{clear:()=>Cs,get:()=>Rs,has:()=>As,isPersistent:()=>qs,remove:()=>_s,set:()=>Ps});var O,$,cr=`vk-videoplayer-dummy-key-${Math.random()}`,H=()=>{if($!==void 0)return $;try{localStorage.setItem(cr,"test"),localStorage.removeItem(cr),$=0}catch(e){if(e instanceof DOMException||e instanceof TypeError)try{sessionStorage.getItem(cr),$=1}catch(r){if(r instanceof DOMException||r instanceof TypeError)$=2;else throw r}else throw e}return $===2&&(O=new Map),$},qs=()=>H()===0,Rs=e=>{var t,n;let r=H();switch(r){case 0:return(t=localStorage.getItem(e))!=null?t:void 0;case 1:return(n=sessionStorage.getItem(e))!=null?n:void 0;case 2:return O==null?void 0:O.get(e);default:_(r)}},Ps=(e,r)=>{let t=H();switch(t){case 0:try{localStorage.setItem(e,r)}catch(n){if(n instanceof DOMException)console.error(n);else throw n}break;case 1:try{sessionStorage.setItem(e,r)}catch(n){if(n instanceof DOMException)console.error(n);else throw n}break;case 2:return void(O==null?void 0:O.set(e,r));default:_(t)}},As=e=>{var t;let r=H();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 _(r),!1}},_s=e=>{let r=H();switch(r){case 0:return localStorage.removeItem(e);case 1:return sessionStorage.removeItem(e);case 2:return void(O==null?void 0:O.delete(e));default:_(r)}},Cs=()=>{let e=H();switch(e){case 0:return localStorage.clear();case 1:return sessionStorage.clear();case 2:return O==null?void 0:O.clear();default:_(e)}};var Zt=()=>{let e,r;try{e=window.self!==window.top}catch(n){n instanceof DOMException&&n.name==="SecurityError"?e=!0:(e=!1,console.error(n))}try{window.location.ancestorOrigins&&(r=window.location.ancestorOrigins[window.location.ancestorOrigins.length-1])}catch(n){console.error(n)}try{!r&&document.referrer&&(r=document.referrer)}catch(n){console.error(n)}let t=r?new URL(r).hostname:void 0;return{isEmbed:e,host:t}};var Pe=(p=>(p.INVARIANT="Invariant quality",p.Q_144P="144p",p.Q_240P="240p",p.Q_360P="360p",p.Q_480P="480p",p.Q_720P="720p",p.Q_1080P="1080p",p.Q_1440P="1440p",p.Q_2160P="2160p",p.Q_4320P="4320p",p))(Pe||{});var S={"144p":{width:256,height:144},"240p":{width:428,height:240},"360p":{width:640,height:360},"480p":{width:856,height:480},"720p":{width:1280,height:720},"1080p":{width:1920,height:1080},"1440p":{width:2560,height:1440},"2160p":{width:3840,height:2160},"4320p":{width:7680,height:4320}},en=(e,r)=>S[e].height>S[r].height,rn=(e,r)=>S[e].height>=S[r].height,Ae=(e,r)=>S[e].height<S[r].height,tn=(e,r)=>S[e].height<=S[r].height,nn=e=>e.sort((r,t)=>r===t?0:r==="Invariant quality"?1:t==="Invariant quality"?-1:Ae(r,t)?1:-1)[0],on=Object.keys(S).sort((e,r)=>Ae(e,r)?-1:1),an=(e,r=.02)=>[...on].find(n=>S[n].height*(1+r)>=e),sn=({width:e,height:r})=>{let t=Math.min(e,r),n=Math.max(e,r);return on.find(i=>{let o=S[i];return o.width>=n&&o.height>=t})},un=e=>S[e].height,_e=e=>e==="Invariant quality",cn=e=>e.every(r=>!_e(r));function ln(e){if(_e(e))throw new Error("Expected exact quality")}var pn=(e,r)=>{let t={};for(let n of Object.keys(r)){let i=r[n],o=e[n];Array.isArray(i)&&Array.isArray(o)?t[n]=o:typeof i=="object"&&typeof o=="object"?t[n]=pn(o,i):t[n]=n in e?o:i}return t};var Ls=e=>{let r="";return e>=3600&&(r+=Math.floor(e/3600)+"h",e=e%3600),e>=60&&(r+=Math.floor(e/60)+"m",e=e%60),e>0&&(r+=Math.floor(e)+"s"),r};function Ce(e,r=0,t){let n,i,o,u,s,l,c=0,p=!1,f=!1,v=!0,d=!r&&r!==0&&typeof window.requestAnimationFrame=="function";t&&(p=!!t.leading,f="maxWait"in t,o=t!=null&&t.maxWait?Math.max(+(t==null?void 0:t.maxWait)||0,r):o,v="trailing"in t?!!t.trailing:v);function T(m){let q=n,B=i;return n=i=void 0,c=m,u=e.apply(B,q),u}function h(m,q){return d?(s&&window.cancelAnimationFrame(s),window.requestAnimationFrame(m)):setTimeout(m,q)}function I(m){if(d){window.cancelAnimationFrame(m);return}clearTimeout(m)}function y(m){return c=m,s=h(Ie,r),p?T(m):u}function g(m){let q=m-l,B=m-c,jt=r-q;return f?Math.min(jt,o-B):jt}function Ct(m){let q=m-l,B=m-c;return l===void 0||q>=r||q<0||f&&B>=o}function Ie(){let m=Date.now();if(Ct(m))return Lt(m);s=h(Ie,g(m))}function Lt(m){return s=void 0,v&&n?T(m):(n=i=void 0,u)}function ds(){s!==void 0&&I(s),c=0,n=l=i=s=void 0}function ms(){return s===void 0?u:Lt(Date.now())}function Ts(){return s!==void 0}function Oe(...m){let q=Date.now(),B=Ct(q);if(n=m,i=this,l=q,B){if(s===void 0)return y(l);if(f)return s=h(Ie,r),T(l)}return s===void 0&&(s=h(Ie,r)),u}return Oe.cancel=ds,Oe.flush=ms,Oe.pending=Ts,Oe}var Le=(e,r=0,t)=>Ce(e,r,F(A(A({},{leading:!0,trailing:!0}),t),{maxWait:r}));var oe=(e,r)=>{if(e===null||typeof e!="object")return e;let t=Array.isArray(e)?[]:{};for(let n in e){if(typeof r=="function"){let i=r(e[n],n,e,t);if(i!==void 0){t[n]=i;continue}}typeof e[n]=="object"?t[n]=oe(e[n],r):t[n]=e[n]}return t};var fn=e=>oe(e);var js=300,bn=(e,r=js)=>new b(t=>{let{width:n,height:i}=e.getBoundingClientRect();if(t.next({width:n,height:i}),!window.ResizeObserver)return;let o=new ResizeObserver(Le(u=>{let s=u[0];if(!s)return;let l,c;s.contentBoxSize&&s.contentBoxSize[0]?(c=s.contentBoxSize[0].blockSize,l=s.contentBoxSize[0].inlineSize):s.contentRect&&(l=s.contentRect.width,c=s.contentRect.height),W(l)&&W(c)&&t.next({width:l,height:c})},r));return o.observe(e),()=>o.disconnect()});var ae=(e,r=".")=>{let t={};for(let n in e)if(e.hasOwnProperty(n))if(typeof e[n]=="object"&&e[n]!==null){let i=ae(e[n]);for(let o in i)i.hasOwnProperty(o)&&(t[n+r+o]=i[o])}else t[n]=e[n];return t};var vn=e=>{e.removeAttribute("src"),e.load()};var dn=e=>r=>t=>{let n=typeof t=="object";t==null||n&&!Object.keys(t).length||e(r,n?ae(t):{value:t})};var mn=require("@opentelemetry/api");var se=class extends j{constructor(r){super(),this.value=r}next(r){super.next(this.value=r)}error(r){super.error(this.value=r)}getValue(){return this.value}_subscribe(r){let t=super._subscribe(r);return r.next(this.value),t}};function lr(e){return new b(r=>{let t={},n=Object.keys(e).length,i=o=>u=>{o in t||n--,t[o]=u,n===0&&r.next(t)};return Object.entries(e).reduce((o,[u,s])=>o.add(s.subscribe(i(u))),new x)})}function pr(...e){return new b(r=>e.reduce((t,n)=>t.add(n.subscribe(r)),new x))}var Tn=e=>new b(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 hn=e=>new b(r=>{let t=window.setInterval(()=>r.next(),e);return()=>{t&&(window.clearInterval(t),t=void 0)}});var yn=e=>new b(r=>{e.forEach(t=>r.next(t))});var gn=(e,r)=>new b(t=>{let n=i=>t.next(i);return e.addEventListener(r,n),()=>e.removeEventListener(r,n)});function br(e){return r=>new b(t=>r.subscribe(new fr(t,e)))}var fr=class{constructor(r,t){this.destination=r;this.size=t;this.lastValues=[]}next(r){this.lastValues.length===this.size&&this.lastValues.shift(),this.lastValues.push(r),this.destination.next(this.lastValues)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};var Ms={leading:!1,trailing:!0};function dr(e,r=Ms){return t=>new b(n=>t.subscribe(new vr(n,e,r)))}var vr=class{constructor(r,t,n){this.destination=r;this.time=t;this.config=n}next(r){this.lastValue=r,W(this.timeout)?window.clearTimeout(this.timeout):this.config.leading&&this.destination.next(r),this.timeout=window.setTimeout(()=>{if(this.config.trailing)try{this.destination.next(this.lastValue)}catch(t){if(this.destination.error)this.destination.error(t);else throw t}this.timeout=void 0},this.time)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};var Ns={leading:!0,trailing:!1};function Tr(e,r=Ns){return t=>new b(n=>t.subscribe(new mr(n,e,r)))}var mr=class{constructor(r,t,n){this.destination=r;this.time=t;this.config=n}next(r){this.lastValue=r,qe(this.timeout)&&(this.config.leading&&this.destination.next(r),this.timeout=window.setTimeout(()=>{this.config.trailing&&this.destination.next(this.lastValue),this.timeout=void 0},this.time))}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function yr(e){return r=>new b(t=>r.subscribe(new hr(t,e)))}var hr=class{constructor(r,t){this.destination=r;this.predicate=t}next(r){let t;try{t=this.predicate(r)}catch(n){throw this.error(n),n}t&&this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function Ir(e=(r,t)=>r===t){return r=>new b(t=>r.subscribe(new gr(t,e)))}var In={},gr=class{constructor(r,t){this.destination=r;this.predicate=t;this.lastValue=In}next(r){let t;try{t=this.lastValue===In||!this.predicate(this.lastValue,r),this.lastValue=r}catch(n){throw this.error(n),n}t&&this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function ue(e){return r=>new b(t=>r.subscribe(new Or(t,e)))}var Or=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 xr(e){return ue(()=>e)}function wr(){return e=>new b(r=>{let t=!1,n=!1,i=e.subscribe(o=>{t||(t=!0,r.next(o)),n&&i.unsubscribe()},o=>{var u;t=!0,(u=r.error)==null||u.call(r,o),n&&i.unsubscribe()});return n=!0,t&&i.unsubscribe(),i})}function Sr(){return e=>new b(r=>e.subscribe(new Er(r)))}var Er=class{constructor(r){this.destination=r;this.hasLast=!1}next(r){let t=this.last;if(this.last=r,!this.hasLast){this.hasLast=!0;return}this.destination.next([t,r])}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function Rr(e){return r=>new b(t=>r.subscribe(new qr(t,e)))}var qr=class{constructor(r,t){this.destination=r;this.effect=t}next(r){try{this.effect(r)}catch(t){throw this.error(t),t}this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};var On=(s=>(s.NETWORK="network",s.VIDEO_PIPELINE="video_pipeline",s.EXTERNAL_API="external_api",s.PARSER="parser",s.DOM="dom",s.WTF="wtf",s.FATAL="fatal",s))(On||{});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,o=n.length;i<o;i++)if(n[i].callback===t){n.splice(i,1);return}}dispatchEvent(r){if(!(r.type in this.listeners))return;let n=this.listeners[r.type].slice();for(let i=0,o=n.length;i<o;i++){let u=n[i];try{u.callback.call(this,r)}catch(s){Promise.resolve().then(()=>{throw s})}u.options&&u.options.once&&this.removeEventListener(r.type,u.callback)}return!r.defaultPrevented}},X=class extends 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)}},ce=class{constructor(){Object.defineProperty(this,"signal",{value:new X,writable:!0,configurable:!0})}abort(r){let t;try{t=new Event("abort")}catch(i){typeof document!="undefined"?document.createEvent?(t=document.createEvent("Event"),t.initEvent("abort",!1,!1)):(t=document.createEventObject(),t.type="abort"):t={type:"abort",bubbles:!1,cancelable:!1}}let n=r;if(n===void 0)if(typeof document=="undefined")n=new Error("This operation was aborted"),n.name="AbortError";else try{n=new DOMException("signal is aborted without reason")}catch(i){n=new Error("This operation was aborted"),n.name="AbortError"}this.signal.reason=n,this.signal.dispatchEvent(t)}toString(){return"[object AbortController]"}};typeof Symbol!="undefined"&&Symbol.toStringTag&&(ce.prototype[Symbol.toStringTag]="AbortController",X.prototype[Symbol.toStringTag]="AbortSignal");function 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 Pr(e){typeof e=="function"&&(e={fetch:e});let{fetch:r,Request:t=r.Request,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:i=!1}=e;if(!Me({fetch:r,Request:t,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:i}))return{fetch:r,Request:o};let o=t;(o&&!o.prototype.hasOwnProperty("signal")||i)&&(o=function(c,p){let f;p&&p.signal&&(f=p.signal,delete p.signal);let v=new t(c,p);return f&&Object.defineProperty(v,"signal",{writable:!1,enumerable:!1,configurable:!0,value:f}),v},o.prototype=t.prototype);let u=r;return{fetch:(l,c)=>{let p=o&&o.prototype.isPrototypeOf(l)?l.signal:c?c.signal:void 0;if(p){let f;try{f=new DOMException("Aborted","AbortError")}catch(d){f=new Error("Aborted"),f.name="AbortError"}if(p.aborted)return Promise.reject(f);let v=new Promise((d,T)=>{p.addEventListener("abort",()=>T(f),{once:!0})});return c&&c.signal&&delete c.signal,Promise.race([v,u(l,c)])}return u(l,c)},Request:o}}var le=Me({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}),xn=le?Pr({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}):void 0,wn=le?xn.fetch:window.fetch,Sd=le?xn.Request:window.Request,qd=le?ce:window.AbortController,Rd=le?X:window.AbortSignal;var fs=Es(ps(),1);var bs=(f=>(f.Armenian="58",f.Azerbaijani="57",f.Belarusian="114",f.English="3",f.Kazakh="97",f.Portuguese="73",f.Russian="0",f.Spanish="4",f.Ukrainian="1",f.Uzbek="65",f.Vietnamese="75",f))(bs||{}),qf="vk.com",Rf=(e,r,t)=>xe(void 0,null,function*(){let n=new URL(`https://${qf}/js/lang-pack.js`);n.searchParams.set("format","json"),n.searchParams.set("name",r),e!==void 0&&n.searchParams.set("lang",e);let o=yield(yield wn(n.toString())).json();return Pf(o,t)}),Pf=(e,r)=>(0,fs.default)(Object.entries(e.keys).map(([t,n])=>[t.substring(`${r}_`.length),Af(n)])),Af=e=>Array.isArray(e)?e[0]:e;var vs=(t=>(t.RU="ru",t.EN="en",t))(vs||{});
|
package/es2015.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vkontakte/videoplayer-shared v1.0.40-dev.
|
|
3
|
-
*
|
|
2
|
+
* @vkontakte/videoplayer-shared v1.0.40-dev.85b25f2f.0
|
|
3
|
+
* Wed, 04 Sep 2024 13:58:58 GMT
|
|
4
4
|
* https://st.mycdn.me/static/vkontakte-videoplayer/1-0-40/doc/
|
|
5
5
|
*/
|
|
6
|
-
var Os=Object.create;var Pe=Object.defineProperty,Ss=Object.defineProperties,ws=Object.getOwnPropertyDescriptor,Es=Object.getOwnPropertyDescriptors,_s=Object.getOwnPropertyNames,$t=Object.getOwnPropertySymbols,Rs=Object.getPrototypeOf,zt=Object.prototype.hasOwnProperty,Ps=Object.prototype.propertyIsEnumerable;var Ht=Math.pow,Yt=(e,r,t)=>r in e?Pe(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,A=(e,r)=>{for(var t in r||(r={}))zt.call(r,t)&&Yt(e,t,r[t]);if($t)for(var t of $t(r))Ps.call(r,t)&&Yt(e,t,r[t]);return e},B=(e,r)=>Ss(e,Es(r));var u=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),qs=(e,r)=>{for(var t in r)Pe(e,t,{get:r[t],enumerable:!0})},As=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let o of _s(r))!zt.call(e,o)&&o!==t&&Pe(e,o,{get:()=>r[o],enumerable:!(n=ws(r,o))||n.enumerable});return e};var Cs=(e,r,t)=>(t=e!=null?Os(Rs(e)):{},As(r||!e||!e.__esModule?Pe(t,"default",{value:e,enumerable:!0}):t,e));var qe=(e,r,t)=>new Promise((n,o)=>{var i=c=>{try{a(t.next(c))}catch(l){o(l)}},s=c=>{try{a(t.throw(c))}catch(l){o(l)}},a=c=>c.done?n(c.value):Promise.resolve(c.value).then(i,s);a((t=t.apply(e,r)).next())});var C=u((WT,Cn)=>{"use strict";Cn.exports=function(e){try{return!!e()}catch(r){return!0}}});var Te=u((KT,Nn)=>{"use strict";var Gu=C();Nn.exports=!Gu(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var V=u(($T,jn)=>{"use strict";var Ln=Te(),Mn=Function.prototype,Br=Mn.call,Bu=Ln&&Mn.bind.bind(Br,Br);jn.exports=Ln?Bu:function(e){return function(){return Br.apply(e,arguments)}}});var Be=u((YT,kn)=>{"use strict";var Vn=V(),Uu=Vn({}.toString),Qu=Vn("".slice);kn.exports=function(e){return Qu(Uu(e),8,-1)}});var Fn=u((zT,Dn)=>{"use strict";var Wu=V(),Ku=C(),$u=Be(),Ur=Object,Yu=Wu("".split);Dn.exports=Ku(function(){return!Ur("z").propertyIsEnumerable(0)})?function(e){return $u(e)==="String"?Yu(e,""):Ur(e)}:Ur});var Ue=u((HT,Gn)=>{"use strict";Gn.exports=function(e){return e==null}});var Qe=u((XT,Bn)=>{"use strict";var zu=Ue(),Hu=TypeError;Bn.exports=function(e){if(zu(e))throw new Hu("Can't call method on "+e);return e}});var ie=u((JT,Un)=>{"use strict";var Xu=Fn(),Ju=Qe();Un.exports=function(e){return Xu(Ju(e))}});var Wn=u((ZT,Qn)=>{"use strict";Qn.exports=function(){}});var z=u((eh,Kn)=>{"use strict";Kn.exports={}});var S=u((Qr,$n)=>{"use strict";var he=function(e){return e&&e.Math===Math&&e};$n.exports=he(typeof globalThis=="object"&&globalThis)||he(typeof window=="object"&&window)||he(typeof self=="object"&&self)||he(typeof global=="object"&&global)||he(typeof Qr=="object"&&Qr)||function(){return this}()||Function("return this")()});var w=u((rh,Yn)=>{"use strict";var Wr=typeof document=="object"&&document.all;Yn.exports=typeof Wr=="undefined"&&Wr!==void 0?function(e){return typeof e=="function"||e===Wr}:function(e){return typeof e=="function"}});var Xn=u((th,Hn)=>{"use strict";var Zu=S(),ec=w(),zn=Zu.WeakMap;Hn.exports=ec(zn)&&/native code/.test(String(zn))});var k=u((nh,Jn)=>{"use strict";var rc=w();Jn.exports=function(e){return typeof e=="object"?e!==null:rc(e)}});var N=u((oh,Zn)=>{"use strict";var tc=C();Zn.exports=!tc(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var $r=u((ih,ro)=>{"use strict";var nc=S(),eo=k(),Kr=nc.document,oc=eo(Kr)&&eo(Kr.createElement);ro.exports=function(e){return oc?Kr.createElement(e):{}}});var Yr=u((ah,to)=>{"use strict";var ic=N(),ac=C(),sc=$r();to.exports=!ic&&!ac(function(){return Object.defineProperty(sc("div"),"a",{get:function(){return 7}}).a!==7})});var zr=u((sh,no)=>{"use strict";var uc=N(),cc=C();no.exports=uc&&cc(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var H=u((uh,oo)=>{"use strict";var lc=k(),pc=String,fc=TypeError;oo.exports=function(e){if(lc(e))return e;throw new fc(pc(e)+" is not an object")}});var W=u((ch,io)=>{"use strict";var vc=Te(),We=Function.prototype.call;io.exports=vc?We.bind(We):function(){return We.apply(We,arguments)}});var Ke=u((lh,ao)=>{"use strict";ao.exports={}});var Jr=u((ph,uo)=>{"use strict";var Hr=Ke(),Xr=S(),dc=w(),so=function(e){return dc(e)?e:void 0};uo.exports=function(e,r){return arguments.length<2?so(Hr[e])||so(Xr[e]):Hr[e]&&Hr[e][r]||Xr[e]&&Xr[e][r]}});var Zr=u((fh,co)=>{"use strict";var bc=V();co.exports=bc({}.isPrototypeOf)});var vo=u((vh,fo)=>{"use strict";var mc=S(),lo=mc.navigator,po=lo&&lo.userAgent;fo.exports=po?String(po):""});var xo=u((dh,go)=>{"use strict";var yo=S(),et=vo(),bo=yo.process,mo=yo.Deno,To=bo&&bo.versions||mo&&mo.version,ho=To&&To.v8,P,$e;ho&&(P=ho.split("."),$e=P[0]>0&&P[0]<4?1:+(P[0]+P[1]));!$e&&et&&(P=et.match(/Edge\/(\d+)/),(!P||P[1]>=74)&&(P=et.match(/Chrome\/(\d+)/),P&&($e=+P[1])));go.exports=$e});var rt=u((bh,Oo)=>{"use strict";var Io=xo(),Tc=C(),hc=S(),yc=hc.String;Oo.exports=!!Object.getOwnPropertySymbols&&!Tc(function(){var e=Symbol("symbol detection");return!yc(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Io&&Io<41})});var tt=u((mh,So)=>{"use strict";var gc=rt();So.exports=gc&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var nt=u((Th,wo)=>{"use strict";var xc=Jr(),Ic=w(),Oc=Zr(),Sc=tt(),wc=Object;wo.exports=Sc?function(e){return typeof e=="symbol"}:function(e){var r=xc("Symbol");return Ic(r)&&Oc(r.prototype,wc(e))}});var Ye=u((hh,Eo)=>{"use strict";var Ec=String;Eo.exports=function(e){try{return Ec(e)}catch(r){return"Object"}}});var ye=u((yh,_o)=>{"use strict";var _c=w(),Rc=Ye(),Pc=TypeError;_o.exports=function(e){if(_c(e))return e;throw new Pc(Rc(e)+" is not a function")}});var ze=u((gh,Ro)=>{"use strict";var qc=ye(),Ac=Ue();Ro.exports=function(e,r){var t=e[r];return Ac(t)?void 0:qc(t)}});var qo=u((xh,Po)=>{"use strict";var ot=W(),it=w(),at=k(),Cc=TypeError;Po.exports=function(e,r){var t,n;if(r==="string"&&it(t=e.toString)&&!at(n=ot(t,e))||it(t=e.valueOf)&&!at(n=ot(t,e))||r!=="string"&&it(t=e.toString)&&!at(n=ot(t,e)))return n;throw new Cc("Can't convert object to primitive value")}});var ge=u((Ih,Ao)=>{"use strict";Ao.exports=!0});var Lo=u((Oh,No)=>{"use strict";var Co=S(),Nc=Object.defineProperty;No.exports=function(e,r){try{Nc(Co,e,{value:r,configurable:!0,writable:!0})}catch(t){Co[e]=r}return r}});var He=u((Sh,Vo)=>{"use strict";var Lc=ge(),Mc=S(),jc=Lo(),Mo="__core-js_shared__",jo=Vo.exports=Mc[Mo]||jc(Mo,{});(jo.versions||(jo.versions=[])).push({version:"3.38.0",mode:Lc?"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 st=u((wh,Do)=>{"use strict";var ko=He();Do.exports=function(e,r){return ko[e]||(ko[e]=r||{})}});var ut=u((Eh,Fo)=>{"use strict";var Vc=Qe(),kc=Object;Fo.exports=function(e){return kc(Vc(e))}});var D=u((_h,Go)=>{"use strict";var Dc=V(),Fc=ut(),Gc=Dc({}.hasOwnProperty);Go.exports=Object.hasOwn||function(r,t){return Gc(Fc(r),t)}});var ct=u((Rh,Bo)=>{"use strict";var Bc=V(),Uc=0,Qc=Math.random(),Wc=Bc(1 .toString);Bo.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Wc(++Uc+Qc,36)}});var F=u((Ph,Qo)=>{"use strict";var Kc=S(),$c=st(),Uo=D(),Yc=ct(),zc=rt(),Hc=tt(),ae=Kc.Symbol,lt=$c("wks"),Xc=Hc?ae.for||ae:ae&&ae.withoutSetter||Yc;Qo.exports=function(e){return Uo(lt,e)||(lt[e]=zc&&Uo(ae,e)?ae[e]:Xc("Symbol."+e)),lt[e]}});var Yo=u((qh,$o)=>{"use strict";var Jc=W(),Wo=k(),Ko=nt(),Zc=ze(),el=qo(),rl=F(),tl=TypeError,nl=rl("toPrimitive");$o.exports=function(e,r){if(!Wo(e)||Ko(e))return e;var t=Zc(e,nl),n;if(t){if(r===void 0&&(r="default"),n=Jc(t,e,r),!Wo(n)||Ko(n))return n;throw new tl("Can't convert object to primitive value")}return r===void 0&&(r="number"),el(e,r)}});var pt=u((Ah,zo)=>{"use strict";var ol=Yo(),il=nt();zo.exports=function(e){var r=ol(e,"string");return il(r)?r:r+""}});var se=u(Xo=>{"use strict";var al=N(),sl=Yr(),ul=zr(),Xe=H(),Ho=pt(),cl=TypeError,ft=Object.defineProperty,ll=Object.getOwnPropertyDescriptor,vt="enumerable",dt="configurable",bt="writable";Xo.f=al?ul?function(r,t,n){if(Xe(r),t=Ho(t),Xe(n),typeof r=="function"&&t==="prototype"&&"value"in n&&bt in n&&!n[bt]){var o=ll(r,t);o&&o[bt]&&(r[t]=n.value,n={configurable:dt in n?n[dt]:o[dt],enumerable:vt in n?n[vt]:o[vt],writable:!1})}return ft(r,t,n)}:ft:function(r,t,n){if(Xe(r),t=Ho(t),Xe(n),sl)try{return ft(r,t,n)}catch(o){}if("get"in n||"set"in n)throw new cl("Accessors not supported");return"value"in n&&(r[t]=n.value),r}});var xe=u((Nh,Jo)=>{"use strict";Jo.exports=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}}});var ue=u((Lh,Zo)=>{"use strict";var pl=N(),fl=se(),vl=xe();Zo.exports=pl?function(e,r,t){return fl.f(e,r,vl(1,t))}:function(e,r,t){return e[r]=t,e}});var Je=u((Mh,ri)=>{"use strict";var dl=st(),bl=ct(),ei=dl("keys");ri.exports=function(e){return ei[e]||(ei[e]=bl(e))}});var Ze=u((jh,ti)=>{"use strict";ti.exports={}});var ai=u((Vh,ii)=>{"use strict";var ml=Xn(),oi=S(),Tl=k(),hl=ue(),mt=D(),Tt=He(),yl=Je(),gl=Ze(),ni="Object already initialized",ht=oi.TypeError,xl=oi.WeakMap,er,Ie,rr,Il=function(e){return rr(e)?Ie(e):er(e,{})},Ol=function(e){return function(r){var t;if(!Tl(r)||(t=Ie(r)).type!==e)throw new ht("Incompatible receiver, "+e+" required");return t}};ml||Tt.state?(q=Tt.state||(Tt.state=new xl),q.get=q.get,q.has=q.has,q.set=q.set,er=function(e,r){if(q.has(e))throw new ht(ni);return r.facade=e,q.set(e,r),r},Ie=function(e){return q.get(e)||{}},rr=function(e){return q.has(e)}):(X=yl("state"),gl[X]=!0,er=function(e,r){if(mt(e,X))throw new ht(ni);return r.facade=e,hl(e,X,r),r},Ie=function(e){return mt(e,X)?e[X]:{}},rr=function(e){return mt(e,X)});var q,X;ii.exports={set:er,get:Ie,has:rr,enforce:Il,getterFor:Ol}});var pi=u((kh,li)=>{"use strict";var Sl=Te(),ci=Function.prototype,si=ci.apply,ui=ci.call;li.exports=typeof Reflect=="object"&&Reflect.apply||(Sl?ui.bind(si):function(){return ui.apply(si,arguments)})});var yt=u((Dh,fi)=>{"use strict";var wl=Be(),El=V();fi.exports=function(e){if(wl(e)==="Function")return El(e)}});var mi=u(bi=>{"use strict";var vi={}.propertyIsEnumerable,di=Object.getOwnPropertyDescriptor,_l=di&&!vi.call({1:2},1);bi.f=_l?function(r){var t=di(this,r);return!!t&&t.enumerable}:vi});var yi=u(hi=>{"use strict";var Rl=N(),Pl=W(),ql=mi(),Al=xe(),Cl=ie(),Nl=pt(),Ll=D(),Ml=Yr(),Ti=Object.getOwnPropertyDescriptor;hi.f=Rl?Ti:function(r,t){if(r=Cl(r),t=Nl(t),Ml)try{return Ti(r,t)}catch(n){}if(Ll(r,t))return Al(!Pl(ql.f,r,t),r[t])}});var xi=u((Bh,gi)=>{"use strict";var jl=C(),Vl=w(),kl=/#|\.prototype\./,Oe=function(e,r){var t=Fl[Dl(e)];return t===Bl?!0:t===Gl?!1:Vl(r)?jl(r):!!r},Dl=Oe.normalize=function(e){return String(e).replace(kl,".").toLowerCase()},Fl=Oe.data={},Gl=Oe.NATIVE="N",Bl=Oe.POLYFILL="P";gi.exports=Oe});var gt=u((Uh,Oi)=>{"use strict";var Ii=yt(),Ul=ye(),Ql=Te(),Wl=Ii(Ii.bind);Oi.exports=function(e,r){return Ul(e),r===void 0?e:Ql?Wl(e,r):function(){return e.apply(r,arguments)}}});var xt=u((Qh,wi)=>{"use strict";var Se=S(),Kl=pi(),$l=yt(),Yl=w(),zl=yi().f,Hl=xi(),ce=Ke(),Xl=gt(),le=ue(),Si=D();He();var Jl=function(e){var r=function(t,n,o){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,o)}return Kl(e,this,arguments)};return r.prototype=e.prototype,r};wi.exports=function(e,r){var t=e.target,n=e.global,o=e.stat,i=e.proto,s=n?Se:o?Se[t]:Se[t]&&Se[t].prototype,a=n?ce:ce[t]||le(ce,t,{})[t],c=a.prototype,l,p,f,d,b,T,h,x,y;for(d in r)l=Hl(n?d:t+(o?".":"#")+d,e.forced),p=!l&&s&&Si(s,d),T=a[d],p&&(e.dontCallGetSet?(y=zl(s,d),h=y&&y.value):h=s[d]),b=p&&h?h:r[d],!(!l&&!i&&typeof T==typeof b)&&(e.bind&&p?x=Xl(b,Se):e.wrap&&p?x=Jl(b):i&&Yl(b)?x=$l(b):x=b,(e.sham||b&&b.sham||T&&T.sham)&&le(x,"sham",!0),le(a,d,x),i&&(f=t+"Prototype",Si(ce,f)||le(ce,f,{}),le(ce[f],d,b),e.real&&c&&(l||!c[d])&&le(c,d,b)))}});var Ri=u((Wh,_i)=>{"use strict";var It=N(),Zl=D(),Ei=Function.prototype,ep=It&&Object.getOwnPropertyDescriptor,Ot=Zl(Ei,"name"),rp=Ot&&function(){}.name==="something",tp=Ot&&(!It||It&&ep(Ei,"name").configurable);_i.exports={EXISTS:Ot,PROPER:rp,CONFIGURABLE:tp}});var qi=u((Kh,Pi)=>{"use strict";var np=Math.ceil,op=Math.floor;Pi.exports=Math.trunc||function(r){var t=+r;return(t>0?op:np)(t)}});var St=u(($h,Ai)=>{"use strict";var ip=qi();Ai.exports=function(e){var r=+e;return r!==r||r===0?0:ip(r)}});var Ni=u((Yh,Ci)=>{"use strict";var ap=St(),sp=Math.max,up=Math.min;Ci.exports=function(e,r){var t=ap(e);return t<0?sp(t+r,0):up(t,r)}});var Mi=u((zh,Li)=>{"use strict";var cp=St(),lp=Math.min;Li.exports=function(e){var r=cp(e);return r>0?lp(r,9007199254740991):0}});var wt=u((Hh,ji)=>{"use strict";var pp=Mi();ji.exports=function(e){return pp(e.length)}});var Di=u((Xh,ki)=>{"use strict";var fp=ie(),vp=Ni(),dp=wt(),Vi=function(e){return function(r,t,n){var o=fp(r),i=dp(o);if(i===0)return!e&&-1;var s=vp(n,i),a;if(e&&t!==t){for(;i>s;)if(a=o[s++],a!==a)return!0}else for(;i>s;s++)if((e||s in o)&&o[s]===t)return e||s||0;return!e&&-1}};ki.exports={includes:Vi(!0),indexOf:Vi(!1)}});var Bi=u((Jh,Gi)=>{"use strict";var bp=V(),Et=D(),mp=ie(),Tp=Di().indexOf,hp=Ze(),Fi=bp([].push);Gi.exports=function(e,r){var t=mp(e),n=0,o=[],i;for(i in t)!Et(hp,i)&&Et(t,i)&&Fi(o,i);for(;r.length>n;)Et(t,i=r[n++])&&(~Tp(o,i)||Fi(o,i));return o}});var _t=u((Zh,Ui)=>{"use strict";Ui.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var Wi=u((ey,Qi)=>{"use strict";var yp=Bi(),gp=_t();Qi.exports=Object.keys||function(r){return yp(r,gp)}});var $i=u(Ki=>{"use strict";var xp=N(),Ip=zr(),Op=se(),Sp=H(),wp=ie(),Ep=Wi();Ki.f=xp&&!Ip?Object.defineProperties:function(r,t){Sp(r);for(var n=wp(t),o=Ep(t),i=o.length,s=0,a;i>s;)Op.f(r,a=o[s++],n[a]);return r}});var zi=u((ty,Yi)=>{"use strict";var _p=Jr();Yi.exports=_p("document","documentElement")});var At=u((ny,ta)=>{"use strict";var Rp=H(),Pp=$i(),Hi=_t(),qp=Ze(),Ap=zi(),Cp=$r(),Np=Je(),Xi=">",Ji="<",Pt="prototype",qt="script",ea=Np("IE_PROTO"),Rt=function(){},ra=function(e){return Ji+qt+Xi+e+Ji+"/"+qt+Xi},Zi=function(e){e.write(ra("")),e.close();var r=e.parentWindow.Object;return e=null,r},Lp=function(){var e=Cp("iframe"),r="java"+qt+":",t;return e.style.display="none",Ap.appendChild(e),e.src=String(r),t=e.contentWindow.document,t.open(),t.write(ra("document.F=Object")),t.close(),t.F},tr,nr=function(){try{tr=new ActiveXObject("htmlfile")}catch(r){}nr=typeof document!="undefined"?document.domain&&tr?Zi(tr):Lp():Zi(tr);for(var e=Hi.length;e--;)delete nr[Pt][Hi[e]];return nr()};qp[ea]=!0;ta.exports=Object.create||function(r,t){var n;return r!==null?(Rt[Pt]=Rp(r),n=new Rt,Rt[Pt]=null,n[ea]=r):n=nr(),t===void 0?n:Pp.f(n,t)}});var oa=u((oy,na)=>{"use strict";var Mp=C();na.exports=!Mp(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var Nt=u((iy,aa)=>{"use strict";var jp=D(),Vp=w(),kp=ut(),Dp=Je(),Fp=oa(),ia=Dp("IE_PROTO"),Ct=Object,Gp=Ct.prototype;aa.exports=Fp?Ct.getPrototypeOf:function(e){var r=kp(e);if(jp(r,ia))return r[ia];var t=r.constructor;return Vp(t)&&r instanceof t?t.prototype:r instanceof Ct?Gp:null}});var Lt=u((ay,sa)=>{"use strict";var Bp=ue();sa.exports=function(e,r,t,n){return n&&n.enumerable?e[r]=t:Bp(e,r,t),e}});var kt=u((sy,la)=>{"use strict";var Up=C(),Qp=w(),Wp=k(),Kp=At(),ua=Nt(),$p=Lt(),Yp=F(),zp=ge(),Vt=Yp("iterator"),ca=!1,G,Mt,jt;[].keys&&(jt=[].keys(),"next"in jt?(Mt=ua(ua(jt)),Mt!==Object.prototype&&(G=Mt)):ca=!0);var Hp=!Wp(G)||Up(function(){var e={};return G[Vt].call(e)!==e});Hp?G={}:zp&&(G=Kp(G));Qp(G[Vt])||$p(G,Vt,function(){return this});la.exports={IteratorPrototype:G,BUGGY_SAFARI_ITERATORS:ca}});var or=u((uy,fa)=>{"use strict";var Xp=F(),Jp=Xp("toStringTag"),pa={};pa[Jp]="z";fa.exports=String(pa)==="[object z]"});var Dt=u((cy,va)=>{"use strict";var Zp=or(),ef=w(),ir=Be(),rf=F(),tf=rf("toStringTag"),nf=Object,of=ir(function(){return arguments}())==="Arguments",af=function(e,r){try{return e[r]}catch(t){}};va.exports=Zp?ir:function(e){var r,t,n;return e===void 0?"Undefined":e===null?"Null":typeof(t=af(r=nf(e),tf))=="string"?t:of?ir(r):(n=ir(r))==="Object"&&ef(r.callee)?"Arguments":n}});var ba=u((ly,da)=>{"use strict";var sf=or(),uf=Dt();da.exports=sf?{}.toString:function(){return"[object "+uf(this)+"]"}});var ar=u((py,Ta)=>{"use strict";var cf=or(),lf=se().f,pf=ue(),ff=D(),vf=ba(),df=F(),ma=df("toStringTag");Ta.exports=function(e,r,t,n){var o=t?e:e&&e.prototype;o&&(ff(o,ma)||lf(o,ma,{configurable:!0,value:r}),n&&!cf&&pf(o,"toString",vf))}});var ya=u((fy,ha)=>{"use strict";var bf=kt().IteratorPrototype,mf=At(),Tf=xe(),hf=ar(),yf=z(),gf=function(){return this};ha.exports=function(e,r,t,n){var o=r+" Iterator";return e.prototype=mf(bf,{next:Tf(+!n,t)}),hf(e,o,!1,!0),yf[o]=gf,e}});var xa=u((vy,ga)=>{"use strict";var xf=V(),If=ye();ga.exports=function(e,r,t){try{return xf(If(Object.getOwnPropertyDescriptor(e,r)[t]))}catch(n){}}});var Oa=u((dy,Ia)=>{"use strict";var Of=k();Ia.exports=function(e){return Of(e)||e===null}});var wa=u((by,Sa)=>{"use strict";var Sf=Oa(),wf=String,Ef=TypeError;Sa.exports=function(e){if(Sf(e))return e;throw new Ef("Can't set "+wf(e)+" as a prototype")}});var _a=u((my,Ea)=>{"use strict";var _f=xa(),Rf=k(),Pf=Qe(),qf=wa();Ea.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,r={},t;try{t=_f(Object.prototype,"__proto__","set"),t(r,[]),e=r instanceof Array}catch(n){}return function(o,i){return Pf(o),qf(i),Rf(o)&&(e?t(o,i):o.__proto__=i),o}}():void 0)});var ka=u((Ty,Va)=>{"use strict";var Af=xt(),Cf=W(),sr=ge(),Ma=Ri(),Nf=w(),Lf=ya(),Ra=Nt(),Pa=_a(),Mf=ar(),jf=ue(),Ft=Lt(),Vf=F(),qa=z(),ja=kt(),kf=Ma.PROPER,Df=Ma.CONFIGURABLE,Aa=ja.IteratorPrototype,ur=ja.BUGGY_SAFARI_ITERATORS,we=Vf("iterator"),Ca="keys",Ee="values",Na="entries",La=function(){return this};Va.exports=function(e,r,t,n,o,i,s){Lf(t,r,n);var a=function(y){if(y===o&&d)return d;if(!ur&&y&&y in p)return p[y];switch(y){case Ca:return function(){return new t(this,y)};case Ee:return function(){return new t(this,y)};case Na:return function(){return new t(this,y)}}return function(){return new t(this)}},c=r+" Iterator",l=!1,p=e.prototype,f=p[we]||p["@@iterator"]||o&&p[o],d=!ur&&f||a(o),b=r==="Array"&&p.entries||f,T,h,x;if(b&&(T=Ra(b.call(new e)),T!==Object.prototype&&T.next&&(!sr&&Ra(T)!==Aa&&(Pa?Pa(T,Aa):Nf(T[we])||Ft(T,we,La)),Mf(T,c,!0,!0),sr&&(qa[c]=La))),kf&&o===Ee&&f&&f.name!==Ee&&(!sr&&Df?jf(p,"name",Ee):(l=!0,d=function(){return Cf(f,this)})),o)if(h={values:a(Ee),keys:i?d:a(Ca),entries:a(Na)},s)for(x in h)(ur||l||!(x in p))&&Ft(p,x,h[x]);else Af({target:r,proto:!0,forced:ur||l},h);return(!sr||s)&&p[we]!==d&&Ft(p,we,d,{name:o}),qa[r]=d,h}});var Fa=u((hy,Da)=>{"use strict";Da.exports=function(e,r){return{value:e,done:r}}});var Bt=u((yy,Wa)=>{"use strict";var Ff=ie(),Gt=Wn(),Ga=z(),Ua=ai(),Gf=se().f,Bf=ka(),cr=Fa(),Uf=ge(),Qf=N(),Qa="Array Iterator",Wf=Ua.set,Kf=Ua.getterFor(Qa);Wa.exports=Bf(Array,"Array",function(e,r){Wf(this,{type:Qa,target:Ff(e),index:0,kind:r})},function(){var e=Kf(this),r=e.target,t=e.index++;if(!r||t>=r.length)return e.target=void 0,cr(void 0,!0);switch(e.kind){case"keys":return cr(t,!1);case"values":return cr(r[t],!1)}return cr([t,r[t]],!1)},"values");var Ba=Ga.Arguments=Ga.Array;Gt("keys");Gt("values");Gt("entries");if(!Uf&&Qf&&Ba.name!=="values")try{Gf(Ba,"name",{value:"values"})}catch(e){}});var $a=u((gy,Ka)=>{"use strict";var $f=F(),Yf=z(),zf=$f("iterator"),Hf=Array.prototype;Ka.exports=function(e){return e!==void 0&&(Yf.Array===e||Hf[zf]===e)}});var Ut=u((xy,za)=>{"use strict";var Xf=Dt(),Ya=ze(),Jf=Ue(),Zf=z(),ev=F(),rv=ev("iterator");za.exports=function(e){if(!Jf(e))return Ya(e,rv)||Ya(e,"@@iterator")||Zf[Xf(e)]}});var Xa=u((Iy,Ha)=>{"use strict";var tv=W(),nv=ye(),ov=H(),iv=Ye(),av=Ut(),sv=TypeError;Ha.exports=function(e,r){var t=arguments.length<2?av(e):r;if(nv(t))return ov(tv(t,e));throw new sv(iv(e)+" is not iterable")}});var es=u((Oy,Za)=>{"use strict";var uv=W(),Ja=H(),cv=ze();Za.exports=function(e,r,t){var n,o;Ja(e);try{if(n=cv(e,"return"),!n){if(r==="throw")throw t;return t}n=uv(n,e)}catch(i){o=!0,n=i}if(r==="throw")throw t;if(o)throw n;return Ja(n),t}});var is=u((Sy,os)=>{"use strict";var lv=gt(),pv=W(),fv=H(),vv=Ye(),dv=$a(),bv=wt(),rs=Zr(),mv=Xa(),Tv=Ut(),ts=es(),hv=TypeError,lr=function(e,r){this.stopped=e,this.result=r},ns=lr.prototype;os.exports=function(e,r,t){var n=t&&t.that,o=!!(t&&t.AS_ENTRIES),i=!!(t&&t.IS_RECORD),s=!!(t&&t.IS_ITERATOR),a=!!(t&&t.INTERRUPTED),c=lv(r,n),l,p,f,d,b,T,h,x=function(g){return l&&ts(l,"normal",g),new lr(!0,g)},y=function(g){return o?(fv(g),a?c(g[0],g[1],x):c(g[0],g[1])):a?c(g,x):c(g)};if(i)l=e.iterator;else if(s)l=e;else{if(p=Tv(e),!p)throw new hv(vv(e)+" is not iterable");if(dv(p)){for(f=0,d=bv(e);d>f;f++)if(b=y(e[f]),b&&rs(ns,b))return b;return new lr(!1)}l=mv(e,p)}for(T=i?e.next:l.next;!(h=pv(T,l)).done;){try{b=y(h.value)}catch(g){ts(l,"throw",g)}if(typeof b=="object"&&b&&rs(ns,b))return b}return new lr(!1)}});var ss=u((wy,as)=>{"use strict";var yv=N(),gv=se(),xv=xe();as.exports=function(e,r,t){yv?gv.f(e,r,xv(0,t)):e[r]=t}});var us=u(()=>{"use strict";var Iv=xt(),Ov=is(),Sv=ss();Iv({target:"Object",stat:!0},{fromEntries:function(r){var t={};return Ov(r,function(n,o){Sv(t,n,o)},{AS_ENTRIES:!0}),t}})});var ls=u((Ry,cs)=>{"use strict";Bt();us();var wv=Ke();cs.exports=wv.Object.fromEntries});var fs=u((Py,ps)=>{"use strict";ps.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 ds=u(()=>{"use strict";Bt();var Ev=fs(),_v=S(),Rv=ar(),vs=z();for(pr in Ev)Rv(_v[pr],pr),vs[pr]=vs.Array;var pr});var ms=u((Cy,bs)=>{"use strict";var Pv=ls();ds();bs.exports=Pv});var hs=u((Ny,Ts)=>{"use strict";var qv=ms();Ts.exports=qv});var Ns="1.0.40-dev.53bf33a7.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`)},Ls=e=>{};var $=()=>{};var v=class{constructor(r){r&&(this._subscribe=r)}subscribe(r,t){var s;let n;t?typeof t=="function"?n={next:t,error:$}:n={next:a=>t.next(a),error:a=>{var c;return(c=t.error)==null?void 0:c.call(t,a)}}:n={next:$,error:$};let o=typeof r=="function"?{next:a=>{try{r(a)}catch(c){n.next(c)}},error:a=>n.next(a)}:{next:a=>r.next(a),error:a=>r.error?r.error(a):n.next(a)},i;try{i=this._subscribe(o)}catch(a){(s=o.error)==null||s.call(o,a)}return new E().add(()=>{switch(o.next=$,o.error=$,typeof i){case"function":i();return;case"object":i.unsubscribe();return;case"undefined":return;default:return L(i)}})}pipe(...r){return r.reduce((t,n)=>n(t),this)}_subscribe(r){}};var U=class extends v{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 o;return(o=n.error)==null?void 0:o.call(n,t)})}_subscribe(t){let n=this.keyCounter++;return this.subscribers.set(n,t),new E().add(()=>this.subscribers.delete(n))}};var fr=class{constructor(){this.log$=new U;this.logs=[];this.log=r=>{let t=B(A({},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(o){n={message:"error in `createCustomLog`",component:"Logger"}}this.log(n)}}createComponentLog(r){return this.createCustomLog(t=>A({component:r},t))}};var Xt=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{};var M="1.8.0";var Jt=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function Ms(e){var r=new Set([e]),t=new Set,n=e.match(Jt);if(!n)return function(){return!1};var o={major:+n[1],minor:+n[2],patch:+n[3],prerelease:n[4]};if(o.prerelease!=null)return function(c){return c===e};function i(a){return t.add(a),!1}function s(a){return r.add(a),!0}return function(c){if(r.has(c))return!0;if(t.has(c))return!1;var l=c.match(Jt);if(!l)return i(c);var p={major:+l[1],minor:+l[2],patch:+l[3],prerelease:l[4]};return p.prerelease!=null||o.major!==p.major?i(c):o.major===0?o.minor===p.minor&&o.patch<=p.patch?s(c):i(c):o.minor<=p.minor?s(c):i(c)}}var Zt=Ms(M);var js=M.split(".")[0],pe=Symbol.for("opentelemetry.js.api."+js),fe=Xt;function J(e,r,t,n){var o;n===void 0&&(n=!1);var i=fe[pe]=(o=fe[pe])!==null&&o!==void 0?o:{version:M};if(!n&&i[e]){var s=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+e);return t.error(s.stack||s.message),!1}if(i.version!==M){var s=new Error("@opentelemetry/api: Registration of version v"+i.version+" for "+e+" does not match previously registered API v"+M);return t.error(s.stack||s.message),!1}return i[e]=r,t.debug("@opentelemetry/api: Registered a global for "+e+" v"+M+"."),!0}function j(e){var r,t,n=(r=fe[pe])===null||r===void 0?void 0:r.version;if(!(!n||!Zt(n)))return(t=fe[pe])===null||t===void 0?void 0:t[e]}function Z(e,r){r.debug("@opentelemetry/api: Unregistering a global for "+e+" v"+M+".");var t=fe[pe];t&&delete t[e]}var Vs=function(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),o,i=[],s;try{for(;(r===void 0||r-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(s)throw s.error}}return i},ks=function(e,r,t){if(t||arguments.length===2)for(var n=0,o=r.length,i;n<o;n++)(i||!(n in r))&&(i||(i=Array.prototype.slice.call(r,0,n)),i[n]=r[n]);return e.concat(i||Array.prototype.slice.call(r))},en=function(){function e(r){this._namespace=r.namespace||"DiagComponentLogger"}return e.prototype.debug=function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return ve("debug",this._namespace,r)},e.prototype.error=function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return ve("error",this._namespace,r)},e.prototype.info=function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return ve("info",this._namespace,r)},e.prototype.warn=function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return ve("warn",this._namespace,r)},e.prototype.verbose=function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return ve("verbose",this._namespace,r)},e}();function ve(e,r,t){var n=j("diag");if(n)return t.unshift(r),n[e].apply(n,ks([],Vs(t),!1))}var O;(function(e){e[e.NONE=0]="NONE",e[e.ERROR=30]="ERROR",e[e.WARN=50]="WARN",e[e.INFO=60]="INFO",e[e.DEBUG=70]="DEBUG",e[e.VERBOSE=80]="VERBOSE",e[e.ALL=9999]="ALL"})(O||(O={}));function rn(e,r){e<O.NONE?e=O.NONE:e>O.ALL&&(e=O.ALL),r=r||{};function t(n,o){var i=r[n];return typeof i=="function"&&e>=o?i.bind(r):function(){}}return{error:t("error",O.ERROR),warn:t("warn",O.WARN),info:t("info",O.INFO),debug:t("debug",O.DEBUG),verbose:t("verbose",O.VERBOSE)}}var Ds=function(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),o,i=[],s;try{for(;(r===void 0||r-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(s)throw s.error}}return i},Fs=function(e,r,t){if(t||arguments.length===2)for(var n=0,o=r.length,i;n<o;n++)(i||!(n in r))&&(i||(i=Array.prototype.slice.call(r,0,n)),i[n]=r[n]);return e.concat(i||Array.prototype.slice.call(r))},Gs="diag",ee=function(){function e(){function r(o){return function(){for(var i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];var a=j("diag");if(a)return a[o].apply(a,Fs([],Ds(i),!1))}}var t=this,n=function(o,i){var s,a,c;if(i===void 0&&(i={logLevel:O.INFO}),o===t){var l=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return t.error((s=l.stack)!==null&&s!==void 0?s:l.message),!1}typeof i=="number"&&(i={logLevel:i});var p=j("diag"),f=rn((a=i.logLevel)!==null&&a!==void 0?a:O.INFO,o);if(p&&!i.suppressOverrideMessage){var d=(c=new Error().stack)!==null&&c!==void 0?c:"<failed to generate stacktrace>";p.warn("Current logger will be overwritten from "+d),f.warn("Current logger will overwrite one already registered from "+d)}return J("diag",f,t,!0)};t.setLogger=n,t.disable=function(){Z(Gs,t)},t.createComponentLogger=function(o){return new en(o)},t.verbose=r("verbose"),t.debug=r("debug"),t.info=r("info"),t.warn=r("warn"),t.error=r("error")}return e.instance=function(){return this._instance||(this._instance=new e),this._instance},e}();function tn(e){return Symbol.for(e)}var Bs=function(){function e(r){var t=this;t._currentContext=r?new Map(r):new Map,t.getValue=function(n){return t._currentContext.get(n)},t.setValue=function(n,o){var i=new e(t._currentContext);return i._currentContext.set(n,o),i},t.deleteValue=function(n){var o=new e(t._currentContext);return o._currentContext.delete(n),o}}return e}(),nn=new Bs;var Us=function(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),o,i=[],s;try{for(;(r===void 0||r-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(s)throw s.error}}return i},Qs=function(e,r,t){if(t||arguments.length===2)for(var n=0,o=r.length,i;n<o;n++)(i||!(n in r))&&(i||(i=Array.prototype.slice.call(r,0,n)),i[n]=r[n]);return e.concat(i||Array.prototype.slice.call(r))},on=function(){function e(){}return e.prototype.active=function(){return nn},e.prototype.with=function(r,t,n){for(var o=[],i=3;i<arguments.length;i++)o[i-3]=arguments[i];return t.call.apply(t,Qs([n],Us(o),!1))},e.prototype.bind=function(r,t){return t},e.prototype.enable=function(){return this},e.prototype.disable=function(){return this},e}();var Ws=function(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),o,i=[],s;try{for(;(r===void 0||r-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(s)throw s.error}}return i},Ks=function(e,r,t){if(t||arguments.length===2)for(var n=0,o=r.length,i;n<o;n++)(i||!(n in r))&&(i||(i=Array.prototype.slice.call(r,0,n)),i[n]=r[n]);return e.concat(i||Array.prototype.slice.call(r))},vr="context",$s=new on,re=function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalContextManager=function(r){return J(vr,r,ee.instance())},e.prototype.active=function(){return this._getContextManager().active()},e.prototype.with=function(r,t,n){for(var o,i=[],s=3;s<arguments.length;s++)i[s-3]=arguments[s];return(o=this._getContextManager()).with.apply(o,Ks([r,t,n],Ws(i),!1))},e.prototype.bind=function(r,t){return this._getContextManager().bind(r,t)},e.prototype._getContextManager=function(){return j(vr)||$s},e.prototype.disable=function(){this._getContextManager().disable(),Z(vr,ee.instance())},e}();var Ae;(function(e){e[e.NONE=0]="NONE",e[e.SAMPLED=1]="SAMPLED"})(Ae||(Ae={}));var dr="0000000000000000",br="00000000000000000000000000000000",an={traceId:br,spanId:dr,traceFlags:Ae.NONE};var Q=function(){function e(r){r===void 0&&(r=an),this._spanContext=r}return e.prototype.spanContext=function(){return this._spanContext},e.prototype.setAttribute=function(r,t){return this},e.prototype.setAttributes=function(r){return this},e.prototype.addEvent=function(r,t){return this},e.prototype.setStatus=function(r){return this},e.prototype.updateName=function(r){return this},e.prototype.end=function(r){},e.prototype.isRecording=function(){return!1},e.prototype.recordException=function(r,t){},e}();var mr=tn("OpenTelemetry Context Key SPAN");function Ce(e){return e.getValue(mr)||void 0}function sn(){return Ce(re.getInstance().active())}function de(e,r){return e.setValue(mr,r)}function un(e){return e.deleteValue(mr)}function cn(e,r){return de(e,new Q(r))}function Ne(e){var r;return(r=Ce(e))===null||r===void 0?void 0:r.spanContext()}var Ys=/^([0-9a-f]{32})$/i,zs=/^[0-9a-f]{16}$/i;function Hs(e){return Ys.test(e)&&e!==br}function Xs(e){return zs.test(e)&&e!==dr}function Le(e){return Hs(e.traceId)&&Xs(e.spanId)}function ln(e){return new Q(e)}var Tr=re.getInstance(),Me=function(){function e(){}return e.prototype.startSpan=function(r,t,n){n===void 0&&(n=Tr.active());var o=!!(t!=null&&t.root);if(o)return new Q;var i=n&&Ne(n);return Js(i)&&Le(i)?new Q(i):new Q},e.prototype.startActiveSpan=function(r,t,n,o){var i,s,a;if(!(arguments.length<2)){arguments.length===2?a=t:arguments.length===3?(i=t,a=n):(i=t,s=n,a=o);var c=s!=null?s:Tr.active(),l=this.startSpan(r,i,c),p=de(c,l);return Tr.with(p,a,void 0,l)}},e}();function Js(e){return typeof e=="object"&&typeof e.spanId=="string"&&typeof e.traceId=="string"&&typeof e.traceFlags=="number"}var Zs=new Me,pn=function(){function e(r,t,n,o){this._provider=r,this.name=t,this.version=n,this.options=o}return e.prototype.startSpan=function(r,t,n){return this._getTracer().startSpan(r,t,n)},e.prototype.startActiveSpan=function(r,t,n,o){var i=this._getTracer();return Reflect.apply(i.startActiveSpan,i,arguments)},e.prototype._getTracer=function(){if(this._delegate)return this._delegate;var r=this._provider.getDelegateTracer(this.name,this.version,this.options);return r?(this._delegate=r,this._delegate):Zs},e}();var fn=function(){function e(){}return e.prototype.getTracer=function(r,t,n){return new Me},e}();var eu=new fn,hr=function(){function e(){}return e.prototype.getTracer=function(r,t,n){var o;return(o=this.getDelegateTracer(r,t,n))!==null&&o!==void 0?o:new pn(this,r,t,n)},e.prototype.getDelegate=function(){var r;return(r=this._delegate)!==null&&r!==void 0?r:eu},e.prototype.setDelegate=function(r){this._delegate=r},e.prototype.getDelegateTracer=function(r,t,n){var o;return(o=this._delegate)===null||o===void 0?void 0:o.getTracer(r,t,n)},e}();var yr=re.getInstance();var gr="trace",vn=function(){function e(){this._proxyTracerProvider=new hr,this.wrapSpanContext=ln,this.isSpanContextValid=Le,this.deleteSpan=un,this.getSpan=Ce,this.getActiveSpan=sn,this.getSpanContext=Ne,this.setSpan=de,this.setSpanContext=cn}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalTracerProvider=function(r){var t=J(gr,this._proxyTracerProvider,ee.instance());return t&&this._proxyTracerProvider.setDelegate(r),t},e.prototype.getTracerProvider=function(){return j(gr)||this._proxyTracerProvider},e.prototype.getTracer=function(r,t){return this.getTracerProvider().getTracer(r,t)},e.prototype.disable=function(){Z(gr,ee.instance()),this._proxyTracerProvider=new hr},e}();var xr=vn.getInstance();import{TracerAllSpansProcessor as ru,TracerMemorySpanExporter as dn,initTracerOpenTelemetry as tu}from"@tracer/opentelemetry";var Ir=class e{constructor({name:r}){}log(r,t){}error(r,t){}critical(r,t){}createComponentTracer(r){return new e({name:r})}end(){}getFinishedSpans(){}getTraceId(){return this.fakeTraceId}},Or=class e{constructor({name:r,parentContext:t,tracer:n}){this.childTracers=[];let o=!n;if(o){let s=tu({serviceName:"videoplayer-sdk-web",appToken:"L9SBoka6ZWk4xPjaK7tmfSfYvMhcge7nvGDjpdMmscb",spanLimits:{attributeCountLimit:1/0,eventCountLimit:1/0,attributePerEventCountLimit:1/0}}).getProvider(),a=new dn,c=new dn;this.spanExporter=a,s.addSpanProcessor(new ru({startedSpansExporter:a,endedSpansExporter:c})),this.tracer=s.getTracer("sdk-videoplayer-tracer")}else this.tracer=n;this.span=this.tracer.startSpan(r,{root:o},t),this.context=xr.setSpan(yr.active(),this.span)}log(r,t){this.span.addEvent(r,B(A({},t),{type:"log"}))}error(r,t){this.span.addEvent(r,B(A({},t),{type:"error"}))}critical(r,t){this.span.addEvent(r,B(A({},t),{type:"critical"}))}static createRootTracer(r=!1){return r?new e({name:"Root"}):new Ir({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 nu(e,r='Assertion "value is not nullable" failed'){if(e==null)throw new Error(r)}function ou(e,r='Assertion "value is nullable" failed'){if(e!=null)throw new Error(r)}function te(e){return typeof e!="undefined"&&e!==null}function Sr(e){return e==null}function iu(e,r){if(!(e!=null&&e.length))throw new Error(r)}function au(e,r){if(e!=null&&e.length)throw new Error(r)}var su=(e,r,t)=>new Promise((n,o)=>{r.addEventListener("abort",()=>{a(),l.remove()});let i=()=>{a(),o()},s=()=>{a(),n()},a=()=>{c&&clearTimeout(c),l.removeEventListener("load",s),l.removeEventListener("error",i)},c;t&&(c=window.setTimeout(i,t));let l=document.createElement("script");l.addEventListener("load",s),l.addEventListener("error",i),l.src=e,document.head.appendChild(l)});var bn,uu=typeof((bn=window.performance)==null?void 0:bn.now)=="function"?()=>window.performance.now():()=>Date.now();var cu=(e,r)=>(...t)=>qe(void 0,null,function*(){var s;let n=r(...t),o=e.aborted,i;for(;!o&&!e.aborted;)try{let a=yield n.next(i);o=(s=a.done)!=null?s:!1,i=a.value}catch(a){yield n.throw(a)}return i});var mn=()=>{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)},wr=class{constructor(){this.detect()}get browser(){return this._currentBrowser}get device(){return this._currentDevice}get isTouch(){return this._maxTouchPoints>0}get isIOS(){return["iPhone","iPad","iPod"].includes(this.device)}get isMac(){return this.device==="Mac"}get isApple(){return this.isIOS||this.isMac}get isIphoneOrOldIpad(){if(!this.isApple||!this.isTouch)return!1;let r=this.device==="iPad"||(window==null?void 0:window.screen.width)>700,t=this._iosVersion;return!r||r&&!!t&&t<16}get isAndroid(){return this.device==="Android"}get isMobile(){return this._isMobile}get iOSVersion(){return this._iosVersion}get macVersion(){return this._macVersion}get isYandex(){return this.browser==="Yandex"}get isSafari(){return this.browser==="Safari"}get isSamsungBrowser(){return this.browser==="SamsungBrowser"}get isHDR(){return this._isHdr}detect(){var n;let{userAgent:r,maxTouchPoints:t}=navigator;try{this._maxTouchPoints=t,this._isHdr=!!((n=matchMedia("(dynamic-range: high)"))!=null&&n.matches)}catch(o){console.error(o)}try{this._isMobile=mn()}catch(o){console.error(o)}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,o=/chrome|crios/i.test(r)?"Chrome":void 0,i=/chromium/i.test(r)?"Chromium":void 0,s=/firefox|fxios/i.test(r)?"Firefox":void 0,a=/webkit|safari|khtml/i.test(r)?"Safari":void 0,c=/opr\//i.test(r)?"Opera":void 0,l=/edg/i.test(r)?"Edge":void 0;this._currentBrowser=t||n||s||c||l||o||i||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,o=/ipad/i.test(r)?"iPad":void 0,i=/ipod/i.test(r)?"iPod":void 0,s=/mac/i.test(r)?"Mac":void 0,a=/webOS|BlackBerry|IEMobile|Opera Mini/i.test(r)?"RestMobile":void 0;this._currentDevice=t||n||o||i||a||s||"Desktop"}catch(t){console.error(t)}}detectIOSVersion(){try{let{userAgent:r}=window.navigator,t=r.match(/Version\/(\d+(\.\d+)?)/i);if(!t)return;let n=t[1],o=parseFloat(n);if(isNaN(o))return;this._iosVersion=o}catch(r){console.error(r)}}detectMacVersion(){try{let{userAgent:r}=window.navigator,t=r.match(/Version\/(\d+)/);if(!t)return;let n=t[1],o=parseInt(n,10);if(isNaN(o))return;this._macVersion=o}catch(r){console.error(r)}}},lu=new wr;var pu=(e,{start:r=0,factor:t=2,max:n=1/0,min:o=r,random:i=0}={})=>{let s=r;return s*=Ht(t,e),s*=1+(Math.random()*i*2-i),s=Math.round(s),s=Math.min(s,n),s=Math.max(s,o),s};var _r={};qs(_r,{clear:()=>Tu,get:()=>vu,has:()=>bu,isPersistent:()=>fu,remove:()=>mu,set:()=>du});var I,Y,Er=`vk-videoplayer-dummy-key-${Math.random()}`,ne=()=>{if(Y!==void 0)return Y;try{localStorage.setItem(Er,"test"),localStorage.removeItem(Er),Y=0}catch(e){if(e instanceof DOMException||e instanceof TypeError)try{sessionStorage.getItem(Er),Y=1}catch(r){if(r instanceof DOMException||r instanceof TypeError)Y=2;else throw r}else throw e}return Y===2&&(I=new Map),Y},fu=()=>ne()===0,vu=e=>{var t,n;let r=ne();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 I==null?void 0:I.get(e);default:L(r)}},du=(e,r)=>{let t=ne();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(I==null?void 0:I.set(e,r));default:L(t)}},bu=e=>{var t;let r=ne();switch(r){case 0:return e in localStorage;case 1:return e in sessionStorage;case 2:return(t=I==null?void 0:I.has(e))!=null?t:!1;default:return L(r),!1}},mu=e=>{let r=ne();switch(r){case 0:return localStorage.removeItem(e);case 1:return sessionStorage.removeItem(e);case 2:return void(I==null?void 0:I.delete(e));default:L(r)}},Tu=()=>{let e=ne();switch(e){case 0:return localStorage.clear();case 1:return sessionStorage.clear();case 2:return I==null?void 0:I.clear();default:L(e)}};var hu=()=>{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 Rr=(p=>(p.INVARIANT="Invariant quality",p.Q_144P="144p",p.Q_240P="240p",p.Q_360P="360p",p.Q_480P="480p",p.Q_720P="720p",p.Q_1080P="1080p",p.Q_1440P="1440p",p.Q_2160P="2160p",p.Q_4320P="4320p",p))(Rr||{});var _={"144p":{width:256,height:144},"240p":{width:428,height:240},"360p":{width:640,height:360},"480p":{width:856,height:480},"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}},yu=(e,r)=>_[e].height>_[r].height,gu=(e,r)=>_[e].height>=_[r].height,Pr=(e,r)=>_[e].height<_[r].height,xu=(e,r)=>_[e].height<=_[r].height,Iu=e=>e.sort((r,t)=>r===t?0:r==="Invariant quality"?1:t==="Invariant quality"?-1:Pr(r,t)?1:-1)[0],Tn=Object.keys(_).sort((e,r)=>Pr(e,r)?-1:1),Ou=(e,r=.02)=>[...Tn].find(n=>_[n].height*(1+r)>=e),Su=({width:e,height:r})=>{let t=Math.min(e,r),n=Math.max(e,r);return Tn.find(o=>{let i=_[o];return i.width>=n&&i.height>=t})},wu=e=>_[e].height,qr=e=>e==="Invariant quality",Eu=e=>e.every(r=>!qr(r));function _u(e){if(qr(e))throw new Error("Expected exact quality")}var Ru=(e,r)=>{let t={};for(let n of Object.keys(r)){let o=r[n],i=e[n];Array.isArray(o)&&Array.isArray(i)?t[n]=i:typeof o=="object"&&typeof i=="object"?t[n]=Ru(i,o):t[n]=n in e?i:o}return t};var Lb=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 Ar(e,r=0,t){let n,o,i,s,a,c,l=0,p=!1,f=!1,d=!0,b=!r&&r!==0&&typeof window.requestAnimationFrame=="function";t&&(p=!!t.leading,f="maxWait"in t,i=t!=null&&t.maxWait?Math.max(+(t==null?void 0:t.maxWait)||0,r):i,d="trailing"in t?!!t.trailing:d);function T(m){let R=n,K=o;return n=o=void 0,l=m,s=e.apply(K,R),s}function h(m,R){return b?(a&&window.cancelAnimationFrame(a),window.requestAnimationFrame(m)):setTimeout(m,R)}function x(m){if(b){window.cancelAnimationFrame(m);return}clearTimeout(m)}function y(m){return l=m,a=h(_e,r),p?T(m):s}function g(m){let R=m-c,K=m-l,Kt=r-R;return f?Math.min(Kt,i-K):Kt}function Qt(m){let R=m-c,K=m-l;return c===void 0||R>=r||R<0||f&&K>=i}function _e(){let m=Date.now();if(Qt(m))return Wt(m);a=h(_e,g(m))}function Wt(m){return a=void 0,d&&n?T(m):(n=o=void 0,s)}function gs(){a!==void 0&&x(a),l=0,n=c=o=a=void 0}function xs(){return a===void 0?s:Wt(Date.now())}function Is(){return a!==void 0}function Re(...m){let R=Date.now(),K=Qt(R);if(n=m,o=this,c=R,K){if(a===void 0)return y(c);if(f)return a=h(_e,r),T(c)}return a===void 0&&(a=h(_e,r)),s}return Re.cancel=gs,Re.flush=xs,Re.pending=Is,Re}var Cr=(e,r=0,t)=>Ar(e,r,B(A(A({},{leading:!0,trailing:!0}),t),{maxWait:r}));var je=(e,r)=>{if(e===null||typeof e!="object")return e;let t=Array.isArray(e)?[]:{};for(let n in e){if(typeof r=="function"){let o=r(e[n],n,e,t);if(o!==void 0){t[n]=o;continue}}typeof e[n]=="object"?t[n]=je(e[n],r):t[n]=e[n]}return t};var Pu=e=>je(e);var qu=300,Au=(e,r=qu)=>new v(t=>{let{width:n,height:o}=e.getBoundingClientRect();if(t.next({width:n,height:o}),!window.ResizeObserver)return;let i=new ResizeObserver(Cr(s=>{let a=s[0];if(!a)return;let c,l;a.contentBoxSize&&a.contentBoxSize[0]?(l=a.contentBoxSize[0].blockSize,c=a.contentBoxSize[0].inlineSize):a.contentRect&&(c=a.contentRect.width,l=a.contentRect.height),te(c)&&te(l)&&t.next({width:c,height:l})},r));return i.observe(e),()=>i.disconnect()});var Ve=(e,r=".")=>{let t={};for(let n in e)if(e.hasOwnProperty(n))if(typeof e[n]=="object"&&e[n]!==null){let o=Ve(e[n]);for(let i in o)o.hasOwnProperty(i)&&(t[n+r+i]=o[i])}else t[n]=e[n];return t};var Cu=e=>{e.removeAttribute("src"),e.load()};var Nu=e=>r=>t=>{let n=typeof t=="object";t==null||n&&!Object.keys(t).length||e(r,n?Ve(t):{value:t})};var ke=class extends U{constructor(r){super(),this.value=r}next(r){super.next(this.value=r)}error(r){super.error(this.value=r)}getValue(){return this.value}_subscribe(r){let t=super._subscribe(r);return r.next(this.value),t}};function hn(e){return new v(r=>{let t={},n=Object.keys(e).length,o=i=>s=>{i in t||n--,t[i]=s,n===0&&r.next(t)};return Object.entries(e).reduce((i,[s,a])=>i.add(a.subscribe(o(s))),new E)})}function yn(...e){return new v(r=>e.reduce((t,n)=>t.add(n.subscribe(r)),new E))}var Lu=e=>new v(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 Mu=e=>new v(r=>{let t=window.setInterval(()=>r.next(),e);return()=>{t&&(window.clearInterval(t),t=void 0)}});var ju=e=>new v(r=>{e.forEach(t=>r.next(t))});var Vu=(e,r)=>new v(t=>{let n=o=>t.next(o);return e.addEventListener(r,n),()=>e.removeEventListener(r,n)});function gn(e){return r=>new v(t=>r.subscribe(new Nr(t,e)))}var Nr=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 ku={leading:!1,trailing:!0};function xn(e,r=ku){return t=>new v(n=>t.subscribe(new Lr(n,e,r)))}var Lr=class{constructor(r,t,n){this.destination=r;this.time=t;this.config=n}next(r){this.lastValue=r,te(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 Du={leading:!0,trailing:!1};function In(e,r=Du){return t=>new v(n=>t.subscribe(new Mr(n,e,r)))}var Mr=class{constructor(r,t,n){this.destination=r;this.time=t;this.config=n}next(r){this.lastValue=r,Sr(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 On(e){return r=>new v(t=>r.subscribe(new jr(t,e)))}var jr=class{constructor(r,t){this.destination=r;this.predicate=t}next(r){let t;try{t=this.predicate(r)}catch(n){throw this.error(n),n}t&&this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function wn(e=(r,t)=>r===t){return r=>new v(t=>r.subscribe(new Vr(t,e)))}var Sn={},Vr=class{constructor(r,t){this.destination=r;this.predicate=t;this.lastValue=Sn}next(r){let t;try{t=this.lastValue===Sn||!this.predicate(this.lastValue,r),this.lastValue=r}catch(n){throw this.error(n),n}t&&this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function De(e){return r=>new v(t=>r.subscribe(new kr(t,e)))}var kr=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 En(e){return De(()=>e)}function _n(){return e=>new v(r=>{let t=!1,n=!1,o=e.subscribe(i=>{t||(t=!0,r.next(i)),n&&o.unsubscribe()},i=>{var s;t=!0,(s=r.error)==null||s.call(r,i),n&&o.unsubscribe()});return n=!0,t&&o.unsubscribe(),o})}function Rn(){return e=>new v(r=>e.subscribe(new Dr(r)))}var Dr=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 Pn(e){return r=>new v(t=>r.subscribe(new Fr(t,e)))}var Fr=class{constructor(r,t){this.destination=r;this.effect=t}next(r){try{this.effect(r)}catch(t){throw this.error(t),t}this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};var Fu=(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))(Fu||{});var Fe=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 o=0,i=n.length;o<i;o++)if(n[o].callback===t){n.splice(o,1);return}}dispatchEvent(r){if(!(r.type in this.listeners))return;let n=this.listeners[r.type].slice();for(let o=0,i=n.length;o<i;o++){let s=n[o];try{s.callback.call(this,r)}catch(a){Promise.resolve().then(()=>{throw a})}s.options&&s.options.once&&this.removeEventListener(r.type,s.callback)}return!r.defaultPrevented}},oe=class extends Fe{constructor(){super(),this.listeners||Fe.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)}},be=class{constructor(){Object.defineProperty(this,"signal",{value:new oe,writable:!0,configurable:!0})}abort(r){let t;try{t=new Event("abort")}catch(o){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(o){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&&(be.prototype[Symbol.toStringTag]="AbortController",oe.prototype[Symbol.toStringTag]="AbortSignal");function Ge(e){return e.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL?(console.log("__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL=true is set, will force install polyfill"),!0):typeof e.Request=="function"&&!e.Request.prototype.hasOwnProperty("signal")||!e.AbortController}function Gr(e){typeof e=="function"&&(e={fetch:e});let{fetch:r,Request:t=r.Request,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:o=!1}=e;if(!Ge({fetch:r,Request:t,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:o}))return{fetch:r,Request:i};let i=t;(i&&!i.prototype.hasOwnProperty("signal")||o)&&(i=function(l,p){let f;p&&p.signal&&(f=p.signal,delete p.signal);let d=new t(l,p);return f&&Object.defineProperty(d,"signal",{writable:!1,enumerable:!1,configurable:!0,value:f}),d},i.prototype=t.prototype);let s=r;return{fetch:(c,l)=>{let p=i&&i.prototype.isPrototypeOf(c)?c.signal:l?l.signal:void 0;if(p){let f;try{f=new DOMException("Aborted","AbortError")}catch(b){f=new Error("Aborted"),f.name="AbortError"}if(p.aborted)return Promise.reject(f);let d=new Promise((b,T)=>{p.addEventListener("abort",()=>T(f),{once:!0})});return l&&l.signal&&delete l.signal,Promise.race([d,s(c,l)])}return s(c,l)},Request:i}}var me=Ge({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}),qn=me?Gr({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}):void 0,An=me?qn.fetch:window.fetch,GT=me?qn.Request:window.Request,BT=me?be:window.AbortController,UT=me?oe:window.AbortSignal;var ys=Cs(hs(),1);var Av=(f=>(f.Armenian="58",f.Azerbaijani="57",f.Belarusian="114",f.English="3",f.Kazakh="97",f.Portuguese="73",f.Russian="0",f.Spanish="4",f.Ukrainian="1",f.Uzbek="65",f.Vietnamese="75",f))(Av||{}),Cv="vk.com",My=(e,r,t)=>qe(void 0,null,function*(){let n=new URL(`https://${Cv}/js/lang-pack.js`);n.searchParams.set("format","json"),n.searchParams.set("name",r),e!==void 0&&n.searchParams.set("lang",e);let i=yield(yield An(n.toString())).json();return Nv(i,t)}),Nv=(e,r)=>(0,ys.default)(Object.entries(e.keys).map(([t,n])=>[t.substring(`${r}_`.length),Lv(n)])),Lv=e=>Array.isArray(e)?e[0]:e;var Mv=(t=>(t.RU="ru",t.EN="en",t))(Mv||{});export{Fu as ErrorCategory,Mv as InterfaceLanguage,fr as Logger,v as Observable,U as Subject,E as Subscription,Or as Tracer,Ns as VERSION,Av as VKNumericLanguage,ke as ValueSubject,Rr as VideoQuality,cu as abortable,su as addScript,Eu as areQualitiesExact,au as assertEmptyArray,L as assertNever,nu as assertNonNullable,iu as assertNotEmptyArray,ou as assertNullable,_u as assertQualityIsExact,gn as buffer,Ls as checkNever,Cu as clearVideoElement,lu as clientChecker,Pu as cloneDeep,je as cloneDeepWith,hn as combine,xn as debounce,Ar as debounceFn,hu as detectEmbed,Ru as fillWithDefault,On as filter,wn as filterChanged,Ve as flattenObject,Vu as fromEvent,pu as getExponentialDelay,Iu as getHighestQuality,Nu as getTraceSubscriptionMethod,Mu as interval,yu as isHigher,gu as isHigherOrEqual,qr as isInvariantQuality,Pr as isLower,xu as isLowerOrEqual,mn as isMobile,te as isNonNullable,Sr as isNullable,My as loadVKLangPack,De as map,En as mapTo,yn as merge,$ as noop,uu as now,ju as observableFrom,Au as observeElementSize,_n as once,Rn as pairwise,_r as safeStorage,Pn as tap,In as throttle,Cr as throttleFn,Lb as timeCodeToString,Lu as timeout,Ou as videoHeightToQuality,wu as videoQualityToHeight,Su as videoSizeToQuality};
|
|
6
|
+
var Ma=Object.create;var Te=Object.defineProperty,Na=Object.defineProperties,ka=Object.getOwnPropertyDescriptor,Va=Object.getOwnPropertyDescriptors,Da=Object.getOwnPropertyNames,It=Object.getOwnPropertySymbols,Fa=Object.getPrototypeOf,xt=Object.prototype.hasOwnProperty,Ua=Object.prototype.propertyIsEnumerable;var wt=Math.pow,Ot=(e,r,t)=>r in e?Te(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,A=(e,r)=>{for(var t in r||(r={}))xt.call(r,t)&&Ot(e,t,r[t]);if(It)for(var t of It(r))Ua.call(r,t)&&Ot(e,t,r[t]);return e},D=(e,r)=>Na(e,Va(r));var a=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),Ga=(e,r)=>{for(var t in r)Te(e,t,{get:r[t],enumerable:!0})},Ba=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of Da(r))!xt.call(e,i)&&i!==t&&Te(e,i,{get:()=>r[i],enumerable:!(n=ka(r,i))||n.enumerable});return e};var Qa=(e,r,t)=>(t=e!=null?Ma(Fa(e)):{},Ba(r||!e||!e.__esModule?Te(t,"default",{value:e,enumerable:!0}):t,e));var he=(e,r,t)=>new Promise((n,i)=>{var o=l=>{try{s(t.next(l))}catch(c){i(c)}},u=l=>{try{s(t.throw(l))}catch(c){i(c)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(o,u);s((t=t.apply(e,r)).next())});var _=a((Ld,Bt)=>{"use strict";Bt.exports=function(e){try{return!!e()}catch(r){return!0}}});var oe=a((jd,Qt)=>{"use strict";var Ms=_();Qt.exports=!Ms(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var j=a((Md,zt)=>{"use strict";var Wt=oe(),$t=Function.prototype,mr=$t.call,Ns=Wt&&$t.bind.bind(mr,mr);zt.exports=Wt?Ns:function(e){return function(){return mr.apply(e,arguments)}}});var Ee=a((Nd,Kt)=>{"use strict";var Yt=j(),ks=Yt({}.toString),Vs=Yt("".slice);Kt.exports=function(e){return Vs(ks(e),8,-1)}});var Xt=a((kd,Ht)=>{"use strict";var Ds=j(),Fs=_(),Us=Ee(),Tr=Object,Gs=Ds("".split);Ht.exports=Fs(function(){return!Tr("z").propertyIsEnumerable(0)})?function(e){return Us(e)==="String"?Gs(e,""):Tr(e)}:Tr});var Se=a((Vd,Jt)=>{"use strict";Jt.exports=function(e){return e==null}});var qe=a((Dd,Zt)=>{"use strict";var Bs=Se(),Qs=TypeError;Zt.exports=function(e){if(Bs(e))throw new Qs("Can't call method on "+e);return e}});var X=a((Fd,en)=>{"use strict";var Ws=Xt(),$s=qe();en.exports=function(e){return Ws($s(e))}});var tn=a((Ud,rn)=>{"use strict";rn.exports=function(){}});var W=a((Gd,nn)=>{"use strict";nn.exports={}});var x=a((hr,on)=>{"use strict";var ae=function(e){return e&&e.Math===Math&&e};on.exports=ae(typeof globalThis=="object"&&globalThis)||ae(typeof window=="object"&&window)||ae(typeof self=="object"&&self)||ae(typeof global=="object"&&global)||ae(typeof hr=="object"&&hr)||function(){return this}()||Function("return this")()});var w=a((Bd,an)=>{"use strict";var yr=typeof document=="object"&&document.all;an.exports=typeof yr=="undefined"&&yr!==void 0?function(e){return typeof e=="function"||e===yr}:function(e){return typeof e=="function"}});var cn=a((Qd,un)=>{"use strict";var zs=x(),Ys=w(),sn=zs.WeakMap;un.exports=Ys(sn)&&/native code/.test(String(sn))});var M=a((Wd,ln)=>{"use strict";var Ks=w();ln.exports=function(e){return typeof e=="object"?e!==null:Ks(e)}});var C=a(($d,pn)=>{"use strict";var Hs=_();pn.exports=!Hs(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var Ir=a((zd,bn)=>{"use strict";var Xs=x(),fn=M(),gr=Xs.document,Js=fn(gr)&&fn(gr.createElement);bn.exports=function(e){return Js?gr.createElement(e):{}}});var Or=a((Yd,vn)=>{"use strict";var Zs=C(),eu=_(),ru=Ir();vn.exports=!Zs&&!eu(function(){return Object.defineProperty(ru("div"),"a",{get:function(){return 7}}).a!==7})});var xr=a((Kd,dn)=>{"use strict";var tu=C(),nu=_();dn.exports=tu&&nu(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var $=a((Hd,mn)=>{"use strict";var iu=M(),ou=String,au=TypeError;mn.exports=function(e){if(iu(e))return e;throw new au(ou(e)+" is not an object")}});var U=a((Xd,Tn)=>{"use strict";var su=oe(),Re=Function.prototype.call;Tn.exports=su?Re.bind(Re):function(){return Re.apply(Re,arguments)}});var Pe=a((Jd,hn)=>{"use strict";hn.exports={}});var Sr=a((Zd,gn)=>{"use strict";var wr=Pe(),Er=x(),uu=w(),yn=function(e){return uu(e)?e:void 0};gn.exports=function(e,r){return arguments.length<2?yn(wr[e])||yn(Er[e]):wr[e]&&wr[e][r]||Er[e]&&Er[e][r]}});var qr=a((em,In)=>{"use strict";var cu=j();In.exports=cu({}.isPrototypeOf)});var En=a((rm,wn)=>{"use strict";var lu=x(),On=lu.navigator,xn=On&&On.userAgent;wn.exports=xn?String(xn):""});var Cn=a((tm,_n)=>{"use strict";var An=x(),Rr=En(),Sn=An.process,qn=An.Deno,Rn=Sn&&Sn.versions||qn&&qn.version,Pn=Rn&&Rn.v8,R,Ae;Pn&&(R=Pn.split("."),Ae=R[0]>0&&R[0]<4?1:+(R[0]+R[1]));!Ae&&Rr&&(R=Rr.match(/Edge\/(\d+)/),(!R||R[1]>=74)&&(R=Rr.match(/Chrome\/(\d+)/),R&&(Ae=+R[1])));_n.exports=Ae});var Pr=a((nm,jn)=>{"use strict";var Ln=Cn(),pu=_(),fu=x(),bu=fu.String;jn.exports=!!Object.getOwnPropertySymbols&&!pu(function(){var e=Symbol("symbol detection");return!bu(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Ln&&Ln<41})});var Ar=a((im,Mn)=>{"use strict";var vu=Pr();Mn.exports=vu&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var _r=a((om,Nn)=>{"use strict";var du=Sr(),mu=w(),Tu=qr(),hu=Ar(),yu=Object;Nn.exports=hu?function(e){return typeof e=="symbol"}:function(e){var r=du("Symbol");return mu(r)&&Tu(r.prototype,yu(e))}});var _e=a((am,kn)=>{"use strict";var gu=String;kn.exports=function(e){try{return gu(e)}catch(r){return"Object"}}});var se=a((sm,Vn)=>{"use strict";var Iu=w(),Ou=_e(),xu=TypeError;Vn.exports=function(e){if(Iu(e))return e;throw new xu(Ou(e)+" is not a function")}});var Ce=a((um,Dn)=>{"use strict";var wu=se(),Eu=Se();Dn.exports=function(e,r){var t=e[r];return Eu(t)?void 0:wu(t)}});var Un=a((cm,Fn)=>{"use strict";var Cr=U(),Lr=w(),jr=M(),Su=TypeError;Fn.exports=function(e,r){var t,n;if(r==="string"&&Lr(t=e.toString)&&!jr(n=Cr(t,e))||Lr(t=e.valueOf)&&!jr(n=Cr(t,e))||r!=="string"&&Lr(t=e.toString)&&!jr(n=Cr(t,e)))return n;throw new Su("Can't convert object to primitive value")}});var ue=a((lm,Gn)=>{"use strict";Gn.exports=!0});var Wn=a((pm,Qn)=>{"use strict";var Bn=x(),qu=Object.defineProperty;Qn.exports=function(e,r){try{qu(Bn,e,{value:r,configurable:!0,writable:!0})}catch(t){Bn[e]=r}return r}});var Le=a((fm,Yn)=>{"use strict";var Ru=ue(),Pu=x(),Au=Wn(),$n="__core-js_shared__",zn=Yn.exports=Pu[$n]||Au($n,{});(zn.versions||(zn.versions=[])).push({version:"3.38.0",mode:Ru?"pure":"global",copyright:"\xA9 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.38.0/LICENSE",source:"https://github.com/zloirock/core-js"})});var Mr=a((bm,Hn)=>{"use strict";var Kn=Le();Hn.exports=function(e,r){return Kn[e]||(Kn[e]=r||{})}});var Nr=a((vm,Xn)=>{"use strict";var _u=qe(),Cu=Object;Xn.exports=function(e){return Cu(_u(e))}});var N=a((dm,Jn)=>{"use strict";var Lu=j(),ju=Nr(),Mu=Lu({}.hasOwnProperty);Jn.exports=Object.hasOwn||function(r,t){return Mu(ju(r),t)}});var kr=a((mm,Zn)=>{"use strict";var Nu=j(),ku=0,Vu=Math.random(),Du=Nu(1 .toString);Zn.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Du(++ku+Vu,36)}});var k=a((Tm,ri)=>{"use strict";var Fu=x(),Uu=Mr(),ei=N(),Gu=kr(),Bu=Pr(),Qu=Ar(),J=Fu.Symbol,Vr=Uu("wks"),Wu=Qu?J.for||J:J&&J.withoutSetter||Gu;ri.exports=function(e){return ei(Vr,e)||(Vr[e]=Bu&&ei(J,e)?J[e]:Wu("Symbol."+e)),Vr[e]}});var oi=a((hm,ii)=>{"use strict";var $u=U(),ti=M(),ni=_r(),zu=Ce(),Yu=Un(),Ku=k(),Hu=TypeError,Xu=Ku("toPrimitive");ii.exports=function(e,r){if(!ti(e)||ni(e))return e;var t=zu(e,Xu),n;if(t){if(r===void 0&&(r="default"),n=$u(t,e,r),!ti(n)||ni(n))return n;throw new Hu("Can't convert object to primitive value")}return r===void 0&&(r="number"),Yu(e,r)}});var Dr=a((ym,ai)=>{"use strict";var Ju=oi(),Zu=_r();ai.exports=function(e){var r=Ju(e,"string");return Zu(r)?r:r+""}});var Z=a(ui=>{"use strict";var ec=C(),rc=Or(),tc=xr(),je=$(),si=Dr(),nc=TypeError,Fr=Object.defineProperty,ic=Object.getOwnPropertyDescriptor,Ur="enumerable",Gr="configurable",Br="writable";ui.f=ec?tc?function(r,t,n){if(je(r),t=si(t),je(n),typeof r=="function"&&t==="prototype"&&"value"in n&&Br in n&&!n[Br]){var i=ic(r,t);i&&i[Br]&&(r[t]=n.value,n={configurable:Gr in n?n[Gr]:i[Gr],enumerable:Ur in n?n[Ur]:i[Ur],writable:!1})}return Fr(r,t,n)}:Fr:function(r,t,n){if(je(r),t=si(t),je(n),rc)try{return Fr(r,t,n)}catch(i){}if("get"in n||"set"in n)throw new nc("Accessors not supported");return"value"in n&&(r[t]=n.value),r}});var ce=a((Im,ci)=>{"use strict";ci.exports=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}}});var ee=a((Om,li)=>{"use strict";var oc=C(),ac=Z(),sc=ce();li.exports=oc?function(e,r,t){return ac.f(e,r,sc(1,t))}:function(e,r,t){return e[r]=t,e}});var Me=a((xm,fi)=>{"use strict";var uc=Mr(),cc=kr(),pi=uc("keys");fi.exports=function(e){return pi[e]||(pi[e]=cc(e))}});var Ne=a((wm,bi)=>{"use strict";bi.exports={}});var Ti=a((Em,mi)=>{"use strict";var lc=cn(),di=x(),pc=M(),fc=ee(),Qr=N(),Wr=Le(),bc=Me(),vc=Ne(),vi="Object already initialized",$r=di.TypeError,dc=di.WeakMap,ke,le,Ve,mc=function(e){return Ve(e)?le(e):ke(e,{})},Tc=function(e){return function(r){var t;if(!pc(r)||(t=le(r)).type!==e)throw new $r("Incompatible receiver, "+e+" required");return t}};lc||Wr.state?(P=Wr.state||(Wr.state=new dc),P.get=P.get,P.has=P.has,P.set=P.set,ke=function(e,r){if(P.has(e))throw new $r(vi);return r.facade=e,P.set(e,r),r},le=function(e){return P.get(e)||{}},Ve=function(e){return P.has(e)}):(z=bc("state"),vc[z]=!0,ke=function(e,r){if(Qr(e,z))throw new $r(vi);return r.facade=e,fc(e,z,r),r},le=function(e){return Qr(e,z)?e[z]:{}},Ve=function(e){return Qr(e,z)});var P,z;mi.exports={set:ke,get:le,has:Ve,enforce:mc,getterFor:Tc}});var Oi=a((Sm,Ii)=>{"use strict";var hc=oe(),gi=Function.prototype,hi=gi.apply,yi=gi.call;Ii.exports=typeof Reflect=="object"&&Reflect.apply||(hc?yi.bind(hi):function(){return yi.apply(hi,arguments)})});var zr=a((qm,xi)=>{"use strict";var yc=Ee(),gc=j();xi.exports=function(e){if(yc(e)==="Function")return gc(e)}});var qi=a(Si=>{"use strict";var wi={}.propertyIsEnumerable,Ei=Object.getOwnPropertyDescriptor,Ic=Ei&&!wi.call({1:2},1);Si.f=Ic?function(r){var t=Ei(this,r);return!!t&&t.enumerable}:wi});var Ai=a(Pi=>{"use strict";var Oc=C(),xc=U(),wc=qi(),Ec=ce(),Sc=X(),qc=Dr(),Rc=N(),Pc=Or(),Ri=Object.getOwnPropertyDescriptor;Pi.f=Oc?Ri:function(r,t){if(r=Sc(r),t=qc(t),Pc)try{return Ri(r,t)}catch(n){}if(Rc(r,t))return Ec(!xc(wc.f,r,t),r[t])}});var Ci=a((Am,_i)=>{"use strict";var Ac=_(),_c=w(),Cc=/#|\.prototype\./,pe=function(e,r){var t=jc[Lc(e)];return t===Nc?!0:t===Mc?!1:_c(r)?Ac(r):!!r},Lc=pe.normalize=function(e){return String(e).replace(Cc,".").toLowerCase()},jc=pe.data={},Mc=pe.NATIVE="N",Nc=pe.POLYFILL="P";_i.exports=pe});var Yr=a((_m,ji)=>{"use strict";var Li=zr(),kc=se(),Vc=oe(),Dc=Li(Li.bind);ji.exports=function(e,r){return kc(e),r===void 0?e:Vc?Dc(e,r):function(){return e.apply(r,arguments)}}});var Kr=a((Cm,Ni)=>{"use strict";var fe=x(),Fc=Oi(),Uc=zr(),Gc=w(),Bc=Ai().f,Qc=Ci(),re=Pe(),Wc=Yr(),te=ee(),Mi=N();Le();var $c=function(e){var r=function(t,n,i){if(this instanceof r){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,i)}return Fc(e,this,arguments)};return r.prototype=e.prototype,r};Ni.exports=function(e,r){var t=e.target,n=e.global,i=e.stat,o=e.proto,u=n?fe:i?fe[t]:fe[t]&&fe[t].prototype,s=n?re:re[t]||te(re,t,{})[t],l=s.prototype,c,p,f,v,d,T,h,I,y;for(v in r)c=Qc(n?v:t+(i?".":"#")+v,e.forced),p=!c&&u&&Mi(u,v),T=s[v],p&&(e.dontCallGetSet?(y=Bc(u,v),h=y&&y.value):h=u[v]),d=p&&h?h:r[v],!(!c&&!o&&typeof T==typeof d)&&(e.bind&&p?I=Wc(d,fe):e.wrap&&p?I=$c(d):o&&Gc(d)?I=Uc(d):I=d,(e.sham||d&&d.sham||T&&T.sham)&&te(I,"sham",!0),te(s,v,I),o&&(f=t+"Prototype",Mi(re,f)||te(re,f,{}),te(re[f],v,d),e.real&&l&&(c||!l[v])&&te(l,v,d)))}});var Di=a((Lm,Vi)=>{"use strict";var Hr=C(),zc=N(),ki=Function.prototype,Yc=Hr&&Object.getOwnPropertyDescriptor,Xr=zc(ki,"name"),Kc=Xr&&function(){}.name==="something",Hc=Xr&&(!Hr||Hr&&Yc(ki,"name").configurable);Vi.exports={EXISTS:Xr,PROPER:Kc,CONFIGURABLE:Hc}});var Ui=a((jm,Fi)=>{"use strict";var Xc=Math.ceil,Jc=Math.floor;Fi.exports=Math.trunc||function(r){var t=+r;return(t>0?Jc:Xc)(t)}});var Jr=a((Mm,Gi)=>{"use strict";var Zc=Ui();Gi.exports=function(e){var r=+e;return r!==r||r===0?0:Zc(r)}});var Qi=a((Nm,Bi)=>{"use strict";var el=Jr(),rl=Math.max,tl=Math.min;Bi.exports=function(e,r){var t=el(e);return t<0?rl(t+r,0):tl(t,r)}});var $i=a((km,Wi)=>{"use strict";var nl=Jr(),il=Math.min;Wi.exports=function(e){var r=nl(e);return r>0?il(r,9007199254740991):0}});var Zr=a((Vm,zi)=>{"use strict";var ol=$i();zi.exports=function(e){return ol(e.length)}});var Hi=a((Dm,Ki)=>{"use strict";var al=X(),sl=Qi(),ul=Zr(),Yi=function(e){return function(r,t,n){var i=al(r),o=ul(i);if(o===0)return!e&&-1;var u=sl(n,o),s;if(e&&t!==t){for(;o>u;)if(s=i[u++],s!==s)return!0}else for(;o>u;u++)if((e||u in i)&&i[u]===t)return e||u||0;return!e&&-1}};Ki.exports={includes:Yi(!0),indexOf:Yi(!1)}});var Zi=a((Fm,Ji)=>{"use strict";var cl=j(),et=N(),ll=X(),pl=Hi().indexOf,fl=Ne(),Xi=cl([].push);Ji.exports=function(e,r){var t=ll(e),n=0,i=[],o;for(o in t)!et(fl,o)&&et(t,o)&&Xi(i,o);for(;r.length>n;)et(t,o=r[n++])&&(~pl(i,o)||Xi(i,o));return i}});var rt=a((Um,eo)=>{"use strict";eo.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var to=a((Gm,ro)=>{"use strict";var bl=Zi(),vl=rt();ro.exports=Object.keys||function(r){return bl(r,vl)}});var io=a(no=>{"use strict";var dl=C(),ml=xr(),Tl=Z(),hl=$(),yl=X(),gl=to();no.f=dl&&!ml?Object.defineProperties:function(r,t){hl(r);for(var n=yl(t),i=gl(t),o=i.length,u=0,s;o>u;)Tl.f(r,s=i[u++],n[s]);return r}});var ao=a((Qm,oo)=>{"use strict";var Il=Sr();oo.exports=Il("document","documentElement")});var ot=a((Wm,bo)=>{"use strict";var Ol=$(),xl=io(),so=rt(),wl=Ne(),El=ao(),Sl=Ir(),ql=Me(),uo=">",co="<",nt="prototype",it="script",po=ql("IE_PROTO"),tt=function(){},fo=function(e){return co+it+uo+e+co+"/"+it+uo},lo=function(e){e.write(fo("")),e.close();var r=e.parentWindow.Object;return e=null,r},Rl=function(){var e=Sl("iframe"),r="java"+it+":",t;return e.style.display="none",El.appendChild(e),e.src=String(r),t=e.contentWindow.document,t.open(),t.write(fo("document.F=Object")),t.close(),t.F},De,Fe=function(){try{De=new ActiveXObject("htmlfile")}catch(r){}Fe=typeof document!="undefined"?document.domain&&De?lo(De):Rl():lo(De);for(var e=so.length;e--;)delete Fe[nt][so[e]];return Fe()};wl[po]=!0;bo.exports=Object.create||function(r,t){var n;return r!==null?(tt[nt]=Ol(r),n=new tt,tt[nt]=null,n[po]=r):n=Fe(),t===void 0?n:xl.f(n,t)}});var mo=a(($m,vo)=>{"use strict";var Pl=_();vo.exports=!Pl(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var st=a((zm,ho)=>{"use strict";var Al=N(),_l=w(),Cl=Nr(),Ll=Me(),jl=mo(),To=Ll("IE_PROTO"),at=Object,Ml=at.prototype;ho.exports=jl?at.getPrototypeOf:function(e){var r=Cl(e);if(Al(r,To))return r[To];var t=r.constructor;return _l(t)&&r instanceof t?t.prototype:r instanceof at?Ml:null}});var ut=a((Ym,yo)=>{"use strict";var Nl=ee();yo.exports=function(e,r,t,n){return n&&n.enumerable?e[r]=t:Nl(e,r,t),e}});var ft=a((Km,Oo)=>{"use strict";var kl=_(),Vl=w(),Dl=M(),Fl=ot(),go=st(),Ul=ut(),Gl=k(),Bl=ue(),pt=Gl("iterator"),Io=!1,V,ct,lt;[].keys&&(lt=[].keys(),"next"in lt?(ct=go(go(lt)),ct!==Object.prototype&&(V=ct)):Io=!0);var Ql=!Dl(V)||kl(function(){var e={};return V[pt].call(e)!==e});Ql?V={}:Bl&&(V=Fl(V));Vl(V[pt])||Ul(V,pt,function(){return this});Oo.exports={IteratorPrototype:V,BUGGY_SAFARI_ITERATORS:Io}});var Ue=a((Hm,wo)=>{"use strict";var Wl=k(),$l=Wl("toStringTag"),xo={};xo[$l]="z";wo.exports=String(xo)==="[object z]"});var bt=a((Xm,Eo)=>{"use strict";var zl=Ue(),Yl=w(),Ge=Ee(),Kl=k(),Hl=Kl("toStringTag"),Xl=Object,Jl=Ge(function(){return arguments}())==="Arguments",Zl=function(e,r){try{return e[r]}catch(t){}};Eo.exports=zl?Ge:function(e){var r,t,n;return e===void 0?"Undefined":e===null?"Null":typeof(t=Zl(r=Xl(e),Hl))=="string"?t:Jl?Ge(r):(n=Ge(r))==="Object"&&Yl(r.callee)?"Arguments":n}});var qo=a((Jm,So)=>{"use strict";var ep=Ue(),rp=bt();So.exports=ep?{}.toString:function(){return"[object "+rp(this)+"]"}});var Be=a((Zm,Po)=>{"use strict";var tp=Ue(),np=Z().f,ip=ee(),op=N(),ap=qo(),sp=k(),Ro=sp("toStringTag");Po.exports=function(e,r,t,n){var i=t?e:e&&e.prototype;i&&(op(i,Ro)||np(i,Ro,{configurable:!0,value:r}),n&&!tp&&ip(i,"toString",ap))}});var _o=a((eT,Ao)=>{"use strict";var up=ft().IteratorPrototype,cp=ot(),lp=ce(),pp=Be(),fp=W(),bp=function(){return this};Ao.exports=function(e,r,t,n){var i=r+" Iterator";return e.prototype=cp(up,{next:lp(+!n,t)}),pp(e,i,!1,!0),fp[i]=bp,e}});var Lo=a((rT,Co)=>{"use strict";var vp=j(),dp=se();Co.exports=function(e,r,t){try{return vp(dp(Object.getOwnPropertyDescriptor(e,r)[t]))}catch(n){}}});var Mo=a((tT,jo)=>{"use strict";var mp=M();jo.exports=function(e){return mp(e)||e===null}});var ko=a((nT,No)=>{"use strict";var Tp=Mo(),hp=String,yp=TypeError;No.exports=function(e){if(Tp(e))return e;throw new yp("Can't set "+hp(e)+" as a prototype")}});var Do=a((iT,Vo)=>{"use strict";var gp=Lo(),Ip=M(),Op=qe(),xp=ko();Vo.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,r={},t;try{t=gp(Object.prototype,"__proto__","set"),t(r,[]),e=r instanceof Array}catch(n){}return function(i,o){return Op(i),xp(o),Ip(i)&&(e?t(i,o):i.__proto__=o),i}}():void 0)});var Ho=a((oT,Ko)=>{"use strict";var wp=Kr(),Ep=U(),Qe=ue(),zo=Di(),Sp=w(),qp=_o(),Fo=st(),Uo=Do(),Rp=Be(),Pp=ee(),vt=ut(),Ap=k(),Go=W(),Yo=ft(),_p=zo.PROPER,Cp=zo.CONFIGURABLE,Bo=Yo.IteratorPrototype,We=Yo.BUGGY_SAFARI_ITERATORS,be=Ap("iterator"),Qo="keys",ve="values",Wo="entries",$o=function(){return this};Ko.exports=function(e,r,t,n,i,o,u){qp(t,r,n);var s=function(y){if(y===i&&v)return v;if(!We&&y&&y in p)return p[y];switch(y){case Qo:return function(){return new t(this,y)};case ve:return function(){return new t(this,y)};case Wo:return function(){return new t(this,y)}}return function(){return new t(this)}},l=r+" Iterator",c=!1,p=e.prototype,f=p[be]||p["@@iterator"]||i&&p[i],v=!We&&f||s(i),d=r==="Array"&&p.entries||f,T,h,I;if(d&&(T=Fo(d.call(new e)),T!==Object.prototype&&T.next&&(!Qe&&Fo(T)!==Bo&&(Uo?Uo(T,Bo):Sp(T[be])||vt(T,be,$o)),Rp(T,l,!0,!0),Qe&&(Go[l]=$o))),_p&&i===ve&&f&&f.name!==ve&&(!Qe&&Cp?Pp(p,"name",ve):(c=!0,v=function(){return Ep(f,this)})),i)if(h={values:s(ve),keys:o?v:s(Qo),entries:s(Wo)},u)for(I in h)(We||c||!(I in p))&&vt(p,I,h[I]);else wp({target:r,proto:!0,forced:We||c},h);return(!Qe||u)&&p[be]!==v&&vt(p,be,v,{name:i}),Go[r]=v,h}});var Jo=a((aT,Xo)=>{"use strict";Xo.exports=function(e,r){return{value:e,done:r}}});var mt=a((sT,na)=>{"use strict";var Lp=X(),dt=tn(),Zo=W(),ra=Ti(),jp=Z().f,Mp=Ho(),$e=Jo(),Np=ue(),kp=C(),ta="Array Iterator",Vp=ra.set,Dp=ra.getterFor(ta);na.exports=Mp(Array,"Array",function(e,r){Vp(this,{type:ta,target:Lp(e),index:0,kind:r})},function(){var e=Dp(this),r=e.target,t=e.index++;if(!r||t>=r.length)return e.target=void 0,$e(void 0,!0);switch(e.kind){case"keys":return $e(t,!1);case"values":return $e(r[t],!1)}return $e([t,r[t]],!1)},"values");var ea=Zo.Arguments=Zo.Array;dt("keys");dt("values");dt("entries");if(!Np&&kp&&ea.name!=="values")try{jp(ea,"name",{value:"values"})}catch(e){}});var oa=a((uT,ia)=>{"use strict";var Fp=k(),Up=W(),Gp=Fp("iterator"),Bp=Array.prototype;ia.exports=function(e){return e!==void 0&&(Up.Array===e||Bp[Gp]===e)}});var Tt=a((cT,sa)=>{"use strict";var Qp=bt(),aa=Ce(),Wp=Se(),$p=W(),zp=k(),Yp=zp("iterator");sa.exports=function(e){if(!Wp(e))return aa(e,Yp)||aa(e,"@@iterator")||$p[Qp(e)]}});var ca=a((lT,ua)=>{"use strict";var Kp=U(),Hp=se(),Xp=$(),Jp=_e(),Zp=Tt(),ef=TypeError;ua.exports=function(e,r){var t=arguments.length<2?Zp(e):r;if(Hp(t))return Xp(Kp(t,e));throw new ef(Jp(e)+" is not iterable")}});var fa=a((pT,pa)=>{"use strict";var rf=U(),la=$(),tf=Ce();pa.exports=function(e,r,t){var n,i;la(e);try{if(n=tf(e,"return"),!n){if(r==="throw")throw t;return t}n=rf(n,e)}catch(o){i=!0,n=o}if(r==="throw")throw t;if(i)throw n;return la(n),t}});var Ta=a((fT,ma)=>{"use strict";var nf=Yr(),of=U(),af=$(),sf=_e(),uf=oa(),cf=Zr(),ba=qr(),lf=ca(),pf=Tt(),va=fa(),ff=TypeError,ze=function(e,r){this.stopped=e,this.result=r},da=ze.prototype;ma.exports=function(e,r,t){var n=t&&t.that,i=!!(t&&t.AS_ENTRIES),o=!!(t&&t.IS_RECORD),u=!!(t&&t.IS_ITERATOR),s=!!(t&&t.INTERRUPTED),l=nf(r,n),c,p,f,v,d,T,h,I=function(g){return c&&va(c,"normal",g),new ze(!0,g)},y=function(g){return i?(af(g),s?l(g[0],g[1],I):l(g[0],g[1])):s?l(g,I):l(g)};if(o)c=e.iterator;else if(u)c=e;else{if(p=pf(e),!p)throw new ff(sf(e)+" is not iterable");if(uf(p)){for(f=0,v=cf(e);v>f;f++)if(d=y(e[f]),d&&ba(da,d))return d;return new ze(!1)}c=lf(e,p)}for(T=o?e.next:c.next;!(h=of(T,c)).done;){try{d=y(h.value)}catch(g){va(c,"throw",g)}if(typeof d=="object"&&d&&ba(da,d))return d}return new ze(!1)}});var ya=a((bT,ha)=>{"use strict";var bf=C(),vf=Z(),df=ce();ha.exports=function(e,r,t){bf?vf.f(e,r,df(0,t)):e[r]=t}});var ga=a(()=>{"use strict";var mf=Kr(),Tf=Ta(),hf=ya();mf({target:"Object",stat:!0},{fromEntries:function(r){var t={};return Tf(r,function(n,i){hf(t,n,i)},{AS_ENTRIES:!0}),t}})});var Oa=a((mT,Ia)=>{"use strict";mt();ga();var yf=Pe();Ia.exports=yf.Object.fromEntries});var wa=a((TT,xa)=>{"use strict";xa.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}});var Sa=a(()=>{"use strict";mt();var gf=wa(),If=x(),Of=Be(),Ea=W();for(Ye in gf)Of(If[Ye],Ye),Ea[Ye]=Ea.Array;var Ye});var Ra=a((gT,qa)=>{"use strict";var xf=Oa();Sa();qa.exports=xf});var Aa=a((IT,Pa)=>{"use strict";var wf=Ra();Pa.exports=wf});var Wa="1.0.40-dev.85b25f2f.0";var E=class{constructor(){this.subscriptions=[]}unsubscribe(){let r=this.subscriptions;this.subscriptions=[],r.forEach(t=>typeof t=="function"?t():t.unsubscribe())}add(r){return this.subscriptions.push(r),this}};var L=e=>{throw new Error(`${e} is value of unexpected type`)},$a=e=>{};var B=()=>{};var b=class{constructor(r){r&&(this._subscribe=r)}subscribe(r,t){var u;let n;t?typeof t=="function"?n={next:t,error:B}:n={next:s=>t.next(s),error:s=>{var l;return(l=t.error)==null?void 0:l.call(t,s)}}:n={next:B,error:B};let i=typeof r=="function"?{next:s=>{try{r(s)}catch(l){n.next(l)}},error:s=>n.next(s)}:{next:s=>r.next(s),error:s=>r.error?r.error(s):n.next(s)},o;try{o=this._subscribe(i)}catch(s){(u=i.error)==null||u.call(i,s)}return new E().add(()=>{switch(i.next=B,i.error=B,typeof o){case"function":o();return;case"object":o.unsubscribe();return;case"undefined":return;default:return L(o)}})}pipe(...r){return r.reduce((t,n)=>n(t),this)}_subscribe(r){}};var F=class extends b{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 Ke=class{constructor(){this.log$=new F;this.logs=[];this.log=r=>{let t=D(A({},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=>A({component:r},t))}};import{trace as za,context as Ya}from"@opentelemetry/api";import{TracerAllSpansProcessor as Ka,TracerMemorySpanExporter as Et,initTracerOpenTelemetry as Ha}from"/Users/builder/teamcity-agent/work/ae259db4970b1067/packages/shared/libs/tracer/lib/index.mjs";var He=class e{constructor({name:r}){}log(r,t){}error(r,t){}critical(r,t){}createComponentTracer(r){return new e({name:r})}end(){}getFinishedSpans(){}getTraceId(){return this.fakeTraceId}},Xe=class e{constructor({name:r,parentContext:t,tracer:n}){this.childTracers=[];let i=!n;if(i){let u=Ha({serviceName:"videoplayer-sdk-web",appToken:"L9SBoka6ZWk4xPjaK7tmfSfYvMhcge7nvGDjpdMmscb",spanLimits:{attributeCountLimit:1/0,eventCountLimit:1/0,attributePerEventCountLimit:1/0}}).getProvider(),s=new Et,l=new Et;this.spanExporter=s,u.addSpanProcessor(new Ka({startedSpansExporter:s,endedSpansExporter:l})),this.tracer=u.getTracer("sdk-videoplayer-tracer")}else this.tracer=n;this.span=this.tracer.startSpan(r,{root:i},t),this.context=za.setSpan(Ya.active(),this.span)}log(r,t){this.span.addEvent(r,D(A({},t),{type:"log"}))}error(r,t){this.span.addEvent(r,D(A({},t),{type:"error"}))}critical(r,t){this.span.addEvent(r,D(A({},t),{type:"critical"}))}static createRootTracer(r=!1){return r?new e({name:"Root"}):new He({name:"Root"})}createComponentTracer(r){let t=new e({name:r,parentContext:this.context,tracer:this.tracer});return this.childTracers.push(t),t}end(){this.childTracers.forEach(r=>r.end()),this.span.end()}getFinishedSpans(){var r;return(r=this.spanExporter)==null?void 0:r.getJsonData()}getTraceId(){return this.span.spanContext().traceId}};function Xa(e,r='Assertion "value is not nullable" failed'){if(e==null)throw new Error(r)}function Ja(e,r='Assertion "value is nullable" failed'){if(e!=null)throw new Error(r)}function Y(e){return typeof e!="undefined"&&e!==null}function Je(e){return e==null}function Za(e,r){if(!(e!=null&&e.length))throw new Error(r)}function es(e,r){if(e!=null&&e.length)throw new Error(r)}var rs=(e,r,t)=>new Promise((n,i)=>{r.addEventListener("abort",()=>{s(),c.remove()});let o=()=>{s(),i()},u=()=>{s(),n()},s=()=>{l&&clearTimeout(l),c.removeEventListener("load",u),c.removeEventListener("error",o)},l;t&&(l=window.setTimeout(o,t));let c=document.createElement("script");c.addEventListener("load",u),c.addEventListener("error",o),c.src=e,document.head.appendChild(c)});var St,ts=typeof((St=window.performance)==null?void 0:St.now)=="function"?()=>window.performance.now():()=>Date.now();var ns=(e,r)=>(...t)=>he(void 0,null,function*(){var u;let n=r(...t),i=e.aborted,o;for(;!i&&!e.aborted;)try{let s=yield n.next(o);i=(u=s.done)!=null?u:!1,o=s.value}catch(s){yield n.throw(s)}return o});var qt=()=>{var e,r;return/Mobile|mini|Fennec|Android|iP(ad|od|hone)/.test((e=navigator.appVersion)!=null?e:navigator.userAgent)||((r=navigator==null?void 0:navigator.userAgentData)==null?void 0:r.mobile)},Ze=class{constructor(){this.detect()}get browser(){return this._currentBrowser}get device(){return this._currentDevice}get isTouch(){return this._maxTouchPoints>0}get isIOS(){return["iPhone","iPad","iPod"].includes(this.device)}get isMac(){return this.device==="Mac"}get isApple(){return this.isIOS||this.isMac}get isIphoneOrOldIpad(){if(!this.isApple||!this.isTouch)return!1;let r=this.device==="iPad"||(window==null?void 0:window.screen.width)>700,t=this._iosVersion;return!r||r&&!!t&&t<16}get isAndroid(){return this.device==="Android"}get isMobile(){return this._isMobile}get iOSVersion(){return this._iosVersion}get macVersion(){return this._macVersion}get isYandex(){return this.browser==="Yandex"}get isSafari(){return this.browser==="Safari"}get isSamsungBrowser(){return this.browser==="SamsungBrowser"}get isHDR(){return this._isHdr}detect(){var n;let{userAgent:r,maxTouchPoints:t}=navigator;try{this._maxTouchPoints=t,this._isHdr=!!((n=matchMedia("(dynamic-range: high)"))!=null&&n.matches)}catch(i){console.error(i)}try{this._isMobile=qt()}catch(i){console.error(i)}this.detectBrowser(r),this.detectDevice(r),this.isIOS&&this.detectIOSVersion(),this.isMac&&this.detectMacVersion()}detectBrowser(r){try{let t=/yabrowser/i.test(r)?"Yandex":void 0,n=/samsungbrowser/i.test(r)?"SamsungBrowser":void 0,i=/chrome|crios/i.test(r)?"Chrome":void 0,o=/chromium/i.test(r)?"Chromium":void 0,u=/firefox|fxios/i.test(r)?"Firefox":void 0,s=/webkit|safari|khtml/i.test(r)?"Safari":void 0,l=/opr\//i.test(r)?"Opera":void 0,c=/edg/i.test(r)?"Edge":void 0;this._currentBrowser=t||n||u||l||c||i||o||s||"Rest"}catch(t){console.error(t)}}detectDevice(r){try{let t=/android/i.test(r)?"Android":void 0,n=/iphone/i.test(r)?"iPhone":void 0,i=/ipad/i.test(r)?"iPad":void 0,o=/ipod/i.test(r)?"iPod":void 0,u=/mac/i.test(r)?"Mac":void 0,s=/webOS|BlackBerry|IEMobile|Opera Mini/i.test(r)?"RestMobile":void 0;this._currentDevice=t||n||i||o||s||u||"Desktop"}catch(t){console.error(t)}}detectIOSVersion(){try{let{userAgent:r}=window.navigator,t=r.match(/Version\/(\d+(\.\d+)?)/i);if(!t)return;let n=t[1],i=parseFloat(n);if(isNaN(i))return;this._iosVersion=i}catch(r){console.error(r)}}detectMacVersion(){try{let{userAgent:r}=window.navigator,t=r.match(/Version\/(\d+)/);if(!t)return;let n=t[1],i=parseInt(n,10);if(isNaN(i))return;this._macVersion=i}catch(r){console.error(r)}}},is=new Ze;var os=(e,{start:r=0,factor:t=2,max:n=1/0,min:i=r,random:o=0}={})=>{let u=r;return u*=wt(t,e),u*=1+(Math.random()*o*2-o),u=Math.round(u),u=Math.min(u,n),u=Math.max(u,i),u};var rr={};Ga(rr,{clear:()=>ps,get:()=>ss,has:()=>cs,isPersistent:()=>as,remove:()=>ls,set:()=>us});var O,Q,er=`vk-videoplayer-dummy-key-${Math.random()}`,K=()=>{if(Q!==void 0)return Q;try{localStorage.setItem(er,"test"),localStorage.removeItem(er),Q=0}catch(e){if(e instanceof DOMException||e instanceof TypeError)try{sessionStorage.getItem(er),Q=1}catch(r){if(r instanceof DOMException||r instanceof TypeError)Q=2;else throw r}else throw e}return Q===2&&(O=new Map),Q},as=()=>K()===0,ss=e=>{var t,n;let r=K();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)}},us=(e,r)=>{let t=K();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)}},cs=e=>{var t;let r=K();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}},ls=e=>{let r=K();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)}},ps=()=>{let e=K();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 fs=()=>{let e,r;try{e=window.self!==window.top}catch(n){n instanceof DOMException&&n.name==="SecurityError"?e=!0:(e=!1,console.error(n))}try{window.location.ancestorOrigins&&(r=window.location.ancestorOrigins[window.location.ancestorOrigins.length-1])}catch(n){console.error(n)}try{!r&&document.referrer&&(r=document.referrer)}catch(n){console.error(n)}let t=r?new URL(r).hostname:void 0;return{isEmbed:e,host:t}};var tr=(p=>(p.INVARIANT="Invariant quality",p.Q_144P="144p",p.Q_240P="240p",p.Q_360P="360p",p.Q_480P="480p",p.Q_720P="720p",p.Q_1080P="1080p",p.Q_1440P="1440p",p.Q_2160P="2160p",p.Q_4320P="4320p",p))(tr||{});var S={"144p":{width:256,height:144},"240p":{width:428,height:240},"360p":{width:640,height:360},"480p":{width:856,height:480},"720p":{width:1280,height:720},"1080p":{width:1920,height:1080},"1440p":{width:2560,height:1440},"2160p":{width:3840,height:2160},"4320p":{width:7680,height:4320}},bs=(e,r)=>S[e].height>S[r].height,vs=(e,r)=>S[e].height>=S[r].height,nr=(e,r)=>S[e].height<S[r].height,ds=(e,r)=>S[e].height<=S[r].height,ms=e=>e.sort((r,t)=>r===t?0:r==="Invariant quality"?1:t==="Invariant quality"?-1:nr(r,t)?1:-1)[0],Rt=Object.keys(S).sort((e,r)=>nr(e,r)?-1:1),Ts=(e,r=.02)=>[...Rt].find(n=>S[n].height*(1+r)>=e),hs=({width:e,height:r})=>{let t=Math.min(e,r),n=Math.max(e,r);return Rt.find(i=>{let o=S[i];return o.width>=n&&o.height>=t})},ys=e=>S[e].height,ir=e=>e==="Invariant quality",gs=e=>e.every(r=>!ir(r));function Is(e){if(ir(e))throw new Error("Expected exact quality")}var Os=(e,r)=>{let t={};for(let n of Object.keys(r)){let i=r[n],o=e[n];Array.isArray(i)&&Array.isArray(o)?t[n]=o:typeof i=="object"&&typeof o=="object"?t[n]=Os(o,i):t[n]=n in e?o:i}return t};var gb=e=>{let r="";return e>=3600&&(r+=Math.floor(e/3600)+"h",e=e%3600),e>=60&&(r+=Math.floor(e/60)+"m",e=e%60),e>0&&(r+=Math.floor(e)+"s"),r};function or(e,r=0,t){let n,i,o,u,s,l,c=0,p=!1,f=!1,v=!0,d=!r&&r!==0&&typeof window.requestAnimationFrame=="function";t&&(p=!!t.leading,f="maxWait"in t,o=t!=null&&t.maxWait?Math.max(+(t==null?void 0:t.maxWait)||0,r):o,v="trailing"in t?!!t.trailing:v);function T(m){let q=n,G=i;return n=i=void 0,c=m,u=e.apply(G,q),u}function h(m,q){return d?(s&&window.cancelAnimationFrame(s),window.requestAnimationFrame(m)):setTimeout(m,q)}function I(m){if(d){window.cancelAnimationFrame(m);return}clearTimeout(m)}function y(m){return c=m,s=h(de,r),p?T(m):u}function g(m){let q=m-l,G=m-c,gt=r-q;return f?Math.min(gt,o-G):gt}function ht(m){let q=m-l,G=m-c;return l===void 0||q>=r||q<0||f&&G>=o}function de(){let m=Date.now();if(ht(m))return yt(m);s=h(de,g(m))}function yt(m){return s=void 0,v&&n?T(m):(n=i=void 0,u)}function Ca(){s!==void 0&&I(s),c=0,n=l=i=s=void 0}function La(){return s===void 0?u:yt(Date.now())}function ja(){return s!==void 0}function me(...m){let q=Date.now(),G=ht(q);if(n=m,i=this,l=q,G){if(s===void 0)return y(l);if(f)return s=h(de,r),T(l)}return s===void 0&&(s=h(de,r)),u}return me.cancel=Ca,me.flush=La,me.pending=ja,me}var ar=(e,r=0,t)=>or(e,r,D(A(A({},{leading:!0,trailing:!0}),t),{maxWait:r}));var ye=(e,r)=>{if(e===null||typeof e!="object")return e;let t=Array.isArray(e)?[]:{};for(let n in e){if(typeof r=="function"){let i=r(e[n],n,e,t);if(i!==void 0){t[n]=i;continue}}typeof e[n]=="object"?t[n]=ye(e[n],r):t[n]=e[n]}return t};var xs=e=>ye(e);var ws=300,Es=(e,r=ws)=>new b(t=>{let{width:n,height:i}=e.getBoundingClientRect();if(t.next({width:n,height:i}),!window.ResizeObserver)return;let o=new ResizeObserver(ar(u=>{let s=u[0];if(!s)return;let l,c;s.contentBoxSize&&s.contentBoxSize[0]?(c=s.contentBoxSize[0].blockSize,l=s.contentBoxSize[0].inlineSize):s.contentRect&&(l=s.contentRect.width,c=s.contentRect.height),Y(l)&&Y(c)&&t.next({width:l,height:c})},r));return o.observe(e),()=>o.disconnect()});var ge=(e,r=".")=>{let t={};for(let n in e)if(e.hasOwnProperty(n))if(typeof e[n]=="object"&&e[n]!==null){let i=ge(e[n]);for(let o in i)i.hasOwnProperty(o)&&(t[n+r+o]=i[o])}else t[n]=e[n];return t};var Ss=e=>{e.removeAttribute("src"),e.load()};var qs=e=>r=>t=>{let n=typeof t=="object";t==null||n&&!Object.keys(t).length||e(r,n?ge(t):{value:t})};import{Attributes as dv}from"@opentelemetry/api";var Ie=class extends F{constructor(r){super(),this.value=r}next(r){super.next(this.value=r)}error(r){super.error(this.value=r)}getValue(){return this.value}_subscribe(r){let t=super._subscribe(r);return r.next(this.value),t}};function Pt(e){return new b(r=>{let t={},n=Object.keys(e).length,i=o=>u=>{o in t||n--,t[o]=u,n===0&&r.next(t)};return Object.entries(e).reduce((o,[u,s])=>o.add(s.subscribe(i(u))),new E)})}function At(...e){return new b(r=>e.reduce((t,n)=>t.add(n.subscribe(r)),new E))}var Rs=e=>new b(r=>{let t=window.setTimeout(()=>{try{r.next()}catch(n){if(r.error)r.error(n);else throw n}},e);return()=>window.clearTimeout(t)});var Ps=e=>new b(r=>{let t=window.setInterval(()=>r.next(),e);return()=>{t&&(window.clearInterval(t),t=void 0)}});var As=e=>new b(r=>{e.forEach(t=>r.next(t))});var _s=(e,r)=>new b(t=>{let n=i=>t.next(i);return e.addEventListener(r,n),()=>e.removeEventListener(r,n)});function _t(e){return r=>new b(t=>r.subscribe(new sr(t,e)))}var sr=class{constructor(r,t){this.destination=r;this.size=t;this.lastValues=[]}next(r){this.lastValues.length===this.size&&this.lastValues.shift(),this.lastValues.push(r),this.destination.next(this.lastValues)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};var Cs={leading:!1,trailing:!0};function Ct(e,r=Cs){return t=>new b(n=>t.subscribe(new ur(n,e,r)))}var ur=class{constructor(r,t,n){this.destination=r;this.time=t;this.config=n}next(r){this.lastValue=r,Y(this.timeout)?window.clearTimeout(this.timeout):this.config.leading&&this.destination.next(r),this.timeout=window.setTimeout(()=>{if(this.config.trailing)try{this.destination.next(this.lastValue)}catch(t){if(this.destination.error)this.destination.error(t);else throw t}this.timeout=void 0},this.time)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};var Ls={leading:!0,trailing:!1};function Lt(e,r=Ls){return t=>new b(n=>t.subscribe(new cr(n,e,r)))}var cr=class{constructor(r,t,n){this.destination=r;this.time=t;this.config=n}next(r){this.lastValue=r,Je(this.timeout)&&(this.config.leading&&this.destination.next(r),this.timeout=window.setTimeout(()=>{this.config.trailing&&this.destination.next(this.lastValue),this.timeout=void 0},this.time))}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function jt(e){return r=>new b(t=>r.subscribe(new lr(t,e)))}var lr=class{constructor(r,t){this.destination=r;this.predicate=t}next(r){let t;try{t=this.predicate(r)}catch(n){throw this.error(n),n}t&&this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function Nt(e=(r,t)=>r===t){return r=>new b(t=>r.subscribe(new pr(t,e)))}var Mt={},pr=class{constructor(r,t){this.destination=r;this.predicate=t;this.lastValue=Mt}next(r){let t;try{t=this.lastValue===Mt||!this.predicate(this.lastValue,r),this.lastValue=r}catch(n){throw this.error(n),n}t&&this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function Oe(e){return r=>new b(t=>r.subscribe(new fr(t,e)))}var fr=class{constructor(r,t){this.destination=r;this.mapper=t}next(r){let t;try{t=this.mapper(r)}catch(n){throw this.error(n),n}this.destination.next(t)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function kt(e){return Oe(()=>e)}function Vt(){return e=>new b(r=>{let t=!1,n=!1,i=e.subscribe(o=>{t||(t=!0,r.next(o)),n&&i.unsubscribe()},o=>{var u;t=!0,(u=r.error)==null||u.call(r,o),n&&i.unsubscribe()});return n=!0,t&&i.unsubscribe(),i})}function Dt(){return e=>new b(r=>e.subscribe(new br(r)))}var br=class{constructor(r){this.destination=r;this.hasLast=!1}next(r){let t=this.last;if(this.last=r,!this.hasLast){this.hasLast=!0;return}this.destination.next([t,r])}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function Ft(e){return r=>new b(t=>r.subscribe(new vr(t,e)))}var vr=class{constructor(r,t){this.destination=r;this.effect=t}next(r){try{this.effect(r)}catch(t){throw this.error(t),t}this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};var js=(s=>(s.NETWORK="network",s.VIDEO_PIPELINE="video_pipeline",s.EXTERNAL_API="external_api",s.PARSER="parser",s.DOM="dom",s.WTF="wtf",s.FATAL="fatal",s))(js||{});var xe=class{constructor(){Object.defineProperty(this,"listeners",{value:{},writable:!0,configurable:!0})}addEventListener(r,t,n){r in this.listeners||(this.listeners[r]=[]),this.listeners[r].push({callback:t,options:n})}removeEventListener(r,t){if(!(r in this.listeners))return;let n=this.listeners[r];for(let i=0,o=n.length;i<o;i++)if(n[i].callback===t){n.splice(i,1);return}}dispatchEvent(r){if(!(r.type in this.listeners))return;let n=this.listeners[r.type].slice();for(let i=0,o=n.length;i<o;i++){let u=n[i];try{u.callback.call(this,r)}catch(s){Promise.resolve().then(()=>{throw s})}u.options&&u.options.once&&this.removeEventListener(r.type,u.callback)}return!r.defaultPrevented}},H=class extends xe{constructor(){super(),this.listeners||xe.call(this),Object.defineProperty(this,"aborted",{value:!1,writable:!0,configurable:!0}),Object.defineProperty(this,"onabort",{value:null,writable:!0,configurable:!0}),Object.defineProperty(this,"reason",{value:void 0,writable:!0,configurable:!0})}toString(){return"[object AbortSignal]"}dispatchEvent(r){r.type==="abort"&&(this.aborted=!0,typeof this.onabort=="function"&&this.onabort.call(this,r)),super.dispatchEvent(r)}},ne=class{constructor(){Object.defineProperty(this,"signal",{value:new H,writable:!0,configurable:!0})}abort(r){let t;try{t=new Event("abort")}catch(i){typeof document!="undefined"?document.createEvent?(t=document.createEvent("Event"),t.initEvent("abort",!1,!1)):(t=document.createEventObject(),t.type="abort"):t={type:"abort",bubbles:!1,cancelable:!1}}let n=r;if(n===void 0)if(typeof document=="undefined")n=new Error("This operation was aborted"),n.name="AbortError";else try{n=new DOMException("signal is aborted without reason")}catch(i){n=new Error("This operation was aborted"),n.name="AbortError"}this.signal.reason=n,this.signal.dispatchEvent(t)}toString(){return"[object AbortController]"}};typeof Symbol!="undefined"&&Symbol.toStringTag&&(ne.prototype[Symbol.toStringTag]="AbortController",H.prototype[Symbol.toStringTag]="AbortSignal");function we(e){return e.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL?(console.log("__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL=true is set, will force install polyfill"),!0):typeof e.Request=="function"&&!e.Request.prototype.hasOwnProperty("signal")||!e.AbortController}function dr(e){typeof e=="function"&&(e={fetch:e});let{fetch:r,Request:t=r.Request,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:i=!1}=e;if(!we({fetch:r,Request:t,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:i}))return{fetch:r,Request:o};let o=t;(o&&!o.prototype.hasOwnProperty("signal")||i)&&(o=function(c,p){let f;p&&p.signal&&(f=p.signal,delete p.signal);let v=new t(c,p);return f&&Object.defineProperty(v,"signal",{writable:!1,enumerable:!1,configurable:!0,value:f}),v},o.prototype=t.prototype);let u=r;return{fetch:(l,c)=>{let p=o&&o.prototype.isPrototypeOf(l)?l.signal:c?c.signal:void 0;if(p){let f;try{f=new DOMException("Aborted","AbortError")}catch(d){f=new Error("Aborted"),f.name="AbortError"}if(p.aborted)return Promise.reject(f);let v=new Promise((d,T)=>{p.addEventListener("abort",()=>T(f),{once:!0})});return c&&c.signal&&delete c.signal,Promise.race([v,u(l,c)])}return u(l,c)},Request:o}}var ie=we({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}),Ut=ie?dr({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}):void 0,Gt=ie?Ut.fetch:window.fetch,Pd=ie?Ut.Request:window.Request,Ad=ie?ne:window.AbortController,_d=ie?H:window.AbortSignal;var _a=Qa(Aa(),1);var Ef=(f=>(f.Armenian="58",f.Azerbaijani="57",f.Belarusian="114",f.English="3",f.Kazakh="97",f.Portuguese="73",f.Russian="0",f.Spanish="4",f.Ukrainian="1",f.Uzbek="65",f.Vietnamese="75",f))(Ef||{}),Sf="vk.com",xT=(e,r,t)=>he(void 0,null,function*(){let n=new URL(`https://${Sf}/js/lang-pack.js`);n.searchParams.set("format","json"),n.searchParams.set("name",r),e!==void 0&&n.searchParams.set("lang",e);let o=yield(yield Gt(n.toString())).json();return qf(o,t)}),qf=(e,r)=>(0,_a.default)(Object.entries(e.keys).map(([t,n])=>[t.substring(`${r}_`.length),Rf(n)])),Rf=e=>Array.isArray(e)?e[0]:e;var Pf=(t=>(t.RU="ru",t.EN="en",t))(Pf||{});export{dv as Attributes,js as ErrorCategory,Pf as InterfaceLanguage,Ke as Logger,b as Observable,F as Subject,E as Subscription,Xe as Tracer,Wa as VERSION,Ef as VKNumericLanguage,Ie as ValueSubject,tr as VideoQuality,ns as abortable,rs as addScript,gs as areQualitiesExact,es as assertEmptyArray,L as assertNever,Xa as assertNonNullable,Za as assertNotEmptyArray,Ja as assertNullable,Is as assertQualityIsExact,_t as buffer,$a as checkNever,Ss as clearVideoElement,is as clientChecker,xs as cloneDeep,ye as cloneDeepWith,Pt as combine,Ct as debounce,or as debounceFn,fs as detectEmbed,Os as fillWithDefault,jt as filter,Nt as filterChanged,ge as flattenObject,_s as fromEvent,os as getExponentialDelay,ms as getHighestQuality,qs as getTraceSubscriptionMethod,Ps as interval,bs as isHigher,vs as isHigherOrEqual,ir as isInvariantQuality,nr as isLower,ds as isLowerOrEqual,qt as isMobile,Y as isNonNullable,Je as isNullable,xT as loadVKLangPack,Oe as map,kt as mapTo,At as merge,B as noop,ts as now,As as observableFrom,Es as observeElementSize,Vt as once,Dt as pairwise,rr as safeStorage,Ft as tap,Lt as throttle,ar as throttleFn,gb as timeCodeToString,Rs as timeout,Ts as videoHeightToQuality,ys as videoQualityToHeight,hs as videoSizeToQuality};
|