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