raven-8.x-2.x-dev/js/bundle.tracing.min.js

js/bundle.tracing.min.js
/*! @sentry/browser (Performance Monitoring) 10.25.0 (d9cf9a4) | https://github.com/getsentry/sentry-javascript */
var Sentry=function(t){t=window.Sentry||{};const n=globalThis,e="10.25.0";function r(){return o(n),n}function o(t){const n=t.__SENTRY__=t.__SENTRY__||{};return n.version=n.version||e,n[e]=n[e]||{}}function i(t,r,o=n){const i=o.__SENTRY__=o.__SENTRY__||{},s=i[e]=i[e]||{};return s[t]||(s[t]=r())}const s=["debug","info","warn","error","log","assert","trace"],c={};function a(t){if(!("console"in n))return t();const e=n.console,r={},o=Object.keys(c);o.forEach(t=>{const n=c[t];r[t]=e[t],e[t]=n});try{return t()}finally{o.forEach(t=>{e[t]=r[t]})}}const u="?",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;t<i.length;t++){let e=i[t];e.length>1024&&(e=e.slice(0,1024));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>=50+r)break}}return function(t){if(!t.length)return[];const n=Array.from(t);/sentryWrapped/.test(p(n).function||"")&&n.pop();n.reverse(),d.test(p(n).function||"")&&(n.pop(),d.test(p(n).function||"")&&n.pop());return n.slice(0,50).map(t=>({...t,filename:t.filename||p(n).filename,function:t.function||u}))}(o.slice(r))}}function p(t){return t[t.length-1]||{}}const h="<anonymous>";function m(t){try{return t&&"function"==typeof t&&t.name||h}catch{return h}}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{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 S(t,n){const e=t&&y[t];if(e)for(const t of e)try{t(n)}catch(t){}}let w=null;function E(t){const n="error";b(n,t),_(n,T)}function T(){w=n.onerror,n.onerror=function(t,n,e,r,o){return S("error",{column:r,error:o,line:e,msg:t,url:n}),!!w&&w.apply(this,arguments)},n.onerror.__SENTRY_INSTRUMENTED__=!0}let k=null;function $(t){const n="unhandledrejection";b(n,t),_(n,x)}function x(){k=n.onunhandledrejection,n.onunhandledrejection=function(t){return S("unhandledrejection",t),!k||k.apply(this,arguments)},n.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const I=Object.prototype.toString;function R(t){switch(I.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return D(t,Error)}}function O(t,n){return I.call(t)===`[object ${n}]`}function j(t){return O(t,"ErrorEvent")}function M(t){return O(t,"DOMError")}function L(t){return O(t,"String")}function P(t){return"object"==typeof t&&null!==t&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function C(t){return null===t||P(t)||"object"!=typeof t&&"function"!=typeof t}function A(t){return O(t,"Object")}function N(t){return"undefined"!=typeof Event&&D(t,Event)}function q(t){return Boolean(t?.then&&"function"==typeof t.then)}function D(t,n){try{return t instanceof n}catch{return!1}}function F(t){return!("object"!=typeof t||null===t||!t.__isVue&&!t.t)}function U(t){return"undefined"!=typeof Request&&D(t,Request)}const B=n;function H(t,n={}){if(!t)return"<unknown>";try{let e=t;const r=5,o=[];let i=0,s=0;const c=" > ",a=c.length;let u;const f=Array.isArray(n)?n:n.keyAttrs,d=!Array.isArray(n)&&n.maxStringLength||80;for(;e&&i++<r&&(u=z(e,f),!("html"===u||i>1&&s+o.length*a+u.length>=d));)o.push(u),s+=u.length,e=e.parentNode;return o.reverse().join(c)}catch{return"<unknown>"}}function z(t,n){const e=t,r=[];if(!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?.length?n.filter(t=>e.getAttribute(t)).map(t=>[t,e.getAttribute(t)]):null;if(o?.length)o.forEach(t=>{r.push(`[${t[0]}="${t[1]}"]`)});else{e.id&&r.push(`#${e.id}`);const t=e.className;if(t&&L(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 W(){try{return B.document.location.href}catch{return""}}function J(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 X(t,n,e){if(!(n in t))return;const r=t[n];if("function"!=typeof r)return;const o=e(r);"function"==typeof o&&K(o,r);try{t[n]=o}catch{}}function G(t,n,e){try{Object.defineProperty(t,n,{value:e,writable:!0,configurable:!0})}catch{}}function K(t,n){try{const e=n.prototype||{};t.prototype=n.prototype=e,G(t,"__sentry_original__",n)}catch{}}function Y(t){return t.__sentry_original__}function V(t){if(R(t))return{message:t.message,name:t.name,stack:t.stack,...Q(t)};if(N(t)){const n={type:t.type,target:Z(t.target),currentTarget:Z(t.currentTarget),...Q(t)};return"undefined"!=typeof CustomEvent&&D(t,CustomEvent)&&(n.detail=t.detail),n}return t}function Z(t){try{return n=t,"undefined"!=typeof Element&&D(n,Element)?H(t):Object.prototype.toString.call(t)}catch{return"<unknown>"}var n}function Q(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 tt(t,n=0){return"string"!=typeof t||0===n||t.length<=n?t:`${t.slice(0,n)}...`}function nt(t,n){if(!Array.isArray(t))return"";const e=[];for(let n=0;n<t.length;n++){const r=t[n];try{F(r)?e.push("[VueViewModel]"):e.push(String(r))}catch{e.push("[value cannot be serialized]")}}return e.join(n)}function et(t,n,e=!1){return!!L(t)&&(O(n,"RegExp")?n.test(t):!!L(n)&&(e?t===n:t.includes(n)))}function rt(t,n=[],e=!1){return n.some(n=>et(t,n,e))}let ot;function it(t=function(){const t=n;return t.crypto||t.msCrypto}()){try{if(t?.randomUUID)return t.randomUUID().replace(/-/g,"")}catch{}return ot||(ot=[1e7]+1e3+4e3+8e3+1e11),ot.replace(/[018]/g,t=>(t^(16*Math.random()&15)>>t/4).toString(16))}function st(t){return t.exception?.values?.[0]}function ct(t){const{message:n,event_id:e}=t;if(n)return n;const r=st(t);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||e||"<unknown>":e||"<unknown>"}function at(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 ut(t,n){const e=st(t);if(!e)return;const r=e.mechanism;if(e.mechanism={type:"generic",handled:!0,...r,...n},n&&"data"in n){const t={...r?.data,...n.data};e.mechanism.data=t}}function ft(t){if(function(t){try{return t.__sentry_captured__}catch{}}(t))return!0;try{G(t,"__sentry_captured__",!0)}catch{}return!1}function dt(){return Date.now()/1e3}let lt,pt;function ht(){return(lt??(lt=function(){const{performance:t}=n;if(!t?.now||!t.timeOrigin)return dt;const e=t.timeOrigin;return()=>(e+t.now())/1e3}()))()}function mt(){return pt||(pt=function(){const{performance:t}=n;if(!t?.now)return[void 0,"none"];const e=36e5,r=t.now(),o=Date.now(),i=t.timeOrigin?Math.abs(t.timeOrigin+r-o):e,s=i<e,c=t.timing?.navigationStart,a="number"==typeof c?Math.abs(c+r-o):e;return s||a<e?i<=a?[t.timeOrigin,"timeOrigin"]:[c,"navigationStart"]:[o,"dateNow"]}()),pt[0]}function gt(t){const n=ht(),e={sid:it(),init:!0,timestamp:n,started:n,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(t){return{sid:`${t.sid}`,init:t.init,started:new Date(1e3*t.started).toISOString(),timestamp:new Date(1e3*t.timestamp).toISOString(),status:t.status,errors:t.errors,did:"number"==typeof t.did||"string"==typeof t.did?`${t.did}`:void 0,duration:t.duration,abnormal_mechanism:t.abnormal_mechanism,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}}}(e)};return t&&yt(e,t),e}function yt(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||ht(),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:it()),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 vt(t,n,e=2){if(!n||"object"!=typeof n||e<=0)return n;if(t&&0===Object.keys(n).length)return t;const r={...t};for(const t in n)Object.prototype.hasOwnProperty.call(n,t)&&(r[t]=vt(r[t],n[t],e-1));return r}function bt(){return it()}function _t(){return it().substring(16)}const St="_sentrySpan";function wt(t,n){n?G(t,St,n):delete t[St]}function Et(t){return t[St]}class Tt{constructor(){this.o=!1,this.i=[],this.u=[],this.l=[],this.p=[],this.h={},this.m={},this.v={},this._={},this.S={},this.T={traceId:bt(),sampleRand:Math.random()}}clone(){const t=new Tt;return t.l=[...this.l],t.m={...this.m},t.v={...this.v},t._={...this._},this._.flags&&(t._.flags={values:[...this._.flags.values]}),t.h=this.h,t.k=this.k,t.I=this.I,t.R=this.R,t.O=this.O,t.u=[...this.u],t.p=[...this.p],t.S={...this.S},t.T={...this.T},t.j=this.j,t.M=this.M,wt(t,Et(this)),t}setClient(t){this.j=t}setLastEventId(t){this.M=t}getClient(){return this.j}lastEventId(){return this.M}addScopeListener(t){this.i.push(t)}addEventProcessor(t){return this.u.push(t),this}setUser(t){return this.h=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this.I&&yt(this.I,{user:t}),this.L(),this}getUser(){return this.h}setTags(t){return this.m={...this.m,...t},this.L(),this}setTag(t,n){return this.m={...this.m,[t]:n},this.L(),this}setExtras(t){return this.v={...this.v,...t},this.L(),this}setExtra(t,n){return this.v={...this.v,[t]:n},this.L(),this}setFingerprint(t){return this.O=t,this.L(),this}setLevel(t){return this.k=t,this.L(),this}setTransactionName(t){return this.R=t,this.L(),this}setContext(t,n){return null===n?delete this._[t]:this._[t]=n,this.L(),this}setSession(t){return t?this.I=t:delete this.I,this.L(),this}getSession(){return this.I}update(t){if(!t)return this;const n="function"==typeof t?t(this):t,e=n instanceof Tt?n.getScopeData():A(n)?t:void 0,{tags:r,extra:o,user:i,contexts:s,level:c,fingerprint:a=[],propagationContext:u}=e||{};return this.m={...this.m,...r},this.v={...this.v,...o},this._={...this._,...s},i&&Object.keys(i).length&&(this.h=i),c&&(this.k=c),a.length&&(this.O=a),u&&(this.T=u),this}clear(){return this.l=[],this.m={},this.v={},this.h={},this._={},this.k=void 0,this.R=void 0,this.O=void 0,this.I=void 0,wt(this,void 0),this.p=[],this.setPropagationContext({traceId:bt(),sampleRand:Math.random()}),this.L(),this}addBreadcrumb(t,n){const e="number"==typeof n?n:100;if(e<=0)return this;const r={timestamp:dt(),...t,message:t.message?tt(t.message,2048):t.message};return this.l.push(r),this.l.length>e&&(this.l=this.l.slice(-e),this.j?.recordDroppedEvent("buffer_overflow","log_item")),this.L(),this}getLastBreadcrumb(){return this.l[this.l.length-1]}clearBreadcrumbs(){return this.l=[],this.L(),this}addAttachment(t){return this.p.push(t),this}clearAttachments(){return this.p=[],this}getScopeData(){return{breadcrumbs:this.l,attachments:this.p,contexts:this._,tags:this.m,extra:this.v,user:this.h,level:this.k,fingerprint:this.O||[],eventProcessors:this.u,propagationContext:this.T,sdkProcessingMetadata:this.S,transactionName:this.R,span:Et(this)}}setSDKProcessingMetadata(t){return this.S=vt(this.S,t,2),this}setPropagationContext(t){return this.T=t,this}getPropagationContext(){return this.T}captureException(t,n){const e=n?.event_id||it();if(!this.j)return e;const r=new Error("Sentry syntheticException");return this.j.captureException(t,{originalException:t,syntheticException:r,...n,event_id:e},this),e}captureMessage(t,n,e){const r=e?.event_id||it();if(!this.j)return r;const o=new Error(t);return this.j.captureMessage(t,n,{originalException:t,syntheticException:o,...e,event_id:r},this),r}captureEvent(t,n){const e=n?.event_id||it();return this.j?(this.j.captureEvent(t,{...n,event_id:e},this),e):e}L(){this.o||(this.o=!0,this.i.forEach(t=>{t(this)}),this.o=!1)}}class kt{constructor(t,n){let e,r;e=t||new Tt,r=n||new Tt,this.P=[{scope:e}],this.C=r}withScope(t){const n=this.A();let e;try{e=t(n)}catch(t){throw this.N(),t}return q(e)?e.then(t=>(this.N(),t),t=>{throw this.N(),t}):(this.N(),e)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this.C}getStackTop(){return this.P[this.P.length-1]}A(){const t=this.getScope().clone();return this.P.push({client:this.getClient(),scope:t}),t}N(){return!(this.P.length<=1)&&!!this.P.pop()}}function $t(){const t=o(r());return t.stack=t.stack||new kt(i("defaultCurrentScope",()=>new Tt),i("defaultIsolationScope",()=>new Tt))}function xt(t){return $t().withScope(t)}function It(t,n){const e=$t();return e.withScope(()=>(e.getStackTop().scope=t,n(t)))}function Rt(t){return $t().withScope(()=>t($t().getIsolationScope()))}function Ot(t){const n=o(t);return n.acs?n.acs:{withIsolationScope:Rt,withScope:xt,withSetScope:It,withSetIsolationScope:(t,n)=>Rt(n),getCurrentScope:()=>$t().getScope(),getIsolationScope:()=>$t().getIsolationScope()}}function jt(){return Ot(r()).getCurrentScope()}function Mt(){return Ot(r()).getIsolationScope()}function Lt(){return i("globalScope",()=>new Tt)}function Pt(...t){const n=Ot(r());if(2===t.length){const[e,r]=t;return e?n.withSetScope(e,r):n.withScope(r)}return n.withScope(t[0])}function Ct(){return jt().getClient()}function At(t){const n=t.getPropagationContext(),{traceId:e,parentSpanId:r,propagationSpanId:o}=n,i={trace_id:e,span_id:o||_t()};return r&&(i.parent_span_id=r),i}const Nt="sentry.source",qt="sentry.sample_rate",Dt="sentry.previous_trace_sample_rate",Ft="sentry.op",Ut="sentry.origin",Bt="sentry.idle_span_finish_reason",Ht="sentry.measurement_unit",zt="sentry.measurement_value",Wt="sentry.custom_span_name",Jt="sentry.profile_id",Xt="sentry.exclusive_time",Gt="sentry.link.type";function Kt(t,n){t.setAttribute("http.response.status_code",n);const e=function(t){if(t<400&&t>=100)return{code:1};if(t>=400&&t<500)switch(t){case 401:return{code:2,message:"unauthenticated"};case 403:return{code:2,message:"permission_denied"};case 404:return{code:2,message:"not_found"};case 409:return{code:2,message:"already_exists"};case 413:return{code:2,message:"failed_precondition"};case 429:return{code:2,message:"resource_exhausted"};case 499:return{code:2,message:"cancelled"};default:return{code:2,message:"invalid_argument"}}if(t>=500&&t<600)switch(t){case 501:return{code:2,message:"unimplemented"};case 503:return{code:2,message:"unavailable"};case 504:return{code:2,message:"deadline_exceeded"};default:return{code:2,message:"internal_error"}}return{code:2,message:"internal_error"}}(n);"unknown_error"!==e.message&&t.setStatus(e)}const Yt="_sentryScope",Vt="_sentryIsolationScope";function Zt(t){if(t){if("object"==typeof t&&"deref"in t&&"function"==typeof t.deref)try{return t.deref()}catch{return}return t}}function Qt(t,e,r){t&&(G(t,Vt,function(t){try{const e=n.WeakRef;if("function"==typeof e)return new e(t)}catch{}return t}(r)),G(t,Yt,e))}function tn(t){const n=t;return{scope:n[Yt],isolationScope:Zt(n[Vt])}}const nn="sentry-",en=/^sentry-/;function rn(t){const n=function(t){if(!t||!L(t)&&!Array.isArray(t))return;if(Array.isArray(t))return t.reduce((t,n)=>{const e=sn(n);return Object.entries(e).forEach(([n,e])=>{t[n]=e}),t},{});return sn(t)}(t);if(!n)return;const e=Object.entries(n).reduce((t,[n,e])=>{if(n.match(en)){t[n.slice(7)]=e}return t},{});return Object.keys(e).length>0?e:void 0}function on(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>8192?t:i},"")}(Object.entries(t).reduce((t,[n,e])=>(e&&(t[`${nn}${n}`]=e),t),{}))}function sn(t){return t.split(",").map(t=>{const n=t.indexOf("=");if(-1===n)return[];return[t.slice(0,n),t.slice(n+1)].map(t=>{try{return decodeURIComponent(t.trim())}catch{return}})}).reduce((t,[n,e])=>(n&&e&&(t[n]=e),t),{})}const cn=/^o(\d+)\./,an=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function un(t,n=!1){const{host:e,path:r,pass:o,port:i,projectId:s,protocol:c,publicKey:a}=t;return`${c}://${a}${n&&o?`:${o}`:""}@${e}${i?`:${i}`:""}/${r?`${r}/`:r}${s}`}function fn(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function dn(t){const n=t.getOptions(),{host:e}=t.getDsn()||{};let r;return n.orgId?r=String(n.orgId):e&&(r=function(t){const n=t.match(cn);return n?.[1]}(e)),r}function ln(t){const n="string"==typeof t?function(t){const n=an.exec(t);if(!n)return void a(()=>{console.error(`Invalid Sentry Dsn: ${t}`)});const[e,r,o="",i="",s="",c=""]=n.slice(1);let u="",f=c;const d=f.split("/");if(d.length>1&&(u=d.slice(0,-1).join("/"),f=d.pop()),f){const t=f.match(/^\d+/);t&&(f=t[0])}return fn({host:i,pass:o,path:u,projectId:f,port:s,protocol:e,publicKey:r})}(t):fn(t);if(n)return n}function pn(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 hn=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function mn(t,n){const e=function(t){if(!t)return;const n=t.match(hn);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=rn(n);if(!e?.traceId)return{traceId:bt(),sampleRand:Math.random()};const o=function(t,n){const e=pn(n?.sample_rand);if(void 0!==e)return e;const r=pn(n?.sample_rate);return r&&void 0!==t?.parentSampled?t.parentSampled?Math.random()*r:r+Math.random()*(1-r):Math.random()}(e,r);r&&(r.sample_rand=o.toString());const{traceId:i,parentSpanId:s,parentSampled:c}=e;return{traceId:i,parentSpanId:s,sampled:c,dsc:r||{},sampleRand:o}}function gn(t=bt(),n=_t(),e){let r="";return void 0!==e&&(r=e?"-1":"-0"),`${t}-${n}${r}`}function yn(t=bt(),n=_t(),e){return`00-${t}-${n}-${e?"01":"00"}`}let vn=!1;function bn(t){const{spanId:n,traceId:e}=t.spanContext(),{data:r,op:o,parent_span_id:i,status:s,origin:c,links:a}=kn(t);return{parent_span_id:i,span_id:n,trace_id:e,data:r,op:o,status:s,origin:c,links:a}}function _n(t){const{spanId:n,traceId:e,isRemote:r}=t.spanContext(),o=r?n:kn(t).parent_span_id,i=tn(t).scope;return{parent_span_id:o,span_id:r?i?.getPropagationContext().propagationSpanId||_t():n,trace_id:e}}function Sn(t){const{traceId:n,spanId:e}=t.spanContext();return gn(n,e,$n(t))}function wn(t){return t&&t.length>0?t.map(({context:{spanId:t,traceId:n,traceFlags:e,...r},attributes:o})=>({span_id:t,trace_id:n,sampled:1===e,attributes:o,...r})):void 0}function En(t){return"number"==typeof t?Tn(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?Tn(t.getTime()):ht()}function Tn(t){return t>9999999999?t/1e3:t}function kn(t){if(function(t){return"function"==typeof t.getSpanJSON}(t))return t.getSpanJSON();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,status:c,links:a}=t;return{span_id:n,trace_id:e,data:r,description:i,parent_span_id:"parentSpanId"in t?t.parentSpanId:"parentSpanContext"in t?t.parentSpanContext?.spanId:void 0,start_timestamp:En(o),timestamp:En(s)||void 0,status:xn(c),op:r[Ft],origin:r[Ut],links:wn(a)}}return{span_id:n,trace_id:e,start_timestamp:0,data:{}}}function $n(t){const{traceFlags:n}=t.spanContext();return 1===n}function xn(t){if(t&&0!==t.code)return 1===t.code?"ok":t.message||"internal_error"}const In="_sentryChildSpans",Rn="_sentryRootSpan";function On(t,n){const e=t[Rn]||t;G(n,Rn,e),t[In]?t[In].add(n):G(t,In,new Set([n]))}function jn(t){const n=new Set;return function t(e){if(!n.has(e)&&$n(e)){n.add(e);const r=e[In]?Array.from(e[In]):[];for(const n of r)t(n)}}(t),Array.from(n)}function Mn(t){return t[Rn]||t}function Ln(){const t=Ot(r());return t.getActiveSpan?t.getActiveSpan():Et(jt())}function Pn(){vn||(a(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),vn=!0)}let Cn=!1;function An(){function t(){const t=Ln(),n=t&&Mn(t);if(n){const t="internal_error";n.setStatus({code:2,message:t})}}Cn||(t.tag="sentry_tracingErrorCallback",Cn=!0,E(t),$(t))}function Nn(t){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const n=t||Ct()?.getOptions();return!(!n||null==n.tracesSampleRate&&!n.tracesSampler)}function qn(t,n){if(!n?.length||!t.description)return!1;for(const e of n){if(Fn(e)){if(et(t.description,e))return!0;continue}if(!e.name&&!e.op)continue;const n=!e.name||et(t.description,e.name),r=!e.op||t.op&&et(t.op,e.op);if(n&&r)return!0}return!1}function Dn(t,n){const e=n.parent_span_id,r=n.span_id;if(e)for(const n of t)n.parent_span_id===r&&(n.parent_span_id=e)}function Fn(t){return"string"==typeof t||t instanceof RegExp}const Un="production",Bn="_frozenDsc";function Hn(t,n){G(t,Bn,n)}function zn(t,n){const e=n.getOptions(),{publicKey:r}=n.getDsn()||{},o={environment:e.environment||Un,release:e.release,public_key:r,trace_id:t,org_id:dn(n)};return n.emit("createDsc",o),o}function Wn(t,n){const e=n.getPropagationContext();return e.dsc||zn(e.traceId,t)}function Jn(t){const n=Ct();if(!n)return{};const e=Mn(t),r=kn(e),o=r.data,i=e.spanContext().traceState,s=i?.get("sentry.sample_rate")??o[qt]??o[Dt];function c(t){return"number"!=typeof s&&"string"!=typeof s||(t.sample_rate=`${s}`),t}const a=e[Bn];if(a)return c(a);const u=i?.get("sentry.dsc"),f=u&&rn(u);if(f)return c(f);const d=zn(t.spanContext().traceId,n),l=o[Nt],p=r.description;return"url"!==l&&p&&(d.transaction=p),Nn()&&(d.sampled=String($n(e)),d.sample_rand=i?.get("sentry.sample_rand")??tn(e).scope?.getPropagationContext().sampleRand.toString()),c(d),n.emit("createDsc",d,e),d}class Xn{constructor(t={}){this.q=t.traceId||bt(),this.D=t.spanId||_t()}spanContext(){return{spanId:this.D,traceId:this.q,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 Gn(t,n=100,e=1/0){try{return Yn("",t,n,e)}catch(t){return{ERROR:`**non-serializable** (${t})`}}}function Kn(t,n=3,e=102400){const r=Gn(t,n);return o=r,function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(o))>e?Kn(t,n-1,e):r;var o}function Yn(t,n,e=1/0,r=1/0,o=function(){const t=new WeakSet;function n(n){return!!t.has(n)||(t.add(n),!1)}function e(n){t.delete(n)}return[n,e]}()){const[i,s]=o;if(null==n||["boolean","string"].includes(typeof n)||"number"==typeof n&&Number.isFinite(n))return n;const c=function(t,n){try{if("domain"===t&&n&&"object"==typeof n&&n.F)return"[Domain]";if("domainEmitter"===t)return"[DomainEmitter]";if("undefined"!=typeof global&&n===global)return"[Global]";if("undefined"!=typeof window&&n===window)return"[Window]";if("undefined"!=typeof document&&n===document)return"[Document]";if(F(n))return"[VueViewModel]";if(A(e=n)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e)return"[SyntheticEvent]";if("number"==typeof n&&!Number.isFinite(n))return`[${n}]`;if("function"==typeof n)return`[Function: ${m(n)}]`;if("symbol"==typeof n)return`[${String(n)}]`;if("bigint"==typeof n)return`[BigInt: ${String(n)}]`;const r=function(t){const n=Object.getPrototypeOf(t);return n?.constructor?n.constructor.name:"null prototype"}(n);return/^HTML(\w*)Element$/.test(r)?`[HTMLElement: ${r}]`:`[object ${r}]`}catch(t){return`**non-serializable** (${t})`}var e}(t,n);if(!c.startsWith("[object "))return c;if(n.__sentry_skip_normalization__)return n;const a="number"==typeof n.__sentry_override_normalization_depth__?n.__sentry_override_normalization_depth__:e;if(0===a)return c.replace("object ","");if(i(n))return"[Circular ~]";const u=n;if(u&&"function"==typeof u.toJSON)try{return Yn("",u.toJSON(),a-1,r,o)}catch{}const f=Array.isArray(n)?[]:{};let d=0;const l=V(n);for(const t in l){if(!Object.prototype.hasOwnProperty.call(l,t))continue;if(d>=r){f[t]="[MaxProperties ~]";break}const n=l[t];f[t]=Yn(t,n,a-1,r,o),d++}return s(n),f}function Vn(t,n=[]){return[t,n]}function Zn(t,n){const[e,r]=t;return[e,[...r,n]]}function Qn(t,n){const e=t[1];for(const t of e){if(n(t,t[0].type))return!0}return!1}function te(t){const e=o(n);return e.encodePolyfill?e.encodePolyfill(t):(new TextEncoder).encode(t)}function ne(t){const[n,e]=t;let r=JSON.stringify(n);function o(t){"string"==typeof r?r="string"==typeof t?r+t:[te(r),t]:r.push("string"==typeof t?te(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{t=JSON.stringify(Gn(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 ee(t){return[{type:"span"},t]}function re(t){const n="string"==typeof t.data?te(t.data):t.data;return[{type:"attachment",length:n.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType},n]}const oe={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",raw_security:"security",log:"log_item",metric:"metric",trace_metric:"metric"};function ie(t){return oe[t]}function se(t){if(!t?.sdk)return;const{name:n,version:e}=t.sdk;return{name:n,version:e}}function ce(t,n,e,r){const o=se(e),i=t.type&&"replay_event"!==t.type?t.type:"event";!function(t,n){if(!n)return t;const e=t.sdk||{};t.sdk={...e,name:e.name||n.name,version:e.version||n.version,integrations:[...t.sdk?.integrations||[],...n.integrations||[]],packages:[...t.sdk?.packages||[],...n.packages||[]],settings:t.sdk?.settings||n.settings?{...t.sdk?.settings,...n.settings}:void 0}}(t,e?.sdk);const s=function(t,n,e,r){const o=t.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:t.event_id,sent_at:(new Date).toISOString(),...n&&{sdk:n},...!!e&&r&&{dsn:un(r)},...o&&{trace:o}}}(t,o,r,n);delete t.sdkProcessingMetadata;return Vn(s,[[{type:i},t]])}function ae(t,n,e,r=Ln()){const o=r&&Mn(r);o&&o.addEvent(t,{[zt]:n,[Ht]:e})}function ue(t){if(!t||0===t.length)return;const n={};return t.forEach(t=>{const e=t.attributes||{},r=e[Ht],o=e[zt];"string"==typeof r&&"number"==typeof o&&(n[t.name]={value:o,unit:r})}),n}class fe{constructor(t={}){this.q=t.traceId||bt(),this.D=t.spanId||_t(),this.U=t.startTimestamp||ht(),this.B=t.links,this.H={},this.setAttributes({[Ut]:"manual",[Ft]:t.op,...t.attributes}),this.W=t.name,t.parentSpanId&&(this.J=t.parentSpanId),"sampled"in t&&(this.X=t.sampled),t.endTimestamp&&(this.G=t.endTimestamp),this.F=[],this.K=t.isStandalone,this.G&&this.Y()}addLink(t){return this.B?this.B.push(t):this.B=[t],this}addLinks(t){return this.B?this.B.push(...t):this.B=t,this}recordException(t,n){}spanContext(){const{D:t,q:n,X:e}=this;return{spanId:t,traceId:n,traceFlags:e?1:0}}setAttribute(t,n){return void 0===n?delete this.H[t]:this.H[t]=n,this}setAttributes(t){return Object.keys(t).forEach(n=>this.setAttribute(n,t[n])),this}updateStartTime(t){this.U=En(t)}setStatus(t){return this.V=t,this}updateName(t){return this.W=t,this.setAttribute(Nt,"custom"),this}end(t){this.G||(this.G=En(t),this.Y())}getSpanJSON(){return{data:this.H,description:this.W,op:this.H[Ft],parent_span_id:this.J,span_id:this.D,start_timestamp:this.U,status:xn(this.V),timestamp:this.G,trace_id:this.q,origin:this.H[Ut],profile_id:this.H[Jt],exclusive_time:this.H[Xt],measurements:ue(this.F),is_segment:this.K&&Mn(this)===this||void 0,segment_id:this.K?Mn(this).spanContext().spanId:void 0,links:wn(this.B)}}isRecording(){return!this.G&&!!this.X}addEvent(t,n,e){const r=de(n)?n:e||ht(),o=de(n)?{}:n||{},i={name:t,time:En(r),attributes:o};return this.F.push(i),this}isStandaloneSpan(){return!!this.K}Y(){const t=Ct();t&&t.emit("spanEnd",this);if(!(this.K||this===Mn(this)))return;if(this.K)return void(this.X?function(t){const n=Ct();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=Jn(t[0]),r=n?.getDsn(),o=n?.getOptions().tunnel,i={sent_at:(new Date).toISOString(),...function(t){return!!t.trace_id&&!!t.public_key}(e)&&{trace:e},...!!o&&r&&{dsn:un(r)}},{beforeSendSpan:s,ignoreSpans:c}=n?.getOptions()||{},a=c?.length?t.filter(t=>!qn(kn(t),c)):t,u=t.length-a.length;u&&n?.recordDroppedEvent("before_send","span",u);const f=s?t=>{const n=kn(t);return s(n)||(Pn(),n)}:kn,d=[];for(const t of a){const n=f(t);n&&d.push(ee(n))}return Vn(i,d)}([this],t)):t&&t.recordDroppedEvent("sample_rate","span"));const n=this.Z();if(n){(tn(this).scope||jt()).captureEvent(n)}}Z(){if(!le(kn(this)))return;this.W||(this.W="<unlabeled transaction>");const{scope:t,isolationScope:n}=tn(this),e=t?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(!0!==this.X)return;const r=jn(this).filter(t=>t!==this&&!function(t){return t instanceof fe&&t.isStandaloneSpan()}(t)).map(t=>kn(t)).filter(le),o=this.H[Nt];delete this.H[Wt],r.forEach(t=>{delete t.data[Wt]});const i={contexts:{trace:bn(this)},spans:r.length>1e3?r.sort((t,n)=>t.start_timestamp-n.start_timestamp).slice(0,1e3):r,start_timestamp:this.U,timestamp:this.G,transaction:this.W,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:n,dynamicSamplingContext:Jn(this)},request:e,...o&&{transaction_info:{source:o}}},s=ue(this.F);return s&&Object.keys(s).length&&(i.measurements=s),i}}function de(t){return t&&"number"==typeof t||t instanceof Date||Array.isArray(t)}function le(t){return!!(t.start_timestamp&&t.timestamp&&t.span_id&&t.trace_id)}function pe(t,n,e=()=>{},r=()=>{}){let o;try{o=t()}catch(t){throw n(t),e(),t}return function(t,n,e,r){if(q(t))return t.then(t=>(e(),r(t),t),t=>{throw n(t),e(),t});return e(),r(t),t}(o,n,e,r)}const he="__SENTRY_SUPPRESS_TRACING__";function me(t,n){const e=Se();if(e.startSpan)return e.startSpan(t,n);const r=_e(t),{forceTransaction:o,parentSpan:i,scope:s}=t,c=s?.clone();return Pt(c,()=>Te(i)(()=>{const e=jt(),s=Ee(e,i),c=t.onlyIfParent&&!s?new Xn:be({parentSpan:s,spanArguments:r,forceTransaction:o,scope:e});return wt(e,c),pe(()=>n(c),()=>{const{status:t}=kn(c);!c.isRecording()||t&&"ok"!==t||c.setStatus({code:2,message:"internal_error"})},()=>{c.end()})}))}function ge(t){const n=Se();if(n.startInactiveSpan)return n.startInactiveSpan(t);const e=_e(t),{forceTransaction:r,parentSpan:o}=t;return(t.scope?n=>Pt(t.scope,n):void 0!==o?t=>ye(o,t):t=>t())(()=>{const n=jt(),i=Ee(n,o);return t.onlyIfParent&&!i?new Xn:be({parentSpan:i,spanArguments:e,forceTransaction:r,scope:n})})}function ye(t,n){const e=Se();return e.withActiveSpan?e.withActiveSpan(t,n):Pt(e=>(wt(e,t||void 0),n(e)))}function ve(t){return Pt(n=>(n.setPropagationContext({traceId:bt(),sampleRand:Math.random()}),ye(null,t)))}function be({parentSpan:t,spanArguments:n,forceTransaction:e,scope:r}){if(!Nn()){const r=new Xn;if(e||!t){Hn(r,{sampled:"false",sample_rate:"0",transaction:n.name,...Jn(r)})}return r}const o=Mt();let i;if(t&&!e)i=function(t,n,e){const{spanId:r,traceId:o}=t.spanContext(),i=!n.getScopeData().sdkProcessingMetadata[he]&&$n(t),s=i?new fe({...e,parentSpanId:r,traceId:o,sampled:i}):new Xn({traceId:o});On(t,s);const c=Ct();c&&(c.emit("spanStart",s),e.endTimestamp&&c.emit("spanEnd",s));return s}(t,r,n),On(t,i);else if(t){const e=Jn(t),{traceId:o,spanId:s}=t.spanContext(),c=$n(t);i=we({traceId:o,parentSpanId:s,...n},r,c),Hn(i,e)}else{const{traceId:t,dsc:e,parentSpanId:s,sampled:c}={...o.getPropagationContext(),...r.getPropagationContext()};i=we({traceId:t,parentSpanId:s,...n},r,c),e&&Hn(i,e)}return Qt(i,r,o),i}function _e(t){const n={isStandalone:(t.experimental||{}).standalone,...t};if(t.startTime){const e={...n};return e.startTimestamp=En(t.startTime),delete e.startTime,e}return n}function Se(){return Ot(r())}function we(t,n,e){const r=Ct(),o=r?.getOptions()||{},{name:i=""}=t,s={spanAttributes:{...t.attributes},spanName:i,parentSampled:e};r?.emit("beforeSampling",s,{decision:!1});const c=s.parentSampled??e,a=s.spanAttributes,u=n.getPropagationContext(),[f,d,l]=n.getScopeData().sdkProcessingMetadata[he]?[!1]:function(t,n,e){if(!Nn(t))return[!1];let r,o;"function"==typeof t.tracesSampler?(o=t.tracesSampler({...n,inheritOrSampleWith:t=>"number"==typeof n.parentSampleRate?n.parentSampleRate:"boolean"==typeof n.parentSampled?Number(n.parentSampled):t}),r=!0):void 0!==n.parentSampled?o=n.parentSampled:void 0!==t.tracesSampleRate&&(o=t.tracesSampleRate,r=!0);const i=pn(o);return void 0===i?[!1]:i?[e<i,i,r]:[!1,i,r]}(o,{name:i,parentSampled:c,attributes:a,parentSampleRate:pn(u.dsc?.sample_rate)},u.sampleRand),p=new fe({...t,attributes:{[Nt]:"custom",[qt]:void 0!==d&&l?d:void 0,...a},sampled:f});return!f&&r&&r.recordDroppedEvent("sample_rate","transaction"),r&&r.emit("spanStart",p),p}function Ee(t,n){if(n)return n;if(null===n)return;const e=Et(t);if(!e)return;const r=Ct();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?Mn(e):e}function Te(t){return void 0!==t?n=>ye(t,n):t=>t()}const ke={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3};function $e(t,n={}){const e=new Map;let r,o=!1,i="externalFinish",s=!n.disableAutoFinish;const c=[],{idleTimeout:a=ke.idleTimeout,finalTimeout:u=ke.finalTimeout,childSpanTimeout:f=ke.childSpanTimeout,beforeSpanEnd:d,trimIdleSpanEndTimestamp:l=!0}=n,p=Ct();if(!p||!Nn()){const t=new Xn;return Hn(t,{sample_rate:"0",sampled:"false",...Jn(t)}),t}const h=jt(),m=Ln(),g=function(t){const n=ge(t);return wt(jt(),n),n}(t);function y(){r&&(clearTimeout(r),r=void 0)}function v(t){y(),r=setTimeout(()=>{!o&&0===e.size&&s&&(i="idleTimeout",g.end(t))},a)}function b(t){r=setTimeout(()=>{!o&&s&&(i="heartbeatFailed",g.end(t))},f)}function _(t){o=!0,e.clear(),c.forEach(t=>t()),wt(h,m);const n=kn(g),{start_timestamp:r}=n;if(!r)return;n.data[Bt]||g.setAttribute(Bt,i);const s=jn(g).filter(t=>t!==g);let f=0;s.forEach(n=>{n.isRecording()&&(n.setStatus({code:2,message:"cancelled"}),n.end(t));const e=kn(n),{timestamp:r=0,start_timestamp:o=0}=e;r-o<=(u+a)/1e3&&o<=t||(!function(t,n){t[In]&&t[In].delete(n)}(g,n),f++)}),f>0&&g.setAttribute("sentry.idle_span_discarded_spans",f)}return g.end=new Proxy(g.end,{apply(t,n,e){if(d&&d(g),n instanceof Xn)return;const[r,...o]=e,i=En(r||ht()),s=jn(g).filter(t=>t!==g),c=kn(g);if(!s.length||!l)return _(i),Reflect.apply(t,n,[i,...o]);const a=p.getOptions().ignoreSpans,f=s?.reduce((t,n)=>{const e=kn(n);return e.timestamp?a&&qn(e,a)?t:t?Math.max(t,e.timestamp):e.timestamp:t},void 0),h=c.start_timestamp,m=Math.min(h?h+u/1e3:1/0,Math.max(h||-1/0,Math.min(i,f||1/0)));return _(m),Reflect.apply(t,n,[m,...o])}}),c.push(p.on("spanStart",t=>{if(o||t===g||kn(t).timestamp||t instanceof fe&&t.isStandaloneSpan())return;var n;jn(g).includes(t)&&(n=t.spanContext().spanId,y(),e.set(n,!0),b(ht()+f/1e3))})),c.push(p.on("spanEnd",t=>{var n;o||(n=t.spanContext().spanId,e.has(n)&&e.delete(n),0===e.size&&v(ht()+a/1e3))})),c.push(p.on("idleSpanEnableAutoFinish",t=>{t===g&&(s=!0,v(),e.size&&b())})),n.disableAutoFinish||v(),setTimeout(()=>{o||(g.setStatus({code:2,message:"deadline_exceeded"}),i="finalTimeout",g.end())},u),g}function xe(t){return new Re(n=>{n(t)})}function Ie(t){return new Re((n,e)=>{e(t)})}class Re{constructor(t){this.tt=0,this.nt=[],this.et(t)}then(t,n){return new Re((e,r)=>{this.nt.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.rt()})}catch(t){return this.then(t=>t,t)}finally(t){return new Re((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)})})}rt(){if(0===this.tt)return;const t=this.nt.slice();this.nt=[],t.forEach(t=>{t[0]||(1===this.tt&&t[1](this.ot),2===this.tt&&t[2](this.ot),t[0]=!0)})}et(t){const n=(t,n)=>{0===this.tt&&(q(n)?n.then(e,r):(this.tt=t,this.ot=n,this.rt()))},e=t=>{n(1,t)},r=t=>{n(2,t)};try{t(e,r)}catch(t){r(t)}}}function Oe(t,n,e,r=0){try{const o=je(n,e,t,r);return q(o)?o:xe(o)}catch(t){return Ie(t)}}function je(t,n,e,r){const o=e[r];if(!t||!o)return t;const i=o({...t},n);return q(i)?i.then(t=>je(t,n,e,r+1)):je(i,n,e,r+1)}function Me(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;Object.keys(e).length&&(t.extra={...e,...t.extra});Object.keys(r).length&&(t.tags={...r,...t.tags});Object.keys(o).length&&(t.user={...o,...t.user});Object.keys(i).length&&(t.contexts={...i,...t.contexts});s&&(t.level=s);c&&"transaction"!==t.type&&(t.transaction=c)}(t,n),r&&function(t,n){t.contexts={trace:_n(n),...t.contexts},t.sdkProcessingMetadata={dynamicSamplingContext:Jn(n),...t.sdkProcessingMetadata};const e=Mn(n),r=kn(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.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 Le(t,n){const{extra:e,tags:r,user:o,contexts:i,level:s,sdkProcessingMetadata:c,breadcrumbs:a,fingerprint:u,eventProcessors:f,attachments:d,propagationContext:l,transactionName:p,span:h}=n;Pe(t,"extra",e),Pe(t,"tags",r),Pe(t,"user",o),Pe(t,"contexts",i),t.sdkProcessingMetadata=vt(t.sdkProcessingMetadata,c,2),s&&(t.level=s),p&&(t.transactionName=p),h&&(t.span=h),a.length&&(t.breadcrumbs=[...t.breadcrumbs,...a]),u.length&&(t.fingerprint=[...t.fingerprint,...u]),f.length&&(t.eventProcessors=[...t.eventProcessors,...f]),d.length&&(t.attachments=[...t.attachments,...d]),t.propagationContext={...t.propagationContext,...l}}function Pe(t,n,e){t[n]=vt(t[n],e,1)}let Ce,Ae,Ne,qe;function De(t,e,r,o,i,s){const{normalizeDepth:c=3,normalizeMaxBreadth:a=1e3}=t,u={...e,event_id:e.event_id||r.event_id||it(),timestamp:e.timestamp||dt()},f=r.integrations||t.integrations.map(t=>t.name);!function(t,n){const{environment:e,release:r,dist:o,maxValueLength:i}=n;t.environment=t.environment||e||Un,!t.release&&r&&(t.release=r);!t.dist&&o&&(t.dist=o);const s=t.request;s?.url&&(s.url=i?tt(s.url,i):s.url)}(u,t),function(t,n){n.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...n])}(u,f),i&&i.emit("applyFrameMetadata",e),void 0===e.type&&function(t,e){const r=function(t){const e=n._sentryDebugIds,r=n.it;if(!e&&!r)return{};const o=e?Object.keys(e):[],i=r?Object.keys(r):[];if(qe&&o.length===Ae&&i.length===Ne)return qe;Ae=o.length,Ne=i.length,qe={},Ce||(Ce={});const s=(n,e)=>{for(const r of n){const n=e[r],o=Ce?.[r];if(o&&qe&&n)qe[o[0]]=n,Ce&&(Ce[r]=[o[0],n]);else if(n){const e=t(r);for(let t=e.length-1;t>=0;t--){const o=e[t],i=o?.filename;if(i&&qe&&Ce){qe[i]=n,Ce[r]=[i,n];break}}}}};return e&&s(o,e),r&&s(i,r),qe}(e);t.exception?.values?.forEach(t=>{t.stacktrace?.frames?.forEach(t=>{t.filename&&(t.debug_id=r[t.filename])})})}(u,t.stackParser);const d=function(t,n){if(!n)return t;const e=t?t.clone():new Tt;return e.update(n),e}(o,r.captureContext);r.mechanism&&ut(u,r.mechanism);const l=i?i.getEventProcessors():[],p=Lt().getScopeData();if(s){Le(p,s.getScopeData())}if(d){Le(p,d.getScopeData())}const h=[...r.attachments||[],...p.attachments];h.length&&(r.attachments=h),Me(u,p);return Oe([...l,...p.eventProcessors],u,r).then(t=>(t&&function(t){const n={};if(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)})}),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:Gn(t.data,n,e)}}))},...t.user&&{user:Gn(t.user,n,e)},...t.contexts&&{contexts:Gn(t.contexts,n,e)},...t.extra&&{extra:Gn(t.extra,n,e)}};t.contexts?.trace&&r.contexts&&(r.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(r.contexts.trace.data=Gn(t.contexts.trace.data,n,e)));t.spans&&(r.spans=t.spans.map(t=>({...t,...t.data&&{data:Gn(t.data,n,e)}})));t.contexts?.flags&&r.contexts&&(r.contexts.flags=Gn(t.contexts.flags,3,e));return r}(t,c,a):t))}function Fe(t){if(t)return function(t){return t instanceof Tt||"function"==typeof t}(t)||function(t){return Object.keys(t).some(t=>Ue.includes(t))}(t)?{captureContext:t}:t}const Ue=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function captureException(t,n){return jt().captureException(t,Fe(n))}function Be(t,n){return jt().captureEvent(t,n)}function He(){return Mt().lastEventId()}function ze(){const t=Ct();return!1!==t?.getOptions().enabled&&!!t?.getTransport()}function We(t){const e=Mt(),r=jt(),{userAgent:o}=n.navigator||{},i=gt({user:r.getUser()||e.getUser(),...o&&{userAgent:o},...t}),s=e.getSession();return"ok"===s?.status&&yt(s,{status:"exited"}),Je(),e.setSession(i),i}function Je(){const t=Mt(),n=jt().getSession()||t.getSession();n&&function(t){let n={};"ok"===t.status&&(n={status:"exited"}),yt(t,n)}(n),Xe(),t.setSession()}function Xe(){const t=Mt(),n=Ct(),e=t.getSession();e&&n&&n.captureSession(e)}function Ge(t=!1){t?Je():Xe()}function Ke(t){const n=t.protocol?`${t.protocol}:`:"",e=t.port?`:${t.port}`:"";return`${n}//${t.host}${e}${t.path?`/${t.path}`:""}/api/`}function Ye(t,n,e){return n||`${function(t){return`${Ke(t)}${t.projectId}/envelope/`}(t)}?${function(t,n){const e={sentry_version:"7"};return t.publicKey&&(e.sentry_key=t.publicKey),n&&(e.sentry_client=`${n.name}/${n.version}`),new URLSearchParams(e).toString()}(t,e)}`}const Ve=[];function Ze(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;return 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)}function Qe(t,n){for(const e of n)e?.afterAllSetup&&e.afterAllSetup(t)}function tr(t,n,e){if(!e[n.name]){if(e[n.name]=n,-1===Ve.indexOf(n.name)&&"function"==typeof n.setupOnce&&(n.setupOnce(),Ve.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)}}}function nr(t,n){const e=n??function(t){return er().get(t)}(t)??[];if(0===e.length)return;const r=t.getOptions(),o=function(t,n,e,r){const o={};return n?.sdk&&(o.sdk={name:n.sdk.name,version:n.sdk.version}),e&&r&&(o.dsn=un(r)),Vn(o,[(i=t,[{type:"log",item_count:i.length,content_type:"application/vnd.sentry.items.log+json"},{items:i}])]);var i}(e,r._metadata,r.tunnel,t.getDsn());er().set(t,[]),t.emit("flushLogs"),t.sendEnvelope(o)}function er(){return i("clientToLogBufferMap",()=>new WeakMap)}function rr(t){switch(typeof t){case"number":return Number.isInteger(t)?{value:t,type:"integer"}:{value:t,type:"double"};case"boolean":return{value:t,type:"boolean"};case"string":return{value:t,type:"string"};default:{let n="";try{n=JSON.stringify(t)??""}catch{}return{value:n,type:"string"}}}}function or(t,n,e,r=!0){!e||!r&&n in t||(t[n]=e)}function ir(t,n){const e=fr(),r=ur(t);void 0===r?e.set(t,[n]):(e.set(t,[...r,n]),r.length>=1e3&&ar(t,r))}function sr(t,n,e){const{release:r,environment:o}=n.getOptions(),i={...t.attributes},{user:{id:s,email:c,username:a}}=function(t){const n=Lt().getScopeData();return Le(n,Mt().getScopeData()),Le(n,t.getScopeData()),n}(e);or(i,"user.id",s,!1),or(i,"user.email",c,!1),or(i,"user.name",a,!1),or(i,"sentry.release",r),or(i,"sentry.environment",o);const{name:u,version:f}=n.getSdkMetadata()?.sdk??{};or(i,"sentry.sdk.name",u),or(i,"sentry.sdk.version",f);const d=n.getIntegrationByName("Replay"),l=d?.getReplayId(!0);return or(i,"sentry.replay_id",l),l&&"buffer"===d?.getRecordingMode()&&or(i,"sentry._internal.replay_is_buffering",!0),{...t,attributes:i}}function cr(t,n,e){const r={};for(const n in t.attributes)void 0!==t.attributes[n]&&(r[n]=rr(t.attributes[n]));const[,o]=function(t,n){return n?Pt(n,()=>{const e=Ln(),r=e?_n(e):At(n);return[e?Jn(e):Wn(t,n),r]}):[void 0,void 0]}(n,e),i=Et(e),s=i?i.spanContext().traceId:o?.trace_id,c=i?i.spanContext().spanId:void 0;return{timestamp:ht(),trace_id:s??"",span_id:c,name:t.name,type:t.type,unit:t.unit,value:t.value,attributes:r}}function ar(t,n){const e=n??ur(t)??[];if(0===e.length)return;const r=t.getOptions(),o=function(t,n,e,r){const o={};return n?.sdk&&(o.sdk={name:n.sdk.name,version:n.sdk.version}),e&&r&&(o.dsn=un(r)),Vn(o,[(i=t,[{type:"trace_metric",item_count:i.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{items:i}])]);var i}(e,r._metadata,r.tunnel,t.getDsn());fr().set(t,[]),t.emit("flushMetrics"),t.sendEnvelope(o)}function ur(t){return fr().get(t)}function fr(){return i("clientToMetricBufferMap",()=>new WeakMap)}const dr=Symbol.for("SentryInternalError"),lr=Symbol.for("SentryDoNotSendEventError");function pr(t){return{message:t,[dr]:!0}}function hr(t){return{message:t,[lr]:!0}}function mr(t,n,e,r,o){let i,s=0;t.on(e,()=>{s=0,clearTimeout(i)}),t.on(n,n=>{s+=r(n),s>=8e5?o(t):(clearTimeout(i),i=setTimeout(()=>{o(t)},5e3))}),t.on("flush",()=>{o(t)})}class gr{constructor(t){if(this.st=t,this._integrations={},this.ct=0,this.ut={},this.ft={},this.u=[],t.dsn&&(this.dt=ln(t.dsn)),this.dt){const n=Ye(this.dt,t.tunnel,t._metadata?t._metadata.sdk:void 0);this.lt=t.transport({tunnel:this.st.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:n})}this.st.enableLogs&&mr(this,"afterCaptureLog","flushLogs",_r,nr);(this.st.enableMetrics??this.st._experiments?.enableMetrics??!0)&&mr(this,"afterCaptureMetric","flushMetrics",br,ar)}captureException(t,n,e){const r=it();if(ft(t))return r;const o={event_id:r,...n};return this.ht(this.eventFromException(t,o).then(t=>this.gt(t,o,e))),o.event_id}captureMessage(t,n,e,r){const o={event_id:it(),...e},i=P(t)?t:String(t),s=C(t)?this.eventFromMessage(i,n,o):this.eventFromException(t,o);return this.ht(s.then(t=>this.gt(t,o,r))),o.event_id}captureEvent(t,n,e){const r=it();if(n?.originalException&&ft(n.originalException))return r;const o={event_id:r,...n},i=t.sdkProcessingMetadata||{},s=i.capturedSpanScope,c=i.capturedSpanIsolationScope;return this.ht(this.gt(t,o,s||e,c)),o.event_id}captureSession(t){this.sendSession(t),yt(t,{init:!1})}getDsn(){return this.dt}getOptions(){return this.st}getSdkMetadata(){return this.st._metadata}getTransport(){return this.lt}async flush(t){const n=this.lt;if(!n)return!0;this.emit("flush");const e=await this.yt(t),r=await n.flush(t);return e&&r}async close(t){const n=await this.flush(t);return this.getOptions().enabled=!1,this.emit("close"),n}getEventProcessors(){return this.u}addEventProcessor(t){this.u.push(t)}init(){(this.vt()||this.st.integrations.some(({name:t})=>t.startsWith("Spotlight")))&&this.bt()}getIntegrationByName(t){return this._integrations[t]}addIntegration(t){const n=this._integrations[t.name];tr(this,t,this._integrations),n||Qe(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let e=ce(t,this.dt,this.st._metadata,this.st.tunnel);for(const t of n.attachments||[])e=Zn(e,re(t));this.sendEnvelope(e).then(n=>this.emit("afterSendEvent",t,n))}sendSession(t){const{release:n,environment:e=Un}=this.st;if("aggregates"in t){const r=t.attrs||{};if(!r.release&&!n)return;r.release=r.release||n,r.environment=r.environment||e,t.attrs=r}else{if(!t.release&&!n)return;t.release=t.release||n,t.environment=t.environment||e}this.emit("beforeSendSession",t);const r=function(t,n,e,r){const o=se(e);return Vn({sent_at:(new Date).toISOString(),...o&&{sdk:o},...!!r&&n&&{dsn:un(n)}},["aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()]])}(t,this.dt,this.st._metadata,this.st.tunnel);this.sendEnvelope(r)}recordDroppedEvent(t,n,e=1){if(this.st.sendClientReports){const r=`${t}:${n}`;this.ut[r]=(this.ut[r]||0)+e}}on(t,n){const e=this.ft[t]=this.ft[t]||new Set,r=(...t)=>n(...t);return e.add(r),()=>{e.delete(r)}}emit(t,...n){const e=this.ft[t];e&&e.forEach(t=>t(...n))}async sendEnvelope(t){if(this.emit("beforeEnvelope",t),this.vt()&&this.lt)try{return await this.lt.send(t)}catch(t){return{}}return{}}bt(){const{integrations:t}=this.st;this._integrations=function(t,n){const e={};return n.forEach(n=>{n&&tr(t,n,e)}),e}(this,t),Qe(this,t)}_t(t,n){let e="fatal"===n.level,r=!1;const o=n.exception?.values;if(o){r=!0,e=!1;for(const t of o)if(!1===t.mechanism?.handled){e=!0;break}}const i="ok"===t.status;(i&&0===t.errors||i&&e)&&(yt(t,{...e&&{status:"crashed"},errors:t.errors||Number(r||e)}),this.captureSession(t))}async yt(t){let n=0;for(;!t||n<t;){if(await new Promise(t=>setTimeout(t,1)),!this.ct)return!0;n++}return!1}vt(){return!1!==this.getOptions().enabled&&void 0!==this.lt}St(t,n,e,r){const o=this.getOptions(),i=Object.keys(this._integrations);return!n.integrations&&i?.length&&(n.integrations=i),this.emit("preprocessEvent",t,n),t.type||r.setLastEventId(t.event_id||n.event_id),De(o,t,n,e,this,r).then(t=>{if(null===t)return t;this.emit("postprocessEvent",t,n),t.contexts={trace:At(e),...t.contexts};const r=Wn(this,e);return t.sdkProcessingMetadata={dynamicSamplingContext:r,...t.sdkProcessingMetadata},t})}gt(t,n={},e=jt(),r=Mt()){return this.wt(t,n,e,r).then(t=>t.event_id,t=>{})}wt(t,n,e,r){const o=this.getOptions(),{sampleRate:i}=o,s=vr(t),c=yr(t),a=t.type||"error",u=`before send for type \`${a}\``,f=void 0===i?void 0:pn(i);if(c&&"number"==typeof f&&Math.random()>f)return this.recordDroppedEvent("sample_rate","error"),Ie(hr(`Discarding event because it's not included in the random sample (sampling rate = ${i})`));const d="replay_event"===a?"replay":a;return this.St(t,n,e,r).then(t=>{if(null===t)throw this.recordDroppedEvent("event_processor",d),hr("An event processor returned `null`, will not send event.");if(n.data&&!0===n.data.__sentry__)return t;const e=function(t,n,e,r){const{beforeSend:o,beforeSendTransaction:i,beforeSendSpan:s,ignoreSpans:c}=n;let a=e;if(yr(a)&&o)return o(a,r);if(vr(a)){if(s||c){const n=function(t){const{trace_id:n,parent_span_id:e,span_id:r,status:o,origin:i,data:s,op:c}=t.contexts?.trace??{};return{data:s??{},description:t.transaction,op:c,parent_span_id:e,span_id:r??"",start_timestamp:t.start_timestamp??0,status:o,timestamp:t.timestamp,trace_id:n??"",origin:i,profile_id:s?.[Jt],exclusive_time:s?.[Xt],measurements:t.measurements,is_segment:!0}}(a);if(c?.length&&qn(n,c))return null;if(s){const t=s(n);t?a=vt(e,{type:"transaction",timestamp:(u=t).timestamp,start_timestamp:u.start_timestamp,transaction:u.description,contexts:{trace:{trace_id:u.trace_id,span_id:u.span_id,parent_span_id:u.parent_span_id,op:u.op,status:u.status,origin:u.origin,data:{...u.data,...u.profile_id&&{[Jt]:u.profile_id},...u.exclusive_time&&{[Xt]:u.exclusive_time}}}},measurements:u.measurements}):Pn()}if(a.spans){const n=[],e=a.spans;for(const t of e)if(c?.length&&qn(t,c))Dn(e,t);else if(s){const e=s(t);e?n.push(e):(Pn(),n.push(t))}else n.push(t);const r=a.spans.length-n.length;r&&t.recordDroppedEvent("before_send","span",r),a.spans=n}}if(i){if(a.spans){const t=a.spans.length;a.sdkProcessingMetadata={...e.sdkProcessingMetadata,spanCountBeforeProcessing:t}}return i(a,r)}}var u;return a}(this,o,t,n);return function(t,n){const e=`${n} must return \`null\` or a valid event.`;if(q(t))return t.then(t=>{if(!A(t)&&null!==t)throw pr(e);return t},t=>{throw pr(`${n} rejected with ${t}`)});if(!A(t)&&null!==t)throw pr(e);return t}(e,u)}).then(o=>{if(null===o){if(this.recordDroppedEvent("before_send",d),s){const n=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",n)}throw hr(`${u} returned \`null\`, will not send event.`)}const i=e.getSession()||r.getSession();if(c&&i&&this._t(i,o),s){const t=(o.sdkProcessingMetadata?.spanCountBeforeProcessing||0)-(o.spans?o.spans.length:0);t>0&&this.recordDroppedEvent("before_send","span",t)}const a=o.transaction_info;if(s&&a&&o.transaction!==t.transaction){const t="custom";o.transaction_info={...a,source:t}}return this.sendEvent(o,n),o}).then(null,t=>{if((n=t)&&"object"==typeof n&&lr in n||function(t){return!!t&&"object"==typeof t&&dr in t}(t))throw t;var n;throw this.captureException(t,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:t}),pr(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${t}`)})}ht(t){this.ct++,t.then(t=>(this.ct--,t),t=>(this.ct--,t))}Et(){const t=this.ut;return this.ut={},Object.entries(t).map(([t,n])=>{const[e,r]=t.split(":");return{reason:e,category:r,quantity:n}})}Tt(){const t=this.Et();if(0===t.length)return;if(!this.dt)return;const n=(e=t,Vn((r=this.st.tunnel&&un(this.dt))?{dsn:r}:{},[[{type:"client_report"},{timestamp:dt(),discarded_events:e}]]));var e,r;this.sendEnvelope(n)}}function yr(t){return void 0===t.type}function vr(t){return"transaction"===t.type}function br(t){let n=0;return t.name&&(n+=2*t.name.length),n+=8,n+Sr(t.attributes)}function _r(t){let n=0;return t.message&&(n+=2*t.message.length),n+Sr(t.attributes)}function Sr(t){if(!t)return 0;let n=0;return Object.values(t).forEach(t=>{Array.isArray(t)?n+=t.length*wr(t[0]):C(t)?n+=wr(t):n+=100}),n}function wr(t){return"string"==typeof t?2*t.length:"number"==typeof t?8:"boolean"==typeof t?4:0}function Er(t){jt().setClient(t)}const Tr=Symbol.for("SentryBufferFullError");function kr(t=100){const n=new Set;function e(t){n.delete(t)}return{get $(){return Array.from(n)},add:function(r){if(!(n.size<t))return Ie(Tr);const o=r();return n.add(o),o.then(()=>e(o),()=>e(o)),o},drain:function(t){if(!n.size)return xe(!0);const e=Promise.allSettled(Array.from(n)).then(()=>!0);if(!t)return e;const r=[e,new Promise(n=>setTimeout(()=>n(!1),t))];return Promise.race(r)}}}function $r(t,{statusCode:n,headers:e},r=Date.now()){const o={...t},i=e?.["x-sentry-rate-limits"],s=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)?6e4:r-n}(s,r):429===n&&(o.all=r+6e4);return o}function xr(t,n,e=kr(t.bufferSize||64)){let r={};return{send:function(o){const i=[];if(Qn(o,(n,e)=>{const o=ie(e);!function(t,n,e=Date.now()){return function(t,n){return t[n]||t.all||0}(t,n)>e}(r,o)?i.push(n):t.recordDroppedEvent("ratelimit_backoff",o)}),0===i.length)return Promise.resolve({});const s=Vn(o[0],i),c=n=>{Qn(s,(e,r)=>{t.recordDroppedEvent(n,ie(r))})};return e.add(()=>n({body:ne(s)}).then(t=>(r=$r(r,t),t),t=>{throw c("network_error"),t})).then(t=>t,t=>{if(t===Tr)return c("queue_overflow"),Promise.resolve({});throw t})},flush:t=>e.drain(t)}}function Ir(t){return"isRelative"in t}function Rr(t,n){const e=t.indexOf("://")<=0&&0!==t.indexOf("//"),r=e?"thismessage:/":void 0;try{if("canParse"in URL&&!URL.canParse(t,r))return;const n=new URL(t,r);return e?{isRelative:e,pathname:n.pathname,search:n.search,hash:n.hash}:n}catch{}}function Or(t){if(Ir(t))return t.pathname;const n=new URL(t);return n.search="",n.hash="",["80","443"].includes(n.port)&&(n.port=""),n.password&&(n.password="%filtered%"),n.username&&(n.username="%filtered%"),n.toString()}function jr(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(t){"aggregates"in t?void 0===t.attrs?.ip_address&&(t.attrs={...t.attrs,ip_address:"{{auto}}"}):void 0===t.ipAddress&&(t.ipAddress="{{auto}}")}function Lr(t={}){const n=t.client||Ct();if(!ze()||!n)return{};const e=Ot(r());if(e.getTraceData)return e.getTraceData(t);const o=t.scope||jt(),i=t.span||Ln(),s=i?Sn(i):function(t){const{traceId:n,sampled:e,propagationSpanId:r}=t.getPropagationContext();return gn(n,r,e)}(o),c=on(i?Jn(i):Wn(n,o));if(!hn.test(s))return{};const a={"sentry-trace":s,baggage:c};if(t.propagateTraceparent){const t=i?function(t){const{traceId:n,spanId:e}=t.spanContext();return yn(n,e,$n(t))}(i):function(t){const{traceId:n,sampled:e,propagationSpanId:r}=t.getPropagationContext();return yn(n,r,e)}(o);t&&(a.traceparent=t)}return a}const Pr=100;function Cr(t,n){const e=Ct(),r=Mt();if(!e)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:i=Pr}=e.getOptions();if(i<=0)return;const s={timestamp:dt(),...t},c=o?a(()=>o(s,n)):s;null!==c&&(e.emit&&e.emit("beforeAddBreadcrumb",c,n),r.addBreadcrumb(c,i))}let Ar;const Nr=new WeakMap,qr=()=>({name:"FunctionToString",setupOnce(){Ar=Function.prototype.toString;try{Function.prototype.toString=function(...t){const n=Y(this),e=Nr.has(Ct())&&void 0!==n?n:this;return Ar.apply(e,t)}}catch{}},setup(t){Nr.set(t,!0)}}),Dr=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,'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+$/,/^Java exception was raised during method invocation$/],Fr=(t={})=>{let n;return{name:"EventFilters",setup(e){const r=e.getOptions();n=Br(t,r)},processEvent(e,r,o){if(!n){const e=o.getOptions();n=Br(t,e)}return function(t,n){if(t.type){if("transaction"===t.type&&function(t,n){if(!n?.length)return!1;const e=t.transaction;return!!e&&rt(e,n)}(t,n.ignoreTransactions))return!0}else{if(function(t,n){if(!n?.length)return!1;return function(t){const n=[];t.message&&n.push(t.message);try{const e=t.exception.values[t.exception.values.length-1];e?.value&&(n.push(e.value),e.type&&n.push(`${e.type}: ${e.value}`))}catch{}return n}(t).some(t=>rt(t,n))}(t,n.ignoreErrors))return!0;if(function(t){if(!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(!n?.length)return!1;const e=Hr(t);return!!e&&rt(e,n)}(t,n.denyUrls))return!0;if(!function(t,n){if(!n?.length)return!0;const e=Hr(t);return!e||rt(e,n)}(t,n.allowUrls))return!0}return!1}(e,n)?null:e}}},Ur=(t={})=>({...Fr(t),name:"InboundFilters"});function Br(t={},n={}){return{allowUrls:[...t.allowUrls||[],...n.allowUrls||[]],denyUrls:[...t.denyUrls||[],...n.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...n.ignoreErrors||[],...t.disableErrorDefaults?[]:Dr],ignoreTransactions:[...t.ignoreTransactions||[],...n.ignoreTransactions||[]]}}function Hr(t){try{const n=[...t.exception?.values??[]].reverse().find(t=>void 0===t.mechanism?.parent_id&&t.stacktrace?.frames?.length),e=n?.stacktrace?.frames;return e?function(t=[]){for(let n=t.length-1;n>=0;n--){const e=t[n];if(e&&"<anonymous>"!==e.filename&&"[native code]"!==e.filename)return e.filename||null}return null}(e):null}catch{return null}}function zr(t,n,e,r,o,i){if(!o.exception?.values||!i||!D(i.originalException,Error))return;const s=o.exception.values.length>0?o.exception.values[o.exception.values.length-1]:void 0;s&&(o.exception.values=Wr(t,n,r,i.originalException,e,o.exception.values,s,0))}function Wr(t,n,e,r,o,i,s,c){if(i.length>=e+1)return i;let a=[...i];if(D(r[o],Error)){Jr(s,c);const i=t(n,r[o]),u=a.length;Xr(i,o,u,c),a=Wr(t,n,e,r[o],o,[i,...a],i,u)}return Array.isArray(r.errors)&&r.errors.forEach((r,i)=>{if(D(r,Error)){Jr(s,c);const u=t(n,r),f=a.length;Xr(u,`errors[${i}]`,f,c),a=Wr(t,n,e,r,o,[u,...a],u,f)}}),a}function Jr(t,n){t.mechanism={handled:!0,type:"auto.core.linked_errors",...t.mechanism,..."AggregateError"===t.type&&{is_exception_group:!0},exception_id:n}}function Xr(t,n,e,r){t.mechanism={handled:!0,...t.mechanism,type:"chained",source:n,exception_id:e,parent_id:r}}function Gr(){"console"in n&&s.forEach(function(t){t in n.console&&X(n.console,t,function(e){return c[t]=e,function(...e){S("console",{args:e,level:t});const r=c[t];r?.apply(n.console,e)}})})}function Kr(t){return"warn"===t?"warning":["fatal","error","warning","log","info","debug"].includes(t)?t:"log"}const Yr=()=>{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(!Zr(t,n))return!1;if(!Vr(t,n))return!1;return!0}(t,n))return!0;if(function(t,n){const e=Qr(n),r=Qr(t);if(!e||!r)return!1;if(e.type!==r.type||e.value!==r.value)return!1;if(!Zr(t,n))return!1;if(!Vr(t,n))return!1;return!0}(t,n))return!0;return!1}(n,t))return null}catch{}return t=n}}};function Vr(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;t<r.length;t++){const n=r[t],o=e[t];if(n.filename!==o.filename||n.lineno!==o.lineno||n.colno!==o.colno||n.function!==o.function)return!1}return!0}function Zr(t,n){let e=t.fingerprint,r=n.fingerprint;if(!e&&!r)return!0;if(e&&!r||!e&&r)return!1;try{return!(e.join("")!==r.join(""))}catch{return!1}}function Qr(t){return t.exception?.values?.[0]}function to(t,n,e,r,o){if(!t.fetchData)return;const{method:i,url:s}=t.fetchData,c=Nn()&&n(s);if(t.endTimestamp&&c){const n=t.fetchData.__span;if(!n)return;const e=r[n];return void(e&&(!function(t,n){if(n.response){Kt(t,n.response.status);const e=n.response?.headers?.get("content-length");if(e){const n=parseInt(e);n>0&&t.setAttribute("http.response_content_length",n)}}else n.error&&t.setStatus({code:2,message:"internal_error"});t.end()}(e,t),function(t,n,e){const r="object"==typeof e&&null!==e?e.onRequestSpanEnd:void 0;r?.(t,{headers:n.response?.headers,error:n.error})}(e,t,o),delete r[n]))}const{spanOrigin:a="auto.http.browser",propagateTraceparent:u=!1}="object"==typeof o?o:{spanOrigin:o},f=!!Ln(),d=c&&f?ge(function(t,n,e){const r=Rr(t);return{name:r?`${n} ${Or(r)}`:n,attributes:eo(t,r,n,e)}}(s,i,a)):new Xn;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,r){const o=Lr({span:e,propagateTraceparent:r}),i=o["sentry-trace"],s=o.baggage,c=o.traceparent;if(!i)return;const a=n.headers||(U(t)?t.headers:void 0);if(a){if(function(t){return"undefined"!=typeof Headers&&D(t,Headers)}(a)){const t=new Headers(a);if(t.get("sentry-trace")||t.set("sentry-trace",i),r&&c&&!t.get("traceparent")&&t.set("traceparent",c),s){const n=t.get("baggage");n?no(n)||t.set("baggage",`${n},${s}`):t.set("baggage",s)}return t}if(Array.isArray(a)){const t=[...a];a.find(t=>"sentry-trace"===t[0])||t.push(["sentry-trace",i]),r&&c&&!a.find(t=>"traceparent"===t[0])&&t.push(["traceparent",c]);const n=a.find(t=>"baggage"===t[0]&&no(t[1]));return s&&!n&&t.push(["baggage",s]),t}{const t="sentry-trace"in a?a["sentry-trace"]:void 0,n="traceparent"in a?a.traceparent:void 0,e="baggage"in a?a.baggage:void 0,o=e?Array.isArray(e)?[...e]:[e]:[],u=e&&(Array.isArray(e)?e.find(t=>no(t)):no(e));s&&!u&&o.push(s);const f={...a,"sentry-trace":t??i,baggage:o.length>0?o.join(","):void 0};return r&&c&&!n&&(f.traceparent=c),f}}return{...o}}(n,e,Nn()&&f?d:void 0,u);r&&(t.args[1]=e,e.headers=r)}const l=Ct();if(l){const n={input:t.args,response:t.response,startTimestamp:t.startTimestamp,endTimestamp:t.endTimestamp};l.emit("beforeOutgoingRequestSpan",d,n)}return d}function no(t){return t.split(",").some(t=>t.trim().startsWith(nn))}function eo(t,n,e,r){const o={url:t,type:"fetch","http.method":e,[Ut]:r,[Ft]:"http.client"};return n&&(Ir(n)||(o["http.url"]=n.href,o["server.address"]=n.host),n.search&&(o["http.query"]=n.search),n.hash&&(o["http.fragment"]=n.hash)),o}function ro(t,n,e,r){!function(t,n){const e=n?.scope??jt(),r=n?.captureSerializedMetric??ir,o=e?.getClient()??Ct();if(!o)return;const{_experiments:i,enableMetrics:s,beforeSendMetric:c}=o.getOptions();if(!(s??i?.enableMetrics??1))return;const a=sr(t,o,e),u=c||i?.beforeSendMetric,f=u?u(a):a;if(!f)return;r(o,cr(f,o,e)),o.emit("afterCaptureMetric",a)}({type:t,name:n,value:e,unit:r?.unit,attributes:r?.attributes},{scope:r?.scope})}var oo=Object.freeze({__proto__:null,count:function(t,n=1,e){ro("counter",t,n,e)},distribution:function(t,n,e){ro("distribution",t,n,e)},gauge:function(t,n,e){ro("gauge",t,n,e)}});function io(t){return void 0===t?void 0:t>=400&&t<500?"warning":t>=500?"error":void 0}const so=n;function co(t){return t&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function ao(){if("string"==typeof EdgeRuntime)return!0;if(!function(){if(!("fetch"in so))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}())return!1;if(co(so.fetch))return!0;let t=!1;const n=so.document;if(n&&"function"==typeof n.createElement)try{const e=n.createElement("iframe");e.hidden=!0,n.head.appendChild(e),e.contentWindow?.fetch&&(t=co(e.contentWindow.fetch)),n.head.removeChild(e)}catch(t){}return t}function uo(t,n){const e="fetch";b(e,t),_(e,()=>fo(void 0,n))}function fo(t,e=!1){e&&!ao()||X(n,"fetch",function(e){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:ho(n),method:po(e,"method")?String(e.method).toUpperCase():"GET"}}const n=t[0];return{url:ho(n),method:po(n,"method")?String(n.method).toUpperCase():"GET"}}(r),c={args:r,fetchData:{method:i,url:s},startTimestamp:1e3*ht(),virtualError:o,headers:mo(r)};return t||S("fetch",{...c}),e.apply(n,r).then(async n=>(t?t(n):S("fetch",{...c,endTimestamp:1e3*ht(),response:n}),n),t=>{if(S("fetch",{...c,endTimestamp:1e3*ht(),error:t}),R(t)&&void 0===t.stack&&(t.stack=o.stack,G(t,"framesToPop",1)),t instanceof TypeError&&("Failed to fetch"===t.message||"Load failed"===t.message||"NetworkError when attempting to fetch resource."===t.message))try{const n=new URL(c.fetchData.url);t.message=`${t.message} (${n.host})`}catch{}throw t})}})}function lo(t){let n;try{n=t.clone()}catch{return}!async function(t,n){if(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{i=!1}finally{clearTimeout(t)}}clearTimeout(o),r.releaseLock(),e.cancel().then(null,()=>{})}}(n,()=>{S("fetch-body-resolved",{endTimestamp:1e3*ht(),response:t})})}function po(t,n){return!!t&&"object"==typeof t&&!!t[n]}function ho(t){return"string"==typeof t?t:t?po(t,"url")?t.url:t.toString?t.toString():"":""}function mo(t){const[n,e]=t;try{if("object"==typeof e&&null!==e&&"headers"in e&&e.headers)return new Headers(e.headers);if(U(n))return new Headers(n.headers)}catch{}}const go=()=>{},yo=["attachTo","createForm","createWidget","remove"],vo=Object.assign(t=>(a(()=>{console.warn("You are using feedbackIntegration() even though this bundle does not include feedback.")}),{name:"Feedback",...yo.reduce((t,n)=>(t[n]=go,t),{})}),{_isShim:!0}),bo=["start","stop","flush"];const _o=n;let So=0;function wo(){return So>0}function Eo(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(Y(t))return t}catch{return t}const sentryWrapped=function(...e){try{const r=e.map(t=>Eo(t,n));return t.apply(this,r)}catch(t){throw So++,setTimeout(()=>{So--}),Pt(r=>{r.addEventProcessor(t=>(n.mechanism&&(at(t,void 0),ut(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{}K(sentryWrapped,t),G(t,"__sentry_wrapped__",sentryWrapped);try{Object.getOwnPropertyDescriptor(sentryWrapped,"name").configurable&&Object.defineProperty(sentryWrapped,"name",{get:()=>t.name})}catch{}return sentryWrapped}function To(){const t=W(),{referrer:n}=_o.document||{},{userAgent:e}=_o.navigator||{};return{url:t,headers:{...n&&{Referer:n},...e&&{"User-Agent":e}}}}function ko(t,n){const e=Io(t,n),r={type:jo(n),value:Mo(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=Ct(),i=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__:Kn(n,i)};if(s)return{exception:{values:[ko(t,s)]},extra:c};const a={exception:{values:[{type:N(n)?n.constructor.name:r?"UnhandledRejection":"Error",value:No(n,{isUnhandledRejection:r})}]},extra:c};if(e){const n=Io(t,e);n.length&&(a.exception.values[0].stacktrace={frames:n})}return a}function xo(t,n){return{exception:{values:[ko(t,n)]}}}function Io(t,n){const e=n.stacktrace||n.stack||"",r=function(t){if(t&&Ro.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{}return[]}const Ro=/Minified React error #\d+;/i;function Oo(t){return"undefined"!=typeof WebAssembly&&void 0!==WebAssembly.Exception&&t instanceof WebAssembly.Exception}function jo(t){const n=t?.name;if(!n&&Oo(t)){return t.message&&Array.isArray(t.message)&&2==t.message.length?t.message[0]:"WebAssembly.Exception"}return n}function Mo(t){const n=t?.message;return Oo(t)?Array.isArray(t.message)&&2==t.message.length?t.message[1]:"wasm exception":n?n.error&&"string"==typeof n.error.message?n.error.message:n:"No error message"}function Lo(t,n,e,r){const o=Co(t,n,e?.syntheticException||void 0,r);return ut(o),o.level="error",e?.event_id&&(o.event_id=e.event_id),xe(o)}function Po(t,n,e="info",r,o){const i=Ao(t,n,r?.syntheticException||void 0,o);return i.level=e,r?.event_id&&(i.event_id=r.event_id),xe(i)}function Co(t,n,e,r,o){let i;if(j(n)&&n.error){return xo(t,n.error)}if(M(n)||O(n,"DOMException")){const o=n;if("stack"in n)i=xo(t,n);else{const n=o.name||(M(o)?"DOMError":"DOMException"),s=o.message?`${n}: ${o.message}`:n;i=Ao(t,s,e,r),at(i,s)}return"code"in o&&(i.tags={...i.tags,"DOMException.code":`${o.code}`}),i}if(R(n))return xo(t,n);if(A(n)||N(n)){return i=$o(t,n,e,o),ut(i,{synthetic:!0}),i}return i=Ao(t,n,e,r),at(i,`${n}`),ut(i,{synthetic:!0}),i}function Ao(t,n,e,r){const o={};if(r&&e){const r=Io(t,e);r.length&&(o.exception={values:[{value:n,stacktrace:{frames:r}}]}),ut(o,{synthetic:!0})}if(P(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 No(t,{isUnhandledRejection:n}){const e=function(t){const n=Object.keys(V(t));return n.sort(),n[0]?n.join(", "):"[object has no keys]"}(t),r=n?"promise rejection":"exception";if(j(t))return`Event \`ErrorEvent\` captured as ${r} with message \`${t.message}\``;if(N(t)){return`Event \`${function(t){try{const n=Object.getPrototypeOf(t);return n?n.constructor.name:void 0}catch{}}(t)}\` (type=${t.type}) captured as ${r}`}return`Object captured as ${r} with keys: ${e}`}class qo extends gr{constructor(t){const n=(r=t,{release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:_o.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...r});var r;!function(t,n,r=[n],o="npm"){const i=t._metadata||{};i.sdk||(i.sdk={name:`sentry.javascript.${n}`,packages:r.map(t=>({name:`${o}:@sentry/${t}`,version:e})),version:e}),t._metadata=i}(n,"browser",["browser"],_o.SENTRY_SDK_SOURCE||"cdn"),n._metadata?.sdk&&(n._metadata.sdk.settings={infer_ip:n.sendDefaultPii?"auto":"never",...n._metadata.sdk.settings}),super(n);const{sendDefaultPii:o,sendClientReports:i,enableLogs:s,_experiments:c,enableMetrics:a}=this.st,u=a??c?.enableMetrics??!0;_o.document&&(i||s||u)&&_o.document.addEventListener("visibilitychange",()=>{"hidden"===_o.document.visibilityState&&(i&&this.Tt(),s&&nr(this),u&&ar(this))}),o&&this.on("beforeSendSession",Mr)}eventFromException(t,n){return Lo(this.st.stackParser,t,n,this.st.attachStacktrace)}eventFromMessage(t,n="info",e){return Po(this.st.stackParser,t,n,e,this.st.attachStacktrace)}St(t,n,e,r){return t.platform=t.platform||"javascript",super.St(t,n,e,r)}}const Do=n,Fo=(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)))}},Uo=(t=!0)=>{const n=Do.performance?.getEntriesByType?.("navigation")[0];if(!t||n&&n.responseStart>0&&n.responseStart<performance.now())return n},Bo=()=>{const t=Uo();return t?.activationStart??0},Ho=(t,n=-1)=>{const e=Uo();let r="navigate";e&&(Do.document?.prerendering||Bo()>0?r="prerender":Do.document?.wasDiscarded?r="restore":e.type&&(r=e.type.replace(/_/g,"-")));return{name:t,value:n,rating:"good",delta:0,entries:[],id:`v5-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:r}},zo=new WeakMap;function Wo(t,n){return zo.get(t)||zo.set(t,new n),zo.get(t)}class Jo{constructor(){Jo.prototype.__init.call(this),Jo.prototype.__init2.call(this)}__init(){this.kt=0}__init2(){this.$t=[]}xt(t){if(t.hadRecentInput)return;const n=this.$t[0],e=this.$t[this.$t.length-1];this.kt&&n&&e&&t.startTime-e.startTime<1e3&&t.startTime-n.startTime<5e3?(this.kt+=t.value,this.$t.push(t)):(this.kt=t.value,this.$t=[t]),this.It?.(t)}}const Xo=(t,n,e={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(t)){const r=new PerformanceObserver(t=>{Promise.resolve().then(()=>{n(t.getEntries())})});return r.observe({type:t,buffered:!0,...e}),r}}catch{}},Go=t=>{let n=!1;return()=>{n||(t(),n=!0)}};let Ko=-1;const Yo=t=>{"hidden"===Do.document.visibilityState&&Ko>-1&&(Ko="visibilitychange"===t.type?t.timeStamp:0,Vo())},Vo=()=>{removeEventListener("visibilitychange",Yo,!0),removeEventListener("prerenderingchange",Yo,!0)},Zo=()=>{if(Do.document&&Ko<0){const t=Bo(),n=Do.document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").filter(n=>"hidden"===n.name&&n.startTime>t)[0]?.startTime;Ko=n??("hidden"!==Do.document?.visibilityState||Do.document?.prerendering?1/0:0),addEventListener("visibilitychange",Yo,!0),addEventListener("prerenderingchange",Yo,!0)}return{get firstHiddenTime(){return Ko}}},Qo=t=>{Do.document?.prerendering?addEventListener("prerenderingchange",()=>t(),!0):t()},ti=[1800,3e3],ni=[.1,.25],ei=(t,n={})=>{((t,n={})=>{Qo(()=>{const e=Zo(),r=Ho("FCP");let o;const i=Xo("paint",t=>{for(const n of t)"first-contentful-paint"===n.name&&(i.disconnect(),n.startTime<e.firstHiddenTime&&(r.value=Math.max(n.startTime-Bo(),0),r.entries.push(n),o(!0)))});i&&(o=Fo(t,r,ti,n.reportAllChanges))})})(Go(()=>{const e=Ho("CLS",0);let r;const o=Wo(n,Jo),i=t=>{for(const n of t)o.xt(n);o.kt>e.value&&(e.value=o.kt,e.entries=o.$t,r())},s=Xo("layout-shift",i);s&&(r=Fo(t,e,ni,n.reportAllChanges),Do.document?.addEventListener("visibilitychange",()=>{"hidden"===Do.document?.visibilityState&&(i(s.takeRecords()),r(!0))}),Do?.setTimeout?.(r))}))};let ri=0,oi=1/0,ii=0;const si=t=>{t.forEach(t=>{t.interactionId&&(oi=Math.min(oi,t.interactionId),ii=Math.max(ii,t.interactionId),ri=ii?(ii-oi)/7+1:0)})};let ci;const ai=()=>ci?ri:performance.interactionCount||0,ui=()=>{"interactionCount"in performance||ci||(ci=Xo("event",si,{type:"event",buffered:!0,durationThreshold:0}))};let fi=0;class di{constructor(){di.prototype.__init.call(this),di.prototype.__init2.call(this)}__init(){this.Rt=[]}__init2(){this.Ot=new Map}jt(){fi=ai(),this.Rt.length=0,this.Ot.clear()}Mt(){const t=Math.min(this.Rt.length-1,Math.floor((ai()-fi)/50));return this.Rt[t]}xt(t){if(this.Lt?.(t),!t.interactionId&&"first-input"!==t.entryType)return;const n=this.Rt.at(-1);let e=this.Ot.get(t.interactionId);if(e||this.Rt.length<10||t.duration>n.Pt){if(e?t.duration>e.Pt?(e.entries=[t],e.Pt=t.duration):t.duration===e.Pt&&t.startTime===e.entries[0].startTime&&e.entries.push(t):(e={id:t.interactionId,entries:[t],Pt:t.duration},this.Ot.set(e.id,e),this.Rt.push(e)),this.Rt.sort((t,n)=>n.Pt-t.Pt),this.Rt.length>10){const t=this.Rt.splice(10);for(const n of t)this.Ot.delete(n.id)}this.Ct?.(e)}}}const li=t=>{const n=n=>{"pagehide"!==n.type&&"hidden"!==Do.document?.visibilityState||t(n)};Do.document&&(addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0))},pi=t=>{const n=Do.requestIdleCallback||Do.setTimeout;"hidden"===Do.document?.visibilityState?t():(n(t=Go(t)),li(t))},hi=[200,500];class mi{xt(t){this.Lt?.(t)}}const gi=[2500,4e3],yi=[800,1800],vi=t=>{Do.document?.prerendering?Qo(()=>vi(t)):"complete"!==Do.document?.readyState?addEventListener("load",()=>vi(t),!0):setTimeout(t)},bi={},_i={};let Si,wi,Ei,Ti;function ki(t,n=!1){return Li("cls",t,Ri,Si,n)}function $i(t,n=!1){return Li("lcp",t,Oi,wi,n)}function xi(t,n){return Pi(t,n),_i[t]||(!function(t){const n={};"event"===t&&(n.durationThreshold=0);Xo(t,n=>{Ii(t,{entries:n})},n)}(t),_i[t]=!0),Ci(t,n)}function Ii(t,n){const e=bi[t];if(e?.length)for(const t of e)try{t(n)}catch(t){}}function Ri(){return ei(t=>{Ii("cls",{metric:t}),Si=t},{reportAllChanges:!0})}function Oi(){return((t,n={})=>{Qo(()=>{const e=Zo(),r=Ho("LCP");let o;const i=Wo(n,mi),s=t=>{n.reportAllChanges||(t=t.slice(-1));for(const n of t)i.xt(n),n.startTime<e.firstHiddenTime&&(r.value=Math.max(n.startTime-Bo(),0),r.entries=[n],o())},c=Xo("largest-contentful-paint",s);if(c){o=Fo(t,r,gi,n.reportAllChanges);const e=Go(()=>{s(c.takeRecords()),c.disconnect(),o(!0)});for(const t of["keydown","click","visibilitychange"])Do.document&&addEventListener(t,()=>pi(e),{capture:!0,once:!0})}})})(t=>{Ii("lcp",{metric:t}),wi=t},{reportAllChanges:!0})}function ji(){return((t,n={})=>{const e=Ho("TTFB"),r=Fo(t,e,yi,n.reportAllChanges);vi(()=>{const t=Uo();t&&(e.value=Math.max(t.responseStart-Bo(),0),e.entries=[t],r(!0))})})(t=>{Ii("ttfb",{metric:t}),Ei=t})}function Mi(){return((t,n={})=>{globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype&&Qo(()=>{ui();const e=Ho("INP");let r;const o=Wo(n,di),i=t=>{pi(()=>{for(const n of t)o.xt(n);const n=o.Mt();n&&n.Pt!==e.value&&(e.value=n.Pt,e.entries=n.entries,r())})},s=Xo("event",i,{durationThreshold:n.durationThreshold??40});r=Fo(t,e,hi,n.reportAllChanges),s&&(s.observe({type:"first-input",buffered:!0}),li(()=>{i(s.takeRecords()),r(!0)}))})})(t=>{Ii("inp",{metric:t}),Ti=t})}function Li(t,n,e,r,o=!1){let i;return Pi(t,n),_i[t]||(i=e(),_i[t]=!0),r&&n({metric:r}),Ci(t,n,o?i:void 0)}function Pi(t,n){bi[t]=bi[t]||[],bi[t].push(n)}function Ci(t,n,e){return()=>{e&&e();const r=bi[t];if(!r)return;const o=r.indexOf(n);-1!==o&&r.splice(o,1)}}function Ai(t){return"number"==typeof t&&isFinite(t)}function Ni(t,n,e,{...r}){const o=kn(t).start_timestamp;return o&&o>n&&"function"==typeof t.updateStartTime&&t.updateStartTime(n),ye(t,()=>{const t=ge({startTime:n,...r});return t&&t.end(e),t})}function qi(t){const n=Ct();if(!n)return;const{name:e,transaction:r,attributes:o,startTime:i}=t,{release:s,environment:c,sendDefaultPii:a}=n.getOptions(),u=n.getIntegrationByName("Replay"),f=u?.getReplayId(),d=jt(),l=d.getUser(),p=void 0!==l?l.email||l.id||l.ip_address:void 0;let h;try{h=d.getScopeData().contexts.profile.profile_id}catch{}return ge({name:e,attributes:{release:s,environment:c,user:p||void 0,profile_id:h||void 0,replay_id:f||void 0,transaction:r,"user_agent.original":Do.navigator?.userAgent,"client.address":a?"{{auto}}":void 0,...o},startTime:i,experimental:{standalone:!0}})}function Di(){return Do.addEventListener&&Do.performance}function Fi(t){return t/1e3}function Ui(t){try{return PerformanceObserver.supportedEntryTypes.includes(t)}catch{return!1}}function Bi(t,n){let e,r=!1;function o(t){!r&&e&&n(t,e),r=!0}li(()=>{o("pagehide")});const i=t.on("beforeStartNavigationSpan",(t,n)=>{n?.isRedirect||(o("navigation"),i(),s())}),s=t.on("afterStartPageLoadSpan",t=>{e=t.spanContext().spanId,s()})}function Hi(t){let n,e=0;if(!Ui("layout-shift"))return;const r=ki(({metric:t})=>{const r=t.entries[t.entries.length-1];r&&(e=t.value,n=r)},!0);Bi(t,(t,o)=>{!function(t,n,e,r){const o=n?Fi((mt()||0)+n.startTime):ht(),i=jt().getScopeData().transactionName,s=n?H(n.sources[0]?.node):"Layout shift",c={[Ut]:"auto.http.browser.cls",[Ft]:"ui.webvital.cls",[Xt]:0,"sentry.pageload.span_id":e,"sentry.report_event":r};n?.sources&&n.sources.forEach((t,n)=>{c[`cls.source.${n+1}`]=H(t.node)});const a=qi({name:s,transaction:i,attributes:c,startTime:o});a&&(a.addEvent("cls",{[Ht]:"",[zt]:t}),a.end(o))}(e,n,o,t),r()})}function zi(t){let n,e=0;if(!Ui("largest-contentful-paint"))return;const r=$i(({metric:t})=>{const r=t.entries[t.entries.length-1];r&&(e=t.value,n=r)},!0);Bi(t,(t,o)=>{!function(t,n,e,r){const o=Fi((mt()||0)+(n?.startTime||0)),i=jt().getScopeData().transactionName,s=n?H(n.element):"Largest contentful paint",c={[Ut]:"auto.http.browser.lcp",[Ft]:"ui.webvital.lcp",[Xt]:0,"sentry.pageload.span_id":e,"sentry.report_event":r};n&&(n.element&&(c["lcp.element"]=H(n.element)),n.id&&(c["lcp.id"]=n.id),n.url&&(c["lcp.url"]=n.url),null!=n.loadTime&&(c["lcp.loadTime"]=n.loadTime),null!=n.renderTime&&(c["lcp.renderTime"]=n.renderTime),null!=n.size&&(c["lcp.size"]=n.size));const a=qi({name:s,transaction:i,attributes:c,startTime:o});a&&(a.addEvent("lcp",{[Ht]:"millisecond",[zt]:t}),a.end(o))}(e,n,o,t),r()})}function Wi(t){return t?((mt()||performance.timeOrigin)+t)/1e3:t}function Ji(t){const n={};if(null!=t.nextHopProtocol){const{name:e,version:r}=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}return r===t&&(n=r),{name:n,version:e}}(t.nextHopProtocol);n["network.protocol.version"]=r,n["network.protocol.name"]=e}return mt()||Di()?.timeOrigin?(e={...n,"http.request.redirect_start":Wi(t.redirectStart),"http.request.redirect_end":Wi(t.redirectEnd),"http.request.worker_start":Wi(t.workerStart),"http.request.fetch_start":Wi(t.fetchStart),"http.request.domain_lookup_start":Wi(t.domainLookupStart),"http.request.domain_lookup_end":Wi(t.domainLookupEnd),"http.request.connect_start":Wi(t.connectStart),"http.request.secure_connection_start":Wi(t.secureConnectionStart),"http.request.connection_end":Wi(t.connectEnd),"http.request.request_start":Wi(t.requestStart),"http.request.response_start":Wi(t.responseStart),"http.request.response_end":Wi(t.responseEnd),"http.request.time_to_first_byte":null!=t.responseStart?t.responseStart/1e3:void 0},Object.fromEntries(Object.entries(e).filter(([,t])=>null!=t))):n;var e}const Xi=2147483647;let Gi,Ki,Yi=0,Vi={};function Zi({recordClsStandaloneSpans:t,recordLcpStandaloneSpans:n,client:e}){const r=Di();if(r&&mt()){r.mark&&Do.performance.mark("sentry-tracing-init");const o=n?zi(e):$i(({metric:t})=>{const n=t.entries[t.entries.length-1];n&&(Vi.lcp={value:t.value,unit:"millisecond"},Gi=n)},!0),i=Li("ttfb",({metric:t})=>{t.entries[t.entries.length-1]&&(Vi.ttfb={value:t.value,unit:"millisecond"})},ji,Ei),s=t?Hi(e):ki(({metric:t})=>{const n=t.entries[t.entries.length-1];n&&(Vi.cls={value:t.value,unit:""},Ki=n)},!0);return()=>{o?.(),i(),s?.()}}return()=>{}}function Qi(t,n){const e=Di(),r=mt();if(!e?.getEntries||!r)return;const o=Fi(r),i=e.getEntries(),{op:s,start_timestamp:c}=kn(t);i.slice(Yi).forEach(e=>{const r=Fi(e.startTime),i=Fi(Math.max(0,e.duration));if(!("navigation"===s&&c&&o+r<c))switch(e.entryType){case"navigation":!function(t,n,e){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{ts(t,n,r,e)}),ts(t,n,"secureConnection",e,"TLS/SSL"),ts(t,n,"fetch",e,"cache"),ts(t,n,"domainLookup",e,"DNS"),function(t,n,e){const r=e+Fi(n.requestStart),o=e+Fi(n.responseEnd),i=e+Fi(n.responseStart);n.responseEnd&&(Ni(t,r,o,{op:"browser.request",name:n.name,attributes:{[Ut]:"auto.ui.browser.metrics"}}),Ni(t,i,o,{op:"browser.response",name:n.name,attributes:{[Ut]:"auto.ui.browser.metrics"}}))}(t,n,e)}(t,e,o);break;case"mark":case"paint":case"measure":{!function(t,n,e,r,o,i){if(function(t){if("measure"!==t?.entryType)return;try{return"Components ⚛"===t.detail.devtools.track}catch{return}}(n))return;if(["mark","measure"].includes(n.entryType)&&rt(n.name,i))return;const s=Uo(!1),c=Fi(s?s.requestStart:0),a=o+Math.max(e,c),u=o+e,f=u+r,d={[Ut]:"auto.resource.browser.metrics"};a!==u&&(d["sentry.browser.measure_happened_before_request"]=!0,d["sentry.browser.measure_start_time"]=a);(function(t,n){try{const e=n.detail;if(!e)return;if("object"==typeof e){for(const[n,r]of Object.entries(e))if(r&&C(r))t[`sentry.browser.measure.detail.${n}`]=r;else if(void 0!==r)try{t[`sentry.browser.measure.detail.${n}`]=JSON.stringify(r)}catch{}return}if(C(e))return void(t["sentry.browser.measure.detail"]=e);try{t["sentry.browser.measure.detail"]=JSON.stringify(e)}catch{}}catch{}})(d,n),a<=f&&Ni(t,a,f,{name:n.name,op:n.entryType,attributes:d})}(t,e,r,i,o,n.ignorePerformanceApiSpans);const s=Zo(),c=e.startTime<s.firstHiddenTime;"first-paint"===e.name&&c&&(Vi.fp={value:e.startTime,unit:"millisecond"}),"first-contentful-paint"===e.name&&c&&(Vi.fcp={value:e.startTime,unit:"millisecond"});break}case"resource":!function(t,n,e,r,o,i,s){if("xmlhttprequest"===n.initiatorType||"fetch"===n.initiatorType)return;const c=n.initiatorType?`resource.${n.initiatorType}`:"resource.other";if(s?.includes(c))return;const a={[Ut]:"auto.resource.browser.metrics"},u=jr(e);u.protocol&&(a["url.scheme"]=u.protocol.split(":").pop());u.host&&(a["server.address"]=u.host);a["url.same_origin"]=e.includes(Do.location.origin),function(t,n,e){e.forEach(([e,r])=>{const o=t[e];null!=o&&("number"==typeof o&&o<Xi||"string"==typeof o)&&(n[r]=o)})}(n,a,[["responseStatus","http.response.status_code"],["transferSize","http.response_transfer_size"],["encodedBodySize","http.response_content_length"],["decodedBodySize","http.decoded_response_content_length"],["renderBlockingStatus","resource.render_blocking_status"],["deliveryType","http.response_delivery_type"]]);const f={...a,...Ji(n)},d=i+r,l=d+o;Ni(t,d,l,{name:e.replace(Do.location.origin,""),op:c,attributes:f})}(t,e,e.name,r,i,o,n.ignoreResourceSpans)}}),Yi=Math.max(i.length-1,0),function(t){const n=Do.navigator;if(!n)return;const e=n.connection;e&&(e.effectiveType&&t.setAttribute("effectiveConnectionType",e.effectiveType),e.type&&t.setAttribute("connectionType",e.type),Ai(e.rtt)&&(Vi["connection.rtt"]={value:e.rtt,unit:"millisecond"}));Ai(n.deviceMemory)&&t.setAttribute("deviceMemory",`${n.deviceMemory} GB`);Ai(n.hardwareConcurrency)&&t.setAttribute("hardwareConcurrency",String(n.hardwareConcurrency))}(t),"pageload"===s&&(function(t){const n=Uo(!1);if(!n)return;const{responseStart:e,requestStart:r}=n;r<=e&&(t["ttfb.requestTime"]={value:e-r,unit:"millisecond"})}(Vi),n.recordClsOnPageloadSpan||delete Vi.cls,n.recordLcpOnPageloadSpan||delete Vi.lcp,Object.entries(Vi).forEach(([t,n])=>{ae(t,n.value,n.unit)}),t.setAttribute("performance.timeOrigin",o),t.setAttribute("performance.activationStart",Bo()),function(t,n){Gi&&n.recordLcpOnPageloadSpan&&(Gi.element&&t.setAttribute("lcp.element",H(Gi.element)),Gi.id&&t.setAttribute("lcp.id",Gi.id),Gi.url&&t.setAttribute("lcp.url",Gi.url.trim().slice(0,200)),null!=Gi.loadTime&&t.setAttribute("lcp.loadTime",Gi.loadTime),null!=Gi.renderTime&&t.setAttribute("lcp.renderTime",Gi.renderTime),t.setAttribute("lcp.size",Gi.size));Ki?.sources&&n.recordClsOnPageloadSpan&&Ki.sources.forEach((n,e)=>t.setAttribute(`cls.source.${e+1}`,H(n.node)))}(t,n)),Gi=void 0,Ki=void 0,Vi={}}function ts(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+Fi(c),r+Fi(s),{op:`browser.${o}`,name:n.name,attributes:{[Ut]:"auto.ui.browser.metrics",..."redirect"===e&&null!=n.redirectCount?{"http.redirect_count":n.redirectCount}:{}}})}const ns=({entries:t})=>{const n=Ln(),e=n?Mn(n):void 0,r=e?kn(e).description:jt().getScopeData().transactionName;t.forEach(t=>{const n=t;if(!n.identifier)return;const e=n.name,o=n.renderTime,i=n.loadTime,[s,c]=i?[Fi(i),"load-time"]:o?[Fi(o),"render-time"]:[ht(),"entry-emission"],a="image-paint"===e?Fi(Math.max(0,(o??0)-(i??0))):0,u={[Ut]:"auto.ui.browser.elementtiming",[Ft]:"ui.elementtiming",[Nt]:"component","sentry.span_start_time_source":c,"sentry.transaction_name":r,"element.id":n.id,"element.type":n.element?.tagName?.toLowerCase()||"unknown","element.size":n.naturalWidth&&n.naturalHeight?`${n.naturalWidth}x${n.naturalHeight}`:void 0,"element.render_time":o,"element.load_time":i,"element.url":n.url||void 0,"element.identifier":n.identifier,"element.paint_type":e};me({name:`element[${n.identifier}]`,attributes:u,startTime:s,onlyIfParent:!0},t=>{t.end(s+a)})})};let es,rs,os,is;function ss(){if(!Do.document)return;const t=S.bind(null,"dom"),n=cs(t,!0);Do.document.addEventListener("click",n,!1),Do.document.addEventListener("keypress",n,!1),["EventTarget","Node"].forEach(n=>{const e=Do,r=e[n]?.prototype;r?.hasOwnProperty?.("addEventListener")&&(X(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=cs(t);i.handler=r,n.call(this,e,r,o)}i.refCount++}catch{}return n.call(this,e,r,o)}}),X(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{}return t.call(this,n,e,r)}}))})}function cs(t,n=!1){return e=>{if(!e||e._sentryCaptured)return;const r=function(t){try{return t.target}catch{return null}}(e);if(function(t,n){return"keypress"===t&&(!n?.tagName||"INPUT"!==n.tagName&&"TEXTAREA"!==n.tagName&&!n.isContentEditable)}(e.type,r))return;G(e,"_sentryCaptured",!0),r&&!r._sentryId&&G(r,"_sentryId",it());const o="keypress"===e.type?"input":e.type;if(!function(t){if(t.type!==rs)return!1;try{if(!t.target||t.target._sentryId!==os)return!1}catch{}return!0}(e)){t({event:e,name:o,global:n}),rs=e.type,os=r?r._sentryId:void 0}clearTimeout(es),es=Do.setTimeout(()=>{os=void 0,rs=void 0},1e3)}}function as(t){const n="history";b(n,t),_(n,us)}function us(){function t(t){return function(...n){const e=n.length>2?n[2]:void 0;if(e){const r=is,o=function(t){try{return new URL(t,Do.location.origin).toString()}catch{return t}}(String(e));if(is=o,r===o)return t.apply(this,n);S("history",{from:r,to:o})}return t.apply(this,n)}}Do.addEventListener("popstate",()=>{const t=Do.location.href,n=is;if(is=t,n===t)return;S("history",{from:n,to:t})}),"history"in so&&so.history&&(X(Do.history,"pushState",t),X(Do.history,"replaceState",t))}const fs={};function ds(t){const n=fs[t];if(n)return n;let e=Do[t];if(co(e))return fs[t]=e.bind(Do);const r=Do.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?.[t]&&(e=o[t]),r.head.removeChild(n)}catch(t){}return e?fs[t]=e.bind(Do):e}const ls="__sentry_xhr_v3__";function ps(t){b("xhr",t),_("xhr",hs)}function hs(){if(!Do.XMLHttpRequest)return;const t=XMLHttpRequest.prototype;t.open=new Proxy(t.open,{apply(t,n,e){const r=new Error,o=1e3*ht(),i=L(e[0])?e[0].toUpperCase():void 0,s=function(t){if(L(t))return t;try{return t.toString()}catch{}return}(e[1]);if(!i||!s)return t.apply(n,e);n[ls]={method:i,url:s,request_headers:{}},"POST"===i&&s.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const c=()=>{const t=n[ls];if(t&&4===n.readyState){try{t.status_code=n.status}catch{}S("xhr",{endTimestamp:1e3*ht(),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[ls];return i&&L(r)&&L(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[ls];if(!r)return t.apply(n,e);void 0!==e[0]&&(r.body=e[0]);return S("xhr",{startTimestamp:1e3*ht(),xhr:n}),t.apply(n,e)}})}function ms(t){let n;try{n=t.getAllResponseHeaders()}catch(t){return{}}return n?n.split("\r\n").reduce((t,n)=>{const[e,r]=n.split(": ");return r&&(t[e.toLowerCase()]=r),t},{}):{}}const gs=[],ys=new Map,vs=new Map;function bs(){if(Di()&&mt()){const t=Li("inp",Ss,Mi,Ti);return()=>{t()}}return()=>{}}const _s={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"};const Ss=({metric:t})=>{if(null==t.value)return;const n=Fi(t.value);if(n>60)return;const e=t.entries.find(n=>n.duration===t.value&&_s[n.name]);if(!e)return;const{interactionId:r}=e,o=_s[e.name],i=Fi(mt()+e.startTime),s=Ln(),c=s?Mn(s):void 0,a=null!=r?ys.get(r):void 0,u=a?.span||c,f=u?kn(u).description:jt().getScopeData().transactionName,d=qi({name:a?.elementName||H(e.target),transaction:f,attributes:{[Ut]:"auto.http.browser.inp",[Ft]:`ui.interaction.${o}`,[Xt]:e.duration},startTime:i});d&&(d.addEvent("inp",{[Ht]:"millisecond",[zt]:t.value}),d.end(i+n))};function ws(){const t=Object.keys(_s);function n(t){const n=t.target;if(!n)return;const e=H(n),r=Math.round(t.timeStamp);if(vs.set(r,e),vs.size>50){const t=vs.keys().next().value;void 0!==t&&vs.delete(t)}}"undefined"!=typeof window&&t.forEach(t=>{Do.addEventListener(t,n,{capture:!0,passive:!0})});const e=({entries:t})=>{const n=Ln(),e=n&&Mn(n);t.forEach(t=>{if(!function(t){return"duration"in t}(t))return;const n=t.interactionId;if(null==n)return;if(ys.has(n))return;const r=t.target?H(t.target):function(t){const n=Math.round(t.startTime);let e=vs.get(n);if(!e)for(let t=-5;t<=5;t++){const r=vs.get(n+t);if(r){e=r;break}}return e||"<unknown>"}(t);if(gs.length>10){const t=gs.shift();ys.delete(t)}gs.push(n),ys.set(n,{span:e,elementName:r})})};xi("event",e),xi("first-input",e)}function Es(t,n=ds("fetch")){let e=0,r=0;return xr(t,async function(o){const i=o.body.length;e+=i,r++;const s={body:o.body,method:"POST",referrerPolicy:"strict-origin",headers:t.headers,keepalive:e<=6e4&&r<15,...t.fetchOptions};try{const e=await n(t.url,s);return{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}}}catch(t){throw fs["fetch"]=void 0,t}finally{e-=i,r--}},kr(t.bufferSize||40))}function Ts(t,n,e,r){const o={filename:t,function:"<anonymous>"===n?u:n,in_app:!0};return void 0!==e&&(o.lineno=e),void 0!==r&&(o.colno=r),o}const ks=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,$s=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,xs=/\((\S*)(?::(\d+))(?::(\d+))\)/,Is=/at (.+?) ?\(data:(.+?),/,Rs=[30,t=>{const n=t.match(Is);if(n)return{filename:`<data:${n[2]}>`,function:n[1]};const e=ks.exec(t);if(e){const[,t,n,r]=e;return Ts(t,u,+n,+r)}const r=$s.exec(t);if(r){if(r[2]&&0===r[2].indexOf("eval")){const t=xs.exec(r[2]);t&&(r[2]=t[1],r[3]=t[2],r[4]=t[3])}const[t,n]=Us(r[1]||u,r[2]);return Ts(n,t,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}}],Os=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,js=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Ms=[50,t=>{const n=Os.exec(t);if(n){if(n[3]&&n[3].indexOf(" > eval")>-1){const t=js.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]||u;return[e,t]=Us(e,t),Ts(t,e,n[4]?+n[4]:void 0,n[5]?+n[5]:void 0)}}],Ls=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Ps=[40,t=>{const n=Ls.exec(t);return n?Ts(n[2],n[1]||u,+n[3],n[4]?+n[4]:void 0):void 0}],Cs=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,As=[10,t=>{const n=Cs.exec(t);return n?Ts(n[2],n[3]||u,+n[1]):void 0}],Ns=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,qs=[20,t=>{const n=Ns.exec(t);return n?Ts(n[5],n[3]||n[4]||u,+n[1],+n[2]):void 0}],Ds=[Rs,Ms],Fs=l(...Ds),Us=(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]:u,e?`safari-extension:${n}`:`safari-web-extension:${n}`]:[t,n]};const Bs=1024,Hs=(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,Gr)}(function(t){return function(n){if(Ct()!==t)return;const e={category:"console",data:{arguments:n.args,logger:"console"},level:Kr(n.level),message:nt(n.args," ")};if("assert"===n.level){if(!1!==n.args[0])return;e.message=`Assertion failed: ${nt(n.args.slice(1)," ")||"console.assert"}`,e.data.arguments=n.args.slice(1)}Cr(e,{input:n.args,level:n.level})}}(t)),n.dom&&(e=function(t,n){return function(e){if(Ct()!==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>Bs&&(s=Bs),"string"==typeof i&&(i=[i]);try{const t=e.event,n=function(t){return!!t&&!!t.target}(t)?t.target:t;r=H(n,{keyAttrs:i,maxStringLength:s}),o=J(n)}catch{r="<unknown>"}if(0===r.length)return;const c={category:`ui.${e.name}`,message:r};o&&(c.data={"ui.component_name":o}),Cr(c,{event:e.event,name:e.name,global:e.global})}}(t,n.dom),b("dom",e),_("dom",ss)),n.xhr&&ps(function(t){return function(n){if(Ct()!==t)return;const{startTimestamp:e,endTimestamp:r}=n,o=n.xhr[ls];if(!e||!r||!o)return;const{method:i,url:s,status_code:c,body:a}=o,u={method:i,url:s,status_code:c},f={xhr:n.xhr,input:a,startTimestamp:e,endTimestamp:r},d={category:"xhr",data:u,type:"http",level:io(c)};t.emit("beforeOutgoingRequestBreadcrumb",d,f),Cr(d,f)}}(t)),n.fetch&&uo(function(t){return function(n){if(Ct()!==t)return;const{startTimestamp:e,endTimestamp:r}=n;if(r&&(!n.fetchData.url.match(/sentry_key/)||"POST"!==n.fetchData.method))if(n.error){const o=n.fetchData,i={data:n.error,input:n.args,startTimestamp:e,endTimestamp:r},s={category:"fetch",data:o,level:"error",type:"http"};t.emit("beforeOutgoingRequestBreadcrumb",s,i),Cr(s,i)}else{const o=n.response,i={...n.fetchData,status_code:o?.status},s={input:n.args,response:o,startTimestamp:e,endTimestamp:r},c={category:"fetch",data:i,type:"http",level:io(i.status_code)};t.emit("beforeOutgoingRequestBreadcrumb",c,s),Cr(c,s)}}}(t)),n.history&&as(function(t){return function(n){if(Ct()!==t)return;let e=n.from,r=n.to;const o=jr(_o.location.href);let i=e?jr(e):void 0;const s=jr(r);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),Cr({category:"navigation",data:{from:e,to:r}})}}(t)),n.sentry&&t.on("beforeSendEvent",function(t){return function(n){Ct()===t&&Cr({category:"sentry."+("transaction"===n.type?"transaction":"event"),event_id:n.event_id,level:n.level,message:ct(n)},{event:n})}}(t))}}};const zs=["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"],Ws=(t={})=>{const n={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...t};return{name:"BrowserApiErrors",setupOnce(){n.setTimeout&&X(_o,"setTimeout",Js),n.setInterval&&X(_o,"setInterval",Js),n.requestAnimationFrame&&X(_o,"requestAnimationFrame",Xs),n.XMLHttpRequest&&"XMLHttpRequest"in _o&&X(XMLHttpRequest.prototype,"send",Gs);const t=n.eventTarget;if(t){(Array.isArray(t)?t:zs).forEach(t=>function(t,n){const e=_o,r=e[t]?.prototype;if(!r?.hasOwnProperty?.("addEventListener"))return;X(r,"addEventListener",function(e){return function(r,o,i){try{"function"==typeof o.handleEvent&&(o.handleEvent=Eo(o.handleEvent,{mechanism:{data:{handler:m(o),target:t},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return n.unregisterOriginalCallbacks&&function(t,n,e){t&&"object"==typeof t&&"removeEventListener"in t&&"function"==typeof t.removeEventListener&&t.removeEventListener(n,e)}(this,r,o),e.apply(this,[r,Eo(o,{mechanism:{data:{handler:m(o),target:t},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),i])}}),X(r,"removeEventListener",function(t){return function(n,e,r){try{const o=e.__sentry_wrapped__;o&&t.call(this,n,o,r)}catch{}return t.call(this,n,e,r)}})}(t,n))}}}};function Js(t){return function(...n){const e=n[0];return n[0]=Eo(e,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${m(t)}`}}),t.apply(this,n)}}function Xs(t){return function(n){return t.apply(this,[Eo(n,{mechanism:{data:{handler:m(t)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function Gs(t){return function(...n){const e=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(t=>{t in e&&"function"==typeof e[t]&&X(e,t,function(n){const e={mechanism:{data:{handler:m(n)},handled:!1,type:`auto.browser.browserapierrors.xhr.${t}`}},r=Y(n);return r&&(e.mechanism.data.handler=m(r)),Eo(n,e)})}),t.apply(this,n)}}const Ks=()=>({name:"BrowserSession",setupOnce(){void 0!==_o.document&&(We({ignoreDuration:!0}),Ge(),as(({from:t,to:n})=>{void 0!==t&&t!==n&&(We({ignoreDuration:!0}),Ge())}))}}),Ys=(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}=Vs();if(Ct()!==t||wo())return;const{msg:o,url:i,line:s,column:c,error:a}=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||{},a=c.frames=c.frames||[],f=r,d=e,l=function(t){if(!L(t)||0===t.length)return;if(t.startsWith("data:")){const n=t.match(/^data:([^;]+)/);return`<data:${n?n[1]:"text/javascript"}${t.includes("base64,")?",base64":""}>`}return t}(n)??W();0===a.length&&a.push({colno:f,filename:l,function:u,in_app:!0,lineno:d});return t}(Co(e,a||o,void 0,r,!1),i,s,c);f.level="error",Be(f,{originalException:a,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})})}(t),n.onunhandledrejection&&function(t){$(n=>{const{stackParser:e,attachStacktrace:r}=Vs();if(Ct()!==t||wo())return;const o=function(t){if(C(t))return t;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch{}return t}(n),i=C(o)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(o)}`}]}}:Co(e,o,void 0,r,!0);i.level="error",Be(i,{originalException:o,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})})}(t)}}};function Vs(){const t=Ct();return t?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const Zs=()=>({name:"HttpContext",preprocessEvent(t){if(!_o.navigator&&!_o.location&&!_o.document)return;const n=To(),e={...n.headers,...t.request?.headers};t.request={...n,...t.request,headers:e}}}),Qs=(t={})=>{const n=t.limit||5,e=t.key||"cause";return{name:"LinkedErrors",preprocessEvent(t,r,o){zr(ko,o.getOptions().stackParser,e,n,t,r)}}};function tc(){return!!function(){if(void 0===_o.window)return!1;const t=_o;if(t.nw)return!1;const n=t.chrome||t.browser;if(!n?.runtime?.id)return!1;const e=W(),r=["chrome-extension","moz-extension","ms-browser-extension","safari-web-extension"];return!(_o===_o.top&&r.some(t=>e.startsWith(`${t}://`)))}()}function nc(t){return[Ur(),qr(),Ws(),Hs(),Ys(),Qs(),Yr(),Zs(),Ks()]}const ec={replayIntegration:"replay",replayCanvasIntegration:"replay-canvas",feedbackIntegration:"feedback",feedbackModalIntegration:"feedback-modal",feedbackScreenshotIntegration:"feedback-screenshot",captureConsoleIntegration:"captureconsole",contextLinesIntegration:"contextlines",linkedErrorsIntegration:"linkederrors",dedupeIntegration:"dedupe",extraErrorDataIntegration:"extraerrordata",graphqlClientIntegration:"graphqlclient",httpClientIntegration:"httpclient",reportingObserverIntegration:"reportingobserver",rewriteFramesIntegration:"rewriteframes",browserProfilingIntegration:"browserprofiling",moduleMetadataIntegration:"modulemetadata",instrumentAnthropicAiClient:"instrumentanthropicaiclient",instrumentOpenAiClient:"instrumentopenaiclient",instrumentGoogleGenAIClient:"instrumentgooglegenaiclient"},rc=_o;const oc="sentry_previous_trace",ic="sentry.previous_trace";function sc(t,{linkPreviousTrace:n,consistentTraceSampling:e}){const r="session-storage"===n;let o=r?function(){try{const t=_o.sessionStorage?.getItem(oc);return JSON.parse(t)}catch{return}}():void 0;t.on("spanStart",t=>{if(Mn(t)!==t)return;const n=jt().getPropagationContext();o=function(t,n,e){const r=kn(n);function o(){try{return Number(e.dsc?.sample_rate)??Number(r.data?.[qt])}catch{return 0}}const i={spanContext:n.spanContext(),startTimestamp:r.start_timestamp,sampleRate:o(),sampleRand:e.sampleRand};if(!t)return i;const s=t.spanContext;if(s.traceId===r.trace_id)return t;Date.now()/1e3-t.startTimestamp<=3600&&(n.addLink({context:s,attributes:{[Gt]:"previous_trace"}}),n.setAttribute(ic,`${s.traceId}-${s.spanId}-${cc(s)?1:0}`));return i}(o,t,n),r&&function(t){try{_o.sessionStorage.setItem(oc,JSON.stringify(t))}catch(t){}}(o)});let i=!0;e&&t.on("beforeSampling",t=>{if(!o)return;const n=jt(),e=n.getPropagationContext();i&&e.parentSpanId?i=!1:(n.setPropagationContext({...e,dsc:{...e.dsc,sample_rate:String(o.sampleRate),sampled:String(cc(o.spanContext))},sampleRand:o.sampleRand}),t.parentSampled=cc(o.spanContext),t.parentSampleRate=o.sampleRate,t.spanAttributes={...t.spanAttributes,[Dt]:o.sampleRate})})}function cc(t){return 1===t.traceFlags}function ac(t){try{return new URL(t,_o.location.origin).href}catch{return}}function uc(t){try{return new Headers(t)}catch{return}}const fc=new WeakMap,dc=new Map,lc={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function pc(t,n){const{traceFetch:e,traceXHR:r,trackFetchStreamPerformance:o,shouldCreateSpanForRequest:i,enableHTTPTimings:s,tracePropagationTargets:c,onRequestSpanStart:a,onRequestSpanEnd:u}={...lc,...n},f="function"==typeof i?i:t=>!0,d=t=>function(t,n){const e=W();if(e){let r,o;try{r=new URL(t,e),o=new URL(e).origin}catch{return!1}const i=r.origin===o;return n?rt(r.toString(),n)||i&&rt(r.pathname,n):i}{const e=!!t.match(/^\/(?!\/)/);return n?rt(t,n):e}}(t,c),l={},p=t.getOptions().propagateTraceparent;e&&(t.addEventProcessor(t=>("transaction"===t.type&&t.spans&&t.spans.forEach(t=>{if("http.client"===t.op){const n=dc.get(t.span_id);n&&(t.timestamp=n/1e3,dc.delete(t.span_id))}}),t)),o&&function(t){const n="fetch-body-resolved";b(n,t),_(n,()=>fo(lo))}(t=>{if(t.response){const n=fc.get(t.response);n&&t.endTimestamp&&dc.set(n,t.endTimestamp)}}),uo(t=>{const n=to(t,f,d,l,{propagateTraceparent:p,onRequestSpanEnd:u});if(t.response&&t.fetchData.__span&&fc.set(t.response,t.fetchData.__span),n){const e=ac(t.fetchData.url),r=e?jr(e).host:void 0;n.setAttributes({"http.url":e,"server.address":r}),s&&hc(n),a?.(n,{headers:t.headers})}})),r&&ps(t=>{const n=function(t,n,e,r,o,i){const s=t.xhr,c=s?.[ls];if(!s||s.__sentry_own_request__||!c)return;const{url:a,method:u}=c,f=Nn()&&n(a);if(t.endTimestamp&&f){const n=s.__sentry_xhr_span_id__;if(!n)return;const e=r[n];return void(e&&void 0!==c.status_code&&(Kt(e,c.status_code),e.end(),i?.(e,{headers:uc(ms(s)),error:t.error}),delete r[n]))}const d=ac(a),l=jr(d||a),p=(g=a,g.split(/[?#]/,1)[0]),h=!!Ln(),m=f&&h?ge({name:`${u} ${p}`,attributes:{url:a,type:"xhr","http.method":u,"http.url":d,"server.address":l?.host,[Ut]:"auto.http.browser",[Ft]:"http.client",...l?.search&&{"http.query":l?.search},...l?.hash&&{"http.fragment":l?.hash}}}):new Xn;var g;s.__sentry_xhr_span_id__=m.spanContext().spanId,r[s.__sentry_xhr_span_id__]=m,e(a)&&function(t,n,e){const{"sentry-trace":r,baggage:o,traceparent:i}=Lr({span:n,propagateTraceparent:e});r&&function(t,n,e,r){const o=t.__sentry_xhr_v3__?.request_headers;if(o?.["sentry-trace"]||!t.setRequestHeader)return;try{if(t.setRequestHeader("sentry-trace",n),r&&!o?.traceparent&&t.setRequestHeader("traceparent",r),e){const n=o?.baggage;n&&n.split(",").some(t=>t.trim().startsWith("sentry-"))||t.setRequestHeader("baggage",e)}}catch{}}(t,r,o,i)}(s,Nn()&&h?m:void 0,o);const y=Ct();y&&y.emit("beforeOutgoingRequestSpan",m,t);return m}(t,f,d,l,p,u);n&&(s&&hc(n),a?.(n,{headers:uc(t.xhr.__sentry_xhr_v3__?.request_headers)}))})}function hc(t){const{url:n}=kn(t).data;if(!n||"string"!=typeof n)return;const e=xi("resource",({entries:r})=>{r.forEach(r=>{(function(t){return"resource"===t.entryType&&"initiatorType"in t&&"string"==typeof t.nextHopProtocol&&("fetch"===t.initiatorType||"xmlhttprequest"===t.initiatorType)})(r)&&r.name.endsWith(n)&&(t.setAttributes(Ji(r)),setTimeout(e))})})}const mc={...ke,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,enableElementTiming:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:"in-memory",consistentTraceSampling:!1,enableReportPageLoaded:!1,_experiments:{},...lc};function gc(t,n,e){t.emit("startPageLoadSpan",n,e),jt().setTransactionName(n.name);const r=_c(t);return r&&t.emit("afterStartPageLoadSpan",r),r}function yc(t,n,e){const{url:r,isRedirect:o}=e||{};t.emit("beforeStartNavigationSpan",n,{isRedirect:o}),t.emit("startNavigationSpan",n,{isRedirect:o});const i=jt();return i.setTransactionName(n.name),r&&!o&&i.setSDKProcessingMetadata({normalizedRequest:{...To(),url:r}}),_c(t)}function vc(t){const n=_o.document,e=n?.querySelector(`meta[name=${t}]`);return e?.getAttribute("content")||void 0}const bc="_sentry_idleSpan";function _c(t){return t[bc]}function Sc(t,n){G(t,bc,n)}const wc=1.5;return An(),t.BrowserClient=qo,t.SDK_VERSION=e,t.SEMANTIC_ATTRIBUTE_SENTRY_OP=Ft,t.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN=Ut,t.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE=qt,t.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE=Nt,t.Scope=Tt,t.WINDOW=_o,t.addBreadcrumb=Cr,t.addEventProcessor=function(t){Mt().addEventProcessor(t)},t.addIntegration=function(t){const n=Ct();n&&n.addIntegration(t)},t.breadcrumbsIntegration=Hs,t.browserApiErrorsIntegration=Ws,t.browserTracingIntegration=(t={})=>{const e={name:void 0,source:void 0},r=_o.document,{enableInp:o,enableElementTiming:i,enableLongTask:s,enableLongAnimationFrame:c,_experiments:{enableInteractions:a,enableStandaloneClsSpans:u,enableStandaloneLcpSpans:f},beforeStartSpan:d,idleTimeout:l,finalTimeout:p,childSpanTimeout:h,markBackgroundSpan:m,traceFetch:g,traceXHR:y,trackFetchStreamPerformance:v,shouldCreateSpanForRequest:b,enableHTTPTimings:_,ignoreResourceSpans:S,ignorePerformanceApiSpans:w,instrumentPageLoad:E,instrumentNavigation:T,detectRedirects:k,linkPreviousTrace:$,consistentTraceSampling:x,enableReportPageLoaded:I,onRequestSpanStart:R,onRequestSpanEnd:O}={...mc,...t};let j,M,L;function P(t,n,o=!0){const i="pageload"===n.op,s=n.name,c=d?d(n):n,a=c.attributes||{};if(s!==c.name&&(a[Nt]="custom",c.attributes=a),!o){const t=dt();return void ge({...c,startTime:t}).end(t)}e.name=c.name,e.source=a[Nt];const m=$e(c,{idleTimeout:l,finalTimeout:p,childSpanTimeout:h,disableAutoFinish:i,beforeSpanEnd:n=>{j?.(),Qi(n,{recordClsOnPageloadSpan:!u,recordLcpOnPageloadSpan:!f,ignoreResourceSpans:S,ignorePerformanceApiSpans:w}),Sc(t,void 0);const e=jt(),r=e.getPropagationContext();e.setPropagationContext({...r,traceId:m.spanContext().traceId,sampled:$n(m),dsc:Jn(n)}),i&&(L=void 0)},trimIdleSpanEndTimestamp:!I});function g(){r&&["interactive","complete"].includes(r.readyState)&&t.emit("idleSpanEnableAutoFinish",m)}i&&I&&(L=m),Sc(t,m),i&&!I&&r&&(r.addEventListener("readystatechange",()=>{g()}),g())}return{name:"BrowserTracing",setup(t){if(An(),j=Zi({recordClsStandaloneSpans:u||!1,recordLcpStandaloneSpans:f||!1,client:t}),o&&bs(),i&&Di()&&mt()&&xi("element",ns),c&&n.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?new PerformanceObserver(t=>{const n=Ln();if(n)for(const e of t.getEntries()){if(!e.scripts[0])continue;const t=Fi(mt()+e.startTime),{start_timestamp:r,op:o}=kn(n);if("navigation"===o&&r&&t<r)continue;const i=Fi(e.duration),s={[Ut]:"auto.ui.browser.metrics"},c=e.scripts[0],{invoker:a,invokerType:u,sourceURL:f,sourceFunctionName:d,sourceCharPosition:l}=c;s["browser.script.invoker"]=a,s["browser.script.invoker_type"]=u,f&&(s["code.filepath"]=f),d&&(s["code.function"]=d),-1!==l&&(s["browser.script.source_char_position"]=l),Ni(n,t,t+i,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:s})}}).observe({type:"long-animation-frame",buffered:!0}):s&&xi("longtask",({entries:t})=>{const n=Ln();if(!n)return;const{op:e,start_timestamp:r}=kn(n);for(const o of t){const t=Fi(mt()+o.startTime),i=Fi(o.duration);"navigation"===e&&r&&t<r||Ni(n,t,t+i,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[Ut]:"auto.ui.browser.metrics"}})}}),a&&xi("event",({entries:t})=>{const n=Ln();if(n)for(const e of t)if("click"===e.name){const t=Fi(mt()+e.startTime),r=Fi(e.duration),o={name:H(e.target),op:`ui.interaction.${e.name}`,startTime:t,attributes:{[Ut]:"auto.ui.browser.metrics"}},i=J(e.target);i&&(o.attributes["ui.component_name"]=i),Ni(n,t,t+r,o)}}),k&&r){const t=()=>{M=ht()};addEventListener("click",t,{capture:!0}),addEventListener("keydown",t,{capture:!0,passive:!0})}function e(){const n=_c(t);n&&!kn(n).timestamp&&(n.setAttribute(Bt,"cancelled"),n.end())}t.on("startNavigationSpan",(n,r)=>{if(Ct()!==t)return;if(r?.isRedirect)return void P(t,{op:"navigation.redirect",...n},!1);M=void 0,e(),Mt().setPropagationContext({traceId:bt(),sampleRand:Math.random(),propagationSpanId:Nn()?void 0:_t()});const o=jt();o.setPropagationContext({traceId:bt(),sampleRand:Math.random(),propagationSpanId:Nn()?void 0:_t()}),o.setSDKProcessingMetadata({normalizedRequest:void 0}),P(t,{op:"navigation",...n,parentSpan:null,forceTransaction:!0})}),t.on("startPageLoadSpan",(n,r={})=>{if(Ct()!==t)return;e();const o=mn(r.sentryTrace||vc("sentry-trace"),r.baggage||vc("baggage")),i=jt();i.setPropagationContext(o),Nn()||(i.getPropagationContext().propagationSpanId=_t()),i.setSDKProcessingMetadata({normalizedRequest:To()}),P(t,{op:"pageload",...n})}),t.on("endPageloadSpan",()=>{I&&L&&(L.setAttribute(Bt,"reportPageLoaded"),L.end())})},afterAllSetup(t){let n=W();if("off"!==$&&sc(t,{linkPreviousTrace:$,consistentTraceSampling:x}),_o.location){if(E){const n=mt();gc(t,{name:_o.location.pathname,startTime:n?n/1e3:void 0,attributes:{[Nt]:"url",[Ut]:"auto.pageload.browser"}})}T&&as(({to:e,from:r})=>{if(void 0===r&&-1!==n?.indexOf(e))return void(n=void 0);n=void 0;const o=Rr(e),i=_c(t),s=i&&k&&function(t,n){const e=kn(t),r=dt(),o=e.start_timestamp;if(r-o>wc)return!1;if(n&&r-n<=wc)return!1;return!0}(i,M);yc(t,{name:o?.pathname||_o.location.pathname,attributes:{[Nt]:"url",[Ut]:"auto.navigation.browser"}},{url:e,isRedirect:s})})}m&&_o.document&&_o.document.addEventListener("visibilitychange",()=>{const t=Ln();if(!t)return;const n=Mn(t);if(_o.document.hidden&&n){const t="cancelled",{status:e}=kn(n);e||n.setStatus({code:2,message:t}),n.setAttribute("sentry.cancellation_reason","document.hidden"),n.end()}}),a&&function(t,n,e,r,o){const i=_o.document;let s;const c=()=>{const i="ui.action.click",c=_c(t);if(c){const t=kn(c).op;if(["navigation","pageload"].includes(t))return}s&&(s.setAttribute(Bt,"interactionInterrupted"),s.end(),s=void 0),o.name&&(s=$e({name:o.name,op:i,attributes:{[Nt]:o.source||"url"}},{idleTimeout:n,finalTimeout:e,childSpanTimeout:r}))};i&&addEventListener("click",c,{capture:!0})}(t,l,p,h,e),o&&ws(),pc(t,{traceFetch:g,traceXHR:y,trackFetchStreamPerformance:v,tracePropagationTargets:t.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:b,enableHTTPTimings:_,onRequestSpanStart:R,onRequestSpanEnd:O})}}},t.captureEvent=Be,t.captureException=captureException,t.captureFeedback=function(t,n={},e=jt()){const{message:r,name:o,email:i,url:s,source:c,associatedEventId:a,tags:u}=t,f={contexts:{feedback:{contact_email:i,name:o,message:r,url:s,source:c,associated_event_id:a}},type:"feedback",level:"info",tags:u},d=e?.getClient()||Ct();return d&&d.emit("beforeSendFeedback",f,n),e.captureEvent(f,n)},t.captureMessage=function(t,n){const e="string"==typeof n?n:void 0,r="string"!=typeof n?{captureContext:n}:void 0;return jt().captureMessage(t,e,r)},t.captureSession=Ge,t.chromeStackLineParser=Rs,t.close=async function(t){const n=Ct();return n?n.close(t):Promise.resolve(!1)},t.continueTrace=(t,n)=>{const e=Ot(r());if(e.continueTrace)return e.continueTrace(t,n);const{sentryTrace:o,baggage:i}=t,s=Ct(),c=rn(i);return s&&!function(t,n){const e=dn(t);return(!n||!e||n===e)&&(!t.getOptions().strictTraceContinuation||!(n&&!e||!n&&e))}(s,c?.org_id)?ve(n):Pt(t=>{const e=mn(o,i);return t.setPropagationContext(e),n()})},t.createTransport=xr,t.createUserFeedbackEnvelope=function(t,{metadata:n,tunnel:e,dsn:r}){const o={event_id:t.event_id,sent_at:(new Date).toISOString(),...n?.sdk&&{sdk:{name:n.sdk.name,version:n.sdk.version}},...!!e&&!!r&&{dsn:un(r)}},i=function(t){return[{type:"user_report"},t]}(t);return Vn(o,[i])},t.dedupeIntegration=Yr,t.defaultStackLineParsers=Ds,t.defaultStackParser=Fs,t.endSession=Je,t.eventFiltersIntegration=Fr,t.eventFromException=Lo,t.eventFromMessage=Po,t.exceptionFromError=ko,t.feedbackAsyncIntegration=vo,t.feedbackIntegration=vo,t.flush=async function(t){const n=Ct();return n?n.flush(t):Promise.resolve(!1)},t.forceLoad=function(){},t.functionToStringIntegration=qr,t.geckoStackLineParser=Ms,t.getActiveSpan=Ln,t.getClient=Ct,t.getCurrentScope=jt,t.getDefaultIntegrations=nc,t.getGlobalScope=Lt,t.getIsolationScope=Mt,t.getRootSpan=Mn,t.getSpanDescendants=jn,t.getTraceData=Lr,t.globalHandlersIntegration=Ys,t.httpContextIntegration=Zs,t.inboundFiltersIntegration=Ur,t.init=function(t={}){const n=!t.skipBrowserExtensionCheck&&tc();let e=null==t.defaultIntegrations?nc():t.defaultIntegrations;const r={...t,enabled:!n&&t.enabled,stackParser:(o=t.stackParser||Fs,Array.isArray(o)?l(...o):o),integrations:Ze({integrations:t.integrations,defaultIntegrations:e}),transport:t.transport||Es};var o;return function(t,n){!0===n.debug&&a(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")}),jt().update(n.initialScope);const e=new t(n);return Er(e),e.init(),e}(qo,r)},t.isEnabled=ze,t.isInitialized=function(){return!!Ct()},t.lastEventId=He,t.lazyLoadIntegration=async function(t,n){const r=ec[t],o=rc.Sentry=rc.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 n=Ct(),r=n?.getOptions()?.cdnBaseUrl||"https://browser.sentry-cdn.com";return new URL(`/${e}/${t}.min.js`,r).toString()}(r),c=_o.document.createElement("script");c.src=s,c.crossOrigin="anonymous",c.referrerPolicy="strict-origin",n&&c.setAttribute("nonce",n);const a=new Promise((t,n)=>{c.addEventListener("load",()=>t()),c.addEventListener("error",n)}),u=_o.document.currentScript,f=_o.document.body||_o.document.head||u?.parentElement;if(!f)throw new Error(`Could not find parent element to insert lazy-loaded ${t} script`);f.appendChild(c);try{await a}catch{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=Qs,t.makeFetchTransport=Es,t.metrics=oo,t.onLoad=function(t){t()},t.opera10StackLineParser=As,t.opera11StackLineParser=qs,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 a(()=>{console.warn("You are using replayIntegration() even though this bundle does not include replay.")}),{name:"Replay",...bo.reduce((t,n)=>(t[n]=go,t),{})}},t.reportPageLoaded=function(t=Ct()){t?.emit("endPageloadSpan")},t.setActiveSpanInBrowser=function(t){const n=Ln();if(n===t)return;const e=jt();t.end=new Proxy(t.end,{apply:(t,r,o)=>(wt(e,n),Reflect.apply(t,r,o))}),wt(e,t)},t.setContext=function(t,n){Mt().setContext(t,n)},t.setCurrentClient=Er,t.setExtra=function(t,n){Mt().setExtra(t,n)},t.setExtras=function(t){Mt().setExtras(t)},t.setMeasurement=ae,t.setTag=function(t,n){Mt().setTag(t,n)},t.setTags=function(t){Mt().setTags(t)},t.setUser=function(t){Mt().setUser(t)},t.showReportDialog=function(t={}){const n=_o.document,e=n?.head||n?.body;if(!e)return;const r=jt(),o=Ct(),i=o?.getDsn();if(!i)return;const s={...t,user:{...r.getUser(),...t.user},eventId:t.eventId||He()},c=_o.document.createElement("script");c.async=!0,c.crossOrigin="anonymous",c.src=function(t,n){const e=ln(t);if(!e)return"";const r=`${Ke(e)}embed/error-page/`;let o=`dsn=${un(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}`}(i,s);const{onLoad:a,onClose:u}=s;if(a&&(c.onload=a),u){const t=n=>{if("__sentry_reportdialog_closed__"===n.data)try{u()}finally{_o.removeEventListener("message",t)}};_o.addEventListener("message",t)}e.appendChild(c)},t.spanToBaggageHeader=function(t){return on(Jn(t))},t.spanToJSON=kn,t.spanToTraceHeader=Sn,t.startBrowserTracingNavigationSpan=yc,t.startBrowserTracingPageLoadSpan=gc,t.startInactiveSpan=ge,t.startNewTrace=ve,t.startSession=We,t.startSpan=me,t.startSpanManual=function(t,n){const e=Se();if(e.startSpanManual)return e.startSpanManual(t,n);const r=_e(t),{forceTransaction:o,parentSpan:i,scope:s}=t,c=s?.clone();return Pt(c,()=>Te(i)(()=>{const e=jt(),s=Ee(e,i),c=t.onlyIfParent&&!s?new Xn:be({parentSpan:s,spanArguments:r,forceTransaction:o,scope:e});return wt(e,c),pe(()=>n(c,()=>c.end()),()=>{const{status:t}=kn(c);!c.isRecording()||t&&"ok"!==t||c.setStatus({code:2,message:"internal_error"})})}))},t.suppressTracing=function(t){const n=Se();return n.suppressTracing?n.suppressTracing(t):Pt(n=>{n.setSDKProcessingMetadata({[he]:!0});const e=t();return n.setSDKProcessingMetadata({[he]:void 0}),e})},t.updateSpanName=function(t,n){t.updateName(n),t.setAttributes({[Nt]:"custom",[Wt]:n})},t.winjsStackLineParser=Ps,t.withActiveSpan=ye,t.withIsolationScope=function(...t){const n=Ot(r());if(2===t.length){const[e,r]=t;return e?n.withSetIsolationScope(e,r):n.withIsolationScope(r)}return n.withIsolationScope(t[0])},t.withScope=Pt,t}({});
//# sourceMappingURL=bundle.tracing.min.js.map

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc