"use strict";(globalThis.webpackChunkweb_sdk=globalThis.webpackChunkweb_sdk||[]).push([[499],{82821:(t,e,n)=>{n.d(e,{G:()=>p});var r=n(18015),o=n(20487),s=n(93308);class a{constructor(t,e){let n,r;n=t||new o.s,r=e||new o.s,this._stack=[{scope:n}],this._isolationScope=r}withScope(t){const e=this._pushScope();let n;try{n=t(e)}catch(t){throw this._popScope(),t}return(0,s.J8)(n)?n.then((t=>(this._popScope(),t)),(t=>{throw this._popScope(),t})):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return!(this._stack.length<=1||!this._stack.pop())}}function i(){const t=(0,r.cu)(),e=(0,r.qA)(t);return e.stack=e.stack||new a((0,r.YO)("defaultCurrentScope",(()=>new o.s)),(0,r.YO)("defaultIsolationScope",(()=>new o.s)))}function c(t){return i().withScope(t)}function u(t,e){const n=i();return n.withScope((()=>(n.getStackTop().scope=t,e(t))))}function l(t){return i().withScope((()=>t(i().getIsolationScope())))}function p(t){const e=(0,r.qA)(t);return e.acs?e.acs:{withIsolationScope:l,withScope:c,withSetScope:u,withSetIsolationScope:(t,e)=>l(e),getCurrentScope:()=>i().getScope(),getIsolationScope:()=>i().getIsolationScope()}}},3601:(t,e,n)=>{n.d(e,{n:()=>i});var r=n(4329),o=n(47245),s=n(17435);const a=100;function i(t,e){const n=(0,r.s3)(),i=(0,r.aF)();if(!n)return;const{beforeBreadcrumb:c=null,maxBreadcrumbs:u=a}=n.getOptions();if(u<=0)return;const l={timestamp:(0,s.yW)(),...t},p=c?(0,o.Cf)((()=>c(l,e))):l;null!==p&&(n.emit&&n.emit("beforeAddBreadcrumb",p,e),i.addBreadcrumb(p,u))}},18015:(t,e,n)=>{n.d(e,{YO:()=>i,cu:()=>s,qA:()=>a});var r=n(48474),o=n(39311);function s(){return a(o.n),o.n}function a(t){const e=t.__SENTRY__=t.__SENTRY__||{};return e.version=e.version||r.J,e[r.J]=e[r.J]||{}}function i(t,e,n=o.n){const s=n.__SENTRY__=n.__SENTRY__||{},a=s[r.J]=s[r.J]||{};return a[t]||(a[t]=e())}},4219:(t,e,n)=>{n.d(e,{J:()=>r});const r="production"},4329:(t,e,n)=>{n.d(e,{$e:()=>l,XX:()=>f,aF:()=>c,lW:()=>u,nZ:()=>i,s3:()=>d,wi:()=>p});var r=n(82821),o=n(18015),s=n(20487),a=n(29067);function i(){const t=(0,o.cu)();return(0,r.G)(t).getCurrentScope()}function c(){const t=(0,o.cu)();return(0,r.G)(t).getIsolationScope()}function u(){return(0,o.YO)("globalScope",(()=>new s.s))}function l(...t){const e=(0,o.cu)(),n=(0,r.G)(e);if(2===t.length){const[e,r]=t;return e?n.withSetScope(e,r):n.withScope(r)}return n.withScope(t[0])}function p(...t){const e=(0,o.cu)(),n=(0,r.G)(e);if(2===t.length){const[e,r]=t;return e?n.withSetIsolationScope(e,r):n.withIsolationScope(r)}return n.withIsolationScope(t[0])}function d(){return i().getClient()}function f(t){const e=t.getPropagationContext(),{traceId:n,parentSpanId:r,propagationSpanId:o}=e,s={trace_id:n,span_id:o||(0,a.M)()};return r&&(s.parent_span_id=r),s}},68398:(t,e,n)=>{n.d(e,{X:()=>r});const r="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},68780:(t,e,n)=>{n.d(e,{Mq:()=>c,Q3:()=>i,uE:()=>u});var r=n(7406),o=n(13470),s=n(5947),a=n(65405);function i(t,e,n,r){const a=(0,s.HY)(n),i={sent_at:(new Date).toISOString(),...a&&{sdk:a},...!!r&&e&&{dsn:(0,o.RA)(e)}},c="aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()];return(0,s.Jd)(i,[c])}function c(t,e,n,r){const o=(0,s.HY)(n),a=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?.sdk);const i=(0,s.Cd)(t,o,r,e);delete t.sdkProcessingMetadata;const c=[{type:a},t];return(0,s.Jd)(i,[c])}function u(t,e){const n=(0,r.jC)(t[0]),i=e?.getDsn(),c=e?.getOptions().tunnel,u={sent_at:(new Date).toISOString(),...function(t){return!!t.trace_id&&!!t.public_key}(n)&&{trace:n},...!!c&&i&&{dsn:(0,o.RA)(i)}},l=e?.getOptions().beforeSendSpan,p=l?t=>{const e=(0,a.XU)(t);return l(e)||((0,a.R6)(),e)}:a.XU,d=[];for(const e of t){const t=p(e);t&&d.push((0,s.KQ)(t))}return(0,s.Jd)(u,d)}},17807:(t,e,n)=>{n.d(e,{Qy:()=>x,TM:()=>k,Tb:()=>u,YA:()=>g,_k:()=>E,av:()=>_,cg:()=>I,dk:()=>S,eN:()=>p,eW:()=>y,mG:()=>m,rJ:()=>f,sU:()=>h,uT:()=>l,v:()=>d,xv:()=>b,yj:()=>w,yl:()=>v});var r=n(4329),o=n(68398),s=n(83652),a=n(47245),i=n(10437),c=n(39311);function u(t,e){return(0,r.nZ)().captureException(t,(0,i.U0)(e))}function l(t,e){const n="string"==typeof e?e:void 0,o="string"!=typeof e?{captureContext:e}:void 0;return(0,r.nZ)().captureMessage(t,n,o)}function p(t,e){return(0,r.nZ)().captureEvent(t,e)}function d(t,e){(0,r.aF)().setContext(t,e)}function f(t){(0,r.aF)().setExtras(t)}function h(t,e){(0,r.aF)().setExtra(t,e)}function m(t){(0,r.aF)().setTags(t)}function g(t,e){(0,r.aF)().setTag(t,e)}function _(t){(0,r.aF)().setUser(t)}function y(){return(0,r.aF)().lastEventId()}async function v(t){const e=(0,r.s3)();return e?e.flush(t):(o.X&&a.fF.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}async function b(t){const e=(0,r.s3)();return e?e.close(t):(o.X&&a.fF.warn("Cannot flush events and disable SDK. No client defined."),Promise.resolve(!1))}function S(){return!!(0,r.s3)()}function E(){const t=(0,r.s3)();return!1!==t?.getOptions().enabled&&!!t?.getTransport()}function x(t){(0,r.aF)().addEventProcessor(t)}function w(t){const e=(0,r.aF)(),n=(0,r.nZ)(),{userAgent:o}=c.n.navigator||{},a=(0,s.Hv)({user:n.getUser()||e.getUser(),...o&&{userAgent:o},...t}),i=e.getSession();return"ok"===i?.status&&(0,s.CT)(i,{status:"exited"}),k(),e.setSession(a),a}function k(){const t=(0,r.aF)(),e=(0,r.nZ)().getSession()||t.getSession();e&&(0,s.RJ)(e),T(),t.setSession()}function T(){const t=(0,r.aF)(),e=(0,r.s3)(),n=t.getSession();n&&e&&e.captureSession(n)}function I(t=!1){t?k():T()}},90211:(t,e,n)=>{n.d(e,{N:()=>o});var r=n(4329);function o(t,e={},n=(0,r.nZ)()){const{message:o,name:s,email:a,url:i,source:c,associatedEventId:u,tags:l}=t,p={contexts:{feedback:{contact_email:a,name:s,message:o,url:i,source:c,associated_event_id:u}},type:"feedback",level:"info",tags:l},d=n?.getClient()||(0,r.s3)();return d&&d.emit("beforeSendFeedback",p,e),n.captureEvent(p,e)}},42518:(t,e,n)=>{n.d(e,{D2:()=>u,Hj:()=>c,rK:()=>l});var r=n(68398),o=n(47245),s=n(74237);const a={},i={};function c(t,e){a[t]=a[t]||[],a[t].push(e)}function u(t,e){if(!i[t]){i[t]=!0;try{e()}catch(e){r.X&&o.fF.error(`Error while instrumenting ${t}`,e)}}}function l(t,e){const n=t&&a[t];if(n)for(const a of n)try{a(e)}catch(e){r.X&&o.fF.error(`Error while triggering instrumentation handler.\nType: ${t}\nName: ${(0,s.$P)(a)}\nError:`,e)}}},66893:(t,e,n)=>{n.d(e,{M5:()=>p,_I:()=>d,m7:()=>l,m8:()=>i,q4:()=>c,uf:()=>u});var r=n(4329),o=n(68398),s=n(47245);const a=[];function i(t){const e=t.defaultIntegrations||[],n=t.integrations;let r;if(e.forEach((t=>{t.isDefaultInstance=!0})),Array.isArray(n))r=[...e,...n];else if("function"==typeof n){const t=n(e);r=Array.isArray(t)?t:[t]}else r=e;return function(t){const e={};return t.forEach((t=>{const{name:n}=t,r=e[n];r&&!r.isDefaultInstance&&t.isDefaultInstance||(e[n]=t)})),Object.values(e)}(r)}function c(t,e){const n={};return e.forEach((e=>{e&&l(t,e,n)})),n}function u(t,e){for(const n of e)n?.afterAllSetup&&n.afterAllSetup(t)}function l(t,e,n){if(n[e.name])o.X&&s.fF.log(`Integration skipped because it was already installed: ${e.name}`);else{if(n[e.name]=e,-1===a.indexOf(e.name)&&"function"==typeof e.setupOnce&&(e.setupOnce(),a.push(e.name)),e.setup&&"function"==typeof e.setup&&e.setup(t),"function"==typeof e.preprocessEvent){const n=e.preprocessEvent.bind(e);t.on("preprocessEvent",((e,r)=>n(e,r,t)))}if("function"==typeof e.processEvent){const n=e.processEvent.bind(e),r=Object.assign(((e,r)=>n(e,r,t)),{id:e.name});t.addEventProcessor(r)}o.X&&s.fF.log(`Integration installed: ${e.name}`)}}function p(t){const e=(0,r.s3)();e?e.addIntegration(t):o.X&&s.fF.warn(`Cannot add integration "${t.name}" because no SDK Client is available.`)}function d(t){return t}},20487:(t,e,n)=>{n.d(e,{s:()=>f});var r=n(68398),o=n(83652),s=n(93308),a=n(47245),i=n(49641),c=n(85249),u=n(29067),l=n(57109),p=n(67918),d=n(17435);class f{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:(0,u.H)(),sampleRand:Math.random()}}clone(){const t=new f;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,(0,l.D)(t,(0,l.Y)(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&(0,o.CT)(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,e){return this._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}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const e="function"==typeof t?t(this):t,n=e instanceof f?e.getScopeData():(0,s.PO)(e)?t:void 0,{tags:r,extra:o,user:a,contexts:i,level:c,fingerprint:u=[],propagationContext:l}=n||{};return this._tags={...this._tags,...r},this._extra={...this._extra,...o},this._contexts={...this._contexts,...i},a&&Object.keys(a).length&&(this._user=a),c&&(this._level=c),u.length&&(this._fingerprint=u),l&&(this._propagationContext=l),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._session=void 0,(0,l.D)(this,void 0),this._attachments=[],this.setPropagationContext({traceId:(0,u.H)(),sampleRand:Math.random()}),this._notifyScopeListeners(),this}addBreadcrumb(t,e){const n="number"==typeof e?e:100;if(n<=0)return this;const r={timestamp:(0,d.yW)(),...t,message:t.message?(0,p.$G)(t.message,2048):t.message};return this._breadcrumbs.push(r),this._breadcrumbs.length>n&&(this._breadcrumbs=this._breadcrumbs.slice(-n),this._client?.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:(0,l.Y)(this)}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=(0,i.T)(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,e){const n=e?.event_id||(0,c.DM)();if(!this._client)return r.X&&a.fF.warn("No client configured on scope - will not capture exception!"),n;const o=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:o,...e,event_id:n},this),n}captureMessage(t,e,n){const o=n?.event_id||(0,c.DM)();if(!this._client)return r.X&&a.fF.warn("No client configured on scope - will not capture message!"),o;const s=new Error(t);return this._client.captureMessage(t,e,{originalException:t,syntheticException:s,...n,event_id:o},this),o}captureEvent(t,e){const n=e?.event_id||(0,c.DM)();return this._client?(this._client.captureEvent(t,{...e,event_id:n},this),n):(r.X&&a.fF.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)}}},91699:(t,e,n)=>{n.d(e,{$J:()=>a,E1:()=>u,JQ:()=>f,S3:()=>i,TE:()=>o,Wb:()=>l,Zj:()=>r,fv:()=>m,iT:()=>s,ju:()=>c,lH:()=>g,p6:()=>d,qE:()=>h,xF:()=>p});const r="sentry.source",o="sentry.sample_rate",s="sentry.previous_trace_sample_rate",a="sentry.op",i="sentry.origin",c="sentry.idle_span_finish_reason",u="sentry.measurement_unit",l="sentry.measurement_value",p="sentry.custom_span_name",d="sentry.profile_id",f="sentry.exclusive_time",h="http.request.method",m="url.full",g="sentry.link.type"},83652:(t,e,n)=>{n.d(e,{CT:()=>a,Hv:()=>s,RJ:()=>i});var r=n(85249),o=n(17435);function s(t){const e=(0,o.ph)(),n={sid:(0,r.DM)(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(t){return{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,o.ph)(),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.DM)()),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 i(t,e){let n={};e?n={status:e}:"ok"===t.status&&(n={status:"exited"}),a(t,n)}},7406:(t,e,n)=>{n.d(e,{CG:()=>m,Lh:()=>f,jC:()=>g,uc:()=>_});var r=n(4219),o=n(4329),s=n(91699),a=n(3275),i=n(13470),c=n(9144),u=n(21305),l=n(65405),p=n(40710);const d="_frozenDsc";function f(t,e){const n=t;(0,u.xp)(n,d,e)}function h(t,e){const n=e.getOptions(),{publicKey:o,host:s}=e.getDsn()||{};let a;n.orgId?a=String(n.orgId):s&&(a=(0,i.so)(s));const c={environment:n.environment||r.J,release:n.release,public_key:o,trace_id:t,org_id:a};return e.emit("createDsc",c),c}function m(t,e){const n=e.getPropagationContext();return n.dsc||h(n.traceId,t)}function g(t){const e=(0,o.s3)();if(!e)return{};const n=(0,l.Gx)(t),r=(0,l.XU)(n),i=r.data,u=n.spanContext().traceState,f=u?.get("sentry.sample_rate")??i[s.TE]??i[s.iT];function m(t){return"number"!=typeof f&&"string"!=typeof f||(t.sample_rate=`${f}`),t}const g=n[d];if(g)return m(g);const _=u?.get("sentry.dsc"),y=_&&(0,a.EN)(_);if(y)return m(y);const v=h(t.spanContext().traceId,e),b=i[s.Zj],S=r.description;return"url"!==b&&S&&(v.transaction=S),(0,c.f)()&&(v.sampled=String((0,l.Tt)(n)),v.sample_rand=u?.get("sentry.sample_rand")??(0,p.I)(n).scope?.getPropagationContext().sampleRand.toString()),m(v),e.emit("createDsc",v,n),v}function _(t){const e=g(t);return(0,a.IQ)(e)}},15414:(t,e,n)=>{n.d(e,{Z:()=>a,w:()=>i});var r=n(68398),o=n(47245),s=n(65405);function a(t){if(!r.X)return;const{description:e="< unknown name >",op:n="< unknown op >",parent_span_id:a}=(0,s.XU)(t),{spanId:i}=t.spanContext(),c=(0,s.Tt)(t),u=(0,s.Gx)(t),l=u===t,p=`[Tracing] Starting ${c?"sampled":"unsampled"} ${l?"root ":""}span`,d=[`op: ${n}`,`name: ${e}`,`ID: ${i}`];if(a&&d.push(`parent ID: ${a}`),!l){const{op:t,description:e}=(0,s.XU)(u);d.push(`root ID: ${u.spanContext().spanId}`),t&&d.push(`root op: ${t}`),e&&d.push(`root description: ${e}`)}o.fF.log(`${p}\n ${d.join("\n ")}`)}function i(t){if(!r.X)return;const{description:e="< unknown name >",op:n="< unknown op >"}=(0,s.XU)(t),{spanId:a}=t.spanContext(),i=`[Tracing] Finishing "${n}" ${(0,s.Gx)(t)===t?"root ":""}span "${e}" with ID ${a}`;o.fF.log(i)}},20988:(t,e,n)=>{n.d(e,{l:()=>c,o:()=>i});var r=n(68398),o=n(91699),s=n(47245),a=n(65405);function i(t,e,n,i=(0,a.HN)()){const c=i&&(0,a.Gx)(i);c&&(r.X&&s.fF.log(`[Measurement] Setting measurement on root span: ${t} = ${e} ${n}`),c.addEvent(t,{[o.Wb]:e,[o.E1]:n}))}function c(t){if(!t||0===t.length)return;const e={};return t.forEach((t=>{const n=t.attributes||{},r=n[o.E1],s=n[o.Wb];"string"==typeof r&&"number"==typeof s&&(e[t.name]={value:s,unit:r})})),e}},6881:(t,e,n)=>{n.d(e,{b:()=>s});var r=n(29067),o=n(65405);class s{constructor(t={}){this._traceId=t.traceId||(0,r.H)(),this._spanId=t.spanId||(0,r.M)()}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:o.ve}}end(t){}setAttribute(t,e){return this}setAttributes(t){return this}setStatus(t){return this}updateName(t){return this}isRecording(){return!1}addEvent(t,e,n){return this}addLink(t){return this}addLinks(t){return this}recordException(t,e){}}},63161:(t,e,n)=>{n.d(e,{s:()=>m});var r=n(4329),o=n(68398),s=n(68780),a=n(91699),i=n(47245),c=n(29067),u=n(65405),l=n(17435),p=n(7406),d=n(15414),f=n(20988),h=n(40710);class m{constructor(t={}){this._traceId=t.traceId||(0,c.H)(),this._spanId=t.spanId||(0,c.M)(),this._startTime=t.startTimestamp||(0,l.ph)(),this._links=t.links,this._attributes={},this.setAttributes({[a.S3]:"manual",[a.$J]:t.op,...t.attributes}),this._name=t.name,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.endTimestamp&&(this._endTime=t.endTimestamp),this._events=[],this._isStandaloneSpan=t.isStandalone,this._endTime&&this._onSpanEnded()}addLink(t){return this._links?this._links.push(t):this._links=[t],this}addLinks(t){return this._links?this._links.push(...t):this._links=t,this}recordException(t,e){}spanContext(){const{_spanId:t,_traceId:e,_sampled:n}=this;return{spanId:t,traceId:e,traceFlags:n?u.i0:u.ve}}setAttribute(t,e){return void 0===e?delete this._attributes[t]:this._attributes[t]=e,this}setAttributes(t){return Object.keys(t).forEach((e=>this.setAttribute(e,t[e]))),this}updateStartTime(t){this._startTime=(0,u.$k)(t)}setStatus(t){return this._status=t,this}updateName(t){return this._name=t,this.setAttribute(a.Zj,"custom"),this}end(t){this._endTime||(this._endTime=(0,u.$k)(t),(0,d.w)(this),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[a.$J],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:(0,u._4)(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[a.S3],profile_id:this._attributes[a.p6],exclusive_time:this._attributes[a.JQ],measurements:(0,f.l)(this._events),is_segment:this._isStandaloneSpan&&(0,u.Gx)(this)===this||void 0,segment_id:this._isStandaloneSpan?(0,u.Gx)(this).spanContext().spanId:void 0,links:(0,u.FF)(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(t,e,n){o.X&&i.fF.log("[Tracing] Adding an event to span:",t);const r=g(e)?e:n||(0,l.ph)(),s=g(e)?{}:e||{},a={name:t,time:(0,u.$k)(r),attributes:s};return this._events.push(a),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const t=(0,r.s3)();if(t&&t.emit("spanEnd",this),!this._isStandaloneSpan&&this!==(0,u.Gx)(this))return;if(this._isStandaloneSpan)return void(this._sampled?function(t){const e=(0,r.s3)();if(!e)return;const n=t[1];n&&0!==n.length?e.sendEnvelope(t):e.recordDroppedEvent("before_send","span")}((0,s.uE)([this],t)):(o.X&&i.fF.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),t&&t.recordDroppedEvent("sample_rate","span")));const e=this._convertSpanToTransaction();e&&((0,h.I)(this).scope||(0,r.nZ)()).captureEvent(e)}_convertSpanToTransaction(){if(!_((0,u.XU)(this)))return;this._name||(o.X&&i.fF.warn("Transaction has no name, falling back to ``."),this._name="");const{scope:t,isolationScope:e}=(0,h.I)(this),n=t?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(!0!==this._sampled)return;const r=(0,u.Dp)(this).filter((t=>t!==this&&!function(t){return t instanceof m&&t.isStandaloneSpan()}(t))).map((t=>(0,u.XU)(t))).filter(_),s=this._attributes[a.Zj];delete this._attributes[a.xF],r.forEach((t=>{delete t.data[a.xF]}));const c={contexts:{trace:(0,u.HR)(this)},spans:r.length>1e3?r.sort(((t,e)=>t.start_timestamp-e.start_timestamp)).slice(0,1e3):r,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:e,dynamicSamplingContext:(0,p.jC)(this)},request:n,...s&&{transaction_info:{source:s}}},l=(0,f.l)(this._events);return l&&Object.keys(l).length&&(o.X&&i.fF.log("[Measurements] Adding measurements to transaction event",JSON.stringify(l,void 0,2)),c.measurements=l),c}}function g(t){return t&&"number"==typeof t||t instanceof Date||Array.isArray(t)}function _(t){return!!(t.start_timestamp&&t.timestamp&&t.span_id&&t.trace_id)}},15698:(t,e,n)=>{n.d(e,{OP:()=>o,Q0:()=>i,ix:()=>a,jt:()=>s,pq:()=>r});const r=0,o=1,s=2;function a(t){if(t<400&&t>=100)return{code:o};if(t>=400&&t<500)switch(t){case 401:return{code:s,message:"unauthenticated"};case 403:return{code:s,message:"permission_denied"};case 404:return{code:s,message:"not_found"};case 409:return{code:s,message:"already_exists"};case 413:return{code:s,message:"failed_precondition"};case 429:return{code:s,message:"resource_exhausted"};case 499:return{code:s,message:"cancelled"};default:return{code:s,message:"invalid_argument"}}if(t>=500&&t<600)switch(t){case 501:return{code:s,message:"unimplemented"};case 503:return{code:s,message:"unavailable"};case 504:return{code:s,message:"deadline_exceeded"};default:return{code:s,message:"internal_error"}}return{code:s,message:"unknown_error"}}function i(t,e){t.setAttribute("http.response.status_code",e);const n=a(e);"unknown_error"!==n.message&&t.setStatus(n)}},29347:(t,e,n)=>{n.d(e,{yn:()=>I,qp:()=>T,Iw:()=>P,GK:()=>w,V0:()=>k,hE:()=>R,_d:()=>$});var r=n(82821),o=n(18015),s=n(4329),a=n(68398),i=n(91699),c=n(93308);function u(t,e,n=(()=>{})){let r;try{r=t()}catch(t){throw e(t),n(),t}return function(t,e,n){return(0,c.J8)(t)?t.then((t=>(n(),t)),(t=>{throw e(t),n(),t})):(n(),t)}(r,e,n)}var l=n(9144),p=n(47245),d=n(96292),f=n(29067),h=n(57109),m=n(65405),g=n(3560),_=n(7406),y=n(15414),v=n(6881),b=n(63161),S=n(15698),E=n(40710);const x="__SENTRY_SUPPRESS_TRACING__";function w(t,e){const n=A();if(n.startSpan)return n.startSpan(t,e);const r=C(t),{forceTransaction:o,parentSpan:a,scope:i}=t,c=i?.clone();return(0,s.$e)(c,(()=>N(a)((()=>{const n=(0,s.nZ)(),i=F(n,a),c=t.onlyIfParent&&!i?new v.b:O({parentSpan:i,spanArguments:r,forceTransaction:o,scope:n});return(0,h.D)(n,c),u((()=>e(c)),(()=>{const{status:t}=(0,m.XU)(c);!c.isRecording()||t&&"ok"!==t||c.setStatus({code:S.jt,message:"internal_error"})}),(()=>{c.end()}))}))))}function k(t,e){const n=A();if(n.startSpanManual)return n.startSpanManual(t,e);const r=C(t),{forceTransaction:o,parentSpan:a,scope:i}=t,c=i?.clone();return(0,s.$e)(c,(()=>N(a)((()=>{const n=(0,s.nZ)(),i=F(n,a),c=t.onlyIfParent&&!i?new v.b:O({parentSpan:i,spanArguments:r,forceTransaction:o,scope:n});return(0,h.D)(n,c),u((()=>e(c,(()=>c.end()))),(()=>{const{status:t}=(0,m.XU)(c);!c.isRecording()||t&&"ok"!==t||c.setStatus({code:S.jt,message:"internal_error"})}))}))))}function T(t){const e=A();if(e.startInactiveSpan)return e.startInactiveSpan(t);const n=C(t),{forceTransaction:r,parentSpan:o}=t;return(t.scope?e=>(0,s.$e)(t.scope,e):void 0!==o?t=>$(o,t):t=>t())((()=>{const e=(0,s.nZ)(),a=F(e,o);return t.onlyIfParent&&!a?new v.b:O({parentSpan:a,spanArguments:n,forceTransaction:r,scope:e})}))}const I=(t,e)=>{const n=(0,o.cu)(),a=(0,r.G)(n);if(a.continueTrace)return a.continueTrace(t,e);const{sentryTrace:i,baggage:c}=t;return(0,s.$e)((t=>{const n=(0,g.pT)(i,c);return t.setPropagationContext(n),e()}))};function $(t,e){const n=A();return n.withActiveSpan?n.withActiveSpan(t,e):(0,s.$e)((n=>((0,h.D)(n,t||void 0),e(n))))}function R(t){const e=A();return e.suppressTracing?e.suppressTracing(t):(0,s.$e)((e=>{e.setSDKProcessingMetadata({[x]:!0});const n=t();return e.setSDKProcessingMetadata({[x]:void 0}),n}))}function P(t){return(0,s.$e)((e=>(e.setPropagationContext({traceId:(0,f.H)(),sampleRand:Math.random()}),a.X&&p.fF.log(`Starting a new trace with id ${e.getPropagationContext().traceId}`),$(null,t))))}function O({parentSpan:t,spanArguments:e,forceTransaction:n,scope:r}){if(!(0,l.f)()){const r=new v.b;if(n||!t){const t={sampled:"false",sample_rate:"0",transaction:e.name,...(0,_.jC)(r)};(0,_.Lh)(r,t)}return r}const o=(0,s.aF)();let a;if(t&&!n)a=function(t,e,n){const{spanId:r,traceId:o}=t.spanContext(),a=!e.getScopeData().sdkProcessingMetadata[x]&&(0,m.Tt)(t),i=a?new b.s({...n,parentSpanId:r,traceId:o,sampled:a}):new v.b({traceId:o});(0,m.j5)(t,i);const c=(0,s.s3)();return c&&(c.emit("spanStart",i),n.endTimestamp&&c.emit("spanEnd",i)),i}(t,r,e),(0,m.j5)(t,a);else if(t){const n=(0,_.jC)(t),{traceId:o,spanId:s}=t.spanContext(),i=(0,m.Tt)(t);a=D({traceId:o,parentSpanId:s,...e},r,i),(0,_.Lh)(a,n)}else{const{traceId:t,dsc:n,parentSpanId:s,sampled:i}={...o.getPropagationContext(),...r.getPropagationContext()};a=D({traceId:t,parentSpanId:s,...e},r,i),n&&(0,_.Lh)(a,n)}return(0,y.Z)(a),(0,E.Y)(a,r,o),a}function C(t){const e={isStandalone:(t.experimental||{}).standalone,...t};if(t.startTime){const n={...e};return n.startTimestamp=(0,m.$k)(t.startTime),delete n.startTime,n}return e}function A(){const t=(0,o.cu)();return(0,r.G)(t)}function D(t,e,n){const r=(0,s.s3)(),o=r?.getOptions()||{},{name:c=""}=t,u={spanAttributes:{...t.attributes},spanName:c,parentSampled:n};r?.emit("beforeSampling",u,{decision:!1});const f=u.parentSampled??n,h=u.spanAttributes,m=e.getPropagationContext(),[g,_,y]=e.getScopeData().sdkProcessingMetadata[x]?[!1]:function(t,e,n){if(!(0,l.f)(t))return[!1];let r,o;"function"==typeof t.tracesSampler?(o=t.tracesSampler({...e,inheritOrSampleWith:t=>"number"==typeof e.parentSampleRate?e.parentSampleRate:"boolean"==typeof e.parentSampled?Number(e.parentSampled):t}),r=!0):void 0!==e.parentSampled?o=e.parentSampled:void 0!==t.tracesSampleRate&&(o=t.tracesSampleRate,r=!0);const s=(0,d.o)(o);if(void 0===s)return a.X&&p.fF.warn(`[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(o)} of type ${JSON.stringify(typeof o)}.`),[!1];if(!s)return a.X&&p.fF.log("[Tracing] Discarding transaction because "+("function"==typeof t.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0")),[!1,s,r];const i=n$(t,e):t=>t()}},40710:(t,e,n)=>{n.d(e,{I:()=>i,Y:()=>a});var r=n(21305);const o="_sentryScope",s="_sentryIsolationScope";function a(t,e,n){t&&((0,r.xp)(t,s,n),(0,r.xp)(t,o,e))}function i(t){return{scope:t[o],isolationScope:t[s]}}},63473:(t,e,n)=>{n.d(e,{gi:()=>a,yo:()=>i});var r=n(7406),o=n(49641),s=n(65405);function a(t,e){const{fingerprint:n,span:o,breadcrumbs:a,sdkProcessingMetadata:i}=e;!function(t,e){const{extra:n,tags:r,user:o,contexts:s,level:a,transactionName:i}=e;Object.keys(n).length&&(t.extra={...n,...t.extra}),Object.keys(r).length&&(t.tags={...r,...t.tags}),Object.keys(o).length&&(t.user={...o,...t.user}),Object.keys(s).length&&(t.contexts={...s,...t.contexts}),a&&(t.level=a),i&&"transaction"!==t.type&&(t.transaction=i)}(t,e),o&&function(t,e){t.contexts={trace:(0,s.wy)(e),...t.contexts},t.sdkProcessingMetadata={dynamicSamplingContext:(0,r.jC)(e),...t.sdkProcessingMetadata};const n=(0,s.Gx)(e),o=(0,s.XU)(n).description;o&&!t.transaction&&"transaction"===t.type&&(t.transaction=o)}(t,o),function(t,e){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],e&&(t.fingerprint=t.fingerprint.concat(e)),t.fingerprint.length||delete t.fingerprint}(t,n),function(t,e){const n=[...t.breadcrumbs||[],...e];t.breadcrumbs=n.length?n:void 0}(t,a),function(t,e){t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...e}}(t,i)}function i(t,e){const{extra:n,tags:r,user:s,contexts:a,level:i,sdkProcessingMetadata:u,breadcrumbs:l,fingerprint:p,eventProcessors:d,attachments:f,propagationContext:h,transactionName:m,span:g}=e;c(t,"extra",n),c(t,"tags",r),c(t,"user",s),c(t,"contexts",a),t.sdkProcessingMetadata=(0,o.T)(t.sdkProcessingMetadata,u,2),i&&(t.level=i),m&&(t.transactionName=m),g&&(t.span=g),l.length&&(t.breadcrumbs=[...t.breadcrumbs,...l]),p.length&&(t.fingerprint=[...t.fingerprint,...p]),d.length&&(t.eventProcessors=[...t.eventProcessors,...d]),f.length&&(t.attachments=[...t.attachments,...f]),t.propagationContext={...t.propagationContext,...h}}function c(t,e,n){t[e]=(0,o.T)(t[e],n,1)}},3275:(t,e,n)=>{n.d(e,{EN:()=>c,IQ:()=>u,lq:()=>a});var r=n(68398),o=n(93308),s=n(47245);const a="sentry-",i=/^sentry-/;function c(t){const e=function(t){if(t&&((0,o.HD)(t)||Array.isArray(t)))return Array.isArray(t)?t.reduce(((t,e)=>{const n=l(e);return Object.entries(n).forEach((([e,n])=>{t[e]=n})),t}),{}):l(t)}(t);if(!e)return;const n=Object.entries(e).reduce(((t,[e,n])=>(e.match(i)&&(t[e.slice(a.length)]=n),t)),{});return Object.keys(n).length>0?n:void 0}function u(t){if(t)return function(t){if(0!==Object.keys(t).length)return Object.entries(t).reduce(((t,[e,n],o)=>{const a=`${encodeURIComponent(e)}=${encodeURIComponent(n)}`,i=0===o?a:`${t},${a}`;return i.length>8192?(r.X&&s.fF.warn(`Not adding key: ${e} with val: ${n} to baggage header due to exceeding baggage size limits.`),t):i}),"")}(Object.entries(t).reduce(((t,[e,n])=>(n&&(t[`${a}${e}`]=n),t)),{}))}function l(t){return t.split(",").map((t=>t.split("=").map((t=>{try{return decodeURIComponent(t.trim())}catch{return}})))).reduce(((t,[e,n])=>(e&&n&&(t[e]=n),t)),{})}},37949:(t,e,n)=>{n.d(e,{Rt:()=>s,iY:()=>c,l4:()=>i});var r=n(93308);const o=n(39311).n;function s(t,e={}){if(!t)return"";try{let n=t;const r=5,o=[];let s=0,i=0;const c=" > ",u=c.length;let l;const p=Array.isArray(e)?e:e.keyAttrs,d=!Array.isArray(e)&&e.maxStringLength||80;for(;n&&s++1&&i+o.length*u+l.length>=d));)o.push(l),i+=l.length,n=n.parentNode;return o.reverse().join(c)}catch(t){return""}}function a(t,e){const n=t,s=[];if(!n?.tagName)return"";if(o.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}s.push(n.tagName.toLowerCase());const a=e?.length?e.filter((t=>n.getAttribute(t))).map((t=>[t,n.getAttribute(t)])):null;if(a?.length)a.forEach((t=>{s.push(`[${t[0]}="${t[1]}"]`)}));else{n.id&&s.push(`#${n.id}`);const t=n.className;if(t&&(0,r.HD)(t)){const e=t.split(/\s+/);for(const t of e)s.push(`.${t}`)}}const i=["aria-label","type","name","title","alt"];for(const t of i){const e=n.getAttribute(t);e&&s.push(`[${t}="${e}"]`)}return s.join("")}function i(){try{return o.document.location.href}catch(t){return""}}function c(t){if(!o.HTMLElement)return null;let e=t;for(let t=0;t<5;t++){if(!e)return null;if(e instanceof HTMLElement){if(e.dataset.sentryComponent)return e.dataset.sentryComponent;if(e.dataset.sentryElement)return e.dataset.sentryElement}e=e.parentNode}return null}},8439:(t,e,n)=>{function r(t,e,n){let r,o,s;const a=n?.maxWait?Math.max(n.maxWait,e):0,i=n?.setTimeoutImpl||setTimeout;function c(){return u(),r=t(),r}function u(){void 0!==o&&clearTimeout(o),void 0!==s&&clearTimeout(s),o=s=void 0}function l(){return o&&clearTimeout(o),o=i(c,e),a&&void 0===s&&(s=i(c,a)),r}return l.cancel=u,l.flush=function(){return void 0!==o||void 0!==s?c():r},l}n.d(e,{D:()=>r})},3920:(t,e,n)=>{n.d(e,{N:()=>i,v:()=>c});var r=n(39311);let o,s,a;function i(t){const e=r.n._sentryDebugIds;if(!e)return{};const n=Object.keys(e);return a&&n.length===s||(s=n.length,a=n.reduce(((n,r)=>{o||(o={});const s=o[r];if(s)n[s[0]]=s[1];else{const s=t(r);for(let t=s.length-1;t>=0;t--){const a=s[t]?.filename,i=e[r];if(a&&i){n[a]=i,o[r]=[a,i];break}}}return n}),{})),a}function c(t,e){const n=i(t);if(!n)return[];const r=[];for(const t of e)t&&n[t]&&r.push({type:"sourcemap",code_file:t,debug_id:n[t]});return r}},13470:(t,e,n)=>{n.d(e,{RA:()=>i,U4:()=>c,so:()=>l,vK:()=>p});var r=n(68398),o=n(47245);const s=/^o(\d+)\./,a=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function i(t,e=!1){const{host:n,path:r,pass:o,port:s,projectId:a,protocol:i,publicKey:c}=t;return`${i}://${c}${e&&o?`:${o}`:""}@${n}${s?`:${s}`:""}/${r?`${r}/`:r}${a}`}function c(t){const e=a.exec(t);if(!e)return void(0,o.Cf)((()=>{console.error(`Invalid Sentry Dsn: ${t}`)}));const[n,r,s="",i="",c="",l=""]=e.slice(1);let p="",d=l;const f=d.split("/");if(f.length>1&&(p=f.slice(0,-1).join("/"),d=f.pop()),d){const t=d.match(/^\d+/);t&&(d=t[0])}return u({host:i,pass:s,path:p,projectId:d,port:c,protocol:n,publicKey:r})}function u(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function l(t){return t.match(s)?.[1]}function p(t){const e="string"==typeof t?c(t):u(t);if(e&&function(t){if(!r.X)return!0;const{port:e,projectId:n,protocol:s}=t;return!(["protocol","publicKey","host","projectId"].find((e=>!t[e]&&(o.fF.error(`Invalid Sentry Dsn: ${e} missing`),!0)))||(n.match(/^\d+$/)?function(t){return"http"===t||"https"===t}(s)?e&&isNaN(parseInt(e,10))&&(o.fF.error(`Invalid Sentry Dsn: Invalid port ${e}`),1):(o.fF.error(`Invalid Sentry Dsn: Invalid protocol ${s}`),1):(o.fF.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),1)))}(e))return e}},73979:(t,e,n)=>{function r(){return"undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&!!__SENTRY_BROWSER_BUNDLE__}function o(){return"npm"}n.d(e,{S:()=>o,n:()=>r})},5947:(t,e,n)=>{n.d(e,{BO:()=>c,Cd:()=>v,HY:()=>y,Jd:()=>i,KQ:()=>h,R:()=>l,V$:()=>d,f4:()=>f,gv:()=>u,mL:()=>_,zQ:()=>m});var r=n(18015),o=n(13470),s=n(61137),a=n(39311);function i(t,e=[]){return[t,e]}function c(t,e){const[n,r]=t;return[n,[...r,e]]}function u(t,e){const n=t[1];for(const t of n)if(e(t,t[0].type))return!0;return!1}function l(t,e){return u(t,((t,n)=>e.includes(n)))}function p(t){const e=(0,r.qA)(a.n);return e.encodePolyfill?e.encodePolyfill(t):(new TextEncoder).encode(t)}function d(t){const[e,n]=t;let r=JSON.stringify(e);function o(t){"string"==typeof r?r="string"==typeof t?r+t:[p(r),t]:r.push("string"==typeof t?p(t):t)}for(const t of n){const[e,n]=t;if(o(`\n${JSON.stringify(e)}\n`),"string"==typeof n||n instanceof Uint8Array)o(n);else{let t;try{t=JSON.stringify(n)}catch(e){t=JSON.stringify((0,s.Fv)(n))}o(t)}}return"string"==typeof r?r:function(t){const e=t.reduce(((t,e)=>t+e.length),0),n=new Uint8Array(e);let r=0;for(const e of t)n.set(e,r),r+=e.length;return n}(r)}function f(t){let e="string"==typeof t?p(t):t;function n(t){const n=e.subarray(0,t);return e=e.subarray(t+1),n}function o(){let t=e.indexOf(10);return t<0&&(t=e.length),JSON.parse(function(t){const e=(0,r.qA)(a.n);return e.decodePolyfill?e.decodePolyfill(t):(new TextDecoder).decode(t)}(n(t)))}const s=o(),i=[];for(;e.length;){const t=o(),e="number"==typeof t.length?t.length:void 0;i.push([t,e?n(e):o()])}return[s,i]}function h(t){return[{type:"span"},t]}function m(t){const e="string"==typeof t.data?p(t.data):t.data;return[{type:"attachment",length:e.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType},e]}const g={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",raw_security:"security",log:"log_item"};function _(t){return g[t]}function y(t){if(!t?.sdk)return;const{name:e,version:n}=t.sdk;return{name:e,version:n}}function v(t,e,n,r){const s=t.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:t.event_id,sent_at:(new Date).toISOString(),...e&&{sdk:e},...!!n&&r&&{dsn:(0,o.RA)(r)},...s&&{trace:s}}}},9144:(t,e,n)=>{n.d(e,{f:()=>o});var r=n(4329);function o(t){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const e=t||(0,r.s3)()?.getOptions();return!(!e||null==e.tracesSampleRate&&!e.tracesSampler)}},93308:(t,e,n)=>{n.d(e,{Cy:()=>_,HD:()=>u,J8:()=>g,Kj:()=>m,Le:()=>l,PO:()=>d,TX:()=>i,V9:()=>y,VW:()=>a,VZ:()=>o,cO:()=>f,fm:()=>c,gJ:()=>b,kK:()=>h,pt:()=>p,y1:()=>v});const r=Object.prototype.toString;function o(t){switch(r.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return y(t,Error)}}function s(t,e){return r.call(t)===`[object ${e}]`}function a(t){return s(t,"ErrorEvent")}function i(t){return s(t,"DOMError")}function c(t){return s(t,"DOMException")}function u(t){return s(t,"String")}function l(t){return"object"==typeof t&&null!==t&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function p(t){return null===t||l(t)||"object"!=typeof t&&"function"!=typeof t}function d(t){return s(t,"Object")}function f(t){return"undefined"!=typeof Event&&y(t,Event)}function h(t){return"undefined"!=typeof Element&&y(t,Element)}function m(t){return s(t,"RegExp")}function g(t){return Boolean(t?.then&&"function"==typeof t.then)}function _(t){return d(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function y(t,e){try{return t instanceof e}catch(t){return!1}}function v(t){return!("object"!=typeof t||null===t||!t.__isVue&&!t._isVue)}function b(t){return"undefined"!=typeof Request&&y(t,Request)}},33338:(t,e,n)=>{n.d(e,{j:()=>s});var r=n(73979),o=n(39311);function s(){return!("undefined"==typeof window||!(0,r.n)()&&"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)&&"renderer"!==o.n.process?.type)}},58691:(t,e,n)=>{function r(t,e){const n=e?.getDsn(),r=e?.getOptions().tunnel;return function(t,e){return!!e&&t.includes(e.host)}(t,n)||function(t,e){return!!e&&o(t)===o(e)}(t,r)}function o(t){return"/"===t[t.length-1]?t.slice(0,-1):t}n.d(e,{W:()=>r})},47245:(t,e,n)=>{n.d(e,{Cf:()=>c,LD:()=>i,RU:()=>a,fF:()=>y,kg:()=>_});var r=n(18015),o=n(68398),s=n(39311);const a=["debug","info","warn","error","log","assert","trace"],i={};function c(t){if(!("console"in s.n))return t();const e=s.n.console,n={},r=Object.keys(i);r.forEach((t=>{const r=i[t];n[t]=e[t],e[t]=r}));try{return t()}finally{r.forEach((t=>{e[t]=n[t]}))}}function u(){g().enabled=!0}function l(){g().enabled=!1}function p(){return g().enabled}function d(...t){m("log",...t)}function f(...t){m("warn",...t)}function h(...t){m("error",...t)}function m(t,...e){o.X&&p()&&c((()=>{s.n.console[t](`Sentry Logger [${t}]:`,...e)}))}function g(){return o.X?(0,r.YO)("loggerSettings",(()=>({enabled:!1}))):{enabled:!1}}const _={enable:u,disable:l,isEnabled:p,log:d,info:function(...t){m("info",...t)},warn:f,error:h,debug:function(...t){m("debug",...t)},assert:function(...t){m("assert",...t)},trace:function(...t){m("trace",...t)}},y={enable:u,disable:l,isEnabled:p,log:d,warn:f,error:h}},49641:(t,e,n)=>{function r(t,e,n=2){if(!e||"object"!=typeof e||n<=0)return e;if(t&&0===Object.keys(e).length)return t;const o={...t};for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(o[t]=r(o[t],e[t],n-1));return o}n.d(e,{T:()=>r})},85249:(t,e,n)=>{n.d(e,{DM:()=>a,Db:()=>u,EG:()=>l,YO:()=>d,go:()=>p,jH:()=>c});var r=n(21305),o=n(67918),s=n(39311);function a(t=function(){const t=s.n;return t.crypto||t.msCrypto}()){let e=()=>16*Math.random();try{if(t?.randomUUID)return t.randomUUID().replace(/-/g,"");t?.getRandomValues&&(e=()=>{const e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch(t){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(t=>(t^(15&e())>>t/4).toString(16)))}function i(t){return t.exception?.values?.[0]}function c(t){const{message:e,event_id:n}=t;if(e)return e;const r=i(t);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"":n||""}function u(t,e,n){const r=t.exception=t.exception||{},o=r.values=r.values||[],s=o[0]=o[0]||{};s.value||(s.value=e||""),s.type||(s.type=n||"Error")}function l(t,e){const n=i(t);if(!n)return;const r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...e},e&&"data"in e){const t={...r?.data,...e.data};n.mechanism.data=t}}function p(t,e,n=5){if(void 0===e.lineno)return;const r=t.length,s=Math.max(Math.min(r-1,e.lineno-1),0);e.pre_context=t.slice(Math.max(0,s-n),s).map((t=>(0,o.JM)(t,0)));const a=Math.min(r-1,s);e.context_line=(0,o.JM)(t[a],e.colno||0),e.post_context=t.slice(Math.min(s+1,r),s+1+n).map((t=>(0,o.JM)(t,0)))}function d(t){if(function(t){try{return t.__sentry_captured__}catch{}}(t))return!0;try{(0,r.xp)(t,"__sentry_captured__",!0)}catch(t){}return!1}},61137:(t,e,n)=>{n.d(e,{Fv:()=>a,Qy:()=>i});var r=n(93308),o=n(21305),s=n(74237);function a(t,e=100,n=1/0){try{return c("",t,e,n)}catch(t){return{ERROR:`**non-serializable** (${t})`}}}function i(t,e=3,n=102400){const r=a(t,e);return o=r,function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(o))>n?i(t,e-1,n):r;var o}function c(t,e,n=1/0,a=1/0,i=function(){const t=new WeakSet;return[function(e){return!!t.has(e)||(t.add(e),!1)},function(e){t.delete(e)}]}()){const[u,l]=i;if(null==e||["boolean","string"].includes(typeof e)||"number"==typeof e&&Number.isFinite(e))return e;const p=function(t,e){try{if("domain"===t&&e&&"object"==typeof e&&e._events)return"[Domain]";if("domainEmitter"===t)return"[DomainEmitter]";if("undefined"!=typeof global&&e===global)return"[Global]";if("undefined"!=typeof window&&e===window)return"[Window]";if("undefined"!=typeof document&&e===document)return"[Document]";if((0,r.y1)(e))return"[VueViewModel]";if((0,r.Cy)(e))return"[SyntheticEvent]";if("number"==typeof e&&!Number.isFinite(e))return`[${e}]`;if("function"==typeof e)return`[Function: ${(0,s.$P)(e)}]`;if("symbol"==typeof e)return`[${String(e)}]`;if("bigint"==typeof e)return`[BigInt: ${String(e)}]`;const n=function(t){const e=Object.getPrototypeOf(t);return e?.constructor?e.constructor.name:"null prototype"}(e);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(t){return`**non-serializable** (${t})`}}(t,e);if(!p.startsWith("[object "))return p;if(e.__sentry_skip_normalization__)return e;const d="number"==typeof e.__sentry_override_normalization_depth__?e.__sentry_override_normalization_depth__:n;if(0===d)return p.replace("object ","");if(u(e))return"[Circular ~]";const f=e;if(f&&"function"==typeof f.toJSON)try{return c("",f.toJSON(),d-1,a,i)}catch(t){}const h=Array.isArray(e)?[]:{};let m=0;const g=(0,o.Sh)(e);for(const t in g){if(!Object.prototype.hasOwnProperty.call(g,t))continue;if(m>=a){h[t]="[MaxProperties ~]";break}const e=g[t];h[t]=c(t,e,d-1,a,i),m++}return l(e),h}},21305:(t,e,n)=>{n.d(e,{$Q:()=>l,HK:()=>p,Sh:()=>d,hl:()=>c,xp:()=>u,zf:()=>m});var r=n(68398),o=n(37949),s=n(93308),a=n(47245),i=n(67918);function c(t,e,n){if(!(e in t))return;const o=t[e];if("function"!=typeof o)return;const s=n(o);"function"==typeof s&&l(s,o);try{t[e]=s}catch{r.X&&a.fF.log(`Failed to replace method "${e}" in object`,t)}}function u(t,e,n){try{Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}catch(n){r.X&&a.fF.log(`Failed to add non-enumerable property "${e}" to object`,t)}}function l(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 d(t){if((0,s.VZ)(t))return{message:t.message,name:t.name,stack:t.stack,...h(t)};if((0,s.cO)(t)){const e={type:t.type,target:f(t.target),currentTarget:f(t.currentTarget),...h(t)};return"undefined"!=typeof CustomEvent&&(0,s.V9)(t,CustomEvent)&&(e.detail=t.detail),e}return t}function f(t){try{return(0,s.kK)(t)?(0,o.Rt)(t):Object.prototype.toString.call(t)}catch(t){return""}}function h(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 m(t,e=40){const n=Object.keys(d(t));n.sort();const r=n[0];if(!r)return"[object has no keys]";if(r.length>=e)return(0,i.$G)(r,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,i.$G)(r,e)}return""}},96292:(t,e,n)=>{function r(t){if("boolean"==typeof t)return Number(t);const e="string"==typeof t?parseFloat(t):t;return"number"!=typeof e||isNaN(e)||e<0||e>1?void 0:e}n.d(e,{o:()=>r})},10437:(t,e,n)=>{n.d(e,{U0:()=>y,R:()=>_});var r=n(4219),o=n(4329),s=n(68398),a=n(93308),i=n(47245),c=n(50911);function u(t,e,n,r=0){return new c.cW(((o,c)=>{const l=t[r];if(null===e||"function"!=typeof l)o(e);else{const p=l({...e},n);s.X&&l.id&&null===p&&i.fF.log(`Event processor "${l.id}" dropped event`),(0,a.J8)(p)?p.then((e=>u(t,e,n,r+1).then(o))).then(null,c):u(t,p,n,r+1).then(o).then(null,c)}}))}var l=n(20487),p=n(63473),d=n(3920),f=n(85249),h=n(61137),m=n(67918),g=n(17435);function _(t,e,n,s,a,i){const{normalizeDepth:c=3,normalizeMaxBreadth:_=1e3}=t,y={...e,event_id:e.event_id||n.event_id||(0,f.DM)(),timestamp:e.timestamp||(0,g.yW)()},v=n.integrations||t.integrations.map((t=>t.name));!function(t,e){const{environment:n,release:o,dist:s,maxValueLength:a=250}=e;t.environment=t.environment||n||r.J,!t.release&&o&&(t.release=o),!t.dist&&s&&(t.dist=s);const i=t.request;i?.url&&(i.url=(0,m.$G)(i.url,a))}(y,t),function(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}(y,v),a&&a.emit("applyFrameMetadata",e),void 0===e.type&&function(t,e){const n=(0,d.N)(e);t.exception?.values?.forEach((t=>{t.stacktrace?.frames?.forEach((t=>{t.filename&&(t.debug_id=n[t.filename])}))}))}(y,t.stackParser);const b=function(t,e){if(!e)return t;const n=t?t.clone():new l.s;return n.update(e),n}(s,n.captureContext);n.mechanism&&(0,f.EG)(y,n.mechanism);const S=a?a.getEventProcessors():[],E=(0,o.lW)().getScopeData();if(i){const t=i.getScopeData();(0,p.yo)(E,t)}if(b){const t=b.getScopeData();(0,p.yo)(E,t)}const x=[...n.attachments||[],...E.attachments];return x.length&&(n.attachments=x),(0,p.gi)(y,E),u([...S,...E.eventProcessors],y,n).then((t=>(t&&function(t){const e={};if(t.exception?.values?.forEach((t=>{t.stacktrace?.frames?.forEach((t=>{t.debug_id&&(t.abs_path?e[t.abs_path]=t.debug_id:t.filename&&(e[t.filename]=t.debug_id),delete t.debug_id)}))})),0===Object.keys(e).length)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];const n=t.debug_meta.images;Object.entries(e).forEach((([t,e])=>{n.push({type:"sourcemap",code_file:t,debug_id:e})}))}(t),"number"==typeof c&&c>0?function(t,e,n){if(!t)return null;const r={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map((t=>({...t,...t.data&&{data:(0,h.Fv)(t.data,e,n)}})))},...t.user&&{user:(0,h.Fv)(t.user,e,n)},...t.contexts&&{contexts:(0,h.Fv)(t.contexts,e,n)},...t.extra&&{extra:(0,h.Fv)(t.extra,e,n)}};return t.contexts?.trace&&r.contexts&&(r.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(r.contexts.trace.data=(0,h.Fv)(t.contexts.trace.data,e,n))),t.spans&&(r.spans=t.spans.map((t=>({...t,...t.data&&{data:(0,h.Fv)(t.data,e,n)}})))),t.contexts?.flags&&r.contexts&&(r.contexts.flags=(0,h.Fv)(t.contexts.flags,3,n)),r}(t,c,_):t)))}function y(t){if(t)return function(t){return t instanceof l.s||"function"==typeof t}(t)||function(t){return Object.keys(t).some((t=>v.includes(t)))}(t)?{captureContext:t}:t}const v=["user","level","extra","contexts","tags","fingerprint","propagationContext"]},29067:(t,e,n)=>{n.d(e,{H:()=>o,M:()=>s});var r=n(85249);function o(){return(0,r.DM)()}function s(){return(0,r.DM)().substring(16)}},78574:(t,e,n)=>{function r(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}function o(t,e,n=Date.now()){return function(t,e){return t[e]||t.all||0}(t,e)>n}function s(t,{statusCode:e,headers:n},o=Date.now()){const s={...t},a=n?.["x-sentry-rate-limits"],i=n?.["retry-after"];if(a)for(const t of a.trim().split(",")){const[e,n,,,r]=t.split(":",5),a=parseInt(e,10),i=1e3*(isNaN(a)?60:a);if(n)for(const t of n.split(";"))"metric_bucket"===t&&r&&!r.split(";").includes("custom")||(s[t]=o+i);else s.all=o+i}else i?s.all=o+r(i,o):429===e&&(s.all=o+6e4);return s}n.d(e,{JY:()=>r,Q:()=>o,WG:()=>s})},2868:(t,e,n)=>{function r(t){return"warn"===t?"warning":["fatal","error","warning","log","info","debug"].includes(t)?t:"log"}n.d(e,{V:()=>r})},57109:(t,e,n)=>{n.d(e,{D:()=>s,Y:()=>a});var r=n(21305);const o="_sentrySpan";function s(t,e){e?(0,r.xp)(t,o,e):delete t[o]}function a(t){return t[o]}},65405:(t,e,n)=>{n.d(e,{$k:()=>E,Dp:()=>O,FF:()=>S,Gx:()=>C,HN:()=>A,HR:()=>y,Hb:()=>b,R6:()=>D,Tt:()=>k,XU:()=>w,_4:()=>T,ed:()=>P,g5:()=>F,i0:()=>g,j5:()=>R,ve:()=>m,wy:()=>v});var r=n(82821),o=n(18015),s=n(4329),a=n(91699),i=n(15698),c=n(40710),u=n(47245),l=n(21305),p=n(29067),d=n(17435),f=n(3560),h=n(57109);const m=0,g=1;let _=!1;function y(t){const{spanId:e,traceId:n}=t.spanContext(),{data:r,op:o,parent_span_id:s,status:a,origin:i,links:c}=w(t);return{parent_span_id:s,span_id:e,trace_id:n,data:r,op:o,status:a,origin:i,links:c}}function v(t){const{spanId:e,traceId:n,isRemote:r}=t.spanContext(),o=r?e:w(t).parent_span_id,s=(0,c.I)(t).scope;return{parent_span_id:o,span_id:r?s?.getPropagationContext().propagationSpanId||(0,p.M)():e,trace_id:n}}function b(t){const{traceId:e,spanId:n}=t.spanContext(),r=k(t);return(0,f.$p)(e,n,r)}function S(t){return t&&t.length>0?t.map((({context:{spanId:t,traceId:e,traceFlags:n,...r},attributes:o})=>({span_id:t,trace_id:e,sampled:n===g,attributes:o,...r}))):void 0}function E(t){return"number"==typeof t?x(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?x(t.getTime()):(0,d.ph)()}function x(t){return t>9999999999?t/1e3:t}function w(t){if(function(t){return"function"==typeof t.getSpanJSON}(t))return t.getSpanJSON();const{spanId:e,traceId:n}=t.spanContext();if(function(t){const e=t;return!!(e.attributes&&e.startTime&&e.name&&e.endTime&&e.status)}(t)){const{attributes:r,startTime:o,name:s,endTime:i,status:c,links:u}=t;return{span_id:e,trace_id:n,data:r,description:s,parent_span_id:"parentSpanId"in t?t.parentSpanId:"parentSpanContext"in t?t.parentSpanContext?.spanId:void 0,start_timestamp:E(o),timestamp:E(i)||void 0,status:T(c),op:r[a.$J],origin:r[a.S3],links:S(u)}}return{span_id:e,trace_id:n,start_timestamp:0,data:{}}}function k(t){const{traceFlags:e}=t.spanContext();return e===g}function T(t){if(t&&t.code!==i.pq)return t.code===i.OP?"ok":t.message||"unknown_error"}const I="_sentryChildSpans",$="_sentryRootSpan";function R(t,e){const n=t[$]||t;(0,l.xp)(e,$,n),t[I]?t[I].add(e):(0,l.xp)(t,I,new Set([e]))}function P(t,e){t[I]&&t[I].delete(e)}function O(t){const e=new Set;return function t(n){if(!e.has(n)&&k(n)){e.add(n);const r=n[I]?Array.from(n[I]):[];for(const e of r)t(e)}}(t),Array.from(e)}function C(t){return t[$]||t}function A(){const t=(0,o.cu)(),e=(0,r.G)(t);return e.getActiveSpan?e.getActiveSpan():(0,h.Y)((0,s.nZ)())}function D(){_||((0,u.Cf)((()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly.")})),_=!0)}function F(t,e){t.updateName(e),t.setAttributes({[a.Zj]:"custom",[a.xF]:e})}},74237:(t,e,n)=>{n.d(e,{$P:()=>l,Fi:()=>r,Fr:()=>p,Sq:()=>i,pE:()=>a});const r="?",o=/\(error: (.*)\)/,s=/captureMessage|captureException/;function a(...t){const e=t.sort(((t,e)=>t[0]-e[0])).map((t=>t[1]));return(t,n=0,a=0)=>{const i=[],u=t.split("\n");for(let t=n;t1024)continue;const r=o.test(n)?n.replace(o,"$1"):n;if(!r.match(/\S*Error: /)){for(const t of e){const e=t(r);if(e){i.push(e);break}}if(i.length>=50+a)break}}return function(t){if(!t.length)return[];const e=Array.from(t);return/sentryWrapped/.test(c(e).function||"")&&e.pop(),e.reverse(),s.test(c(e).function||"")&&(e.pop(),s.test(c(e).function||"")&&e.pop()),e.slice(0,50).map((t=>({...t,filename:t.filename||c(e).filename,function:t.function||r})))}(i.slice(a))}}function i(t){return Array.isArray(t)?a(...t):t}function c(t){return t[t.length-1]||{}}const u="";function l(t){try{return t&&"function"==typeof t&&t.name||u}catch(t){return u}}function p(t){const e=t.exception;if(e){const t=[];try{return e.values.forEach((e=>{e.stacktrace.frames&&t.push(...e.stacktrace.frames)})),t}catch(t){return}}}},67918:(t,e,n)=>{n.d(e,{$G:()=>o,JM:()=>s,U0:()=>i,nK:()=>a});var r=n(93308);function o(t,e=0){return"string"!=typeof t||0===e||t.length<=e?t:`${t.slice(0,e)}...`}function s(t,e){let n=t;const r=n.length;if(r<=150)return n;e>r&&(e=r);let o=Math.max(e-60,0);o<5&&(o=0);let s=Math.min(o+140,r);return s>r-5&&(s=r),s===r&&(o=Math.max(s-140,0)),n=n.slice(o,s),o>0&&(n=`'{snip} ${n}`),sfunction(t,e,n=!1){return!!(0,r.HD)(t)&&((0,r.Kj)(e)?e.test(t):!!(0,r.HD)(e)&&(n?t===e:t.includes(e)))}(t,e,n)))}},79917:(t,e,n)=>{n.d(e,{Bf:()=>a,QC:()=>i,t$:()=>c,zb:()=>u});var r=n(68398),o=n(47245);const s=n(39311).n;function a(){return"history"in s&&!!s.history}function i(t){return t&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function c(){if("string"==typeof EdgeRuntime)return!0;if(!function(){if(!("fetch"in s))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(t){return!1}}())return!1;if(i(s.fetch))return!0;let t=!1;const e=s.document;if(e&&"function"==typeof e.createElement)try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n),n.contentWindow?.fetch&&(t=i(n.contentWindow.fetch)),e.head.removeChild(n)}catch(t){r.X&&o.fF.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}return t}function u(){return"ReportingObserver"in s}},50911:(t,e,n)=>{n.d(e,{$2:()=>s,WD:()=>o,cW:()=>a});var r=n(93308);function o(t){return new a((e=>{e(t)}))}function s(t){return new a(((e,n)=>{n(t)}))}class a{constructor(t){this._state=0,this._handlers=[],this._runExecutor(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,o;return this.then((e=>{o=!1,r=e,t&&t()}),(e=>{o=!0,r=e,t&&t()})).then((()=>{o?n(r):e(r)}))}))}_executeHandlers(){if(0===this._state)return;const t=this._handlers.slice();this._handlers=[],t.forEach((t=>{t[0]||(1===this._state&&t[1](this._value),2===this._state&&t[2](this._value),t[0]=!0)}))}_runExecutor(t){const e=(t,e)=>{0===this._state&&((0,r.J8)(e)?e.then(n,o):(this._state=t,this._value=e,this._executeHandlers()))},n=t=>{e(1,t)},o=t=>{e(2,t)};try{t(n,o)}catch(t){o(t)}}}},17435:(t,e,n)=>{n.d(e,{Z1:()=>c,ph:()=>i,yW:()=>o});var r=n(39311);function o(){return Date.now()/1e3}let s,a;function i(){return(s??(s=function(){const{performance:t}=r.n;if(!t?.now||!t.timeOrigin)return o;const e=t.timeOrigin;return()=>(e+t.now())/1e3}()))()}function c(){return a||(a=function(){const{performance:t}=r.n;if(!t?.now)return[void 0,"none"];const e=36e5,n=t.now(),o=Date.now(),s=t.timeOrigin?Math.abs(t.timeOrigin+n-o):e,a=s{n.d(e,{$p:()=>c,Ke:()=>a,pT:()=>i});var r=n(3275),o=n(96292),s=n(29067);const a=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function i(t,e){const n=function(t){if(!t)return;const e=t.match(a);if(!e)return;let n;return"1"===e[3]?n=!0:"0"===e[3]&&(n=!1),{traceId:e[1],parentSampled:n,parentSpanId:e[2]}}(t),i=(0,r.EN)(e);if(!n?.traceId)return{traceId:(0,s.H)(),sampleRand:Math.random()};const c=function(t,e){const n=(0,o.o)(e?.sample_rand);if(void 0!==n)return n;const r=(0,o.o)(e?.sample_rate);return r&&void 0!==t?.parentSampled?t.parentSampled?Math.random()*r:r+Math.random()*(1-r):Math.random()}(n,i);i&&(i.sample_rand=c.toString());const{traceId:u,parentSpanId:l,parentSampled:p}=n;return{traceId:u,parentSpanId:l,sampled:p,dsc:i||{},sampleRand:c}}function c(t=(0,s.H)(),e=(0,s.M)(),n){let r="";return void 0!==n&&(r=n?"-1":"-0"),`${t}-${e}${r}`}},87512:(t,e,n)=>{function r(t){return"isRelative"in t}function o(t,e){const n=t.indexOf("://")<=0&&0!==t.indexOf("//"),r=e??(n?"thismessage:/":void 0);try{if("canParse"in URL&&!URL.canParse(t,r))return;const e=new URL(t,r);return n?{isRelative:n,pathname:e.pathname,search:e.search,hash:e.hash}:e}catch{}}function s(t){if(r(t))return t.pathname;const e=new URL(t);return e.search="",e.hash="",["80","443"].includes(e.port)&&(e.port=""),e.password&&(e.password="%filtered%"),e.username&&(e.username="%filtered%"),e.toString()}function a(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}}function i(t){return t.split(/[?#]/,1)[0]}n.d(e,{DR:()=>r,Qq:()=>s,en:()=>a,gk:()=>o,rt:()=>i})},48474:(t,e,n)=>{n.d(e,{J:()=>r});const r="9.39.0"},39311:(t,e,n)=>{n.d(e,{n:()=>r});const r=globalThis},90512:(t,e,n)=>{n.r(e),n.d(e,{BrowserClient:()=>sn,ErrorBoundary:()=>ts,OpenFeatureIntegrationHook:()=>No,Profiler:()=>Vo,SDK_VERSION:()=>a.J,SEMANTIC_ATTRIBUTE_SENTRY_OP:()=>q.$J,SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN:()=>q.S3,SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE:()=>q.TE,SEMANTIC_ATTRIBUTE_SENTRY_SOURCE:()=>q.Zj,Scope:()=>yt.s,WINDOW:()=>d,addBreadcrumb:()=>vt.n,addEventProcessor:()=>l.Qy,addIntegration:()=>R.M5,breadcrumbsIntegration:()=>Un,browserApiErrorsIntegration:()=>qn,browserProfilingIntegration:()=>Oo,browserSessionIntegration:()=>Bn,browserTracingIntegration:()=>Kr,buildLaunchDarklyFlagUsedHandler:()=>Do,captureConsoleIntegration:()=>kt,captureEvent:()=>l.eN,captureException:()=>l.Tb,captureFeedback:()=>Tt.N,captureMessage:()=>l.uT,captureReactException:()=>Xo,captureSession:()=>l.cg,chromeStackLineParser:()=>fn,close:()=>l.xv,consoleLoggingIntegration:()=>Rt,contextLinesIntegration:()=>vr,continueTrace:()=>Ot.yn,createReduxEnhancer:()=>rs,createTransport:()=>Dt,createUserFeedbackEnvelope:()=>Tn,dedupeIntegration:()=>Nt,defaultRequestInstrumentationOptions:()=>Nr,defaultStackLineParsers:()=>xn,defaultStackParser:()=>wn,diagnoseSdkConnectivity:()=>Uo,endSession:()=>l.TM,eventFiltersIntegration:()=>Ht,eventFromException:()=>tn,eventFromMessage:()=>en,exceptionFromError:()=>Ge,extraErrorDataIntegration:()=>Wt,featureFlagsIntegration:()=>Kt,feedbackAsyncIntegration:()=>b,feedbackIntegration:()=>S,feedbackSyncIntegration:()=>S,flush:()=>l.yl,forceLoad:()=>or,functionToStringIntegration:()=>Qt,geckoStackLineParser:()=>gn,getActiveSpan:()=>U.HN,getClient:()=>s.s3,getCurrentScope:()=>s.nZ,getDefaultIntegrations:()=>nr,getFeedback:()=>o.qm,getGlobalScope:()=>s.lW,getIsolationScope:()=>s.aF,getReplay:()=>kr.T,getRootSpan:()=>U.Gx,getSpanDescendants:()=>U.Dp,getSpanStatusFromHttpCode:()=>te.ix,getTraceData:()=>oe,globalHandlersIntegration:()=>Gn,graphqlClientIntegration:()=>wr,httpClientIntegration:()=>pr,httpContextIntegration:()=>Kn,inboundFiltersIntegration:()=>qt,init:()=>qo,instrumentOutgoingRequests:()=>jr,instrumentSupabaseClient:()=>he,isEnabled:()=>l._k,isInitialized:()=>l.dk,lastEventId:()=>l.eW,launchDarklyIntegration:()=>Ao,lazyLoadIntegration:()=>v,linkedErrorsIntegration:()=>er,logger:()=>r,makeBrowserOfflineTransport:()=>co,makeFetchTransport:()=>cn,makeMultiplexedTransport:()=>_e,moduleMetadataIntegration:()=>xe,onLoad:()=>sr,openFeatureIntegration:()=>Fo,opera10StackLineParser:()=>bn,opera11StackLineParser:()=>En,parameterize:()=>ut,reactErrorHandler:()=>Jo,reactRouterV3BrowserTracingIntegration:()=>os,reactRouterV4BrowserTracingIntegration:()=>cs,reactRouterV5BrowserTracingIntegration:()=>us,reactRouterV6BrowserTracingIntegration:()=>Xs,reactRouterV7BrowserTracingIntegration:()=>Zs,registerSpanErrorInstrumentation:()=>Oe,replayCanvasIntegration:()=>Tr.m,replayIntegration:()=>kr.G,reportingObserverIntegration:()=>ur,rewriteFramesIntegration:()=>Fe,sendFeedback:()=>o.fA,setContext:()=>l.v,setCurrentClient:()=>Ne,setExtra:()=>l.sU,setExtras:()=>l.rJ,setHttpStatus:()=>te.Q0,setMeasurement:()=>je.o,setTag:()=>l.YA,setTags:()=>l.mG,setUser:()=>l.av,showReportDialog:()=>ar,spanToBaggageHeader:()=>O.uc,spanToJSON:()=>U.XU,spanToTraceHeader:()=>U.Hb,spotlightBrowserIntegration:()=>Co,startBrowserTracingNavigationSpan:()=>Yr,startBrowserTracingPageLoadSpan:()=>zr,startInactiveSpan:()=>Ot.qp,startNewTrace:()=>Ot.Iw,startSession:()=>l.yj,startSpan:()=>Ot.GK,startSpanManual:()=>Ot.V0,statsigIntegration:()=>Mo,supabaseIntegration:()=>me,suppressTracing:()=>Ot.hE,tanstackRouterBrowserTracingIntegration:()=>as,thirdPartyErrorFilterIntegration:()=>Le,unleashIntegration:()=>jo,updateSpanName:()=>U.g5,useProfiler:()=>zo,winjsStackLineParser:()=>yn,withActiveSpan:()=>Ot._d,withErrorBoundary:()=>es,withIsolationScope:()=>s.wi,withProfiler:()=>Ko,withScope:()=>s.$e,withSentryReactRouterV6Routing:()=>Gs,withSentryReactRouterV7Routing:()=>Vs,withSentryRouting:()=>ds,wrapCreateBrowserRouterV6:()=>Ws,wrapCreateBrowserRouterV7:()=>Ks,wrapCreateMemoryRouterV6:()=>Bs,wrapCreateMemoryRouterV7:()=>zs,wrapUseRoutesV6:()=>Js,wrapUseRoutesV7:()=>Ys,zodErrorsIntegration:()=>qe});var r={};n.r(r),n.d(r,{debug:()=>ft,error:()=>gt,fatal:()=>_t,fmt:()=>lt,info:()=>ht,trace:()=>dt,warn:()=>mt});var o=n(13849),s=n(4329),a=n(48474),i=n(39311),c=n(21305),u=n(85249),l=n(17807),p=n(37949);const d=i.n;let f=0;function h(){return f>0}function m(t,e={}){if(!function(t){return"function"==typeof t}(t))return t;try{const e=t.__sentry_wrapped__;if(e)return"function"==typeof e?e:t;if((0,c.HK)(t))return t}catch(e){return t}const n=function(...n){try{const r=n.map((t=>m(t,e)));return t.apply(this,r)}catch(t){throw f++,setTimeout((()=>{f--})),(0,s.$e)((r=>{r.addEventProcessor((t=>(e.mechanism&&((0,u.Db)(t,void 0,void 0),(0,u.EG)(t,e.mechanism)),t.extra={...t.extra,arguments:n},t))),(0,l.Tb)(t)})),t}};try{for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e])}catch{}(0,c.$Q)(n,t),(0,c.xp)(t,"__sentry_wrapped__",n);try{Object.getOwnPropertyDescriptor(n,"name").configurable&&Object.defineProperty(n,"name",{get:()=>t.name})}catch{}return n}function g(){const t=(0,p.l4)(),{referrer:e}=d.document||{},{userAgent:n}=d.navigator||{};return{url:t,headers:{...e&&{Referer:e},...n&&{"User-Agent":n}}}}const _={replayIntegration:"replay",replayCanvasIntegration:"replay-canvas",feedbackIntegration:"feedback",feedbackModalIntegration:"feedback-modal",feedbackScreenshotIntegration:"feedback-screenshot",captureConsoleIntegration:"captureconsole",contextLinesIntegration:"contextlines",linkedErrorsIntegration:"linkederrors",dedupeIntegration:"dedupe",extraErrorDataIntegration:"extraerrordata",graphqlClientIntegration:"graphqlclient",httpClientIntegration:"httpclient",reportingObserverIntegration:"reportingobserver",rewriteFramesIntegration:"rewriteframes",browserProfilingIntegration:"browserprofiling",moduleMetadataIntegration:"modulemetadata"},y=d;async function v(t,e){const n=_[t],r=y.Sentry=y.Sentry||{};if(!n)throw new Error(`Cannot lazy load integration: ${t}`);const o=r[t];if("function"==typeof o&&!("_isShim"in o))return o;const i=function(t){const e=(0,s.s3)()?.getOptions()?.cdnBaseUrl||"https://browser.sentry-cdn.com";return new URL(`/${a.J}/${t}.min.js`,e).toString()}(n),c=d.document.createElement("script");c.src=i,c.crossOrigin="anonymous",c.referrerPolicy="strict-origin",e&&c.setAttribute("nonce",e);const u=new Promise(((t,e)=>{c.addEventListener("load",(()=>t())),c.addEventListener("error",e)})),l=d.document.currentScript,p=d.document.body||d.document.head||l?.parentElement;if(!p)throw new Error(`Could not find parent element to insert lazy-loaded ${t} script`);p.appendChild(c);try{await u}catch{throw new Error(`Error when loading integration: ${t}`)}const f=r[t];if("function"!=typeof f)throw new Error(`Could not load integration: ${t}`);return f}const b=(0,o.rp)({lazyLoadIntegration:v}),S=(0,o.rp)({getModalIntegration:()=>o.gS,getScreenshotIntegration:()=>o.U0});var E=n(18015),x=n(13470);function w(t){const e=t.protocol?`${t.protocol}:`:"",n=t.port?`:${t.port}`:"";return`${e}//${t.host}${n}${t.path?`/${t.path}`:""}/api/`}function k(t,e,n){return e||`${function(t){return`${w(t)}${t.projectId}/envelope/`}(t)}?${function(t,e){const n={sentry_version:"7"};return t.publicKey&&(n.sentry_key=t.publicKey),e&&(n.sentry_client=`${e.name}/${e.version}`),new URLSearchParams(n).toString()}(t,n)}`}var T=n(4219),I=n(68398),$=n(68780),R=n(66893),P=n(83652),O=n(7406),C=n(5947),A=n(17435);function D(t){const e=[];t.message&&e.push(t.message);try{const n=t.exception.values[t.exception.values.length-1];n?.value&&(e.push(n.value),n.type&&e.push(`${n.type}: ${n.value}`))}catch(t){}return e}var F=n(93308),N=n(47245),j=n(49641),L=n(96292),M=n(10437),U=n(65405),H=n(50911),q=n(91699);const X="Not capturing exception because it's already been captured.",J="Discarded session because of missing or non-string release",W=Symbol.for("SentryInternalError"),B=Symbol.for("SentryDoNotSendEventError");function G(t){return{message:t,[W]:!0}}function Z(t){return{message:t,[B]:!0}}function V(t){return!!t&&"object"==typeof t&&W in t}function K(t){return!!t&&"object"==typeof t&&B in t}class z{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=(0,x.vK)(t.dsn):I.X&&N.fF.warn("No DSN provided, client will not send events."),this._dsn){const e=k(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:e})}}captureException(t,e,n){const r=(0,u.DM)();if((0,u.YO)(t))return I.X&&N.fF.log(X),r;const o={event_id:r,...e};return this._process(this.eventFromException(t,o).then((t=>this._captureEvent(t,o,n)))),o.event_id}captureMessage(t,e,n,r){const o={event_id:(0,u.DM)(),...n},s=(0,F.Le)(t)?t:String(t),a=(0,F.pt)(t)?this.eventFromMessage(s,e,o):this.eventFromException(t,o);return this._process(a.then((t=>this._captureEvent(t,o,r)))),o.event_id}captureEvent(t,e,n){const r=(0,u.DM)();if(e?.originalException&&(0,u.YO)(e.originalException))return I.X&&N.fF.log(X),r;const o={event_id:r,...e},s=t.sdkProcessingMetadata||{},a=s.capturedSpanScope,i=s.capturedSpanIsolationScope;return this._process(this._captureEvent(t,o,a||n,i)),o.event_id}captureSession(t){this.sendSession(t),(0,P.CT)(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.emit("flush"),this._isClientDoneProcessing(t).then((n=>e.flush(t).then((t=>n&&t))))):(0,H.WD)(!0)}close(t){return this.flush(t).then((t=>(this.getOptions().enabled=!1,this.emit("close"),t)))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}init(){(this._isEnabled()||this._options.integrations.some((({name:t})=>t.startsWith("Spotlight"))))&&this._setupIntegrations()}getIntegrationByName(t){return this._integrations[t]}addIntegration(t){const e=this._integrations[t.name];(0,R.m7)(this,t,this._integrations),e||(0,R.uf)(this,[t])}sendEvent(t,e={}){this.emit("beforeSendEvent",t,e);let n=(0,$.Mq)(t,this._dsn,this._options._metadata,this._options.tunnel);for(const t of e.attachments||[])n=(0,C.BO)(n,(0,C.zQ)(t));const r=this.sendEnvelope(n);r&&r.then((e=>this.emit("afterSendEvent",t,e)),null)}sendSession(t){const{release:e,environment:n=T.J}=this._options;if("aggregates"in t){const r=t.attrs||{};if(!r.release&&!e)return void(I.X&&N.fF.warn(J));r.release=r.release||e,r.environment=r.environment||n,t.attrs=r}else{if(!t.release&&!e)return void(I.X&&N.fF.warn(J));t.release=t.release||e,t.environment=t.environment||n}this.emit("beforeSendSession",t);const r=(0,$.Q3)(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(r)}recordDroppedEvent(t,e,n=1){if(this._options.sendClientReports){const r=`${t}:${e}`;I.X&&N.fF.log(`Recording outcome: "${r}"${n>1?` (${n} times)`:""}`),this._outcomes[r]=(this._outcomes[r]||0)+n}}on(t,e){const n=this._hooks[t]=this._hooks[t]||[];return n.push(e),()=>{const t=n.indexOf(e);t>-1&&n.splice(t,1)}}emit(t,...e){const n=this._hooks[t];n&&n.forEach((t=>t(...e)))}sendEnvelope(t){return this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport?this._transport.send(t).then(null,(t=>(I.X&&N.fF.error("Error while sending envelope:",t),t))):(I.X&&N.fF.error("Transport disabled"),(0,H.WD)({}))}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=(0,R.q4)(this,t),(0,R.uf)(this,t)}_updateSessionFromEvent(t,e){let n="fatal"===e.level,r=!1;const o=e.exception?.values;if(o){r=!0;for(const t of o)if(!1===t.mechanism?.handled){n=!0;break}}const s="ok"===t.status;(s&&0===t.errors||s&&n)&&((0,P.CT)(t,{...n&&{status:"crashed"},errors:t.errors||Number(r||n)}),this.captureSession(t))}_isClientDoneProcessing(t){return new H.cW((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){const o=this.getOptions(),a=Object.keys(this._integrations);return!e.integrations&&a?.length&&(e.integrations=a),this.emit("preprocessEvent",t,e),t.type||r.setLastEventId(t.event_id||e.event_id),(0,M.R)(o,t,e,n,this,r).then((t=>{if(null===t)return t;this.emit("postprocessEvent",t,e),t.contexts={trace:(0,s.XX)(n),...t.contexts};const r=(0,O.CG)(this,n);return t.sdkProcessingMetadata={dynamicSamplingContext:r,...t.sdkProcessingMetadata},t}))}_captureEvent(t,e={},n=(0,s.nZ)(),r=(0,s.aF)()){return I.X&&Y(t)&&N.fF.log(`Captured error event \`${D(t)[0]||""}\``),this._processEvent(t,e,n,r).then((t=>t.event_id),(t=>{I.X&&(K(t)?N.fF.log(t.message):V(t)?N.fF.warn(t.message):N.fF.warn(t))}))}_processEvent(t,e,n,r){const o=this.getOptions(),{sampleRate:s}=o,a=Q(t),i=Y(t),c=t.type||"error",u=`before send for type \`${c}\``,l=void 0===s?void 0:(0,L.o)(s);if(i&&"number"==typeof l&&Math.random()>l)return this.recordDroppedEvent("sample_rate","error"),(0,H.$2)(Z(`Discarding event because it's not included in the random sample (sampling rate = ${s})`));const p="replay_event"===c?"replay":c;return this._prepareEvent(t,e,n,r).then((t=>{if(null===t)throw this.recordDroppedEvent("event_processor",p),Z("An event processor returned `null`, will not send event.");if(e.data&&!0===e.data.__sentry__)return t;const n=function(t,e,n,r){const{beforeSend:o,beforeSendTransaction:s,beforeSendSpan:a}=e;let i=n;if(Y(i)&&o)return o(i,r);if(Q(i)){if(a){const t=a(function(t){const{trace_id:e,parent_span_id:n,span_id:r,status:o,origin:s,data:a,op:i}=t.contexts?.trace??{};return{data:a??{},description:t.transaction,op:i,parent_span_id:n,span_id:r??"",start_timestamp:t.start_timestamp??0,status:o,timestamp:t.timestamp,trace_id:e??"",origin:s,profile_id:a?.[q.p6],exclusive_time:a?.[q.JQ],measurements:t.measurements,is_segment:!0}}(i));if(t?i=(0,j.T)(n,{type:"transaction",timestamp:(c=t).timestamp,start_timestamp:c.start_timestamp,transaction:c.description,contexts:{trace:{trace_id:c.trace_id,span_id:c.span_id,parent_span_id:c.parent_span_id,op:c.op,status:c.status,origin:c.origin,data:{...c.data,...c.profile_id&&{[q.p6]:c.profile_id},...c.exclusive_time&&{[q.JQ]:c.exclusive_time}}}},measurements:c.measurements}):(0,U.R6)(),i.spans){const t=[];for(const e of i.spans){const n=a(e);n?t.push(n):((0,U.R6)(),t.push(e))}i.spans=t}}if(s){if(i.spans){const t=i.spans.length;i.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:t}}return s(i,r)}}var c;return i}(0,o,t,e);return function(t,e){const n=`${e} must return \`null\` or a valid event.`;if((0,F.J8)(t))return t.then((t=>{if(!(0,F.PO)(t)&&null!==t)throw G(n);return t}),(t=>{throw G(`${e} rejected with ${t}`)}));if(!(0,F.PO)(t)&&null!==t)throw G(n);return t}(n,u)})).then((o=>{if(null===o){if(this.recordDroppedEvent("before_send",p),a){const e=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",e)}throw Z(`${u} returned \`null\`, will not send event.`)}const s=n.getSession()||r.getSession();if(i&&s&&this._updateSessionFromEvent(s,o),a){const t=(o.sdkProcessingMetadata?.spanCountBeforeProcessing||0)-(o.spans?o.spans.length:0);t>0&&this.recordDroppedEvent("before_send","span",t)}const c=o.transaction_info;if(a&&c&&o.transaction!==t.transaction){const t="custom";o.transaction_info={...c,source:t}}return this.sendEvent(o,e),o})).then(null,(t=>{if(K(t)||V(t))throw t;throw this.captureException(t,{data:{__sentry__:!0},originalException:t}),G(`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)))}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.entries(t).map((([t,e])=>{const[n,r]=t.split(":");return{reason:n,category:r,quantity:e}}))}_flushOutcomes(){I.X&&N.fF.log("Flushing outcomes...");const t=this._clearOutcomes();if(0===t.length)return void(I.X&&N.fF.log("No outcomes to send"));if(!this._dsn)return void(I.X&&N.fF.log("No dsn provided, will not send outcomes"));I.X&&N.fF.log("Sending outcomes:",t);const e=function(t,e,n){const r=[{type:"client_report"},{timestamp:(0,A.yW)(),discarded_events:t}];return(0,C.Jd)(e?{dsn:e}:{},[r])}(t,this._options.tunnel&&(0,x.RA)(this._dsn));this.sendEnvelope(e)}}function Y(t){return void 0===t.type}function Q(t){return"transaction"===t.type}var tt=n(63473),et=n(57109);const nt={trace:1,debug:5,info:9,warn:13,error:17,fatal:21};function rt(t,e,n,r=!0){!n||t[e]&&!r||(t[e]=n)}function ot(t,e){const n=ct(),r=it(t);void 0===r?n.set(t,[e]):(n.set(t,[...r,e]),r.length>=100&&at(t,r))}function st(t,e=(0,s.s3)(),n=(0,s.nZ)(),r=ot){if(!e)return void(I.X&&N.fF.warn("No client available to capture log."));const{_experiments:o,release:a,environment:i}=e.getOptions(),{enableLogs:c=!1,beforeSendLog:u}=o??{};if(!c)return void(I.X&&N.fF.warn("logging option not enabled, log will not be captured."));const[,l]=function(t,e){return e?(0,s.$e)(e,(()=>{const n=(0,U.HN)(),r=n?(0,U.wy)(n):(0,s.XX)(e);return[n?(0,O.jC)(n):(0,O.CG)(t,e),r]})):[void 0,void 0]}(e,n),p={...t.attributes},{user:{id:d,email:f,username:h}}=function(t){const e=(0,s.lW)().getScopeData();return(0,tt.yo)(e,(0,s.aF)().getScopeData()),(0,tt.yo)(e,t.getScopeData()),e}(n);rt(p,"user.id",d,!1),rt(p,"user.email",f,!1),rt(p,"user.name",h,!1),rt(p,"sentry.release",a),rt(p,"sentry.environment",i);const{name:m,version:g}=e.getSdkMetadata()?.sdk??{};rt(p,"sentry.sdk.name",m),rt(p,"sentry.sdk.version",g);const _=t.message;if((0,F.Le)(_)){const{__sentry_template_string__:t,__sentry_template_values__:e=[]}=_;p["sentry.message.template"]=t,e.forEach(((t,e)=>{p[`sentry.message.parameter.${e}`]=t}))}const y=(0,et.Y)(n);rt(p,"sentry.trace.parent_span_id",y?.spanContext().spanId);const v={...t,attributes:p};e.emit("beforeCaptureLog",v);const b=u?(0,N.Cf)((()=>u(v))):v;if(!b)return e.recordDroppedEvent("before_send","log_item",1),void(I.X&&N.fF.warn("beforeSendLog returned null, log will not be captured."));const{level:S,message:E,attributes:x={},severityNumber:w}=b;r(e,{timestamp:(0,A.ph)(),level:S,body:E,trace_id:l?.trace_id,severity_number:w??nt[S],attributes:Object.keys(x).reduce(((t,e)=>(t[e]=function(t){switch(typeof t){case"number":return Number.isInteger(t)?{value:t,type:"integer"}:{value:t,type:"double"};case"boolean":return{value:t,type:"boolean"};case"string":return{value:t,type:"string"};default:{let e="";try{e=JSON.stringify(t)??""}catch{}return{value:e,type:"string"}}}}(x[e]),t)),{})}),e.emit("afterCaptureLog",b)}function at(t,e){const n=e??it(t)??[];if(0===n.length)return;const r=t.getOptions(),o=function(t,e,n,r){const o={};return e?.sdk&&(o.sdk={name:e.sdk.name,version:e.sdk.version}),n&&r&&(o.dsn=(0,x.RA)(r)),(0,C.Jd)(o,[(s=t,[{type:"log",item_count:s.length,content_type:"application/vnd.sentry.items.log+json"},{items:s}])]);var s}(n,r._metadata,r.tunnel,t.getDsn());ct().set(t,[]),t.emit("flushLogs"),t.sendEnvelope(o)}function it(t){return ct().get(t)}function ct(){return(0,E.YO)("clientToLogBufferMap",(()=>new WeakMap))}function ut(t,...e){const n=new String(String.raw(t,...e));return n.__sentry_template_string__=t.join("\0").replace(/%/g,"%%").replace(/\0/g,"%s"),n.__sentry_template_values__=e,n}const lt=ut;function pt(t,e,n,r){st({level:t,message:e,attributes:n,severityNumber:r})}function dt(t,e){pt("trace",t,e)}function ft(t,e){pt("debug",t,e)}function ht(t,e){pt("info",t,e)}function mt(t,e){pt("warn",t,e)}function gt(t,e){pt("error",t,e)}function _t(t,e){pt("fatal",t,e)}var yt=n(20487),vt=n(3601),bt=n(42518);function St(t){const e="console";(0,bt.Hj)(e,t),(0,bt.D2)(e,Et)}function Et(){"console"in i.n&&N.RU.forEach((function(t){t in i.n.console&&(0,c.hl)(i.n.console,t,(function(e){return N.LD[t]=e,function(...e){const n={args:e,level:t};(0,bt.rK)("console",n),N.LD[t]?.apply(i.n.console,e)}}))}))}var xt=n(2868),wt=n(67918);const kt=(0,R._I)(((t={})=>{const e=t.levels||N.RU,n=t.handled??!0;return{name:"CaptureConsole",setup(t){"console"in i.n&&St((({args:r,level:o})=>{(0,s.s3)()===t&&e.includes(o)&&function(t,e,n){const r={level:(0,xt.V)(e),extra:{arguments:t}};(0,s.$e)((o=>{if(o.addEventProcessor((t=>(t.logger="console",(0,u.EG)(t,{handled:n,type:"console"}),t))),"assert"===e){if(!t[0]){const e=`Assertion failed: ${(0,wt.nK)(t.slice(1)," ")||"console.assert"}`;o.setExtra("arguments",t.slice(1)),(0,l.uT)(e,r)}return}const s=t.find((t=>t instanceof Error));if(s)return void(0,l.Tb)(s,r);const a=(0,wt.nK)(t," ");(0,l.uT)(a,r)}))}(r,o,n)}))}}}));var Tt=n(90211),It=n(61137);const $t={[q.S3]:"auto.console.logging"},Rt=(0,R._I)(((t={})=>{const e=t.levels||N.RU;return{name:"ConsoleLogs",setup(t){const{_experiments:n,normalizeDepth:r=3,normalizeMaxBreadth:o=1e3}=t.getOptions();n?.enableLogs?St((({args:n,level:a})=>{if((0,s.s3)()!==t||!e.includes(a))return;if("assert"===a){if(!n[0]){const t=n.slice(1);st({level:"error",message:t.length>0?`Assertion failed: ${Pt(t,r,o)}`:"Assertion failed",attributes:$t})}return}const i="log"===a;st({level:i?"info":a,message:Pt(n,r,o),severityNumber:i?10:void 0,attributes:$t})})):I.X&&N.fF.warn("`_experiments.enableLogs` is not enabled, ConsoleLogs integration disabled")}}}));function Pt(t,e,n){return"util"in i.n&&"function"==typeof i.n.util.format?i.n.util.format(...t):function(t,e,n){return t.map((t=>(0,F.pt)(t)?String(t):JSON.stringify((0,It.Fv)(t,e,n)))).join(" ")}(t,e,n)}var Ot=n(29347);const Ct=Symbol.for("SentryBufferFullError");var At=n(78574);function Dt(t,e,n=function(t){const e=[];function n(t){return e.splice(e.indexOf(t),1)[0]||Promise.resolve(void 0)}return{$:e,add:function(r){if(!(void 0===t||e.lengthn(o))).then(null,(()=>n(o).then(null,(()=>{})))),o},drain:function(t){return new H.cW(((n,r)=>{let o=e.length;if(!o)return n(!0);const s=setTimeout((()=>{t&&t>0&&n(!1)}),t);e.forEach((t=>{(0,H.WD)(t).then((()=>{--o||(clearTimeout(s),n(!0))}),r)}))}))}}}(t.bufferSize||64)){let r={};return{send:function(o){const s=[];if((0,C.gv)(o,((e,n)=>{const o=(0,C.mL)(n);(0,At.Q)(r,o)?t.recordDroppedEvent("ratelimit_backoff",o):s.push(e)})),0===s.length)return(0,H.WD)({});const a=(0,C.Jd)(o[0],s),i=e=>{(0,C.gv)(a,((n,r)=>{t.recordDroppedEvent(e,(0,C.mL)(r))}))};return n.add((()=>e({body:(0,C.V$)(a)}).then((t=>(void 0!==t.statusCode&&(t.statusCode<200||t.statusCode>=300)&&I.X&&N.fF.warn(`Sentry responded with status code ${t.statusCode} to sent event.`),r=(0,At.WG)(r,t),t)),(t=>{throw i("network_error"),I.X&&N.fF.error("Encountered error running transport request:",t),t})))).then((t=>t),(t=>{if(t===Ct)return I.X&&N.fF.error("Skipped sending event because buffer is full."),i("queue_overflow"),(0,H.WD)({});throw t}))},flush:t=>n.drain(t)}}var Ft=n(74237);const Nt=(0,R._I)((()=>{let t;return{name:"Dedupe",processEvent(e){if(e.type)return e;try{if(function(t,e){return!!e&&(!!function(t,e){const n=t.message,r=e.message;return!(!n&&!r)&&(!(n&&!r||!n&&r)&&(n===r&&(!!Lt(t,e)&&!!jt(t,e))))}(t,e)||!!function(t,e){const n=Mt(e),r=Mt(t);return!(!n||!r)&&(n.type===r.type&&n.value===r.value&&(!!Lt(t,e)&&!!jt(t,e)))}(t,e))}(e,t))return I.X&&N.fF.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(t){}return t=e}}}));function jt(t,e){let n=(0,Ft.Fr)(t),r=(0,Ft.Fr)(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{let e;return{name:"EventFilters",setup(n){const r=n.getOptions();e=Xt(t,r)},processEvent(n,r,o){if(!e){const n=o.getOptions();e=Xt(t,n)}return function(t,e){if(t.type){if("transaction"===t.type&&function(t,e){if(!e?.length)return!1;const n=t.transaction;return!!n&&(0,wt.U0)(n,e)}(t,e.ignoreTransactions))return I.X&&N.fF.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${(0,u.jH)(t)}`),!0}else{if(function(t,e){return!!e?.length&&D(t).some((t=>(0,wt.U0)(t,e)))}(t,e.ignoreErrors))return I.X&&N.fF.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${(0,u.jH)(t)}`),!0;if(function(t){return!!t.exception?.values?.length&&(!t.message&&!t.exception.values.some((t=>t.stacktrace||t.type&&"Error"!==t.type||t.value)))}(t))return I.X&&N.fF.warn(`Event dropped due to not having an error message, error type or stacktrace.\nEvent: ${(0,u.jH)(t)}`),!0;if(function(t,e){if(!e?.length)return!1;const n=Jt(t);return!!n&&(0,wt.U0)(n,e)}(t,e.denyUrls))return I.X&&N.fF.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${(0,u.jH)(t)}.\nUrl: ${Jt(t)}`),!0;if(!function(t,e){if(!e?.length)return!0;const n=Jt(t);return!n||(0,wt.U0)(n,e)}(t,e.allowUrls))return I.X&&N.fF.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${(0,u.jH)(t)}.\nUrl: ${Jt(t)}`),!0}return!1}(n,e)?null:n}}})),qt=(0,R._I)(((t={})=>({...Ht(t),name:"InboundFilters"})));function Xt(t={},e={}){return{allowUrls:[...t.allowUrls||[],...e.allowUrls||[]],denyUrls:[...t.denyUrls||[],...e.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...e.ignoreErrors||[],...t.disableErrorDefaults?[]:Ut],ignoreTransactions:[...t.ignoreTransactions||[],...e.ignoreTransactions||[]]}}function Jt(t){try{const e=[...t.exception?.values??[]].reverse().find((t=>void 0===t.mechanism?.parent_id&&t.stacktrace?.frames?.length))?.stacktrace?.frames;return e?function(t=[]){for(let e=t.length-1;e>=0;e--){const n=t[e];if(n&&""!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(e):null}catch(e){return I.X&&N.fF.error(`Cannot extract url for event ${(0,u.jH)(t)}`),null}}const Wt=(0,R._I)(((t={})=>{const{depth:e=3,captureErrorCause:n=!0}=t;return{name:"ExtraErrorData",processEvent(t,r,o){const{maxValueLength:s=250}=o.getOptions();return function(t,e={},n,r,o){if(!e.originalException||!(0,F.VZ)(e.originalException))return t;const s=e.originalException.name||e.originalException.constructor.name,a=function(t,e,n){try{const r=["name","message","stack","line","column","fileName","lineNumber","columnNumber","toJSON"],o={};for(const e of Object.keys(t)){if(-1!==r.indexOf(e))continue;const s=t[e];o[e]=(0,F.VZ)(s)||"string"==typeof s?(0,wt.$G)(`${s}`,n):s}if(e&&void 0!==t.cause&&(o.cause=(0,F.VZ)(t.cause)?t.cause.toString():t.cause),"function"==typeof t.toJSON){const e=t.toJSON();for(const t of Object.keys(e)){const n=e[t];o[t]=(0,F.VZ)(n)?n.toString():n}}return o}catch(t){I.X&&N.fF.error("Unable to extract extra data from the Error object:",t)}return null}(e.originalException,r,o);if(a){const e={...t.contexts},r=(0,It.Fv)(a,n);return(0,F.PO)(r)&&((0,c.xp)(r,"__sentry_skip_normalization__",!0),e[s]=r),{...t,contexts:e}}return t}(t,r,e,n,s)}}})),Bt="flag.evaluation.";function Gt(t){const e=(0,s.nZ)().getScopeData().contexts.flags,n=e?e.values:[];return n.length?(void 0===t.contexts&&(t.contexts={}),t.contexts.flags={values:[...n]},t):t}function Zt(t,e,n=100){const r=(0,s.nZ)().getScopeData().contexts;r.flags||(r.flags={values:[]}),function(t,e,n,r){if("boolean"!=typeof n)return;if(t.length>r)return void(I.X&&N.fF.error(`[Feature Flags] insertToFlagBuffer called on a buffer larger than maxSize=${r}`));const o=t.findIndex((t=>t.flag===e));-1!==o&&t.splice(o,1),t.length===r&&t.shift(),t.push({flag:e,result:n})}(r.flags.values,t,e,n)}function Vt(t,e,n=10){if("boolean"!=typeof e)return;const r=(0,U.HN)();if(!r)return;const o=(0,U.XU)(r).data;(`${Bt}${t}`in o||Object.keys(o).filter((t=>t.startsWith(Bt))).length({name:"FeatureFlags",processEvent:(t,e,n)=>Gt(t),addFeatureFlag(t,e){Zt(t,e),Vt(t,e)}})));let zt;const Yt=new WeakMap,Qt=(0,R._I)((()=>({name:"FunctionToString",setupOnce(){zt=Function.prototype.toString;try{Function.prototype.toString=function(...t){const e=(0,c.HK)(this),n=Yt.has((0,s.s3)())&&void 0!==e?e:this;return zt.apply(n,t)}}catch{}},setup(t){Yt.set(t,!0)}})));var te=n(15698),ee=n(82821),ne=n(3560),re=n(3275);function oe(t={}){const e=t.client||(0,s.s3)();if(!(0,l._k)()||!e)return{};const n=(0,E.cu)(),r=(0,ee.G)(n);if(r.getTraceData)return r.getTraceData(t);const o=t.scope||(0,s.nZ)(),a=t.span||(0,U.HN)(),i=a?(0,U.Hb)(a):function(t){const{traceId:e,sampled:n,propagationSpanId:r}=t.getPropagationContext();return(0,ne.$p)(e,r,n)}(o),c=a?(0,O.jC)(a):(0,O.CG)(e,o),u=(0,re.IQ)(c);return ne.Ke.test(i)?{"sentry-trace":i,baggage:u}:(N.fF.warn("Invalid sentry-trace data. Cannot generate trace data"),{})}const se=["reauthenticate","signInAnonymously","signInWithOAuth","signInWithIdToken","signInWithOtp","signInWithPassword","signInWithSSO","signOut","signUp","verifyOtp"],ae=["createUser","deleteUser","listUsers","getUserById","updateUserById","inviteUserByEmail"],ie={eq:"eq",neq:"neq",gt:"gt",gte:"gte",lt:"lt",lte:"lte",like:"like","like(all)":"likeAllOf","like(any)":"likeAnyOf",ilike:"ilike","ilike(all)":"ilikeAllOf","ilike(any)":"ilikeAnyOf",is:"is",in:"in",cs:"contains",cd:"containedBy",sr:"rangeGt",nxl:"rangeGte",sl:"rangeLt",nxr:"rangeLte",adj:"rangeAdjacent",ov:"overlaps",fts:"",plfts:"plain",phfts:"phrase",wfts:"websearch",not:"not"},ce=["select","insert","upsert","update","delete"];function ue(t){try{t.__SENTRY_INSTRUMENTED__=!0}catch{}}function le(t){try{return t.__SENTRY_INSTRUMENTED__}catch{return!1}}function pe(t,e){if(""===e||"*"===e)return"select(*)";if("select"===t)return`select(${e})`;if("or"===t||t.endsWith(".or"))return`${t}${e}`;const[n,...r]=e.split(".");let o;return o=n?.startsWith("fts")?"textSearch":n?.startsWith("plfts")?"textSearch[plain]":n?.startsWith("phfts")?"textSearch[phrase]":n?.startsWith("wfts")?"textSearch[websearch]":n&&ie[n]||"filter",`${o}(${t}, ${r.join(".")})`}function de(t,e=!1){return new Proxy(t,{apply:(n,r,o)=>(0,Ot.GK)({name:`auth ${e?"(admin) ":""}${t.name}`,attributes:{[q.S3]:"auto.db.supabase",[q.$J]:"db","db.system":"postgresql","db.operation":`auth.${e?"admin.":""}${t.name}`}},(t=>Reflect.apply(n,r,o).then((e=>(e&&"object"==typeof e&&"error"in e&&e.error?(t.setStatus({code:te.jt}),(0,l.Tb)(e.error,{mechanism:{handled:!1}})):t.setStatus({code:te.OP}),t.end(),e))).catch((e=>{throw t.setStatus({code:te.jt}),t.end(),(0,l.Tb)(e,{mechanism:{handled:!1}}),e})).then(...o)))})}function fe(t){le(t.prototype.then)||(t.prototype.then=new Proxy(t.prototype.then,{apply(t,e,n){const r=ce,o=e,s=function(t,e={}){switch(t){case"GET":return"select";case"POST":return e.Prefer?.includes("resolution=")?"upsert":"insert";case"PATCH":return"update";case"DELETE":return"delete";default:return""}}(o.method,o.headers);if(!r.includes(s))return Reflect.apply(t,e,n);if(!o?.url?.pathname||"string"!=typeof o.url.pathname)return Reflect.apply(t,e,n);const a=o.url.pathname.split("/"),i=a.length>0?a[a.length-1]:"",c=[];for(const[t,e]of o.url.searchParams.entries())c.push(pe(t,e));const u=Object.create(null);if((0,F.PO)(o.body))for(const[t,e]of Object.entries(o.body))u[t]=e;const p=`${"select"===s?"":`${s}${u?"(...) ":""}`}${c.join(" ")} from(${i})`,d={"db.table":i,"db.schema":o.schema,"db.url":o.url.origin,"db.sdk":o.headers["X-Client-Info"],"db.system":"postgresql","db.operation":s,[q.S3]:"auto.db.supabase",[q.$J]:"db"};return c.length&&(d["db.query"]=c),Object.keys(u).length&&(d["db.body"]=u),(0,Ot.GK)({name:p,attributes:d},(r=>Reflect.apply(t,e,[]).then((t=>{if(r&&(t&&"object"==typeof t&&"status"in t&&(0,te.Q0)(r,t.status||500),r.end()),t.error){const e=new Error(t.error.message);t.error.code&&(e.code=t.error.code),t.error.details&&(e.details=t.error.details);const n={};c.length&&(n.query=c),Object.keys(u).length&&(n.body=u),(0,l.Tb)(e,{contexts:{supabase:n}})}const e={type:"supabase",category:`db.${s}`,message:p},n={};return c.length&&(n.query=c),Object.keys(u).length&&(n.body=u),Object.keys(n).length&&(e.data=n),(0,vt.n)(e),t}),(t=>{throw r&&((0,te.Q0)(r,500),r.end()),t})).then(...n)))}}),ue(t.prototype.then))}const he=t=>{var e;t?(le((e=t.constructor===Function?t:t.constructor).prototype.from)||(e.prototype.from=new Proxy(e.prototype.from,{apply(t,e,n){const r=Reflect.apply(t,e,n);return function(t){for(const e of ce)le(t.prototype[e])||(t.prototype[e]=new Proxy(t.prototype[e],{apply(t,n,r){const o=Reflect.apply(t,n,r),s=o.constructor;return I.X&&N.fF.log(`Instrumenting ${e} operation's PostgRESTFilterBuilder`),fe(s),o}}),ue(t.prototype[e]))}(r.constructor),r}}),ue(e.prototype.from)),function(t){const e=t.auth;if(e&&!le(t.auth)){for(const n of se){const r=e[n];r&&"function"==typeof t.auth[n]&&(t.auth[n]=de(r))}for(const n of ae){const r=e.admin[n];r&&"function"==typeof t.auth.admin[n]&&(t.auth.admin[n]=de(r,!0))}ue(t.auth)}}(t)):I.X&&N.fF.warn("Supabase integration was not installed because no Supabase client was provided.")},me=(0,R._I)((t=>{return e=t.supabaseClient,{setupOnce(){he(e)},name:"Supabase"};var e}));function ge(t,e){let n;return(0,C.gv)(t,((t,r)=>(e.includes(r)&&(n=Array.isArray(t)?t[1]:void 0),!!n))),n}function _e(t,e){return n=>{const r=t(n),o=new Map;function s(e,r){const s=r?`${e}:${r}`:e;let a=o.get(s);if(!a){const i=(0,x.U4)(e);if(!i)return;const c=k(i,n.tunnel);a=r?function(t,e){return n=>{const r=t(n);return{...r,send:async t=>{const n=ge(t,["event","transaction","profile","replay_event"]);return n&&(n.release=e),r.send(t)}}}}(t,r)({...n,url:c}):t({...n,url:c}),o.set(s,a)}return[e,a]}return{send:async function(t){const n=e({envelope:t,getEvent:function(e){return ge(t,e?.length?e:["event"])}}).map((t=>"string"==typeof t?s(t,void 0):s(t.dsn,t.release))).filter((t=>!!t)),o=n.length?n:[["",r]],a=await Promise.all(o.map((([e,n])=>n.send(function(t,e){return(0,C.Jd)(e?{...t[0],dsn:e}:t[0],t[1])}(t,e)))));return a[0]},flush:async function(t){const e=[...o.values(),r];return(await Promise.all(e.map((e=>e.flush(t))))).every((t=>t))}}}}const ye=new Map,ve=new Set;function be(t,e){return function(t){if(i.n._sentryModuleMetadata)for(const e of Object.keys(i.n._sentryModuleMetadata)){const n=i.n._sentryModuleMetadata[e];if(ve.has(e))continue;ve.add(e);const r=t(e);for(const t of r.reverse())if(t.filename){ye.set(t.filename,n);break}}}(t),ye.get(e)}function Se(t,e){try{e.exception.values.forEach((e=>{if(e.stacktrace)for(const n of e.stacktrace.frames||[]){if(!n.filename||n.module_metadata)continue;const e=be(t,n.filename);e&&(n.module_metadata=e)}}))}catch(t){}}function Ee(t){try{t.exception.values.forEach((t=>{if(t.stacktrace)for(const e of t.stacktrace.frames||[])delete e.module_metadata}))}catch(t){}}const xe=(0,R._I)((()=>({name:"ModuleMetadata",setup(t){t.on("beforeEnvelope",(t=>{(0,C.gv)(t,((t,e)=>{if("event"===e){const e=Array.isArray(t)?t[1]:void 0;e&&(Ee(e),t[1]=e)}}))})),t.on("applyFrameMetadata",(e=>{e.type||Se(t.getOptions().stackParser,e)}))}})));let we=null;function ke(t){const e="error";(0,bt.Hj)(e,t),(0,bt.D2)(e,Te)}function Te(){we=i.n.onerror,i.n.onerror=function(t,e,n,r,o){const s={column:r,error:o,line:n,msg:t,url:e};return(0,bt.rK)("error",s),!!we&&we.apply(this,arguments)},i.n.onerror.__SENTRY_INSTRUMENTED__=!0}let Ie=null;function $e(t){const e="unhandledrejection";(0,bt.Hj)(e,t),(0,bt.D2)(e,Re)}function Re(){Ie=i.n.onunhandledrejection,i.n.onunhandledrejection=function(t){const e=t;return(0,bt.rK)("unhandledrejection",e),!Ie||Ie.apply(this,arguments)},i.n.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}let Pe=!1;function Oe(){function t(){const t=(0,U.HN)(),e=t&&(0,U.Gx)(t);if(e){const t="internal_error";I.X&&N.fF.log(`[Tracing] Root span: ${t} -> Global error occurred`),e.setStatus({code:te.jt,message:t})}}Pe||(t.tag="sentry_tracingErrorCallback",Pe=!0,ke(t),$e(t))}const Ce=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function Ae(...t){let e="",n=!1;for(let r=t.length-1;r>=-1&&!n;r--){const o=r>=0?t[r]:"/";o&&(e=`${o}/${e}`,n="/"===o.charAt(0))}return e=function(t,e){let n=0;for(let e=t.length-1;e>=0;e--){const r=t[e];"."===r?t.splice(e,1):".."===r?(t.splice(e,1),n++):n&&(t.splice(e,1),n--)}if(e)for(;n--;n)t.unshift("..");return t}(e.split("/").filter((t=>!!t)),!n).join("/"),(n?"/":"")+e||"."}function De(t){let e=0;for(;e=0&&""===t[n];n--);return e>n?[]:t.slice(e,n-e+1)}const Fe=(0,R._I)(((t={})=>{const e=t.root,n=t.prefix||"app:///",r="window"in i.n&&!!i.n.window,o=t.iteratee||function({isBrowser:t,root:e,prefix:n}){return r=>{if(!r.filename)return r;const o=/^[a-zA-Z]:\\/.test(r.filename)||r.filename.includes("\\")&&!r.filename.includes("/"),s=/^\//.test(r.filename);if(t){if(e){const t=r.filename;0===t.indexOf(e)&&(r.filename=t.replace(e,n))}}else if(o||s){const t=o?r.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):r.filename,s=e?function(t,e){t=Ae(t).slice(1),e=Ae(e).slice(1);const n=De(t.split("/")),r=De(e.split("/")),o=Math.min(n.length,r.length);let s=o;for(let t=0;t1024?`${t.slice(-1024)}`:t,n=Ce.exec(e);return n?n.slice(1):[]}(t)[2]||"";return n}(t);r.filename=`${n}${s}`}return r}}({isBrowser:r,root:e,prefix:n});function s(t){return{...t,frames:t?.frames&&t.frames.map((t=>o(t)))}}return{name:"RewriteFrames",processEvent(t){let e=t;return t.exception&&Array.isArray(t.exception.values)&&(e=function(t){try{return{...t,exception:{...t.exception,values:t.exception.values.map((t=>({...t,...t.stacktrace&&{stacktrace:s(t.stacktrace)}})))}}}catch(e){return t}}(e)),e}}}));function Ne(t){(0,s.nZ)().setClient(t)}var je=n(20988);const Le=(0,R._I)((t=>({name:"ThirdPartyErrorsFilter",setup(t){t.on("beforeEnvelope",(t=>{(0,C.gv)(t,((t,e)=>{if("event"===e){const e=Array.isArray(t)?t[1]:void 0;e&&(Ee(e),t[1]=e)}}))})),t.on("applyFrameMetadata",(e=>{e.type||Se(t.getOptions().stackParser,e)}))},processEvent(e){const n=function(t){const e=(0,Ft.Fr)(t);if(e)return e.filter((t=>!!t.filename)).map((t=>t.module_metadata?Object.keys(t.module_metadata).filter((t=>t.startsWith(Me))).map((t=>t.slice(Me.length))):[]))}(e);if(n){const r=n["drop-error-if-contains-third-party-frames"===t.behaviour||"apply-tag-if-contains-third-party-frames"===t.behaviour?"some":"every"]((e=>!e.some((e=>t.filterKeys.includes(e)))));if(r){if("drop-error-if-contains-third-party-frames"===t.behaviour||"drop-error-if-exclusively-contains-third-party-frames"===t.behaviour)return null;e.tags={...e.tags,third_party_code:!0}}}return e}}))),Me="_sentryBundlerPluginAppKey:";function Ue(t){return{...t,path:"path"in t&&Array.isArray(t.path)?t.path.join("."):void 0,keys:"keys"in t?JSON.stringify(t.keys):void 0,unionErrors:"unionErrors"in t?JSON.stringify(t.unionErrors):void 0}}function He(t){const e=new Set;for(const n of t.issues){const t=n.path.map((t=>"number"==typeof t?"":t)).join(".");t.length>0&&e.add(t)}const n=Array.from(e);if(0===n.length){let e="variable";if(t.issues.length>0){const n=t.issues[0];void 0!==n&&"expected"in n&&"string"==typeof n.expected&&(e=n.expected)}return`Failed to validate ${e}`}return`Failed to validate keys: ${(0,wt.$G)(n.join(", "),100)}`}const qe=(0,R._I)(((t={})=>{const e=t.limit??10;return{name:"ZodErrors",processEvent:(n,r)=>function(t,e=!1,n,r){if(!(n.exception?.values&&r.originalException&&(o=r.originalException,(0,F.VZ)(o)&&"ZodError"===o.name&&Array.isArray(o.issues))&&0!==r.originalException.issues.length))return n;var o;try{const o=(e?r.originalException.issues:r.originalException.issues.slice(0,t)).map(Ue);return e&&(Array.isArray(r.attachments)||(r.attachments=[]),r.attachments.push({filename:"zod_issues.json",data:JSON.stringify({issues:o})})),{...n,exception:{...n.exception,values:[{...n.exception.values[0],value:He(r.originalException)},...n.exception.values.slice(1)]},extra:{...n.extra,"zoderror.issues":o.slice(0,t)}}}catch(t){return{...n,extra:{...n.extra,"zoderrors sentry integration parse error":{message:"an exception was thrown while processing ZodError within applyZodErrorsToEvent()",error:t instanceof Error?`${t.name}: ${t.message}\n${t.stack}`:"unknown"}}}}}(e,t.saveZodIssuesAsAttachment,n,r)}}));var Xe=n(73979);function Je(t,e,n=[e],r="npm"){const o=t._metadata||{};o.sdk||(o.sdk={name:`sentry.javascript.${e}`,packages:n.map((t=>({name:`${r}:@sentry/${t}`,version:a.J}))),version:a.J}),t._metadata=o}function We(t){void 0===t.user?.ip_address&&(t.user={...t.user,ip_address:"{{auto}}"})}function Be(t){"aggregates"in t?void 0===t.attrs?.ip_address&&(t.attrs={...t.attrs,ip_address:"{{auto}}"}):void 0===t.ipAddress&&(t.ipAddress="{{auto}}")}function Ge(t,e){const n=Ve(t,e),r={type:Ye(e),value:Qe(e)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function Ze(t,e){return{exception:{values:[Ge(t,e)]}}}function Ve(t,e){const n=e.stacktrace||e.stack||"",r=function(t){return t&&Ke.test(t.message)?1:0}(e),o=function(t){return"number"==typeof t.framesToPop?t.framesToPop:0}(e);try{return t(n,r,o)}catch(t){}return[]}const Ke=/Minified React error #\d+;/i;function ze(t){return"undefined"!=typeof WebAssembly&&void 0!==WebAssembly.Exception&&t instanceof WebAssembly.Exception}function Ye(t){const e=t?.name;return!e&&ze(t)?t.message&&Array.isArray(t.message)&&2==t.message.length?t.message[0]:"WebAssembly.Exception":e}function Qe(t){const e=t?.message;return ze(t)?Array.isArray(t.message)&&2==t.message.length?t.message[1]:"wasm exception":e?e.error&&"string"==typeof e.error.message?e.error.message:e:"No error message"}function tn(t,e,n,r){const o=nn(t,e,n?.syntheticException||void 0,r);return(0,u.EG)(o),o.level="error",n?.event_id&&(o.event_id=n.event_id),(0,H.WD)(o)}function en(t,e,n="info",r,o){const s=rn(t,e,r?.syntheticException||void 0,o);return s.level=n,r?.event_id&&(s.event_id=r.event_id),(0,H.WD)(s)}function nn(t,e,n,r,o){let a;if((0,F.VW)(e)&&e.error)return Ze(t,e.error);if((0,F.TX)(e)||(0,F.fm)(e)){const o=e;if("stack"in e)a=Ze(t,e);else{const e=o.name||((0,F.TX)(o)?"DOMError":"DOMException"),s=o.message?`${e}: ${o.message}`:e;a=rn(t,s,n,r),(0,u.Db)(a,s)}return"code"in o&&(a.tags={...a.tags,"DOMException.code":`${o.code}`}),a}return(0,F.VZ)(e)?Ze(t,e):(0,F.PO)(e)||(0,F.cO)(e)?(a=function(t,e,n,r){const o=(0,s.s3)()?.getOptions().normalizeDepth,a=function(t){for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e)){const n=t[e];if(n instanceof Error)return n}}(e),i={__serialized__:(0,It.Qy)(e,o)};if(a)return{exception:{values:[Ge(t,a)]},extra:i};const c={exception:{values:[{type:(0,F.cO)(e)?e.constructor.name:r?"UnhandledRejection":"Error",value:on(e,{isUnhandledRejection:r})}]},extra:i};if(n){const e=Ve(t,n);e.length&&(c.exception.values[0].stacktrace={frames:e})}return c}(t,e,n,o),(0,u.EG)(a,{synthetic:!0}),a):(a=rn(t,e,n,r),(0,u.Db)(a,`${e}`,void 0),(0,u.EG)(a,{synthetic:!0}),a)}function rn(t,e,n,r){const o={};if(r&&n){const r=Ve(t,n);r.length&&(o.exception={values:[{value:e,stacktrace:{frames:r}}]}),(0,u.EG)(o,{synthetic:!0})}if((0,F.Le)(e)){const{__sentry_template_string__:t,__sentry_template_values__:n}=e;return o.logentry={message:t,params:n},o}return o.message=e,o}function on(t,{isUnhandledRejection:e}){const n=(0,c.zf)(t),r=e?"promise rejection":"exception";return(0,F.VW)(t)?`Event \`ErrorEvent\` captured as ${r} with message \`${t.message}\``:(0,F.cO)(t)?`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}`:`Object captured as ${r} with keys: ${n}`}class sn extends z{constructor(t){const e=(n=t,{release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:d.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...n});var n;Je(e,"browser",["browser"],d.SENTRY_SDK_SOURCE||(0,Xe.S)()),super(e);const{sendDefaultPii:r,sendClientReports:o,_experiments:s}=this._options,a=s?.enableLogs;d.document&&(o||a)&&d.document.addEventListener("visibilitychange",(()=>{"hidden"===d.document.visibilityState&&(o&&this._flushOutcomes(),a&&at(this))})),a&&(this.on("flush",(()=>{at(this)})),this.on("afterCaptureLog",(()=>{this._logFlushIdleTimeout&&clearTimeout(this._logFlushIdleTimeout),this._logFlushIdleTimeout=setTimeout((()=>{at(this)}),5e3)}))),r&&(this.on("postprocessEvent",We),this.on("beforeSendSession",Be))}eventFromException(t,e){return tn(this._options.stackParser,t,e,this._options.attachStacktrace)}eventFromMessage(t,e="info",n){return en(this._options.stackParser,t,e,n,this._options.attachStacktrace)}_prepareEvent(t,e,n,r){return t.platform=t.platform||"javascript",super._prepareEvent(t,e,n,r)}}var an=n(84624);function cn(t,e=(0,an.L2)("fetch")){let n=0,r=0;return Dt(t,(function(o){const s=o.body.length;n+=s,r++;const a={body:o.body,method:"POST",referrerPolicy:"strict-origin",headers:t.headers,keepalive:n<=6e4&&r<15,...t.fetchOptions};if(!e)return(0,an._6)("fetch"),(0,H.$2)("No fetch implementation available");try{return e(t.url,a).then((t=>(n-=s,r--,{statusCode:t.status,headers:{"x-sentry-rate-limits":t.headers.get("X-Sentry-Rate-Limits"),"retry-after":t.headers.get("Retry-After")}})))}catch(t){return(0,an._6)("fetch"),n-=s,r--,(0,H.$2)(t)}}))}function un(t,e,n,r){const o={filename:t,function:""===e?Ft.Fi:e,in_app:!0};return void 0!==n&&(o.lineno=n),void 0!==r&&(o.colno=r),o}const ln=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,pn=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,dn=/\((\S*)(?::(\d+))(?::(\d+))\)/,fn=[30,t=>{const e=ln.exec(t);if(e){const[,t,n,r]=e;return un(t,Ft.Fi,+n,+r)}const n=pn.exec(t);if(n){if(n[2]&&0===n[2].indexOf("eval")){const t=dn.exec(n[2]);t&&(n[2]=t[1],n[3]=t[2],n[4]=t[3])}const[t,e]=kn(n[1]||Ft.Fi,n[2]);return un(e,t,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}}],hn=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,mn=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,gn=[50,t=>{const e=hn.exec(t);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){const t=mn.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]||Ft.Fi;return[n,t]=kn(n,t),un(t,n,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}}],_n=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,yn=[40,t=>{const e=_n.exec(t);return e?un(e[2],e[1]||Ft.Fi,+e[3],e[4]?+e[4]:void 0):void 0}],vn=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,bn=[10,t=>{const e=vn.exec(t);return e?un(e[2],e[3]||Ft.Fi,+e[1]):void 0}],Sn=/ line (\d+), column (\d+)\s*(?:in (?:]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,En=[20,t=>{const e=Sn.exec(t);return e?un(e[5],e[3]||e[4]||Ft.Fi,+e[1],+e[2]):void 0}],xn=[fn,gn],wn=(0,Ft.pE)(...xn),kn=(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]:Ft.Fi,n?`safari-extension:${e}`:`safari-web-extension:${e}`]:[t,e]};function Tn(t,{metadata:e,tunnel:n,dsn:r}){const o={event_id:t.event_id,sent_at:(new Date).toISOString(),...e?.sdk&&{sdk:{name:e.sdk.name,version:e.sdk.version}},...!!n&&!!r&&{dsn:(0,x.RA)(r)}},s=function(t){return[{type:"user_report"},t]}(t);return(0,C.Jd)(o,[s])}var In=n(79917);function $n(t,e){const n="fetch";(0,bt.Hj)(n,t),(0,bt.D2)(n,(()=>Rn(void 0,e)))}function Rn(t,e=!1){e&&!(0,In.t$)()||(0,c.hl)(i.n,"fetch",(function(e){return function(...n){const r=new Error,{method:o,url:s}=function(t){if(0===t.length)return{method:"GET",url:""};if(2===t.length){const[e,n]=t;return{url:Cn(e),method:On(n,"method")?String(n.method).toUpperCase():"GET"}}const e=t[0];return{url:Cn(e),method:On(e,"method")?String(e.method).toUpperCase():"GET"}}(n),a={args:n,fetchData:{method:o,url:s},startTimestamp:1e3*(0,A.ph)(),virtualError:r,headers:An(n)};return t||(0,bt.rK)("fetch",{...a}),e.apply(i.n,n).then((async e=>(t?t(e):(0,bt.rK)("fetch",{...a,endTimestamp:1e3*(0,A.ph)(),response:e}),e)),(t=>{if((0,bt.rK)("fetch",{...a,endTimestamp:1e3*(0,A.ph)(),error:t}),(0,F.VZ)(t)&&void 0===t.stack&&(t.stack=r.stack,(0,c.xp)(t,"framesToPop",1)),t instanceof TypeError&&("Failed to fetch"===t.message||"Load failed"===t.message||"NetworkError when attempting to fetch resource."===t.message))try{const e=new URL(a.fetchData.url);t.message=`${t.message} (${e.host})`}catch{}throw t}))}}))}function Pn(t){let e;try{e=t.clone()}catch{return}!async function(e,n){if(e?.body){const n=e.body,r=n.getReader(),o=setTimeout((()=>{n.cancel().then(null,(()=>{}))}),9e4);let s=!0;for(;s;){let e;try{e=setTimeout((()=>{n.cancel().then(null,(()=>{}))}),5e3);const{done:o}=await r.read();clearTimeout(e),o&&((0,bt.rK)("fetch-body-resolved",{endTimestamp:1e3*(0,A.ph)(),response:t}),s=!1)}catch(t){s=!1}finally{clearTimeout(e)}}clearTimeout(o),r.releaseLock(),n.cancel().then(null,(()=>{}))}}(e)}function On(t,e){return!!t&&"object"==typeof t&&!!t[e]}function Cn(t){return"string"==typeof t?t:t?On(t,"url")?t.url:t.toString?t.toString():"":""}function An(t){const[e,n]=t;try{if("object"==typeof n&&null!==n&&"headers"in n&&n.headers)return new Headers(n.headers);if((0,F.gJ)(e))return new Headers(e.headers)}catch{}}function Dn(t){return void 0===t?void 0:t>=400&&t<500?"warning":t>=500?"error":void 0}var Fn=n(87512),Nn=n(65532),jn=n(18063),Ln=n(30370);const Mn="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,Un=(0,R._I)(((t={})=>{const e={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...t};return{name:"Breadcrumbs",setup(t){e.console&&St(function(t){return function(e){if((0,s.s3)()!==t)return;const n={category:"console",data:{arguments:e.args,logger:"console"},level:(0,xt.V)(e.level),message:(0,wt.nK)(e.args," ")};if("assert"===e.level){if(!1!==e.args[0])return;n.message=`Assertion failed: ${(0,wt.nK)(e.args.slice(1)," ")||"console.assert"}`,n.data.arguments=e.args.slice(1)}(0,vt.n)(n,{input:e.args,level:e.level})}}(t)),e.dom&&(0,Nn.O)(function(t,e){return function(n){if((0,s.s3)()!==t)return;let r,o,a="object"==typeof e?e.serializeAttribute:void 0,i="object"==typeof e&&"number"==typeof e.maxStringLength?e.maxStringLength:void 0;i&&i>1024&&(Mn&&N.kg.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${i} was configured. Sentry will use 1024 instead.`),i=1024),"string"==typeof a&&(a=[a]);try{const t=n.event,e=function(t){return!!t&&!!t.target}(t)?t.target:t;r=(0,p.Rt)(e,{keyAttrs:a,maxStringLength:i}),o=(0,p.iY)(e)}catch(t){r=""}if(0===r.length)return;const c={category:`ui.${n.name}`,message:r};o&&(c.data={"ui.component_name":o}),(0,vt.n)(c,{event:n.event,name:n.name,global:n.global})}}(t,e.dom)),e.xhr&&(0,jn.UK)(function(t){return function(e){if((0,s.s3)()!==t)return;const{startTimestamp:n,endTimestamp:r}=e,o=e.xhr[jn.xU];if(!n||!r||!o)return;const{method:a,url:i,status_code:c,body:u}=o,l={method:a,url:i,status_code:c},p={xhr:e.xhr,input:u,startTimestamp:n,endTimestamp:r},d={category:"xhr",data:l,type:"http",level:Dn(c)};t.emit("beforeOutgoingRequestBreadcrumb",d,p),(0,vt.n)(d,p)}}(t)),e.fetch&&$n(function(t){return function(e){if((0,s.s3)()!==t)return;const{startTimestamp:n,endTimestamp:r}=e;if(r&&(!e.fetchData.url.match(/sentry_key/)||"POST"!==e.fetchData.method))if(e.fetchData.method,e.fetchData.url,e.error){const o=e.fetchData,s={data:e.error,input:e.args,startTimestamp:n,endTimestamp:r},a={category:"fetch",data:o,level:"error",type:"http"};t.emit("beforeOutgoingRequestBreadcrumb",a,s),(0,vt.n)(a,s)}else{const o=e.response,s={...e.fetchData,status_code:o?.status};e.fetchData.request_body_size,e.fetchData.response_body_size,o?.status;const a={input:e.args,response:o,startTimestamp:n,endTimestamp:r},i={category:"fetch",data:s,type:"http",level:Dn(s.status_code)};t.emit("beforeOutgoingRequestBreadcrumb",i,a),(0,vt.n)(i,a)}}}(t)),e.history&&(0,Ln.a)(function(t){return function(e){if((0,s.s3)()!==t)return;let n=e.from,r=e.to;const o=(0,Fn.en)(d.location.href);let a=n?(0,Fn.en)(n):void 0;const i=(0,Fn.en)(r);a?.path||(a=o),o.protocol===i.protocol&&o.host===i.host&&(r=i.relative),o.protocol===a.protocol&&o.host===a.host&&(n=a.relative),(0,vt.n)({category:"navigation",data:{from:n,to:r}})}}(t)),e.sentry&&t.on("beforeSendEvent",function(t){return function(e){(0,s.s3)()===t&&(0,vt.n)({category:"sentry."+("transaction"===e.type?"transaction":"event"),event_id:e.event_id,level:e.level,message:(0,u.jH)(e)},{event:e})}}(t))}}})),Hn=["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"],qn=(0,R._I)(((t={})=>{const e={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...t};return{name:"BrowserApiErrors",setupOnce(){e.setTimeout&&(0,c.hl)(d,"setTimeout",Xn),e.setInterval&&(0,c.hl)(d,"setInterval",Xn),e.requestAnimationFrame&&(0,c.hl)(d,"requestAnimationFrame",Jn),e.XMLHttpRequest&&"XMLHttpRequest"in d&&(0,c.hl)(XMLHttpRequest.prototype,"send",Wn);const t=e.eventTarget;t&&(Array.isArray(t)?t:Hn).forEach((t=>function(t,e){const n=d[t]?.prototype;n?.hasOwnProperty?.("addEventListener")&&((0,c.hl)(n,"addEventListener",(function(n){return function(r,o,s){try{"function"==typeof o.handleEvent&&(o.handleEvent=m(o.handleEvent,{mechanism:{data:{function:"handleEvent",handler:(0,Ft.$P)(o),target:t},handled:!1,type:"instrument"}}))}catch{}return e.unregisterOriginalCallbacks&&function(t,e,n){t&&"object"==typeof t&&"removeEventListener"in t&&"function"==typeof t.removeEventListener&&t.removeEventListener(e,n)}(this,r,o),n.apply(this,[r,m(o,{mechanism:{data:{function:"addEventListener",handler:(0,Ft.$P)(o),target:t},handled:!1,type:"instrument"}}),s])}})),(0,c.hl)(n,"removeEventListener",(function(t){return function(e,n,r){try{const o=n.__sentry_wrapped__;o&&t.call(this,e,o,r)}catch(t){}return t.call(this,e,n,r)}})))}(t,e)))}}}));function Xn(t){return function(...e){const n=e[0];return e[0]=m(n,{mechanism:{data:{function:(0,Ft.$P)(t)},handled:!1,type:"instrument"}}),t.apply(this,e)}}function Jn(t){return function(e){return t.apply(this,[m(e,{mechanism:{data:{function:"requestAnimationFrame",handler:(0,Ft.$P)(t)},handled:!1,type:"instrument"}})])}}function Wn(t){return function(...e){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((t=>{t in n&&"function"==typeof n[t]&&(0,c.hl)(n,t,(function(e){const n={mechanism:{data:{function:t,handler:(0,Ft.$P)(e)},handled:!1,type:"instrument"}},r=(0,c.HK)(e);return r&&(n.mechanism.data.handler=(0,Ft.$P)(r)),m(e,n)}))})),t.apply(this,e)}}const Bn=(0,R._I)((()=>({name:"BrowserSession",setupOnce(){void 0!==d.document?((0,l.yj)({ignoreDuration:!0}),(0,l.cg)(),(0,Ln.a)((({from:t,to:e})=>{void 0!==t&&t!==e&&((0,l.yj)({ignoreDuration:!0}),(0,l.cg)())}))):Mn&&N.kg.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.")}}))),Gn=(0,R._I)(((t={})=>{const e={onerror:!0,onunhandledrejection:!0,...t};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(t){e.onerror&&(function(t){ke((e=>{const{stackParser:n,attachStacktrace:r}=Vn();if((0,s.s3)()!==t||h())return;const{msg:o,url:a,line:i,column:c,error:u}=e,d=function(t,e,n,r){const o=t.exception=t.exception||{},s=o.values=o.values||[],a=s[0]=s[0]||{},i=a.stacktrace=a.stacktrace||{},c=i.frames=i.frames||[],u=r,l=n,d=(0,F.HD)(e)&&e.length>0?e:(0,p.l4)();return 0===c.length&&c.push({colno:u,filename:d,function:Ft.Fi,in_app:!0,lineno:l}),t}(nn(n,u||o,void 0,r,!1),a,i,c);d.level="error",(0,l.eN)(d,{originalException:u,mechanism:{handled:!1,type:"onerror"}})}))}(t),Zn("onerror")),e.onunhandledrejection&&(function(t){$e((e=>{const{stackParser:n,attachStacktrace:r}=Vn();if((0,s.s3)()!==t||h())return;const o=function(t){if((0,F.pt)(t))return t;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch{}return t}(e),a=(0,F.pt)(o)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(o)}`}]}}:nn(n,o,void 0,r,!0);a.level="error",(0,l.eN)(a,{originalException:o,mechanism:{handled:!1,type:"onunhandledrejection"}})}))}(t),Zn("onunhandledrejection"))}}}));function Zn(t){Mn&&N.kg.log(`Global Handler attached: ${t}`)}function Vn(){return(0,s.s3)()?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const Kn=(0,R._I)((()=>({name:"HttpContext",preprocessEvent(t){if(!d.navigator&&!d.location&&!d.document)return;const e=g(),n={...e.headers,...t.request?.headers};t.request={...e,...t.request,headers:n}}})));function zn(t,e,n,r,o,s){if(!o.exception?.values||!s||!(0,F.V9)(s.originalException,Error))return;const a=o.exception.values.length>0?o.exception.values[o.exception.values.length-1]:void 0;a&&(o.exception.values=Yn(t,e,r,s.originalException,n,o.exception.values,a,0))}function Yn(t,e,n,r,o,s,a,i){if(s.length>=n+1)return s;let c=[...s];if((0,F.V9)(r[o],Error)){Qn(a,i);const s=t(e,r[o]),u=c.length;tr(s,o,u,i),c=Yn(t,e,n,r[o],o,[s,...c],s,u)}return Array.isArray(r.errors)&&r.errors.forEach(((r,s)=>{if((0,F.V9)(r,Error)){Qn(a,i);const u=t(e,r),l=c.length;tr(u,`errors[${s}]`,l,i),c=Yn(t,e,n,r,o,[u,...c],u,l)}})),c}function Qn(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 tr(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 er=(0,R._I)(((t={})=>{const e=t.limit||5,n=t.key||"cause";return{name:"LinkedErrors",preprocessEvent(t,r,o){zn(Ge,o.getOptions().stackParser,n,e,t,r)}}}));function nr(t){return[qt(),Qt(),qn(),Un(),Gn(),er(),Nt(),Kn(),Bn()]}function rr(t={}){const e=!t.skipBrowserExtensionCheck&&!!function(){if(void 0===d.window)return!1;const t=d;if(t.nw)return!1;if(!(t.chrome||t.browser)?.runtime?.id)return!1;const e=(0,p.l4)();return!(d===d.top&&["chrome-extension","moz-extension","ms-browser-extension","safari-web-extension"].some((t=>e.startsWith(`${t}://`))))}()&&(Mn&&(0,N.Cf)((()=>{console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")})),!0),n={...t,enabled:!e&&t.enabled,stackParser:(0,Ft.Sq)(t.stackParser||wn),integrations:(0,R.m8)({integrations:t.integrations,defaultIntegrations:null==t.defaultIntegrations?nr():t.defaultIntegrations}),transport:t.transport||cn};return function(t,e){!0===e.debug&&(I.X?N.fF.enable():(0,N.Cf)((()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")}))),(0,s.nZ)().update(e.initialScope);const n=new t(e);return Ne(n),n.init(),n}(sn,n)}function or(){}function sr(t){t()}function ar(t={}){const e=d.document,n=e?.head||e?.body;if(!n)return void(Mn&&N.kg.error("[showReportDialog] Global document not defined"));const r=(0,s.nZ)(),o=(0,s.s3)()?.getDsn();if(!o)return void(Mn&&N.kg.error("[showReportDialog] DSN not configured"));const a={...t,user:{...r.getUser(),...t.user},eventId:t.eventId||(0,l.eW)()},i=d.document.createElement("script");i.async=!0,i.crossOrigin="anonymous",i.src=function(t,e){const n=(0,x.vK)(t);if(!n)return"";const r=`${w(n)}embed/error-page/`;let o=`dsn=${(0,x.RA)(n)}`;for(const t in e)if("dsn"!==t&&"onClose"!==t)if("user"===t){const t=e.user;if(!t)continue;t.name&&(o+=`&name=${encodeURIComponent(t.name)}`),t.email&&(o+=`&email=${encodeURIComponent(t.email)}`)}else o+=`&${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`;return`${r}?${o}`}(o,a);const{onLoad:c,onClose:u}=a;if(c&&(i.onload=c),u){const t=e=>{if("__sentry_reportdialog_closed__"===e.data)try{u()}finally{d.removeEventListener("message",t)}};d.addEventListener("message",t)}n.appendChild(i)}const ir=i.n,cr=new WeakMap,ur=(0,R._I)(((t={})=>{const e=t.types||["crash","deprecation","intervention"];function n(t){if(cr.has((0,s.s3)()))for(const e of t)(0,s.$e)((t=>{t.setExtra("url",e.url);const n=`ReportingObserver [${e.type}]`;let r="No details available";if(e.body){const n={};for(const t in e.body)n[t]=e.body[t];if(t.setExtra("body",n),"crash"===e.type){const t=e.body;r=[t.crashId||"",t.reason||""].join(" ").trim()||r}else r=e.body.message||r}(0,l.uT)(`${n}: ${r}`)}))}return{name:"ReportingObserver",setupOnce(){(0,In.zb)()&&new ir.ReportingObserver(n,{buffered:!0,types:e}).observe()},setup(t){cr.set(t,!0)}}}));var lr=n(58691);const pr=(0,R._I)(((t={})=>{const e={failedRequestStatusCodes:[[500,599]],failedRequestTargets:[/.*/],...t};return{name:"HttpClient",setup(t){!function(t,e){(0,In.t$)()&&$n((n=>{if((0,s.s3)()!==t)return;const{response:r,args:o,error:a,virtualError:i}=n,[c,u]=o;r&&function(t,e,n,r,o){if(mr(t,n.status,n.url)){const t=function(t,e){return!e&&t instanceof Request||t instanceof Request&&t.bodyUsed?t:new Request(t,e)}(e,r);let s,a,i,c;_r()&&([s,i]=dr("Cookie",t),[a,c]=dr("Set-Cookie",n));const u=gr({url:t.url,method:t.method,status:n.status,requestHeaders:s,responseHeaders:a,requestCookies:i,responseCookies:c,error:o});(0,l.eN)(u)}}(e,c,r,u,a||i)}),!1)}(t,e),function(t,e){"XMLHttpRequest"in i.n&&(0,jn.UK)((n=>{if((0,s.s3)()!==t)return;const{error:r,virtualError:o}=n,a=n.xhr,i=a[jn.xU];if(!i)return;const{method:c,request_headers:u}=i;try{!function(t,e,n,r,o){if(mr(t,e.status,e.responseURL)){let t,s,a;if(_r()){try{const t=e.getResponseHeader("Set-Cookie")||e.getResponseHeader("set-cookie")||void 0;t&&(s=hr(t))}catch{}try{a=function(t){const e=t.getAllResponseHeaders();return e?e.split("\r\n").reduce(((t,e)=>{const[n,r]=e.split(": ");return n&&r&&(t[n]=r),t}),{}):{}}(e)}catch{}t=r}const i=gr({url:e.responseURL,method:n,status:e.status,requestHeaders:t,responseHeaders:a,responseCookies:s,error:o});(0,l.eN)(i)}}(e,a,c,u,r||o)}catch(t){Mn&&N.kg.warn("Error while extracting response event form XHR response",t)}}))}(t,e)}}}));function dr(t,e){const n=function(t){const e={};return t.forEach(((t,n)=>{e[n]=t})),e}(e.headers);let r;try{const e=n[t]||n[t.toLowerCase()]||void 0;e&&(r=hr(e))}catch{}return[n,r]}function fr(t){if(t){const e=t["Content-Length"]||t["content-length"];if(e)return parseInt(e,10)}}function hr(t){return t.split("; ").reduce(((t,e)=>{const[n,r]=e.split("=");return n&&r&&(t[n]=r),t}),{})}function mr(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,o=n,r.some((t=>"string"==typeof t?o.includes(t):t.test(o))))&&!(0,lr.W)(n,(0,s.s3)());var r,o}function gr(t){const e=(0,s.s3)(),n=e&&t.error&&t.error instanceof Error?t.error.stack:void 0,r=n&&e?e.getOptions().stackParser(n,0,1):void 0,o=`HTTP Client Error with status code: ${t.status}`,a={message:o,exception:{values:[{type:"Error",value:o,stacktrace:r?{frames:r}:void 0}]},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:fr(t.responseHeaders)}}};return(0,u.EG)(a,{type:"http.client",handled:!1}),a}function _r(){const t=(0,s.s3)();return!!t&&Boolean(t.getOptions().sendDefaultPii)}const yr=i.n,vr=(0,R._I)(((t={})=>{const e=null!=t.frameContextLines?t.frameContextLines:7;return{name:"ContextLines",processEvent:t=>function(t,e){const n=yr.document,r=yr.location&&(0,Fn.rt)(yr.location.href);if(!n||!r)return t;const o=t.exception?.values;if(!o?.length)return t;const s=n.documentElement.innerHTML;if(!s)return t;const a=["","",...s.split("\n"),""];return o.forEach((t=>{const n=t.stacktrace;n?.frames&&(n.frames=n.frames.map((t=>function(t,e,n,r){return t.filename===n&&t.lineno&&e.length?((0,u.go)(e,t,r),t):t}(t,a,r,e))))})),t}(t,e)}}));var br=n(13845);function Sr(t){const{query:e,operationName:n}=t,{operationName:r=n,operationType:o}=function(t){const e=t.match(/^(?:\s*)(query|mutation|subscription)(?:\s*)(\w+)(?:\s*)[{(]/);if(e)return{operationType:e[1],operationName:e[2]};const n=t.match(/^(?:\s*)(query|mutation|subscription)(?:\s*)[{(]/);return n?{operationType:n[1],operationName:void 0}:{operationType:void 0,operationName:void 0}}(e);return r?`${o} ${r}`:`${o}`}function Er(t){let e;if("xhr"in t){const n=t.xhr[jn.xU];e=n&&(0,br.SI)(n.body)[0]}else{const n=(0,br.dn)(t.input);e=(0,br.SI)(n)[0]}return e}function xr(t){let e;try{const n=JSON.parse(t);n.query&&(e=n)}finally{return e}}const wr=(0,R._I)((t=>({name:"GraphQLClient",setup(e){!function(t,e){t.on("beforeOutgoingRequestSpan",((t,n)=>{const r=(0,U.XU)(t).data||{};if("http.client"!==r[q.$J])return;const o=r[q.fv]||r["http.url"],s=r[q.qE]||r["http.method"];if(!(0,F.HD)(o)||!(0,F.HD)(s))return;const{endpoints:a}=e,i=(0,wt.U0)(o,a),c=Er(n);if(i&&c){const e=xr(c);if(e){const n=Sr(e);t.updateName(`${s} ${o} (${n})`),t.setAttribute("graphql.document",c)}}}))}(e,t),function(t,e){t.on("beforeOutgoingRequestBreadcrumb",((t,n)=>{const{category:r,type:o,data:s}=t;if("http"===o&&("fetch"===r||"xhr"===r)){const t=s?.url,{endpoints:r}=e,o=(0,wt.U0)(t,r),a=Er(n);if(o&&s&&a){const t=xr(a);if(!s.graphql&&t){const e=Sr(t);s["graphql.document"]=t.query,s["graphql.operation"]=e}}}}))}(e,t)}})));var kr=n(41459),Tr=n(43778),Ir=n(9144),$r=n(6881);function Rr(t){return t.split(",").some((t=>t.trim().startsWith(re.lq)))}function Pr(t,e,n,r){const o={url:t,type:"fetch","http.method":n,[q.S3]:r,[q.$J]:"http.client"};return e&&((0,Fn.DR)(e)||(o["http.url"]=e.href,o["server.address"]=e.host),e.search&&(o["http.query"]=e.search),e.hash&&(o["http.fragment"]=e.hash)),o}var Or=n(88811),Cr=n(16949);function Ar(t=0){return(((0,A.Z1)()||performance.timeOrigin)+t)/1e3}const Dr=new WeakMap,Fr=new Map,Nr={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function jr(t,e){const{traceFetch:n,traceXHR:r,trackFetchStreamPerformance:o,shouldCreateSpanForRequest:a,enableHTTPTimings:i,tracePropagationTargets:c,onRequestSpanStart:u}={...Nr,...e},l="function"==typeof a?a:t=>!0,d=t=>function(t,e){const n=(0,p.l4)();if(n){let r,o;try{r=new URL(t,n),o=new URL(n).origin}catch(t){return!1}const s=r.origin===o;return e?(0,wt.U0)(r.toString(),e)||s&&(0,wt.U0)(r.pathname,e):s}{const n=!!t.match(/^\/(?!\/)/);return e?(0,wt.U0)(t,e):n}}(t,c),f={};n&&(t.addEventProcessor((t=>("transaction"===t.type&&t.spans&&t.spans.forEach((t=>{if("http.client"===t.op){const e=Fr.get(t.span_id);e&&(t.timestamp=e/1e3,Fr.delete(t.span_id))}})),t))),o&&function(t){const e="fetch-body-resolved";(0,bt.Hj)(e,(t=>{if(t.response){const e=Dr.get(t.response);e&&t.endTimestamp&&Fr.set(e,t.endTimestamp)}})),(0,bt.D2)(e,(()=>Rn(Pn)))}(),$n((t=>{const e=function(t,e,n,r,o="auto.http.browser"){if(!t.fetchData)return;const{method:a,url:i}=t.fetchData,c=(0,Ir.f)()&&e(i);if(t.endTimestamp&&c){const e=t.fetchData.__span;if(!e)return;const n=r[e];return void(n&&(function(t,e){if(e.response){(0,te.Q0)(t,e.response.status);const n=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({code:te.jt,message:"internal_error"});t.end()}(n,t),delete r[e]))}const u=!!(0,U.HN)(),l=c&&u?(0,Ot.qp)(function(t,e,n){const r=(0,Fn.gk)(t);return{name:r?`${e} ${(0,Fn.Qq)(r)}`:e,attributes:Pr(t,r,e,n)}}(i,a,o)):new $r.b;if(t.fetchData.__span=l.spanContext().spanId,r[l.spanContext().spanId]=l,n(t.fetchData.url)){const e=t.args[0],n=t.args[1]||{},r=function(t,e,n){const r=oe({span:n}),o=r["sentry-trace"],s=r.baggage;if(!o)return;const a=e.headers||((0,F.gJ)(t)?t.headers:void 0);if(a){if(function(t){return"undefined"!=typeof Headers&&(0,F.V9)(t,Headers)}(a)){const t=new Headers(a);if(t.get("sentry-trace")||t.set("sentry-trace",o),s){const e=t.get("baggage");e?Rr(e)||t.set("baggage",`${e},${s}`):t.set("baggage",s)}return t}if(Array.isArray(a)){const t=[...a];a.find((t=>"sentry-trace"===t[0]))||t.push(["sentry-trace",o]);const e=a.find((t=>"baggage"===t[0]&&Rr(t[1])));return s&&!e&&t.push(["baggage",s]),t}{const t="sentry-trace"in a?a["sentry-trace"]:void 0,e="baggage"in a?a.baggage:void 0,n=e?Array.isArray(e)?[...e]:[e]:[],r=e&&(Array.isArray(e)?e.find((t=>Rr(t))):Rr(e));return s&&!r&&n.push(s),{...a,"sentry-trace":t??o,baggage:n.length>0?n.join(","):void 0}}}return{...r}}(e,n,(0,Ir.f)()&&u?l:void 0);r&&(t.args[1]=n,n.headers=r)}const p=(0,s.s3)();if(p){const e={input:t.args,response:t.response,startTimestamp:t.startTimestamp,endTimestamp:t.endTimestamp};p.emit("beforeOutgoingRequestSpan",l,e)}return l}(t,l,d,f);if(t.response&&t.fetchData.__span&&Dr.set(t.response,t.fetchData.__span),e){const n=Mr(t.fetchData.url),r=n?(0,Fn.en)(n).host:void 0;e.setAttributes({"http.url":n,"server.address":r}),i&&Lr(e),u?.(e,{headers:t.headers})}}))),r&&(0,jn.UK)((t=>{const e=function(t,e,n,r){const o=t.xhr,a=o?.[jn.xU];if(!o||o.__sentry_own_request__||!a)return;const{url:i,method:c}=a,u=(0,Ir.f)()&&e(i);if(t.endTimestamp&&u){const t=o.__sentry_xhr_span_id__;if(!t)return;const e=r[t];return void(e&&void 0!==a.status_code&&((0,te.Q0)(e,a.status_code),e.end(),delete r[t]))}const l=Mr(i),p=l?(0,Fn.en)(l):(0,Fn.en)(i),d=(0,Fn.rt)(i),f=!!(0,U.HN)(),h=u&&f?(0,Ot.qp)({name:`${c} ${d}`,attributes:{url:i,type:"xhr","http.method":c,"http.url":l,"server.address":p?.host,[q.S3]:"auto.http.browser",[q.$J]:"http.client",...p?.search&&{"http.query":p?.search},...p?.hash&&{"http.fragment":p?.hash}}}):new $r.b;o.__sentry_xhr_span_id__=h.spanContext().spanId,r[o.__sentry_xhr_span_id__]=h,n(i)&&function(t,e){const{"sentry-trace":n,baggage:r}=oe({span:e});n&&function(t,e,n){const r=t.__sentry_xhr_v3__?.request_headers;if(!r?.["sentry-trace"])try{if(t.setRequestHeader("sentry-trace",e),n){const e=r?.baggage;e&&e.split(",").some((t=>t.trim().startsWith("sentry-")))||t.setRequestHeader("baggage",n)}}catch(t){}}(t,n,r)}(o,(0,Ir.f)()&&f?h:void 0);const m=(0,s.s3)();return m&&m.emit("beforeOutgoingRequestSpan",h,t),h}(t,l,d,f);if(e){let n;i&&Lr(e);try{n=new Headers(t.xhr.__sentry_xhr_v3__?.request_headers)}catch{}u?.(e,{headers:n})}}))}function Lr(t){const{url:e}=(0,U.XU)(t).data;if(!e||"string"!=typeof e)return;const n=(0,Or._j)("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 e=[];if(null!=t.nextHopProtocol){const{name:n,version:r}=(0,Cr.b7)(t.nextHopProtocol);e.push(["network.protocol.version",r],["network.protocol.name",n])}return(0,A.Z1)()?[...e,["http.request.redirect_start",Ar(t.redirectStart)],["http.request.fetch_start",Ar(t.fetchStart)],["http.request.domain_lookup_start",Ar(t.domainLookupStart)],["http.request.domain_lookup_end",Ar(t.domainLookupEnd)],["http.request.connect_start",Ar(t.connectStart)],["http.request.secure_connection_start",Ar(t.secureConnectionStart)],["http.request.connection_end",Ar(t.connectEnd)],["http.request.request_start",Ar(t.requestStart)],["http.request.response_start",Ar(t.responseStart)],["http.request.response_end",Ar(t.responseEnd)]]:e}(r);e.forEach((e=>t.setAttribute(...e))),setTimeout(n)}}))}))}function Mr(t){try{return new URL(t,d.location.origin).href}catch{return}}var Ur=n(63161);const Hr={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3};function qr(t,e={}){const n=new Map;let r,o=!1,a="externalFinish",i=!e.disableAutoFinish;const c=[],{idleTimeout:u=Hr.idleTimeout,finalTimeout:l=Hr.finalTimeout,childSpanTimeout:p=Hr.childSpanTimeout,beforeSpanEnd:d}=e,f=(0,s.s3)();if(!f||!(0,Ir.f)()){const t=new $r.b,e={sample_rate:"0",sampled:"false",...(0,O.jC)(t)};return(0,O.Lh)(t,e),t}const h=(0,s.nZ)(),m=(0,U.HN)(),g=function(t){const e=(0,Ot.qp)(t);return(0,et.D)((0,s.nZ)(),e),I.X&&N.fF.log("[Tracing] Started span is an idle span"),e}(t);function _(){r&&(clearTimeout(r),r=void 0)}function y(t){_(),r=setTimeout((()=>{!o&&0===n.size&&i&&(a="idleTimeout",g.end(t))}),u)}function v(t){r=setTimeout((()=>{!o&&i&&(a="heartbeatFailed",g.end(t))}),p)}function b(t){o=!0,n.clear(),c.forEach((t=>t())),(0,et.D)(h,m);const e=(0,U.XU)(g),{start_timestamp:r}=e;if(!r)return;e.data[q.ju]||g.setAttribute(q.ju,a),N.fF.log(`[Tracing] Idle span "${e.op}" finished`);const s=(0,U.Dp)(g).filter((t=>t!==g));let i=0;s.forEach((e=>{e.isRecording()&&(e.setStatus({code:te.jt,message:"cancelled"}),e.end(t),I.X&&N.fF.log("[Tracing] Cancelling span since span ended early",JSON.stringify(e,void 0,2)));const n=(0,U.XU)(e),{timestamp:r=0,start_timestamp:o=0}=n,s=o<=t,a=r-o<=(l+u)/1e3;if(I.X){const t=JSON.stringify(e,void 0,2);s?a||N.fF.log("[Tracing] Discarding span since it finished after idle span final timeout",t):N.fF.log("[Tracing] Discarding span since it happened after idle span was finished",t)}a&&s||((0,U.ed)(g,e),i++)})),i>0&&g.setAttribute("sentry.idle_span_discarded_spans",i)}return g.end=new Proxy(g.end,{apply(t,e,n){if(d&&d(g),e instanceof $r.b)return;const[r,...o]=n,s=r||(0,A.ph)(),a=(0,U.$k)(s),i=(0,U.Dp)(g).filter((t=>t!==g));if(!i.length)return b(a),Reflect.apply(t,e,[a,...o]);const c=i.map((t=>(0,U.XU)(t).timestamp)).filter((t=>!!t)),u=c.length?Math.max(...c):void 0,p=(0,U.XU)(g).start_timestamp,f=Math.min(p?p+l/1e3:1/0,Math.max(p||-1/0,Math.min(a,u||1/0)));return b(f),Reflect.apply(t,e,[f,...o])}}),c.push(f.on("spanStart",(t=>{var e;o||t===g||(0,U.XU)(t).timestamp||t instanceof Ur.s&&t.isStandaloneSpan()||(0,U.Dp)(g).includes(t)&&(e=t.spanContext().spanId,_(),n.set(e,!0),v((0,A.ph)()+p/1e3))}))),c.push(f.on("spanEnd",(t=>{var e;o||(e=t.spanContext().spanId,n.has(e)&&n.delete(e),0===n.size&&y((0,A.ph)()+u/1e3))}))),c.push(f.on("idleSpanEnableAutoFinish",(t=>{t===g&&(i=!0,y(),n.size&&v())}))),e.disableAutoFinish||y(),setTimeout((()=>{o||(g.setStatus({code:te.jt,message:"deadline_exceeded"}),a="finalTimeout",g.end())}),l),g}var Xr=n(29067),Jr=n(40781),Wr=n(73869),Br=n(35430);const Gr="sentry_previous_trace";function Zr(t){return 1===t.traceFlags}const Vr={...Hr,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,enableElementTiming:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:"in-memory",consistentTraceSampling:!1,_experiments:{},...Nr},Kr=(t={})=>{const e={name:void 0,source:void 0},n=d.document,{enableInp:r,enableElementTiming:o,enableLongTask:a,enableLongAnimationFrame:c,_experiments:{enableInteractions:u,enableStandaloneClsSpans:l,enableStandaloneLcpSpans:f},beforeStartSpan:h,idleTimeout:m,finalTimeout:_,childSpanTimeout:y,markBackgroundSpan:v,traceFetch:b,traceXHR:S,trackFetchStreamPerformance:E,shouldCreateSpanForRequest:x,enableHTTPTimings:w,ignoreResourceSpans:k,ignorePerformanceApiSpans:T,instrumentPageLoad:I,instrumentNavigation:$,detectRedirects:R,linkPreviousTrace:P,consistentTraceSampling:C,onRequestSpanStart:D}={...Vr,...t};let F,j;function L(t,r,o=!0){const a="pageload"===r.op,i=h?h(r):r,c=i.attributes||{};if(r.name!==i.name&&(c[q.Zj]="custom",i.attributes=c),!o){const t=(0,A.yW)();return void(0,Ot.qp)({...i,startTime:t}).end(t)}e.name=i.name,e.source=c[q.Zj];const u=qr(i,{idleTimeout:m,finalTimeout:_,childSpanTimeout:y,disableAutoFinish:a,beforeSpanEnd:e=>{F?.(),(0,Jr.f7)(e,{recordClsOnPageloadSpan:!l,recordLcpOnPageloadSpan:!f,ignoreResourceSpans:k,ignorePerformanceApiSpans:T}),no(t,void 0);const n=(0,s.nZ)(),r=n.getPropagationContext();n.setPropagationContext({...r,traceId:u.spanContext().traceId,sampled:(0,U.Tt)(u),dsc:(0,O.jC)(e)})}});function p(){n&&["interactive","complete"].includes(n.readyState)&&t.emit("idleSpanEnableAutoFinish",u)}no(t,u),a&&n&&(n.addEventListener("readystatechange",(()=>{p()})),p())}return{name:"BrowserTracing",setup(t){if(Oe(),F=(0,Jr.PR)({recordClsStandaloneSpans:l||!1,recordLcpStandaloneSpans:f||!1,client:t}),r&&(0,Wr.NR)(),o&&(0,Br.c)(),c&&i.n.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?(0,Jr.Jk)():a&&(0,Jr.Fv)(),u&&(0,Jr.sn)(),R&&n){const t=()=>{j=(0,A.ph)()};addEventListener("click",t,{capture:!0}),addEventListener("keydown",t,{capture:!0,passive:!0})}function e(){const e=eo(t);e&&!(0,U.XU)(e).timestamp&&(Mn&&N.kg.log(`[Tracing] Finishing current active span with op: ${(0,U.XU)(e).op}`),e.setAttribute(q.ju,"cancelled"),e.end())}t.on("startNavigationSpan",((n,r)=>{if((0,s.s3)()!==t)return;if(r?.isRedirect)return Mn&&N.kg.warn("[Tracing] Detected redirect, navigation span will not be the root span, but a child span."),void L(t,{op:"navigation.redirect",...n},!1);e(),(0,s.aF)().setPropagationContext({traceId:(0,Xr.H)(),sampleRand:Math.random()});const o=(0,s.nZ)();o.setPropagationContext({traceId:(0,Xr.H)(),sampleRand:Math.random()}),o.setSDKProcessingMetadata({normalizedRequest:void 0}),L(t,{op:"navigation",...n})})),t.on("startPageLoadSpan",((n,r={})=>{if((0,s.s3)()!==t)return;e();const o=r.sentryTrace||Qr("sentry-trace"),a=r.baggage||Qr("baggage"),i=(0,ne.pT)(o,a),c=(0,s.nZ)();c.setPropagationContext(i),c.setSDKProcessingMetadata({normalizedRequest:g()}),L(t,{op:"pageload",...n})}))},afterAllSetup(t){let n=(0,p.l4)();if("off"!==P&&function(t,{linkPreviousTrace:e,consistentTraceSampling:n}){const r="session-storage"===e;let o=r?function(){try{const t=d.sessionStorage?.getItem(Gr);return JSON.parse(t)}catch(t){return}}():void 0;t.on("spanStart",(t=>{if((0,U.Gx)(t)!==t)return;const e=(0,s.nZ)().getPropagationContext();o=function(t,e,n){const r=(0,U.XU)(e),o={spanContext:e.spanContext(),startTimestamp:r.start_timestamp,sampleRate:function(){try{return Number(n.dsc?.sample_rate)??Number(r.data?.[q.TE])}catch{return 0}}(),sampleRand:n.sampleRand};if(!t)return o;const s=t.spanContext;return s.traceId===r.trace_id?t:(Date.now()/1e3-t.startTimestamp<=3600&&(Mn&&N.kg.info(`Adding previous_trace ${s} link to span ${{op:r.op,...e.spanContext()}}`),e.addLink({context:s,attributes:{[q.lH]:"previous_trace"}}),e.setAttribute("sentry.previous_trace",`${s.traceId}-${s.spanId}-${Zr(s)?1:0}`)),o)}(o,t,e),r&&function(t){try{d.sessionStorage.setItem(Gr,JSON.stringify(t))}catch(t){Mn&&N.kg.warn("Could not store previous trace in sessionStorage",t)}}(o)}));let a=!0;n&&t.on("beforeSampling",(t=>{if(!o)return;const e=(0,s.nZ)(),n=e.getPropagationContext();a&&n.parentSpanId?a=!1:(e.setPropagationContext({...n,dsc:{...n.dsc,sample_rate:String(o.sampleRate),sampled:String(Zr(o.spanContext))},sampleRand:o.sampleRand}),t.parentSampled=Zr(o.spanContext),t.parentSampleRate=o.sampleRate,t.spanAttributes={...t.spanAttributes,[q.iT]:o.sampleRate})}))}(t,{linkPreviousTrace:P,consistentTraceSampling:C}),d.location){if(I){const e=(0,A.Z1)();zr(t,{name:d.location.pathname,startTime:e?e/1e3:void 0,attributes:{[q.Zj]:"url",[q.S3]:"auto.pageload.browser"}})}$&&(0,Ln.a)((({to:e,from:r})=>{if(void 0===r&&-1!==n?.indexOf(e))return void(n=void 0);n=void 0;const o=(0,Fn.gk)(e),s=eo(t),a=s&&R&&function(t,e){const n=(0,U.XU)(t),r=(0,A.yW)();return!(r-n.start_timestamp>ro)&&!(e&&r-e<=ro)}(s,j);Yr(t,{name:o?.pathname||d.location.pathname,attributes:{[q.Zj]:"url",[q.S3]:"auto.navigation.browser"}},{url:e,isRedirect:a})}))}v&&(d.document?d.document.addEventListener("visibilitychange",(()=>{const t=(0,U.HN)();if(!t)return;const e=(0,U.Gx)(t);if(d.document.hidden&&e){const t="cancelled",{op:n,status:r}=(0,U.XU)(e);Mn&&N.kg.log(`[Tracing] Transaction: ${t} -> since tab moved to the background, op: ${n}`),r||e.setStatus({code:te.jt,message:t}),e.setAttribute("sentry.cancellation_reason","document.hidden"),e.end()}})):Mn&&N.kg.warn("[Tracing] Could not set up background tab detection due to lack of global document")),u&&function(t,e,n,r,o){let s;d.document&&addEventListener("click",(()=>{const a="ui.action.click",i=eo(t);if(i){const t=(0,U.XU)(i).op;if(["navigation","pageload"].includes(t))return void(Mn&&N.kg.warn(`[Tracing] Did not create ${a} span because a pageload or navigation span is in progress.`))}s&&(s.setAttribute(q.ju,"interactionInterrupted"),s.end(),s=void 0),o.name?s=qr({name:o.name,op:a,attributes:{[q.Zj]:o.source||"url"}},{idleTimeout:e,finalTimeout:n,childSpanTimeout:r}):Mn&&N.kg.warn(`[Tracing] Did not create ${a} transaction because _latestRouteName is missing.`)}),{capture:!0})}(t,m,_,y,e),r&&(0,Wr.D1)(),jr(t,{traceFetch:b,traceXHR:S,trackFetchStreamPerformance:E,tracePropagationTargets:t.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:x,enableHTTPTimings:w,onRequestSpanStart:D})}}};function zr(t,e,n){t.emit("startPageLoadSpan",e,n),(0,s.nZ)().setTransactionName(e.name);const r=eo(t);return r&&t.emit("afterStartPageLoadSpan",r),r}function Yr(t,e,n){const{url:r,isRedirect:o}=n||{};t.emit("beforeStartNavigationSpan",e,{isRedirect:o}),t.emit("startNavigationSpan",e,{isRedirect:o});const a=(0,s.nZ)();return a.setTransactionName(e.name),r&&!o&&a.setSDKProcessingMetadata({normalizedRequest:{...g(),url:r}}),eo(t)}function Qr(t){const e=d.document?.querySelector(`meta[name=${t}]`);return e?.getAttribute("content")||void 0}const to="_sentry_idleSpan";function eo(t){return t[to]}function no(t,e){(0,c.xp)(t,to,e)}const ro=.3,oo=5e3;function so(t){return new Promise(((e,n)=>{t.oncomplete=t.onsuccess=()=>e(t.result),t.onabort=t.onerror=()=>n(t.error)}))}function ao(t){return so(t.getAllKeys())}function io(t){let e;function n(){return null==e&&(e=function(t,e){const n=indexedDB.open(t);n.onupgradeneeded=()=>n.result.createObjectStore(e);const r=so(n);return t=>r.then((n=>t(n.transaction(e,"readwrite").objectStore(e))))}(t.dbName||"sentry-offline",t.storeName||"queue")),e}return{push:async e=>{try{const r=await(0,C.V$)(e);await function(t,e,n){return t((t=>ao(t).then((r=>{if(!(r.length>=n))return t.put(e,Math.max(...r,0)+1),so(t.transaction)}))))}(n(),r,t.maxQueueSize||30)}catch(t){}},unshift:async e=>{try{const r=await(0,C.V$)(e);await function(t,e,n){return t((t=>ao(t).then((r=>{if(!(r.length>=n))return t.put(e,Math.min(...r,0)-1),so(t.transaction)}))))}(n(),r,t.maxQueueSize||30)}catch(t){}},shift:async()=>{try{const t=await function(t){return t((t=>ao(t).then((e=>{const n=e[0];if(null!=n)return so(t.get(n)).then((e=>(t.delete(n),so(t.transaction).then((()=>e)))))}))))}(n());if(t)return(0,C.f4)(t)}catch(t){}}}}function co(t=cn){return function(t){return e=>{const n=t({...e,createStore:io});return d.addEventListener("online",(async t=>{await n.flush()})),n}}(function(t){function e(...t){I.X&&N.fF.log("[Offline]:",...t)}return n=>{const r=t(n);if(!n.createStore)throw new Error("No `createStore` function was provided");const o=n.createStore(n);let s,a=oo;function i(t){s&&clearTimeout(s),s=setTimeout((async()=>{s=void 0;const t=await o.shift();t&&(e("Attempting to send previously queued event"),t[0].sent_at=(new Date).toISOString(),u(t,!0).catch((t=>{e("Failed to retry sending",t)})))}),t),"number"!=typeof s&&s.unref&&s.unref()}function c(){s||(i(a),a=Math.min(2*a,36e5))}async function u(t,s=!1){if(!s&&(0,C.R)(t,["replay_event","replay_recording"]))return await o.push(t),i(100),{};try{if(n.shouldSend&&!1===await n.shouldSend(t))throw new Error("Envelope not sent because `shouldSend` callback returned false");const e=await r.send(t);let o=100;if(e)if(e.headers?.["retry-after"])o=(0,At.JY)(e.headers["retry-after"]);else if(e.headers?.["x-sentry-rate-limits"])o=6e4;else if((e.statusCode||0)>=400)return e;return i(o),a=oo,e}catch(r){if(await function(t,e,r){return!(0,C.R)(t,["client_report"])&&(!n.shouldStore||n.shouldStore(t,e,r))}(t,r,a))return s?await o.unshift(t):await o.push(t),c(),e("Error sending. Event queued.",r),{};throw r}}return n.flushAtStartup&&c(),{send:u,flush:t=>(void 0===t&&(a=oo,i(100)),r.flush(t))}}}(t))}var uo=n(3920);const lo=1e6,po=String(0),fo=d.navigator;let ho="",mo="",go="",_o=fo?.userAgent||"",yo="";const vo=fo?.language||fo?.languages?.[0]||"",bo=fo?.userAgentData;var So;function Eo(t,e,n,r){if("transaction"!==r.type)throw new TypeError("Profiling events may only be attached to transactions, this should never occur.");if(null==n)throw new TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${n} instead.`);const o=function(t){const e=t.contexts?.trace?.trace_id;return"string"==typeof e&&32!==e.length&&Mn&&N.kg.log(`[Profiling] Invalid traceId: ${e} on profiled event`),"string"!=typeof e?"":e}(r),s=function(t){return!("thread_metadata"in t)}(c=n)?function(t){let e,n=0;const r={samples:[],stacks:[],frames:[],thread_metadata:{[po]:{name:"main"}}},o=t.samples[0];if(!o)return r;const s=o.timestamp,a=(0,A.Z1)(),i="number"==typeof performance.timeOrigin?performance.timeOrigin:a||0,c=i-(a||i);return t.samples.forEach(((o,a)=>{if(void 0===o.stackId)return void 0===e&&(e=n,r.stacks[e]=[],n++),void(r.samples[a]={elapsed_since_start_ns:((o.timestamp+c-s)*lo).toFixed(0),stack_id:e,thread_id:po});let i=t.stacks[o.stackId];const u=[];for(;i;){u.push(i.frameId);const e=t.frames[i.frameId];e&&void 0===r.frames[i.frameId]&&(r.frames[i.frameId]={function:e.name,abs_path:"number"==typeof e.resourceId?t.resources[e.resourceId]:void 0,lineno:e.line,colno:e.column}),i=void 0===i.parentId?void 0:t.stacks[i.parentId]}const l={elapsed_since_start_ns:((o.timestamp+c-s)*lo).toFixed(0),stack_id:n,thread_id:po};r.stacks[n]=u,r.samples[a]=l,n++})),r}(c):c,a=e||("number"==typeof r.start_timestamp?1e3*r.start_timestamp:1e3*(0,A.ph)()),i="number"==typeof r.timestamp?1e3*r.timestamp:1e3*(0,A.ph)();var c;return{event_id:t,timestamp:new Date(a).toISOString(),platform:"javascript",version:"1",release:r.release||"",environment:r.environment||T.J,runtime:{name:"javascript",version:d.navigator.userAgent},os:{name:ho,version:mo,build_number:_o},device:{locale:vo,model:yo,manufacturer:_o,architecture:go,is_emulator:!1},debug_meta:{images:wo(n.resources)},profile:s,transactions:[{name:r.transaction||"",id:r.event_id||(0,u.DM)(),trace_id:o,active_thread_id:po,relative_start_ns:"0",relative_end_ns:(1e6*(i-a)).toFixed(0)}]}}function xo(t){return"pageload"===(0,U.XU)(t).op}function wo(t){const e=(0,s.s3)()?.getOptions(),n=e?.stackParser;return n?(0,uo.v)(n,t):[]}"object"==typeof(So=bo)&&null!==So&&"getHighEntropyValues"in So&&bo.getHighEntropyValues(["architecture","model","platform","platformVersion","fullVersionList"]).then((t=>{if(ho=t.platform||"",go=t.architecture||"",yo=t.model||"",mo=t.platformVersion||"",t.fullVersionList?.length){const e=t.fullVersionList[t.fullVersionList.length-1];_o=`${e.brand} ${e.version}`}})).catch((t=>{}));let ko=!1;function To(t){if(ko)return Mn&&N.kg.log("[Profiling] Profiling has been disabled for the duration of the current user session."),!1;if(!t.isRecording())return Mn&&N.kg.log("[Profiling] Discarding profile because transaction was not sampled."),!1;const e=(0,s.s3)()?.getOptions();if(!e)return Mn&&N.kg.log("[Profiling] Profiling disabled, no options found."),!1;const n=e.profilesSampleRate;return("number"!=typeof(r=n)&&"boolean"!=typeof r||"number"==typeof r&&isNaN(r)?(Mn&&N.kg.warn(`[Profiling] Invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(r)} of type ${JSON.stringify(typeof r)}.`),0):!0===r||!1===r||!(r<0||r>1)||(Mn&&N.kg.warn(`[Profiling] Invalid sample rate. Sample rate must be between 0 and 1. Got ${r}.`),0))?n?!!(!0===n||Math.random(){a&&(d.clearTimeout(a),a=void 0),Mn&&N.kg.log(`[Profiling] stopped profiling of span: ${(0,U.XU)(t).description}`),e?function(t,e){if($o.set(t,e),$o.size>30){const t=$o.keys().next().value;$o.delete(t)}}(r,e):Mn&&N.kg.log(`[Profiling] profiler returned null profile for: ${(0,U.XU)(t).description}`,"this may indicate an overlapping span or a call to stopProfiling with a profile title that was never started")})).catch((t=>{Mn&&N.kg.log("[Profiling] error while stopping profiler:",t)}))}(0,s.nZ)().setContext("profile",{profile_id:r,start_timestamp:e});let a=d.setTimeout((()=>{Mn&&N.kg.log("[Profiling] max profile duration elapsed, stopping profiling for:",(0,U.XU)(t).description),o()}),3e4);const i=t.end.bind(t);t.end=function(){return t?(o().then((()=>{i()}),(()=>{i()})),t):i()}}const Oo=(0,R._I)((()=>({name:"BrowserProfiling",setup(t){const e=(0,U.HN)(),n=e&&(0,U.Gx)(e);n&&xo(n)&&To(n)&&Po(n),t.on("spanStart",(t=>{t===(0,U.Gx)(t)&&To(t)&&Po(t)})),t.on("beforeEnvelope",(t=>{if(!$o.size)return;const e=function(t){const e=[];return(0,C.gv)(t,((t,n)=>{if("transaction"===n)for(let n=1;n{const e=t.sidecarUrl||"http://localhost:8969/stream";return{name:"SpotlightBrowser",setup:()=>{Mn&&N.kg.log("Using Sidecar URL",e)},processEvent:t=>function(t){return Boolean("transaction"===t.type&&t.spans&&t.contexts&&t.contexts.trace&&"ui.action.click"===t.contexts.trace.op&&t.spans.some((({description:t})=>t?.includes("#sentry-spotlight"))))}(t)?null:t,afterAllSetup:t=>{!function(t,e){const n=(0,an.L2)("fetch");let r=0;t.on("beforeEnvelope",(t=>{r>3?N.kg.warn("[Spotlight] Disabled Sentry -> Spotlight integration due to too many failed requests:",r):n(e,{method:"POST",body:(0,C.V$)(t),headers:{"Content-Type":"application/x-sentry-envelope"},mode:"cors"}).then((t=>{t.status>=200&&t.status<400&&(r=0)}),(t=>{r++,N.kg.error("Sentry SDK can't connect to Sidecar is it running? See: https://spotlightjs.com/sidecar/npx/",t)}))}))}(t,e)}}})),Ao=(0,R._I)((()=>({name:"LaunchDarkly",processEvent:(t,e,n)=>Gt(t)})));function Do(){return{name:"sentry-flag-auditor",type:"flag-used",synchronous:!0,method:(t,e,n)=>{Zt(t,e.value),Vt(t,e.value)}}}const Fo=(0,R._I)((()=>({name:"OpenFeature",processEvent:(t,e,n)=>Gt(t)})));class No{after(t,e){Zt(e.flagKey,e.value),Vt(e.flagKey,e.value)}error(t,e,n){Zt(t.flagKey,t.defaultValue),Vt(t.flagKey,t.defaultValue)}}const jo=(0,R._I)((({featureFlagClientClass:t})=>({name:"Unleash",setupOnce(){const e=t.prototype;(0,c.hl)(e,"isEnabled",Lo)},processEvent:(t,e,n)=>Gt(t)})));function Lo(t){return function(...e){const n=e[0],r=t.apply(this,e);return"string"==typeof n&&"boolean"==typeof r?(Zt(n,r),Vt(n,r)):Mn&&N.kg.error(`[Feature Flags] UnleashClient.isEnabled does not match expected signature. arg0: ${n} (${typeof n}), result: ${r} (${typeof r})`),r}}const Mo=(0,R._I)((({featureFlagClient:t})=>({name:"Statsig",setup(e){t.on("gate_evaluation",(t=>{Zt(t.gate.name,t.gate.value),Vt(t.gate.name,t.gate.value)}))},processEvent:(t,e,n)=>Gt(t)})));async function Uo(){const t=(0,s.s3)();if(!t)return"no-client-active";if(!t.getDsn())return"no-dsn-configured";try{await fetch("https://o447951.ingest.sentry.io/api/4509632503087104/envelope/?sentry_version=7&sentry_key=c1dfb07d783ad5325c245c1fd3725390&sentry_client=sentry.javascript.browser%2F1.33.7",{body:"{}",method:"POST",mode:"cors",credentials:"omit"})}catch{return"sentry-unreachable"}}var Ho=n(44194);function qo(t){const e={...t};return Je(e,"react"),(0,l.v)("react",{version:Ho.version}),rr(e)}function Xo(t,{componentStack:e},n){if(function(t){const e=t.match(/^([^.]+)/);return null!==e&&parseInt(e[0])>=17}(Ho.version)&&(0,F.VZ)(t)&&e){const n=new Error(t.message);n.name=`React ErrorBoundary ${t.name}`,n.stack=e,function(t,e){const n=new WeakSet;!function t(e,r){if(!n.has(e))return e.cause?(n.add(e),t(e.cause,r)):void(e.cause=r)}(t,e)}(t,n)}return(0,s.$e)((r=>(r.setContext("react",{componentStack:e}),(0,l.Tb)(t,n))))}function Jo(t){return(e,n)=>{const r=Xo(e,n);t&&t(e,n,r)}}const Wo="ui.react.render",Bo="ui.react.mount";var Go=n(10063);const Zo=Go||n.t(Go,2);class Vo extends Ho.Component{constructor(t){super(t);const{name:e,disabled:n=!1}=this.props;n||(this._mountSpan=(0,Ot.qp)({name:`<${e}>`,onlyIfParent:!0,op:Bo,attributes:{[q.S3]:"auto.ui.react.profiler","ui.component_name":e}}))}componentDidMount(){this._mountSpan&&this._mountSpan.end()}shouldComponentUpdate({updateProps:t,includeUpdates:e=!0}){if(e&&this._mountSpan&&t!==this.props.updateProps){const e=Object.keys(t).filter((e=>t[e]!==this.props.updateProps[e]));if(e.length>0){const t=(0,A.ph)();this._updateSpan=(0,Ot._d)(this._mountSpan,(()=>(0,Ot.qp)({name:`<${this.props.name}>`,onlyIfParent:!0,op:"ui.react.update",startTime:t,attributes:{[q.S3]:"auto.ui.react.profiler","ui.component_name":this.props.name,"ui.react.changed_props":e}})))}}return!0}componentDidUpdate(){this._updateSpan&&(this._updateSpan.end(),this._updateSpan=void 0)}componentWillUnmount(){const t=(0,A.ph)(),{name:e,includeRender:n=!0}=this.props;if(this._mountSpan&&n){const n=(0,U.XU)(this._mountSpan).timestamp;(0,Ot._d)(this._mountSpan,(()=>{const r=(0,Ot.qp)({onlyIfParent:!0,name:`<${e}>`,op:Wo,startTime:n,attributes:{[q.S3]:"auto.ui.react.profiler","ui.component_name":e}});r&&r.end(t)}))}}render(){return this.props.children}}function Ko(t,e){const n=e?.name||t.displayName||t.name||"unknown",r=r=>Ho.createElement(Vo,{...e,name:n,updateProps:r},Ho.createElement(t,{...r}));return r.displayName=`profiler(${n})`,Zo(r,t),r}function zo(t,e={disabled:!1,hasRenderSpan:!0}){const[n]=Ho.useState((()=>{if(!e?.disabled)return(0,Ot.qp)({name:`<${t}>`,onlyIfParent:!0,op:Bo,attributes:{[q.S3]:"auto.ui.react.profiler","ui.component_name":t}})}));Ho.useEffect((()=>(n&&n.end(),()=>{if(n&&e.hasRenderSpan){const e=(0,U.XU)(n).timestamp,r=(0,A.ph)(),o=(0,Ot.qp)({name:`<${t}>`,onlyIfParent:!0,op:Wo,startTime:e,attributes:{[q.S3]:"auto.ui.react.profiler","ui.component_name":t}});o&&o.end(r)}})),[])}Object.assign(Vo,{defaultProps:{disabled:!1,includeRender:!0,includeUpdates:!0}});const Yo="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,Qo={componentStack:null,error:null,eventId:null};class ts extends Ho.Component{constructor(t){super(t),this.state=Qo,this._openFallbackReportDialog=!0;const e=(0,s.s3)();e&&t.showDialog&&(this._openFallbackReportDialog=!1,this._cleanupHook=e.on("afterSendEvent",(e=>{!e.type&&this._lastEventId&&e.event_id===this._lastEventId&&ar({...t.dialogOptions,eventId:this._lastEventId})})))}componentDidCatch(t,e){const{componentStack:n}=e,{beforeCapture:r,onError:o,showDialog:a,dialogOptions:i}=this.props;(0,s.$e)((s=>{r&&r(s,t,n);const c=null!=this.props.handled?this.props.handled:!!this.props.fallback,u=Xo(t,e,{mechanism:{handled:c}});o&&o(t,n,u),a&&(this._lastEventId=u,this._openFallbackReportDialog&&ar({...i,eventId:u})),this.setState({error:t,componentStack:n,eventId:u})}))}componentDidMount(){const{onMount:t}=this.props;t&&t()}componentWillUnmount(){const{error:t,componentStack:e,eventId:n}=this.state,{onUnmount:r}=this.props;r&&(this.state===Qo?r(null,null,null):r(t,e,n)),this._cleanupHook&&(this._cleanupHook(),this._cleanupHook=void 0)}resetErrorBoundary(){const{onReset:t}=this.props,{error:e,componentStack:n,eventId:r}=this.state;t&&t(e,n,r),this.setState(Qo)}render(){const{fallback:t,children:e}=this.props,n=this.state;if(null===n.componentStack)return"function"==typeof e?e():e;const r="function"==typeof t?Ho.createElement(t,{error:n.error,componentStack:n.componentStack,resetError:()=>this.resetErrorBoundary(),eventId:n.eventId}):t;return Ho.isValidElement(r)?r:(t&&Yo&&N.fF.warn("fallback did not produce a valid ReactElement"),null)}}function es(t,e){const n=t.displayName||t.name||"unknown",r=n=>Ho.createElement(ts,{...e},Ho.createElement(t,{...n}));return r.displayName=`errorBoundary(${n})`,Zo(r,t),r}const ns={attachReduxState:!0,actionTransformer:t=>t,stateTransformer:t=>t||null};function rs(t){const e={...ns,...t};return t=>(n,r)=>{function o(t){return(n,r)=>{const o=t(n,r),a=(0,s.nZ)(),i=e.actionTransformer(r);null!=i&&(0,vt.n)({category:"redux.action",data:i,type:"info"});const u=e.stateTransformer(o);if(null!=u){const t=(0,s.s3)()?.getOptions(),e=t?.normalizeDepth||3,n={state:{type:"redux",value:u}};(0,c.xp)(n,"__sentry_override_normalization_depth__",3+e),a.setContext("state",n)}else a.setContext("state",null);const{configureScopeWithState:l}=e;return"function"==typeof l&&l(a,o),o}}e.attachReduxState&&(0,s.lW)().addEventProcessor(((t,e)=>{try{void 0===t.type&&"redux"===t.contexts.state.state.type&&(e.attachments=[...e.attachments||[],{filename:"redux_state.json",data:JSON.stringify(t.contexts.state.state.value)}])}catch(t){}return t}));const a=t(o(n),r);return a.replaceReducer=new Proxy(a.replaceReducer,{apply:function(t,e,n){t.apply(e,[o(n[0])])}}),a}}function os(t){const e=Kr({...t,instrumentPageLoad:!1,instrumentNavigation:!1}),{history:n,routes:r,match:o,instrumentPageLoad:s=!0,instrumentNavigation:a=!0}=t;return{...e,afterAllSetup(t){e.afterAllSetup(t),s&&d.location&&ss(r,d.location,o,((e,n="url")=>{zr(t,{name:e,attributes:{[q.$J]:"pageload",[q.S3]:"auto.pageload.react.reactrouter_v3",[q.Zj]:n}})})),a&&n.listen&&n.listen((e=>{"PUSH"!==e.action&&"POP"!==e.action||ss(r,e,o,((e,n="url")=>{Yr(t,{name:e,attributes:{[q.$J]:"navigation",[q.S3]:"auto.navigation.react.reactrouter_v3",[q.Zj]:n}})}))}))}}}function ss(t,e,n,r){let o=e.pathname;n({location:e,routes:t},((t,e,n)=>{if(t||!n)return r(o);const s=function(t){if(!Array.isArray(t)||0===t.length)return"";const e=t.filter((t=>!!t.path));let n=-1;for(let t=e.length-1;t>=0;t--)if(e[t].path?.startsWith("/")){n=t;break}return e.slice(n).reduce(((t,{path:e})=>`${t}${"/"===t||""===t?e:`/${e}`}`),"")}(n.routes||[]);return 0===s.length||"/*"===s?r(o):(o=s,r(o,"route"))}))}function as(t,e={}){const n=t,r=Kr({...e,instrumentNavigation:!1,instrumentPageLoad:!1}),{instrumentPageLoad:o=!0,instrumentNavigation:s=!0}=e;return{...r,afterAllSetup(t){r.afterAllSetup(t);const e=d.location;if(o&&e){const r=n.matchRoutes(e.pathname,n.options.parseSearch(e.search),{preload:!1,throwOnError:!1}),o=r[r.length-1];zr(t,{name:o?o.routeId:e.pathname,attributes:{[q.$J]:"pageload",[q.S3]:"auto.pageload.react.tanstack_router",[q.Zj]:o?"route":"url",...is(o)}})}s&&n.subscribe("onBeforeNavigate",(e=>{if(e.toLocation.state===e.fromLocation?.state)return;const r=n.matchRoutes(e.toLocation.pathname,e.toLocation.search,{preload:!1,throwOnError:!1}),o=r[r.length-1],s=d.location,a=Yr(t,{name:o?o.routeId:s.pathname,attributes:{[q.$J]:"navigation",[q.S3]:"auto.navigation.react.tanstack_router",[q.Zj]:o?"route":"url"}}),i=n.subscribe("onResolved",(t=>{if(i(),a){const e=n.matchRoutes(t.toLocation.pathname,t.toLocation.search,{preload:!1,throwOnError:!1}),r=e[e.length-1];r&&(a.updateName(r.routeId),a.setAttribute(q.Zj,"route"),a.setAttributes(is(r)))}}))}))}}}function is(t){if(!t)return{};const e={};return Object.entries(t.params).forEach((([t,n])=>{e[`url.path.params.${t}`]=n,e[`url.path.parameter.${t}`]=n,e[`params.${t}`]=n})),e}function cs(t){const e=Kr({...t,instrumentPageLoad:!1,instrumentNavigation:!1}),{history:n,routes:r,matchPath:o,instrumentPageLoad:s=!0,instrumentNavigation:a=!0}=t;return{...e,afterAllSetup(t){e.afterAllSetup(t),ls(t,s,a,n,"reactrouter_v4",r,o)}}}function us(t){const e=Kr({...t,instrumentPageLoad:!1,instrumentNavigation:!1}),{history:n,routes:r,matchPath:o,instrumentPageLoad:s=!0,instrumentNavigation:a=!0}=t;return{...e,afterAllSetup(t){e.afterAllSetup(t),ls(t,s,a,n,"reactrouter_v5",r,o)}}}function ls(t,e,n,r,o,s=[],a){function i(t){if(0===s.length||!a)return[t,"url"];const e=ps(s,t,a);for(const t of e)if(t.match.isExact)return[t.match.path,"route"];return[t,"url"]}if(e){const e=r.location?r.location.pathname:d.location?d.location.pathname:void 0;if(e){const[n,r]=i(e);zr(t,{name:n,attributes:{[q.$J]:"pageload",[q.S3]:`auto.pageload.react.${o}`,[q.Zj]:r}})}}n&&r.listen&&r.listen(((e,n)=>{if(n&&("PUSH"===n||"POP"===n)){const[n,r]=i(e.pathname);Yr(t,{name:n,attributes:{[q.$J]:"navigation",[q.S3]:`auto.navigation.react.${o}`,[q.Zj]:r}})}}))}function ps(t,e,n,r=[]){return t.some((t=>{const o=t.path?n(e,t):r.length?r[r.length-1].match:function(t){return{path:"/",url:"/",params:{},isExact:"/"===t}}(e);return o&&(r.push({route:t,match:o}),t.routes&&ps(t.routes,e,n,r)),!!o})),r}function ds(t){const e=t.displayName||t.name,n=e=>{if(e?.computedMatch?.isExact){const t=e.computedMatch.path,n=function(){const t=(0,U.HN)(),e=t&&(0,U.Gx)(t);if(!e)return;const n=(0,U.XU)(e).op;return"navigation"===n||"pageload"===n?e:void 0}();(0,s.nZ)().setTransactionName(t),n&&(n.updateName(t),n.setAttribute(q.Zj,"route"))}return Ho.createElement(t,{...e})};return n.displayName=`sentryRoute(${e})`,Zo(n,t),n}let fs,hs,ms,gs,_s,ys=!1;const vs=new WeakSet,bs=new Set;function Ss(t,e){return fs&&hs&&ms&&_s?function(n,r){Os(n);const o=t(n,r),s=r?.basename,a=Hs();return"POP"===o.state.historyAction&&a&&Ms(a,o.state.location,n,void 0,s,Array.from(bs)),o.subscribe((t=>{"PUSH"!==t.historyAction&&"POP"!==t.historyAction||("idle"!==t.navigation.state?requestAnimationFrame((()=>{ks({location:t.location,routes:n,navigationType:t.historyAction,version:e,basename:s,allRoutes:Array.from(bs)})})):ks({location:t.location,routes:n,navigationType:t.historyAction,version:e,basename:s,allRoutes:Array.from(bs)}))})),o}:(Yo&&N.fF.warn(`reactRouterV${e}Instrumentation was unable to wrap the \`createRouter\` function because of one or more missing parameters.`),t)}function Es(t,e){return fs&&hs&&ms&&_s?function(n,r){Os(n);const o=t(n,r),s=r?.basename,a=Hs();let i;const c=r?.initialEntries,u=r?.initialIndex,l=c&&1===c.length,p=void 0!==u&&c&&c[u];i=l?c[0]:p?c[u]:void 0;const d=i?"string"==typeof i?{pathname:i}:i:o.state.location;return"POP"===o.state.historyAction&&a&&Ms(a,d,n,void 0,s,Array.from(bs)),o.subscribe((t=>{const r=t.location;"PUSH"!==t.historyAction&&"POP"!==t.historyAction||ks({location:r,routes:n,navigationType:t.historyAction,version:e,basename:s,allRoutes:Array.from(bs)})})),o}:(Yo&&N.fF.warn(`reactRouterV${e}Instrumentation was unable to wrap the \`createMemoryRouter\` function because of one or more missing parameters.`),t)}function xs(t,e){const n=Kr({...t,instrumentPageLoad:!1,instrumentNavigation:!1}),{useEffect:r,useLocation:o,useNavigationType:s,createRoutesFromChildren:a,matchRoutes:i,stripBasename:c,instrumentPageLoad:u=!0,instrumentNavigation:l=!0}=t;return{...n,setup(t){n.setup(t),fs=r,hs=o,ms=s,_s=i,gs=a,ys=c||!1},afterAllSetup(t){n.afterAllSetup(t);const r=d.location?.pathname;u&&r&&zr(t,{name:r,attributes:{[q.Zj]:"url",[q.$J]:"pageload",[q.S3]:`auto.pageload.react.reactrouter_v${e}`}}),l&&vs.add(t)}}}function ws(t,e){if(!(fs&&hs&&ms&&_s))return Yo&&N.fF.warn("reactRouterV6Instrumentation was unable to wrap `useRoutes` because of one or more missing parameters."),t;const n=n=>{const r=Ho.useRef(!0),{routes:o,locationArg:s}=n,a=t(o,s),i=hs(),c=ms(),u="string"==typeof s||s?.pathname?s:i;return fs((()=>{const t="string"==typeof u?{pathname:u}:u;r.current?(Os(o),Ms(Hs(),t,o,void 0,void 0,Array.from(bs)),r.current=!1):ks({location:t,routes:o,navigationType:c,version:e,allRoutes:Array.from(bs)})}),[c,u]),a};return(t,e)=>Ho.createElement(n,{routes:t,locationArg:e})}function ks(t){const{location:e,routes:n,navigationType:r,version:o,matches:a,basename:i,allRoutes:c}=t,u=Array.isArray(a)?a:_s(n,e,i),l=(0,s.s3)();if(l&&vs.has(l)&&("PUSH"===r||"POP"===r)&&u){let t,r="url";const s=Ps(e,c||n);s&&(t=Ns(js(c||n,e)),r="route"),s&&t||([t,r]=Ls(n,e,u,i));const a=(0,U.HN)();a&&"navigation"===(0,U.XU)(a).op?(a?.updateName(t),a?.setAttribute(q.Zj,r)):Yr(l,{name:t,attributes:{[q.Zj]:r,[q.$J]:"navigation",[q.S3]:`auto.navigation.react.reactrouter_v${o}`}})}}function Ts(t,e){if(!e||"/"===e)return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return t;const n=e.endsWith("/")?e.length-1:e.length,r=t.charAt(n);return r&&"/"!==r?t:t.slice(n)||"/"}function Is(t,e,n){const r=t||ys?Ts(e,n):e;return["/"===r[r.length-1]||"/*"===r.slice(-2)?r.slice(0,-1):r,"route"]}function $s(t){return t.endsWith("*")}function Rs(t,e){return $s(t)&&!!e.route.children?.length||!1}function Ps(t,e){const n=_s(e,t);if(n)for(const t of n)if(!(r=t.route).children&&r.element&&r.path?.endsWith("/*")&&Ds(t))return!0;var r;return!1}function Os(t){t.forEach((t=>{Cs(t).forEach((t=>{bs.add(t)}))}))}function Cs(t,e=new Set){return e.has(t)||(e.add(t),t.children&&!t.index&&t.children.forEach((t=>{Cs(t,e).forEach((t=>{e.add(t)}))}))),e}function As(t){return"*"===(e=t.route.path||"")[e.length-1]?e.slice(0,-1):e;var e}function Ds(t){return t.params["*"]||""}function Fs(t){return"/"===t[t.length-1]?t.slice(0,-1):t}function Ns(t){return"/"===t[0]?t:`/${t}`}function js(t,e){const n=_s(t,e);if(!n||0===n.length)return"";for(const r of n)if(r.route.path&&"*"!==r.route.path){const n=As(r),o=Ts(e.pathname,Ns(r.pathnameBase));return e.pathname===o?Fs(o):Fs(Fs(n||"")+Ns(js(t.filter((t=>t!==r.route)),{pathname:o})))}return""}function Ls(t,e,n,r=""){if(!t||0===t.length)return[ys?Ts(e.pathname,r):e.pathname,"url"];let o="";if(n)for(const t of n){const n=t.route;if(n){if(n.index)return Is(o,t.pathname,r);const s=n.path;if(s&&!Rs(s,t)){const n="/"===s[0]||"/"===o[o.length-1]?s:`/${s}`;if(o=Fs(o)+Ns(n),Fs(e.pathname)===Fs(r+t.pathname))return qs(o)===qs(t.pathname)||$s(o)?(Rs(o,t)&&(o=o.slice(0,-1)),[(ys?"":r)+o,"route"]):[(ys?"":r)+n,"route"]}}}return[ys?Ts(e.pathname,r):e.pathname||"/","url"]}function Ms(t,e,n,r,o,a){const i=Array.isArray(r)?r:_s(a||n,e,o);if(i){let r,c="url";const u=Ps(e,a||n);u&&(r=Ns(js(a||n,e)),c="route"),u&&r||([r,c]=Ls(n,e,i,o)),(0,s.nZ)().setTransactionName(r||"/"),t&&(t.updateName(r),t.setAttribute(q.Zj,c))}}function Us(t,e){if(!(fs&&hs&&ms&&gs&&_s))return Yo&&N.fF.warn(`reactRouterV6Instrumentation was unable to wrap Routes because of one or more missing parameters.\n useEffect: ${fs}. useLocation: ${hs}. useNavigationType: ${ms}.\n createRoutesFromChildren: ${gs}. matchRoutes: ${_s}.`),t;const n=n=>{const r=Ho.useRef(!0),o=hs(),s=ms();return fs((()=>{const t=gs(n.children);r.current?(Os(t),Ms(Hs(),o,t,void 0,void 0,Array.from(bs)),r.current=!1):ks({location:o,routes:t,navigationType:s,version:e,allRoutes:Array.from(bs)})}),[o,s]),Ho.createElement(t,{...n})};return Zo(n,t),n}function Hs(){const t=(0,U.HN)(),e=t?(0,U.Gx)(t):void 0;if(!e)return;const n=(0,U.XU)(e).op;return"navigation"===n||"pageload"===n?e:void 0}function qs(t){return t.split(/\\?\//).filter((t=>t.length>0&&","!==t)).length}function Xs(t){return xs(t,"6")}function Js(t){return ws(t,"6")}function Ws(t){return Ss(t,"6")}function Bs(t){return Es(t,"6")}function Gs(t){return Us(t,"6")}function Zs(t){return xs(t,"7")}function Vs(t){return Us(t,"7")}function Ks(t){return Ss(t,"7")}function zs(t){return Es(t,"7")}function Ys(t){return ws(t,"7")}}}]);