1!function(){try{var t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},e=(new t.Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="c1ceec06-0d2f-4f40-9294-e3ac89eb2cbf",t._sentryDebugIdIdentifier="sentry-dbid-c1ceec06-0d2f-4f40-9294-e3ac89eb2cbf")}catch(t){}}();var _global="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};_global.SENTRY_RELEASE={id:"f4393f9d0c06974d0a53df5c20f9fad286eada8a"},(()=>{"use strict";var t={};function e(t){return t&&t.Math==Math?t:void 0}t.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}();const n="object"==typeof globalThis&&e(globalThis)||"object"==typeof window&&e(window)||"object"==typeof self&&e(self)||"object"==typeof t.g&&e(t.g)||function(){return this}()||{};function r(){return n}function s(t,e,r){const s=r||n,o=s.__SENTRY__=s.__SENTRY__||{};return o[t]||(o[t]=e())}const o="production",i=Object.prototype.toString;function a(t){switch(i.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return m(t,Error)}}function c(t,e){return i.call(t)===`[object ${e}]`}function u(t){return c(t,"ErrorEvent")}function l(t){return c(t,"DOMError")}function p(t){return c(t,"String")}function d(t){return"object"==typeof t&&null!==t&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function h(t){return null===t||d(t)||"object"!=typeof t&&"function"!=typeof t}function f(t){return c(t,"Object")}function g(t){return"undefined"!=typeof Event&&m(t,Event)}function _(t){return Boolean(t&&t.then&&"function"==typeof t.then)}function m(t,e){try{return t instanceof e}catch(t){return!1}}function y(t){return!("object"!=typeof t||null===t||!t.__isVue&&!t._isVue)}const v=r();function E(t,e={}){if(!t)return"<unknown>";try{let n=t;const r=5,s=[];let o=0,i=0;const a=" > ",c=a.length;let u;const l=Array.isArray(e)?e:e.keyAttrs,p=!Array.isArray(e)&&e.maxStringLength||80;for(;n&&o++<r&&(u=b(n,l),!("html"===u||o>1&&i+s.length*c+u.length>=p));)s.push(u),i+=u.length,n=n.parentNode;return s.reverse().join(a)}catch(t){return"<unknown>"}}function b(t,e){const n=t,r=[];let s,o,i,a,c;if(!n||!n.tagName)return"";if(v.HTMLElement&&n instanceof HTMLElement&&n.dataset&&n.dataset.sentryComponent)return n.dataset.sentryComponent;r.push(n.tagName.toLowerCase());const u=e&&e.length?e.filter((t=>n.getAttribute(t))).map((t=>[t,n.getAttribute(t)])):null;if(u&&u.length)u.forEach((t=>{r.push(`[${t[0]}="${t[1]}"]`)}));else if(n.id&&r.push(`#${n.id}`),s=n.className,s&&p(s))for(o=s.split(/\s+/),c=0;c<o.length;c++)r.push(`.${o[c]}`);const l=["aria-label","type","name","title","alt"];for(c=0;c<l.length;c++)i=l[c],a=n.getAttribute(i),a&&r.push(`[${i}="${a}"]`);return r.join("")}const S="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,x=["debug","info","warn","error","log","assert","trace"],w={};function k(t){if(!("console"in n))return t();const e=n.console,r={},s=Object.keys(w);s.forEach((t=>{const n=w[t];r[t]=e[t],e[t]=n}));try{return t()}finally{s.forEach((t=>{e[t]=r[t]}))}}const T=function(){let t=!1;const e={enable:()=>{t=!0},disable:()=>{t=!1},isEnabled:()=>t};return S?x.forEach((r=>{e[r]=(...e)=>{t&&k((()=>{n.console[r](`Sentry Logger [${r}]:`,...e)}))}})):x.forEach((t=>{e[t]=()=>{}})),e}();function O(t,e=0){return"string"!=typeof t||0===e||t.length<=e?t:`${t.slice(0,e)}...`}function $(t,e){if(!Array.isArray(t))return"";const n=[];for(let e=0;e<t.length;e++){const r=t[e];try{y(r)?n.push("[VueViewModel]"):n.push(String(r))}catch(t){n.push("[value cannot be serialized]")}}return n.join(e)}function D(t,e,n=!1){return!!p(t)&&(c(e,"RegExp")?e.test(t):!!p(e)&&(n?t===e:t.includes(e)))}function I(t,e=[],n=!1){return e.some((e=>D(t,e,n)))}function C(t,e,n){if(!(e in t))return;const r=t[e],s=n(r);"function"==typeof s&&j(s,r),t[e]=s}function N(t,e,n){try{Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}catch(n){S&&T.log(`Failed to add non-enumerable property "${e}" to object`,t)}}function j(t,e){try{const n=e.prototype||{};t.prototype=e.prototype=n,N(t,"__sentry_original__",e)}catch(t){}}function R(t){return t.__sentry_original__}function P(t){if(a(t))return{message:t.message,name:t.name,stack:t.stack,...L(t)};if(g(t)){const e={type:t.type,target:M(t.target),currentTarget:M(t.currentTarget),...L(t)};return"undefined"!=typeof CustomEvent&&m(t,CustomEvent)&&(e.detail=t.detail),e}return t}function M(t){try{return e=t,"undefined"!=typeof Element&&m(e,Element)?E(t):Object.prototype.toString.call(t)}catch(t){return"<unknown>"}var e}function L(t){if("object"==typeof t&&null!==t){const e={};for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}return{}}function A(t){return U(t,new Map)}function U(t,e){if(function(t){if(!f(t))return!1;try{const e=Object.getPrototypeOf(t).constructor.name;return!e||"Object"===e}catch(t){return!0}}(t)){const n=e.get(t);if(void 0!==n)return n;const r={};e.set(t,r);for(const n of Object.keys(t))void 0!==t[n]&&(r[n]=U(t[n],e));return r}if(Array.isArray(t)){const n=e.get(t);if(void 0!==n)return n;const r=[];return e.set(t,r),t.forEach((t=>{r.push(U(t,e))})),r}return t}function q(){const t=n,e=t.crypto||t.msCrypto;let r=()=>16*Math.random();try{if(e&&e.randomUUID)return e.randomUUID().replace(/-/g,"");e&&e.getRandomValues&&(r=()=>{const t=new Uint8Array(1);return e.getRandomValues(t),t[0]})}catch(t){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(t=>(t^(15&r())>>t/4).toString(16)))}function B(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0}function H(t){const{message:e,event_id:n}=t;if(e)return e;const r=B(t);return r?r.type&&r.value?`${r.type}: ${r.value}
1`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function Y(t,e,n){const r=t.exception=t.exception||{},s=r.values=r.values||[],o=s[0]=s[0]||{};o.value||(o.value=e||""),o.type||(o.type=n||"Error")}function F(t,e){const n=B(t);if(!n)return;const r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...e},e&&"data"in e){const t={...r&&r.data,...e.data};n.mechanism.data=t}}function z(t){if(t&&t.__sentry_captured__)return!0;try{N(t,"__sentry_captured__",!0)}catch(t){}return!1}function G(t){return Array.isArray(t)?t:[t]}function J(){return Date.now()/1e3}const W=function(){const{performance:t}=n;if(!t||!t.now)return J;const e=Date.now()-t.now(),r=null==t.timeOrigin?e:t.timeOrigin;return()=>(r+t.now())/1e3}();let V;(()=>{const{performance:t}=n;if(!t||!t.now)return void(V="none");const e=36e5,r=t.now(),s=Date.now(),o=t.timeOrigin?Math.abs(t.timeOrigin+r-s):e,i=o<e,a=t.timing&&t.timing.navigationStart,c="number"==typeof a?Math.abs(a+r-s):e;i||c<e?o<=c?(V="timeOrigin",t.timeOrigin):V="navigationStart":V="dateNow"})();const K="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;var X;function Q(t){return new tt((e=>{e(t)}))}function Z(t){return new tt(((e,n)=>{n(t)}))}!function(t){t[t.PENDING=0]="PENDING";t[t.RESOLVED=1]="RESOLVED";t[t.REJECTED=2]="REJECTED"}(X||(X={}));class tt{constructor(t){tt.prototype.__init.call(this),tt.prototype.__init2.call(this),tt.prototype.__init3.call(this),tt.prototype.__init4.call(this),this._state=X.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(t){this._reject(t)}}then(t,e){return new tt(((n,r)=>{this._handlers.push([!1,e=>{if(t)try{n(t(e))}catch(t){r(t)}else n(e)},t=>{if(e)try{n(e(t))}catch(t){r(t)}else r(t)}]),this._executeHandlers()}))}catch(t){return this.then((t=>t),t)}finally(t){return new tt(((e,n)=>{let r,s;return this.then((e=>{s=!1,r=e,t&&t()}),(e=>{s=!0,r=e,t&&t()})).then((()=>{s?n(r):e(r)}))}))}__init(){this._resolve=t=>{this._setResult(X.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(X.REJECTED,t)}}__init3(){this._setResult=(t,e)=>{this._state===X.PENDING&&(_(e)?e.then(this._resolve,this._reject):(this._state=t,this._value=e,this._executeHandlers()))}}__init4(){this._executeHandlers=()=>{if(this._state===X.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach((t=>{t[0]||(this._state===X.RESOLVED&&t[1](this._value),this._state===X.REJECTED&&t[2](this._value),t[0]=!0)}))}}}function et(){return s("globalEventProcessors",(()=>[]))}function nt(t){et().push(t)}function rt(t,e,n,r=0){return new tt(((s,o)=>{const i=t[r];if(null===e||"function"!=typeof i)s(e);else{const a=i({...e},n);K&&i.id&&null===a&&T.log(`Event processor "${i.id}" dropped event`),_(a)?a.then((e=>rt(t,e,n,r+1).then(s))).then(null,o):rt(t,a,n,r+1).then(s).then(null,o)}}))}function st(t){const e=W(),n={sid:q(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(t){return A({sid:`${t.sid}`,init:t.init,started:new Date(1e3*t.started).toISOString(),timestamp:new Date(1e3*t.timestamp).toISOString(),status:t.status,errors:t.errors,did:"number"==typeof t.did||"string"==typeof t.did?`${t.did}`:void 0,duration:t.duration,abnormal_mechanism:t.abnormal_mechanism,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}})}(n)};return t&&ot(n,t),n}function ot(t,e={}){if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),t.did||e.did||(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||W(),e.abnormal_mechanism&&(t.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=32===e.sid.length?e.sid:q()),void 0!==e.init&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),"number"==typeof e.started&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if("number"==typeof e.duration)t.duration=e.duration;else{const e=t.timestamp-t.started;t.duration=e>=0?e:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),"number"==typeof e.errors&&(t.errors=e.errors),e.status&&(t.status=e.status)}function it(t,e){let n={};e?n={status:e}:"ok"===t.status&&(n={status:"exited"}),ot(t,n)}function at(t){return t.transaction}function ct(t){const{spanId:e,traceId:n}=t.spanContext(),{data:r,op:s,parent_span_id:o,status:i,tags:a,origin:c}=ut(t);return A({data:r,op:s,parent_span_id:o,span_id:e,status:i,tags:a,trace_id:n,origin:c})}function ut(t){return function(t){return"function"==typeof t.getSpanJSON}(t)?t.getSpanJSON():"function"==typeof t.toJSON?t.toJSON():{}}function lt(t){const{traceFlags:e}=t.spanContext();return Boolean(1&e)}function pt(t,e,n){const r=e.getOptions(),{publicKey:s}=e.getDsn()||{},{segment:i}=n&&n.getUser()||{},a=A({environment:r.environment||o,release:r.release,user_segment:i,public_key:s,trace_id:t});return e.emit&&e.emit("createDsc",a),a}function dt(t){const e=Jt();if(!e)return{};const n=pt(ut(t).trace_id||"",e,Wt()),r=at(t);if(!r)return n;const s=r&&r._frozenDynamicSamplingContext;if(s)return s;const{sampleRate:o,source:i}=r.metadata;null!=o&&(n.sample_rate=`${o}`);const a=ut(r);return i&&"url"!==i&&(n.transaction=a.description),n.sampled=String(lt(r)),e.emit&&e.emit("createDsc",n),n}function ht(t,e){const{fingerprint:n,span:r,breadcrumbs:s,sdkProcessingMetadata:o}=e;!function(t,e){const{extra:n,tags:r,user:s,contexts:o,level:i,transactionName:a}=e,c=A(n);c&&Object.keys(c).length&&(t.extra={...c,...t.extra});const u=A(r);u&&Object.keys(u).length&&(t.tags={...u,...t.tags});const l=A(s);l&&Object.keys(l).length&&(t.user={...l,...t.user});const p=A(o);p&&Object.keys(p).length&&(t.contexts={...p,...t.contexts});i&&(t.level=i);a&&(t.transaction=a)}(t,e),r&&function(t,e){t.contexts={trace:ct(e),...t.contexts};const n=at(e);
1if(n){t.sdkProcessingMetadata={dynamicSamplingContext:dt(e),...t.sdkProcessingMetadata};const r=ut(n).description;r&&(t.tags={transaction:r,...t.tags})}}(t,r),function(t,e){t.fingerprint=t.fingerprint?G(t.fingerprint):[],e&&(t.fingerprint=t.fingerprint.concat(e));t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}(t,n),function(t,e){const n=[...t.breadcrumbs||[],...e];t.breadcrumbs=n.length?n:void 0}(t,s),function(t,e){t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...e}}(t,o)}function ft(t,e){const{extra:n,tags:r,user:s,contexts:o,level:i,sdkProcessingMetadata:a,breadcrumbs:c,fingerprint:u,eventProcessors:l,attachments:p,propagationContext:d,transactionName:h,span:f}=e;gt(t,"extra",n),gt(t,"tags",r),gt(t,"user",s),gt(t,"contexts",o),gt(t,"sdkProcessingMetadata",a),i&&(t.level=i),h&&(t.transactionName=h),f&&(t.span=f),c.length&&(t.breadcrumbs=[...t.breadcrumbs,...c]),u.length&&(t.fingerprint=[...t.fingerprint,...u]),l.length&&(t.eventProcessors=[...t.eventProcessors,...l]),p.length&&(t.attachments=[...t.attachments,...p]),t.propagationContext={...t.propagationContext,...d}}function gt(t,e,n){if(n&&Object.keys(n).length){t[e]={...t[e]};for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[e][r]=n[r])}}let _t;class mt{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=yt()}static clone(t){return t?t.clone():new mt}clone(){const t=new mt;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},t._user=this._user,t._level=this._level,t._span=this._span,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}setClient(t){this._client=t}getClient(){return this._client}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,segment:void 0,username:void 0},this._session&&ot(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,e){return this._tags={...this._tags,[t]:e},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,e){return this._extra={...this._extra,[t]:e},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,e){return null===e?delete this._contexts[t]:this._contexts[t]=e,this._notifyScopeListeners(),this}setSpan(t){return this._span=t,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const t=this._span;return t&&t.transaction}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const e="function"==typeof t?t(this):t;if(e instanceof mt){const t=e.getScopeData();this._tags={...this._tags,...t.tags},this._extra={...this._extra,...t.extra},this._contexts={...this._contexts,...t.contexts},t.user&&Object.keys(t.user).length&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint.length&&(this._fingerprint=t.fingerprint),e.getRequestSession()&&(this._requestSession=e.getRequestSession()),t.propagationContext&&(this._propagationContext=t.propagationContext)}else if(f(e)){const e=t;this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession),e.propagationContext&&(this._propagationContext=e.propagationContext)}return 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._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=yt(),this}addBreadcrumb(t,e){const n="number"==typeof e?e:100;if(n<=0)return this;const r={timestamp:J(),...t},s=this._breadcrumbs;return s.push(r),this._breadcrumbs=s.length>n?s.slice(-n):s,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}
1getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){const{_breadcrumbs:t,_attachments:e,_contexts:n,_tags:r,_extra:s,_user:o,_level:i,_fingerprint:a,_eventProcessors:c,_propagationContext:u,_sdkProcessingMetadata:l,_transactionName:p,_span:d}=this;return{breadcrumbs:t,attachments:e,contexts:n,tags:r,extra:s,user:o,level:i,fingerprint:a||[],eventProcessors:c,propagationContext:u,sdkProcessingMetadata:l,transactionName:p,span:d}}applyToEvent(t,e={},n=[]){ht(t,this.getScopeData());return rt([...n,...et(),...this._eventProcessors],t,e)}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,e){const n=e&&e.event_id?e.event_id:q();if(!this._client)return T.warn("No client configured on scope - will not capture exception!"),n;const r=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:r,...e,event_id:n},this),n}captureMessage(t,e,n){const r=n&&n.event_id?n.event_id:q();if(!this._client)return T.warn("No client configured on scope - will not capture message!"),r;const s=new Error(t);return this._client.captureMessage(t,e,{originalException:t,syntheticException:s,...n,event_id:r},this),r}captureEvent(t,e){const n=e&&e.event_id?e.event_id:q();return this._client?(this._client.captureEvent(t,{...e,event_id:n},this),n):(T.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((t=>{t(this)})),this._notifyingListeners=!1)}}function yt(){return{traceId:q(),spanId:q().substring(16)}}const vt="7.120.3",Et=parseFloat(vt),bt=100;class St{constructor(t,e,n,r=Et){let s,o;this._version=r,e?s=e:(s=new mt,s.setClient(t)),n?o=n:(o=new mt,o.setClient(t)),this._stack=[{scope:s}],t&&this.bindClient(t),this._isolationScope=o}isOlderThan(t){return this._version<t}bindClient(t){const e=this.getStackTop();e.client=t,e.scope.setClient(t),t&&t.setupIntegrations&&t.setupIntegrations()}pushScope(){const t=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:t}),t}popScope(){return!(this.getStack().length<=1)&&!!this.getStack().pop()}withScope(t){const e=this.pushScope();let n;try{n=t(e)}catch(t){throw this.popScope(),t}return _(n)?n.then((t=>(this.popScope(),t)),(t=>{throw this.popScope(),t})):(this.popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(t,e){const n=this._lastEventId=e&&e.event_id?e.event_id:q(),r=new Error("Sentry syntheticException");return this.getScope().captureException(t,{originalException:t,syntheticException:r,...e,event_id:n}),n}captureMessage(t,e,n){const r=this._lastEventId=n&&n.event_id?n.event_id:q(),s=new Error(t);return this.getScope().captureMessage(t,e,{originalException:t,syntheticException:s,...n,event_id:r}),r}captureEvent(t,e){const n=e&&e.event_id?e.event_id:q();return t.type||(this._lastEventId=n),this.getScope().captureEvent(t,{...e,event_id:n}),n}lastEventId(){return this._lastEventId}addBreadcrumb(t,e){const{scope:n,client:r}=this.getStackTop();if(!r)return;const{beforeBreadcrumb:s=null,maxBreadcrumbs:o=bt}=r.getOptions&&r.getOptions()||{};if(o<=0)return;const i={timestamp:J(),...t},a=s?k((()=>s(i,e))):i;null!==a&&(r.emit&&r.emit("beforeAddBreadcrumb",a,e),n.addBreadcrumb(a,o))}setUser(t){this.getScope().setUser(t),this.getIsolationScope().setUser(t)}setTags(t){this.getScope().setTags(t),this.getIsolationScope().setTags(t)}setExtras(t){this.getScope().setExtras(t),this.getIsolationScope().setExtras(t)}setTag(t,e){this.getScope().setTag(t,e),this.getIsolationScope().setTag(t,e)}setExtra(t,e){this.getScope().setExtra(t,e),this.getIsolationScope().setExtra(t,e)}
1setContext(t,e){this.getScope().setContext(t,e),this.getIsolationScope().setContext(t,e)}configureScope(t){const{scope:e,client:n}=this.getStackTop();n&&t(e)}run(t){const e=wt(this);try{t(this)}finally{wt(e)}}getIntegration(t){const e=this.getClient();if(!e)return null;try{return e.getIntegration(t)}catch(e){return K&&T.warn(`Cannot retrieve integration ${t.id} from the current Hub`),null}}startTransaction(t,e){const n=this._callExtensionMethod("startTransaction",t,e);if(K&&!n){this.getClient()?T.warn("Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':\nSentry.addTracingExtensions();\nSentry.init({...});\n"):T.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")}return n}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(t=!1){if(t)return this.endSession();this._sendSessionUpdate()}endSession(){const t=this.getStackTop().scope,e=t.getSession();e&&it(e),this._sendSessionUpdate(),t.setSession()}startSession(t){const{scope:e,client:r}=this.getStackTop(),{release:s,environment:i=o}=r&&r.getOptions()||{},{userAgent:a}=n.navigator||{},c=st({release:s,environment:i,user:e.getUser(),...a&&{userAgent:a},...t}),u=e.getSession&&e.getSession();return u&&"ok"===u.status&&ot(u,{status:"exited"}),this.endSession(),e.setSession(c),c}shouldSendDefaultPii(){const t=this.getClient(),e=t&&t.getOptions();return Boolean(e&&e.sendDefaultPii)}_sendSessionUpdate(){const{scope:t,client:e}=this.getStackTop(),n=t.getSession();n&&e&&e.captureSession&&e.captureSession(n)}_callExtensionMethod(t,...e){const n=xt().__SENTRY__;if(n&&n.extensions&&"function"==typeof n.extensions[t])return n.extensions[t].apply(this,e);K&&T.warn(`Extension method ${t} couldn't be found, doing nothing.`)}}function xt(){return n.__SENTRY__=n.__SENTRY__||{extensions:{},hub:void 0},n}function wt(t){const e=xt(),n=Dt(e);return It(e,t),n}function kt(){const t=xt();if(t.__SENTRY__&&t.__SENTRY__.acs){const e=t.__SENTRY__.acs.getCurrentHub();if(e)return e}return Ot(t)}function Tt(){return kt().getIsolationScope()}function Ot(t=xt()){return $t(t)&&!Dt(t).isOlderThan(Et)||It(t,new St),Dt(t)}function $t(t){return!!(t&&t.__SENTRY__&&t.__SENTRY__.hub)}function Dt(t){return s("hub",(()=>new St),t)}function It(t,e){if(!t)return!1;return(t.__SENTRY__=t.__SENTRY__||{}).hub=e,!0}const Ct=/\(error: (.*)\)/,Nt=/captureMessage|captureException/;function jt(...t){const e=t.sort(((t,e)=>t[0]-e[0])).map((t=>t[1]));return(t,n=0)=>{const r=[],s=t.split("\n");for(let t=n;t<s.length;t++){const n=s[t];if(n.length>1024)continue;const o=Ct.test(n)?n.replace(Ct,"$1"):n;if(!o.match(/\S*Error: /)){for(const t of e){const e=t(o);if(e){r.push(e);break}}if(r.length>=50)break}}return function(t){if(!t.length)return[];const e=Array.from(t);/sentryWrapped/.test(e[e.length-1].function||"")&&e.pop();e.reverse(),Nt.test(e[e.length-1].function||"")&&(e.pop(),Nt.test(e[e.length-1].function||"")&&e.pop());return e.slice(0,50).map((t=>({...t,filename:t.filename||e[e.length-1].filename,function:t.function||"?"})))}(r)}}const Rt="<anonymous>";function Pt(t){try{return t&&"function"==typeof t&&t.name||Rt}catch(t){return Rt}}function Mt(t,e=100,n=1/0){try{return At("",t,e,n)}catch(t){return{ERROR:`**non-serializable** (${t})`}}}function Lt(t,e=3,n=102400){const r=Mt(t,e);return s=r,function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(s))>n?Lt(t,e-1,n):r;var s}function At(e,n,r=1/0,s=1/0,o=function(){const t="function"==typeof WeakSet,e=t?new WeakSet:[];return[function(n){if(t)return!!e.has(n)||(e.add(n),!1);for(let t=0;t<e.length;t++)if(e[t]===n)return!0;return e.push(n),!1},function(n){if(t)e.delete(n);else for(let t=0;t<e.length;t++)if(e[t]===n){e.splice(t,1);break}}]}()){const[i,a]=o;if(null==n||["number","boolean","string"].includes(typeof n)&&("number"!=typeof(c=n)||c==c))return n;var c;const u=function(e,n){try{if("domain"===e&&n&&"object"==typeof n&&n._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if(void 0!==t.g&&n===t.g)return"[Global]";if("undefined"!=typeof window&&n===window)return"[Window]";if("undefined"!=typeof document&&n===document)return"[Document]";if(y(n))return"[VueViewModel]";if(function(t){return f(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}(n))return"[SyntheticEvent]";if("number"==typeof n&&n!=n)return"[NaN]";if("function"==typeof n)return`[Function: ${Pt(n)}]`;if("symbol"==typeof n)return`[${String(n)}]`;if("bigint"==typeof n)return`[BigInt: ${String(n)}]`;const r=function(t){const e=Object.getPrototypeOf(t);return e?e.constructor.name:"null prototype"}(n);return/^HTML(\w*)Element$/.test(r)?`[HTMLElement: ${r}]`:`[object ${r}]`}catch(t){return`**non-serializable** (${t})`}}(e,n);if(!u.startsWith("[object "))return u;if(n.__sentry_skip_normalization__)return n;const l="number"==typeof n.__sentry_override_normalization_depth__?n.__sentry_override_normalization_depth__:r;if(0===l)return u.replace("object ","");if(i(n))return"[Circular ~]";const p=n;if(p&&"function"==typeof p.toJSON)try{return At("",p.toJSON(),l-1,s,o)}catch(t){}const d=Array.isArray(n)?[]:{};let h=0;const g=P(n);for(const t in g){if(!Object.prototype.hasOwnProperty.call(g,t))continue;if(h>=s){d[t]="[MaxProperties ~]";break}const e=g[t];d[t]=At(t,e,l-1,s,o),h++}return a(n),d}function Ut(t,e,r,s,i,a){const{normalizeDepth:c=3,normalizeMaxBreadth:u=1e3}=t,l={...e,event_id:e.event_id||r.event_id||q(),timestamp:e.timestamp||J()},p=r.integrations||t.integrations.map((t=>t.name));!function(t,e){const{environment:n,release:r,dist:s,maxValueLength:i=250}=e;"environment"in t||(t.environment="environment"in e?n:o);void 0===t.release&&void 0!==r&&(t.release=r);void 0===t.dist&&void 0!==s&&(t.dist=s);t.message&&(t.message=O(t.message,i));const a=t.exception&&t.exception.values&&t.exception.values[0];
1a&&a.value&&(a.value=O(a.value,i));const c=t.request;c&&c.url&&(c.url=O(c.url,i))}(l,t),function(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}(l,p),void 0===e.type&&function(t,e){const r=n._sentryDebugIds;if(!r)return;let s;const o=qt.get(e);o?s=o:(s=new Map,qt.set(e,s));const i=Object.keys(r).reduce(((t,n)=>{let o;const i=s.get(n);i?o=i:(o=e(n),s.set(n,o));for(let e=o.length-1;e>=0;e--){const s=o[e];if(s.filename){t[s.filename]=r[n];break}}return t}),{});try{t.exception.values.forEach((t=>{t.stacktrace.frames.forEach((t=>{t.filename&&(t.debug_id=i[t.filename])}))}))}catch(t){}}(l,t.stackParser);const d=function(t,e){if(!e)return t;const n=t?t.clone():new mt;return n.update(e),n}(s,r.captureContext);r.mechanism&&F(l,r.mechanism);const h=i&&i.getEventProcessors?i.getEventProcessors():[],f=(_t||(_t=new mt),_t).getScopeData();if(a){ft(f,a.getScopeData())}if(d){ft(f,d.getScopeData())}const g=[...r.attachments||[],...f.attachments];g.length&&(r.attachments=g),ht(l,f);return rt([...h,...et(),...f.eventProcessors],l,r).then((t=>(t&&function(t){const e={};try{t.exception.values.forEach((t=>{t.stacktrace.frames.forEach((t=>{t.debug_id&&(t.abs_path?e[t.abs_path]=t.debug_id:t.filename&&(e[t.filename]=t.debug_id),delete t.debug_id)}))}))}catch(t){}if(0===Object.keys(e).length)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];const n=t.debug_meta.images;Object.keys(e).forEach((t=>{n.push({type:"sourcemap",code_file:t,debug_id:e[t]})}))}(t),"number"==typeof c&&c>0?function(t,e,n){if(!t)return null;const r={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map((t=>
1({...t,...t.data&&{data:Mt(t.data,e,n)}})))},...t.user&&{user:Mt(t.user,e,n)},...t.contexts&&{contexts:Mt(t.contexts,e,n)},...t.extra&&{extra:Mt(t.extra,e,n)}};t.contexts&&t.contexts.trace&&r.contexts&&(r.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(r.contexts.trace.data=Mt(t.contexts.trace.data,e,n)));t.spans&&(r.spans=t.spans.map((t=>{const r=ut(t).data;return r&&(t.data=Mt(r,e,n)),t})));return r}(t,c,u):t)))}const qt=new WeakMap;function Bt(t){if(t)return function(t){return t instanceof mt||"function"==typeof t}(t)||function(t){return Object.keys(t).some((t=>Ht.includes(t)))}(t)?{captureContext:t}:t}const Ht=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function Yt(t,e){return kt().captureException(t,Bt(e))}function Ft(t,e){return kt().captureEvent(t,e)}function zt(t,e){kt().addBreadcrumb(t,e)}function Gt(...t){const e=kt();if(2===t.length){const[n,r]=t;return n?e.withScope((()=>(e.getStackTop().scope=n,r(n)))):e.withScope(r)}return e.withScope(t[0])}function Jt(){return kt().getClient()}function Wt(){return kt().getScope()}function Vt(t){const e=Jt(),r=Tt(),s=Wt(),{release:i,environment:a=o}=e&&e.getOptions()||{},{userAgent:c}=n.navigator||{},u=st({release:i,environment:a,user:s.getUser()||r.getUser(),...c&&{userAgent:c},...t}),l=r.getSession();return l&&"ok"===l.status&&ot(l,{status:"exited"}),Kt(),r.setSession(u),s.setSession(u),u}function Kt(){const t=Tt(),e=Wt(),n=e.getSession()||t.getSession();n&&it(n),Xt(),t.setSession(),e.setSession()}function Xt(){const t=Tt(),e=Wt(),n=Jt(),r=e.getSession()||t.getSession();r&&n&&n.captureSession&&n.captureSession(r)}function Qt(t=!1){t?Kt():Xt()}const Zt=[];function te(t){const e=t.defaultIntegrations||[],n=t.integrations;let r;e.forEach((t=>{t.isDefaultInstance=!0})),r=Array.isArray(n)?[...e,...n]:"function"==typeof n?G(n(e)):e;const s=function(t){const e={};return t.forEach((t=>{const{name:n}=t,r=e[n];r&&!r.isDefaultInstance&&t.isDefaultInstance||(e[n]=t)})),Object.keys(e).map((t=>e[t]))}(r),o=function(t,e){for(let n=0;n<t.length;n++)if(!0===e(t[n]))return n;return-1}(s,(t=>"Debug"===t.name));if(-1!==o){const[t]=s.splice(o,1);s.push(t)}return s}function ee(t,e){for(const n of e)n&&n.afterAllSetup&&n.afterAllSetup(t)}function ne(t,e,n){if(n[e.name])K&&T.log(`Integration skipped because it was already installed: ${e.name}`);else{if(n[e.name]=e,-1===Zt.indexOf(e.name)&&(e.setupOnce(nt,kt),Zt.push(e.name)),e.setup&&"function"==typeof e.setup&&e.setup(t),t.on&&"function"==typeof e.preprocessEvent){const n=e.preprocessEvent.bind(e);t.on("preprocessEvent",((e,r)=>n(e,r,t)))}if(t.addEventProcessor&&"function"==typeof e.processEvent){const n=e.processEvent.bind(e),r=Object.assign(((e,r)=>n(e,r,t)),{id:e.name});t.addEventProcessor(r)}K&&T.log(`Integration installed: ${e.name}`)}}function re(t,e){return Object.assign((function(...t){return e(...t)}),{id:t})}const se=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/],oe=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/],ie="InboundFilters",ae=(t={})=>({name:ie,setupOnce(){},processEvent(e,n,r){const s=r.getOptions(),o=function(t={},e={}){return{allowUrls:[...t.allowUrls||[],...e.allowUrls||[]],denyUrls:[...t.denyUrls||[],...e.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...e.ignoreErrors||[],...t.disableErrorDefaults?[]:se],ignoreTransactions:[...t.ignoreTransactions||[],...e.ignoreTransactions||[],...t.disableTransactionDefaults?[]:oe],ignoreInternal:void 0===t.ignoreInternal||t.ignoreInternal}}(t,s);return function(t,e){if(e.ignoreInternal&&function(t){try{return"SentryError"===t.exception.values[0].type}catch(t){}return!1}(t))return K&&T.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${H(t)}`),!0;if(function(t,e){if(t.type||!e||!e.length)return!1;return function(t){const e=[];t.message&&e.push(t.message);let n;try{n=t.exception.values[t.exception.values.length-1]}catch(t){}n&&n.value&&(e.push(n.value),n.type&&e.push(`${n.type}: ${n.value}`));K&&0===e.length&&T.error(`Could not extract message for event ${H(t)}`);return e}(t).some((t=>I(t,e)))}(t,e.ignoreErrors))return K&&T.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${H(t)}`),!0;if(function(t,e){if("transaction"!==t.type||!e||!e.length)return!1;const n=t.transaction;return!!n&&I(n,e)}(t,e.ignoreTransactions))return K&&T.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${H(t)}`),!0;if(function(t,e){if(!e||!e.length)return!1;const n=ce(t);return!!n&&I(n,e)}(t,e.denyUrls))return K&&T.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${H(t)}.\nUrl: ${ce(t)}`),!0;if(!function(t,e){if(!e||!e.length)return!0;const n=ce(t);return!n||I(n,e)}(t,e.allowUrls))return K&&T.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${H(t)}.\nUrl: ${ce(t)}`),!0;return!1}(e,o)?null:e}});re(ie,ae);function ce(t){try{let e;try{e=t.exception.values[0].stacktrace.frames}catch(t){}return e?function(t=[]){for(let e=t.length-1;e>=0;e--){const n=t[e];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(e):null}catch(e){return K&&T.error(`Cannot extract url for event ${H(t)}`),null}}let ue;const le="FunctionToString",pe=new WeakMap,de=()=>({name:le,setupOnce(){ue=Function.prototype.toString;try{Function.prototype.toString=function(...t){const e=R(this),n=pe.has(Jt())&&void 0!==e?e:this;return ue.apply(n,t)}}catch(t){}},setup(t){pe.set(t,!0)}});re(le,de);function he(t,e){!0===e.debug&&(K?T.enable():k((()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})));Wt().update(e.initialScope);const n=new t(e);!function(t){const e=kt().getStackTop();
1e.client=t,e.scope.setClient(t)}(n),function(t){t.init?t.init():t.setupIntegrations&&t.setupIntegrations()}(n)}const fe=r();function ge(){if(!("fetch"in fe))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(t){return!1}}function _e(t){return t&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}const me=r();const ye={},ve={};function Ee(t,e){ye[t]=ye[t]||[],ye[t].push(e)}function be(t,e){ve[t]||(e(),ve[t]=!0)}function Se(t,e){const n=t&&ye[t];if(n)for(const r of n)try{r(e)}catch(e){S&&T.error(`Error while triggering instrumentation handler.\nType: ${t}\nName: ${Pt(r)}\nError:`,e)}}const xe=n;let we;function ke(t){const e="history";Ee(e,t),be(e,Te)}function Te(){if(!function(){const t=me.chrome,e=t&&t.app&&t.app.runtime,n="history"in me&&!!me.history.pushState&&!!me.history.replaceState;return!e&&n}())return;const t=xe.onpopstate;function e(t){return function(...e){const n=e.length>2?e[2]:void 0;if(n){const t=we,e=String(n);we=e;Se("history",{from:t,to:e})}return t.apply(this,e)}}xe.onpopstate=function(...e){const n=xe.location.href,r=we;we=n;if(Se("history",{from:r,to:n}),t)try{return t.apply(this,e)}catch(t){}},C(xe.history,"pushState",e),C(xe.history,"replaceState",e)}const Oe=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function $e(t,e=!1){const{host:n,path:r,pass:s,port:o,projectId:i,protocol:a,publicKey:c}=t;return`${a}://${c}${e&&s?`:${s}`:""}@${n}${o?`:${o}`:""}/${r?`${r}/`:r}${i}`}function De(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function Ie(t){const e="string"==typeof t?function(t){const e=Oe.exec(t);if(!e)return void k((()=>{console.error(`Invalid Sentry Dsn: ${t}`)}));const[n,r,s="",o,i="",a]=e.slice(1);let c="",u=a;const l=u.split("/");if(l.length>1&&(c=l.slice(0,-1).join("/"),u=l.pop()),u){const t=u.match(/^\d+/);t&&(u=t[0])}return De({host:o,pass:s,path:c,projectId:u,port:i,protocol:n,publicKey:r})}(t):De(t);if(e&&function(t){if(!S)return!0;const{port:e,projectId:n,protocol:r}=t;return!(["protocol","publicKey","host","projectId"].find((e=>!t[e]&&(T.error(`Invalid Sentry Dsn: ${e} missing`),!0)))||(n.match(/^\d+$/)?function(t){return"http"===t||"https"===t}(r)?e&&isNaN(parseInt(e,10))&&(T.error(`Invalid Sentry Dsn: Invalid port ${e}`),1):(T.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),1):(T.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),1)))}(e))return e}function Ce(t,e=[]){return[t,e]}function Ne(t,e){const[n,r]=t;return[n,[...r,e]]}function je(t,e){const n=t[1];for(const t of n){if(e(t,t[0].type))return!0}return!1}function Re(t,e){return(e||new TextEncoder).encode(t)}function Pe(t,e){const[n,r]=t;let s=JSON.stringify(n);function o(t){"string"==typeof s?s="string"==typeof t?s+t:[Re(s,e),t]:s.push("string"==typeof t?Re(t,e):t)}for(const t of r){const[e,n]=t;if(o(`\n${JSON.stringify(e)}\n`),"string"==typeof n||n instanceof Uint8Array)o(n);else{let t;try{t=JSON.stringify(n)}catch(e){t=JSON.stringify(Mt(n))}o(t)}}return"string"==typeof s?s:function(t){const e=t.reduce(((t,e)=>t+e.length),0),n=new Uint8Array(e);let r=0;for(const e of t)n.set(e,r),r+=e.length;return n}(s)}function Me(t,e){const n="string"==typeof t.data?Re(t.data,e):t.data;return[A({type:"attachment",length:n.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType}),n]}const Le={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function Ae(t){return Le[t]}function Ue(t){if(!t||!t.sdk)return;const{name:e,version:n}=t.sdk;return{name:e,version:n}}class qe extends Error{constructor(t,e="warn"){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=e}}function Be(t){const e=t.protocol?`${t.protocol}:`:"",n=t.port?`:${t.port}`:"";return`${e}//${t.host}${n}${t.path?`/${t.path}`:""}/api/`}function He(t,e){return n={sentry_key:t.publicKey,sentry_version:"7",...e&&{sentry_client:`${e.name}/${e.version}`}},Object.keys(n).map((t=>`${encodeURIComponent(t)}=${encodeURIComponent(n[t])}`)).join("&");var n}function Ye(t,e={}){const n="string"==typeof e?e:e.tunnel,r="string"!=typeof e&&e._metadata?e._metadata.sdk:void 0;return n||`${function(t){return`${Be(t)}${t.projectId}/envelope/`}(t)}?${He(t,r)}`}function Fe(t,e,n,r){const s=Ue(n),o=t.type&&"replay_event"!==t.type?t.type:"event";!function(t,e){e&&(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||e.name,t.sdk.version=t.sdk.version||e.version,t.sdk.integrations=[...t.sdk.integrations||[],...e.integrations||[]],t.sdk.packages=[...t.sdk.packages||[],...e.packages||[]])}(t,n&&n.sdk);const i=function(t,e,n,r){const s=t.sdkProcessingMetadata&&t.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:t.event_id,sent_at:(new Date).toISOString(),...e&&{sdk:e},...!!n&&r&&{dsn:$e(r)},...s&&{trace:A({...s})}}}(t,s,r,e);delete t.sdkProcessingMetadata;return Ce(i,[[{type:o},t]])}function ze(t,e,n,r){const s={sent_at:(new Date).toISOString()};n&&n.sdk&&(s.sdk={name:n.sdk.name,version:n.sdk.version}),r&&e&&(s.dsn=$e(e));const o=function(t){const e=function(t){let e="";for(const n of t){const t=Object.entries(n.tags),r=t.length>0?`|#${t.map((([t,e])=>`${t}:${e}`)).join(",")}`:"";e+=`${n.name}@${n.unit}:${n.metric}|${n.metricType}${r}|T${n.timestamp}\n`}return e}(t);return[{type:"statsd",length:e.length},e]}(t);return Ce(s,[o])}const Ge="Not capturing exception because it's already been captured.";class Je{constructor(t){if(this._options=t,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=Ie(t.dsn):K&&T.warn("No DSN provided, client will not send events."),this._dsn){const e=Ye(this._dsn,t);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:e})}}captureException(t,e,n){if(z(t))return void(K&&T.log(Ge));let r=e&&e.event_id;return this._process(this.eventFromException(t,e).then((t=>this._captureEvent(t,e,n))).then((t=>{r=t}))),r}captureMessage(t,e,n,r){let s=n&&n.event_id;const o=d(t)?t:String(t),i=h(t)?this.eventFromMessage(o,e,n):this.eventFromException(t,n);return this._process(i.then((t=>this._captureEvent(t,n,r))).then((t=>{s=t}
1))),s}captureEvent(t,e,n){if(e&&e.originalException&&z(e.originalException))return void(K&&T.log(Ge));let r=e&&e.event_id;const s=(t.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(t,e,s||n).then((t=>{r=t}))),r}captureSession(t){"string"!=typeof t.release?K&&T.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),ot(t,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){const e=this._transport;return e?(this.metricsAggregator&&this.metricsAggregator.flush(),this._isClientDoneProcessing(t).then((n=>e.flush(t).then((t=>n&&t))))):Q(!0)}close(t){return this.flush(t).then((t=>(this.getOptions().enabled=!1,this.metricsAggregator&&this.metricsAggregator.close(),t)))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}setupIntegrations(t){(t&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&this._setupIntegrations()}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationById(t){return this.getIntegrationByName(t)}getIntegrationByName(t){return this._integrations[t]}getIntegration(t){try{return this._integrations[t.id]||null}catch(e){return K&&T.warn(`Cannot retrieve integration ${t.id} from the current Client`),null}}addIntegration(t){const e=this._integrations[t.name];ne(this,t,this._integrations),e||ee(this,[t])}sendEvent(t,e={}){this.emit("beforeSendEvent",t,e);let n=Fe(t,this._dsn,this._options._metadata,this._options.tunnel);for(const t of e.attachments||[])n=Ne(n,Me(t,this._options.transportOptions&&this._options.transportOptions.textEncoder));const r=this._sendEnvelope(n);r&&r.then((e=>this.emit("afterSendEvent",t,e)),null)}sendSession(t){const e=function(t,e,n,r){const s=Ue(n);return Ce({sent_at:(new Date).toISOString(),...s&&{sdk:s},...!!r&&e&&{dsn:$e(e)}},["aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()]])}(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(e)}recordDroppedEvent(t,e,n){if(this._options.sendClientReports){const r="number"==typeof n?n:1,s=`${t}:${e}`;K&&T.log(`Recording outcome: "${s}"${r>1?` (${r} times)`:""}`),this._outcomes[s]=(this._outcomes[s]||0)+r}}captureAggregateMetrics(t){K&&T.log(`Flushing aggregated metrics, number of metrics: ${t.length}`);const e=ze(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(e)}on(t,e){this._hooks[t]||(this._hooks[t]=[]),this._hooks[t].push(e)}emit(t,...e){this._hooks[t]&&this._hooks[t].forEach((t=>t(...e)))}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=function(t,e){const n={};return e.forEach((e=>{e&&ne(t,e,n)}
1)),n}(this,t),ee(this,t),this._integrationsInitialized=!0}_updateSessionFromEvent(t,e){let n=!1,r=!1;const s=e.exception&&e.exception.values;if(s){r=!0;for(const t of s){const e=t.mechanism;if(e&&!1===e.handled){n=!0;break}}}const o="ok"===t.status;(o&&0===t.errors||o&&n)&&(ot(t,{...n&&{status:"crashed"},errors:t.errors||Number(r||n)}),this.captureSession(t))}_isClientDoneProcessing(t){return new tt((e=>{let n=0;const r=setInterval((()=>{0==this._numProcessing?(clearInterval(r),e(!0)):(n+=1,t&&n>=t&&(clearInterval(r),e(!1)))}),1)}))}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(t,e,n,r=Tt()){const s=this.getOptions(),o=Object.keys(this._integrations);return!e.integrations&&o.length>0&&(e.integrations=o),this.emit("preprocessEvent",t,e),Ut(s,t,e,n,this,r).then((t=>{if(null===t)return t;const e={...r.getPropagationContext(),...n?n.getPropagationContext():void 0};if(!(t.contexts&&t.contexts.trace)&&e){const{traceId:r,spanId:s,parentSpanId:o,dsc:i}=e;t.contexts={trace:{trace_id:r,span_id:s,parent_span_id:o},...t.contexts};const a=i||pt(r,this,n);t.sdkProcessingMetadata={dynamicSamplingContext:a,...t.sdkProcessingMetadata}}return t}))}_captureEvent(t,e={},n){return this._processEvent(t,e,n).then((t=>t.event_id),(t=>{if(K){const e=t;"log"===e.logLevel?T.log(e.message):T.warn(e)}}))}_processEvent(t,e,n){const r=this.getOptions(),{sampleRate:s}=r,o=Ve(t),i=We(t),a=t.type||"error",c=`before send for type \`${a}\``;if(i&&"number"==typeof s&&Math.random()>s)return this.recordDroppedEvent("sample_rate","error",t),Z(new qe(`Discarding event because it's not included in the random sample (sampling rate = ${s})`,"log"));const u="replay_event"===a?"replay":a,l=(t.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(t,e,n,l).then((n=>{if(null===n)throw this.recordDroppedEvent("event_processor",u,t),new qe("An event processor returned `null`, will not send event.","log");if(e.data&&!0===e.data.__sentry__)return n;const s=function(t,e,n){const{beforeSend:r,beforeSendTransaction:s}=t;if(We(e)&&r)return r(e,n);if(Ve(e)&&s){if(e.spans){const t=e.spans.length;e.sdkProcessingMetadata={...e.sdkProcessingMetadata,spanCountBeforeProcessing:t}}return s(e,n)}return e}(r,n,e);return function(t,e){const n=`${e} must return \`null\` or a valid event.`;if(_(t))return t.then((t=>{if(!f(t)&&null!==t)throw new qe(n);return t}),(t=>{throw new qe(`${e} rejected with ${t}`)}));if(!f(t)&&null!==t)throw new qe(n);return t}(s,c)})).then((r=>{if(null===r){if(this.recordDroppedEvent("before_send",u,t),o){const e=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",e)}throw new qe(`${c} returned \`null\`, will not send event.`,"log")}const s=n&&n.getSession();if(!o&&s&&this._updateSessionFromEvent(s,r),o){const t=(r.sdkProcessingMetadata&&r.sdkProcessingMetadata.spanCountBeforeProcessing||0)-(r.spans?r.spans.length:0);t>0&&this.recordDroppedEvent("before_send","span",t)}const i=r.transaction_info;if(o&&i&&r.transaction!==t.transaction){const t="custom";r.transaction_info={...i,source:t}}return this.sendEvent(r,e),r})).then(null,(t=>{if(t instanceof qe)throw t;throw this.captureException(t,{data:{__sentry__:!0},originalException:t}),new qe(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${t}`)}))}_process(t){this._numProcessing++,t.then((t=>(this._numProcessing--,t)),(t=>(this._numProcessing--,t)))}_sendEnvelope(t){if(this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport)return this._transport.send(t).then(null,(t=>{K&&T.error("Error while sending event:",t)}));K&&T.error("Transport disabled")}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.keys(t).map((e=>{const[n,r]=e.split(":");return{reason:n,category:r,quantity:t[e]}}))}}function We(t){return void 0===t.type}function Ve(t){return"transaction"===t.type}const Ke="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function Xe(t,e){const n=Ze(t,e),r={type:e&&e.name,value:en(e)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function Qe(t,e){return{exception:{values:[Xe(t,e)]}}}function Ze(t,e){const n=e.stacktrace||e.stack||"",r=function(t){if(t){if("number"==typeof t.framesToPop)return t.framesToPop;if(tn.test(t.message))return 1}return 0}(e);try{return t(n,r)}catch(t){}return[]}const tn=/Minified React error #\d+;/i;function en(t){const e=t&&t.message;return e?e.error&&"string"==typeof e.error.message?e.error.message:e:"No error message"}function nn(t,e,n,r,s){let o;if(u(e)&&e.error){return Qe(t,e.error)}if(l(e)||c(e,"DOMException")){const s=e;if("stack"in e)o=Qe(t,e);else{const e=s.name||(l(s)?"DOMError":"DOMException"),i=s.message?`${e}: ${s.message}`:e;o=rn(t,i,n,r),Y(o,i)}return"code"in s&&(o.tags={...o.tags,"DOMException.code":`${s.code}`}),o}if(a(e))return Qe(t,e);if(f(e)||g(e)){return o=function(t,e,n,r){const s=Jt(),o=s&&s.getOptions().normalizeDepth,i={exception:{values:[{type:g(e)?e.constructor.name:r?"UnhandledRejection":"Error",value:sn(e,{isUnhandledRejection:r})}]},extra:{__serialized__:Lt(e,o)}};if(n){const e=Ze(t,n);e.length&&(i.exception.values[0].stacktrace={frames:e})}return i}(t,e,n,s),F(o,{synthetic:!0}),o}return o=rn(t,e,n,r),Y(o,`${e}`,void 0),F(o,{synthetic:!0}),o}function rn(t,e,n,r){const s={};if(r&&n){const r=Ze(t,n);r.length&&(s.exception={values:[{value:e,stacktrace:{frames:r}}]})}
1if(d(e)){const{__sentry_template_string__:t,__sentry_template_values__:n}=e;return s.logentry={message:t,params:n},s}return s.message=e,s}function sn(t,{isUnhandledRejection:e}){const n=function(t,e=40){const n=Object.keys(P(t));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=e)return O(n[0],e);for(let t=n.length;t>0;t--){const r=n.slice(0,t).join(", ");if(!(r.length>e))return t===n.length?r:O(r,e)}return""}(t),r=e?"promise rejection":"exception";if(u(t))return`Event \`ErrorEvent\` captured as ${r} with message \`${t.message}\``;if(g(t)){return`Event \`${function(t){try{const e=Object.getPrototypeOf(t);return e?e.constructor.name:void 0}catch(t){}}(t)}\` (type=${t.type}) captured as ${r}`}return`Object captured as ${r} with keys: ${n}`}const on=n;let an=0;function cn(){return an>0}function un(t,e={},n){if("function"!=typeof t)return t;try{const e=t.__sentry_wrapped__;if(e)return"function"==typeof e?e:t;if(R(t))return t}catch(e){return t}const r=function(){const r=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);const s=r.map((t=>un(t,e)));return t.apply(this,s)}catch(t){throw an++,setTimeout((()=>{an--})),Gt((n=>{n.addEventProcessor((t=>(e.mechanism&&(Y(t,void 0,void 0),F(t,e.mechanism)),t.extra={...t.extra,arguments:r},t))),Yt(t)})),t}};try{for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=t[e])}catch(t){}j(r,t),N(t,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return t.name}})}catch(t){}return r}class ln extends Je{constructor(t){!function(t,e,n=[e],r="npm"){const s=t._metadata||{};s.sdk||(s.sdk={name:`sentry.javascript.${e}`,packages:n.map((t=>({name:`${r}:@sentry/${t}`,version:vt}))),version:vt}),t._metadata=s}(t,"browser",["browser"],on.SENTRY_SDK_SOURCE||"npm"),super(t),t.sendClientReports&&on.document&&on.document.addEventListener("visibilitychange",(()=>{"hidden"===on.document.visibilityState&&this._flushOutcomes()}))}eventFromException(t,e){return function(t,e,n,r){const s=nn(t,e,n&&n.syntheticException||void 0,r);return F(s),s.level="error",n&&n.event_id&&(s.event_id=n.event_id),Q(s)}(this._options.stackParser,t,e,this._options.attachStacktrace)}eventFromMessage(t,e="info",n){return function(t,e,n="info",r,s){const o=rn(t,e,r&&r.syntheticException||void 0,s);return o.level=n,r&&r.event_id&&(o.event_id=r.event_id),Q(o)}(this._options.stackParser,t,e,n,this._options.attachStacktrace)}captureUserFeedback(t){if(!this._isEnabled())return void(Ke&&T.warn("SDK not enabled, will not capture user feedback."));const e=function(t,{metadata:e,tunnel:n,dsn:r}){const s={event_id:t.event_id,sent_at:(new Date).toISOString(),...e&&e.sdk&&{sdk:{name:e.sdk.name,version:e.sdk.version}},...!!n&&!!r&&{dsn:$e(r)}},o=function(t){return[{type:"user_report"},t]}(t);return Ce(s,[o])}(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(e)}_prepareEvent(t,e,n){return t.platform=t.platform||"javascript",super._prepareEvent(t,e,n)}_flushOutcomes(){const t=this._clearOutcomes();if(0===t.length)return void(Ke&&T.log("No outcomes to send"));if(!this._dsn)return void(Ke&&T.log("No dsn provided, will not send outcomes"));Ke&&T.log("Sending outcomes:",t);const e=(n=t,Ce((r=this._options.tunnel&&$e(this._dsn))?{dsn:r}:{},[[{type:"client_report"},{timestamp:s||J(),discarded_events:n}]]));var n,r,s;this._sendEnvelope(e)}}function pn(){"console"in n&&x.forEach((function(t){t in n.console&&C(n.console,t,(function(e){return w[t]=e,function(...e){Se("console",{args:e,level:t});const r=w[t];r&&r.apply(n.console,e)}}))}))}const dn=n;let hn,fn,gn;function _n(){if(!dn.document)return;const t=Se.bind(null,"dom"),e=mn(t,!0);dn.document.addEventListener("click",e,!1),dn.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach((e=>{const n=dn[e]&&dn[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(C(n,"addEventListener",(function(e){return function(n,r,s){if("click"===n||"keypress"==n)try{const r=this,o=r.__sentry_instrumentation_handlers__=r.__sentry_instrumentation_handlers__||{},i=o[n]=o[n]||{refCount:0};if(!i.handler){const r=mn(t);i.handler=r,e.call(this,n,r,s)}i.refCount++}catch(t){}return e.call(this,n,r,s)}})),C(n,"removeEventListener",(function(t){return function(e,n,r){if("click"===e||"keypress"==e)try{const n=this,s=n.__sentry_instrumentation_handlers__||{},o=s[e];o&&(o.refCount--,o.refCount<=0&&(t.call(this,e,o.handler,r),o.handler=void 0,delete s[e]),0===Object.keys(s).length&&delete n.__sentry_instrumentation_handlers__)}catch(t){}return t.call(this,e,n,r)}})))}))}function mn(t,e=!1){return n=>{if(!n||n._sentryCaptured)return;const r=function(t){try{return t.target}catch(t){return null}}(n);if(function(t,e){return"keypress"===t&&(!e||!e.tagName||"INPUT"!==e.tagName&&"TEXTAREA"!==e.tagName&&!e.isContentEditable)}
1(n.type,r))return;N(n,"_sentryCaptured",!0),r&&!r._sentryId&&N(r,"_sentryId",q());const s="keypress"===n.type?"input":n.type;if(!function(t){if(t.type!==fn)return!1;try{if(!t.target||t.target._sentryId!==gn)return!1}catch(t){}return!0}(n)){t({event:n,name:s,global:e}),fn=n.type,gn=r?r._sentryId:void 0}clearTimeout(hn),hn=dn.setTimeout((()=>{gn=void 0,fn=void 0}),1e3)}}const yn=n,vn="__sentry_xhr_v3__";function En(){if(!yn.XMLHttpRequest)return;const t=XMLHttpRequest.prototype;C(t,"open",(function(t){return function(...e){const n=Date.now(),r=p(e[0])?e[0].toUpperCase():void 0,s=function(t){if(p(t))return t;try{return t.toString()}catch(t){}return}(e[1]);if(!r||!s)return t.apply(this,e);this[vn]={method:r,url:s,request_headers:{}},"POST"===r&&s.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const o=()=>{const t=this[vn];if(t&&4===this.readyState){try{t.status_code=this.status}catch(t){}Se("xhr",{args:[r,s],endTimestamp:Date.now(),startTimestamp:n,xhr:this})}};return"onreadystatechange"in this&&"function"==typeof this.onreadystatechange?C(this,"onreadystatechange",(function(t){return function(...e){return o(),t.apply(this,e)}})):this.addEventListener("readystatechange",o),C(this,"setRequestHeader",(function(t){return function(...e){const[n,r]=e,s=this[vn];return s&&p(n)&&p(r)&&(s.request_headers[n.toLowerCase()]=r),t.apply(this,e)}})),t.apply(this,e)}})),C(t,"send",(function(t){return function(...e){const n=this[vn];if(!n)return t.apply(this,e);void 0!==e[0]&&(n.body=e[0]);return Se("xhr",{args:[n.method,n.url],startTimestamp:Date.now(),xhr:this}),t.apply(this,e)}}))}function bn(){(function(){if("string"==typeof EdgeRuntime)return!0;if(!ge())return!1;if(_e(fe.fetch))return!0;let t=!1;const e=fe.document;if(e&&"function"==typeof e.createElement)try{const n=e.createElement("iframe");
1n.hidden=!0,e.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(t=_e(n.contentWindow.fetch)),e.head.removeChild(n)}catch(t){S&&T.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}return t})()&&C(n,"fetch",(function(t){return function(...e){const{method:r,url:s}=function(t){if(0===t.length)return{method:"GET",url:""};if(2===t.length){const[e,n]=t;return{url:xn(e),method:Sn(n,"method")?String(n.method).toUpperCase():"GET"}}const e=t[0];return{url:xn(e),method:Sn(e,"method")?String(e.method).toUpperCase():"GET"}}(e),o={args:e,fetchData:{method:r,url:s},startTimestamp:Date.now()};return Se("fetch",{...o}),t.apply(n,e).then((t=>(Se("fetch",{...o,endTimestamp:Date.now(),response:t}),t)),(t=>{throw Se("fetch",{...o,endTimestamp:Date.now(),error:t}),t}))}}))}function Sn(t,e){return!!t&&"object"==typeof t&&!!t[e]}function xn(t){return"string"==typeof t?t:t?Sn(t,"url")?t.url:t.toString?t.toString():"":""}const wn=["fatal","error","warning","log","info","debug"];function kn(t){return"warn"===t?"warning":wn.includes(t)?t:"log"}function Tn(t){if(!t)return{};const e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};const n=e[6]||"",r=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],search:n,hash:r,relative:e[5]+n+r}}const On=1024,$n="Breadcrumbs",Dn=(t={})=>{const e={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...t};return{name:$n,setupOnce(){},setup(t){var n;e.console&&function(t){const e="console";Ee(e,t),be(e,pn)}(function(t){return function(e){if(Jt()!==t)return;const n={category:"console",data:{arguments:e.args,logger:"console"},level:kn(e.level),message:$(e.args," ")};if("assert"===e.level){if(!1!==e.args[0])return;n.message=`Assertion failed: ${$(e.args.slice(1)," ")||"console.assert"}`,n.data.arguments=e.args.slice(1)}zt(n,{input:e.args,level:e.level})}}(t)),e.dom&&(n=function(t,e){return function(n){if(Jt()!==t)return;let r,s,o="object"==typeof e?e.serializeAttribute:void 0,i="object"==typeof e&&"number"==typeof e.maxStringLength?e.maxStringLength:void 0;i&&i>On&&(Ke&&T.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${i} was configured. Sentry will use 1024 instead.`),i=On),"string"==typeof o&&(o=[o]);try{const t=n.event,e=function(t){return!!t&&!!t.target}(t)?t.target:t;r=E(e,{keyAttrs:o,maxStringLength:i}),s=function(t){if(!v.HTMLElement)return null;let e=t;for(let t=0;t<5;t++){if(!e)return null;if(e instanceof HTMLElement&&e.dataset.sentryComponent)return e.dataset.sentryComponent;e=e.parentNode}return null}(e)}catch(t){r="<unknown>"}if(0===r.length)return;const a={category:`ui.${n.name}`,message:r};s&&(a.data={"ui.component_name":s}),zt(a,{event:n.event,name:n.name,global:n.global})}}(t,e.dom),Ee("dom",n),be("dom",_n)),e.xhr&&function(t){Ee("xhr",t),be("xhr",En)}(function(t){return function(e){if(Jt()!==t)return;const{startTimestamp:n,endTimestamp:r}=e,s=e.xhr[vn];if(!n||!r||!s)return;const{method:o,url:i,status_code:a,body:c}=s;zt({category:"xhr",data:{method:o,url:i,status_code:a},type:"http"},{xhr:e.xhr,input:c,startTimestamp:n,endTimestamp:r})}}(t)),e.fetch&&function(t){const e="fetch";Ee(e,t),be(e,bn)}(function(t){return function(e){if(Jt()!==t)return;const{startTimestamp:n,endTimestamp:r}=e;if(r&&(!e.fetchData.url.match(/sentry_key/)||"POST"!==e.fetchData.method))if(e.error){zt({category:"fetch",data:e.fetchData,level:"error",type:"http"},{data:e.error,input:e.args,startTimestamp:n,endTimestamp:r})}else{const t=e.response;zt({category:"fetch",data:{...e.fetchData,status_code:t&&t.status},type:"http"},{input:e.args,response:t,startTimestamp:n,endTimestamp:r})}}}(t)),e.history&&ke(function(t){return function(e){if(Jt()!==t)return;let n=e.from,r=e.to;const s=Tn(on.location.href);let o=n?Tn(n):void 0;const i=Tn(r);o&&o.path||(o=s),s.protocol===i.protocol&&s.host===i.host&&(r=i.relative),s.protocol===o.protocol&&s.host===o.host&&(n=o.relative),zt({category:"navigation",data:{from:n,to:r}})}}(t)),e.sentry&&t.on&&t.on("beforeSendEvent",function(t){return function(e){Jt()===t&&zt({category:"sentry."+("transaction"===e.type?"transaction":"event"),event_id:e.event_id,level:e.level,message:H(e)},{event:e})}}(t))}}};re($n,Dn);const In="Dedupe",Cn=()=>{let t;return{name:In,setupOnce(){},processEvent(e){if(e.type)return e;try{if(function(t,e){if(!e)return!1;if(function(t,e){const n=t.message,r=e.message;if(!n&&!r)return!1;if(n&&!r||!n&&r)return!1;if(n!==r)return!1;if(!jn(t,e))return!1;if(!Nn(t,e))return!1;return!0}(t,e))return!0;
1if(function(t,e){const n=Rn(e),r=Rn(t);if(!n||!r)return!1;if(n.type!==r.type||n.value!==r.value)return!1;if(!jn(t,e))return!1;if(!Nn(t,e))return!1;return!0}(t,e))return!0;return!1}(e,t))return Ke&&T.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(t){}return t=e}}};re(In,Cn);function Nn(t,e){let n=Pn(t),r=Pn(e);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(r.length!==n.length)return!1;for(let t=0;t<r.length;t++){const e=r[t],s=n[t];if(e.filename!==s.filename||e.lineno!==s.lineno||e.colno!==s.colno||e.function!==s.function)return!1}return!0}function jn(t,e){let n=t.fingerprint,r=e.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;try{return!(n.join("")!==r.join(""))}catch(t){return!1}}function Rn(t){return t.exception&&t.exception.values&&t.exception.values[0]}function Pn(t){const e=t.exception;if(e)try{return e.values[0].stacktrace.frames}catch(t){return}}let Mn=null;function Ln(){Mn=n.onerror,n.onerror=function(t,e,n,r,s){return Se("error",{column:r,error:s,line:n,msg:t,url:e}),!(!Mn||Mn.__SENTRY_LOADER__)&&Mn.apply(this,arguments)},n.onerror.__SENTRY_INSTRUMENTED__=!0}let An=null;function Un(){An=n.onunhandledrejection,n.onunhandledrejection=function(t){return Se("unhandledrejection",t),!(An&&!An.__SENTRY_LOADER__)||An.apply(this,arguments)},n.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const qn="GlobalHandlers",Bn=(t={})=>{const e={onerror:!0,onunhandledrejection:!0,...t};return{name:qn,setupOnce(){Error.stackTraceLimit=50},setup(t){e.onerror&&(!function(t){!function(t){const e="error";Ee(e,t),be(e,Ln)}((e=>{const{stackParser:n,attachStacktrace:r}=Fn();if(Jt()!==t||cn())return;const{msg:s,url:o,line:i,column:a,error:c}=e,l=void 0===c&&p(s)?function(t,e,n,r){const s=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let o=u(t)?t.message:t,i="Error";const a=o.match(s);a&&(i=a[1],o=a[2]);const c={exception:{values:[{type:i,value:o}]}};return Hn(c,e,n,r)}(s,o,i,a):Hn(nn(n,c||s,void 0,r,!1),o,i,a);l.level="error",Ft(l,{originalException:c,mechanism:{handled:!1,type:"onerror"}})}))}(t),Yn("onerror")),e.onunhandledrejection&&(!function(t){!function(t){const e="unhandledrejection";Ee(e,t),be(e,Un)}((e=>{const{stackParser:n,attachStacktrace:r}=Fn();if(Jt()!==t||cn())return;const s=function(t){if(h(t))return t;const e=t;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch(t){}return t}(e),o=h(s)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(s)}`}]}}:nn(n,s,void 0,r,!0);o.level="error",Ft(o,{originalException:s,mechanism:{handled:!1,type:"onunhandledrejection"}})}))}(t),Yn("onunhandledrejection"))}}};re(qn,Bn);function Hn(t,e,n,r){const s=t.exception=t.exception||{},o=s.values=s.values||[],i=o[0]=o[0]||{},a=i.stacktrace=i.stacktrace||{},c=a.frames=a.frames||[],u=isNaN(parseInt(r,10))?void 0:r,l=isNaN(parseInt(n,10))?void 0:n,d=p(e)&&e.length>0?e:function(){try{return v.document.location.href}catch(t){return""}}();return 0===c.length&&c.push({colno:u,filename:d,function:"?",in_app:!0,lineno:l}),t}function Yn(t){Ke&&T.log(`Global Handler attached: ${t}`)}function Fn(){const t=Jt();return t&&t.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const zn="HttpContext",Gn=()=>({name:zn,setupOnce(){},preprocessEvent(t){if(!on.navigator&&!on.location&&!on.document)return;const e=t.request&&t.request.url||on.location&&on.location.href,{referrer:n}=on.document||{},{userAgent:r}=on.navigator||{},s={...t.request&&t.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},o={...t.request,...e&&{url:e},headers:s};t.request=o}});re(zn,Gn);function Jn(t,e,n=250,r,s,o,i){if(!(o.exception&&o.exception.values&&i&&m(i.originalException,Error)))return;const a=o.exception.values.length>0?o.exception.values[o.exception.values.length-1]:void 0;var c,u;a&&(o.exception.values=(c=Wn(t,e,s,i.originalException,r,o.exception.values,a,0),u=n,c.map((t=>(t.value&&(t.value=O(t.value,u)),t)))))}function Wn(t,e,n,r,s,o,i,a){if(o.length>=n+1)return o;let c=[...o];if(m(r[s],Error)){Vn(i,a);const o=t(e,r[s]),u=c.length;Kn(o,s,u,a),c=Wn(t,e,n,r[s],s,[o,...c],o,u)}
1return Array.isArray(r.errors)&&r.errors.forEach(((r,o)=>{if(m(r,Error)){Vn(i,a);const u=t(e,r),l=c.length;Kn(u,`errors[${o}]`,l,a),c=Wn(t,e,n,r,s,[u,...c],u,l)}})),c}function Vn(t,e){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,..."AggregateError"===t.type&&{is_exception_group:!0},exception_id:e}}function Kn(t,e,n,r){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,type:"chained",source:e,exception_id:n,parent_id:r}}const Xn="LinkedErrors",Qn=(t={})=>{const e=t.limit||5,n=t.key||"cause";return{name:Xn,setupOnce(){},preprocessEvent(t,r,s){const o=s.getOptions();Jn(Xe,o.stackParser,o.maxValueLength,n,e,t,r)}}},Zn=(re(Xn,Qn),["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"]),tr="TryCatch",er=(t={})=>{const e={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...t};return{name:tr,setupOnce(){e.setTimeout&&C(on,"setTimeout",nr),e.setInterval&&C(on,"setInterval",nr),e.requestAnimationFrame&&C(on,"requestAnimationFrame",rr),e.XMLHttpRequest&&"XMLHttpRequest"in on&&C(XMLHttpRequest.prototype,"send",sr);const t=e.eventTarget;if(t){(Array.isArray(t)?t:Zn).forEach(or)}}}};re(tr,er);function nr(t){return function(...e){const n=e[0];return e[0]=un(n,{mechanism:{data:{function:Pt(t)},handled:!1,type:"instrument"}}),t.apply(this,e)}}function rr(t){return function(e){return t.apply(this,[un(e,{mechanism:{data:{function:"requestAnimationFrame",handler:Pt(t)},handled:!1,type:"instrument"}})])}}function sr(t){return function(...e){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((t=>{t in n&&"function"==typeof n[t]&&C(n,t,(function(e){const n={mechanism:{data:{function:t,handler:Pt(e)},handled:!1,type:"instrument"}},r=R(e);return r&&(n.mechanism.data.handler=Pt(r)),un(e,n)}))})),t.apply(this,e)}}function or(t){const e=on,n=e[t]&&e[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(C(n,"addEventListener",(function(e){return function(n,r,s){try{"function"==typeof r.handleEvent&&(r.handleEvent=un(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:Pt(r),target:t},handled:!1,type:"instrument"}}))}catch(t){}return e.apply(this,[n,un(r,{mechanism:{data:{function:"addEventListener",handler:Pt(r),target:t},handled:!1,type:"instrument"}}),s])}})),C(n,"removeEventListener",(function(t){return function(e,n,r){const s=n;try{const n=s&&s.__sentry_wrapped__;n&&t.call(this,e,n,r)}catch(t){}return t.call(this,e,s,r)}})))}const ir="?";function ar(t,e,n,r){const s={filename:t,function:e,in_app:!0};return void 0!==n&&(s.lineno=n),void 0!==r&&(s.colno=r),s}const cr=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,ur=/\((\S*)(?::(\d+))(?::(\d+))\)/,lr=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,pr=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,dr=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,hr=jt(...[[30,t=>{const e=cr.exec(t);if(e){if(e[2]&&0===e[2].indexOf("eval")){const t=ur.exec(e[2]);t&&(e[2]=t[1],e[3]=t[2],e[4]=t[3])}const[t,n]=fr(e[1]||ir,e[2]);return ar(n,t,e[3]?+e[3]:void 0,e[4]?+e[4]:void 0)}}],[50,t=>{const e=lr.exec(t);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){const t=pr.exec(e[3]);t&&(e[1]=e[1]||"eval",e[3]=t[1],e[4]=t[2],e[5]="")}let t=e[3],n=e[1]||ir;return[n,t]=fr(n,t),ar(t,n,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}}],[40,t=>{const e=dr.exec(t);return e?ar(e[2],e[1]||ir,+e[3],e[4]?+e[4]:void 0):void 0}]]),fr=(t,e)=>{const n=-1!==t.indexOf("safari-extension"),r=-1!==t.indexOf("safari-web-extension");return n||r?[-1!==t.indexOf("@")?t.split("@")[0]:ir,n?`safari-extension:${e}`:`safari-web-extension:${e}`]:[t,e]};function gr(t){const e=[];function n(t){return e.splice(e.indexOf(t),1)[0]}return{$:e,add:function(r){if(!(void 0===t||e.length<t))return Z(new qe("Not adding Promise because buffer limit was reached."));const s=r();return-1===e.indexOf(s)&&e.push(s),s.then((()=>n(s))).then(null,(()=>n(s).then(null,(()=>{})))),s},drain:function(t){return new tt(((n,r)=>{let s=e.length;if(!s)return n(!0);const o=setTimeout((()=>{t&&t>0&&n(!1)}),t);e.forEach((t=>{Q(t).then((()=>{--s||(clearTimeout(o),n(!0))}),r)}))}))}}}function _r(t,{statusCode:e,headers:n},r=Date.now()){const s={...t},o=n&&n["x-sentry-rate-limits"],i=n&&n["retry-after"];if(o)for(const t of o.trim().split(",")){const[e,n,,,o]=t.split(":",5),i=parseInt(e,10),a=1e3*(isNaN(i)?60:i);if(n)for(const t of n.split(";"))"metric_bucket"===t&&o&&!o.split(";").includes("custom")||(s[t]=r+a);else s.all=r+a}else i?s.all=r+function(t,e=Date.now()){const n=parseInt(`${t}`,10);if(!isNaN(n))return 1e3*n;const r=Date.parse(`${t}`);return isNaN(r)?6e4:r-e}(i,r):429===e&&(s.all=r+6e4);return s}function mr(t,e,n=gr(t.bufferSize||30)){let r={};function s(s){const o=[];if(je(s,((e,n)=>{const s=Ae(n);if(function(t,e,n=Date.now()){return function(t,e){return t[e]||t.all||0}(t,e)>n}(r,s)){const r=yr(e,n);t.recordDroppedEvent("ratelimit_backoff",s,r)}else o.push(e)})),0===o.length)return Q();const i=Ce(s[0],o),a=e=>{je(i,((n,r)=>{const s=yr(n,r);t.recordDroppedEvent(e,Ae(r),s)}))};return n.add((()=>e({body:Pe(i,t.textEncoder)}).then((t=>(void 0!==t.statusCode&&(t.statusCode<200||t.statusCode>=300)&&K&&T.warn(`Sentry responded with status code ${t.statusCode} to sent event.`),r=_r(r,t),t)),(t=>{throw a("network_error"),t})))).then((t=>t),(t=>{if(t instanceof qe)return K&&T.error("Skipped sending event because buffer is full."),a("queue_overflow"),Q();throw t}))}return s.__sentry__baseTransport__=!0,{send:s,flush:t=>n.drain(t)}}function yr(t,e){if("event"===e||"transaction"===e)return Array.isArray(t)?t[1]:void 0}let vr;function Er(t,e=function(){if(vr)return vr;if(_e(on.fetch))return vr=on.fetch.bind(on);const t=on.document;let e=on.fetch;if(t&&"function"==typeof t.createElement)try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n);const r=n.contentWindow;r&&r.fetch&&(e=r.fetch),t.head.removeChild(n)}catch(t){Ke&&T.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}return vr=e.bind(on)}()){let n=0,r=0;return mr(t,(function(s){const o=s.body.length;n+=o,r++;const i={body:s.body,method:"POST",referrerPolicy:"origin",headers:t.headers,keepalive:n<=6e4&&r<15,...t.fetchOptions};try{return e(t.url,i).then((t=>(n-=o,r--,{statusCode:t.status,headers:{"x-sentry-rate-limits":t.headers.get("X-Sentry-Rate-Limits"),"retry-after":t.headers.get("Retry-After")}})))}catch(t){return vr=void 0,n-=o,r--,Z(t)}}
1))}function br(t){return mr(t,(function(e){return new tt(((n,r)=>{const s=new XMLHttpRequest;s.onerror=r,s.onreadystatechange=()=>{4===s.readyState&&n({statusCode:s.status,headers:{"x-sentry-rate-limits":s.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":s.getResponseHeader("Retry-After")}})},s.open("POST",t.url);for(const e in t.headers)Object.prototype.hasOwnProperty.call(t.headers,e)&&s.setRequestHeader(e,t.headers[e]);s.send(e.body)}))}))}const Sr=[ae(),de(),er(),Dn(),Bn(),Qn(),Cn(),Gn()];function xr(t={}){void 0===t.defaultIntegrations&&(t.defaultIntegrations=[...Sr]),void 0===t.release&&("string"==typeof __SENTRY_RELEASE__&&(t.release=__SENTRY_RELEASE__),on.SENTRY_RELEASE&&on.SENTRY_RELEASE.id&&(t.release=on.SENTRY_RELEASE.id)),void 0===t.autoSessionTracking&&(t.autoSessionTracking=!0),void 0===t.sendClientReports&&(t.sendClientReports=!0);const e={...t,stackParser:(n=t.stackParser||hr,Array.isArray(n)?jt(...n):n),integrations:te(t),transport:t.transport||(ge()?Er:br)};var n;he(ln,e),t.autoSessionTracking&&function(){if(void 0===on.document)return void(Ke&&T.warn("Session tracking in non-browser environment with @sentry/browser is not supported."));Vt({ignoreDuration:!0}),Qt(),ke((({from:t,to:e})=>{void 0!==t&&t!==e&&(Vt({ignoreDuration:!0}),Qt())}))}()}window.SentryHelper={captureException:function(t,e){Gt((function(n){e&&"string"==typeof e&&n.setTag("message",e),Yt(t)}))},captureMessage:function(t){!function(t,e){const n="string"==typeof e?e:void 0,r="string"!=typeof e?{captureContext:e}:void 0;kt().captureMessage(t,n,r)}(t)}},xr({dsn:window.SENTRY_DSN,beforeSend:function(t,e){var n;return((null==e||null===(n=e.originalException)||void 0===n?void 0:n.message)||"").match(/JSON Parse error: Unexpected identifier/i)?null:t},ignoreErrors:["TypeError: Failed to fetch","TypeError: Load failed","TypeError: NetworkError when attempting to fetch resource.","TypeError: Cancelled","TypeError: cancelled","Error: load error",'SecurityError: Blocked a frame with origin "https://www.brilliant.tech" from accessing a cross-origin frame',"Failed to load bugsnag","Monorail Edge","Non-Error promise rejection captured","top.GLOBALS","fb_xd_fragment","bmi_SafeAddOnload","EBCallBackMessageReceived"],denyUrls:[/graph\.facebook\.com/i,/connect\.facebook\.net\/en_US\/all\.js/i,/eatdifferent\.com\.woopra-ns\.com/i,/static\.woopra\.com\/js\/woopra\.js/i,/extensions\//i,/^chrome:\/\//i,/^chrome-extension:\/\//i,/\/(gtm|ga|gtag|analytics)\//i,/127\.0\.0\.1:4001\/isrunning/i,/webappstoolbarba\.texthelp\.com\//i,/metrics\.itunes\.apple\.com\.edgesuite\.net\//i,/webkit-masked-url:\/\/hidden/i,/klaviyo\.com\/onsite\/js\/signup_forms/i,/instagram\.com/i,/linkedin\.com/i,/facebook\.com/i,/edge\.com/i],allowUrls:[/^https?:\/\/(www\.)?brilliant\.tech\//i]})})(); 2//# sourceMappingURL=sentry.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.