PageSourceSearch

https://bzic-tools.com/_app/immutable/chunks/Df4kACU_.js

js bzic-tools.com collected 2026-10-02 01:25:05 UTC 78,964 bytes, 15 lines download raw bytes

1const h=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,m=globalThis,$="10.48.0";function St(){return bt(m),m}function bt(t){const e=t.__SENTRY__=t.__SENTRY__||{};return e.version=e.version||$,e[$]=e[$]||{}}function V(t,e,n=m){const r=n.__SENTRY__=n.__SENTRY__||{},s=r[$]=r[$]||{};return s[t]||(s[t]=e())}const pr=["debug","info","warn","error","log","assert","trace"],hr="Sentry Logger ",gt={};function K(t){if(!("console"in m))return t();const e=m.console,n={},r=Object.keys(gt);r.forEach(s=>{const o=gt[s];n[s]=e[s],e[s]=o});try{return t()}finally{r.forEach(s=>{e[s]=n[s]})}}function _r(){ee().enabled=!0}function mr(){ee().enabled=!1}function gn(){return ee().enabled}function gr(...t){te("log",...t)}function yr(...t){te("warn",...t)}function Er(...t){te("error",...t)}function te(t,...e){h&&gn()&&K(()=>{m.console[t](`${hr}[${t}]:`,...e)})}function ee(){return h?V("loggerSettings",()=>({enabled:!1})):{enabled:!1}}const p={enable:_r,disable:mr,isEnabled:gn,log:gr,warn:yr,error:Er},yn=50,F="?",me=/\(error: (.*)\)/,ge=/captureMessage|captureException/;function En(...t){const e=t.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,s=0)=>{const o=[],i=n.split(`
2`);for(let a=r;a<i.length;a++){let c=i[a];c.length>1024&&(c=c.slice(0,1024));const u=me.test(c)?c.replace(me,"$1"):c;if(!u.includes("Error: ")){for(const l of e){const f=l(u);if(f){o.push(f);break}}if(o.length>=yn+s)break}}return br(o.slice(s))}}function Sr(t){return Array.isArray(t)?En(...t):t}function br(t){if(!t.length)return[];const e=Array.from(t);return/sentryWrapped/.test(ut(e).function||"")&&e.pop(),e.reverse(),ge.test(ut(e).function||"")&&(e.pop(),ge.test(ut(e).function||"")&&e.pop()),e.slice(0,yn).map(n=>({...n,filename:n.filename||ut(e).filename,function:n.function||F}))}function ut(t){return t[t.length-1]||{}}const xt="<anonymous>";function D(t){try{return!t||typeof t!="function"?xt:t.name||xt}catch{return xt}}function ye(t){const e=t.exception;if(e){const n=[];try{return e.values.forEach(r=>{r.stacktrace.frames&&n.push(...r.stacktrace.frames)}),n}catch{return}}}function Sn(t){return"__v_isVNode"in t&&t.__v_isVNode?"[VueVNode]":"[VueViewModel]"}const dt={},Ee={};function j(t,e){dt[t]=dt[t]||[],dt[t].push(e)}function B(t,e){if(!Ee[t]){Ee[t]=!0;try{e()}catch(n){h&&p.error(`Error while instrumenting ${t}`,n)}}}function T(t,e){const n=t&&dt[t];if(n)for(const r of n)try{r(e)}catch(s){h&&p.error(`Error while triggering instrumentation handler.
3Type: ${t}
4Name: ${D(r)}
5Error:`,s)}}let Ot=null;function Ir(t){const e="error";j(e,t),B(e,Tr)}function Tr(){Ot=m.onerror,m.onerror=function(t,e,n,r,s){return T("error",{column:r,error:s,line:n,msg:t,url:e}),Ot?Ot.apply(this,arguments):!1},m.onerror.__SENTRY_INSTRUMENTED__=!0}let Ct=null;function vr(t){const e="unhandledrejection";j(e,t),B(e,wr)}function wr(){Ct=m.onunhandledrejection,m.onunhandledrejection=function(t){return T("unhandledrejection",t),Ct?Ct.apply(this,arguments):!0},m.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const bn=Object.prototype.toString;function It(t){switch(bn.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return A(t,Error)}}function X(t,e){return bn.call(t)===`[object ${e}]`}function In(t){return X(t,"ErrorEvent")}function Se(t){return X(t,"DOMError")}function Rr(t){return X(t,"DOMException")}function R(t){return X(t,"String")}function ne(t){return typeof t=="object"&&t!==null&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function Tt(t){return t===null||ne(t)||typeof t!="object"&&typeof t!="function"}function et(t){return X(t,"Object")}function vt(t){return typeof Event<"u"&&A(t,Event)}function Nr(t){return typeof Element<"u"&&A(t,Element)}function kr(t){return X(t,"RegExp")}function st(t){return!!(t?.then&&typeof t.then=="function")}function xr(t){return et(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function A(t,e){try{return t instanceof e}catch{return!1}}function Tn(t){return!!(typeof t=="object"&&t!==null&&(t.__isVue||t._isVue||t.__v_isVNode))}function vn(t){return typeof Request<"u"&&A(t,Request)}const re=m,Or=80;function wn(t,e={}){if(!t)return"<unknown>";try{let n=t;const r=5,s=[];let o=0,i=0;const a=" > ",c=a.length;let u;const l=Array.isArray(e)?e:e.keyAttrs,f=!Array.isArray(e)&&e.maxStringLength||Or;for(;n&&o++<r&&(u=Cr(n,l),!(u==="html"||o>1&&i+s.length*c+u.length>=f));)s.push(u),i+=u.length,n=n.parentNode;return s.reverse().join(a)}catch{return"<unknown>"}}function Cr(t,e){const n=t,r=[];if(!n?.tagName)return"";if(re.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());const s=e?.length?e.filter(o=>n.getAttribute(o)).map(o=>[o,n.getAttribute(o)]):null;if(s?.length)s.forEach(o=>{r.push(`[${o[0]}="${o[1]}"]`)});else{n.id&&r.push(`#${n.id}`);const o=n.className;if(o&&R(o)){const i=o.split(/\s+/);for(const a of i)r.push(`.${a}`)}}for(const o of["aria-label","type","name","title","alt"]){const i=n.getAttribute(o);i&&r.push(`[${o}="${i}"]`)}return r.join("")}function se(){try{return re.document.location.href}catch{return""}}function Dr(t){if(!re.HTMLElement)return null;let e=t;const n=5;for(let r=0;r<n;r++){if(!e)return null;if(e instanceof HTMLElement){if(e.dataset.sentryComponent)return e.dataset.sentryComponent;if(e.dataset.sentryElement)return e.dataset.sentryElement}e=e.parentNode}return null}function b(t,e,n){if(!(e in t))return;const r=t[e];if(typeof r!="function")return;const s=n(r);typeof s=="function"&&Rn(s,r);try{t[e]=s}catch{h&&p.log(`Failed to replace method "${e}" in object`,t)}}function L(t,e,n){try{Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}catch{h&&p.log(`Failed to add non-enumerable property "${e}" to object`,t)}}function Rn(t,e){try{const n=e.prototype||{};t.prototype=e.prototype=n,L(t,"__sentry_original__",e)}catch{}}function oe(t){return t.__sentry_original__}function Nn(t){if(It(t))return{message:t.message,name:t.name,stack:t.stack,...Ie(t)};if(vt(t)){const e={type:t.type,target:be(t.target),currentTarget:be(t.currentTarget),...Ie(t)};return typeof CustomEvent<"u"&&A(t,CustomEvent)&&(e.detail=t.detail),e}else return t}function be(t){try{return Nr(t)?wn(t):Object.prototype.toString.call(t)}catch{return"<unknown>"}}
5function Ie(t){return typeof t=="object"&&t!==null?Object.fromEntries(Object.entries(t)):{}}function Ar(t){const e=Object.keys(Nn(t));return e.sort(),e[0]?e.join(", "):"[object has no keys]"}let G;function wt(t){if(G!==void 0)return G?G(t):t();const e=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__"),n=m;return e in n&&typeof n[e]=="function"?(G=n[e],G(t)):(G=null,t())}function yt(){return wt(()=>Math.random())}function Rt(){return wt(()=>Date.now())}function Ft(t,e=0){return typeof t!="string"||e===0||t.length<=e?t:`${t.slice(0,e)}...`}function Te(t,e){if(!Array.isArray(t))return"";const n=[];for(let r=0;r<t.length;r++){const s=t[r];try{Tn(s)?n.push(Sn(s)):n.push(String(s))}catch{n.push("[value cannot be serialized]")}}return n.join(e)}function pt(t,e,n=!1){return R(t)?kr(e)?e.test(t):R(e)?n?t===e:t.includes(e):typeof e=="function"?e(t):!1:!1}function Nt(t,e=[],n=!1){return e.some(r=>pt(t,r,n))}function Lr(){const t=m;return t.crypto||t.msCrypto}let Dt;function Mr(){return yt()*16}function I(t=Lr()){try{if(t?.randomUUID)return wt(()=>t.randomUUID()).replace(/-/g,"")}catch{}return Dt||(Dt="10000000100040008000"+1e11),Dt.replace(/[018]/g,e=>(e^(Mr()&15)>>e/4).toString(16))}function kn(t){return t.exception?.values?.[0]}function P(t){const{message:e,event_id:n}=t;if(e)return e;const r=kn(t);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function Ut(t,e,n){const r=t.exception=t.exception||{},s=r.values=r.values||[],o=s[0]=s[0]||{};o.value||(o.value=e||""),o.type||(o.type="Error")}function W(t,e){const n=kn(t);if(!n)return;const r={type:"generic",handled:!0},s=n.mechanism;if(n.mechanism={...r,...s,...e},e&&"data"in e){const o={...s?.data,...e.data};n.mechanism.data=o}}function ve(t){if(Pr(t))return!0;try{L(t,"__sentry_captured__",!0)}catch{}return!1}function Pr(t){try{return t.__sentry_captured__}catch{}}const xn=1e3;function ot(){return Rt()/xn}function $r(){const{performance:t}=m;if(!t?.now||!t.timeOrigin)return ot;const e=t.timeOrigin;return()=>(e+wt(()=>t.now()))/xn}let we;function N(){return(we??(we=$r()))()}function Fr(t){const e=N(),n={sid:I(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>jr(n)};return t&&q(n,t),n}function q(t,e={}){if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),!t.did&&!e.did&&(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||N(),e.abnormal_mechanism&&(t.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=e.sid.length===32?e.sid:I()),e.init!==void 0&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),typeof e.started=="number"&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if(typeof e.duration=="number")t.duration=e.duration;else{const n=t.timestamp-t.started;t.duration=n>=0?n:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),typeof e.errors=="number"&&(t.errors=e.errors),e.status&&(t.status=e.status)}function Ur(t,e){let n={};t.status==="ok"&&(n={status:"exited"}),q(t,n)}function jr(t){return{sid:`${t.sid}`,init:t.init,started:new Date(t.started*1e3).toISOString(),timestamp:new Date(t.timestamp*1e3).toISOString(),status:t.status,errors:t.errors,did:typeof t.did=="number"||typeof t.did=="string"?`${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}}}function it(t,e,n=2){if(!e||typeof e!="object"||n<=0)return e;if(t&&Object.keys(e).length===0)return t;const r={...t};for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(r[s]=it(r[s],e[s],n-1));return r}function Re(){return I()}function On(){return I().substring(16)}const jt="_sentrySpan";function Ne(t,e){e?L(t,jt,e):delete t[jt]}function ke(t){return t[jt]}const Br=100;class k{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:Re(),sampleRand:yt()}}clone(){const e=new k;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._attributes={...this._attributes},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,e._conversationId=this._conversationId,Ne(e,ke(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&q(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(e){return this._conversationId=e||void 0,this._notifyScopeListeners(),this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,n){return this.setTags({[e]:n})}setAttributes(e){return this._attributes={...this._attributes,...e},this._notifyScopeListeners(),this}setAttribute(e,n){return this.setAttributes({[e]:n})}removeAttribute(e){return e in this._attributes&&(delete this._attributes[e],this._notifyScopeListeners()),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,n){return this._extra={...this._extra,[e]:n},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,n){return n===null?delete this._contexts[e]:this._contexts[e]=n,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const n=typeof e=="function"?e(this):e,r=n instanceof k?n.getScopeData():et(n)?e:void 0,{tags:s,attributes:o,extra:i,user:a,contexts:c,level:u,fingerprint:l=[],propagationContext:f,conversationId:_}=r||{};return this._tags={...this._tags,...s},this._attributes={...this._attributes,...o},this._extra={...this._extra,...i},this._contexts={...this._contexts,...c},a&&Object.keys(a).length&&(this._user=a),u&&(this._level=u),l.length&&(this._fingerprint=l),f&&(this._propagationContext=f),_&&(this._conversationId=_),this}clear(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,this._conversationId=void 0,Ne(this,void 0),this._attachments=[],this.setPropagationContext({traceId:Re(),sampleRand:yt()}),this._notifyScopeListeners(),this}addBreadcrumb(e,n){const r=typeof n=="number"?n:Br;if(r<=0)return this;
5const s={timestamp:ot(),...e,message:e.message?Ft(e.message,2048):e.message};return this._breadcrumbs.push(s),this._breadcrumbs.length>r&&(this._breadcrumbs=this._breadcrumbs.slice(-r),this._client?.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,attributes:this._attributes,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:ke(this),conversationId:this._conversationId}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=it(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,n){const r=n?.event_id||I();if(!this._client)return h&&p.warn("No client configured on scope - will not capture exception!"),r;const s=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:s,...n,event_id:r},this),r}captureMessage(e,n,r){const s=r?.event_id||I();if(!this._client)return h&&p.warn("No client configured on scope - will not capture message!"),s;const o=r?.syntheticException??new Error(e);return this._client.captureMessage(e,n,{originalException:e,syntheticException:o,...r,event_id:s},this),s}captureEvent(e,n){const r=e.event_id||n?.event_id||I();return this._client?(this._client.captureEvent(e,{...n,event_id:r},this),r):(h&&p.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}}function Hr(){return V("defaultCurrentScope",()=>new k)}function Gr(){return V("defaultIsolationScope",()=>new k)}const xe=t=>t instanceof Promise&&!t[Cn],Cn=Symbol("chained PromiseLike"),Wr=(t,e,n)=>{const r=t.then(s=>(e(s),s),s=>{throw n(s),s});return xe(r)&&xe(t)?r:qr(t,r)},qr=(t,e)=>{let n=!1;for(const r in t){if(r in e)continue;n=!0;const s=t[r];typeof s=="function"?Object.defineProperty(e,r,{value:(...o)=>s.apply(t,o),enumerable:!0,configurable:!0,writable:!0}):e[r]=s}return n&&Object.assign(e,{[Cn]:!0}),e};class zr{constructor(e,n){let r;e?r=e:r=new k;let s;n?s=n:s=new k,this._stack=[{scope:r}],this._isolationScope=s}withScope(e){const n=this._pushScope();let r;try{r=e(n)}catch(s){throw this._popScope(),s}return st(r)?Wr(r,()=>this._popScope(),()=>this._popScope()):(this._popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}}function z(){const t=St(),e=bt(t);return e.stack=e.stack||new zr(Hr(),Gr())}function Yr(t){return z().withScope(t)}function Vr(t,e){const n=z();return n.withScope(()=>(n.getStackTop().scope=t,e(t)))}function Oe(t){return z().withScope(()=>t(z().getIsolationScope()))}function Kr(){return{withIsolationScope:Oe,withScope:Yr,withSetScope:Vr,withSetIsolationScope:(t,e)=>Oe(e),getCurrentScope:()=>z().getScope(),getIsolationScope:()=>z().getIsolationScope()}}function ie(t){const e=bt(t);return e.acs?e.acs:Kr()}function x(){const t=St();return ie(t).getCurrentScope()}function H(){const t=St();return ie(t).getIsolationScope()}function Xr(){return V("globalScope",()=>new k)}function Jr(...t){const e=St(),n=ie(e);if(t.length===2){const[r,s]=t;return r?n.withSetScope(r,s):n.withScope(s)}return n.withScope(t[0])}function E(){return x().getClient()}function Zr(t){const e=t.getPropagationContext(),{traceId:n,parentSpanId:r,propagationSpanId:s}=e,o={trace_id:n,span_id:s||On()};return r&&(o.parent_span_id=r),o}const Qr="sentry.source",ts="sentry.sample_rate",es="sentry.previous_trace_sample_rate",ns="sentry.op",rs="sentry.origin",Dn="sentry.profile_id",An="sentry.exclusive_time",ss="gen_ai.conversation.id",os=0,is=1,as="_sentryScope",cs="_sentryIsolationScope";function us(t){if(t){if(typeof t=="object"&&"deref"in t&&typeof t.deref=="function")try{return t.deref()}catch{return}return t}}function Ln(t){const e=t;return{scope:e[as],isolationScope:us(e[cs])}}const Ce="sentry-";function fs(t){const e=ls(t);if(!e)return;const n=Object.entries(e).reduce((r,[s,o])=>{if(s.startsWith(Ce)){const i=s.slice(Ce.length);r[i]=o}return r},{});if(Object.keys(n).length>0)return n}function ls(t){if(!(!t||!R(t)&&!Array.isArray(t)))return Array.isArray(t)?t.reduce((e,n)=>{const r=De(n);return Object.entries(r).forEach(([s,o])=>{e[s]=o}),e},{}):De(t)}function De(t){return t.split(",").map(e=>{const n=e.indexOf("=");if(n===-1)return[];const r=e.slice(0,n),s=e.slice(n+1);return[r,s].map(o=>{try{return decodeURIComponent(o.trim())}catch{return}})}).reduce((e,[n,r])=>(n&&r&&(e[n]=r),e),{})}const ds=/^o(\d+)\./,ps=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function hs(t){return t==="http"||t==="https"}function at(t,e=!1){const{host:n,path:r,pass:s,port:o,projectId:i,protocol:a,publicKey:c}=t;return`${a}://${c}${e&&s?`:${s}`:""}@${n}${o?`:${o}`:""}/${r&&`${r}/`}${i}`}function _s(t){const e=ps.exec(t);if(!e){K(()=>{console.error(`Invalid Sentry Dsn: ${t}`)});return}const[n,r,s="",o="",i="",a=""]=e.slice(1);let c="",u=a;const l=u.split("/");if(l.length>1&&(c=l.slice(0,-1).join("/"),u=l.pop()),u){const f=u.match(/^\d+/);f&&(u=f[0])}return Mn({host:o,pass:s,path:c,projectId:u,port:i,protocol:n,publicKey:r})}function Mn(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function ms(t){if(!h)return!0;const{port:e,projectId:n,protocol:r}=t;return["protocol","publicKey","host","projectId"].find(i=>t[i]?!1:(p.error(`Invalid Sentry Dsn: ${i} missing`),!0))?!1:n.match(/^\d+$/)?hs(r)?e&&isNaN(parseInt(e,10))?(p.error(`Invalid Sentry Dsn: Invalid port ${e}
5`),!1):!0:(p.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(p.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function gs(t){return t.match(ds)?.[1]}function ys(t){const e=t.getOptions(),{host:n}=t.getDsn()||{};let r;return e.orgId?r=String(e.orgId):n&&(r=gs(n)),r}function Es(t){const e=typeof t=="string"?_s(t):Mn(t);if(!(!e||!ms(e)))return e}function Ss(t){if(typeof t=="boolean")return Number(t);const e=typeof t=="string"?parseFloat(t):t;if(!(typeof e!="number"||isNaN(e)||e<0||e>1))return e}const Pn=1;let Ae=!1;function bs(t){const{spanId:e,traceId:n,isRemote:r}=t.spanContext(),s=r?e:ae(t).parent_span_id,o=Ln(t).scope,i=r?o?.getPropagationContext().propagationSpanId||On():e;return{parent_span_id:s,span_id:i,trace_id:n}}function Is(t){if(t&&t.length>0)return t.map(({context:{spanId:e,traceId:n,traceFlags:r,...s},attributes:o})=>({span_id:e,trace_id:n,sampled:r===Pn,attributes:o,...s}))}function Le(t){return typeof t=="number"?Me(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?Me(t.getTime()):N()}function Me(t){return t>9999999999?t/1e3:t}function ae(t){if(ws(t))return t.getSpanJSON();const{spanId:e,traceId:n}=t.spanContext();if(vs(t)){const{attributes:r,startTime:s,name:o,endTime:i,status:a,links:c}=t;return{span_id:e,trace_id:n,data:r,description:o,parent_span_id:Ts(t),start_timestamp:Le(s),timestamp:Le(i)||void 0,status:Ns(a),op:r[ns],origin:r[rs],links:Is(c)}}return{span_id:e,trace_id:n,start_timestamp:0,data:{}}}function Ts(t){return"parentSpanId"in t?t.parentSpanId:"parentSpanContext"in t?t.parentSpanContext?.spanId:void 0}function vs(t){const e=t;return!!e.attributes&&!!e.startTime&&!!e.name&&!!e.endTime&&!!e.status}function ws(t){return typeof t.getSpanJSON=="function"}function Rs(t){const{traceFlags:e}=t.spanContext();return e===Pn}function Ns(t){if(!(!t||t.code===os))return t.code===is?"ok":t.message||"internal_error"}const ks="_sentryRootSpan",$n=xs;function xs(t){return t[ks]||t}function Pe(){Ae||(K(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),Ae=!0)}function Os(t){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const e=E()?.getOptions();return!!e&&(e.tracesSampleRate!=null||!!e.tracesSampler)}function $e(t){p.log(`Ignoring span ${t.op} - ${t.description} because it matches \`ignoreSpans\`.`)}function Fe(t,e){if(!e?.length||!t.description)return!1;for(const n of e){if(Ds(n)){if(pt(t.description,n))return h&&$e(t),!0;continue}if(!n.name&&!n.op)continue;const r=n.name?pt(t.description,n.name):!0,s=n.op?t.op&&pt(t.op,n.op):!0;if(r&&s)return h&&$e(t),!0}return!1}function Cs(t,e){const n=e.parent_span_id,r=e.span_id;if(n)for(const s of t)s.parent_span_id===r&&(s.parent_span_id=n)}function Ds(t){return typeof t=="string"||t instanceof RegExp}const ce="production",As="_frozenDsc";function Fn(t,e){const n=e.getOptions(),{publicKey:r}=e.getDsn()||{},s={environment:n.environment||ce,release:n.release,public_key:r,trace_id:t,org_id:ys(e)};return e.emit("createDsc",s),s}function Ls(t,e){const n=e.getPropagationContext();return n.dsc||Fn(n.traceId,t)}function Ms(t){const e=E();if(!e)return{};const n=$n(t),r=ae(n),s=r.data,o=n.spanContext().traceState,i=o?.get("sentry.sample_rate")??s[ts]??s[es];function a(g){return(typeof i=="number"||typeof i=="string")&&(g.sample_rate=`${i}`),g}const c=n[As];if(c)return a(c);const u=o?.get("sentry.dsc"),l=u&&fs(u);if(l)return a(l);const f=Fn(t.spanContext().traceId,e),_=s[Qr]??s["sentry.span.source"],d=r.description;return _!=="url"&&d&&(f.transaction=d),Os()&&(f.sampled=String(Rs(n)),f.sample_rand=o?.get("sentry.sample_rand")??Ln(n).scope?.getPropagationContext().sampleRand.toString()),a(f),e.emit("createDsc",f,n),f}function Ps(t){return!!t&&typeof t=="function"&&"_streamed"in t&&!!t._streamed}function w(t,e=100,n=1/0){try{return Bt("",t,e,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function Un(t,e=3,n=100*1024){const r=w(t,e);return js(r)>n?Un(t,e-1,n):r}function Bt(t,e,n=1/0,r=1/0,s=Bs()){const[o,i]=s;
vendor: 6,377 bytes, lines 5-7
5if(e==null||["boolean","string"].includes(typeof e)||typeof e=="number"&&Number.isFinite(e))return e;const a=$s(t,e);if(!a.startsWith("[object "))return a;if(e.__sentry_skip_normalization__)return e;const c=typeof e.__sentry_override_normalization_depth__=="number"?e.__sentry_override_normalization_depth__:n;if(c===0)return a.replace("object ","");if(o(e))return"[Circular ~]";const u=e;if(u&&typeof u.toJSON=="function")try{const d=u.toJSON();return Bt("",d,c-1,r,s)}catch{}const l=Array.isArray(e)?[]:{};let f=0;const _=Nn(e);for(const d in _){if(!Object.prototype.hasOwnProperty.call(_,d))continue;if(f>=r){l[d]="[MaxProperties ~]";break}const g=_[d];l[d]=Bt(d,g,c-1,r,s),f++}return i(e),l}function $s(t,e){try{if(t==="domain"&&e&&typeof e=="object"&&e._events)return"[Domain]";if(t==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&e===global)return"[Global]";if(typeof window<"u"&&e===window)return"[Window]";if(typeof document<"u"&&e===document)return"[Document]";if(Tn(e))return Sn(e);if(xr(e))return"[SyntheticEvent]";if(typeof e=="number"&&!Number.isFinite(e))return`[${e}]`;if(typeof e=="function")return`[Function: ${D(e)}]`;if(typeof e=="symbol")return`[${String(e)}]`;if(typeof e=="bigint")return`[BigInt: ${String(e)}]`;const n=Fs(e);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function Fs(t){const e=Object.getPrototypeOf(t);return e?.constructor?e.constructor.name:"null prototype"}function Us(t){return~-encodeURI(t).split(/%..|./).length}function js(t){return Us(JSON.stringify(t))}function Bs(){const t=new WeakSet;function e(r){return t.has(r)?!0:(t.add(r),!1)}function n(r){t.delete(r)}return[e,n]}function J(t,e=[]){return[t,e]}function Hs(t,e){const[n,r]=t;return[n,[...r,e]]}function Ht(t,e){const n=t[1];for(const r of n){const s=r[0].type;if(e(r,s))return!0}return!1}function Gs(t,e){return Ht(t,(n,r)=>e.includes(r))}function Gt(t){const e=bt(m);return e.encodePolyfill?e.encodePolyfill(t):new TextEncoder().encode(t)}function Ws(t){const[e,n]=t;let r=JSON.stringify(e);function s(o){typeof r=="string"?r=typeof o=="string"?r+o:[Gt(r),o]:r.push(typeof o=="string"?Gt(o):o)}for(const o of n){const[i,a]=o;if(s(`
6${JSON.stringify(i)}
7`),typeof a=="string"||a instanceof Uint8Array)s(a);else{let c;try{c=JSON.stringify(a)}catch{c=JSON.stringify(w(a))}s(c)}}return typeof r=="string"?r:qs(r)}function qs(t){const e=t.reduce((s,o)=>s+o.length,0),n=new Uint8Array(e);let r=0;for(const s of t)n.set(s,r),r+=s.length;return n}function zs(t){const e=typeof t.data=="string"?Gt(t.data):t.data;return[{type:"attachment",length:e.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType},e]}const jn={sessions:"session",event:"error",client_report:"internal",user_report:"default",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",raw_security:"security",log:"log_item",trace_metric:"metric"};function Ys(t){return t in jn}function Ue(t){return Ys(t)?jn[t]:t}function Bn(t){if(!t?.sdk)return;const{name:e,version:n}=t.sdk;return{name:e,version:n}}function Vs(t,e,n,r){const s=t.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:t.event_id,sent_at:new Date().toISOString(),...e&&{sdk:e},...!!n&&r&&{dsn:at(r)},...s&&{trace:s}}}function Ks(t,e){if(!e)return t;const n=t.sdk||{};return t.sdk={...n,name:n.name||e.name,version:n.version||e.version,integrations:[...t.sdk?.integrations||[],...e.integrations||[]],packages:[...t.sdk?.packages||[],...e.packages||[]],settings:t.sdk?.settings||e.settings?{...t.sdk?.settings,...e.settings}:void 0},t}function Xs(t,e,n,r){const s=Bn(n),o={sent_at:new Date().toISOString(),...s&&{sdk:s},...!!r&&e&&{dsn:at(e)}},i="aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()];return J(o,[i])}function Js(t,e,n,r){const s=Bn(n),o=t.type&&t.type!=="replay_event"?t.type:"event";Ks(t,n?.sdk);const i=Vs(t,s,r,e);return delete t.sdkProcessingMetadata,J(i,[[{type:o},t]])}function Zs(t,e){const{fingerprint:n,span:r,breadcrumbs:s,sdkProcessingMetadata:o}=e;Qs(t,e),r&&no(t,r),ro(t,n),to(t,s),eo(t,o)}function je(t,e){const{extra:n,tags:r,attributes:s,user:o,contexts:i,level:a,sdkProcessingMetadata:c,breadcrumbs:u,fingerprint:l,eventProcessors:f,attachments:_,propagationContext:d,transactionName:g,span:O}=e;Q(t,"extra",n),Q(t,"tags",r),Q(t,"attributes",s),Q(t,"user",o),Q(t,"contexts",i),t.sdkProcessingMetadata=it(t.sdkProcessingMetadata,c,2),a&&(t.level=a),g&&(t.transactionName=g),O&&(t.span=O),u.length&&(t.breadcrumbs=[...t.breadcrumbs,...u]),l.length&&(t.fingerprint=[...t.fingerprint,...l]),f.length&&(t.eventProcessors=[...t.eventProcessors,...f]),_.length&&(t.attachments=[...t.attachments,..._]),t.propagationContext={...t.propagationContext,...d}}function Q(t,e,n){t[e]=it(t[e],n,1)}function Hn(t,e){const n=Xr().getScopeData();return t&&je(n,t.getScopeData()),e&&je(n,e.getScopeData()),n}function Qs(t,e){const{extra:n,tags:r,user:s,contexts:o,level:i,transactionName:a}=e;Object.keys(n).length&&(t.extra={...n,...t.extra}),Object.keys(r).length&&(t.tags={...r,...t.tags}),Object.keys(s).length&&(t.user={...s,...t.user}),Object.keys(o).length&&(t.contexts={...o,...t.contexts}),i&&(t.level=i),a&&t.type!=="transaction"&&(t.transaction=a)}function to(t,e){const n=[...t.breadcrumbs||[],...e];t.breadcrumbs=n.length?n:void 0}function eo(t,e){t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...e}}function no(t,e){t.contexts={trace:bs(e),...t.contexts},t.sdkProcessingMetadata={dynamicSamplingContext:Ms(e),...t.sdkProcessingMetadata};const n=$n(e),r=ae(n).description;r&&!t.transaction&&t.type==="transaction"&&(t.transaction=r)}function ro(t,e){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],e&&(t.fingerprint=t.fingerprint.concat(e)),t.fingerprint.length||delete t.fingerprint}const At=0,Be=1,He=2;function ct(t){return new nt(e=>{e(t)})}function ue(t){return new nt((e,n)=>{n(t)})}class nt{constructor(e){this._state=At,this._handlers=[],this._runExecutor(e)}then(e,n){return new nt((r,s)=>{this._handlers.push([!1,o=>{if(!e)r(o);else try{r(e(o))}catch(i){s(i)}},o=>{if(!n)s(o);else try{r(n(o))}catch(i){s(i)}}]),this._executeHandlers()})}catch(e){return this.then(n=>n,e)}finally(e){return new nt((n,r)=>{let s,o;return this.then(i=>{o=!1,s=i,e&&e()},i=>{o=!0,s=i,e&&e()}).then(()=>
7{if(o){r(s);return}n(s)})})}_executeHandlers(){if(this._state===At)return;const e=this._handlers.slice();this._handlers=[],e.forEach(n=>{n[0]||(this._state===Be&&n[1](this._value),this._state===He&&n[2](this._value),n[0]=!0)})}_runExecutor(e){const n=(o,i)=>{if(this._state===At){if(st(i)){i.then(r,s);return}this._state=o,this._value=i,this._executeHandlers()}},r=o=>{n(Be,o)},s=o=>{n(He,o)};try{e(r,s)}catch(o){s(o)}}}function so(t,e,n,r=0){try{const s=Wt(e,n,t,r);return st(s)?s:ct(s)}catch(s){return ue(s)}}function Wt(t,e,n,r){const s=n[r];if(!t||!s)return t;const o=s({...t},e);return h&&o===null&&p.log(`Event processor "${s.id||"?"}" dropped event`),st(o)?o.then(i=>Wt(i,e,n,r+1)):Wt(o,e,n,r+1)}let M,Ge,We,C;function oo(t){const e=m._sentryDebugIds,n=m._debugIds;if(!e&&!n)return{};const r=e?Object.keys(e):[],s=n?Object.keys(n):[];if(C&&r.length===Ge&&s.length===We)return C;Ge=r.length,We=s.length,C={},M||(M={});const o=(i,a)=>{for(const c of i){const u=a[c],l=M?.[c];if(l&&C&&u)C[l[0]]=u,M&&(M[c]=[l[0],u]);else if(u){const f=t(c);for(let _=f.length-1;_>=0;_--){const g=f[_]?.filename;if(g&&C&&M){C[g]=u,M[c]=[g,u];break}}}}};return e&&o(r,e),n&&o(s,n),C}function io(t,e,n,r,s,o){const{normalizeDepth:i=3,normalizeMaxBreadth:a=1e3}=t,c={...e,event_id:e.event_id||n.event_id||I(),timestamp:e.timestamp||ot()},u=n.integrations||t.integrations.map(v=>v.name);ao(c,t),fo(c,u),s&&s.emit("applyFrameMetadata",e),e.type===void 0&&co(c,t.stackParser);const l=po(r,n.captureContext);n.mechanism&&W(c,n.mechanism);const f=s?s.getEventProcessors():[],_=Hn(o,l),d=[...n.attachments||[],..._.attachments];d.length&&(n.attachments=d),Zs(c,_);const g=[...f,..._.eventProcessors];return(n.data&&n.data.__sentry__===!0?ct(c):so(g,c,n)).then(v=>(v&&uo(v),typeof i=="number"&&i>0?lo(v,i,a):v))}function ao(t,e){const{environment:n,release:r,dist:s,maxValueLength:o}=e;t.environment=t.environment||n||ce,!t.release&&r&&(t.release=r),!t.dist&&s&&(t.dist=s);const i=t.request;i?.url&&o&&(i.url=Ft(i.url,o)),o&&t.exception?.values?.forEach(a=>{a.value&&(a.value=Ft(a.value,o))})}function co(t,e){const n=oo(e);t.exception?.values?.forEach(r=>{r.stacktrace?.frames?.forEach(s=>{s.filename&&(s.debug_id=n[s.filename])})})}function uo(t){const e={};if(t.exception?.values?.forEach(r=>{r.stacktrace?.frames?.forEach(s=>{s.debug_id&&(s.abs_path?e[s.abs_path]=s.debug_id:s.filename&&(e[s.filename]=s.debug_id),delete s.debug_id)})}),Object.keys(e).length===0)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];const n=t.debug_meta.images;Object.entries(e).forEach(([r,s])=>{n.push({type:"sourcemap",code_file:r,debug_id:s})})}function fo(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}function lo(t,e,n){if(!t)return null;const r={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(s=>({...s,...s.data&&{data:w(s.data,e,n)}}))},...t.user&&{user:w(t.user,e,n)},...t.contexts&&{contexts:w(t.contexts,e,n)},...t.extra&&{extra:w(t.extra,e,n)}};return t.contexts?.trace&&r.contexts&&(r.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(r.contexts.trace.data=w(t.contexts.trace.data,e,n))),t.spans&&(r.spans=t.spans.map(s=>({...s,...s.data&&{data:w(s.data,e,n)}}))),t.contexts?.flags&&r.contexts&&(r.contexts.flags=w(t.contexts.flags,3,n)),r}function po(t,e){if(!e)return t;const n=t?t.clone():new k;return n.update(e),n}function ho(t,e){return x().captureException(t,void 0)}function Gn(t,e){return x().captureEvent(t,e)}function qe(t){const e=H(),{user:n}=Hn(e,x()),{userAgent:r}=m.navigator||{},s=Fr({user:n,...r&&{userAgent:r},...t}),o=e.getSession();return o?.status==="ok"&&q(o,{status:"exited"}),Wn(),e.setSession(s),s}function Wn(){const t=H(),n=x().getSession()||t.getSession();n&&Ur(n),qn(),t.setSession()}function qn(){const t=H(),e=E(),n=t.getSession();n&&e&&e.captureSession(n)}function Lt(t=!1){if(t){Wn();return}qn()}const _o="7";function mo(t){const e=t.protocol?`${t.protocol}:`:"",n=t.port?`:${t.port}`:"";return`${e}//${t.host}${n}${t.path?`/${t.path}`:""}/api/`}function go(t){return`${mo(t)}${t.projectId}/envelope/`}function yo(t,e){const n={sentry_version:_o};return t.publicKey&&(n.sentry_key=t.publicKey),e&&(n.sentry_client=`${e.name}/${e.version}`),new URLSearchParams(n).toString()}function Eo(t,e,n){return e||`${go(t)}?${yo(t,n)}`}const ze=[];function So(t){const e={};return t.forEach(n=>{const{name:r}=n,s=e[r];s&&!s.isDefaultInstance&&n.isDefaultInstance||(e[r]=n)}),Object.values(e)}function bo(t){const e=t.defaultIntegrations||[],n=t.integrations;e.forEach(s=>{s.isDefaultInstance=!0});let r;if(Array.isArray(n))r=[...e,...n];else if(typeof n=="function"){const s=n(e);r=Array.isArray(s)?s:[s]}else r=e;return So(r)}function Io(t,e){const n={};return e.forEach(r=>{r?.beforeSetup&&r.beforeSetup(t)}),e.forEach(r=>{r&&zn(t,r,n)}),n}function Ye(t,e){for(const n of e)n?.afterAllSetup&&n.afterAllSetup(t)}function zn(t,e,n){if(n[e.name]){h&&p.log(`Integration skipped because it was already installed: ${e.name}`);return}if(n[e.name]=e,!ze.includes(e.name)&&typeof e.setupOnce=="function"&&(e.setupOnce(),ze.push(e.name)),e.setup&&typeof e.setup=="function"&&e.setup(t),typeof e.preprocessEvent=="function"){const r=e.preprocessEvent.bind(e);t.on("preprocessEvent",(s,o)=>r(s,o,t))}if(typeof e.processEvent=="function"){const r=e.processEvent.bind(e),s=Object.assign((o,i)=>r(o,i,t),{id:e.name});t.addEventProcessor(s)}h&&p.log(`Integration installed: ${e.name}`)}function To(t){return[{type:"log",item_count:t.length,content_type:"application/vnd.sentry.items.log+json"},{items:t}]}function vo(t,e,n,r){const s={};return e?.sdk&&(s.sdk={name:e.sdk.name,version:e.sdk.version}),n&&r&&(s.dsn=at(r)),J(s,[To(t)])}function qt(t,e){const n=e??wo(t)??[];
7if(n.length===0)return;const r=t.getOptions(),s=vo(n,r._metadata,r.tunnel,t.getDsn());Yn().set(t,[]),t.emit("flushLogs"),t.sendEnvelope(s)}function wo(t){return Yn().get(t)}function Yn(){return V("clientToLogBufferMap",()=>new WeakMap)}function Ro(t){return[{type:"trace_metric",item_count:t.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{items:t}]}function No(t,e,n,r){const s={};return e?.sdk&&(s.sdk={name:e.sdk.name,version:e.sdk.version}),n&&r&&(s.dsn=at(r)),J(s,[Ro(t)])}function Vn(t,e){const n=e??ko(t)??[];if(n.length===0)return;const r=t.getOptions(),s=No(n,r._metadata,r.tunnel,t.getDsn());Kn().set(t,[]),t.emit("flushMetrics"),t.sendEnvelope(s)}function ko(t){return Kn().get(t)}function Kn(){return V("clientToMetricBufferMap",()=>new WeakMap)}function Xn(t){return typeof t=="object"&&typeof t.unref=="function"&&t.unref(),t}const fe=Symbol.for("SentryBufferFullError");function le(t=100){const e=new Set;function n(){return e.size<t}function r(i){e.delete(i)}function s(i){if(!n())return ue(fe);const a=i();return e.add(a),a.then(()=>r(a),()=>r(a)),a}function o(i){if(!e.size)return ct(!0);const a=Promise.allSettled(Array.from(e)).then(()=>!0);if(!i)return a;const c=[a,new Promise(u=>Xn(setTimeout(()=>u(!1),i)))];return Promise.race(c)}return{get $(){return Array.from(e)},add:s,drain:o}}const xo=60*1e3;function Oo(t,e=Rt()){const n=parseInt(`${t}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${t}`);return isNaN(r)?xo:r-e}function Co(t,e){return t[e]||t.all||0}function Do(t,e,n=Rt()){return Co(t,e)>n}function Ao(t,{statusCode:e,headers:n},r=Rt()){const s={...t},o=n?.["x-sentry-rate-limits"],i=n?.["retry-after"];if(o)for(const a of o.trim().split(",")){const[c,u,,,l]=a.split(":",5),f=parseInt(c,10),_=(isNaN(f)?60:f)*1e3;if(!u)s.all=r+_;else for(const d of u.split(";"))d==="metric_bucket"?(!l||l.split(";").includes("custom"))&&(s[d]=r+_):s[d]=r+_}else i?s.all=r+Oo(i,r):e===429&&(s.all=r+60*1e3);return s}const Jn=64;function Lo(t,e,n=le(t.bufferSize||Jn)){let r={};const s=i=>n.drain(i);function o(i){const a=[];if(Ht(i,(f,_)=>{const d=Ue(_);Do(r,d)?t.recordDroppedEvent("ratelimit_backoff",d):a.push(f)}),a.length===0)return Promise.resolve({});const c=J(i[0],a),u=f=>{if(Gs(c,["client_report"])){h&&p.warn(`Dropping client report. Will not send outcomes (reason: ${f}).`);return}Ht(c,(_,d)=>{t.recordDroppedEvent(f,Ue(d))})},l=()=>e({body:Ws(c)}).then(f=>f.statusCode===413?(h&&p.error("Sentry responded with status code 413. Envelope was discarded due to exceeding size limits."),u("send_error"),f):(h&&f.statusCode!==void 0&&(f.statusCode<200||f.statusCode>=300)&&p.warn(`Sentry responded with status code ${f.statusCode} to sent event.`),r=Ao(r,f),f),f=>{throw u("network_error"),h&&p.error("Encountered error running transport request:",f),f});return n.add(l).then(f=>f,f=>{if(f===fe)return h&&p.error("Skipped sending event because buffer is full."),u("queue_overflow"),Promise.resolve({});throw f})}return{send:o,flush:s}}function Mo(t,e,n){const r=[{type:"client_report"},{timestamp:ot(),discarded_events:t}];return J(e?{dsn:e}:{},[r])}function Zn(t){const e=[];t.message&&e.push(t.message);try{const n=t.exception.values[t.exception.values.length-1];n?.value&&(e.push(n.value),n.type&&e.push(`${n.type}: ${n.value}`))}catch{}return e}function Po(t){const{trace_id:e,parent_span_id:n,span_id:r,status:s,origin:o,data:i,op:a}=t.contexts?.trace??{};return{data:i??{},description:t.transaction,op:a,parent_span_id:n,span_id:r??"",start_timestamp:t.start_timestamp??0,status:s,timestamp:t.timestamp,trace_id:e??"",origin:o,profile_id:i?.[Dn],exclusive_time:i?.[An],measurements:t.measurements,is_segment:!0}}function $o(t){return{type:"transaction",timestamp:t.timestamp,start_timestamp:t.start_timestamp,transaction:t.description,contexts:{trace:{trace_id:t.trace_id,span_id:t.span_id,parent_span_id:t.parent_span_id,op:t.op,status:t.status,origin:t.origin,data:{...t.data,...t.profile_id&&{[Dn]:t.profile_id},...t.exclusive_time&&{[An]:t.exclusive_time}}}},measurements:t.measurements}}const Ve="Not capturing exception because it's already been captured.",Ke="Discarded session because of missing or non-string release",Qn=Symbol.for("SentryInternalError"),tr=Symbol.for("SentryDoNotSendEventError"),Fo=5e3;function ht(t){return{message:t,[Qn]:!0}}function Mt(t){return{message:t,[tr]:!0}}function Xe(t){return!!t&&typeof t=="object"&&Qn in t}function Je(t){return!!t&&typeof t=="object"&&tr in t}function Ze(t,e,n,r,s){let o=0,i,a=!1;t.on(n,()=>{o=0,clearTimeout(i),a=!1}),t.on(e,c=>
7{o+=r(c),o>=8e5?s(t):a||(a=!0,i=Xn(setTimeout(()=>{s(t)},Fo)))}),t.on("flush",()=>{s(t)})}class Uo{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=le(e.transportOptions?.bufferSize??Jn),e.dsn?this._dsn=Es(e.dsn):h&&p.warn("No DSN provided, client will not send events."),this._dsn){const r=Eo(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:r})}this._options.enableLogs=this._options.enableLogs??this._options._experiments?.enableLogs,this._options.enableLogs&&Ze(this,"afterCaptureLog","flushLogs",Go,qt),(this._options.enableMetrics??this._options._experiments?.enableMetrics??!0)&&Ze(this,"afterCaptureMetric","flushMetrics",Ho,Vn)}captureException(e,n,r){const s=I();if(ve(e))return h&&p.log(Ve),s;const o={event_id:s,...n};return this._process(()=>this.eventFromException(e,o).then(i=>this._captureEvent(i,o,r)).then(i=>i),"error"),o.event_id}captureMessage(e,n,r,s){const o={event_id:I(),...r},i=ne(e)?e:String(e),a=Tt(e),c=a?this.eventFromMessage(i,n,o):this.eventFromException(e,o);return this._process(()=>c.then(u=>this._captureEvent(u,o,s)),a?"unknown":"error"),o.event_id}captureEvent(e,n,r){const s=I();if(n?.originalException&&ve(n.originalException))return h&&p.log(Ve),s;const o={event_id:s,...n},i=e.sdkProcessingMetadata||{},a=i.capturedSpanScope,c=i.capturedSpanIsolationScope,u=Qe(e.type);return this._process(()=>this._captureEvent(e,o,a||r,c),u),o.event_id}captureSession(e){this.sendSession(e),q(e,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(e){const n=this._transport;if(!n)return!0;this.emit("flush");const r=await this._isClientDoneProcessing(e),s=await n.flush(e);return r&&s}async close(e){qt(this);const n=await this.flush(e);return this.getOptions().enabled=!1,this.emit("close"),n}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some(({name:e})=>e.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}addIntegration(e){const n=this._integrations[e.name];!n&&e.beforeSetup&&e.beforeSetup(this),zn(this,e,this._integrations),n||Ye(this,[e])}sendEvent(e,n={}){this.emit("beforeSendEvent",e,n);let r=Js(e,this._dsn,this._options._metadata,this._options.tunnel);for(const s of n.attachments||[])r=Hs(r,zs(s));this.sendEnvelope(r).then(s=>this.emit("afterSendEvent",e,s))}sendSession(e){const{release:n,environment:r=ce}=this._options;if("aggregates"in e){const o=e.attrs||{};if(!o.release&&!n){h&&p.warn(Ke);return}o.release=o.release||n,o.environment=o.environment||r,e.attrs=o}else{if(!e.release&&!n){h&&p.warn(Ke);return}e.release=e.release||n,e.environment=e.environment||r}this.emit("beforeSendSession",e);const s=Xs(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(s)}recordDroppedEvent(e,n,r=1){if(this._options.sendClientReports){const s=`${e}:${n}`;h&&p.log(`Recording outcome: "${s}"${r>1?` (${r} times)`:""}`),this._outcomes[s]=(this._outcomes[s]||0)+r}}on(e,n){const r=this._hooks[e]=this._hooks[e]||new Set,s=(...o)=>n(...o);return r.add(s),()=>{r.delete(s)}}emit(e,...n){const r=this._hooks[e];r&&r.forEach(s=>s(...n))}async sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)try{return await this._transport.send(e)}catch(n){return h&&p.error("Error while sending envelope:",n),{}}return h&&p.error("Transport disabled"),{}}dispose(){}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=Io(this,e),Ye(this,e)}_updateSessionFromEvent(e,n){let r=n.level==="fatal",s=!1;const o=n.exception?.values;if(o){s=!0,r=!1;for(const c of o)if(c.mechanism?.handled===!1){r=!0;break}}const i=e.status==="ok";(i&&e.errors===0||i&&r)&&(q(e,{...r&&{status:"crashed"},errors:e.errors||Number(s||r)}),this.captureSession(e))}async _isClientDoneProcessing(e){let n=0;for(;!e||n<e;){if(await new Promise(r=>setTimeout(r,1)),!this._numProcessing)return!0;n++}return!1}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(e,n,r,s){const o=this.getOptions(),i=Object.keys(this._integrations);
7return!n.integrations&&i?.length&&(n.integrations=i),this.emit("preprocessEvent",e,n),e.type||s.setLastEventId(e.event_id||n.event_id),io(o,e,n,r,this,s).then(a=>{if(a===null)return a;this.emit("postprocessEvent",a,n),a.contexts={trace:{...a.contexts?.trace,...Zr(r)},...a.contexts};const c=Ls(this,r);return a.sdkProcessingMetadata={dynamicSamplingContext:c,...a.sdkProcessingMetadata},a})}_captureEvent(e,n={},r=x(),s=H()){return h&&zt(e)&&p.log(`Captured error event \`${Zn(e)[0]||"<unknown>"}\``),this._processEvent(e,n,r,s).then(o=>o.event_id,o=>{h&&(Je(o)?p.log(o.message):Xe(o)?p.warn(o.message):p.warn(o))})}_processEvent(e,n,r,s){const o=this.getOptions(),{sampleRate:i}=o,a=er(e),c=zt(e),l=`before send for type \`${e.type||"error"}\``,f=typeof i>"u"?void 0:Ss(i);if(c&&typeof f=="number"&&yt()>f)return this.recordDroppedEvent("sample_rate","error"),ue(Mt(`Discarding event because it's not included in the random sample (sampling rate = ${i})`));const _=Qe(e.type);return this._prepareEvent(e,n,r,s).then(d=>{if(d===null)throw this.recordDroppedEvent("event_processor",_),Mt("An event processor returned `null`, will not send event.");if(n.data?.__sentry__===!0)return d;const O=Bo(this,o,d,n);return jo(O,l)}).then(d=>{if(d===null){if(this.recordDroppedEvent("before_send",_),a){const v=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",v)}throw Mt(`${l} returned \`null\`, will not send event.`)}const g=r.getSession()||s.getSession();if(c&&g&&this._updateSessionFromEvent(g,d),a){const Z=d.sdkProcessingMetadata?.spanCountBeforeProcessing||0,v=d.spans?d.spans.length:0,_e=Z-v;_e>0&&this.recordDroppedEvent("before_send","span",_e)}const O=d.transaction_info;if(a&&O&&d.transaction!==e.transaction){const Z="custom";d.transaction_info={...O,source:Z}}return this.sendEvent(d,n),d}).then(null,d=>{throw Je(d)||Xe(d)?d:(this.captureException(d,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:d}),ht(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
8Reason: ${d}`))})}_process(e,n){this._numProcessing++,this._promiseBuffer.add(e).then(r=>(this._numProcessing--,r),r=>(this._numProcessing--,r===fe&&this.recordDroppedEvent("queue_overflow",n),r))}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.entries(e).map(([n,r])=>{const[s,o]=n.split(":");return{reason:s,category:o,quantity:r}})}_flushOutcomes(){h&&p.log("Flushing outcomes...");const e=this._clearOutcomes();if(e.length===0){h&&p.log("No outcomes to send");return}if(!this._dsn){h&&p.log("No dsn provided, will not send outcomes");return}h&&p.log("Sending outcomes:",e);const n=Mo(e,this._options.tunnel&&at(this._dsn));this.sendEnvelope(n)}}function Qe(t){return t==="replay_event"?"replay":t||"error"}function jo(t,e){const n=`${e} must return \`null\` or a valid event.`;if(st(t))return t.then(r=>{if(!et(r)&&r!==null)throw ht(n);return r},r=>{throw ht(`${e} rejected with ${r}`)});if(!et(t)&&t!==null)throw ht(n);return t}function Bo(t,e,n,r){const{beforeSend:s,beforeSendTransaction:o,ignoreSpans:i}=e,a=!Ps(e.beforeSendSpan)&&e.beforeSendSpan;let c=n;if(zt(c)&&s)return s(c,r);if(er(c)){if(a||i){const u=Po(c);if(i?.length&&Fe(u,i))return null;if(a){const l=a(u);l?c=it(n,$o(l)):Pe()}if(c.spans){const l=[],f=c.spans;
8for(const d of f){if(i?.length&&Fe(d,i)){Cs(f,d);continue}if(a){const g=a(d);g?l.push(g):(Pe(),l.push(d))}else l.push(d)}const _=c.spans.length-l.length;_&&t.recordDroppedEvent("before_send","span",_),c.spans=l}}if(o){if(c.spans){const u=c.spans.length;c.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:u}}return o(c,r)}}return c}function zt(t){return t.type===void 0}function er(t){return t.type==="transaction"}function Ho(t){let e=0;return t.name&&(e+=t.name.length*2),e+=8,e+nr(t.attributes)}function Go(t){let e=0;return t.message&&(e+=t.message.length*2),e+nr(t.attributes)}function nr(t){if(!t)return 0;let e=0;return Object.values(t).forEach(n=>{Array.isArray(n)?e+=n.length*tn(n[0]):Tt(n)?e+=tn(n):e+=100}),e}function tn(t){return typeof t=="string"?t.length*2:typeof t=="number"?8:typeof t=="boolean"?4:0}function Wo(t){return It(t)&&"__sentry_fetch_url_host__"in t&&typeof t.__sentry_fetch_url_host__=="string"}function en(t){return Wo(t)?`${t.message} (${t.__sentry_fetch_url_host__})`:t.message}function qo(t,e){e.debug===!0&&(h?p.enable():K(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),x().update(e.initialScope);const r=new t(e);return zo(r),r.init(),r}function zo(t){x().setClient(t)}function Pt(t){if(!t)return{};const e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};const n=e[6]||"",r=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],search:n,hash:r,relative:e[5]+n+r}}function Yo(t,e=!0){if(t.startsWith("data:")){const n=t.match(/^data:([^;,]+)/),r=n?n[1]:"text/plain",s=t.includes(";base64,"),o=t.indexOf(",");let i="";if(e&&o!==-1){const a=t.slice(o+1);i=a.length>10?`${a.slice(0,10)}... [truncated]`:a}return`data:${r}${s?",base64":""}${i?`,${i}`:""}`}return t}function Vo(t){"aggregates"in t?t.attrs?.ip_address===void 0&&(t.attrs={...t.attrs,ip_address:"{{auto}}"}):t.ipAddress===void 0&&(t.ipAddress="{{auto}}")}function rr(t,e,n=[e],r="npm"){const s=(t._metadata=t._metadata||{}).sdk=t._metadata.sdk||{};s.name||(s.name=`sentry.javascript.${e}`,s.packages=n.map(o=>({name:`${r}:@sentry/${o}`,version:$})),s.version=$)}const Ko=100;function U(t,e){const n=E(),r=H();if(!n)return;const{beforeBreadcrumb:s=null,maxBreadcrumbs:o=Ko}=n.getOptions();if(o<=0)return;const a={timestamp:ot(),...t},c=s?K(()=>s(a,e)):a;c!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",c,e),r.addBreadcrumb(c,o))}let nn;const Xo="FunctionToString",rn=new WeakMap,Jo=(()=>({name:Xo,setupOnce(){nn=Function.prototype.toString;try{Function.prototype.toString=function(...t){const e=oe(this),n=rn.has(E())&&e!==void 0?e:this;return nn.apply(n,t)}}catch{}},setup(t){rn.set(t,!0)}})),Zo=Jo,Qo=[/^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/,/Can't find variable: _AutofillCallbackHandler/,/Object Not Found Matching Id:\d+, MethodName:simulateEvent/,/^Java exception was raised during method invocation$/],ti="EventFilters",ei=(t={})=>{let e;return{name:ti,setup(n){const r=n.getOptions();e=sn(t,r)},processEvent(n,r,s){if(!e){const o=s.getOptions();e=sn(t,o)}return ri(n,e)?null:n}}},ni=((t={})=>({...ei(t),name:"InboundFilters"}));function sn(t={},e={}){return{allowUrls:[...t.allowUrls||[],...e.allowUrls||[]],denyUrls:[...t.denyUrls||[],...e.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...e.ignoreErrors||[],...t.disableErrorDefaults?[]:Qo],ignoreTransactions:[...t.ignoreTransactions||[],...e.ignoreTransactions||[]]}}function ri(t,e){if(t.type){if(t.type==="transaction"&&oi(t,e.ignoreTransactions))return h&&p.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
9Event: ${P(t)}`),!0}else{if(si(t,e.ignoreErrors))return h&&p.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
10Event: ${P(t)}`),!0;if(ui(t))return h&&p.warn(`Event dropped due to not having an error message, error type or stacktrace.
11Event: ${P(t)}`),!0;if(ii(t,e.denyUrls))return h&&p.warn(`Event dropped due to being matched by \`denyUrls\` option.
12Event: ${P(t)}.
13Url: ${Et(t)}`),!0;if(!ai(t,e.allowUrls))return h&&p.warn(`Event dropped due to not being matched by \`allowUrls\` option.
14Event: ${P(t)}.
15Url: ${Et(t)}`),!0}return!1}function si(t,e){return e?.length?Zn(t).some(n=>Nt(n,e)):!1}function oi(t,e){if(!e?.length)return!1;const n=t.transaction;return n?Nt(n,e):!1}function ii(t,e){if(!e?.length)return!1;const n=Et(t);return n?Nt(n,e):!1}function ai(t,e){if(!e?.length)return!0;const n=Et(t);return n?Nt(n,e):!0}function ci(t=[]){for(let e=t.length-1;e>=0;e--){const n=t[e];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function Et(t){try{const n=[...t.exception?.values??[]].reverse().find(r=>r.mechanism?.parent_id===void 0&&r.stacktrace?.frames?.length)?.stacktrace?.frames;return n?ci(n):null}catch{return h&&p.error(`Cannot extract url for event ${P(t)}`),null}}function ui(t){return t.exception?.values?.length?!t.message&&!t.exception.values.some(e=>e.stacktrace||e.type&&e.type!=="Error"||e.value):!1}function fi(t,e,n,r,s,o){if(!s.exception?.values||!o||!A(o.originalException,Error))return;const i=s.exception.values.length>0?s.exception.values[s.exception.values.length-1]:void 0;i&&(s.exception.values=Yt(t,e,r,o.originalException,n,s.exception.values,i,0
15))}function Yt(t,e,n,r,s,o,i,a){if(o.length>=n+1)return o;let c=[...o];if(A(r[s],Error)){on(i,a,r);const u=t(e,r[s]),l=c.length;an(u,s,l,a),c=Yt(t,e,n,r[s],s,[u,...c],u,l)}return sr(r)&&r.errors.forEach((u,l)=>{if(A(u,Error)){on(i,a,r);const f=t(e,u),_=c.length;an(f,`errors[${l}]`,_,a),c=Yt(t,e,n,u,s,[f,...c],f,_)}}),c}function sr(t){return Array.isArray(t.errors)}function on(t,e,n){t.mechanism={handled:!0,type:"auto.core.linked_errors",...sr(n)&&{is_exception_group:!0},...t.mechanism,exception_id:e}}function an(t,e,n,r){t.mechanism={handled:!0,...t.mechanism,type:"chained",source:e,exception_id:n,parent_id:r}}function li(t){const e="console";j(e,t),B(e,di)}function di(){"console"in m&&pr.forEach(function(t){t in m.console&&b(m.console,t,function(e){return gt[t]=e,function(...n){T("console",{args:n,level:t}),gt[t]?.apply(m.console,n)}})})}function pi(t){return t==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(t)?t:"log"}const hi="Dedupe",_i=(()=>{let t;return{name:hi,processEvent(e){if(e.type)return e;try{if(gi(e,t))return h&&p.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return t=e}}}),mi=_i;function gi(t,e){return e?!!(yi(t,e)||Ei(t,e)):!1}function yi(t,e){const n=t.message,r=e.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!ir(t,e)||!or(t,e))}function Ei(t,e){const n=cn(e),r=cn(t);return!(!n||!r||n.type!==r.type||n.value!==r.value||!ir(t,e)||!or(t,e))}function or(t,e){let n=ye(t),r=ye(e);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let s=0;s<r.length;s++){const o=r[s],i=n[s];if(o.filename!==i.filename||o.lineno!==i.lineno||o.colno!==i.colno||o.function!==i.function)return!1}return!0}function ir(t,e){let n=t.fingerprint,r=e.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join("")===r.join("")}catch{return!1}}function cn(t){return t.exception?.values?.[0]}const Si="ConversationId",bi=(()=>({name:Si,setup(t){t.on("spanStart",e=>{const n=x().getScopeData(),r=H().getScopeData(),s=n.conversationId||r.conversationId;s&&e.setAttribute(ss,s)})}})),Ii=bi;function ar(t){if(t!==void 0)return t>=400&&t<500?"warning":t>=500?"error":void 0}const rt=m;function Ti(){return"history"in rt&&!!rt.history}function vi(){if(!("fetch"in rt))return!1;try{return new Headers,new Request("data:,"),new Response,!0}catch{return!1}}function Vt(t){return t&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function wi(){if(typeof EdgeRuntime=="string")return!0;if(!vi())return!1;if(Vt(rt.fetch))return!0;let t=!1;const e=rt.document;if(e&&typeof e.createElement=="function")try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n),n.contentWindow?.fetch&&(t=Vt(n.contentWindow.fetch)),e.head.removeChild(n)}catch(n){h&&p.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return t}function Ri(t,e){const n="fetch";j(n,t),B(n,()=>Ni(void 0,e))}function Ni(t,e=!1){e&&!wi()||b(m,"fetch",function(n){return function(...r){const s=new Error,{method:o,url:i}=ki(r),a={args:r,fetchData:{method:o,url:i},startTimestamp:N()*1e3,virtualError:s,headers:xi(r)};return T("fetch",{...a}),n.apply(m,r).then(async c=>(T("fetch",{...a,endTimestamp:N()*1e3,response:c}),c),c=>{T("fetch",{...a,endTimestamp:N()*1e3,error:c}),It(c)&&c.stack===void 0&&(c.stack=s.stack,L(c,"framesToPop",1));const l=E()?.getOptions().enhanceFetchErrorMessages??"always";if(l!==!1&&c instanceof TypeError&&(c.message==="Failed to fetch"||c.message==="Load failed"||c.message==="NetworkError when attempting to fetch resource."))try{const d=new URL(a.fetchData.url).host;l==="always"?c.message=`${c.message} (${d})`:L(c,"__sentry_fetch_url_host__",d)}catch{}throw c})}})}function _t(t,e){return!!t&&typeof t=="object"&&!!t[e]}function un(t){return typeof t=="string"?t:t?_t(t,"url")?t.url:t.toString?t.toString():"":""}function ki(t){if(t.length===0)return{method:"GET",url:""};if(t.length===2){const[n,r]=t;return{url:un(n),method:_t(r,"method")?String(r.method).toUpperCase():vn(n)&&_t(n,"method")?String(n.method).toUpperCase():"GET"}}const e=t[0];return{url:un(e),method:_t(e,"method")?String(e.method).toUpperCase():"GET"}}function xi(t){const[e,n]=t;try{if(typeof n=="object"&&n!==null&&"headers"in n&&n.headers)return new Headers(n.headers);if(vn(e))return new Headers(e.headers)}catch{}}function Oi(){return"npm"}const y=m;let Kt=0;function cr(){return Kt>0}function Ci(){Kt++,setTimeout(()=>{Kt--})}function Y(t,e={}){function n(s){return typeof s=="function"}if(!n(t))return t;try{const s=t.__sentry_wrapped__;if(s)return typeof s=="function"?s:t;if(oe(t))return t}catch{return t}const r=function(...s){try{const o=s.map(i=>Y(i,e));return t.apply(this,o)}catch(o){throw Ci(),Jr(i=>{i.addEventProcessor(a=>(e.mechanism&&(Ut(a,void 0),W(a,e.mechanism)),a.extra={...a.extra,arguments:s},a)),ho(o)}),o}};try{for(const s in t)Object.prototype.hasOwnProperty.call(t,s)&&(r[s]=t[s])}catch{}Rn(r,t),L(t,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return t.name}})}catch{}return r}function Di(){const t=se(),{referrer:e}=y.document||{},{userAgent:n}=y.navigator||{},r={...e&&{Referer:e},...n&&{"User-Agent":n}};return{url:t,headers:r}}function de(t,e){const n=pe(t,e),r={type:$i(e),value:Fi(e)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function Ai(t,e,n,r){const o=E()?.getOptions().normalizeDepth,i=Gi(e),a={__serialized__:Un(e,o)};if(i)return{exception:{values:[de(t,i)]},extra:a};const c={exception:{values:[{type:vt(e)?e.constructor.name:r?"UnhandledRejection":"Error",value:Bi(e,{isUnhandledRejection:r})}]},extra:a};if(n){const u=pe(t,n);u.length&&(c.exception.values[0].stacktrace={frames:u})}return c}function $t(t,e){return{exception:{values:[de(t,e)]}}}function pe(t,e){const n=e.stacktrace||e.stack||"",r=Mi(e),s=Pi(e);try{return t(n,r,s)}catch{}return[]}const Li=/Minified React error #\d+;/i;function Mi(t){return t&&Li.test(t.message)?1:0}function Pi(t){return typeof t.framesToPop=="number"?t.framesToPop:0}function ur(t){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?t instanceof WebAssembly.Exception:!1}function $i(t){const e=t?.name;return!e&&ur(t)?t.message&&Array.isArray(t.message)&&t.message.length==2?t.message[0]:"WebAssembly.Exception":e}function Fi(t){const e=t?.message;return ur(t)?Array.isArray(t.message)&&t.message.length==2?t.message[1]:"wasm exception":e?e.error&&typeof e.error.message=="string"?en(e.error):en(t):"No error message"}function Ui(t,e,n,r){const s=n?.syntheticException||void 0,o=he(t,e,s,r);return W(o),o.level="error",n?.event_id&&(o.event_id=n.event_id),ct(o)}function ji(t,e,n="info",r,s){const o=r?.syntheticException||void 0,i=Xt(t,e,o,s);return i.level=n,r?.event_id&&(i.event_id=r.event_id),ct(i)}function he(t,e,n,r,s){let o;if(In(e)&&e.error)return $t(t,e.error);if(Se(e)||Rr(e)){const i=e;if("stack"in e)o=$t(t,e);else{const a=i.name||(Se(i)?"DOMError":"DOMException"),c=i.message?`${a}: ${i.message}`:a;o=Xt(t,c,n,r),Ut(o,c)}return"code"in i&&(o.tags={...o.tags,"DOMException.code":`${i.code}`}),o}return It(e)?$t(t,e):et(e)||vt(e)?(o=Ai(t,e,n,s),W(o,{synthetic:!0}),o):(o=Xt(t,e,n,r),Ut(o,`${e}`),W(o,{synthetic:!0}),o)}function Xt(t,e,n,r){const s={};if(r&&n){const o=pe(t,n);o.length&&(s.exception={values:[{value:e,stacktrace:{frames:o}}]}),W(s,{synthetic:!0})}
15if(ne(e)){const{__sentry_template_string__:o,__sentry_template_values__:i}=e;return s.logentry={message:o,params:i},s}return s.message=e,s}function Bi(t,{isUnhandledRejection:e}){const n=Ar(t),r=e?"promise rejection":"exception";return In(t)?`Event \`ErrorEvent\` captured as ${r} with message \`${t.message}\``:vt(t)?`Event \`${Hi(t)}\` (type=${t.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function Hi(t){try{const e=Object.getPrototypeOf(t);return e?e.constructor.name:void 0}catch{}}function Gi(t){return Object.values(t).find(e=>e instanceof Error)}class Wi extends Uo{constructor(e){const n=qi(e),r=y.SENTRY_SDK_SOURCE||Oi();rr(n,"browser",["browser"],r),n._metadata?.sdk&&(n._metadata.sdk.settings={infer_ip:n.sendDefaultPii?"auto":"never",...n._metadata.sdk.settings}),super(n);const{sendDefaultPii:s,sendClientReports:o,enableLogs:i,_experiments:a,enableMetrics:c}=this._options,u=c??a?.enableMetrics??!0;y.document&&(o||i||u)&&y.document.addEventListener("visibilitychange",()=>{y.document.visibilityState==="hidden"&&(o&&this._flushOutcomes(),i&&qt(this),u&&Vn(this))}),s&&this.on("beforeSendSession",Vo)}eventFromException(e,n){return Ui(this._options.stackParser,e,n,this._options.attachStacktrace)}eventFromMessage(e,n="info",r){return ji(this._options.stackParser,e,n,r,this._options.attachStacktrace)}_prepareEvent(e,n,r,s){return e.platform=e.platform||"javascript",super._prepareEvent(e,n,r,s)}}function qi(t){return{release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:y.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...t}}const zi=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,S=m,Yi=1e3;let fn,Jt,Zt;function Vi(t){j("dom",t),B("dom",Ki)}function Ki(){if(!S.document)return;const t=T.bind(null,"dom"),e=ln(t,!0);S.document.addEventListener("click",e,!1),S.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach(n=>{const s=S[n]?.prototype;s?.hasOwnProperty?.("addEventListener")&&(b(s,"addEventListener",function(o){return function(i,a,c){if(i==="click"||i=="keypress")try{const u=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},l=u[i]=u[i]||{refCount:0};if(!l.handler){const f=ln(t);l.handler=f,o.call(this,i,f,c)}l.refCount++}catch{}return o.call(this,i,a,c)}}),b(s,"removeEventListener",function(o){return function(i,a,c){if(i==="click"||i=="keypress")try{const u=this.__sentry_instrumentation_handlers__||{},l=u[i];l&&(l.refCount--,l.refCount<=0&&(o.call(this,i,l.handler,c),l.handler=void 0,delete u[i]),Object.keys(u).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return o.call(this,i,a,c)}}))})}function Xi(t){if(t.type!==Jt)return!1;try{if(!t.target||t.target._sentryId!==Zt)return!1}catch{}return!0}function Ji(t,e){return t!=="keypress"?!1:e?.tagName?!(e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable):!0}function ln(t,e=!1){return n=>{if(!n||n._sentryCaptured)return;const r=Zi(n);if(Ji(n.type,r))return;L(n,"_sentryCaptured",!0),r&&!r._sentryId&&L(r,"_sentryId",I());
vendor: 2,118 bytes, line 15
15const s=n.type==="keypress"?"input":n.type;Xi(n)||(t({event:n,name:s,global:e}),Jt=n.type,Zt=r?r._sentryId:void 0),clearTimeout(fn),fn=S.setTimeout(()=>{Zt=void 0,Jt=void 0},Yi)}}function Zi(t){try{return t.target}catch{return null}}let ft;function fr(t){const e="history";j(e,t),B(e,Qi)}function Qi(){if(S.addEventListener("popstate",()=>{const e=S.location.href,n=ft;if(ft=e,n===e)return;T("history",{from:n,to:e})}),!Ti())return;function t(e){return function(...n){const r=n.length>2?n[2]:void 0;if(r){const s=ft,o=ta(String(r));if(ft=o,s===o)return e.apply(this,n);T("history",{from:s,to:o})}return e.apply(this,n)}}b(S.history,"pushState",t),b(S.history,"replaceState",t)}function ta(t){try{return new URL(t,S.location.origin).toString()}catch{return t}}const mt={};function ea(t){const e=mt[t];if(e)return e;let n=S[t];if(Vt(n))return mt[t]=n.bind(S);const r=S.document;if(r&&typeof r.createElement=="function")try{const s=r.createElement("iframe");s.hidden=!0,r.head.appendChild(s);const o=s.contentWindow;o?.[t]&&(n=o[t]),r.head.removeChild(s)}catch(s){zi&&p.warn(`Could not create sandbox iframe for ${t} check, bailing to window.${t}: `,s)}return n&&(mt[t]=n.bind(S))}function na(t){mt[t]=void 0}const tt="__sentry_xhr_v3__";function ra(t){j("xhr",t),B("xhr",sa)}function sa(){if(!S.XMLHttpRequest)return;const t=XMLHttpRequest.prototype;t.open=new Proxy(t.open,{apply(e,n,r){const s=new Error,o=N()*1e3,i=R(r[0])?r[0].toUpperCase():void 0,a=oa(r[1]);if(!i||!a)return e.apply(n,r);n[tt]={method:i,url:a,request_headers:{}},i==="POST"&&a.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const c=()=>{const u=n[tt];if(u&&n.readyState===4){try{u.status_code=n.status}catch{}const l={endTimestamp:N()*1e3,startTimestamp:o,xhr:n,virtualError:s};T("xhr",l)}};return"onreadystatechange"in n&&typeof n.onreadystatechange=="function"?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply(u,l,f){return c(),u.apply(l,f)}}):n.addEventListener("readystatechange",c),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(u,l,f){const[_,d]=f,g=l[tt];return g&&R(_)&&R(d)&&(g.request_headers[_.toLowerCase()]=d),u.a
15pply(l,f)}}),e.apply(n,r)}}),t.send=new Proxy(t.send,{apply(e,n,r){const s=n[tt];if(!s)return e.apply(n,r);r[0]!==void 0&&(s.body=r[0]);const o={startTimestamp:N()*1e3,xhr:n};return T("xhr",o),e.apply(n,r)}})}function oa(t){if(R(t))return t;try{return t.toString()}catch{}}const ia=40;function aa(t,e=ea("fetch")){let n=0,r=0;async function s(o){const i=o.body.length;n+=i,r++;const a={body:o.body,method:"POST",referrerPolicy:"strict-origin",headers:t.headers,keepalive:n<=6e4&&r<15,...t.fetchOptions};try{const c=await e(t.url,a);return{statusCode:c.status,headers:{"x-sentry-rate-limits":c.headers.get("X-Sentry-Rate-Limits"),"retry-after":c.headers.get("Retry-After")}}}catch(c){throw na("fetch"),c}finally{n-=i,r--}}return Lo(t,s,le(t.bufferSize||ia))}const kt=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,ca=30,ua=50;function Qt(t,e,n,r){const s={filename:t,function:e==="<anonymous>"?F:e,in_app:!0};return n!==void 0&&(s.lineno=n),r!==void 0&&(s.colno=r),s}const fa=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,la=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,da=/\((\S*)(?::(\d+))(?::(\d+))\)/,pa=/at (.+?) ?\(data:(.+?),/,ha=t=>{const e=t.match(pa);if(e)return{filename:`<data:${e[2]}>`,function:e[1]};const n=fa.exec(t);if(n){const[,s,o,i]=n;return Qt(s,F,+o,+i)}const r=la.exec(t);if(r){if(r[2]?.indexOf("eval")===0){const a=da.exec(r[2]);a&&(r[2]=a[1],r[3]=a[2],r[4]=a[3])}const[o,i]=lr(r[1]||F,r[2]);return Qt(i,o,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}},_a=[ca,ha],ma=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,ga=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,ya=t=>{const e=ma.exec(t);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){const o=ga.exec(e[3]);o&&(e[1]=e[1]||"eval",e[3]=o[1],e[4]=o[2],e[5]="")}let r=e[3],s=e[1]||F;return[s,r]=lr(s,r),Qt(r,s,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}},Ea=[ua,ya],Sa=[_a,Ea],ba=En(...Sa),lr=(t,e)=>{const n=t.indexOf("safari-extension")!==-1,r=t.indexOf("safari-web-extension")!==-1;return n||r?[t.indexOf("@")!==-1?t.split("@")[0]:F,n?`safari-extension:${e}`:`safari-web-extension:${e}`]:[t,e]},lt=1024,Ia="Breadcrumbs",Ta=((t={})=>{const e={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...t};return{name:Ia,setup(n){e.console&&li(Na(n)),e.dom&&Vi(Ra(n,e.dom)),e.xhr&&ra(ka(n)),e.fetch&&Ri(xa(n)),e.history&&fr(Oa(n)),e.sentry&&n.on("beforeSendEvent",wa(n))}}}),va=Ta;function wa(t){return function(n){E()===t&&U({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:P(n)},{event:n})}}function Ra(t,e){return function(r){if(E()!==t)return;let s,o,i=typeof e=="object"?e.serializeAttribute:void 0,a=typeof e=="object"&&typeof e.maxStringLength=="number"?e.maxStringLength:void 0;a&&a>lt&&(kt&&p.warn(`\`dom.maxStringLength\` cannot exceed ${lt}, but a value of ${a} was configured. Sentry will use ${lt} instead.`),a=lt),typeof i=="string"&&(i=[i]);try{const u=r.event,l=Ca(u)?u.target:u;s=wn(l,{keyAttrs:i,maxStringLength:a}),o=Dr(l)}catch{s="<unknown>"}if(s.length===0)return;const c={category:`ui.${r.name}`,message:s};o&&(c.data={"ui.component_name":o}),U(c,{event:r.event,name:r.name,global:r.global})}}function Na(t){return function(n){if(E()!==t)return;const r={category:"console",data:{arguments:n.args,logger:"console"},level:pi(n.level),message:Te(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${Te(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;U(r,{input:n.args,level:n.level})}}function ka(t){return function(n){if(E()!==t)return;const{startTimestamp:r,endTimestamp:s}=n,o=n.xhr[tt];if(!r||!s||!o)return;const{method:i,url:a,status_code:c,body:u}=o,l={method:i,url:a,status_code:c},f={xhr:n.xhr,input:u,startTimestamp:r,endTimestamp:s},_={category:"xhr",data:l,type:"http",level:ar(c)};t.emit("beforeOutgoingRequestBreadcrumb",_,f),U(_,f)}}function xa(t){return function(n){if(E()!==t)return;const{startTimestamp:r,endTimestamp:s}=n;
15if(s&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.error){const o={data:n.error,input:n.args,startTimestamp:r,endTimestamp:s},i={category:"fetch",data:n.fetchData,level:"error",type:"http"};t.emit("beforeOutgoingRequestBreadcrumb",i,o),U(i,o)}else{const o=n.response,i={...n.fetchData,status_code:o?.status},a={input:n.args,response:o,startTimestamp:r,endTimestamp:s},c={category:"fetch",data:i,type:"http",level:ar(i.status_code)};t.emit("beforeOutgoingRequestBreadcrumb",c,a),U(c,a)}}}function Oa(t){return function(n){if(E()!==t)return;let r=n.from,s=n.to;const o=Pt(y.location.href);let i=r?Pt(r):void 0;const a=Pt(s);i?.path||(i=o),o.protocol===a.protocol&&o.host===a.host&&(s=a.relative),o.protocol===i.protocol&&o.host===i.host&&(r=i.relative),U({category:"navigation",data:{from:r,to:s}})}}function Ca(t){return!!t&&!!t.target}const Da="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".split(","),Aa="BrowserApiErrors",La=((t={})=>{const e={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...t};return{name:Aa,setupOnce(){e.setTimeout&&b(y,"setTimeout",dn),e.setInterval&&b(y,"setInterval",dn),e.requestAnimationFrame&&b(y,"requestAnimationFrame",Pa),e.XMLHttpRequest&&"XMLHttpRequest"in y&&b(XMLHttpRequest.prototype,"send",$a);const n=e.eventTarget;n&&(Array.isArray(n)?n:Da).forEach(s=>Fa(s,e))}}}),Ma=La;function dn(t){return function(...e){const n=e[0];return e[0]=Y(n,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${D(t)}`}}),t.apply(this,e)}}function Pa(t){return function(e){return t.apply(this,[Y(e,{mechanism:{data:{handler:D(t)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function $a(t){return function(...e){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(s=>{s in n&&typeof n[s]=="function"&&b(n,s,function(o){const i={mechanism:{data:{handler:D(o)},handled:!1,type:`auto.browser.browserapierrors.xhr.${s}`}},a=oe(o);return a&&(i.mechanism.data.handler=D(a)),Y(o,i)})}),t.apply(this,e)}}function Fa(t,e){const r=y[t]?.prototype;r?.hasOwnProperty?.("addEventListener")&&(b(r,"addEventListener",function(s){return function(o,i,a){try{Ua(i)&&(i.handleEvent=Y(i.handleEvent,{mechanism:{data:{handler:D(i),target:t},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return e.unregisterOriginalCallbacks&&ja(this,o,i),s.apply(this,[o,Y(i,{mechanism:{data:{handler:D(i),target:t},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),a])}}),b(r,"removeEventListener",function(s){return function(o,i,a){try{const c=i.__sentry_wrapped__;c&&s.call(this,o,c,a)}catch{}return s.call(this,o,i,a)}}))}function Ua(t){return typeof t.handleEvent=="function"}function ja(t,e,n){t&&typeof t=="object"&&"removeEventListener"in t&&typeof t.removeEventListener=="function"&&t.removeEventListener(e,n)}const Ba=(t={})=>{const e=t.lifecycle??"route";return{name:"BrowserSession",setupOnce(){if(typeof y.document>"u"){kt&&p.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}qe({ignoreDuration:!0}),Lt();const n=H();let r=n.getUser();n.addScopeListener(s=>{const o=s.getUser();(r?.id!==o?.id||r?.ip_address!==o?.ip_address)&&(Lt(),r=o)}),e==="route"&&fr(({from:s,to:o})=>{s!==o&&(qe({ignoreDuration:!0}),Lt())})}}},Ha="CultureContext",Ga=(()=>({name:Ha,preprocessEvent(t){const e=qa();e&&(t.contexts={...t.contexts,culture:{...e,...t.contexts?.culture}})}})),Wa=Ga;function qa(){try{const t=y.Intl;if(!t)return;const e=t.DateTimeFormat().resolvedOptions();return{locale:e.locale,timezone:e.timeZone,calendar:e.calendar}}catch{return}}const za="GlobalHandlers",Ya=((t={})=>{const e={onerror:!0,onunhandledrejection:!0,...t};return{name:za,setupOnce(){Error.stackTraceLimit=50},setup(n){e.onerror&&(Ka(n),pn("onerror")),e.onunhandledrejection&&(Xa(n),pn("onunhandledrejection"))}}}),Va=Ya;function Ka(t){Ir(e=>{const{stackParser:n,attachStacktrace:r}=dr();if(E()!==t||cr())return;const{msg:s,url:o,line:i,column:a,error:c}=e,u=Qa(he(n,c||s,void 0,r,!1),o,i,a);u.level="error",Gn(u,{originalException:c,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})})}function Xa(t){vr(e=>{const{stackParser:n,attachStacktrace:r}=dr();if(E()!==t||cr())return;const s=Ja(e),o=Tt(s)?Za(s):he(n,s,void 0,r,!0);o.level="error",Gn(o,{originalException:s,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})})}function Ja(t){if(Tt(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}function Za(t){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(t)}`}]}}}function Qa(t,e,n,r){const s=t.exception=t.exception||{},o=s.values=s.values||[],i=o[0]=o[0]||{},a=i.stacktrace=i.stacktrace||{},c=a.frames=a.frames||[];
15return c.length===0&&c.push({colno:r,lineno:n,filename:tc(e)??se(),function:F,in_app:!0}),t}function pn(t){kt&&p.log(`Global Handler attached: ${t}`)}function dr(){return E()?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}function tc(t){if(!(!R(t)||t.length===0))return t.startsWith("data:")?`<${Yo(t,!1)}>`:t}const ec=()=>({name:"HttpContext",preprocessEvent(t){if(!y.navigator&&!y.location&&!y.document)return;const e=Di(),n={...e.headers,...t.request?.headers};t.request={...e,...t.request,headers:n}}}),nc="cause",rc=5,sc="LinkedErrors",oc=((t={})=>{const e=t.limit||rc,n=t.key||nc;return{name:sc,preprocessEvent(r,s,o){const i=o.getOptions();fi(de,i.stackParser,n,e,r,s)}}}),ic=oc;function ac(){return cc()?(kt&&K(()=>{console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}),!0):!1}function cc(){if(typeof y.window>"u")return!1;const t=y;if(t.nw||!(t.chrome||t.browser)?.runtime?.id)return!1;const n=se();return!(y===y.top&&/^(?:chrome-extension|moz-extension|ms-browser-extension|safari-web-extension):\/\//.test(n))}function uc(t){return[ni(),Zo(),Ii(),Ma(),va(),Va(),ic(),mi(),ec(),Wa(),Ba()]}function fc(t={}){const e=!t.skipBrowserExtensionCheck&&ac();let n=t.defaultIntegrations==null?uc():t.defaultIntegrations;const r={...t,enabled:e?!1:t.enabled,stackParser:Sr(t.stackParser||ba),integrations:bo({integrations:t.integrations,defaultIntegrations:n}),transport:t.transport||aa};return qo(Wi,r)}function lc(t){const e={...t};return rr(e,"svelte"),fc(e)}const hn="G-L9FQEYGMN9",dc="https://[email protected]/3",pc="cookie-consent";let _n=!1,mn=!1;function mc(){try{return localStorage.getItem(pc)}catch{return null}}function gc(){hc(),_c()}function hc(){if(_n)return;_n=!0;const t=window;t.dataLayer=t.dataLayer||[],t.gtag=(...n)=>{t.dataLayer.push(n)},t.gtag("js",new Date),t.gtag("config",hn);const e=document.createElement("script");e.async=!0,e.src=`https://www.googletagmanager.com/gtag/js?id=${hn}`,document.head.appendChild(e)}function _c(){mn||(mn=!0,lc({dsn:dc,environment:"production",tracesSampleRate:.01,replaysSessionSampleRate:0,replaysOnErrorSampleRate:0}))}export{pc as C,mc as g,gc as i};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.