PageSourceSearch

https://ivry.jp/_v/1.268.0/_next/static/chunks/2-jcx6cg7q703.js

js ivry.jp collected 2026-09-24 09:13:42 UTC 161,683 bytes, 21 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="0c638b20-5696-890e-9ff3-8715301b6097")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,912953,e=>{"use strict";let t,n,r,i,a,s,o,l,u,c,p,d,f,h,m,g,_,y,v,b,S;var E=e.i(856792);let x="10.75.0",w=globalThis;function T(){return k(w),w}function k(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||x,t[x]=t[x]||{}}function I(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:w,r=n.__SENTRY__=n.__SENTRY__||{},i=r[x]=r[x]||{};return i[e]||(i[e]=t())}let A="u"<typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,$=["debug","info","warn","error","log","assert","trace"],O={};function R(e){if(!("console"in w))return e();let t=w.console,n={},r=Object.keys(O);r.forEach(e=>{let r=O[e];n[e]=t[e],t[e]=r});try{return e()}finally{r.forEach(e=>{t[e]=n[e]})}}function C(){return N().enabled}function P(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];A&&C()&&R(()=>{w.console[e](`Sentry Logger [${e}]:`,...n)})}function N(){return A?I("loggerSettings",()=>({enabled:!1})):{enabled:!1}}let D=function(){N().enabled=!0},L=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];P("log",...t)},M=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];P("warn",...t)},j=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];P("error",...t)},q=Object.prototype.toString;function U(e){switch(q.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return K(e,Error)}}function B(e,t){return q.call(e)===`[object ${t}]`}function F(e){return B(e,"ErrorEvent")}function W(e){return B(e,"DOMError")}function z(e){return B(e,"String")}function H(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function Y(e){return null===e||H(e)||"object"!=typeof e&&"function"!=typeof e}function G(e){return B(e,"Object")}function J(e){return"object"==typeof e&&null!==e}function X(e){return"u">typeof Event&&K(e,Event)}function Q(e){return!!(e?.then&&"function"==typeof e.then)}function K(e,t){try{return e instanceof t}catch{return!1}}function V(e){return"u">typeof Request&&K(e,Request)}function Z(e,t,n){if(!(t in e))return;let r=e[t];if("function"!=typeof r)return;let i=n(r);"function"==typeof i&&et(i,r);try{e[t]=i}catch{A&&L(`Failed to replace method "${t}" in object`,e)}}function ee(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{A&&L(`Failed to add non-enumerable property "${String(t)}" to object`,e)}}function et(e,t){try{let n=t.prototype||{};e.prototype=t.prototype=n,ee(e,"__sentry_original__",t)}catch{}}function en(e){return e.__sentry_original__}function er(e){if(U(e))return{message:e.message,name:e.name,stack:e.stack,...ei(e)};if(X(e)){let{type:t,target:n,currentTarget:r,detail:i}=e;return{type:t,target:n,currentTarget:r,...i?{detail:i}:{},...ei(e)}}return e}function ei(e){return J(e)?Object.fromEntries(Object.entries(e)):{}}function ea(e){if(void 0!==t)return t?t(e):e();let n=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__");return n in w&&"function"==typeof w[n]?(t=w[n])(e):(t=null,e())}function es(){return ea(()=>Math.random())}function eo(){return ea(()=>Date.now())}let el=Symbol.for("sentry.skipNormalization"),eu=Symbol.for("sentry.overrideNormalizationDepth"),ec=/\(error: (.*)\)/,ep=/captureMessage|captureException/;function ed(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let r=t.sort((e,t)=>e[0]-t[0]).map(e=>e[1]);return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=[],a=e.split("\n");for(let e=t;e<a.length;e++){let t=a[e];t.length>1024&&(t=t.slice(0,1024));let s=ec.test(t)?t.replace(ec,"$1"):t;if(!s.includes("Error: ")){for(let e of r){let t=e(s);if(t){i.push(t);break}}if(i.length>=50+n)break}}var s=i.slice(n);if(!s.length)return[];let o=Array.from(s);return/sentryWrapped/.test(ef(o).function||"")&&o.pop(),o.reverse(),ep.test(ef(o).function||"")&&(o.pop(),ep.test(ef(o).function||"")&&o.pop()),o.slice(0,50).map(e=>({...e,filename:e.filename||ef(o).filename,function:e.function||"?"}))}}function ef(e){return e[e.length-1]||{}}let eh="<anonymous>";function em(e){try{if(!e||"function"!=typeof e)return eh;return e.name||eh}catch{return eh}}function eg(e){let t=e.exception;if(t){let e=[];
2try{return t.values.forEach(t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)}),e}catch{}}}function e_(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0;try{return function e(t,n){let r,i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1/0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:(r=new WeakSet,[function(e){return!!r.has(e)||(r.add(e),!1)},function(e){r.delete(e)}]),[l,u]=o;if(null==n||["boolean","string"].includes(typeof n)||"number"==typeof n&&Number.isFinite(n))return n;let c=ey(t,n);if(!c.startsWith("[object "))return c;if(n[el])return n;let p=(i=n[eu],"number"==typeof i?i:void 0),d=void 0!==p?p:a;if(0===d)return c.replace("object ","");if(l(n))return"[Circular ~]";if(n&&"function"==typeof n.toJSON)try{let t=n.toJSON();return e("",t,d-1,s,o)}catch{}let f=Array.isArray(n)?[]:{},h=0,m=er(n);for(let t in m){if(!Object.prototype.hasOwnProperty.call(m,t))continue;if(h>=s){f[t]="[MaxProperties ~]";break}let n=m[t];f[t]=e(t,n,d-1,s,o),h++}return u(n),f}("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function ey(t,r){try{var i;let t;if(n){let e=n(r);if(e)return e}if(r===e.g)return"[Global]";if("number"==typeof r&&!Number.isFinite(r))return`[${r}]`;if("function"==typeof r)return`[Function: ${em(r)}]`;if("symbol"==typeof r)return`[${String(r)}]`;if("bigint"==typeof r)return`[BigInt: ${String(r)}]`;let a=(i=r,t=Object.getPrototypeOf(i),t?.constructor?t.constructor.name:"null prototype");return`[object ${a}]`}catch(e){return`**non-serializable** (${e})`}}function ev(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function eb(e,t){if(!Array.isArray(e))return"";let n=[];for(let t=0;t<e.length;t++){let r=e[t];Y(r)?n.push(String(r)):r instanceof Error?n.push(r.message?`${r.name}: ${r.message}`:r.name):n.push(ey(void 0,r))}return n.join(t)}function eS(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return!!z(e)&&(B(t,"RegExp")?t.test(e):z(t)?n?e===t:e.includes(t):"function"==typeof t&&t(e))}function eE(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];for(let r of t)if(eS(e,r,n))return!0;return!1}function ex(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:w.crypto||w.msCrypto;try{if(e?.randomUUID)return ea(()=>e.randomUUID()).replace(/-/g,"")}catch{}return r||(r="10000000100040008000100000000000"),r.replace(/[018]/g,e=>(e^(15&16*es())>>e/4).toString(16))}function ew(e){return e.exception?.values?.[0]}function eT(e){let{message:t,event_id:n}=e;if(t)return t;let r=ew(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function ek(e,t,n){let r=e.exception=e.exception||{},i=r.values=r.values||[],a=i[0]=i[0]||{};a.value||(a.value=t||""),a.type||(a.type=n||"Error")}function eI(e,t){let n=ew(e);if(!n)return;let r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){let e={...r?.data,...t.data};n.mechanism.data=e}}function eA(e){if(function(e){try{return e.__sentry_captured__}catch{}}(e))return!0;try{ee(e,"__sentry_captured__",!0)}catch{}return!1}function e$(){return eo()/1e3}function eO(){return(i??(i=function(){let{performance:e}=w;if(!e?.now||!e.timeOrigin)return e$;let t=e.timeOrigin;return()=>(t+ea(()=>e.now()))/1e3}()))()}let eR=null;function eC(){return null===eR&&(eR=function(){let{performance:e}=w;if(!e?.now)return;let t=ea(()=>e.now()),n=eo(),r=e.timeOrigin;if("number"==typeof r&&3e5>Math.abs(r+t-n))return r;let i=e.timing?.navigationStart;return"number"==typeof i&&3e5>Math.abs(i+t-n)?i:n-t}()),eR}function eP(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||eO(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:ex()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{let t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function eN(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2;if(!t||"object"!=typeof t||n<=0)return t;if(e&&0===Object.keys(t).length)return e;let r={...e};for(let e in t)Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=eN(r[e],t[e],n-1));return r}function eD(){return ex().substring(16)}function eL(e){try{let t=w.WeakRef;if("function"==typeof t)return new t(e)}catch{}return e}function eM(e){if(e){if("object"==typeof e&&"deref"in e&&"function"==typeof e.deref)try{return e.deref()}catch{return}return e}}let ej="_sentrySpan";function eq(e,t){t?ee(e,ej,eL(t)):delete e[ej]}class eU{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:ex(),sampleRand:es()}}clone(){let e=new eU;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,eq(e,eM(this[ej])),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&&eP(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,t){return this.setTags({[e]:t})}setAttributes(e){return this._attributes={...this._attributes,...e},this._notifyScopeListeners(),this}setAttribute(e,t){return this.setAttributes({[e]:t})}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,t){return this._extra={...this._extra,[e]:t},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,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,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;let t="function"==typeof e?e(this):e,{tags:n,attributes:r,extra:i,user:a,contexts:s,level:o,fingerprint:l=[],propagationContext:u,conversationId:c}=(t instanceof eU?t.getScopeData():G(t)?e:void 0)||{};return this._tags={...this._tags,...n},this._attributes={...this._attributes,...r},this._extra={...this._extra,...i},this._contexts={...this._contexts,...s},a&&Object.keys(a).length&&(this._user=a),o&&(this._level=o),l.length&&(this._fingerprint=l),u&&(this._propagationContext=u),c&&(this._conversationId=c),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,eq(this,void 0),this._attachments=[],this.setPropagationContext({traceId:ex(),sampleRand:es()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){let n="number"==typeof t?t:100;if(n<=0)return this;let r={timestamp:e$(),...e,message:e.message?ev(e.message,2048):e.message};return this._breadcrumbs.push(r),this._breadcrumbs.length>n&&(this._breadcrumbs=this._breadcrumbs.slice(-n),this._client?.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(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:eM(this[ej]),conversationId:this._conversationId}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=eN(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){let n=t?.event_id||ex();if(!this._client)return A&&M("No client configured on scope - will not capture exception!"),n;let r=Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){let r=n?.event_id||ex();if(!this._client)return A&&M("No client configured on scope - will not capture message!"),r;let i=n?.syntheticException??Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:r},this),r}captureEvent(e,t){let n=e.event_id||t?.event_id||ex();return this._client?this._client.captureEvent(e,{...t,event_id:n},this):A&&M("No client configured on scope - will not capture event!"),n}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEac
2h(e=>{e(this)}),this._notifyingListeners=!1)}}let eB=e=>e instanceof Promise&&!e[eF],eF=Symbol("chained PromiseLike");class eW{constructor(e,t){let n,r;n=e||new eU,r=t||new eU,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){let t,n=this._pushScope();try{t=e(n)}catch(e){throw this._popScope(),e}if(Q(t)){var r,i,a;let e;return r=t,i=()=>this._popScope(),a=()=>this._popScope(),eB(e=r.then(e=>(i(),e),e=>{throw a(),e}))&&eB(r)?e:((e,t)=>{if(!t)return e;let n=!1;for(let r in e){if(r in t)continue;n=!0;let i=e[r];"function"==typeof i?Object.defineProperty(t,r,{value:function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return i.apply(e,n)},enumerable:!0,configurable:!0,writable:!0}):t[r]=i}return n&&Object.assign(t,{[eF]:!0}),t})(r,e)}return this._popScope(),t}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){let e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function ez(){let e=k(T());return e.stack=e.stack||new eW(I("defaultCurrentScope",()=>new eU),I("defaultIsolationScope",()=>new eU))}function eH(e){return ez().withScope(e)}function eY(e,t){let n=ez();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function eG(e){return ez().withScope(()=>e(ez().getIsolationScope()))}function eJ(e){let t=k(e);return t.acs?t.acs:{withIsolationScope:eG,withScope:eH,withSetScope:eY,withSetIsolationScope:(e,t)=>eG(t),getCurrentScope:()=>ez().getScope(),getIsolationScope:()=>ez().getIsolationScope()}}function eX(){return eJ(T()).getCurrentScope()}function eQ(){return eJ(T()).getIsolationScope()}function eK(){return I("globalScope",()=>new eU)}function eV(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let r=eJ(T());if(2===t.length){let[e,n]=t;return e?r.withSetScope(e,n):r.withScope(n)}return r.withScope(t[0])}function eZ(){return eX().getClient()}let e0="production";function e1(e){return new e3(t=>{t(e)})}function e2(e){return new e3((t,n)=>{n(e)})}class e3{constructor(e){this._state=0,this._handlers=[],this._runExecutor(e)}then(e,t){return new e3((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){r(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){r(e)}else r(e)}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(e){return new e3((t,n)=>{let r,i;return this.then(t=>{i=!1,r=t,e&&e()},t=>{i=!0,r=t,e&&e()}).then(()=>{i?n(r):t(r)})})}_executeHandlers(){if(0===this._state)return;let e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||(1===this._state&&e[1](this._value),2===this._state&&e[2](this._value),e[0]=!0)})}_runExecutor(e){let t=(e,t)=>{if(0===this._state){if(Q(t))return void t.then(n,r);this._state=e,this._value=t,this._executeHandlers()}},n=e=>{t(1,e)},r=e=>{t(2,e)};try{e(n,r)}catch(e){r(e)}}}let e4="sentry.source",e5="sentry.sample_rate",e9="sentry.previous_trace_sample_rate",e6="sentry.op",e8="sentry.origin",e7="sentry.idle_span_finish_reason",te="sentry.measurement_unit",tt="sentry.measurement_value",tn="sentry.custom_span_name",tr="sentry.profile_id",ti="sentry.exclusive_time",ta="sentry-";function ts(e){let t=to(e);if(!t)return;let n=Object.entries(t).reduce((e,t)=>{let[n,r]=t;return n.startsWith(ta)&&(e[n.slice(ta.length)]=r),e},{});return Object.keys(n).length>0?n:void 0}function to(e){if(e&&(z(e)||Array.isArray(e)))return Array.isArray(e)?e.reduce((e,t)=>(Object.entries(tl(t)).forEach(t=>{let[n,r]=t;e[n]=r}),e),{}):tl(e)}function tl(e){return e.split(",").map(e=>{let t=e.indexOf("=");return -1===t?[]:[e.slice(0,t),e.slice(t+1)].map(e=>{try{return decodeURIComponent(e.trim())}catch{return}})}).reduce((e,t)=>{let[n,r]=t;return n&&r&&(e[n]=r),e},{})}let tu=/^o(\d+)\./,tc=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function tp(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],{host:n,path:r,pass:i,port:a,projectId:s,protocol:o,publicKey:l}=e;return`${o}://${l}${t&&i?`:${i}`:""}@${n}${a?`:${a}`:""}/${r?`${r}/`:r}${s}`}function td(e){let t=tc.exec(e);if(!t)return void R(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});let[n,r,i="",a="",s="",o=""]=t.slice(1),l="",u=o,c=u.split("/");if(c.length>1&&(l=c.slice(0,-1).join("/"),u=c.pop()),u){let e=u.match(/^\d+/);e&&(u=e[0])}return tf({host:a,pass:i,path:l,projectId:u,port:s,protocol:n,publicKey:r})}function tf(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function th(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;let t=e||eZ()?.getOptions();return!!t&&(null!=t.tracesSampleRate||!!t.tracesSampler)}function tm(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n={};for(let[r,i]of Object.entries(e??{})){let e=function(e,t){let{value:n,unit:r}="object"==typeof e&&null!=e&&!Array.isArray(e)&&Object.keys(e).includes("value")?e:{value:e,unit:void 0},i=function(e){if(Array.isArray(e))return{value:e,type:"array"};let t="string"==typeof e?"string":"boolean"==typeof e?"boolean":"number"!=typeof e||Number.isNaN(e)?null:Number.isInteger(e)?"integer":"double";if(t)return{value:e,type:t}}(n),a=r&&"string"==typeof r?{unit:r}:{};if(i)return{...i,...a};
2if(!t||"skip-undefined"===t&&void 0===n)return;let s="";try{s=JSON.stringify(n)??""}catch{}return{value:s,type:"string",...a}}(i,t);e&&(n[r]=e)}return n}function tg(e,t){e.setAttribute("http.response.status_code",t);let n=function(e){if(e<400&&e>=100)return{code:1};if(e>=400&&e<500)switch(e){case 401:return{code:2,message:"unauthenticated"};case 403:return{code:2,message:"permission_denied"};case 404:return{code:2,message:"not_found"};case 409:return{code:2,message:"already_exists"};case 413:return{code:2,message:"failed_precondition"};case 429:return{code:2,message:"resource_exhausted"};case 499:return{code:2,message:"cancelled"};default:return{code:2,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:2,message:"unimplemented"};case 503:return{code:2,message:"unavailable"};case 504:return{code:2,message:"deadline_exceeded"}}return{code:2,message:"internal_error"}}(t);"unknown_error"!==n.message&&e.setStatus(n)}let t_="_sentryScope",ty="_sentryIsolationScope",tv=Symbol.for("sentry.otelSourceInference"),tb=Symbol.for("sentry.otelSourceExplicitlySet"),tS=Symbol.for("sentry.tracerProviderSpan");function tE(e,t,n){e&&(ee(e,ty,eL(n)),ee(e,t_,t))}function tx(e){return{scope:e[t_],isolationScope:eM(e[ty])}}function tw(e){if("boolean"==typeof e)return Number(e);let t="string"==typeof e?parseFloat(e):e;if(!("number"!=typeof t||isNaN(t))&&!(t<0)&&!(t>1))return t}let tT=RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function tk(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ex(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:eD(),n=arguments.length>2?arguments[2]:void 0,r="";return void 0!==n&&(r=n?"-1":"-0"),`${e}-${t}${r}`}function tI(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ex(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:eD(),n=arguments.length>2?arguments[2]:void 0;return`00-${e}-${t}-${n?"01":"00"}`}let tA=!1;function t$(e){return e&&e.length>0?e.map(e=>{let{context:{spanId:t,traceId:n,traceFlags:r,...i},attributes:a}=e;return{span_id:t,trace_id:n,sampled:1===r,attributes:a,...i}}):void 0}function tO(e){return e?.length?e.map(e=>{let{context:{spanId:t,traceId:n,traceFlags:r},attributes:i}=e;return{span_id:t,trace_id:n,sampled:1===r,attributes:i}}):void 0}function tR(e){return"number"==typeof e?tC(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?tC(e.getTime()):eO()}function tC(e){return e>0x2540be3ff?e/1e3:e}function tP(e){if(tM(e))return e.getSpanJSON();let{spanId:t,traceId:n}=e.spanContext();if(tL(e)){let{attributes:r,startTime:i,name:a,endTime:s,status:o,links:l}=e;return{span_id:t,trace_id:n,data:r,description:a,parent_span_id:tD(e),start_timestamp:tR(i),timestamp:tR(s)||void 0,status:tq(o),op:r[e6],origin:r[e8],links:t$(l)}}return{span_id:t,trace_id:n,start_timestamp:0,data:{}}}function tN(e){if(tM(e))return e.getStreamedSpanJSON();let{spanId:t,traceId:n}=e.spanContext();if(tL(e)){let{attributes:r,startTime:i,name:a,endTime:s,status:o,links:l}=e;return{name:a,span_id:t,trace_id:n,parent_span_id:tD(e),start_timestamp:tR(i),end_timestamp:tR(s),is_segment:e===tG(e),status:tU(o),attributes:tB(r,o),links:tO(l)}}return{span_id:t,trace_id:n,start_timestamp:0,name:"",end_timestamp:0,status:"ok",is_segment:e===tG(e)}}function tD(e){return"parentSpanId"in e?e.parentSpanId:"parentSpanContext"in e?e.parentSpanContext?.spanId:void 0}function tL(e){return!!e.attributes&&!!e.startTime&&!!e.name&&!!e.endTime&&!!e.status}function tM(e){return"function"==typeof e.getSpanJSON}function tj(e){let{traceFlags:t}=e.spanContext();return 1===t}function tq(e){if(e&&0!==e.code)return 1===e.code?"ok":e.message||"internal_error"}function tU(e){return e&&1!==e.code&&0!==e.code&&"cancelled"!==e.message?"error":"ok"}function tB(e,t){let n="error"===tU(t)?t?.message:void 0;return{...n&&{"sentry.status.message":n},...e}}let tF="_sentryChildSpans",tW="_sentryRootSpan";function tz(e,t){let n=e[tW]||e;ee(t,tW,n),!tj(e)||(e.isRecording()||n.isRecording())&&(e[tF]?e[tF].add(t):ee(e,tF,new Set([t])))}function tH(e){let t=new Set;return!function e(n){if(!t.has(n)&&tj(n))for(let r of(t.add(n),n[tF]?Array.from(n[tF]):[]))e(r)}(e),Array.from(t)}let tY=tG;function tG(e){return e[tW]||e}function tJ(){let e=eJ(T());return e.getActiveSpan?e.getActiveSpan():eM(eX()[ej])}function tX(){tA||(R(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),tA=!0)}let tQ=Symbol.for("sentry.nonRecordingSpan");class tK{constructor(e={}){this._traceId=e.traceId||ex(),this._spanId=e.spanId||eD(),this.dropReason=e.dropReason,ee(this,tQ,!0)}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:0}}end(e){}setAttribute(e,t){return this}setAttributes(e){return this}setStatus(e){return this}updateName(e){return this}isRecording(){return!1}
2addEvent(e,t,n){return this}addLink(e){return this}addLinks(e){return this}recordException(e,t){}}function tV(e){return!!e&&!0===e[tQ]}let tZ="_frozenDsc";function t0(e,t){let n=t.getOptions(),{publicKey:r}=t.getDsn()||{},i={environment:n.environment||e0,release:n.release,public_key:r,trace_id:e,org_id:function(e){let t,n=e.getOptions(),{host:r}=e.getDsn()||{};if(n.orgId)t=String(n.orgId);else{let e;r&&(e=r.match(tu),t=e?.[1])}return t}(t)};return t.emit("createDsc",i),i}function t1(e,t){let n=t.getPropagationContext();return n.dsc||t0(n.traceId,e)}function t2(e){let t=eZ();if(!t)return{};let n=tY(e),r=tP(n),i=r.data,a=n.spanContext().traceState,s=a?.get("sentry.sample_rate")??i[e5]??i[e9];function o(e){return("number"==typeof s||"string"==typeof s)&&(e.sample_rate=`${s}`),e}let l=n[tZ];if(l)return o(l);let u=tV(n),c=u&&"ignored"===n.dropReason;if(u&&(!th(t.getOptions())||c)){let e=tx(n).scope;if(e){let n={...t1(t,e)};return c&&(n.sampled="false"),o(n)}}let p=a?.get("sentry.dsc"),d=p&&ts(p);if(d)return o(d);let f=t0(e.spanContext().traceId,t),h=i[e4]??i["sentry.segment.name.source"],m=r.description;return"url"!==h&&m&&(f.transaction=m),th()&&(f.sampled=String(tj(n)),f.sample_rand=a?.get("sentry.sample_rand")??tx(n).scope?.getPropagationContext().sampleRand.toString()),o(f),t.emit("createDsc",f,n),f}function t3(e,t){let{extra:n,tags:r,attributes:i,user:a,contexts:s,level:o,sdkProcessingMetadata:l,breadcrumbs:u,fingerprint:c,eventProcessors:p,attachments:d,propagationContext:f,transactionName:h,span:m}=t;t4(e,"extra",n),t4(e,"tags",r),t4(e,"attributes",i),t4(e,"user",a),t4(e,"contexts",s),e.sdkProcessingMetadata=eN(e.sdkProcessingMetadata,l,2),o&&(e.level=o),h&&(e.transactionName=h),m&&(e.span=m),u.length&&(e.breadcrumbs=[...e.breadcrumbs,...u]),c.length&&(e.fingerprint=[...e.fingerprint,...c]),p.length&&(e.eventProcessors=[...e.eventProcessors,...p]),d.length&&(e.attachments=[...e.attachments,...d]),e.propagationContext={...e.propagationContext,...f}}function t4(e,t,n){e[t]=eN(e[t],n,1)}function t5(e,t){let n=eK().getScopeData();return e&&t3(n,e.getScopeData()),t&&t3(n,t.getScopeData()),n}let t9=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function t6(e,t){return eX().captureException(e,function(e){if(e){var t;return(t=e)instanceof eU||"function"==typeof t||Object.keys(e).some(e=>t9.includes(e))?{captureContext:e}:e}}(t))}function t8(e,t){return eX().captureEvent(e,t)}function t7(e,t){eQ().setExtra(e,t)}function ne(e){eQ().setUser(e)}function nt(e){var t;let n,r,i=eQ(),{user:a}=t5(i,eX()),{userAgent:s}=w.navigator||{},o=(t={user:a,...s&&{userAgent:s},...e},n=eO(),r={sid:ex(),init:!0,timestamp:n,started:n,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>{var e;return e=r,{sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}}}},t&&eP(r,t),r),l=i.getSession();return l?.status==="ok"&&eP(l,{status:"exited"}),nn(),i.setSession(o),o}function nn(){let e,t=eQ(),n=eX().getSession()||t.getSession();n&&(e={},"ok"===n.status&&(e={status:"exited"}),eP(n,e)),nr(),t.setSession()}function nr(){let e=eQ(),t=eZ(),n=e.getSession();n&&t&&t.captureSession(n)}function ni(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];e?nn():nr()}let na={},ns={};function no(e,t){return na[e]=na[e]||[],na[e].push(t),()=>{let n=na[e];if(n){let e=n.indexOf(t);-1!==e&&n.splice(e,1)}}}function nl(e,t){if(!ns[e]){ns[e]=!0;try{t()}catch(t){A&&j(`Error while instrumenting ${e}`,t)}}}function nu(e,t){let n=e&&na[e];if(n)for(let r of n)try{r(t)}catch(t){A&&j(`Error while triggering instrumentation handler.
3Type: ${e}
4Name: ${em(r)}
5Error:`,t)}}let nc=new Set([]);function np(e){let t="console",n=no(t,e);return nl(t,nf),n}let nd=new Set;function nf(){"console"in w&&$.forEach(function(e){!nd.has(e)&&e in w.console&&(nd.add(e),Z(w.console,e,function(t){return O[e]=t,function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];let i=n[0],a=O[e],s=nc.size&&"string"==typeof i&&eE(i,nc);s||nu("console",{args:n,level:e}),(!s||A&&C())&&a?.apply(w.console,n)}}))})}let nh=[];function nm(e,t){for(let n of t)n?.afterAllSetup&&n.afterAllSetup(e)}function ng(e,t,n){if(n[t.name]){A&&L(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,nh.includes(t.name)||"function"!=typeof t.setupOnce||(t.setupOnce(),nh.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),"function"==typeof t.preprocessEvent){let n=t.preprocessEvent.bind(t);e.on("preprocessEvent",(t,r)=>n(t,r,e))}if("function"==typeof t.processEvent){let n=t.processEvent.bind(t),r=Object.assign((t,r)=>n(t,r,e),{id:t.name});e.addEventProcessor(r)}["processSpan","processSegmentSpan"].forEach(n=>{let r=t[n];"function"==typeof r&&e.on(n,n=>r.call(t,n,e))}),A&&L(`Integration installed: ${t.name}`)}function n_(e){return"warn"===e?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}let ny=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.levels||$,n=e.handled??!0;return{name:"CaptureConsole",setup(e){"console"in w&&np(r=>{var i,a,s;let o,l,u,{args:c,level:p}=r;
5eZ()===e&&t.includes(p)&&(i=c,a=p,s=n,o=n_(a),l=Error(),u={level:n_(a),extra:{arguments:i}},eV(e=>{if(e.addEventProcessor(e=>(e.logger="console",eI(e,{handled:s,type:"auto.core.capture_console"}),e)),"assert"===a){if(!i[0]){let t=`Assertion failed: ${eb(i.slice(1)," ")||"console.assert"}`;e.setExtra("arguments",i.slice(1)),e.captureMessage(t,o,{captureContext:u,syntheticException:l})}return}let t=i.find(e=>e instanceof Error);if(t)return void t6(t,u);let n=eb(i," ");e.captureMessage(n,o,{captureContext:u,syntheticException:l})}))})}}};function nv(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[t],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"npm",i=(e._metadata=e._metadata||{}).sdk=e._metadata.sdk||{};i.name||(i.name=`sentry.javascript.${t}`,i.packages=n.map(e=>({name:`${r}:@sentry/${e}`,version:x})),i.version=x)}function nb(e){let t=[];e.message&&t.push(e.message);try{let n=e.exception.values[e.exception.values.length-1];n?.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`))}catch{}return t}let nS=[/^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$/,/Java object is gone$/],nE=function(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{name:"EventFilters",setup(n){e=nw(t,n.getOptions())},processEvent:(n,r,i)=>(e||(e=nw(t,i.getOptions())),!function(e,t){if(e.type){if("transaction"===e.type&&function(e,t){if(!t?.length)return!1;let n=e.transaction;return!!n&&eE(n,t)}(e,t.ignoreTransactions))return A&&M(`Event dropped due to being matched by \`ignoreTransactions\` option.
6Event: ${eT(e)}`),!0}else{var n,r,i;if(n=e,r=t.ignoreErrors,r?.length&&nb(n).some(e=>eE(e,r)))return A&&M(`Event dropped due to being matched by \`ignoreErrors\` option.
7Event: ${eT(e)}`),!0;if(i=e,i.exception?.values?.length&&!i.message&&!i.exception.values.some(e=>e.stacktrace||e.type&&"Error"!==e.type||e.value))return A&&M(`Event dropped due to not having an error message, error type or stacktrace.
8Event: ${eT(e)}`),!0;if(function(e,t){if(!t?.length)return!1;let n=nT(e);return!!n&&eE(n,t)}(e,t.denyUrls))return A&&M(`Event dropped due to being matched by \`denyUrls\` option.
9Event: ${eT(e)}.
10Url: ${nT(e)}`),!0;if(!function(e,t){if(!t?.length)return!0;let n=nT(e);return!n||eE(n,t)}(e,t.allowUrls))return A&&M(`Event dropped due to not being matched by \`allowUrls\` option.
11Event: ${eT(e)}.
12Url: ${nT(e)}`),!0}return!1}(n,e)?n:null)}},nx=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{...nE(e),name:"InboundFilters"}};function nw(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:nS],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function nT(e){try{let t=[...e.exception?.values??[]].reverse().find(e=>e.mechanism?.parent_id===void 0&&e.stacktrace?.frames?.length),n=t?.stacktrace?.frames;return n?function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];for(let t=e.length-1;t>=0;t--){let n=e[t];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(n):null}catch{return A&&j(`Cannot extract url for event ${eT(e)}`),null}}let nk=new WeakMap;function nI(e,t){let n=eg(e),r=eg(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||r.length!==n.length)return!1;for(let e=0;e<r.length;e++){let t=r[e],i=n[e];if(t.filename!==i.filename||t.lineno!==i.lineno||t.colno!==i.colno||t.function!==i.function)return!1}return!0}function nA(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;
12if(n&&!r||!n&&r)return!1;try{return n.join("")===r.join("")}catch{return!1}}function n$(e){return e.exception?.values?.[0]}function nO(e){return!!e&&"function"==typeof e&&"_streamed"in e&&!!e._streamed}function nR(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return[e,t]}function nC(e,t){let[n,r]=e;return[n,[...r,t]]}function nP(e,t){for(let n of e[1]){let e=n[0].type;if(t(n,e))return!0}return!1}function nN(e){let t=k(w);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e)}let nD={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 nL(e){return e in nD?nD[e]:e}function nM(e){if(!e?.sdk)return;let{name:t,version:n}=e.sdk;return{name:t,version:n}}function nj(e){L(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}function nq(e,t){if(!t?.length)return!1;for(let r of t){var n;if("string"==typeof(n=r)||n instanceof RegExp){if(e.description&&eS(e.description,r))return A&&nj(e),!0;continue}let t=!!r.attributes&&Object.keys(r.attributes).length>0;if(!r.name&&!r.op&&!t)continue;let i=!r.name||e.description&&eS(e.description,r.name),a=!r.op||e.op&&eS(e.op,r.op),s=!r.attributes||Object.entries(r.attributes).every(t=>{let[n,r]=t;return function(e,t){return"string"==typeof e&&("string"==typeof t||t instanceof RegExp)?eS(e,t):Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e===t}(e.attributes?.[n],r)});if(i&&a&&s)return A&&nj(e),!0}return!1}function nU(){let e;return"u">typeof window&&(!(!("u">typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call(void 0!==E.default?E.default:0))||(e=w.process,e?.type==="renderer"))}function nB(e,t){var n,r,i,a,s;let o,l,u=t??(s=e,nF().get(s))??[];if(0===u.length)return;let c=e.getOptions(),p=(n=c._metadata,r=c.tunnel,i=e.getDsn(),a=e.getDataCollectionOptions().userInfo,o={},n?.sdk&&(o.sdk={name:n.sdk.name,version:n.sdk.version}),r&&i&&(o.dsn=tp(i)),nR(o,[(l=a?"auto":"never",[{type:"log",item_count:u.length,content_type:"application/vnd.sentry.items.log+json"},{version:2,...nU()&&{ingest_settings:{infer_ip:l,infer_user_agent:l}},items:u}])]));nF().set(e,[]),e.emit("flushLogs"),e.sendEnvelope(p)}function nF(){return I("clientToLogBufferMap",()=>new WeakMap)}function nW(e,t){var n,r,i,a,s;let o,l,u=t??(s=e,nz().get(s))??[];if(0===u.length)return;let c=e.getOptions(),p=(n=c._metadata,r=c.tunnel,i=e.getDsn(),a=e.getDataCollectionOptions().userInfo,o={},n?.sdk&&(o.sdk={name:n.sdk.name,version:n.sdk.version}),r&&i&&(o.dsn=tp(i)),nR(o,[(l=a?"auto":"never",[{type:"trace_metric",item_count:u.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{version:2,...nU()&&{ingest_settings:{infer_ip:l,infer_user_agent:l}},items:u}])]));nz().set(e,[]),e.emit("flushMetrics"),e.sendEnvelope(p)}function nz(){return I("clientToMetricBufferMap",()=>new WeakMap)}function nH(e){return"stream"===e.getOptions().traceLifecycle}function nY(e){return"object"==typeof e&&"function"==typeof e.unref&&e.unref(),e}let nG=Symbol.for("SentryBufferFullError");function nJ(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100,t=new Set;return{get $(){return Array.from(t)},add:function(n){if(!(t.size<e))return e2(nG);let r=n();return t.add(r),r.then(()=>{t.delete(r)},()=>{t.delete(r)}),r},drain:function(e){if(!t.size)return e1(!0);let n=Promise.allSettled(Array.from(t)).then(()=>!0);return e?Promise.race([n,new Promise(t=>nY(setTimeout(()=>t(!1),e)))]):n}}}let nX=["forwarded","-ip","remote-","via","-user"],nQ={userInfo:!0,cookies:!0,httpHeaders:{request:!0,response:!0},httpBodies:["incomingRequest","outgoingRequest","incomingResponse","outgoingResponse"],urlQueryParams:!0,graphQL:{document:!0,variables:!0},genAI:{inputs:!0,outputs:!0},databaseQueryData:!0,stackFrameVariables:!0,frameContextLines:5},nK="Not capturing exception because it's already been captured.",nV="Discarded session because of missing or non-string release",nZ=Symbol.for("SentryInternalError"),n0=Symbol.for("SentryDoNotSendEventError");function n1(e){return{message:e,[nZ]:!0}}function n2(e){return{message:e,[n0]:!0}}function n3(e){return J(e)&&nZ in e}function n4(e){return J(e)&&n0 in e}function n5(e,t,n,r,i){let a,s=0,o=!1;e.on(n,()=>{s=0,clearTimeout(a),o=!1}),e.on(t,t=>{if((s+=r(t))>=8e5)i(e);else if(!o){let t=e.getOptions()._flushInterval??5e3;t>0&&(o=!0,a=nY(setTimeout(()=>{i(e)},t)))}}),e.on("flush",()=>{i(e)})}class n9{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=nJ(e.transportOptions?.bufferSize??64),this._dataCollection=function(e){let t=null!=e.dataCollection?nQ:!0===e.sendDefaultPii?{userInfo:!0,cookies:!0,httpHeaders:{request:!0,response:!0},httpBodies:["incomingRequest","outgoingRequest","incomingResponse","outgoingResponse"],urlQueryParams:!0,graphQL:{document:!0,variables:!0},genAI:{inputs:!0,outputs:!0}
12,databaseQueryData:!0,stackFrameVariables:!0,frameContextLines:7}:{userInfo:!1,cookies:{deny:nX},httpHeaders:{request:{deny:nX},response:{deny:nX}},httpBodies:[],urlQueryParams:{deny:nX},graphQL:{document:!0,variables:!0},genAI:{inputs:!1,outputs:!1},databaseQueryData:!1,stackFrameVariables:!0,frameContextLines:7},n=e.dataCollection??{};return{userInfo:n.userInfo??t.userInfo,cookies:n.cookies??t.cookies,httpHeaders:function(e,t){return void 0===e?{...t.httpHeaders}:"boolean"==typeof e||"allow"in e||"deny"in e?{request:e,response:e}:{request:e.request??t.httpHeaders.request,response:e.response??t.httpHeaders.response}}(n.httpHeaders,t),httpBodies:n.httpBodies??t.httpBodies,urlQueryParams:n.urlQueryParams??n.queryParams??t.urlQueryParams,graphQL:{document:n.graphQL?.document??t.graphQL.document,variables:n.graphQL?.variables??t.graphQL.variables},genAI:{inputs:n.genAI?.inputs??t.genAI.inputs,outputs:n.genAI?.outputs??t.genAI.outputs},databaseQueryData:n.databaseQueryData??t.databaseQueryData,stackFrameVariables:n.stackFrameVariables??t.stackFrameVariables,frameContextLines:n.frameContextLines??t.frameContextLines}}(e),e.dsn?this._dsn=function(e){let t="string"==typeof e?td(e):tf(e);if(t&&function(e){if(!A)return!0;let{port:t,projectId:n,protocol:r}=e;return!["protocol","publicKey","host","projectId"].find(t=>!e[t]&&(j(`Invalid Sentry Dsn: ${t} missing`),!0))&&(n.match(/^\d+$/)?"http"!==r&&"https"!==r?(j(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):!(t&&isNaN(parseInt(t,10)))||(j(`Invalid Sentry Dsn: Invalid port ${t}`),!1):(j(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1))}(t))return t}(e.dsn):A&&M("No DSN provided, client will not send events."),this._dsn){const t=function(e,t,n){let r,i,a;return t||`${r=e.protocol?`${e.protocol}:`:"",i=e.port?`:${e.port}`:"",`${r}//${e.host}${i}${e.path?`/${e.path}`:""}/api/`}${e.projectId}/envelope/?${a={sentry_version:"7"},e.publicKey&&(a.sentry_key=e.publicKey),n&&(a.sentry_client=`${n.name}/${n.version}`),new URLSearchParams(a).toString()}`}(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:t})}this._options.enableLogs=this._options.enableLogs??this._options._experiments?.enableLogs??!0,this._options.enableLogs&&n5(this,"afterCaptureLog","flushLogs",rt,nB),(this._options.enableMetrics??this._options._experiments?.enableMetrics??!0)&&n5(this,"afterCaptureMetric","flushMetrics",re,nW)}captureException(e,t,n){let r=ex();if(eA(e))return A&&L(nK),r;let i={event_id:r,...t};return this._process(()=>this.eventFromException(e,i).then(e=>this._captureEvent(e,i,n)).then(e=>e),"error"),i.event_id}captureMessage(e,t,n,r){let i={event_id:ex(),...n},a=H(e)?e:String(e),s=Y(e),o=s?this.eventFromMessage(a,t,i):this.eventFromException(e,i);return this._process(()=>o.then(e=>this._captureEvent(e,i,r)),s?"unknown":"error"),i.event_id}captureEvent(e,t,n){let r=ex();if(t?.originalException&&eA(t.originalException))return A&&L(nK),r;let i={event_id:r,...t},a=e.sdkProcessingMetadata||{},s=a.capturedSpanScope,o=a.capturedSpanIsolationScope,l=n6(e.type);return this._process(()=>this._captureEvent(e,i,s||n,o),l),i.event_id}captureSession(e){this.sendSession(e),eP(e,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getDataCollectionOptions(){return this._dataCollection}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(e){let t=this._transport;if(this.emit("flush"),!t)return!0;let n=await this._isClientDoneProcessing(e),r=await t.flush(e);return n&&r}async close(e){let t=await this.flush(e);return this.getOptions().enabled=!1,this.emit("close"),t}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some(e=>{let{name:t}=e;return t.startsWith("Spotlight")}))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}getIntegrationNames(){return Object.keys(this._integrations)}addIntegration(e){let t=this._integrations[e.name];!t&&e.beforeSetup&&e.beforeSetup(this),ng(this,e,this._integrations),t||nm(this,[e])}sendEvent(e){var t,n,r;let i,a,s,o,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};
12this.emit("beforeSendEvent",e,l);let u=function(e,t){if("transaction"!==e.type||!e.spans?.length||!e.sdkProcessingMetadata?.hasGenAiSpans||!1===t.getOptions().streamGenAiSpans||nH(t))return;let n=[],r=[];for(let t of e.spans)t.op?.startsWith("gen_ai.")?n.push(function(e){var t;return{...t={trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,name:e.description||"",start_timestamp:e.start_timestamp,end_timestamp:e.timestamp||e.start_timestamp,status:e.status&&"ok"!==e.status&&"cancelled"!==e.status?"error":"ok",is_segment:!1,attributes:{...e.data},links:e.links},attributes:tm(t.attributes),links:t.links?.map(e=>({...e,attributes:tm(e.attributes)}))}}(t)):r.push(t);if(0===n.length)return;e.spans=r;let i=t.getDataCollectionOptions().userInfo?"auto":"never";return[{type:"span",item_count:n.length,content_type:"application/vnd.sentry.items.span.v2+json"},{version:2,...nU()&&{ingest_settings:{infer_ip:i,infer_user_agent:i}},items:n}]}(e,this),c=(t=this._dsn,n=this._options._metadata,r=this._options.tunnel,i=nM(n),a=e.type&&"replay_event"!==e.type?e.type:"event",!function(e,t){if(!t)return;let n=e.sdk||{};e.sdk={...n,name:n.name||t.name,version:n.version||t.version,integrations:[...e.sdk?.integrations||[],...t.integrations||[]],packages:[...e.sdk?.packages||[],...t.packages||[]],settings:e.sdk?.settings||t.settings?{...e.sdk?.settings,...t.settings}:void 0}}(e,n?.sdk),s=e.sdkProcessingMetadata?.dynamicSamplingContext,o={event_id:e.event_id,sent_at:new Date(eo()).toISOString(),...i&&{sdk:i},...!!r&&t&&{dsn:tp(t)},...s&&{trace:s}},delete e.sdkProcessingMetadata,nR(o,[[{type:a},e]]));for(let e of l.attachments||[])c=nC(c,function(e){let t="string"==typeof e.data?nN(e.data):e.data;return[{type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}(e));u&&(c=nC(c,u)),this.sendEnvelope(c).then(t=>this.emit("afterSendEvent",e,t))}sendSession(e){var t,n,r;let i,{release:a,environment:s=e0}=this._options;if("aggregates"in e){let t=e.attrs||{};if(!t.release&&!a){A&&M(nV);return}t.release=t.release||a,t.environment=t.environment||s,e.attrs=t}else{if(!e.release&&!a){A&&M(nV);return}e.release=e.release||a,e.environment=e.environment||s}this.emit("beforeSendSession",e);let o=(t=this._dsn,n=this._options._metadata,r=this._options.tunnel,i=nM(n),nR({sent_at:new Date(eo()).toISOString(),...i&&{sdk:i},...!!r&&t&&{dsn:tp(t)}},["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()]]));this.sendEnvelope(o)}recordDroppedEvent(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;if(this._options.sendClientReports){let r=`${e}:${t}`;A&&L(`Recording outcome: "${r}"${n>1?` (${n} times)`:""}`),this._outcomes[r]=(this._outcomes[r]||0)+n}}on(e,t){let n=this._hooks[e]=this._hooks[e]||new Set,r=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return t(...n)};return n.add(r),()=>{n.delete(r)}}emit(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];let i=this._hooks[e];i&&i.forEach(e=>e(...n))}async sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)try{return await this._transport.send(e)}catch(e){return A&&j("Error while sending envelope:",e),{}}return A&&j("Transport disabled"),{}}registerCleanup(e){}dispose(){}_setupIntegrations(){var e;let t,{integrations:n}=this._options;this._integrations=(e=this,t={},n.forEach(t=>{t?.beforeSetup&&t.beforeSetup(e)}),n.forEach(n=>{n&&ng(e,n,t)}),t),nm(this,n)}_updateSessionFromEvent(e,t){let n="fatal"===t.level,r=!1,i=t.exception?.values;if(i){for(let e of(r=!0,n=!1,i))if(e.mechanism?.handled===!1){n=!0;break}}let a="ok"===e.status;(a&&0===e.errors||a&&n)&&(eP(e,{...n&&{status:"crashed"},errors:e.errors||Number(r||n)}),this.captureSession(e))}async _isClientDoneProcessing(e){let t=0;for(;!e||t<e;){if(await new Promise(e=>setTimeout(e,1)),!this._numProcessing)return!0;t++}return!1}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,n,r){let i=this.getOptions(),c=this.getIntegrationNames();
12return!t.integrations&&c.length&&(t.integrations=c),this.emit("preprocessEvent",e,t),e.type||r.setLastEventId(e.event_id||t.event_id),(function(e,t,n,r,i,a){var c,p,d;let f,{normalizeDepth:h=3,normalizeMaxBreadth:m=1e3}=e,g={...t,event_id:t.event_id||n.event_id||ex(),timestamp:t.timestamp||e$()},_=n.integrations||e.integrations.map(e=>e.name);(function(e,t){let{environment:n,release:r,dist:i,maxValueLength:a}=t;e.environment=e.environment||n||e0,!e.release&&r&&(e.release=r),!e.dist&&i&&(e.dist=i);let s=e.request;s?.url&&a&&(s.url=ev(s.url,a)),a&&e.exception?.values?.forEach(e=>{e.value&&(e.value=ev(e.value,a))})})(g,e),c=g,(p=_).length>0&&(c.sdk=c.sdk||{},c.sdk.integrations=[...c.sdk.integrations||[],...p]),i&&i.emit("applyFrameMetadata",t),void 0===t.type&&(d=g,f=function(e){let t=w._sentryDebugIds,n=w._debugIds;if(!t&&!n)return{};let r=t?Object.keys(t):[],i=n?Object.keys(n):[];if(u&&r.length===o&&i.length===l)return u;o=r.length,l=i.length,u={},s||(s={});let a=(t,n)=>{for(let r of t){let t=n[r],i=s?.[r];if(i&&u&&t)u[i[0]]=t,s&&(s[r]=[i[0],t]);else if(t){let n=e(r);for(let e=n.length-1;e>=0;e--){let i=n[e],a=i?.filename;if(a&&u&&s){u[a]=t,s[r]=[a,t];break}}}}};return t&&a(r,t),n&&a(i,n),u}(e.stackParser),d.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.filename&&(e.debug_id=f[e.filename])})}));let y=function(e,t){if(!t)return e;let n=e?e.clone():new eU;return n.update(t),n}(r,n.captureContext);n.mechanism&&eI(g,n.mechanism);let v=i?i.getEventProcessors():[],b=t5(a,y),S=[...n.attachments||[],...b.attachments];S.length&&(n.attachments=S),function(e,t){var n,r,i,a,s,o,l,u;let c,p,{fingerprint:d,span:f,breadcrumbs:h,sdkProcessingMetadata:m}=t;(function(e,t){let{extra:n,tags:r,user:i,contexts:a,level:s,transactionName:o}=t;Object.keys(n).length&&(e.extra={...n,...e.extra}),Object.keys(r).length&&(e.tags={...r,...e.tags}),Object.keys(i).length&&(e.user={...i,...e.user}),Object.keys(a).length&&(e.contexts={...a,...e.contexts}),s&&(e.level=s),o&&"transaction"!==e.type&&(e.transaction=o)})(e,t),f&&((n=e).contexts={trace:function(e){let{spanId:t,traceId:n,isRemote:r}=e.spanContext(),i=r?t:tP(e).parent_span_id,a=tx(e).scope;return{parent_span_id:i,span_id:r?a?.getPropagationContext().propagationSpanId||eD():t,trace_id:n}}(r=f),...n.contexts},n.sdkProcessingMetadata={dynamicSamplingContext:t2(r),...n.sdkProcessingMetadata},(c=tP(tY(r)).description)&&!n.transaction&&"transaction"===n.type&&(n.transaction=c)),i=e,a=d,i.fingerprint=i.fingerprint?Array.isArray(i.fingerprint)?i.fingerprint:[i.fingerprint]:[],a&&(i.fingerprint=i.fingerprint.concat(a)),i.fingerprint.length||delete i.fingerprint,s=e,o=h,p=[...s.breadcrumbs||[],...o],s.breadcrumbs=p.length?p:void 0,l=e,u=m,l.sdkProcessingMetadata={...l.sdkProcessingMetadata,...u}}(g,b);let E=[...v,...b.eventProcessors];return(n.data&&!0===n.data.__sentry__?e1(g):function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;try{let i=function e(t,n,r,i){let a=r[i];if(!t||!a)return t;let s=a({...t},n);return(A&&null===s&&L(`Event processor "${a.id||"?"}" dropped event`),Q(s))?s.then(t=>e(t,n,r,i+1)):e(s,n,r,i+1)}(t,n,e,r);return Q(i)?i:e1(i)}catch(e){return e2(e)}}(E,g,n)).then(e=>(e&&function(e){let t={};if(e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)})}),0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];let n=e.debug_meta.images;Object.entries(t).forEach(e=>{let[t,r]=e;n.push({type:"sourcemap",code_file:t,debug_id:r})})}(e),"number"==typeof h&&h>0)?function(e,t,n){if(!e)return null;let r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:e_(e.data,t,n)}}))},...e.user&&{user:e_(e.user,t,n)},...e.contexts&&{contexts:e_(e.contexts,t,n)},...e.extra&&{extra:e_(e.extra,t,n)}};return e.contexts?.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=e_(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(e=>({...e,...e.data&&{data:e_(e.data,t,n)}}))),e.contexts?.flags&&r.contexts&&(r.contexts.flags=e_(e.contexts.flags,3,n)),r}(e,h,m):e)})(i,e,t,n,this,r).then(e=>
12(null===e||(this.emit("postprocessEvent",e,t),e.contexts={trace:{...e.contexts?.trace,...function(e){let t=a?.();if(t)return{trace_id:t.traceId,span_id:t.spanId};let{traceId:n,parentSpanId:r,propagationSpanId:i}=e.getPropagationContext(),s={trace_id:n,span_id:i||eD()};return r&&(s.parent_span_id=r),s}(n)},...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:t1(this,n),...e.sdkProcessingMetadata}),e))}_captureEvent(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:eX(),r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:eQ();return A&&n8(e)&&L(`Captured error event \`${nb(e)[0]||"<unknown>"}\``),this._processEvent(e,t,n,r).then(e=>e.event_id,e=>{A&&(n4(e)?L(e.message):n3(e)?M(e.message):M(e))})}_processEvent(e,t,n,r){let i=this.getOptions(),{sampleRate:a}=i,s=n7(e),o=n8(e),l=e.type||"error",u=`before send for type \`${l}\``,c=void 0===a?void 0:tw(a),p=n6(e.type);return this._prepareEvent(e,t,n,r).then(e=>{if(null===e)throw this.recordDroppedEvent("event_processor",p),n2("An event processor returned `null`, will not send event.");return t.data?.__sentry__===!0?e:function(e,t){let n=`${t} must return \`null\` or a valid event.`;if(Q(e))return e.then(e=>{if(!G(e)&&null!==e)throw n1(n);return e},e=>{throw n1(`${t} rejected with ${e}`)});if(!G(e)&&null!==e)throw n1(n);return e}(function(e,t,n,r){let{beforeSend:i,beforeSendTransaction:a,ignoreSpans:s}=t,o=!nO(t.beforeSendSpan)&&t.beforeSendSpan,l=n;if(n8(l)&&i)return i(l,r);if(n7(l)){if(o||s){let t=function(e){let{trace_id:t,parent_span_id:n,span_id:r,status:i,origin:a,data:s,op:o}=e.contexts?.trace??{};return{data:s??{},description:e.transaction,op:o,parent_span_id:n,span_id:r??"",start_timestamp:e.start_timestamp??0,status:i,timestamp:e.timestamp,trace_id:t??"",origin:a,profile_id:s?.[tr],exclusive_time:s?.[ti],measurements:e.measurements,is_segment:!0}}(l);if(s?.length&&nq({description:t.description,op:t.op,attributes:t.data},s))return null;if(o){let e=o(t);if(e)l=eN(n,{type:"transaction",timestamp:e.timestamp,start_timestamp:e.start_timestamp,transaction:e.description,contexts:{trace:{trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,op:e.op,status:e.status,origin:e.origin,data:{...e.data,...e.profile_id&&{[tr]:e.profile_id},...e.exclusive_time&&{[ti]:e.exclusive_time}}}},measurements:e.measurements});else tX()}if(l.spans){let t=[],n=l.spans;for(let e of n){if(s?.length&&nq({description:e.description,op:e.op,attributes:e.data},s)){!function(e,t){let n=t.parent_span_id,r=t.span_id;if(n)for(let t of e)t.parent_span_id===r&&(t.parent_span_id=n)}(n,e);continue}if(o){let n=o(e);n?t.push(n):(tX(),t.push(e))}else t.push(e)}let r=l.spans.length-t.length;r&&e.recordDroppedEvent("before_send","span",r),l.spans=t}}if(a){if(l.spans){let e=l.spans.length;l.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return a(l,r)}}return l}(this,i,e,t),u)}).then(i=>{if(null===i){if(this.recordDroppedEvent("before_send",p),s){let t=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",t)}throw n2(`${u} returned \`null\`, will not send event.`)}let l=n.getSession()||r.getSession();if(o&&l&&this._updateSessionFromEvent(l,i),o&&"number"==typeof c&&es()>c)throw this.recordDroppedEvent("sample_rate","error"),n2(`Discarding event because it's not included in the random sample (sampling rate = ${a})`);if(s){let e=(i.sdkProcessingMetadata?.spanCountBeforeProcessing||0)-(i.spans?i.spans.length:0);e>0&&this.recordDroppedEvent("before_send","span",e)}let d=i.transaction_info;return s&&d&&i.transaction!==e.transaction&&(i.transaction_info={...d,source:"custom"}),this.sendEvent(i,t),i}).then(null,e=>{if(n4(e)||n3(e))throw e;throw this.captureException(e,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:e}),n1(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
13Reason: ${e}`)})}_process(e,t){this._numProcessing++,this._promiseBuffer.add(e).then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e===nG&&this.recordDroppedEvent("queue_overflow",t),e))}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.entries(e).map(e=>{let[t,n]=e,[r,i]=t.split(":");return{reason:r,category:i,quantity:n}})}_flushOutcomes(){var e;A&&L("Flushing outcomes...");let t=this._clearOutcomes();if(0===t.length){A&&L("No outcomes to send");return}if(!this._dsn){A&&L("No dsn provided, will not send outcomes");return}A&&L("Sending outcomes:",t);let n=nR((e=this._options.tunnel&&tp(this._dsn))?{dsn:e}:{},[[{type:"client_report"},{timestamp:e$(),discarded_events:t}]]);this.sendEnvelope(n)}}function n6(e){return"replay_event"===e?"replay":e||"error"}function n8(e){return void 0===e.type}function n7(e){return"transaction"===e.type}function re(e){let t=0;return e.name&&(t+=2*e.name.length),(t+=8)+rn(e.attributes)}function rt(e){let t=0;return e.message&&(t+=2*e.message.length),t+rn(e.attributes)}function rn(e){if(!e)return 0;let t=0;
13return Object.values(e).forEach(e=>{Array.isArray(e)?t+=e.length*rr(e[0]):Y(e)?t+=rr(e):t+=100}),t}function rr(e){return"string"==typeof e?2*e.length:"number"==typeof e?8:4*("boolean"==typeof e)}function ri(e){"aggregates"in e?e.attrs?.ip_address===void 0&&(e.attrs={...e.attrs,ip_address:"{{auto}}"}):void 0===e.ipAddress&&(e.ipAddress="{{auto}}")}function ra(e){return U(e)&&"__sentry_fetch_url_host__"in e&&"string"==typeof e.__sentry_fetch_url_host__?`${e.message} (${e.__sentry_fetch_url_host__})`:e.message}function rs(e,t){var n,r;let i,a,s=rl(e,t),o={type:(n=t,!(i=n?.name)&&rc(n)?n.message&&Array.isArray(n.message)&&2==n.message.length?n.message[0]:"WebAssembly.Exception":i),value:(r=t,a=r?.message,rc(r)?Array.isArray(r.message)&&2==r.message.length?r.message[1]:"wasm exception":a?a.error&&"string"==typeof a.error.message?ra(a.error):ra(r):"No error message")};return s.length&&(o.stacktrace={frames:s}),void 0===o.type&&""===o.value&&(o.value="Unrecoverable error caught"),o}function ro(e,t){return{exception:{values:[rs(e,t)]}}}function rl(e,t){var n,r;let i=t.stacktrace||t.stack||"",a=(n=t)&&ru.test(n.message)?1:0,s="number"==typeof(r=t).framesToPop?r.framesToPop:0;try{return e(i,a,s)}catch{}return[]}let ru=/Minified React error #\d+;/i;function rc(e){return"u">typeof WebAssembly&&void 0!==WebAssembly.Exception&&e instanceof WebAssembly.Exception}function rp(e,t,n,r,i){let a;if(F(t)&&t.error)return ro(e,t.error);if(W(t)||B(t,"DOMException")){if("stack"in t){a=ro(e,t);let i=a.exception?.values?.[0];if(r&&n&&i&&!i.stacktrace){let t=rl(e,n);t.length&&(i.stacktrace={frames:t},eI(a,{synthetic:!0}))}}else{let i=t.name||(W(t)?"DOMError":"DOMException"),s=t.message?`${i}: ${t.message}`:i;ek(a=rd(e,s,n,r),s)}return"code"in t&&(a.tags={...a.tags,"DOMException.code":`${t.code}`}),a}return U(t)?ro(e,t):(G(t)||X(t)?eI(a=function(e,t,n,r){let i=eZ(),a=i?.getOptions().normalizeDepth,s=Object.values(t).find(U),o={__serialized__:function e(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:102400,i=e_(t,n);return~-encodeURI(JSON.stringify(i)).split(/%..|./).length>r?e(t,n-1,r):i}(t,a)};if(s)return{exception:{values:[rs(e,s)]},extra:o};let l={exception:{values:[{type:X(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:function(e,t){let n,{isUnhandledRejection:r}=t,i=((n=Object.keys(er(e))).sort(),n[0]?n.join(", "):"[object has no keys]"),a=r?"promise rejection":"exception";if(F(e))return`Event \`ErrorEvent\` captured as ${a} with message \`${e.message}\``;if(X(e)){let t=function(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}(e);return`Event \`${t}\` (type=${e.type}) captured as ${a}`}return`Object captured as ${a} with keys: ${i}`}(t,{isUnhandledRejection:r})}]},extra:o};if(n){let t=rl(e,n);t.length&&(l.exception.values[0].stacktrace={frames:t})}return l}(e,t,n,i),{synthetic:!0}):(ek(a=rd(e,t,n,r),`${t}`,void 0),eI(a,{synthetic:!0})),a)}function rd(e,t,n,r){let i={};if(r&&n){let r=rl(e,n);r.length&&(i.exception={values:[{value:t,stacktrace:{frames:r}}]}),eI(i,{synthetic:!0})}if(H(t)){let{__sentry_template_string__:e,__sentry_template_values__:n}=t;return i.logentry={message:e,params:n},i}return i.message=t,i}function rf(){try{return w.document.location.href}catch{return""}}function rh(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5;if(!w.HTMLElement)return null;let n=e;for(let e=0;e<t&&n;e++){if(n instanceof HTMLElement){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}n=n.parentNode}return null}let rm=0;function rg(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("function"!=typeof e)return e;try{if(Object.prototype.hasOwnProperty.call(e,"__sentry_wrapped__")){let t=e.__sentry_wrapped__;if("function"==typeof t)return t;return e}if(en(e))return e}catch{return e}let n=function(){for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];w._sentryWrappedDepth=(w._sentryWrappedDepth||0)+1;try{let n=r.map(e=>rg(e,t));return e.apply(this,n)}catch(e){throw rm++,setTimeout(()=>{rm--}),eV(n=>{n.addEventProcessor(e=>(t.mechanism&&(ek(e,void 0,void 0),eI(e,t.mechanism)),e.extra={...e.extra,arguments:r},e)),t6(e)}),e}finally{w._sentryWrappedDepth=(w._sentryWrappedDepth||0)-1}};try{for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}catch{}et(n,e),ee(e,"__sentry_wrapped__",n);try{Object.getOwnPropertyDescriptor(n,"name").configurable&&Object.defineProperty(n,"name",{get:()=>e.name})}catch{}return n}function r_(){let e=rf(),{referrer:t}=w.document||{},{userAgent:n}=w.navigator||{};return{url:e,headers:{...t&&{Referer:t},...n&&{"User-Agent":n}}}}class ry extends n9{constructor(e){const t=function(e){return{release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:w.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}(e);nv(t,"browser",["browser"],w.SENTRY_SDK_SOURCE||"npm"),super(t);const{userInfo:n}=this.getDataCollectionOptions();t._metadata?.sdk&&(t._metadata.sdk.settings={infer_ip:n?"auto":"never",...t._metadata.sdk.settings});const{sendClientReports:r}=this._options;w.document&&w.document.addEventListener("visibilitychange",()=>{"hidden"===w.document.visibilityState&&(r&&this._flushOutcomes(),queueMicrotask(()=>{this.flush()}))}),n&&this.on("beforeSendSession",ri)}eventFromException(e,t){var n,r;let i;return n=this._options.stackParser,r=this._options.attachStacktrace,eI(i=rp(n,e,t?.syntheticException||void 0,r)),i.level="error",t?.event_id&&(i.event_id=t.event_id),e1(i)}eventFromMessage(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"info",n=arguments.length>2?arguments[2]:void 0;return function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"info",r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,a=rd(e,t,r?.syntheticException||void 0,i);return a.level=n,r?.event_id&&(a.event_id=r.event_id),e1(a)}(this._options.stackParser,e,t,n,this._options.attachStacktrace)}_prepareEvent(e,t,n,r){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n,r)}}function rv(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function rb(e,t){let n="fetch",r=no(n,e);return nl(n,()=>rS(void 0,t)),r}function rS(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];(!t||function(){if("string"==typeof EdgeRuntime)return!0;
13if(!function(){if(!("fetch"in w))return!1;try{return new Headers,new Request("data:,"),new Response,!0}catch{return!1}}())return!1;if(rv(w.fetch))return!0;let e=!1,t=w.document;if(t&&"function"==typeof t.createElement)try{let n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow?.fetch&&(e=rv(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){A&&M("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e}())&&Z(w,"fetch",function(t){return function(){for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];let a=Error(),{method:s,url:o}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){let[t,n]=e;return{url:rT(t),method:rw(n,"method")?String(n.method).toUpperCase():V(t)&&rw(t,"method")?String(t.method).toUpperCase():"GET"}}let t=e[0];return{url:rT(t),method:rw(t,"method")?String(t.method).toUpperCase():"GET"}}(r),l={args:r,fetchData:{method:s,url:o},startTimestamp:1e3*eO(),virtualError:a,headers:function(e){let[t,n]=e;try{if("object"==typeof n&&null!==n&&"headers"in n&&n.headers)return new Headers(n.headers);if(V(t))return new Headers(t.headers)}catch{}}(r)};return e||nu("fetch",{...l}),t.apply(w,r).then(async t=>(e?e(t):nu("fetch",{...l,endTimestamp:1e3*eO(),response:t}),t),e=>{nu("fetch",{...l,endTimestamp:1e3*eO(),error:e}),U(e)&&void 0===e.stack&&(e.stack=a.stack,ee(e,"framesToPop",1));let t=eZ(),n=t?.getOptions().enhanceFetchErrorMessages??"always";if(!1!==n&&U(e)&&"TypeError"===e.name&&("Failed to fetch"===e.message||"Load failed"===e.message||"NetworkError when attempting to fetch resource."===e.message))try{let t=new URL(l.fetchData.url).host;"always"===n?e.message=`${e.message} (${t})`:ee(e,"__sentry_fetch_url_host__",t)}catch{}throw e})}})}async function rE(e,t){if(e?.body){let n=e.body,r=n.getReader(),i=setTimeout(()=>{n.cancel().then(null,()=>{})},9e4),a=!0;for(;a;){let e;try{e=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);let{done:i}=await r.read();clearTimeout(e),i&&(t(),a=!1)}catch{a=!1}finally{clearTimeout(e)}}clearTimeout(i),r.releaseLock(),n.cancel().then(null,()=>{})}}function rx(e){let t;try{t=e.clone()}catch{return}rE(t,()=>{nu("fetch-body-resolved",{endTimestamp:1e3*eO(),response:e})})}function rw(e,t){return J(e)&&!!e[t]}function rT(e){return"string"==typeof e?e:e?rw(e,"url")?e.url:e.toString?e.toString():"":""}function rk(e,t){let n=eZ(),r=eQ();if(!n)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:a=100}=n.getOptions();if(a<=0)return;let s={timestamp:e$(),...e},o=i?R(()=>i(s,t)):s;null!==o&&(n.emit&&n.emit("beforeAddBreadcrumb",o,t),r.addBreadcrumb(o,a))}function rI(e){if(void 0!==e)return e>=400&&e<500?"warning":e>=500?"error":void 0}let rA="http.url",r$="sentry.segment.name",rO="sentry.transaction",rR="url.full",rC="url.path",rP="url.template";function rN(e){return"isRelative"in e}function rD(e,t){let n=0>=e.indexOf("://")&&0!==e.indexOf("//"),r=t??(n?"thismessage:/":void 0);try{if("canParse"in URL&&!URL.canParse(e,r))return;let t=new URL(e,r);if(n)return{isRelative:n,pathname:t.pathname,search:t.search,hash:t.hash};return t}catch{}}function rL(e){if(rN(e))return e.pathname;let t=new URL(e);return t.search="",t.hash="",["80","443"].includes(t.port)&&(t.port=""),t.password&&(t.password="%filtered%"),t.username&&(t.username="%filtered%"),t.toString()}function rM(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}function rj(e){return e.split(/[?#]/,1)[0]}function rq(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];if(e.startsWith("data:")){let n=e.match(/^data:([^;,]+)/),r=n?n[1]:"text/plain",i=e.includes(";base64,"),a=e.indexOf(","),s="";if(t&&-1!==a){let t=e.slice(a+1);s=t.length>10?`${t.slice(0,10)}... [truncated]`:t}return`data:${r}${i?",base64":""}${s?`,${s}`:""}`}return e}function rU(){if(!w.document)return;let e=nu.bind(null,"dom"),t=rB(e,!0);w.document.addEventListener("click",t,!1),w.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(t=>{let n=w[t]?.prototype;n?.hasOwnProperty?.("addEventListener")&&(Z(n,"addEventListener",function(t){return function(n,r,i){if("click"===n||"keypress"==n)try{let r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},a=r[n]=r[n]||{refCount:0};if(!a.handler){let r=rB(e);a.handler=r,t.call(this,n,r,i)}a.refCount++}catch{}return t.call(this,n,r,i)}}),Z(n,"removeEventListener",function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{let n=this.__sentry_instrumentation_handlers__||{},i=n[t];i&&(i.refCount--,i.refCount<=0&&(e.call(this,t,i.handler,r),i.handler=void 0,delete n[t]),0===Object.keys(n).length&&delete this.__sentry_instrumentation_handlers__)}catch{}return e.call(this,t,n,r)}}))})}function rB(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return n=>{var r;if(!n||n._sentryCaptured)return;let i=function(e){try{return e.target}catch{return null}}(n);if(r=n.type,"keypress"===r&&(!i?.tagName||"INPUT"!==i.tagName&&"TEXTAREA"!==i.tagName&&!i.isContentEditable&&1))return;ee(n,"_sentryCaptured",!0),i&&!i._sentryId&&ee(i,"_sentryId",ex());let a="keypress"===n.type?"input":n.type;!function(e){if(e.type!==p)return!1;try{if(!e.target||e.target._sentryId!==d)return!1}catch{}return!0}(n)&&(e({event:n,name:a,global:t}),p=n.type,d=i?i._sentryId:void 0),clearTimeout(c),c=w.setTimeout(()=>{d=void 0,p=void 0},1e3)}}let rF="__sentry_xhr_v3__";function rW(e){no("xhr",e),nl("xhr",rz)}function rz(){if(!w.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,n){let r=Error(),i=1e3*eO(),a=z(n[0])?n[0].toUpperCase():void 0,s=function(e){if(z(e))return e;try{return e.toString()}catch{}}(n[1]);if(!a||!s)return e.apply(t,n);t[rF]={method:a,url:s,request_headers:{}}
13,"POST"===a&&s.match(/sentry_key/)&&(t.__sentry_own_request__=!0);let o=()=>{let e=t[rF];if(e&&4===t.readyState){try{e.status_code=t.status}catch{}nu("xhr",{endTimestamp:1e3*eO(),startTimestamp:i,xhr:t,virtualError:r}),r=void 0,t.removeEventListener("readystatechange",o)}};return"onreadystatechange"in t&&"function"==typeof t.onreadystatechange?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply:(e,t,n)=>(o(),e.apply(t,n))}):t.addEventListener("readystatechange",o),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,n){let[r,i]=n,a=t[rF];return a&&z(r)&&z(i)&&(a.request_headers[r.toLowerCase()]=i),e.apply(t,n)}}),e.apply(t,n)}}),e.send=new Proxy(e.send,{apply(e,t,n){let r=t[rF];return r&&(void 0!==n[0]&&(r.body=n[0]),nu("xhr",{startTimestamp:1e3*eO(),xhr:t})),e.apply(t,n)}})}function rH(e){let t="history";no(t,e),nl(t,rY)}function rY(){function e(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];let i=n.length>2?n[2]:void 0;if(i){let t=f,r=function(e){try{return new URL(e,w.location.origin).toString()}catch{return e}}(String(i));if(f=r,t===r)return e.apply(this,n);nu("history",{from:t,to:r})}return e.apply(this,n)}}w.addEventListener("popstate",()=>{let e=w.location.href,t=f;f=e,t===e||nu("history",{from:t,to:e})}),"history"in w&&w.history&&(Z(w.history,"pushState",e),Z(w.history,"replaceState",e))}let rG={};try{"u">typeof Node&&(rG.parentNode=Object.getOwnPropertyDescriptor(Node.prototype,"parentNode").get),"u">typeof Element&&(rG.tagName=Object.getOwnPropertyDescriptor(Element.prototype,"tagName").get,rG.id=Object.getOwnPropertyDescriptor(Element.prototype,"id").get,rG.className=Object.getOwnPropertyDescriptor(Element.prototype,"className").get,rG.getAttribute=Element.prototype.getAttribute),"u">typeof HTMLElement&&(rG.dataset=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"dataset").get)}catch{}function rJ(e,t,n){let r=rG[t];if(r)try{return r.call(e,n)}catch{}let i=e[t];return"function"==typeof i?i.call(e,n):i}function rX(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return"<unknown>";try{let n,r=e,i=[],a=0,s=0,o=Array.isArray(t)?t:t.keyAttrs,l=!Array.isArray(t)&&t.maxStringLength||80;for(;r&&a++<5&&(n=function(e,t){let n=[],r=rJ(e,"tagName");if(!r)return"";if("u">typeof HTMLElement&&e instanceof HTMLElement){let t=rJ(e,"dataset");if(t){if(t.sentryComponent)return t.sentryComponent;if(t.sentryElement)return t.sentryElement}}n.push(r.toLowerCase());let i=t?.length?t.filter(t=>rJ(e,"getAttribute",t)).map(t=>[t,rJ(e,"getAttribute",t)]):null;if(i?.length)i.forEach(e=>{n.push(`[${e[0]}="${e[1]}"]`)});else{let t=rJ(e,"id");t&&n.push(`#${t}`);let r=rJ(e,"className");if(r&&z(r))for(let e of r.split(/\s+/))n.push(`.${e}`)}for(let t of["aria-label","type","name","title","alt"]){let r=rJ(e,"getAttribute",t);r&&n.push(`[${t}="${r}"]`)}return n.join("")}(r,o),"html"!==n&&(!(a>1)||!(s+3*i.length+n.length>=l)));)i.push(n),s+=n.length,r=rJ(r,"parentNode");return i.reverse().join(" > ")}catch{return"<unknown>"}}let rQ="u"<typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,rK=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:"Breadcrumbs",setup(e){var n,r,i,a,s,o,l;t.console&&np((n=e,function(e){if(eZ()!==n)return;let t={category:"console",data:{arguments:e.args,logger:"console"},level:n_(e.level),message:eb(e.args," ")};if("assert"===e.level)if(!1!==e.args[0])return;else t.message=`Assertion failed: ${eb(e.args.slice(1)," ")||"console.assert"}`,t.data.arguments=e.args.slice(1);rk(t,{input:e.args,level:e.level})})),t.dom&&(no("dom",(r=e,i=t.dom,function(e){let t,n;if(eZ()!==r)return;let a="object"==typeof i?i.serializeAttribute:void 0,s="object"==typeof i&&"number"==typeof i.maxStringLength?i.maxStringLength:void 0;s&&s>1024&&(rQ&&M(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${s} was configured. Sentry will use 1024 instead.`),s=1024),"string"==typeof a&&(a=[a]);try{var o;let r=e.event,i=(o=r)&&o.target?r.target:r;t=rX(i,{keyAttrs:a,maxStringLength:s}),n=rh(i)}catch{t="<unknown>"}if(0===t.length)return;let l={category:`ui.${e.name}`,message:t};n&&(l.data={"ui.component_name":n}),rk(l,{event:e.event,name:e.name,global:e.global})})),nl("dom",rU)),t.xhr&&rW((a=e,function(e){if(eZ()!==a)return;let{startTimestamp:t,endTimestamp:n}=e,r=e.xhr[rF];if(!t||!n||!r)return;let{method:i,url:s,status_code:o,body:l}=r,u={xhr:e.xhr,input:l,startTimestamp:t,endTimestamp:n},c={category:"xhr",data:{method:i,url:s,status_code:o},type:"http",level:rI(o)};a.emit("beforeOutgoingRequestBreadcrumb",c,u),rk(c,u)})),t.fetch&&rb((s=e,function(e){if(eZ()!==s)return;let{startTimestamp:t,endTimestamp:n}=e;
13if(n&&(!e.fetchData.url.match(/sentry_key/)||"POST"!==e.fetchData.method))if(e.error){let r={data:e.error,input:e.args,startTimestamp:t,endTimestamp:n},i={category:"fetch",data:e.fetchData,level:"error",type:"http"};s.emit("beforeOutgoingRequestBreadcrumb",i,r),rk(i,r)}else{let r=e.response,i={...e.fetchData,status_code:r?.status},a={input:e.args,response:r,startTimestamp:t,endTimestamp:n},o={category:"fetch",data:i,type:"http",level:rI(i.status_code)};s.emit("beforeOutgoingRequestBreadcrumb",o,a),rk(o,a)}})),t.history&&rH((o=e,function(e){if(eZ()!==o)return;let t=e.from,n=e.to,r=rM(w.location.href),i=t?rM(t):void 0,a=rM(n);i?.path||(i=r),r.protocol===a.protocol&&r.host===a.host&&(n=a.relative),r.protocol===i.protocol&&r.host===i.host&&(t=i.relative),rk({category:"navigation",data:{from:t,to:n}})})),t.sentry&&e.on("beforeSendEvent",(l=e,function(e){eZ()===l&&rk({category:`sentry.${"transaction"===e.type?"transaction":"event"}`,event_id:e.event_id,level:e.level,message:eT(e)},{event:e})}))}}},rV="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(","),rZ=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:"BrowserApiErrors",setupOnce(){t.setTimeout&&Z(w,"setTimeout",r0),t.setInterval&&Z(w,"setInterval",r0),t.requestAnimationFrame&&Z(w,"requestAnimationFrame",r1),t.XMLHttpRequest&&"XMLHttpRequest"in w&&Z(XMLHttpRequest.prototype,"send",r2);let e=t.eventTarget;e&&(Array.isArray(e)?e:rV).forEach(e=>{var n,r;let i;return n=e,r=t,i=w[n]?.prototype,void(i?.hasOwnProperty?.("addEventListener")&&(Z(i,"addEventListener",function(e){return function(t,i,a){var s,o,l,u;try{s=i,"function"==typeof s.handleEvent&&(i.handleEvent=rg(i.handleEvent,{mechanism:{data:{handler:em(i),target:n},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return r.unregisterOriginalCallbacks&&(o=this,l=t,u=i,o&&"object"==typeof o&&"removeEventListener"in o&&"function"==typeof o.removeEventListener&&o.removeEventListener(l,u)),e.apply(this,[t,rg(i,{mechanism:{data:{handler:em(i),target:n},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),a])}}),Z(i,"removeEventListener",function(e){return function(t,n,r){try{if(Object.prototype.hasOwnProperty.call(n,"__sentry_wrapped__")){let i=n.__sentry_wrapped__;i&&e.call(this,t,i,r)}}catch{}return e.call(this,t,n,r)}})))})}}};function r0(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];let i=n[0];return n[0]=rg(i,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${em(e)}`}}),e.apply(this,n)}}function r1(e){return function(t){return e.apply(this,[rg(t,{mechanism:{data:{handler:em(e)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function r2(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];let i=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(e=>{e in i&&"function"==typeof i[e]&&Z(i,e,function(t){let n={mechanism:{data:{handler:em(t)},handled:!1,type:`auto.browser.browserapierrors.xhr.${e}`}},r=en(t);return r&&(n.mechanism.data.handler=em(r)),rg(t,n)})}),e.apply(this,n)}}function r3(e,t,n){w.document&&w.addEventListener(e,t,n)}function r4(e,t,n){w.document&&w.removeEventListener(e,t,n)}let r5=e=>{let t=!1;return()=>{t||(e(),t=!0)}},r9=e=>{let t=w.requestIdleCallback||w.setTimeout;w.document?.visibilityState==="hidden"?e():(r3("visibilitychange",e=r5(e),{once:!0,capture:!0}),r3("pagehide",e,{once:!0,capture:!0}),t(()=>{e(),r4("visibilitychange",e,{capture:!0}),r4("pagehide",e,{capture:!0})}))},r6=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.lifecycle??"route";return{name:"BrowserSession",setupOnce(){if(void 0===w.document){rQ&&M("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}nt({ignoreDuration:!0});let e=!1;r9(()=>{e||(ni(),e=!0)});let n=eQ(),r=n.getUser();n.addScopeListener(t=>{let n=t.getUser();(r?.id!==n?.id||r?.ip_address!==n?.ip_address)&&(r=n,e&&ni())}),"route"===t&&rH(t=>{let{from:n,to:r}=t;n!==r&&(nt({ignoreDuration:!0}),ni(),e=!0)})}}};function r8(e,t){let n=e.attributes??(e.attributes={});
13Object.entries(t).forEach(e=>{let[t,r]=e;null==r||t in n||(n[t]=r)})}function r7(){try{let e=w.Intl;if(!e)return;let t=e.DateTimeFormat().resolvedOptions();return{locale:t.locale,timezone:t.timeZone,calendar:t.calendar}}catch{return}}let ie=null;function it(e){let t="error";no(t,e),nl(t,ir)}function ir(){ie=w.onerror,w.onerror=function(e,t,n,r,i){return nu("error",{column:r,error:i,line:n,msg:e,url:t}),!!ie&&ie.apply(this,arguments)},w.onerror.__SENTRY_INSTRUMENTED__=!0}let ii=null;function ia(e){let t="unhandledrejection";no(t,e),nl(t,is)}function is(){ii=w.onunhandledrejection,w.onunhandledrejection=function(e){return nu("unhandledrejection",e),!ii||ii.apply(this,arguments)},w.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}let io=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={onerror:!0,onunhandledrejection:!0,...e};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(e){var n,r;t.onerror&&(n=e,it(e=>{var t,r,i,a;let s,o,l,u,c,{stackParser:p,attachStacktrace:d}=iu();if(eZ()!==n||rm>0)return;let{msg:f,url:h,line:m,column:g,error:_}=e,y=(t=rp(p,_||f,void 0,d,!1),r=h,i=m,a=g,0===(c=(u=(l=(o=(s=t.exception=t.exception||{}).values=s.values||[])[0]=o[0]||{}).stacktrace=l.stacktrace||{}).frames=u.frames||[]).length&&c.push({colno:a,lineno:i,filename:function(e){if(z(e)&&0!==e.length)return e.startsWith("data:")?`<${rq(e,!1)}>`:e}(r)??rf(),function:"?",in_app:!0}),t);y.level="error",t8(y,{originalException:_,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})}
13),il("onerror")),t.onunhandledrejection&&(r=e,ia(e=>{var t;let{stackParser:n,attachStacktrace:i}=iu();if(eZ()!==r||rm>0)return;let a=function(e){if(Y(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}(e),s=Y(a)?(t=a,{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(t)}`}]}}):rp(n,a,void 0,i,!0);s.level="error",t8(s,{originalException:a,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})}),il("onunhandledrejection"))}}};function il(e){rQ&&L(`Global Handler attached: ${e}`)}function iu(){let e=eZ();return e?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}function ic(e){return Array.isArray(e.errors)}function ip(e,t,n){e.mechanism={handled:!0,type:"auto.core.linked_errors",...ic(n)&&{is_exception_group:!0},...e.mechanism,exception_id:t}}function id(e,t,n,r){e.mechanism={handled:!0,...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}let ih=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.limit||5,n=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,r,i){!function(e,t,n,r,i,a){if(!i.exception?.values||!a||!U(a.originalException))return;let s=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;s&&(i.exception.values=function e(t,n,r,i,a,s,o,l){if(s.length>=r+1)return s;let u=[...s];if(U(i[a])){ip(o,l,i);let s=t(n,i[a]),c=u.length;id(s,a,c,l),u=e(t,n,r,i[a],a,[s,...u],s,c)}return ic(i)&&i.errors.forEach((s,c)=>{if(U(s)){ip(o,l,i);let p=t(n,s),d=u.length;id(p,`errors[${c}]`,d,l),u=e(t,n,r,s,a,[p,...u],p,d)}}),u}(e,t,r,a.originalException,n,i.exception.values,s,0))}(rs,i.getOptions().stackParser,n,t,e,r)}}};function im(e,t,n,r){let i={filename:e,function:"<anonymous>"===t?"?":t,in_app:!0};return void 0!==n&&(i.lineno=n),void 0!==r&&(i.colno=r),i}let ig=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,i_=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,iy=/\((\S*)(?::(\d+))(?::(\d+))\)/,iv=/at (.+?) ?\(data:(.+?),/,ib=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,iS=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,iE=ed([30,e=>{let t=e.match(iv);if(t)return{filename:`<data:${t[2]}>`,function:t[1]};let n=ig.exec(e);if(n){let[,e,t,r]=n;return im(e,"?",+t,+r)}let r=i_.exec(e);if(r){if(r[2]?.indexOf("eval")===0){let e=iy.exec(r[2]);e&&(r[2]=e[1],r[3]=e[2],r[4]=e[3])}let[e,t]=ix(r[1]||"?",r[2]);return im(t,e,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}}],[50,e=>{let t=ib.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){let e=iS.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],n=t[1]||"?";return[n,e]=ix(n,e),im(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}]),ix=(e,t)=>{let n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:"?",n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},iw="u"<typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,iT={};function ik(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){let t=iT[e];if(t)return t;let n=w[e];if(rv(n))return iT[e]=n.bind(w);let r=w.document;if(r&&"function"==typeof r.createElement)try{let t=r.createElement("iframe");t.hidden=!0,r.head.appendChild(t);let i=t.contentWindow;i?.[e]&&(n=i[e]),r.head.removeChild(t)}catch(t){iw&&M(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,t)}return n?iT[e]=n.bind(w):n}("fetch"),n=0,r=0;async function i(i){let a=i.body.length;n+=a,r++;let s={body:i.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{let n=await t(e.url,s);return{statusCode:n.status,headers:{"x-sentry-rate-limits":n.headers.get("X-Sentry-Rate-Limits"),"retry-after":n.headers.get("Retry-After")}}}catch(e){throw iT.fetch=void 0,e}finally{n-=a,r--}}return function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:nJ(e.bufferSize||64),r={};return{send:function(i){let a=[];if(nP(i,(t,n)=>{let i=nL(n);!function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:eo();return(e[t]||e.all||0)>n}(r,i)?a.push(t):e.recordDroppedEvent("ratelimit_backoff",i)}),0===a.length)return Promise.resolve({});let s=nR(i[0],a),o=t=>{var n;if(n=["client_report"],nP(s,(e,t)=>n.includes(t))){A&&M(`Dropping client report. Will not send outcomes (reason: ${t}).`);return}nP(s,(n,r)=>{e.recordDroppedEvent(t,nL(r))})};return n.add(()=>t({body:function(e){let[t,n]=e,r=JSON.stringify(t);function i(e){"string"==typeof r?r="string"==typeof e?r+e:[nN(r),e]:r.push("string"==typeof e?nN(e):e)}for(let e of n){let[t,n]=e;if(i(`
14${JSON.stringify(t)}
15`),"string"==typeof n||n instanceof Uint8Array)i(n);else{let e;try{e=JSON.stringify(n)}catch{e=JSON.stringify(e_(n))}i(e)}}return"string"==typeof r?r:function(e){let t=new Uint8Array(e.reduce((e,t)=>
15e+t.length,0)),n=0;for(let r of e)t.set(r,n),n+=r.length;return t}(r)}(s)}).then(e=>(413===e.statusCode?(A&&j("Sentry responded with status code 413. Envelope was discarded due to exceeding size limits."),o("send_error")):(A&&void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&M(`Sentry responded with status code ${e.statusCode} to sent event.`),r=function(e,t){let{statusCode:n,headers:r}=t,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:eo(),a={...e},s=r?.["x-sentry-rate-limits"],o=r?.["retry-after"];if(s)for(let e of s.trim().split(",")){let[t,n,,,r]=e.split(":",5),s=parseInt(t,10),o=(isNaN(s)?60:s)*1e3;if(n)for(let e of n.split(";"))"metric_bucket"===e?(!r||r.split(";").includes("custom"))&&(a[e]=i+o):a[e]=i+o;else a.all=i+o}else o?a.all=i+function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:eo(),n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;let r=Date.parse(`${e}`);return isNaN(r)?6e4:r-t}(o,i):429===n&&(a.all=i+6e4);return a}(r,e)),e),e=>{throw o("network_error"),A&&j("Encountered error running transport request:",e),e})).then(e=>e,e=>{if(e===nG)return A&&j("Skipped sending event because buffer is full."),o("queue_overflow"),Promise.resolve({});throw e})},flush:e=>n.drain(e)}}(e,i,nJ(e.bufferSize||40))}let iI=/^HTML(\w*)Element$/;function iA(e){if("u">typeof window&&e===window)return"[Window]";if("u">typeof document&&e===document)return"[Document]";if(function(e){if("u"<typeof Element)return!1;try{return e instanceof Element}catch{return!1}}(e)){let t,n=(t=Object.getPrototypeOf(e),t?.constructor?t.constructor.name:"null prototype");if(iI.test(n))return`[HTMLElement: ${rX(e)}]`}}function i$(e){let t;return[nx(),{name:"FunctionToString",setupOnce(){let e=Function.prototype.toString;try{Function.prototype.toString=function(){let t;for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];let a=en(this);try{nk.has(eZ())&&void 0!==a&&(t=a)}catch{}return e.apply(t??this,r)}}catch{}},setup(e){nk.set(e,!0)}},{name:"ConversationId",setup(e){e.on("spanStart",e=>{let t=eX().getScopeData(),n=eQ().getScopeData(),r=t.conversationId||n.conversationId;if(r){let{op:t,data:n,description:i}=tP(e);if(!t?.startsWith("gen_ai.")&&!n["ai.operationId"]&&!i?.startsWith("ai."))return;e.setAttribute("gen_ai.conversation.id",r)}})}},rZ(),rK(),io(),ih(),{name:"Dedupe",processEvent(e){if(e.type)return e;try{var n,r,i,a,s,o;let l,u,c,p;if(n=e,(r=t)&&(i=n,a=r,l=i.message,u=a.message,(l||u)&&(!l||u)&&(l||!u)&&l===u&&nA(i,a)&&nI(i,a)&&1||(s=n,o=r,c=n$(o),p=n$(s),c&&p&&c.type===p.type&&c.value===p.value&&nA(s,o)&&nI(s,o))))return A&&M("Event dropped due to being a duplicate of previously captured event."),null}catch{}return t=e}},{name:"HttpContext",preprocessEvent(e){if(!w.navigator&&!w.location&&!w.document)return;let t=r_(),n={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:n}},processSpan(e){if(!w.navigator&&!w.location&&!w.document)return;let t=r_();r8(e,{"user_agent.original":t.headers["User-Agent"],...e.is_segment&&{[rR]:e.attributes?.["sentry.op"]!=="http.client"?t.url:void 0,"http.request.header.referer":t.headers.Referer}})}},{name:"CultureContext",preprocessEvent(e){let t=r7();t&&(e.contexts={...e.contexts,culture:{...t,...e.contexts?.culture}})},processSegmentSpan(e){let t=r7();t&&r8(e,{"culture.locale":t.locale,"culture.timezone":t.timezone,"culture.calendar":t.calendar})}},r6()]}var iO=e.i(389959);function iR(e){return G(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e?"[SyntheticEvent]":iA(e)}let iC="u"<typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function iP(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:tJ(),i=r&&tY(r);i&&(A&&L(`[Measurement] Setting measurement on root span: ${e} = ${t} ${n}`),i.addEvent(e,{[tt]:t,[te]:n}))}function iN(e){if(!e||0===e.length)return;let t={};return e.forEach(e=>{let n=e.attributes||{},r=n[te],i=n[tt];"string"==typeof r&&"number"==typeof i&&(t[e.name]={value:i,unit:r})}),t}function iD(){return k(T()).segmentSpanCaptureStrategy}class iL{constructor(e={}){this._traceId=e.traceId||ex(),this._spanId=e.spanId||eD(),this._startTime=e.startTimestamp||eO(),this._links=e.links,this._attributes={},this.setAttributes({[e8]:"manual",[e6]:e.op,...e.attributes}),this._name=e.name,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.endTimestamp&&(this._endTime=e.endTimestamp),this._events=[],this._isStandaloneSpan=e.isStandalone,this._endTime&&this._onSpanEnded()}
15addLink(e){return this._frozen||(this._links?this._links.push(e):this._links=[e]),this}addLinks(e){return this._frozen||(this._links?this._links.push(...e):this._links=e),this}recordException(e,t){}spanContext(){let{_spanId:e,_traceId:t,_sampled:n}=this;return{spanId:e,traceId:t,traceFlags:+!!n}}setAttribute(e,t){return this._frozen?this:(void 0===t?delete this._attributes[e]:this._attributes[e]=t,e===e4&&void 0!==t&&!0===this[tv]&&ee(this,tb,!0),this)}setAttributes(e){return Object.keys(e).forEach(t=>this.setAttribute(t,e[t])),this}updateStartTime(e){this._frozen||(this._startTime=tR(e))}setStatus(e){return this._frozen||(this._status=e),this}updateName(e){return this._frozen?this:(this._name=e,!0!==this[tv]&&this.setAttribute(e4,"custom"),this)}end(e){if(this._endTime){this._frozen=!0===this[tS];return}this._endTime=tR(e),function(e){if(!A)return;let{description:t="< unknown name >",op:n="< unknown op >"}=tP(e),{spanId:r}=e.spanContext(),i=tY(e)===e;L(`[Tracing] Finishing "${n}" ${i?"root ":""}span "${t}" with ID ${r}`)}(this),this._onSpanEnded(),this._frozen=!0===this[tS]}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[e6],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:tq(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[e8],profile_id:this._attributes[tr],exclusive_time:this._attributes[ti],measurements:iN(this._events),is_segment:this._isStandaloneSpan&&tY(this)===this||void 0,segment_id:this._isStandaloneSpan?tY(this).spanContext().spanId:void 0,links:t$(this._links)}}getStreamedSpanJSON(){return{name:this._name??"",span_id:this._spanId,trace_id:this._traceId,parent_span_id:this._parentSpanId,start_timestamp:this._startTime,end_timestamp:this._endTime??this._startTime,is_segment:this._isStandaloneSpan||this===tY(this),status:tU(this._status),attributes:tB(this._attributes,this._status),links:tO(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,n){if(this._frozen)return this;A&&L("[Tracing] Adding an event to span:",e);let r=iM(t)?t:n||eO(),i=iM(t)?{}:t||{},a={name:e,time:tR(r),attributes:i};return this._events.push(a),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){let e=eZ();e&&(e.emit("spanEnd",this),this._isStandaloneSpan||e.emit("afterSpanEnd",this));let t=tY(this),n=this._isStandaloneSpan||this===t;if(this._isStandaloneSpan)return void(this._sampled?function(e){let t=eZ();if(!t)return;let n=e[1];n&&0!==n.length?t.sendEnvelope(e):t.recordDroppedEvent("before_send","span")}(function(e,t){let n=t2(e[0]),r=t?.getDsn(),i=t?.getOptions().tunnel,a={sent_at:new Date(eo()).toISOString(),...!!n.trace_id&&!!n.public_key&&{trace:n},...!!i&&r&&{dsn:tp(r)}},{beforeSendSpan:s,ignoreSpans:o}=t?.getOptions()||{},l=o?.length?e.filter(e=>{let t=tP(e);return!nq({description:t.description,op:t.op,attributes:t.data},o)}):e,u=e.length-l.length;u&&t?.recordDroppedEvent("before_send","span",u);let c=s?e=>{let t=tP(e),n=nO(s)?t:s(t);return n||(tX(),t)}:tP,p=[];for(let e of l){let t=c(e);t&&p.push([{type:"span"},t])}return nR(a,p)}([this],e)):(A&&L("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),e&&e.recordDroppedEvent("sample_rate","span")));if(!n){let e=iD();if(e){let n=tx(this).scope||eX();e.onChildSpanEnded(this,t,e=>this._convertSpanToTransaction(e),n)}return}if(e&&nH(e))return void e.emit("afterSegmentSpanEnd",this);let r=tx(this).scope||eX(),i=iD();if(i)i.onSegmentSpanEnded(e=>this._convertSpanToTransaction(e),r);else{let e=this._convertSpanToTransaction();e&&r.captureEvent(e)}}_convertSpanToTransaction(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!ij(tP(this)))return;this._name||(A&&M("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");let{scope:t,isolationScope:n}=tx(this),r=t?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(!0!==this._sampled)return;e.onSpanCaptured?.(this);let i=[];for(let t of tH(this)){var a;if(t===this||(a=t)instanceof iL&&a.isStandaloneSpan()||e.isSpanAlreadyCaptured?.(t))continue;let n=tP(t);ij(n)&&(e.onSpanCaptured?.(t),i.push(n))}let s=this._attributes[e4];delete this._attributes[tn];let o=!1;
15i.forEach(e=>{delete e.data[tn],e.op?.startsWith("gen_ai.")&&(o=!0)});let l={contexts:{trace:function(e){let{spanId:t,traceId:n}=e.spanContext(),{data:r,op:i,parent_span_id:a,status:s,origin:o,links:l}=tP(e);return{parent_span_id:a,span_id:t,trace_id:n,data:r,op:i,status:s,origin:o,links:l}}(this)},spans:i.length>1e3?i.sort((e,t)=>e.start_timestamp-t.start_timestamp).slice(0,1e3):i,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:n,dynamicSamplingContext:t2(this),hasGenAiSpans:o},request:r,...s&&{transaction_info:{source:s}}},u=iN(this._events);return u&&Object.keys(u).length&&(A&&L("[Measurements] Adding measurements to transaction event",JSON.stringify(u,void 0,2)),l.measurements=u),l}}function iM(e){return e&&"number"==typeof e||e instanceof Date||Array.isArray(e)}function ij(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}function iq(e){let t=eJ(T());return t.startInactiveSpan?t.startInactiveSpan(e):function(e){let t=function(e){let t={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){let n={...t};return n.startTimestamp=tR(e.startTime),delete n.startTime,n}return t}(e),{forceTransaction:n,parentSpan:r}=e;return(e.scope?t=>eV(e.scope,t):void 0!==r?e=>iU(r,e):e=>e())(()=>{var i,a;let s,o=eX(),l=function(e,t){if(t)return t;if(null===t)return;let n=eM(e[ej]);if(!n)return;let r=eZ();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?tY(n):n}(o,r),u=eZ();return e.onlyIfParent&&!l?(i=o,a=u,a?.recordDroppedEvent("no_parent_span","span"),tE(s=new tK({traceId:i.getPropagationContext().traceId}),i,eQ()),s):function(e){var t,n;let r,i,{parentSpan:a,spanArguments:s,forceTransaction:o,scope:l}=e,u=eQ();if(!th()){let e=l.getPropagationContext(),t=new tK({traceId:a?a.spanContext().traceId:e.traceId});return a&&!o&&tz(a,t),tE(t,l,u),t}let c=eZ();if(t=c,n=s,r=t?.getOptions().ignoreSpans,t&&nH(t)&&r?.length&&nq({description:n.name||"",op:n.attributes?.[e6]||n.op,attributes:n.attributes},r)){iB(l)||c?.recordDroppedEvent("ignored","span");let e=new tK({dropReason:"ignored",traceId:a?.spanContext().traceId??l.getPropagationContext().traceId});return a&&!o&&tz(a,e),tE(e,l,u),e}if(a&&!o)i=function(e,t,n,r){let{spanId:i,traceId:a}=e.spanContext(),s=iB(t),o=!s&&tj(e),l=o?new iL({...n,parentSpanId:i,traceId:a,sampled:o}):new tK({traceId:a});tz(e,l),tE(l,t,r);let u=eZ();return u&&(nH(u)&&tV(l)&&(tV(e)&&e.dropReason?(l.dropReason=e.dropReason,u.recordDroppedEvent(e.dropReason,"span")):s||(l.dropReason="sample_rate",u.recordDroppedEvent("sample_rate","span"))),u.emit("spanStart",l),n.endTimestamp&&(u.emit("spanEnd",l),u.emit("afterSpanEnd",l))),l}(a,l,s,u),tz(a,i);else if(a){let e=t2(a),{traceId:t,spanId:n}=a.spanContext(),r=tj(a);ee(i=iF({traceId:t,parentSpanId:n,...s},l,u,r),tZ,e)}else{let{traceId:e,dsc:t,parentSpanId:n,sampled:r}=l.getPropagationContext();i=iF({traceId:e,parentSpanId:n,...s},l,u,r),t&&ee(i,tZ,t)}return!function(e){if(!A)return;let{description:t="< unknown name >",op:n="< unknown op >",parent_span_id:r}=tP(e),{spanId:i}=e.spanContext(),a=tj(e),s=tY(e),o=s===e,l=`[Tracing] Starting ${a?"sampled":"unsampled"} ${o?"root ":""}span`,u=[`op: ${n}`,`name: ${t}`,`ID: ${i}`];if(r&&u.push(`parent ID: ${r}`),!o){let{op:e,description:t}=tP(s);u.push(`root ID: ${s.spanContext().spanId}`),e&&u.push(`root op: ${e}`),t&&u.push(`root description: ${t}`)}L(`${l}
16  ${u.join("\n  ")}`)}(i),i}({parentSpan:l,spanArguments:t,forceTransaction:n,scope:o})})}(e)}function iU(e,t){let n=eJ(T());return n.withActiveSpan?n.withActiveSpan(e,t):eV(n=>(eq(n,e||void 0),t(n)))}function iB(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:eX(),t=eJ(T());return t.isTracingSuppressed?t.isTracingSuppressed(e):!0===e.getScopeData().sdkProcessingMetadata.__SENTRY_SUPPRESS_TRACING__}function iF(e,t,n,r){let i=eZ(),a=i?.getOptions()||{},{name:s=""}=e,o={spanAttributes:{...e.attributes},spanName:s,parentSampled:r};i?.emit("beforeSampling",o,{decision:!1});let l=o.parentSampled??r,u=o.spanAttributes,c=t.getPropagationContext(),p=iB(t),[d,f,h]=p?[!1]:function(e,t,n){let r,i;if(!th(e))return[!1];"function"==typeof e.tracesSampler?(r=e.tracesSampler({...t,inheritOrSampleWith:e=>"number"==typeof t.parentSampleRate?t.parentSampleRate:"boolean"==typeof t.parentSampled?Number(t.parentSampled):e}),i=!0):void 0!==t.parentSampled?r=t.parentSampled:void 0!==e.tracesSampleRate&&(r=e.tracesSampleRate,i=!0);let a=tw(r);if(void 0===a)return A&&M(`[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(r)} of type ${JSON.stringify(typeof r)}.`),[!1];if(!a)return A&&L(`[Tracing] Discarding transaction because ${"function"==typeof e.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),[!1,a,i];let s=n<a;return!s&&A&&L(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(r)})`),[s,a,i]}(a,{name:s,parentSampled:l,attributes:u,normalizedRequest:n.getScopeData().sdkProcessingMetadata.normalizedRequest,parentSampleRate:tw(c.dsc?.sample_rate)},c.sampleRand),m=new iL({...e,attributes:{[e4]:"custom",[e5]:void 0!==f&&h?f:void 0,...u},sampled:d});return d||!i||p||(A&&L("[Tracing] Discarding root span because its trace was not chosen to be sampled."),i.recordDroppedEvent("sample_rate",nH(i)?"span":"transaction")),tE(m,t,n),i&&i.emit("spanStart",m),m}function iW(e){return tV(e)&&"ignored"===e.dropReason}let iz={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3};function iH(e){let t,n,r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=new Map,s=!1,o="externalFinish",l=!i.disableAutoFinish,u=[],{idleTimeout:c=iz.idleTimeout,finalTimeout:p=iz.finalTimeout,childSpanTimeout:d=iz.childSpanTimeout,beforeSpanEnd:f,trimIdleSpanEndTimestamp:h=!0}=i,m=eZ(),g=eX();if(!m||!th()){let e=new tK({traceId:g.getPropagationContext().traceId});return tE(e,g,eQ()),e}let _=tJ(),y=(t=iq(e),eq(eX(),t),A&&L("[Tracing] Started span is an i
16dle span"),t);function v(){n&&(clearTimeout(n),n=void 0)}function b(){r&&(clearTimeout(r),r=void 0)}function S(e){v(),n=setTimeout(()=>{!s&&0===a.size&&l&&(o="idleTimeout",y.end(e))},c)}function E(e){b(),r=setTimeout(()=>{!s&&l&&(o="heartbeatFailed",y.end(e))},d)}function x(e){s=!0,a.clear(),u.forEach(e=>e()),eq(g,_);let t=tP(y),{start_timestamp:n}=t;if(!n)return;t.data[e7]||y.setAttribute(e7,o);let r=t.status;r&&"unknown"!==r||y.setStatus({code:1}),L(`[Tracing] Idle span "${t.op}" finished`);let i=tH(y).filter(e=>e!==y),l=0;i.forEach(t=>{t.isRecording()&&(t.setStatus({code:2,message:"cancelled"}),t.end(e),A&&L("[Tracing] Cancelling span since span ended early",JSON.stringify(t,void 0,2)));let{timestamp:n=0,start_timestamp:r=0}=tP(t),i=r<=e,a=n-r<=(p+c)/1e3;if(A){let e=JSON.stringify(t,void 0,2);i?a||L("[Tracing] Discarding span since it finished after idle span final timeout",e):L("[Tracing] Discarding span since it happened after idle span was finished",e)}(!a||!i)&&(y[tF]&&y[tF].delete(t),l++)}),l>0&&y.setAttribute("sentry.idle_span_discarded_spans",l)}return y.end=new Proxy(y.end,{apply(e,t,n){if(f&&f(y),tV(t))return;let[r,...i]=n,a=tR(r||eO()),s=tH(y).filter(e=>e!==y),o=tP(y);if(!s.length||!h)return x(a),Reflect.apply(e,t,[a,...i]);let l=m.getOptions().ignoreSpans,u=s?.reduce((e,t)=>{let n=tP(t);return!n.timestamp||l&&nq({description:n.description,op:n.op,attributes:n.data},l)?e:e?Math.max(e,n.timestamp):n.timestamp},void 0),c=o.start_timestamp,d=Math.min(c?c+p/1e3:1/0,Math.max(c||-1/0,Math.min(a,u||1/0)));return x(d),Reflect.apply(e,t,[d,...i])}}),u.push(m.on("spanStart",e=>{var t;!(s||e===y||tP(e).timestamp||e instanceof iL&&e.isStandaloneSpan())&&tH(y).includes(e)&&(t=e.spanContext().spanId,v(),a.set(t,!0),E(eO()+d/1e3))})),u.push(m.on("spanEnd",e=>{if(!s){var t;t=e.spanContext().spanId,a.has(t)&&a.delete(t),0===a.size&&(S(eO()+c/1e3),b())}})),u.push(m.on("idleSpanEnableAutoFinish",e=>{e===y&&(l=!0,S(),a.size&&E())})),i.disableAutoFinish||S(),setTimeout(()=>{s||(y.setStatus({code:2,message:"deadline_exceeded"}),o="finalTimeout",y.end())},p),y}let iY=!1,iG=(e,t,n,r)=>{let i,a;return s=>{if(t.value>=0&&(s||r)&&((a=t.value-(i??0))||void 0===i)){var o;i=t.value,t.delta=a,o=t.value,t.rating=o>n[1]?"poor":o>n[0]?"needs-improvement":"good",e(t)}}},iJ=function(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],t=w.performance?.getEntriesByType?.("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t},iX=()=>{let e=iJ();return e?.activationStart??0},iQ=-1,iK=new Set,iV=e=>{if(("pagehide"===e.type||w.document?.visibilityState==="hidden")&&iQ>-1){if("visibilitychange"===e.type||"pagehide"===e.type)for(let e of iK)e();isFinite(iQ)||(iQ="visibilitychange"===e.type?e.timeStamp:0,r4("prerenderingchange",iV,!0))}},iZ=()=>
16{if(w.document&&iQ<0){let e=iX();iQ=(w.document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").filter(t=>"hidden"===t.name&&t.startTime>e)[0]?.startTime)??(w.document?.visibilityState!=="hidden"||w.document?.prerendering?1/0:0),r3("visibilitychange",iV,!0),r3("pagehide",iV,!0),r3("prerenderingchange",iV,!0)}return{get firstHiddenTime(){return iQ},onHidden(e){iK.add(e)}}},i0=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,n=iJ(),r="navigate";return n&&(w.document?.prerendering||iX()>0?r="prerender":w.document?.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:`v5-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,navigationType:r}},i1=new WeakMap;function i2(e,t){try{return i1.get(e)||i1.set(e,new t),i1.get(e)}catch(e){return new t}}class i3{constructor(){this._sessionValue=0,this._sessionEntries=[]}_processEntry(e){if(e.hadRecentInput)return;let t=this._sessionEntries[0],n=this._sessionEntries[this._sessionEntries.length-1];this._sessionValue&&t&&n&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(this._sessionValue+=e.value,this._sessionEntries.push(e)):(this._sessionValue=e.value,this._sessionEntries=[e]),this._onAfterProcessingUnexpectedShift?.(e)}}let i4=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};try{if(PerformanceObserver.supportedEntryTypes.includes(e)){let r=new PerformanceObserver(e=>{Promise.resolve().then(()=>{t(e.getEntries())})});return r.observe({type:e,buffered:!0,...n}),r}}catch{}},i5=e=>{w.document?.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},i9=[1800,3e3],i6=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i5(()=>{let n,r=iZ(),i=i0("FCP"),a=i4("paint",e=>{for(let t of e)"first-contentful-paint"===t.name&&(a.disconnect(),t.startTime<r.firstHiddenTime&&(i.value=Math.max(t.startTime-iX(),0),i.entries.push(t),n(!0)))});a&&(n=iG(e,i,i9,t.reportAllChanges))})},i8=[.1,.25],i7=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i6(r5(()=>{let n,r=i0("CLS",0),i=iZ(),a=i2(t,i3),s=e=>{for(let t of e)a._processEntry(t);a._sessionValue>r.value&&(r.value=a._sessionValue,r.entries=a._sessionEntries,n())},o=i4("layout-shift",s);o&&(n=iG(e,r,i8,t.reportAllChanges),i.onHidden(()=>{s(o.takeRecords()),n(!0)}),w?.setTimeout?.(n))}))},ae=0,at=1/0,an=0,ar=e=>{e.forEach(e=>{e.interactionId&&(at=Math.min(at,e.interactionId),ae=(an=Math.max(an,e.interactionId))?(an-at)/7+1:0)})},ai=()=>h?ae:performance.interactionCount||0,aa=0;class as{constructor(){this._longestInteractionList=[],this._longestInteractionMap=new Map}_resetInteractions(){aa=ai(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){let e=Math.min(this._longestInteractionList.length-1,Math.floor((ai()-aa)/50));return this._longestInteractionList[e]}_processEntry(e){if(this._onBeforeProcessingEntry?.(e),!(e.interactionId||"first-input"===e.entryType))return;let t=this._longestInteractionList.at(-1),n=this._longestInteractionMap.get(e.interactionId);if(n||this._longestInteractionList.length<10||e.duration>t._latency){if(n?e.duration>n._latency?(n.entries=[e],n._latency=e.duration):e.duration===n._latency&&e.startTime===n.entries[0].startTime&&n.entries.push(e):(n={id:e.interactionId,entries:[e],_latency:e.duration},this._longestInteractionMap.set(n.id,n),this._longestInteractionList.push(n)),this._longestInteractionList.sort((e,t)=>t._latency-e._latency),this._longestInteractionList.length>10)for(let e of this._longestInteractionList.splice(10))this._longestInteractionMap.delete(e.id);this._onAfterProcessingINPCandidate?.(n)}}}let ao=[200,500],al=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return;let n=iZ();i5(()=>{let r;"interactionCount"in performance||h||(h=i4("event",ar,{type:"event",buffered:!0,durationThreshold:0}));let i=i0("INP"),a=i2(t,as),s=e=>{r9(()=>{for(let t of e)a._processEntry(t);let t=a._estimateP98LongestInteraction();t&&t._latency!==i.value&&(i.value=t._latency,i.entries=t.entries,r())})},o=i4("event",s,{durationThreshold:t.durationThreshold??40});r=iG(e,i,ao,t.reportAllChanges),o&&(o.observe({type:"first-input",buffered:!0}),n.onHidden(()=>{s(o.takeRecords()),r(!0)}))})};class au{_processEntry(e){this._onBeforeProcessingEntry?.(e)}}let ac=[2500,4e3],ap=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i5(()=>{let n,r=iZ(),i=i0("LCP"),a=i2(t,au),s=e=>{for(let s of(t.reportAllChanges||(e=e.slice(-1)),e))s&&(a._processEntry(s),s.startTime<r.firstHiddenTime&&(i.value=Math.max(s.startTime-iX(),0),i.entries=[s],n()))},o=i4("largest-contentful-paint",s);if(o){n=iG(e,i,ac,t.reportAllChanges);let r=r5(()=>{s(o.takeRecords()),o.disconnect(),n(!0)}),a=e=>{e.isTrusted&&(r9(r),r4(e.type,a,{capture:!0}))};for(let e of["keydown","click","visibilitychange"])r3(e,a,{capture:!0})}})},ad=[800,1800],af=e=>{w.document?.prerendering?i5(()=>af(e)):w.document?.readyState!=="complete"?addEventListener("load",()=>af(e),!0):setTimeout(e)},ah=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=i0("TTFB"),r=iG(e,n,ad,t.reportAllChanges);af(()=>{let e=iJ();e&&(n.value=Math.max(e.responseStart-iX(),0),n.entries=[e],r(!0))})},am={},ag={};function a_(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return ak("cls",e,aE,m,t)}function ay(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return ak("lcp",e,ax,g,t)}function av(e){return ak("inp",e,aT,y)}function ab(e,t){var n;let r;return aI(e,t),ag[e]||(r={},"event"===(n=e)&&(r.durationThreshold=0),i4(n,e=>{aS(n,{entries:e})},r),ag[e]=!0),aA(e,t)}function aS(e,t){let n=am[e];if(n?.length)for(let r of n)try{r(t)}catch(t){iw&&j(`Error while triggering instrumentation handler.
17Type: ${e}
18Name: ${em(r)}
19Error:`,t)}}function aE(){return i7(e=>{aS("cls",{metric:e}),m=e},{reportAllChanges:!0})}function ax(){return ap(e=>{aS("lcp",{metric:e}),g=e},{reportAllChanges:!0})}function aw(){return ah(e=>{aS("ttfb",{metric:e}),_=e})}function aT(){return al(e=>{aS("inp",{metric:e}),y=e})}function ak(e,t,n,r){let i,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return aI(e,t),ag[e]||(i=n(),ag[e]=!0),r&&t({metric:r}),aA(e,t,a?i:void 0)}function aI(e,t){am[e]=am[e]||[],am[e].push(t)}function aA(e,t,n){return()=>{n&&n();let r=am[e];if(!r)return;let i=r.indexOf(t);-1!==i&&r.splice(i,1)}}function a$(e){return"number"==typeof e&&isFinite(e)}function aO(e,t,n,r){let{...i}=r,a=tP(e).start_timestamp;return a&&a>t&&"function"==typeof e.updateStartTime&&e.updateStartTime(t),iU(e,()=>{let e=iq({startTime:t,...i});return e&&e.end(n),e})}function aR(e){let t,n=eZ();if(!n)return;let{name:r,transaction:i,attributes:a,startTime:s}=e,{release:o,environment:l}=n.getOptions(),{userInfo:u}=n.getDataCollectionOptions(),c=n.getIntegrationByName("Replay"),p=c?.getReplayId(),d=eX(),f=d.getUser(),h=void 0!==f?f.email||f.id||f.ip_address:void 0;try{t=d.getScopeData().contexts.profile.profile_id}catch{}return iq({name:r,attributes:{release:o,environment:l,user:h||void 0,profile_id:t||void 0,replay_id:p||void 0,transaction:i,"user_agent.original":w.navigator?.userAgent,"client.address":u?"{{auto}}":void 0,...a},startTime:s,experimental:{standalone:!0}})}function aC(){return w.addEventListener&&w.performance}function aP(e){return e/1e3}function aN(e){try{return PerformanceObserver.supportedEntryTypes.includes(e)}catch{return!1}}function aD(e,t){let n,r,i=!1;function a(e){!i&&r&&t(e,r.spanContext().spanId,r),i=!0}r3("visibilitychange",n=e=>{("pagehide"===e.type||w.document?.visibilityState==="hidden")&&(()=>{a("pagehide")})()},{capture:!0,once:!0}
19),r3("pagehide",n,{capture:!0,once:!0});let s=e.on("beforeStartNavigationSpan",(e,t)=>{t?.isRedirect||(a("navigation"),s(),o())}),o=e.on("afterStartPageLoadSpan",e=>{r=e,o()})}function aL(e){return null!=e&&e>0&&e<=6e4}function aM(e){return e?((eC()||performance.timeOrigin)+e)/1e3:e}function aj(e){let t={};if(void 0!=e.nextHopProtocol){let{name:n,version:r}=function(e){let t="unknown",n="unknown",r="";for(let i of e){if("/"===i){[t,n]=e.split("/");break}if(!isNaN(Number(i))){t="h"===r?"http":r,n=e.split(r)[1];break}r+=i}return r===e&&(t=r),{name:t,version:n}}(e.nextHopProtocol);t["network.protocol.version"]=r,t["network.protocol.name"]=n}return eC()||aC()?.timeOrigin?Object.fromEntries(Object.entries({...t,"http.request.redirect_start":aM(e.redirectStart),"http.request.redirect_end":aM(e.redirectEnd),"http.request.worker_start":aM(e.workerStart),"http.request.fetch_start":aM(e.fetchStart),"http.request.domain_lookup_start":aM(e.domainLookupStart),"http.request.domain_lookup_end":aM(e.domainLookupEnd),"http.request.connect_start":aM(e.connectStart),"http.request.secure_connection_start":aM(e.secureConnectionStart),"http.request.connection_end":aM(e.connectEnd),"http.request.request_start":aM(e.requestStart),"http.request.response_start":aM(e.responseStart),"http.request.response_end":aM(e.responseEnd),"http.request.time_to_first_byte":null!=e.responseStart?e.responseStart/1e3:void 0}).filter(e=>{let[,t]=e;return null!=t})):t}let aq=0,aU={};function aB(){v=void 0,b=void 0,aU={}}function aF(e,t,n,r){var i;let a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:n,s=t["secureConnection"===(i=n)?"connectEnd":"fetch"===i?"domainLookupStart":`${i}End`],o=t[`${n}Start`];o&&s&&aO(e,r+aP(o),r+aP(s),{op:`browser.${a}`,name:t.name,attributes:{[e8]:"auto.ui.browser.metrics",..."redirect"===n&&null!=t.redirectCount?{"http.redirect_count":t.redirectCount}:{}}})}let aW=new WeakMap,az=new WeakMap,aH=["text/event-stream","application/x-ndjson","application/stream+json"],aY=[],aG=new Map,aJ=new Map,aX={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"},aQ=e=>{let{metric:t}=e;if(void 0==t.value)return;let n=aP(t.value);if(n>60)return;let r=t.entries.find(e=>e.duration===t.value&&aX[e.name]);if(!r)return;let{interactionId:i}=r,a=aX[r.name],s=aP(eC()+r.startTime),o=tJ(),l=o?tY(o):void 0,u=null!=i?aG.get(i):void 0,c=u?.span||l,p=c?tP(c).description:eX().getScopeData().transactionName,d=aR({name:u?.elementName||rX(r.target),transaction:p,attributes:{[e8]:"auto.http.browser.inp",[e6]:`ui.interaction.${a}`,[ti]:r.duration},startTime:s});d&&(d.addEvent("inp",{[te]:"millisecond",[tt]:t.value}),d.end(s+n))};function aK(e){let{name:t,op:n,origin:r,metricName:i,value:a,attributes:s,parentSpan:o,reportEvent:l,startTime:u,endTime:c}=e,p=eX().getScopeData().transactionName,d={[e8]:r,[e6]:n,[ti]:0,[`browser.web_vital.${i}.value`]:a,[rO]:p,[r$]:p,"user_agent.original":w.navigator?.userAgent,...s};o&&tN(o).attributes?.[e6]==="pageload"&&(d["sentry.pageload.span_id"]=o.spanContext().spanId),l&&(d[`browser.web_vital.${i}.report_event`]=l);let f=iq({name:t,attributes:d,startTime:u,parentSpan:o});f&&f.end(c??u)}let aV="WebVitals",aZ=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new Set(e.ignore??[]);return{name:aV,setup(n){let r=nH(n),{enableStandaloneClsSpans:i,enableStandaloneLcpSpans:a}=e._experiments??{},s=r||t.has("cls")?void 0:i||!1,o=r||t.has("lcp")?void 0:a||!1,l=function(e){let{recordClsStandaloneSpans:t,recordLcpStandaloneSpans:n,client:r}=e,i=aC();if(i&&eC()){i.mark&&w.performance.mark("sentry-tracing-init");let e=n?function(e){let t,n=0;if(!aN("largest-contentful-paint"))return;let r=ay(e=>{let{metric:r}=e,i=r.entries[r.entries.length-1];i&&aL(r.value)&&(n=r.value,t=i)},!0);aD(e,(e,i)=>{(function(e,t,n,r){if(!aL(e))return;iw&&L(`Sending LCP span (${e})`);let i=aP((eC()||0)+(t?.startTime||0)),a=eX().getScopeData().transactionName,s=t?rX(t.element):"Largest contentful paint",o={[e8]:"auto.http.browser.lcp",[e6]:"ui.webvital.lcp",[ti]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};t&&(t.element&&(o["lcp.element"]=rX(t.element)),t.id&&(o["lcp.id"]=t.id),t.url&&(o["lcp.url"]=t.url),null!=t.loadTime&&(o["lcp.loadTime"]=t.loadTime),null!=t.renderTime&&(o["lcp.renderTime"]=t.renderTime),null!=t.size&&(o["lcp.size"]=t.size));let l=aR({name:s,transaction:a,attributes:o,startTime:i});l&&(l.addEvent("lcp",{[te]:"millisecond",[tt]:e}),l.end(i))})(n,t,i,e),r()})}(r):!1===n?ay(e=>{let{metric:t}=e,n=t.entries[t.entries.length-1];n&&aL(t.value)&&(aU.lcp={value:t.value,unit:"millisecond"},v=n)},!0):void 0,a=t?function(e){let t,n=0;if(!aN("layout-shift"))return;let r=a_(e=>{let{metric:r}=e,i=r.entries[r.entries.length-1];i&&(n=r.value,t=i)},!0);aD(e,(e,i)=>{var a,s,o,l;let u,c,p,d,f;a=n,s=t,o=i,l=e,iw&&L(`Sending CLS span (${a})`),u=s?aP((eC()||0)+s.startTime):eO(),c=eX().getScopeData().transactionName,p=s?rX(s.sources[0]?.node):"Layout shift",d={[e8]:"auto.http.browser.cls",[e
196]:"ui.webvital.cls",[ti]:0,"sentry.pageload.span_id":o,"sentry.report_event":l},s?.sources&&s.sources.forEach((e,t)=>{d[`cls.source.${t+1}`]=rX(e.node)}),(f=aR({name:p,transaction:c,attributes:d,startTime:u}))&&(f.addEvent("cls",{[te]:"",[tt]:a}),f.end(u)),r()})}(r):!1===t?a_(e=>{let{metric:t}=e,n=t.entries[t.entries.length-1];n&&(aU.cls={value:t.value,unit:""},b=n)},!0):void 0,s=ak("ttfb",e=>{let{metric:t}=e;t.entries[t.entries.length-1]&&(aU.ttfb={value:t.value,unit:"millisecond"})},aw,_),o=ab("paint",e=>{let{entries:t}=e,n=iZ();for(let e of t){let t=e.startTime<n.firstHiddenTime;"first-paint"===e.name&&t&&(aU.fp={value:e.startTime,unit:"millisecond"}),"first-contentful-paint"===e.name&&t&&(aU.fcp={value:e.startTime,unit:"millisecond"})}});return()=>{s(),o(),e?.(),a?.()}}return()=>void 0}({recordClsStandaloneSpans:s,recordLcpStandaloneSpans:o,client:n}),u=new WeakSet;n.on("afterStartPageLoadSpan",e=>{u.add(e)}),n.on("spanEnd",e=>{u.delete(e)&&(l(),function(e,t){let n=eC();if(!aC()?.getEntries||!n)return aB();let{spanStreamingEnabled:r,recordClsOnPageloadSpan:i,recordLcpOnPageloadSpan:a}=t,s=aP(n);if("pageload"===tP(e).op){if(function(e){let t=iJ(!1);if(!t)return;let{responseStart:n,requestStart:r}=t;r<=n&&(e["ttfb.requestTime"]={value:n-r,unit:"millisecond"})}(aU),r){let t=(t,n,r)=>{let i=r??`browser.web_vital.${t}.value`;e.setAttribute(i,n),iw&&L("Setting web vital attribute",{[i]:n},"on pageload span")};["ttfb","fp","fcp"].forEach(e=>{aU[e]&&t(e,aU[e].value)}),aU["ttfb.requestTime"]&&t("ttfb.requestTime",aU["ttfb.requestTime"].value,"browser.web_vital.ttfb.request_time")}else{var o,l;i||delete aU.cls,a||delete aU.lcp,Object.entries(aU).forEach(t=>{let[n,r]=t;iP(n,r.value,r.unit,e)}),o=e,l=t,v&&l.recordLcpOnPageloadSpan&&(v.element&&o.setAttribute("lcp.element",rX(v.element)),v.id&&o.setAttribute("lcp.id",v.id),v.url&&o.setAttribute("lcp.url",v.url.trim().slice(0,200)),null!=v.loadTime&&o.setAttribute("lcp.loadTime",v.loadTime),null!=v.renderTime&&o.setAttribute("lcp.renderTime",v.renderTime),o.setAttribute("lcp.size",v.size)),b?.sources&&l.recordClsOnPageloadSpan&&b.sources.forEach((e,t)=>o.setAttribute(`cls.source.${t+1}`,rX(e.node)))}e.setAttribute(r?"browser.performance.time_origin":"performance.timeOrigin",s),e.setAttribute(r?"browser.performance.navigation.activation_start":"performance.activationStart",iX())}aB()}(e,{recordClsOnPageloadSpan:!1===s,recordLcpOnPageloadSpan:!1===o,spanStreamingEnabled:r}))}),r?(t.has("lcp")||function(e){let t,n=0;if(!aN("largest-contentful-paint"))return;let r=ay(e=>{let{metric:r}=e,i=r.entries[r.entries.length-1];i&&aL(r.value)&&(n=r.value,t=i)},!0);aD(e,(e,i,a)=>{(function(e,t,n,r){if(!aL(e))return;iw&&L(`Sending LCP span (${e})`);let i=eC()||0,a=aP(i),s=aP(i+(t?.startTime||0)),o=t?rX(t.element):"Largest contentful paint",l={};t?.element&&(l["browser.web_vital.lcp.element"]=rX(t.element)),t?.id&&(l["browser.web_vital.lcp.id"]=t.id),t?.url&&(l["browser.web_vital.lcp.url"]=t.url),t?.loadTime!=null&&(l["browser.web_vital.lcp.load_time"]=t.loadTime),t?.renderTime!=null&&(l["browser.web_vital.lcp.render_time"]=t.renderTime),t?.size!=null&&(l["browser.web_vital.lcp.size"]=t.size),aK({name:o,op:"ui.webvital.lcp",origin:"auto.http.browser.lcp",metricName:"lcp",value:e,attributes:l,parentSpan:n,reportEvent:r,startTime:a,endTime:s})})(n,t,a,e),r()})}(n),t.has("cls")||function(e){let t,n=0;if(!aN("layout-shift"))return;let r=a_(e=>{let{metric:r}=e,i=r.entries[r.entries.length-1];i&&(n=r.value,t=i)},!0);aD(e,(e,i,a)=>{var s,o,l,u;let c,p,d;s=n,o=t,l=a,u=e,iw&&L(`Sending CLS span (${s})`),c=o?aP((eC()||0)+o.startTime):eO(),p=o?rX(o.sources[0]?.node):"Layout shift",d={},o?.sources&&o.sources.forEach((e,t)=>{d[`browser.web_vital.cls.source.${t+1}`]=rX(e.node)}),aK({name:p,op:"ui.webvital.cls",origin:"auto.http.browser.cls",metricName:"cls",value:s,attributes:d,parentSpan:l,reportEvent:u,startTime:c}),r()})}(n),!t.has("inp")&&aC()&&eC()&&av(e=>{var t,n,r;let i,a,s,o,l,u,c,p,{metric:d}=e;if(null==d.value||aP(d.value)>60)return;let f=d.entries.find(e=>e.duration===d.value&&aX[e.name]);f&&(t=d.value,n=f,iw&&L(`Sending INP span (${t})`),i=aP(eC()+n.startTime),a=aP(t),s=aX[n.name],o=null!=(r=n.interactionId)?aG.get(r):void 0,u=(l=tJ())?tY(l):void 0,p=(c=o?.span||u)?tN(c).name:eX().getScopeData().transactionName,aK({name:o?.elementName||rX(n.target),op:`ui.interaction.${s}`,origin:"auto.http.browser.inp",metricName:"inp",value:t,attributes:{[ti]:n.duration,[rO]:p,[r$]:p},startTime:i,endTime:i+a,parentSpan:c}))})):t.has("inp")||function(){if(aC()&&eC()){let e=av(aQ);()=>{e()}}}()},afterAllSetup(){t.has("inp")||function(){let e=Object.keys(aX);function t(e){let t=e.target;if(!t)return;let n=rX(t),r=Math.round(e.timeStamp);if(aJ.set(r,n),aJ.size>50){let e=aJ.keys().next().value;void 0!==e&&aJ.delete(e)}}
19nU()&&e.forEach(e=>{w.addEventListener(e,t,{capture:!0,passive:!0})});let n=e=>{let{entries:t}=e,n=tJ(),r=n&&tY(n);t.forEach(e=>{if(!("duration"in e))return;let t=e.interactionId;if(null==t||aG.has(t))return;let n=e.target?rX(e.target):function(e){let t=Math.round(e.startTime),n=aJ.get(t);if(!n)for(let e=-5;e<=5;e++){let r=aJ.get(t+e);if(r){n=r;break}}return n||"<unknown>"}(e);if(aY.length>10){let e=aY.shift();aG.delete(e)}aY.push(t),aG.set(t,{span:r,elementName:n})})};ab("event",n),ab("first-input",n)}()}}},a0="sentry_previous_trace";function a1(e){return 1===e.traceFlags}function a2(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.client||eZ();if(e=eZ(),!(e?.getOptions().enabled!==!1&&e?.getTransport())||!n)return{};let r=eJ(T());if(r.getTraceData)return r.getTraceData(t);let i=t.scope||eX(),s=t.span||tJ(),o=tV(s)&&!th(n.getOptions());if(!s&&void 0!==a)return{};let l=s&&!o?function(e){let{traceId:t,spanId:n}=e.spanContext();return tk(t,n,tj(e))}(s):function(e){let{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return tk(t,r,n)}(i),u=function(e){if(e){var t=Object.entries(e).reduce((e,t)=>{let[n,r]=t;return r&&(e[`${ta}${n}`]=r),e},{});return 0!==Object.keys(t).length?Object.entries(t).reduce((e,t,n)=>{let[r,i]=t,a=`${encodeURIComponent(r)}=${encodeURIComponent(i)}`,s=0===n?a:`${e},${a}`;return s.length>8192?(A&&M(`Not adding key: ${r} with val: ${i} to baggage header due to exceeding baggage size limits.`),e):s},""):void 0}}(s?t2(s):t1(n,i));if(!tT.test(l))return M("Invalid sentry-trace data. Cannot generate trace data"),{};let c={"sentry-trace":l,baggage:u};return t.propagateTraceparent&&(c.traceparent=s&&!o?function(e){let{traceId:t,spanId:n}=e.spanContext();return tI(t,n,tj(e))}(s):function(e){let{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return tI(t,r,n)}(i)),c}function a3(e){return"string"==typeof e&&e.split(",").some(e=>e.trim().startsWith(ta))}function a4(e,t,n,r){let i={url:rq(e),type:"fetch","http.method":n,[e8]:r,[e6]:"http.client"};return t&&(rN(t)||(i[rA]=rq(t.href),i[rR]=rq(t.href),i["server.address"]=t.host),t.search&&(i["http.query"]=t.search),t.hash&&(i["http.fragment"]=t.hash)),i}function a5(e){try{return new URL(e,w.location.origin).href}catch{return}}function a9(e){try{return new Headers(e)}catch{return}}let a6={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function a8(e,t){let{url:n}=tP(e).data;if(!n||"string"!=typeof n)return;let r=()=>void setTimeout(i);if(nH(t)){let t=e.end.bind(e);e.end=e=>{let n=e??eO(),a=!1,s=()=>{a||(a=!0,setTimeout(i),t(n),clearTimeout(o))};r=s;let o=setTimeout(s,300)}}let i=ab("resource",t=>{let{entries:i}=t;i.forEach(t=>{"resource"===t.entryType&&"initiatorType"in t&&"string"==typeof t.nextHopProtocol&&("fetch"===t.initiatorType||"xmlhttprequest"===t.initiatorType)&&t.name.endsWith(n)&&(e.setAttributes(aj(t)),r())})})}let a7=/Googlebot|Google-InspectionTool|Storebot-Google|Bingbot|Slurp|DuckDuckBot|Baiduspider|YandexBot|Facebot|facebookexternalhit|LinkedInBot|Twitterbot|Applebot/i;function se(){let e=w.navigator;return!!e?.userAgent&&a7.test(e.userAgent)}let st={...iz,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:"in-memory",consistentTraceSampling:!1,enableReportPageLoaded:!1,_experiments:{},...a6},sn=function(){let e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};"enableElementTiming"in n&&R(()=>{console.warn("[Sentry] `enableElementTiming` is deprecated and no longer has any effect. Use the standalone `elementTimingIntegration` instead.")});let r={name:void 0,source:void 0},i=w.document,{enableInp:a,enableLongTask:s,enableLongAnimationFrame:o,_experiments:{enableInteractions:l,enableStandaloneClsSpans:u,enableStandaloneLcpSpans:c},beforeStartSpan:p,idleTimeout:d,finalTimeout:f,childSpanTimeout:h,markBackgroundSpan:m,traceFetch:g,traceXHR:_,trackFetchStreamPerformance:y,shouldCreateSpanForRequest:v,enableHTTPTimings:b,ignoreResourceSpans:S,ignorePerformanceApiSpans:E,instrumentPageLoad:x,instrumentNavigation:T,detectRedirects:k,linkPreviousTrace:I,consistentTraceSampling:$,enableReportPageLoaded:O,onRequestSpanStart:C,onRequestSpanEnd:P}={...st,...n},N=se();function D(e,n){let a=!(arguments.length>2)||void 0===arguments[2]||arguments[2],s=arguments.length>3?arguments[3]:void 0,o="pageload"===n.op,l=n.name,u=p?p(n):n,c=rD(s||rf()
19),m={...c?.pathname&&{[rC]:c.pathname},...c&&!rN(c)&&{[rR]:c.href},...u.attributes};if(l!==u.name&&(m[e4]="custom"),u.attributes=m,!a){let e=e$();iq({...u,startTime:e}).end(e);return}r.name=u.name,r.source=m[e4];let g=iH(u,{idleTimeout:d,finalTimeout:f,childSpanTimeout:h,disableAutoFinish:o,beforeSpanEnd:n=>{!function(e,t){let n=aC(),r=eC();if(!n?.getEntries||!r)return;let{spanStreamingEnabled:i,ignorePerformanceApiSpans:a,ignoreResourceSpans:s}=t,o=aP(r),l=n.getEntries(),{op:u,start_timestamp:c}=tP(e);l.slice(aq).forEach(t=>{let n=aP(t.startTime),r=aP(Math.max(0,t.duration));if("navigation"!==u||!c||!(o+n<c))switch(t.entryType){case"navigation":var i,l,p,d,f,h;let m,g,_;i=e,l=t,p=o,["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(e=>{aF(i,l,e,p)}),aF(i,l,"secureConnection",p,"TLS/SSL"),aF(i,l,"fetch",p,"cache"),aF(i,l,"domainLookup",p,"DNS"),d=i,f=l,m=(h=p)+aP(f.requestStart),g=h+aP(f.responseEnd),_=h+aP(f.responseStart),f.responseEnd&&(aO(d,m,g,{op:"browser.request",name:f.name,attributes:{[e8]:"auto.ui.browser.metrics"}}),aO(d,_,g,{op:"browser.response",name:f.name,attributes:{[e8]:"auto.ui.browser.metrics"}}));break;case"mark":case"paint":case"measure":!function(e,t,n,r,i,a){if(function(e){if(e?.entryType==="measure")try{return"Components ⚛"===e.detail.devtools.track}catch{return}}(t)||["mark","measure"].includes(t.entryType)&&eE(t.name,a))return;let s=iJ(!1),o=i+Math.max(n,aP(s?s.requestStart:0)),l=i+n,u=l+r,c={[e8]:"auto.resource.browser.metrics"};o!==l&&(c["sentry.browser.measure_happened_before_request"]=!0,c["sentry.browser.measure_start_time"]=o),function(e,t){try{let n=t.detail;if(!n)return;if("object"==typeof n){for(let[t,r]of Object.entries(n))if(r&&Y(r))e[`sentry.browser.measure.detail.${t}`]=r;else if(void 0!==r)try{e[`sentry.browser.measure.detail.${t}`]=JSON.stringify(r)}catch{}return}if(Y(n)){e["sentry.browser.measure.detail"]=n;return}try{e["sentry.browser.measure.detail"]=JSON.stringify(n)}catch{}}catch{}}(c,t),o<=u&&aO(e,o,u,{name:t.name,op:t.entryType,attributes:c})}(e,t,n,r,o,a);break;case"resource":!function(e,t,n,r,i,a,s){var o,l;if("xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType)return;let u=t.initiatorType?`resource.${t.initiatorType}`:"resource.other";if(s?.includes(u))return;let c={[e8]:"auto.resource.browser.metrics"},p=rM(n);p.protocol&&(c["url.scheme"]=p.protocol.split(":").pop()),p.host&&(c["server.address"]=p.host),c["url.same_origin"]=n.includes(w.location.origin),c[rR]=n,o=t,l=c,[["responseStatus","http.response.status_code"],["transferSize","http.response_transfer_size"],["encodedBodySize","http.response_content_length"],["decodedBodySize","http.decoded_response_content_length"],["renderBlockingStatus","resource.render_blocking_status"],["deliveryType","http.response_delivery_type"]].forEach(e=>{let[t,n]=e,r=o[t];null!=r&&("number"==typeof r&&r<0x7fffffff||"string"==typeof r)&&(l[n]=r)});let d={...c,...aj(t)},f=a+r;aO(e,f,f+i,{name:n.replace(w.location.origin,""),op:u,attributes:d})}(e,t,t.name,n,r,o,s)}}),aq=Math.max(l.length-1,0),function(e,t){let n=w.navigator;if(!n)return;let r=n.connection;r&&(r.effectiveType&&e.setAttribute(t?"network.connection.effective_type":"effectiveConnectionType",r.effectiveType),r.type&&e.setAttribute(t?"network.connection.type":"connectionType",r.type),a$(r.rtt)&&(t?e.setAttribute("network.connection.rtt",r.rtt):"pageload"===tP(e).op&&iP("connection.rtt",r.rtt,"millisecond"))),a$(n.deviceMemory)&&(t?e.setAttribute("device.memory.estimated_capacity",n.deviceMemory):e.setAttribute("deviceMemory",`${n.deviceMemory} GB`)),a$(n.hardwareConcurrency)&&(t?e.setAttribute("device.processor_count",n.hardwareConcurrency):e.setAttribute("hardwareConcurrency",String(n.hardwareConcurrency)))}(e,i)}(n,{ignoreResourceSpans:S,ignorePerformanceApiSpans:E,spanStreamingEnabled:nH(e)}),ee(e,so,void 0);let r=eX(),i=r.getPropagationContext();r.setPropagationContext({...i,traceId:g.spanContext().traceId,sampled:tj(g),dsc:t2(n)}),o&&(t=void 0)},trimIdleSpanEndTimestamp:!O});function _(){i&&["interactive","complete"].includes(i.readyState)&&(e.emit("idleSpanEnableAutoFinish",g),i.removeEventListener("readystatechange",_))}o&&O&&(t=g),ee(e,so,g),o&&!O&&i&&(i.addEventListener("readystatechange",_),_(
19))}return{name:"BrowserTracing",setup(n){if(N){rQ&&L("[Tracing] Skipping browserTracingIntegration setup for bot user agent.");return}function r(){let e=tJ(),t=e&&tY(e);if(t){let e="internal_error";A&&L(`[Tracing] Root span: ${e} -> Global error occurred`),t.setStatus({code:2,message:e})}}if(iY||(iY=!0,it(r),ia(r)),o&&w.PerformanceObserver&&PerformanceObserver.supportedEntryTypes?.includes("long-animation-frame")?new PerformanceObserver(e=>{let t=tJ();if(t)for(let n of e.getEntries()){if(!n.scripts[0])continue;let e=aP(eC()+n.startTime),{start_timestamp:r,op:i}=tP(t);if("navigation"===i&&r&&e<r)continue;let a=aP(n.duration),s={[e8]:"auto.ui.browser.metrics"},{invoker:o,invokerType:l,sourceURL:u,sourceFunctionName:c,sourceCharPosition:p}=n.scripts[0];s["browser.script.invoker"]=o,s["browser.script.invoker_type"]=l,u&&(s["code.filepath"]=u),c&&(s["code.function"]=c),-1!==p&&(s["browser.script.source_char_position"]=p),aO(t,e,e+a,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:s})}}).observe({type:"long-animation-frame",buffered:!0}):s&&ab("longtask",e=>{let{entries:t}=e,n=tJ();if(!n)return;let{op:r,start_timestamp:i}=tP(n);for(let e of t){let t=aP(eC()+e.startTime),a=aP(e.duration);"navigation"===r&&i&&t<i||aO(n,t,t+a,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[e8]:"auto.ui.browser.metrics"}})}}),l&&ab("event",e=>{let{entries:t}=e,n=tJ();if(n){for(let e of t)if("click"===e.name){let t=aP(eC()+e.startTime),r=aP(e.duration),i={name:rX(e.target),op:`ui.interaction.${e.name}`,startTime:t,attributes:{[e8]:"auto.ui.browser.metrics"}},a=rh(e.target);a&&(i.attributes["ui.component_name"]=a),aO(n,t,t+r,i)}}}),k&&i){let t=()=>{e=eO()};addEventListener("click",t,{capture:!0}),addEventListener("keydown",t,{capture:!0,passive:!0})}function a(){let e=n[so];e&&!tP(e).timestamp&&(rQ&&L(`[Tracing] Finishing current active span with op: ${tP(e).op}`),e.setAttribute(e7,"cancelled"),e.end())}n.on("startNavigationSpan",(t,r)=>{if(eZ()!==n)return;if(r?.isRedirect){rQ&&M("[Tracing] Detected redirect, navigation span will not be the root span, but a child span."),D(n,{op:"navigation.redirect",...t},!1,r.url);return}e=void 0,a();let i=eX();i.setPropagationContext({traceId:ex(),sampleRand:Math.random(),propagationSpanId:th()?void 0:eD()}),i.setSDKProcessingMetadata({normalizedRequest:void 0}),D(n,{op:"navigation",...t,parentSpan:null,forceTransaction:!0},!0,r?.url)}),n.on("startPageLoadSpan",function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(eZ()!==n)return;a();let r=function(e,t){let n=function(e){let t;if(!e)return;let n=e.match(tT);if(n)return"1"===n[3]?t=!0:"0"===n[3]&&(t=!1),{traceId:n[1],parentSampled:t,parentSpanId:n[2]}}(e),r=ts(t);if(!n?.traceId)return{traceId:ex(),sampleRand:es()};let i=function(e,t){let n=tw(t?.sample_rand);if(void 0!==n)return n;let r=tw(t?.sample_rate);return r&&e?.parentSampled!==void 0?e.parentSampled?es()*r:r+es()*(1-r):es()}(n,r);r&&(r.sample_rand=i.toString());let{traceId:a,parentSpanId:s,parentSampled:o}=n;return{traceId:a,parentSpanId:s,sampled:o,dsc:r||{},sampleRand:i}}(t.sentryTrace||sa("sentry-trace")||ss("sentry-trace"),t.baggage||sa("baggage")||ss("baggage")),i=eX();i.setPropagationContext(r),th()||(i.getPropagationContext().propagationSpanId=eD()),i.setSDKProcessingMetadata({normalizedRequest:r_()}),D(n,{op:"pageload",...e})}),n.on("endPageloadSpan",()=>{O&&t&&(t.setAttribute(e7,"reportPageLoaded"),t.end())})},afterAllSetup(t){var n,i,s,o,p;let S;if(N)return;t.addIntegration&&!t.getIntegrationByName?.(aV)&&t.addIntegration(aZ({ignore:a?[]:["inp"],_experiments:{enableStandaloneClsSpans:u,enableStandaloneLcpSpans:c}}));let E=rf();if("off"!==I&&function(e,t){let{linkPreviousTrace:n,consistentTraceSampling:r}=t,i="session-storage"===n,a=i?function(){try{let e=w.sessionStorage?.getItem(a0);return JSON.parse(e)}catch{return}}():void 0;e.on("spanStart",e=>{if(tY(e)!==e)return;let t=eX().getPropagationContext();a=function(e,t,n){let r=tP(t),i={spanContext:t.spanContext(),startTimestamp:r.start_timestamp,sampleRate:function(){try{let e=Number(r.data?.[e5]??n.dsc?.sample_rate);return Number.isNaN(e)?0:e}catch{return 0}}(),sampleRand:n.sampleRand};if(!e)return i;let a=e.spanContext;return a.traceId===r.trace_id?e:(Date.now()/1e3-e.startTimestamp<=3600&&(rQ&&L(`Adding previous_trace \`${JSON.stringify(a)}\` link to span \`${JSON.stringify({op:r.op,...t.spanContext()})}\``),t.addLink({context:a,attributes:{"sentry.link.type":"previous_trace"}}),t.setAttribute("sentry.previous_trace",`${a.traceId}-${a.spanId}-${+!!a1(a)}`)),i)}(a,e,t),i&&function(e){try{w.sessionStorage.setItem(a0,JSON.stringify(e))}catch(e){rQ&&M("Could not store previous trace in sessionStorage",e)}}(a)});let s=!0;r&&e.on("beforeSampling",e=>
19{if(!a)return;let t=eX(),n=t.getPropagationContext();if(s&&n.parentSpanId){s=!1;return}t.setPropagationContext({...n,dsc:{...n.dsc,sample_rate:String(a.sampleRate),sampled:String(a1(a.spanContext))},sampleRand:a.sampleRand}),e.parentSampled=a1(a.spanContext),e.parentSampleRate=a.sampleRate,e.spanAttributes={...e.spanAttributes,[e9]:a.sampleRate}})}(t,{linkPreviousTrace:I,consistentTraceSampling:$}),w.location){if(x){let e=eC();sr(t,{name:w.location.pathname,startTime:e?e/1e3:void 0,attributes:{[e4]:"url",[e8]:"auto.pageload.browser"}})}T&&rH(n=>{var r,i;let a,s,{to:o,from:l}=n;if(void 0===l&&E?.indexOf(o)!==-1){E=void 0;return}E=void 0;let u=rD(o),c=t[so],p=c&&k&&(r=c,i=e,a=tP(r),!((s=e$())-a.start_timestamp>1.5)&&(!i||!(s-i<=1.5)));si(t,{name:u?.pathname||w.location.pathname,attributes:{[e4]:"url",[e8]:"auto.navigation.browser"}},{url:o,isRedirect:p})})}m&&(w.document?w.document.addEventListener("visibilitychange",()=>{let e=tJ();if(!e)return;let t=tY(e);if(w.document.hidden&&t){let e="cancelled",{op:n,status:r}=tP(t);rQ&&L(`[Tracing] Transaction: ${e} -> since tab moved to the background, op: ${n}`),r||t.setStatus({code:2,message:e}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):rQ&&M("[Tracing] Could not set up background tab detection due to lack of global document")),l&&(n=t,i=d,s=f,o=h,p=r,w.document&&addEventListener("click",()=>{let e="ui.action.click",t=function(e){return e[so]}(n);if(t&&["navigation","pageload"].includes(tP(t).op)){rQ&&M(`[Tracing] Did not create ${e} span because a pageload or navigation span is in progress.`);return}if(S&&(S.setAttribute(e7,"interactionInterrupted"),S.end(),S=void 0),!p.name){rQ&&M(`[Tracing] Did not create ${e} transaction because _latestRouteName is missing.`);return}S=iH({name:p.name,op:e,attributes:{[e4]:p.source||"url"}},{idleTimeout:i,finalTimeout:s,childSpanTimeout:o})},{capture:!0})),function(e,t){let{traceFetch:n,traceXHR:r,shouldCreateSpanForRequest:i,enableHTTPTimings:a,tracePropagationTargets:s,onRequestSpanStart:o,onRequestSpanEnd:l}={...a6,...t},u="function"==typeof i?i:e=>!0,c=e=>(function(e,t){let n=rf();if(n){let r,i;try{r=new URL(e,n),i=new URL(n).origin}catch{return!1}let a=r.origin===i;return t?eE(r.toString(),t)||a&&eE(r.pathname,t):a}{let n=!!e.match(/^\/(?!\/)/);return t?eE(e,t):n}})(e,s),p={},d=e.getOptions().propagateTraceparent;n&&rb(t=>{let n=function(e,t,n,r,i){if(!e.fetchData)return;let{method:a,url:s}=e.fetchData,o=th()&&t(s);if(e.endTimestamp){var l,u,c;let t,n=e.fetchData.__span;if(!n)return;let a=r[n];a&&(o&&(function(e,t){if(t.response){tg(e,t.response.status);let n=t.response?.headers?.get("content-length");if(n){let t=parseInt(n);t>0&&e.setAttribute("http.response_content_length",t)}}else t.error&&e.setStatus({code:2,message:"internal_error"});e.end()}(a,e),l=a,u=e,t="object"==typeof(c=i)&&null!==c?c.onRequestSpanEnd:void 0,t?.(l,{headers:u.response?.headers,error:u.error})),delete r[n]);return}let{spanOrigin:p="auto.http.browser",propagateTraceparent:d=!1}="object"==typeof i?i:{spanOrigin:i},f=eZ(),h=!!tJ(),m=h||!!f&&nH(f),g=o&&m?iq(function(e,t,n){if(e.startsWith("data:")){let r=rq(e);return{name:`${t} ${r}`,attributes:a4(e,void 0,t,n)}}let r=rD(e),i=r?rL(r):e;return{name:`${t} ${i}`,attributes:a4(e,r,t,n)}}(s,a,p)):new tK,_=iW(g)&&h?void 0:g;if(o&&!m&&f?.recordDroppedEvent("no_parent_span","span"),e.fetchData.__span=g.spanContext().spanId,r[g.spanContext().spanId]=g,n(e.fetchData.url)){let t=e.args[0],n={...e.args[1]||{}},r=function(e,t,n,r){var i,a;let s=a2({span:n,propagateTraceparent:r}),o=s["sentry-trace"],l=s.baggage,u=s.traceparent;if(!o)return;let c=t.headers||(V(e)?e.headers:void 0);if(!c)return{"sentry-trace":o,...l&&{baggage:l},...u&&{traceparent:u}};if(i=c,"u">typeof Headers&&K(i,Headers)){let e=new Headers(c);if(e.get("sentry-trace")||e.set("sentry-trace",o),r&&u&&!e.get("traceparent")&&e.set("traceparent",u),l){let t=e.get("baggage");t?a3(t)||e.set("baggage",`${t},${l}`):e.set("baggage",l)}return e}if(Array.isArray(a=c)&&a.every(e=>Array.isArray(e)&&2===e.length&&"string"==typeof e[0])){let e=[...c];e.find(e=>"sentry-trace"===e[0])||e.push(["sentry-trace",o]),r&&u&&!e.find(e=>"traceparent"===e[0])&&e.push(["traceparent",u]);let t=c.find(e=>"baggage"===e[0]&&"string"==typeof e[1]&&a3(e[1]));return l&&!t&&e.push(["baggage",l]),e}{let e="sentry-trace"in c?c["sentry-trace"]:void 0,t="traceparent"in c?c.traceparent:void 0,n="baggage"in c?c.baggage:void 0,i=n?Array.isArray(n)?[...n]:[n]:[],a=n&&(Array.isArray(n)?n.find(e=>a3(e)):a3(n));l&&!a&&i.push(l);let s=Object.assign({},c,{"sentry-trace":e??o,...i.length>0&&{baggage:i.join(",")}});return r&&u&&!t&&(s.traceparent=u),s}}(t,n,th()&&m?_:void 0,d);r&&(e.args[1]=n,n.headers=r)}if(f){let t={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};f.emit("beforeOutgoingRequestSpan",g,t)}return g}(t,u,c,p,{propagateTraceparent:d,onRequestSpanEnd:l});if(n){let r=a5(t.fetchData.url),i=r?rM(r).host:void 0,s=r?rq(r):void 0;
19n.setAttributes({[rA]:s,[rR]:s,"server.address":i}),a&&a8(n,e),o?.(n,{headers:t.headers})}}),r&&rW(t=>{let n=function(e,t,n,r,i,a){let s=e.xhr,o=s?.[rF];if(!s||s.__sentry_own_request__||!o)return;let{url:l,method:u}=o,c=th()&&t(l);if(e.endTimestamp){let t=s.__sentry_xhr_span_id__;if(!t)return;let n=r[t];n&&(c&&void 0!==o.status_code&&(tg(n,o.status_code),n.end(),a?.(n,{headers:a9(function(e){let t;try{t=e.getAllResponseHeaders()}catch(t){return iw&&j(t,"Failed to get xhr response headers",e),{}}return t?t.split("\r\n").reduce((e,t)=>{let[n,r]=t.split(": ");return r&&(e[n.toLowerCase()]=r),e},{}):{}}(s)),error:e.error})),delete r[t]);return}let p=a5(l),d=p?rM(p):rM(l),f=p?rq(p):void 0,h=rq(rj(l)),m=eZ(),g=!!tJ(),_=g||!!m&&nH(m),y=c&&_?iq({name:`${u} ${h}`,attributes:{url:rq(l),type:"xhr","http.method":u,"http.url":f,[rR]:f,"server.address":d?.host,[e8]:"auto.http.browser",[e6]:"http.client",...d?.search&&{"http.query":d?.search},...d?.hash&&{"http.fragment":d?.hash}}}):new tK,v=iW(y)&&g?void 0:y;return c&&!_&&m?.recordDroppedEvent("no_parent_span","span"),s.__sentry_xhr_span_id__=y.spanContext().spanId,r[s.__sentry_xhr_span_id__]=y,n(l)&&function(e,t,n){let{"sentry-trace":r,baggage:i,traceparent:a}=a2({span:t,propagateTraceparent:n});r&&function(e,t,n,r){let i=e.__sentry_xhr_v3__?.request_headers;if(!i?.["sentry-trace"]&&e.setRequestHeader)try{if(e.setRequestHeader("sentry-trace",t),r&&!i?.traceparent&&e.setRequestHeader("traceparent",r),n){let t=i?.baggage;t&&t.split(",").some(e=>e.trim().startsWith("sentry-"))||e.setRequestHeader("baggage",n)}}catch{}}(e,r,i,a)}(s,th()&&_?v:void 0,i),m&&m.emit("beforeOutgoingRequestSpan",y,e),y}(t,u,c,p,d,l);n&&(a&&a8(n,e),o?.(n,{headers:a9(t.xhr.__sentry_xhr_v3__?.request_headers)}))})}(t,{traceFetch:g,traceXHR:_,tracePropagationTargets:t.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:v,enableHTTPTimings:b,onRequestSpanStart:C,onRequestSpanEnd:P}),y&&t.addIntegration({name:"FetchStreamPerformance",setup(){let e;no(e="fetch-body-resolved",e=>{if(e.response){let t=aW.get(e.response);if(t&&e.endTimestamp){t.end(e.endTimestamp);let n=az.get(e.response);n&&clearTimeout(n)}}}),nl(e,()=>rS(rx)),rb(e=>{if(e.endTimestamp&&e.response){let t=e.response.headers?.get("content-type")||"";if(e.response.headers?.get("content-length")||!aH.some(e=>t.startsWith(e)))return;let n=e.fetchData?.url||"",r=e.fetchData?.method||"GET",i=rD(n),a=n.startsWith("data:")?rq(n):i?rL(i):n,s=iq({name:`${r} ${a}`,startTime:e.endTimestamp,attributes:{url:rq(n),"http.method":r,type:"fetch",[e6]:"http.client.stream",[e8]:"auto.http.browser.stream"}});aW.set(e.response,s);let o=setTimeout(()=>{s.isRecording()&&s.end()},9e4);az.set(e.response,o)}})}})}}};function sr(e,t,n){e.emit("startPageLoadSpan",t,n),eX().setTransactionName(t.name);let r=e[so];return r&&e.emit("afterStartPageLoadSpan",r),r}function si(e,t,n){let{url:r,isRedirect:i}=n||{};e.emit("beforeStartNavigationSpan",t,{isRedirect:i,url:r}),e.emit("startNavigationSpan",t,{isRedirect:i,url:r});let a=eX();return a.setTransactionName(t.name),r&&!i&&a.setSDKProcessingMetadata({normalizedRequest:{...r_(),url:r}}),e[so]}function sa(e){let t=w.document,n=t?.querySelector(`meta[name=${e}]`);return n?.getAttribute("content")||void 0}function ss(e){let t=w.performance?.getEntriesByType?.("navigation")[0],n=t?.serverTiming?.find(t=>t.name===e);return n?.description}let so="_sentry_idleSpan";function sl(e){try{return new URL(e,w.location.origin).toString()}catch{return e}}let su=null,sc=new Map,sp=new Map;function sd(e){let t=e.split("/").filter(Boolean),n=0;for(let e of t)if(e.startsWith(":")){let t=e.substring(1);t.endsWith("*?")?n+=1e3:t.endsWith("*")?n+=100:n+=10}return t.length>0&&(n+=1/t.length),n}function sf(e){if(sc.has(e))return sc.get(e)??null;try{let t=new RegExp(e);return sc.set(e,t),t}catch(t){return iC&&M("Could not compile regex",{regexString:e,error:t}),null}}function sh(){if(!w?._sentryRouteManifest||"string"!=typeof w._sentryRouteManifest)return null;let e=w._sentryRouteManifest;if(su&&S===e)return su;sc.clear(),sp.clear();let t={staticRoutes:[],dynamicRoutes:[],isrRoutes:[]};try{if(t=JSON.parse(e),!Array.isArray(t.staticRoutes)||!Array.isArray(t.dynamicRoutes))return null;return su=t,S=e,t}catch{return iC&&M("Could not extract route manifest"),null}}let sm=e=>{let t=sh();if(!t)return;let n=e.length>1&&e.endsWith("/")?e.slice(0,-1):e;if(sp.has(n))return sp.get(n);let{staticRoutes:r,dynamicRoutes:i}=t;if(!Array.isArray(r)||!Array.isArray(i))return;let a=(function(e,t,n){let r=[];if(t.some(t=>t.path===e))return r;for(let t of n)if(t.regex){let n=sf(t.regex);n?.test(e)&&r.push(t.path)}if(!e.startsWith("/:")){for(let t of n)if(t.hasOptionalPrefix&&t.regex){let n="/"===e?"/SENTRY_OPTIONAL_PREFIX":`/SENTRY_OPTIONAL_PREFIX${e}`,i=sf(t.regex);i?.test(n)&&r.push(t.path)}}return r})(n,r,i).sort((e,t)=>
19sd(e)-sd(t))[0];return sp.set(n,a),a};function sg(e){return e.length>1&&e.endsWith("/")?e.slice(0,-1):e}let s_="incomplete-app-router-transaction",sy={current:void 0};function sv(e){try{return new URL(e,"http://example.com/").pathname}catch{return"/"}}let sb=new WeakSet;function sS(e,t,n){sb.has(t)||(sb.add(t),["back","forward","push","replace"].forEach(r=>{t?.[r]&&(t[r]=new Proxy(t[r],{apply(t,i,a){!1;let s=s_,o={[e6]:"navigation",[e8]:"auto.navigation.nextjs.app_router_instrumentation",[e4]:"url"},l=a[0],u=E.default.env._sentryBasePath??w._sentryBasePath,c=u&&"string"==typeof l&&!l.startsWith(u)?`${u}${l}`:l;"push"===r?(s=sg(sv(c)),o["navigation.type"]="router.push"):"replace"===r?(s=sg(sv(c)),o["navigation.type"]="router.replace"):"back"===r?o["navigation.type"]="router.back":"forward"===r&&(o["navigation.type"]="router.forward");let p=sm(s),d="back"===r||"forward"===r?void 0:sl(c);return n.current=si(e,{name:p??s,attributes:{...o,[e4]:p?"route":"url",...p&&{[rP]:p}}},d?{url:d}:void 0),t.apply(i,a)}}))}))}var sE=e.i(395122);let sx=sE.default.events?sE.default:sE.default.default,sw=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function sT(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let r="",i=!1;for(let e=t.length-1;e>=-1&&!i;e--){let n=e>=0?t[e]:"/";n&&(r=`${n}/${r}`,i="/"===n.charAt(0))}return r=(function(e,t){let n=0;for(let t=e.length-1;t>=0;t--){let r=e[t];"."===r?e.splice(t,1):".."===r?(e.splice(t,1),n++):n&&(e.splice(t,1),n--)}if(t)for(;n--;)e.unshift("..");return e})(r.split("/").filter(e=>!!e),!i).join("/"),(i?"/":"")+r||"."}function sk(e){let t=0;for(;t<e.length&&""===e[t];t++);let n=e.length-1;for(;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}let sI=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.root,n=e.prefix||"app:///",r="window"in w&&!!w.window,i=e.iteratee||function(e){let{isBrowser:t,root:n,prefix:r}=e;return e=>{if(!e.filename)return e;let i=/^[a-zA-Z]:\\/.test(e.filename)||e.filename.includes("\\")&&!e.filename.includes("/"),a=/^\//.test(e.filename);if(t){if(n){let t=e.filename;0===t.indexOf(n)&&(e.filename=t.replace(n,r))}}else if(i||a){let t,a,s=i?e.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):e.filename,o=n?function(e,t){e=sT(e).slice(1),t=sT(t).slice(1);let n=sk(e.split("/")),r=sk(t.split("/")),i=Math.min(n.length,r.length),a=i;for(let e=0;e<i;e++)if(n[e]!==r[e]){a=e;break}let s=[];for(let e=a;e<n.length;e++)s.push("..");return(s=s.concat(r.slice(a))).join("/")}(n,s):(t=s.length>1024?`<truncated>${s.slice(-1024)}`:s,(a=sw.exec(t))?a.slice(1):[])[2]||"";e.filename=`${r}${o}`}return e}}({isBrowser:r,root:t,prefix:n});return{name:"RewriteFrames",processEvent(e){let t=e;return e.exception&&Array.isArray(e.exception.values)&&(t=function(e){try{return{...e,exception:{...e.exception,values:e.exception.values.map(e=>{var t;return{...e,...e.stacktrace&&{stacktrace:{...t=e.stacktrace,frames:t?.frames?.map(e=>i(e))}}}})}}}catch{return e}}(t)),t}}},sA=/\/_next\/static\/chunks\/(main-|main-app-|polyfills-|webpack-|framework-|framework\.)[0-9a-f]+\.js(:\d+)*$/,s$=new class{constructor(e){this._maxSize=e,this._cache=new Map}get size(){return this._cache.size}get(e){let t=this._cache.get(e);if(void 0!==t)return this._cache.delete(e),this._cache.set(e,t),t}set(e,t){if(this._cache.size>=this._maxSize){let e=this._cache.keys().next().value;this._cache.delete(e)}this._cache.set(e,t)}remove(e){let t=this._cache.get(e);return t&&this._cache.delete(e),t}clear(){this._cache.clear()}keys(){return Array.from(this._cache.keys())}values(){let e=[];return this._cache.forEach(t=>e.push(t)),e}}(100),sO=!1,sR=new Map,sC=new Set,sP=e=>({name:"ThirdPartyErrorsFilter",setup(e){e.on("beforeEnvelope",e=>{nP(e,(e,t)=>{if("event"===t){let t=Array.isArray(e)?e[1]:void 0;t&&(t.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{delete e.module_metadata})}),e[1]=t)}})}),e.on("applyFrameMetadata",t=>{var n;t.type||(n=e.getOptions().stackParser,t.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{if(!e.filename||e.module_metadata)return;let t=function(e,t){if(w._sentryModuleMetadata)for(let t of Object.keys(w._sentryModuleMetadata)){let n=w._sentryModuleMetadata[t];if(!sC.has(t)){for(let r of(sC.add(t),e(t).reverse()))if(r.filename){sR.set(r.filename,n);break}}}return sR.get(t)}(n,e.filename);t&&(e.module_metadata=t)})}
19))})},preprocessEvent(t){e.ignoreSentryInternalFrames&&(w._sentryWrappedDepth??0)>0&&(t.sdkProcessingMetadata={...t.sdkProcessingMetadata,insideSentryWrapped:!0})},processEvent(t){let n=!!e.ignoreSentryInternalFrames&&t.sdkProcessingMetadata?.insideSentryWrapped===!0&&t.exception?.values?.length===1,r=function(e,t,n){let r=eg(e);if(r)return r.filter((e,r)=>!!e.filename&&(null!=e.lineno||null!=e.colno||null!=e.instruction_addr)&&(!t||!function(e,t,n){var r;if(0!==t)return!1;if(n&&!(r=e).context_line&&!r.pre_context&&r.function&&r.function.length<=2||"sentryWrapped"===e.function)return!0;if(!e.context_line||!e.filename||!e.filename.includes("sentry")||!e.filename.includes("helpers")||!e.context_line.includes(sL))return!1;if(e.pre_context){let t=e.pre_context.length;for(let n=0;n<t;n++)if(e.pre_context[n]?.includes(sD))return!0}return!1}(e,r,!!n))).map(e=>e.module_metadata?Object.keys(e.module_metadata).filter(e=>e.startsWith(sN)).map(e=>e.slice(sN.length)):[])}(t,e.ignoreSentryInternalFrames,n);if(r&&r["drop-error-if-contains-third-party-frames"===e.behaviour||"apply-tag-if-contains-third-party-frames"===e.behaviour?"some":"every"](t=>!t.some(t=>e.filterKeys.includes(t)))){if("drop-error-if-contains-third-party-frames"===e.behaviour||"drop-error-if-exclusively-contains-third-party-frames"===e.behaviour)return null;t.tags={...t.tags,third_party_code:!0}}return t}}),sN="_sentryBundlerPluginAppKey:",sD="Attempt to invoke user-land function",sL="fn.apply(this, wrappedArguments)",sM=new Set([]),sj=async(t,n)=>t.message?.startsWith("Abort fetching component for route:")||t.message?.startsWith("[GACTS]")||(await e.A(850928)).default(n.originalException)?null:t,sq=[],sU=e=>{sq.push(e)},sB=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let r=eZ();if(!r)return void sU(()=>sB(...t));let{sampleRate:i,beforeSend:a}=r.getOptions();try{r.getOptions().sampleRate=1,r.getOptions().beforeSend=e=>e,r.captureMessage(...t)}catch(e){console.error(e)}finally{r.getOptions().sampleRate=i,r.getOptions().beforeSend=a}},sF=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let r=eZ();if(!r)return void sU(()=>sF(...t));let{sampleRate:i,beforeSend:a}=r.getOptions();try{r.getOptions().sampleRate=1,r.getOptions().beforeSend=e=>e,r.captureException(...t)}catch(e){console.error(e)}finally{r.getOptions().sampleRate=i,r.getOptions().beforeSend=a}};e.s(["captureSentryException",0,sF,"captureSentryMessage",0,sB,"initSentry",0,()=>{eZ()||(!function(e){let t,r,i,a;sO&&R(()=>{console.warn("[@sentry/nextjs] You are calling `Sentry.init()` more than once on the client. This can happen if you have both a `sentry.client.config.ts` and a `instrumentation-client.ts` file with `Sentry.init()` calls. It is recommended to call `Sentry.init()` once in `instrumentation-client.ts`.")}),sO=!0,!iC&&e.debug&&R(()=>{console.warn("[@sentry/nextjs] You have enabled `debug: true`, but Sentry debug logging was removed from your bundle (likely via `withSentryConfig({ disableLogger: true })` / `webpack.treeshake.removeDebugLogging: true`). Set that option to `false` to see Sentry debug output.")}),("u"<typeof __SENTRY_TRACING__||__SENTRY_TRACING__)&&function(){w.document&&function(e){let t=sm(e)||e,n=s$.get(t);if(void 0!==n)return n;let r=sh();if(!r?.isrRoutes||!Array.isArray(r.isrRoutes)||0===r.isrRoutes.length)return s$.set(t,!1),!1;let i=r.isrRoutes.includes(t);return s$.set(t,i),i}(w.location.pathname)&&(e("sentry-trace"),e("baggage"));function e(e){try{let t=w.document.querySelector(`meta[name="${e}"]`);t&&t.remove()}catch{}}}();let s={environment:e.environment||E.default.env.SENTRY_ENVIRONMENT||((t=E.default.env.NEXT_PUBLIC_VERCEL_ENV)?`vercel-${t}`:void 0)||"production",defaultIntegrations:(r=i$(e),("u"<typeof __SENTRY_TRACING__||__SENTRY_TRACING__)&&r.push(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=sn({...e,instrumentNavigation:!1,instrumentPageLoad:!1,onRequestSpanStart(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];let[i,{headers:a}]=n;return a?.get("next-router-prefetch")&&i?.setAttribute("http.request.prefetch",!0),e.onRequestSpanStart?.(...n)}}),{instrumentPageLoad:n=!0,instrumentNavigation:r=!0}=e;return{...t,afterAllSetup(e){!se()&&(r&&function(e){if(w.document.getElementById("__NEXT_DATA__"))"false"!==E.default.env._sentryHasPagesRouter&&sx.events.on("routeChangeStart",t=>{let n,r,i=rj(t),a=function(e){let t=w.__BUILD_MANIFEST?.sortedPages;if(t)return t.find(t=>{let n,r,i,a=(n=t.split("/"),r="",n[n.length-1]?.match(/^\[\[\.\.\..+\]\]$/)&&(n.pop(),r="(?:/(.+?))?"),i=n.map(e=>e.replace(/^\[\.\.\..+\]$/,"(.+?)").replace(/^\[.*\]$/,"([^/]+?)")).join("/"),RegExp(`^${i}${r}(?:/)?$`));return e.match(a)})}(i);a?(n=a,r="route"):(n=i,r="url"),si(e,{name:n,attributes:{[e6]:"navigation",[e8]:"auto.navigation.nextjs.pages_router_instrumentation",[e4]:r,..."route"===r&&{[rP]:n}}},{url:sl(t)})});else{let t,n,r;w.addEventListener("popstate",()=>{var t,n,r;let i=sg(w.location.pathname),a=sm(i);sy.current?.isRecording()?(sy.current.updateName(a??i),sy.current.setAttribute(e4,a?"route":"url"),a&&sy.current.setAttribute(rP,a),t=sy.current,n=i,r=w.location.href,t.setAttributes({[rC]:n,[rR]:sl(r)})):sy.current=si(e,{name:a??i,attributes:{[e8]:"auto.navigation.nextjs.app_router_instrumentation",[e4]:a?"route":"url","navigation.type":"browser.popstate",...a&&{[rP]:a}}},{url:sl(i)})}),t=!1,n=0,r=setInterval(()=>{n++;let i=w?.next?.router??w?.nd?.router;t||n>500?clearInterval(r):i&&(clearInterval(r),t=!0,sS(e,i,sy),["nd","next"].forEach(t=>{let n=w[t];n&&(w[t]=new Proxy(n,{set:(t,n,r)=>("router"===n&&"object"==typeof r&&null!==r&&sS(e,r,sy),t[n]=r,!0)}))}))},20)}}(e),t.afterAllSetup(e),n&&function(e){if(w.document.getElementById("__NEXT_DATA__"))!function(e){let{route:t,params:n,sentryTrace:r,baggage:i}=function(){let e,t=w.document.getElementById("__NEXT_DATA__");if(t?.innerHTML)try{e=JSON.parse(t.innerHTML)}catch{iC&&M("Could not extract __NEXT_DATA__")}if(!e)return{};let n={},{page:r,query:i,props:a}=e;return n.route=r,n.params=i,a?.pageProps&&(n.sentryTrace=a.pageProps._sentryTraceData,n.baggage=a.pageProps._sentryBaggage),n}(),a=to(i),s=t||w.location.pathname;a?.["sentry-transaction"]&&"/_error"===s&&(s=(s=a["sentry-transaction"]).replace(/^(GET|POST|PUT|DELETE|PATCH|HEAD|OPTIONS|TRACE|CONNECT)\s+/i,""));let o=eC();sr(e,{name:s,startTime:o?o/1e3:void 0,attributes:{[e6]:"pageload",[e8]:"auto.pageload.nextjs.pages_router_instrumentation",[e4]:t?"route":"url",...t&&{[rP]:t},...n&&{...n}}},{sentryTrace:r,baggage:i})}(e);else{let t,n,r;n=sm(t=sg(w.location.pathname)),sr(e,{name:n??t,startTime:(r=eC())?r/1e3:void 0,attributes:{[e6]:"pageload",[e8]:"auto.pageload.nextjs.app_router_instrumentation",[e4]:n?"route":"url",...n&&{[rP]:n}}})}}(e))}}}()),i=E.default.env._sentryBasePath||w._sentryBasePath,a="true"===E.default.env._experimentalThirdPartyOriginStackFrames||"true"===w._experimentalThirdPartyOriginStackFrames,r.push((e=>{let{assetPrefix:t,basePath:n,rewriteFramesAssetPrefixPath:r,experimentalThirdPartyOriginStackFrames:i}=e;return{...sI({iteratee:e=>{if(i){let r="u">typeof window&&window.location?window.location.origin:"";if(e.filename?.startsWith(r)&&!e.filename.endsWith(".js"))return e;if(t)e.filename?.startsWith(t)&&(e.filename=e.filename.replace(t,"app://"));else if(n)try{let{origin:t}=new URL(e.filename);t===r&&(e.filename=e.filename?.replace(t,"app://").replace(n,""))}catch{}}else try{let{origin:t}=new URL(e.filename);e.filename=e.filename?.replace(t,"app://").replace(r,"")}catch{}return i?e.filename?.includes("/_next")&&(e.filename=decodeURI(e.filename)):e.filename?.startsWith("app:///_next")&&(e.filename=decodeURI(e.filename)),e.filename?.match(sA)&&(e.in_app=!1),e}}),name:"NextjsClientStackFrameNormalization"}})({assetPrefix:"/_v/1.268.0",basePath:i,rewriteFramesAssetPrefixPath:"/_v/1.268.0",experimentalThirdPartyOriginStackFrames:a})),r),release:"0d684a29d77692548d5de54fc3a464ccde02f330",...e};!function(e){let t=E.default.env._sentryRewritesTunnelPath||w._sentryRewritesTunnelPath;if(t&&e.dsn){let n=td(e.dsn);if(!n)return;let r=n.host.match(/^o(\d+)\.ingest(?:\.([a-z]{2}))?\.sentry\.io$/);if(r){let i=r[1],a=r[2],s=`${t}?o=${i}&p=${n.projectId}`;a&&(s+=`&r=${a}`),e.tunnel=s,iC&&L(`Tunneling events to "${s}"`)}else iC&&M("Provided DSN is not a Sentry SaaS DSN. Will not tunnel events.")}}(s),nv(s,"nextjs",["nextjs","react"]),s.ignoreSpans=[...s.ignoreSpans||[],/^\/404$/,RegExp(`^${s_}$`)],function(e){var t;let r={...e};nv(r,"react"),t={version:iO.version},eQ().setContext("react",t);let i=function(){var e,t;let r,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=!i.skipBrowserExtensionCheck&&!!function(){if(void 0===w.window||w.nw)return!1;let e=w.chrome||w.browser;if(!e?.runtime?.id)return!1;let t=rf();return!(w===w.top&&/^(?:chrome-extension|moz-extension|ms-browser-extension|safari-web-extension):\/\//.test(t))}()&&(rQ&&R(()=>{console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}),!0),s=null==i.defaultIntegrations?i$():i.defaultIntegrations,o={...i,enabled:!a&&i.enabled,stackParser:Array.isArray(e=i.stackParser||iE)?ed(...e):e,integrations:function(e){let t,n,r=e.defaultIntegrations||[],i=e.integrations;
19if(r.forEach(e=>{e.isDefaultInstance=!0}),Array.isArray(i))t=[...r,...i];else if("function"==typeof i){let e=i(r);t=Array.isArray(e)?e:[e]}else t=r;return n={},t.forEach(e=>{let{name:t}=e,r=n[t];r&&!r.isDefaultInstance&&e.isDefaultInstance||(n[t]=e)}),Object.values(n)}({integrations:i.integrations,defaultIntegrations:s}),transport:i.transport||ik};return n=iA,!0===o.debug&&(A?D():R(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),eX().update(o.initialScope),t=r=new ry(o),eX().setClient(t),r.init(),r}(r);n=iR}(s);let o=(e,t)=>{var n;return U(n=t?.originalException)&&"string"==typeof n.digest&&n.digest.startsWith("NEXT_REDIRECT;")||e.exception?.values?.[0]?.value==="NEXT_REDIRECT"?null:e};o.id="NextRedirectErrorFilter",eQ().addEventProcessor(o);try{eK().setTag("turbopack",!0)}catch{}}({enabled:!0,dsn:"https://9fa89cd07ca5ca3ffd9adc665a7ba9cf@o4506981408702464.ingest.us.sentry.io/4508359866449920",integrations:[ny({levels:["error"]}),sP?sP({filterKeys:["ivry-web-frontend-main"],behaviour:"drop-error-if-exclusively-contains-third-party-frames"}):null].filter(Boolean),environment:"production",beforeSend:sj,debug:!1,sampleRate:.001}),sq.splice(0).forEach(e=>{eV(t=>{t.setTag("queued_before_init",!0),e()})}))},"setMonitoringOptions",0,e=>{let{userId:t,companyId:n,clientId:r}=e,i=eZ();if(!i)return()=>{};let{sampleRate:a}=i.getOptions(),s=n&&sM.has(n)?1:a;return i.getOptions().sampleRate=s,ne({id:t??"undefined"}),t7("company",{id:n??"undefined",clientId:r??"undefined"}),()=>{i.getOptions().sampleRate=a,ne(null),t7("company",null)}}],912953)}]);
20
21//# debugId=0c638b20-5696-890e-9ff3-8715301b6097

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.