PageSourceSearch

https://www.distantjourneys.com/_astro/page.CM1LoqrA.js

js distantjourneys.com collected 2026-09-26 05:46:45 UTC 171,605 bytes, 26 lines download raw bytes

1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`d73e2614b7cfe60223c3ec24eb8a9235d1d425c9`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`2ea1839f-59ec-400e-b1e9-48d1a26d3065`,e._sentryDebugIdIdentifier=`sentry-dbid-2ea1839f-59ec-400e-b1e9-48d1a26d3065`)}catch{}})(),globalThis.process??={},globalThis.process.env??={};import{$ as e,$t as t,A as n,At as r,B as i,Bt as a,C as o,Ct as s,D as c,Dt as l,E as u,Et as d,F as f,Ft as p,G as m,Gt as h,H as g,Ht as _,I as v,It as y,J as ee,Jt as te,K as ne,Kt as re,L as ie,Lt as b,M as x,Mt as ae,N as oe,Nt as se,O as ce,Ot as le,P as ue,Pt as S,Q as de,Qt as fe,R as pe,Rt as me,S as C,St as he,T as ge,Tt as _e,U as ve,Ut as ye,V as be,Vt as xe,W as Se,Wt as Ce,X as we,Xt as Te,Y as Ee,Yt as De,Z as Oe,Zt as ke,_ as Ae,_n as je,_t as Me,a as Ne,an as Pe,at as Fe,b as Ie,bn as w,bt as Le,c as Re,cn as ze,ct as Be,d as Ve,dn as He,dt as Ue,en as We,et as Ge,f as Ke,fn as qe,ft as T,g as Je,gn as Ye,gt as Xe,h as Ze,hn as Qe,ht as $e,i as et,in as tt,it as nt,j as rt,jt as it,k as at,kt as E,l as ot,ln as st,lt as ct,m as lt,mn as ut,mt as dt,n as ft,nn as pt,nt as mt,o as ht,on as gt,ot as _t,p as vt,pn as D,pt as O,q as yt,qt as bt,rn as xt,rt as St,s as Ct,sn as wt,st as Tt,t as Et,tn as Dt,tt as Ot,u as kt,un as At,ut as jt,v as k,vn as Mt,vt as Nt,w as Pt,wt as Ft,x as It,xt as Lt,y as Rt,yn as A,yt as zt,z as Bt,zt as Vt}from"./exports.B_CVGHyU.js";var Ht=`http.url`,Ut=`sentry.segment.name`,Wt=`sentry.transaction`,Gt=`url.full`,Kt=`user_agent.original`,qt={},Jt={};function Yt(e,t){return qt[e]=qt[e]||[],qt[e].push(t),()=>{let n=qt[e];if(n){let e=n.indexOf(t);e!==-1&&n.splice(e,1)}}}function Xt(e,t){if(!Jt[e]){Jt[e]=!0;try{t()}catch(t){w&&D.error(`Error while instrumenting ${e}`,t)}}}function Zt(e,t){let n=e&&qt[e];if(n)for(let r of n)try{r(t)}catch(t){w&&D.error(`Error while triggering instrumentation handler.
2Type: ${e}
3Name: ${st(r)}
4Error:`,t)}}var Qt=null;function $t(e){let t=`error`;Yt(t,e),Xt(t,en)}function en(){Qt=A.onerror,A.onerror=function(e,t,n,r,i){return Zt(`error`,{column:r,error:i,line:n,msg:e,url:t}
4),Qt?Qt.apply(this,arguments):!1},A.onerror.__SENTRY_INSTRUMENTED__=!0}var tn=null;function nn(e){let t=`unhandledrejection`;Yt(t,e),Xt(t,rn)}function rn(){tn=A.onunhandledrejection,A.onunhandledrejection=function(e){return Zt(`unhandledrejection`,e),!tn||tn.apply(this,arguments)},A.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}var an=!1;function on(){if(an)return;function e(){let e=C(),t=e&&o(e);if(t){let e=`internal_error`;w&&D.log(`[Tracing] Root span: ${e} -> Global error occurred`),t.setStatus({code:2,message:e})}}an=!0,$t(e),nn(e)}function sn(e){D.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}function cn(e,t){if(!t?.length)return!1;for(let n of t){if(dn(n)){if(e.description&&p(e.description,n))return w&&sn(e),!0;continue}let t=!!n.attributes&&Object.keys(n.attributes).length>0;if(!n.name&&!n.op&&!t)continue;let r=!n.name||e.description&&p(e.description,n.name),i=!n.op||e.op&&p(e.op,n.op),a=!n.attributes||Object.entries(n.attributes).every(([t,n])=>ln(e.attributes?.[t],n));if(r&&i&&a)return w&&sn(e),!0}return!1}function ln(e,t){return typeof e==`string`&&(typeof t==`string`||t instanceof RegExp)?p(e,t):Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e===t}function un(e,t){let n=t.parent_span_id,r=t.span_id;if(n)for(let t of e)t.parent_span_id===r&&(t.parent_span_id=n)}function dn(e){return typeof e==`string`||e instanceof RegExp}function fn(e){return!!e&&typeof e==`function`&&`_streamed`in e&&!!e._streamed}function pn(e,t=[]){return[e,t]}function mn(e,t){let[n,r]=e;return[n,[...r,t]]}function hn(e,t){let n=e[1];for(let e of n){let n=e[0].type;if(t(e,n))return!0}return!1}function gn(e,t){return hn(e,(e,n)=>t.includes(n))}function _n(e){let t=je(A);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e)}function vn(e){let[t,n]=e,r=JSON.stringify(t);function i(e){typeof r==`string`?r=typeof e==`string`?r+e:[_n(r),e]:r.push(typeof e==`string`?_n(e):e)}for(let e of n){let[t,n]=e;if(i(`
5${JSON.stringify(t)}
6`),typeof n==`string`||n instanceof Uint8Array)i(n);else{let e;try{e=JSON.stringify(n)}catch{e=JSON.stringify(me(n))}i(e)}}return typeof r==`string`?r:yn(r)}function yn(e){let t=e.reduce((e,t)=>e+t.length,0),n=new Uint8Array(t),r=0;for(let t of e)n.set(t,r),r+=t.length;return n}function bn(e){return[{type:`span`},e]}function xn(e){let t=typeof e.data==`string`?_n(e.data):e.data;return[{type:`attachment`,length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}var Sn={sessions:`session`,event:`error`,client_report:`internal`,user_report:`default`,profile_chunk:`profile`,replay_event:`replay`,replay_recording:`replay`,check_in:`monitor`,raw_security:`security`,log:`log_item`,trace_metric:`metric`};function Cn(e){return e in Sn}function wn(e){return Cn(e)?Sn[e]:e}function Tn(e){if(!e?.sdk)return;let{name:t,version:n}=e.sdk;return{name:t,version:n}}function En(e,t,n,r){let i=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date(xe()).toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:ve(r)},...i&&{trace:i}}}function Dn(e,t){if(!t)return e;let n=e.sdk||{};return e.sdk={...n,name:n.name||t.name,version:n.version||t.version,integrations:[...e.sdk?.integrations||[],...t.integrations||[]],packages:[...e.sdk?.packages||[],...t.packages||[]],settings:e.sdk?.settings||t.settings?{...e.sdk?.settings,...t.settings}:void 0},e}function On(e,t,n,r){let i=Tn(n);return pn({sent_at:new Date(xe()).toISOString(),...i&&{sdk:i},...!!r&&t&&{dsn:ve(t)}},[`aggregates`in e?[{type:`sessions`},e]:[{type:`session`},e.toJSON()]])}function kn(e,t,n,r){let i=Tn(n),a=e.type&&e.type!==`replay_event`?e.type:`event`;Dn(e,n?.sdk);let o=En(e,i,r,t);return delete e.sdkProcessingMetadata,pn(o,[[{type:a},e]])}function An(e,t){function n(e){return!!e.trace_id&&!!e.public_key}let r=lt(e[0]),i=t?.getDsn(),a=t?.getOptions().tunnel,o={sent_at:new Date(xe()).toISOString(),...n(r)&&{trace:r},...!!a&&i&&{dsn:ve(i)}},{beforeSendSpan:s,ignoreSpans:c}=t?.getOptions()||{},l=c?.length?e.filter(e=>{let t=x(e);return!cn({description:t.description,op:t.op,attributes:t.data},c)}):e,u=e.length-l.length;u&&t?.recordDroppedEvent(`before_send`,`span`,u);let d=s?e=>{let t=x(e);return(fn(s)?t:s(t))||(at(),t)}:x,f=[];for(let e of l){let t=d(e);t&&f.push(bn(t))}return pn(o,f)}function jn(e){if(!w)return;let{description:t=`< unknown name >`,op:r=`< unknown op >`,parent_span_id:i}=x(e),{spanId:a}=e.spanContext(),s=n(e),c=o(e),l=c===e,u=`[Tracing] Starting ${s?`sampled`:`unsampled`} ${l?`root `:``}span`,d=[`op: ${r}`,`name: ${t}`,`ID: ${a}`];if(i&&d.push(`parent ID: ${i}`),!l){let{op:e,description:t}=x(c);d.push(`root ID: ${c.spanContext().spanId}`),e&&d.push(`root op: ${e}`),t&&d.push(`root description: ${t}`)}D.log(`${u}
7  ${d.join(`
8  `)}`)}function Mn(e){if(!w)return;let{description:t=`< unknown name >`,op:n=`< unknown op >`}=x(e),{spanId:r}=e.spanContext(),i=`[Tracing] Finishing "${n}" ${o(e)===e?`root `:``}span "${t}" with ID ${r}`;D.log(i)}function Nn(e){if(!e||e.length===0)return;let t={};
8return e.forEach(e=>{let n=e.attributes||{},r=n[nt],i=n[Fe];typeof r==`string`&&typeof i==`number`&&(t[e.name]={value:i,unit:r})}),t}function Pn(){return je(Ye()).segmentSpanCaptureStrategy}function j(e){return e.getOptions().traceLifecycle===`stream`}var Fn=1e3,In=class{constructor(e={}){this._traceId=e.traceId||Ft(),this._spanId=e.spanId||s(),this._startTime=e.startTimestamp||E(),this._links=e.links,this._attributes={},this.setAttributes({[Tt]:`manual`,[_t]:e.op,...e.attributes}),this._name=e.name,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),`sampled`in e&&(this._sampled=e.sampled),e.endTimestamp&&(this._endTime=e.endTimestamp),this._events=[],this._isStandaloneSpan=e.isStandalone,this._endTime&&this._onSpanEnded()}addLink(e){return this._frozen||(this._links?this._links.push(e):this._links=[e]),this}addLinks(e){return this._frozen||(this._links?this._links.push(...e):this._links=e),this}recordException(e,t){}spanContext(){let{_spanId:e,_traceId:t,_sampled:n}=this;return{spanId:e,traceId:t,traceFlags:+!!n}}setAttribute(e,t){return this._frozen?this:(t===void 0?delete this._attributes[e]:this._attributes[e]=t,e===`sentry.source`&&t!==void 0&&Oe(this)&&ee(this),this)}setAttributes(e){return Object.keys(e).forEach(t=>this.setAttribute(t,e[t])),this}updateStartTime(e){this._frozen||(this._startTime=rt(e))}setStatus(e){return this._frozen||(this._status=e),this}updateName(e){return this._frozen?this:(this._name=e,Oe(this)||this.setAttribute(jt,`custom`),this)}end(e){if(this._endTime){this._frozen=we(this);return}this._endTime=rt(e),Mn(this),this._onSpanEnded(),this._frozen=we(this)}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[_t],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:u(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[Tt],profile_id:this._attributes[Ot],exclusive_time:this._attributes[Ge],measurements:Nn(this._events),is_segment:this._isStandaloneSpan&&o(this)===this||void 0,segment_id:this._isStandaloneSpan?o(this).spanContext().spanId:void 0,links:It(this._links)}}getStreamedSpanJSON(){return{name:this._name??``,span_id:this._spanId,trace_id:this._traceId,parent_span_id:this._parentSpanId,start_timestamp:this._startTime,end_timestamp:this._endTime??this._startTime,is_segment:this._isStandaloneSpan||this===o(this),status:Pt(this._status),attributes:Ie(this._attributes,this._status),links:c(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,n){if(this._frozen)return this;w&&D.log(`[Tracing] Adding an event to span:`,e);let r=Ln(t)?t:n||E(),i=Ln(t)?{}:t||{},a={name:e,time:rt(r),attributes:i};return this._events.push(a),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){let e=T();e&&(e.emit(`spanEnd`,this),this._isStandaloneSpan||e.emit(`afterSpanEnd`,this));let t=o(this),n=this._isStandaloneSpan||this===t;if(this._isStandaloneSpan){this._sampled?Bn(An([this],e)):(w&&D.log(`[Tracing] Discarding standalone span because its trace was not chosen to be sampled.`),e&&e.recordDroppedEvent(`sample_rate`,`span`));return}if(!n){let e=Pn();if(e){let n=yt(this).scope||O();e.onChildSpanEnded(this,t,e=>this._convertSpanToTransaction(e),n)}return}if(e&&j(e)){e.emit(`afterSegmentSpanEnd`,this);return}let r=yt(this).scope||O(),i=Pn();if(i)i.onSegmentSpanEnded(e=>this._convertSpanToTransaction(e),r);else{let e=this._convertSpanToTransaction();e&&r.captureEvent(e)}}_convertSpanToTransaction(e={}){if(!Rn(x(this)))return;this._name||=(w&&D.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),`<unlabeled transaction>`);let{scope:t,isolationScope:n}=yt(this),r=t?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(this._sampled!==!0)return;e.onSpanCaptured?.(this);let i=[];for(let t of ge(this)){if(t===this||zn(t)||e.isSpanAlreadyCaptured?.(t))continue;let n=x(t);Rn(n)&&(e.onSpanCaptured?.(t),i.push(n))}let a=this._attributes[jt];delete this._attributes[mt];let o=!1;i.forEach(e=>{delete e.data[mt],e.op?.startsWith(`gen_ai.`)&&(o=!0)});let s={contexts:{trace:v(this)},spans:i.length>Fn?i.sort((e,t)=>
8e.start_timestamp-t.start_timestamp).slice(0,Fn):i,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:`transaction`,sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:n,dynamicSamplingContext:lt(this),hasGenAiSpans:o},request:r,...a&&{transaction_info:{source:a}}},c=Nn(this._events);return c&&Object.keys(c).length&&(w&&D.log(`[Measurements] Adding measurements to transaction event`,JSON.stringify(c,void 0,2)),s.measurements=c),s}};function Ln(e){return e&&typeof e==`number`||e instanceof Date||Array.isArray(e)}function Rn(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}function zn(e){return e instanceof In&&e.isStandaloneSpan()}function Bn(e){let t=T();if(!t)return;let n=e[1];if(!n||n.length===0){t.recordDroppedEvent(`before_send`,`span`);return}t.sendEnvelope(e)}function Vn(e,t,n){if(!k(e))return[!1];let r,i;typeof e.tracesSampler==`function`?(i=e.tracesSampler({...t,inheritOrSampleWith:e=>typeof t.parentSampleRate==`number`?t.parentSampleRate:typeof t.parentSampled==`boolean`?Number(t.parentSampled):e}),r=!0):t.parentSampled===void 0?e.tracesSampleRate!==void 0&&(i=e.tracesSampleRate,r=!0):i=t.parentSampled;let a=g(i);if(a===void 0)return w&&D.warn(`[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(i)} of type ${JSON.stringify(typeof i)}.`),[!1];if(!a)return w&&D.log(`[Tracing] Discarding transaction because ${typeof e.tracesSampler==`function`?`tracesSampler returned 0 or false`:`a negative sampling decision was inherited or tracesSampleRate is set to 0`}`),[!1,a,r];let o=n<a;return o||w&&D.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(i)})`),[o,a,r]}var Hn=`__SENTRY_SUPPRESS_TRACING__`;function Un(e){let t=Xn();return t.startInactiveSpan?t.startInactiveSpan(e):Wn(e)}function Wn(e){let t=Yn(e),{forceTransaction:n,parentSpan:r}=e;return(e.scope?t=>Nt(e.scope,t):r===void 0?e=>e():e=>Gn(r,e))(()=>{let i=O(),a=$n(i,r),o=T();return e.onlyIfParent&&!a?qn(i,o):Jn({parentSpan:a,spanArguments:t,forceTransaction:n,scope:i})})}function Gn(e,t){let n=Xn();return n.withActiveSpan?n.withActiveSpan(e,t):Nt(n=>(he(n,e||void 0),t(n)))}function Kn(e=O()){let t=Xn();return t.isTracingSuppressed?t.isTracingSuppressed(e):e.getScopeData().sdkProcessingMetadata[Hn]===!0}function qn(e,t){t?.recordDroppedEvent(`no_parent_span`,`span`);let n=new Je({traceId:e.getPropagationContext().traceId});return Ee(n,e,$e()),n}function Jn({parentSpan:e,spanArguments:t,forceTransaction:r,scope:i}){let a=$e();if(!k()){let t=i.getPropagationContext(),n=e?e.spanContext().traceId:t.traceId,o=new Je({traceId:n});return e&&!r&&Rt(e,o),Ee(o,i,a),o}let o=T();if(er(o,t)){Kn(i)||o?.recordDroppedEvent(`ignored`,`span`);let t=new Je({dropReason:`ignored`,traceId:e?.spanContext().traceId??i.getPropagationContext().traceId});return e&&!r&&Rt(e,t),Ee(t,i,a),t}let s;if(e&&!r)s=Qn(e,i,t,a),Rt(e,s);else if(e){let r=lt(e),{traceId:o,spanId:c}=e.spanContext(),l=n(e);s=Zn({traceId:o,parentSpanId:c,...t},i,a,l),Ke(s,r)}else{let{traceId:e,dsc:n,parentSpanId:r,sampled:o}=i.getPropagationContext();s=Zn({traceId:e,parentSpanId:r,...t},i,a,o),n&&Ke(s,n)}return jn(s),s}function Yn(e){let t={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){let n={...t};return n.startTimestamp=rt(e.startTime),delete n.startTime,n}return t}function Xn(){let e=Ye();return Le(e)}function Zn(e,t,n,r){let i=T(),a=i?.getOptions()||{},{name:o=``}=e,s={spanAttributes:{...e.attributes},spanName:o,parentSampled:r};i?.emit(`beforeSampling`,s,{decision:!1});let c=s.parentSampled??r,l=s.spanAttributes,u=t.getPropagationContext(),d=Kn(t),[f,p,m]=d?[!1]:Vn(a,{name:o,parentSampled:c,attributes:l,normalizedRequest:n.getScopeData().sdkProcessingMetadata.normalizedRequest,parentSampleRate:g(u.dsc?.sample_rate)},u.sampleRand),h=new In({...e,attributes:{[jt]:`custom`,[ct]:p!==void 0&&m?p:void 0,...l},sampled:f});return!f&&i&&!d&&(w&&D.log(`[Tracing] Discarding root span because its trace was not chosen to be sampled.`),i.recordDroppedEvent(`sample_rate`,j(i)?`span`:`transaction`)),Ee(h,t,n),i&&i.emit(`spanStart`,h),h}function Qn(e,t,r,i){let{spanId:a,traceId:o}=e.spanContext(),s=Kn(t),c=!s&&n(e),l=c?new In({...r,parentSpanId:a,traceId:o,sampled:c}):new Je({traceId:o});Rt(e,l),Ee(l,t,i);let u=T();return u?(j(u)&&Ae(l)&&(Ae(e)&&e.dropReason?(l.dropReason=e.dropReason,u.recordDroppedEvent(e.dropReason,`span`)):s||(l.dropReason=`sample_rate`,u.recordDroppedEvent(`sample_rate`,`span`))),u.emit(`spanStart`,l),r.endTimestamp&&(u.emit(`spanEnd`,l),u.emit(`afterSpanEnd`,l)),l):l}function $n(e,t){if(t)return t;if(t===null)return;let n=Lt(e);if(!n)return;let r=T();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?o(n):n}function er(e,t){let n=e?.getOptions().ignoreSpans;return!e||!j(e)||!n?.length?!1:cn({description:t.name||``,op:t.attributes?.[`sentry.op`]||t.op,attributes:t.attributes},n)}function tr(e){return Ae(e)&&e.dropReason===`ignored`}var nr={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},rr=`heartbeatFailed`,ir=`idleTimeout`,ar=`finalTimeout`,or=`externalFinish`;function sr(e,t={}){let n=new Map,r=!1,i,a,o=or,s=!t.disableAutoFinish,c=[],{idleTimeout:l=nr.idleTimeout,finalTimeout:u=nr.finalTimeout,childSpanTimeout:d=nr.childSpanTimeout,beforeSpanEnd:f,trimIdleSpanEndTimestamp:p=!0}=t,m=T(),h=O();if(!m||!k()){let e=new Je({traceId:h.getPropagationContext().traceId});return Ee(e,h,$e()),e}let g=C(),_=cr(e);_.end=new Proxy(_.end,{apply(e,t,n){if(f&&f(_),Ae(t))return;let[r,...i]=n,a=r||E(),o=rt(a),s=ge(_).filter(e=>e!==_),c=x(_);if(!s.length||!p)return ie(o),Reflect.apply(e,t,[o,...i]);let l=m.getOptions().ignoreSpans,d=s?.reduce((e,t)=>
8{let n=x(t);return!n.timestamp||l&&cn({description:n.description,op:n.op,attributes:n.data},l)?e:e?Math.max(e,n.timestamp):n.timestamp},void 0),h=c.start_timestamp,g=Math.min(h?h+u/1e3:1/0,Math.max(h||-1/0,Math.min(o,d||1/0)));return ie(g),Reflect.apply(e,t,[g,...i])}});function v(){i&&=(clearTimeout(i),void 0)}function y(){a&&=(clearTimeout(a),void 0)}function ee(e){v(),i=setTimeout(()=>{!r&&n.size===0&&s&&(o=ir,_.end(e))},l)}function te(e){y(),a=setTimeout(()=>{!r&&s&&(o=rr,_.end(e))},d)}function ne(e){v(),n.set(e,!0),te(E()+d/1e3)}function re(e){n.has(e)&&n.delete(e),n.size===0&&(ee(E()+l/1e3),y())}function ie(e){r=!0,n.clear(),c.forEach(e=>e()),he(h,g);let t=x(_),{start_timestamp:i}=t;if(!i)return;t.data[`sentry.idle_span_finish_reason`]||_.setAttribute(St,o);let a=t.status;(!a||a===`unknown`)&&_.setStatus({code:1}),D.log(`[Tracing] Idle span "${t.op}" finished`);let s=ge(_).filter(e=>e!==_),d=0;s.forEach(t=>{t.isRecording()&&(t.setStatus({code:2,message:`cancelled`}),t.end(e),w&&D.log(`[Tracing] Cancelling span since span ended early`,JSON.stringify(t,void 0,2)));let{timestamp:n=0,start_timestamp:r=0}=x(t),i=r<=e,a=(u+l)/1e3,o=n-r<=a;if(w){let e=JSON.stringify(t,void 0,2);i?o||D.log(`[Tracing] Discarding span since it finished after idle span final timeout`,e):D.log(`[Tracing] Discarding span since it happened after idle span was finished`,e)}(!o||!i)&&(ce(_,t),d++)}),d>0&&_.setAttribute(`sentry.idle_span_discarded_spans`,d)}return c.push(m.on(`spanStart`,e=>{r||e===_||x(e).timestamp||e instanceof In&&e.isStandaloneSpan()||ge(_).includes(e)&&ne(e.spanContext().spanId)})),c.push(m.on(`spanEnd`,e=>{r||re(e.spanContext().spanId)})),c.push(m.on(`idleSpanEnableAutoFinish`,e=>{e===_&&(s=!0,ee(),n.size&&te())})),t.disableAutoFinish||ee(),setTimeout(()=>{r||(_.setStatus({code:2,message:`deadline_exceeded`}),o=ar,_.end())},u),_}function cr(e){let t=Un(e);return he(O(),t),w&&D.log(`[Tracing] Started span is an idle span`),t}function lr(e,t){let n=e.attributes??={};Object.entries(t).forEach(([e,t])=>{t!=null&&!(e in n)&&(n[e]=t)})}function ur(e){return typeof e==`object`&&typeof e.unref==`function`&&e.unref(),e}function dr(e){let t=e.protocol?`${e.protocol}:`:``,n=e.port?`:${e.port}`:``;return`${t}//${e.host}${n}${e.path?`/${e.path}`:``}/api/`}function fr(e){return`${dr(e)}${e.projectId}/envelope/`}function pr(e,t){let n={sentry_version:`7`};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}function mr(e,t,n){return t||`${fr(e)}?${pr(e,n)}`}var hr=[];function gr(e){let t={};return e.forEach(e=>{let{name:n}=e,r=t[n];r&&!r.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)}),Object.values(t)}function _r(e){let t=e.defaultIntegrations||[],n=e.integrations;t.forEach(e=>{e.isDefaultInstance=!0});let r;if(Array.isArray(n))r=[...t,...n];else if(typeof n==`function`){let e=n(t);r=Array.isArray(e)?e:[e]}else r=t;return gr(r)}function vr(e,t){let n={};return t.forEach(t=>{t?.beforeSetup&&t.beforeSetup(e)}),t.forEach(t=>{t&&br(e,t,n)}),n}function yr(e,t){for(let n of t)n?.afterAllSetup&&n.afterAllSetup(e)}function br(e,t,n){if(n[t.name]){w&&D.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,!hr.includes(t.name)&&typeof t.setupOnce==`function`&&(t.setupOnce(),hr.push(t.name)),t.setup&&typeof t.setup==`function`&&t.setup(e),typeof t.preprocessEvent==`function`){let n=t.preprocessEvent.bind(t);e.on(`preprocessEvent`,(t,r)=>n(t,r,e))}if(typeof t.processEvent==`function`){let n=t.processEvent.bind(t),r=Object.assign((t,r)=>n(t,r,e),{id:t.name});e.addEventProcessor(r)}[`processSpan`,`processSegmentSpan`].forEach(n=>{let r=t[n];typeof r==`function`&&e.on(n,n=>r.call(t,n,e))}),w&&D.log(`Integration installed: ${t.name}`)}function M(e){return e}var xr=`sentry.timestamp.sequence`,Sr=0,Cr;function wr(e){let t=Math.floor(e*1e3);Cr!==void 0&&t!==Cr&&(Sr=0);let n=Sr;return Sr++,Cr=t,{key:xr,value:{value:n,type:`integer`}}}function Tr(e,t){return t?Nt(t,()=>{let n=C(),r=n?oe(n):Xe(t);return[n?lt(n):vt(e,t),r]}):[void 0,void 0]}var Er={trace:1,debug:5,info:9,warn:13,error:17,fatal:21};function Dr(){return typeof __SENTRY_BROWSER_BUNDLE__<`u`&&!!__SENTRY_BROWSER_BUNDLE__}function Or(){return`npm`}function kr(){return!Dr()&&Object.prototype.toString.call(typeof process<`u`?process:0)===`[object process]`}function Ar(){return typeof window<`u`&&(!kr()||jr())}function jr(){return A.process?.type===`renderer`}function Mr(e,t){let n=t?`auto`:`never`;return[{type:`log`,item_count:e.length,content_type:`application/vnd.sentry.items.log+json`},{version:2,...Ar()&&{ingest_settings:{infer_ip:n,infer_user_agent:n}},items:e}]}function Nr(e,t,n,r,i){let a={};return t?.sdk&&(a.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(a.dsn=ve(r)),pn(a,[Mr(e,i)])}var Pr=100;function N(e,t,n,r=!0){n&&(!e[t]||r)&&(e[t]=n)}function Fr(e,t){let n=zr(),r=Rr(e);r===void 0?n.set(e,[t]):r.length>=Pr?(Lr(e,r),n.set(e,[t])):n.set(e,[...r,t])}
8function Ir(e,t=O(),n=Fr){let r=t?.getClient()??T();if(!r){w&&D.warn(`No client available to capture log.`);return}let{release:i,environment:a,enableLogs:o=!0,beforeSendLog:s}=r.getOptions();if(!o){w&&D.warn(`logging option not enabled, log will not be captured.`);return}let[,c]=Tr(r,t),l={...e.attributes},{user:{id:u,email:d,username:f},attributes:p={}}=Ve($e(),t);N(l,`user.id`,u,!1),N(l,`user.email`,d,!1),N(l,`user.name`,f,!1),N(l,`sentry.release`,i),N(l,`sentry.environment`,a);let{name:m,version:h}=r.getSdkMetadata()?.sdk??{};N(l,`sentry.sdk.name`,m),N(l,`sentry.sdk.version`,h);let g=r.getIntegrationByName(`Replay`),_=g?.getReplayId(!0);N(l,`sentry.replay_id`,_),_&&g?.getRecordingMode()===`buffer`&&N(l,`sentry._internal.replay_is_buffering`,!0);let v=e.message;if(Dt(v)){let{__sentry_template_string__:e,__sentry_template_values__:t=[]}=v;t?.length&&(l[`sentry.message.template`]=e),t.forEach((e,t)=>{l[`sentry.message.parameter.${t}`]=e})}N(l,`sentry.trace.parent_span_id`,Lt(t)?.spanContext().spanId);let y={...e,attributes:l};r.emit(`beforeCaptureLog`,y);let ee=s?qe(()=>s(y)):y;if(!ee){r.recordDroppedEvent(`before_send`,`log_item`,1),w&&D.warn(`beforeSendLog returned null, log will not be captured.`);return}let{level:te,message:ne,attributes:re={},severityNumber:ie}=ee,b=E(),x=wr(b);n(r,{timestamp:b,level:te,body:Vr(String(ne)),trace_id:c?.trace_id,severity_number:ie??Er[te],attributes:Br({...zt(p),...zt(re,!0),[x.key]:x.value})}),r.emit(`afterCaptureLog`,ee)}function Lr(e,t){let n=t??Rr(e)??[];if(n.length===0)return;let r=e.getOptions(),i=Nr(n,r._metadata,r.tunnel,e.getDsn(),e.getDataCollectionOptions().userInfo);zr().set(e,[]),e.emit(`flushLogs`),e.sendEnvelope(i)}function Rr(e){return zr().get(e)}function zr(){return Qe(`clientToLogBufferMap`,()=>new WeakMap)}function Br(e){let t={};for(let[n,r]of Object.entries(e)){let e=Vr(n);t[e]=r.type===`string`?{...r,value:Vr(r.value)}:r}return t}function Vr(e){let t=Object(e),n=t.isWellFormed,r=t.toWellFormed;return typeof n==`function`&&typeof r==`function`?n.call(e)?e:r.call(e):e}function Hr(e,t){let n=t?`auto`:`never`;return[{type:`trace_metric`,item_count:e.length,content_type:`application/vnd.sentry.items.trace-metric+json`},{version:2,...Ar()&&{ingest_settings:{infer_ip:n,infer_user_agent:n}},items:e}]}function Ur(e,t,n,r,i){let a={};return t?.sdk&&(a.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(a.dsn=ve(r)),pn(a,[Hr(e,i)])}function Wr(e,t){let n=t??Gr(e)??[];if(n.length===0)return;let r=e.getOptions(),i=Ur(n,r._metadata,r.tunnel,e.getDsn(),e.getDataCollectionOptions().userInfo);Kr().set(e,[]),e.emit(`flushMetrics`),e.sendEnvelope(i)}function Gr(e){return Kr().get(e)}function Kr(){return Qe(`clientToMetricBufferMap`,()=>new WeakMap)}function qr(e){let t={trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,name:e.description||``,start_timestamp:e.start_timestamp,end_timestamp:e.timestamp||e.start_timestamp,status:!e.status||e.status===`ok`||e.status===`cancelled`?`ok`:`error`,is_segment:!1,attributes:{...e.data},links:e.links};return ie(t)}function Jr(e,t){if(e.type!==`transaction`||!e.spans?.length||!e.sdkProcessingMetadata?.hasGenAiSpans||t.getOptions().streamGenAiSpans===!1||j(t))return;let n=[],r=[];for(let t of e.spans)t.op?.startsWith(`gen_ai.`)?n.push(qr(t)):r.push(t);if(n.length===0)return;e.spans=r;let i=t.getDataCollectionOptions().userInfo?`auto`:`never`;return[{type:`span`,item_count:n.length,content_type:`application/vnd.sentry.items.span.v2+json`},{version:2,...Ar()&&{ingest_settings:{infer_ip:i,infer_user_agent:i}},items:n}]}var Yr=Symbol.for(`SentryBufferFullError`);function Xr(e=100){let t=new Set;function n(){return t.size<e}function r(e){t.delete(e)}function i(e){if(!n())return ot(Yr);let i=e();return t.add(i),i.then(()=>r(i),()=>r(i)),i}function a(e){if(!t.size)return kt(!0);let n=Promise.allSettled(Array.from(t)).then(()=>!0);if(!e)return n;let r=[n,new Promise(t=>ur(setTimeout(()=>t(!1),e)))];return Promise.race(r)}return{get $(){return Array.from(t)},add:i,drain:a}}var Zr=6e4;function Qr(e,t=xe()){let n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;let r=Date.parse(`${e}`);return isNaN(r)?Zr:r-t}function $r(e,t){return e[t]||e.all||0}function ei(e,t,n=xe()){return $r(e,t)>n}function ti(e,{statusCode:t,headers:n},r=xe()){let i={...e},a=n?.[`x-sentry-rate-limits`],o=n?.[`retry-after`];if(a)for(let e of a.trim().split(`,`)){let[t,n,,,a]=e.split(`:`,5),o=parseInt(t,10),s=(isNaN(o)?60:o)*1e3;if(!n)i.all=r+s;else for(let e of n.split(`;`))e===`metric_bucket`?(!a||a.split(`;`).includes(`custom`))&&(i[e]=r+s):i[e]=r+s}else o?i.all=r+Qr(o,r):t===429&&(i.all=r+6e4);return i}function ni(e,t,n=Xr(e.bufferSize||64)){let r={},i=e=>n.drain(e);function a(i){let a=[];if(hn(i,(t,n)=>{let i=wn(n);ei(r,i)?e.recordDroppedEvent(`ratelimit_backoff`,i):a.push(t)}),a.length===0)return Promise.resolve({});let o=pn(i[0],a),s=t=>{if(gn(o,[`client_report`])){w&&D.warn(`Dropping client report. Will not send outcomes (reason: ${t}).`);return}hn(o,(n,r)=>{e.recordDroppedEvent(t,wn(r))})};return n.add(()=>t({body:vn(o)}).then(e=>e.statusCode===413?(w&&D.error(`Sentry responded with status code 413. Envelope was discarded due to exceeding size limits.`),s(`send_error`),e):(w&&e.statusCode!==void 0&&(e.statusCode<200||e.statusCode>=300)&&D.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),r=ti(r,e),e),e=>{throw s(`network_error`),w&&D.error(`Encountered error running transport request:`,e),e})).then(e=>e,e=>
8{if(e===Yr)return w&&D.error(`Skipped sending event because buffer is full.`),s(`queue_overflow`),Promise.resolve({});throw e})}return{send:a,flush:i}}function ri(e,t,n){let r=[{type:`client_report`},{timestamp:n||le(),discarded_events:e}];return pn(t?{dsn:t}:{},[r])}function ii(e){let t=[];e.message&&t.push(e.message);try{let n=e.exception.values[e.exception.values.length-1];n?.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`))}catch{}return t}function ai(e){let{trace_id:t,parent_span_id:n,span_id:r,status:i,origin:a,data:o,op:s}=e.contexts?.trace??{};return{data:o??{},description:e.transaction,op:s,parent_span_id:n,span_id:r??``,start_timestamp:e.start_timestamp??0,status:i,timestamp:e.timestamp,trace_id:t??``,origin:a,profile_id:o?.[Ot],exclusive_time:o?.[Ge],measurements:e.measurements,is_segment:!0}}function oi(e){return{type:`transaction`,timestamp:e.timestamp,start_timestamp:e.start_timestamp,transaction:e.description,contexts:{trace:{trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,op:e.op,status:e.status,origin:e.origin,data:{...e.data,...e.profile_id&&{"sentry.profile_id":e.profile_id},...e.exclusive_time&&{"sentry.exclusive_time":e.exclusive_time}}}},measurements:e.measurements}}var si=`[Filtered]`,ci=[`forwarded`,`-ip`,`remote-`,`via`,`-user`],li=[`auth`,`token`,`secret`,`session`,`password`,`passwd`,`pwd`,`key`,`jwt`,`bearer`,`sso`,`saml`,`csrf`,`xsrf`,`credentials`,`sid`,`identity`,`set-cookie`,`cookie`],ui=[`.sid`,`sessid`,`remember`,`oidc`,`pkce`,`nonce`,`__secure-`,`__host-`,`awsalb`,`awselb`,`akamai`,`__stripe`,`cognito`,`firebase`,`supabase`,`sb-`,`mfa`,`2fa`];function di(e){return e===!0?{userInfo:!0,cookies:!0,httpHeaders:{request:!0,response:!0},httpBodies:[`incomingRequest`,`outgoingRequest`,`incomingResponse`,`outgoingResponse`],urlQueryParams:!0,graphQL:{document:!0,variables:!0},genAI:{inputs:!0,outputs:!0},databaseQueryData:!0,stackFrameVariables:!0,frameContextLines:7}:{userInfo:!1,cookies:{deny:ci},httpHeaders:{request:{deny:ci},response:{deny:ci}},httpBodies:[],urlQueryParams:{deny:ci},graphQL:{document:!0,variables:!0},genAI:{inputs:!1,outputs:!1},databaseQueryData:!1,stackFrameVariables:!0,frameContextLines:7}}var fi={userInfo:!0,cookies:!0,httpHeaders:{request:!0,response:!0},httpBodies:[`incomingRequest`,`outgoingRequest`,`incomingResponse`,`outgoingResponse`],urlQueryParams:!0,graphQL:{document:!0,variables:!0},genAI:{inputs:!0,outputs:!0},databaseQueryData:!0,stackFrameVariables:!0,frameContextLines:5};function pi(e){return typeof e==`boolean`||`allow`in e||`deny`in e}function mi(e,t){return e===void 0?{...t.httpHeaders}:pi(e)?{request:e,response:e}:{request:e.request??t.httpHeaders.request,response:e.response??t.httpHeaders.response}}function hi(e){let t=e.dataCollection==null?di(e.sendDefaultPii):fi,n=e.dataCollection??{};return{userInfo:n.userInfo??t.userInfo,cookies:n.cookies??t.cookies,httpHeaders:mi(n.httpHeaders,t),httpBodies:n.httpBodies??t.httpBodies,urlQueryParams:n.urlQueryParams??n.queryParams??t.urlQueryParams,graphQL:{document:n.graphQL?.document??t.graphQL.document,variables:n.graphQL?.variables??t.graphQL.variables},genAI:{inputs:n.genAI?.inputs??t.genAI.inputs,outputs:n.genAI?.outputs??t.genAI.outputs},databaseQueryData:n.databaseQueryData??t.databaseQueryData,stackFrameVariables:n.stackFrameVariables??t.stackFrameVariables,frameContextLines:n.frameContextLines??t.frameContextLines}}var gi=`Not capturing exception because it's already been captured.`,_i=`Discarded session because of missing or non-string release`,vi=Symbol.for(`SentryInternalError`),yi=Symbol.for(`SentryDoNotSendEventError`),bi=5e3;function xi(e){return{message:e,[vi]:!0}}function Si(e){return{message:e,[yi]:!0}}function Ci(e){return We(e)&&vi in e}function wi(e){return We(e)&&yi in e}function Ti(e,t,n,r,i){let a=0,o,s=!1;e.on(n,()=>{a=0,clearTimeout(o),s=!1}),e.on(t,t=>{if(a+=r(t),a>=8e5)i(e);else if(!s){let t=e.getOptions()._flushInterval??bi;t>0&&(s=!0,o=ur(setTimeout(()=>{i(e)},t)))}}),e.on(`flush`,()=>{i(e)})}var Ei=class{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=Xr(e.transportOptions?.bufferSize??64),this._dataCollection=hi(e),e.dsn?this._dsn=Se(e.dsn):w&&D.warn(`No DSN provided, client will not send events.`),this._dsn){let t=mr(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}this._options.enableLogs=this._options.enableLogs??this._options._experiments?.enableLogs??!0,this._options.enableLogs&&Ti(this,`afterCaptureLog`,`flushLogs`,Ni,Lr),(this._options.enableMetrics??this._options._experiments?.enableMetrics??!0)&&Ti(this,`afterCaptureMetric`,`flushMetrics`,Mi,Wr)}captureException(e,t,n){let r=S();if(ae(e))return w&&D.log(gi),r;let i={event_id:r,...t};return this._process(()=>this.eventFromException(e,i).then(e=>this._captureEvent(e,i,n)).then(e=>e),`error`),i.event_id}captureMessage(e,t,n,r){let i={event_id:S(),...n}
8,a=Dt(e)?e:String(e),o=xt(e),s=o?this.eventFromMessage(a,t,i):this.eventFromException(e,i);return this._process(()=>s.then(e=>this._captureEvent(e,i,r)),o?`unknown`:`error`),i.event_id}captureEvent(e,t,n){let r=S();if(t?.originalException&&ae(t.originalException))return w&&D.log(gi),r;let i={event_id:r,...t},a=e.sdkProcessingMetadata||{},o=a.capturedSpanScope,s=a.capturedSpanIsolationScope,c=Di(e.type);return this._process(()=>this._captureEvent(e,i,o||n,s),c),i.event_id}captureSession(e){this.sendSession(e),d(e,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getDataCollectionOptions(){return this._dataCollection}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(e){let t=this._transport;if(this.emit(`flush`),!t)return!0;let n=await this._isClientDoneProcessing(e),r=await t.flush(e);return n&&r}async close(e){let t=await this.flush(e);return this.getOptions().enabled=!1,this.emit(`close`),t}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some(({name:e})=>e.startsWith(`Spotlight`)))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}getIntegrationNames(){return Object.keys(this._integrations)}addIntegration(e){let t=this._integrations[e.name];!t&&e.beforeSetup&&e.beforeSetup(this),br(this,e,this._integrations),t||yr(this,[e])}sendEvent(e,t={}){this.emit(`beforeSendEvent`,e,t);let n=Jr(e,this),r=kn(e,this._dsn,this._options._metadata,this._options.tunnel);for(let e of t.attachments||[])r=mn(r,xn(e));n&&(r=mn(r,n)),this.sendEnvelope(r).then(t=>this.emit(`afterSendEvent`,e,t))}sendSession(e){let{release:t,environment:n=Ze}=this._options;if(`aggregates`in e){let r=e.attrs||{};if(!r.release&&!t){w&&D.warn(_i);return}r.release=r.release||t,r.environment=r.environment||n,e.attrs=r}else{if(!e.release&&!t){w&&D.warn(_i);return}e.release=e.release||t,e.environment=e.environment||n}this.emit(`beforeSendSession`,e);let r=On(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(r)}recordDroppedEvent(e,t,n=1){if(this._options.sendClientReports){let r=`${e}:${t}`;w&&D.log(`Recording outcome: "${r}"${n>1?` (${n} times)`:``}`),this._outcomes[r]=(this._outcomes[r]||0)+n}}on(e,t){let n=this._hooks[e]=this._hooks[e]||new Set,r=(...e)=>t(...e);return n.add(r),()=>{n.delete(r)}}emit(e,...t){let n=this._hooks[e];n&&n.forEach(e=>e(...t))}async sendEnvelope(e){if(this.emit(`beforeEnvelope`,e),this._isEnabled()&&this._transport)try{return await this._transport.send(e)}catch(e){return w&&D.error(`Error while sending envelope:`,e),{}}return w&&D.error(`Transport disabled`),{}}registerCleanup(e){}dispose(){}_setupIntegrations(){let{integrations:e}=this._options;this._integrations=vr(this,e),yr(this,e)}_updateSessionFromEvent(e,t){let n=t.level===`fatal`,r=!1,i=t.exception?.values;if(i){r=!0,n=!1;for(let e of i)if(e.mechanism?.handled===!1){n=!0;break}}let a=e.status===`ok`;(a&&e.errors===0||a&&n)&&(d(e,{...n&&{status:`crashed`},errors:e.errors||Number(r||n)}),this.captureSession(e))}async _isClientDoneProcessing(e){let t=0;for(;!e||t<e;){if(await new Promise(e=>setTimeout(e,1)),!this._numProcessing)return!0;t++}return!1}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(e,t,n,r){let i=this.getOptions(),a=this.getIntegrationNames();return!t.integrations&&a.length&&(t.integrations=a),this.emit(`preprocessEvent`,e,t),e.type||r.setLastEventId(e.event_id||t.event_id),Ct(i,e,t,n,this,r).then(e=>e===null?e:(this.emit(`postprocessEvent`,e,t),e.contexts={trace:{...e.contexts?.trace,...Xe(n)},...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:vt(this,n),...e.sdkProcessingMetadata},e))}_captureEvent(e,t={},n=O(),r=$e()){return w&&Ai(e)&&D.log(`Captured error event \`${ii(e)[0]||`<unknown>`}\``),this._processEvent(e,t,n,r).then(e=>e.event_id,e=>{w&&(wi(e)?D.log(e.message):Ci(e)?D.warn(e.message):D.warn(e))})}_processEvent(e,t,n,r){let i=this.getOptions(),{sampleRate:a}=i,o=ji(e),s=Ai(e),c=`before send for type \`${e.type||`error`}\``,l=a===void 0?void 0:g(a),u=Di(e.type);return this._prepareEvent(e,t,n,r).then(e=>{if(e===null)throw this.recordDroppedEvent(`event_processor`,u),Si("An event processor returned `null`, will not send event.");return t.data?.__sentry__===!0?e:Oi(ki(this,i,e,t),c)}).then(i=>{if(i===null){if(this.recordDroppedEvent(`before_send`,u),o){let t=1+(e.spans||[]).length;this.recordDroppedEvent(`before_send`,`span`,t)}throw Si(`${c} returned \`null\`, will not send event.`)}
8let d=n.getSession()||r.getSession();if(s&&d&&this._updateSessionFromEvent(d,i),s&&typeof l==`number`&&_()>l)throw this.recordDroppedEvent(`sample_rate`,`error`),Si(`Discarding event because it's not included in the random sample (sampling rate = ${a})`);if(o){let e=(i.sdkProcessingMetadata?.spanCountBeforeProcessing||0)-(i.spans?i.spans.length:0);e>0&&this.recordDroppedEvent(`before_send`,`span`,e)}let f=i.transaction_info;return o&&f&&i.transaction!==e.transaction&&(i.transaction_info={...f,source:`custom`}),this.sendEvent(i,t),i}).then(null,e=>{throw wi(e)||Ci(e)?e:(this.captureException(e,{mechanism:{handled:!1,type:`internal`},data:{__sentry__:!0},originalException:e}),xi(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
9Reason: ${e}`))})}_process(e,t){this._numProcessing++,this._promiseBuffer.add(e).then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e===Yr&&this.recordDroppedEvent(`queue_overflow`,t),e))}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.entries(e).map(([e,t])=>{let[n,r]=e.split(`:`);return{reason:n,category:r,quantity:t}})}_flushOutcomes(){w&&D.log(`Flushing outcomes...`);let e=this._clearOutcomes();if(e.length===0){w&&D.log(`No outcomes to send`);return}if(!this._dsn){w&&D.log(`No dsn provided, will not send outcomes`);return}w&&D.log(`Sending outcomes:`,e);let t=ri(e,this._options.tunnel&&ve(this._dsn));this.sendEnvelope(t)}};function Di(e){return e===`replay_event`?`replay`:e||`error`}function Oi(e,t){let n=`${t} must return \`null\` or a valid event.`;if(gt(e))return e.then(e=>{if(!pt(e)&&e!==null)throw xi(n);return e},e=>{throw xi(`${t} rejected with ${e}`)});if(!pt(e)&&e!==null)throw xi(n);return e}function ki(e,t,n,r){let{beforeSend:i,beforeSendTransaction:a,ignoreSpans:o}=t,s=!fn(t.beforeSendSpan)&&t.beforeSendSpan,c=n;if(Ai(c)&&i)return i(c,r);if(ji(c)){if(s||o){let t=ai(c);if(o?.length&&cn({description:t.description,op:t.op,attributes:t.data},o))return null;if(s){let e=s(t);e?c=_e(n,oi(e)):at()}if(c.spans){let t=[],n=c.spans;for(let e of n){if(o?.length&&cn({description:e.description,op:e.op,attributes:e.data},o)){un(n,e);continue}if(s){let n=s(e);n?t.push(n):(at(),t.push(e))}else t.push(e)}let r=c.spans.length-t.length;r&&e.recordDroppedEvent(`before_send`,`span`,r),c.spans=t}}if(a){if(c.spans){let e=c.spans.length;c.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return a(c,r)}}return c}function Ai(e){return e.type===void 0}function ji(e){return e.type===`transaction`}function Mi(e){let t=0;return e.name&&(t+=e.name.length*2),t+=8,t+Pi(e.attributes)}function Ni(e){let t=0;return e.message&&(t+=e.message.length*2),t+Pi(e.attributes)}function Pi(e){if(!e)return 0;let t=0;return Object.values(e).forEach(e=>{Array.isArray(e)?t+=e.length*Fi(e[0]):xt(e)?t+=Fi(e):t+=100}),t}function Fi(e){return typeof e==`string`?e.length*2:typeof e==`number`?8:typeof e==`boolean`?4:0}function Ii(e,t){t.debug===!0&&(w?D.enable():qe(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),O().update(t.initialScope);let n=new e(t);return Li(n),n.init(),n}function Li(e){O().setClient(e)}function Ri(e,t){return t.some(t=>e.includes(t))}function zi(e,t,n){if(t===!1)return{};let r=n==null?li:[...li,...n],i={};if(t===!0){for(let t of Object.keys(e))i[t]=Ri(t.toLowerCase(),r)?si:e[t];return i}if(`deny`in t){let n=t.deny.map(e=>e.toLowerCase());for(let t of Object.keys(e)){let a=t.toLowerCase();i[t]=Ri(a,r)||n.some(e=>a.includes(e))?si:e[t]}return i}let a=t.allow.map(e=>e.toLowerCase());for(let t of Object.keys(e)){let n=t.toLowerCase();i[t]=Ri(n,r)?si:a.some(e=>n.includes(e))?e[t]:si}return i}function Bi(e){let t={},n=0;for(;n<e.length;){let r=e.indexOf(`=`,n);if(r===-1)break;let i=e.indexOf(`;`,n);if(i===-1)i=e.length;else if(i<r){n=e.lastIndexOf(`;`,r-1)+1;continue}let a=e.slice(n,r).trim();if(t[a]===void 0){let n=e.slice(r+1,i).trim();n.charCodeAt(0)===34&&(n=n.slice(1,-1));try{t[a]=n.indexOf(`%`)===-1?n:decodeURIComponent(n)}catch{t[a]=n}}n=i+1}return t}function Vi(e,t){if(t===!1)return{};try{let n=Bi(e);return Object.keys(n).length===0?{}:zi(n,t,ui)}catch{return si}
9}var Hi=`thismessage:/`;function Ui(e){return`isRelative`in e}function Wi(e,t){let n=e.indexOf(`://`)<=0&&e.indexOf(`//`)!==0,r=t??(n?Hi:void 0);try{if(`canParse`in URL&&!URL.canParse(e,r))return;let t=new URL(e,r);return n?{isRelative:n,pathname:t.pathname,search:t.search,hash:t.hash}:t}catch{}}function Gi(e){if(Ui(e))return e.pathname;let t=new URL(e);return t.search=``,t.hash=``,[`80`,`443`].includes(t.port)&&(t.port=``),t.password&&=`%filtered%`,t.username&&=`%filtered%`,t.toString()}function Ki(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let n=t[6]||``,r=t[8]||``;return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}function qi(e){return e.split(/[?#]/,1)[0]}function P(e,t=!0){if(e.startsWith(`data:`)){let n=e.match(/^data:([^;,]+)/),r=n?n[1]:`text/plain`,i=e.includes(`;base64,`),a=e.indexOf(`,`),o=``;if(t&&a!==-1){let t=e.slice(a+1);o=t.length>10?`${t.slice(0,10)}... [truncated]`:t}return`data:${r}${i?`,base64`:``}${o?`,${o}`:``}`}return e}function Ji(e,t){let n=t?.getDsn(),r=t?.getOptions().tunnel;return Xi(e,n)||Yi(e,r)}function Yi(e,t){return t?Qi(e)===Qi(t):!1}function Xi(e,t){let n=Wi(e);return!n||Ui(n)||!t?!1:Zi(n.hostname,t.host)&&/(^|&|\?)sentry_key=/.test(n.search)}function Zi(e,t){return e===t||t.length>0&&e.endsWith(`.${t}`)}function Qi(e){return e[e.length-1]===`/`?e.slice(0,-1):e}function $i(e){`aggregates`in e?e.attrs?.ip_address===void 0&&(e.attrs={...e.attrs,ip_address:`{{auto}}`}):e.ipAddress===void 0&&(e.ipAddress=`{{auto}}`)}function ea(e,t,n=[t],r=`npm`){let i=(e._metadata=e._metadata||{}).sdk=e._metadata.sdk||{};i.name||(i.name=`sentry.javascript.${t}`,i.packages=n.map(e=>({name:`${r}:@sentry/${e}`,version:Mt})),i.version=Mt)}function ta(e={}){let t=e.client||T();if(!Ne()||!t)return{};let n=Ye(),r=Le(n);if(r.getTraceData)return r.getTraceData(e);let i=e.scope||O(),a=e.span||C(),o=Ae(a)&&!k(t.getOptions());if(!a&&Me())return{};let s=a&&!o?ue(a):na(i),c=a?lt(a):vt(t,i),l=ne(c);if(!pe.test(s))return D.warn(`Invalid sentry-trace data. Cannot generate trace data`),{};let u={"sentry-trace":s,baggage:l};return e.propagateTraceparent&&(u.traceparent=a&&!o?f(a):ra(i)),u}function na(e){let{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return Bt(t,r,n)}function ra(e){let{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return i(t,r,n)}var ia=100;function aa(e,t){let n=T(),r=$e();if(!n)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:a=ia}=n.getOptions();if(a<=0)return;let o={timestamp:le(),...e},s=i?qe(()=>i(o,t)):o;s!==null&&(n.emit&&n.emit(`beforeAddBreadcrumb`,s,t),r.addBreadcrumb(s,a))}var oa=`FunctionToString`,sa=new WeakMap,ca=M((()=>({name:oa,setupOnce(){let e=Function.prototype.toString;try{Function.prototype.toString=function(...t){let n=re(this),r;try{sa.has(T())&&n!==void 0&&(r=n)}catch{}return e.apply(r??this,t)}}catch{}},setup(e){sa.set(e,!0)}}))),la=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,/can't redefine non-configurable property "solana"/,/vv\(\)\.getRestrictions is not a function/,/Can't find variable: _AutofillCallbackHandler/,/Object Not Found Matching Id:\d+, MethodName:simulateEvent/,/Java exception was raised during method invocation$/,/Java object is gone$/],ua=`EventFilters`,da=M((e={})=>{let t;return{name:ua,setup(n){t=pa(e,n.getOptions())},processEvent(n,r,i){return t||=pa(e,i.getOptions()),ma(n,t)?null:n}}}),fa=M(((e={})=>({...da(e),name:`InboundFilters`})));function pa(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:la],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function ma(e,t){if(!e.type){if(ha(e,t.ignoreErrors))return w&&D.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
10Event: ${se(e)}`),!0;if(xa(e))return w&&D.warn(`Event dropped due to not having an error message, error type or stacktrace.
11Event: ${se(e)}`),!0;if(_a(e,t.denyUrls))return w&&D.warn(`Event dropped due to being matched by \`denyUrls\` option.
12Event: ${se(e)}.
13Url: ${ba(e)}`),!0;if(!va(e,t.allowUrls))return w&&D.warn(`Event dropped due to not being matched by \`allowUrls\` option.
14Event: ${se(e)}.
15Url: ${ba(e)}`),!0}else if(e.type===`transaction`&&ga(e,t.ignoreTransactions))return w&&D.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
16Event: ${se(e)}`),!0;return!1}
16function ha(e,t){return t?.length?ii(e).some(e=>b(e,t)):!1}function ga(e,t){if(!t?.length)return!1;let n=e.transaction;return n?b(n,t):!1}function _a(e,t){if(!t?.length)return!1;let n=ba(e);return n?b(n,t):!1}function va(e,t){if(!t?.length)return!0;let n=ba(e);return!n||b(n,t)}function ya(e=[]){for(let t=e.length-1;t>=0;t--){let n=e[t];if(n&&n.filename!==`<anonymous>`&&n.filename!==`[native code]`)return n.filename||null}return null}function ba(e){try{let t=[...e.exception?.values??[]].reverse().find(e=>e.mechanism?.parent_id===void 0&&e.stacktrace?.frames?.length)?.stacktrace?.frames;return t?ya(t):null}catch{return w&&D.error(`Cannot extract url for event ${se(e)}`),null}}function xa(e){return e.exception?.values?.length?!e.message&&!e.exception.values.some(e=>e.stacktrace||e.type&&e.type!==`Error`||e.value):!1}function Sa(e,t,n,r,i,a){if(!i.exception?.values||!a||!Te(a.originalException))return;let o=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;o&&(i.exception.values=Ca(e,t,r,a.originalException,n,i.exception.values,o,0))}function Ca(e,t,n,r,i,a,o,s){if(a.length>=n+1)return a;let c=[...a];if(Te(r[i])){Ta(o,s,r);let a=e(t,r[i]),l=c.length;Ea(a,i,l,s),c=Ca(e,t,n,r[i],i,[a,...c],a,l)}return wa(r)&&r.errors.forEach((a,l)=>{if(Te(a)){Ta(o,s,r);let u=e(t,a),d=c.length;Ea(u,`errors[${l}]`,d,s),c=Ca(e,t,n,a,i,[u,...c],u,d)}}),c}function wa(e){return Array.isArray(e.errors)}function Ta(e,t,n){e.mechanism={handled:!0,type:`auto.core.linked_errors`,...wa(n)&&{is_exception_group:!0},...e.mechanism,exception_id:t}}function Ea(e,t,n,r){e.mechanism={handled:!0,...e.mechanism,type:`chained`,source:t,exception_id:n,parent_id:r}}function Da(e){return Te(e)&&`__sentry_fetch_url_host__`in e&&typeof e.__sentry_fetch_url_host__==`string`}function Oa(e){return Da(e)?`${e.message} (${e.__sentry_fetch_url_host__})`:e.message}var ka=new Set([]);function Aa(e){let t=`console`,n=Yt(t,e);return Xt(t,Ma),n}var ja=new Set;function Ma(){`console`in A&&He.forEach(function(e){!ja.has(e)&&e in A.console&&(ja.add(e),h(A.console,e,function(t){return ut[e]=t,function(...t){let n=t[0],r=ut[e],i=ka.size&&typeof n==`string`&&b(n,ka);i||Zt(`console`,{args:t,level:e}),(!i||w&&D.isEnabled())&&r?.apply(A.console,t)}}))})}function Na(e){return e===`warn`?`warning`:[`fatal`,`error`,`warning`,`log`,`info`,`debug`].includes(e)?e:`log`}var Pa=`CaptureConsole`,Fa=M(((e={})=>{let t=e.levels||He,n=e.handled??!0;return{name:Pa,setup(e){`console`in A&&Aa(({args:r,level:i})=>{T()===e&&t.includes(i)&&Ia(r,i,n)})}}}));function Ia(e,t,n){let i=Na(t),a=Error(),o={level:Na(t),extra:{arguments:e}};Nt(s=>{if(s.addEventProcessor(e=>(e.logger=`console`,r(e,{handled:n,type:`auto.core.capture_console`}),e)),t===`assert`){if(!e[0]){let t=`Assertion failed: ${y(e.slice(1),` `)||`console.assert`}`;s.setExtra(`arguments`,e.slice(1)),s.captureMessage(t,i,{captureContext:o,syntheticException:a})}return}let c=e.find(e=>e instanceof Error);if(c){ft(c,o);return}let l=y(e,` `);s.captureMessage(l,i,{captureContext:o,syntheticException:a})})}var La=`Dedupe`,Ra=M((()=>{let e;return{name:La,processEvent(t){if(t.type)return t;try{if(za(t,e))return w&&D.warn(`Event dropped due to being a duplicate of previously captured event.`),null}catch{}return e=t}}}));function za(e,t){return t?!!(Ba(e,t)||Va(e,t)):!1}function Ba(e,t){let n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!Ua(e,t)||!Ha(e,t))}function Va(e,t){let n=Wa(t),r=Wa(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!Ua(e,t)||!Ha(e,t))}function Ha(e,t){let n=ze(e),r=ze(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let e=0;e<r.length;e++){let t=r[e],i=n[e];if(t.filename!==i.filename||t.lineno!==i.lineno||t.colno!==i.colno||t.function!==i.function)return!1}return!0}function Ua(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join(``)===r.join(``)}catch{return!1}}function Wa(e){return e.exception?.values?.[0]}var Ga=`ConversationId`,Ka=M((()=>({name:Ga,setup(t){t.on(`spanStart`,t=>{let n=O().getScopeData(),r=$e().getScopeData(),i=n.conversationId||r.conversationId;if(i){let{op:n,data:r,description:a}=x(t);if(!n?.startsWith(`gen_ai.`)&&!r[`ai.operationId`]&&!a?.startsWith(`ai.`))return;t.setAttribute(e,i)}})}})));function qa(e,t,n,r,i){if(!e.fetchData)return;let{method:a,url:o}=e.fetchData,s=k()&&t(o);if(e.endTimestamp){let t=e.fetchData.__span;if(!t)return;let n=r[t];n&&(s&&(Xa(n,e),Ja(n,e,i)),delete r[t]);return}let{spanOrigin:c=`auto.http.browser`,propagateTraceparent:l=!1}=typeof i==`object`?i:{spanOrigin:i},u=T(),d=!!C(),f=d||!!u&&j(u),p=s&&f?Un(eo(o,a,c)):new Je,m=tr(p)&&d?void 0:p;if(s&&!f&&u?.recordDroppedEvent(`no_parent_span`,`span`),e.fetchData.__span=p.spanContext().spanId,r[p.spanContext().spanId]=p,n(e.fetchData.url)){let t=e.args[0],n={...e.args[1]||{}},r=Ya(t,n,k()&&f?m:void 0,l);r&&(e.args[1]=n,n.headers=r)}if(u){let t={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};u.emit(`beforeOutgoingRequestSpan`,p,t)}return p}function Ja(e,t,n){(typeof n==`object`&&n?n.onRequestSpanEnd:void 0)?.(e,{headers:t.response?.headers,error:t.error})}function Ya(e,t,n,r){let i=ta({span:n,propagateTraceparent:r}),a=i[`sentry-trace`],o=i.baggage,s=i.traceparent;if(!a)return;let c=t.headers||(tt(e)?e.headers:void 0);if(!c)return{"sentry-trace":a,...o&&{baggage:o},...s&&{traceparent:s}};if(Qa(c)){let e=new Headers(c);if(e.get(`sentry-trace`)||e.set(`sentry-trace`,a),r&&s&&!e.get(`traceparent`)&&e.set(`traceparent`,s),o){let t=e.get(`baggage`);t?Za(t)||e.set(`baggage`,`${t},${o}`):e.set(`baggage`,o)}return e}if($a(c)){let e=[...c];e.find(e=>e[0]===`sentry-trace`)||e.push([`sentry-trace`,a]),r&&s&&!e.find(e=>e[0]===`traceparent`)&&e.push([`traceparent`,s]);let t=c.find(e=>e[0]===`baggage`&&typeof e[1]==`string`&&Za(e[1]));return o&&!t&&e.push([`baggage`,o]),e}{let e=`sentry-trace`in c?c[`sentry-trace`]:void 0,t=`traceparent`in c?c.traceparent:void 0,n=`baggage`in c?c.baggage:void 0,i=n?Array.isArray(n)?[...n]:[n]:[],l=n&&(Array.isArray(n)?n.find(e=>Za(e)):Za(n));o&&!l&&i.push(o);let u=Object.assign({},c,{"sentry-trace":e??a,...i.length>0&&{baggage:i.join(`,`)}});return r&&s&&!t&&(u.traceparent=s),u}}function Xa(e,t){if(t.response){de(e,t.response.status);let n=t.response?.headers?.get(`content-length`);if(n){let t=parseInt(n);t>0&&e.setAttribute(`http.response_content_length`,t)}}else t.error&&e.setStatus({code:2,message:`internal_error`});e.end()}function Za(e){return typeof e==`string`&&e.split(`,`).some(e=>e.trim().startsWith(m))}function Qa(e){return typeof Headers<`u`&&t(e,Headers)}function $a(e){return Array.isArray(e)?e.every(e=>Array.isArray(e)&&e.length===2&&typeof e[0]==`string`):!1}function eo(e,t,n){if(e.startsWith(`data:`))return{name:`${t} ${P(e)}`,attributes:to(e,void 0,t,n)};let r=Wi(e);return{name:`${t} ${r?Gi(r):e}`,attributes:to(e,r,t,n)}}function to(e,t,n,r){let i={url:P(e),type:`fetch`,"http.method":n,[Tt]:r,[_t]:`http.client`};return t&&(Ui(t)||(i[Ht]=P(t.href),i[Gt]=P(t.href),i[`server.address`]=t.host),t.search&&(i[`http.query`]=t.search),t.hash&&(i[`http.fragment`]=t.hash)),i}function no(e,t,n){return`util`in A&&typeof A.util.format==`function`?A.util.format(...e):ro(e,t,n)}function ro(e,t,n){return e.map(e=>xt(e)?String(e):JSON.stringify(me(e,t,n))).join(` `)}function io(e){return/%[sdifocO]/.test(e)}function ao(e,t){let n={};return n[`sentry.message.template`]=`${e} ${Array(t.length).fill(`{}`).join(` `)}`,t.forEach((e,t)=>{n[`sentry.message.parameter.${t}`]=e}),n}var oo=`ConsoleLogs`,so={[Tt]:`auto.log.console`},co=M(((e={})=>{let t=e.levels||He;return{name:oo,setup(e){let{enableLogs:n,normalizeDepth:r=3,normalizeMaxBreadth:i=1e3}=e.getOptions();if(!n){w&&D.warn("`enableLogs` is not enabled, ConsoleLogs integration disabled");return}let a=Aa(({args:n,level:a})=>{if(T()!==e||!t.includes(a))return;let o=n[0],s=n.slice(1);if(a===`assert`){o||Ir({level:`error`,message:s.length>0?`Assertion failed: ${no(s,r,i)}`:`Assertion failed`,attributes:so});return}let c=a===`log`,l={...so};if(pt(o)){Object.assign(l,me(o,r,i));let e=typeof n[1]==`string`?2:1;n.slice(e).forEach((e,t)=>{l[`sentry.message.parameter.${t}`]=me(e,r,i)})}else if(s.length>
160&&typeof o==`string`&&!io(o)){let e=ao(o,s);for(let[t,n]of Object.entries(e))l[t]=t.startsWith(`sentry.message.parameter.`)?me(n,r,i):n}Ir({level:c?`info`:a,message:no(n,r,i),severityNumber:c?10:void 0,attributes:l})});e.registerCleanup(a)}}}));function lo(e){if(e!==void 0){if(e>=400&&e<500)return`warning`;if(e>=500)return`error`}}var uo=A;function fo(){if(!(`fetch`in uo))return!1;try{return new Headers,new Request(`data:,`),new Response,!0}catch{return!1}}function po(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function mo(){if(typeof EdgeRuntime==`string`)return!0;if(!fo())return!1;if(po(uo.fetch))return!0;let e=!1,t=uo.document;if(t&&typeof t.createElement==`function`)try{let n=t.createElement(`iframe`);n.hidden=!0,t.head.appendChild(n),n.contentWindow?.fetch&&(e=po(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){w&&D.warn(`Could not create sandbox iframe for pure fetch check, bailing to window.fetch: `,e)}return e}function ho(e,t){let n=`fetch`,r=Yt(n,e);return Xt(n,()=>_o(void 0,t)),r}function go(e){let t=`fetch-body-resolved`,n=Yt(t,e);return Xt(t,()=>_o(yo)),n}function _o(e,t=!1){(!t||mo())&&h(A,`fetch`,function(t){return function(...n){let r=Error(),{method:i,url:a}=So(n),o={args:n,fetchData:{method:i,url:a},startTimestamp:E()*1e3,virtualError:r,headers:Co(n)};return e||Zt(`fetch`,{...o}),t.apply(A,n).then(async t=>(e?e(t):Zt(`fetch`,{...o,endTimestamp:E()*1e3,response:t}),t),e=>{Zt(`fetch`,{...o,endTimestamp:E()*1e3,error:e}),Te(e)&&e.stack===void 0&&(e.stack=r.stack,ye(e,`framesToPop`,1));let t=T()?.getOptions().enhanceFetchErrorMessages??`always`;if(t!==!1&&Te(e)&&e.name===`TypeError`&&(e.message===`Failed to fetch`||e.message===`Load failed`||e.message===`NetworkError when attempting to fetch resource.`))try{let n=new URL(o.fetchData.url).host;t===`always`?e.message=`${e.message} (${n})`:ye(e,`__sentry_fetch_url_host__`,n)}catch{}throw e})}})}async function vo(e,t){if(e?.body){let n=e.body,r=n.getReader(),i=setTimeout(()=>{n.cancel().then(null,()=>{})},9e4),a=!0;for(;a;){let e;try{e=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);let{done:i}=await r.read();clearTimeout(e),i&&(t(),a=!1)}catch{a=!1}finally{clearTimeout(e)}}clearTimeout(i),r.releaseLock(),n.cancel().then(null,()=>{})}}function yo(e){let t;try{t=e.clone()}catch{return}vo(t,()=>{Zt(`fetch-body-resolved`,{endTimestamp:E()*1e3,response:e})})}function bo(e,t){return We(e)&&!!e[t]}function xo(e){return typeof e==`string`?e:e?bo(e,`url`)?e.url:e.toString?e.toString():``:``}function So(e){if(e.length===0)return{method:`GET`,url:``};if(e.length===2){let[t,n]=e;return{url:xo(t),method:bo(n,`method`)?String(n.method).toUpperCase():tt(t)&&bo(t,`method`)?String(t.method).toUpperCase():`GET`}}let t=e[0];return{url:xo(t),method:bo(t,`method`)?String(t.method).toUpperCase():`GET`}}function Co(e){let[t,n]=e;try{if(typeof n==`object`&&n&&`headers`in n&&n.headers)return new Headers(n.headers);if(tt(t))return new Headers(t.headers)}catch{}}var wo=A;function To(){try{return wo.document.location.href}catch{return``}}function Eo(e,t=5){if(!wo.HTMLElement)return null;let n=e;for(let e=0;e<t;e++){if(!n)return null;if(n instanceof HTMLElement){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}n=n.parentNode}return null}var F=A,Do=0;function Oo(){return Do>0}function ko(){Do++,setTimeout(()=>{Do--})}function Ao(e,t={}){function n(e){return typeof e==`function`}if(!n(e))return e;try{if(Object.prototype.hasOwnProperty.call(e,`__sentry_wrapped__`)){let t=e.__sentry_wrapped__;return typeof t==`function`?t:e}if(re(e))return e}catch{return e}let i=function(...n){A._sentryWrappedDepth=(A._sentryWrappedDepth||0)+1;try{let r=n.map(e=>Ao(e,t));return e.apply(this,r)}catch(e){throw ko(),Nt(i=>{i.addEventProcessor(e=>(t.mechanism&&(it(e,void 0,void 0),r(e,t.mechanism)),e.extra={...e.extra,arguments:n},e)),ft(e)}),e}finally{A._sentryWrappedDepth=(A._sentryWrappedDepth||0)-1}};try{for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(i[t]=e[t])}catch{}bt(i,e),ye(e,`__sentry_wrapped__`,i);try{Object.getOwnPropertyDescriptor(i,`name`).configurable&&Object.defineProperty(i,"name",{get(){return e.name}})}catch{}return i}function jo(){let e=To(),{referrer:t}=F.document||{},{userAgent:n}
16=F.navigator||{};return{url:e,headers:{...t&&{Referer:t},...n&&{"User-Agent":n}}}}function Mo(e,t){let n=Fo(e,t),r={type:Bo(t),value:Vo(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===``&&(r.value=`Unrecoverable error caught`),r}function No(e,t,n,r){let i=T()?.getOptions().normalizeDepth,a=Jo(t),o={__serialized__:Vt(t,i)};if(a)return{exception:{values:[Mo(e,a)]},extra:o};let s={exception:{values:[{type:fe(t)?t.constructor.name:r?`UnhandledRejection`:`Error`,value:Ko(t,{isUnhandledRejection:r})}]},extra:o};if(n){let t=Fo(e,n);t.length&&(s.exception.values[0].stacktrace={frames:t})}return s}function Po(e,t){return{exception:{values:[Mo(e,t)]}}}function Fo(e,t){let n=t.stacktrace||t.stack||``,r=Lo(t),i=Ro(t);try{return e(n,r,i)}catch{}return[]}var Io=/Minified React error #\d+;/i;function Lo(e){return e&&Io.test(e.message)?1:0}function Ro(e){return typeof e.framesToPop==`number`?e.framesToPop:0}function zo(e){return typeof WebAssembly<`u`&&WebAssembly.Exception!==void 0&&e instanceof WebAssembly.Exception}function Bo(e){let t=e?.name;return!t&&zo(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:`WebAssembly.Exception`:t}function Vo(e){let t=e?.message;return zo(e)?Array.isArray(e.message)&&e.message.length==2?e.message[1]:`wasm exception`:t?t.error&&typeof t.error.message==`string`?Oa(t.error):Oa(e):`No error message`}function Ho(e,t,n,i){let a=Wo(e,t,n?.syntheticException||void 0,i);return r(a),a.level=`error`,n?.event_id&&(a.event_id=n.event_id),kt(a)}function Uo(e,t,n=`info`,r,i){let a=Go(e,t,r?.syntheticException||void 0,i);return a.level=n,r?.event_id&&(a.event_id=r.event_id),kt(a)}function Wo(e,t,n,i,a){let o;if(ke(t)&&t.error)return Po(e,t.error);if(te(t)||De(t)){let a=t;if(`stack`in t){o=Po(e,t);let a=o.exception?.values?.[0];if(i&&n&&a&&!a.stacktrace){let t=Fo(e,n);t.length&&(a.stacktrace={frames:t},r(o,{synthetic:!0}))}}else{let t=a.name||(te(a)?`DOMError`:`DOMException`),r=a.message?`${t}: ${a.message}`:t;o=Go(e,r,n,i),it(o,r)}return`code`in a&&(o.tags={...o.tags,"DOMException.code":`${a.code}`}),o}return Te(t)?Po(e,t):pt(t)||fe(t)?(o=No(e,t,n,a),r(o,{synthetic:!0}),o):(o=Go(e,t,n,i),it(o,`${t}`,void 0),r(o,{synthetic:!0}),o)}function Go(e,t,n,i){let a={};if(i&&n){let i=Fo(e,n);i.length&&(a.exception={values:[{value:t,stacktrace:{frames:i}}]}),r(a,{synthetic:!0})}if(Dt(t)){let{__sentry_template_string__:e,__sentry_template_values__:n}=t;return a.logentry={message:e,params:n},a}return a.message=t,a}function Ko(e,{isUnhandledRejection:t}){let n=Ce(e),r=t?`promise rejection`:`exception`;return ke(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:fe(e)?`Event \`${qo(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function qo(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function Jo(e){return Object.values(e).find(Te)}var Yo=class extends Ei{constructor(e){let t=Xo(e);ea(t,`browser`,[`browser`],F.SENTRY_SDK_SOURCE||Or()),super(t);let{userInfo:n}=this.getDataCollectionOptions();t._metadata?.sdk&&(t._metadata.sdk.settings={infer_ip:n?`auto`:`never`,...t._metadata.sdk.settings});let{sendClientReports:r}=this._options;F.document&&F.document.addEventListener(`visibilitychange`,()=>{F.document.visibilityState===`hidden`&&(r&&this._flushOutcomes(),queueMicrotask(()=>{this.flush()}))}),n&&this.on(`beforeSendSession`,$i)}eventFromException(e,t){return Ho(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t=`info`,n){return Uo(this._options.stackParser,e,t,n,this._options.attachStacktrace)}_prepareEvent(e,t,n,r){return e.platform=e.platform||`javascript`,super._prepareEvent(e,t,n,r)}};function Xo(e){return{release:typeof __SENTRY_RELEASE__==`string`?__SENTRY_RELEASE__:F.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}var I=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,L=globalThis,Zo=`10.75.0`;function Qo(){return $o(L),L}function $o(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||`10.75.0`,t[Zo]=t[`10.75.0`]||{}}function es(e,t,n=L){let r=n.__SENTRY__=n.__SENTRY__||{},i=r[Zo]=r[`10.75.0`]||{};return i[e]||(i[e]=t())}var ts=`Sentry Logger `,ns={};function rs(e){if(!(`console`in L))return e();let t=L.console,n={},r=Object.keys(ns);
16r.forEach(e=>{let r=ns[e];n[e]=t[e],t[e]=r});try{return e()}finally{r.forEach(e=>{t[e]=n[e]})}}function is(){ds().enabled=!0}function as(){ds().enabled=!1}function os(){return ds().enabled}function ss(...e){us(`log`,...e)}function cs(...e){us(`warn`,...e)}function ls(...e){us(`error`,...e)}function us(e,...t){I&&os()&&rs(()=>{L.console[e](`${ts}[${e}]:`,...t)})}function ds(){return I?es(`loggerSettings`,()=>({enabled:!1})):{enabled:!1}}var R={enable:is,disable:as,isEnabled:os,log:ss,warn:cs,error:ls},fs=`<anonymous>`;function ps(e){try{return!e||typeof e!=`function`?fs:e.name||fs}catch{return fs}}var ms={},hs={};function gs(e,t){return ms[e]=ms[e]||[],ms[e].push(t),()=>{let n=ms[e];if(n){let e=n.indexOf(t);e!==-1&&n.splice(e,1)}}}function _s(e,t){if(!hs[e]){hs[e]=!0;try{t()}catch(t){I&&R.error(`Error while instrumenting ${e}`,t)}}}function vs(e,t){let n=e&&ms[e];if(n)for(let r of n)try{r(t)}catch(t){I&&R.error(`Error while triggering instrumentation handler.
17Type: ${e}
18Name: ${ps(r)}
19Error:`,t)}}var ys=Object.prototype.toString;function bs(e,t){return ys.call(e)===`[object ${t}]`}function xs(e){return bs(e,`String`)}function Ss(e){return typeof e==`object`&&!!e&&`__sentry_template_string__`in e&&`__sentry_template_values__`in e}function Cs(e){return e===null||Ss(e)||typeof e!=`object`&&typeof e!=`function`}function ws(e){return bs(e,`Object`)}function Ts(e){return bs(e,`RegExp`)}function Es(e){return!!(e?.then&&typeof e.then==`function`)}function Ds(e,t,n){if(!(t in e))return;let r=e[t];if(typeof r!=`function`)return;let i=n(r);typeof i==`function`&&Os(i,r);try{e[t]=i}catch{I&&R.log(`Failed to replace method "${t}" in object`,e)}}function z(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{I&&R.log(`Failed to add non-enumerable property "${String(t)}" to object`,e)}}function Os(e,t){try{e.prototype=t.prototype=t.prototype||{},z(e,`__sentry_original__`,t)}catch{}}var ks;function As(e){if(ks!==void 0)return ks?ks(e):e();let t=Symbol.for(`__SENTRY_SAFE_RANDOM_ID_WRAPPER__`),n=L;return t in n&&typeof n[t]==`function`?(ks=n[t],ks(e)):(ks=null,e())}function js(){return As(()=>Math.random())}function Ms(){return As(()=>Date.now())}function Ns(e,t=0){return typeof e!=`string`||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function Ps(e,t,n=!1){return xs(e)?Ts(t)?t.test(e):xs(t)?n?e===t:e.includes(t):typeof t==`function`&&t(e):!1}function Fs(e,t=[],n=!1){for(let r of t)if(Ps(e,r,n))return!0;return!1}function Is(){let e=L;return e.crypto||e.msCrypto}var Ls;function Rs(){return js()*16}function zs(e=Is()){try{if(e?.randomUUID)return As(()=>e.randomUUID()).replace(/-/g,``)}catch{}return Ls||=`10000000100040008000100000000000`,Ls.replace(/[018]/g,e=>(e^(Rs()&15)>>e/4).toString(16))}var Bs=1e3;function Vs(){return Ms()/Bs}function Hs(){let{performance:e}=L;if(!e?.now||!e.timeOrigin)return Vs;let t=e.timeOrigin;return()=>(t+As(()=>e.now()))/Bs}var Us;function Ws(){return(Us??=Hs())()}var Gs=null;function Ks(){let{performance:e}=L;if(!e?.now)return;let t=3e5,n=As(()=>e.now()),r=Ms(),i=e.timeOrigin;if(typeof i==`number`&&Math.abs(i+n-r)<t)return i;let a=e.timing?.navigationStart;return typeof a==`number`&&Math.abs(a+n-r)<t?a:r-n}function B(){return Gs===null&&(Gs=Ks()),Gs}function qs(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||Ws(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:zs()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started==`number`&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration==`number`)e.duration=t.duration;else{let t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors==`number`&&(e.errors=t.errors),t.status&&(e.status=t.status)}function Js(e,t,n=2){if(!t||typeof t!=`object`||n<=0)return t;if(e&&Object.keys(t).length===0)return e;let r={...e};for(let e in t)Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=Js(r[e],t[e],n-1));return r}function Ys(){return zs()}function Xs(){return zs().substring(16)}function Zs(e){try{let t=L.WeakRef;if(typeof t==`function`)return new t(e)}catch{}return e}function Qs(e){if(e){if(typeof e==`object`&&`deref`in e&&typeof e.deref==`function`)try{return e.deref()}catch{return}return e}}var $s=`_sentrySpan`;function ec(e,t){t?z(e,$s,Zs(t)):delete e[$s]}function tc(e){return Qs(e[$s])}var nc=100,rc=class e{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:Ys(),sampleRand:js()}}clone(){let t=new e;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._attributes={...this._attributes},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,t._conversationId=this._conversationId,ec(t,tc(this)),t}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&qs(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(e){return this._conversationId=e||void 0,this._notifyScopeListeners(),this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this.setTags({[e]:t})}setAttributes(e){return this._attributes={...this._attributes,...e},this._notifyScopeListeners(),this}setAttribute(e,t){return this.setAttributes({[e]:t})}removeAttribute(e){return e in this._attributes&&(delete this._attributes[e],this._notifyScopeListeners()),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return t===null?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;let n=typeof t==`function`?t(this):t,{tags:r,attributes:i,extra:a,user:o,contexts:s,level:c,fingerprint:l=[],propagationContext:u,conversationId:d}=(n instanceof e?n.getScopeData():ws(n)?t:void 0)||{};return this._tags={...this._tags,...r},this._attributes={...this._attributes,...i},this._extra={...this._extra,...a},this._contexts={...this._contexts,...s},o&&Object.keys(o).length&&(this._user=o),c&&(this._level=c),l.length&&(this._fingerprint=l),u&&(this._propagationContext=u),d&&(this._conversationId=d),this}clear(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,this._conversationId=void 0,ec(this,void 0),this._attachments=[],this.setPropagationContext({traceId:Ys(),sampleRand:js()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){let n=typeof t==`number`?t:nc;if(n<=0)return this;let r={timestamp:Vs(),...e,message:e.message?Ns(e.message,2048):e.message};return this._breadcrumbs.push(r),this._breadcrumbs.length>n&&(this._breadcrumbs=this._breadcrumbs.slice(-n),this._client?.recordDroppedEvent(`buffer_overflow`,`log_item`)),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,attributes:this._attributes,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:tc(this),conversationId:this._conversationId}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=Js(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){let n=t?.event_id||zs();if(!this._client)return I&&R.warn(`No client configured on scope - will not capture exception!`),n;let r=Error(`Sentry syntheticException`);return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){let r=n?.event_id||zs();if(!this._client)return I&&R.warn(`No client configured on scope - will not capture message!`),r;let i=n?.syntheticException??Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:r},this),r}captureEvent(e,t){let n=e.event_id||t?.event_id||zs();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(I&&R.warn(`No client configured on scope - will not capture event!`),n)}_notifyScopeListeners(){this._notifyingListeners||=(this._notifyingListeners=!0,this._scopeListeners.forEac
19h(e=>{e(this)}),!1)}};function ic(){return es(`defaultCurrentScope`,()=>new rc)}function ac(){return es(`defaultIsolationScope`,()=>new rc)}var oc=e=>e instanceof Promise&&!e[sc],sc=Symbol(`chained PromiseLike`),cc=(e,t,n)=>{let r=e.then(e=>(t(e),e),e=>{throw n(e),e});return oc(r)&&oc(e)?r:lc(e,r)},lc=(e,t)=>{if(!t)return e;let n=!1;for(let r in e){if(r in t)continue;n=!0;let i=e[r];typeof i==`function`?Object.defineProperty(t,r,{value:(...t)=>i.apply(e,t),enumerable:!0,configurable:!0,writable:!0}):t[r]=i}return n&&Object.assign(t,{[sc]:!0}),t},uc=class{constructor(e,t){let n;n=e||new rc;let r;r=t||new rc,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){let t=this._pushScope(),n;try{n=e(t)}catch(e){throw this._popScope(),e}return Es(n)?cc(n,()=>this._popScope(),()=>this._popScope()):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){let e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}};function dc(){let e=$o(Qo());return e.stack=e.stack||new uc(ic(),ac())}function fc(e){return dc().withScope(e)}function pc(e,t){let n=dc();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function mc(e){return dc().withScope(()=>e(dc().getIsolationScope()))}function hc(){return{withIsolationScope:mc,withScope:fc,withSetScope:pc,withSetIsolationScope:(e,t)=>mc(t),getCurrentScope:()=>dc().getScope(),getIsolationScope:()=>dc().getIsolationScope()}}function gc(e){let t=$o(e);return t.acs?t.acs:hc()}function V(){return gc(Qo()).getCurrentScope()}function _c(){return gc(Qo()).getIsolationScope()}function vc(...e){let t=gc(Qo());if(e.length===2){let[n,r]=e;return n?t.withSetScope(n,r):t.withScope(r)}return t.withScope(e[0])}function H(){return V().getClient()}var yc=`sentry.source`,bc=`sentry.sample_rate`,xc=`sentry.op`,U=`sentry.origin`,Sc=`sentry.measurement_unit`,Cc=`sentry.measurement_value`,wc=`sentry.custom_span_name`,Tc=`sentry.profile_id`,Ec=`sentry.exclusive_time`,Dc=`_sentryScope`,Oc=`_sentryIsolationScope`,kc=Symbol.for(`sentry.otelSourceInference`),Ac=Symbol.for(`sentry.otelSourceExplicitlySet`),jc=Symbol.for(`sentry.tracerProviderSpan`);function Mc(e,t,n){e&&(z(e,Oc,Zs(n)),z(e,Dc,t))}function Nc(e){let t=e;return{scope:t[Dc],isolationScope:Qs(t[Oc])}}function Pc(e){return e[kc]===!0}function Fc(e){z(e,Ac,!0)}function Ic(e){return e[jc]===!0}function Lc(e){let t=Rc(e);if(!t)return;let n=Object.entries(t).reduce((e,[t,n])=>{if(t.startsWith(`sentry-`)){let r=t.slice(7);e[r]=n}return e},{});if(Object.keys(n).length>0)return n}function Rc(e){if(e&&(xs(e)||Array.isArray(e)))return Array.isArray(e)?e.reduce((e,t)=>{let n=zc(t);return Object.entries(n).forEach(([t,n])=>{e[t]=n}),e},{}):zc(e)}function zc(e){return e.split(`,`).map(e=>{let t=e.indexOf(`=`);return t===-1?[]:[e.slice(0,t),e.slice(t+1)].map(e=>{try{return decodeURIComponent(e.trim())}catch{return}})}).reduce((e,[t,n])=>(t&&n&&(e[t]=n),e),{})}var Bc=/^o(\d+)\./;function Vc(e,t=!1){let{host:n,path:r,pass:i,port:a,projectId:o,protocol:s,publicKey:c}=e;return`${s}://${c}${t&&i?`:${i}`:``}@${n}${a?`:${a}`:``}/${r&&`${r}/`}${o}`}function Hc(e){return e.match(Bc)?.[1]}function Uc(e){let t=e.getOptions(),{host:n}=e.getDsn()||{},r;return t.orgId?r=String(t.orgId):n&&(r=Hc(n)),r}function Wc(e){if(typeof e==`boolean`)return Number(e);let t=typeof e==`string`?parseFloat(e):e;if(!(typeof t!=`number`||isNaN(t)||t<0||t>1))return t}var Gc=!1;function Kc(e){let{spanId:t,traceId:n}=e.spanContext(),{data:r,op:i,parent_span_id:a,status:o,origin:s,links:c}=W(e);return{parent_span_id:a,span_id:t,trace_id:n,data:r,op:i,status:o,origin:s,links:c}}function qc(e){if(e&&e.length>0)return e.map(({context:{spanId:e,traceId:t,traceFlags:n,...r},attributes:i})=>({span_id:e,trace_id:t,sampled:n===1,attributes:i,...r}))}function Jc(e){if(e?.length)return e.map(({context:{spanId:e,traceId:t,traceFlags:n},attributes:r})=>({span_id:e,trace_id:t,sampled:n===1,attributes:r}))}function Yc(e){return typeof e==`number`?Xc(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?Xc(e.getTime()):Ws()}function Xc(e){return e>9999999999?e/1e3:e}function W(e){if(el(e))return e.getSpanJSON();let{spanId:t,traceId:n}=e.spanContext();if($c(e)){let{attributes:r,startTime:i,name:a,endTime:o,status:s,links:c}=e;return{span_id:t,trace_id:n,data:r,description:a,parent_span_id:Qc(e),start_timestamp:Yc(i),timestamp:Yc(o)||void 0,status:nl(s),op:r[xc],origin:r[U],links:qc(c)}}return{span_id:t,trace_id:n,start_timestamp:0,data:{}}}function Zc(e){if(el(e))return e.getStreamedSpanJSON();let{spanId:t,traceId:n}=e.spanContext();if($c(e)){let{attributes:r,startTime:i,name:a,endTime:o,status:s,links:c}=e;return{name:a,span_id:t,trace_id:n,parent_span_id:Qc(e),start_timestamp:Yc(i),end_timestamp:Yc(o),is_segment:e===ll(e),status:rl(s),attributes:il(r,s),links:Jc(c)}}return{span_id:t,trace_id:n,start_timestamp:0,name:``,end_timestamp:0,status:`ok`,is_segment:e===ll(e)}}function Qc(e){return`parentSpanId`in e?e.parentSpanId:`parentSpanContext`in e?e.parentSpanContext?.spanId:void 0}function $c(e){let t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function el(e){return typeof e.getSpanJSON==`function`}function tl(e){let{traceFlags:t}=e.spanContext();return t===1}function nl(e){if(e&&e.code!==0)return e.code===1?`ok`:e.message||`internal_error`}function rl(e){return!e||e.code===1||e.code===0||e.message===`cancelled`?`ok`:`error`}function il(e,t){let n=rl(t)===`error`?t?.message:void 0;return{...n&&{"sentry.status.message":n},...e}}var al=`_sentryChildSpans`,ol=`_sentryRootSpan`;function sl(e,t){let n=e[ol]||e;z(t,ol,n),tl(e)&&(e.isRecording()||n.isRecording())&&(e[al]?e[al].add(t):z(e,al,new Set([t])))}function cl(e){let t=new Set;function n(e){if(!t.has(e)&&tl(e)){t.add(e);let r=e[al]?Array.from(e[al]):[];for(let e of r)n(e)}}return n(e),Array.from(t)}var G=ll;function ll(e){return e[ol]||e}function ul(){let e=gc(Qo());return e.getActiveSpan?e.getActiveSpan():tc(V())}function dl(){Gc||=(rs(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),!0)}function fl(e){if(typeof __SENTRY_TRACING__==`boolean`&&!__SENTRY_TRACING__)return!1;let t=e||H()?.getOptions();return!!t&&(t.tracesSampleRate!=null||!!t.tracesSampler)}function pl(e){R.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}function ml(e,t){if(!t?.length)return!1;
19for(let n of t){if(gl(n)){if(e.description&&Ps(e.description,n))return I&&pl(e),!0;continue}let t=!!n.attributes&&Object.keys(n.attributes).length>0;if(!n.name&&!n.op&&!t)continue;let r=!n.name||e.description&&Ps(e.description,n.name),i=!n.op||e.op&&Ps(e.op,n.op),a=!n.attributes||Object.entries(n.attributes).every(([t,n])=>hl(e.attributes?.[t],n));if(r&&i&&a)return I&&pl(e),!0}return!1}function hl(e,t){return typeof e==`string`&&(typeof t==`string`||t instanceof RegExp)?Ps(e,t):Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e===t}function gl(e){return typeof e==`string`||e instanceof RegExp}var _l=Symbol.for(`sentry.nonRecordingSpan`),vl=class{constructor(e={}){this._traceId=e.traceId||Ys(),this._spanId=e.spanId||Xs(),this.dropReason=e.dropReason,z(this,_l,!0)}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:0}}end(e){}setAttribute(e,t){return this}setAttributes(e){return this}setStatus(e){return this}updateName(e){return this}isRecording(){return!1}addEvent(e,t,n){return this}addLink(e){return this}addLinks(e){return this}recordException(e,t){}};function yl(e){return!!e&&e[_l]===!0}var bl=`_frozenDsc`;function xl(e,t){z(e,bl,t)}function Sl(e,t){let n=t.getOptions(),{publicKey:r}=t.getDsn()||{},i={environment:n.environment||`production`,release:n.release,public_key:r,trace_id:e,org_id:Uc(t)};return t.emit(`createDsc`,i),i}function Cl(e,t){let n=t.getPropagationContext();return n.dsc||Sl(n.traceId,e)}function wl(e){let t=H();if(!t)return{};let n=G(e),r=W(n),i=r.data,a=n.spanContext().traceState,o=a?.get(`sentry.sample_rate`)??i[`sentry.sample_rate`]??i[`sentry.previous_trace_sample_rate`];function s(e){return(typeof o==`number`||typeof o==`string`)&&(e.sample_rate=`${o}`),e}let c=n[bl];if(c)return s(c);let l=yl(n),u=l&&n.dropReason===`ignored`;if(l&&(!fl(t.getOptions())||u)){let e=Nc(n).scope;if(e){let n={...Cl(t,e)};return u&&(n.sampled=`false`),s(n)}}let d=a?.get(`sentry.dsc`),f=d&&Lc(d);if(f)return s(f);let p=Sl(e.spanContext().traceId,t),m=i[`sentry.source`]??i[`sentry.segment.name.source`],h=r.description;return m!==`url`&&h&&(p.transaction=h),fl()&&(p.sampled=String(tl(n)),p.sample_rand=a?.get(`sentry.sample_rand`)??Nc(n).scope?.getPropagationContext().sampleRand.toString()),s(p),t.emit(`createDsc`,p,n),p}function Tl(e){return!!e&&typeof e==`function`&&`_streamed`in e&&!!e._streamed}function El(e,t=[]){return[e,t]}function Dl(e){return[{type:`span`},e]}function Ol(e,t){function n(e){return!!e.trace_id&&!!e.public_key}let r=wl(e[0]),i=t?.getDsn(),a=t?.getOptions().tunnel,o={sent_at:new Date(Ms()).toISOString(),...n(r)&&{trace:r},...!!a&&i&&{dsn:Vc(i)}},{beforeSendSpan:s,ignoreSpans:c}=t?.getOptions()||{},l=c?.length?e.filter(e=>{let t=W(e);return!ml({description:t.description,op:t.op,attributes:t.data},c)}):e,u=e.length-l.length;u&&t?.recordDroppedEvent(`before_send`,`span`,u);let d=s?e=>{let t=W(e);return(Tl(s)?t:s(t))||(dl(),t)}:W,f=[];for(let e of l){let t=d(e);t&&f.push(Dl(t))}return El(o,f)}function kl(e){if(!I)return;let{description:t=`< unknown name >`,op:n=`< unknown op >`,parent_span_id:r}=W(e),{spanId:i}=e.spanContext(),a=tl(e),o=G(e),s=o===e,c=`[Tracing] Starting ${a?`sampled`:`unsampled`} ${s?`root `:``}span`,l=[`op: ${n}`,`name: ${t}`,`ID: ${i}`];if(r&&l.push(`parent ID: ${r}`),!s){let{op:e,description:t}=W(o);l.push(`root ID: ${o.spanContext().spanId}`),e&&l.push(`root op: ${e}`),t&&l.push(`root description: ${t}`)}R.log(`${c}
20  ${l.join(`
21  `)}`)}function Al(e){if(!I)return;let{description:t=`< unknown name >`,op:n=`< unknown op >`}=W(e),{spanId:r}=e.spanContext(),i=`[Tracing] Finishing "${n}" ${G(e)===e?`root `:``}span "${t}" with ID ${r}`;R.log(i)}function jl(e,t,n,r=ul()){let i=r&&G(r);i&&(I&&R.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${n}`),i.addEvent(e,{[Cc]:t,[Sc]:n}))}function Ml(e){if(!e||e.length===0)return;let t={};return e.forEach(e=>{let n=e.attributes||{},r=n[Sc],i=n[Cc];typeof r==`string`&&typeof i==`number`&&(t[e.name]={value:i,unit:r})}),t}function Nl(){return $o(Qo()).segmentSpanCaptureStrategy}function Pl(e){return e.getOptions().traceLifecycle===`stream`}var Fl=1e3,Il=class{constructor(e={}){this._traceId=e.traceId||Ys(),this._spanId=e.spanId||Xs(),this._startTime=e.startTimestamp||Ws(),this._links=e.links,this._attributes={},this.setAttributes({[U]:`manual`,[xc]:e.op,...e.attributes}),this._name=e.name,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),`sampled`in e&&(this._sampled=e.sampled),e.endTimestamp&&(this._endTime=e.endTimestamp),this._events=[],this._isStandaloneSpan=e.isStandalone,this._endTime&&this._onSpanEnded()}
21addLink(e){return this._frozen||(this._links?this._links.push(e):this._links=[e]),this}addLinks(e){return this._frozen||(this._links?this._links.push(...e):this._links=e),this}recordException(e,t){}spanContext(){let{_spanId:e,_traceId:t,_sampled:n}=this;return{spanId:e,traceId:t,traceFlags:+!!n}}setAttribute(e,t){return this._frozen?this:(t===void 0?delete this._attributes[e]:this._attributes[e]=t,e===`sentry.source`&&t!==void 0&&Pc(this)&&Fc(this),this)}setAttributes(e){return Object.keys(e).forEach(t=>this.setAttribute(t,e[t])),this}updateStartTime(e){this._frozen||(this._startTime=Yc(e))}setStatus(e){return this._frozen||(this._status=e),this}updateName(e){return this._frozen?this:(this._name=e,Pc(this)||this.setAttribute(yc,`custom`),this)}end(e){if(this._endTime){this._frozen=Ic(this);return}this._endTime=Yc(e),Al(this),this._onSpanEnded(),this._frozen=Ic(this)}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[xc],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:nl(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[U],profile_id:this._attributes[Tc],exclusive_time:this._attributes[Ec],measurements:Ml(this._events),is_segment:this._isStandaloneSpan&&G(this)===this||void 0,segment_id:this._isStandaloneSpan?G(this).spanContext().spanId:void 0,links:qc(this._links)}}getStreamedSpanJSON(){return{name:this._name??``,span_id:this._spanId,trace_id:this._traceId,parent_span_id:this._parentSpanId,start_timestamp:this._startTime,end_timestamp:this._endTime??this._startTime,is_segment:this._isStandaloneSpan||this===G(this),status:rl(this._status),attributes:il(this._attributes,this._status),links:Jc(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,n){if(this._frozen)return this;I&&R.log(`[Tracing] Adding an event to span:`,e);let r=Ll(t)?t:n||Ws(),i=Ll(t)?{}:t||{},a={name:e,time:Yc(r),attributes:i};return this._events.push(a),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){let e=H();e&&(e.emit(`spanEnd`,this),this._isStandaloneSpan||e.emit(`afterSpanEnd`,this));let t=G(this),n=this._isStandaloneSpan||this===t;if(this._isStandaloneSpan){this._sampled?Bl(Ol([this],e)):(I&&R.log(`[Tracing] Discarding standalone span because its trace was not chosen to be sampled.`),e&&e.recordDroppedEvent(`sample_rate`,`span`));return}if(!n){let e=Nl();if(e){let n=Nc(this).scope||V();e.onChildSpanEnded(this,t,e=>this._convertSpanToTransaction(e),n)}return}if(e&&Pl(e)){e.emit(`afterSegmentSpanEnd`,this);return}let r=Nc(this).scope||V(),i=Nl();if(i)i.onSegmentSpanEnded(e=>this._convertSpanToTransaction(e),r);else{let e=this._convertSpanToTransaction();e&&r.captureEvent(e)}}_convertSpanToTransaction(e={}){if(!Rl(W(this)))return;this._name||=(I&&R.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),`<unlabeled transaction>`);let{scope:t,isolationScope:n}=Nc(this),r=t?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(this._sampled!==!0)return;e.onSpanCaptured?.(this);let i=[];for(let t of cl(this)){if(t===this||zl(t)||e.isSpanAlreadyCaptured?.(t))continue;let n=W(t);Rl(n)&&(e.onSpanCaptured?.(t),i.push(n))}let a=this._attributes[yc];delete this._attributes[wc];let o=!1;i.forEach(e=>{delete e.data[wc],e.op?.startsWith(`gen_ai.`)&&(o=!0)});let s={contexts:{trace:Kc(this)},spans:i.length>Fl?i.sort((e,t)=>e.start_timestamp-t.start_timestamp).slice(0,Fl):i,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:`transaction`,sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:n,dynamicSamplingContext:wl(this),hasGenAiSpans:o},request:r,...a&&{transaction_info:{source:a}}},c=Ml(this._events);return c&&Object.keys(c).length&&(I&&R.log(`[Measurements] Adding measurements to transaction event`,JSON.stringify(c,void 0,2)),s.measurements=c),s}};function Ll(e){return e&&typeof e==`number`||e instanceof Date||Array.isArray(e)}function Rl(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}function zl(e){return e instanceof Il&&e.isStandaloneSpan()}function Bl(e){let t=H();if(!t)return;let n=e[1];if(!n||n.length===0){t.recordDroppedEvent(`before_send`,`span`);return}t.sendEnvelope(e)}function Vl(e,t,n){if(!fl(e))return[!1];let r,i;typeof e.tracesSampler==`function`?(i=e.tracesSampler({...t,inheritOrSampleWith:e=>typeof t.parentSampleRate==`number`?t.parentSampleRate:typeof t.parentSampled==`boolean`?Number(t.parentSampled):e}),r=!0):t.parentSampled===void 0?e.tracesSampleRate!==void 0&&(i=e.tracesSampleRate,r=!0):i=t.parentSampled;let a=Wc(i);if(a===void 0)return I&&R.warn(`[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(i)} of type ${JSON.stringify(typeof i)}.`),[!1];if(!a)return I&&R.log(`[Tracing] Discarding transaction because ${typeof e.tracesSampler==`function`?`tracesSampler returned 0 or false`:`a negative sampling decision was inherited or tracesSampleRate is set to 0`}`),[!1,a,r];let o=n<a;return o||I&&R.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(i)})`),[o,a,r]}var Hl=`__SENTRY_SUPPRESS_TRACING__`;function Ul(e){let t=Xl();return t.startInactiveSpan?t.startInactiveSpan(e):Wl(e)}function Wl(e){let t=Yl(e),{forceTransaction:n,parentSpan:r}=e;return(e.scope?t=>vc(e.scope,t):r===void 0?e=>e():e=>Gl(r,e))(()=>{let i=V(),a=$l(i,r),o=H();return e.onlyIfParent&&!a?ql(i,o):Jl({parentSpan:a,spanArguments:t,forceTransaction:n,scope:i})})}function Gl(e,t){let n=Xl();return n.withActiveSpan?n.withActiveSpan(e,t):vc(n=>(ec(n,e||void 0),t(n)))}function Kl(e=V()){let t=Xl();return t.isTracingSuppressed?t.isTracingSuppressed(e):e.getScopeData().sdkProcessingMetadata[Hl]===!0}function ql(e,t){t?.recordDroppedEvent(`no_parent_span`,`span`);let n=new vl({traceId:e.getPropagationContext().traceId});return Mc(n,e,_c()),n}function Jl({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){let i=_c();if(!fl()){let t=r.getPropagationContext(),a=new vl({traceId:e?e.spanContext().traceId:t.traceId});return e&&!n&&sl(e,a),Mc(a,r,i),a}let a=H();if(eu(a,t)){Kl(r)||a?.recordDroppedEvent(`ignored`,`span`);
21let t=new vl({dropReason:`ignored`,traceId:e?.spanContext().traceId??r.getPropagationContext().traceId});return e&&!n&&sl(e,t),Mc(t,r,i),t}let o;if(e&&!n)o=Ql(e,r,t,i),sl(e,o);else if(e){let n=wl(e),{traceId:a,spanId:s}=e.spanContext(),c=tl(e);o=Zl({traceId:a,parentSpanId:s,...t},r,i,c),xl(o,n)}else{let{traceId:e,dsc:n,parentSpanId:a,sampled:s}=r.getPropagationContext();o=Zl({traceId:e,parentSpanId:a,...t},r,i,s),n&&xl(o,n)}return kl(o),o}function Yl(e){let t={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){let n={...t};return n.startTimestamp=Yc(e.startTime),delete n.startTime,n}return t}function Xl(){return gc(Qo())}function Zl(e,t,n,r){let i=H(),a=i?.getOptions()||{},{name:o=``}=e,s={spanAttributes:{...e.attributes},spanName:o,parentSampled:r};i?.emit(`beforeSampling`,s,{decision:!1});let c=s.parentSampled??r,l=s.spanAttributes,u=t.getPropagationContext(),d=Kl(t),[f,p,m]=d?[!1]:Vl(a,{name:o,parentSampled:c,attributes:l,normalizedRequest:n.getScopeData().sdkProcessingMetadata.normalizedRequest,parentSampleRate:Wc(u.dsc?.sample_rate)},u.sampleRand),h=new Il({...e,attributes:{[yc]:`custom`,[bc]:p!==void 0&&m?p:void 0,...l},sampled:f});return!f&&i&&!d&&(I&&R.log(`[Tracing] Discarding root span because its trace was not chosen to be sampled.`),i.recordDroppedEvent(`sample_rate`,Pl(i)?`span`:`transaction`)),Mc(h,t,n),i&&i.emit(`spanStart`,h),h}function Ql(e,t,n,r){let{spanId:i,traceId:a}=e.spanContext(),o=Kl(t),s=!o&&tl(e),c=s?new Il({...n,parentSpanId:i,traceId:a,sampled:s}):new vl({traceId:a});sl(e,c),Mc(c,t,r);let l=H();return l?(Pl(l)&&yl(c)&&(yl(e)&&e.dropReason?(c.dropReason=e.dropReason,l.recordDroppedEvent(e.dropReason,`span`)):o||(c.dropReason=`sample_rate`,l.recordDroppedEvent(`sample_rate`,`span`))),l.emit(`spanStart`,c),n.endTimestamp&&(l.emit(`spanEnd`,c),l.emit(`afterSpanEnd`,c)),c):c}function $l(e,t){if(t)return t;if(t===null)return;let n=tc(e);if(!n)return;let r=H();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?G(n):n}function eu(e,t){let n=e?.getOptions().ignoreSpans;return!e||!Pl(e)||!n?.length?!1:ml({description:t.name||``,op:t.attributes?.[`sentry.op`]||t.op,attributes:t.attributes},n)}function tu(){return typeof __SENTRY_BROWSER_BUNDLE__<`u`&&!!__SENTRY_BROWSER_BUNDLE__}function nu(){return!tu()&&Object.prototype.toString.call(typeof process<`u`?process:0)===`[object process]`}function ru(){return typeof window<`u`&&(!nu()||iu())}function iu(){return L.process?.type===`renderer`}function au(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let n=t[6]||``,r=t[8]||``;return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}var ou=L;function su(){return`history`in ou&&!!ou.history}function cu(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}var lu=L;function uu(e,t=5){if(!lu.HTMLElement)return null;let n=e;for(let e=0;e<t;e++){if(!n)return null;if(n instanceof HTMLElement){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}n=n.parentNode}return null}var K=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,q=L,du=(e,t)=>e>t[1]?`poor`:e>t[0]?`needs-improvement`:`good`,fu=(e,t,n,r)=>{let i,a;return o=>{t.value>=0&&(o||r)&&(a=t.value-(i??0),(a||i===void 0)&&(i=t.value,t.delta=a,t.rating=du(t.value,n),e(t)))}},pu=(e=!0)=>{let t=q.performance?.getEntriesByType?.(`navigation`)[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t},mu=()=>pu()?.activationStart??0;function hu(e,t,n){q.document&&q.addEventListener(e,t,n)}function gu(e,t,n){q.document&&q.removeEventListener(e,t,n)}var _u=-1,vu=new Set,yu=()=>q.document?.visibilityState===`hidden`&&!q.document?.prerendering?0:1/0,bu=e=>{if(Su(e)&&_u>-1){if(e.type===`visibilitychange`||e.type===`pagehide`)for(let e of vu)e();isFinite(_u)||(_u=e.type===`visibilitychange`?e.timeStamp:0,gu(`prerenderingchange`,bu,!0))}},xu=()=>{if(q.document&&_u<0){let e=mu();_u=(q.document.prerendering?void 0:globalThis.performance.getEntriesByType(`visibility-state`).filter(t=>t.name===`hidden`&&t.startTime>e)[0]?.startTime)??yu(),hu(`visibilitychange`,bu,!0),hu(`pagehide`,bu,!0),hu(`prerenderingchange`,bu,!0)}return{get firstHiddenTime(){return _u},onHidden(e){vu.add(e)}}};function Su(e){return e.type===`pagehide`||q.document?.visibilityState===`hidden`}var Cu=()=>`v5-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+0xe8d4a51000}`,wu=(e,t=-1)=>
21{let n=pu(),r=`navigate`;return n&&(q.document?.prerendering||mu()>0?r=`prerender`:q.document?.wasDiscarded?r=`restore`:n.type&&(r=n.type.replace(/_/g,`-`))),{name:e,value:t,rating:`good`,delta:0,entries:[],id:Cu(),navigationType:r}},Tu=new WeakMap;function Eu(e,t){try{return Tu.get(e)||Tu.set(e,new t),Tu.get(e)}catch{return new t}}var Du=class{constructor(){this._sessionValue=0,this._sessionEntries=[]}_processEntry(e){if(e.hadRecentInput)return;let t=this._sessionEntries[0],n=this._sessionEntries[this._sessionEntries.length-1];this._sessionValue&&t&&n&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(this._sessionValue+=e.value,this._sessionEntries.push(e)):(this._sessionValue=e.value,this._sessionEntries=[e]),this._onAfterProcessingUnexpectedShift?.(e)}},Ou=(e,t,n={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){let r=new PerformanceObserver(e=>{Promise.resolve().then(()=>{t(e.getEntries())})});return r.observe({type:e,buffered:!0,...n}),r}}catch{}},ku=e=>{let t=!1;return()=>{t||=(e(),!0)}},Au=e=>{q.document?.prerendering?addEventListener(`prerenderingchange`,()=>e(),!0):e()},ju=[1800,3e3],Mu=(e,t={})=>{Au(()=>{let n=xu(),r=wu(`FCP`),i,a=Ou(`paint`,e=>{for(let t of e)t.name===`first-contentful-paint`&&(a.disconnect(),t.startTime<n.firstHiddenTime&&(r.value=Math.max(t.startTime-mu(),0),r.entries.push(t),i(!0)))});a&&(i=fu(e,r,ju,t.reportAllChanges))})},Nu=[.1,.25],Pu=(e,t={})=>{Mu(ku(()=>{let n=wu(`CLS`,0),r,i=xu(),a=Eu(t,Du),o=e=>{for(let t of e)a._processEntry(t);a._sessionValue>n.value&&(n.value=a._sessionValue,n.entries=a._sessionEntries,r())},s=Ou(`layout-shift`,o);s&&(r=fu(e,n,Nu,t.reportAllChanges),i.onHidden(()=>{o(s.takeRecords()),r(!0)}),q?.setTimeout?.(r))}))},Fu=0,Iu=1/0,Lu=0,Ru=e=>{e.forEach(e=>{e.interactionId&&(Iu=Math.min(Iu,e.interactionId),Lu=Math.max(Lu,e.interactionId),Fu=Lu?(Lu-Iu)/7+1:0)})},zu,Bu=()=>zu?Fu:performance.interactionCount||0,Vu=()=>{`interactionCount`in performance||zu||(zu=Ou(`event`,Ru,{type:`event`,buffered:!0,durationThreshold:0}))},Hu=10,Uu=0,Wu=()=>Bu()-Uu,Gu=class{constructor(){this._longestInteractionList=[],this._longestInteractionMap=new Map}_resetInteractions(){Uu=Bu(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){let e=Math.min(this._longestInteractionList.length-1,Math.floor(Wu()/50));return this._longestInteractionList[e]}_processEntry(e){if(this._onBeforeProcessingEntry?.(e),!(e.interactionId||e.entryType===`first-input`))return;let t=this._longestInteractionList.at(-1),n=this._longestInteractionMap.get(e.interactionId);if(n||this._longestInteractionList.length<Hu||e.duration>t._latency){if(n?e.duration>n._latency?(n.entries=[e],n._latency=e.duration):e.duration===n._latency&&e.startTime===n.entries[0].startTime&&n.entries.push(e):(n={id:e.interactionId,entries:[e],_latency:e.duration},this._longestInteractionMap.set(n.id,n),this._longestInteractionList.push(n)),this._longestInteractionList.sort((e,t)=>t._latency-e._latency),this._longestInteractionList.length>Hu){let e=this._longestInteractionList.splice(Hu);for(let t of e)this._longestInteractionMap.delete(t.id)}this._onAfterProcessingINPCandidate?.(n)}}},Ku=e=>{let t=q.requestIdleCallback||q.setTimeout;q.document?.visibilityState===`hidden`?e():(e=ku(e),hu(`visibilitychange`,e,{once:!0,capture:!0}),hu(`pagehide`,e,{once:!0,capture:!0}),t(()=>{e(),gu(`visibilitychange`,e,{capture:!0}),gu(`pagehide`,e,{capture:!0})}))},qu=[200,500],Ju=40,Yu=(e,t={})=>{if(!(globalThis.PerformanceEventTiming&&`interactionId`in PerformanceEventTiming.prototype))return;let n=xu();Au(()=>{Vu();let r=wu(`INP`),i,a=Eu(t,Gu),o=e=>{Ku(()=>{for(let t of e)a._processEntry(t);let t=a._estimateP98LongestInteraction();t&&t._latency!==r.value&&(r.value=t._latency,r.entries=t.entries,i())})},s=Ou(`event`,o,{durationThreshold:t.durationThreshold??Ju});i=fu(e,r,qu,t.reportAllChanges),s&&(s.observe({type:`first-input`,buffered:!0}),n.onHidden(()=>{o(s.takeRecords()),i(!0)}))})},Xu=class{_processEntry(e){this._onBeforeProcessingEntry?.(e)}},Zu=[2500,4e3],Qu=(e,t={})=>{Au(()=>{let n=xu(),r=wu(`LCP`),i,a=Eu(t,Xu),o=e=>{t.reportAllChanges||(e=e.slice(-1));for(let t of e)t&&(a._processEntry(t),t.startTime<n.firstHiddenTime&&(r.value=Math.max(t.startTime-mu(),0),r.entries=[t],i()))},s=Ou(`largest-contentful-paint`,o);if(s){i=fu(e,r,Zu,t.reportAllChanges);let n=ku(()=>{o(s.takeRecords()),s.disconnect(),i(!0)}),a=e=>{e.isTrusted&&(Ku(n),gu(e.type,a,{capture:!0}))};for(let e of[`keydown`,`click`,`visibilitychange`])hu(e,a,{capture:!0})}})},$u=[800,1800],ed=e=>{q.document?.prerendering?Au(()=>ed(e)):q.document?.readyState===`complete`?setTimeout(e):addEventListener(`load`,()=>ed(e),!0)},td=(e,t={})=>{let n=wu(`TTFB`),r=fu(e,n,$u,t.reportAllChanges);ed(()=>{let e=pu();e&&(n.value=Math.max(e.responseStart-mu(),0),n.entries=[e],r(!0))})},nd={},rd={},id,ad,od,sd;function cd(e,t=!1){return vd(`cls`,e,md,id,t)}function ld(e,t=!1){return vd(`lcp`,e,hd,ad,t)}function ud(e){return vd(`ttfb`,e,gd,od)}function dd(e){return vd(`inp`,e,_d,sd)}function fd(e,t){return bd(e,t),rd[e]||(yd(e),rd[e]=!0),xd(e,t)}function pd(e,t){let n=nd[e];if(n?.length)for(let r of n)try{r(t)}catch(t){K&&R.error(`Error while triggering instrumentation handler.
22Type: ${e}
23Name: ${ps(r)}
24Error:`,t)}}function md(){return Pu(e=>{pd(`cls`,{metric:e}),id=e},{reportAllChanges:!0})}function hd(){return Qu(e=>{pd(`lcp`,{metric:e}),ad=e},{reportAllChanges:!0})}function gd(){return td(e=>{pd(`ttfb`,{metric:e}),od=e})}function _d(){return Yu(e=>{pd(`inp`,{metric:e}),sd=e})}function vd(e,t,n,r,i=!1){bd(e,t);let a;return rd[e]||(a=n(),rd[e]=!0),r&&t({metric:r}),xd(e,t,i?a:void 0)}function yd(e){let t={};e===`event`&&(t.durationThreshold=0),Ou(e,t=>{pd(e,{entries:t})},t)}function bd(e,t){nd[e]=nd[e]||[],nd[e].push(t)}
24function xd(e,t,n){return()=>{n&&n();let r=nd[e];if(!r)return;let i=r.indexOf(t);i!==-1&&r.splice(i,1)}}function Sd(e){return`duration`in e}var Cd=80,wd={};try{typeof Node<`u`&&(wd.parentNode=Object.getOwnPropertyDescriptor(Node.prototype,`parentNode`).get),typeof Element<`u`&&(wd.tagName=Object.getOwnPropertyDescriptor(Element.prototype,`tagName`).get,wd.id=Object.getOwnPropertyDescriptor(Element.prototype,`id`).get,wd.className=Object.getOwnPropertyDescriptor(Element.prototype,`className`).get,wd.getAttribute=Element.prototype.getAttribute),typeof HTMLElement<`u`&&(wd.dataset=Object.getOwnPropertyDescriptor(HTMLElement.prototype,`dataset`).get)}catch{}function Td(e,t,n){let r=wd[t];if(r)try{return r.call(e,n)}catch{}let i=e[t];return typeof i==`function`?i.call(e,n):i}function J(e,t={}){if(!e)return`<unknown>`;try{let n=e,r=[],i=0,a=0,o,s=Array.isArray(t)?t:t.keyAttrs,c=!Array.isArray(t)&&t.maxStringLength||Cd;for(;n&&i++<5&&(o=Ed(n,s),!(o===`html`||i>1&&a+r.length*3+o.length>=c));)r.push(o),a+=o.length,n=Td(n,`parentNode`);return r.reverse().join(` > `)}catch{return`<unknown>`}}function Ed(e,t){let n=[],r=Td(e,`tagName`);if(!r)return``;if(typeof HTMLElement<`u`&&e instanceof HTMLElement){let t=Td(e,`dataset`);if(t){if(t.sentryComponent)return t.sentryComponent;if(t.sentryElement)return t.sentryElement}}n.push(r.toLowerCase());let i=t?.length?t.filter(t=>Td(e,`getAttribute`,t)).map(t=>[t,Td(e,`getAttribute`,t)]):null;if(i?.length)i.forEach(e=>{n.push(`[${e[0]}="${e[1]}"]`)});else{let t=Td(e,`id`);t&&n.push(`#${t}`);let r=Td(e,`className`);if(r&&xs(r)){let e=r.split(/\s+/);for(let t of e)n.push(`.${t}`)}}for(let t of[`aria-label`,`type`,`name`,`title`,`alt`]){let r=Td(e,`getAttribute`,t);r&&n.push(`[${t}="${r}"]`)}return n.join(``)}var Dd=e=>{let t=t=>{(t.type===`pagehide`||q.document?.visibilityState===`hidden`)&&e(t)};hu(`visibilitychange`,t,{capture:!0,once:!0}),hu(`pagehide`,t,{capture:!0,once:!0})};function Od(e){return typeof e==`number`&&isFinite(e)}function kd(e,t,n,{...r}){let i=W(e).start_timestamp;return i&&i>t&&typeof e.updateStartTime==`function`&&e.updateStartTime(t),Gl(e,()=>{let e=Ul({startTime:t,...r});return e&&e.end(n),e})}function Ad(e){let t=H();if(!t)return;let{name:n,transaction:r,attributes:i,startTime:a}=e,{release:o,environment:s}=t.getOptions(),{userInfo:c}=t.getDataCollectionOptions(),l=t.getIntegrationByName(`Replay`)?.getReplayId(),u=V(),d=u.getUser(),f=d===void 0?void 0:d.email||d.id||d.ip_address,p;try{p=u.getScopeData().contexts.profile.profile_id}catch{}return Ul({name:n,attributes:{release:o,environment:s,user:f||void 0,profile_id:p||void 0,replay_id:l||void 0,transaction:r,"user_agent.original":q.navigator?.userAgent,"client.address":c?`{{auto}}`:void 0,...i},startTime:a,experimental:{standalone:!0}})}function jd(){return q.addEventListener&&q.performance}function Y(e){return e/1e3}function Md(e){let t=`unknown`,n=`unknown`,r=``;for(let i of e){if(i===`/`){[t,n]=e.split(`/`);break}if(!isNaN(Number(i))){t=r===`h`?`http`:r,n=e.split(r)[1];break}r+=i}return r===e&&(t=r),{name:t,version:n}}function Nd(e){try{return PerformanceObserver.supportedEntryTypes.includes(e)}catch{return!1}}function Pd(e,t){let n,r=!1;function i(e){!r&&n&&t(e,n.spanContext().spanId,n),r=!0}Dd(()=>{i(`pagehide`)});let a=e.on(`beforeStartNavigationSpan`,(e,t)=>{t?.isRedirect||(i(`navigation`),a(),o())}),o=e.on(`afterStartPageLoadSpan`,e=>{n=e,o()})}function Fd(e){let t=0,n;if(!Nd(`layout-shift`))return;let r=cd(({metric:e})=>{let r=e.entries[e.entries.length-1];r&&(t=e.value,n=r)},!0);Pd(e,(e,i)=>{Id(t,n,i,e),r()})}function Id(e,t,n,r){K&&R.log(`Sending CLS span (${e})`);let i=t?Y((B()||0)+t.startTime):Ws(),a=V().getScopeData().transactionName,o=t?J(t.sources[0]?.node):`Layout shift`,s={[U]:`auto.http.browser.cls`,[xc]:`ui.webvital.cls`,[Ec]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};t?.sources&&t.sources.forEach((e,t)=>{s[`cls.source.${t+1}`]=J(e.node)});let c=Ad({name:o,transaction:a,attributes:s,startTime:i});c&&(c.addEvent(`cls`,{[Sc]:``,[Cc]:e}),c.end(i))}function Ld(e){return e!=null&&e>0&&e<=6e4}function Rd(e){let t=0,n;if(!Nd(`largest-contentful-paint`))return;let r=ld(({metric:e})=>{let r=e.entries[e.entries.length-1];r&&Ld(e.value)&&(t=e.value,n=r)},!0);Pd(e,(e,i)=>{zd(t,n,i,e),r()})}function zd(e,t,n,r){if(!Ld(e))return;K&&R.log(`Sending LCP span (${e})`);let i=Y((B()||0)+(t?.startTime||0)),a=V().getScopeData().transactionName,o=t?J(t.element):`Largest contentful paint`,s={[U]:`auto.http.browser.lcp`,[xc]:`ui.webvital.lcp`,[Ec]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};t&&(t.element&&(s[`lcp.element`]=J(t.element)),t.id&&(s[`lcp.id`]=t.id),t.url&&(s[`lcp.url`]=t.url),t.loadTime!=null&&(s[`lcp.loadTime`]=t.loadTime),t.renderTime!=null&&(s[`lcp.renderTime`]=t.renderTime),t.size!=null&&(s[`lcp.size`]=t.size));let c=Ad({name:o,transaction:a,attributes:s,startTime:i});c&&(c.addEvent(`lcp`,{[Sc]:`millisecond`,[Cc]:e}),c.end(i))}function X(e){return e&&((B()||performance.timeOrigin)+e)/1e3}function Bd(e){let t={};if(e.nextHopProtocol!=null){let{name:n,version:r}=Md(e.nextHopProtocol);t[`network.protocol.version`]=r,t[`network.protocol.name`]=n}return B()||jd()?.timeOrigin?Vd({...t,"http.request.redirect_start":X(e.redirectStart),"http.request.redirect_end":X(e.redirectEnd),"http.request.worker_start":X(e.workerStart),"http.request.fetch_start":X(e.fetchStart),"http.request.domain_lookup_start":X(e.domainLookupStart),"http.request.domain_lookup_end":X(e.domainLookupEnd),"http.request.connect_start":X(e.connectStart),"http.request.secure_connection_start":X(e.secureConnectionStart),"http.request.connection_end":X(e.connectEnd),"http.request.request_start":X(e.requestStart),"http.request.response_start":X(e.responseStart),"http.request.response_end":X(e.responseEnd),"http.request.time_to_first_byte":e.responseStart==null?void 0:e.responseStart/1e3}):t}function Vd(e){return Object.fromEntries(Object.entries(e).filter(([,e])=>e!=null))}var Hd=2147483647,Ud=0,Z={},Q,Wd;function Gd({recordClsStandaloneSpans:e,recordLcpStandaloneSpans:t,client:n}){let r=jd();if(r&&B()){r.mark&&q.performance.mark(`sentry-tracing-init`);let i=t?Rd(n):t===!1?Xd():void 0,a=e?Fd(n):e===!1?Yd():void 0,o=Zd(),s=Qd();return()=>{o(),s(),i?.(),a?.()}}return()=>void 0}function Kd(){fd(`longtask`,({entries:e})=>{let t=ul();if(!t)return;let{op:n,start_timestamp:r}=W(t);for(let i of e){let e=Y(B()+i.startTime),a=Y(i.duration);
24n===`navigation`&&r&&e<r||kd(t,e,e+a,{name:`Main UI thread blocked`,op:`ui.long-task`,attributes:{[U]:`auto.ui.browser.metrics`}})}})}function qd(){new PerformanceObserver(e=>{let t=ul();if(t)for(let n of e.getEntries()){if(!n.scripts[0])continue;let e=Y(B()+n.startTime),{start_timestamp:r,op:i}=W(t);if(i===`navigation`&&r&&e<r)continue;let a=Y(n.duration),o={[U]:`auto.ui.browser.metrics`},{invoker:s,invokerType:c,sourceURL:l,sourceFunctionName:u,sourceCharPosition:d}=n.scripts[0];o[`browser.script.invoker`]=s,o[`browser.script.invoker_type`]=c,l&&(o[`code.filepath`]=l),u&&(o[`code.function`]=u),d!==-1&&(o[`browser.script.source_char_position`]=d),kd(t,e,e+a,{name:`Main UI thread blocked`,op:`ui.long-animation-frame`,attributes:o})}}).observe({type:`long-animation-frame`,buffered:!0})}function Jd(){fd(`event`,({entries:e})=>{let t=ul();if(t){for(let n of e)if(n.name===`click`){let e=Y(B()+n.startTime),r=Y(n.duration),i={name:J(n.target),op:`ui.interaction.${n.name}`,startTime:e,attributes:{[U]:`auto.ui.browser.metrics`}},a=uu(n.target);a&&(i.attributes[`ui.component_name`]=a),kd(t,e,e+r,i)}}})}function Yd(){return cd(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(Z.cls={value:e.value,unit:``},Wd=t)},!0)}function Xd(){return ld(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&Ld(e.value)&&(Z.lcp={value:e.value,unit:`millisecond`},Q=t)},!0)}function Zd(){return ud(({metric:e})=>{e.entries[e.entries.length-1]&&(Z.ttfb={value:e.value,unit:`millisecond`})})}function Qd(){return fd(`paint`,({entries:e})=>{let t=xu();for(let n of e){let e=n.startTime<t.firstHiddenTime;n.name===`first-paint`&&e&&(Z.fp={value:n.startTime,unit:`millisecond`}),n.name===`first-contentful-paint`&&e&&(Z.fcp={value:n.startTime,unit:`millisecond`})}})}function $d(e,t){let n=jd(),r=B();if(!n?.getEntries||!r)return;let{spanStreamingEnabled:i,ignorePerformanceApiSpans:a,ignoreResourceSpans:o}=t,s=Y(r),c=n.getEntries(),{op:l,start_timestamp:u}=W(e);c.slice(Ud).forEach(t=>{let n=Y(t.startTime),r=Y(Math.max(0,t.duration));if(!(l===`navigation`&&u&&s+n<u))switch(t.entryType){case`navigation`:of(e,t,s);break;case`mark`:case`paint`:case`measure`:rf(e,t,n,r,s,a);break;case`resource`:uf(e,t,t.name,n,r,s,o)}}),Ud=Math.max(c.length-1,0),df(e,i)}function ef(e,t){let n=B();if(!jd()?.getEntries||!n){tf();return}let{spanStreamingEnabled:r,recordClsOnPageloadSpan:i,recordLcpOnPageloadSpan:a}=t,o=Y(n);if(W(e).op===`pageload`){if(mf(Z),r){let t=(t,n,r)=>{let i=r??`browser.web_vital.${t}.value`;e.setAttribute(i,n),K&&R.log(`Setting web vital attribute`,{[i]:n},`on pageload span`)};[`ttfb`,`fp`,`fcp`].forEach(e=>{Z[e]&&t(e,Z[e].value)}),Z[`ttfb.requestTime`]&&t(`ttfb.requestTime`,Z[`ttfb.requestTime`].value,`browser.web_vital.ttfb.request_time`)}else i||delete Z.cls,a||delete Z.lcp,Object.entries(Z).forEach(([t,n])=>{jl(t,n.value,n.unit,e)}),ff(e,t);e.setAttribute(r?`browser.performance.time_origin`:`performance.timeOrigin`,o),e.setAttribute(r?`browser.performance.navigation.activation_start`:`performance.activationStart`,mu())}tf()}function tf(){Q=void 0,Wd=void 0,Z={}}function nf(e){if(e?.entryType===`measure`)try{return e.detail.devtools.track===`Components ⚛`}catch{return}}function rf(e,t,n,r,i,a){if(nf(t)||[`mark`,`measure`].includes(t.entryType)&&Fs(t.name,a))return;let o=pu(!1),s=Y(o?o.requestStart:0),c=i+Math.max(n,s),l=i+n,u=l+r,d={[U]:`auto.resource.browser.metrics`};c!==l&&(d[`sentry.browser.measure_happened_before_request`]=!0,d[`sentry.browser.measure_start_time`]=c),af(d,t),c<=u&&kd(e,c,u,{name:t.name,op:t.entryType,attributes:d})}function af(e,t){try{let n=t.detail;if(!n)return;if(typeof n==`object`){for(let[t,r]of Object.entries(n))if(r&&Cs(r))e[`sentry.browser.measure.detail.${t}`]=r;else if(r!==void 0)try{e[`sentry.browser.measure.detail.${t}`]=JSON.stringify(r)}catch{}return}if(Cs(n)){e[`sentry.browser.measure.detail`]=n;return}try{e[`sentry.browser.measure.detail`]=JSON.stringify(n)}catch{}}catch{}}function of(e,t,n){[`unloadEvent`,`redirect`,`domContentLoadedEvent`,`loadEvent`,`connect`].forEach(r=>{sf(e,t,r,n)}),sf(e,t,`secureConnection`,n,`TLS/SSL`),sf(e,t,`fetch`,n,`cache`),sf(e,t,`domainLookup`,n,`DNS`),lf(e,t,n)}function sf(e,t,n,r,i=n){let a=t[cf(n)],o=t[`${n}Start`];o&&a&&kd(e,r+Y(o),r+Y(a),{op:`browser.${i}`,name:t.name,attributes:{[U]:`auto.ui.browser.metrics`,...n===`redirect`&&t.redirectCount!=null?{"http.redirect_count":t.redirectCount}:{}}})}function cf(e){return e===`secureConnection`?`connectEnd`:e===`fetch`?`domainLookupStart`:`${e}End`}function lf(e,t,n){let r=n+Y(t.requestStart),i=n+Y(t.responseEnd),a=n+Y(t.responseStart);t.responseEnd&&(kd(e,r,i,{op:`browser.request`,name:t.name,attributes:{[U]:`auto.ui.browser.metrics`}}),kd(e,a,i,{op:`browser.response`,name:t.name,attributes:{[U]:`auto.ui.browser.metrics`}}))}function uf(e,t,n,r,i,a,o){if(t.initiatorType===`xmlhttprequest`||t.initiatorType===`fetch`)return;let s=t.initiatorType?`resource.${t.initiatorType}`:`resource.other`;if(o?.includes(s))return;let c={[U]:`auto.resource.browser.metrics`},l=au(n);l.protocol&&(c[`url.scheme`]=l.protocol.split(`:`).pop()),l.host&&(c[`server.address`]=l.host),c[`url.same_origin`]=n.includes(q.location.origin),c[Gt]=n,pf(t,c,[[`responseStatus`,`http.response.status_code`],[`transferSize`,`http.response_transfer_size`],[`encodedBodySize`,`http.response_content_length`],[`decodedBodySize`,`http.decoded_response_content_length`],[`renderBlockingStatus`,`resource.render_blocking_status`],[`deliveryType`,`http.response_delivery_type`]]);let u={...c,...Bd(t)},d=a+r;kd(e,d,d+i,{name:n.replace(q.location.origin,``),op:s,attributes:u})}function df(e,t){let n=q.navigator;if(!n)return;let r=n.connection;r&&(r.effectiveType&&e.setAttribute(t?`network.connection.effective_type`:`effectiveConnectionType`,r.effectiveType),r.type&&e.setAttribute(t?`network.connection.type`:`connectionType`,r.type),Od(r.rtt)&&(t?e.setAttribute(`network.connection.rtt`,r.rtt):W(e).op===`pageload`&&jl(`connection.rtt`,r.rtt,`millisecond`))),Od(n.deviceMemory)&&(t?e.setAttribute(`device.memory.estimated_capacity`,n.deviceMemory):e.setAttribute(`deviceMemory`,`${n.deviceMemory} GB`)),Od(n.hardwareConcurrency)&&(t?e.setAttribute(`device.processor_count`,n.hardwareConcurrency):e.setAttribute(`hardwareConcurrency`,String(n.hardwareConcurrency)))}function ff(e,t){Q&&t.recordLcpOnPageloadSpan&&(Q.element&&e.setAttribute(`lcp.element`,J(Q.element)),Q.id&&e.setAttribute(`lcp.id`,Q.id),Q.url&&e.setAttribute(`lcp.url`,Q.url.trim().slice(0,200)),Q.loadTime!=null&&e.setAttribute(`lcp.loadTime`,Q.loadTime),Q.renderTime!=null&&e.setAttribute(`lcp.renderTime`,Q.renderTime),e.setAttribute(`lcp.size`,Q.size)),Wd?.sources&&t.recordClsOnPageloadSpan&&Wd.sources.forEac
24h((t,n)=>e.setAttribute(`cls.source.${n+1}`,J(t.node)))}function pf(e,t,n){n.forEach(([n,r])=>{let i=e[n];i!=null&&(typeof i==`number`&&i<Hd||typeof i==`string`)&&(t[r]=i)})}function mf(e){let t=pu(!1);if(!t)return;let{responseStart:n,requestStart:r}=t;r<=n&&(e[`ttfb.requestTime`]={value:n-r,unit:`millisecond`})}var hf=[],gf=new Map,_f=new Map;function vf(){if(jd()&&B()){let e=bf();return()=>{e()}}return()=>void 0}var yf={click:`click`,pointerdown:`click`,pointerup:`click`,mousedown:`click`,mouseup:`click`,touchstart:`click`,touchend:`click`,mouseover:`hover`,mouseout:`hover`,mouseenter:`hover`,mouseleave:`hover`,pointerover:`hover`,pointerout:`hover`,pointerenter:`hover`,pointerleave:`hover`,dragstart:`drag`,dragend:`drag`,drag:`drag`,dragenter:`drag`,dragleave:`drag`,dragover:`drag`,drop:`drag`,keydown:`press`,keyup:`press`,keypress:`press`,input:`press`};function bf(){return dd(xf)}var xf=({metric:e})=>{if(e.value==null)return;let t=Y(e.value);if(t>60)return;let n=e.entries.find(t=>t.duration===e.value&&yf[t.name]);if(!n)return;let{interactionId:r}=n,i=yf[n.name],a=Y(B()+n.startTime),o=ul(),s=o?G(o):void 0,c=r==null?void 0:gf.get(r),l=c?.span||s,u=l?W(l).description:V().getScopeData().transactionName,d=Ad({name:c?.elementName||J(n.target),transaction:u,attributes:{[U]:`auto.http.browser.inp`,[xc]:`ui.interaction.${i}`,[Ec]:n.duration},startTime:a});d&&(d.addEvent(`inp`,{[Sc]:`millisecond`,[Cc]:e.value}),d.end(a+t))};function Sf(e){return e==null?void 0:gf.get(e)}function Cf(){let e=Object.keys(yf);ru()&&e.forEach(e=>{q.addEventListener(e,t,{capture:!0,passive:!0})});function t(e){let t=e.target;if(!t)return;let n=J(t),r=Math.round(e.timeStamp);if(_f.set(r,n),_f.size>50){let e=_f.keys().next().value;e!==void 0&&_f.delete(e)}}function n(e){let t=Math.round(e.startTime),n=_f.get(t);if(!n)for(let e=-5;e<=5;e++){let r=_f.get(t+e);if(r){n=r;break}}return n||`<unknown>`}let r=({entries:e})=>{let t=ul(),r=t&&G(t);e.forEach(e=>{if(!Sd(e))return;let t=e.interactionId;if(t==null||gf.has(t))return;let i=e.target?J(e.target):n(e);if(hf.length>10){let e=hf.shift();gf.delete(e)}hf.push(t),gf.set(t,{span:r,elementName:i})})};fd(`event`,r),fd(`first-input`,r)}function wf(e){let{name:t,op:n,origin:r,metricName:i,value:a,attributes:o,parentSpan:s,reportEvent:c,startTime:l,endTime:u}=e,d=V().getScopeData().transactionName,f={[U]:r,[xc]:n,[Ec]:0,[`browser.web_vital.${i}.value`]:a,[Wt]:d,[Ut]:d,"user_agent.original":q.navigator?.userAgent,...o};s&&Zc(s).attributes?.[`sentry.op`]===`pageload`&&(f[`sentry.pageload.span_id`]=s.spanContext().spanId),c&&(f[`browser.web_vital.${i}.report_event`]=c);let p=Ul({name:t,attributes:f,startTime:l,parentSpan:s});p&&p.end(u??l)}function Tf(e){let t=0,n;if(!Nd(`largest-contentful-paint`))return;let r=ld(({metric:e})=>{let r=e.entries[e.entries.length-1];r&&Ld(e.value)&&(t=e.value,n=r)},!0);Pd(e,(e,i,a)=>{Ef(t,n,a,e),r()})}function Ef(e,t,n,r){if(!Ld(e))return;K&&R.log(`Sending LCP span (${e})`);let i=B()||0,a=Y(i),o=Y(i+(t?.startTime||0)),s=t?J(t.element):`Largest contentful paint`,c={};t?.element&&(c[`browser.web_vital.lcp.element`]=J(t.element)),t?.id&&(c[`browser.web_vital.lcp.id`]=t.id),t?.url&&(c[`browser.web_vital.lcp.url`]=t.url),t?.loadTime!=null&&(c[`browser.web_vital.lcp.load_time`]=t.loadTime),t?.renderTime!=null&&(c[`browser.web_vital.lcp.render_time`]=t.renderTime),t?.size!=null&&(c[`browser.web_vital.lcp.size`]=t.size),wf({name:s,op:`ui.webvital.lcp`,origin:`auto.http.browser.lcp`,metricName:`lcp`,value:e,attributes:c,parentSpan:n,reportEvent:r,startTime:a,endTime:o})}function Df(e){let t=0,n;if(!Nd(`layout-shift`))return;let r=cd(({metric:e})=>{let r=e.entries[e.entries.length-1];r&&(t=e.value,n=r)},!0);Pd(e,(e,i,a)=>{Of(t,n,a,e),r()})}function Of(e,t,n,r){K&&R.log(`Sending CLS span (${e})`);let i=t?Y((B()||0)+t.startTime):Ws(),a=t?J(t.sources[0]?.node):`Layout shift`,o={};t?.sources&&t.sources.forEach((e,t)=>{o[`browser.web_vital.cls.source.${t+1}`]=J(e.node)}),wf({name:a,op:`ui.webvital.cls`,origin:`auto.http.browser.cls`,metricName:`cls`,value:e,attributes:o,parentSpan:n,reportEvent:r,startTime:i})}function kf(){jd()&&B()&&dd(({metric:e})=>
24{if(e.value==null||Y(e.value)>60)return;let t=e.entries.find(t=>t.duration===e.value&&yf[t.name]);t&&Af(e.value,t)})}function Af(e,t){K&&R.log(`Sending INP span (${e})`);let n=Y(B()+t.startTime),r=Y(e),i=yf[t.name],a=Sf(t.interactionId),o=ul(),s=o?G(o):void 0,c=a?.span||s,l=c?Zc(c).name:V().getScopeData().transactionName;wf({name:a?.elementName||J(t.target),op:`ui.interaction.${i}`,origin:`auto.http.browser.inp`,metricName:`inp`,value:e,attributes:{[Ec]:t.duration,[Wt]:l,[Ut]:l},startTime:n,endTime:n+r,parentSpan:c})}var jf=1e3,Mf,Nf,Pf;function Ff(e){gs(`dom`,e),_s(`dom`,If)}function If(){if(!q.document)return;let e=vs.bind(null,`dom`),t=zf(e,!0);q.document.addEventListener(`click`,t,!1),q.document.addEventListener(`keypress`,t,!1),[`EventTarget`,`Node`].forEach(t=>{let n=q[t]?.prototype;n?.hasOwnProperty?.(`addEventListener`)&&(Ds(n,`addEventListener`,function(t){return function(n,r,i){if(n===`click`||n==`keypress`)try{let r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},a=r[n]=r[n]||{refCount:0};if(!a.handler){let r=zf(e);a.handler=r,t.call(this,n,r,i)}a.refCount++}catch{}return t.call(this,n,r,i)}}),Ds(n,`removeEventListener`,function(e){return function(t,n,r){if(t===`click`||t==`keypress`)try{let n=this.__sentry_instrumentation_handlers__||{},i=n[t];i&&(i.refCount--,i.refCount<=0&&(e.call(this,t,i.handler,r),i.handler=void 0,delete n[t]),Object.keys(n).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return e.call(this,t,n,r)}}))})}function Lf(e){if(e.type!==Nf)return!1;try{if(!e.target||e.target._sentryId!==Pf)return!1}catch{}return!0}function Rf(e,t){return e===`keypress`?!t?.tagName||!(t.tagName===`INPUT`||t.tagName===`TEXTAREA`||t.isContentEditable):!1}function zf(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;let r=Bf(n);if(Rf(n.type,r))return;z(n,`_sentryCaptured`,!0),r&&!r._sentryId&&z(r,`_sentryId`,zs());let i=n.type===`keypress`?`input`:n.type;Lf(n)||(e({event:n,name:i,global:t}),Nf=n.type,Pf=r?r._sentryId:void 0),clearTimeout(Mf),Mf=q.setTimeout(()=>{Pf=void 0,Nf=void 0},jf)}}function Bf(e){try{return e.target}catch{return null}}var Vf;function Hf(e){let t=`history`;gs(t,e),_s(t,Uf)}function Uf(){if(q.addEventListener(`popstate`,()=>{let e=q.location.href,t=Vf;Vf=e,t!==e&&vs(`history`,{from:t,to:e})}),!su())return;function e(e){return function(...t){let n=t.length>2?t[2]:void 0;if(n){let r=Vf,i=Wf(String(n));if(Vf=i,r===i)return e.apply(this,t);vs(`history`,{from:r,to:i})}return e.apply(this,t)}}Ds(q.history,`pushState`,e),Ds(q.history,`replaceState`,e)}function Wf(e){try{return new URL(e,q.location.origin).toString()}catch{return e}}var Gf={};function Kf(e){let t=Gf[e];if(t)return t;let n=q[e];if(cu(n))return Gf[e]=n.bind(q);let r=q.document;if(r&&typeof r.createElement==`function`)try{let t=r.createElement(`iframe`);t.hidden=!0,r.head.appendChild(t);let i=t.contentWindow;i?.[e]&&(n=i[e]),r.head.removeChild(t)}catch(t){K&&R.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,t)}return n&&(Gf[e]=n.bind(q))}function qf(e){Gf[e]=void 0}var Jf=`__sentry_xhr_v3__`;function Yf(e){gs(`xhr`,e),_s(`xhr`,Xf)}function Xf(){if(!q.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,n){let r=Error(),i=Ws()*1e3,a=xs(n[0])?n[0].toUpperCase():void 0,o=Zf(n[1]);if(!a||!o)return e.apply(t,n);t[Jf]={method:a,url:o,request_headers:{}},a===`POST`&&o.match(/sentry_key/)&&(t.__sentry_own_request__=!0);let s=()=>{let e=t[Jf];if(e&&t.readyState===4){try{e.status_code=t.status}catch{}vs(`xhr`,{endTimestamp:Ws()*1e3,startTimestamp:i,xhr:t,virtualError:r}),r=void 0,t.removeEventListener(`readystatechange`,s)}};return`onreadystatechange`in t&&typeof t.onreadystatechange==`function`?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply(e,t,n){return s(),e.apply(t,n)}}):t.addEventListener(`readystatechange`,s),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,n){let[r,i]=n,a=t[Jf];return a&&xs(r)&&xs(i)&&(a.request_headers[r.toLowerCase()]=i),e.apply(t,n)}}),e.apply(t,n)}}),e.send=new Proxy(e.send,{apply(e,t,n){let r=t[Jf];return r?(n[0]!==void 0&&(r.body=n[0]),vs(`xhr`,{startTimestamp:Ws()*1e3,xhr:t}),e.apply(t,n)):e.apply(t,n)}})}function Zf(e){if(xs(e))return e;try{return e.toString()}catch{}}function Qf(e){let t;try{t=e.getAllResponseHeaders()}catch(t){return K&&R.error(t,`Failed to get xhr response headers`,e),{}}return t?t.split(`\r
25`).reduce((e,t)=>
25{let[n,r]=t.split(`: `);return r&&(e[n.toLowerCase()]=r),e},{}):{}}function $f(e){if(typeof Element>`u`)return!1;try{return e instanceof Element}catch{return!1}}var ep=40;function tp(e,t=Kf(`fetch`)){let n=0,r=0;async function i(i){let a=i.body.length;n+=a,r++;let o={body:i.body,method:`POST`,referrerPolicy:`strict-origin`,headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{let n=await t(e.url,o);return{statusCode:n.status,headers:{"x-sentry-rate-limits":n.headers.get(`X-Sentry-Rate-Limits`),"retry-after":n.headers.get(`Retry-After`)}}}catch(e){throw qf(`fetch`),e}finally{n-=a,r--}}return ni(e,i,Xr(e.bufferSize||ep))}var $=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,np=30,rp=50;function ip(e,t,n,r){let i={filename:e,function:t===`<anonymous>`?`?`:t,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}var ap=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,op=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,sp=/\((\S*)(?::(\d+))(?::(\d+))\)/,cp=/at (.+?) ?\(data:(.+?),/,lp=[np,e=>{let t=e.match(cp);if(t)return{filename:`<data:${t[2]}>`,function:t[1]};let n=ap.exec(e);if(n){let[,e,t,r]=n;return ip(e,`?`,+t,+r)}let r=op.exec(e);if(r){if(r[2]?.indexOf(`eval`)===0){let e=sp.exec(r[2]);e&&(r[2]=e[1],r[3]=e[2],r[4]=e[3])}let[e,t]=pp(r[1]||`?`,r[2]);return ip(t,e,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}}],up=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,dp=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,fp=wt(lp,[rp,e=>{let t=up.exec(e);if(t){if(t[3]&&t[3].indexOf(` > eval`)>-1){let e=dp.exec(t[3]);e&&(t[1]=t[1]||`eval`,t[3]=e[1],t[4]=e[2],t[5]=``)}let e=t[3],n=t[1]||`?`;return[n,e]=pp(n,e),ip(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}]),pp=(e,t)=>{let n=e.indexOf(`safari-extension`)!==-1,r=e.indexOf(`safari-web-extension`)!==-1;return n||r?[e.indexOf(`@`)===-1?`?`:e.split(`@`)[0],n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},mp=1024,hp=`Breadcrumbs`,gp=M(((e={})=>{let t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:hp,setup(e){t.console&&Aa(yp(e)),t.dom&&Ff(vp(e,t.dom)),t.xhr&&Yf(bp(e)),t.fetch&&ho(xp(e)),t.history&&Hf(Sp(e)),t.sentry&&e.on(`beforeSendEvent`,_p(e))}}}));function _p(e){return function(t){T()===e&&aa({category:`sentry.${t.type===`transaction`?`transaction`:`event`}`,event_id:t.event_id,level:t.level,message:se(t)},{event:t})}}function vp(e,t){return function(n){if(T()!==e)return;let r,i,a=typeof t==`object`?t.serializeAttribute:void 0,o=typeof t==`object`&&typeof t.maxStringLength==`number`?t.maxStringLength:void 0;o&&o>mp&&($&&D.warn(`\`dom.maxStringLength\` cannot exceed ${mp}, but a value of ${o} was configured. Sentry will use ${mp} instead.`),o=mp),typeof a==`string`&&(a=[a]);try{let e=n.event,t=Cp(e)?e.target:e;r=J(t,{keyAttrs:a,maxStringLength:o}),i=Eo(t)}catch{r=`<unknown>`}if(r.length===0)return;let s={category:`ui.${n.name}`,message:r};i&&(s.data={"ui.component_name":i}),aa(s,{event:n.event,name:n.name,global:n.global})}}function yp(e){return function(t){if(T()!==e)return;let n={category:`console`,data:{arguments:t.args,logger:`console`},level:Na(t.level),message:y(t.args,` `)};if(t.level===`assert`){if(t.args[0]===!1)n.message=`Assertion failed: ${y(t.args.slice(1),` `)||`console.assert`}`,n.data.arguments=t.args.slice(1);else return}aa(n,{input:t.args,level:t.level})}}function bp(e){return function(t){if(T()!==e)return;let{startTimestamp:n,endTimestamp:r}=t,i=t.xhr[Jf];if(!n||!r||!i)return;let{method:a,url:o,status_code:s,body:c}=i,l={method:a,url:o,status_code:s},u={xhr:t.xhr,input:c,startTimestamp:n,endTimestamp:r},d={category:`xhr`,data:l,type:`http`,level:lo(s)};e.emit(`beforeOutgoingRequestBreadcrumb`,d,u),aa(d,u)}}function xp(e){return function(t){if(T()!==e)return;let{startTimestamp:n,endTimestamp:r}=t;if(r&&!(t.fetchData.url.match(/sentry_key/)&&t.fetchData.method===`POST`)){if(t.error){let i={data:t.error,input:t.args,startTimestamp:n,endTimestamp:r},a={category:`fetch`,data:t.fetchData,level:`error`,type:`http`};e.emit(`beforeOutgoingRequestBreadcrumb`,a,i),aa(a,i)}else{let i=t.response,a={...t.fetchData,status_code:i?.status},o={input:t.args,response:i,startTimestamp:n,endTimestamp:r},s={category:`fetch`,data:a,type:`http`,level:lo(a.status_code)};e.emit(`beforeOutgoingRequestBreadcrumb`,s,o),aa(s,o)}}}}function Sp(e){return function(t){if(T()!==e)return;let n=t.from,r=t.to,i=Ki(F.location.href),a=n?Ki(n):void 0,o=Ki(r);a?.path||(a=i),i.protocol===o.protocol&&i.host===o.host&&(r=o.relative),i.protocol===a.protocol&&i.host===a.host&&(n=a.relative),aa({category:`navigation`,data:{from:n,to:r}})}}function Cp(e){return!!e&&!!e.target}var wp=`EventTarget,Window,Node,ApplicationCache,AudioTrackList,BroadcastChannel,ChannelMergerNode,CryptoOperation,EventSource,FileReader,HTMLUnknownElement,IDBDatabase,IDB
25Request,IDBTransaction,KeyOperation,MediaController,MessagePort,ModalWindow,Notification,SVGElementInstance,Screen,SharedWorker,TextTrack,TextTrackCue,TextTrackList,WebSocket,WebSocketWorker,Worker,XMLHttpRequest,XMLHttpRequestEventTarget,XMLHttpRequestUpload`.split(`,`),Tp=`BrowserApiErrors`,Ep=M(((e={})=>{let t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:Tp,setupOnce(){t.setTimeout&&h(F,`setTimeout`,Dp),t.setInterval&&h(F,`setInterval`,Dp),t.requestAnimationFrame&&h(F,`requestAnimationFrame`,Op),t.XMLHttpRequest&&`XMLHttpRequest`in F&&h(XMLHttpRequest.prototype,`send`,kp);let e=t.eventTarget;e&&(Array.isArray(e)?e:wp).forEach(e=>Ap(e,t))}}}));function Dp(e){return function(...t){let n=t[0];return t[0]=Ao(n,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${st(e)}`}}),e.apply(this,t)}}function Op(e){return function(t){return e.apply(this,[Ao(t,{mechanism:{data:{handler:st(e)},handled:!1,type:`auto.browser.browserapierrors.requestAnimationFrame`}})])}}function kp(e){return function(...t){let n=this;return[`onload`,`onerror`,`onprogress`,`onreadystatechange`].forEach(e=>{e in n&&typeof n[e]==`function`&&h(n,e,function(t){let n={mechanism:{data:{handler:st(t)},handled:!1,type:`auto.browser.browserapierrors.xhr.${e}`}},r=re(t);return r&&(n.mechanism.data.handler=st(r)),Ao(t,n)})}),e.apply(this,t)}}function Ap(e,t){let n=F[e]?.prototype;n?.hasOwnProperty?.(`addEventListener`)&&(h(n,`addEventListener`,function(n){return function(r,i,a){try{jp(i)&&(i.handleEvent=Ao(i.handleEvent,{mechanism:{data:{handler:st(i),target:e},handled:!1,type:`auto.browser.browserapierrors.handleEvent`}}))}catch{}return t.unregisterOriginalCallbacks&&Mp(this,r,i),n.apply(this,[r,Ao(i,{mechanism:{data:{handler:st(i),target:e},handled:!1,type:`auto.browser.browserapierrors.addEventListener`}}),a])}}),h(n,`removeEventListener`,function(e){return function(t,n,r){try{if(Object.prototype.hasOwnProperty.call(n,`__sentry_wrapped__`)){let i=n.__sentry_wrapped__;i&&e.call(this,t,i,r)}}catch{}return e.call(this,t,n,r)}}))}function jp(e){return typeof e.handleEvent==`function`}function Mp(e,t,n){e&&typeof e==`object`&&`removeEventListener`in e&&typeof e.removeEventListener==`function`&&e.removeEventListener(t,n)}var Np=M((e={})=>{let t=e.lifecycle??`route`;return{name:`BrowserSession`,setupOnce(){if(F.document===void 0){$&&D.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}ht({ignoreDuration:!0});let e=!1;Ku(()=>{e||=(et(),!0)});let n=$e(),r=n.getUser();n.addScopeListener(t=>{let n=t.getUser();(r?.id!==n?.id||r?.ip_address!==n?.ip_address)&&(r=n,e&&et())}),t===`route`&&Hf(({from:t,to:n})=>{t!==n&&(ht({ignoreDuration:!0}),et(),e=!0)})}}}),Pp=`CultureContext`,Fp=M((()=>({name:Pp,preprocessEvent(e){let t=Ip();t&&(e.contexts={...e.contexts,culture:{...t,...e.contexts?.culture}})},processSegmentSpan(e){let t=Ip();t&&lr(e,{"culture.locale":t.locale,"culture.timezone":t.timezone,"culture.calendar":t.calendar})}})));function Ip(){try{let e=F.Intl;if(!e)return;let t=e.DateTimeFormat().resolvedOptions();return{locale:t.locale,timezone:t.timeZone,calendar:t.calendar}}catch{return}}var Lp=`GlobalHandlers`,Rp=M(((e={})=>{let t={onerror:!0,onunhandledrejection:!0,...e};return{name:Lp,setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(zp(e),Wp(`onerror`)),t.onunhandledrejection&&(Bp(e),Wp(`onunhandledrejection`))}}}));function zp(e){$t(t=>{let{stackParser:n,attachStacktrace:r}=Gp();if(T()!==e||Oo())return;let{msg:i,url:a,line:o,column:s,error:c}=t,l=Up(Wo(n,c||i,void 0,r,!1),a,o,s);l.level=`error`,Et(l,{originalException:c,mechanism:{handled:!1,type:`auto.browser.global_handlers.onerror`}})})}function Bp(e){nn(t=>{let{stackParser:n,attachStacktrace:r}=Gp();if(T()!==e||Oo())return;let i=Vp(t),a=xt(i)?Hp(i):Wo(n,i,void 0,r,!0);a.level=`error`,Et(a,{originalException:i,mechanism:{handled:!1,type:`auto.browser.global_handlers.onunhandledrejection`}})})}function Vp(e){if(xt(e))return e;try{if(`reason`in e)return e.reason;if(`detail`in e&&`reason`in e.detail)return e.detail.reason}catch{}return e}function Hp(e){return{exception:{values:[{type:`UnhandledRejection`,value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function Up(e,t,n,r){let i=e.exception=e.exception||{},a=i.values=i.values||[],o=a[0]=a[0]||{},s=o.stacktrace=o.stacktrace||{},c=s.frames=s.frames||[];
25return c.length===0&&c.push({colno:r,lineno:n,filename:Kp(t)??To(),function:`?`,in_app:!0}),e}function Wp(e){$&&D.log(`Global Handler attached: ${e}`)}function Gp(){return T()?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}function Kp(e){if(Pe(e)&&e.length!==0)return e.startsWith(`data:`)?`<${P(e,!1)}>`:e}var qp=M(()=>({name:`HttpContext`,preprocessEvent(e){if(!F.navigator&&!F.location&&!F.document)return;let t=jo(),n={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:n}},processSpan(e){if(!F.navigator&&!F.location&&!F.document)return;let t=jo();lr(e,{[Kt]:t.headers[`User-Agent`],...e.is_segment&&{"url.full":e.attributes?.[`sentry.op`]===`http.client`?void 0:t.url,"http.request.header.referer":t.headers.Referer}})}})),Jp=`cause`,Yp=5,Xp=`LinkedErrors`,Zp=M(((e={})=>{let t=e.limit||Yp,n=e.key||Jp;return{name:Xp,preprocessEvent(e,r,i){Sa(Mo,i.getOptions().stackParser,n,t,e,r)}}})),Qp=/^HTML(\w*)Element$/;function $p(e){if(typeof window<`u`&&e===window)return`[Window]`;if(typeof document<`u`&&e===document)return`[Document]`;if($f(e)){let t=em(e);if(Qp.test(t))return`[HTMLElement: ${J(e)}]`}}function em(e){let t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:`null prototype`}function tm(){return nm()?($&&qe(()=>{console.error(`[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/`)}),!0):!1}function nm(){if(F.window===void 0)return!1;let e=F;if(e.nw||!(e.chrome||e.browser)?.runtime?.id)return!1;let t=To();return!(F===F.top&&/^(?:chrome-extension|moz-extension|ms-browser-extension|safari-web-extension):\/\//.test(t))}function rm(e){return[fa(),ca(),Ka(),Ep(),gp(),Rp(),Zp(),Ra(),qp(),Fp(),Np()]}function im(e={}){let t=!e.skipBrowserExtensionCheck&&tm(),n=e.defaultIntegrations==null?rm():e.defaultIntegrations,r={...e,enabled:!t&&e.enabled,stackParser:At(e.stackParser||fp),integrations:_r({integrations:e.integrations,defaultIntegrations:n}),transport:e.transport||tp};return a($p),Ii(Yo,r)}var am=`HttpClient`,om=M(((e={})=>{let t={failedRequestStatusCodes:[[500,599]],failedRequestTargets:[/.*/],...e};return{name:am,setup(e){mm(e,t),hm(e,t)}}}));function sm(e,t,n,r,i){if(gm(e,n.status,n.url)){let e=vm(t,r),a,o,s,c,l=ym();if(l.requestHeaders!==!1&&(a=zi(um(e.headers),l.requestHeaders)),l.responseHeaders!==!1&&(o=zi(um(n.headers),l.responseHeaders)),l.cookies!==!1){let t=e.headers.get(`Cookie`)||void 0;if(t){let e=Vi(t,l.cookies);typeof e==`object`&&(s=e)}let r=n.headers.get(`Set-Cookie`)||void 0;if(r){let e=Vi(r,l.cookies);typeof e==`object`&&(c=e)}}let u=_m({url:e.url,method:e.method,status:n.status,requestHeaders:a,responseHeaders:o,requestCookies:s,responseCookies:c,error:i,type:`fetch`});Et(u)}}function cm(e,t,n,r,i){if(gm(e,t.status,t.responseURL)){let e,a,o,s=ym();if(s.cookies!==!1)try{let e=t.getResponseHeader(`Set-Cookie`)||t.getResponseHeader(`set-cookie`)||void 0;if(e){let t=Vi(e,s.cookies);typeof t==`object`&&(a=t)}}catch{}if(s.responseHeaders!==!1)try{o=zi(dm(t),s.responseHeaders)}catch{}s.requestHeaders!==!1&&(e=zi(r,s.requestHeaders));let c=_m({url:t.responseURL,method:n,status:t.status,requestHeaders:e,responseHeaders:o,responseCookies:a,error:i,type:`xhr`});Et(c)}}function lm(e){if(e){let t=e[`Content-Length`]||e[`content-length`];if(t)return parseInt(t,10)}}function um(e){let t={};return e.forEach((e,n)=>{t[n]=e}),t}function dm(e){let t=e.getAllResponseHeaders();return t?t.split(`\r
26`).reduce((e,t)=>{let[n,r]=t.split(`: `);return n&&r&&(e[n]=r),e},{}):{}}function fm(e,t){return e.some(e=>typeof e==`string`?t.includes(e):e.test(t))}function pm(e,t){return e.some(e=>typeof e==`number`?e===t:t>=e[0]&&t<=e[1])}function mm(e,t){mo()&&ho(n=>{if(T()!==e)return;let{response:r,args:i,error:a,virtualError:o}=n,[s,c]=i;r&&sm(t,s,r,c,a||o)},!1)}function hm(e,t){`XMLHttpRequest`in A&&Yf(n=>{if(T()!==e)return;let{error:r,virtualError:i}=n,a=n.xhr,o=a[Jf];if(!o)return;let{method:s,request_headers:c}=o;try{cm(t,a,s,c,r||i)}catch(e){$&&D.warn(`Error while extracting response event form XHR response`,e)}})}function gm(e,t,n){return pm(e.failedRequestStatusCodes,t)&&fm(e.failedRequestTargets,n)&&!Ji(n,T())}function _m(e){let t=T(),n=t&&e.error&&e.error instanceof Error?e.error.stack:void 0,i=n&&t?t.getOptions().stackParser(n,0,1):void 0,a=`HTTP Client Error with status code: ${e.status}`,o={message:a,exception:{values:[{type:`Error`,value:a,stacktrace:i?{frames:i}:void 0}]},request:{url:e.url,method:e.method,headers:e.requestHeaders,cookies:e.requestCookies},contexts:{response:{status_code:e.status,headers:e.responseHeaders,cookies:e.responseCookies,body_size:lm(e.responseHeaders)}}};return r(o,{type:`auto.http.client.${e.type}`,handled:!1}),o}function vm(e,t){return!t&&e instanceof Request||e instanceof Request&&e.bodyUsed?e:new Request
26(e,t)}function ym(){let e=T();if(!e)return{cookies:!1,requestHeaders:!1,responseHeaders:!1};let t=e.getOptions();if(t.dataCollection==null){let e=!!t.sendDefaultPii;return{cookies:e,requestHeaders:e,responseHeaders:e}}let{cookies:n,httpHeaders:r}=e.getDataCollectionOptions();return{cookies:n,requestHeaders:r.request,responseHeaders:r.response}}function bm(e){return e.split(`,`).some(e=>e.trim().startsWith(`sentry-`))}function xm(e){try{return new URL(e,F.location.origin).href}catch{return}}function Sm(e){return e.entryType===`resource`&&`initiatorType`in e&&typeof e.nextHopProtocol==`string`&&(e.initiatorType===`fetch`||e.initiatorType===`xmlhttprequest`)}function Cm(e){try{return new Headers(e)}catch{return}}var wm={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function Tm(e,t){let{traceFetch:n,traceXHR:r,shouldCreateSpanForRequest:i,enableHTTPTimings:a,tracePropagationTargets:o,onRequestSpanStart:s,onRequestSpanEnd:c}={...wm,...t},l=typeof i==`function`?i:e=>!0,u=e=>Om(e,o),d={},f=e.getOptions().propagateTraceparent;n&&ho(t=>{let n=qa(t,l,u,d,{propagateTraceparent:f,onRequestSpanEnd:c}
26);if(n){let r=xm(t.fetchData.url),i=r?Ki(r).host:void 0,o=r?P(r):void 0;n.setAttributes({[Ht]:o,[Gt]:o,"server.address":i}),a&&Dm(n,e),s?.(n,{headers:t.headers})}}),r&&Yf(t=>{let n=km(t,l,u,d,f,c);n&&(a&&Dm(n,e),s?.(n,{headers:Cm(t.xhr.__sentry_xhr_v3__?.request_headers)}))})}var Em=300;function Dm(e,t){let{url:n}=x(e).data;if(!n||typeof n!=`string`)return;let r=()=>void setTimeout(i);if(j(t)){let t=e.end.bind(e);e.end=e=>{let n=e??E(),a=!1,o=()=>{a||(a=!0,setTimeout(i),t(n),clearTimeout(s))};r=o;let s=setTimeout(o,Em)}}let i=fd(`resource`,({entries:t})=>{t.forEach(t=>{Sm(t)&&t.name.endsWith(n)&&(e.setAttributes(Bd(t)),r())})})}function Om(e,t){let n=To();if(n){let r,i;try{r=new URL(e,n),i=new URL(n).origin}catch{return!1}let a=r.origin===i;return t?b(r.toString(),t)||a&&b(r.pathname,t):a}{let n=!!e.match(/^\/(?!\/)/);return t?b(e,t):n}}function km(e,t,n,r,i,a){let o=e.xhr,s=o?.[Jf];if(!o||o.__sentry_own_request__||!s)return;let{url:c,method:l}=s,u=k()&&t(c);if(e.endTimestamp){let t=o.__sentry_xhr_span_id__;if(!t)return;let n=r[t];n&&(u&&s.status_code!==void 0&&(de(n,s.status_code),n.end(),a?.(n,{headers:Cm(Qf(o)),error:e.error})),delete r[t]);return}let d=xm(c),f=Ki(d||c),p=d?P(d):void 0,m=P(qi(c)),h=T(),g=!!C(),_=g||!!h&&j(h),v=u&&_?Un({name:`${l} ${m}`,attributes:{url:P(c),type:`xhr`,"http.method":l,"http.url":p,[Gt]:p,"server.address":f?.host,[Tt]:`auto.http.browser`,[_t]:`http.client`,...f?.search&&{"http.query":f?.search},...f?.hash&&{"http.fragment":f?.hash}}}):new Je,y=tr(v)&&g?void 0:v;return u&&!_&&h?.recordDroppedEvent(`no_parent_span`,`span`),o.__sentry_xhr_span_id__=v.spanContext().spanId,r[o.__sentry_xhr_span_id__]=v,n(c)&&Am(o,k()&&_?y:void 0,i),h&&h.emit(`beforeOutgoingRequestSpan`,v,e),v}function Am(e,t,n){let{"sentry-trace":r,baggage:i,traceparent:a}=ta({span:t,propagateTraceparent:n});r&&jm(e,r,i,a)}function jm(e,t,n,r){let i=e.__sentry_xhr_v3__?.request_headers;if(!i?.[`sentry-trace`]&&e.setRequestHeader)try{if(e.setRequestHeader(`sentry-trace`,t),r&&!i?.traceparent&&e.setRequestHeader(`traceparent`,r),n){let t=i?.baggage;(!t||!bm(t))&&e.setRequestHeader(`baggage`,n)}}catch{}}var Mm=new WeakMap,Nm=new WeakMap,Pm=9e4,Fm=[`text/event-stream`,`application/x-ndjson`,`application/stream+json`],Im=M(()=>({name:`FetchStreamPerformance`,setup(){go(e=>{if(e.response){let t=Mm.get(e.response);if(t&&e.endTimestamp){t.end(e.endTimestamp);let n=Nm.get(e.response);n&&clearTimeout(n)}}}),ho(e=>{if(e.endTimestamp&&e.response){let t=e.response.headers?.get(`content-type`)||``;if(e.response.headers?.get(`content-length`)||!Fm.some(e=>t.startsWith(e)))return;let n=e.fetchData?.url||``,r=e.fetchData?.method||`GET`,i=Wi(n),a=Un({name:`${r} ${n.startsWith(`data:`)?P(n):i?Gi(i):n}`,startTime:e.endTimestamp,attributes:{url:P(n),"http.method":r,type:`fetch`,[_t]:`http.client.stream`,[Tt]:`auto.http.browser.stream`}});Mm.set(e.response,a);let o=setTimeout(()=>{a.isRecording()&&a.end()},Pm);Nm.set(e.response,o)}})}})),Lm=`WebVitals`,Rm=M((e={})=>{let t=new Set(e.ignore??[]);return{name:Lm,setup(n){let r=j(n),{enableStandaloneClsSpans:i,enableStandaloneLcpSpans:a}=e._experiments??{},o=r||t.has(`cls`)?void 0:i||!1,s=r||t.has(`lcp`)?void 0:a||!1,c=Gd({recordClsStandaloneSpans:o,recordLcpStandaloneSpans:s,client:n}),l=new WeakSet;n.on(`afterStartPageLoadSpan`,e=>{l.add(e)}),n.on(`spanEnd`,e=>{l.delete(e)&&(c(),ef(e,{recordClsOnPageloadSpan:o===!1,recordLcpOnPageloadSpan:s===!1,spanStreamingEnabled:r}))}),r?(t.has(`lcp`)||Tf(n),t.has(`cls`)||Df(n),t.has(`inp`)||kf()):t.has(`inp`)||vf()},afterAllSetup(){t.has(`inp`)||Cf()}}});function zm(){F.document?F.document.addEventListener(`visibilitychange`,()=>{let e=C();if(!e)return;let t=o(e);if(F.document.hidden&&t){let e=`cancelled`,{op:n,status:r}=x(t);$&&D.log(`[Tracing] Transaction: ${e} -> since tab moved to the background, op: ${n}`),r||t.setStatus({code:2,message:e}),t.setAttribute(`sentry.cancellation_reason`,`document.hidden`),t.end()}}):$&&D.warn(`[Tracing] Could not set up background tab detection due to lack of global document`)}var Bm=`sentry_previous_trace`,Vm=`sentry.previous_trace`;function Hm(e,{linkPreviousTrace:t,consistentTraceSampling:n}){let r=t===`session-storage`,i=r?Gm():void 0;e.on(`spanStart`,e=>{if(o(e)!==e)return;
26let t=O().getPropagationContext();i=Um(i,e,t),r&&Wm(i)});let a=!0;n&&e.on(`beforeSampling`,e=>{if(!i)return;let t=O(),n=t.getPropagationContext();if(a&&n.parentSpanId){a=!1;return}t.setPropagationContext({...n,dsc:{...n.dsc,sample_rate:String(i.sampleRate),sampled:String(Km(i.spanContext))},sampleRand:i.sampleRand}),e.parentSampled=Km(i.spanContext),e.parentSampleRate=i.sampleRate,e.spanAttributes={...e.spanAttributes,[Be]:i.sampleRate}})}function Um(e,t,n){let r=x(t);function i(){try{let e=Number(r.data?.[`sentry.sample_rate`]??n.dsc?.sample_rate);return Number.isNaN(e)?0:e}catch{return 0}}let a={spanContext:t.spanContext(),startTimestamp:r.start_timestamp,sampleRate:i(),sampleRand:n.sampleRand};if(!e)return a;let o=e.spanContext;return o.traceId===r.trace_id?e:(Date.now()/1e3-e.startTimestamp<=3600&&($&&D.log(`Adding previous_trace \`${JSON.stringify(o)}\` link to span \`${JSON.stringify({op:r.op,...t.spanContext()})}\``),t.addLink({context:o,attributes:{[Ue]:`previous_trace`}}),t.setAttribute(Vm,`${o.traceId}-${o.spanId}-${+!!Km(o)}`)),a)}function Wm(e){try{F.sessionStorage.setItem(Bm,JSON.stringify(e))}catch(e){$&&D.warn(`Could not store previous trace in sessionStorage`,e)}}function Gm(){try{let e=F.sessionStorage?.getItem(Bm);return JSON.parse(e)}catch{return}}function Km(e){return e.traceFlags===1}var qm=`BrowserTracing`,Jm=/Googlebot|Google-InspectionTool|Storebot-Google|Bingbot|Slurp|DuckDuckBot|Baiduspider|YandexBot|Facebot|facebookexternalhit|LinkedInBot|Twitterbot|Applebot/i;function Ym(){let e=F.navigator;return e?.userAgent?Jm.test(e.userAgent):!1}var Xm={...nr,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:`in-memory`,consistentTraceSampling:!1,enableReportPageLoaded:!1,_experiments:{},...wm},Zm=((e={})=>{`enableElementTiming`in e&&qe(()=>{console.warn("[Sentry] `enableElementTiming` is deprecated and no longer has any effect. Use the standalone `elementTimingIntegration` instead.")});let t={name:void 0,source:void 0},r=F.document,{enableInp:i,enableLongTask:a,enableLongAnimationFrame:o,_experiments:{enableInteractions:c,enableStandaloneClsSpans:u,enableStandaloneLcpSpans:d},beforeStartSpan:f,idleTimeout:p,finalTimeout:m,childSpanTimeout:h,markBackgroundSpan:g,traceFetch:_,traceXHR:v,trackFetchStreamPerformance:y,shouldCreateSpanForRequest:ee,enableHTTPTimings:te,ignoreResourceSpans:ne,ignorePerformanceApiSpans:re,instrumentPageLoad:ie,instrumentNavigation:b,detectRedirects:ae,linkPreviousTrace:oe,consistentTraceSampling:se,enableReportPageLoaded:ce,onRequestSpanStart:ue,onRequestSpanEnd:S}={...Xm,...e},de=Ym(),fe,pe;function me(e,i,a=!0,o){let s=i.op===`pageload`,c=i.name,l=f?f(i):i,u=Wi(o||To()),d={...u?.pathname&&{"url.path":u.pathname},...u&&!Ui(u)&&{"url.full":u.href},...l.attributes};if(c!==l.name&&(d[jt]=`custom`),l.attributes=d,!a){let e=le();Un({...l,startTime:e}).end(e);return}t.name=l.name,t.source=d[jt];let g=sr(l,{idleTimeout:p,finalTimeout:m,childSpanTimeout:h,disableAutoFinish:s,beforeSpanEnd:t=>{$d(t,{ignoreResourceSpans:ne,ignorePerformanceApiSpans:re,spanStreamingEnabled:j(e)}),ah(e,void 0);let r=O(),i=r.getPropagationContext();r.setPropagationContext({...i,traceId:g.spanContext().traceId,sampled:n(g),dsc:lt(t)}),s&&(pe=void 0)},trimIdleSpanEndTimestamp:!ce});s&&ce&&(pe=g),ah(e,g);function _(){r&&[`interactive`,`complete`].includes(r.readyState)&&(e.emit(`idleSpanEnableAutoFinish`,g),r.removeEventListener(`readystatechange`,_))}s&&!ce&&r&&(r.addEventListener(`readystatechange`,_),_())}return{name:qm,setup(e){if(de){$&&D.log(`[Tracing] Skipping browserTracingIntegration setup for bot user agent.`);return}if(on(),o&&A.PerformanceObserver&&PerformanceObserver.supportedEntryTypes?.includes(`long-animation-frame`)?qd():a&&Kd(),c&&Jd(),ae&&r){let e=()=>{fe=E()};addEventListener(`click`,e,{capture:!0}),addEventListener(`keydown`,e,{capture:!0,passive:!0})}function t(){let t=ih(e);t&&!x(t).timestamp&&($&&D.log(`[Tracing] Finishing current active span with op: ${x(t).op}`),t.setAttribute(St,`cancelled`),t.end())}e.on(`startNavigationSpan`,(n,r)=>{if(T()!==e)return;if(r?.isRedirect){$&&D.warn(`[Tracing] Detected redirect, navigation span will not be the root span, but a child span.`),me(e,{op:`navigation.redirect`,...n},!1,r.url);return}fe=void 0,t();let i=O();i.setPropagationContext({traceId:Ft(),sampleRand:Math.random(),propagationSpanId:k()?void 0:s()}),i.setSDKProcessingMetadata({normalizedRequest:void 0}),me(e,{op:`navigation`,...n,parentSpan:null,forceTransaction:!0},!0,r?.url)}),e.on(`startPageLoadSpan`,(n,r={})=>
26{if(T()!==e)return;t();let i=r.sentryTrace||eh(`sentry-trace`)||th(`sentry-trace`),a=r.baggage||eh(`baggage`)||th(`baggage`),o=be(i,a),c=O();c.setPropagationContext(o),k()||(c.getPropagationContext().propagationSpanId=s()),c.setSDKProcessingMetadata({normalizedRequest:jo()}),me(e,{op:`pageload`,...n})}),e.on(`endPageloadSpan`,()=>{ce&&pe&&(pe.setAttribute(St,`reportPageLoaded`),pe.end())})},afterAllSetup(e){if(de)return;e.addIntegration&&!e.getIntegrationByName?.(`WebVitals`)&&e.addIntegration(Rm({ignore:i?[]:[`inp`],_experiments:{enableStandaloneClsSpans:u,enableStandaloneLcpSpans:d}}));let n=To();if(oe!==`off`&&Hm(e,{linkPreviousTrace:oe,consistentTraceSampling:se}),F.location){if(ie){let t=l();Qm(e,{name:F.location.pathname,startTime:t?t/1e3:void 0,attributes:{[jt]:`url`,[Tt]:`auto.pageload.browser`}})}b&&Hf(({to:t,from:r})=>{if(r===void 0&&n?.indexOf(t)!==-1){n=void 0;return}n=void 0;let i=Wi(t),a=ih(e),o=a&&ae&&sh(a,fe);$m(e,{name:i?.pathname||F.location.pathname,attributes:{[jt]:`url`,[Tt]:`auto.navigation.browser`}},{url:t,isRedirect:o})})}g&&zm(),c&&nh(e,p,m,h,t),Tm(e,{traceFetch:_,traceXHR:v,tracePropagationTargets:e.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:ee,enableHTTPTimings:te,onRequestSpanStart:ue,onRequestSpanEnd:S}),y&&e.addIntegration(Im())}}});function Qm(e,t,n){e.emit(`startPageLoadSpan`,t,n),O().setTransactionName(t.name);let r=ih(e);return r&&e.emit(`afterStartPageLoadSpan`,r),r}function $m(e,t,n){let{url:r,isRedirect:i}=n||{};e.emit(`beforeStartNavigationSpan`,t,{isRedirect:i,url:r}),e.emit(`startNavigationSpan`,t,{isRedirect:i,url:r});let a=O();return a.setTransactionName(t.name),r&&!i&&a.setSDKProcessingMetadata({normalizedRequest:{...jo(),url:r}}),ih(e)}function eh(e){return(F.document?.querySelector(`meta[name=${e}]`))?.getAttribute(`content`)||void 0}function th(e){return(F.performance?.getEntriesByType?.(`navigation`)[0])?.serverTiming?.find(t=>t.name===e)?.description}function nh(e,t,n,r,i){let a=F.document,o;a&&addEventListener(`click`,()=>{let a=`ui.action.click`,s=ih(e);if(s){let e=x(s).op;if([`navigation`,`pageload`].includes(e)){$&&D.warn(`[Tracing] Did not create ${a} span because a pageload or navigation span is in progress.`);return}}if(o&&=(o.setAttribute(St,`interactionInterrupted`),o.end(),void 0),!i.name){$&&D.warn(`[Tracing] Did not create ${a} transaction because _latestRouteName is missing.`);return}o=sr({name:i.name,op:a,attributes:{[jt]:i.source||`url`}},{idleTimeout:t,finalTimeout:n,childSpanTimeout:r})},{capture:!0})}var rh=`_sentry_idleSpan`;function ih(e){return e[rh]}function ah(e,t){ye(e,rh,t)}var oh=1.5;function sh(e,t){let n=x(e),r=le();return!(r-n.start_timestamp>oh||t&&r-t<=oh)}var ch=1e6,lh=`window`in A&&A.window===A&&typeof importScripts>`u`,uh=`0`,dh=lh?`main`:`worker`,fh=F.navigator,ph=``,mh=``,hh=``,gh=fh?.userAgent||``,_h=``,vh=fh?.language||fh?.languages?.[0]||``;function yh(e){return typeof e==`object`&&!!e&&`getHighEntropyValues`in e}var bh=fh?.userAgentData;yh(bh)&&bh.getHighEntropyValues([`architecture`,`model`,`platform`,`platformVersion`,`fullVersionList`]).then(e=>{if(ph=e.platform||``,hh=e.architecture||``,_h=e.model||``,mh=e.platformVersion||``,e.fullVersionList?.length){let t=e.fullVersionList[e.fullVersionList.length-1];gh=`${t.brand} ${t.version}`}}).catch(e=>void 0);function xh(e){return!(`thread_metadata`in e)}function Sh(e){return xh(e)?kh(e):e}function Ch(e){let t=e.contexts?.trace?.trace_id;return typeof t==`string`&&t.length!==32&&$&&D.log(`[Profiling] Invalid traceId: ${t} on profiled event`),typeof t==`string`?t:``}function wh(e,t,n,r){if(r.type!==`transaction`)throw TypeError(`Profiling events may only be attached to transactions, this should never occur.`);if(n==null)throw TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${n} instead.`);let i=Ch(r),a=Sh(n),o=t||(typeof r.start_timestamp==`number`?r.start_timestamp*1e3:E()*1e3),s=typeof r.timestamp==`number`?r.timestamp*1e3:E()*1e3;return{event_id:e,timestamp:new Date(o).toISOString(),platform:`javascript`,version:`1`,release:r.release||``,environment:r.environment||`production`,runtime:{name:`javascript`,version:F.navigator.userAgent},os:{name:ph,version:mh,build_number:gh},device:{locale:vh,model:_h,manufacturer:gh,architecture:hh,is_emulator:!1},debug_meta:{images:Mh(n.resources)},profile:a,transactions:[{name:r.transaction||``,id:r.event_id||S(),trace_id:i,active_thread_id:uh,relative_start_ns:`0`,relative_end_ns:((s-o)*1e6).toFixed(0)}]}}function Th(e,t,n){if(e==null)throw TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${e} instead.`);let r=Dh(e),i=t.getOptions(),a=t.getSdkMetadata?.()?.sdk;return{chunk_id:S(),client_sdk:{name:a?.name??`sentry.javascript.browser`,version:a?.version??`0.0.0`},profiler_id:n||S(),platform:`javascript`,version:`2`,release:i.release??``,environment:i.environment??`production`,debug_meta:{images:Mh(e.resources)},profile:r}}function Eh(e){try{if(!e||typeof e!=`object`)return{reason:`chunk is not an object`};let t=e=>typeof e==`string`&&/^[a-f0-9]{32}$/.test(e);
26if(!t(e.profiler_id))return{reason:`missing or invalid profiler_id`};if(!t(e.chunk_id))return{reason:`missing or invalid chunk_id`};if(!e.client_sdk)return{reason:`missing client_sdk metadata`};let n=e.profile;return n?!Array.isArray(n.frames)||!n.frames.length?{reason:`profile has no frames`}:!Array.isArray(n.stacks)||!n.stacks.length?{reason:`profile has no stacks`}:!Array.isArray(n.samples)||!n.samples.length?{reason:`profile has no samples`}:{valid:!0}:{reason:`missing profile data`}}catch(e){return{reason:`unknown validation error: ${e}`}}}function Dh(e){let t=[];for(let n=0;n<e.frames.length;n++){let r=e.frames[n];r&&(t[n]={function:r.name,abs_path:typeof r.resourceId==`number`?e.resources[r.resourceId]:void 0,lineno:r.line,colno:r.column})}let n=[];for(let t=0;t<e.stacks.length;t++){let r=e.stacks[t];if(!r)continue;let i=[],a=r;for(;a;)i.push(a.frameId),a=a.parentId===void 0?void 0:e.stacks[a.parentId];n[t]=i}let r=l(),i=typeof performance.timeOrigin==`number`?performance.timeOrigin:r||0,a=i-(r||i),o=[];for(let t=0;t<e.samples.length;t++){let n=e.samples[t];if(!n)continue;let r=(i+(n.timestamp-a))/1e3;o[t]={stack_id:n.stackId??0,thread_id:uh,timestamp:r}}return{frames:t,stacks:n,samples:o,thread_metadata:{[uh]:{name:dh}}}}function Oh(e){return x(e).op===`pageload`}function kh(e){let t,n=0,r={samples:[],stacks:[],frames:[],thread_metadata:{[uh]:{name:dh}}},i=e.samples[0];if(!i)return r;let a=i.timestamp,o=l(),s=typeof performance.timeOrigin==`number`?performance.timeOrigin:o||0,c=s-(o||s);return e.samples.forEach((i,o)=>{if(i.stackId===void 0){t===void 0&&(t=n,r.stacks[t]=[],n++),r.samples[o]={elapsed_since_start_ns:((i.timestamp+c-a)*ch).toFixed(0),stack_id:t,thread_id:uh};return}let s=e.stacks[i.stackId],l=[];for(;s;){l.push(s.frameId);let t=e.frames[s.frameId];t&&r.frames[s.frameId]===void 0&&(r.frames[s.frameId]={function:t.name,abs_path:typeof t.resourceId==`number`?e.resources[t.resourceId]:void 0,lineno:t.line,colno:t.column}),s=s.parentId===void 0?void 0:e.stacks[s.parentId]}let u={elapsed_since_start_ns:((i.timestamp+c-a)*ch).toFixed(0),stack_id:n,thread_id:uh};r.stacks[n]=l,r.samples[o]=u,n++}),r}function Ah(e,t){if(!t.length)return e;for(let n of t)e[1].push([{type:`profile`},n]);return e}function jh(e){let t=[];return hn(e,(e,n)=>{if(n===`transaction`)for(let n=1;n<e.length;n++)e[n]?.contexts?.profile?.profile_id&&t.push(e[n])}),t}function Mh(e){let t=T()?.getOptions()?.stackParser;return t?Re(t,e):[]}function Nh(e){return typeof e!=`number`&&typeof e!=`boolean`||typeof e==`number`&&isNaN(e)?($&&D.warn(`[Profiling] Invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`),!1):e===!0||e===!1?!0:e<0||e>1?($&&D.warn(`[Profiling] Invalid sample rate. Sample rate must be between 0 and 1. Got ${e}.`),!1):!0}function Ph(e){return e.samples.length<2?($&&D.log(`[Profiling] Discarding profile because it contains less than 2 samples`),!1):e.frames.length?!0:($&&D.log(`[Profiling] Discarding profile because it contains no frames`),!1)}var Fh=!1,Ih=3e4;function Lh(e){return typeof e==`function`}function Rh(){let e=F.Profiler;if(!Lh(e)){$&&D.log(`[Profiling] Profiling is not supported by this browser, Profiler interface missing on window object.`);return}let t=Math.floor(Ih/10);try{return new e({sampleInterval:10,maxBufferSize:t})}catch{$&&(D.log(`[Profiling] Failed to initialize the Profiling constructor, this is likely due to a missing 'Document-Policy': 'js-profiling' header.`),D.log(`[Profiling] Disabling profiling for current user session.`)),Fh=!0}}function zh(e){if(Fh)return $&&D.log(`[Profiling] Profiling has been disabled for the duration of the current user session.`),!1;if(!e.isRecording())return $&&D.log(`[Profiling] Discarding profile because root span was not sampled.`),!1;let t=T()?.getOptions();if(!t)return $&&D.log(`[Profiling] Profiling disabled, no options found.`),!1;let n=t.profilesSampleRate;return Nh(n)?n?n===!0||Math.random()<n||($&&D.log(`[Profiling] Discarding profile because it's not included in the random sample (sampling rate = ${Number(n)})`),!1):($&&D.log(`[Profiling] Discarding profile because a negative sampling decision was inherited or profileSampleRate is set to 0`),!1):($&&D.warn(`[Profiling] Discarding profile because of invalid sample rate.`),!1)}function Bh(e){if(Fh)return $&&D.log(`[Profiling] Profiling has been disabled for the duration of the current user session as the JS Profiler could not be started.`),!1;if(e.profileLifecycle!==`trace`&&e.profileLifecycle!==`manual`)return $&&D.warn("[Profiling] Session not sampled. Invalid `profileLifecycle` option."),!1;let t=e.profileSessionSampleRate;return Nh(t)?t?Math.random()<=t:($&&D.log(`[Profiling] Discarding profile because profileSessionSampleRate is not defined or set to 0`),!1):($&&D.warn(`[Profiling] Discarding profile because of invalid profileSessionSampleRate.`),!1)}function Vh(e){return e.profilesSampleRate!==void 0}function Hh(e,t,n,r){return Ph(n)?wh(e,t,n,r):null}var Uh=new Map;function Wh(){return Uh.size}function Gh(e){let t=Uh.get(e);return t&&Uh.delete(e),t}function Kh(e,t){if(Uh.set(e,t),Uh.size>30){let e=Uh.keys().next().value;e!==void 0&&Uh.delete(e)}}var qh=new WeakSet;function Jh(e){e.setAttribute(`thread.id`,uh),e.setAttribute(`thread.name`,d
26h)}function Yh(e){let t;Oh(e)&&(t=E()*1e3);let n=Rh();if(!n)return;$&&D.log(`[Profiling] started profiling span: ${x(e).description}`);let r=S(),i=null;O().setContext(`profile`,{profile_id:r,start_timestamp:t}),qh.add(e),Jh(e);async function a(){if(e&&n){if(i){$&&D.log(`[Profiling] profile for:`,x(e).description,`already exists, returning early`);return}return n.stop().then(t=>{if(o&&=(F.clearTimeout(o),void 0),$&&D.log(`[Profiling] stopped profiling of span: ${x(e).description}`),!t){$&&D.log(`[Profiling] profiler returned null profile for: ${x(e).description}`,`this may indicate an overlapping span or a call to stopProfiling with a profile title that was never started`);return}i=t,Kh(r,t)}).catch(e=>{$&&D.log(`[Profiling] error while stopping profiler:`,e)})}}let o=F.setTimeout(()=>{$&&D.log(`[Profiling] max profile duration elapsed, stopping profiling for:`,x(e).description),a()},Ih),s=e.end.bind(e);function c(){return e?(a().then(()=>{s()},()=>{s()}),e):s()}e.end=c}var Xh=6e4,Zh=3e5,Qh=class{constructor(){this._client=void 0,this._profiler=void 0,this._chunkTimer=void 0,this._profilerId=void 0,this._isRunning=!1,this._sessionSampled=!1,this._lifecycleMode=void 0,this._activeRootSpanIds=new Set,this._rootSpanTimeouts=new Map}initialize(e){let t=e.getOptions().profileLifecycle,n=Bh(e.getOptions());$&&D.log(`[Profiling] Initializing profiler (lifecycle='${t}').`),n||$&&D.log(`[Profiling] Session not sampled. Skipping lifecycle profiler initialization.`),this._profilerId=S(),this._client=e,this._sessionSampled=n,this._lifecycleMode=t,t===`trace`&&this._setupTraceLifecycleListeners(e),e.on(`spanStart`,e=>{this._isRunning&&Jh(e)})}start(){if(this._lifecycleMode===`trace`){$&&D.warn('[Profiling] `profileLifecycle` is set to "trace". Calls to `uiProfiler.start()` are ignored in trace mode.');return}if(this._isRunning){$&&D.warn("[Profiling] Profile session is already running, `uiProfiler.start()` is a no-op.");return}if(!this._sessionSampled){$&&D.warn("[Profiling] Session is not sampled, `uiProfiler.start()` is a no-op.");return}this._beginProfiling()}stop(){if(this._lifecycleMode===`trace`){$&&D.warn('[Profiling] `profileLifecycle` is set to "trace". Calls to `uiProfiler.stop()` are ignored in trace mode.');return}if(!this._isRunning){$&&D.warn("[Profiling] Profiler is not running, `uiProfiler.stop()` is a no-op.");return}this._endProfiling()}notifyRootSpanActive(e){if(this._lifecycleMode!==`trace`||!this._sessionSampled)return;let t=e.spanContext().spanId;if(!t||this._activeRootSpanIds.has(t))return;this._registerTraceRootSpan(t);let n=this._activeRootSpanIds.size;n===1&&($&&D.log(`[Profiling] Detected already active root span during setup. Active root spans now:`,n),this._beginProfiling()),this._isRunning&&Jh(e)}_beginProfiling(){if(!this._isRunning){if(this._isRunning=!0,$&&D.log(`[Profiling] Started profiling with profiler ID:`,this._profilerId),dt().setContext(`profile`,{profiler_id:this._profilerId}),this._startProfilerInstance(),!this._profiler){$&&D.log(`[Profiling] Failed to start JS Profiler; stopping.`),this._resetProfilerInfo();return}this._startPeriodicChunking()}}_endProfiling(){this._isRunning&&(this._isRunning=!1,this._chunkTimer&&=(clearTimeout(this._chunkTimer),void 0),this._clearAllRootSpanTimeouts(),this._collectCurrentChunk().catch(e=>{$&&D.error("[Profiling] Failed to collect current profile chunk on `stop()`:",e)}),this._lifecycleMode===`manual`&&dt().setContext(`profile`,{}))}_setupTraceLifecycleListeners(e){e.on(`spanStart`,e=>{if(!this._sessionSampled){$&&D.log(`[Profiling] Span not profiled because of negative sampling decision for user session.`);return}if(e!==o(e))return;if(!e.isRecording()){$&&D.log(`[Profiling] Discarding profile because root span was not sampled.`);return}let t=e.spanContext().spanId;if(!t||this._activeRootSpanIds.has(t))return;this._registerTraceRootSpan(t);let n=this._activeRootSpanIds.size;n===1&&($&&D.log(`[Profiling] Root span ${t} started. Profiling active while there are active root spans (count=${n}).`),this._beginProfiling())}),e.on(`spanEnd`,e=>{if(!this._sessionSampled)return;let t=e.spanContext().spanId;if(!t||!this._activeRootSpanIds.has(t))return;this._activeRootSpanIds.delete(t);let n=this._activeRootSpanIds.size;$&&D.log(`[Profiling] Root span with ID ${t} ended. Will continue profiling for as long as there are active root spans (currently: ${n}).`),n===0&&(this._collectCurrentChunk().catch(e=>{$&&D.error("[Profiling] Failed to collect current profile chunk on last `spanEnd`:",e)}),this._endProfiling())})}_resetProfilerInfo(){this._isRunning=!1,dt().setContext(`profile`,{})}
26_clearAllRootSpanTimeouts(){this._rootSpanTimeouts.forEach(e=>clearTimeout(e)),this._rootSpanTimeouts.clear()}_registerTraceRootSpan(e){this._activeRootSpanIds.add(e);let t=setTimeout(()=>this._onRootSpanTimeout(e),Zh);this._rootSpanTimeouts.set(e,t)}_startProfilerInstance(){if(this._profiler?.stopped===!1)return;let e=Rh();if(!e){$&&D.log(`[Profiling] Failed to start JS Profiler.`);return}this._profiler=e}_startPeriodicChunking(){this._isRunning&&(this._chunkTimer=setTimeout(()=>{if(this._collectCurrentChunk().catch(e=>{$&&D.error(`[Profiling] Failed to collect current profile chunk during periodic chunking:`,e)}),this._isRunning){if(this._startProfilerInstance(),!this._profiler){this._resetProfilerInfo();return}this._startPeriodicChunking()}},Xh))}_onRootSpanTimeout(e){this._rootSpanTimeouts.has(e)&&(this._rootSpanTimeouts.delete(e),this._activeRootSpanIds.has(e)&&($&&D.log(`[Profiling] Reached 5-minute timeout for root span ${e}. You likely started a manual root span that never called \`.end()\`.`),this._activeRootSpanIds.delete(e),this._activeRootSpanIds.size===0&&this._endProfiling()))}async _collectCurrentChunk(){let e=this._profiler;if(this._profiler=void 0,e)try{let t=Th(await e.stop(),this._client,this._profilerId),n=Eh(t);if(`reason`in n){$&&D.log(`[Profiling] Discarding invalid profile chunk (this is probably a bug in the SDK):`,n.reason);return}this._sendProfileChunk(t),$&&D.log(`[Profiling] Collected browser profile chunk.`)}catch(e){$&&D.log(`[Profiling] Error while stopping JS Profiler for chunk:`,e)}}_sendProfileChunk(e){let t=this._client,n=Tn(t.getSdkMetadata?.()),r=t.getDsn(),i=t.getOptions().tunnel,a=pn({event_id:S(),sent_at:new Date().toISOString(),...n&&{sdk:n},...!!i&&r&&{dsn:ve(r)}},[[{type:`profile_chunk`,platform:`javascript`},e]]);t.sendEnvelope(a).then(null,e=>{$&&D.error(`Error while sending profile chunk envelope:`,e)})}},$h=`BrowserProfiling`,eg=M((()=>({name:$h,setup(e){let t=e.getOptions(),n=new Qh;if(!Vh(t)&&!t.profileLifecycle&&(t.profileLifecycle=`manual`),Vh(t)&&!t.profilesSampleRate){$&&D.log(`[Profiling] Profiling disabled, no profiling options found.`);return}let r=C(),i=r&&o(r);if(Vh(t)&&t.profileSessionSampleRate!==void 0&&$&&D.warn("[Profiling] Both legacy profiling (`profilesSampleRate`) and UI profiling settings are defined. `profileSessionSampleRate` has no effect when legacy profiling is enabled."),Vh(t))i&&Oh(i)&&zh(i)&&Yh(i),e.on(`spanStart`,e=>{let t=o(e);e===t?zh(e)&&Yh(e):qh.has(t)&&Jh(e)}),e.on(`beforeEnvelope`,e=>{if(!Wh())return;let t=jh(e);if(!t.length)return;let n=[];for(let e of t){let t=e?.contexts,r=t?.profile?.profile_id,i=t?.profile?.start_timestamp;if(typeof r!=`string`){$&&D.log(`[Profiling] cannot find profile for a span without a profile context`);continue}if(!r){$&&D.log(`[Profiling] cannot find profile for a span without a profile context`);continue}t?.profile&&delete t.profile;let a=Gh(r);if(!a){$&&D.log(`[Profiling] Could not retrieve profile for span: ${r}`);continue}let o=Hh(r,i,a,e);o&&n.push(o)}Ah(e,n)});else{let r=t.profileLifecycle;if(e.on(`startUIProfiler`,()=>n.start()),e.on(`stopUIProfiler`,()=>n.stop()),r===`manual`)n.initialize(e);else if(r===`trace`){if(!k(t)){$&&D.warn("[Profiling] `profileLifecycle` is 'trace' but tracing is disabled. Set a `tracesSampleRate` or `tracesSampler` to enable span tracing.");return}n.initialize(e),i&&n.notifyRootSpanActive(i),F.setTimeout(()=>{let e=C(),t=e&&o(e);t&&n.notifyRootSpanActive(t)},0)}}}}))),tg=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,ng=globalThis,rg=`10.75.0`;function ig(e,t,n=ng){let r=n.__SENTRY__=n.__SENTRY__||{},i=r[rg]=r[`10.75.0`]||{};return i[e]||(i[e]=t())}var ag=`Sentry Logger `,og={};function sg(e){if(!(`console`in ng))return e();let t=ng.console,n={},r=Object.keys(og);r.forEach(e=>{let r=og[e];n[e]=t[e],t[e]=r});try{return e()}finally{r.forEach(e=>{t[e]=n[e]})}}function cg(){hg().enabled=!0}function lg(){hg().enabled=!1}function ug(){return hg().enabled}function dg(...e){mg(`log`,...e)}function fg(...e){mg(`warn`,...e)}function pg(...e){mg(`error`,...e)}function mg(e,...t){tg&&ug()&&sg(()=>{ng.console[e](`${ag}[${e}]:`,...t)})}function hg(){return tg?ig(`loggerSettings`,()=>({enabled:!1})):{enabled:!1}}var gg={enable:cg,disable:lg,isEnabled:ug,log:dg,warn:fg,error:pg},_g;function vg(e){if(_g!==void 0)return _g?_g(e):e();let t=Symbol.for(`__SENTRY_SAFE_RANDOM_ID_WRAPPER__`),n=ng;return t in n&&typeof n[t]==`function`?(_g=n[t],_g(e)):(_g=null,e())}function yg(){return vg(()=>Date.now())}var bg=null;function xg(){let{performance:e}=ng;if(!e?.now)return;let t=3e5,n=vg(()=>e.now()),r=yg(),i=e.timeOrigin;if(typeof i==`number`&&Math.abs(i+n-r)<t)return i;let a=e.timing?.navigationStart;return typeof a==`number`&&Math.abs(a+n-r)<t?a:r-n}function Sg(){return bg===null&&(bg=xg()),bg}var Cg=`sentry.source`,wg=`sentry.origin`;function Tg(e,t,n=[t],r=`npm`){let i=(e._metadata=e._metadata||{}).sdk=e._metadata.sdk||{};i.name||(i.name=`sentry.javascript.${t}`,i.packages=n.map(e=>({name:`${r}:@sentry/${e}`,version:rg})),i.version=rg)}var Eg=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__;function Dg(e){return(F.document?.querySelector(`meta[name=${e}]`))?.getAttribute(`content`)||void 0}function Og(e={}){let t=Zm({...e,instrumentPageLoad:!1});return{...t,afterAllSetup(n){if(t.afterAllSetup?.(n),F.location&&e.instrumentPageLoad!=0){let e=Sg(),{name:t,source:r}=kg();Qm(n,{name:t,startTime:e?e/1e3:void 0,attributes:{[Cg]:r,[wg]:`auto.pageload.astro`,...r===`route`&&{"url.template":t}}})}}}}function kg(){try{let e=Dg(`sentry-route-name`);if(e){let t=decodeURIComponent(e);return Eg&&gg.log(`[Tracing] Using route name from Sentry HTML meta-tag: ${t}`),{name:t,source:`route`}}}catch{}return{name:F.location.pathname,source:`url`}}function Ag(e){let t={defaultIntegrations:jg(e),...e};return Tg(t,`astro`,[`astro`,`browser`]),im(t)}function jg(e){return typeof __SENTRY_TRACING__>`u`||__SENTRY_TRACING__?[...rm(e),Og()]:rm(e)}Ag({dsn:`https://ef63e5fc964429b1c329a533f505bbba@o4507576535810048.ingest.de.sentry.io/4509926499287120`,sendDefaultPii:!0,integrations:[co({levels:[`error`]}),Fa({levels:[`error`]}),om(),eg(),Og()],enableLogs:!0});var Mg={},Ng=new Set,Pg=new WeakSet,Fg=!1,Ig=void 0,Lg=!1;function Rg(e){Lg||(Lg=!0,Fg??=e?.prefetchAll??!1,Ig??=e?.defaultStrategy??`hover`,zg(),Bg(),Vg(),Ug())}function zg(){for(let e of[`touchstart`,`mousedown`])document.addEventListener(e,e=>{let t=e.target.closest(`a`);Kg(t,`tap`)&&Wg(t.href,{ignoreSlowConnection:!0}
26)},{passive:!0})}function Bg(){let e;document.body.addEventListener(`focusin`,e=>{let n=e.target.closest(`a`);Kg(n,`hover`)&&t(n.href)},{passive:!0}),document.body.addEventListener(`focusout`,n,{passive:!0}),Jg(()=>{for(let e of document.getElementsByTagName(`a`))Pg.has(e)||Kg(e,`hover`)&&(Pg.add(e),e.addEventListener(`mouseenter`,e=>t(e.currentTarget.href),{passive:!0}),e.addEventListener(`mouseleave`,n,{passive:!0}))});function t(t){e&&clearTimeout(e),e=setTimeout(()=>{Wg(t)},80)}function n(){e&&=(clearTimeout(e),0)}}function Vg(){let e;Jg(()=>{for(let t of document.getElementsByTagName(`a`))Pg.has(t)||Kg(t,`viewport`)&&(Pg.add(t),e??=Hg(),e.observe(t))})}function Hg(){let e=new WeakMap;return new IntersectionObserver((t,n)=>{for(let r of t){let t=r.target,i=e.get(t);r.isIntersecting?(i&&clearTimeout(i),e.set(t,setTimeout(()=>{n.unobserve(t),e.delete(t),Wg(t.href)},300))):i&&(clearTimeout(i),e.delete(t))}})}function Ug(){Jg(()=>{for(let e of document.getElementsByTagName(`a`))Kg(e,`load`)&&Wg(e.href)})}function Wg(e,t){e=e.replace(/#.*/,``);let n=t?.ignoreSlowConnection??!1;if(Gg(e,n)){if(Ng.add(e),document.createElement(`link`).relList?.supports?.(`prefetch`)){let t=document.createElement(`link`);t.rel=`prefetch`,t.setAttribute(`href`,e),document.head.append(t)}else{let t=new Headers;for(let[e,n]of Object.entries(Mg))t.set(e,n);fetch(e,{priority:`low`,headers:t}).catch(()=>{})}}}function Gg(e,t){if(!navigator.onLine||!t&&qg())return!1;try{let t=new URL(e,location.href);return location.origin===t.origin&&(location.pathname!==t.pathname||location.search!==t.search)&&!Ng.has(e)}catch{}return!1}function Kg(e,t){if(e?.tagName!==`A`)return!1;let n=e.dataset.astroPrefetch;return n===`false`?!1:t===`tap`&&(n!=null||Fg)&&qg()?!0:n==null&&Fg||n===``?t===Ig:n===t}function qg(){if(`connection`in navigator){let e=navigator.connection;return e.saveData||/2g/.test(e.effectiveType)}return!1}function Jg(e){e();let t=!1;document.addEventListener(`astro:page-load`,()=>{if(!t){t=!0;return}e()}),new MutationObserver(t=>{for(let n of t)for(let t of n.addedNodes)if(t instanceof Element&&(t.tagName===`A`||t.querySelector?.(`a`))){e();return}}).observe(document.body,{childList:!0,subtree:!0})}Rg();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.