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