@vkontakte/videoplayer-statistics 1.0.71-dev.b69dd23e.0 → 1.0.71-dev.baeb26ff.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 +3 -3
- package/types/OneStat.d.ts +2 -0
- package/types/types.d.ts +2 -0
package/es2015.cjs.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vkontakte/videoplayer-statistics v1.0.71-dev.
|
|
3
|
-
*
|
|
2
|
+
* @vkontakte/videoplayer-statistics v1.0.71-dev.baeb26ff.0
|
|
3
|
+
* Tue, 18 Feb 2025 09:31:33 GMT
|
|
4
4
|
* https://st.mycdn.me/static/vkontakte-videoplayer/1-0-71/doc/
|
|
5
5
|
*/
|
|
6
|
-
"use strict";var Nl=Object.create;var Ie=Object.defineProperty,Ll=Object.defineProperties,kl=Object.getOwnPropertyDescriptor,Dl=Object.getOwnPropertyDescriptors,$l=Object.getOwnPropertyNames,Yi=Object.getOwnPropertySymbols,jl=Object.getPrototypeOf,Xi=Object.prototype.hasOwnProperty,Ml=Object.prototype.propertyIsEnumerable;var zr=Math.pow,Ji=(r,e,t)=>e in r?Ie(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,H=(r,e)=>{for(var t in e||(e={}))Xi.call(e,t)&&Ji(r,t,e[t]);if(Yi)for(var t of Yi(e))Ml.call(e,t)&&Ji(r,t,e[t]);return r},Qe=(r,e)=>Ll(r,Dl(e));var n=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),Fl=(r,e)=>{for(var t in e)Ie(r,t,{get:e[t],enumerable:!0})},Zi=(r,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of $l(e))!Xi.call(r,o)&&o!==t&&Ie(r,o,{get:()=>e[o],enumerable:!(i=kl(e,o))||i.enumerable});return r};var B=(r,e,t)=>(t=r!=null?Nl(jl(r)):{},Zi(e||!r||!r.__esModule?Ie(t,"default",{value:r,enumerable:!0}):t,r)),Bl=r=>Zi(Ie({},"__esModule",{value:!0}),r);var $=(r,e,t)=>new Promise((i,o)=>{var a=c=>{try{f(t.next(c))}catch(l){o(l)}},u=c=>{try{f(t.throw(c))}catch(l){o(l)}},f=c=>c.done?i(c.value):Promise.resolve(c.value).then(a,u);f((t=t.apply(r,e)).next())});var q=n((Qr,eo)=>{"use strict";var Se=function(r){return r&&r.Math===Math&&r};eo.exports=Se(typeof globalThis=="object"&&globalThis)||Se(typeof window=="object"&&window)||Se(typeof self=="object"&&self)||Se(typeof global=="object"&&global)||Se(typeof Qr=="object"&&Qr)||function(){return this}()||Function("return this")()});var T=n((Fb,ro)=>{"use strict";ro.exports=function(r){try{return!!r()}catch(e){return!0}}});var Ee=n((Bb,to)=>{"use strict";var Ul=T();to.exports=!Ul(function(){var r=function(){}.bind();return typeof r!="function"||r.hasOwnProperty("prototype")})});var Yr=n((Ub,ao)=>{"use strict";var Vl=Ee(),no=Function.prototype,io=no.apply,oo=no.call;ao.exports=typeof Reflect=="object"&&Reflect.apply||(Vl?oo.bind(io):function(){return oo.apply(io,arguments)})});var O=n((Vb,co)=>{"use strict";var so=Ee(),uo=Function.prototype,Jr=uo.call,Gl=so&&uo.bind.bind(Jr,Jr);co.exports=so?Gl:function(r){return function(){return Jr.apply(r,arguments)}}});var qe=n((Gb,fo)=>{"use strict";var lo=O(),Kl=lo({}.toString),Wl=lo("".slice);fo.exports=function(r){return Wl(Kl(r),8,-1)}});var Xr=n((Kb,po)=>{"use strict";var Hl=qe(),zl=O();po.exports=function(r){if(Hl(r)==="Function")return zl(r)}});var P=n((Wb,vo)=>{"use strict";var Zr=typeof document=="object"&&document.all;vo.exports=typeof Zr=="undefined"&&Zr!==void 0?function(r){return typeof r=="function"||r===Zr}:function(r){return typeof r=="function"}});var _=n((Hb,ho)=>{"use strict";var Ql=T();ho.exports=!Ql(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var A=n((zb,go)=>{"use strict";var Yl=Ee(),Ye=Function.prototype.call;go.exports=Yl?Ye.bind(Ye):function(){return Ye.apply(Ye,arguments)}});var et=n(yo=>{"use strict";var mo={}.propertyIsEnumerable,bo=Object.getOwnPropertyDescriptor,Jl=bo&&!mo.call({1:2},1);yo.f=Jl?function(e){var t=bo(this,e);return!!t&&t.enumerable}:mo});var Pe=n((Yb,Io)=>{"use strict";Io.exports=function(r,e){return{enumerable:!(r&1),configurable:!(r&2),writable:!(r&4),value:e}}});var Eo=n((Jb,So)=>{"use strict";var Xl=O(),Zl=T(),ef=qe(),rt=Object,rf=Xl("".split);So.exports=Zl(function(){return!rt("z").propertyIsEnumerable(0)})?function(r){return ef(r)==="String"?rf(r,""):rt(r)}:rt});var Te=n((Xb,qo)=>{"use strict";qo.exports=function(r){return r==null}});var ie=n((Zb,Po)=>{"use strict";var tf=Te(),of=TypeError;Po.exports=function(r){if(tf(r))throw new of("Can't call method on "+r);return r}});var Q=n((ey,To)=>{"use strict";var nf=Eo(),af=ie();To.exports=function(r){return nf(af(r))}});var N=n((ry,Oo)=>{"use strict";var sf=P();Oo.exports=function(r){return typeof r=="object"?r!==null:sf(r)}});var Oe=n((ty,_o)=>{"use strict";_o.exports={}});var U=n((iy,wo)=>{"use strict";var tt=Oe(),it=q(),uf=P(),xo=function(r){return uf(r)?r:void 0};wo.exports=function(r,e){return arguments.length<2?xo(tt[r])||xo(it[r]):tt[r]&&tt[r][e]||it[r]&&it[r][e]}});var Je=n((oy,Ro)=>{"use strict";var cf=O();Ro.exports=cf({}.isPrototypeOf)});var Y=n((ny,No)=>{"use strict";var lf=q(),Co=lf.navigator,Ao=Co&&Co.userAgent;No.exports=Ao?String(Ao):""});var nt=n((ay,Mo)=>{"use strict";var jo=q(),ot=Y(),Lo=jo.process,ko=jo.Deno,Do=Lo&&Lo.versions||ko&&ko.version,$o=Do&&Do.v8,L,Xe;$o&&(L=$o.split("."),Xe=L[0]>0&&L[0]<4?1:+(L[0]+L[1]));!Xe&&ot&&(L=ot.match(/Edge\/(\d+)/),(!L||L[1]>=74)&&(L=ot.match(/Chrome\/(\d+)/),L&&(Xe=+L[1])));Mo.exports=Xe});var at=n((sy,Bo)=>{"use strict";var Fo=nt(),ff=T(),df=q(),pf=df.String;Bo.exports=!!Object.getOwnPropertySymbols&&!ff(function(){var r=Symbol("symbol detection");return!pf(r)||!(Object(r)instanceof Symbol)||!Symbol.sham&&Fo&&Fo<41})});var st=n((uy,Uo)=>{"use strict";var vf=at();Uo.exports=vf&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var ut=n((cy,Vo)=>{"use strict";var hf=U(),gf=P(),mf=Je(),bf=st(),yf=Object;Vo.exports=bf?function(r){return typeof r=="symbol"}:function(r){var e=hf("Symbol");return gf(e)&&mf(e.prototype,yf(r))}});var _e=n((ly,Go)=>{"use strict";var If=String;Go.exports=function(r){try{return If(r)}catch(e){return"Object"}}});var V=n((fy,Ko)=>{"use strict";var Sf=P(),Ef=_e(),qf=TypeError;Ko.exports=function(r){if(Sf(r))return r;throw new qf(Ef(r)+" is not a function")}});var Ze=n((dy,Wo)=>{"use strict";var Pf=V(),Tf=Te();Wo.exports=function(r,e){var t=r[e];return Tf(t)?void 0:Pf(t)}});var zo=n((py,Ho)=>{"use strict";var ct=A(),lt=P(),ft=N(),Of=TypeError;Ho.exports=function(r,e){var t,i;if(e==="string"&<(t=r.toString)&&!ft(i=ct(t,r))||lt(t=r.valueOf)&&!ft(i=ct(t,r))||e!=="string"&<(t=r.toString)&&!ft(i=ct(t,r)))return i;throw new Of("Can't convert object to primitive value")}});var j=n((vy,Qo)=>{"use strict";Qo.exports=!0});var Xo=n((hy,Jo)=>{"use strict";var Yo=q(),_f=Object.defineProperty;Jo.exports=function(r,e){try{_f(Yo,r,{value:e,configurable:!0,writable:!0})}catch(t){Yo[r]=e}return e}});var xe=n((gy,rn)=>{"use strict";var xf=j(),wf=q(),Rf=Xo(),Zo="__core-js_shared__",en=rn.exports=wf[Zo]||Rf(Zo,{});(en.versions||(en.versions=[])).push({version:"3.38.0",mode:xf?"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 dt=n((my,on)=>{"use strict";var tn=xe();on.exports=function(r,e){return tn[r]||(tn[r]=e||{})}});var pt=n((by,nn)=>{"use strict";var Cf=ie(),Af=Object;nn.exports=function(r){return Af(Cf(r))}});var M=n((yy,an)=>{"use strict";var Nf=O(),Lf=pt(),kf=Nf({}.hasOwnProperty);an.exports=Object.hasOwn||function(e,t){return kf(Lf(e),t)}});var vt=n((Iy,sn)=>{"use strict";var Df=O(),$f=0,jf=Math.random(),Mf=Df(1 .toString);sn.exports=function(r){return"Symbol("+(r===void 0?"":r)+")_"+Mf(++$f+jf,36)}});var x=n((Sy,cn)=>{"use strict";var Ff=q(),Bf=dt(),un=M(),Uf=vt(),Vf=at(),Gf=st(),oe=Ff.Symbol,ht=Bf("wks"),Kf=Gf?oe.for||oe:oe&&oe.withoutSetter||Uf;cn.exports=function(r){return un(ht,r)||(ht[r]=Vf&&un(oe,r)?oe[r]:Kf("Symbol."+r)),ht[r]}});var pn=n((Ey,dn)=>{"use strict";var Wf=A(),ln=N(),fn=ut(),Hf=Ze(),zf=zo(),Qf=x(),Yf=TypeError,Jf=Qf("toPrimitive");dn.exports=function(r,e){if(!ln(r)||fn(r))return r;var t=Hf(r,Jf),i;if(t){if(e===void 0&&(e="default"),i=Wf(t,r,e),!ln(i)||fn(i))return i;throw new Yf("Can't convert object to primitive value")}return e===void 0&&(e="number"),zf(r,e)}});var gt=n((qy,vn)=>{"use strict";var Xf=pn(),Zf=ut();vn.exports=function(r){var e=Xf(r,"string");return Zf(e)?e:e+""}});var er=n((Py,gn)=>{"use strict";var ed=q(),hn=N(),mt=ed.document,rd=hn(mt)&&hn(mt.createElement);gn.exports=function(r){return rd?mt.createElement(r):{}}});var bt=n((Ty,mn)=>{"use strict";var td=_(),id=T(),od=er();mn.exports=!td&&!id(function(){return Object.defineProperty(od("div"),"a",{get:function(){return 7}}).a!==7})});var In=n(yn=>{"use strict";var nd=_(),ad=A(),sd=et(),ud=Pe(),cd=Q(),ld=gt(),fd=M(),dd=bt(),bn=Object.getOwnPropertyDescriptor;yn.f=nd?bn:function(e,t){if(e=cd(e),t=ld(t),dd)try{return bn(e,t)}catch(i){}if(fd(e,t))return ud(!ad(sd.f,e,t),e[t])}});var yt=n((_y,Sn)=>{"use strict";var pd=T(),vd=P(),hd=/#|\.prototype\./,we=function(r,e){var t=md[gd(r)];return t===yd?!0:t===bd?!1:vd(e)?pd(e):!!e},gd=we.normalize=function(r){return String(r).replace(hd,".").toLowerCase()},md=we.data={},bd=we.NATIVE="N",yd=we.POLYFILL="P";Sn.exports=we});var Re=n((xy,qn)=>{"use strict";var En=Xr(),Id=V(),Sd=Ee(),Ed=En(En.bind);qn.exports=function(r,e){return Id(r),e===void 0?r:Sd?Ed(r,e):function(){return r.apply(e,arguments)}}});var It=n((wy,Pn)=>{"use strict";var qd=_(),Pd=T();Pn.exports=qd&&Pd(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var G=n((Ry,Tn)=>{"use strict";var Td=N(),Od=String,_d=TypeError;Tn.exports=function(r){if(Td(r))return r;throw new _d(Od(r)+" is not an object")}});var J=n(_n=>{"use strict";var xd=_(),wd=bt(),Rd=It(),rr=G(),On=gt(),Cd=TypeError,St=Object.defineProperty,Ad=Object.getOwnPropertyDescriptor,Et="enumerable",qt="configurable",Pt="writable";_n.f=xd?Rd?function(e,t,i){if(rr(e),t=On(t),rr(i),typeof e=="function"&&t==="prototype"&&"value"in i&&Pt in i&&!i[Pt]){var o=Ad(e,t);o&&o[Pt]&&(e[t]=i.value,i={configurable:qt in i?i[qt]:o[qt],enumerable:Et in i?i[Et]:o[Et],writable:!1})}return St(e,t,i)}:St:function(e,t,i){if(rr(e),t=On(t),rr(i),wd)try{return St(e,t,i)}catch(o){}if("get"in i||"set"in i)throw new Cd("Accessors not supported");return"value"in i&&(e[t]=i.value),e}});var ne=n((Ay,xn)=>{"use strict";var Nd=_(),Ld=J(),kd=Pe();xn.exports=Nd?function(r,e,t){return Ld.f(r,e,kd(1,t))}:function(r,e,t){return r[e]=t,r}});var w=n((Ny,Rn)=>{"use strict";var Ce=q(),Dd=Yr(),$d=Xr(),jd=P(),Md=In().f,Fd=yt(),ae=Oe(),Bd=Re(),se=ne(),wn=M();xe();var Ud=function(r){var e=function(t,i,o){if(this instanceof e){switch(arguments.length){case 0:return new r;case 1:return new r(t);case 2:return new r(t,i)}return new r(t,i,o)}return Dd(r,this,arguments)};return e.prototype=r.prototype,e};Rn.exports=function(r,e){var t=r.target,i=r.global,o=r.stat,a=r.proto,u=i?Ce:o?Ce[t]:Ce[t]&&Ce[t].prototype,f=i?ae:ae[t]||se(ae,t,{})[t],c=f.prototype,l,p,v,s,d,m,S,I,y;for(s in e)l=Fd(i?s:t+(o?".":"#")+s,r.forced),p=!l&&u&&wn(u,s),m=f[s],p&&(r.dontCallGetSet?(y=Md(u,s),S=y&&y.value):S=u[s]),d=p&&S?S:e[s],!(!l&&!a&&typeof m==typeof d)&&(r.bind&&p?I=Bd(d,Ce):r.wrap&&p?I=Ud(d):a&&jd(d)?I=$d(d):I=d,(r.sham||d&&d.sham||m&&m.sham)&&se(I,"sham",!0),se(f,s,I),a&&(v=t+"Prototype",wn(ae,v)||se(ae,v,{}),se(ae[v],s,d),r.real&&c&&(l||!c[s])&&se(c,s,d)))}});var An=n((Ly,Cn)=>{"use strict";var Vd=Math.ceil,Gd=Math.floor;Cn.exports=Math.trunc||function(e){var t=+e;return(t>0?Gd:Vd)(t)}});var tr=n((ky,Nn)=>{"use strict";var Kd=An();Nn.exports=function(r){var e=+r;return e!==e||e===0?0:Kd(e)}});var kn=n((Dy,Ln)=>{"use strict";var Wd=tr(),Hd=Math.max,zd=Math.min;Ln.exports=function(r,e){var t=Wd(r);return t<0?Hd(t+e,0):zd(t,e)}});var Tt=n(($y,Dn)=>{"use strict";var Qd=tr(),Yd=Math.min;Dn.exports=function(r){var e=Qd(r);return e>0?Yd(e,9007199254740991):0}});var Ot=n((jy,$n)=>{"use strict";var Jd=Tt();$n.exports=function(r){return Jd(r.length)}});var _t=n((My,Mn)=>{"use strict";var Xd=Q(),Zd=kn(),ep=Ot(),jn=function(r){return function(e,t,i){var o=Xd(e),a=ep(o);if(a===0)return!r&&-1;var u=Zd(i,a),f;if(r&&t!==t){for(;a>u;)if(f=o[u++],f!==f)return!0}else for(;a>u;u++)if((r||u in o)&&o[u]===t)return r||u||0;return!r&&-1}};Mn.exports={includes:jn(!0),indexOf:jn(!1)}});var xt=n((Fy,Fn)=>{"use strict";Fn.exports=function(){}});var Bn=n(()=>{"use strict";var rp=w(),tp=_t().includes,ip=T(),op=xt(),np=ip(function(){return!Array(1).includes()});rp({target:"Array",proto:!0,forced:np},{includes:function(e){return tp(this,e,arguments.length>1?arguments[1]:void 0)}});op("includes")});var ir=n((Vy,Un)=>{"use strict";var ap=U();Un.exports=ap});var Gn=n((Gy,Vn)=>{"use strict";Bn();var sp=ir();Vn.exports=sp("Array","includes")});var Wn=n((Ky,Kn)=>{"use strict";var up=Gn();Kn.exports=up});var or=n((Wy,Hn)=>{"use strict";var cp=Wn();Hn.exports=cp});var ra=n(()=>{"use strict"});var At=n((oI,ta)=>{"use strict";var Ne=q(),fp=Y(),dp=qe(),cr=function(r){return fp.slice(0,r.length)===r};ta.exports=function(){return cr("Bun/")?"BUN":cr("Cloudflare-Workers")?"CLOUDFLARE":cr("Deno/")?"DENO":cr("Node.js/")?"NODE":Ne.Bun&&typeof Bun.version=="string"?"BUN":Ne.Deno&&typeof Deno.version=="object"?"DENO":dp(Ne.process)==="process"?"NODE":Ne.window&&Ne.document?"BROWSER":"REST"}()});var lr=n((nI,ia)=>{"use strict";var pp=At();ia.exports=pp==="NODE"});var ce=n((aI,oa)=>{"use strict";var vp=ne();oa.exports=function(r,e,t,i){return i&&i.enumerable?r[e]=t:vp(r,e,t),r}});var aa=n((sI,na)=>{"use strict";var hp=O(),gp=V();na.exports=function(r,e,t){try{return hp(gp(Object.getOwnPropertyDescriptor(r,e)[t]))}catch(i){}}});var ua=n((uI,sa)=>{"use strict";var mp=N();sa.exports=function(r){return mp(r)||r===null}});var la=n((cI,ca)=>{"use strict";var bp=ua(),yp=String,Ip=TypeError;ca.exports=function(r){if(bp(r))return r;throw new Ip("Can't set "+yp(r)+" as a prototype")}});var Nt=n((lI,fa)=>{"use strict";var Sp=aa(),Ep=N(),qp=ie(),Pp=la();fa.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var r=!1,e={},t;try{t=Sp(Object.prototype,"__proto__","set"),t(e,[]),r=e instanceof Array}catch(i){}return function(o,a){return qp(o),Pp(a),Ep(o)&&(r?t(o,a):o.__proto__=a),o}}():void 0)});var fr=n((fI,pa)=>{"use strict";var Tp=x(),Op=Tp("toStringTag"),da={};da[Op]="z";pa.exports=String(da)==="[object z]"});var Le=n((dI,va)=>{"use strict";var _p=fr(),xp=P(),dr=qe(),wp=x(),Rp=wp("toStringTag"),Cp=Object,Ap=dr(function(){return arguments}())==="Arguments",Np=function(r,e){try{return r[e]}catch(t){}};va.exports=_p?dr:function(r){var e,t,i;return r===void 0?"Undefined":r===null?"Null":typeof(t=Np(e=Cp(r),Rp))=="string"?t:Ap?dr(e):(i=dr(e))==="Object"&&xp(e.callee)?"Arguments":i}});var ga=n((pI,ha)=>{"use strict";var Lp=fr(),kp=Le();ha.exports=Lp?{}.toString:function(){return"[object "+kp(this)+"]"}});var ke=n((vI,ba)=>{"use strict";var Dp=fr(),$p=J().f,jp=ne(),Mp=M(),Fp=ga(),Bp=x(),ma=Bp("toStringTag");ba.exports=function(r,e,t,i){var o=t?r:r&&r.prototype;o&&(Mp(o,ma)||$p(o,ma,{configurable:!0,value:e}),i&&!Dp&&jp(o,"toString",Fp))}});var Ia=n((hI,ya)=>{"use strict";var Up=J();ya.exports=function(r,e,t){return Up.f(r,e,t)}});var qa=n((gI,Ea)=>{"use strict";var Vp=U(),Gp=Ia(),Kp=x(),Wp=_(),Sa=Kp("species");Ea.exports=function(r){var e=Vp(r);Wp&&e&&!e[Sa]&&Gp(e,Sa,{configurable:!0,get:function(){return this}})}});var Ta=n((mI,Pa)=>{"use strict";var Hp=Je(),zp=TypeError;Pa.exports=function(r,e){if(Hp(e,r))return r;throw new zp("Incorrect invocation")}});var kt=n((bI,Oa)=>{"use strict";var Qp=O(),Yp=P(),Lt=xe(),Jp=Qp(Function.toString);Yp(Lt.inspectSource)||(Lt.inspectSource=function(r){return Jp(r)});Oa.exports=Lt.inspectSource});var Aa=n((yI,Ca)=>{"use strict";var Xp=O(),Zp=T(),_a=P(),ev=Le(),rv=U(),tv=kt(),xa=function(){},wa=rv("Reflect","construct"),Dt=/^\s*(?:class|function)\b/,iv=Xp(Dt.exec),ov=!Dt.test(xa),De=function(e){if(!_a(e))return!1;try{return wa(xa,[],e),!0}catch(t){return!1}},Ra=function(e){if(!_a(e))return!1;switch(ev(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return ov||!!iv(Dt,tv(e))}catch(t){return!0}};Ra.sham=!0;Ca.exports=!wa||Zp(function(){var r;return De(De.call)||!De(Object)||!De(function(){r=!0})||r})?Ra:De});var La=n((II,Na)=>{"use strict";var nv=Aa(),av=_e(),sv=TypeError;Na.exports=function(r){if(nv(r))return r;throw new sv(av(r)+" is not a constructor")}});var $t=n((SI,Da)=>{"use strict";var ka=G(),uv=La(),cv=Te(),lv=x(),fv=lv("species");Da.exports=function(r,e){var t=ka(r).constructor,i;return t===void 0||cv(i=ka(t)[fv])?e:uv(i)}});var jt=n((EI,$a)=>{"use strict";var dv=U();$a.exports=dv("document","documentElement")});var Ma=n((qI,ja)=>{"use strict";var pv=O();ja.exports=pv([].slice)});var Ba=n((PI,Fa)=>{"use strict";var vv=TypeError;Fa.exports=function(r,e){if(r<e)throw new vv("Not enough arguments");return r}});var Mt=n((TI,Ua)=>{"use strict";var hv=Y();Ua.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(hv)});var zt=n((OI,Ja)=>{"use strict";var R=q(),gv=Yr(),mv=Re(),Va=P(),bv=M(),Ya=T(),Ga=jt(),yv=Ma(),Ka=er(),Iv=Ba(),Sv=Mt(),Ev=lr(),Kt=R.setImmediate,Wt=R.clearImmediate,qv=R.process,Ft=R.Dispatch,Pv=R.Function,Wa=R.MessageChannel,Tv=R.String,Bt=0,$e={},Ha="onreadystatechange",je,X,Ut,Vt;Ya(function(){je=R.location});var Ht=function(r){if(bv($e,r)){var e=$e[r];delete $e[r],e()}},Gt=function(r){return function(){Ht(r)}},za=function(r){Ht(r.data)},Qa=function(r){R.postMessage(Tv(r),je.protocol+"//"+je.host)};(!Kt||!Wt)&&(Kt=function(e){Iv(arguments.length,1);var t=Va(e)?e:Pv(e),i=yv(arguments,1);return $e[++Bt]=function(){gv(t,void 0,i)},X(Bt),Bt},Wt=function(e){delete $e[e]},Ev?X=function(r){qv.nextTick(Gt(r))}:Ft&&Ft.now?X=function(r){Ft.now(Gt(r))}:Wa&&!Sv?(Ut=new Wa,Vt=Ut.port2,Ut.port1.onmessage=za,X=mv(Vt.postMessage,Vt)):R.addEventListener&&Va(R.postMessage)&&!R.importScripts&&je&&je.protocol!=="file:"&&!Ya(Qa)?(X=Qa,R.addEventListener("message",za,!1)):Ha in Ka("script")?X=function(r){Ga.appendChild(Ka("script"))[Ha]=function(){Ga.removeChild(this),Ht(r)}}:X=function(r){setTimeout(Gt(r),0)});Ja.exports={set:Kt,clear:Wt}});var es=n((_I,Za)=>{"use strict";var Xa=q(),Ov=_(),_v=Object.getOwnPropertyDescriptor;Za.exports=function(r){if(!Ov)return Xa[r];var e=_v(Xa,r);return e&&e.value}});var Qt=n((xI,ts)=>{"use strict";var rs=function(){this.head=null,this.tail=null};rs.prototype={add:function(r){var e={item:r,next:null},t=this.tail;t?t.next=e:this.head=e,this.tail=e},get:function(){var r=this.head;if(r){var e=this.head=r.next;return e===null&&(this.tail=null),r.item}}};ts.exports=rs});var os=n((wI,is)=>{"use strict";var xv=Y();is.exports=/ipad|iphone|ipod/i.test(xv)&&typeof Pebble!="undefined"});var as=n((RI,ns)=>{"use strict";var wv=Y();ns.exports=/web0s(?!.*chrome)/i.test(wv)});var ps=n((CI,ds)=>{"use strict";var fe=q(),Rv=es(),ss=Re(),Yt=zt().set,Cv=Qt(),Av=Mt(),Nv=os(),Lv=as(),Jt=lr(),us=fe.MutationObserver||fe.WebKitMutationObserver,cs=fe.document,ls=fe.process,pr=fe.Promise,ei=Rv("queueMicrotask"),le,Xt,Zt,vr,fs;ei||(Me=new Cv,Fe=function(){var r,e;for(Jt&&(r=ls.domain)&&r.exit();e=Me.get();)try{e()}catch(t){throw Me.head&&le(),t}r&&r.enter()},!Av&&!Jt&&!Lv&&us&&cs?(Xt=!0,Zt=cs.createTextNode(""),new us(Fe).observe(Zt,{characterData:!0}),le=function(){Zt.data=Xt=!Xt}):!Nv&&pr&&pr.resolve?(vr=pr.resolve(void 0),vr.constructor=pr,fs=ss(vr.then,vr),le=function(){fs(Fe)}):Jt?le=function(){ls.nextTick(Fe)}:(Yt=ss(Yt,fe),le=function(){Yt(Fe)}),ei=function(r){Me.head||le(),Me.add(r)});var Me,Fe;ds.exports=ei});var hs=n((AI,vs)=>{"use strict";vs.exports=function(r,e){try{arguments.length===1?console.error(r):console.error(r,e)}catch(t){}}});var hr=n((NI,gs)=>{"use strict";gs.exports=function(r){try{return{error:!1,value:r()}}catch(e){return{error:!0,value:e}}}});var ys=n((LI,bs)=>{"use strict";var kv=q(),Dv=P(),ms=kv.WeakMap;bs.exports=Dv(ms)&&/native code/.test(String(ms))});var gr=n((kI,Ss)=>{"use strict";var $v=dt(),jv=vt(),Is=$v("keys");Ss.exports=function(r){return Is[r]||(Is[r]=jv(r))}});var mr=n((DI,Es)=>{"use strict";Es.exports={}});var oi=n(($I,Ts)=>{"use strict";var Mv=ys(),Ps=q(),Fv=N(),Bv=ne(),ri=M(),ti=xe(),Uv=gr(),Vv=mr(),qs="Object already initialized",ii=Ps.TypeError,Gv=Ps.WeakMap,br,Be,yr,Kv=function(r){return yr(r)?Be(r):br(r,{})},Wv=function(r){return function(e){var t;if(!Fv(e)||(t=Be(e)).type!==r)throw new ii("Incompatible receiver, "+r+" required");return t}};Mv||ti.state?(k=ti.state||(ti.state=new Gv),k.get=k.get,k.has=k.has,k.set=k.set,br=function(r,e){if(k.has(r))throw new ii(qs);return e.facade=r,k.set(r,e),e},Be=function(r){return k.get(r)||{}},yr=function(r){return k.has(r)}):(Z=Uv("state"),Vv[Z]=!0,br=function(r,e){if(ri(r,Z))throw new ii(qs);return e.facade=r,Bv(r,Z,e),e},Be=function(r){return ri(r,Z)?r[Z]:{}},yr=function(r){return ri(r,Z)});var k,Z;Ts.exports={set:br,get:Be,has:yr,enforce:Kv,getterFor:Wv}});var ee=n((jI,Os)=>{"use strict";var Hv=q();Os.exports=Hv.Promise});var de=n((MI,Rs)=>{"use strict";var zv=q(),Ue=ee(),Qv=P(),Yv=yt(),Jv=kt(),Xv=x(),_s=At(),Zv=j(),ni=nt(),xs=Ue&&Ue.prototype,eh=Xv("species"),ai=!1,ws=Qv(zv.PromiseRejectionEvent),rh=Yv("Promise",function(){var r=Jv(Ue),e=r!==String(Ue);if(!e&&ni===66||Zv&&!(xs.catch&&xs.finally))return!0;if(!ni||ni<51||!/native code/.test(r)){var t=new Ue(function(a){a(1)}),i=function(a){a(function(){},function(){})},o=t.constructor={};if(o[eh]=i,ai=t.then(function(){})instanceof i,!ai)return!0}return!e&&(_s==="BROWSER"||_s==="DENO")&&!ws});Rs.exports={CONSTRUCTOR:rh,REJECTION_EVENT:ws,SUBCLASSING:ai}});var pe=n((FI,As)=>{"use strict";var Cs=V(),th=TypeError,ih=function(r){var e,t;this.promise=new r(function(i,o){if(e!==void 0||t!==void 0)throw new th("Bad Promise constructor");e=i,t=o}),this.resolve=Cs(e),this.reject=Cs(t)};As.exports.f=function(r){return new ih(r)}});var Js=n(()=>{"use strict";var oh=w(),nh=j(),qr=lr(),z=q(),me=A(),Ns=ce(),Ls=Nt(),ah=ke(),sh=qa(),uh=V(),Er=P(),ch=N(),lh=Ta(),fh=$t(),Ms=zt().set,fi=ps(),dh=hs(),ph=hr(),vh=Qt(),Fs=oi(),Pr=ee(),di=de(),Bs=pe(),Tr="Promise",Us=di.CONSTRUCTOR,hh=di.REJECTION_EVENT,gh=di.SUBCLASSING,si=Fs.getterFor(Tr),mh=Fs.set,ve=Pr&&Pr.prototype,re=Pr,Ir=ve,Vs=z.TypeError,ui=z.document,pi=z.process,ci=Bs.f,bh=ci,yh=!!(ui&&ui.createEvent&&z.dispatchEvent),Gs="unhandledrejection",Ih="rejectionhandled",ks=0,Ks=1,Sh=2,vi=1,Ws=2,Sr,Ds,Eh,$s,Hs=function(r){var e;return ch(r)&&Er(e=r.then)?e:!1},zs=function(r,e){var t=e.value,i=e.state===Ks,o=i?r.ok:r.fail,a=r.resolve,u=r.reject,f=r.domain,c,l,p;try{o?(i||(e.rejection===Ws&&Ph(e),e.rejection=vi),o===!0?c=t:(f&&f.enter(),c=o(t),f&&(f.exit(),p=!0)),c===r.promise?u(new Vs("Promise-chain cycle")):(l=Hs(c))?me(l,c,a,u):a(c)):u(t)}catch(v){f&&!p&&f.exit(),u(v)}},Qs=function(r,e){r.notified||(r.notified=!0,fi(function(){for(var t=r.reactions,i;i=t.get();)zs(i,r);r.notified=!1,e&&!r.rejection&&qh(r)}))},Ys=function(r,e,t){var i,o;yh?(i=ui.createEvent("Event"),i.promise=e,i.reason=t,i.initEvent(r,!1,!0),z.dispatchEvent(i)):i={promise:e,reason:t},!hh&&(o=z["on"+r])?o(i):r===Gs&&dh("Unhandled promise rejection",t)},qh=function(r){me(Ms,z,function(){var e=r.facade,t=r.value,i=js(r),o;if(i&&(o=ph(function(){qr?pi.emit("unhandledRejection",t,e):Ys(Gs,e,t)}),r.rejection=qr||js(r)?Ws:vi,o.error))throw o.value})},js=function(r){return r.rejection!==vi&&!r.parent},Ph=function(r){me(Ms,z,function(){var e=r.facade;qr?pi.emit("rejectionHandled",e):Ys(Ih,e,r.value)})},he=function(r,e,t){return function(i){r(e,i,t)}},ge=function(r,e,t){r.done||(r.done=!0,t&&(r=t),r.value=e,r.state=Sh,Qs(r,!0))},li=function(r,e,t){if(!r.done){r.done=!0,t&&(r=t);try{if(r.facade===e)throw new Vs("Promise can't be resolved itself");var i=Hs(e);i?fi(function(){var o={done:!1};try{me(i,e,he(li,o,r),he(ge,o,r))}catch(a){ge(o,a,r)}}):(r.value=e,r.state=Ks,Qs(r,!1))}catch(o){ge({done:!1},o,r)}}};if(Us&&(re=function(e){lh(this,Ir),uh(e),me(Sr,this);var t=si(this);try{e(he(li,t),he(ge,t))}catch(i){ge(t,i)}},Ir=re.prototype,Sr=function(e){mh(this,{type:Tr,done:!1,notified:!1,parent:!1,reactions:new vh,rejection:!1,state:ks,value:void 0})},Sr.prototype=Ns(Ir,"then",function(e,t){var i=si(this),o=ci(fh(this,re));return i.parent=!0,o.ok=Er(e)?e:!0,o.fail=Er(t)&&t,o.domain=qr?pi.domain:void 0,i.state===ks?i.reactions.add(o):fi(function(){zs(o,i)}),o.promise}),Ds=function(){var r=new Sr,e=si(r);this.promise=r,this.resolve=he(li,e),this.reject=he(ge,e)},Bs.f=ci=function(r){return r===re||r===Eh?new Ds(r):bh(r)},!nh&&Er(Pr)&&ve!==Object.prototype)){$s=ve.then,gh||Ns(ve,"then",function(e,t){var i=this;return new re(function(o,a){me($s,i,o,a)}).then(e,t)},{unsafe:!0});try{delete ve.constructor}catch(r){}Ls&&Ls(ve,Ir)}oh({global:!0,constructor:!0,wrap:!0,forced:Us},{Promise:re});ah(re,Tr,!1,!0);sh(Tr)});var te=n((VI,Xs)=>{"use strict";Xs.exports={}});var eu=n((GI,Zs)=>{"use strict";var Th=x(),Oh=te(),_h=Th("iterator"),xh=Array.prototype;Zs.exports=function(r){return r!==void 0&&(Oh.Array===r||xh[_h]===r)}});var hi=n((KI,tu)=>{"use strict";var wh=Le(),ru=Ze(),Rh=Te(),Ch=te(),Ah=x(),Nh=Ah("iterator");tu.exports=function(r){if(!Rh(r))return ru(r,Nh)||ru(r,"@@iterator")||Ch[wh(r)]}});var ou=n((WI,iu)=>{"use strict";var Lh=A(),kh=V(),Dh=G(),$h=_e(),jh=hi(),Mh=TypeError;iu.exports=function(r,e){var t=arguments.length<2?jh(r):e;if(kh(t))return Dh(Lh(t,r));throw new Mh($h(r)+" is not iterable")}});var su=n((HI,au)=>{"use strict";var Fh=A(),nu=G(),Bh=Ze();au.exports=function(r,e,t){var i,o;nu(r);try{if(i=Bh(r,"return"),!i){if(e==="throw")throw t;return t}i=Fh(i,r)}catch(a){o=!0,i=a}if(e==="throw")throw t;if(o)throw i;return nu(i),t}});var _r=n((zI,fu)=>{"use strict";var Uh=Re(),Vh=A(),Gh=G(),Kh=_e(),Wh=eu(),Hh=Ot(),uu=Je(),zh=ou(),Qh=hi(),cu=su(),Yh=TypeError,Or=function(r,e){this.stopped=r,this.result=e},lu=Or.prototype;fu.exports=function(r,e,t){var i=t&&t.that,o=!!(t&&t.AS_ENTRIES),a=!!(t&&t.IS_RECORD),u=!!(t&&t.IS_ITERATOR),f=!!(t&&t.INTERRUPTED),c=Uh(e,i),l,p,v,s,d,m,S,I=function(E){return l&&cu(l,"normal",E),new Or(!0,E)},y=function(E){return o?(Gh(E),f?c(E[0],E[1],I):c(E[0],E[1])):f?c(E,I):c(E)};if(a)l=r.iterator;else if(u)l=r;else{if(p=Qh(r),!p)throw new Yh(Kh(r)+" is not iterable");if(Wh(p)){for(v=0,s=Hh(r);s>v;v++)if(d=y(r[v]),d&&uu(lu,d))return d;return new Or(!1)}l=zh(r,p)}for(m=a?r.next:l.next;!(S=Vh(m,l)).done;){try{d=y(S.value)}catch(E){cu(l,"throw",E)}if(typeof d=="object"&&d&&uu(lu,d))return d}return new Or(!1)}});var gu=n((QI,hu)=>{"use strict";var Jh=x(),pu=Jh("iterator"),vu=!1;try{du=0,gi={next:function(){return{done:!!du++}},return:function(){vu=!0}},gi[pu]=function(){return this},Array.from(gi,function(){throw 2})}catch(r){}var du,gi;hu.exports=function(r,e){try{if(!e&&!vu)return!1}catch(o){return!1}var t=!1;try{var i={};i[pu]=function(){return{next:function(){return{done:t=!0}}}},r(i)}catch(o){}return t}});var mi=n((YI,mu)=>{"use strict";var Xh=ee(),Zh=gu(),eg=de().CONSTRUCTOR;mu.exports=eg||!Zh(function(r){Xh.all(r).then(void 0,function(){})})});var bu=n(()=>{"use strict";var rg=w(),tg=A(),ig=V(),og=pe(),ng=hr(),ag=_r(),sg=mi();rg({target:"Promise",stat:!0,forced:sg},{all:function(e){var t=this,i=og.f(t),o=i.resolve,a=i.reject,u=ng(function(){var f=ig(t.resolve),c=[],l=0,p=1;ag(e,function(v){var s=l++,d=!1;p++,tg(f,t,v).then(function(m){d||(d=!0,c[s]=m,--p||o(c))},a)}),--p||o(c)});return u.error&&a(u.value),i.promise}})});var Iu=n(()=>{"use strict";var ug=w(),cg=j(),lg=de().CONSTRUCTOR,yi=ee(),fg=U(),dg=P(),pg=ce(),yu=yi&&yi.prototype;ug({target:"Promise",proto:!0,forced:lg,real:!0},{catch:function(r){return this.then(void 0,r)}});!cg&&dg(yi)&&(bi=fg("Promise").prototype.catch,yu.catch!==bi&&pg(yu,"catch",bi,{unsafe:!0}));var bi});var Su=n(()=>{"use strict";var vg=w(),hg=A(),gg=V(),mg=pe(),bg=hr(),yg=_r(),Ig=mi();vg({target:"Promise",stat:!0,forced:Ig},{race:function(e){var t=this,i=mg.f(t),o=i.reject,a=bg(function(){var u=gg(t.resolve);yg(e,function(f){hg(u,t,f).then(i.resolve,o)})});return a.error&&o(a.value),i.promise}})});var Eu=n(()=>{"use strict";var Sg=w(),Eg=pe(),qg=de().CONSTRUCTOR;Sg({target:"Promise",stat:!0,forced:qg},{reject:function(e){var t=Eg.f(this),i=t.reject;return i(e),t.promise}})});var Ii=n((nS,qu)=>{"use strict";var Pg=G(),Tg=N(),Og=pe();qu.exports=function(r,e){if(Pg(r),Tg(e)&&e.constructor===r)return e;var t=Og.f(r),i=t.resolve;return i(e),t.promise}});var Ou=n(()=>{"use strict";var _g=w(),xg=U(),Pu=j(),wg=ee(),Tu=de().CONSTRUCTOR,Rg=Ii(),Cg=xg("Promise"),Ag=Pu&&!Tu;_g({target:"Promise",stat:!0,forced:Pu||Tu},{resolve:function(e){return Rg(Ag&&this===Cg?wg:this,e)}})});var _u=n(()=>{"use strict";Js();bu();Iu();Su();Eu();Ou()});var Cu=n(()=>{"use strict";var Ng=w(),Lg=j(),xr=ee(),kg=T(),wu=U(),Ru=P(),Dg=$t(),xu=Ii(),$g=ce(),Ei=xr&&xr.prototype,jg=!!xr&&kg(function(){Ei.finally.call({then:function(){}},function(){})});Ng({target:"Promise",proto:!0,real:!0,forced:jg},{finally:function(r){var e=Dg(this,wu("Promise")),t=Ru(r);return this.then(t?function(i){return xu(e,r()).then(function(){return i})}:r,t?function(i){return xu(e,r()).then(function(){throw i})}:r)}});!Lg&&Ru(xr)&&(Si=wu("Promise").prototype.finally,Ei.finally!==Si&&$g(Ei,"finally",Si,{unsafe:!0}));var Si});var Nu=n((dS,Au)=>{"use strict";ra();_u();Cu();var Mg=ir();Au.exports=Mg("Promise","finally")});var ku=n((pS,Lu)=>{"use strict";var Fg=Nu();Lu.exports=Fg});var $u=n((vS,Du)=>{"use strict";var Bg=ku();Du.exports=Bg});var Mu=n((hS,ju)=>{"use strict";var Ug=T();ju.exports=!Ug(function(){function r(){}return r.prototype.constructor=null,Object.getPrototypeOf(new r)!==r.prototype})});var wr=n((gS,Bu)=>{"use strict";var Vg=M(),Gg=P(),Kg=pt(),Wg=gr(),Hg=Mu(),Fu=Wg("IE_PROTO"),qi=Object,zg=qi.prototype;Bu.exports=Hg?qi.getPrototypeOf:function(r){var e=Kg(r);if(Vg(e,Fu))return e[Fu];var t=e.constructor;return Gg(t)&&e instanceof t?t.prototype:e instanceof qi?zg:null}});var Gu=n((mS,Vu)=>{"use strict";var Qg=O(),Pi=M(),Yg=Q(),Jg=_t().indexOf,Xg=mr(),Uu=Qg([].push);Vu.exports=function(r,e){var t=Yg(r),i=0,o=[],a;for(a in t)!Pi(Xg,a)&&Pi(t,a)&&Uu(o,a);for(;e.length>i;)Pi(t,a=e[i++])&&(~Jg(o,a)||Uu(o,a));return o}});var Ti=n((bS,Ku)=>{"use strict";Ku.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var Oi=n((yS,Wu)=>{"use strict";var Zg=Gu(),em=Ti();Wu.exports=Object.keys||function(e){return Zg(e,em)}});var Xu=n((IS,Ju)=>{"use strict";var zu=_(),rm=T(),Qu=O(),tm=wr(),im=Oi(),om=Q(),nm=et().f,Yu=Qu(nm),am=Qu([].push),sm=zu&&rm(function(){var r=Object.create(null);return r[2]=2,!Yu(r,2)}),Hu=function(r){return function(e){for(var t=om(e),i=im(t),o=sm&&tm(t)===null,a=i.length,u=0,f=[],c;a>u;)c=i[u++],(!zu||(o?c in t:Yu(t,c)))&&am(f,r?[c,t[c]]:t[c]);return f}};Ju.exports={entries:Hu(!0),values:Hu(!1)}});var Zu=n(()=>{"use strict";var um=w(),cm=Xu().entries;um({target:"Object",stat:!0},{entries:function(e){return cm(e)}})});var rc=n((qS,ec)=>{"use strict";Zu();var lm=Oe();ec.exports=lm.Object.entries});var ic=n((PS,tc)=>{"use strict";var fm=rc();tc.exports=fm});var Rr=n((TS,oc)=>{"use strict";var dm=ic();oc.exports=dm});var sc=n((OS,ac)=>{"use strict";var _i=_(),pm=M(),nc=Function.prototype,vm=_i&&Object.getOwnPropertyDescriptor,xi=pm(nc,"name"),hm=xi&&function(){}.name==="something",gm=xi&&(!_i||_i&&vm(nc,"name").configurable);ac.exports={EXISTS:xi,PROPER:hm,CONFIGURABLE:gm}});var cc=n(uc=>{"use strict";var mm=_(),bm=It(),ym=J(),Im=G(),Sm=Q(),Em=Oi();uc.f=mm&&!bm?Object.defineProperties:function(e,t){Im(e);for(var i=Sm(t),o=Em(t),a=o.length,u=0,f;a>u;)ym.f(e,f=o[u++],i[f]);return e}});var Ai=n((xS,gc)=>{"use strict";var qm=G(),Pm=cc(),lc=Ti(),Tm=mr(),Om=jt(),_m=er(),xm=gr(),fc=">",dc="<",Ri="prototype",Ci="script",vc=xm("IE_PROTO"),wi=function(){},hc=function(r){return dc+Ci+fc+r+dc+"/"+Ci+fc},pc=function(r){r.write(hc("")),r.close();var e=r.parentWindow.Object;return r=null,e},wm=function(){var r=_m("iframe"),e="java"+Ci+":",t;return r.style.display="none",Om.appendChild(r),r.src=String(e),t=r.contentWindow.document,t.open(),t.write(hc("document.F=Object")),t.close(),t.F},Cr,Ar=function(){try{Cr=new ActiveXObject("htmlfile")}catch(e){}Ar=typeof document!="undefined"?document.domain&&Cr?pc(Cr):wm():pc(Cr);for(var r=lc.length;r--;)delete Ar[Ri][lc[r]];return Ar()};Tm[vc]=!0;gc.exports=Object.create||function(e,t){var i;return e!==null?(wi[Ri]=qm(e),i=new wi,wi[Ri]=null,i[vc]=e):i=Ar(),t===void 0?i:Pm.f(i,t)}});var Di=n((wS,yc)=>{"use strict";var Rm=T(),Cm=P(),Am=N(),Nm=Ai(),mc=wr(),Lm=ce(),km=x(),Dm=j(),ki=km("iterator"),bc=!1,K,Ni,Li;[].keys&&(Li=[].keys(),"next"in Li?(Ni=mc(mc(Li)),Ni!==Object.prototype&&(K=Ni)):bc=!0);var $m=!Am(K)||Rm(function(){var r={};return K[ki].call(r)!==r});$m?K={}:Dm&&(K=Nm(K));Cm(K[ki])||Lm(K,ki,function(){return this});yc.exports={IteratorPrototype:K,BUGGY_SAFARI_ITERATORS:bc}});var Sc=n((RS,Ic)=>{"use strict";var jm=Di().IteratorPrototype,Mm=Ai(),Fm=Pe(),Bm=ke(),Um=te(),Vm=function(){return this};Ic.exports=function(r,e,t,i){var o=e+" Iterator";return r.prototype=Mm(jm,{next:Fm(+!i,t)}),Bm(r,o,!1,!0),Um[o]=Vm,r}});var Ac=n((CS,Cc)=>{"use strict";var Gm=w(),Km=A(),Nr=j(),wc=sc(),Wm=P(),Hm=Sc(),Ec=wr(),qc=Nt(),zm=ke(),Qm=ne(),$i=ce(),Ym=x(),Pc=te(),Rc=Di(),Jm=wc.PROPER,Xm=wc.CONFIGURABLE,Tc=Rc.IteratorPrototype,Lr=Rc.BUGGY_SAFARI_ITERATORS,Ve=Ym("iterator"),Oc="keys",Ge="values",_c="entries",xc=function(){return this};Cc.exports=function(r,e,t,i,o,a,u){Hm(t,e,i);var f=function(y){if(y===o&&s)return s;if(!Lr&&y&&y in p)return p[y];switch(y){case Oc:return function(){return new t(this,y)};case Ge:return function(){return new t(this,y)};case _c:return function(){return new t(this,y)}}return function(){return new t(this)}},c=e+" Iterator",l=!1,p=r.prototype,v=p[Ve]||p["@@iterator"]||o&&p[o],s=!Lr&&v||f(o),d=e==="Array"&&p.entries||v,m,S,I;if(d&&(m=Ec(d.call(new r)),m!==Object.prototype&&m.next&&(!Nr&&Ec(m)!==Tc&&(qc?qc(m,Tc):Wm(m[Ve])||$i(m,Ve,xc)),zm(m,c,!0,!0),Nr&&(Pc[c]=xc))),Jm&&o===Ge&&v&&v.name!==Ge&&(!Nr&&Xm?Qm(p,"name",Ge):(l=!0,s=function(){return Km(v,this)})),o)if(S={values:f(Ge),keys:a?s:f(Oc),entries:f(_c)},u)for(I in S)(Lr||l||!(I in p))&&$i(p,I,S[I]);else Gm({target:e,proto:!0,forced:Lr||l},S);return(!Nr||u)&&p[Ve]!==s&&$i(p,Ve,s,{name:o}),Pc[e]=s,S}});var Lc=n((AS,Nc)=>{"use strict";Nc.exports=function(r,e){return{value:r,done:e}}});var Mi=n((NS,Mc)=>{"use strict";var Zm=Q(),ji=xt(),kc=te(),$c=oi(),eb=J().f,rb=Ac(),kr=Lc(),tb=j(),ib=_(),jc="Array Iterator",ob=$c.set,nb=$c.getterFor(jc);Mc.exports=rb(Array,"Array",function(r,e){ob(this,{type:jc,target:Zm(r),index:0,kind:e})},function(){var r=nb(this),e=r.target,t=r.index++;if(!e||t>=e.length)return r.target=void 0,kr(void 0,!0);switch(r.kind){case"keys":return kr(t,!1);case"values":return kr(e[t],!1)}return kr([t,e[t]],!1)},"values");var Dc=kc.Arguments=kc.Array;ji("keys");ji("values");ji("entries");if(!tb&&ib&&Dc.name!=="values")try{eb(Dc,"name",{value:"values"})}catch(r){}});var Bc=n((LS,Fc)=>{"use strict";var ab=_(),sb=J(),ub=Pe();Fc.exports=function(r,e,t){ab?sb.f(r,e,ub(0,t)):r[e]=t}});var Uc=n(()=>{"use strict";var cb=w(),lb=_r(),fb=Bc();cb({target:"Object",stat:!0},{fromEntries:function(e){var t={};return lb(e,function(i,o){fb(t,i,o)},{AS_ENTRIES:!0}),t}})});var Gc=n(($S,Vc)=>{"use strict";Mi();Uc();var db=Oe();Vc.exports=db.Object.fromEntries});var Wc=n((jS,Kc)=>{"use strict";Kc.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 zc=n(()=>{"use strict";Mi();var pb=Wc(),vb=q(),hb=ke(),Hc=te();for(Dr in pb)hb(vb[Dr],Dr),Hc[Dr]=Hc.Array;var Dr});var Yc=n((BS,Qc)=>{"use strict";var gb=Gc();zc();Qc.exports=gb});var Xc=n((US,Jc)=>{"use strict";var mb=Yc();Jc.exports=mb});var Ki=n((CE,ll)=>{"use strict";var yb=Le(),Ib=String;ll.exports=function(r){if(yb(r)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return Ib(r)}});var dl=n((AE,fl)=>{"use strict";var Sb=tr(),Eb=Ki(),qb=ie(),Pb=RangeError;fl.exports=function(e){var t=Eb(qb(this)),i="",o=Sb(e);if(o<0||o===1/0)throw new Pb("Wrong number of repetitions");for(;o>0;(o>>>=1)&&(t+=t))o&1&&(i+=t);return i}});var ml=n((NE,gl)=>{"use strict";var hl=O(),Tb=Tt(),pl=Ki(),Ob=dl(),_b=ie(),xb=hl(Ob),wb=hl("".slice),Rb=Math.ceil,vl=function(r){return function(e,t,i){var o=pl(_b(e)),a=Tb(t),u=o.length,f=i===void 0?" ":pl(i),c,l;return a<=u||f===""?o:(c=a-u,l=xb(f,Rb(c/f.length)),l.length>c&&(l=wb(l,0,c)),r?o+l:l+o)}};gl.exports={start:vl(!1),end:vl(!0)}});var yl=n((LE,bl)=>{"use strict";var Cb=Y();bl.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(Cb)});var Il=n(()=>{"use strict";var Ab=w(),Nb=ml().start,Lb=yl();Ab({target:"String",proto:!0,forced:Lb},{padStart:function(e){return Nb(this,e,arguments.length>1?arguments[1]:void 0)}})});var El=n(($E,Sl)=>{"use strict";Il();var kb=ir();Sl.exports=kb("String","padStart")});var Pl=n((jE,ql)=>{"use strict";var Db=El();ql.exports=Db});var Ol=n((ME,Tl)=>{"use strict";var $b=Pl();Tl.exports=$b});var jb={};Fl(jb,{ApiEnv:()=>ue,ConnectionType:()=>sr,ContentType:()=>ar,InteractiveInterfaceClick:()=>wt,OneStat:()=>Gr,Quality:()=>nr,SeekAction:()=>ur,VERSION:()=>Ae});module.exports=Bl(jb);var Qi=B(or(),1);var ue=(u=>(u.PROD="prod",u.VK_ALIAS="vk_alias",u.VIDEOTEST="videotest",u.TEST="test",u.OKCDN="okcdn",u.AUTO="auto",u))(ue||{}),nr=(l=>(l.Q144P="mobile",l.Q240P="lowest",l.Q360P="low",l.Q480P="medium",l.Q720P="high",l.Q1080P="fullhd",l.Q1440P="quadhd",l.Q2160P="ultrahd",l.UNKNOWN="unknown",l))(nr||{}),ar=(d=>(d.MP4="mp4",d.DASH="dash",d.DASH_SEP="dash_sep",d.ONDEMAND_DASH="ondemand_dash",d.HLS="hls",d.ONDEMAND_HLS="ondemand_hls",d.WEBM="webm",d.AV1="av1",d.ONDEMAND_DASH_LIVE="ondemand_dash_live",d.ONDEMAND_HLS_LIVE="ondemand_hls_live",d.WEBRTC="webrtc",d.UNKNOWN="unknown",d.RTMP="rtmp",d))(ar||{});var sr=(i=>(i.HTTP1="http1",i.HTTP2="http2",i.HTTP3="http3",i))(sr||{});var ur=(f=>(f.SLIDER="slider",f.DOUBLE_TAP="double_tap",f.TIME_CODE="time_code",f.EPISODE="episode",f.REWIND="rewind",f.LIVE="live",f.UNKNOWN="unknown",f))(ur||{}),wt=(a=>(a.GRAPH_SHOW="iGraphShow",a.GRAPH_HIDE="iGraphHide",a.NEXT_AREA="iNextChapterArea",a.NEXT_BUTTON="iNextChapterBtn",a.WATCH_AGAIN="iWatchAgainBtn",a))(wt||{}),zn={action_play:"ap",action_play_interactive:"api",first_bytes:"fb",player_ready:"pr",first_frame:"ff",seek:"sk",watch_coverage_record:"wr",watch_coverage_live:"wl",empty_buffer:"eb",action_stop:"as",close_at_empty_buffer:"cb",content_error:"er",player_interface_click:"pc",next_movie:"nm",track_switch:"ts",failover:"fo",quality:"qt"},Qn={vsid:"si",isid:"is",vid:"vi",place:"pl",quality:"qt",cdn_host:"ch",stat_type:"st",param:"pm",vk_app_id:"va",track_code:"tc",connection_type:"cnt",connection_reused:"cr",cached_data:"cd",live:"lv",muted:"mu",mode:"mo",subtitles:"sb",failover:"fo",download_speed:"ds",manual_quality:"mq",ref_domain:"rd",direct_url:"du"},Yn={unknown:"un",mobile:"m",lowest:"ls",low:"l",medium:"md",high:"h",fullhd:"f",quadhd:"q",ultrahd:"u"},Jn={pip:"pi",fullscreen:"fs",external:"ex",prefetch:"pr",airplay:"ap",chromecast:"cc",invisible:"iv"};var Zn=require("@vkontakte/videoplayer-shared/es2015");var Ae="1.0.71-dev.b69dd23e.0",Xn="CIOPGQJGDIHBABABA",Rt={prod:"https://api.ok.ru",vk_alias:"https://api.mycdn.me",videotest:"https://videotestapi.ok.ru/api",test:"https://apitest.ok.ru",okcdn:"https://api.okcdn.ru",auto:""};var lp={apiEnv:"vk_alias",apiKey:Xn,requestRetryCount:1,firstFlushTime:5e3,flushDebounceTime:1e4,flushMaxWait:6e4,storageExpiration:36*60*60*1e3,watchCoverageInterval:15e3,disabledOperations:["quality"],disabledCustomFields:[],shorten:!0,maxLoops:100,embedUrlParams:[],useBeacon:!0,synchronizeTime:!0,debugLog:!1,clearStorageAtUnload:!0,backoff:{start:1e3,factor:1.5,max:5*60*1e3,random:.1}},ea=r=>(0,Zn.fillWithDefault)(r,lp);function Ct(){let r="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),e=new Array(36),t=0,i,o;for(o=0;o<36;o++)o===8||o===13||o===18||o===23?e[o]="-":o===14?e[o]="4":(t<=2&&(t=33554432+Math.random()*16777216|0),i=t&15,t=t>>4,e[o]=r[o===19?i&3|8:i]);return e.join("")}var h=require("@vkontakte/videoplayer-shared/es2015"),Kr=require("@vkontakte/videoplayer-shared/es2015");var $r=B($u(),1);var Zc=B(Rr(),1),el=B(Xc(),1);var rl=r=>{var o;let{operation:e,custom:t}=r,i=(0,el.default)((0,Zc.default)(t).map(([a,u])=>{var l,p,v;let f=(l=Qn[a])!=null?l:a,c=u;return u&&(a==="mode"?c=(p=Jn[u])!=null?p:u:a==="quality"&&(c=(v=Yn[u])!=null?v:u)),[f,c]}));return Qe(H({},r),{operation:(o=zn[e])!=null?o:e,custom:i})};var D=require("@vkontakte/videoplayer-shared/es2015");var Ke=class{constructor(e){this.consequentAuthErrors=0;this.authorized$=new D.ValueSubject(!1);this.params=e}authorize(e){return $(this,null,function*(){return this.authToken=e!=null?e:yield this.refreshAuthToken(),this._authorizeWithBackoff()})}logBeacon(e){let t="log.externalLog",i=this.createLogParams(e),o=this.sessionKey;if(!o)return;this.params.apiTransport.sendBeacon(t,i,o)||this.logRequest(e)}logRequest(e){return $(this,null,function*(){var u;let t="log.externalLog",i=this.createLogParams(e),o=(u=this.sessionKey)!=null?u:yield this._authorizeWithBackoff();if(!o)return;let a=(l,...p)=>$(this,[l,...p],function*(f,c=this.params.config.requestRetryCount){try{return yield this.params.apiTransport.sendRequest(t,i,o)}catch(v){if(!v||!("error_code"in v)){this.params.error$.next({id:"logRequestUnknown",category:D.ErrorCategory.NETWORK,message:`Unknown ${t} error`,thrown:v});return}let s=v==null?void 0:v.error_code;switch(s){case 102:case 103:case 104:return this.authorized$.next(!1),this.sessionKey=yield this._authorizeWithBackoff(),c>0?a(f,c-1):void 0;case 401:return this.authorized$.next(!1),this.authToken=yield this.refreshAuthToken(),this.sessionKey=yield this._authorizeWithBackoff(),c>0?a(f,c-1):void 0;default:{this.params.error$.next({id:`LogRequest#${s}`,category:D.ErrorCategory.EXTERNAL_API,message:`${t} error`,data:v});return}}}});return a(e)})}destroy(){window.clearTimeout(this.backoffTimeoutId),this.backoffTimeoutId=0}refreshAuthToken(){return $(this,null,function*(){if(this.params.refreshAuthToken)return this.refreshAuthTokenPromise||(this.refreshAuthTokenPromise=(0,$r.default)(this.params.refreshAuthToken(),()=>{this.refreshAuthTokenPromise=void 0})),this.refreshAuthTokenPromise})}createLogParams(e){return{collector:"ok.mobile.apps.video",data:JSON.stringify({application:`@vkontakte/videoplayer-statistics:${Ae}`,platform:this.params.mobile?"M_WEB":"WEB",items:this.params.config.shorten?e.map(rl):e})}}_authorizeWithBackoff(){if(!this.consequentAuthErrors)return this._authorize();let e=(0,D.getExponentialDelay)(this.consequentAuthErrors,this.params.config.backoff);return new Promise(t=>{this.backoffTimeoutId||(this.backoffTimeoutId=window.setTimeout(()=>{(0,$r.default)(this._authorize().then(t).catch(i=>this.params.error$.next({id:"AuthorizeBackoff",category:D.ErrorCategory.NETWORK,message:"Otherwise unhandled error in authorization",thrown:i})),()=>this.backoffTimeoutId=0)},e))})}_authorize(){return $(this,null,function*(){if(this.authorizePromise)return this.authorizePromise;this.sessionKey=void 0,this.authorized$.next(!1);let e="auth.anonymLogin",t={session_data:{version:2,device_id:this.params.deviceId,client_version:Ae.split("-")[0],client_type:"SDK_JS"}};return this.authToken!==void 0&&(t.session_data.auth_token=this.authToken,t.session_data.version=3),this.authorizePromise=(0,$r.default)(this.params.apiTransport.sendRequest(e,t).then(i=>{var o;return(!i||!i.session_key)&&this.params.error$.next({id:"AuthorizeFailed",category:D.ErrorCategory.EXTERNAL_API,message:"No session key",data:i}),this.sessionKey=(o=i==null?void 0:i.session_key)!=null?o:void 0,this.sessionKey}).catch(i=>$(this,null,function*(){this.sessionKey=void 0;let o=i==null?void 0:i.error_code;switch(o){case 401:return this.authToken=yield this.refreshAuthToken(),this._authorizeWithBackoff()}o?this.params.error$.next({id:`Authorize#${o}`,category:D.ErrorCategory.EXTERNAL_API,message:"authorize error",data:i}):this.params.error$.next({id:"AuthorizeUnknown",category:D.ErrorCategory.NETWORK,message:"authorize error",thrown:i})})),()=>{this.authorizePromise=void 0,this.consequentAuthErrors=this.sessionKey?0:this.consequentAuthErrors+1,this.authorized$.next(this.sessionKey!==void 0)}),this.authorizePromise})}};var jr=class{constructor(){Object.defineProperty(this,"listeners",{value:{},writable:!0,configurable:!0})}addEventListener(e,t,i){e in this.listeners||(this.listeners[e]=[]),this.listeners[e].push({callback:t,options:i})}removeEventListener(e,t){if(!(e in this.listeners))return;let i=this.listeners[e];for(let o=0,a=i.length;o<a;o++)if(i[o].callback===t){i.splice(o,1);return}}dispatchEvent(e){if(!(e.type in this.listeners))return;let i=this.listeners[e.type].slice();for(let o=0,a=i.length;o<a;o++){let u=i[o];try{u.callback.call(this,e)}catch(f){Promise.resolve().then(()=>{throw f})}u.options&&u.options.once&&this.removeEventListener(e.type,u.callback)}return!e.defaultPrevented}},be=class extends jr{constructor(){super(),this.listeners||jr.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(e){e.type==="abort"&&(this.aborted=!0,typeof this.onabort=="function"&&this.onabort.call(this,e)),super.dispatchEvent(e)}},We=class{constructor(){Object.defineProperty(this,"signal",{value:new be,writable:!0,configurable:!0})}abort(e){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 i=e;if(i===void 0)if(typeof document=="undefined")i=new Error("This operation was aborted"),i.name="AbortError";else try{i=new DOMException("signal is aborted without reason")}catch(o){i=new Error("This operation was aborted"),i.name="AbortError"}this.signal.reason=i,this.signal.dispatchEvent(t)}toString(){return"[object AbortController]"}};typeof Symbol!="undefined"&&Symbol.toStringTag&&(We.prototype[Symbol.toStringTag]="AbortController",be.prototype[Symbol.toStringTag]="AbortSignal");function Mr(r){return r.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL?(console.log("__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL=true is set, will force install polyfill"),!0):typeof r.Request=="function"&&!r.Request.prototype.hasOwnProperty("signal")||!r.AbortController}function Fi(r){typeof r=="function"&&(r={fetch:r});let{fetch:e,Request:t=e.Request,AbortController:i,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:o=!1}=r;if(!Mr({fetch:e,Request:t,AbortController:i,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:o}))return{fetch:e,Request:a};let a=t;(a&&!a.prototype.hasOwnProperty("signal")||o)&&(a=function(l,p){let v;p&&p.signal&&(v=p.signal,delete p.signal);let s=new t(l,p);return v&&Object.defineProperty(s,"signal",{writable:!1,enumerable:!1,configurable:!0,value:v}),s},a.prototype=t.prototype);let u=e;return{fetch:(c,l)=>{let p=a&&a.prototype.isPrototypeOf(c)?c.signal:l?l.signal:void 0;if(p){let v;try{v=new DOMException("Aborted","AbortError")}catch(d){v=new Error("Aborted"),v.name="AbortError"}if(p.aborted)return Promise.reject(v);let s=new Promise((d,m)=>{p.addEventListener("abort",()=>m(v),{once:!0})});return l&&l.signal&&delete l.signal,Promise.race([s,u(c,l)])}return u(c,l)},Request:a}}var He=Mr({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}),tl=He?Fi({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}):void 0,Bi=He?tl.fetch:window.fetch,uE=He?tl.Request:window.Request,cE=He?We:window.AbortController,lE=He?be:window.AbortSignal;var il=B(or(),1),ol=B(Rr(),1),W=require("@vkontakte/videoplayer-shared/es2015");var ze=class{constructor(e){this.params=e,this.apiKey=e.config.apiKey,this.apiEnv=e.config.apiEnv,this.apiBaseUrl=Rt[this.apiEnv],this.timeSynchronisation=e.timeSynchronisation,this.isApiBaseUrlFetched=!1}resolveApiBaseUrl(){return $(this,null,function*(){var e;if(this.apiEnv!=="auto"||this.isApiBaseUrlFetched)return this.apiBaseUrl;try{let t=atob("aHR0cHM6Ly9kbnMuZ29vZ2xlL3Jlc29sdmU/bmFtZT12aWRlby5fZW5kcG9pbnQub2sucnUmdHlwZT1UWFQ="),o=yield(yield Bi(t,{method:"GET",mode:"cors",cache:"no-cache"})).json(),a=(e=o==null?void 0:o.Answer[0])==null?void 0:e.data;if(!a)throw new Error("Wrong DNS response");return a}catch(t){return this.params.error$.next({id:"OneStat:ApiTransport:resolveApiBaseUrl",category:W.ErrorCategory.NETWORK,message:"Unhandled resolve api base url error",thrown:t}),Rt.vk_alias}finally{this.isApiBaseUrlFetched=!0}})}sendBeacon(e,t,i){if(!window.Blob||!window.navigator.sendBeacon)return!1;let o=this._prepareQueryParams({method:e,queryParams:t,sessionKey:i}),a=new window.Blob([o.toString()],{type:"application/x-www-form-urlencoded"});try{return window.navigator.sendBeacon(`${this.apiBaseUrl}/fb.do`,a)}catch(u){this.params.error$.next({id:"OneStat:ApiTransport:sendBeacon",category:W.ErrorCategory.NETWORK,message:"Unhandled beacon error",thrown:u,data:{method:e,params:t}})}return!1}sendRequest(e,t,i){return $(this,null,function*(){let o=(0,W.now)(),a=u=>{if(u instanceof TypeError&&(0,il.default)(["Failed to fetch","NetworkError when attempting to fetch resource."],u.message)){this.params.error$.next({id:"Network",category:W.ErrorCategory.NETWORK,message:"Request failed",thrown:u});return}this.params.error$.next({id:"OneStat:ApiTransport:sendRequest",category:W.ErrorCategory.NETWORK,message:"Unhandled request error",thrown:u,data:{method:e,params:t,sessionKey:i,time:(0,W.now)()-o}})};return this.apiBaseUrl=yield this.resolveApiBaseUrl(),Bi(`${this.apiBaseUrl}/fb.do`,{method:"post",headers:{"Content-type":"application/x-www-form-urlencoded"},body:this._prepareQueryParams({method:e,queryParams:t,sessionKey:i})}).then(u=>{var p,v;let f=Number(u.headers.get("content-length"))===0,c=new Date((p=u.headers.get("date"))!=null?p:"").getTime(),l=(0,W.now)()-o;if(isFinite(c)&&((v=this.timeSynchronisation)==null||v.addServerTime(c,l)),!f)return u.json().then(s=>Object.prototype.hasOwnProperty.call(s,"error_msg")?Promise.reject(s):s,a)},a)})}_prepareQueryParams(e){let t=new URLSearchParams({format:"JSON",method:e.method,application_key:this.apiKey});return e.sessionKey!==void 0&&t.append("session_key",e.sessionKey),(0,ol.default)(e.queryParams).forEach(([i,o])=>t.append(i,typeof o=="string"?o:JSON.stringify(o))),t}};var nl=B(or(),1),al=B(Rr(),1),C=require("@vkontakte/videoplayer-shared/es2015");var Fr="onestat_events",Ui=r=>e=>e.timestamp+r>=(0,C.now)(),Br=class{constructor(e){this.unsaltedStorage=[];this.isPaused=!1;this.isUrgent=e=>{let{operation:t}=e;return(0,nl.default)(["action_play","watch_coverage_record","watch_coverage_live"],t)};this.params=e,this.api=e.api,this.error$=e.error$,this.userSalt=e.userSalt,this.loggerDebugLog=e.debugLogger.createComponentLog("stat logger"),this.firstFlush=(0,C.debounceFn)(()=>this.safeFlush(),this.params.config.firstFlushTime,{maxWait:this.params.config.firstFlushTime});let t=C.safeStorage.isPersistent()?this.params.config.flushMaxWait:0;this.debouncedFlush=(0,C.debounceFn)(()=>this.safeFlush(),this.params.config.flushDebounceTime,{maxWait:t}),this.subscription=this.api.authorized$.subscribe(i=>{i&&this.debouncedFlush()}),this.housekeepStorage()}safeFlush(){var e;try{this.flush()}catch(t){this.error$.next({id:"LoggerError",category:C.ErrorCategory.WTF,message:(e=String(t))!=null?e:"Unknown logger error",thrown:t})}}readFromStorage(){let e=C.safeStorage.get(Fr);try{return e?JSON.parse(e):{}}catch(t){}return{}}addToStorage(e){var a;if(!this.userSalt){this.unsaltedStorage.push(e);return}let t=this.readFromStorage(),o=((a=t[this.userSalt])!=null?a:[]).filter(Ui(this.params.config.storageExpiration));C.safeStorage.set(Fr,JSON.stringify(Qe(H({},t),{[this.userSalt]:[...o,e]})))}getFromStorage(){var i;return this.userSalt?((i=this.readFromStorage()[this.userSalt])!=null?i:[]).filter(Ui(this.params.config.storageExpiration)):this.unsaltedStorage}markStorageSent(){if(!this.userSalt){this.unsaltedStorage=[];return}let e=this.readFromStorage();delete e[this.userSalt],C.safeStorage.set(Fr,JSON.stringify(e))}housekeepStorage(){let e=this.readFromStorage();for(let[t,i]of(0,al.default)(e)){let o=i.filter(Ui(this.params.config.storageExpiration));o.length?e[t]=o:delete e[t],this.loggerDebugLog({message:`${i.length} retrieved from storage, ${o.length} of them actual`})}C.safeStorage.set(Fr,JSON.stringify(e))}log(e){this.addToStorage(e),!this.isPaused&&(this.isUrgent(e)?this.flush():this.lastVsid!==e.custom.vsid?this.firstFlush():this.debouncedFlush(),this.lastVsid=e.custom.vsid)}flush({wantBeacon:e,clearStorage:t}={wantBeacon:!1,clearStorage:!0}){let i=this.getFromStorage();i.length!==0&&(this.api.authorized$.getValue()?(e&&this.params.config.useBeacon?(this.loggerDebugLog({message:`Flushing ${i.length} events through beacon`}),this.api.logBeacon(i)):(this.loggerDebugLog({message:`Flushing ${i.length} events`}),this.api.logRequest(i)),t&&this.markStorageSent()):this.api.authorize(),this.firstFlush.cancel(),this.debouncedFlush.cancel())}pause(){this.isPaused=!0,this.debouncedFlush.cancel()}resume(){this.isPaused=!1,this.debouncedFlush()}destroy(){this.subscription.unsubscribe(),this.firstFlush.cancel(),this.debouncedFlush.cancel()}};var g=require("@vkontakte/videoplayer-core/es2015"),Vi=require("@vkontakte/videoplayer-shared/es2015");var sl=r=>r&&{[g.VideoQuality.INVARIANT]:"unknown",[g.VideoQuality.Q_144P]:"mobile",[g.VideoQuality.Q_240P]:"lowest",[g.VideoQuality.Q_360P]:"low",[g.VideoQuality.Q_480P]:"medium",[g.VideoQuality.Q_576P]:"unknown",[g.VideoQuality.Q_720P]:"high",[g.VideoQuality.Q_1080P]:"fullhd",[g.VideoQuality.Q_1440P]:"quadhd",[g.VideoQuality.Q_2160P]:"ultrahd",[g.VideoQuality.Q_4320P]:"unknown"}[r],Gi=r=>r&&{[g.HttpConnectionType.HTTP1]:"http1",[g.HttpConnectionType.HTTP2]:"http2",[g.HttpConnectionType.QUIC]:"http3"}[r],ul=r=>{if(r!==void 0)switch(r){case g.VideoFormat.MPEG:return"mp4";case g.VideoFormat.DASH:case g.VideoFormat.DASH_LIVE:case g.VideoFormat.DASH_STREAMS:return"dash";case g.VideoFormat.DASH_SEP:return"dash_sep";case g.VideoFormat.DASH_ONDEMAND:return"ondemand_dash";case g.VideoFormat.DASH_WEBM:case g.VideoFormat.DASH_LIVE_WEBM:return"webm";case g.VideoFormat.DASH_WEBM_AV1:return"av1";case g.VideoFormat.DASH_LIVE_CMAF:return"ondemand_dash_live";case g.VideoFormat.HLS:case g.VideoFormat.HLS_LIVE:return"hls";case g.VideoFormat.HLS_ONDEMAND:return"ondemand_hls";case g.VideoFormat.HLS_LIVE_CMAF:return"ondemand_hls_live";case g.VideoFormat.WEB_RTC_LIVE:return"webrtc";default:return(0,Vi.assertNever)(r)}},Ur=r=>{if(r!==void 0)switch(r){case g.Surface.NONE:case g.Surface.INLINE:return;case g.Surface.FULLSCREEN:return"fullscreen";case g.Surface.SECOND_SCREEN:return"chromecast";case g.Surface.PIP:return"pip";case g.Surface.INVISIBLE:return"invisible";default:return(0,Vi.assertNever)(r)}},cl=r=>{switch(r){case"slow-2g":return"poor";case"2g":return"poor";case"3g":return"good";case"4g":return"excellent"}};var Vr=class{constructor(e){this.offset=void 0;this.offset=e}getOffset(){var e;return(e=this.offset)!=null?e:0}setOffset(e){this.offset=e}now(){var e;return Date.now()+((e=this.offset)!=null?e:0)}date(e=new Date){var t;return e.setTime(e.getTime()+((t=this.offset)!=null?t:0)),e}addServerTime(e,t){let i=Date.now(),o=e-i-t/2;if(Math.abs(o)<1e3){this.offset=0;return}this.offset===void 0?this.offset=Math.round(o):this.offset=Math.round(.2*o+(1-.2)*this.offset)}};var Wi=B(Ol(),1);var _l=()=>(0,Wi.default)(Math.floor(Math.random()*zr(2,32)).toString(36),7,"0"),xl=()=>(0,Wi.default)(Math.floor(Math.random()*zr(2,64)).toString(36),13,"0");var Hi=require("@vkontakte/videoplayer-core/es2015"),b=require("@vkontakte/videoplayer-shared/es2015"),wl=(r,e)=>new b.Observable(t=>{let i=new b.Subscription,o=(0,b.merge)((0,b.fromEvent)(window,"beforeunload"),r.events.willDestruct$),a=new b.ValueSubject(void 0),u;i.add(r.info.isLive$.pipe((0,b.filterChanged)()).subscribe(F=>{u&&(u.unsubscribe(),a.next(void 0)),F?u=r.info.liveTime$.pipe((0,b.map)(Hr=>Hr&&Hr/1e3)).subscribe(a):u=r.info.position$.subscribe(a),i.add(u)}));let{playing$:f,paused$:c}=r.events,l=r.events.willSeek$.pipe((0,b.filter)(()=>r.info.playbackState$.getValue()===Hi.PlaybackState.PLAYING)),p=r.events.seeked$.pipe((0,b.filter)(()=>r.info.playbackState$.getValue()===Hi.PlaybackState.PLAYING)),v=!1,s=new b.Subject;i.add(l.subscribe(()=>{v||s.next(),v=!0})),i.add(p.subscribe(()=>v=!1));let d=new b.Subject,m=new b.Subject,S=(0,b.merge)(f,p,d),I=(0,b.merge)(c,s,o,r.events.looped$,m),y,E=()=>y=a.getValue(),ye=()=>{let F=a.getValue();(0,b.isNullable)(y)||y===F||(0,b.isNullable)(F)||(t.next({from:y,to:F}),y=void 0)},Wr=()=>{m.next(),d.next()};if(i.add(S.subscribe(E)),i.add(I.subscribe(ye)),e.forceInterval&&isFinite(e.forceInterval)){let F=0;i.add(S.subscribe(()=>F=window.setTimeout(Wr,e.forceInterval))),i.add(I.subscribe(()=>window.clearTimeout(F)))}return i});var Al="_one-stat_",Rl=`${Al}uuid`,Cl=`${Al}deviceId`,zi=()=>{let r=new h.Subscription;return{subscription:r,subscribe:(e,t)=>{e&&r.add(e.subscribe(t))}}},Gr=class{constructor(e,t){this.subscription=new h.Subscription;this.debugLogger=new Kr.Logger;this.oneStatDebugLog=this.debugLogger.createComponentLog("onestat");this.loopCounter=0;this.disabled=!1;this.vsid$=new h.ValueSubject(void 0);this.isid$=new h.ValueSubject(void 0);this.seekAction$=new h.ValueSubject("unknown");var l,p,v;this.statContext=e,this.config=ea((l=t.config)!=null?l:{}),(0,h.isNonNullable)(t.apiEnv)&&(this.config.apiEnv=t.apiEnv),this.config.synchronizeTime&&(this.timeSynchronisation=new Vr);let i=new h.Subject;this.experimental={error$:i},h.safeStorage.get(Rl)&&h.safeStorage.remove(Rl);let a=h.safeStorage.get(Cl);this.statContext.deviceId?this.deviceId=this.statContext.deviceId:a?this.deviceId=a:(this.deviceId=Ct(),h.safeStorage.set(Cl,this.deviceId)),this.resetViewSession(),t.useIsid&&this.isid$.next((p=t.isid)!=null?p:xl());let u=new ze({config:this.config,error$:i,timeSynchronisation:this.timeSynchronisation});this.api=new Ke({config:this.config,apiTransport:u,refreshAuthToken:t.refreshAuthToken,mobile:(v=this.statContext.mobile)!=null?v:!1,deviceId:this.deviceId,error$:i}),this.logger=new Br({config:this.config,debugLogger:this.debugLogger,api:this.api,error$:i,userSalt:t.userSalt});let{isEmbed:f,host:c}=(0,Kr.detectEmbed)();this.isEmbed=f,this.embedParent=c,this.subscribe()}updateContext(e){this.statContext=H(H({},this.statContext),e)}attachTo(e){let t=new h.Subscription,i=(s,d)=>t.add(s.subscribe(d));i(e.events.willStart$,()=>{let s=e.info.position$.getValue();this.logActionPlay({position:s}),this.statContext.projectId&&this.logActionPlayInteractive()}),i(e.events.looped$,()=>{this.resetViewSession(),++this.loopCounter>this.config.maxLoops&&(this.disabled=!0),this.logActionPlay({position:e.info.position$.getValue()})}),i(e.events.seeked$,()=>{this.logSeek({action:this.seekAction$.getValue(),time:e.info.position$.getValue()}),this.seekAction$.next("unknown")}),i(e.events.paused$,()=>{this.logPause({position:e.info.position$.getValue()})}),i(e.events.willResume$,()=>{this.logPlay()}),i(e.events.started$,()=>{this.statContext.clip&&this.logWatchCoverageRecord({start:0,end:0})}),i(e.events.playing$,()=>{this.logPlaying()}),i(wl(e,{forceInterval:this.config.watchCoverageInterval}),s=>{let d=e.info.isLive$.getValue(),m={start:parseFloat(s.from.toFixed(3)),end:parseFloat(s.to.toFixed(3))};d?this.logWatchCoverageLive(m):this.logWatchCoverageRecord(m)});let o;i(e.info.isStalled$,s=>{s?o=(0,h.now)():((0,h.isNonNullable)(o)&&this.logEmptyBuffer({duration:(0,h.now)()-o}),o=void 0)});let a=!1;t.add(e.events.fatalError$.pipe((0,h.once)()).subscribe(()=>a=!0)),i(e.events.willStop$,()=>{if(e.info.isStalled$.getValue()){let d=(0,h.isNonNullable)(o)?(0,h.now)()-o:void 0;this.logCloseAtEmptyBuffer({duration:d!=null?d:0}),o=void 0}else a||this.logActionStop()}),i(e.events.managedError$,({id:s})=>{this.logError({fatal:!1,errorType:s})}),i(e.events.fatalError$,({id:s})=>{this.logError({fatal:!0,errorType:s})});let u,f,c=!1;i(e.events.firstBytes$,s=>{u=(0,h.now)(),this.logFirstBytes({time:s})}),i(e.events.willStart$,()=>f=(0,h.now)()),i(e.info.currentBuffer$,s=>{!c&&s&&s.end-s.start>0&&(0,h.isNonNullable)(u)&&(this.logPlayerReady({duration:(0,h.now)()-u}),c=!0)}),i(e.events.firstFrame$,()=>{(0,h.isNonNullable)(u)&&!c&&(this.logPlayerReady({duration:(0,h.now)()-u}),c=!0),(0,h.isNonNullable)(f)&&this.logFirstFrame({time:(0,h.now)()-f})});let l;i(e.info.currentVideoStream$,s=>{s&&(l&&s.id!==l&&this.logTrackSwitch(s),l=s.id)});let p;i(e.info.currentAudioStream$,s=>{s&&(p&&s.id!==p&&this.logTrackSwitch(s),p=s.id)}),i(e.info.atLiveEdge$,s=>this.updateContext({liveEdge:s})),i((0,h.combine)({muted:e.info.muted$,volume:e.info.volume$}),({muted:s,volume:d})=>this.updateContext({audible:!s&&d>0})),i(e.info.currentQuality$,s=>{let d=sl(s);this.updateContext({quality:d}),d&&this.logQuality(d)}),i(e.info.isAutoQualityEnabled$,s=>this.updateContext({autoQuality:s})),i(e.info.currentFormat$,s=>this.updateContext({contentType:ul(s)})),i(e.info.currentPlaybackRate$,s=>this.updateContext({rate:s})),i(e.info.is3DVideo$,s=>this.updateContext({is3d:s}));let v;return i(e.info.hostname$,s=>{let d=v!==void 0&&v!==s;this.updateContext({cdnHostname:s,failover:d}),d&&this.logFailover(s),v=s}),i(e.info.throughputEstimation$,s=>this.updateContext({downloadSpeed:s})),i(e.info.httpConnectionType$,s=>{this.statContext.firstConnectionType||this.updateContext({firstConnectionType:Gi(s)}),this.updateContext({connectionType:Gi(s)})}),i(e.info.httpConnectionReused$,s=>{(0,h.isNullable)(this.statContext.firstConnectionReused)&&this.updateContext({firstConnectionReused:s}),this.updateContext({connectionReused:s})}),i(e.info.surface$,s=>this.updateContext({mode:Ur(s)})),i((0,h.combine)({current:e.info.currentTextTrack$,available:e.info.availableTextTracks$}),({current:s,available:d})=>{let m=d.find(({id:I})=>I===s),S=m&&(m.isAuto?`${m.language}_auto`:m.language);this.updateContext({subtitles:S})}),this.player=e,this.uiEvents&&this.attachToUi(this.uiEvents),this.resubscribeBeforeunload(),this.subscription.add(t),t}attachToUi(e){this.uiEvents=e;let{subscription:t,subscribe:i}=zi();return this.player&&(i(e.actionRewind$,()=>{this.player&&(this.resetViewSession(),this.logActionPlay({position:this.player.info.position$.getValue()}))}),i(e.actionSeek$,this.seekAction$),i(e.inPiP$,o=>{var u;let a=o?"pip":Ur((u=this.player)==null?void 0:u.info.surface$.getValue());this.updateContext({mode:a})}),i(e.inFullscreen$,o=>{var u;let a=o?"fullscreen":Ur((u=this.player)==null?void 0:u.info.surface$.getValue());this.updateContext({mode:a})}),i(e.actionSetSubtitle$,o=>this.updateContext({subtitles:o})),i(e.nextMovie$,o=>this.logNextMovie(o)),this.resubscribeBeforeunload(),this.subscription.add(t)),t}attachToAds(e){let{subscription:t,subscribe:i}=zi();return i(e.slotRequested$,()=>this.logAdSlotRequest()),i(e.started$,o=>this.logAdStarted(o)),i(e.paused$,()=>this.logAdPaused()),i(e.resumed$,()=>this.logAdResumed()),i(e.ended$,()=>this.logAdEnded()),i(e.skipped$,()=>this.logAdSkipped()),i(e.clicked$,()=>this.logAdClicked()),i(e.error$,o=>this.logError({errorType:o,fatal:!1})),this.resubscribeBeforeunload(),this.subscription.add(t),t}attachToInteractive(e){let{subscription:t,subscribe:i}=zi();return i(e.click$,o=>this.logInterfaceClick(o)),i(e.nextMovie$,o=>this.logNextMovie(o)),this.resubscribeBeforeunload(),this.subscription.add(t),t}authorize(e){return this.api.authorize(e)}pause(){this.logger.pause(),this.oneStatDebugLog({message:"paused"})}resume(){this.logger.resume(),this.oneStatDebugLog({message:"resumed"})}destroy(){this.logger.flush(),this.subscription.unsubscribe(),this.api.destroy(),this.logger.destroy()}resetViewSession(){this.oneStatDebugLog({message:"VSID reset"}),this.vsid$.next(_l())}getDeviceId(){return this.deviceId}setFieldBlacklist(){}logInited(){}logReady(e){this.log({operation:"player_ready",param:String(e.time)})}logStarted(...e){this.logActionPlay(...e)}logPlay(){this.log({operation:"play_toggle"})}logPlaying(){this.log({operation:"playing"})}logPause(e){this.log({operation:"pause",param:String(Math.round(e.position))})}logSeek(e){this.log({operation:"seek",param:e.action,time:e.time})}logFirstBytes(e){this.log({operation:"first_bytes",param:String(e.time)})}logFirstFrame(e){this.log({operation:"first_frame",param:String(e.time)})}logError(e){this.log({operation:"content_error",param:`${e.fatal?"fatal":"recoverable"}_${e.errorType}`})}logWatchCoverageRecord(e){this.log({operation:"watch_coverage_record",param:`${e.start}-${e.end}`},{in_history:this.statContext.inHistory?1:void 0})}logWatchCoverageLive(e){var a,u;let t=(u=(a=this.timeSynchronisation)==null?void 0:a.getOffset())!=null?u:0,i=e.start+t,o=e.end+t;this.log({operation:"watch_coverage_live",param:`${i}-${o}`},{in_history:this.statContext.inHistory?1:void 0})}logEmptyBuffer(e){this.log({operation:"empty_buffer",param:String(e.duration)})}logDownloadSpeed(){}logAdSlotRequest(){this.log({operation:"adv",param:"slot_request"})}logAdStarted(e){this.log({operation:"adv",param:e})}logAdPaused(){this.log({operation:"adv",param:"pause"})}logAdResumed(){this.log({operation:"adv",param:"resume"})}logAdEnded(){this.log({operation:"adv",param:"ended"})}logAdSkipped(){this.log({operation:"adv",param:"skip"})}logAdClicked(){this.log({operation:"adv",param:"click"})}logInterfaceClick(e){this.log({operation:"player_interface_click",param:e})}logNextMovie(e){this.log({operation:"next_movie",param:String(e)})}subscribe(){this.resubscribeBeforeunload();let e=window.navigator.connection;e&&"onchange"in e&&"effectiveType"in e&&this.subscription.add((0,h.merge)((0,h.fromEvent)(e,"change"),(0,h.observableFrom)(["init"])).subscribe(()=>this.updateContext({network:cl(e.effectiveType)}))),this.config.debugLog&&this.debugLogger.log$.subscribe(t=>{console.debug("%c stat ","background:#fa6470;",`component: ${t.component}.`,t.message)})}resubscribeBeforeunload(){var e;(e=this.beforeunloadSubscription)==null||e.unsubscribe(),this.beforeunloadSubscription=(0,h.fromEvent)(window,"beforeunload").subscribe(()=>this.logger.flush({wantBeacon:!0,clearStorage:this.config.clearStorageAtUnload})),this.subscription.add(this.beforeunloadSubscription)}logPlayerReady(e){this.log({operation:"player_ready",param:String(Math.round(e.duration))})}logActionPlay(e){this.log({operation:"action_play",param:String(Math.round(e.position))})}logActionPlayInteractive(){this.statContext.projectId&&this.log({operation:"action_play_interactive",param:String(this.statContext.movieId)},{vid:this.statContext.projectId})}logFailover(e){this.log({operation:"failover",param:e})}logCloseAtEmptyBuffer(e){this.log({operation:"close_at_empty_buffer",param:String(Math.round(e.duration))})}logActionStop(){this.log({operation:"action_stop"})}logTrackSwitch(e){this.log({operation:"track_switch",param:e.id})}logQuality(e){this.log({operation:"quality",param:e})}log(e,t={}){if(this.disabled){this.oneStatDebugLog({message:`operation ${e.operation} but statistics is disabled`});return}if((0,Qi.default)(this.config.disabledOperations,e.operation)){this.oneStatDebugLog({message:`operation ${e.operation} but it is disabled`});return}this.oneStatDebugLog({message:`operation ${e.operation} ${e.param}`});let i=this.createLogItem(e,t);this.logger.log(i)}createLogItem({operation:e,param:t,time:i},o={}){var d,m,S,I,y,E;let a=(m=(d=this.timeSynchronisation)==null?void 0:d.now())!=null?m:(0,h.now)(),u=this.vsid$.getValue();(0,h.assertNonNullable)(u);let f=this.isid$.getValue(),c=e==="empty_buffer"||e==="close_at_empty_buffer"?this.statContext.connectionType:this.statContext.firstConnectionType,l=this.statContext.firstConnectionReused,p,v;if(this.isEmbed||this.statContext.place==="embed"){p=this.embedParent;let ye=[...new URLSearchParams(location.search).entries()].filter(([Wr,F])=>(0,Qi.default)(this.config.embedUrlParams,Wr));v=new URLSearchParams(ye).toString()}else this.statContext.place==="direct"&&(this.statContext.refDomain?p=(I=(S=(0,h.createURL)(this.statContext.refDomain))==null?void 0:S.hostname)!=null?I:this.statContext.refDomain:document.referrer&&(p=(E=(y=(0,h.createURL)(document.referrer))==null?void 0:y.hostname)!=null?E:document.referrer),v=location.href.substring(0,1024));let s=H({vsid:u,isid:f,vid:this.statContext.movieId,ct:this.statContext.contentType,place:this.isEmbed?"embed":this.statContext.place,quality:this.statContext.quality,cdn_host:this.statContext.cdnHostname,stat_type:this.statContext.autoplay===!0?"auto":this.statContext.autoplay===!1?"":void 0,param:t,vk_app_id:this.statContext.vkAppId,track_code:this.statContext.trackCode,connection_type:c,connection_reused:l===!0?1:l===!1?0:void 0,cached_data:this.statContext.cached===!0?1:this.statContext.cached===!1?0:void 0,live:this.statContext.liveEdge?1:void 0,muted:this.statContext.audible===!1?1:void 0,mode:this.statContext.mode,subtitles:this.statContext.subtitles,download_speed:this.statContext.downloadSpeed,manual_quality:this.statContext.autoQuality?void 0:1,ref_domain:p,direct_url:v,rate:this.statContext.rate===1||(0,h.isNullable)(this.statContext.rate)?void 0:this.statContext.rate.toFixed(2),view_360:this.statContext.is3d?1:void 0,aid:this.statContext.albumId,vk_playlist_id:this.statContext.vkPlaylistId},o);for(let ye of this.config.disabledCustomFields)delete s[ye];return{operation:e,type:1,time:i,network:this.statContext.network,timestamp:a,custom:s}}};
|
|
6
|
+
"use strict";var kl=Object.create;var qe=Object.defineProperty,Dl=Object.defineProperties,$l=Object.getOwnPropertyDescriptor,jl=Object.getOwnPropertyDescriptors,Ml=Object.getOwnPropertyNames,Yi=Object.getOwnPropertySymbols,Fl=Object.getPrototypeOf,Xi=Object.prototype.hasOwnProperty,Bl=Object.prototype.propertyIsEnumerable;var zr=Math.pow,Ji=(r,e,t)=>e in r?qe(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,B=(r,e)=>{for(var t in e||(e={}))Xi.call(e,t)&&Ji(r,t,e[t]);if(Yi)for(var t of Yi(e))Bl.call(e,t)&&Ji(r,t,e[t]);return r},ae=(r,e)=>Dl(r,jl(e));var n=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),Ul=(r,e)=>{for(var t in e)qe(r,t,{get:e[t],enumerable:!0})},Zi=(r,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of Ml(e))!Xi.call(r,o)&&o!==t&&qe(r,o,{get:()=>e[o],enumerable:!(i=$l(e,o))||i.enumerable});return r};var U=(r,e,t)=>(t=r!=null?kl(Fl(r)):{},Zi(e||!r||!r.__esModule?qe(t,"default",{value:r,enumerable:!0}):t,r)),Vl=r=>Zi(qe({},"__esModule",{value:!0}),r);var j=(r,e,t)=>new Promise((i,o)=>{var a=c=>{try{d(t.next(c))}catch(l){o(l)}},u=c=>{try{d(t.throw(c))}catch(l){o(l)}},d=c=>c.done?i(c.value):Promise.resolve(c.value).then(a,u);d((t=t.apply(r,e)).next())});var q=n((Qr,eo)=>{"use strict";var Pe=function(r){return r&&r.Math===Math&&r};eo.exports=Pe(typeof globalThis=="object"&&globalThis)||Pe(typeof window=="object"&&window)||Pe(typeof self=="object"&&self)||Pe(typeof global=="object"&&global)||Pe(typeof Qr=="object"&&Qr)||function(){return this}()||Function("return this")()});var T=n((Ub,ro)=>{"use strict";ro.exports=function(r){try{return!!r()}catch(e){return!0}}});var Te=n((Vb,to)=>{"use strict";var Gl=T();to.exports=!Gl(function(){var r=function(){}.bind();return typeof r!="function"||r.hasOwnProperty("prototype")})});var Yr=n((Gb,ao)=>{"use strict";var Kl=Te(),no=Function.prototype,io=no.apply,oo=no.call;ao.exports=typeof Reflect=="object"&&Reflect.apply||(Kl?oo.bind(io):function(){return oo.apply(io,arguments)})});var O=n((Kb,co)=>{"use strict";var so=Te(),uo=Function.prototype,Jr=uo.call,Wl=so&&uo.bind.bind(Jr,Jr);co.exports=so?Wl:function(r){return function(){return Jr.apply(r,arguments)}}});var Oe=n((Wb,fo)=>{"use strict";var lo=O(),Hl=lo({}.toString),zl=lo("".slice);fo.exports=function(r){return zl(Hl(r),8,-1)}});var Xr=n((Hb,po)=>{"use strict";var Ql=Oe(),Yl=O();po.exports=function(r){if(Ql(r)==="Function")return Yl(r)}});var P=n((zb,vo)=>{"use strict";var Zr=typeof document=="object"&&document.all;vo.exports=typeof Zr=="undefined"&&Zr!==void 0?function(r){return typeof r=="function"||r===Zr}:function(r){return typeof r=="function"}});var _=n((Qb,ho)=>{"use strict";var Jl=T();ho.exports=!Jl(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var N=n((Yb,go)=>{"use strict";var Xl=Te(),Xe=Function.prototype.call;go.exports=Xl?Xe.bind(Xe):function(){return Xe.apply(Xe,arguments)}});var et=n(yo=>{"use strict";var mo={}.propertyIsEnumerable,bo=Object.getOwnPropertyDescriptor,Zl=bo&&!mo.call({1:2},1);yo.f=Zl?function(e){var t=bo(this,e);return!!t&&t.enumerable}:mo});var _e=n((Xb,Io)=>{"use strict";Io.exports=function(r,e){return{enumerable:!(r&1),configurable:!(r&2),writable:!(r&4),value:e}}});var Eo=n((Zb,So)=>{"use strict";var ef=O(),rf=T(),tf=Oe(),rt=Object,of=ef("".split);So.exports=rf(function(){return!rt("z").propertyIsEnumerable(0)})?function(r){return tf(r)==="String"?of(r,""):rt(r)}:rt});var xe=n((ey,qo)=>{"use strict";qo.exports=function(r){return r==null}});var se=n((ry,Po)=>{"use strict";var nf=xe(),af=TypeError;Po.exports=function(r){if(nf(r))throw new af("Can't call method on "+r);return r}});var Y=n((ty,To)=>{"use strict";var sf=Eo(),uf=se();To.exports=function(r){return sf(uf(r))}});var L=n((iy,Oo)=>{"use strict";var cf=P();Oo.exports=function(r){return typeof r=="object"?r!==null:cf(r)}});var we=n((oy,_o)=>{"use strict";_o.exports={}});var V=n((ny,wo)=>{"use strict";var tt=we(),it=q(),lf=P(),xo=function(r){return lf(r)?r:void 0};wo.exports=function(r,e){return arguments.length<2?xo(tt[r])||xo(it[r]):tt[r]&&tt[r][e]||it[r]&&it[r][e]}});var Ze=n((ay,Ro)=>{"use strict";var ff=O();Ro.exports=ff({}.isPrototypeOf)});var J=n((sy,No)=>{"use strict";var df=q(),Co=df.navigator,Ao=Co&&Co.userAgent;No.exports=Ao?String(Ao):""});var nt=n((uy,Mo)=>{"use strict";var jo=q(),ot=J(),Lo=jo.process,ko=jo.Deno,Do=Lo&&Lo.versions||ko&&ko.version,$o=Do&&Do.v8,k,er;$o&&(k=$o.split("."),er=k[0]>0&&k[0]<4?1:+(k[0]+k[1]));!er&&ot&&(k=ot.match(/Edge\/(\d+)/),(!k||k[1]>=74)&&(k=ot.match(/Chrome\/(\d+)/),k&&(er=+k[1])));Mo.exports=er});var at=n((cy,Bo)=>{"use strict";var Fo=nt(),pf=T(),vf=q(),hf=vf.String;Bo.exports=!!Object.getOwnPropertySymbols&&!pf(function(){var r=Symbol("symbol detection");return!hf(r)||!(Object(r)instanceof Symbol)||!Symbol.sham&&Fo&&Fo<41})});var st=n((ly,Uo)=>{"use strict";var gf=at();Uo.exports=gf&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var ut=n((fy,Vo)=>{"use strict";var mf=V(),bf=P(),yf=Ze(),If=st(),Sf=Object;Vo.exports=If?function(r){return typeof r=="symbol"}:function(r){var e=mf("Symbol");return bf(e)&&yf(e.prototype,Sf(r))}});var Re=n((dy,Go)=>{"use strict";var Ef=String;Go.exports=function(r){try{return Ef(r)}catch(e){return"Object"}}});var G=n((py,Ko)=>{"use strict";var qf=P(),Pf=Re(),Tf=TypeError;Ko.exports=function(r){if(qf(r))return r;throw new Tf(Pf(r)+" is not a function")}});var rr=n((vy,Wo)=>{"use strict";var Of=G(),_f=xe();Wo.exports=function(r,e){var t=r[e];return _f(t)?void 0:Of(t)}});var zo=n((hy,Ho)=>{"use strict";var ct=N(),lt=P(),ft=L(),xf=TypeError;Ho.exports=function(r,e){var t,i;if(e==="string"&<(t=r.toString)&&!ft(i=ct(t,r))||lt(t=r.valueOf)&&!ft(i=ct(t,r))||e!=="string"&<(t=r.toString)&&!ft(i=ct(t,r)))return i;throw new xf("Can't convert object to primitive value")}});var M=n((gy,Qo)=>{"use strict";Qo.exports=!0});var Xo=n((my,Jo)=>{"use strict";var Yo=q(),wf=Object.defineProperty;Jo.exports=function(r,e){try{wf(Yo,r,{value:e,configurable:!0,writable:!0})}catch(t){Yo[r]=e}return e}});var Ce=n((by,rn)=>{"use strict";var Rf=M(),Cf=q(),Af=Xo(),Zo="__core-js_shared__",en=rn.exports=Cf[Zo]||Af(Zo,{});(en.versions||(en.versions=[])).push({version:"3.38.0",mode:Rf?"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 dt=n((yy,on)=>{"use strict";var tn=Ce();on.exports=function(r,e){return tn[r]||(tn[r]=e||{})}});var pt=n((Iy,nn)=>{"use strict";var Nf=se(),Lf=Object;nn.exports=function(r){return Lf(Nf(r))}});var F=n((Sy,an)=>{"use strict";var kf=O(),Df=pt(),$f=kf({}.hasOwnProperty);an.exports=Object.hasOwn||function(e,t){return $f(Df(e),t)}});var vt=n((Ey,sn)=>{"use strict";var jf=O(),Mf=0,Ff=Math.random(),Bf=jf(1 .toString);sn.exports=function(r){return"Symbol("+(r===void 0?"":r)+")_"+Bf(++Mf+Ff,36)}});var x=n((qy,cn)=>{"use strict";var Uf=q(),Vf=dt(),un=F(),Gf=vt(),Kf=at(),Wf=st(),ue=Uf.Symbol,ht=Vf("wks"),Hf=Wf?ue.for||ue:ue&&ue.withoutSetter||Gf;cn.exports=function(r){return un(ht,r)||(ht[r]=Kf&&un(ue,r)?ue[r]:Hf("Symbol."+r)),ht[r]}});var pn=n((Py,dn)=>{"use strict";var zf=N(),ln=L(),fn=ut(),Qf=rr(),Yf=zo(),Jf=x(),Xf=TypeError,Zf=Jf("toPrimitive");dn.exports=function(r,e){if(!ln(r)||fn(r))return r;var t=Qf(r,Zf),i;if(t){if(e===void 0&&(e="default"),i=zf(t,r,e),!ln(i)||fn(i))return i;throw new Xf("Can't convert object to primitive value")}return e===void 0&&(e="number"),Yf(r,e)}});var gt=n((Ty,vn)=>{"use strict";var ed=pn(),rd=ut();vn.exports=function(r){var e=ed(r,"string");return rd(e)?e:e+""}});var tr=n((Oy,gn)=>{"use strict";var td=q(),hn=L(),mt=td.document,id=hn(mt)&&hn(mt.createElement);gn.exports=function(r){return id?mt.createElement(r):{}}});var bt=n((_y,mn)=>{"use strict";var od=_(),nd=T(),ad=tr();mn.exports=!od&&!nd(function(){return Object.defineProperty(ad("div"),"a",{get:function(){return 7}}).a!==7})});var In=n(yn=>{"use strict";var sd=_(),ud=N(),cd=et(),ld=_e(),fd=Y(),dd=gt(),pd=F(),vd=bt(),bn=Object.getOwnPropertyDescriptor;yn.f=sd?bn:function(e,t){if(e=fd(e),t=dd(t),vd)try{return bn(e,t)}catch(i){}if(pd(e,t))return ld(!ud(cd.f,e,t),e[t])}});var yt=n((wy,Sn)=>{"use strict";var hd=T(),gd=P(),md=/#|\.prototype\./,Ae=function(r,e){var t=yd[bd(r)];return t===Sd?!0:t===Id?!1:gd(e)?hd(e):!!e},bd=Ae.normalize=function(r){return String(r).replace(md,".").toLowerCase()},yd=Ae.data={},Id=Ae.NATIVE="N",Sd=Ae.POLYFILL="P";Sn.exports=Ae});var Ne=n((Ry,qn)=>{"use strict";var En=Xr(),Ed=G(),qd=Te(),Pd=En(En.bind);qn.exports=function(r,e){return Ed(r),e===void 0?r:qd?Pd(r,e):function(){return r.apply(e,arguments)}}});var It=n((Cy,Pn)=>{"use strict";var Td=_(),Od=T();Pn.exports=Td&&Od(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var K=n((Ay,Tn)=>{"use strict";var _d=L(),xd=String,wd=TypeError;Tn.exports=function(r){if(_d(r))return r;throw new wd(xd(r)+" is not an object")}});var X=n(_n=>{"use strict";var Rd=_(),Cd=bt(),Ad=It(),ir=K(),On=gt(),Nd=TypeError,St=Object.defineProperty,Ld=Object.getOwnPropertyDescriptor,Et="enumerable",qt="configurable",Pt="writable";_n.f=Rd?Ad?function(e,t,i){if(ir(e),t=On(t),ir(i),typeof e=="function"&&t==="prototype"&&"value"in i&&Pt in i&&!i[Pt]){var o=Ld(e,t);o&&o[Pt]&&(e[t]=i.value,i={configurable:qt in i?i[qt]:o[qt],enumerable:Et in i?i[Et]:o[Et],writable:!1})}return St(e,t,i)}:St:function(e,t,i){if(ir(e),t=On(t),ir(i),Cd)try{return St(e,t,i)}catch(o){}if("get"in i||"set"in i)throw new Nd("Accessors not supported");return"value"in i&&(e[t]=i.value),e}});var ce=n((Ly,xn)=>{"use strict";var kd=_(),Dd=X(),$d=_e();xn.exports=kd?function(r,e,t){return Dd.f(r,e,$d(1,t))}:function(r,e,t){return r[e]=t,r}});var w=n((ky,Rn)=>{"use strict";var Le=q(),jd=Yr(),Md=Xr(),Fd=P(),Bd=In().f,Ud=yt(),le=we(),Vd=Ne(),fe=ce(),wn=F();Ce();var Gd=function(r){var e=function(t,i,o){if(this instanceof e){switch(arguments.length){case 0:return new r;case 1:return new r(t);case 2:return new r(t,i)}return new r(t,i,o)}return jd(r,this,arguments)};return e.prototype=r.prototype,e};Rn.exports=function(r,e){var t=r.target,i=r.global,o=r.stat,a=r.proto,u=i?Le:o?Le[t]:Le[t]&&Le[t].prototype,d=i?le:le[t]||fe(le,t,{})[t],c=d.prototype,l,p,v,s,f,m,y,I,b;for(s in e)l=Ud(i?s:t+(o?".":"#")+s,r.forced),p=!l&&u&&wn(u,s),m=d[s],p&&(r.dontCallGetSet?(b=Bd(u,s),y=b&&b.value):y=u[s]),f=p&&y?y:e[s],!(!l&&!a&&typeof m==typeof f)&&(r.bind&&p?I=Vd(f,Le):r.wrap&&p?I=Gd(f):a&&Fd(f)?I=Md(f):I=f,(r.sham||f&&f.sham||m&&m.sham)&&fe(I,"sham",!0),fe(d,s,I),a&&(v=t+"Prototype",wn(le,v)||fe(le,v,{}),fe(le[v],s,f),r.real&&c&&(l||!c[s])&&fe(c,s,f)))}});var An=n((Dy,Cn)=>{"use strict";var Kd=Math.ceil,Wd=Math.floor;Cn.exports=Math.trunc||function(e){var t=+e;return(t>0?Wd:Kd)(t)}});var or=n(($y,Nn)=>{"use strict";var Hd=An();Nn.exports=function(r){var e=+r;return e!==e||e===0?0:Hd(e)}});var kn=n((jy,Ln)=>{"use strict";var zd=or(),Qd=Math.max,Yd=Math.min;Ln.exports=function(r,e){var t=zd(r);return t<0?Qd(t+e,0):Yd(t,e)}});var Tt=n((My,Dn)=>{"use strict";var Jd=or(),Xd=Math.min;Dn.exports=function(r){var e=Jd(r);return e>0?Xd(e,9007199254740991):0}});var Ot=n((Fy,$n)=>{"use strict";var Zd=Tt();$n.exports=function(r){return Zd(r.length)}});var _t=n((By,Mn)=>{"use strict";var ep=Y(),rp=kn(),tp=Ot(),jn=function(r){return function(e,t,i){var o=ep(e),a=tp(o);if(a===0)return!r&&-1;var u=rp(i,a),d;if(r&&t!==t){for(;a>u;)if(d=o[u++],d!==d)return!0}else for(;a>u;u++)if((r||u in o)&&o[u]===t)return r||u||0;return!r&&-1}};Mn.exports={includes:jn(!0),indexOf:jn(!1)}});var xt=n((Uy,Fn)=>{"use strict";Fn.exports=function(){}});var Bn=n(()=>{"use strict";var ip=w(),op=_t().includes,np=T(),ap=xt(),sp=np(function(){return!Array(1).includes()});ip({target:"Array",proto:!0,forced:sp},{includes:function(e){return op(this,e,arguments.length>1?arguments[1]:void 0)}});ap("includes")});var nr=n((Ky,Un)=>{"use strict";var up=V();Un.exports=up});var Gn=n((Wy,Vn)=>{"use strict";Bn();var cp=nr();Vn.exports=cp("Array","includes")});var Wn=n((Hy,Kn)=>{"use strict";var lp=Gn();Kn.exports=lp});var ar=n((zy,Hn)=>{"use strict";var fp=Wn();Hn.exports=fp});var ra=n(()=>{"use strict"});var At=n((aI,ta)=>{"use strict";var De=q(),pp=J(),vp=Oe(),fr=function(r){return pp.slice(0,r.length)===r};ta.exports=function(){return fr("Bun/")?"BUN":fr("Cloudflare-Workers")?"CLOUDFLARE":fr("Deno/")?"DENO":fr("Node.js/")?"NODE":De.Bun&&typeof Bun.version=="string"?"BUN":De.Deno&&typeof Deno.version=="object"?"DENO":vp(De.process)==="process"?"NODE":De.window&&De.document?"BROWSER":"REST"}()});var dr=n((sI,ia)=>{"use strict";var hp=At();ia.exports=hp==="NODE"});var pe=n((uI,oa)=>{"use strict";var gp=ce();oa.exports=function(r,e,t,i){return i&&i.enumerable?r[e]=t:gp(r,e,t),r}});var aa=n((cI,na)=>{"use strict";var mp=O(),bp=G();na.exports=function(r,e,t){try{return mp(bp(Object.getOwnPropertyDescriptor(r,e)[t]))}catch(i){}}});var ua=n((lI,sa)=>{"use strict";var yp=L();sa.exports=function(r){return yp(r)||r===null}});var la=n((fI,ca)=>{"use strict";var Ip=ua(),Sp=String,Ep=TypeError;ca.exports=function(r){if(Ip(r))return r;throw new Ep("Can't set "+Sp(r)+" as a prototype")}});var Nt=n((dI,fa)=>{"use strict";var qp=aa(),Pp=L(),Tp=se(),Op=la();fa.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var r=!1,e={},t;try{t=qp(Object.prototype,"__proto__","set"),t(e,[]),r=e instanceof Array}catch(i){}return function(o,a){return Tp(o),Op(a),Pp(o)&&(r?t(o,a):o.__proto__=a),o}}():void 0)});var pr=n((pI,pa)=>{"use strict";var _p=x(),xp=_p("toStringTag"),da={};da[xp]="z";pa.exports=String(da)==="[object z]"});var $e=n((vI,va)=>{"use strict";var wp=pr(),Rp=P(),vr=Oe(),Cp=x(),Ap=Cp("toStringTag"),Np=Object,Lp=vr(function(){return arguments}())==="Arguments",kp=function(r,e){try{return r[e]}catch(t){}};va.exports=wp?vr:function(r){var e,t,i;return r===void 0?"Undefined":r===null?"Null":typeof(t=kp(e=Np(r),Ap))=="string"?t:Lp?vr(e):(i=vr(e))==="Object"&&Rp(e.callee)?"Arguments":i}});var ga=n((hI,ha)=>{"use strict";var Dp=pr(),$p=$e();ha.exports=Dp?{}.toString:function(){return"[object "+$p(this)+"]"}});var je=n((gI,ba)=>{"use strict";var jp=pr(),Mp=X().f,Fp=ce(),Bp=F(),Up=ga(),Vp=x(),ma=Vp("toStringTag");ba.exports=function(r,e,t,i){var o=t?r:r&&r.prototype;o&&(Bp(o,ma)||Mp(o,ma,{configurable:!0,value:e}),i&&!jp&&Fp(o,"toString",Up))}});var Ia=n((mI,ya)=>{"use strict";var Gp=X();ya.exports=function(r,e,t){return Gp.f(r,e,t)}});var qa=n((bI,Ea)=>{"use strict";var Kp=V(),Wp=Ia(),Hp=x(),zp=_(),Sa=Hp("species");Ea.exports=function(r){var e=Kp(r);zp&&e&&!e[Sa]&&Wp(e,Sa,{configurable:!0,get:function(){return this}})}});var Ta=n((yI,Pa)=>{"use strict";var Qp=Ze(),Yp=TypeError;Pa.exports=function(r,e){if(Qp(e,r))return r;throw new Yp("Incorrect invocation")}});var kt=n((II,Oa)=>{"use strict";var Jp=O(),Xp=P(),Lt=Ce(),Zp=Jp(Function.toString);Xp(Lt.inspectSource)||(Lt.inspectSource=function(r){return Zp(r)});Oa.exports=Lt.inspectSource});var Aa=n((SI,Ca)=>{"use strict";var ev=O(),rv=T(),_a=P(),tv=$e(),iv=V(),ov=kt(),xa=function(){},wa=iv("Reflect","construct"),Dt=/^\s*(?:class|function)\b/,nv=ev(Dt.exec),av=!Dt.test(xa),Me=function(e){if(!_a(e))return!1;try{return wa(xa,[],e),!0}catch(t){return!1}},Ra=function(e){if(!_a(e))return!1;switch(tv(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return av||!!nv(Dt,ov(e))}catch(t){return!0}};Ra.sham=!0;Ca.exports=!wa||rv(function(){var r;return Me(Me.call)||!Me(Object)||!Me(function(){r=!0})||r})?Ra:Me});var La=n((EI,Na)=>{"use strict";var sv=Aa(),uv=Re(),cv=TypeError;Na.exports=function(r){if(sv(r))return r;throw new cv(uv(r)+" is not a constructor")}});var $t=n((qI,Da)=>{"use strict";var ka=K(),lv=La(),fv=xe(),dv=x(),pv=dv("species");Da.exports=function(r,e){var t=ka(r).constructor,i;return t===void 0||fv(i=ka(t)[pv])?e:lv(i)}});var jt=n((PI,$a)=>{"use strict";var vv=V();$a.exports=vv("document","documentElement")});var Ma=n((TI,ja)=>{"use strict";var hv=O();ja.exports=hv([].slice)});var Ba=n((OI,Fa)=>{"use strict";var gv=TypeError;Fa.exports=function(r,e){if(r<e)throw new gv("Not enough arguments");return r}});var Mt=n((_I,Ua)=>{"use strict";var mv=J();Ua.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(mv)});var zt=n((xI,Ja)=>{"use strict";var R=q(),bv=Yr(),yv=Ne(),Va=P(),Iv=F(),Ya=T(),Ga=jt(),Sv=Ma(),Ka=tr(),Ev=Ba(),qv=Mt(),Pv=dr(),Kt=R.setImmediate,Wt=R.clearImmediate,Tv=R.process,Ft=R.Dispatch,Ov=R.Function,Wa=R.MessageChannel,_v=R.String,Bt=0,Fe={},Ha="onreadystatechange",Be,Z,Ut,Vt;Ya(function(){Be=R.location});var Ht=function(r){if(Iv(Fe,r)){var e=Fe[r];delete Fe[r],e()}},Gt=function(r){return function(){Ht(r)}},za=function(r){Ht(r.data)},Qa=function(r){R.postMessage(_v(r),Be.protocol+"//"+Be.host)};(!Kt||!Wt)&&(Kt=function(e){Ev(arguments.length,1);var t=Va(e)?e:Ov(e),i=Sv(arguments,1);return Fe[++Bt]=function(){bv(t,void 0,i)},Z(Bt),Bt},Wt=function(e){delete Fe[e]},Pv?Z=function(r){Tv.nextTick(Gt(r))}:Ft&&Ft.now?Z=function(r){Ft.now(Gt(r))}:Wa&&!qv?(Ut=new Wa,Vt=Ut.port2,Ut.port1.onmessage=za,Z=yv(Vt.postMessage,Vt)):R.addEventListener&&Va(R.postMessage)&&!R.importScripts&&Be&&Be.protocol!=="file:"&&!Ya(Qa)?(Z=Qa,R.addEventListener("message",za,!1)):Ha in Ka("script")?Z=function(r){Ga.appendChild(Ka("script"))[Ha]=function(){Ga.removeChild(this),Ht(r)}}:Z=function(r){setTimeout(Gt(r),0)});Ja.exports={set:Kt,clear:Wt}});var es=n((wI,Za)=>{"use strict";var Xa=q(),xv=_(),wv=Object.getOwnPropertyDescriptor;Za.exports=function(r){if(!xv)return Xa[r];var e=wv(Xa,r);return e&&e.value}});var Qt=n((RI,ts)=>{"use strict";var rs=function(){this.head=null,this.tail=null};rs.prototype={add:function(r){var e={item:r,next:null},t=this.tail;t?t.next=e:this.head=e,this.tail=e},get:function(){var r=this.head;if(r){var e=this.head=r.next;return e===null&&(this.tail=null),r.item}}};ts.exports=rs});var os=n((CI,is)=>{"use strict";var Rv=J();is.exports=/ipad|iphone|ipod/i.test(Rv)&&typeof Pebble!="undefined"});var as=n((AI,ns)=>{"use strict";var Cv=J();ns.exports=/web0s(?!.*chrome)/i.test(Cv)});var ps=n((NI,ds)=>{"use strict";var he=q(),Av=es(),ss=Ne(),Yt=zt().set,Nv=Qt(),Lv=Mt(),kv=os(),Dv=as(),Jt=dr(),us=he.MutationObserver||he.WebKitMutationObserver,cs=he.document,ls=he.process,hr=he.Promise,ei=Av("queueMicrotask"),ve,Xt,Zt,gr,fs;ei||(Ue=new Nv,Ve=function(){var r,e;for(Jt&&(r=ls.domain)&&r.exit();e=Ue.get();)try{e()}catch(t){throw Ue.head&&ve(),t}r&&r.enter()},!Lv&&!Jt&&!Dv&&us&&cs?(Xt=!0,Zt=cs.createTextNode(""),new us(Ve).observe(Zt,{characterData:!0}),ve=function(){Zt.data=Xt=!Xt}):!kv&&hr&&hr.resolve?(gr=hr.resolve(void 0),gr.constructor=hr,fs=ss(gr.then,gr),ve=function(){fs(Ve)}):Jt?ve=function(){ls.nextTick(Ve)}:(Yt=ss(Yt,he),ve=function(){Yt(Ve)}),ei=function(r){Ue.head||ve(),Ue.add(r)});var Ue,Ve;ds.exports=ei});var hs=n((LI,vs)=>{"use strict";vs.exports=function(r,e){try{arguments.length===1?console.error(r):console.error(r,e)}catch(t){}}});var mr=n((kI,gs)=>{"use strict";gs.exports=function(r){try{return{error:!1,value:r()}}catch(e){return{error:!0,value:e}}}});var ys=n((DI,bs)=>{"use strict";var $v=q(),jv=P(),ms=$v.WeakMap;bs.exports=jv(ms)&&/native code/.test(String(ms))});var br=n(($I,Ss)=>{"use strict";var Mv=dt(),Fv=vt(),Is=Mv("keys");Ss.exports=function(r){return Is[r]||(Is[r]=Fv(r))}});var yr=n((jI,Es)=>{"use strict";Es.exports={}});var oi=n((MI,Ts)=>{"use strict";var Bv=ys(),Ps=q(),Uv=L(),Vv=ce(),ri=F(),ti=Ce(),Gv=br(),Kv=yr(),qs="Object already initialized",ii=Ps.TypeError,Wv=Ps.WeakMap,Ir,Ge,Sr,Hv=function(r){return Sr(r)?Ge(r):Ir(r,{})},zv=function(r){return function(e){var t;if(!Uv(e)||(t=Ge(e)).type!==r)throw new ii("Incompatible receiver, "+r+" required");return t}};Bv||ti.state?(D=ti.state||(ti.state=new Wv),D.get=D.get,D.has=D.has,D.set=D.set,Ir=function(r,e){if(D.has(r))throw new ii(qs);return e.facade=r,D.set(r,e),e},Ge=function(r){return D.get(r)||{}},Sr=function(r){return D.has(r)}):(ee=Gv("state"),Kv[ee]=!0,Ir=function(r,e){if(ri(r,ee))throw new ii(qs);return e.facade=r,Vv(r,ee,e),e},Ge=function(r){return ri(r,ee)?r[ee]:{}},Sr=function(r){return ri(r,ee)});var D,ee;Ts.exports={set:Ir,get:Ge,has:Sr,enforce:Hv,getterFor:zv}});var re=n((FI,Os)=>{"use strict";var Qv=q();Os.exports=Qv.Promise});var ge=n((BI,Rs)=>{"use strict";var Yv=q(),Ke=re(),Jv=P(),Xv=yt(),Zv=kt(),eh=x(),_s=At(),rh=M(),ni=nt(),xs=Ke&&Ke.prototype,th=eh("species"),ai=!1,ws=Jv(Yv.PromiseRejectionEvent),ih=Xv("Promise",function(){var r=Zv(Ke),e=r!==String(Ke);if(!e&&ni===66||rh&&!(xs.catch&&xs.finally))return!0;if(!ni||ni<51||!/native code/.test(r)){var t=new Ke(function(a){a(1)}),i=function(a){a(function(){},function(){})},o=t.constructor={};if(o[th]=i,ai=t.then(function(){})instanceof i,!ai)return!0}return!e&&(_s==="BROWSER"||_s==="DENO")&&!ws});Rs.exports={CONSTRUCTOR:ih,REJECTION_EVENT:ws,SUBCLASSING:ai}});var me=n((UI,As)=>{"use strict";var Cs=G(),oh=TypeError,nh=function(r){var e,t;this.promise=new r(function(i,o){if(e!==void 0||t!==void 0)throw new oh("Bad Promise constructor");e=i,t=o}),this.resolve=Cs(e),this.reject=Cs(t)};As.exports.f=function(r){return new nh(r)}});var Js=n(()=>{"use strict";var ah=w(),sh=M(),Tr=dr(),Q=q(),Se=N(),Ns=pe(),Ls=Nt(),uh=je(),ch=qa(),lh=G(),Pr=P(),fh=L(),dh=Ta(),ph=$t(),Ms=zt().set,fi=ps(),vh=hs(),hh=mr(),gh=Qt(),Fs=oi(),Or=re(),di=ge(),Bs=me(),_r="Promise",Us=di.CONSTRUCTOR,mh=di.REJECTION_EVENT,bh=di.SUBCLASSING,si=Fs.getterFor(_r),yh=Fs.set,be=Or&&Or.prototype,te=Or,Er=be,Vs=Q.TypeError,ui=Q.document,pi=Q.process,ci=Bs.f,Ih=ci,Sh=!!(ui&&ui.createEvent&&Q.dispatchEvent),Gs="unhandledrejection",Eh="rejectionhandled",ks=0,Ks=1,qh=2,vi=1,Ws=2,qr,Ds,Ph,$s,Hs=function(r){var e;return fh(r)&&Pr(e=r.then)?e:!1},zs=function(r,e){var t=e.value,i=e.state===Ks,o=i?r.ok:r.fail,a=r.resolve,u=r.reject,d=r.domain,c,l,p;try{o?(i||(e.rejection===Ws&&Oh(e),e.rejection=vi),o===!0?c=t:(d&&d.enter(),c=o(t),d&&(d.exit(),p=!0)),c===r.promise?u(new Vs("Promise-chain cycle")):(l=Hs(c))?Se(l,c,a,u):a(c)):u(t)}catch(v){d&&!p&&d.exit(),u(v)}},Qs=function(r,e){r.notified||(r.notified=!0,fi(function(){for(var t=r.reactions,i;i=t.get();)zs(i,r);r.notified=!1,e&&!r.rejection&&Th(r)}))},Ys=function(r,e,t){var i,o;Sh?(i=ui.createEvent("Event"),i.promise=e,i.reason=t,i.initEvent(r,!1,!0),Q.dispatchEvent(i)):i={promise:e,reason:t},!mh&&(o=Q["on"+r])?o(i):r===Gs&&vh("Unhandled promise rejection",t)},Th=function(r){Se(Ms,Q,function(){var e=r.facade,t=r.value,i=js(r),o;if(i&&(o=hh(function(){Tr?pi.emit("unhandledRejection",t,e):Ys(Gs,e,t)}),r.rejection=Tr||js(r)?Ws:vi,o.error))throw o.value})},js=function(r){return r.rejection!==vi&&!r.parent},Oh=function(r){Se(Ms,Q,function(){var e=r.facade;Tr?pi.emit("rejectionHandled",e):Ys(Eh,e,r.value)})},ye=function(r,e,t){return function(i){r(e,i,t)}},Ie=function(r,e,t){r.done||(r.done=!0,t&&(r=t),r.value=e,r.state=qh,Qs(r,!0))},li=function(r,e,t){if(!r.done){r.done=!0,t&&(r=t);try{if(r.facade===e)throw new Vs("Promise can't be resolved itself");var i=Hs(e);i?fi(function(){var o={done:!1};try{Se(i,e,ye(li,o,r),ye(Ie,o,r))}catch(a){Ie(o,a,r)}}):(r.value=e,r.state=Ks,Qs(r,!1))}catch(o){Ie({done:!1},o,r)}}};if(Us&&(te=function(e){dh(this,Er),lh(e),Se(qr,this);var t=si(this);try{e(ye(li,t),ye(Ie,t))}catch(i){Ie(t,i)}},Er=te.prototype,qr=function(e){yh(this,{type:_r,done:!1,notified:!1,parent:!1,reactions:new gh,rejection:!1,state:ks,value:void 0})},qr.prototype=Ns(Er,"then",function(e,t){var i=si(this),o=ci(ph(this,te));return i.parent=!0,o.ok=Pr(e)?e:!0,o.fail=Pr(t)&&t,o.domain=Tr?pi.domain:void 0,i.state===ks?i.reactions.add(o):fi(function(){zs(o,i)}),o.promise}),Ds=function(){var r=new qr,e=si(r);this.promise=r,this.resolve=ye(li,e),this.reject=ye(Ie,e)},Bs.f=ci=function(r){return r===te||r===Ph?new Ds(r):Ih(r)},!sh&&Pr(Or)&&be!==Object.prototype)){$s=be.then,bh||Ns(be,"then",function(e,t){var i=this;return new te(function(o,a){Se($s,i,o,a)}).then(e,t)},{unsafe:!0});try{delete be.constructor}catch(r){}Ls&&Ls(be,Er)}ah({global:!0,constructor:!0,wrap:!0,forced:Us},{Promise:te});uh(te,_r,!1,!0);ch(_r)});var ie=n((KI,Xs)=>{"use strict";Xs.exports={}});var eu=n((WI,Zs)=>{"use strict";var _h=x(),xh=ie(),wh=_h("iterator"),Rh=Array.prototype;Zs.exports=function(r){return r!==void 0&&(xh.Array===r||Rh[wh]===r)}});var hi=n((HI,tu)=>{"use strict";var Ch=$e(),ru=rr(),Ah=xe(),Nh=ie(),Lh=x(),kh=Lh("iterator");tu.exports=function(r){if(!Ah(r))return ru(r,kh)||ru(r,"@@iterator")||Nh[Ch(r)]}});var ou=n((zI,iu)=>{"use strict";var Dh=N(),$h=G(),jh=K(),Mh=Re(),Fh=hi(),Bh=TypeError;iu.exports=function(r,e){var t=arguments.length<2?Fh(r):e;if($h(t))return jh(Dh(t,r));throw new Bh(Mh(r)+" is not iterable")}});var su=n((QI,au)=>{"use strict";var Uh=N(),nu=K(),Vh=rr();au.exports=function(r,e,t){var i,o;nu(r);try{if(i=Vh(r,"return"),!i){if(e==="throw")throw t;return t}i=Uh(i,r)}catch(a){o=!0,i=a}if(e==="throw")throw t;if(o)throw i;return nu(i),t}});var wr=n((YI,fu)=>{"use strict";var Gh=Ne(),Kh=N(),Wh=K(),Hh=Re(),zh=eu(),Qh=Ot(),uu=Ze(),Yh=ou(),Jh=hi(),cu=su(),Xh=TypeError,xr=function(r,e){this.stopped=r,this.result=e},lu=xr.prototype;fu.exports=function(r,e,t){var i=t&&t.that,o=!!(t&&t.AS_ENTRIES),a=!!(t&&t.IS_RECORD),u=!!(t&&t.IS_ITERATOR),d=!!(t&&t.INTERRUPTED),c=Gh(e,i),l,p,v,s,f,m,y,I=function(E){return l&&cu(l,"normal",E),new xr(!0,E)},b=function(E){return o?(Wh(E),d?c(E[0],E[1],I):c(E[0],E[1])):d?c(E,I):c(E)};if(a)l=r.iterator;else if(u)l=r;else{if(p=Jh(r),!p)throw new Xh(Hh(r)+" is not iterable");if(zh(p)){for(v=0,s=Qh(r);s>v;v++)if(f=b(r[v]),f&&uu(lu,f))return f;return new xr(!1)}l=Yh(r,p)}for(m=a?r.next:l.next;!(y=Kh(m,l)).done;){try{f=b(y.value)}catch(E){cu(l,"throw",E)}if(typeof f=="object"&&f&&uu(lu,f))return f}return new xr(!1)}});var gu=n((JI,hu)=>{"use strict";var Zh=x(),pu=Zh("iterator"),vu=!1;try{du=0,gi={next:function(){return{done:!!du++}},return:function(){vu=!0}},gi[pu]=function(){return this},Array.from(gi,function(){throw 2})}catch(r){}var du,gi;hu.exports=function(r,e){try{if(!e&&!vu)return!1}catch(o){return!1}var t=!1;try{var i={};i[pu]=function(){return{next:function(){return{done:t=!0}}}},r(i)}catch(o){}return t}});var mi=n((XI,mu)=>{"use strict";var eg=re(),rg=gu(),tg=ge().CONSTRUCTOR;mu.exports=tg||!rg(function(r){eg.all(r).then(void 0,function(){})})});var bu=n(()=>{"use strict";var ig=w(),og=N(),ng=G(),ag=me(),sg=mr(),ug=wr(),cg=mi();ig({target:"Promise",stat:!0,forced:cg},{all:function(e){var t=this,i=ag.f(t),o=i.resolve,a=i.reject,u=sg(function(){var d=ng(t.resolve),c=[],l=0,p=1;ug(e,function(v){var s=l++,f=!1;p++,og(d,t,v).then(function(m){f||(f=!0,c[s]=m,--p||o(c))},a)}),--p||o(c)});return u.error&&a(u.value),i.promise}})});var Iu=n(()=>{"use strict";var lg=w(),fg=M(),dg=ge().CONSTRUCTOR,yi=re(),pg=V(),vg=P(),hg=pe(),yu=yi&&yi.prototype;lg({target:"Promise",proto:!0,forced:dg,real:!0},{catch:function(r){return this.then(void 0,r)}});!fg&&vg(yi)&&(bi=pg("Promise").prototype.catch,yu.catch!==bi&&hg(yu,"catch",bi,{unsafe:!0}));var bi});var Su=n(()=>{"use strict";var gg=w(),mg=N(),bg=G(),yg=me(),Ig=mr(),Sg=wr(),Eg=mi();gg({target:"Promise",stat:!0,forced:Eg},{race:function(e){var t=this,i=yg.f(t),o=i.reject,a=Ig(function(){var u=bg(t.resolve);Sg(e,function(d){mg(u,t,d).then(i.resolve,o)})});return a.error&&o(a.value),i.promise}})});var Eu=n(()=>{"use strict";var qg=w(),Pg=me(),Tg=ge().CONSTRUCTOR;qg({target:"Promise",stat:!0,forced:Tg},{reject:function(e){var t=Pg.f(this),i=t.reject;return i(e),t.promise}})});var Ii=n((sS,qu)=>{"use strict";var Og=K(),_g=L(),xg=me();qu.exports=function(r,e){if(Og(r),_g(e)&&e.constructor===r)return e;var t=xg.f(r),i=t.resolve;return i(e),t.promise}});var Ou=n(()=>{"use strict";var wg=w(),Rg=V(),Pu=M(),Cg=re(),Tu=ge().CONSTRUCTOR,Ag=Ii(),Ng=Rg("Promise"),Lg=Pu&&!Tu;wg({target:"Promise",stat:!0,forced:Pu||Tu},{resolve:function(e){return Ag(Lg&&this===Ng?Cg:this,e)}})});var _u=n(()=>{"use strict";Js();bu();Iu();Su();Eu();Ou()});var Cu=n(()=>{"use strict";var kg=w(),Dg=M(),Rr=re(),$g=T(),wu=V(),Ru=P(),jg=$t(),xu=Ii(),Mg=pe(),Ei=Rr&&Rr.prototype,Fg=!!Rr&&$g(function(){Ei.finally.call({then:function(){}},function(){})});kg({target:"Promise",proto:!0,real:!0,forced:Fg},{finally:function(r){var e=jg(this,wu("Promise")),t=Ru(r);return this.then(t?function(i){return xu(e,r()).then(function(){return i})}:r,t?function(i){return xu(e,r()).then(function(){throw i})}:r)}});!Dg&&Ru(Rr)&&(Si=wu("Promise").prototype.finally,Ei.finally!==Si&&Mg(Ei,"finally",Si,{unsafe:!0}));var Si});var Nu=n((vS,Au)=>{"use strict";ra();_u();Cu();var Bg=nr();Au.exports=Bg("Promise","finally")});var ku=n((hS,Lu)=>{"use strict";var Ug=Nu();Lu.exports=Ug});var $u=n((gS,Du)=>{"use strict";var Vg=ku();Du.exports=Vg});var Mu=n((mS,ju)=>{"use strict";var Gg=T();ju.exports=!Gg(function(){function r(){}return r.prototype.constructor=null,Object.getPrototypeOf(new r)!==r.prototype})});var Cr=n((bS,Bu)=>{"use strict";var Kg=F(),Wg=P(),Hg=pt(),zg=br(),Qg=Mu(),Fu=zg("IE_PROTO"),qi=Object,Yg=qi.prototype;Bu.exports=Qg?qi.getPrototypeOf:function(r){var e=Hg(r);if(Kg(e,Fu))return e[Fu];var t=e.constructor;return Wg(t)&&e instanceof t?t.prototype:e instanceof qi?Yg:null}});var Gu=n((yS,Vu)=>{"use strict";var Jg=O(),Pi=F(),Xg=Y(),Zg=_t().indexOf,em=yr(),Uu=Jg([].push);Vu.exports=function(r,e){var t=Xg(r),i=0,o=[],a;for(a in t)!Pi(em,a)&&Pi(t,a)&&Uu(o,a);for(;e.length>i;)Pi(t,a=e[i++])&&(~Zg(o,a)||Uu(o,a));return o}});var Ti=n((IS,Ku)=>{"use strict";Ku.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var Oi=n((SS,Wu)=>{"use strict";var rm=Gu(),tm=Ti();Wu.exports=Object.keys||function(e){return rm(e,tm)}});var Xu=n((ES,Ju)=>{"use strict";var zu=_(),im=T(),Qu=O(),om=Cr(),nm=Oi(),am=Y(),sm=et().f,Yu=Qu(sm),um=Qu([].push),cm=zu&&im(function(){var r=Object.create(null);return r[2]=2,!Yu(r,2)}),Hu=function(r){return function(e){for(var t=am(e),i=nm(t),o=cm&&om(t)===null,a=i.length,u=0,d=[],c;a>u;)c=i[u++],(!zu||(o?c in t:Yu(t,c)))&&um(d,r?[c,t[c]]:t[c]);return d}};Ju.exports={entries:Hu(!0),values:Hu(!1)}});var Zu=n(()=>{"use strict";var lm=w(),fm=Xu().entries;lm({target:"Object",stat:!0},{entries:function(e){return fm(e)}})});var rc=n((TS,ec)=>{"use strict";Zu();var dm=we();ec.exports=dm.Object.entries});var ic=n((OS,tc)=>{"use strict";var pm=rc();tc.exports=pm});var Ar=n((_S,oc)=>{"use strict";var vm=ic();oc.exports=vm});var sc=n((xS,ac)=>{"use strict";var _i=_(),hm=F(),nc=Function.prototype,gm=_i&&Object.getOwnPropertyDescriptor,xi=hm(nc,"name"),mm=xi&&function(){}.name==="something",bm=xi&&(!_i||_i&&gm(nc,"name").configurable);ac.exports={EXISTS:xi,PROPER:mm,CONFIGURABLE:bm}});var cc=n(uc=>{"use strict";var ym=_(),Im=It(),Sm=X(),Em=K(),qm=Y(),Pm=Oi();uc.f=ym&&!Im?Object.defineProperties:function(e,t){Em(e);for(var i=qm(t),o=Pm(t),a=o.length,u=0,d;a>u;)Sm.f(e,d=o[u++],i[d]);return e}});var Ai=n((RS,gc)=>{"use strict";var Tm=K(),Om=cc(),lc=Ti(),_m=yr(),xm=jt(),wm=tr(),Rm=br(),fc=">",dc="<",Ri="prototype",Ci="script",vc=Rm("IE_PROTO"),wi=function(){},hc=function(r){return dc+Ci+fc+r+dc+"/"+Ci+fc},pc=function(r){r.write(hc("")),r.close();var e=r.parentWindow.Object;return r=null,e},Cm=function(){var r=wm("iframe"),e="java"+Ci+":",t;return r.style.display="none",xm.appendChild(r),r.src=String(e),t=r.contentWindow.document,t.open(),t.write(hc("document.F=Object")),t.close(),t.F},Nr,Lr=function(){try{Nr=new ActiveXObject("htmlfile")}catch(e){}Lr=typeof document!="undefined"?document.domain&&Nr?pc(Nr):Cm():pc(Nr);for(var r=lc.length;r--;)delete Lr[Ri][lc[r]];return Lr()};_m[vc]=!0;gc.exports=Object.create||function(e,t){var i;return e!==null?(wi[Ri]=Tm(e),i=new wi,wi[Ri]=null,i[vc]=e):i=Lr(),t===void 0?i:Om.f(i,t)}});var Di=n((CS,yc)=>{"use strict";var Am=T(),Nm=P(),Lm=L(),km=Ai(),mc=Cr(),Dm=pe(),$m=x(),jm=M(),ki=$m("iterator"),bc=!1,W,Ni,Li;[].keys&&(Li=[].keys(),"next"in Li?(Ni=mc(mc(Li)),Ni!==Object.prototype&&(W=Ni)):bc=!0);var Mm=!Lm(W)||Am(function(){var r={};return W[ki].call(r)!==r});Mm?W={}:jm&&(W=km(W));Nm(W[ki])||Dm(W,ki,function(){return this});yc.exports={IteratorPrototype:W,BUGGY_SAFARI_ITERATORS:bc}});var Sc=n((AS,Ic)=>{"use strict";var Fm=Di().IteratorPrototype,Bm=Ai(),Um=_e(),Vm=je(),Gm=ie(),Km=function(){return this};Ic.exports=function(r,e,t,i){var o=e+" Iterator";return r.prototype=Bm(Fm,{next:Um(+!i,t)}),Vm(r,o,!1,!0),Gm[o]=Km,r}});var Ac=n((NS,Cc)=>{"use strict";var Wm=w(),Hm=N(),kr=M(),wc=sc(),zm=P(),Qm=Sc(),Ec=Cr(),qc=Nt(),Ym=je(),Jm=ce(),$i=pe(),Xm=x(),Pc=ie(),Rc=Di(),Zm=wc.PROPER,eb=wc.CONFIGURABLE,Tc=Rc.IteratorPrototype,Dr=Rc.BUGGY_SAFARI_ITERATORS,We=Xm("iterator"),Oc="keys",He="values",_c="entries",xc=function(){return this};Cc.exports=function(r,e,t,i,o,a,u){Qm(t,e,i);var d=function(b){if(b===o&&s)return s;if(!Dr&&b&&b in p)return p[b];switch(b){case Oc:return function(){return new t(this,b)};case He:return function(){return new t(this,b)};case _c:return function(){return new t(this,b)}}return function(){return new t(this)}},c=e+" Iterator",l=!1,p=r.prototype,v=p[We]||p["@@iterator"]||o&&p[o],s=!Dr&&v||d(o),f=e==="Array"&&p.entries||v,m,y,I;if(f&&(m=Ec(f.call(new r)),m!==Object.prototype&&m.next&&(!kr&&Ec(m)!==Tc&&(qc?qc(m,Tc):zm(m[We])||$i(m,We,xc)),Ym(m,c,!0,!0),kr&&(Pc[c]=xc))),Zm&&o===He&&v&&v.name!==He&&(!kr&&eb?Jm(p,"name",He):(l=!0,s=function(){return Hm(v,this)})),o)if(y={values:d(He),keys:a?s:d(Oc),entries:d(_c)},u)for(I in y)(Dr||l||!(I in p))&&$i(p,I,y[I]);else Wm({target:e,proto:!0,forced:Dr||l},y);return(!kr||u)&&p[We]!==s&&$i(p,We,s,{name:o}),Pc[e]=s,y}});var Lc=n((LS,Nc)=>{"use strict";Nc.exports=function(r,e){return{value:r,done:e}}});var Mi=n((kS,Mc)=>{"use strict";var rb=Y(),ji=xt(),kc=ie(),$c=oi(),tb=X().f,ib=Ac(),$r=Lc(),ob=M(),nb=_(),jc="Array Iterator",ab=$c.set,sb=$c.getterFor(jc);Mc.exports=ib(Array,"Array",function(r,e){ab(this,{type:jc,target:rb(r),index:0,kind:e})},function(){var r=sb(this),e=r.target,t=r.index++;if(!e||t>=e.length)return r.target=void 0,$r(void 0,!0);switch(r.kind){case"keys":return $r(t,!1);case"values":return $r(e[t],!1)}return $r([t,e[t]],!1)},"values");var Dc=kc.Arguments=kc.Array;ji("keys");ji("values");ji("entries");if(!ob&&nb&&Dc.name!=="values")try{tb(Dc,"name",{value:"values"})}catch(r){}});var Bc=n((DS,Fc)=>{"use strict";var ub=_(),cb=X(),lb=_e();Fc.exports=function(r,e,t){ub?cb.f(r,e,lb(0,t)):r[e]=t}});var Uc=n(()=>{"use strict";var fb=w(),db=wr(),pb=Bc();fb({target:"Object",stat:!0},{fromEntries:function(e){var t={};return db(e,function(i,o){pb(t,i,o)},{AS_ENTRIES:!0}),t}})});var Gc=n((MS,Vc)=>{"use strict";Mi();Uc();var vb=we();Vc.exports=vb.Object.fromEntries});var Wc=n((FS,Kc)=>{"use strict";Kc.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 zc=n(()=>{"use strict";Mi();var hb=Wc(),gb=q(),mb=je(),Hc=ie();for(jr in hb)mb(gb[jr],jr),Hc[jr]=Hc.Array;var jr});var Yc=n((VS,Qc)=>{"use strict";var bb=Gc();zc();Qc.exports=bb});var Xc=n((GS,Jc)=>{"use strict";var yb=Yc();Jc.exports=yb});var Ki=n((NE,ll)=>{"use strict";var Sb=$e(),Eb=String;ll.exports=function(r){if(Sb(r)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return Eb(r)}});var dl=n((LE,fl)=>{"use strict";var qb=or(),Pb=Ki(),Tb=se(),Ob=RangeError;fl.exports=function(e){var t=Pb(Tb(this)),i="",o=qb(e);if(o<0||o===1/0)throw new Ob("Wrong number of repetitions");for(;o>0;(o>>>=1)&&(t+=t))o&1&&(i+=t);return i}});var ml=n((kE,gl)=>{"use strict";var hl=O(),_b=Tt(),pl=Ki(),xb=dl(),wb=se(),Rb=hl(xb),Cb=hl("".slice),Ab=Math.ceil,vl=function(r){return function(e,t,i){var o=pl(wb(e)),a=_b(t),u=o.length,d=i===void 0?" ":pl(i),c,l;return a<=u||d===""?o:(c=a-u,l=Rb(d,Ab(c/d.length)),l.length>c&&(l=Cb(l,0,c)),r?o+l:l+o)}};gl.exports={start:vl(!1),end:vl(!0)}});var yl=n((DE,bl)=>{"use strict";var Nb=J();bl.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(Nb)});var Il=n(()=>{"use strict";var Lb=w(),kb=ml().start,Db=yl();Lb({target:"String",proto:!0,forced:Db},{padStart:function(e){return kb(this,e,arguments.length>1?arguments[1]:void 0)}})});var El=n((ME,Sl)=>{"use strict";Il();var $b=nr();Sl.exports=$b("String","padStart")});var Pl=n((FE,ql)=>{"use strict";var jb=El();ql.exports=jb});var Ol=n((BE,Tl)=>{"use strict";var Mb=Pl();Tl.exports=Mb});var Fb={};Ul(Fb,{ApiEnv:()=>de,ConnectionType:()=>cr,ContentType:()=>ur,InteractiveInterfaceClick:()=>wt,OneStat:()=>Wr,Quality:()=>sr,SeekAction:()=>lr,VERSION:()=>ke});module.exports=Vl(Fb);var Qi=U(ar(),1);var de=(u=>(u.PROD="prod",u.VK_ALIAS="vk_alias",u.VIDEOTEST="videotest",u.TEST="test",u.OKCDN="okcdn",u.AUTO="auto",u))(de||{}),sr=(l=>(l.Q144P="mobile",l.Q240P="lowest",l.Q360P="low",l.Q480P="medium",l.Q720P="high",l.Q1080P="fullhd",l.Q1440P="quadhd",l.Q2160P="ultrahd",l.UNKNOWN="unknown",l))(sr||{}),ur=(f=>(f.MP4="mp4",f.DASH="dash",f.DASH_SEP="dash_sep",f.ONDEMAND_DASH="ondemand_dash",f.HLS="hls",f.ONDEMAND_HLS="ondemand_hls",f.WEBM="webm",f.AV1="av1",f.ONDEMAND_DASH_LIVE="ondemand_dash_live",f.ONDEMAND_HLS_LIVE="ondemand_hls_live",f.WEBRTC="webrtc",f.UNKNOWN="unknown",f.RTMP="rtmp",f))(ur||{});var cr=(i=>(i.HTTP1="http1",i.HTTP2="http2",i.HTTP3="http3",i))(cr||{});var lr=(d=>(d.SLIDER="slider",d.DOUBLE_TAP="double_tap",d.TIME_CODE="time_code",d.EPISODE="episode",d.REWIND="rewind",d.LIVE="live",d.UNKNOWN="unknown",d))(lr||{}),wt=(a=>(a.GRAPH_SHOW="iGraphShow",a.GRAPH_HIDE="iGraphHide",a.NEXT_AREA="iNextChapterArea",a.NEXT_BUTTON="iNextChapterBtn",a.WATCH_AGAIN="iWatchAgainBtn",a))(wt||{}),zn={action_play:"ap",action_play_interactive:"api",first_bytes:"fb",player_ready:"pr",first_frame:"ff",seek:"sk",watch_coverage_record:"wr",watch_coverage_live:"wl",empty_buffer:"eb",action_stop:"as",close_at_empty_buffer:"cb",content_error:"er",player_interface_click:"pc",next_movie:"nm",track_switch:"ts",failover:"fo",quality:"qt"},Qn={vsid:"si",isid:"is",vid:"vi",place:"pl",quality:"qt",cdn_host:"ch",stat_type:"st",param:"pm",vk_app_id:"va",track_code:"tc",connection_type:"cnt",connection_reused:"cr",cached_data:"cd",live:"lv",muted:"mu",mode:"mo",subtitles:"sb",failover:"fo",download_speed:"ds",manual_quality:"mq",ref_domain:"rd",direct_url:"du"},Yn={unknown:"un",mobile:"m",lowest:"ls",low:"l",medium:"md",high:"h",fullhd:"f",quadhd:"q",ultrahd:"u"},Jn={pip:"pi",fullscreen:"fs",external:"ex",prefetch:"pr",airplay:"ap",chromecast:"cc",invisible:"iv"};var Zn=require("@vkontakte/videoplayer-shared/es2015");var ke="1.0.71-dev.baeb26ff.0",Xn="CIOPGQJGDIHBABABA",Rt={prod:"https://api.ok.ru",vk_alias:"https://api.mycdn.me",videotest:"https://videotestapi.ok.ru/api",test:"https://apitest.ok.ru",okcdn:"https://api.okcdn.ru",auto:""};var dp={apiEnv:"vk_alias",apiKey:Xn,requestRetryCount:1,firstFlushTime:5e3,flushDebounceTime:1e4,flushMaxWait:6e4,storageExpiration:36*60*60*1e3,watchCoverageInterval:15e3,disabledOperations:["quality"],disabledCustomFields:[],shorten:!0,maxLoops:100,embedUrlParams:[],useBeacon:!0,synchronizeTime:!0,debugLog:!1,clearStorageAtUnload:!0,backoff:{start:1e3,factor:1.5,max:5*60*1e3,random:.1}},ea=r=>(0,Zn.fillWithDefault)(r,dp);function Ct(){let r="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),e=new Array(36),t=0,i,o;for(o=0;o<36;o++)o===8||o===13||o===18||o===23?e[o]="-":o===14?e[o]="4":(t<=2&&(t=33554432+Math.random()*16777216|0),i=t&15,t=t>>4,e[o]=r[o===19?i&3|8:i]);return e.join("")}var h=require("@vkontakte/videoplayer-shared/es2015"),Hr=require("@vkontakte/videoplayer-shared/es2015");var Mr=U($u(),1);var Zc=U(Ar(),1),el=U(Xc(),1);var rl=r=>{var o;let{operation:e,custom:t}=r,i=(0,el.default)((0,Zc.default)(t).map(([a,u])=>{var l,p,v;let d=(l=Qn[a])!=null?l:a,c=u;return u&&(a==="mode"?c=(p=Jn[u])!=null?p:u:a==="quality"&&(c=(v=Yn[u])!=null?v:u)),[d,c]}));return ae(B({},r),{operation:(o=zn[e])!=null?o:e,custom:i})};var $=require("@vkontakte/videoplayer-shared/es2015");var ze=class{constructor(e){this.consequentAuthErrors=0;this.authorized$=new $.ValueSubject(!1);this.params=e}authorize(e){return j(this,null,function*(){return this.authToken=e!=null?e:yield this.refreshAuthToken(),this._authorizeWithBackoff()})}logBeacon(e){let t="log.externalLog",i=this.createLogParams(e),o=this.sessionKey;if(!o)return;this.params.apiTransport.sendBeacon(t,i,o)||this.logRequest(e).catch(()=>{})}logRequest(e){return j(this,null,function*(){var u;let t="log.externalLog",i=this.createLogParams(e),o=(u=this.sessionKey)!=null?u:yield this._authorizeWithBackoff();if(!o)return;let a=(l,...p)=>j(this,[l,...p],function*(d,c=this.params.config.requestRetryCount){try{return yield this.params.apiTransport.sendRequest(t,i,o)}catch(v){if(!v||!("error_code"in v)){this.params.error$.next({id:"logRequestUnknown",category:$.ErrorCategory.NETWORK,message:`Unknown ${t} error`,thrown:v});return}let s=v==null?void 0:v.error_code;switch(s){case 102:case 103:case 104:return this.authorized$.next(!1),this.sessionKey=yield this._authorizeWithBackoff(),c>0?a(d,c-1):void 0;case 401:return this.authorized$.next(!1),this.authToken=yield this.refreshAuthToken(),this.sessionKey=yield this._authorizeWithBackoff(),c>0?a(d,c-1):void 0;default:{this.params.error$.next({id:`LogRequest#${s}`,category:$.ErrorCategory.EXTERNAL_API,message:`${t} error`,data:v});return}}}});return a(e)})}destroy(){window.clearTimeout(this.backoffTimeoutId),this.backoffTimeoutId=0}refreshAuthToken(){return j(this,null,function*(){if(this.params.refreshAuthToken)return this.refreshAuthTokenPromise||(this.refreshAuthTokenPromise=(0,Mr.default)(this.params.refreshAuthToken(),()=>{this.refreshAuthTokenPromise=void 0})),this.refreshAuthTokenPromise})}createLogParams(e){return{collector:"ok.mobile.apps.video",data:JSON.stringify({application:`@vkontakte/videoplayer-statistics:${ke}`,platform:this.params.mobile?"M_WEB":"WEB",items:this.params.config.shorten?e.map(rl):e})}}_authorizeWithBackoff(){if(!this.consequentAuthErrors)return this._authorize();let e=(0,$.getExponentialDelay)(this.consequentAuthErrors,this.params.config.backoff);return new Promise(t=>{this.backoffTimeoutId||(this.backoffTimeoutId=window.setTimeout(()=>{(0,Mr.default)(this._authorize().then(t).catch(i=>this.params.error$.next({id:"AuthorizeBackoff",category:$.ErrorCategory.NETWORK,message:"Otherwise unhandled error in authorization",thrown:i})),()=>this.backoffTimeoutId=0)},e))})}_authorize(){return j(this,null,function*(){if(this.authorizePromise)return this.authorizePromise;this.sessionKey=void 0,this.authorized$.next(!1);let e="auth.anonymLogin",t={session_data:{version:2,device_id:this.params.deviceId,client_version:ke.split("-")[0],client_type:"SDK_JS"}};return this.authToken!==void 0&&(t.session_data.auth_token=this.authToken,t.session_data.version=3),this.authorizePromise=(0,Mr.default)(this.params.apiTransport.sendRequest(e,t).then(i=>{var o;return(!i||!i.session_key)&&this.params.error$.next({id:"AuthorizeFailed",category:$.ErrorCategory.EXTERNAL_API,message:"No session key",data:i}),this.sessionKey=(o=i==null?void 0:i.session_key)!=null?o:void 0,this.sessionKey}).catch(i=>j(this,null,function*(){this.sessionKey=void 0;let o=i==null?void 0:i.error_code;switch(o){case 401:return this.authToken=yield this.refreshAuthToken(),this._authorizeWithBackoff()}o?this.params.error$.next({id:`Authorize#${o}`,category:$.ErrorCategory.EXTERNAL_API,message:"authorize error",data:i}):this.params.error$.next({id:"AuthorizeUnknown",category:$.ErrorCategory.NETWORK,message:"authorize error",thrown:i})})),()=>{this.authorizePromise=void 0,this.consequentAuthErrors=this.sessionKey?0:this.consequentAuthErrors+1,this.authorized$.next(this.sessionKey!==void 0)}),this.authorizePromise})}};var Fr=class{constructor(){Object.defineProperty(this,"listeners",{value:{},writable:!0,configurable:!0})}addEventListener(e,t,i){e in this.listeners||(this.listeners[e]=[]),this.listeners[e].push({callback:t,options:i})}removeEventListener(e,t){if(!(e in this.listeners))return;let i=this.listeners[e];for(let o=0,a=i.length;o<a;o++)if(i[o].callback===t){i.splice(o,1);return}}dispatchEvent(e){if(!(e.type in this.listeners))return;let i=this.listeners[e.type].slice();for(let o=0,a=i.length;o<a;o++){let u=i[o];try{u.callback.call(this,e)}catch(d){Promise.resolve().then(()=>{throw d})}u.options&&u.options.once&&this.removeEventListener(e.type,u.callback)}return!e.defaultPrevented}},Ee=class extends Fr{constructor(){super(),this.listeners||Fr.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(e){e.type==="abort"&&(this.aborted=!0,typeof this.onabort=="function"&&this.onabort.call(this,e)),super.dispatchEvent(e)}},Qe=class{constructor(){Object.defineProperty(this,"signal",{value:new Ee,writable:!0,configurable:!0})}abort(e){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 i=e;if(i===void 0)if(typeof document=="undefined")i=new Error("This operation was aborted"),i.name="AbortError";else try{i=new DOMException("signal is aborted without reason")}catch(o){i=new Error("This operation was aborted"),i.name="AbortError"}this.signal.reason=i,this.signal.dispatchEvent(t)}toString(){return"[object AbortController]"}};typeof Symbol!="undefined"&&Symbol.toStringTag&&(Qe.prototype[Symbol.toStringTag]="AbortController",Ee.prototype[Symbol.toStringTag]="AbortSignal");function Br(r){return r.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL?(console.log("__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL=true is set, will force install polyfill"),!0):typeof r.Request=="function"&&!r.Request.prototype.hasOwnProperty("signal")||!r.AbortController}function Fi(r){typeof r=="function"&&(r={fetch:r});let{fetch:e,Request:t=e.Request,AbortController:i,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:o=!1}=r;if(!Br({fetch:e,Request:t,AbortController:i,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:o}))return{fetch:e,Request:a};let a=t;(a&&!a.prototype.hasOwnProperty("signal")||o)&&(a=function(l,p){let v;p&&p.signal&&(v=p.signal,delete p.signal);let s=new t(l,p);return v&&Object.defineProperty(s,"signal",{writable:!1,enumerable:!1,configurable:!0,value:v}),s},a.prototype=t.prototype);let u=e;return{fetch:(c,l)=>{let p=a&&a.prototype.isPrototypeOf(c)?c.signal:l?l.signal:void 0;if(p){let v;try{v=new DOMException("Aborted","AbortError")}catch(f){v=new Error("Aborted"),v.name="AbortError"}if(p.aborted)return Promise.reject(v);let s=new Promise((f,m)=>{p.addEventListener("abort",()=>m(v),{once:!0})});return l&&l.signal&&delete l.signal,Promise.race([s,u(c,l)])}return u(c,l)},Request:a}}var Ye=Br({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}),tl=Ye?Fi({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}):void 0,Bi=Ye?tl.fetch:window.fetch,lE=Ye?tl.Request:window.Request,fE=Ye?Qe:window.AbortController,dE=Ye?Ee:window.AbortSignal;var il=U(ar(),1),ol=U(Ar(),1),H=require("@vkontakte/videoplayer-shared/es2015");var Je=class{constructor(e){this.params=e,this.apiKey=e.config.apiKey,this.apiEnv=e.config.apiEnv,this.apiBaseUrl=Rt[this.apiEnv],this.timeSynchronisation=e.timeSynchronisation,this.isApiBaseUrlFetched=!1}resolveApiBaseUrl(){return j(this,null,function*(){var e;if(this.apiEnv!=="auto"||this.isApiBaseUrlFetched)return this.apiBaseUrl;try{let t=atob("aHR0cHM6Ly9kbnMuZ29vZ2xlL3Jlc29sdmU/bmFtZT12aWRlby5fZW5kcG9pbnQub2sucnUmdHlwZT1UWFQ="),o=yield(yield Bi(t,{method:"GET",mode:"cors",cache:"no-cache"})).json(),a=(e=o==null?void 0:o.Answer[0])==null?void 0:e.data;if(!a)throw new Error("Wrong DNS response");return a}catch(t){return this.params.error$.next({id:"OneStat:ApiTransport:resolveApiBaseUrl",category:H.ErrorCategory.NETWORK,message:"Unhandled resolve api base url error",thrown:t}),Rt.vk_alias}finally{this.isApiBaseUrlFetched=!0}})}sendBeacon(e,t,i){if(!window.Blob||!window.navigator.sendBeacon)return!1;let o=this._prepareQueryParams({method:e,queryParams:t,sessionKey:i}),a=new window.Blob([o.toString()],{type:"application/x-www-form-urlencoded"});try{return window.navigator.sendBeacon(`${this.apiBaseUrl}/fb.do`,a)}catch(u){this.params.error$.next({id:"OneStat:ApiTransport:sendBeacon",category:H.ErrorCategory.NETWORK,message:"Unhandled beacon error",thrown:u,data:{method:e,params:t}})}return!1}sendRequest(e,t,i){return j(this,null,function*(){let o=(0,H.now)(),a=u=>{if(u instanceof TypeError&&(0,il.default)(["Failed to fetch","NetworkError when attempting to fetch resource."],u.message)){this.params.error$.next({id:"Network",category:H.ErrorCategory.NETWORK,message:"Request failed",thrown:u});return}this.params.error$.next({id:"OneStat:ApiTransport:sendRequest",category:H.ErrorCategory.NETWORK,message:"Unhandled request error",thrown:u,data:{method:e,params:t,sessionKey:i,time:(0,H.now)()-o}})};return this.apiBaseUrl=yield this.resolveApiBaseUrl(),Bi(`${this.apiBaseUrl}/fb.do`,{method:"post",headers:{"Content-type":"application/x-www-form-urlencoded"},body:this._prepareQueryParams({method:e,queryParams:t,sessionKey:i})}).then(u=>{var p,v;let d=Number(u.headers.get("content-length"))===0,c=new Date((p=u.headers.get("date"))!=null?p:"").getTime(),l=(0,H.now)()-o;if(isFinite(c)&&((v=this.timeSynchronisation)==null||v.addServerTime(c,l)),!d)return u.json().then(s=>Object.prototype.hasOwnProperty.call(s,"error_msg")?Promise.reject(s):s,a)},a)})}_prepareQueryParams(e){let t=new URLSearchParams({format:"JSON",method:e.method,application_key:this.apiKey});return e.sessionKey!==void 0&&t.append("session_key",e.sessionKey),(0,ol.default)(e.queryParams).forEach(([i,o])=>t.append(i,typeof o=="string"?o:JSON.stringify(o))),t}};var nl=U(ar(),1),al=U(Ar(),1),C=require("@vkontakte/videoplayer-shared/es2015");var Ur="onestat_events",Ui=r=>e=>e.timestamp+r>=(0,C.now)(),Vr=class{constructor(e){this.unsaltedStorage=[];this.isPaused=!1;this.isUrgent=e=>{let{operation:t}=e;return(0,nl.default)(["action_play","watch_coverage_record","watch_coverage_live"],t)};this.params=e,this.api=e.api,this.error$=e.error$,this.userSalt=e.userSalt,this.loggerDebugLog=e.debugLogger.createComponentLog("stat logger"),this.firstFlush=(0,C.debounceFn)(()=>this.safeFlush(),this.params.config.firstFlushTime,{maxWait:this.params.config.firstFlushTime});let t=C.safeStorage.isPersistent()?this.params.config.flushMaxWait:0;this.debouncedFlush=(0,C.debounceFn)(()=>this.safeFlush(),this.params.config.flushDebounceTime,{maxWait:t}),this.subscription=this.api.authorized$.subscribe(i=>{i&&this.debouncedFlush()}),this.housekeepStorage()}safeFlush(){var e;try{this.flush()}catch(t){this.error$.next({id:"LoggerError",category:C.ErrorCategory.WTF,message:(e=String(t))!=null?e:"Unknown logger error",thrown:t})}}readFromStorage(){let e=C.safeStorage.get(Ur);try{return e?JSON.parse(e):{}}catch(t){}return{}}addToStorage(e){var a;if(!this.userSalt){this.unsaltedStorage.push(e);return}let t=this.readFromStorage(),o=((a=t[this.userSalt])!=null?a:[]).filter(Ui(this.params.config.storageExpiration));C.safeStorage.set(Ur,JSON.stringify(ae(B({},t),{[this.userSalt]:[...o,e]})))}getFromStorage(){var i;return this.userSalt?((i=this.readFromStorage()[this.userSalt])!=null?i:[]).filter(Ui(this.params.config.storageExpiration)):this.unsaltedStorage}markStorageSent(){if(!this.userSalt){this.unsaltedStorage=[];return}let e=this.readFromStorage();delete e[this.userSalt],C.safeStorage.set(Ur,JSON.stringify(e))}housekeepStorage(){let e=this.readFromStorage();for(let[t,i]of(0,al.default)(e)){let o=i.filter(Ui(this.params.config.storageExpiration));o.length?e[t]=o:delete e[t],this.loggerDebugLog({message:`${i.length} retrieved from storage, ${o.length} of them actual`})}C.safeStorage.set(Ur,JSON.stringify(e))}log(e){this.addToStorage(e),!this.isPaused&&(this.isUrgent(e)?this.flush():this.lastVsid!==e.custom.vsid?this.firstFlush():this.debouncedFlush(),this.lastVsid=e.custom.vsid)}flush({wantBeacon:e,clearStorage:t}={wantBeacon:!1,clearStorage:!0}){let i=this.getFromStorage();i.length!==0&&(this.api.authorized$.getValue()?(e&&this.params.config.useBeacon?(this.loggerDebugLog({message:`Flushing ${i.length} events through beacon`}),this.api.logBeacon(i)):(this.loggerDebugLog({message:`Flushing ${i.length} events`}),this.api.logRequest(i)),t&&this.markStorageSent()):this.api.authorize(),this.firstFlush.cancel(),this.debouncedFlush.cancel())}pause(){this.isPaused=!0,this.debouncedFlush.cancel()}resume(){this.isPaused=!1,this.debouncedFlush()}destroy(){this.subscription.unsubscribe(),this.firstFlush.cancel(),this.debouncedFlush.cancel()}};var g=require("@vkontakte/videoplayer-core/es2015"),Vi=require("@vkontakte/videoplayer-shared/es2015");var sl=r=>r&&{[g.VideoQuality.INVARIANT]:"unknown",[g.VideoQuality.Q_144P]:"mobile",[g.VideoQuality.Q_240P]:"lowest",[g.VideoQuality.Q_360P]:"low",[g.VideoQuality.Q_480P]:"medium",[g.VideoQuality.Q_576P]:"unknown",[g.VideoQuality.Q_720P]:"high",[g.VideoQuality.Q_1080P]:"fullhd",[g.VideoQuality.Q_1440P]:"quadhd",[g.VideoQuality.Q_2160P]:"ultrahd",[g.VideoQuality.Q_4320P]:"unknown"}[r],Gi=r=>r&&{[g.HttpConnectionType.HTTP1]:"http1",[g.HttpConnectionType.HTTP2]:"http2",[g.HttpConnectionType.QUIC]:"http3"}[r],ul=r=>{if(r!==void 0)switch(r){case g.VideoFormat.MPEG:return"mp4";case g.VideoFormat.DASH:case g.VideoFormat.DASH_LIVE:case g.VideoFormat.DASH_STREAMS:return"dash";case g.VideoFormat.DASH_SEP:return"dash_sep";case g.VideoFormat.DASH_ONDEMAND:return"ondemand_dash";case g.VideoFormat.DASH_WEBM:case g.VideoFormat.DASH_LIVE_WEBM:return"webm";case g.VideoFormat.DASH_WEBM_AV1:return"av1";case g.VideoFormat.DASH_LIVE_CMAF:return"ondemand_dash_live";case g.VideoFormat.HLS:case g.VideoFormat.HLS_LIVE:return"hls";case g.VideoFormat.HLS_ONDEMAND:return"ondemand_hls";case g.VideoFormat.HLS_LIVE_CMAF:return"ondemand_hls_live";case g.VideoFormat.WEB_RTC_LIVE:return"webrtc";default:return(0,Vi.assertNever)(r)}},Gr=r=>{if(r!==void 0)switch(r){case g.Surface.NONE:case g.Surface.INLINE:return;case g.Surface.FULLSCREEN:return"fullscreen";case g.Surface.SECOND_SCREEN:return"chromecast";case g.Surface.PIP:return"pip";case g.Surface.INVISIBLE:return"invisible";default:return(0,Vi.assertNever)(r)}},cl=r=>{switch(r){case"slow-2g":return"poor";case"2g":return"poor";case"3g":return"good";case"4g":return"excellent"}};var Kr=class{constructor(e){this.offset=void 0;this.offset=e}getOffset(){var e;return(e=this.offset)!=null?e:0}setOffset(e){this.offset=e}now(){var e;return Date.now()+((e=this.offset)!=null?e:0)}date(e=new Date){var t;return e.setTime(e.getTime()+((t=this.offset)!=null?t:0)),e}addServerTime(e,t){let i=Date.now(),o=e-i-t/2;if(Math.abs(o)<1e3){this.offset=0;return}this.offset===void 0?this.offset=Math.round(o):this.offset=Math.round(.2*o+(1-.2)*this.offset)}};var Wi=U(Ol(),1);var _l=()=>(0,Wi.default)(Math.floor(Math.random()*zr(2,32)).toString(36),7,"0"),xl=()=>(0,Wi.default)(Math.floor(Math.random()*zr(2,64)).toString(36),13,"0");var Hi=require("@vkontakte/videoplayer-core/es2015"),S=require("@vkontakte/videoplayer-shared/es2015"),wl=(r,e)=>new S.Observable(t=>{let i=new S.Subscription,o=(0,S.merge)((0,S.fromEvent)(window,"beforeunload"),r.events.willDestruct$),a=new S.ValueSubject(void 0),u;i.add(r.info.isLive$.pipe((0,S.filterChanged)()).subscribe(A=>{u&&(u.unsubscribe(),a.next(void 0)),A?u=r.info.liveTime$.pipe((0,S.map)(ne=>ne&&ne/1e3)).subscribe(a):u=r.info.position$.subscribe(a),i.add(u)}));let{playing$:d,paused$:c}=r.events,l=r.events.willSeek$.pipe((0,S.filter)(()=>r.info.playbackState$.getValue()===Hi.PlaybackState.PLAYING)),p=r.events.seeked$.pipe((0,S.filter)(()=>r.info.playbackState$.getValue()===Hi.PlaybackState.PLAYING)),v=!1,s=new S.Subject;i.add(l.subscribe(()=>{v||s.next(),v=!0})),i.add(p.subscribe(()=>v=!1));let f=new S.Subject,m=new S.Subject,y=(0,S.merge)(d,p,f),I=(0,S.merge)(c,s,o,r.events.looped$,m),b,E=()=>b=a.getValue(),z=()=>{let A=a.getValue();(0,S.isNullable)(b)||b===A||(0,S.isNullable)(A)||(t.next({from:b,to:A}),b=void 0)},oe=()=>{m.next(),f.next()};if(i.add(y.subscribe(E)),i.add(I.subscribe(z)),e.forceInterval&&isFinite(e.forceInterval)){let A=0;i.add(y.subscribe(()=>A=window.setTimeout(oe,e.forceInterval))),i.add(I.subscribe(()=>window.clearTimeout(A)))}return i});var Al="_one-stat_",Rl=`${Al}uuid`,Cl=`${Al}deviceId`,zi=()=>{let r=new h.Subscription;return{subscription:r,subscribe:(e,t)=>{e&&r.add(e.subscribe(t))}}},Wr=class{constructor(e,t){this.subscription=new h.Subscription;this.debugLogger=new Hr.Logger;this.oneStatDebugLog=this.debugLogger.createComponentLog("onestat");this.loopCounter=0;this.disabled=!1;this.vsid$=new h.ValueSubject(void 0);this.isid$=new h.ValueSubject(void 0);this.seekAction$=new h.ValueSubject("unknown");var l,p,v;this.statContext=e,this.config=ea((l=t.config)!=null?l:{}),(0,h.isNonNullable)(t.apiEnv)&&(this.config.apiEnv=t.apiEnv),this.config.synchronizeTime&&(this.timeSynchronisation=new Kr);let i=new h.Subject;this.experimental={error$:i},h.safeStorage.get(Rl)&&h.safeStorage.remove(Rl);let a=h.safeStorage.get(Cl);this.statContext.deviceId?this.deviceId=this.statContext.deviceId:a?this.deviceId=a:(this.deviceId=Ct(),h.safeStorage.set(Cl,this.deviceId)),this.resetViewSession(),t.useIsid&&this.isid$.next((p=t.isid)!=null?p:xl());let u=new Je({config:this.config,error$:i,timeSynchronisation:this.timeSynchronisation});this.api=new ze({config:this.config,apiTransport:u,refreshAuthToken:t.refreshAuthToken,mobile:(v=this.statContext.mobile)!=null?v:!1,deviceId:this.deviceId,error$:i}),this.logger=new Vr({config:this.config,debugLogger:this.debugLogger,api:this.api,error$:i,userSalt:t.userSalt});let{isEmbed:d,topOrigin:c}=(0,Hr.detectEmbed)();this.isEmbed=d,this.embedParent=c?new URL(c).hostname:void 0,this.subscribe()}updateContext(e){this.statContext=B(B({},this.statContext),e)}attachTo(e){let t=new h.Subscription,i=(s,f)=>t.add(s.subscribe(f));i(e.events.willStart$,()=>{let s=e.info.position$.getValue();this.logActionPlay({position:s}),this.statContext.projectId&&this.logActionPlayInteractive()}),i(e.events.looped$,()=>{this.resetViewSession(),++this.loopCounter>this.config.maxLoops&&(this.disabled=!0),this.logActionPlay({position:e.info.position$.getValue()})}),i(e.events.seeked$,()=>{this.logSeek({action:this.seekAction$.getValue(),time:e.info.position$.getValue()}),this.seekAction$.next("unknown")}),i(e.events.paused$,()=>{this.logPause({position:e.info.position$.getValue()})}),i(e.events.willResume$,()=>{this.logPlay()}),i(e.events.started$,()=>{this.statContext.clip&&this.logWatchCoverageRecord({start:0,end:0})}),i(e.events.playing$,()=>{this.logPlaying()}),i(wl(e,{forceInterval:this.config.watchCoverageInterval}),s=>{var E,z,oe,A;let f=e.info.isLive$.getValue(),m=e.info.atLiveEdge$.getValue(),y={start:parseFloat(s.from.toFixed(3)),end:parseFloat(s.to.toFixed(3))},I,b;if(f&&m){let ne=(E=e.info.liveLatency$.getValue())!=null?E:0,Nl=(oe=(z=e.info.currentBuffer$.getValue())==null?void 0:z.end)!=null?oe:0,Ll=(A=e.info.liveBufferTime$.getValue())!=null?A:0;I=Math.round(ne*1e3),b=Math.round((ne-(Nl-Ll))*1e3),I&&b&&(y=ae(B({},y),{latency:I,bufferLatency:b}))}f?this.logWatchCoverageLive(y):this.logWatchCoverageRecord(y)});let o;i(e.info.isStalled$,s=>{s?o=(0,h.now)():((0,h.isNonNullable)(o)&&this.logEmptyBuffer({duration:(0,h.now)()-o}),o=void 0)});let a=!1;t.add(e.events.fatalError$.pipe((0,h.once)()).subscribe(()=>a=!0)),i(e.events.willStop$,()=>{if(e.info.isStalled$.getValue()){let f=(0,h.isNonNullable)(o)?(0,h.now)()-o:void 0;this.logCloseAtEmptyBuffer({duration:f!=null?f:0}),o=void 0}else a||this.logActionStop()}),i(e.events.managedError$,({id:s})=>{this.logError({fatal:!1,errorType:s})}),i(e.events.fatalError$,({id:s})=>{this.logError({fatal:!0,errorType:s})});let u,d,c=!1;i(e.events.firstBytes$,s=>{u=(0,h.now)(),this.logFirstBytes({time:s})}),i(e.events.willStart$,()=>d=(0,h.now)()),i(e.info.currentBuffer$,s=>{!c&&s&&s.end-s.start>0&&(0,h.isNonNullable)(u)&&(this.logPlayerReady({duration:(0,h.now)()-u}),c=!0)}),i(e.events.firstFrame$,()=>{(0,h.isNonNullable)(u)&&!c&&(this.logPlayerReady({duration:(0,h.now)()-u}),c=!0),(0,h.isNonNullable)(d)&&this.logFirstFrame({time:(0,h.now)()-d})});let l;i(e.info.currentVideoStream$,s=>{s&&(l&&s.id!==l&&this.logTrackSwitch(s),l=s.id)});let p;i(e.info.currentAudioStream$,s=>{s&&(p&&s.id!==p&&this.logTrackSwitch(s),p=s.id)}),i(e.info.atLiveEdge$,s=>this.updateContext({liveEdge:s})),i((0,h.combine)({muted:e.info.muted$,volume:e.info.volume$}),({muted:s,volume:f})=>this.updateContext({audible:!s&&f>0})),i(e.info.currentQuality$,s=>{let f=sl(s);this.updateContext({quality:f}),f&&this.logQuality(f)}),i(e.info.isAutoQualityEnabled$,s=>this.updateContext({autoQuality:s})),i(e.info.currentFormat$,s=>this.updateContext({contentType:ul(s)})),i(e.info.currentPlaybackRate$,s=>this.updateContext({rate:s})),i(e.info.is3DVideo$,s=>this.updateContext({is3d:s}));let v;return i(e.info.hostname$,s=>{let f=v!==void 0&&v!==s;this.updateContext({cdnHostname:s,failover:f}),f&&this.logFailover(s),v=s}),i(e.info.throughputEstimation$,s=>this.updateContext({downloadSpeed:s})),i(e.info.httpConnectionType$,s=>{this.statContext.firstConnectionType||this.updateContext({firstConnectionType:Gi(s)}),this.updateContext({connectionType:Gi(s)})}),i(e.info.httpConnectionReused$,s=>{(0,h.isNullable)(this.statContext.firstConnectionReused)&&this.updateContext({firstConnectionReused:s}),this.updateContext({connectionReused:s})}),i(e.info.surface$,s=>this.updateContext({mode:Gr(s)})),i((0,h.combine)({current:e.info.currentTextTrack$,available:e.info.availableTextTracks$}),({current:s,available:f})=>{let m=f.find(({id:I})=>I===s),y=m&&(m.isAuto?`${m.language}_auto`:m.language);this.updateContext({subtitles:y==null?void 0:y.split(".")[0]})}),this.player=e,this.uiEvents&&this.attachToUi(this.uiEvents),this.resubscribeBeforeunload(),this.subscription.add(t),t}attachToUi(e){this.uiEvents=e;let{subscription:t,subscribe:i}=zi();return this.player&&(i(e.actionRewind$,()=>{this.player&&(this.resetViewSession(),this.logActionPlay({position:this.player.info.position$.getValue()}))}),i(e.actionSeek$,this.seekAction$),i(e.inPiP$,o=>{var u;let a=o?"pip":Gr((u=this.player)==null?void 0:u.info.surface$.getValue());this.updateContext({mode:a})}),i(e.inFullscreen$,o=>{var u;let a=o?"fullscreen":Gr((u=this.player)==null?void 0:u.info.surface$.getValue());this.updateContext({mode:a})}),i(e.actionSetSubtitle$,o=>this.updateContext({subtitles:o.split(".")[0]})),i(e.nextMovie$,o=>this.logNextMovie(o)),this.resubscribeBeforeunload(),this.subscription.add(t)),t}attachToAds(e){let{subscription:t,subscribe:i}=zi();return i(e.slotRequested$,()=>this.logAdSlotRequest()),i(e.started$,o=>this.logAdStarted(o)),i(e.paused$,()=>this.logAdPaused()),i(e.resumed$,()=>this.logAdResumed()),i(e.ended$,()=>this.logAdEnded()),i(e.skipped$,()=>this.logAdSkipped()),i(e.clicked$,()=>this.logAdClicked()),i(e.error$,o=>this.logError({errorType:o,fatal:!1})),this.resubscribeBeforeunload(),this.subscription.add(t),t}attachToInteractive(e){let{subscription:t,subscribe:i}=zi();return i(e.click$,o=>this.logInterfaceClick(o)),i(e.nextMovie$,o=>this.logNextMovie(o)),this.resubscribeBeforeunload(),this.subscription.add(t),t}authorize(e){return this.api.authorize(e)}pause(){this.logger.pause(),this.oneStatDebugLog({message:"paused"})}resume(){this.logger.resume(),this.oneStatDebugLog({message:"resumed"})}destroy(){this.logger.flush(),this.subscription.unsubscribe(),this.api.destroy(),this.logger.destroy()}resetViewSession(){this.oneStatDebugLog({message:"VSID reset"}),this.vsid$.next(_l())}getDeviceId(){return this.deviceId}setFieldBlacklist(){}logInited(){}logReady(e){this.log({operation:"player_ready",param:String(e.time)})}logStarted(...e){this.logActionPlay(...e)}logPlay(){this.log({operation:"play_toggle"})}logPlaying(){this.log({operation:"playing"})}logPause(e){this.log({operation:"pause",param:String(Math.round(e.position))})}logSeek(e){this.log({operation:"seek",param:e.action,time:e.time})}logFirstBytes(e){this.log({operation:"first_bytes",param:String(e.time)})}logFirstFrame(e){this.log({operation:"first_frame",param:String(e.time)})}logError(e){this.log({operation:"content_error",param:`${e.fatal?"fatal":"recoverable"}_${e.errorType}`})}logWatchCoverageRecord(e){this.log({operation:"watch_coverage_record",param:`${e.start}-${e.end}`},{in_history:this.statContext.inHistory?1:void 0})}logWatchCoverageLive(e){var a,u;let t=(u=(a=this.timeSynchronisation)==null?void 0:a.getOffset())!=null?u:0,i=e.start+t,o=e.end+t;this.log({operation:"watch_coverage_live",param:`${i}-${o}`},{in_history:this.statContext.inHistory?1:void 0,latency:e.latency,buffer_latency:e.bufferLatency})}logEmptyBuffer(e){this.log({operation:"empty_buffer",param:String(e.duration)})}logDownloadSpeed(){}logAdSlotRequest(){this.log({operation:"adv",param:"slot_request"})}logAdStarted(e){this.log({operation:"adv",param:e})}logAdPaused(){this.log({operation:"adv",param:"pause"})}logAdResumed(){this.log({operation:"adv",param:"resume"})}logAdEnded(){this.log({operation:"adv",param:"ended"})}logAdSkipped(){this.log({operation:"adv",param:"skip"})}logAdClicked(){this.log({operation:"adv",param:"click"})}logInterfaceClick(e){this.log({operation:"player_interface_click",param:e})}logNextMovie(e){this.log({operation:"next_movie",param:String(e)})}subscribe(){this.resubscribeBeforeunload();let e=window.navigator.connection;e&&"onchange"in e&&"effectiveType"in e&&this.subscription.add((0,h.merge)((0,h.fromEvent)(e,"change"),(0,h.observableFrom)(["init"])).subscribe(()=>this.updateContext({network:cl(e.effectiveType)}))),this.config.debugLog&&this.debugLogger.log$.subscribe(t=>{console.debug("%c stat ","background:#fa6470;",`component: ${t.component}.`,t.message)})}resubscribeBeforeunload(){var e;(e=this.beforeunloadSubscription)==null||e.unsubscribe(),this.beforeunloadSubscription=(0,h.fromEvent)(window,"beforeunload").subscribe(()=>this.logger.flush({wantBeacon:!0,clearStorage:this.config.clearStorageAtUnload})),this.subscription.add(this.beforeunloadSubscription)}logPlayerReady(e){this.log({operation:"player_ready",param:String(Math.round(e.duration))})}logActionPlay(e){this.log({operation:"action_play",param:String(Math.round(e.position))})}logActionPlayInteractive(){this.statContext.projectId&&this.log({operation:"action_play_interactive",param:String(this.statContext.movieId)},{vid:this.statContext.projectId})}logFailover(e){this.log({operation:"failover",param:e})}logCloseAtEmptyBuffer(e){this.log({operation:"close_at_empty_buffer",param:String(Math.round(e.duration))})}logActionStop(){this.log({operation:"action_stop"})}logTrackSwitch(e){this.log({operation:"track_switch",param:e.id})}logQuality(e){this.log({operation:"quality",param:e})}log(e,t={}){if(this.disabled){this.oneStatDebugLog({message:`operation ${e.operation} but statistics is disabled`});return}if((0,Qi.default)(this.config.disabledOperations,e.operation)){this.oneStatDebugLog({message:`operation ${e.operation} but it is disabled`});return}this.oneStatDebugLog({message:`operation ${e.operation} ${e.param}`});let i=this.createLogItem(e,t);this.logger.log(i)}createLogItem({operation:e,param:t,time:i},o={}){var f,m,y,I,b,E;let a=(m=(f=this.timeSynchronisation)==null?void 0:f.now())!=null?m:(0,h.now)(),u=this.vsid$.getValue();(0,h.assertNonNullable)(u);let d=this.isid$.getValue(),c=e==="empty_buffer"||e==="close_at_empty_buffer"?this.statContext.connectionType:this.statContext.firstConnectionType,l=this.statContext.firstConnectionReused,p,v;if(this.isEmbed||this.statContext.place==="embed"){p=this.embedParent;let z=[...new URLSearchParams(location.search).entries()].filter(([oe,A])=>(0,Qi.default)(this.config.embedUrlParams,oe));v=new URLSearchParams(z).toString()}else this.statContext.place==="direct"&&(this.statContext.refDomain?p=(I=(y=(0,h.createURL)(this.statContext.refDomain))==null?void 0:y.hostname)!=null?I:this.statContext.refDomain:document.referrer&&(p=(E=(b=(0,h.createURL)(document.referrer))==null?void 0:b.hostname)!=null?E:document.referrer),v=location.href.substring(0,1024));let s=B({vsid:u,isid:d,vid:this.statContext.movieId,ct:this.statContext.contentType,place:this.isEmbed?"embed":this.statContext.place,quality:this.statContext.quality,cdn_host:this.statContext.cdnHostname,stat_type:this.statContext.autoplay===!0?"auto":this.statContext.autoplay===!1?"":void 0,param:t,vk_app_id:this.statContext.vkAppId,track_code:this.statContext.trackCode,connection_type:c,connection_reused:l===!0?1:l===!1?0:void 0,cached_data:this.statContext.cached===!0?1:this.statContext.cached===!1?0:void 0,live:this.statContext.liveEdge?1:void 0,muted:this.statContext.audible===!1?1:void 0,mode:this.statContext.mode,subtitles:this.statContext.subtitles,download_speed:this.statContext.downloadSpeed,manual_quality:this.statContext.autoQuality?void 0:1,ref_domain:p,direct_url:v,rate:this.statContext.rate===1||(0,h.isNullable)(this.statContext.rate)?void 0:this.statContext.rate.toFixed(2),view_360:this.statContext.is3d?1:void 0,aid:this.statContext.albumId,vk_playlist_id:this.statContext.vkPlaylistId},o);for(let z of this.config.disabledCustomFields)delete s[z];return{operation:e,type:1,time:i,network:this.statContext.network,timestamp:a,custom:s}}};
|