1(()=>{"use strict";var t={2581(t,e,n){n.d(e,{l:()=>o});var r=n(1842),s=n(6641),i=n(6284);function o(){(0,r.U)(),(0,i.wD)()&&function(){const e=(0,s.EU)();if(!e.__SENTRY__)return;const n={mongodb:()=>new((0,i.fj)(t,"./node/integrations/mongo").Mongo),mongoose:()=>new((0,i.fj)(t,"./node/integrations/mongo").Mongo),mysql:()=>new((0,i.fj)(t,"./node/integrations/mysql").Mysql),pg:()=>new((0,i.fj)(t,"./node/integrations/postgres").Postgres)},r=Object.keys(n).filter(t=>!!(0,i.Vw)(t)).map(t=>{try{return n[t]()}catch(t){return}}).filter(t=>t);r.length>0&&(e.__SENTRY__.integrations=[...e.__SENTRY__.integrations||[],...r])}()}t=n.hmd(t)},5348(t,e,n){n.d(e,["U",0,"production"])},2220(t,e,n){const r="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;n.d(e,["T",0,r])},2531(t,e,n){n.d(e,{jB:()=>d,lG:()=>c,lb:()=>u});var r=n(6341),s=n(3816),i=n(7412),o=n(690),a=n(2220);function c(){return(0,r.BY)("globalEventProcessors",()=>[])}function u(t){c().push(t)}function d(t,e,n,r=0){return new o.T2((o,c)=>{const u=t[r];if(null===e||"function"!=typeof u)o(e);else{const p=u({...e},n);a.T&&u.id&&null===p&&i.vF.log(`Event processor "${u.id}" dropped event`),(0,s.Qg)(p)?p.then(e=>d(t,e,n,r+1).then(o)).then(null,c):d(t,p,n,r+1).then(o).then(null,c)}})}},3741(t,e,n){n.d(e,{Cp:()=>c,J0:()=>f,J5:()=>_,KU:()=>l,ZQ:()=>d,o5:()=>h,r:()=>u,v4:()=>p});var r=n(6341),s=n(5348),i=n(6641),o=n(7058),a=n(9475);function c(t,e){return(0,i.BF)().captureException(t,(0,a.li)(e))}function u(t,e){return(0,i.BF)().captureEvent(t,e)}function d(t,e){(0,i.BF)().addBreadcrumb(t,e)}function p(...t){const e=(0,i.BF)();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 l(){return(0,i.BF)().getClient()}function h(){return(0,i.BF)().getScope()}function f(t){const e=l(),n=(0,i.rm)(),a=h(),{release:c,environment:u=s.U}=e&&e.getOptions()||{},{userAgent:d}=r.OW.navigator||{},p=(0,o.fj)({release:c,environment:u,user:a.getUser()||n.getUser(),...d&&{userAgent:d},...t}),f=n.getSession();return f&&"ok"===f.status&&(0,o.qO)(f,{status:"exited"}),m(),n.setSession(p),a.setSession(p),p}function m(){const t=(0,i.rm)(),e=h(),n=e.getSession()||t.getSession();n&&(0,o.Vu)(n),g(),t.setSession(),e.setSession()}function g(){const t=(0,i.rm)(),e=h(),n=l(),r=e.getSession()||t.getSession();r&&n&&n.captureSession&&n.captureSession(r)}function _(t=!1){t?m():g()}},6641(t,e,n){n.d(e,{BF:()=>v,EU:()=>g,rm:()=>y});var r=n(6341),s=n(3816),i=n(7412),o=n(6936),a=n(1678),c=n(5348),u=n(2220),d=n(2486),p=n(7058),l=n(7986);const h=parseFloat(l.M),f=100;class m{constructor(t,e,n,r=h){let s,i;this._version=r,e?s=e:(s=new d.HG,s.setClient(t)),n?i=n:(i=new d.HG,i.setClient(t)),this._stack=[{scope:s}],t&&this.bindClient(t),this._isolationScope=i}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(0,s.Qg)(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:(0,o.eJ)(),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:(0,o.eJ)(),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:(0,o.eJ)();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=f}=r.getOptions&&r.getOptions()||{};if(o<=0)return;const c={timestamp:(0,a.lu)(),...t},u=s?(0,i.pq)(()=>s(c,e)):c;null!==u&&(r.emit&&r.emit("beforeAddBreadcrumb",u,e),n.addBreadcrumb(u,o))}
1setUser(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)}setContext(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=_(this);try{t(this)}finally{_(e)}}getIntegration(t){const e=this.getClient();if(!e)return null;try{return e.getIntegration(t)}catch(e){return u.T&&i.vF.warn(`Cannot retrieve integration ${t.id} from the current Hub`),null}}startTransaction(t,e){const n=this._callExtensionMethod("startTransaction",t,e);if(u.T&&!n){this.getClient()?i.vF.warn("Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':\nSentry.addTracingExtensions();\nSentry.init({...});\n"):i.vF.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&&(0,p.Vu)(e),this._sendSessionUpdate(),t.setSession()}startSession(t){const{scope:e,client:n}=this.getStackTop(),{release:s,environment:i=c.U}=n&&n.getOptions()||{},{userAgent:o}=r.OW.navigator||{},a=(0,p.fj)({release:s,environment:i,user:e.getUser(),...o&&{userAgent:o},...t}),u=e.getSession&&e.getSession();return u&&"ok"===u.status&&(0,p.qO)(u,{status:"exited"}),this.endSession(),e.setSession(a),a}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=g().__SENTRY__;if(n&&n.extensions&&"function"==typeof n.extensions[t])return n.extensions[t].apply(this,e);u.T&&i.vF.warn(`Extension method ${t} couldn't be found, doing nothing.`)}}function g(){return r.OW.__SENTRY__=r.OW.__SENTRY__||{extensions:{},hub:void 0},r.OW}function _(t){const e=g(),n=S(e);return E(e,t),n}function v(){const t=g();if(t.__SENTRY__&&t.__SENTRY__.acs){const e=t.__SENTRY__.acs.getCurrentHub();if(e)return e}return T(t)}function y(){return v().getIsolationScope()}function T(t=g()){return b(t)&&!S(t).isOlderThan(h)||E(t,new m),S(t)}function b(t){return!!(t&&t.__SENTRY__&&t.__SENTRY__.hub)}function S(t){return(0,r.BY)("hub",()=>new m,t)}function E(t,e){if(!t)return!1;return(t.__SENTRY__=t.__SENTRY__||{}).hub=e,!0}},131(t,e,n){n.d(e,{g:()=>o});var r=n(8411);let s;function i(t){return s?s.get(t):void 0}function o(t){const e=i(t);if(!e)return;const n={};for(const[,[t,s]]of e)n[t]||(n[t]=[]),n[t].push((0,r.Ce)(s));return n}},2486(t,e,n){n.d(e,{HG:()=>p,m6:()=>l});var r=n(3816),s=n(7412),i=n(6936),o=n(1678),a=n(2531),c=n(7058),u=n(1535);let d;class p{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=h()}static clone(t){return t?t.clone():new p}clone(){const t=new p;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&&(0,c.qO)(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 p){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((0,r.Qd)(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=h(),this}addBreadcrumb(t,e){const n="number"==typeof e?e:100;if(n<=0)return this;const r={timestamp:(0,o.lu)(),...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:i,_level:o,_fingerprint:a,_eventProcessors:c,_propagationContext:u,_sdkProcessingMetadata:d,_transactionName:p,_span:l}=this;return{breadcrumbs:t,attachments:e,contexts:n,tags:r,extra:s,user:i,level:o,fingerprint:a||[],eventProcessors:c,propagationContext:u,sdkProcessingMetadata:d,transactionName:p,span:l}}applyToEvent(t,e={},n=[]){(0,u.e2)(t,this.getScopeData());const r=[...n,...(0,a.lG)(),...this._eventProcessors];return(0,a.jB)(r,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:(0,i.eJ)();if(!this._client)return s.vF.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:(0,i.eJ)();if(!this._client)return s.vF.warn("No client configured on scope - will not capture message!"),r;const o=new Error(t);return this._client.captureMessage(t,e,{originalException:t,syntheticException:o,...n,event_id:r},this),r}captureEvent(t,e){const n=e&&e.event_id?e.event_id:(0,i.eJ)();return this._client?(this._client.captureEvent(t,{...e,event_id:n},this),n):(s.vF.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 l(){return d||(d=new p),d}function h(){return{traceId:(0,i.eJ)(),spanId:(0,i.eJ)().substring(16)}}},1869(t,e,n){n.d(e,["E1",0,"profile_id","JD",0,"sentry.origin","i_",0,"sentry.source","sy",0,"sentry.sample_rate","uT",0,"sentry.op"])},7058(t,e,n){n.d(e,{Vu:()=>c,fj:()=>o,qO:()=>a});var r=n(6936),s=n(8411),i=n(1678);function o(t){const e=(0,i.zf)(),n={sid:(0,r.eJ)(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(t){return(0,s.Ce)({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&&a(n,t),n}function a(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||(0,i.zf)(),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:(0,r.eJ)()),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 c(t,e){let n={};e?n={status:e}:"ok"===t.status&&(n={status:"exited"}),a(t,n)}},5452(t,e,n){n.d(e,{k:()=>u,l:()=>c});var r=n(8411),s=n(5348),i=n(3741),o=n(4636),a=n(3445);function c(t,e,n){const i=e.getOptions(),{publicKey:o}=e.getDsn()||{},{segment:a}=n&&n.getUser()||{},c=(0,r.Ce)({environment:i.environment||s.U,release:i.release,user_segment:a,public_key:o,trace_id:t});return e.emit&&e.emit("createDsc",c),c}function u(t){const e=(0,i.KU)();if(!e)return{};const n=c((0,a.et)(t).trace_id||"",e,(0,i.o5)()),r=(0,o.z)(t);if(!r)return n;const s=r&&r._frozenDynamicSamplingContext;if(s)return s;const{sampleRate:u,source:d}=r.metadata;null!=u&&(n.sample_rate=`${u}`);const p=(0,a.et)(r);return d&&"url"!==d&&(n.transaction=p.description),n.sampled=String((0,a.pK)(r)),e.emit&&e.emit("createDsc",n),n}},1842(t,e,n){n.d(e,{U:()=>v,p:()=>_});var r=n(7412),s=n(2220),i=n(6641),o=n(3445),a=n(9677),c=n(2853),u=n(7998);let d=!1;function p(){const t=(0,u.Z)();if(t){const e="internal_error";s.T&&r.vF.log(`[Tracing] Transaction: ${e} -> Global error occured`),t.setStatus(e)}}p.tag="sentry_tracingErrorCallback";var l=n(6849),h=n(4662),f=n(7927);function m(){const t=this.getScope().getSpan();return t?{"sentry-trace":(0,o.Qh)(t)}:{}}function g(t,e){const n=this.getClient(),i=n&&n.getOptions()||{},o=i.instrumenter||"sentry",a=t.instrumenter||"sentry";o!==a&&(s.T&&r.vF.error(`A transaction was started with instrumenter=\`${a}\`, but the SDK is configured with the \`${o}\` instrumenter.\nThe transaction will not be sampled. Please use the ${o} instrumentation to start transactions.`),t.sampled=!1);let c=new f.Z(t,this);return c=(0,h.T)(c,i,{name:t.name,parentSampled:t.parentSampled,transactionContext:t,attributes:{...t.data,...t.attributes},...e}),c.isRecording()&&c.initSpanRecorder(i._experiments&&i._experiments.maxSpans),n&&n.emit&&n.emit("startTransaction",c),c}function _(t,e,n,r,s,i,o,a=!1){const c=t.getClient(),u=c&&c.getOptions()||{};let d=new l.zX(e,t,n,r,o,s,a);return d=(0,h.T)(d,u,{name:e.name,parentSampled:e.parentSampled,transactionContext:e,attributes:{...e.data,...e.attributes},...i}),d.isRecording()&&d.initSpanRecorder(u._experiments&&u._experiments.maxSpans),c&&c.emit&&c.emit("startTransaction",d),d}function v(){const t=(0,i.EU)();t.__SENTRY__&&(t.__SENTRY__.extensions=t.__SENTRY__.extensions||{},t.__SENTRY__.extensions.startTransaction||(t.__SENTRY__.extensions.startTransaction=g),t.__SENTRY__.extensions.traceHeaders||(t.__SENTRY__.extensions.traceHeaders=m),d||(d=!0,(0,a.L)(p),(0,c.r)(p)))}},6849(t,e,n){n.d(e,{zX:()=>l});var r=n(7412),s=n(1678),i=n(2220),o=n(3445),a=n(5527),c=n(7927);const u={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3},d=["heartbeatFailed","idleTimeout","documentHidden","finalTimeout","externalFinish","cancelled"];class p extends a.l{constructor(t,e,n,r){super(r),this._pushActivity=t,this._popActivity=e,this.transactionSpanId=n}add(t){if(t.spanContext().spanId!==this.transactionSpanId){const e=t.end;t.end=(...n)=>(this._popActivity(t.spanContext().spanId),e.apply(t,n)),void 0===(0,o.et)(t).timestamp&&this._pushActivity(t.spanContext().spanId)}super.add(t)}}class l extends c.Z{constructor(t,e,n=u.idleTimeout,s=u.finalTimeout,o=u.heartbeatInterval,a=!1,c=!1){super(t,e),this._idleHub=e,this._idleTimeout=n,this._finalTimeout=s,this._heartbeatInterval=o,this._onScope=a,this.activities={},this._heartbeatCounter=0,this._finished=!1,this._idleTimeoutCanceledPermanently=!1,this._beforeFinishCallbacks=[],this._finishReason=d[4],this._autoFinishAllowed=!c,a&&(i.T&&r.vF.log(`Setting idle transaction on scope. Span ID: ${this.spanContext().spanId}`),e.getScope().setSpan(this)),c||this._restartIdleTimeout(),setTimeout(()=>{this._finished||(this.setStatus("deadline_exceeded"),this._finishReason=d[3],this.end())},this._finalTimeout)}end(t){const e=(0,o.cI)(t);if(this._finished=!0,this.activities={},"ui.action.click"===this.op&&this.setAttribute("finishReason",this._finishReason),this.spanRecorder){i.T&&r.vF.log("[Tracing] finishing IdleTransaction",new Date(1e3*e).toISOString(),this.op);
1for(const t of this._beforeFinishCallbacks)t(this,e);this.spanRecorder.spans=this.spanRecorder.spans.filter(t=>{if(t.spanContext().spanId===this.spanContext().spanId)return!0;(0,o.et)(t).timestamp||(t.setStatus("cancelled"),t.end(e),i.T&&r.vF.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(t,void 0,2)));const{start_timestamp:n,timestamp:s}=(0,o.et)(t),a=n&&n<e,c=(this._finalTimeout+this._idleTimeout)/1e3,u=s&&n&&s-n<c;if(i.T){const e=JSON.stringify(t,void 0,2);a?u||r.vF.log("[Tracing] discarding Span since it finished after Transaction final timeout",e):r.vF.log("[Tracing] discarding Span since it happened after Transaction was finished",e)}return a&&u}),i.T&&r.vF.log("[Tracing] flushing IdleTransaction")}else i.T&&r.vF.log("[Tracing] No active IdleTransaction");if(this._onScope){const t=this._idleHub.getScope();t.getTransaction()===this&&t.setSpan(void 0)}return super.end(t)}registerBeforeFinishCallback(t){this._beforeFinishCallbacks.push(t)}initSpanRecorder(t){if(!this.spanRecorder){const e=t=>{this._finished||this._pushActivity(t)},n=t=>{this._finished||this._popActivity(t)};this.spanRecorder=new p(e,n,this.spanContext().spanId,t),i.T&&r.vF.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)}cancelIdleTimeout(t,{restartOnChildSpanChange:e}={restartOnChildSpanChange:!0}){this._idleTimeoutCanceledPermanently=!1===e,this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0,0===Object.keys(this.activities).length&&this._idleTimeoutCanceledPermanently&&(this._finishReason=d[5],this.end(t)))}setFinishReason(t){this._finishReason=t}sendAutoFinishSignal(){this._autoFinishAllowed||(i.T&&r.vF.log("[Tracing] Received finish signal for idle transaction."),this._restartIdleTimeout(),this._autoFinishAllowed=!0)}_restartIdleTimeout(t){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout(()=>{this._finished||0!==Object.keys(this.activities).length||(this._finishReason=d[1],this.end(t))},this._idleTimeout)}_pushActivity(t){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),i.T&&r.vF.log(`[Tracing] pushActivity: ${t}`),this.activities[t]=!0,i.T&&r.vF.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(t){if(this.activities[t]&&(i.T&&r.vF.log(`[Tracing] popActivity ${t}`),delete this.activities[t],i.T&&r.vF.log("[Tracing] new activities count",Object.keys(this.activities).length)),0===Object.keys(this.activities).length){const t=(0,s.zf)();this._idleTimeoutCanceledPermanently?this._autoFinishAllowed&&(this._finishReason=d[5],this.end(t)):this._restartIdleTimeout(t+this._idleTimeout/1e3)}}_beat(){if(this._finished)return;const t=Object.keys(this.activities).join("");t===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=t,this._heartbeatCounter>=3?this._autoFinishAllowed&&(i.T&&r.vF.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this._finishReason=d[0],this.end()):this._pingHeartbeat()}_pingHeartbeat(){i.T&&r.vF.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout(()=>{this._beat()},this._heartbeatInterval)}}n.d(e,["Cq",0,u])},4662(t,e,n){n.d(e,{T:()=>u,v:()=>d});var r=n(3816),s=n(7412),i=n(2220),o=n(1869),a=n(3551),c=n(3445);function u(t,e,n){if(!(0,a.w)(e))return t.sampled=!1,t;if(void 0!==t.sampled)return t.setAttribute(o.sy,Number(t.sampled)),t;let r;return"function"==typeof e.tracesSampler?(r=e.tracesSampler(n),t.setAttribute(o.sy,Number(r))):void 0!==n.parentSampled?r=n.parentSampled:void 0!==e.tracesSampleRate?(r=e.tracesSampleRate,t.setAttribute(o.sy,Number(r))):(r=1,t.setAttribute(o.sy,r)),d(r)?r?(t.sampled=Math.random()<r,t.sampled?(i.T&&s.vF.log(`[Tracing] starting ${t.op} transaction - ${(0,c.et)(t).description}`),t):(i.T&&s.vF.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(r)})`),t)):(i.T&&s.vF.log("[Tracing] Discarding transaction because "+("function"==typeof e.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0")),t.sampled=!1,t):(i.T&&s.vF.warn("[Tracing] Discarding transaction because of invalid sample rate."),t.sampled=!1,t)}function d(t){return(0,r.yr)(t)||"number"!=typeof t&&"boolean"!=typeof t?(i.T&&s.vF.warn(`[Tracing] Given sample rate is invali
1d. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(t)} of type ${JSON.stringify(typeof t)}.`),!1):!(t<0||t>1)||(i.T&&s.vF.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${t}.`),!1)}},5527(t,e,n){n.d(e,{L:()=>f,l:()=>h});var r=n(7412),s=n(6936),i=n(8411),o=n(1678),a=n(2220),c=n(131),u=n(1869),d=n(4636),p=n(3445),l=n(3317);class h{constructor(t=1e3){this._maxlen=t,this.spans=[]}add(t){this.spans.length>this._maxlen?t.spanRecorder=void 0:this.spans.push(t)}}class f{constructor(t={}){this._traceId=t.traceId||(0,s.eJ)(),this._spanId=t.spanId||(0,s.eJ)().substring(16),this._startTime=t.startTimestamp||(0,o.zf)(),this.tags=t.tags?{...t.tags}:{},this.data=t.data?{...t.data}:{},this.instrumenter=t.instrumenter||"sentry",this._attributes={},this.setAttributes({[u.JD]:t.origin||"manual",[u.uT]:t.op,...t.attributes}),this._name=t.name||t.description,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.status&&(this._status=t.status),t.endTimestamp&&(this._endTime=t.endTimestamp),void 0!==t.exclusiveTime&&(this._exclusiveTime=t.exclusiveTime),this._measurements=t.measurements?{...t.measurements}:{}}get name(){return this._name||""}set name(t){this.updateName(t)}get description(){return this._name}set description(t){this._name=t}get traceId(){return this._traceId}set traceId(t){this._traceId=t}get spanId(){return this._spanId}set spanId(t){this._spanId=t}set parentSpanId(t){this._parentSpanId=t}get parentSpanId(){return this._parentSpanId}get sampled(){return this._sampled}set sampled(t){this._sampled=t}get attributes(){return this._attributes}set attributes(t){this._attributes=t}get startTimestamp(){return this._startTime}set startTimestamp(t){this._startTime=t}get endTimestamp(){return this._endTime}set endTimestamp(t){this._endTime=t}get status(){return this._status}set status(t){this._status=t}get op(){return this._attributes[u.uT]}set op(t){this.setAttribute(u.uT,t)}get origin(){return this._attributes[u.JD]}set origin(t){this.setAttribute(u.JD,t)}spanContext(){const{_spanId:t,_traceId:e,_sampled:n}=this;return{spanId:t,traceId:e,traceFlags:n?1:0}}startChild(t){const e=new f({...t,parentSpanId:this._spanId,sampled:this._sampled,traceId:this._traceId});e.spanRecorder=this.spanRecorder,e.spanRecorder&&e.spanRecorder.add(e);const n=(0,d.z)(this);if(e.transaction=n,a.T&&n){const s=`[Tracing] Starting '${t&&t.op||"< unknown op >"}' span on transaction '${(0,p.et)(e).description||"< unknown name >"}' (${n.spanContext().spanId}).`;r.vF.log(s),this._logMessage=s}return e}setTag(t,e){return this.tags={...this.tags,[t]:e},this}setData(t,e){return this.data={...this.data,[t]:e},this}setAttribute(t,e){void 0===e?delete this._attributes[t]:this._attributes[t]=e}setAttributes(t){Object.keys(t).forEach(e=>this.setAttribute(e,t[e]))}setStatus(t){return this._status=t,this}setHttpStatus(t){return(0,l.N8)(this,t),this}setName(t){this.updateName(t)}updateName(t){return this._name=t,this}isSuccess(){return"ok"===this._status}finish(t){return this.end(t)}end(t){if(this._endTime)return;const e=(0,d.z)(this);if(a.T&&e&&e.spanContext().spanId!==this._spanId){const t=this._logMessage;t&&r.vF.log(t.replace("Starting","Finishing"))}this._endTime=(0,p.cI)(t)}toTraceparent(){return(0,p.Qh)(this)}toContext(){return(0,i.Ce)({data:this._getData(),description:this._name,endTimestamp:this._endTime,op:this.op,parentSpanId:this._parentSpanId,sampled:this._sampled,spanId:this._spanId,startTimestamp:this._startTime,status:this._status,tags:this.tags,traceId:this._traceId})}updateWithContext(t){return this.data=t.data||{},this._name=t.name||t.description,this._endTime=t.endTimestamp,this.op=t.op,this._parentSpanId=t.parentSpanId,this._sampled=t.sampled,this._spanId=t.spanId||this._spanId,this._startTime=t.startTimestamp||this._startTime,this._status=t.status,this.tags=t.tags||{},this._traceId=t.traceId||this._traceId,this}getTraceContext(){return(0,p.kX)(this)}getSpanJSON(){return(0,i.Ce)({data:this._getData(),description:this._name,op:this._attributes[u.uT],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:this._status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[u.JD],_metrics_summary:(0,c.g)(this),profile_id:this._attributes[u.E1],exclusive_time:this._exclusiveTime,measurements:Object.keys(this._measurements).length>0?this._measurements:void 0})}isRecording(){return!this._endTime&&!!this._sampled}
1toJSON(){return this.getSpanJSON()}_getData(){const{data:t,_attributes:e}=this,n=Object.keys(t).length>0,r=Object.keys(e).length>0;if(n||r)return n&&r?{...t,...e}:n?t:e}}},3317(t,e,n){var r;function s(t){if(t<400&&t>=100)return"ok";if(t>=400&&t<500)switch(t){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(t>=500&&t<600)switch(t){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}n.d(e,{N8:()=>i}),function(t){t.Ok="ok";t.DeadlineExceeded="deadline_exceeded";t.Unauthenticated="unauthenticated";t.PermissionDenied="permission_denied";t.NotFound="not_found";t.ResourceExhausted="resource_exhausted";t.InvalidArgument="invalid_argument";t.Unimplemented="unimplemented";t.Unavailable="unavailable";t.InternalError="internal_error";t.UnknownError="unknown_error";t.Cancelled="cancelled";t.AlreadyExists="already_exists";t.FailedPrecondition="failed_precondition";t.Aborted="aborted";t.OutOfRange="out_of_range";t.DataLoss="data_loss"}(r||(r={}));function i(t,e){t.setTag("http.status_code",String(e)),t.setData("http.response.status_code",e);const n=s(e);"unknown_error"!==n&&t.setStatus(n)}},6954(t,e,n){n.d(e,{Lb:()=>f,Uk:()=>u});var r=n(8411),s=n(6641),i=n(3445),o=n(5452),a=n(3741),c=n(3551);function u(t){if(!(0,c.w)())return;const e=p(t),n=(0,s.BF)(),r=t.scope?t.scope.getSpan():(0,a.o5)().getSpan();if(t.onlyIfParent&&!r)return;const i=(t.scope||(0,a.o5)()).clone();return d(n,{parentSpan:r,spanContext:e,forceTransaction:t.forceTransaction,scope:i})}function d(t,{parentSpan:e,spanContext:n,forceTransaction:a,scope:u}){if(!(0,c.w)())return;const d=(0,s.rm)();let p;if(e&&!a)p=e.startChild(n);else if(e){const r=(0,o.k)(e),{traceId:s,spanId:a}=e.spanContext(),c=(0,i.pK)(e);p=t.startTransaction({traceId:s,parentSpanId:a,parentSampled:c,...n,metadata:{dynamicSamplingContext:r,...n.metadata}})}else{const{traceId:e,dsc:r,parentSpanId:s,sampled:i}={...d.getPropagationContext(),...u.getPropagationContext()};p=t.startTransaction({traceId:e,parentSpanId:s,parentSampled:i,...n,metadata:{dynamicSamplingContext:r,...n.metadata}})}return u.setSpan(p),function(t,e,n){t&&((0,r.my)(t,h,n),(0,r.my)(t,l,e))}(p,u,d),p}function p(t){if(t.startTime){const e={...t};return e.startTimestamp=(0,i.cI)(t.startTime),delete e.startTime,e}return t}const l="_sentryScope",h="_sentryIsolationScope";function f(t){return{scope:t[l],isolationScope:t[h]}}},7927(t,e,n){n.d(e,{Z:()=>h});var r=n(7412),s=n(8411),i=n(2220),o=n(6641),a=n(131),c=n(1869),u=n(3445),d=n(5452),p=n(5527),l=n(6954);class h extends p.L{constructor(t,e){super(t),this._contexts={},this._hub=e||(0,o.BF)(),this._name=t.name||"",this._metadata={...t.metadata},this._trimEnd=t.trimEnd,this.transaction=this;const n=this._metadata.dynamicSamplingContext;n&&(this._frozenDynamicSamplingContext={...n})}get name(){return this._name}set name(t){this.setName(t)}get metadata(){return{source:"custom",spanMetadata:{},...this._metadata,...this._attributes[c.i_]&&{source:this._attributes[c.i_]},...this._attributes[c.sy]&&{sampleRate:this._attributes[c.sy]}}}set metadata(t){this._metadata=t}setName(t,e="custom"){this._name=t,this.setAttribute(c.i_,e)}updateName(t){return this._name=t,this}initSpanRecorder(t=1e3){this.spanRecorder||(this.spanRecorder=new p.l(t)),this.spanRecorder.add(this)}setContext(t,e){null===e?delete this._contexts[t]:this._contexts[t]=e}setMeasurement(t,e,n=""){this._measurements[t]={value:e,unit:n}}setMetadata(t){this._metadata={...this._metadata,...t}}end(t){const e=(0,u.cI)(t),n=this._finishTransaction(e);if(n)return this._hub.captureEvent(n)}toContext(){const t=super.toContext();return(0,s.Ce)({...t,name:this._name,trimEnd:this._trimEnd})}updateWithContext(t){return super.updateWithContext(t),this._name=t.name||"",this._trimEnd=t.trimEnd,this}getDynamicSamplingContext(){return(0,d.k)(this)}setHub(t){this._hub=t}getProfileId(){if(void 0!==this._contexts&&void 0!==this._contexts.profile)return this._contexts.profile.profile_id}_finishTransaction(t){if(void 0!==this._endTime)return;this._name||(i.T&&r.vF.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>"),super.end(t);const e=this._hub.getClient();if(e&&e.emit&&e.emit("finishTransaction",this),!0!==this._sampled)return i.T&&r.vF.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),void(e&&e.recordDroppedEvent("sample_rate","transaction"));const n=this.spanRecorder?this.spanRecorder.spans.filter(t=>t!==this&&(0,u.et)(t).timestamp):[];if(this._trimEnd&&n.length>0){const t=n.map(t=>
1(0,u.et)(t).timestamp).filter(Boolean);this._endTime=t.reduce((t,e)=>t>e?t:e)}const{scope:o,isolationScope:c}=(0,l.Lb)(this),{metadata:p}=this,{source:h}=p,f={contexts:{...this._contexts,trace:(0,u.kX)(this)},spans:n,start_timestamp:this._startTime,tags:this.tags,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{...p,capturedSpanScope:o,capturedSpanIsolationScope:c,...(0,s.Ce)({dynamicSamplingContext:(0,d.k)(this)})},_metrics_summary:(0,a.g)(this),...h&&{transaction_info:{source:h}}};return Object.keys(this._measurements).length>0&&(i.T&&r.vF.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),f.measurements=this._measurements),i.T&&r.vF.log(`[Tracing] Finishing ${this.op} transaction: ${this._name}.`),f}}},7998(t,e,n){n.d(e,{Z:()=>s});var r=n(6641);function s(t){return(t||(0,r.BF)()).getScope().getTransaction()}},1535(t,e,n){n.d(e,{Rg:()=>u,e2:()=>c});var r=n(6936),s=n(8411),i=n(5452),o=n(4636),a=n(3445);function c(t,e){const{fingerprint:n,span:c,breadcrumbs:u,sdkProcessingMetadata:d}=e;!function(t,e){const{extra:n,tags:r,user:i,contexts:o,level:a,transactionName:c}=e,u=(0,s.Ce)(n);u&&Object.keys(u).length&&(t.extra={...u,...t.extra});const d=(0,s.Ce)(r);d&&Object.keys(d).length&&(t.tags={...d,...t.tags});const p=(0,s.Ce)(i);p&&Object.keys(p).length&&(t.user={...p,...t.user});const l=(0,s.Ce)(o);l&&Object.keys(l).length&&(t.contexts={...l,...t.contexts});a&&(t.level=a);c&&(t.transaction=c)}(t,e),c&&function(t,e){t.contexts={trace:(0,a.kX)(e),...t.contexts};const n=(0,o.z)(e);if(n){t.sdkProcessingMetadata={dynamicSamplingContext:(0,i.k)(e),...t.sdkProcessingMetadata};const r=(0,a.et)(n).description;r&&(t.tags={transaction:r,...t.tags})}}(t,c),function(t,e){t.fingerprint=t.fingerprint?(0,r.k9)(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,u),function(t,e){t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...e}}(t,d)}function u(t,e){const{extra:n,tags:r,user:s,contexts:i,level:o,sdkProcessingMetadata:a,breadcrumbs:c,fingerprint:u,eventProcessors:p,attachments:l,propagationContext:h,transactionName:f,span:m}=e;d(t,"extra",n),d(t,"tags",r),d(t,"user",s),d(t,"contexts",i),d(t,"sdkProcessingMetadata",a),o&&(t.level=o),f&&(t.transactionName=f),m&&(t.span=m),c.length&&(t.breadcrumbs=[...t.breadcrumbs,...c]),u.length&&(t.fingerprint=[...t.fingerprint,...u]),p.length&&(t.eventProcessors=[...t.eventProcessors,...p]),l.length&&(t.attachments=[...t.attachments,...l]),t.propagationContext={...t.propagationContext,...h}}function d(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])}}},4636(t,e,n){function r(t){return t.transaction}n.d(e,{z:()=>r})},3551(t,e,n){n.d(e,{w:()=>s});var r=n(3741);function s(t){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const e=(0,r.KU)(),n=t||e&&e.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}},9475(t,e,n){n.d(e,{li:()=>m,mG:()=>h});var r=n(6341),s=n(6936),i=n(2181),o=n(9653),a=n(1678),c=n(5348),u=n(2531),d=n(2486),p=n(1535),l=n(3445);function h(t,e,n,h,m,g){const{normalizeDepth:_=3,normalizeMaxBreadth:v=1e3}=t,y={...e,event_id:e.event_id||n.event_id||(0,s.eJ)(),timestamp:e.timestamp||(0,a.lu)()},T=n.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:c.U);void 0===t.release&&void 0!==r&&(t.release=r);void 0===t.dist&&void 0!==s&&(t.dist=s);t.message&&(t.message=(0,o.xv)(t.message,i));const a=t.exception&&t.exception.values&&t.exception.values[0];a&&a.value&&(a.value=(0,o.xv)(a.value,i));const u=t.request;u&&u.url&&(u.url=(0,o.xv)(u.url,i))}(y,t),function(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}(y,T),void 0===e.type&&function(t,e){const n=r.OW._sentryDebugIds;if(!n)return;let s;const i=f.get(e);i?s=i:(s=new Map,f.set(e,s));const o=Object.keys(n).reduce((t,r)=>{let i;const o=s.get(r);o?i=o:(i=e(r),s.set(r,i));for(let e=i.length-1;e>=0;e--){const s=i[e];if(s.filename){t[s.filename]=n[r];break}}return t},{});
1try{t.exception.values.forEach(t=>{t.stacktrace.frames.forEach(t=>{t.filename&&(t.debug_id=o[t.filename])})})}catch(t){}}(y,t.stackParser);const b=function(t,e){if(!e)return t;const n=t?t.clone():new d.HG;return n.update(e),n}(h,n.captureContext);n.mechanism&&(0,s.M6)(y,n.mechanism);const S=m&&m.getEventProcessors?m.getEventProcessors():[],E=(0,d.m6)().getScopeData();if(g){const t=g.getScopeData();(0,p.Rg)(E,t)}if(b){const t=b.getScopeData();(0,p.Rg)(E,t)}const x=[...n.attachments||[],...E.attachments];x.length&&(n.attachments=x),(0,p.e2)(y,E);const k=[...S,...(0,u.lG)(),...E.eventProcessors];return(0,u.jB)(k,y,n).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 _&&_>0?function(t,e,n){if(!t)return null;const r={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(t=>({...t,...t.data&&{data:(0,i.S8)(t.data,e,n)}}))},...t.user&&{user:(0,i.S8)(t.user,e,n)},...t.contexts&&{contexts:(0,i.S8)(t.contexts,e,n)},...t.extra&&{extra:(0,i.S8)(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=(0,i.S8)(t.contexts.trace.data,e,n)));t.spans&&(r.spans=t.spans.map(t=>{const r=(0,l.et)(t).data;return r&&(t.data=(0,i.S8)(r,e,n)),t}));return r}(t,_,v):t))}const f=new WeakMap;function m(t){if(t)return function(t){return t instanceof d.HG||"function"==typeof t}(t)||function(t){return Object.keys(t).some(t=>g.includes(t))}(t)?{captureContext:t}:t}const g=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"]},3445(t,e,n){n.d(e,{Qh:()=>a,cI:()=>c,et:()=>d,kX:()=>o,pK:()=>p});var r=n(8411),s=n(1678),i=n(6524);function o(t){const{spanId:e,traceId:n}=t.spanContext(),{data:s,op:i,parent_span_id:o,status:a,tags:c,origin:u}=d(t);return(0,r.Ce)({data:s,op:i,parent_span_id:o,span_id:e,status:a,tags:c,trace_id:n,origin:u})}function a(t){const{traceId:e,spanId:n}=t.spanContext(),r=p(t);return(0,i.TC)(e,n,r)}function c(t){return"number"==typeof t?u(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?u(t.getTime()):(0,s.zf)()}function u(t){return t>9999999999?t/1e3:t}function d(t){return function(t){return"function"==typeof t.getSpanJSON}(t)?t.getSpanJSON():"function"==typeof t.toJSON?t.toJSON():{}}function p(t){const{traceFlags:e}=t.spanContext();return Boolean(1&e)}},7986(t,e,n){n.d(e,["M",0,"7.120.4"])},5584(t,e,n){n.d(e,{De:()=>u,yD:()=>c});var r=n(5644),s=n(3816),i=n(7412);const o="sentry-",a=/^sentry-/;function c(t){if(!(0,s.Kg)(t)&&!Array.isArray(t))return;let e={};if(Array.isArray(t))e=t.reduce((t,e)=>{const n=d(e);for(const e of Object.keys(n))t[e]=n[e];return t},{});else{if(!t)return;e=d(t)}const n=Object.entries(e).reduce((t,[e,n])=>{if(e.match(a)){t[e.slice(7)]=n}return t},{});return Object.keys(n).length>0?n:void 0}function u(t){if(!t)return;return function(t){if(0===Object.keys(t).length)return;return Object.entries(t).reduce((t,[e,n],s)=>{const o=`${encodeURIComponent(e)}=${encodeURIComponent(n)}`,a=0===s?o:`${t},${o}`;return a.length>8192?(r.T&&i.vF.warn(`Not adding key: ${e} with val: ${n} to baggage header due to exceeding baggage size limits.`),t):a},"")}(Object.entries(t).reduce((t,[e,n])=>(n&&(t[`${o}${e}`]=n),t),{}))}function d(t){return t.split(",").map(t=>t.split("=").map(t=>decodeURIComponent(t.trim()))).reduce((t,[e,n])=>(t[e]=n,t),{})}n.d(e,["hF",0,"baggage"])},9766(t,e,n){n.d(e,{$N:()=>a,Hd:()=>i,NX:()=>c,xE:()=>u});var r=n(3816);const s=(0,n(6341).VZ)();function i(t,e={}){if(!t)return"<unknown>";try{let n=t;const r=5,s=[];let i=0,a=0;const c=" > ",u=c.length;let d;const p=Array.isArray(e)?e:e.keyAttrs,l=!Array.isArray(e)&&e.maxStringLength||80;for(;n&&i++<r&&(d=o(n,p),!("html"===d||i>1&&a+s.length*u+d.length>=l));)s.push(d),a+=d.length,n=n.parentNode;return s.reverse().join(c)}catch(t){return"<unknown>"}}function o(t,e){const n=t,i=[];let o,a,c,u,d;if(!n||!n.tagName)return"";if(s.HTMLElement&&n instanceof HTMLElement&&n.dataset&&n.dataset.sentryComponent)return n.dataset.sentryComponent;i.push(n.tagName.toLowerCase());const p=e&&e.length?e.filter(t=>n.getAttribute(t)).map(t=>[t,n.getAttribute(t)]):null;
1if(p&&p.length)p.forEach(t=>{i.push(`[${t[0]}="${t[1]}"]`)});else if(n.id&&i.push(`#${n.id}`),o=n.className,o&&(0,r.Kg)(o))for(a=o.split(/\s+/),d=0;d<a.length;d++)i.push(`.${a[d]}`);const l=["aria-label","type","name","title","alt"];for(d=0;d<l.length;d++)c=l[d],u=n.getAttribute(c),u&&i.push(`[${c}="${u}"]`);return i.join("")}function a(){try{return s.document.location.href}catch(t){return""}}function c(t){return s.document&&s.document.querySelector?s.document.querySelector(t):null}function u(t){if(!s.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}},5644(t,e,n){const r="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;n.d(e,["T",0,r])},8341(t,e,n){function r(){return"undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&!!__SENTRY_BROWSER_BUNDLE__}function s(){return"npm"}n.d(e,{Z:()=>r,e:()=>s})},718(t,e,n){n.d(e,{AS:()=>u,aj:()=>d,s5:()=>c});var r=n(5644),s=n(7412),i=n(3917);const o={},a={};function c(t,e){o[t]=o[t]||[],o[t].push(e)}function u(t,e){a[t]||(e(),a[t]=!0)}function d(t,e){const n=t&&o[t];if(n)for(const o of n)try{o(e)}catch(e){r.T&&s.vF.error(`Error while triggering instrumentation handler.\nType: ${t}\nName: ${(0,i.qQ)(o)}\nError:`,e)}}},9677(t,e,n){n.d(e,{L:()=>o});var r=n(6341),s=n(718);let i=null;function o(t){const e="error";(0,s.s5)(e,t),(0,s.AS)(e,a)}function a(){i=r.OW.onerror,r.OW.onerror=function(t,e,n,r,o){const a={column:r,error:o,line:n,msg:t,url:e};return(0,s.aj)("error",a),!(!i||i.__SENTRY_LOADER__)&&i.apply(this,arguments)},r.OW.onerror.__SENTRY_INSTRUMENTED__=!0}},2853(t,e,n){n.d(e,{r:()=>o});var r=n(6341),s=n(718);let i=null;function o(t){const e="unhandledrejection";(0,s.s5)(e,t),(0,s.AS)(e,a)}function a(){i=r.OW.onunhandledrejection,r.OW.onunhandledrejection=function(t){const e=t;return(0,s.aj)("unhandledrejection",e),!(i&&!i.__SENTRY_LOADER__)||i.apply(this,arguments)},r.OW.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}},3816(t,e,n){n.d(e,{BD:()=>a,Kg:()=>u,L2:()=>T,NF:()=>d,Qd:()=>l,Qg:()=>g,T2:()=>o,W6:()=>c,bJ:()=>s,gd:()=>m,mE:()=>_,sO:()=>p,tH:()=>y,vq:()=>f,xH:()=>h,yr:()=>v});const r=Object.prototype.toString;function s(t){switch(r.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return y(t,Error)}}function i(t,e){return r.call(t)===`[object ${e}]`}function o(t){return i(t,"ErrorEvent")}function a(t){return i(t,"DOMError")}function c(t){return i(t,"DOMException")}function u(t){return i(t,"String")}function d(t){return"object"==typeof t&&null!==t&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function p(t){return null===t||d(t)||"object"!=typeof t&&"function"!=typeof t}function l(t){return i(t,"Object")}function h(t){return"undefined"!=typeof Event&&y(t,Event)}function f(t){return"undefined"!=typeof Element&&y(t,Element)}function m(t){return i(t,"RegExp")}function g(t){return Boolean(t&&t.then&&"function"==typeof t.then)}function _(t){return l(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function v(t){return"number"==typeof t&&t!=t}function y(t,e){try{return t instanceof e}catch(t){return!1}}function T(t){return!("object"!=typeof t||null===t||!t.__isVue&&!t._isVue)}},7412(t,e,n){n.d(e,{pq:()=>a});var r=n(5644),s=n(6341);const i=["debug","info","warn","error","log","assert","trace"],o={};function a(t){if(!("console"in s.OW))return t();const e=s.OW.console,n={},r=Object.keys(o);r.forEach(t=>{const r=o[t];n[t]=e[t],e[t]=r});try{return t()}finally{r.forEach(t=>{e[t]=n[t]})}}const c=function(){let t=!1;const e={enable:()=>{t=!0},disable:()=>{t=!1},isEnabled:()=>t};
1return r.T?i.forEach(n=>{e[n]=(...e)=>{t&&a(()=>{s.OW.console[n](`Sentry Logger [${n}]:`,...e)})}}):i.forEach(t=>{e[t]=()=>{}}),e}();n.d(e,["Ow",0,i,"Z9",0,o,"vF",0,c])},6936(t,e,n){n.d(e,{$X:()=>a,GR:()=>d,M6:()=>u,eJ:()=>i,gO:()=>c,k9:()=>p});var r=n(8411),s=n(6341);function i(){const t=s.OW,e=t.crypto||t.msCrypto;let n=()=>16*Math.random();try{if(e&&e.randomUUID)return e.randomUUID().replace(/-/g,"");e&&e.getRandomValues&&(n=()=>{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&n())>>t/4).toString(16))}function o(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0}function a(t){const{message:e,event_id:n}=t;if(e)return e;const r=o(t);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function c(t,e,n){const r=t.exception=t.exception||{},s=r.values=r.values||[],i=s[0]=s[0]||{};i.value||(i.value=e||""),i.type||(i.type=n||"Error")}function u(t,e){const n=o(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 d(t){if(t&&t.__sentry_captured__)return!0;try{(0,r.my)(t,"__sentry_captured__",!0)}catch(t){}return!1}function p(t){return Array.isArray(t)?t:[t]}},6284(t,e,n){n.d(e,{Vw:()=>o,fj:()=>i,wD:()=>s});var r=n(8341);function s(){return!(0,r.Z)()&&"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function i(t,e){return t.require(e)}function o(e){let n;try{n=i(t,e)}catch(t){}try{const{cwd:r}=i(t,"process");n=i(t,`${r()}/node_modules/${e}`)}catch(t){}return n}t=n.hmd(t)},2181(t,e,n){n.d(e,{S8:()=>o,cd:()=>a});var r=n(3816);var s=n(8411),i=n(3917);function o(t,e=100,n=1/0){try{return c("",t,e,n)}catch(t){return{ERROR:`**non-serializable** (${t})`}}}function a(t,e=3,n=102400){const r=o(t,e);return s=r,function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(s))>n?a(t,e-1,n):r;var s}function c(t,e,o=1/0,a=1/0,u=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[d,p]=u;if(null==e||["number","boolean","string"].includes(typeof e)&&!(0,r.yr)(e))return e;const l=function(t,e){try{if("domain"===t&&e&&"object"==typeof e&&e._events)return"[Domain]";if("domainEmitter"===t)return"[DomainEmitter]";if(void 0!==n.g&&e===n.g)return"[Global]";if("undefined"!=typeof window&&e===window)return"[Window]";if("undefined"!=typeof document&&e===document)return"[Document]";if((0,r.L2)(e))return"[VueViewModel]";if((0,r.mE)(e))return"[SyntheticEvent]";if("number"==typeof e&&e!=e)return"[NaN]";if("function"==typeof e)return`[Function: ${(0,i.qQ)(e)}]`;if("symbol"==typeof e)return`[${String(e)}]`;if("bigint"==typeof e)return`[BigInt: ${String(e)}]`;const s=function(t){const e=Object.getPrototypeOf(t);return e?e.constructor.name:"null prototype"}(e);return/^HTML(\w*)Element$/.test(s)?`[HTMLElement: ${s}]`:`[object ${s}]`}catch(t){return`**non-serializable** (${t})`}}(t,e);if(!l.startsWith("[object "))return l;if(e.__sentry_skip_normalization__)return e;const h="number"==typeof e.__sentry_override_normalization_depth__?e.__sentry_override_normalization_depth__:o;if(0===h)return l.replace("object ","");if(d(e))return"[Circular ~]";const f=e;if(f&&"function"==typeof f.toJSON)try{return c("",f.toJSON(),h-1,a,u)}catch(t){}const m=Array.isArray(e)?[]:{};let g=0;const _=(0,s.W4)(e);for(const t in _){if(!Object.prototype.hasOwnProperty.call(_,t))continue;if(g>=a){m[t]="[MaxProperties ~]";break}const e=_[t];m[t]=c(t,e,h-1,a,u),g++}return p(e),m}},8411(t,e,n){n.d(e,{Ce:()=>_,GS:()=>c,HF:()=>g,W4:()=>h,my:()=>u,pO:()=>d,sp:()=>p,u4:()=>l});var r=n(9766),s=n(5644),i=n(3816),o=n(7412),a=n(9653);function c(t,e,n){if(!(e in t))return;const r=t[e],s=n(r);"function"==typeof s&&d(s,r),t[e]=s}function u(t,e,n){try{Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}catch(n){s.T&&o.vF.log(`Failed to add non-enumerable property "${e}" to object`,t)}}function d(t,e){try{const n=e.prototype||{};t.prototype=e.prototype=n,u(t,"__sentry_original__",e)}catch(t){}}function p(t){return t.__sentry_original__}function l(t){return Object.keys(t).map(e=>`${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`).join("&")}function h(t){if((0,i.bJ)(t))return{message:t.message,name:t.name,stack:t.stack,...m(t)};if((0,i.xH)(t)){const e={type:t.type,target:f(t.target),currentTarget:f(t.currentTarget),...m
1(t)};return"undefined"!=typeof CustomEvent&&(0,i.tH)(t,CustomEvent)&&(e.detail=t.detail),e}return t}function f(t){try{return(0,i.vq)(t)?(0,r.Hd)(t):Object.prototype.toString.call(t)}catch(t){return"<unknown>"}}function m(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 g(t,e=40){const n=Object.keys(h(t));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=e)return(0,a.xv)(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:(0,a.xv)(r,e)}return""}function _(t){return v(t,new Map)}function v(t,e){if(function(t){if(!(0,i.Qd)(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]=v(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(v(t,e))}),r}return t}},3917(t,e,n){n.d(e,{gd:()=>i,qQ:()=>c,vk:()=>o});const r=/\(error: (.*)\)/,s=/captureMessage|captureException/;function i(...t){const e=t.sort((t,e)=>t[0]-e[0]).map(t=>t[1]);return(t,n=0)=>{const i=[],o=t.split("\n");for(let t=n;t<o.length;t++){const n=o[t];if(n.length>1024)continue;const s=r.test(n)?n.replace(r,"$1"):n;if(!s.match(/\S*Error: /)){for(const t of e){const e=t(s);if(e){i.push(e);break}}if(i.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(),s.test(e[e.length-1].function||"")&&(e.pop(),s.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||"?"}))}(i)}}function o(t){return Array.isArray(t)?i(...t):t}const a="<anonymous>";function c(t){try{return t&&"function"==typeof t&&t.name||a}catch(t){return a}}},9653(t,e,n){n.d(e,{Xr:()=>o,gt:()=>i,xv:()=>s});var r=n(3816);function s(t,e=0){return"string"!=typeof t||0===e||t.length<=e?t:`${t.slice(0,e)}...`}function i(t,e){if(!Array.isArray(t))return"";const n=[];for(let e=0;e<t.length;e++){const s=t[e];try{(0,r.L2)(s)?n.push("[VueViewModel]"):n.push(String(s))}catch(t){n.push("[value cannot be serialized]")}}return n.join(e)}function o(t,e=[],n=!1){return e.some(e=>function(t,e,n=!1){return!!(0,r.Kg)(t)&&((0,r.gd)(e)?e.test(t):!!(0,r.Kg)(e)&&(n?t===e:t.includes(e)))}(t,e,n))}},690(t,e,n){n.d(e,{T2:()=>a,XW:()=>i,xg:()=>o});var r,s=n(3816);function i(t){return new a(e=>{e(t)})}function o(t){return new a((e,n)=>{n(t)})}!function(t){t[t.PENDING=0]="PENDING";t[t.RESOLVED=1]="RESOLVED";t[t.REJECTED=2]="REJECTED"}(r||(r={}));class a{constructor(t){a.prototype.__init.call(this),a.prototype.__init2.call(this),a.prototype.__init3.call(this),a.prototype.__init4.call(this),this._state=r.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(t){this._reject(t)}}then(t,e){return new a((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 a((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(r.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(r.REJECTED,t)}}__init3(){this._setResult=(t,e)=>{this._state===r.PENDING&&((0,s.Qg)(e)?e.then(this._resolve,this._reject):(this._state=t,this._value=e,this._executeHandlers()))}}__init4(){this._executeHandlers=()=>{if(this._state===r.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach(t=>{t[0]||(this._state===r.RESOLVED&&t[1](this._value),this._state===r.REJECTED&&t[2](this._value),t[0]=!0)})}}}},1678(t,e,n){n.d(e,{lu:()=>s});var r=n(6341);function s(){return Date.now()/1e3}const i=function(){const{performance:t}=r.OW;if(!t||!t.now)return s;const e=Date.now()-t.now(),n=null==t.timeOrigin?e:t.timeOrigin;return()=>(n+t.now())/1e3}();let o;const a=(()=>{const{performance:t}=r.OW;if(!t||!t.now)return void(o="none");const e=36e5,n=t.now(),s=Date.now(),i=t.timeOrigin?Math.abs(t.timeOrigin+n-s):e,a=i<e,c=t.timing&&t.timing.navigationStart,u="number"==typeof c?Math.abs(c+n-s):e;return a||u<e?i<=u?(o="timeOrigin",t.timeOrigin):(o="navigationStart",c):(o="dateNow",s)})();n.d(e,["k3",0,a,"zf",0,i])},6524(t,e,n){n.d(e,{TC:()=>c,kM:()=>a});var r=n(5584),s=n(6936);const i=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function o(t){if(!t)return;const e=t.match(i);if(!e)return;let n;return"1"===e[3]?n=!0:"0"===e[3]&&(n=!1),{traceId:e[1],parentSampled:n,parentSpanId:e[2]}}function a(t,e){const n=o(t),i=(0,r.yD)(e),{traceId:a,parentSpanId:c,parentSampled:u}=n||{};return n?{traceId:a||(0,s.eJ)(),parentSpanId:c||(0,s.eJ)().substring(16),spanId:(0,s.eJ)().substring(16),sampled:u,dsc:i||{}}:{traceId:a||(0,s.eJ)(),spanId:(0,s.eJ)().substring(16)}}function c(t=(0,s.eJ)(),e=(0,s.eJ)().substring(16),n){let r="";return void 0!==n&&(r=n?"-1":"-0"),`${t}-${e}${r}`}},6341(t,e,n){function r(t){return t&&t.Math==Math?t:void 0}n.d(e,{BY:()=>o,VZ:()=>i});const s="object"==typeof globalThis&&r(globalThis)||"object"==typeof window&&r(window)||"object"==typeof self&&r(self)||"object"==typeof n.g&&r(n.g)||function(){return this}()||{};function i(){return s}function o(t,e,n){const r=n||s,i=r.__SENTRY__=r.__SENTRY__||{};return i[t]||(i[t]=e())}n.d(e,["OW",0,s])}};const e={};function n(r){const s=e[r];if(void 0!==s)return s.exports;const i=e[r]={id:r,loaded:!1,exports:{}};return t[r](i,i.exports,n),i.loaded=!0,i.exports}n.d=(t,e)=>{if(Array.isArray(e))for(var r=0;r<e.length;){var s=e[r++],i=e[r++],o=0===i?{enumerable:!0,value:e[r++]}:{enumerable:!0,get:i};n.o(t,s)||Object.defineProperty(t,s,o)}else for(var s in e)n.o(e,s)&&!n.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:e[s]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}
1}(),n.hmd=t=>((t=Object.create(t)).children||(t.children=[]),Object.defineProperty(t,"exports",{enumerable:!0,set(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+t.id)}}),t),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var r=n(7412),s=n(6936),i=n(9653),o=n(2220),a=n(2531),c=n(6641);const u=[];function d(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?(0,s.k9)(n(e)):e;const i=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}(i,t=>"Debug"===t.name);if(-1!==o){const[t]=i.splice(o,1);i.push(t)}return i}function p(t,e){for(const n of e)n&&n.afterAllSetup&&n.afterAllSetup(t)}function l(t,e,n){if(n[e.name])o.T&&r.vF.log(`Integration skipped because it was already installed: ${e.name}`);else{if(n[e.name]=e,-1===u.indexOf(e.name)&&(e.setupOnce(a.lb,c.BF),u.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=(e,r)=>n(e,r,t);r.id=e.name,t.addEventProcessor(r)}o.T&&r.vF.log(`Integration installed: ${e.name}`)}}function h(t,e){const n=function(...t){return e(...t)};return n.id=t,n}const f=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/],m=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/],g="InboundFilters",_=(t={})=>({name:g,setupOnce(){},processEvent(e,n,a){const c=a.getOptions(),u=function(t={},e={}){return{allowUrls:[...t.allowUrls||[],...e.allowUrls||[]],denyUrls:[...t.denyUrls||[],...e.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...e.ignoreErrors||[],...t.disableErrorDefaults?[]:f],ignoreTransactions:[...t.ignoreTransactions||[],...e.ignoreTransactions||[],...t.disableTransactionDefaults?[]:m],ignoreInternal:void 0===t.ignoreInternal||t.ignoreInternal}}(t,c);return function(t,e){if(e.ignoreInternal&&function(t){try{return"SentryError"===t.exception.values[0].type}catch(t){}return!1}(t))return o.T&&r.vF.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${(0,s.$X)(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}`));o.T&&0===e.length&&r.vF.error(`Could not extract message for event ${(0,s.$X)(t)}`);return e}(t).some(t=>(0,i.Xr)(t,e))}(t,e.ignoreErrors))return o.T&&r.vF.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${(0,s.$X)(t)}`),!0;if(function(t,e){if("transaction"!==t.type||!e||!e.length)return!1;const n=t.transaction;return!!n&&(0,i.Xr)(n,e)}(t,e.ignoreTransactions))return o.T&&r.vF.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${(0,s.$X)(t)}`),!0;if(function(t,e){if(!e||!e.length)return!1;const n=v(t);return!!n&&(0,i.Xr)(n,e)}(t,e.denyUrls))return o.T&&r.vF.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${(0,s.$X)(t)}.\nUrl: ${v(t)}`),!0;if(!function(t,e){if(!e||!e.length)return!0;const n=v(t);return!n||(0,i.Xr)(n,e)}(t,e.allowUrls))return o.T&&r.vF.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${(0,s.$X)(t)}.\nUrl: ${v(t)}`),!0;return!1}(e,u)?null:e}});h(g,_);function v(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 o.T&&r.vF.error(`Cannot extract url for event ${(0,s.$X)(t)}`),null}}var y=n(8411),T=n(3741);let b;const S="FunctionToString",E=new WeakMap,x=()=>({name:S,setupOnce(){b=Function.prototype.toString;try{Function.prototype.toString=function(...t){const e=(0,y.sp)(this),n=E.has((0,T.KU)())&&void 0!==e?e:this;return b.apply(n,t)}}catch(t){}},setup(t){E.set(t,!0)}});h(S,x);function k(t,e){!0===e.debug&&(o.T?r.vF.enable():(0,r.pq)(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")}));(0,T.o5)().update(e.initialScope);const n=new t(e);!function(t){const e=(0,c.BF)().getStackTop();
1e.client=t,e.scope.setClient(t)}(n),function(t){t.init?t.init():t.setupIntegrations&&t.setupIntegrations()}(n)}var w=n(3917),I=n(5644),C=n(6341);const O=(0,C.VZ)();function R(){if(!("fetch"in O))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(t){return!1}}function $(t){return t&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function N(){if("string"==typeof EdgeRuntime)return!0;if(!R())return!1;if($(O.fetch))return!0;let t=!1;const e=O.document;if(e&&"function"==typeof e.createElement)try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(t=$(n.contentWindow.fetch)),e.head.removeChild(n)}catch(t){I.T&&r.vF.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}return t}const F=(0,C.VZ)();var D=n(718);const P=C.OW;let A;function j(t){const e="history";(0,D.s5)(e,t),(0,D.AS)(e,M)}function M(){if(!function(){const t=F.chrome,e=t&&t.app&&t.app.runtime,n="history"in F&&!!F.history.pushState&&!!F.history.replaceState;return!e&&n}())return;const t=P.onpopstate;function e(t){return function(...e){const n=e.length>2?e[2]:void 0;if(n){const t=A,e=String(n);A=e;const r={from:t,to:e};(0,D.aj)("history",r)}return t.apply(this,e)}}P.onpopstate=function(...e){const n=P.location.href,r=A;A=n;const s={from:r,to:n};if((0,D.aj)("history",s),t)try{return t.apply(this,e)}catch(t){}},(0,y.GS)(P.history,"pushState",e),(0,y.GS)(P.history,"replaceState",e)}const L=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function q(t,e=!1){const{host:n,path:r,pass:s,port:i,projectId:o,protocol:a,publicKey:c}=t;return`${a}://${c}${e&&s?`:${s}`:""}@${n}${i?`:${i}`:""}/${r?`${r}/`:r}${o}`}function H(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function U(t){const e="string"==typeof t?function(t){const e=L.exec(t);if(!e)return void(0,r.pq)(()=>{console.error(`Invalid Sentry Dsn: ${t}`)});const[n,s,i="",o,a="",c]=e.slice(1);let u="",d=c;const p=d.split("/");if(p.length>1&&(u=p.slice(0,-1).join("/"),d=p.pop()),d){const t=d.match(/^\d+/);t&&(d=t[0])}return H({host:o,pass:i,path:u,projectId:d,port:a,protocol:n,publicKey:s})}(t):H(t);if(e&&function(t){if(!I.T)return!0;const{port:e,projectId:n,protocol:s}=t;return!(["protocol","publicKey","host","projectId"].find(e=>!t[e]&&(r.vF.error(`Invalid Sentry Dsn: ${e} missing`),!0))||(n.match(/^\d+$/)?function(t){return"http"===t||"https"===t}(s)?e&&isNaN(parseInt(e,10))&&(r.vF.error(`Invalid Sentry Dsn: Invalid port ${e}`),1):(r.vF.error(`Invalid Sentry Dsn: Invalid protocol ${s}`),1):(r.vF.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),1)))}(e))return e}var B=n(3816),W=n(690),J=n(2181);function G(t,e=[]){return[t,e]}function Y(t,e){const[n,r]=t;return[n,[...r,e]]}function K(t,e){const n=t[1];for(const t of n){if(e(t,t[0].type))return!0}return!1}function X(t,e){return(e||new TextEncoder).encode(t)}function z(t,e){const[n,r]=t;let s=JSON.stringify(n);function i(t){"string"==typeof s?s="string"==typeof t?s+t:[X(s,e),t]:s.push("string"==typeof t?X(t,e):t)}for(const t of r){const[e,n]=t;if(i(`\n${JSON.stringify(e)}\n`),"string"==typeof n||n instanceof Uint8Array)i(n);else{let t;try{t=JSON.stringify(n)}catch(e){t=JSON.stringify((0,J.S8)(n))}i(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 Q(t,e){const n="string"==typeof t.data?X(t.data,e):t.data;return[(0,y.Ce)({type:"attachment",length:n.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType}),n]}const V={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 Z(t){return V[t]}function tt(t){if(!t||!t.sdk)return;const{name:e,version:n}=t.sdk;return{name:e,version:n}}
1class et 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 nt(t){const e=t.protocol?`${t.protocol}:`:"",n=t.port?`:${t.port}`:"";return`${e}//${t.host}${n}${t.path?`/${t.path}`:""}/api/`}function rt(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`${nt(t)}${t.projectId}/envelope/`}(t)}?${function(t,e){return(0,y.u4)({sentry_key:t.publicKey,sentry_version:"7",...e&&{sentry_client:`${e.name}/${e.version}`}})}(t,r)}`}function st(t,e,n,r){const s=tt(n),i=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 o=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:q(r)},...s&&{trace:(0,y.Ce)({...s})}}}(t,s,r,e);delete t.sdkProcessingMetadata;return G(o,[[{type:i},t]])}function it(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=q(e));const i=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 G(s,[i])}var ot=n(7058),at=n(5452),ct=n(9475);const ut="Not capturing exception because it's already been captured.";class dt{constructor(t){if(this._options=t,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=U(t.dsn):o.T&&r.vF.warn("No DSN provided, client will not send events."),this._dsn){const e=rt(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((0,s.GR)(t))return void(o.T&&r.vF.log(ut));let i=e&&e.event_id;return this._process(this.eventFromException(t,e).then(t=>this._captureEvent(t,e,n)).then(t=>{i=t})),i}captureMessage(t,e,n,r){let s=n&&n.event_id;const i=(0,B.NF)(t)?t:String(t),o=(0,B.sO)(t)?this.eventFromMessage(i,e,n):this.eventFromException(t,n);return this._process(o.then(t=>this._captureEvent(t,n,r)).then(t=>{s=t})),s}captureEvent(t,e,n){if(e&&e.originalException&&(0,s.GR)(e.originalException))return void(o.T&&r.vF.log(ut));let i=e&&e.event_id;const a=(t.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(t,e,a||n).then(t=>{i=t})),i}captureSession(t){"string"!=typeof t.release?o.T&&r.vF.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),(0,ot.qO)(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))):(0,W.XW)(!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 o.T&&r.vF.warn(`Cannot retrieve integration ${t.id} from the current Client`),null}}addIntegration(t){const e=this._integrations[t.name];l(this,t,this._integrations),e||p(this,[t])}sendEvent(t,e={}
1){this.emit("beforeSendEvent",t,e);let n=st(t,this._dsn,this._options._metadata,this._options.tunnel);for(const t of e.attachments||[])n=Y(n,Q(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=tt(n);return G({sent_at:(new Date).toISOString(),...s&&{sdk:s},...!!r&&e&&{dsn:q(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 s="number"==typeof n?n:1,i=`${t}:${e}`;o.T&&r.vF.log(`Recording outcome: "${i}"${s>1?` (${s} times)`:""}`),this._outcomes[i]=(this._outcomes[i]||0)+s}}captureAggregateMetrics(t){o.T&&r.vF.log(`Flushing aggregated metrics, number of metrics: ${t.length}`);const e=it(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&&l(t,e,n)}),n}(this,t),p(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 i="ok"===t.status;(i&&0===t.errors||i&&n)&&((0,ot.qO)(t,{...n&&{status:"crashed"},errors:t.errors||Number(r||n)}),this.captureSession(t))}_isClientDoneProcessing(t){return new W.T2(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=(0,c.rm)()){const s=this.getOptions(),i=Object.keys(this._integrations);return!e.integrations&&i.length>0&&(e.integrations=i),this.emit("preprocessEvent",t,e),(0,ct.mG)(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:i,dsc:o}=e;t.contexts={trace:{trace_id:r,span_id:s,parent_span_id:i},...t.contexts};const a=o||(0,at.l)(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(o.T){const e=t;"log"===e.logLevel?r.vF.log(e.message):r.vF.warn(e)}})}_processEvent(t,e,n){const r=this.getOptions(),{sampleRate:s}=r,i=lt(t),o=pt(t),a=t.type||"error",c=`before send for type \`${a}\``;if(o&&"number"==typeof s&&Math.random()>s)return this.recordDroppedEvent("sample_rate","error",t),(0,W.xg)(new et(`Discarding event because it's not included in the random sample (sampling rate = ${s})`,"log"));const u="replay_event"===a?"replay":a,d=(t.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(t,e,n,d).then(n=>{if(null===n)throw this.recordDroppedEvent("event_processor",u,t),new et("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(pt(e)&&r)return r(e,n);if(lt(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((0,B.Qg)(t))return t.then(t=>{if(!(0,B.Qd)(t)&&null!==t)throw new et(n);return t},t=>{throw new et(`${e} rejected with ${t}`)});if(!(0,B.Qd)(t)&&null!==t)throw new et(n);return t}(s,c)}).then(r=>{if(null===r){if(this.recordDroppedEvent("before_send",u,t),i){const e=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",e)}throw new et(`${c} returned \`null\`, will not send event.`,"log")}const s=n&&n.getSession();if(!i&&s&&this._updateSessionFromEvent(s,r),i){const t=(r.sdkProcessingMetadata&&r.sdkProcessingMetadata.spanCountBeforeProcessing||0)-(r.spans?r.spans.length:0);t>0&&this.recordDroppedEvent("before_send","span",t)}const o=r.transaction_info;if(i&&o&&r.transaction!==t.transaction){const t="custom";r.transaction_info={...o,source:t}}return this.sendEvent(r,e),r}).then(null,t=>{if(t instanceof et)throw t;throw this.captureException(t,{data:{__sentry__:!0},originalException:t}),new et(`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))}
1_sendEnvelope(t){if(this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport)return this._transport.send(t).then(null,t=>{o.T&&r.vF.error("Error while sending event:",t)});o.T&&r.vF.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 pt(t){return void 0===t.type}function lt(t){return"transaction"===t.type}var ht=n(7986);var ft=n(8341),mt=n(1678);const gt="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function _t(t,e){const n=yt(t,e),r={type:e&&e.name,value:bt(e)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function vt(t,e){return{exception:{values:[_t(t,e)]}}}function yt(t,e){const n=e.stacktrace||e.stack||"",r=function(t){if(t){if("number"==typeof t.framesToPop)return t.framesToPop;if(Tt.test(t.message))return 1}return 0}(e);try{return t(n,r)}catch(t){}return[]}const Tt=/Minified React error #\d+;/i;function bt(t){const e=t&&t.message;return e?e.error&&"string"==typeof e.error.message?e.error.message:e:"No error message"}function St(t,e,n,r,i){let o;if((0,B.T2)(e)&&e.error){return vt(t,e.error)}if((0,B.BD)(e)||(0,B.W6)(e)){const i=e;if("stack"in e)o=vt(t,e);else{const e=i.name||((0,B.BD)(i)?"DOMError":"DOMException"),a=i.message?`${e}: ${i.message}`:e;o=Et(t,a,n,r),(0,s.gO)(o,a)}return"code"in i&&(o.tags={...o.tags,"DOMException.code":`${i.code}`}),o}if((0,B.bJ)(e))return vt(t,e);if((0,B.Qd)(e)||(0,B.xH)(e)){return o=function(t,e,n,r){const s=(0,T.KU)(),i=s&&s.getOptions().normalizeDepth,o={exception:{values:[{type:(0,B.xH)(e)?e.constructor.name:r?"UnhandledRejection":"Error",value:xt(e,{isUnhandledRejection:r})}]},extra:{__serialized__:(0,J.cd)(e,i)}};if(n){const e=yt(t,n);e.length&&(o.exception.values[0].stacktrace={frames:e})}return o}(t,e,n,i),(0,s.M6)(o,{synthetic:!0}),o}return o=Et(t,e,n,r),(0,s.gO)(o,`${e}`,void 0),(0,s.M6)(o,{synthetic:!0}),o}function Et(t,e,n,r){const s={};if(r&&n){const r=yt(t,n);r.length&&(s.exception={values:[{value:e,stacktrace:{frames:r}}]})}if((0,B.NF)(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 xt(t,{isUnhandledRejection:e}){const n=(0,y.HF)(t),r=e?"promise rejection":"exception";if((0,B.T2)(t))return`Event \`ErrorEvent\` captured as ${r} with message \`${t.message}\``;if((0,B.xH)(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 kt=C.OW;let wt=0;function It(){return wt>0}function Ct(t,e={},n){if("function"!=typeof t)return t;try{const e=t.__sentry_wrapped__;if(e)return"function"==typeof e?e:t;if((0,y.sp)(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=>Ct(t,e));return t.apply(this,s)}catch(t){throw wt++,setTimeout(()=>{wt--}),(0,T.v4)(n=>{n.addEventProcessor(t=>(e.mechanism&&((0,s.gO)(t,void 0,void 0),(0,s.M6)(t,e.mechanism)),t.extra={...t.extra,arguments:r},t)),(0,T.Cp)(t)}),t}};try{for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=t[e])}catch(t){}(0,y.pO)(r,t),(0,y.my)(t,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:()=>t.name})}catch(t){}return r}class Ot extends dt{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:ht.M})),version:ht.M}),t._metadata=s}(t,"browser",["browser"],kt.SENTRY_SDK_SOURCE||(0,ft.e)()),super(t),t.sendClientReports&&kt.document&&kt.document.addEventListener("visibilitychange",()=>{"hidden"===kt.document.visibilityState&&this._flushOutcomes()})}eventFromException(t,e){return function(t,e,n,r){const i=St(t,e,n&&n.syntheticException||void 0,r);return(0,s.M6)(i),i.level="error",n&&n.event_id&&(i.event_id=n.event_id),(0,W.XW)(i)}(this._options.stackParser,t,e,this._options.attachStacktrace)}eventFromMessage(t,e="info",n){return function(t,e,n="info",r,s){const i=Et(t,e,r&&r.syntheticException||void 0,s);return i.level=n,r&&r.event_id&&(i.event_id=r.event_id),(0,W.XW)(i)}(this._options.stackParser,t,e,n,this._options.attachStacktrace)}captureUserFeedback(t){if(!this._isEnabled())return void(gt&&r.vF.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:q(r)}},i=function(t){return[{type:"user_report"},t]}(t);return G(s,[i])}(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(gt&&r.vF.log("No outcomes to send"));if(!this._dsn)return void(gt&&r.vF.log("No dsn provided, will not send outcomes"));gt&&r.vF.log("Sending outcomes:",t);const e=(n=t,G((s=this._options.tunnel&&q(this._dsn))?{dsn:s}:{},[[{type:"client_report"},{timestamp:i||(0,mt.lu)(),discarded_events:n}]]));var n,s,i;this._sendEnvelope(e)}}
1function Rt(){"console"in C.OW&&r.Ow.forEach(function(t){t in C.OW.console&&(0,y.GS)(C.OW.console,t,function(e){return r.Z9[t]=e,function(...e){const n={args:e,level:t};(0,D.aj)("console",n);const s=r.Z9[t];s&&s.apply(C.OW.console,e)}})})}const $t=C.OW;let Nt,Ft,Dt;function Pt(){if(!$t.document)return;const t=D.aj.bind(null,"dom"),e=At(t,!0);$t.document.addEventListener("click",e,!1),$t.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach(e=>{const n=$t[e]&&$t[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&((0,y.GS)(n,"addEventListener",function(e){return function(n,r,s){if("click"===n||"keypress"==n)try{const r=this,i=r.__sentry_instrumentation_handlers__=r.__sentry_instrumentation_handlers__||{},o=i[n]=i[n]||{refCount:0};if(!o.handler){const r=At(t);o.handler=r,e.call(this,n,r,s)}o.refCount++}catch(t){}return e.call(this,n,r,s)}}),(0,y.GS)(n,"removeEventListener",function(t){return function(e,n,r){if("click"===e||"keypress"==e)try{const n=this,s=n.__sentry_instrumentation_handlers__||{},i=s[e];i&&(i.refCount--,i.refCount<=0&&(t.call(this,e,i.handler,r),i.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 At(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)}(n.type,r))return;(0,y.my)(n,"_sentryCaptured",!0),r&&!r._sentryId&&(0,y.my)(r,"_sentryId",(0,s.eJ)());const i="keypress"===n.type?"input":n.type;if(!function(t){if(t.type!==Ft)return!1;try{if(!t.target||t.target._sentryId!==Dt)return!1}catch(t){}return!0}(n)){t({event:n,name:i,global:e}),Ft=n.type,Dt=r?r._sentryId:void 0}clearTimeout(Nt),Nt=$t.setTimeout(()=>{Dt=void 0,Ft=void 0},1e3)}}const jt=C.OW,Mt="__sentry_xhr_v3__";function Lt(t){(0,D.s5)("xhr",t),(0,D.AS)("xhr",qt)}function qt(){if(!jt.XMLHttpRequest)return;const t=XMLHttpRequest.prototype;(0,y.GS)(t,"open",function(t){return function(...e){const n=Date.now(),r=(0,B.Kg)(e[0])?e[0].toUpperCase():void 0,s=function(t){if((0,B.Kg)(t))return t;try{return t.toString()}catch(t){}return}(e[1]);if(!r||!s)return t.apply(this,e);this[Mt]={method:r,url:s,request_headers:{}},"POST"===r&&s.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const i=()=>{const t=this[Mt];if(t&&4===this.readyState){try{t.status_code=this.status}catch(t){}const e={args:[r,s],endTimestamp:Date.now(),startTimestamp:n,xhr:this};(0,D.aj)("xhr",e)}};return"onreadystatechange"in this&&"function"==typeof this.onreadystatechange?(0,y.GS)(this,"onreadystatechange",function(t){return function(...e){return i(),t.apply(this,e)}}):this.addEventListener("readystatechange",i),(0,y.GS)(this,"setRequestHeader",function(t){return function(...e){const[n,r]=e,s=this[Mt];return s&&(0,B.Kg)(n)&&(0,B.Kg)(r)&&(s.request_headers[n.toLowerCase()]=r),t.apply(this,e)}}),t.apply(this,e)}}),(0,y.GS)(t,"send",function(t){return function(...e){const n=this[Mt];if(!n)return t.apply(this,e);void 0!==e[0]&&(n.body=e[0]);const r={args:[n.method,n.url],startTimestamp:Date.now(),xhr:this};return(0,D.aj)("xhr",r),t.apply(this,e)}})}function Ht(t){const e="fetch";(0,D.s5)(e,t),(0,D.AS)(e,Ut)}function Ut(){N()&&(0,y.GS)(C.OW,"fetch",function(t){return function(...e){const{method:n,url:r}=function(t){if(0===t.length)return{method:"GET",url:""};if(2===t.length){const[e,n]=t;return{url:Wt(e),method:Bt(n,"method")?String(n.method).toUpperCase():"GET"}}const e=t[0];return{url:Wt(e),method:Bt(e,"method")?String(e.method).toUpperCase():"GET"}}(e),s={args:e,fetchData:{method:n,url:r},startTimestamp:Date.now()};return(0,D.aj)("fetch",{...s}),t.apply(C.OW,e).then(t=>{const e={...s,endTimestamp:Date.now(),response:t};return(0,D.aj)("fetch",e),t},t=>{const e={...s,endTimestamp:Date.now(),error:t};throw(0,D.aj)("fetch",e),t})}})}function Bt(t,e){return!!t&&"object"==typeof t&&!!t[e]}function Wt(t){return"string"==typeof t?t:t?Bt(t,"url")?t.url:t.toString?t.toString():"":""}var Jt=n(9766);const Gt=["fatal","error","warning","log","info","debug"];function Yt(t){return"warn"===t?"warning":Gt.includes(t)?t:"log"}function Kt(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 Xt=1024,zt="Breadcrumbs",Qt=(t={})=>{const e={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...t};return{name:zt,setupOnce(){},setup(t){var n;e.console&&function(t){const e="console";(0,D.s5)(e,t),(0,D.AS)(e,Rt)}(function(t){return function(e){if((0,T.KU)()!==t)return;const n={category:"console",data:{arguments:e.args,logger:"console"},level:Yt(e.level),message:(0,i.gt)(e.args," ")};if("assert"===e.level){if(!1!==e.args[0])return;n.message=`Assertion failed: ${(0,i.gt)(e.args.slice(1)," ")||"console.assert"}`,n.data.arguments=e.args.slice(1)}(0,T.ZQ)(n,{input:e.args,level:e.level})}}(t)),e.dom&&(n=function(t,e){return function(n){if((0,T.KU)()!==t)return;let s,i,o="object"==typeof e?e.serializeAttribute:void 0,a="object"==typeof e&&"number"==typeof e.maxStringLength?e.maxStringLength:void 0;a&&a>Xt&&(gt&&r.vF.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${a} was configured. Sentry will use 1024 instead.`),a=Xt),"string"==typeof o&&(o=[o]);try{const t=n.event,e=function(t){return!!t&&!!t.target}(t)?t.target:t;s=(0,Jt.Hd)(e,{keyAttrs:o,maxStringLength:a}),i=(0,Jt.xE)(e)}catch(t){s="<unknown>"}if(0===s.length)return;const c={category:`ui.${n.name}`,message:s};i&&(c.data={"ui.component_name":i}),(0,T.ZQ)(c,{event:n.event,name:n.name,global:n.global})}}(t,e.dom),(0,D.s5)("dom",n),(0,D.AS)("dom",Pt)),e.xhr&&Lt(function(t){return function(e){if((0,T.KU)()!==t)return;const{startTimestamp:n,endTimestamp:r}=e,s=e.xhr[Mt];if(!n||!r||!s)return;const{method:i,url:o,status_code:a,body:c}=s,u={method:i,url:o,status_code:a},d={xhr:e.xhr,input:c,startTimestamp:n,endTimestamp:r};(0,T.ZQ)({category:"xhr",data:u,type:"http"},d)}}(t)),e.fetch&&Ht(function(t){return function(e){if((0,T.KU)()!==t)return;const{startTimestamp:n,endTimestamp:r}=e;
1if(r&&(!e.fetchData.url.match(/sentry_key/)||"POST"!==e.fetchData.method))if(e.error){const t=e.fetchData,s={data:e.error,input:e.args,startTimestamp:n,endTimestamp:r};(0,T.ZQ)({category:"fetch",data:t,level:"error",type:"http"},s)}else{const t=e.response,s={...e.fetchData,status_code:t&&t.status},i={input:e.args,response:t,startTimestamp:n,endTimestamp:r};(0,T.ZQ)({category:"fetch",data:s,type:"http"},i)}}}(t)),e.history&&j(function(t){return function(e){if((0,T.KU)()!==t)return;let n=e.from,r=e.to;const s=Kt(kt.location.href);let i=n?Kt(n):void 0;const o=Kt(r);i&&i.path||(i=s),s.protocol===o.protocol&&s.host===o.host&&(r=o.relative),s.protocol===i.protocol&&s.host===i.host&&(n=i.relative),(0,T.ZQ)({category:"navigation",data:{from:n,to:r}})}}(t)),e.sentry&&t.on&&t.on("beforeSendEvent",function(t){return function(e){(0,T.KU)()===t&&(0,T.ZQ)({category:"sentry."+("transaction"===e.type?"transaction":"event"),event_id:e.event_id,level:e.level,message:(0,s.$X)(e)},{event:e})}}(t))}}};h(zt,Qt);const Vt="Dedupe",Zt=()=>{let t;return{name:Vt,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(!ee(t,e))return!1;if(!te(t,e))return!1;return!0}(t,e))return!0;if(function(t,e){const n=ne(e),r=ne(t);if(!n||!r)return!1;if(n.type!==r.type||n.value!==r.value)return!1;if(!ee(t,e))return!1;if(!te(t,e))return!1;return!0}(t,e))return!0;return!1}(e,t))return gt&&r.vF.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(t){}return t=e}}};h(Vt,Zt);function te(t,e){let n=re(t),r=re(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 ee(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 ne(t){return t.exception&&t.exception.values&&t.exception.values[0]}function re(t){const e=t.exception;if(e)try{return e.values[0].stacktrace.frames}catch(t){return}}var se=n(9677),ie=n(2853);const oe="GlobalHandlers",ae=(t={})=>{const e={onerror:!0,onunhandledrejection:!0,...t};return{name:oe,setupOnce(){Error.stackTraceLimit=50},setup(t){e.onerror&&(!function(t){(0,se.L)(e=>{const{stackParser:n,attachStacktrace:r}=de();if((0,T.KU)()!==t||It())return;const{msg:s,url:i,line:o,column:a,error:c}=e,u=void 0===c&&(0,B.Kg)(s)?function(t,e,n,r){const s=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let i=(0,B.T2)(t)?t.message:t,o="Error";const a=i.match(s);a&&(o=a[1],i=a[2]);const c={exception:{values:[{type:o,value:i}]}};return ce(c,e,n,r)}(s,i,o,a):ce(St(n,c||s,void 0,r,!1),i,o,a);u.level="error",(0,T.r)(u,{originalException:c,mechanism:{handled:!1,type:"onerror"}})})}(t),ue("onerror")),e.onunhandledrejection&&(!function(t){(0,ie.r)(e=>{const{stackParser:n,attachStacktrace:r}=de();if((0,T.KU)()!==t||It())return;const s=function(t){if((0,B.sO)(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),i=(0,B.sO)(s)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(s)}`}]}}:St(n,s,void 0,r,!0);i.level="error",(0,T.r)(i,{originalException:s,mechanism:{handled:!1,type:"onunhandledrejection"}})})}(t),ue("onunhandledrejection"))}}};h(oe,ae);function ce(t,e,n,r){const s=t.exception=t.exception||{},i=s.values=s.values||[],o=i[0]=i[0]||{},a=o.stacktrace=o.stacktrace||{},c=a.frames=a.frames||[],u=isNaN(parseInt(r,10))?void 0:r,d=isNaN(parseInt(n,10))?void 0:n,p=(0,B.Kg)(e)&&e.length>0?e:(0,Jt.$N)();return 0===c.length&&c.push({colno:u,filename:p,function:"?",in_app:!0,lineno:d}),t}function ue(t){gt&&r.vF.log(`Global Handler attached: ${t}`)}function de(){const t=(0,T.KU)();return t&&t.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const pe="HttpContext",le=()=>({name:pe,setupOnce(){},preprocessEvent(t){if(!kt.navigator&&!kt.location&&!kt.document)return;const e=t.request&&t.request.url||kt.location&&kt.location.href,{referrer:n}=kt.document||{},{userAgent:r}=kt.navigator||{},s={...t.request&&t.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},i={...t.request,...e&&{url:e},headers:s};t.request=i}});h(pe,le);function he(t,e,n=250,r,s,o,a){if(!(o.exception&&o.exception.values&&a&&(0,B.tH)(a.originalException,Error)))return;const c=o.exception.values.length>0?o.exception.values[o.exception.values.length-1]:void 0;var u,d;c&&(o.exception.values=(u=fe(t,e,s,a.originalException,r,o.exception.values,c,0),d=n,u.map(t=>
1(t.value&&(t.value=(0,i.xv)(t.value,d)),t))))}function fe(t,e,n,r,s,i,o,a){if(i.length>=n+1)return i;let c=[...i];if((0,B.tH)(r[s],Error)){me(o,a);const i=t(e,r[s]),u=c.length;ge(i,s,u,a),c=fe(t,e,n,r[s],s,[i,...c],i,u)}return Array.isArray(r.errors)&&r.errors.forEach((r,i)=>{if((0,B.tH)(r,Error)){me(o,a);const u=t(e,r),d=c.length;ge(u,`errors[${i}]`,d,a),c=fe(t,e,n,r,s,[u,...c],u,d)}}),c}function me(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 ge(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 _e="LinkedErrors",ve=(t={})=>{const e=t.limit||5,n=t.key||"cause";return{name:_e,setupOnce(){},preprocessEvent(t,r,s){const i=s.getOptions();he(_t,i.stackParser,i.maxValueLength,n,e,t,r)}}},ye=(h(_e,ve),["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"]),Te="TryCatch",be=(t={})=>{const e={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...t};return{name:Te,setupOnce(){e.setTimeout&&(0,y.GS)(kt,"setTimeout",Se),e.setInterval&&(0,y.GS)(kt,"setInterval",Se),e.requestAnimationFrame&&(0,y.GS)(kt,"requestAnimationFrame",Ee),e.XMLHttpRequest&&"XMLHttpRequest"in kt&&(0,y.GS)(XMLHttpRequest.prototype,"send",xe);const t=e.eventTarget;if(t){(Array.isArray(t)?t:ye).forEach(ke)}}}};h(Te,be);function Se(t){return function(...e){const n=e[0];return e[0]=Ct(n,{mechanism:{data:{function:(0,w.qQ)(t)},handled:!1,type:"instrument"}}),t.apply(this,e)}}function Ee(t){return function(e){return t.apply(this,[Ct(e,{mechanism:{data:{function:"requestAnimationFrame",handler:(0,w.qQ)(t)},handled:!1,type:"instrument"}})])}}function xe(t){return function(...e){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(t=>{t in n&&"function"==typeof n[t]&&(0,y.GS)(n,t,function(e){const n={mechanism:{data:{function:t,handler:(0,w.qQ)(e)},handled:!1,type:"instrument"}},r=(0,y.sp)(e);return r&&(n.mechanism.data.handler=(0,w.qQ)(r)),Ct(e,n)})}),t.apply(this,e)}}function ke(t){const e=kt,n=e[t]&&e[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&((0,y.GS)(n,"addEventListener",function(e){return function(n,r,s){try{"function"==typeof r.handleEvent&&(r.handleEvent=Ct(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:(0,w.qQ)(r),target:t},handled:!1,type:"instrument"}}))}catch(t){}return e.apply(this,[n,Ct(r,{mechanism:{data:{function:"addEventListener",handler:(0,w.qQ)(r),target:t},handled:!1,type:"instrument"}}),s])}}),(0,y.GS)(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 we="?";function Ie(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 Ce=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Oe=/\((\S*)(?::(\d+))(?::(\d+))\)/,Re=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,$e=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Ne=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Fe=[[30,t=>{const e=Ce.exec(t);if(e){if(e[2]&&0===e[2].indexOf("eval")){const t=Oe.exec(e[2]);t&&(e[2]=t[1],e[3]=t[2],e[4]=t[3])}const[t,n]=Pe(e[1]||we,e[2]);return Ie(n,t,e[3]?+e[3]:void 0,e[4]?+e[4]:void 0)}}],[50,t=>{const e=Re.exec(t);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){const t=$e.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]||we;return[n,t]=Pe(n,t),Ie(t,n,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}}],[40,t=>{const e=Ne.exec(t);return e?Ie(e[2],e[1]||we,+e[3],e[4]?+e[4]:void 0):void 0}]],De=(0,w.gd)(...Fe),Pe=(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]:we,n?`safari-extension:${e}`:`safari-web-extension:${e}`]:[t,e]};function Ae(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(0,W.xg)(new et("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 W.T2((n,r)=>{let s=e.length;if(!s)return n(!0);const i=setTimeout(()=>{t&&t>0&&n(!1)},t);e.forEach(t=>{(0,W.XW)(t).then(()=>{--s||(clearTimeout(i),n(!0))},r)})})}}}function je(t,{statusCode:e,headers:n},r=Date.now()){const s={...t},i=n&&n["x-sentry-rate-limits"],o=n&&n["retry-after"];if(i)for(const t of i.trim().split(",")){const[e,n,,,i]=t.split(":",5),o=parseInt(e,10),a=1e3*(isNaN(o)?60:o);if(n)for(const t of n.split(";"))"metric_bucket"===t&&i&&!i.split(";").includes("custom")||(s[t]=r+a);else s.all=r+a}else o?s.all=r+function(t,e=Date.now()){const n=parseInt(`${t}`,10);if(!isNaN(n))return 1e3*n;const r=Date.parse(`${t}`);return isNaN(r)?6e4:r-e}(o,r):429===e&&(s.all=r+6e4);return s}function Me(t,e,n=Ae(t.bufferSize||30)){let s={};function i(i){const a=[];if(K(i,(e,n)=>{const r=Z(n);if(function(t,e,n=Date.now()){return function(t,e){return t[e]||t.all||0}(t,e)>n}(s,r)){const s=Le(e,n);t.recordDroppedEvent("ratelimit_backoff",r,s)}else a.push(e)}),0===a.length)return(0,W.XW)();const c=G(i[0],a),u=e=>{K(c,(n,r)=>{const s=Le(n,r);t.recordDroppedEvent(e,Z(r),s)})};return n.add(()=>e({body:z(c,t.textEncoder)}).then(t=>(void 0!==t.statusCode&&(t.statusCode<200||t.statusCode>=300)&&o.T&&r.vF.warn(`Sentry responded with status code ${t.statusCode} to sent event.`),s=je(s,t),t),t=>{throw u("network_error"),t})).then(t=>t,t=>{if(t instanceof et)return o.T&&r.vF.error("Skipped sending event because buffer is full."),u("queue_overflow"),(0,W.XW)();throw t})}return i.__sentry__baseTransport__=!0,{send:i,flush:t=>n.drain(t)}}function Le(t,e){if("event"===e||"transaction"===e)return Array.isArray(t)?t[1]:void 0}let qe;function He(t,e=function(){if(qe)return qe;if($(kt.fetch))return qe=kt.fetch.bind(kt);const t=kt.document;let e=kt.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){gt&&r.vF.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}return qe=e.bind(kt)}()){let n=0,s=0;return Me(t,function(r){const i=r.body.length;n+=i,s++;const o={body:r.body,method:"POST",referrerPolicy:"origin",headers:t.headers,keepalive:n<=6e4&&s<15,...t.fetchOptions};try{return e(t.url,o).then(t=>(n-=i,s--,{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 qe=void 0,n-=i,s--,(0,W.xg)(t)}})}function Ue(t){return Me(t,function(e){return new W.T2((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 Be=[_(),x(),be(),Qt(),ae(),ve(),Zt(),le()];function We(t={}){void 0===t.defaultIntegrations&&(t.defaultIntegrations=[...Be]),void 0===t.release&&("string"==typeof __SENTRY_RELEASE__&&(t.release=__SENTRY_RELEASE__),kt.SENTRY_RELEASE&&kt.SENTRY_RELEASE.id&&(t.release=kt.SENTRY_RELEASE.id)),void 0===t.autoSessionTracking&&(t.autoSessionTracking=!0),void 0===t.sendClientReports&&(t.sendClientReports=!0);const e={...t,stackParser:(0,w.vk)(t.stackParser||De),integrations:d(t),transport:t.transport||(R()?He:Ue)};k(Ot,e),t.autoSessionTracking&&function(){if(void 0===kt.document)return void(gt&&r.vF.warn("Session tracking in non-browser environment with @
1sentry/browser is not supported."));(0,T.J0)({ignoreDuration:!0}),(0,T.J5)(),j(({from:t,to:e})=>{void 0!==t&&t!==e&&((0,T.J0)({ignoreDuration:!0}),(0,T.J5)())})}()}var Je=n(6849),Ge=n(1842),Ye=n(7998),Ke=n(1869),Xe=n(6524);const ze="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;var Qe=n(3445);const Ve=C.OW;const Ze=(t,e,n)=>{let r,s;return i=>{e.value>=0&&(i||n)&&(s=e.value-(r||0),(s||void 0===r)&&(r=e.value,e.delta=s,t(e)))}},tn=()=>Ve.__WEB_VITALS_POLYFILL__?Ve.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||(()=>{const t=Ve.performance.timing,e=Ve.performance.navigation.type,n={entryType:"navigation",startTime:0,type:2==e?"back_forward":1===e?"reload":"navigate"};for(const e in t)"navigationStart"!==e&&"toJSON"!==e&&(n[e]=Math.max(t[e]-t.navigationStart,0));return n})()):Ve.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],en=()=>{const t=tn();return t&&t.activationStart||0},nn=(t,e)=>{const n=tn();let r="navigate";return n&&(r=Ve.document&&Ve.document.prerendering||en()>0?"prerender":n.type.replace(/_/g,"-")),{name:t,value:void 0===e?-1:e,rating:"good",delta:0,entries:[],id:`v3-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:r}},rn=(t,e,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(t)){const r=new PerformanceObserver(t=>{e(t.getEntries())});return r.observe({type:t,buffered:!0,...n}),r}}catch(t){}},sn=(t,e)=>{const n=r=>{"pagehide"!==r.type&&"hidden"!==Ve.document.visibilityState||(t(r),e&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};Ve.document&&(addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0))};let on=-1;const an=()=>(on<0&&(Ve.document&&Ve.document.visibilityState&&(on="hidden"!==Ve.document.visibilityState||Ve.document.prerendering?1/0:0),sn(({timeStamp:t})=>{on=t},!0)),{get firstHiddenTime(){return on}});let cn=0,un=1/0,dn=0;const pn=t=>{t.forEach(t=>{t.interactionId&&(un=Math.min(un,t.interactionId),dn=Math.max(dn,t.interactionId),cn=dn?(dn-un)/7+1:0)})};let ln;const hn=()=>{"interactionCount"in performance||ln||(ln=rn("event",pn,{type:"event",buffered:!0,durationThreshold:0}))},fn=()=>ln?cn:performance.interactionCount||0,mn=[],gn={},_n=t=>{const e=mn[mn.length-1],n=gn[t.interactionId];if(n||mn.length<10||t.duration>e.latency){if(n)n.entries.push(t),n.latency=Math.max(n.latency,t.duration);else{const e={id:t.interactionId,latency:t.duration,entries:[t]};gn[e.id]=e,mn.push(e)}mn.sort((t,e)=>e.latency-t.latency),mn.splice(10).forEach(t=>{delete gn[t.id]})}},vn=(t,e)=>{e=e||{},hn();const n=nn("INP");let r;const s=t=>{t.forEach(t=>{if(t.interactionId&&_n(t),"first-input"===t.entryType){!mn.some(e=>e.entries.some(e=>t.duration===e.duration&&t.startTime===e.startTime))&&_n(t)}});const e=(()=>{const t=Math.min(mn.length-1,Math.floor(fn()/50));return mn[t]})();e&&e.latency!==n.value&&(n.value=e.latency,n.entries=e.entries,r())},i=rn("event",s,{durationThreshold:e.durationThreshold||40});r=Ze(t,n,e.reportAllChanges),i&&(i.observe({type:"first-input",buffered:!0}),sn(()=>{s(i.takeRecords()),n.value<0&&fn()>0&&(n.value=0,n.entries=[]),r(!0)}))},yn={},Tn=t=>{Ve.document&&(Ve.document.prerendering?addEventListener("prerenderingchange",()=>Tn(t),!0):"complete"!==Ve.document.readyState?addEventListener("load",()=>Tn(t),!0):setTimeout(t,0))},bn={},Sn={};let En,xn,kn,wn,In;function Cn(t,e){return An(t,e),Sn[t]||(!function(t){const e={};"event"===t&&(e.durationThreshold=0);rn(t,e=>{On(t,{entries:e})},e)}(t),Sn[t]=!0),jn(t,e)}function On(t,e){const n=bn[t];if(n&&n.length)for(const s of n)try{s(e)}catch(e){ze&&r.vF.error(`Error while triggering instrumentation handler.\nType: ${t}\nName: ${(0,w.qQ)(s)}\nError:`,e)}}function Rn(){return((t,e={})=>{const n=nn("CLS",0);let r,s=0,i=[];const o=t=>{t.forEach(t=>{if(!t.hadRecentInput){const e=i[0],o=i[i.length-1];s&&0!==i.length&&t.startTime-o.startTime<1e3&&t.startTime-e.startTime<5e3?(s+=t.value,i.push(t)):(s=t.value,i=[t]),s>n.value&&(n.value=s,n.entries=i,r&&r())}})},a=rn("layout-shift",o);if(a){r=Ze(t,n,e.reportAllChanges);const s=()=>{o(a.takeRecords()),r(!0)};return sn(s),s}})(t=>{On("cls",{metric:t}),En=t},{reportAllChanges:!0})}function $n(){return(t=>{const e=an(),n=nn("FID");let r;const s=t=>{t.startTime<e.firstHiddenTime&&(n.value=t.processingStart-t.startTime,n.entr
1ies.push(t),r(!0))},i=t=>{t.forEach(s)},o=rn("first-input",i);r=Ze(t,n),o&&sn(()=>{i(o.takeRecords()),o.disconnect()},!0)})(t=>{On("fid",{metric:t}),xn=t})}function Nn(){return(t=>{const e=an(),n=nn("LCP");let r;const s=t=>{const s=t[t.length-1];if(s){const t=Math.max(s.startTime-en(),0);t<e.firstHiddenTime&&(n.value=t,n.entries=[s],r())}},i=rn("largest-contentful-paint",s);if(i){r=Ze(t,n);const e=()=>{yn[n.id]||(s(i.takeRecords()),i.disconnect(),yn[n.id]=!0,r(!0))};return["keydown","click"].forEach(t=>{Ve.document&&addEventListener(t,e,{once:!0,capture:!0})}),sn(e,!0),e}})(t=>{On("lcp",{metric:t}),kn=t})}function Fn(){return((t,e)=>{e=e||{};const n=nn("TTFB"),r=Ze(t,n,e.reportAllChanges);Tn(()=>{const t=tn();if(t){if(n.value=Math.max(t.responseStart-en(),0),n.value<0||n.value>performance.now())return;n.entries=[t],r(!0)}})})(t=>{On("ttfb",{metric:t}),wn=t})}function Dn(){return vn(t=>{On("inp",{metric:t}),In=t})}function Pn(t,e,n,r,s=!1){let i;return An(t,e),Sn[t]||(i=n(),Sn[t]=!0),r&&e({metric:r}),jn(t,e,s?i:void 0)}function An(t,e){bn[t]=bn[t]||[],bn[t].push(e)}function jn(t,e,n){return()=>{n&&n();const r=bn[t];if(!r)return;const s=r.indexOf(e);-1!==s&&r.splice(s,1)}}var Mn=n(5527);function Ln(t){return[{type:"span"},t]}var qn=n(3551),Hn=n(4662);function Un(t){return"number"==typeof t&&isFinite(t)}function Bn(t,{startTimestamp:e,...n}){return e&&t.startTimestamp>e&&(t.startTimestamp=e),t.startChild({startTimestamp:e,...n})}function Wn(t){return t/1e3}function Jn(){return Ve&&Ve.addEventListener&&Ve.performance}let Gn,Yn,Kn=0,Xn={};function zn(){const t=Jn();if(t&&mt.k3){t.mark&&Ve.performance.mark("sentry-tracing-init");const e=Pn("fid",({metric:t})=>{const e=t.entries[t.entries.length-1];if(!e)return;const n=Wn(mt.k3),s=Wn(e.startTime);ze&&r.vF.log("[Measurements] Adding FID"),Xn.fid={value:t.value,unit:"millisecond"},Xn["mark.fid"]={value:n+s,unit:"second"}},$n,xn),n=function(t,e=!1){return Pn("cls",t,Rn,En,e)}(({metric:t})=>{const e=t.entries[t.entries.length-1];e&&(ze&&r.vF.log("[Measurements] Adding CLS"),Xn.cls={value:t.value,unit:""},Yn=e)},!0),s=function(t,e=!1){return Pn("lcp",t,Nn,kn,e)}(({metric:t})=>{const e=t.entries[t.entries.length-1];e&&(ze&&r.vF.log("[Measurements] Adding LCP"),Xn.lcp={value:t.value,unit:"millisecond"},Gn=e)},!0),i=function(t){return Pn("ttfb",t,Fn,wn)}(({metric:t})=>{t.entries[t.entries.length-1]&&(ze&&r.vF.log("[Measurements] Adding TTFB"),Xn.ttfb={value:t.value,unit:"millisecond"})});return()=>{e(),n(),s(),i()}}return()=>{}}function Qn(t,e){if(Jn()&&mt.k3){const n=function(t,e){return n=({metric:n})=>{if(void 0===n.value)return;const s=n.entries.find(t=>t.duration===n.value&&void 0!==Vn[t.name]),i=(0,T.KU)();if(!s||!i)return;const o=Vn[s.name],a=i.getOptions(),c=Wn(mt.k3+s.startTime),u=Wn(n.value),d=void 0!==s.interactionId?t[s.interactionId]:void 0;if(void 0===d)return;const{routeName:p,parentContext:l,activeTransaction:h,user:f,replayId:m}=d,g=void 0!==f?f.email||f.id||f.ip_address:void 0,_=void 0!==h?h.getProfileId():void 0,v=new Mn.L({startTimestamp:c,endTimestamp:c+u,op:`ui.interaction.${o}`,name:(0,Jt.Hd)(s.target),attributes:{release:a.release,environment:a.environment,transaction:p,...void 0!==g&&""!==g?{user:g}:{},...void 0!==_?{profile_id:_}:{},...void 0!==m?{replay_id:m}:{}},exclusiveTime:n.value,measurements:{inp:{value:n.value,unit:"millisecond"}}}),y=function(t,e,n){if(!(0,qn.w)(e))return!1;let s;return s=void 0!==t&&"function"==typeof e.tracesSampler?e.tracesSampler({transactionContext:t,name:t.name,parentSampled:t.parentSampled,attributes:{...t.data,...t.attributes},location:Ve.location}):void 0!==t&&void 0!==t.sampled?t.sampled:void 0!==e.tracesSampleRate?e.tracesSampleRate:1,(0,Hn.v)(s)?!0===s?n:!1===s?0:s*n:(ze&&r.vF.warn("[Tracing] Discarding interaction span because of invalid sample rate."),!1)}(l,a,e);if(y&&Math.random()<y){const t=v?function(t,e){const n={sent_at:(new Date).toISOString()};return e&&(n.dsn=q(e)),G(n,t.map(Ln))}([v],i.getDsn()):void 0,e=i&&i.getTransport();return void(e&&t&&e.send(t).then(null,t=>{ze&&r.vF.error("Error while sending interaction:",t)}))}},Pn("inp",n,Dn,In);var n}(t,e);return()=>{n()}}return()=>{}}const Vn={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};function Zn(t){const e=Jn();if(!e||!Ve.performance.getEntries||!mt.k3)return;ze&&r.vF.log("[Tracing] Adding & adjusting spans using Performance API");const n=Wn(mt.k3),s=e.getEntries(),{op:i,start_timestamp:o}=(0,Qe.et)(t);
1if(s.slice(Kn).forEach(e=>{const s=Wn(e.startTime),i=Wn(e.duration);if(!("navigation"===t.op&&o&&n+s<o))switch(e.entryType){case"navigation":!function(t,e,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{tr(t,e,r,n)}),tr(t,e,"secureConnection",n,"TLS/SSL","connectEnd"),tr(t,e,"fetch",n,"cache","domainLookupStart"),tr(t,e,"domainLookup",n,"DNS"),function(t,e,n){e.responseEnd&&(Bn(t,{op:"browser",origin:"auto.browser.browser.metrics",description:"request",startTimestamp:n+Wn(e.requestStart),endTimestamp:n+Wn(e.responseEnd)}),Bn(t,{op:"browser",origin:"auto.browser.browser.metrics",description:"response",startTimestamp:n+Wn(e.responseStart),endTimestamp:n+Wn(e.responseEnd)}))}(t,e,n)}(t,e,n);break;case"mark":case"paint":case"measure":{!function(t,e,n,r,s){const i=s+n,o=i+r;Bn(t,{description:e.name,endTimestamp:o,op:e.entryType,origin:"auto.resource.browser.metrics",startTimestamp:i})}(t,e,s,i,n);const o=an(),a=e.startTime<o.firstHiddenTime;"first-paint"===e.name&&a&&(ze&&r.vF.log("[Measurements] Adding FP"),Xn.fp={value:e.startTime,unit:"millisecond"}),"first-contentful-paint"===e.name&&a&&(ze&&r.vF.log("[Measurements] Adding FCP"),Xn.fcp={value:e.startTime,unit:"millisecond"});break}case"resource":!function(t,e,n,r,s,i){if("xmlhttprequest"===e.initiatorType||"fetch"===e.initiatorType)return;const o=Kt(n),a={};er(a,e,"transferSize","http.response_transfer_size"),er(a,e,"encodedBodySize","http.response_content_length"),er(a,e,"decodedBodySize","http.decoded_response_content_length"),"renderBlockingStatus"in e&&(a["resource.render_blocking_status"]=e.renderBlockingStatus);o.protocol&&(a["url.scheme"]=o.protocol.split(":").pop());o.host&&(a["server.address"]=o.host);a["url.same_origin"]=n.includes(Ve.location.origin);const c=i+r,u=c+s;Bn(t,{description:n.replace(Ve.location.origin,""),endTimestamp:u,op:e.initiatorType?`resource.${e.initiatorType}`:"resource.other",origin:"auto.resource.browser.metrics",startTimestamp:c,data:a})}(t,e,e.name,s,i,n)}}),Kn=Math.max(s.length-1,0),function(t){const e=Ve.navigator;if(!e)return;const n=e.connection;n&&(n.effectiveType&&t.setTag("effectiveConnectionType",n.effectiveType),n.type&&t.setTag("connectionType",n.type),Un(n.rtt)&&(Xn["connection.rtt"]={value:n.rtt,unit:"millisecond"}));Un(e.deviceMemory)&&t.setTag("deviceMemory",`${e.deviceMemory} GB`);Un(e.hardwareConcurrency)&&t.setTag("hardwareConcurrency",String(e.hardwareConcurrency))}(t),"pageload"===i){!function(t){const e=tn();if(!e)return;const{responseStart:n,requestStart:s}=e;s<=n&&(ze&&r.vF.log("[Measurements] Adding TTFB Request Time"),t["ttfb.requestTime"]={value:n-s,unit:"millisecond"})}(Xn),["fcp","fp","lcp"].forEach(t=>{if(!Xn[t]||!o||n>=o)return;const e=Xn[t].value,s=n+Wn(e),i=Math.abs(1e3*(s-o)),a=i-e;ze&&r.vF.log(`[Measurements] Normalized ${t} from ${e} to ${i} (${a})`),Xn[t].value=i});const e=Xn["mark.fid"];e&&Xn.fid&&(Bn(t,{description:"first input delay",endTimestamp:e.value+Wn(Xn.fid.value),op:"ui.action",origin:"auto.ui.browser.metrics",startTimestamp:e.value}),delete Xn["mark.fid"]),"fcp"in Xn||delete Xn.cls,Object.keys(Xn).forEach(t=>{!function(t,e,n){const r=(0,Ye.Z)();r&&r.setMeasurement(t,e,n)}(t,Xn[t].value,Xn[t].unit)}),function(t){Gn&&(ze&&r.vF.log("[Measurements] Adding LCP Data"),Gn.element&&t.setTag("lcp.element",(0,Jt.Hd)(Gn.element)),Gn.id&&t.setTag("lcp.id",Gn.id),Gn.url&&t.setTag("lcp.url",Gn.url.trim().slice(0,200)),t.setTag("lcp.size",Gn.size));Yn&&Yn.sources&&(ze&&r.vF.log("[Measurements] Adding CLS Data"),Yn.sources.forEach((e,n)=>t.setTag(`cls.source.${n+1}`,(0,Jt.Hd)(e.node))))}(t)}Gn=void 0,Yn=void 0,Xn={}}function tr(t,e,n,r,s,i){const o=i?e[i]:e[`${n}End`],a=e[`${n}Start`];a&&o&&Bn(t,{op:"browser",origin:"auto.browser.browser.metrics",description:s||n,startTimestamp:r+Wn(a),endTimestamp:r+Wn(o)})}function er(t,e,n,r){const s=e[n];null!=s&&s<2147483647&&(t[r]=s)}var nr=n(3317),rr=n(6954),sr=n(5584);function ir(t,e,n,r,s="auto.http.browser"){if(!(0,qn.w)()||!t.fetchData)return;const i=e(t.fetchData.url);if(t.endTimestamp&&i){const e=t.fetchData.__span;if(!e)return;const n=r[e];return void(n&&(!function(t,e){if(e.response){(0,nr.N8)(t,e.response.status);const n=e.response&&e.response.headers&&e.response.headers.get("content-length");if(n){const e=parseInt(n);e>0&&t.setAttribute("http.response_content_length",e)}}else e.error&&t.setStatus("internal_error");t.end()}(n,t),delete r[e]))}const o=(0,T.o5)(),a=(0,T.KU)(),{method:u,url:d}=t.fetchData,p=function(t){try{return new URL(t).href}catch(t){return}}(d),l=p?Kt(p).host:void 0,h=i?(0,rr.Uk)({name:`${u} ${d}`,onlyIfParent:!0,attributes:{url:d,type:"fetch","http.method":u,"http.url":p,"server.address":l,[Ke.JD]:s},op:"http.client"}):void 0;if(h&&(t.fetchData.__span=h.spanContext().spanId,r[h.spanContext().spanId]=h),n(t.fetchData.url)&&a){const e=t.args[0];t.args[1]=t.args[1]||{};const n=t.args[1];n.headers=function(t,e,n,r,s){const i=s||n.getSpan(),o=(0,c.rm)(),{traceId:a,spanId:u,sampled:d,dsc:p}={...o.getPropagationContext(),...n.getPropagationContext()},l=i?(0,Qe.Qh)(i):(0,Xe.TC)(a,u,d),h=(0,sr.De)(p||(i?(0,at.k)(i):(0,at.l)(a,e,n))),f=r.headers||("undefined"!=typeof Request&&(0,B.tH)(t,Request)?t.headers:void 0);if(f){if("undefined"!=typeof Headers&&(0,B.tH)(f,Headers)){const t=new Headers(f);return t.append("sentry-trace",l),h&&t.append(sr.hF,h),t}if(Array.isArray(f)){const t=[...f,["sentry-trace",l]];return h&&t.push([sr.hF,h]),t}{const t="baggage"in f?f.baggage:void 0,e=[];return Array.isArray(t)?e.push(...t):t&&e.push(t),h&&e.push(h),{...f,"sentry-trace":l,baggage:e.length>0?e.join(","):void 0}}}return{"sentry-trace":l,baggage:h}}(e,a,o,n,h)}return h}const or=["localhost",/^\/(?!\/)/],ar={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,tracingOrigins:or,tracePropagationTargets:or};function cr(t){const{traceFetch:e,traceXHR:n,tracePropagationTargets:r,tracingOrigins:s,shouldCreateSpanForRequest:o,enableHTTPTimings:a}={traceFetch:ar.traceFetch,traceXHR:ar.traceXHR,...t},u="function"==typeof o?o:t=>!0,d=t=>function(t,e){return(0,i.Xr)(t,e||or)}(t,r||s),p={};e&&Ht(t=>{const e=ir(t,u,d,p);if(e){const n=pr(t.fetchData.url),r=n?Kt(n).host:void 0;e.setAttributes({"http.url":n,"server.address":r})}a&&e&&ur(e)}),n&&Lt(t=>{const e=function(t,e,n,r){const s=t.xhr,i=s&&s[Mt];if(!(0,qn.w)()||!s||s.__sentry_own_request__||!i)return;const o=e(i.url);if(t.endTimestamp&&o){const t=s.__sentry_xhr_span_id__;if(!t)return;const e=r[t];return void(e&&void 0!==i.status_code&&((0,nr.N8)(e,i.status_code),e.end(),delete r[t]))}const a=(0,T.o5)(),u=(0,c.rm)(),d=pr(i.url),p=d?Kt(d).host:void 0,l=o?(0,rr.Uk)({name:`${i.method} ${i.url}`,onlyIfParent:!0,attributes:{type:"xhr","http.method":i.method,"http.url":d,url:i.url,"server.address":p,[Ke.JD]:"auto.http.browser"},op:"http.client"}):void 0;l&&(s.__sentry_xhr_span_id__=l.spanContext().spanId,r[s.__sentry_xhr_span_id__]=l);const h=(0,T.KU)();if(s.setRequestHeader&&n(i.url)&&h){const{traceId:t,spanId:e,sampled:n,dsc:r}={...u.getPropagationContext(),...a.getPropagationContext()};!function(t,e,n){try{t.setRequestHeader("sentry-trace",e),n&&t.setRequestHeader(sr.h
1F,n)}catch(t){}}(s,l?(0,Qe.Qh)(l):(0,Xe.TC)(t,e,n),(0,sr.De)(r||(l?(0,at.k)(l):(0,at.l)(t,h,a))))}return l}(t,u,d,p);a&&e&&ur(e)})}function ur(t){const{url:e}=(0,Qe.et)(t).data||{};if(!e||"string"!=typeof e)return;const n=Cn("resource",({entries:r})=>{r.forEach(r=>{if(function(t){return"resource"===t.entryType&&"initiatorType"in t&&"string"==typeof t.nextHopProtocol&&("fetch"===t.initiatorType||"xmlhttprequest"===t.initiatorType)}(r)&&r.name.endsWith(e)){const e=function(t){const{name:e,version:n}=function(t){let e="unknown",n="unknown",r="";for(const s of t){if("/"===s){[e,n]=t.split("/");break}if(!isNaN(Number(s))){e="h"===r?"http":r,n=t.split(r)[1];break}r+=s}r===t&&(e=r);return{name:e,version:n}}(t.nextHopProtocol),r=[];if(r.push(["network.protocol.version",n],["network.protocol.name",e]),!mt.k3)return r;return[...r,["http.request.redirect_start",dr(t.redirectStart)],["http.request.fetch_start",dr(t.fetchStart)],["http.request.domain_lookup_start",dr(t.domainLookupStart)],["http.request.domain_lookup_end",dr(t.domainLookupEnd)],["http.request.connect_start",dr(t.connectStart)],["http.request.secure_connection_start",dr(t.secureConnectionStart)],["http.request.connection_end",dr(t.connectEnd)],["http.request.request_start",dr(t.requestStart)],["http.request.response_start",dr(t.responseStart)],["http.request.response_end",dr(t.responseEnd)]]}(r);e.forEach(e=>t.setAttribute(...e)),setTimeout(n)}})})}function dr(t=0){return((mt.k3||performance.timeOrigin)+t)/1e3}function pr(t){try{return new URL(t,Ve.location.origin).href}catch(t){return}}const lr={...Je.Cq,markBackgroundTransactions:!0,routingInstrumentation:function(t,e=!0,n=!0){if(!Ve||!Ve.location)return void(ze&&r.vF.warn("Could not initialize routing instrumentation due to invalid location"));let s,i=Ve.location.href;e&&(s=t({name:Ve.location.pathname,startTimestamp:mt.k3?mt.k3/1e3:void 0,op:"pageload",origin:"auto.pageload.browser",metadata:{source:"url"}})),n&&j(({to:e,from:n})=>{void 0===n&&i&&-1!==i.indexOf(e)?i=void 0:n!==e&&(i=void 0,s&&(ze&&r.vF.log(`[Tracing] Finishing current transaction with op: ${s.op}`),s.end()),s=t({name:Ve.location.pathname,op:"navigation",origin:"auto.navigation.browser",metadata:{source:"url"}}))})},startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,enableLongTask:!0,enableInp:!1,interactionsSampleRate:1,_experiments:{},...ar};function hr(t){const e=(0,Jt.NX)(`meta[name=${t}]`);return e?e.getAttribute("content"):void 0}function fr(t){const e=t.attributes&&t.attributes[Ke.i_],n=t.data&&t.data[Ke.i_],r=t.metadata&&t.metadata.source;return e||n||r}var mr=n(2581);const gr=class{constructor(t){this.name="BrowserTracing",this._hasSetTracePropagationTargets=!1,(0,Ge.U)(),ze&&(this._hasSetTracePropagationTargets=!(!t||!t.tracePropagationTargets&&!t.tracingOrigins)),this.options={...lr,...t},void 0!==this.options._experiments.enableLongTask&&(this.options.enableLongTask=this.options._experiments.enableLongTask),t&&!t.tracePropagationTargets&&t.tracingOrigins&&(this.options.tracePropagationTargets=t.tracingOrigins),this._collectWebVitals=zn(),this._interactionIdToRouteNameMapping={},this.options.enableInp&&Qn(this._interactionIdToRouteNameMapping,this.options.interactionsSampleRate),this.options.enableLongTask&&Cn("longtask",({entries:t})=>{for(const e of t){const t=(0,Ye.Z)();if(!t)return;const n=Wn(mt.k3+e.startTime),r=Wn(e.duration);t.startChild({description:"Main UI thread blocked",op:"ui.long-task",origin:"auto.ui.browser.metrics",startTimestamp:n,endTimestamp:n+r})}}),this.options._experiments.enableInteractions&&Cn("event",({entries:t})=>{for(const e of t){const t=(0,Ye.Z)();if(!t)return;if("click"===e.name){const n=Wn(mt.k3+e.startTime),r=Wn(e.duration),s={description:(0,Jt.Hd)(e.target),op:`ui.interaction.${e.name}`,origin:"auto.ui.browser.metrics",startTimestamp:n,endTimestamp:n+r},i=(0,Jt.xE)(e.target);i&&(s.attributes={"ui.component_name":i}),t.startChild(s)}}}),this._latestRoute={name:void 0,context:void 0}}setupOnce(t,e){this._getCurrentHub=e;const n=e().getClient(),s=n&&n.getOptions(),{routingInstrumentation:i,startTransactionOnLocationChange:o,startTransactionOnPageLoad:a,markBackgroun
1dTransactions:c,traceFetch:u,traceXHR:d,shouldCreateSpanForRequest:p,enableHTTPTimings:l,_experiments:h}=this.options,f=s&&s.tracePropagationTargets,m=f||this.options.tracePropagationTargets;ze&&this._hasSetTracePropagationTargets&&f&&r.vF.warn("[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used."),i(t=>{const n=this._createRouteTransaction(t);return this.options._experiments.onStartRouteTransaction&&this.options._experiments.onStartRouteTransaction(n,t,e),n},a,o),c&&(Ve.document?Ve.document.addEventListener("visibilitychange",()=>{const t=(0,Ye.Z)();if(Ve.document.hidden&&t){const e="cancelled",{op:n,status:s}=(0,Qe.et)(t);ze&&r.vF.log(`[Tracing] Transaction: ${e} -> since tab moved to the background, op: ${n}`),s||t.setStatus(e),t.setTag("visibilitychange","document.hidden"),t.end()}}):ze&&r.vF.warn("[Tracing] Could not set up background tab detection due to lack of global document")),h.enableInteractions&&this._registerInteractionListener(),this.options.enableInp&&this._registerInpInteractionListener(),cr({traceFetch:u,traceXHR:d,tracePropagationTargets:m,shouldCreateSpanForRequest:p,enableHTTPTimings:l})}_createRouteTransaction(t){if(!this._getCurrentHub)return void(ze&&r.vF.warn(`[Tracing] Did not create ${t.op} transaction because _getCurrentHub is invalid.`));const e=this._getCurrentHub(),{beforeNavigate:n,idleTimeout:s,finalTimeout:i,heartbeatInterval:o}=this.options,a="pageload"===t.op;let c;if(a){const e=a?hr("sentry-trace"):"",n=a?hr("baggage"):void 0,{traceId:r,dsc:s,parentSpanId:i,sampled:o}=(0,Xe.kM)(e,n);c={traceId:r,parentSpanId:i,parentSampled:o,...t,metadata:{...t.metadata,dynamicSamplingContext:s},trimEnd:!0}}else c={trimEnd:!0,...t};const u="function"==typeof n?n(c):c,d=void 0===u?{...c,sampled:!1}:u;d.metadata=d.name!==c.name?{...d.metadata,source:"custom"}:d.metadata,this._latestRoute.name=d.name,this._latestRoute.context=d,!1===d.sampled&&ze&&r.vF.log(`[Tracing] Will not send ${d.op} transaction because of beforeNavigate.`),ze&&r.vF.log(`[Tracing] Starting ${d.op} transaction on scope`);const{location:p}=Ve,l=(0,Ge.p)(e,d,s,i,!0,{location:p},o,a);return a&&Ve.document&&(Ve.document.addEventListener("readystatechange",()=>{["interactive","complete"].includes(Ve.document.readyState)&&l.sendAutoFinishSignal()}),["interactive","complete"].includes(Ve.document.readyState)&&l.sendAutoFinishSignal()),l.registerBeforeFinishCallback(t=>{this._collectWebVitals(),Zn(t)}),l}_registerInteractionListener(){let t;const e=()=>{const{idleTimeout:e,finalTimeout:n,heartbeatInterval:s}=this.options,i="ui.action.click",o=(0,Ye.Z)();if(o&&o.op&&["navigation","pageload"].includes(o.op))return void(ze&&r.vF.warn(`[Tracing] Did not create ${i} transaction because a pageload or navigation transaction is in progress.`));if(t&&(t.setFinishReason("interactionInterrupted"),t.end(),t=void 0),!this._getCurrentHub)return void(ze&&r.vF.warn(`[Tracing] Did not create ${i} transaction because _getCurrentHub is invalid.`));if(!this._latestRoute.name)return void(ze&&r.vF.warn(`[Tracing] Did not create ${i} transaction because _latestRouteName is missing.`));const a=this._getCurrentHub(),{location:c}=Ve,u={name:this._latestRoute.name,op:i,trimEnd:!0,data:{[Ke.i_]:this._latestRoute.context?fr(this._latestRoute.context):"url"}};t=(0,Ge.p)(a,u,e,n,!0,{location:c},s)};["click"].forEach(t=>{Ve.document&&addEventListener(t,e,{once:!1,capture:!0})})}_registerInpInteractionListener(){const t=({entries:t})=>{const e=(0,T.KU)(),n=void 0!==e&&void 0!==e.getIntegrationByName?e.getIntegrationByName("Replay"):void 0,r=void 0!==n?n.getReplayId():void 0,s=(0,Ye.Z)(),i=(0,T.o5)(),o=void 0!==i?i.getUser():void 0;t.forEach(t=>{if(function(t){return"duration"in t}(t)){const e=t.interactionId;if(void 0===e)return;const n=this._interactionIdToRouteNameMapping[e],i=t.duration,a=t.startTime,c=Object.keys(this._interactionIdToRouteNameMapping),u=c.length>0?c.reduce((t,e)=>this._interactionIdToRouteNameMapping[t].duration<this._interactionIdToRouteNameMapping[e].duration?t:e):void 0;if("first-input"===t.entryType){if(c.map(t=>this._interactionIdToRouteNameMapping[t]).some(t=>t.duration===i&&t.startTime===a))return}if(!e)return;if(n)n.duration=Math.max(n.duration,i);else if(c.length<10||void 0===u||i>this._interactionIdToRouteNameMapping[u].duration){const t=this._latestRoute.name,n=this._latestRoute.context;t&&n&&(u&&Object.keys(this._interactionIdToRouteNameMapping).length>=10&&delete this._interactionIdToRouteNameMapping[u],this._interactionIdToRouteNameMapping[e]={routeName:t,duration:i,parentContext:n,user:o,activeTransaction:s,replayId:r,startTime:a})}}})};Cn("event",t),Cn("first-input",t)}};function _r(t,e){const n=e&&function(t){return void 0!==t.getClient}(e)?e.getClient():e,r=n&&n.getDsn(),s=n&&n.getOptions().tunnel;return function(t,e){return!!e&&t.includes(e.host)}(t,r)||function(t,e){if(!e)return!1;return vr(t)===vr(e)}(t,s)}function vr(t){return"/"===t[t.length-1]?t.slice(0,-1):t}("undefined"==typeof __SENTRY_TRACING__||__SENTRY_TRACING__)&&(0,mr.l)();const yr="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,Tr="HttpClient",br=(t={})=>{const e={failedRequestStatusCodes:[[500,599]],failedRequestTargets:[/.*/],...t};return{name:Tr,setupOnce(){},setup(t){!function(t,e){if(!N())return;Ht(n=>{if((0,T.KU)()!==t)return;const{response:s,args:i}=n,[o,a]=i;s&&function(t,e,n,s){if(xr(t,n.status,n.url)){const t=function(t,e){if(!e&&t instanceof Request)return t;if(t instanceof Request&&t.bodyUsed)return t;
1return new Request(t,e)}(e,s);let i,o,a,c;wr()&&([{headers:i,cookies:a},{headers:o,cookies:c}]=[{cookieHeader:"Cookie",obj:t},{cookieHeader:"Set-Cookie",obj:n}].map(({cookieHeader:t,obj:e})=>{const n=function(t){const e={};return t.forEach((t,n)=>{e[n]=t}),e}(e.headers);let s;try{const e=n[t]||n[t.toLowerCase()]||void 0;e&&(s=Er(e))}catch(e){yr&&r.vF.log(`Could not extract cookies from header ${t}`)}return{headers:n,cookies:s}}));const u=kr({url:t.url,method:t.method,status:n.status,requestHeaders:i,responseHeaders:o,requestCookies:a,responseCookies:c});(0,T.r)(u)}}(e,o,s,a)})}(t,e),function(t,e){if(!("XMLHttpRequest"in C.OW))return;Lt(n=>{if((0,T.KU)()!==t)return;const s=n.xhr,i=s[Mt];if(!i)return;const{method:o,request_headers:a}=i;try{!function(t,e,n,s){if(xr(t,e.status,e.responseURL)){let t,i,o;if(wr()){try{const t=e.getResponseHeader("Set-Cookie")||e.getResponseHeader("set-cookie")||void 0;t&&(i=Er(t))}catch(t){yr&&r.vF.log("Could not extract cookies from response headers")}try{o=function(t){const e=t.getAllResponseHeaders();if(!e)return{};return e.split("\r\n").reduce((t,e)=>{const[n,r]=e.split(": ");return t[n]=r,t},{})}(e)}catch(t){yr&&r.vF.log("Could not extract headers from response")}t=s}const a=kr({url:e.responseURL,method:n,status:e.status,requestHeaders:t,responseHeaders:o,responseCookies:i});(0,T.r)(a)}}(e,s,o,a)}catch(t){yr&&r.vF.warn("Error while extracting response event form XHR response",t)}})}(t,e)}}};h(Tr,br);function Sr(t){if(t){const e=t["Content-Length"]||t["content-length"];if(e)return parseInt(e,10)}}function Er(t){return t.split("; ").reduce((t,e)=>{const[n,r]=e.split("=");return t[n]=r,t},{})}function xr(t,e,n){return function(t,e){return t.some(t=>"number"==typeof t?t===e:e>=t[0]&&e<=t[1])}(t.failedRequestStatusCodes,e)&&(r=t.failedRequestTargets,s=n,r.some(t=>"string"==typeof t?s.includes(t):t.test(s)))&&!_r(n,(0,T.KU)());var r,s}function kr(t){const e=`HTTP Client Error with status code: ${t.status}`,n={message:e,exception:{values:[{type:"Error",value:e}]},request:{url:t.url,method:t.method,headers:t.requestHeaders,cookies:t.requestCookies},contexts:{response:{status_code:t.status,headers:t.responseHeaders,cookies:t.responseCookies,body_size:Sr(t.responseHeaders)}}};return(0,s.M6)(n,{type:"http.client",handled:!1}),n}function wr(){const t=(0,T.KU)();return!!t&&Boolean(t.getOptions().sendDefaultPii)}document.addEventListener("DOMContentLoaded",function(){We({dsn:sentryDSN,environment:webEnv,integrations:[new gr,br()],tracesSampleRate:.3,ignoreErrors:["TypeError: Load failed","Error: WKWebView API client did not respond to this postMessage",/The operation is insecure./]})})})();
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.