try{let e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`6dcc24a8-0a1a-4800-beea-3bc324b9cb92`,e._sentryDebugIdIdentifier=`sentry-dbid-6dcc24a8-0a1a-4800-beea-3bc324b9cb92`)}catch{}import"./rolldown-runtime-eb2nym32.js";import{Gr as e}from"./entry.client-dr7r6s9a.js";var t=class t{static VALID_SPAN_KINDS=new Set(Object.values(e));perfTelemetry;constructor(e){this.perfTelemetry=e}onSpanStart(e){}onSpanEnd(e){if(e.kind!==`performance`||e.status===`cancelled`||e.duration===void 0)return;let t=e.missingParent?void 0:e.parentSpanId;this.perfTelemetry.mutations.trackPerformanceSpan.execute({spanName:e.name,latencyMs:e.duration,spanId:e.id,parentSpanId:t,status:e.status,spanKind:this.extractSpanKind(e),location:e.location})}extractSpanKind(e){let n=e.attributes?.spanKind;if(typeof n==`string`&&t.VALID_SPAN_KINDS.has(n))return n}};export{t as AppInsightsTelemetryAdapter};