@vercel/otel 2.1.2 → 2.1.4

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.
@@ -1,17 +1,17 @@
1
1
  if (globalThis.performance === undefined) {
2
2
  globalThis.performance = { timeOrigin: 0, now: () => Date.now() };
3
3
  }
4
- var uA=Object.create;var Ke=Object.defineProperty;var TA=Object.getOwnPropertyDescriptor;var SA=Object.getOwnPropertyNames;var pA=Object.getPrototypeOf,lA=Object.prototype.hasOwnProperty;var us=(r=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(r,{get:(t,e)=>(typeof require<"u"?require:t)[e]}):r)(function(r){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+r+'" is not supported')});var F=(r,t)=>()=>(r&&(t=r(r=0)),t);var S=(r,t)=>()=>(t||r((t={exports:{}}).exports,t),t.exports),AA=(r,t)=>{for(var e in t)Ke(r,e,{get:t[e],enumerable:!0})},ke=(r,t,e,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of SA(t))!lA.call(r,o)&&o!==e&&Ke(r,o,{get:()=>t[o],enumerable:!(n=TA(t,o))||n.enumerable});return r},tt=(r,t,e)=>(ke(r,t,"default"),e&&ke(e,t,"default")),O=(r,t,e)=>(e=r!=null?uA(pA(r)):{},ke(t||!r||!r.__esModule?Ke(e,"default",{value:r,enumerable:!0}):e,r)),b=r=>ke(Ke({},"__esModule",{value:!0}),r);var c={};import*as Vx from"@opentelemetry/api";var d=F(()=>{tt(c,Vx)});var Se=S(mt=>{"use strict";Object.defineProperty(mt,"__esModule",{value:!0});mt.isTracingSuppressed=mt.unsuppressTracing=mt.suppressTracing=void 0;var dA=(d(),b(c)),bn=(0,dA.createContextKey)("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function mA(r){return r.setValue(bn,!0)}mt.suppressTracing=mA;function fA(r){return r.deleteValue(bn)}mt.unsuppressTracing=fA;function hA(r){return r.getValue(bn)===!0}mt.isTracingSuppressed=hA});var yn=S(y=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});y.BAGGAGE_MAX_TOTAL_LENGTH=y.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=y.BAGGAGE_MAX_NAME_VALUE_PAIRS=y.BAGGAGE_HEADER=y.BAGGAGE_ITEMS_SEPARATOR=y.BAGGAGE_PROPERTIES_SEPARATOR=y.BAGGAGE_KEY_PAIR_SEPARATOR=void 0;y.BAGGAGE_KEY_PAIR_SEPARATOR="=";y.BAGGAGE_PROPERTIES_SEPARATOR=";";y.BAGGAGE_ITEMS_SEPARATOR=",";y.BAGGAGE_HEADER="baggage";y.BAGGAGE_MAX_NAME_VALUE_PAIRS=180;y.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=4096;y.BAGGAGE_MAX_TOTAL_LENGTH=8192});var Vn=S(st=>{"use strict";Object.defineProperty(st,"__esModule",{value:!0});st.parseKeyPairsIntoRecord=st.parsePairKeyValue=st.getKeyPairs=st.serializeKeyPairs=void 0;var RA=(d(),b(c)),It=yn();function OA(r){return r.reduce((t,e)=>{let n=`${t}${t!==""?It.BAGGAGE_ITEMS_SEPARATOR:""}${e}`;return n.length>It.BAGGAGE_MAX_TOTAL_LENGTH?t:n},"")}st.serializeKeyPairs=OA;function gA(r){return r.getAllEntries().map(([t,e])=>{let n=`${encodeURIComponent(t)}=${encodeURIComponent(e.value)}`;return e.metadata!==void 0&&(n+=It.BAGGAGE_PROPERTIES_SEPARATOR+e.metadata.toString()),n})}st.getKeyPairs=gA;function Ts(r){let t=r.split(It.BAGGAGE_PROPERTIES_SEPARATOR);if(t.length<=0)return;let e=t.shift();if(!e)return;let n=e.indexOf(It.BAGGAGE_KEY_PAIR_SEPARATOR);if(n<=0)return;let o=decodeURIComponent(e.substring(0,n).trim()),s=decodeURIComponent(e.substring(n+1).trim()),i;return t.length>0&&(i=(0,RA.baggageEntryMetadataFromString)(t.join(It.BAGGAGE_PROPERTIES_SEPARATOR))),{key:o,value:s,metadata:i}}st.parsePairKeyValue=Ts;function NA(r){let t={};return typeof r=="string"&&r.length>0&&r.split(It.BAGGAGE_ITEMS_SEPARATOR).forEach(e=>{let n=Ts(e);n!==void 0&&n.value.length>0&&(t[n.key]=n.value)}),t}st.parseKeyPairsIntoRecord=NA});var Ss=S(je=>{"use strict";Object.defineProperty(je,"__esModule",{value:!0});je.W3CBaggagePropagator=void 0;var vn=(d(),b(c)),MA=Se(),xt=yn(),Bn=Vn(),wn=class{inject(t,e,n){let o=vn.propagation.getBaggage(t);if(!o||(0,MA.isTracingSuppressed)(t))return;let s=(0,Bn.getKeyPairs)(o).filter(a=>a.length<=xt.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS).slice(0,xt.BAGGAGE_MAX_NAME_VALUE_PAIRS),i=(0,Bn.serializeKeyPairs)(s);i.length>0&&n.set(e,xt.BAGGAGE_HEADER,i)}extract(t,e,n){let o=n.get(e,xt.BAGGAGE_HEADER),s=Array.isArray(o)?o.join(xt.BAGGAGE_ITEMS_SEPARATOR):o;if(!s)return t;let i={};return s.length===0||(s.split(xt.BAGGAGE_ITEMS_SEPARATOR).forEach(_=>{let E=(0,Bn.parsePairKeyValue)(_);if(E){let T={value:E.value};E.metadata&&(T.metadata=E.metadata),i[E.key]=T}}),Object.entries(i).length===0)?t:vn.propagation.setBaggage(t,vn.propagation.createBaggage(i))}fields(){return[xt.BAGGAGE_HEADER]}};je.W3CBaggagePropagator=wn});var ps=S(We=>{"use strict";Object.defineProperty(We,"__esModule",{value:!0});We.AnchoredClock=void 0;var Gn=class{_monotonicClock;_epochMillis;_performanceMillis;constructor(t,e){this._monotonicClock=e,this._epochMillis=t.now(),this._performanceMillis=e.now()}now(){let t=this._monotonicClock.now()-this._performanceMillis;return this._epochMillis+t}};We.AnchoredClock=Gn});var fs=S(ft=>{"use strict";Object.defineProperty(ft,"__esModule",{value:!0});ft.isAttributeValue=ft.isAttributeKey=ft.sanitizeAttributes=void 0;var ls=(d(),b(c));function PA(r){let t={};if(typeof r!="object"||r==null)return t;for(let[e,n]of Object.entries(r)){if(!As(e)){ls.diag.warn(`Invalid attribute key: ${e}`);continue}if(!ds(n)){ls.diag.warn(`Invalid attribute value set for key: ${e}`);continue}Array.isArray(n)?t[e]=n.slice():t[e]=n}return t}ft.sanitizeAttributes=PA;function As(r){return typeof r=="string"&&r.length>0}ft.isAttributeKey=As;function ds(r){return r==null?!0:Array.isArray(r)?CA(r):ms(r)}ft.isAttributeValue=ds;function CA(r){let t;for(let e of r)if(e!=null){if(!t){if(ms(e)){t=typeof e;continue}return!1}if(typeof e!==t)return!1}return!0}function ms(r){switch(typeof r){case"number":case"boolean":case"string":return!0}return!1}});var Hn=S(qe=>{"use strict";Object.defineProperty(qe,"__esModule",{value:!0});qe.loggingErrorHandler=void 0;var LA=(d(),b(c));function IA(){return r=>{LA.diag.error(xA(r))}}qe.loggingErrorHandler=IA;function xA(r){return typeof r=="string"?r:JSON.stringify(DA(r))}function DA(r){let t={},e=r;for(;e!==null;)Object.getOwnPropertyNames(e).forEach(n=>{if(t[n])return;let o=e[n];o&&(t[n]=String(o))}),e=Object.getPrototypeOf(e);return t}});var Rs=S(Ht=>{"use strict";Object.defineProperty(Ht,"__esModule",{value:!0});Ht.globalErrorHandler=Ht.setGlobalErrorHandler=void 0;var UA=Hn(),hs=(0,UA.loggingErrorHandler)();function bA(r){hs=r}Ht.setGlobalErrorHandler=bA;function yA(r){try{hs(r)}catch{}}Ht.globalErrorHandler=yA});var Os=S(it=>{"use strict";Object.defineProperty(it,"__esModule",{value:!0});it.getStringListFromEnv=it.getNumberFromEnv=it.getBooleanFromEnv=it.getStringFromEnv=void 0;function VA(r){}it.getStringFromEnv=VA;function vA(r){}it.getBooleanFromEnv=vA;function BA(r){}it.getNumberFromEnv=BA;function wA(r){}it.getStringListFromEnv=wA});var gs=S($e=>{"use strict";Object.defineProperty($e,"__esModule",{value:!0});$e._globalThis=void 0;$e._globalThis=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{}});var Ns=S(Xe=>{"use strict";Object.defineProperty(Xe,"__esModule",{value:!0});Xe.otperformance=void 0;Xe.otperformance=performance});var Ms=S(ze=>{"use strict";Object.defineProperty(ze,"__esModule",{value:!0});ze.VERSION=void 0;ze.VERSION="2.1.0"});function C(r){let t={},e=r.length;for(let n=0;n<e;n++){let o=r[n];o&&(t[String(o).toUpperCase().replace(/[-.]/g,"_")]=o)}return t}var Fn=F(()=>{});var Ps,Cs,Ls,Is,xs,Ds,Us,bs,ys,Vs,vs,Bs,ws,Gs,Hs,Fs,Ys,ks,Ks,js,Ws,qs,$s,Xs,zs,Qs,Js,Zs,ti,ei,ri,ni,oi,si,ii,ai,ci,_i,Ei,ui,Ti,Si,pi,li,Ai,di,mi,fi,hi,Ri,Oi,gi,Ni,Mi,Pi,Ci,Li,Ii,xi,Di,Ui,bi,yi,Vi,vi,Bi,wi,Gi,Hi,Fi,Yi,ki,Ki,ji,Wi,qi,$i,Xi,zi,Qi,Ji,Zi,ta,ea,ra,na,oa,sa,ia,aa,ca,_a,Ea,ua,Ta,Sa,pa,la,Aa,da,ma,fa,ha,Ra,Oa,ga,Na,Ma,Pa,Ca,La,Ia,xa,Da,Ua,ba,ya,Va,va,Ba,wa,Ga,Ha,Fa,Ya,ka,Ka,ja,GA,HA,FA,YA,kA,KA,jA,WA,qA,$A,XA,zA,QA,JA,ZA,td,ed,rd,nd,od,sd,id,ad,cd,_d,Ed,ud,Td,Sd,pd,ld,Ad,dd,md,fd,hd,Rd,Od,gd,Nd,Md,Pd,Cd,Ld,Id,xd,Dd,Ud,bd,yd,Vd,vd,Bd,wd,Gd,Hd,Fd,Yd,kd,Kd,jd,Wd,qd,$d,Xd,zd,Qd,Jd,Zd,tm,em,rm,nm,om,sm,im,am,cm,_m,Em,um,Tm,Sm,pm,lm,Am,dm,mm,fm,hm,Rm,Om,gm,Nm,Mm,Pm,Cm,Lm,Im,xm,Dm,Um,bm,ym,Vm,vm,Bm,wm,Gm,Hm,Fm,Ym,km,Km,jm,Wm,qm,$m,Xm,zm,Qm,Jm,Zm,tf,ef,rf,nf,of,sf,Wa,qa,$a,Xa,za,Qa,Ja,Za,tc,ec,rc,nc,oc,sc,ic,ac,cc,_c,Ec,uc,Tc,Sc,pc,lc,Ac,dc,mc,fc,hc,Rc,Oc,gc,Nc,Mc,Pc,Cc,Lc,Ic,xc,Dc,Uc,bc,yc,Vc,vc,Bc,wc,af,cf,_f,Ef,uf,Tf,Sf,pf,lf,Af,df,mf,ff,hf,Rf,Of,gf,Nf,Mf,Pf,Cf,Lf,If,xf,Df,Uf,bf,yf,Vf,vf,Bf,wf,Gf,Hf,Ff,Yf,kf,Kf,jf,Wf,qf,$f,Xf,zf,Qf,Jf,Zf,th,Gc,Hc,Fc,Yc,kc,Kc,jc,Wc,qc,$c,Xc,eh,rh,nh,oh,sh,ih,ah,ch,_h,Eh,uh,Th,zc,Qc,Jc,Zc,t_,Sh,ph,lh,Ah,dh,mh,e_,r_,n_,fh,hh,Rh,Oh,o_,s_,i_,a_,gh,Nh,Mh,Ph,Ch,c_,__,E_,u_,T_,S_,p_,Lh,Ih,xh,Dh,Uh,bh,yh,Vh,l_,A_,d_,m_,f_,vh,Bh,wh,Gh,Hh,Fh,h_,R_,O_,g_,N_,M_,P_,C_,L_,I_,x_,D_,U_,b_,y_,V_,v_,B_,w_,G_,H_,Yh,kh,Kh,jh,Wh,qh,$h,Xh,zh,Qh,Jh,Zh,tR,eR,rR,nR,oR,sR,iR,aR,cR,_R,F_,Y_,k_,K_,j_,ER,uR,TR,SR,pR,lR,W_,q_,AR,dR,mR,$_,X_,fR,hR,RR,z_,Q_,J_,Z_,tE,eE,rE,nE,oE,sE,iE,aE,cE,_E,EE,uE,TE,OR,gR,NR,MR,PR,CR,LR,IR,xR,DR,UR,bR,yR,VR,vR,BR,wR,GR,SE,pE,HR,FR,YR,lE=F(()=>{Fn();Ps="aws.lambda.invoked_arn",Cs="db.system",Ls="db.connection_string",Is="db.user",xs="db.jdbc.driver_classname",Ds="db.name",Us="db.statement",bs="db.operation",ys="db.mssql.instance_name",Vs="db.cassandra.keyspace",vs="db.cassandra.page_size",Bs="db.cassandra.consistency_level",ws="db.cassandra.table",Gs="db.cassandra.idempotence",Hs="db.cassandra.speculative_execution_count",Fs="db.cassandra.coordinator.id",Ys="db.cassandra.coordinator.dc",ks="db.hbase.namespace",Ks="db.redis.database_index",js="db.mongodb.collection",Ws="db.sql.table",qs="exception.type",$s="exception.message",Xs="exception.stacktrace",zs="exception.escaped",Qs="faas.trigger",Js="faas.execution",Zs="faas.document.collection",ti="faas.document.operation",ei="faas.document.time",ri="faas.document.name",ni="faas.time",oi="faas.cron",si="faas.coldstart",ii="faas.invoked_name",ai="faas.invoked_provider",ci="faas.invoked_region",_i="net.transport",Ei="net.peer.ip",ui="net.peer.port",Ti="net.peer.name",Si="net.host.ip",pi="net.host.port",li="net.host.name",Ai="net.host.connection.type",di="net.host.connection.subtype",mi="net.host.carrier.name",fi="net.host.carrier.mcc",hi="net.host.carrier.mnc",Ri="net.host.carrier.icc",Oi="peer.service",gi="enduser.id",Ni="enduser.role",Mi="enduser.scope",Pi="thread.id",Ci="thread.name",Li="code.function",Ii="code.namespace",xi="code.filepath",Di="code.lineno",Ui="http.method",bi="http.url",yi="http.target",Vi="http.host",vi="http.scheme",Bi="http.status_code",wi="http.flavor",Gi="http.user_agent",Hi="http.request_content_length",Fi="http.request_content_length_uncompressed",Yi="http.response_content_length",ki="http.response_content_length_uncompressed",Ki="http.server_name",ji="http.route",Wi="http.client_ip",qi="aws.dynamodb.table_names",$i="aws.dynamodb.consumed_capacity",Xi="aws.dynamodb.item_collection_metrics",zi="aws.dynamodb.provisioned_read_capacity",Qi="aws.dynamodb.provisioned_write_capacity",Ji="aws.dynamodb.consistent_read",Zi="aws.dynamodb.projection",ta="aws.dynamodb.limit",ea="aws.dynamodb.attributes_to_get",ra="aws.dynamodb.index_name",na="aws.dynamodb.select",oa="aws.dynamodb.global_secondary_indexes",sa="aws.dynamodb.local_secondary_indexes",ia="aws.dynamodb.exclusive_start_table",aa="aws.dynamodb.table_count",ca="aws.dynamodb.scan_forward",_a="aws.dynamodb.segment",Ea="aws.dynamodb.total_segments",ua="aws.dynamodb.count",Ta="aws.dynamodb.scanned_count",Sa="aws.dynamodb.attribute_definitions",pa="aws.dynamodb.global_secondary_index_updates",la="messaging.system",Aa="messaging.destination",da="messaging.destination_kind",ma="messaging.temp_destination",fa="messaging.protocol",ha="messaging.protocol_version",Ra="messaging.url",Oa="messaging.message_id",ga="messaging.conversation_id",Na="messaging.message_payload_size_bytes",Ma="messaging.message_payload_compressed_size_bytes",Pa="messaging.operation",Ca="messaging.consumer_id",La="messaging.rabbitmq.routing_key",Ia="messaging.kafka.message_key",xa="messaging.kafka.consumer_group",Da="messaging.kafka.client_id",Ua="messaging.kafka.partition",ba="messaging.kafka.tombstone",ya="rpc.system",Va="rpc.service",va="rpc.method",Ba="rpc.grpc.status_code",wa="rpc.jsonrpc.version",Ga="rpc.jsonrpc.request_id",Ha="rpc.jsonrpc.error_code",Fa="rpc.jsonrpc.error_message",Ya="message.type",ka="message.id",Ka="message.compressed_size",ja="message.uncompressed_size",GA=Ps,HA=Cs,FA=Ls,YA=Is,kA=xs,KA=Ds,jA=Us,WA=bs,qA=ys,$A=Vs,XA=vs,zA=Bs,QA=ws,JA=Gs,ZA=Hs,td=Fs,ed=Ys,rd=ks,nd=Ks,od=js,sd=Ws,id=qs,ad=$s,cd=Xs,_d=zs,Ed=Qs,ud=Js,Td=Zs,Sd=ti,pd=ei,ld=ri,Ad=ni,dd=oi,md=si,fd=ii,hd=ai,Rd=ci,Od=_i,gd=Ei,Nd=ui,Md=Ti,Pd=Si,Cd=pi,Ld=li,Id=Ai,xd=di,Dd=mi,Ud=fi,bd=hi,yd=Ri,Vd=Oi,vd=gi,Bd=Ni,wd=Mi,Gd=Pi,Hd=Ci,Fd=Li,Yd=Ii,kd=xi,Kd=Di,jd=Ui,Wd=bi,qd=yi,$d=Vi,Xd=vi,zd=Bi,Qd=wi,Jd=Gi,Zd=Hi,tm=Fi,em=Yi,rm=ki,nm=Ki,om=ji,sm=Wi,im=qi,am=$i,cm=Xi,_m=zi,Em=Qi,um=Ji,Tm=Zi,Sm=ta,pm=ea,lm=ra,Am=na,dm=oa,mm=sa,fm=ia,hm=aa,Rm=ca,Om=_a,gm=Ea,Nm=ua,Mm=Ta,Pm=Sa,Cm=pa,Lm=la,Im=Aa,xm=da,Dm=ma,Um=fa,bm=ha,ym=Ra,Vm=Oa,vm=ga,Bm=Na,wm=Ma,Gm=Pa,Hm=Ca,Fm=La,Ym=Ia,km=xa,Km=Da,jm=Ua,Wm=ba,qm=ya,$m=Va,Xm=va,zm=Ba,Qm=wa,Jm=Ga,Zm=Ha,tf=Fa,ef=Ya,rf=ka,nf=Ka,of=ja,sf=C([Ps,Cs,Ls,Is,xs,Ds,Us,bs,ys,Vs,vs,Bs,ws,Gs,Hs,Fs,Ys,ks,Ks,js,Ws,qs,$s,Xs,zs,Qs,Js,Zs,ti,ei,ri,ni,oi,si,ii,ai,ci,_i,Ei,ui,Ti,Si,pi,li,Ai,di,mi,fi,hi,Ri,Oi,gi,Ni,Mi,Pi,Ci,Li,Ii,xi,Di,Ui,bi,yi,Vi,vi,Bi,wi,Gi,Hi,Fi,Yi,ki,Ki,ji,Wi,qi,$i,Xi,zi,Qi,Ji,Zi,ta,ea,ra,na,oa,sa,ia,aa,ca,_a,Ea,ua,Ta,Sa,pa,la,Aa,da,ma,fa,ha,Ra,Oa,ga,Na,Ma,Pa,Ca,La,Ia,xa,Da,Ua,ba,ya,Va,va,Ba,wa,Ga,Ha,Fa,Ya,ka,Ka,ja]),Wa="other_sql",qa="mssql",$a="mysql",Xa="oracle",za="db2",Qa="postgresql",Ja="redshift",Za="hive",tc="cloudscape",ec="hsqldb",rc="progress",nc="maxdb",oc="hanadb",sc="ingres",ic="firstsql",ac="edb",cc="cache",_c="adabas",Ec="firebird",uc="derby",Tc="filemaker",Sc="informix",pc="instantdb",lc="interbase",Ac="mariadb",dc="netezza",mc="pervasive",fc="pointbase",hc="sqlite",Rc="sybase",Oc="teradata",gc="vertica",Nc="h2",Mc="coldfusion",Pc="cassandra",Cc="hbase",Lc="mongodb",Ic="redis",xc="couchbase",Dc="couchdb",Uc="cosmosdb",bc="dynamodb",yc="neo4j",Vc="geode",vc="elasticsearch",Bc="memcached",wc="cockroachdb",af=Wa,cf=qa,_f=$a,Ef=Xa,uf=za,Tf=Qa,Sf=Ja,pf=Za,lf=tc,Af=ec,df=rc,mf=nc,ff=oc,hf=sc,Rf=ic,Of=ac,gf=cc,Nf=_c,Mf=Ec,Pf=uc,Cf=Tc,Lf=Sc,If=pc,xf=lc,Df=Ac,Uf=dc,bf=mc,yf=fc,Vf=hc,vf=Rc,Bf=Oc,wf=gc,Gf=Nc,Hf=Mc,Ff=Pc,Yf=Cc,kf=Lc,Kf=Ic,jf=xc,Wf=Dc,qf=Uc,$f=bc,Xf=yc,zf=Vc,Qf=vc,Jf=Bc,Zf=wc,th=C([Wa,qa,$a,Xa,za,Qa,Ja,Za,tc,ec,rc,nc,oc,sc,ic,ac,cc,_c,Ec,uc,Tc,Sc,pc,lc,Ac,dc,mc,fc,hc,Rc,Oc,gc,Nc,Mc,Pc,Cc,Lc,Ic,xc,Dc,Uc,bc,yc,Vc,vc,Bc,wc]),Gc="all",Hc="each_quorum",Fc="quorum",Yc="local_quorum",kc="one",Kc="two",jc="three",Wc="local_one",qc="any",$c="serial",Xc="local_serial",eh=Gc,rh=Hc,nh=Fc,oh=Yc,sh=kc,ih=Kc,ah=jc,ch=Wc,_h=qc,Eh=$c,uh=Xc,Th=C([Gc,Hc,Fc,Yc,kc,Kc,jc,Wc,qc,$c,Xc]),zc="datasource",Qc="http",Jc="pubsub",Zc="timer",t_="other",Sh=zc,ph=Qc,lh=Jc,Ah=Zc,dh=t_,mh=C([zc,Qc,Jc,Zc,t_]),e_="insert",r_="edit",n_="delete",fh=e_,hh=r_,Rh=n_,Oh=C([e_,r_,n_]),o_="alibaba_cloud",s_="aws",i_="azure",a_="gcp",gh=o_,Nh=s_,Mh=i_,Ph=a_,Ch=C([o_,s_,i_,a_]),c_="ip_tcp",__="ip_udp",E_="ip",u_="unix",T_="pipe",S_="inproc",p_="other",Lh=c_,Ih=__,xh=E_,Dh=u_,Uh=T_,bh=S_,yh=p_,Vh=C([c_,__,E_,u_,T_,S_,p_]),l_="wifi",A_="wired",d_="cell",m_="unavailable",f_="unknown",vh=l_,Bh=A_,wh=d_,Gh=m_,Hh=f_,Fh=C([l_,A_,d_,m_,f_]),h_="gprs",R_="edge",O_="umts",g_="cdma",N_="evdo_0",M_="evdo_a",P_="cdma2000_1xrtt",C_="hsdpa",L_="hsupa",I_="hspa",x_="iden",D_="evdo_b",U_="lte",b_="ehrpd",y_="hspap",V_="gsm",v_="td_scdma",B_="iwlan",w_="nr",G_="nrnsa",H_="lte_ca",Yh=h_,kh=R_,Kh=O_,jh=g_,Wh=N_,qh=M_,$h=P_,Xh=C_,zh=L_,Qh=I_,Jh=x_,Zh=D_,tR=U_,eR=b_,rR=y_,nR=V_,oR=v_,sR=B_,iR=w_,aR=G_,cR=H_,_R=C([h_,R_,O_,g_,N_,M_,P_,C_,L_,I_,x_,D_,U_,b_,y_,V_,v_,B_,w_,G_,H_]),F_="1.0",Y_="1.1",k_="2.0",K_="SPDY",j_="QUIC",ER=F_,uR=Y_,TR=k_,SR=K_,pR=j_,lR={HTTP_1_0:F_,HTTP_1_1:Y_,HTTP_2_0:k_,SPDY:K_,QUIC:j_},W_="queue",q_="topic",AR=W_,dR=q_,mR=C([W_,q_]),$_="receive",X_="process",fR=$_,hR=X_,RR=C([$_,X_]),z_=0,Q_=1,J_=2,Z_=3,tE=4,eE=5,rE=6,nE=7,oE=8,sE=9,iE=10,aE=11,cE=12,_E=13,EE=14,uE=15,TE=16,OR=z_,gR=Q_,NR=J_,MR=Z_,PR=tE,CR=eE,LR=rE,IR=nE,xR=oE,DR=sE,UR=iE,bR=aE,yR=cE,VR=_E,vR=EE,BR=uE,wR=TE,GR={OK:z_,CANCELLED:Q_,UNKNOWN:J_,INVALID_ARGUMENT:Z_,DEADLINE_EXCEEDED:tE,NOT_FOUND:eE,ALREADY_EXISTS:rE,PERMISSION_DENIED:nE,RESOURCE_EXHAUSTED:oE,FAILED_PRECONDITION:sE,ABORTED:iE,OUT_OF_RANGE:aE,UNIMPLEMENTED:cE,INTERNAL:_E,UNAVAILABLE:EE,DATA_LOSS:uE,UNAUTHENTICATED:TE},SE="SENT",pE="RECEIVED",HR=SE,FR=pE,YR=C([SE,pE])});var AE=F(()=>{lE()});var dE,mE,fE,hE,RE,OE,gE,NE,ME,PE,CE,LE,IE,xE,DE,UE,bE,yE,VE,vE,BE,wE,GE,HE,FE,YE,kE,KE,jE,WE,qE,$E,XE,zE,QE,JE,ZE,tu,eu,ru,nu,ou,su,iu,au,cu,_u,Eu,uu,Tu,Su,pu,lu,Au,du,mu,fu,hu,Ru,Ou,gu,Nu,Mu,Pu,Cu,Lu,Iu,xu,Du,Uu,bu,yu,Vu,vu,Bu,wu,Gu,Hu,Fu,Yu,ku,kR,KR,jR,WR,qR,$R,XR,zR,QR,JR,ZR,tO,eO,rO,nO,oO,sO,iO,aO,cO,_O,EO,uO,TO,SO,pO,lO,AO,dO,mO,fO,hO,RO,OO,gO,NO,MO,PO,CO,LO,IO,xO,DO,UO,bO,yO,VO,vO,BO,wO,GO,HO,FO,YO,kO,KO,jO,WO,qO,$O,XO,zO,QO,JO,ZO,tg,eg,rg,ng,og,sg,ig,ag,cg,_g,Eg,ug,Tg,Sg,pg,lg,Ag,Ku,ju,Wu,qu,dg,mg,fg,hg,Rg,$u,Xu,zu,Qu,Ju,Zu,tT,eT,rT,nT,oT,sT,iT,aT,cT,_T,ET,Og,gg,Ng,Mg,Pg,Cg,Lg,Ig,xg,Dg,Ug,bg,yg,Vg,vg,Bg,wg,Gg,uT,TT,Hg,Fg,Yg,ST,pT,lT,AT,dT,mT,fT,kg,Kg,jg,Wg,qg,$g,Xg,zg,hT,RT,OT,gT,NT,MT,PT,CT,LT,IT,xT,Qg,Jg,Zg,tN,eN,rN,nN,oN,sN,iN,aN,cN,DT,UT,bT,yT,VT,vT,BT,wT,GT,HT,_N,EN,uN,TN,SN,pN,lN,AN,dN,mN,fN,FT=F(()=>{Fn();dE="cloud.provider",mE="cloud.account.id",fE="cloud.region",hE="cloud.availability_zone",RE="cloud.platform",OE="aws.ecs.container.arn",gE="aws.ecs.cluster.arn",NE="aws.ecs.launchtype",ME="aws.ecs.task.arn",PE="aws.ecs.task.family",CE="aws.ecs.task.revision",LE="aws.eks.cluster.arn",IE="aws.log.group.names",xE="aws.log.group.arns",DE="aws.log.stream.names",UE="aws.log.stream.arns",bE="container.name",yE="container.id",VE="container.runtime",vE="container.image.name",BE="container.image.tag",wE="deployment.environment",GE="device.id",HE="device.model.identifier",FE="device.model.name",YE="faas.name",kE="faas.id",KE="faas.version",jE="faas.instance",WE="faas.max_memory",qE="host.id",$E="host.name",XE="host.type",zE="host.arch",QE="host.image.name",JE="host.image.id",ZE="host.image.version",tu="k8s.cluster.name",eu="k8s.node.name",ru="k8s.node.uid",nu="k8s.namespace.name",ou="k8s.pod.uid",su="k8s.pod.name",iu="k8s.container.name",au="k8s.replicaset.uid",cu="k8s.replicaset.name",_u="k8s.deployment.uid",Eu="k8s.deployment.name",uu="k8s.statefulset.uid",Tu="k8s.statefulset.name",Su="k8s.daemonset.uid",pu="k8s.daemonset.name",lu="k8s.job.uid",Au="k8s.job.name",du="k8s.cronjob.uid",mu="k8s.cronjob.name",fu="os.type",hu="os.description",Ru="os.name",Ou="os.version",gu="process.pid",Nu="process.executable.name",Mu="process.executable.path",Pu="process.command",Cu="process.command_line",Lu="process.command_args",Iu="process.owner",xu="process.runtime.name",Du="process.runtime.version",Uu="process.runtime.description",bu="service.name",yu="service.namespace",Vu="service.instance.id",vu="service.version",Bu="telemetry.sdk.name",wu="telemetry.sdk.language",Gu="telemetry.sdk.version",Hu="telemetry.auto.version",Fu="webengine.name",Yu="webengine.version",ku="webengine.description",kR=dE,KR=mE,jR=fE,WR=hE,qR=RE,$R=OE,XR=gE,zR=NE,QR=ME,JR=PE,ZR=CE,tO=LE,eO=IE,rO=xE,nO=DE,oO=UE,sO=bE,iO=yE,aO=VE,cO=vE,_O=BE,EO=wE,uO=GE,TO=HE,SO=FE,pO=YE,lO=kE,AO=KE,dO=jE,mO=WE,fO=qE,hO=$E,RO=XE,OO=zE,gO=QE,NO=JE,MO=ZE,PO=tu,CO=eu,LO=ru,IO=nu,xO=ou,DO=su,UO=iu,bO=au,yO=cu,VO=_u,vO=Eu,BO=uu,wO=Tu,GO=Su,HO=pu,FO=lu,YO=Au,kO=du,KO=mu,jO=fu,WO=hu,qO=Ru,$O=Ou,XO=gu,zO=Nu,QO=Mu,JO=Pu,ZO=Cu,tg=Lu,eg=Iu,rg=xu,ng=Du,og=Uu,sg=bu,ig=yu,ag=Vu,cg=vu,_g=Bu,Eg=wu,ug=Gu,Tg=Hu,Sg=Fu,pg=Yu,lg=ku,Ag=C([dE,mE,fE,hE,RE,OE,gE,NE,ME,PE,CE,LE,IE,xE,DE,UE,bE,yE,VE,vE,BE,wE,GE,HE,FE,YE,kE,KE,jE,WE,qE,$E,XE,zE,QE,JE,ZE,tu,eu,ru,nu,ou,su,iu,au,cu,_u,Eu,uu,Tu,Su,pu,lu,Au,du,mu,fu,hu,Ru,Ou,gu,Nu,Mu,Pu,Cu,Lu,Iu,xu,Du,Uu,bu,yu,Vu,vu,Bu,wu,Gu,Hu,Fu,Yu,ku]),Ku="alibaba_cloud",ju="aws",Wu="azure",qu="gcp",dg=Ku,mg=ju,fg=Wu,hg=qu,Rg=C([Ku,ju,Wu,qu]),$u="alibaba_cloud_ecs",Xu="alibaba_cloud_fc",zu="aws_ec2",Qu="aws_ecs",Ju="aws_eks",Zu="aws_lambda",tT="aws_elastic_beanstalk",eT="azure_vm",rT="azure_container_instances",nT="azure_aks",oT="azure_functions",sT="azure_app_service",iT="gcp_compute_engine",aT="gcp_cloud_run",cT="gcp_kubernetes_engine",_T="gcp_cloud_functions",ET="gcp_app_engine",Og=$u,gg=Xu,Ng=zu,Mg=Qu,Pg=Ju,Cg=Zu,Lg=tT,Ig=eT,xg=rT,Dg=nT,Ug=oT,bg=sT,yg=iT,Vg=aT,vg=cT,Bg=_T,wg=ET,Gg=C([$u,Xu,zu,Qu,Ju,Zu,tT,eT,rT,nT,oT,sT,iT,aT,cT,_T,ET]),uT="ec2",TT="fargate",Hg=uT,Fg=TT,Yg=C([uT,TT]),ST="amd64",pT="arm32",lT="arm64",AT="ia64",dT="ppc32",mT="ppc64",fT="x86",kg=ST,Kg=pT,jg=lT,Wg=AT,qg=dT,$g=mT,Xg=fT,zg=C([ST,pT,lT,AT,dT,mT,fT]),hT="windows",RT="linux",OT="darwin",gT="freebsd",NT="netbsd",MT="openbsd",PT="dragonflybsd",CT="hpux",LT="aix",IT="solaris",xT="z_os",Qg=hT,Jg=RT,Zg=OT,tN=gT,eN=NT,rN=MT,nN=PT,oN=CT,sN=LT,iN=IT,aN=xT,cN=C([hT,RT,OT,gT,NT,MT,PT,CT,LT,IT,xT]),DT="cpp",UT="dotnet",bT="erlang",yT="go",VT="java",vT="nodejs",BT="php",wT="python",GT="ruby",HT="webjs",_N=DT,EN=UT,uN=bT,TN=yT,SN=VT,pN=vT,lN=BT,AN=wT,dN=GT,mN=HT,fN=C([DT,UT,bT,yT,VT,vT,BT,wT,GT,HT])});var YT=F(()=>{FT()});var hN,RN,ON,gN,NN,MN,PN,CN,LN,IN,xN,DN,UN,bN,yN,VN,vN,BN,wN,GN,HN,FN,YN,kN,KN,jN,WN,qN,$N,XN,zN,QN,JN,ZN,tM,eM,rM,nM,oM,sM,iM,aM,cM,_M,EM,uM,TM,pe,Yn,le,SM,pM,lM,AM,dM,mM,fM,hM,RM,OM,gM,NM,MM,PM,CM,LM,IM,xM,DM,UM,bM,yM,VM,vM,BM,wM,GM,HM,FM,YM,kM,KM,jM,WM,qM,$M,XM,zM,QM,JM,ZM,tP,eP,rP,nP,oP,sP,iP,aP,cP,_P,EP,uP,TP,Ae,SP,pP,lP,AP,dP,mP,fP,hP,RP,Qe,OP,gP,NP,MP,PP,CP,LP,IP,xP,DP,UP,bP,Je,Ze,yP,VP,vP,BP,wP,GP,kT=F(()=>{hN="aspnetcore.diagnostics.exception.result",RN="aborted",ON="handled",gN="skipped",NN="unhandled",MN="aspnetcore.diagnostics.handler.type",PN="aspnetcore.rate_limiting.policy",CN="aspnetcore.rate_limiting.result",LN="acquired",IN="endpoint_limiter",xN="global_limiter",DN="request_canceled",UN="aspnetcore.request.is_unhandled",bN="aspnetcore.routing.is_fallback",yN="aspnetcore.routing.match_status",VN="failure",vN="success",BN="aspnetcore.user.is_authenticated",wN="client.address",GN="client.port",HN="code.column.number",FN="code.file.path",YN="code.function.name",kN="code.line.number",KN="code.stacktrace",jN="db.collection.name",WN="db.namespace",qN="db.operation.batch.size",$N="db.operation.name",XN="db.query.summary",zN="db.query.text",QN="db.response.status_code",JN="db.stored_procedure.name",ZN="db.system.name",tM="mariadb",eM="microsoft.sql_server",rM="mysql",nM="postgresql",oM="dotnet.gc.heap.generation",sM="gen0",iM="gen1",aM="gen2",cM="loh",_M="poh",EM="error.type",uM="_OTHER",TM="exception.escaped",pe="exception.message",Yn="exception.stacktrace",le="exception.type",SM=r=>`http.request.header.${r}`,pM="http.request.method",lM="_OTHER",AM="CONNECT",dM="DELETE",mM="GET",fM="HEAD",hM="OPTIONS",RM="PATCH",OM="POST",gM="PUT",NM="TRACE",MM="http.request.method_original",PM="http.request.resend_count",CM=r=>`http.response.header.${r}`,LM="http.response.status_code",IM="http.route",xM="jvm.gc.action",DM="jvm.gc.name",UM="jvm.memory.pool.name",bM="jvm.memory.type",yM="heap",VM="non_heap",vM="jvm.thread.daemon",BM="jvm.thread.state",wM="blocked",GM="new",HM="runnable",FM="terminated",YM="timed_waiting",kM="waiting",KM="network.local.address",jM="network.local.port",WM="network.peer.address",qM="network.peer.port",$M="network.protocol.name",XM="network.protocol.version",zM="network.transport",QM="pipe",JM="quic",ZM="tcp",tP="udp",eP="unix",rP="network.type",nP="ipv4",oP="ipv6",sP="otel.scope.name",iP="otel.scope.version",aP="otel.status_code",cP="ERROR",_P="OK",EP="otel.status_description",uP="server.address",TP="server.port",Ae="service.name",SP="service.version",pP="signalr.connection.status",lP="app_shutdown",AP="normal_closure",dP="timeout",mP="signalr.transport",fP="long_polling",hP="server_sent_events",RP="web_sockets",Qe="telemetry.sdk.language",OP="cpp",gP="dotnet",NP="erlang",MP="go",PP="java",CP="nodejs",LP="php",IP="python",xP="ruby",DP="rust",UP="swift",bP="webjs",Je="telemetry.sdk.name",Ze="telemetry.sdk.version",yP="url.fragment",VP="url.full",vP="url.path",BP="url.query",wP="url.scheme",GP="user_agent.original"});var HP,FP,YP,kP,KP,jP,WP,qP,$P,XP,zP,QP,JP,ZP,tC,eC,rC,nC,oC,sC,iC,aC,cC,_C,EC,uC,TC,SC,pC,lC,AC,dC,mC,fC,hC,RC,OC,gC,NC,MC,PC,CC,LC,IC,xC,DC,UC,bC,yC,VC,vC,KT=F(()=>{HP="aspnetcore.diagnostics.exceptions",FP="aspnetcore.rate_limiting.active_request_leases",YP="aspnetcore.rate_limiting.queued_requests",kP="aspnetcore.rate_limiting.request.time_in_queue",KP="aspnetcore.rate_limiting.request_lease.duration",jP="aspnetcore.rate_limiting.requests",WP="aspnetcore.routing.match_attempts",qP="db.client.operation.duration",$P="dotnet.assembly.count",XP="dotnet.exceptions",zP="dotnet.gc.collections",QP="dotnet.gc.heap.total_allocated",JP="dotnet.gc.last_collection.heap.fragmentation.size",ZP="dotnet.gc.last_collection.heap.size",tC="dotnet.gc.last_collection.memory.committed_size",eC="dotnet.gc.pause.time",rC="dotnet.jit.compilation.time",nC="dotnet.jit.compiled_il.size",oC="dotnet.jit.compiled_methods",sC="dotnet.monitor.lock_contentions",iC="dotnet.process.cpu.count",aC="dotnet.process.cpu.time",cC="dotnet.process.memory.working_set",_C="dotnet.thread_pool.queue.length",EC="dotnet.thread_pool.thread.count",uC="dotnet.thread_pool.work_item.count",TC="dotnet.timer.count",SC="http.client.request.duration",pC="http.server.request.duration",lC="jvm.class.count",AC="jvm.class.loaded",dC="jvm.class.unloaded",mC="jvm.cpu.count",fC="jvm.cpu.recent_utilization",hC="jvm.cpu.time",RC="jvm.gc.duration",OC="jvm.memory.committed",gC="jvm.memory.limit",NC="jvm.memory.used",MC="jvm.memory.used_after_last_gc",PC="jvm.thread.count",CC="kestrel.active_connections",LC="kestrel.active_tls_handshakes",IC="kestrel.connection.duration",xC="kestrel.queued_connections",DC="kestrel.queued_requests",UC="kestrel.rejected_connections",bC="kestrel.tls_handshake.duration",yC="kestrel.upgraded_connections",VC="signalr.server.active_connections",vC="signalr.server.connection.duration"});var BC,jT=F(()=>{BC="exception"});var WT={};AA(WT,{ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_ABORTED:()=>RN,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_HANDLED:()=>ON,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_SKIPPED:()=>gN,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_UNHANDLED:()=>NN,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ACQUIRED:()=>LN,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ENDPOINT_LIMITER:()=>IN,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_GLOBAL_LIMITER:()=>xN,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_REQUEST_CANCELED:()=>DN,ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_FAILURE:()=>VN,ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_SUCCESS:()=>vN,ATTR_ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT:()=>hN,ATTR_ASPNETCORE_DIAGNOSTICS_HANDLER_TYPE:()=>MN,ATTR_ASPNETCORE_RATE_LIMITING_POLICY:()=>PN,ATTR_ASPNETCORE_RATE_LIMITING_RESULT:()=>CN,ATTR_ASPNETCORE_REQUEST_IS_UNHANDLED:()=>UN,ATTR_ASPNETCORE_ROUTING_IS_FALLBACK:()=>bN,ATTR_ASPNETCORE_ROUTING_MATCH_STATUS:()=>yN,ATTR_ASPNETCORE_USER_IS_AUTHENTICATED:()=>BN,ATTR_CLIENT_ADDRESS:()=>wN,ATTR_CLIENT_PORT:()=>GN,ATTR_CODE_COLUMN_NUMBER:()=>HN,ATTR_CODE_FILE_PATH:()=>FN,ATTR_CODE_FUNCTION_NAME:()=>YN,ATTR_CODE_LINE_NUMBER:()=>kN,ATTR_CODE_STACKTRACE:()=>KN,ATTR_DB_COLLECTION_NAME:()=>jN,ATTR_DB_NAMESPACE:()=>WN,ATTR_DB_OPERATION_BATCH_SIZE:()=>qN,ATTR_DB_OPERATION_NAME:()=>$N,ATTR_DB_QUERY_SUMMARY:()=>XN,ATTR_DB_QUERY_TEXT:()=>zN,ATTR_DB_RESPONSE_STATUS_CODE:()=>QN,ATTR_DB_STORED_PROCEDURE_NAME:()=>JN,ATTR_DB_SYSTEM_NAME:()=>ZN,ATTR_DOTNET_GC_HEAP_GENERATION:()=>oM,ATTR_ERROR_TYPE:()=>EM,ATTR_EXCEPTION_ESCAPED:()=>TM,ATTR_EXCEPTION_MESSAGE:()=>pe,ATTR_EXCEPTION_STACKTRACE:()=>Yn,ATTR_EXCEPTION_TYPE:()=>le,ATTR_HTTP_REQUEST_HEADER:()=>SM,ATTR_HTTP_REQUEST_METHOD:()=>pM,ATTR_HTTP_REQUEST_METHOD_ORIGINAL:()=>MM,ATTR_HTTP_REQUEST_RESEND_COUNT:()=>PM,ATTR_HTTP_RESPONSE_HEADER:()=>CM,ATTR_HTTP_RESPONSE_STATUS_CODE:()=>LM,ATTR_HTTP_ROUTE:()=>IM,ATTR_JVM_GC_ACTION:()=>xM,ATTR_JVM_GC_NAME:()=>DM,ATTR_JVM_MEMORY_POOL_NAME:()=>UM,ATTR_JVM_MEMORY_TYPE:()=>bM,ATTR_JVM_THREAD_DAEMON:()=>vM,ATTR_JVM_THREAD_STATE:()=>BM,ATTR_NETWORK_LOCAL_ADDRESS:()=>KM,ATTR_NETWORK_LOCAL_PORT:()=>jM,ATTR_NETWORK_PEER_ADDRESS:()=>WM,ATTR_NETWORK_PEER_PORT:()=>qM,ATTR_NETWORK_PROTOCOL_NAME:()=>$M,ATTR_NETWORK_PROTOCOL_VERSION:()=>XM,ATTR_NETWORK_TRANSPORT:()=>zM,ATTR_NETWORK_TYPE:()=>rP,ATTR_OTEL_SCOPE_NAME:()=>sP,ATTR_OTEL_SCOPE_VERSION:()=>iP,ATTR_OTEL_STATUS_CODE:()=>aP,ATTR_OTEL_STATUS_DESCRIPTION:()=>EP,ATTR_SERVER_ADDRESS:()=>uP,ATTR_SERVER_PORT:()=>TP,ATTR_SERVICE_NAME:()=>Ae,ATTR_SERVICE_VERSION:()=>SP,ATTR_SIGNALR_CONNECTION_STATUS:()=>pP,ATTR_SIGNALR_TRANSPORT:()=>mP,ATTR_TELEMETRY_SDK_LANGUAGE:()=>Qe,ATTR_TELEMETRY_SDK_NAME:()=>Je,ATTR_TELEMETRY_SDK_VERSION:()=>Ze,ATTR_URL_FRAGMENT:()=>yP,ATTR_URL_FULL:()=>VP,ATTR_URL_PATH:()=>vP,ATTR_URL_QUERY:()=>BP,ATTR_URL_SCHEME:()=>wP,ATTR_USER_AGENT_ORIGINAL:()=>GP,AWSECSLAUNCHTYPEVALUES_EC2:()=>Hg,AWSECSLAUNCHTYPEVALUES_FARGATE:()=>Fg,AwsEcsLaunchtypeValues:()=>Yg,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_ECS:()=>Og,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_FC:()=>gg,CLOUDPLATFORMVALUES_AWS_EC2:()=>Ng,CLOUDPLATFORMVALUES_AWS_ECS:()=>Mg,CLOUDPLATFORMVALUES_AWS_EKS:()=>Pg,CLOUDPLATFORMVALUES_AWS_ELASTIC_BEANSTALK:()=>Lg,CLOUDPLATFORMVALUES_AWS_LAMBDA:()=>Cg,CLOUDPLATFORMVALUES_AZURE_AKS:()=>Dg,CLOUDPLATFORMVALUES_AZURE_APP_SERVICE:()=>bg,CLOUDPLATFORMVALUES_AZURE_CONTAINER_INSTANCES:()=>xg,CLOUDPLATFORMVALUES_AZURE_FUNCTIONS:()=>Ug,CLOUDPLATFORMVALUES_AZURE_VM:()=>Ig,CLOUDPLATFORMVALUES_GCP_APP_ENGINE:()=>wg,CLOUDPLATFORMVALUES_GCP_CLOUD_FUNCTIONS:()=>Bg,CLOUDPLATFORMVALUES_GCP_CLOUD_RUN:()=>Vg,CLOUDPLATFORMVALUES_GCP_COMPUTE_ENGINE:()=>yg,CLOUDPLATFORMVALUES_GCP_KUBERNETES_ENGINE:()=>vg,CLOUDPROVIDERVALUES_ALIBABA_CLOUD:()=>dg,CLOUDPROVIDERVALUES_AWS:()=>mg,CLOUDPROVIDERVALUES_AZURE:()=>fg,CLOUDPROVIDERVALUES_GCP:()=>hg,CloudPlatformValues:()=>Gg,CloudProviderValues:()=>Rg,DBCASSANDRACONSISTENCYLEVELVALUES_ALL:()=>eh,DBCASSANDRACONSISTENCYLEVELVALUES_ANY:()=>_h,DBCASSANDRACONSISTENCYLEVELVALUES_EACH_QUORUM:()=>rh,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_ONE:()=>ch,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_QUORUM:()=>oh,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_SERIAL:()=>uh,DBCASSANDRACONSISTENCYLEVELVALUES_ONE:()=>sh,DBCASSANDRACONSISTENCYLEVELVALUES_QUORUM:()=>nh,DBCASSANDRACONSISTENCYLEVELVALUES_SERIAL:()=>Eh,DBCASSANDRACONSISTENCYLEVELVALUES_THREE:()=>ah,DBCASSANDRACONSISTENCYLEVELVALUES_TWO:()=>ih,DBSYSTEMVALUES_ADABAS:()=>Nf,DBSYSTEMVALUES_CACHE:()=>gf,DBSYSTEMVALUES_CASSANDRA:()=>Ff,DBSYSTEMVALUES_CLOUDSCAPE:()=>lf,DBSYSTEMVALUES_COCKROACHDB:()=>Zf,DBSYSTEMVALUES_COLDFUSION:()=>Hf,DBSYSTEMVALUES_COSMOSDB:()=>qf,DBSYSTEMVALUES_COUCHBASE:()=>jf,DBSYSTEMVALUES_COUCHDB:()=>Wf,DBSYSTEMVALUES_DB2:()=>uf,DBSYSTEMVALUES_DERBY:()=>Pf,DBSYSTEMVALUES_DYNAMODB:()=>$f,DBSYSTEMVALUES_EDB:()=>Of,DBSYSTEMVALUES_ELASTICSEARCH:()=>Qf,DBSYSTEMVALUES_FILEMAKER:()=>Cf,DBSYSTEMVALUES_FIREBIRD:()=>Mf,DBSYSTEMVALUES_FIRSTSQL:()=>Rf,DBSYSTEMVALUES_GEODE:()=>zf,DBSYSTEMVALUES_H2:()=>Gf,DBSYSTEMVALUES_HANADB:()=>ff,DBSYSTEMVALUES_HBASE:()=>Yf,DBSYSTEMVALUES_HIVE:()=>pf,DBSYSTEMVALUES_HSQLDB:()=>Af,DBSYSTEMVALUES_INFORMIX:()=>Lf,DBSYSTEMVALUES_INGRES:()=>hf,DBSYSTEMVALUES_INSTANTDB:()=>If,DBSYSTEMVALUES_INTERBASE:()=>xf,DBSYSTEMVALUES_MARIADB:()=>Df,DBSYSTEMVALUES_MAXDB:()=>mf,DBSYSTEMVALUES_MEMCACHED:()=>Jf,DBSYSTEMVALUES_MONGODB:()=>kf,DBSYSTEMVALUES_MSSQL:()=>cf,DBSYSTEMVALUES_MYSQL:()=>_f,DBSYSTEMVALUES_NEO4J:()=>Xf,DBSYSTEMVALUES_NETEZZA:()=>Uf,DBSYSTEMVALUES_ORACLE:()=>Ef,DBSYSTEMVALUES_OTHER_SQL:()=>af,DBSYSTEMVALUES_PERVASIVE:()=>bf,DBSYSTEMVALUES_POINTBASE:()=>yf,DBSYSTEMVALUES_POSTGRESQL:()=>Tf,DBSYSTEMVALUES_PROGRESS:()=>df,DBSYSTEMVALUES_REDIS:()=>Kf,DBSYSTEMVALUES_REDSHIFT:()=>Sf,DBSYSTEMVALUES_SQLITE:()=>Vf,DBSYSTEMVALUES_SYBASE:()=>vf,DBSYSTEMVALUES_TERADATA:()=>Bf,DBSYSTEMVALUES_VERTICA:()=>wf,DB_SYSTEM_NAME_VALUE_MARIADB:()=>tM,DB_SYSTEM_NAME_VALUE_MICROSOFT_SQL_SERVER:()=>eM,DB_SYSTEM_NAME_VALUE_MYSQL:()=>rM,DB_SYSTEM_NAME_VALUE_POSTGRESQL:()=>nM,DOTNET_GC_HEAP_GENERATION_VALUE_GEN0:()=>sM,DOTNET_GC_HEAP_GENERATION_VALUE_GEN1:()=>iM,DOTNET_GC_HEAP_GENERATION_VALUE_GEN2:()=>aM,DOTNET_GC_HEAP_GENERATION_VALUE_LOH:()=>cM,DOTNET_GC_HEAP_GENERATION_VALUE_POH:()=>_M,DbCassandraConsistencyLevelValues:()=>Th,DbSystemValues:()=>th,ERROR_TYPE_VALUE_OTHER:()=>uM,EVENT_EXCEPTION:()=>BC,FAASDOCUMENTOPERATIONVALUES_DELETE:()=>Rh,FAASDOCUMENTOPERATIONVALUES_EDIT:()=>hh,FAASDOCUMENTOPERATIONVALUES_INSERT:()=>fh,FAASINVOKEDPROVIDERVALUES_ALIBABA_CLOUD:()=>gh,FAASINVOKEDPROVIDERVALUES_AWS:()=>Nh,FAASINVOKEDPROVIDERVALUES_AZURE:()=>Mh,FAASINVOKEDPROVIDERVALUES_GCP:()=>Ph,FAASTRIGGERVALUES_DATASOURCE:()=>Sh,FAASTRIGGERVALUES_HTTP:()=>ph,FAASTRIGGERVALUES_OTHER:()=>dh,FAASTRIGGERVALUES_PUBSUB:()=>lh,FAASTRIGGERVALUES_TIMER:()=>Ah,FaasDocumentOperationValues:()=>Oh,FaasInvokedProviderValues:()=>Ch,FaasTriggerValues:()=>mh,HOSTARCHVALUES_AMD64:()=>kg,HOSTARCHVALUES_ARM32:()=>Kg,HOSTARCHVALUES_ARM64:()=>jg,HOSTARCHVALUES_IA64:()=>Wg,HOSTARCHVALUES_PPC32:()=>qg,HOSTARCHVALUES_PPC64:()=>$g,HOSTARCHVALUES_X86:()=>Xg,HTTPFLAVORVALUES_HTTP_1_0:()=>ER,HTTPFLAVORVALUES_HTTP_1_1:()=>uR,HTTPFLAVORVALUES_HTTP_2_0:()=>TR,HTTPFLAVORVALUES_QUIC:()=>pR,HTTPFLAVORVALUES_SPDY:()=>SR,HTTP_REQUEST_METHOD_VALUE_CONNECT:()=>AM,HTTP_REQUEST_METHOD_VALUE_DELETE:()=>dM,HTTP_REQUEST_METHOD_VALUE_GET:()=>mM,HTTP_REQUEST_METHOD_VALUE_HEAD:()=>fM,HTTP_REQUEST_METHOD_VALUE_OPTIONS:()=>hM,HTTP_REQUEST_METHOD_VALUE_OTHER:()=>lM,HTTP_REQUEST_METHOD_VALUE_PATCH:()=>RM,HTTP_REQUEST_METHOD_VALUE_POST:()=>OM,HTTP_REQUEST_METHOD_VALUE_PUT:()=>gM,HTTP_REQUEST_METHOD_VALUE_TRACE:()=>NM,HostArchValues:()=>zg,HttpFlavorValues:()=>lR,JVM_MEMORY_TYPE_VALUE_HEAP:()=>yM,JVM_MEMORY_TYPE_VALUE_NON_HEAP:()=>VM,JVM_THREAD_STATE_VALUE_BLOCKED:()=>wM,JVM_THREAD_STATE_VALUE_NEW:()=>GM,JVM_THREAD_STATE_VALUE_RUNNABLE:()=>HM,JVM_THREAD_STATE_VALUE_TERMINATED:()=>FM,JVM_THREAD_STATE_VALUE_TIMED_WAITING:()=>YM,JVM_THREAD_STATE_VALUE_WAITING:()=>kM,MESSAGETYPEVALUES_RECEIVED:()=>FR,MESSAGETYPEVALUES_SENT:()=>HR,MESSAGINGDESTINATIONKINDVALUES_QUEUE:()=>AR,MESSAGINGDESTINATIONKINDVALUES_TOPIC:()=>dR,MESSAGINGOPERATIONVALUES_PROCESS:()=>hR,MESSAGINGOPERATIONVALUES_RECEIVE:()=>fR,METRIC_ASPNETCORE_DIAGNOSTICS_EXCEPTIONS:()=>HP,METRIC_ASPNETCORE_RATE_LIMITING_ACTIVE_REQUEST_LEASES:()=>FP,METRIC_ASPNETCORE_RATE_LIMITING_QUEUED_REQUESTS:()=>YP,METRIC_ASPNETCORE_RATE_LIMITING_REQUESTS:()=>jP,METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_LEASE_DURATION:()=>KP,METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_TIME_IN_QUEUE:()=>kP,METRIC_ASPNETCORE_ROUTING_MATCH_ATTEMPTS:()=>WP,METRIC_DB_CLIENT_OPERATION_DURATION:()=>qP,METRIC_DOTNET_ASSEMBLY_COUNT:()=>$P,METRIC_DOTNET_EXCEPTIONS:()=>XP,METRIC_DOTNET_GC_COLLECTIONS:()=>zP,METRIC_DOTNET_GC_HEAP_TOTAL_ALLOCATED:()=>QP,METRIC_DOTNET_GC_LAST_COLLECTION_HEAP_FRAGMENTATION_SIZE:()=>JP,METRIC_DOTNET_GC_LAST_COLLECTION_HEAP_SIZE:()=>ZP,METRIC_DOTNET_GC_LAST_COLLECTION_MEMORY_COMMITTED_SIZE:()=>tC,METRIC_DOTNET_GC_PAUSE_TIME:()=>eC,METRIC_DOTNET_JIT_COMPILATION_TIME:()=>rC,METRIC_DOTNET_JIT_COMPILED_IL_SIZE:()=>nC,METRIC_DOTNET_JIT_COMPILED_METHODS:()=>oC,METRIC_DOTNET_MONITOR_LOCK_CONTENTIONS:()=>sC,METRIC_DOTNET_PROCESS_CPU_COUNT:()=>iC,METRIC_DOTNET_PROCESS_CPU_TIME:()=>aC,METRIC_DOTNET_PROCESS_MEMORY_WORKING_SET:()=>cC,METRIC_DOTNET_THREAD_POOL_QUEUE_LENGTH:()=>_C,METRIC_DOTNET_THREAD_POOL_THREAD_COUNT:()=>EC,METRIC_DOTNET_THREAD_POOL_WORK_ITEM_COUNT:()=>uC,METRIC_DOTNET_TIMER_COUNT:()=>TC,METRIC_HTTP_CLIENT_REQUEST_DURATION:()=>SC,METRIC_HTTP_SERVER_REQUEST_DURATION:()=>pC,METRIC_JVM_CLASS_COUNT:()=>lC,METRIC_JVM_CLASS_LOADED:()=>AC,METRIC_JVM_CLASS_UNLOADED:()=>dC,METRIC_JVM_CPU_COUNT:()=>mC,METRIC_JVM_CPU_RECENT_UTILIZATION:()=>fC,METRIC_JVM_CPU_TIME:()=>hC,METRIC_JVM_GC_DURATION:()=>RC,METRIC_JVM_MEMORY_COMMITTED:()=>OC,METRIC_JVM_MEMORY_LIMIT:()=>gC,METRIC_JVM_MEMORY_USED:()=>NC,METRIC_JVM_MEMORY_USED_AFTER_LAST_GC:()=>MC,METRIC_JVM_THREAD_COUNT:()=>PC,METRIC_KESTREL_ACTIVE_CONNECTIONS:()=>CC,METRIC_KESTREL_ACTIVE_TLS_HANDSHAKES:()=>LC,METRIC_KESTREL_CONNECTION_DURATION:()=>IC,METRIC_KESTREL_QUEUED_CONNECTIONS:()=>xC,METRIC_KESTREL_QUEUED_REQUESTS:()=>DC,METRIC_KESTREL_REJECTED_CONNECTIONS:()=>UC,METRIC_KESTREL_TLS_HANDSHAKE_DURATION:()=>bC,METRIC_KESTREL_UPGRADED_CONNECTIONS:()=>yC,METRIC_SIGNALR_SERVER_ACTIVE_CONNECTIONS:()=>VC,METRIC_SIGNALR_SERVER_CONNECTION_DURATION:()=>vC,MessageTypeValues:()=>YR,MessagingDestinationKindValues:()=>mR,MessagingOperationValues:()=>RR,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA:()=>jh,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA2000_1XRTT:()=>$h,NETHOSTCONNECTIONSUBTYPEVALUES_EDGE:()=>kh,NETHOSTCONNECTIONSUBTYPEVALUES_EHRPD:()=>eR,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_0:()=>Wh,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_A:()=>qh,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_B:()=>Zh,NETHOSTCONNECTIONSUBTYPEVALUES_GPRS:()=>Yh,NETHOSTCONNECTIONSUBTYPEVALUES_GSM:()=>nR,NETHOSTCONNECTIONSUBTYPEVALUES_HSDPA:()=>Xh,NETHOSTCONNECTIONSUBTYPEVALUES_HSPA:()=>Qh,NETHOSTCONNECTIONSUBTYPEVALUES_HSPAP:()=>rR,NETHOSTCONNECTIONSUBTYPEVALUES_HSUPA:()=>zh,NETHOSTCONNECTIONSUBTYPEVALUES_IDEN:()=>Jh,NETHOSTCONNECTIONSUBTYPEVALUES_IWLAN:()=>sR,NETHOSTCONNECTIONSUBTYPEVALUES_LTE:()=>tR,NETHOSTCONNECTIONSUBTYPEVALUES_LTE_CA:()=>cR,NETHOSTCONNECTIONSUBTYPEVALUES_NR:()=>iR,NETHOSTCONNECTIONSUBTYPEVALUES_NRNSA:()=>aR,NETHOSTCONNECTIONSUBTYPEVALUES_TD_SCDMA:()=>oR,NETHOSTCONNECTIONSUBTYPEVALUES_UMTS:()=>Kh,NETHOSTCONNECTIONTYPEVALUES_CELL:()=>wh,NETHOSTCONNECTIONTYPEVALUES_UNAVAILABLE:()=>Gh,NETHOSTCONNECTIONTYPEVALUES_UNKNOWN:()=>Hh,NETHOSTCONNECTIONTYPEVALUES_WIFI:()=>vh,NETHOSTCONNECTIONTYPEVALUES_WIRED:()=>Bh,NETTRANSPORTVALUES_INPROC:()=>bh,NETTRANSPORTVALUES_IP:()=>xh,NETTRANSPORTVALUES_IP_TCP:()=>Lh,NETTRANSPORTVALUES_IP_UDP:()=>Ih,NETTRANSPORTVALUES_OTHER:()=>yh,NETTRANSPORTVALUES_PIPE:()=>Uh,NETTRANSPORTVALUES_UNIX:()=>Dh,NETWORK_TRANSPORT_VALUE_PIPE:()=>QM,NETWORK_TRANSPORT_VALUE_QUIC:()=>JM,NETWORK_TRANSPORT_VALUE_TCP:()=>ZM,NETWORK_TRANSPORT_VALUE_UDP:()=>tP,NETWORK_TRANSPORT_VALUE_UNIX:()=>eP,NETWORK_TYPE_VALUE_IPV4:()=>nP,NETWORK_TYPE_VALUE_IPV6:()=>oP,NetHostConnectionSubtypeValues:()=>_R,NetHostConnectionTypeValues:()=>Fh,NetTransportValues:()=>Vh,OSTYPEVALUES_AIX:()=>sN,OSTYPEVALUES_DARWIN:()=>Zg,OSTYPEVALUES_DRAGONFLYBSD:()=>nN,OSTYPEVALUES_FREEBSD:()=>tN,OSTYPEVALUES_HPUX:()=>oN,OSTYPEVALUES_LINUX:()=>Jg,OSTYPEVALUES_NETBSD:()=>eN,OSTYPEVALUES_OPENBSD:()=>rN,OSTYPEVALUES_SOLARIS:()=>iN,OSTYPEVALUES_WINDOWS:()=>Qg,OSTYPEVALUES_Z_OS:()=>aN,OTEL_STATUS_CODE_VALUE_ERROR:()=>cP,OTEL_STATUS_CODE_VALUE_OK:()=>_P,OsTypeValues:()=>cN,RPCGRPCSTATUSCODEVALUES_ABORTED:()=>UR,RPCGRPCSTATUSCODEVALUES_ALREADY_EXISTS:()=>LR,RPCGRPCSTATUSCODEVALUES_CANCELLED:()=>gR,RPCGRPCSTATUSCODEVALUES_DATA_LOSS:()=>BR,RPCGRPCSTATUSCODEVALUES_DEADLINE_EXCEEDED:()=>PR,RPCGRPCSTATUSCODEVALUES_FAILED_PRECONDITION:()=>DR,RPCGRPCSTATUSCODEVALUES_INTERNAL:()=>VR,RPCGRPCSTATUSCODEVALUES_INVALID_ARGUMENT:()=>MR,RPCGRPCSTATUSCODEVALUES_NOT_FOUND:()=>CR,RPCGRPCSTATUSCODEVALUES_OK:()=>OR,RPCGRPCSTATUSCODEVALUES_OUT_OF_RANGE:()=>bR,RPCGRPCSTATUSCODEVALUES_PERMISSION_DENIED:()=>IR,RPCGRPCSTATUSCODEVALUES_RESOURCE_EXHAUSTED:()=>xR,RPCGRPCSTATUSCODEVALUES_UNAUTHENTICATED:()=>wR,RPCGRPCSTATUSCODEVALUES_UNAVAILABLE:()=>vR,RPCGRPCSTATUSCODEVALUES_UNIMPLEMENTED:()=>yR,RPCGRPCSTATUSCODEVALUES_UNKNOWN:()=>NR,RpcGrpcStatusCodeValues:()=>GR,SEMATTRS_AWS_DYNAMODB_ATTRIBUTES_TO_GET:()=>pm,SEMATTRS_AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS:()=>Pm,SEMATTRS_AWS_DYNAMODB_CONSISTENT_READ:()=>um,SEMATTRS_AWS_DYNAMODB_CONSUMED_CAPACITY:()=>am,SEMATTRS_AWS_DYNAMODB_COUNT:()=>Nm,SEMATTRS_AWS_DYNAMODB_EXCLUSIVE_START_TABLE:()=>fm,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES:()=>dm,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES:()=>Cm,SEMATTRS_AWS_DYNAMODB_INDEX_NAME:()=>lm,SEMATTRS_AWS_DYNAMODB_ITEM_COLLECTION_METRICS:()=>cm,SEMATTRS_AWS_DYNAMODB_LIMIT:()=>Sm,SEMATTRS_AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES:()=>mm,SEMATTRS_AWS_DYNAMODB_PROJECTION:()=>Tm,SEMATTRS_AWS_DYNAMODB_PROVISIONED_READ_CAPACITY:()=>_m,SEMATTRS_AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY:()=>Em,SEMATTRS_AWS_DYNAMODB_SCANNED_COUNT:()=>Mm,SEMATTRS_AWS_DYNAMODB_SCAN_FORWARD:()=>Rm,SEMATTRS_AWS_DYNAMODB_SEGMENT:()=>Om,SEMATTRS_AWS_DYNAMODB_SELECT:()=>Am,SEMATTRS_AWS_DYNAMODB_TABLE_COUNT:()=>hm,SEMATTRS_AWS_DYNAMODB_TABLE_NAMES:()=>im,SEMATTRS_AWS_DYNAMODB_TOTAL_SEGMENTS:()=>gm,SEMATTRS_AWS_LAMBDA_INVOKED_ARN:()=>GA,SEMATTRS_CODE_FILEPATH:()=>kd,SEMATTRS_CODE_FUNCTION:()=>Fd,SEMATTRS_CODE_LINENO:()=>Kd,SEMATTRS_CODE_NAMESPACE:()=>Yd,SEMATTRS_DB_CASSANDRA_CONSISTENCY_LEVEL:()=>zA,SEMATTRS_DB_CASSANDRA_COORDINATOR_DC:()=>ed,SEMATTRS_DB_CASSANDRA_COORDINATOR_ID:()=>td,SEMATTRS_DB_CASSANDRA_IDEMPOTENCE:()=>JA,SEMATTRS_DB_CASSANDRA_KEYSPACE:()=>$A,SEMATTRS_DB_CASSANDRA_PAGE_SIZE:()=>XA,SEMATTRS_DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT:()=>ZA,SEMATTRS_DB_CASSANDRA_TABLE:()=>QA,SEMATTRS_DB_CONNECTION_STRING:()=>FA,SEMATTRS_DB_HBASE_NAMESPACE:()=>rd,SEMATTRS_DB_JDBC_DRIVER_CLASSNAME:()=>kA,SEMATTRS_DB_MONGODB_COLLECTION:()=>od,SEMATTRS_DB_MSSQL_INSTANCE_NAME:()=>qA,SEMATTRS_DB_NAME:()=>KA,SEMATTRS_DB_OPERATION:()=>WA,SEMATTRS_DB_REDIS_DATABASE_INDEX:()=>nd,SEMATTRS_DB_SQL_TABLE:()=>sd,SEMATTRS_DB_STATEMENT:()=>jA,SEMATTRS_DB_SYSTEM:()=>HA,SEMATTRS_DB_USER:()=>YA,SEMATTRS_ENDUSER_ID:()=>vd,SEMATTRS_ENDUSER_ROLE:()=>Bd,SEMATTRS_ENDUSER_SCOPE:()=>wd,SEMATTRS_EXCEPTION_ESCAPED:()=>_d,SEMATTRS_EXCEPTION_MESSAGE:()=>ad,SEMATTRS_EXCEPTION_STACKTRACE:()=>cd,SEMATTRS_EXCEPTION_TYPE:()=>id,SEMATTRS_FAAS_COLDSTART:()=>md,SEMATTRS_FAAS_CRON:()=>dd,SEMATTRS_FAAS_DOCUMENT_COLLECTION:()=>Td,SEMATTRS_FAAS_DOCUMENT_NAME:()=>ld,SEMATTRS_FAAS_DOCUMENT_OPERATION:()=>Sd,SEMATTRS_FAAS_DOCUMENT_TIME:()=>pd,SEMATTRS_FAAS_EXECUTION:()=>ud,SEMATTRS_FAAS_INVOKED_NAME:()=>fd,SEMATTRS_FAAS_INVOKED_PROVIDER:()=>hd,SEMATTRS_FAAS_INVOKED_REGION:()=>Rd,SEMATTRS_FAAS_TIME:()=>Ad,SEMATTRS_FAAS_TRIGGER:()=>Ed,SEMATTRS_HTTP_CLIENT_IP:()=>sm,SEMATTRS_HTTP_FLAVOR:()=>Qd,SEMATTRS_HTTP_HOST:()=>$d,SEMATTRS_HTTP_METHOD:()=>jd,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH:()=>Zd,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED:()=>tm,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH:()=>em,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED:()=>rm,SEMATTRS_HTTP_ROUTE:()=>om,SEMATTRS_HTTP_SCHEME:()=>Xd,SEMATTRS_HTTP_SERVER_NAME:()=>nm,SEMATTRS_HTTP_STATUS_CODE:()=>zd,SEMATTRS_HTTP_TARGET:()=>qd,SEMATTRS_HTTP_URL:()=>Wd,SEMATTRS_HTTP_USER_AGENT:()=>Jd,SEMATTRS_MESSAGE_COMPRESSED_SIZE:()=>nf,SEMATTRS_MESSAGE_ID:()=>rf,SEMATTRS_MESSAGE_TYPE:()=>ef,SEMATTRS_MESSAGE_UNCOMPRESSED_SIZE:()=>of,SEMATTRS_MESSAGING_CONSUMER_ID:()=>Hm,SEMATTRS_MESSAGING_CONVERSATION_ID:()=>vm,SEMATTRS_MESSAGING_DESTINATION:()=>Im,SEMATTRS_MESSAGING_DESTINATION_KIND:()=>xm,SEMATTRS_MESSAGING_KAFKA_CLIENT_ID:()=>Km,SEMATTRS_MESSAGING_KAFKA_CONSUMER_GROUP:()=>km,SEMATTRS_MESSAGING_KAFKA_MESSAGE_KEY:()=>Ym,SEMATTRS_MESSAGING_KAFKA_PARTITION:()=>jm,SEMATTRS_MESSAGING_KAFKA_TOMBSTONE:()=>Wm,SEMATTRS_MESSAGING_MESSAGE_ID:()=>Vm,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES:()=>wm,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES:()=>Bm,SEMATTRS_MESSAGING_OPERATION:()=>Gm,SEMATTRS_MESSAGING_PROTOCOL:()=>Um,SEMATTRS_MESSAGING_PROTOCOL_VERSION:()=>bm,SEMATTRS_MESSAGING_RABBITMQ_ROUTING_KEY:()=>Fm,SEMATTRS_MESSAGING_SYSTEM:()=>Lm,SEMATTRS_MESSAGING_TEMP_DESTINATION:()=>Dm,SEMATTRS_MESSAGING_URL:()=>ym,SEMATTRS_NET_HOST_CARRIER_ICC:()=>yd,SEMATTRS_NET_HOST_CARRIER_MCC:()=>Ud,SEMATTRS_NET_HOST_CARRIER_MNC:()=>bd,SEMATTRS_NET_HOST_CARRIER_NAME:()=>Dd,SEMATTRS_NET_HOST_CONNECTION_SUBTYPE:()=>xd,SEMATTRS_NET_HOST_CONNECTION_TYPE:()=>Id,SEMATTRS_NET_HOST_IP:()=>Pd,SEMATTRS_NET_HOST_NAME:()=>Ld,SEMATTRS_NET_HOST_PORT:()=>Cd,SEMATTRS_NET_PEER_IP:()=>gd,SEMATTRS_NET_PEER_NAME:()=>Md,SEMATTRS_NET_PEER_PORT:()=>Nd,SEMATTRS_NET_TRANSPORT:()=>Od,SEMATTRS_PEER_SERVICE:()=>Vd,SEMATTRS_RPC_GRPC_STATUS_CODE:()=>zm,SEMATTRS_RPC_JSONRPC_ERROR_CODE:()=>Zm,SEMATTRS_RPC_JSONRPC_ERROR_MESSAGE:()=>tf,SEMATTRS_RPC_JSONRPC_REQUEST_ID:()=>Jm,SEMATTRS_RPC_JSONRPC_VERSION:()=>Qm,SEMATTRS_RPC_METHOD:()=>Xm,SEMATTRS_RPC_SERVICE:()=>$m,SEMATTRS_RPC_SYSTEM:()=>qm,SEMATTRS_THREAD_ID:()=>Gd,SEMATTRS_THREAD_NAME:()=>Hd,SEMRESATTRS_AWS_ECS_CLUSTER_ARN:()=>XR,SEMRESATTRS_AWS_ECS_CONTAINER_ARN:()=>$R,SEMRESATTRS_AWS_ECS_LAUNCHTYPE:()=>zR,SEMRESATTRS_AWS_ECS_TASK_ARN:()=>QR,SEMRESATTRS_AWS_ECS_TASK_FAMILY:()=>JR,SEMRESATTRS_AWS_ECS_TASK_REVISION:()=>ZR,SEMRESATTRS_AWS_EKS_CLUSTER_ARN:()=>tO,SEMRESATTRS_AWS_LOG_GROUP_ARNS:()=>rO,SEMRESATTRS_AWS_LOG_GROUP_NAMES:()=>eO,SEMRESATTRS_AWS_LOG_STREAM_ARNS:()=>oO,SEMRESATTRS_AWS_LOG_STREAM_NAMES:()=>nO,SEMRESATTRS_CLOUD_ACCOUNT_ID:()=>KR,SEMRESATTRS_CLOUD_AVAILABILITY_ZONE:()=>WR,SEMRESATTRS_CLOUD_PLATFORM:()=>qR,SEMRESATTRS_CLOUD_PROVIDER:()=>kR,SEMRESATTRS_CLOUD_REGION:()=>jR,SEMRESATTRS_CONTAINER_ID:()=>iO,SEMRESATTRS_CONTAINER_IMAGE_NAME:()=>cO,SEMRESATTRS_CONTAINER_IMAGE_TAG:()=>_O,SEMRESATTRS_CONTAINER_NAME:()=>sO,SEMRESATTRS_CONTAINER_RUNTIME:()=>aO,SEMRESATTRS_DEPLOYMENT_ENVIRONMENT:()=>EO,SEMRESATTRS_DEVICE_ID:()=>uO,SEMRESATTRS_DEVICE_MODEL_IDENTIFIER:()=>TO,SEMRESATTRS_DEVICE_MODEL_NAME:()=>SO,SEMRESATTRS_FAAS_ID:()=>lO,SEMRESATTRS_FAAS_INSTANCE:()=>dO,SEMRESATTRS_FAAS_MAX_MEMORY:()=>mO,SEMRESATTRS_FAAS_NAME:()=>pO,SEMRESATTRS_FAAS_VERSION:()=>AO,SEMRESATTRS_HOST_ARCH:()=>OO,SEMRESATTRS_HOST_ID:()=>fO,SEMRESATTRS_HOST_IMAGE_ID:()=>NO,SEMRESATTRS_HOST_IMAGE_NAME:()=>gO,SEMRESATTRS_HOST_IMAGE_VERSION:()=>MO,SEMRESATTRS_HOST_NAME:()=>hO,SEMRESATTRS_HOST_TYPE:()=>RO,SEMRESATTRS_K8S_CLUSTER_NAME:()=>PO,SEMRESATTRS_K8S_CONTAINER_NAME:()=>UO,SEMRESATTRS_K8S_CRONJOB_NAME:()=>KO,SEMRESATTRS_K8S_CRONJOB_UID:()=>kO,SEMRESATTRS_K8S_DAEMONSET_NAME:()=>HO,SEMRESATTRS_K8S_DAEMONSET_UID:()=>GO,SEMRESATTRS_K8S_DEPLOYMENT_NAME:()=>vO,SEMRESATTRS_K8S_DEPLOYMENT_UID:()=>VO,SEMRESATTRS_K8S_JOB_NAME:()=>YO,SEMRESATTRS_K8S_JOB_UID:()=>FO,SEMRESATTRS_K8S_NAMESPACE_NAME:()=>IO,SEMRESATTRS_K8S_NODE_NAME:()=>CO,SEMRESATTRS_K8S_NODE_UID:()=>LO,SEMRESATTRS_K8S_POD_NAME:()=>DO,SEMRESATTRS_K8S_POD_UID:()=>xO,SEMRESATTRS_K8S_REPLICASET_NAME:()=>yO,SEMRESATTRS_K8S_REPLICASET_UID:()=>bO,SEMRESATTRS_K8S_STATEFULSET_NAME:()=>wO,SEMRESATTRS_K8S_STATEFULSET_UID:()=>BO,SEMRESATTRS_OS_DESCRIPTION:()=>WO,SEMRESATTRS_OS_NAME:()=>qO,SEMRESATTRS_OS_TYPE:()=>jO,SEMRESATTRS_OS_VERSION:()=>$O,SEMRESATTRS_PROCESS_COMMAND:()=>JO,SEMRESATTRS_PROCESS_COMMAND_ARGS:()=>tg,SEMRESATTRS_PROCESS_COMMAND_LINE:()=>ZO,SEMRESATTRS_PROCESS_EXECUTABLE_NAME:()=>zO,SEMRESATTRS_PROCESS_EXECUTABLE_PATH:()=>QO,SEMRESATTRS_PROCESS_OWNER:()=>eg,SEMRESATTRS_PROCESS_PID:()=>XO,SEMRESATTRS_PROCESS_RUNTIME_DESCRIPTION:()=>og,SEMRESATTRS_PROCESS_RUNTIME_NAME:()=>rg,SEMRESATTRS_PROCESS_RUNTIME_VERSION:()=>ng,SEMRESATTRS_SERVICE_INSTANCE_ID:()=>ag,SEMRESATTRS_SERVICE_NAME:()=>sg,SEMRESATTRS_SERVICE_NAMESPACE:()=>ig,SEMRESATTRS_SERVICE_VERSION:()=>cg,SEMRESATTRS_TELEMETRY_AUTO_VERSION:()=>Tg,SEMRESATTRS_TELEMETRY_SDK_LANGUAGE:()=>Eg,SEMRESATTRS_TELEMETRY_SDK_NAME:()=>_g,SEMRESATTRS_TELEMETRY_SDK_VERSION:()=>ug,SEMRESATTRS_WEBENGINE_DESCRIPTION:()=>lg,SEMRESATTRS_WEBENGINE_NAME:()=>Sg,SEMRESATTRS_WEBENGINE_VERSION:()=>pg,SIGNALR_CONNECTION_STATUS_VALUE_APP_SHUTDOWN:()=>lP,SIGNALR_CONNECTION_STATUS_VALUE_NORMAL_CLOSURE:()=>AP,SIGNALR_CONNECTION_STATUS_VALUE_TIMEOUT:()=>dP,SIGNALR_TRANSPORT_VALUE_LONG_POLLING:()=>fP,SIGNALR_TRANSPORT_VALUE_SERVER_SENT_EVENTS:()=>hP,SIGNALR_TRANSPORT_VALUE_WEB_SOCKETS:()=>RP,SemanticAttributes:()=>sf,SemanticResourceAttributes:()=>Ag,TELEMETRYSDKLANGUAGEVALUES_CPP:()=>_N,TELEMETRYSDKLANGUAGEVALUES_DOTNET:()=>EN,TELEMETRYSDKLANGUAGEVALUES_ERLANG:()=>uN,TELEMETRYSDKLANGUAGEVALUES_GO:()=>TN,TELEMETRYSDKLANGUAGEVALUES_JAVA:()=>SN,TELEMETRYSDKLANGUAGEVALUES_NODEJS:()=>pN,TELEMETRYSDKLANGUAGEVALUES_PHP:()=>lN,TELEMETRYSDKLANGUAGEVALUES_PYTHON:()=>AN,TELEMETRYSDKLANGUAGEVALUES_RUBY:()=>dN,TELEMETRYSDKLANGUAGEVALUES_WEBJS:()=>mN,TELEMETRY_SDK_LANGUAGE_VALUE_CPP:()=>OP,TELEMETRY_SDK_LANGUAGE_VALUE_DOTNET:()=>gP,TELEMETRY_SDK_LANGUAGE_VALUE_ERLANG:()=>NP,TELEMETRY_SDK_LANGUAGE_VALUE_GO:()=>MP,TELEMETRY_SDK_LANGUAGE_VALUE_JAVA:()=>PP,TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS:()=>CP,TELEMETRY_SDK_LANGUAGE_VALUE_PHP:()=>LP,TELEMETRY_SDK_LANGUAGE_VALUE_PYTHON:()=>IP,TELEMETRY_SDK_LANGUAGE_VALUE_RUBY:()=>xP,TELEMETRY_SDK_LANGUAGE_VALUE_RUST:()=>DP,TELEMETRY_SDK_LANGUAGE_VALUE_SWIFT:()=>UP,TELEMETRY_SDK_LANGUAGE_VALUE_WEBJS:()=>bP,TelemetrySdkLanguageValues:()=>fN});var de=F(()=>{AE();YT();kT();KT();jT()});var qT=S(tr=>{"use strict";Object.defineProperty(tr,"__esModule",{value:!0});tr.ATTR_PROCESS_RUNTIME_NAME=void 0;tr.ATTR_PROCESS_RUNTIME_NAME="process.runtime.name"});var $T=S(rr=>{"use strict";Object.defineProperty(rr,"__esModule",{value:!0});rr.SDK_INFO=void 0;var wC=Ms(),er=(de(),b(WT)),GC=qT();rr.SDK_INFO={[er.ATTR_TELEMETRY_SDK_NAME]:"opentelemetry",[GC.ATTR_PROCESS_RUNTIME_NAME]:"browser",[er.ATTR_TELEMETRY_SDK_LANGUAGE]:er.TELEMETRY_SDK_LANGUAGE_VALUE_WEBJS,[er.ATTR_TELEMETRY_SDK_VERSION]:wC.VERSION}});var XT=S(nr=>{"use strict";Object.defineProperty(nr,"__esModule",{value:!0});nr.unrefTimer=void 0;function HC(r){}nr.unrefTimer=HC});var kn=S(D=>{"use strict";Object.defineProperty(D,"__esModule",{value:!0});D.unrefTimer=D.SDK_INFO=D.otperformance=D._globalThis=D.getStringListFromEnv=D.getNumberFromEnv=D.getBooleanFromEnv=D.getStringFromEnv=void 0;var or=Os();Object.defineProperty(D,"getStringFromEnv",{enumerable:!0,get:function(){return or.getStringFromEnv}});Object.defineProperty(D,"getBooleanFromEnv",{enumerable:!0,get:function(){return or.getBooleanFromEnv}});Object.defineProperty(D,"getNumberFromEnv",{enumerable:!0,get:function(){return or.getNumberFromEnv}});Object.defineProperty(D,"getStringListFromEnv",{enumerable:!0,get:function(){return or.getStringListFromEnv}});var FC=gs();Object.defineProperty(D,"_globalThis",{enumerable:!0,get:function(){return FC._globalThis}});var YC=Ns();Object.defineProperty(D,"otperformance",{enumerable:!0,get:function(){return YC.otperformance}});var kC=$T();Object.defineProperty(D,"SDK_INFO",{enumerable:!0,get:function(){return kC.SDK_INFO}});var KC=XT();Object.defineProperty(D,"unrefTimer",{enumerable:!0,get:function(){return KC.unrefTimer}})});var ZT=S(g=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0});g.addHrTimes=g.isTimeInput=g.isTimeInputHrTime=g.hrTimeToMicroseconds=g.hrTimeToMilliseconds=g.hrTimeToNanoseconds=g.hrTimeToTimeStamp=g.hrTimeDuration=g.timeInputToHrTime=g.hrTime=g.getTimeOrigin=g.millisToHrTime=void 0;var Kn=kn(),zT=9,jC=6,WC=Math.pow(10,jC),sr=Math.pow(10,zT);function me(r){let t=r/1e3,e=Math.trunc(t),n=Math.round(r%1e3*WC);return[e,n]}g.millisToHrTime=me;function jn(){let r=Kn.otperformance.timeOrigin;if(typeof r!="number"){let t=Kn.otperformance;r=t.timing&&t.timing.fetchStart}return r}g.getTimeOrigin=jn;function QT(r){let t=me(jn()),e=me(typeof r=="number"?r:Kn.otperformance.now());return JT(t,e)}g.hrTime=QT;function qC(r){if(Wn(r))return r;if(typeof r=="number")return r<jn()?QT(r):me(r);if(r instanceof Date)return me(r.getTime());throw TypeError("Invalid input type")}g.timeInputToHrTime=qC;function $C(r,t){let e=t[0]-r[0],n=t[1]-r[1];return n<0&&(e-=1,n+=sr),[e,n]}g.hrTimeDuration=$C;function XC(r){let t=zT,e=`${"0".repeat(t)}${r[1]}Z`,n=e.substring(e.length-t-1);return new Date(r[0]*1e3).toISOString().replace("000Z",n)}g.hrTimeToTimeStamp=XC;function zC(r){return r[0]*sr+r[1]}g.hrTimeToNanoseconds=zC;function QC(r){return r[0]*1e3+r[1]/1e6}g.hrTimeToMilliseconds=QC;function JC(r){return r[0]*1e6+r[1]/1e3}g.hrTimeToMicroseconds=JC;function Wn(r){return Array.isArray(r)&&r.length===2&&typeof r[0]=="number"&&typeof r[1]=="number"}g.isTimeInputHrTime=Wn;function ZC(r){return Wn(r)||typeof r=="number"||r instanceof Date}g.isTimeInput=ZC;function JT(r,t){let e=[r[0]+t[0],r[1]+t[1]];return e[1]>=sr&&(e[1]-=sr,e[0]+=1),e}g.addHrTimes=JT});var tS=S(fe=>{"use strict";Object.defineProperty(fe,"__esModule",{value:!0});fe.ExportResultCode=void 0;var tL;(function(r){r[r.SUCCESS=0]="SUCCESS",r[r.FAILED=1]="FAILED"})(tL=fe.ExportResultCode||(fe.ExportResultCode={}))});var rS=S(ir=>{"use strict";Object.defineProperty(ir,"__esModule",{value:!0});ir.CompositePropagator=void 0;var eS=(d(),b(c)),qn=class{_propagators;_fields;constructor(t={}){this._propagators=t.propagators??[],this._fields=Array.from(new Set(this._propagators.map(e=>typeof e.fields=="function"?e.fields():[]).reduce((e,n)=>e.concat(n),[])))}inject(t,e,n){for(let o of this._propagators)try{o.inject(t,e,n)}catch(s){eS.diag.warn(`Failed to inject with ${o.constructor.name}. Err: ${s.message}`)}}extract(t,e,n){return this._propagators.reduce((o,s)=>{try{return s.extract(o,e,n)}catch(i){eS.diag.warn(`Failed to extract with ${s.constructor.name}. Err: ${i.message}`)}return o},t)}fields(){return this._fields.slice()}};ir.CompositePropagator=qn});var nS=S(Ft=>{"use strict";Object.defineProperty(Ft,"__esModule",{value:!0});Ft.validateValue=Ft.validateKey=void 0;var $n="[_0-9a-z-*/]",eL=`[a-z]${$n}{0,255}`,rL=`[a-z0-9]${$n}{0,240}@[a-z]${$n}{0,13}`,nL=new RegExp(`^(?:${eL}|${rL})$`),oL=/^[ -~]{0,255}[!-~]$/,sL=/,|=/;function iL(r){return nL.test(r)}Ft.validateKey=iL;function aL(r){return oL.test(r)&&!sL.test(r)}Ft.validateValue=aL});var zn=S(ar=>{"use strict";Object.defineProperty(ar,"__esModule",{value:!0});ar.TraceState=void 0;var oS=nS(),sS=32,cL=512,iS=",",aS="=",Xn=class r{_internalState=new Map;constructor(t){t&&this._parse(t)}set(t,e){let n=this._clone();return n._internalState.has(t)&&n._internalState.delete(t),n._internalState.set(t,e),n}unset(t){let e=this._clone();return e._internalState.delete(t),e}get(t){return this._internalState.get(t)}serialize(){return this._keys().reduce((t,e)=>(t.push(e+aS+this.get(e)),t),[]).join(iS)}_parse(t){t.length>cL||(this._internalState=t.split(iS).reverse().reduce((e,n)=>{let o=n.trim(),s=o.indexOf(aS);if(s!==-1){let i=o.slice(0,s),a=o.slice(s+1,n.length);(0,oS.validateKey)(i)&&(0,oS.validateValue)(a)&&e.set(i,a)}return e},new Map),this._internalState.size>sS&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,sS))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){let t=new r;return t._internalState=new Map(this._internalState),t}};ar.TraceState=Xn});var _S=S(V=>{"use strict";Object.defineProperty(V,"__esModule",{value:!0});V.W3CTraceContextPropagator=V.parseTraceParent=V.TRACE_STATE_HEADER=V.TRACE_PARENT_HEADER=void 0;var cr=(d(),b(c)),_L=Se(),EL=zn();V.TRACE_PARENT_HEADER="traceparent";V.TRACE_STATE_HEADER="tracestate";var uL="00",TL="(?!ff)[\\da-f]{2}",SL="(?![0]{32})[\\da-f]{32}",pL="(?![0]{16})[\\da-f]{16}",lL="[\\da-f]{2}",AL=new RegExp(`^\\s?(${TL})-(${SL})-(${pL})-(${lL})(-.*)?\\s?$`);function cS(r){let t=AL.exec(r);return!t||t[1]==="00"&&t[5]?null:{traceId:t[2],spanId:t[3],traceFlags:parseInt(t[4],16)}}V.parseTraceParent=cS;var Qn=class{inject(t,e,n){let o=cr.trace.getSpanContext(t);if(!o||(0,_L.isTracingSuppressed)(t)||!(0,cr.isSpanContextValid)(o))return;let s=`${uL}-${o.traceId}-${o.spanId}-0${Number(o.traceFlags||cr.TraceFlags.NONE).toString(16)}`;n.set(e,V.TRACE_PARENT_HEADER,s),o.traceState&&n.set(e,V.TRACE_STATE_HEADER,o.traceState.serialize())}extract(t,e,n){let o=n.get(e,V.TRACE_PARENT_HEADER);if(!o)return t;let s=Array.isArray(o)?o[0]:o;if(typeof s!="string")return t;let i=cS(s);if(!i)return t;i.isRemote=!0;let a=n.get(e,V.TRACE_STATE_HEADER);if(a){let _=Array.isArray(a)?a.join(","):a;i.traceState=new EL.TraceState(typeof _=="string"?_:void 0)}return cr.trace.setSpanContext(t,i)}fields(){return[V.TRACE_PARENT_HEADER,V.TRACE_STATE_HEADER]}};V.W3CTraceContextPropagator=Qn});var ES=S(et=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});et.getRPCMetadata=et.deleteRPCMetadata=et.setRPCMetadata=et.RPCType=void 0;var dL=(d(),b(c)),Jn=(0,dL.createContextKey)("OpenTelemetry SDK Context Key RPC_METADATA"),mL;(function(r){r.HTTP="http"})(mL=et.RPCType||(et.RPCType={}));function fL(r,t){return r.setValue(Jn,t)}et.setRPCMetadata=fL;function hL(r){return r.deleteValue(Jn)}et.deleteRPCMetadata=hL;function RL(r){return r.getValue(Jn)}et.getRPCMetadata=RL});var lS=S(_r=>{"use strict";Object.defineProperty(_r,"__esModule",{value:!0});_r.isPlainObject=void 0;var OL="[object Object]",gL="[object Null]",NL="[object Undefined]",ML=Function.prototype,uS=ML.toString,PL=uS.call(Object),CL=Object.getPrototypeOf,TS=Object.prototype,SS=TS.hasOwnProperty,Dt=Symbol?Symbol.toStringTag:void 0,pS=TS.toString;function LL(r){if(!IL(r)||xL(r)!==OL)return!1;let t=CL(r);if(t===null)return!0;let e=SS.call(t,"constructor")&&t.constructor;return typeof e=="function"&&e instanceof e&&uS.call(e)===PL}_r.isPlainObject=LL;function IL(r){return r!=null&&typeof r=="object"}function xL(r){return r==null?r===void 0?NL:gL:Dt&&Dt in Object(r)?DL(r):UL(r)}function DL(r){let t=SS.call(r,Dt),e=r[Dt],n=!1;try{r[Dt]=void 0,n=!0}catch{}let o=pS.call(r);return n&&(t?r[Dt]=e:delete r[Dt]),o}function UL(r){return pS.call(r)}});var hS=S(Tr=>{"use strict";Object.defineProperty(Tr,"__esModule",{value:!0});Tr.merge=void 0;var AS=lS(),bL=20;function yL(...r){let t=r.shift(),e=new WeakMap;for(;r.length>0;)t=mS(t,r.shift(),0,e);return t}Tr.merge=yL;function Zn(r){return ur(r)?r.slice():r}function mS(r,t,e=0,n){let o;if(!(e>bL)){if(e++,Er(r)||Er(t)||fS(t))o=Zn(t);else if(ur(r)){if(o=r.slice(),ur(t))for(let s=0,i=t.length;s<i;s++)o.push(Zn(t[s]));else if(he(t)){let s=Object.keys(t);for(let i=0,a=s.length;i<a;i++){let _=s[i];o[_]=Zn(t[_])}}}else if(he(r))if(he(t)){if(!VL(r,t))return t;o=Object.assign({},r);let s=Object.keys(t);for(let i=0,a=s.length;i<a;i++){let _=s[i],E=t[_];if(Er(E))typeof E>"u"?delete o[_]:o[_]=E;else{let T=o[_],l=E;if(dS(r,_,n)||dS(t,_,n))delete o[_];else{if(he(T)&&he(l)){let A=n.get(T)||[],h=n.get(l)||[];A.push({obj:r,key:_}),h.push({obj:t,key:_}),n.set(T,A),n.set(l,h)}o[_]=mS(o[_],E,e,n)}}}}else o=t;return o}}function dS(r,t,e){let n=e.get(r[t])||[];for(let o=0,s=n.length;o<s;o++){let i=n[o];if(i.key===t&&i.obj===r)return!0}return!1}function ur(r){return Array.isArray(r)}function fS(r){return typeof r=="function"}function he(r){return!Er(r)&&!ur(r)&&!fS(r)&&typeof r=="object"}function Er(r){return typeof r=="string"||typeof r=="number"||typeof r=="boolean"||typeof r>"u"||r instanceof Date||r instanceof RegExp||r===null}function VL(r,t){return!(!(0,AS.isPlainObject)(r)||!(0,AS.isPlainObject)(t))}});var RS=S(Yt=>{"use strict";Object.defineProperty(Yt,"__esModule",{value:!0});Yt.callWithTimeout=Yt.TimeoutError=void 0;var Sr=class r extends Error{constructor(t){super(t),Object.setPrototypeOf(this,r.prototype)}};Yt.TimeoutError=Sr;function vL(r,t){let e,n=new Promise(function(s,i){e=setTimeout(function(){i(new Sr("Operation timed out."))},t)});return Promise.race([r,n]).then(o=>(clearTimeout(e),o),o=>{throw clearTimeout(e),o})}Yt.callWithTimeout=vL});var gS=S(kt=>{"use strict";Object.defineProperty(kt,"__esModule",{value:!0});kt.isUrlIgnored=kt.urlMatches=void 0;function OS(r,t){return typeof t=="string"?r===t:!!r.match(t)}kt.urlMatches=OS;function BL(r,t){if(!t)return!1;for(let e of t)if(OS(r,e))return!0;return!1}kt.isUrlIgnored=BL});var NS=S(pr=>{"use strict";Object.defineProperty(pr,"__esModule",{value:!0});pr.Deferred=void 0;var to=class{_promise;_resolve;_reject;constructor(){this._promise=new Promise((t,e)=>{this._resolve=t,this._reject=e})}get promise(){return this._promise}resolve(t){this._resolve(t)}reject(t){this._reject(t)}};pr.Deferred=to});var MS=S(lr=>{"use strict";Object.defineProperty(lr,"__esModule",{value:!0});lr.BindOnceFuture=void 0;var wL=NS(),eo=class{_callback;_that;_isCalled=!1;_deferred=new wL.Deferred;constructor(t,e){this._callback=t,this._that=e}get isCalled(){return this._isCalled}get promise(){return this._deferred.promise}call(...t){if(!this._isCalled){this._isCalled=!0;try{Promise.resolve(this._callback.call(this._that,...t)).then(e=>this._deferred.resolve(e),e=>this._deferred.reject(e))}catch(e){this._deferred.reject(e)}}return this._deferred.promise}};lr.BindOnceFuture=eo});var CS=S(Ar=>{"use strict";Object.defineProperty(Ar,"__esModule",{value:!0});Ar.diagLogLevelFromString=void 0;var pt=(d(),b(c)),PS={ALL:pt.DiagLogLevel.ALL,VERBOSE:pt.DiagLogLevel.VERBOSE,DEBUG:pt.DiagLogLevel.DEBUG,INFO:pt.DiagLogLevel.INFO,WARN:pt.DiagLogLevel.WARN,ERROR:pt.DiagLogLevel.ERROR,NONE:pt.DiagLogLevel.NONE};function GL(r){if(r==null)return;let t=PS[r.toUpperCase()];return t??(pt.diag.warn(`Unknown log level "${r}", expected one of ${Object.keys(PS)}, using default`),pt.DiagLogLevel.INFO)}Ar.diagLogLevelFromString=GL});var IS=S(dr=>{"use strict";Object.defineProperty(dr,"__esModule",{value:!0});dr._export=void 0;var LS=(d(),b(c)),HL=Se();function FL(r,t){return new Promise(e=>{LS.context.with((0,HL.suppressTracing)(LS.context.active()),()=>{r.export(t,n=>{e(n)})})})}dr._export=FL});var P=S(u=>{"use strict";Object.defineProperty(u,"__esModule",{value:!0});u.internal=u.diagLogLevelFromString=u.BindOnceFuture=u.urlMatches=u.isUrlIgnored=u.callWithTimeout=u.TimeoutError=u.merge=u.TraceState=u.unsuppressTracing=u.suppressTracing=u.isTracingSuppressed=u.setRPCMetadata=u.getRPCMetadata=u.deleteRPCMetadata=u.RPCType=u.parseTraceParent=u.W3CTraceContextPropagator=u.TRACE_STATE_HEADER=u.TRACE_PARENT_HEADER=u.CompositePropagator=u.unrefTimer=u.otperformance=u.getStringListFromEnv=u.getNumberFromEnv=u.getBooleanFromEnv=u.getStringFromEnv=u._globalThis=u.SDK_INFO=u.parseKeyPairsIntoRecord=u.ExportResultCode=u.timeInputToHrTime=u.millisToHrTime=u.isTimeInputHrTime=u.isTimeInput=u.hrTimeToTimeStamp=u.hrTimeToNanoseconds=u.hrTimeToMilliseconds=u.hrTimeToMicroseconds=u.hrTimeDuration=u.hrTime=u.getTimeOrigin=u.addHrTimes=u.loggingErrorHandler=u.setGlobalErrorHandler=u.globalErrorHandler=u.sanitizeAttributes=u.isAttributeValue=u.AnchoredClock=u.W3CBaggagePropagator=void 0;var YL=Ss();Object.defineProperty(u,"W3CBaggagePropagator",{enumerable:!0,get:function(){return YL.W3CBaggagePropagator}});var kL=ps();Object.defineProperty(u,"AnchoredClock",{enumerable:!0,get:function(){return kL.AnchoredClock}});var xS=fs();Object.defineProperty(u,"isAttributeValue",{enumerable:!0,get:function(){return xS.isAttributeValue}});Object.defineProperty(u,"sanitizeAttributes",{enumerable:!0,get:function(){return xS.sanitizeAttributes}});var DS=Rs();Object.defineProperty(u,"globalErrorHandler",{enumerable:!0,get:function(){return DS.globalErrorHandler}});Object.defineProperty(u,"setGlobalErrorHandler",{enumerable:!0,get:function(){return DS.setGlobalErrorHandler}});var KL=Hn();Object.defineProperty(u,"loggingErrorHandler",{enumerable:!0,get:function(){return KL.loggingErrorHandler}});var Y=ZT();Object.defineProperty(u,"addHrTimes",{enumerable:!0,get:function(){return Y.addHrTimes}});Object.defineProperty(u,"getTimeOrigin",{enumerable:!0,get:function(){return Y.getTimeOrigin}});Object.defineProperty(u,"hrTime",{enumerable:!0,get:function(){return Y.hrTime}});Object.defineProperty(u,"hrTimeDuration",{enumerable:!0,get:function(){return Y.hrTimeDuration}});Object.defineProperty(u,"hrTimeToMicroseconds",{enumerable:!0,get:function(){return Y.hrTimeToMicroseconds}});Object.defineProperty(u,"hrTimeToMilliseconds",{enumerable:!0,get:function(){return Y.hrTimeToMilliseconds}});Object.defineProperty(u,"hrTimeToNanoseconds",{enumerable:!0,get:function(){return Y.hrTimeToNanoseconds}});Object.defineProperty(u,"hrTimeToTimeStamp",{enumerable:!0,get:function(){return Y.hrTimeToTimeStamp}});Object.defineProperty(u,"isTimeInput",{enumerable:!0,get:function(){return Y.isTimeInput}});Object.defineProperty(u,"isTimeInputHrTime",{enumerable:!0,get:function(){return Y.isTimeInputHrTime}});Object.defineProperty(u,"millisToHrTime",{enumerable:!0,get:function(){return Y.millisToHrTime}});Object.defineProperty(u,"timeInputToHrTime",{enumerable:!0,get:function(){return Y.timeInputToHrTime}});var jL=tS();Object.defineProperty(u,"ExportResultCode",{enumerable:!0,get:function(){return jL.ExportResultCode}});var WL=Vn();Object.defineProperty(u,"parseKeyPairsIntoRecord",{enumerable:!0,get:function(){return WL.parseKeyPairsIntoRecord}});var ht=kn();Object.defineProperty(u,"SDK_INFO",{enumerable:!0,get:function(){return ht.SDK_INFO}});Object.defineProperty(u,"_globalThis",{enumerable:!0,get:function(){return ht._globalThis}});Object.defineProperty(u,"getStringFromEnv",{enumerable:!0,get:function(){return ht.getStringFromEnv}});Object.defineProperty(u,"getBooleanFromEnv",{enumerable:!0,get:function(){return ht.getBooleanFromEnv}});Object.defineProperty(u,"getNumberFromEnv",{enumerable:!0,get:function(){return ht.getNumberFromEnv}});Object.defineProperty(u,"getStringListFromEnv",{enumerable:!0,get:function(){return ht.getStringListFromEnv}});Object.defineProperty(u,"otperformance",{enumerable:!0,get:function(){return ht.otperformance}});Object.defineProperty(u,"unrefTimer",{enumerable:!0,get:function(){return ht.unrefTimer}});var qL=rS();Object.defineProperty(u,"CompositePropagator",{enumerable:!0,get:function(){return qL.CompositePropagator}});var mr=_S();Object.defineProperty(u,"TRACE_PARENT_HEADER",{enumerable:!0,get:function(){return mr.TRACE_PARENT_HEADER}});Object.defineProperty(u,"TRACE_STATE_HEADER",{enumerable:!0,get:function(){return mr.TRACE_STATE_HEADER}});Object.defineProperty(u,"W3CTraceContextPropagator",{enumerable:!0,get:function(){return mr.W3CTraceContextPropagator}});Object.defineProperty(u,"parseTraceParent",{enumerable:!0,get:function(){return mr.parseTraceParent}});var fr=ES();Object.defineProperty(u,"RPCType",{enumerable:!0,get:function(){return fr.RPCType}});Object.defineProperty(u,"deleteRPCMetadata",{enumerable:!0,get:function(){return fr.deleteRPCMetadata}});Object.defineProperty(u,"getRPCMetadata",{enumerable:!0,get:function(){return fr.getRPCMetadata}});Object.defineProperty(u,"setRPCMetadata",{enumerable:!0,get:function(){return fr.setRPCMetadata}});var ro=Se();Object.defineProperty(u,"isTracingSuppressed",{enumerable:!0,get:function(){return ro.isTracingSuppressed}});Object.defineProperty(u,"suppressTracing",{enumerable:!0,get:function(){return ro.suppressTracing}});Object.defineProperty(u,"unsuppressTracing",{enumerable:!0,get:function(){return ro.unsuppressTracing}});var $L=zn();Object.defineProperty(u,"TraceState",{enumerable:!0,get:function(){return $L.TraceState}});var XL=hS();Object.defineProperty(u,"merge",{enumerable:!0,get:function(){return XL.merge}});var US=RS();Object.defineProperty(u,"TimeoutError",{enumerable:!0,get:function(){return US.TimeoutError}});Object.defineProperty(u,"callWithTimeout",{enumerable:!0,get:function(){return US.callWithTimeout}});var bS=gS();Object.defineProperty(u,"isUrlIgnored",{enumerable:!0,get:function(){return bS.isUrlIgnored}});Object.defineProperty(u,"urlMatches",{enumerable:!0,get:function(){return bS.urlMatches}});var zL=MS();Object.defineProperty(u,"BindOnceFuture",{enumerable:!0,get:function(){return zL.BindOnceFuture}});var QL=CS();Object.defineProperty(u,"diagLogLevelFromString",{enumerable:!0,get:function(){return QL.diagLogLevelFromString}});var JL=IS();u.internal={_export:JL._export}});var oe={};import*as YV from"async_hooks";var Uo=F(()=>{tt(oe,YV)});var Ve={};import*as kV from"events";var Sp=F(()=>{tt(Ve,kV)});var yo=S(ln=>{"use strict";Object.defineProperty(ln,"__esModule",{value:!0});ln.AbstractAsyncHooksContextManager=void 0;var hI=(Sp(),b(Ve)),RI=["addListener","on","once","prependListener","prependOnceListener"],bo=class{bind(t,e){return e instanceof hI.EventEmitter?this._bindEventEmitter(t,e):typeof e=="function"?this._bindFunction(t,e):e}_bindFunction(t,e){let n=this,o=function(...s){return n.with(t,()=>e.apply(this,s))};return Object.defineProperty(o,"length",{enumerable:!1,configurable:!0,writable:!1,value:e.length}),o}_bindEventEmitter(t,e){return this._getPatchMap(e)!==void 0||(this._createPatchMap(e),RI.forEach(o=>{e[o]!==void 0&&(e[o]=this._patchAddListener(e,e[o],t))}),typeof e.removeListener=="function"&&(e.removeListener=this._patchRemoveListener(e,e.removeListener)),typeof e.off=="function"&&(e.off=this._patchRemoveListener(e,e.off)),typeof e.removeAllListeners=="function"&&(e.removeAllListeners=this._patchRemoveAllListeners(e,e.removeAllListeners))),e}_patchRemoveListener(t,e){let n=this;return function(o,s){let i=n._getPatchMap(t)?.[o];if(i===void 0)return e.call(this,o,s);let a=i.get(s);return e.call(this,o,a||s)}}_patchRemoveAllListeners(t,e){let n=this;return function(o){let s=n._getPatchMap(t);return s!==void 0&&(arguments.length===0?n._createPatchMap(t):s[o]!==void 0&&delete s[o]),e.apply(this,arguments)}}_patchAddListener(t,e,n){let o=this;return function(s,i){if(o._wrapped)return e.call(this,s,i);let a=o._getPatchMap(t);a===void 0&&(a=o._createPatchMap(t));let _=a[s];_===void 0&&(_=new WeakMap,a[s]=_);let E=o.bind(n,i);_.set(i,E),o._wrapped=!0;try{return e.call(this,s,E)}finally{o._wrapped=!1}}}_createPatchMap(t){let e=Object.create(null);return t[this._kOtListeners]=e,e}_getPatchMap(t){return t[this._kOtListeners]}_kOtListeners=Symbol("OtListeners");_wrapped=!1};ln.AbstractAsyncHooksContextManager=bo});var pp=S(An=>{"use strict";Object.defineProperty(An,"__esModule",{value:!0});An.AsyncHooksContextManager=void 0;var OI=(d(),b(c)),gI=(Uo(),b(oe)),NI=yo(),Vo=class extends NI.AbstractAsyncHooksContextManager{_asyncHook;_contexts=new Map;_stack=[];constructor(){super(),this._asyncHook=gI.createHook({init:this._init.bind(this),before:this._before.bind(this),after:this._after.bind(this),destroy:this._destroy.bind(this),promiseResolve:this._destroy.bind(this)})}active(){return this._stack[this._stack.length-1]??OI.ROOT_CONTEXT}with(t,e,n,...o){this._enterContext(t);try{return e.call(n,...o)}finally{this._exitContext()}}enable(){return this._asyncHook.enable(),this}disable(){return this._asyncHook.disable(),this._contexts.clear(),this._stack=[],this}_init(t,e){if(e==="TIMERWRAP")return;let n=this._stack[this._stack.length-1];n!==void 0&&this._contexts.set(t,n)}_destroy(t){this._contexts.delete(t)}_before(t){let e=this._contexts.get(t);e!==void 0&&this._enterContext(e)}_after(){this._exitContext()}_enterContext(t){this._stack.push(t)}_exitContext(){this._stack.pop()}};An.AsyncHooksContextManager=Vo});var lp=S(dn=>{"use strict";Object.defineProperty(dn,"__esModule",{value:!0});dn.AsyncLocalStorageContextManager=void 0;var MI=(d(),b(c)),PI=(Uo(),b(oe)),CI=yo(),vo=class extends CI.AbstractAsyncHooksContextManager{_asyncLocalStorage;constructor(){super(),this._asyncLocalStorage=new PI.AsyncLocalStorage}active(){return this._asyncLocalStorage.getStore()??MI.ROOT_CONTEXT}with(t,e,n,...o){let s=n==null?e:e.bind(n);return this._asyncLocalStorage.run(t,s,...o)}enable(){return this}disable(){return this._asyncLocalStorage.disable(),this}};dn.AsyncLocalStorageContextManager=vo});var Ap=S(se=>{"use strict";Object.defineProperty(se,"__esModule",{value:!0});se.AsyncLocalStorageContextManager=se.AsyncHooksContextManager=void 0;var LI=pp();Object.defineProperty(se,"AsyncHooksContextManager",{enumerable:!0,get:function(){return LI.AsyncHooksContextManager}});var II=lp();Object.defineProperty(se,"AsyncLocalStorageContextManager",{enumerable:!0,get:function(){return II.AsyncLocalStorageContextManager}})});var Gp=S(X=>{"use strict";Object.defineProperty(X,"__esModule",{value:!0});X.toAnyValue=X.toKeyValue=X.toAttributes=X.createInstrumentationScope=X.createResource=void 0;function VI(r){let t={attributes:wp(r.attributes),droppedAttributesCount:0},e=r.schemaUrl;return e&&e!==""&&(t.schemaUrl=e),t}X.createResource=VI;function vI(r){return{name:r.name,version:r.version}}X.createInstrumentationScope=vI;function wp(r){return Object.keys(r).map(t=>Ho(t,r[t]))}X.toAttributes=wp;function Ho(r,t){return{key:r,value:Fo(t)}}X.toKeyValue=Ho;function Fo(r){let t=typeof r;return t==="string"?{stringValue:r}:t==="number"?Number.isInteger(r)?{intValue:r}:{doubleValue:r}:t==="boolean"?{boolValue:r}:r instanceof Uint8Array?{bytesValue:r}:Array.isArray(r)?{arrayValue:{values:r.map(Fo)}}:t==="object"&&r!=null?{kvlistValue:{values:Object.entries(r).map(([e,n])=>Ho(e,n))}}:{}}X.toAnyValue=Fo});var Fp=S(hn=>{"use strict";Object.defineProperty(hn,"__esModule",{value:!0});hn.hexToBinary=void 0;function Hp(r){return r>=48&&r<=57?r-48:r>=97&&r<=102?r-87:r-55}function BI(r){let t=new Uint8Array(r.length/2),e=0;for(let n=0;n<r.length;n+=2){let o=Hp(r.charCodeAt(n)),s=Hp(r.charCodeAt(n+1));t[e++]=o<<4|s}return t}hn.hexToBinary=BI});var Wp=S(z=>{"use strict";Object.defineProperty(z,"__esModule",{value:!0});z.getOtlpEncoder=z.encodeAsString=z.encodeAsLongBits=z.toLongBits=z.hrTimeToNanos=void 0;var wI=P(),Yo=Fp();function ko(r){let t=BigInt(1e9);return BigInt(r[0])*t+BigInt(r[1])}z.hrTimeToNanos=ko;function kp(r){let t=Number(BigInt.asUintN(32,r)),e=Number(BigInt.asUintN(32,r>>BigInt(32)));return{low:t,high:e}}z.toLongBits=kp;function Ko(r){let t=ko(r);return kp(t)}z.encodeAsLongBits=Ko;function Kp(r){return ko(r).toString()}z.encodeAsString=Kp;var GI=typeof BigInt<"u"?Kp:wI.hrTimeToNanoseconds;function Yp(r){return r}function jp(r){if(r!==void 0)return(0,Yo.hexToBinary)(r)}var HI={encodeHrTime:Ko,encodeSpanContext:Yo.hexToBinary,encodeOptionalSpanContext:jp};function FI(r){if(r===void 0)return HI;let t=r.useLongBits??!0,e=r.useHex??!1;return{encodeHrTime:t?Ko:GI,encodeSpanContext:e?Yp:Yo.hexToBinary,encodeOptionalSpanContext:e?Yp:jp}}z.getOtlpEncoder=FI});var jo=S(Tt=>{"use strict";Object.defineProperty(Tt,"__esModule",{value:!0});Tt.createExportTraceServiceRequest=Tt.toOtlpSpanEvent=Tt.toOtlpLink=Tt.sdkSpanToOtlpSpan=void 0;var ve=Gp(),YI=Wp();function qp(r,t){let e=r.spanContext(),n=r.status,o=r.parentSpanContext?.spanId?t.encodeSpanContext(r.parentSpanContext?.spanId):void 0;return{traceId:t.encodeSpanContext(e.traceId),spanId:t.encodeSpanContext(e.spanId),parentSpanId:o,traceState:e.traceState?.serialize(),name:r.name,kind:r.kind==null?0:r.kind+1,startTimeUnixNano:t.encodeHrTime(r.startTime),endTimeUnixNano:t.encodeHrTime(r.endTime),attributes:(0,ve.toAttributes)(r.attributes),droppedAttributesCount:r.droppedAttributesCount,events:r.events.map(s=>Xp(s,t)),droppedEventsCount:r.droppedEventsCount,status:{code:n.code,message:n.message},links:r.links.map(s=>$p(s,t)),droppedLinksCount:r.droppedLinksCount}}Tt.sdkSpanToOtlpSpan=qp;function $p(r,t){return{attributes:r.attributes?(0,ve.toAttributes)(r.attributes):[],spanId:t.encodeSpanContext(r.context.spanId),traceId:t.encodeSpanContext(r.context.traceId),traceState:r.context.traceState?.serialize(),droppedAttributesCount:r.droppedAttributesCount||0}}Tt.toOtlpLink=$p;function Xp(r,t){return{attributes:r.attributes?(0,ve.toAttributes)(r.attributes):[],name:r.name,timeUnixNano:t.encodeHrTime(r.time),droppedAttributesCount:r.droppedAttributesCount||0}}Tt.toOtlpSpanEvent=Xp;function kI(r,t){let e=(0,YI.getOtlpEncoder)(t);return{resourceSpans:jI(r,e)}}Tt.createExportTraceServiceRequest=kI;function KI(r){let t=new Map;for(let e of r){let n=t.get(e.resource);n||(n=new Map,t.set(e.resource,n));let o=`${e.instrumentationScope.name}@${e.instrumentationScope.version||""}:${e.instrumentationScope.schemaUrl||""}`,s=n.get(o);s||(s=[],n.set(o,s)),s.push(e)}return t}function jI(r,t){let e=KI(r),n=[],o=e.entries(),s=o.next();for(;!s.done;){let[i,a]=s.value,_=[],E=a.values(),T=E.next();for(;!T.done;){let h=T.value;if(h.length>0){let R=h.map(I=>qp(I,t));_.push({scope:(0,ve.createInstrumentationScope)(h[0].instrumentationScope),spans:R,schemaUrl:h[0].instrumentationScope.schemaUrl})}T=E.next()}let l=(0,ve.createResource)(i),A={resource:l,scopeSpans:_,schemaUrl:l.schemaUrl};n.push(A),s=o.next()}return n}});var Wo=S(Rn=>{"use strict";Object.defineProperty(Rn,"__esModule",{value:!0});Rn.JsonTraceSerializer=void 0;var WI=jo();Rn.JsonTraceSerializer={serializeRequest:r=>{let t=(0,WI.createExportTraceServiceRequest)(r,{useHex:!0,useLongBits:!1});return new TextEncoder().encode(JSON.stringify(t))},deserializeResponse:r=>{if(r.length===0)return{};let t=new TextDecoder;return JSON.parse(t.decode(r))}}});var Jp=S((hv,Qp)=>{"use strict";Qp.exports=XI;function XI(r,t){for(var e=new Array(arguments.length-1),n=0,o=2,s=!0;o<arguments.length;)e[n++]=arguments[o++];return new Promise(function(a,_){e[n]=function(T){if(s)if(s=!1,T)_(T);else{for(var l=new Array(arguments.length-1),A=0;A<l.length;)l[A++]=arguments[A];a.apply(null,l)}};try{r.apply(t||null,e)}catch(E){s&&(s=!1,_(E))}})}});var rl=S(el=>{"use strict";var gn=el;gn.length=function(t){var e=t.length;if(!e)return 0;for(var n=0;--e%4>1&&t.charAt(e)==="=";)++n;return Math.ceil(t.length*3)/4-n};var _e=new Array(64),tl=new Array(123);for(rt=0;rt<64;)tl[_e[rt]=rt<26?rt+65:rt<52?rt+71:rt<62?rt-4:rt-59|43]=rt++;var rt;gn.encode=function(t,e,n){for(var o=null,s=[],i=0,a=0,_;e<n;){var E=t[e++];switch(a){case 0:s[i++]=_e[E>>2],_=(E&3)<<4,a=1;break;case 1:s[i++]=_e[_|E>>4],_=(E&15)<<2,a=2;break;case 2:s[i++]=_e[_|E>>6],s[i++]=_e[E&63],a=0;break}i>8191&&((o||(o=[])).push(String.fromCharCode.apply(String,s)),i=0)}return a&&(s[i++]=_e[_],s[i++]=61,a===1&&(s[i++]=61)),o?(i&&o.push(String.fromCharCode.apply(String,s.slice(0,i))),o.join("")):String.fromCharCode.apply(String,s.slice(0,i))};var Zp="invalid encoding";gn.decode=function(t,e,n){for(var o=n,s=0,i,a=0;a<t.length;){var _=t.charCodeAt(a++);if(_===61&&s>1)break;if((_=tl[_])===void 0)throw Error(Zp);switch(s){case 0:i=_,s=1;break;case 1:e[n++]=i<<2|(_&48)>>4,i=_,s=2;break;case 2:e[n++]=(i&15)<<4|(_&60)>>2,i=_,s=3;break;case 3:e[n++]=(i&3)<<6|_,s=0;break}}if(s===1)throw Error(Zp);return n-o};gn.test=function(t){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(t)}});var ol=S((Ov,nl)=>{"use strict";nl.exports=Nn;function Nn(){this._listeners={}}Nn.prototype.on=function(t,e,n){return(this._listeners[t]||(this._listeners[t]=[])).push({fn:e,ctx:n||this}),this};Nn.prototype.off=function(t,e){if(t===void 0)this._listeners={};else if(e===void 0)this._listeners[t]=[];else for(var n=this._listeners[t],o=0;o<n.length;)n[o].fn===e?n.splice(o,1):++o;return this};Nn.prototype.emit=function(t){var e=this._listeners[t];if(e){for(var n=[],o=1;o<arguments.length;)n.push(arguments[o++]);for(o=0;o<e.length;)e[o].fn.apply(e[o++].ctx,n)}return this}});var ul=S((gv,El)=>{"use strict";El.exports=sl(sl);function sl(r){return typeof Float32Array<"u"?function(){var t=new Float32Array([-0]),e=new Uint8Array(t.buffer),n=e[3]===128;function o(_,E,T){t[0]=_,E[T]=e[0],E[T+1]=e[1],E[T+2]=e[2],E[T+3]=e[3]}function s(_,E,T){t[0]=_,E[T]=e[3],E[T+1]=e[2],E[T+2]=e[1],E[T+3]=e[0]}r.writeFloatLE=n?o:s,r.writeFloatBE=n?s:o;function i(_,E){return e[0]=_[E],e[1]=_[E+1],e[2]=_[E+2],e[3]=_[E+3],t[0]}function a(_,E){return e[3]=_[E],e[2]=_[E+1],e[1]=_[E+2],e[0]=_[E+3],t[0]}r.readFloatLE=n?i:a,r.readFloatBE=n?a:i}():function(){function t(n,o,s,i){var a=o<0?1:0;if(a&&(o=-o),o===0)n(1/o>0?0:2147483648,s,i);else if(isNaN(o))n(2143289344,s,i);else if(o>34028234663852886e22)n((a<<31|2139095040)>>>0,s,i);else if(o<11754943508222875e-54)n((a<<31|Math.round(o/1401298464324817e-60))>>>0,s,i);else{var _=Math.floor(Math.log(o)/Math.LN2),E=Math.round(o*Math.pow(2,-_)*8388608)&8388607;n((a<<31|_+127<<23|E)>>>0,s,i)}}r.writeFloatLE=t.bind(null,il),r.writeFloatBE=t.bind(null,al);function e(n,o,s){var i=n(o,s),a=(i>>31)*2+1,_=i>>>23&255,E=i&8388607;return _===255?E?NaN:a*(1/0):_===0?a*1401298464324817e-60*E:a*Math.pow(2,_-150)*(E+8388608)}r.readFloatLE=e.bind(null,cl),r.readFloatBE=e.bind(null,_l)}(),typeof Float64Array<"u"?function(){var t=new Float64Array([-0]),e=new Uint8Array(t.buffer),n=e[7]===128;function o(_,E,T){t[0]=_,E[T]=e[0],E[T+1]=e[1],E[T+2]=e[2],E[T+3]=e[3],E[T+4]=e[4],E[T+5]=e[5],E[T+6]=e[6],E[T+7]=e[7]}function s(_,E,T){t[0]=_,E[T]=e[7],E[T+1]=e[6],E[T+2]=e[5],E[T+3]=e[4],E[T+4]=e[3],E[T+5]=e[2],E[T+6]=e[1],E[T+7]=e[0]}r.writeDoubleLE=n?o:s,r.writeDoubleBE=n?s:o;function i(_,E){return e[0]=_[E],e[1]=_[E+1],e[2]=_[E+2],e[3]=_[E+3],e[4]=_[E+4],e[5]=_[E+5],e[6]=_[E+6],e[7]=_[E+7],t[0]}function a(_,E){return e[7]=_[E],e[6]=_[E+1],e[5]=_[E+2],e[4]=_[E+3],e[3]=_[E+4],e[2]=_[E+5],e[1]=_[E+6],e[0]=_[E+7],t[0]}r.readDoubleLE=n?i:a,r.readDoubleBE=n?a:i}():function(){function t(n,o,s,i,a,_){var E=i<0?1:0;if(E&&(i=-i),i===0)n(0,a,_+o),n(1/i>0?0:2147483648,a,_+s);else if(isNaN(i))n(0,a,_+o),n(2146959360,a,_+s);else if(i>17976931348623157e292)n(0,a,_+o),n((E<<31|2146435072)>>>0,a,_+s);else{var T;if(i<22250738585072014e-324)T=i/5e-324,n(T>>>0,a,_+o),n((E<<31|T/4294967296)>>>0,a,_+s);else{var l=Math.floor(Math.log(i)/Math.LN2);l===1024&&(l=1023),T=i*Math.pow(2,-l),n(T*4503599627370496>>>0,a,_+o),n((E<<31|l+1023<<20|T*1048576&1048575)>>>0,a,_+s)}}}r.writeDoubleLE=t.bind(null,il,0,4),r.writeDoubleBE=t.bind(null,al,4,0);function e(n,o,s,i,a){var _=n(i,a+o),E=n(i,a+s),T=(E>>31)*2+1,l=E>>>20&2047,A=4294967296*(E&1048575)+_;return l===2047?A?NaN:T*(1/0):l===0?T*5e-324*A:T*Math.pow(2,l-1075)*(A+4503599627370496)}r.readDoubleLE=e.bind(null,cl,0,4),r.readDoubleBE=e.bind(null,_l,4,0)}(),r}function il(r,t,e){t[e]=r&255,t[e+1]=r>>>8&255,t[e+2]=r>>>16&255,t[e+3]=r>>>24}function al(r,t,e){t[e]=r>>>24,t[e+1]=r>>>16&255,t[e+2]=r>>>8&255,t[e+3]=r&255}function cl(r,t){return(r[t]|r[t+1]<<8|r[t+2]<<16|r[t+3]<<24)>>>0}function _l(r,t){return(r[t]<<24|r[t+1]<<16|r[t+2]<<8|r[t+3])>>>0}});var Sl=S((Nv,Tl)=>{"use strict";Tl.exports=zI;function zI(r){return null}});var ll=S(pl=>{"use strict";var $o=pl;$o.length=function(t){for(var e=0,n=0,o=0;o<t.length;++o)n=t.charCodeAt(o),n<128?e+=1:n<2048?e+=2:(n&64512)===55296&&(t.charCodeAt(o+1)&64512)===56320?(++o,e+=4):e+=3;return e};$o.read=function(t,e,n){var o=n-e;if(o<1)return"";for(var s=null,i=[],a=0,_;e<n;)_=t[e++],_<128?i[a++]=_:_>191&&_<224?i[a++]=(_&31)<<6|t[e++]&63:_>239&&_<365?(_=((_&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,i[a++]=55296+(_>>10),i[a++]=56320+(_&1023)):i[a++]=(_&15)<<12|(t[e++]&63)<<6|t[e++]&63,a>8191&&((s||(s=[])).push(String.fromCharCode.apply(String,i)),a=0);return s?(a&&s.push(String.fromCharCode.apply(String,i.slice(0,a))),s.join("")):String.fromCharCode.apply(String,i.slice(0,a))};$o.write=function(t,e,n){for(var o=n,s,i,a=0;a<t.length;++a)s=t.charCodeAt(a),s<128?e[n++]=s:s<2048?(e[n++]=s>>6|192,e[n++]=s&63|128):(s&64512)===55296&&((i=t.charCodeAt(a+1))&64512)===56320?(s=65536+((s&1023)<<10)+(i&1023),++a,e[n++]=s>>18|240,e[n++]=s>>12&63|128,e[n++]=s>>6&63|128,e[n++]=s&63|128):(e[n++]=s>>12|224,e[n++]=s>>6&63|128,e[n++]=s&63|128);return n-o}});var dl=S((Pv,Al)=>{"use strict";Al.exports=QI;function QI(r,t,e){var n=e||8192,o=n>>>1,s=null,i=n;return function(_){if(_<1||_>o)return r(_);i+_>n&&(s=r(n),i=0);var E=t.call(s,i,i+=_);return i&7&&(i=(i|7)+1),E}}});var fl=S((Cv,ml)=>{"use strict";ml.exports=U;var Be=Mt();function U(r,t){this.lo=r>>>0,this.hi=t>>>0}var vt=U.zero=new U(0,0);vt.toNumber=function(){return 0};vt.zzEncode=vt.zzDecode=function(){return this};vt.length=function(){return 1};var JI=U.zeroHash="\0\0\0\0\0\0\0\0";U.fromNumber=function(t){if(t===0)return vt;var e=t<0;e&&(t=-t);var n=t>>>0,o=(t-n)/4294967296>>>0;return e&&(o=~o>>>0,n=~n>>>0,++n>4294967295&&(n=0,++o>4294967295&&(o=0))),new U(n,o)};U.from=function(t){if(typeof t=="number")return U.fromNumber(t);if(Be.isString(t))if(Be.Long)t=Be.Long.fromString(t);else return U.fromNumber(parseInt(t,10));return t.low||t.high?new U(t.low>>>0,t.high>>>0):vt};U.prototype.toNumber=function(t){if(!t&&this.hi>>>31){var e=~this.lo+1>>>0,n=~this.hi>>>0;return e||(n=n+1>>>0),-(e+n*4294967296)}return this.lo+this.hi*4294967296};U.prototype.toLong=function(t){return Be.Long?new Be.Long(this.lo|0,this.hi|0,!!t):{low:this.lo|0,high:this.hi|0,unsigned:!!t}};var Nt=String.prototype.charCodeAt;U.fromHash=function(t){return t===JI?vt:new U((Nt.call(t,0)|Nt.call(t,1)<<8|Nt.call(t,2)<<16|Nt.call(t,3)<<24)>>>0,(Nt.call(t,4)|Nt.call(t,5)<<8|Nt.call(t,6)<<16|Nt.call(t,7)<<24)>>>0)};U.prototype.toHash=function(){return String.fromCharCode(this.lo&255,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,this.hi&255,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)};U.prototype.zzEncode=function(){var t=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^t)>>>0,this.lo=(this.lo<<1^t)>>>0,this};U.prototype.zzDecode=function(){var t=-(this.lo&1);return this.lo=((this.lo>>>1|this.hi<<31)^t)>>>0,this.hi=(this.hi>>>1^t)>>>0,this};U.prototype.length=function(){var t=this.lo,e=(this.lo>>>28|this.hi<<4)>>>0,n=this.hi>>>24;return n===0?e===0?t<16384?t<128?1:2:t<2097152?3:4:e<16384?e<128?5:6:e<2097152?7:8:n<128?9:10}});var Mt=S(Xo=>{"use strict";var p=Xo;p.asPromise=Jp();p.base64=rl();p.EventEmitter=ol();p.float=ul();p.inquire=Sl();p.utf8=ll();p.pool=dl();p.LongBits=fl();p.isNode=!!(typeof global<"u"&&global&&global.process&&global.process.versions&&global.process.versions.node);p.global=p.isNode&&global||typeof window<"u"&&window||typeof self<"u"&&self||Xo;p.emptyArray=Object.freeze?Object.freeze([]):[];p.emptyObject=Object.freeze?Object.freeze({}):{};p.isInteger=Number.isInteger||function(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t};p.isString=function(t){return typeof t=="string"||t instanceof String};p.isObject=function(t){return t&&typeof t=="object"};p.isset=p.isSet=function(t,e){var n=t[e];return n!=null&&t.hasOwnProperty(e)?typeof n!="object"||(Array.isArray(n)?n.length:Object.keys(n).length)>0:!1};p.Buffer=function(){try{var r=p.inquire("buffer").Buffer;return r.prototype.utf8Write?r:null}catch{return null}}();p._Buffer_from=null;p._Buffer_allocUnsafe=null;p.newBuffer=function(t){return typeof t=="number"?p.Buffer?p._Buffer_allocUnsafe(t):new p.Array(t):p.Buffer?p._Buffer_from(t):typeof Uint8Array>"u"?t:new Uint8Array(t)};p.Array=typeof Uint8Array<"u"?Uint8Array:Array;p.Long=p.global.dcodeIO&&p.global.dcodeIO.Long||p.global.Long||p.inquire("long");p.key2Re=/^true|false|0|1$/;p.key32Re=/^-?(?:0|[1-9][0-9]*)$/;p.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/;p.longToHash=function(t){return t?p.LongBits.from(t).toHash():p.LongBits.zeroHash};p.longFromHash=function(t,e){var n=p.LongBits.fromHash(t);return p.Long?p.Long.fromBits(n.lo,n.hi,e):n.toNumber(!!e)};function hl(r,t,e){for(var n=Object.keys(t),o=0;o<n.length;++o)(r[n[o]]===void 0||!e)&&(r[n[o]]=t[n[o]]);return r}p.merge=hl;p.lcFirst=function(t){return t.charAt(0).toLowerCase()+t.substring(1)};function Rl(r){function t(e,n){if(!(this instanceof t))return new t(e,n);Object.defineProperty(this,"message",{get:function(){return e}}),Error.captureStackTrace?Error.captureStackTrace(this,t):Object.defineProperty(this,"stack",{value:new Error().stack||""}),n&&hl(this,n)}return t.prototype=Object.create(Error.prototype,{constructor:{value:t,writable:!0,enumerable:!1,configurable:!0},name:{get:function(){return r},set:void 0,enumerable:!1,configurable:!0},toString:{value:function(){return this.name+": "+this.message},writable:!0,enumerable:!1,configurable:!0}}),t}p.newError=Rl;p.ProtocolError=Rl("ProtocolError");p.oneOfGetter=function(t){for(var e={},n=0;n<t.length;++n)e[t[n]]=1;return function(){for(var o=Object.keys(this),s=o.length-1;s>-1;--s)if(e[o[s]]===1&&this[o[s]]!==void 0&&this[o[s]]!==null)return o[s]}};p.oneOfSetter=function(t){return function(e){for(var n=0;n<t.length;++n)t[n]!==e&&delete this[t[n]]}};p.toJSONOptions={longs:String,enums:String,bytes:String,json:!0};p._configure=function(){var r=p.Buffer;if(!r){p._Buffer_from=p._Buffer_allocUnsafe=null;return}p._Buffer_from=r.from!==Uint8Array.from&&r.from||function(e,n){return new r(e,n)},p._Buffer_allocUnsafe=r.allocUnsafe||function(e){return new r(e)}}});var rs=S((Iv,Ml)=>{"use strict";Ml.exports=m;var Q=Mt(),zo,Mn=Q.LongBits,Ol=Q.base64,gl=Q.utf8;function we(r,t,e){this.fn=r,this.len=t,this.next=void 0,this.val=e}function Jo(){}function ZI(r){this.head=r.head,this.tail=r.tail,this.len=r.len,this.next=r.states}function m(){this.len=0,this.head=new we(Jo,0,0),this.tail=this.head,this.states=null}var Nl=function(){return Q.Buffer?function(){return(m.create=function(){return new zo})()}:function(){return new m}};m.create=Nl();m.alloc=function(t){return new Q.Array(t)};Q.Array!==Array&&(m.alloc=Q.pool(m.alloc,Q.Array.prototype.subarray));m.prototype._push=function(t,e,n){return this.tail=this.tail.next=new we(t,e,n),this.len+=e,this};function Zo(r,t,e){t[e]=r&255}function tx(r,t,e){for(;r>127;)t[e++]=r&127|128,r>>>=7;t[e]=r}function ts(r,t){this.len=r,this.next=void 0,this.val=t}ts.prototype=Object.create(we.prototype);ts.prototype.fn=tx;m.prototype.uint32=function(t){return this.len+=(this.tail=this.tail.next=new ts((t=t>>>0)<128?1:t<16384?2:t<2097152?3:t<268435456?4:5,t)).len,this};m.prototype.int32=function(t){return t<0?this._push(es,10,Mn.fromNumber(t)):this.uint32(t)};m.prototype.sint32=function(t){return this.uint32((t<<1^t>>31)>>>0)};function es(r,t,e){for(;r.hi;)t[e++]=r.lo&127|128,r.lo=(r.lo>>>7|r.hi<<25)>>>0,r.hi>>>=7;for(;r.lo>127;)t[e++]=r.lo&127|128,r.lo=r.lo>>>7;t[e++]=r.lo}m.prototype.uint64=function(t){var e=Mn.from(t);return this._push(es,e.length(),e)};m.prototype.int64=m.prototype.uint64;m.prototype.sint64=function(t){var e=Mn.from(t).zzEncode();return this._push(es,e.length(),e)};m.prototype.bool=function(t){return this._push(Zo,1,t?1:0)};function Qo(r,t,e){t[e]=r&255,t[e+1]=r>>>8&255,t[e+2]=r>>>16&255,t[e+3]=r>>>24}m.prototype.fixed32=function(t){return this._push(Qo,4,t>>>0)};m.prototype.sfixed32=m.prototype.fixed32;m.prototype.fixed64=function(t){var e=Mn.from(t);return this._push(Qo,4,e.lo)._push(Qo,4,e.hi)};m.prototype.sfixed64=m.prototype.fixed64;m.prototype.float=function(t){return this._push(Q.float.writeFloatLE,4,t)};m.prototype.double=function(t){return this._push(Q.float.writeDoubleLE,8,t)};var ex=Q.Array.prototype.set?function(t,e,n){e.set(t,n)}:function(t,e,n){for(var o=0;o<t.length;++o)e[n+o]=t[o]};m.prototype.bytes=function(t){var e=t.length>>>0;if(!e)return this._push(Zo,1,0);if(Q.isString(t)){var n=m.alloc(e=Ol.length(t));Ol.decode(t,n,0),t=n}return this.uint32(e)._push(ex,e,t)};m.prototype.string=function(t){var e=gl.length(t);return e?this.uint32(e)._push(gl.write,e,t):this._push(Zo,1,0)};m.prototype.fork=function(){return this.states=new ZI(this),this.head=this.tail=new we(Jo,0,0),this.len=0,this};m.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new we(Jo,0,0),this.len=0),this};m.prototype.ldelim=function(){var t=this.head,e=this.tail,n=this.len;return this.reset().uint32(n),n&&(this.tail.next=t.next,this.tail=e,this.len+=n),this};m.prototype.finish=function(){for(var t=this.head.next,e=this.constructor.alloc(this.len),n=0;t;)t.fn(t.val,e,n),n+=t.len,t=t.next;return e};m._configure=function(r){zo=r,m.create=Nl(),zo._configure()}});var Ll=S((xv,Cl)=>{"use strict";Cl.exports=St;var Pl=rs();(St.prototype=Object.create(Pl.prototype)).constructor=St;var Pt=Mt();function St(){Pl.call(this)}St._configure=function(){St.alloc=Pt._Buffer_allocUnsafe,St.writeBytesBuffer=Pt.Buffer&&Pt.Buffer.prototype instanceof Uint8Array&&Pt.Buffer.prototype.set.name==="set"?function(t,e,n){e.set(t,n)}:function(t,e,n){if(t.copy)t.copy(e,n,0,t.length);else for(var o=0;o<t.length;)e[n++]=t[o++]}};St.prototype.bytes=function(t){Pt.isString(t)&&(t=Pt._Buffer_from(t,"base64"));var e=t.length>>>0;return this.uint32(e),e&&this._push(St.writeBytesBuffer,e,t),this};function rx(r,t,e){r.length<40?Pt.utf8.write(r,t,e):t.utf8Write?t.utf8Write(r,e):t.write(r,e)}St.prototype.string=function(t){var e=Pt.Buffer.byteLength(t);return this.uint32(e),e&&this._push(rx,e,t),this};St._configure()});var ss=S((Dv,bl)=>{"use strict";bl.exports=L;var nt=Mt(),os,Dl=nt.LongBits,nx=nt.utf8;function ot(r,t){return RangeError("index out of range: "+r.pos+" + "+(t||1)+" > "+r.len)}function L(r){this.buf=r,this.pos=0,this.len=r.length}var Il=typeof Uint8Array<"u"?function(t){if(t instanceof Uint8Array||Array.isArray(t))return new L(t);throw Error("illegal buffer")}:function(t){if(Array.isArray(t))return new L(t);throw Error("illegal buffer")},Ul=function(){return nt.Buffer?function(e){return(L.create=function(o){return nt.Buffer.isBuffer(o)?new os(o):Il(o)})(e)}:Il};L.create=Ul();L.prototype._slice=nt.Array.prototype.subarray||nt.Array.prototype.slice;L.prototype.uint32=function(){var t=4294967295;return function(){if(t=(this.buf[this.pos]&127)>>>0,this.buf[this.pos++]<128||(t=(t|(this.buf[this.pos]&127)<<7)>>>0,this.buf[this.pos++]<128)||(t=(t|(this.buf[this.pos]&127)<<14)>>>0,this.buf[this.pos++]<128)||(t=(t|(this.buf[this.pos]&127)<<21)>>>0,this.buf[this.pos++]<128)||(t=(t|(this.buf[this.pos]&15)<<28)>>>0,this.buf[this.pos++]<128))return t;if((this.pos+=5)>this.len)throw this.pos=this.len,ot(this,10);return t}}();L.prototype.int32=function(){return this.uint32()|0};L.prototype.sint32=function(){var t=this.uint32();return t>>>1^-(t&1)|0};function ns(){var r=new Dl(0,0),t=0;if(this.len-this.pos>4){for(;t<4;++t)if(r.lo=(r.lo|(this.buf[this.pos]&127)<<t*7)>>>0,this.buf[this.pos++]<128)return r;if(r.lo=(r.lo|(this.buf[this.pos]&127)<<28)>>>0,r.hi=(r.hi|(this.buf[this.pos]&127)>>4)>>>0,this.buf[this.pos++]<128)return r;t=0}else{for(;t<3;++t){if(this.pos>=this.len)throw ot(this);if(r.lo=(r.lo|(this.buf[this.pos]&127)<<t*7)>>>0,this.buf[this.pos++]<128)return r}return r.lo=(r.lo|(this.buf[this.pos++]&127)<<t*7)>>>0,r}if(this.len-this.pos>4){for(;t<5;++t)if(r.hi=(r.hi|(this.buf[this.pos]&127)<<t*7+3)>>>0,this.buf[this.pos++]<128)return r}else for(;t<5;++t){if(this.pos>=this.len)throw ot(this);if(r.hi=(r.hi|(this.buf[this.pos]&127)<<t*7+3)>>>0,this.buf[this.pos++]<128)return r}throw Error("invalid varint encoding")}L.prototype.bool=function(){return this.uint32()!==0};function Pn(r,t){return(r[t-4]|r[t-3]<<8|r[t-2]<<16|r[t-1]<<24)>>>0}L.prototype.fixed32=function(){if(this.pos+4>this.len)throw ot(this,4);return Pn(this.buf,this.pos+=4)};L.prototype.sfixed32=function(){if(this.pos+4>this.len)throw ot(this,4);return Pn(this.buf,this.pos+=4)|0};function xl(){if(this.pos+8>this.len)throw ot(this,8);return new Dl(Pn(this.buf,this.pos+=4),Pn(this.buf,this.pos+=4))}L.prototype.float=function(){if(this.pos+4>this.len)throw ot(this,4);var t=nt.float.readFloatLE(this.buf,this.pos);return this.pos+=4,t};L.prototype.double=function(){if(this.pos+8>this.len)throw ot(this,4);var t=nt.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,t};L.prototype.bytes=function(){var t=this.uint32(),e=this.pos,n=this.pos+t;if(n>this.len)throw ot(this,t);if(this.pos+=t,Array.isArray(this.buf))return this.buf.slice(e,n);if(e===n){var o=nt.Buffer;return o?o.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,e,n)};L.prototype.string=function(){var t=this.bytes();return nx.read(t,0,t.length)};L.prototype.skip=function(t){if(typeof t=="number"){if(this.pos+t>this.len)throw ot(this,t);this.pos+=t}else do if(this.pos>=this.len)throw ot(this);while(this.buf[this.pos++]&128);return this};L.prototype.skipType=function(r){switch(r){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;(r=this.uint32()&7)!==4;)this.skipType(r);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+r+" at offset "+this.pos)}return this};L._configure=function(r){os=r,L.create=Ul(),os._configure();var t=nt.Long?"toLong":"toNumber";nt.merge(L.prototype,{int64:function(){return ns.call(this)[t](!1)},uint64:function(){return ns.call(this)[t](!0)},sint64:function(){return ns.call(this).zzDecode()[t](!1)},fixed64:function(){return xl.call(this)[t](!0)},sfixed64:function(){return xl.call(this)[t](!1)}})}});var Bl=S((Uv,vl)=>{"use strict";vl.exports=Bt;var Vl=ss();(Bt.prototype=Object.create(Vl.prototype)).constructor=Bt;var yl=Mt();function Bt(r){Vl.call(this,r)}Bt._configure=function(){yl.Buffer&&(Bt.prototype._slice=yl.Buffer.prototype.slice)};Bt.prototype.string=function(){var t=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+t,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+t,this.len))};Bt._configure()});var Gl=S((bv,wl)=>{"use strict";wl.exports=Ge;var is=Mt();(Ge.prototype=Object.create(is.EventEmitter.prototype)).constructor=Ge;function Ge(r,t,e){if(typeof r!="function")throw TypeError("rpcImpl must be a function");is.EventEmitter.call(this),this.rpcImpl=r,this.requestDelimited=!!t,this.responseDelimited=!!e}Ge.prototype.rpcCall=function r(t,e,n,o,s){if(!o)throw TypeError("request must be specified");var i=this;if(!s)return is.asPromise(r,i,t,e,n,o);if(!i.rpcImpl){setTimeout(function(){s(Error("already ended"))},0);return}try{return i.rpcImpl(t,e[i.requestDelimited?"encodeDelimited":"encode"](o).finish(),function(_,E){if(_)return i.emit("error",_,t),s(_);if(E===null){i.end(!0);return}if(!(E instanceof n))try{E=n[i.responseDelimited?"decodeDelimited":"decode"](E)}catch(T){return i.emit("error",T,t),s(T)}return i.emit("data",E,t),s(null,E)})}catch(a){i.emit("error",a,t),setTimeout(function(){s(a)},0);return}};Ge.prototype.end=function(t){return this.rpcImpl&&(t||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}});var Fl=S(Hl=>{"use strict";var ox=Hl;ox.Service=Gl()});var kl=S((Vv,Yl)=>{"use strict";Yl.exports={}});var Wl=S(jl=>{"use strict";var G=jl;G.build="minimal";G.Writer=rs();G.BufferWriter=Ll();G.Reader=ss();G.BufferReader=Bl();G.util=Mt();G.rpc=Fl();G.roots=kl();G.configure=Kl;function Kl(){G.util._configure(),G.Writer._configure(G.BufferWriter),G.Reader._configure(G.BufferReader)}Kl()});var $l=S((Bv,ql)=>{"use strict";ql.exports=Wl()});var kS=O(P());d();d();var hr=O(P());de();function no(){return"unknown_service"}var Kt=r=>r!==null&&typeof r=="object"&&typeof r.then=="function";var Rr=class r{_rawAttributes;_asyncAttributesPending=!1;_schemaUrl;_memoizedAttributes;static FromAttributeList(t,e){let n=new r({},e);return n._rawAttributes=yS(t),n._asyncAttributesPending=t.filter(([o,s])=>Kt(s)).length>0,n}constructor(t,e){let n=t.attributes??{};this._rawAttributes=Object.entries(n).map(([o,s])=>(Kt(s)&&(this._asyncAttributesPending=!0),[o,s])),this._rawAttributes=yS(this._rawAttributes),this._schemaUrl=ZL(e?.schemaUrl)}get asyncAttributesPending(){return this._asyncAttributesPending}async waitForAsyncAttributes(){if(this.asyncAttributesPending){for(let t=0;t<this._rawAttributes.length;t++){let[e,n]=this._rawAttributes[t];this._rawAttributes[t]=[e,Kt(n)?await n:n]}this._asyncAttributesPending=!1}}get attributes(){if(this.asyncAttributesPending&&c.diag.error("Accessing resource attributes before async attributes settled"),this._memoizedAttributes)return this._memoizedAttributes;let t={};for(let[e,n]of this._rawAttributes){if(Kt(n)){c.diag.debug(`Unsettled resource attribute ${e} skipped`);continue}n!=null&&(t[e]??=n)}return this._asyncAttributesPending||(this._memoizedAttributes=t),t}getRawAttributes(){return this._rawAttributes}get schemaUrl(){return this._schemaUrl}merge(t){if(t==null)return this;let e=tI(this,t),n=e?{schemaUrl:e}:void 0;return r.FromAttributeList([...t.getRawAttributes(),...this.getRawAttributes()],n)}};function Re(r,t){return Rr.FromAttributeList(Object.entries(r),t)}function VS(r,t){return new Rr(r,t)}function Or(){return Re({})}function Ut(){return Re({[Ae]:no(),[Qe]:hr.SDK_INFO[Qe],[Je]:hr.SDK_INFO[Je],[Ze]:hr.SDK_INFO[Ze]})}function yS(r){return r.map(([t,e])=>Kt(e)?[t,e.catch(n=>{c.diag.debug("promise rejection for resource attribute: %s - %s",t,n)})]:[t,e])}function ZL(r){if(typeof r=="string"||r===void 0)return r;c.diag.warn("Schema URL must be string or undefined, got %s. Schema URL will be ignored.",r)}function tI(r,t){let e=r?.schemaUrl,n=t?.schemaUrl,o=e===void 0||e==="",s=n===void 0||n==="";if(o)return n;if(s||e===n)return e;c.diag.warn('Schema URL merge conflict: old resource has "%s", updating resource has "%s". Resulting resource will have undefined Schema URL.',e,n)}var oo=(r={})=>(r.detectors||[]).map(e=>{try{let n=VS(e.detect(r));return c.diag.debug(`${e.constructor.name} found resource.`,n),n}catch(n){return c.diag.debug(`${e.constructor.name} failed: ${n.message}`),Or()}}).reduce((e,n)=>e.merge(n),Or());d();de();var so=O(P()),io=class{_MAX_LENGTH=255;_COMMA_SEPARATOR=",";_LABEL_KEY_VALUE_SPLITTER="=";_ERROR_MESSAGE_INVALID_CHARS="should be a ASCII string with a length greater than 0 and not exceed "+this._MAX_LENGTH+" characters.";_ERROR_MESSAGE_INVALID_VALUE="should be a ASCII string with a length not exceed "+this._MAX_LENGTH+" characters.";detect(t){let e={},n=(0,so.getStringFromEnv)("OTEL_RESOURCE_ATTRIBUTES"),o=(0,so.getStringFromEnv)("OTEL_SERVICE_NAME");if(n)try{let s=this._parseResourceAttributes(n);Object.assign(e,s)}catch(s){c.diag.debug(`EnvDetector failed: ${s.message}`)}return o&&(e[Ae]=o),{attributes:e}}_parseResourceAttributes(t){if(!t)return{};let e={},n=t.split(this._COMMA_SEPARATOR,-1);for(let o of n){let s=o.split(this._LABEL_KEY_VALUE_SPLITTER,-1);if(s.length!==2)continue;let[i,a]=s;if(i=i.trim(),a=a.trim().split(/^"|"$/).join(""),!this._isValidAndNotEmpty(i))throw new Error(`Attribute key ${this._ERROR_MESSAGE_INVALID_CHARS}`);if(!this._isValid(a))throw new Error(`Attribute value ${this._ERROR_MESSAGE_INVALID_VALUE}`);e[i]=decodeURIComponent(a)}return e}_isValid(t){return t.length<=this._MAX_LENGTH&&this._isBaggageOctetString(t)}_isBaggageOctetString(t){for(let e=0;e<t.length;e++){let n=t.charCodeAt(e);if(n<33||n===44||n===59||n===92||n>126)return!1}return!0}_isValidAndNotEmpty(t){return t.length>0&&this._isValid(t)}},gr=new io;d();var jt=O(P());d();var N=O(P());de();var vS="exception";var Nr=class{_spanContext;kind;parentSpanContext;attributes={};links=[];events=[];startTime;resource;instrumentationScope;_droppedAttributesCount=0;_droppedEventsCount=0;_droppedLinksCount=0;name;status={code:c.SpanStatusCode.UNSET};endTime=[0,0];_ended=!1;_duration=[-1,-1];_spanProcessor;_spanLimits;_attributeValueLengthLimit;_performanceStartTime;_performanceOffset;_startTimeProvided;constructor(t){let e=Date.now();this._spanContext=t.spanContext,this._performanceStartTime=N.otperformance.now(),this._performanceOffset=e-(this._performanceStartTime+(0,N.getTimeOrigin)()),this._startTimeProvided=t.startTime!=null,this._spanLimits=t.spanLimits,this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit||0,this._spanProcessor=t.spanProcessor,this.name=t.name,this.parentSpanContext=t.parentSpanContext,this.kind=t.kind,this.links=t.links||[],this.startTime=this._getTime(t.startTime??e),this.resource=t.resource,this.instrumentationScope=t.scope,t.attributes!=null&&this.setAttributes(t.attributes),this._spanProcessor.onStart(this,t.context)}spanContext(){return this._spanContext}setAttribute(t,e){if(e==null||this._isSpanEnded())return this;if(t.length===0)return c.diag.warn(`Invalid attribute key: ${t}`),this;if(!(0,N.isAttributeValue)(e))return c.diag.warn(`Invalid attribute value set for key: ${t}`),this;let{attributeCountLimit:n}=this._spanLimits;return n!==void 0&&Object.keys(this.attributes).length>=n&&!Object.prototype.hasOwnProperty.call(this.attributes,t)?(this._droppedAttributesCount++,this):(this.attributes[t]=this._truncateToSize(e),this)}setAttributes(t){for(let[e,n]of Object.entries(t))this.setAttribute(e,n);return this}addEvent(t,e,n){if(this._isSpanEnded())return this;let{eventCountLimit:o}=this._spanLimits;if(o===0)return c.diag.warn("No events allowed."),this._droppedEventsCount++,this;o!==void 0&&this.events.length>=o&&(this._droppedEventsCount===0&&c.diag.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),(0,N.isTimeInput)(e)&&((0,N.isTimeInput)(n)||(n=e),e=void 0);let s=(0,N.sanitizeAttributes)(e);return this.events.push({name:t,attributes:s,time:this._getTime(n),droppedAttributesCount:0}),this}addLink(t){return this.links.push(t),this}addLinks(t){return this.links.push(...t),this}setStatus(t){return this._isSpanEnded()?this:(this.status={...t},this.status.message!=null&&typeof t.message!="string"&&(c.diag.warn(`Dropping invalid status.message of type '${typeof t.message}', expected 'string'`),delete this.status.message),this)}updateName(t){return this._isSpanEnded()?this:(this.name=t,this)}end(t){if(this._isSpanEnded()){c.diag.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(t),this._duration=(0,N.hrTimeDuration)(this.startTime,this.endTime),this._duration[0]<0&&(c.diag.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&&c.diag.warn(`Dropped ${this._droppedEventsCount} events because eventCountLimit reached`),this._spanProcessor.onEnd(this)}_getTime(t){if(typeof t=="number"&&t<=N.otperformance.now())return(0,N.hrTime)(t+this._performanceOffset);if(typeof t=="number")return(0,N.millisToHrTime)(t);if(t instanceof Date)return(0,N.millisToHrTime)(t.getTime());if((0,N.isTimeInputHrTime)(t))return t;if(this._startTimeProvided)return(0,N.millisToHrTime)(Date.now());let e=N.otperformance.now()-this._performanceStartTime;return(0,N.addHrTimes)(this.startTime,(0,N.millisToHrTime)(e))}isRecording(){return this._ended===!1}recordException(t,e){let n={};typeof t=="string"?n[pe]=t:t&&(t.code?n[le]=t.code.toString():t.name&&(n[le]=t.name),t.message&&(n[pe]=t.message),t.stack&&(n[Yn]=t.stack)),n[le]||n[pe]?this.addEvent(vS,n,e):c.diag.warn(`Failed to record an exception ${t}`)}get duration(){return this._duration}get ended(){return this._ended}get droppedAttributesCount(){return this._droppedAttributesCount}get droppedEventsCount(){return this._droppedEventsCount}get droppedLinksCount(){return this._droppedLinksCount}_isSpanEnded(){if(this._ended){let t=new Error(`Operation attempted on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`);c.diag.warn(`Cannot execute the operation on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`,t)}return this._ended}_truncateToLimitUtil(t,e){return t.length<=e?t:t.substring(0,e)}_truncateToSize(t){let e=this._attributeValueLengthLimit;return e<=0?(c.diag.warn(`Attribute value limit must be positive, got ${e}`),t):typeof t=="string"?this._truncateToLimitUtil(t,e):Array.isArray(t)?t.map(n=>typeof n=="string"?this._truncateToLimitUtil(n,e):n):t}};d();var j=O(P());var lt;(function(r){r[r.NOT_RECORD=0]="NOT_RECORD",r[r.RECORD=1]="RECORD",r[r.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(lt||(lt={}));var k=class{shouldSample(){return{decision:lt.NOT_RECORD}}toString(){return"AlwaysOffSampler"}};var B=class{shouldSample(){return{decision:lt.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}};d();var BS=O(P());var K=class{_root;_remoteParentSampled;_remoteParentNotSampled;_localParentSampled;_localParentNotSampled;constructor(t){this._root=t.root,this._root||((0,BS.globalErrorHandler)(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new B),this._remoteParentSampled=t.remoteParentSampled??new B,this._remoteParentNotSampled=t.remoteParentNotSampled??new k,this._localParentSampled=t.localParentSampled??new B,this._localParentNotSampled=t.localParentNotSampled??new k}shouldSample(t,e,n,o,s,i){let a=c.trace.getSpanContext(t);return!a||!(0,c.isSpanContextValid)(a)?this._root.shouldSample(t,e,n,o,s,i):a.isRemote?a.traceFlags&c.TraceFlags.SAMPLED?this._remoteParentSampled.shouldSample(t,e,n,o,s,i):this._remoteParentNotSampled.shouldSample(t,e,n,o,s,i):a.traceFlags&c.TraceFlags.SAMPLED?this._localParentSampled.shouldSample(t,e,n,o,s,i):this._localParentNotSampled.shouldSample(t,e,n,o,s,i)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}};d();var At=class{_ratio;_upperBound;constructor(t=0){this._ratio=t,this._ratio=this._normalize(t),this._upperBound=Math.floor(this._ratio*4294967295)}shouldSample(t,e){return{decision:(0,c.isValidTraceId)(e)&&this._accumulate(e)<this._upperBound?lt.RECORD_AND_SAMPLED:lt.NOT_RECORD}}toString(){return`TraceIdRatioBased{${this._ratio}}`}_normalize(t){return typeof t!="number"||isNaN(t)?0:t>=1?1:t<=0?0:t}_accumulate(t){let e=0;for(let n=0;n<t.length/8;n++){let o=n*8,s=parseInt(t.slice(o,o+8),16);e=(e^s)>>>0}return e}};var at;(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"})(at||(at={}));var Mr=1;function Pr(){return{sampler:ao(),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:(0,j.getNumberFromEnv)("OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT")??1/0,attributeCountLimit:(0,j.getNumberFromEnv)("OTEL_ATTRIBUTE_COUNT_LIMIT")??128},spanLimits:{attributeValueLengthLimit:(0,j.getNumberFromEnv)("OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT")??1/0,attributeCountLimit:(0,j.getNumberFromEnv)("OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT")??128,linkCountLimit:(0,j.getNumberFromEnv)("OTEL_SPAN_LINK_COUNT_LIMIT")??128,eventCountLimit:(0,j.getNumberFromEnv)("OTEL_SPAN_EVENT_COUNT_LIMIT")??128,attributePerEventCountLimit:(0,j.getNumberFromEnv)("OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT")??128,attributePerLinkCountLimit:(0,j.getNumberFromEnv)("OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT")??128}}}function ao(){let r=(0,j.getStringFromEnv)("OTEL_TRACES_SAMPLER")??at.ParentBasedAlwaysOn;switch(r){case at.AlwaysOn:return new B;case at.AlwaysOff:return new k;case at.ParentBasedAlwaysOn:return new K({root:new B});case at.ParentBasedAlwaysOff:return new K({root:new k});case at.TraceIdRatio:return new At(wS());case at.ParentBasedTraceIdRatio:return new K({root:new At(wS())});default:return c.diag.error(`OTEL_TRACES_SAMPLER value "${r}" invalid, defaulting to "${at.ParentBasedAlwaysOn}".`),new K({root:new B})}}function wS(){let r=(0,j.getNumberFromEnv)("OTEL_TRACES_SAMPLER_ARG");return r==null?(c.diag.error(`OTEL_TRACES_SAMPLER_ARG is blank, defaulting to ${Mr}.`),Mr):r<0||r>1?(c.diag.error(`OTEL_TRACES_SAMPLER_ARG=${r} was given, but it is out of range ([0..1]), defaulting to ${Mr}.`),Mr):r}var Oe=O(P()),eI=128,rI=1/0;function GS(r){let t={sampler:ao()},e=Pr(),n=Object.assign({},e,t,r);return n.generalLimits=Object.assign({},e.generalLimits,r.generalLimits||{}),n.spanLimits=Object.assign({},e.spanLimits,r.spanLimits||{}),n}function HS(r){let t=Object.assign({},r.spanLimits);return t.attributeCountLimit=r.spanLimits?.attributeCountLimit??r.generalLimits?.attributeCountLimit??(0,Oe.getNumberFromEnv)("OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT")??(0,Oe.getNumberFromEnv)("OTEL_ATTRIBUTE_COUNT_LIMIT")??eI,t.attributeValueLengthLimit=r.spanLimits?.attributeValueLengthLimit??r.generalLimits?.attributeValueLengthLimit??(0,Oe.getNumberFromEnv)("OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT")??(0,Oe.getNumberFromEnv)("OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT")??rI,Object.assign({},r,{spanLimits:t})}d();var v=O(P()),Cr=class{_exporter;_maxExportBatchSize;_maxQueueSize;_scheduledDelayMillis;_exportTimeoutMillis;_isExporting=!1;_finishedSpans=[];_timer;_shutdownOnce;_droppedSpansCount=0;constructor(t,e){this._exporter=t,this._maxExportBatchSize=typeof e?.maxExportBatchSize=="number"?e.maxExportBatchSize:(0,v.getNumberFromEnv)("OTEL_BSP_MAX_EXPORT_BATCH_SIZE")??512,this._maxQueueSize=typeof e?.maxQueueSize=="number"?e.maxQueueSize:(0,v.getNumberFromEnv)("OTEL_BSP_MAX_QUEUE_SIZE")??2048,this._scheduledDelayMillis=typeof e?.scheduledDelayMillis=="number"?e.scheduledDelayMillis:(0,v.getNumberFromEnv)("OTEL_BSP_SCHEDULE_DELAY")??5e3,this._exportTimeoutMillis=typeof e?.exportTimeoutMillis=="number"?e.exportTimeoutMillis:(0,v.getNumberFromEnv)("OTEL_BSP_EXPORT_TIMEOUT")??3e4,this._shutdownOnce=new v.BindOnceFuture(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(c.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(t,e){}onEnd(t){this._shutdownOnce.isCalled||t.spanContext().traceFlags&c.TraceFlags.SAMPLED&&this._addToBuffer(t)}shutdown(){return this._shutdownOnce.call()}_shutdown(){return Promise.resolve().then(()=>this.onShutdown()).then(()=>this._flushAll()).then(()=>this._exporter.shutdown())}_addToBuffer(t){if(this._finishedSpans.length>=this._maxQueueSize){this._droppedSpansCount===0&&c.diag.debug("maxQueueSize reached, dropping spans"),this._droppedSpansCount++;return}this._droppedSpansCount>0&&(c.diag.warn(`Dropped ${this._droppedSpansCount} spans because maxQueueSize reached`),this._droppedSpansCount=0),this._finishedSpans.push(t),this._maybeStartTimer()}_flushAll(){return new Promise((t,e)=>{let n=[],o=Math.ceil(this._finishedSpans.length/this._maxExportBatchSize);for(let s=0,i=o;s<i;s++)n.push(this._flushOneBatch());Promise.all(n).then(()=>{t()}).catch(e)})}_flushOneBatch(){return this._clearTimer(),this._finishedSpans.length===0?Promise.resolve():new Promise((t,e)=>{let n=setTimeout(()=>{e(new Error("Timeout"))},this._exportTimeoutMillis);c.context.with((0,v.suppressTracing)(c.context.active()),()=>{let o;this._finishedSpans.length<=this._maxExportBatchSize?(o=this._finishedSpans,this._finishedSpans=[]):o=this._finishedSpans.splice(0,this._maxExportBatchSize);let s=()=>this._exporter.export(o,a=>{clearTimeout(n),a.code===v.ExportResultCode.SUCCESS?t():e(a.error??new Error("BatchSpanProcessor: span export failed"))}),i=null;for(let a=0,_=o.length;a<_;a++){let E=o[a];E.resource.asyncAttributesPending&&E.resource.waitForAsyncAttributes&&(i??=[],i.push(E.resource.waitForAsyncAttributes()))}i===null?s():Promise.all(i).then(s,a=>{(0,v.globalErrorHandler)(a),e(a)})})})}_maybeStartTimer(){if(this._isExporting)return;let t=()=>{this._isExporting=!0,this._flushOneBatch().finally(()=>{this._isExporting=!1,this._finishedSpans.length>0&&(this._clearTimer(),this._maybeStartTimer())}).catch(e=>{this._isExporting=!1,(0,v.globalErrorHandler)(e)})};if(this._finishedSpans.length>=this._maxExportBatchSize)return t();this._timer===void 0&&(this._timer=setTimeout(()=>t(),this._scheduledDelayMillis),(0,v.unrefTimer)(this._timer))}_clearTimer(){this._timer!==void 0&&(clearTimeout(this._timer),this._timer=void 0)}};var co=O(P()),dt=class extends Cr{_visibilityChangeListener;_pageHideListener;constructor(t,e){super(t,e),this.onInit(e)}onInit(t){t?.disableAutoFlushOnDocumentHide!==!0&&typeof document<"u"&&(this._visibilityChangeListener=()=>{document.visibilityState==="hidden"&&this.forceFlush().catch(e=>{(0,co.globalErrorHandler)(e)})},this._pageHideListener=()=>{this.forceFlush().catch(e=>{(0,co.globalErrorHandler)(e)})},document.addEventListener("visibilitychange",this._visibilityChangeListener),document.addEventListener("pagehide",this._pageHideListener))}onShutdown(){typeof document<"u"&&(this._visibilityChangeListener&&document.removeEventListener("visibilitychange",this._visibilityChangeListener),this._pageHideListener&&document.removeEventListener("pagehide",this._pageHideListener))}};var Rt=class{generateTraceId=FS(16);generateSpanId=FS(8)},Lr=Array(32);function FS(r){return function(){for(let e=0;e<r*2;e++)Lr[e]=Math.floor(Math.random()*16)+48,Lr[e]>=58&&(Lr[e]+=39);return String.fromCharCode.apply(null,Lr.slice(0,r*2))}}var Ir=class{_sampler;_generalLimits;_spanLimits;_idGenerator;instrumentationScope;_resource;_spanProcessor;constructor(t,e,n,o){let s=GS(e);this._sampler=s.sampler,this._generalLimits=s.generalLimits,this._spanLimits=s.spanLimits,this._idGenerator=e.idGenerator||new Rt,this._resource=n,this._spanProcessor=o,this.instrumentationScope=t}startSpan(t,e={},n=c.context.active()){e.root&&(n=c.trace.deleteSpan(n));let o=c.trace.getSpan(n);if((0,jt.isTracingSuppressed)(n))return c.diag.debug("Instrumentation suppressed, returning Noop Span"),c.trace.wrapSpanContext(c.INVALID_SPAN_CONTEXT);let s=o?.spanContext(),i=this._idGenerator.generateSpanId(),a,_,E;!s||!c.trace.isSpanContextValid(s)?_=this._idGenerator.generateTraceId():(_=s.traceId,E=s.traceState,a=s);let T=e.kind??c.SpanKind.INTERNAL,l=(e.links??[]).map(Z=>({context:Z.context,attributes:(0,jt.sanitizeAttributes)(Z.attributes)})),A=(0,jt.sanitizeAttributes)(e.attributes),h=this._sampler.shouldSample(n,_,t,T,A,l);E=h.traceState??E;let R=h.decision===c.SamplingDecision.RECORD_AND_SAMPLED?c.TraceFlags.SAMPLED:c.TraceFlags.NONE,I={traceId:_,spanId:i,traceFlags:R,traceState:E};if(h.decision===c.SamplingDecision.NOT_RECORD)return c.diag.debug("Recording is off, propagating context in a non-recording span"),c.trace.wrapSpanContext(I);let x=(0,jt.sanitizeAttributes)(Object.assign(A,h.attributes));return new Nr({resource:this._resource,scope:this.instrumentationScope,context:n,spanContext:I,name:t,kind:T,links:l,parentSpanContext:a,attributes:x,startTime:e.startTime,spanProcessor:this._spanProcessor,spanLimits:this._spanLimits})}startActiveSpan(t,e,n,o){let s,i,a;if(arguments.length<2)return;arguments.length===2?a=e:arguments.length===3?(s=e,a=n):(s=e,i=n,a=o);let _=i??c.context.active(),E=this.startSpan(t,s,_),T=c.trace.setSpan(_,E);return c.context.with(T,a,void 0,E)}getGeneralLimits(){return this._generalLimits}getSpanLimits(){return this._spanLimits}};var YS=O(P()),xr=class{_spanProcessors;constructor(t){this._spanProcessors=t}forceFlush(){let t=[];for(let e of this._spanProcessors)t.push(e.forceFlush());return new Promise(e=>{Promise.all(t).then(()=>{e()}).catch(n=>{(0,YS.globalErrorHandler)(n||new Error("MultiSpanProcessor: forceFlush failed")),e()})})}onStart(t,e){for(let n of this._spanProcessors)n.onStart(t,e)}onEnd(t){for(let e of this._spanProcessors)e.onEnd(t)}shutdown(){let t=[];for(let e of this._spanProcessors)t.push(e.shutdown());return new Promise((e,n)=>{Promise.all(t).then(()=>{e()},n)})}};var bt;(function(r){r[r.resolved=0]="resolved",r[r.timeout=1]="timeout",r[r.error=2]="error",r[r.unresolved=3]="unresolved"})(bt||(bt={}));var ge=class{_config;_tracers=new Map;_resource;_activeSpanProcessor;constructor(t={}){let e=(0,kS.merge)({},Pr(),HS(t));this._resource=e.resource??Ut(),this._config=Object.assign({},e,{resource:this._resource});let n=[];t.spanProcessors?.length&&n.push(...t.spanProcessors),this._activeSpanProcessor=new xr(n)}getTracer(t,e,n){let o=`${t}@${e||""}:${n?.schemaUrl||""}`;return this._tracers.has(o)||this._tracers.set(o,new Ir({name:t,version:e,schemaUrl:n?.schemaUrl},this._config,this._resource,this._activeSpanProcessor)),this._tracers.get(o)}forceFlush(){let t=this._config.forceFlushTimeoutMillis,e=this._activeSpanProcessor._spanProcessors.map(n=>new Promise(o=>{let s,i=setTimeout(()=>{o(new Error(`Span processor did not completed within timeout period of ${t} ms`)),s=bt.timeout},t);n.forceFlush().then(()=>{clearTimeout(i),s!==bt.timeout&&(s=bt.resolved,o(s))}).catch(a=>{clearTimeout(i),s=bt.error,o(a)})}));return new Promise((n,o)=>{Promise.all(e).then(s=>{let i=s.filter(a=>a!==bt.resolved);i.length>0?o(i):n()}).catch(s=>o([s]))})}shutdown(){return this._activeSpanProcessor.shutdown()}};d();var W={};tt(W,ZU);import*as ZU from"@opentelemetry/api-logs";d();function KS(r,t,e,n){for(let o=0,s=r.length;o<s;o++){let i=r[o];t&&i.setTracerProvider(t),e&&i.setMeterProvider(e),n&&i.setLoggerProvider&&i.setLoggerProvider(n),i.getConfig().enabled||i.enable()}}function jS(r){r.forEach(t=>t.disable())}function _o(r){let t=r.tracerProvider||c.trace.getTracerProvider(),e=r.meterProvider||c.metrics.getMeterProvider(),n=r.loggerProvider||W.logs.getLoggerProvider(),o=r.instrumentations?.flat()??[];return KS(o,t,e,n),()=>{jS(o)}}d();var vr=O(P());d();d();var Wt=O(P()),Dr=class{hrTime;hrTimeObserved;spanContext;resource;instrumentationScope;attributes={};_severityText;_severityNumber;_body;_eventName;totalAttributesCount=0;_isReadonly=!1;_logRecordLimits;set severityText(t){this._isLogRecordReadonly()||(this._severityText=t)}get severityText(){return this._severityText}set severityNumber(t){this._isLogRecordReadonly()||(this._severityNumber=t)}get severityNumber(){return this._severityNumber}set body(t){this._isLogRecordReadonly()||(this._body=t)}get body(){return this._body}get eventName(){return this._eventName}set eventName(t){this._isLogRecordReadonly()||(this._eventName=t)}get droppedAttributesCount(){return this.totalAttributesCount-Object.keys(this.attributes).length}constructor(t,e,n){let{timestamp:o,observedTimestamp:s,eventName:i,severityNumber:a,severityText:_,body:E,attributes:T={},context:l}=n,A=Date.now();if(this.hrTime=(0,Wt.timeInputToHrTime)(o??A),this.hrTimeObserved=(0,Wt.timeInputToHrTime)(s??A),l){let h=c.trace.getSpanContext(l);h&&c.isSpanContextValid(h)&&(this.spanContext=h)}this.severityNumber=a,this.severityText=_,this.body=E,this.resource=t.resource,this.instrumentationScope=e,this._logRecordLimits=t.logRecordLimits,this._eventName=i,this.setAttributes(T)}setAttribute(t,e){return this._isLogRecordReadonly()?this:e===null?this:t.length===0?(c.diag.warn(`Invalid attribute key: ${t}`),this):!(0,Wt.isAttributeValue)(e)&&!(typeof e=="object"&&!Array.isArray(e)&&Object.keys(e).length>0)?(c.diag.warn(`Invalid attribute value set for key: ${t}`),this):(this.totalAttributesCount+=1,Object.keys(this.attributes).length>=this._logRecordLimits.attributeCountLimit&&!Object.prototype.hasOwnProperty.call(this.attributes,t)?(this.droppedAttributesCount===1&&c.diag.warn("Dropping extra attributes."),this):((0,Wt.isAttributeValue)(e)?this.attributes[t]=this._truncateToSize(e):this.attributes[t]=e,this))}setAttributes(t){for(let[e,n]of Object.entries(t))this.setAttribute(e,n);return this}setBody(t){return this.body=t,this}setEventName(t){return this.eventName=t,this}setSeverityNumber(t){return this.severityNumber=t,this}setSeverityText(t){return this.severityText=t,this}_makeReadonly(){this._isReadonly=!0}_truncateToSize(t){let e=this._logRecordLimits.attributeValueLengthLimit;return e<=0?(c.diag.warn(`Attribute value limit must be positive, got ${e}`),t):typeof t=="string"?this._truncateToLimitUtil(t,e):Array.isArray(t)?t.map(n=>typeof n=="string"?this._truncateToLimitUtil(n,e):n):t}_truncateToLimitUtil(t,e){return t.length<=e?t:t.substring(0,e)}_isLogRecordReadonly(){return this._isReadonly&&c.diag.warn("Can not execute the operation on emitted log record"),this._isReadonly}};var Ur=class{instrumentationScope;_sharedState;constructor(t,e){this.instrumentationScope=t,this._sharedState=e}emit(t){let e=t.context||c.context.active(),n=new Dr(this._sharedState,this.instrumentationScope,{context:e,...t});this._sharedState.activeProcessor.onEmit(n,e),n._makeReadonly()}};var yt=O(P());function WS(){return{forceFlushTimeoutMillis:3e4,logRecordLimits:{attributeValueLengthLimit:(0,yt.getNumberFromEnv)("OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT")??1/0,attributeCountLimit:(0,yt.getNumberFromEnv)("OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT")??128},includeTraceContext:!0}}function qS(r){return{attributeCountLimit:r.attributeCountLimit??(0,yt.getNumberFromEnv)("OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT")??(0,yt.getNumberFromEnv)("OTEL_ATTRIBUTE_COUNT_LIMIT")??128,attributeValueLengthLimit:r.attributeValueLengthLimit??(0,yt.getNumberFromEnv)("OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT")??(0,yt.getNumberFromEnv)("OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT")??1/0}}var br=class{forceFlush(){return Promise.resolve()}onEmit(t,e){}shutdown(){return Promise.resolve()}};var $S=O(P()),yr=class{processors;forceFlushTimeoutMillis;constructor(t,e){this.processors=t,this.forceFlushTimeoutMillis=e}async forceFlush(){let t=this.forceFlushTimeoutMillis;await Promise.all(this.processors.map(e=>(0,$S.callWithTimeout)(e.forceFlush(),t)))}onEmit(t,e){this.processors.forEach(n=>n.onEmit(t,e))}async shutdown(){await Promise.all(this.processors.map(t=>t.shutdown()))}};var Vr=class{resource;forceFlushTimeoutMillis;logRecordLimits;processors;loggers=new Map;activeProcessor;registeredLogRecordProcessors=[];constructor(t,e,n,o){this.resource=t,this.forceFlushTimeoutMillis=e,this.logRecordLimits=n,this.processors=o,o.length>0?(this.registeredLogRecordProcessors=o,this.activeProcessor=new yr(this.registeredLogRecordProcessors,this.forceFlushTimeoutMillis)):this.activeProcessor=new br}};var nI="unknown",Ne=class{_shutdownOnce;_sharedState;constructor(t={}){let e=(0,vr.merge)({},WS(),t),n=t.resource??Ut();this._sharedState=new Vr(n,e.forceFlushTimeoutMillis,qS(e.logRecordLimits),t?.processors??[]),this._shutdownOnce=new vr.BindOnceFuture(this._shutdown,this)}getLogger(t,e,n){if(this._shutdownOnce.isCalled)return c.diag.warn("A shutdown LoggerProvider cannot provide a Logger"),W.NOOP_LOGGER;t||c.diag.warn("Logger requested without instrumentation scope name.");let o=t||nI,s=`${o}@${e||""}:${n?.schemaUrl||""}`;return this._sharedState.loggers.has(s)||this._sharedState.loggers.set(s,new Ur({name:o,version:e,schemaUrl:n?.schemaUrl},this._sharedState)),this._sharedState.loggers.get(s)}forceFlush(){return this._shutdownOnce.isCalled?(c.diag.warn("invalid attempt to force flush after LoggerProvider shutdown"),this._shutdownOnce.promise):this._sharedState.activeProcessor.forceFlush()}shutdown(){return this._shutdownOnce.isCalled?(c.diag.warn("shutdown may only be called once per LoggerProvider"),this._shutdownOnce.promise):this._shutdownOnce.call()}_shutdown(){return this._sharedState.activeProcessor.shutdown()}};var Br;(function(r){r[r.DELTA=0]="DELTA",r[r.CUMULATIVE=1]="CUMULATIVE"})(Br||(Br={}));var f;(function(r){r.COUNTER="COUNTER",r.GAUGE="GAUGE",r.HISTOGRAM="HISTOGRAM",r.UP_DOWN_COUNTER="UP_DOWN_COUNTER",r.OBSERVABLE_COUNTER="OBSERVABLE_COUNTER",r.OBSERVABLE_GAUGE="OBSERVABLE_GAUGE",r.OBSERVABLE_UP_DOWN_COUNTER="OBSERVABLE_UP_DOWN_COUNTER"})(f||(f={}));var ct;(function(r){r[r.HISTOGRAM=0]="HISTOGRAM",r[r.EXPONENTIAL_HISTOGRAM=1]="EXPONENTIAL_HISTOGRAM",r[r.GAUGE=2]="GAUGE",r[r.SUM=3]="SUM"})(ct||(ct={}));function XS(r){return r!=null}function wr(r){let t=Object.keys(r);return t.length===0?"":(t=t.sort(),JSON.stringify(t.map(e=>[e,r[e]])))}function zS(r){return`${r.name}:${r.version??""}:${r.schemaUrl??""}`}var Eo=class r extends Error{constructor(t){super(t),Object.setPrototypeOf(this,r.prototype)}};function uo(r,t){let e,n=new Promise(function(s,i){e=setTimeout(function(){i(new Eo("Operation timed out."))},t)});return Promise.race([r,n]).then(o=>(clearTimeout(e),o),o=>{throw clearTimeout(e),o})}async function QS(r){return Promise.all(r.map(async t=>{try{return{status:"fulfilled",value:await t}}catch(e){return{status:"rejected",reason:e}}}))}function JS(r){return r.status==="rejected"}function ZS(r,t){if(r.size!==t.size)return!1;for(let e of r)if(!t.has(e))return!1;return!0}function tp(r,t){let e=0,n=r.length-1,o=r.length;for(;n>=e;){let s=e+Math.trunc((n-e)/2);r[s]<t?e=s+1:(o=s,n=s-1)}return o}function ep(r,t){return r.toLowerCase()===t.toLowerCase()}d();var q;(function(r){r[r.DROP=0]="DROP",r[r.SUM=1]="SUM",r[r.LAST_VALUE=2]="LAST_VALUE",r[r.HISTOGRAM=3]="HISTOGRAM",r[r.EXPONENTIAL_HISTOGRAM=4]="EXPONENTIAL_HISTOGRAM"})(q||(q={}));var Me=class{kind=q.DROP;createAccumulation(){}merge(t,e){}diff(t,e){}toMetricData(t,e,n,o){}};function oI(r){let t=r.map(()=>0);return t.push(0),{buckets:{boundaries:r,counts:t},sum:0,count:0,hasMinMax:!1,min:1/0,max:-1/0}}var qt=class{startTime;_boundaries;_recordMinMax;_current;constructor(t,e,n=!0,o=oI(e)){this.startTime=t,this._boundaries=e,this._recordMinMax=n,this._current=o}record(t){if(Number.isNaN(t))return;this._current.count+=1,this._current.sum+=t,this._recordMinMax&&(this._current.min=Math.min(t,this._current.min),this._current.max=Math.max(t,this._current.max),this._current.hasMinMax=!0);let e=tp(this._boundaries,t);this._current.buckets.counts[e]+=1}setStartTime(t){this.startTime=t}toPointValue(){return this._current}},$t=class{_boundaries;_recordMinMax;kind=q.HISTOGRAM;constructor(t,e){this._boundaries=t,this._recordMinMax=e}createAccumulation(t){return new qt(t,this._boundaries,this._recordMinMax)}merge(t,e){let n=t.toPointValue(),o=e.toPointValue(),s=n.buckets.counts,i=o.buckets.counts,a=new Array(s.length);for(let T=0;T<s.length;T++)a[T]=s[T]+i[T];let _=1/0,E=-1/0;return this._recordMinMax&&(n.hasMinMax&&o.hasMinMax?(_=Math.min(n.min,o.min),E=Math.max(n.max,o.max)):n.hasMinMax?(_=n.min,E=n.max):o.hasMinMax&&(_=o.min,E=o.max)),new qt(t.startTime,n.buckets.boundaries,this._recordMinMax,{buckets:{boundaries:n.buckets.boundaries,counts:a},count:n.count+o.count,sum:n.sum+o.sum,hasMinMax:this._recordMinMax&&(n.hasMinMax||o.hasMinMax),min:_,max:E})}diff(t,e){let n=t.toPointValue(),o=e.toPointValue(),s=n.buckets.counts,i=o.buckets.counts,a=new Array(s.length);for(let _=0;_<s.length;_++)a[_]=i[_]-s[_];return new qt(e.startTime,n.buckets.boundaries,this._recordMinMax,{buckets:{boundaries:n.buckets.boundaries,counts:a},count:o.count-n.count,sum:o.sum-n.sum,hasMinMax:!1,min:1/0,max:-1/0})}toMetricData(t,e,n,o){return{descriptor:t,aggregationTemporality:e,dataPointType:ct.HISTOGRAM,dataPoints:n.map(([s,i])=>{let a=i.toPointValue(),_=t.type===f.GAUGE||t.type===f.UP_DOWN_COUNTER||t.type===f.OBSERVABLE_GAUGE||t.type===f.OBSERVABLE_UP_DOWN_COUNTER;return{attributes:s,startTime:i.startTime,endTime:o,value:{min:a.hasMinMax?a.min:void 0,max:a.hasMinMax?a.max:void 0,sum:_?void 0:a.sum,buckets:a.buckets,count:a.count}}})}}};d();var Pe=class r{backing;indexBase;indexStart;indexEnd;constructor(t=new To,e=0,n=0,o=0){this.backing=t,this.indexBase=e,this.indexStart=n,this.indexEnd=o}get offset(){return this.indexStart}get length(){return this.backing.length===0||this.indexEnd===this.indexStart&&this.at(0)===0?0:this.indexEnd-this.indexStart+1}counts(){return Array.from({length:this.length},(t,e)=>this.at(e))}at(t){let e=this.indexBase-this.indexStart;return t<e&&(t+=this.backing.length),t-=e,this.backing.countAt(t)}incrementBucket(t,e){this.backing.increment(t,e)}decrementBucket(t,e){this.backing.decrement(t,e)}trim(){for(let t=0;t<this.length;t++)if(this.at(t)!==0){this.indexStart+=t;break}else if(t===this.length-1){this.indexStart=this.indexEnd=this.indexBase=0;return}for(let t=this.length-1;t>=0;t--)if(this.at(t)!==0){this.indexEnd-=this.length-t-1;break}this._rotate()}downscale(t){this._rotate();let e=1+this.indexEnd-this.indexStart,n=1<<t,o=0,s=0;for(let i=this.indexStart;i<=this.indexEnd;){let a=i%n;a<0&&(a+=n);for(let _=a;_<n&&o<e;_++)this._relocateBucket(s,o),o++,i++;s++}this.indexStart>>=t,this.indexEnd>>=t,this.indexBase=this.indexStart}clone(){return new r(this.backing.clone(),this.indexBase,this.indexStart,this.indexEnd)}_rotate(){let t=this.indexBase-this.indexStart;t!==0&&(t>0?(this.backing.reverse(0,this.backing.length),this.backing.reverse(0,t),this.backing.reverse(t,this.backing.length)):(this.backing.reverse(0,this.backing.length),this.backing.reverse(0,this.backing.length+t)),this.indexBase=this.indexStart)}_relocateBucket(t,e){t!==e&&this.incrementBucket(t,this.backing.emptyBucket(e))}},To=class r{_counts;constructor(t=[0]){this._counts=t}get length(){return this._counts.length}countAt(t){return this._counts[t]}growTo(t,e,n){let o=new Array(t).fill(0);o.splice(n,this._counts.length-e,...this._counts.slice(e)),o.splice(0,e,...this._counts.slice(0,e)),this._counts=o}reverse(t,e){let n=Math.floor((t+e)/2)-t;for(let o=0;o<n;o++){let s=this._counts[t+o];this._counts[t+o]=this._counts[e-o-1],this._counts[e-o-1]=s}}emptyBucket(t){let e=this._counts[t];return this._counts[t]=0,e}increment(t,e){this._counts[t]+=e}decrement(t,e){this._counts[t]>=e?this._counts[t]-=e:this._counts[t]=0}clone(){return new r([...this._counts])}};var Ce=Math.pow(2,-1022);function Gr(r){let t=new DataView(new ArrayBuffer(8));return t.setFloat64(0,r),((t.getUint32(0)&2146435072)>>20)-1023}function Hr(r){let t=new DataView(new ArrayBuffer(8));t.setFloat64(0,r);let e=t.getUint32(0),n=t.getUint32(4);return(e&1048575)*Math.pow(2,32)+n}function Le(r,t){return r===0||r===Number.POSITIVE_INFINITY||r===Number.NEGATIVE_INFINITY||Number.isNaN(r)?r:r*Math.pow(2,t)}function np(r){return r--,r|=r>>1,r|=r>>2,r|=r>>4,r|=r>>8,r|=r>>16,r++,r}var _t=class extends Error{};var Fr=class{_shift;constructor(t){this._shift=-t}mapToIndex(t){if(t<Ce)return this._minNormalLowerBoundaryIndex();let e=Gr(t),n=this._rightShift(Hr(t)-1,52);return e+n>>this._shift}lowerBoundary(t){let e=this._minNormalLowerBoundaryIndex();if(t<e)throw new _t(`underflow: ${t} is < minimum lower boundary: ${e}`);let n=this._maxNormalLowerBoundaryIndex();if(t>n)throw new _t(`overflow: ${t} is > maximum lower boundary: ${n}`);return Le(1,t<<this._shift)}get scale(){return this._shift===0?0:-this._shift}_minNormalLowerBoundaryIndex(){let t=-1022>>this._shift;return this._shift<2&&t--,t}_maxNormalLowerBoundaryIndex(){return 1023>>this._shift}_rightShift(t,e){return Math.floor(t*Math.pow(2,-e))}};var Yr=class{_scale;_scaleFactor;_inverseFactor;constructor(t){this._scale=t,this._scaleFactor=Le(Math.LOG2E,t),this._inverseFactor=Le(Math.LN2,-t)}mapToIndex(t){if(t<=Ce)return this._minNormalLowerBoundaryIndex()-1;if(Hr(t)===0)return(Gr(t)<<this._scale)-1;let e=Math.floor(Math.log(t)*this._scaleFactor),n=this._maxNormalLowerBoundaryIndex();return e>=n?n:e}lowerBoundary(t){let e=this._maxNormalLowerBoundaryIndex();if(t>=e){if(t===e)return 2*Math.exp((t-(1<<this._scale))/this._scaleFactor);throw new _t(`overflow: ${t} is > maximum lower boundary: ${e}`)}let n=this._minNormalLowerBoundaryIndex();if(t<=n){if(t===n)return Ce;if(t===n-1)return Math.exp((t+(1<<this._scale))/this._scaleFactor)/2;throw new _t(`overflow: ${t} is < minimum lower boundary: ${n}`)}return Math.exp(t*this._inverseFactor)}get scale(){return this._scale}_minNormalLowerBoundaryIndex(){return-1022<<this._scale}_maxNormalLowerBoundaryIndex(){return(1024<<this._scale)-1}};var sp=-10,ip=20,iI=Array.from({length:31},(r,t)=>t>10?new Yr(t-10):new Fr(t-10));function lo(r){if(r>ip||r<sp)throw new _t(`expected scale >= ${sp} && <= ${ip}, got: ${r}`);return iI[r+10]}var Xt=class r{low;high;static combine(t,e){return new r(Math.min(t.low,e.low),Math.max(t.high,e.high))}constructor(t,e){this.low=t,this.high=e}},aI=20,cI=160,Ao=2,kr=class r{startTime;_maxSize;_recordMinMax;_sum;_count;_zeroCount;_min;_max;_positive;_negative;_mapping;constructor(t,e=cI,n=!0,o=0,s=0,i=0,a=Number.POSITIVE_INFINITY,_=Number.NEGATIVE_INFINITY,E=new Pe,T=new Pe,l=lo(aI)){this.startTime=t,this._maxSize=e,this._recordMinMax=n,this._sum=o,this._count=s,this._zeroCount=i,this._min=a,this._max=_,this._positive=E,this._negative=T,this._mapping=l,this._maxSize<Ao&&(c.diag.warn(`Exponential Histogram Max Size set to ${this._maxSize}, changing to the minimum size of: ${Ao}`),this._maxSize=Ao)}record(t){this.updateByIncrement(t,1)}setStartTime(t){this.startTime=t}toPointValue(){return{hasMinMax:this._recordMinMax,min:this.min,max:this.max,sum:this.sum,positive:{offset:this.positive.offset,bucketCounts:this.positive.counts()},negative:{offset:this.negative.offset,bucketCounts:this.negative.counts()},count:this.count,scale:this.scale,zeroCount:this.zeroCount}}get sum(){return this._sum}get min(){return this._min}get max(){return this._max}get count(){return this._count}get zeroCount(){return this._zeroCount}get scale(){return this._count===this._zeroCount?0:this._mapping.scale}get positive(){return this._positive}get negative(){return this._negative}updateByIncrement(t,e){if(!Number.isNaN(t)){if(t>this._max&&(this._max=t),t<this._min&&(this._min=t),this._count+=e,t===0){this._zeroCount+=e;return}this._sum+=t*e,t>0?this._updateBuckets(this._positive,t,e):this._updateBuckets(this._negative,-t,e)}}merge(t){this._count===0?(this._min=t.min,this._max=t.max):t.count!==0&&(t.min<this.min&&(this._min=t.min),t.max>this.max&&(this._max=t.max)),this.startTime=t.startTime,this._sum+=t.sum,this._count+=t.count,this._zeroCount+=t.zeroCount;let e=this._minScale(t);this._downscale(this.scale-e),this._mergeBuckets(this.positive,t,t.positive,e),this._mergeBuckets(this.negative,t,t.negative,e)}diff(t){this._min=1/0,this._max=-1/0,this._sum-=t.sum,this._count-=t.count,this._zeroCount-=t.zeroCount;let e=this._minScale(t);this._downscale(this.scale-e),this._diffBuckets(this.positive,t,t.positive,e),this._diffBuckets(this.negative,t,t.negative,e)}clone(){return new r(this.startTime,this._maxSize,this._recordMinMax,this._sum,this._count,this._zeroCount,this._min,this._max,this.positive.clone(),this.negative.clone(),this._mapping)}_updateBuckets(t,e,n){let o=this._mapping.mapToIndex(e),s=!1,i=0,a=0;if(t.length===0?(t.indexStart=o,t.indexEnd=t.indexStart,t.indexBase=t.indexStart):o<t.indexStart&&t.indexEnd-o>=this._maxSize?(s=!0,a=o,i=t.indexEnd):o>t.indexEnd&&o-t.indexStart>=this._maxSize&&(s=!0,a=t.indexStart,i=o),s){let _=this._changeScale(i,a);this._downscale(_),o=this._mapping.mapToIndex(e)}this._incrementIndexBy(t,o,n)}_incrementIndexBy(t,e,n){if(n===0)return;if(t.length===0&&(t.indexStart=t.indexEnd=t.indexBase=e),e<t.indexStart){let s=t.indexEnd-e;s>=t.backing.length&&this._grow(t,s+1),t.indexStart=e}else if(e>t.indexEnd){let s=e-t.indexStart;s>=t.backing.length&&this._grow(t,s+1),t.indexEnd=e}let o=e-t.indexBase;o<0&&(o+=t.backing.length),t.incrementBucket(o,n)}_grow(t,e){let n=t.backing.length,o=t.indexBase-t.indexStart,s=n-o,i=np(e);i>this._maxSize&&(i=this._maxSize);let a=i-o;t.backing.growTo(i,s,a)}_changeScale(t,e){let n=0;for(;t-e>=this._maxSize;)t>>=1,e>>=1,n++;return n}_downscale(t){if(t===0)return;if(t<0)throw new Error(`impossible change of scale: ${this.scale}`);let e=this._mapping.scale-t;this._positive.downscale(t),this._negative.downscale(t),this._mapping=lo(e)}_minScale(t){let e=Math.min(this.scale,t.scale),n=Xt.combine(this._highLowAtScale(this.positive,this.scale,e),this._highLowAtScale(t.positive,t.scale,e)),o=Xt.combine(this._highLowAtScale(this.negative,this.scale,e),this._highLowAtScale(t.negative,t.scale,e));return Math.min(e-this._changeScale(n.high,n.low),e-this._changeScale(o.high,o.low))}_highLowAtScale(t,e,n){if(t.length===0)return new Xt(0,-1);let o=e-n;return new Xt(t.indexStart>>o,t.indexEnd>>o)}_mergeBuckets(t,e,n,o){let s=n.offset,i=e.scale-o;for(let a=0;a<n.length;a++)this._incrementIndexBy(t,s+a>>i,n.at(a))}_diffBuckets(t,e,n,o){let s=n.offset,i=e.scale-o;for(let a=0;a<n.length;a++){let E=(s+a>>i)-t.indexBase;E<0&&(E+=t.backing.length),t.decrementBucket(E,n.at(a))}t.trim()}},Ie=class{_maxSize;_recordMinMax;kind=q.EXPONENTIAL_HISTOGRAM;constructor(t,e){this._maxSize=t,this._recordMinMax=e}createAccumulation(t){return new kr(t,this._maxSize,this._recordMinMax)}merge(t,e){let n=e.clone();return n.merge(t),n}diff(t,e){let n=e.clone();return n.diff(t),n}toMetricData(t,e,n,o){return{descriptor:t,aggregationTemporality:e,dataPointType:ct.EXPONENTIAL_HISTOGRAM,dataPoints:n.map(([s,i])=>{let a=i.toPointValue(),_=t.type===f.GAUGE||t.type===f.UP_DOWN_COUNTER||t.type===f.OBSERVABLE_GAUGE||t.type===f.OBSERVABLE_UP_DOWN_COUNTER;return{attributes:s,startTime:i.startTime,endTime:o,value:{min:a.hasMinMax?a.min:void 0,max:a.hasMinMax?a.max:void 0,sum:_?void 0:a.sum,positive:{offset:a.positive.offset,bucketCounts:a.positive.bucketCounts},negative:{offset:a.negative.offset,bucketCounts:a.negative.bucketCounts},count:a.count,scale:a.scale,zeroCount:a.zeroCount}}})}}};var Vt=O(P());var zt=class{startTime;_current;sampleTime;constructor(t,e=0,n=[0,0]){this.startTime=t,this._current=e,this.sampleTime=n}record(t){this._current=t,this.sampleTime=(0,Vt.millisToHrTime)(Date.now())}setStartTime(t){this.startTime=t}toPointValue(){return this._current}},xe=class{kind=q.LAST_VALUE;createAccumulation(t){return new zt(t)}merge(t,e){let n=(0,Vt.hrTimeToMicroseconds)(e.sampleTime)>=(0,Vt.hrTimeToMicroseconds)(t.sampleTime)?e:t;return new zt(t.startTime,n.toPointValue(),n.sampleTime)}diff(t,e){let n=(0,Vt.hrTimeToMicroseconds)(e.sampleTime)>=(0,Vt.hrTimeToMicroseconds)(t.sampleTime)?e:t;return new zt(e.startTime,n.toPointValue(),n.sampleTime)}toMetricData(t,e,n,o){return{descriptor:t,aggregationTemporality:e,dataPointType:ct.GAUGE,dataPoints:n.map(([s,i])=>({attributes:s,startTime:i.startTime,endTime:o,value:i.toPointValue()}))}}};var Ot=class{startTime;monotonic;_current;reset;constructor(t,e,n=0,o=!1){this.startTime=t,this.monotonic=e,this._current=n,this.reset=o}record(t){this.monotonic&&t<0||(this._current+=t)}setStartTime(t){this.startTime=t}toPointValue(){return this._current}},Qt=class{monotonic;kind=q.SUM;constructor(t){this.monotonic=t}createAccumulation(t){return new Ot(t,this.monotonic)}merge(t,e){let n=t.toPointValue(),o=e.toPointValue();return e.reset?new Ot(e.startTime,this.monotonic,o,e.reset):new Ot(t.startTime,this.monotonic,n+o)}diff(t,e){let n=t.toPointValue(),o=e.toPointValue();return this.monotonic&&n>o?new Ot(e.startTime,this.monotonic,o,!0):new Ot(e.startTime,this.monotonic,o-n)}toMetricData(t,e,n,o){return{descriptor:t,aggregationTemporality:e,dataPointType:ct.SUM,dataPoints:n.map(([s,i])=>({attributes:s,startTime:i.startTime,endTime:o,value:i.toPointValue()})),isMonotonic:this.monotonic}}};var mo=class r{static DEFAULT_INSTANCE=new Me;createAggregator(t){return r.DEFAULT_INSTANCE}};var fo=class r{static MONOTONIC_INSTANCE=new Qt(!0);static NON_MONOTONIC_INSTANCE=new Qt(!1);createAggregator(t){switch(t.type){case f.COUNTER:case f.OBSERVABLE_COUNTER:case f.HISTOGRAM:return r.MONOTONIC_INSTANCE;default:return r.NON_MONOTONIC_INSTANCE}}};var ho=class r{static DEFAULT_INSTANCE=new xe;createAggregator(t){return r.DEFAULT_INSTANCE}};var Ro=class r{static DEFAULT_INSTANCE=new $t([0,5,10,25,50,75,100,250,500,750,1e3,2500,5e3,7500,1e4],!0);createAggregator(t){return r.DEFAULT_INSTANCE}};var De=class{_recordMinMax;_boundaries;constructor(t,e=!0){if(this._recordMinMax=e,t==null)throw new Error("ExplicitBucketHistogramAggregation should be created with explicit boundaries, if a single bucket histogram is required, please pass an empty array");t=t.concat(),t=t.sort((s,i)=>s-i);let n=t.lastIndexOf(-1/0),o=t.indexOf(1/0);o===-1&&(o=void 0),this._boundaries=t.slice(n+1,o)}createAggregator(t){return new $t(this._boundaries,this._recordMinMax)}},Ue=class{_maxSize;_recordMinMax;constructor(t=160,e=!0){this._maxSize=t,this._recordMinMax=e}createAggregator(t){return new Ie(this._maxSize,this._recordMinMax)}},Oo=class{_resolve(t){switch(t.type){case f.COUNTER:case f.UP_DOWN_COUNTER:case f.OBSERVABLE_COUNTER:case f.OBSERVABLE_UP_DOWN_COUNTER:return No;case f.GAUGE:case f.OBSERVABLE_GAUGE:return Mo;case f.HISTOGRAM:return t.advice.explicitBucketBoundaries?new De(t.advice.explicitBucketBoundaries):Po}return c.diag.warn(`Unable to recognize instrument type: ${t.type}`),go}createAggregator(t){return this._resolve(t).createAggregator(t)}},go=new mo,No=new fo,Mo=new ho,Po=new Ro,Sy=new Ue,ap=new Oo;var Et;(function(r){r[r.DEFAULT=0]="DEFAULT",r[r.DROP=1]="DROP",r[r.SUM=2]="SUM",r[r.LAST_VALUE=3]="LAST_VALUE",r[r.EXPLICIT_BUCKET_HISTOGRAM=4]="EXPLICIT_BUCKET_HISTOGRAM",r[r.EXPONENTIAL_HISTOGRAM=5]="EXPONENTIAL_HISTOGRAM"})(Et||(Et={}));function Kr(r){switch(r.type){case Et.DEFAULT:return ap;case Et.DROP:return go;case Et.SUM:return No;case Et.LAST_VALUE:return Mo;case Et.EXPONENTIAL_HISTOGRAM:{let t=r;return new Ue(t.options?.maxSize,t.options?.recordMinMax)}case Et.EXPLICIT_BUCKET_HISTOGRAM:{let t=r;return t.options==null?Po:new De(t.options?.boundaries,t.options?.recordMinMax)}default:throw new Error("Unsupported Aggregation")}}d();var jr=class{_registeredViews=[];addView(t){this._registeredViews.push(t)}findViews(t,e){return this._registeredViews.filter(o=>this._matchInstrument(o.instrumentSelector,t)&&this._matchMeter(o.meterSelector,e))}_matchInstrument(t,e){return(t.getType()===void 0||e.type===t.getType())&&t.getNameFilter().match(e.name)&&t.getUnitFilter().match(e.unit)}_matchMeter(t,e){return t.getNameFilter().match(e.name)&&(e.version===void 0||t.getVersionFilter().match(e.version))&&(e.schemaUrl===void 0||t.getSchemaUrlFilter().match(e.schemaUrl))}};d();function ut(r,t,e){return EI(r)||c.diag.warn(`Invalid metric name: "${r}". The metric name should be a ASCII string with a length no greater than 255 characters.`),{name:r,type:t,description:e?.description??"",unit:e?.unit??"",valueType:e?.valueType??c.ValueType.DOUBLE,advice:e?.advice??{}}}function cp(r,t){return{name:r.name??t.name,description:r.description??t.description,type:t.type,unit:t.unit,valueType:t.valueType,advice:t.advice}}function _p(r,t){return ep(r.name,t.name)&&r.unit===t.unit&&r.type===t.type&&r.valueType===t.valueType}var _I=/^[a-z][a-z0-9_.\-/]{0,254}$/i;function EI(r){return r.match(_I)!=null}d();var Ep=O(P()),Jt=class{_writableMetricStorage;_descriptor;constructor(t,e){this._writableMetricStorage=t,this._descriptor=e}_record(t,e={},n=c.context.active()){if(typeof t!="number"){c.diag.warn(`non-number value provided to metric ${this._descriptor.name}: ${t}`);return}this._descriptor.valueType===c.ValueType.INT&&!Number.isInteger(t)&&(c.diag.warn(`INT value type cannot accept a floating-point value for ${this._descriptor.name}, ignoring the fractional digits.`),t=Math.trunc(t),!Number.isInteger(t))||this._writableMetricStorage.record(t,e,n,(0,Ep.millisToHrTime)(Date.now()))}},Wr=class extends Jt{add(t,e,n){this._record(t,e,n)}},qr=class extends Jt{add(t,e,n){if(t<0){c.diag.warn(`negative value provided to counter ${this._descriptor.name}: ${t}`);return}this._record(t,e,n)}},$r=class extends Jt{record(t,e,n){this._record(t,e,n)}},Xr=class extends Jt{record(t,e,n){if(t<0){c.diag.warn(`negative value provided to histogram ${this._descriptor.name}: ${t}`);return}this._record(t,e,n)}},Zt=class{_observableRegistry;_metricStorages;_descriptor;constructor(t,e,n){this._observableRegistry=n,this._descriptor=t,this._metricStorages=e}addCallback(t){this._observableRegistry.addCallback(t,this)}removeCallback(t){this._observableRegistry.removeCallback(t,this)}},zr=class extends Zt{},Qr=class extends Zt{},Jr=class extends Zt{};function be(r){return r instanceof Zt}var Zr=class{_meterSharedState;constructor(t){this._meterSharedState=t}createGauge(t,e){let n=ut(t,f.GAUGE,e),o=this._meterSharedState.registerMetricStorage(n);return new $r(o,n)}createHistogram(t,e){let n=ut(t,f.HISTOGRAM,e),o=this._meterSharedState.registerMetricStorage(n);return new Xr(o,n)}createCounter(t,e){let n=ut(t,f.COUNTER,e),o=this._meterSharedState.registerMetricStorage(n);return new qr(o,n)}createUpDownCounter(t,e){let n=ut(t,f.UP_DOWN_COUNTER,e),o=this._meterSharedState.registerMetricStorage(n);return new Wr(o,n)}createObservableGauge(t,e){let n=ut(t,f.OBSERVABLE_GAUGE,e),o=this._meterSharedState.registerAsyncMetricStorage(n);return new Qr(n,o,this._meterSharedState.observableRegistry)}createObservableCounter(t,e){let n=ut(t,f.OBSERVABLE_COUNTER,e),o=this._meterSharedState.registerAsyncMetricStorage(n);return new zr(n,o,this._meterSharedState.observableRegistry)}createObservableUpDownCounter(t,e){let n=ut(t,f.OBSERVABLE_UP_DOWN_COUNTER,e),o=this._meterSharedState.registerAsyncMetricStorage(n);return new Jr(n,o,this._meterSharedState.observableRegistry)}addBatchObservableCallback(t,e){this._meterSharedState.observableRegistry.addBatchCallback(t,e)}removeBatchObservableCallback(t,e){this._meterSharedState.observableRegistry.removeBatchCallback(t,e)}};var te=class{_instrumentDescriptor;constructor(t){this._instrumentDescriptor=t}getInstrumentDescriptor(){return this._instrumentDescriptor}updateDescription(t){this._instrumentDescriptor=ut(this._instrumentDescriptor.name,this._instrumentDescriptor.type,{description:t,valueType:this._instrumentDescriptor.valueType,unit:this._instrumentDescriptor.unit,advice:this._instrumentDescriptor.advice})}};var Co=class{_hash;_valueMap=new Map;_keyMap=new Map;constructor(t){this._hash=t}get(t,e){return e??=this._hash(t),this._valueMap.get(e)}getOrDefault(t,e){let n=this._hash(t);if(this._valueMap.has(n))return this._valueMap.get(n);let o=e();return this._keyMap.has(n)||this._keyMap.set(n,t),this._valueMap.set(n,o),o}set(t,e,n){n??=this._hash(t),this._keyMap.has(n)||this._keyMap.set(n,t),this._valueMap.set(n,e)}has(t,e){return e??=this._hash(t),this._valueMap.has(e)}*keys(){let t=this._keyMap.entries(),e=t.next();for(;e.done!==!0;)yield[e.value[1],e.value[0]],e=t.next()}*entries(){let t=this._valueMap.entries(),e=t.next();for(;e.done!==!0;)yield[this._keyMap.get(e.value[0]),e.value[1],e.value[0]],e=t.next()}get size(){return this._valueMap.size}},H=class extends Co{constructor(){super(wr)}};var ee=class{_aggregator;_activeCollectionStorage=new H;_cumulativeMemoStorage=new H;_cardinalityLimit;_overflowAttributes={"otel.metric.overflow":!0};_overflowHashCode;constructor(t,e){this._aggregator=t,this._cardinalityLimit=(e??2e3)-1,this._overflowHashCode=wr(this._overflowAttributes)}record(t,e,n,o){let s=this._activeCollectionStorage.get(e);if(!s){if(this._activeCollectionStorage.size>=this._cardinalityLimit){this._activeCollectionStorage.getOrDefault(this._overflowAttributes,()=>this._aggregator.createAccumulation(o))?.record(t);return}s=this._aggregator.createAccumulation(o),this._activeCollectionStorage.set(e,s)}s?.record(t)}batchCumulate(t,e){Array.from(t.entries()).forEach(([n,o,s])=>{let i=this._aggregator.createAccumulation(e);i?.record(o);let a=i;if(this._cumulativeMemoStorage.has(n,s)){let _=this._cumulativeMemoStorage.get(n,s);a=this._aggregator.diff(_,i)}else if(this._cumulativeMemoStorage.size>=this._cardinalityLimit&&(n=this._overflowAttributes,s=this._overflowHashCode,this._cumulativeMemoStorage.has(n,s))){let _=this._cumulativeMemoStorage.get(n,s);a=this._aggregator.diff(_,i)}if(this._activeCollectionStorage.has(n,s)){let _=this._activeCollectionStorage.get(n,s);a=this._aggregator.merge(_,a)}this._cumulativeMemoStorage.set(n,i,s),this._activeCollectionStorage.set(n,a,s)})}collect(){let t=this._activeCollectionStorage;return this._activeCollectionStorage=new H,t}};var re=class r{_aggregator;_unreportedAccumulations=new Map;_reportHistory=new Map;constructor(t,e){this._aggregator=t,e.forEach(n=>{this._unreportedAccumulations.set(n,[])})}buildMetrics(t,e,n,o){this._stashAccumulations(n);let s=this._getMergedUnreportedAccumulations(t),i=s,a;if(this._reportHistory.has(t)){let E=this._reportHistory.get(t),T=E.collectionTime;a=E.aggregationTemporality,a===Br.CUMULATIVE?i=r.merge(E.accumulations,s,this._aggregator):i=r.calibrateStartTime(E.accumulations,s,T)}else a=t.selectAggregationTemporality(e.type);this._reportHistory.set(t,{accumulations:i,collectionTime:o,aggregationTemporality:a});let _=uI(i);if(_.length!==0)return this._aggregator.toMetricData(e,a,_,o)}_stashAccumulations(t){let e=this._unreportedAccumulations.keys();for(let n of e){let o=this._unreportedAccumulations.get(n);o===void 0&&(o=[],this._unreportedAccumulations.set(n,o)),o.push(t)}}_getMergedUnreportedAccumulations(t){let e=new H,n=this._unreportedAccumulations.get(t);if(this._unreportedAccumulations.set(t,[]),n===void 0)return e;for(let o of n)e=r.merge(e,o,this._aggregator);return e}static merge(t,e,n){let o=t,s=e.entries(),i=s.next();for(;i.done!==!0;){let[a,_,E]=i.value;if(t.has(a,E)){let T=t.get(a,E),l=n.merge(T,_);o.set(a,l,E)}else o.set(a,_,E);i=s.next()}return o}static calibrateStartTime(t,e,n){for(let[o,s]of t.keys())e.get(o,s)?.setStartTime(n);return e}};function uI(r){return Array.from(r.entries())}var tn=class extends te{_attributesProcessor;_aggregationCardinalityLimit;_deltaMetricStorage;_temporalMetricStorage;constructor(t,e,n,o,s){super(t),this._attributesProcessor=n,this._aggregationCardinalityLimit=s,this._deltaMetricStorage=new ee(e,this._aggregationCardinalityLimit),this._temporalMetricStorage=new re(e,o)}record(t,e){let n=new H;Array.from(t.entries()).forEach(([o,s])=>{n.set(this._attributesProcessor.process(o),s)}),this._deltaMetricStorage.batchCumulate(n,e)}collect(t,e){let n=this._deltaMetricStorage.collect();return this._temporalMetricStorage.buildMetrics(t,this._instrumentDescriptor,n,e)}};d();function Lo(r,t){let e="";return r.unit!==t.unit&&(e+=` - Unit '${r.unit}' does not match '${t.unit}'
4
+ var TA=Object.create;var Ke=Object.defineProperty;var SA=Object.getOwnPropertyDescriptor;var pA=Object.getOwnPropertyNames;var lA=Object.getPrototypeOf,AA=Object.prototype.hasOwnProperty;var us=(r=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(r,{get:(t,e)=>(typeof require<"u"?require:t)[e]}):r)(function(r){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+r+'" is not supported')});var F=(r,t)=>()=>(r&&(t=r(r=0)),t);var S=(r,t)=>()=>(t||r((t={exports:{}}).exports,t),t.exports),dA=(r,t)=>{for(var e in t)Ke(r,e,{get:t[e],enumerable:!0})},ke=(r,t,e,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of pA(t))!AA.call(r,o)&&o!==e&&Ke(r,o,{get:()=>t[o],enumerable:!(n=SA(t,o))||n.enumerable});return r},tt=(r,t,e)=>(ke(r,t,"default"),e&&ke(e,t,"default")),O=(r,t,e)=>(e=r!=null?TA(lA(r)):{},ke(t||!r||!r.__esModule?Ke(e,"default",{value:r,enumerable:!0}):e,r)),b=r=>ke(Ke({},"__esModule",{value:!0}),r);var c={};import*as vx from"@opentelemetry/api";var d=F(()=>{tt(c,vx)});var Se=S(mt=>{"use strict";Object.defineProperty(mt,"__esModule",{value:!0});mt.isTracingSuppressed=mt.unsuppressTracing=mt.suppressTracing=void 0;var mA=(d(),b(c)),bn=(0,mA.createContextKey)("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function fA(r){return r.setValue(bn,!0)}mt.suppressTracing=fA;function hA(r){return r.deleteValue(bn)}mt.unsuppressTracing=hA;function RA(r){return r.getValue(bn)===!0}mt.isTracingSuppressed=RA});var yn=S(y=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});y.BAGGAGE_MAX_TOTAL_LENGTH=y.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=y.BAGGAGE_MAX_NAME_VALUE_PAIRS=y.BAGGAGE_HEADER=y.BAGGAGE_ITEMS_SEPARATOR=y.BAGGAGE_PROPERTIES_SEPARATOR=y.BAGGAGE_KEY_PAIR_SEPARATOR=void 0;y.BAGGAGE_KEY_PAIR_SEPARATOR="=";y.BAGGAGE_PROPERTIES_SEPARATOR=";";y.BAGGAGE_ITEMS_SEPARATOR=",";y.BAGGAGE_HEADER="baggage";y.BAGGAGE_MAX_NAME_VALUE_PAIRS=180;y.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=4096;y.BAGGAGE_MAX_TOTAL_LENGTH=8192});var Vn=S(st=>{"use strict";Object.defineProperty(st,"__esModule",{value:!0});st.parseKeyPairsIntoRecord=st.parsePairKeyValue=st.getKeyPairs=st.serializeKeyPairs=void 0;var OA=(d(),b(c)),It=yn();function gA(r){return r.reduce((t,e)=>{let n=`${t}${t!==""?It.BAGGAGE_ITEMS_SEPARATOR:""}${e}`;return n.length>It.BAGGAGE_MAX_TOTAL_LENGTH?t:n},"")}st.serializeKeyPairs=gA;function NA(r){return r.getAllEntries().map(([t,e])=>{let n=`${encodeURIComponent(t)}=${encodeURIComponent(e.value)}`;return e.metadata!==void 0&&(n+=It.BAGGAGE_PROPERTIES_SEPARATOR+e.metadata.toString()),n})}st.getKeyPairs=NA;function Ts(r){let t=r.split(It.BAGGAGE_PROPERTIES_SEPARATOR);if(t.length<=0)return;let e=t.shift();if(!e)return;let n=e.indexOf(It.BAGGAGE_KEY_PAIR_SEPARATOR);if(n<=0)return;let o=decodeURIComponent(e.substring(0,n).trim()),s=decodeURIComponent(e.substring(n+1).trim()),i;return t.length>0&&(i=(0,OA.baggageEntryMetadataFromString)(t.join(It.BAGGAGE_PROPERTIES_SEPARATOR))),{key:o,value:s,metadata:i}}st.parsePairKeyValue=Ts;function MA(r){let t={};return typeof r=="string"&&r.length>0&&r.split(It.BAGGAGE_ITEMS_SEPARATOR).forEach(e=>{let n=Ts(e);n!==void 0&&n.value.length>0&&(t[n.key]=n.value)}),t}st.parseKeyPairsIntoRecord=MA});var Ss=S(je=>{"use strict";Object.defineProperty(je,"__esModule",{value:!0});je.W3CBaggagePropagator=void 0;var vn=(d(),b(c)),PA=Se(),xt=yn(),Bn=Vn(),wn=class{inject(t,e,n){let o=vn.propagation.getBaggage(t);if(!o||(0,PA.isTracingSuppressed)(t))return;let s=(0,Bn.getKeyPairs)(o).filter(a=>a.length<=xt.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS).slice(0,xt.BAGGAGE_MAX_NAME_VALUE_PAIRS),i=(0,Bn.serializeKeyPairs)(s);i.length>0&&n.set(e,xt.BAGGAGE_HEADER,i)}extract(t,e,n){let o=n.get(e,xt.BAGGAGE_HEADER),s=Array.isArray(o)?o.join(xt.BAGGAGE_ITEMS_SEPARATOR):o;if(!s)return t;let i={};return s.length===0||(s.split(xt.BAGGAGE_ITEMS_SEPARATOR).forEach(_=>{let E=(0,Bn.parsePairKeyValue)(_);if(E){let u={value:E.value};E.metadata&&(u.metadata=E.metadata),i[E.key]=u}}),Object.entries(i).length===0)?t:vn.propagation.setBaggage(t,vn.propagation.createBaggage(i))}fields(){return[xt.BAGGAGE_HEADER]}};je.W3CBaggagePropagator=wn});var ps=S(We=>{"use strict";Object.defineProperty(We,"__esModule",{value:!0});We.AnchoredClock=void 0;var Gn=class{_monotonicClock;_epochMillis;_performanceMillis;constructor(t,e){this._monotonicClock=e,this._epochMillis=t.now(),this._performanceMillis=e.now()}now(){let t=this._monotonicClock.now()-this._performanceMillis;return this._epochMillis+t}};We.AnchoredClock=Gn});var fs=S(ft=>{"use strict";Object.defineProperty(ft,"__esModule",{value:!0});ft.isAttributeValue=ft.isAttributeKey=ft.sanitizeAttributes=void 0;var ls=(d(),b(c));function CA(r){let t={};if(typeof r!="object"||r==null)return t;for(let[e,n]of Object.entries(r)){if(!As(e)){ls.diag.warn(`Invalid attribute key: ${e}`);continue}if(!ds(n)){ls.diag.warn(`Invalid attribute value set for key: ${e}`);continue}Array.isArray(n)?t[e]=n.slice():t[e]=n}return t}ft.sanitizeAttributes=CA;function As(r){return typeof r=="string"&&r.length>0}ft.isAttributeKey=As;function ds(r){return r==null?!0:Array.isArray(r)?LA(r):ms(r)}ft.isAttributeValue=ds;function LA(r){let t;for(let e of r)if(e!=null){if(!t){if(ms(e)){t=typeof e;continue}return!1}if(typeof e!==t)return!1}return!0}function ms(r){switch(typeof r){case"number":case"boolean":case"string":return!0}return!1}});var Hn=S(qe=>{"use strict";Object.defineProperty(qe,"__esModule",{value:!0});qe.loggingErrorHandler=void 0;var IA=(d(),b(c));function xA(){return r=>{IA.diag.error(DA(r))}}qe.loggingErrorHandler=xA;function DA(r){return typeof r=="string"?r:JSON.stringify(UA(r))}function UA(r){let t={},e=r;for(;e!==null;)Object.getOwnPropertyNames(e).forEach(n=>{if(t[n])return;let o=e[n];o&&(t[n]=String(o))}),e=Object.getPrototypeOf(e);return t}});var Rs=S(Ht=>{"use strict";Object.defineProperty(Ht,"__esModule",{value:!0});Ht.globalErrorHandler=Ht.setGlobalErrorHandler=void 0;var bA=Hn(),hs=(0,bA.loggingErrorHandler)();function yA(r){hs=r}Ht.setGlobalErrorHandler=yA;function VA(r){try{hs(r)}catch{}}Ht.globalErrorHandler=VA});var Os=S(it=>{"use strict";Object.defineProperty(it,"__esModule",{value:!0});it.getStringListFromEnv=it.getNumberFromEnv=it.getBooleanFromEnv=it.getStringFromEnv=void 0;function vA(r){}it.getStringFromEnv=vA;function BA(r){}it.getBooleanFromEnv=BA;function wA(r){}it.getNumberFromEnv=wA;function GA(r){}it.getStringListFromEnv=GA});var gs=S($e=>{"use strict";Object.defineProperty($e,"__esModule",{value:!0});$e._globalThis=void 0;$e._globalThis=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{}});var Ns=S(Xe=>{"use strict";Object.defineProperty(Xe,"__esModule",{value:!0});Xe.otperformance=void 0;Xe.otperformance=performance});var Ms=S(ze=>{"use strict";Object.defineProperty(ze,"__esModule",{value:!0});ze.VERSION=void 0;ze.VERSION="2.1.0"});function C(r){let t={},e=r.length;for(let n=0;n<e;n++){let o=r[n];o&&(t[String(o).toUpperCase().replace(/[-.]/g,"_")]=o)}return t}var Fn=F(()=>{});var Ps,Cs,Ls,Is,xs,Ds,Us,bs,ys,Vs,vs,Bs,ws,Gs,Hs,Fs,Ys,ks,Ks,js,Ws,qs,$s,Xs,zs,Qs,Js,Zs,ti,ei,ri,ni,oi,si,ii,ai,ci,_i,Ei,ui,Ti,Si,pi,li,Ai,di,mi,fi,hi,Ri,Oi,gi,Ni,Mi,Pi,Ci,Li,Ii,xi,Di,Ui,bi,yi,Vi,vi,Bi,wi,Gi,Hi,Fi,Yi,ki,Ki,ji,Wi,qi,$i,Xi,zi,Qi,Ji,Zi,ta,ea,ra,na,oa,sa,ia,aa,ca,_a,Ea,ua,Ta,Sa,pa,la,Aa,da,ma,fa,ha,Ra,Oa,ga,Na,Ma,Pa,Ca,La,Ia,xa,Da,Ua,ba,ya,Va,va,Ba,wa,Ga,Ha,Fa,Ya,ka,Ka,ja,HA,FA,YA,kA,KA,jA,WA,qA,$A,XA,zA,QA,JA,ZA,td,ed,rd,nd,od,sd,id,ad,cd,_d,Ed,ud,Td,Sd,pd,ld,Ad,dd,md,fd,hd,Rd,Od,gd,Nd,Md,Pd,Cd,Ld,Id,xd,Dd,Ud,bd,yd,Vd,vd,Bd,wd,Gd,Hd,Fd,Yd,kd,Kd,jd,Wd,qd,$d,Xd,zd,Qd,Jd,Zd,tm,em,rm,nm,om,sm,im,am,cm,_m,Em,um,Tm,Sm,pm,lm,Am,dm,mm,fm,hm,Rm,Om,gm,Nm,Mm,Pm,Cm,Lm,Im,xm,Dm,Um,bm,ym,Vm,vm,Bm,wm,Gm,Hm,Fm,Ym,km,Km,jm,Wm,qm,$m,Xm,zm,Qm,Jm,Zm,tf,ef,rf,nf,of,sf,af,Wa,qa,$a,Xa,za,Qa,Ja,Za,tc,ec,rc,nc,oc,sc,ic,ac,cc,_c,Ec,uc,Tc,Sc,pc,lc,Ac,dc,mc,fc,hc,Rc,Oc,gc,Nc,Mc,Pc,Cc,Lc,Ic,xc,Dc,Uc,bc,yc,Vc,vc,Bc,wc,cf,_f,Ef,uf,Tf,Sf,pf,lf,Af,df,mf,ff,hf,Rf,Of,gf,Nf,Mf,Pf,Cf,Lf,If,xf,Df,Uf,bf,yf,Vf,vf,Bf,wf,Gf,Hf,Ff,Yf,kf,Kf,jf,Wf,qf,$f,Xf,zf,Qf,Jf,Zf,th,eh,Gc,Hc,Fc,Yc,kc,Kc,jc,Wc,qc,$c,Xc,rh,nh,oh,sh,ih,ah,ch,_h,Eh,uh,Th,Sh,zc,Qc,Jc,Zc,t_,ph,lh,Ah,dh,mh,fh,e_,r_,n_,hh,Rh,Oh,gh,o_,s_,i_,a_,Nh,Mh,Ph,Ch,Lh,c_,__,E_,u_,T_,S_,p_,Ih,xh,Dh,Uh,bh,yh,Vh,vh,l_,A_,d_,m_,f_,Bh,wh,Gh,Hh,Fh,Yh,h_,R_,O_,g_,N_,M_,P_,C_,L_,I_,x_,D_,U_,b_,y_,V_,v_,B_,w_,G_,H_,kh,Kh,jh,Wh,qh,$h,Xh,zh,Qh,Jh,Zh,tR,eR,rR,nR,oR,sR,iR,aR,cR,_R,ER,F_,Y_,k_,K_,j_,uR,TR,SR,pR,lR,AR,W_,q_,dR,mR,fR,$_,X_,hR,RR,OR,z_,Q_,J_,Z_,tE,eE,rE,nE,oE,sE,iE,aE,cE,_E,EE,uE,TE,gR,NR,MR,PR,CR,LR,IR,xR,DR,UR,bR,yR,VR,vR,BR,wR,GR,HR,SE,pE,FR,YR,kR,lE=F(()=>{Fn();Ps="aws.lambda.invoked_arn",Cs="db.system",Ls="db.connection_string",Is="db.user",xs="db.jdbc.driver_classname",Ds="db.name",Us="db.statement",bs="db.operation",ys="db.mssql.instance_name",Vs="db.cassandra.keyspace",vs="db.cassandra.page_size",Bs="db.cassandra.consistency_level",ws="db.cassandra.table",Gs="db.cassandra.idempotence",Hs="db.cassandra.speculative_execution_count",Fs="db.cassandra.coordinator.id",Ys="db.cassandra.coordinator.dc",ks="db.hbase.namespace",Ks="db.redis.database_index",js="db.mongodb.collection",Ws="db.sql.table",qs="exception.type",$s="exception.message",Xs="exception.stacktrace",zs="exception.escaped",Qs="faas.trigger",Js="faas.execution",Zs="faas.document.collection",ti="faas.document.operation",ei="faas.document.time",ri="faas.document.name",ni="faas.time",oi="faas.cron",si="faas.coldstart",ii="faas.invoked_name",ai="faas.invoked_provider",ci="faas.invoked_region",_i="net.transport",Ei="net.peer.ip",ui="net.peer.port",Ti="net.peer.name",Si="net.host.ip",pi="net.host.port",li="net.host.name",Ai="net.host.connection.type",di="net.host.connection.subtype",mi="net.host.carrier.name",fi="net.host.carrier.mcc",hi="net.host.carrier.mnc",Ri="net.host.carrier.icc",Oi="peer.service",gi="enduser.id",Ni="enduser.role",Mi="enduser.scope",Pi="thread.id",Ci="thread.name",Li="code.function",Ii="code.namespace",xi="code.filepath",Di="code.lineno",Ui="http.method",bi="http.url",yi="http.target",Vi="http.host",vi="http.scheme",Bi="http.status_code",wi="http.flavor",Gi="http.user_agent",Hi="http.request_content_length",Fi="http.request_content_length_uncompressed",Yi="http.response_content_length",ki="http.response_content_length_uncompressed",Ki="http.server_name",ji="http.route",Wi="http.client_ip",qi="aws.dynamodb.table_names",$i="aws.dynamodb.consumed_capacity",Xi="aws.dynamodb.item_collection_metrics",zi="aws.dynamodb.provisioned_read_capacity",Qi="aws.dynamodb.provisioned_write_capacity",Ji="aws.dynamodb.consistent_read",Zi="aws.dynamodb.projection",ta="aws.dynamodb.limit",ea="aws.dynamodb.attributes_to_get",ra="aws.dynamodb.index_name",na="aws.dynamodb.select",oa="aws.dynamodb.global_secondary_indexes",sa="aws.dynamodb.local_secondary_indexes",ia="aws.dynamodb.exclusive_start_table",aa="aws.dynamodb.table_count",ca="aws.dynamodb.scan_forward",_a="aws.dynamodb.segment",Ea="aws.dynamodb.total_segments",ua="aws.dynamodb.count",Ta="aws.dynamodb.scanned_count",Sa="aws.dynamodb.attribute_definitions",pa="aws.dynamodb.global_secondary_index_updates",la="messaging.system",Aa="messaging.destination",da="messaging.destination_kind",ma="messaging.temp_destination",fa="messaging.protocol",ha="messaging.protocol_version",Ra="messaging.url",Oa="messaging.message_id",ga="messaging.conversation_id",Na="messaging.message_payload_size_bytes",Ma="messaging.message_payload_compressed_size_bytes",Pa="messaging.operation",Ca="messaging.consumer_id",La="messaging.rabbitmq.routing_key",Ia="messaging.kafka.message_key",xa="messaging.kafka.consumer_group",Da="messaging.kafka.client_id",Ua="messaging.kafka.partition",ba="messaging.kafka.tombstone",ya="rpc.system",Va="rpc.service",va="rpc.method",Ba="rpc.grpc.status_code",wa="rpc.jsonrpc.version",Ga="rpc.jsonrpc.request_id",Ha="rpc.jsonrpc.error_code",Fa="rpc.jsonrpc.error_message",Ya="message.type",ka="message.id",Ka="message.compressed_size",ja="message.uncompressed_size",HA=Ps,FA=Cs,YA=Ls,kA=Is,KA=xs,jA=Ds,WA=Us,qA=bs,$A=ys,XA=Vs,zA=vs,QA=Bs,JA=ws,ZA=Gs,td=Hs,ed=Fs,rd=Ys,nd=ks,od=Ks,sd=js,id=Ws,ad=qs,cd=$s,_d=Xs,Ed=zs,ud=Qs,Td=Js,Sd=Zs,pd=ti,ld=ei,Ad=ri,dd=ni,md=oi,fd=si,hd=ii,Rd=ai,Od=ci,gd=_i,Nd=Ei,Md=ui,Pd=Ti,Cd=Si,Ld=pi,Id=li,xd=Ai,Dd=di,Ud=mi,bd=fi,yd=hi,Vd=Ri,vd=Oi,Bd=gi,wd=Ni,Gd=Mi,Hd=Pi,Fd=Ci,Yd=Li,kd=Ii,Kd=xi,jd=Di,Wd=Ui,qd=bi,$d=yi,Xd=Vi,zd=vi,Qd=Bi,Jd=wi,Zd=Gi,tm=Hi,em=Fi,rm=Yi,nm=ki,om=Ki,sm=ji,im=Wi,am=qi,cm=$i,_m=Xi,Em=zi,um=Qi,Tm=Ji,Sm=Zi,pm=ta,lm=ea,Am=ra,dm=na,mm=oa,fm=sa,hm=ia,Rm=aa,Om=ca,gm=_a,Nm=Ea,Mm=ua,Pm=Ta,Cm=Sa,Lm=pa,Im=la,xm=Aa,Dm=da,Um=ma,bm=fa,ym=ha,Vm=Ra,vm=Oa,Bm=ga,wm=Na,Gm=Ma,Hm=Pa,Fm=Ca,Ym=La,km=Ia,Km=xa,jm=Da,Wm=Ua,qm=ba,$m=ya,Xm=Va,zm=va,Qm=Ba,Jm=wa,Zm=Ga,tf=Ha,ef=Fa,rf=Ya,nf=ka,of=Ka,sf=ja,af=C([Ps,Cs,Ls,Is,xs,Ds,Us,bs,ys,Vs,vs,Bs,ws,Gs,Hs,Fs,Ys,ks,Ks,js,Ws,qs,$s,Xs,zs,Qs,Js,Zs,ti,ei,ri,ni,oi,si,ii,ai,ci,_i,Ei,ui,Ti,Si,pi,li,Ai,di,mi,fi,hi,Ri,Oi,gi,Ni,Mi,Pi,Ci,Li,Ii,xi,Di,Ui,bi,yi,Vi,vi,Bi,wi,Gi,Hi,Fi,Yi,ki,Ki,ji,Wi,qi,$i,Xi,zi,Qi,Ji,Zi,ta,ea,ra,na,oa,sa,ia,aa,ca,_a,Ea,ua,Ta,Sa,pa,la,Aa,da,ma,fa,ha,Ra,Oa,ga,Na,Ma,Pa,Ca,La,Ia,xa,Da,Ua,ba,ya,Va,va,Ba,wa,Ga,Ha,Fa,Ya,ka,Ka,ja]),Wa="other_sql",qa="mssql",$a="mysql",Xa="oracle",za="db2",Qa="postgresql",Ja="redshift",Za="hive",tc="cloudscape",ec="hsqldb",rc="progress",nc="maxdb",oc="hanadb",sc="ingres",ic="firstsql",ac="edb",cc="cache",_c="adabas",Ec="firebird",uc="derby",Tc="filemaker",Sc="informix",pc="instantdb",lc="interbase",Ac="mariadb",dc="netezza",mc="pervasive",fc="pointbase",hc="sqlite",Rc="sybase",Oc="teradata",gc="vertica",Nc="h2",Mc="coldfusion",Pc="cassandra",Cc="hbase",Lc="mongodb",Ic="redis",xc="couchbase",Dc="couchdb",Uc="cosmosdb",bc="dynamodb",yc="neo4j",Vc="geode",vc="elasticsearch",Bc="memcached",wc="cockroachdb",cf=Wa,_f=qa,Ef=$a,uf=Xa,Tf=za,Sf=Qa,pf=Ja,lf=Za,Af=tc,df=ec,mf=rc,ff=nc,hf=oc,Rf=sc,Of=ic,gf=ac,Nf=cc,Mf=_c,Pf=Ec,Cf=uc,Lf=Tc,If=Sc,xf=pc,Df=lc,Uf=Ac,bf=dc,yf=mc,Vf=fc,vf=hc,Bf=Rc,wf=Oc,Gf=gc,Hf=Nc,Ff=Mc,Yf=Pc,kf=Cc,Kf=Lc,jf=Ic,Wf=xc,qf=Dc,$f=Uc,Xf=bc,zf=yc,Qf=Vc,Jf=vc,Zf=Bc,th=wc,eh=C([Wa,qa,$a,Xa,za,Qa,Ja,Za,tc,ec,rc,nc,oc,sc,ic,ac,cc,_c,Ec,uc,Tc,Sc,pc,lc,Ac,dc,mc,fc,hc,Rc,Oc,gc,Nc,Mc,Pc,Cc,Lc,Ic,xc,Dc,Uc,bc,yc,Vc,vc,Bc,wc]),Gc="all",Hc="each_quorum",Fc="quorum",Yc="local_quorum",kc="one",Kc="two",jc="three",Wc="local_one",qc="any",$c="serial",Xc="local_serial",rh=Gc,nh=Hc,oh=Fc,sh=Yc,ih=kc,ah=Kc,ch=jc,_h=Wc,Eh=qc,uh=$c,Th=Xc,Sh=C([Gc,Hc,Fc,Yc,kc,Kc,jc,Wc,qc,$c,Xc]),zc="datasource",Qc="http",Jc="pubsub",Zc="timer",t_="other",ph=zc,lh=Qc,Ah=Jc,dh=Zc,mh=t_,fh=C([zc,Qc,Jc,Zc,t_]),e_="insert",r_="edit",n_="delete",hh=e_,Rh=r_,Oh=n_,gh=C([e_,r_,n_]),o_="alibaba_cloud",s_="aws",i_="azure",a_="gcp",Nh=o_,Mh=s_,Ph=i_,Ch=a_,Lh=C([o_,s_,i_,a_]),c_="ip_tcp",__="ip_udp",E_="ip",u_="unix",T_="pipe",S_="inproc",p_="other",Ih=c_,xh=__,Dh=E_,Uh=u_,bh=T_,yh=S_,Vh=p_,vh=C([c_,__,E_,u_,T_,S_,p_]),l_="wifi",A_="wired",d_="cell",m_="unavailable",f_="unknown",Bh=l_,wh=A_,Gh=d_,Hh=m_,Fh=f_,Yh=C([l_,A_,d_,m_,f_]),h_="gprs",R_="edge",O_="umts",g_="cdma",N_="evdo_0",M_="evdo_a",P_="cdma2000_1xrtt",C_="hsdpa",L_="hsupa",I_="hspa",x_="iden",D_="evdo_b",U_="lte",b_="ehrpd",y_="hspap",V_="gsm",v_="td_scdma",B_="iwlan",w_="nr",G_="nrnsa",H_="lte_ca",kh=h_,Kh=R_,jh=O_,Wh=g_,qh=N_,$h=M_,Xh=P_,zh=C_,Qh=L_,Jh=I_,Zh=x_,tR=D_,eR=U_,rR=b_,nR=y_,oR=V_,sR=v_,iR=B_,aR=w_,cR=G_,_R=H_,ER=C([h_,R_,O_,g_,N_,M_,P_,C_,L_,I_,x_,D_,U_,b_,y_,V_,v_,B_,w_,G_,H_]),F_="1.0",Y_="1.1",k_="2.0",K_="SPDY",j_="QUIC",uR=F_,TR=Y_,SR=k_,pR=K_,lR=j_,AR={HTTP_1_0:F_,HTTP_1_1:Y_,HTTP_2_0:k_,SPDY:K_,QUIC:j_},W_="queue",q_="topic",dR=W_,mR=q_,fR=C([W_,q_]),$_="receive",X_="process",hR=$_,RR=X_,OR=C([$_,X_]),z_=0,Q_=1,J_=2,Z_=3,tE=4,eE=5,rE=6,nE=7,oE=8,sE=9,iE=10,aE=11,cE=12,_E=13,EE=14,uE=15,TE=16,gR=z_,NR=Q_,MR=J_,PR=Z_,CR=tE,LR=eE,IR=rE,xR=nE,DR=oE,UR=sE,bR=iE,yR=aE,VR=cE,vR=_E,BR=EE,wR=uE,GR=TE,HR={OK:z_,CANCELLED:Q_,UNKNOWN:J_,INVALID_ARGUMENT:Z_,DEADLINE_EXCEEDED:tE,NOT_FOUND:eE,ALREADY_EXISTS:rE,PERMISSION_DENIED:nE,RESOURCE_EXHAUSTED:oE,FAILED_PRECONDITION:sE,ABORTED:iE,OUT_OF_RANGE:aE,UNIMPLEMENTED:cE,INTERNAL:_E,UNAVAILABLE:EE,DATA_LOSS:uE,UNAUTHENTICATED:TE},SE="SENT",pE="RECEIVED",FR=SE,YR=pE,kR=C([SE,pE])});var AE=F(()=>{lE()});var dE,mE,fE,hE,RE,OE,gE,NE,ME,PE,CE,LE,IE,xE,DE,UE,bE,yE,VE,vE,BE,wE,GE,HE,FE,YE,kE,KE,jE,WE,qE,$E,XE,zE,QE,JE,ZE,tu,eu,ru,nu,ou,su,iu,au,cu,_u,Eu,uu,Tu,Su,pu,lu,Au,du,mu,fu,hu,Ru,Ou,gu,Nu,Mu,Pu,Cu,Lu,Iu,xu,Du,Uu,bu,yu,Vu,vu,Bu,wu,Gu,Hu,Fu,Yu,ku,KR,jR,WR,qR,$R,XR,zR,QR,JR,ZR,tO,eO,rO,nO,oO,sO,iO,aO,cO,_O,EO,uO,TO,SO,pO,lO,AO,dO,mO,fO,hO,RO,OO,gO,NO,MO,PO,CO,LO,IO,xO,DO,UO,bO,yO,VO,vO,BO,wO,GO,HO,FO,YO,kO,KO,jO,WO,qO,$O,XO,zO,QO,JO,ZO,tg,eg,rg,ng,og,sg,ig,ag,cg,_g,Eg,ug,Tg,Sg,pg,lg,Ag,dg,Ku,ju,Wu,qu,mg,fg,hg,Rg,Og,$u,Xu,zu,Qu,Ju,Zu,tT,eT,rT,nT,oT,sT,iT,aT,cT,_T,ET,gg,Ng,Mg,Pg,Cg,Lg,Ig,xg,Dg,Ug,bg,yg,Vg,vg,Bg,wg,Gg,Hg,uT,TT,Fg,Yg,kg,ST,pT,lT,AT,dT,mT,fT,Kg,jg,Wg,qg,$g,Xg,zg,Qg,hT,RT,OT,gT,NT,MT,PT,CT,LT,IT,xT,Jg,Zg,tN,eN,rN,nN,oN,sN,iN,aN,cN,_N,DT,UT,bT,yT,VT,vT,BT,wT,GT,HT,EN,uN,TN,SN,pN,lN,AN,dN,mN,fN,hN,FT=F(()=>{Fn();dE="cloud.provider",mE="cloud.account.id",fE="cloud.region",hE="cloud.availability_zone",RE="cloud.platform",OE="aws.ecs.container.arn",gE="aws.ecs.cluster.arn",NE="aws.ecs.launchtype",ME="aws.ecs.task.arn",PE="aws.ecs.task.family",CE="aws.ecs.task.revision",LE="aws.eks.cluster.arn",IE="aws.log.group.names",xE="aws.log.group.arns",DE="aws.log.stream.names",UE="aws.log.stream.arns",bE="container.name",yE="container.id",VE="container.runtime",vE="container.image.name",BE="container.image.tag",wE="deployment.environment",GE="device.id",HE="device.model.identifier",FE="device.model.name",YE="faas.name",kE="faas.id",KE="faas.version",jE="faas.instance",WE="faas.max_memory",qE="host.id",$E="host.name",XE="host.type",zE="host.arch",QE="host.image.name",JE="host.image.id",ZE="host.image.version",tu="k8s.cluster.name",eu="k8s.node.name",ru="k8s.node.uid",nu="k8s.namespace.name",ou="k8s.pod.uid",su="k8s.pod.name",iu="k8s.container.name",au="k8s.replicaset.uid",cu="k8s.replicaset.name",_u="k8s.deployment.uid",Eu="k8s.deployment.name",uu="k8s.statefulset.uid",Tu="k8s.statefulset.name",Su="k8s.daemonset.uid",pu="k8s.daemonset.name",lu="k8s.job.uid",Au="k8s.job.name",du="k8s.cronjob.uid",mu="k8s.cronjob.name",fu="os.type",hu="os.description",Ru="os.name",Ou="os.version",gu="process.pid",Nu="process.executable.name",Mu="process.executable.path",Pu="process.command",Cu="process.command_line",Lu="process.command_args",Iu="process.owner",xu="process.runtime.name",Du="process.runtime.version",Uu="process.runtime.description",bu="service.name",yu="service.namespace",Vu="service.instance.id",vu="service.version",Bu="telemetry.sdk.name",wu="telemetry.sdk.language",Gu="telemetry.sdk.version",Hu="telemetry.auto.version",Fu="webengine.name",Yu="webengine.version",ku="webengine.description",KR=dE,jR=mE,WR=fE,qR=hE,$R=RE,XR=OE,zR=gE,QR=NE,JR=ME,ZR=PE,tO=CE,eO=LE,rO=IE,nO=xE,oO=DE,sO=UE,iO=bE,aO=yE,cO=VE,_O=vE,EO=BE,uO=wE,TO=GE,SO=HE,pO=FE,lO=YE,AO=kE,dO=KE,mO=jE,fO=WE,hO=qE,RO=$E,OO=XE,gO=zE,NO=QE,MO=JE,PO=ZE,CO=tu,LO=eu,IO=ru,xO=nu,DO=ou,UO=su,bO=iu,yO=au,VO=cu,vO=_u,BO=Eu,wO=uu,GO=Tu,HO=Su,FO=pu,YO=lu,kO=Au,KO=du,jO=mu,WO=fu,qO=hu,$O=Ru,XO=Ou,zO=gu,QO=Nu,JO=Mu,ZO=Pu,tg=Cu,eg=Lu,rg=Iu,ng=xu,og=Du,sg=Uu,ig=bu,ag=yu,cg=Vu,_g=vu,Eg=Bu,ug=wu,Tg=Gu,Sg=Hu,pg=Fu,lg=Yu,Ag=ku,dg=C([dE,mE,fE,hE,RE,OE,gE,NE,ME,PE,CE,LE,IE,xE,DE,UE,bE,yE,VE,vE,BE,wE,GE,HE,FE,YE,kE,KE,jE,WE,qE,$E,XE,zE,QE,JE,ZE,tu,eu,ru,nu,ou,su,iu,au,cu,_u,Eu,uu,Tu,Su,pu,lu,Au,du,mu,fu,hu,Ru,Ou,gu,Nu,Mu,Pu,Cu,Lu,Iu,xu,Du,Uu,bu,yu,Vu,vu,Bu,wu,Gu,Hu,Fu,Yu,ku]),Ku="alibaba_cloud",ju="aws",Wu="azure",qu="gcp",mg=Ku,fg=ju,hg=Wu,Rg=qu,Og=C([Ku,ju,Wu,qu]),$u="alibaba_cloud_ecs",Xu="alibaba_cloud_fc",zu="aws_ec2",Qu="aws_ecs",Ju="aws_eks",Zu="aws_lambda",tT="aws_elastic_beanstalk",eT="azure_vm",rT="azure_container_instances",nT="azure_aks",oT="azure_functions",sT="azure_app_service",iT="gcp_compute_engine",aT="gcp_cloud_run",cT="gcp_kubernetes_engine",_T="gcp_cloud_functions",ET="gcp_app_engine",gg=$u,Ng=Xu,Mg=zu,Pg=Qu,Cg=Ju,Lg=Zu,Ig=tT,xg=eT,Dg=rT,Ug=nT,bg=oT,yg=sT,Vg=iT,vg=aT,Bg=cT,wg=_T,Gg=ET,Hg=C([$u,Xu,zu,Qu,Ju,Zu,tT,eT,rT,nT,oT,sT,iT,aT,cT,_T,ET]),uT="ec2",TT="fargate",Fg=uT,Yg=TT,kg=C([uT,TT]),ST="amd64",pT="arm32",lT="arm64",AT="ia64",dT="ppc32",mT="ppc64",fT="x86",Kg=ST,jg=pT,Wg=lT,qg=AT,$g=dT,Xg=mT,zg=fT,Qg=C([ST,pT,lT,AT,dT,mT,fT]),hT="windows",RT="linux",OT="darwin",gT="freebsd",NT="netbsd",MT="openbsd",PT="dragonflybsd",CT="hpux",LT="aix",IT="solaris",xT="z_os",Jg=hT,Zg=RT,tN=OT,eN=gT,rN=NT,nN=MT,oN=PT,sN=CT,iN=LT,aN=IT,cN=xT,_N=C([hT,RT,OT,gT,NT,MT,PT,CT,LT,IT,xT]),DT="cpp",UT="dotnet",bT="erlang",yT="go",VT="java",vT="nodejs",BT="php",wT="python",GT="ruby",HT="webjs",EN=DT,uN=UT,TN=bT,SN=yT,pN=VT,lN=vT,AN=BT,dN=wT,mN=GT,fN=HT,hN=C([DT,UT,bT,yT,VT,vT,BT,wT,GT,HT])});var YT=F(()=>{FT()});var RN,ON,gN,NN,MN,PN,CN,LN,IN,xN,DN,UN,bN,yN,VN,vN,BN,wN,GN,HN,FN,YN,kN,KN,jN,WN,qN,$N,XN,zN,QN,JN,ZN,tM,eM,rM,nM,oM,sM,iM,aM,cM,_M,EM,uM,TM,SM,pe,Yn,le,pM,lM,AM,dM,mM,fM,hM,RM,OM,gM,NM,MM,PM,CM,LM,IM,xM,DM,UM,bM,yM,VM,vM,BM,wM,GM,HM,FM,YM,kM,KM,jM,WM,qM,$M,XM,zM,QM,JM,ZM,tP,eP,rP,nP,oP,sP,iP,aP,cP,_P,EP,uP,TP,SP,Ae,pP,lP,AP,dP,mP,fP,hP,RP,OP,Qe,gP,NP,MP,PP,CP,LP,IP,xP,DP,UP,bP,yP,Je,Ze,VP,vP,BP,wP,GP,HP,kT=F(()=>{RN="aspnetcore.diagnostics.exception.result",ON="aborted",gN="handled",NN="skipped",MN="unhandled",PN="aspnetcore.diagnostics.handler.type",CN="aspnetcore.rate_limiting.policy",LN="aspnetcore.rate_limiting.result",IN="acquired",xN="endpoint_limiter",DN="global_limiter",UN="request_canceled",bN="aspnetcore.request.is_unhandled",yN="aspnetcore.routing.is_fallback",VN="aspnetcore.routing.match_status",vN="failure",BN="success",wN="aspnetcore.user.is_authenticated",GN="client.address",HN="client.port",FN="code.column.number",YN="code.file.path",kN="code.function.name",KN="code.line.number",jN="code.stacktrace",WN="db.collection.name",qN="db.namespace",$N="db.operation.batch.size",XN="db.operation.name",zN="db.query.summary",QN="db.query.text",JN="db.response.status_code",ZN="db.stored_procedure.name",tM="db.system.name",eM="mariadb",rM="microsoft.sql_server",nM="mysql",oM="postgresql",sM="dotnet.gc.heap.generation",iM="gen0",aM="gen1",cM="gen2",_M="loh",EM="poh",uM="error.type",TM="_OTHER",SM="exception.escaped",pe="exception.message",Yn="exception.stacktrace",le="exception.type",pM=r=>`http.request.header.${r}`,lM="http.request.method",AM="_OTHER",dM="CONNECT",mM="DELETE",fM="GET",hM="HEAD",RM="OPTIONS",OM="PATCH",gM="POST",NM="PUT",MM="TRACE",PM="http.request.method_original",CM="http.request.resend_count",LM=r=>`http.response.header.${r}`,IM="http.response.status_code",xM="http.route",DM="jvm.gc.action",UM="jvm.gc.name",bM="jvm.memory.pool.name",yM="jvm.memory.type",VM="heap",vM="non_heap",BM="jvm.thread.daemon",wM="jvm.thread.state",GM="blocked",HM="new",FM="runnable",YM="terminated",kM="timed_waiting",KM="waiting",jM="network.local.address",WM="network.local.port",qM="network.peer.address",$M="network.peer.port",XM="network.protocol.name",zM="network.protocol.version",QM="network.transport",JM="pipe",ZM="quic",tP="tcp",eP="udp",rP="unix",nP="network.type",oP="ipv4",sP="ipv6",iP="otel.scope.name",aP="otel.scope.version",cP="otel.status_code",_P="ERROR",EP="OK",uP="otel.status_description",TP="server.address",SP="server.port",Ae="service.name",pP="service.version",lP="signalr.connection.status",AP="app_shutdown",dP="normal_closure",mP="timeout",fP="signalr.transport",hP="long_polling",RP="server_sent_events",OP="web_sockets",Qe="telemetry.sdk.language",gP="cpp",NP="dotnet",MP="erlang",PP="go",CP="java",LP="nodejs",IP="php",xP="python",DP="ruby",UP="rust",bP="swift",yP="webjs",Je="telemetry.sdk.name",Ze="telemetry.sdk.version",VP="url.fragment",vP="url.full",BP="url.path",wP="url.query",GP="url.scheme",HP="user_agent.original"});var FP,YP,kP,KP,jP,WP,qP,$P,XP,zP,QP,JP,ZP,tC,eC,rC,nC,oC,sC,iC,aC,cC,_C,EC,uC,TC,SC,pC,lC,AC,dC,mC,fC,hC,RC,OC,gC,NC,MC,PC,CC,LC,IC,xC,DC,UC,bC,yC,VC,vC,BC,KT=F(()=>{FP="aspnetcore.diagnostics.exceptions",YP="aspnetcore.rate_limiting.active_request_leases",kP="aspnetcore.rate_limiting.queued_requests",KP="aspnetcore.rate_limiting.request.time_in_queue",jP="aspnetcore.rate_limiting.request_lease.duration",WP="aspnetcore.rate_limiting.requests",qP="aspnetcore.routing.match_attempts",$P="db.client.operation.duration",XP="dotnet.assembly.count",zP="dotnet.exceptions",QP="dotnet.gc.collections",JP="dotnet.gc.heap.total_allocated",ZP="dotnet.gc.last_collection.heap.fragmentation.size",tC="dotnet.gc.last_collection.heap.size",eC="dotnet.gc.last_collection.memory.committed_size",rC="dotnet.gc.pause.time",nC="dotnet.jit.compilation.time",oC="dotnet.jit.compiled_il.size",sC="dotnet.jit.compiled_methods",iC="dotnet.monitor.lock_contentions",aC="dotnet.process.cpu.count",cC="dotnet.process.cpu.time",_C="dotnet.process.memory.working_set",EC="dotnet.thread_pool.queue.length",uC="dotnet.thread_pool.thread.count",TC="dotnet.thread_pool.work_item.count",SC="dotnet.timer.count",pC="http.client.request.duration",lC="http.server.request.duration",AC="jvm.class.count",dC="jvm.class.loaded",mC="jvm.class.unloaded",fC="jvm.cpu.count",hC="jvm.cpu.recent_utilization",RC="jvm.cpu.time",OC="jvm.gc.duration",gC="jvm.memory.committed",NC="jvm.memory.limit",MC="jvm.memory.used",PC="jvm.memory.used_after_last_gc",CC="jvm.thread.count",LC="kestrel.active_connections",IC="kestrel.active_tls_handshakes",xC="kestrel.connection.duration",DC="kestrel.queued_connections",UC="kestrel.queued_requests",bC="kestrel.rejected_connections",yC="kestrel.tls_handshake.duration",VC="kestrel.upgraded_connections",vC="signalr.server.active_connections",BC="signalr.server.connection.duration"});var wC,jT=F(()=>{wC="exception"});var WT={};dA(WT,{ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_ABORTED:()=>ON,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_HANDLED:()=>gN,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_SKIPPED:()=>NN,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_UNHANDLED:()=>MN,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ACQUIRED:()=>IN,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ENDPOINT_LIMITER:()=>xN,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_GLOBAL_LIMITER:()=>DN,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_REQUEST_CANCELED:()=>UN,ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_FAILURE:()=>vN,ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_SUCCESS:()=>BN,ATTR_ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT:()=>RN,ATTR_ASPNETCORE_DIAGNOSTICS_HANDLER_TYPE:()=>PN,ATTR_ASPNETCORE_RATE_LIMITING_POLICY:()=>CN,ATTR_ASPNETCORE_RATE_LIMITING_RESULT:()=>LN,ATTR_ASPNETCORE_REQUEST_IS_UNHANDLED:()=>bN,ATTR_ASPNETCORE_ROUTING_IS_FALLBACK:()=>yN,ATTR_ASPNETCORE_ROUTING_MATCH_STATUS:()=>VN,ATTR_ASPNETCORE_USER_IS_AUTHENTICATED:()=>wN,ATTR_CLIENT_ADDRESS:()=>GN,ATTR_CLIENT_PORT:()=>HN,ATTR_CODE_COLUMN_NUMBER:()=>FN,ATTR_CODE_FILE_PATH:()=>YN,ATTR_CODE_FUNCTION_NAME:()=>kN,ATTR_CODE_LINE_NUMBER:()=>KN,ATTR_CODE_STACKTRACE:()=>jN,ATTR_DB_COLLECTION_NAME:()=>WN,ATTR_DB_NAMESPACE:()=>qN,ATTR_DB_OPERATION_BATCH_SIZE:()=>$N,ATTR_DB_OPERATION_NAME:()=>XN,ATTR_DB_QUERY_SUMMARY:()=>zN,ATTR_DB_QUERY_TEXT:()=>QN,ATTR_DB_RESPONSE_STATUS_CODE:()=>JN,ATTR_DB_STORED_PROCEDURE_NAME:()=>ZN,ATTR_DB_SYSTEM_NAME:()=>tM,ATTR_DOTNET_GC_HEAP_GENERATION:()=>sM,ATTR_ERROR_TYPE:()=>uM,ATTR_EXCEPTION_ESCAPED:()=>SM,ATTR_EXCEPTION_MESSAGE:()=>pe,ATTR_EXCEPTION_STACKTRACE:()=>Yn,ATTR_EXCEPTION_TYPE:()=>le,ATTR_HTTP_REQUEST_HEADER:()=>pM,ATTR_HTTP_REQUEST_METHOD:()=>lM,ATTR_HTTP_REQUEST_METHOD_ORIGINAL:()=>PM,ATTR_HTTP_REQUEST_RESEND_COUNT:()=>CM,ATTR_HTTP_RESPONSE_HEADER:()=>LM,ATTR_HTTP_RESPONSE_STATUS_CODE:()=>IM,ATTR_HTTP_ROUTE:()=>xM,ATTR_JVM_GC_ACTION:()=>DM,ATTR_JVM_GC_NAME:()=>UM,ATTR_JVM_MEMORY_POOL_NAME:()=>bM,ATTR_JVM_MEMORY_TYPE:()=>yM,ATTR_JVM_THREAD_DAEMON:()=>BM,ATTR_JVM_THREAD_STATE:()=>wM,ATTR_NETWORK_LOCAL_ADDRESS:()=>jM,ATTR_NETWORK_LOCAL_PORT:()=>WM,ATTR_NETWORK_PEER_ADDRESS:()=>qM,ATTR_NETWORK_PEER_PORT:()=>$M,ATTR_NETWORK_PROTOCOL_NAME:()=>XM,ATTR_NETWORK_PROTOCOL_VERSION:()=>zM,ATTR_NETWORK_TRANSPORT:()=>QM,ATTR_NETWORK_TYPE:()=>nP,ATTR_OTEL_SCOPE_NAME:()=>iP,ATTR_OTEL_SCOPE_VERSION:()=>aP,ATTR_OTEL_STATUS_CODE:()=>cP,ATTR_OTEL_STATUS_DESCRIPTION:()=>uP,ATTR_SERVER_ADDRESS:()=>TP,ATTR_SERVER_PORT:()=>SP,ATTR_SERVICE_NAME:()=>Ae,ATTR_SERVICE_VERSION:()=>pP,ATTR_SIGNALR_CONNECTION_STATUS:()=>lP,ATTR_SIGNALR_TRANSPORT:()=>fP,ATTR_TELEMETRY_SDK_LANGUAGE:()=>Qe,ATTR_TELEMETRY_SDK_NAME:()=>Je,ATTR_TELEMETRY_SDK_VERSION:()=>Ze,ATTR_URL_FRAGMENT:()=>VP,ATTR_URL_FULL:()=>vP,ATTR_URL_PATH:()=>BP,ATTR_URL_QUERY:()=>wP,ATTR_URL_SCHEME:()=>GP,ATTR_USER_AGENT_ORIGINAL:()=>HP,AWSECSLAUNCHTYPEVALUES_EC2:()=>Fg,AWSECSLAUNCHTYPEVALUES_FARGATE:()=>Yg,AwsEcsLaunchtypeValues:()=>kg,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_ECS:()=>gg,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_FC:()=>Ng,CLOUDPLATFORMVALUES_AWS_EC2:()=>Mg,CLOUDPLATFORMVALUES_AWS_ECS:()=>Pg,CLOUDPLATFORMVALUES_AWS_EKS:()=>Cg,CLOUDPLATFORMVALUES_AWS_ELASTIC_BEANSTALK:()=>Ig,CLOUDPLATFORMVALUES_AWS_LAMBDA:()=>Lg,CLOUDPLATFORMVALUES_AZURE_AKS:()=>Ug,CLOUDPLATFORMVALUES_AZURE_APP_SERVICE:()=>yg,CLOUDPLATFORMVALUES_AZURE_CONTAINER_INSTANCES:()=>Dg,CLOUDPLATFORMVALUES_AZURE_FUNCTIONS:()=>bg,CLOUDPLATFORMVALUES_AZURE_VM:()=>xg,CLOUDPLATFORMVALUES_GCP_APP_ENGINE:()=>Gg,CLOUDPLATFORMVALUES_GCP_CLOUD_FUNCTIONS:()=>wg,CLOUDPLATFORMVALUES_GCP_CLOUD_RUN:()=>vg,CLOUDPLATFORMVALUES_GCP_COMPUTE_ENGINE:()=>Vg,CLOUDPLATFORMVALUES_GCP_KUBERNETES_ENGINE:()=>Bg,CLOUDPROVIDERVALUES_ALIBABA_CLOUD:()=>mg,CLOUDPROVIDERVALUES_AWS:()=>fg,CLOUDPROVIDERVALUES_AZURE:()=>hg,CLOUDPROVIDERVALUES_GCP:()=>Rg,CloudPlatformValues:()=>Hg,CloudProviderValues:()=>Og,DBCASSANDRACONSISTENCYLEVELVALUES_ALL:()=>rh,DBCASSANDRACONSISTENCYLEVELVALUES_ANY:()=>Eh,DBCASSANDRACONSISTENCYLEVELVALUES_EACH_QUORUM:()=>nh,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_ONE:()=>_h,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_QUORUM:()=>sh,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_SERIAL:()=>Th,DBCASSANDRACONSISTENCYLEVELVALUES_ONE:()=>ih,DBCASSANDRACONSISTENCYLEVELVALUES_QUORUM:()=>oh,DBCASSANDRACONSISTENCYLEVELVALUES_SERIAL:()=>uh,DBCASSANDRACONSISTENCYLEVELVALUES_THREE:()=>ch,DBCASSANDRACONSISTENCYLEVELVALUES_TWO:()=>ah,DBSYSTEMVALUES_ADABAS:()=>Mf,DBSYSTEMVALUES_CACHE:()=>Nf,DBSYSTEMVALUES_CASSANDRA:()=>Yf,DBSYSTEMVALUES_CLOUDSCAPE:()=>Af,DBSYSTEMVALUES_COCKROACHDB:()=>th,DBSYSTEMVALUES_COLDFUSION:()=>Ff,DBSYSTEMVALUES_COSMOSDB:()=>$f,DBSYSTEMVALUES_COUCHBASE:()=>Wf,DBSYSTEMVALUES_COUCHDB:()=>qf,DBSYSTEMVALUES_DB2:()=>Tf,DBSYSTEMVALUES_DERBY:()=>Cf,DBSYSTEMVALUES_DYNAMODB:()=>Xf,DBSYSTEMVALUES_EDB:()=>gf,DBSYSTEMVALUES_ELASTICSEARCH:()=>Jf,DBSYSTEMVALUES_FILEMAKER:()=>Lf,DBSYSTEMVALUES_FIREBIRD:()=>Pf,DBSYSTEMVALUES_FIRSTSQL:()=>Of,DBSYSTEMVALUES_GEODE:()=>Qf,DBSYSTEMVALUES_H2:()=>Hf,DBSYSTEMVALUES_HANADB:()=>hf,DBSYSTEMVALUES_HBASE:()=>kf,DBSYSTEMVALUES_HIVE:()=>lf,DBSYSTEMVALUES_HSQLDB:()=>df,DBSYSTEMVALUES_INFORMIX:()=>If,DBSYSTEMVALUES_INGRES:()=>Rf,DBSYSTEMVALUES_INSTANTDB:()=>xf,DBSYSTEMVALUES_INTERBASE:()=>Df,DBSYSTEMVALUES_MARIADB:()=>Uf,DBSYSTEMVALUES_MAXDB:()=>ff,DBSYSTEMVALUES_MEMCACHED:()=>Zf,DBSYSTEMVALUES_MONGODB:()=>Kf,DBSYSTEMVALUES_MSSQL:()=>_f,DBSYSTEMVALUES_MYSQL:()=>Ef,DBSYSTEMVALUES_NEO4J:()=>zf,DBSYSTEMVALUES_NETEZZA:()=>bf,DBSYSTEMVALUES_ORACLE:()=>uf,DBSYSTEMVALUES_OTHER_SQL:()=>cf,DBSYSTEMVALUES_PERVASIVE:()=>yf,DBSYSTEMVALUES_POINTBASE:()=>Vf,DBSYSTEMVALUES_POSTGRESQL:()=>Sf,DBSYSTEMVALUES_PROGRESS:()=>mf,DBSYSTEMVALUES_REDIS:()=>jf,DBSYSTEMVALUES_REDSHIFT:()=>pf,DBSYSTEMVALUES_SQLITE:()=>vf,DBSYSTEMVALUES_SYBASE:()=>Bf,DBSYSTEMVALUES_TERADATA:()=>wf,DBSYSTEMVALUES_VERTICA:()=>Gf,DB_SYSTEM_NAME_VALUE_MARIADB:()=>eM,DB_SYSTEM_NAME_VALUE_MICROSOFT_SQL_SERVER:()=>rM,DB_SYSTEM_NAME_VALUE_MYSQL:()=>nM,DB_SYSTEM_NAME_VALUE_POSTGRESQL:()=>oM,DOTNET_GC_HEAP_GENERATION_VALUE_GEN0:()=>iM,DOTNET_GC_HEAP_GENERATION_VALUE_GEN1:()=>aM,DOTNET_GC_HEAP_GENERATION_VALUE_GEN2:()=>cM,DOTNET_GC_HEAP_GENERATION_VALUE_LOH:()=>_M,DOTNET_GC_HEAP_GENERATION_VALUE_POH:()=>EM,DbCassandraConsistencyLevelValues:()=>Sh,DbSystemValues:()=>eh,ERROR_TYPE_VALUE_OTHER:()=>TM,EVENT_EXCEPTION:()=>wC,FAASDOCUMENTOPERATIONVALUES_DELETE:()=>Oh,FAASDOCUMENTOPERATIONVALUES_EDIT:()=>Rh,FAASDOCUMENTOPERATIONVALUES_INSERT:()=>hh,FAASINVOKEDPROVIDERVALUES_ALIBABA_CLOUD:()=>Nh,FAASINVOKEDPROVIDERVALUES_AWS:()=>Mh,FAASINVOKEDPROVIDERVALUES_AZURE:()=>Ph,FAASINVOKEDPROVIDERVALUES_GCP:()=>Ch,FAASTRIGGERVALUES_DATASOURCE:()=>ph,FAASTRIGGERVALUES_HTTP:()=>lh,FAASTRIGGERVALUES_OTHER:()=>mh,FAASTRIGGERVALUES_PUBSUB:()=>Ah,FAASTRIGGERVALUES_TIMER:()=>dh,FaasDocumentOperationValues:()=>gh,FaasInvokedProviderValues:()=>Lh,FaasTriggerValues:()=>fh,HOSTARCHVALUES_AMD64:()=>Kg,HOSTARCHVALUES_ARM32:()=>jg,HOSTARCHVALUES_ARM64:()=>Wg,HOSTARCHVALUES_IA64:()=>qg,HOSTARCHVALUES_PPC32:()=>$g,HOSTARCHVALUES_PPC64:()=>Xg,HOSTARCHVALUES_X86:()=>zg,HTTPFLAVORVALUES_HTTP_1_0:()=>uR,HTTPFLAVORVALUES_HTTP_1_1:()=>TR,HTTPFLAVORVALUES_HTTP_2_0:()=>SR,HTTPFLAVORVALUES_QUIC:()=>lR,HTTPFLAVORVALUES_SPDY:()=>pR,HTTP_REQUEST_METHOD_VALUE_CONNECT:()=>dM,HTTP_REQUEST_METHOD_VALUE_DELETE:()=>mM,HTTP_REQUEST_METHOD_VALUE_GET:()=>fM,HTTP_REQUEST_METHOD_VALUE_HEAD:()=>hM,HTTP_REQUEST_METHOD_VALUE_OPTIONS:()=>RM,HTTP_REQUEST_METHOD_VALUE_OTHER:()=>AM,HTTP_REQUEST_METHOD_VALUE_PATCH:()=>OM,HTTP_REQUEST_METHOD_VALUE_POST:()=>gM,HTTP_REQUEST_METHOD_VALUE_PUT:()=>NM,HTTP_REQUEST_METHOD_VALUE_TRACE:()=>MM,HostArchValues:()=>Qg,HttpFlavorValues:()=>AR,JVM_MEMORY_TYPE_VALUE_HEAP:()=>VM,JVM_MEMORY_TYPE_VALUE_NON_HEAP:()=>vM,JVM_THREAD_STATE_VALUE_BLOCKED:()=>GM,JVM_THREAD_STATE_VALUE_NEW:()=>HM,JVM_THREAD_STATE_VALUE_RUNNABLE:()=>FM,JVM_THREAD_STATE_VALUE_TERMINATED:()=>YM,JVM_THREAD_STATE_VALUE_TIMED_WAITING:()=>kM,JVM_THREAD_STATE_VALUE_WAITING:()=>KM,MESSAGETYPEVALUES_RECEIVED:()=>YR,MESSAGETYPEVALUES_SENT:()=>FR,MESSAGINGDESTINATIONKINDVALUES_QUEUE:()=>dR,MESSAGINGDESTINATIONKINDVALUES_TOPIC:()=>mR,MESSAGINGOPERATIONVALUES_PROCESS:()=>RR,MESSAGINGOPERATIONVALUES_RECEIVE:()=>hR,METRIC_ASPNETCORE_DIAGNOSTICS_EXCEPTIONS:()=>FP,METRIC_ASPNETCORE_RATE_LIMITING_ACTIVE_REQUEST_LEASES:()=>YP,METRIC_ASPNETCORE_RATE_LIMITING_QUEUED_REQUESTS:()=>kP,METRIC_ASPNETCORE_RATE_LIMITING_REQUESTS:()=>WP,METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_LEASE_DURATION:()=>jP,METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_TIME_IN_QUEUE:()=>KP,METRIC_ASPNETCORE_ROUTING_MATCH_ATTEMPTS:()=>qP,METRIC_DB_CLIENT_OPERATION_DURATION:()=>$P,METRIC_DOTNET_ASSEMBLY_COUNT:()=>XP,METRIC_DOTNET_EXCEPTIONS:()=>zP,METRIC_DOTNET_GC_COLLECTIONS:()=>QP,METRIC_DOTNET_GC_HEAP_TOTAL_ALLOCATED:()=>JP,METRIC_DOTNET_GC_LAST_COLLECTION_HEAP_FRAGMENTATION_SIZE:()=>ZP,METRIC_DOTNET_GC_LAST_COLLECTION_HEAP_SIZE:()=>tC,METRIC_DOTNET_GC_LAST_COLLECTION_MEMORY_COMMITTED_SIZE:()=>eC,METRIC_DOTNET_GC_PAUSE_TIME:()=>rC,METRIC_DOTNET_JIT_COMPILATION_TIME:()=>nC,METRIC_DOTNET_JIT_COMPILED_IL_SIZE:()=>oC,METRIC_DOTNET_JIT_COMPILED_METHODS:()=>sC,METRIC_DOTNET_MONITOR_LOCK_CONTENTIONS:()=>iC,METRIC_DOTNET_PROCESS_CPU_COUNT:()=>aC,METRIC_DOTNET_PROCESS_CPU_TIME:()=>cC,METRIC_DOTNET_PROCESS_MEMORY_WORKING_SET:()=>_C,METRIC_DOTNET_THREAD_POOL_QUEUE_LENGTH:()=>EC,METRIC_DOTNET_THREAD_POOL_THREAD_COUNT:()=>uC,METRIC_DOTNET_THREAD_POOL_WORK_ITEM_COUNT:()=>TC,METRIC_DOTNET_TIMER_COUNT:()=>SC,METRIC_HTTP_CLIENT_REQUEST_DURATION:()=>pC,METRIC_HTTP_SERVER_REQUEST_DURATION:()=>lC,METRIC_JVM_CLASS_COUNT:()=>AC,METRIC_JVM_CLASS_LOADED:()=>dC,METRIC_JVM_CLASS_UNLOADED:()=>mC,METRIC_JVM_CPU_COUNT:()=>fC,METRIC_JVM_CPU_RECENT_UTILIZATION:()=>hC,METRIC_JVM_CPU_TIME:()=>RC,METRIC_JVM_GC_DURATION:()=>OC,METRIC_JVM_MEMORY_COMMITTED:()=>gC,METRIC_JVM_MEMORY_LIMIT:()=>NC,METRIC_JVM_MEMORY_USED:()=>MC,METRIC_JVM_MEMORY_USED_AFTER_LAST_GC:()=>PC,METRIC_JVM_THREAD_COUNT:()=>CC,METRIC_KESTREL_ACTIVE_CONNECTIONS:()=>LC,METRIC_KESTREL_ACTIVE_TLS_HANDSHAKES:()=>IC,METRIC_KESTREL_CONNECTION_DURATION:()=>xC,METRIC_KESTREL_QUEUED_CONNECTIONS:()=>DC,METRIC_KESTREL_QUEUED_REQUESTS:()=>UC,METRIC_KESTREL_REJECTED_CONNECTIONS:()=>bC,METRIC_KESTREL_TLS_HANDSHAKE_DURATION:()=>yC,METRIC_KESTREL_UPGRADED_CONNECTIONS:()=>VC,METRIC_SIGNALR_SERVER_ACTIVE_CONNECTIONS:()=>vC,METRIC_SIGNALR_SERVER_CONNECTION_DURATION:()=>BC,MessageTypeValues:()=>kR,MessagingDestinationKindValues:()=>fR,MessagingOperationValues:()=>OR,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA:()=>Wh,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA2000_1XRTT:()=>Xh,NETHOSTCONNECTIONSUBTYPEVALUES_EDGE:()=>Kh,NETHOSTCONNECTIONSUBTYPEVALUES_EHRPD:()=>rR,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_0:()=>qh,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_A:()=>$h,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_B:()=>tR,NETHOSTCONNECTIONSUBTYPEVALUES_GPRS:()=>kh,NETHOSTCONNECTIONSUBTYPEVALUES_GSM:()=>oR,NETHOSTCONNECTIONSUBTYPEVALUES_HSDPA:()=>zh,NETHOSTCONNECTIONSUBTYPEVALUES_HSPA:()=>Jh,NETHOSTCONNECTIONSUBTYPEVALUES_HSPAP:()=>nR,NETHOSTCONNECTIONSUBTYPEVALUES_HSUPA:()=>Qh,NETHOSTCONNECTIONSUBTYPEVALUES_IDEN:()=>Zh,NETHOSTCONNECTIONSUBTYPEVALUES_IWLAN:()=>iR,NETHOSTCONNECTIONSUBTYPEVALUES_LTE:()=>eR,NETHOSTCONNECTIONSUBTYPEVALUES_LTE_CA:()=>_R,NETHOSTCONNECTIONSUBTYPEVALUES_NR:()=>aR,NETHOSTCONNECTIONSUBTYPEVALUES_NRNSA:()=>cR,NETHOSTCONNECTIONSUBTYPEVALUES_TD_SCDMA:()=>sR,NETHOSTCONNECTIONSUBTYPEVALUES_UMTS:()=>jh,NETHOSTCONNECTIONTYPEVALUES_CELL:()=>Gh,NETHOSTCONNECTIONTYPEVALUES_UNAVAILABLE:()=>Hh,NETHOSTCONNECTIONTYPEVALUES_UNKNOWN:()=>Fh,NETHOSTCONNECTIONTYPEVALUES_WIFI:()=>Bh,NETHOSTCONNECTIONTYPEVALUES_WIRED:()=>wh,NETTRANSPORTVALUES_INPROC:()=>yh,NETTRANSPORTVALUES_IP:()=>Dh,NETTRANSPORTVALUES_IP_TCP:()=>Ih,NETTRANSPORTVALUES_IP_UDP:()=>xh,NETTRANSPORTVALUES_OTHER:()=>Vh,NETTRANSPORTVALUES_PIPE:()=>bh,NETTRANSPORTVALUES_UNIX:()=>Uh,NETWORK_TRANSPORT_VALUE_PIPE:()=>JM,NETWORK_TRANSPORT_VALUE_QUIC:()=>ZM,NETWORK_TRANSPORT_VALUE_TCP:()=>tP,NETWORK_TRANSPORT_VALUE_UDP:()=>eP,NETWORK_TRANSPORT_VALUE_UNIX:()=>rP,NETWORK_TYPE_VALUE_IPV4:()=>oP,NETWORK_TYPE_VALUE_IPV6:()=>sP,NetHostConnectionSubtypeValues:()=>ER,NetHostConnectionTypeValues:()=>Yh,NetTransportValues:()=>vh,OSTYPEVALUES_AIX:()=>iN,OSTYPEVALUES_DARWIN:()=>tN,OSTYPEVALUES_DRAGONFLYBSD:()=>oN,OSTYPEVALUES_FREEBSD:()=>eN,OSTYPEVALUES_HPUX:()=>sN,OSTYPEVALUES_LINUX:()=>Zg,OSTYPEVALUES_NETBSD:()=>rN,OSTYPEVALUES_OPENBSD:()=>nN,OSTYPEVALUES_SOLARIS:()=>aN,OSTYPEVALUES_WINDOWS:()=>Jg,OSTYPEVALUES_Z_OS:()=>cN,OTEL_STATUS_CODE_VALUE_ERROR:()=>_P,OTEL_STATUS_CODE_VALUE_OK:()=>EP,OsTypeValues:()=>_N,RPCGRPCSTATUSCODEVALUES_ABORTED:()=>bR,RPCGRPCSTATUSCODEVALUES_ALREADY_EXISTS:()=>IR,RPCGRPCSTATUSCODEVALUES_CANCELLED:()=>NR,RPCGRPCSTATUSCODEVALUES_DATA_LOSS:()=>wR,RPCGRPCSTATUSCODEVALUES_DEADLINE_EXCEEDED:()=>CR,RPCGRPCSTATUSCODEVALUES_FAILED_PRECONDITION:()=>UR,RPCGRPCSTATUSCODEVALUES_INTERNAL:()=>vR,RPCGRPCSTATUSCODEVALUES_INVALID_ARGUMENT:()=>PR,RPCGRPCSTATUSCODEVALUES_NOT_FOUND:()=>LR,RPCGRPCSTATUSCODEVALUES_OK:()=>gR,RPCGRPCSTATUSCODEVALUES_OUT_OF_RANGE:()=>yR,RPCGRPCSTATUSCODEVALUES_PERMISSION_DENIED:()=>xR,RPCGRPCSTATUSCODEVALUES_RESOURCE_EXHAUSTED:()=>DR,RPCGRPCSTATUSCODEVALUES_UNAUTHENTICATED:()=>GR,RPCGRPCSTATUSCODEVALUES_UNAVAILABLE:()=>BR,RPCGRPCSTATUSCODEVALUES_UNIMPLEMENTED:()=>VR,RPCGRPCSTATUSCODEVALUES_UNKNOWN:()=>MR,RpcGrpcStatusCodeValues:()=>HR,SEMATTRS_AWS_DYNAMODB_ATTRIBUTES_TO_GET:()=>lm,SEMATTRS_AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS:()=>Cm,SEMATTRS_AWS_DYNAMODB_CONSISTENT_READ:()=>Tm,SEMATTRS_AWS_DYNAMODB_CONSUMED_CAPACITY:()=>cm,SEMATTRS_AWS_DYNAMODB_COUNT:()=>Mm,SEMATTRS_AWS_DYNAMODB_EXCLUSIVE_START_TABLE:()=>hm,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES:()=>mm,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES:()=>Lm,SEMATTRS_AWS_DYNAMODB_INDEX_NAME:()=>Am,SEMATTRS_AWS_DYNAMODB_ITEM_COLLECTION_METRICS:()=>_m,SEMATTRS_AWS_DYNAMODB_LIMIT:()=>pm,SEMATTRS_AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES:()=>fm,SEMATTRS_AWS_DYNAMODB_PROJECTION:()=>Sm,SEMATTRS_AWS_DYNAMODB_PROVISIONED_READ_CAPACITY:()=>Em,SEMATTRS_AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY:()=>um,SEMATTRS_AWS_DYNAMODB_SCANNED_COUNT:()=>Pm,SEMATTRS_AWS_DYNAMODB_SCAN_FORWARD:()=>Om,SEMATTRS_AWS_DYNAMODB_SEGMENT:()=>gm,SEMATTRS_AWS_DYNAMODB_SELECT:()=>dm,SEMATTRS_AWS_DYNAMODB_TABLE_COUNT:()=>Rm,SEMATTRS_AWS_DYNAMODB_TABLE_NAMES:()=>am,SEMATTRS_AWS_DYNAMODB_TOTAL_SEGMENTS:()=>Nm,SEMATTRS_AWS_LAMBDA_INVOKED_ARN:()=>HA,SEMATTRS_CODE_FILEPATH:()=>Kd,SEMATTRS_CODE_FUNCTION:()=>Yd,SEMATTRS_CODE_LINENO:()=>jd,SEMATTRS_CODE_NAMESPACE:()=>kd,SEMATTRS_DB_CASSANDRA_CONSISTENCY_LEVEL:()=>QA,SEMATTRS_DB_CASSANDRA_COORDINATOR_DC:()=>rd,SEMATTRS_DB_CASSANDRA_COORDINATOR_ID:()=>ed,SEMATTRS_DB_CASSANDRA_IDEMPOTENCE:()=>ZA,SEMATTRS_DB_CASSANDRA_KEYSPACE:()=>XA,SEMATTRS_DB_CASSANDRA_PAGE_SIZE:()=>zA,SEMATTRS_DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT:()=>td,SEMATTRS_DB_CASSANDRA_TABLE:()=>JA,SEMATTRS_DB_CONNECTION_STRING:()=>YA,SEMATTRS_DB_HBASE_NAMESPACE:()=>nd,SEMATTRS_DB_JDBC_DRIVER_CLASSNAME:()=>KA,SEMATTRS_DB_MONGODB_COLLECTION:()=>sd,SEMATTRS_DB_MSSQL_INSTANCE_NAME:()=>$A,SEMATTRS_DB_NAME:()=>jA,SEMATTRS_DB_OPERATION:()=>qA,SEMATTRS_DB_REDIS_DATABASE_INDEX:()=>od,SEMATTRS_DB_SQL_TABLE:()=>id,SEMATTRS_DB_STATEMENT:()=>WA,SEMATTRS_DB_SYSTEM:()=>FA,SEMATTRS_DB_USER:()=>kA,SEMATTRS_ENDUSER_ID:()=>Bd,SEMATTRS_ENDUSER_ROLE:()=>wd,SEMATTRS_ENDUSER_SCOPE:()=>Gd,SEMATTRS_EXCEPTION_ESCAPED:()=>Ed,SEMATTRS_EXCEPTION_MESSAGE:()=>cd,SEMATTRS_EXCEPTION_STACKTRACE:()=>_d,SEMATTRS_EXCEPTION_TYPE:()=>ad,SEMATTRS_FAAS_COLDSTART:()=>fd,SEMATTRS_FAAS_CRON:()=>md,SEMATTRS_FAAS_DOCUMENT_COLLECTION:()=>Sd,SEMATTRS_FAAS_DOCUMENT_NAME:()=>Ad,SEMATTRS_FAAS_DOCUMENT_OPERATION:()=>pd,SEMATTRS_FAAS_DOCUMENT_TIME:()=>ld,SEMATTRS_FAAS_EXECUTION:()=>Td,SEMATTRS_FAAS_INVOKED_NAME:()=>hd,SEMATTRS_FAAS_INVOKED_PROVIDER:()=>Rd,SEMATTRS_FAAS_INVOKED_REGION:()=>Od,SEMATTRS_FAAS_TIME:()=>dd,SEMATTRS_FAAS_TRIGGER:()=>ud,SEMATTRS_HTTP_CLIENT_IP:()=>im,SEMATTRS_HTTP_FLAVOR:()=>Jd,SEMATTRS_HTTP_HOST:()=>Xd,SEMATTRS_HTTP_METHOD:()=>Wd,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH:()=>tm,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED:()=>em,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH:()=>rm,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED:()=>nm,SEMATTRS_HTTP_ROUTE:()=>sm,SEMATTRS_HTTP_SCHEME:()=>zd,SEMATTRS_HTTP_SERVER_NAME:()=>om,SEMATTRS_HTTP_STATUS_CODE:()=>Qd,SEMATTRS_HTTP_TARGET:()=>$d,SEMATTRS_HTTP_URL:()=>qd,SEMATTRS_HTTP_USER_AGENT:()=>Zd,SEMATTRS_MESSAGE_COMPRESSED_SIZE:()=>of,SEMATTRS_MESSAGE_ID:()=>nf,SEMATTRS_MESSAGE_TYPE:()=>rf,SEMATTRS_MESSAGE_UNCOMPRESSED_SIZE:()=>sf,SEMATTRS_MESSAGING_CONSUMER_ID:()=>Fm,SEMATTRS_MESSAGING_CONVERSATION_ID:()=>Bm,SEMATTRS_MESSAGING_DESTINATION:()=>xm,SEMATTRS_MESSAGING_DESTINATION_KIND:()=>Dm,SEMATTRS_MESSAGING_KAFKA_CLIENT_ID:()=>jm,SEMATTRS_MESSAGING_KAFKA_CONSUMER_GROUP:()=>Km,SEMATTRS_MESSAGING_KAFKA_MESSAGE_KEY:()=>km,SEMATTRS_MESSAGING_KAFKA_PARTITION:()=>Wm,SEMATTRS_MESSAGING_KAFKA_TOMBSTONE:()=>qm,SEMATTRS_MESSAGING_MESSAGE_ID:()=>vm,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES:()=>Gm,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES:()=>wm,SEMATTRS_MESSAGING_OPERATION:()=>Hm,SEMATTRS_MESSAGING_PROTOCOL:()=>bm,SEMATTRS_MESSAGING_PROTOCOL_VERSION:()=>ym,SEMATTRS_MESSAGING_RABBITMQ_ROUTING_KEY:()=>Ym,SEMATTRS_MESSAGING_SYSTEM:()=>Im,SEMATTRS_MESSAGING_TEMP_DESTINATION:()=>Um,SEMATTRS_MESSAGING_URL:()=>Vm,SEMATTRS_NET_HOST_CARRIER_ICC:()=>Vd,SEMATTRS_NET_HOST_CARRIER_MCC:()=>bd,SEMATTRS_NET_HOST_CARRIER_MNC:()=>yd,SEMATTRS_NET_HOST_CARRIER_NAME:()=>Ud,SEMATTRS_NET_HOST_CONNECTION_SUBTYPE:()=>Dd,SEMATTRS_NET_HOST_CONNECTION_TYPE:()=>xd,SEMATTRS_NET_HOST_IP:()=>Cd,SEMATTRS_NET_HOST_NAME:()=>Id,SEMATTRS_NET_HOST_PORT:()=>Ld,SEMATTRS_NET_PEER_IP:()=>Nd,SEMATTRS_NET_PEER_NAME:()=>Pd,SEMATTRS_NET_PEER_PORT:()=>Md,SEMATTRS_NET_TRANSPORT:()=>gd,SEMATTRS_PEER_SERVICE:()=>vd,SEMATTRS_RPC_GRPC_STATUS_CODE:()=>Qm,SEMATTRS_RPC_JSONRPC_ERROR_CODE:()=>tf,SEMATTRS_RPC_JSONRPC_ERROR_MESSAGE:()=>ef,SEMATTRS_RPC_JSONRPC_REQUEST_ID:()=>Zm,SEMATTRS_RPC_JSONRPC_VERSION:()=>Jm,SEMATTRS_RPC_METHOD:()=>zm,SEMATTRS_RPC_SERVICE:()=>Xm,SEMATTRS_RPC_SYSTEM:()=>$m,SEMATTRS_THREAD_ID:()=>Hd,SEMATTRS_THREAD_NAME:()=>Fd,SEMRESATTRS_AWS_ECS_CLUSTER_ARN:()=>zR,SEMRESATTRS_AWS_ECS_CONTAINER_ARN:()=>XR,SEMRESATTRS_AWS_ECS_LAUNCHTYPE:()=>QR,SEMRESATTRS_AWS_ECS_TASK_ARN:()=>JR,SEMRESATTRS_AWS_ECS_TASK_FAMILY:()=>ZR,SEMRESATTRS_AWS_ECS_TASK_REVISION:()=>tO,SEMRESATTRS_AWS_EKS_CLUSTER_ARN:()=>eO,SEMRESATTRS_AWS_LOG_GROUP_ARNS:()=>nO,SEMRESATTRS_AWS_LOG_GROUP_NAMES:()=>rO,SEMRESATTRS_AWS_LOG_STREAM_ARNS:()=>sO,SEMRESATTRS_AWS_LOG_STREAM_NAMES:()=>oO,SEMRESATTRS_CLOUD_ACCOUNT_ID:()=>jR,SEMRESATTRS_CLOUD_AVAILABILITY_ZONE:()=>qR,SEMRESATTRS_CLOUD_PLATFORM:()=>$R,SEMRESATTRS_CLOUD_PROVIDER:()=>KR,SEMRESATTRS_CLOUD_REGION:()=>WR,SEMRESATTRS_CONTAINER_ID:()=>aO,SEMRESATTRS_CONTAINER_IMAGE_NAME:()=>_O,SEMRESATTRS_CONTAINER_IMAGE_TAG:()=>EO,SEMRESATTRS_CONTAINER_NAME:()=>iO,SEMRESATTRS_CONTAINER_RUNTIME:()=>cO,SEMRESATTRS_DEPLOYMENT_ENVIRONMENT:()=>uO,SEMRESATTRS_DEVICE_ID:()=>TO,SEMRESATTRS_DEVICE_MODEL_IDENTIFIER:()=>SO,SEMRESATTRS_DEVICE_MODEL_NAME:()=>pO,SEMRESATTRS_FAAS_ID:()=>AO,SEMRESATTRS_FAAS_INSTANCE:()=>mO,SEMRESATTRS_FAAS_MAX_MEMORY:()=>fO,SEMRESATTRS_FAAS_NAME:()=>lO,SEMRESATTRS_FAAS_VERSION:()=>dO,SEMRESATTRS_HOST_ARCH:()=>gO,SEMRESATTRS_HOST_ID:()=>hO,SEMRESATTRS_HOST_IMAGE_ID:()=>MO,SEMRESATTRS_HOST_IMAGE_NAME:()=>NO,SEMRESATTRS_HOST_IMAGE_VERSION:()=>PO,SEMRESATTRS_HOST_NAME:()=>RO,SEMRESATTRS_HOST_TYPE:()=>OO,SEMRESATTRS_K8S_CLUSTER_NAME:()=>CO,SEMRESATTRS_K8S_CONTAINER_NAME:()=>bO,SEMRESATTRS_K8S_CRONJOB_NAME:()=>jO,SEMRESATTRS_K8S_CRONJOB_UID:()=>KO,SEMRESATTRS_K8S_DAEMONSET_NAME:()=>FO,SEMRESATTRS_K8S_DAEMONSET_UID:()=>HO,SEMRESATTRS_K8S_DEPLOYMENT_NAME:()=>BO,SEMRESATTRS_K8S_DEPLOYMENT_UID:()=>vO,SEMRESATTRS_K8S_JOB_NAME:()=>kO,SEMRESATTRS_K8S_JOB_UID:()=>YO,SEMRESATTRS_K8S_NAMESPACE_NAME:()=>xO,SEMRESATTRS_K8S_NODE_NAME:()=>LO,SEMRESATTRS_K8S_NODE_UID:()=>IO,SEMRESATTRS_K8S_POD_NAME:()=>UO,SEMRESATTRS_K8S_POD_UID:()=>DO,SEMRESATTRS_K8S_REPLICASET_NAME:()=>VO,SEMRESATTRS_K8S_REPLICASET_UID:()=>yO,SEMRESATTRS_K8S_STATEFULSET_NAME:()=>GO,SEMRESATTRS_K8S_STATEFULSET_UID:()=>wO,SEMRESATTRS_OS_DESCRIPTION:()=>qO,SEMRESATTRS_OS_NAME:()=>$O,SEMRESATTRS_OS_TYPE:()=>WO,SEMRESATTRS_OS_VERSION:()=>XO,SEMRESATTRS_PROCESS_COMMAND:()=>ZO,SEMRESATTRS_PROCESS_COMMAND_ARGS:()=>eg,SEMRESATTRS_PROCESS_COMMAND_LINE:()=>tg,SEMRESATTRS_PROCESS_EXECUTABLE_NAME:()=>QO,SEMRESATTRS_PROCESS_EXECUTABLE_PATH:()=>JO,SEMRESATTRS_PROCESS_OWNER:()=>rg,SEMRESATTRS_PROCESS_PID:()=>zO,SEMRESATTRS_PROCESS_RUNTIME_DESCRIPTION:()=>sg,SEMRESATTRS_PROCESS_RUNTIME_NAME:()=>ng,SEMRESATTRS_PROCESS_RUNTIME_VERSION:()=>og,SEMRESATTRS_SERVICE_INSTANCE_ID:()=>cg,SEMRESATTRS_SERVICE_NAME:()=>ig,SEMRESATTRS_SERVICE_NAMESPACE:()=>ag,SEMRESATTRS_SERVICE_VERSION:()=>_g,SEMRESATTRS_TELEMETRY_AUTO_VERSION:()=>Sg,SEMRESATTRS_TELEMETRY_SDK_LANGUAGE:()=>ug,SEMRESATTRS_TELEMETRY_SDK_NAME:()=>Eg,SEMRESATTRS_TELEMETRY_SDK_VERSION:()=>Tg,SEMRESATTRS_WEBENGINE_DESCRIPTION:()=>Ag,SEMRESATTRS_WEBENGINE_NAME:()=>pg,SEMRESATTRS_WEBENGINE_VERSION:()=>lg,SIGNALR_CONNECTION_STATUS_VALUE_APP_SHUTDOWN:()=>AP,SIGNALR_CONNECTION_STATUS_VALUE_NORMAL_CLOSURE:()=>dP,SIGNALR_CONNECTION_STATUS_VALUE_TIMEOUT:()=>mP,SIGNALR_TRANSPORT_VALUE_LONG_POLLING:()=>hP,SIGNALR_TRANSPORT_VALUE_SERVER_SENT_EVENTS:()=>RP,SIGNALR_TRANSPORT_VALUE_WEB_SOCKETS:()=>OP,SemanticAttributes:()=>af,SemanticResourceAttributes:()=>dg,TELEMETRYSDKLANGUAGEVALUES_CPP:()=>EN,TELEMETRYSDKLANGUAGEVALUES_DOTNET:()=>uN,TELEMETRYSDKLANGUAGEVALUES_ERLANG:()=>TN,TELEMETRYSDKLANGUAGEVALUES_GO:()=>SN,TELEMETRYSDKLANGUAGEVALUES_JAVA:()=>pN,TELEMETRYSDKLANGUAGEVALUES_NODEJS:()=>lN,TELEMETRYSDKLANGUAGEVALUES_PHP:()=>AN,TELEMETRYSDKLANGUAGEVALUES_PYTHON:()=>dN,TELEMETRYSDKLANGUAGEVALUES_RUBY:()=>mN,TELEMETRYSDKLANGUAGEVALUES_WEBJS:()=>fN,TELEMETRY_SDK_LANGUAGE_VALUE_CPP:()=>gP,TELEMETRY_SDK_LANGUAGE_VALUE_DOTNET:()=>NP,TELEMETRY_SDK_LANGUAGE_VALUE_ERLANG:()=>MP,TELEMETRY_SDK_LANGUAGE_VALUE_GO:()=>PP,TELEMETRY_SDK_LANGUAGE_VALUE_JAVA:()=>CP,TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS:()=>LP,TELEMETRY_SDK_LANGUAGE_VALUE_PHP:()=>IP,TELEMETRY_SDK_LANGUAGE_VALUE_PYTHON:()=>xP,TELEMETRY_SDK_LANGUAGE_VALUE_RUBY:()=>DP,TELEMETRY_SDK_LANGUAGE_VALUE_RUST:()=>UP,TELEMETRY_SDK_LANGUAGE_VALUE_SWIFT:()=>bP,TELEMETRY_SDK_LANGUAGE_VALUE_WEBJS:()=>yP,TelemetrySdkLanguageValues:()=>hN});var de=F(()=>{AE();YT();kT();KT();jT()});var qT=S(tr=>{"use strict";Object.defineProperty(tr,"__esModule",{value:!0});tr.ATTR_PROCESS_RUNTIME_NAME=void 0;tr.ATTR_PROCESS_RUNTIME_NAME="process.runtime.name"});var $T=S(rr=>{"use strict";Object.defineProperty(rr,"__esModule",{value:!0});rr.SDK_INFO=void 0;var GC=Ms(),er=(de(),b(WT)),HC=qT();rr.SDK_INFO={[er.ATTR_TELEMETRY_SDK_NAME]:"opentelemetry",[HC.ATTR_PROCESS_RUNTIME_NAME]:"browser",[er.ATTR_TELEMETRY_SDK_LANGUAGE]:er.TELEMETRY_SDK_LANGUAGE_VALUE_WEBJS,[er.ATTR_TELEMETRY_SDK_VERSION]:GC.VERSION}});var XT=S(nr=>{"use strict";Object.defineProperty(nr,"__esModule",{value:!0});nr.unrefTimer=void 0;function FC(r){}nr.unrefTimer=FC});var kn=S(D=>{"use strict";Object.defineProperty(D,"__esModule",{value:!0});D.unrefTimer=D.SDK_INFO=D.otperformance=D._globalThis=D.getStringListFromEnv=D.getNumberFromEnv=D.getBooleanFromEnv=D.getStringFromEnv=void 0;var or=Os();Object.defineProperty(D,"getStringFromEnv",{enumerable:!0,get:function(){return or.getStringFromEnv}});Object.defineProperty(D,"getBooleanFromEnv",{enumerable:!0,get:function(){return or.getBooleanFromEnv}});Object.defineProperty(D,"getNumberFromEnv",{enumerable:!0,get:function(){return or.getNumberFromEnv}});Object.defineProperty(D,"getStringListFromEnv",{enumerable:!0,get:function(){return or.getStringListFromEnv}});var YC=gs();Object.defineProperty(D,"_globalThis",{enumerable:!0,get:function(){return YC._globalThis}});var kC=Ns();Object.defineProperty(D,"otperformance",{enumerable:!0,get:function(){return kC.otperformance}});var KC=$T();Object.defineProperty(D,"SDK_INFO",{enumerable:!0,get:function(){return KC.SDK_INFO}});var jC=XT();Object.defineProperty(D,"unrefTimer",{enumerable:!0,get:function(){return jC.unrefTimer}})});var ZT=S(g=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0});g.addHrTimes=g.isTimeInput=g.isTimeInputHrTime=g.hrTimeToMicroseconds=g.hrTimeToMilliseconds=g.hrTimeToNanoseconds=g.hrTimeToTimeStamp=g.hrTimeDuration=g.timeInputToHrTime=g.hrTime=g.getTimeOrigin=g.millisToHrTime=void 0;var Kn=kn(),zT=9,WC=6,qC=Math.pow(10,WC),sr=Math.pow(10,zT);function me(r){let t=r/1e3,e=Math.trunc(t),n=Math.round(r%1e3*qC);return[e,n]}g.millisToHrTime=me;function jn(){let r=Kn.otperformance.timeOrigin;if(typeof r!="number"){let t=Kn.otperformance;r=t.timing&&t.timing.fetchStart}return r}g.getTimeOrigin=jn;function QT(r){let t=me(jn()),e=me(typeof r=="number"?r:Kn.otperformance.now());return JT(t,e)}g.hrTime=QT;function $C(r){if(Wn(r))return r;if(typeof r=="number")return r<jn()?QT(r):me(r);if(r instanceof Date)return me(r.getTime());throw TypeError("Invalid input type")}g.timeInputToHrTime=$C;function XC(r,t){let e=t[0]-r[0],n=t[1]-r[1];return n<0&&(e-=1,n+=sr),[e,n]}g.hrTimeDuration=XC;function zC(r){let t=zT,e=`${"0".repeat(t)}${r[1]}Z`,n=e.substring(e.length-t-1);return new Date(r[0]*1e3).toISOString().replace("000Z",n)}g.hrTimeToTimeStamp=zC;function QC(r){return r[0]*sr+r[1]}g.hrTimeToNanoseconds=QC;function JC(r){return r[0]*1e3+r[1]/1e6}g.hrTimeToMilliseconds=JC;function ZC(r){return r[0]*1e6+r[1]/1e3}g.hrTimeToMicroseconds=ZC;function Wn(r){return Array.isArray(r)&&r.length===2&&typeof r[0]=="number"&&typeof r[1]=="number"}g.isTimeInputHrTime=Wn;function tL(r){return Wn(r)||typeof r=="number"||r instanceof Date}g.isTimeInput=tL;function JT(r,t){let e=[r[0]+t[0],r[1]+t[1]];return e[1]>=sr&&(e[1]-=sr,e[0]+=1),e}g.addHrTimes=JT});var tS=S(fe=>{"use strict";Object.defineProperty(fe,"__esModule",{value:!0});fe.ExportResultCode=void 0;var eL;(function(r){r[r.SUCCESS=0]="SUCCESS",r[r.FAILED=1]="FAILED"})(eL=fe.ExportResultCode||(fe.ExportResultCode={}))});var rS=S(ir=>{"use strict";Object.defineProperty(ir,"__esModule",{value:!0});ir.CompositePropagator=void 0;var eS=(d(),b(c)),qn=class{_propagators;_fields;constructor(t={}){this._propagators=t.propagators??[],this._fields=Array.from(new Set(this._propagators.map(e=>typeof e.fields=="function"?e.fields():[]).reduce((e,n)=>e.concat(n),[])))}inject(t,e,n){for(let o of this._propagators)try{o.inject(t,e,n)}catch(s){eS.diag.warn(`Failed to inject with ${o.constructor.name}. Err: ${s.message}`)}}extract(t,e,n){return this._propagators.reduce((o,s)=>{try{return s.extract(o,e,n)}catch(i){eS.diag.warn(`Failed to extract with ${s.constructor.name}. Err: ${i.message}`)}return o},t)}fields(){return this._fields.slice()}};ir.CompositePropagator=qn});var nS=S(Ft=>{"use strict";Object.defineProperty(Ft,"__esModule",{value:!0});Ft.validateValue=Ft.validateKey=void 0;var $n="[_0-9a-z-*/]",rL=`[a-z]${$n}{0,255}`,nL=`[a-z0-9]${$n}{0,240}@[a-z]${$n}{0,13}`,oL=new RegExp(`^(?:${rL}|${nL})$`),sL=/^[ -~]{0,255}[!-~]$/,iL=/,|=/;function aL(r){return oL.test(r)}Ft.validateKey=aL;function cL(r){return sL.test(r)&&!iL.test(r)}Ft.validateValue=cL});var zn=S(ar=>{"use strict";Object.defineProperty(ar,"__esModule",{value:!0});ar.TraceState=void 0;var oS=nS(),sS=32,_L=512,iS=",",aS="=",Xn=class r{_internalState=new Map;constructor(t){t&&this._parse(t)}set(t,e){let n=this._clone();return n._internalState.has(t)&&n._internalState.delete(t),n._internalState.set(t,e),n}unset(t){let e=this._clone();return e._internalState.delete(t),e}get(t){return this._internalState.get(t)}serialize(){return this._keys().reduce((t,e)=>(t.push(e+aS+this.get(e)),t),[]).join(iS)}_parse(t){t.length>_L||(this._internalState=t.split(iS).reverse().reduce((e,n)=>{let o=n.trim(),s=o.indexOf(aS);if(s!==-1){let i=o.slice(0,s),a=o.slice(s+1,n.length);(0,oS.validateKey)(i)&&(0,oS.validateValue)(a)&&e.set(i,a)}return e},new Map),this._internalState.size>sS&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,sS))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){let t=new r;return t._internalState=new Map(this._internalState),t}};ar.TraceState=Xn});var _S=S(V=>{"use strict";Object.defineProperty(V,"__esModule",{value:!0});V.W3CTraceContextPropagator=V.parseTraceParent=V.TRACE_STATE_HEADER=V.TRACE_PARENT_HEADER=void 0;var cr=(d(),b(c)),EL=Se(),uL=zn();V.TRACE_PARENT_HEADER="traceparent";V.TRACE_STATE_HEADER="tracestate";var TL="00",SL="(?!ff)[\\da-f]{2}",pL="(?![0]{32})[\\da-f]{32}",lL="(?![0]{16})[\\da-f]{16}",AL="[\\da-f]{2}",dL=new RegExp(`^\\s?(${SL})-(${pL})-(${lL})-(${AL})(-.*)?\\s?$`);function cS(r){let t=dL.exec(r);return!t||t[1]==="00"&&t[5]?null:{traceId:t[2],spanId:t[3],traceFlags:parseInt(t[4],16)}}V.parseTraceParent=cS;var Qn=class{inject(t,e,n){let o=cr.trace.getSpanContext(t);if(!o||(0,EL.isTracingSuppressed)(t)||!(0,cr.isSpanContextValid)(o))return;let s=`${TL}-${o.traceId}-${o.spanId}-0${Number(o.traceFlags||cr.TraceFlags.NONE).toString(16)}`;n.set(e,V.TRACE_PARENT_HEADER,s),o.traceState&&n.set(e,V.TRACE_STATE_HEADER,o.traceState.serialize())}extract(t,e,n){let o=n.get(e,V.TRACE_PARENT_HEADER);if(!o)return t;let s=Array.isArray(o)?o[0]:o;if(typeof s!="string")return t;let i=cS(s);if(!i)return t;i.isRemote=!0;let a=n.get(e,V.TRACE_STATE_HEADER);if(a){let _=Array.isArray(a)?a.join(","):a;i.traceState=new uL.TraceState(typeof _=="string"?_:void 0)}return cr.trace.setSpanContext(t,i)}fields(){return[V.TRACE_PARENT_HEADER,V.TRACE_STATE_HEADER]}};V.W3CTraceContextPropagator=Qn});var ES=S(et=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});et.getRPCMetadata=et.deleteRPCMetadata=et.setRPCMetadata=et.RPCType=void 0;var mL=(d(),b(c)),Jn=(0,mL.createContextKey)("OpenTelemetry SDK Context Key RPC_METADATA"),fL;(function(r){r.HTTP="http"})(fL=et.RPCType||(et.RPCType={}));function hL(r,t){return r.setValue(Jn,t)}et.setRPCMetadata=hL;function RL(r){return r.deleteValue(Jn)}et.deleteRPCMetadata=RL;function OL(r){return r.getValue(Jn)}et.getRPCMetadata=OL});var lS=S(_r=>{"use strict";Object.defineProperty(_r,"__esModule",{value:!0});_r.isPlainObject=void 0;var gL="[object Object]",NL="[object Null]",ML="[object Undefined]",PL=Function.prototype,uS=PL.toString,CL=uS.call(Object),LL=Object.getPrototypeOf,TS=Object.prototype,SS=TS.hasOwnProperty,Dt=Symbol?Symbol.toStringTag:void 0,pS=TS.toString;function IL(r){if(!xL(r)||DL(r)!==gL)return!1;let t=LL(r);if(t===null)return!0;let e=SS.call(t,"constructor")&&t.constructor;return typeof e=="function"&&e instanceof e&&uS.call(e)===CL}_r.isPlainObject=IL;function xL(r){return r!=null&&typeof r=="object"}function DL(r){return r==null?r===void 0?ML:NL:Dt&&Dt in Object(r)?UL(r):bL(r)}function UL(r){let t=SS.call(r,Dt),e=r[Dt],n=!1;try{r[Dt]=void 0,n=!0}catch{}let o=pS.call(r);return n&&(t?r[Dt]=e:delete r[Dt]),o}function bL(r){return pS.call(r)}});var hS=S(Tr=>{"use strict";Object.defineProperty(Tr,"__esModule",{value:!0});Tr.merge=void 0;var AS=lS(),yL=20;function VL(...r){let t=r.shift(),e=new WeakMap;for(;r.length>0;)t=mS(t,r.shift(),0,e);return t}Tr.merge=VL;function Zn(r){return ur(r)?r.slice():r}function mS(r,t,e=0,n){let o;if(!(e>yL)){if(e++,Er(r)||Er(t)||fS(t))o=Zn(t);else if(ur(r)){if(o=r.slice(),ur(t))for(let s=0,i=t.length;s<i;s++)o.push(Zn(t[s]));else if(he(t)){let s=Object.keys(t);for(let i=0,a=s.length;i<a;i++){let _=s[i];o[_]=Zn(t[_])}}}else if(he(r))if(he(t)){if(!vL(r,t))return t;o=Object.assign({},r);let s=Object.keys(t);for(let i=0,a=s.length;i<a;i++){let _=s[i],E=t[_];if(Er(E))typeof E>"u"?delete o[_]:o[_]=E;else{let u=o[_],p=E;if(dS(r,_,n)||dS(t,_,n))delete o[_];else{if(he(u)&&he(p)){let A=n.get(u)||[],h=n.get(p)||[];A.push({obj:r,key:_}),h.push({obj:t,key:_}),n.set(u,A),n.set(p,h)}o[_]=mS(o[_],E,e,n)}}}}else o=t;return o}}function dS(r,t,e){let n=e.get(r[t])||[];for(let o=0,s=n.length;o<s;o++){let i=n[o];if(i.key===t&&i.obj===r)return!0}return!1}function ur(r){return Array.isArray(r)}function fS(r){return typeof r=="function"}function he(r){return!Er(r)&&!ur(r)&&!fS(r)&&typeof r=="object"}function Er(r){return typeof r=="string"||typeof r=="number"||typeof r=="boolean"||typeof r>"u"||r instanceof Date||r instanceof RegExp||r===null}function vL(r,t){return!(!(0,AS.isPlainObject)(r)||!(0,AS.isPlainObject)(t))}});var RS=S(Yt=>{"use strict";Object.defineProperty(Yt,"__esModule",{value:!0});Yt.callWithTimeout=Yt.TimeoutError=void 0;var Sr=class r extends Error{constructor(t){super(t),Object.setPrototypeOf(this,r.prototype)}};Yt.TimeoutError=Sr;function BL(r,t){let e,n=new Promise(function(s,i){e=setTimeout(function(){i(new Sr("Operation timed out."))},t)});return Promise.race([r,n]).then(o=>(clearTimeout(e),o),o=>{throw clearTimeout(e),o})}Yt.callWithTimeout=BL});var gS=S(kt=>{"use strict";Object.defineProperty(kt,"__esModule",{value:!0});kt.isUrlIgnored=kt.urlMatches=void 0;function OS(r,t){return typeof t=="string"?r===t:!!r.match(t)}kt.urlMatches=OS;function wL(r,t){if(!t)return!1;for(let e of t)if(OS(r,e))return!0;return!1}kt.isUrlIgnored=wL});var NS=S(pr=>{"use strict";Object.defineProperty(pr,"__esModule",{value:!0});pr.Deferred=void 0;var to=class{_promise;_resolve;_reject;constructor(){this._promise=new Promise((t,e)=>{this._resolve=t,this._reject=e})}get promise(){return this._promise}resolve(t){this._resolve(t)}reject(t){this._reject(t)}};pr.Deferred=to});var MS=S(lr=>{"use strict";Object.defineProperty(lr,"__esModule",{value:!0});lr.BindOnceFuture=void 0;var GL=NS(),eo=class{_callback;_that;_isCalled=!1;_deferred=new GL.Deferred;constructor(t,e){this._callback=t,this._that=e}get isCalled(){return this._isCalled}get promise(){return this._deferred.promise}call(...t){if(!this._isCalled){this._isCalled=!0;try{Promise.resolve(this._callback.call(this._that,...t)).then(e=>this._deferred.resolve(e),e=>this._deferred.reject(e))}catch(e){this._deferred.reject(e)}}return this._deferred.promise}};lr.BindOnceFuture=eo});var CS=S(Ar=>{"use strict";Object.defineProperty(Ar,"__esModule",{value:!0});Ar.diagLogLevelFromString=void 0;var pt=(d(),b(c)),PS={ALL:pt.DiagLogLevel.ALL,VERBOSE:pt.DiagLogLevel.VERBOSE,DEBUG:pt.DiagLogLevel.DEBUG,INFO:pt.DiagLogLevel.INFO,WARN:pt.DiagLogLevel.WARN,ERROR:pt.DiagLogLevel.ERROR,NONE:pt.DiagLogLevel.NONE};function HL(r){if(r==null)return;let t=PS[r.toUpperCase()];return t??(pt.diag.warn(`Unknown log level "${r}", expected one of ${Object.keys(PS)}, using default`),pt.DiagLogLevel.INFO)}Ar.diagLogLevelFromString=HL});var IS=S(dr=>{"use strict";Object.defineProperty(dr,"__esModule",{value:!0});dr._export=void 0;var LS=(d(),b(c)),FL=Se();function YL(r,t){return new Promise(e=>{LS.context.with((0,FL.suppressTracing)(LS.context.active()),()=>{r.export(t,n=>{e(n)})})})}dr._export=YL});var P=S(T=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0});T.internal=T.diagLogLevelFromString=T.BindOnceFuture=T.urlMatches=T.isUrlIgnored=T.callWithTimeout=T.TimeoutError=T.merge=T.TraceState=T.unsuppressTracing=T.suppressTracing=T.isTracingSuppressed=T.setRPCMetadata=T.getRPCMetadata=T.deleteRPCMetadata=T.RPCType=T.parseTraceParent=T.W3CTraceContextPropagator=T.TRACE_STATE_HEADER=T.TRACE_PARENT_HEADER=T.CompositePropagator=T.unrefTimer=T.otperformance=T.getStringListFromEnv=T.getNumberFromEnv=T.getBooleanFromEnv=T.getStringFromEnv=T._globalThis=T.SDK_INFO=T.parseKeyPairsIntoRecord=T.ExportResultCode=T.timeInputToHrTime=T.millisToHrTime=T.isTimeInputHrTime=T.isTimeInput=T.hrTimeToTimeStamp=T.hrTimeToNanoseconds=T.hrTimeToMilliseconds=T.hrTimeToMicroseconds=T.hrTimeDuration=T.hrTime=T.getTimeOrigin=T.addHrTimes=T.loggingErrorHandler=T.setGlobalErrorHandler=T.globalErrorHandler=T.sanitizeAttributes=T.isAttributeValue=T.AnchoredClock=T.W3CBaggagePropagator=void 0;var kL=Ss();Object.defineProperty(T,"W3CBaggagePropagator",{enumerable:!0,get:function(){return kL.W3CBaggagePropagator}});var KL=ps();Object.defineProperty(T,"AnchoredClock",{enumerable:!0,get:function(){return KL.AnchoredClock}});var xS=fs();Object.defineProperty(T,"isAttributeValue",{enumerable:!0,get:function(){return xS.isAttributeValue}});Object.defineProperty(T,"sanitizeAttributes",{enumerable:!0,get:function(){return xS.sanitizeAttributes}});var DS=Rs();Object.defineProperty(T,"globalErrorHandler",{enumerable:!0,get:function(){return DS.globalErrorHandler}});Object.defineProperty(T,"setGlobalErrorHandler",{enumerable:!0,get:function(){return DS.setGlobalErrorHandler}});var jL=Hn();Object.defineProperty(T,"loggingErrorHandler",{enumerable:!0,get:function(){return jL.loggingErrorHandler}});var Y=ZT();Object.defineProperty(T,"addHrTimes",{enumerable:!0,get:function(){return Y.addHrTimes}});Object.defineProperty(T,"getTimeOrigin",{enumerable:!0,get:function(){return Y.getTimeOrigin}});Object.defineProperty(T,"hrTime",{enumerable:!0,get:function(){return Y.hrTime}});Object.defineProperty(T,"hrTimeDuration",{enumerable:!0,get:function(){return Y.hrTimeDuration}});Object.defineProperty(T,"hrTimeToMicroseconds",{enumerable:!0,get:function(){return Y.hrTimeToMicroseconds}});Object.defineProperty(T,"hrTimeToMilliseconds",{enumerable:!0,get:function(){return Y.hrTimeToMilliseconds}});Object.defineProperty(T,"hrTimeToNanoseconds",{enumerable:!0,get:function(){return Y.hrTimeToNanoseconds}});Object.defineProperty(T,"hrTimeToTimeStamp",{enumerable:!0,get:function(){return Y.hrTimeToTimeStamp}});Object.defineProperty(T,"isTimeInput",{enumerable:!0,get:function(){return Y.isTimeInput}});Object.defineProperty(T,"isTimeInputHrTime",{enumerable:!0,get:function(){return Y.isTimeInputHrTime}});Object.defineProperty(T,"millisToHrTime",{enumerable:!0,get:function(){return Y.millisToHrTime}});Object.defineProperty(T,"timeInputToHrTime",{enumerable:!0,get:function(){return Y.timeInputToHrTime}});var WL=tS();Object.defineProperty(T,"ExportResultCode",{enumerable:!0,get:function(){return WL.ExportResultCode}});var qL=Vn();Object.defineProperty(T,"parseKeyPairsIntoRecord",{enumerable:!0,get:function(){return qL.parseKeyPairsIntoRecord}});var ht=kn();Object.defineProperty(T,"SDK_INFO",{enumerable:!0,get:function(){return ht.SDK_INFO}});Object.defineProperty(T,"_globalThis",{enumerable:!0,get:function(){return ht._globalThis}});Object.defineProperty(T,"getStringFromEnv",{enumerable:!0,get:function(){return ht.getStringFromEnv}});Object.defineProperty(T,"getBooleanFromEnv",{enumerable:!0,get:function(){return ht.getBooleanFromEnv}});Object.defineProperty(T,"getNumberFromEnv",{enumerable:!0,get:function(){return ht.getNumberFromEnv}});Object.defineProperty(T,"getStringListFromEnv",{enumerable:!0,get:function(){return ht.getStringListFromEnv}});Object.defineProperty(T,"otperformance",{enumerable:!0,get:function(){return ht.otperformance}});Object.defineProperty(T,"unrefTimer",{enumerable:!0,get:function(){return ht.unrefTimer}});var $L=rS();Object.defineProperty(T,"CompositePropagator",{enumerable:!0,get:function(){return $L.CompositePropagator}});var mr=_S();Object.defineProperty(T,"TRACE_PARENT_HEADER",{enumerable:!0,get:function(){return mr.TRACE_PARENT_HEADER}});Object.defineProperty(T,"TRACE_STATE_HEADER",{enumerable:!0,get:function(){return mr.TRACE_STATE_HEADER}});Object.defineProperty(T,"W3CTraceContextPropagator",{enumerable:!0,get:function(){return mr.W3CTraceContextPropagator}});Object.defineProperty(T,"parseTraceParent",{enumerable:!0,get:function(){return mr.parseTraceParent}});var fr=ES();Object.defineProperty(T,"RPCType",{enumerable:!0,get:function(){return fr.RPCType}});Object.defineProperty(T,"deleteRPCMetadata",{enumerable:!0,get:function(){return fr.deleteRPCMetadata}});Object.defineProperty(T,"getRPCMetadata",{enumerable:!0,get:function(){return fr.getRPCMetadata}});Object.defineProperty(T,"setRPCMetadata",{enumerable:!0,get:function(){return fr.setRPCMetadata}});var ro=Se();Object.defineProperty(T,"isTracingSuppressed",{enumerable:!0,get:function(){return ro.isTracingSuppressed}});Object.defineProperty(T,"suppressTracing",{enumerable:!0,get:function(){return ro.suppressTracing}});Object.defineProperty(T,"unsuppressTracing",{enumerable:!0,get:function(){return ro.unsuppressTracing}});var XL=zn();Object.defineProperty(T,"TraceState",{enumerable:!0,get:function(){return XL.TraceState}});var zL=hS();Object.defineProperty(T,"merge",{enumerable:!0,get:function(){return zL.merge}});var US=RS();Object.defineProperty(T,"TimeoutError",{enumerable:!0,get:function(){return US.TimeoutError}});Object.defineProperty(T,"callWithTimeout",{enumerable:!0,get:function(){return US.callWithTimeout}});var bS=gS();Object.defineProperty(T,"isUrlIgnored",{enumerable:!0,get:function(){return bS.isUrlIgnored}});Object.defineProperty(T,"urlMatches",{enumerable:!0,get:function(){return bS.urlMatches}});var QL=MS();Object.defineProperty(T,"BindOnceFuture",{enumerable:!0,get:function(){return QL.BindOnceFuture}});var JL=CS();Object.defineProperty(T,"diagLogLevelFromString",{enumerable:!0,get:function(){return JL.diagLogLevelFromString}});var ZL=IS();T.internal={_export:ZL._export}});var oe={};import*as kV from"async_hooks";var Uo=F(()=>{tt(oe,kV)});var Ve={};import*as KV from"events";var Sp=F(()=>{tt(Ve,KV)});var yo=S(ln=>{"use strict";Object.defineProperty(ln,"__esModule",{value:!0});ln.AbstractAsyncHooksContextManager=void 0;var RI=(Sp(),b(Ve)),OI=["addListener","on","once","prependListener","prependOnceListener"],bo=class{bind(t,e){return e instanceof RI.EventEmitter?this._bindEventEmitter(t,e):typeof e=="function"?this._bindFunction(t,e):e}_bindFunction(t,e){let n=this,o=function(...s){return n.with(t,()=>e.apply(this,s))};return Object.defineProperty(o,"length",{enumerable:!1,configurable:!0,writable:!1,value:e.length}),o}_bindEventEmitter(t,e){return this._getPatchMap(e)!==void 0||(this._createPatchMap(e),OI.forEach(o=>{e[o]!==void 0&&(e[o]=this._patchAddListener(e,e[o],t))}),typeof e.removeListener=="function"&&(e.removeListener=this._patchRemoveListener(e,e.removeListener)),typeof e.off=="function"&&(e.off=this._patchRemoveListener(e,e.off)),typeof e.removeAllListeners=="function"&&(e.removeAllListeners=this._patchRemoveAllListeners(e,e.removeAllListeners))),e}_patchRemoveListener(t,e){let n=this;return function(o,s){let i=n._getPatchMap(t)?.[o];if(i===void 0)return e.call(this,o,s);let a=i.get(s);return e.call(this,o,a||s)}}_patchRemoveAllListeners(t,e){let n=this;return function(o){let s=n._getPatchMap(t);return s!==void 0&&(arguments.length===0?n._createPatchMap(t):s[o]!==void 0&&delete s[o]),e.apply(this,arguments)}}_patchAddListener(t,e,n){let o=this;return function(s,i){if(o._wrapped)return e.call(this,s,i);let a=o._getPatchMap(t);a===void 0&&(a=o._createPatchMap(t));let _=a[s];_===void 0&&(_=new WeakMap,a[s]=_);let E=o.bind(n,i);_.set(i,E),o._wrapped=!0;try{return e.call(this,s,E)}finally{o._wrapped=!1}}}_createPatchMap(t){let e=Object.create(null);return t[this._kOtListeners]=e,e}_getPatchMap(t){return t[this._kOtListeners]}_kOtListeners=Symbol("OtListeners");_wrapped=!1};ln.AbstractAsyncHooksContextManager=bo});var pp=S(An=>{"use strict";Object.defineProperty(An,"__esModule",{value:!0});An.AsyncHooksContextManager=void 0;var gI=(d(),b(c)),NI=(Uo(),b(oe)),MI=yo(),Vo=class extends MI.AbstractAsyncHooksContextManager{_asyncHook;_contexts=new Map;_stack=[];constructor(){super(),this._asyncHook=NI.createHook({init:this._init.bind(this),before:this._before.bind(this),after:this._after.bind(this),destroy:this._destroy.bind(this),promiseResolve:this._destroy.bind(this)})}active(){return this._stack[this._stack.length-1]??gI.ROOT_CONTEXT}with(t,e,n,...o){this._enterContext(t);try{return e.call(n,...o)}finally{this._exitContext()}}enable(){return this._asyncHook.enable(),this}disable(){return this._asyncHook.disable(),this._contexts.clear(),this._stack=[],this}_init(t,e){if(e==="TIMERWRAP")return;let n=this._stack[this._stack.length-1];n!==void 0&&this._contexts.set(t,n)}_destroy(t){this._contexts.delete(t)}_before(t){let e=this._contexts.get(t);e!==void 0&&this._enterContext(e)}_after(){this._exitContext()}_enterContext(t){this._stack.push(t)}_exitContext(){this._stack.pop()}};An.AsyncHooksContextManager=Vo});var lp=S(dn=>{"use strict";Object.defineProperty(dn,"__esModule",{value:!0});dn.AsyncLocalStorageContextManager=void 0;var PI=(d(),b(c)),CI=(Uo(),b(oe)),LI=yo(),vo=class extends LI.AbstractAsyncHooksContextManager{_asyncLocalStorage;constructor(){super(),this._asyncLocalStorage=new CI.AsyncLocalStorage}active(){return this._asyncLocalStorage.getStore()??PI.ROOT_CONTEXT}with(t,e,n,...o){let s=n==null?e:e.bind(n);return this._asyncLocalStorage.run(t,s,...o)}enable(){return this}disable(){return this._asyncLocalStorage.disable(),this}};dn.AsyncLocalStorageContextManager=vo});var Ap=S(se=>{"use strict";Object.defineProperty(se,"__esModule",{value:!0});se.AsyncLocalStorageContextManager=se.AsyncHooksContextManager=void 0;var II=pp();Object.defineProperty(se,"AsyncHooksContextManager",{enumerable:!0,get:function(){return II.AsyncHooksContextManager}});var xI=lp();Object.defineProperty(se,"AsyncLocalStorageContextManager",{enumerable:!0,get:function(){return xI.AsyncLocalStorageContextManager}})});var Hp=S(X=>{"use strict";Object.defineProperty(X,"__esModule",{value:!0});X.toAnyValue=X.toKeyValue=X.toAttributes=X.createInstrumentationScope=X.createResource=void 0;function vI(r){let t={attributes:Gp(r.attributes),droppedAttributesCount:0},e=r.schemaUrl;return e&&e!==""&&(t.schemaUrl=e),t}X.createResource=vI;function BI(r){return{name:r.name,version:r.version}}X.createInstrumentationScope=BI;function Gp(r){return Object.keys(r).map(t=>Ho(t,r[t]))}X.toAttributes=Gp;function Ho(r,t){return{key:r,value:Fo(t)}}X.toKeyValue=Ho;function Fo(r){let t=typeof r;return t==="string"?{stringValue:r}:t==="number"?Number.isInteger(r)?{intValue:r}:{doubleValue:r}:t==="boolean"?{boolValue:r}:r instanceof Uint8Array?{bytesValue:r}:Array.isArray(r)?{arrayValue:{values:r.map(Fo)}}:t==="object"&&r!=null?{kvlistValue:{values:Object.entries(r).map(([e,n])=>Ho(e,n))}}:{}}X.toAnyValue=Fo});var Yp=S(hn=>{"use strict";Object.defineProperty(hn,"__esModule",{value:!0});hn.hexToBinary=void 0;function Fp(r){return r>=48&&r<=57?r-48:r>=97&&r<=102?r-87:r-55}function wI(r){let t=new Uint8Array(r.length/2),e=0;for(let n=0;n<r.length;n+=2){let o=Fp(r.charCodeAt(n)),s=Fp(r.charCodeAt(n+1));t[e++]=o<<4|s}return t}hn.hexToBinary=wI});var qp=S(z=>{"use strict";Object.defineProperty(z,"__esModule",{value:!0});z.getOtlpEncoder=z.encodeAsString=z.encodeAsLongBits=z.toLongBits=z.hrTimeToNanos=void 0;var GI=P(),Yo=Yp();function ko(r){let t=BigInt(1e9);return BigInt(r[0])*t+BigInt(r[1])}z.hrTimeToNanos=ko;function Kp(r){let t=Number(BigInt.asUintN(32,r)),e=Number(BigInt.asUintN(32,r>>BigInt(32)));return{low:t,high:e}}z.toLongBits=Kp;function Ko(r){let t=ko(r);return Kp(t)}z.encodeAsLongBits=Ko;function jp(r){return ko(r).toString()}z.encodeAsString=jp;var HI=typeof BigInt<"u"?jp:GI.hrTimeToNanoseconds;function kp(r){return r}function Wp(r){if(r!==void 0)return(0,Yo.hexToBinary)(r)}var FI={encodeHrTime:Ko,encodeSpanContext:Yo.hexToBinary,encodeOptionalSpanContext:Wp};function YI(r){if(r===void 0)return FI;let t=r.useLongBits??!0,e=r.useHex??!1;return{encodeHrTime:t?Ko:HI,encodeSpanContext:e?kp:Yo.hexToBinary,encodeOptionalSpanContext:e?kp:Wp}}z.getOtlpEncoder=YI});var jo=S(Tt=>{"use strict";Object.defineProperty(Tt,"__esModule",{value:!0});Tt.createExportTraceServiceRequest=Tt.toOtlpSpanEvent=Tt.toOtlpLink=Tt.sdkSpanToOtlpSpan=void 0;var ve=Hp(),kI=qp();function $p(r,t){let e=r.spanContext(),n=r.status,o=r.parentSpanContext?.spanId?t.encodeSpanContext(r.parentSpanContext?.spanId):void 0;return{traceId:t.encodeSpanContext(e.traceId),spanId:t.encodeSpanContext(e.spanId),parentSpanId:o,traceState:e.traceState?.serialize(),name:r.name,kind:r.kind==null?0:r.kind+1,startTimeUnixNano:t.encodeHrTime(r.startTime),endTimeUnixNano:t.encodeHrTime(r.endTime),attributes:(0,ve.toAttributes)(r.attributes),droppedAttributesCount:r.droppedAttributesCount,events:r.events.map(s=>zp(s,t)),droppedEventsCount:r.droppedEventsCount,status:{code:n.code,message:n.message},links:r.links.map(s=>Xp(s,t)),droppedLinksCount:r.droppedLinksCount}}Tt.sdkSpanToOtlpSpan=$p;function Xp(r,t){return{attributes:r.attributes?(0,ve.toAttributes)(r.attributes):[],spanId:t.encodeSpanContext(r.context.spanId),traceId:t.encodeSpanContext(r.context.traceId),traceState:r.context.traceState?.serialize(),droppedAttributesCount:r.droppedAttributesCount||0}}Tt.toOtlpLink=Xp;function zp(r,t){return{attributes:r.attributes?(0,ve.toAttributes)(r.attributes):[],name:r.name,timeUnixNano:t.encodeHrTime(r.time),droppedAttributesCount:r.droppedAttributesCount||0}}Tt.toOtlpSpanEvent=zp;function KI(r,t){let e=(0,kI.getOtlpEncoder)(t);return{resourceSpans:WI(r,e)}}Tt.createExportTraceServiceRequest=KI;function jI(r){let t=new Map;for(let e of r){let n=t.get(e.resource);n||(n=new Map,t.set(e.resource,n));let o=`${e.instrumentationScope.name}@${e.instrumentationScope.version||""}:${e.instrumentationScope.schemaUrl||""}`,s=n.get(o);s||(s=[],n.set(o,s)),s.push(e)}return t}function WI(r,t){let e=jI(r),n=[],o=e.entries(),s=o.next();for(;!s.done;){let[i,a]=s.value,_=[],E=a.values(),u=E.next();for(;!u.done;){let h=u.value;if(h.length>0){let R=h.map(I=>$p(I,t));_.push({scope:(0,ve.createInstrumentationScope)(h[0].instrumentationScope),spans:R,schemaUrl:h[0].instrumentationScope.schemaUrl})}u=E.next()}let p=(0,ve.createResource)(i),A={resource:p,scopeSpans:_,schemaUrl:p.schemaUrl};n.push(A),s=o.next()}return n}});var Wo=S(Rn=>{"use strict";Object.defineProperty(Rn,"__esModule",{value:!0});Rn.JsonTraceSerializer=void 0;var qI=jo();Rn.JsonTraceSerializer={serializeRequest:r=>{let t=(0,qI.createExportTraceServiceRequest)(r,{useHex:!0,useLongBits:!1});return new TextEncoder().encode(JSON.stringify(t))},deserializeResponse:r=>{if(r.length===0)return{};let t=new TextDecoder;return JSON.parse(t.decode(r))}}});var Zp=S((Rv,Jp)=>{"use strict";Jp.exports=zI;function zI(r,t){for(var e=new Array(arguments.length-1),n=0,o=2,s=!0;o<arguments.length;)e[n++]=arguments[o++];return new Promise(function(a,_){e[n]=function(u){if(s)if(s=!1,u)_(u);else{for(var p=new Array(arguments.length-1),A=0;A<p.length;)p[A++]=arguments[A];a.apply(null,p)}};try{r.apply(t||null,e)}catch(E){s&&(s=!1,_(E))}})}});var nl=S(rl=>{"use strict";var gn=rl;gn.length=function(t){var e=t.length;if(!e)return 0;for(var n=0;--e%4>1&&t.charAt(e)==="=";)++n;return Math.ceil(t.length*3)/4-n};var _e=new Array(64),el=new Array(123);for(rt=0;rt<64;)el[_e[rt]=rt<26?rt+65:rt<52?rt+71:rt<62?rt-4:rt-59|43]=rt++;var rt;gn.encode=function(t,e,n){for(var o=null,s=[],i=0,a=0,_;e<n;){var E=t[e++];switch(a){case 0:s[i++]=_e[E>>2],_=(E&3)<<4,a=1;break;case 1:s[i++]=_e[_|E>>4],_=(E&15)<<2,a=2;break;case 2:s[i++]=_e[_|E>>6],s[i++]=_e[E&63],a=0;break}i>8191&&((o||(o=[])).push(String.fromCharCode.apply(String,s)),i=0)}return a&&(s[i++]=_e[_],s[i++]=61,a===1&&(s[i++]=61)),o?(i&&o.push(String.fromCharCode.apply(String,s.slice(0,i))),o.join("")):String.fromCharCode.apply(String,s.slice(0,i))};var tl="invalid encoding";gn.decode=function(t,e,n){for(var o=n,s=0,i,a=0;a<t.length;){var _=t.charCodeAt(a++);if(_===61&&s>1)break;if((_=el[_])===void 0)throw Error(tl);switch(s){case 0:i=_,s=1;break;case 1:e[n++]=i<<2|(_&48)>>4,i=_,s=2;break;case 2:e[n++]=(i&15)<<4|(_&60)>>2,i=_,s=3;break;case 3:e[n++]=(i&3)<<6|_,s=0;break}}if(s===1)throw Error(tl);return n-o};gn.test=function(t){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(t)}});var sl=S((gv,ol)=>{"use strict";ol.exports=Nn;function Nn(){this._listeners={}}Nn.prototype.on=function(t,e,n){return(this._listeners[t]||(this._listeners[t]=[])).push({fn:e,ctx:n||this}),this};Nn.prototype.off=function(t,e){if(t===void 0)this._listeners={};else if(e===void 0)this._listeners[t]=[];else for(var n=this._listeners[t],o=0;o<n.length;)n[o].fn===e?n.splice(o,1):++o;return this};Nn.prototype.emit=function(t){var e=this._listeners[t];if(e){for(var n=[],o=1;o<arguments.length;)n.push(arguments[o++]);for(o=0;o<e.length;)e[o].fn.apply(e[o++].ctx,n)}return this}});var Tl=S((Nv,ul)=>{"use strict";ul.exports=il(il);function il(r){return typeof Float32Array<"u"?function(){var t=new Float32Array([-0]),e=new Uint8Array(t.buffer),n=e[3]===128;function o(_,E,u){t[0]=_,E[u]=e[0],E[u+1]=e[1],E[u+2]=e[2],E[u+3]=e[3]}function s(_,E,u){t[0]=_,E[u]=e[3],E[u+1]=e[2],E[u+2]=e[1],E[u+3]=e[0]}r.writeFloatLE=n?o:s,r.writeFloatBE=n?s:o;function i(_,E){return e[0]=_[E],e[1]=_[E+1],e[2]=_[E+2],e[3]=_[E+3],t[0]}function a(_,E){return e[3]=_[E],e[2]=_[E+1],e[1]=_[E+2],e[0]=_[E+3],t[0]}r.readFloatLE=n?i:a,r.readFloatBE=n?a:i}():function(){function t(n,o,s,i){var a=o<0?1:0;if(a&&(o=-o),o===0)n(1/o>0?0:2147483648,s,i);else if(isNaN(o))n(2143289344,s,i);else if(o>34028234663852886e22)n((a<<31|2139095040)>>>0,s,i);else if(o<11754943508222875e-54)n((a<<31|Math.round(o/1401298464324817e-60))>>>0,s,i);else{var _=Math.floor(Math.log(o)/Math.LN2),E=Math.round(o*Math.pow(2,-_)*8388608)&8388607;n((a<<31|_+127<<23|E)>>>0,s,i)}}r.writeFloatLE=t.bind(null,al),r.writeFloatBE=t.bind(null,cl);function e(n,o,s){var i=n(o,s),a=(i>>31)*2+1,_=i>>>23&255,E=i&8388607;return _===255?E?NaN:a*(1/0):_===0?a*1401298464324817e-60*E:a*Math.pow(2,_-150)*(E+8388608)}r.readFloatLE=e.bind(null,_l),r.readFloatBE=e.bind(null,El)}(),typeof Float64Array<"u"?function(){var t=new Float64Array([-0]),e=new Uint8Array(t.buffer),n=e[7]===128;function o(_,E,u){t[0]=_,E[u]=e[0],E[u+1]=e[1],E[u+2]=e[2],E[u+3]=e[3],E[u+4]=e[4],E[u+5]=e[5],E[u+6]=e[6],E[u+7]=e[7]}function s(_,E,u){t[0]=_,E[u]=e[7],E[u+1]=e[6],E[u+2]=e[5],E[u+3]=e[4],E[u+4]=e[3],E[u+5]=e[2],E[u+6]=e[1],E[u+7]=e[0]}r.writeDoubleLE=n?o:s,r.writeDoubleBE=n?s:o;function i(_,E){return e[0]=_[E],e[1]=_[E+1],e[2]=_[E+2],e[3]=_[E+3],e[4]=_[E+4],e[5]=_[E+5],e[6]=_[E+6],e[7]=_[E+7],t[0]}function a(_,E){return e[7]=_[E],e[6]=_[E+1],e[5]=_[E+2],e[4]=_[E+3],e[3]=_[E+4],e[2]=_[E+5],e[1]=_[E+6],e[0]=_[E+7],t[0]}r.readDoubleLE=n?i:a,r.readDoubleBE=n?a:i}():function(){function t(n,o,s,i,a,_){var E=i<0?1:0;if(E&&(i=-i),i===0)n(0,a,_+o),n(1/i>0?0:2147483648,a,_+s);else if(isNaN(i))n(0,a,_+o),n(2146959360,a,_+s);else if(i>17976931348623157e292)n(0,a,_+o),n((E<<31|2146435072)>>>0,a,_+s);else{var u;if(i<22250738585072014e-324)u=i/5e-324,n(u>>>0,a,_+o),n((E<<31|u/4294967296)>>>0,a,_+s);else{var p=Math.floor(Math.log(i)/Math.LN2);p===1024&&(p=1023),u=i*Math.pow(2,-p),n(u*4503599627370496>>>0,a,_+o),n((E<<31|p+1023<<20|u*1048576&1048575)>>>0,a,_+s)}}}r.writeDoubleLE=t.bind(null,al,0,4),r.writeDoubleBE=t.bind(null,cl,4,0);function e(n,o,s,i,a){var _=n(i,a+o),E=n(i,a+s),u=(E>>31)*2+1,p=E>>>20&2047,A=4294967296*(E&1048575)+_;return p===2047?A?NaN:u*(1/0):p===0?u*5e-324*A:u*Math.pow(2,p-1075)*(A+4503599627370496)}r.readDoubleLE=e.bind(null,_l,0,4),r.readDoubleBE=e.bind(null,El,4,0)}(),r}function al(r,t,e){t[e]=r&255,t[e+1]=r>>>8&255,t[e+2]=r>>>16&255,t[e+3]=r>>>24}function cl(r,t,e){t[e]=r>>>24,t[e+1]=r>>>16&255,t[e+2]=r>>>8&255,t[e+3]=r&255}function _l(r,t){return(r[t]|r[t+1]<<8|r[t+2]<<16|r[t+3]<<24)>>>0}function El(r,t){return(r[t]<<24|r[t+1]<<16|r[t+2]<<8|r[t+3])>>>0}});var pl=S((Mv,Sl)=>{"use strict";Sl.exports=QI;function QI(r){return null}});var Al=S(ll=>{"use strict";var $o=ll;$o.length=function(t){for(var e=0,n=0,o=0;o<t.length;++o)n=t.charCodeAt(o),n<128?e+=1:n<2048?e+=2:(n&64512)===55296&&(t.charCodeAt(o+1)&64512)===56320?(++o,e+=4):e+=3;return e};$o.read=function(t,e,n){var o=n-e;if(o<1)return"";for(var s=null,i=[],a=0,_;e<n;)_=t[e++],_<128?i[a++]=_:_>191&&_<224?i[a++]=(_&31)<<6|t[e++]&63:_>239&&_<365?(_=((_&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,i[a++]=55296+(_>>10),i[a++]=56320+(_&1023)):i[a++]=(_&15)<<12|(t[e++]&63)<<6|t[e++]&63,a>8191&&((s||(s=[])).push(String.fromCharCode.apply(String,i)),a=0);return s?(a&&s.push(String.fromCharCode.apply(String,i.slice(0,a))),s.join("")):String.fromCharCode.apply(String,i.slice(0,a))};$o.write=function(t,e,n){for(var o=n,s,i,a=0;a<t.length;++a)s=t.charCodeAt(a),s<128?e[n++]=s:s<2048?(e[n++]=s>>6|192,e[n++]=s&63|128):(s&64512)===55296&&((i=t.charCodeAt(a+1))&64512)===56320?(s=65536+((s&1023)<<10)+(i&1023),++a,e[n++]=s>>18|240,e[n++]=s>>12&63|128,e[n++]=s>>6&63|128,e[n++]=s&63|128):(e[n++]=s>>12|224,e[n++]=s>>6&63|128,e[n++]=s&63|128);return n-o}});var ml=S((Cv,dl)=>{"use strict";dl.exports=JI;function JI(r,t,e){var n=e||8192,o=n>>>1,s=null,i=n;return function(_){if(_<1||_>o)return r(_);i+_>n&&(s=r(n),i=0);var E=t.call(s,i,i+=_);return i&7&&(i=(i|7)+1),E}}});var hl=S((Lv,fl)=>{"use strict";fl.exports=U;var Be=Mt();function U(r,t){this.lo=r>>>0,this.hi=t>>>0}var vt=U.zero=new U(0,0);vt.toNumber=function(){return 0};vt.zzEncode=vt.zzDecode=function(){return this};vt.length=function(){return 1};var ZI=U.zeroHash="\0\0\0\0\0\0\0\0";U.fromNumber=function(t){if(t===0)return vt;var e=t<0;e&&(t=-t);var n=t>>>0,o=(t-n)/4294967296>>>0;return e&&(o=~o>>>0,n=~n>>>0,++n>4294967295&&(n=0,++o>4294967295&&(o=0))),new U(n,o)};U.from=function(t){if(typeof t=="number")return U.fromNumber(t);if(Be.isString(t))if(Be.Long)t=Be.Long.fromString(t);else return U.fromNumber(parseInt(t,10));return t.low||t.high?new U(t.low>>>0,t.high>>>0):vt};U.prototype.toNumber=function(t){if(!t&&this.hi>>>31){var e=~this.lo+1>>>0,n=~this.hi>>>0;return e||(n=n+1>>>0),-(e+n*4294967296)}return this.lo+this.hi*4294967296};U.prototype.toLong=function(t){return Be.Long?new Be.Long(this.lo|0,this.hi|0,!!t):{low:this.lo|0,high:this.hi|0,unsigned:!!t}};var Nt=String.prototype.charCodeAt;U.fromHash=function(t){return t===ZI?vt:new U((Nt.call(t,0)|Nt.call(t,1)<<8|Nt.call(t,2)<<16|Nt.call(t,3)<<24)>>>0,(Nt.call(t,4)|Nt.call(t,5)<<8|Nt.call(t,6)<<16|Nt.call(t,7)<<24)>>>0)};U.prototype.toHash=function(){return String.fromCharCode(this.lo&255,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,this.hi&255,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)};U.prototype.zzEncode=function(){var t=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^t)>>>0,this.lo=(this.lo<<1^t)>>>0,this};U.prototype.zzDecode=function(){var t=-(this.lo&1);return this.lo=((this.lo>>>1|this.hi<<31)^t)>>>0,this.hi=(this.hi>>>1^t)>>>0,this};U.prototype.length=function(){var t=this.lo,e=(this.lo>>>28|this.hi<<4)>>>0,n=this.hi>>>24;return n===0?e===0?t<16384?t<128?1:2:t<2097152?3:4:e<16384?e<128?5:6:e<2097152?7:8:n<128?9:10}});var Mt=S(Xo=>{"use strict";var l=Xo;l.asPromise=Zp();l.base64=nl();l.EventEmitter=sl();l.float=Tl();l.inquire=pl();l.utf8=Al();l.pool=ml();l.LongBits=hl();l.isNode=!!(typeof global<"u"&&global&&global.process&&global.process.versions&&global.process.versions.node);l.global=l.isNode&&global||typeof window<"u"&&window||typeof self<"u"&&self||Xo;l.emptyArray=Object.freeze?Object.freeze([]):[];l.emptyObject=Object.freeze?Object.freeze({}):{};l.isInteger=Number.isInteger||function(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t};l.isString=function(t){return typeof t=="string"||t instanceof String};l.isObject=function(t){return t&&typeof t=="object"};l.isset=l.isSet=function(t,e){var n=t[e];return n!=null&&t.hasOwnProperty(e)?typeof n!="object"||(Array.isArray(n)?n.length:Object.keys(n).length)>0:!1};l.Buffer=function(){try{var r=l.inquire("buffer").Buffer;return r.prototype.utf8Write?r:null}catch{return null}}();l._Buffer_from=null;l._Buffer_allocUnsafe=null;l.newBuffer=function(t){return typeof t=="number"?l.Buffer?l._Buffer_allocUnsafe(t):new l.Array(t):l.Buffer?l._Buffer_from(t):typeof Uint8Array>"u"?t:new Uint8Array(t)};l.Array=typeof Uint8Array<"u"?Uint8Array:Array;l.Long=l.global.dcodeIO&&l.global.dcodeIO.Long||l.global.Long||l.inquire("long");l.key2Re=/^true|false|0|1$/;l.key32Re=/^-?(?:0|[1-9][0-9]*)$/;l.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/;l.longToHash=function(t){return t?l.LongBits.from(t).toHash():l.LongBits.zeroHash};l.longFromHash=function(t,e){var n=l.LongBits.fromHash(t);return l.Long?l.Long.fromBits(n.lo,n.hi,e):n.toNumber(!!e)};function Rl(r,t,e){for(var n=Object.keys(t),o=0;o<n.length;++o)(r[n[o]]===void 0||!e)&&(r[n[o]]=t[n[o]]);return r}l.merge=Rl;l.lcFirst=function(t){return t.charAt(0).toLowerCase()+t.substring(1)};function Ol(r){function t(e,n){if(!(this instanceof t))return new t(e,n);Object.defineProperty(this,"message",{get:function(){return e}}),Error.captureStackTrace?Error.captureStackTrace(this,t):Object.defineProperty(this,"stack",{value:new Error().stack||""}),n&&Rl(this,n)}return t.prototype=Object.create(Error.prototype,{constructor:{value:t,writable:!0,enumerable:!1,configurable:!0},name:{get:function(){return r},set:void 0,enumerable:!1,configurable:!0},toString:{value:function(){return this.name+": "+this.message},writable:!0,enumerable:!1,configurable:!0}}),t}l.newError=Ol;l.ProtocolError=Ol("ProtocolError");l.oneOfGetter=function(t){for(var e={},n=0;n<t.length;++n)e[t[n]]=1;return function(){for(var o=Object.keys(this),s=o.length-1;s>-1;--s)if(e[o[s]]===1&&this[o[s]]!==void 0&&this[o[s]]!==null)return o[s]}};l.oneOfSetter=function(t){return function(e){for(var n=0;n<t.length;++n)t[n]!==e&&delete this[t[n]]}};l.toJSONOptions={longs:String,enums:String,bytes:String,json:!0};l._configure=function(){var r=l.Buffer;if(!r){l._Buffer_from=l._Buffer_allocUnsafe=null;return}l._Buffer_from=r.from!==Uint8Array.from&&r.from||function(e,n){return new r(e,n)},l._Buffer_allocUnsafe=r.allocUnsafe||function(e){return new r(e)}}});var rs=S((xv,Pl)=>{"use strict";Pl.exports=m;var Q=Mt(),zo,Mn=Q.LongBits,gl=Q.base64,Nl=Q.utf8;function we(r,t,e){this.fn=r,this.len=t,this.next=void 0,this.val=e}function Jo(){}function tx(r){this.head=r.head,this.tail=r.tail,this.len=r.len,this.next=r.states}function m(){this.len=0,this.head=new we(Jo,0,0),this.tail=this.head,this.states=null}var Ml=function(){return Q.Buffer?function(){return(m.create=function(){return new zo})()}:function(){return new m}};m.create=Ml();m.alloc=function(t){return new Q.Array(t)};Q.Array!==Array&&(m.alloc=Q.pool(m.alloc,Q.Array.prototype.subarray));m.prototype._push=function(t,e,n){return this.tail=this.tail.next=new we(t,e,n),this.len+=e,this};function Zo(r,t,e){t[e]=r&255}function ex(r,t,e){for(;r>127;)t[e++]=r&127|128,r>>>=7;t[e]=r}function ts(r,t){this.len=r,this.next=void 0,this.val=t}ts.prototype=Object.create(we.prototype);ts.prototype.fn=ex;m.prototype.uint32=function(t){return this.len+=(this.tail=this.tail.next=new ts((t=t>>>0)<128?1:t<16384?2:t<2097152?3:t<268435456?4:5,t)).len,this};m.prototype.int32=function(t){return t<0?this._push(es,10,Mn.fromNumber(t)):this.uint32(t)};m.prototype.sint32=function(t){return this.uint32((t<<1^t>>31)>>>0)};function es(r,t,e){for(;r.hi;)t[e++]=r.lo&127|128,r.lo=(r.lo>>>7|r.hi<<25)>>>0,r.hi>>>=7;for(;r.lo>127;)t[e++]=r.lo&127|128,r.lo=r.lo>>>7;t[e++]=r.lo}m.prototype.uint64=function(t){var e=Mn.from(t);return this._push(es,e.length(),e)};m.prototype.int64=m.prototype.uint64;m.prototype.sint64=function(t){var e=Mn.from(t).zzEncode();return this._push(es,e.length(),e)};m.prototype.bool=function(t){return this._push(Zo,1,t?1:0)};function Qo(r,t,e){t[e]=r&255,t[e+1]=r>>>8&255,t[e+2]=r>>>16&255,t[e+3]=r>>>24}m.prototype.fixed32=function(t){return this._push(Qo,4,t>>>0)};m.prototype.sfixed32=m.prototype.fixed32;m.prototype.fixed64=function(t){var e=Mn.from(t);return this._push(Qo,4,e.lo)._push(Qo,4,e.hi)};m.prototype.sfixed64=m.prototype.fixed64;m.prototype.float=function(t){return this._push(Q.float.writeFloatLE,4,t)};m.prototype.double=function(t){return this._push(Q.float.writeDoubleLE,8,t)};var rx=Q.Array.prototype.set?function(t,e,n){e.set(t,n)}:function(t,e,n){for(var o=0;o<t.length;++o)e[n+o]=t[o]};m.prototype.bytes=function(t){var e=t.length>>>0;if(!e)return this._push(Zo,1,0);if(Q.isString(t)){var n=m.alloc(e=gl.length(t));gl.decode(t,n,0),t=n}return this.uint32(e)._push(rx,e,t)};m.prototype.string=function(t){var e=Nl.length(t);return e?this.uint32(e)._push(Nl.write,e,t):this._push(Zo,1,0)};m.prototype.fork=function(){return this.states=new tx(this),this.head=this.tail=new we(Jo,0,0),this.len=0,this};m.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new we(Jo,0,0),this.len=0),this};m.prototype.ldelim=function(){var t=this.head,e=this.tail,n=this.len;return this.reset().uint32(n),n&&(this.tail.next=t.next,this.tail=e,this.len+=n),this};m.prototype.finish=function(){for(var t=this.head.next,e=this.constructor.alloc(this.len),n=0;t;)t.fn(t.val,e,n),n+=t.len,t=t.next;return e};m._configure=function(r){zo=r,m.create=Ml(),zo._configure()}});var Il=S((Dv,Ll)=>{"use strict";Ll.exports=St;var Cl=rs();(St.prototype=Object.create(Cl.prototype)).constructor=St;var Pt=Mt();function St(){Cl.call(this)}St._configure=function(){St.alloc=Pt._Buffer_allocUnsafe,St.writeBytesBuffer=Pt.Buffer&&Pt.Buffer.prototype instanceof Uint8Array&&Pt.Buffer.prototype.set.name==="set"?function(t,e,n){e.set(t,n)}:function(t,e,n){if(t.copy)t.copy(e,n,0,t.length);else for(var o=0;o<t.length;)e[n++]=t[o++]}};St.prototype.bytes=function(t){Pt.isString(t)&&(t=Pt._Buffer_from(t,"base64"));var e=t.length>>>0;return this.uint32(e),e&&this._push(St.writeBytesBuffer,e,t),this};function nx(r,t,e){r.length<40?Pt.utf8.write(r,t,e):t.utf8Write?t.utf8Write(r,e):t.write(r,e)}St.prototype.string=function(t){var e=Pt.Buffer.byteLength(t);return this.uint32(e),e&&this._push(nx,e,t),this};St._configure()});var ss=S((Uv,yl)=>{"use strict";yl.exports=L;var nt=Mt(),os,Ul=nt.LongBits,ox=nt.utf8;function ot(r,t){return RangeError("index out of range: "+r.pos+" + "+(t||1)+" > "+r.len)}function L(r){this.buf=r,this.pos=0,this.len=r.length}var xl=typeof Uint8Array<"u"?function(t){if(t instanceof Uint8Array||Array.isArray(t))return new L(t);throw Error("illegal buffer")}:function(t){if(Array.isArray(t))return new L(t);throw Error("illegal buffer")},bl=function(){return nt.Buffer?function(e){return(L.create=function(o){return nt.Buffer.isBuffer(o)?new os(o):xl(o)})(e)}:xl};L.create=bl();L.prototype._slice=nt.Array.prototype.subarray||nt.Array.prototype.slice;L.prototype.uint32=function(){var t=4294967295;return function(){if(t=(this.buf[this.pos]&127)>>>0,this.buf[this.pos++]<128||(t=(t|(this.buf[this.pos]&127)<<7)>>>0,this.buf[this.pos++]<128)||(t=(t|(this.buf[this.pos]&127)<<14)>>>0,this.buf[this.pos++]<128)||(t=(t|(this.buf[this.pos]&127)<<21)>>>0,this.buf[this.pos++]<128)||(t=(t|(this.buf[this.pos]&15)<<28)>>>0,this.buf[this.pos++]<128))return t;if((this.pos+=5)>this.len)throw this.pos=this.len,ot(this,10);return t}}();L.prototype.int32=function(){return this.uint32()|0};L.prototype.sint32=function(){var t=this.uint32();return t>>>1^-(t&1)|0};function ns(){var r=new Ul(0,0),t=0;if(this.len-this.pos>4){for(;t<4;++t)if(r.lo=(r.lo|(this.buf[this.pos]&127)<<t*7)>>>0,this.buf[this.pos++]<128)return r;if(r.lo=(r.lo|(this.buf[this.pos]&127)<<28)>>>0,r.hi=(r.hi|(this.buf[this.pos]&127)>>4)>>>0,this.buf[this.pos++]<128)return r;t=0}else{for(;t<3;++t){if(this.pos>=this.len)throw ot(this);if(r.lo=(r.lo|(this.buf[this.pos]&127)<<t*7)>>>0,this.buf[this.pos++]<128)return r}return r.lo=(r.lo|(this.buf[this.pos++]&127)<<t*7)>>>0,r}if(this.len-this.pos>4){for(;t<5;++t)if(r.hi=(r.hi|(this.buf[this.pos]&127)<<t*7+3)>>>0,this.buf[this.pos++]<128)return r}else for(;t<5;++t){if(this.pos>=this.len)throw ot(this);if(r.hi=(r.hi|(this.buf[this.pos]&127)<<t*7+3)>>>0,this.buf[this.pos++]<128)return r}throw Error("invalid varint encoding")}L.prototype.bool=function(){return this.uint32()!==0};function Pn(r,t){return(r[t-4]|r[t-3]<<8|r[t-2]<<16|r[t-1]<<24)>>>0}L.prototype.fixed32=function(){if(this.pos+4>this.len)throw ot(this,4);return Pn(this.buf,this.pos+=4)};L.prototype.sfixed32=function(){if(this.pos+4>this.len)throw ot(this,4);return Pn(this.buf,this.pos+=4)|0};function Dl(){if(this.pos+8>this.len)throw ot(this,8);return new Ul(Pn(this.buf,this.pos+=4),Pn(this.buf,this.pos+=4))}L.prototype.float=function(){if(this.pos+4>this.len)throw ot(this,4);var t=nt.float.readFloatLE(this.buf,this.pos);return this.pos+=4,t};L.prototype.double=function(){if(this.pos+8>this.len)throw ot(this,4);var t=nt.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,t};L.prototype.bytes=function(){var t=this.uint32(),e=this.pos,n=this.pos+t;if(n>this.len)throw ot(this,t);if(this.pos+=t,Array.isArray(this.buf))return this.buf.slice(e,n);if(e===n){var o=nt.Buffer;return o?o.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,e,n)};L.prototype.string=function(){var t=this.bytes();return ox.read(t,0,t.length)};L.prototype.skip=function(t){if(typeof t=="number"){if(this.pos+t>this.len)throw ot(this,t);this.pos+=t}else do if(this.pos>=this.len)throw ot(this);while(this.buf[this.pos++]&128);return this};L.prototype.skipType=function(r){switch(r){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;(r=this.uint32()&7)!==4;)this.skipType(r);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+r+" at offset "+this.pos)}return this};L._configure=function(r){os=r,L.create=bl(),os._configure();var t=nt.Long?"toLong":"toNumber";nt.merge(L.prototype,{int64:function(){return ns.call(this)[t](!1)},uint64:function(){return ns.call(this)[t](!0)},sint64:function(){return ns.call(this).zzDecode()[t](!1)},fixed64:function(){return Dl.call(this)[t](!0)},sfixed64:function(){return Dl.call(this)[t](!1)}})}});var wl=S((bv,Bl)=>{"use strict";Bl.exports=Bt;var vl=ss();(Bt.prototype=Object.create(vl.prototype)).constructor=Bt;var Vl=Mt();function Bt(r){vl.call(this,r)}Bt._configure=function(){Vl.Buffer&&(Bt.prototype._slice=Vl.Buffer.prototype.slice)};Bt.prototype.string=function(){var t=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+t,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+t,this.len))};Bt._configure()});var Hl=S((yv,Gl)=>{"use strict";Gl.exports=Ge;var is=Mt();(Ge.prototype=Object.create(is.EventEmitter.prototype)).constructor=Ge;function Ge(r,t,e){if(typeof r!="function")throw TypeError("rpcImpl must be a function");is.EventEmitter.call(this),this.rpcImpl=r,this.requestDelimited=!!t,this.responseDelimited=!!e}Ge.prototype.rpcCall=function r(t,e,n,o,s){if(!o)throw TypeError("request must be specified");var i=this;if(!s)return is.asPromise(r,i,t,e,n,o);if(!i.rpcImpl){setTimeout(function(){s(Error("already ended"))},0);return}try{return i.rpcImpl(t,e[i.requestDelimited?"encodeDelimited":"encode"](o).finish(),function(_,E){if(_)return i.emit("error",_,t),s(_);if(E===null){i.end(!0);return}if(!(E instanceof n))try{E=n[i.responseDelimited?"decodeDelimited":"decode"](E)}catch(u){return i.emit("error",u,t),s(u)}return i.emit("data",E,t),s(null,E)})}catch(a){i.emit("error",a,t),setTimeout(function(){s(a)},0);return}};Ge.prototype.end=function(t){return this.rpcImpl&&(t||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}});var Yl=S(Fl=>{"use strict";var sx=Fl;sx.Service=Hl()});var Kl=S((vv,kl)=>{"use strict";kl.exports={}});var ql=S(Wl=>{"use strict";var G=Wl;G.build="minimal";G.Writer=rs();G.BufferWriter=Il();G.Reader=ss();G.BufferReader=wl();G.util=Mt();G.rpc=Yl();G.roots=Kl();G.configure=jl;function jl(){G.util._configure(),G.Writer._configure(G.BufferWriter),G.Reader._configure(G.BufferReader)}jl()});var Xl=S((wv,$l)=>{"use strict";$l.exports=ql()});var kS=O(P());d();d();var hr=O(P());de();function no(){return"unknown_service"}var Kt=r=>r!==null&&typeof r=="object"&&typeof r.then=="function";var Rr=class r{_rawAttributes;_asyncAttributesPending=!1;_schemaUrl;_memoizedAttributes;static FromAttributeList(t,e){let n=new r({},e);return n._rawAttributes=yS(t),n._asyncAttributesPending=t.filter(([o,s])=>Kt(s)).length>0,n}constructor(t,e){let n=t.attributes??{};this._rawAttributes=Object.entries(n).map(([o,s])=>(Kt(s)&&(this._asyncAttributesPending=!0),[o,s])),this._rawAttributes=yS(this._rawAttributes),this._schemaUrl=tI(e?.schemaUrl)}get asyncAttributesPending(){return this._asyncAttributesPending}async waitForAsyncAttributes(){if(this.asyncAttributesPending){for(let t=0;t<this._rawAttributes.length;t++){let[e,n]=this._rawAttributes[t];this._rawAttributes[t]=[e,Kt(n)?await n:n]}this._asyncAttributesPending=!1}}get attributes(){if(this.asyncAttributesPending&&c.diag.error("Accessing resource attributes before async attributes settled"),this._memoizedAttributes)return this._memoizedAttributes;let t={};for(let[e,n]of this._rawAttributes){if(Kt(n)){c.diag.debug(`Unsettled resource attribute ${e} skipped`);continue}n!=null&&(t[e]??=n)}return this._asyncAttributesPending||(this._memoizedAttributes=t),t}getRawAttributes(){return this._rawAttributes}get schemaUrl(){return this._schemaUrl}merge(t){if(t==null)return this;let e=eI(this,t),n=e?{schemaUrl:e}:void 0;return r.FromAttributeList([...t.getRawAttributes(),...this.getRawAttributes()],n)}};function Re(r,t){return Rr.FromAttributeList(Object.entries(r),t)}function VS(r,t){return new Rr(r,t)}function Or(){return Re({})}function Ut(){return Re({[Ae]:no(),[Qe]:hr.SDK_INFO[Qe],[Je]:hr.SDK_INFO[Je],[Ze]:hr.SDK_INFO[Ze]})}function yS(r){return r.map(([t,e])=>Kt(e)?[t,e.catch(n=>{c.diag.debug("promise rejection for resource attribute: %s - %s",t,n)})]:[t,e])}function tI(r){if(typeof r=="string"||r===void 0)return r;c.diag.warn("Schema URL must be string or undefined, got %s. Schema URL will be ignored.",r)}function eI(r,t){let e=r?.schemaUrl,n=t?.schemaUrl,o=e===void 0||e==="",s=n===void 0||n==="";if(o)return n;if(s||e===n)return e;c.diag.warn('Schema URL merge conflict: old resource has "%s", updating resource has "%s". Resulting resource will have undefined Schema URL.',e,n)}var oo=(r={})=>(r.detectors||[]).map(e=>{try{let n=VS(e.detect(r));return c.diag.debug(`${e.constructor.name} found resource.`,n),n}catch(n){return c.diag.debug(`${e.constructor.name} failed: ${n.message}`),Or()}}).reduce((e,n)=>e.merge(n),Or());d();de();var so=O(P()),io=class{_MAX_LENGTH=255;_COMMA_SEPARATOR=",";_LABEL_KEY_VALUE_SPLITTER="=";_ERROR_MESSAGE_INVALID_CHARS="should be a ASCII string with a length greater than 0 and not exceed "+this._MAX_LENGTH+" characters.";_ERROR_MESSAGE_INVALID_VALUE="should be a ASCII string with a length not exceed "+this._MAX_LENGTH+" characters.";detect(t){let e={},n=(0,so.getStringFromEnv)("OTEL_RESOURCE_ATTRIBUTES"),o=(0,so.getStringFromEnv)("OTEL_SERVICE_NAME");if(n)try{let s=this._parseResourceAttributes(n);Object.assign(e,s)}catch(s){c.diag.debug(`EnvDetector failed: ${s.message}`)}return o&&(e[Ae]=o),{attributes:e}}_parseResourceAttributes(t){if(!t)return{};let e={},n=t.split(this._COMMA_SEPARATOR,-1);for(let o of n){let s=o.split(this._LABEL_KEY_VALUE_SPLITTER,-1);if(s.length!==2)continue;let[i,a]=s;if(i=i.trim(),a=a.trim().split(/^"|"$/).join(""),!this._isValidAndNotEmpty(i))throw new Error(`Attribute key ${this._ERROR_MESSAGE_INVALID_CHARS}`);if(!this._isValid(a))throw new Error(`Attribute value ${this._ERROR_MESSAGE_INVALID_VALUE}`);e[i]=decodeURIComponent(a)}return e}_isValid(t){return t.length<=this._MAX_LENGTH&&this._isBaggageOctetString(t)}_isBaggageOctetString(t){for(let e=0;e<t.length;e++){let n=t.charCodeAt(e);if(n<33||n===44||n===59||n===92||n>126)return!1}return!0}_isValidAndNotEmpty(t){return t.length>0&&this._isValid(t)}},gr=new io;d();var jt=O(P());d();var N=O(P());de();var vS="exception";var Nr=class{_spanContext;kind;parentSpanContext;attributes={};links=[];events=[];startTime;resource;instrumentationScope;_droppedAttributesCount=0;_droppedEventsCount=0;_droppedLinksCount=0;name;status={code:c.SpanStatusCode.UNSET};endTime=[0,0];_ended=!1;_duration=[-1,-1];_spanProcessor;_spanLimits;_attributeValueLengthLimit;_performanceStartTime;_performanceOffset;_startTimeProvided;constructor(t){let e=Date.now();this._spanContext=t.spanContext,this._performanceStartTime=N.otperformance.now(),this._performanceOffset=e-(this._performanceStartTime+(0,N.getTimeOrigin)()),this._startTimeProvided=t.startTime!=null,this._spanLimits=t.spanLimits,this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit||0,this._spanProcessor=t.spanProcessor,this.name=t.name,this.parentSpanContext=t.parentSpanContext,this.kind=t.kind,this.links=t.links||[],this.startTime=this._getTime(t.startTime??e),this.resource=t.resource,this.instrumentationScope=t.scope,t.attributes!=null&&this.setAttributes(t.attributes),this._spanProcessor.onStart(this,t.context)}spanContext(){return this._spanContext}setAttribute(t,e){if(e==null||this._isSpanEnded())return this;if(t.length===0)return c.diag.warn(`Invalid attribute key: ${t}`),this;if(!(0,N.isAttributeValue)(e))return c.diag.warn(`Invalid attribute value set for key: ${t}`),this;let{attributeCountLimit:n}=this._spanLimits;return n!==void 0&&Object.keys(this.attributes).length>=n&&!Object.prototype.hasOwnProperty.call(this.attributes,t)?(this._droppedAttributesCount++,this):(this.attributes[t]=this._truncateToSize(e),this)}setAttributes(t){for(let[e,n]of Object.entries(t))this.setAttribute(e,n);return this}addEvent(t,e,n){if(this._isSpanEnded())return this;let{eventCountLimit:o}=this._spanLimits;if(o===0)return c.diag.warn("No events allowed."),this._droppedEventsCount++,this;o!==void 0&&this.events.length>=o&&(this._droppedEventsCount===0&&c.diag.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),(0,N.isTimeInput)(e)&&((0,N.isTimeInput)(n)||(n=e),e=void 0);let s=(0,N.sanitizeAttributes)(e);return this.events.push({name:t,attributes:s,time:this._getTime(n),droppedAttributesCount:0}),this}addLink(t){return this.links.push(t),this}addLinks(t){return this.links.push(...t),this}setStatus(t){return this._isSpanEnded()?this:(this.status={...t},this.status.message!=null&&typeof t.message!="string"&&(c.diag.warn(`Dropping invalid status.message of type '${typeof t.message}', expected 'string'`),delete this.status.message),this)}updateName(t){return this._isSpanEnded()?this:(this.name=t,this)}end(t){if(this._isSpanEnded()){c.diag.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(t),this._duration=(0,N.hrTimeDuration)(this.startTime,this.endTime),this._duration[0]<0&&(c.diag.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&&c.diag.warn(`Dropped ${this._droppedEventsCount} events because eventCountLimit reached`),this._spanProcessor.onEnd(this)}_getTime(t){if(typeof t=="number"&&t<=N.otperformance.now())return(0,N.hrTime)(t+this._performanceOffset);if(typeof t=="number")return(0,N.millisToHrTime)(t);if(t instanceof Date)return(0,N.millisToHrTime)(t.getTime());if((0,N.isTimeInputHrTime)(t))return t;if(this._startTimeProvided)return(0,N.millisToHrTime)(Date.now());let e=N.otperformance.now()-this._performanceStartTime;return(0,N.addHrTimes)(this.startTime,(0,N.millisToHrTime)(e))}isRecording(){return this._ended===!1}recordException(t,e){let n={};typeof t=="string"?n[pe]=t:t&&(t.code?n[le]=t.code.toString():t.name&&(n[le]=t.name),t.message&&(n[pe]=t.message),t.stack&&(n[Yn]=t.stack)),n[le]||n[pe]?this.addEvent(vS,n,e):c.diag.warn(`Failed to record an exception ${t}`)}get duration(){return this._duration}get ended(){return this._ended}get droppedAttributesCount(){return this._droppedAttributesCount}get droppedEventsCount(){return this._droppedEventsCount}get droppedLinksCount(){return this._droppedLinksCount}_isSpanEnded(){if(this._ended){let t=new Error(`Operation attempted on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`);c.diag.warn(`Cannot execute the operation on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`,t)}return this._ended}_truncateToLimitUtil(t,e){return t.length<=e?t:t.substring(0,e)}_truncateToSize(t){let e=this._attributeValueLengthLimit;return e<=0?(c.diag.warn(`Attribute value limit must be positive, got ${e}`),t):typeof t=="string"?this._truncateToLimitUtil(t,e):Array.isArray(t)?t.map(n=>typeof n=="string"?this._truncateToLimitUtil(n,e):n):t}};d();var j=O(P());var lt;(function(r){r[r.NOT_RECORD=0]="NOT_RECORD",r[r.RECORD=1]="RECORD",r[r.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(lt||(lt={}));var k=class{shouldSample(){return{decision:lt.NOT_RECORD}}toString(){return"AlwaysOffSampler"}};var B=class{shouldSample(){return{decision:lt.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}};d();var BS=O(P());var K=class{_root;_remoteParentSampled;_remoteParentNotSampled;_localParentSampled;_localParentNotSampled;constructor(t){this._root=t.root,this._root||((0,BS.globalErrorHandler)(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new B),this._remoteParentSampled=t.remoteParentSampled??new B,this._remoteParentNotSampled=t.remoteParentNotSampled??new k,this._localParentSampled=t.localParentSampled??new B,this._localParentNotSampled=t.localParentNotSampled??new k}shouldSample(t,e,n,o,s,i){let a=c.trace.getSpanContext(t);return!a||!(0,c.isSpanContextValid)(a)?this._root.shouldSample(t,e,n,o,s,i):a.isRemote?a.traceFlags&c.TraceFlags.SAMPLED?this._remoteParentSampled.shouldSample(t,e,n,o,s,i):this._remoteParentNotSampled.shouldSample(t,e,n,o,s,i):a.traceFlags&c.TraceFlags.SAMPLED?this._localParentSampled.shouldSample(t,e,n,o,s,i):this._localParentNotSampled.shouldSample(t,e,n,o,s,i)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}};d();var At=class{_ratio;_upperBound;constructor(t=0){this._ratio=t,this._ratio=this._normalize(t),this._upperBound=Math.floor(this._ratio*4294967295)}shouldSample(t,e){return{decision:(0,c.isValidTraceId)(e)&&this._accumulate(e)<this._upperBound?lt.RECORD_AND_SAMPLED:lt.NOT_RECORD}}toString(){return`TraceIdRatioBased{${this._ratio}}`}_normalize(t){return typeof t!="number"||isNaN(t)?0:t>=1?1:t<=0?0:t}_accumulate(t){let e=0;for(let n=0;n<t.length/8;n++){let o=n*8,s=parseInt(t.slice(o,o+8),16);e=(e^s)>>>0}return e}};var at;(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"})(at||(at={}));var Mr=1;function Pr(){return{sampler:ao(),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:(0,j.getNumberFromEnv)("OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT")??1/0,attributeCountLimit:(0,j.getNumberFromEnv)("OTEL_ATTRIBUTE_COUNT_LIMIT")??128},spanLimits:{attributeValueLengthLimit:(0,j.getNumberFromEnv)("OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT")??1/0,attributeCountLimit:(0,j.getNumberFromEnv)("OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT")??128,linkCountLimit:(0,j.getNumberFromEnv)("OTEL_SPAN_LINK_COUNT_LIMIT")??128,eventCountLimit:(0,j.getNumberFromEnv)("OTEL_SPAN_EVENT_COUNT_LIMIT")??128,attributePerEventCountLimit:(0,j.getNumberFromEnv)("OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT")??128,attributePerLinkCountLimit:(0,j.getNumberFromEnv)("OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT")??128}}}function ao(){let r=(0,j.getStringFromEnv)("OTEL_TRACES_SAMPLER")??at.ParentBasedAlwaysOn;switch(r){case at.AlwaysOn:return new B;case at.AlwaysOff:return new k;case at.ParentBasedAlwaysOn:return new K({root:new B});case at.ParentBasedAlwaysOff:return new K({root:new k});case at.TraceIdRatio:return new At(wS());case at.ParentBasedTraceIdRatio:return new K({root:new At(wS())});default:return c.diag.error(`OTEL_TRACES_SAMPLER value "${r}" invalid, defaulting to "${at.ParentBasedAlwaysOn}".`),new K({root:new B})}}function wS(){let r=(0,j.getNumberFromEnv)("OTEL_TRACES_SAMPLER_ARG");return r==null?(c.diag.error(`OTEL_TRACES_SAMPLER_ARG is blank, defaulting to ${Mr}.`),Mr):r<0||r>1?(c.diag.error(`OTEL_TRACES_SAMPLER_ARG=${r} was given, but it is out of range ([0..1]), defaulting to ${Mr}.`),Mr):r}var Oe=O(P()),rI=128,nI=1/0;function GS(r){let t={sampler:ao()},e=Pr(),n=Object.assign({},e,t,r);return n.generalLimits=Object.assign({},e.generalLimits,r.generalLimits||{}),n.spanLimits=Object.assign({},e.spanLimits,r.spanLimits||{}),n}function HS(r){let t=Object.assign({},r.spanLimits);return t.attributeCountLimit=r.spanLimits?.attributeCountLimit??r.generalLimits?.attributeCountLimit??(0,Oe.getNumberFromEnv)("OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT")??(0,Oe.getNumberFromEnv)("OTEL_ATTRIBUTE_COUNT_LIMIT")??rI,t.attributeValueLengthLimit=r.spanLimits?.attributeValueLengthLimit??r.generalLimits?.attributeValueLengthLimit??(0,Oe.getNumberFromEnv)("OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT")??(0,Oe.getNumberFromEnv)("OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT")??nI,Object.assign({},r,{spanLimits:t})}d();var v=O(P()),Cr=class{_exporter;_maxExportBatchSize;_maxQueueSize;_scheduledDelayMillis;_exportTimeoutMillis;_isExporting=!1;_finishedSpans=[];_timer;_shutdownOnce;_droppedSpansCount=0;constructor(t,e){this._exporter=t,this._maxExportBatchSize=typeof e?.maxExportBatchSize=="number"?e.maxExportBatchSize:(0,v.getNumberFromEnv)("OTEL_BSP_MAX_EXPORT_BATCH_SIZE")??512,this._maxQueueSize=typeof e?.maxQueueSize=="number"?e.maxQueueSize:(0,v.getNumberFromEnv)("OTEL_BSP_MAX_QUEUE_SIZE")??2048,this._scheduledDelayMillis=typeof e?.scheduledDelayMillis=="number"?e.scheduledDelayMillis:(0,v.getNumberFromEnv)("OTEL_BSP_SCHEDULE_DELAY")??5e3,this._exportTimeoutMillis=typeof e?.exportTimeoutMillis=="number"?e.exportTimeoutMillis:(0,v.getNumberFromEnv)("OTEL_BSP_EXPORT_TIMEOUT")??3e4,this._shutdownOnce=new v.BindOnceFuture(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(c.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(t,e){}onEnd(t){this._shutdownOnce.isCalled||t.spanContext().traceFlags&c.TraceFlags.SAMPLED&&this._addToBuffer(t)}shutdown(){return this._shutdownOnce.call()}_shutdown(){return Promise.resolve().then(()=>this.onShutdown()).then(()=>this._flushAll()).then(()=>this._exporter.shutdown())}_addToBuffer(t){if(this._finishedSpans.length>=this._maxQueueSize){this._droppedSpansCount===0&&c.diag.debug("maxQueueSize reached, dropping spans"),this._droppedSpansCount++;return}this._droppedSpansCount>0&&(c.diag.warn(`Dropped ${this._droppedSpansCount} spans because maxQueueSize reached`),this._droppedSpansCount=0),this._finishedSpans.push(t),this._maybeStartTimer()}_flushAll(){return new Promise((t,e)=>{let n=[],o=Math.ceil(this._finishedSpans.length/this._maxExportBatchSize);for(let s=0,i=o;s<i;s++)n.push(this._flushOneBatch());Promise.all(n).then(()=>{t()}).catch(e)})}_flushOneBatch(){return this._clearTimer(),this._finishedSpans.length===0?Promise.resolve():new Promise((t,e)=>{let n=setTimeout(()=>{e(new Error("Timeout"))},this._exportTimeoutMillis);c.context.with((0,v.suppressTracing)(c.context.active()),()=>{let o;this._finishedSpans.length<=this._maxExportBatchSize?(o=this._finishedSpans,this._finishedSpans=[]):o=this._finishedSpans.splice(0,this._maxExportBatchSize);let s=()=>this._exporter.export(o,a=>{clearTimeout(n),a.code===v.ExportResultCode.SUCCESS?t():e(a.error??new Error("BatchSpanProcessor: span export failed"))}),i=null;for(let a=0,_=o.length;a<_;a++){let E=o[a];E.resource.asyncAttributesPending&&E.resource.waitForAsyncAttributes&&(i??=[],i.push(E.resource.waitForAsyncAttributes()))}i===null?s():Promise.all(i).then(s,a=>{(0,v.globalErrorHandler)(a),e(a)})})})}_maybeStartTimer(){if(this._isExporting)return;let t=()=>{this._isExporting=!0,this._flushOneBatch().finally(()=>{this._isExporting=!1,this._finishedSpans.length>0&&(this._clearTimer(),this._maybeStartTimer())}).catch(e=>{this._isExporting=!1,(0,v.globalErrorHandler)(e)})};if(this._finishedSpans.length>=this._maxExportBatchSize)return t();this._timer===void 0&&(this._timer=setTimeout(()=>t(),this._scheduledDelayMillis),(0,v.unrefTimer)(this._timer))}_clearTimer(){this._timer!==void 0&&(clearTimeout(this._timer),this._timer=void 0)}};var co=O(P()),dt=class extends Cr{_visibilityChangeListener;_pageHideListener;constructor(t,e){super(t,e),this.onInit(e)}onInit(t){t?.disableAutoFlushOnDocumentHide!==!0&&typeof document<"u"&&(this._visibilityChangeListener=()=>{document.visibilityState==="hidden"&&this.forceFlush().catch(e=>{(0,co.globalErrorHandler)(e)})},this._pageHideListener=()=>{this.forceFlush().catch(e=>{(0,co.globalErrorHandler)(e)})},document.addEventListener("visibilitychange",this._visibilityChangeListener),document.addEventListener("pagehide",this._pageHideListener))}onShutdown(){typeof document<"u"&&(this._visibilityChangeListener&&document.removeEventListener("visibilitychange",this._visibilityChangeListener),this._pageHideListener&&document.removeEventListener("pagehide",this._pageHideListener))}};var Rt=class{generateTraceId=FS(16);generateSpanId=FS(8)},Lr=Array(32);function FS(r){return function(){for(let e=0;e<r*2;e++)Lr[e]=Math.floor(Math.random()*16)+48,Lr[e]>=58&&(Lr[e]+=39);return String.fromCharCode.apply(null,Lr.slice(0,r*2))}}var Ir=class{_sampler;_generalLimits;_spanLimits;_idGenerator;instrumentationScope;_resource;_spanProcessor;constructor(t,e,n,o){let s=GS(e);this._sampler=s.sampler,this._generalLimits=s.generalLimits,this._spanLimits=s.spanLimits,this._idGenerator=e.idGenerator||new Rt,this._resource=n,this._spanProcessor=o,this.instrumentationScope=t}startSpan(t,e={},n=c.context.active()){e.root&&(n=c.trace.deleteSpan(n));let o=c.trace.getSpan(n);if((0,jt.isTracingSuppressed)(n))return c.diag.debug("Instrumentation suppressed, returning Noop Span"),c.trace.wrapSpanContext(c.INVALID_SPAN_CONTEXT);let s=o?.spanContext(),i=this._idGenerator.generateSpanId(),a,_,E;!s||!c.trace.isSpanContextValid(s)?_=this._idGenerator.generateTraceId():(_=s.traceId,E=s.traceState,a=s);let u=e.kind??c.SpanKind.INTERNAL,p=(e.links??[]).map(Z=>({context:Z.context,attributes:(0,jt.sanitizeAttributes)(Z.attributes)})),A=(0,jt.sanitizeAttributes)(e.attributes),h=this._sampler.shouldSample(n,_,t,u,A,p);E=h.traceState??E;let R=h.decision===c.SamplingDecision.RECORD_AND_SAMPLED?c.TraceFlags.SAMPLED:c.TraceFlags.NONE,I={traceId:_,spanId:i,traceFlags:R,traceState:E};if(h.decision===c.SamplingDecision.NOT_RECORD)return c.diag.debug("Recording is off, propagating context in a non-recording span"),c.trace.wrapSpanContext(I);let x=(0,jt.sanitizeAttributes)(Object.assign(A,h.attributes));return new Nr({resource:this._resource,scope:this.instrumentationScope,context:n,spanContext:I,name:t,kind:u,links:p,parentSpanContext:a,attributes:x,startTime:e.startTime,spanProcessor:this._spanProcessor,spanLimits:this._spanLimits})}startActiveSpan(t,e,n,o){let s,i,a;if(arguments.length<2)return;arguments.length===2?a=e:arguments.length===3?(s=e,a=n):(s=e,i=n,a=o);let _=i??c.context.active(),E=this.startSpan(t,s,_),u=c.trace.setSpan(_,E);return c.context.with(u,a,void 0,E)}getGeneralLimits(){return this._generalLimits}getSpanLimits(){return this._spanLimits}};var YS=O(P()),xr=class{_spanProcessors;constructor(t){this._spanProcessors=t}forceFlush(){let t=[];for(let e of this._spanProcessors)t.push(e.forceFlush());return new Promise(e=>{Promise.all(t).then(()=>{e()}).catch(n=>{(0,YS.globalErrorHandler)(n||new Error("MultiSpanProcessor: forceFlush failed")),e()})})}onStart(t,e){for(let n of this._spanProcessors)n.onStart(t,e)}onEnd(t){for(let e of this._spanProcessors)e.onEnd(t)}shutdown(){let t=[];for(let e of this._spanProcessors)t.push(e.shutdown());return new Promise((e,n)=>{Promise.all(t).then(()=>{e()},n)})}};var bt;(function(r){r[r.resolved=0]="resolved",r[r.timeout=1]="timeout",r[r.error=2]="error",r[r.unresolved=3]="unresolved"})(bt||(bt={}));var ge=class{_config;_tracers=new Map;_resource;_activeSpanProcessor;constructor(t={}){let e=(0,kS.merge)({},Pr(),HS(t));this._resource=e.resource??Ut(),this._config=Object.assign({},e,{resource:this._resource});let n=[];t.spanProcessors?.length&&n.push(...t.spanProcessors),this._activeSpanProcessor=new xr(n)}getTracer(t,e,n){let o=`${t}@${e||""}:${n?.schemaUrl||""}`;return this._tracers.has(o)||this._tracers.set(o,new Ir({name:t,version:e,schemaUrl:n?.schemaUrl},this._config,this._resource,this._activeSpanProcessor)),this._tracers.get(o)}forceFlush(){let t=this._config.forceFlushTimeoutMillis,e=this._activeSpanProcessor._spanProcessors.map(n=>new Promise(o=>{let s,i=setTimeout(()=>{o(new Error(`Span processor did not completed within timeout period of ${t} ms`)),s=bt.timeout},t);n.forceFlush().then(()=>{clearTimeout(i),s!==bt.timeout&&(s=bt.resolved,o(s))}).catch(a=>{clearTimeout(i),s=bt.error,o(a)})}));return new Promise((n,o)=>{Promise.all(e).then(s=>{let i=s.filter(a=>a!==bt.resolved);i.length>0?o(i):n()}).catch(s=>o([s]))})}shutdown(){return this._activeSpanProcessor.shutdown()}};d();var W={};tt(W,tb);import*as tb from"@opentelemetry/api-logs";d();function KS(r,t,e,n){for(let o=0,s=r.length;o<s;o++){let i=r[o];t&&i.setTracerProvider(t),e&&i.setMeterProvider(e),n&&i.setLoggerProvider&&i.setLoggerProvider(n),i.getConfig().enabled||i.enable()}}function jS(r){r.forEach(t=>t.disable())}function _o(r){let t=r.tracerProvider||c.trace.getTracerProvider(),e=r.meterProvider||c.metrics.getMeterProvider(),n=r.loggerProvider||W.logs.getLoggerProvider(),o=r.instrumentations?.flat()??[];return KS(o,t,e,n),()=>{jS(o)}}d();var vr=O(P());d();d();var Wt=O(P()),Dr=class{hrTime;hrTimeObserved;spanContext;resource;instrumentationScope;attributes={};_severityText;_severityNumber;_body;_eventName;totalAttributesCount=0;_isReadonly=!1;_logRecordLimits;set severityText(t){this._isLogRecordReadonly()||(this._severityText=t)}get severityText(){return this._severityText}set severityNumber(t){this._isLogRecordReadonly()||(this._severityNumber=t)}get severityNumber(){return this._severityNumber}set body(t){this._isLogRecordReadonly()||(this._body=t)}get body(){return this._body}get eventName(){return this._eventName}set eventName(t){this._isLogRecordReadonly()||(this._eventName=t)}get droppedAttributesCount(){return this.totalAttributesCount-Object.keys(this.attributes).length}constructor(t,e,n){let{timestamp:o,observedTimestamp:s,eventName:i,severityNumber:a,severityText:_,body:E,attributes:u={},context:p}=n,A=Date.now();if(this.hrTime=(0,Wt.timeInputToHrTime)(o??A),this.hrTimeObserved=(0,Wt.timeInputToHrTime)(s??A),p){let h=c.trace.getSpanContext(p);h&&c.isSpanContextValid(h)&&(this.spanContext=h)}this.severityNumber=a,this.severityText=_,this.body=E,this.resource=t.resource,this.instrumentationScope=e,this._logRecordLimits=t.logRecordLimits,this._eventName=i,this.setAttributes(u)}setAttribute(t,e){return this._isLogRecordReadonly()?this:e===null?this:t.length===0?(c.diag.warn(`Invalid attribute key: ${t}`),this):!(0,Wt.isAttributeValue)(e)&&!(typeof e=="object"&&!Array.isArray(e)&&Object.keys(e).length>0)?(c.diag.warn(`Invalid attribute value set for key: ${t}`),this):(this.totalAttributesCount+=1,Object.keys(this.attributes).length>=this._logRecordLimits.attributeCountLimit&&!Object.prototype.hasOwnProperty.call(this.attributes,t)?(this.droppedAttributesCount===1&&c.diag.warn("Dropping extra attributes."),this):((0,Wt.isAttributeValue)(e)?this.attributes[t]=this._truncateToSize(e):this.attributes[t]=e,this))}setAttributes(t){for(let[e,n]of Object.entries(t))this.setAttribute(e,n);return this}setBody(t){return this.body=t,this}setEventName(t){return this.eventName=t,this}setSeverityNumber(t){return this.severityNumber=t,this}setSeverityText(t){return this.severityText=t,this}_makeReadonly(){this._isReadonly=!0}_truncateToSize(t){let e=this._logRecordLimits.attributeValueLengthLimit;return e<=0?(c.diag.warn(`Attribute value limit must be positive, got ${e}`),t):typeof t=="string"?this._truncateToLimitUtil(t,e):Array.isArray(t)?t.map(n=>typeof n=="string"?this._truncateToLimitUtil(n,e):n):t}_truncateToLimitUtil(t,e){return t.length<=e?t:t.substring(0,e)}_isLogRecordReadonly(){return this._isReadonly&&c.diag.warn("Can not execute the operation on emitted log record"),this._isReadonly}};var Ur=class{instrumentationScope;_sharedState;constructor(t,e){this.instrumentationScope=t,this._sharedState=e}emit(t){let e=t.context||c.context.active(),n=new Dr(this._sharedState,this.instrumentationScope,{context:e,...t});this._sharedState.activeProcessor.onEmit(n,e),n._makeReadonly()}};var yt=O(P());function WS(){return{forceFlushTimeoutMillis:3e4,logRecordLimits:{attributeValueLengthLimit:(0,yt.getNumberFromEnv)("OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT")??1/0,attributeCountLimit:(0,yt.getNumberFromEnv)("OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT")??128},includeTraceContext:!0}}function qS(r){return{attributeCountLimit:r.attributeCountLimit??(0,yt.getNumberFromEnv)("OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT")??(0,yt.getNumberFromEnv)("OTEL_ATTRIBUTE_COUNT_LIMIT")??128,attributeValueLengthLimit:r.attributeValueLengthLimit??(0,yt.getNumberFromEnv)("OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT")??(0,yt.getNumberFromEnv)("OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT")??1/0}}var br=class{forceFlush(){return Promise.resolve()}onEmit(t,e){}shutdown(){return Promise.resolve()}};var $S=O(P()),yr=class{processors;forceFlushTimeoutMillis;constructor(t,e){this.processors=t,this.forceFlushTimeoutMillis=e}async forceFlush(){let t=this.forceFlushTimeoutMillis;await Promise.all(this.processors.map(e=>(0,$S.callWithTimeout)(e.forceFlush(),t)))}onEmit(t,e){this.processors.forEach(n=>n.onEmit(t,e))}async shutdown(){await Promise.all(this.processors.map(t=>t.shutdown()))}};var Vr=class{resource;forceFlushTimeoutMillis;logRecordLimits;processors;loggers=new Map;activeProcessor;registeredLogRecordProcessors=[];constructor(t,e,n,o){this.resource=t,this.forceFlushTimeoutMillis=e,this.logRecordLimits=n,this.processors=o,o.length>0?(this.registeredLogRecordProcessors=o,this.activeProcessor=new yr(this.registeredLogRecordProcessors,this.forceFlushTimeoutMillis)):this.activeProcessor=new br}};var oI="unknown",Ne=class{_shutdownOnce;_sharedState;constructor(t={}){let e=(0,vr.merge)({},WS(),t),n=t.resource??Ut();this._sharedState=new Vr(n,e.forceFlushTimeoutMillis,qS(e.logRecordLimits),t?.processors??[]),this._shutdownOnce=new vr.BindOnceFuture(this._shutdown,this)}getLogger(t,e,n){if(this._shutdownOnce.isCalled)return c.diag.warn("A shutdown LoggerProvider cannot provide a Logger"),W.NOOP_LOGGER;t||c.diag.warn("Logger requested without instrumentation scope name.");let o=t||oI,s=`${o}@${e||""}:${n?.schemaUrl||""}`;return this._sharedState.loggers.has(s)||this._sharedState.loggers.set(s,new Ur({name:o,version:e,schemaUrl:n?.schemaUrl},this._sharedState)),this._sharedState.loggers.get(s)}forceFlush(){return this._shutdownOnce.isCalled?(c.diag.warn("invalid attempt to force flush after LoggerProvider shutdown"),this._shutdownOnce.promise):this._sharedState.activeProcessor.forceFlush()}shutdown(){return this._shutdownOnce.isCalled?(c.diag.warn("shutdown may only be called once per LoggerProvider"),this._shutdownOnce.promise):this._shutdownOnce.call()}_shutdown(){return this._sharedState.activeProcessor.shutdown()}};var Br;(function(r){r[r.DELTA=0]="DELTA",r[r.CUMULATIVE=1]="CUMULATIVE"})(Br||(Br={}));var f;(function(r){r.COUNTER="COUNTER",r.GAUGE="GAUGE",r.HISTOGRAM="HISTOGRAM",r.UP_DOWN_COUNTER="UP_DOWN_COUNTER",r.OBSERVABLE_COUNTER="OBSERVABLE_COUNTER",r.OBSERVABLE_GAUGE="OBSERVABLE_GAUGE",r.OBSERVABLE_UP_DOWN_COUNTER="OBSERVABLE_UP_DOWN_COUNTER"})(f||(f={}));var ct;(function(r){r[r.HISTOGRAM=0]="HISTOGRAM",r[r.EXPONENTIAL_HISTOGRAM=1]="EXPONENTIAL_HISTOGRAM",r[r.GAUGE=2]="GAUGE",r[r.SUM=3]="SUM"})(ct||(ct={}));function XS(r){return r!=null}function wr(r){let t=Object.keys(r);return t.length===0?"":(t=t.sort(),JSON.stringify(t.map(e=>[e,r[e]])))}function zS(r){return`${r.name}:${r.version??""}:${r.schemaUrl??""}`}var Eo=class r extends Error{constructor(t){super(t),Object.setPrototypeOf(this,r.prototype)}};function uo(r,t){let e,n=new Promise(function(s,i){e=setTimeout(function(){i(new Eo("Operation timed out."))},t)});return Promise.race([r,n]).then(o=>(clearTimeout(e),o),o=>{throw clearTimeout(e),o})}async function QS(r){return Promise.all(r.map(async t=>{try{return{status:"fulfilled",value:await t}}catch(e){return{status:"rejected",reason:e}}}))}function JS(r){return r.status==="rejected"}function ZS(r,t){if(r.size!==t.size)return!1;for(let e of r)if(!t.has(e))return!1;return!0}function tp(r,t){let e=0,n=r.length-1,o=r.length;for(;n>=e;){let s=e+Math.trunc((n-e)/2);r[s]<t?e=s+1:(o=s,n=s-1)}return o}function ep(r,t){return r.toLowerCase()===t.toLowerCase()}d();var q;(function(r){r[r.DROP=0]="DROP",r[r.SUM=1]="SUM",r[r.LAST_VALUE=2]="LAST_VALUE",r[r.HISTOGRAM=3]="HISTOGRAM",r[r.EXPONENTIAL_HISTOGRAM=4]="EXPONENTIAL_HISTOGRAM"})(q||(q={}));var Me=class{kind=q.DROP;createAccumulation(){}merge(t,e){}diff(t,e){}toMetricData(t,e,n,o){}};function sI(r){let t=r.map(()=>0);return t.push(0),{buckets:{boundaries:r,counts:t},sum:0,count:0,hasMinMax:!1,min:1/0,max:-1/0}}var qt=class{startTime;_boundaries;_recordMinMax;_current;constructor(t,e,n=!0,o=sI(e)){this.startTime=t,this._boundaries=e,this._recordMinMax=n,this._current=o}record(t){if(Number.isNaN(t))return;this._current.count+=1,this._current.sum+=t,this._recordMinMax&&(this._current.min=Math.min(t,this._current.min),this._current.max=Math.max(t,this._current.max),this._current.hasMinMax=!0);let e=tp(this._boundaries,t);this._current.buckets.counts[e]+=1}setStartTime(t){this.startTime=t}toPointValue(){return this._current}},$t=class{_boundaries;_recordMinMax;kind=q.HISTOGRAM;constructor(t,e){this._boundaries=t,this._recordMinMax=e}createAccumulation(t){return new qt(t,this._boundaries,this._recordMinMax)}merge(t,e){let n=t.toPointValue(),o=e.toPointValue(),s=n.buckets.counts,i=o.buckets.counts,a=new Array(s.length);for(let u=0;u<s.length;u++)a[u]=s[u]+i[u];let _=1/0,E=-1/0;return this._recordMinMax&&(n.hasMinMax&&o.hasMinMax?(_=Math.min(n.min,o.min),E=Math.max(n.max,o.max)):n.hasMinMax?(_=n.min,E=n.max):o.hasMinMax&&(_=o.min,E=o.max)),new qt(t.startTime,n.buckets.boundaries,this._recordMinMax,{buckets:{boundaries:n.buckets.boundaries,counts:a},count:n.count+o.count,sum:n.sum+o.sum,hasMinMax:this._recordMinMax&&(n.hasMinMax||o.hasMinMax),min:_,max:E})}diff(t,e){let n=t.toPointValue(),o=e.toPointValue(),s=n.buckets.counts,i=o.buckets.counts,a=new Array(s.length);for(let _=0;_<s.length;_++)a[_]=i[_]-s[_];return new qt(e.startTime,n.buckets.boundaries,this._recordMinMax,{buckets:{boundaries:n.buckets.boundaries,counts:a},count:o.count-n.count,sum:o.sum-n.sum,hasMinMax:!1,min:1/0,max:-1/0})}toMetricData(t,e,n,o){return{descriptor:t,aggregationTemporality:e,dataPointType:ct.HISTOGRAM,dataPoints:n.map(([s,i])=>{let a=i.toPointValue(),_=t.type===f.GAUGE||t.type===f.UP_DOWN_COUNTER||t.type===f.OBSERVABLE_GAUGE||t.type===f.OBSERVABLE_UP_DOWN_COUNTER;return{attributes:s,startTime:i.startTime,endTime:o,value:{min:a.hasMinMax?a.min:void 0,max:a.hasMinMax?a.max:void 0,sum:_?void 0:a.sum,buckets:a.buckets,count:a.count}}})}}};d();var Pe=class r{backing;indexBase;indexStart;indexEnd;constructor(t=new To,e=0,n=0,o=0){this.backing=t,this.indexBase=e,this.indexStart=n,this.indexEnd=o}get offset(){return this.indexStart}get length(){return this.backing.length===0||this.indexEnd===this.indexStart&&this.at(0)===0?0:this.indexEnd-this.indexStart+1}counts(){return Array.from({length:this.length},(t,e)=>this.at(e))}at(t){let e=this.indexBase-this.indexStart;return t<e&&(t+=this.backing.length),t-=e,this.backing.countAt(t)}incrementBucket(t,e){this.backing.increment(t,e)}decrementBucket(t,e){this.backing.decrement(t,e)}trim(){for(let t=0;t<this.length;t++)if(this.at(t)!==0){this.indexStart+=t;break}else if(t===this.length-1){this.indexStart=this.indexEnd=this.indexBase=0;return}for(let t=this.length-1;t>=0;t--)if(this.at(t)!==0){this.indexEnd-=this.length-t-1;break}this._rotate()}downscale(t){this._rotate();let e=1+this.indexEnd-this.indexStart,n=1<<t,o=0,s=0;for(let i=this.indexStart;i<=this.indexEnd;){let a=i%n;a<0&&(a+=n);for(let _=a;_<n&&o<e;_++)this._relocateBucket(s,o),o++,i++;s++}this.indexStart>>=t,this.indexEnd>>=t,this.indexBase=this.indexStart}clone(){return new r(this.backing.clone(),this.indexBase,this.indexStart,this.indexEnd)}_rotate(){let t=this.indexBase-this.indexStart;t!==0&&(t>0?(this.backing.reverse(0,this.backing.length),this.backing.reverse(0,t),this.backing.reverse(t,this.backing.length)):(this.backing.reverse(0,this.backing.length),this.backing.reverse(0,this.backing.length+t)),this.indexBase=this.indexStart)}_relocateBucket(t,e){t!==e&&this.incrementBucket(t,this.backing.emptyBucket(e))}},To=class r{_counts;constructor(t=[0]){this._counts=t}get length(){return this._counts.length}countAt(t){return this._counts[t]}growTo(t,e,n){let o=new Array(t).fill(0);o.splice(n,this._counts.length-e,...this._counts.slice(e)),o.splice(0,e,...this._counts.slice(0,e)),this._counts=o}reverse(t,e){let n=Math.floor((t+e)/2)-t;for(let o=0;o<n;o++){let s=this._counts[t+o];this._counts[t+o]=this._counts[e-o-1],this._counts[e-o-1]=s}}emptyBucket(t){let e=this._counts[t];return this._counts[t]=0,e}increment(t,e){this._counts[t]+=e}decrement(t,e){this._counts[t]>=e?this._counts[t]-=e:this._counts[t]=0}clone(){return new r([...this._counts])}};var Ce=Math.pow(2,-1022);function Gr(r){let t=new DataView(new ArrayBuffer(8));return t.setFloat64(0,r),((t.getUint32(0)&2146435072)>>20)-1023}function Hr(r){let t=new DataView(new ArrayBuffer(8));t.setFloat64(0,r);let e=t.getUint32(0),n=t.getUint32(4);return(e&1048575)*Math.pow(2,32)+n}function Le(r,t){return r===0||r===Number.POSITIVE_INFINITY||r===Number.NEGATIVE_INFINITY||Number.isNaN(r)?r:r*Math.pow(2,t)}function np(r){return r--,r|=r>>1,r|=r>>2,r|=r>>4,r|=r>>8,r|=r>>16,r++,r}var _t=class extends Error{};var Fr=class{_shift;constructor(t){this._shift=-t}mapToIndex(t){if(t<Ce)return this._minNormalLowerBoundaryIndex();let e=Gr(t),n=this._rightShift(Hr(t)-1,52);return e+n>>this._shift}lowerBoundary(t){let e=this._minNormalLowerBoundaryIndex();if(t<e)throw new _t(`underflow: ${t} is < minimum lower boundary: ${e}`);let n=this._maxNormalLowerBoundaryIndex();if(t>n)throw new _t(`overflow: ${t} is > maximum lower boundary: ${n}`);return Le(1,t<<this._shift)}get scale(){return this._shift===0?0:-this._shift}_minNormalLowerBoundaryIndex(){let t=-1022>>this._shift;return this._shift<2&&t--,t}_maxNormalLowerBoundaryIndex(){return 1023>>this._shift}_rightShift(t,e){return Math.floor(t*Math.pow(2,-e))}};var Yr=class{_scale;_scaleFactor;_inverseFactor;constructor(t){this._scale=t,this._scaleFactor=Le(Math.LOG2E,t),this._inverseFactor=Le(Math.LN2,-t)}mapToIndex(t){if(t<=Ce)return this._minNormalLowerBoundaryIndex()-1;if(Hr(t)===0)return(Gr(t)<<this._scale)-1;let e=Math.floor(Math.log(t)*this._scaleFactor),n=this._maxNormalLowerBoundaryIndex();return e>=n?n:e}lowerBoundary(t){let e=this._maxNormalLowerBoundaryIndex();if(t>=e){if(t===e)return 2*Math.exp((t-(1<<this._scale))/this._scaleFactor);throw new _t(`overflow: ${t} is > maximum lower boundary: ${e}`)}let n=this._minNormalLowerBoundaryIndex();if(t<=n){if(t===n)return Ce;if(t===n-1)return Math.exp((t+(1<<this._scale))/this._scaleFactor)/2;throw new _t(`overflow: ${t} is < minimum lower boundary: ${n}`)}return Math.exp(t*this._inverseFactor)}get scale(){return this._scale}_minNormalLowerBoundaryIndex(){return-1022<<this._scale}_maxNormalLowerBoundaryIndex(){return(1024<<this._scale)-1}};var sp=-10,ip=20,aI=Array.from({length:31},(r,t)=>t>10?new Yr(t-10):new Fr(t-10));function lo(r){if(r>ip||r<sp)throw new _t(`expected scale >= ${sp} && <= ${ip}, got: ${r}`);return aI[r+10]}var Xt=class r{low;high;static combine(t,e){return new r(Math.min(t.low,e.low),Math.max(t.high,e.high))}constructor(t,e){this.low=t,this.high=e}},cI=20,_I=160,Ao=2,kr=class r{startTime;_maxSize;_recordMinMax;_sum;_count;_zeroCount;_min;_max;_positive;_negative;_mapping;constructor(t,e=_I,n=!0,o=0,s=0,i=0,a=Number.POSITIVE_INFINITY,_=Number.NEGATIVE_INFINITY,E=new Pe,u=new Pe,p=lo(cI)){this.startTime=t,this._maxSize=e,this._recordMinMax=n,this._sum=o,this._count=s,this._zeroCount=i,this._min=a,this._max=_,this._positive=E,this._negative=u,this._mapping=p,this._maxSize<Ao&&(c.diag.warn(`Exponential Histogram Max Size set to ${this._maxSize}, changing to the minimum size of: ${Ao}`),this._maxSize=Ao)}record(t){this.updateByIncrement(t,1)}setStartTime(t){this.startTime=t}toPointValue(){return{hasMinMax:this._recordMinMax,min:this.min,max:this.max,sum:this.sum,positive:{offset:this.positive.offset,bucketCounts:this.positive.counts()},negative:{offset:this.negative.offset,bucketCounts:this.negative.counts()},count:this.count,scale:this.scale,zeroCount:this.zeroCount}}get sum(){return this._sum}get min(){return this._min}get max(){return this._max}get count(){return this._count}get zeroCount(){return this._zeroCount}get scale(){return this._count===this._zeroCount?0:this._mapping.scale}get positive(){return this._positive}get negative(){return this._negative}updateByIncrement(t,e){if(!Number.isNaN(t)){if(t>this._max&&(this._max=t),t<this._min&&(this._min=t),this._count+=e,t===0){this._zeroCount+=e;return}this._sum+=t*e,t>0?this._updateBuckets(this._positive,t,e):this._updateBuckets(this._negative,-t,e)}}merge(t){this._count===0?(this._min=t.min,this._max=t.max):t.count!==0&&(t.min<this.min&&(this._min=t.min),t.max>this.max&&(this._max=t.max)),this.startTime=t.startTime,this._sum+=t.sum,this._count+=t.count,this._zeroCount+=t.zeroCount;let e=this._minScale(t);this._downscale(this.scale-e),this._mergeBuckets(this.positive,t,t.positive,e),this._mergeBuckets(this.negative,t,t.negative,e)}diff(t){this._min=1/0,this._max=-1/0,this._sum-=t.sum,this._count-=t.count,this._zeroCount-=t.zeroCount;let e=this._minScale(t);this._downscale(this.scale-e),this._diffBuckets(this.positive,t,t.positive,e),this._diffBuckets(this.negative,t,t.negative,e)}clone(){return new r(this.startTime,this._maxSize,this._recordMinMax,this._sum,this._count,this._zeroCount,this._min,this._max,this.positive.clone(),this.negative.clone(),this._mapping)}_updateBuckets(t,e,n){let o=this._mapping.mapToIndex(e),s=!1,i=0,a=0;if(t.length===0?(t.indexStart=o,t.indexEnd=t.indexStart,t.indexBase=t.indexStart):o<t.indexStart&&t.indexEnd-o>=this._maxSize?(s=!0,a=o,i=t.indexEnd):o>t.indexEnd&&o-t.indexStart>=this._maxSize&&(s=!0,a=t.indexStart,i=o),s){let _=this._changeScale(i,a);this._downscale(_),o=this._mapping.mapToIndex(e)}this._incrementIndexBy(t,o,n)}_incrementIndexBy(t,e,n){if(n===0)return;if(t.length===0&&(t.indexStart=t.indexEnd=t.indexBase=e),e<t.indexStart){let s=t.indexEnd-e;s>=t.backing.length&&this._grow(t,s+1),t.indexStart=e}else if(e>t.indexEnd){let s=e-t.indexStart;s>=t.backing.length&&this._grow(t,s+1),t.indexEnd=e}let o=e-t.indexBase;o<0&&(o+=t.backing.length),t.incrementBucket(o,n)}_grow(t,e){let n=t.backing.length,o=t.indexBase-t.indexStart,s=n-o,i=np(e);i>this._maxSize&&(i=this._maxSize);let a=i-o;t.backing.growTo(i,s,a)}_changeScale(t,e){let n=0;for(;t-e>=this._maxSize;)t>>=1,e>>=1,n++;return n}_downscale(t){if(t===0)return;if(t<0)throw new Error(`impossible change of scale: ${this.scale}`);let e=this._mapping.scale-t;this._positive.downscale(t),this._negative.downscale(t),this._mapping=lo(e)}_minScale(t){let e=Math.min(this.scale,t.scale),n=Xt.combine(this._highLowAtScale(this.positive,this.scale,e),this._highLowAtScale(t.positive,t.scale,e)),o=Xt.combine(this._highLowAtScale(this.negative,this.scale,e),this._highLowAtScale(t.negative,t.scale,e));return Math.min(e-this._changeScale(n.high,n.low),e-this._changeScale(o.high,o.low))}_highLowAtScale(t,e,n){if(t.length===0)return new Xt(0,-1);let o=e-n;return new Xt(t.indexStart>>o,t.indexEnd>>o)}_mergeBuckets(t,e,n,o){let s=n.offset,i=e.scale-o;for(let a=0;a<n.length;a++)this._incrementIndexBy(t,s+a>>i,n.at(a))}_diffBuckets(t,e,n,o){let s=n.offset,i=e.scale-o;for(let a=0;a<n.length;a++){let E=(s+a>>i)-t.indexBase;E<0&&(E+=t.backing.length),t.decrementBucket(E,n.at(a))}t.trim()}},Ie=class{_maxSize;_recordMinMax;kind=q.EXPONENTIAL_HISTOGRAM;constructor(t,e){this._maxSize=t,this._recordMinMax=e}createAccumulation(t){return new kr(t,this._maxSize,this._recordMinMax)}merge(t,e){let n=e.clone();return n.merge(t),n}diff(t,e){let n=e.clone();return n.diff(t),n}toMetricData(t,e,n,o){return{descriptor:t,aggregationTemporality:e,dataPointType:ct.EXPONENTIAL_HISTOGRAM,dataPoints:n.map(([s,i])=>{let a=i.toPointValue(),_=t.type===f.GAUGE||t.type===f.UP_DOWN_COUNTER||t.type===f.OBSERVABLE_GAUGE||t.type===f.OBSERVABLE_UP_DOWN_COUNTER;return{attributes:s,startTime:i.startTime,endTime:o,value:{min:a.hasMinMax?a.min:void 0,max:a.hasMinMax?a.max:void 0,sum:_?void 0:a.sum,positive:{offset:a.positive.offset,bucketCounts:a.positive.bucketCounts},negative:{offset:a.negative.offset,bucketCounts:a.negative.bucketCounts},count:a.count,scale:a.scale,zeroCount:a.zeroCount}}})}}};var Vt=O(P());var zt=class{startTime;_current;sampleTime;constructor(t,e=0,n=[0,0]){this.startTime=t,this._current=e,this.sampleTime=n}record(t){this._current=t,this.sampleTime=(0,Vt.millisToHrTime)(Date.now())}setStartTime(t){this.startTime=t}toPointValue(){return this._current}},xe=class{kind=q.LAST_VALUE;createAccumulation(t){return new zt(t)}merge(t,e){let n=(0,Vt.hrTimeToMicroseconds)(e.sampleTime)>=(0,Vt.hrTimeToMicroseconds)(t.sampleTime)?e:t;return new zt(t.startTime,n.toPointValue(),n.sampleTime)}diff(t,e){let n=(0,Vt.hrTimeToMicroseconds)(e.sampleTime)>=(0,Vt.hrTimeToMicroseconds)(t.sampleTime)?e:t;return new zt(e.startTime,n.toPointValue(),n.sampleTime)}toMetricData(t,e,n,o){return{descriptor:t,aggregationTemporality:e,dataPointType:ct.GAUGE,dataPoints:n.map(([s,i])=>({attributes:s,startTime:i.startTime,endTime:o,value:i.toPointValue()}))}}};var Ot=class{startTime;monotonic;_current;reset;constructor(t,e,n=0,o=!1){this.startTime=t,this.monotonic=e,this._current=n,this.reset=o}record(t){this.monotonic&&t<0||(this._current+=t)}setStartTime(t){this.startTime=t}toPointValue(){return this._current}},Qt=class{monotonic;kind=q.SUM;constructor(t){this.monotonic=t}createAccumulation(t){return new Ot(t,this.monotonic)}merge(t,e){let n=t.toPointValue(),o=e.toPointValue();return e.reset?new Ot(e.startTime,this.monotonic,o,e.reset):new Ot(t.startTime,this.monotonic,n+o)}diff(t,e){let n=t.toPointValue(),o=e.toPointValue();return this.monotonic&&n>o?new Ot(e.startTime,this.monotonic,o,!0):new Ot(e.startTime,this.monotonic,o-n)}toMetricData(t,e,n,o){return{descriptor:t,aggregationTemporality:e,dataPointType:ct.SUM,dataPoints:n.map(([s,i])=>({attributes:s,startTime:i.startTime,endTime:o,value:i.toPointValue()})),isMonotonic:this.monotonic}}};var mo=class r{static DEFAULT_INSTANCE=new Me;createAggregator(t){return r.DEFAULT_INSTANCE}};var fo=class r{static MONOTONIC_INSTANCE=new Qt(!0);static NON_MONOTONIC_INSTANCE=new Qt(!1);createAggregator(t){switch(t.type){case f.COUNTER:case f.OBSERVABLE_COUNTER:case f.HISTOGRAM:return r.MONOTONIC_INSTANCE;default:return r.NON_MONOTONIC_INSTANCE}}};var ho=class r{static DEFAULT_INSTANCE=new xe;createAggregator(t){return r.DEFAULT_INSTANCE}};var Ro=class r{static DEFAULT_INSTANCE=new $t([0,5,10,25,50,75,100,250,500,750,1e3,2500,5e3,7500,1e4],!0);createAggregator(t){return r.DEFAULT_INSTANCE}};var De=class{_recordMinMax;_boundaries;constructor(t,e=!0){if(this._recordMinMax=e,t==null)throw new Error("ExplicitBucketHistogramAggregation should be created with explicit boundaries, if a single bucket histogram is required, please pass an empty array");t=t.concat(),t=t.sort((s,i)=>s-i);let n=t.lastIndexOf(-1/0),o=t.indexOf(1/0);o===-1&&(o=void 0),this._boundaries=t.slice(n+1,o)}createAggregator(t){return new $t(this._boundaries,this._recordMinMax)}},Ue=class{_maxSize;_recordMinMax;constructor(t=160,e=!0){this._maxSize=t,this._recordMinMax=e}createAggregator(t){return new Ie(this._maxSize,this._recordMinMax)}},Oo=class{_resolve(t){switch(t.type){case f.COUNTER:case f.UP_DOWN_COUNTER:case f.OBSERVABLE_COUNTER:case f.OBSERVABLE_UP_DOWN_COUNTER:return No;case f.GAUGE:case f.OBSERVABLE_GAUGE:return Mo;case f.HISTOGRAM:return t.advice.explicitBucketBoundaries?new De(t.advice.explicitBucketBoundaries):Po}return c.diag.warn(`Unable to recognize instrument type: ${t.type}`),go}createAggregator(t){return this._resolve(t).createAggregator(t)}},go=new mo,No=new fo,Mo=new ho,Po=new Ro,py=new Ue,ap=new Oo;var Et;(function(r){r[r.DEFAULT=0]="DEFAULT",r[r.DROP=1]="DROP",r[r.SUM=2]="SUM",r[r.LAST_VALUE=3]="LAST_VALUE",r[r.EXPLICIT_BUCKET_HISTOGRAM=4]="EXPLICIT_BUCKET_HISTOGRAM",r[r.EXPONENTIAL_HISTOGRAM=5]="EXPONENTIAL_HISTOGRAM"})(Et||(Et={}));function Kr(r){switch(r.type){case Et.DEFAULT:return ap;case Et.DROP:return go;case Et.SUM:return No;case Et.LAST_VALUE:return Mo;case Et.EXPONENTIAL_HISTOGRAM:{let t=r;return new Ue(t.options?.maxSize,t.options?.recordMinMax)}case Et.EXPLICIT_BUCKET_HISTOGRAM:{let t=r;return t.options==null?Po:new De(t.options?.boundaries,t.options?.recordMinMax)}default:throw new Error("Unsupported Aggregation")}}d();var jr=class{_registeredViews=[];addView(t){this._registeredViews.push(t)}findViews(t,e){return this._registeredViews.filter(o=>this._matchInstrument(o.instrumentSelector,t)&&this._matchMeter(o.meterSelector,e))}_matchInstrument(t,e){return(t.getType()===void 0||e.type===t.getType())&&t.getNameFilter().match(e.name)&&t.getUnitFilter().match(e.unit)}_matchMeter(t,e){return t.getNameFilter().match(e.name)&&(e.version===void 0||t.getVersionFilter().match(e.version))&&(e.schemaUrl===void 0||t.getSchemaUrlFilter().match(e.schemaUrl))}};d();function ut(r,t,e){return uI(r)||c.diag.warn(`Invalid metric name: "${r}". The metric name should be a ASCII string with a length no greater than 255 characters.`),{name:r,type:t,description:e?.description??"",unit:e?.unit??"",valueType:e?.valueType??c.ValueType.DOUBLE,advice:e?.advice??{}}}function cp(r,t){return{name:r.name??t.name,description:r.description??t.description,type:t.type,unit:t.unit,valueType:t.valueType,advice:t.advice}}function _p(r,t){return ep(r.name,t.name)&&r.unit===t.unit&&r.type===t.type&&r.valueType===t.valueType}var EI=/^[a-z][a-z0-9_.\-/]{0,254}$/i;function uI(r){return r.match(EI)!=null}d();var Ep=O(P()),Jt=class{_writableMetricStorage;_descriptor;constructor(t,e){this._writableMetricStorage=t,this._descriptor=e}_record(t,e={},n=c.context.active()){if(typeof t!="number"){c.diag.warn(`non-number value provided to metric ${this._descriptor.name}: ${t}`);return}this._descriptor.valueType===c.ValueType.INT&&!Number.isInteger(t)&&(c.diag.warn(`INT value type cannot accept a floating-point value for ${this._descriptor.name}, ignoring the fractional digits.`),t=Math.trunc(t),!Number.isInteger(t))||this._writableMetricStorage.record(t,e,n,(0,Ep.millisToHrTime)(Date.now()))}},Wr=class extends Jt{add(t,e,n){this._record(t,e,n)}},qr=class extends Jt{add(t,e,n){if(t<0){c.diag.warn(`negative value provided to counter ${this._descriptor.name}: ${t}`);return}this._record(t,e,n)}},$r=class extends Jt{record(t,e,n){this._record(t,e,n)}},Xr=class extends Jt{record(t,e,n){if(t<0){c.diag.warn(`negative value provided to histogram ${this._descriptor.name}: ${t}`);return}this._record(t,e,n)}},Zt=class{_observableRegistry;_metricStorages;_descriptor;constructor(t,e,n){this._observableRegistry=n,this._descriptor=t,this._metricStorages=e}addCallback(t){this._observableRegistry.addCallback(t,this)}removeCallback(t){this._observableRegistry.removeCallback(t,this)}},zr=class extends Zt{},Qr=class extends Zt{},Jr=class extends Zt{};function be(r){return r instanceof Zt}var Zr=class{_meterSharedState;constructor(t){this._meterSharedState=t}createGauge(t,e){let n=ut(t,f.GAUGE,e),o=this._meterSharedState.registerMetricStorage(n);return new $r(o,n)}createHistogram(t,e){let n=ut(t,f.HISTOGRAM,e),o=this._meterSharedState.registerMetricStorage(n);return new Xr(o,n)}createCounter(t,e){let n=ut(t,f.COUNTER,e),o=this._meterSharedState.registerMetricStorage(n);return new qr(o,n)}createUpDownCounter(t,e){let n=ut(t,f.UP_DOWN_COUNTER,e),o=this._meterSharedState.registerMetricStorage(n);return new Wr(o,n)}createObservableGauge(t,e){let n=ut(t,f.OBSERVABLE_GAUGE,e),o=this._meterSharedState.registerAsyncMetricStorage(n);return new Qr(n,o,this._meterSharedState.observableRegistry)}createObservableCounter(t,e){let n=ut(t,f.OBSERVABLE_COUNTER,e),o=this._meterSharedState.registerAsyncMetricStorage(n);return new zr(n,o,this._meterSharedState.observableRegistry)}createObservableUpDownCounter(t,e){let n=ut(t,f.OBSERVABLE_UP_DOWN_COUNTER,e),o=this._meterSharedState.registerAsyncMetricStorage(n);return new Jr(n,o,this._meterSharedState.observableRegistry)}addBatchObservableCallback(t,e){this._meterSharedState.observableRegistry.addBatchCallback(t,e)}removeBatchObservableCallback(t,e){this._meterSharedState.observableRegistry.removeBatchCallback(t,e)}};var te=class{_instrumentDescriptor;constructor(t){this._instrumentDescriptor=t}getInstrumentDescriptor(){return this._instrumentDescriptor}updateDescription(t){this._instrumentDescriptor=ut(this._instrumentDescriptor.name,this._instrumentDescriptor.type,{description:t,valueType:this._instrumentDescriptor.valueType,unit:this._instrumentDescriptor.unit,advice:this._instrumentDescriptor.advice})}};var Co=class{_hash;_valueMap=new Map;_keyMap=new Map;constructor(t){this._hash=t}get(t,e){return e??=this._hash(t),this._valueMap.get(e)}getOrDefault(t,e){let n=this._hash(t);if(this._valueMap.has(n))return this._valueMap.get(n);let o=e();return this._keyMap.has(n)||this._keyMap.set(n,t),this._valueMap.set(n,o),o}set(t,e,n){n??=this._hash(t),this._keyMap.has(n)||this._keyMap.set(n,t),this._valueMap.set(n,e)}has(t,e){return e??=this._hash(t),this._valueMap.has(e)}*keys(){let t=this._keyMap.entries(),e=t.next();for(;e.done!==!0;)yield[e.value[1],e.value[0]],e=t.next()}*entries(){let t=this._valueMap.entries(),e=t.next();for(;e.done!==!0;)yield[this._keyMap.get(e.value[0]),e.value[1],e.value[0]],e=t.next()}get size(){return this._valueMap.size}},H=class extends Co{constructor(){super(wr)}};var ee=class{_aggregator;_activeCollectionStorage=new H;_cumulativeMemoStorage=new H;_cardinalityLimit;_overflowAttributes={"otel.metric.overflow":!0};_overflowHashCode;constructor(t,e){this._aggregator=t,this._cardinalityLimit=(e??2e3)-1,this._overflowHashCode=wr(this._overflowAttributes)}record(t,e,n,o){let s=this._activeCollectionStorage.get(e);if(!s){if(this._activeCollectionStorage.size>=this._cardinalityLimit){this._activeCollectionStorage.getOrDefault(this._overflowAttributes,()=>this._aggregator.createAccumulation(o))?.record(t);return}s=this._aggregator.createAccumulation(o),this._activeCollectionStorage.set(e,s)}s?.record(t)}batchCumulate(t,e){Array.from(t.entries()).forEach(([n,o,s])=>{let i=this._aggregator.createAccumulation(e);i?.record(o);let a=i;if(this._cumulativeMemoStorage.has(n,s)){let _=this._cumulativeMemoStorage.get(n,s);a=this._aggregator.diff(_,i)}else if(this._cumulativeMemoStorage.size>=this._cardinalityLimit&&(n=this._overflowAttributes,s=this._overflowHashCode,this._cumulativeMemoStorage.has(n,s))){let _=this._cumulativeMemoStorage.get(n,s);a=this._aggregator.diff(_,i)}if(this._activeCollectionStorage.has(n,s)){let _=this._activeCollectionStorage.get(n,s);a=this._aggregator.merge(_,a)}this._cumulativeMemoStorage.set(n,i,s),this._activeCollectionStorage.set(n,a,s)})}collect(){let t=this._activeCollectionStorage;return this._activeCollectionStorage=new H,t}};var re=class r{_aggregator;_unreportedAccumulations=new Map;_reportHistory=new Map;constructor(t,e){this._aggregator=t,e.forEach(n=>{this._unreportedAccumulations.set(n,[])})}buildMetrics(t,e,n,o){this._stashAccumulations(n);let s=this._getMergedUnreportedAccumulations(t),i=s,a;if(this._reportHistory.has(t)){let E=this._reportHistory.get(t),u=E.collectionTime;a=E.aggregationTemporality,a===Br.CUMULATIVE?i=r.merge(E.accumulations,s,this._aggregator):i=r.calibrateStartTime(E.accumulations,s,u)}else a=t.selectAggregationTemporality(e.type);this._reportHistory.set(t,{accumulations:i,collectionTime:o,aggregationTemporality:a});let _=TI(i);if(_.length!==0)return this._aggregator.toMetricData(e,a,_,o)}_stashAccumulations(t){let e=this._unreportedAccumulations.keys();for(let n of e){let o=this._unreportedAccumulations.get(n);o===void 0&&(o=[],this._unreportedAccumulations.set(n,o)),o.push(t)}}_getMergedUnreportedAccumulations(t){let e=new H,n=this._unreportedAccumulations.get(t);if(this._unreportedAccumulations.set(t,[]),n===void 0)return e;for(let o of n)e=r.merge(e,o,this._aggregator);return e}static merge(t,e,n){let o=t,s=e.entries(),i=s.next();for(;i.done!==!0;){let[a,_,E]=i.value;if(t.has(a,E)){let u=t.get(a,E),p=n.merge(u,_);o.set(a,p,E)}else o.set(a,_,E);i=s.next()}return o}static calibrateStartTime(t,e,n){for(let[o,s]of t.keys())e.get(o,s)?.setStartTime(n);return e}};function TI(r){return Array.from(r.entries())}var tn=class extends te{_attributesProcessor;_aggregationCardinalityLimit;_deltaMetricStorage;_temporalMetricStorage;constructor(t,e,n,o,s){super(t),this._attributesProcessor=n,this._aggregationCardinalityLimit=s,this._deltaMetricStorage=new ee(e,this._aggregationCardinalityLimit),this._temporalMetricStorage=new re(e,o)}record(t,e){let n=new H;Array.from(t.entries()).forEach(([o,s])=>{n.set(this._attributesProcessor.process(o),s)}),this._deltaMetricStorage.batchCumulate(n,e)}collect(t,e){let n=this._deltaMetricStorage.collect();return this._temporalMetricStorage.buildMetrics(t,this._instrumentDescriptor,n,e)}};d();function Lo(r,t){let e="";return r.unit!==t.unit&&(e+=` - Unit '${r.unit}' does not match '${t.unit}'
5
5
  `),r.type!==t.type&&(e+=` - Type '${r.type}' does not match '${t.type}'
6
6
  `),r.valueType!==t.valueType&&(e+=` - Value Type '${r.valueType}' does not match '${t.valueType}'
7
7
  `),r.description!==t.description&&(e+=` - Description '${r.description}' does not match '${t.description}'
8
- `),e}function TI(r,t){return` - use valueType '${r.valueType}' on instrument creation or use an instrument name other than '${t.name}'`}function SI(r,t){return` - use unit '${r.unit}' on instrument creation or use an instrument name other than '${t.name}'`}function pI(r,t){let e={name:t.name,type:t.type,unit:t.unit},n=JSON.stringify(e);return` - create a new view with a name other than '${r.name}' and InstrumentSelector '${n}'`}function lI(r,t){let e={name:t.name,type:t.type,unit:t.unit},n=JSON.stringify(e);return` - create a new view with a name other than '${r.name}' and InstrumentSelector '${n}'
8
+ `),e}function SI(r,t){return` - use valueType '${r.valueType}' on instrument creation or use an instrument name other than '${t.name}'`}function pI(r,t){return` - use unit '${r.unit}' on instrument creation or use an instrument name other than '${t.name}'`}function lI(r,t){let e={name:t.name,type:t.type,unit:t.unit},n=JSON.stringify(e);return` - create a new view with a name other than '${r.name}' and InstrumentSelector '${n}'`}function AI(r,t){let e={name:t.name,type:t.type,unit:t.unit},n=JSON.stringify(e);return` - create a new view with a name other than '${r.name}' and InstrumentSelector '${n}'
9
9
  - OR - create a new view with the name ${r.name} and description '${r.description}' and InstrumentSelector ${n}
10
- - OR - create a new view with the name ${t.name} and description '${r.description}' and InstrumentSelector ${n}`}function Io(r,t){return r.valueType!==t.valueType?TI(r,t):r.unit!==t.unit?SI(r,t):r.type!==t.type?pI(r,t):r.description!==t.description?lI(r,t):""}var en=class r{_sharedRegistry=new Map;_perCollectorRegistry=new Map;static create(){return new r}getStorages(t){let e=[];for(let o of this._sharedRegistry.values())e=e.concat(o);let n=this._perCollectorRegistry.get(t);if(n!=null)for(let o of n.values())e=e.concat(o);return e}register(t){this._registerStorage(t,this._sharedRegistry)}registerForCollector(t,e){let n=this._perCollectorRegistry.get(t);n==null&&(n=new Map,this._perCollectorRegistry.set(t,n)),this._registerStorage(e,n)}findOrUpdateCompatibleStorage(t){let e=this._sharedRegistry.get(t.name);return e===void 0?null:this._findOrUpdateCompatibleStorage(t,e)}findOrUpdateCompatibleCollectorStorage(t,e){let n=this._perCollectorRegistry.get(t);if(n===void 0)return null;let o=n.get(e.name);return o===void 0?null:this._findOrUpdateCompatibleStorage(e,o)}_registerStorage(t,e){let n=t.getInstrumentDescriptor(),o=e.get(n.name);if(o===void 0){e.set(n.name,[t]);return}o.push(t)}_findOrUpdateCompatibleStorage(t,e){let n=null;for(let o of e){let s=o.getInstrumentDescriptor();_p(s,t)?(s.description!==t.description&&(t.description.length>s.description.length&&o.updateDescription(t.description),c.diag.warn("A view or instrument with the name ",t.name,` has already been registered, but has a different description and is incompatible with another registered view.
10
+ - OR - create a new view with the name ${t.name} and description '${r.description}' and InstrumentSelector ${n}`}function Io(r,t){return r.valueType!==t.valueType?SI(r,t):r.unit!==t.unit?pI(r,t):r.type!==t.type?lI(r,t):r.description!==t.description?AI(r,t):""}var en=class r{_sharedRegistry=new Map;_perCollectorRegistry=new Map;static create(){return new r}getStorages(t){let e=[];for(let o of this._sharedRegistry.values())e=e.concat(o);let n=this._perCollectorRegistry.get(t);if(n!=null)for(let o of n.values())e=e.concat(o);return e}register(t){this._registerStorage(t,this._sharedRegistry)}registerForCollector(t,e){let n=this._perCollectorRegistry.get(t);n==null&&(n=new Map,this._perCollectorRegistry.set(t,n)),this._registerStorage(e,n)}findOrUpdateCompatibleStorage(t){let e=this._sharedRegistry.get(t.name);return e===void 0?null:this._findOrUpdateCompatibleStorage(t,e)}findOrUpdateCompatibleCollectorStorage(t,e){let n=this._perCollectorRegistry.get(t);if(n===void 0)return null;let o=n.get(e.name);return o===void 0?null:this._findOrUpdateCompatibleStorage(e,o)}_registerStorage(t,e){let n=t.getInstrumentDescriptor(),o=e.get(n.name);if(o===void 0){e.set(n.name,[t]);return}o.push(t)}_findOrUpdateCompatibleStorage(t,e){let n=null;for(let o of e){let s=o.getInstrumentDescriptor();_p(s,t)?(s.description!==t.description&&(t.description.length>s.description.length&&o.updateDescription(t.description),c.diag.warn("A view or instrument with the name ",t.name,` has already been registered, but has a different description and is incompatible with another registered view.
11
11
  `,`Details:
12
12
  `,Lo(s,t),`The longer description will be used.
13
13
  To resolve the conflict:`,Io(s,t))),n=o):c.diag.warn("A view or instrument with the name ",t.name,` has already been registered and is incompatible with another registered view.
14
14
  `,`Details:
15
15
  `,Lo(s,t),`To resolve the conflict:
16
- `,Io(s,t))}return n}};var rn=class{_backingStorages;constructor(t){this._backingStorages=t}record(t,e,n,o){this._backingStorages.forEach(s=>{s.record(t,e,n,o)})}};d();d();var nn=class{_instrumentName;_valueType;_buffer=new H;constructor(t,e){this._instrumentName=t,this._valueType=e}observe(t,e={}){if(typeof t!="number"){c.diag.warn(`non-number value provided to metric ${this._instrumentName}: ${t}`);return}this._valueType===c.ValueType.INT&&!Number.isInteger(t)&&(c.diag.warn(`INT value type cannot accept a floating-point value for ${this._instrumentName}, ignoring the fractional digits.`),t=Math.trunc(t),!Number.isInteger(t))||this._buffer.set(e,t)}},on=class{_buffer=new Map;observe(t,e,n={}){if(!be(t))return;let o=this._buffer.get(t);if(o==null&&(o=new H,this._buffer.set(t,o)),typeof e!="number"){c.diag.warn(`non-number value provided to metric ${t._descriptor.name}: ${e}`);return}t._descriptor.valueType===c.ValueType.INT&&!Number.isInteger(e)&&(c.diag.warn(`INT value type cannot accept a floating-point value for ${t._descriptor.name}, ignoring the fractional digits.`),e=Math.trunc(e),!Number.isInteger(e))||o.set(n,e)}};var sn=class{_callbacks=[];_batchCallbacks=[];addCallback(t,e){this._findCallback(t,e)>=0||this._callbacks.push({callback:t,instrument:e})}removeCallback(t,e){let n=this._findCallback(t,e);n<0||this._callbacks.splice(n,1)}addBatchCallback(t,e){let n=new Set(e.filter(be));if(n.size===0){c.diag.error("BatchObservableCallback is not associated with valid instruments",e);return}this._findBatchCallback(t,n)>=0||this._batchCallbacks.push({callback:t,instruments:n})}removeBatchCallback(t,e){let n=new Set(e.filter(be)),o=this._findBatchCallback(t,n);o<0||this._batchCallbacks.splice(o,1)}async observe(t,e){let n=this._observeCallbacks(t,e),o=this._observeBatchCallbacks(t,e);return(await QS([...n,...o])).filter(JS).map(a=>a.reason)}_observeCallbacks(t,e){return this._callbacks.map(async({callback:n,instrument:o})=>{let s=new nn(o._descriptor.name,o._descriptor.valueType),i=Promise.resolve(n(s));e!=null&&(i=uo(i,e)),await i,o._metricStorages.forEach(a=>{a.record(s._buffer,t)})})}_observeBatchCallbacks(t,e){return this._batchCallbacks.map(async({callback:n,instruments:o})=>{let s=new on,i=Promise.resolve(n(s));e!=null&&(i=uo(i,e)),await i,o.forEach(a=>{let _=s._buffer.get(a);_!=null&&a._metricStorages.forEach(E=>{E.record(_,t)})})})}_findCallback(t,e){return this._callbacks.findIndex(n=>n.callback===t&&n.instrument===e)}_findBatchCallback(t,e){return this._batchCallbacks.findIndex(n=>n.callback===t&&ZS(n.instruments,e))}};var an=class extends te{_attributesProcessor;_aggregationCardinalityLimit;_deltaMetricStorage;_temporalMetricStorage;constructor(t,e,n,o,s){super(t),this._attributesProcessor=n,this._aggregationCardinalityLimit=s,this._deltaMetricStorage=new ee(e,this._aggregationCardinalityLimit),this._temporalMetricStorage=new re(e,o)}record(t,e,n,o){e=this._attributesProcessor.process(e,n),this._deltaMetricStorage.record(t,e,n,o)}collect(t,e){let n=this._deltaMetricStorage.collect();return this._temporalMetricStorage.buildMetrics(t,this._instrumentDescriptor,n,e)}};var xo=class{process(t,e){return t}},Do=class{_processors;constructor(t){this._processors=t}process(t,e){let n=t;for(let o of this._processors)n=o.process(n,e);return n}};function cn(){return AI}function up(r){return new Do(r)}var AI=new xo;var _n=class{_meterProviderSharedState;_instrumentationScope;metricStorageRegistry=new en;observableRegistry=new sn;meter;constructor(t,e){this._meterProviderSharedState=t,this._instrumentationScope=e,this.meter=new Zr(this)}registerMetricStorage(t){let e=this._registerMetricStorage(t,an);return e.length===1?e[0]:new rn(e)}registerAsyncMetricStorage(t){return this._registerMetricStorage(t,tn)}async collect(t,e,n){let o=await this.observableRegistry.observe(e,n?.timeoutMillis),s=this.metricStorageRegistry.getStorages(t);if(s.length===0)return null;let i=s.map(a=>a.collect(t,e)).filter(XS);return i.length===0?{errors:o}:{scopeMetrics:{scope:this._instrumentationScope,metrics:i},errors:o}}_registerMetricStorage(t,e){let o=this._meterProviderSharedState.viewRegistry.findViews(t,this._instrumentationScope).map(s=>{let i=cp(s,t),a=this.metricStorageRegistry.findOrUpdateCompatibleStorage(i);if(a!=null)return a;let _=s.aggregation.createAggregator(i),E=new e(i,_,s.attributesProcessor,this._meterProviderSharedState.metricCollectors,s.aggregationCardinalityLimit);return this.metricStorageRegistry.register(E),E});if(o.length===0){let i=this._meterProviderSharedState.selectAggregations(t.type).map(([a,_])=>{let E=this.metricStorageRegistry.findOrUpdateCompatibleCollectorStorage(a,t);if(E!=null)return E;let T=_.createAggregator(t),l=a.selectCardinalityLimit(t.type),A=new e(t,T,cn(),[a],l);return this.metricStorageRegistry.registerForCollector(a,A),A});o=o.concat(i)}return o}};var En=class{resource;viewRegistry=new jr;metricCollectors=[];meterSharedStates=new Map;constructor(t){this.resource=t}getMeterSharedState(t){let e=zS(t),n=this.meterSharedStates.get(e);return n==null&&(n=new _n(this,t),this.meterSharedStates.set(e,n)),n}selectAggregations(t){let e=[];for(let n of this.metricCollectors)e.push([n,Kr(n.selectAggregation(t))]);return e}};var Tp=O(P()),un=class{_sharedState;_metricReader;constructor(t,e){this._sharedState=t,this._metricReader=e}async collect(t){let e=(0,Tp.millisToHrTime)(Date.now()),n=[],o=[],s=Array.from(this._sharedState.meterSharedStates.values()).map(async i=>{let a=await i.collect(this,e,t);a?.scopeMetrics!=null&&n.push(a.scopeMetrics),a?.errors!=null&&o.push(...a.errors)});return await Promise.all(s),{resourceMetrics:{resource:this._sharedState.resource,scopeMetrics:n},errors:o}}async forceFlush(t){await this._metricReader.forceFlush(t)}async shutdown(t){await this._metricReader.shutdown(t)}selectAggregationTemporality(t){return this._metricReader.selectAggregationTemporality(t)}selectAggregation(t){return this._metricReader.selectAggregation(t)}selectCardinalityLimit(t){return this._metricReader.selectCardinalityLimit?.(t)??2e3}};var dI=/[\^$\\.+?()[\]{}|]/g,ne=class r{_matchAll;_regexp;constructor(t){t==="*"?(this._matchAll=!0,this._regexp=/.*/):(this._matchAll=!1,this._regexp=new RegExp(r.escapePattern(t)))}match(t){return this._matchAll?!0:this._regexp.test(t)}static escapePattern(t){return`^${t.replace(dI,"\\$&").replace("*",".*")}$`}static hasWildcard(t){return t.includes("*")}},gt=class{_matchAll;_pattern;constructor(t){this._matchAll=t===void 0,this._pattern=t}match(t){return!!(this._matchAll||t===this._pattern)}};var Tn=class{_nameFilter;_type;_unitFilter;constructor(t){this._nameFilter=new ne(t?.name??"*"),this._type=t?.type,this._unitFilter=new gt(t?.unit)}getType(){return this._type}getNameFilter(){return this._nameFilter}getUnitFilter(){return this._unitFilter}};var Sn=class{_nameFilter;_versionFilter;_schemaUrlFilter;constructor(t){this._nameFilter=new gt(t?.name),this._versionFilter=new gt(t?.version),this._schemaUrlFilter=new gt(t?.schemaUrl)}getNameFilter(){return this._nameFilter}getVersionFilter(){return this._versionFilter}getSchemaUrlFilter(){return this._schemaUrlFilter}};function mI(r){return r.instrumentName==null&&r.instrumentType==null&&r.instrumentUnit==null&&r.meterName==null&&r.meterVersion==null&&r.meterSchemaUrl==null}function fI(r){if(mI(r))throw new Error("Cannot create view with no selector arguments supplied");if(r.name!=null&&(r?.instrumentName==null||ne.hasWildcard(r.instrumentName)))throw new Error("Views with a specified name must be declared with an instrument selector that selects at most one instrument per meter.")}var pn=class{name;description;aggregation;attributesProcessor;instrumentSelector;meterSelector;aggregationCardinalityLimit;constructor(t){fI(t),t.attributesProcessors!=null?this.attributesProcessor=up(t.attributesProcessors):this.attributesProcessor=cn(),this.name=t.name,this.description=t.description,this.aggregation=Kr(t.aggregation??{type:Et.DEFAULT}),this.instrumentSelector=new Tn({name:t.instrumentName,type:t.instrumentType,unit:t.instrumentUnit}),this.meterSelector=new Sn({name:t.meterName,version:t.meterVersion,schemaUrl:t.meterSchemaUrl}),this.aggregationCardinalityLimit=t.aggregationCardinalityLimit}};var ye=class{_sharedState;_shutdown=!1;constructor(t){if(this._sharedState=new En(t?.resource??Ut()),t?.views!=null&&t.views.length>0)for(let e of t.views)this._sharedState.viewRegistry.addView(new pn(e));if(t?.readers!=null&&t.readers.length>0)for(let e of t.readers){let n=new un(this._sharedState,e);e.setMetricProducer(n),this._sharedState.metricCollectors.push(n)}}getMeter(t,e="",n={}){return this._shutdown?(c.diag.warn("A shutdown MeterProvider cannot provide a Meter"),(0,c.createNoopMeter)()):this._sharedState.getMeterSharedState({name:t,version:e,schemaUrl:n.schemaUrl}).meter}async shutdown(t){if(this._shutdown){c.diag.warn("shutdown may only be called once per MeterProvider");return}this._shutdown=!0,await Promise.all(this._sharedState.metricCollectors.map(e=>e.shutdown(t)))}async forceFlush(t){if(this._shutdown){c.diag.warn("invalid attempt to force flush after MeterProvider shutdown");return}await Promise.all(this._sharedState.metricCollectors.map(e=>e.forceFlush(t)))}};var cA=O(Ap(),1),Ct=O(P(),1);d();var xI=Symbol.for("@vercel/request-context");function $(){return globalThis[xI]?.get()}var dp="http.method",mp="http.url",mn="http.host",fp="http.scheme",Bo="http.status_code",hp="http.user_agent",wo="http.response_content_length_uncompressed",Rp="net.peer.port",Op="net.peer.name",gp="cloud.region";var Np="deployment.environment.name",Mp="deployment.id";var Pp="process.runtime.name",Cp="vcs.ref.head.name",Lp="vcs.ref.head.revision",Ip="vcs.repository.name",xp="vcs.repository.ref.revision";var Dp="service.name",Up="service.version";function Go(r){return Object.fromEntries(Object.entries(r).filter(([t,e])=>e!==void 0))}function yp({attributes:r,env:t=process.env,runtime:e,serviceName:n}){let o=t.VERCEL_ENV,s=t.VERCEL_DEPLOYMENT_ID,i=t.VERCEL_GIT_COMMIT_SHA,a=t.VERCEL_REGION,_=t.VERCEL_GIT_COMMIT_REF,E=t.VERCEL_GIT_REPO_SLUG;return Go({[Dp]:n,"node.ci":t.CI?!0:void 0,"node.env":t.NODE_ENV,[Np]:o,env:o,[gp]:a,"vercel.region":a,[Pp]:e,"vercel.runtime":e,[Cp]:_,[Lp]:i,[Ip]:E,[xp]:i,"vercel.sha":i,"vercel.host":t.VERCEL_URL||void 0,"vercel.branch_host":t.VERCEL_BRANCH_URL||void 0,[Mp]:s,"vercel.deployment_id":s,[Up]:s,"vercel.project_id":t.VERCEL_PROJECT_ID||void 0,...r})}function Vp(r){return r?r.split("::").at(-1):void 0}function vp(r=$(),t){if(!r)return;let e=t?UI(t,r.headers):void 0;return Go({[mn]:r.headers.host,[hp]:r.headers["user-agent"],"http.referer":r.headers.referer,"vercel.request_id":Vp(r.headers["x-vercel-id"]),"vercel.matched_path":r.headers["x-matched-path"],"vercel.edge_region":process.env.VERCEL_REGION,...e})}var DI={keys(r){return[]},get(r,t){return r[t.toLocaleLowerCase()]}};function UI(r,t){if(typeof r=="function")return r(t,DI);let e={};for(let[n,o]of Object.entries(r)){let s=t[o.toLocaleLowerCase()];s!==void 0&&(e[n]=s)}return e}d();function ie(r){return(r&c.TraceFlags.SAMPLED)!==0}var fn=class{constructor(t,e){this.processors=t;this.attributesFromHeaders=e;this.rootSpanIds=new Map;this.waitSpanEnd=new Map}forceFlush(){return Promise.all(this.processors.map(t=>t.forceFlush().catch(e=>{c.diag.error("@vercel/otel: forceFlush failed:",e)}))).then(()=>{})}shutdown(){return Promise.all(this.processors.map(t=>t.shutdown().catch(()=>{}))).then(()=>{})}onStart(t,e){let{traceId:n,spanId:o,traceFlags:s}=t.spanContext(),i=!t.parentSpanContext?.spanId||!this.rootSpanIds.has(n);if(i?this.rootSpanIds.set(n,{rootSpanId:o,open:[]}):this.rootSpanIds.get(n)?.open.push(t),i&&ie(s)){let a=$(),_=vp(a,this.attributesFromHeaders);_&&t.setAttributes(_),a&&a.waitUntil(async()=>{if(this.rootSpanIds.has(n)){let E=new Promise(l=>{this.waitSpanEnd.set(n,l)}),T;await Promise.race([E,new Promise(l=>{T=setTimeout(()=>{this.waitSpanEnd.delete(n),l(void 0)},50)})]),T&&clearTimeout(T)}return this.forceFlush()})}for(let a of this.processors)a.onStart(t,e)}onEnd(t){let{traceId:e,spanId:n,traceFlags:o}=t.spanContext(),s=ie(o),i=this.rootSpanIds.get(e),a=i?.rootSpanId===n;if(s){let _=yI(t);_&&Object.assign(t.attributes,_)}if(a){if(this.rootSpanIds.delete(e),i.open.length>0){for(let _ of i.open)if(!_.ended&&_.spanContext().spanId!==n)try{_.end()}catch(E){c.diag.error("@vercel/otel: onEnd failed:",E)}}}else if(i)for(let _=0;_<i.open.length;_++)i.open[_]?.spanContext().spanId===n&&i.open.splice(_,1);for(let _ of this.processors)_.onEnd(t);if(a){let _=this.waitSpanEnd.get(e);_&&(this.waitSpanEnd.delete(e),_())}}},bI={[c.SpanKind.INTERNAL]:"internal",[c.SpanKind.SERVER]:"server",[c.SpanKind.CLIENT]:"client",[c.SpanKind.PRODUCER]:"producer",[c.SpanKind.CONSUMER]:"consumer"};function yI(r){let{kind:t,attributes:e}=r,{"operation.name":n,"resource.name":o,"span.type":s,"next.span_type":i,"http.method":a,"http.route":_}=e;if(n)return;let E=o??(a&&typeof a=="string"&&_&&typeof _=="string"?`${a} ${_}`:_);if(r.kind===c.SpanKind.SERVER&&a&&_&&typeof a=="string"&&typeof _=="string")return{"operation.name":"web.request","resource.name":E};let T=r.instrumentationScope.name,l=i??s;if(l&&typeof l=="string"){let A=Bp(T,l);return _?{"operation.name":A,"resource.name":E}:{"operation.name":A}}return{"operation.name":Bp(T,t===c.SpanKind.INTERNAL?"":bI[t])}}function Bp(r,t){if(!r)return t;let e=r.replace(/[ @./]/g,"_");return e.startsWith("_")&&(e=e.slice(1)),t?`${e}.${t}`:e}var zp=O(Wo(),1);d();var ae=class{constructor(t={}){this._shutdownOnce={isCalled:!1};this._sendingPromises=[];this.url=t.url||this.getDefaultUrl(t),t.headers&&(this._headers=t.headers),this.onInit()}onShutdown(){c.diag.debug("@vercel/otel/otlp: onShutdown")}onInit(){c.diag.debug("@vercel/otel/otlp: onInit")}export(t,e){if(this._shutdownOnce.isCalled){c.diag.debug("@vercel/otel/otlp: Shutdown already started. Cannot send objects");return}this.send(t,()=>e({code:0}),n=>e({code:1,error:n}))}async forceFlush(){await Promise.all(this._sendingPromises)}async shutdown(){this._shutdownOnce.isCalled=!0,this.onShutdown(),await this.forceFlush()}send(t,e,n){if(this._shutdownOnce.isCalled){c.diag.debug("@vercel/otel/otlp: Shutdown already started. Cannot send objects");return}let o=this.convert(t),s,i,a;try{({body:s,contentType:i,headers:a}=this.toMessage(o))}catch(E){c.diag.warn("@vercel/otel/otlp: no proto",E);return}let _=fetch(this.url,{method:"POST",body:s,headers:{...this._headers,...a,"Content-Type":i,"User-Agent":"OTel-OTLP-Exporter-JavaScript/0.46.0"},next:{internal:!0}}).then(E=>{c.diag.debug("@vercel/otel/otlp: onSuccess",E.status,E.statusText),e(),E.arrayBuffer().catch(()=>{})}).catch(E=>{c.diag.error("@vercel/otel/otlp: onError",E),n(E)}).finally(()=>{let E=this._sendingPromises.indexOf(_);this._sendingPromises.splice(E,1)});this._sendingPromises.push(_)}};var qI="v1/traces",$I=`http://localhost:4318/${qI}`;function On(r){return typeof r.url=="string"?r.url:$I}var ce=class{constructor(t={}){this.impl=new qo(t)}export(t,e){this.impl.export(t,e)}shutdown(){return this.impl.shutdown()}forceFlush(){return this.impl.forceFlush()}},qo=class extends ae{convert(t){return t}toMessage(t){let e=zp.JsonTraceSerializer.serializeRequest(t);return{body:new TextDecoder().decode(e),contentType:"application/json"}}getDefaultUrl(t){return On(t)}};var Jl=O(jo(),1);var Xl=O($l(),1);function zl(r){let t=new Xl.Writer;return sx(r,t),t.finish()}function sx(r,t){if(r.resourceSpans!=null&&r.resourceSpans.length)for(let e=0;e<r.resourceSpans.length;++e)ix(r.resourceSpans[e],t.uint32(10).fork()).ldelim();return t}function ix(r,t){if(r.resource!=null&&ax(r.resource,t.uint32(10).fork()).ldelim(),r.scopeSpans!=null&&r.scopeSpans.length)for(let e=0;e<r.scopeSpans.length;++e)cx(r.scopeSpans[e],t.uint32(18).fork()).ldelim();return r.schemaUrl!=null&&t.uint32(26).string(r.schemaUrl),t}function ax(r,t){if(r.attributes!=null&&r.attributes.length)for(let e=0;e<r.attributes.length;++e)Ee(r.attributes[e],t.uint32(10).fork()).ldelim();return r.droppedAttributesCount!=null&&t.uint32(16).uint32(r.droppedAttributesCount),t}function cx(r,t){if(r.scope!=null&&ux(r.scope,t.uint32(10).fork()).ldelim(),r.spans!=null&&r.spans.length)for(let e=0;e<r.spans.length;++e)Tx(r.spans[e],t.uint32(18).fork()).ldelim();return r.schemaUrl!=null&&t.uint32(26).string(r.schemaUrl),t}function Ee(r,t){return r.key!=null&&t.uint32(10).string(r.key),r.value!=null&&Ql(r.value,t.uint32(18).fork()).ldelim(),t}function Ql(r,t){return r.stringValue!=null&&t.uint32(10).string(r.stringValue),r.boolValue!=null&&t.uint32(16).bool(r.boolValue),r.intValue!=null&&t.uint32(24).int64(r.intValue),r.doubleValue!=null&&t.uint32(33).double(r.doubleValue),r.arrayValue!=null&&_x(r.arrayValue,t.uint32(42).fork()).ldelim(),r.kvlistValue!=null&&Ex(r.kvlistValue,t.uint32(50).fork()).ldelim(),r.bytesValue!=null&&t.uint32(58).bytes(r.bytesValue),t}function _x(r,t){if(r.values!=null&&r.values.length)for(let e=0;e<r.values.length;++e)Ql(r.values[e],t.uint32(10).fork()).ldelim();return t}function Ex(r,t){if(r.values!=null&&r.values.length)for(let e=0;e<r.values.length;++e)Ee(r.values[e],t.uint32(10).fork()).ldelim();return t}function ux(r,t){if(r.name!=null&&t.uint32(10).string(r.name),r.version!=null&&t.uint32(18).string(r.version),r.attributes!=null&&r.attributes.length)for(let e=0;e<r.attributes.length;++e)Ee(r.attributes[e],t.uint32(26).fork()).ldelim();return r.droppedAttributesCount!=null&&t.uint32(32).uint32(r.droppedAttributesCount),t}function Tx(r,t){if(r.traceId!=null&&t.uint32(10).bytes(r.traceId),r.spanId!=null&&t.uint32(18).bytes(r.spanId),r.traceState!=null&&t.uint32(26).string(r.traceState),r.parentSpanId!=null&&t.uint32(34).bytes(r.parentSpanId),r.name!=null&&t.uint32(42).string(r.name),r.kind!=null&&t.uint32(48).int32(r.kind),r.startTimeUnixNano!=null&&t.uint32(57).fixed64(r.startTimeUnixNano),r.endTimeUnixNano!=null&&t.uint32(65).fixed64(r.endTimeUnixNano),r.attributes!=null&&r.attributes.length)for(let e=0;e<r.attributes.length;++e)Ee(r.attributes[e],t.uint32(74).fork()).ldelim();if(r.droppedAttributesCount!=null&&t.uint32(80).uint32(r.droppedAttributesCount),r.events!=null&&r.events.length)for(let e=0;e<r.events.length;++e)px(r.events[e],t.uint32(90).fork()).ldelim();if(r.droppedEventsCount!=null&&t.uint32(96).uint32(r.droppedEventsCount),r.links!=null&&r.links.length)for(let e=0;e<r.links.length;++e)lx(r.links[e],t.uint32(106).fork()).ldelim();return r.droppedLinksCount!=null&&t.uint32(112).uint32(r.droppedLinksCount),r.status!=null&&Sx(r.status,t.uint32(122).fork()).ldelim(),t}function Sx(r,t){return r.message!=null&&t.uint32(18).string(r.message),r.code!=null&&t.uint32(24).int32(r.code),t}function px(r,t){if(r.timeUnixNano!=null&&t.uint32(9).fixed64(r.timeUnixNano),r.name!=null&&t.uint32(18).string(r.name),r.attributes!=null&&r.attributes.length)for(let e=0;e<r.attributes.length;++e)Ee(r.attributes[e],t.uint32(26).fork()).ldelim();return r.droppedAttributesCount!=null&&t.uint32(32).uint32(r.droppedAttributesCount),t}function lx(r,t){if(r.traceId!=null&&t.uint32(10).bytes(r.traceId),r.spanId!=null&&t.uint32(18).bytes(r.spanId),r.traceState!=null&&t.uint32(26).string(r.traceState),r.attributes!=null&&r.attributes.length)for(let e=0;e<r.attributes.length;++e)Ee(r.attributes[e],t.uint32(34).fork()).ldelim();return r.droppedAttributesCount!=null&&t.uint32(40).uint32(r.droppedAttributesCount),t}var wt=class{constructor(t={}){this.impl=new as(t)}export(t,e){this.impl.export(t,e)}shutdown(){return this.impl.shutdown()}forceFlush(){return this.impl.forceFlush()}},as=class extends ae{convert(t){return(0,Jl.createExportTraceServiceRequest)(t)}toMessage(t){return{body:zl(t),contentType:"application/x-protobuf",headers:{accept:"application/x-protobuf"}}}getDefaultUrl(t){return On(t)}};d();function Zl(r,t){return r.replace(/\{(?<temp1>[^{}]+)\}/g,(e,n)=>{let o=t[n];return o!==void 0?String(o):e})}var ue=class{constructor(t={}){this.instrumentationName="@vercel/otel/fetch";this.instrumentationVersion="1.0.0";this.config=t}getConfig(){return this.config}setConfig(){}setTracerProvider(t){this.tracerProvider=t}setMeterProvider(){}shouldIgnore(t,e){let n=this.config.ignoreUrls??[];if(e?.opentelemetry?.ignore!==void 0)return e.opentelemetry.ignore;if(n.length===0)return!1;let o=t.toString();return n.some(s=>typeof s=="string"?s==="*"?!0:o.startsWith(s):s.test(o))}shouldPropagate(t,e){let n=process.env.VERCEL_URL||null,o=process.env.VERCEL_BRANCH_URL||null,s=this.config.propagateContextUrls??[],i=this.config.dontPropagateContextUrls??[];if(e?.opentelemetry?.propagateContext)return e.opentelemetry.propagateContext;let a=t.toString();return i.length>0&&i.some(_=>typeof _=="string"?_==="*"?!0:a.startsWith(_):_.test(a))?!1:n&&t.protocol==="https:"&&(t.host===n||t.host===o||t.host===$()?.headers.host)||!n&&t.protocol==="http:"&&t.hostname==="localhost"?!0:s.some(_=>typeof _=="string"?_==="*"?!0:a.startsWith(_):_.test(a))}startSpan({tracer:t,url:e,fetchType:n,method:o="GET",name:s,attributes:i={}}){let a=this.config.resourceNameTemplate,_={[dp]:o,[mp]:e.toString(),[mn]:e.host,[fp]:e.protocol.replace(":",""),[Op]:e.hostname,[Rp]:e.port},E=a?Zl(a,_):mx(e.toString()),T=s??`${n} ${o} ${e.toString()}`,l=c.context.active();return t.startSpan(T,{kind:c.SpanKind.CLIENT,attributes:{..._,"operation.name":`${n}.${o}`,"http.client.name":n,"resource.name":E,...i}},l)}instrumentHttp(t,e){let{tracerProvider:n}=this;if(!n)return;let o=n.getTracer(this.instrumentationName,this.instrumentationVersion),{attributesFromRequestHeaders:s,attributesFromResponseHeaders:i}=this.config,a=t.request,_=t.get,E=T=>(l,A,h)=>{let R,I={},x;if(typeof l=="string"||l instanceof URL?(R=new URL(l.toString()),typeof A=="function"?x=A:A&&typeof h=="function"?(I=A,x=h):A&&(I=A)):(I=l,typeof A=="function"&&(x=A),R=hx(I,e)),this.shouldIgnore(R))return T.apply(this,[R,I,x]);let M=this.startSpan({tracer:o,url:R,fetchType:"http",method:I.method||"GET"});if(!M.isRecording()||!ie(M.spanContext().traceFlags))return M.end(),T.apply(this,[R,I,x]);if(this.shouldPropagate(R)){let Z=c.context.active(),Lt=c.trace.setSpan(Z,M);c.propagation.inject(Lt,I.headers||{},dx)}s&&Cn(M,s,I.headers||{},eA);try{let Z=Date.now(),Lt=T.apply(this,[R,I,x]);return Lt.prependListener("response",w=>{let EA=Date.now()-Z;M.setAttribute("http.response_time",EA),w.statusCode!==void 0?(M.setAttribute(Bo,w.statusCode),w.statusCode>=500&&Gt(M,`Status: ${w.statusCode}`)):Gt(M,"Response status code is undefined"),i&&Cn(M,i,w.headers,eA),Lt.listenerCount("response")<=1&&w.resume(),w.on("end",()=>{let Ye,Un=w.statusCode;w.aborted&&!w.complete?Ye={code:c.SpanStatusCode.ERROR}:Un&&Un>=100&&Un<500?Ye={code:c.SpanStatusCode.UNSET}:Ye={code:c.SpanStatusCode.ERROR},M.setStatus(Ye),M.isRecording()&&(w.headers["content-length"]&&M.setAttribute(wo,w.headers["content-length"]),M.end())})}),Lt.on("error",w=>{M.isRecording()&&(Gt(M,w),M.end())}),Lt.on("close",()=>{M.isRecording()&&M.end()}),Lt}catch(Z){throw Gt(M,Z),M.end(),Z}};t.request=E(a),t.get=E(_)}instrumentFetch(){let{tracerProvider:t}=this;if(!t)return;let e=t.getTracer(this.instrumentationName,this.instrumentationVersion),{attributesFromRequestHeaders:n,attributesFromResponseHeaders:o}=this.config;process.env.NEXT_OTEL_FETCH_DISABLED="1";let s=globalThis.fetch;this.originalFetch=s;let i=async(a,_)=>{let E=_;if(E?.next?.internal)return s(a,E);let T=new Request(a instanceof Request?a.clone():a,E),l=new URL(T.url);if(this.shouldIgnore(l,E))return s(a,E);let A=this.startSpan({tracer:e,url:l,fetchType:"fetch",method:T.method,name:E?.opentelemetry?.spanName,attributes:E?.opentelemetry?.attributes});if(!A.isRecording()||!ie(A.spanContext().traceFlags))return A.end(),s(a,E);if(this.shouldPropagate(l,E)){let h=c.context.active(),R=c.trace.setSpan(h,A);c.propagation.inject(R,T.headers,Ax)}n&&Cn(A,n,T.headers,tA);try{let h=Date.now();E?.body&&E.body instanceof FormData&&T.headers.delete("content-type");let R=await s(a,{...E,headers:T.headers}),I=Date.now()-h;return A.setAttribute(Bo,R.status),A.setAttribute("http.response_time",I),o&&Cn(A,o,R.headers,tA),R.status>=500&&Gt(A,`Status: ${R.status} (${R.statusText})`),R.body?fx(R).then(x=>{A.isRecording()&&(A.setAttribute(wo,x),A.end())},x=>{A.isRecording()&&(Gt(A,x),A.end())}):A.end(),R}catch(h){throw Gt(A,h),A.end(),h}};globalThis.fetch=i}enable(){this.disable(),this.instrumentFetch();try{let t=us("node:http"),e=us("node:https");this.instrumentHttp(t,"http:"),this.instrumentHttp(e,"https:")}catch{}}disable(){this.originalFetch&&(globalThis.fetch=this.originalFetch)}},Ax={set(r,t,e){r.set(t,e)}},tA={get(r,t){let e=r.get(t);if(e!==null)return e.includes(",")?e.split(",").map(n=>n.trimStart()):e},keys(r){let t=[];return r.forEach((e,n)=>{t.push(n)}),t}},dx={set(r,t,e){r[t.toLowerCase()]=e}},eA={get(r,t){return r[t.toLowerCase()]},keys(r){return Object.keys(r)}};function mx(r){let t=r.indexOf("?");return t===-1?r:r.substring(0,t)}function fx(r){let t=0,n=r.clone().body?.getReader();if(!n)return Promise.resolve(0);let o=()=>n.read().then(({done:s,value:i})=>{if(!s)return t+=i.byteLength,o()});return o().then(()=>t)}function Gt(r,t){if(t instanceof Error)r.recordException(t),r.setStatus({code:c.SpanStatusCode.ERROR,message:t.message});else{let e=String(t);r.setStatus({code:c.SpanStatusCode.ERROR,message:e})}}function Cn(r,t,e,n){for(let[o,s]of Object.entries(t)){let i=n.get(e,s);i!==void 0&&r.setAttribute(o,i)}}function hx(r,t){if(r.socketPath)throw new Error("Cannot construct a network URL: options.socketPath is specified, indicating a Unix domain socket.");let e=r.protocol??t;e&&!e.endsWith(":")&&(e+=":");let n=r.hostname,o=r.port??r.defaultPort;if(!n&&r.host){let E=r.host.split(":");n=E[0];let T=E[1];if(E.length>1&&T&&o===void 0){let l=parseInt(T,10);isNaN(l)||(o=l)}}n||(n="localhost");let s;if(o!==void 0&&o!==""){let E=parseInt(String(o),10);isNaN(E)?s=e==="https:"?443:80:s=E}else s=e==="https:"?443:80;let i=r.path||"/",a=`${e}//${n}:${s}`,_=new URL(i,a);if(r.auth){let E=r.auth.split(":");_.username=decodeURIComponent(E[0]||""),E.length>1&&(_.password=decodeURIComponent(E[1]||""))}return _}d();var rA=O(P(),1),Rx="00",cs="traceparent",_s="tracestate",He=class{fields(){return[cs,_s]}inject(t,e,n){let o=c.trace.getSpanContext(t);if(!o||(0,rA.isTracingSuppressed)(t)||!(0,c.isSpanContextValid)(o))return;let s=`${Rx}-${o.traceId}-${o.spanId}-0${Number(o.traceFlags||0).toString(16)}`;n.set(e,cs,s),o.traceState&&n.set(e,_s,o.traceState.serialize())}extract(t,e,n){let o=n.get(e,cs);if(!o)return t;let s=Array.isArray(o)?o[0]:o;if(typeof s!="string")return t;let i=Ox(s);if(!i)return t;i.isRemote=!0;let a=n.get(e,_s);if(a){let _=Array.isArray(a)?a.join(","):a;i.traceState=(0,c.createTraceState)(typeof _=="string"?_:void 0)}return c.trace.setSpanContext(t,i)}};function Ox(r){let[t,e,n,o,s]=r.split("-");return!t||!e||!n||!o||t.length!==2||e.length!==32||n.length!==16||o.length!==2||t==="00"&&s?null:{traceId:e,spanId:n,traceFlags:parseInt(o,16)}}d();var Ln=class{fields(){return[]}inject(){}extract(t){let e=$();if(!e?.telemetry)return c.diag.warn("@vercel/otel: Vercel telemetry extension not found."),t;let{rootSpanContext:n}=e.telemetry;return n?(c.diag.debug("@vercel/otel: Extracted root SpanContext from Vercel request context.",n),c.trace.setSpanContext(t,{...n,isRemote:!0,traceFlags:n.traceFlags||c.TraceFlags.SAMPLED})):t}};d();var In=O(P(),1),nA=O(Wo(),1);var xn=class{export(t,e){let n=$();if(!n?.telemetry){c.diag.warn("@vercel/otel: no telemetry context found"),e({code:In.ExportResultCode.SUCCESS,error:void 0});return}try{let o=nA.JsonTraceSerializer.serializeRequest(t);if(!o)throw new Error("Failed to serialize spans");let s=JSON.parse(new TextDecoder().decode(o));n.telemetry.reportSpans(s),e({code:In.ExportResultCode.SUCCESS,error:void 0})}catch(o){e({code:In.ExportResultCode.FAILED,error:o instanceof Error?o:new Error(String(o))})}}shutdown(){return Promise.resolve()}forceFlush(){return Promise.resolve()}};function J(r){let t=process.env[r];if(!(!t||t.trim()===""))return t}function oA(r){return J(r)?.split(",").map(t=>t.trim()).filter(t=>t!=="")}d();function Es(){return!!$()?.telemetry?.traceDrains?.length}var sA=!1,Fe=class{constructor(t){this.processor=t}forceFlush(){return this.processor.forceFlush()}shutdown(){return this.processor.shutdown()}onStart(t,e){if(Es()){sA||(sA=!0,c.diag.debug("@vercel/otel: skipping automatic exporter due to configured trace drains"));return}this.processor.onStart(t,e)}onEnd(t){Es()||this.processor.onEnd(t)}};var gx={ALL:c.DiagLogLevel.ALL,VERBOSE:c.DiagLogLevel.VERBOSE,DEBUG:c.DiagLogLevel.DEBUG,INFO:c.DiagLogLevel.INFO,WARN:c.DiagLogLevel.WARN,ERROR:c.DiagLogLevel.ERROR,NONE:c.DiagLogLevel.NONE},Dn=class{constructor(t={}){this.configuration=t}start(){let t=Nx(),e=this.configuration,n=process.env.NEXT_RUNTIME||"nodejs",o=!!t.OTEL_SDK_DISABLED;if(process.env.OTEL_LOG_LEVEL&&c.diag.setLogger(new c.DiagConsoleLogger,{logLevel:gx[process.env.OTEL_LOG_LEVEL.toUpperCase()]}),o)return;let s=e.idGenerator??new Rt;this.contextManager=bx(e.contextManager);let i=t.OTEL_SERVICE_NAME||e.serviceName||"app",a=Re(yp({attributes:e.attributes,runtime:n,serviceName:i})),_=e.resourceDetectors??[gr];if(e.autoDetectResources??!0){let M=oo({detectors:_});a=a.merge(M)}let T=Px(e.propagators,e,t),l=Cx(e.traceSampler,t),A=Lx(e.spanProcessors,e,t);A.length===0&&c.diag.warn("@vercel/otel: No span processors configured. No spans will be exported.");let h=e.spanLimits,R=new ge({resource:a,idGenerator:s,sampler:l,spanLimits:h,spanProcessors:[new fn(A,e.attributesFromHeaders)]});if(c.trace.setGlobalTracerProvider(R),c.propagation.setGlobalPropagator(new Ct.CompositePropagator({propagators:T})),this.tracerProvider=R,e.logRecordProcessors){let x=new Ne({resource:a,processors:e.logRecordProcessors});this.loggerProvider=x,W.logs.setGlobalLoggerProvider(x)}if(e.metricReaders||e.views){let x=new ye({resource:a,views:e.views??[],readers:e.metricReaders??[]});c.metrics.setGlobalMeterProvider(x),this.meterProvider=x}let I=Mx(e.instrumentations,e.instrumentationConfig);this.disableInstrumentations=_o({instrumentations:I}),c.diag.info("@vercel/otel: started",i,n)}async shutdown(){let t=[];this.tracerProvider&&t.push(this.tracerProvider.shutdown()),this.loggerProvider&&t.push(this.loggerProvider.shutdown()),this.meterProvider&&t.push(this.meterProvider.shutdown()),c.diag.info("@vercel/otel: shutting down",t.length,process.env.NEXT_RUNTIME),await Promise.all(t),this.contextManager&&this.contextManager.disable();let{disableInstrumentations:e}=this;e&&e()}};function Nx(){return{OTEL_SDK_DISABLED:J("OTEL_SDK_DISABLED"),OTEL_SERVICE_NAME:J("OTEL_SERVICE_NAME"),OTEL_PROPAGATORS:oA("OTEL_PROPAGATORS"),OTEL_TRACES_SAMPLER:J("OTEL_TRACES_SAMPLER"),OTEL_TRACES_SAMPLER_ARG:J("OTEL_TRACES_SAMPLER_ARG"),OTEL_EXPORTER_OTLP_TRACES_ENDPOINT:J("OTEL_EXPORTER_OTLP_TRACES_ENDPOINT"),OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:J("OTEL_EXPORTER_OTLP_TRACES_PROTOCOL"),OTEL_EXPORTER_OTLP_PROTOCOL:J("OTEL_EXPORTER_OTLP_PROTOCOL"),OTEL_EXPORTER_OTLP_ENDPOINT:J("OTEL_EXPORTER_OTLP_ENDPOINT"),OTEL_EXPORTER_OTLP_HEADERS:J("OTEL_EXPORTER_OTLP_HEADERS"),OTEL_EXPORTER_OTLP_TRACES_HEADERS:J("OTEL_EXPORTER_OTLP_TRACES_HEADERS")}}function Mx(r,t){return(r??["auto"]).map(e=>e==="auto"?(c.diag.debug("@vercel/otel: Configure instrumentations: fetch",t?.fetch),[new ue(t?.fetch)]):e==="fetch"?(c.diag.debug("@vercel/otel: Configure instrumentations: fetch",t?.fetch),new ue(t?.fetch)):e).flat()}function Px(r,t,e){let n=process.env.OTEL_PROPAGATORS&&e.OTEL_PROPAGATORS&&e.OTEL_PROPAGATORS.length>0?e.OTEL_PROPAGATORS:void 0;return(r??n??["auto"]).map(o=>{if(o==="none")return[];if(o==="auto"){let s=[];return s.push({name:"tracecontext",propagator:new He}),s.push({name:"baggage",propagator:new Ct.W3CBaggagePropagator}),s.push({name:"vercel-runtime",propagator:new Ln}),c.diag.debug(`@vercel/otel: Configure propagators: ${s.map(i=>i.name).join(", ")}`),s.map(i=>i.propagator)}if(o==="tracecontext")return c.diag.debug("@vercel/otel: Configure propagator: tracecontext"),new He;if(o==="baggage")return c.diag.debug("@vercel/otel: Configure propagator: baggage"),new Ct.W3CBaggagePropagator;if(typeof o=="string")throw new Error(`Unknown propagator: "${o}"`);return o}).flat()}var iA="always_on",Te=1;function Cx(r,t){if(r&&typeof r!="string")return r;let e=r&&r!=="auto"?r:t.OTEL_TRACES_SAMPLER||iA;switch(c.diag.debug("@vercel/otel: Configure sampler: ",e),e){case"always_on":return new B;case"always_off":return new k;case"parentbased_always_on":return new K({root:new B});case"parentbased_always_off":return new K({root:new k});case"traceidratio":return new At(aA(t));case"parentbased_traceidratio":return new K({root:new At(aA(t))});default:return c.diag.error(`@vercel/otel: OTEL_TRACES_SAMPLER value "${String(t.OTEL_TRACES_SAMPLER)} invalid, defaulting to ${iA}".`),new B}}function aA(r){if(r.OTEL_TRACES_SAMPLER_ARG===void 0||r.OTEL_TRACES_SAMPLER_ARG==="")return c.diag.error(`@vercel/otel: OTEL_TRACES_SAMPLER_ARG is blank, defaulting to ${Te}.`),Te;c.diag.debug("@vercel/otel: Configure sampler probability: ",r.OTEL_TRACES_SAMPLER_ARG);let t=Number(r.OTEL_TRACES_SAMPLER_ARG);return isNaN(t)?(c.diag.error(`@vercel/otel: OTEL_TRACES_SAMPLER_ARG=${r.OTEL_TRACES_SAMPLER_ARG} was given, but it is invalid, defaulting to ${Te}.`),Te):t<0||t>1?(c.diag.error(`@vercel/otel: OTEL_TRACES_SAMPLER_ARG=${r.OTEL_TRACES_SAMPLER_ARG} was given, but it is out of range ([0..1]), defaulting to ${Te}.`),Te):t}function Lx(r,t,e){return[...(r??["auto"]).flatMap(n=>{if(n==="auto"){let o=[new dt(new xn)];if(process.env.VERCEL_OTEL_ENDPOINTS){let s=process.env.VERCEL_OTEL_ENDPOINTS_PORT||"4318",i=process.env.VERCEL_OTEL_ENDPOINTS_PROTOCOL||"http/protobuf";c.diag.debug("@vercel/otel: Configure vercel otel collector on port: ",s,i);let a={url:`http://localhost:${s}/v1/traces`,headers:{}},_=i==="http/protobuf"?new wt(a):new ce(a);o.push(new Fe(new dt(_)))}else(!t.traceExporter||t.traceExporter==="auto"||e.OTEL_EXPORTER_OTLP_TRACES_ENDPOINT||e.OTEL_EXPORTER_OTLP_ENDPOINT)&&o.push(new Fe(new dt(Ix(e))));return o}return n}).filter(Ux),...t.traceExporter&&t.traceExporter!=="auto"?[new dt(t.traceExporter)]:[]]}function Ix(r){let t=r.OTEL_EXPORTER_OTLP_TRACES_PROTOCOL??r.OTEL_EXPORTER_OTLP_PROTOCOL??"http/protobuf",e=Dx(r),n={...r.OTEL_EXPORTER_OTLP_HEADERS?(0,Ct.parseKeyPairsIntoRecord)(r.OTEL_EXPORTER_OTLP_HEADERS):{},...r.OTEL_EXPORTER_OTLP_TRACES_HEADERS?(0,Ct.parseKeyPairsIntoRecord)(r.OTEL_EXPORTER_OTLP_TRACES_HEADERS):{}};switch(c.diag.debug("@vercel/otel: Configure trace exporter: ",t,e,`headers: ${Object.keys(n).join(",")||"<none>"}`),t){case"http/json":return new ce({url:e,headers:n});case"http/protobuf":return new wt({url:e,headers:n});default:return c.diag.warn(`@vercel/otel: Unsupported OTLP traces protocol: ${t}. Using http/protobuf.`),new wt}}var _A="v1/traces",xx=`http://localhost:4318/${_A}`;function Dx(r){let t=r.OTEL_EXPORTER_OTLP_TRACES_ENDPOINT;if(t&&typeof t=="string")return t;let e=r.OTEL_EXPORTER_OTLP_ENDPOINT;return e&&typeof e=="string"?`${e}/${_A}`:xx}function Ux(r){return r!=null}function bx(r){if(r===void 0){c.diag.debug("@vercel/otel: Configure context manager: default");let t=new cA.AsyncLocalStorageContextManager;return t.enable(),c.context.setGlobalContextManager(t),t}return c.diag.debug("@vercel/otel: Configure context manager: from configuration"),r.enable(),c.context.setGlobalContextManager(r),r}function LB(r){let t;r?typeof r=="string"?t={serviceName:r}:t=r:t={},new Dn(t).start()}export{ue as FetchInstrumentation,ce as OTLPHttpJsonTraceExporter,wt as OTLPHttpProtoTraceExporter,LB as registerOTel};
16
+ `,Io(s,t))}return n}};var rn=class{_backingStorages;constructor(t){this._backingStorages=t}record(t,e,n,o){this._backingStorages.forEach(s=>{s.record(t,e,n,o)})}};d();d();var nn=class{_instrumentName;_valueType;_buffer=new H;constructor(t,e){this._instrumentName=t,this._valueType=e}observe(t,e={}){if(typeof t!="number"){c.diag.warn(`non-number value provided to metric ${this._instrumentName}: ${t}`);return}this._valueType===c.ValueType.INT&&!Number.isInteger(t)&&(c.diag.warn(`INT value type cannot accept a floating-point value for ${this._instrumentName}, ignoring the fractional digits.`),t=Math.trunc(t),!Number.isInteger(t))||this._buffer.set(e,t)}},on=class{_buffer=new Map;observe(t,e,n={}){if(!be(t))return;let o=this._buffer.get(t);if(o==null&&(o=new H,this._buffer.set(t,o)),typeof e!="number"){c.diag.warn(`non-number value provided to metric ${t._descriptor.name}: ${e}`);return}t._descriptor.valueType===c.ValueType.INT&&!Number.isInteger(e)&&(c.diag.warn(`INT value type cannot accept a floating-point value for ${t._descriptor.name}, ignoring the fractional digits.`),e=Math.trunc(e),!Number.isInteger(e))||o.set(n,e)}};var sn=class{_callbacks=[];_batchCallbacks=[];addCallback(t,e){this._findCallback(t,e)>=0||this._callbacks.push({callback:t,instrument:e})}removeCallback(t,e){let n=this._findCallback(t,e);n<0||this._callbacks.splice(n,1)}addBatchCallback(t,e){let n=new Set(e.filter(be));if(n.size===0){c.diag.error("BatchObservableCallback is not associated with valid instruments",e);return}this._findBatchCallback(t,n)>=0||this._batchCallbacks.push({callback:t,instruments:n})}removeBatchCallback(t,e){let n=new Set(e.filter(be)),o=this._findBatchCallback(t,n);o<0||this._batchCallbacks.splice(o,1)}async observe(t,e){let n=this._observeCallbacks(t,e),o=this._observeBatchCallbacks(t,e);return(await QS([...n,...o])).filter(JS).map(a=>a.reason)}_observeCallbacks(t,e){return this._callbacks.map(async({callback:n,instrument:o})=>{let s=new nn(o._descriptor.name,o._descriptor.valueType),i=Promise.resolve(n(s));e!=null&&(i=uo(i,e)),await i,o._metricStorages.forEach(a=>{a.record(s._buffer,t)})})}_observeBatchCallbacks(t,e){return this._batchCallbacks.map(async({callback:n,instruments:o})=>{let s=new on,i=Promise.resolve(n(s));e!=null&&(i=uo(i,e)),await i,o.forEach(a=>{let _=s._buffer.get(a);_!=null&&a._metricStorages.forEach(E=>{E.record(_,t)})})})}_findCallback(t,e){return this._callbacks.findIndex(n=>n.callback===t&&n.instrument===e)}_findBatchCallback(t,e){return this._batchCallbacks.findIndex(n=>n.callback===t&&ZS(n.instruments,e))}};var an=class extends te{_attributesProcessor;_aggregationCardinalityLimit;_deltaMetricStorage;_temporalMetricStorage;constructor(t,e,n,o,s){super(t),this._attributesProcessor=n,this._aggregationCardinalityLimit=s,this._deltaMetricStorage=new ee(e,this._aggregationCardinalityLimit),this._temporalMetricStorage=new re(e,o)}record(t,e,n,o){e=this._attributesProcessor.process(e,n),this._deltaMetricStorage.record(t,e,n,o)}collect(t,e){let n=this._deltaMetricStorage.collect();return this._temporalMetricStorage.buildMetrics(t,this._instrumentDescriptor,n,e)}};var xo=class{process(t,e){return t}},Do=class{_processors;constructor(t){this._processors=t}process(t,e){let n=t;for(let o of this._processors)n=o.process(n,e);return n}};function cn(){return dI}function up(r){return new Do(r)}var dI=new xo;var _n=class{_meterProviderSharedState;_instrumentationScope;metricStorageRegistry=new en;observableRegistry=new sn;meter;constructor(t,e){this._meterProviderSharedState=t,this._instrumentationScope=e,this.meter=new Zr(this)}registerMetricStorage(t){let e=this._registerMetricStorage(t,an);return e.length===1?e[0]:new rn(e)}registerAsyncMetricStorage(t){return this._registerMetricStorage(t,tn)}async collect(t,e,n){let o=await this.observableRegistry.observe(e,n?.timeoutMillis),s=this.metricStorageRegistry.getStorages(t);if(s.length===0)return null;let i=s.map(a=>a.collect(t,e)).filter(XS);return i.length===0?{errors:o}:{scopeMetrics:{scope:this._instrumentationScope,metrics:i},errors:o}}_registerMetricStorage(t,e){let o=this._meterProviderSharedState.viewRegistry.findViews(t,this._instrumentationScope).map(s=>{let i=cp(s,t),a=this.metricStorageRegistry.findOrUpdateCompatibleStorage(i);if(a!=null)return a;let _=s.aggregation.createAggregator(i),E=new e(i,_,s.attributesProcessor,this._meterProviderSharedState.metricCollectors,s.aggregationCardinalityLimit);return this.metricStorageRegistry.register(E),E});if(o.length===0){let i=this._meterProviderSharedState.selectAggregations(t.type).map(([a,_])=>{let E=this.metricStorageRegistry.findOrUpdateCompatibleCollectorStorage(a,t);if(E!=null)return E;let u=_.createAggregator(t),p=a.selectCardinalityLimit(t.type),A=new e(t,u,cn(),[a],p);return this.metricStorageRegistry.registerForCollector(a,A),A});o=o.concat(i)}return o}};var En=class{resource;viewRegistry=new jr;metricCollectors=[];meterSharedStates=new Map;constructor(t){this.resource=t}getMeterSharedState(t){let e=zS(t),n=this.meterSharedStates.get(e);return n==null&&(n=new _n(this,t),this.meterSharedStates.set(e,n)),n}selectAggregations(t){let e=[];for(let n of this.metricCollectors)e.push([n,Kr(n.selectAggregation(t))]);return e}};var Tp=O(P()),un=class{_sharedState;_metricReader;constructor(t,e){this._sharedState=t,this._metricReader=e}async collect(t){let e=(0,Tp.millisToHrTime)(Date.now()),n=[],o=[],s=Array.from(this._sharedState.meterSharedStates.values()).map(async i=>{let a=await i.collect(this,e,t);a?.scopeMetrics!=null&&n.push(a.scopeMetrics),a?.errors!=null&&o.push(...a.errors)});return await Promise.all(s),{resourceMetrics:{resource:this._sharedState.resource,scopeMetrics:n},errors:o}}async forceFlush(t){await this._metricReader.forceFlush(t)}async shutdown(t){await this._metricReader.shutdown(t)}selectAggregationTemporality(t){return this._metricReader.selectAggregationTemporality(t)}selectAggregation(t){return this._metricReader.selectAggregation(t)}selectCardinalityLimit(t){return this._metricReader.selectCardinalityLimit?.(t)??2e3}};var mI=/[\^$\\.+?()[\]{}|]/g,ne=class r{_matchAll;_regexp;constructor(t){t==="*"?(this._matchAll=!0,this._regexp=/.*/):(this._matchAll=!1,this._regexp=new RegExp(r.escapePattern(t)))}match(t){return this._matchAll?!0:this._regexp.test(t)}static escapePattern(t){return`^${t.replace(mI,"\\$&").replace("*",".*")}$`}static hasWildcard(t){return t.includes("*")}},gt=class{_matchAll;_pattern;constructor(t){this._matchAll=t===void 0,this._pattern=t}match(t){return!!(this._matchAll||t===this._pattern)}};var Tn=class{_nameFilter;_type;_unitFilter;constructor(t){this._nameFilter=new ne(t?.name??"*"),this._type=t?.type,this._unitFilter=new gt(t?.unit)}getType(){return this._type}getNameFilter(){return this._nameFilter}getUnitFilter(){return this._unitFilter}};var Sn=class{_nameFilter;_versionFilter;_schemaUrlFilter;constructor(t){this._nameFilter=new gt(t?.name),this._versionFilter=new gt(t?.version),this._schemaUrlFilter=new gt(t?.schemaUrl)}getNameFilter(){return this._nameFilter}getVersionFilter(){return this._versionFilter}getSchemaUrlFilter(){return this._schemaUrlFilter}};function fI(r){return r.instrumentName==null&&r.instrumentType==null&&r.instrumentUnit==null&&r.meterName==null&&r.meterVersion==null&&r.meterSchemaUrl==null}function hI(r){if(fI(r))throw new Error("Cannot create view with no selector arguments supplied");if(r.name!=null&&(r?.instrumentName==null||ne.hasWildcard(r.instrumentName)))throw new Error("Views with a specified name must be declared with an instrument selector that selects at most one instrument per meter.")}var pn=class{name;description;aggregation;attributesProcessor;instrumentSelector;meterSelector;aggregationCardinalityLimit;constructor(t){hI(t),t.attributesProcessors!=null?this.attributesProcessor=up(t.attributesProcessors):this.attributesProcessor=cn(),this.name=t.name,this.description=t.description,this.aggregation=Kr(t.aggregation??{type:Et.DEFAULT}),this.instrumentSelector=new Tn({name:t.instrumentName,type:t.instrumentType,unit:t.instrumentUnit}),this.meterSelector=new Sn({name:t.meterName,version:t.meterVersion,schemaUrl:t.meterSchemaUrl}),this.aggregationCardinalityLimit=t.aggregationCardinalityLimit}};var ye=class{_sharedState;_shutdown=!1;constructor(t){if(this._sharedState=new En(t?.resource??Ut()),t?.views!=null&&t.views.length>0)for(let e of t.views)this._sharedState.viewRegistry.addView(new pn(e));if(t?.readers!=null&&t.readers.length>0)for(let e of t.readers){let n=new un(this._sharedState,e);e.setMetricProducer(n),this._sharedState.metricCollectors.push(n)}}getMeter(t,e="",n={}){return this._shutdown?(c.diag.warn("A shutdown MeterProvider cannot provide a Meter"),(0,c.createNoopMeter)()):this._sharedState.getMeterSharedState({name:t,version:e,schemaUrl:n.schemaUrl}).meter}async shutdown(t){if(this._shutdown){c.diag.warn("shutdown may only be called once per MeterProvider");return}this._shutdown=!0,await Promise.all(this._sharedState.metricCollectors.map(e=>e.shutdown(t)))}async forceFlush(t){if(this._shutdown){c.diag.warn("invalid attempt to force flush after MeterProvider shutdown");return}await Promise.all(this._sharedState.metricCollectors.map(e=>e.forceFlush(t)))}};var _A=O(Ap(),1),Ct=O(P(),1);d();var DI=Symbol.for("@vercel/request-context");function $(){return globalThis[DI]?.get()}var dp="http.method",mp="http.url",mn="http.host",fp="http.scheme",Bo="http.status_code",hp="http.user_agent",wo="http.response_content_length_uncompressed",Rp="net.peer.port",Op="net.peer.name",gp="cloud.region";var Np="deployment.environment.name",Mp="deployment.id",Pp="cloud.provider",Cp="process.runtime.name",Lp="vcs.ref.head.name",Ip="vcs.ref.head.revision",xp="vcs.repository.name",Dp="vcs.repository.ref.revision";var Up="service.name",bp="service.version";function Go(r){return Object.fromEntries(Object.entries(r).filter(([t,e])=>e!==void 0))}function Vp({attributes:r,env:t=process.env,runtime:e,serviceName:n}){let o=t.VERCEL_ENV,s=t.VERCEL_DEPLOYMENT_ID,i=t.VERCEL_GIT_COMMIT_SHA,a=t.VERCEL_REGION,_=t.VERCEL_GIT_COMMIT_REF,E=t.VERCEL_GIT_REPO_SLUG;return Go({[Up]:n,"node.ci":t.CI?!0:void 0,"node.env":t.NODE_ENV,[Np]:o,env:o,[Pp]:"vercel",[gp]:a,"vercel.region":a,[Cp]:e,"vercel.runtime":e,[Lp]:_,[Ip]:i,[xp]:E,[Dp]:i,"vercel.sha":i,"vercel.host":t.VERCEL_URL||void 0,"vercel.branch_host":t.VERCEL_BRANCH_URL||void 0,[Mp]:s,"vercel.deployment_id":s,[bp]:s,"vercel.project_id":t.VERCEL_PROJECT_ID||void 0,...r})}function vp(r){return r?r.split("::").at(-1):void 0}function Bp(r=$(),t){if(!r)return;let e=t?bI(t,r.headers):void 0;return Go({[mn]:r.headers.host,[hp]:r.headers["user-agent"],"http.referer":r.headers.referer,"vercel.request_id":vp(r.headers["x-vercel-id"]),"vercel.matched_path":r.headers["x-matched-path"],"vercel.edge_region":process.env.VERCEL_REGION,...e})}var UI={keys(r){return[]},get(r,t){return r[t.toLocaleLowerCase()]}};function bI(r,t){if(typeof r=="function")return r(t,UI);let e={};for(let[n,o]of Object.entries(r)){let s=t[o.toLocaleLowerCase()];s!==void 0&&(e[n]=s)}return e}d();function ie(r){return(r&c.TraceFlags.SAMPLED)!==0}var fn=class{constructor(t,e){this.processors=t;this.attributesFromHeaders=e;this.rootSpanIds=new Map;this.waitSpanEnd=new Map}forceFlush(){return Promise.all(this.processors.map(t=>t.forceFlush().catch(e=>{c.diag.error("@vercel/otel: forceFlush failed:",e)}))).then(()=>{})}shutdown(){return Promise.all(this.processors.map(t=>t.shutdown().catch(()=>{}))).then(()=>{})}onStart(t,e){let{traceId:n,spanId:o,traceFlags:s}=t.spanContext(),i=!t.parentSpanContext?.spanId||!this.rootSpanIds.has(n);if(i?this.rootSpanIds.set(n,{rootSpanId:o,open:[]}):this.rootSpanIds.get(n)?.open.push(t),i&&ie(s)){let a=$(),_=Bp(a,this.attributesFromHeaders);_&&t.setAttributes(_),a&&a.waitUntil(async()=>{if(this.rootSpanIds.has(n)){let E=new Promise(p=>{this.waitSpanEnd.set(n,p)}),u;await Promise.race([E,new Promise(p=>{u=setTimeout(()=>{this.waitSpanEnd.delete(n),p(void 0)},50)})]),u&&clearTimeout(u)}return this.forceFlush()})}for(let a of this.processors)a.onStart(t,e)}onEnd(t){let{traceId:e,spanId:n,traceFlags:o}=t.spanContext(),s=ie(o),i=this.rootSpanIds.get(e),a=i?.rootSpanId===n;if(s){let _=VI(t);_&&Object.assign(t.attributes,_)}if(a){if(this.rootSpanIds.delete(e),i.open.length>0){for(let _ of i.open)if(!_.ended&&_.spanContext().spanId!==n)try{_.end()}catch(E){c.diag.error("@vercel/otel: onEnd failed:",E)}}}else if(i)for(let _=0;_<i.open.length;_++)i.open[_]?.spanContext().spanId===n&&i.open.splice(_,1);for(let _ of this.processors)_.onEnd(t);if(a){let _=this.waitSpanEnd.get(e);_&&(this.waitSpanEnd.delete(e),_())}}},yI={[c.SpanKind.INTERNAL]:"internal",[c.SpanKind.SERVER]:"server",[c.SpanKind.CLIENT]:"client",[c.SpanKind.PRODUCER]:"producer",[c.SpanKind.CONSUMER]:"consumer"};function VI(r){let{kind:t,attributes:e}=r,{"operation.name":n,"resource.name":o,"span.type":s,"next.span_type":i,"http.method":a,"http.route":_}=e;if(n)return;let E=o??(a&&typeof a=="string"&&_&&typeof _=="string"?`${a} ${_}`:_);if(r.kind===c.SpanKind.SERVER&&a&&_&&typeof a=="string"&&typeof _=="string")return{"operation.name":"web.request","resource.name":E};let u=r.instrumentationScope.name,p=i??s;if(p&&typeof p=="string"){let A=wp(u,p);return _?{"operation.name":A,"resource.name":E}:{"operation.name":A}}return{"operation.name":wp(u,t===c.SpanKind.INTERNAL?"":yI[t])}}function wp(r,t){if(!r)return t;let e=r.replace(/[ @./]/g,"_");return e.startsWith("_")&&(e=e.slice(1)),t?`${e}.${t}`:e}var Qp=O(Wo(),1);d();var ae=class{constructor(t={}){this._shutdownOnce={isCalled:!1};this._sendingPromises=[];this.url=t.url||this.getDefaultUrl(t),t.headers&&(this._headers=t.headers),this.onInit()}onShutdown(){c.diag.debug("@vercel/otel/otlp: onShutdown")}onInit(){c.diag.debug("@vercel/otel/otlp: onInit")}export(t,e){if(this._shutdownOnce.isCalled){c.diag.debug("@vercel/otel/otlp: Shutdown already started. Cannot send objects");return}this.send(t,()=>e({code:0}),n=>e({code:1,error:n}))}async forceFlush(){await Promise.all(this._sendingPromises)}async shutdown(){this._shutdownOnce.isCalled=!0,this.onShutdown(),await this.forceFlush()}send(t,e,n){if(this._shutdownOnce.isCalled){c.diag.debug("@vercel/otel/otlp: Shutdown already started. Cannot send objects");return}let o=this.convert(t),s,i,a;try{({body:s,contentType:i,headers:a}=this.toMessage(o))}catch(E){c.diag.warn("@vercel/otel/otlp: no proto",E);return}let _=fetch(this.url,{method:"POST",body:s,headers:{...this._headers,...a,"Content-Type":i,"User-Agent":"OTel-OTLP-Exporter-JavaScript/0.46.0"},next:{internal:!0}}).then(E=>{c.diag.debug("@vercel/otel/otlp: onSuccess",E.status,E.statusText),e(),E.arrayBuffer().catch(()=>{})}).catch(E=>{c.diag.error("@vercel/otel/otlp: onError",E),n(E)}).finally(()=>{let E=this._sendingPromises.indexOf(_);this._sendingPromises.splice(E,1)});this._sendingPromises.push(_)}};var $I="v1/traces",XI=`http://localhost:4318/${$I}`;function On(r){return typeof r.url=="string"?r.url:XI}var ce=class{constructor(t={}){this.impl=new qo(t)}export(t,e){this.impl.export(t,e)}shutdown(){return this.impl.shutdown()}forceFlush(){return this.impl.forceFlush()}},qo=class extends ae{convert(t){return t}toMessage(t){let e=Qp.JsonTraceSerializer.serializeRequest(t);return{body:new TextDecoder().decode(e),contentType:"application/json"}}getDefaultUrl(t){return On(t)}};var Zl=O(jo(),1);var zl=O(Xl(),1);function Ql(r){let t=new zl.Writer;return ix(r,t),t.finish()}function ix(r,t){if(r.resourceSpans!=null&&r.resourceSpans.length)for(let e=0;e<r.resourceSpans.length;++e)ax(r.resourceSpans[e],t.uint32(10).fork()).ldelim();return t}function ax(r,t){if(r.resource!=null&&cx(r.resource,t.uint32(10).fork()).ldelim(),r.scopeSpans!=null&&r.scopeSpans.length)for(let e=0;e<r.scopeSpans.length;++e)_x(r.scopeSpans[e],t.uint32(18).fork()).ldelim();return r.schemaUrl!=null&&t.uint32(26).string(r.schemaUrl),t}function cx(r,t){if(r.attributes!=null&&r.attributes.length)for(let e=0;e<r.attributes.length;++e)Ee(r.attributes[e],t.uint32(10).fork()).ldelim();return r.droppedAttributesCount!=null&&t.uint32(16).uint32(r.droppedAttributesCount),t}function _x(r,t){if(r.scope!=null&&Tx(r.scope,t.uint32(10).fork()).ldelim(),r.spans!=null&&r.spans.length)for(let e=0;e<r.spans.length;++e)Sx(r.spans[e],t.uint32(18).fork()).ldelim();return r.schemaUrl!=null&&t.uint32(26).string(r.schemaUrl),t}function Ee(r,t){return r.key!=null&&t.uint32(10).string(r.key),r.value!=null&&Jl(r.value,t.uint32(18).fork()).ldelim(),t}function Jl(r,t){return r.stringValue!=null&&t.uint32(10).string(r.stringValue),r.boolValue!=null&&t.uint32(16).bool(r.boolValue),r.intValue!=null&&t.uint32(24).int64(r.intValue),r.doubleValue!=null&&t.uint32(33).double(r.doubleValue),r.arrayValue!=null&&Ex(r.arrayValue,t.uint32(42).fork()).ldelim(),r.kvlistValue!=null&&ux(r.kvlistValue,t.uint32(50).fork()).ldelim(),r.bytesValue!=null&&t.uint32(58).bytes(r.bytesValue),t}function Ex(r,t){if(r.values!=null&&r.values.length)for(let e=0;e<r.values.length;++e)Jl(r.values[e],t.uint32(10).fork()).ldelim();return t}function ux(r,t){if(r.values!=null&&r.values.length)for(let e=0;e<r.values.length;++e)Ee(r.values[e],t.uint32(10).fork()).ldelim();return t}function Tx(r,t){if(r.name!=null&&t.uint32(10).string(r.name),r.version!=null&&t.uint32(18).string(r.version),r.attributes!=null&&r.attributes.length)for(let e=0;e<r.attributes.length;++e)Ee(r.attributes[e],t.uint32(26).fork()).ldelim();return r.droppedAttributesCount!=null&&t.uint32(32).uint32(r.droppedAttributesCount),t}function Sx(r,t){if(r.traceId!=null&&t.uint32(10).bytes(r.traceId),r.spanId!=null&&t.uint32(18).bytes(r.spanId),r.traceState!=null&&t.uint32(26).string(r.traceState),r.parentSpanId!=null&&t.uint32(34).bytes(r.parentSpanId),r.name!=null&&t.uint32(42).string(r.name),r.kind!=null&&t.uint32(48).int32(r.kind),r.startTimeUnixNano!=null&&t.uint32(57).fixed64(r.startTimeUnixNano),r.endTimeUnixNano!=null&&t.uint32(65).fixed64(r.endTimeUnixNano),r.attributes!=null&&r.attributes.length)for(let e=0;e<r.attributes.length;++e)Ee(r.attributes[e],t.uint32(74).fork()).ldelim();if(r.droppedAttributesCount!=null&&t.uint32(80).uint32(r.droppedAttributesCount),r.events!=null&&r.events.length)for(let e=0;e<r.events.length;++e)lx(r.events[e],t.uint32(90).fork()).ldelim();if(r.droppedEventsCount!=null&&t.uint32(96).uint32(r.droppedEventsCount),r.links!=null&&r.links.length)for(let e=0;e<r.links.length;++e)Ax(r.links[e],t.uint32(106).fork()).ldelim();return r.droppedLinksCount!=null&&t.uint32(112).uint32(r.droppedLinksCount),r.status!=null&&px(r.status,t.uint32(122).fork()).ldelim(),t}function px(r,t){return r.message!=null&&t.uint32(18).string(r.message),r.code!=null&&t.uint32(24).int32(r.code),t}function lx(r,t){if(r.timeUnixNano!=null&&t.uint32(9).fixed64(r.timeUnixNano),r.name!=null&&t.uint32(18).string(r.name),r.attributes!=null&&r.attributes.length)for(let e=0;e<r.attributes.length;++e)Ee(r.attributes[e],t.uint32(26).fork()).ldelim();return r.droppedAttributesCount!=null&&t.uint32(32).uint32(r.droppedAttributesCount),t}function Ax(r,t){if(r.traceId!=null&&t.uint32(10).bytes(r.traceId),r.spanId!=null&&t.uint32(18).bytes(r.spanId),r.traceState!=null&&t.uint32(26).string(r.traceState),r.attributes!=null&&r.attributes.length)for(let e=0;e<r.attributes.length;++e)Ee(r.attributes[e],t.uint32(34).fork()).ldelim();return r.droppedAttributesCount!=null&&t.uint32(40).uint32(r.droppedAttributesCount),t}var wt=class{constructor(t={}){this.impl=new as(t)}export(t,e){this.impl.export(t,e)}shutdown(){return this.impl.shutdown()}forceFlush(){return this.impl.forceFlush()}},as=class extends ae{convert(t){return(0,Zl.createExportTraceServiceRequest)(t)}toMessage(t){return{body:Ql(t),contentType:"application/x-protobuf",headers:{accept:"application/x-protobuf"}}}getDefaultUrl(t){return On(t)}};d();function tA(r,t){return r.replace(/\{(?<temp1>[^{}]+)\}/g,(e,n)=>{let o=t[n];return o!==void 0?String(o):e})}var ue=class{constructor(t={}){this.instrumentationName="@vercel/otel/fetch";this.instrumentationVersion="1.0.0";this.config=t}getConfig(){return this.config}setConfig(){}setTracerProvider(t){this.tracerProvider=t}setMeterProvider(){}shouldIgnore(t,e){let n=this.config.ignoreUrls??[];if(e?.opentelemetry?.ignore!==void 0)return e.opentelemetry.ignore;if(n.length===0)return!1;let o=t.toString();return n.some(s=>typeof s=="string"?s==="*"?!0:o.startsWith(s):s.test(o))}shouldPropagate(t,e){let n=process.env.VERCEL_URL||null,o=process.env.VERCEL_BRANCH_URL||null,s=this.config.propagateContextUrls??[],i=this.config.dontPropagateContextUrls??[];if(e?.opentelemetry?.propagateContext)return e.opentelemetry.propagateContext;let a=t.toString();return i.length>0&&i.some(_=>typeof _=="string"?_==="*"?!0:a.startsWith(_):_.test(a))?!1:n&&t.protocol==="https:"&&(t.host===n||t.host===o||t.host===$()?.headers.host)||!n&&t.protocol==="http:"&&t.hostname==="localhost"?!0:s.some(_=>typeof _=="string"?_==="*"?!0:a.startsWith(_):_.test(a))}startSpan({tracer:t,url:e,fetchType:n,method:o="GET",name:s,attributes:i={}}){let a=this.config.resourceNameTemplate,_={[dp]:o,[mp]:e.toString(),[mn]:e.host,[fp]:e.protocol.replace(":",""),[Op]:e.hostname,[Rp]:e.port},E=a?tA(a,_):fx(e.toString()),u=s??`${n} ${o} ${e.toString()}`,p=c.context.active();return t.startSpan(u,{kind:c.SpanKind.CLIENT,attributes:{..._,"operation.name":`${n}.${o}`,"http.client.name":n,"resource.name":E,...i}},p)}instrumentHttp(t,e){let{tracerProvider:n}=this;if(!n)return;let o=n.getTracer(this.instrumentationName,this.instrumentationVersion),{attributesFromRequestHeaders:s,attributesFromResponseHeaders:i}=this.config,a=t.request,E=(u=>(p,A,h)=>{let R,I={},x;if(typeof p=="string"||p instanceof URL?(R=new URL(p.toString()),typeof A=="function"?x=A:A&&typeof h=="function"?(I=A,x=h):A&&(I=A)):(I=p,typeof A=="function"&&(x=A),R=Rx(I,e)),this.shouldIgnore(R))return u.apply(this,[R,I,x]);let M=this.startSpan({tracer:o,url:R,fetchType:"http",method:I.method||"GET"});if(!M.isRecording()||!ie(M.spanContext().traceFlags))return M.end(),u.apply(this,[R,I,x]);if(this.shouldPropagate(R)){let Z=c.context.active(),Lt=c.trace.setSpan(Z,M);c.propagation.inject(Lt,I.headers||{},mx)}s&&Cn(M,s,I.headers||{},rA);try{let Z=Date.now(),Lt=u.apply(this,[R,I,x]);return Lt.prependListener("response",w=>{let uA=Date.now()-Z;M.setAttribute("http.response_time",uA),w.statusCode!==void 0?(M.setAttribute(Bo,w.statusCode),w.statusCode>=500&&Gt(M,`Status: ${w.statusCode}`)):Gt(M,"Response status code is undefined"),i&&Cn(M,i,w.headers,rA),Lt.listenerCount("response")<=1&&w.resume(),w.on("end",()=>{let Ye,Un=w.statusCode;w.aborted&&!w.complete?Ye={code:c.SpanStatusCode.ERROR}:Un&&Un>=100&&Un<500?Ye={code:c.SpanStatusCode.UNSET}:Ye={code:c.SpanStatusCode.ERROR},M.setStatus(Ye),M.isRecording()&&(w.headers["content-length"]&&M.setAttribute(wo,w.headers["content-length"]),M.end())})}),Lt.on("error",w=>{M.isRecording()&&(Gt(M,w),M.end())}),Lt.on("close",()=>{M.isRecording()&&M.end()}),Lt}catch(Z){throw Gt(M,Z),M.end(),Z}})(a);t.request=E,t.get=(...u)=>{let p=E(...u);return p.end(),p}}instrumentFetch(){let{tracerProvider:t}=this;if(!t)return;let e=t.getTracer(this.instrumentationName,this.instrumentationVersion),{attributesFromRequestHeaders:n,attributesFromResponseHeaders:o}=this.config;process.env.NEXT_OTEL_FETCH_DISABLED="1";let s=globalThis.fetch;this.originalFetch=s;let i=async(a,_)=>{let E=_;if(E?.next?.internal)return s(a,E);let u=new Request(a instanceof Request?a.clone():a,E),p=new URL(u.url);if(this.shouldIgnore(p,E))return s(a,E);let A=this.startSpan({tracer:e,url:p,fetchType:"fetch",method:u.method,name:E?.opentelemetry?.spanName,attributes:E?.opentelemetry?.attributes});if(!A.isRecording()||!ie(A.spanContext().traceFlags))return A.end(),s(a,E);if(this.shouldPropagate(p,E)){let h=c.context.active(),R=c.trace.setSpan(h,A);c.propagation.inject(R,u.headers,dx)}n&&Cn(A,n,u.headers,eA);try{let h=Date.now();E?.body&&E.body instanceof FormData&&u.headers.delete("content-type");let R=await s(a,{...E,headers:u.headers}),I=Date.now()-h;return A.setAttribute(Bo,R.status),A.setAttribute("http.response_time",I),o&&Cn(A,o,R.headers,eA),R.status>=500&&Gt(A,`Status: ${R.status} (${R.statusText})`),R.body?hx(R).then(x=>{A.isRecording()&&(A.setAttribute(wo,x),A.end())},x=>{A.isRecording()&&(Gt(A,x),A.end())}):A.end(),R}catch(h){throw Gt(A,h),A.end(),h}};globalThis.fetch=i}enable(){this.disable(),this.instrumentFetch();try{let t=us("node:http"),e=us("node:https");this.instrumentHttp(t,"http:"),this.instrumentHttp(e,"https:")}catch{}}disable(){this.originalFetch&&(globalThis.fetch=this.originalFetch)}},dx={set(r,t,e){r.set(t,e)}},eA={get(r,t){let e=r.get(t);if(e!==null)return e.includes(",")?e.split(",").map(n=>n.trimStart()):e},keys(r){let t=[];return r.forEach((e,n)=>{t.push(n)}),t}},mx={set(r,t,e){r[t.toLowerCase()]=e}},rA={get(r,t){return r[t.toLowerCase()]},keys(r){return Object.keys(r)}};function fx(r){let t=r.indexOf("?");return t===-1?r:r.substring(0,t)}function hx(r){let t=0,n=r.clone().body?.getReader();if(!n)return Promise.resolve(0);let o=()=>n.read().then(({done:s,value:i})=>{if(!s)return t+=i.byteLength,o()});return o().then(()=>t)}function Gt(r,t){if(t instanceof Error)r.recordException(t),r.setStatus({code:c.SpanStatusCode.ERROR,message:t.message});else{let e=String(t);r.setStatus({code:c.SpanStatusCode.ERROR,message:e})}}function Cn(r,t,e,n){for(let[o,s]of Object.entries(t)){let i=n.get(e,s);i!==void 0&&r.setAttribute(o,i)}}function Rx(r,t){if(r.socketPath)throw new Error("Cannot construct a network URL: options.socketPath is specified, indicating a Unix domain socket.");let e=r.protocol??t;e&&!e.endsWith(":")&&(e+=":");let n=r.hostname,o=r.port??r.defaultPort;if(!n&&r.host){let E=r.host.split(":");n=E[0];let u=E[1];if(E.length>1&&u&&o===void 0){let p=parseInt(u,10);isNaN(p)||(o=p)}}n||(n="localhost");let s;if(o!==void 0&&o!==""){let E=parseInt(String(o),10);isNaN(E)?s=e==="https:"?443:80:s=E}else s=e==="https:"?443:80;let i=r.path||"/",a=`${e}//${n}:${s}`,_=new URL(i,a);if(r.auth){let E=r.auth.split(":");_.username=decodeURIComponent(E[0]||""),E.length>1&&(_.password=decodeURIComponent(E[1]||""))}return _}d();var nA=O(P(),1),Ox="00",cs="traceparent",_s="tracestate",He=class{fields(){return[cs,_s]}inject(t,e,n){let o=c.trace.getSpanContext(t);if(!o||(0,nA.isTracingSuppressed)(t)||!(0,c.isSpanContextValid)(o))return;let s=`${Ox}-${o.traceId}-${o.spanId}-0${Number(o.traceFlags||0).toString(16)}`;n.set(e,cs,s),o.traceState&&n.set(e,_s,o.traceState.serialize())}extract(t,e,n){let o=n.get(e,cs);if(!o)return t;let s=Array.isArray(o)?o[0]:o;if(typeof s!="string")return t;let i=gx(s);if(!i)return t;i.isRemote=!0;let a=n.get(e,_s);if(a){let _=Array.isArray(a)?a.join(","):a;i.traceState=(0,c.createTraceState)(typeof _=="string"?_:void 0)}return c.trace.setSpanContext(t,i)}};function gx(r){let[t,e,n,o,s]=r.split("-");return!t||!e||!n||!o||t.length!==2||e.length!==32||n.length!==16||o.length!==2||t==="00"&&s?null:{traceId:e,spanId:n,traceFlags:parseInt(o,16)}}d();var Ln=class{fields(){return[]}inject(){}extract(t){let e=$();if(!e?.telemetry)return c.diag.warn("@vercel/otel: Vercel telemetry extension not found."),t;let{rootSpanContext:n}=e.telemetry;return n?(c.diag.debug("@vercel/otel: Extracted root SpanContext from Vercel request context.",n),c.trace.setSpanContext(t,{...n,isRemote:!0,traceFlags:n.traceFlags||c.TraceFlags.SAMPLED})):t}};d();var In=O(P(),1),oA=O(Wo(),1);var xn=class{export(t,e){let n=$();if(!n?.telemetry){c.diag.warn("@vercel/otel: no telemetry context found"),e({code:In.ExportResultCode.SUCCESS,error:void 0});return}try{let o=oA.JsonTraceSerializer.serializeRequest(t);if(!o)throw new Error("Failed to serialize spans");let s=JSON.parse(new TextDecoder().decode(o));n.telemetry.reportSpans(s),e({code:In.ExportResultCode.SUCCESS,error:void 0})}catch(o){e({code:In.ExportResultCode.FAILED,error:o instanceof Error?o:new Error(String(o))})}}shutdown(){return Promise.resolve()}forceFlush(){return Promise.resolve()}};function J(r){let t=process.env[r];if(!(!t||t.trim()===""))return t}function sA(r){return J(r)?.split(",").map(t=>t.trim()).filter(t=>t!=="")}d();function Es(){return!!$()?.telemetry?.traceDrains?.length}var iA=!1,Fe=class{constructor(t){this.processor=t}forceFlush(){return this.processor.forceFlush()}shutdown(){return this.processor.shutdown()}onStart(t,e){if(Es()){iA||(iA=!0,c.diag.debug("@vercel/otel: skipping automatic exporter due to configured trace drains"));return}this.processor.onStart(t,e)}onEnd(t){Es()||this.processor.onEnd(t)}};var Nx={ALL:c.DiagLogLevel.ALL,VERBOSE:c.DiagLogLevel.VERBOSE,DEBUG:c.DiagLogLevel.DEBUG,INFO:c.DiagLogLevel.INFO,WARN:c.DiagLogLevel.WARN,ERROR:c.DiagLogLevel.ERROR,NONE:c.DiagLogLevel.NONE},Dn=class{constructor(t={}){this.configuration=t}start(){let t=Mx(),e=this.configuration,n=process.env.NEXT_RUNTIME||"nodejs",o=!!t.OTEL_SDK_DISABLED;if(process.env.OTEL_LOG_LEVEL&&c.diag.setLogger(new c.DiagConsoleLogger,{logLevel:Nx[process.env.OTEL_LOG_LEVEL.toUpperCase()]}),o)return;let s=e.idGenerator??new Rt;this.contextManager=yx(e.contextManager);let i=t.OTEL_SERVICE_NAME||e.serviceName||"app",a=Re(Vp({attributes:e.attributes,runtime:n,serviceName:i})),_=e.resourceDetectors??[gr];if(e.autoDetectResources??!0){let M=oo({detectors:_});a=a.merge(M)}let u=Cx(e.propagators,e,t),p=Lx(e.traceSampler,t),A=Ix(e.spanProcessors,e,t);A.length===0&&c.diag.warn("@vercel/otel: No span processors configured. No spans will be exported.");let h=e.spanLimits,R=new ge({resource:a,idGenerator:s,sampler:p,spanLimits:h,spanProcessors:[new fn(A,e.attributesFromHeaders)]});if(c.trace.setGlobalTracerProvider(R),c.propagation.setGlobalPropagator(new Ct.CompositePropagator({propagators:u})),this.tracerProvider=R,e.logRecordProcessors){let x=new Ne({resource:a,processors:e.logRecordProcessors});this.loggerProvider=x,W.logs.setGlobalLoggerProvider(x)}if(e.metricReaders||e.views){let x=new ye({resource:a,views:e.views??[],readers:e.metricReaders??[]});c.metrics.setGlobalMeterProvider(x),this.meterProvider=x}let I=Px(e.instrumentations,e.instrumentationConfig);this.disableInstrumentations=_o({instrumentations:I}),c.diag.info("@vercel/otel: started",i,n)}async shutdown(){let t=[];this.tracerProvider&&t.push(this.tracerProvider.shutdown()),this.loggerProvider&&t.push(this.loggerProvider.shutdown()),this.meterProvider&&t.push(this.meterProvider.shutdown()),c.diag.info("@vercel/otel: shutting down",t.length,process.env.NEXT_RUNTIME),await Promise.all(t),this.contextManager&&this.contextManager.disable();let{disableInstrumentations:e}=this;e&&e()}};function Mx(){return{OTEL_SDK_DISABLED:J("OTEL_SDK_DISABLED"),OTEL_SERVICE_NAME:J("OTEL_SERVICE_NAME"),OTEL_PROPAGATORS:sA("OTEL_PROPAGATORS"),OTEL_TRACES_SAMPLER:J("OTEL_TRACES_SAMPLER"),OTEL_TRACES_SAMPLER_ARG:J("OTEL_TRACES_SAMPLER_ARG"),OTEL_EXPORTER_OTLP_TRACES_ENDPOINT:J("OTEL_EXPORTER_OTLP_TRACES_ENDPOINT"),OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:J("OTEL_EXPORTER_OTLP_TRACES_PROTOCOL"),OTEL_EXPORTER_OTLP_PROTOCOL:J("OTEL_EXPORTER_OTLP_PROTOCOL"),OTEL_EXPORTER_OTLP_ENDPOINT:J("OTEL_EXPORTER_OTLP_ENDPOINT"),OTEL_EXPORTER_OTLP_HEADERS:J("OTEL_EXPORTER_OTLP_HEADERS"),OTEL_EXPORTER_OTLP_TRACES_HEADERS:J("OTEL_EXPORTER_OTLP_TRACES_HEADERS")}}function Px(r,t){return(r??["auto"]).map(e=>e==="auto"?(c.diag.debug("@vercel/otel: Configure instrumentations: fetch",t?.fetch),[new ue(t?.fetch)]):e==="fetch"?(c.diag.debug("@vercel/otel: Configure instrumentations: fetch",t?.fetch),new ue(t?.fetch)):e).flat()}function Cx(r,t,e){let n=process.env.OTEL_PROPAGATORS&&e.OTEL_PROPAGATORS&&e.OTEL_PROPAGATORS.length>0?e.OTEL_PROPAGATORS:void 0;return(r??n??["auto"]).map(o=>{if(o==="none")return[];if(o==="auto"){let s=[];return s.push({name:"tracecontext",propagator:new He}),s.push({name:"baggage",propagator:new Ct.W3CBaggagePropagator}),s.push({name:"vercel-runtime",propagator:new Ln}),c.diag.debug(`@vercel/otel: Configure propagators: ${s.map(i=>i.name).join(", ")}`),s.map(i=>i.propagator)}if(o==="tracecontext")return c.diag.debug("@vercel/otel: Configure propagator: tracecontext"),new He;if(o==="baggage")return c.diag.debug("@vercel/otel: Configure propagator: baggage"),new Ct.W3CBaggagePropagator;if(typeof o=="string")throw new Error(`Unknown propagator: "${o}"`);return o}).flat()}var aA="always_on",Te=1;function Lx(r,t){if(r&&typeof r!="string")return r;let e=r&&r!=="auto"?r:t.OTEL_TRACES_SAMPLER||aA;switch(c.diag.debug("@vercel/otel: Configure sampler: ",e),e){case"always_on":return new B;case"always_off":return new k;case"parentbased_always_on":return new K({root:new B});case"parentbased_always_off":return new K({root:new k});case"traceidratio":return new At(cA(t));case"parentbased_traceidratio":return new K({root:new At(cA(t))});default:return c.diag.error(`@vercel/otel: OTEL_TRACES_SAMPLER value "${String(t.OTEL_TRACES_SAMPLER)} invalid, defaulting to ${aA}".`),new B}}function cA(r){if(r.OTEL_TRACES_SAMPLER_ARG===void 0||r.OTEL_TRACES_SAMPLER_ARG==="")return c.diag.error(`@vercel/otel: OTEL_TRACES_SAMPLER_ARG is blank, defaulting to ${Te}.`),Te;c.diag.debug("@vercel/otel: Configure sampler probability: ",r.OTEL_TRACES_SAMPLER_ARG);let t=Number(r.OTEL_TRACES_SAMPLER_ARG);return isNaN(t)?(c.diag.error(`@vercel/otel: OTEL_TRACES_SAMPLER_ARG=${r.OTEL_TRACES_SAMPLER_ARG} was given, but it is invalid, defaulting to ${Te}.`),Te):t<0||t>1?(c.diag.error(`@vercel/otel: OTEL_TRACES_SAMPLER_ARG=${r.OTEL_TRACES_SAMPLER_ARG} was given, but it is out of range ([0..1]), defaulting to ${Te}.`),Te):t}function Ix(r,t,e){return[...(r??["auto"]).flatMap(n=>{if(n==="auto"){let o=[new dt(new xn)];if(process.env.VERCEL_OTEL_ENDPOINTS){let s=process.env.VERCEL_OTEL_ENDPOINTS_PORT||"4318",i=process.env.VERCEL_OTEL_ENDPOINTS_PROTOCOL||"http/protobuf";c.diag.debug("@vercel/otel: Configure vercel otel collector on port: ",s,i);let a={url:`http://localhost:${s}/v1/traces`,headers:{}},_=i==="http/protobuf"?new wt(a):new ce(a);o.push(new Fe(new dt(_)))}else(!t.traceExporter||t.traceExporter==="auto"||e.OTEL_EXPORTER_OTLP_TRACES_ENDPOINT||e.OTEL_EXPORTER_OTLP_ENDPOINT)&&o.push(new Fe(new dt(xx(e))));return o}return n}).filter(bx),...t.traceExporter&&t.traceExporter!=="auto"?[new dt(t.traceExporter)]:[]]}function xx(r){let t=r.OTEL_EXPORTER_OTLP_TRACES_PROTOCOL??r.OTEL_EXPORTER_OTLP_PROTOCOL??"http/protobuf",e=Ux(r),n={...r.OTEL_EXPORTER_OTLP_HEADERS?(0,Ct.parseKeyPairsIntoRecord)(r.OTEL_EXPORTER_OTLP_HEADERS):{},...r.OTEL_EXPORTER_OTLP_TRACES_HEADERS?(0,Ct.parseKeyPairsIntoRecord)(r.OTEL_EXPORTER_OTLP_TRACES_HEADERS):{}};switch(c.diag.debug("@vercel/otel: Configure trace exporter: ",t,e,`headers: ${Object.keys(n).join(",")||"<none>"}`),t){case"http/json":return new ce({url:e,headers:n});case"http/protobuf":return new wt({url:e,headers:n});default:return c.diag.warn(`@vercel/otel: Unsupported OTLP traces protocol: ${t}. Using http/protobuf.`),new wt}}var EA="v1/traces",Dx=`http://localhost:4318/${EA}`;function Ux(r){let t=r.OTEL_EXPORTER_OTLP_TRACES_ENDPOINT;if(t&&typeof t=="string")return t;let e=r.OTEL_EXPORTER_OTLP_ENDPOINT;return e&&typeof e=="string"?`${e}/${EA}`:Dx}function bx(r){return r!=null}function yx(r){if(r===void 0){c.diag.debug("@vercel/otel: Configure context manager: default");let t=new _A.AsyncLocalStorageContextManager;return t.enable(),c.context.setGlobalContextManager(t),t}return c.diag.debug("@vercel/otel: Configure context manager: from configuration"),r.enable(),c.context.setGlobalContextManager(r),r}function IB(r){let t;r?typeof r=="string"?t={serviceName:r}:t=r:t={},new Dn(t).start()}export{ue as FetchInstrumentation,ce as OTLPHttpJsonTraceExporter,wt as OTLPHttpProtoTraceExporter,IB as registerOTel};
17
17
  //# sourceMappingURL=index.js.map