@vkontakte/videoplayer-shared 1.0.40-dev.85b25f2f.0 → 1.0.40-dev.9357735d.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es2015.cjs.js +3 -3
- package/es2015.esm.js +3 -3
- package/es2018.cjs.js +3 -3
- package/es2018.esm.js +3 -3
- package/esnext.cjs.js +3 -3
- package/esnext.esm.js +3 -3
- package/evergreen.esm.js +3 -3
- package/package.json +1 -1
- package/types/types/index.d.ts +3 -0
package/es2018.cjs.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vkontakte/videoplayer-shared v1.0.40-dev.
|
|
3
|
-
* Wed, 04 Sep 2024
|
|
2
|
+
* @vkontakte/videoplayer-shared v1.0.40-dev.9357735d.0
|
|
3
|
+
* Wed, 04 Sep 2024 17:58:38 GMT
|
|
4
4
|
* https://st.mycdn.me/static/vkontakte-videoplayer/1-0-40/doc/
|
|
5
5
|
*/
|
|
6
|
-
"use strict";var ps=Object.create;var ge=Object.defineProperty;var fs=Object.getOwnPropertyDescriptor;var bs=Object.getOwnPropertyNames;var vs=Object.getPrototypeOf,ds=Object.prototype.hasOwnProperty;var a=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),Ct=(e,r)=>{for(var t in r)ge(e,t,{get:r[t],enumerable:!0})},Lt=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of bs(r))!ds.call(e,i)&&i!==t&&ge(e,i,{get:()=>r[i],enumerable:!(n=fs(r,i))||n.enumerable});return e};var ms=(e,r,t)=>(t=e!=null?ps(vs(e)):{},Lt(r||!e||!e.__esModule?ge(t,"default",{value:e,enumerable:!0}):t,e)),Ts=e=>Lt(ge({},"__esModule",{value:!0}),e);var _=a((md,hn)=>{"use strict";hn.exports=function(e){try{return!!e()}catch(r){return!0}}});var ue=a((Td,yn)=>{"use strict";var Rs=_();yn.exports=!Rs(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var j=a((hd,On)=>{"use strict";var gn=ue(),In=Function.prototype,qr=In.call,Ps=gn&&In.bind.bind(qr,qr);On.exports=gn?Ps:function(e){return function(){return qr.apply(e,arguments)}}});var Le=a((yd,wn)=>{"use strict";var xn=j(),As=xn({}.toString),_s=xn("".slice);wn.exports=function(e){return _s(As(e),8,-1)}});var Sn=a((gd,En)=>{"use strict";var Cs=j(),Ls=_(),js=Le(),Rr=Object,Ms=Cs("".split);En.exports=Ls(function(){return!Rr("z").propertyIsEnumerable(0)})?function(e){return js(e)==="String"?Ms(e,""):Rr(e)}:Rr});var je=a((Id,qn)=>{"use strict";qn.exports=function(e){return e==null}});var Me=a((Od,Rn)=>{"use strict";var Ns=je(),ks=TypeError;Rn.exports=function(e){if(Ns(e))throw new ks("Can't call method on "+e);return e}});var H=a((xd,Pn)=>{"use strict";var Vs=Sn(),Ds=Me();Pn.exports=function(e){return Vs(Ds(e))}});var _n=a((wd,An)=>{"use strict";An.exports=function(){}});var W=a((Ed,Cn)=>{"use strict";Cn.exports={}});var w=a((Pr,Ln)=>{"use strict";var ce=function(e){return e&&e.Math===Math&&e};Ln.exports=ce(typeof globalThis=="object"&&globalThis)||ce(typeof window=="object"&&window)||ce(typeof self=="object"&&self)||ce(typeof global=="object"&&global)||ce(typeof Pr=="object"&&Pr)||function(){return this}()||Function("return this")()});var E=a((Sd,jn)=>{"use strict";var Ar=typeof document=="object"&&document.all;jn.exports=typeof Ar=="undefined"&&Ar!==void 0?function(e){return typeof e=="function"||e===Ar}:function(e){return typeof e=="function"}});var kn=a((qd,Nn)=>{"use strict";var Fs=w(),Us=E(),Mn=Fs.WeakMap;Nn.exports=Us(Mn)&&/native code/.test(String(Mn))});var M=a((Rd,Vn)=>{"use strict";var Gs=E();Vn.exports=function(e){return typeof e=="object"?e!==null:Gs(e)}});var C=a((Pd,Dn)=>{"use strict";var Bs=_();Dn.exports=!Bs(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var Cr=a((Ad,Un)=>{"use strict";var Qs=w(),Fn=M(),_r=Qs.document,Ws=Fn(_r)&&Fn(_r.createElement);Un.exports=function(e){return Ws?_r.createElement(e):{}}});var Lr=a((_d,Gn)=>{"use strict";var $s=C(),zs=_(),Ys=Cr();Gn.exports=!$s&&!zs(function(){return Object.defineProperty(Ys("div"),"a",{get:function(){return 7}}).a!==7})});var jr=a((Cd,Bn)=>{"use strict";var Ks=C(),Hs=_();Bn.exports=Ks&&Hs(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var $=a((Ld,Qn)=>{"use strict";var Xs=M(),Js=String,Zs=TypeError;Qn.exports=function(e){if(Xs(e))return e;throw new Zs(Js(e)+" is not an object")}});var F=a((jd,Wn)=>{"use strict";var eu=ue(),Ne=Function.prototype.call;Wn.exports=eu?Ne.bind(Ne):function(){return Ne.apply(Ne,arguments)}});var ke=a((Md,$n)=>{"use strict";$n.exports={}});var kr=a((Nd,Yn)=>{"use strict";var Mr=ke(),Nr=w(),ru=E(),zn=function(e){return ru(e)?e:void 0};Yn.exports=function(e,r){return arguments.length<2?zn(Mr[e])||zn(Nr[e]):Mr[e]&&Mr[e][r]||Nr[e]&&Nr[e][r]}});var Vr=a((kd,Kn)=>{"use strict";var tu=j();Kn.exports=tu({}.isPrototypeOf)});var Zn=a((Vd,Jn)=>{"use strict";var nu=w(),Hn=nu.navigator,Xn=Hn&&Hn.userAgent;Jn.exports=Xn?String(Xn):""});var ai=a((Dd,oi)=>{"use strict";var ii=w(),Dr=Zn(),ei=ii.process,ri=ii.Deno,ti=ei&&ei.versions||ri&&ri.version,ni=ti&&ti.v8,R,Ve;ni&&(R=ni.split("."),Ve=R[0]>0&&R[0]<4?1:+(R[0]+R[1]));!Ve&&Dr&&(R=Dr.match(/Edge\/(\d+)/),(!R||R[1]>=74)&&(R=Dr.match(/Chrome\/(\d+)/),R&&(Ve=+R[1])));oi.exports=Ve});var Fr=a((Fd,ui)=>{"use strict";var si=ai(),iu=_(),ou=w(),au=ou.String;ui.exports=!!Object.getOwnPropertySymbols&&!iu(function(){var e=Symbol("symbol detection");return!au(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&si&&si<41})});var Ur=a((Ud,ci)=>{"use strict";var su=Fr();ci.exports=su&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var Gr=a((Gd,li)=>{"use strict";var uu=kr(),cu=E(),lu=Vr(),pu=Ur(),fu=Object;li.exports=pu?function(e){return typeof e=="symbol"}:function(e){var r=uu("Symbol");return cu(r)&&lu(r.prototype,fu(e))}});var De=a((Bd,pi)=>{"use strict";var bu=String;pi.exports=function(e){try{return bu(e)}catch(r){return"Object"}}});var le=a((Qd,fi)=>{"use strict";var vu=E(),du=De(),mu=TypeError;fi.exports=function(e){if(vu(e))return e;throw new mu(du(e)+" is not a function")}});var Fe=a((Wd,bi)=>{"use strict";var Tu=le(),hu=je();bi.exports=function(e,r){var t=e[r];return hu(t)?void 0:Tu(t)}});var di=a(($d,vi)=>{"use strict";var Br=F(),Qr=E(),Wr=M(),yu=TypeError;vi.exports=function(e,r){var t,n;if(r==="string"&&Qr(t=e.toString)&&!Wr(n=Br(t,e))||Qr(t=e.valueOf)&&!Wr(n=Br(t,e))||r!=="string"&&Qr(t=e.toString)&&!Wr(n=Br(t,e)))return n;throw new yu("Can't convert object to primitive value")}});var pe=a((zd,mi)=>{"use strict";mi.exports=!0});var yi=a((Yd,hi)=>{"use strict";var Ti=w(),gu=Object.defineProperty;hi.exports=function(e,r){try{gu(Ti,e,{value:r,configurable:!0,writable:!0})}catch(t){Ti[e]=r}return r}});var Ue=a((Kd,Oi)=>{"use strict";var Iu=pe(),Ou=w(),xu=yi(),gi="__core-js_shared__",Ii=Oi.exports=Ou[gi]||xu(gi,{});(Ii.versions||(Ii.versions=[])).push({version:"3.38.0",mode:Iu?"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 $r=a((Hd,wi)=>{"use strict";var xi=Ue();wi.exports=function(e,r){return xi[e]||(xi[e]=r||{})}});var zr=a((Xd,Ei)=>{"use strict";var wu=Me(),Eu=Object;Ei.exports=function(e){return Eu(wu(e))}});var N=a((Jd,Si)=>{"use strict";var Su=j(),qu=zr(),Ru=Su({}.hasOwnProperty);Si.exports=Object.hasOwn||function(r,t){return Ru(qu(r),t)}});var Yr=a((Zd,qi)=>{"use strict";var Pu=j(),Au=0,_u=Math.random(),Cu=Pu(1 .toString);qi.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Cu(++Au+_u,36)}});var k=a((em,Pi)=>{"use strict";var Lu=w(),ju=$r(),Ri=N(),Mu=Yr(),Nu=Fr(),ku=Ur(),X=Lu.Symbol,Kr=ju("wks"),Vu=ku?X.for||X:X&&X.withoutSetter||Mu;Pi.exports=function(e){return Ri(Kr,e)||(Kr[e]=Nu&&Ri(X,e)?X[e]:Vu("Symbol."+e)),Kr[e]}});var Li=a((rm,Ci)=>{"use strict";var Du=F(),Ai=M(),_i=Gr(),Fu=Fe(),Uu=di(),Gu=k(),Bu=TypeError,Qu=Gu("toPrimitive");Ci.exports=function(e,r){if(!Ai(e)||_i(e))return e;var t=Fu(e,Qu),n;if(t){if(r===void 0&&(r="default"),n=Du(t,e,r),!Ai(n)||_i(n))return n;throw new Bu("Can't convert object to primitive value")}return r===void 0&&(r="number"),Uu(e,r)}});var Hr=a((tm,ji)=>{"use strict";var Wu=Li(),$u=Gr();ji.exports=function(e){var r=Wu(e,"string");return $u(r)?r:r+""}});var J=a(Ni=>{"use strict";var zu=C(),Yu=Lr(),Ku=jr(),Ge=$(),Mi=Hr(),Hu=TypeError,Xr=Object.defineProperty,Xu=Object.getOwnPropertyDescriptor,Jr="enumerable",Zr="configurable",et="writable";Ni.f=zu?Ku?function(r,t,n){if(Ge(r),t=Mi(t),Ge(n),typeof r=="function"&&t==="prototype"&&"value"in n&&et in n&&!n[et]){var i=Xu(r,t);i&&i[et]&&(r[t]=n.value,n={configurable:Zr in n?n[Zr]:i[Zr],enumerable:Jr in n?n[Jr]:i[Jr],writable:!1})}return Xr(r,t,n)}:Xr:function(r,t,n){if(Ge(r),t=Mi(t),Ge(n),Yu)try{return Xr(r,t,n)}catch(i){}if("get"in n||"set"in n)throw new Hu("Accessors not supported");return"value"in n&&(r[t]=n.value),r}});var fe=a((im,ki)=>{"use strict";ki.exports=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}}});var Z=a((om,Vi)=>{"use strict";var Ju=C(),Zu=J(),ec=fe();Vi.exports=Ju?function(e,r,t){return Zu.f(e,r,ec(1,t))}:function(e,r,t){return e[r]=t,e}});var Be=a((am,Fi)=>{"use strict";var rc=$r(),tc=Yr(),Di=rc("keys");Fi.exports=function(e){return Di[e]||(Di[e]=tc(e))}});var Qe=a((sm,Ui)=>{"use strict";Ui.exports={}});var Wi=a((um,Qi)=>{"use strict";var nc=kn(),Bi=w(),ic=M(),oc=Z(),rt=N(),tt=Ue(),ac=Be(),sc=Qe(),Gi="Object already initialized",nt=Bi.TypeError,uc=Bi.WeakMap,We,be,$e,cc=function(e){return $e(e)?be(e):We(e,{})},lc=function(e){return function(r){var t;if(!ic(r)||(t=be(r)).type!==e)throw new nt("Incompatible receiver, "+e+" required");return t}};nc||tt.state?(P=tt.state||(tt.state=new uc),P.get=P.get,P.has=P.has,P.set=P.set,We=function(e,r){if(P.has(e))throw new nt(Gi);return r.facade=e,P.set(e,r),r},be=function(e){return P.get(e)||{}},$e=function(e){return P.has(e)}):(z=ac("state"),sc[z]=!0,We=function(e,r){if(rt(e,z))throw new nt(Gi);return r.facade=e,oc(e,z,r),r},be=function(e){return rt(e,z)?e[z]:{}},$e=function(e){return rt(e,z)});var P,z;Qi.exports={set:We,get:be,has:$e,enforce:cc,getterFor:lc}});var Hi=a((cm,Ki)=>{"use strict";var pc=ue(),Yi=Function.prototype,$i=Yi.apply,zi=Yi.call;Ki.exports=typeof Reflect=="object"&&Reflect.apply||(pc?zi.bind($i):function(){return zi.apply($i,arguments)})});var it=a((lm,Xi)=>{"use strict";var fc=Le(),bc=j();Xi.exports=function(e){if(fc(e)==="Function")return bc(e)}});var ro=a(eo=>{"use strict";var Ji={}.propertyIsEnumerable,Zi=Object.getOwnPropertyDescriptor,vc=Zi&&!Ji.call({1:2},1);eo.f=vc?function(r){var t=Zi(this,r);return!!t&&t.enumerable}:Ji});var io=a(no=>{"use strict";var dc=C(),mc=F(),Tc=ro(),hc=fe(),yc=H(),gc=Hr(),Ic=N(),Oc=Lr(),to=Object.getOwnPropertyDescriptor;no.f=dc?to:function(r,t){if(r=yc(r),t=gc(t),Oc)try{return to(r,t)}catch(n){}if(Ic(r,t))return hc(!mc(Tc.f,r,t),r[t])}});var ao=a((bm,oo)=>{"use strict";var xc=_(),wc=E(),Ec=/#|\.prototype\./,ve=function(e,r){var t=qc[Sc(e)];return t===Pc?!0:t===Rc?!1:wc(r)?xc(r):!!r},Sc=ve.normalize=function(e){return String(e).replace(Ec,".").toLowerCase()},qc=ve.data={},Rc=ve.NATIVE="N",Pc=ve.POLYFILL="P";oo.exports=ve});var ot=a((vm,uo)=>{"use strict";var so=it(),Ac=le(),_c=ue(),Cc=so(so.bind);uo.exports=function(e,r){return Ac(e),r===void 0?e:_c?Cc(e,r):function(){return e.apply(r,arguments)}}});var at=a((dm,lo)=>{"use strict";var de=w(),Lc=Hi(),jc=it(),Mc=E(),Nc=io().f,kc=ao(),ee=ke(),Vc=ot(),re=Z(),co=N();Ue();var Dc=function(e){var r=function(t,n,i){if(this instanceof r){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,i)}return Lc(e,this,arguments)};return r.prototype=e.prototype,r};lo.exports=function(e,r){var t=e.target,n=e.global,i=e.stat,o=e.proto,u=n?de:i?de[t]:de[t]&&de[t].prototype,s=n?ee:ee[t]||re(ee,t,{})[t],p=s.prototype,c,l,f,v,d,T,h,I,y;for(v in r)c=kc(n?v:t+(i?".":"#")+v,e.forced),l=!c&&u&&co(u,v),T=s[v],l&&(e.dontCallGetSet?(y=Nc(u,v),h=y&&y.value):h=u[v]),d=l&&h?h:r[v],!(!c&&!o&&typeof T==typeof d)&&(e.bind&&l?I=Vc(d,de):e.wrap&&l?I=Dc(d):o&&Mc(d)?I=jc(d):I=d,(e.sham||d&&d.sham||T&&T.sham)&&re(I,"sham",!0),re(s,v,I),o&&(f=t+"Prototype",co(ee,f)||re(ee,f,{}),re(ee[f],v,d),e.real&&p&&(c||!p[v])&&re(p,v,d)))}});var bo=a((mm,fo)=>{"use strict";var st=C(),Fc=N(),po=Function.prototype,Uc=st&&Object.getOwnPropertyDescriptor,ut=Fc(po,"name"),Gc=ut&&function(){}.name==="something",Bc=ut&&(!st||st&&Uc(po,"name").configurable);fo.exports={EXISTS:ut,PROPER:Gc,CONFIGURABLE:Bc}});var mo=a((Tm,vo)=>{"use strict";var Qc=Math.ceil,Wc=Math.floor;vo.exports=Math.trunc||function(r){var t=+r;return(t>0?Wc:Qc)(t)}});var ct=a((hm,To)=>{"use strict";var $c=mo();To.exports=function(e){var r=+e;return r!==r||r===0?0:$c(r)}});var yo=a((ym,ho)=>{"use strict";var zc=ct(),Yc=Math.max,Kc=Math.min;ho.exports=function(e,r){var t=zc(e);return t<0?Yc(t+r,0):Kc(t,r)}});var Io=a((gm,go)=>{"use strict";var Hc=ct(),Xc=Math.min;go.exports=function(e){var r=Hc(e);return r>0?Xc(r,9007199254740991):0}});var lt=a((Im,Oo)=>{"use strict";var Jc=Io();Oo.exports=function(e){return Jc(e.length)}});var Eo=a((Om,wo)=>{"use strict";var Zc=H(),el=yo(),rl=lt(),xo=function(e){return function(r,t,n){var i=Zc(r),o=rl(i);if(o===0)return!e&&-1;var u=el(n,o),s;if(e&&t!==t){for(;o>u;)if(s=i[u++],s!==s)return!0}else for(;o>u;u++)if((e||u in i)&&i[u]===t)return e||u||0;return!e&&-1}};wo.exports={includes:xo(!0),indexOf:xo(!1)}});var Ro=a((xm,qo)=>{"use strict";var tl=j(),pt=N(),nl=H(),il=Eo().indexOf,ol=Qe(),So=tl([].push);qo.exports=function(e,r){var t=nl(e),n=0,i=[],o;for(o in t)!pt(ol,o)&&pt(t,o)&&So(i,o);for(;r.length>n;)pt(t,o=r[n++])&&(~il(i,o)||So(i,o));return i}});var ft=a((wm,Po)=>{"use strict";Po.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var _o=a((Em,Ao)=>{"use strict";var al=Ro(),sl=ft();Ao.exports=Object.keys||function(r){return al(r,sl)}});var Lo=a(Co=>{"use strict";var ul=C(),cl=jr(),ll=J(),pl=$(),fl=H(),bl=_o();Co.f=ul&&!cl?Object.defineProperties:function(r,t){pl(r);for(var n=fl(t),i=bl(t),o=i.length,u=0,s;o>u;)ll.f(r,s=i[u++],n[s]);return r}});var Mo=a((qm,jo)=>{"use strict";var vl=kr();jo.exports=vl("document","documentElement")});var mt=a((Rm,Go)=>{"use strict";var dl=$(),ml=Lo(),No=ft(),Tl=Qe(),hl=Mo(),yl=Cr(),gl=Be(),ko=">",Vo="<",vt="prototype",dt="script",Fo=gl("IE_PROTO"),bt=function(){},Uo=function(e){return Vo+dt+ko+e+Vo+"/"+dt+ko},Do=function(e){e.write(Uo("")),e.close();var r=e.parentWindow.Object;return e=null,r},Il=function(){var e=yl("iframe"),r="java"+dt+":",t;return e.style.display="none",hl.appendChild(e),e.src=String(r),t=e.contentWindow.document,t.open(),t.write(Uo("document.F=Object")),t.close(),t.F},ze,Ye=function(){try{ze=new ActiveXObject("htmlfile")}catch(r){}Ye=typeof document!="undefined"?document.domain&&ze?Do(ze):Il():Do(ze);for(var e=No.length;e--;)delete Ye[vt][No[e]];return Ye()};Tl[Fo]=!0;Go.exports=Object.create||function(r,t){var n;return r!==null?(bt[vt]=dl(r),n=new bt,bt[vt]=null,n[Fo]=r):n=Ye(),t===void 0?n:ml.f(n,t)}});var Qo=a((Pm,Bo)=>{"use strict";var Ol=_();Bo.exports=!Ol(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var ht=a((Am,$o)=>{"use strict";var xl=N(),wl=E(),El=zr(),Sl=Be(),ql=Qo(),Wo=Sl("IE_PROTO"),Tt=Object,Rl=Tt.prototype;$o.exports=ql?Tt.getPrototypeOf:function(e){var r=El(e);if(xl(r,Wo))return r[Wo];var t=r.constructor;return wl(t)&&r instanceof t?t.prototype:r instanceof Tt?Rl:null}});var yt=a((_m,zo)=>{"use strict";var Pl=Z();zo.exports=function(e,r,t,n){return n&&n.enumerable?e[r]=t:Pl(e,r,t),e}});var xt=a((Cm,Ho)=>{"use strict";var Al=_(),_l=E(),Cl=M(),Ll=mt(),Yo=ht(),jl=yt(),Ml=k(),Nl=pe(),Ot=Ml("iterator"),Ko=!1,V,gt,It;[].keys&&(It=[].keys(),"next"in It?(gt=Yo(Yo(It)),gt!==Object.prototype&&(V=gt)):Ko=!0);var kl=!Cl(V)||Al(function(){var e={};return V[Ot].call(e)!==e});kl?V={}:Nl&&(V=Ll(V));_l(V[Ot])||jl(V,Ot,function(){return this});Ho.exports={IteratorPrototype:V,BUGGY_SAFARI_ITERATORS:Ko}});var Ke=a((Lm,Jo)=>{"use strict";var Vl=k(),Dl=Vl("toStringTag"),Xo={};Xo[Dl]="z";Jo.exports=String(Xo)==="[object z]"});var wt=a((jm,Zo)=>{"use strict";var Fl=Ke(),Ul=E(),He=Le(),Gl=k(),Bl=Gl("toStringTag"),Ql=Object,Wl=He(function(){return arguments}())==="Arguments",$l=function(e,r){try{return e[r]}catch(t){}};Zo.exports=Fl?He:function(e){var r,t,n;return e===void 0?"Undefined":e===null?"Null":typeof(t=$l(r=Ql(e),Bl))=="string"?t:Wl?He(r):(n=He(r))==="Object"&&Ul(r.callee)?"Arguments":n}});var ra=a((Mm,ea)=>{"use strict";var zl=Ke(),Yl=wt();ea.exports=zl?{}.toString:function(){return"[object "+Yl(this)+"]"}});var Xe=a((Nm,na)=>{"use strict";var Kl=Ke(),Hl=J().f,Xl=Z(),Jl=N(),Zl=ra(),ep=k(),ta=ep("toStringTag");na.exports=function(e,r,t,n){var i=t?e:e&&e.prototype;i&&(Jl(i,ta)||Hl(i,ta,{configurable:!0,value:r}),n&&!Kl&&Xl(i,"toString",Zl))}});var oa=a((km,ia)=>{"use strict";var rp=xt().IteratorPrototype,tp=mt(),np=fe(),ip=Xe(),op=W(),ap=function(){return this};ia.exports=function(e,r,t,n){var i=r+" Iterator";return e.prototype=tp(rp,{next:np(+!n,t)}),ip(e,i,!1,!0),op[i]=ap,e}});var sa=a((Vm,aa)=>{"use strict";var sp=j(),up=le();aa.exports=function(e,r,t){try{return sp(up(Object.getOwnPropertyDescriptor(e,r)[t]))}catch(n){}}});var ca=a((Dm,ua)=>{"use strict";var cp=M();ua.exports=function(e){return cp(e)||e===null}});var pa=a((Fm,la)=>{"use strict";var lp=ca(),pp=String,fp=TypeError;la.exports=function(e){if(lp(e))return e;throw new fp("Can't set "+pp(e)+" as a prototype")}});var ba=a((Um,fa)=>{"use strict";var bp=sa(),vp=M(),dp=Me(),mp=pa();fa.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,r={},t;try{t=bp(Object.prototype,"__proto__","set"),t(r,[]),e=r instanceof Array}catch(n){}return function(i,o){return dp(i),mp(o),vp(i)&&(e?t(i,o):i.__proto__=o),i}}():void 0)});var wa=a((Gm,xa)=>{"use strict";var Tp=at(),hp=F(),Je=pe(),Ia=bo(),yp=E(),gp=oa(),va=ht(),da=ba(),Ip=Xe(),Op=Z(),Et=yt(),xp=k(),ma=W(),Oa=xt(),wp=Ia.PROPER,Ep=Ia.CONFIGURABLE,Ta=Oa.IteratorPrototype,Ze=Oa.BUGGY_SAFARI_ITERATORS,me=xp("iterator"),ha="keys",Te="values",ya="entries",ga=function(){return this};xa.exports=function(e,r,t,n,i,o,u){gp(t,r,n);var s=function(y){if(y===i&&v)return v;if(!Ze&&y&&y in l)return l[y];switch(y){case ha:return function(){return new t(this,y)};case Te:return function(){return new t(this,y)};case ya:return function(){return new t(this,y)}}return function(){return new t(this)}},p=r+" Iterator",c=!1,l=e.prototype,f=l[me]||l["@@iterator"]||i&&l[i],v=!Ze&&f||s(i),d=r==="Array"&&l.entries||f,T,h,I;if(d&&(T=va(d.call(new e)),T!==Object.prototype&&T.next&&(!Je&&va(T)!==Ta&&(da?da(T,Ta):yp(T[me])||Et(T,me,ga)),Ip(T,p,!0,!0),Je&&(ma[p]=ga))),wp&&i===Te&&f&&f.name!==Te&&(!Je&&Ep?Op(l,"name",Te):(c=!0,v=function(){return hp(f,this)})),i)if(h={values:s(Te),keys:o?v:s(ha),entries:s(ya)},u)for(I in h)(Ze||c||!(I in l))&&Et(l,I,h[I]);else Tp({target:r,proto:!0,forced:Ze||c},h);return(!Je||u)&&l[me]!==v&&Et(l,me,v,{name:i}),ma[r]=v,h}});var Sa=a((Bm,Ea)=>{"use strict";Ea.exports=function(e,r){return{value:e,done:r}}});var qt=a((Qm,_a)=>{"use strict";var Sp=H(),St=_n(),qa=W(),Pa=Wi(),qp=J().f,Rp=wa(),er=Sa(),Pp=pe(),Ap=C(),Aa="Array Iterator",_p=Pa.set,Cp=Pa.getterFor(Aa);_a.exports=Rp(Array,"Array",function(e,r){_p(this,{type:Aa,target:Sp(e),index:0,kind:r})},function(){var e=Cp(this),r=e.target,t=e.index++;if(!r||t>=r.length)return e.target=void 0,er(void 0,!0);switch(e.kind){case"keys":return er(t,!1);case"values":return er(r[t],!1)}return er([t,r[t]],!1)},"values");var Ra=qa.Arguments=qa.Array;St("keys");St("values");St("entries");if(!Pp&&Ap&&Ra.name!=="values")try{qp(Ra,"name",{value:"values"})}catch(e){}});var La=a((Wm,Ca)=>{"use strict";var Lp=k(),jp=W(),Mp=Lp("iterator"),Np=Array.prototype;Ca.exports=function(e){return e!==void 0&&(jp.Array===e||Np[Mp]===e)}});var Rt=a(($m,Ma)=>{"use strict";var kp=wt(),ja=Fe(),Vp=je(),Dp=W(),Fp=k(),Up=Fp("iterator");Ma.exports=function(e){if(!Vp(e))return ja(e,Up)||ja(e,"@@iterator")||Dp[kp(e)]}});var ka=a((zm,Na)=>{"use strict";var Gp=F(),Bp=le(),Qp=$(),Wp=De(),$p=Rt(),zp=TypeError;Na.exports=function(e,r){var t=arguments.length<2?$p(e):r;if(Bp(t))return Qp(Gp(t,e));throw new zp(Wp(e)+" is not iterable")}});var Fa=a((Ym,Da)=>{"use strict";var Yp=F(),Va=$(),Kp=Fe();Da.exports=function(e,r,t){var n,i;Va(e);try{if(n=Kp(e,"return"),!n){if(r==="throw")throw t;return t}n=Yp(n,e)}catch(o){i=!0,n=o}if(r==="throw")throw t;if(i)throw n;return Va(n),t}});var Wa=a((Km,Qa)=>{"use strict";var Hp=ot(),Xp=F(),Jp=$(),Zp=De(),ef=La(),rf=lt(),Ua=Vr(),tf=ka(),nf=Rt(),Ga=Fa(),of=TypeError,rr=function(e,r){this.stopped=e,this.result=r},Ba=rr.prototype;Qa.exports=function(e,r,t){var n=t&&t.that,i=!!(t&&t.AS_ENTRIES),o=!!(t&&t.IS_RECORD),u=!!(t&&t.IS_ITERATOR),s=!!(t&&t.INTERRUPTED),p=Hp(r,n),c,l,f,v,d,T,h,I=function(g){return c&&Ga(c,"normal",g),new rr(!0,g)},y=function(g){return i?(Jp(g),s?p(g[0],g[1],I):p(g[0],g[1])):s?p(g,I):p(g)};if(o)c=e.iterator;else if(u)c=e;else{if(l=nf(e),!l)throw new of(Zp(e)+" is not iterable");if(ef(l)){for(f=0,v=rf(e);v>f;f++)if(d=y(e[f]),d&&Ua(Ba,d))return d;return new rr(!1)}c=tf(e,l)}for(T=o?e.next:c.next;!(h=Xp(T,c)).done;){try{d=y(h.value)}catch(g){Ga(c,"throw",g)}if(typeof d=="object"&&d&&Ua(Ba,d))return d}return new rr(!1)}});var za=a((Hm,$a)=>{"use strict";var af=C(),sf=J(),uf=fe();$a.exports=function(e,r,t){af?sf.f(e,r,uf(0,t)):e[r]=t}});var Ya=a(()=>{"use strict";var cf=at(),lf=Wa(),pf=za();cf({target:"Object",stat:!0},{fromEntries:function(r){var t={};return lf(r,function(n,i){pf(t,n,i)},{AS_ENTRIES:!0}),t}})});var Ha=a((Zm,Ka)=>{"use strict";qt();Ya();var ff=ke();Ka.exports=ff.Object.fromEntries});var Ja=a((eT,Xa)=>{"use strict";Xa.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}});var es=a(()=>{"use strict";qt();var bf=Ja(),vf=w(),df=Xe(),Za=W();for(tr in bf)df(vf[tr],tr),Za[tr]=Za.Array;var tr});var ts=a((nT,rs)=>{"use strict";var mf=Ha();es();rs.exports=mf});var is=a((iT,ns)=>{"use strict";var Tf=ts();ns.exports=Tf});var Of={};Ct(Of,{Attributes:()=>cn.Attributes,ErrorCategory:()=>dn,InterfaceLanguage:()=>ss,Logger:()=>Ie,Observable:()=>b,Subject:()=>L,Subscription:()=>x,Tracer:()=>Oe,VERSION:()=>jt,VKNumericLanguage:()=>as,ValueSubject:()=>ie,VideoQuality:()=>Se,abortable:()=>Bt,addScript:()=>Ft,areQualitiesExact:()=>rn,assertEmptyArray:()=>Dt,assertNever:()=>A,assertNonNullable:()=>Nt,assertNotEmptyArray:()=>Vt,assertNullable:()=>kt,assertQualityIsExact:()=>tn,buffer:()=>lr,checkNever:()=>Mt,clearVideoElement:()=>sn,clientChecker:()=>Qt,cloneDeep:()=>on,cloneDeepWith:()=>te,combine:()=>sr,debounce:()=>fr,debounceFn:()=>Pe,detectEmbed:()=>$t,fillWithDefault:()=>nn,filter:()=>mr,filterChanged:()=>hr,flattenObject:()=>ne,fromEvent:()=>bn,getExponentialDelay:()=>Wt,getHighestQuality:()=>Ht,getTraceSubscriptionMethod:()=>un,interval:()=>pn,isHigher:()=>zt,isHigherOrEqual:()=>Yt,isInvariantQuality:()=>Re,isLower:()=>qe,isLowerOrEqual:()=>Kt,isMobile:()=>or,isNonNullable:()=>B,isNullable:()=>we,loadVKLangPack:()=>yf,map:()=>oe,mapTo:()=>gr,merge:()=>ur,noop:()=>D,now:()=>Gt,observableFrom:()=>fn,observeElementSize:()=>an,once:()=>Ir,pairwise:()=>xr,safeStorage:()=>Ee,tap:()=>Er,throttle:()=>vr,throttleFn:()=>Ae,timeCodeToString:()=>ws,timeout:()=>ln,videoHeightToQuality:()=>Jt,videoQualityToHeight:()=>en,videoSizeToQuality:()=>Zt});module.exports=Ts(Of);var jt="1.0.40-dev.85b25f2f.0";var x=class{constructor(){this.subscriptions=[]}unsubscribe(){let r=this.subscriptions;this.subscriptions=[],r.forEach(t=>typeof t=="function"?t():t.unsubscribe())}add(r){return this.subscriptions.push(r),this}};var A=e=>{throw new Error(`${e} is value of unexpected type`)},Mt=e=>{};var D=()=>{};var b=class{constructor(r){r&&(this._subscribe=r)}subscribe(r,t){var u;let n;t?typeof t=="function"?n={next:t,error:D}:n={next:s=>t.next(s),error:s=>{var p;return(p=t.error)==null?void 0:p.call(t,s)}}:n={next:D,error:D};let i=typeof r=="function"?{next:s=>{try{r(s)}catch(p){n.next(p)}},error:s=>n.next(s)}:{next:s=>r.next(s),error:s=>r.error?r.error(s):n.next(s)},o;try{o=this._subscribe(i)}catch(s){(u=i.error)==null||u.call(i,s)}return new x().add(()=>{switch(i.next=D,i.error=D,typeof o){case"function":o();return;case"object":o.unsubscribe();return;case"undefined":return;default:return A(o)}})}pipe(...r){return r.reduce((t,n)=>n(t),this)}_subscribe(r){}};var L=class extends b{constructor(){super();this.keyCounter=0;this.subscribers=new Map}next(t){this.subscribers.forEach(n=>n.next(t))}error(t){this.subscribers.forEach(n=>{var i;return(i=n.error)==null?void 0:i.call(n,t)})}_subscribe(t){let n=this.keyCounter++;return this.subscribers.set(n,t),new x().add(()=>this.subscribers.delete(n))}};var Ie=class{constructor(){this.log$=new L;this.logs=[];this.log=r=>{let t={...r,timestamp:Date.now()};this.logs.push(t),this.log$.next(t)};this.getAllLogs=()=>this.logs}createCustomLog(r){return(...t)=>{let n;try{n=r(...t)}catch(i){n={message:"error in `createCustomLog`",component:"Logger"}}this.log(n)}}createComponentLog(r){return this.createCustomLog(t=>({component:r,...t}))}};var xe=require("@opentelemetry/api");var G=require("/Users/builder/teamcity-agent/work/ae259db4970b1067/packages/shared/libs/tracer/lib/index.mjs"),nr=class e{constructor({name:r}){}log(r,t){}error(r,t){}critical(r,t){}createComponentTracer(r){return new e({name:r})}end(){}getFinishedSpans(){}getTraceId(){return this.fakeTraceId}},Oe=class e{constructor({name:r,parentContext:t,tracer:n}){this.childTracers=[];let i=!n;if(i){let u=(0,G.initTracerOpenTelemetry)({serviceName:"videoplayer-sdk-web",appToken:"L9SBoka6ZWk4xPjaK7tmfSfYvMhcge7nvGDjpdMmscb",spanLimits:{attributeCountLimit:1/0,eventCountLimit:1/0,attributePerEventCountLimit:1/0}}).getProvider(),s=new G.TracerMemorySpanExporter,p=new G.TracerMemorySpanExporter;this.spanExporter=s,u.addSpanProcessor(new G.TracerAllSpansProcessor({startedSpansExporter:s,endedSpansExporter:p})),this.tracer=u.getTracer("sdk-videoplayer-tracer")}else this.tracer=n;this.span=this.tracer.startSpan(r,{root:i},t),this.context=xe.trace.setSpan(xe.context.active(),this.span)}log(r,t){this.span.addEvent(r,{...t,type:"log"})}error(r,t){this.span.addEvent(r,{...t,type:"error"})}critical(r,t){this.span.addEvent(r,{...t,type:"critical"})}static createRootTracer(r=!1){return r?new e({name:"Root"}):new nr({name:"Root"})}createComponentTracer(r){let t=new e({name:r,parentContext:this.context,tracer:this.tracer});return this.childTracers.push(t),t}end(){this.childTracers.forEach(r=>r.end()),this.span.end()}getFinishedSpans(){var r;return(r=this.spanExporter)==null?void 0:r.getJsonData()}getTraceId(){return this.span.spanContext().traceId}};function Nt(e,r='Assertion "value is not nullable" failed'){if(e==null)throw new Error(r)}function kt(e,r='Assertion "value is nullable" failed'){if(e!=null)throw new Error(r)}function B(e){return typeof e!="undefined"&&e!==null}function we(e){return e==null}function Vt(e,r){if(!(e!=null&&e.length))throw new Error(r)}function Dt(e,r){if(e!=null&&e.length)throw new Error(r)}var Ft=(e,r,t)=>new Promise((n,i)=>{r.addEventListener("abort",()=>{s(),c.remove()});let o=()=>{s(),i()},u=()=>{s(),n()},s=()=>{p&&clearTimeout(p),c.removeEventListener("load",u),c.removeEventListener("error",o)},p;t&&(p=window.setTimeout(o,t));let c=document.createElement("script");c.addEventListener("load",u),c.addEventListener("error",o),c.src=e,document.head.appendChild(c)});var Ut,Gt=typeof((Ut=window.performance)==null?void 0:Ut.now)=="function"?()=>window.performance.now():()=>Date.now();var Bt=(e,r)=>async(...t)=>{var u;let n=r(...t),i=e.aborted,o;for(;!i&&!e.aborted;)try{let s=await n.next(o);i=(u=s.done)!=null?u:!1,o=s.value}catch(s){await n.throw(s)}return o};var or=()=>{var e,r;return/Mobile|mini|Fennec|Android|iP(ad|od|hone)/.test((e=navigator.appVersion)!=null?e:navigator.userAgent)||((r=navigator==null?void 0:navigator.userAgentData)==null?void 0:r.mobile)},ir=class{constructor(){this.detect()}get browser(){return this._currentBrowser}get device(){return this._currentDevice}get isTouch(){return this._maxTouchPoints>0}get isIOS(){return["iPhone","iPad","iPod"].includes(this.device)}get isMac(){return this.device==="Mac"}get isApple(){return this.isIOS||this.isMac}get isIphoneOrOldIpad(){if(!this.isApple||!this.isTouch)return!1;let r=this.device==="iPad"||(window==null?void 0:window.screen.width)>700,t=this._iosVersion;return!r||r&&!!t&&t<16}get isAndroid(){return this.device==="Android"}get isMobile(){return this._isMobile}get iOSVersion(){return this._iosVersion}get macVersion(){return this._macVersion}get isYandex(){return this.browser==="Yandex"}get isSafari(){return this.browser==="Safari"}get isSamsungBrowser(){return this.browser==="SamsungBrowser"}get isHDR(){return this._isHdr}detect(){var n;let{userAgent:r,maxTouchPoints:t}=navigator;try{this._maxTouchPoints=t,this._isHdr=!!((n=matchMedia("(dynamic-range: high)"))!=null&&n.matches)}catch(i){console.error(i)}try{this._isMobile=or()}catch(i){console.error(i)}this.detectBrowser(r),this.detectDevice(r),this.isIOS&&this.detectIOSVersion(),this.isMac&&this.detectMacVersion()}detectBrowser(r){try{let t=/yabrowser/i.test(r)?"Yandex":void 0,n=/samsungbrowser/i.test(r)?"SamsungBrowser":void 0,i=/chrome|crios/i.test(r)?"Chrome":void 0,o=/chromium/i.test(r)?"Chromium":void 0,u=/firefox|fxios/i.test(r)?"Firefox":void 0,s=/webkit|safari|khtml/i.test(r)?"Safari":void 0,p=/opr\//i.test(r)?"Opera":void 0,c=/edg/i.test(r)?"Edge":void 0;this._currentBrowser=t||n||u||p||c||i||o||s||"Rest"}catch(t){console.error(t)}}detectDevice(r){try{let t=/android/i.test(r)?"Android":void 0,n=/iphone/i.test(r)?"iPhone":void 0,i=/ipad/i.test(r)?"iPad":void 0,o=/ipod/i.test(r)?"iPod":void 0,u=/mac/i.test(r)?"Mac":void 0,s=/webOS|BlackBerry|IEMobile|Opera Mini/i.test(r)?"RestMobile":void 0;this._currentDevice=t||n||i||o||s||u||"Desktop"}catch(t){console.error(t)}}detectIOSVersion(){try{let{userAgent:r}=window.navigator,t=r.match(/Version\/(\d+(\.\d+)?)/i);if(!t)return;let n=t[1],i=parseFloat(n);if(isNaN(i))return;this._iosVersion=i}catch(r){console.error(r)}}detectMacVersion(){try{let{userAgent:r}=window.navigator,t=r.match(/Version\/(\d+)/);if(!t)return;let n=t[1],i=parseInt(n,10);if(isNaN(i))return;this._macVersion=i}catch(r){console.error(r)}}},Qt=new ir;var Wt=(e,{start:r=0,factor:t=2,max:n=1/0,min:i=r,random:o=0}={})=>{let u=r;return u*=t**e,u*=1+(Math.random()*o*2-o),u=Math.round(u),u=Math.min(u,n),u=Math.max(u,i),u};var Ee={};Ct(Ee,{clear:()=>xs,get:()=>ys,has:()=>Is,isPersistent:()=>hs,remove:()=>Os,set:()=>gs});var O,Q,ar=`vk-videoplayer-dummy-key-${Math.random()}`,Y=()=>{if(Q!==void 0)return Q;try{localStorage.setItem(ar,"test"),localStorage.removeItem(ar),Q=0}catch(e){if(e instanceof DOMException||e instanceof TypeError)try{sessionStorage.getItem(ar),Q=1}catch(r){if(r instanceof DOMException||r instanceof TypeError)Q=2;else throw r}else throw e}return Q===2&&(O=new Map),Q},hs=()=>Y()===0,ys=e=>{var t,n;let r=Y();switch(r){case 0:return(t=localStorage.getItem(e))!=null?t:void 0;case 1:return(n=sessionStorage.getItem(e))!=null?n:void 0;case 2:return O==null?void 0:O.get(e);default:A(r)}},gs=(e,r)=>{let t=Y();switch(t){case 0:try{localStorage.setItem(e,r)}catch(n){if(n instanceof DOMException)console.error(n);else throw n}break;case 1:try{sessionStorage.setItem(e,r)}catch(n){if(n instanceof DOMException)console.error(n);else throw n}break;case 2:return void(O==null?void 0:O.set(e,r));default:A(t)}},Is=e=>{var t;let r=Y();switch(r){case 0:return e in localStorage;case 1:return e in sessionStorage;case 2:return(t=O==null?void 0:O.has(e))!=null?t:!1;default:return A(r),!1}},Os=e=>{let r=Y();switch(r){case 0:return localStorage.removeItem(e);case 1:return sessionStorage.removeItem(e);case 2:return void(O==null?void 0:O.delete(e));default:A(r)}},xs=()=>{let e=Y();switch(e){case 0:return localStorage.clear();case 1:return sessionStorage.clear();case 2:return O==null?void 0:O.clear();default:A(e)}};var $t=()=>{let e,r;try{e=window.self!==window.top}catch(n){n instanceof DOMException&&n.name==="SecurityError"?e=!0:(e=!1,console.error(n))}try{window.location.ancestorOrigins&&(r=window.location.ancestorOrigins[window.location.ancestorOrigins.length-1])}catch(n){console.error(n)}try{!r&&document.referrer&&(r=document.referrer)}catch(n){console.error(n)}let t=r?new URL(r).hostname:void 0;return{isEmbed:e,host:t}};var Se=(l=>(l.INVARIANT="Invariant quality",l.Q_144P="144p",l.Q_240P="240p",l.Q_360P="360p",l.Q_480P="480p",l.Q_720P="720p",l.Q_1080P="1080p",l.Q_1440P="1440p",l.Q_2160P="2160p",l.Q_4320P="4320p",l))(Se||{});var S={"144p":{width:256,height:144},"240p":{width:428,height:240},"360p":{width:640,height:360},"480p":{width:856,height:480},"720p":{width:1280,height:720},"1080p":{width:1920,height:1080},"1440p":{width:2560,height:1440},"2160p":{width:3840,height:2160},"4320p":{width:7680,height:4320}},zt=(e,r)=>S[e].height>S[r].height,Yt=(e,r)=>S[e].height>=S[r].height,qe=(e,r)=>S[e].height<S[r].height,Kt=(e,r)=>S[e].height<=S[r].height,Ht=e=>e.sort((r,t)=>r===t?0:r==="Invariant quality"?1:t==="Invariant quality"?-1:qe(r,t)?1:-1)[0],Xt=Object.keys(S).sort((e,r)=>qe(e,r)?-1:1),Jt=(e,r=.02)=>[...Xt].find(n=>S[n].height*(1+r)>=e),Zt=({width:e,height:r})=>{let t=Math.min(e,r),n=Math.max(e,r);return Xt.find(i=>{let o=S[i];return o.width>=n&&o.height>=t})},en=e=>S[e].height,Re=e=>e==="Invariant quality",rn=e=>e.every(r=>!Re(r));function tn(e){if(Re(e))throw new Error("Expected exact quality")}var nn=(e,r)=>{let t={};for(let n of Object.keys(r)){let i=r[n],o=e[n];Array.isArray(i)&&Array.isArray(o)?t[n]=o:typeof i=="object"&&typeof o=="object"?t[n]=nn(o,i):t[n]=n in e?o:i}return t};var ws=e=>{let r="";return e>=3600&&(r+=Math.floor(e/3600)+"h",e=e%3600),e>=60&&(r+=Math.floor(e/60)+"m",e=e%60),e>0&&(r+=Math.floor(e)+"s"),r};function Pe(e,r=0,t){let n,i,o,u,s,p,c=0,l=!1,f=!1,v=!0,d=!r&&r!==0&&typeof window.requestAnimationFrame=="function";t&&(l=!!t.leading,f="maxWait"in t,o=t!=null&&t.maxWait?Math.max(+(t==null?void 0:t.maxWait)||0,r):o,v="trailing"in t?!!t.trailing:v);function T(m){let q=n,U=i;return n=i=void 0,c=m,u=e.apply(U,q),u}function h(m,q){return d?(s&&window.cancelAnimationFrame(s),window.requestAnimationFrame(m)):setTimeout(m,q)}function I(m){if(d){window.cancelAnimationFrame(m);return}clearTimeout(m)}function y(m){return c=m,s=h(he,r),l?T(m):u}function g(m){let q=m-p,U=m-c,_t=r-q;return f?Math.min(_t,o-U):_t}function Pt(m){let q=m-p,U=m-c;return p===void 0||q>=r||q<0||f&&U>=o}function he(){let m=Date.now();if(Pt(m))return At(m);s=h(he,g(m))}function At(m){return s=void 0,v&&n?T(m):(n=i=void 0,u)}function us(){s!==void 0&&I(s),c=0,n=p=i=s=void 0}function cs(){return s===void 0?u:At(Date.now())}function ls(){return s!==void 0}function ye(...m){let q=Date.now(),U=Pt(q);if(n=m,i=this,p=q,U){if(s===void 0)return y(p);if(f)return s=h(he,r),T(p)}return s===void 0&&(s=h(he,r)),u}return ye.cancel=us,ye.flush=cs,ye.pending=ls,ye}var Ae=(e,r=0,t)=>Pe(e,r,{...{leading:!0,trailing:!0},...t,maxWait:r});var te=(e,r)=>{if(e===null||typeof e!="object")return e;let t=Array.isArray(e)?[]:{};for(let n in e){if(typeof r=="function"){let i=r(e[n],n,e,t);if(i!==void 0){t[n]=i;continue}}typeof e[n]=="object"?t[n]=te(e[n],r):t[n]=e[n]}return t};var on=e=>te(e);var Es=300,an=(e,r=Es)=>new b(t=>{let{width:n,height:i}=e.getBoundingClientRect();if(t.next({width:n,height:i}),!window.ResizeObserver)return;let o=new ResizeObserver(Ae(u=>{let s=u[0];if(!s)return;let p,c;s.contentBoxSize&&s.contentBoxSize[0]?(c=s.contentBoxSize[0].blockSize,p=s.contentBoxSize[0].inlineSize):s.contentRect&&(p=s.contentRect.width,c=s.contentRect.height),B(p)&&B(c)&&t.next({width:p,height:c})},r));return o.observe(e),()=>o.disconnect()});var ne=(e,r=".")=>{let t={};for(let n in e)if(e.hasOwnProperty(n))if(typeof e[n]=="object"&&e[n]!==null){let i=ne(e[n]);for(let o in i)i.hasOwnProperty(o)&&(t[n+r+o]=i[o])}else t[n]=e[n];return t};var sn=e=>{e.removeAttribute("src"),e.load()};var un=e=>r=>t=>{let n=typeof t=="object";t==null||n&&!Object.keys(t).length||e(r,n?ne(t):{value:t})};var cn=require("@opentelemetry/api");var ie=class extends L{constructor(r){super(),this.value=r}next(r){super.next(this.value=r)}error(r){super.error(this.value=r)}getValue(){return this.value}_subscribe(r){let t=super._subscribe(r);return r.next(this.value),t}};function sr(e){return new b(r=>{let t={},n=Object.keys(e).length,i=o=>u=>{o in t||n--,t[o]=u,n===0&&r.next(t)};return Object.entries(e).reduce((o,[u,s])=>o.add(s.subscribe(i(u))),new x)})}function ur(...e){return new b(r=>e.reduce((t,n)=>t.add(n.subscribe(r)),new x))}var ln=e=>new b(r=>{let t=window.setTimeout(()=>{try{r.next()}catch(n){if(r.error)r.error(n);else throw n}},e);return()=>window.clearTimeout(t)});var pn=e=>new b(r=>{let t=window.setInterval(()=>r.next(),e);return()=>{t&&(window.clearInterval(t),t=void 0)}});var fn=e=>new b(r=>{e.forEach(t=>r.next(t))});var bn=(e,r)=>new b(t=>{let n=i=>t.next(i);return e.addEventListener(r,n),()=>e.removeEventListener(r,n)});function lr(e){return r=>new b(t=>r.subscribe(new cr(t,e)))}var cr=class{constructor(r,t){this.destination=r;this.size=t;this.lastValues=[]}next(r){this.lastValues.length===this.size&&this.lastValues.shift(),this.lastValues.push(r),this.destination.next(this.lastValues)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};var Ss={leading:!1,trailing:!0};function fr(e,r=Ss){return t=>new b(n=>t.subscribe(new pr(n,e,r)))}var pr=class{constructor(r,t,n){this.destination=r;this.time=t;this.config=n}next(r){this.lastValue=r,B(this.timeout)?window.clearTimeout(this.timeout):this.config.leading&&this.destination.next(r),this.timeout=window.setTimeout(()=>{if(this.config.trailing)try{this.destination.next(this.lastValue)}catch(t){if(this.destination.error)this.destination.error(t);else throw t}this.timeout=void 0},this.time)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};var qs={leading:!0,trailing:!1};function vr(e,r=qs){return t=>new b(n=>t.subscribe(new br(n,e,r)))}var br=class{constructor(r,t,n){this.destination=r;this.time=t;this.config=n}next(r){this.lastValue=r,we(this.timeout)&&(this.config.leading&&this.destination.next(r),this.timeout=window.setTimeout(()=>{this.config.trailing&&this.destination.next(this.lastValue),this.timeout=void 0},this.time))}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function mr(e){return r=>new b(t=>r.subscribe(new dr(t,e)))}var dr=class{constructor(r,t){this.destination=r;this.predicate=t}next(r){let t;try{t=this.predicate(r)}catch(n){throw this.error(n),n}t&&this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function hr(e=(r,t)=>r===t){return r=>new b(t=>r.subscribe(new Tr(t,e)))}var vn={},Tr=class{constructor(r,t){this.destination=r;this.predicate=t;this.lastValue=vn}next(r){let t;try{t=this.lastValue===vn||!this.predicate(this.lastValue,r),this.lastValue=r}catch(n){throw this.error(n),n}t&&this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function oe(e){return r=>new b(t=>r.subscribe(new yr(t,e)))}var yr=class{constructor(r,t){this.destination=r;this.mapper=t}next(r){let t;try{t=this.mapper(r)}catch(n){throw this.error(n),n}this.destination.next(t)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function gr(e){return oe(()=>e)}function Ir(){return e=>new b(r=>{let t=!1,n=!1,i=e.subscribe(o=>{t||(t=!0,r.next(o)),n&&i.unsubscribe()},o=>{var u;t=!0,(u=r.error)==null||u.call(r,o),n&&i.unsubscribe()});return n=!0,t&&i.unsubscribe(),i})}function xr(){return e=>new b(r=>e.subscribe(new Or(r)))}var Or=class{constructor(r){this.destination=r;this.hasLast=!1}next(r){let t=this.last;if(this.last=r,!this.hasLast){this.hasLast=!0;return}this.destination.next([t,r])}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function Er(e){return r=>new b(t=>r.subscribe(new wr(t,e)))}var wr=class{constructor(r,t){this.destination=r;this.effect=t}next(r){try{this.effect(r)}catch(t){throw this.error(t),t}this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};var dn=(s=>(s.NETWORK="network",s.VIDEO_PIPELINE="video_pipeline",s.EXTERNAL_API="external_api",s.PARSER="parser",s.DOM="dom",s.WTF="wtf",s.FATAL="fatal",s))(dn||{});var _e=class{constructor(){Object.defineProperty(this,"listeners",{value:{},writable:!0,configurable:!0})}addEventListener(r,t,n){r in this.listeners||(this.listeners[r]=[]),this.listeners[r].push({callback:t,options:n})}removeEventListener(r,t){if(!(r in this.listeners))return;let n=this.listeners[r];for(let i=0,o=n.length;i<o;i++)if(n[i].callback===t){n.splice(i,1);return}}dispatchEvent(r){if(!(r.type in this.listeners))return;let n=this.listeners[r.type].slice();for(let i=0,o=n.length;i<o;i++){let u=n[i];try{u.callback.call(this,r)}catch(s){Promise.resolve().then(()=>{throw s})}u.options&&u.options.once&&this.removeEventListener(r.type,u.callback)}return!r.defaultPrevented}},K=class extends _e{constructor(){super(),this.listeners||_e.call(this),Object.defineProperty(this,"aborted",{value:!1,writable:!0,configurable:!0}),Object.defineProperty(this,"onabort",{value:null,writable:!0,configurable:!0}),Object.defineProperty(this,"reason",{value:void 0,writable:!0,configurable:!0})}toString(){return"[object AbortSignal]"}dispatchEvent(r){r.type==="abort"&&(this.aborted=!0,typeof this.onabort=="function"&&this.onabort.call(this,r)),super.dispatchEvent(r)}},ae=class{constructor(){Object.defineProperty(this,"signal",{value:new K,writable:!0,configurable:!0})}abort(r){let t;try{t=new Event("abort")}catch(i){typeof document!="undefined"?document.createEvent?(t=document.createEvent("Event"),t.initEvent("abort",!1,!1)):(t=document.createEventObject(),t.type="abort"):t={type:"abort",bubbles:!1,cancelable:!1}}let n=r;if(n===void 0)if(typeof document=="undefined")n=new Error("This operation was aborted"),n.name="AbortError";else try{n=new DOMException("signal is aborted without reason")}catch(i){n=new Error("This operation was aborted"),n.name="AbortError"}this.signal.reason=n,this.signal.dispatchEvent(t)}toString(){return"[object AbortController]"}};typeof Symbol!="undefined"&&Symbol.toStringTag&&(ae.prototype[Symbol.toStringTag]="AbortController",K.prototype[Symbol.toStringTag]="AbortSignal");function Ce(e){return e.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL?(console.log("__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL=true is set, will force install polyfill"),!0):typeof e.Request=="function"&&!e.Request.prototype.hasOwnProperty("signal")||!e.AbortController}function Sr(e){typeof e=="function"&&(e={fetch:e});let{fetch:r,Request:t=r.Request,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:i=!1}=e;if(!Ce({fetch:r,Request:t,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:i}))return{fetch:r,Request:o};let o=t;(o&&!o.prototype.hasOwnProperty("signal")||i)&&(o=function(c,l){let f;l&&l.signal&&(f=l.signal,delete l.signal);let v=new t(c,l);return f&&Object.defineProperty(v,"signal",{writable:!1,enumerable:!1,configurable:!0,value:f}),v},o.prototype=t.prototype);let u=r;return{fetch:(p,c)=>{let l=o&&o.prototype.isPrototypeOf(p)?p.signal:c?c.signal:void 0;if(l){let f;try{f=new DOMException("Aborted","AbortError")}catch(d){f=new Error("Aborted"),f.name="AbortError"}if(l.aborted)return Promise.reject(f);let v=new Promise((d,T)=>{l.addEventListener("abort",()=>T(f),{once:!0})});return c&&c.signal&&delete c.signal,Promise.race([v,u(p,c)])}return u(p,c)},Request:o}}var se=Ce({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}),mn=se?Sr({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}):void 0,Tn=se?mn.fetch:window.fetch,fd=se?mn.Request:window.Request,bd=se?ae:window.AbortController,vd=se?K:window.AbortSignal;var os=ms(is(),1),as=(f=>(f.Armenian="58",f.Azerbaijani="57",f.Belarusian="114",f.English="3",f.Kazakh="97",f.Portuguese="73",f.Russian="0",f.Spanish="4",f.Ukrainian="1",f.Uzbek="65",f.Vietnamese="75",f))(as||{}),hf="vk.com",yf=async(e,r,t)=>{let n=new URL(`https://${hf}/js/lang-pack.js`);n.searchParams.set("format","json"),n.searchParams.set("name",r),e!==void 0&&n.searchParams.set("lang",e);let o=await(await Tn(n.toString())).json();return gf(o,t)},gf=(e,r)=>(0,os.default)(Object.entries(e.keys).map(([t,n])=>[t.substring(`${r}_`.length),If(n)])),If=e=>Array.isArray(e)?e[0]:e;var ss=(t=>(t.RU="ru",t.EN="en",t))(ss||{});
|
|
6
|
+
"use strict";var DR=Object.create;var Rr=Object.defineProperty;var bR=Object.getOwnPropertyDescriptor;var yR=Object.getOwnPropertyNames;var gR=Object.getPrototypeOf,UR=Object.prototype.hasOwnProperty;var _=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),ci=(e,r)=>{for(var t in r)Rr(e,t,{get:r[t],enumerable:!0})},li=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of yR(r))!UR.call(e,a)&&a!==t&&Rr(e,a,{get:()=>r[a],enumerable:!(n=bR(r,a))||n.enumerable});return e};var VR=(e,r,t)=>(t=e!=null?DR(gR(e)):{},li(r||!e||!e.__esModule?Rr(t,"default",{value:e,enumerable:!0}):t,e)),BR=e=>li(Rr({},"__esModule",{value:!0}),e);var q=_((cG,Gc)=>{"use strict";Gc.exports=function(e){try{return!!e()}catch(r){return!0}}});var or=_((lG,xc)=>{"use strict";var LD=q();xc.exports=!LD(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var Q=_((OG,Fc)=>{"use strict";var Yc=or(),Hc=Function.prototype,Sa=Hc.call,ID=Yc&&Hc.bind.bind(Sa,Sa);Fc.exports=Yc?ID:function(e){return function(){return Sa.apply(e,arguments)}}});var ct=_((fG,qc)=>{"use strict";var Kc=Q(),hD=Kc({}.toString),CD=Kc("".slice);qc.exports=function(e){return CD(hD(e),8,-1)}});var Xc=_((RG,jc)=>{"use strict";var mD=Q(),DD=q(),bD=ct(),ua=Object,yD=mD("".split);jc.exports=DD(function(){return!ua("z").propertyIsEnumerable(0)})?function(e){return bD(e)==="String"?yD(e,""):ua(e)}:ua});var lt=_((pG,Wc)=>{"use strict";Wc.exports=function(e){return e==null}});var Ot=_((vG,kc)=>{"use strict";var gD=lt(),UD=TypeError;kc.exports=function(e){if(gD(e))throw new UD("Can't call method on "+e);return e}});var be=_((dG,Qc)=>{"use strict";var VD=Xc(),BD=Ot();Qc.exports=function(e){return VD(BD(e))}});var zc=_((NG,$c)=>{"use strict";$c.exports=function(){}});var ce=_((PG,Zc)=>{"use strict";Zc.exports={}});var y=_((Aa,Jc)=>{"use strict";var Er=function(e){return e&&e.Math===Math&&e};Jc.exports=Er(typeof globalThis=="object"&&globalThis)||Er(typeof window=="object"&&window)||Er(typeof self=="object"&&self)||Er(typeof global=="object"&&global)||Er(typeof Aa=="object"&&Aa)||function(){return this}()||Function("return this")()});var g=_((MG,el)=>{"use strict";var ca=typeof document=="object"&&document.all;el.exports=typeof ca=="undefined"&&ca!==void 0?function(e){return typeof e=="function"||e===ca}:function(e){return typeof e=="function"}});var nl=_((LG,tl)=>{"use strict";var wD=y(),GD=g(),rl=wD.WeakMap;tl.exports=GD(rl)&&/native code/.test(String(rl))});var $=_((IG,al)=>{"use strict";var xD=g();al.exports=function(e){return typeof e=="object"?e!==null:xD(e)}});var j=_((hG,il)=>{"use strict";var YD=q();il.exports=!YD(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var Oa=_((CG,El)=>{"use strict";var HD=y(),ol=$(),la=HD.document,FD=ol(la)&&ol(la.createElement);El.exports=function(e){return FD?la.createElement(e):{}}});var fa=_((mG,sl)=>{"use strict";var KD=j(),qD=q(),jD=Oa();sl.exports=!KD&&!qD(function(){return Object.defineProperty(jD("div"),"a",{get:function(){return 7}}).a!==7})});var Ra=_((DG,Tl)=>{"use strict";var XD=j(),WD=q();Tl.exports=XD&&WD(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var le=_((bG,_l)=>{"use strict";var kD=$(),QD=String,$D=TypeError;_l.exports=function(e){if(kD(e))return e;throw new $D(QD(e)+" is not an object")}});var te=_((yG,Sl)=>{"use strict";var zD=or(),ft=Function.prototype.call;Sl.exports=zD?ft.bind(ft):function(){return ft.apply(ft,arguments)}});var Rt=_((gG,ul)=>{"use strict";ul.exports={}});var da=_((UG,cl)=>{"use strict";var pa=Rt(),va=y(),ZD=g(),Al=function(e){return ZD(e)?e:void 0};cl.exports=function(e,r){return arguments.length<2?Al(pa[e])||Al(va[e]):pa[e]&&pa[e][r]||va[e]&&va[e][r]}});var Na=_((VG,ll)=>{"use strict";var JD=Q();ll.exports=JD({}.isPrototypeOf)});var pl=_((BG,Rl)=>{"use strict";var eb=y(),Ol=eb.navigator,fl=Ol&&Ol.userAgent;Rl.exports=fl?String(fl):""});var Il=_((wG,Ll)=>{"use strict";var Ml=y(),Pa=pl(),vl=Ml.process,dl=Ml.Deno,Nl=vl&&vl.versions||dl&&dl.version,Pl=Nl&&Nl.v8,x,pt;Pl&&(x=Pl.split("."),pt=x[0]>0&&x[0]<4?1:+(x[0]+x[1]));!pt&&Pa&&(x=Pa.match(/Edge\/(\d+)/),(!x||x[1]>=74)&&(x=Pa.match(/Chrome\/(\d+)/),x&&(pt=+x[1])));Ll.exports=pt});var Ma=_((GG,Cl)=>{"use strict";var hl=Il(),rb=q(),tb=y(),nb=tb.String;Cl.exports=!!Object.getOwnPropertySymbols&&!rb(function(){var e=Symbol("symbol detection");return!nb(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&hl&&hl<41})});var La=_((xG,ml)=>{"use strict";var ab=Ma();ml.exports=ab&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var Ia=_((YG,Dl)=>{"use strict";var ib=da(),ob=g(),Eb=Na(),sb=La(),Tb=Object;Dl.exports=sb?function(e){return typeof e=="symbol"}:function(e){var r=ib("Symbol");return ob(r)&&Eb(r.prototype,Tb(e))}});var vt=_((HG,bl)=>{"use strict";var _b=String;bl.exports=function(e){try{return _b(e)}catch(r){return"Object"}}});var sr=_((FG,yl)=>{"use strict";var Sb=g(),ub=vt(),Ab=TypeError;yl.exports=function(e){if(Sb(e))return e;throw new Ab(ub(e)+" is not a function")}});var dt=_((KG,gl)=>{"use strict";var cb=sr(),lb=lt();gl.exports=function(e,r){var t=e[r];return lb(t)?void 0:cb(t)}});var Vl=_((qG,Ul)=>{"use strict";var ha=te(),Ca=g(),ma=$(),Ob=TypeError;Ul.exports=function(e,r){var t,n;if(r==="string"&&Ca(t=e.toString)&&!ma(n=ha(t,e))||Ca(t=e.valueOf)&&!ma(n=ha(t,e))||r!=="string"&&Ca(t=e.toString)&&!ma(n=ha(t,e)))return n;throw new Ob("Can't convert object to primitive value")}});var Tr=_((jG,Bl)=>{"use strict";Bl.exports=!0});var xl=_((XG,Gl)=>{"use strict";var wl=y(),fb=Object.defineProperty;Gl.exports=function(e,r){try{fb(wl,e,{value:r,configurable:!0,writable:!0})}catch(t){wl[e]=r}return r}});var Nt=_((WG,Fl)=>{"use strict";var Rb=Tr(),pb=y(),vb=xl(),Yl="__core-js_shared__",Hl=Fl.exports=pb[Yl]||vb(Yl,{});(Hl.versions||(Hl.versions=[])).push({version:"3.38.0",mode:Rb?"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 Da=_((kG,ql)=>{"use strict";var Kl=Nt();ql.exports=function(e,r){return Kl[e]||(Kl[e]=r||{})}});var ba=_((QG,jl)=>{"use strict";var db=Ot(),Nb=Object;jl.exports=function(e){return Nb(db(e))}});var z=_(($G,Xl)=>{"use strict";var Pb=Q(),Mb=ba(),Lb=Pb({}.hasOwnProperty);Xl.exports=Object.hasOwn||function(r,t){return Lb(Mb(r),t)}});var ya=_((zG,Wl)=>{"use strict";var Ib=Q(),hb=0,Cb=Math.random(),mb=Ib(1 .toString);Wl.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+mb(++hb+Cb,36)}});var Z=_((ZG,Ql)=>{"use strict";var Db=y(),bb=Da(),kl=z(),yb=ya(),gb=Ma(),Ub=La(),ye=Db.Symbol,ga=bb("wks"),Vb=Ub?ye.for||ye:ye&&ye.withoutSetter||yb;Ql.exports=function(e){return kl(ga,e)||(ga[e]=gb&&kl(ye,e)?ye[e]:Vb("Symbol."+e)),ga[e]}});var Jl=_((JG,Zl)=>{"use strict";var Bb=te(),$l=$(),zl=Ia(),wb=dt(),Gb=Vl(),xb=Z(),Yb=TypeError,Hb=xb("toPrimitive");Zl.exports=function(e,r){if(!$l(e)||zl(e))return e;var t=wb(e,Hb),n;if(t){if(r===void 0&&(r="default"),n=Bb(t,e,r),!$l(n)||zl(n))return n;throw new Yb("Can't convert object to primitive value")}return r===void 0&&(r="number"),Gb(e,r)}});var Ua=_((ex,eO)=>{"use strict";var Fb=Jl(),Kb=Ia();eO.exports=function(e){var r=Fb(e,"string");return Kb(r)?r:r+""}});var ge=_(tO=>{"use strict";var qb=j(),jb=fa(),Xb=Ra(),Pt=le(),rO=Ua(),Wb=TypeError,Va=Object.defineProperty,kb=Object.getOwnPropertyDescriptor,Ba="enumerable",wa="configurable",Ga="writable";tO.f=qb?Xb?function(r,t,n){if(Pt(r),t=rO(t),Pt(n),typeof r=="function"&&t==="prototype"&&"value"in n&&Ga in n&&!n[Ga]){var a=kb(r,t);a&&a[Ga]&&(r[t]=n.value,n={configurable:wa in n?n[wa]:a[wa],enumerable:Ba in n?n[Ba]:a[Ba],writable:!1})}return Va(r,t,n)}:Va:function(r,t,n){if(Pt(r),t=rO(t),Pt(n),jb)try{return Va(r,t,n)}catch(a){}if("get"in n||"set"in n)throw new Wb("Accessors not supported");return"value"in n&&(r[t]=n.value),r}});var _r=_((tx,nO)=>{"use strict";nO.exports=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}}});var Ue=_((nx,aO)=>{"use strict";var Qb=j(),$b=ge(),zb=_r();aO.exports=Qb?function(e,r,t){return $b.f(e,r,zb(1,t))}:function(e,r,t){return e[r]=t,e}});var Mt=_((ax,oO)=>{"use strict";var Zb=Da(),Jb=ya(),iO=Zb("keys");oO.exports=function(e){return iO[e]||(iO[e]=Jb(e))}});var Lt=_((ix,EO)=>{"use strict";EO.exports={}});var SO=_((ox,_O)=>{"use strict";var ey=nl(),TO=y(),ry=$(),ty=Ue(),xa=z(),Ya=Nt(),ny=Mt(),ay=Lt(),sO="Object already initialized",Ha=TO.TypeError,iy=TO.WeakMap,It,Sr,ht,oy=function(e){return ht(e)?Sr(e):It(e,{})},Ey=function(e){return function(r){var t;if(!ry(r)||(t=Sr(r)).type!==e)throw new Ha("Incompatible receiver, "+e+" required");return t}};ey||Ya.state?(Y=Ya.state||(Ya.state=new iy),Y.get=Y.get,Y.has=Y.has,Y.set=Y.set,It=function(e,r){if(Y.has(e))throw new Ha(sO);return r.facade=e,Y.set(e,r),r},Sr=function(e){return Y.get(e)||{}},ht=function(e){return Y.has(e)}):(Oe=ny("state"),ay[Oe]=!0,It=function(e,r){if(xa(e,Oe))throw new Ha(sO);return r.facade=e,ty(e,Oe,r),r},Sr=function(e){return xa(e,Oe)?e[Oe]:{}},ht=function(e){return xa(e,Oe)});var Y,Oe;_O.exports={set:It,get:Sr,has:ht,enforce:oy,getterFor:Ey}});var OO=_((Ex,lO)=>{"use strict";var sy=or(),cO=Function.prototype,uO=cO.apply,AO=cO.call;lO.exports=typeof Reflect=="object"&&Reflect.apply||(sy?AO.bind(uO):function(){return AO.apply(uO,arguments)})});var Fa=_((sx,fO)=>{"use strict";var Ty=ct(),_y=Q();fO.exports=function(e){if(Ty(e)==="Function")return _y(e)}});var dO=_(vO=>{"use strict";var RO={}.propertyIsEnumerable,pO=Object.getOwnPropertyDescriptor,Sy=pO&&!RO.call({1:2},1);vO.f=Sy?function(r){var t=pO(this,r);return!!t&&t.enumerable}:RO});var MO=_(PO=>{"use strict";var uy=j(),Ay=te(),cy=dO(),ly=_r(),Oy=be(),fy=Ua(),Ry=z(),py=fa(),NO=Object.getOwnPropertyDescriptor;PO.f=uy?NO:function(r,t){if(r=Oy(r),t=fy(t),py)try{return NO(r,t)}catch(n){}if(Ry(r,t))return ly(!Ay(cy.f,r,t),r[t])}});var IO=_((Sx,LO)=>{"use strict";var vy=q(),dy=g(),Ny=/#|\.prototype\./,ur=function(e,r){var t=My[Py(e)];return t===Iy?!0:t===Ly?!1:dy(r)?vy(r):!!r},Py=ur.normalize=function(e){return String(e).replace(Ny,".").toLowerCase()},My=ur.data={},Ly=ur.NATIVE="N",Iy=ur.POLYFILL="P";LO.exports=ur});var Ka=_((ux,CO)=>{"use strict";var hO=Fa(),hy=sr(),Cy=or(),my=hO(hO.bind);CO.exports=function(e,r){return hy(e),r===void 0?e:Cy?my(e,r):function(){return e.apply(r,arguments)}}});var qa=_((Ax,DO)=>{"use strict";var Ar=y(),Dy=OO(),by=Fa(),yy=g(),gy=MO().f,Uy=IO(),Ve=Rt(),Vy=Ka(),Be=Ue(),mO=z();Nt();var By=function(e){var r=function(t,n,a){if(this instanceof r){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,a)}return Dy(e,this,arguments)};return r.prototype=e.prototype,r};DO.exports=function(e,r){var t=e.target,n=e.global,a=e.stat,i=e.proto,o=n?Ar:a?Ar[t]:Ar[t]&&Ar[t].prototype,E=n?Ve:Ve[t]||Be(Ve,t,{})[t],T=E.prototype,s,S,u,A,l,R,M,c,O;for(A in r)s=Uy(n?A:t+(a?".":"#")+A,e.forced),S=!s&&o&&mO(o,A),R=E[A],S&&(e.dontCallGetSet?(O=gy(o,A),M=O&&O.value):M=o[A]),l=S&&M?M:r[A],!(!s&&!i&&typeof R==typeof l)&&(e.bind&&S?c=Vy(l,Ar):e.wrap&&S?c=By(l):i&&yy(l)?c=by(l):c=l,(e.sham||l&&l.sham||R&&R.sham)&&Be(c,"sham",!0),Be(E,A,c),i&&(u=t+"Prototype",mO(Ve,u)||Be(Ve,u,{}),Be(Ve[u],A,l),e.real&&T&&(s||!T[A])&&Be(T,A,l)))}});var gO=_((cx,yO)=>{"use strict";var ja=j(),wy=z(),bO=Function.prototype,Gy=ja&&Object.getOwnPropertyDescriptor,Xa=wy(bO,"name"),xy=Xa&&function(){}.name==="something",Yy=Xa&&(!ja||ja&&Gy(bO,"name").configurable);yO.exports={EXISTS:Xa,PROPER:xy,CONFIGURABLE:Yy}});var VO=_((lx,UO)=>{"use strict";var Hy=Math.ceil,Fy=Math.floor;UO.exports=Math.trunc||function(r){var t=+r;return(t>0?Fy:Hy)(t)}});var Wa=_((Ox,BO)=>{"use strict";var Ky=VO();BO.exports=function(e){var r=+e;return r!==r||r===0?0:Ky(r)}});var GO=_((fx,wO)=>{"use strict";var qy=Wa(),jy=Math.max,Xy=Math.min;wO.exports=function(e,r){var t=qy(e);return t<0?jy(t+r,0):Xy(t,r)}});var YO=_((Rx,xO)=>{"use strict";var Wy=Wa(),ky=Math.min;xO.exports=function(e){var r=Wy(e);return r>0?ky(r,9007199254740991):0}});var ka=_((px,HO)=>{"use strict";var Qy=YO();HO.exports=function(e){return Qy(e.length)}});var qO=_((vx,KO)=>{"use strict";var $y=be(),zy=GO(),Zy=ka(),FO=function(e){return function(r,t,n){var a=$y(r),i=Zy(a);if(i===0)return!e&&-1;var o=zy(n,i),E;if(e&&t!==t){for(;i>o;)if(E=a[o++],E!==E)return!0}else for(;i>o;o++)if((e||o in a)&&a[o]===t)return e||o||0;return!e&&-1}};KO.exports={includes:FO(!0),indexOf:FO(!1)}});var WO=_((dx,XO)=>{"use strict";var Jy=Q(),Qa=z(),eg=be(),rg=qO().indexOf,tg=Lt(),jO=Jy([].push);XO.exports=function(e,r){var t=eg(e),n=0,a=[],i;for(i in t)!Qa(tg,i)&&Qa(t,i)&&jO(a,i);for(;r.length>n;)Qa(t,i=r[n++])&&(~rg(a,i)||jO(a,i));return a}});var $a=_((Nx,kO)=>{"use strict";kO.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var $O=_((Px,QO)=>{"use strict";var ng=WO(),ag=$a();QO.exports=Object.keys||function(r){return ng(r,ag)}});var ZO=_(zO=>{"use strict";var ig=j(),og=Ra(),Eg=ge(),sg=le(),Tg=be(),_g=$O();zO.f=ig&&!og?Object.defineProperties:function(r,t){sg(r);for(var n=Tg(t),a=_g(t),i=a.length,o=0,E;i>o;)Eg.f(r,E=a[o++],n[E]);return r}});var ef=_((Lx,JO)=>{"use strict";var Sg=da();JO.exports=Sg("document","documentElement")});var ei=_((Ix,sf)=>{"use strict";var ug=le(),Ag=ZO(),rf=$a(),cg=Lt(),lg=ef(),Og=Oa(),fg=Mt(),tf=">",nf="<",Za="prototype",Ja="script",of=fg("IE_PROTO"),za=function(){},Ef=function(e){return nf+Ja+tf+e+nf+"/"+Ja+tf},af=function(e){e.write(Ef("")),e.close();var r=e.parentWindow.Object;return e=null,r},Rg=function(){var e=Og("iframe"),r="java"+Ja+":",t;return e.style.display="none",lg.appendChild(e),e.src=String(r),t=e.contentWindow.document,t.open(),t.write(Ef("document.F=Object")),t.close(),t.F},Ct,mt=function(){try{Ct=new ActiveXObject("htmlfile")}catch(r){}mt=typeof document!="undefined"?document.domain&&Ct?af(Ct):Rg():af(Ct);for(var e=rf.length;e--;)delete mt[Za][rf[e]];return mt()};cg[of]=!0;sf.exports=Object.create||function(r,t){var n;return r!==null?(za[Za]=ug(r),n=new za,za[Za]=null,n[of]=r):n=mt(),t===void 0?n:Ag.f(n,t)}});var _f=_((hx,Tf)=>{"use strict";var pg=q();Tf.exports=!pg(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var ti=_((Cx,uf)=>{"use strict";var vg=z(),dg=g(),Ng=ba(),Pg=Mt(),Mg=_f(),Sf=Pg("IE_PROTO"),ri=Object,Lg=ri.prototype;uf.exports=Mg?ri.getPrototypeOf:function(e){var r=Ng(e);if(vg(r,Sf))return r[Sf];var t=r.constructor;return dg(t)&&r instanceof t?t.prototype:r instanceof ri?Lg:null}});var ni=_((mx,Af)=>{"use strict";var Ig=Ue();Af.exports=function(e,r,t,n){return n&&n.enumerable?e[r]=t:Ig(e,r,t),e}});var Ei=_((Dx,Of)=>{"use strict";var hg=q(),Cg=g(),mg=$(),Dg=ei(),cf=ti(),bg=ni(),yg=Z(),gg=Tr(),oi=yg("iterator"),lf=!1,J,ai,ii;[].keys&&(ii=[].keys(),"next"in ii?(ai=cf(cf(ii)),ai!==Object.prototype&&(J=ai)):lf=!0);var Ug=!mg(J)||hg(function(){var e={};return J[oi].call(e)!==e});Ug?J={}:gg&&(J=Dg(J));Cg(J[oi])||bg(J,oi,function(){return this});Of.exports={IteratorPrototype:J,BUGGY_SAFARI_ITERATORS:lf}});var Dt=_((bx,Rf)=>{"use strict";var Vg=Z(),Bg=Vg("toStringTag"),ff={};ff[Bg]="z";Rf.exports=String(ff)==="[object z]"});var si=_((yx,pf)=>{"use strict";var wg=Dt(),Gg=g(),bt=ct(),xg=Z(),Yg=xg("toStringTag"),Hg=Object,Fg=bt(function(){return arguments}())==="Arguments",Kg=function(e,r){try{return e[r]}catch(t){}};pf.exports=wg?bt:function(e){var r,t,n;return e===void 0?"Undefined":e===null?"Null":typeof(t=Kg(r=Hg(e),Yg))=="string"?t:Fg?bt(r):(n=bt(r))==="Object"&&Gg(r.callee)?"Arguments":n}});var df=_((gx,vf)=>{"use strict";var qg=Dt(),jg=si();vf.exports=qg?{}.toString:function(){return"[object "+jg(this)+"]"}});var yt=_((Ux,Pf)=>{"use strict";var Xg=Dt(),Wg=ge().f,kg=Ue(),Qg=z(),$g=df(),zg=Z(),Nf=zg("toStringTag");Pf.exports=function(e,r,t,n){var a=t?e:e&&e.prototype;a&&(Qg(a,Nf)||Wg(a,Nf,{configurable:!0,value:r}),n&&!Xg&&kg(a,"toString",$g))}});var Lf=_((Vx,Mf)=>{"use strict";var Zg=Ei().IteratorPrototype,Jg=ei(),eU=_r(),rU=yt(),tU=ce(),nU=function(){return this};Mf.exports=function(e,r,t,n){var a=r+" Iterator";return e.prototype=Jg(Zg,{next:eU(+!n,t)}),rU(e,a,!1,!0),tU[a]=nU,e}});var hf=_((Bx,If)=>{"use strict";var aU=Q(),iU=sr();If.exports=function(e,r,t){try{return aU(iU(Object.getOwnPropertyDescriptor(e,r)[t]))}catch(n){}}});var mf=_((wx,Cf)=>{"use strict";var oU=$();Cf.exports=function(e){return oU(e)||e===null}});var bf=_((Gx,Df)=>{"use strict";var EU=mf(),sU=String,TU=TypeError;Df.exports=function(e){if(EU(e))return e;throw new TU("Can't set "+sU(e)+" as a prototype")}});var gf=_((xx,yf)=>{"use strict";var _U=hf(),SU=$(),uU=Ot(),AU=bf();yf.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,r={},t;try{t=_U(Object.prototype,"__proto__","set"),t(r,[]),e=r instanceof Array}catch(n){}return function(a,i){return uU(a),AU(i),SU(a)&&(e?t(a,i):a.__proto__=i),a}}():void 0)});var qf=_((Yx,Kf)=>{"use strict";var cU=qa(),lU=te(),gt=Tr(),Hf=gO(),OU=g(),fU=Lf(),Uf=ti(),Vf=gf(),RU=yt(),pU=Ue(),Ti=ni(),vU=Z(),Bf=ce(),Ff=Ei(),dU=Hf.PROPER,NU=Hf.CONFIGURABLE,wf=Ff.IteratorPrototype,Ut=Ff.BUGGY_SAFARI_ITERATORS,cr=vU("iterator"),Gf="keys",lr="values",xf="entries",Yf=function(){return this};Kf.exports=function(e,r,t,n,a,i,o){fU(t,r,n);var E=function(O){if(O===a&&A)return A;if(!Ut&&O&&O in S)return S[O];switch(O){case Gf:return function(){return new t(this,O)};case lr:return function(){return new t(this,O)};case xf:return function(){return new t(this,O)}}return function(){return new t(this)}},T=r+" Iterator",s=!1,S=e.prototype,u=S[cr]||S["@@iterator"]||a&&S[a],A=!Ut&&u||E(a),l=r==="Array"&&S.entries||u,R,M,c;if(l&&(R=Uf(l.call(new e)),R!==Object.prototype&&R.next&&(!gt&&Uf(R)!==wf&&(Vf?Vf(R,wf):OU(R[cr])||Ti(R,cr,Yf)),RU(R,T,!0,!0),gt&&(Bf[T]=Yf))),dU&&a===lr&&u&&u.name!==lr&&(!gt&&NU?pU(S,"name",lr):(s=!0,A=function(){return lU(u,this)})),a)if(M={values:E(lr),keys:i?A:E(Gf),entries:E(xf)},o)for(c in M)(Ut||s||!(c in S))&&Ti(S,c,M[c]);else cU({target:r,proto:!0,forced:Ut||s},M);return(!gt||o)&&S[cr]!==A&&Ti(S,cr,A,{name:a}),Bf[r]=A,M}});var Xf=_((Hx,jf)=>{"use strict";jf.exports=function(e,r){return{value:e,done:r}}});var Si=_((Fx,zf)=>{"use strict";var PU=be(),_i=zc(),Wf=ce(),Qf=SO(),MU=ge().f,LU=qf(),Vt=Xf(),IU=Tr(),hU=j(),$f="Array Iterator",CU=Qf.set,mU=Qf.getterFor($f);zf.exports=LU(Array,"Array",function(e,r){CU(this,{type:$f,target:PU(e),index:0,kind:r})},function(){var e=mU(this),r=e.target,t=e.index++;if(!r||t>=r.length)return e.target=void 0,Vt(void 0,!0);switch(e.kind){case"keys":return Vt(t,!1);case"values":return Vt(r[t],!1)}return Vt([t,r[t]],!1)},"values");var kf=Wf.Arguments=Wf.Array;_i("keys");_i("values");_i("entries");if(!IU&&hU&&kf.name!=="values")try{MU(kf,"name",{value:"values"})}catch(e){}});var Jf=_((Kx,Zf)=>{"use strict";var DU=Z(),bU=ce(),yU=DU("iterator"),gU=Array.prototype;Zf.exports=function(e){return e!==void 0&&(bU.Array===e||gU[yU]===e)}});var ui=_((qx,rR)=>{"use strict";var UU=si(),eR=dt(),VU=lt(),BU=ce(),wU=Z(),GU=wU("iterator");rR.exports=function(e){if(!VU(e))return eR(e,GU)||eR(e,"@@iterator")||BU[UU(e)]}});var nR=_((jx,tR)=>{"use strict";var xU=te(),YU=sr(),HU=le(),FU=vt(),KU=ui(),qU=TypeError;tR.exports=function(e,r){var t=arguments.length<2?KU(e):r;if(YU(t))return HU(xU(t,e));throw new qU(FU(e)+" is not iterable")}});var oR=_((Xx,iR)=>{"use strict";var jU=te(),aR=le(),XU=dt();iR.exports=function(e,r,t){var n,a;aR(e);try{if(n=XU(e,"return"),!n){if(r==="throw")throw t;return t}n=jU(n,e)}catch(i){a=!0,n=i}if(r==="throw")throw t;if(a)throw n;return aR(n),t}});var SR=_((Wx,_R)=>{"use strict";var WU=Ka(),kU=te(),QU=le(),$U=vt(),zU=Jf(),ZU=ka(),ER=Na(),JU=nR(),eV=ui(),sR=oR(),rV=TypeError,Bt=function(e,r){this.stopped=e,this.result=r},TR=Bt.prototype;_R.exports=function(e,r,t){var n=t&&t.that,a=!!(t&&t.AS_ENTRIES),i=!!(t&&t.IS_RECORD),o=!!(t&&t.IS_ITERATOR),E=!!(t&&t.INTERRUPTED),T=WU(r,n),s,S,u,A,l,R,M,c=function(p){return s&&sR(s,"normal",p),new Bt(!0,p)},O=function(p){return a?(QU(p),E?T(p[0],p[1],c):T(p[0],p[1])):E?T(p,c):T(p)};if(i)s=e.iterator;else if(o)s=e;else{if(S=eV(e),!S)throw new rV($U(e)+" is not iterable");if(zU(S)){for(u=0,A=ZU(e);A>u;u++)if(l=O(e[u]),l&&ER(TR,l))return l;return new Bt(!1)}s=JU(e,S)}for(R=i?e.next:s.next;!(M=kU(R,s)).done;){try{l=O(M.value)}catch(p){sR(s,"throw",p)}if(typeof l=="object"&&l&&ER(TR,l))return l}return new Bt(!1)}});var AR=_((kx,uR)=>{"use strict";var tV=j(),nV=ge(),aV=_r();uR.exports=function(e,r,t){tV?nV.f(e,r,aV(0,t)):e[r]=t}});var cR=_(()=>{"use strict";var iV=qa(),oV=SR(),EV=AR();iV({target:"Object",stat:!0},{fromEntries:function(r){var t={};return oV(r,function(n,a){EV(t,n,a)},{AS_ENTRIES:!0}),t}})});var OR=_((zx,lR)=>{"use strict";Si();cR();var sV=Rt();lR.exports=sV.Object.fromEntries});var RR=_((Zx,fR)=>{"use strict";fR.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 vR=_(()=>{"use strict";Si();var TV=RR(),_V=y(),SV=yt(),pR=ce();for(wt in TV)SV(_V[wt],wt),pR[wt]=pR.Array;var wt});var NR=_((r0,dR)=>{"use strict";var uV=OR();vR();dR.exports=uV});var MR=_((t0,PR)=>{"use strict";var AV=NR();PR.exports=AV});var RV={};ci(RV,{Attributes:()=>mc.Attributes,ErrorCategory:()=>Vc,InterfaceLanguage:()=>hR,Logger:()=>pr,Observable:()=>f,Subject:()=>X,Subscription:()=>b,Tracer:()=>nt,VERSION:()=>Oi,VKNumericLanguage:()=>IR,ValueSubject:()=>tr,VideoQuality:()=>Et,abortable:()=>_c,addScript:()=>Ec,areQualitiesExact:()=>Nc,assertEmptyArray:()=>oc,assertNever:()=>H,assertNonNullable:()=>nc,assertNotEmptyArray:()=>ic,assertNullable:()=>ac,assertQualityIsExact:()=>Pc,buffer:()=>kn,checkNever:()=>fi,clearVideoElement:()=>hc,clientChecker:()=>Sc,cloneDeep:()=>Lc,cloneDeepWith:()=>er,combine:()=>jn,debounce:()=>$n,debounceFn:()=>_t,detectEmbed:()=>Ac,fillWithDefault:()=>Mc,filter:()=>ea,filterChanged:()=>ta,flattenObject:()=>rr,fromEvent:()=>gc,getExponentialDelay:()=>uc,getHighestQuality:()=>fc,getTraceSubscriptionMethod:()=>Cc,interval:()=>bc,isHigher:()=>cc,isHigherOrEqual:()=>lc,isInvariantQuality:()=>Tt,isLower:()=>st,isLowerOrEqual:()=>Oc,isMobile:()=>Kn,isNonNullable:()=>ue,isNullable:()=>it,loadVKLangPack:()=>lV,map:()=>nr,mapTo:()=>aa,merge:()=>Xn,noop:()=>ee,now:()=>Tc,observableFrom:()=>yc,observeElementSize:()=>Ic,once:()=>ia,pairwise:()=>Ea,safeStorage:()=>ot,tap:()=>Ta,throttle:()=>Zn,throttleFn:()=>St,timeCodeToString:()=>dD,timeout:()=>Dc,videoHeightToQuality:()=>pc,videoQualityToHeight:()=>dc,videoSizeToQuality:()=>vc});module.exports=BR(RV);var Oi="1.0.40-dev.9357735d.0";var b=class{constructor(){this.subscriptions=[]}unsubscribe(){let r=this.subscriptions;this.subscriptions=[],r.forEach(t=>typeof t=="function"?t():t.unsubscribe())}add(r){return this.subscriptions.push(r),this}};var H=e=>{throw new Error(`${e} is value of unexpected type`)},fi=e=>{};var ee=()=>{};var f=class{constructor(r){r&&(this._subscribe=r)}subscribe(r,t){var o;let n;t?typeof t=="function"?n={next:t,error:ee}:n={next:E=>t.next(E),error:E=>{var T;return(T=t.error)==null?void 0:T.call(t,E)}}:n={next:ee,error:ee};let a=typeof r=="function"?{next:E=>{try{r(E)}catch(T){n.next(T)}},error:E=>n.next(E)}:{next:E=>r.next(E),error:E=>r.error?r.error(E):n.next(E)},i;try{i=this._subscribe(a)}catch(E){(o=a.error)==null||o.call(a,E)}return new b().add(()=>{switch(a.next=ee,a.error=ee,typeof i){case"function":i();return;case"object":i.unsubscribe();return;case"undefined":return;default:return H(i)}})}pipe(...r){return r.reduce((t,n)=>n(t),this)}_subscribe(r){}};var X=class extends f{constructor(){super();this.keyCounter=0;this.subscribers=new Map}next(t){this.subscribers.forEach(n=>n.next(t))}error(t){this.subscribers.forEach(n=>{var a;return(a=n.error)==null?void 0:a.call(n,t)})}_subscribe(t){let n=this.keyCounter++;return this.subscribers.set(n,t),new b().add(()=>this.subscribers.delete(n))}};var pr=class{constructor(){this.log$=new X;this.logs=[];this.log=r=>{let t={...r,timestamp:Date.now()};this.logs.push(t),this.log$.next(t)};this.getAllLogs=()=>this.logs}createCustomLog(r){return(...t)=>{let n;try{n=r(...t)}catch(a){n={message:"error in `createCustomLog`",component:"Logger"}}this.log(n)}}createComponentLog(r){return this.createCustomLog(t=>({component:r,...t}))}};var at=require("@opentelemetry/api");var wR=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{},Te="1.8.0",Ri=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function GR(e){var r=new Set([e]),t=new Set,n=e.match(Ri);if(!n)return function(){return!1};var a={major:+n[1],minor:+n[2],patch:+n[3],prerelease:n[4]};if(a.prerelease!=null)return function(T){return T===e};function i(E){return t.add(E),!1}function o(E){return r.add(E),!0}return function(T){if(r.has(T))return!0;if(t.has(T))return!1;var s=T.match(Ri);if(!s)return i(T);var S={major:+s[1],minor:+s[2],patch:+s[3],prerelease:s[4]};return S.prerelease!=null||a.major!==S.major?i(T):a.major===0?a.minor===S.minor&&a.patch<=S.patch?o(T):i(T):a.minor<=S.minor?o(T):i(T)}}var xR=GR(Te),YR=Te.split(".")[0],je=Symbol.for("opentelemetry.js.api."+YR),Xe=wR;function $e(e,r,t,n){var a;n===void 0&&(n=!1);var i=Xe[je]=(a=Xe[je])!==null&&a!==void 0?a:{version:Te};if(!n&&i[e]){var o=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+e);return t.error(o.stack||o.message),!1}if(i.version!==Te){var o=new Error("@opentelemetry/api: Registration of version v"+i.version+" for "+e+" does not match previously registered API v"+Te);return t.error(o.stack||o.message),!1}return i[e]=r,t.debug("@opentelemetry/api: Registered a global for "+e+" v"+Te+"."),!0}function Se(e){var r,t,n=(r=Xe[je])===null||r===void 0?void 0:r.version;if(!(!n||!xR(n)))return(t=Xe[je])===null||t===void 0?void 0:t[e]}function ze(e,r){r.debug("@opentelemetry/api: Unregistering a global for "+e+" v"+Te+".");var t=Xe[je];t&&delete t[e]}var HR=function(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),a,i=[],o;try{for(;(r===void 0||r-- >0)&&!(a=n.next()).done;)i.push(a.value)}catch(E){o={error:E}}finally{try{a&&!a.done&&(t=n.return)&&t.call(n)}finally{if(o)throw o.error}}return i},FR=function(e,r,t){if(t||arguments.length===2)for(var n=0,a=r.length,i;n<a;n++)(i||!(n in r))&&(i||(i=Array.prototype.slice.call(r,0,n)),i[n]=r[n]);return e.concat(i||Array.prototype.slice.call(r))},KR=function(){function e(r){this._namespace=r.namespace||"DiagComponentLogger"}return e.prototype.debug=function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return we("debug",this._namespace,r)},e.prototype.error=function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return we("error",this._namespace,r)},e.prototype.info=function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return we("info",this._namespace,r)},e.prototype.warn=function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return we("warn",this._namespace,r)},e.prototype.verbose=function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return we("verbose",this._namespace,r)},e}();function we(e,r,t){var n=Se("diag");if(n)return t.unshift(r),n[e].apply(n,FR([],HR(t),!1))}var L;(function(e){e[e.NONE=0]="NONE",e[e.ERROR=30]="ERROR",e[e.WARN=50]="WARN",e[e.INFO=60]="INFO",e[e.DEBUG=70]="DEBUG",e[e.VERBOSE=80]="VERBOSE",e[e.ALL=9999]="ALL"})(L||(L={}));function qR(e,r){e<L.NONE?e=L.NONE:e>L.ALL&&(e=L.ALL),r=r||{};function t(n,a){var i=r[n];return typeof i=="function"&&e>=a?i.bind(r):function(){}}return{error:t("error",L.ERROR),warn:t("warn",L.WARN),info:t("info",L.INFO),debug:t("debug",L.DEBUG),verbose:t("verbose",L.VERBOSE)}}var jR=function(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),a,i=[],o;try{for(;(r===void 0||r-- >0)&&!(a=n.next()).done;)i.push(a.value)}catch(E){o={error:E}}finally{try{a&&!a.done&&(t=n.return)&&t.call(n)}finally{if(o)throw o.error}}return i},XR=function(e,r,t){if(t||arguments.length===2)for(var n=0,a=r.length,i;n<a;n++)(i||!(n in r))&&(i||(i=Array.prototype.slice.call(r,0,n)),i[n]=r[n]);return e.concat(i||Array.prototype.slice.call(r))},WR="diag",K=function(){function e(){function r(a){return function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var E=Se("diag");if(E)return E[a].apply(E,XR([],jR(i),!1))}}var t=this,n=function(a,i){var o,E,T;if(i===void 0&&(i={logLevel:L.INFO}),a===t){var s=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return t.error((o=s.stack)!==null&&o!==void 0?o:s.message),!1}typeof i=="number"&&(i={logLevel:i});var S=Se("diag"),u=qR((E=i.logLevel)!==null&&E!==void 0?E:L.INFO,a);if(S&&!i.suppressOverrideMessage){var A=(T=new Error().stack)!==null&&T!==void 0?T:"<failed to generate stacktrace>";S.warn("Current logger will be overwritten from "+A),u.warn("Current logger will overwrite one already registered from "+A)}return $e("diag",u,t,!0)};t.setLogger=n,t.disable=function(){ze(WR,t)},t.createComponentLogger=function(a){return new KR(a)},t.verbose=r("verbose"),t.debug=r("debug"),t.info=r("info"),t.warn=r("warn"),t.error=r("error")}return e.instance=function(){return this._instance||(this._instance=new e),this._instance},e}(),kR=function(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),a,i=[],o;try{for(;(r===void 0||r-- >0)&&!(a=n.next()).done;)i.push(a.value)}catch(E){o={error:E}}finally{try{a&&!a.done&&(t=n.return)&&t.call(n)}finally{if(o)throw o.error}}return i},QR=function(e){var r=typeof Symbol=="function"&&Symbol.iterator,t=r&&e[r],n=0;if(t)return t.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")},$R=function(){function e(r){this._entries=r?new Map(r):new Map}return e.prototype.getEntry=function(r){var t=this._entries.get(r);if(t)return Object.assign({},t)},e.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(r){var t=kR(r,2),n=t[0],a=t[1];return[n,a]})},e.prototype.setEntry=function(r,t){var n=new e(this._entries);return n._entries.set(r,t),n},e.prototype.removeEntry=function(r){var t=new e(this._entries);return t._entries.delete(r),t},e.prototype.removeEntries=function(){for(var r,t,n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];var i=new e(this._entries);try{for(var o=QR(n),E=o.next();!E.done;E=o.next()){var T=E.value;i._entries.delete(T)}}catch(s){r={error:s}}finally{try{E&&!E.done&&(t=o.return)&&t.call(o)}finally{if(r)throw r.error}}return i},e.prototype.clear=function(){return new e},e}(),zR=Symbol("BaggageEntryMetadata"),ZR=K.instance();function JR(e){return e===void 0&&(e={}),new $R(new Map(Object.entries(e)))}function xi(e){return typeof e!="string"&&(ZR.error("Cannot create baggage metadata from unknown type: "+typeof e),e=""),{__TYPE__:zR,toString:function(){return e}}}function Ze(e){return Symbol.for(e)}var ep=function(){function e(r){var t=this;t._currentContext=r?new Map(r):new Map,t.getValue=function(n){return t._currentContext.get(n)},t.setValue=function(n,a){var i=new e(t._currentContext);return i._currentContext.set(n,a),i},t.deleteValue=function(n){var a=new e(t._currentContext);return a._currentContext.delete(n),a}}return e}(),oe=new ep,Gt=[{n:"error",c:"error"},{n:"warn",c:"warn"},{n:"info",c:"info"},{n:"debug",c:"debug"},{n:"verbose",c:"trace"}],rp=function(){function e(){function r(n){return function(){for(var a=[],i=0;i<arguments.length;i++)a[i]=arguments[i];if(console){var o=console[n];if(typeof o!="function"&&(o=console.log),typeof o=="function")return o.apply(console,a)}}}for(var t=0;t<Gt.length;t++)this[Gt[t].n]=r(Gt[t].c)}return e}(),he=function(){var e=function(r,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},e(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(r,t);function n(){this.constructor=r}r.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),tp=function(){function e(){}return e.prototype.createHistogram=function(r,t){return _p},e.prototype.createCounter=function(r,t){return Tp},e.prototype.createUpDownCounter=function(r,t){return Sp},e.prototype.createObservableGauge=function(r,t){return Ap},e.prototype.createObservableCounter=function(r,t){return up},e.prototype.createObservableUpDownCounter=function(r,t){return cp},e.prototype.addBatchObservableCallback=function(r,t){},e.prototype.removeBatchObservableCallback=function(r){},e}(),An=function(){function e(){}return e}(),np=function(e){he(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.add=function(t,n){},r}(An),ap=function(e){he(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.add=function(t,n){},r}(An),ip=function(e){he(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.record=function(t,n){},r}(An),cn=function(){function e(){}return e.prototype.addCallback=function(r){},e.prototype.removeCallback=function(r){},e}(),op=function(e){he(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r}(cn),Ep=function(e){he(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r}(cn),sp=function(e){he(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r}(cn),Yi=new tp,Tp=new np,_p=new ip,Sp=new ap,up=new op,Ap=new Ep,cp=new sp;function lp(){return Yi}var Qt;(function(e){e[e.INT=0]="INT",e[e.DOUBLE=1]="DOUBLE"})(Qt||(Qt={}));var Hi={get:function(e,r){if(e!=null)return e[r]},keys:function(e){return e==null?[]:Object.keys(e)}},Fi={set:function(e,r,t){e!=null&&(e[r]=t)}},Op=function(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),a,i=[],o;try{for(;(r===void 0||r-- >0)&&!(a=n.next()).done;)i.push(a.value)}catch(E){o={error:E}}finally{try{a&&!a.done&&(t=n.return)&&t.call(n)}finally{if(o)throw o.error}}return i},fp=function(e,r,t){if(t||arguments.length===2)for(var n=0,a=r.length,i;n<a;n++)(i||!(n in r))&&(i||(i=Array.prototype.slice.call(r,0,n)),i[n]=r[n]);return e.concat(i||Array.prototype.slice.call(r))},Rp=function(){function e(){}return e.prototype.active=function(){return oe},e.prototype.with=function(r,t,n){for(var a=[],i=3;i<arguments.length;i++)a[i-3]=arguments[i];return t.call.apply(t,fp([n],Op(a),!1))},e.prototype.bind=function(r,t){return t},e.prototype.enable=function(){return this},e.prototype.disable=function(){return this},e}(),pp=function(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),a,i=[],o;try{for(;(r===void 0||r-- >0)&&!(a=n.next()).done;)i.push(a.value)}catch(E){o={error:E}}finally{try{a&&!a.done&&(t=n.return)&&t.call(n)}finally{if(o)throw o.error}}return i},vp=function(e,r,t){if(t||arguments.length===2)for(var n=0,a=r.length,i;n<a;n++)(i||!(n in r))&&(i||(i=Array.prototype.slice.call(r,0,n)),i[n]=r[n]);return e.concat(i||Array.prototype.slice.call(r))},xt="context",dp=new Rp,qr=function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalContextManager=function(r){return $e(xt,r,K.instance())},e.prototype.active=function(){return this._getContextManager().active()},e.prototype.with=function(r,t,n){for(var a,i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];return(a=this._getContextManager()).with.apply(a,vp([r,t,n],pp(i),!1))},e.prototype.bind=function(r,t){return this._getContextManager().bind(r,t)},e.prototype._getContextManager=function(){return Se(xt)||dp},e.prototype.disable=function(){this._getContextManager().disable(),ze(xt,K.instance())},e}(),U;(function(e){e[e.NONE=0]="NONE",e[e.SAMPLED=1]="SAMPLED"})(U||(U={}));var ln="0000000000000000",On="00000000000000000000000000000000",fn={traceId:On,spanId:ln,traceFlags:U.NONE},He=function(){function e(r){r===void 0&&(r=fn),this._spanContext=r}return e.prototype.spanContext=function(){return this._spanContext},e.prototype.setAttribute=function(r,t){return this},e.prototype.setAttributes=function(r){return this},e.prototype.addEvent=function(r,t){return this},e.prototype.setStatus=function(r){return this},e.prototype.updateName=function(r){return this},e.prototype.end=function(r){},e.prototype.isRecording=function(){return!1},e.prototype.recordException=function(r,t){},e}(),Rn=Ze("OpenTelemetry Context Key SPAN");function pn(e){return e.getValue(Rn)||void 0}function Np(){return pn(qr.getInstance().active())}function vn(e,r){return e.setValue(Rn,r)}function Pp(e){return e.deleteValue(Rn)}function Mp(e,r){return vn(e,new He(r))}function Ki(e){var r;return(r=pn(e))===null||r===void 0?void 0:r.spanContext()}var Lp=/^([0-9a-f]{32})$/i,Ip=/^[0-9a-f]{16}$/i;function jr(e){return Lp.test(e)&&e!==On}function qi(e){return Ip.test(e)&&e!==ln}function Ce(e){return jr(e.traceId)&&qi(e.spanId)}function hp(e){return new He(e)}var Yt=qr.getInstance(),ji=function(){function e(){}return e.prototype.startSpan=function(r,t,n){n===void 0&&(n=Yt.active());var a=!!(t!=null&&t.root);if(a)return new He;var i=n&&Ki(n);return Cp(i)&&Ce(i)?new He(i):new He},e.prototype.startActiveSpan=function(r,t,n,a){var i,o,E;if(!(arguments.length<2)){arguments.length===2?E=t:arguments.length===3?(i=t,E=n):(i=t,o=n,E=a);var T=o!=null?o:Yt.active(),s=this.startSpan(r,i,T),S=vn(T,s);return Yt.with(S,E,void 0,s)}},e}();function Cp(e){return typeof e=="object"&&typeof e.spanId=="string"&&typeof e.traceId=="string"&&typeof e.traceFlags=="number"}var mp=new ji,Xi=function(){function e(r,t,n,a){this._provider=r,this.name=t,this.version=n,this.options=a}return e.prototype.startSpan=function(r,t,n){return this._getTracer().startSpan(r,t,n)},e.prototype.startActiveSpan=function(r,t,n,a){var i=this._getTracer();return Reflect.apply(i.startActiveSpan,i,arguments)},e.prototype._getTracer=function(){if(this._delegate)return this._delegate;var r=this._provider.getDelegateTracer(this.name,this.version,this.options);return r?(this._delegate=r,this._delegate):mp},e}(),Dp=function(){function e(){}return e.prototype.getTracer=function(r,t,n){return new ji},e}(),bp=new Dp,$t=function(){function e(){}return e.prototype.getTracer=function(r,t,n){var a;return(a=this.getDelegateTracer(r,t,n))!==null&&a!==void 0?a:new Xi(this,r,t,n)},e.prototype.getDelegate=function(){var r;return(r=this._delegate)!==null&&r!==void 0?r:bp},e.prototype.setDelegate=function(r){this._delegate=r},e.prototype.getDelegateTracer=function(r,t,n){var a;return(a=this._delegate)===null||a===void 0?void 0:a.getTracer(r,t,n)},e}(),k;(function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(k||(k={}));var yr;(function(e){e[e.INTERNAL=0]="INTERNAL",e[e.SERVER=1]="SERVER",e[e.CLIENT=2]="CLIENT",e[e.PRODUCER=3]="PRODUCER",e[e.CONSUMER=4]="CONSUMER"})(yr||(yr={}));var gr;(function(e){e[e.UNSET=0]="UNSET",e[e.OK=1]="OK",e[e.ERROR=2]="ERROR"})(gr||(gr={}));var zt="[_0-9a-z-*/]",yp="[a-z]"+zt+"{0,255}",gp="[a-z0-9]"+zt+"{0,240}@[a-z]"+zt+"{0,13}",Up=new RegExp("^(?:"+yp+"|"+gp+")$"),Vp=/^[ -~]{0,255}[!-~]$/,Bp=/,|=/;function wp(e){return Up.test(e)}function Gp(e){return Vp.test(e)&&!Bp.test(e)}var pi=32,xp=512,vi=",",di="=",Yp=function(){function e(r){this._internalState=new Map,r&&this._parse(r)}return e.prototype.set=function(r,t){var n=this._clone();return n._internalState.has(r)&&n._internalState.delete(r),n._internalState.set(r,t),n},e.prototype.unset=function(r){var t=this._clone();return t._internalState.delete(r),t},e.prototype.get=function(r){return this._internalState.get(r)},e.prototype.serialize=function(){var r=this;return this._keys().reduce(function(t,n){return t.push(n+di+r.get(n)),t},[]).join(vi)},e.prototype._parse=function(r){r.length>xp||(this._internalState=r.split(vi).reverse().reduce(function(t,n){var a=n.trim(),i=a.indexOf(di);if(i!==-1){var o=a.slice(0,i),E=a.slice(i+1,n.length);wp(o)&&Gp(E)&&t.set(o,E)}return t},new Map),this._internalState.size>pi&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,pi))))},e.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},e.prototype._clone=function(){var r=new e;return r._internalState=new Map(this._internalState),r},e}();function Hp(e){return new Yp(e)}var F=qr.getInstance(),v=K.instance(),Fp=function(){function e(){}return e.prototype.getMeter=function(r,t,n){return Yi},e}(),Kp=new Fp,Ht="metrics",qp=function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalMeterProvider=function(r){return $e(Ht,r,K.instance())},e.prototype.getMeterProvider=function(){return Se(Ht)||Kp},e.prototype.getMeter=function(r,t,n){return this.getMeterProvider().getMeter(r,t,n)},e.prototype.disable=function(){ze(Ht,K.instance())},e}(),dn=qp.getInstance(),jp=function(){function e(){}return e.prototype.inject=function(r,t){},e.prototype.extract=function(r,t){return r},e.prototype.fields=function(){return[]},e}(),Nn=Ze("OpenTelemetry Baggage Key");function Wi(e){return e.getValue(Nn)||void 0}function Xp(){return Wi(qr.getInstance().active())}function Wp(e,r){return e.setValue(Nn,r)}function kp(e){return e.deleteValue(Nn)}var Ft="propagation",Qp=new jp,$p=function(){function e(){this.createBaggage=JR,this.getBaggage=Wi,this.getActiveBaggage=Xp,this.setBaggage=Wp,this.deleteBaggage=kp}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalPropagator=function(r){return $e(Ft,r,K.instance())},e.prototype.inject=function(r,t,n){return n===void 0&&(n=Fi),this._getGlobalPropagator().inject(r,t,n)},e.prototype.extract=function(r,t,n){return n===void 0&&(n=Hi),this._getGlobalPropagator().extract(r,t,n)},e.prototype.fields=function(){return this._getGlobalPropagator().fields()},e.prototype.disable=function(){ze(Ft,K.instance())},e.prototype._getGlobalPropagator=function(){return Se(Ft)||Qp},e}(),de=$p.getInstance(),Kt="trace",zp=function(){function e(){this._proxyTracerProvider=new $t,this.wrapSpanContext=hp,this.isSpanContextValid=Ce,this.deleteSpan=Pp,this.getSpan=pn,this.getActiveSpan=Np,this.getSpanContext=Ki,this.setSpan=vn,this.setSpanContext=Mp}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalTracerProvider=function(r){var t=$e(Kt,this._proxyTracerProvider,K.instance());return t&&this._proxyTracerProvider.setDelegate(r),t},e.prototype.getTracerProvider=function(){return Se(Kt)||this._proxyTracerProvider},e.prototype.getTracer=function(r,t){return this.getTracerProvider().getTracer(r,t)},e.prototype.disable=function(){ze(Kt,K.instance()),this._proxyTracerProvider=new $t},e}(),D=zp.getInstance(),Zp={context:F,diag:v,metrics:dn,propagation:de,trace:D},Jp=Object.freeze({__proto__:null,DiagConsoleLogger:rp,get DiagLogLevel(){return L},INVALID_SPANID:ln,INVALID_SPAN_CONTEXT:fn,INVALID_TRACEID:On,ProxyTracer:Xi,ProxyTracerProvider:$t,ROOT_CONTEXT:oe,get SamplingDecision(){return k},get SpanKind(){return yr},get SpanStatusCode(){return gr},get TraceFlags(){return U},get ValueType(){return Qt},baggageEntryMetadataFromString:xi,context:F,createContextKey:Ze,createNoopMeter:lp,createTraceState:Hp,default:Zp,defaultTextMapGetter:Hi,defaultTextMapSetter:Fi,diag:v,isSpanContextValid:Ce,isValidSpanId:qi,isValidTraceId:jr,metrics:dn,propagation:de,trace:D}),Pn=Ze("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function Mn(e){return e.setValue(Pn,!0)}function ev(e){return e.deleteValue(Pn)}function Xr(e){return e.getValue(Pn)===!0}var rv="=",Zt=";",Ur=",",qt="baggage",tv=180,nv=4096,av=8192,iv=function(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),a,i=[],o;try{for(;(r===void 0||r-- >0)&&!(a=n.next()).done;)i.push(a.value)}catch(E){o={error:E}}finally{try{a&&!a.done&&(t=n.return)&&t.call(n)}finally{if(o)throw o.error}}return i};function ki(e){return e.reduce(function(r,t){var n=""+r+(r!==""?Ur:"")+t;return n.length>av?r:n},"")}function Qi(e){return e.getAllEntries().map(function(r){var t=iv(r,2),n=t[0],a=t[1],i=encodeURIComponent(n)+"="+encodeURIComponent(a.value);return a.metadata!==void 0&&(i+=Zt+a.metadata.toString()),i})}function Ln(e){var r=e.split(Zt);if(!(r.length<=0)){var t=r.shift();if(t){var n=t.indexOf(rv);if(!(n<=0)){var a=decodeURIComponent(t.substring(0,n).trim()),i=decodeURIComponent(t.substring(n+1).trim()),o;return r.length>0&&(o=xi(r.join(Zt))),{key:a,value:i,metadata:o}}}}}function ov(e){return typeof e!="string"||e.length===0?{}:e.split(Ur).map(function(r){return Ln(r)}).filter(function(r){return r!==void 0&&r.value.length>0}).reduce(function(r,t){return r[t.key]=t.value,r},{})}var Ev=Object.freeze({__proto__:null,getKeyPairs:Qi,parseKeyPairsIntoRecord:ov,parsePairKeyValue:Ln,serializeKeyPairs:ki}),$i=function(){function e(){}return e.prototype.inject=function(r,t,n){var a=de.getBaggage(r);if(!(!a||Xr(r))){var i=Qi(a).filter(function(E){return E.length<=nv}).slice(0,tv),o=ki(i);o.length>0&&n.set(t,qt,o)}},e.prototype.extract=function(r,t,n){var a=n.get(t,qt),i=Array.isArray(a)?a.join(Ur):a;if(!i)return r;var o={};if(i.length===0)return r;var E=i.split(Ur);return E.forEach(function(T){var s=Ln(T);if(s){var S={value:s.value};s.metadata&&(S.metadata=s.metadata),o[s.key]=S}}),Object.entries(o).length===0?r:de.setBaggage(r,de.createBaggage(o))},e.prototype.fields=function(){return[qt]},e}(),sv=function(){function e(r,t){this._monotonicClock=t,this._epochMillis=r.now(),this._performanceMillis=t.now()}return e.prototype.now=function(){var r=this._monotonicClock.now()-this._performanceMillis;return this._epochMillis+r},e}(),zi=function(e){var r=typeof Symbol=="function"&&Symbol.iterator,t=r&&e[r],n=0;if(t)return t.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")},Tv=function(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),a,i=[],o;try{for(;(r===void 0||r-- >0)&&!(a=n.next()).done;)i.push(a.value)}catch(E){o={error:E}}finally{try{a&&!a.done&&(t=n.return)&&t.call(n)}finally{if(o)throw o.error}}return i};function Fe(e){var r,t,n={};if(typeof e!="object"||e==null)return n;try{for(var a=zi(Object.entries(e)),i=a.next();!i.done;i=a.next()){var o=Tv(i.value,2),E=o[0],T=o[1];if(!Zi(E)){v.warn("Invalid attribute key: "+E);continue}if(!In(T)){v.warn("Invalid attribute value set for key: "+E);continue}Array.isArray(T)?n[E]=T.slice():n[E]=T}}catch(s){r={error:s}}finally{try{i&&!i.done&&(t=a.return)&&t.call(a)}finally{if(r)throw r.error}}return n}function Zi(e){return typeof e=="string"&&e.length>0}function In(e){return e==null?!0:Array.isArray(e)?_v(e):Ji(e)}function _v(e){var r,t,n;try{for(var a=zi(e),i=a.next();!i.done;i=a.next()){var o=i.value;if(o!=null){if(!n){if(Ji(o)){n=typeof o;continue}return!1}if(typeof o!==n)return!1}}}catch(E){r={error:E}}finally{try{i&&!i.done&&(t=a.return)&&t.call(a)}finally{if(r)throw r.error}}return!0}function Ji(e){switch(typeof e){case"number":case"boolean":case"string":return!0}return!1}function eo(){return function(e){v.error(Sv(e))}}function Sv(e){return typeof e=="string"?e:JSON.stringify(uv(e))}function uv(e){for(var r={},t=e;t!==null;)Object.getOwnPropertyNames(t).forEach(function(n){if(!r[n]){var a=t[n];a&&(r[n]=String(a))}}),t=Object.getPrototypeOf(t);return r}var ro=eo();function Av(e){ro=e}function Pe(e){try{ro(e)}catch(r){}}var G;(function(e){e.AlwaysOff="always_off",e.AlwaysOn="always_on",e.ParentBasedAlwaysOff="parentbased_always_off",e.ParentBasedAlwaysOn="parentbased_always_on",e.ParentBasedTraceIdRatio="parentbased_traceidratio",e.TraceIdRatio="traceidratio"})(G||(G={}));var cv=",",lv=["OTEL_SDK_DISABLED"];function Ov(e){return lv.indexOf(e)>-1}var fv=["OTEL_BSP_EXPORT_TIMEOUT","OTEL_BSP_MAX_EXPORT_BATCH_SIZE","OTEL_BSP_MAX_QUEUE_SIZE","OTEL_BSP_SCHEDULE_DELAY","OTEL_BLRP_EXPORT_TIMEOUT","OTEL_BLRP_MAX_EXPORT_BATCH_SIZE","OTEL_BLRP_MAX_QUEUE_SIZE","OTEL_BLRP_SCHEDULE_DELAY","OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_EVENT_COUNT_LIMIT","OTEL_SPAN_LINK_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT","OTEL_EXPORTER_OTLP_TIMEOUT","OTEL_EXPORTER_OTLP_TRACES_TIMEOUT","OTEL_EXPORTER_OTLP_METRICS_TIMEOUT","OTEL_EXPORTER_OTLP_LOGS_TIMEOUT","OTEL_EXPORTER_JAEGER_AGENT_PORT"];function Rv(e){return fv.indexOf(e)>-1}var pv=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS"];function vv(e){return pv.indexOf(e)>-1}var Ke=1/0,qe=128,to=128,no=128,hn={OTEL_SDK_DISABLED:!1,CONTAINER_NAME:"",ECS_CONTAINER_METADATA_URI_V4:"",ECS_CONTAINER_METADATA_URI:"",HOSTNAME:"",KUBERNETES_SERVICE_HOST:"",NAMESPACE:"",OTEL_BSP_EXPORT_TIMEOUT:3e4,OTEL_BSP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BSP_MAX_QUEUE_SIZE:2048,OTEL_BSP_SCHEDULE_DELAY:5e3,OTEL_BLRP_EXPORT_TIMEOUT:3e4,OTEL_BLRP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BLRP_MAX_QUEUE_SIZE:2048,OTEL_BLRP_SCHEDULE_DELAY:5e3,OTEL_EXPORTER_JAEGER_AGENT_HOST:"",OTEL_EXPORTER_JAEGER_AGENT_PORT:6832,OTEL_EXPORTER_JAEGER_ENDPOINT:"",OTEL_EXPORTER_JAEGER_PASSWORD:"",OTEL_EXPORTER_JAEGER_USER:"",OTEL_EXPORTER_OTLP_ENDPOINT:"",OTEL_EXPORTER_OTLP_TRACES_ENDPOINT:"",OTEL_EXPORTER_OTLP_METRICS_ENDPOINT:"",OTEL_EXPORTER_OTLP_LOGS_ENDPOINT:"",OTEL_EXPORTER_OTLP_HEADERS:"",OTEL_EXPORTER_OTLP_TRACES_HEADERS:"",OTEL_EXPORTER_OTLP_METRICS_HEADERS:"",OTEL_EXPORTER_OTLP_LOGS_HEADERS:"",OTEL_EXPORTER_OTLP_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_TRACES_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_METRICS_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_LOGS_TIMEOUT:1e4,OTEL_EXPORTER_ZIPKIN_ENDPOINT:"http://localhost:9411/api/v2/spans",OTEL_LOG_LEVEL:L.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:Ke,OTEL_ATTRIBUTE_COUNT_LIMIT:qe,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:Ke,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:qe,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:Ke,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:qe,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:to,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:no,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:G.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:"",OTEL_LOGS_EXPORTER:"",OTEL_EXPORTER_OTLP_INSECURE:"",OTEL_EXPORTER_OTLP_TRACES_INSECURE:"",OTEL_EXPORTER_OTLP_METRICS_INSECURE:"",OTEL_EXPORTER_OTLP_LOGS_INSECURE:"",OTEL_EXPORTER_OTLP_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_COMPRESSION:"",OTEL_EXPORTER_OTLP_TRACES_COMPRESSION:"",OTEL_EXPORTER_OTLP_METRICS_COMPRESSION:"",OTEL_EXPORTER_OTLP_LOGS_COMPRESSION:"",OTEL_EXPORTER_OTLP_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_LOGS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE:"cumulative"};function dv(e,r,t){if(typeof t[e]!="undefined"){var n=String(t[e]);r[e]=n.toLowerCase()==="true"}}function Nv(e,r,t,n,a){if(n===void 0&&(n=-1/0),a===void 0&&(a=1/0),typeof t[e]!="undefined"){var i=Number(t[e]);isNaN(i)||(i<n?r[e]=n:i>a?r[e]=a:r[e]=i)}}function Pv(e,r,t,n){n===void 0&&(n=cv);var a=t[e];typeof a=="string"&&(r[e]=a.split(n).map(function(i){return i.trim()}))}var Mv={ALL:L.ALL,VERBOSE:L.VERBOSE,DEBUG:L.DEBUG,INFO:L.INFO,WARN:L.WARN,ERROR:L.ERROR,NONE:L.NONE};function Lv(e,r,t){var n=t[e];if(typeof n=="string"){var a=Mv[n.toUpperCase()];a!=null&&(r[e]=a)}}function Cn(e){var r={};for(var t in hn){var n=t;switch(n){case"OTEL_LOG_LEVEL":Lv(n,r,e);break;default:if(Ov(n))dv(n,r,e);else if(Rv(n))Nv(n,r,e);else if(vv(n))Pv(n,r,e);else{var a=e[n];typeof a!="undefined"&&a!==null&&(r[n]=String(a))}}}return r}var mn=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{};function m(){var e=Cn(mn);return Object.assign({},hn,e)}function ao(){return Cn(mn)}function Ni(e){return e>=48&&e<=57?e-48:e>=97&&e<=102?e-87:e-55}function io(e){for(var r=new Uint8Array(e.length/2),t=0,n=0;n<e.length;n+=2){var a=Ni(e.charCodeAt(n)),i=Ni(e.charCodeAt(n+1));r[t++]=a<<4|i}return r}var Iv=function(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),a,i=[],o;try{for(;(r===void 0||r-- >0)&&!(a=n.next()).done;)i.push(a.value)}catch(E){o={error:E}}finally{try{a&&!a.done&&(t=n.return)&&t.call(n)}finally{if(o)throw o.error}}return i},hv=function(e,r,t){if(t||arguments.length===2)for(var n=0,a=r.length,i;n<a;n++)(i||!(n in r))&&(i||(i=Array.prototype.slice.call(r,0,n)),i[n]=r[n]);return e.concat(i||Array.prototype.slice.call(r))};function Cv(e){return btoa(String.fromCharCode.apply(String,hv([],Iv(io(e)),!1)))}var mv=8,Dv=16,bv=function(){function e(){this.generateTraceId=Pi(Dv),this.generateSpanId=Pi(mv)}return e}(),vr=Array(32);function Pi(e){return function(){for(var t=0;t<e*2;t++)vr[t]=Math.floor(Math.random()*16)+48,vr[t]>=58&&(vr[t]+=39);return String.fromCharCode.apply(null,vr.slice(0,e*2))}}var _e=performance,oo="1.25.1";function h(e){for(var r={},t=e.length,n=0;n<t;n++){var a=e[n];a&&(r[String(a).toUpperCase().replace(/[-.]/g,"_")]=a)}return r}var Eo="aws.lambda.invoked_arn",so="db.system",To="db.connection_string",_o="db.user",So="db.jdbc.driver_classname",uo="db.name",Ao="db.statement",co="db.operation",lo="db.mssql.instance_name",Oo="db.cassandra.keyspace",fo="db.cassandra.page_size",Ro="db.cassandra.consistency_level",po="db.cassandra.table",vo="db.cassandra.idempotence",No="db.cassandra.speculative_execution_count",Po="db.cassandra.coordinator.id",Mo="db.cassandra.coordinator.dc",Lo="db.hbase.namespace",Io="db.redis.database_index",ho="db.mongodb.collection",Co="db.sql.table",mo="exception.type",Do="exception.message",bo="exception.stacktrace",yo="exception.escaped",go="faas.trigger",Uo="faas.execution",Vo="faas.document.collection",Bo="faas.document.operation",wo="faas.document.time",Go="faas.document.name",xo="faas.time",Yo="faas.cron",Ho="faas.coldstart",Fo="faas.invoked_name",Ko="faas.invoked_provider",qo="faas.invoked_region",jo="net.transport",Xo="net.peer.ip",Wo="net.peer.port",ko="net.peer.name",Qo="net.host.ip",$o="net.host.port",zo="net.host.name",Zo="net.host.connection.type",Jo="net.host.connection.subtype",eE="net.host.carrier.name",rE="net.host.carrier.mcc",tE="net.host.carrier.mnc",nE="net.host.carrier.icc",aE="peer.service",iE="enduser.id",oE="enduser.role",EE="enduser.scope",sE="thread.id",TE="thread.name",_E="code.function",SE="code.namespace",uE="code.filepath",AE="code.lineno",cE="http.method",lE="http.url",OE="http.target",fE="http.host",RE="http.scheme",pE="http.status_code",vE="http.flavor",dE="http.user_agent",NE="http.request_content_length",PE="http.request_content_length_uncompressed",ME="http.response_content_length",LE="http.response_content_length_uncompressed",IE="http.server_name",hE="http.route",CE="http.client_ip",mE="aws.dynamodb.table_names",DE="aws.dynamodb.consumed_capacity",bE="aws.dynamodb.item_collection_metrics",yE="aws.dynamodb.provisioned_read_capacity",gE="aws.dynamodb.provisioned_write_capacity",UE="aws.dynamodb.consistent_read",VE="aws.dynamodb.projection",BE="aws.dynamodb.limit",wE="aws.dynamodb.attributes_to_get",GE="aws.dynamodb.index_name",xE="aws.dynamodb.select",YE="aws.dynamodb.global_secondary_indexes",HE="aws.dynamodb.local_secondary_indexes",FE="aws.dynamodb.exclusive_start_table",KE="aws.dynamodb.table_count",qE="aws.dynamodb.scan_forward",jE="aws.dynamodb.segment",XE="aws.dynamodb.total_segments",WE="aws.dynamodb.count",kE="aws.dynamodb.scanned_count",QE="aws.dynamodb.attribute_definitions",$E="aws.dynamodb.global_secondary_index_updates",zE="messaging.system",ZE="messaging.destination",JE="messaging.destination_kind",es="messaging.temp_destination",rs="messaging.protocol",ts="messaging.protocol_version",ns="messaging.url",as="messaging.message_id",is="messaging.conversation_id",os="messaging.message_payload_size_bytes",Es="messaging.message_payload_compressed_size_bytes",ss="messaging.operation",Ts="messaging.consumer_id",_s="messaging.rabbitmq.routing_key",Ss="messaging.kafka.message_key",us="messaging.kafka.consumer_group",As="messaging.kafka.client_id",cs="messaging.kafka.partition",ls="messaging.kafka.tombstone",Os="rpc.system",fs="rpc.service",Rs="rpc.method",ps="rpc.grpc.status_code",vs="rpc.jsonrpc.version",ds="rpc.jsonrpc.request_id",Ns="rpc.jsonrpc.error_code",Ps="rpc.jsonrpc.error_message",Ms="message.type",Ls="message.id",Is="message.compressed_size",hs="message.uncompressed_size",yv=Eo,gv=so,Uv=To,Vv=_o,Bv=So,wv=uo,Gv=Ao,xv=co,Yv=lo,Hv=Oo,Fv=fo,Kv=Ro,qv=po,jv=vo,Xv=No,Wv=Po,kv=Mo,Qv=Lo,$v=Io,zv=ho,Zv=Co,Lr=mo,Ir=Do,Cs=bo,Jv=yo,ed=go,rd=Uo,td=Vo,nd=Bo,ad=wo,id=Go,od=xo,Ed=Yo,sd=Ho,Td=Fo,_d=Ko,Sd=qo,ud=jo,Ad=Xo,cd=Wo,ld=ko,Od=Qo,fd=$o,Rd=zo,pd=Zo,vd=Jo,dd=eE,Nd=rE,Pd=tE,Md=nE,Ld=aE,Id=iE,hd=oE,Cd=EE,md=sE,Dd=TE,bd=_E,yd=SE,gd=uE,Ud=AE,Vd=cE,Bd=lE,wd=OE,Gd=fE,xd=RE,Yd=pE,Hd=vE,Fd=dE,Kd=NE,qd=PE,jd=ME,Xd=LE,Wd=IE,kd=hE,Qd=CE,$d=mE,zd=DE,Zd=bE,Jd=yE,eN=gE,rN=UE,tN=VE,nN=BE,aN=wE,iN=GE,oN=xE,EN=YE,sN=HE,TN=FE,_N=KE,SN=qE,uN=jE,AN=XE,cN=WE,lN=kE,ON=QE,fN=$E,RN=zE,pN=ZE,vN=JE,dN=es,NN=rs,PN=ts,MN=ns,LN=as,IN=is,hN=os,CN=Es,mN=ss,DN=Ts,bN=_s,yN=Ss,gN=us,UN=As,VN=cs,BN=ls,wN=Os,GN=fs,xN=Rs,YN=ps,HN=vs,FN=ds,KN=Ns,qN=Ps,jN=Ms,XN=Ls,WN=Is,kN=hs,QN=h([Eo,so,To,_o,So,uo,Ao,co,lo,Oo,fo,Ro,po,vo,No,Po,Mo,Lo,Io,ho,Co,mo,Do,bo,yo,go,Uo,Vo,Bo,wo,Go,xo,Yo,Ho,Fo,Ko,qo,jo,Xo,Wo,ko,Qo,$o,zo,Zo,Jo,eE,rE,tE,nE,aE,iE,oE,EE,sE,TE,_E,SE,uE,AE,cE,lE,OE,fE,RE,pE,vE,dE,NE,PE,ME,LE,IE,hE,CE,mE,DE,bE,yE,gE,UE,VE,BE,wE,GE,xE,YE,HE,FE,KE,qE,jE,XE,WE,kE,QE,$E,zE,ZE,JE,es,rs,ts,ns,as,is,os,Es,ss,Ts,_s,Ss,us,As,cs,ls,Os,fs,Rs,ps,vs,ds,Ns,Ps,Ms,Ls,Is,hs]),ms="other_sql",Ds="mssql",bs="mysql",ys="oracle",gs="db2",Us="postgresql",Vs="redshift",Bs="hive",ws="cloudscape",Gs="hsqldb",xs="progress",Ys="maxdb",Hs="hanadb",Fs="ingres",Ks="firstsql",qs="edb",js="cache",Xs="adabas",Ws="firebird",ks="derby",Qs="filemaker",$s="informix",zs="instantdb",Zs="interbase",Js="mariadb",eT="netezza",rT="pervasive",tT="pointbase",nT="sqlite",aT="sybase",iT="teradata",oT="vertica",ET="h2",sT="coldfusion",TT="cassandra",_T="hbase",ST="mongodb",uT="redis",AT="couchbase",cT="couchdb",lT="cosmosdb",OT="dynamodb",fT="neo4j",RT="geode",pT="elasticsearch",vT="memcached",dT="cockroachdb",$N=ms,zN=Ds,ZN=bs,JN=ys,eP=gs,rP=Us,tP=Vs,nP=Bs,aP=ws,iP=Gs,oP=xs,EP=Ys,sP=Hs,TP=Fs,_P=Ks,SP=qs,uP=js,AP=Xs,cP=Ws,lP=ks,OP=Qs,fP=$s,RP=zs,pP=Zs,vP=Js,dP=eT,NP=rT,PP=tT,MP=nT,LP=aT,IP=iT,hP=oT,CP=ET,mP=sT,DP=TT,bP=_T,yP=ST,gP=uT,UP=AT,VP=cT,BP=lT,wP=OT,GP=fT,xP=RT,YP=pT,HP=vT,FP=dT,KP=h([ms,Ds,bs,ys,gs,Us,Vs,Bs,ws,Gs,xs,Ys,Hs,Fs,Ks,qs,js,Xs,Ws,ks,Qs,$s,zs,Zs,Js,eT,rT,tT,nT,aT,iT,oT,ET,sT,TT,_T,ST,uT,AT,cT,lT,OT,fT,RT,pT,vT,dT]),NT="all",PT="each_quorum",MT="quorum",LT="local_quorum",IT="one",hT="two",CT="three",mT="local_one",DT="any",bT="serial",yT="local_serial",qP=NT,jP=PT,XP=MT,WP=LT,kP=IT,QP=hT,$P=CT,zP=mT,ZP=DT,JP=bT,eM=yT,rM=h([NT,PT,MT,LT,IT,hT,CT,mT,DT,bT,yT]),gT="datasource",UT="http",VT="pubsub",BT="timer",wT="other",tM=gT,nM=UT,aM=VT,iM=BT,oM=wT,EM=h([gT,UT,VT,BT,wT]),GT="insert",xT="edit",YT="delete",sM=GT,TM=xT,_M=YT,SM=h([GT,xT,YT]),HT="alibaba_cloud",FT="aws",KT="azure",qT="gcp",uM=HT,AM=FT,cM=KT,lM=qT,OM=h([HT,FT,KT,qT]),jT="ip_tcp",XT="ip_udp",WT="ip",kT="unix",QT="pipe",$T="inproc",zT="other",fM=jT,RM=XT,pM=WT,vM=kT,dM=QT,NM=$T,PM=zT,MM=h([jT,XT,WT,kT,QT,$T,zT]),ZT="wifi",JT="wired",e_="cell",r_="unavailable",t_="unknown",LM=ZT,IM=JT,hM=e_,CM=r_,mM=t_,DM=h([ZT,JT,e_,r_,t_]),n_="gprs",a_="edge",i_="umts",o_="cdma",E_="evdo_0",s_="evdo_a",T_="cdma2000_1xrtt",__="hsdpa",S_="hsupa",u_="hspa",A_="iden",c_="evdo_b",l_="lte",O_="ehrpd",f_="hspap",R_="gsm",p_="td_scdma",v_="iwlan",d_="nr",N_="nrnsa",P_="lte_ca",bM=n_,yM=a_,gM=i_,UM=o_,VM=E_,BM=s_,wM=T_,GM=__,xM=S_,YM=u_,HM=A_,FM=c_,KM=l_,qM=O_,jM=f_,XM=R_,WM=p_,kM=v_,QM=d_,$M=N_,zM=P_,ZM=h([n_,a_,i_,o_,E_,s_,T_,__,S_,u_,A_,c_,l_,O_,f_,R_,p_,v_,d_,N_,P_]),M_="1.0",L_="1.1",I_="2.0",h_="SPDY",C_="QUIC",JM=M_,eL=L_,rL=I_,tL=h_,nL=C_,aL={HTTP_1_0:M_,HTTP_1_1:L_,HTTP_2_0:I_,SPDY:h_,QUIC:C_},m_="queue",D_="topic",iL=m_,oL=D_,EL=h([m_,D_]),b_="receive",y_="process",sL=b_,TL=y_,_L=h([b_,y_]),g_=0,U_=1,V_=2,B_=3,w_=4,G_=5,x_=6,Y_=7,H_=8,F_=9,K_=10,q_=11,j_=12,X_=13,W_=14,k_=15,Q_=16,SL=g_,uL=U_,AL=V_,cL=B_,lL=w_,OL=G_,fL=x_,RL=Y_,pL=H_,vL=F_,dL=K_,NL=q_,PL=j_,ML=X_,LL=W_,IL=k_,hL=Q_,CL={OK:g_,CANCELLED:U_,UNKNOWN:V_,INVALID_ARGUMENT:B_,DEADLINE_EXCEEDED:w_,NOT_FOUND:G_,ALREADY_EXISTS:x_,PERMISSION_DENIED:Y_,RESOURCE_EXHAUSTED:H_,FAILED_PRECONDITION:F_,ABORTED:K_,OUT_OF_RANGE:q_,UNIMPLEMENTED:j_,INTERNAL:X_,UNAVAILABLE:W_,DATA_LOSS:k_,UNAUTHENTICATED:Q_},$_="SENT",z_="RECEIVED",mL=$_,DL=z_,bL=h([$_,z_]),Z_="cloud.provider",J_="cloud.account.id",eS="cloud.region",rS="cloud.availability_zone",tS="cloud.platform",nS="aws.ecs.container.arn",aS="aws.ecs.cluster.arn",iS="aws.ecs.launchtype",oS="aws.ecs.task.arn",ES="aws.ecs.task.family",sS="aws.ecs.task.revision",TS="aws.eks.cluster.arn",_S="aws.log.group.names",SS="aws.log.group.arns",uS="aws.log.stream.names",AS="aws.log.stream.arns",cS="container.name",lS="container.id",OS="container.runtime",fS="container.image.name",RS="container.image.tag",pS="deployment.environment",vS="device.id",dS="device.model.identifier",NS="device.model.name",PS="faas.name",MS="faas.id",LS="faas.version",IS="faas.instance",hS="faas.max_memory",CS="host.id",mS="host.name",DS="host.type",bS="host.arch",yS="host.image.name",gS="host.image.id",US="host.image.version",VS="k8s.cluster.name",BS="k8s.node.name",wS="k8s.node.uid",GS="k8s.namespace.name",xS="k8s.pod.uid",YS="k8s.pod.name",HS="k8s.container.name",FS="k8s.replicaset.uid",KS="k8s.replicaset.name",qS="k8s.deployment.uid",jS="k8s.deployment.name",XS="k8s.statefulset.uid",WS="k8s.statefulset.name",kS="k8s.daemonset.uid",QS="k8s.daemonset.name",$S="k8s.job.uid",zS="k8s.job.name",ZS="k8s.cronjob.uid",JS="k8s.cronjob.name",eu="os.type",ru="os.description",tu="os.name",nu="os.version",au="process.pid",iu="process.executable.name",ou="process.executable.path",Eu="process.command",su="process.command_line",Tu="process.command_args",_u="process.owner",Su="process.runtime.name",uu="process.runtime.version",Au="process.runtime.description",cu="service.name",lu="service.namespace",Ou="service.instance.id",fu="service.version",Ru="telemetry.sdk.name",pu="telemetry.sdk.language",vu="telemetry.sdk.version",du="telemetry.auto.version",Nu="webengine.name",Pu="webengine.version",Mu="webengine.description",yL=Z_,gL=J_,UL=eS,VL=rS,BL=tS,wL=nS,GL=aS,xL=iS,YL=oS,HL=ES,FL=sS,KL=TS,qL=_S,jL=SS,XL=uS,WL=AS,kL=cS,QL=lS,$L=OS,zL=fS,ZL=RS,JL=pS,eI=vS,rI=dS,tI=NS,nI=PS,aI=MS,iI=LS,oI=IS,EI=hS,sI=CS,TI=mS,_I=DS,SI=bS,uI=yS,AI=gS,cI=US,lI=VS,OI=BS,fI=wS,RI=GS,pI=xS,vI=YS,dI=HS,NI=FS,PI=KS,MI=qS,LI=jS,II=XS,hI=WS,CI=kS,mI=QS,DI=$S,bI=zS,yI=ZS,gI=JS,UI=eu,VI=ru,BI=tu,wI=nu,GI=au,xI=iu,YI=ou,HI=Eu,FI=su,KI=Tu,qI=_u,Lu=Su,jI=uu,XI=Au,Dn=cu,WI=lu,kI=Ou,QI=fu,Vr=Ru,Br=pu,wr=vu,$I=du,zI=Nu,ZI=Pu,JI=Mu,eh=h([Z_,J_,eS,rS,tS,nS,aS,iS,oS,ES,sS,TS,_S,SS,uS,AS,cS,lS,OS,fS,RS,pS,vS,dS,NS,PS,MS,LS,IS,hS,CS,mS,DS,bS,yS,gS,US,VS,BS,wS,GS,xS,YS,HS,FS,KS,qS,jS,XS,WS,kS,QS,$S,zS,ZS,JS,eu,ru,tu,nu,au,iu,ou,Eu,su,Tu,_u,Su,uu,Au,cu,lu,Ou,fu,Ru,pu,vu,du,Nu,Pu,Mu]),Iu="alibaba_cloud",hu="aws",Cu="azure",mu="gcp",rh=Iu,th=hu,nh=Cu,ah=mu,ih=h([Iu,hu,Cu,mu]),Du="alibaba_cloud_ecs",bu="alibaba_cloud_fc",yu="aws_ec2",gu="aws_ecs",Uu="aws_eks",Vu="aws_lambda",Bu="aws_elastic_beanstalk",wu="azure_vm",Gu="azure_container_instances",xu="azure_aks",Yu="azure_functions",Hu="azure_app_service",Fu="gcp_compute_engine",Ku="gcp_cloud_run",qu="gcp_kubernetes_engine",ju="gcp_cloud_functions",Xu="gcp_app_engine",oh=Du,Eh=bu,sh=yu,Th=gu,_h=Uu,Sh=Vu,uh=Bu,Ah=wu,ch=Gu,lh=xu,Oh=Yu,fh=Hu,Rh=Fu,ph=Ku,vh=qu,dh=ju,Nh=Xu,Ph=h([Du,bu,yu,gu,Uu,Vu,Bu,wu,Gu,xu,Yu,Hu,Fu,Ku,qu,ju,Xu]),Wu="ec2",ku="fargate",Mh=Wu,Lh=ku,Ih=h([Wu,ku]),Qu="amd64",$u="arm32",zu="arm64",Zu="ia64",Ju="ppc32",eA="ppc64",rA="x86",hh=Qu,Ch=$u,mh=zu,Dh=Zu,bh=Ju,yh=eA,gh=rA,Uh=h([Qu,$u,zu,Zu,Ju,eA,rA]),tA="windows",nA="linux",aA="darwin",iA="freebsd",oA="netbsd",EA="openbsd",sA="dragonflybsd",TA="hpux",_A="aix",SA="solaris",uA="z_os",Vh=tA,Bh=nA,wh=aA,Gh=iA,xh=oA,Yh=EA,Hh=sA,Fh=TA,Kh=_A,qh=SA,jh=uA,Xh=h([tA,nA,aA,iA,oA,EA,sA,TA,_A,SA,uA]),AA="cpp",cA="dotnet",lA="erlang",OA="go",fA="java",RA="nodejs",pA="php",vA="python",dA="ruby",NA="webjs",Wh=AA,kh=cA,Qh=lA,$h=OA,zh=fA,Zh=RA,Jh=pA,eC=vA,rC=dA,PA=NA,tC=h([AA,cA,lA,OA,fA,RA,pA,vA,dA,NA]),nC=Object.freeze({__proto__:null,AWSECSLAUNCHTYPEVALUES_EC2:Mh,AWSECSLAUNCHTYPEVALUES_FARGATE:Lh,AwsEcsLaunchtypeValues:Ih,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_ECS:oh,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_FC:Eh,CLOUDPLATFORMVALUES_AWS_EC2:sh,CLOUDPLATFORMVALUES_AWS_ECS:Th,CLOUDPLATFORMVALUES_AWS_EKS:_h,CLOUDPLATFORMVALUES_AWS_ELASTIC_BEANSTALK:uh,CLOUDPLATFORMVALUES_AWS_LAMBDA:Sh,CLOUDPLATFORMVALUES_AZURE_AKS:lh,CLOUDPLATFORMVALUES_AZURE_APP_SERVICE:fh,CLOUDPLATFORMVALUES_AZURE_CONTAINER_INSTANCES:ch,CLOUDPLATFORMVALUES_AZURE_FUNCTIONS:Oh,CLOUDPLATFORMVALUES_AZURE_VM:Ah,CLOUDPLATFORMVALUES_GCP_APP_ENGINE:Nh,CLOUDPLATFORMVALUES_GCP_CLOUD_FUNCTIONS:dh,CLOUDPLATFORMVALUES_GCP_CLOUD_RUN:ph,CLOUDPLATFORMVALUES_GCP_COMPUTE_ENGINE:Rh,CLOUDPLATFORMVALUES_GCP_KUBERNETES_ENGINE:vh,CLOUDPROVIDERVALUES_ALIBABA_CLOUD:rh,CLOUDPROVIDERVALUES_AWS:th,CLOUDPROVIDERVALUES_AZURE:nh,CLOUDPROVIDERVALUES_GCP:ah,CloudPlatformValues:Ph,CloudProviderValues:ih,DBCASSANDRACONSISTENCYLEVELVALUES_ALL:qP,DBCASSANDRACONSISTENCYLEVELVALUES_ANY:ZP,DBCASSANDRACONSISTENCYLEVELVALUES_EACH_QUORUM:jP,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_ONE:zP,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_QUORUM:WP,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_SERIAL:eM,DBCASSANDRACONSISTENCYLEVELVALUES_ONE:kP,DBCASSANDRACONSISTENCYLEVELVALUES_QUORUM:XP,DBCASSANDRACONSISTENCYLEVELVALUES_SERIAL:JP,DBCASSANDRACONSISTENCYLEVELVALUES_THREE:$P,DBCASSANDRACONSISTENCYLEVELVALUES_TWO:QP,DBSYSTEMVALUES_ADABAS:AP,DBSYSTEMVALUES_CACHE:uP,DBSYSTEMVALUES_CASSANDRA:DP,DBSYSTEMVALUES_CLOUDSCAPE:aP,DBSYSTEMVALUES_COCKROACHDB:FP,DBSYSTEMVALUES_COLDFUSION:mP,DBSYSTEMVALUES_COSMOSDB:BP,DBSYSTEMVALUES_COUCHBASE:UP,DBSYSTEMVALUES_COUCHDB:VP,DBSYSTEMVALUES_DB2:eP,DBSYSTEMVALUES_DERBY:lP,DBSYSTEMVALUES_DYNAMODB:wP,DBSYSTEMVALUES_EDB:SP,DBSYSTEMVALUES_ELASTICSEARCH:YP,DBSYSTEMVALUES_FILEMAKER:OP,DBSYSTEMVALUES_FIREBIRD:cP,DBSYSTEMVALUES_FIRSTSQL:_P,DBSYSTEMVALUES_GEODE:xP,DBSYSTEMVALUES_H2:CP,DBSYSTEMVALUES_HANADB:sP,DBSYSTEMVALUES_HBASE:bP,DBSYSTEMVALUES_HIVE:nP,DBSYSTEMVALUES_HSQLDB:iP,DBSYSTEMVALUES_INFORMIX:fP,DBSYSTEMVALUES_INGRES:TP,DBSYSTEMVALUES_INSTANTDB:RP,DBSYSTEMVALUES_INTERBASE:pP,DBSYSTEMVALUES_MARIADB:vP,DBSYSTEMVALUES_MAXDB:EP,DBSYSTEMVALUES_MEMCACHED:HP,DBSYSTEMVALUES_MONGODB:yP,DBSYSTEMVALUES_MSSQL:zN,DBSYSTEMVALUES_MYSQL:ZN,DBSYSTEMVALUES_NEO4J:GP,DBSYSTEMVALUES_NETEZZA:dP,DBSYSTEMVALUES_ORACLE:JN,DBSYSTEMVALUES_OTHER_SQL:$N,DBSYSTEMVALUES_PERVASIVE:NP,DBSYSTEMVALUES_POINTBASE:PP,DBSYSTEMVALUES_POSTGRESQL:rP,DBSYSTEMVALUES_PROGRESS:oP,DBSYSTEMVALUES_REDIS:gP,DBSYSTEMVALUES_REDSHIFT:tP,DBSYSTEMVALUES_SQLITE:MP,DBSYSTEMVALUES_SYBASE:LP,DBSYSTEMVALUES_TERADATA:IP,DBSYSTEMVALUES_VERTICA:hP,DbCassandraConsistencyLevelValues:rM,DbSystemValues:KP,FAASDOCUMENTOPERATIONVALUES_DELETE:_M,FAASDOCUMENTOPERATIONVALUES_EDIT:TM,FAASDOCUMENTOPERATIONVALUES_INSERT:sM,FAASINVOKEDPROVIDERVALUES_ALIBABA_CLOUD:uM,FAASINVOKEDPROVIDERVALUES_AWS:AM,FAASINVOKEDPROVIDERVALUES_AZURE:cM,FAASINVOKEDPROVIDERVALUES_GCP:lM,FAASTRIGGERVALUES_DATASOURCE:tM,FAASTRIGGERVALUES_HTTP:nM,FAASTRIGGERVALUES_OTHER:oM,FAASTRIGGERVALUES_PUBSUB:aM,FAASTRIGGERVALUES_TIMER:iM,FaasDocumentOperationValues:SM,FaasInvokedProviderValues:OM,FaasTriggerValues:EM,HOSTARCHVALUES_AMD64:hh,HOSTARCHVALUES_ARM32:Ch,HOSTARCHVALUES_ARM64:mh,HOSTARCHVALUES_IA64:Dh,HOSTARCHVALUES_PPC32:bh,HOSTARCHVALUES_PPC64:yh,HOSTARCHVALUES_X86:gh,HTTPFLAVORVALUES_HTTP_1_0:JM,HTTPFLAVORVALUES_HTTP_1_1:eL,HTTPFLAVORVALUES_HTTP_2_0:rL,HTTPFLAVORVALUES_QUIC:nL,HTTPFLAVORVALUES_SPDY:tL,HostArchValues:Uh,HttpFlavorValues:aL,MESSAGETYPEVALUES_RECEIVED:DL,MESSAGETYPEVALUES_SENT:mL,MESSAGINGDESTINATIONKINDVALUES_QUEUE:iL,MESSAGINGDESTINATIONKINDVALUES_TOPIC:oL,MESSAGINGOPERATIONVALUES_PROCESS:TL,MESSAGINGOPERATIONVALUES_RECEIVE:sL,MessageTypeValues:bL,MessagingDestinationKindValues:EL,MessagingOperationValues:_L,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA:UM,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA2000_1XRTT:wM,NETHOSTCONNECTIONSUBTYPEVALUES_EDGE:yM,NETHOSTCONNECTIONSUBTYPEVALUES_EHRPD:qM,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_0:VM,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_A:BM,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_B:FM,NETHOSTCONNECTIONSUBTYPEVALUES_GPRS:bM,NETHOSTCONNECTIONSUBTYPEVALUES_GSM:XM,NETHOSTCONNECTIONSUBTYPEVALUES_HSDPA:GM,NETHOSTCONNECTIONSUBTYPEVALUES_HSPA:YM,NETHOSTCONNECTIONSUBTYPEVALUES_HSPAP:jM,NETHOSTCONNECTIONSUBTYPEVALUES_HSUPA:xM,NETHOSTCONNECTIONSUBTYPEVALUES_IDEN:HM,NETHOSTCONNECTIONSUBTYPEVALUES_IWLAN:kM,NETHOSTCONNECTIONSUBTYPEVALUES_LTE:KM,NETHOSTCONNECTIONSUBTYPEVALUES_LTE_CA:zM,NETHOSTCONNECTIONSUBTYPEVALUES_NR:QM,NETHOSTCONNECTIONSUBTYPEVALUES_NRNSA:$M,NETHOSTCONNECTIONSUBTYPEVALUES_TD_SCDMA:WM,NETHOSTCONNECTIONSUBTYPEVALUES_UMTS:gM,NETHOSTCONNECTIONTYPEVALUES_CELL:hM,NETHOSTCONNECTIONTYPEVALUES_UNAVAILABLE:CM,NETHOSTCONNECTIONTYPEVALUES_UNKNOWN:mM,NETHOSTCONNECTIONTYPEVALUES_WIFI:LM,NETHOSTCONNECTIONTYPEVALUES_WIRED:IM,NETTRANSPORTVALUES_INPROC:NM,NETTRANSPORTVALUES_IP:pM,NETTRANSPORTVALUES_IP_TCP:fM,NETTRANSPORTVALUES_IP_UDP:RM,NETTRANSPORTVALUES_OTHER:PM,NETTRANSPORTVALUES_PIPE:dM,NETTRANSPORTVALUES_UNIX:vM,NetHostConnectionSubtypeValues:ZM,NetHostConnectionTypeValues:DM,NetTransportValues:MM,OSTYPEVALUES_AIX:Kh,OSTYPEVALUES_DARWIN:wh,OSTYPEVALUES_DRAGONFLYBSD:Hh,OSTYPEVALUES_FREEBSD:Gh,OSTYPEVALUES_HPUX:Fh,OSTYPEVALUES_LINUX:Bh,OSTYPEVALUES_NETBSD:xh,OSTYPEVALUES_OPENBSD:Yh,OSTYPEVALUES_SOLARIS:qh,OSTYPEVALUES_WINDOWS:Vh,OSTYPEVALUES_Z_OS:jh,OsTypeValues:Xh,RPCGRPCSTATUSCODEVALUES_ABORTED:dL,RPCGRPCSTATUSCODEVALUES_ALREADY_EXISTS:fL,RPCGRPCSTATUSCODEVALUES_CANCELLED:uL,RPCGRPCSTATUSCODEVALUES_DATA_LOSS:IL,RPCGRPCSTATUSCODEVALUES_DEADLINE_EXCEEDED:lL,RPCGRPCSTATUSCODEVALUES_FAILED_PRECONDITION:vL,RPCGRPCSTATUSCODEVALUES_INTERNAL:ML,RPCGRPCSTATUSCODEVALUES_INVALID_ARGUMENT:cL,RPCGRPCSTATUSCODEVALUES_NOT_FOUND:OL,RPCGRPCSTATUSCODEVALUES_OK:SL,RPCGRPCSTATUSCODEVALUES_OUT_OF_RANGE:NL,RPCGRPCSTATUSCODEVALUES_PERMISSION_DENIED:RL,RPCGRPCSTATUSCODEVALUES_RESOURCE_EXHAUSTED:pL,RPCGRPCSTATUSCODEVALUES_UNAUTHENTICATED:hL,RPCGRPCSTATUSCODEVALUES_UNAVAILABLE:LL,RPCGRPCSTATUSCODEVALUES_UNIMPLEMENTED:PL,RPCGRPCSTATUSCODEVALUES_UNKNOWN:AL,RpcGrpcStatusCodeValues:CL,SEMATTRS_AWS_DYNAMODB_ATTRIBUTES_TO_GET:aN,SEMATTRS_AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS:ON,SEMATTRS_AWS_DYNAMODB_CONSISTENT_READ:rN,SEMATTRS_AWS_DYNAMODB_CONSUMED_CAPACITY:zd,SEMATTRS_AWS_DYNAMODB_COUNT:cN,SEMATTRS_AWS_DYNAMODB_EXCLUSIVE_START_TABLE:TN,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES:EN,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES:fN,SEMATTRS_AWS_DYNAMODB_INDEX_NAME:iN,SEMATTRS_AWS_DYNAMODB_ITEM_COLLECTION_METRICS:Zd,SEMATTRS_AWS_DYNAMODB_LIMIT:nN,SEMATTRS_AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES:sN,SEMATTRS_AWS_DYNAMODB_PROJECTION:tN,SEMATTRS_AWS_DYNAMODB_PROVISIONED_READ_CAPACITY:Jd,SEMATTRS_AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY:eN,SEMATTRS_AWS_DYNAMODB_SCANNED_COUNT:lN,SEMATTRS_AWS_DYNAMODB_SCAN_FORWARD:SN,SEMATTRS_AWS_DYNAMODB_SEGMENT:uN,SEMATTRS_AWS_DYNAMODB_SELECT:oN,SEMATTRS_AWS_DYNAMODB_TABLE_COUNT:_N,SEMATTRS_AWS_DYNAMODB_TABLE_NAMES:$d,SEMATTRS_AWS_DYNAMODB_TOTAL_SEGMENTS:AN,SEMATTRS_AWS_LAMBDA_INVOKED_ARN:yv,SEMATTRS_CODE_FILEPATH:gd,SEMATTRS_CODE_FUNCTION:bd,SEMATTRS_CODE_LINENO:Ud,SEMATTRS_CODE_NAMESPACE:yd,SEMATTRS_DB_CASSANDRA_CONSISTENCY_LEVEL:Kv,SEMATTRS_DB_CASSANDRA_COORDINATOR_DC:kv,SEMATTRS_DB_CASSANDRA_COORDINATOR_ID:Wv,SEMATTRS_DB_CASSANDRA_IDEMPOTENCE:jv,SEMATTRS_DB_CASSANDRA_KEYSPACE:Hv,SEMATTRS_DB_CASSANDRA_PAGE_SIZE:Fv,SEMATTRS_DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT:Xv,SEMATTRS_DB_CASSANDRA_TABLE:qv,SEMATTRS_DB_CONNECTION_STRING:Uv,SEMATTRS_DB_HBASE_NAMESPACE:Qv,SEMATTRS_DB_JDBC_DRIVER_CLASSNAME:Bv,SEMATTRS_DB_MONGODB_COLLECTION:zv,SEMATTRS_DB_MSSQL_INSTANCE_NAME:Yv,SEMATTRS_DB_NAME:wv,SEMATTRS_DB_OPERATION:xv,SEMATTRS_DB_REDIS_DATABASE_INDEX:$v,SEMATTRS_DB_SQL_TABLE:Zv,SEMATTRS_DB_STATEMENT:Gv,SEMATTRS_DB_SYSTEM:gv,SEMATTRS_DB_USER:Vv,SEMATTRS_ENDUSER_ID:Id,SEMATTRS_ENDUSER_ROLE:hd,SEMATTRS_ENDUSER_SCOPE:Cd,SEMATTRS_EXCEPTION_ESCAPED:Jv,SEMATTRS_EXCEPTION_MESSAGE:Ir,SEMATTRS_EXCEPTION_STACKTRACE:Cs,SEMATTRS_EXCEPTION_TYPE:Lr,SEMATTRS_FAAS_COLDSTART:sd,SEMATTRS_FAAS_CRON:Ed,SEMATTRS_FAAS_DOCUMENT_COLLECTION:td,SEMATTRS_FAAS_DOCUMENT_NAME:id,SEMATTRS_FAAS_DOCUMENT_OPERATION:nd,SEMATTRS_FAAS_DOCUMENT_TIME:ad,SEMATTRS_FAAS_EXECUTION:rd,SEMATTRS_FAAS_INVOKED_NAME:Td,SEMATTRS_FAAS_INVOKED_PROVIDER:_d,SEMATTRS_FAAS_INVOKED_REGION:Sd,SEMATTRS_FAAS_TIME:od,SEMATTRS_FAAS_TRIGGER:ed,SEMATTRS_HTTP_CLIENT_IP:Qd,SEMATTRS_HTTP_FLAVOR:Hd,SEMATTRS_HTTP_HOST:Gd,SEMATTRS_HTTP_METHOD:Vd,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH:Kd,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED:qd,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH:jd,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED:Xd,SEMATTRS_HTTP_ROUTE:kd,SEMATTRS_HTTP_SCHEME:xd,SEMATTRS_HTTP_SERVER_NAME:Wd,SEMATTRS_HTTP_STATUS_CODE:Yd,SEMATTRS_HTTP_TARGET:wd,SEMATTRS_HTTP_URL:Bd,SEMATTRS_HTTP_USER_AGENT:Fd,SEMATTRS_MESSAGE_COMPRESSED_SIZE:WN,SEMATTRS_MESSAGE_ID:XN,SEMATTRS_MESSAGE_TYPE:jN,SEMATTRS_MESSAGE_UNCOMPRESSED_SIZE:kN,SEMATTRS_MESSAGING_CONSUMER_ID:DN,SEMATTRS_MESSAGING_CONVERSATION_ID:IN,SEMATTRS_MESSAGING_DESTINATION:pN,SEMATTRS_MESSAGING_DESTINATION_KIND:vN,SEMATTRS_MESSAGING_KAFKA_CLIENT_ID:UN,SEMATTRS_MESSAGING_KAFKA_CONSUMER_GROUP:gN,SEMATTRS_MESSAGING_KAFKA_MESSAGE_KEY:yN,SEMATTRS_MESSAGING_KAFKA_PARTITION:VN,SEMATTRS_MESSAGING_KAFKA_TOMBSTONE:BN,SEMATTRS_MESSAGING_MESSAGE_ID:LN,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES:CN,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES:hN,SEMATTRS_MESSAGING_OPERATION:mN,SEMATTRS_MESSAGING_PROTOCOL:NN,SEMATTRS_MESSAGING_PROTOCOL_VERSION:PN,SEMATTRS_MESSAGING_RABBITMQ_ROUTING_KEY:bN,SEMATTRS_MESSAGING_SYSTEM:RN,SEMATTRS_MESSAGING_TEMP_DESTINATION:dN,SEMATTRS_MESSAGING_URL:MN,SEMATTRS_NET_HOST_CARRIER_ICC:Md,SEMATTRS_NET_HOST_CARRIER_MCC:Nd,SEMATTRS_NET_HOST_CARRIER_MNC:Pd,SEMATTRS_NET_HOST_CARRIER_NAME:dd,SEMATTRS_NET_HOST_CONNECTION_SUBTYPE:vd,SEMATTRS_NET_HOST_CONNECTION_TYPE:pd,SEMATTRS_NET_HOST_IP:Od,SEMATTRS_NET_HOST_NAME:Rd,SEMATTRS_NET_HOST_PORT:fd,SEMATTRS_NET_PEER_IP:Ad,SEMATTRS_NET_PEER_NAME:ld,SEMATTRS_NET_PEER_PORT:cd,SEMATTRS_NET_TRANSPORT:ud,SEMATTRS_PEER_SERVICE:Ld,SEMATTRS_RPC_GRPC_STATUS_CODE:YN,SEMATTRS_RPC_JSONRPC_ERROR_CODE:KN,SEMATTRS_RPC_JSONRPC_ERROR_MESSAGE:qN,SEMATTRS_RPC_JSONRPC_REQUEST_ID:FN,SEMATTRS_RPC_JSONRPC_VERSION:HN,SEMATTRS_RPC_METHOD:xN,SEMATTRS_RPC_SERVICE:GN,SEMATTRS_RPC_SYSTEM:wN,SEMATTRS_THREAD_ID:md,SEMATTRS_THREAD_NAME:Dd,SEMRESATTRS_AWS_ECS_CLUSTER_ARN:GL,SEMRESATTRS_AWS_ECS_CONTAINER_ARN:wL,SEMRESATTRS_AWS_ECS_LAUNCHTYPE:xL,SEMRESATTRS_AWS_ECS_TASK_ARN:YL,SEMRESATTRS_AWS_ECS_TASK_FAMILY:HL,SEMRESATTRS_AWS_ECS_TASK_REVISION:FL,SEMRESATTRS_AWS_EKS_CLUSTER_ARN:KL,SEMRESATTRS_AWS_LOG_GROUP_ARNS:jL,SEMRESATTRS_AWS_LOG_GROUP_NAMES:qL,SEMRESATTRS_AWS_LOG_STREAM_ARNS:WL,SEMRESATTRS_AWS_LOG_STREAM_NAMES:XL,SEMRESATTRS_CLOUD_ACCOUNT_ID:gL,SEMRESATTRS_CLOUD_AVAILABILITY_ZONE:VL,SEMRESATTRS_CLOUD_PLATFORM:BL,SEMRESATTRS_CLOUD_PROVIDER:yL,SEMRESATTRS_CLOUD_REGION:UL,SEMRESATTRS_CONTAINER_ID:QL,SEMRESATTRS_CONTAINER_IMAGE_NAME:zL,SEMRESATTRS_CONTAINER_IMAGE_TAG:ZL,SEMRESATTRS_CONTAINER_NAME:kL,SEMRESATTRS_CONTAINER_RUNTIME:$L,SEMRESATTRS_DEPLOYMENT_ENVIRONMENT:JL,SEMRESATTRS_DEVICE_ID:eI,SEMRESATTRS_DEVICE_MODEL_IDENTIFIER:rI,SEMRESATTRS_DEVICE_MODEL_NAME:tI,SEMRESATTRS_FAAS_ID:aI,SEMRESATTRS_FAAS_INSTANCE:oI,SEMRESATTRS_FAAS_MAX_MEMORY:EI,SEMRESATTRS_FAAS_NAME:nI,SEMRESATTRS_FAAS_VERSION:iI,SEMRESATTRS_HOST_ARCH:SI,SEMRESATTRS_HOST_ID:sI,SEMRESATTRS_HOST_IMAGE_ID:AI,SEMRESATTRS_HOST_IMAGE_NAME:uI,SEMRESATTRS_HOST_IMAGE_VERSION:cI,SEMRESATTRS_HOST_NAME:TI,SEMRESATTRS_HOST_TYPE:_I,SEMRESATTRS_K8S_CLUSTER_NAME:lI,SEMRESATTRS_K8S_CONTAINER_NAME:dI,SEMRESATTRS_K8S_CRONJOB_NAME:gI,SEMRESATTRS_K8S_CRONJOB_UID:yI,SEMRESATTRS_K8S_DAEMONSET_NAME:mI,SEMRESATTRS_K8S_DAEMONSET_UID:CI,SEMRESATTRS_K8S_DEPLOYMENT_NAME:LI,SEMRESATTRS_K8S_DEPLOYMENT_UID:MI,SEMRESATTRS_K8S_JOB_NAME:bI,SEMRESATTRS_K8S_JOB_UID:DI,SEMRESATTRS_K8S_NAMESPACE_NAME:RI,SEMRESATTRS_K8S_NODE_NAME:OI,SEMRESATTRS_K8S_NODE_UID:fI,SEMRESATTRS_K8S_POD_NAME:vI,SEMRESATTRS_K8S_POD_UID:pI,SEMRESATTRS_K8S_REPLICASET_NAME:PI,SEMRESATTRS_K8S_REPLICASET_UID:NI,SEMRESATTRS_K8S_STATEFULSET_NAME:hI,SEMRESATTRS_K8S_STATEFULSET_UID:II,SEMRESATTRS_OS_DESCRIPTION:VI,SEMRESATTRS_OS_NAME:BI,SEMRESATTRS_OS_TYPE:UI,SEMRESATTRS_OS_VERSION:wI,SEMRESATTRS_PROCESS_COMMAND:HI,SEMRESATTRS_PROCESS_COMMAND_ARGS:KI,SEMRESATTRS_PROCESS_COMMAND_LINE:FI,SEMRESATTRS_PROCESS_EXECUTABLE_NAME:xI,SEMRESATTRS_PROCESS_EXECUTABLE_PATH:YI,SEMRESATTRS_PROCESS_OWNER:qI,SEMRESATTRS_PROCESS_PID:GI,SEMRESATTRS_PROCESS_RUNTIME_DESCRIPTION:XI,SEMRESATTRS_PROCESS_RUNTIME_NAME:Lu,SEMRESATTRS_PROCESS_RUNTIME_VERSION:jI,SEMRESATTRS_SERVICE_INSTANCE_ID:kI,SEMRESATTRS_SERVICE_NAME:Dn,SEMRESATTRS_SERVICE_NAMESPACE:WI,SEMRESATTRS_SERVICE_VERSION:QI,SEMRESATTRS_TELEMETRY_AUTO_VERSION:$I,SEMRESATTRS_TELEMETRY_SDK_LANGUAGE:Br,SEMRESATTRS_TELEMETRY_SDK_NAME:Vr,SEMRESATTRS_TELEMETRY_SDK_VERSION:wr,SEMRESATTRS_WEBENGINE_DESCRIPTION:JI,SEMRESATTRS_WEBENGINE_NAME:zI,SEMRESATTRS_WEBENGINE_VERSION:ZI,SemanticAttributes:QN,SemanticResourceAttributes:eh,TELEMETRYSDKLANGUAGEVALUES_CPP:Wh,TELEMETRYSDKLANGUAGEVALUES_DOTNET:kh,TELEMETRYSDKLANGUAGEVALUES_ERLANG:Qh,TELEMETRYSDKLANGUAGEVALUES_GO:$h,TELEMETRYSDKLANGUAGEVALUES_JAVA:zh,TELEMETRYSDKLANGUAGEVALUES_NODEJS:Zh,TELEMETRYSDKLANGUAGEVALUES_PHP:Jh,TELEMETRYSDKLANGUAGEVALUES_PYTHON:eC,TELEMETRYSDKLANGUAGEVALUES_RUBY:rC,TELEMETRYSDKLANGUAGEVALUES_WEBJS:PA,TelemetrySdkLanguageValues:tC}),fe,hr=(fe={},fe[Vr]="opentelemetry",fe[Lu]="browser",fe[Br]=PA,fe[wr]=oo,fe);function aC(e){}var MA=9,iC=6,oC=Math.pow(10,iC),Gr=Math.pow(10,MA);function W(e){var r=e/1e3,t=Math.trunc(r),n=Math.round(e%1e3*oC);return[t,n]}function Wr(){var e=_e.timeOrigin;if(typeof e!="number"){var r=_e;e=r.timing&&r.timing.fetchStart}return e}function bn(e){var r=W(Wr()),t=W(typeof e=="number"?e:_e.now());return yn(r,t)}function EC(e){if(kr(e))return e;if(typeof e=="number")return e<Wr()?bn(e):W(e);if(e instanceof Date)return W(e.getTime());throw TypeError("Invalid input type")}function LA(e,r){var t=r[0]-e[0],n=r[1]-e[1];return n<0&&(t-=1,n+=Gr),[t,n]}function sC(e){var r=MA,t=""+"0".repeat(r)+e[1]+"Z",n=t.substr(t.length-r-1),a=new Date(e[0]*1e3).toISOString();return a.replace("000Z",n)}function TC(e){return e[0]*Gr+e[1]}function _C(e){return e[0]*1e3+e[1]/1e6}function SC(e){return e[0]*1e6+e[1]/1e3}function kr(e){return Array.isArray(e)&&e.length===2&&typeof e[0]=="number"&&typeof e[1]=="number"}function Jt(e){return kr(e)||typeof e=="number"||e instanceof Date}function yn(e,r){var t=[e[0]+r[0],e[1]+r[1]];return t[1]>=Gr&&(t[1]-=Gr,t[0]+=1),t}var Me;(function(e){e[e.SUCCESS=0]="SUCCESS",e[e.FAILED=1]="FAILED"})(Me||(Me={}));var uC=function(e){var r=typeof Symbol=="function"&&Symbol.iterator,t=r&&e[r],n=0;if(t)return t.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")},IA=function(){function e(r){r===void 0&&(r={});var t;this._propagators=(t=r.propagators)!==null&&t!==void 0?t:[],this._fields=Array.from(new Set(this._propagators.map(function(n){return typeof n.fields=="function"?n.fields():[]}).reduce(function(n,a){return n.concat(a)},[])))}return e.prototype.inject=function(r,t,n){var a,i;try{for(var o=uC(this._propagators),E=o.next();!E.done;E=o.next()){var T=E.value;try{T.inject(r,t,n)}catch(s){v.warn("Failed to inject with "+T.constructor.name+". Err: "+s.message)}}}catch(s){a={error:s}}finally{try{E&&!E.done&&(i=o.return)&&i.call(o)}finally{if(a)throw a.error}}},e.prototype.extract=function(r,t,n){return this._propagators.reduce(function(a,i){try{return i.extract(a,t,n)}catch(o){v.warn("Failed to inject with "+i.constructor.name+". Err: "+o.message)}return a},r)},e.prototype.fields=function(){return this._fields.slice()},e}(),en="[_0-9a-z-*/]",AC="[a-z]"+en+"{0,255}",cC="[a-z0-9]"+en+"{0,240}@[a-z]"+en+"{0,13}",lC=new RegExp("^(?:"+AC+"|"+cC+")$"),OC=/^[ -~]{0,255}[!-~]$/,fC=/,|=/;function RC(e){return lC.test(e)}function pC(e){return OC.test(e)&&!fC.test(e)}var Mi=32,vC=512,Li=",",Ii="=",hA=function(){function e(r){this._internalState=new Map,r&&this._parse(r)}return e.prototype.set=function(r,t){var n=this._clone();return n._internalState.has(r)&&n._internalState.delete(r),n._internalState.set(r,t),n},e.prototype.unset=function(r){var t=this._clone();return t._internalState.delete(r),t},e.prototype.get=function(r){return this._internalState.get(r)},e.prototype.serialize=function(){var r=this;return this._keys().reduce(function(t,n){return t.push(n+Ii+r.get(n)),t},[]).join(Li)},e.prototype._parse=function(r){r.length>vC||(this._internalState=r.split(Li).reverse().reduce(function(t,n){var a=n.trim(),i=a.indexOf(Ii);if(i!==-1){var o=a.slice(0,i),E=a.slice(i+1,n.length);RC(o)&&pC(E)&&t.set(o,E)}return t},new Map),this._internalState.size>Mi&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,Mi))))},e.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},e.prototype._clone=function(){var r=new e;return r._internalState=new Map(this._internalState),r},e}(),Cr="traceparent",mr="tracestate",dC="00",NC="(?!ff)[\\da-f]{2}",PC="(?![0]{32})[\\da-f]{32}",MC="(?![0]{16})[\\da-f]{16}",LC="[\\da-f]{2}",IC=new RegExp("^\\s?("+NC+")-("+PC+")-("+MC+")-("+LC+")(-.*)?\\s?$");function CA(e){var r=IC.exec(e);return!r||r[1]==="00"&&r[5]?null:{traceId:r[2],spanId:r[3],traceFlags:parseInt(r[4],16)}}var mA=function(){function e(){}return e.prototype.inject=function(r,t,n){var a=D.getSpanContext(r);if(!(!a||Xr(r)||!Ce(a))){var i=dC+"-"+a.traceId+"-"+a.spanId+"-0"+Number(a.traceFlags||U.NONE).toString(16);n.set(t,Cr,i),a.traceState&&n.set(t,mr,a.traceState.serialize())}},e.prototype.extract=function(r,t,n){var a=n.get(t,Cr);if(!a)return r;var i=Array.isArray(a)?a[0]:a;if(typeof i!="string")return r;var o=CA(i);if(!o)return r;o.isRemote=!0;var E=n.get(t,mr);if(E){var T=Array.isArray(E)?E.join(","):E;o.traceState=new hA(typeof T=="string"?T:void 0)}return D.setSpanContext(r,o)},e.prototype.fields=function(){return[Cr,mr]},e}(),gn=Ze("OpenTelemetry SDK Context Key RPC_METADATA"),rn;(function(e){e.HTTP="http"})(rn||(rn={}));function hC(e,r){return e.setValue(gn,r)}function CC(e){return e.deleteValue(gn)}function mC(e){return e.getValue(gn)}var tn=function(){function e(){}return e.prototype.shouldSample=function(){return{decision:k.NOT_RECORD}},e.prototype.toString=function(){return"AlwaysOffSampler"},e}(),Dr=function(){function e(){}return e.prototype.shouldSample=function(){return{decision:k.RECORD_AND_SAMPLED}},e.prototype.toString=function(){return"AlwaysOnSampler"},e}(),DC=function(){function e(r){var t,n,a,i;this._root=r.root,this._root||(Pe(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new Dr),this._remoteParentSampled=(t=r.remoteParentSampled)!==null&&t!==void 0?t:new Dr,this._remoteParentNotSampled=(n=r.remoteParentNotSampled)!==null&&n!==void 0?n:new tn,this._localParentSampled=(a=r.localParentSampled)!==null&&a!==void 0?a:new Dr,this._localParentNotSampled=(i=r.localParentNotSampled)!==null&&i!==void 0?i:new tn}return e.prototype.shouldSample=function(r,t,n,a,i,o){var E=D.getSpanContext(r);return!E||!Ce(E)?this._root.shouldSample(r,t,n,a,i,o):E.isRemote?E.traceFlags&U.SAMPLED?this._remoteParentSampled.shouldSample(r,t,n,a,i,o):this._remoteParentNotSampled.shouldSample(r,t,n,a,i,o):E.traceFlags&U.SAMPLED?this._localParentSampled.shouldSample(r,t,n,a,i,o):this._localParentNotSampled.shouldSample(r,t,n,a,i,o)},e.prototype.toString=function(){return"ParentBased{root="+this._root.toString()+", remoteParentSampled="+this._remoteParentSampled.toString()+", remoteParentNotSampled="+this._remoteParentNotSampled.toString()+", localParentSampled="+this._localParentSampled.toString()+", localParentNotSampled="+this._localParentNotSampled.toString()+"}"},e}(),bC=function(){function e(r){r===void 0&&(r=0),this._ratio=r,this._ratio=this._normalize(r),this._upperBound=Math.floor(this._ratio*4294967295)}return e.prototype.shouldSample=function(r,t){return{decision:jr(t)&&this._accumulate(t)<this._upperBound?k.RECORD_AND_SAMPLED:k.NOT_RECORD}},e.prototype.toString=function(){return"TraceIdRatioBased{"+this._ratio+"}"},e.prototype._normalize=function(r){return typeof r!="number"||isNaN(r)?0:r>=1?1:r<=0?0:r},e.prototype._accumulate=function(r){for(var t=0,n=0;n<r.length/8;n++){var a=n*8,i=parseInt(r.slice(a,a+8),16);t=(t^i)>>>0}return t},e}(),yC="[object Object]",gC="[object Null]",UC="[object Undefined]",VC=Function.prototype,DA=VC.toString,BC=DA.call(Object),wC=GC(Object.getPrototypeOf,Object),bA=Object.prototype,yA=bA.hasOwnProperty,Ee=Symbol?Symbol.toStringTag:void 0,gA=bA.toString;function GC(e,r){return function(t){return e(r(t))}}function hi(e){if(!xC(e)||YC(e)!==yC)return!1;var r=wC(e);if(r===null)return!0;var t=yA.call(r,"constructor")&&r.constructor;return typeof t=="function"&&t instanceof t&&DA.call(t)===BC}function xC(e){return e!=null&&typeof e=="object"}function YC(e){return e==null?e===void 0?UC:gC:Ee&&Ee in Object(e)?HC(e):FC(e)}function HC(e){var r=yA.call(e,Ee),t=e[Ee],n=!1;try{e[Ee]=void 0,n=!0}catch(i){}var a=gA.call(e);return n&&(r?e[Ee]=t:delete e[Ee]),a}function FC(e){return gA.call(e)}var KC=20;function UA(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];for(var t=e.shift(),n=new WeakMap;e.length>0;)t=VA(t,e.shift(),0,n);return t}function jt(e){return xr(e)?e.slice():e}function VA(e,r,t,n){t===void 0&&(t=0);var a;if(!(t>KC)){if(t++,br(e)||br(r)||BA(r))a=jt(r);else if(xr(e)){if(a=e.slice(),xr(r))for(var i=0,o=r.length;i<o;i++)a.push(jt(r[i]));else if(Ge(r))for(var E=Object.keys(r),i=0,o=E.length;i<o;i++){var T=E[i];a[T]=jt(r[T])}}else if(Ge(e))if(Ge(r)){if(!qC(e,r))return r;a=Object.assign({},e);for(var E=Object.keys(r),i=0,o=E.length;i<o;i++){var T=E[i],s=r[T];if(br(s))typeof s=="undefined"?delete a[T]:a[T]=s;else{var S=a[T],u=s;if(Ci(e,T,n)||Ci(r,T,n))delete a[T];else{if(Ge(S)&&Ge(u)){var A=n.get(S)||[],l=n.get(u)||[];A.push({obj:e,key:T}),l.push({obj:r,key:T}),n.set(S,A),n.set(u,l)}a[T]=VA(a[T],s,t,n)}}}}else a=r;return a}}function Ci(e,r,t){for(var n=t.get(e[r])||[],a=0,i=n.length;a<i;a++){var o=n[a];if(o.key===r&&o.obj===e)return!0}return!1}function xr(e){return Array.isArray(e)}function BA(e){return typeof e=="function"}function Ge(e){return!br(e)&&!xr(e)&&!BA(e)&&typeof e=="object"}function br(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="undefined"||e instanceof Date||e instanceof RegExp||e===null}function qC(e,r){return!(!hi(e)||!hi(r))}var jC=function(){var e=function(r,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},e(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(r,t);function n(){this.constructor=r}r.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),wA=function(e){jC(r,e);function r(t){var n=e.call(this,t)||this;return Object.setPrototypeOf(n,r.prototype),n}return r}(Error);function XC(e,r){var t,n=new Promise(function(i,o){t=setTimeout(function(){o(new wA("Operation timed out."))},r)});return Promise.race([e,n]).then(function(a){return clearTimeout(t),a},function(a){throw clearTimeout(t),a})}var WC=function(e){var r=typeof Symbol=="function"&&Symbol.iterator,t=r&&e[r],n=0;if(t)return t.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")};function GA(e,r){return typeof r=="string"?e===r:!!e.match(r)}function kC(e,r){var t,n;if(!r)return!1;try{for(var a=WC(r),i=a.next();!i.done;i=a.next()){var o=i.value;if(GA(e,o))return!0}}catch(E){t={error:E}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return!1}function QC(e){return typeof e=="function"&&typeof e.__original=="function"&&typeof e.__unwrap=="function"&&e.__wrapped===!0}var $C=function(){function e(){var r=this;this._promise=new Promise(function(t,n){r._resolve=t,r._reject=n})}return Object.defineProperty(e.prototype,"promise",{get:function(){return this._promise},enumerable:!1,configurable:!0}),e.prototype.resolve=function(r){this._resolve(r)},e.prototype.reject=function(r){this._reject(r)},e}(),zC=function(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),a,i=[],o;try{for(;(r===void 0||r-- >0)&&!(a=n.next()).done;)i.push(a.value)}catch(E){o={error:E}}finally{try{a&&!a.done&&(t=n.return)&&t.call(n)}finally{if(o)throw o.error}}return i},ZC=function(e,r,t){if(t||arguments.length===2)for(var n=0,a=r.length,i;n<a;n++)(i||!(n in r))&&(i||(i=Array.prototype.slice.call(r,0,n)),i[n]=r[n]);return e.concat(i||Array.prototype.slice.call(r))},xA=function(){function e(r,t){this._callback=r,this._that=t,this._isCalled=!1,this._deferred=new $C}return Object.defineProperty(e.prototype,"isCalled",{get:function(){return this._isCalled},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"promise",{get:function(){return this._deferred.promise},enumerable:!1,configurable:!0}),e.prototype.call=function(){for(var r,t=this,n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(!this._isCalled){this._isCalled=!0;try{Promise.resolve((r=this._callback).call.apply(r,ZC([this._that],zC(n),!1))).then(function(i){return t._deferred.resolve(i)},function(i){return t._deferred.reject(i)})}catch(i){this._deferred.reject(i)}}return this._deferred.promise},e}();function JC(e,r){return new Promise(function(t){F.with(Mn(F.active()),function(){e.export(r,function(n){t(n)})})})}var em={_export:JC},rm=Object.freeze({__proto__:null,AlwaysOffSampler:tn,AlwaysOnSampler:Dr,AnchoredClock:sv,BindOnceFuture:xA,CompositePropagator:IA,DEFAULT_ATTRIBUTE_COUNT_LIMIT:qe,DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT:Ke,DEFAULT_ENVIRONMENT:hn,DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:to,DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:no,get ExportResultCode(){return Me},ParentBasedSampler:DC,get RPCType(){return rn},RandomIdGenerator:bv,SDK_INFO:hr,TRACE_PARENT_HEADER:Cr,TRACE_STATE_HEADER:mr,TimeoutError:wA,TraceIdRatioBasedSampler:bC,TraceState:hA,get TracesSamplerValues(){return G},VERSION:oo,W3CBaggagePropagator:$i,W3CTraceContextPropagator:mA,_globalThis:mn,addHrTimes:yn,baggageUtils:Ev,callWithTimeout:XC,deleteRPCMetadata:CC,getEnv:m,getEnvWithoutDefaults:ao,getRPCMetadata:mC,getTimeOrigin:Wr,globalErrorHandler:Pe,hexToBase64:Cv,hexToBinary:io,hrTime:bn,hrTimeDuration:LA,hrTimeToMicroseconds:SC,hrTimeToMilliseconds:_C,hrTimeToNanoseconds:TC,hrTimeToTimeStamp:sC,internal:em,isAttributeKey:Zi,isAttributeValue:In,isTimeInput:Jt,isTimeInputHrTime:kr,isTracingSuppressed:Xr,isUrlIgnored:kC,isWrapped:QC,loggingErrorHandler:eo,merge:UA,millisToHrTime:W,otperformance:_e,parseEnvironment:Cn,parseTraceParent:CA,sanitizeAttributes:Fe,setGlobalErrorHandler:Av,setRPCMetadata:hC,suppressTracing:Mn,timeInputToHrTime:EC,unrefTimer:aC,unsuppressTracing:ev,urlMatches:GA}),tm="exception",nm=function(e){var r=typeof Symbol=="function"&&Symbol.iterator,t=r&&e[r],n=0;if(t)return t.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")},mi=function(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),a,i=[],o;try{for(;(r===void 0||r-- >0)&&!(a=n.next()).done;)i.push(a.value)}catch(E){o={error:E}}finally{try{a&&!a.done&&(t=n.return)&&t.call(n)}finally{if(o)throw o.error}}return i},am=function(e,r,t){if(t||arguments.length===2)for(var n=0,a=r.length,i;n<a;n++)(i||!(n in r))&&(i||(i=Array.prototype.slice.call(r,0,n)),i[n]=r[n]);return e.concat(i||Array.prototype.slice.call(r))},im=function(){function e(r,t,n,a,i,o,E,T,s,S){E===void 0&&(E=[]),this.attributes={},this.links=[],this.events=[],this._droppedAttributesCount=0,this._droppedEventsCount=0,this._droppedLinksCount=0,this.status={code:gr.UNSET},this.endTime=[0,0],this._ended=!1,this._duration=[-1,-1],this.name=n,this._spanContext=a,this.parentSpanId=o,this.kind=i,this.links=E;var u=Date.now();this._performanceStartTime=_e.now(),this._performanceOffset=u-(this._performanceStartTime+Wr()),this._startTimeProvided=T!=null,this.startTime=this._getTime(T!=null?T:u),this.resource=r.resource,this.instrumentationLibrary=r.instrumentationLibrary,this._spanLimits=r.getSpanLimits(),this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit||0,S!=null&&this.setAttributes(S),this._spanProcessor=r.getActiveSpanProcessor(),this._spanProcessor.onStart(this,t)}return e.prototype.spanContext=function(){return this._spanContext},e.prototype.setAttribute=function(r,t){return t==null||this._isSpanEnded()?this:r.length===0?(v.warn("Invalid attribute key: "+r),this):In(t)?Object.keys(this.attributes).length>=this._spanLimits.attributeCountLimit&&!Object.prototype.hasOwnProperty.call(this.attributes,r)?(this._droppedAttributesCount++,this):(this.attributes[r]=this._truncateToSize(t),this):(v.warn("Invalid attribute value set for key: "+r),this)},e.prototype.setAttributes=function(r){var t,n;try{for(var a=nm(Object.entries(r)),i=a.next();!i.done;i=a.next()){var o=mi(i.value,2),E=o[0],T=o[1];this.setAttribute(E,T)}}catch(s){t={error:s}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return this},e.prototype.addEvent=function(r,t,n){if(this._isSpanEnded())return this;if(this._spanLimits.eventCountLimit===0)return v.warn("No events allowed."),this._droppedEventsCount++,this;this.events.length>=this._spanLimits.eventCountLimit&&(this._droppedEventsCount===0&&v.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),Jt(t)&&(Jt(n)||(n=t),t=void 0);var a=Fe(t);return this.events.push({name:r,attributes:a,time:this._getTime(n),droppedAttributesCount:0}),this},e.prototype.addLink=function(r){return this.links.push(r),this},e.prototype.addLinks=function(r){var t;return(t=this.links).push.apply(t,am([],mi(r),!1)),this},e.prototype.setStatus=function(r){return this._isSpanEnded()?this:(this.status=r,this)},e.prototype.updateName=function(r){return this._isSpanEnded()?this:(this.name=r,this)},e.prototype.end=function(r){if(this._isSpanEnded()){v.error(this.name+" "+this._spanContext.traceId+"-"+this._spanContext.spanId+" - You can only call end() on a span once.");return}this._ended=!0,this.endTime=this._getTime(r),this._duration=LA(this.startTime,this.endTime),this._duration[0]<0&&(v.warn("Inconsistent start and end time, startTime > endTime. Setting span duration to 0ms.",this.startTime,this.endTime),this.endTime=this.startTime.slice(),this._duration=[0,0]),this._droppedEventsCount>0&&v.warn("Dropped "+this._droppedEventsCount+" events because eventCountLimit reached"),this._spanProcessor.onEnd(this)},e.prototype._getTime=function(r){if(typeof r=="number"&&r<_e.now())return bn(r+this._performanceOffset);if(typeof r=="number")return W(r);if(r instanceof Date)return W(r.getTime());if(kr(r))return r;if(this._startTimeProvided)return W(Date.now());var t=_e.now()-this._performanceStartTime;return yn(this.startTime,W(t))},e.prototype.isRecording=function(){return this._ended===!1},e.prototype.recordException=function(r,t){var n={};typeof r=="string"?n[Ir]=r:r&&(r.code?n[Lr]=r.code.toString():r.name&&(n[Lr]=r.name),r.message&&(n[Ir]=r.message),r.stack&&(n[Cs]=r.stack)),n[Lr]||n[Ir]?this.addEvent(tm,n,t):v.warn("Failed to record an exception "+r)},Object.defineProperty(e.prototype,"duration",{get:function(){return this._duration},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ended",{get:function(){return this._ended},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"droppedAttributesCount",{get:function(){return this._droppedAttributesCount},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"droppedEventsCount",{get:function(){return this._droppedEventsCount},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"droppedLinksCount",{get:function(){return this._droppedLinksCount},enumerable:!1,configurable:!0}),e.prototype._isSpanEnded=function(){return this._ended&&v.warn("Can not execute the operation on ended Span {traceId: "+this._spanContext.traceId+", spanId: "+this._spanContext.spanId+"}"),this._ended},e.prototype._truncateToLimitUtil=function(r,t){return r.length<=t?r:r.substr(0,t)},e.prototype._truncateToSize=function(r){var t=this,n=this._attributeValueLengthLimit;return n<=0?(v.warn("Attribute value limit must be positive, got "+n),r):typeof r=="string"?this._truncateToLimitUtil(r,n):Array.isArray(r)?r.map(function(a){return typeof a=="string"?t._truncateToLimitUtil(a,n):a}):r},e}(),Le;(function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(Le||(Le={}));var Yr=function(){function e(){}return e.prototype.shouldSample=function(){return{decision:Le.NOT_RECORD}},e.prototype.toString=function(){return"AlwaysOffSampler"},e}(),Ne=function(){function e(){}return e.prototype.shouldSample=function(){return{decision:Le.RECORD_AND_SAMPLED}},e.prototype.toString=function(){return"AlwaysOnSampler"},e}(),Xt=function(){function e(r){var t,n,a,i;this._root=r.root,this._root||(Pe(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new Ne),this._remoteParentSampled=(t=r.remoteParentSampled)!==null&&t!==void 0?t:new Ne,this._remoteParentNotSampled=(n=r.remoteParentNotSampled)!==null&&n!==void 0?n:new Yr,this._localParentSampled=(a=r.localParentSampled)!==null&&a!==void 0?a:new Ne,this._localParentNotSampled=(i=r.localParentNotSampled)!==null&&i!==void 0?i:new Yr}return e.prototype.shouldSample=function(r,t,n,a,i,o){var E=D.getSpanContext(r);return!E||!Ce(E)?this._root.shouldSample(r,t,n,a,i,o):E.isRemote?E.traceFlags&U.SAMPLED?this._remoteParentSampled.shouldSample(r,t,n,a,i,o):this._remoteParentNotSampled.shouldSample(r,t,n,a,i,o):E.traceFlags&U.SAMPLED?this._localParentSampled.shouldSample(r,t,n,a,i,o):this._localParentNotSampled.shouldSample(r,t,n,a,i,o)},e.prototype.toString=function(){return"ParentBased{root="+this._root.toString()+", remoteParentSampled="+this._remoteParentSampled.toString()+", remoteParentNotSampled="+this._remoteParentNotSampled.toString()+", localParentSampled="+this._localParentSampled.toString()+", localParentNotSampled="+this._localParentNotSampled.toString()+"}"},e}(),Di=function(){function e(r){r===void 0&&(r=0),this._ratio=r,this._ratio=this._normalize(r),this._upperBound=Math.floor(this._ratio*4294967295)}return e.prototype.shouldSample=function(r,t){return{decision:jr(t)&&this._accumulate(t)<this._upperBound?Le.RECORD_AND_SAMPLED:Le.NOT_RECORD}},e.prototype.toString=function(){return"TraceIdRatioBased{"+this._ratio+"}"},e.prototype._normalize=function(r){return typeof r!="number"||isNaN(r)?0:r>=1?1:r<=0?0:r},e.prototype._accumulate=function(r){for(var t=0,n=0;n<r.length/8;n++){var a=n*8,i=parseInt(r.slice(a,a+8),16);t=(t^i)>>>0}return t},e}(),om=m(),Em=G.AlwaysOn,Re=1;function YA(){return{sampler:HA(om),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:m().OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:m().OTEL_ATTRIBUTE_COUNT_LIMIT},spanLimits:{attributeValueLengthLimit:m().OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:m().OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT,linkCountLimit:m().OTEL_SPAN_LINK_COUNT_LIMIT,eventCountLimit:m().OTEL_SPAN_EVENT_COUNT_LIMIT,attributePerEventCountLimit:m().OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT,attributePerLinkCountLimit:m().OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT}}}function HA(e){switch(e===void 0&&(e=m()),e.OTEL_TRACES_SAMPLER){case G.AlwaysOn:return new Ne;case G.AlwaysOff:return new Yr;case G.ParentBasedAlwaysOn:return new Xt({root:new Ne});case G.ParentBasedAlwaysOff:return new Xt({root:new Yr});case G.TraceIdRatio:return new Di(bi(e));case G.ParentBasedTraceIdRatio:return new Xt({root:new Di(bi(e))});default:return v.error('OTEL_TRACES_SAMPLER value "'+e.OTEL_TRACES_SAMPLER+" invalid, defaulting to "+Em+'".'),new Ne}}function bi(e){if(e.OTEL_TRACES_SAMPLER_ARG===void 0||e.OTEL_TRACES_SAMPLER_ARG==="")return v.error("OTEL_TRACES_SAMPLER_ARG is blank, defaulting to "+Re+"."),Re;var r=Number(e.OTEL_TRACES_SAMPLER_ARG);return isNaN(r)?(v.error("OTEL_TRACES_SAMPLER_ARG="+e.OTEL_TRACES_SAMPLER_ARG+" was given, but it is invalid, defaulting to "+Re+"."),Re):r<0||r>1?(v.error("OTEL_TRACES_SAMPLER_ARG="+e.OTEL_TRACES_SAMPLER_ARG+" was given, but it is out of range ([0..1]), defaulting to "+Re+"."),Re):r}function sm(e){var r={sampler:HA()},t=YA(),n=Object.assign({},t,r,e);return n.generalLimits=Object.assign({},t.generalLimits,e.generalLimits||{}),n.spanLimits=Object.assign({},t.spanLimits,e.spanLimits||{}),n}function Tm(e){var r,t,n,a,i,o,E,T,s,S,u,A,l=Object.assign({},e.spanLimits),R=ao();return l.attributeCountLimit=(o=(i=(a=(t=(r=e.spanLimits)===null||r===void 0?void 0:r.attributeCountLimit)!==null&&t!==void 0?t:(n=e.generalLimits)===null||n===void 0?void 0:n.attributeCountLimit)!==null&&a!==void 0?a:R.OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT)!==null&&i!==void 0?i:R.OTEL_ATTRIBUTE_COUNT_LIMIT)!==null&&o!==void 0?o:qe,l.attributeValueLengthLimit=(A=(u=(S=(T=(E=e.spanLimits)===null||E===void 0?void 0:E.attributeValueLengthLimit)!==null&&T!==void 0?T:(s=e.generalLimits)===null||s===void 0?void 0:s.attributeValueLengthLimit)!==null&&S!==void 0?S:R.OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT)!==null&&u!==void 0?u:R.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT)!==null&&A!==void 0?A:Ke,Object.assign({},e,{spanLimits:l})}var _m=function(){function e(r,t){this._exporter=r,this._isExporting=!1,this._finishedSpans=[],this._droppedSpansCount=0;var n=m();this._maxExportBatchSize=typeof(t==null?void 0:t.maxExportBatchSize)=="number"?t.maxExportBatchSize:n.OTEL_BSP_MAX_EXPORT_BATCH_SIZE,this._maxQueueSize=typeof(t==null?void 0:t.maxQueueSize)=="number"?t.maxQueueSize:n.OTEL_BSP_MAX_QUEUE_SIZE,this._scheduledDelayMillis=typeof(t==null?void 0:t.scheduledDelayMillis)=="number"?t.scheduledDelayMillis:n.OTEL_BSP_SCHEDULE_DELAY,this._exportTimeoutMillis=typeof(t==null?void 0:t.exportTimeoutMillis)=="number"?t.exportTimeoutMillis:n.OTEL_BSP_EXPORT_TIMEOUT,this._shutdownOnce=new xA(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(v.warn("BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this._maxExportBatchSize=this._maxQueueSize)}return e.prototype.forceFlush=function(){return this._shutdownOnce.isCalled?this._shutdownOnce.promise:this._flushAll()},e.prototype.onStart=function(r,t){},e.prototype.onEnd=function(r){this._shutdownOnce.isCalled||r.spanContext().traceFlags&U.SAMPLED&&this._addToBuffer(r)},e.prototype.shutdown=function(){return this._shutdownOnce.call()},e.prototype._shutdown=function(){var r=this;return Promise.resolve().then(function(){return r.onShutdown()}).then(function(){return r._flushAll()}).then(function(){return r._exporter.shutdown()})},e.prototype._addToBuffer=function(r){if(this._finishedSpans.length>=this._maxQueueSize){this._droppedSpansCount===0&&v.debug("maxQueueSize reached, dropping spans"),this._droppedSpansCount++;return}this._droppedSpansCount>0&&(v.warn("Dropped "+this._droppedSpansCount+" spans because maxQueueSize reached"),this._droppedSpansCount=0),this._finishedSpans.push(r),this._maybeStartTimer()},e.prototype._flushAll=function(){var r=this;return new Promise(function(t,n){for(var a=[],i=Math.ceil(r._finishedSpans.length/r._maxExportBatchSize),o=0,E=i;o<E;o++)a.push(r._flushOneBatch());Promise.all(a).then(function(){t()}).catch(n)})},e.prototype._flushOneBatch=function(){var r=this;return this._clearTimer(),this._finishedSpans.length===0?Promise.resolve():new Promise(function(t,n){var a=setTimeout(function(){n(new Error("Timeout"))},r._exportTimeoutMillis);F.with(Mn(F.active()),function(){var i;r._finishedSpans.length<=r._maxExportBatchSize?(i=r._finishedSpans,r._finishedSpans=[]):i=r._finishedSpans.splice(0,r._maxExportBatchSize);for(var o=function(){return r._exporter.export(i,function(u){var A;clearTimeout(a),u.code===Me.SUCCESS?t():n((A=u.error)!==null&&A!==void 0?A:new Error("BatchSpanProcessor: span export failed"))})},E=null,T=0,s=i.length;T<s;T++){var S=i[T];S.resource.asyncAttributesPending&&S.resource.waitForAsyncAttributes&&(E!=null||(E=[]),E.push(S.resource.waitForAsyncAttributes()))}E===null?o():Promise.all(E).then(o,function(u){Pe(u),n(u)})})})},e.prototype._maybeStartTimer=function(){var r=this;if(!this._isExporting){var t=function(){r._isExporting=!0,r._flushOneBatch().finally(function(){r._isExporting=!1,r._finishedSpans.length>0&&(r._clearTimer(),r._maybeStartTimer())}).catch(function(n){r._isExporting=!1,Pe(n)})};if(this._finishedSpans.length>=this._maxExportBatchSize)return t();this._timer===void 0&&(this._timer=setTimeout(function(){return t()},this._scheduledDelayMillis))}},e.prototype._clearTimer=function(){this._timer!==void 0&&(clearTimeout(this._timer),this._timer=void 0)},e}(),Sm=function(){var e=function(r,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},e(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(r,t);function n(){this.constructor=r}r.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),um=function(e){Sm(r,e);function r(t,n){var a=e.call(this,t,n)||this;return a.onInit(n),a}return r.prototype.onInit=function(t){var n=this;(t==null?void 0:t.disableAutoFlushOnDocumentHide)!==!0&&typeof document!="undefined"&&(this._visibilityChangeListener=function(){document.visibilityState==="hidden"&&n.forceFlush()},this._pageHideListener=function(){n.forceFlush()},document.addEventListener("visibilitychange",this._visibilityChangeListener),document.addEventListener("pagehide",this._pageHideListener))},r.prototype.onShutdown=function(){typeof document!="undefined"&&(this._visibilityChangeListener&&document.removeEventListener("visibilitychange",this._visibilityChangeListener),this._pageHideListener&&document.removeEventListener("pagehide",this._pageHideListener))},r}(_m),Am=8,cm=16,lm=function(){function e(){this.generateTraceId=yi(cm),this.generateSpanId=yi(Am)}return e}(),dr=Array(32);function yi(e){return function(){for(var t=0;t<e*2;t++)dr[t]=Math.floor(Math.random()*16)+48,dr[t]>=58&&(dr[t]+=39);return String.fromCharCode.apply(null,dr.slice(0,e*2))}}var Om=function(){function e(r,t,n){this._tracerProvider=n;var a=sm(t);this._sampler=a.sampler,this._generalLimits=a.generalLimits,this._spanLimits=a.spanLimits,this._idGenerator=t.idGenerator||new lm,this.resource=n.resource,this.instrumentationLibrary=r}return e.prototype.startSpan=function(r,t,n){var a,i,o;t===void 0&&(t={}),n===void 0&&(n=F.active()),t.root&&(n=D.deleteSpan(n));var E=D.getSpan(n);if(Xr(n)){v.debug("Instrumentation suppressed, returning Noop Span");var T=D.wrapSpanContext(fn);return T}var s=E==null?void 0:E.spanContext(),S=this._idGenerator.generateSpanId(),u,A,l;!s||!D.isSpanContextValid(s)?u=this._idGenerator.generateTraceId():(u=s.traceId,A=s.traceState,l=s.spanId);var R=(a=t.kind)!==null&&a!==void 0?a:yr.INTERNAL,M=((i=t.links)!==null&&i!==void 0?i:[]).map(function(Or){return{context:Or.context,attributes:Fe(Or.attributes)}}),c=Fe(t.attributes),O=this._sampler.shouldSample(n,u,r,R,c,M);A=(o=O.traceState)!==null&&o!==void 0?o:A;var p=O.decision===k.RECORD_AND_SAMPLED?U.SAMPLED:U.NONE,d={traceId:u,spanId:S,traceFlags:p,traceState:A};if(O.decision===k.NOT_RECORD){v.debug("Recording is off, propagating context in a non-recording span");var T=D.wrapSpanContext(d);return T}var I=Fe(Object.assign(c,O.attributes)),B=new im(this,n,r,d,R,l,M,t.startTime,void 0,I);return B},e.prototype.startActiveSpan=function(r,t,n,a){var i,o,E;if(!(arguments.length<2)){arguments.length===2?E=t:arguments.length===3?(i=t,E=n):(i=t,o=n,E=a);var T=o!=null?o:F.active(),s=this.startSpan(r,i,T),S=D.setSpan(T,s);return F.with(S,E,void 0,s)}},e.prototype.getGeneralLimits=function(){return this._generalLimits},e.prototype.getSpanLimits=function(){return this._spanLimits},e.prototype.getActiveSpanProcessor=function(){return this._tracerProvider.getActiveSpanProcessor()},e}();function fm(){return"unknown_service"}var re=function(){return re=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},re.apply(this,arguments)},Rm=function(e,r,t,n){function a(i){return i instanceof t?i:new t(function(o){o(i)})}return new(t||(t=Promise))(function(i,o){function E(S){try{s(n.next(S))}catch(u){o(u)}}function T(S){try{s(n.throw(S))}catch(u){o(u)}}function s(S){S.done?i(S.value):a(S.value).then(E,T)}s((n=n.apply(e,r||[])).next())})},pm=function(e,r){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,o;return o={next:E(0),throw:E(1),return:E(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function E(s){return function(S){return T([s,S])}}function T(s){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=s[0]&2?a.return:s[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,s[1])).done)return i;switch(a=0,i&&(s=[s[0]&2,i.value]),s[0]){case 0:case 1:i=s;break;case 4:return t.label++,{value:s[1],done:!1};case 5:t.label++,a=s[1],s=[0];continue;case 7:s=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){t=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){t.label=s[1];break}if(s[0]===6&&t.label<i[1]){t.label=i[1],i=s;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(s);break}i[2]&&t.ops.pop(),t.trys.pop();continue}s=r.call(e,t)}catch(S){s=[6,S],a=0}finally{n=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},vm=function(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),a,i=[],o;try{for(;(r===void 0||r-- >0)&&!(a=n.next()).done;)i.push(a.value)}catch(E){o={error:E}}finally{try{a&&!a.done&&(t=n.return)&&t.call(n)}finally{if(o)throw o.error}}return i},gi=function(){function e(r,t){var n=this,a;this._attributes=r,this.asyncAttributesPending=t!=null,this._syncAttributes=(a=this._attributes)!==null&&a!==void 0?a:{},this._asyncAttributesPromise=t==null?void 0:t.then(function(i){return n._attributes=Object.assign({},n._attributes,i),n.asyncAttributesPending=!1,i},function(i){return v.debug("a resource's async attributes promise rejected: %s",i),n.asyncAttributesPending=!1,{}})}return e.empty=function(){return e.EMPTY},e.default=function(){var r;return new e((r={},r[Dn]=fm(),r[Br]=hr[Br],r[Vr]=hr[Vr],r[wr]=hr[wr],r))},Object.defineProperty(e.prototype,"attributes",{get:function(){var r;return this.asyncAttributesPending&&v.error("Accessing resource attributes before async attributes settled"),(r=this._attributes)!==null&&r!==void 0?r:{}},enumerable:!1,configurable:!0}),e.prototype.waitForAsyncAttributes=function(){return Rm(this,void 0,void 0,function(){return pm(this,function(r){switch(r.label){case 0:return this.asyncAttributesPending?[4,this._asyncAttributesPromise]:[3,2];case 1:r.sent(),r.label=2;case 2:return[2]}})})},e.prototype.merge=function(r){var t=this,n;if(!r)return this;var a=re(re({},this._syncAttributes),(n=r._syncAttributes)!==null&&n!==void 0?n:r.attributes);if(!this._asyncAttributesPromise&&!r._asyncAttributesPromise)return new e(a);var i=Promise.all([this._asyncAttributesPromise,r._asyncAttributesPromise]).then(function(o){var E,T=vm(o,2),s=T[0],S=T[1];return re(re(re(re({},t._syncAttributes),s),(E=r._syncAttributes)!==null&&E!==void 0?E:r.attributes),S)});return new e(a,i)},e.EMPTY=new e({}),e}(),Nr=function(e){var r=typeof Symbol=="function"&&Symbol.iterator,t=r&&e[r],n=0;if(t)return t.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")},dm=function(){function e(r){this._spanProcessors=r}return e.prototype.forceFlush=function(){var r,t,n=[];try{for(var a=Nr(this._spanProcessors),i=a.next();!i.done;i=a.next()){var o=i.value;n.push(o.forceFlush())}}catch(E){r={error:E}}finally{try{i&&!i.done&&(t=a.return)&&t.call(a)}finally{if(r)throw r.error}}return new Promise(function(E){Promise.all(n).then(function(){E()}).catch(function(T){Pe(T||new Error("MultiSpanProcessor: forceFlush failed")),E()})})},e.prototype.onStart=function(r,t){var n,a;try{for(var i=Nr(this._spanProcessors),o=i.next();!o.done;o=i.next()){var E=o.value;E.onStart(r,t)}}catch(T){n={error:T}}finally{try{o&&!o.done&&(a=i.return)&&a.call(i)}finally{if(n)throw n.error}}},e.prototype.onEnd=function(r){var t,n;try{for(var a=Nr(this._spanProcessors),i=a.next();!i.done;i=a.next()){var o=i.value;o.onEnd(r)}}catch(E){t={error:E}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}},e.prototype.shutdown=function(){var r,t,n=[];try{for(var a=Nr(this._spanProcessors),i=a.next();!i.done;i=a.next()){var o=i.value;n.push(o.shutdown())}}catch(E){r={error:E}}finally{try{i&&!i.done&&(t=a.return)&&t.call(a)}finally{if(r)throw r.error}}return new Promise(function(E,T){Promise.all(n).then(function(){E()},T)})},e}(),Nm=function(){function e(){}return e.prototype.onStart=function(r,t){},e.prototype.onEnd=function(r){},e.prototype.shutdown=function(){return Promise.resolve()},e.prototype.forceFlush=function(){return Promise.resolve()},e}(),se;(function(e){e[e.resolved=0]="resolved",e[e.timeout=1]="timeout",e[e.error=2]="error",e[e.unresolved=3]="unresolved"})(se||(se={}));var Pm=function(){function e(r){r===void 0&&(r={});var t;this._registeredSpanProcessors=[],this._tracers=new Map;var n=UA({},YA(),Tm(r));this.resource=(t=n.resource)!==null&&t!==void 0?t:gi.empty(),this.resource=gi.default().merge(this.resource),this._config=Object.assign({},n,{resource:this.resource});var a=this._buildExporterFromEnv();if(a!==void 0){var i=new um(a);this.activeSpanProcessor=i}else this.activeSpanProcessor=new Nm}return e.prototype.getTracer=function(r,t,n){var a=r+"@"+(t||"")+":"+((n==null?void 0:n.schemaUrl)||"");return this._tracers.has(a)||this._tracers.set(a,new Om({name:r,version:t,schemaUrl:n==null?void 0:n.schemaUrl},this._config,this)),this._tracers.get(a)},e.prototype.addSpanProcessor=function(r){this._registeredSpanProcessors.length===0&&this.activeSpanProcessor.shutdown().catch(function(t){return v.error("Error while trying to shutdown current span processor",t)}),this._registeredSpanProcessors.push(r),this.activeSpanProcessor=new dm(this._registeredSpanProcessors)},e.prototype.getActiveSpanProcessor=function(){return this.activeSpanProcessor},e.prototype.register=function(r){r===void 0&&(r={}),D.setGlobalTracerProvider(this),r.propagator===void 0&&(r.propagator=this._buildPropagatorFromEnv()),r.contextManager&&F.setGlobalContextManager(r.contextManager),r.propagator&&de.setGlobalPropagator(r.propagator)},e.prototype.forceFlush=function(){var r=this._config.forceFlushTimeoutMillis,t=this._registeredSpanProcessors.map(function(n){return new Promise(function(a){var i,o=setTimeout(function(){a(new Error("Span processor did not completed within timeout period of "+r+" ms")),i=se.timeout},r);n.forceFlush().then(function(){clearTimeout(o),i!==se.timeout&&(i=se.resolved,a(i))}).catch(function(E){clearTimeout(o),i=se.error,a(E)})})});return new Promise(function(n,a){Promise.all(t).then(function(i){var o=i.filter(function(E){return E!==se.resolved});o.length>0?a(o):n()}).catch(function(i){return a([i])})})},e.prototype.shutdown=function(){return this.activeSpanProcessor.shutdown()},e.prototype._getPropagator=function(r){var t;return(t=this.constructor._registeredPropagators.get(r))===null||t===void 0?void 0:t()},e.prototype._getSpanExporter=function(r){var t;return(t=this.constructor._registeredExporters.get(r))===null||t===void 0?void 0:t()},e.prototype._buildPropagatorFromEnv=function(){var r=this,t=Array.from(new Set(m().OTEL_PROPAGATORS)),n=t.map(function(i){var o=r._getPropagator(i);return o||v.warn('Propagator "'+i+'" requested through environment variable is unavailable.'),o}),a=n.reduce(function(i,o){return o&&i.push(o),i},[]);if(a.length!==0)return t.length===1?a[0]:new IA({propagators:a})},e.prototype._buildExporterFromEnv=function(){var r=m().OTEL_TRACES_EXPORTER;if(!(r==="none"||r==="")){var t=this._getSpanExporter(r);return t||v.error('Exporter "'+r+'" requested through environment variable is unavailable.'),t}},e._registeredPropagators=new Map([["tracecontext",function(){return new mA}],["baggage",function(){return new $i}]]),e._registeredExporters=new Map,e}(),Mm=function(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),a,i=[],o;try{for(;(r===void 0||r-- >0)&&!(a=n.next()).done;)i.push(a.value)}catch(E){o={error:E}}finally{try{a&&!a.done&&(t=n.return)&&t.call(n)}finally{if(o)throw o.error}}return i},Lm=function(e,r,t){if(t||arguments.length===2)for(var n=0,a=r.length,i;n<a;n++)(i||!(n in r))&&(i||(i=Array.prototype.slice.call(r,0,n)),i[n]=r[n]);return e.concat(i||Array.prototype.slice.call(r))},Im=function(){function e(){this._enabled=!1,this._currentContext=oe}return e.prototype._bindFunction=function(r,t){r===void 0&&(r=oe);var n=this,a=function(){for(var i=this,o=[],E=0;E<arguments.length;E++)o[E]=arguments[E];return n.with(r,function(){return t.apply(i,o)})};return Object.defineProperty(a,"length",{enumerable:!1,configurable:!0,writable:!1,value:t.length}),a},e.prototype.active=function(){return this._currentContext},e.prototype.bind=function(r,t){return r===void 0&&(r=this.active()),typeof t=="function"?this._bindFunction(r,t):t},e.prototype.disable=function(){return this._currentContext=oe,this._enabled=!1,this},e.prototype.enable=function(){return this._enabled?this:(this._enabled=!0,this._currentContext=oe,this)},e.prototype.with=function(r,t,n){for(var a=[],i=3;i<arguments.length;i++)a[i-3]=arguments[i];var o=this._currentContext;this._currentContext=r||oe;try{return t.call.apply(t,Lm([n],Mm(a),!1))}finally{this._currentContext=o}},e}(),hm=function(){var e=function(r,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},e(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(r,t);function n(){this.constructor=r}r.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Cm=function(e){hm(r,e);function r(t){t===void 0&&(t={});var n=e.call(this,t)||this;if(t.contextManager)throw"contextManager should be defined in register method not in constructor";if(t.propagator)throw"propagator should be defined in register method not in constructor";return n}return r.prototype.register=function(t){t===void 0&&(t={}),t.contextManager===void 0&&(t.contextManager=new Im),t.contextManager&&t.contextManager.enable(),e.prototype.register.call(this,t)},r}(Pm),mm=function(){function e(){}return e.prototype.emit=function(r){},e}(),Dm=function(){function e(){}return e.prototype.getLogger=function(r,t,n){return new mm},e}(),Ui=new Dm,bm=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{},Pr=Symbol.for("io.opentelemetry.js.api.logs"),xe=bm;function ym(e,r,t){return function(n){return n===e?r:t}}var Vi=1,gm=function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalLoggerProvider=function(r){return xe[Pr]?this.getLoggerProvider():(xe[Pr]=ym(Vi,r,Ui),r)},e.prototype.getLoggerProvider=function(){var r,t;return(t=(r=xe[Pr])===null||r===void 0?void 0:r.call(xe,Vi))!==null&&t!==void 0?t:Ui},e.prototype.getLogger=function(r,t,n){return this.getLoggerProvider().getLogger(r,t,n)},e.prototype.disable=function(){delete xe[Pr]},e}(),Um=gm.getInstance();function Vm(e,r,t,n){for(var a=0,i=e.length;a<i;a++){var o=e[a];r&&o.setTracerProvider(r),t&&o.setMeterProvider(t),n&&o.setLoggerProvider&&o.setLoggerProvider(n),o.getConfig().enabled||o.enable()}}function Bm(e){e.forEach(function(r){return r.disable()})}function wm(e){var r,t,n=e.tracerProvider||D.getTracerProvider(),a=e.meterProvider||dn.getMeterProvider(),i=e.loggerProvider||Um.getLoggerProvider(),o=(t=(r=e.instrumentations)===null||r===void 0?void 0:r.flat())!==null&&t!==void 0?t:[];return Vm(o,n,a,i),function(){Bm(o)}}var ve=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Un(e){if(e.__esModule)return e;var r=e.default;if(typeof r=="function"){var t=function n(){return this instanceof n?Reflect.construct(r,arguments,this.constructor):r.apply(this,arguments)};t.prototype=r.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,a.get?a:{enumerable:!0,get:function(){return e[n]}})}),t}var Vn={},Bn=Un(Jp),FA=Un(nC),KA=Un(rm),qA={},Qr={};Object.defineProperty(Qr,"__esModule",{value:!0});Qr.defaultServiceName=void 0;function Gm(){return"unknown_service"}Qr.defaultServiceName=Gm;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.defaultServiceName=void 0;var r=Qr;Object.defineProperty(e,"defaultServiceName",{enumerable:!0,get:function(){return r.defaultServiceName}})})(qA);Object.defineProperty(Vn,"__esModule",{value:!0});var jA=Vn.Resource=void 0,Bi=Bn,ae=FA,Wt=KA,xm=qA,We=class e{constructor(r,t){var n;this._attributes=r,this.asyncAttributesPending=t!=null,this._syncAttributes=(n=this._attributes)!==null&&n!==void 0?n:{},this._asyncAttributesPromise=t==null?void 0:t.then(a=>(this._attributes=Object.assign({},this._attributes,a),this.asyncAttributesPending=!1,a),a=>(Bi.diag.debug("a resource's async attributes promise rejected: %s",a),this.asyncAttributesPending=!1,{}))}static empty(){return e.EMPTY}static default(){return new e({[ae.SEMRESATTRS_SERVICE_NAME]:(0,xm.defaultServiceName)(),[ae.SEMRESATTRS_TELEMETRY_SDK_LANGUAGE]:Wt.SDK_INFO[ae.SEMRESATTRS_TELEMETRY_SDK_LANGUAGE],[ae.SEMRESATTRS_TELEMETRY_SDK_NAME]:Wt.SDK_INFO[ae.SEMRESATTRS_TELEMETRY_SDK_NAME],[ae.SEMRESATTRS_TELEMETRY_SDK_VERSION]:Wt.SDK_INFO[ae.SEMRESATTRS_TELEMETRY_SDK_VERSION]})}get attributes(){var r;return this.asyncAttributesPending&&Bi.diag.error("Accessing resource attributes before async attributes settled"),(r=this._attributes)!==null&&r!==void 0?r:{}}async waitForAsyncAttributes(){this.asyncAttributesPending&&await this._asyncAttributesPromise}merge(r){var t;if(!r)return this;let n=Object.assign(Object.assign({},this._syncAttributes),(t=r._syncAttributes)!==null&&t!==void 0?t:r.attributes);if(!this._asyncAttributesPromise&&!r._asyncAttributesPromise)return new e(n);let a=Promise.all([this._asyncAttributesPromise,r._asyncAttributesPromise]).then(([i,o])=>{var E;return Object.assign(Object.assign(Object.assign(Object.assign({},this._syncAttributes),i),(E=r._syncAttributes)!==null&&E!==void 0?E:r.attributes),o)});return new e(n,a)}};jA=Vn.Resource=We;We.EMPTY=new We({});var Ym=typeof performance!="undefined";function Hm(){let e;return!Ym||!performance.now?e=Date.now():performance.timeOrigin?e=performance.timeOrigin+performance.now():performance.timing&&performance.timing.navigationStart?e=performance.timing.navigationStart+performance.now():e=Date.now()+performance.now(),e}function Fm(e){return Math.round(e*1e6)}function Km(){return Fm(Hm())}var kt;function qm(){return kt===void 0&&(kt="keepalive"in new Request("")),kt}var nn=class{constructor(r){this.maxRetryInterval=1e3*60*5,this.headers={},this.retryInterval=1e4,this.retryCount=5,this.onBeforeUnload=this.onBeforeUnload.bind(this),this.xhrHandler=this.xhrHandler.bind(this),this.retry=this.retry.bind(this),this.dataType=r.dataType,this.data=this.initData(r),this.url=(r.apiHost||"https://api-hprof.odkl.ru")+r.apiUrl+this.initQueryParams(r),this.dataType==="json"&&(this.headers["Content-Type"]="application/json;charset=utf-8"),r.beforeUnload?this.onBeforeUnload():(typeof window!="undefined"&&window.addEventListener("beforeunload",this.onBeforeUnload),this.onRequestEnd=r.onRequestEnd,this.xhr=this.doRequest())}initData(r){if(r.dataType==="form"){let t=new FormData;for(let n in r.data)if(Object.prototype.hasOwnProperty.call(r.data,n)){let a=r.data[n];typeof a=="object"&&!(a instanceof Blob)&&(a=JSON.stringify(a)),t.append(n,a)}return t}else return JSON.stringify(r.data)}initQueryParams(r){let t=r.queryParams||{},n=[];r.sdkVersion&&(t.sdkVersion=r.sdkVersion);for(let a in t)Object.prototype.hasOwnProperty.call(t,a)&&t[a]&&n.push(a+"="+t[a]);return n.length?"?"+n.join("&"):""}doRequest(){let r=new XMLHttpRequest;r.open("POST",this.url);for(let t in this.headers)Object.prototype.hasOwnProperty.call(this.headers,t)&&r.setRequestHeader(t,this.headers[t]);return r.responseType="json",r.onload=this.xhrHandler,r.onerror=this.xhrHandler,r.onabort=this.xhrHandler,r.ontimeout=this.xhrHandler,r.send(this.data),r}retry(){this.retryInterval=Math.min(this.retryInterval*2,this.maxRetryInterval),this.retryCount--,this.xhr=this.doRequest()}xhrHandler(r){let t=this.xhr;if(!t)return;if((r.type==="timeout"||r.type==="error"&&t.readyState===XMLHttpRequest.DONE&&t.status===0)&&this.retryCount>0){setTimeout(this.retry,this.retryInterval);return}typeof window!="undefined"&&window.removeEventListener("beforeunload",this.onBeforeUnload),this.onRequestEnd&&this.onRequestEnd()}onBeforeUnload(){qm()&&(this.xhr&&this.xhr.abort(),fetch(this.url,{headers:this.headers,method:"POST",body:this.data,keepalive:!0}))}};function jm(e){typeof window!="undefined"&&new nn(e)}var N={},XA={},Ie={},WA={},kA={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.TracesSamplerValues=void 0,function(r){r.AlwaysOff="always_off",r.AlwaysOn="always_on",r.ParentBasedAlwaysOff="parentbased_always_off",r.ParentBasedAlwaysOn="parentbased_always_on",r.ParentBasedTraceIdRatio="parentbased_traceidratio",r.TraceIdRatio="traceidratio"}(e.TracesSamplerValues||(e.TracesSamplerValues={}))})(kA);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.parseEnvironment=e.DEFAULT_ENVIRONMENT=e.DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT=e.DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT=e.DEFAULT_ATTRIBUTE_COUNT_LIMIT=e.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT=void 0;let r=Bn,t=kA,n=",",a=["OTEL_SDK_DISABLED"];function i(c){return a.indexOf(c)>-1}let o=["OTEL_BSP_EXPORT_TIMEOUT","OTEL_BSP_MAX_EXPORT_BATCH_SIZE","OTEL_BSP_MAX_QUEUE_SIZE","OTEL_BSP_SCHEDULE_DELAY","OTEL_BLRP_EXPORT_TIMEOUT","OTEL_BLRP_MAX_EXPORT_BATCH_SIZE","OTEL_BLRP_MAX_QUEUE_SIZE","OTEL_BLRP_SCHEDULE_DELAY","OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_EVENT_COUNT_LIMIT","OTEL_SPAN_LINK_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT","OTEL_EXPORTER_OTLP_TIMEOUT","OTEL_EXPORTER_OTLP_TRACES_TIMEOUT","OTEL_EXPORTER_OTLP_METRICS_TIMEOUT","OTEL_EXPORTER_OTLP_LOGS_TIMEOUT","OTEL_EXPORTER_JAEGER_AGENT_PORT"];function E(c){return o.indexOf(c)>-1}let T=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS"];function s(c){return T.indexOf(c)>-1}e.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT=1/0,e.DEFAULT_ATTRIBUTE_COUNT_LIMIT=128,e.DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT=128,e.DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT=128,e.DEFAULT_ENVIRONMENT={OTEL_SDK_DISABLED:!1,CONTAINER_NAME:"",ECS_CONTAINER_METADATA_URI_V4:"",ECS_CONTAINER_METADATA_URI:"",HOSTNAME:"",KUBERNETES_SERVICE_HOST:"",NAMESPACE:"",OTEL_BSP_EXPORT_TIMEOUT:3e4,OTEL_BSP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BSP_MAX_QUEUE_SIZE:2048,OTEL_BSP_SCHEDULE_DELAY:5e3,OTEL_BLRP_EXPORT_TIMEOUT:3e4,OTEL_BLRP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BLRP_MAX_QUEUE_SIZE:2048,OTEL_BLRP_SCHEDULE_DELAY:5e3,OTEL_EXPORTER_JAEGER_AGENT_HOST:"",OTEL_EXPORTER_JAEGER_AGENT_PORT:6832,OTEL_EXPORTER_JAEGER_ENDPOINT:"",OTEL_EXPORTER_JAEGER_PASSWORD:"",OTEL_EXPORTER_JAEGER_USER:"",OTEL_EXPORTER_OTLP_ENDPOINT:"",OTEL_EXPORTER_OTLP_TRACES_ENDPOINT:"",OTEL_EXPORTER_OTLP_METRICS_ENDPOINT:"",OTEL_EXPORTER_OTLP_LOGS_ENDPOINT:"",OTEL_EXPORTER_OTLP_HEADERS:"",OTEL_EXPORTER_OTLP_TRACES_HEADERS:"",OTEL_EXPORTER_OTLP_METRICS_HEADERS:"",OTEL_EXPORTER_OTLP_LOGS_HEADERS:"",OTEL_EXPORTER_OTLP_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_TRACES_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_METRICS_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_LOGS_TIMEOUT:1e4,OTEL_EXPORTER_ZIPKIN_ENDPOINT:"http://localhost:9411/api/v2/spans",OTEL_LOG_LEVEL:r.DiagLogLevel.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:e.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT,OTEL_ATTRIBUTE_COUNT_LIMIT:e.DEFAULT_ATTRIBUTE_COUNT_LIMIT,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:e.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:e.DEFAULT_ATTRIBUTE_COUNT_LIMIT,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:e.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:e.DEFAULT_ATTRIBUTE_COUNT_LIMIT,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:e.DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:e.DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:t.TracesSamplerValues.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:"",OTEL_LOGS_EXPORTER:"",OTEL_EXPORTER_OTLP_INSECURE:"",OTEL_EXPORTER_OTLP_TRACES_INSECURE:"",OTEL_EXPORTER_OTLP_METRICS_INSECURE:"",OTEL_EXPORTER_OTLP_LOGS_INSECURE:"",OTEL_EXPORTER_OTLP_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_COMPRESSION:"",OTEL_EXPORTER_OTLP_TRACES_COMPRESSION:"",OTEL_EXPORTER_OTLP_METRICS_COMPRESSION:"",OTEL_EXPORTER_OTLP_LOGS_COMPRESSION:"",OTEL_EXPORTER_OTLP_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_LOGS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE:"cumulative"};function S(c,O,p){if(typeof p[c]=="undefined")return;let d=String(p[c]);O[c]=d.toLowerCase()==="true"}function u(c,O,p,d=-1/0,I=1/0){if(typeof p[c]!="undefined"){let B=Number(p[c]);isNaN(B)||(B<d?O[c]=d:B>I?O[c]=I:O[c]=B)}}function A(c,O,p,d=n){let I=p[c];typeof I=="string"&&(O[c]=I.split(d).map(B=>B.trim()))}let l={ALL:r.DiagLogLevel.ALL,VERBOSE:r.DiagLogLevel.VERBOSE,DEBUG:r.DiagLogLevel.DEBUG,INFO:r.DiagLogLevel.INFO,WARN:r.DiagLogLevel.WARN,ERROR:r.DiagLogLevel.ERROR,NONE:r.DiagLogLevel.NONE};function R(c,O,p){let d=p[c];if(typeof d=="string"){let I=l[d.toUpperCase()];I!=null&&(O[c]=I)}}function M(c){let O={};for(let p in e.DEFAULT_ENVIRONMENT){let d=p;switch(d){case"OTEL_LOG_LEVEL":R(d,O,c);break;default:if(i(d))S(d,O,c);else if(E(d))u(d,O,c);else if(s(d))A(d,O,c);else{let I=c[d];typeof I!="undefined"&&I!==null&&(O[d]=String(I))}}}return O}e.parseEnvironment=M})(WA);var Je={};Object.defineProperty(Je,"__esModule",{value:!0});Je._globalThis=void 0;Je._globalThis=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof ve=="object"?ve:{};Object.defineProperty(Ie,"__esModule",{value:!0});Ie.getEnvWithoutDefaults=Ie.getEnv=void 0;var an=WA,QA=Je;function Xm(){let e=(0,an.parseEnvironment)(QA._globalThis);return Object.assign({},an.DEFAULT_ENVIRONMENT,e)}Ie.getEnv=Xm;function Wm(){return(0,an.parseEnvironment)(QA._globalThis)}Ie.getEnvWithoutDefaults=Wm;var $r={},zr={};Object.defineProperty(zr,"__esModule",{value:!0});zr.hexToBinary=void 0;function wi(e){return e>=48&&e<=57?e-48:e>=97&&e<=102?e-87:e-55}function km(e){let r=new Uint8Array(e.length/2),t=0;for(let n=0;n<e.length;n+=2){let a=wi(e.charCodeAt(n)),i=wi(e.charCodeAt(n+1));r[t++]=a<<4|i}return r}zr.hexToBinary=km;Object.defineProperty($r,"__esModule",{value:!0});$r.hexToBase64=void 0;var Qm=zr;function $m(e){return btoa(String.fromCharCode(...(0,Qm.hexToBinary)(e)))}$r.hexToBase64=$m;var Zr={};Object.defineProperty(Zr,"__esModule",{value:!0});Zr.RandomIdGenerator=void 0;var zm=8,Zm=16,on=class{constructor(){this.generateTraceId=Gi(Zm),this.generateSpanId=Gi(zm)}};Zr.RandomIdGenerator=on;var Mr=Array(32);function Gi(e){return function(){for(let t=0;t<e*2;t++)Mr[t]=Math.floor(Math.random()*16)+48,Mr[t]>=58&&(Mr[t]+=39);return String.fromCharCode.apply(null,Mr.slice(0,e*2))}}var Jr={};Object.defineProperty(Jr,"__esModule",{value:!0});Jr.otperformance=void 0;Jr.otperformance=performance;var et={},rt={};Object.defineProperty(rt,"__esModule",{value:!0});rt.VERSION=void 0;rt.VERSION="1.25.1";Object.defineProperty(et,"__esModule",{value:!0});et.SDK_INFO=void 0;var Jm=rt,Ye=FA;et.SDK_INFO={[Ye.SEMRESATTRS_TELEMETRY_SDK_NAME]:"opentelemetry",[Ye.SEMRESATTRS_PROCESS_RUNTIME_NAME]:"browser",[Ye.SEMRESATTRS_TELEMETRY_SDK_LANGUAGE]:Ye.TELEMETRYSDKLANGUAGEVALUES_WEBJS,[Ye.SEMRESATTRS_TELEMETRY_SDK_VERSION]:Jm.VERSION};var tt={};Object.defineProperty(tt,"__esModule",{value:!0});tt.unrefTimer=void 0;function eD(e){}tt.unrefTimer=eD;(function(e){var r=ve&&ve.__createBinding||(Object.create?function(a,i,o,E){E===void 0&&(E=o),Object.defineProperty(a,E,{enumerable:!0,get:function(){return i[o]}})}:function(a,i,o,E){E===void 0&&(E=o),a[E]=i[o]}),t=ve&&ve.__exportStar||function(a,i){for(var o in a)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&r(i,a,o)};Object.defineProperty(e,"__esModule",{value:!0}),e.getEnv=e.getEnvWithoutDefaults=void 0;var n=Ie;Object.defineProperty(e,"getEnvWithoutDefaults",{enumerable:!0,get:function(){return n.getEnvWithoutDefaults}}),Object.defineProperty(e,"getEnv",{enumerable:!0,get:function(){return n.getEnv}}),t(Je,e),t($r,e),t(Zr,e),t(Jr,e),t(et,e),t(tt,e)})(XA);Object.defineProperty(N,"__esModule",{value:!0});N.addHrTimes=N.isTimeInput=N.isTimeInputHrTime=N.hrTimeToMicroseconds=N.hrTimeToMilliseconds=Fr=N.hrTimeToNanoseconds=N.hrTimeToTimeStamp=N.hrTimeDuration=N.timeInputToHrTime=N.hrTime=N.getTimeOrigin=N.millisToHrTime=void 0;var En=XA,$A=9,rD=6,tD=Math.pow(10,rD),Hr=Math.pow(10,$A);function ke(e){let r=e/1e3,t=Math.trunc(r),n=Math.round(e%1e3*tD);return[t,n]}N.millisToHrTime=ke;function wn(){let e=En.otperformance.timeOrigin;if(typeof e!="number"){let r=En.otperformance;e=r.timing&&r.timing.fetchStart}return e}N.getTimeOrigin=wn;function zA(e){let r=ke(wn()),t=ke(typeof e=="number"?e:En.otperformance.now());return ZA(r,t)}N.hrTime=zA;function nD(e){if(Gn(e))return e;if(typeof e=="number")return e<wn()?zA(e):ke(e);if(e instanceof Date)return ke(e.getTime());throw TypeError("Invalid input type")}N.timeInputToHrTime=nD;function aD(e,r){let t=r[0]-e[0],n=r[1]-e[1];return n<0&&(t-=1,n+=Hr),[t,n]}N.hrTimeDuration=aD;function iD(e){let r=$A,t=`${"0".repeat(r)}${e[1]}Z`,n=t.substr(t.length-r-1);return new Date(e[0]*1e3).toISOString().replace("000Z",n)}N.hrTimeToTimeStamp=iD;function oD(e){return e[0]*Hr+e[1]}var Fr=N.hrTimeToNanoseconds=oD;function ED(e){return e[0]*1e3+e[1]/1e6}N.hrTimeToMilliseconds=ED;function sD(e){return e[0]*1e6+e[1]/1e3}N.hrTimeToMicroseconds=sD;function Gn(e){return Array.isArray(e)&&e.length===2&&typeof e[0]=="number"&&typeof e[1]=="number"}N.isTimeInputHrTime=Gn;function TD(e){return Gn(e)||typeof e=="number"||e instanceof Date}N.isTimeInput=TD;function ZA(e,r){let t=[e[0]+r[0],e[1]+r[1]];return t[1]>=Hr&&(t[1]-=Hr,t[0]+=1),t}N.addHrTimes=ZA;var sn=class{constructor(r){this.data={resourceSpans:[]},this.scopeSpansByResource=new Map,this.spansByResourceAndInstrumentation=new Map,r&&this.addSpans(r)}clear(){this.data={resourceSpans:[]},this.scopeSpansByResource.clear(),this.spansByResourceAndInstrumentation.forEach(function(r){r.clear()}),this.spansByResourceAndInstrumentation.clear()}getData(){return this.data}addSpan(r){this.getSpansFromMap(r).push(_D(r))}addSpans(r){for(let t=0,n=r.length;t<n;t++)this.addSpan(r[t])}getSpansFromMap(r){let t=this.spansByResourceAndInstrumentation.get(r.resource);t||(t=new Map,this.spansByResourceAndInstrumentation.set(r.resource,t));let n=t.get(r.instrumentationLibrary);return n||(n=[],t.set(r.instrumentationLibrary,n),this.getScopeSpansFormMap(r).push({scope:Object.assign({},r.instrumentationLibrary),spans:n})),n}getScopeSpansFormMap(r){let t=this.scopeSpansByResource.get(r.resource);if(!t){let n=xn(r.resource.attributes),a={};n&&n.length&&(a.attributes=n),t=[],this.scopeSpansByResource.set(r.resource,t),this.data.resourceSpans.push({resource:a,scopeSpans:t})}return t}};function xn(e){if(!e)return;let r=[];for(let t in e){let n=e[t];r.push({key:t,value:JA(n)})}return r}function JA(e){return e==null?{anyValue:e}:typeof e=="string"?{stringValue:e}:typeof e=="number"?{doubleValue:e}:typeof e=="boolean"?{booleanValue:e}:{arrayValue:{values:e.map(JA)}}}function _D(e){return{traceId:e.spanContext().traceId,spanId:e.spanContext().spanId,parentSpanId:e.parentSpanId,name:e.name,startTimeUnixNano:String(Fr(e.startTime)),endTimeUnixNano:e.ended?String(Fr(e.endTime)):void 0,ended:e.ended,kind:e.kind,events:e.events.map(SD),links:e.links,status:e.status,droppedEventsCount:e.droppedEventsCount,droppedLinksCount:e.droppedLinksCount,attributes:xn(e.attributes)}}function SD(e){return{timeUnixNano:Fr(e.time),name:e.name,attributes:xn(e.attributes),droppedAttributesCount:e.droppedAttributesCount}}function ec(e){let r=new sn(e),t=r.getData();return r.clear(),t}var Tn=class{constructor(r){this.apiHost=r.apiHost,this.appToken=r.appToken}export(r,t){jm({apiHost:this.apiHost,apiUrl:"/api/otel/trace",queryParams:{crashToken:this.appToken,clientTimeUnixNano:Km()},dataType:"json",data:ec(r)}),t({code:Me.SUCCESS})}shutdown(){return this.forceFlush()}forceFlush(){return Promise.resolve()}},Yn={};Object.defineProperty(Yn,"__esModule",{value:!0});var rc=Yn.BatchSpanProcessorBase=void 0,pe=Bn,ie=KA,_n=class{constructor(r,t){this._exporter=r,this._isExporting=!1,this._finishedSpans=[],this._droppedSpansCount=0;let n=(0,ie.getEnv)();this._maxExportBatchSize=typeof(t==null?void 0:t.maxExportBatchSize)=="number"?t.maxExportBatchSize:n.OTEL_BSP_MAX_EXPORT_BATCH_SIZE,this._maxQueueSize=typeof(t==null?void 0:t.maxQueueSize)=="number"?t.maxQueueSize:n.OTEL_BSP_MAX_QUEUE_SIZE,this._scheduledDelayMillis=typeof(t==null?void 0:t.scheduledDelayMillis)=="number"?t.scheduledDelayMillis:n.OTEL_BSP_SCHEDULE_DELAY,this._exportTimeoutMillis=typeof(t==null?void 0:t.exportTimeoutMillis)=="number"?t.exportTimeoutMillis:n.OTEL_BSP_EXPORT_TIMEOUT,this._shutdownOnce=new ie.BindOnceFuture(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(pe.diag.warn("BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this._maxExportBatchSize=this._maxQueueSize)}forceFlush(){return this._shutdownOnce.isCalled?this._shutdownOnce.promise:this._flushAll()}onStart(r,t){}onEnd(r){this._shutdownOnce.isCalled||r.spanContext().traceFlags&pe.TraceFlags.SAMPLED&&this._addToBuffer(r)}shutdown(){return this._shutdownOnce.call()}_shutdown(){return Promise.resolve().then(()=>this.onShutdown()).then(()=>this._flushAll()).then(()=>this._exporter.shutdown())}_addToBuffer(r){if(this._finishedSpans.length>=this._maxQueueSize){this._droppedSpansCount===0&&pe.diag.debug("maxQueueSize reached, dropping spans"),this._droppedSpansCount++;return}this._droppedSpansCount>0&&(pe.diag.warn(`Dropped ${this._droppedSpansCount} spans because maxQueueSize reached`),this._droppedSpansCount=0),this._finishedSpans.push(r),this._maybeStartTimer()}_flushAll(){return new Promise((r,t)=>{let n=[],a=Math.ceil(this._finishedSpans.length/this._maxExportBatchSize);for(let i=0,o=a;i<o;i++)n.push(this._flushOneBatch());Promise.all(n).then(()=>{r()}).catch(t)})}_flushOneBatch(){return this._clearTimer(),this._finishedSpans.length===0?Promise.resolve():new Promise((r,t)=>{let n=setTimeout(()=>{t(new Error("Timeout"))},this._exportTimeoutMillis);pe.context.with((0,ie.suppressTracing)(pe.context.active()),()=>{let a;this._finishedSpans.length<=this._maxExportBatchSize?(a=this._finishedSpans,this._finishedSpans=[]):a=this._finishedSpans.splice(0,this._maxExportBatchSize);let i=()=>this._exporter.export(a,E=>{var T;clearTimeout(n),E.code===ie.ExportResultCode.SUCCESS?r():t((T=E.error)!==null&&T!==void 0?T:new Error("BatchSpanProcessor: span export failed"))}),o=null;for(let E=0,T=a.length;E<T;E++){let s=a[E];s.resource.asyncAttributesPending&&s.resource.waitForAsyncAttributes&&(o!=null||(o=[]),o.push(s.resource.waitForAsyncAttributes()))}o===null?i():Promise.all(o).then(i,E=>{(0,ie.globalErrorHandler)(E),t(E)})})})}_maybeStartTimer(){if(this._isExporting)return;let r=()=>{this._isExporting=!0,this._flushOneBatch().finally(()=>{this._isExporting=!1,this._finishedSpans.length>0&&(this._clearTimer(),this._maybeStartTimer())}).catch(t=>{this._isExporting=!1,(0,ie.globalErrorHandler)(t)})};if(this._finishedSpans.length>=this._maxExportBatchSize)return r();this._timer===void 0&&(this._timer=setTimeout(()=>r(),this._scheduledDelayMillis),(0,ie.unrefTimer)(this._timer))}_clearTimer(){this._timer!==void 0&&(clearTimeout(this._timer),this._timer=void 0)}};rc=Yn.BatchSpanProcessorBase=_n;var Sn=class extends rc{onShutdown(){}},un=class{constructor(r){this.serviceName=r.serviceName||"tracer-js-sdk";let t=new Cm({resource:new jA({[Dn]:this.serviceName}),spanLimits:r.spanLimits});t.addSpanProcessor(new Sn(new Tn(r),{scheduledDelayMillis:5e3,exportTimeoutMillis:3e4,maxQueueSize:2048,maxExportBatchSize:512})),t.register({}),wm({instrumentations:r.instrumentations}),this.provider=t}getProvider(){return this.provider}getTracer(){return this.provider.getTracer(this.serviceName)}destroy(){this.provider.forceFlush(),this.provider.shutdown()}};function uD(){if(typeof window=="undefined")return{data:{},modules:{},version:"1.1.2"};let e="TracerSDK";return window[e]||(window[e]={data:{},modules:{},version:"1.1.2"}),window[e]}function AD(e){let r=uD().data;return r[e]||(r[e]={}),r[e]}function cD(e,r,t){let n=AD(e);return n[r]||(n[r]=t()),n[r]}function tc(e){return cD(e.appToken,8,function(){return new un(e)})}var Qe=class{constructor(){this.spans=[]}getJsonData(){return ec(this.spans)}clear(){this.spans=[]}export(r,t){this.spans=this.spans.concat(r),t({code:Me.SUCCESS})}shutdown(){return this.forceFlush()}forceFlush(){return Promise.resolve()}},Kr=class{constructor(r={}){this.disabled=!1,this.endedSpansExporter=r.endedSpansExporter,this.startedSpansExporter=r.startedSpansExporter}onStart(r,t){this.disabled||!this.startedSpansExporter||this.startedSpansExporter.export([r],this.onExport)}onEnd(r){this.disabled||!this.endedSpansExporter||this.endedSpansExporter.export([r],this.onExport)}onExport(r){}forceFlush(){return Promise.resolve()}shutdown(){return this.disabled=!0,Promise.resolve()}};var Hn=class e{constructor({name:r}){}log(r,t){}error(r,t){}critical(r,t){}createComponentTracer(r){return new e({name:r})}end(){}getFinishedSpans(){}getTraceId(){return this.fakeTraceId}},nt=class e{constructor({name:r,parentContext:t,tracer:n}){this.childTracers=[];let a=!n;if(a){let o=tc({serviceName:"videoplayer-sdk-web",appToken:"L9SBoka6ZWk4xPjaK7tmfSfYvMhcge7nvGDjpdMmscb",spanLimits:{attributeCountLimit:1/0,eventCountLimit:1/0,attributePerEventCountLimit:1/0}}).getProvider(),E=new Qe,T=new Qe;this.spanExporter=E,o.addSpanProcessor(new Kr({startedSpansExporter:E,endedSpansExporter:T})),this.tracer=o.getTracer("sdk-videoplayer-tracer")}else this.tracer=n;this.span=this.tracer.startSpan(r,{root:a},t),this.context=at.trace.setSpan(at.context.active(),this.span)}log(r,t){this.span.addEvent(r,{...t,type:"log"})}error(r,t){this.span.addEvent(r,{...t,type:"error"})}critical(r,t){this.span.addEvent(r,{...t,type:"critical"})}static createRootTracer(r=!1){return r?new e({name:"Root"}):new Hn({name:"Root"})}createComponentTracer(r){let t=new e({name:r,parentContext:this.context,tracer:this.tracer});return this.childTracers.push(t),t}end(){this.childTracers.forEach(r=>r.end()),this.span.end()}getFinishedSpans(){var r;return(r=this.spanExporter)==null?void 0:r.getJsonData()}getTraceId(){return this.span.spanContext().traceId}};function nc(e,r='Assertion "value is not nullable" failed'){if(e==null)throw new Error(r)}function ac(e,r='Assertion "value is nullable" failed'){if(e!=null)throw new Error(r)}function ue(e){return typeof e!="undefined"&&e!==null}function it(e){return e==null}function ic(e,r){if(!(e!=null&&e.length))throw new Error(r)}function oc(e,r){if(e!=null&&e.length)throw new Error(r)}var Ec=(e,r,t)=>new Promise((n,a)=>{r.addEventListener("abort",()=>{E(),s.remove()});let i=()=>{E(),a()},o=()=>{E(),n()},E=()=>{T&&clearTimeout(T),s.removeEventListener("load",o),s.removeEventListener("error",i)},T;t&&(T=window.setTimeout(i,t));let s=document.createElement("script");s.addEventListener("load",o),s.addEventListener("error",i),s.src=e,document.head.appendChild(s)});var sc,Tc=typeof((sc=window.performance)==null?void 0:sc.now)=="function"?()=>window.performance.now():()=>Date.now();var _c=(e,r)=>async(...t)=>{var o;let n=r(...t),a=e.aborted,i;for(;!a&&!e.aborted;)try{let E=await n.next(i);a=(o=E.done)!=null?o:!1,i=E.value}catch(E){await n.throw(E)}return i};var Kn=()=>{var e,r;return/Mobile|mini|Fennec|Android|iP(ad|od|hone)/.test((e=navigator.appVersion)!=null?e:navigator.userAgent)||((r=navigator==null?void 0:navigator.userAgentData)==null?void 0:r.mobile)},Fn=class{constructor(){this.detect()}get browser(){return this._currentBrowser}get device(){return this._currentDevice}get isTouch(){return this._maxTouchPoints>0}get isIOS(){return["iPhone","iPad","iPod"].includes(this.device)}get isMac(){return this.device==="Mac"}get isApple(){return this.isIOS||this.isMac}get isIphoneOrOldIpad(){if(!this.isApple||!this.isTouch)return!1;let r=this.device==="iPad"||(window==null?void 0:window.screen.width)>700,t=this._iosVersion;return!r||r&&!!t&&t<16}get isAndroid(){return this.device==="Android"}get isMobile(){return this._isMobile}get iOSVersion(){return this._iosVersion}get macVersion(){return this._macVersion}get isYandex(){return this.browser==="Yandex"}get isSafari(){return this.browser==="Safari"}get isSamsungBrowser(){return this.browser==="SamsungBrowser"}get isHDR(){return this._isHdr}detect(){var n;let{userAgent:r,maxTouchPoints:t}=navigator;try{this._maxTouchPoints=t,this._isHdr=!!((n=matchMedia("(dynamic-range: high)"))!=null&&n.matches)}catch(a){console.error(a)}try{this._isMobile=Kn()}catch(a){console.error(a)}this.detectBrowser(r),this.detectDevice(r),this.isIOS&&this.detectIOSVersion(),this.isMac&&this.detectMacVersion()}detectBrowser(r){try{let t=/yabrowser/i.test(r)?"Yandex":void 0,n=/samsungbrowser/i.test(r)?"SamsungBrowser":void 0,a=/chrome|crios/i.test(r)?"Chrome":void 0,i=/chromium/i.test(r)?"Chromium":void 0,o=/firefox|fxios/i.test(r)?"Firefox":void 0,E=/webkit|safari|khtml/i.test(r)?"Safari":void 0,T=/opr\//i.test(r)?"Opera":void 0,s=/edg/i.test(r)?"Edge":void 0;this._currentBrowser=t||n||o||T||s||a||i||E||"Rest"}catch(t){console.error(t)}}detectDevice(r){try{let t=/android/i.test(r)?"Android":void 0,n=/iphone/i.test(r)?"iPhone":void 0,a=/ipad/i.test(r)?"iPad":void 0,i=/ipod/i.test(r)?"iPod":void 0,o=/mac/i.test(r)?"Mac":void 0,E=/webOS|BlackBerry|IEMobile|Opera Mini/i.test(r)?"RestMobile":void 0;this._currentDevice=t||n||a||i||E||o||"Desktop"}catch(t){console.error(t)}}detectIOSVersion(){try{let{userAgent:r}=window.navigator,t=r.match(/Version\/(\d+(\.\d+)?)/i);if(!t)return;let n=t[1],a=parseFloat(n);if(isNaN(a))return;this._iosVersion=a}catch(r){console.error(r)}}detectMacVersion(){try{let{userAgent:r}=window.navigator,t=r.match(/Version\/(\d+)/);if(!t)return;let n=t[1],a=parseInt(n,10);if(isNaN(a))return;this._macVersion=a}catch(r){console.error(r)}}},Sc=new Fn;var uc=(e,{start:r=0,factor:t=2,max:n=1/0,min:a=r,random:i=0}={})=>{let o=r;return o*=t**e,o*=1+(Math.random()*i*2-i),o=Math.round(o),o=Math.min(o,n),o=Math.max(o,a),o};var ot={};ci(ot,{clear:()=>vD,get:()=>OD,has:()=>RD,isPersistent:()=>lD,remove:()=>pD,set:()=>fD});var C,Ae,qn=`vk-videoplayer-dummy-key-${Math.random()}`,me=()=>{if(Ae!==void 0)return Ae;try{localStorage.setItem(qn,"test"),localStorage.removeItem(qn),Ae=0}catch(e){if(e instanceof DOMException||e instanceof TypeError)try{sessionStorage.getItem(qn),Ae=1}catch(r){if(r instanceof DOMException||r instanceof TypeError)Ae=2;else throw r}else throw e}return Ae===2&&(C=new Map),Ae},lD=()=>me()===0,OD=e=>{var t,n;let r=me();switch(r){case 0:return(t=localStorage.getItem(e))!=null?t:void 0;case 1:return(n=sessionStorage.getItem(e))!=null?n:void 0;case 2:return C==null?void 0:C.get(e);default:H(r)}},fD=(e,r)=>{let t=me();switch(t){case 0:try{localStorage.setItem(e,r)}catch(n){if(n instanceof DOMException)console.error(n);else throw n}break;case 1:try{sessionStorage.setItem(e,r)}catch(n){if(n instanceof DOMException)console.error(n);else throw n}break;case 2:return void(C==null?void 0:C.set(e,r));default:H(t)}},RD=e=>{var t;let r=me();switch(r){case 0:return e in localStorage;case 1:return e in sessionStorage;case 2:return(t=C==null?void 0:C.has(e))!=null?t:!1;default:return H(r),!1}},pD=e=>{let r=me();switch(r){case 0:return localStorage.removeItem(e);case 1:return sessionStorage.removeItem(e);case 2:return void(C==null?void 0:C.delete(e));default:H(r)}},vD=()=>{let e=me();switch(e){case 0:return localStorage.clear();case 1:return sessionStorage.clear();case 2:return C==null?void 0:C.clear();default:H(e)}};var Ac=()=>{let e,r;try{e=window.self!==window.top}catch(n){n instanceof DOMException&&n.name==="SecurityError"?e=!0:(e=!1,console.error(n))}try{window.location.ancestorOrigins&&(r=window.location.ancestorOrigins[window.location.ancestorOrigins.length-1])}catch(n){console.error(n)}try{!r&&document.referrer&&(r=document.referrer)}catch(n){console.error(n)}let t=r?new URL(r).hostname:void 0;return{isEmbed:e,host:t}};var Et=(S=>(S.INVARIANT="Invariant quality",S.Q_144P="144p",S.Q_240P="240p",S.Q_360P="360p",S.Q_480P="480p",S.Q_720P="720p",S.Q_1080P="1080p",S.Q_1440P="1440p",S.Q_2160P="2160p",S.Q_4320P="4320p",S))(Et||{});var V={"144p":{width:256,height:144},"240p":{width:428,height:240},"360p":{width:640,height:360},"480p":{width:856,height:480},"720p":{width:1280,height:720},"1080p":{width:1920,height:1080},"1440p":{width:2560,height:1440},"2160p":{width:3840,height:2160},"4320p":{width:7680,height:4320}},cc=(e,r)=>V[e].height>V[r].height,lc=(e,r)=>V[e].height>=V[r].height,st=(e,r)=>V[e].height<V[r].height,Oc=(e,r)=>V[e].height<=V[r].height,fc=e=>e.sort((r,t)=>r===t?0:r==="Invariant quality"?1:t==="Invariant quality"?-1:st(r,t)?1:-1)[0],Rc=Object.keys(V).sort((e,r)=>st(e,r)?-1:1),pc=(e,r=.02)=>[...Rc].find(n=>V[n].height*(1+r)>=e),vc=({width:e,height:r})=>{let t=Math.min(e,r),n=Math.max(e,r);return Rc.find(a=>{let i=V[a];return i.width>=n&&i.height>=t})},dc=e=>V[e].height,Tt=e=>e==="Invariant quality",Nc=e=>e.every(r=>!Tt(r));function Pc(e){if(Tt(e))throw new Error("Expected exact quality")}var Mc=(e,r)=>{let t={};for(let n of Object.keys(r)){let a=r[n],i=e[n];Array.isArray(a)&&Array.isArray(i)?t[n]=i:typeof a=="object"&&typeof i=="object"?t[n]=Mc(i,a):t[n]=n in e?i:a}return t};var dD=e=>{let r="";return e>=3600&&(r+=Math.floor(e/3600)+"h",e=e%3600),e>=60&&(r+=Math.floor(e/60)+"m",e=e%60),e>0&&(r+=Math.floor(e)+"s"),r};function _t(e,r=0,t){let n,a,i,o,E,T,s=0,S=!1,u=!1,A=!0,l=!r&&r!==0&&typeof window.requestAnimationFrame=="function";t&&(S=!!t.leading,u="maxWait"in t,i=t!=null&&t.maxWait?Math.max(+(t==null?void 0:t.maxWait)||0,r):i,A="trailing"in t?!!t.trailing:A);function R(P){let w=n,ne=a;return n=a=void 0,s=P,o=e.apply(ne,w),o}function M(P,w){return l?(E&&window.cancelAnimationFrame(E),window.requestAnimationFrame(P)):setTimeout(P,w)}function c(P){if(l){window.cancelAnimationFrame(P);return}clearTimeout(P)}function O(P){return s=P,E=M(I,r),S?R(P):o}function p(P){let w=P-T,ne=P-s,Ai=r-w;return u?Math.min(Ai,i-ne):Ai}function d(P){let w=P-T,ne=P-s;return T===void 0||w>=r||w<0||u&&ne>=i}function I(){let P=Date.now();if(d(P))return B(P);E=M(I,p(P))}function B(P){return E=void 0,A&&n?R(P):(n=a=void 0,o)}function Or(){E!==void 0&&c(E),s=0,n=T=a=E=void 0}function CR(){return E===void 0?o:B(Date.now())}function mR(){return E!==void 0}function fr(...P){let w=Date.now(),ne=d(w);if(n=P,a=this,T=w,ne){if(E===void 0)return O(T);if(u)return E=M(I,r),R(T)}return E===void 0&&(E=M(I,r)),o}return fr.cancel=Or,fr.flush=CR,fr.pending=mR,fr}var St=(e,r=0,t)=>_t(e,r,{...{leading:!0,trailing:!0},...t,maxWait:r});var er=(e,r)=>{if(e===null||typeof e!="object")return e;let t=Array.isArray(e)?[]:{};for(let n in e){if(typeof r=="function"){let a=r(e[n],n,e,t);if(a!==void 0){t[n]=a;continue}}typeof e[n]=="object"?t[n]=er(e[n],r):t[n]=e[n]}return t};var Lc=e=>er(e);var ND=300,Ic=(e,r=ND)=>new f(t=>{let{width:n,height:a}=e.getBoundingClientRect();if(t.next({width:n,height:a}),!window.ResizeObserver)return;let i=new ResizeObserver(St(o=>{let E=o[0];if(!E)return;let T,s;E.contentBoxSize&&E.contentBoxSize[0]?(s=E.contentBoxSize[0].blockSize,T=E.contentBoxSize[0].inlineSize):E.contentRect&&(T=E.contentRect.width,s=E.contentRect.height),ue(T)&&ue(s)&&t.next({width:T,height:s})},r));return i.observe(e),()=>i.disconnect()});var rr=(e,r=".")=>{let t={};for(let n in e)if(e.hasOwnProperty(n))if(typeof e[n]=="object"&&e[n]!==null){let a=rr(e[n]);for(let i in a)a.hasOwnProperty(i)&&(t[n+r+i]=a[i])}else t[n]=e[n];return t};var hc=e=>{e.removeAttribute("src"),e.load()};var Cc=e=>r=>t=>{let n=typeof t=="object";t==null||n&&!Object.keys(t).length||e(r,n?rr(t):{value:t})};var mc=require("@opentelemetry/api");var tr=class extends X{constructor(r){super(),this.value=r}next(r){super.next(this.value=r)}error(r){super.error(this.value=r)}getValue(){return this.value}_subscribe(r){let t=super._subscribe(r);return r.next(this.value),t}};function jn(e){return new f(r=>{let t={},n=Object.keys(e).length,a=i=>o=>{i in t||n--,t[i]=o,n===0&&r.next(t)};return Object.entries(e).reduce((i,[o,E])=>i.add(E.subscribe(a(o))),new b)})}function Xn(...e){return new f(r=>e.reduce((t,n)=>t.add(n.subscribe(r)),new b))}var Dc=e=>new f(r=>{let t=window.setTimeout(()=>{try{r.next()}catch(n){if(r.error)r.error(n);else throw n}},e);return()=>window.clearTimeout(t)});var bc=e=>new f(r=>{let t=window.setInterval(()=>r.next(),e);return()=>{t&&(window.clearInterval(t),t=void 0)}});var yc=e=>new f(r=>{e.forEach(t=>r.next(t))});var gc=(e,r)=>new f(t=>{let n=a=>t.next(a);return e.addEventListener(r,n),()=>e.removeEventListener(r,n)});function kn(e){return r=>new f(t=>r.subscribe(new Wn(t,e)))}var Wn=class{constructor(r,t){this.destination=r;this.size=t;this.lastValues=[]}next(r){this.lastValues.length===this.size&&this.lastValues.shift(),this.lastValues.push(r),this.destination.next(this.lastValues)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};var PD={leading:!1,trailing:!0};function $n(e,r=PD){return t=>new f(n=>t.subscribe(new Qn(n,e,r)))}var Qn=class{constructor(r,t,n){this.destination=r;this.time=t;this.config=n}next(r){this.lastValue=r,ue(this.timeout)?window.clearTimeout(this.timeout):this.config.leading&&this.destination.next(r),this.timeout=window.setTimeout(()=>{if(this.config.trailing)try{this.destination.next(this.lastValue)}catch(t){if(this.destination.error)this.destination.error(t);else throw t}this.timeout=void 0},this.time)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};var MD={leading:!0,trailing:!1};function Zn(e,r=MD){return t=>new f(n=>t.subscribe(new zn(n,e,r)))}var zn=class{constructor(r,t,n){this.destination=r;this.time=t;this.config=n}next(r){this.lastValue=r,it(this.timeout)&&(this.config.leading&&this.destination.next(r),this.timeout=window.setTimeout(()=>{this.config.trailing&&this.destination.next(this.lastValue),this.timeout=void 0},this.time))}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function ea(e){return r=>new f(t=>r.subscribe(new Jn(t,e)))}var Jn=class{constructor(r,t){this.destination=r;this.predicate=t}next(r){let t;try{t=this.predicate(r)}catch(n){throw this.error(n),n}t&&this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function ta(e=(r,t)=>r===t){return r=>new f(t=>r.subscribe(new ra(t,e)))}var Uc={},ra=class{constructor(r,t){this.destination=r;this.predicate=t;this.lastValue=Uc}next(r){let t;try{t=this.lastValue===Uc||!this.predicate(this.lastValue,r),this.lastValue=r}catch(n){throw this.error(n),n}t&&this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function nr(e){return r=>new f(t=>r.subscribe(new na(t,e)))}var na=class{constructor(r,t){this.destination=r;this.mapper=t}next(r){let t;try{t=this.mapper(r)}catch(n){throw this.error(n),n}this.destination.next(t)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function aa(e){return nr(()=>e)}function ia(){return e=>new f(r=>{let t=!1,n=!1,a=e.subscribe(i=>{t||(t=!0,r.next(i)),n&&a.unsubscribe()},i=>{var o;t=!0,(o=r.error)==null||o.call(r,i),n&&a.unsubscribe()});return n=!0,t&&a.unsubscribe(),a})}function Ea(){return e=>new f(r=>e.subscribe(new oa(r)))}var oa=class{constructor(r){this.destination=r;this.hasLast=!1}next(r){let t=this.last;if(this.last=r,!this.hasLast){this.hasLast=!0;return}this.destination.next([t,r])}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function Ta(e){return r=>new f(t=>r.subscribe(new sa(t,e)))}var sa=class{constructor(r,t){this.destination=r;this.effect=t}next(r){try{this.effect(r)}catch(t){throw this.error(t),t}this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};var Vc=(E=>(E.NETWORK="network",E.VIDEO_PIPELINE="video_pipeline",E.EXTERNAL_API="external_api",E.PARSER="parser",E.DOM="dom",E.WTF="wtf",E.FATAL="fatal",E))(Vc||{});var ut=class{constructor(){Object.defineProperty(this,"listeners",{value:{},writable:!0,configurable:!0})}addEventListener(r,t,n){r in this.listeners||(this.listeners[r]=[]),this.listeners[r].push({callback:t,options:n})}removeEventListener(r,t){if(!(r in this.listeners))return;let n=this.listeners[r];for(let a=0,i=n.length;a<i;a++)if(n[a].callback===t){n.splice(a,1);return}}dispatchEvent(r){if(!(r.type in this.listeners))return;let n=this.listeners[r.type].slice();for(let a=0,i=n.length;a<i;a++){let o=n[a];try{o.callback.call(this,r)}catch(E){Promise.resolve().then(()=>{throw E})}o.options&&o.options.once&&this.removeEventListener(r.type,o.callback)}return!r.defaultPrevented}},De=class extends ut{constructor(){super(),this.listeners||ut.call(this),Object.defineProperty(this,"aborted",{value:!1,writable:!0,configurable:!0}),Object.defineProperty(this,"onabort",{value:null,writable:!0,configurable:!0}),Object.defineProperty(this,"reason",{value:void 0,writable:!0,configurable:!0})}toString(){return"[object AbortSignal]"}dispatchEvent(r){r.type==="abort"&&(this.aborted=!0,typeof this.onabort=="function"&&this.onabort.call(this,r)),super.dispatchEvent(r)}},ar=class{constructor(){Object.defineProperty(this,"signal",{value:new De,writable:!0,configurable:!0})}abort(r){let t;try{t=new Event("abort")}catch(a){typeof document!="undefined"?document.createEvent?(t=document.createEvent("Event"),t.initEvent("abort",!1,!1)):(t=document.createEventObject(),t.type="abort"):t={type:"abort",bubbles:!1,cancelable:!1}}let n=r;if(n===void 0)if(typeof document=="undefined")n=new Error("This operation was aborted"),n.name="AbortError";else try{n=new DOMException("signal is aborted without reason")}catch(a){n=new Error("This operation was aborted"),n.name="AbortError"}this.signal.reason=n,this.signal.dispatchEvent(t)}toString(){return"[object AbortController]"}};typeof Symbol!="undefined"&&Symbol.toStringTag&&(ar.prototype[Symbol.toStringTag]="AbortController",De.prototype[Symbol.toStringTag]="AbortSignal");function At(e){return e.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL?(console.log("__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL=true is set, will force install polyfill"),!0):typeof e.Request=="function"&&!e.Request.prototype.hasOwnProperty("signal")||!e.AbortController}function _a(e){typeof e=="function"&&(e={fetch:e});let{fetch:r,Request:t=r.Request,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:a=!1}=e;if(!At({fetch:r,Request:t,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:a}))return{fetch:r,Request:i};let i=t;(i&&!i.prototype.hasOwnProperty("signal")||a)&&(i=function(s,S){let u;S&&S.signal&&(u=S.signal,delete S.signal);let A=new t(s,S);return u&&Object.defineProperty(A,"signal",{writable:!1,enumerable:!1,configurable:!0,value:u}),A},i.prototype=t.prototype);let o=r;return{fetch:(T,s)=>{let S=i&&i.prototype.isPrototypeOf(T)?T.signal:s?s.signal:void 0;if(S){let u;try{u=new DOMException("Aborted","AbortError")}catch(l){u=new Error("Aborted"),u.name="AbortError"}if(S.aborted)return Promise.reject(u);let A=new Promise((l,R)=>{S.addEventListener("abort",()=>R(u),{once:!0})});return s&&s.signal&&delete s.signal,Promise.race([A,o(T,s)])}return o(T,s)},Request:i}}var ir=At({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}),Bc=ir?_a({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}):void 0,wc=ir?Bc.fetch:window.fetch,_G=ir?Bc.Request:window.Request,SG=ir?ar:window.AbortController,uG=ir?De:window.AbortSignal;var LR=VR(MR(),1),IR=(u=>(u.Armenian="58",u.Azerbaijani="57",u.Belarusian="114",u.English="3",u.Kazakh="97",u.Portuguese="73",u.Russian="0",u.Spanish="4",u.Ukrainian="1",u.Uzbek="65",u.Vietnamese="75",u))(IR||{}),cV="vk.com",lV=async(e,r,t)=>{let n=new URL(`https://${cV}/js/lang-pack.js`);n.searchParams.set("format","json"),n.searchParams.set("name",r),e!==void 0&&n.searchParams.set("lang",e);let i=await(await wc(n.toString())).json();return OV(i,t)},OV=(e,r)=>(0,LR.default)(Object.entries(e.keys).map(([t,n])=>[t.substring(`${r}_`.length),fV(n)])),fV=e=>Array.isArray(e)?e[0]:e;var hR=(t=>(t.RU="ru",t.EN="en",t))(hR||{});
|