/*! @sentry/browser (Performance Monitoring) 8.48.0 (405ceb4) | https://github.com/getsentry/sentry-javascript */ var Sentry=function(t){t=window.Sentry||{};const n="8.48.0",e=globalThis;function r(t,r,o){const i=e,s=i.__SENTRY__=i.__SENTRY__||{},c=s[n]=s[n]||{};return c[t]||(c[t]=r())}const o=["debug","info","warn","error","log","assert","trace"],i={};function s(t){if(!("console"in e))return t();const n=e.console,r={},o=Object.keys(i);o.forEach((t=>{const e=i[t];r[t]=n[t],n[t]=e}));try{return t()}finally{o.forEach((t=>{n[t]=r[t]}))}}const c=r("logger",(function(){let t=!1;const n={enable:()=>{t=!0},disable:()=>{t=!1},isEnabled:()=>t};return o.forEach((t=>{n[t]=()=>{}})),n})),u=50,a="?",f=/\(error: (.*)\)/,d=/captureMessage|captureException/;function l(...t){const n=t.sort(((t,n)=>t[0]-n[0])).map((t=>t[1]));return(t,e=0,r=0)=>{const o=[],i=t.split("\n");for(let t=e;t1024)continue;const s=f.test(e)?e.replace(f,"$1"):e;if(!s.match(/\S*Error: /)){for(const t of n){const n=t(s);if(n){o.push(n);break}}if(o.length>=u+r)break}}return function(t){if(!t.length)return[];const n=Array.from(t);/sentryWrapped/.test(h(n).function||"")&&n.pop();n.reverse(),d.test(h(n).function||"")&&(n.pop(),d.test(h(n).function||"")&&n.pop());return n.slice(0,u).map((t=>({...t,filename:t.filename||h(n).filename,function:t.function||a})))}(o.slice(r))}}function h(t){return t[t.length-1]||{}}const p="";function m(t){try{return t&&"function"==typeof t&&t.name||p}catch(t){return p}}function g(t){const n=t.exception;if(n){const t=[];try{return n.values.forEach((n=>{n.stacktrace.frames&&t.push(...n.stacktrace.frames)})),t}catch(t){return}}}const y={},v={};function b(t,n){y[t]=y[t]||[],y[t].push(n)}function _(t,n){if(!v[t]){v[t]=!0;try{n()}catch(t){}}}function w(t,n){const e=t&&y[t];if(e)for(const t of e)try{t(n)}catch(t){}}let S=null;function E(t){const n="error";b(n,t),_(n,T)}function T(){S=e.onerror,e.onerror=function(t,n,e,r,o){return w("error",{column:r,error:o,line:e,msg:t,url:n}),!!S&&S.apply(this,arguments)},e.onerror.__SENTRY_INSTRUMENTED__=!0}let $=null;function k(t){const n="unhandledrejection";b(n,t),_(n,I)}function I(){$=e.onunhandledrejection,e.onunhandledrejection=function(t){return w("unhandledrejection",t),!$||$.apply(this,arguments)},e.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function x(){return j(e),e}function j(t){const e=t.__SENTRY__=t.__SENTRY__||{};return e.version=e.version||n,e[n]=e[n]||{}}const C=Object.prototype.toString;function O(t){switch(C.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return U(t,Error)}}function R(t,n){return C.call(t)===`[object ${n}]`}function M(t){return R(t,"ErrorEvent")}function A(t){return R(t,"DOMError")}function P(t){return R(t,"String")}function L(t){return"object"==typeof t&&null!==t&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function N(t){return null===t||L(t)||"object"!=typeof t&&"function"!=typeof t}function D(t){return R(t,"Object")}function F(t){return"undefined"!=typeof Event&&U(t,Event)}function q(t){return Boolean(t&&t.then&&"function"==typeof t.then)}function U(t,n){try{return t instanceof n}catch(t){return!1}}function H(t){return!("object"!=typeof t||null===t||!t.__isVue&&!t.t)}const B=e,z=80;function W(t,n={}){if(!t)return"";try{let e=t;const r=5,o=[];let i=0,s=0;const c=" > ",u=c.length;let a;const f=Array.isArray(n)?n:n.keyAttrs,d=!Array.isArray(n)&&n.maxStringLength||z;for(;e&&i++1&&s+o.length*u+a.length>=d));)o.push(a),s+=a.length,e=e.parentNode;return o.reverse().join(c)}catch(t){return""}}function X(t,n){const e=t,r=[];if(!e||!e.tagName)return"";if(B.HTMLElement&&e instanceof HTMLElement&&e.dataset){if(e.dataset.sentryComponent)return e.dataset.sentryComponent;if(e.dataset.sentryElement)return e.dataset.sentryElement}r.push(e.tagName.toLowerCase());const o=n&&n.length?n.filter((t=>e.getAttribute(t))).map((t=>[t,e.getAttribute(t)])):null;if(o&&o.length)o.forEach((t=>{r.push(`[${t[0]}="${t[1]}"]`)}));else{e.id&&r.push(`#${e.id}`);const t=e.className;if(t&&P(t)){const n=t.split(/\s+/);for(const t of n)r.push(`.${t}`)}}const i=["aria-label","type","name","title","alt"];for(const t of i){const n=e.getAttribute(t);n&&r.push(`[${t}="${n}"]`)}return r.join("")}function G(t){if(!B.HTMLElement)return null;let n=t;for(let t=0;t<5;t++){if(!n)return null;if(n instanceof HTMLElement){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}n=n.parentNode}return null}function J(t,n=0){return"string"!=typeof t||0===n||t.length<=n?t:`${t.slice(0,n)}...`}function K(t,n){if(!Array.isArray(t))return"";const e=[];for(let n=0;nY(t,n,e)))}function Q(t,n,e){if(!(n in t))return;const r=t[n],o=e(r);"function"==typeof o&&tt(o,r);try{t[n]=o}catch(t){}}function Z(t,n,e){try{Object.defineProperty(t,n,{value:e,writable:!0,configurable:!0})}catch(t){}}function tt(t,n){try{const e=n.prototype||{};t.prototype=n.prototype=e,Z(t,"__sentry_original__",n)}catch(t){}}function nt(t){return t.__sentry_original__}function et(t){if(O(t))return{message:t.message,name:t.name,stack:t.stack,...ot(t)};if(F(t)){const n={type:t.type,target:rt(t.target),currentTarget:rt(t.currentTarget),...ot(t)};return"undefined"!=typeof CustomEvent&&U(t,CustomEvent)&&(n.detail=t.detail),n}return t}function rt(t){try{return n=t,"undefined"!=typeof Element&&U(n,Element)?W(t):Object.prototype.toString.call(t)}catch(t){return""}var n}function ot(t){if("object"==typeof t&&null!==t){const n={};for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e]);return n}return{}}function it(t){return st(t,new Map)}function st(t,n){if(function(t){if(!D(t))return!1;try{const n=Object.getPrototypeOf(t).constructor.name;return!n||"Object"===n}catch(t){return!0}}(t)){const e=n.get(t);if(void 0!==e)return e;const r={};n.set(t,r);for(const e of Object.getOwnPropertyNames(t))void 0!==t[e]&&(r[e]=st(t[e],n));return r}if(Array.isArray(t)){const e=n.get(t);if(void 0!==e)return e;const r=[];return n.set(t,r),t.forEach((t=>{r.push(st(t,n))})),r}return t}const ct=1e3;function ut(){return Date.now()/ct}const at=function(){const{performance:t}=e;if(!t||!t.now)return ut;const n=Date.now()-t.now(),r=null==t.timeOrigin?n:t.timeOrigin;return()=>(r+t.now())/ct}(),ft=(()=>{const{performance:t}=e;if(!t||!t.now)return;const n=36e5,r=t.now(),o=Date.now(),i=t.timeOrigin?Math.abs(t.timeOrigin+r-o):n,s=i16*Math.random();try{if(n&&n.randomUUID)return n.randomUUID().replace(/-/g,"");n&&n.getRandomValues&&(r=()=>{const t=new Uint8Array(1);return n.getRandomValues(t),t[0]})}catch(t){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(t=>(t^(15&r())>>t/4).toString(16)))}function lt(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0}function ht(t){const{message:n,event_id:e}=t;if(n)return n;const r=lt(t);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||e||"":e||""}function pt(t,n,e){const r=t.exception=t.exception||{},o=r.values=r.values||[],i=o[0]=o[0]||{};i.value||(i.value=n||""),i.type||(i.type="Error")}function mt(t,n){const e=lt(t);if(!e)return;const r=e.mechanism;if(e.mechanism={type:"generic",handled:!0,...r,...n},n&&"data"in n){const t={...r&&r.data,...n.data};e.mechanism.data=t}}function gt(t){if(function(t){try{return t.__sentry_captured__}catch(t){}}(t))return!0;try{Z(t,"__sentry_captured__",!0)}catch(t){}return!1}var yt;function vt(t){return new _t((n=>{n(t)}))}function bt(t){return new _t(((n,e)=>{e(t)}))}!function(t){t[t.PENDING=0]="PENDING";t[t.RESOLVED=1]="RESOLVED";t[t.REJECTED=2]="REJECTED"}(yt||(yt={}));class _t{constructor(t){_t.prototype.__init.call(this),_t.prototype.__init2.call(this),_t.prototype.__init3.call(this),_t.prototype.__init4.call(this),this.o=yt.PENDING,this.i=[];try{t(this.u,this.l)}catch(t){this.l(t)}}then(t,n){return new _t(((e,r)=>{this.i.push([!1,n=>{if(t)try{e(t(n))}catch(t){r(t)}else e(n)},t=>{if(n)try{e(n(t))}catch(t){r(t)}else r(t)}]),this.h()}))}catch(t){return this.then((t=>t),t)}finally(t){return new _t(((n,e)=>{let r,o;return this.then((n=>{o=!1,r=n,t&&t()}),(n=>{o=!0,r=n,t&&t()})).then((()=>{o?e(r):n(r)}))}))}__init(){this.u=t=>{this.p(yt.RESOLVED,t)}}__init2(){this.l=t=>{this.p(yt.REJECTED,t)}}__init3(){this.p=(t,n)=>{this.o===yt.PENDING&&(q(n)?n.then(this.u,this.l):(this.o=t,this.m=n,this.h()))}}__init4(){this.h=()=>{if(this.o===yt.PENDING)return;const t=this.i.slice();this.i=[],t.forEach((t=>{t[0]||(this.o===yt.RESOLVED&&t[1](this.m),this.o===yt.REJECTED&&t[2](this.m),t[0]=!0)}))}}}function wt(t){const n=at(),e={sid:dt(),init:!0,timestamp:n,started:n,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(t){return it({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}})}(e)};return t&&St(e,t),e}function St(t,n={}){if(n.user&&(!t.ipAddress&&n.user.ip_address&&(t.ipAddress=n.user.ip_address),t.did||n.did||(t.did=n.user.id||n.user.email||n.user.username)),t.timestamp=n.timestamp||at(),n.abnormal_mechanism&&(t.abnormal_mechanism=n.abnormal_mechanism),n.ignoreDuration&&(t.ignoreDuration=n.ignoreDuration),n.sid&&(t.sid=32===n.sid.length?n.sid:dt()),void 0!==n.init&&(t.init=n.init),!t.did&&n.did&&(t.did=`${n.did}`),"number"==typeof n.started&&(t.started=n.started),t.ignoreDuration)t.duration=void 0;else if("number"==typeof n.duration)t.duration=n.duration;else{const n=t.timestamp-t.started;t.duration=n>=0?n:0}n.release&&(t.release=n.release),n.environment&&(t.environment=n.environment),!t.ipAddress&&n.ipAddress&&(t.ipAddress=n.ipAddress),!t.userAgent&&n.userAgent&&(t.userAgent=n.userAgent),"number"==typeof n.errors&&(t.errors=n.errors),n.status&&(t.status=n.status)}function Et(){return dt()}function Tt(){return dt().substring(16)}function $t(t,n,e=2){if(!n||"object"!=typeof n||e<=0)return n;if(t&&n&&0===Object.keys(n).length)return t;const r={...t};for(const t in n)Object.prototype.hasOwnProperty.call(n,t)&&(r[t]=$t(r[t],n[t],e-1));return r}const kt="_sentrySpan";function It(t,n){n?Z(t,kt,n):delete t[kt]}function xt(t){return t[kt]}class jt{constructor(){this.v=!1,this._=[],this.S=[],this.T=[],this.k=[],this.I={},this.j={},this.C={},this.O={},this.R={},this.M={traceId:Et(),spanId:Tt()}}clone(){const t=new jt;return t.T=[...this.T],t.j={...this.j},t.C={...this.C},t.O={...this.O},this.O.flags&&(t.O.flags={values:[...this.O.flags.values]}),t.I=this.I,t.A=this.A,t.P=this.P,t.L=this.L,t.N=this.N,t.S=[...this.S],t.D=this.D,t.k=[...this.k],t.R={...this.R},t.M={...this.M},t.F=this.F,t.q=this.q,It(t,xt(this)),t}setClient(t){this.F=t}setLastEventId(t){this.q=t}getClient(){return this.F}lastEventId(){return this.q}addScopeListener(t){this._.push(t)}addEventProcessor(t){return this.S.push(t),this}setUser(t){return this.I=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this.P&&St(this.P,{user:t}),this.U(),this}getUser(){return this.I}getRequestSession(){return this.D}setRequestSession(t){return this.D=t,this}setTags(t){return this.j={...this.j,...t},this.U(),this}setTag(t,n){return this.j={...this.j,[t]:n},this.U(),this}setExtras(t){return this.C={...this.C,...t},this.U(),this}setExtra(t,n){return this.C={...this.C,[t]:n},this.U(),this}setFingerprint(t){return this.N=t,this.U(),this}setLevel(t){return this.A=t,this.U(),this}setTransactionName(t){return this.L=t,this.U(),this}setContext(t,n){return null===n?delete this.O[t]:this.O[t]=n,this.U(),this}setSession(t){return t?this.P=t:delete this.P,this.U(),this}getSession(){return this.P}update(t){if(!t)return this;const n="function"==typeof t?t(this):t,[e,r]=n instanceof Ct?[n.getScopeData(),n.getRequestSession()]:D(n)?[t,t.requestSession]:[],{tags:o,extra:i,user:s,contexts:c,level:u,fingerprint:a=[],propagationContext:f}=e||{};return this.j={...this.j,...o},this.C={...this.C,...i},this.O={...this.O,...c},s&&Object.keys(s).length&&(this.I=s),u&&(this.A=u),a.length&&(this.N=a),f&&(this.M=f),r&&(this.D=r),this}clear(){return this.T=[],this.j={},this.C={},this.I={},this.O={},this.A=void 0,this.L=void 0,this.N=void 0,this.D=void 0,this.P=void 0,It(this,void 0),this.k=[],this.setPropagationContext({traceId:Et()}),this.U(),this}addBreadcrumb(t,n){const e="number"==typeof n?n:100;if(e<=0)return this;const r={timestamp:ut(),...t},o=this.T;return o.push(r),this.T=o.length>e?o.slice(-e):o,this.U(),this}getLastBreadcrumb(){return this.T[this.T.length-1]}clearBreadcrumbs(){return this.T=[],this.U(),this}addAttachment(t){return this.k.push(t),this}clearAttachments(){return this.k=[],this}getScopeData(){return{breadcrumbs:this.T,attachments:this.k,contexts:this.O,tags:this.j,extra:this.C,user:this.I,level:this.A,fingerprint:this.N||[],eventProcessors:this.S,propagationContext:this.M,sdkProcessingMetadata:this.R,transactionName:this.L,span:xt(this)}}setSDKProcessingMetadata(t){return this.R=$t(this.R,t,2),this}setPropagationContext(t){return this.M={spanId:Tt(),...t},this}getPropagationContext(){return this.M}captureException(t,n){const e=n&&n.event_id?n.event_id:dt();if(!this.F)return c.warn("No client configured on scope - will not capture exception!"),e;const r=new Error("Sentry syntheticException");return this.F.captureException(t,{originalException:t,syntheticException:r,...n,event_id:e},this),e}captureMessage(t,n,e){const r=e&&e.event_id?e.event_id:dt();if(!this.F)return c.warn("No client configured on scope - will not capture message!"),r;const o=new Error(t);return this.F.captureMessage(t,n,{originalException:t,syntheticException:o,...e,event_id:r},this),r}captureEvent(t,n){const e=n&&n.event_id?n.event_id:dt();return this.F?(this.F.captureEvent(t,{...n,event_id:e},this),e):(c.warn("No client configured on scope - will not capture event!"),e)}U(){this.v||(this.v=!0,this._.forEach((t=>{t(this)})),this.v=!1)}}const Ct=jt;class Ot{constructor(t,n){let e,r;e=t||new Ct,r=n||new Ct,this.H=[{scope:e}],this.B=r}withScope(t){const n=this.W();let e;try{e=t(n)}catch(t){throw this.X(),t}return q(e)?e.then((t=>(this.X(),t)),(t=>{throw this.X(),t})):(this.X(),e)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this.B}getStackTop(){return this.H[this.H.length-1]}W(){const t=this.getScope().clone();return this.H.push({client:this.getClient(),scope:t}),t}X(){return!(this.H.length<=1)&&!!this.H.pop()}}function Rt(){const t=j(x());return t.stack=t.stack||new Ot(r("defaultCurrentScope",(()=>new Ct)),r("defaultIsolationScope",(()=>new Ct)))}function Mt(t){return Rt().withScope(t)}function At(t,n){const e=Rt();return e.withScope((()=>(e.getStackTop().scope=t,n(t))))}function Pt(t){return Rt().withScope((()=>t(Rt().getIsolationScope())))}function Lt(t){const n=j(t);return n.acs?n.acs:{withIsolationScope:Pt,withScope:Mt,withSetScope:At,withSetIsolationScope:(t,n)=>Pt(n),getCurrentScope:()=>Rt().getScope(),getIsolationScope:()=>Rt().getIsolationScope()}}function Nt(){return Lt(x()).getCurrentScope()}function Dt(){return Lt(x()).getIsolationScope()}function Ft(){return r("globalScope",(()=>new Ct))}function qt(...t){const n=Lt(x());if(2===t.length){const[e,r]=t;return e?n.withSetScope(e,r):n.withScope(r)}return n.withScope(t[0])}function Ut(){return Nt().getClient()}function Ht(t){const n=t.getPropagationContext(),{traceId:e,spanId:r,parentSpanId:o}=n;return it({trace_id:e,span_id:r,parent_span_id:o})}const Bt="_sentryMetrics";function zt(t){const n=t[Bt];if(!n)return;const e={};for(const[,[t,r]]of n){(e[t]||(e[t]=[])).push(it(r))}return e}const Wt="sentry.source",Xt="sentry.sample_rate",Gt="sentry.op",Jt="sentry.origin",Kt="sentry.idle_span_finish_reason",Yt="sentry.measurement_unit",Vt="sentry.measurement_value",Qt="sentry.custom_span_name",Zt="sentry.exclusive_time",tn=0,nn=1,en=2;function rn(t,n){t.setAttribute("http.response.status_code",n);const e=function(t){if(t<400&&t>=100)return{code:nn};if(t>=400&&t<500)switch(t){case 401:return{code:en,message:"unauthenticated"};case 403:return{code:en,message:"permission_denied"};case 404:return{code:en,message:"not_found"};case 409:return{code:en,message:"already_exists"};case 413:return{code:en,message:"failed_precondition"};case 429:return{code:en,message:"resource_exhausted"};case 499:return{code:en,message:"cancelled"};default:return{code:en,message:"invalid_argument"}}if(t>=500&&t<600)switch(t){case 501:return{code:en,message:"unimplemented"};case 503:return{code:en,message:"unavailable"};case 504:return{code:en,message:"deadline_exceeded"};default:return{code:en,message:"internal_error"}}return{code:en,message:"unknown_error"}}(n);"unknown_error"!==e.message&&t.setStatus(e)}const on="sentry-",sn=/^sentry-/,cn=8192;function un(t){const n=function(t){if(!t||!P(t)&&!Array.isArray(t))return;if(Array.isArray(t))return t.reduce(((t,n)=>{const e=fn(n);return Object.entries(e).forEach((([n,e])=>{t[n]=e})),t}),{});return fn(t)}(t);if(!n)return;const e=Object.entries(n).reduce(((t,[n,e])=>{if(n.match(sn)){t[n.slice(on.length)]=e}return t}),{});return Object.keys(e).length>0?e:void 0}function an(t){if(!t)return;return function(t){if(0===Object.keys(t).length)return;return Object.entries(t).reduce(((t,[n,e],r)=>{const o=`${encodeURIComponent(n)}=${encodeURIComponent(e)}`,i=0===r?o:`${t},${o}`;return i.length>cn?t:i}),"")}(Object.entries(t).reduce(((t,[n,e])=>(e&&(t[`${on}${n}`]=e),t)),{}))}function fn(t){return t.split(",").map((t=>t.split("=").map((t=>decodeURIComponent(t.trim()))))).reduce(((t,[n,e])=>(n&&e&&(t[n]=e),t)),{})}const dn=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function ln(t,n){const e=function(t){if(!t)return;const n=t.match(dn);if(!n)return;let e;return"1"===n[3]?e=!0:"0"===n[3]&&(e=!1),{traceId:n[1],parentSampled:e,parentSpanId:n[2]}}(t),r=un(n);if(!e||!e.traceId)return{traceId:Et(),spanId:Tt()};const{traceId:o,parentSpanId:i,parentSampled:s}=e;return{traceId:o,parentSpanId:i,spanId:Tt(),sampled:s,dsc:r||{}}}function hn(t=Et(),n=Tt(),e){let r="";return void 0!==e&&(r=e?"-1":"-0"),`${t}-${n}${r}`}const pn=1;let mn=!1;function gn(t){const{spanId:n,traceId:e}=t.spanContext(),{data:r,op:o,parent_span_id:i,status:s,origin:c}=wn(t);return it({parent_span_id:i,span_id:n,trace_id:e,data:r,op:o,status:s,origin:c})}function yn(t){const{spanId:n,traceId:e,isRemote:r}=t.spanContext();return it({parent_span_id:r?n:wn(t).parent_span_id,span_id:r?Tt():n,trace_id:e})}function vn(t){const{traceId:n,spanId:e}=t.spanContext();return hn(n,e,Sn(t))}function bn(t){return"number"==typeof t?_n(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?_n(t.getTime()):at()}function _n(t){return t>9999999999?t/1e3:t}function wn(t){if(function(t){return"function"==typeof t.getSpanJSON}(t))return t.getSpanJSON();try{const{spanId:n,traceId:e}=t.spanContext();if(function(t){const n=t;return!!(n.attributes&&n.startTime&&n.name&&n.endTime&&n.status)}(t)){const{attributes:r,startTime:o,name:i,endTime:s,parentSpanId:c,status:u}=t;return it({span_id:n,trace_id:e,data:r,description:i,parent_span_id:c,start_timestamp:bn(o),timestamp:bn(s)||void 0,status:En(u),op:r[Gt],origin:r[Jt],_metrics_summary:zt(t)})}return{span_id:n,trace_id:e}}catch(t){return{}}}function Sn(t){const{traceFlags:n}=t.spanContext();return n===pn}function En(t){if(t&&t.code!==tn)return t.code===nn?"ok":t.message||"unknown_error"}const Tn="_sentryChildSpans",$n="_sentryRootSpan";function kn(t,n){const e=t[$n]||t;Z(n,$n,e),t[Tn]?t[Tn].add(n):Z(t,Tn,new Set([n]))}function In(t){const n=new Set;return function t(e){if(!n.has(e)&&Sn(e)){n.add(e);const r=e[Tn]?Array.from(e[Tn]):[];for(const n of r)t(n)}}(t),Array.from(n)}function xn(t){return t[$n]||t}function jn(){const t=Lt(x());return t.getActiveSpan?t.getActiveSpan():xt(Nt())}function Cn(t,n,e,r,o,i){const s=jn();s&&function(t,n,e,r,o,i,s){const c=t[Bt]||(t[Bt]=new Map),u=`${n}:${e}@${o}`,a=c.get(s);if(a){const[,t]=a;c.set(s,[u,{min:Math.min(t.min,r),max:Math.max(t.max,r),count:t.count+=1,sum:t.sum+=r,tags:t.tags}])}else c.set(s,[u,{min:r,max:r,count:1,sum:r,tags:i}])}(s,t,n,e,r,o,i)}function On(){mn||(s((()=>{console.warn("[Sentry] Deprecation warning: Returning null from `beforeSendSpan` will be disallowed from SDK version 9.0.0 onwards. The callback will only support mutating spans. To drop certain spans, configure the respective integrations directly.")})),mn=!0)}let Rn=!1;function Mn(){Rn||(Rn=!0,E(An),k(An))}function An(){const t=jn(),n=t&&xn(t);if(n){const t="internal_error";n.setStatus({code:en,message:t})}}An.tag="sentry_tracingErrorCallback";const Pn="_sentryScope",Ln="_sentryIsolationScope";function Nn(t){return{scope:t[Pn],isolationScope:t[Ln]}}function Dn(t){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const n=Ut(),e=t||n&&n.getOptions();return!!e&&(e.enableTracing||"tracesSampleRate"in e||"tracesSampler"in e)}class Fn{constructor(t={}){this.G=t.traceId||Et(),this.J=t.spanId||Tt()}spanContext(){return{spanId:this.J,traceId:this.G,traceFlags:0}}end(t){}setAttribute(t,n){return this}setAttributes(t){return this}setStatus(t){return this}updateName(t){return this}isRecording(){return!1}addEvent(t,n,e){return this}addLink(t){return this}addLinks(t){return this}recordException(t,n){}}function qn(t,n,e=(()=>{})){let r;try{r=t()}catch(t){throw n(t),e(),t}return function(t,n,e){if(q(t))return t.then((t=>(e(),t)),(t=>{throw n(t),e(),t}));return e(),t}(r,n,e)}const Un="production",Hn="_frozenDsc";function Bn(t,n){Z(t,Hn,n)}function zn(t,n){const e=n.getOptions(),{publicKey:r}=n.getDsn()||{},o=it({environment:e.environment||Un,release:e.release,public_key:r,trace_id:t});return n.emit("createDsc",o),o}function Wn(t,n){const e=n.getPropagationContext();return e.dsc||zn(e.traceId,t)}function Xn(t){const n=Ut();if(!n)return{};const e=xn(t),r=e[Hn];if(r)return r;const o=e.spanContext().traceState,i=o&&o.get("sentry.dsc"),s=i&&un(i);if(s)return s;const c=zn(t.spanContext().traceId,n),u=wn(e),a=u.data||{},f=a[Xt];null!=f&&(c.sample_rate=`${f}`);const d=a[Wt],l=u.description;return"url"!==d&&l&&(c.transaction=l),Dn()&&(c.sampled=String(Sn(e))),n.emit("createDsc",c,e),c}function Gn(t){if("boolean"==typeof t)return Number(t);const n="string"==typeof t?parseFloat(t):t;return"number"!=typeof n||isNaN(n)||n<0||n>1?void 0:n}const Jn=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Kn(t,n=!1){const{host:e,path:r,pass:o,port:i,projectId:s,protocol:c,publicKey:u}=t;return`${c}://${u}${n&&o?`:${o}`:""}@${e}${i?`:${i}`:""}/${r?`${r}/`:r}${s}`}function Yn(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function Vn(t){const n="string"==typeof t?function(t){const n=Jn.exec(t);if(!n)return void s((()=>{console.error(`Invalid Sentry Dsn: ${t}`)}));const[e,r,o="",i="",c="",u=""]=n.slice(1);let a="",f=u;const d=f.split("/");if(d.length>1&&(a=d.slice(0,-1).join("/"),f=d.pop()),f){const t=f.match(/^\d+/);t&&(f=t[0])}return Yn({host:i,pass:o,path:a,projectId:f,port:c,protocol:e,publicKey:r})}(t):Yn(t);if(n)return n}function Qn(t,n=100,e=1/0){try{return te("",t,n,e)}catch(t){return{ERROR:`**non-serializable** (${t})`}}}function Zn(t,n=3,e=102400){const r=Qn(t,n);return o=r,function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(o))>e?Zn(t,n-1,e):r;var o}function te(t,n,e=1/0,r=1/0,o=function(){const t="function"==typeof WeakSet,n=t?new WeakSet:[];return[function(e){if(t)return!!n.has(e)||(n.add(e),!1);for(let t=0;t=r){f[t]="[MaxProperties ~]";break}const n=l[t];f[t]=te(t,n,u-1,r,o),d++}return s(n),f}function ne(t,n=[]){return[t,n]}function ee(t,n){const[e,r]=t;return[e,[...r,n]]}function re(t,n){const e=t[1];for(const t of e){if(n(t,t[0].type))return!0}return!1}function oe(t){return e.__SENTRY__&&e.__SENTRY__.encodePolyfill?e.__SENTRY__.encodePolyfill(t):(new TextEncoder).encode(t)}function ie(t){const[n,e]=t;let r=JSON.stringify(n);function o(t){"string"==typeof r?r="string"==typeof t?r+t:[oe(r),t]:r.push("string"==typeof t?oe(t):t)}for(const t of e){const[n,e]=t;if(o(`\n${JSON.stringify(n)}\n`),"string"==typeof e||e instanceof Uint8Array)o(e);else{let t;try{t=JSON.stringify(e)}catch(n){t=JSON.stringify(Qn(e))}o(t)}}return"string"==typeof r?r:function(t){const n=t.reduce(((t,n)=>t+n.length),0),e=new Uint8Array(n);let r=0;for(const n of t)e.set(n,r),r+=n.length;return e}(r)}function se(t){return[{type:"span"},t]}function ce(t){const n="string"==typeof t.data?oe(t.data):t.data;return[it({type:"attachment",length:n.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType}),n]}const ue={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket",raw_security:"security"};function ae(t){return ue[t]}function fe(t){if(!t||!t.sdk)return;const{name:n,version:e}=t.sdk;return{name:n,version:e}}function de(t,n,e,r){const o=fe(e),i=t.type&&"replay_event"!==t.type?t.type:"event";!function(t,n){n&&(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||n.name,t.sdk.version=t.sdk.version||n.version,t.sdk.integrations=[...t.sdk.integrations||[],...n.integrations||[]],t.sdk.packages=[...t.sdk.packages||[],...n.packages||[]])}(t,e&&e.sdk);const s=function(t,n,e,r){const o=t.sdkProcessingMetadata&&t.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:t.event_id,sent_at:(new Date).toISOString(),...n&&{sdk:n},...!!e&&r&&{dsn:Kn(r)},...o&&{trace:it({...o})}}}(t,o,r,n);delete t.sdkProcessingMetadata;return ne(s,[[{type:i},t]])}function le(t,n,e,r=jn()){const o=r&&xn(r);o&&o.addEvent(t,{[Vt]:n,[Yt]:e})}function he(t){if(!t||0===t.length)return;const n={};return t.forEach((t=>{const e=t.attributes||{},r=e[Yt],o=e[Vt];"string"==typeof r&&"number"==typeof o&&(n[t.name]={value:o,unit:r})})),n}class pe{constructor(t={}){this.G=t.traceId||Et(),this.J=t.spanId||Tt(),this.Y=t.startTimestamp||at(),this.V={},this.setAttributes({[Jt]:"manual",[Gt]:t.op,...t.attributes}),this.Z=t.name,t.parentSpanId&&(this.tt=t.parentSpanId),"sampled"in t&&(this.nt=t.sampled),t.endTimestamp&&(this.et=t.endTimestamp),this.K=[],this.rt=t.isStandalone,this.et&&this.ot()}addLink(t){return this}addLinks(t){return this}recordException(t,n){}spanContext(){const{J:t,G:n,nt:e}=this;return{spanId:t,traceId:n,traceFlags:e?pn:0}}setAttribute(t,n){return void 0===n?delete this.V[t]:this.V[t]=n,this}setAttributes(t){return Object.keys(t).forEach((n=>this.setAttribute(n,t[n]))),this}updateStartTime(t){this.Y=bn(t)}setStatus(t){return this.it=t,this}updateName(t){return this.Z=t,this.setAttribute(Wt,"custom"),this}end(t){this.et||(this.et=bn(t),this.ot())}getSpanJSON(){return it({data:this.V,description:this.Z,op:this.V[Gt],parent_span_id:this.tt,span_id:this.J,start_timestamp:this.Y,status:En(this.it),timestamp:this.et,trace_id:this.G,origin:this.V[Jt],_metrics_summary:zt(this),profile_id:this.V["sentry.profile_id"],exclusive_time:this.V[Zt],measurements:he(this.K),is_segment:this.rt&&xn(this)===this||void 0,segment_id:this.rt?xn(this).spanContext().spanId:void 0})}isRecording(){return!this.et&&!!this.nt}addEvent(t,n,e){const r=me(n)?n:e||at(),o=me(n)?{}:n||{},i={name:t,time:bn(r),attributes:o};return this.K.push(i),this}isStandaloneSpan(){return!!this.rt}ot(){const t=Ut();t&&t.emit("spanEnd",this);if(!(this.rt||this===xn(this)))return;if(this.rt)return void(this.nt?function(t){const n=Ut();if(!n)return;const e=t[1];if(!e||0===e.length)return void n.recordDroppedEvent("before_send","span");n.sendEnvelope(t)}(function(t,n){const e=Xn(t[0]),r=n&&n.getDsn(),o=n&&n.getOptions().tunnel,i={sent_at:(new Date).toISOString(),...function(t){return!!t.trace_id&&!!t.public_key}(e)&&{trace:e},...!!o&&r&&{dsn:Kn(r)}},s=n&&n.getOptions().beforeSendSpan,c=s?t=>{const n=s(wn(t));return n||On(),n}:t=>wn(t),u=[];for(const n of t){const t=c(n);t&&u.push(se(t))}return ne(i,u)}([this],t)):t&&t.recordDroppedEvent("sample_rate","span"));const n=this.st();if(n){(Nn(this).scope||Nt()).captureEvent(n)}}st(){if(!ge(wn(this)))return;this.Z||(this.Z="");const{scope:t,isolationScope:n}=Nn(this),e=(t||Nt()).getClient()||Ut();if(!0!==this.nt)return void(e&&e.recordDroppedEvent("sample_rate","transaction"));const r=In(this).filter((t=>t!==this&&!function(t){return t instanceof pe&&t.isStandaloneSpan()}(t))).map((t=>wn(t))).filter(ge),o=this.V[Wt];delete this.V[Qt],r.forEach((t=>{t.data&&delete t.data[Qt]}));const i={contexts:{trace:gn(this)},spans:r.length>1e3?r.sort(((t,n)=>t.start_timestamp-n.start_timestamp)).slice(0,1e3):r,start_timestamp:this.Y,timestamp:this.et,transaction:this.Z,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:n,...it({dynamicSamplingContext:Xn(this)})},_metrics_summary:zt(this),...o&&{transaction_info:{source:o}}},s=he(this.K);return s&&Object.keys(s).length&&(i.measurements=s),i}}function me(t){return t&&"number"==typeof t||t instanceof Date||Array.isArray(t)}function ge(t){return!!(t.start_timestamp&&t.timestamp&&t.span_id&&t.trace_id)}const ye="__SENTRY_SUPPRESS_TRACING__";function ve(t,n){const e=Ee();if(e.startSpanManual)return e.startSpanManual(t,n);const r=Se(t),{forceTransaction:o,parentSpan:i}=t;return qt(t.scope,(()=>ke(i)((()=>{const e=Nt(),i=$e(e),s=t.onlyIfParent&&!i?new Fn:we({parentSpan:i,spanArguments:r,forceTransaction:o,scope:e});function c(){s.end()}return It(e,s),qn((()=>n(s,c)),(()=>{const{status:t}=wn(s);!s.isRecording()||t&&"ok"!==t||s.setStatus({code:en,message:"internal_error"})}))}))))}function be(t){const n=Ee();if(n.startInactiveSpan)return n.startInactiveSpan(t);const e=Se(t),{forceTransaction:r,parentSpan:o}=t;return(t.scope?n=>qt(t.scope,n):void 0!==o?t=>_e(o,t):t=>t())((()=>{const n=Nt(),o=$e(n);return t.onlyIfParent&&!o?new Fn:we({parentSpan:o,spanArguments:e,forceTransaction:r,scope:n})}))}function _e(t,n){const e=Ee();return e.withActiveSpan?e.withActiveSpan(t,n):qt((e=>(It(e,t||void 0),n(e))))}function we({parentSpan:t,spanArguments:n,forceTransaction:e,scope:r}){if(!Dn())return new Fn;const o=Dt();let i;if(t&&!e)i=function(t,n,e){const{spanId:r,traceId:o}=t.spanContext(),i=!n.getScopeData().sdkProcessingMetadata[ye]&&Sn(t),s=i?new pe({...e,parentSpanId:r,traceId:o,sampled:i}):new Fn({traceId:o});kn(t,s);const c=Ut();c&&(c.emit("spanStart",s),e.endTimestamp&&c.emit("spanEnd",s));return s}(t,r,n),kn(t,i);else if(t){const e=Xn(t),{traceId:o,spanId:s}=t.spanContext(),c=Sn(t);i=Te({traceId:o,parentSpanId:s,...n},r,c),Bn(i,e)}else{const{traceId:t,dsc:e,parentSpanId:s,sampled:c}={...o.getPropagationContext(),...r.getPropagationContext()};i=Te({traceId:t,parentSpanId:s,...n},r,c),e&&Bn(i,e)}return function(t,n,e){t&&(Z(t,Ln,e),Z(t,Pn,n))}(i,r,o),i}function Se(t){const n={isStandalone:(t.experimental||{}).standalone,...t};if(t.startTime){const e={...n};return e.startTimestamp=bn(t.startTime),delete e.startTime,e}return n}function Ee(){return Lt(x())}function Te(t,n,e){const r=Ut(),o=r&&r.getOptions()||{},{name:i="",attributes:s}=t,[c,u]=n.getScopeData().sdkProcessingMetadata[ye]?[!1]:function(t,n){if(!Dn(t))return[!1];const e=Dt().getScopeData().sdkProcessingMetadata.normalizedRequest,r={...n,normalizedRequest:n.normalizedRequest||e};let o;o="function"==typeof t.tracesSampler?t.tracesSampler(r):void 0!==r.parentSampled?r.parentSampled:void 0!==t.tracesSampleRate?t.tracesSampleRate:1;const i=Gn(o);return void 0===i?[!1]:i&&Math.random()_e(t,n):t=>t()}const Ie={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},xe="heartbeatFailed",je="idleTimeout",Ce="finalTimeout",Oe="externalFinish";function Re(t,n={}){const e=new Map;let r,o=!1,i=Oe,s=!n.disableAutoFinish;const u=[],{idleTimeout:a=Ie.idleTimeout,finalTimeout:f=Ie.finalTimeout,childSpanTimeout:d=Ie.childSpanTimeout,beforeSpanEnd:l}=n,h=Ut();if(!h||!Dn())return new Fn;const p=Nt(),m=jn(),g=function(t){const n=be(t);return It(Nt(),n),n}(t);function y(){r&&(clearTimeout(r),r=void 0)}function v(t){y(),r=setTimeout((()=>{!o&&0===e.size&&s&&(i=je,g.end(t))}),a)}function b(t){r=setTimeout((()=>{!o&&s&&(i=xe,g.end(t))}),d)}function _(t){o=!0,e.clear(),u.forEach((t=>t())),It(p,m);const n=wn(g),{start_timestamp:r}=n;if(!r)return;(n.data||{})[Kt]||g.setAttribute(Kt,i),c.log(`[Tracing] Idle span "${n.op}" finished`);const s=In(g).filter((t=>t!==g));let d=0;s.forEach((n=>{n.isRecording()&&(n.setStatus({code:en,message:"cancelled"}),n.end(t));const e=wn(n),{timestamp:r=0,start_timestamp:o=0}=e;r-o<=(f+a)/1e3&&o<=t||(!function(t,n){t[Tn]&&t[Tn].delete(n)}(g,n),d++)})),d>0&&g.setAttribute("sentry.idle_span_discarded_spans",d)}return g.end=new Proxy(g.end,{apply(t,n,e){l&&l(g);const[r,...o]=e,i=bn(r||at()),s=In(g).filter((t=>t!==g));if(!s.length)return _(i),Reflect.apply(t,n,[i,...o]);const c=s.map((t=>wn(t).timestamp)).filter((t=>!!t)),u=c.length?Math.max(...c):void 0,a=wn(g).start_timestamp,d=Math.min(a?a+f/1e3:1/0,Math.max(a||-1/0,Math.min(i,u||1/0)));return _(d),Reflect.apply(t,n,[d,...o])}}),u.push(h.on("spanStart",(t=>{if(o||t===g||wn(t).timestamp)return;var n;In(g).includes(t)&&(n=t.spanContext().spanId,y(),e.set(n,!0),b(at()+d/1e3))}))),u.push(h.on("spanEnd",(t=>{var n;o||(n=t.spanContext().spanId,e.has(n)&&e.delete(n),0===e.size&&v(at()+a/1e3))}))),u.push(h.on("idleSpanEnableAutoFinish",(t=>{t===g&&(s=!0,v(),e.size&&b())}))),n.disableAutoFinish||v(),setTimeout((()=>{o||(g.setStatus({code:en,message:"deadline_exceeded"}),i=Ce,g.end())}),f),g}function Me(t,n,e,r=0){return new _t(((o,i)=>{const s=t[r];if(null===n||"function"!=typeof s)o(n);else{const c=s({...n},e);q(c)?c.then((n=>Me(t,n,e,r+1).then(o))).then(null,i):Me(t,c,e,r+1).then(o).then(null,i)}}))}let Ae,Pe,Le;function Ne(t,n){const{fingerprint:e,span:r,breadcrumbs:o,sdkProcessingMetadata:i}=n;!function(t,n){const{extra:e,tags:r,user:o,contexts:i,level:s,transactionName:c}=n,u=it(e);u&&Object.keys(u).length&&(t.extra={...u,...t.extra});const a=it(r);a&&Object.keys(a).length&&(t.tags={...a,...t.tags});const f=it(o);f&&Object.keys(f).length&&(t.user={...f,...t.user});const d=it(i);d&&Object.keys(d).length&&(t.contexts={...d,...t.contexts});s&&(t.level=s);c&&"transaction"!==t.type&&(t.transaction=c)}(t,n),r&&function(t,n){t.contexts={trace:yn(n),...t.contexts},t.sdkProcessingMetadata={dynamicSamplingContext:Xn(n),...t.sdkProcessingMetadata};const e=xn(n),r=wn(e).description;r&&!t.transaction&&"transaction"===t.type&&(t.transaction=r)}(t,r),function(t,n){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],n&&(t.fingerprint=t.fingerprint.concat(n));t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}(t,e),function(t,n){const e=[...t.breadcrumbs||[],...n];t.breadcrumbs=e.length?e:void 0}(t,o),function(t,n){t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...n}}(t,i)}function De(t,n){const{extra:e,tags:r,user:o,contexts:i,level:s,sdkProcessingMetadata:c,breadcrumbs:u,fingerprint:a,eventProcessors:f,attachments:d,propagationContext:l,transactionName:h,span:p}=n;Fe(t,"extra",e),Fe(t,"tags",r),Fe(t,"user",o),Fe(t,"contexts",i),t.sdkProcessingMetadata=$t(t.sdkProcessingMetadata,c,2),s&&(t.level=s),h&&(t.transactionName=h),p&&(t.span=p),u.length&&(t.breadcrumbs=[...t.breadcrumbs,...u]),a.length&&(t.fingerprint=[...t.fingerprint,...a]),f.length&&(t.eventProcessors=[...t.eventProcessors,...f]),d.length&&(t.attachments=[...t.attachments,...d]),t.propagationContext={...t.propagationContext,...l}}function Fe(t,n,e){t[n]=$t(t[n],e,1)}function qe(t,n,r,o,i,s){const{normalizeDepth:c=3,normalizeMaxBreadth:u=1e3}=t,a={...n,event_id:n.event_id||r.event_id||dt(),timestamp:n.timestamp||ut()},f=r.integrations||t.integrations.map((t=>t.name));!function(t,n){const{environment:e,release:r,dist:o,maxValueLength:i=250}=n;t.environment=t.environment||e||Un,!t.release&&r&&(t.release=r);!t.dist&&o&&(t.dist=o);t.message&&(t.message=J(t.message,i));const s=t.exception&&t.exception.values&&t.exception.values[0];s&&s.value&&(s.value=J(s.value,i));const c=t.request;c&&c.url&&(c.url=J(c.url,i))}(a,t),function(t,n){n.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...n])}(a,f),i&&i.emit("applyFrameMetadata",n),void 0===n.type&&function(t,n){const r=function(t){const n=e._sentryDebugIds;if(!n)return{};const r=Object.keys(n);return Le&&r.length===Pe||(Pe=r.length,Le=r.reduce(((e,r)=>{Ae||(Ae={});const o=Ae[r];if(o)e[o[0]]=o[1];else{const o=t(r);for(let t=o.length-1;t>=0;t--){const i=o[t],s=i&&i.filename,c=n[r];if(s&&c){e[s]=c,Ae[r]=[s,c];break}}}return e}),{})),Le}(n);try{t.exception.values.forEach((t=>{t.stacktrace.frames.forEach((t=>{r&&t.filename&&(t.debug_id=r[t.filename])}))}))}catch(t){}}(a,t.stackParser);const d=function(t,n){if(!n)return t;const e=t?t.clone():new Ct;return e.update(n),e}(o,r.captureContext);r.mechanism&&mt(a,r.mechanism);const l=i?i.getEventProcessors():[],h=Ft().getScopeData();if(s){De(h,s.getScopeData())}if(d){De(h,d.getScopeData())}const p=[...r.attachments||[],...h.attachments];p.length&&(r.attachments=p),Ne(a,h);return Me([...l,...h.eventProcessors],a,r).then((t=>(t&&function(t){const n={};try{t.exception.values.forEach((t=>{t.stacktrace.frames.forEach((t=>{t.debug_id&&(t.abs_path?n[t.abs_path]=t.debug_id:t.filename&&(n[t.filename]=t.debug_id),delete t.debug_id)}))}))}catch(t){}if(0===Object.keys(n).length)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];const e=t.debug_meta.images;Object.entries(n).forEach((([t,n])=>{e.push({type:"sourcemap",code_file:t,debug_id:n})}))}(t),"number"==typeof c&&c>0?function(t,n,e){if(!t)return null;const r={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map((t=>({...t,...t.data&&{data:Qn(t.data,n,e)}})))},...t.user&&{user:Qn(t.user,n,e)},...t.contexts&&{contexts:Qn(t.contexts,n,e)},...t.extra&&{extra:Qn(t.extra,n,e)}};t.contexts&&t.contexts.trace&&r.contexts&&(r.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(r.contexts.trace.data=Qn(t.contexts.trace.data,n,e)));t.spans&&(r.spans=t.spans.map((t=>({...t,...t.data&&{data:Qn(t.data,n,e)}}))));t.contexts&&t.contexts.flags&&r.contexts&&(r.contexts.flags=Qn(t.contexts.flags,3,e));return r}(t,c,u):t)))}function Ue(t){if(t)return function(t){return t instanceof Ct||"function"==typeof t}(t)||function(t){return Object.keys(t).some((t=>He.includes(t)))}(t)?{captureContext:t}:t}const He=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function captureException(t,n){return Nt().captureException(t,Ue(n))}function Be(t,n){return Nt().captureEvent(t,n)}function ze(t,n){Dt().setContext(t,n)}function We(t){Dt().setExtras(t)}function Xe(t,n){Dt().setExtra(t,n)}function Ge(t){Dt().setTags(t)}function Je(t,n){Dt().setTag(t,n)}function Ke(t){Dt().setUser(t)}function Ye(){return Dt().lastEventId()}function Ve(t){const n=Ut(),r=Dt(),o=Nt(),{release:i,environment:s=Un}=n&&n.getOptions()||{},{userAgent:c}=e.navigator||{},u=wt({release:i,environment:s,user:o.getUser()||r.getUser(),...c&&{userAgent:c},...t}),a=r.getSession();return a&&"ok"===a.status&&St(a,{status:"exited"}),Qe(),r.setSession(u),o.setSession(u),u}function Qe(){const t=Dt(),n=Nt(),e=n.getSession()||t.getSession();e&&function(t,n){let e={};"ok"===t.status&&(e={status:"exited"}),St(t,e)}(e),Ze(),t.setSession(),n.setSession()}function Ze(){const t=Dt(),n=Nt(),e=Ut(),r=n.getSession()||t.getSession();r&&e&&e.captureSession(r)}function tr(t=!1){t?Qe():Ze()}const nr="7";function er(t){const n=t.protocol?`${t.protocol}:`:"",e=t.port?`:${t.port}`:"";return`${n}//${t.host}${e}${t.path?`/${t.path}`:""}/api/`}function rr(t,n,e){return n||`${function(t){return`${er(t)}${t.projectId}/envelope/`}(t)}?${function(t,n){const e={sentry_version:nr};return t.publicKey&&(e.sentry_key=t.publicKey),n&&(e.sentry_client=`${n.name}/${n.version}`),new URLSearchParams(e).toString()}(t,e)}`}const or=[];function ir(t){const n=t.defaultIntegrations||[],e=t.integrations;let r;if(n.forEach((t=>{t.isDefaultInstance=!0})),Array.isArray(e))r=[...n,...e];else if("function"==typeof e){const t=e(n);r=Array.isArray(t)?t:[t]}else r=n;const o=function(t){const n={};return t.forEach((t=>{const{name:e}=t,r=n[e];r&&!r.isDefaultInstance&&t.isDefaultInstance||(n[e]=t)})),Object.values(n)}(r),i=o.findIndex((t=>"Debug"===t.name));if(i>-1){const[t]=o.splice(i,1);o.push(t)}return o}function sr(t,n){for(const e of n)e&&e.afterAllSetup&&e.afterAllSetup(t)}function cr(t,n,e){if(!e[n.name]){if(e[n.name]=n,-1===or.indexOf(n.name)&&"function"==typeof n.setupOnce&&(n.setupOnce(),or.push(n.name)),n.setup&&"function"==typeof n.setup&&n.setup(t),"function"==typeof n.preprocessEvent){const e=n.preprocessEvent.bind(n);t.on("preprocessEvent",((n,r)=>e(n,r,t)))}if("function"==typeof n.processEvent){const e=n.processEvent.bind(n),r=Object.assign(((n,r)=>e(n,r,t)),{id:n.name});t.addEventProcessor(r)}}}class ur extends Error{constructor(t,n="warn"){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=n}}class ar{constructor(t){if(this.ct=t,this._integrations={},this.ut=0,this.ft={},this.dt={},this.S=[],t.dsn&&(this.lt=Vn(t.dsn)),this.lt){const n=rr(this.lt,t.tunnel,t._metadata?t._metadata.sdk:void 0);this.ht=t.transport({tunnel:this.ct.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:n})}const n=["enableTracing","tracesSampleRate","tracesSampler"].find((n=>n in t&&null==t[n]));n&&s((()=>{console.warn(`[Sentry] Deprecation warning: \`${n}\` is set to undefined, which leads to tracing being enabled. In v9, a value of \`undefined\` will result in tracing being disabled.`)}))}captureException(t,n,e){const r=dt();if(gt(t))return r;const o={event_id:r,...n};return this.gt(this.eventFromException(t,o).then((t=>this.yt(t,o,e)))),o.event_id}captureMessage(t,n,e,r){const o={event_id:dt(),...e},i=L(t)?t:String(t),s=N(t)?this.eventFromMessage(i,n,o):this.eventFromException(t,o);return this.gt(s.then((t=>this.yt(t,o,r)))),o.event_id}captureEvent(t,n,e){const r=dt();if(n&&n.originalException&>(n.originalException))return r;const o={event_id:r,...n},i=(t.sdkProcessingMetadata||{}).capturedSpanScope;return this.gt(this.yt(t,o,i||e)),o.event_id}captureSession(t){"string"!=typeof t.release||(this.sendSession(t),St(t,{init:!1}))}getDsn(){return this.lt}getOptions(){return this.ct}getSdkMetadata(){return this.ct._metadata}getTransport(){return this.ht}flush(t){const n=this.ht;return n?(this.emit("flush"),this.vt(t).then((e=>n.flush(t).then((t=>e&&t))))):vt(!0)}close(t){return this.flush(t).then((t=>(this.getOptions().enabled=!1,this.emit("close"),t)))}getEventProcessors(){return this.S}addEventProcessor(t){this.S.push(t)}init(){(this.bt()||this.ct.integrations.some((({name:t})=>t.startsWith("Spotlight"))))&&this._t()}getIntegrationByName(t){return this._integrations[t]}addIntegration(t){const n=this._integrations[t.name];cr(this,t,this._integrations),n||sr(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let e=de(t,this.lt,this.ct._metadata,this.ct.tunnel);for(const t of n.attachments||[])e=ee(e,ce(t));const r=this.sendEnvelope(e);r&&r.then((n=>this.emit("afterSendEvent",t,n)),null)}sendSession(t){const n=function(t,n,e,r){const o=fe(e);return ne({sent_at:(new Date).toISOString(),...o&&{sdk:o},...!!r&&n&&{dsn:Kn(n)}},["aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()]])}(t,this.lt,this.ct._metadata,this.ct.tunnel);this.sendEnvelope(n)}recordDroppedEvent(t,n,e){if(this.ct.sendClientReports){const r="number"==typeof e?e:1,o=`${t}:${n}`;this.ft[o]=(this.ft[o]||0)+r}}on(t,n){const e=this.dt[t]=this.dt[t]||[];return e.push(n),()=>{const t=e.indexOf(n);t>-1&&e.splice(t,1)}}emit(t,...n){const e=this.dt[t];e&&e.forEach((t=>t(...n)))}sendEnvelope(t){return this.emit("beforeEnvelope",t),this.bt()&&this.ht?this.ht.send(t).then(null,(t=>t)):vt({})}_t(){const{integrations:t}=this.ct;this._integrations=function(t,n){const e={};return n.forEach((n=>{n&&cr(t,n,e)})),e}(this,t),sr(this,t)}wt(t,n){let e=!1,r=!1;const o=n.exception&&n.exception.values;if(o){r=!0;for(const t of o){const n=t.mechanism;if(n&&!1===n.handled){e=!0;break}}}const i="ok"===t.status;(i&&0===t.errors||i&&e)&&(St(t,{...e&&{status:"crashed"},errors:t.errors||Number(r||e)}),this.captureSession(t))}vt(t){return new _t((n=>{let e=0;const r=setInterval((()=>{0==this.ut?(clearInterval(r),n(!0)):(e+=1,t&&e>=t&&(clearInterval(r),n(!1)))}),1)}))}bt(){return!1!==this.getOptions().enabled&&void 0!==this.ht}St(t,n,e=Nt(),r=Dt()){const o=this.getOptions(),i=Object.keys(this._integrations);return!n.integrations&&i.length>0&&(n.integrations=i),this.emit("preprocessEvent",t,n),t.type||r.setLastEventId(t.event_id||n.event_id),qe(o,t,n,e,this,r).then((t=>{if(null===t)return t;t.contexts={trace:Ht(e),...t.contexts};const n=Wn(this,e);return t.sdkProcessingMetadata={dynamicSamplingContext:n,...t.sdkProcessingMetadata},t}))}yt(t,n={},e){return this.Et(t,n,e).then((t=>t.event_id),(t=>{}))}Et(t,n,e){const r=this.getOptions(),{sampleRate:o}=r,i=dr(t),s=fr(t),c=t.type||"error",u=`before send for type \`${c}\``,a=void 0===o?void 0:Gn(o);if(s&&"number"==typeof a&&Math.random()>a)return this.recordDroppedEvent("sample_rate","error",t),bt(new ur(`Discarding event because it's not included in the random sample (sampling rate = ${o})`,"log"));const f="replay_event"===c?"replay":c,d=(t.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this.St(t,n,e,d).then((e=>{if(null===e)throw this.recordDroppedEvent("event_processor",f,t),new ur("An event processor returned `null`, will not send event.","log");if(n.data&&!0===n.data.__sentry__)return e;const o=function(t,n,e,r){const{beforeSend:o,beforeSendTransaction:i,beforeSendSpan:s}=n;if(fr(e)&&o)return o(e,r);if(dr(e)){if(e.spans&&s){const n=[];for(const r of e.spans){const e=s(r);e?n.push(e):(On(),t.recordDroppedEvent("before_send","span"))}e.spans=n}if(i){if(e.spans){const t=e.spans.length;e.sdkProcessingMetadata={...e.sdkProcessingMetadata,spanCountBeforeProcessing:t}}return i(e,r)}}return e}(this,r,e,n);return function(t,n){const e=`${n} must return \`null\` or a valid event.`;if(q(t))return t.then((t=>{if(!D(t)&&null!==t)throw new ur(e);return t}),(t=>{throw new ur(`${n} rejected with ${t}`)}));if(!D(t)&&null!==t)throw new ur(e);return t}(o,u)})).then((r=>{if(null===r){if(this.recordDroppedEvent("before_send",f,t),i){const n=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",n)}throw new ur(`${u} returned \`null\`, will not send event.`,"log")}const o=e&&e.getSession();if(!i&&o&&this.wt(o,r),i){const t=(r.sdkProcessingMetadata&&r.sdkProcessingMetadata.spanCountBeforeProcessing||0)-(r.spans?r.spans.length:0);t>0&&this.recordDroppedEvent("before_send","span",t)}const s=r.transaction_info;if(i&&s&&r.transaction!==t.transaction){const t="custom";r.transaction_info={...s,source:t}}return this.sendEvent(r,n),r})).then(null,(t=>{if(t instanceof ur)throw t;throw this.captureException(t,{data:{__sentry__:!0},originalException:t}),new ur(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${t}`)}))}gt(t){this.ut++,t.then((t=>(this.ut--,t)),(t=>(this.ut--,t)))}Tt(){const t=this.ft;return this.ft={},Object.entries(t).map((([t,n])=>{const[e,r]=t.split(":");return{reason:e,category:r,quantity:n}}))}$t(){const t=this.Tt();if(0===t.length)return;if(!this.lt)return;const n=(e=t,ne((r=this.ct.tunnel&&Kn(this.lt))?{dsn:r}:{},[[{type:"client_report"},{timestamp:ut(),discarded_events:e}]]));var e,r;this.sendEnvelope(n)}}function fr(t){return void 0===t.type}function dr(t){return"transaction"===t.type}function lr(t){Nt().setClient(t)}function hr(t){const n=[];function e(t){return n.splice(n.indexOf(t),1)[0]||Promise.resolve(void 0)}return{$:n,add:function(r){if(!(void 0===t||n.lengthe(o))).then(null,(()=>e(o).then(null,(()=>{})))),o},drain:function(t){return new _t(((e,r)=>{let o=n.length;if(!o)return e(!0);const i=setTimeout((()=>{t&&t>0&&e(!1)}),t);n.forEach((t=>{vt(t).then((()=>{--o||(clearTimeout(i),e(!0))}),r)}))}))}}}const pr=6e4;function mr(t,{statusCode:n,headers:e},r=Date.now()){const o={...t},i=e&&e["x-sentry-rate-limits"],s=e&&e["retry-after"];if(i)for(const t of i.trim().split(",")){const[n,e,,,i]=t.split(":",5),s=parseInt(n,10),c=1e3*(isNaN(s)?60:s);if(e)for(const t of e.split(";"))"metric_bucket"===t&&i&&!i.split(";").includes("custom")||(o[t]=r+c);else o.all=r+c}else s?o.all=r+function(t,n=Date.now()){const e=parseInt(`${t}`,10);if(!isNaN(e))return 1e3*e;const r=Date.parse(`${t}`);return isNaN(r)?pr:r-n}(s,r):429===n&&(o.all=r+6e4);return o}const gr=64;function yr(t,n,e=hr(t.bufferSize||gr)){let r={};return{send:function(o){const i=[];if(re(o,((n,e)=>{const o=ae(e);if(function(t,n,e=Date.now()){return function(t,n){return t[n]||t.all||0}(t,n)>e}(r,o)){const r=vr(n,e);t.recordDroppedEvent("ratelimit_backoff",o,r)}else i.push(n)})),0===i.length)return vt({});const s=ne(o[0],i),c=n=>{re(s,((e,r)=>{const o=vr(e,r);t.recordDroppedEvent(n,ae(r),o)}))};return e.add((()=>n({body:ie(s)}).then((t=>(r=mr(r,t),t)),(t=>{throw c("network_error"),t})))).then((t=>t),(t=>{if(t instanceof ur)return c("queue_overflow"),vt({});throw t}))},flush:t=>e.drain(t)}}function vr(t,n){if("event"===n||"transaction"===n)return Array.isArray(t)?t[1]:void 0}function br(t={}){const n=Ut();if(!function(){const t=Ut();return!!t&&!1!==t.getOptions().enabled&&!!t.getTransport()}()||!n)return{};const e=Lt(x());if(e.getTraceData)return e.getTraceData(t);const r=Nt(),o=t.span||jn(),i=o?vn(o):function(t){const{traceId:n,sampled:e,spanId:r}=t.getPropagationContext();return hn(n,r,e)}(r),s=an(o?Xn(o):Wn(n,r));return dn.test(i)?{"sentry-trace":i,baggage:s}:(c.warn("Invalid sentry-trace data. Cannot generate trace data"),{})}const _r=100;function wr(t,n){const e=Ut(),r=Dt();if(!e)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:i=_r}=e.getOptions();if(i<=0)return;const c={timestamp:ut(),...t},u=o?s((()=>o(c,n))):c;null!==u&&(e.emit&&e.emit("beforeAddBreadcrumb",u,n),r.addBreadcrumb(u,i))}let Sr;const Er=new WeakMap,Tr=()=>({name:"FunctionToString",setupOnce(){Sr=Function.prototype.toString;try{Function.prototype.toString=function(...t){const n=nt(this),e=Er.has(Ut())&&void 0!==n?n:this;return Sr.apply(e,t)}}catch(t){}},setup(t){Er.set(t,!0)}}),$r=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,"undefined is not an object (evaluating 'a.L')",'can\'t redefine non-configurable property "solana"',"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/],kr=(t={})=>({name:"InboundFilters",processEvent(n,e,r){const o=r.getOptions(),i=function(t={},n={}){return{allowUrls:[...t.allowUrls||[],...n.allowUrls||[]],denyUrls:[...t.denyUrls||[],...n.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...n.ignoreErrors||[],...t.disableErrorDefaults?[]:$r],ignoreTransactions:[...t.ignoreTransactions||[],...n.ignoreTransactions||[]],ignoreInternal:void 0===t.ignoreInternal||t.ignoreInternal}}(t,o);return function(t,n){if(n.ignoreInternal&&function(t){try{return"SentryError"===t.exception.values[0].type}catch(t){}return!1}(t))return!0;if(function(t,n){if(t.type||!n||!n.length)return!1;return function(t){const n=[];t.message&&n.push(t.message);let e;try{e=t.exception.values[t.exception.values.length-1]}catch(t){}e&&e.value&&(n.push(e.value),e.type&&n.push(`${e.type}: ${e.value}`));return n}(t).some((t=>V(t,n)))}(t,n.ignoreErrors))return!0;if(function(t){if(t.type)return!1;if(!t.exception||!t.exception.values||0===t.exception.values.length)return!1;return!t.message&&!t.exception.values.some((t=>t.stacktrace||t.type&&"Error"!==t.type||t.value))}(t))return!0;if(function(t,n){if("transaction"!==t.type||!n||!n.length)return!1;const e=t.transaction;return!!e&&V(e,n)}(t,n.ignoreTransactions))return!0;if(function(t,n){if(!n||!n.length)return!1;const e=Ir(t);return!!e&&V(e,n)}(t,n.denyUrls))return!0;if(!function(t,n){if(!n||!n.length)return!0;const e=Ir(t);return!e||V(e,n)}(t,n.allowUrls))return!0;return!1}(n,i)?null:n}});function Ir(t){try{let n;try{n=t.exception.values[0].stacktrace.frames}catch(t){}return n?function(t=[]){for(let n=t.length-1;n>=0;n--){const e=t[n];if(e&&""!==e.filename&&"[native code]"!==e.filename)return e.filename||null}return null}(n):null}catch(t){return null}}function xr(t,n,e=250,r,o,i,s){if(!(i.exception&&i.exception.values&&s&&U(s.originalException,Error)))return;const c=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;var u,a;c&&(i.exception.values=(u=jr(t,n,o,s.originalException,r,i.exception.values,c,0),a=e,u.map((t=>(t.value&&(t.value=J(t.value,a)),t)))))}function jr(t,n,e,r,o,i,s,c){if(i.length>=e+1)return i;let u=[...i];if(U(r[o],Error)){Cr(s,c);const i=t(n,r[o]),a=u.length;Or(i,o,a,c),u=jr(t,n,e,r[o],o,[i,...u],i,a)}return Array.isArray(r.errors)&&r.errors.forEach(((r,i)=>{if(U(r,Error)){Cr(s,c);const a=t(n,r),f=u.length;Or(a,`errors[${i}]`,f,c),u=jr(t,n,e,r,o,[a,...u],a,f)}})),u}function Cr(t,n){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,..."AggregateError"===t.type&&{is_exception_group:!0},exception_id:n}}function Or(t,n,e,r){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,type:"chained",source:n,exception_id:e,parent_id:r}}function Rr(t){if(!t)return{};const n=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!n)return{};const e=n[6]||"",r=n[8]||"";return{host:n[4],path:n[5],protocol:n[2],search:e,hash:r,relative:n[5]+e+r}}function Mr(){"console"in e&&o.forEach((function(t){t in e.console&&Q(e.console,t,(function(n){return i[t]=n,function(...n){w("console",{args:n,level:t});const r=i[t];r&&r.apply(e.console,n)}}))}))}function Ar(t){return"warn"===t?"warning":["fatal","error","warning","log","info","debug"].includes(t)?t:"log"}const Pr=()=>{let t;return{name:"Dedupe",processEvent(n){if(n.type)return n;try{if(function(t,n){if(!n)return!1;if(function(t,n){const e=t.message,r=n.message;if(!e&&!r)return!1;if(e&&!r||!e&&r)return!1;if(e!==r)return!1;if(!Nr(t,n))return!1;if(!Lr(t,n))return!1;return!0}(t,n))return!0;if(function(t,n){const e=Dr(n),r=Dr(t);if(!e||!r)return!1;if(e.type!==r.type||e.value!==r.value)return!1;if(!Nr(t,n))return!1;if(!Lr(t,n))return!1;return!0}(t,n))return!0;return!1}(n,t))return null}catch(t){}return t=n}}};function Lr(t,n){let e=g(t),r=g(n);if(!e&&!r)return!0;if(e&&!r||!e&&r)return!1;if(r.length!==e.length)return!1;for(let t=0;tnew WeakMap)),o=e.get(t);if(o)return o;const i=new n(t);return t.on("flush",(()=>i.flush())),t.on("close",(()=>i.close())),e.set(t,i),i}function Ur(t,n,e,r,o={}){const i=o.client||Ut();if(!i)return;const s=jn(),c=s?xn(s):void 0,u=c&&wn(c).description,{unit:a,tags:f,timestamp:d}=o,{release:l,environment:h}=i.getOptions(),p={};l&&(p.release=l),h&&(p.environment=h),u&&(p.transaction=u);qr(i,t).add(n,e,r,a,{...p,...f},d)}function Hr(t,n,e,r){Ur(t,Fr,n,zr(e),r)}const Br={increment:function(t,n,e=1,r){Ur(t,"c",n,zr(e),r)},distribution:Hr,set:function(t,n,e,r){Ur(t,"s",n,e,r)},gauge:function(t,n,e,r){Ur(t,"g",n,zr(e),r)},timing:function(t,n,e,r="second",o){if("function"==typeof e){const r=at();return ve({op:"metrics.timing",name:n,startTime:r,onlyIfParent:!0},(i=>qn((()=>e()),(()=>{}),(()=>{const e=at();Hr(t,n,e-r,{...o,unit:"second"}),i.end(e)}))))}Hr(t,n,e,{...o,unit:r})},getMetricsAggregatorForClient:qr};function zr(t){return"string"==typeof t?parseInt(t):t}function Wr(t){return t.replace(/[^\w\-./]+/gi,"")}const Xr=[["\n","\\n"],["\r","\\r"],["\t","\\t"],["\\","\\\\"],["|","\\u{7c}"],[",","\\u{2c}"]];function Gr(t){return[...t].reduce(((t,n)=>t+function(t){for(const[n,e]of Xr)if(t===n)return e;return t}(n)),"")}function Jr(t,n){c.log(`Flushing aggregated metrics, number of metrics: ${n.length}`);const e=function(t,n,e,r){const o={sent_at:(new Date).toISOString()};e&&e.sdk&&(o.sdk={name:e.sdk.name,version:e.sdk.version});r&&n&&(o.dsn=Kn(n));const i=function(t){const n=function(t){let n="";for(const e of t){const t=Object.entries(e.tags),r=t.length>0?`|#${t.map((([t,n])=>`${t}:${n}`)).join(",")}`:"";n+=`${e.name}@${e.unit}:${e.metric}|${e.metricType}${r}|T${e.timestamp}\n`}return n}(t);return[{type:"statsd",length:n.length},n]}(t);return ne(o,[i])}(n,t.getDsn(),t.getSdkMetadata(),t.getOptions().tunnel);t.sendEnvelope(e)}const Kr={c:class{constructor(t){this.m=t}get weight(){return 1}add(t){this.m+=t}toString(){return`${this.m}`}},g:class{constructor(t){this.kt=t,this.It=t,this.xt=t,this.jt=t,this.Ct=1}get weight(){return 5}add(t){this.kt=t,tthis.xt&&(this.xt=t),this.jt+=t,this.Ct++}toString(){return`${this.kt}:${this.It}:${this.xt}:${this.jt}:${this.Ct}`}},[Fr]:class{constructor(t){this.m=[t]}get weight(){return this.m.length}add(t){this.m.push(t)}toString(){return this.m.join(":")}},s:class{constructor(t){this.first=t,this.m=new Set([t])}get weight(){return this.m.size}add(t){this.m.add(t)}toString(){return Array.from(this.m).map((t=>"string"==typeof t?function(t){let n=0;for(let e=0;e>>0}(t):t)).join(":")}}};class Yr{constructor(t){this.F=t,this.Ot=new Map,this.Rt=setInterval((()=>this.flush()),5e3)}add(t,n,e,r="none",o={},i=at()){const s=Math.floor(i),c=n.replace(/[^\w\-.]+/gi,"_");const u=function(t){const n={};for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[Wr(e)]=Gr(String(t[e])));return n}(o),a=function(t){return t.replace(/[^\w]+/gi,"_")}(r),f=function(t,n,e,r){return`${t}${n}${e}${Object.entries(it(r)).sort(((t,n)=>t[0].localeCompare(n[0])))}`}(t,c,a,u);let d=this.Ot.get(f);const l=d&&"s"===t?d.metric.weight:0;d?(d.metric.add(e),d.timestamp0&&t.setAttribute("http.response_content_length",n)}}else n.error&&t.setStatus({code:en,message:"internal_error"});t.end()}(e,t),delete r[n]))}const{method:s,url:c}=t.fetchData,u=function(t){try{return new URL(t).href}catch(t){return}}(c),a=u?Rr(u).host:void 0,f=!!jn(),d=i&&f?be({name:`${s} ${c}`,attributes:{url:c,type:"fetch","http.method":s,"http.url":u,"server.address":a,[Jt]:o,[Gt]:"http.client"}}):new Fn;if(t.fetchData.__span=d.spanContext().spanId,r[d.spanContext().spanId]=d,e(t.fetchData.url)){const n=t.args[0],e=t.args[1]||{},r=function(t,n,e){const r=br({span:e}),o=r["sentry-trace"],i=r.baggage;if(!o)return;const s=n.headers||(function(t){return"undefined"!=typeof Request&&U(t,Request)}(t)?t.headers:void 0);if(s){if(function(t){return"undefined"!=typeof Headers&&U(t,Headers)}(s)){const t=new Headers(s);if(t.set("sentry-trace",o),i){const n=t.get("baggage");if(n){const e=Qr(n);t.set("baggage",e?`${e},${i}`:i)}else t.set("baggage",i)}return t}if(Array.isArray(s)){const t=[...s.filter((t=>!(Array.isArray(t)&&"sentry-trace"===t[0]))).map((t=>{if(Array.isArray(t)&&"baggage"===t[0]&&"string"==typeof t[1]){const[n,e,...r]=t;return[n,Qr(e),...r]}return t})),["sentry-trace",o]];return i&&t.push(["baggage",i]),t}{const t="baggage"in s?s.baggage:void 0;let n=[];return Array.isArray(t)?n=t.map((t=>"string"==typeof t?Qr(t):t)).filter((t=>""===t)):t&&n.push(Qr(t)),i&&n.push(i),{...s,"sentry-trace":o,baggage:n.length>0?n.join(","):void 0}}}return{...r}}(n,e,Dn()&&f?d:void 0);r&&(t.args[1]=e,e.headers=r)}return d}function Qr(t){return t.split(",").filter((t=>!t.split("=")[0].startsWith(on))).join(",")}const Zr=function(){return{bindClient(t){Nt().setClient(t)},withScope:qt,getClient:()=>Ut(),getScope:Nt,getIsolationScope:Dt,captureException:(t,n)=>Nt().captureException(t,n),captureMessage:(t,n,e)=>Nt().captureMessage(t,n,e),captureEvent:Be,addBreadcrumb:wr,setUser:Ke,setTags:Ge,setTag:Je,setExtra:Xe,setExtras:We,setContext:ze,getIntegration(t){const n=Ut();return n&&n.getIntegrationByName(t.id)||null},startSession:Ve,endSession:Qe,captureSession(t){if(t)return Qe();!function(){const t=Nt(),n=Ut(),e=t.getSession();n&&e&&n.captureSession(e)}()}}};function to(t){return void 0===t?void 0:t>=400&&t<500?"warning":t>=500?"error":void 0}const no=e;function eo(t){return t&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function ro(){if("string"==typeof EdgeRuntime)return!0;if(!function(){if(!("fetch"in no))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(t){return!1}}())return!1;if(eo(no.fetch))return!0;let t=!1;const n=no.document;if(n&&"function"==typeof n.createElement)try{const e=n.createElement("iframe");e.hidden=!0,n.head.appendChild(e),e.contentWindow&&e.contentWindow.fetch&&(t=eo(e.contentWindow.fetch)),n.head.removeChild(e)}catch(t){}return t}function oo(t,n){const e="fetch";b(e,t),_(e,(()=>io(void 0,n)))}function io(t,n=!1){n&&!ro()||Q(e,"fetch",(function(n){return function(...r){const o=new Error,{method:i,url:s}=function(t){if(0===t.length)return{method:"GET",url:""};if(2===t.length){const[n,e]=t;return{url:uo(n),method:co(e,"method")?String(e.method).toUpperCase():"GET"}}const n=t[0];return{url:uo(n),method:co(n,"method")?String(n.method).toUpperCase():"GET"}}(r),c={args:r,fetchData:{method:i,url:s},startTimestamp:1e3*at(),virtualError:o};return t||w("fetch",{...c}),n.apply(e,r).then((async n=>(t?t(n):w("fetch",{...c,endTimestamp:1e3*at(),response:n}),n)),(t=>{throw w("fetch",{...c,endTimestamp:1e3*at(),error:t}),O(t)&&void 0===t.stack&&(t.stack=o.stack,Z(t,"framesToPop",1)),t}))}}))}function so(t){let n;try{n=t.clone()}catch(t){return}!async function(t,n){if(t&&t.body){const e=t.body,r=e.getReader(),o=setTimeout((()=>{e.cancel().then(null,(()=>{}))}),9e4);let i=!0;for(;i;){let t;try{t=setTimeout((()=>{e.cancel().then(null,(()=>{}))}),5e3);const{done:o}=await r.read();clearTimeout(t),o&&(n(),i=!1)}catch(t){i=!1}finally{clearTimeout(t)}}clearTimeout(o),r.releaseLock(),e.cancel().then(null,(()=>{}))}}(n,(()=>{w("fetch-body-resolved",{endTimestamp:1e3*at(),response:t})}))}function co(t,n){return!!t&&"object"==typeof t&&!!t[n]}function uo(t){return"string"==typeof t?t:t?co(t,"url")?t.url:t.toString?t.toString():"":""}const ao=e;const fo=()=>{},lo=["attachTo","createForm","createWidget","remove"],ho=Object.assign((t=>(s((()=>{console.warn("You are using feedbackIntegration() even though this bundle does not include feedback.")})),{name:"Feedback",...lo.reduce(((t,n)=>(t[n]=fo,t)),{})})),{_isShim:!0}),po=["start","stop","flush"];const mo=e;let go=0;function yo(){return go>0}function vo(t,n={}){if(!function(t){return"function"==typeof t}(t))return t;try{const n=t.__sentry_wrapped__;if(n)return"function"==typeof n?n:t;if(nt(t))return t}catch(n){return t}const sentryWrapped=function(...e){try{const r=e.map((t=>vo(t,n)));return t.apply(this,r)}catch(t){throw go++,setTimeout((()=>{go--})),qt((r=>{r.addEventProcessor((t=>(n.mechanism&&(pt(t,void 0),mt(t,n.mechanism)),t.extra={...t.extra,arguments:e},t))),captureException(t)})),t}};try{for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(sentryWrapped[n]=t[n])}catch(t){}tt(sentryWrapped,t),Z(t,"__sentry_wrapped__",sentryWrapped);try{Object.getOwnPropertyDescriptor(sentryWrapped,"name").configurable&&Object.defineProperty(sentryWrapped,"name",{get:()=>t.name})}catch(t){}return sentryWrapped}function bo(t,n){const e=So(t,n),r={type:$o(n),value:ko(n)};return e.length&&(r.stacktrace={frames:e}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function _o(t,n,e,r){const o=Ut(),i=o&&o.getOptions().normalizeDepth,s=function(t){for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)){const e=t[n];if(e instanceof Error)return e}return}(n),c={__serialized__:Zn(n,i)};if(s)return{exception:{values:[bo(t,s)]},extra:c};const u={exception:{values:[{type:F(n)?n.constructor.name:r?"UnhandledRejection":"Error",value:Oo(n,{isUnhandledRejection:r})}]},extra:c};if(e){const n=So(t,e);n.length&&(u.exception.values[0].stacktrace={frames:n})}return u}function wo(t,n){return{exception:{values:[bo(t,n)]}}}function So(t,n){const e=n.stacktrace||n.stack||"",r=function(t){if(t&&Eo.test(t.message))return 1;return 0}(n),o=function(t){if("number"==typeof t.framesToPop)return t.framesToPop;return 0}(n);try{return t(e,r,o)}catch(t){}return[]}const Eo=/Minified React error #\d+;/i;function To(t){return"undefined"!=typeof WebAssembly&&void 0!==WebAssembly.Exception&&t instanceof WebAssembly.Exception}function $o(t){const n=t&&t.name;if(!n&&To(t)){return t.message&&Array.isArray(t.message)&&2==t.message.length?t.message[0]:"WebAssembly.Exception"}return n}function ko(t){const n=t&&t.message;return n?n.error&&"string"==typeof n.error.message?n.error.message:To(t)&&Array.isArray(t.message)&&2==t.message.length?t.message[1]:n:"No error message"}function Io(t,n,e,r){const o=jo(t,n,e&&e.syntheticException||void 0,r);return mt(o),o.level="error",e&&e.event_id&&(o.event_id=e.event_id),vt(o)}function xo(t,n,e="info",r,o){const i=Co(t,n,r&&r.syntheticException||void 0,o);return i.level=e,r&&r.event_id&&(i.event_id=r.event_id),vt(i)}function jo(t,n,e,r,o){let i;if(M(n)&&n.error){return wo(t,n.error)}if(A(n)||R(n,"DOMException")){const o=n;if("stack"in n)i=wo(t,n);else{const n=o.name||(A(o)?"DOMError":"DOMException"),s=o.message?`${n}: ${o.message}`:n;i=Co(t,s,e,r),pt(i,s)}return"code"in o&&(i.tags={...i.tags,"DOMException.code":`${o.code}`}),i}if(O(n))return wo(t,n);if(D(n)||F(n)){return i=_o(t,n,e,o),mt(i,{synthetic:!0}),i}return i=Co(t,n,e,r),pt(i,`${n}`),mt(i,{synthetic:!0}),i}function Co(t,n,e,r){const o={};if(r&&e){const r=So(t,e);r.length&&(o.exception={values:[{value:n,stacktrace:{frames:r}}]}),mt(o,{synthetic:!0})}if(L(n)){const{__sentry_template_string__:t,__sentry_template_values__:e}=n;return o.logentry={message:t,params:e},o}return o.message=n,o}function Oo(t,{isUnhandledRejection:n}){const e=function(t,n=40){const e=Object.keys(et(t));e.sort();const r=e[0];if(!r)return"[object has no keys]";if(r.length>=n)return J(r,n);for(let t=e.length;t>0;t--){const r=e.slice(0,t).join(", ");if(!(r.length>n))return t===e.length?r:J(r,n)}return""}(t),r=n?"promise rejection":"exception";if(M(t))return`Event \`ErrorEvent\` captured as ${r} with message \`${t.message}\``;if(F(t)){return`Event \`${function(t){try{const n=Object.getPrototypeOf(t);return n?n.constructor.name:void 0}catch(t){}}(t)}\` (type=${t.type}) captured as ${r}`}return`Object captured as ${r} with keys: ${e}`}function Ro(t,{metadata:n,tunnel:e,dsn:r}){const o={event_id:t.event_id,sent_at:(new Date).toISOString(),...n&&n.sdk&&{sdk:{name:n.sdk.name,version:n.sdk.version}},...!!e&&!!r&&{dsn:Kn(r)}},i=function(t){return[{type:"user_report"},t]}(t);return ne(o,[i])}class Mo extends ar{constructor(t){const e={parentSpanIsAlwaysRootSpan:!0,...t};!function(t,e,r=[e],o="npm"){const i=t._metadata||{};i.sdk||(i.sdk={name:`sentry.javascript.${e}`,packages:r.map((t=>({name:`${o}:@sentry/${t}`,version:n}))),version:n}),t._metadata=i}(e,"browser",["browser"],mo.SENTRY_SDK_SOURCE||"cdn"),super(e),e.sendClientReports&&mo.document&&mo.document.addEventListener("visibilitychange",(()=>{"hidden"===mo.document.visibilityState&&this.$t()}))}eventFromException(t,n){return Io(this.ct.stackParser,t,n,this.ct.attachStacktrace)}eventFromMessage(t,n="info",e){return xo(this.ct.stackParser,t,n,e,this.ct.attachStacktrace)}captureUserFeedback(t){if(!this.bt())return;const n=Ro(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.sendEnvelope(n)}St(t,n,e){return t.platform=t.platform||"javascript",super.St(t,n,e)}}const Ao=(t,n,e,r)=>{let o,i;return s=>{n.value>=0&&(s||r)&&(i=n.value-(o||0),(i||void 0===o)&&(o=n.value,n.delta=i,n.rating=((t,n)=>t>n[1]?"poor":t>n[0]?"needs-improvement":"good")(n.value,e),t(n)))}},Po=e,Lo=(t=!0)=>{const n=Po.performance&&Po.performance.getEntriesByType&&Po.performance.getEntriesByType("navigation")[0];if(!t||n&&n.responseStart>0&&n.responseStart{const t=Lo();return t&&t.activationStart||0},Do=(t,n)=>{const e=Lo();let r="navigate";e&&(Po.document&&Po.document.prerendering||No()>0?r="prerender":Po.document&&Po.document.wasDiscarded?r="restore":e.type&&(r=e.type.replace(/_/g,"-")));return{name:t,value:void 0===n?-1:n,rating:"good",delta:0,entries:[],id:`v4-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:r}},Fo=(t,n,e)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(t)){const r=new PerformanceObserver((t=>{Promise.resolve().then((()=>{n(t.getEntries())}))}));return r.observe(Object.assign({type:t,buffered:!0},e||{})),r}}catch(t){}},qo=t=>{const n=n=>{("pagehide"===n.type||Po.document&&"hidden"===Po.document.visibilityState)&&t(n)};Po.document&&(addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0))},Uo=t=>{let n=!1;return()=>{n||(t(),n=!0)}};let Ho=-1;const Bo=t=>{"hidden"===Po.document.visibilityState&&Ho>-1&&(Ho="visibilitychange"===t.type?t.timeStamp:0,zo())},zo=()=>{removeEventListener("visibilitychange",Bo,!0),removeEventListener("prerenderingchange",Bo,!0)},Wo=()=>(Po.document&&Ho<0&&(Ho="hidden"!==Po.document.visibilityState||Po.document.prerendering?1/0:0,addEventListener("visibilitychange",Bo,!0),addEventListener("prerenderingchange",Bo,!0)),{get firstHiddenTime(){return Ho}}),Xo=t=>{Po.document&&Po.document.prerendering?addEventListener("prerenderingchange",(()=>t()),!0):t()},Go=[1800,3e3],Jo=[.1,.25],Ko=(t,n={})=>{((t,n={})=>{Xo((()=>{const e=Wo(),r=Do("FCP");let o;const i=Fo("paint",(t=>{t.forEach((t=>{"first-contentful-paint"===t.name&&(i.disconnect(),t.startTime{const e=Do("CLS",0);let r,o=0,i=[];const s=t=>{t.forEach((t=>{if(!t.hadRecentInput){const n=i[0],e=i[i.length-1];o&&n&&e&&t.startTime-e.startTime<1e3&&t.startTime-n.startTime<5e3?(o+=t.value,i.push(t)):(o=t.value,i=[t])}})),o>e.value&&(e.value=o,e.entries=i,r())},c=Fo("layout-shift",s);c&&(r=Ao(t,e,Jo,n.reportAllChanges),qo((()=>{s(c.takeRecords()),r(!0)})),setTimeout(r,0))})))},Yo=[100,300],Vo=(t,n={})=>{Xo((()=>{const e=Wo(),r=Do("FID");let o;const i=t=>{t.startTime{t.forEach(i)},c=Fo("first-input",s);o=Ao(t,r,Yo,n.reportAllChanges),c&&qo(Uo((()=>{s(c.takeRecords()),c.disconnect()})))}))};let Qo=0,Zo=1/0,ti=0;const ni=t=>{t.forEach((t=>{t.interactionId&&(Zo=Math.min(Zo,t.interactionId),ti=Math.max(ti,t.interactionId),Qo=ti?(ti-Zo)/7+1:0)}))};let ei;const ri=()=>{"interactionCount"in performance||ei||(ei=Fo("event",ni,{type:"event",buffered:!0,durationThreshold:0}))},oi=[],ii=new Map;const si=()=>(ei?Qo:performance.interactionCount||0)-0,ci=[],ui=t=>{if(ci.forEach((n=>n(t))),!t.interactionId&&"first-input"!==t.entryType)return;const n=oi[oi.length-1],e=ii.get(t.interactionId);if(e||oi.length<10||n&&t.duration>n.latency){if(e)t.duration>e.latency?(e.entries=[t],e.latency=t.duration):t.duration===e.latency&&t.startTime===(e.entries[0]&&e.entries[0].startTime)&&e.entries.push(t);else{const n={id:t.interactionId,latency:t.duration,entries:[t]};ii.set(n.id,n),oi.push(n)}oi.sort(((t,n)=>n.latency-t.latency)),oi.length>10&&oi.splice(10).forEach((t=>ii.delete(t.id)))}},ai=t=>{const n=Po.requestIdleCallback||Po.setTimeout;let e=-1;return t=Uo(t),Po.document&&"hidden"===Po.document.visibilityState?t():(e=n(t),qo(t)),e},fi=[200,500],di=(t,n={})=>{"PerformanceEventTiming"in Po&&"interactionId"in PerformanceEventTiming.prototype&&Xo((()=>{ri();const e=Do("INP");let r;const o=t=>{ai((()=>{t.forEach(ui);const n=(()=>{const t=Math.min(oi.length-1,Math.floor(si()/50));return oi[t]})();n&&n.latency!==e.value&&(e.value=n.latency,e.entries=n.entries,r())}))},i=Fo("event",o,{durationThreshold:null!=n.durationThreshold?n.durationThreshold:40});r=Ao(t,e,fi,n.reportAllChanges),i&&(i.observe({type:"first-input",buffered:!0}),qo((()=>{o(i.takeRecords()),r(!0)})))}))},li=[2500,4e3],hi={},pi=(t,n={})=>{Xo((()=>{const e=Wo(),r=Do("LCP");let o;const i=t=>{n.reportAllChanges||(t=t.slice(-1)),t.forEach((t=>{t.startTime{hi[r.id]||(i(s.takeRecords()),s.disconnect(),hi[r.id]=!0,o(!0))}));["keydown","click"].forEach((t=>{Po.document&&addEventListener(t,(()=>ai(e)),{once:!0,capture:!0})})),qo(e)}}))},mi=[800,1800],gi=t=>{Po.document&&Po.document.prerendering?Xo((()=>gi(t))):Po.document&&"complete"!==Po.document.readyState?addEventListener("load",(()=>gi(t)),!0):setTimeout(t,0)},yi=(t,n={})=>{const e=Do("TTFB"),r=Ao(t,e,mi,n.reportAllChanges);gi((()=>{const t=Lo();t&&(e.value=Math.max(t.responseStart-No(),0),e.entries=[t],r(!0))}))},vi={},bi={};let _i,wi,Si,Ei,Ti;function $i(t,n=!1){return Mi("cls",t,xi,_i,n)}function ki(t,n){return Ai(t,n),bi[t]||(!function(t){const n={};"event"===t&&(n.durationThreshold=0);Fo(t,(n=>{Ii(t,{entries:n})}),n)}(t),bi[t]=!0),Pi(t,n)}function Ii(t,n){const e=vi[t];if(e&&e.length)for(const t of e)try{t(n)}catch(t){}}function xi(){return Ko((t=>{Ii("cls",{metric:t}),_i=t}),{reportAllChanges:!0})}function ji(){return Vo((t=>{Ii("fid",{metric:t}),wi=t}))}function Ci(){return pi((t=>{Ii("lcp",{metric:t}),Si=t}),{reportAllChanges:!0})}function Oi(){return yi((t=>{Ii("ttfb",{metric:t}),Ei=t}))}function Ri(){return di((t=>{Ii("inp",{metric:t}),Ti=t}))}function Mi(t,n,e,r,o=!1){let i;return Ai(t,n),bi[t]||(i=e(),bi[t]=!0),r&&n({metric:r}),Pi(t,n,o?i:void 0)}function Ai(t,n){vi[t]=vi[t]||[],vi[t].push(n)}function Pi(t,n,e){return()=>{e&&e();const r=vi[t];if(!r)return;const o=r.indexOf(n);-1!==o&&r.splice(o,1)}}function Li(t){return"number"==typeof t&&isFinite(t)}function Ni(t,n,e,{...r}){const o=wn(t).start_timestamp;return o&&o>n&&"function"==typeof t.updateStartTime&&t.updateStartTime(n),_e(t,(()=>{const t=be({startTime:n,...r});return t&&t.end(e),t}))}function Di(t){const n=Ut();if(!n)return;const{name:e,transaction:r,attributes:o,startTime:i}=t,{release:s,environment:c}=n.getOptions(),u=n.getIntegrationByName("Replay"),a=u&&u.getReplayId(),f=Nt(),d=f.getUser(),l=void 0!==d?d.email||d.id||d.ip_address:void 0;let h;try{h=f.getScopeData().contexts.profile.profile_id}catch(t){}return be({name:e,attributes:{release:s,environment:c,user:l||void 0,profile_id:h||void 0,replay_id:a||void 0,transaction:r,"user_agent.original":Po.navigator&&Po.navigator.userAgent,...o},startTime:i,experimental:{standalone:!0}})}function Fi(){return Po&&Po.addEventListener&&Po.performance}function qi(t){return t/1e3}function Ui(){let t,n,e=0;if(!function(){try{return PerformanceObserver.supportedEntryTypes.includes("layout-shift")}catch(t){return!1}}())return;let r=!1;function o(){r||(r=!0,n&&function(t,n,e){const r=qi((ft||0)+(n&&n.startTime||0)),o=Nt().getScopeData().transactionName,i=n?W(n.sources[0]&&n.sources[0].node):"Layout shift",s=it({[Jt]:"auto.http.browser.cls",[Gt]:"ui.webvital.cls",[Zt]:n&&n.duration||0,"sentry.pageload.span_id":e}),c=Di({name:i,transaction:o,attributes:s,startTime:r});c&&(c.addEvent("cls",{[Yt]:"",[Vt]:t}),c.end(r))}(e,t,n),i())}const i=$i((({metric:n})=>{const r=n.entries[n.entries.length-1];r&&(e=n.value,t=r)}),!0);qo((()=>{o()})),setTimeout((()=>{const t=Ut();if(!t)return;const e=t.on("startNavigationSpan",(()=>{o(),e&&e()})),r=jn(),i=r&&xn(r),s=i&&wn(i);s&&"pageload"===s.op&&(n=i.spanContext().spanId)}),0)}const Hi=2147483647;let Bi,zi,Wi=0,Xi={};function Gi({recordClsStandaloneSpans:t}){const n=Fi();if(n&&ft){n.mark&&Po.performance.mark("sentry-tracing-init");const e=Mi("fid",(({metric:t})=>{const n=t.entries[t.entries.length-1];if(!n)return;const e=qi(ft),r=qi(n.startTime);Xi.fid={value:t.value,unit:"millisecond"},Xi["mark.fid"]={value:e+r,unit:"second"}}),ji,wi),r=function(t,n=!1){return Mi("lcp",t,Ci,Si,n)}((({metric:t})=>{const n=t.entries[t.entries.length-1];n&&(Xi.lcp={value:t.value,unit:"millisecond"},Bi=n)}),!0),o=function(t){return Mi("ttfb",t,Oi,Ei)}((({metric:t})=>{t.entries[t.entries.length-1]&&(Xi.ttfb={value:t.value,unit:"millisecond"})})),i=t?Ui():$i((({metric:t})=>{const n=t.entries[t.entries.length-1];n&&(Xi.cls={value:t.value,unit:""},zi=n)}),!0);return()=>{e(),r(),o(),i&&i()}}return()=>{}}function Ji(t,n){const e=Fi();if(!e||!e.getEntries||!ft)return;const r=qi(ft),o=e.getEntries(),{op:i,start_timestamp:s}=wn(t);if(o.slice(Wi).forEach((n=>{const e=qi(n.startTime),o=qi(Math.max(0,n.duration));if(!("navigation"===i&&s&&r+e{Ki(t,n,r,e)})),Ki(t,n,"secureConnection",e,"TLS/SSL"),Ki(t,n,"fetch",e,"cache"),Ki(t,n,"domainLookup",e,"DNS"),function(t,n,e){const r=e+qi(n.requestStart),o=e+qi(n.responseEnd),i=e+qi(n.responseStart);n.responseEnd&&(Ni(t,r,o,{op:"browser.request",name:n.name,attributes:{[Jt]:"auto.ui.browser.metrics"}}),Ni(t,i,o,{op:"browser.response",name:n.name,attributes:{[Jt]:"auto.ui.browser.metrics"}}))}(t,n,e)}(t,n,r);break;case"mark":case"paint":case"measure":{!function(t,n,e,r,o){const i=Lo(!1),s=qi(i?i.requestStart:0),c=o+Math.max(e,s),u=o+e,a=u+r,f={[Jt]:"auto.resource.browser.metrics"};c!==u&&(f["sentry.browser.measure_happened_before_request"]=!0,f["sentry.browser.measure_start_time"]=c);Ni(t,c,a,{name:n.name,op:n.entryType,attributes:f})}(t,n,e,o,r);const i=Wo(),s=n.startTime{le(t,n.value,n.unit)})),t.setAttribute("performance.timeOrigin",r),t.setAttribute("performance.activationStart",No()),function(t){Bi&&(Bi.element&&t.setAttribute("lcp.element",W(Bi.element)),Bi.id&&t.setAttribute("lcp.id",Bi.id),Bi.url&&t.setAttribute("lcp.url",Bi.url.trim().slice(0,200)),null!=Bi.loadTime&&t.setAttribute("lcp.loadTime",Bi.loadTime),null!=Bi.renderTime&&t.setAttribute("lcp.renderTime",Bi.renderTime),t.setAttribute("lcp.size",Bi.size));zi&&zi.sources&&zi.sources.forEach(((n,e)=>t.setAttribute(`cls.source.${e+1}`,W(n.node))))}(t)}Bi=void 0,zi=void 0,Xi={}}function Ki(t,n,e,r,o=e){const i=function(t){if("secureConnection"===t)return"connectEnd";if("fetch"===t)return"domainLookupStart";return`${t}End`}(e),s=n[i],c=n[`${e}Start`];c&&s&&Ni(t,r+qi(c),r+qi(s),{op:`browser.${o}`,name:n.name,attributes:{[Jt]:"auto.ui.browser.metrics"}})}function Yi(t,n,e,r){const o=n[e];null!=o&&o{const e=Po[n],r=e&&e.prototype;r&&r.hasOwnProperty&&r.hasOwnProperty("addEventListener")&&(Q(r,"addEventListener",(function(n){return function(e,r,o){if("click"===e||"keypress"==e)try{const r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},i=r[e]=r[e]||{refCount:0};if(!i.handler){const r=rs(t);i.handler=r,n.call(this,e,r,o)}i.refCount++}catch(t){}return n.call(this,e,r,o)}})),Q(r,"removeEventListener",(function(t){return function(n,e,r){if("click"===n||"keypress"==n)try{const e=this.__sentry_instrumentation_handlers__||{},o=e[n];o&&(o.refCount--,o.refCount<=0&&(t.call(this,n,o.handler,r),o.handler=void 0,delete e[n]),0===Object.keys(e).length&&delete this.__sentry_instrumentation_handlers__)}catch(t){}return t.call(this,n,e,r)}})))}))}function rs(t,n=!1){return e=>{if(!e||e._sentryCaptured)return;const r=function(t){try{return t.target}catch(t){return null}}(e);if(function(t,n){return"keypress"===t&&(!n||!n.tagName||"INPUT"!==n.tagName&&"TEXTAREA"!==n.tagName&&!n.isContentEditable)}(e.type,r))return;Z(e,"_sentryCaptured",!0),r&&!r._sentryId&&Z(r,"_sentryId",dt());const o="keypress"===e.type?"input":e.type;if(!function(t){if(t.type!==Zi)return!1;try{if(!t.target||t.target._sentryId!==ts)return!1}catch(t){}return!0}(e)){t({event:e,name:o,global:n}),Zi=e.type,ts=r?r._sentryId:void 0}clearTimeout(Qi),Qi=Po.setTimeout((()=>{ts=void 0,Zi=void 0}),Vi)}}function os(t){const n="history";b(n,t),_(n,is)}function is(){if(!function(){const t=ao.chrome,n=t&&t.app&&t.app.runtime,e="history"in ao&&!!ao.history.pushState&&!!ao.history.replaceState;return!n&&e}())return;const t=Po.onpopstate;function n(t){return function(...n){const e=n.length>2?n[2]:void 0;if(e){const t=ns,n=String(e);ns=n;w("history",{from:t,to:n})}return t.apply(this,n)}}Po.onpopstate=function(...n){const e=Po.location.href,r=ns;ns=e;if(w("history",{from:r,to:e}),t)try{return t.apply(this,n)}catch(t){}},Q(Po.history,"pushState",n),Q(Po.history,"replaceState",n)}const ss={};function cs(t){ss[t]=void 0}const us="__sentry_xhr_v3__";function as(t){b("xhr",t),_("xhr",fs)}function fs(){if(!Po.XMLHttpRequest)return;const t=XMLHttpRequest.prototype;t.open=new Proxy(t.open,{apply(t,n,e){const r=new Error,o=1e3*at(),i=P(e[0])?e[0].toUpperCase():void 0,s=function(t){if(P(t))return t;try{return t.toString()}catch(t){}return}(e[1]);if(!i||!s)return t.apply(n,e);n[us]={method:i,url:s,request_headers:{}},"POST"===i&&s.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const c=()=>{const t=n[us];if(t&&4===n.readyState){try{t.status_code=n.status}catch(t){}w("xhr",{endTimestamp:1e3*at(),startTimestamp:o,xhr:n,virtualError:r})}};return"onreadystatechange"in n&&"function"==typeof n.onreadystatechange?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply:(t,n,e)=>(c(),t.apply(n,e))}):n.addEventListener("readystatechange",c),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(t,n,e){const[r,o]=e,i=n[us];return i&&P(r)&&P(o)&&(i.request_headers[r.toLowerCase()]=o),t.apply(n,e)}}),t.apply(n,e)}}),t.send=new Proxy(t.send,{apply(t,n,e){const r=n[us];if(!r)return t.apply(n,e);void 0!==e[0]&&(r.body=e[0]);return w("xhr",{startTimestamp:1e3*at(),xhr:n}),t.apply(n,e)}})}const ds=[],ls=new Map;function hs(){if(Fi()&&ft){const t=Mi("inp",(({metric:t})=>{if(null==t.value)return;const n=t.entries.find((n=>n.duration===t.value&&ps[n.name]));if(!n)return;const{interactionId:e}=n,r=ps[n.name],o=qi(ft+n.startTime),i=qi(t.value),s=jn(),c=s?xn(s):void 0,u=(null!=e?ls.get(e):void 0)||c,a=u?wn(u).description:Nt().getScopeData().transactionName,f=Di({name:W(n.target),transaction:a,attributes:it({[Jt]:"auto.http.browser.inp",[Gt]:`ui.interaction.${r}`,[Zt]:n.duration}),startTime:o});f&&(f.addEvent("inp",{[Yt]:"millisecond",[Vt]:t.value}),f.end(o+i))}),Ri,Ti);return()=>{t()}}return()=>{}}const ps={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};function ms(t,n=function(t){const n=ss[t];if(n)return n;let e=Po[t];if(eo(e))return ss[t]=e.bind(Po);const r=Po.document;if(r&&"function"==typeof r.createElement)try{const n=r.createElement("iframe");n.hidden=!0,r.head.appendChild(n);const o=n.contentWindow;o&&o[t]&&(e=o[t]),r.head.removeChild(n)}catch(t){}return e?ss[t]=e.bind(Po):e}("fetch")){let e=0,r=0;return yr(t,(function(o){const i=o.body.length;e+=i,r++;const s={body:o.body,method:"POST",referrerPolicy:"origin",headers:t.headers,keepalive:e<=6e4&&r<15,...t.fetchOptions};if(!n)return cs("fetch"),bt("No fetch implementation available");try{return n(t.url,s).then((t=>(e-=i,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 cs("fetch"),e-=i,r--,bt(t)}}))}function gs(t,n,e,r){const o={filename:t,function:""===n?a:n,in_app:!0};return void 0!==e&&(o.lineno=e),void 0!==r&&(o.colno=r),o}const ys=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,vs=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,bs=/\((\S*)(?::(\d+))(?::(\d+))\)/,_s=[30,t=>{const n=ys.exec(t);if(n){const[,t,e,r]=n;return gs(t,a,+e,+r)}const e=vs.exec(t);if(e){if(e[2]&&0===e[2].indexOf("eval")){const t=bs.exec(e[2]);t&&(e[2]=t[1],e[3]=t[2],e[4]=t[3])}const[t,n]=Rs(e[1]||a,e[2]);return gs(n,t,e[3]?+e[3]:void 0,e[4]?+e[4]:void 0)}}],ws=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Ss=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Es=[50,t=>{const n=ws.exec(t);if(n){if(n[3]&&n[3].indexOf(" > eval")>-1){const t=Ss.exec(n[3]);t&&(n[1]=n[1]||"eval",n[3]=t[1],n[4]=t[2],n[5]="")}let t=n[3],e=n[1]||a;return[e,t]=Rs(e,t),gs(t,e,n[4]?+n[4]:void 0,n[5]?+n[5]:void 0)}}],Ts=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,$s=[40,t=>{const n=Ts.exec(t);return n?gs(n[2],n[1]||a,+n[3],n[4]?+n[4]:void 0):void 0}],ks=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,Is=[10,t=>{const n=ks.exec(t);return n?gs(n[2],n[3]||a,+n[1]):void 0}],xs=/ line (\d+), column (\d+)\s*(?:in (?:]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,js=[20,t=>{const n=xs.exec(t);return n?gs(n[5],n[3]||n[4]||a,+n[1],+n[2]):void 0}],Cs=[_s,Es],Os=l(...Cs),Rs=(t,n)=>{const e=-1!==t.indexOf("safari-extension"),r=-1!==t.indexOf("safari-web-extension");return e||r?[-1!==t.indexOf("@")?t.split("@")[0]:a,e?`safari-extension:${n}`:`safari-web-extension:${n}`]:[t,n]},Ms=1024,As=(t={})=>{const n={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...t};return{name:"Breadcrumbs",setup(t){var e;n.console&&function(t){const n="console";b(n,t),_(n,Mr)}(function(t){return function(n){if(Ut()!==t)return;const e={category:"console",data:{arguments:n.args,logger:"console"},level:Ar(n.level),message:K(n.args," ")};if("assert"===n.level){if(!1!==n.args[0])return;e.message=`Assertion failed: ${K(n.args.slice(1)," ")||"console.assert"}`,e.data.arguments=n.args.slice(1)}wr(e,{input:n.args,level:n.level})}}(t)),n.dom&&(e=function(t,n){return function(e){if(Ut()!==t)return;let r,o,i="object"==typeof n?n.serializeAttribute:void 0,s="object"==typeof n&&"number"==typeof n.maxStringLength?n.maxStringLength:void 0;s&&s>Ms&&(s=Ms),"string"==typeof i&&(i=[i]);try{const t=e.event,n=function(t){return!!t&&!!t.target}(t)?t.target:t;r=W(n,{keyAttrs:i,maxStringLength:s}),o=G(n)}catch(t){r=""}if(0===r.length)return;const c={category:`ui.${e.name}`,message:r};o&&(c.data={"ui.component_name":o}),wr(c,{event:e.event,name:e.name,global:e.global})}}(t,n.dom),b("dom",e),_("dom",es)),n.xhr&&as(function(t){return function(n){if(Ut()!==t)return;const{startTimestamp:e,endTimestamp:r}=n,o=n.xhr[us];if(!e||!r||!o)return;const{method:i,url:s,status_code:c,body:u}=o,a={method:i,url:s,status_code:c},f={xhr:n.xhr,input:u,startTimestamp:e,endTimestamp:r};wr({category:"xhr",data:a,type:"http",level:to(c)},f)}}(t)),n.fetch&&oo(function(t){return function(n){if(Ut()!==t)return;const{startTimestamp:e,endTimestamp:r}=n;if(r&&(!n.fetchData.url.match(/sentry_key/)||"POST"!==n.fetchData.method))if(n.error){wr({category:"fetch",data:n.fetchData,level:"error",type:"http"},{data:n.error,input:n.args,startTimestamp:e,endTimestamp:r})}else{const t=n.response,o={...n.fetchData,status_code:t&&t.status},i={input:n.args,response:t,startTimestamp:e,endTimestamp:r};wr({category:"fetch",data:o,type:"http",level:to(o.status_code)},i)}}}(t)),n.history&&os(function(t){return function(n){if(Ut()!==t)return;let e=n.from,r=n.to;const o=Rr(mo.location.href);let i=e?Rr(e):void 0;const s=Rr(r);i&&i.path||(i=o),o.protocol===s.protocol&&o.host===s.host&&(r=s.relative),o.protocol===i.protocol&&o.host===i.host&&(e=i.relative),wr({category:"navigation",data:{from:e,to:r}})}}(t)),n.sentry&&t.on("beforeSendEvent",function(t){return function(n){Ut()===t&&wr({category:"sentry."+("transaction"===n.type?"transaction":"event"),event_id:n.event_id,level:n.level,message:ht(n)},{event:n})}}(t))}}};const Ps=["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"],Ls=(t={})=>{const n={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...t};return{name:"BrowserApiErrors",setupOnce(){n.setTimeout&&Q(mo,"setTimeout",Ns),n.setInterval&&Q(mo,"setInterval",Ns),n.requestAnimationFrame&&Q(mo,"requestAnimationFrame",Ds),n.XMLHttpRequest&&"XMLHttpRequest"in mo&&Q(XMLHttpRequest.prototype,"send",Fs);const t=n.eventTarget;if(t){(Array.isArray(t)?t:Ps).forEach(qs)}}}};function Ns(t){return function(...n){const e=n[0];return n[0]=vo(e,{mechanism:{data:{function:m(t)},handled:!1,type:"instrument"}}),t.apply(this,n)}}function Ds(t){return function(n){return t.apply(this,[vo(n,{mechanism:{data:{function:"requestAnimationFrame",handler:m(t)},handled:!1,type:"instrument"}})])}}function Fs(t){return function(...n){const e=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((t=>{t in e&&"function"==typeof e[t]&&Q(e,t,(function(n){const e={mechanism:{data:{function:t,handler:m(n)},handled:!1,type:"instrument"}},r=nt(n);return r&&(e.mechanism.data.handler=m(r)),vo(n,e)}))})),t.apply(this,n)}}function qs(t){const n=mo[t],e=n&&n.prototype;e&&e.hasOwnProperty&&e.hasOwnProperty("addEventListener")&&(Q(e,"addEventListener",(function(n){return function(e,r,o){try{"function"==typeof r.handleEvent&&(r.handleEvent=vo(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:m(r),target:t},handled:!1,type:"instrument"}}))}catch(t){}return n.apply(this,[e,vo(r,{mechanism:{data:{function:"addEventListener",handler:m(r),target:t},handled:!1,type:"instrument"}}),o])}})),Q(e,"removeEventListener",(function(t){return function(n,e,r){try{const o=e.__sentry_wrapped__;o&&t.call(this,n,o,r)}catch(t){}return t.call(this,n,e,r)}})))}const Us=()=>({name:"BrowserSession",setupOnce(){void 0!==mo.document&&(Ve({ignoreDuration:!0}),tr(),os((({from:t,to:n})=>{void 0!==t&&t!==n&&(Ve({ignoreDuration:!0}),tr())})))}}),Hs=(t={})=>{const n={onerror:!0,onunhandledrejection:!0,...t};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(t){n.onerror&&function(t){E((n=>{const{stackParser:e,attachStacktrace:r}=Bs();if(Ut()!==t||yo())return;const{msg:o,url:i,line:s,column:c,error:u}=n,f=function(t,n,e,r){const o=t.exception=t.exception||{},i=o.values=o.values||[],s=i[0]=i[0]||{},c=s.stacktrace=s.stacktrace||{},u=c.frames=c.frames||[],f=r,d=e,l=P(n)&&n.length>0?n:function(){try{return B.document.location.href}catch(t){return""}}();0===u.length&&u.push({colno:f,filename:l,function:a,in_app:!0,lineno:d});return t}(jo(e,u||o,void 0,r,!1),i,s,c);f.level="error",Be(f,{originalException:u,mechanism:{handled:!1,type:"onerror"}})}))}(t),n.onunhandledrejection&&function(t){k((n=>{const{stackParser:e,attachStacktrace:r}=Bs();if(Ut()!==t||yo())return;const o=function(t){if(N(t))return t;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch(t){}return t}(n),i=N(o)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(o)}`}]}}:jo(e,o,void 0,r,!0);i.level="error",Be(i,{originalException:o,mechanism:{handled:!1,type:"onunhandledrejection"}})}))}(t)}}};function Bs(){const t=Ut();return t&&t.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const zs=()=>({name:"HttpContext",preprocessEvent(t){if(!mo.navigator&&!mo.location&&!mo.document)return;const n=t.request&&t.request.url||mo.location&&mo.location.href,{referrer:e}=mo.document||{},{userAgent:r}=mo.navigator||{},o={...t.request&&t.request.headers,...e&&{Referer:e},...r&&{"User-Agent":r}},i={...t.request,...n&&{url:n},headers:o};t.request=i}}),Ws=(t={})=>{const n=t.limit||5,e=t.key||"cause";return{name:"LinkedErrors",preprocessEvent(t,r,o){const i=o.getOptions();xr(bo,i.stackParser,i.maxValueLength,e,n,t,r)}}};function Xs(t){const n=[kr(),Tr(),Ls(),As(),Hs(),Ws(),Pr(),zs()];return!1!==t.autoSessionTracking&&n.push(Us()),n}const Gs={replayIntegration:"replay",replayCanvasIntegration:"replay-canvas",feedbackIntegration:"feedback",feedbackModalIntegration:"feedback-modal",feedbackScreenshotIntegration:"feedback-screenshot",captureConsoleIntegration:"captureconsole",contextLinesIntegration:"contextlines",linkedErrorsIntegration:"linkederrors",debugIntegration:"debug",dedupeIntegration:"dedupe",extraErrorDataIntegration:"extraerrordata",httpClientIntegration:"httpclient",reportingObserverIntegration:"reportingobserver",rewriteFramesIntegration:"rewriteframes",sessionTimingIntegration:"sessiontiming",browserProfilingIntegration:"browserprofiling",moduleMetadataIntegration:"modulemetadata"},Js=mo;const Ks={increment:function(t,n=1,e){Br.increment(Yr,t,n,e)},distribution:function(t,n,e){Br.distribution(Yr,t,n,e)},set:function(t,n,e){Br.set(Yr,t,n,e)},gauge:function(t,n,e){Br.gauge(Yr,t,n,e)},timing:function(t,n,e="second",r){return Br.timing(Yr,t,n,e,r)}};const Ys=new WeakMap,Vs=new Map,Qs={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function Zs(t,n){const{traceFetch:e,traceXHR:r,trackFetchStreamPerformance:o,shouldCreateSpanForRequest:i,enableHTTPTimings:s,tracePropagationTargets:c}={traceFetch:Qs.traceFetch,traceXHR:Qs.traceXHR,trackFetchStreamPerformance:Qs.trackFetchStreamPerformance,...n},u="function"==typeof i?i:t=>!0,a=t=>function(t,n){const e=mo.location&&mo.location.href;if(e){let r,o;try{r=new URL(t,e),o=new URL(e).origin}catch(t){return!1}const i=r.origin===o;return n?V(r.toString(),n)||i&&V(r.pathname,n):i}{const e=!!t.match(/^\/(?!\/)/);return n?V(t,n):e}}(t,c),f={};e&&(t.addEventProcessor((t=>("transaction"===t.type&&t.spans&&t.spans.forEach((t=>{if("http.client"===t.op){const n=Vs.get(t.span_id);n&&(t.timestamp=n/1e3,Vs.delete(t.span_id))}})),t))),o&&function(t){const n="fetch-body-resolved";b(n,t),_(n,(()=>io(so)))}((t=>{if(t.response){const n=Ys.get(t.response);n&&t.endTimestamp&&Vs.set(n,t.endTimestamp)}})),oo((t=>{const n=Vr(t,u,a,f);if(t.response&&t.fetchData.__span&&Ys.set(t.response,t.fetchData.__span),n){const e=ec(t.fetchData.url),r=e?Rr(e).host:void 0;n.setAttributes({"http.url":e,"server.address":r})}s&&n&&tc(n)}))),r&&as((t=>{const n=function(t,n,e,r){const o=t.xhr,i=o&&o[us];if(!o||o.__sentry_own_request__||!i)return;const s=Dn()&&n(i.url);if(t.endTimestamp&&s){const t=o.__sentry_xhr_span_id__;if(!t)return;const n=r[t];return void(n&&void 0!==i.status_code&&(rn(n,i.status_code),n.end(),delete r[t]))}const c=ec(i.url),u=c?Rr(c).host:void 0,a=!!jn(),f=s&&a?be({name:`${i.method} ${i.url}`,attributes:{type:"xhr","http.method":i.method,"http.url":c,url:i.url,"server.address":u,[Jt]:"auto.http.browser",[Gt]:"http.client"}}):new Fn;o.__sentry_xhr_span_id__=f.spanContext().spanId,r[o.__sentry_xhr_span_id__]=f,e(i.url)&&function(t,n){const{"sentry-trace":e,baggage:r}=br({span:n});e&&function(t,n,e){try{t.setRequestHeader("sentry-trace",n),e&&t.setRequestHeader("baggage",e)}catch(t){}}(t,e,r)}(o,Dn()&&a?f:void 0);return f}(t,u,a,f);s&&n&&tc(n)}))}function tc(t){const{url:n}=wn(t).data||{};if(!n||"string"!=typeof n)return;const e=ki("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(n)){(function(t){const{name:n,version:e}=function(t){let n="unknown",e="unknown",r="";for(const o of t){if("/"===o){[n,e]=t.split("/");break}if(!isNaN(Number(o))){n="h"===r?"http":r,e=t.split(r)[1];break}r+=o}r===t&&(n=r);return{name:n,version:e}}(t.nextHopProtocol),r=[];if(r.push(["network.protocol.version",e],["network.protocol.name",n]),!ft)return r;return[...r,["http.request.redirect_start",nc(t.redirectStart)],["http.request.fetch_start",nc(t.fetchStart)],["http.request.domain_lookup_start",nc(t.domainLookupStart)],["http.request.domain_lookup_end",nc(t.domainLookupEnd)],["http.request.connect_start",nc(t.connectStart)],["http.request.secure_connection_start",nc(t.secureConnectionStart)],["http.request.connection_end",nc(t.connectEnd)],["http.request.request_start",nc(t.requestStart)],["http.request.response_start",nc(t.responseStart)],["http.request.response_end",nc(t.responseEnd)]]})(r).forEach((n=>t.setAttribute(...n))),setTimeout(e)}}))}))}function nc(t=0){return((ft||performance.timeOrigin)+t)/1e3}function ec(t){try{return new URL(t,mo.location.origin).href}catch(t){return}}const rc={...Ie,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,_experiments:{},...Qs};function oc(t,n,e){t.emit("startPageLoadSpan",n,e),Nt().setTransactionName(n.name);const r=jn();return"pageload"===(r&&wn(r).op)?r:void 0}function ic(t,n){Dt().setPropagationContext({traceId:Et()}),Nt().setPropagationContext({traceId:Et()}),t.emit("startNavigationSpan",n),Nt().setTransactionName(n.name);const e=jn();return"navigation"===(e&&wn(e).op)?e:void 0}function sc(t){const n=(e=`meta[name=${t}]`,B.document&&B.document.querySelector?B.document.querySelector(e):null);var e;return n?n.getAttribute("content"):void 0}return Mn(),t.BrowserClient=Mo,t.SDK_VERSION=n,t.SEMANTIC_ATTRIBUTE_SENTRY_OP=Gt,t.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN=Jt,t.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE=Xt,t.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE=Wt,t.Scope=Ct,t.WINDOW=mo,t.addBreadcrumb=wr,t.addEventProcessor=function(t){Dt().addEventProcessor(t)},t.addIntegration=function(t){const n=Ut();n&&n.addIntegration(t)},t.breadcrumbsIntegration=As,t.browserApiErrorsIntegration=Ls,t.browserTracingIntegration=(t={})=>{Mn();const{enableInp:n,enableLongTask:r,enableLongAnimationFrame:o,_experiments:{enableInteractions:i,enableStandaloneClsSpans:s},beforeStartSpan:c,idleTimeout:u,finalTimeout:a,childSpanTimeout:f,markBackgroundSpan:d,traceFetch:l,traceXHR:h,trackFetchStreamPerformance:p,shouldCreateSpanForRequest:m,enableHTTPTimings:g,instrumentPageLoad:y,instrumentNavigation:v}={...rc,...t},b=Gi({recordClsStandaloneSpans:s||!1});n&&hs(),o&&e.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?new PerformanceObserver((t=>{const n=jn();if(n)for(const e of t.getEntries()){if(!e.scripts[0])continue;const t=qi(ft+e.startTime),{start_timestamp:r,op:o}=wn(n);if("navigation"===o&&r&&t{const n=jn();if(!n)return;const{op:e,start_timestamp:r}=wn(n);for(const o of t){const t=qi(ft+o.startTime),i=qi(o.duration);"navigation"===e&&r&&t{const n=jn();if(n)for(const e of t)if("click"===e.name){const t=qi(ft+e.startTime),r=qi(e.duration),o={name:W(e.target),op:`ui.interaction.${e.name}`,startTime:t,attributes:{[Jt]:"auto.ui.browser.metrics"}},i=G(e.target);i&&(o.attributes["ui.component_name"]=i),Ni(n,t,t+r,o)}}));const _={name:void 0,source:void 0};function w(t,n){const e="pageload"===n.op,r=c?c(n):n,o=r.attributes||{};n.name!==r.name&&(o[Wt]="custom",r.attributes=o),_.name=r.name,_.source=o[Wt];const i=Re(r,{idleTimeout:u,finalTimeout:a,childSpanTimeout:f,disableAutoFinish:e,beforeSpanEnd:t=>{b(),Ji(t,{recordClsOnPageloadSpan:!s})}});function d(){["interactive","complete"].includes(mo.document.readyState)&&t.emit("idleSpanEnableAutoFinish",i)}return e&&mo.document&&(mo.document.addEventListener("readystatechange",(()=>{d()})),d()),i}return{name:"BrowserTracing",afterAllSetup(t){let e,r=mo.location&&mo.location.href;function o(){e&&!wn(e).timestamp&&e.end()}t.on("startNavigationSpan",(n=>{Ut()===t&&(o(),e=w(t,{op:"navigation",...n}))})),t.on("startPageLoadSpan",((n,r={})=>{if(Ut()!==t)return;o();const i=ln(r.sentryTrace||sc("sentry-trace"),r.baggage||sc("baggage"));Nt().setPropagationContext(i),e=w(t,{op:"pageload",...n})})),t.on("spanEnd",(t=>{const n=wn(t).op;if(t!==xn(t)||"navigation"!==n&&"pageload"!==n)return;const e=Nt(),r=e.getPropagationContext();e.setPropagationContext({...r,sampled:void 0!==r.sampled?r.sampled:Sn(t),dsc:r.dsc||Xn(t)})})),mo.location&&(y&&oc(t,{name:mo.location.pathname,startTime:ft?ft/1e3:void 0,attributes:{[Wt]:"url",[Jt]:"auto.pageload.browser"}}),v&&os((({to:n,from:e})=>{void 0===e&&r&&-1!==r.indexOf(n)?r=void 0:e!==n&&(r=void 0,ic(t,{name:mo.location.pathname,attributes:{[Wt]:"url",[Jt]:"auto.navigation.browser"}}))}))),d&&mo&&mo.document&&mo.document.addEventListener("visibilitychange",(()=>{const t=jn();if(!t)return;const n=xn(t);if(mo.document.hidden&&n){const t="cancelled",{op:e,status:r}=wn(n);r||n.setStatus({code:en,message:t}),n.setAttribute("sentry.cancellation_reason","document.hidden"),n.end()}})),i&&function(t,n,e,r){let o;const i=()=>{const i="ui.action.click",s=jn(),c=s&&xn(s);if(c){const t=wn(c).op;if(["navigation","pageload"].includes(t))return}o&&(o.setAttribute(Kt,"interactionInterrupted"),o.end(),o=void 0),r.name&&(o=Re({name:r.name,op:i,attributes:{[Wt]:r.source||"url"}},{idleTimeout:t,finalTimeout:n,childSpanTimeout:e}))};mo.document&&addEventListener("click",i,{once:!1,capture:!0})}(u,a,f,_),n&&function(t){const n=({entries:t})=>{const n=jn(),e=n&&xn(n);t.forEach((t=>{if(!function(t){return"duration"in t}(t)||!e)return;const n=t.interactionId;if(null!=n&&!ls.has(n)){if(ds.length>10){const t=ds.shift();ls.delete(t)}ds.push(n),ls.set(n,e)}}))};ki("event",n),ki("first-input",n)}(),Zs(t,{traceFetch:l,traceXHR:h,trackFetchStreamPerformance:p,tracePropagationTargets:t.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:m,enableHTTPTimings:g})}}},t.captureEvent=Be,t.captureException=captureException,t.captureMessage=function(t,n){const e="string"==typeof n?n:void 0,r="string"!=typeof n?{captureContext:n}:void 0;return Nt().captureMessage(t,e,r)},t.captureSession=tr,t.captureUserFeedback=function(t){const n=Ut();n&&n.captureUserFeedback(t)},t.chromeStackLineParser=_s,t.close=async function(t){const n=Ut();return n?n.close(t):Promise.resolve(!1)},t.continueTrace=(t,n)=>{const e=Lt(x());if(e.continueTrace)return e.continueTrace(t,n);const{sentryTrace:r,baggage:o}=t;return qt((t=>{const e=ln(r,o);return t.setPropagationContext(e),n()}))},t.createTransport=yr,t.createUserFeedbackEnvelope=Ro,t.dedupeIntegration=Pr,t.defaultStackLineParsers=Cs,t.defaultStackParser=Os,t.endSession=Qe,t.eventFromException=Io,t.eventFromMessage=xo,t.exceptionFromError=bo,t.feedbackAsyncIntegration=ho,t.feedbackIntegration=ho,t.flush=async function(t){const n=Ut();return n?n.flush(t):Promise.resolve(!1)},t.forceLoad=function(){},t.functionToStringIntegration=Tr,t.geckoStackLineParser=Es,t.getActiveSpan=jn,t.getClient=Ut,t.getCurrentHub=Zr,t.getCurrentScope=Nt,t.getDefaultIntegrations=Xs,t.getGlobalScope=Ft,t.getIsolationScope=Dt,t.getRootSpan=xn,t.getSpanDescendants=In,t.globalHandlersIntegration=Hs,t.httpContextIntegration=zs,t.inboundFiltersIntegration=kr,t.init=function(t={}){const n=function(t={}){const n={defaultIntegrations:Xs(t),release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:mo.SENTRY_RELEASE&&mo.SENTRY_RELEASE.id?mo.SENTRY_RELEASE.id:void 0,autoSessionTracking:!0,sendClientReports:!0};return null==t.defaultIntegrations&&delete t.defaultIntegrations,{...n,...t}}(t);if(!n.skipBrowserExtensionCheck&&function(){const t=void 0!==mo.window&&mo;if(!t)return!1;const n=t[t.chrome?"chrome":"browser"],e=n&&n.runtime&&n.runtime.id,r=mo.location&&mo.location.href||"",o=!!e&&mo===mo.top&&["chrome-extension:","moz-extension:","ms-browser-extension:","safari-web-extension:"].some((t=>r.startsWith(`${t}//`))),i=void 0!==t.nw;return!!e&&!o&&!i}())return void s((()=>{console.error("[Sentry] You cannot run Sentry this way in a browser extension, check: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}));const e={...n,stackParser:(r=n.stackParser||Os,Array.isArray(r)?l(...r):r),integrations:ir(n),transport:n.transport||ms};var r;return function(t,n){!0===n.debug&&s((()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),Nt().update(n.initialScope);const e=new t(n);return lr(e),e.init(),e}(Mo,e)},t.isInitialized=function(){return!!Ut()},t.lastEventId=Ye,t.lazyLoadIntegration=async function(t,e){const r=Gs[t],o=Js.Sentry=Js.Sentry||{};if(!r)throw new Error(`Cannot lazy load integration: ${t}`);const i=o[t];if("function"==typeof i&&!("_isShim"in i))return i;const s=function(t){const e=Ut(),r=e&&e.getOptions(),o=r&&r.cdnBaseUrl||"https://browser.sentry-cdn.com";return new URL(`/${n}/${t}.min.js`,o).toString()}(r),c=mo.document.createElement("script");c.src=s,c.crossOrigin="anonymous",c.referrerPolicy="origin",e&&c.setAttribute("nonce",e);const u=new Promise(((t,n)=>{c.addEventListener("load",(()=>t())),c.addEventListener("error",n)})),a=mo.document.currentScript,f=mo.document.body||mo.document.head||a&&a.parentElement;if(!f)throw new Error(`Could not find parent element to insert lazy-loaded ${t} script`);f.appendChild(c);try{await u}catch(n){throw new Error(`Error when loading integration: ${t}`)}const d=o[t];if("function"!=typeof d)throw new Error(`Could not load integration: ${t}`);return d},t.linkedErrorsIntegration=Ws,t.makeFetchTransport=ms,t.metrics=Ks,t.onLoad=function(t){t()},t.opera10StackLineParser=Is,t.opera11StackLineParser=js,t.parameterize=function(t,...n){const e=new String(String.raw(t,...n));return e.__sentry_template_string__=t.join("\0").replace(/%/g,"%%").replace(/\0/g,"%s"),e.__sentry_template_values__=n,e},t.replayIntegration=function(t){return s((()=>{console.warn("You are using replayIntegration() even though this bundle does not include replay.")})),{name:"Replay",...po.reduce(((t,n)=>(t[n]=fo,t)),{})}},t.setContext=ze,t.setCurrentClient=lr,t.setExtra=Xe,t.setExtras=We,t.setMeasurement=le,t.setTag=Je,t.setTags=Ge,t.setUser=Ke,t.showReportDialog=function(t={}){if(!mo.document)return;const n=Nt(),e=n.getClient(),r=e&&e.getDsn();if(!r)return;if(n&&(t.user={...n.getUser(),...t.user}),!t.eventId){const n=Ye();n&&(t.eventId=n)}const o=mo.document.createElement("script");o.async=!0,o.crossOrigin="anonymous",o.src=function(t,n){const e=Vn(t);if(!e)return"";const r=`${er(e)}embed/error-page/`;let o=`dsn=${Kn(e)}`;for(const t in n)if("dsn"!==t&&"onClose"!==t)if("user"===t){const t=n.user;if(!t)continue;t.name&&(o+=`&name=${encodeURIComponent(t.name)}`),t.email&&(o+=`&email=${encodeURIComponent(t.email)}`)}else o+=`&${encodeURIComponent(t)}=${encodeURIComponent(n[t])}`;return`${r}?${o}`}(r,t),t.onLoad&&(o.onload=t.onLoad);const{onClose:i}=t;if(i){const t=n=>{if("__sentry_reportdialog_closed__"===n.data)try{i()}finally{mo.removeEventListener("message",t)}};mo.addEventListener("message",t)}const s=mo.document.head||mo.document.body;s&&s.appendChild(o)},t.spanToBaggageHeader=function(t){return an(Xn(t))},t.spanToJSON=wn,t.spanToTraceHeader=vn,t.startBrowserTracingNavigationSpan=ic,t.startBrowserTracingPageLoadSpan=oc,t.startInactiveSpan=be,t.startNewTrace=function(t){return qt((n=>(n.setPropagationContext({traceId:Et()}),_e(null,t))))},t.startSession=Ve,t.startSpan=function(t,n){const e=Ee();if(e.startSpan)return e.startSpan(t,n);const r=Se(t),{forceTransaction:o,parentSpan:i}=t;return qt(t.scope,(()=>ke(i)((()=>{const e=Nt(),i=$e(e),s=t.onlyIfParent&&!i?new Fn:we({parentSpan:i,spanArguments:r,forceTransaction:o,scope:e});return It(e,s),qn((()=>n(s)),(()=>{const{status:t}=wn(s);!s.isRecording()||t&&"ok"!==t||s.setStatus({code:en,message:"internal_error"})}),(()=>s.end()))}))))},t.startSpanManual=ve,t.suppressTracing=function(t){const n=Ee();return n.suppressTracing?n.suppressTracing(t):qt((n=>(n.setSDKProcessingMetadata({[ye]:!0}),t())))},t.updateSpanName=function(t,n){t.updateName(n),t.setAttributes({[Wt]:"custom",[Qt]:n})},t.winjsStackLineParser=$s,t.withActiveSpan=_e,t.withIsolationScope=function(...t){const n=Lt(x());if(2===t.length){const[e,r]=t;return e?n.withSetIsolationScope(e,r):n.withIsolationScope(r)}return n.withIsolationScope(t[0])},t.withScope=qt,t}({}); //# sourceMappingURL=bundle.tracing.min.js.map