;!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]="bdcc59fb-962c-0381-c914-9e00605db440")}catch(e){}}(); (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,797241,t=>{"use strict";let e,s,i,n="10.42.0",r=globalThis;function o(t){let e=t.__SENTRY__=t.__SENTRY__||{};return e.version=e.version||n,e[n]=e[n]||{}}function a(t,e,s=r){let i=s.__SENTRY__=s.__SENTRY__||{},o=i[n]=i[n]||{};return o[t]||(o[t]=e())}let c="u"({enabled:!1})):{enabled:!1}}().enabled&&function(t){if(!("console"in r))return t();let e=r.console,s={},i=Object.keys(_);i.forEach(t=>{let i=_[t];s[t]=e[t],e[t]=i});try{return t()}finally{i.forEach(t=>{e[t]=s[t]})}}(()=>{r.console[t](`Sentry Logger [${t}]:`,...e)})}let p=function(...t){u("log",...t)},l=function(...t){u("warn",...t)};function d(t){if(void 0!==e)return e?e(t):t();let s=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__");return s in r&&"function"==typeof r[s]?(e=r[s])(t):(e=null,t())}function g(){return d(()=>Math.random())}function f(t=r.crypto||r.msCrypto){try{if(t?.randomUUID)return d(()=>t.randomUUID()).replace(/-/g,"")}catch{}return s||(s="10000000100040008000100000000000"),s.replace(/[018]/g,t=>(t^(15&16*g())>>t/4).toString(16))}function m(){return d(()=>Date.now())/1e3}let b="_sentrySpan";function v(t,e){if(e)try{Object.defineProperty(t,b,{value:e,writable:!0,configurable:!0})}catch{c&&p(`Failed to add non-enumerable property "${b}" to object`,t)}else delete t[b]}class S{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:f(),sampleRand:g()}}clone(){let t=new S;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._attributes={...this._attributes},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,t._conversationId=this._conversationId,v(t,this[b]),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&function(t,e={}){if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),t.did||e.did||(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||(i??(i=function(){let{performance:t}=r;if(!t?.now||!t.timeOrigin)return m;let e=t.timeOrigin;return()=>(e+d(()=>t.now()))/1e3}()))(),e.abnormal_mechanism&&(t.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=32===e.sid.length?e.sid:f()),void 0!==e.init&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),"number"==typeof e.started&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if("number"==typeof e.duration)t.duration=e.duration;else{let e=t.timestamp-t.started;t.duration=e>=0?e:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),"number"==typeof e.errors&&(t.errors=e.errors),e.status&&(t.status=e.status)}(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(t){return this._conversationId=t||void 0,this._notifyScopeListeners(),this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,e){return this.setTags({[t]:e})}setAttributes(t){return this._attributes={...this._attributes,...t},this._notifyScopeListeners(),this}setAttribute(t,e){return this.setAttributes({[t]:e})}removeAttribute(t){return t in this._attributes&&(delete this._attributes[t],this._notifyScopeListeners()),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,e){return this._extra={...this._extra,[t]:e},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,e){return null===e?delete this._contexts[t]:this._contexts[t]=e,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;let e="function"==typeof t?t(this):t,{tags:s,attributes:i,extra:n,user:r,contexts:o,level:a,fingerprint:c=[],propagationContext:_,conversationId:u}=(e instanceof S?e.getScopeData():"[object Object]"===h.call(e)?t:void 0)||{};return this._tags={...this._tags,...s},this._attributes={...this._attributes,...i},this._extra={...this._extra,...n},this._contexts={...this._contexts,...o},r&&Object.keys(r).length&&(this._user=r),a&&(this._level=a),c.length&&(this._fingerprint=c),_&&(this._propagationContext=_),u&&(this._conversationId=u),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,v(this,void 0),this._attachments=[],this.setPropagationContext({traceId:f(),sampleRand:g()}),this._notifyScopeListeners(),this}addBreadcrumb(t,e){let s="number"==typeof e?e:100;if(s<=0)return this;let i={timestamp:m(),...t,message:t.message?function(t,e=0){return"string"!=typeof t||0===e||t.length<=e?t:`${t.slice(0,e)}...`}(t.message,2048):t.message};return this._breadcrumbs.push(i),this._breadcrumbs.length>s&&(this._breadcrumbs=this._breadcrumbs.slice(-s),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(t){return this._attachments.push(t),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:this[b],conversationId:this._conversationId}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=function t(e,s,i=2){if(!s||"object"!=typeof s||i<=0)return s;if(e&&0===Object.keys(s).length)return e;let n={...e};for(let e in s)Object.prototype.hasOwnProperty.call(s,e)&&(n[e]=t(n[e],s[e],i-1));return n}(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,e){let s=e?.event_id||f();if(!this._client)return c&&l("No client configured on scope - will not capture exception!"),s;let i=Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:i,...e,event_id:s},this),s}captureMessage(t,e,s){let i=s?.event_id||f();if(!this._client)return c&&l("No client configured on scope - will not capture message!"),i;let n=s?.syntheticException??Error(t);return this._client.captureMessage(t,e,{originalException:t,syntheticException:n,...s,event_id:i},this),i}captureEvent(t,e){let s=t.event_id||e?.event_id||f();return this._client?this._client.captureEvent(t,{...e,event_id:s},this):c&&l("No client configured on scope - will not capture event!"),s}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}class y{constructor(t,e){let s,i;s=t||new S,i=e||new S,this._stack=[{scope:s}],this._isolationScope=i}withScope(t){var e;let s,i=this._pushScope();try{s=t(i)}catch(t){throw this._popScope(),t}return(e=s,e?.then&&"function"==typeof e.then)?s.then(t=>(this._popScope(),t),t=>{throw this._popScope(),t}):(this._popScope(),s)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){let t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function x(){let t=(o(r),r),e=o(t);return e.stack=e.stack||new y(a("defaultCurrentScope",()=>new S),a("defaultIsolationScope",()=>new S))}function E(t){return x().withScope(t)}function L(t,e){let s=x();return s.withScope(()=>(s.getStackTop().scope=t,e(t)))}function C(t){return x().withScope(()=>t(x().getIsolationScope()))}RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");let I=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function P(t,e){let s,i;return(i=(o(r),r),((s=o(i)).acs?s.acs:{withIsolationScope:C,withScope:E,withSetScope:L,withSetIsolationScope:(t,e)=>C(e),getCurrentScope:()=>x().getScope(),getIsolationScope:()=>x().getIsolationScope()}).getCurrentScope()).captureException(t,function(t){if(t){var e;return(e=t)instanceof S||"function"==typeof e||Object.keys(t).some(t=>I.includes(t))?{captureContext:t}:t}}(e))}t.s(["captureException",()=>P],797241)}]); //# debugId=bdcc59fb-962c-0381-c914-9e00605db440 //# sourceMappingURL=56e2dd99f26ab74f.js.map