!function(){"use strict";var t={};t.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}();function e(t){const e=t.protocol?`${t.protocol}:`:"",n=t.port?`:${t.port}`:"";return`${e}//${t.host}${n}${t.path?`/${t.path}`:""}/api/`}function n(t,n,r){return n||`${function(t){return`${e(t)}${t.projectId}/envelope/`}(t)}?${function(t,e){const n={sentry_version:"7"};return t.publicKey&&(n.sentry_key=t.publicKey),e&&(n.sentry_client=`${e.name}/${e.version}`),new URLSearchParams(n).toString()}(t,r)}`}const r="production",s="10.34.0",i=globalThis;function o(){return a(i),i}function a(t){const e=t.__SENTRY__=t.__SENTRY__||{};return e.version=e.version||s,e[s]=e[s]||{}}function c(t,e,n=i){const r=n.__SENTRY__=n.__SENTRY__||{},o=r[s]=r[s]||{};return o[t]||(o[t]=e())}const u=Object.prototype.toString;function f(t){switch(u.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return b(t,Error)}}function p(t,e){return u.call(t)===`[object ${e}]`}function d(t){return p(t,"ErrorEvent")}function l(t){return p(t,"DOMError")}function h(t){return p(t,"String")}function _(t){return"object"==typeof t&&null!==t&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function m(t){return null===t||_(t)||"object"!=typeof t&&"function"!=typeof t}function g(t){return p(t,"Object")}function y(t){return"undefined"!=typeof Event&&b(t,Event)}function v(t){return Boolean(t?.then&&"function"==typeof t.then)}function b(t,e){try{return t instanceof e}catch{return!1}}const E=i;function S(t,e){const n=t,r=[];if(!n?.tagName)return"";if(E.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 s=e?.length?e.filter(t=>n.getAttribute(t)).map(t=>[t,n.getAttribute(t)]):null;if(s?.length)s.forEach(t=>{r.push(`[${t[0]}="${t[1]}"]`)});else{n.id&&r.push(`#${n.id}`);const t=n.className;if(t&&h(t)){const e=t.split(/\s+/);for(const t of e)r.push(`.${t}`)}}const i=["aria-label","type","name","title","alt"];for(const t of i){const e=n.getAttribute(t);e&&r.push(`[${t}="${e}"]`)}return r.join("")}function x(){try{return E.document.location.href}catch{return""}}const k={};function w(t){if(!("console"in i))return t();const e=i.console,n={},r=Object.keys(k);r.forEach(t=>{const r=k[t];n[t]=e[t],e[t]=r});try{return t()}finally{r.forEach(t=>{e[t]=n[t]})}}function O(...t){P("error",...t)}function P(t,...e){}function $(t,e,n){if(!(e in t))return;const r=t[e];if("function"!=typeof r)return;const s=n(r);"function"==typeof s&&C(s,r);try{t[e]=s}catch{}}function j(t,e,n){try{Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}catch{}}function C(t,e){try{const n=e.prototype||{};t.prototype=e.prototype=n,j(t,"__sentry_original__",e)}catch{}}function M(t){return t.__sentry_original__}function A(t){if(f(t))return{message:t.message,name:t.name,stack:t.stack,...I(t)};if(y(t)){const e={type:t.type,target:T(t.target),currentTarget:T(t.currentTarget),...I(t)};return"undefined"!=typeof CustomEvent&&b(t,CustomEvent)&&(e.detail=t.detail),e}return t}function T(t){try{return e=t,"undefined"!=typeof Element&&b(e,Element)?function(t,e={}){if(!t)return"";try{let n=t;const r=5,s=[];let i=0,o=0;const a=" > ",c=a.length;let u;const f=Array.isArray(e)?e:e.keyAttrs,p=!Array.isArray(e)&&e.maxStringLength||80;for(;n&&i++1&&o+s.length*c+u.length>=p));)s.push(u),o+=u.length,n=n.parentNode;return s.reverse().join(a)}catch{return""}}(t):Object.prototype.toString.call(t)}catch{return""}var e}function I(t){if("object"==typeof t&&null!==t){const e={};for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}return{}}let N,D;function L(t){if(N!==undefined)return N?N(t):t();const e=Symbol["for"]("__SENTRY_SAFE_RANDOM_ID_WRAPPER__"),n=i;return e in n&&"function"==typeof n[e]?(N=n[e],N(t)):(N=null,t())}function R(){return L(()=>Math.random())}function U(){return L(()=>Date.now())}function z(t=function(){const t=i;return t.crypto||t.msCrypto}()){try{if(t?.randomUUID)return L(()=>t.randomUUID()).replace(/-/g,"")}catch{}return D||(D=[1e7]+1e3+4e3+8e3+1e11),D.replace(/[018]/g,t=>(t^(16*R()&15)>>t/4).toString(16))}function F(t){return t.exception?.values?.[0]}function B(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=n||"Error")}function W(t,e){const n=F(t);if(!n)return;const r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...e},e&&"data"in e){const t={...r?.data,...e.data};n.mechanism.data=t}}function q(t){if(function(t){try{return t.__sentry_captured__}catch{}}(t))return!0;try{j(t,"__sentry_captured__",!0)}catch{}return!1}function H(){return U()/1e3}let J;function V(){return(J??(J=function(){const{performance:t}=i;if(!t?.now||!t.timeOrigin)return H;const e=t.timeOrigin;return()=>(e+L(()=>t.now()))/1e3}()))()}function Y(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||V(),e.abnormal_mechanism&&(t.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=32===e.sid.length?e.sid:z()),e.init!==undefined&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),"number"==typeof e.started&&(t.started=e.started),t.ignoreDuration)t.duration=undefined;else if("number"==typeof e.duration)t.duration=e.duration;else{const e=t.timestamp-t.started;t.duration=e>=0?e: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),"number"==typeof e.errors&&(t.errors=e.errors),e.status&&(t.status=e.status)}function K(t,e,n=2){if(!e||"object"!=typeof e||n<=0)return e;if(t&&0===Object.keys(e).length)return t;const r={...t};for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=K(r[t],e[t],n-1));return r}function X(){return z()}function G(){return z().substring(16)}const Z="_sentrySpan";function Q(t,e){e?j(t,Z,e):delete t[Z]}function tt(t){return t[Z]}function et(t,e=0){return"string"!=typeof t||0===e||t.length<=e?t:`${t.slice(0,e)}...`}function nt(t,e,n=!1){return!!h(t)&&(p(e,"RegExp")?e.test(t):!!h(e)&&(n?t===e:t.includes(e)))}function rt(t,e=[],n=!1){return e.some(e=>nt(t,e,n))}class st{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:X(),sampleRand:R()}}clone(){const t=new st;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._attributes={...this._attributes},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,Q(t,tt(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:undefined,id:undefined,ip_address:undefined,username:undefined},this._session&&Y(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,e){return this.setTags({[t]:e})}setAttributes(t){return this._attributes={...this._attributes,...t},this._notifyScopeListeners(),this}setAttribute(t,e){return this.setAttributes({[t]:e})}removeAttribute(t){return t in this._attributes&&(delete this._attributes[t],this._notifyScopeListeners()),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,e){return this._extra={...this._extra,[t]:e},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,e){return null===e?delete this._contexts[t]:this._contexts[t]=e,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;const e="function"==typeof t?t(this):t,n=e instanceof st?e.getScopeData():g(e)?t:undefined,{tags:r,attributes:s,extra:i,user:o,contexts:a,level:c,fingerprint:u=[],propagationContext:f}=n||{};return this._tags={...this._tags,...r},this._attributes={...this._attributes,...s},this._extra={...this._extra,...i},this._contexts={...this._contexts,...a},o&&Object.keys(o).length&&(this._user=o),c&&(this._level=c),u.length&&(this._fingerprint=u),f&&(this._propagationContext=f),this}clear(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=undefined,this._transactionName=undefined,this._fingerprint=undefined,this._session=undefined,Q(this,undefined),this._attachments=[],this.setPropagationContext({traceId:X(),sampleRand:R()}),this._notifyScopeListeners(),this}addBreadcrumb(t,e){const n="number"==typeof e?e:100;if(n<=0)return this;const r={timestamp:H(),...t,message:t.message?et(t.message,2048):t.message};return this._breadcrumbs.push(r),this._breadcrumbs.length>n&&(this._breadcrumbs=this._breadcrumbs.slice(-n),this._client?.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(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,attributes:this._attributes,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:tt(this)}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=K(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,e){const n=e?.event_id||z();if(!this._client)return n;const r=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:r,...e,event_id:n},this),n}captureMessage(t,e,n){const r=n?.event_id||z();if(!this._client)return r;const s=n?.syntheticException??new Error(t);return this._client.captureMessage(t,e,{originalException:t,syntheticException:s,...n,event_id:r},this),r}captureEvent(t,e){const n=e?.event_id||z();return this._client?(this._client.captureEvent(t,{...e,event_id:n},this),n):n}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}class it{constructor(t,e){let n,r;n=t||new st,r=e||new st,this._stack=[{scope:n}],this._isolationScope=r}withScope(t){const e=this._pushScope();let n;try{n=t(e)}catch(r){throw this._popScope(),r}return v(n)?n.then(t=>(this._popScope(),t),t=>{throw this._popScope(),t}):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function ot(){const t=a(o());return t.stack=t.stack||new it(c("defaultCurrentScope",()=>new st),c("defaultIsolationScope",()=>new st))}function at(t){return ot().withScope(t)}function ct(t,e){const n=ot();return n.withScope(()=>(n.getStackTop().scope=t,e(t)))}function ut(t){return ot().withScope(()=>t(ot().getIsolationScope()))}function ft(t){const e=a(t);return e.acs?e.acs:{withIsolationScope:ut,withScope:at,withSetScope:ct,withSetIsolationScope:(t,e)=>ut(e),getCurrentScope:()=>ot().getScope(),getIsolationScope:()=>ot().getIsolationScope()}}function pt(){return ft(o()).getCurrentScope()}function dt(){return pt().getClient()}function lt(t){const e=t.getPropagationContext(),{traceId:n,parentSpanId:r,propagationSpanId:s}=e,i={trace_id:n,span_id:s||G()};return r&&(i.parent_span_id=r),i}const ht=/^o(\d+)\./,_t=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function mt(t,e=!1){const{host:n,path:r,pass:s,port:i,projectId:o,protocol:a,publicKey:c}=t;return`${a}://${c}${e&&s?`:${s}`:""}@${n}${i?`:${i}`:""}/${r?`${r}/`:r}${o}`}function gt(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function yt(t){const e=t.getOptions(),{host:n}=t.getDsn()||{};let r;return e.orgId?r=String(e.orgId):n&&(r=function(t){const e=t.match(ht);return e?.[1]}(n)),r}function vt(t){const e="string"==typeof t?function(t){const e=_t.exec(t);if(!e)return w(()=>{console.error(`Invalid Sentry Dsn: ${t}`)}),undefined;const[n,r,s="",i="",o="",a=""]=e.slice(1);let c="",u=a;const f=u.split("/");if(f.length>1&&(c=f.slice(0,-1).join("/"),u=f.pop()),u){const t=u.match(/^\d+/);t&&(u=t[0])}return gt({host:i,pass:s,path:c,projectId:u,port:o,protocol:n,publicKey:r})}(t):gt(t);return e||undefined}const bt="?",Et=/\(error: (.*)\)/,St=/captureMessage|captureException/;function xt(...t){const e=t.sort((t,e)=>t[0]-e[0]).map(t=>t[1]);return(t,n=0,r=0)=>{const s=[],i=t.split("\n");for(let t=n;t1024&&(n=n.slice(0,1024));const o=Et.test(n)?n.replace(Et,"$1"):n;if(!o.match(/\S*Error: /)){for(const t of e){const e=t(o);if(e){s.push(e);break}}if(s.length>=50+r)break}}return function(t){if(!t.length)return[];const e=Array.from(t);/sentryWrapped/.test(kt(e)["function"]||"")&&e.pop();e.reverse(),St.test(kt(e)["function"]||"")&&(e.pop(),St.test(kt(e)["function"]||"")&&e.pop());return e.slice(0,50).map(t=>({...t,filename:t.filename||kt(e).filename,"function":t["function"]||bt}))}(s.slice(r))}}function kt(t){return t[t.length-1]||{}}const wt="";function Ot(t){try{return t&&"function"==typeof t&&t.name||wt}catch{return wt}}function Pt(t){const e=t.exception;if(e){const t=[];try{return e.values.forEach(e=>{e.stacktrace.frames&&t.push(...e.stacktrace.frames)}),t}catch{return undefined}}return undefined}function $t(t,e=100,n=+Infinity){try{return Ct("",t,e,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function jt(t,e=3,n=102400){const r=$t(t,e);return s=r,function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(s))>n?jt(t,e-1,n):r;var s}function Ct(e,n,r=+Infinity,s=+Infinity,i=function(){const t=new WeakSet;function e(e){return!!t.has(e)||(t.add(e),!1)}function n(e){t["delete"](e)}return[e,n]}()){const[o,a]=i;if(null==n||["boolean","string"].includes(typeof n)||"number"==typeof n&&Number.isFinite(n))return n;const c=function(e,n){try{if("domain"===e&&n&&"object"==typeof n&&n._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if("undefined"!=typeof t.g&&n===t.g)return"[Global]";if("undefined"!=typeof window&&n===window)return"[Window]";if("undefined"!=typeof document&&n===document)return"[Document]";if("object"==typeof(r=n)&&null!==r&&(r.__isVue||r._isVue||r.__v_isVNode))return function(t){return"__v_isVNode"in t&&t.__v_isVNode?"[VueVNode]":"[VueViewModel]"}(n);if(function(t){return g(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}(n))return"[SyntheticEvent]";if("number"==typeof n&&!Number.isFinite(n))return`[${n}]`;if("function"==typeof n)return`[Function: ${Ot(n)}]`;if("symbol"==typeof n)return`[${String(n)}]`;if("bigint"==typeof n)return`[BigInt: ${String(n)}]`;const s=function(t){const e=Object.getPrototypeOf(t);return e?.constructor?e.constructor.name:"null prototype"}(n);return/^HTML(\w*)Element$/.test(s)?`[HTMLElement: ${s}]`:`[object ${s}]`}catch(s){return`**non-serializable** (${s})`}var r}(e,n);if(!c.startsWith("[object "))return c;if(n.__sentry_skip_normalization__)return n;const u="number"==typeof n.__sentry_override_normalization_depth__?n.__sentry_override_normalization_depth__:r;if(0===u)return c.replace("object ","");if(o(n))return"[Circular ~]";const f=n;if(f&&"function"==typeof f.toJSON)try{return Ct("",f.toJSON(),u-1,s,i)}catch{}const p=Array.isArray(n)?[]:{};let d=0;const l=A(n);for(const t in l){if(!Object.prototype.hasOwnProperty.call(l,t))continue;if(d>=s){p[t]="[MaxProperties ~]";break}const e=l[t];p[t]=Ct(t,e,u-1,s,i),d++}return a(n),p}function Mt(t,e=[]){return[t,e]}function At(t,e){const[n,r]=t;return[n,[...r,e]]}function Tt(t,e){const n=t[1];for(const t of n){if(e(t,t[0].type))return!0}return!1}function It(t){const e=a(i);return e.encodePolyfill?e.encodePolyfill(t):(new TextEncoder).encode(t)}function Nt(t){const[e,n]=t;let r=JSON.stringify(e);function s(t){"string"==typeof r?r="string"==typeof t?r+t:[It(r),t]:r.push("string"==typeof t?It(t):t)}for(const t of n){const[e,n]=t;if(s(`\n${JSON.stringify(e)}\n`),"string"==typeof n||n instanceof Uint8Array)s(n);else{let t;try{t=JSON.stringify(n)}catch{t=JSON.stringify($t(n))}s(t)}}return"string"==typeof r?r:function(t){const e=t.reduce((t,e)=>t+e.length,0),n=new Uint8Array(e);let r=0;for(const e of t)n.set(e,r),r+=e.length;return n}(r)}function Dt(t){const e="string"==typeof t.data?It(t.data):t.data;return[{type:"attachment",length:e.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType},e]}const Lt={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",metric:"metric",trace_metric:"metric"};function Rt(t){return Lt[t]}function Ut(t){if(!t?.sdk)return;const{name:e,version:n}=t.sdk;return{name:e,version:n}}function zt(t,e,n,r){const s=Ut(n),i=t.type&&"replay_event"!==t.type?t.type:"event";!function(t,e){if(!e)return t;const n=t.sdk||{};t.sdk={...n,name:n.name||e.name,version:n.version||e.version,integrations:[...t.sdk?.integrations||[],...e.integrations||[]],packages:[...t.sdk?.packages||[],...e.packages||[]],settings:t.sdk?.settings||e.settings?{...t.sdk?.settings,...e.settings}:undefined}}(t,n?.sdk);const o=function(t,e,n,r){const s=t.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:t.event_id,sent_at:(new Date).toISOString(),...e&&{sdk:e},...!!n&&r&&{dsn:mt(r)},...s&&{trace:s}}}(t,s,r,e);delete t.sdkProcessingMetadata;return Mt(o,[[{type:i},t]])}const Ft=[];function Bt(t,e){for(const n of e)n?.afterAllSetup&&n.afterAllSetup(t)}function Wt(t,e,n){if(!n[e.name]){if(n[e.name]=e,Ft.includes(e.name)||"function"!=typeof e.setupOnce||(e.setupOnce(),Ft.push(e.name)),e.setup&&"function"==typeof e.setup&&e.setup(t),"function"==typeof e.preprocessEvent){const n=e.preprocessEvent.bind(e);t.on("preprocessEvent",(e,r)=>n(e,r,t))}if("function"==typeof e.processEvent){const n=e.processEvent.bind(e),r=Object.assign((e,r)=>n(e,r,t),{id:e.name});t.addEventProcessor(r)}}}function qt(t,e){const n=e??Ht(t)??[];if(0===n.length)return;const r=t.getOptions(),s=function(t,e,n,r){const s={};return e?.sdk&&(s.sdk={name:e.sdk.name,version:e.sdk.version}),n&&r&&(s.dsn=mt(r)),Mt(s,[(i=t,[{type:"log",item_count:i.length,content_type:"application/vnd.sentry.items.log+json"},{items:i}])]);var i}(n,r._metadata,r.tunnel,t.getDsn());Jt().set(t,[]),t.emit("flushLogs"),t.sendEnvelope(s)}function Ht(t){return Jt().get(t)}function Jt(){return c("clientToLogBufferMap",()=>new WeakMap)}function Vt(t,e){const n=e??Yt(t)??[];if(0===n.length)return;const r=t.getOptions(),s=function(t,e,n,r){const s={};return e?.sdk&&(s.sdk={name:e.sdk.name,version:e.sdk.version}),n&&r&&(s.dsn=mt(r)),Mt(s,[(i=t,[{type:"trace_metric",item_count:i.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{items:i}])]);var i}(n,r._metadata,r.tunnel,t.getDsn());Kt().set(t,[]),t.emit("flushMetrics"),t.sendEnvelope(s)}function Yt(t){return Kt().get(t)}function Kt(){return c("clientToMetricBufferMap",()=>new WeakMap)}const Xt="sentry.profile_id",Gt="sentry.exclusive_time",Zt=/^sentry-/;function Qt(t){const e=function(t){if(!t||!h(t)&&!Array.isArray(t))return undefined;if(Array.isArray(t))return t.reduce((t,e)=>{const n=te(e);return Object.entries(n).forEach(([e,n])=>{t[e]=n}),t},{});return te(t)}(t);if(!e)return undefined;const n=Object.entries(e).reduce((t,[e,n])=>{if(e.match(Zt)){t[e.slice(7)]=n}return t},{});return Object.keys(n).length>0?n:undefined}function te(t){return t.split(",").map(t=>{const e=t.indexOf("=");if(-1===e)return[];return[t.slice(0,e),t.slice(e+1)].map(t=>{try{return decodeURIComponent(t.trim())}catch{return}})}).reduce((t,[e,n])=>(e&&n&&(t[e]=n),t),{})}const ee="_sentryScope",ne="_sentryIsolationScope";function re(t){if(!t)return undefined;if("object"==typeof t&&"deref"in t&&"function"==typeof t.deref)try{return t.deref()}catch{return undefined}return t}function se(t){const e=t;return{scope:e[ee],isolationScope:re(e[ne])}}let ie=!1;function oe(t){const{spanId:e,traceId:n,isRemote:r}=t.spanContext(),s=r?e:fe(t).parent_span_id,i=se(t).scope;return{parent_span_id:s,span_id:r?i?.getPropagationContext().propagationSpanId||G():e,trace_id:n}}function ae(t){return t&&t.length>0?t.map(({context:{spanId:t,traceId:e,traceFlags:n,...r},attributes:s})=>({span_id:t,trace_id:e,sampled:1===n,attributes:s,...r})):undefined}function ce(t){return"number"==typeof t?ue(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?ue(t.getTime()):V()}function ue(t){return t>9999999999?t/1e3:t}function fe(t){if(function(t){return"function"==typeof t.getSpanJSON}(t))return t.getSpanJSON();const{spanId:e,traceId:n}=t.spanContext();if(function(t){const e=t;return!!(e.attributes&&e.startTime&&e.name&&e.endTime&&e.status)}(t)){const{attributes:r,startTime:s,name:i,endTime:o,status:a,links:c}=t;return{span_id:e,trace_id:n,data:r,description:i,parent_span_id:"parentSpanId"in t?t.parentSpanId:"parentSpanContext"in t?t.parentSpanContext?.spanId:undefined,start_timestamp:ce(s),timestamp:ce(o)||undefined,status:pe(a),op:r["sentry.op"],origin:r["sentry.origin"],links:ae(c)}}return{span_id:e,trace_id:n,start_timestamp:0,data:{}}}function pe(t){return t&&0!==t.code?1===t.code?"ok":t.message||"internal_error":undefined}const de="_sentryRootSpan";function le(t){return t[de]||t}function he(){ie||(w(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),ie=!0)}const _e="_frozenDsc";function me(t,e){const n=e.getOptions(),{publicKey:s}=e.getDsn()||{},i={environment:n.environment||r,release:n.release,public_key:s,trace_id:t,org_id:yt(e)};return e.emit("createDsc",i),i}function ge(t){const e=dt();if(!e)return{};const n=le(t),r=fe(n),s=r.data,i=n.spanContext().traceState,o=i?.get("sentry.sample_rate")??s["sentry.sample_rate"]??s["sentry.previous_trace_sample_rate"];function a(t){return"number"!=typeof o&&"string"!=typeof o||(t.sample_rate=`${o}`),t}const c=n[_e];if(c)return a(c);const u=i?.get("sentry.dsc"),f=u&&Qt(u);if(f)return a(f);const p=me(t.spanContext().traceId,e),d=s["sentry.source"],l=r.description;return"url"!==d&&l&&(p.transaction=l),a(p),e.emit("createDsc",p,n),p}function ye(t){return new be(e=>{e(t)})}function ve(t){return new be((e,n)=>{n(t)})}class be{constructor(t){this._state=0,this._handlers=[],this._runExecutor(t)}then(t,e){return new be((n,r)=>{this._handlers.push([!1,e=>{if(t)try{n(t(e))}catch(s){r(s)}else n(e)},t=>{if(e)try{n(e(t))}catch(s){r(s)}else r(t)}]),this._executeHandlers()})}"catch"(t){return this.then(t=>t,t)}"finally"(t){return new be((e,n)=>{let r,s;return this.then(e=>{s=!1,r=e,t&&t()},e=>{s=!0,r=e,t&&t()}).then(()=>{s?n(r):e(r)})})}_executeHandlers(){if(0===this._state)return;const t=this._handlers.slice();this._handlers=[],t.forEach(t=>{t[0]||(1===this._state&&t[1](this._value),2===this._state&&t[2](this._value),t[0]=!0)})}_runExecutor(t){const e=(t,e)=>{0===this._state&&(v(e)?e.then(n,r):(this._state=t,this._value=e,this._executeHandlers()))},n=t=>{e(1,t)},r=t=>{e(2,t)};try{t(n,r)}catch(s){r(s)}}}const Ee=Symbol["for"]("SentryBufferFullError");function Se(t=100){const e=new Set;function n(t){e["delete"](t)}return{get $(){return Array.from(e)},add:function(r){if(!(e.sizen(s),()=>n(s)),s},drain:function(t){if(!e.size)return ye(!0);const n=Promise.allSettled(Array.from(e)).then(()=>!0);if(!t)return n;const r=[n,new Promise(e=>setTimeout(()=>e(!1),t))];return Promise.race(r)}}}function xe(t,{statusCode:e,headers:n},r=U()){const s={...t},i=n?.["x-sentry-rate-limits"],o=n?.["retry-after"];if(i)for(const t of i.trim().split(",")){const[e,n,,,i]=t.split(":",5),o=parseInt(e,10),a=1e3*(isNaN(o)?60:o);if(n)for(const t of n.split(";"))"metric_bucket"===t&&i&&!i.split(";").includes("custom")||(s[t]=r+a);else s.all=r+a}else o?s.all=r+function(t,e=U()){const n=parseInt(`${t}`,10);if(!isNaN(n))return 1e3*n;const r=Date.parse(`${t}`);return isNaN(r)?6e4:r-e}(o,r):429===e&&(s.all=r+6e4);return s}function ke(t,e,n=Se(t.bufferSize||64)){let r={};return{send:function(s){const i=[];if(Tt(s,(e,n)=>{const s=Rt(n);!function(t,e,n=U()){return function(t,e){return t[e]||t.all||0}(t,e)>n}(r,s)?i.push(e):t.recordDroppedEvent("ratelimit_backoff",s)}),0===i.length)return Promise.resolve({});const o=Mt(s[0],i),a=e=>{(function(t,e){return Tt(t,(t,n)=>e.includes(n))})(o,["client_report"])||Tt(o,(n,r)=>{t.recordDroppedEvent(e,Rt(r))})};return n.add(()=>e({body:Nt(o)}).then(t=>(t.statusCode!==undefined&&(t.statusCode<200||t.statusCode),r=xe(r,t),t),t=>{throw a("network_error"),t})).then(t=>t,t=>{if(t===Ee)return a("queue_overflow"),Promise.resolve({});throw t})},flush:t=>n.drain(t)}}function we(t){const e=[];t.message&&e.push(t.message);try{const n=t.exception.values[t.exception.values.length-1];n?.value&&(e.push(n.value),n.type&&e.push(`${n.type}: ${n.value}`))}catch{}return e}function Oe(t,e,n,r=0){try{const s=Pe(e,n,t,r);return v(s)?s:ye(s)}catch(O){return ve(O)}}function Pe(t,e,n,r){const s=n[r];if(!t||!s)return t;const i=s({...t},e);return v(i)?i.then(t=>Pe(t,e,n,r+1)):Pe(i,e,n,r+1)}let $e,je,Ce,Me;function Ae(t){const e=i._sentryDebugIds,n=i._debugIds;if(!e&&!n)return{};const r=e?Object.keys(e):[],s=n?Object.keys(n):[];if(Me&&r.length===je&&s.length===Ce)return Me;je=r.length,Ce=s.length,Me={},$e||($e={});const o=(e,n)=>{for(const r of e){const e=n[r],s=$e?.[r];if(s&&Me&&e)Me[s[0]]=e,$e&&($e[r]=[s[0],e]);else if(e){const n=t(r);for(let t=n.length-1;t>=0;t--){const s=n[t],i=s?.filename;if(i&&Me&&$e){Me[i]=e,$e[r]=[i,e];break}}}}};return e&&o(r,e),n&&o(s,n),Me}function Te(t,e){const{fingerprint:n,span:r,breadcrumbs:s,sdkProcessingMetadata:i}=e;!function(t,e){const{extra:n,tags:r,user:s,contexts:i,level:o,transactionName:a}=e;Object.keys(n).length&&(t.extra={...n,...t.extra});Object.keys(r).length&&(t.tags={...r,...t.tags});Object.keys(s).length&&(t.user={...s,...t.user});Object.keys(i).length&&(t.contexts={...i,...t.contexts});o&&(t.level=o);a&&"transaction"!==t.type&&(t.transaction=a)}(t,e),r&&function(t,e){t.contexts={trace:oe(e),...t.contexts},t.sdkProcessingMetadata={dynamicSamplingContext:ge(e),...t.sdkProcessingMetadata};const n=le(e),r=fe(n).description;r&&!t.transaction&&"transaction"===t.type&&(t.transaction=r)}(t,r),function(t,e){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],e&&(t.fingerprint=t.fingerprint.concat(e));t.fingerprint.length||delete t.fingerprint}(t,n),function(t,e){const n=[...t.breadcrumbs||[],...e];t.breadcrumbs=n.length?n:undefined}(t,s),function(t,e){t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...e}}(t,i)}function Ie(t,e){const{extra:n,tags:r,attributes:s,user:i,contexts:o,level:a,sdkProcessingMetadata:c,breadcrumbs:u,fingerprint:f,eventProcessors:p,attachments:d,propagationContext:l,transactionName:h,span:_}=e;Ne(t,"extra",n),Ne(t,"tags",r),Ne(t,"attributes",s),Ne(t,"user",i),Ne(t,"contexts",o),t.sdkProcessingMetadata=K(t.sdkProcessingMetadata,c,2),a&&(t.level=a),h&&(t.transactionName=h),_&&(t.span=_),u.length&&(t.breadcrumbs=[...t.breadcrumbs,...u]),f.length&&(t.fingerprint=[...t.fingerprint,...f]),p.length&&(t.eventProcessors=[...t.eventProcessors,...p]),d.length&&(t.attachments=[...t.attachments,...d]),t.propagationContext={...t.propagationContext,...l}}function Ne(t,e,n){t[e]=K(t[e],n,1)}function De(t,e){const n=c("globalScope",()=>new st).getScopeData();return t&&Ie(n,t.getScopeData()),e&&Ie(n,e.getScopeData()),n}function Le(t,e,n,s,i,o){const{normalizeDepth:a=3,normalizeMaxBreadth:c=1e3}=t,u={...e,event_id:e.event_id||n.event_id||z(),timestamp:e.timestamp||H()},f=n.integrations||t.integrations.map(t=>t.name);!function(t,e){const{environment:n,release:s,dist:i,maxValueLength:o}=e;t.environment=t.environment||n||r,!t.release&&s&&(t.release=s);!t.dist&&i&&(t.dist=i);const a=t.request;a?.url&&o&&(a.url=et(a.url,o));o&&t.exception?.values?.forEach(t=>{t.value&&(t.value=et(t.value,o))})}(u,t),function(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}(u,f),i&&i.emit("applyFrameMetadata",e),e.type===undefined&&function(t,e){const n=Ae(e);t.exception?.values?.forEach(t=>{t.stacktrace?.frames?.forEach(t=>{t.filename&&(t.debug_id=n[t.filename])})})}(u,t.stackParser);const p=function(t,e){if(!e)return t;const n=t?t.clone():new st;return n.update(e),n}(s,n.captureContext);n.mechanism&&W(u,n.mechanism);const d=i?i.getEventProcessors():[],l=De(o,p),h=[...n.attachments||[],...l.attachments];h.length&&(n.attachments=h),Te(u,l);return Oe([...d,...l.eventProcessors],u,n).then(t=>(t&&function(t){const e={};if(t.exception?.values?.forEach(t=>{t.stacktrace?.frames?.forEach(t=>{t.debug_id&&(t.abs_path?e[t.abs_path]=t.debug_id:t.filename&&(e[t.filename]=t.debug_id),delete t.debug_id)})}),0===Object.keys(e).length)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];const n=t.debug_meta.images;Object.entries(e).forEach(([t,e])=>{n.push({type:"sourcemap",code_file:t,debug_id:e})})}(t),"number"==typeof a&&a>0?function(t,e,n){if(!t)return null;const r={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(t=>({...t,...t.data&&{data:$t(t.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)}};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(t=>({...t,...t.data&&{data:$t(t.data,e,n)}})));t.contexts?.flags&&r.contexts&&(r.contexts.flags=$t(t.contexts.flags,3,n));return r}(t,a,c):t))}function Re(t){return t?function(t){return t instanceof st||"function"==typeof t}(t)||function(t){return Object.keys(t).some(t=>Ue.includes(t))}(t)?{captureContext:t}:t:undefined}const Ue=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function ze(t,e){if(!e?.length||!t.description)return!1;for(const n of e){if(Be(n)){if(nt(t.description,n))return!0;continue}if(!n.name&&!n.op)continue;const e=!n.name||nt(t.description,n.name),r=!n.op||t.op&&nt(t.op,n.op);if(e&&r)return!0}return!1}function Fe(t,e){const n=e.parent_span_id,r=e.span_id;if(n)for(const e of t)e.parent_span_id===r&&(e.parent_span_id=n)}function Be(t){return"string"==typeof t||t instanceof RegExp}const We=Symbol["for"]("SentryInternalError"),qe=Symbol["for"]("SentryDoNotSendEventError");function He(t){return{message:t,[We]:!0}}function Je(t){return{message:t,[qe]:!0}}function Ve(t){return!!t&&"object"==typeof t&&We in t}function Ye(t){return!!t&&"object"==typeof t&&qe in t}function Ke(t,e,n,r,s){let i,o=0,a=!1;t.on(n,()=>{o=0,clearTimeout(i),a=!1}),t.on(e,e=>{o+=r(e),o>=8e5?s(t):a||(a=!0,i=setTimeout(()=>{s(t)},5e3))}),t.on("flush",()=>{s(t)})}class Xe{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=Se(t.transportOptions?.bufferSize??64),t.dsn&&(this._dsn=vt(t.dsn)),this._dsn){const e=n(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:undefined);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:e})}this._options.enableLogs=this._options.enableLogs??this._options._experiments?.enableLogs,this._options.enableLogs&&Ke(this,"afterCaptureLog","flushLogs",en,qt);(this._options.enableMetrics??this._options._experiments?.enableMetrics??!0)&&Ke(this,"afterCaptureMetric","flushMetrics",tn,Vt)}captureException(t,e,n){const r=z();if(q(t))return r;const s={event_id:r,...e};return this._process(()=>this.eventFromException(t,s).then(t=>this._captureEvent(t,s,n)).then(t=>t),"error"),s.event_id}captureMessage(t,e,n,r){const s={event_id:z(),...n},i=_(t)?t:String(t),o=m(t),a=o?this.eventFromMessage(i,e,s):this.eventFromException(t,s);return this._process(()=>a.then(t=>this._captureEvent(t,s,r)),o?"unknown":"error"),s.event_id}captureEvent(t,e,n){const r=z();if(e?.originalException&&q(e.originalException))return r;const s={event_id:r,...e},i=t.sdkProcessingMetadata||{},o=i.capturedSpanScope,a=i.capturedSpanIsolationScope,c=Ge(t.type);return this._process(()=>this._captureEvent(t,s,o||n,a),c),s.event_id}captureSession(t){this.sendSession(t),Y(t,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(t){const e=this._transport;if(!e)return!0;this.emit("flush");const n=await this._isClientDoneProcessing(t),r=await e.flush(t);return n&&r}async close(t){const e=await this.flush(t);return this.getOptions().enabled=!1,this.emit("close"),e}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){const e=this._integrations[t.name];Wt(this,t,this._integrations),e||Bt(this,[t])}sendEvent(t,e={}){this.emit("beforeSendEvent",t,e);let n=zt(t,this._dsn,this._options._metadata,this._options.tunnel);for(const t of e.attachments||[])n=At(n,Dt(t));this.sendEnvelope(n).then(e=>this.emit("afterSendEvent",t,e))}sendSession(t){const{release:e,environment:n=r}=this._options;if("aggregates"in t){const r=t.attrs||{};if(!r.release&&!e)return;r.release=r.release||e,r.environment=r.environment||n,t.attrs=r}else{if(!t.release&&!e)return;t.release=t.release||e,t.environment=t.environment||n}this.emit("beforeSendSession",t);const s=function(t,e,n,r){const s=Ut(n);return Mt({sent_at:(new Date).toISOString(),...s&&{sdk:s},...!!r&&e&&{dsn:mt(e)}},["aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()]])}(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(s)}recordDroppedEvent(t,e,n=1){if(this._options.sendClientReports){const r=`${t}:${e}`;this._outcomes[r]=(this._outcomes[r]||0)+n}}on(t,e){const n=this._hooks[t]=this._hooks[t]||new Set,r=(...t)=>e(...t);return n.add(r),()=>{n["delete"](r)}}emit(t,...e){const n=this._hooks[t];n&&n.forEach(t=>t(...e))}async sendEnvelope(t){if(this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport)try{return await this._transport.send(t)}catch(e){return{}}return{}}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=function(t,e){const n={};return e.forEach(e=>{e&&Wt(t,e,n)}),n}(this,t),Bt(this,t)}_updateSessionFromEvent(t,e){let n="fatal"===e.level,r=!1;const s=e.exception?.values;if(s){r=!0,n=!1;for(const t of s)if(!1===t.mechanism?.handled){n=!0;break}}const i="ok"===t.status;(i&&0===t.errors||i&&n)&&(Y(t,{...n&&{status:"crashed"},errors:t.errors||Number(r||n)}),this.captureSession(t))}async _isClientDoneProcessing(t){let e=0;for(;!t||esetTimeout(t,1)),!this._numProcessing)return!0;e++}return!1}_isEnabled(){return!1!==this.getOptions().enabled&&this._transport!==undefined}_prepareEvent(t,e,n,r){const s=this.getOptions(),i=Object.keys(this._integrations);return!e.integrations&&i?.length&&(e.integrations=i),this.emit("preprocessEvent",t,e),t.type||r.setLastEventId(t.event_id||e.event_id),Le(s,t,e,n,this,r).then(t=>{if(null===t)return t;this.emit("postprocessEvent",t,e),t.contexts={trace:lt(n),...t.contexts};const r=function(t,e){const n=e.getPropagationContext();return n.dsc||me(n.traceId,t)}(this,n);return t.sdkProcessingMetadata={dynamicSamplingContext:r,...t.sdkProcessingMetadata},t})}_captureEvent(t,e={},n=pt(),r=function(){return ft(o()).getIsolationScope()}()){return this._processEvent(t,e,n,r).then(t=>t.event_id,t=>undefined)}_processEvent(t,e,n,r){const s=this.getOptions(),{sampleRate:i}=s,o=Qe(t),a=Ze(t),c=`before send for type \`${t.type||"error"}\``,u=void 0===i?undefined:function(t){if("boolean"==typeof t)return Number(t);const e="string"==typeof t?parseFloat(t):t;return"number"!=typeof e||isNaN(e)||e<0||e>1?undefined:e}(i);if(a&&"number"==typeof u&&R()>u)return this.recordDroppedEvent("sample_rate","error"),ve(Je(`Discarding event because it's not included in the random sample (sampling rate = ${i})`));const f=Ge(t.type);return this._prepareEvent(t,e,n,r).then(t=>{if(null===t)throw this.recordDroppedEvent("event_processor",f),Je("An event processor returned `null`, will not send event.");if(e.data&&!0===e.data.__sentry__)return t;const n=function(t,e,n,r){const{beforeSend:s,beforeSendTransaction:i,beforeSendSpan:o,ignoreSpans:a}=e;let c=n;if(Ze(c)&&s)return s(c,r);if(Qe(c)){if(o||a){const e=function(t){const{trace_id:e,parent_span_id:n,span_id:r,status:s,origin:i,data:o,op:a}=t.contexts?.trace??{};return{data:o??{},description:t.transaction,op:a,parent_span_id:n,span_id:r??"",start_timestamp:t.start_timestamp??0,status:s,timestamp:t.timestamp,trace_id:e??"",origin:i,profile_id:o?.[Xt],exclusive_time:o?.[Gt],measurements:t.measurements,is_segment:!0}}(c);if(a?.length&&ze(e,a))return null;if(o){const t=o(e);t?c=K(n,{type:"transaction",timestamp:(u=t).timestamp,start_timestamp:u.start_timestamp,transaction:u.description,contexts:{trace:{trace_id:u.trace_id,span_id:u.span_id,parent_span_id:u.parent_span_id,op:u.op,status:u.status,origin:u.origin,data:{...u.data,...u.profile_id&&{[Xt]:u.profile_id},...u.exclusive_time&&{[Gt]:u.exclusive_time}}}},measurements:u.measurements}):he()}if(c.spans){const e=[],n=c.spans;for(const t of n)if(a?.length&&ze(t,a))Fe(n,t);else if(o){const n=o(t);n?e.push(n):(he(),e.push(t))}else e.push(t);const r=c.spans.length-e.length;r&&t.recordDroppedEvent("before_send","span",r),c.spans=e}}if(i){if(c.spans){const t=c.spans.length;c.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:t}}return i(c,r)}}var u;return c}(this,s,t,e);return function(t,e){const n=`${e} must return \`null\` or a valid event.`;if(v(t))return t.then(t=>{if(!g(t)&&null!==t)throw He(n);return t},t=>{throw He(`${e} rejected with ${t}`)});if(!g(t)&&null!==t)throw He(n);return t}(n,c)}).then(s=>{if(null===s){if(this.recordDroppedEvent("before_send",f),o){const e=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",e)}throw Je(`${c} returned \`null\`, will not send event.`)}const i=n.getSession()||r.getSession();if(a&&i&&this._updateSessionFromEvent(i,s),o){const t=(s.sdkProcessingMetadata?.spanCountBeforeProcessing||0)-(s.spans?s.spans.length:0);t>0&&this.recordDroppedEvent("before_send","span",t)}const u=s.transaction_info;if(o&&u&&s.transaction!==t.transaction){const t="custom";s.transaction_info={...u,source:t}}return this.sendEvent(s,e),s}).then(null,t=>{if(Ye(t)||Ve(t))throw t;throw this.captureException(t,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:t}),He(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${t}`)})}_process(t,e){this._numProcessing++,this._promiseBuffer.add(t).then(t=>(this._numProcessing--,t),t=>(this._numProcessing--,t===Ee&&this.recordDroppedEvent("queue_overflow",e),t))}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.entries(t).map(([t,e])=>{const[n,r]=t.split(":");return{reason:n,category:r,quantity:e}})}_flushOutcomes(){const t=this._clearOutcomes();if(0===t.length)return;if(!this._dsn)return;const e=(n=t,Mt((r=this._options.tunnel&&mt(this._dsn))?{dsn:r}:{},[[{type:"client_report"},{timestamp:s||H(),discarded_events:n}]]));var n,r,s;this.sendEnvelope(e)}}function Ge(t){return"replay_event"===t?"replay":t||"error"}function Ze(t){return t.type===undefined}function Qe(t){return"transaction"===t.type}function tn(t){let e=0;return t.name&&(e+=2*t.name.length),e+=8,e+nn(t.attributes)}function en(t){let e=0;return t.message&&(e+=2*t.message.length),e+nn(t.attributes)}function nn(t){if(!t)return 0;let e=0;return Object.values(t).forEach(t=>{Array.isArray(t)?e+=t.length*rn(t[0]):m(t)?e+=rn(t):e+=100}),e}function rn(t){return"string"==typeof t?2*t.length:"number"==typeof t?8:"boolean"==typeof t?4:0}function sn(t){"aggregates"in t?t.attrs?.ip_address===undefined&&(t.attrs={...t.attrs,ip_address:"{{auto}}"}):t.ipAddress===undefined&&(t.ipAddress="{{auto}}")}function on(t){return function(t){return f(t)&&"__sentry_fetch_url_host__"in t&&"string"==typeof t.__sentry_fetch_url_host__}(t)?`${t.message} (${t.__sentry_fetch_url_host__})`:t.message}function an(t,e){const n=fn(t,e),r={type:ln(e),value:hn(e)};return n.length&&(r.stacktrace={frames:n}),r.type===undefined&&""===r.value&&(r.value="Unrecoverable error caught"),r}function cn(t,e,n,r){const s=dt(),i=s?.getOptions().normalizeDepth,o=function(t){for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e)){const n=t[e];if(n instanceof Error)return n}return undefined}(e),a={__serialized__:jt(e,i)};if(o)return{exception:{values:[an(t,o)]},extra:a};const c={exception:{values:[{type:y(e)?e.constructor.name:r?"UnhandledRejection":"Error",value:gn(e,{isUnhandledRejection:r})}]},extra:a};if(n){const e=fn(t,n);e.length&&(c.exception.values[0].stacktrace={frames:e})}return c}function un(t,e){return{exception:{values:[an(t,e)]}}}function fn(t,e){const n=e.stacktrace||e.stack||"",r=function(t){if(t&&pn.test(t.message))return 1;return 0}(e),s=function(t){if("number"==typeof t.framesToPop)return t.framesToPop;return 0}(e);try{return t(n,r,s)}catch{}return[]}const pn=/Minified React error #\d+;/i;function dn(t){return"undefined"!=typeof WebAssembly&&"undefined"!=typeof WebAssembly.Exception&&t instanceof WebAssembly.Exception}function ln(t){const e=t?.name;if(!e&&dn(t)){return t.message&&Array.isArray(t.message)&&2==t.message.length?t.message[0]:"WebAssembly.Exception"}return e}function hn(t){const e=t?.message;return dn(t)?Array.isArray(t.message)&&2==t.message.length?t.message[1]:"wasm exception":e?e.error&&"string"==typeof e.error.message?on(e.error):on(t):"No error message"}function _n(t,e,n,r,s){let i;if(d(e)&&e.error){return un(t,e.error)}if(l(e)||p(e,"DOMException")){const s=e;if("stack"in e)i=un(t,e);else{const e=s.name||(l(s)?"DOMError":"DOMException"),o=s.message?`${e}: ${s.message}`:e;i=mn(t,o,n,r),B(i,o)}return"code"in s&&(i.tags={...i.tags,"DOMException.code":`${s.code}`}),i}if(f(e))return un(t,e);if(g(e)||y(e)){return i=cn(t,e,n,s),W(i,{synthetic:!0}),i}return i=mn(t,e,n,r),B(i,`${e}`,undefined),W(i,{synthetic:!0}),i}function mn(t,e,n,r){const s={};if(r&&n){const r=fn(t,n);r.length&&(s.exception={values:[{value:e,stacktrace:{frames:r}}]}),W(s,{synthetic:!0})}if(_(e)){const{__sentry_template_string__:t,__sentry_template_values__:n}=e;return s.logentry={message:t,params:n},s}return s.message=e,s}function gn(t,{isUnhandledRejection:e}){const n=function(t){const e=Object.keys(A(t));return e.sort(),e[0]?e.join(", "):"[object has no keys]"}(t),r=e?"promise rejection":"exception";if(d(t))return`Event \`ErrorEvent\` captured as ${r} with message \`${t.message}\``;if(y(t)){return`Event \`${function(t){try{const e=Object.getPrototypeOf(t);return e?e.constructor.name:undefined}catch{}}(t)}\` (type=${t.type}) captured as ${r}`}return`Object captured as ${r} with keys: ${n}`}function yn(t,e){return pt().captureEvent(t,e)}const vn=i;let bn=0;function En(){return bn>0}function Sn(t,e={}){if(!function(t){return"function"==typeof t}(t))return t;try{const e=t.__sentry_wrapped__;if(e)return"function"==typeof e?e:t;if(M(t))return t}catch{return t}const n=function(...n){try{const r=n.map(t=>Sn(t,e));return t.apply(this,r)}catch(r){throw bn++,setTimeout(()=>{bn--}),function(...t){const e=ft(o());if(2===t.length){const[n,r]=t;return n?e.withSetScope(n,r):e.withScope(r)}e.withScope(t[0])}(t=>{var s,i;t.addEventProcessor(t=>(e.mechanism&&(B(t,undefined,undefined),W(t,e.mechanism)),t.extra={...t.extra,arguments:n},t)),s=r,pt().captureException(s,Re(i))}),r}};try{for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e])}catch{}C(n,t),j(t,"__sentry_wrapped__",n);try{Object.getOwnPropertyDescriptor(n,"name").configurable&&Object.defineProperty(n,"name",{get(){return t.name}})}catch{}return n}class xn extends Xe{constructor(t){const e=(n=t,{release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:vn.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...n});var n;!function(t,e,n=[e],r="npm"){const i=t._metadata||{};i.sdk||(i.sdk={name:`sentry.javascript.${e}`,packages:n.map(t=>({name:`${r}:@sentry/${t}`,version:s})),version:s}),t._metadata=i}(e,"browser",["browser"],vn.SENTRY_SDK_SOURCE||"npm"),e._metadata?.sdk&&(e._metadata.sdk.settings={infer_ip:e.sendDefaultPii?"auto":"never",...e._metadata.sdk.settings}),super(e);const{sendDefaultPii:r,sendClientReports:i,enableLogs:o,_experiments:a,enableMetrics:c}=this._options,u=c??a?.enableMetrics??!0;vn.document&&(i||o||u)&&vn.document.addEventListener("visibilitychange",()=>{"hidden"===vn.document.visibilityState&&(i&&this._flushOutcomes(),o&&qt(this),u&&Vt(this))}),r&&this.on("beforeSendSession",sn)}eventFromException(t,e){return function(t,e,n,r){const s=_n(t,e,n?.syntheticException||undefined,r);return W(s),s.level="error",n?.event_id&&(s.event_id=n.event_id),ye(s)}(this._options.stackParser,t,e,this._options.attachStacktrace)}eventFromMessage(t,e="info",n){return function(t,e,n="info",r,s){const i=mn(t,e,r?.syntheticException||undefined,s);return i.level=n,r?.event_id&&(i.event_id=r.event_id),ye(i)}(this._options.stackParser,t,e,n,this._options.attachStacktrace)}_prepareEvent(t,e,n,r){return t.platform=t.platform||"javascript",super._prepareEvent(t,e,n,r)}}function kn(t){return t&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}const wn=i,On={};function Pn(t){const e=On[t];if(e)return e;let n=wn[t];if(kn(n))return On[t]=n.bind(wn);const r=wn.document;if(r&&"function"==typeof r.createElement)try{const e=r.createElement("iframe");e.hidden=!0,r.head.appendChild(e);const s=e.contentWindow;s?.[t]&&(n=s[t]),r.head.removeChild(e)}catch(s){}return n?On[t]=n.bind(wn):n}function $n(t,e=Pn("fetch")){let n=0,r=0;return ke(t,async function(s){const i=s.body.length;n+=i,r++;const o={body:s.body,method:"POST",referrerPolicy:"strict-origin",headers:t.headers,keepalive:n<=6e4&&r<15,...t.fetchOptions};try{const n=await e(t.url,o);return{statusCode:n.status,headers:{"x-sentry-rate-limits":n.headers.get("X-Sentry-Rate-Limits"),"retry-after":n.headers.get("Retry-After")}}}catch(a){throw On["fetch"]=undefined,a}finally{n-=i,r--}},Se(t.bufferSize||40))}function jn(t,e,n,r){const s={filename:t,"function":""===e?bt:e,in_app:!0};return n!==undefined&&(s.lineno=n),r!==undefined&&(s.colno=r),s}const Cn=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,Mn=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,An=/\((\S*)(?::(\d+))(?::(\d+))\)/,Tn=/at (.+?) ?\(data:(.+?),/,In=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Nn=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Dn=xt(...[[30,t=>{const e=t.match(Tn);if(e)return{filename:``,"function":e[1]};const n=Cn.exec(t);if(n){const[,t,e,r]=n;return jn(t,bt,+e,+r)}const r=Mn.exec(t);if(r){if(r[2]&&0===r[2].indexOf("eval")){const t=An.exec(r[2]);t&&(r[2]=t[1],r[3]=t[2],r[4]=t[3])}const[t,e]=Ln(r[1]||bt,r[2]);return jn(e,t,r[3]?+r[3]:undefined,r[4]?+r[4]:undefined)}}],[50,t=>{const e=In.exec(t);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){const t=Nn.exec(e[3]);t&&(e[1]=e[1]||"eval",e[3]=t[1],e[4]=t[2],e[5]="")}let t=e[3],n=e[1]||bt;return[n,t]=Ln(n,t),jn(t,n,e[4]?+e[4]:undefined,e[5]?+e[5]:undefined)}}]]),Ln=(t,e)=>{const n=-1!==t.indexOf("safari-extension"),r=-1!==t.indexOf("safari-web-extension");return n||r?[-1!==t.indexOf("@")?t.split("@")[0]:bt,n?`safari-extension:${e}`:`safari-web-extension:${e}`]:[t,e]},Rn=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],Un=(t={})=>{const e={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...t};return{name:"BrowserApiErrors",setupOnce(){e.setTimeout&&$(vn,"setTimeout",zn),e.setInterval&&$(vn,"setInterval",zn),e.requestAnimationFrame&&$(vn,"requestAnimationFrame",Fn),e.XMLHttpRequest&&"XMLHttpRequest"in vn&&$(XMLHttpRequest.prototype,"send",Bn);const t=e.eventTarget;if(t){(Array.isArray(t)?t:Rn).forEach(t=>function(t,e){const n=vn,r=n[t]?.prototype;if(!r?.hasOwnProperty?.("addEventListener"))return;$(r,"addEventListener",function(n){return function(r,s,i){try{"function"==typeof s.handleEvent&&(s.handleEvent=Sn(s.handleEvent,{mechanism:{data:{handler:Ot(s),target:t},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return e.unregisterOriginalCallbacks&&function(t,e,n){t&&"object"==typeof t&&"removeEventListener"in t&&"function"==typeof t.removeEventListener&&t.removeEventListener(e,n)}(this,r,s),n.apply(this,[r,Sn(s,{mechanism:{data:{handler:Ot(s),target:t},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),i])}}),$(r,"removeEventListener",function(t){return function(e,n,r){try{const s=n.__sentry_wrapped__;s&&t.call(this,e,s,r)}catch{}return t.call(this,e,n,r)}})}(t,e))}}}};function zn(t){return function(...e){const n=e[0];return e[0]=Sn(n,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${Ot(t)}`}}),t.apply(this,e)}}function Fn(t){return function(e){return t.apply(this,[Sn(e,{mechanism:{data:{handler:Ot(t)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function Bn(t){return function(...e){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(t=>{t in n&&"function"==typeof n[t]&&$(n,t,function(e){const n={mechanism:{data:{handler:Ot(e)},handled:!1,type:`auto.browser.browserapierrors.xhr.${t}`}},r=M(e);return r&&(n.mechanism.data.handler=Ot(r)),Sn(e,n)})}),t.apply(this,e)}}const Wn=()=>{let t;return{name:"Dedupe",processEvent(e){if(e.type)return e;try{if(function(t,e){if(!e)return!1;if(function(t,e){const n=t.message,r=e.message;if(!n&&!r)return!1;if(n&&!r||!n&&r)return!1;if(n!==r)return!1;if(!Hn(t,e))return!1;if(!qn(t,e))return!1;return!0}(t,e))return!0;if(function(t,e){const n=Jn(e),r=Jn(t);if(!n||!r)return!1;if(n.type!==r.type||n.value!==r.value)return!1;if(!Hn(t,e))return!1;if(!qn(t,e))return!1;return!0}(t,e))return!0;return!1}(e,t))return null}catch{}return t=e}}};function qn(t,e){let n=Pt(t),r=Pt(e);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(r.length!==n.length)return!1;for(let t=0;t{const e={onerror:!0,onunhandledrejection:!0,...t};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(t){e.onerror&&(!function(t){!function(t){const e="error";Kn(e,t),Xn(e,Qn)}(e=>{const{stackParser:n,attachStacktrace:r}=sr();if(dt()!==t||En())return;const{msg:s,url:i,line:o,column:a,error:c}=e,u=function(t,e,n,r){const s=t.exception=t.exception||{},i=s.values=s.values||[],o=i[0]=i[0]||{},a=o.stacktrace=o.stacktrace||{},c=a.frames=a.frames||[],u=r,f=n,p=function(t){if(!h(t)||0===t.length)return undefined;if(t.startsWith("data:")){const e=t.match(/^data:([^;]+)/);return``}return t}(e)??x();0===c.length&&c.push({colno:u,filename:p,"function":bt,in_app:!0,lineno:f});return t}(_n(n,c||s,undefined,r,!1),i,o,a);u.level="error",yn(u,{originalException:c,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})})}(t),rr("onerror")),e.onunhandledrejection&&(!function(t){!function(t){const e="unhandledrejection";Kn(e,t),Xn(e,er)}(e=>{const{stackParser:n,attachStacktrace:r}=sr();if(dt()!==t||En())return;const s=function(t){if(m(t))return t;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch{}return t}(e),i=m(s)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(s)}`}]}}:_n(n,s,undefined,r,!0);i.level="error",yn(i,{originalException:s,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})})}(t),rr("onunhandledrejection"))}}};function rr(t){}function sr(){const t=dt();return t?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const ir=()=>({name:"HttpContext",preprocessEvent(t){if(!vn.navigator&&!vn.location&&!vn.document)return;const e=function(){const t=x(),{referrer:e}=vn.document||{},{userAgent:n}=vn.navigator||{};return{url:t,headers:{...e&&{Referer:e},...n&&{"User-Agent":n}}}}(),n={...e.headers,...t.request?.headers};t.request={...e,...t.request,headers:n}}}),or=[/^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$/],ar=(t={})=>{let e;return{name:"EventFilters",setup(n){const r=n.getOptions();e=cr(t,r)},processEvent(n,r,s){if(!e){const n=s.getOptions();e=cr(t,n)}return function(t,e){if(t.type){if("transaction"===t.type&&function(t,e){if(!e?.length)return!1;const n=t.transaction;return!!n&&rt(n,e)}(t,e.ignoreTransactions))return!0}else{if(function(t,e){if(!e?.length)return!1;return we(t).some(t=>rt(t,e))}(t,e.ignoreErrors))return!0;if(function(t){if(!t.exception?.values?.length)return!1;return!t.message&&!t.exception.values.some(t=>t.stacktrace||t.type&&"Error"!==t.type||t.value)}(t))return!0;if(function(t,e){if(!e?.length)return!1;const n=ur(t);return!!n&&rt(n,e)}(t,e.denyUrls))return!0;if(!function(t,e){if(!e?.length)return!0;const n=ur(t);return!n||rt(n,e)}(t,e.allowUrls))return!0}return!1}(n,e)?null:n}}};function cr(t={},e={}){return{allowUrls:[...t.allowUrls||[],...e.allowUrls||[]],denyUrls:[...t.denyUrls||[],...e.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...e.ignoreErrors||[],...t.disableErrorDefaults?[]:or],ignoreTransactions:[...t.ignoreTransactions||[],...e.ignoreTransactions||[]]}}function ur(t){try{const e=[...t.exception?.values??[]].reverse().find(t=>t.mechanism?.parent_id===undefined&&t.stacktrace?.frames?.length),n=e?.stacktrace?.frames;return n?function(t=[]){for(let e=t.length-1;e>=0;e--){const n=t[e];if(n&&""!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(n):null}catch{return null}}var fr="moz-consent-pref";var pr={ignoreErrors:["$ is not defined","Event `Event` (type=unhandledrejection) captured as promise rejection","NS_ERROR_ABORT","NS_ERROR_FAILURE","NetworkError when attempting to fetch resource","Non-Error promise rejection captured","Unexpected token '<'"]},dr={initClient:function(){var t=document.getElementsByTagName("html")[0].getAttribute("data-sentry-dsn"),e=new xn({dsn:t,sampleRate:.1,transport:$n,stackParser:Dn,integrations:[Un(),Wn(),nr(),ir(),ar(pr)]});pt().setClient(e),e.init()},handleConsent:function(t){t.detail.analytics&&(dr.initClient(),window.removeEventListener("mozConsentStatus",dr.handleEvent,!1))},init:function(){var t;if(("function"!=typeof window.Mozilla.gpcEnabled||!window.Mozilla.gpcEnabled())&&("function"!=typeof window.Mozilla.dntEnabled||!window.Mozilla.dntEnabled()))if((t=document.getElementsByTagName("html")[0].getAttribute("data-needs-consent"))&&"true"===t.toLowerCase())window.addEventListener("mozConsentStatus",dr.handleConsent,!1);else{var e=function(){try{return JSON.parse(window.Mozilla.Cookies.getItem(fr))}catch(t){return!1}}();if(e&&!e.analytics)return;dr.initClient()}}};dr.init()}();