PageSourceSearch

https://www.thuma.co/assets/internal-DM7unFUm.js

js thuma.co collected 2026-10-03 17:43:34 UTC 41,461 bytes, 4 lines download raw bytes

1(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};t.SENTRY_RELEASE={id:"9b1798f0613265fb775a457b721886e02add0705"}}catch{}})();try{(function(){var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="e806b7fc-9021-462f-9c3e-ad3c2bad2f4e",t._sentryDebugIdIdentifier="sentry-dbid-e806b7fc-9021-462f-9c3e-ad3c2bad2f4e")})()}catch{}const y=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,_=globalThis,w="10.33.0";function $(){return K(_),_}function K(t){const e=t.__SENTRY__=t.__SENTRY__||{};return e.version=e.version||w,e[w]=e[w]||{}}function U(t,e,n=_){const r=n.__SENTRY__=n.__SENTRY__||{},s=r[w]=r[w]||{};return s[t]||(s[t]=e())}const Mr=["debug","info","warn","error","log","assert","trace"],xe="Sentry Logger ",Ct={};function J(t){if(!("console"in _))return t();const e=_.console,n={},r=Object.keys(Ct);r.forEach(s=>{const i=Ct[s];n[s]=e[s],e[s]=i});try{return t()}finally{r.forEach(s=>{e[s]=n[s]})}}function Oe(){St().enabled=!0}function De(){St().enabled=!1}function Yt(){return St().enabled}function Me(...t){ht("log",...t)}function ke(...t){ht("warn",...t)}function Le(...t){ht("error",...t)}function ht(t,...e){y&&Yt()&&J(()=>{_.console[t](`${xe}[${t}]:`,...e)})}function St(){return y?U("loggerSettings",()=>({enabled:!1})):{enabled:!1}}const m={enable:Oe,disable:De,isEnabled:Yt,log:Me,warn:ke,error:Le},zt=50,Pe="?",Rt=/\(error: (.*)\)/,xt=/captureMessage|captureException/;function we(...t){const e=t.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,s=0)=>{const i=[],o=n.split(`
2`);for(let c=r;c<o.length;c++){let a=o[c];a.length>1024&&(a=a.slice(0,1024));const u=Rt.test(a)?a.replace(Rt,"$1"):a;if(!u.match(/\S*Error: /)){for(const f of e){const d=f(u);if(d){i.push(d);break}}if(i.length>=zt+s)break}}return ve(i.slice(s))}}function kr(t){return Array.isArray(t)?we(...t):t}function ve(t){if(!t.length)return[];const e=Array.from(t);return/sentryWrapped/.test(Y(e).function||"")&&e.pop(),e.reverse(),xt.test(Y(e).function||"")&&(e.pop(),xt.test(Y(e).function||"")&&e.pop()),e.slice(0,zt).map(n=>({...n,filename:n.filename||Y(e).filename,function:n.function||Pe}))}function Y(t){return t[t.length-1]||{}}const at="<anonymous>";function Fe(t){try{return!t||typeof t!="function"?at:t.name||at}catch{return at}}function Lr(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 Wt(t){return"__v_isVNode"in t&&t.__v_isVNode?"[VueVNode]":"[VueViewModel]"}const Kt=Object.prototype.toString;function $e(t){switch(Kt.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return j(t,Error)}}function L(t,e){return Kt.call(t)===`[object ${e}]`}function Pr(t){return L(t,"ErrorEvent")}function wr(t){return L(t,"DOMError")}function vr(t){return L(t,"DOMException")}function z(t){return L(t,"String")}function Jt(t){return typeof t=="object"&&t!==null&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function Fr(t){return t===null||Jt(t)||typeof t!="object"&&typeof t!="function"}function Xt(t){return L(t,"Object")}function Ue(t){return typeof Event<"u"&&j(t,Event)}function je(t){return typeof Element<"u"&&j(t,Element)}function Be(t){return L(t,"RegExp")}function X(t){return!!(t!=null&&t.then&&typeof t.then=="function")}function Ge(t){return Xt(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function j(t,e){try{return t instanceof e}catch{return!1}}function qt(t){return!!(typeof t=="object"&&t!==null&&(t.__isVue||t._isVue||t.__v_isVNode))}function $r(t){return typeof Request<"u"&&j(t,Request)}const yt=_,He=80;function Ve(t,e={}){if(!t)return"<unknown>";try{let n=t;const r=5,s=[];let i=0,o=0;const c=" > ",a=c.length;let u;const f=Array.isArray(e)?e:e.keyAttrs,d=!Array.isArray(e)&&e.maxStringLength||He;for(;n&&i++<r&&(u=Ye(n,f),!(u==="html"||i>1&&o+s.length*a+u.length>=d));)s.push(u),o+=u.length,n=n.parentNode;return s.reverse().join(c)}catch{return"<unknown>"}}function Ye(t,e){const n=t,r=[];if(!(n!=null&&n.tagName))return"";if(yt.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!=null&&e.length?e.filter(o=>n.getAttribute(o)).map(o=>[o,n.getAttribute(o)]):null;if(s!=null&&s.length)s.forEach(o=>{r.push(`[${o[0]}="${o[1]}"]`)});else{n.id&&r.push(`#${n.id}`);const o=n.className;if(o&&z(o)){const c=o.split(/\s+/);for(const a of c)r.push(`.${a}`)}}const i=["aria-label","type","name","title","alt"];for(const o of i){const c=n.getAttribute(o);c&&r.push(`[${o}="${c}"]`)}return r.join("")}function Ur(){try{return yt.document.location.href}catch{return""}}function jr(t){if(!yt.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 Br(t,e,n){if(!(e in t))return;const r=t[e];if(typeof r!="function")return;const s=n(r);typeof s=="function"&&ze(s,r);try{t[e]=s}catch{y&&m.log(`Failed to replace method "${e}" in object`,t)}}function R(t,e,n){try{Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}catch{y&&m.log(`Failed to add non-enumerable property "${e}" to object`,t)}}function ze(t,e){try{const n=e.prototype||{};t.prototype=e.prototype=n,R(t,"__sentry_original__",e)}catch{}}function Gr(t){return t.__sentry_original__}function Zt(t){if($e(t))return{message:t.message,name:t.name,stack:t.stack,...Dt(t)};if(Ue(t)){const e={type:t.type,target:Ot(t.target),currentTarget:Ot(t.currentTarget),...Dt(t)};return typeof CustomEvent<"u"&&j(t,CustomEvent)&&(e.detail=t.detail),e}else return t}function Ot(t){try{return je(t)?Ve(t):Object.prototype.toString.call(t)}catch{return"<unknown>"}}function Dt(t){if(typeof t=="object"&&t!==null){const e={};for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}else return{}}function Hr(t){const e=Object.keys(Zt(t));return e.sort(),e[0]?e.join(", "):"[object has no keys]"}let M;function B(t){if(M!==void 0)return M?M(t):t();const e=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__"),n=_;return e in n&&typeof n[e]=="function"?(M=n[e],M(t)):(M=null,t())}function x(){return B(()=>Math.random())}function Qt(){return B(()=>Date.now())}function dt(t,e=0){return typeof t!="string"||e===0||t.length<=e?t:`${t.slice(0,e)}...`}function Vr(t,e){if(!Array.isArray(t))return"";const n=[];for(let r=0;r<t.length;r++){const s=t[r];try{qt(s)?n.push(Wt(s)):n.push(String(s))}catch{n.push("[value cannot be serialized]")}}return n.join(e)}function We(t,e,n=!1){return z(t)?Be(e)?e.test(t):z(e)?n?t===e:t.includes(e):!1:!1}function Yr(t,e=[],n=!1){return e.some(r=>We(t,r,n))}function Ke(){const t=_;return t.crypto||t.msCrypto}let ct;function Je(){return x()*16}function C(t=Ke()){try{if(t!=null&&t.randomUUID)return B(()=>t.randomUUID()).replace(/-/g,"")}catch{}return ct||(ct="10000000100040008000"+1e11),ct.replace(/[018]/g,e=>(e^(Je()&15)>>e/4).toString(16))}function te(t){var e,n;return(n=(e=t.exception)==null?void 0:e.values)==null?void 0:n[0]}function zr(t){const{message:e,event_id:n}=t;if(e)return e;const r=te(t);return r?r.type&&r.value?`${r.type}: ${r.value}
2`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function Wr(t,e,n){const r=t.exception=t.exception||{},s=r.values=r.values||[],i=s[0]=s[0]||{};i.value||(i.value=e||""),i.type||(i.type="Error")}function Xe(t,e){const n=te(t);if(!n)return;const r={type:"generic",handled:!0},s=n.mechanism;if(n.mechanism={...r,...s,...e},e&&"data"in e){const i={...s==null?void 0:s.data,...e.data};n.mechanism.data=i}}function Kr(t){if(qe(t))return!0;try{R(t,"__sentry_captured__",!0)}catch{}return!1}function qe(t){try{return t.__sentry_captured__}catch{}}const ee=1e3;function Et(){return Qt()/ee}function Ze(){const{performance:t}=_;if(!(t!=null&&t.now)||!t.timeOrigin)return Et;const e=t.timeOrigin;return()=>(e+B(()=>t.now()))/ee}let Mt;function q(){return(Mt??(Mt=Ze()))()}let ut=null;function Qe(){var o;const{performance:t}=_;if(!(t!=null&&t.now))return;const e=3e5,n=B(()=>t.now()),r=Qt(),s=t.timeOrigin;if(typeof s=="number"&&Math.abs(s+n-r)<e)return s;const i=(o=t.timing)==null?void 0:o.navigationStart;return typeof i=="number"&&Math.abs(i+n-r)<e?i:r-n}function Jr(){return ut===null&&(ut=Qe()),ut}function tn(t){const e=q(),n={sid:C(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>nn(n)};return t&&Z(n,t),n}function Z(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||q(),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:C()),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 en(t,e){let n={};t.status==="ok"&&(n={status:"exited"}),Z(t,n)}function nn(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 Q(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]=Q(r[s],e[s],n-1));return r}function v(){return C()}function tt(){return C().substring(16)}const pt="_sentrySpan";function kt(t,e){e?R(t,pt,e):delete t[pt]}function W(t){return t[pt]}const rn=100;class b{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:v(),sampleRand:x()}}clone(){const e=new b;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,kt(e,W(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&&Z(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}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 b?n.getScopeData():Xt(n)?e:void 0,{tags:s,attributes:i,extra:o,user:c,contexts:a,level:u,fingerprint:f=[],propagationContext:d}=r||{};return this._tags={...this._tags,...s},this._attributes={...this._attributes,...i},this._extra={...this._extra,...o},this._contexts={...this._contexts,...a},c&&Object.keys(c).length&&(this._user=c),u&&(this._level=u),f.length&&(this._fingerprint=f),d&&(this._propagationContext=d),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,kt(this,void 0),this._attachments=[],this.setPropagationContext({traceId:v(),sampleRand:x()}),this._notifyScopeListeners(),this}addBreadcrumb(e,n){var i;const r=typeof n=="number"?n:rn;if(r<=0)return this;const s={timestamp:Et(),...e,message:e.message?dt(e.message,2048):e.message};return this._breadcrumbs.push(s),this._breadcrumbs.length>r&&(this._breadcrumbs=this._breadcrumbs.slice(-r),(i=this._client)==null||i.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:W(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=Q(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,n){const r=(n==null?void 0:n.event_id)||C();if(!this._client)return y&&m.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==null?void 0:r.event_id)||C();if(!this._client)return y&&m.warn("No client configured on scope - will not capture message!"),s;const i=(r==null?void 0:r.syntheticException)??new Error(e);return this._client.captureMessage(e,n,{originalException:e,syntheticException:i,...r,event_id:s},this),s}captureEvent(e,n){const r=(n==null?void 0:n.event_id)||C();return this._client?(this._client.captureEvent(e,{...n,event_id:r},this),r):(y&&m.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEac
2h(e=>{e(this)}),this._notifyingListeners=!1)}}function sn(){return U("defaultCurrentScope",()=>new b)}function on(){return U("defaultIsolationScope",()=>new b)}class an{constructor(e,n){let r;e?r=e:r=new b;let s;n?s=n:s=new b,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 X(r)?r.then(s=>(this._popScope(),s),s=>{throw this._popScope(),s}):(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 k(){const t=$(),e=K(t);return e.stack=e.stack||new an(sn(),on())}function cn(t){return k().withScope(t)}function un(t,e){const n=k();return n.withScope(()=>(n.getStackTop().scope=t,e(t)))}function Lt(t){return k().withScope(()=>t(k().getIsolationScope()))}function fn(){return{withIsolationScope:Lt,withScope:cn,withSetScope:un,withSetIsolationScope:(t,e)=>Lt(e),getCurrentScope:()=>k().getScope(),getIsolationScope:()=>k().getIsolationScope()}}function et(t){const e=K(t);return e.acs?e.acs:fn()}function D(){const t=$();return et(t).getCurrentScope()}function G(){const t=$();return et(t).getIsolationScope()}function dn(){return U("globalScope",()=>new b)}function pn(...t){const e=$(),n=et(e);if(t.length===2){const[r,s]=t;return r?n.withSetScope(r,s):n.withScope(s)}return n.withScope(t[0])}function H(){return D().getClient()}function ln(t){const e=t.getPropagationContext(),{traceId:n,parentSpanId:r,propagationSpanId:s}=e,i={trace_id:n,span_id:s||tt()};return r&&(i.parent_span_id=r),i}const _n="sentry.source",gn="sentry.sample_rate",mn="sentry.previous_trace_sample_rate",hn="sentry.op",Sn="sentry.origin",Xr="sentry.idle_span_finish_reason",qr="sentry.measurement_unit",Zr="sentry.measurement_value",Qr="sentry.custom_span_name",ts="sentry.profile_id",es="sentry.exclusive_time",ns="sentry.link.type",yn=0,ne=1,S=2;function En(t){if(t<400&&t>=100)return{code:ne};if(t>=400&&t<500)switch(t){case 401:return{code:S,message:"unauthenticated"};case 403:return{code:S,message:"permission_denied"};case 404:return{code:S,message:"not_found"};case 409:return{code:S,message:"already_exists"};case 413:return{code:S,message:"failed_precondition"};case 429:return{code:S,message:"resource_exhausted"};case 499:return{code:S,message:"cancelled"};default:return{code:S,message:"invalid_argument"}}if(t>=500&&t<600)switch(t){case 501:return{code:S,message:"unimplemented"};case 503:return{code:S,message:"unavailable"};case 504:return{code:S,message:"deadline_exceeded"};default:return{code:S,message:"internal_error"}}return{code:S,message:"internal_error"}}function rs(t,e){t.setAttribute("http.response.status_code",e);const n=En(e);n.message!=="unknown_error"&&t.setStatus(n)}const re="_sentryScope",se="_sentryIsolationScope";function bn(t){try{const e=_.WeakRef;if(typeof e=="function")return new e(t)}catch{}return t}function Tn(t){if(t){if(typeof t=="object"&&"deref"in t&&typeof t.deref=="function")try{return t.deref()}catch{return}return t}}function ss(t,e,n){t&&(R(t,se,bn(n)),R(t,re,e))}function ie(t){const e=t;return{scope:e[re],isolationScope:Tn(e[se])}}const oe="sentry-",In=/^sentry-/,An=8192;function ae(t){const e=Nn(t);if(!e)return;const n=Object.entries(e).reduce((r,[s,i])=>{if(s.match(In)){const o=s.slice(oe.length);r[o]=i}return r},{});if(Object.keys(n).length>0)return n}function is(t){if(!t)return;const e=Object.entries(t).reduce((n,[r,s])=>(s&&(n[`${oe}${r}`]=s),n),{});return Cn(e)}function Nn(t){if(!(!t||!z(t)&&!Array.isArray(t)))return Array.isArray(t)?t.reduce((e,n)=>{const r=Pt(n);return Object.entries(r).forEach(([s,i])=>{e[s]=i}),e},{}):Pt(t)}function Pt(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(i=>{try{return decodeURIComponent(i.trim())}catch{return}})}).reduce((e,[n,r])=>(n&&r&&(e[n]=r),e),{})}function Cn(t){if(Object.keys(t).length!==0)return Object.entries(t).reduce((e,[n,r],s)=>{const i=`${encodeURIComponent(n)}=${encodeURIComponent(r)}`,o=s===0?i:`${e},${i}`;return o.length>An?(y&&m.warn(`Not adding key: ${n} with val: ${r} to baggage header due to exceeding baggage size limits.`),e):o},"")}const Rn=/^o(\d+)\./,xn=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function On(t){return t==="http"||t==="https"}function ce(t,e=!1){const{host:n,path:r,pass:s,port:i,projectId:o,protocol:c,publicKey:a}=t;return`${c}://${a}${e&&s?`:${s}`:""}@${n}${i?`:${i}`:""}/${r&&`${r}/`}${o}`}function Dn(t){const e=xn.exec(t);if(!e){J(()=>{console.error(`Invalid Sentry Dsn: ${t}`)});return}const[n,r,s="",i="",o="",c=""]=e.slice(1);let a="",u=c;const f=u.split("/");if(f.length>1&&(a=f.slice(0,-1).join("/"),u=f.pop()),u){const d=u.match(/^\d+/);
2d&&(u=d[0])}return ue({host:i,pass:s,path:a,projectId:u,port:o,protocol:n,publicKey:r})}function ue(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function Mn(t){if(!y)return!0;const{port:e,projectId:n,protocol:r}=t;return["protocol","publicKey","host","projectId"].find(o=>t[o]?!1:(m.error(`Invalid Sentry Dsn: ${o} missing`),!0))?!1:n.match(/^\d+$/)?On(r)?e&&isNaN(parseInt(e,10))?(m.error(`Invalid Sentry Dsn: Invalid port ${e}`),!1):!0:(m.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(m.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function kn(t){const e=t.match(Rn);return e==null?void 0:e[1]}function Ln(t){const e=t.getOptions(),{host:n}=t.getDsn()||{};let r;return e.orgId?r=String(e.orgId):n&&(r=kn(n)),r}function os(t){const e=typeof t=="string"?Dn(t):ue(t);if(!(!e||!Mn(e)))return e}function wt(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=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function wn(t){if(!t)return;const e=t.match(Pn);if(!e)return;let n;return e[3]==="1"?n=!0:e[3]==="0"&&(n=!1),{traceId:e[1],parentSampled:n,parentSpanId:e[2]}}function as(t,e){const n=wn(t),r=ae(e);if(!(n!=null&&n.traceId))return{traceId:v(),sampleRand:x()};const s=$n(n,r);r&&(r.sample_rand=s.toString());const{traceId:i,parentSpanId:o,parentSampled:c}=n;return{traceId:i,parentSpanId:o,sampled:c,dsc:r||{},sampleRand:s}}function vn(t=v(),e=tt(),n){let r="";return n!==void 0&&(r=n?"-1":"-0"),`${t}-${e}${r}`}function Fn(t=v(),e=tt(),n){return`00-${t}-${e}-${n?"01":"00"}`}function $n(t,e){const n=wt(e==null?void 0:e.sample_rand);if(n!==void 0)return n;const r=wt(e==null?void 0:e.sample_rate);return r&&(t==null?void 0:t.parentSampled)!==void 0?t.parentSampled?x()*r:r+x()*(1-r):x()}const cs=0,fe=1;let vt=!1;function us(t){const{spanId:e,traceId:n}=t.spanContext(),{data:r,op:s,parent_span_id:i,status:o,origin:c,links:a}=nt(t);return{parent_span_id:i,span_id:e,trace_id:n,data:r,op:s,status:o,origin:c,links:a}}function de(t){const{spanId:e,traceId:n,isRemote:r}=t.spanContext(),s=r?e:nt(t).parent_span_id,i=ie(t).scope,o=r?(i==null?void 0:i.getPropagationContext().propagationSpanId)||tt():e;return{parent_span_id:s,span_id:o,trace_id:n}}function fs(t){const{traceId:e,spanId:n}=t.spanContext(),r=rt(t);return vn(e,n,r)}function ds(t){const{traceId:e,spanId:n}=t.spanContext(),r=rt(t);return Fn(e,n,r)}function Un(t){if(t&&t.length>0)return t.map(({context:{spanId:e,traceId:n,traceFlags:r,...s},attributes:i})=>({span_id:e,trace_id:n,sampled:r===fe,attributes:i,...s}))}function Ft(t){return typeof t=="number"?$t(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?$t(t.getTime()):q()}function $t(t){return t>9999999999?t/1e3:t}function nt(t){var r;if(Bn(t))return t.getSpanJSON();const{spanId:e,traceId:n}=t.spanContext();if(jn(t)){const{attributes:s,startTime:i,name:o,endTime:c,status:a,links:u}=t,f="parentSpanId"in t?t.parentSpanId:"parentSpanContext"in t?(r=t.parentSpanContext)==null?void 0:r.spanId:void 0;return{span_id:e,trace_id:n,data:s,description:o,parent_span_id:f,start_timestamp:Ft(i),timestamp:Ft(c)||void 0,status:Gn(a),op:s[hn],origin:s[Sn],links:Un(u)}}return{span_id:e,trace_id:n,start_timestamp:0,data:{}}}function jn(t){const e=t;return!!e.attributes&&!!e.startTime&&!!e.name&&!!e.endTime&&!!e.status}function Bn(t){return typeof t.getSpanJSON=="function"}function rt(t){const{traceFlags:e}=t.spanContext();return e===fe}function Gn(t){if(!(!t||t.code===yn))return t.code===ne?"ok":t.message||"internal_error"}const O="_sentryChildSpans",lt="_sentryRootSpan";function ps(t,e){const n=t[lt]||t;R(e,lt,n),t[O]?t[O].add(e):R(t,O,new Set([e]))}function ls(t,e){t[O]&&t[O].delete(e)}function _s(t){const e=new Set;function n(r){if(!e.has(r)&&rt(r)){e.add(r);const s=r[O]?Array.from(r[O]):[];for(const i of s)n(i)}}return n(t),Array.from(e)}function pe(t){return t[lt]||t}function Hn(){const t=$(),e=et(t);return e.getActiveSpan?e.getActiveSpan():W(D())}function gs(){vt||(J(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),vt=!0)}function Vn(t){var n;if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const e=t||((n=H())==null?void 0:n.getOptions());return!!e&&(e.tracesSampleRate!=null||!!e.tracesSampler)}const le="production",_e="_frozenDsc";function ms(t,e){R(t,_e,e)}function ge(t,e){const n=e.getOptions(),{publicKey:r}=e.getDsn()||{},s={environment:n.environment||le,release:n.release,public_key:r,trace_id:t,org_id:Ln(e)};return e.emit("createDsc",s),s}function Yn(t,e){const n=e.getPropagationContext();return n.dsc||ge(n.traceId,t)}function me(t){var g;const e=H();if(!e)return{};const n=pe(t),r=nt(n),s=r.data,i=n.spanContext().traceState,o=(i==null?void 0:i.get("sentry.sample_rate"))??s[gn]??s[mn];
vendor: 4,399 bytes, lines 2-4
2function c(A){return(typeof o=="number"||typeof o=="string")&&(A.sample_rate=`${o}`),A}const a=n[_e];if(a)return c(a);const u=i==null?void 0:i.get("sentry.dsc"),f=u&&ae(u);if(f)return c(f);const d=ge(t.spanContext().traceId,e),l=s[_n],p=r.description;return l!=="url"&&p&&(d.transaction=p),Vn()&&(d.sampled=String(rt(n)),d.sample_rand=(i==null?void 0:i.get("sentry.sample_rand"))??((g=ie(n).scope)==null?void 0:g.getPropagationContext().sampleRand.toString())),c(d),e.emit("createDsc",d,n),d}function I(t,e=100,n=1/0){try{return _t("",t,e,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function zn(t,e=3,n=100*1024){const r=I(t,e);return Xn(r)>n?zn(t,e-1,n):r}function _t(t,e,n=1/0,r=1/0,s=qn()){const[i,o]=s;if(e==null||["boolean","string"].includes(typeof e)||typeof e=="number"&&Number.isFinite(e))return e;const c=Wn(t,e);if(!c.startsWith("[object "))return c;if(e.__sentry_skip_normalization__)return e;const a=typeof e.__sentry_override_normalization_depth__=="number"?e.__sentry_override_normalization_depth__:n;if(a===0)return c.replace("object ","");if(i(e))return"[Circular ~]";const u=e;if(u&&typeof u.toJSON=="function")try{const p=u.toJSON();return _t("",p,a-1,r,s)}catch{}const f=Array.isArray(e)?[]:{};let d=0;const l=Zt(e);for(const p in l){if(!Object.prototype.hasOwnProperty.call(l,p))continue;if(d>=r){f[p]="[MaxProperties ~]";break}const g=l[p];f[p]=_t(p,g,a-1,r,s),d++}return o(e),f}function Wn(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(qt(e))return Wt(e);if(Ge(e))return"[SyntheticEvent]";if(typeof e=="number"&&!Number.isFinite(e))return`[${e}]`;if(typeof e=="function")return`[Function: ${Fe(e)}]`;if(typeof e=="symbol")return`[${String(e)}]`;if(typeof e=="bigint")return`[BigInt: ${String(e)}]`;const n=Kn(e);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function Kn(t){const e=Object.getPrototypeOf(t);return e!=null&&e.constructor?e.constructor.name:"null prototype"}function Jn(t){return~-encodeURI(t).split(/%..|./).length}function Xn(t){return Jn(JSON.stringify(t))}function qn(){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 Zn(t,e=[]){return[t,e]}function hs(t,e){const[n,r]=t;return[n,[...r,e]]}function Ss(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 gt(t){const e=K(_);return e.encodePolyfill?e.encodePolyfill(t):new TextEncoder().encode(t)}function ys(t){const[e,n]=t;let r=JSON.stringify(e);function s(i){typeof r=="string"?r=typeof i=="string"?r+i:[gt(r),i]:r.push(typeof i=="string"?gt(i):i)}for(const i of n){const[o,c]=i;if(s(`
3${JSON.stringify(o)}
4`),typeof c=="string"||c instanceof Uint8Array)s(c);else{let a;try{a=JSON.stringify(c)}catch{a=JSON.stringify(I(c))}s(a)}}return typeof r=="string"?r:Qn(r)}function Qn(t){const e=t.reduce((s,i)=>s+i.length,0),n=new Uint8Array(e);let r=0;for(const s of t)n.set(s,r),r+=s.length;return n}function Es(t){return[{type:"span"},t]}function bs(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 tr={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 Ts(t){return tr[t]}function Is(t){if(!(t!=null&&t.sdk))return;const{name:e,version:n}=t.sdk;return{name:e,version:n}}function As(t,e,n,r){var i;const s=(i=t.sdkProcessingMetadata)==null?void 0:i.dynamicSamplingContext;return{event_id:t.event_id,sent_at:new Date().toISOString(),...e&&{sdk:e},...!!n&&r&&{dsn:ce(r)},...s&&{trace:s}}}const ft=0,Ut=1,jt=2;function er(t){return new F(e=>{e(t)})}function nr(t){return new F((e,n)=>{n(t)})}class F{constructor(e){this._state=ft,this._handlers=[],this._runExecutor(e)}then(e,n){return new F((r,s)=>{this._handlers.push([!1,i=>
4{if(!e)r(i);else try{r(e(i))}catch(o){s(o)}},i=>{if(!n)s(i);else try{r(n(i))}catch(o){s(o)}}]),this._executeHandlers()})}catch(e){return this.then(n=>n,e)}finally(e){return new F((n,r)=>{let s,i;return this.then(o=>{i=!1,s=o,e&&e()},o=>{i=!0,s=o,e&&e()}).then(()=>{if(i){r(s);return}n(s)})})}_executeHandlers(){if(this._state===ft)return;const e=this._handlers.slice();this._handlers=[],e.forEach(n=>{n[0]||(this._state===Ut&&n[1](this._value),this._state===jt&&n[2](this._value),n[0]=!0)})}_runExecutor(e){const n=(i,o)=>{if(this._state===ft){if(X(o)){o.then(r,s);return}this._state=i,this._value=o,this._executeHandlers()}},r=i=>{n(Ut,i)},s=i=>{n(jt,i)};try{e(r,s)}catch(i){s(i)}}}function rr(t,e,n,r=0){try{const s=mt(e,n,t,r);return X(s)?s:er(s)}catch(s){return nr(s)}}function mt(t,e,n,r){const s=n[r];if(!t||!s)return t;const i=s({...t},e);return y&&i===null&&m.log(`Event processor "${s.id||"?"}" dropped event`),X(i)?i.then(o=>mt(o,e,n,r+1)):mt(i,e,n,r+1)}let T,Bt,Gt,N;function sr(t){const e=_._sentryDebugIds,n=_._debugIds;if(!e&&!n)return{};const r=e?Object.keys(e):[],s=n?Object.keys(n):[];if(N&&r.length===Bt&&s.length===Gt)return N;Bt=r.length,Gt=s.length,N={},T||(T={});const i=(o,c)=>{for(const a of o){const u=c[a],f=T==null?void 0:T[a];if(f&&N&&u)N[f[0]]=u,T&&(T[a]=[f[0],u]);else if(u){const d=t(a);for(let l=d.length-1;l>=0;l--){const p=d[l],g=p==null?void 0:p.filename;if(g&&N&&T){N[g]=u,T[a]=[g,u];break}}}}};return e&&i(r,e),n&&i(s,n),N}function ir(t,e){const{fingerprint:n,span:r,breadcrumbs:s,sdkProcessingMetadata:i}=e;or(t,e),r&&ur(t,r),fr(t,n),ar(t,s),cr(t,i)}function Ht(t,e){const{extra:n,tags:r,attributes:s,user:i,contexts:o,level:c,sdkProcessingMetadata:a,breadcrumbs:u,fingerprint:f,eventProcessors:d,attachments:l,propagationContext:p,transactionName:g,span:A}=e;P(t,"extra",n),P(t,"tags",r),P(t,"attributes",s),P(t,"user",i),P(t,"contexts",o),t.sdkProcessingMetadata=Q(t.sdkProcessingMetadata,a,2),c&&(t.level=c),g&&(t.transactionName=g),A&&(t.span=A),u.length&&(t.breadcrumbs=[...t.breadcrumbs,...u]),f.length&&(t.fingerprint=[...t.fingerprint,...f]),d.length&&(t.eventProcessors=[...t.eventProcessors,...d]),l.length&&(t.attachments=[...t.attachments,...l]),t.propagationContext={...t.propagationContext,...p}}function P(t,e,n){t[e]=Q(t[e],n,1)}function he(t,e){const n=dn().getScopeData();return t&&Ht(n,t.getScopeData()),e&&Ht(n,e.getScopeData()),n}function or(t,e){const{extra:n,tags:r,user:s,contexts:i,level:o,transactionName:c}=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(i).length&&(t.contexts={...i,...t.contexts}),o&&(t.level=o),c&&t.type!=="transaction"&&(t.transaction=c)}function ar(t,e){const n=[...t.breadcrumbs||[],...e];t.breadcrumbs=n.length?n:void 0}function cr(t,e){t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...e}}function ur(t,e){t.contexts={trace:de(e),...t.contexts},t.sdkProcessingMetadata={dynamicSamplingContext:me(e),...t.sdkProcessingMetadata};const n=pe(e),r=nt(n).description;r&&!t.transaction&&t.type==="transaction"&&(t.transaction=r)}function fr(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}function Ns(t,e,n,r,s,i){const{normalizeDepth:o=3,normalizeMaxBreadth:c=1e3}=t,a={...e,event_id:e.event_id||n.event_id||C(),timestamp:e.timestamp||Et()},u=n.integrations||t.integrations.map(h=>h.name);dr(a,t),_r(a,u),s&&s.emit("applyFrameMetadata",e),e.type===void 0&&pr(a,t.stackParser);const f=mr(r,n.captureContext);n.mechanism&&Xe(a,n.mechanism);const d=s?s.getEventProcessors():[],l=he(i,f),p=[...n.attachments||[],...l.attachments];p.length&&(n.attachments=p),ir(a,l);const g=[...d,...l.eventProcessors];return rr(g,a,n).then(h=>(h&&lr(h),typeof o=="number"&&o>0?gr(h,o,c):h))}function dr(t,e){var c,a;const{environment:n,release:r,dist:s,maxValueLength:i}=e;t.environment=t.environment||n||le,!t.release&&r&&(t.release=r),!t.dist&&s&&(t.dist=s);const o=t.request;
4o!=null&&o.url&&i&&(o.url=dt(o.url,i)),i&&((a=(c=t.exception)==null?void 0:c.values)==null||a.forEach(u=>{u.value&&(u.value=dt(u.value,i))}))}function pr(t,e){var r,s;const n=sr(e);(s=(r=t.exception)==null?void 0:r.values)==null||s.forEach(i=>{var o,c;(c=(o=i.stacktrace)==null?void 0:o.frames)==null||c.forEach(a=>{a.filename&&(a.debug_id=n[a.filename])})})}function lr(t){var r,s;const e={};if((s=(r=t.exception)==null?void 0:r.values)==null||s.forEach(i=>{var o,c;(c=(o=i.stacktrace)==null?void 0:o.frames)==null||c.forEach(a=>{a.debug_id&&(a.abs_path?e[a.abs_path]=a.debug_id:a.filename&&(e[a.filename]=a.debug_id),delete a.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(([i,o])=>{n.push({type:"sourcemap",code_file:i,debug_id:o})})}function _r(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}function gr(t,e,n){var s,i;if(!t)return null;const r={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(o=>({...o,...o.data&&{data:I(o.data,e,n)}}))},...t.user&&{user:I(t.user,e,n)},...t.contexts&&{contexts:I(t.contexts,e,n)},...t.extra&&{extra:I(t.extra,e,n)}};return(s=t.contexts)!=null&&s.trace&&r.contexts&&(r.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(r.contexts.trace.data=I(t.contexts.trace.data,e,n))),t.spans&&(r.spans=t.spans.map(o=>({...o,...o.data&&{data:I(o.data,e,n)}}))),(i=t.contexts)!=null&&i.flags&&r.contexts&&(r.contexts.flags=I(t.contexts.flags,3,n)),r}function mr(t,e){if(!e)return t;const n=t?t.clone():new b;return n.update(e),n}function hr(t){if(t)return Sr(t)?{captureContext:t}:Er(t)?{captureContext:t}:t}function Sr(t){return t instanceof b||typeof t=="function"}const yr=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function Er(t){return Object.keys(t).some(e=>yr.includes(e))}function Cs(t,e){return D().captureException(t,hr(e))}function Rs(t,e){return D().captureEvent(t,e)}function xs(t,e){G().setContext(t,e)}function Os(){const t=H();return(t==null?void 0:t.getOptions().enabled)!==!1&&!!(t!=null&&t.getTransport())}function Ds(t){const e=G(),n=D(),{userAgent:r}=_.navigator||{},s=tn({user:n.getUser()||e.getUser(),...r&&{userAgent:r},...t}),i=e.getSession();return(i==null?void 0:i.status)==="ok"&&Z(i,{status:"exited"}),Se(),e.setSession(s),s}function Se(){const t=G(),n=D().getSession()||t.getSession();n&&en(n),ye(),t.setSession()}function ye(){const t=G(),e=H(),n=t.getSession();n&&e&&e.captureSession(n)}function Ms(t=!1){if(t){Se();return}ye()}function br(t){return typeof t=="object"&&t!=null&&!Array.isArray(t)&&Object.keys(t).includes("value")}function Tr(t,e){const{value:n,unit:r}=br(t)?t:{value:t,unit:void 0},s=Ir(n),i=r&&typeof r=="string"?{unit:r}:{};if(s)return{...s,...i};if(!e||e==="skip-undefined"&&n===void 0)return;let o="";try{o=JSON.stringify(n)??""}catch{}return{value:o,type:"string",...i}}function Vt(t,e=!1){const n={};for(const[r,s]of Object.entries(t??{})){const i=Tr(s,e);i&&(n[r]=i)}return n}function Ir(t){const e=typeof t=="string"?"string":typeof t=="boolean"?"boolean":typeof t=="number"&&!Number.isNaN(t)?Number.isInteger(t)?"integer":"double":null;if(e)return{value:t,type:e}}function Ar(t,e){return e?pn(e,()=>{const n=Hn(),r=n?de(n):ln(e);return[n?me(n):Yn(t,e),r]}):[void 0,void 0]}const Nr={trace:1,debug:5,info:9,warn:13,error:17,fatal:21};function Cr(t){return[{type:"log",item_count:t.length,content_type:"application/vnd.sentry.items.log+json"},{items:t}]}function Rr(t,e,n,r){const s={};return e!=null&&e.sdk&&(s.sdk={name:e.sdk.name,version:e.sdk.version}),n&&r&&(s.dsn=ce(r)),Zn(s,[Cr(t)])}const xr=100;function E(t,e,n,r=!0){n&&(!t[e]||r)&&(t[e]=n)}function Or(t,e){const n=bt(),r=Ee(t);r===void 0?n.set(t,[e]):r.length>=xr?(Dr(t,r),n.set(t,[e])):n.set(t,[...r,e])}function ks(t,e=D(),n=Or){var Nt;const r=(e==null?void 0:e.getClient())??H();if(!r){y&&m.warn("No client available to capture log.");return}const{release:s,environment:i,enableLogs:o=!1,beforeSendLog:c}=r.getOptions();if(!o){y&&m.warn("logging option not enabled, log will not be captured.");return}const[,a]=Ar(r,e),u={...t.attributes},{user:{id:f,email:d,username:l},attributes:p={}}=he(G(),e);E(u,"user.id",f,!1),E(u,"user.email",d,!1),E(u,"user.name",l,!1),E(u,"sentry.release",s),E(u,"sentry.environment",i);const{name:g,version:A}
4=((Nt=r.getSdkMetadata())==null?void 0:Nt.sdk)??{};E(u,"sentry.sdk.name",g),E(u,"sentry.sdk.version",A);const h=r.getIntegrationByName("Replay"),Tt=h==null?void 0:h.getReplayId(!0);E(u,"sentry.replay_id",Tt),Tt&&(h==null?void 0:h.getRecordingMode())==="buffer"&&E(u,"sentry._internal.replay_is_buffering",!0);const It=t.message;if(Jt(It)){const{__sentry_template_string__:Ne,__sentry_template_values__:V=[]}=It;V!=null&&V.length&&(u["sentry.message.template"]=Ne),V.forEach((Ce,Re)=>{u[`sentry.message.parameter.${Re}`]=Ce})}const st=W(e);E(u,"sentry.trace.parent_span_id",st==null?void 0:st.spanContext().spanId);const it={...t,attributes:u};r.emit("beforeCaptureLog",it);const ot=c?J(()=>c(it)):it;if(!ot){r.recordDroppedEvent("before_send","log_item",1),y&&m.warn("beforeSendLog returned null, log will not be captured.");return}const{level:At,message:be,attributes:Te={},severityNumber:Ie}=ot,Ae={timestamp:q(),level:At,body:be,trace_id:a==null?void 0:a.trace_id,severity_number:Ie??Nr[At],attributes:{...Vt(p),...Vt(Te,!0)}};n(r,Ae),r.emit("afterCaptureLog",ot)}function Dr(t,e){const n=e??Ee(t)??[];if(n.length===0)return;const r=t.getOptions(),s=Rr(n,r._metadata,r.tunnel,t.getDsn());bt().set(t,[]),t.emit("flushLogs"),t.sendEnvelope(s)}function Ee(t){return bt().get(t)}function bt(){return U("clientToLogBufferMap",()=>new WeakMap)}export{vr as $,Xt as A,gs as B,Q as C,y as D,Jt as E,Fr as F,le as G,wt as H,J as I,w as J,H as K,Gr as L,zr as M,Yr as N,j as O,_ as P,Mr as Q,Br as R,ts as S,Ct as T,Lr as U,Hn as V,nt as W,Xe as X,Pr as Y,wr as Z,Dr as _,Zn as a,Fn as a$,Wr as a0,$e as a1,Ue as a2,zn as a3,Hr as a4,R as a5,we as a6,Pe as a7,Ve as a8,jr as a9,Ft as aA,_n as aB,Gn as aC,Un as aD,ie as aE,_s as aF,Qr as aG,us as aH,Vn as aI,pn as aJ,ms as aK,ps as aL,ss as aM,$ as aN,et as aO,gn as aP,W as aQ,kt as aR,Xr as aS,ne as aT,ls as aU,Os as aV,fs as aW,is as aX,Pn as aY,ds as aZ,vn as a_,Vr as aa,Fe as ab,Ds as ac,Ms as ad,Rs as ae,Ur as af,z as ag,kr as ah,xs as ai,pe as aj,S as ak,We as al,v as am,tt as an,cs as ao,me as ap,Is as aq,As as ar,Es as as,rt as at,Zr as au,qr as av,q as aw,Sn as ax,hn as ay,fe as az,ce as b,$r as b0,rs as b1,oe as b2,ze as b3,Jr as b4,mn as b5,ns as b6,as as b7,ks as b8,Cs as c,m as d,er as e,Ss as f,U as g,Ts as h,ys as i,Et as j,es as k,Kr as l,os as m,Z as n,hs as o,bs as p,Ns as q,nr as r,Qt as s,ln as t,C as u,Yn as v,D as w,G as x,x as y,X as z};

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.