@icanbwell/composite 1.571.7 → 1.573.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{382.index.js → 170.index.js} +8 -8
- package/{377.index.js → 959.index.js} +475 -472
- package/index.js +12 -12
- package/native.js +1 -1
- package/package.json +3 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_icanbwell_composite=globalThis.webpackChunk_icanbwell_composite||[]).push([[
|
|
1
|
+
"use strict";(globalThis.webpackChunk_icanbwell_composite=globalThis.webpackChunk_icanbwell_composite||[]).push([[170],{3170:(ja,Dt,At)=>{At.r(Dt),At.d(Dt,{default:()=>La});var lr=10,fr=20,Pt=30,dr=40,$e=50,Mt=60,Fe={trace:10,debug:20,info:30,warn:40,error:50,fatal:60},Lt={};function Ua(e){return typeof e=="string"?Fe[e.toLowerCase()]:e}Object.keys(Fe).forEach(function(e){Lt[Fe[e]]=e});var jt={levels:{trace:"color: DeepPink",debug:"color: GoldenRod",info:"color: DarkTurquoise",warn:"color: Purple",error:"color: Crimson",fatal:"color: Black"},def:"color: DimGray",msg:"color: SteelBlue",src:"color: DimGray; font-style: italic; font-size: 0.9em"},pr=function(){function e(t){var n=t===void 0?{}:t,r=n.logByLevel,s=n.css,o=s===void 0?jt:s;this.logByLevel=r!==void 0&&r,this.css=o}return e.prototype.write=function(t){var n,r,s=this.css.def,o=this.css.msg,i=this.css.src,a=t.childName?t.name+"/"+t.childName:t.name,c=Lt[t.level],l=(Array(6-c.length).join(" ")+c).toUpperCase();this.logByLevel?(t.level===lr?c="debug":t.level===Mt&&(c="error"),r=typeof console[c]=="function"?console[c]:console.log):r=console.log,n=t.level<fr?this.css.levels.trace:t.level<Pt?this.css.levels.debug:t.level<dr?this.css.levels.info:t.level<$e?this.css.levels.warn:t.level<Mt?this.css.levels.error:this.css.levels.fatal;var f=function(d,h){return Array(h+1-(d+"").length).join("0")+d},u=[];u.push("[%s:%s:%s:%s] %c%s%c: %s: %c%s "+(t.src?"%c%s":"")),u.push(f(t.time.getHours(),2)),u.push(f(t.time.getMinutes(),2)),u.push(f(t.time.getSeconds(),2)),u.push(f(t.time.getMilliseconds(),4)),u.push(n),u.push(l),u.push(s),u.push(a),u.push(o),u.push(t.msg),t.src&&(u.push(i),u.push(t.src)),t.obj&&(u.push(`
|
|
2
2
|
`),u.push(t.obj)),t.err&&t.err.stack&&(u.push(`
|
|
3
|
-
`),u.push(t.err.stack)),r.apply(console,u)},e.getDefaultCss=function(){return jt},e}();const Be="production",$="8.46.0",m=globalThis;function me(e,t,n){const r=n||m,s=r.__SENTRY__=r.__SENTRY__||{},o=s[$]=s[$]||{};return o[e]||(o[e]=t())}function _e(){return He(m),m}function He(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||$,t[$]=t[$]||{}}const Ut=Object.prototype.toString;function Ge(e){switch(Ut.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return F(e,Error)}}function Q(e,t){return Ut.call(e)===`[object ${t}]`}function $t(e){return Q(e,"ErrorEvent")}function Ft(e){return Q(e,"DOMError")}function hr(e){return Q(e,"DOMException")}function C(e){return Q(e,"String")}function ze(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function We(e){return e===null||ze(e)||typeof e!="object"&&typeof e!="function"}function ee(e){return Q(e,"Object")}function ye(e){return typeof Event<"u"&&F(e,Event)}function gr(e){return typeof Element<"u"&&F(e,Element)}function mr(e){return Q(e,"RegExp")}function Ee(e){return Boolean(e&&e.then&&typeof e.then=="function")}function _r(e){return ee(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function F(e,t){try{return e instanceof t}catch{return!1}}function Bt(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}const te=m,yr=80;function Ht(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,s=[];let o=0,i=0;const a=" > ",c=a.length;let l;const f=Array.isArray(t)?t:t.keyAttrs,u=!Array.isArray(t)&&t.maxStringLength||yr;for(;n&&o++<r&&(l=Er(n,f),!(l==="html"||o>1&&i+s.length*c+l.length>=u));)s.push(l),i+=l.length,n=n.parentNode;return s.reverse().join(a)}catch{return"<unknown>"}}function Er(e,t){const n=e,r=[];if(!n||!n.tagName)return"";if(te.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=t&&t.length?t.filter(i=>n.getAttribute(i)).map(i=>[i,n.getAttribute(i)]):null;if(s&&s.length)s.forEach(i=>{r.push(`[${i[0]}="${i[1]}"]`)});else{n.id&&r.push(`#${n.id}`);const i=n.className;if(i&&C(i)){const a=i.split(/\s+/);for(const c of a)r.push(`.${c}`)}}const o=["aria-label","type","name","title","alt"];for(const i of o){const a=n.getAttribute(i);a&&r.push(`[${i}="${a}"]`)}return r.join("")}function Sr(){try{return te.document.location.href}catch{return""}}function $a(e){return te.document&&te.document.querySelector?te.document.querySelector(e):null}function br(e){if(!te.HTMLElement)return null;let t=e;const 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}const B=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,vr="Sentry Logger ",qe=["debug","info","warn","error","log","assert","trace"],Se={};function H(e){if(!("console"in m))return e();const t=m.console,n={},r=Object.keys(Se);r.forEach(s=>{const o=Se[s];n[s]=t[s],t[s]=o});try{return e()}finally{r.forEach(s=>{t[s]=n[s]})}}function Tr(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return B?qe.forEach(n=>{t[n]=(...r)=>{e&&H(()=>{m.console[n](`${vr}[${n}]:`,...r)})}}):qe.forEach(n=>{t[n]=()=>{}}),t}const p=me("logger",Tr);function ne(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function Fa(e,t){let n=e;const r=n.length;if(r<=150)return n;t>r&&(t=r);let s=Math.max(t-60,0);s<5&&(s=0);let o=Math.min(s+140,r);return o>r-5&&(o=r),o===r&&(s=Math.max(o-140,0)),n=n.slice(s,o),s>0&&(n=`'{snip} ${n}`),o<r&&(n+=" {snip}"),n}function Gt(e,t){if(!Array.isArray(e))return"";const n=[];for(let r=0;r<e.length;r++){const s=e[r];try{Bt(s)?n.push("[VueViewModel]"):n.push(String(s))}catch{n.push("[value cannot be serialized]")}}return n.join(t)}function Ir(e,t,n=!1){return C(e)?mr(t)?t.test(e):C(t)?n?e===t:e.includes(t):!1:!1}function be(e,t=[],n=!1){return t.some(r=>Ir(e,r,n))}function v(e,t,n){if(!(t in e))return;const r=e[t],s=n(r);typeof s=="function"&&zt(s,r);try{e[t]=s}catch{B&&p.log(`Failed to replace method "${t}" in object`,e)}}function G(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{B&&p.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function zt(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,G(e,"__sentry_original__",t)}catch{}}function Ye(e){return e.__sentry_original__}function Ba(e){return Object.entries(e).map(([t,n])=>`${encodeURIComponent(t)}=${encodeURIComponent(n)}`).join("&")}function Wt(e){if(Ge(e))return{message:e.message,name:e.name,stack:e.stack,...Yt(e)};if(ye(e)){const t={type:e.type,target:qt(e.target),currentTarget:qt(e.currentTarget),...Yt(e)};return typeof CustomEvent<"u"&&F(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function qt(e){try{return gr(e)?Ht(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function Yt(e){if(typeof e=="object"&&e!==null){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function wr(e,t=40){const n=Object.keys(Wt(e));n.sort();const r=n[0];if(!r)return"[object has no keys]";if(r.length>=t)return ne(r,t);for(let s=n.length;s>0;s--){const o=n.slice(0,s).join(", ");if(!(o.length>t))return s===n.length?o:ne(o,t)}return""}function I(e){return Je(e,new Map)}function Je(e,t){if(kr(e)){const n=t.get(e);if(n!==void 0)return n;const r={};t.set(e,r);for(const s of Object.getOwnPropertyNames(e))typeof e[s]<"u"&&(r[s]=Je(e[s],t));return r}if(Array.isArray(e)){const n=t.get(e);if(n!==void 0)return n;const r=[];return t.set(e,r),e.forEach(s=>{r.push(Je(s,t))}),r}return e}function kr(e){if(!ee(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||t==="Object"}catch{return!0}}function Ha(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 isPrimitive(e):t=new e.constructor(e);break;default:t=e;break}return t}const Jt=1e3;function fe(){return Date.now()/Jt}function Nr(){const{performance:e}=m;if(!e||!e.now)return fe;const t=Date.now()-e.now(),n=e.timeOrigin==null?t:e.timeOrigin;return()=>(n+e.now())/Jt}const D=Nr();let ve;const Ga=(()=>{const{performance:e}=m;if(!e||!e.now){ve="none";return}const t=3600*1e3,n=e.now(),r=Date.now(),s=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,o=s<t,i=e.timing&&e.timing.navigationStart,c=typeof i=="number"?Math.abs(i+n-r):t,l=c<t;return o||l?s<=c?(ve="timeOrigin",e.timeOrigin):(ve="navigationStart",i):(ve="dateNow",r)})();function w(){const e=m,t=e.crypto||e.msCrypto;let n=()=>Math.random()*16;try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const r=new Uint8Array(1);return t.getRandomValues(r),r[0]})}catch{}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,r=>(r^(n()&15)>>r/4).toString(16))}function Kt(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function M(e){const{message:t,event_id:n}=e;if(t)return t;const r=Kt(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function Ke(e,t,n){const r=e.exception=e.exception||{},s=r.values=r.values||[],o=s[0]=s[0]||{};o.value||(o.value=t||""),o.type||(o.type=n||"Error")}function re(e,t){const n=Kt(e);if(!n)return;const r={type:"generic",handled:!0},s=n.mechanism;if(n.mechanism={...r,...s,...t},t&&"data"in t){const o={...s&&s.data,...t.data};n.mechanism.data=o}}const Or=/^(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 Xe(e){return parseInt(e||"",10)}function za(e){const t=e.match(Or)||[],n=Xe(t[1]),r=Xe(t[2]),s=Xe(t[3]);return{buildmetadata:t[5],major:isNaN(n)?void 0:n,minor:isNaN(r)?void 0:r,patch:isNaN(s)?void 0:s,prerelease:t[4]}}function Wa(e,t,n=5){if(t.lineno===void 0)return;const r=e.length,s=Math.max(Math.min(r-1,t.lineno-1),0);t.pre_context=e.slice(Math.max(0,s-n),s).map(i=>snipLine(i,0));const o=Math.min(r-1,s);t.context_line=snipLine(e[o],t.colno||0),t.post_context=e.slice(Math.min(s+1,r),s+1+n).map(i=>snipLine(i,0))}function Xt(e){if(Rr(e))return!0;try{G(e,"__sentry_captured__",!0)}catch{}return!1}function Rr(e){try{return e.__sentry_captured__}catch{}}function qa(e){return Array.isArray(e)?e:[e]}function xr(e){const t=D(),n={sid:w(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>Dr(n)};return e&&se(n,e),n}function se(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||D(),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:w()),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{const 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 Cr(e,t){let n={};t?n={status:t}:e.status==="ok"&&(n={status:"exited"}),se(e,n)}function Dr(e){return I({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 Ya(){return{traceId:Ve(),spanId:Te()}}function Ve(){return w()}function Te(){return w().substring(16)}function Ie(e,t,n=2){if(!t||typeof t!="object"||n<=0)return t;if(e&&t&&Object.keys(t).length===0)return e;const r={...e};for(const s in t)Object.prototype.hasOwnProperty.call(t,s)&&(r[s]=Ie(r[s],t[s],n-1));return r}const Ze="_sentrySpan";function Vt(e,t){t?G(e,Ze,t):delete e[Ze]}function Zt(e){return e[Ze]}const Ar=100;class Qe{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:Ve(),spanId:Te()}}clone(){const t=new Qe;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._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,Vt(t,Zt(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&&se(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}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;const n=typeof t=="function"?t(this):t,[r,s]=n instanceof L?[n.getScopeData(),n.getRequestSession()]:ee(n)?[t,t.requestSession]:[],{tags:o,extra:i,user:a,contexts:c,level:l,fingerprint:f=[],propagationContext:u}=r||{};return this._tags={...this._tags,...o},this._extra={...this._extra,...i},this._contexts={...this._contexts,...c},a&&Object.keys(a).length&&(this._user=a),l&&(this._level=l),f.length&&(this._fingerprint=f),u&&(this._propagationContext=u),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,Vt(this,void 0),this._attachments=[],this.setPropagationContext({traceId:Ve()}),this._notifyScopeListeners(),this}addBreadcrumb(t,n){const r=typeof n=="number"?n:Ar;if(r<=0)return this;const s={timestamp:fe(),...t},o=this._breadcrumbs;return o.push(s),this._breadcrumbs=o.length>r?o.slice(-r):o,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:Zt(this)}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=Ie(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext={spanId:Te(),...t},this}getPropagationContext(){return this._propagationContext}captureException(t,n){const r=n&&n.event_id?n.event_id:w();if(!this._client)return p.warn("No client configured on scope - will not capture exception!"),r;const s=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:s,...n,event_id:r},this),r}captureMessage(t,n,r){const s=r&&r.event_id?r.event_id:w();if(!this._client)return p.warn("No client configured on scope - will not capture message!"),s;const o=new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:o,...r,event_id:s},this),s}captureEvent(t,n){const r=n&&n.event_id?n.event_id:w();return this._client?(this._client.captureEvent(t,{...n,event_id:r},this),r):(p.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)}}const L=Qe;function Pr(){return me("defaultCurrentScope",()=>new L)}function Mr(){return me("defaultIsolationScope",()=>new L)}class Lr{constructor(t,n){let r;t?r=t:r=new L;let s;n?s=n:s=new L,this._stack=[{scope:r}],this._isolationScope=s}withScope(t){const n=this._pushScope();let r;try{r=t(n)}catch(s){throw this._popScope(),s}return Ee(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}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?!1:!!this._stack.pop()}}function oe(){const e=_e(),t=He(e);return t.stack=t.stack||new Lr(Pr(),Mr())}function jr(e){return oe().withScope(e)}function Ur(e,t){const n=oe();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function Qt(e){return oe().withScope(()=>e(oe().getIsolationScope()))}function $r(){return{withIsolationScope:Qt,withScope:jr,withSetScope:Ur,withSetIsolationScope:(e,t)=>Qt(t),getCurrentScope:()=>oe().getScope(),getIsolationScope:()=>oe().getIsolationScope()}}function Ja(e){const t=getMainCarrier(),n=getSentryCarrier(t);n.acs=e}function et(e){const t=He(e);return t.acs?t.acs:$r()}function O(){const e=_e();return et(e).getCurrentScope()}function de(){const e=_e();return et(e).getIsolationScope()}function en(){return me("globalScope",()=>new L)}function Fr(...e){const t=_e(),n=et(t);if(e.length===2){const[r,s]=e;return r?n.withSetScope(r,s):n.withScope(s)}return n.withScope(e[0])}function Ka(...e){const t=getMainCarrier(),n=getAsyncContextStrategy(t);if(e.length===2){const[r,s]=e;return r?n.withSetIsolationScope(r,s):n.withIsolationScope(s)}return n.withIsolationScope(e[0])}function E(){return O().getClient()}function Br(e){const t=e.getPropagationContext(),{traceId:n,spanId:r,parentSpanId:s}=t;return I({trace_id:n,span_id:r,parent_span_id:s})}const _=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;var A;(function(e){e[e.PENDING=0]="PENDING";const n=1;e[e.RESOLVED=n]="RESOLVED";const r=2;e[e.REJECTED=r]="REJECTED"})(A||(A={}));function z(e){return new k(t=>{t(e)})}function we(e){return new k((t,n)=>{n(e)})}class k{constructor(t){k.prototype.__init.call(this),k.prototype.__init2.call(this),k.prototype.__init3.call(this),k.prototype.__init4.call(this),this._state=A.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(n){this._reject(n)}}then(t,n){return new k((r,s)=>{this._handlers.push([!1,o=>{if(!t)r(o);else try{r(t(o))}catch(i){s(i)}},o=>{if(!n)s(o);else try{r(n(o))}catch(i){s(i)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new k((n,r)=>{let s,o;return this.then(i=>{o=!1,s=i,t&&t()},i=>{o=!0,s=i,t&&t()}).then(()=>{if(o){r(s);return}n(s)})})}__init(){this._resolve=t=>{this._setResult(A.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(A.REJECTED,t)}}__init3(){this._setResult=(t,n)=>{if(this._state===A.PENDING){if(Ee(n)){n.then(this._resolve,this._reject);return}this._state=t,this._value=n,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===A.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===A.RESOLVED&&n[1](this._value),this._state===A.REJECTED&&n[2](this._value),n[0]=!0)})}}}function tt(e,t,n,r=0){return new k((s,o)=>{const i=e[r];if(t===null||typeof i!="function")s(t);else{const a=i({...t},n);_&&i.id&&a===null&&p.log(`Event processor "${i.id}" dropped event`),Ee(a)?a.then(c=>tt(e,c,n,r+1).then(s)).then(null,o):tt(e,a,n,r+1).then(s).then(null,o)}})}let ke,tn,Ne;function nn(e){const t=m._sentryDebugIds;if(!t)return{};const n=Object.keys(t);return Ne&&n.length===tn||(tn=n.length,Ne=n.reduce((r,s)=>{ke||(ke={});const o=ke[s];if(o)r[o[0]]=o[1];else{const i=e(s);for(let a=i.length-1;a>=0;a--){const c=i[a],l=c&&c.filename,f=t[s];if(l&&f){r[l]=f,ke[s]=[l,f];break}}}return r},{})),Ne}function Xa(e,t){const n=nn(e);if(!n)return[];const r=[];for(const s of t)s&&n[s]&&r.push({type:"sourcemap",code_file:s,debug_id:n[s]});return r}function Hr(){const e=typeof WeakSet=="function",t=e?new WeakSet:[];function n(s){if(e)return t.has(s)?!0:(t.add(s),!1);for(let o=0;o<t.length;o++)if(t[o]===s)return!0;return t.push(s),!1}function r(s){if(e)t.delete(s);else for(let o=0;o<t.length;o++)if(t[o]===s){t.splice(o,1);break}}return[n,r]}const rn=50,R="?",sn=/\(error: (.*)\)/,on=/captureMessage|captureException/;function an(...e){const t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,s=0)=>{const o=[],i=n.split(`
|
|
4
|
-
`);for(let a=r;a<i.length;a++){const c=i[a];if(c.length>1024)continue;const l=sn.test(c)?c.replace(sn,"$1"):c;if(!l.match(/\S*Error: /)){for(const f of t){const u=f(l);if(u){o.push(u);break}}if(o.length>=rn+s)break}}return zr(o.slice(s))}}function Gr(e){return Array.isArray(e)?an(...e):e}function zr(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(Oe(t).function||"")&&t.pop(),t.reverse(),on.test(Oe(t).function||"")&&(t.pop(),on.test(Oe(t).function||"")&&t.pop()),t.slice(0,rn).map(n=>({...n,filename:n.filename||Oe(t).filename,function:n.function||R}))}function Oe(e){return e[e.length-1]||{}}const nt="<anonymous>";function j(e){try{return!e||typeof e!="function"?nt:e.name||nt}catch{return nt}}function cn(e){const t=e.exception;if(t){const n=[];try{return t.values.forEach(r=>{r.stacktrace.frames&&n.push(...r.stacktrace.frames)}),n}catch{return}}}function P(e,t=100,n=1/0){try{return rt("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function un(e,t=3,n=100*1024){const r=P(e,t);return Jr(r)>n?un(e,t-1,n):r}function rt(e,t,n=1/0,r=1/0,s=Hr()){const[o,i]=s;if(t==null||["boolean","string"].includes(typeof t)||typeof t=="number"&&Number.isFinite(t))return t;const a=Wr(e,t);if(!a.startsWith("[object "))return a;if(t.__sentry_skip_normalization__)return t;const c=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(c===0)return a.replace("object ","");if(o(t))return"[Circular ~]";const l=t;if(l&&typeof l.toJSON=="function")try{const h=l.toJSON();return rt("",h,c-1,r,s)}catch{}const f=Array.isArray(t)?[]:{};let u=0;const d=Wt(t);for(const h in d){if(!Object.prototype.hasOwnProperty.call(d,h))continue;if(u>=r){f[h]="[MaxProperties ~]";break}const g=d[h];f[h]=rt(h,g,c-1,r,s),u++}return i(t),f}function Wr(e,t){try{if(e==="domain"&&t&&typeof t=="object"&&t._events)return"[Domain]";if(e==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&t===global)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(Bt(t))return"[VueViewModel]";if(_r(t))return"[SyntheticEvent]";if(typeof t=="number"&&!Number.isFinite(t))return`[${t}]`;if(typeof t=="function")return`[Function: ${j(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const n=qr(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function qr(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function Yr(e){return~-encodeURI(e).split(/%..|./).length}function Jr(e){return Yr(JSON.stringify(e))}function Va(e,t){const n=t.replace(/\\/g,"/").replace(/[|\\{}()[\]^$+*?.]/g,"\\$&");let r=e;try{r=decodeURI(e)}catch{}return r.replace(/\\/g,"/").replace(/webpack:\/?/g,"").replace(new RegExp(`(file://)?/*${n}/*`,"ig"),"app:///")}const Kr="sentry.source",Xr="sentry.sample_rate",Vr="sentry.op",Zr="sentry.origin",Za="sentry.idle_span_finish_reason",Qa="sentry.measurement_unit",ec="sentry.measurement_value",tc="sentry.profile_id",nc="sentry.exclusive_time",rc="cache.hit",sc="cache.key",oc="cache.item_size",ic="http.request.method",ac="url.full",cc="baggage",ln="sentry-",Qr=/^sentry-/,es=8192;function ts(e){const t=ns(e);if(!t)return;const n=Object.entries(t).reduce((r,[s,o])=>{if(s.match(Qr)){const i=s.slice(ln.length);r[i]=o}return r},{});if(Object.keys(n).length>0)return n}function uc(e){if(!e)return;const t=Object.entries(e).reduce((n,[r,s])=>(s&&(n[`${ln}${r}`]=s),n),{});return rs(t)}function ns(e){if(!(!e||!C(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((t,n)=>{const r=fn(n);return Object.entries(r).forEach(([s,o])=>{t[s]=o}),t},{}):fn(e)}function fn(e){return e.split(",").map(t=>t.split("=").map(n=>decodeURIComponent(n.trim()))).reduce((t,[n,r])=>(n&&r&&(t[n]=r),t),{})}function rs(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((t,[n,r],s)=>{const o=`${encodeURIComponent(n)}=${encodeURIComponent(r)}`,i=s===0?o:`${t},${o}`;return i.length>es?(DEBUG_BUILD&&logger.warn(`Not adding key: ${n} with val: ${r} to baggage header due to exceeding baggage size limits.`),t):i},"")}function ss(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=E(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}const st="_sentryMetrics";function os(e){const t=e[st];if(!t)return;const n={};for(const[,[r,s]]of t)(n[r]||(n[r]=[])).push(I(s));return n}function lc(e,t,n,r,s,o,i){const c=e[st]||(e[st]=new Map),l=`${t}:${n}@${s}`,f=c.get(i);if(f){const[,u]=f;c.set(i,[l,{min:Math.min(u.min,r),max:Math.max(u.max,r),count:u.count+=1,sum:u.sum+=r,tags:u.tags}])}else c.set(i,[l,{min:r,max:r,count:1,sum:r,tags:o}])}const is=0,dn=1,T=2;function as(e){if(e<400&&e>=100)return{code:dn};if(e>=400&&e<500)switch(e){case 401:return{code:T,message:"unauthenticated"};case 403:return{code:T,message:"permission_denied"};case 404:return{code:T,message:"not_found"};case 409:return{code:T,message:"already_exists"};case 413:return{code:T,message:"failed_precondition"};case 429:return{code:T,message:"resource_exhausted"};case 499:return{code:T,message:"cancelled"};default:return{code:T,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:T,message:"unimplemented"};case 503:return{code:T,message:"unavailable"};case 504:return{code:T,message:"deadline_exceeded"};default:return{code:T,message:"internal_error"}}return{code:T,message:"unknown_error"}}function fc(e,t){e.setAttribute("http.response.status_code",t);const n=as(t);n.message!=="unknown_error"&&e.setStatus(n)}const dc=0,cs=1;let pn=!1;function pc(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:s,parent_span_id:o,status:i,origin:a}=Re(e);return dropUndefinedKeys({parent_span_id:o,span_id:t,trace_id:n,data:r,op:s,status:i,origin:a})}function us(e){const{spanId:t,traceId:n,isRemote:r}=e.spanContext(),s=r?t:Re(e).parent_span_id,o=r?Te():t;return I({parent_span_id:s,span_id:o,trace_id:n})}function hc(e){const{traceId:t,spanId:n}=e.spanContext(),r=ot(e);return generateSentryTraceHeader(t,n,r)}function hn(e){return typeof e=="number"?gn(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?gn(e.getTime()):D()}function gn(e){return e>9999999999?e/1e3:e}function Re(e){if(fs(e))return e.getSpanJSON();try{const{spanId:t,traceId:n}=e.spanContext();if(ls(e)){const{attributes:r,startTime:s,name:o,endTime:i,parentSpanId:a,status:c}=e;return I({span_id:t,trace_id:n,data:r,description:o,parent_span_id:a,start_timestamp:hn(s),timestamp:hn(i)||void 0,status:ds(c),op:r[Vr],origin:r[Zr],_metrics_summary:os(e)})}return{span_id:t,trace_id:n}}catch{return{}}}function ls(e){const t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function fs(e){return typeof e.getSpanJSON=="function"}function ot(e){const{traceFlags:t}=e.spanContext();return t===cs}function ds(e){if(!(!e||e.code===is))return e.code===dn?"ok":e.message||"unknown_error"}const W="_sentryChildSpans",it="_sentryRootSpan";function gc(e,t){const n=e[it]||e;addNonEnumerableProperty(t,it,n),e[W]?e[W].add(t):addNonEnumerableProperty(e,W,new Set([t]))}function mc(e,t){e[W]&&e[W].delete(t)}function _c(e){const t=new Set;function n(r){if(!t.has(r)&&ot(r)){t.add(r);const s=r[W]?Array.from(r[W]):[];for(const o of s)n(o)}}return n(e),Array.from(t)}function mn(e){return e[it]||e}function ps(){const e=getMainCarrier(),t=getAsyncContextStrategy(e);return t.getActiveSpan?t.getActiveSpan():_getSpanForScope(getCurrentScope())}function yc(e,t,n,r,s,o){const i=ps();i&&updateMetricSummaryOnSpan(i,e,t,n,r,s,o)}function hs(){pn||(H(()=>{console.warn("[Sentry] Deprecation warning: Returning null from `beforeSendSpan` will be disallowed from SDK version 9.0.0 onwards. The callback will only support mutating spans. To drop certain spans, configure the respective integrations directly.")}),pn=!0)}const _n="_frozenDsc";function Ec(e,t){const n=e;addNonEnumerableProperty(n,_n,t)}function yn(e,t){const n=t.getOptions(),{publicKey:r}=t.getDsn()||{},s=I({environment:n.environment||Be,release:n.release,public_key:r,trace_id:e});return t.emit("createDsc",s),s}function gs(e,t){const n=t.getPropagationContext();return n.dsc||yn(n.traceId,e)}function En(e){const t=E();if(!t)return{};const n=mn(e),r=n[_n];if(r)return r;const s=n.spanContext().traceState,o=s&&s.get("sentry.dsc"),i=o&&ts(o);if(i)return i;const a=yn(e.spanContext().traceId,t),c=Re(n),l=c.data||{},f=l[Xr];f!=null&&(a.sample_rate=`${f}`);const u=l[Kr],d=c.description;return u!=="url"&&d&&(a.transaction=d),ss()&&(a.sampled=String(ot(n))),t.emit("createDsc",a,n),a}function Sc(e){const t=En(e);return dynamicSamplingContextToSentryBaggageHeader(t)}function ms(e,t){const{fingerprint:n,span:r,breadcrumbs:s,sdkProcessingMetadata:o}=t;_s(e,t),r&&Ss(e,r),bs(e,n),ys(e,s),Es(e,o)}function Sn(e,t){const{extra:n,tags:r,user:s,contexts:o,level:i,sdkProcessingMetadata:a,breadcrumbs:c,fingerprint:l,eventProcessors:f,attachments:u,propagationContext:d,transactionName:h,span:g}=t;xe(e,"extra",n),xe(e,"tags",r),xe(e,"user",s),xe(e,"contexts",o),e.sdkProcessingMetadata=Ie(e.sdkProcessingMetadata,a,2),i&&(e.level=i),h&&(e.transactionName=h),g&&(e.span=g),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),l.length&&(e.fingerprint=[...e.fingerprint,...l]),f.length&&(e.eventProcessors=[...e.eventProcessors,...f]),u.length&&(e.attachments=[...e.attachments,...u]),e.propagationContext={...e.propagationContext,...d}}function xe(e,t,n){e[t]=Ie(e[t],n,1)}function _s(e,t){const{extra:n,tags:r,user:s,contexts:o,level:i,transactionName:a}=t,c=I(n);c&&Object.keys(c).length&&(e.extra={...c,...e.extra});const l=I(r);l&&Object.keys(l).length&&(e.tags={...l,...e.tags});const f=I(s);f&&Object.keys(f).length&&(e.user={...f,...e.user});const u=I(o);u&&Object.keys(u).length&&(e.contexts={...u,...e.contexts}),i&&(e.level=i),a&&e.type!=="transaction"&&(e.transaction=a)}function ys(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function Es(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function Ss(e,t){e.contexts={trace:us(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:En(t),...e.sdkProcessingMetadata};const n=mn(t),r=Re(n).description;r&&!e.transaction&&e.type==="transaction"&&(e.transaction=r)}function bs(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}function vs(e,t,n,r,s,o){const{normalizeDepth:i=3,normalizeMaxBreadth:a=1e3}=e,c={...t,event_id:t.event_id||n.event_id||w(),timestamp:t.timestamp||fe()},l=n.integrations||e.integrations.map(S=>S.name);Ts(c,e),ks(c,l),s&&s.emit("applyFrameMetadata",t),t.type===void 0&&Is(c,e.stackParser);const f=Os(r,n.captureContext);n.mechanism&&re(c,n.mechanism);const u=s?s.getEventProcessors():[],d=en().getScopeData();if(o){const S=o.getScopeData();Sn(d,S)}if(f){const S=f.getScopeData();Sn(d,S)}const h=[...n.attachments||[],...d.attachments];h.length&&(n.attachments=h),ms(c,d);const g=[...u,...d.eventProcessors];return tt(g,c,n).then(S=>(S&&ws(S),typeof i=="number"&&i>0?Ns(S,i,a):S))}function Ts(e,t){const{environment:n,release:r,dist:s,maxValueLength:o=250}=t;e.environment=e.environment||n||Be,!e.release&&r&&(e.release=r),!e.dist&&s&&(e.dist=s),e.message&&(e.message=ne(e.message,o));const i=e.exception&&e.exception.values&&e.exception.values[0];i&&i.value&&(i.value=ne(i.value,o));const a=e.request;a&&a.url&&(a.url=ne(a.url,o))}function Is(e,t){const n=nn(t);try{e.exception.values.forEach(r=>{r.stacktrace.frames.forEach(s=>{n&&s.filename&&(s.debug_id=n[s.filename])})})}catch{}}function ws(e){const t={};try{e.exception.values.forEach(r=>{r.stacktrace.frames.forEach(s=>{s.debug_id&&(s.abs_path?t[s.abs_path]=s.debug_id:s.filename&&(t[s.filename]=s.debug_id),delete s.debug_id)})})}catch{}if(Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.entries(t).forEach(([r,s])=>{n.push({type:"sourcemap",code_file:r,debug_id:s})})}function ks(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function Ns(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(s=>({...s,...s.data&&{data:P(s.data,t,n)}}))},...e.user&&{user:P(e.user,t,n)},...e.contexts&&{contexts:P(e.contexts,t,n)},...e.extra&&{extra:P(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=P(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(s=>({...s,...s.data&&{data:P(s.data,t,n)}}))),e.contexts&&e.contexts.flags&&r.contexts&&(r.contexts.flags=P(e.contexts.flags,3,n)),r}function Os(e,t){if(!t)return e;const n=e?e.clone():new L;return n.update(t),n}function Rs(e){if(!!e)return xs(e)?{captureContext:e}:Ds(e)?{captureContext:e}:e}function xs(e){return e instanceof L||typeof e=="function"}const Cs=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function Ds(e){return Object.keys(e).some(t=>Cs.includes(t))}function bn(e,t){return O().captureException(e,Rs(t))}function As(e,t){const n=typeof t=="string"?t:void 0,r=typeof t!="string"?{captureContext:t}:void 0;return O().captureMessage(e,n,r)}function vn(e,t){return O().captureEvent(e,t)}function bc(e,t){getIsolationScope().setContext(e,t)}function vc(e){getIsolationScope().setExtras(e)}function Tc(e,t){getIsolationScope().setExtra(e,t)}function Ic(e){getIsolationScope().setTags(e)}function wc(e,t){getIsolationScope().setTag(e,t)}function kc(e){getIsolationScope().setUser(e)}function Nc(){return getIsolationScope().lastEventId()}function Tn(e,t){const n=getCurrentScope(),r=getClient();if(!r)DEBUG_BUILD&&logger.warn("Cannot capture check-in. No client defined.");else if(!r.captureCheckIn)DEBUG_BUILD&&logger.warn("Cannot capture check-in. Client does not support sending check-ins.");else return r.captureCheckIn(e,t,n);return uuid4()}function Oc(e,t,n){const r=Tn({monitorSlug:e,status:"in_progress"},n),s=timestampInSeconds();function o(i){Tn({monitorSlug:e,status:i,checkInId:r,duration:timestampInSeconds()-s})}return withIsolationScope(()=>{let i;try{i=t()}catch(a){throw o("error"),a}return isThenable(i)?Promise.resolve(i).then(()=>{o("ok")},a=>{throw o("error"),a}):o("ok"),i})}async function Rc(e){const t=getClient();return t?t.flush(e):(DEBUG_BUILD&&logger.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}async function xc(e){const t=getClient();return t?t.close(e):(DEBUG_BUILD&&logger.warn("Cannot flush events and disable SDK. No client defined."),Promise.resolve(!1))}function Ps(){return!!E()}function Cc(){const e=getClient();return!!e&&e.getOptions().enabled!==!1&&!!e.getTransport()}function Dc(e){getIsolationScope().addEventProcessor(e)}function In(e){const t=E(),n=de(),r=O(),{release:s,environment:o=Be}=t&&t.getOptions()||{},{userAgent:i}=m.navigator||{},a=xr({release:s,environment:o,user:r.getUser()||n.getUser(),...i&&{userAgent:i},...e}),c=n.getSession();return c&&c.status==="ok"&&se(c,{status:"exited"}),wn(),n.setSession(a),r.setSession(a),a}function wn(){const e=de(),t=O(),n=t.getSession()||e.getSession();n&&Cr(n),kn(),e.setSession(),t.setSession()}function kn(){const e=de(),t=O(),n=E(),r=t.getSession()||e.getSession();r&&n&&n.captureSession(r)}function Nn(e=!1){if(e){wn();return}kn()}const On=[];function Ms(e){const t={};return e.forEach(n=>{const{name:r}=n,s=t[r];s&&!s.isDefaultInstance&&n.isDefaultInstance||(t[r]=n)}),Object.values(t)}function Ls(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(i=>{i.isDefaultInstance=!0});let r;if(Array.isArray(n))r=[...t,...n];else if(typeof n=="function"){const i=n(t);r=Array.isArray(i)?i:[i]}else r=t;const s=Ms(r),o=s.findIndex(i=>i.name==="Debug");if(o>-1){const[i]=s.splice(o,1);s.push(i)}return s}function js(e,t){const n={};return t.forEach(r=>{r&&xn(e,r,n)}),n}function Rn(e,t){for(const n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function xn(e,t,n){if(n[t.name]){_&&p.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,On.indexOf(t.name)===-1&&typeof t.setupOnce=="function"&&(t.setupOnce(),On.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),typeof t.preprocessEvent=="function"){const r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(s,o)=>r(s,o,e))}if(typeof t.processEvent=="function"){const r=t.processEvent.bind(t),s=Object.assign((o,i)=>r(o,i,e),{id:t.name});e.addEventProcessor(s)}_&&p.log(`Integration installed: ${t.name}`)}function Ac(e){const t=getClient();if(!t){DEBUG_BUILD&&logger.warn(`Cannot add integration "${e.name}" because no SDK Client is available.`);return}t.addIntegration(e)}function Pc(e){return e}const Us=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,"undefined is not an object (evaluating 'a.L')",`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+$/],$s="InboundFilters",Fs=(e={})=>({name:$s,processEvent(t,n,r){const s=r.getOptions(),o=Bs(e,s);return Hs(t,o)?null:t}});function Bs(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:Us],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]],ignoreInternal:e.ignoreInternal!==void 0?e.ignoreInternal:!0}}function Hs(e,t){return t.ignoreInternal&&Js(e)?(_&&p.warn(`Event dropped due to being internal Sentry Error.
|
|
3
|
+
`),u.push(t.err.stack)),r.apply(console,u)},e.getDefaultCss=function(){return jt},e}();const Be="production",$="8.46.0",m=globalThis;function me(e,t,n){const r=n||m,s=r.__SENTRY__=r.__SENTRY__||{},o=s[$]=s[$]||{};return o[e]||(o[e]=t())}function _e(){return He(m),m}function He(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||$,t[$]=t[$]||{}}const Ut=Object.prototype.toString;function Ge(e){switch(Ut.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return F(e,Error)}}function Q(e,t){return Ut.call(e)===`[object ${t}]`}function $t(e){return Q(e,"ErrorEvent")}function Ft(e){return Q(e,"DOMError")}function hr(e){return Q(e,"DOMException")}function C(e){return Q(e,"String")}function ze(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function We(e){return e===null||ze(e)||typeof e!="object"&&typeof e!="function"}function ee(e){return Q(e,"Object")}function ye(e){return typeof Event<"u"&&F(e,Event)}function gr(e){return typeof Element<"u"&&F(e,Element)}function mr(e){return Q(e,"RegExp")}function Ee(e){return Boolean(e&&e.then&&typeof e.then=="function")}function _r(e){return ee(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function F(e,t){try{return e instanceof t}catch{return!1}}function Bt(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}const te=m,yr=80;function Ht(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,s=[];let o=0,i=0;const a=" > ",c=a.length;let l;const f=Array.isArray(t)?t:t.keyAttrs,u=!Array.isArray(t)&&t.maxStringLength||yr;for(;n&&o++<r&&(l=Er(n,f),!(l==="html"||o>1&&i+s.length*c+l.length>=u));)s.push(l),i+=l.length,n=n.parentNode;return s.reverse().join(a)}catch{return"<unknown>"}}function Er(e,t){const n=e,r=[];if(!n||!n.tagName)return"";if(te.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=t&&t.length?t.filter(i=>n.getAttribute(i)).map(i=>[i,n.getAttribute(i)]):null;if(s&&s.length)s.forEach(i=>{r.push(`[${i[0]}="${i[1]}"]`)});else{n.id&&r.push(`#${n.id}`);const i=n.className;if(i&&C(i)){const a=i.split(/\s+/);for(const c of a)r.push(`.${c}`)}}const o=["aria-label","type","name","title","alt"];for(const i of o){const a=n.getAttribute(i);a&&r.push(`[${i}="${a}"]`)}return r.join("")}function Sr(){try{return te.document.location.href}catch{return""}}function $a(e){return te.document&&te.document.querySelector?te.document.querySelector(e):null}function br(e){if(!te.HTMLElement)return null;let t=e;const 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}const B=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,vr="Sentry Logger ",qe=["debug","info","warn","error","log","assert","trace"],Se={};function H(e){if(!("console"in m))return e();const t=m.console,n={},r=Object.keys(Se);r.forEach(s=>{const o=Se[s];n[s]=t[s],t[s]=o});try{return e()}finally{r.forEach(s=>{t[s]=n[s]})}}function Tr(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return B?qe.forEach(n=>{t[n]=(...r)=>{e&&H(()=>{m.console[n](`${vr}[${n}]:`,...r)})}}):qe.forEach(n=>{t[n]=()=>{}}),t}const p=me("logger",Tr);function ne(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function Fa(e,t){let n=e;const r=n.length;if(r<=150)return n;t>r&&(t=r);let s=Math.max(t-60,0);s<5&&(s=0);let o=Math.min(s+140,r);return o>r-5&&(o=r),o===r&&(s=Math.max(o-140,0)),n=n.slice(s,o),s>0&&(n=`'{snip} ${n}`),o<r&&(n+=" {snip}"),n}function Gt(e,t){if(!Array.isArray(e))return"";const n=[];for(let r=0;r<e.length;r++){const s=e[r];try{Bt(s)?n.push("[VueViewModel]"):n.push(String(s))}catch{n.push("[value cannot be serialized]")}}return n.join(t)}function Ir(e,t,n=!1){return C(e)?mr(t)?t.test(e):C(t)?n?e===t:e.includes(t):!1:!1}function be(e,t=[],n=!1){return t.some(r=>Ir(e,r,n))}function v(e,t,n){if(!(t in e))return;const r=e[t],s=n(r);typeof s=="function"&&zt(s,r);try{e[t]=s}catch{B&&p.log(`Failed to replace method "${t}" in object`,e)}}function G(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{B&&p.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function zt(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,G(e,"__sentry_original__",t)}catch{}}function Ye(e){return e.__sentry_original__}function Ba(e){return Object.entries(e).map(([t,n])=>`${encodeURIComponent(t)}=${encodeURIComponent(n)}`).join("&")}function Wt(e){if(Ge(e))return{message:e.message,name:e.name,stack:e.stack,...Yt(e)};if(ye(e)){const t={type:e.type,target:qt(e.target),currentTarget:qt(e.currentTarget),...Yt(e)};return typeof CustomEvent<"u"&&F(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function qt(e){try{return gr(e)?Ht(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function Yt(e){if(typeof e=="object"&&e!==null){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function wr(e,t=40){const n=Object.keys(Wt(e));n.sort();const r=n[0];if(!r)return"[object has no keys]";if(r.length>=t)return ne(r,t);for(let s=n.length;s>0;s--){const o=n.slice(0,s).join(", ");if(!(o.length>t))return s===n.length?o:ne(o,t)}return""}function I(e){return Je(e,new Map)}function Je(e,t){if(kr(e)){const n=t.get(e);if(n!==void 0)return n;const r={};t.set(e,r);for(const s of Object.getOwnPropertyNames(e))typeof e[s]<"u"&&(r[s]=Je(e[s],t));return r}if(Array.isArray(e)){const n=t.get(e);if(n!==void 0)return n;const r=[];return t.set(e,r),e.forEach(s=>{r.push(Je(s,t))}),r}return e}function kr(e){if(!ee(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||t==="Object"}catch{return!0}}function Ha(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 isPrimitive(e):t=new e.constructor(e);break;default:t=e;break}return t}const Jt=1e3;function fe(){return Date.now()/Jt}function Or(){const{performance:e}=m;if(!e||!e.now)return fe;const t=Date.now()-e.now(),n=e.timeOrigin==null?t:e.timeOrigin;return()=>(n+e.now())/Jt}const D=Or();let ve;const Ga=(()=>{const{performance:e}=m;if(!e||!e.now){ve="none";return}const t=3600*1e3,n=e.now(),r=Date.now(),s=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,o=s<t,i=e.timing&&e.timing.navigationStart,c=typeof i=="number"?Math.abs(i+n-r):t,l=c<t;return o||l?s<=c?(ve="timeOrigin",e.timeOrigin):(ve="navigationStart",i):(ve="dateNow",r)})();function w(){const e=m,t=e.crypto||e.msCrypto;let n=()=>Math.random()*16;try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const r=new Uint8Array(1);return t.getRandomValues(r),r[0]})}catch{}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,r=>(r^(n()&15)>>r/4).toString(16))}function Kt(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function M(e){const{message:t,event_id:n}=e;if(t)return t;const r=Kt(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function Ke(e,t,n){const r=e.exception=e.exception||{},s=r.values=r.values||[],o=s[0]=s[0]||{};o.value||(o.value=t||""),o.type||(o.type=n||"Error")}function re(e,t){const n=Kt(e);if(!n)return;const r={type:"generic",handled:!0},s=n.mechanism;if(n.mechanism={...r,...s,...t},t&&"data"in t){const o={...s&&s.data,...t.data};n.mechanism.data=o}}const Nr=/^(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 Xe(e){return parseInt(e||"",10)}function za(e){const t=e.match(Nr)||[],n=Xe(t[1]),r=Xe(t[2]),s=Xe(t[3]);return{buildmetadata:t[5],major:isNaN(n)?void 0:n,minor:isNaN(r)?void 0:r,patch:isNaN(s)?void 0:s,prerelease:t[4]}}function Wa(e,t,n=5){if(t.lineno===void 0)return;const r=e.length,s=Math.max(Math.min(r-1,t.lineno-1),0);t.pre_context=e.slice(Math.max(0,s-n),s).map(i=>snipLine(i,0));const o=Math.min(r-1,s);t.context_line=snipLine(e[o],t.colno||0),t.post_context=e.slice(Math.min(s+1,r),s+1+n).map(i=>snipLine(i,0))}function Xt(e){if(Rr(e))return!0;try{G(e,"__sentry_captured__",!0)}catch{}return!1}function Rr(e){try{return e.__sentry_captured__}catch{}}function qa(e){return Array.isArray(e)?e:[e]}function xr(e){const t=D(),n={sid:w(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>Dr(n)};return e&&se(n,e),n}function se(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||D(),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:w()),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{const 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 Cr(e,t){let n={};t?n={status:t}:e.status==="ok"&&(n={status:"exited"}),se(e,n)}function Dr(e){return I({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 Ya(){return{traceId:Ve(),spanId:Te()}}function Ve(){return w()}function Te(){return w().substring(16)}function Ie(e,t,n=2){if(!t||typeof t!="object"||n<=0)return t;if(e&&t&&Object.keys(t).length===0)return e;const r={...e};for(const s in t)Object.prototype.hasOwnProperty.call(t,s)&&(r[s]=Ie(r[s],t[s],n-1));return r}const Ze="_sentrySpan";function Vt(e,t){t?G(e,Ze,t):delete e[Ze]}function Zt(e){return e[Ze]}const Ar=100;class Qe{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:Ve(),spanId:Te()}}clone(){const t=new Qe;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._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,Vt(t,Zt(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&&se(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}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;const n=typeof t=="function"?t(this):t,[r,s]=n instanceof L?[n.getScopeData(),n.getRequestSession()]:ee(n)?[t,t.requestSession]:[],{tags:o,extra:i,user:a,contexts:c,level:l,fingerprint:f=[],propagationContext:u}=r||{};return this._tags={...this._tags,...o},this._extra={...this._extra,...i},this._contexts={...this._contexts,...c},a&&Object.keys(a).length&&(this._user=a),l&&(this._level=l),f.length&&(this._fingerprint=f),u&&(this._propagationContext=u),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,Vt(this,void 0),this._attachments=[],this.setPropagationContext({traceId:Ve()}),this._notifyScopeListeners(),this}addBreadcrumb(t,n){const r=typeof n=="number"?n:Ar;if(r<=0)return this;const s={timestamp:fe(),...t},o=this._breadcrumbs;return o.push(s),this._breadcrumbs=o.length>r?o.slice(-r):o,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:Zt(this)}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=Ie(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext={spanId:Te(),...t},this}getPropagationContext(){return this._propagationContext}captureException(t,n){const r=n&&n.event_id?n.event_id:w();if(!this._client)return p.warn("No client configured on scope - will not capture exception!"),r;const s=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:s,...n,event_id:r},this),r}captureMessage(t,n,r){const s=r&&r.event_id?r.event_id:w();if(!this._client)return p.warn("No client configured on scope - will not capture message!"),s;const o=new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:o,...r,event_id:s},this),s}captureEvent(t,n){const r=n&&n.event_id?n.event_id:w();return this._client?(this._client.captureEvent(t,{...n,event_id:r},this),r):(p.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)}}const L=Qe;function Pr(){return me("defaultCurrentScope",()=>new L)}function Mr(){return me("defaultIsolationScope",()=>new L)}class Lr{constructor(t,n){let r;t?r=t:r=new L;let s;n?s=n:s=new L,this._stack=[{scope:r}],this._isolationScope=s}withScope(t){const n=this._pushScope();let r;try{r=t(n)}catch(s){throw this._popScope(),s}return Ee(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}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?!1:!!this._stack.pop()}}function oe(){const e=_e(),t=He(e);return t.stack=t.stack||new Lr(Pr(),Mr())}function jr(e){return oe().withScope(e)}function Ur(e,t){const n=oe();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function Qt(e){return oe().withScope(()=>e(oe().getIsolationScope()))}function $r(){return{withIsolationScope:Qt,withScope:jr,withSetScope:Ur,withSetIsolationScope:(e,t)=>Qt(t),getCurrentScope:()=>oe().getScope(),getIsolationScope:()=>oe().getIsolationScope()}}function Ja(e){const t=getMainCarrier(),n=getSentryCarrier(t);n.acs=e}function et(e){const t=He(e);return t.acs?t.acs:$r()}function N(){const e=_e();return et(e).getCurrentScope()}function de(){const e=_e();return et(e).getIsolationScope()}function en(){return me("globalScope",()=>new L)}function Fr(...e){const t=_e(),n=et(t);if(e.length===2){const[r,s]=e;return r?n.withSetScope(r,s):n.withScope(s)}return n.withScope(e[0])}function Ka(...e){const t=getMainCarrier(),n=getAsyncContextStrategy(t);if(e.length===2){const[r,s]=e;return r?n.withSetIsolationScope(r,s):n.withIsolationScope(s)}return n.withIsolationScope(e[0])}function E(){return N().getClient()}function Br(e){const t=e.getPropagationContext(),{traceId:n,spanId:r,parentSpanId:s}=t;return I({trace_id:n,span_id:r,parent_span_id:s})}const _=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;var A;(function(e){e[e.PENDING=0]="PENDING";const n=1;e[e.RESOLVED=n]="RESOLVED";const r=2;e[e.REJECTED=r]="REJECTED"})(A||(A={}));function z(e){return new k(t=>{t(e)})}function we(e){return new k((t,n)=>{n(e)})}class k{constructor(t){k.prototype.__init.call(this),k.prototype.__init2.call(this),k.prototype.__init3.call(this),k.prototype.__init4.call(this),this._state=A.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(n){this._reject(n)}}then(t,n){return new k((r,s)=>{this._handlers.push([!1,o=>{if(!t)r(o);else try{r(t(o))}catch(i){s(i)}},o=>{if(!n)s(o);else try{r(n(o))}catch(i){s(i)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new k((n,r)=>{let s,o;return this.then(i=>{o=!1,s=i,t&&t()},i=>{o=!0,s=i,t&&t()}).then(()=>{if(o){r(s);return}n(s)})})}__init(){this._resolve=t=>{this._setResult(A.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(A.REJECTED,t)}}__init3(){this._setResult=(t,n)=>{if(this._state===A.PENDING){if(Ee(n)){n.then(this._resolve,this._reject);return}this._state=t,this._value=n,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===A.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===A.RESOLVED&&n[1](this._value),this._state===A.REJECTED&&n[2](this._value),n[0]=!0)})}}}function tt(e,t,n,r=0){return new k((s,o)=>{const i=e[r];if(t===null||typeof i!="function")s(t);else{const a=i({...t},n);_&&i.id&&a===null&&p.log(`Event processor "${i.id}" dropped event`),Ee(a)?a.then(c=>tt(e,c,n,r+1).then(s)).then(null,o):tt(e,a,n,r+1).then(s).then(null,o)}})}let ke,tn,Oe;function nn(e){const t=m._sentryDebugIds;if(!t)return{};const n=Object.keys(t);return Oe&&n.length===tn||(tn=n.length,Oe=n.reduce((r,s)=>{ke||(ke={});const o=ke[s];if(o)r[o[0]]=o[1];else{const i=e(s);for(let a=i.length-1;a>=0;a--){const c=i[a],l=c&&c.filename,f=t[s];if(l&&f){r[l]=f,ke[s]=[l,f];break}}}return r},{})),Oe}function Xa(e,t){const n=nn(e);if(!n)return[];const r=[];for(const s of t)s&&n[s]&&r.push({type:"sourcemap",code_file:s,debug_id:n[s]});return r}function Hr(){const e=typeof WeakSet=="function",t=e?new WeakSet:[];function n(s){if(e)return t.has(s)?!0:(t.add(s),!1);for(let o=0;o<t.length;o++)if(t[o]===s)return!0;return t.push(s),!1}function r(s){if(e)t.delete(s);else for(let o=0;o<t.length;o++)if(t[o]===s){t.splice(o,1);break}}return[n,r]}const rn=50,R="?",sn=/\(error: (.*)\)/,on=/captureMessage|captureException/;function an(...e){const t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,s=0)=>{const o=[],i=n.split(`
|
|
4
|
+
`);for(let a=r;a<i.length;a++){const c=i[a];if(c.length>1024)continue;const l=sn.test(c)?c.replace(sn,"$1"):c;if(!l.match(/\S*Error: /)){for(const f of t){const u=f(l);if(u){o.push(u);break}}if(o.length>=rn+s)break}}return zr(o.slice(s))}}function Gr(e){return Array.isArray(e)?an(...e):e}function zr(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(Ne(t).function||"")&&t.pop(),t.reverse(),on.test(Ne(t).function||"")&&(t.pop(),on.test(Ne(t).function||"")&&t.pop()),t.slice(0,rn).map(n=>({...n,filename:n.filename||Ne(t).filename,function:n.function||R}))}function Ne(e){return e[e.length-1]||{}}const nt="<anonymous>";function j(e){try{return!e||typeof e!="function"?nt:e.name||nt}catch{return nt}}function cn(e){const t=e.exception;if(t){const n=[];try{return t.values.forEach(r=>{r.stacktrace.frames&&n.push(...r.stacktrace.frames)}),n}catch{return}}}function P(e,t=100,n=1/0){try{return rt("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function un(e,t=3,n=100*1024){const r=P(e,t);return Jr(r)>n?un(e,t-1,n):r}function rt(e,t,n=1/0,r=1/0,s=Hr()){const[o,i]=s;if(t==null||["boolean","string"].includes(typeof t)||typeof t=="number"&&Number.isFinite(t))return t;const a=Wr(e,t);if(!a.startsWith("[object "))return a;if(t.__sentry_skip_normalization__)return t;const c=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(c===0)return a.replace("object ","");if(o(t))return"[Circular ~]";const l=t;if(l&&typeof l.toJSON=="function")try{const h=l.toJSON();return rt("",h,c-1,r,s)}catch{}const f=Array.isArray(t)?[]:{};let u=0;const d=Wt(t);for(const h in d){if(!Object.prototype.hasOwnProperty.call(d,h))continue;if(u>=r){f[h]="[MaxProperties ~]";break}const g=d[h];f[h]=rt(h,g,c-1,r,s),u++}return i(t),f}function Wr(e,t){try{if(e==="domain"&&t&&typeof t=="object"&&t._events)return"[Domain]";if(e==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&t===global)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(Bt(t))return"[VueViewModel]";if(_r(t))return"[SyntheticEvent]";if(typeof t=="number"&&!Number.isFinite(t))return`[${t}]`;if(typeof t=="function")return`[Function: ${j(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const n=qr(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function qr(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function Yr(e){return~-encodeURI(e).split(/%..|./).length}function Jr(e){return Yr(JSON.stringify(e))}function Va(e,t){const n=t.replace(/\\/g,"/").replace(/[|\\{}()[\]^$+*?.]/g,"\\$&");let r=e;try{r=decodeURI(e)}catch{}return r.replace(/\\/g,"/").replace(/webpack:\/?/g,"").replace(new RegExp(`(file://)?/*${n}/*`,"ig"),"app:///")}const Kr="sentry.source",Xr="sentry.sample_rate",Vr="sentry.op",Zr="sentry.origin",Za="sentry.idle_span_finish_reason",Qa="sentry.measurement_unit",ec="sentry.measurement_value",tc="sentry.profile_id",nc="sentry.exclusive_time",rc="cache.hit",sc="cache.key",oc="cache.item_size",ic="http.request.method",ac="url.full",cc="baggage",ln="sentry-",Qr=/^sentry-/,es=8192;function ts(e){const t=ns(e);if(!t)return;const n=Object.entries(t).reduce((r,[s,o])=>{if(s.match(Qr)){const i=s.slice(ln.length);r[i]=o}return r},{});if(Object.keys(n).length>0)return n}function uc(e){if(!e)return;const t=Object.entries(e).reduce((n,[r,s])=>(s&&(n[`${ln}${r}`]=s),n),{});return rs(t)}function ns(e){if(!(!e||!C(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((t,n)=>{const r=fn(n);return Object.entries(r).forEach(([s,o])=>{t[s]=o}),t},{}):fn(e)}function fn(e){return e.split(",").map(t=>t.split("=").map(n=>decodeURIComponent(n.trim()))).reduce((t,[n,r])=>(n&&r&&(t[n]=r),t),{})}function rs(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((t,[n,r],s)=>{const o=`${encodeURIComponent(n)}=${encodeURIComponent(r)}`,i=s===0?o:`${t},${o}`;return i.length>es?(DEBUG_BUILD&&logger.warn(`Not adding key: ${n} with val: ${r} to baggage header due to exceeding baggage size limits.`),t):i},"")}function ss(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=E(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}const st="_sentryMetrics";function os(e){const t=e[st];if(!t)return;const n={};for(const[,[r,s]]of t)(n[r]||(n[r]=[])).push(I(s));return n}function lc(e,t,n,r,s,o,i){const c=e[st]||(e[st]=new Map),l=`${t}:${n}@${s}`,f=c.get(i);if(f){const[,u]=f;c.set(i,[l,{min:Math.min(u.min,r),max:Math.max(u.max,r),count:u.count+=1,sum:u.sum+=r,tags:u.tags}])}else c.set(i,[l,{min:r,max:r,count:1,sum:r,tags:o}])}const is=0,dn=1,T=2;function as(e){if(e<400&&e>=100)return{code:dn};if(e>=400&&e<500)switch(e){case 401:return{code:T,message:"unauthenticated"};case 403:return{code:T,message:"permission_denied"};case 404:return{code:T,message:"not_found"};case 409:return{code:T,message:"already_exists"};case 413:return{code:T,message:"failed_precondition"};case 429:return{code:T,message:"resource_exhausted"};case 499:return{code:T,message:"cancelled"};default:return{code:T,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:T,message:"unimplemented"};case 503:return{code:T,message:"unavailable"};case 504:return{code:T,message:"deadline_exceeded"};default:return{code:T,message:"internal_error"}}return{code:T,message:"unknown_error"}}function fc(e,t){e.setAttribute("http.response.status_code",t);const n=as(t);n.message!=="unknown_error"&&e.setStatus(n)}const dc=0,cs=1;let pn=!1;function pc(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:s,parent_span_id:o,status:i,origin:a}=Re(e);return dropUndefinedKeys({parent_span_id:o,span_id:t,trace_id:n,data:r,op:s,status:i,origin:a})}function us(e){const{spanId:t,traceId:n,isRemote:r}=e.spanContext(),s=r?t:Re(e).parent_span_id,o=r?Te():t;return I({parent_span_id:s,span_id:o,trace_id:n})}function hc(e){const{traceId:t,spanId:n}=e.spanContext(),r=ot(e);return generateSentryTraceHeader(t,n,r)}function hn(e){return typeof e=="number"?gn(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?gn(e.getTime()):D()}function gn(e){return e>9999999999?e/1e3:e}function Re(e){if(fs(e))return e.getSpanJSON();try{const{spanId:t,traceId:n}=e.spanContext();if(ls(e)){const{attributes:r,startTime:s,name:o,endTime:i,parentSpanId:a,status:c}=e;return I({span_id:t,trace_id:n,data:r,description:o,parent_span_id:a,start_timestamp:hn(s),timestamp:hn(i)||void 0,status:ds(c),op:r[Vr],origin:r[Zr],_metrics_summary:os(e)})}return{span_id:t,trace_id:n}}catch{return{}}}function ls(e){const t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function fs(e){return typeof e.getSpanJSON=="function"}function ot(e){const{traceFlags:t}=e.spanContext();return t===cs}function ds(e){if(!(!e||e.code===is))return e.code===dn?"ok":e.message||"unknown_error"}const W="_sentryChildSpans",it="_sentryRootSpan";function gc(e,t){const n=e[it]||e;addNonEnumerableProperty(t,it,n),e[W]?e[W].add(t):addNonEnumerableProperty(e,W,new Set([t]))}function mc(e,t){e[W]&&e[W].delete(t)}function _c(e){const t=new Set;function n(r){if(!t.has(r)&&ot(r)){t.add(r);const s=r[W]?Array.from(r[W]):[];for(const o of s)n(o)}}return n(e),Array.from(t)}function mn(e){return e[it]||e}function ps(){const e=getMainCarrier(),t=getAsyncContextStrategy(e);return t.getActiveSpan?t.getActiveSpan():_getSpanForScope(getCurrentScope())}function yc(e,t,n,r,s,o){const i=ps();i&&updateMetricSummaryOnSpan(i,e,t,n,r,s,o)}function hs(){pn||(H(()=>{console.warn("[Sentry] Deprecation warning: Returning null from `beforeSendSpan` will be disallowed from SDK version 9.0.0 onwards. The callback will only support mutating spans. To drop certain spans, configure the respective integrations directly.")}),pn=!0)}const _n="_frozenDsc";function Ec(e,t){const n=e;addNonEnumerableProperty(n,_n,t)}function yn(e,t){const n=t.getOptions(),{publicKey:r}=t.getDsn()||{},s=I({environment:n.environment||Be,release:n.release,public_key:r,trace_id:e});return t.emit("createDsc",s),s}function gs(e,t){const n=t.getPropagationContext();return n.dsc||yn(n.traceId,e)}function En(e){const t=E();if(!t)return{};const n=mn(e),r=n[_n];if(r)return r;const s=n.spanContext().traceState,o=s&&s.get("sentry.dsc"),i=o&&ts(o);if(i)return i;const a=yn(e.spanContext().traceId,t),c=Re(n),l=c.data||{},f=l[Xr];f!=null&&(a.sample_rate=`${f}`);const u=l[Kr],d=c.description;return u!=="url"&&d&&(a.transaction=d),ss()&&(a.sampled=String(ot(n))),t.emit("createDsc",a,n),a}function Sc(e){const t=En(e);return dynamicSamplingContextToSentryBaggageHeader(t)}function ms(e,t){const{fingerprint:n,span:r,breadcrumbs:s,sdkProcessingMetadata:o}=t;_s(e,t),r&&Ss(e,r),bs(e,n),ys(e,s),Es(e,o)}function Sn(e,t){const{extra:n,tags:r,user:s,contexts:o,level:i,sdkProcessingMetadata:a,breadcrumbs:c,fingerprint:l,eventProcessors:f,attachments:u,propagationContext:d,transactionName:h,span:g}=t;xe(e,"extra",n),xe(e,"tags",r),xe(e,"user",s),xe(e,"contexts",o),e.sdkProcessingMetadata=Ie(e.sdkProcessingMetadata,a,2),i&&(e.level=i),h&&(e.transactionName=h),g&&(e.span=g),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),l.length&&(e.fingerprint=[...e.fingerprint,...l]),f.length&&(e.eventProcessors=[...e.eventProcessors,...f]),u.length&&(e.attachments=[...e.attachments,...u]),e.propagationContext={...e.propagationContext,...d}}function xe(e,t,n){e[t]=Ie(e[t],n,1)}function _s(e,t){const{extra:n,tags:r,user:s,contexts:o,level:i,transactionName:a}=t,c=I(n);c&&Object.keys(c).length&&(e.extra={...c,...e.extra});const l=I(r);l&&Object.keys(l).length&&(e.tags={...l,...e.tags});const f=I(s);f&&Object.keys(f).length&&(e.user={...f,...e.user});const u=I(o);u&&Object.keys(u).length&&(e.contexts={...u,...e.contexts}),i&&(e.level=i),a&&e.type!=="transaction"&&(e.transaction=a)}function ys(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function Es(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function Ss(e,t){e.contexts={trace:us(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:En(t),...e.sdkProcessingMetadata};const n=mn(t),r=Re(n).description;r&&!e.transaction&&e.type==="transaction"&&(e.transaction=r)}function bs(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}function vs(e,t,n,r,s,o){const{normalizeDepth:i=3,normalizeMaxBreadth:a=1e3}=e,c={...t,event_id:t.event_id||n.event_id||w(),timestamp:t.timestamp||fe()},l=n.integrations||e.integrations.map(S=>S.name);Ts(c,e),ks(c,l),s&&s.emit("applyFrameMetadata",t),t.type===void 0&&Is(c,e.stackParser);const f=Ns(r,n.captureContext);n.mechanism&&re(c,n.mechanism);const u=s?s.getEventProcessors():[],d=en().getScopeData();if(o){const S=o.getScopeData();Sn(d,S)}if(f){const S=f.getScopeData();Sn(d,S)}const h=[...n.attachments||[],...d.attachments];h.length&&(n.attachments=h),ms(c,d);const g=[...u,...d.eventProcessors];return tt(g,c,n).then(S=>(S&&ws(S),typeof i=="number"&&i>0?Os(S,i,a):S))}function Ts(e,t){const{environment:n,release:r,dist:s,maxValueLength:o=250}=t;e.environment=e.environment||n||Be,!e.release&&r&&(e.release=r),!e.dist&&s&&(e.dist=s),e.message&&(e.message=ne(e.message,o));const i=e.exception&&e.exception.values&&e.exception.values[0];i&&i.value&&(i.value=ne(i.value,o));const a=e.request;a&&a.url&&(a.url=ne(a.url,o))}function Is(e,t){const n=nn(t);try{e.exception.values.forEach(r=>{r.stacktrace.frames.forEach(s=>{n&&s.filename&&(s.debug_id=n[s.filename])})})}catch{}}function ws(e){const t={};try{e.exception.values.forEach(r=>{r.stacktrace.frames.forEach(s=>{s.debug_id&&(s.abs_path?t[s.abs_path]=s.debug_id:s.filename&&(t[s.filename]=s.debug_id),delete s.debug_id)})})}catch{}if(Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.entries(t).forEach(([r,s])=>{n.push({type:"sourcemap",code_file:r,debug_id:s})})}function ks(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function Os(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(s=>({...s,...s.data&&{data:P(s.data,t,n)}}))},...e.user&&{user:P(e.user,t,n)},...e.contexts&&{contexts:P(e.contexts,t,n)},...e.extra&&{extra:P(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=P(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(s=>({...s,...s.data&&{data:P(s.data,t,n)}}))),e.contexts&&e.contexts.flags&&r.contexts&&(r.contexts.flags=P(e.contexts.flags,3,n)),r}function Ns(e,t){if(!t)return e;const n=e?e.clone():new L;return n.update(t),n}function Rs(e){if(!!e)return xs(e)?{captureContext:e}:Ds(e)?{captureContext:e}:e}function xs(e){return e instanceof L||typeof e=="function"}const Cs=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function Ds(e){return Object.keys(e).some(t=>Cs.includes(t))}function bn(e,t){return N().captureException(e,Rs(t))}function As(e,t){const n=typeof t=="string"?t:void 0,r=typeof t!="string"?{captureContext:t}:void 0;return N().captureMessage(e,n,r)}function vn(e,t){return N().captureEvent(e,t)}function bc(e,t){getIsolationScope().setContext(e,t)}function vc(e){getIsolationScope().setExtras(e)}function Tc(e,t){getIsolationScope().setExtra(e,t)}function Ic(e){getIsolationScope().setTags(e)}function wc(e,t){getIsolationScope().setTag(e,t)}function kc(e){getIsolationScope().setUser(e)}function Oc(){return getIsolationScope().lastEventId()}function Tn(e,t){const n=getCurrentScope(),r=getClient();if(!r)DEBUG_BUILD&&logger.warn("Cannot capture check-in. No client defined.");else if(!r.captureCheckIn)DEBUG_BUILD&&logger.warn("Cannot capture check-in. Client does not support sending check-ins.");else return r.captureCheckIn(e,t,n);return uuid4()}function Nc(e,t,n){const r=Tn({monitorSlug:e,status:"in_progress"},n),s=timestampInSeconds();function o(i){Tn({monitorSlug:e,status:i,checkInId:r,duration:timestampInSeconds()-s})}return withIsolationScope(()=>{let i;try{i=t()}catch(a){throw o("error"),a}return isThenable(i)?Promise.resolve(i).then(()=>{o("ok")},a=>{throw o("error"),a}):o("ok"),i})}async function Rc(e){const t=getClient();return t?t.flush(e):(DEBUG_BUILD&&logger.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}async function xc(e){const t=getClient();return t?t.close(e):(DEBUG_BUILD&&logger.warn("Cannot flush events and disable SDK. No client defined."),Promise.resolve(!1))}function Ps(){return!!E()}function Cc(){const e=getClient();return!!e&&e.getOptions().enabled!==!1&&!!e.getTransport()}function Dc(e){getIsolationScope().addEventProcessor(e)}function In(e){const t=E(),n=de(),r=N(),{release:s,environment:o=Be}=t&&t.getOptions()||{},{userAgent:i}=m.navigator||{},a=xr({release:s,environment:o,user:r.getUser()||n.getUser(),...i&&{userAgent:i},...e}),c=n.getSession();return c&&c.status==="ok"&&se(c,{status:"exited"}),wn(),n.setSession(a),r.setSession(a),a}function wn(){const e=de(),t=N(),n=t.getSession()||e.getSession();n&&Cr(n),kn(),e.setSession(),t.setSession()}function kn(){const e=de(),t=N(),n=E(),r=t.getSession()||e.getSession();r&&n&&n.captureSession(r)}function On(e=!1){if(e){wn();return}kn()}const Nn=[];function Ms(e){const t={};return e.forEach(n=>{const{name:r}=n,s=t[r];s&&!s.isDefaultInstance&&n.isDefaultInstance||(t[r]=n)}),Object.values(t)}function Ls(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(i=>{i.isDefaultInstance=!0});let r;if(Array.isArray(n))r=[...t,...n];else if(typeof n=="function"){const i=n(t);r=Array.isArray(i)?i:[i]}else r=t;const s=Ms(r),o=s.findIndex(i=>i.name==="Debug");if(o>-1){const[i]=s.splice(o,1);s.push(i)}return s}function js(e,t){const n={};return t.forEach(r=>{r&&xn(e,r,n)}),n}function Rn(e,t){for(const n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function xn(e,t,n){if(n[t.name]){_&&p.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,Nn.indexOf(t.name)===-1&&typeof t.setupOnce=="function"&&(t.setupOnce(),Nn.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),typeof t.preprocessEvent=="function"){const r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(s,o)=>r(s,o,e))}if(typeof t.processEvent=="function"){const r=t.processEvent.bind(t),s=Object.assign((o,i)=>r(o,i,e),{id:t.name});e.addEventProcessor(s)}_&&p.log(`Integration installed: ${t.name}`)}function Ac(e){const t=getClient();if(!t){DEBUG_BUILD&&logger.warn(`Cannot add integration "${e.name}" because no SDK Client is available.`);return}t.addIntegration(e)}function Pc(e){return e}const Us=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,"undefined is not an object (evaluating 'a.L')",`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+$/],$s="InboundFilters",Fs=(e={})=>({name:$s,processEvent(t,n,r){const s=r.getOptions(),o=Bs(e,s);return Hs(t,o)?null:t}});function Bs(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:Us],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]],ignoreInternal:e.ignoreInternal!==void 0?e.ignoreInternal:!0}}function Hs(e,t){return t.ignoreInternal&&Js(e)?(_&&p.warn(`Event dropped due to being internal Sentry Error.
|
|
5
5
|
Event: ${M(e)}`),!0):Gs(e,t.ignoreErrors)?(_&&p.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
|
|
6
6
|
Event: ${M(e)}`),!0):Xs(e)?(_&&p.warn(`Event dropped due to not having an error message, error type or stacktrace.
|
|
7
7
|
Event: ${M(e)}`),!0):zs(e,t.ignoreTransactions)?(_&&p.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
|
|
@@ -9,13 +9,13 @@ Event: ${M(e)}`),!0):Ws(e,t.denyUrls)?(_&&p.warn(`Event dropped due to being mat
|
|
|
9
9
|
Event: ${M(e)}.
|
|
10
10
|
Url: ${Ce(e)}`),!0):qs(e,t.allowUrls)?!1:(_&&p.warn(`Event dropped due to not being matched by \`allowUrls\` option.
|
|
11
11
|
Event: ${M(e)}.
|
|
12
|
-
Url: ${Ce(e)}`),!0)}function Gs(e,t){return e.type||!t||!t.length?!1:Ys(e).some(n=>be(n,t))}function zs(e,t){if(e.type!=="transaction"||!t||!t.length)return!1;const n=e.transaction;return n?be(n,t):!1}function Ws(e,t){if(!t||!t.length)return!1;const n=Ce(e);return n?be(n,t):!1}function qs(e,t){if(!t||!t.length)return!0;const n=Ce(e);return n?be(n,t):!0}function Ys(e){const t=[];e.message&&t.push(e.message);let n;try{n=e.exception.values[e.exception.values.length-1]}catch{}return n&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`)),t}function Js(e){try{return e.exception.values[0].type==="SentryError"}catch{}return!1}function Ks(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function Ce(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch{}return t?Ks(t):null}catch{return _&&p.error(`Cannot extract url for event ${M(e)}`),null}}function Xs(e){return e.type||!e.exception||!e.exception.values||e.exception.values.length===0?!1:!e.message&&!e.exception.values.some(t=>t.stacktrace||t.type&&t.type!=="Error"||t.value)}let Cn;const Vs="FunctionToString",Dn=new WeakMap,Zs=()=>({name:Vs,setupOnce(){Cn=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=Ye(this),n=Dn.has(E())&&t!==void 0?t:this;return Cn.apply(n,e)}}catch{}},setup(e){Dn.set(e,!0)}}),Qs="Dedupe",eo=()=>{let e;return{name:Qs,processEvent(t){if(t.type)return t;try{if(to(t,e))return _&&p.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}};function to(e,t){return t?!!(no(e,t)||ro(e,t)):!1}function no(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!Pn(e,t)||!An(e,t))}function ro(e,t){const n=Mn(t),r=Mn(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!Pn(e,t)||!An(e,t))}function An(e,t){let n=cn(e),r=cn(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let s=0;s<r.length;s++){const o=r[s],i=n[s];if(o.filename!==i.filename||o.lineno!==i.lineno||o.colno!==i.colno||o.function!==i.function)return!1}return!0}function Pn(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 Mn(e){return e.exception&&e.exception.values&&e.exception.values[0]}const De=m;function Uc(){try{return new ErrorEvent(""),!0}catch{return!1}}function $c(){try{return new DOMError(""),!0}catch{return!1}}function Fc(){try{return new DOMException(""),!0}catch{return!1}}function at(){if(!("fetch"in De))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function ct(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function so(){if(typeof EdgeRuntime=="string")return!0;if(!at())return!1;if(ct(De.fetch))return!0;let e=!1;const t=De.document;if(t&&typeof t.createElement=="function")try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=ct(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){B&&p.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}function Bc(){return"ReportingObserver"in De}function Hc(){if(!at())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch{return!1}}function oo(e,t){t.debug===!0&&(_?p.enable():H(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),
|
|
12
|
+
Url: ${Ce(e)}`),!0)}function Gs(e,t){return e.type||!t||!t.length?!1:Ys(e).some(n=>be(n,t))}function zs(e,t){if(e.type!=="transaction"||!t||!t.length)return!1;const n=e.transaction;return n?be(n,t):!1}function Ws(e,t){if(!t||!t.length)return!1;const n=Ce(e);return n?be(n,t):!1}function qs(e,t){if(!t||!t.length)return!0;const n=Ce(e);return n?be(n,t):!0}function Ys(e){const t=[];e.message&&t.push(e.message);let n;try{n=e.exception.values[e.exception.values.length-1]}catch{}return n&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`)),t}function Js(e){try{return e.exception.values[0].type==="SentryError"}catch{}return!1}function Ks(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function Ce(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch{}return t?Ks(t):null}catch{return _&&p.error(`Cannot extract url for event ${M(e)}`),null}}function Xs(e){return e.type||!e.exception||!e.exception.values||e.exception.values.length===0?!1:!e.message&&!e.exception.values.some(t=>t.stacktrace||t.type&&t.type!=="Error"||t.value)}let Cn;const Vs="FunctionToString",Dn=new WeakMap,Zs=()=>({name:Vs,setupOnce(){Cn=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=Ye(this),n=Dn.has(E())&&t!==void 0?t:this;return Cn.apply(n,e)}}catch{}},setup(e){Dn.set(e,!0)}}),Qs="Dedupe",eo=()=>{let e;return{name:Qs,processEvent(t){if(t.type)return t;try{if(to(t,e))return _&&p.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}};function to(e,t){return t?!!(no(e,t)||ro(e,t)):!1}function no(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!Pn(e,t)||!An(e,t))}function ro(e,t){const n=Mn(t),r=Mn(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!Pn(e,t)||!An(e,t))}function An(e,t){let n=cn(e),r=cn(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let s=0;s<r.length;s++){const o=r[s],i=n[s];if(o.filename!==i.filename||o.lineno!==i.lineno||o.colno!==i.colno||o.function!==i.function)return!1}return!0}function Pn(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 Mn(e){return e.exception&&e.exception.values&&e.exception.values[0]}const De=m;function Uc(){try{return new ErrorEvent(""),!0}catch{return!1}}function $c(){try{return new DOMError(""),!0}catch{return!1}}function Fc(){try{return new DOMException(""),!0}catch{return!1}}function at(){if(!("fetch"in De))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function ct(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function so(){if(typeof EdgeRuntime=="string")return!0;if(!at())return!1;if(ct(De.fetch))return!0;let e=!1;const t=De.document;if(t&&typeof t.createElement=="function")try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=ct(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){B&&p.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}function Bc(){return"ReportingObserver"in De}function Hc(){if(!at())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch{return!1}}function oo(e,t){t.debug===!0&&(_?p.enable():H(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),N().update(t.initialScope);const r=new e(t);return io(r),r.init(),r}function io(e){N().setClient(e)}const ao="7";function Ln(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function co(e){return`${Ln(e)}${e.projectId}/envelope/`}function uo(e,t){const n={sentry_version:ao};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}function lo(e,t,n){return t||`${co(e)}?${uo(e,n)}`}function Gc(e,t){const n=makeDsn(e);if(!n)return"";const r=`${Ln(n)}embed/error-page/`;let s=`dsn=${dsnToString(n)}`;for(const o in t)if(o!=="dsn"&&o!=="onClose")if(o==="user"){const i=t.user;if(!i)continue;i.name&&(s+=`&name=${encodeURIComponent(i.name)}`),i.email&&(s+=`&email=${encodeURIComponent(i.email)}`)}else s+=`&${encodeURIComponent(o)}=${encodeURIComponent(t[o])}`;return`${r}?${s}`}const fo=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function po(e){return e==="http"||e==="https"}function Ae(e,t=!1){const{host:n,path:r,pass:s,port:o,projectId:i,protocol:a,publicKey:c}=e;return`${a}://${c}${t&&s?`:${s}`:""}@${n}${o?`:${o}`:""}/${r&&`${r}/`}${i}`}function ho(e){const t=fo.exec(e);if(!t){H(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}const[n,r,s="",o="",i="",a=""]=t.slice(1);let c="",l=a;const f=l.split("/");if(f.length>1&&(c=f.slice(0,-1).join("/"),l=f.pop()),l){const u=l.match(/^\d+/);u&&(l=u[0])}return jn({host:o,pass:s,path:c,projectId:l,port:i,protocol:n,publicKey:r})}function jn(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function go(e){if(!B)return!0;const{port:t,projectId:n,protocol:r}=e;return["protocol","publicKey","host","projectId"].find(i=>e[i]?!1:(p.error(`Invalid Sentry Dsn: ${i} missing`),!0))?!1:n.match(/^\d+$/)?po(r)?t&&isNaN(parseInt(t,10))?(p.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(p.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(p.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function mo(e){const t=typeof e=="string"?ho(e):jn(e);if(!(!t||!go(t)))return t}function pe(e,t=[]){return[e,t]}function _o(e,t){const[n,r]=e;return[n,[...r,t]]}function ut(e,t){const n=e[1];for(const r of n){const s=r[0].type;if(t(r,s))return!0}return!1}function zc(e,t){return ut(e,(n,r)=>t.includes(r))}function Pe(e){return m.__SENTRY__&&m.__SENTRY__.encodePolyfill?m.__SENTRY__.encodePolyfill(e):new TextEncoder().encode(e)}function yo(e){return GLOBAL_OBJ.__SENTRY__&&GLOBAL_OBJ.__SENTRY__.decodePolyfill?GLOBAL_OBJ.__SENTRY__.decodePolyfill(e):new TextDecoder().decode(e)}function Eo(e){const[t,n]=e;let r=JSON.stringify(t);function s(o){typeof r=="string"?r=typeof o=="string"?r+o:[Pe(r),o]:r.push(typeof o=="string"?Pe(o):o)}for(const o of n){const[i,a]=o;if(s(`
|
|
13
13
|
${JSON.stringify(i)}
|
|
14
|
-
`),typeof a=="string"||a instanceof Uint8Array)s(a);else{let c;try{c=JSON.stringify(a)}catch{c=JSON.stringify(P(a))}s(c)}}return typeof r=="string"?r:So(r)}function So(e){const t=e.reduce((s,o)=>s+o.length,0),n=new Uint8Array(t);let r=0;for(const s of e)n.set(s,r),r+=s.length;return n}function Wc(e){let t=typeof e=="string"?Pe(e):e;function n(i){const a=t.subarray(0,i);return t=t.subarray(i+1),a}function r(){let i=t.indexOf(10);return i<0&&(i=t.length),JSON.parse(yo(n(i)))}const s=r(),o=[];for(;t.length;){const i=r(),a=typeof i.length=="number"?i.length:void 0;o.push([i,a?n(a):r()])}return[s,o]}function qc(e){return[{type:"span"},e]}function bo(e){const t=typeof e.data=="string"?Pe(e.data):e.data;return[I({type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),t]}const vo={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",statsd:"metric_bucket",raw_security:"security"};function Un(e){return vo[e]}function $n(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function To(e,t,n,r){const s=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:Ae(r)},...s&&{trace:I({...s})}}}function Io(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 wo(e,t,n,r){const s=$n(n),o={sent_at:new Date().toISOString(),...s&&{sdk:s},...!!r&&t&&{dsn:Ae(t)}},i="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return pe(o,[i])}function ko(e,t,n,r){const s=$n(n),o=e.type&&e.type!=="replay_event"?e.type:"event";Io(e,n&&n.sdk);const i=To(e,s,r,t);return delete e.sdkProcessingMetadata,pe(i,[[{type:o},e]])}function Yc(e,t){function n(f){return!!f.trace_id&&!!f.public_key}const r=getDynamicSamplingContextFromSpan(e[0]),s=t&&t.getDsn(),o=t&&t.getOptions().tunnel,i={sent_at:new Date().toISOString(),...n(r)&&{trace:r},...!!o&&s&&{dsn:dsnToString(s)}},a=t&&t.getOptions().beforeSendSpan,c=a?f=>{const u=a(spanToJSON(f));return u||showSpanDropWarning(),u}:f=>spanToJSON(f),l=[];for(const f of e){const u=c(f);u&&l.push(createSpanEnvelopeItem(u))}return createEnvelope(i,l)}function
|
|
15
|
-
Reason: ${g}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.entries(t).map(([n,r])=>{const[s,o]=n.split(":");return{reason:s,category:o,quantity:r}})}_flushOutcomes(){_&&p.log("Flushing outcomes...");const t=this._clearOutcomes();if(t.length===0){_&&p.log("No outcomes to send");return}if(!this._dsn){_&&p.log("No dsn provided, will not send outcomes");return}_&&p.log("Sending outcomes:",t);const n=
|
|
14
|
+
`),typeof a=="string"||a instanceof Uint8Array)s(a);else{let c;try{c=JSON.stringify(a)}catch{c=JSON.stringify(P(a))}s(c)}}return typeof r=="string"?r:So(r)}function So(e){const t=e.reduce((s,o)=>s+o.length,0),n=new Uint8Array(t);let r=0;for(const s of e)n.set(s,r),r+=s.length;return n}function Wc(e){let t=typeof e=="string"?Pe(e):e;function n(i){const a=t.subarray(0,i);return t=t.subarray(i+1),a}function r(){let i=t.indexOf(10);return i<0&&(i=t.length),JSON.parse(yo(n(i)))}const s=r(),o=[];for(;t.length;){const i=r(),a=typeof i.length=="number"?i.length:void 0;o.push([i,a?n(a):r()])}return[s,o]}function qc(e){return[{type:"span"},e]}function bo(e){const t=typeof e.data=="string"?Pe(e.data):e.data;return[I({type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),t]}const vo={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",statsd:"metric_bucket",raw_security:"security"};function Un(e){return vo[e]}function $n(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function To(e,t,n,r){const s=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:Ae(r)},...s&&{trace:I({...s})}}}function Io(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 wo(e,t,n,r){const s=$n(n),o={sent_at:new Date().toISOString(),...s&&{sdk:s},...!!r&&t&&{dsn:Ae(t)}},i="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return pe(o,[i])}function ko(e,t,n,r){const s=$n(n),o=e.type&&e.type!=="replay_event"?e.type:"event";Io(e,n&&n.sdk);const i=To(e,s,r,t);return delete e.sdkProcessingMetadata,pe(i,[[{type:o},e]])}function Yc(e,t){function n(f){return!!f.trace_id&&!!f.public_key}const r=getDynamicSamplingContextFromSpan(e[0]),s=t&&t.getDsn(),o=t&&t.getOptions().tunnel,i={sent_at:new Date().toISOString(),...n(r)&&{trace:r},...!!o&&s&&{dsn:dsnToString(s)}},a=t&&t.getOptions().beforeSendSpan,c=a?f=>{const u=a(spanToJSON(f));return u||showSpanDropWarning(),u}:f=>spanToJSON(f),l=[];for(const f of e){const u=c(f);u&&l.push(createSpanEnvelopeItem(u))}return createEnvelope(i,l)}function Oo(e,t,n){const r=[{type:"client_report"},{timestamp:n||fe(),discarded_events:e}];return pe(t?{dsn:t}:{},[r])}class x extends Error{constructor(t,n="warn"){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=n}}function No(e){if(typeof e=="boolean")return Number(e);const t=typeof e=="string"?parseFloat(e):e;if(typeof t!="number"||isNaN(t)||t<0||t>1){_&&p.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`);return}return t}const Fn="Not capturing exception because it's already been captured.";class Ro{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=mo(t.dsn):_&&p.warn("No DSN provided, client will not send events."),this._dsn){const s=lo(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:s})}const r=["enableTracing","tracesSampleRate","tracesSampler"].find(s=>s in t&&t[s]==null);r&&H(()=>{console.warn(`[Sentry] Deprecation warning: \`${r}\` is set to undefined, which leads to tracing being enabled. In v9, a value of \`undefined\` will result in tracing being disabled.`)})}captureException(t,n,r){const s=w();if(Xt(t))return _&&p.log(Fn),s;const o={event_id:s,...n};return this._process(this.eventFromException(t,o).then(i=>this._captureEvent(i,o,r))),o.event_id}captureMessage(t,n,r,s){const o={event_id:w(),...r},i=ze(t)?t:String(t),a=We(t)?this.eventFromMessage(i,n,o):this.eventFromException(t,o);return this._process(a.then(c=>this._captureEvent(c,o,s))),o.event_id}captureEvent(t,n,r){const s=w();if(n&&n.originalException&&Xt(n.originalException))return _&&p.log(Fn),s;const o={event_id:s,...n},a=(t.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(t,o,a||r)),o.event_id}captureSession(t){typeof t.release!="string"?_&&p.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),se(t,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){const n=this._transport;return n?(this.emit("flush"),this._isClientDoneProcessing(t).then(r=>n.flush(t).then(s=>r&&s))):z(!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){const n=this._integrations[t.name];xn(this,t,this._integrations),n||Rn(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let r=ko(t,this._dsn,this._options._metadata,this._options.tunnel);for(const o of n.attachments||[])r=_o(r,bo(o));const s=this.sendEnvelope(r);s&&s.then(o=>this.emit("afterSendEvent",t,o),null)}sendSession(t){const n=wo(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(n)}recordDroppedEvent(t,n,r){if(this._options.sendClientReports){const s=typeof r=="number"?r:1,o=`${t}:${n}`;_&&p.log(`Recording outcome: "${o}"${s>1?` (${s} times)`:""}`),this._outcomes[o]=(this._outcomes[o]||0)+s}}on(t,n){const r=this._hooks[t]=this._hooks[t]||[];return r.push(n),()=>{const s=r.indexOf(n);s>-1&&r.splice(s,1)}}emit(t,...n){const r=this._hooks[t];r&&r.forEach(s=>s(...n))}sendEnvelope(t){return this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport?this._transport.send(t).then(null,n=>(_&&p.error("Error while sending envelope:",n),n)):(_&&p.error("Transport disabled"),z({}))}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=js(this,t),Rn(this,t)}_updateSessionFromEvent(t,n){let r=!1,s=!1;const o=n.exception&&n.exception.values;if(o){s=!0;for(const c of o){const l=c.mechanism;if(l&&l.handled===!1){r=!0;break}}}const i=t.status==="ok";(i&&t.errors===0||i&&r)&&(se(t,{...r&&{status:"crashed"},errors:t.errors||Number(s||r)}),this.captureSession(t))}_isClientDoneProcessing(t){return new k(n=>{let r=0;const s=1,o=setInterval(()=>{this._numProcessing==0?(clearInterval(o),n(!0)):(r+=s,t&&r>=t&&(clearInterval(o),n(!1)))},s)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,r=N(),s=de()){const o=this.getOptions(),i=Object.keys(this._integrations);return!n.integrations&&i.length>0&&(n.integrations=i),this.emit("preprocessEvent",t,n),t.type||s.setLastEventId(t.event_id||n.event_id),vs(o,t,n,r,this,s).then(a=>{if(a===null)return a;a.contexts={trace:Br(r),...a.contexts};const c=gs(this,r);return a.sdkProcessingMetadata={dynamicSamplingContext:c,...a.sdkProcessingMetadata},a})}_captureEvent(t,n={},r){return this._processEvent(t,n,r).then(s=>s.event_id,s=>{if(_){const o=s;o.logLevel==="log"?p.log(o.message):p.warn(o)}})}_processEvent(t,n,r){const s=this.getOptions(),{sampleRate:o}=s,i=Hn(t),a=Bn(t),c=t.type||"error",l=`before send for type \`${c}\``,f=typeof o>"u"?void 0:No(o);if(a&&typeof f=="number"&&Math.random()>f)return this.recordDroppedEvent("sample_rate","error",t),we(new x(`Discarding event because it's not included in the random sample (sampling rate = ${o})`,"log"));const u=c==="replay_event"?"replay":c,h=(t.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(t,n,r,h).then(g=>{if(g===null)throw this.recordDroppedEvent("event_processor",u,t),new x("An event processor returned `null`, will not send event.","log");if(n.data&&n.data.__sentry__===!0)return g;const S=Co(this,s,g,n);return xo(S,l)}).then(g=>{if(g===null){if(this.recordDroppedEvent("before_send",u,t),i){const U=t.spans||[],le=1+U.length;this.recordDroppedEvent("before_send","span",le)}throw new x(`${l} returned \`null\`, will not send event.`,"log")}const Z=r&&r.getSession();if(!i&&Z&&this._updateSessionFromEvent(Z,g),i){const U=g.sdkProcessingMetadata&&g.sdkProcessingMetadata.spanCountBeforeProcessing||0,le=g.spans?g.spans.length:0,ur=U-le;ur>0&&this.recordDroppedEvent("before_send","span",ur)}const S=g.transaction_info;if(i&&S&&g.transaction!==t.transaction){const U="custom";g.transaction_info={...S,source:U}}return this.sendEvent(g,n),g}).then(null,g=>{throw g instanceof x?g:(this.captureException(g,{data:{__sentry__:!0},originalException:g}),new x(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
|
|
15
|
+
Reason: ${g}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.entries(t).map(([n,r])=>{const[s,o]=n.split(":");return{reason:s,category:o,quantity:r}})}_flushOutcomes(){_&&p.log("Flushing outcomes...");const t=this._clearOutcomes();if(t.length===0){_&&p.log("No outcomes to send");return}if(!this._dsn){_&&p.log("No dsn provided, will not send outcomes");return}_&&p.log("Sending outcomes:",t);const n=Oo(t,this._options.tunnel&&Ae(this._dsn));this.sendEnvelope(n)}}function xo(e,t){const n=`${t} must return \`null\` or a valid event.`;if(Ee(e))return e.then(r=>{if(!ee(r)&&r!==null)throw new x(n);return r},r=>{throw new x(`${t} rejected with ${r}`)});if(!ee(e)&&e!==null)throw new x(n);return e}function Co(e,t,n,r){const{beforeSend:s,beforeSendTransaction:o,beforeSendSpan:i}=t;if(Bn(n)&&s)return s(n,r);if(Hn(n)){if(n.spans&&i){const a=[];for(const c of n.spans){const l=i(c);l?a.push(l):(hs(),e.recordDroppedEvent("before_send","span"))}n.spans=a}if(o){if(n.spans){const a=n.spans.length;n.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:a}}return o(n,r)}}return n}function Bn(e){return e.type===void 0}function Hn(e){return e.type==="transaction"}function Jc(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function Do(){return"npm"}function Ao(e,t,n=[t],r="npm"){const s=e._metadata||{};s.sdk||(s.sdk={name:`sentry.javascript.${t}`,packages:n.map(o=>({name:`${r}:@sentry/${o}`,version:$})),version:$}),e._metadata=s}const he=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function lt(e,t){const n=dt(e,t),r={type:Uo(t),value:$o(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function Po(e,t,n,r){const s=E(),o=s&&s.getOptions().normalizeDepth,i=zo(t),a={__serialized__:un(t,o)};if(i)return{exception:{values:[lt(e,i)]},extra:a};const c={exception:{values:[{type:ye(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:Ho(t,{isUnhandledRejection:r})}]},extra:a};if(n){const l=dt(e,n);l.length&&(c.exception.values[0].stacktrace={frames:l})}return c}function ft(e,t){return{exception:{values:[lt(e,t)]}}}function dt(e,t){const n=t.stacktrace||t.stack||"",r=Lo(t),s=jo(t);try{return e(n,r,s)}catch{}return[]}const Mo=/Minified React error #\d+;/i;function Lo(e){return e&&Mo.test(e.message)?1:0}function jo(e){return typeof e.framesToPop=="number"?e.framesToPop:0}function Gn(e){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?e instanceof WebAssembly.Exception:!1}function Uo(e){const t=e&&e.name;return!t&&Gn(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:"WebAssembly.Exception":t}function $o(e){const t=e&&e.message;return t?t.error&&typeof t.error.message=="string"?t.error.message:Gn(e)&&Array.isArray(e.message)&&e.message.length==2?e.message[1]:t:"No error message"}function Fo(e,t,n,r){const s=n&&n.syntheticException||void 0,o=pt(e,t,s,r);return re(o),o.level="error",n&&n.event_id&&(o.event_id=n.event_id),z(o)}function Bo(e,t,n="info",r,s){const o=r&&r.syntheticException||void 0,i=ht(e,t,o,s);return i.level=n,r&&r.event_id&&(i.event_id=r.event_id),z(i)}function pt(e,t,n,r,s){let o;if($t(t)&&t.error)return ft(e,t.error);if(Ft(t)||hr(t)){const i=t;if("stack"in t)o=ft(e,t);else{const a=i.name||(Ft(i)?"DOMError":"DOMException"),c=i.message?`${a}: ${i.message}`:a;o=ht(e,c,n,r),Ke(o,c)}return"code"in i&&(o.tags={...o.tags,"DOMException.code":`${i.code}`}),o}return Ge(t)?ft(e,t):ee(t)||ye(t)?(o=Po(e,t,n,s),re(o,{synthetic:!0}),o):(o=ht(e,t,n,r),Ke(o,`${t}`,void 0),re(o,{synthetic:!0}),o)}function ht(e,t,n,r){const s={};if(r&&n){const o=dt(e,n);o.length&&(s.exception={values:[{value:t,stacktrace:{frames:o}}]}),re(s,{synthetic:!0})}if(ze(t)){const{__sentry_template_string__:o,__sentry_template_values__:i}=t;return s.logentry={message:o,params:i},s}return s.message=t,s}function Ho(e,{isUnhandledRejection:t}){const n=wr(e),r=t?"promise rejection":"exception";return $t(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:ye(e)?`Event \`${Go(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function Go(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function zo(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];if(n instanceof Error)return n}}const y=m;let gt=0;function zn(){return gt>0}function Wo(){gt++,setTimeout(()=>{gt--})}function ie(e,t={}){function n(s){return typeof s=="function"}if(!n(e))return e;try{const s=e.__sentry_wrapped__;if(s)return typeof s=="function"?s:e;if(Ye(e))return e}catch{return e}const r=function(...s){try{const o=s.map(i=>ie(i,t));return e.apply(this,o)}catch(o){throw Wo(),Fr(i=>{i.addEventProcessor(a=>(t.mechanism&&(Ke(a,void 0,void 0),re(a,t.mechanism)),a.extra={...a.extra,arguments:s},a)),bn(o)}),o}};try{for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(r[s]=e[s])}catch{}zt(r,e),G(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}function qo(e,{metadata:t,tunnel:n,dsn:r}){const s={event_id:e.event_id,sent_at:new Date().toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:Ae(r)}},o=Yo(e);return pe(s,[o])}function Yo(e){return[{type:"user_report"},e]}class Jo extends Ro{constructor(t){const n={parentSpanIsAlwaysRootSpan:!0,...t},r=y.SENTRY_SDK_SOURCE||Do();Ao(n,"browser",["browser"],r),super(n),n.sendClientReports&&y.document&&y.document.addEventListener("visibilitychange",()=>{y.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(t,n){return Fo(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return Bo(this._options.stackParser,t,n,r,this._options.attachStacktrace)}captureUserFeedback(t){if(!this._isEnabled()){he&&p.warn("SDK not enabled, will not capture user feedback.");return}const n=qo(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.sendEnvelope(n)}_prepareEvent(t,n,r){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,r)}}const ae={},Wn={};function q(e,t){ae[e]=ae[e]||[],ae[e].push(t)}function Kc(){Object.keys(ae).forEach(e=>{ae[e]=void 0})}function Y(e,t){if(!Wn[e]){Wn[e]=!0;try{t()}catch(n){B&&p.error(`Error while instrumenting ${e}`,n)}}}function O(e,t){const n=e&&ae[e];if(!!n)for(const r of n)try{r(t)}catch(s){B&&p.error(`Error while triggering instrumentation handler.
|
|
16
16
|
Type: ${e}
|
|
17
17
|
Name: ${j(r)}
|
|
18
|
-
Error:`,s)}}const b=m,Ko=1e3;let qn,mt,_t;function Xo(e){const t="dom";q(t,e),Y(t,Vo)}function Vo(){if(!b.document)return;const e=N.bind(null,"dom"),t=Yn(e,!0);b.document.addEventListener("click",t,!1),b.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{const s=b[n],o=s&&s.prototype;!o||!o.hasOwnProperty||!o.hasOwnProperty("addEventListener")||(v(o,"addEventListener",function(i){return function(a,c,l){if(a==="click"||a=="keypress")try{const f=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},u=f[a]=f[a]||{refCount:0};if(!u.handler){const d=Yn(e);u.handler=d,i.call(this,a,d,l)}u.refCount++}catch{}return i.call(this,a,c,l)}}),v(o,"removeEventListener",function(i){return function(a,c,l){if(a==="click"||a=="keypress")try{const f=this.__sentry_instrumentation_handlers__||{},u=f[a];u&&(u.refCount--,u.refCount<=0&&(i.call(this,a,u.handler,l),u.handler=void 0,delete f[a]),Object.keys(f).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return i.call(this,a,c,l)}}))})}function Zo(e){if(e.type!==mt)return!1;try{if(!e.target||e.target._sentryId!==_t)return!1}catch{}return!0}function Qo(e,t){return e!=="keypress"?!1:!t||!t.tagName?!0:!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable)}function Yn(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=ei(n);if(Qo(n.type,r))return;G(n,"_sentryCaptured",!0),r&&!r._sentryId&&G(r,"_sentryId",w());const s=n.type==="keypress"?"input":n.type;Zo(n)||(e({event:n,name:s,global:t}),mt=n.type,_t=r?r._sentryId:void 0),clearTimeout(qn),qn=b.setTimeout(()=>{_t=void 0,mt=void 0},Ko)}}function ei(e){try{return e.target}catch{return null}}const ge="__sentry_xhr_v3__";function ti(e){const t="xhr";q(t,e),Y(t,ni)}function ni(){if(!b.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(t,n,r){const s=new Error,o=D()*1e3,i=C(r[0])?r[0].toUpperCase():void 0,a=ri(r[1]);if(!i||!a)return t.apply(n,r);n[ge]={method:i,url:a,request_headers:{}},i==="POST"&&a.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const c=()=>{const l=n[ge];if(!!l&&n.readyState===4){try{l.status_code=n.status}catch{}const f={endTimestamp:D()*1e3,startTimestamp:o,xhr:n,virtualError:s};N("xhr",f)}};return"onreadystatechange"in n&&typeof n.onreadystatechange=="function"?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply(l,f,u){return c(),l.apply(f,u)}}):n.addEventListener("readystatechange",c),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(l,f,u){const[d,h]=u,g=f[ge];return g&&C(d)&&C(h)&&(g.request_headers[d.toLowerCase()]=h),l.apply(f,u)}}),t.apply(n,r)}}),e.send=new Proxy(e.send,{apply(t,n,r){const s=n[ge];if(!s)return t.apply(n,r);r[0]!==void 0&&(s.body=r[0]);const o={startTimestamp:D()*1e3,xhr:n};return N("xhr",o),t.apply(n,r)}})}function ri(e){if(C(e))return e;try{return e.toString()}catch{}}const Me=m;function si(){const e=Me.chrome,t=e&&e.app&&e.app.runtime,n="history"in Me&&!!Me.history.pushState&&!!Me.history.replaceState;return!t&&n}let Le;function Jn(e){const t="history";q(t,e),Y(t,oi)}function oi(){if(!si())return;const e=b.onpopstate;b.onpopstate=function(...n){const r=b.location.href,s=Le;if(Le=r,N("history",{from:s,to:r}),e)try{return e.apply(this,n)}catch{}};function t(n){return function(...r){const s=r.length>2?r[2]:void 0;if(s){const o=Le,i=String(s);Le=i,N("history",{from:o,to:i})}return n.apply(this,r)}}v(b.history,"pushState",t),v(b.history,"replaceState",t)}function ii(e){const t="console";q(t,e),Y(t,ai)}function ai(){"console"in m&&qe.forEach(function(e){e in m.console&&v(m.console,e,function(t){return Se[e]=t,function(...n){N("console",{args:n,level:e});const s=Se[e];s&&s.apply(m.console,n)}})})}function ci(e,t){const n="fetch";q(n,e),Y(n,()=>Kn(void 0,t))}function Xc(e){const t="fetch-body-resolved";addHandler(t,e),maybeInstrument(t,()=>Kn(li))}function Kn(e,t=!1){t&&!so()||v(m,"fetch",function(n){return function(...r){const s=new Error,{method:o,url:i}=fi(r),a={args:r,fetchData:{method:o,url:i},startTimestamp:D()*1e3,virtualError:s};return e||N("fetch",{...a}),n.apply(m,r).then(async c=>(e?e(c):N("fetch",{...a,endTimestamp:D()*1e3,response:c}),c),c=>{throw N("fetch",{...a,endTimestamp:D()*1e3,error:c}),Ge(c)&&c.stack===void 0&&(c.stack=s.stack,G(c,"framesToPop",1)),c})}})}async function ui(e,t){if(e&&e.body){const n=e.body,r=n.getReader(),s=setTimeout(()=>{n.cancel().then(null,()=>{})},90*1e3);let o=!0;for(;o;){let i;try{i=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);const{done:a}=await r.read();clearTimeout(i),a&&(t(),o=!1)}catch{o=!1}finally{clearTimeout(i)}}clearTimeout(s),r.releaseLock(),n.cancel().then(null,()=>{})}}function li(e){let t;try{t=e.clone()}catch{return}ui(t,()=>{triggerHandlers("fetch-body-resolved",{endTimestamp:timestampInSeconds()*1e3,response:e})})}function yt(e,t){return!!e&&typeof e=="object"&&!!e[t]}function Xn(e){return typeof e=="string"?e:e?yt(e,"url")?e.url:e.toString?e.toString():"":""}function fi(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,r]=e;return{url:Xn(n),method:yt(r,"method")?String(r.method).toUpperCase():"GET"}}const t=e[0];return{url:Xn(t),method:yt(t,"method")?String(t.method).toUpperCase():"GET"}}const di=100;function J(e,t){const n=E(),r=de();if(!n)return;const{beforeBreadcrumb:s=null,maxBreadcrumbs:o=di}=n.getOptions();if(o<=0)return;const a={timestamp:fe(),...e},c=s?H(()=>s(a,t)):a;c!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",c,t),r.addBreadcrumb(c,o))}const Vc=null;function pi(e){return e==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}function Vn(e){if(e!==void 0)return e>=400&&e<500?"warning":e>=500?"error":void 0}function Et(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const 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 Zc(e){return e.split(/[?#]/,1)[0]}function Qc(e){return e.split(/\\?\//).filter(t=>t.length>0&&t!==",").length}function eu(e){const{protocol:t,host:n,path:r}=e,s=n&&n.replace(/^.*@/,"[filtered]:[filtered]@").replace(/(:80)$/,"").replace(/(:443)$/,"")||"";return`${t?`${t}://`:""}${s}${r}`}const je=1024,hi="Breadcrumbs",gi=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:hi,setup(n){t.console&&ii(yi(n)),t.dom&&Xo(_i(n,t.dom)),t.xhr&&ti(Ei(n)),t.fetch&&ci(Si(n)),t.history&&Jn(bi(n)),t.sentry&&n.on("beforeSendEvent",mi(n))}}};function mi(e){return function(n){E()===e&&J({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:M(n)},{event:n})}}function _i(e,t){return function(r){if(E()!==e)return;let s,o,i=typeof t=="object"?t.serializeAttribute:void 0,a=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;a&&a>je&&(he&&p.warn(`\`dom.maxStringLength\` cannot exceed ${je}, but a value of ${a} was configured. Sentry will use ${je} instead.`),a=je),typeof i=="string"&&(i=[i]);try{const l=r.event,f=vi(l)?l.target:l;s=Ht(f,{keyAttrs:i,maxStringLength:a}),o=br(f)}catch{s="<unknown>"}if(s.length===0)return;const c={category:`ui.${r.name}`,message:s};o&&(c.data={"ui.component_name":o}),J(c,{event:r.event,name:r.name,global:r.global})}}function yi(e){return function(n){if(E()!==e)return;const r={category:"console",data:{arguments:n.args,logger:"console"},level:pi(n.level),message:Gt(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${Gt(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;J(r,{input:n.args,level:n.level})}}function Ei(e){return function(n){if(E()!==e)return;const{startTimestamp:r,endTimestamp:s}=n,o=n.xhr[ge];if(!r||!s||!o)return;const{method:i,url:a,status_code:c,body:l}=o,f={method:i,url:a,status_code:c},u={xhr:n.xhr,input:l,startTimestamp:r,endTimestamp:s},d=Vn(c);J({category:"xhr",data:f,type:"http",level:d},u)}}function Si(e){return function(n){if(E()!==e)return;const{startTimestamp:r,endTimestamp:s}=n;if(!!s&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.error){const o=n.fetchData,i={data:n.error,input:n.args,startTimestamp:r,endTimestamp:s};J({category:"fetch",data:o,level:"error",type:"http"},i)}else{const o=n.response,i={...n.fetchData,status_code:o&&o.status},a={input:n.args,response:o,startTimestamp:r,endTimestamp:s},c=Vn(i.status_code);J({category:"fetch",data:i,type:"http",level:c},a)}}}function bi(e){return function(n){if(E()!==e)return;let r=n.from,s=n.to;const o=Et(y.location.href);let i=r?Et(r):void 0;const a=Et(s);(!i||!i.path)&&(i=o),o.protocol===a.protocol&&o.host===a.host&&(s=a.relative),o.protocol===i.protocol&&o.host===i.host&&(r=i.relative),J({category:"navigation",data:{from:r,to:s}})}}function vi(e){return!!e&&!!e.target}const Ti=["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"],Ii="BrowserApiErrors",wi=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:Ii,setupOnce(){t.setTimeout&&v(y,"setTimeout",Zn),t.setInterval&&v(y,"setInterval",Zn),t.requestAnimationFrame&&v(y,"requestAnimationFrame",ki),t.XMLHttpRequest&&"XMLHttpRequest"in y&&v(XMLHttpRequest.prototype,"send",Ni);const n=t.eventTarget;n&&(Array.isArray(n)?n:Ti).forEach(Oi)}}};function Zn(e){return function(...t){const n=t[0];return t[0]=ie(n,{mechanism:{data:{function:j(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function ki(e){return function(t){return e.apply(this,[ie(t,{mechanism:{data:{function:"requestAnimationFrame",handler:j(e)},handled:!1,type:"instrument"}})])}}function Ni(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(s=>{s in n&&typeof n[s]=="function"&&v(n,s,function(o){const i={mechanism:{data:{function:s,handler:j(o)},handled:!1,type:"instrument"}},a=Ye(o);return a&&(i.mechanism.data.handler=j(a)),ie(o,i)})}),e.apply(this,t)}}function Oi(e){const n=y[e],r=n&&n.prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(v(r,"addEventListener",function(s){return function(o,i,a){try{Ri(i)&&(i.handleEvent=ie(i.handleEvent,{mechanism:{data:{function:"handleEvent",handler:j(i),target:e},handled:!1,type:"instrument"}}))}catch{}return s.apply(this,[o,ie(i,{mechanism:{data:{function:"addEventListener",handler:j(i),target:e},handled:!1,type:"instrument"}}),a])}}),v(r,"removeEventListener",function(s){return function(o,i,a){try{const c=i.__sentry_wrapped__;c&&s.call(this,o,c,a)}catch{}return s.call(this,o,i,a)}}))}function Ri(e){return typeof e.handleEvent=="function"}const xi=()=>({name:"BrowserSession",setupOnce(){if(typeof y.document>"u"){he&&p.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}In({ignoreDuration:!0}),Nn(),Jn(({from:e,to:t})=>{e!==void 0&&e!==t&&(In({ignoreDuration:!0}),Nn())})}});let St=null;function Ci(e){const t="error";q(t,e),Y(t,Di)}function Di(){St=m.onerror,m.onerror=function(e,t,n,r,s){return N("error",{column:r,error:s,line:n,msg:e,url:t}),St?St.apply(this,arguments):!1},m.onerror.__SENTRY_INSTRUMENTED__=!0}let bt=null;function Ai(e){const t="unhandledrejection";q(t,e),Y(t,Pi)}function Pi(){bt=m.onunhandledrejection,m.onunhandledrejection=function(e){return N("unhandledrejection",e),bt?bt.apply(this,arguments):!0},m.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const Mi="GlobalHandlers",Li=(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:Mi,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(ji(n),Qn("onerror")),t.onunhandledrejection&&(Ui(n),Qn("onunhandledrejection"))}}};function ji(e){Ci(t=>{const{stackParser:n,attachStacktrace:r}=er();if(E()!==e||zn())return;const{msg:s,url:o,line:i,column:a,error:c}=t,l=Bi(pt(n,c||s,void 0,r,!1),o,i,a);l.level="error",vn(l,{originalException:c,mechanism:{handled:!1,type:"onerror"}})})}function Ui(e){Ai(t=>{const{stackParser:n,attachStacktrace:r}=er();if(E()!==e||zn())return;const s=$i(t),o=We(s)?Fi(s):pt(n,s,void 0,r,!0);o.level="error",vn(o,{originalException:s,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function $i(e){if(We(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}function Fi(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function Bi(e,t,n,r){const s=e.exception=e.exception||{},o=s.values=s.values||[],i=o[0]=o[0]||{},a=i.stacktrace=i.stacktrace||{},c=a.frames=a.frames||[],l=r,f=n,u=C(t)&&t.length>0?t:Sr();return c.length===0&&c.push({colno:l,filename:u,function:R,in_app:!0,lineno:f}),e}function Qn(e){he&&p.log(`Global Handler attached: ${e}`)}function er(){const e=E();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const Hi=()=>({name:"HttpContext",preprocessEvent(e){if(!y.navigator&&!y.location&&!y.document)return;const t=e.request&&e.request.url||y.location&&y.location.href,{referrer:n}=y.document||{},{userAgent:r}=y.navigator||{},s={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},o={...e.request,...t&&{url:t},headers:s};e.request=o}});function Gi(e,t,n=250,r,s,o,i){if(!o.exception||!o.exception.values||!i||!F(i.originalException,Error))return;const a=o.exception.values.length>0?o.exception.values[o.exception.values.length-1]:void 0;a&&(o.exception.values=zi(vt(e,t,s,i.originalException,r,o.exception.values,a,0),n))}function vt(e,t,n,r,s,o,i,a){if(o.length>=n+1)return o;let c=[...o];if(F(r[s],Error)){tr(i,a);const l=e(t,r[s]),f=c.length;nr(l,s,f,a),c=vt(e,t,n,r[s],s,[l,...c],l,f)}return Array.isArray(r.errors)&&r.errors.forEach((l,f)=>{if(F(l,Error)){tr(i,a);const u=e(t,l),d=c.length;nr(u,`errors[${f}]`,d,a),c=vt(e,t,n,l,s,[u,...c],u,d)}}),c}function tr(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 nr(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}}function zi(e,t){return e.map(n=>(n.value&&(n.value=ne(n.value,t)),n))}const Wi="cause",qi=5,Yi="LinkedErrors",Ji=(e={})=>{const t=e.limit||qi,n=e.key||Wi;return{name:Yi,preprocessEvent(r,s,o){const i=o.getOptions();Gi(lt,i.stackParser,i.maxValueLength,n,t,r,s)}}},Ki=10,Xi=20,Vi=30,Zi=40,Qi=50;function ce(e,t,n,r){const s={filename:e,function:t==="<anonymous>"?R:t,in_app:!0};return n!==void 0&&(s.lineno=n),r!==void 0&&(s.colno=r),s}const ea=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,ta=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,na=/\((\S*)(?::(\d+))(?::(\d+))\)/,ra=[Vi,e=>{const t=ea.exec(e);if(t){const[,r,s,o]=t;return ce(r,R,+s,+o)}const n=ta.exec(e);if(n){if(n[2]&&n[2].indexOf("eval")===0){const i=na.exec(n[2]);i&&(n[2]=i[1],n[3]=i[2],n[4]=i[3])}const[s,o]=rr(n[1]||R,n[2]);return ce(o,s,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}}],sa=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,oa=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,ia=[Qi,e=>{const t=sa.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const o=oa.exec(t[3]);o&&(t[1]=t[1]||"eval",t[3]=o[1],t[4]=o[2],t[5]="")}let r=t[3],s=t[1]||R;return[s,r]=rr(s,r),ce(r,s,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],aa=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,cu=[Zi,e=>{const t=aa.exec(e);return t?ce(t[2],t[1]||R,+t[3],t[4]?+t[4]:void 0):void 0}],ca=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,lu=[Ki,e=>{const t=ca.exec(e);return t?ce(t[2],t[3]||R,+t[1]):void 0}],ua=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,du=[Xi,e=>{const t=ua.exec(e);return t?ce(t[5],t[3]||t[4]||R,+t[1],+t[2]):void 0}],la=an(...[ra,ia]),rr=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:R,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},fa=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Ue={};function Tt(e){const t=Ue[e];if(t)return t;let n=b[e];if(ct(n))return Ue[e]=n.bind(b);const r=b.document;if(r&&typeof r.createElement=="function")try{const s=r.createElement("iframe");s.hidden=!0,r.head.appendChild(s);const o=s.contentWindow;o&&o[e]&&(n=o[e]),r.head.removeChild(s)}catch(s){fa&&p.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,s)}return n&&(Ue[e]=n.bind(b))}function sr(e){Ue[e]=void 0}function hu(...e){return Tt("fetch")(...e)}function gu(...e){return Tt("setTimeout")(...e)}function da(e){const t=[];function n(){return e===void 0||t.length<e}function r(i){return t.splice(t.indexOf(i),1)[0]||Promise.resolve(void 0)}function s(i){if(!n())return we(new x("Not adding Promise because buffer limit was reached."));const a=i();return t.indexOf(a)===-1&&t.push(a),a.then(()=>r(a)).then(null,()=>r(a).then(null,()=>{})),a}function o(i){return new k((a,c)=>{let l=t.length;if(!l)return a(!0);const f=setTimeout(()=>{i&&i>0&&a(!1)},i);t.forEach(u=>{z(u).then(()=>{--l||(clearTimeout(f),a(!0))},c)})})}return{$:t,add:s,drain:o}}const pa=60*1e3;function ha(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${e}`);return isNaN(r)?pa:r-t}function ga(e,t){return e[t]||e.all||0}function ma(e,t,n=Date.now()){return ga(e,t)>n}function _a(e,{statusCode:t,headers:n},r=Date.now()){const s={...e},o=n&&n["x-sentry-rate-limits"],i=n&&n["retry-after"];if(o)for(const a of o.trim().split(",")){const[c,l,,,f]=a.split(":",5),u=parseInt(c,10),d=(isNaN(u)?60:u)*1e3;if(!l)s.all=r+d;else for(const h of l.split(";"))h==="metric_bucket"?(!f||f.split(";").includes("custom"))&&(s[h]=r+d):s[h]=r+d}else i?s.all=r+ha(i,r):t===429&&(s.all=r+60*1e3);return s}const ya=64;function Ea(e,t,n=da(e.bufferSize||ya)){let r={};const s=i=>n.drain(i);function o(i){const a=[];if(ut(i,(u,d)=>{const h=Un(d);if(ma(r,h)){const g=or(u,d);e.recordDroppedEvent("ratelimit_backoff",h,g)}else a.push(u)}),a.length===0)return z({});const c=pe(i[0],a),l=u=>{ut(c,(d,h)=>{const g=or(d,h);e.recordDroppedEvent(u,Un(h),g)})},f=()=>t({body:Eo(c)}).then(u=>(u.statusCode!==void 0&&(u.statusCode<200||u.statusCode>=300)&&_&&p.warn(`Sentry responded with status code ${u.statusCode} to sent event.`),r=_a(r,u),u),u=>{throw l("network_error"),u});return n.add(f).then(u=>u,u=>{if(u instanceof x)return _&&p.error("Skipped sending event because buffer is full."),l("queue_overflow"),z({});throw u})}return{send:o,flush:s}}function or(e,t){if(!(t!=="event"&&t!=="transaction"))return Array.isArray(e)?e[1]:void 0}function Sa(e,t=Tt("fetch")){let n=0,r=0;function s(o){const i=o.body.length;n+=i,r++;const a={body:o.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};if(!t)return sr("fetch"),we("No fetch implementation available");try{return t(e.url,a).then(c=>(n-=i,r--,{statusCode:c.status,headers:{"x-sentry-rate-limits":c.headers.get("X-Sentry-Rate-Limits"),"retry-after":c.headers.get("Retry-After")}}))}catch(c){return sr("fetch"),n-=i,r--,we(c)}}return Ea(e,s)}function ba(e){const t=[Fs(),Zs(),wi(),gi(),Li(),Ji(),eo(),Hi()];return e.autoSessionTracking!==!1&&t.push(xi()),t}function va(e={}){const t={defaultIntegrations:ba(e),release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:y.SENTRY_RELEASE&&y.SENTRY_RELEASE.id?y.SENTRY_RELEASE.id:void 0,autoSessionTracking:!0,sendClientReports:!0};return e.defaultIntegrations==null&&delete e.defaultIntegrations,{...t,...e}}function Ta(){const e=typeof y.window<"u"&&y;if(!e)return!1;const t=e.chrome?"chrome":"browser",n=e[t],r=n&&n.runtime&&n.runtime.id,s=y.location&&y.location.href||"",o=["chrome-extension:","moz-extension:","ms-browser-extension:","safari-web-extension:"],i=!!r&&y===y.top&&o.some(c=>s.startsWith(`${c}//`)),a=typeof e.nw<"u";return!!r&&!i&&!a}function Ia(e={}){const t=va(e);if(!t.skipBrowserExtensionCheck&&Ta()){H(()=>{console.error("[Sentry] You cannot run Sentry this way in a browser extension, check: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")});return}he&&(at()||p.warn("No Fetch API detected. The Sentry SDK requires a Fetch API compatible environment to send events. Please add a Fetch API polyfill."));const n={...t,stackParser:Gr(t.stackParser||la),integrations:Ls(t),transport:t.transport||Sa};return oo(Jo,n)}function mu(e={}){if(!WINDOW.document){DEBUG_BUILD&&logger.error("Global document not defined in showReportDialog call");return}const t=getCurrentScope(),n=t.getClient(),r=n&&n.getDsn();if(!r){DEBUG_BUILD&&logger.error("DSN not configured for showReportDialog call");return}if(t&&(e.user={...t.getUser(),...e.user}),!e.eventId){const a=lastEventId();a&&(e.eventId=a)}const s=WINDOW.document.createElement("script");s.async=!0,s.crossOrigin="anonymous",s.src=getReportDialogEndpoint(r,e),e.onLoad&&(s.onload=e.onLoad);const{onClose:o}=e;if(o){const a=c=>{if(c.data==="__sentry_reportdialog_closed__")try{o()}finally{WINDOW.removeEventListener("message",a)}};WINDOW.addEventListener("message",a)}const i=WINDOW.document.head||WINDOW.document.body;i?i.appendChild(s):DEBUG_BUILD&&logger.error("Not injecting report dialog. No injection point found in HTML")}function _u(){}function yu(e){e()}function Eu(e){const t=getClient();t&&t.captureUserFeedback(e)}class wa{constructor(t){if(!Ps())Ia({environment:t.environment,dsn:t.dsn,beforeSend(n){var r;return!((r=n.extra)===null||r===void 0)&&r.log?n:null}});else if(t.clientSlug!==void 0&&t.environment!==void 0){const n=en();n.clear(),n.setTag("client.slug",t.clientSlug),n.addEventProcessor(r=>new Promise(s=>s(Object.assign(Object.assign({},r),{environment:t.environment}))))}}write(t){t.err?bn(t.err,{extra:{log:!0}}):t.msg&&As(t.msg,{extra:{log:!0}})}}function It(){return It=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},It.apply(this,arguments)}var ir=typeof window<"u"?window.navigator.userAgent:"no-window",ka=/bot|crawler|spider|crawling/i.test(ir),Na={"Content-Type":"application/json"},Oa=function(){function e(n){var r=this;n===void 0&&(n={});var s=n.method,o=s===void 0?"PUT":s,i=n.url,a=i===void 0?"/log":i,c=n.headers,l=c===void 0?{}:c,f=n.throttleInterval,u=f===void 0?3e3:f,d=n.withCredentials,h=d!==void 0&&d,g=n.onError,Z=n.flushOnClose,S=Z!==void 0&&Z,U=n.writeCondition;this.writeCondition=U===void 0?e.defaultWriteCondition:U,this.records={},this.headers=It({},Na,l),this.start({method:o,url:a,throttleInterval:u,withCredentials:h,onError:g}),S&&window.fetch!==void 0&&window.addEventListener("beforeunload",function(){r.currentThrottleTimeout&&window.clearTimeout(r.currentThrottleTimeout);var le=r.recordsAsArray();le.length&&window.fetch(a,{method:o,body:JSON.stringify(le),headers:r.headers,credentials:h?"include":"same-origin",mode:"cors",keepalive:!0})},!1)}var t=e.prototype;return t.start=function(n){var r=this,s=n.method,o=n.url,i=n.throttleInterval,a=n.withCredentials,c=n.onError;(function l(){r.currentThrottleTimeout=setTimeout(function(){var f=r.recordsAsArray();if(f.length){var u=new XMLHttpRequest;u.onreadystatechange=function(){u.readyState===XMLHttpRequest.DONE&&(u.status>=400&&(typeof c=="function"?c.call(r,f,u):console.warn("Browser Bunyan: A server log write failed")),r.records={},l())},u.open(s,o);for(var d=0,h=Object.entries(r.headers);d<h.length;d++){var g=h[d];u.setRequestHeader(g[0],g[1])}u.withCredentials=a,u.send(JSON.stringify(f))}else l()},i)})()},t.stop=function(){var n=this;setTimeout(function(){n.currentThrottleTimeout&&(clearTimeout(n.currentThrottleTimeout),n.currentThrottleTimeout=null)},1)},t.write=function(n){n.url=typeof window<"u"&&window.location.href,n.userAgent=ir,this.currentThrottleTimeout&&this.writeCondition(n)&&(this.records[n.msg]?this.records[n.msg].count++:(n.count=1,this.records[n.msg]=n))},t.recordsAsArray=function(){var n=this;return Object.keys(this.records).map(function(r){return n.records[r]})},e.defaultWriteCondition=function(){return window.navigator.onLine&&!ka},e}(),Su=10,bu=20,vu=30,Tu=40,Iu=50,wu=60,wt={trace:10,debug:20,info:30,warn:40,error:50,fatal:60},ar={};function kt(e){return typeof e=="string"?wt[e.toLowerCase()]:e}function Nt(e,t){return Nt=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},Nt(e,t)}function Ra(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ot(e,t,n){return Ot=Ra()?Reflect.construct:function(r,s,o){var i=[null];i.push.apply(i,s);var a=new(Function.bind.apply(r,i));return o&&Nt(a,o.prototype),a},Ot.apply(null,arguments)}function K(e){if(e==null)return e;if(Array.isArray(e))return e.slice();if(typeof e=="object"){var t={};return Object.keys(e).forEach(function(n){t[n]=e[n]}),t}return e}function Rt(e){return e===void 0?"undefined":e===null?"null":Array.isArray(e)?"[ "+e.map(function(t){return Rt(t)}).join(", ")+" ]":typeof e=="object"?JSON.stringify(e):typeof e=="function"?"[Function: "+e.name+"]":typeof e=="boolean"||typeof e=="number"?e:"'"+e.toString()+"'"}function X(e){if(typeof e!="string"){for(var t=new Array(arguments.length),n=0;n<arguments.length;n++)t[n]=Rt(arguments[n]);return t.join(" ")}for(var r=/%[sdj%]/g,s=1,o=arguments,i=o.length,a=String(e).replace(r,function(l){if(l==="%%")return"%";if(s>=i)return l;switch(l){case"%s":return String(o[s++]);case"%d":return Number(o[s++]);case"%j":try{return JSON.stringify(o[s++])}catch{return"[Circular]"}default:return l}}),c=o[s];s<i;c=o[++s])a+=c===null||typeof c!="object"?" "+c:" "+Rt(c);return a}function xa(e,t){var n=e.split(`
|
|
18
|
+
Error:`,s)}}const b=m,Ko=1e3;let qn,mt,_t;function Xo(e){const t="dom";q(t,e),Y(t,Vo)}function Vo(){if(!b.document)return;const e=O.bind(null,"dom"),t=Yn(e,!0);b.document.addEventListener("click",t,!1),b.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{const s=b[n],o=s&&s.prototype;!o||!o.hasOwnProperty||!o.hasOwnProperty("addEventListener")||(v(o,"addEventListener",function(i){return function(a,c,l){if(a==="click"||a=="keypress")try{const f=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},u=f[a]=f[a]||{refCount:0};if(!u.handler){const d=Yn(e);u.handler=d,i.call(this,a,d,l)}u.refCount++}catch{}return i.call(this,a,c,l)}}),v(o,"removeEventListener",function(i){return function(a,c,l){if(a==="click"||a=="keypress")try{const f=this.__sentry_instrumentation_handlers__||{},u=f[a];u&&(u.refCount--,u.refCount<=0&&(i.call(this,a,u.handler,l),u.handler=void 0,delete f[a]),Object.keys(f).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return i.call(this,a,c,l)}}))})}function Zo(e){if(e.type!==mt)return!1;try{if(!e.target||e.target._sentryId!==_t)return!1}catch{}return!0}function Qo(e,t){return e!=="keypress"?!1:!t||!t.tagName?!0:!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable)}function Yn(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=ei(n);if(Qo(n.type,r))return;G(n,"_sentryCaptured",!0),r&&!r._sentryId&&G(r,"_sentryId",w());const s=n.type==="keypress"?"input":n.type;Zo(n)||(e({event:n,name:s,global:t}),mt=n.type,_t=r?r._sentryId:void 0),clearTimeout(qn),qn=b.setTimeout(()=>{_t=void 0,mt=void 0},Ko)}}function ei(e){try{return e.target}catch{return null}}const ge="__sentry_xhr_v3__";function ti(e){const t="xhr";q(t,e),Y(t,ni)}function ni(){if(!b.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(t,n,r){const s=new Error,o=D()*1e3,i=C(r[0])?r[0].toUpperCase():void 0,a=ri(r[1]);if(!i||!a)return t.apply(n,r);n[ge]={method:i,url:a,request_headers:{}},i==="POST"&&a.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const c=()=>{const l=n[ge];if(!!l&&n.readyState===4){try{l.status_code=n.status}catch{}const f={endTimestamp:D()*1e3,startTimestamp:o,xhr:n,virtualError:s};O("xhr",f)}};return"onreadystatechange"in n&&typeof n.onreadystatechange=="function"?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply(l,f,u){return c(),l.apply(f,u)}}):n.addEventListener("readystatechange",c),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(l,f,u){const[d,h]=u,g=f[ge];return g&&C(d)&&C(h)&&(g.request_headers[d.toLowerCase()]=h),l.apply(f,u)}}),t.apply(n,r)}}),e.send=new Proxy(e.send,{apply(t,n,r){const s=n[ge];if(!s)return t.apply(n,r);r[0]!==void 0&&(s.body=r[0]);const o={startTimestamp:D()*1e3,xhr:n};return O("xhr",o),t.apply(n,r)}})}function ri(e){if(C(e))return e;try{return e.toString()}catch{}}const Me=m;function si(){const e=Me.chrome,t=e&&e.app&&e.app.runtime,n="history"in Me&&!!Me.history.pushState&&!!Me.history.replaceState;return!t&&n}let Le;function Jn(e){const t="history";q(t,e),Y(t,oi)}function oi(){if(!si())return;const e=b.onpopstate;b.onpopstate=function(...n){const r=b.location.href,s=Le;if(Le=r,O("history",{from:s,to:r}),e)try{return e.apply(this,n)}catch{}};function t(n){return function(...r){const s=r.length>2?r[2]:void 0;if(s){const o=Le,i=String(s);Le=i,O("history",{from:o,to:i})}return n.apply(this,r)}}v(b.history,"pushState",t),v(b.history,"replaceState",t)}function ii(e){const t="console";q(t,e),Y(t,ai)}function ai(){"console"in m&&qe.forEach(function(e){e in m.console&&v(m.console,e,function(t){return Se[e]=t,function(...n){O("console",{args:n,level:e});const s=Se[e];s&&s.apply(m.console,n)}})})}function ci(e,t){const n="fetch";q(n,e),Y(n,()=>Kn(void 0,t))}function Xc(e){const t="fetch-body-resolved";addHandler(t,e),maybeInstrument(t,()=>Kn(li))}function Kn(e,t=!1){t&&!so()||v(m,"fetch",function(n){return function(...r){const s=new Error,{method:o,url:i}=fi(r),a={args:r,fetchData:{method:o,url:i},startTimestamp:D()*1e3,virtualError:s};return e||O("fetch",{...a}),n.apply(m,r).then(async c=>(e?e(c):O("fetch",{...a,endTimestamp:D()*1e3,response:c}),c),c=>{throw O("fetch",{...a,endTimestamp:D()*1e3,error:c}),Ge(c)&&c.stack===void 0&&(c.stack=s.stack,G(c,"framesToPop",1)),c})}})}async function ui(e,t){if(e&&e.body){const n=e.body,r=n.getReader(),s=setTimeout(()=>{n.cancel().then(null,()=>{})},90*1e3);let o=!0;for(;o;){let i;try{i=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);const{done:a}=await r.read();clearTimeout(i),a&&(t(),o=!1)}catch{o=!1}finally{clearTimeout(i)}}clearTimeout(s),r.releaseLock(),n.cancel().then(null,()=>{})}}function li(e){let t;try{t=e.clone()}catch{return}ui(t,()=>{triggerHandlers("fetch-body-resolved",{endTimestamp:timestampInSeconds()*1e3,response:e})})}function yt(e,t){return!!e&&typeof e=="object"&&!!e[t]}function Xn(e){return typeof e=="string"?e:e?yt(e,"url")?e.url:e.toString?e.toString():"":""}function fi(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,r]=e;return{url:Xn(n),method:yt(r,"method")?String(r.method).toUpperCase():"GET"}}const t=e[0];return{url:Xn(t),method:yt(t,"method")?String(t.method).toUpperCase():"GET"}}const di=100;function J(e,t){const n=E(),r=de();if(!n)return;const{beforeBreadcrumb:s=null,maxBreadcrumbs:o=di}=n.getOptions();if(o<=0)return;const a={timestamp:fe(),...e},c=s?H(()=>s(a,t)):a;c!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",c,t),r.addBreadcrumb(c,o))}const Vc=null;function pi(e){return e==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}function Vn(e){if(e!==void 0)return e>=400&&e<500?"warning":e>=500?"error":void 0}function Et(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const 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 Zc(e){return e.split(/[?#]/,1)[0]}function Qc(e){return e.split(/\\?\//).filter(t=>t.length>0&&t!==",").length}function eu(e){const{protocol:t,host:n,path:r}=e,s=n&&n.replace(/^.*@/,"[filtered]:[filtered]@").replace(/(:80)$/,"").replace(/(:443)$/,"")||"";return`${t?`${t}://`:""}${s}${r}`}const je=1024,hi="Breadcrumbs",gi=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:hi,setup(n){t.console&&ii(yi(n)),t.dom&&Xo(_i(n,t.dom)),t.xhr&&ti(Ei(n)),t.fetch&&ci(Si(n)),t.history&&Jn(bi(n)),t.sentry&&n.on("beforeSendEvent",mi(n))}}};function mi(e){return function(n){E()===e&&J({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:M(n)},{event:n})}}function _i(e,t){return function(r){if(E()!==e)return;let s,o,i=typeof t=="object"?t.serializeAttribute:void 0,a=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;a&&a>je&&(he&&p.warn(`\`dom.maxStringLength\` cannot exceed ${je}, but a value of ${a} was configured. Sentry will use ${je} instead.`),a=je),typeof i=="string"&&(i=[i]);try{const l=r.event,f=vi(l)?l.target:l;s=Ht(f,{keyAttrs:i,maxStringLength:a}),o=br(f)}catch{s="<unknown>"}if(s.length===0)return;const c={category:`ui.${r.name}`,message:s};o&&(c.data={"ui.component_name":o}),J(c,{event:r.event,name:r.name,global:r.global})}}function yi(e){return function(n){if(E()!==e)return;const r={category:"console",data:{arguments:n.args,logger:"console"},level:pi(n.level),message:Gt(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${Gt(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;J(r,{input:n.args,level:n.level})}}function Ei(e){return function(n){if(E()!==e)return;const{startTimestamp:r,endTimestamp:s}=n,o=n.xhr[ge];if(!r||!s||!o)return;const{method:i,url:a,status_code:c,body:l}=o,f={method:i,url:a,status_code:c},u={xhr:n.xhr,input:l,startTimestamp:r,endTimestamp:s},d=Vn(c);J({category:"xhr",data:f,type:"http",level:d},u)}}function Si(e){return function(n){if(E()!==e)return;const{startTimestamp:r,endTimestamp:s}=n;if(!!s&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.error){const o=n.fetchData,i={data:n.error,input:n.args,startTimestamp:r,endTimestamp:s};J({category:"fetch",data:o,level:"error",type:"http"},i)}else{const o=n.response,i={...n.fetchData,status_code:o&&o.status},a={input:n.args,response:o,startTimestamp:r,endTimestamp:s},c=Vn(i.status_code);J({category:"fetch",data:i,type:"http",level:c},a)}}}function bi(e){return function(n){if(E()!==e)return;let r=n.from,s=n.to;const o=Et(y.location.href);let i=r?Et(r):void 0;const a=Et(s);(!i||!i.path)&&(i=o),o.protocol===a.protocol&&o.host===a.host&&(s=a.relative),o.protocol===i.protocol&&o.host===i.host&&(r=i.relative),J({category:"navigation",data:{from:r,to:s}})}}function vi(e){return!!e&&!!e.target}const Ti=["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"],Ii="BrowserApiErrors",wi=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:Ii,setupOnce(){t.setTimeout&&v(y,"setTimeout",Zn),t.setInterval&&v(y,"setInterval",Zn),t.requestAnimationFrame&&v(y,"requestAnimationFrame",ki),t.XMLHttpRequest&&"XMLHttpRequest"in y&&v(XMLHttpRequest.prototype,"send",Oi);const n=t.eventTarget;n&&(Array.isArray(n)?n:Ti).forEach(Ni)}}};function Zn(e){return function(...t){const n=t[0];return t[0]=ie(n,{mechanism:{data:{function:j(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function ki(e){return function(t){return e.apply(this,[ie(t,{mechanism:{data:{function:"requestAnimationFrame",handler:j(e)},handled:!1,type:"instrument"}})])}}function Oi(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(s=>{s in n&&typeof n[s]=="function"&&v(n,s,function(o){const i={mechanism:{data:{function:s,handler:j(o)},handled:!1,type:"instrument"}},a=Ye(o);return a&&(i.mechanism.data.handler=j(a)),ie(o,i)})}),e.apply(this,t)}}function Ni(e){const n=y[e],r=n&&n.prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(v(r,"addEventListener",function(s){return function(o,i,a){try{Ri(i)&&(i.handleEvent=ie(i.handleEvent,{mechanism:{data:{function:"handleEvent",handler:j(i),target:e},handled:!1,type:"instrument"}}))}catch{}return s.apply(this,[o,ie(i,{mechanism:{data:{function:"addEventListener",handler:j(i),target:e},handled:!1,type:"instrument"}}),a])}}),v(r,"removeEventListener",function(s){return function(o,i,a){try{const c=i.__sentry_wrapped__;c&&s.call(this,o,c,a)}catch{}return s.call(this,o,i,a)}}))}function Ri(e){return typeof e.handleEvent=="function"}const xi=()=>({name:"BrowserSession",setupOnce(){if(typeof y.document>"u"){he&&p.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}In({ignoreDuration:!0}),On(),Jn(({from:e,to:t})=>{e!==void 0&&e!==t&&(In({ignoreDuration:!0}),On())})}});let St=null;function Ci(e){const t="error";q(t,e),Y(t,Di)}function Di(){St=m.onerror,m.onerror=function(e,t,n,r,s){return O("error",{column:r,error:s,line:n,msg:e,url:t}),St?St.apply(this,arguments):!1},m.onerror.__SENTRY_INSTRUMENTED__=!0}let bt=null;function Ai(e){const t="unhandledrejection";q(t,e),Y(t,Pi)}function Pi(){bt=m.onunhandledrejection,m.onunhandledrejection=function(e){return O("unhandledrejection",e),bt?bt.apply(this,arguments):!0},m.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const Mi="GlobalHandlers",Li=(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:Mi,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(ji(n),Qn("onerror")),t.onunhandledrejection&&(Ui(n),Qn("onunhandledrejection"))}}};function ji(e){Ci(t=>{const{stackParser:n,attachStacktrace:r}=er();if(E()!==e||zn())return;const{msg:s,url:o,line:i,column:a,error:c}=t,l=Bi(pt(n,c||s,void 0,r,!1),o,i,a);l.level="error",vn(l,{originalException:c,mechanism:{handled:!1,type:"onerror"}})})}function Ui(e){Ai(t=>{const{stackParser:n,attachStacktrace:r}=er();if(E()!==e||zn())return;const s=$i(t),o=We(s)?Fi(s):pt(n,s,void 0,r,!0);o.level="error",vn(o,{originalException:s,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function $i(e){if(We(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}function Fi(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function Bi(e,t,n,r){const s=e.exception=e.exception||{},o=s.values=s.values||[],i=o[0]=o[0]||{},a=i.stacktrace=i.stacktrace||{},c=a.frames=a.frames||[],l=r,f=n,u=C(t)&&t.length>0?t:Sr();return c.length===0&&c.push({colno:l,filename:u,function:R,in_app:!0,lineno:f}),e}function Qn(e){he&&p.log(`Global Handler attached: ${e}`)}function er(){const e=E();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const Hi=()=>({name:"HttpContext",preprocessEvent(e){if(!y.navigator&&!y.location&&!y.document)return;const t=e.request&&e.request.url||y.location&&y.location.href,{referrer:n}=y.document||{},{userAgent:r}=y.navigator||{},s={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},o={...e.request,...t&&{url:t},headers:s};e.request=o}});function Gi(e,t,n=250,r,s,o,i){if(!o.exception||!o.exception.values||!i||!F(i.originalException,Error))return;const a=o.exception.values.length>0?o.exception.values[o.exception.values.length-1]:void 0;a&&(o.exception.values=zi(vt(e,t,s,i.originalException,r,o.exception.values,a,0),n))}function vt(e,t,n,r,s,o,i,a){if(o.length>=n+1)return o;let c=[...o];if(F(r[s],Error)){tr(i,a);const l=e(t,r[s]),f=c.length;nr(l,s,f,a),c=vt(e,t,n,r[s],s,[l,...c],l,f)}return Array.isArray(r.errors)&&r.errors.forEach((l,f)=>{if(F(l,Error)){tr(i,a);const u=e(t,l),d=c.length;nr(u,`errors[${f}]`,d,a),c=vt(e,t,n,l,s,[u,...c],u,d)}}),c}function tr(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 nr(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}}function zi(e,t){return e.map(n=>(n.value&&(n.value=ne(n.value,t)),n))}const Wi="cause",qi=5,Yi="LinkedErrors",Ji=(e={})=>{const t=e.limit||qi,n=e.key||Wi;return{name:Yi,preprocessEvent(r,s,o){const i=o.getOptions();Gi(lt,i.stackParser,i.maxValueLength,n,t,r,s)}}},Ki=10,Xi=20,Vi=30,Zi=40,Qi=50;function ce(e,t,n,r){const s={filename:e,function:t==="<anonymous>"?R:t,in_app:!0};return n!==void 0&&(s.lineno=n),r!==void 0&&(s.colno=r),s}const ea=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,ta=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,na=/\((\S*)(?::(\d+))(?::(\d+))\)/,ra=[Vi,e=>{const t=ea.exec(e);if(t){const[,r,s,o]=t;return ce(r,R,+s,+o)}const n=ta.exec(e);if(n){if(n[2]&&n[2].indexOf("eval")===0){const i=na.exec(n[2]);i&&(n[2]=i[1],n[3]=i[2],n[4]=i[3])}const[s,o]=rr(n[1]||R,n[2]);return ce(o,s,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}}],sa=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,oa=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,ia=[Qi,e=>{const t=sa.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const o=oa.exec(t[3]);o&&(t[1]=t[1]||"eval",t[3]=o[1],t[4]=o[2],t[5]="")}let r=t[3],s=t[1]||R;return[s,r]=rr(s,r),ce(r,s,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],aa=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,cu=[Zi,e=>{const t=aa.exec(e);return t?ce(t[2],t[1]||R,+t[3],t[4]?+t[4]:void 0):void 0}],ca=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,lu=[Ki,e=>{const t=ca.exec(e);return t?ce(t[2],t[3]||R,+t[1]):void 0}],ua=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,du=[Xi,e=>{const t=ua.exec(e);return t?ce(t[5],t[3]||t[4]||R,+t[1],+t[2]):void 0}],la=an(...[ra,ia]),rr=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:R,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},fa=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Ue={};function Tt(e){const t=Ue[e];if(t)return t;let n=b[e];if(ct(n))return Ue[e]=n.bind(b);const r=b.document;if(r&&typeof r.createElement=="function")try{const s=r.createElement("iframe");s.hidden=!0,r.head.appendChild(s);const o=s.contentWindow;o&&o[e]&&(n=o[e]),r.head.removeChild(s)}catch(s){fa&&p.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,s)}return n&&(Ue[e]=n.bind(b))}function sr(e){Ue[e]=void 0}function hu(...e){return Tt("fetch")(...e)}function gu(...e){return Tt("setTimeout")(...e)}function da(e){const t=[];function n(){return e===void 0||t.length<e}function r(i){return t.splice(t.indexOf(i),1)[0]||Promise.resolve(void 0)}function s(i){if(!n())return we(new x("Not adding Promise because buffer limit was reached."));const a=i();return t.indexOf(a)===-1&&t.push(a),a.then(()=>r(a)).then(null,()=>r(a).then(null,()=>{})),a}function o(i){return new k((a,c)=>{let l=t.length;if(!l)return a(!0);const f=setTimeout(()=>{i&&i>0&&a(!1)},i);t.forEach(u=>{z(u).then(()=>{--l||(clearTimeout(f),a(!0))},c)})})}return{$:t,add:s,drain:o}}const pa=60*1e3;function ha(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${e}`);return isNaN(r)?pa:r-t}function ga(e,t){return e[t]||e.all||0}function ma(e,t,n=Date.now()){return ga(e,t)>n}function _a(e,{statusCode:t,headers:n},r=Date.now()){const s={...e},o=n&&n["x-sentry-rate-limits"],i=n&&n["retry-after"];if(o)for(const a of o.trim().split(",")){const[c,l,,,f]=a.split(":",5),u=parseInt(c,10),d=(isNaN(u)?60:u)*1e3;if(!l)s.all=r+d;else for(const h of l.split(";"))h==="metric_bucket"?(!f||f.split(";").includes("custom"))&&(s[h]=r+d):s[h]=r+d}else i?s.all=r+ha(i,r):t===429&&(s.all=r+60*1e3);return s}const ya=64;function Ea(e,t,n=da(e.bufferSize||ya)){let r={};const s=i=>n.drain(i);function o(i){const a=[];if(ut(i,(u,d)=>{const h=Un(d);if(ma(r,h)){const g=or(u,d);e.recordDroppedEvent("ratelimit_backoff",h,g)}else a.push(u)}),a.length===0)return z({});const c=pe(i[0],a),l=u=>{ut(c,(d,h)=>{const g=or(d,h);e.recordDroppedEvent(u,Un(h),g)})},f=()=>t({body:Eo(c)}).then(u=>(u.statusCode!==void 0&&(u.statusCode<200||u.statusCode>=300)&&_&&p.warn(`Sentry responded with status code ${u.statusCode} to sent event.`),r=_a(r,u),u),u=>{throw l("network_error"),u});return n.add(f).then(u=>u,u=>{if(u instanceof x)return _&&p.error("Skipped sending event because buffer is full."),l("queue_overflow"),z({});throw u})}return{send:o,flush:s}}function or(e,t){if(!(t!=="event"&&t!=="transaction"))return Array.isArray(e)?e[1]:void 0}function Sa(e,t=Tt("fetch")){let n=0,r=0;function s(o){const i=o.body.length;n+=i,r++;const a={body:o.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};if(!t)return sr("fetch"),we("No fetch implementation available");try{return t(e.url,a).then(c=>(n-=i,r--,{statusCode:c.status,headers:{"x-sentry-rate-limits":c.headers.get("X-Sentry-Rate-Limits"),"retry-after":c.headers.get("Retry-After")}}))}catch(c){return sr("fetch"),n-=i,r--,we(c)}}return Ea(e,s)}function ba(e){const t=[Fs(),Zs(),wi(),gi(),Li(),Ji(),eo(),Hi()];return e.autoSessionTracking!==!1&&t.push(xi()),t}function va(e={}){const t={defaultIntegrations:ba(e),release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:y.SENTRY_RELEASE&&y.SENTRY_RELEASE.id?y.SENTRY_RELEASE.id:void 0,autoSessionTracking:!0,sendClientReports:!0};return e.defaultIntegrations==null&&delete e.defaultIntegrations,{...t,...e}}function Ta(){const e=typeof y.window<"u"&&y;if(!e)return!1;const t=e.chrome?"chrome":"browser",n=e[t],r=n&&n.runtime&&n.runtime.id,s=y.location&&y.location.href||"",o=["chrome-extension:","moz-extension:","ms-browser-extension:","safari-web-extension:"],i=!!r&&y===y.top&&o.some(c=>s.startsWith(`${c}//`)),a=typeof e.nw<"u";return!!r&&!i&&!a}function Ia(e={}){const t=va(e);if(!t.skipBrowserExtensionCheck&&Ta()){H(()=>{console.error("[Sentry] You cannot run Sentry this way in a browser extension, check: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")});return}he&&(at()||p.warn("No Fetch API detected. The Sentry SDK requires a Fetch API compatible environment to send events. Please add a Fetch API polyfill."));const n={...t,stackParser:Gr(t.stackParser||la),integrations:Ls(t),transport:t.transport||Sa};return oo(Jo,n)}function mu(e={}){if(!WINDOW.document){DEBUG_BUILD&&logger.error("Global document not defined in showReportDialog call");return}const t=getCurrentScope(),n=t.getClient(),r=n&&n.getDsn();if(!r){DEBUG_BUILD&&logger.error("DSN not configured for showReportDialog call");return}if(t&&(e.user={...t.getUser(),...e.user}),!e.eventId){const a=lastEventId();a&&(e.eventId=a)}const s=WINDOW.document.createElement("script");s.async=!0,s.crossOrigin="anonymous",s.src=getReportDialogEndpoint(r,e),e.onLoad&&(s.onload=e.onLoad);const{onClose:o}=e;if(o){const a=c=>{if(c.data==="__sentry_reportdialog_closed__")try{o()}finally{WINDOW.removeEventListener("message",a)}};WINDOW.addEventListener("message",a)}const i=WINDOW.document.head||WINDOW.document.body;i?i.appendChild(s):DEBUG_BUILD&&logger.error("Not injecting report dialog. No injection point found in HTML")}function _u(){}function yu(e){e()}function Eu(e){const t=getClient();t&&t.captureUserFeedback(e)}class wa{constructor(t){if(!Ps())Ia(Object.assign(Object.assign({environment:t.environment,dsn:t.dsn},t.appVersion&&{release:t.appVersion}),{beforeSend(n){var r;return!((r=n.extra)===null||r===void 0)&&r.log?n:null}}));else if(t.clientSlug!==void 0&&t.environment!==void 0){const n=en();n.clear(),n.setTag("client.slug",t.clientSlug),n.addEventProcessor(r=>new Promise(s=>s(Object.assign(Object.assign(Object.assign({},r),{environment:t.environment}),t.appVersion&&{release:t.appVersion}))))}}write(t){t.err?bn(t.err,{extra:{log:!0}}):t.msg&&As(t.msg,{extra:{log:!0}})}}function It(){return It=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},It.apply(this,arguments)}var ir=typeof window<"u"?window.navigator.userAgent:"no-window",ka=/bot|crawler|spider|crawling/i.test(ir),Oa={"Content-Type":"application/json"},Na=function(){function e(n){var r=this;n===void 0&&(n={});var s=n.method,o=s===void 0?"PUT":s,i=n.url,a=i===void 0?"/log":i,c=n.headers,l=c===void 0?{}:c,f=n.throttleInterval,u=f===void 0?3e3:f,d=n.withCredentials,h=d!==void 0&&d,g=n.onError,Z=n.flushOnClose,S=Z!==void 0&&Z,U=n.writeCondition;this.writeCondition=U===void 0?e.defaultWriteCondition:U,this.records={},this.headers=It({},Oa,l),this.start({method:o,url:a,throttleInterval:u,withCredentials:h,onError:g}),S&&window.fetch!==void 0&&window.addEventListener("beforeunload",function(){r.currentThrottleTimeout&&window.clearTimeout(r.currentThrottleTimeout);var le=r.recordsAsArray();le.length&&window.fetch(a,{method:o,body:JSON.stringify(le),headers:r.headers,credentials:h?"include":"same-origin",mode:"cors",keepalive:!0})},!1)}var t=e.prototype;return t.start=function(n){var r=this,s=n.method,o=n.url,i=n.throttleInterval,a=n.withCredentials,c=n.onError;(function l(){r.currentThrottleTimeout=setTimeout(function(){var f=r.recordsAsArray();if(f.length){var u=new XMLHttpRequest;u.onreadystatechange=function(){u.readyState===XMLHttpRequest.DONE&&(u.status>=400&&(typeof c=="function"?c.call(r,f,u):console.warn("Browser Bunyan: A server log write failed")),r.records={},l())},u.open(s,o);for(var d=0,h=Object.entries(r.headers);d<h.length;d++){var g=h[d];u.setRequestHeader(g[0],g[1])}u.withCredentials=a,u.send(JSON.stringify(f))}else l()},i)})()},t.stop=function(){var n=this;setTimeout(function(){n.currentThrottleTimeout&&(clearTimeout(n.currentThrottleTimeout),n.currentThrottleTimeout=null)},1)},t.write=function(n){n.url=typeof window<"u"&&window.location.href,n.userAgent=ir,this.currentThrottleTimeout&&this.writeCondition(n)&&(this.records[n.msg]?this.records[n.msg].count++:(n.count=1,this.records[n.msg]=n))},t.recordsAsArray=function(){var n=this;return Object.keys(this.records).map(function(r){return n.records[r]})},e.defaultWriteCondition=function(){return window.navigator.onLine&&!ka},e}(),Su=10,bu=20,vu=30,Tu=40,Iu=50,wu=60,wt={trace:10,debug:20,info:30,warn:40,error:50,fatal:60},ar={};function kt(e){return typeof e=="string"?wt[e.toLowerCase()]:e}function Ot(e,t){return Ot=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},Ot(e,t)}function Ra(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Nt(e,t,n){return Nt=Ra()?Reflect.construct:function(r,s,o){var i=[null];i.push.apply(i,s);var a=new(Function.bind.apply(r,i));return o&&Ot(a,o.prototype),a},Nt.apply(null,arguments)}function K(e){if(e==null)return e;if(Array.isArray(e))return e.slice();if(typeof e=="object"){var t={};return Object.keys(e).forEach(function(n){t[n]=e[n]}),t}return e}function Rt(e){return e===void 0?"undefined":e===null?"null":Array.isArray(e)?"[ "+e.map(function(t){return Rt(t)}).join(", ")+" ]":typeof e=="object"?JSON.stringify(e):typeof e=="function"?"[Function: "+e.name+"]":typeof e=="boolean"||typeof e=="number"?e:"'"+e.toString()+"'"}function X(e){if(typeof e!="string"){for(var t=new Array(arguments.length),n=0;n<arguments.length;n++)t[n]=Rt(arguments[n]);return t.join(" ")}for(var r=/%[sdj%]/g,s=1,o=arguments,i=o.length,a=String(e).replace(r,function(l){if(l==="%%")return"%";if(s>=i)return l;switch(l){case"%s":return String(o[s++]);case"%d":return Number(o[s++]);case"%j":try{return JSON.stringify(o[s++])}catch{return"[Circular]"}default:return l}}),c=o[s];s<i;c=o[++s])a+=c===null||typeof c!="object"?" "+c:" "+Rt(c);return a}function xa(e,t){var n=e.split(`
|
|
19
19
|
`);n[0]&&n[0].indexOf("call-stack-error")>=0&&n.shift();var r=n[t],s=null;if(r){var o=/^\s*(at|.*@)\s*(.+)?$/.exec(r);s=Array.isArray(o)&&o[2]?o[2]:r}return s}Object.keys(wt).forEach(function(e){ar[wt[e]]=e});var xt={};function Ct(e,t){if(t){if(xt[t])return;xt[t]=!0}console.error(e+`
|
|
20
20
|
`)}function Ca(e){return xt[e]}function Da(){var e=[];return function(t,n){return n&&typeof n=="object"?e.indexOf(n)!==-1?"[Circular]":(e.push(n),n):n}}var Aa=function(){function e(){}return e.prototype.write=function(t){t.level<30?console.log(t):t.level<40?console.info(t):t.level<50?console.warn(t):console.error(t),t.err&&t.err.stack&&console.error(t.err.stack),t.obj&&console.log(t.obj)},e}(),V=function(){function e(n,r,s){var o,i,a,c,l=this;if(!(this instanceof e))return new e(n,r);if(r!==void 0&&(o=n,n=r,!(o instanceof e)))throw new TypeError("invalid Logger creation: do not pass a second arg");if(!n)throw new TypeError("options (object) is required");if(o){if(n.name)throw new TypeError("invalid options.name: child cannot set logger name")}else if(!n.name)throw new TypeError("options.name (string) is required");if(n.stream&&n.streams)throw new TypeError('cannot mix "streams" and "stream" options');if(n.streams&&!Array.isArray(n.streams))throw new TypeError("invalid options.streams: must be an array");if(n.serializers&&(typeof n.serializers!="object"||Array.isArray(n.serializers)))throw new TypeError("invalid options.serializers: must be an object");if(o&&s){this._level=o._level,this.streams=o.streams,this.serializers=o.serializers,this.src=o.src,i=this.fields={};var f=Object.keys(o.fields);for(c=0;c<f.length;c++)i[a=f[c]]=o.fields[a];var u=Object.keys(n);for(c=0;c<u.length;c++)i[a=u[c]]=n[a]}else{if(o){for(this._level=o._level,this.streams=[],c=0;c<o.streams.length;c++){var d=K(o.streams[c]);this.streams.push(d)}this.serializers=K(o.serializers),this.src=o.src,this.fields=K(o.fields),n.level&&this.level(n.level)}else this._level=Number.POSITIVE_INFINITY,this.streams=[],this.serializers=null,this.src=!1,this.fields={};n.stream?this.addStream({type:"stream",stream:n.stream,level:n.level}):n.streams?n.streams.forEach(function(h){l.addStream(h,n.level)}):o&&n.level?this.level(n.level):o||this.addStream({type:"raw",stream:new Aa,level:n.level}),n.serializers&&this.addSerializers(n.serializers),n.src&&(this.src=!0),delete(i=K(n)).stream,delete i.level,delete i.streams,delete i.serializers,delete i.src,this.serializers&&this._applySerializers(i),Object.keys(i).forEach(function(h){l.fields[h]=i[h]})}}var t=e.prototype;return t.addStream=function(n,r){r===void 0&&(r=30),(n=K(n)).type="raw",n.level=kt(n.level||r),n.level<this._level&&(this._level=n.level),this.streams.push(n),delete this.haveNonRawStreams},t.addSerializers=function(n){var r=this;this.serializers||(this.serializers={}),Object.keys(n).forEach(function(s){var o=n[s];if(typeof o!="function")throw new TypeError(X('invalid serializer for "%s" field: must be a function',s));r.serializers[s]=o})},t.child=function(n,r){return new this.constructor(this,n||{},r)},t.level=function(n){if(n===void 0)return this._level;for(var r=kt(n),s=this.streams.length,o=0;o<s;o++)this.streams[o].level=r;this._level=r},t.levels=function(n,r){if(n===void 0)return this.streams.map(function(l){return l.level});var s;if(typeof n=="number"){if((s=this.streams[n])===void 0)throw new Error("invalid stream index: "+n)}else{for(var o=this.streams.length,i=0;i<o;i++){var a=this.streams[i];if(a.name===n){s=a;break}}if(!s)throw new Error(X('no stream with name "%s"',n))}if(r===void 0)return s.level;var c=kt(r);s.level=c,c<this._level&&(this._level=c)},t._applySerializers=function(n,r){var s=this;Object.keys(this.serializers).forEach(function(o){if(!(n[o]===void 0||r&&r[o]))try{n[o]=s.serializers[o](n[o])}catch(i){Ct(X(`bunyan: ERROR: Exception thrown from the "%s" Bunyan serializer. This should never happen. This is a bugin that serializer function.
|
|
21
21
|
%s`,o,i.stack||i)),n[o]=X('(Error in Bunyan log "%s" serializer broke field. See stderr for details.)',o)}})},t._emit=function(n,r){var s,o;if(this.haveNonRawStreams===void 0){for(this.haveNonRawStreams=!1,s=0;s<this.streams.length;s++)if(!this.streams[s].raw){this.haveNonRawStreams=!0;break}}if(r||this.haveNonRawStreams)try{o=JSON.stringify(n,Da())+`
|
|
@@ -24,4 +24,4 @@ Error:`,s)}}const b=m,Ko=1e3;let qn,mt,_t;function Xo(e){const t="dom";q(t,e),Y(
|
|
|
24
24
|
`+u)}(X(`%s
|
|
25
25
|
%s`,n,l.stack)),i),o=X(`(Exception in JSON.stringify(rec): %j. See stderr for details.)
|
|
26
26
|
`,l.message)}if(r)return o;var a=n.level;for(s=0;s<this.streams.length;s++){var c=this.streams[s];c.level<=a&&c.stream.write(n)}return o},e}();function ue(e){return function(){var t=this;function n(i){var a;i[0]instanceof Error?(r={err:t.serializers&&t.serializers.err?t.serializers.err(i[0]):Pa.err(i[0])},a={err:!0},s=i.length===1?[r.err.message]:Array.prototype.slice.call(i,1)):typeof i[0]!="object"&&i[0]!==null||Array.isArray(i[0])?(r=null,s=Array.prototype.slice.call(i)):(r=i[0],s=i.length===1&&r.err&&r.err instanceof Error?[r.err.message]:Array.prototype.slice.call(i,1));var c=K(t.fields);c.level=e;var l=r?K(r):null;if(l&&(t.serializers&&t._applySerializers(l,a),Object.keys(l).forEach(function(u){c[u]=l[u]})),c.levelName=ar[e],c.msg=s.length?X.apply(t,s):"",c.time||(c.time=new Date),t.src&&!c.src)try{throw new Error("call-stack-error")}catch(u){var f=u.stack?xa(u.stack,2):"";f||Ca("src")||Ct("Unable to determine src line info","src"),c.src=f||""}return c.v=1,c}var r=null,s=arguments,o=null;if(arguments.length===0)return this._level<=e;this._level>e||(o=n(s),this._emit(o))}}function cr(e){var t=e.stack||e.toString();if(e.cause&&typeof e.cause=="function"){var n=e.cause();n&&(t+=`
|
|
27
|
-
Caused by: `+cr(n))}return t}V.prototype.trace=ue(10),V.prototype.debug=ue(20),V.prototype.info=ue(30),V.prototype.warn=ue(40),V.prototype.error=ue(50),V.prototype.fatal=ue(60);var Pa={err:function(e){return e&&e.stack?{message:e.message,name:e.name,stack:cr(e),code:e.code,signal:e.signal}:e}};function Ma(){return
|
|
27
|
+
Caused by: `+cr(n))}return t}V.prototype.trace=ue(10),V.prototype.debug=ue(20),V.prototype.info=ue(30),V.prototype.warn=ue(40),V.prototype.error=ue(50),V.prototype.fatal=ue(60);var Pa={err:function(e){return e&&e.stack?{message:e.message,name:e.name,stack:cr(e),code:e.code,signal:e.signal}:e}};function Ma(){return Nt(V,[].slice.call(arguments))}var ku={levels:{trace:"color: DeepPink",debug:"color: GoldenRod",info:"color: DarkTurquoise",warn:"color: Purple",error:"color: Crimson",fatal:"color: Black"},def:"color: DimGray",msg:"color: SteelBlue",src:"color: DimGray; font-style: italic; font-size: 0.9em"},Ou=null,Nu=null;function La({environment:e,clientSlug:t,url:n,telemetry:r,appVersion:s}={}){const{logging:o}=Object.assign({},r),i=[{level:Pt,stream:new pr({logByLevel:!0})}];return o&&i.push({level:$e,stream:new wa({dsn:"https://509e6f450227e178643e414fe50bd969@o4507853291716608.ingest.us.sentry.io/4508132363141120",environment:e,clientSlug:t,appVersion:s})}),n&&i.push({level:$e,stream:new Na({url:n,method:"POST",throttleInterval:5e3,flushOnClose:!0})}),Ma({name:"embeddable-logger",streams:i,environment:e,clientSlug:t})}}}]);
|