
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="fc6d384a-3a0d-58b1-85cf-befc7c1fa2d5")}catch(e){}}();
import{j as kt}from"./jsx-runtime-BjG_zV1W.js";const Et=Object.prototype.toString;function Mt(t){switch(Et.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return F(t,Error)}}function k(t,e){return Et.call(t)===`[object ${e}]`}function cn(t){return k(t,"ErrorEvent")}function un(t){return k(t,"DOMError")}function fn(t){return k(t,"DOMException")}function U(t){return k(t,"String")}function Pt(t){return typeof t=="object"&&t!==null&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function dn(t){return t===null||Pt(t)||typeof t!="object"&&typeof t!="function"}function K(t){return k(t,"Object")}function wt(t){return typeof Event<"u"&&F(t,Event)}function Lt(t){return typeof Element<"u"&&F(t,Element)}function jt(t){return k(t,"RegExp")}function V(t){return!!(t&&t.then&&typeof t.then=="function")}function Ut(t){return K(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function F(t,e){try{return t instanceof e}catch{return!1}}function yt(t){return!!(typeof t=="object"&&t!==null&&(t.__isVue||t._isVue))}function P(t,e=0){return typeof t!="string"||e===0||t.length<=e?t:`${t.slice(0,e)}...`}function pn(t,e){if(!Array.isArray(t))return"";const n=[];for(let r=0;r<t.length;r++){const s=t[r];try{yt(s)?n.push("[VueViewModel]"):n.push(String(s))}catch{n.push("[value cannot be serialized]")}}return n.join(e)}function Ft(t,e,n=!1){return U(t)?jt(e)?e.test(t):U(e)?n?t===e:t.includes(e):!1:!1}function ln(t,e=[],n=!1){return e.some(r=>Ft(t,r,n))}const w="8.9.2",g=globalThis;function W(t,e,n){const r=g,s=r.__SENTRY__=r.__SENTRY__||{},i=s[w]=s[w]||{};return i[t]||(i[t]=e())}const C=g,Gt=80;function $t(t,e={}){if(!t)return"<unknown>";try{let n=t;const r=5,s=[];let i=0,o=0;const a=" > ",c=a.length;let u;const d=Array.isArray(e)?e:e.keyAttrs,f=!Array.isArray(e)&&e.maxStringLength||Gt;for(;n&&i++<r&&(u=Bt(n,d),!(u==="html"||i>1&&o+s.length*c+u.length>=f));)s.push(u),o+=u.length,n=n.parentNode;return s.reverse().join(a)}catch{return"<unknown>"}}function Bt(t,e){const n=t,r=[];let s,i,o,a,c;if(!n||!n.tagName)return"";if(C.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());const u=e&&e.length?e.filter(f=>n.getAttribute(f)).map(f=>[f,n.getAttribute(f)]):null;if(u&&u.length)u.forEach(f=>{r.push(`[${f[0]}="${f[1]}"]`)});else if(n.id&&r.push(`#${n.id}`),s=n.className,s&&U(s))for(i=s.split(/\s+/),c=0;c<i.length;c++)r.push(`.${i[c]}`);const d=["aria-label","type","name","title","alt"];for(c=0;c<d.length;c++)o=d[c],a=n.getAttribute(o),a&&r.push(`[${o}="${a}"]`);return r.join("")}function _n(){try{return C.document.location.href}catch{return""}}function gn(t){return C.document&&C.document.querySelector?C.document.querySelector(t):null}function hn(t){if(!C.HTMLElement)return null;let e=t;const n=5;for(let r=0;r<n;r++){if(!e)return null;if(e instanceof HTMLElement){if(e.dataset.sentryComponent)return e.dataset.sentryComponent;if(e.dataset.sentryElement)return e.dataset.sentryElement}e=e.parentNode}return null}const X=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,vt="Sentry Logger ",it=["debug","info","warn","error","log","assert","trace"],ot={};function Ht(t){if(!("console"in g))return t();const e=g.console,n={},r=Object.keys(ot);r.forEach(s=>{const i=ot[s];n[s]=e[s],e[s]=i});try{return t()}finally{r.forEach(s=>{e[s]=n[s]})}}function zt(){let t=!1;const e={enable:()=>{t=!0},disable:()=>{t=!1},isEnabled:()=>t};return X?it.forEach(n=>{e[n]=(...r)=>{t&&Ht(()=>{g.console[n](`${vt}[${n}]:`,...r)})}}):it.forEach(n=>{e[n]=()=>{}}),e}const x=zt();function mn(t,e,n){if(!(e in t))return;const r=t[e],s=n(r);typeof s=="function"&&Yt(s,r),t[e]=s}function R(t,e,n){try{Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}catch{X&&x.log(`Failed to add non-enumerable property "${e}" to object`,t)}}function Yt(t,e){try{const n=e.prototype||{};t.prototype=e.prototype=n,R(t,"__sentry_original__",e)}catch{}}function Sn(t){return t.__sentry_original__}function En(t){return Object.keys(t).map(e=>`${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`).join("&")}function bt(t){if(Mt(t))return{message:t.message,name:t.name,stack:t.stack,...ct(t)};if(wt(t)){const e={type:t.type,target:at(t.target),currentTarget:at(t.currentTarget),...ct(t)};return typeof CustomEvent<"u"&&F(t,CustomEvent)&&(e.detail=t.detail),e}else return t}function at(t){try{return Lt(t)?$t(t):Object.prototype.toString.call(t)}catch{return"<unknown>"}}function ct(t){if(typeof t=="object"&&t!==null){const e={};for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}else return{}}function yn(t,e=40){const n=Object.keys(bt(t));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=e)return P(n[0],e);for(let r=n.length;r>0;r--){const s=n.slice(0,r).join(", ");if(!(s.length>e))return r===n.length?s:P(s,e)}return""}function E(t){return v(t,new Map)}function v(t,e){if(Jt(t)){const n=e.get(t);if(n!==void 0)return n;const r={};e.set(t,r);for(const s of Object.keys(t))typeof t[s]<"u"&&(r[s]=v(t[s],e));return r}if(Array.isArray(t)){const n=e.get(t);if(n!==void 0)return n;const r=[];return e.set(t,r),t.forEach(s=>{r.push(v(s,e))}),r}return t}function Jt(t){if(!K(t))return!1;try{const e=Object.getPrototypeOf(t).constructor.name;return!e||e==="Object"}catch{return!0}}const Tt=50,qt="?",ut=/\(error: (.*)\)/,ft=/captureMessage|captureException/;function Kt(...t){const e=t.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,s=0)=>{const i=[],o=n.split(`
`);for(let a=r;a<o.length;a++){const c=o[a];if(c.length>1024)continue;const u=ut.test(c)?c.replace(ut,"$1"):c;if(!u.match(/\S*Error: /)){for(const d of e){const f=d(u);if(f){i.push(f);break}}if(i.length>=Tt+s)break}}return Vt(i.slice(s))}}function bn(t){return Array.isArray(t)?Kt(...t):t}function Vt(t){if(!t.length)return[];const e=Array.from(t);return/sentryWrapped/.test(e[e.length-1].function||"")&&e.pop(),e.reverse(),ft.test(e[e.length-1].function||"")&&(e.pop(),ft.test(e[e.length-1].function||"")&&e.pop()),e.slice(0,Tt).map(n=>({...n,filename:n.filename||e[e.length-1].filename,function:n.function||qt}))}const B="<anonymous>";function Wt(t){try{return!t||typeof t!="function"?B:t.name||B}catch{return B}}function Tn(t){const e=t.exception;if(e){const n=[];try{return e.values.forEach(r=>{r.stacktrace.frames&&n.push(...r.stacktrace.frames)}),n}catch{return}}}const It=1e3;function Z(){return Date.now()/It}function Xt(){const{performance:t}=g;if(!t||!t.now)return Z;const e=Date.now()-t.now(),n=t.timeOrigin==null?e:t.timeOrigin;return()=>(n+t.now())/It}const Q=Xt(),In=(()=>{const{performance:t}=g;if(!t||!t.now)return;const e=3600*1e3,n=t.now(),r=Date.now(),s=t.timeOrigin?Math.abs(t.timeOrigin+n-r):e,i=s<e,o=t.timing&&t.timing.navigationStart,c=typeof o=="number"?Math.abs(o+n-r):e,u=c<e;return i||u?s<=c?t.timeOrigin:o:r})();function Zt(){const t=typeof WeakSet=="function",e=t?new WeakSet:[];function n(s){if(t)return e.has(s)?!0:(e.add(s),!1);for(let i=0;i<e.length;i++)if(e[i]===s)return!0;return e.push(s),!1}function r(s){if(t)e.delete(s);else for(let i=0;i<e.length;i++)if(e[i]===s){e.splice(i,1);break}}return[n,r]}function p(){const t=g,e=t.crypto||t.msCrypto;let n=()=>Math.random()*16;try{if(e&&e.randomUUID)return e.randomUUID().replace(/-/g,"");e&&e.getRandomValues&&(n=()=>{const r=new Uint8Array(1);return e.getRandomValues(r),r[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,r=>(r^(n()&15)>>r/4).toString(16))}function At(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0}function An(t){const{message:e,event_id:n}=t;if(e)return e;const r=At(t);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function Nn(t,e,n){const r=t.exception=t.exception||{},s=r.values=r.values||[],i=s[0]=s[0]||{};i.value||(i.value=e||""),i.type||(i.type="Error")}function Qt(t,e){const n=At(t);if(!n)return;const r={type:"generic",handled:!0},s=n.mechanism;if(n.mechanism={...r,...s,...e},e&&"data"in e){const i={...s&&s.data,...e.data};n.mechanism.data=i}}function On(t){if(t&&t.__sentry_captured__)return!0;try{R(t,"__sentry_captured__",!0)}catch{}return!1}function te(t){return Array.isArray(t)?t:[t]}function T(t,e=100,n=1/0){try{return H("",t,e,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function ee(t,e=3,n=100*1024){const r=T(t,e);return ie(r)>n?ee(t,e-1,n):r}function H(t,e,n=1/0,r=1/0,s=Zt()){const[i,o]=s;if(e==null||["number","boolean","string"].includes(typeof e)&&!Number.isNaN(e))return e;const a=ne(t,e);if(!a.startsWith("[object "))return a;if(e.__sentry_skip_normalization__)return e;const c=typeof e.__sentry_override_normalization_depth__=="number"?e.__sentry_override_normalization_depth__:n;if(c===0)return a.replace("object ","");if(i(e))return"[Circular ~]";const u=e;if(u&&typeof u.toJSON=="function")try{const l=u.toJSON();return H("",l,c-1,r,s)}catch{}const d=Array.isArray(e)?[]:{};let f=0;const h=bt(e);for(const l in h){if(!Object.prototype.hasOwnProperty.call(h,l))continue;if(f>=r){d[l]="[MaxProperties ~]";break}const O=h[l];d[l]=H(l,O,c-1,r,s),f++}return o(e),d}function ne(t,e){try{if(t==="domain"&&e&&typeof e=="object"&&e._events)return"[Domain]";if(t==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&e===global)return"[Global]";if(typeof window<"u"&&e===window)return"[Window]";if(typeof document<"u"&&e===document)return"[Document]";if(yt(e))return"[VueViewModel]";if(Ut(e))return"[SyntheticEvent]";if(typeof e=="number"&&e!==e)return"[NaN]";if(typeof e=="function")return`[Function: ${Wt(e)}]`;if(typeof e=="symbol")return`[${String(e)}]`;if(typeof e=="bigint")return`[BigInt: ${String(e)}]`;const n=re(e);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function re(t){const e=Object.getPrototypeOf(t);return e?e.constructor.name:"null prototype"}function se(t){return~-encodeURI(t).split(/%..|./).length}function ie(t){return se(JSON.stringify(t))}var y;(function(t){t[t.PENDING=0]="PENDING";const n=1;t[t.RESOLVED=n]="RESOLVED";const r=2;t[t.REJECTED=r]="REJECTED"})(y||(y={}));function Cn(t){return new S(e=>{e(t)})}function xn(t){return new S((e,n)=>{n(t)})}class S{constructor(e){S.prototype.__init.call(this),S.prototype.__init2.call(this),S.prototype.__init3.call(this),S.prototype.__init4.call(this),this._state=y.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(n){this._reject(n)}}then(e,n){return new S((r,s)=>{this._handlers.push([!1,i=>{if(!e)r(i);else try{r(e(i))}catch(o){s(o)}},i=>{if(!n)s(i);else try{r(n(i))}catch(o){s(o)}}]),this._executeHandlers()})}catch(e){return this.then(n=>n,e)}finally(e){return new S((n,r)=>{let s,i;return this.then(o=>{i=!1,s=o,e&&e()},o=>{i=!0,s=o,e&&e()}).then(()=>{if(i){r(s);return}n(s)})})}__init(){this._resolve=e=>{this._setResult(y.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(y.REJECTED,e)}}__init3(){this._setResult=(e,n)=>{if(this._state===y.PENDING){if(V(n)){n.then(this._resolve,this._reject);return}this._state=e,this._value=n,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===y.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach(n=>{n[0]||(this._state===y.RESOLVED&&n[1](this._value),this._state===y.REJECTED&&n[2](this._value),n[0]=!0)})}}}const Rn="baggage",Nt="sentry-",oe=/^sentry-/,ae=8192;function ce(t){const e=ue(t);if(!e)return;const n=Object.entries(e).reduce((r,[s,i])=>{if(s.match(oe)){const o=s.slice(Nt.length);r[o]=i}return r},{});if(Object.keys(n).length>0)return n}function Dn(t){if(!t)return;const e=Object.entries(t).reduce((n,[r,s])=>(s&&(n[`${Nt}${r}`]=s),n),{});return fe(e)}function ue(t){if(!(!t||!U(t)&&!Array.isArray(t)))return Array.isArray(t)?t.reduce((e,n)=>{const r=dt(n);for(const s of Object.keys(r))e[s]=r[s];return e},{}):dt(t)}function dt(t){return t.split(",").map(e=>e.split("=").map(n=>decodeURIComponent(n.trim()))).reduce((e,[n,r])=>(e[n]=r,e),{})}function fe(t){if(Object.keys(t).length!==0)return Object.entries(t).reduce((e,[n,r],s)=>{const i=`${encodeURIComponent(n)}=${encodeURIComponent(r)}`,o=s===0?i:`${e},${i}`;return o.length>ae?(X&&x.warn(`Not adding key: ${n} with val: ${r} to baggage header due to exceeding baggage size limits.`),e):o},"")}const de=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function pe(t){if(!t)return;const e=t.match(de);if(!e)return;let n;return e[3]==="1"?n=!0:e[3]==="0"&&(n=!1),{traceId:e[1],parentSampled:n,parentSpanId:e[2]}}function kn(t,e){const n=pe(t),r=ce(e),{traceId:s,parentSpanId:i,parentSampled:o}=n||{};return n?{traceId:s||p(),parentSpanId:i||p().substring(16),spanId:p().substring(16),sampled:o,dsc:r||{}}:{traceId:s||p(),spanId:p().substring(16)}}function le(t=p(),e=p().substring(16),n){let r="";return n!==void 0&&(r=n?"-1":"-0"),`${t}-${e}${r}`}function pt(){return{traceId:p(),spanId:p().substring(16)}}const _e=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function j(){return tt(g),g}function tt(t){const e=t.__SENTRY__=t.__SENTRY__||{};return e.version=e.version||w,e[w]=e[w]||{}}function ge(t){const e=Q(),n={sid:p(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>me(n)};return t&&G(n,t),n}function G(t,e={}){if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),!t.did&&!e.did&&(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||Q(),e.abnormal_mechanism&&(t.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=e.sid.length===32?e.sid:p()),e.init!==void 0&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),typeof e.started=="number"&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if(typeof e.duration=="number")t.duration=e.duration;else{const n=t.timestamp-t.started;t.duration=n>=0?n:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),typeof e.errors=="number"&&(t.errors=e.errors),e.status&&(t.status=e.status)}function he(t,e){let n={};t.status==="ok"&&(n={status:"exited"}),G(t,n)}function me(t){return E({sid:`${t.sid}`,init:t.init,started:new Date(t.started*1e3).toISOString(),timestamp:new Date(t.timestamp*1e3).toISOString(),status:t.status,errors:t.errors,did:typeof t.did=="number"||typeof t.did=="string"?`${t.did}`:void 0,duration:t.duration,abnormal_mechanism:t.abnormal_mechanism,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}})}const z="_sentrySpan";function lt(t,e){e?R(t,z,e):delete t[z]}function Y(t){return t[z]}const Se=100;class et{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=pt()}clone(){const e=new et;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,lt(e,Y(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&G(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,n){return this._tags={...this._tags,[e]:n},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,n){return this._extra={...this._extra,[e]:n},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,n){return n===null?delete this._contexts[e]:this._contexts[e]=n,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const n=typeof e=="function"?e(this):e,[r,s]=n instanceof b?[n.getScopeData(),n.getRequestSession()]:K(n)?[e,e.requestSession]:[],{tags:i,extra:o,user:a,contexts:c,level:u,fingerprint:d=[],propagationContext:f}=r||{};return this._tags={...this._tags,...i},this._extra={...this._extra,...o},this._contexts={...this._contexts,...c},a&&Object.keys(a).length&&(this._user=a),u&&(this._level=u),d.length&&(this._fingerprint=d),f&&(this._propagationContext=f),s&&(this._requestSession=s),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._requestSession=void 0,this._session=void 0,lt(this,void 0),this._attachments=[],this._propagationContext=pt(),this._notifyScopeListeners(),this}addBreadcrumb(e,n){const r=typeof n=="number"?n:Se;if(r<=0)return this;const s={timestamp:Z(),...e},i=this._breadcrumbs;return i.push(s),this._breadcrumbs=i.length>r?i.slice(-r):i,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,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:Y(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,n){const r=n&&n.event_id?n.event_id:p();if(!this._client)return x.warn("No client configured on scope - will not capture exception!"),r;const s=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:s,...n,event_id:r},this),r}captureMessage(e,n,r){const s=r&&r.event_id?r.event_id:p();if(!this._client)return x.warn("No client configured on scope - will not capture message!"),s;const i=new Error(e);return this._client.captureMessage(e,n,{originalException:e,syntheticException:i,...r,event_id:s},this),s}captureEvent(e,n){const r=n&&n.event_id?n.event_id:p();return this._client?(this._client.captureEvent(e,{...n,event_id:r},this),r):(x.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}}const b=et;function Ee(){return W("defaultCurrentScope",()=>new b)}function ye(){return W("defaultIsolationScope",()=>new b)}class be{constructor(e,n){let r;e?r=e:r=new b;let s;n?s=n:s=new b,this._stack=[{scope:r}],this._isolationScope=s}withScope(e){const n=this._pushScope();let r;try{r=e(n)}catch(s){throw this._popScope(),s}return V(r)?r.then(s=>(this._popScope(),s),s=>{throw this._popScope(),s}):(this._popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const e=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:e}),e}_popScope(){return this.getStack().length<=1?!1:!!this.getStack().pop()}}function D(){const t=j(),e=tt(t);return e.stack=e.stack||new be(Ee(),ye())}function Te(t){return D().withScope(t)}function Ie(t,e){const n=D();return n.withScope(()=>(n.getStackTop().scope=t,e(t)))}function _t(t){return D().withScope(()=>t(D().getIsolationScope()))}function Ae(){return{withIsolationScope:_t,withScope:Te,withSetScope:Ie,withSetIsolationScope:(t,e)=>_t(e),getCurrentScope:()=>D().getScope(),getIsolationScope:()=>D().getIsolationScope()}}function $(t){const e=tt(t);return e.acs?e.acs:Ae()}function A(){const t=j();return $(t).getCurrentScope()}function N(){const t=j();return $(t).getIsolationScope()}function Ne(){return W("globalScope",()=>new b)}function Mn(...t){const e=j(),n=$(e);if(t.length===2){const[r,s]=t;return r?n.withSetScope(r,s):n.withScope(s)}return n.withScope(t[0])}function nt(){return A().getClient()}const Oe="_sentryMetrics";function Ce(t){const e=t[Oe];if(!e)return;const n={};for(const[,[r,s]]of e)n[r]||(n[r]=[]),n[r].push(E(s));return n}const xe="sentry.source",Re="sentry.sample_rate",De="sentry.op",ke="sentry.origin",Pn="sentry.idle_span_finish_reason",wn="sentry.measurement_unit",Ln="sentry.measurement_value",jn="sentry.profile_id",Un="sentry.exclusive_time",Me=0,Ot=1,_=2;function Pe(t){if(t<400&&t>=100)return{code:Ot};if(t>=400&&t<500)switch(t){case 401:return{code:_,message:"unauthenticated"};case 403:return{code:_,message:"permission_denied"};case 404:return{code:_,message:"not_found"};case 409:return{code:_,message:"already_exists"};case 413:return{code:_,message:"failed_precondition"};case 429:return{code:_,message:"resource_exhausted"};case 499:return{code:_,message:"cancelled"};default:return{code:_,message:"invalid_argument"}}if(t>=500&&t<600)switch(t){case 501:return{code:_,message:"unimplemented"};case 503:return{code:_,message:"unavailable"};case 504:return{code:_,message:"deadline_exceeded"};default:return{code:_,message:"internal_error"}}return{code:_,message:"unknown_error"}}function Fn(t,e){t.setAttribute("http.response.status_code",e);const n=Pe(e);n.message!=="unknown_error"&&t.setStatus(n)}const Gn=0,we=1;function $n(t){const{spanId:e,traceId:n}=t.spanContext(),{data:r,op:s,parent_span_id:i,status:o,origin:a}=L(t);return E({parent_span_id:i,span_id:e,trace_id:n,data:r,op:s,status:o,origin:a})}function Le(t){const{spanId:e,traceId:n}=t.spanContext(),{parent_span_id:r}=L(t);return E({parent_span_id:r,span_id:e,trace_id:n})}function Bn(t){const{traceId:e,spanId:n}=t.spanContext(),r=rt(t);return le(e,n,r)}function gt(t){return typeof t=="number"?ht(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?ht(t.getTime()):Q()}function ht(t){return t>9999999999?t/1e3:t}function L(t){if(Ue(t))return t.getSpanJSON();try{const{spanId:e,traceId:n}=t.spanContext();if(je(t)){const{attributes:r,startTime:s,name:i,endTime:o,parentSpanId:a,status:c}=t;return E({span_id:e,trace_id:n,data:r,description:i,parent_span_id:a,start_timestamp:gt(s),timestamp:gt(o)||void 0,status:Fe(c),op:r[De],origin:r[ke],_metrics_summary:Ce(t)})}return{span_id:e,trace_id:n}}catch{return{}}}function je(t){const e=t;return!!e.attributes&&!!e.startTime&&!!e.name&&!!e.endTime&&!!e.status}function Ue(t){return typeof t.getSpanJSON=="function"}function rt(t){const{traceFlags:e}=t.spanContext();return e===we}function Fe(t){if(!(!t||t.code===Me))return t.code===Ot?"ok":t.message||"unknown_error"}const I="_sentryChildSpans",J="_sentryRootSpan";function vn(t,e){const n=t[J]||t;R(e,J,n),t[I]?t[I].add(e):R(t,I,new Set([e]))}function Hn(t,e){t[I]&&t[I].delete(e)}function zn(t){const e=new Set;function n(r){if(!e.has(r)&&rt(r)){e.add(r);const s=r[I]?Array.from(r[I]):[];for(const i of s)n(i)}}return n(t),Array.from(e)}function Ct(t){return t[J]||t}function Yn(){const t=j(),e=$(t);return e.getActiveSpan?e.getActiveSpan():Y(A())}const st="production",xt="_frozenDsc";function Jn(t,e){R(t,xt,e)}function Ge(t,e){const n=e.getOptions(),{publicKey:r}=e.getDsn()||{},s=E({environment:n.environment||st,release:n.release,public_key:r,trace_id:t});return e.emit("createDsc",s),s}function $e(t){const e=nt();if(!e)return{};const n=Ge(L(t).trace_id||"",e),r=Ct(t);if(!r)return n;const s=r[xt];if(s)return s;const i=L(r),o=i.data||{},a=o[Re];a!=null&&(n.sample_rate=`${a}`);const c=o[xe];return c&&c!=="url"&&(n.transaction=i.description),n.sampled=String(rt(r)),e.emit("createDsc",n),n}function q(t,e,n,r=0){return new S((s,i)=>{const o=t[r];if(e===null||typeof o!="function")s(e);else{const a=o({...e},n);_e&&o.id&&a===null&&x.log(`Event processor "${o.id}" dropped event`),V(a)?a.then(c=>q(t,c,n,r+1).then(s)).then(null,i):q(t,a,n,r+1).then(s).then(null,i)}})}function Be(t,e){const{fingerprint:n,span:r,breadcrumbs:s,sdkProcessingMetadata:i}=e;ve(t,e),r&&Ye(t,r),Je(t,n),He(t,s),ze(t,i)}function mt(t,e){const{extra:n,tags:r,user:s,contexts:i,level:o,sdkProcessingMetadata:a,breadcrumbs:c,fingerprint:u,eventProcessors:d,attachments:f,propagationContext:h,transactionName:l,span:O}=e;M(t,"extra",n),M(t,"tags",r),M(t,"user",s),M(t,"contexts",i),M(t,"sdkProcessingMetadata",a),o&&(t.level=o),l&&(t.transactionName=l),O&&(t.span=O),c.length&&(t.breadcrumbs=[...t.breadcrumbs,...c]),u.length&&(t.fingerprint=[...t.fingerprint,...u]),d.length&&(t.eventProcessors=[...t.eventProcessors,...d]),f.length&&(t.attachments=[...t.attachments,...f]),t.propagationContext={...t.propagationContext,...h}}function M(t,e,n){if(n&&Object.keys(n).length){t[e]={...t[e]};for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[e][r]=n[r])}}function ve(t,e){const{extra:n,tags:r,user:s,contexts:i,level:o,transactionName:a}=e,c=E(n);c&&Object.keys(c).length&&(t.extra={...c,...t.extra});const u=E(r);u&&Object.keys(u).length&&(t.tags={...u,...t.tags});const d=E(s);d&&Object.keys(d).length&&(t.user={...d,...t.user});const f=E(i);f&&Object.keys(f).length&&(t.contexts={...f,...t.contexts}),o&&(t.level=o),a&&t.type!=="transaction"&&(t.transaction=a)}function He(t,e){const n=[...t.breadcrumbs||[],...e];t.breadcrumbs=n.length?n:void 0}function ze(t,e){t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...e}}function Ye(t,e){t.contexts={trace:Le(e),...t.contexts},t.sdkProcessingMetadata={dynamicSamplingContext:$e(e),...t.sdkProcessingMetadata};const n=Ct(e),r=L(n).description;r&&!t.transaction&&t.type==="transaction"&&(t.transaction=r)}function Je(t,e){t.fingerprint=t.fingerprint?te(t.fingerprint):[],e&&(t.fingerprint=t.fingerprint.concat(e)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}function qn(t,e,n,r,s,i){const{normalizeDepth:o=3,normalizeMaxBreadth:a=1e3}=t,c={...e,event_id:e.event_id||n.event_id||p(),timestamp:e.timestamp||Z()},u=n.integrations||t.integrations.map(m=>m.name);qe(c,t),We(c,u),e.type===void 0&&Ke(c,t.stackParser);const d=Ze(r,n.captureContext);n.mechanism&&Qt(c,n.mechanism);const f=s?s.getEventProcessors():[],h=Ne().getScopeData();if(i){const m=i.getScopeData();mt(h,m)}if(d){const m=d.getScopeData();mt(h,m)}const l=[...n.attachments||[],...h.attachments];l.length&&(n.attachments=l),Be(c,h);const O=[...f,...h.eventProcessors];return q(O,c,n).then(m=>(m&&Ve(m),typeof o=="number"&&o>0?Xe(m,o,a):m))}function qe(t,e){const{environment:n,release:r,dist:s,maxValueLength:i=250}=e;"environment"in t||(t.environment="environment"in e?n:st),t.release===void 0&&r!==void 0&&(t.release=r),t.dist===void 0&&s!==void 0&&(t.dist=s),t.message&&(t.message=P(t.message,i));const o=t.exception&&t.exception.values&&t.exception.values[0];o&&o.value&&(o.value=P(o.value,i));const a=t.request;a&&a.url&&(a.url=P(a.url,i))}const St=new WeakMap;function Ke(t,e){const n=g._sentryDebugIds;if(!n)return;let r;const s=St.get(e);s?r=s:(r=new Map,St.set(e,r));const i=Object.keys(n).reduce((o,a)=>{let c;const u=r.get(a);u?c=u:(c=e(a),r.set(a,c));for(let d=c.length-1;d>=0;d--){const f=c[d];if(f.filename){o[f.filename]=n[a];break}}return o},{});try{t.exception.values.forEach(o=>{o.stacktrace.frames.forEach(a=>{a.filename&&(a.debug_id=i[a.filename])})})}catch{}}function Ve(t){const e={};try{t.exception.values.forEach(r=>{r.stacktrace.frames.forEach(s=>{s.debug_id&&(s.abs_path?e[s.abs_path]=s.debug_id:s.filename&&(e[s.filename]=s.debug_id),delete s.debug_id)})})}catch{}if(Object.keys(e).length===0)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];const n=t.debug_meta.images;Object.keys(e).forEach(r=>{n.push({type:"sourcemap",code_file:r,debug_id:e[r]})})}function We(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}function Xe(t,e,n){if(!t)return null;const r={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(s=>({...s,...s.data&&{data:T(s.data,e,n)}}))},...t.user&&{user:T(t.user,e,n)},...t.contexts&&{contexts:T(t.contexts,e,n)},...t.extra&&{extra:T(t.extra,e,n)}};return t.contexts&&t.contexts.trace&&r.contexts&&(r.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(r.contexts.trace.data=T(t.contexts.trace.data,e,n))),t.spans&&(r.spans=t.spans.map(s=>({...s,...s.data&&{data:T(s.data,e,n)}}))),r}function Ze(t,e){if(!e)return t;const n=t?t.clone():new b;return n.update(e),n}function Qe(t){if(t)return tn(t)?{captureContext:t}:nn(t)?{captureContext:t}:t}function tn(t){return t instanceof b||typeof t=="function"}const en=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function nn(t){return Object.keys(t).some(e=>en.includes(e))}function Kn(t,e){return A().captureException(t,Qe(e))}function Vn(t,e){return A().captureEvent(t,e)}function Wn(t,e){N().setContext(t,e)}function Xn(t,e){N().setTag(t,e)}function Zn(){return N().lastEventId()}function Qn(t){N().addEventProcessor(t)}function tr(t){const e=nt(),n=N(),r=A(),{release:s,environment:i=st}=e&&e.getOptions()||{},{userAgent:o}=g.navigator||{},a=ge({release:s,environment:i,user:r.getUser()||n.getUser(),...o&&{userAgent:o},...t}),c=n.getSession();return c&&c.status==="ok"&&G(c,{status:"exited"}),Rt(),n.setSession(a),r.setSession(a),a}function Rt(){const t=N(),e=A(),n=e.getSession()||t.getSession();n&&he(n),Dt(),t.setSession(),e.setSession()}function Dt(){const t=N(),e=A(),n=nt(),r=e.getSession()||t.getSession();r&&n&&n.captureSession(r)}function er(t=!1){if(t){Rt();return}Dt()}let rn={};function sn(){return typeof document<"u"?window.__AppGlobals__:rn}function nr(){const t=sn();return kt.jsx("script",{dangerouslySetInnerHTML:{__html:`window.__AppGlobals__=${JSON.stringify(t)};`}})}export{vn as $,Q as A,Mt as B,it as C,X as D,R as E,xn as F,g as G,S as H,Z as I,_e as J,_ as K,rt as L,$e as M,Ln as N,wn as O,ke as P,De as Q,we as R,xe as S,Gn as T,gt as U,Fe as V,Ce as W,jn as X,Un as Y,zn as Z,$n as _,nt as a,Jn as a0,j as a1,$ as a2,Re as a3,Y as a4,Mn as a5,lt as a6,Pn as a7,Hn as a8,En as a9,hn as aA,U as aB,Kt as aC,qt as aD,pn as aE,Vn as aF,_n as aG,bn as aH,tr as aI,er as aJ,Zn as aK,kn as aL,gn as aM,pt as aN,nr as aO,te as aa,On as ab,dn as ac,G as ad,Ge as ae,V as af,K as ag,Pt as ah,w as ai,Sn as aj,An as ak,Tn as al,Bn as am,le as an,Dn as ao,Rn as ap,Fn as aq,Yt as ar,Nn as as,Qt as at,cn as au,un as av,fn as aw,wt as ax,ee as ay,yn as az,Ht as b,Kn as c,E as d,Yn as e,Ct as f,sn as g,$t as h,Qn as i,Wn as j,mn as k,x as l,A as m,T as n,In as o,qn as p,N as q,Cn as r,L as s,ln as t,p as u,Xn as v,F as w,P as x,Wt as y,ot as z};
//# sourceMappingURL=AppGlobals-2Br-8bZs.js.map

//# debugId=fc6d384a-3a0d-58b1-85cf-befc7c1fa2d5
