/* esm.sh - @sentry/core@9.17.0 */
import __Process$ from "/node/process.mjs";
var g=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;var ue="9.17.0";var _=globalThis;function v(){return Te(_),_}function Te(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||ue,t[ue]=t[ue]||{}}function Ae(e,t,n=_){let r=n.__SENTRY__=n.__SENTRY__||{},o=r[ue]=r[ue]||{};return o[e]||(o[e]=t())}var fo=Object.prototype.toString;function $(e){switch(fo.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return V(e,Error)}}function He(e,t){return fo.call(e)===`[object ${t}]`}function xn(e){return He(e,"ErrorEvent")}function ts(e){return He(e,"DOMError")}function ns(e){return He(e,"DOMException")}function be(e){return He(e,"String")}function xe(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function we(e){return e===null||xe(e)||typeof e!="object"&&typeof e!="function"}function W(e){return He(e,"Object")}function Rn(e){return typeof Event<"u"&&V(e,Event)}function Nn(e){return typeof Element<"u"&&V(e,Element)}function On(e){return He(e,"RegExp")}function J(e){return!!(e?.then&&typeof e.then=="function")}function Cn(e){return W(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function V(e,t){try{return e instanceof t}catch{return!1}}function it(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}function wt(e){return typeof Request<"u"&&V(e,Request)}var vn=_,rs=80;function Dn(e,t={}){if(!e)return"<unknown>";try{let n=e,r=5,o=[],i=0,s=0,a=" > ",c=a.length,p,f=Array.isArray(t)?t:t.keyAttrs,u=!Array.isArray(t)&&t.maxStringLength||rs;for(;n&&i++<r&&(p=os(n,f),!(p==="html"||i>1&&s+o.length*c+p.length>=u));)o.push(p),s+=p.length,n=n.parentNode;return o.reverse().join(a)}catch{return"<unknown>"}}function os(e,t){let n=e,r=[];if(!n?.tagName)return"";if(vn.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());let o=t?.length?t.filter(s=>n.getAttribute(s)).map(s=>[s,n.getAttribute(s)]):null;if(o?.length)o.forEach(s=>{r.push(`[${s[0]}="${s[1]}"]`)});else{n.id&&r.push(`#${n.id}`);let s=n.className;if(s&&be(s)){let a=s.split(/\s+/);for(let c of a)r.push(`.${c}`)}}let i=["aria-label","type","name","title","alt"];for(let s of i){let a=n.getAttribute(s);a&&r.push(`[${s}="${a}"]`)}return r.join("")}function is(){try{return vn.document.location.href}catch{return""}}function ss(e){if(!vn.HTMLElement)return null;let t=e,n=5;for(let r=0;r<n;r++){if(!t)return null;if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}var H=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;var as="Sentry Logger ",oe=["debug","info","warn","error","log","assert","trace"],Ge={};function fe(e){if(!("console"in _))return e();let t=_.console,n={},r=Object.keys(Ge);r.forEach(o=>{let i=Ge[o];n[o]=t[o],t[o]=i});try{return e()}finally{r.forEach(o=>{t[o]=n[o]})}}function cs(){let e=!1,t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return H?oe.forEach(n=>{t[n]=(...r)=>{e&&fe(()=>{_.console[n](`${as}[${n}]:`,...r)})}}):oe.forEach(n=>{t[n]=()=>{}}),t}var l=Ae("logger",cs);function Q(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function st(e,t){let n=e,r=n.length;if(r<=150)return n;t>r&&(t=r);let o=Math.max(t-60,0);o<5&&(o=0);let i=Math.min(o+140,r);return i>r-5&&(i=r),i===r&&(o=Math.max(i-140,0)),n=n.slice(o,i),o>0&&(n=`'{snip} ${n}`),i<r&&(n+=" {snip}"),n}function Re(e,t){if(!Array.isArray(e))return"";let n=[];for(let r=0;r<e.length;r++){let o=e[r];try{it(o)?n.push("[VueViewModel]"):n.push(String(o))}catch{n.push("[value cannot be serialized]")}}return n.join(t)}function lo(e,t,n=!1){return be(e)?On(t)?t.test(e):be(t)?n?e===t:e.includes(t):!1:!1}function je(e,t=[],n=!1){return t.some(r=>lo(e,r,n))}function at(e,t,n){if(!(t in e))return;let r=e[t];if(typeof r!="function")return;let o=n(r);typeof o=="function"&&_o(o,r);try{e[t]=o}catch{H&&l.log(`Failed to replace method "${t}" in object`,e)}}function N(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{H&&l.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function _o(e,t){try{let n=t.prototype||{};e.prototype=t.prototype=n,N(e,"__sentry_original__",t)}catch{}}function wn(e){return e.__sentry_original__}function Pt(e){if($(e))return{message:e.message,name:e.name,stack:e.stack,...go(e)};if(Rn(e)){let t={type:e.type,target:mo(e.target),currentTarget:mo(e.currentTarget),...go(e)};return typeof CustomEvent<"u"&&V(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function mo(e){try{return Nn(e)?Dn(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function go(e){if(typeof e=="object"&&e!==null){let t={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function Pn(e,t=40){let n=Object.keys(Pt(e));n.sort();let r=n[0];if(!r)return"[object has no keys]";if(r.length>=t)return Q(r,t);for(let o=n.length;o>0;o--){let i=n.slice(0,o).join(", ");if(!(i.length>t))return o===n.length?i:Q(i,t)}return""}function ps(e){return Mn(e,new Map)}function Mn(e,t){if(e===null||typeof e!="object")return e;let n=t.get(e);if(n!==void 0)return n;if(Array.isArray(e)){let r=[];return t.set(e,r),e.forEach(o=>{r.push(Mn(o,t))}),r}if(us(e)){let r={};return t.set(e,r),Object.keys(e).forEach(i=>{let s=e[i];s!==void 0&&(r[i]=Mn(s,t))}),r}return e}function us(e){let t=e.constructor;return t===Object||t===void 0}function fs(e){let t;switch(!0){case e==null:t=new String(e);break;case(typeof e=="symbol"||typeof e=="bigint"):t=Object(e);break;case we(e):t=new e.constructor(e);break;default:t=e;break}return t}function ds(){let e=_;return e.crypto||e.msCrypto}function x(e=ds()){let t=()=>Math.random()*16;try{if(e?.randomUUID)return e.randomUUID().replace(/-/g,"");e?.getRandomValues&&(t=()=>{let n=new Uint8Array(1);return e.getRandomValues(n),n[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,n=>(n^(t()&15)>>n/4).toString(16))}function ho(e){return e.exception?.values?.[0]}function Ne(e){let{message:t,event_id:n}=e;if(t)return t;let r=ho(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function kn(e,t,n){let r=e.exception=e.exception||{},o=r.values=r.values||[],i=o[0]=o[0]||{};i.value||(i.value=t||""),i.type||(i.type=n||"Error")}function Oe(e,t){let n=ho(e);if(!n)return;let r={type:"generic",handled:!0},o=n.mechanism;if(n.mechanism={...r,...o,...t},t&&"data"in t){let i={...o?.data,...t.data};n.mechanism.data=i}}var ls=/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/;function Un(e){return parseInt(e||"",10)}function ms(e){let t=e.match(ls)||[],n=Un(t[1]),r=Un(t[2]),o=Un(t[3]);return{buildmetadata:t[5],major:isNaN(n)?void 0:n,minor:isNaN(r)?void 0:r,patch:isNaN(o)?void 0:o,prerelease:t[4]}}function gs(e,t,n=5){if(t.lineno===void 0)return;let r=e.length,o=Math.max(Math.min(r-1,t.lineno-1),0);t.pre_context=e.slice(Math.max(0,o-n),o).map(s=>st(s,0));let i=Math.min(r-1,o);t.context_line=st(e[i],t.colno||0),t.post_context=e.slice(Math.min(o+1,r),o+1+n).map(s=>st(s,0))}function Ut(e){if(_s(e))return!0;try{N(e,"__sentry_captured__",!0)}catch{}return!1}function _s(e){try{return e.__sentry_captured__}catch{}}var So=1e3;function de(){return Date.now()/So}function hs(){let{performance:e}=_;if(!e?.now)return de;let t=Date.now()-e.now(),n=e.timeOrigin==null?t:e.timeOrigin;return()=>(n+e.now())/So}var b=hs(),Fn;function Ss(){let{performance:e}=_;if(!e?.now)return[void 0,"none"];let t=3600*1e3,n=e.now(),r=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,i=o<t,s=e.timing?.navigationStart,c=typeof s=="number"?Math.abs(s+n-r):t,p=c<t;return i||p?o<=c?[e.timeOrigin,"timeOrigin"]:[s,"navigationStart"]:[r,"dateNow"]}function Es(){return Fn||(Fn=Ss()),Fn[0]}function Ln(e){let t=b(),n={sid:x(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>Ts(n)};return e&&le(n,e),n}function le(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||b(),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:x()),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 n=e.timestamp-e.started;e.duration=n>=0?n: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 Bn(e,t){let n={};t?n={status:t}:e.status==="ok"&&(n={status:"exited"}),le(e,n)}function Ts(e){return{sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}}}function Ce(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 o in t)Object.prototype.hasOwnProperty.call(t,o)&&(r[o]=Ce(r[o],t[o],n-1));return r}var $n="_sentrySpan";function me(e,t){t?N(e,$n,t):delete e[$n]}function ie(e){return e[$n]}function q(){return x()}function se(){return x().substring(16)}var ys=100,G=class e{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:q(),sampleRand:Math.random()}}clone(){let t=new e;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},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,me(t,ie(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&le(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this._tags={...this._tags,[t]:n},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;let n=typeof t=="function"?t(this):t,r=n instanceof e?n.getScopeData():W(n)?t:void 0,{tags:o,extra:i,user:s,contexts:a,level:c,fingerprint:p=[],propagationContext:f}=r||{};return this._tags={...this._tags,...o},this._extra={...this._extra,...i},this._contexts={...this._contexts,...a},s&&Object.keys(s).length&&(this._user=s),c&&(this._level=c),p.length&&(this._fingerprint=p),f&&(this._propagationContext=f),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,me(this,void 0),this._attachments=[],this.setPropagationContext({traceId:q(),sampleRand:Math.random()}),this._notifyScopeListeners(),this}addBreadcrumb(t,n){let r=typeof n=="number"?n:ys;if(r<=0)return this;let o={timestamp:de(),...t,message:t.message?Q(t.message,2048):t.message};return this._breadcrumbs.push(o),this._breadcrumbs.length>r&&(this._breadcrumbs=this._breadcrumbs.slice(-r),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(t){return this._attachments.push(t),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,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:ie(this)}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=Ce(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,n){let r=n?.event_id||x();if(!this._client)return l.warn("No client configured on scope - will not capture exception!"),r;let o=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:o,...n,event_id:r},this),r}captureMessage(t,n,r){let o=r?.event_id||x();if(!this._client)return l.warn("No client configured on scope - will not capture message!"),o;let i=new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:i,...r,event_id:o},this),o}captureEvent(t,n){let r=n?.event_id||x();return this._client?(this._client.captureEvent(t,{...n,event_id:r},this),r):(l.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}};function Hn(){return Ae("defaultCurrentScope",()=>new G)}function Gn(){return Ae("defaultIsolationScope",()=>new G)}var jn=class{constructor(t,n){let r;t?r=t:r=new G;let o;n?o=n:o=new G,this._stack=[{scope:r}],this._isolationScope=o}withScope(t){let n=this._pushScope(),r;try{r=t(n)}catch(o){throw this._popScope(),o}return J(r)?r.then(o=>(this._popScope(),o),o=>{throw this._popScope(),o}):(this._popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){let t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}};function Ye(){let e=v(),t=Te(e);return t.stack=t.stack||new jn(Hn(),Gn())}function Is(e){return Ye().withScope(e)}function As(e,t){let n=Ye();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function Eo(e){return Ye().withScope(()=>e(Ye().getIsolationScope()))}function To(){return{withIsolationScope:Eo,withScope:Is,withSetScope:As,withSetIsolationScope:(e,t)=>Eo(t),getCurrentScope:()=>Ye().getScope(),getIsolationScope:()=>Ye().getIsolationScope()}}function bs(e){let t=v(),n=Te(t);n.acs=e}function ee(e){let t=Te(e);return t.acs?t.acs:To()}function y(){let e=v();return ee(e).getCurrentScope()}function R(){let e=v();return ee(e).getIsolationScope()}function Yn(){return Ae("globalScope",()=>new G)}function K(...e){let t=v(),n=ee(t);if(e.length===2){let[r,o]=e;return r?n.withSetScope(r,o):n.withScope(o)}return n.withScope(e[0])}function zn(...e){let t=v(),n=ee(t);if(e.length===2){let[r,o]=e;return r?n.withSetIsolationScope(r,o):n.withIsolationScope(o)}return n.withIsolationScope(e[0])}function h(){return y().getClient()}function kt(e){let t=e.getPropagationContext(),{traceId:n,parentSpanId:r,propagationSpanId:o}=t,i={trace_id:n,span_id:o||se()};return r&&(i.parent_span_id=r),i}var P="sentry.source",ct="sentry.sample_rate",Wn="sentry.previous_trace_sample_rate",k="sentry.op",O="sentry.origin",Ft="sentry.idle_span_finish_reason",Lt="sentry.measurement_unit",Bt="sentry.measurement_value",ze="sentry.custom_span_name",We="sentry.profile_id",Je="sentry.exclusive_time",xs="cache.hit",Rs="cache.key",Ns="cache.item_size",Os="http.request.method",Cs="url.full",vs="sentry.link.type";var Jn=0,pt=1,j=2;function yo(e){if(e<400&&e>=100)return{code:1};if(e>=400&&e<500)switch(e){case 401:return{code:2,message:"unauthenticated"};case 403:return{code:2,message:"permission_denied"};case 404:return{code:2,message:"not_found"};case 409:return{code:2,message:"already_exists"};case 413:return{code:2,message:"failed_precondition"};case 429:return{code:2,message:"resource_exhausted"};case 499:return{code:2,message:"cancelled"};default:return{code:2,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:2,message:"unimplemented"};case 503:return{code:2,message:"unavailable"};case 504:return{code:2,message:"deadline_exceeded"};default:return{code:2,message:"internal_error"}}return{code:2,message:"unknown_error"}}function Ve(e,t){e.setAttribute("http.response.status_code",t);let n=yo(t);n.message!=="unknown_error"&&e.setStatus(n)}var Io="_sentryScope",Ao="_sentryIsolationScope";function Vn(e,t,n){e&&(N(e,Ao,n),N(e,Io,t))}function ve(e){return{scope:e[Io],isolationScope:e[Ao]}}function ge(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 ut="sentry-",xo=/^sentry-/,Ro=8192;function ft(e){let t=No(e);if(!t)return;let n=Object.entries(t).reduce((r,[o,i])=>{if(o.match(xo)){let s=o.slice(ut.length);r[s]=i}return r},{});if(Object.keys(n).length>0)return n}function dt(e){if(!e)return;let t=Object.entries(e).reduce((n,[r,o])=>(o&&(n[`${ut}${r}`]=o),n),{});return Oo(t)}function No(e){if(!(!e||!be(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((t,n)=>{let r=bo(n);return Object.entries(r).forEach(([o,i])=>{t[o]=i}),t},{}):bo(e)}function bo(e){return e.split(",").map(t=>t.split("=").map(n=>decodeURIComponent(n.trim()))).reduce((t,[n,r])=>(n&&r&&(t[n]=r),t),{})}function Oo(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((t,[n,r],o)=>{let i=`${encodeURIComponent(n)}=${encodeURIComponent(r)}`,s=o===0?i:`${t},${i}`;return s.length>Ro?(H&&l.warn(`Not adding key: ${n} with val: ${r} to baggage header due to exceeding baggage size limits.`),t):s},"")}var $t=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function Co(e){if(!e)return;let t=e.match($t);if(!t)return;let n;return t[3]==="1"?n=!0:t[3]==="0"&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}function qn(e,t){let n=Co(e),r=ft(t);if(!n?.traceId)return{traceId:q(),sampleRand:Math.random()};let o=Ds(n,r);r&&(r.sample_rand=o.toString());let{traceId:i,parentSpanId:s,parentSampled:a}=n;return{traceId:i,parentSpanId:s,sampled:a,dsc:r||{},sampleRand:o}}function lt(e=q(),t=se(),n){let r="";return n!==void 0&&(r=n?"-1":"-0"),`${e}-${t}${r}`}function Ds(e,t){let n=ge(t?.sample_rand);if(n!==void 0)return n;let r=ge(t?.sample_rate);return r&&e?.parentSampled!==void 0?e.parentSampled?Math.random()*r:r+Math.random()*(1-r):Math.random()}var Ht=0,Gt=1,vo=!1;function Mo(e){let{spanId:t,traceId:n}=e.spanContext(),{data:r,op:o,parent_span_id:i,status:s,origin:a,links:c}=I(e);return{parent_span_id:i,span_id:t,trace_id:n,data:r,op:o,status:s,origin:a,links:c}}function mt(e){let{spanId:t,traceId:n,isRemote:r}=e.spanContext(),o=r?t:I(e).parent_span_id,i=ve(e).scope,s=r?i?.getPropagationContext().propagationSpanId||se():t;return{parent_span_id:o,span_id:s,trace_id:n}}function Xn(e){let{traceId:t,spanId:n}=e.spanContext(),r=_e(e);return lt(t,n,r)}function jt(e){if(e&&e.length>0)return e.map(({context:{spanId:t,traceId:n,traceFlags:r,...o},attributes:i})=>({span_id:t,trace_id:n,sampled:r===Gt,attributes:i,...o}))}function ae(e){return typeof e=="number"?Do(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?Do(e.getTime()):b()}function Do(e){return e>9999999999?e/1e3:e}function I(e){if(ws(e))return e.getSpanJSON();let{spanId:t,traceId:n}=e.spanContext();if(Ms(e)){let{attributes:r,startTime:o,name:i,endTime:s,parentSpanId:a,status:c,links:p}=e;return{span_id:t,trace_id:n,data:r,description:i,parent_span_id:a,start_timestamp:ae(o),timestamp:ae(s)||void 0,status:Yt(c),op:r[k],origin:r[O],links:jt(p)}}return{span_id:t,trace_id:n,start_timestamp:0,data:{}}}function Ms(e){let t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function ws(e){return typeof e.getSpanJSON=="function"}function _e(e){let{traceFlags:t}=e.spanContext();return t===Gt}function Yt(e){if(!(!e||e.code===0))return e.code===1?"ok":e.message||"unknown_error"}var Pe="_sentryChildSpans",Kn="_sentryRootSpan";function zt(e,t){let n=e[Kn]||e;N(t,Kn,n),e[Pe]?e[Pe].add(t):N(e,Pe,new Set([t]))}function wo(e,t){e[Pe]&&e[Pe].delete(t)}function Ue(e){let t=new Set;function n(r){if(!t.has(r)&&_e(r)){t.add(r);let o=r[Pe]?Array.from(r[Pe]):[];for(let i of o)n(i)}}return n(e),Array.from(t)}function C(e){return e[Kn]||e}function X(){let e=v(),t=ee(e);return t.getActiveSpan?t.getActiveSpan():ie(y())}function gt(){vo||(fe(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly.")}),vo=!0)}function Ps(e,t){e.updateName(t),e.setAttributes({[P]:"custom",[ze]:t})}var _t="?",Po=/\(error: (.*)\)/,Uo=/captureMessage|captureException/;function ko(...e){let t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,o=0)=>{let i=[],s=n.split(`
`);for(let a=r;a<s.length;a++){let c=s[a];if(c.length>1024)continue;let p=Po.test(c)?c.replace(Po,"$1"):c;if(!p.match(/\S*Error: /)){for(let f of t){let u=f(p);if(u){i.push(u);break}}if(i.length>=50+o)break}}return Fo(i.slice(o))}}function Us(e){return Array.isArray(e)?ko(...e):e}function Fo(e){if(!e.length)return[];let t=Array.from(e);return/sentryWrapped/.test(Wt(t).function||"")&&t.pop(),t.reverse(),Uo.test(Wt(t).function||"")&&(t.pop(),Uo.test(Wt(t).function||"")&&t.pop()),t.slice(0,50).map(n=>({...n,filename:n.filename||Wt(t).filename,function:n.function||"?"}))}function Wt(e){return e[e.length-1]||{}}var Zn="<anonymous>";function ht(e){try{return!e||typeof e!="function"?Zn:e.name||Zn}catch{return Zn}}function qe(e){let t=e.exception;if(t){let n=[];try{return t.values.forEach(r=>{r.stacktrace.frames&&n.push(...r.stacktrace.frames)}),n}catch{return}}}var Ke={},Lo={};function he(e,t){Ke[e]=Ke[e]||[],Ke[e].push(t)}function ks(){Object.keys(Ke).forEach(e=>{Ke[e]=void 0})}function Se(e,t){if(!Lo[e]){Lo[e]=!0;try{t()}catch(n){H&&l.error(`Error while instrumenting ${e}`,n)}}}function te(e,t){let n=e&&Ke[e];if(n)for(let r of n)try{r(t)}catch(o){H&&l.error(`Error while triggering instrumentation handler.
Type: ${e}
Name: ${ht(r)}
Error:`,o)}}var Qn=null;function er(e){let t="error";he(t,e),Se(t,Fs)}function Fs(){Qn=_.onerror,_.onerror=function(e,t,n,r,o){return te("error",{column:r,error:o,line:n,msg:e,url:t}),Qn?Qn.apply(this,arguments):!1},_.onerror.__SENTRY_INSTRUMENTED__=!0}var tr=null;function nr(e){let t="unhandledrejection";he(t,e),Se(t,Ls)}function Ls(){tr=_.onunhandledrejection,_.onunhandledrejection=function(e){return te("unhandledrejection",e),tr?tr.apply(this,arguments):!0},_.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}var Bo=!1;function or(){Bo||(Bo=!0,er(rr),nr(rr))}function rr(){let e=X(),t=e&&C(e);if(t){let n="internal_error";g&&l.log(`[Tracing] Root span: ${n} -> Global error occurred`),t.setStatus({code:2,message:n})}}rr.tag="sentry_tracingErrorCallback";function Z(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;let t=e||h()?.getOptions();return!!t&&(t.tracesSampleRate!=null||!!t.tracesSampler)}var Bs=Z;var ke="production";var $o="_frozenDsc";function Xe(e,t){N(e,$o,t)}function ir(e,t){let n=t.getOptions(),{publicKey:r}=t.getDsn()||{},o={environment:n.environment||ke,release:n.release,public_key:r,trace_id:e};return t.emit("createDsc",o),o}function Ze(e,t){let n=t.getPropagationContext();return n.dsc||ir(n.traceId,e)}function D(e){let t=h();if(!t)return{};let n=C(e),r=I(n),o=r.data,i=n.spanContext().traceState,s=i?.get("sentry.sample_rate")??o[ct]??o[Wn];function a(S){return(typeof s=="number"||typeof s=="string")&&(S.sample_rate=`${s}`),S}let c=n[$o];if(c)return a(c);let p=i?.get("sentry.dsc"),f=p&&ft(p);if(f)return a(f);let u=ir(e.spanContext().traceId,t),m=o[P],d=r.description;return m!=="url"&&d&&(u.transaction=d),Z()&&(u.sampled=String(_e(n)),u.sample_rand=i?.get("sentry.sample_rand")??ve(n).scope?.getPropagationContext().sampleRand.toString()),a(u),t.emit("createDsc",u,n),u}function $s(e){let t=D(e);return dt(t)}var Y=class{constructor(t={}){this._traceId=t.traceId||q(),this._spanId=t.spanId||se()}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:Ht}}end(t){}setAttribute(t,n){return this}setAttributes(t){return this}setStatus(t){return this}updateName(t){return this}isRecording(){return!1}addEvent(t,n,r){return this}addLink(t){return this}addLinks(t){return this}recordException(t,n){}};function Jt(e,t,n=()=>{}){let r;try{r=e()}catch(o){throw t(o),n(),o}return Hs(r,t,n)}function Hs(e,t,n){return J(e)?e.then(r=>(n(),r),r=>{throw t(r),n(),r}):(n(),e)}function sr(e){if(!g)return;let{description:t="< unknown name >",op:n="< unknown op >",parent_span_id:r}=I(e),{spanId:o}=e.spanContext(),i=_e(e),s=C(e),a=s===e,c=`[Tracing] Starting ${i?"sampled":"unsampled"} ${a?"root ":""}span`,p=[`op: ${n}`,`name: ${t}`,`ID: ${o}`];if(r&&p.push(`parent ID: ${r}`),!a){let{op:f,description:u}=I(s);p.push(`root ID: ${s.spanContext().spanId}`),f&&p.push(`root op: ${f}`),u&&p.push(`root description: ${u}`)}l.log(`${c}
  ${p.join(`
  `)}`)}function ar(e){if(!g)return;let{description:t="< unknown name >",op:n="< unknown op >"}=I(e),{spanId:r}=e.spanContext(),i=C(e)===e,s=`[Tracing] Finishing "${n}" ${i?"root ":""}span "${t}" with ID ${r}`;l.log(s)}function cr(e,t,n){if(!Z(e))return[!1];let r,o;typeof e.tracesSampler=="function"?(o=e.tracesSampler({...t,inheritOrSampleWith:a=>typeof t.parentSampleRate=="number"?t.parentSampleRate:typeof t.parentSampled=="boolean"?Number(t.parentSampled):a}),r=!0):t.parentSampled!==void 0?o=t.parentSampled:typeof e.tracesSampleRate<"u"&&(o=e.tracesSampleRate,r=!0);let i=ge(o);if(i===void 0)return g&&l.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(o)} of type ${JSON.stringify(typeof o)}.`),[!1];if(!i)return g&&l.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,i,r];let s=n<i;return s||g&&l.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(o)})`),[s,i,r]}var Gs=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function js(e){return e==="http"||e==="https"}function z(e,t=!1){let{host:n,path:r,pass:o,port:i,projectId:s,protocol:a,publicKey:c}=e;return`${a}://${c}${t&&o?`:${o}`:""}@${n}${i?`:${i}`:""}/${r&&`${r}/`}${s}`}function Vt(e){let t=Gs.exec(e);if(!t){fe(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}let[n,r,o="",i="",s="",a=""]=t.slice(1),c="",p=a,f=p.split("/");if(f.length>1&&(c=f.slice(0,-1).join("/"),p=f.pop()),p){let u=p.match(/^\d+/);u&&(p=u[0])}return Ho({host:i,pass:o,path:c,projectId:p,port:s,protocol:n,publicKey:r})}function Ho(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function Ys(e){if(!H)return!0;let{port:t,projectId:n,protocol:r}=e;return["protocol","publicKey","host","projectId"].find(s=>e[s]?!1:(l.error(`Invalid Sentry Dsn: ${s} missing`),!0))?!1:n.match(/^\d+$/)?js(r)?t&&isNaN(parseInt(t,10))?(l.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(l.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(l.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function St(e){let t=typeof e=="string"?Vt(e):Ho(e);if(!(!t||!Ys(t)))return t}function M(e,t=100,n=1/0){try{return pr("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function qt(e,t=3,n=100*1024){let r=M(e,t);return Vs(r)>n?qt(e,t-1,n):r}function pr(e,t,n=1/0,r=1/0,o=Ks()){let[i,s]=o;if(t==null||["boolean","string"].includes(typeof t)||typeof t=="number"&&Number.isFinite(t))return t;let a=zs(e,t);if(!a.startsWith("[object "))return a;if(t.__sentry_skip_normalization__)return t;let c=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(c===0)return a.replace("object ","");if(i(t))return"[Circular ~]";let p=t;if(p&&typeof p.toJSON=="function")try{let d=p.toJSON();return pr("",d,c-1,r,o)}catch{}let f=Array.isArray(t)?[]:{},u=0,m=Pt(t);for(let d in m){if(!Object.prototype.hasOwnProperty.call(m,d))continue;if(u>=r){f[d]="[MaxProperties ~]";break}let S=m[d];f[d]=pr(d,S,c-1,r,o),u++}return s(t),f}function zs(e,t){try{if(e==="domain"&&t&&typeof t=="object"&&t._events)return"[Domain]";if(e==="domainEmitter")return"[DomainEmitter]";if(typeof globalThis<"u"&&t===globalThis)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(it(t))return"[VueViewModel]";if(Cn(t))return"[SyntheticEvent]";if(typeof t=="number"&&!Number.isFinite(t))return`[${t}]`;if(typeof t=="function")return`[Function: ${ht(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;let n=Ws(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function Ws(e){let t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:"null prototype"}function Js(e){return~-encodeURI(e).split(/%..|./).length}function Vs(e){return Js(JSON.stringify(e))}function qs(e,t){let n=t.replace(/\\/g,"/").replace(/[|\\{}()[\]^$+*?.]/g,"\\$&"),r=e;try{r=decodeURI(e)}catch{}return r.replace(/\\/g,"/").replace(/webpack:\/?/g,"").replace(new RegExp(`(file://)?/*${n}/*`,"ig"),"app:///")}function Ks(){let e=new WeakSet;function t(r){return e.has(r)?!0:(e.add(r),!1)}function n(r){e.delete(r)}return[t,n]}function F(e,t=[]){return[e,t]}function ur(e,t){let[n,r]=e;return[n,[...r,t]]}function ce(e,t){let n=e[1];for(let r of n){let o=r[0].type;if(t(r,o))return!0}return!1}function Xt(e,t){return ce(e,(n,r)=>t.includes(r))}function Kt(e){let t=Te(_);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e)}function Xs(e){let t=Te(_);return t.decodePolyfill?t.decodePolyfill(e):new TextDecoder().decode(e)}function fr(e){let[t,n]=e,r=JSON.stringify(t);function o(i){typeof r=="string"?r=typeof i=="string"?r+i:[Kt(r),i]:r.push(typeof i=="string"?Kt(i):i)}for(let i of n){let[s,a]=i;if(o(`
${JSON.stringify(s)}
`),typeof a=="string"||a instanceof Uint8Array)o(a);else{let c;try{c=JSON.stringify(a)}catch{c=JSON.stringify(M(a))}o(c)}}return typeof r=="string"?r:Zs(r)}function Zs(e){let t=e.reduce((o,i)=>o+i.length,0),n=new Uint8Array(t),r=0;for(let o of e)n.set(o,r),r+=o.length;return n}function Qs(e){let t=typeof e=="string"?Kt(e):e;function n(s){let a=t.subarray(0,s);return t=t.subarray(s+1),a}function r(){let s=t.indexOf(10);return s<0&&(s=t.length),JSON.parse(Xs(n(s)))}let o=r(),i=[];for(;t.length;){let s=r(),a=typeof s.length=="number"?s.length:void 0;i.push([s,a?n(a):r()])}return[o,i]}function dr(e){return[{type:"span"},e]}function lr(e){let t=typeof e.data=="string"?Kt(e.data):e.data;return[{type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}var ea={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",raw_security:"security",log:"log_item"};function Zt(e){return ea[e]}function Qt(e){if(!e?.sdk)return;let{name:t,version:n}=e.sdk;return{name:t,version:n}}function mr(e,t,n,r){let o=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:z(r)},...o&&{trace:o}}}function ta(e,t){return t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]]),e}function gr(e,t,n,r){let o=Qt(n),i={sent_at:new Date().toISOString(),...o&&{sdk:o},...!!r&&t&&{dsn:z(t)}},s="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return F(i,[s])}function _r(e,t,n,r){let o=Qt(n),i=e.type&&e.type!=="replay_event"?e.type:"event";ta(e,n?.sdk);let s=mr(e,o,r,t);return delete e.sdkProcessingMetadata,F(s,[[{type:i},e]])}function hr(e,t){function n(f){return!!f.trace_id&&!!f.public_key}let r=D(e[0]),o=t?.getDsn(),i=t?.getOptions().tunnel,s={sent_at:new Date().toISOString(),...n(r)&&{trace:r},...!!i&&o&&{dsn:z(o)}},a=t?.getOptions().beforeSendSpan,c=a?f=>{let u=I(f),m=a(u);return m||(gt(),u)}:I,p=[];for(let f of e){let u=c(f);u&&p.push(dr(u))}return F(s,p)}function na(e,t,n,r=X()){let o=r&&C(r);o&&(g&&l.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${n}`),o.addEvent(e,{[Bt]:t,[Lt]:n}))}function en(e){if(!e||e.length===0)return;let t={};return e.forEach(n=>{let r=n.attributes||{},o=r[Lt],i=r[Bt];typeof o=="string"&&typeof i=="number"&&(t[n.name]={value:i,unit:o})}),t}var Go=1e3,Fe=class{constructor(t={}){this._traceId=t.traceId||q(),this._spanId=t.spanId||se(),this._startTime=t.startTimestamp||b(),this._links=t.links,this._attributes={},this.setAttributes({[O]:"manual",[k]:t.op,...t.attributes}),this._name=t.name,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.endTimestamp&&(this._endTime=t.endTimestamp),this._events=[],this._isStandaloneSpan=t.isStandalone,this._endTime&&this._onSpanEnded()}addLink(t){return this._links?this._links.push(t):this._links=[t],this}addLinks(t){return this._links?this._links.push(...t):this._links=t,this}recordException(t,n){}spanContext(){let{_spanId:t,_traceId:n,_sampled:r}=this;return{spanId:t,traceId:n,traceFlags:r?Gt:Ht}}setAttribute(t,n){return n===void 0?delete this._attributes[t]:this._attributes[t]=n,this}setAttributes(t){return Object.keys(t).forEach(n=>this.setAttribute(n,t[n])),this}updateStartTime(t){this._startTime=ae(t)}setStatus(t){return this._status=t,this}updateName(t){return this._name=t,this.setAttribute(P,"custom"),this}end(t){this._endTime||(this._endTime=ae(t),ar(this),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[k],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:Yt(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[O],profile_id:this._attributes[We],exclusive_time:this._attributes[Je],measurements:en(this._events),is_segment:this._isStandaloneSpan&&C(this)===this||void 0,segment_id:this._isStandaloneSpan?C(this).spanContext().spanId:void 0,links:jt(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(t,n,r){g&&l.log("[Tracing] Adding an event to span:",t);let o=jo(n)?n:r||b(),i=jo(n)?{}:n||{},s={name:t,time:ae(o),attributes:i};return this._events.push(s),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){let t=h();if(t&&t.emit("spanEnd",this),!(this._isStandaloneSpan||this===C(this)))return;if(this._isStandaloneSpan){this._sampled?oa(hr([this],t)):(g&&l.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),t&&t.recordDroppedEvent("sample_rate","span"));return}let r=this._convertSpanToTransaction();r&&(ve(this).scope||y()).captureEvent(r)}_convertSpanToTransaction(){if(!Yo(I(this)))return;this._name||(g&&l.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");let{scope:t,isolationScope:n}=ve(this);if(this._sampled!==!0)return;let o=Ue(this).filter(p=>p!==this&&!ra(p)).map(p=>I(p)).filter(Yo),i=this._attributes[P];delete this._attributes[ze],o.forEach(p=>{delete p.data[ze]});let s={contexts:{trace:Mo(this)},spans:o.length>Go?o.sort((p,f)=>p.start_timestamp-f.start_timestamp).slice(0,Go):o,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:n,dynamicSamplingContext:D(this)},...i&&{transaction_info:{source:i}}},a=en(this._events);return a&&Object.keys(a).length&&(g&&l.log("[Measurements] Adding measurements to transaction event",JSON.stringify(a,void 0,2)),s.measurements=a),s}};function jo(e){return e&&typeof e=="number"||e instanceof Date||Array.isArray(e)}function Yo(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}function ra(e){return e instanceof Fe&&e.isStandaloneSpan()}function oa(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)}var Sr="__SENTRY_SUPPRESS_TRACING__";function De(e,t){let n=Tt();if(n.startSpan)return n.startSpan(e,t);let r=yr(e),{forceTransaction:o,parentSpan:i,scope:s}=e,a=s?.clone();return K(a,()=>Wo(i)(()=>{let p=y(),f=Ir(p),m=e.onlyIfParent&&!f?new Y:Tr({parentSpan:f,spanArguments:r,forceTransaction:o,scope:p});return me(p,m),Jt(()=>t(m),()=>{let{status:d}=I(m);m.isRecording()&&(!d||d==="ok")&&m.setStatus({code:2,message:"internal_error"})},()=>{m.end()})}))}function Er(e,t){let n=Tt();if(n.startSpanManual)return n.startSpanManual(e,t);let r=yr(e),{forceTransaction:o,parentSpan:i,scope:s}=e,a=s?.clone();return K(a,()=>Wo(i)(()=>{let p=y(),f=Ir(p),m=e.onlyIfParent&&!f?new Y:Tr({parentSpan:f,spanArguments:r,forceTransaction:o,scope:p});return me(p,m),Jt(()=>t(m,()=>m.end()),()=>{let{status:d}=I(m);m.isRecording()&&(!d||d==="ok")&&m.setStatus({code:2,message:"internal_error"})})}))}function Et(e){let t=Tt();if(t.startInactiveSpan)return t.startInactiveSpan(e);let n=yr(e),{forceTransaction:r,parentSpan:o}=e;return(e.scope?s=>K(e.scope,s):o!==void 0?s=>Qe(o,s):s=>s())(()=>{let s=y(),a=Ir(s);return e.onlyIfParent&&!a?new Y:Tr({parentSpan:a,spanArguments:n,forceTransaction:r,scope:s})})}var ia=(e,t)=>{let n=v(),r=ee(n);if(r.continueTrace)return r.continueTrace(e,t);let{sentryTrace:o,baggage:i}=e;return K(s=>{let a=qn(o,i);return s.setPropagationContext(a),t()})};function Qe(e,t){let n=Tt();return n.withActiveSpan?n.withActiveSpan(e,t):K(r=>(me(r,e||void 0),t(r)))}function sa(e){let t=Tt();return t.suppressTracing?t.suppressTracing(e):K(n=>(n.setSDKProcessingMetadata({[Sr]:!0}),e()))}function aa(e){return K(t=>(t.setPropagationContext({traceId:q(),sampleRand:Math.random()}),g&&l.info(`Starting a new trace with id ${t.getPropagationContext().traceId}`),Qe(null,e)))}function Tr({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){if(!Z()){let s=new Y;if(n||!e){let a={sampled:"false",sample_rate:"0",transaction:t.name,...D(s)};Xe(s,a)}return s}let o=R(),i;if(e&&!n)i=ca(e,r,t),zt(e,i);else if(e){let s=D(e),{traceId:a,spanId:c}=e.spanContext(),p=_e(e);i=zo({traceId:a,parentSpanId:c,...t},r,p),Xe(i,s)}else{let{traceId:s,dsc:a,parentSpanId:c,sampled:p}={...o.getPropagationContext(),...r.getPropagationContext()};i=zo({traceId:s,parentSpanId:c,...t},r,p),a&&Xe(i,a)}return sr(i),Vn(i,r,o),i}function yr(e){let n={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){let r={...n};return r.startTimestamp=ae(e.startTime),delete r.startTime,r}return n}function Tt(){let e=v();return ee(e)}function zo(e,t,n){let r=h(),o=r?.getOptions()||{},{name:i=""}=e,s={spanAttributes:{...e.attributes},spanName:i,parentSampled:n};r?.emit("beforeSampling",s,{decision:!1});let a=s.parentSampled??n,c=s.spanAttributes,p=t.getPropagationContext(),[f,u,m]=t.getScopeData().sdkProcessingMetadata[Sr]?[!1]:cr(o,{name:i,parentSampled:a,attributes:c,parentSampleRate:ge(p.dsc?.sample_rate)},p.sampleRand),d=new Fe({...e,attributes:{[P]:"custom",[ct]:u!==void 0&&m?u:void 0,...c},sampled:f});return!f&&r&&(g&&l.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."),r.recordDroppedEvent("sample_rate","transaction")),r&&r.emit("spanStart",d),d}function ca(e,t,n){let{spanId:r,traceId:o}=e.spanContext(),i=t.getScopeData().sdkProcessingMetadata[Sr]?!1:_e(e),s=i?new Fe({...n,parentSpanId:r,traceId:o,sampled:i}):new Y({traceId:o});zt(e,s);let a=h();return a&&(a.emit("spanStart",s),n.endTimestamp&&a.emit("spanEnd",s)),s}function Ir(e){let t=ie(e);if(!t)return;let n=h();return(n?n.getOptions():{}).parentSpanIsAlwaysRootSpan?C(t):t}function Wo(e){return e!==void 0?t=>Qe(e,t):t=>t()}var tn={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},pa="heartbeatFailed",ua="idleTimeout",fa="finalTimeout",da="externalFinish";function la(e,t={}){let n=new Map,r=!1,o,i=da,s=!t.disableAutoFinish,a=[],{idleTimeout:c=tn.idleTimeout,finalTimeout:p=tn.finalTimeout,childSpanTimeout:f=tn.childSpanTimeout,beforeSpanEnd:u}=t,m=h();if(!m||!Z()){let T=new Y,w={sample_rate:"0",sampled:"false",...D(T)};return Xe(T,w),T}let d=y(),S=X(),E=ma(e);E.end=new Proxy(E.end,{apply(T,w,rt){if(u&&u(E),w instanceof Y)return;let[po,...Ot]=rt,ot=po||b(),U=ae(ot),Ct=Ue(E).filter(Ie=>Ie!==E);if(!Ct.length)return Me(U),Reflect.apply(T,w,[U,...Ot]);let vt=Ct.map(Ie=>I(Ie).timestamp).filter(Ie=>!!Ie),Dt=vt.length?Math.max(...vt):void 0,$e=I(E).start_timestamp,Mt=Math.min($e?$e+p/1e3:1/0,Math.max($e||-1/0,Math.min(U,Dt||1/0)));return Me(Mt),Reflect.apply(T,w,[Mt,...Ot])}});function A(){o&&(clearTimeout(o),o=void 0)}function B(T){A(),o=setTimeout(()=>{!r&&n.size===0&&s&&(i=ua,E.end(T))},c)}function re(T){o=setTimeout(()=>{!r&&s&&(i=pa,E.end(T))},f)}function Nt(T){A(),n.set(T,!0);let w=b();re(w+f/1e3)}function Be(T){if(n.has(T)&&n.delete(T),n.size===0){let w=b();B(w+c/1e3)}}function Me(T){r=!0,n.clear(),a.forEach(U=>U()),me(d,S);let w=I(E),{start_timestamp:rt}=w;if(!rt)return;w.data[Ft]||E.setAttribute(Ft,i),l.log(`[Tracing] Idle span "${w.op}" finished`);let Ot=Ue(E).filter(U=>U!==E),ot=0;Ot.forEach(U=>{U.isRecording()&&(U.setStatus({code:2,message:"cancelled"}),U.end(T),g&&l.log("[Tracing] Cancelling span since span ended early",JSON.stringify(U,void 0,2)));let Ct=I(U),{timestamp:vt=0,start_timestamp:Dt=0}=Ct,$e=Dt<=T,Mt=(p+c)/1e3,Ie=vt-Dt<=Mt;if(g){let uo=JSON.stringify(U,void 0,2);$e?Ie||l.log("[Tracing] Discarding span since it finished after idle span final timeout",uo):l.log("[Tracing] Discarding span since it happened after idle span was finished",uo)}(!Ie||!$e)&&(wo(E,U),ot++)}),ot>0&&E.setAttribute("sentry.idle_span_discarded_spans",ot)}return a.push(m.on("spanStart",T=>{if(r||T===E||I(T).timestamp)return;Ue(E).includes(T)&&Nt(T.spanContext().spanId)})),a.push(m.on("spanEnd",T=>{r||Be(T.spanContext().spanId)})),a.push(m.on("idleSpanEnableAutoFinish",T=>{T===E&&(s=!0,B(),n.size&&re())})),t.disableAutoFinish||B(),setTimeout(()=>{r||(E.setStatus({code:2,message:"deadline_exceeded"}),i=fa,E.end())},p),E}function ma(e){let t=Et(e);return me(y(),t),g&&l.log("[Tracing] Started span is an idle span"),t}var ye;(function(e){e[e.PENDING=0]="PENDING";let n=1;e[e.RESOLVED=n]="RESOLVED";let r=2;e[e.REJECTED=r]="REJECTED"})(ye||(ye={}));function ne(e){return new pe(t=>{t(e)})}function yt(e){return new pe((t,n)=>{n(e)})}var pe=class e{constructor(t){this._state=ye.PENDING,this._handlers=[],this._runExecutor(t)}then(t,n){return new e((r,o)=>{this._handlers.push([!1,i=>{if(!t)r(i);else try{r(t(i))}catch(s){o(s)}},i=>{if(!n)o(i);else try{r(n(i))}catch(s){o(s)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new e((n,r)=>{let o,i;return this.then(s=>{i=!1,o=s,t&&t()},s=>{i=!0,o=s,t&&t()}).then(()=>{if(i){r(o);return}n(o)})})}_executeHandlers(){if(this._state===ye.PENDING)return;let t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===ye.RESOLVED&&n[1](this._value),this._state===ye.REJECTED&&n[2](this._value),n[0]=!0)})}_runExecutor(t){let n=(i,s)=>{if(this._state===ye.PENDING){if(J(s)){s.then(r,o);return}this._state=i,this._value=s,this._executeHandlers()}},r=i=>{n(ye.RESOLVED,i)},o=i=>{n(ye.REJECTED,i)};try{t(r,o)}catch(i){o(i)}}};function It(e,t,n,r=0){return new pe((o,i)=>{let s=e[r];if(t===null||typeof s!="function")o(t);else{let a=s({...t},n);g&&s.id&&a===null&&l.log(`Event processor "${s.id}" dropped event`),J(a)?a.then(c=>It(e,c,n,r+1).then(o)).then(null,i):It(e,a,n,r+1).then(o).then(null,i)}})}var nn,Jo,rn;function on(e){let t=_._sentryDebugIds;if(!t)return{};let n=Object.keys(t);return rn&&n.length===Jo||(Jo=n.length,rn=n.reduce((r,o)=>{nn||(nn={});let i=nn[o];if(i)r[i[0]]=i[1];else{let s=e(o);for(let a=s.length-1;a>=0;a--){let p=s[a]?.filename,f=t[o];if(p&&f){r[p]=f,nn[o]=[p,f];break}}}return r},{})),rn}function ga(e,t){let n=on(e);if(!n)return[];let r=[];for(let o of t)o&&n[o]&&r.push({type:"sourcemap",code_file:o,debug_id:n[o]});return r}function Ar(e,t){let{fingerprint:n,span:r,breadcrumbs:o,sdkProcessingMetadata:i}=t;_a(e,t),r&&Ea(e,r),Ta(e,n),ha(e,o),Sa(e,i)}function an(e,t){let{extra:n,tags:r,user:o,contexts:i,level:s,sdkProcessingMetadata:a,breadcrumbs:c,fingerprint:p,eventProcessors:f,attachments:u,propagationContext:m,transactionName:d,span:S}=t;sn(e,"extra",n),sn(e,"tags",r),sn(e,"user",o),sn(e,"contexts",i),e.sdkProcessingMetadata=Ce(e.sdkProcessingMetadata,a,2),s&&(e.level=s),d&&(e.transactionName=d),S&&(e.span=S),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),p.length&&(e.fingerprint=[...e.fingerprint,...p]),f.length&&(e.eventProcessors=[...e.eventProcessors,...f]),u.length&&(e.attachments=[...e.attachments,...u]),e.propagationContext={...e.propagationContext,...m}}function sn(e,t,n){e[t]=Ce(e[t],n,1)}function _a(e,t){let{extra:n,tags:r,user:o,contexts:i,level:s,transactionName:a}=t;Object.keys(n).length&&(e.extra={...n,...e.extra}),Object.keys(r).length&&(e.tags={...r,...e.tags}),Object.keys(o).length&&(e.user={...o,...e.user}),Object.keys(i).length&&(e.contexts={...i,...e.contexts}),s&&(e.level=s),a&&e.type!=="transaction"&&(e.transaction=a)}function ha(e,t){let n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function Sa(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function Ea(e,t){e.contexts={trace:mt(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:D(t),...e.sdkProcessingMetadata};let n=C(t),r=I(n).description;r&&!e.transaction&&e.type==="transaction"&&(e.transaction=r)}function Ta(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint.length||delete e.fingerprint}function br(e,t,n,r,o,i){let{normalizeDepth:s=3,normalizeMaxBreadth:a=1e3}=e,c={...t,event_id:t.event_id||n.event_id||x(),timestamp:t.timestamp||de()},p=n.integrations||e.integrations.map(A=>A.name);ya(c,e),ba(c,p),o&&o.emit("applyFrameMetadata",t),t.type===void 0&&Ia(c,e.stackParser);let f=Ra(r,n.captureContext);n.mechanism&&Oe(c,n.mechanism);let u=o?o.getEventProcessors():[],m=Yn().getScopeData();if(i){let A=i.getScopeData();an(m,A)}if(f){let A=f.getScopeData();an(m,A)}let d=[...n.attachments||[],...m.attachments];d.length&&(n.attachments=d),Ar(c,m);let S=[...u,...m.eventProcessors];return It(S,c,n).then(A=>(A&&Aa(A),typeof s=="number"&&s>0?xa(A,s,a):A))}function ya(e,t){let{environment:n,release:r,dist:o,maxValueLength:i=250}=t;e.environment=e.environment||n||ke,!e.release&&r&&(e.release=r),!e.dist&&o&&(e.dist=o);let s=e.request;s?.url&&(s.url=Q(s.url,i))}function Ia(e,t){let n=on(t);e.exception?.values?.forEach(r=>{r.stacktrace?.frames?.forEach(o=>{o.filename&&(o.debug_id=n[o.filename])})})}function Aa(e){let t={};if(e.exception?.values?.forEach(r=>{r.stacktrace?.frames?.forEach(o=>{o.debug_id&&(o.abs_path?t[o.abs_path]=o.debug_id:o.filename&&(t[o.filename]=o.debug_id),delete o.debug_id)})}),Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];let n=e.debug_meta.images;Object.entries(t).forEach(([r,o])=>{n.push({type:"sourcemap",code_file:r,debug_id:o})})}function ba(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function xa(e,t,n){if(!e)return null;let r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(o=>({...o,...o.data&&{data:M(o.data,t,n)}}))},...e.user&&{user:M(e.user,t,n)},...e.contexts&&{contexts:M(e.contexts,t,n)},...e.extra&&{extra:M(e.extra,t,n)}};return e.contexts?.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=M(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(o=>({...o,...o.data&&{data:M(o.data,t,n)}}))),e.contexts?.flags&&r.contexts&&(r.contexts.flags=M(e.contexts.flags,3,n)),r}function Ra(e,t){if(!t)return e;let n=e?e.clone():new G;return n.update(t),n}function Vo(e){if(e)return Na(e)?{captureContext:e}:Ca(e)?{captureContext:e}:e}function Na(e){return e instanceof G||typeof e=="function"}var Oa=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function Ca(e){return Object.keys(e).some(t=>Oa.includes(t))}function Ee(e,t){return y().captureException(e,Vo(t))}function cn(e,t){let n=typeof t=="string"?t:void 0,r=typeof t!="string"?{captureContext:t}:void 0;return y().captureMessage(e,n,r)}function va(e,t){return y().captureEvent(e,t)}function Da(e,t){R().setContext(e,t)}function Ma(e){R().setExtras(e)}function wa(e,t){R().setExtra(e,t)}function Pa(e){R().setTags(e)}function Ua(e,t){R().setTag(e,t)}function ka(e){R().setUser(e)}function Fa(){return R().lastEventId()}function xr(e,t){let n=y(),r=h();if(!r)g&&l.warn("Cannot capture check-in. No client defined.");else if(!r.captureCheckIn)g&&l.warn("Cannot capture check-in. Client does not support sending check-ins.");else return r.captureCheckIn(e,t,n);return x()}function La(e,t,n){let r=xr({monitorSlug:e,status:"in_progress"},n),o=b();function i(s){xr({monitorSlug:e,status:s,checkInId:r,duration:b()-o})}return zn(()=>{let s;try{s=t()}catch(a){throw i("error"),a}return J(s)?Promise.resolve(s).then(()=>{i("ok")},a=>{throw i("error"),a}):i("ok"),s})}async function Ba(e){let t=h();return t?t.flush(e):(g&&l.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}async function $a(e){let t=h();return t?t.close(e):(g&&l.warn("Cannot flush events and disable SDK. No client defined."),Promise.resolve(!1))}function Ha(){return!!h()}function Rr(){let e=h();return e?.getOptions().enabled!==!1&&!!e?.getTransport()}function Ga(e){R().addEventProcessor(e)}function ja(e){let t=R(),n=y(),{userAgent:r}=_.navigator||{},o=Ln({user:n.getUser()||t.getUser(),...r&&{userAgent:r},...e}),i=t.getSession();return i?.status==="ok"&&le(i,{status:"exited"}),Nr(),t.setSession(o),o}function Nr(){let e=R(),n=y().getSession()||e.getSession();n&&Bn(n),qo(),e.setSession()}function qo(){let e=R(),t=h(),n=e.getSession();n&&t&&t.captureSession(n)}function Ya(e=!1){if(e){Nr();return}qo()}var za="7";function Ko(e){let t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function Wa(e){return`${Ko(e)}${e.projectId}/envelope/`}function Ja(e,t){let n={sentry_version:za};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}function At(e,t,n){return t||`${Wa(e)}?${Ja(e,n)}`}function Va(e,t){let n=St(e);if(!n)return"";let r=`${Ko(n)}embed/error-page/`,o=`dsn=${z(n)}`;for(let i in t)if(i!=="dsn"&&i!=="onClose")if(i==="user"){let s=t.user;if(!s)continue;s.name&&(o+=`&name=${encodeURIComponent(s.name)}`),s.email&&(o+=`&email=${encodeURIComponent(s.email)}`)}else o+=`&${encodeURIComponent(i)}=${encodeURIComponent(t[i])}`;return`${r}?${o}`}var Xo=[];function qa(e){let t={};return e.forEach(n=>{let{name:r}=n,o=t[r];o&&!o.isDefaultInstance&&n.isDefaultInstance||(t[r]=n)}),Object.values(t)}function Ka(e){let t=e.defaultIntegrations||[],n=e.integrations;t.forEach(o=>{o.isDefaultInstance=!0});let r;if(Array.isArray(n))r=[...t,...n];else if(typeof n=="function"){let o=n(t);r=Array.isArray(o)?o:[o]}else r=t;return qa(r)}function Zo(e,t){let n={};return t.forEach(r=>{r&&Cr(e,r,n)}),n}function Or(e,t){for(let n of t)n?.afterAllSetup&&n.afterAllSetup(e)}function Cr(e,t,n){if(n[t.name]){g&&l.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,Xo.indexOf(t.name)===-1&&typeof t.setupOnce=="function"&&(t.setupOnce(),Xo.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),typeof t.preprocessEvent=="function"){let r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(o,i)=>r(o,i,e))}if(typeof t.processEvent=="function"){let r=t.processEvent.bind(t),o=Object.assign((i,s)=>r(i,s,e),{id:t.name});e.addEventProcessor(o)}g&&l.log(`Integration installed: ${t.name}`)}function Xa(e){let t=h();if(!t){g&&l.warn(`Cannot add integration "${e.name}" because no SDK Client is available.`);return}t.addIntegration(e)}function L(e){return e}function pn(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 Qo(e){let{trace_id:t,parent_span_id:n,span_id:r,status:o,origin:i,data:s,op:a}=e.contexts?.trace??{};return{data:s??{},description:e.transaction,op:a,parent_span_id:n,span_id:r??"",start_timestamp:e.start_timestamp??0,status:o,timestamp:e.timestamp,trace_id:t??"",origin:i,profile_id:s?.[We],exclusive_time:s?.[Je],measurements:e.measurements,is_segment:!0}}function ei(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&&{[We]:e.profile_id},...e.exclusive_time&&{[Je]:e.exclusive_time}}}},measurements:e.measurements}}function vr(e,t,n){let r=[{type:"client_report"},{timestamp:n||de(),discarded_events:e}];return F(t?{dsn:t}:{},[r])}var ti="Not capturing exception because it's already been captured.",ni="Discarded session because of missing or non-string release",ii=Symbol.for("SentryInternalError"),si=Symbol.for("SentryDoNotSendEventError");function un(e){return{message:e,[ii]:!0}}function Dr(e){return{message:e,[si]:!0}}function ri(e){return!!e&&typeof e=="object"&&ii in e}function oi(e){return!!e&&typeof e=="object"&&si in e}var et=class{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=St(t.dsn):g&&l.warn("No DSN provided, client will not send events."),this._dsn){let n=At(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:n})}}captureException(t,n,r){let o=x();if(Ut(t))return g&&l.log(ti),o;let i={event_id:o,...n};return this._process(this.eventFromException(t,i).then(s=>this._captureEvent(s,i,r))),i.event_id}captureMessage(t,n,r,o){let i={event_id:x(),...r},s=xe(t)?t:String(t),a=we(t)?this.eventFromMessage(s,n,i):this.eventFromException(t,i);return this._process(a.then(c=>this._captureEvent(c,i,o))),i.event_id}captureEvent(t,n,r){let o=x();if(n?.originalException&&Ut(n.originalException))return g&&l.log(ti),o;let i={event_id:o,...n},s=t.sdkProcessingMetadata||{},a=s.capturedSpanScope,c=s.capturedSpanIsolationScope;return this._process(this._captureEvent(t,i,a||r,c)),i.event_id}captureSession(t){this.sendSession(t),le(t,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){let n=this._transport;return n?(this.emit("flush"),this._isClientDoneProcessing(t).then(r=>n.flush(t).then(o=>r&&o))):ne(!0)}close(t){return this.flush(t).then(n=>(this.getOptions().enabled=!1,this.emit("close"),n))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}init(){(this._isEnabled()||this._options.integrations.some(({name:t})=>t.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(t){return this._integrations[t]}addIntegration(t){let n=this._integrations[t.name];Cr(this,t,this._integrations),n||Or(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let r=_r(t,this._dsn,this._options._metadata,this._options.tunnel);for(let i of n.attachments||[])r=ur(r,lr(i));let o=this.sendEnvelope(r);o&&o.then(i=>this.emit("afterSendEvent",t,i),null)}sendSession(t){let{release:n,environment:r=ke}=this._options;if("aggregates"in t){let i=t.attrs||{};if(!i.release&&!n){g&&l.warn(ni);return}i.release=i.release||n,i.environment=i.environment||r,t.attrs=i}else{if(!t.release&&!n){g&&l.warn(ni);return}t.release=t.release||n,t.environment=t.environment||r}this.emit("beforeSendSession",t);let o=gr(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(o)}recordDroppedEvent(t,n,r=1){if(this._options.sendClientReports){let o=`${t}:${n}`;g&&l.log(`Recording outcome: "${o}"${r>1?` (${r} times)`:""}`),this._outcomes[o]=(this._outcomes[o]||0)+r}}on(t,n){let r=this._hooks[t]=this._hooks[t]||[];return r.push(n),()=>{let o=r.indexOf(n);o>-1&&r.splice(o,1)}}emit(t,...n){let r=this._hooks[t];r&&r.forEach(o=>o(...n))}sendEnvelope(t){return this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport?this._transport.send(t).then(null,n=>(g&&l.error("Error while sending envelope:",n),n)):(g&&l.error("Transport disabled"),ne({}))}_setupIntegrations(){let{integrations:t}=this._options;this._integrations=Zo(this,t),Or(this,t)}_updateSessionFromEvent(t,n){let r=n.level==="fatal",o=!1,i=n.exception?.values;if(i){o=!0;for(let c of i)if(c.mechanism?.handled===!1){r=!0;break}}let s=t.status==="ok";(s&&t.errors===0||s&&r)&&(le(t,{...r&&{status:"crashed"},errors:t.errors||Number(o||r)}),this.captureSession(t))}_isClientDoneProcessing(t){return new pe(n=>{let r=0,o=1,i=setInterval(()=>{this._numProcessing==0?(clearInterval(i),n(!0)):(r+=o,t&&r>=t&&(clearInterval(i),n(!1)))},o)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,r,o){let i=this.getOptions(),s=Object.keys(this._integrations);return!n.integrations&&s?.length&&(n.integrations=s),this.emit("preprocessEvent",t,n),t.type||o.setLastEventId(t.event_id||n.event_id),br(i,t,n,r,this,o).then(a=>{if(a===null)return a;this.emit("postprocessEvent",a,n),a.contexts={trace:kt(r),...a.contexts};let c=Ze(this,r);return a.sdkProcessingMetadata={dynamicSamplingContext:c,...a.sdkProcessingMetadata},a})}_captureEvent(t,n={},r=y(),o=R()){return g&&Mr(t)&&l.log(`Captured error event \`${pn(t)[0]||"<unknown>"}\``),this._processEvent(t,n,r,o).then(i=>i.event_id,i=>{g&&(oi(i)?l.log(i.message):ri(i)?l.warn(i.message):l.warn(i))})}_processEvent(t,n,r,o){let i=this.getOptions(),{sampleRate:s}=i,a=ai(t),c=Mr(t),p=t.type||"error",f=`before send for type \`${p}\``,u=typeof s>"u"?void 0:ge(s);if(c&&typeof u=="number"&&Math.random()>u)return this.recordDroppedEvent("sample_rate","error"),yt(Dr(`Discarding event because it's not included in the random sample (sampling rate = ${s})`));let m=p==="replay_event"?"replay":p;return this._prepareEvent(t,n,r,o).then(d=>{if(d===null)throw this.recordDroppedEvent("event_processor",m),Dr("An event processor returned `null`, will not send event.");if(n.data&&n.data.__sentry__===!0)return d;let E=ec(this,i,d,n);return Qa(E,f)}).then(d=>{if(d===null){if(this.recordDroppedEvent("before_send",m),a){let B=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",B)}throw Dr(`${f} returned \`null\`, will not send event.`)}let S=r.getSession()||o.getSession();if(c&&S&&this._updateSessionFromEvent(S,d),a){let A=d.sdkProcessingMetadata?.spanCountBeforeProcessing||0,B=d.spans?d.spans.length:0,re=A-B;re>0&&this.recordDroppedEvent("before_send","span",re)}let E=d.transaction_info;if(a&&E&&d.transaction!==t.transaction){let A="custom";d.transaction_info={...E,source:A}}return this.sendEvent(d,n),d}).then(null,d=>{throw oi(d)||ri(d)?d:(this.captureException(d,{data:{__sentry__:!0},originalException:d}),un(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
Reason: ${d}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}_clearOutcomes(){let t=this._outcomes;return this._outcomes={},Object.entries(t).map(([n,r])=>{let[o,i]=n.split(":");return{reason:o,category:i,quantity:r}})}_flushOutcomes(){g&&l.log("Flushing outcomes...");let t=this._clearOutcomes();if(t.length===0){g&&l.log("No outcomes to send");return}if(!this._dsn){g&&l.log("No dsn provided, will not send outcomes");return}g&&l.log("Sending outcomes:",t);let n=vr(t,this._options.tunnel&&z(this._dsn));this.sendEnvelope(n)}},Za=et;function Qa(e,t){let n=`${t} must return \`null\` or a valid event.`;if(J(e))return e.then(r=>{if(!W(r)&&r!==null)throw un(n);return r},r=>{throw un(`${t} rejected with ${r}`)});if(!W(e)&&e!==null)throw un(n);return e}function ec(e,t,n,r){let{beforeSend:o,beforeSendTransaction:i,beforeSendSpan:s}=t,a=n;if(Mr(a)&&o)return o(a,r);if(ai(a)){if(s){let c=s(Qo(a));if(c?a=Ce(n,ei(c)):gt(),a.spans){let p=[];for(let f of a.spans){let u=s(f);u?p.push(u):(gt(),p.push(f))}a.spans=p}}if(i){if(a.spans){let c=a.spans.length;a.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:c}}return i(a,r)}}return a}function Mr(e){return e.type===void 0}function ai(e){return e.type==="transaction"}function fn(e,t){if(!t)return[void 0,void 0];let n=ie(t),r=n?mt(n):kt(t);return[n?D(n):Ze(e,t),r]}function wr(e,t,n,r,o){let i={sent_at:new Date().toISOString()};n?.sdk&&(i.sdk={name:n.sdk.name,version:n.sdk.version}),r&&o&&(i.dsn=z(o)),t&&(i.trace=t);let s=tc(e);return F(i,[s])}function tc(e){return[{type:"check_in"},e]}var ci={trace:1,debug:5,info:9,warn:13,error:17,fatal:21};function nc(e){return[{type:"log",item_count:e.length,content_type:"application/vnd.sentry.items.log+json"},{items:e}]}function pi(e,t,n,r){let o={};return t?.sdk&&(o.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(o.dsn=z(r)),F(o,[nc(e)])}var rc=100;_._sentryClientToLogBufferMap=new WeakMap;function oc(e){switch(typeof e){case"number":return Number.isInteger(e)?{value:e,type:"integer"}:{value:e,type:"double"};case"boolean":return{value:e,type:"boolean"};case"string":return{value:e,type:"string"};default:{let t="";try{t=JSON.stringify(e)??""}catch{}return{value:t,type:"string"}}}}function dn(e,t=h(),n=y()){if(!t){g&&l.warn("No client available to capture log.");return}let{_experiments:r,release:o,environment:i}=t.getOptions(),{enableLogs:s=!1,beforeSendLog:a}=r??{};if(!s){g&&l.warn("logging option not enabled, log will not be captured.");return}let[,c]=fn(t,n),p={...e.attributes};o&&(p["sentry.release"]=o),i&&(p["sentry.environment"]=i);let{sdk:f}=t.getSdkMetadata()??{};f&&(p["sentry.sdk.name"]=f.name,p["sentry.sdk.version"]=f.version);let u=e.message;if(xe(u)){let{__sentry_template_string__:Me,__sentry_template_values__:T=[]}=u;p["sentry.message.template"]=Me,T.forEach((w,rt)=>{p[`sentry.message.parameter.${rt}`]=w})}let m=ie(n);m&&(p["sentry.trace.parent_span_id"]=m.spanContext().spanId);let d={...e,attributes:p};t.emit("beforeCaptureLog",d);let S=a?a(d):d;if(!S){t.recordDroppedEvent("before_send","log_item",1),g&&l.warn("beforeSendLog returned null, log will not be captured.");return}let{level:E,message:A,attributes:B={},severityNumber:re}=S,Nt={timestamp:b(),level:E,body:A,trace_id:c?.trace_id,severity_number:re??ci[E],attributes:Object.keys(B).reduce((Me,T)=>(Me[T]=oc(B[T]),Me),{})},Be=ui(t);Be===void 0?_._sentryClientToLogBufferMap?.set(t,[Nt]):(_._sentryClientToLogBufferMap?.set(t,[...Be,Nt]),Be.length>=rc&&tt(t,Be)),t.emit("afterCaptureLog",S)}function tt(e,t){let n=t??ui(e)??[];if(n.length===0)return;let r=e.getOptions(),o=pi(n,r._metadata,r.tunnel,e.getDsn());_._sentryClientToLogBufferMap?.set(e,[]),e.emit("flushLogs"),e.sendEnvelope(o)}function ui(e){return _._sentryClientToLogBufferMap?.get(e)}function Pr(e,t){return e(t.stack||"",1)}function ln(e,t){let n={type:t.name||t.constructor.name,value:t.message},r=Pr(e,t);return r.length&&(n.stacktrace={frames:r}),n}function ic(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)){let n=e[t];if(n instanceof Error)return n}}function sc(e){if("name"in e&&typeof e.name=="string"){let r=`'${e.name}' captured as exception`;return"message"in e&&typeof e.message=="string"&&(r+=` with message '${e.message}'`),r}else if("message"in e&&typeof e.message=="string")return e.message;let t=Pn(e);if(xn(e))return`Event \`ErrorEvent\` captured as exception with message \`${e.message}\``;let n=ac(e);return`${n&&n!=="Object"?`'${n}'`:"Object"} captured as exception with keys: ${t}`}function ac(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function cc(e,t,n,r){if($(n))return[n,void 0];if(t.synthetic=!0,W(n)){let i=e?.getOptions().normalizeDepth,s={__serialized__:qt(n,i)},a=ic(n);if(a)return[a,s];let c=sc(n),p=r?.syntheticException||new Error(c);return p.message=c,[p,s]}let o=r?.syntheticException||new Error(n);return o.message=`${n}`,[o,void 0]}function Ur(e,t,n,r){let i=r?.data&&r.data.mechanism||{handled:!0,type:"generic"},[s,a]=cc(e,i,n,r),c={exception:{values:[ln(t,s)]}};return a&&(c.extra=a),kn(c,void 0,void 0),Oe(c,i),{...c,event_id:r?.event_id}}function kr(e,t,n="info",r,o){let i={event_id:r?.event_id,level:n};if(o&&r?.syntheticException){let s=Pr(e,r.syntheticException);s.length&&(i.exception={values:[{value:t,stacktrace:{frames:s}}]},Oe(i,{synthetic:!0}))}if(xe(t)){let{__sentry_template_string__:s,__sentry_template_values__:a}=t;return i.logentry={message:s,params:a},i}return i.message=t,i}var pc=5e3,Fr=class extends et{constructor(t){if(or(),super(t),this._logWeight=0,this._options._experiments?.enableLogs){let n=this;n.on("flushLogs",()=>{n._logWeight=0,clearTimeout(n._logFlushIdleTimeout)}),n.on("afterCaptureLog",r=>{n._logWeight+=uc(r),n._logWeight>=8e5?tt(n):n._logFlushIdleTimeout=setTimeout(()=>{tt(n)},pc)}),n.on("flush",()=>{tt(n)})}}eventFromException(t,n){let r=Ur(this,this._options.stackParser,t,n);return r.level="error",ne(r)}eventFromMessage(t,n="info",r){return ne(kr(this._options.stackParser,t,n,r,this._options.attachStacktrace))}captureException(t,n,r){return fi(n),super.captureException(t,n,r)}captureEvent(t,n,r){return!t.type&&t.exception?.values&&t.exception.values.length>0&&fi(n),super.captureEvent(t,n,r)}captureCheckIn(t,n,r){let o="checkInId"in t&&t.checkInId?t.checkInId:x();if(!this._isEnabled())return g&&l.warn("SDK not enabled, will not capture check-in."),o;let i=this.getOptions(),{release:s,environment:a,tunnel:c}=i,p={check_in_id:o,monitor_slug:t.monitorSlug,status:t.status,release:s,environment:a};"duration"in t&&(p.duration=t.duration),n&&(p.monitor_config={schedule:n.schedule,checkin_margin:n.checkinMargin,max_runtime:n.maxRuntime,timezone:n.timezone,failure_issue_threshold:n.failureIssueThreshold,recovery_threshold:n.recoveryThreshold});let[f,u]=fn(this,r);u&&(p.contexts={trace:u});let m=wr(p,f,this.getSdkMetadata(),c,this.getDsn());return g&&l.info("Sending checkin:",t.monitorSlug,t.status),this.sendEnvelope(m),o}_prepareEvent(t,n,r,o){return this._options.platform&&(t.platform=t.platform||this._options.platform),this._options.runtime&&(t.contexts={...t.contexts,runtime:t.contexts?.runtime||this._options.runtime}),this._options.serverName&&(t.server_name=t.server_name||this._options.serverName),super._prepareEvent(t,n,r,o)}};function fi(e){let t=R().getScopeData().sdkProcessingMetadata.requestSession;if(t){let n=e?.mechanism?.handled??!0;n&&t.status!=="crashed"?t.status="errored":n||(t.status="crashed")}}function uc(e){let t=0;return e.message&&(t+=e.message.length*2),e.attributes&&Object.values(e.attributes).forEach(n=>{Array.isArray(n)?t+=n.length*di(n[0]):we(n)?t+=di(n):t+=100}),t}function di(e){return typeof e=="string"?e.length*2:typeof e=="number"?8:typeof e=="boolean"?4:0}function fc(e,t){t.debug===!0&&(g?l.enable():fe(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),y().update(t.initialScope);let r=new e(t);return li(r),r.init(),r}function li(e){y().setClient(e)}var mn=Symbol.for("SentryBufferFullError");function Lr(e){let t=[];function n(){return e===void 0||t.length<e}function r(s){return t.splice(t.indexOf(s),1)[0]||Promise.resolve(void 0)}function o(s){if(!n())return yt(mn);let a=s();return t.indexOf(a)===-1&&t.push(a),a.then(()=>r(a)).then(null,()=>r(a).then(null,()=>{})),a}function i(s){return new pe((a,c)=>{let p=t.length;if(!p)return a(!0);let f=setTimeout(()=>{s&&s>0&&a(!1)},s);t.forEach(u=>{ne(u).then(()=>{--p||(clearTimeout(f),a(!0))},c)})})}return{$:t,add:o,drain:i}}var dc=6e4;function gn(e,t=Date.now()){let n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;let r=Date.parse(`${e}`);return isNaN(r)?6e4:r-t}function mi(e,t){return e[t]||e.all||0}function Br(e,t,n=Date.now()){return mi(e,t)>n}function $r(e,{statusCode:t,headers:n},r=Date.now()){let o={...e},i=n?.["x-sentry-rate-limits"],s=n?.["retry-after"];if(i)for(let a of i.trim().split(",")){let[c,p,,,f]=a.split(":",5),u=parseInt(c,10),m=(isNaN(u)?60:u)*1e3;if(!p)o.all=r+m;else for(let d of p.split(";"))d==="metric_bucket"?(!f||f.split(";").includes("custom"))&&(o[d]=r+m):o[d]=r+m}else s?o.all=r+gn(s,r):t===429&&(o.all=r+60*1e3);return o}var lc=64;function mc(e,t,n=Lr(e.bufferSize||lc)){let r={},o=s=>n.drain(s);function i(s){let a=[];if(ce(s,(u,m)=>{let d=Zt(m);Br(r,d)?e.recordDroppedEvent("ratelimit_backoff",d):a.push(u)}),a.length===0)return ne({});let c=F(s[0],a),p=u=>{ce(c,(m,d)=>{e.recordDroppedEvent(u,Zt(d))})},f=()=>t({body:fr(c)}).then(u=>(u.statusCode!==void 0&&(u.statusCode<200||u.statusCode>=300)&&g&&l.warn(`Sentry responded with status code ${u.statusCode} to sent event.`),r=$r(r,u),u),u=>{throw p("network_error"),g&&l.error("Encountered error running transport request:",u),u});return n.add(f).then(u=>u,u=>{if(u===mn)return g&&l.error("Skipped sending event because buffer is full."),p("queue_overflow"),ne({});throw u})}return{send:i,flush:o}}var Hr=100,Gr=5e3,gc=36e5;function _c(e){function t(...n){g&&l.info("[Offline]:",...n)}return n=>{let r=e(n);if(!n.createStore)throw new Error("No `createStore` function was provided");let o=n.createStore(n),i=Gr,s;function a(u,m,d){return Xt(u,["client_report"])?!1:n.shouldStore?n.shouldStore(u,m,d):!0}function c(u){s&&clearTimeout(s),s=setTimeout(async()=>{s=void 0;let m=await o.shift();m&&(t("Attempting to send previously queued event"),m[0].sent_at=new Date().toISOString(),f(m,!0).catch(d=>{t("Failed to retry sending",d)}))},u),typeof s!="number"&&s.unref&&s.unref()}function p(){s||(c(i),i=Math.min(i*2,gc))}async function f(u,m=!1){if(!m&&Xt(u,["replay_event","replay_recording"]))return await o.push(u),c(Hr),{};try{if(n.shouldSend&&await n.shouldSend(u)===!1)throw new Error("Envelope not sent because `shouldSend` callback returned false");let d=await r.send(u),S=Hr;if(d){if(d.headers?.["retry-after"])S=gn(d.headers["retry-after"]);else if(d.headers?.["x-sentry-rate-limits"])S=6e4;else if((d.statusCode||0)>=400)return d}return c(S),i=Gr,d}catch(d){if(await a(u,d,i))return m?await o.unshift(u):await o.push(u),p(),t("Error sending. Event queued.",d),{};throw d}}return n.flushAtStartup&&p(),{send:f,flush:u=>(u===void 0&&(i=Gr,c(Hr)),r.flush(u))}}}function gi(e,t){let n;return ce(e,(r,o)=>(t.includes(o)&&(n=Array.isArray(r)?r[1]:void 0),!!n)),n}function hc(e,t){return n=>{let r=e(n);return{...r,send:async o=>{let i=gi(o,["event","transaction","profile","replay_event"]);return i&&(i.release=t),r.send(o)}}}}function Sc(e,t){return F(t?{...e[0],dsn:t}:e[0],e[1])}function Ec(e,t){return n=>{let r=e(n),o=new Map;function i(c,p){let f=p?`${c}:${p}`:c,u=o.get(f);if(!u){let m=Vt(c);if(!m)return;let d=At(m,n.tunnel);u=p?hc(e,p)({...n,url:d}):e({...n,url:d}),o.set(f,u)}return[c,u]}async function s(c){function p(d){let S=d?.length?d:["event"];return gi(c,S)}let f=t({envelope:c,getEvent:p}).map(d=>typeof d=="string"?i(d,void 0):i(d.dsn,d.release)).filter(d=>!!d),u=f.length?f:[["",r]];return(await Promise.all(u.map(([d,S])=>S.send(Sc(c,d)))))[0]}async function a(c){let p=[...o.values(),r];return(await Promise.all(p.map(u=>u.flush(c)))).every(u=>u)}return{send:s,flush:a}}}function Tc(e,t){let n=t?.getDsn(),r=t?.getOptions().tunnel;return Ic(e,n)||yc(e,r)}function yc(e,t){return t?_i(e)===_i(t):!1}function Ic(e,t){return t?e.includes(t.host):!1}function _i(e){return e[e.length-1]==="/"?e.slice(0,-1):e}function hi(e,...t){let n=new String(String.raw(e,...t));return n.__sentry_template_string__=e.join("\0").replace(/%/g,"%%").replace(/\0/g,"%s"),n.__sentry_template_values__=t,n}var Ac=hi;function bc(e){e.user?.ip_address===void 0&&(e.user={...e.user,ip_address:"{{auto}}"})}function xc(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 Rc(e,t,n=[t],r="npm"){let o=e._metadata||{};o.sdk||(o.sdk={name:`sentry.javascript.${t}`,packages:n.map(i=>({name:`${r}:@sentry/${i}`,version:ue})),version:ue}),e._metadata=o}function bt(e={}){let t=h();if(!Rr()||!t)return{};let n=v(),r=ee(n);if(r.getTraceData)return r.getTraceData(e);let o=y(),i=e.span||X(),s=i?Xn(i):Nc(o),a=i?D(i):Ze(t,o),c=dt(a);return $t.test(s)?{"sentry-trace":s,baggage:c}:(l.warn("Invalid sentry-trace data. Cannot generate trace data"),{})}function Nc(e){let{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return lt(t,r,n)}function Oc(){return Object.entries(bt()).map(([e,t])=>`<meta name="${e}" content="${t}"/>`).join(`
`)}function Si(e){let t={};try{e.forEach((n,r)=>{typeof n=="string"&&(t[r]=n)})}catch{}return t}function Ei(e){let t=Object.create(null);try{Object.entries(e).forEach(([n,r])=>{typeof r=="string"&&(t[n]=r)})}catch{}return t}function Cc(e){let t=Si(e.headers);return{method:e.method,url:e.url,query_string:jr(e.url),headers:t}}function vc(e){let t=e.headers||{},n=typeof t.host=="string"?t.host:void 0,r=e.protocol||(e.socket?.encrypted?"https":"http"),o=e.url||"",i=Dc({url:o,host:n,protocol:r}),s=e.body||void 0,a=e.cookies;return{url:i,method:e.method,query_string:jr(o),headers:Ei(t),cookies:a,data:s}}function Dc({url:e,protocol:t,host:n}){if(e?.startsWith("http"))return e;if(e&&n)return`${t}://${n}${e}`}function jr(e){if(e)try{let t=new URL(e,"http://s.io").search.slice(1);return t.length?t:void 0}catch{return}}var Mc=100;function xt(e,t){let n=h(),r=R();if(!n)return;let{beforeBreadcrumb:o=null,maxBreadcrumbs:i=Mc}=n.getOptions();if(i<=0)return;let a={timestamp:de(),...e},c=o?fe(()=>o(a,t)):a;c!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",c,t),r.addBreadcrumb(c,i))}var Ti,wc="FunctionToString",yi=new WeakMap,Pc=(()=>({name:wc,setupOnce(){Ti=Function.prototype.toString;try{Function.prototype.toString=function(...e){let t=wn(this),n=yi.has(h())&&t!==void 0?t:this;return Ti.apply(n,e)}}catch{}},setup(e){yi.set(e,!0)}})),Uc=Pc;var kc=[/^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. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/,/^Java exception was raised during method invocation$/],Fc="EventFilters",Ai=(e={})=>{let t;return{name:Fc,setup(n){let r=n.getOptions();t=Ii(e,r)},processEvent(n,r,o){if(!t){let i=o.getOptions();t=Ii(e,i)}return Bc(n,t)?null:n}}},Lc=((e={})=>({...Ai(e),name:"InboundFilters"}));function Ii(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:kc],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function Bc(e,t){if(e.type){if(e.type==="transaction"&&Hc(e,t.ignoreTransactions))return g&&l.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
Event: ${Ne(e)}`),!0}else{if($c(e,t.ignoreErrors))return g&&l.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
Event: ${Ne(e)}`),!0;if(zc(e))return g&&l.warn(`Event dropped due to not having an error message, error type or stacktrace.
Event: ${Ne(e)}`),!0;if(Gc(e,t.denyUrls))return g&&l.warn(`Event dropped due to being matched by \`denyUrls\` option.
Event: ${Ne(e)}.
Url: ${_n(e)}`),!0;if(!jc(e,t.allowUrls))return g&&l.warn(`Event dropped due to not being matched by \`allowUrls\` option.
Event: ${Ne(e)}.
Url: ${_n(e)}`),!0}return!1}function $c(e,t){return t?.length?pn(e).some(n=>je(n,t)):!1}function Hc(e,t){if(!t?.length)return!1;let n=e.transaction;return n?je(n,t):!1}function Gc(e,t){if(!t?.length)return!1;let n=_n(e);return n?je(n,t):!1}function jc(e,t){if(!t?.length)return!0;let n=_n(e);return n?je(n,t):!0}function Yc(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 _n(e){try{let n=[...e.exception?.values??[]].reverse().find(r=>r.mechanism?.parent_id===void 0&&r.stacktrace?.frames?.length)?.stacktrace?.frames;return n?Yc(n):null}catch{return g&&l.error(`Cannot extract url for event ${Ne(e)}`),null}}function zc(e){return e.exception?.values?.length?!e.message&&!e.exception.values.some(t=>t.stacktrace||t.type&&t.type!=="Error"||t.value):!1}function zr(e,t,n,r,o,i){if(!o.exception?.values||!i||!V(i.originalException,Error))return;let s=o.exception.values.length>0?o.exception.values[o.exception.values.length-1]:void 0;s&&(o.exception.values=Yr(e,t,r,i.originalException,n,o.exception.values,s,0))}function Yr(e,t,n,r,o,i,s,a){if(i.length>=n+1)return i;let c=[...i];if(V(r[o],Error)){bi(s,a);let p=e(t,r[o]),f=c.length;xi(p,o,f,a),c=Yr(e,t,n,r[o],o,[p,...c],p,f)}return Array.isArray(r.errors)&&r.errors.forEach((p,f)=>{if(V(p,Error)){bi(s,a);let u=e(t,p),m=c.length;xi(u,`errors[${f}]`,m,a),c=Yr(e,t,n,p,o,[u,...c],u,m)}}),c}function bi(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,...e.type==="AggregateError"&&{is_exception_group:!0},exception_id:t}}function xi(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}var Wc="cause",Jc=5,Vc="LinkedErrors",qc=((e={})=>{let t=e.limit||Jc,n=e.key||Wc;return{name:Vc,preprocessEvent(r,o,i){let s=i.getOptions();zr(ln,s.stackParser,n,t,r,o)}}}),Kc=qc;var Ni=new Map,Ri=new Set;function Xc(e){if(_._sentryModuleMetadata)for(let t of Object.keys(_._sentryModuleMetadata)){let n=_._sentryModuleMetadata[t];if(Ri.has(t))continue;Ri.add(t);let r=e(t);for(let o of r.reverse())if(o.filename){Ni.set(o.filename,n);break}}}function Zc(e,t){return Xc(e),Ni.get(t)}function hn(e,t){try{t.exception.values.forEach(n=>{if(n.stacktrace)for(let r of n.stacktrace.frames||[]){if(!r.filename||r.module_metadata)continue;let o=Zc(e,r.filename);o&&(r.module_metadata=o)}})}catch{}}function Sn(e){try{e.exception.values.forEach(t=>{if(t.stacktrace)for(let n of t.stacktrace.frames||[])delete n.module_metadata})}catch{}}var Qc=()=>({name:"ModuleMetadata",setup(e){e.on("beforeEnvelope",t=>{ce(t,(n,r)=>{if(r==="event"){let o=Array.isArray(n)?n[1]:void 0;o&&(Sn(o),n[1]=o)}})}),e.on("applyFrameMetadata",t=>{if(t.type)return;let n=e.getOptions().stackParser;hn(n,t)})}});function Oi(e){let t={},n=0;for(;n<e.length;){let r=e.indexOf("=",n);if(r===-1)break;let o=e.indexOf(";",n);if(o===-1)o=e.length;else if(o<r){n=e.lastIndexOf(";",r-1)+1;continue}let i=e.slice(n,r).trim();if(t[i]===void 0){let s=e.slice(r+1,o).trim();s.charCodeAt(0)===34&&(s=s.slice(1,-1));try{t[i]=s.indexOf("%")!==-1?decodeURIComponent(s):s}catch{t[i]=s}}n=o+1}return t}var Wr=["X-Client-IP","X-Forwarded-For","Fly-Client-IP","CF-Connecting-IP","Fastly-Client-Ip","True-Client-Ip","X-Real-IP","X-Cluster-Client-IP","X-Forwarded","Forwarded-For","Forwarded","X-Vercel-Forwarded-For"];function Ci(e){return Wr.map(o=>{let i=e[o],s=Array.isArray(i)?i.join(";"):i;return o==="Forwarded"?ep(s):s?.split(",").map(a=>a.trim())}).reduce((o,i)=>i?o.concat(i):o,[]).find(o=>o!==null&&tp(o))||null}function ep(e){if(!e)return null;for(let t of e.split(";"))if(t.startsWith("for="))return t.slice(4);return null}function tp(e){return/(?:^(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}$)|(?:^(?:(?:[a-fA-F\d]{1,4}:){7}(?:[a-fA-F\d]{1,4}|:)|(?:[a-fA-F\d]{1,4}:){6}(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|:[a-fA-F\d]{1,4}|:)|(?:[a-fA-F\d]{1,4}:){5}(?::(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,2}|:)|(?:[a-fA-F\d]{1,4}:){4}(?:(?::[a-fA-F\d]{1,4}){0,1}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,3}|:)|(?:[a-fA-F\d]{1,4}:){3}(?:(?::[a-fA-F\d]{1,4}){0,2}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,4}|:)|(?:[a-fA-F\d]{1,4}:){2}(?:(?::[a-fA-F\d]{1,4}){0,3}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,5}|:)|(?:[a-fA-F\d]{1,4}:){1}(?:(?::[a-fA-F\d]{1,4}){0,4}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,6}|:)|(?::(?:(?::[a-fA-F\d]{1,4}){0,5}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,7}|:)))(?:%[0-9a-zA-Z]{1,})?$)/.test(e)}var np={cookies:!0,data:!0,headers:!0,query_string:!0,url:!0},rp="RequestData",op=((e={})=>{let t={...np,...e.include};return{name:rp,processEvent(n,r,o){let{sdkProcessingMetadata:i={}}=n,{normalizedRequest:s,ipAddress:a}=i,c={...t,ip:t.ip??o.getOptions().sendDefaultPii};return s&&sp(n,s,{ipAddress:a},c),n}}}),ip=op;function sp(e,t,n,r){if(e.request={...e.request,...ap(t,r)},r.ip){let o=t.headers&&Ci(t.headers)||n.ipAddress;o&&(e.user={...e.user,ip_address:o})}}function ap(e,t){let n={},r={...e.headers};if(t.headers&&(n.headers=r,t.cookies||delete r.cookie,t.ip||Wr.forEach(o=>{delete r[o]})),n.method=e.method,t.url&&(n.url=e.url),t.cookies){let o=e.cookies||(r?.cookie?Oi(r.cookie):void 0);n.cookies=o||{}}return t.query_string&&(n.query_string=e.query_string),t.data&&(n.data=e.data),n}function Le(e){let t="console";he(t,e),Se(t,cp)}function cp(){"console"in _&&oe.forEach(function(e){e in _.console&&at(_.console,e,function(t){return Ge[e]=t,function(...n){te("console",{args:n,level:e}),Ge[e]?.apply(_.console,n)}})})}function Rt(e){return e==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}var pp="CaptureConsole",up=((e={})=>{let t=e.levels||oe,n=e.handled??!0;return{name:pp,setup(r){"console"in _&&Le(({args:o,level:i})=>{h()!==r||!t.includes(i)||dp(o,i,n)})}}}),fp=up;function dp(e,t,n){let r={level:Rt(t),extra:{arguments:e}};K(o=>{if(o.addEventProcessor(a=>(a.logger="console",Oe(a,{handled:n,type:"console"}),a)),t==="assert"){if(!e[0]){let a=`Assertion failed: ${Re(e.slice(1)," ")||"console.assert"}`;o.setExtra("arguments",e.slice(1)),cn(a,r)}return}let i=e.find(a=>a instanceof Error);if(i){Ee(i,r);return}let s=Re(e," ");cn(s,r)})}var lp="Dedupe",mp=(()=>{let e;return{name:lp,processEvent(t){if(t.type)return t;try{if(_p(t,e))return g&&l.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}}),gp=mp;function _p(e,t){return t?!!(hp(e,t)||Sp(e,t)):!1}function hp(e,t){let n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!Mi(e,t)||!Di(e,t))}function Sp(e,t){let n=vi(t),r=vi(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!Mi(e,t)||!Di(e,t))}function Di(e,t){let n=qe(e),r=qe(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let o=0;o<r.length;o++){let i=r[o],s=n[o];if(i.filename!==s.filename||i.lineno!==s.lineno||i.colno!==s.colno||i.function!==s.function)return!1}return!0}function Mi(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 vi(e){return e.exception?.values&&e.exception.values[0]}var Ep="ExtraErrorData",Tp=((e={})=>{let{depth:t=3,captureErrorCause:n=!0}=e;return{name:Ep,processEvent(r,o,i){let{maxValueLength:s=250}=i.getOptions();return Ip(r,o,t,n,s)}}}),yp=Tp;function Ip(e,t={},n,r,o){if(!t.originalException||!$(t.originalException))return e;let i=t.originalException.name||t.originalException.constructor.name,s=Ap(t.originalException,r,o);if(s){let a={...e.contexts},c=M(s,n);return W(c)&&(N(c,"__sentry_skip_normalization__",!0),a[i]=c),{...e,contexts:a}}return e}function Ap(e,t,n){try{let r=["name","message","stack","line","column","fileName","lineNumber","columnNumber","toJSON"],o={};for(let i of Object.keys(e)){if(r.indexOf(i)!==-1)continue;let s=e[i];o[i]=$(s)||typeof s=="string"?Q(`${s}`,n):s}if(t&&e.cause!==void 0&&(o.cause=$(e.cause)?e.cause.toString():e.cause),typeof e.toJSON=="function"){let i=e.toJSON();for(let s of Object.keys(i)){let a=i[s];o[s]=$(a)?a.toString():a}}return o}catch(r){g&&l.error("Unable to extract extra data from the Error object:",r)}return null}function Pi(e,t){let n=0;for(let r=e.length-1;r>=0;r--){let o=e[r];o==="."?e.splice(r,1):o===".."?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}var bp=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function Ui(e){let t=e.length>1024?`<truncated>${e.slice(-1024)}`:e,n=bp.exec(t);return n?n.slice(1):[]}function Jr(...e){let t="",n=!1;for(let r=e.length-1;r>=-1&&!n;r--){let o=r>=0?e[r]:"/";o&&(t=`${o}/${t}`,n=o.charAt(0)==="/")}return t=Pi(t.split("/").filter(r=>!!r),!n).join("/"),(n?"/":"")+t||"."}function wi(e){let t=0;for(;t<e.length&&e[t]==="";t++);let n=e.length-1;for(;n>=0&&e[n]==="";n--);return t>n?[]:e.slice(t,n-t+1)}function Vr(e,t){e=Jr(e).slice(1),t=Jr(t).slice(1);let n=wi(e.split("/")),r=wi(t.split("/")),o=Math.min(n.length,r.length),i=o;for(let a=0;a<o;a++)if(n[a]!==r[a]){i=a;break}let s=[];for(let a=i;a<n.length;a++)s.push("..");return s=s.concat(r.slice(i)),s.join("/")}function ki(e){let t=Fi(e),n=e.slice(-1)==="/",r=Pi(e.split("/").filter(o=>!!o),!t).join("/");return!r&&!t&&(r="."),r&&n&&(r+="/"),(t?"/":"")+r}function Fi(e){return e.charAt(0)==="/"}function xp(...e){return ki(e.join("/"))}function Rp(e){let t=Ui(e),n=t[0]||"",r=t[1];return!n&&!r?".":(r&&(r=r.slice(0,r.length-1)),n+r)}function qr(e,t){let n=Ui(e)[2]||"";return t&&n.slice(t.length*-1)===t&&(n=n.slice(0,n.length-t.length)),n}var Np="RewriteFrames",Op=(e={})=>{let t=e.root,n=e.prefix||"app:///",r="window"in _&&!!_.window,o=e.iteratee||Cp({isBrowser:r,root:t,prefix:n});function i(a){try{return{...a,exception:{...a.exception,values:a.exception.values.map(c=>({...c,...c.stacktrace&&{stacktrace:s(c.stacktrace)}}))}}}catch{return a}}function s(a){return{...a,frames:a?.frames&&a.frames.map(c=>o(c))}}return{name:Np,processEvent(a){let c=a;return a.exception&&Array.isArray(a.exception.values)&&(c=i(c)),c}}};function Cp({isBrowser:e,root:t,prefix:n}){return r=>{if(!r.filename)return r;let o=/^[a-zA-Z]:\\/.test(r.filename)||r.filename.includes("\\")&&!r.filename.includes("/"),i=/^\//.test(r.filename);if(e){if(t){let s=r.filename;s.indexOf(t)===0&&(r.filename=s.replace(t,n))}}else if(o||i){let s=o?r.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):r.filename,a=t?Vr(t,s):qr(s);r.filename=`${n}${a}`}return r}}var vp=["reauthenticate","signInAnonymously","signInWithOAuth","signInWithIdToken","signInWithOtp","signInWithPassword","signInWithSSO","signOut","signUp","verifyOtp"],Dp=["createUser","deleteUser","listUsers","getUserById","updateUserById","inviteUserByEmail"],Mp={eq:"eq",neq:"neq",gt:"gt",gte:"gte",lt:"lt",lte:"lte",like:"like","like(all)":"likeAllOf","like(any)":"likeAnyOf",ilike:"ilike","ilike(all)":"ilikeAllOf","ilike(any)":"ilikeAnyOf",is:"is",in:"in",cs:"contains",cd:"containedBy",sr:"rangeGt",nxl:"rangeGte",sl:"rangeLt",nxr:"rangeLte",adj:"rangeAdjacent",ov:"overlaps",fts:"",plfts:"plain",phfts:"phrase",wfts:"websearch",not:"not"},Bi=["select","insert","upsert","update","delete"];function En(e){try{e.__SENTRY_INSTRUMENTED__=!0}catch{}}function Tn(e){try{return e.__SENTRY_INSTRUMENTED__}catch{return!1}}function wp(e,t={}){switch(e){case"GET":return"select";case"POST":return t.Prefer?.includes("resolution=")?"upsert":"insert";case"PATCH":return"update";case"DELETE":return"delete";default:return"<unknown-op>"}}function Pp(e,t){if(t===""||t==="*")return"select(*)";if(e==="select")return`select(${t})`;if(e==="or"||e.endsWith(".or"))return`${e}${t}`;let[n,...r]=t.split("."),o;return n?.startsWith("fts")?o="textSearch":n?.startsWith("plfts")?o="textSearch[plain]":n?.startsWith("phfts")?o="textSearch[phrase]":n?.startsWith("wfts")?o="textSearch[websearch]":o=n&&Mp[n]||"filter",`${o}(${e}, ${r.join(".")})`}function Li(e,t=!1){return new Proxy(e,{apply(n,r,o){return De({name:e.name,attributes:{[O]:"auto.db.supabase",[k]:`db.auth.${t?"admin.":""}${e.name}`}},i=>Reflect.apply(n,r,o).then(s=>(s&&typeof s=="object"&&"error"in s&&s.error?(i.setStatus({code:2}),Ee(s.error,{mechanism:{handled:!1}})):i.setStatus({code:1}),i.end(),s)).catch(s=>{throw i.setStatus({code:2}),i.end(),Ee(s,{mechanism:{handled:!1}}),s}).then(...o))}})}function Up(e){let t=e.auth;if(!(!t||Tn(e.auth))){for(let n of vp){let r=t[n];r&&typeof e.auth[n]=="function"&&(e.auth[n]=Li(r))}for(let n of Dp){let r=t.admin[n];r&&typeof e.auth.admin[n]=="function"&&(e.auth.admin[n]=Li(r,!0))}En(e.auth)}}function kp(e){Tn(e.prototype.from)||(e.prototype.from=new Proxy(e.prototype.from,{apply(t,n,r){let o=Reflect.apply(t,n,r),i=o.constructor;return Lp(i),o}}),En(e.prototype.from))}function Fp(e){Tn(e.prototype.then)||(e.prototype.then=new Proxy(e.prototype.then,{apply(t,n,r){let o=Bi,i=n,s=wp(i.method,i.headers);if(!o.includes(s)||!i?.url?.pathname||typeof i.url.pathname!="string")return Reflect.apply(t,n,r);let a=i.url.pathname.split("/"),c=a.length>0?a[a.length-1]:"",p=`from(${c})`,f=[];for(let[d,S]of i.url.searchParams.entries())f.push(Pp(d,S));let u=Object.create(null);if(W(i.body))for(let[d,S]of Object.entries(i.body))u[d]=S;let m={"db.table":c,"db.schema":i.schema,"db.url":i.url.origin,"db.sdk":i.headers["X-Client-Info"],"db.system":"postgresql",[O]:"auto.db.supabase",[k]:`db.${s}`};return f.length&&(m["db.query"]=f),Object.keys(u).length&&(m["db.body"]=u),De({name:p,attributes:m},d=>Reflect.apply(t,n,[]).then(S=>{if(d&&(S&&typeof S=="object"&&"status"in S&&Ve(d,S.status||500),d.end()),S.error){let B=new Error(S.error.message);S.error.code&&(B.code=S.error.code),S.error.details&&(B.details=S.error.details);let re={};f.length&&(re.query=f),Object.keys(u).length&&(re.body=u),Ee(B,{contexts:{supabase:re}})}let E={type:"supabase",category:`db.${s}`,message:p},A={};return f.length&&(A.query=f),Object.keys(u).length&&(A.body=u),Object.keys(A).length&&(E.data=A),xt(E),S},S=>{throw d&&(Ve(d,500),d.end()),S}).then(...r))}}),En(e.prototype.then))}function Lp(e){for(let t of Bi)Tn(e.prototype[t])||(e.prototype[t]=new Proxy(e.prototype[t],{apply(n,r,o){let i=Reflect.apply(n,r,o),s=i.constructor;return g&&l.log(`Instrumenting ${t} operation's PostgRESTFilterBuilder`),Fp(s),i}}),En(e.prototype[t]))}var $i=e=>{if(!e){g&&l.warn("Supabase integration was not installed because no Supabase client was provided.");return}let t=e.constructor===Function?e:e.constructor;kp(t),Up(e)},Bp="Supabase",$p=(e=>({setupOnce(){$i(e)},name:Bp})),Hp=e=>$p(e.supabaseClient);var Gp=10,jp="ZodErrors";function Yp(e){return $(e)&&e.name==="ZodError"&&Array.isArray(e.issues)}function zp(e){return{...e,path:"path"in e&&Array.isArray(e.path)?e.path.join("."):void 0,keys:"keys"in e?JSON.stringify(e.keys):void 0,unionErrors:"unionErrors"in e?JSON.stringify(e.unionErrors):void 0}}function Wp(e){return e.map(t=>typeof t=="number"?"<array>":t).join(".")}function Jp(e){let t=new Set;for(let r of e.issues){let o=Wp(r.path);o.length>0&&t.add(o)}let n=Array.from(t);if(n.length===0){let r="variable";if(e.issues.length>0){let o=e.issues[0];o!==void 0&&"expected"in o&&typeof o.expected=="string"&&(r=o.expected)}return`Failed to validate ${r}`}return`Failed to validate keys: ${Q(n.join(", "),100)}`}function Vp(e,t=!1,n,r){if(!n.exception?.values||!r.originalException||!Yp(r.originalException)||r.originalException.issues.length===0)return n;try{let i=(t?r.originalException.issues:r.originalException.issues.slice(0,e)).map(zp);return t&&(Array.isArray(r.attachments)||(r.attachments=[]),r.attachments.push({filename:"zod_issues.json",data:JSON.stringify({issues:i})})),{...n,exception:{...n.exception,values:[{...n.exception.values[0],value:Jp(r.originalException)},...n.exception.values.slice(1)]},extra:{...n.extra,"zoderror.issues":i.slice(0,e)}}}catch(o){return{...n,extra:{...n.extra,"zoderrors sentry integration parse error":{message:"an exception was thrown while processing ZodError within applyZodErrorsToEvent()",error:o instanceof Error?`${o.name}: ${o.message}
${o.stack}`:"unknown"}}}}}var qp=((e={})=>{let t=e.limit??Gp;return{name:jp,processEvent(n,r){return Vp(t,e.saveZodIssuesAsAttachment,n,r)}}}),Kp=qp;var Xp=e=>({name:"ThirdPartyErrorsFilter",setup(t){t.on("beforeEnvelope",n=>{ce(n,(r,o)=>{if(o==="event"){let i=Array.isArray(r)?r[1]:void 0;i&&(Sn(i),r[1]=i)}})}),t.on("applyFrameMetadata",n=>{if(n.type)return;let r=t.getOptions().stackParser;hn(r,n)})},processEvent(t){let n=Zp(t);if(n){let r=e.behaviour==="drop-error-if-contains-third-party-frames"||e.behaviour==="apply-tag-if-contains-third-party-frames"?"some":"every";if(n[r](i=>!i.some(s=>e.filterKeys.includes(s)))){if(e.behaviour==="drop-error-if-contains-third-party-frames"||e.behaviour==="drop-error-if-exclusively-contains-third-party-frames")return null;t.tags={...t.tags,third_party_code:!0}}}return t}});function Zp(e){let t=qe(e);if(t)return t.filter(n=>!!n.filename).map(n=>n.module_metadata?Object.keys(n.module_metadata).filter(r=>r.startsWith(Hi)).map(r=>r.slice(Hi.length)):[])}var Hi="_sentryBundlerPluginAppKey:";var Qp="Console",eu=(e={})=>{let t=new Set(e.levels||oe);return{name:Qp,setup(n){Le(({args:r,level:o})=>{h()!==n||!t.has(o)||tu(o,r)})}}};function tu(e,t){let n={category:"console",data:{arguments:t,logger:"console"},level:Rt(e),message:Gi(t)};if(e==="assert")if(t[0]===!1){let r=t.slice(1);n.message=r.length>0?`Assertion failed: ${Gi(r)}`:"Assertion failed",n.data.arguments=r}else return;xt(n,{input:t,level:e})}function Gi(e){return"util"in _&&typeof _.util.format=="function"?_.util.format(...e):Re(e," ")}function ji(e){return!!e&&typeof e._profiler<"u"&&typeof e._profiler.start=="function"&&typeof e._profiler.stop=="function"}function nu(){let e=h();if(!e){g&&l.warn("No Sentry client available, profiling is not started");return}let t=e.getIntegrationByName("ProfilingIntegration");if(!t){g&&l.warn("ProfilingIntegration is not available");return}if(!ji(t)){g&&l.warn("Profiler is not available on profiling integration.");return}t._profiler.start()}function ru(){let e=h();if(!e){g&&l.warn("No Sentry client available, profiling is not started");return}let t=e.getIntegrationByName("ProfilingIntegration");if(!t){g&&l.warn("ProfilingIntegration is not available");return}if(!ji(t)){g&&l.warn("Profiler is not available on profiling integration.");return}t._profiler.stop()}var ou={startProfiler:nu,stopProfiler:ru};var iu="thismessage:/";function yn(e){return"isRelative"in e}function Kr(e,t){let n=e.startsWith("/"),r=t??(n?iu:void 0);try{if("canParse"in URL&&!URL.canParse(e,r))return;let o=new URL(e,r);return n?{isRelative:n,pathname:o.pathname,search:o.search,hash:o.hash}:o}catch{}}function Xr(e){if(yn(e))return e.pathname;let t=new URL(e);return t.search="",t.hash="",["80","443"].includes(t.port)&&(t.port=""),t.password&&(t.password="%filtered%"),t.username&&(t.username="%filtered%"),t.toString()}function su(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 au(e){return e.split(/[?#]/,1)[0]}function cu(e){let{protocol:t,host:n,path:r}=e,o=n?.replace(/^.*@/,"[filtered]:[filtered]@").replace(/(:80)$/,"").replace(/(:443)$/,"")||"";return`${t?`${t}://`:""}${o}${r}`}function pu(e,t,n,r,o="auto.http.browser"){if(!e.fetchData)return;let{method:i,url:s}=e.fetchData,a=Z()&&t(s);if(e.endTimestamp&&a){let u=e.fetchData.__span;if(!u)return;let m=r[u];m&&(fu(m,e),delete r[u]);return}let c=!!X(),p=a&&c?Et(lu(s,i,o)):new Y;if(e.fetchData.__span=p.spanContext().spanId,r[p.spanContext().spanId]=p,n(e.fetchData.url)){let u=e.args[0],m=e.args[1]||{},d=uu(u,m,Z()&&c?p:void 0);d&&(e.args[1]=m,m.headers=d)}let f=h();if(f){let u={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};f.emit("beforeOutgoingRequestSpan",p,u)}return p}function uu(e,t,n){let r=bt({span:n}),o=r["sentry-trace"],i=r.baggage;if(!o)return;let s=t.headers||(wt(e)?e.headers:void 0);if(s)if(du(s)){let a=new Headers(s);if(a.get("sentry-trace")||a.set("sentry-trace",o),i){let c=a.get("baggage");c?In(c)||a.set("baggage",`${c},${i}`):a.set("baggage",i)}return a}else if(Array.isArray(s)){let a=[...s];s.find(p=>p[0]==="sentry-trace")||a.push(["sentry-trace",o]);let c=s.find(p=>p[0]==="baggage"&&In(p[1]));return i&&!c&&a.push(["baggage",i]),a}else{let a="sentry-trace"in s?s["sentry-trace"]:void 0,c="baggage"in s?s.baggage:void 0,p=c?Array.isArray(c)?[...c]:[c]:[],f=c&&(Array.isArray(c)?c.find(u=>In(u)):In(c));return i&&!f&&p.push(i),{...s,"sentry-trace":a??o,baggage:p.length>0?p.join(","):void 0}}else return{...r}}function fu(e,t){if(t.response){Ve(e,t.response.status);let n=t.response?.headers&&t.response.headers.get("content-length");if(n){let r=parseInt(n);r>0&&e.setAttribute("http.response_content_length",r)}}else t.error&&e.setStatus({code:2,message:"internal_error"});e.end()}function In(e){return e.split(",").some(t=>t.trim().startsWith(ut))}function du(e){return typeof Headers<"u"&&V(e,Headers)}function lu(e,t,n){let r=Kr(e);return{name:r?`${t} ${Xr(r)}`:t,attributes:mu(e,r,t,n)}}function mu(e,t,n,r){let o={url:e,type:"fetch","http.method":n,[O]:r,[k]:"http.client"};return t&&(yn(t)||(o["http.url"]=t.href,o["server.address"]=t.host),t.search&&(o["http.query"]=t.search),t.hash&&(o["http.fragment"]=t.hash)),o}var Yi={mechanism:{handled:!1,data:{function:"trpcMiddleware"}}};function gu(e){typeof e=="object"&&e!==null&&"ok"in e&&!e.ok&&"error"in e&&Ee(e.error,Yi)}function _u(e={}){return async function(t){let{path:n,type:r,next:o,rawInput:i,getRawInput:s}=t,c=h()?.getOptions(),p={procedure_path:n,procedure_type:r};if(N(p,"__sentry_override_normalization_depth__",1+(c?.normalizeDepth??5)),(e.attachRpcInput!==void 0?e.attachRpcInput:c?.sendDefaultPii)&&(i!==void 0&&(p.input=M(i)),s!==void 0&&typeof s=="function"))try{let f=await s();p.input=M(f)}catch{}return K(f=>(f.setContext("trpc",p),Er({name:`trpc/${n}`,op:"rpc.server",attributes:{[P]:"route",[O]:"auto.rpc.trpc"},forceTransaction:!!e.forceTransaction},async u=>{try{let m=await o();return gu(m),u.end(),m}catch(m){throw Ee(m,Yi),u.end(),m}})))}}var zi=new WeakSet;function hu(e){return zi.has(e)?e:Su(e)?(e.connect=new Proxy(e.connect,{apply(t,n,r){let[o,...i]=r;o.onclose||(o.onclose=()=>{o.sessionId&&Ji(o.sessionId)}),o.onmessage||(o.onmessage=a=>{o.sessionId&&Wi(a)&&Vi(o.sessionId,a.id)});let s=new Proxy(o,{set(a,c,p){return c==="onmessage"?a[c]=new Proxy(p,{apply(f,u,m){let[d]=m;return o.sessionId&&Wi(d)&&Vi(o.sessionId,d.id),Reflect.apply(f,u,m)}}):c==="onclose"?a[c]=new Proxy(p,{apply(f,u,m){return o.sessionId&&Ji(o.sessionId),Reflect.apply(f,u,m)}}):a[c]=p,!0}});return Reflect.apply(t,n,[s,...i])}}),e.resource=new Proxy(e.resource,{apply(t,n,r){let o=r[0],i=r[r.length-1];if(typeof o!="string"||typeof i!="function")return t.apply(n,r);let s=new Proxy(i,{apply(a,c,p){let f=p.find(Zr);return Qr(f,()=>De({name:`mcp-server/resource:${o}`,forceTransaction:!0,attributes:{[k]:"auto.function.mcp-server",[O]:"auto.function.mcp-server",[P]:"route","mcp_server.resource":o}},()=>a.apply(c,p)))}});return Reflect.apply(t,n,[...r.slice(0,-1),s])}}),e.tool=new Proxy(e.tool,{apply(t,n,r){let o=r[0],i=r[r.length-1];if(typeof o!="string"||typeof i!="function")return t.apply(n,r);let s=new Proxy(i,{apply(a,c,p){let f=p.find(Zr);return Qr(f,()=>De({name:`mcp-server/tool:${o}`,forceTransaction:!0,attributes:{[k]:"auto.function.mcp-server",[O]:"auto.function.mcp-server",[P]:"route","mcp_server.tool":o}},()=>a.apply(c,p)))}});return Reflect.apply(t,n,[...r.slice(0,-1),s])}}),e.prompt=new Proxy(e.prompt,{apply(t,n,r){let o=r[0],i=r[r.length-1];if(typeof o!="string"||typeof i!="function")return t.apply(n,r);let s=new Proxy(i,{apply(a,c,p){let f=p.find(Zr);return Qr(f,()=>De({name:`mcp-server/prompt:${o}`,forceTransaction:!0,attributes:{[k]:"auto.function.mcp-server",[O]:"auto.function.mcp-server",[P]:"route","mcp_server.prompt":o}},()=>a.apply(c,p)))}});return Reflect.apply(t,n,[...r.slice(0,-1),s])}}),zi.add(e),e):(g&&l.warn("Did not patch MCP server. Interface is incompatible."),e)}function Su(e){return typeof e=="object"&&e!==null&&"resource"in e&&typeof e.resource=="function"&&"tool"in e&&typeof e.tool=="function"&&"prompt"in e&&typeof e.prompt=="function"&&"connect"in e&&typeof e.connect=="function"}function Wi(e){return typeof e=="object"&&e!==null&&"id"in e&&(typeof e.id=="number"||typeof e.id=="string")}function Zr(e){return typeof e=="object"&&e!==null&&"sessionId"in e&&typeof e.sessionId=="string"&&"requestId"in e&&(typeof e.requestId=="number"||typeof e.requestId=="string")}var An=new Map;function Ji(e){An.delete(e)}function Vi(e,t){let n=X();if(n){let r=An.get(e)??new Map;r.set(t,n),An.set(e,r)}}function Qr(e,t){if(e){let{sessionId:n,requestId:r}=e,o=An.get(n);if(!o)return t();let i=o.get(r);return i?(o.delete(r),Qe(i,()=>t())):t()}return t()}function Eu(e,t={},n=y()){let{message:r,name:o,email:i,url:s,source:a,associatedEventId:c,tags:p}=e,f={contexts:{feedback:{contact_email:i,name:o,message:r,url:s,source:a,associated_event_id:c}},type:"feedback",level:"info",tags:p},u=n?.getClient()||h();return u&&u.emit("beforeSendFeedback",f,t),n.captureEvent(f,t)}var Tu="ConsoleLogs",qi={[O]:"auto.console.logging"},yu=((e={})=>{let t=e.levels||oe;return{name:Tu,setup(n){if(!n.getOptions()._experiments?.enableLogs){g&&l.warn("`_experiments.enableLogs` is not enabled, ConsoleLogs integration disabled");return}Le(({args:r,level:o})=>{if(h()!==n||!t.includes(o))return;if(o==="assert"){if(!r[0]){let s=r.slice(1),a=s.length>0?`Assertion failed: ${Ki(s)}`:"Assertion failed";dn({level:"error",message:a,attributes:qi})}return}let i=o==="log";dn({level:i?"info":o,message:Ki(r),severityNumber:i?10:void 0,attributes:qi})})}}}),Iu=yu;function Ki(e){return"util"in _&&typeof _.util.format=="function"?_.util.format(...e):Re(e," ")}function Au(e){if(e!==void 0)return e>=400&&e<500?"warning":e>=500?"error":void 0}var eo=class extends Error{constructor(t,n="warn"){super(t),this.message=t,this.logLevel=n}};var nt=_;function bu(){try{return new ErrorEvent(""),!0}catch{return!1}}function xu(){try{return new DOMError(""),!0}catch{return!1}}function Ru(){try{return new DOMException(""),!0}catch{return!1}}function Nu(){return"history"in nt&&!!nt.history}function no(){if(!("fetch"in nt))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function to(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function ro(){if(typeof EdgeRuntime=="string")return!0;if(!no())return!1;if(to(nt.fetch))return!0;let e=!1,t=nt.document;if(t&&typeof t.createElement=="function")try{let n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow?.fetch&&(e=to(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){H&&l.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}function Ou(){return"ReportingObserver"in nt}function Cu(){if(!no())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch{return!1}}function vu(e,t){let n="fetch";he(n,e),Se(n,()=>Zi(void 0,t))}function Du(e){let t="fetch-body-resolved";he(t,e),Se(t,()=>Zi(wu))}function Zi(e,t=!1){t&&!ro()||at(_,"fetch",function(n){return function(...r){let o=new Error,{method:i,url:s}=Pu(r),a={args:r,fetchData:{method:i,url:s},startTimestamp:b()*1e3,virtualError:o,headers:Uu(r)};return e||te("fetch",{...a}),n.apply(_,r).then(async c=>(e?e(c):te("fetch",{...a,endTimestamp:b()*1e3,response:c}),c),c=>{if(te("fetch",{...a,endTimestamp:b()*1e3,error:c}),$(c)&&c.stack===void 0&&(c.stack=o.stack,N(c,"framesToPop",1)),c instanceof TypeError&&(c.message==="Failed to fetch"||c.message==="Load failed"||c.message==="NetworkError when attempting to fetch resource."))try{let p=new URL(a.fetchData.url);c.message=`${c.message} (${p.host})`}catch{}throw c})}})}async function Mu(e,t){if(e?.body){let n=e.body,r=n.getReader(),o=setTimeout(()=>{n.cancel().then(null,()=>{})},90*1e3),i=!0;for(;i;){let s;try{s=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);let{done:a}=await r.read();clearTimeout(s),a&&(t(),i=!1)}catch{i=!1}finally{clearTimeout(s)}}clearTimeout(o),r.releaseLock(),n.cancel().then(null,()=>{})}}function wu(e){let t;try{t=e.clone()}catch{return}Mu(t,()=>{te("fetch-body-resolved",{endTimestamp:b()*1e3,response:e})})}function oo(e,t){return!!e&&typeof e=="object"&&!!e[t]}function Xi(e){return typeof e=="string"?e:e?oo(e,"url")?e.url:e.toString?e.toString():"":""}function Pu(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){let[n,r]=e;return{url:Xi(n),method:oo(r,"method")?String(r.method).toUpperCase():"GET"}}let t=e[0];return{url:Xi(t),method:oo(t,"method")?String(t.method).toUpperCase():"GET"}}function Uu(e){let[t,n]=e;try{if(typeof n=="object"&&n!==null&&"headers"in n&&n.headers)return new Headers(n.headers);if(wt(t))return new Headers(t.headers)}catch{}}function io(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function ku(){return"npm"}function ao(){return!io()&&Object.prototype.toString.call(typeof __Process$<"u"?__Process$:0)==="[object process]"}function so(e,t){return e.require(t)}function Fu(e,t=module){let n;try{n=so(t,e)}catch{}if(!n)try{let{cwd:r}=so(t,"process");n=so(t,`${r()}/node_modules/${e}`)}catch{}return n}function Lu(){return typeof window<"u"&&(!ao()||Bu())}function Bu(){return _.process?.type==="renderer"}function bn(e,t=!1){return!(t||e&&!e.startsWith("/")&&!e.match(/^[A-Z]:/)&&!e.startsWith(".")&&!e.match(/^[a-zA-Z]([a-zA-Z0-9.\-+])*:\/\//))&&e!==void 0&&!e.includes("node_modules/")}function es(e){let t=/^\s*[-]{4,}$/,n=/at (?:async )?(?:(.+?)\s+\()?(?:(.+):(\d+):(\d+)?|([^)]+))\)?/;return r=>{let o=r.match(n);if(o){let i,s,a,c,p;if(o[1]){a=o[1];let m=a.lastIndexOf(".");if(a[m-1]==="."&&m--,m>0){i=a.slice(0,m),s=a.slice(m+1);let d=i.indexOf(".Module");d>0&&(a=a.slice(d+1),i=i.slice(0,d))}c=void 0}s&&(c=i,p=s),s==="<anonymous>"&&(p=void 0,a=void 0),a===void 0&&(p=p||"?",a=c?`${c}.${p}`:p);let f=o[2]?.startsWith("file://")?o[2].slice(7):o[2],u=o[5]==="native";return f?.match(/\/[A-Z]:/)&&(f=f.slice(1)),!f&&o[5]&&!u&&(f=o[5]),{filename:f?decodeURI(f):void 0,module:e?e(f):void 0,function:a,lineno:Qi(o[3]),colno:Qi(o[4]),in_app:bn(f||"",u)}}if(r.match(t))return{filename:r}}}function $u(e){return[90,es(e)]}function Qi(e){return parseInt(e||"",10)||void 0}function Hu(e,t,n,r){let o=e(),i=!1,s=!0;return setInterval(()=>{let a=o.getTimeMs();i===!1&&a>t+n&&(i=!0,s&&r()),a<t+n&&(i=!1)},20),{poll:()=>{o.reset()},enabled:a=>{s=a}}}function Gu(e,t,n){let r=t?t.replace(/^file:\/\//,""):void 0,o=e.location.columnNumber?e.location.columnNumber+1:void 0,i=e.location.lineNumber?e.location.lineNumber+1:void 0;return{filename:r,module:n(r),function:e.functionName||"?",colno:o,lineno:i,in_app:r?bn(r):void 0}}var co=class{constructor(t){this._maxSize=t,this._cache=new Map}get size(){return this._cache.size}get(t){let n=this._cache.get(t);if(n!==void 0)return this._cache.delete(t),this._cache.set(t,n),n}set(t,n){this._cache.size>=this._maxSize&&this._cache.delete(this._cache.keys().next().value),this._cache.set(t,n)}remove(t){let n=this._cache.get(t);return n&&this._cache.delete(t),n}clear(){this._cache.clear()}keys(){return Array.from(this._cache.keys())}values(){let t=[];return this._cache.forEach(n=>t.push(n)),t}};function ju(e){let t=_[Symbol.for("@vercel/request-context")],n=t?.get&&t.get()?t.get():{};n?.waitUntil&&n.waitUntil(e)}function Yu(e){return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}export{Za as BaseClient,oe as CONSOLE_LEVELS,et as Client,ke as DEFAULT_ENVIRONMENT,dc as DEFAULT_RETRY_AFTER,_ as GLOBAL_OBJ,co as LRUMap,Ro as MAX_BAGGAGE_STRING_LENGTH,ue as SDK_VERSION,xs as SEMANTIC_ATTRIBUTE_CACHE_HIT,Ns as SEMANTIC_ATTRIBUTE_CACHE_ITEM_SIZE,Rs as SEMANTIC_ATTRIBUTE_CACHE_KEY,Je as SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME,Os as SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD,We as SEMANTIC_ATTRIBUTE_PROFILE_ID,ze as SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME,Ft as SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,Lt as SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT,Bt as SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE,k as SEMANTIC_ATTRIBUTE_SENTRY_OP,O as SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,Wn as SEMANTIC_ATTRIBUTE_SENTRY_PREVIOUS_TRACE_SAMPLE_RATE,ct as SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,P as SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,Cs as SEMANTIC_ATTRIBUTE_URL_FULL,vs as SEMANTIC_LINK_ATTRIBUTE_LINK_TYPE,ut as SENTRY_BAGGAGE_KEY_PREFIX,xo as SENTRY_BAGGAGE_KEY_PREFIX_REGEX,mn as SENTRY_BUFFER_FULL_ERROR,j as SPAN_STATUS_ERROR,pt as SPAN_STATUS_OK,Jn as SPAN_STATUS_UNSET,G as Scope,eo as SentryError,Y as SentryNonRecordingSpan,Fe as SentrySpan,Fr as ServerRuntimeClient,pe as SyncPromise,$t as TRACEPARENT_REGEXP,tn as TRACING_DEFAULTS,_t as UNKNOWN_FUNCTION,dn as _INTERNAL_captureLog,tt as _INTERNAL_flushLogsBuffer,xc as addAutoIpAddressToSession,bc as addAutoIpAddressToUser,xt as addBreadcrumb,zt as addChildSpanToSpan,Le as addConsoleInstrumentationHandler,gs as addContextToFrame,Ga as addEventProcessor,Oe as addExceptionMechanism,kn as addExceptionTypeValue,Du as addFetchEndInstrumentationHandler,vu as addFetchInstrumentationHandler,er as addGlobalErrorInstrumentationHandler,nr as addGlobalUnhandledRejectionInstrumentationHandler,he as addHandler,Xa as addIntegration,ur as addItemToEnvelope,N as addNonEnumerableProperty,zr as applyAggregateErrorsToEvent,Ar as applyScopeDataToEvent,Rc as applySdkMetadata,ft as baggageHeaderToDynamicSamplingContext,qr as basename,Es as browserPerformanceTimeOrigin,Gu as callFrameToStackFrame,xr as captureCheckIn,fp as captureConsoleIntegration,va as captureEvent,Ee as captureException,Eu as captureFeedback,cn as captureMessage,Ya as captureSession,Ut as checkOrSetAlreadyCaught,$a as close,Bn as closeSession,eu as consoleIntegration,Iu as consoleLoggingIntegration,fe as consoleSandbox,ia as continueTrace,jt as convertSpanLinksForEnvelope,Pt as convertToPlainObject,lr as createAttachmentEnvelopeItem,wr as createCheckInEnvelope,vr as createClientReportEnvelope,F as createEnvelope,_r as createEventEnvelope,mr as createEventEnvelopeHeaders,gr as createSessionEnvelope,hr as createSpanEnvelope,dr as createSpanEnvelopeItem,ko as createStackParser,mc as createTransport,de as dateTimestampInSeconds,gp as dedupeIntegration,L as defineIntegration,Rp as dirname,mi as disabledUntil,ps as dropUndefinedKeys,Vt as dsnFromString,z as dsnToString,dt as dynamicSamplingContextToSentryBaggageHeader,Nr as endSession,Xt as envelopeContainsItemType,Zt as envelopeItemTypeToDataCategory,Yu as escapeStringForRegex,Ai as eventFiltersIntegration,kr as eventFromMessage,Ur as eventFromUnknownInput,ln as exceptionFromError,yp as extraErrorDataIntegration,Pn as extractExceptionKeysForMessage,jr as extractQueryParamsFromUrl,Co as extractTraceparentData,bn as filenameIsInApp,at as fill,Ba as flush,Ac as fmt,ce as forEachEnvelopeItem,Uc as functionToStringIntegration,lt as generateSentryTraceHeader,se as generateSpanId,q as generateTraceId,X as getActiveSpan,Au as getBreadcrumbLogLevelFromHttpStatusCode,ve as getCapturedScopesOnSpan,h as getClient,ss as getComponentName,y as getCurrentScope,ga as getDebugImagesForResources,Hn as getDefaultCurrentScope,Gn as getDefaultIsolationScope,ir as getDynamicSamplingContextFromClient,Ze as getDynamicSamplingContextFromScope,D as getDynamicSamplingContextFromSpan,At as getEnvelopeEndpointWithUrlEncodedAuth,Ne as getEventDescription,on as getFilenameToDebugIdMap,qe as getFramesFromEvent,ht as getFunctionName,Yn as getGlobalScope,Ae as getGlobalSingleton,Ka as getIntegrationsToSetup,R as getIsolationScope,is as getLocationHref,v as getMainCarrier,wn as getOriginalFunction,Va as getReportDialogEndpoint,C as getRootSpan,ku as getSDKSource,cu as getSanitizedUrlString,Xr as getSanitizedUrlStringFromUrlObject,Qt as getSdkMetadataForEnvelopeHeader,Ue as getSpanDescendants,yo as getSpanStatusFromHttpCode,Yt as getStatusMessage,kt as getTraceContextFromScope,bt as getTraceData,Oc as getTraceMetaTags,Jt as handleCallbackErrors,Z as hasSpansEnabled,Bs as hasTracingEnabled,Ei as headersToDict,Dn as htmlTreeAsString,vc as httpRequestToRequestData,Lc as inboundFiltersIntegration,fc as initAndBind,pu as instrumentFetchRequest,$i as instrumentSupabaseClient,Fi as isAbsolute,Lu as isBrowser,io as isBrowserBundle,ts as isDOMError,ns as isDOMException,Nn as isElement,Rr as isEnabled,$ as isError,xn as isErrorEvent,Rn as isEvent,Ha as isInitialized,V as isInstanceOf,lo as isMatchingPattern,to as isNativeFunction,ao as isNodeEnv,xe as isParameterizedString,W as isPlainObject,we as isPrimitive,Br as isRateLimited,On as isRegExp,Tc as isSentryRequestUrl,be as isString,Cn as isSyntheticEvent,J as isThenable,yn as isURLObjectRelative,it as isVueViewModel,xp as join,Fa as lastEventId,Kc as linkedErrorsIntegration,Fu as loadModule,ar as logSpanEnd,sr as logSpanStart,l as logger,St as makeDsn,Ec as makeMultiplexedTransport,_c as makeOfflineTransport,Lr as makePromiseBuffer,Ln as makeSession,_o as markFunctionWrapped,Se as maybeInstrument,an as mergeScopeData,Qc as moduleMetadataIntegration,es as node,$u as nodeStackLineParser,M as normalize,ki as normalizePath,qt as normalizeToSize,qs as normalizeUrlToBase,It as notifyEventProcessors,Oo as objectToBaggageHeader,fs as objectify,Ge as originalConsoleMethods,hi as parameterize,No as parseBaggageHeader,Qs as parseEnvelope,gn as parseRetryAfterHeader,ge as parseSampleRate,ms as parseSemver,Pr as parseStackFrames,Kr as parseStringToURLObject,su as parseUrl,br as prepareEvent,ou as profiler,qn as propagationContextFromHeaders,or as registerSpanErrorInstrumentation,yt as rejectedSyncPromise,Vr as relative,ip as requestDataIntegration,ks as resetInstrumentationHandlers,Jr as resolve,ne as resolvedSyncPromise,Op as rewriteFramesIntegration,Re as safeJoin,cr as sampleSpan,fr as serializeEnvelope,bs as setAsyncContextStrategy,Vn as setCapturedScopesOnSpan,Da as setContext,li as setCurrentClient,wa as setExtra,Ma as setExtras,Ve as setHttpStatus,na as setMeasurement,Ua as setTag,Pa as setTags,ka as setUser,Rt as severityLevelFromString,st as snipLine,_e as spanIsSampled,ae as spanTimeInputToSeconds,$s as spanToBaggageHeader,I as spanToJSON,mt as spanToTraceContext,Xn as spanToTraceHeader,Us as stackParserFromStackParserOptions,la as startIdleSpan,Et as startInactiveSpan,aa as startNewTrace,ja as startSession,De as startSpan,Er as startSpanManual,je as stringMatchesSomePattern,Fo as stripSentryFramesAndReverse,au as stripUrlQueryAndFragment,Hp as supabaseIntegration,xu as supportsDOMError,Ru as supportsDOMException,bu as supportsErrorEvent,no as supportsFetch,Nu as supportsHistory,ro as supportsNativeFetch,Cu as supportsReferrerPolicy,Ou as supportsReportingObserver,sa as suppressTracing,Xp as thirdPartyErrorFilterIntegration,en as timedEventsToMeasurements,b as timestampInSeconds,te as triggerHandlers,_u as trpcMiddleware,Q as truncate,$r as updateRateLimits,le as updateSession,Ps as updateSpanName,x as uuid4,ju as vercelWaitUntil,Hu as watchdogTimer,Si as winterCGHeadersToDict,Cc as winterCGRequestToRequestData,Qe as withActiveSpan,zn as withIsolationScope,La as withMonitor,K as withScope,hu as wrapMcpServerWithSentry,Kp as zodErrorsIntegration};
//# sourceMappingURL=core.mjs.map