@mapvx/web-components 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/KTX2Loader-CNSoekFo.cjs +1 -5
- package/dist/cjs/{base-floor-selector-CbSa9Qw2.cjs → base-floor-selector-DFnDEEM3.cjs} +2 -2
- package/dist/cjs/{class-map-DQkA5L7H.cjs → class-map-ChMAfTFe.cjs} +2 -2
- package/dist/cjs/{compact-floor-selector-C_LgJzzv.cjs → compact-floor-selector-BCeDL8I5.cjs} +2 -2
- package/dist/cjs/{consume-D1MFwxfA.cjs → consume-CKorNsgJ.cjs} +2 -2
- package/dist/cjs/{custom-map-CsX48Rua.cjs → custom-map-1gDZnqoR.cjs} +2 -2
- package/dist/cjs/floor-selector-BWaCcDvR.cjs +15 -0
- package/dist/cjs/{geojson-layer-BWursA41.cjs → geojson-layer-_4ssXrG_.cjs} +2 -2
- package/dist/cjs/{index-D4uHh_zx.cjs → index-CpmSQzi7.cjs} +2 -2
- package/dist/cjs/{index-OWjqDH0W.cjs → index-DM2GszaW.cjs} +2 -2
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/map-view-with-modal.cjs +1 -1
- package/dist/cjs/qr-modal-BXLeCQeI.cjs +20 -0
- package/dist/cjs/{route-options-BW6OJ8pz.cjs → route-options-BFRImfBY.cjs} +2 -2
- package/dist/cjs/route-view-totems.cjs +1 -5
- package/dist/cjs/{sdk-controller-BcvviQ36.cjs → sdk-controller-C5n2dJ1u.cjs} +3 -3
- package/dist/es/assets/{compact-floor-selector-DM0rj7tE.js → compact-floor-selector-T1-T8JtV.js} +2 -2
- package/dist/es/assets/{components-iq1KFC9T.js → components-P8ZEdF4n.js} +3 -3
- package/dist/es/assets/{geojson-layer-BXJPA2B2.js → geojson-layer-Cj_7zg8v.js} +2 -2
- package/dist/es/assets/{index-BV0wWAyE.js → index-CNxIfV8m.js} +2 -2
- package/dist/es/assets/{index-Bp1QRPSH.js → index-DS6Va1rg.js} +2 -6
- package/dist/es/assets/{map-view-with-modal-KAG4NGbk.js → map-view-with-modal-Z--_Drda.js} +2 -2
- package/dist/es/assets/{route-view-totems-BHOMtYE0.js → route-view-totems-DoAr4DQV.js} +4 -4
- package/dist/es/assets/{utils-BMph9fmy.js → utils-BCoCXmhx.js} +3 -3
- package/dist/es/index.js +1 -1
- package/dist/es/route-view-totems.js +1 -1
- package/dist/iife/map-view-with-modal.js +1 -1
- package/dist/iife/route-view-totems.js +19 -19
- package/package.json +1 -1
- package/dist/cjs/floor-selector-DiJexma4.cjs +0 -15
- package/dist/cjs/qr-modal-DAjokbee.cjs +0 -16
package/dist/es/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{D as DEFAULT_VECTOR_TILES_BASE_URL,M as MVX_TILES_SW_PATH,k as MVX_TILES_SW_SCOPE,R as RouteViewTotems,o as registerAndTriggerTilePrefetch,r as registerMvxTileServiceWorker,s as schedulePeriodicTileRefresh,t as triggerInitialTileLoad,w as waitForServiceWorkerReady}from"./assets/route-view-totems-
|
|
1
|
+
export{D as DEFAULT_VECTOR_TILES_BASE_URL,M as MVX_TILES_SW_PATH,k as MVX_TILES_SW_SCOPE,R as RouteViewTotems,o as registerAndTriggerTilePrefetch,r as registerMvxTileServiceWorker,s as schedulePeriodicTileRefresh,t as triggerInitialTileLoad,w as waitForServiceWorkerReady}from"./assets/route-view-totems-DoAr4DQV.js";export{M as MapViewWithModal}from"./assets/map-view-with-modal-Z--_Drda.js";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{R as RouteViewTotems}from"./assets/route-view-totems-
|
|
1
|
+
export{R as RouteViewTotems}from"./assets/route-view-totems-DoAr4DQV.js";import"./assets/utils-BCoCXmhx.js";
|
|
2
2
|
//# sourceMappingURL=route-view-totems.js.map
|
|
@@ -35,7 +35,7 @@ const ce=e=>(t,n)=>{void 0!==n?n.addInitializer(()=>{customElements.define(e,t)}
|
|
|
35
35
|
* @license
|
|
36
36
|
* Copyright 2017 Google LLC
|
|
37
37
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
38
|
-
*/function pe(e){return de({...e,state:!0,attribute:!1})}const Ae="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,fe=globalThis,ge="10.68.0";function me(){return ye(fe),fe}function ye(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||ge,t[ge]=t[ge]||{}}function ve(e,t,n=fe){const i=n.__SENTRY__=n.__SENTRY__||{},r=i[ge]=i[ge]||{};return r[e]||(r[e]=t())}const be=["debug","info","warn","error","log","assert","trace"],_e={};function xe(e){if(!("console"in fe))return e();const t=fe.console,n={},i=Object.keys(_e);i.forEach(e=>{const i=_e[e];n[e]=t[e],t[e]=i});try{return e()}finally{i.forEach(e=>{t[e]=n[e]})}}function we(){return Ce().enabled}function Ee(e,...t){Ae&&we()&&xe(()=>{fe.console[e](`Sentry Logger [${e}]:`,...t)})}function Ce(){return Ae?ve("loggerSettings",()=>({enabled:!1})):{enabled:!1}}const Se={enable:function(){Ce().enabled=!0},disable:function(){Ce().enabled=!1},isEnabled:we,log:function(...e){Ee("log",...e)},warn:function(...e){Ee("warn",...e)},error:function(...e){Ee("error",...e)}},Me="?",Ie=/\(error: (.*)\)/,Te=/captureMessage|captureException/;function Re(...e){const t=e.sort((e,t)=>e[0]-t[0]).map(e=>e[1]);return(e,n=0,i=0)=>{const r=[],s=e.split("\n");for(let o=n;o<s.length;o++){let e=s[o];e.length>1024&&(e=e.slice(0,1024));const n=Ie.test(e)?e.replace(Ie,"$1"):e;if(!n.includes("Error: ")){for(const e of t){const t=e(n);if(t){r.push(t);break}}if(r.length>=50+i)break}}return function(e){if(!e.length)return[];const t=Array.from(e);/sentryWrapped/.test(Pe(t).function||"")&&t.pop();t.reverse(),Te.test(Pe(t).function||"")&&(t.pop(),Te.test(Pe(t).function||"")&&t.pop());return t.slice(0,50).map(e=>({...e,filename:e.filename||Pe(t).filename,function:e.function||Me}))}(r.slice(i))}}function Pe(e){return e[e.length-1]||{}}const Be="<anonymous>";function Le(e){try{return e&&"function"==typeof e&&e.name||Be}catch{return Be}}function De(e){const t=e.exception;if(t){const e=[];try{return t.values.forEach(t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)}),e}catch{return}}}const Fe={},Oe={};function ke(e,t){return Fe[e]=Fe[e]||[],Fe[e].push(t),()=>{const n=Fe[e];if(n){const e=n.indexOf(t);-1!==e&&n.splice(e,1)}}}function Ne(e,t){if(!Oe[e]){Oe[e]=!0;try{t()}catch(mie){Ae&&Se.error(`Error while instrumenting ${e}`,mie)}}}function ze(e,t){const n=e&&Fe[e];if(n)for(const i of n)try{i(t)}catch(mie){Ae&&Se.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${Le(i)}\nError:`,mie)}}let Ue=null;function Ge(){Ue=fe.onerror,fe.onerror=function(e,t,n,i,r){return ze("error",{column:i,error:r,line:n,msg:e,url:t}),!!Ue&&Ue.apply(this,arguments)},fe.onerror.__SENTRY_INSTRUMENTED__=!0}let Ve=null;function He(){Ve=fe.onunhandledrejection,fe.onunhandledrejection=function(e){return ze("unhandledrejection",e),!Ve||Ve.apply(this,arguments)},fe.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const je=Object.prototype.toString;function qe(e){switch(je.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return nt(e,Error)}}function Qe(e,t){return je.call(e)===`[object ${t}]`}function We(e){return Qe(e,"ErrorEvent")}function Ke(e){return Qe(e,"DOMError")}function Ze(e){return Qe(e,"String")}function Ye(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function Xe(e){return null===e||Ye(e)||"object"!=typeof e&&"function"!=typeof e}function Je(e){return Qe(e,"Object")}function $e(e){return"object"==typeof e&&null!==e}function et(e){return"undefined"!=typeof Event&&nt(e,Event)}function tt(e){return Boolean(e?.then&&"function"==typeof e.then)}function nt(e,t){try{return e instanceof t}catch{return!1}}function it(e){return"undefined"!=typeof Request&&nt(e,Request)}function rt(e,t,n){if(!(t in e))return;const i=e[t];if("function"!=typeof i)return;const r=n(i);"function"==typeof r&&ot(r,i);try{e[t]=r}catch{Ae&&Se.log(`Failed to replace method "${t}" in object`,e)}}function st(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{Ae&&Se.log(`Failed to add non-enumerable property "${String(t)}" to object`,e)}}function ot(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,st(e,"__sentry_original__",t)}catch{}}function at(e){return e.__sentry_original__}function lt(e){if(qe(e))return{message:e.message,name:e.name,stack:e.stack,...ct(e)};if(et(e)){const{type:t,target:n,currentTarget:i,detail:r}=e;return{type:t,target:n,currentTarget:i,...r?{detail:r}:{},...ct(e)}}return e}function ct(e){return $e(e)?Object.fromEntries(Object.entries(e)):{}}let ht;function ut(e){if(void 0!==ht)return ht?ht(e):e();const t=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__"),n=fe;return t in n&&"function"==typeof n[t]?(ht=n[t],ht(e)):(ht=null,e())}function dt(){return ut(()=>Math.random())}function pt(){return ut(()=>Date.now())}const At=Symbol.for("sentry.skipNormalization"),ft=Symbol.for("sentry.overrideNormalizationDepth");let gt,mt;function yt(e,t=100,n=1/0){try{return bt("",e,t,n)}catch(i){return{ERROR:`**non-serializable** (${i})`}}}function vt(e,t=3,n=102400){const i=yt(e,t);return r=i,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(r))>n?vt(e,t-1,n):i;var r}function bt(e,t,n=1/0,i=1/0,r=function(){const e=new WeakSet;function t(t){return!!e.has(t)||(e.add(t),!1)}function n(t){e.delete(t)}return[t,n]}()){const[s,o]=r;if(null==t||["boolean","string"].includes(typeof t)||"number"==typeof t&&Number.isFinite(t))return t;const a=_t(e,t);if(!a.startsWith("[object "))return a;if(function(e){return Boolean(e[At])}(t))return t;const l=function(e){const t=e[ft];return"number"==typeof t?t:void 0}(t),c=void 0!==l?l:n;if(0===c)return a.replace("object ","");if(s(t))return"[Circular ~]";const h=t;if(h&&"function"==typeof h.toJSON)try{return bt("",h.toJSON(),c-1,i,r)}catch{}const u=Array.isArray(t)?[]:{};let d=0;const p=lt(t);for(const A in p){if(!Object.prototype.hasOwnProperty.call(p,A))continue;if(d>=i){u[A]="[MaxProperties ~]";break}const e=p[A];u[A]=bt(A,e,c-1,i,r),d++}return o(t),u}function _t(e,t){try{if(gt){const e=gt(t);if(e)return e}if("undefined"!=typeof global&&t===global)return"[Global]";if("number"==typeof t&&!Number.isFinite(t))return`[${t}]`;if("function"==typeof t)return`[Function: ${Le(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;const e=function(e){const t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:"null prototype"}(t);return`[object ${e}]`}catch(n){return`**non-serializable** (${n})`}}function xt(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function wt(e,t){if(!Array.isArray(e))return"";const n=[];for(let i=0;i<e.length;i++){const t=e[i];Xe(t)?n.push(String(t)):t instanceof Error?n.push(t.message?`${t.name}: ${t.message}`:t.name):n.push(_t(0,t))}return n.join(t)}function Et(e,t,n=!1){return!!Ze(e)&&(Qe(t,"RegExp")?t.test(e):Ze(t)?n?e===t:e.includes(t):"function"==typeof t&&t(e))}function Ct(e,t=[],n=!1){for(const i of t)if(Et(e,i,n))return!0;return!1}function St(e=function(){const e=fe;return e.crypto||e.msCrypto}()){try{if(e?.randomUUID)return ut(()=>e.randomUUID()).replace(/-/g,"")}catch{}return mt||(mt="10000000100040008000100000000000"),mt.replace(/[018]/g,e=>(e^(16*dt()&15)>>e/4).toString(16))}function Mt(e){return e.exception?.values?.[0]}function It(e){const{message:t,event_id:n}=e;if(t)return t;const i=Mt(e);return i?i.type&&i.value?`${i.type}: ${i.value}`:i.type||i.value||n||"<unknown>":n||"<unknown>"}function Tt(e,t,n){const i=e.exception=e.exception||{},r=i.values=i.values||[],s=r[0]=r[0]||{};s.value||(s.value=t||""),s.type||(s.type="Error")}function Rt(e,t){const n=Mt(e);if(!n)return;const i=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...i,...t},t&&"data"in t){const e={...i?.data,...t.data};n.mechanism.data=e}}function Pt(e){if(function(e){try{return e.__sentry_captured__}catch{}}(e))return!0;try{st(e,"__sentry_captured__",!0)}catch{}return!1}function Bt(){return pt()/1e3}let Lt;function Dt(){return(Lt??(Lt=function(){const{performance:e}=fe;if(!e?.now||!e.timeOrigin)return Bt;const t=e.timeOrigin;return()=>(t+ut(()=>e.now()))/1e3}()))()}function Ft(e){const t=Dt(),n={sid:St(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return{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}}}(n)};return e&&Ot(n,e),n}function Ot(e,t={}){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||Dt(),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:St()),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{const 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 kt(e,t,n=2){if(!t||"object"!=typeof t||n<=0)return t;if(e&&0===Object.keys(t).length)return e;const i={...e};for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(i[r]=kt(i[r],t[r],n-1));return i}function Nt(){return St()}function zt(){return St().substring(16)}function Ut(e){if(e){if("object"==typeof e&&"deref"in e&&"function"==typeof e.deref)try{return e.deref()}catch{return}return e}}const Gt="_sentrySpan";function Vt(e,t){t?st(e,Gt,function(e){try{const t=fe.WeakRef;if("function"==typeof t)return new t(e)}catch{}return e}(t)):delete e[Gt]}function Ht(e){return Ut(e[Gt])}class jt{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:Nt(),sampleRand:dt()}}clone(){const e=new jt;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,Vt(e,Ht(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&Ot(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;const t="function"==typeof e?e(this):e,n=t instanceof jt?t.getScopeData():Je(t)?e:void 0,{tags:i,attributes:r,extra:s,user:o,contexts:a,level:l,fingerprint:c=[],propagationContext:h,conversationId:u}=n||{};return this._tags={...this._tags,...i},this._attributes={...this._attributes,...r},this._extra={...this._extra,...s},this._contexts={...this._contexts,...a},o&&Object.keys(o).length&&(this._user=o),l&&(this._level=l),c.length&&(this._fingerprint=c),h&&(this._propagationContext=h),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,Vt(this,void 0),this._attachments=[],this.setPropagationContext({traceId:Nt(),sampleRand:dt()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){const n="number"==typeof t?t:100;if(n<=0)return this;const i={timestamp:Bt(),...e,message:e.message?xt(e.message,2048):e.message};return this._breadcrumbs.push(i),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:Ht(this),conversationId:this._conversationId}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=kt(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){const n=t?.event_id||St();if(!this._client)return Ae&&Se.warn("No client configured on scope - will not capture exception!"),n;const i=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:i,...t,event_id:n},this),n}captureMessage(e,t,n){const i=n?.event_id||St();if(!this._client)return Ae&&Se.warn("No client configured on scope - will not capture message!"),i;const r=n?.syntheticException??new Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:r,...n,event_id:i},this),i}captureEvent(e,t){const n=e.event_id||t?.event_id||St();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(Ae&&Se.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}}const qt=e=>e instanceof Promise&&!e[Qt],Qt=Symbol("chained PromiseLike"),Wt=(e,t)=>{if(!t)return e;let n=!1;for(const i in e){if(i in t)continue;n=!0;const r=e[i];"function"==typeof r?Object.defineProperty(t,i,{value:(...t)=>r.apply(e,t),enumerable:!0,configurable:!0,writable:!0}):t[i]=r}return n&&Object.assign(t,{[Qt]:!0}),t};class Kt{constructor(e,t){let n,i;n=e||new jt,i=t||new jt,this._stack=[{scope:n}],this._isolationScope=i}withScope(e){const t=this._pushScope();let n;try{n=e(t)}catch(mie){throw this._popScope(),mie}return tt(n)?((e,t,n)=>{const i=e.then(e=>(t(e),e),e=>{throw n(e),e});return qt(i)&&qt(e)?i:Wt(e,i)})(n,()=>this._popScope(),()=>this._popScope()):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function Zt(){const e=ye(me());return e.stack=e.stack||new Kt(ve("defaultCurrentScope",()=>new jt),ve("defaultIsolationScope",()=>new jt))}function Yt(e){return Zt().withScope(e)}function Xt(e,t){const n=Zt();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function Jt(e){return Zt().withScope(()=>e(Zt().getIsolationScope()))}function $t(e){const t=ye(e);return t.acs?t.acs:{withIsolationScope:Jt,withScope:Yt,withSetScope:Xt,withSetIsolationScope:(e,t)=>Jt(t),getCurrentScope:()=>Zt().getScope(),getIsolationScope:()=>Zt().getIsolationScope()}}function en(e,t){const{value:n,unit:i}="object"==typeof(r=e)&&null!=r&&!Array.isArray(r)&&Object.keys(r).includes("value")?e:{value:e,unit:void 0};var r;const s=function(e){if(Array.isArray(e))return{value:e,type:"array"};const 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),o=i&&"string"==typeof i?{unit:i}:{};if(s)return{...s,...o};if(!t||"skip-undefined"===t&&void 0===n)return;let a="";try{a=JSON.stringify(n)??""}catch{}return{value:a,type:"string",...o}}function tn(e,t=!1){const n={};for(const[i,r]of Object.entries(e??{})){const e=en(r,t);e&&(n[i]=e)}return n}function nn(){return $t(me()).getCurrentScope()}function rn(){return $t(me()).getIsolationScope()}function sn(){return nn().getClient()}function on(e){const t=e.getPropagationContext(),{traceId:n,parentSpanId:i,propagationSpanId:r}=t,s={trace_id:n,span_id:r||zt()};return i&&(s.parent_span_id=i),s}const an="sentry.op",ln="sentry.profile_id",cn="sentry.exclusive_time";function hn(e){const t=e;return{scope:t._sentryScope,isolationScope:Ut(t._sentryIsolationScope)}}const un="sentry-";function dn(e){const t=function(e){if(!e||!Ze(e)&&!Array.isArray(e))return;if(Array.isArray(e))return e.reduce((e,t)=>{const n=pn(t);return Object.entries(n).forEach(([t,n])=>{e[t]=n}),e},{});return pn(e)}(e);if(!t)return;const n=Object.entries(t).reduce((e,[t,n])=>{if(t.startsWith(un)){e[t.slice(7)]=n}return e},{});return Object.keys(n).length>0?n:void 0}function pn(e){return e.split(",").map(e=>{const t=e.indexOf("=");if(-1===t)return[];return[e.slice(0,t),e.slice(t+1)].map(e=>{try{return decodeURIComponent(e.trim())}catch{return}})}).reduce((e,[t,n])=>(t&&n&&(e[t]=n),e),{})}const An=/^o(\d+)\./,fn=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function gn(e,t=!1){const{host:n,path:i,pass:r,port:s,projectId:o,protocol:a,publicKey:l}=e;return`${a}://${l}${t&&r?`:${r}`:""}@${n}${s?`:${s}`:""}/${i?`${i}/`:i}${o}`}function mn(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function yn(e){const t=e.getOptions(),{host:n}=e.getDsn()||{};let i;return t.orgId?i=String(t.orgId):n&&(i=function(e){const t=e.match(An);return t?.[1]}(n)),i}function vn(e){const t="string"==typeof e?function(e){const t=fn.exec(e);if(!t)return void xe(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});const[n,i,r="",s="",o="",a=""]=t.slice(1);let l="",c=a;const h=c.split("/");if(h.length>1&&(l=h.slice(0,-1).join("/"),c=h.pop()),c){const e=c.match(/^\d+/);e&&(c=e[0])}return mn({host:s,pass:r,path:l,projectId:c,port:o,protocol:n,publicKey:i})}(e):mn(e);if(t&&function(e){if(!Ae)return!0;const{port:t,projectId:n,protocol:i}=e;return!(["protocol","publicKey","host","projectId"].find(t=>!e[t]&&(Se.error(`Invalid Sentry Dsn: ${t} missing`),!0))||(n.match(/^\d+$/)?function(e){return"http"===e||"https"===e}(i)?t&&isNaN(parseInt(t,10))&&(Se.error(`Invalid Sentry Dsn: Invalid port ${t}`),1):(Se.error(`Invalid Sentry Dsn: Invalid protocol ${i}`),1):(Se.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),1)))}(t))return t}let bn=!1;function _n(e){const{spanId:t,traceId:n,isRemote:i}=e.spanContext(),r=i?t:Cn(e).parent_span_id,s=hn(e).scope;return{parent_span_id:r,span_id:i?s?.getPropagationContext().propagationSpanId||zt():t,trace_id:n}}function xn(e){return e&&e.length>0?e.map(({context:{spanId:e,traceId:t,traceFlags:n,...i},attributes:r})=>({span_id:e,trace_id:t,sampled:1===n,attributes:r,...i})):void 0}function wn(e){return"number"==typeof e?En(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?En(e.getTime()):Dt()}function En(e){return e>9999999999?e/1e3:e}function Cn(e){if(function(e){return"function"==typeof e.getSpanJSON}(e))return e.getSpanJSON();const{spanId:t,traceId:n}=e.spanContext();if(function(e){const t=e;return!!(t.attributes&&t.startTime&&t.name&&t.endTime&&t.status)}(e)){const{attributes:i,startTime:r,name:s,endTime:o,status:a,links:l}=e;return{span_id:t,trace_id:n,data:i,description:s,parent_span_id:Sn(e),start_timestamp:wn(r),timestamp:wn(o)||void 0,status:Mn(a),op:i[an],origin:i["sentry.origin"],links:xn(l)}}return{span_id:t,trace_id:n,start_timestamp:0,data:{}}}function Sn(e){return"parentSpanId"in e?e.parentSpanId:"parentSpanContext"in e?e.parentSpanContext?.spanId:void 0}function Mn(e){if(e&&0!==e.code)return 1===e.code?"ok":e.message||"internal_error"}const In=function(e){return e._sentryRootSpan||e};function Tn(){bn||(xe(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),bn=!0)}function Rn(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const t=e||sn()?.getOptions();return!(!t||null==t.tracesSampleRate&&!t.tracesSampler)}function Pn(e){Se.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}function Bn(e,t){if(!t?.length)return!1;for(const n of t){if(Fn(n)){if(e.description&&Et(e.description,n))return Ae&&Pn(e),!0;continue}const t=!!n.attributes&&Object.keys(n.attributes).length>0;if(!n.name&&!n.op&&!t)continue;const i=!n.name||e.description&&Et(e.description,n.name),r=!n.op||e.op&&Et(e.op,n.op),s=!n.attributes||Object.entries(n.attributes).every(([t,n])=>Ln(e.attributes?.[t],n));if(i&&r&&s)return Ae&&Pn(e),!0}return!1}function Ln(e,t){return"string"==typeof e&&("string"==typeof t||t instanceof RegExp)?Et(e,t):Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e===t}function Dn(e,t){const n=t.parent_span_id,i=t.span_id;if(n)for(const r of e)r.parent_span_id===i&&(r.parent_span_id=n)}function Fn(e){return"string"==typeof e||e instanceof RegExp}const On=Symbol.for("sentry.nonRecordingSpan");const kn="production";function Nn(e,t){const n=t.getOptions(),{publicKey:i}=t.getDsn()||{},r={environment:n.environment||kn,release:n.release,public_key:i,trace_id:e,org_id:yn(t)};return t.emit("createDsc",r),r}function zn(e,t){const n=t.getPropagationContext();return n.dsc||Nn(n.traceId,e)}function Un(e){const t=sn();if(!t)return{};const n=In(e),i=Cn(n),r=i.data,s=n.spanContext().traceState,o=s?.get("sentry.sample_rate")??r["sentry.sample_rate"]??r["sentry.previous_trace_sample_rate"];function a(e){return"number"!=typeof o&&"string"!=typeof o||(e.sample_rate=`${o}`),e}const l=n._frozenDsc;if(l)return a(l);const c=function(e){return!!e&&!0===e[On]}(n),h=c&&"ignored"===n.dropReason;if(c&&(!Rn(t.getOptions())||h)){const e=hn(n).scope;if(e){const n={...zn(t,e)};return h&&(n.sampled="false"),a(n)}}const u=s?.get("sentry.dsc"),d=u&&dn(u);if(d)return a(d);const p=Nn(e.spanContext().traceId,t),A=r["sentry.source"]??r["sentry.segment.name.source"],f=i.description;return"url"!==A&&f&&(p.transaction=f),Rn()&&(p.sampled=String(function(e){const{traceFlags:t}=e.spanContext();return 1===t}(n)),p.sample_rand=s?.get("sentry.sample_rand")??hn(n).scope?.getPropagationContext().sampleRand.toString()),a(p),t.emit("createDsc",p,n),p}function Gn(e,t=[]){return[e,t]}function Vn(e,t){const[n,i]=e;return[n,[...i,t]]}function Hn(e,t){const n=e[1];for(const i of n){if(t(i,i[0].type))return!0}return!1}function jn(e){const t=ye(fe);return t.encodePolyfill?t.encodePolyfill(e):(new TextEncoder).encode(e)}function qn(e){const[t,n]=e;let i=JSON.stringify(t);function r(e){"string"==typeof i?i="string"==typeof e?i+e:[jn(i),e]:i.push("string"==typeof e?jn(e):e)}for(const s of n){const[e,t]=s;if(r(`\n${JSON.stringify(e)}\n`),"string"==typeof t||t instanceof Uint8Array)r(t);else{let e;try{e=JSON.stringify(t)}catch{e=JSON.stringify(yt(t))}r(e)}}return"string"==typeof i?i:function(e){const t=e.reduce((e,t)=>e+t.length,0),n=new Uint8Array(t);let i=0;for(const r of e)n.set(r,i),i+=r.length;return n}(i)}function Qn(e){const t="string"==typeof e.data?jn(e.data):e.data;return[{type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}const Wn={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 Kn(e){return function(e){return e in Wn}(e)?Wn[e]:e}function Zn(e){if(!e?.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function Yn(e,t,n,i){const r=Zn(n),s=e.type&&"replay_event"!==e.type?e.type:"event";!function(e,t){if(!t)return e;const 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);const o=function(e,t,n,i){const r=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date(pt()).toISOString(),...t&&{sdk:t},...!!n&&i&&{dsn:gn(i)},...r&&{trace:r}}}(e,r,i,t);delete e.sdkProcessingMetadata;return Gn(o,[[{type:s},e]])}function Xn(e,t){const{fingerprint:n,span:i,breadcrumbs:r,sdkProcessingMetadata:s}=t;!function(e,t){const{extra:n,tags:i,user:r,contexts:s,level:o,transactionName:a}=t;Object.keys(n).length&&(e.extra={...n,...e.extra});Object.keys(i).length&&(e.tags={...i,...e.tags});Object.keys(r).length&&(e.user={...r,...e.user});Object.keys(s).length&&(e.contexts={...s,...e.contexts});o&&(e.level=o);a&&"transaction"!==e.type&&(e.transaction=a)}(e,t),i&&function(e,t){e.contexts={trace:_n(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:Un(t),...e.sdkProcessingMetadata};const n=In(t),i=Cn(n).description;i&&!e.transaction&&"transaction"===e.type&&(e.transaction=i)}(e,i),function(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t));e.fingerprint.length||delete e.fingerprint}(e,n),function(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}(e,r),function(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}(e,s)}function Jn(e,t){const{extra:n,tags:i,attributes:r,user:s,contexts:o,level:a,sdkProcessingMetadata:l,breadcrumbs:c,fingerprint:h,eventProcessors:u,attachments:d,propagationContext:p,transactionName:A,span:f}=t;$n(e,"extra",n),$n(e,"tags",i),$n(e,"attributes",r),$n(e,"user",s),$n(e,"contexts",o),e.sdkProcessingMetadata=kt(e.sdkProcessingMetadata,l,2),a&&(e.level=a),A&&(e.transactionName=A),f&&(e.span=f),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),h.length&&(e.fingerprint=[...e.fingerprint,...h]),u.length&&(e.eventProcessors=[...e.eventProcessors,...u]),d.length&&(e.attachments=[...e.attachments,...d]),e.propagationContext={...e.propagationContext,...p}}function $n(e,t,n){e[t]=kt(e[t],n,1)}function ei(e,t){const n=ve("globalScope",()=>new jt).getScopeData();return e&&Jn(n,e.getScopeData()),t&&Jn(n,t.getScopeData()),n}const ti="url.full";function ni(e,t){const n=e.attributes??(e.attributes={});Object.entries(t).forEach(([e,t])=>{null==t||e in n||(n[e]=t)})}function ii(e){return new si(t=>{t(e)})}function ri(e){return new si((t,n)=>{n(e)})}class si{constructor(e){this._state=0,this._handlers=[],this._runExecutor(e)}then(e,t){return new si((n,i)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(mie){i(mie)}else n(t)},e=>{if(t)try{n(t(e))}catch(mie){i(mie)}else i(e)}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(e){return new si((t,n)=>{let i,r;return this.then(t=>{r=!1,i=t,e&&e()},t=>{r=!0,i=t,e&&e()}).then(()=>{r?n(i):t(i)})})}_executeHandlers(){if(0===this._state)return;const 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){const t=(e,t)=>{0===this._state&&(tt(t)?t.then(n,i):(this._state=e,this._value=t,this._executeHandlers()))},n=e=>{t(1,e)},i=e=>{t(2,e)};try{e(n,i)}catch(mie){i(mie)}}}function oi(e,t,n,i=0){try{const r=ai(t,n,e,i);return tt(r)?r:ii(r)}catch(ju){return ri(ju)}}function ai(e,t,n,i){const r=n[i];if(!e||!r)return e;const s=r({...e},t);return Ae&&null===s&&Se.log(`Event processor "${r.id||"?"}" dropped event`),tt(s)?s.then(e=>ai(e,t,n,i+1)):ai(s,t,n,i+1)}let li,ci,hi,ui;function di(e,t,n,i,r,s){const{normalizeDepth:o=3,normalizeMaxBreadth:a=1e3}=e,l={...t,event_id:t.event_id||n.event_id||St(),timestamp:t.timestamp||Bt()},c=n.integrations||e.integrations.map(e=>e.name);!function(e,t){const{environment:n,release:i,dist:r,maxValueLength:s}=t;e.environment=e.environment||n||kn,!e.release&&i&&(e.release=i);!e.dist&&r&&(e.dist=r);const o=e.request;o?.url&&s&&(o.url=xt(o.url,s));s&&e.exception?.values?.forEach(e=>{e.value&&(e.value=xt(e.value,s))})}(l,e),function(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}(l,c),r&&r.emit("applyFrameMetadata",t),void 0===t.type&&function(e,t){const n=function(e){const t=fe._sentryDebugIds,n=fe._debugIds;if(!t&&!n)return{};const i=t?Object.keys(t):[],r=n?Object.keys(n):[];if(ui&&i.length===ci&&r.length===hi)return ui;ci=i.length,hi=r.length,ui={},li||(li={});const s=(t,n)=>{for(const i of t){const t=n[i],r=li?.[i];if(r&&ui&&t)ui[r[0]]=t,li&&(li[i]=[r[0],t]);else if(t){const n=e(i);for(let e=n.length-1;e>=0;e--){const r=n[e],s=r?.filename;if(s&&ui&&li){ui[s]=t,li[i]=[s,t];break}}}}};return t&&s(i,t),n&&s(r,n),ui}(t);e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.filename&&(e.debug_id=n[e.filename])})})}(l,e.stackParser);const h=function(e,t){if(!t)return e;const n=e?e.clone():new jt;return n.update(t),n}(i,n.captureContext);n.mechanism&&Rt(l,n.mechanism);const u=r?r.getEventProcessors():[],d=ei(s,h),p=[...n.attachments||[],...d.attachments];p.length&&(n.attachments=p),Xn(l,d);const A=[...u,...d.eventProcessors];return(n.data&&!0===n.data.__sentry__?ii(l):oi(A,l,n)).then(e=>(e&&function(e){const 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||[];const n=e.debug_meta.images;Object.entries(t).forEach(([e,t])=>{n.push({type:"sourcemap",code_file:e,debug_id:t})})}(e),"number"==typeof o&&o>0?function(e,t,n){if(!e)return null;const i={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:yt(e.data,t,n)}}))},...e.user&&{user:yt(e.user,t,n)},...e.contexts&&{contexts:yt(e.contexts,t,n)},...e.extra&&{extra:yt(e.extra,t,n)}};e.contexts?.trace&&i.contexts&&(i.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(i.contexts.trace.data=yt(e.contexts.trace.data,t,n)));e.spans&&(i.spans=e.spans.map(e=>({...e,...e.data&&{data:yt(e.data,t,n)}})));e.contexts?.flags&&i.contexts&&(i.contexts.flags=yt(e.contexts.flags,3,n));return i}(e,o,a):e))}function pi(e){if(e)return function(e){return e instanceof jt||"function"==typeof e}(e)||function(e){return Object.keys(e).some(e=>Ai.includes(e))}(e)?{captureContext:e}:e}const Ai=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function fi(e,t){return nn().captureException(e,pi(t))}function gi(e,t){const n="string"==typeof t?t:void 0,i="string"!=typeof t?{captureContext:t}:void 0;return nn().captureMessage(e,n,i)}function mi(e,t){return nn().captureEvent(e,t)}function yi(e,t){rn().setTag(e,t)}function vi(e){const t=rn(),{user:n}=ei(t,nn()),{userAgent:i}=fe.navigator||{},r=Ft({user:n,...i&&{userAgent:i},...e}),s=t.getSession();return"ok"===s?.status&&Ot(s,{status:"exited"}),bi(),t.setSession(r),r}function bi(){const e=rn(),t=nn().getSession()||e.getSession();t&&function(e){let t={};"ok"===e.status&&(t={status:"exited"}),Ot(e,t)}(t),_i(),e.setSession()}function _i(){const e=rn(),t=sn(),n=e.getSession();n&&t&&t.captureSession(n)}function xi(e=!1){e?bi():_i()}function wi(e){return"object"==typeof e&&"function"==typeof e.unref&&e.unref(),e}function Ei(e,t,n){return t||`${function(e){return`${function(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}(e)}${e.projectId}/envelope/`}(e)}?${function(e,t){const n={sentry_version:"7"};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}(e,n)}`}const Ci=[];function Si(e){const t=e.defaultIntegrations||[],n=e.integrations;let i;if(t.forEach(e=>{e.isDefaultInstance=!0}),Array.isArray(n))i=[...t,...n];else if("function"==typeof n){const e=n(t);i=Array.isArray(e)?e:[e]}else i=t;return function(e){const t={};return e.forEach(e=>{const{name:n}=e,i=t[n];i&&!i.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)}),Object.values(t)}(i)}function Mi(e,t){for(const n of t)n?.afterAllSetup&&n.afterAllSetup(e)}function Ii(e,t,n){if(n[t.name])Ae&&Se.log(`Integration skipped because it was already installed: ${t.name}`);else{if(n[t.name]=t,Ci.includes(t.name)||"function"!=typeof t.setupOnce||(t.setupOnce(),Ci.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),"function"==typeof t.preprocessEvent){const n=t.preprocessEvent.bind(t);e.on("preprocessEvent",(t,i)=>n(t,i,e))}if("function"==typeof t.processEvent){const n=t.processEvent.bind(t),i=Object.assign((t,i)=>n(t,i,e),{id:t.name});e.addEventProcessor(i)}["processSpan","processSegmentSpan"].forEach(n=>{const i=t[n];"function"==typeof i&&e.on(n,n=>i.call(t,n,e))}),Ae&&Se.log(`Integration installed: ${t.name}`)}}function Ti(){return!("undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function Ri(){return"undefined"!=typeof window&&(!Ti()||function(){const e=fe.process;return"renderer"===e?.type}())}function Pi(e,t){const n=t?"auto":"never";return[{type:"log",item_count:e.length,content_type:"application/vnd.sentry.items.log+json"},{version:2,...Ri()&&{ingest_settings:{infer_ip:n,infer_user_agent:n}},items:e}]}function Bi(e,t){const n=t??function(e){return Li().get(e)}(e)??[];if(0===n.length)return;const i=e.getOptions(),r=function(e,t,n,i,r){const s={};return t?.sdk&&(s.sdk={name:t.sdk.name,version:t.sdk.version}),n&&i&&(s.dsn=gn(i)),Gn(s,[Pi(e,r)])}(n,i._metadata,i.tunnel,e.getDsn(),e.getDataCollectionOptions().userInfo);Li().set(e,[]),e.emit("flushLogs"),e.sendEnvelope(r)}function Li(){return ve("clientToLogBufferMap",()=>new WeakMap)}function Di(e,t){const n=t?"auto":"never";return[{type:"trace_metric",item_count:e.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{version:2,...Ri()&&{ingest_settings:{infer_ip:n,infer_user_agent:n}},items:e}]}function Fi(e,t){const n=t??function(e){return Oi().get(e)}(e)??[];if(0===n.length)return;const i=e.getOptions(),r=function(e,t,n,i,r){const s={};return t?.sdk&&(s.sdk={name:t.sdk.name,version:t.sdk.version}),n&&i&&(s.dsn=gn(i)),Gn(s,[Di(e,r)])}(n,i._metadata,i.tunnel,e.getDsn(),e.getDataCollectionOptions().userInfo);Oi().set(e,[]),e.emit("flushMetrics"),e.sendEnvelope(r)}function Oi(){return ve("clientToMetricBufferMap",()=>new WeakMap)}function ki(e){const 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};return n=t,{...n,attributes:tn(n.attributes),links:n.links?.map(e=>({...e,attributes:tn(e.attributes)}))};var n}const Ni=Symbol.for("SentryBufferFullError");function zi(e=100){const t=new Set;function n(e){t.delete(e)}return{get $(){return Array.from(t)},add:function(i){if(!(t.size<e))return ri(Ni);const r=i();return t.add(r),r.then(()=>n(r),()=>n(r)),r},drain:function(e){if(!t.size)return ii(!0);const n=Promise.allSettled(Array.from(t)).then(()=>!0);if(!e)return n;const i=[n,new Promise(t=>wi(setTimeout(()=>t(!1),e)))];return Promise.race(i)}}}function Ui(e,{statusCode:t,headers:n},i=pt()){const r={...e},s=n?.["x-sentry-rate-limits"],o=n?.["retry-after"];if(s)for(const a of s.trim().split(",")){const[e,t,,,n]=a.split(":",5),s=parseInt(e,10),o=1e3*(isNaN(s)?60:s);if(t)for(const a of t.split(";"))"metric_bucket"===a&&n&&!n.split(";").includes("custom")||(r[a]=i+o);else r.all=i+o}else o?r.all=i+function(e,t=pt()){const n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;const i=Date.parse(`${e}`);return isNaN(i)?6e4:i-t}(o,i):429===t&&(r.all=i+6e4);return r}function Gi(e,t,n=zi(e.bufferSize||64)){let i={};return{send:function(r){const s=[];if(Hn(r,(t,n)=>{const r=Kn(n);!function(e,t,n=pt()){return function(e,t){return e[t]||e.all||0}(e,t)>n}(i,r)?s.push(t):e.recordDroppedEvent("ratelimit_backoff",r)}),0===s.length)return Promise.resolve({});const o=Gn(r[0],s),a=t=>{!function(e,t){return Hn(e,(e,n)=>t.includes(n))}(o,["client_report"])?Hn(o,(n,i)=>{e.recordDroppedEvent(t,Kn(i))}):Ae&&Se.warn(`Dropping client report. Will not send outcomes (reason: ${t}).`)};return n.add(()=>t({body:qn(o)}).then(e=>413===e.statusCode?(Ae&&Se.error("Sentry responded with status code 413. Envelope was discarded due to exceeding size limits."),a("send_error"),e):(Ae&&void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&Se.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),i=Ui(i,e),e),e=>{throw a("network_error"),Ae&&Se.error("Encountered error running transport request:",e),e})).then(e=>e,e=>{if(e===Ni)return Ae&&Se.error("Skipped sending event because buffer is full."),a("queue_overflow"),Promise.resolve({});throw e})},flush:e=>n.drain(e)}}function Vi(e){const t=[];e.message&&t.push(e.message);try{const 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}const Hi=["forwarded","-ip","remote-","via","-user"];const ji={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};function qi(e){const t=null!=e.dataCollection?ji:!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},databaseQueryData:!0,stackFrameVariables:!0,frameContextLines:7}:{userInfo:!1,cookies:{deny:Hi},httpHeaders:{request:{deny:Hi},response:{deny:Hi}},httpBodies:[],urlQueryParams:{deny:Hi},graphQL:{document:!0,variables:!0},genAI:{inputs:!1,outputs:!1},databaseQueryData:!1,stackFrameVariables:!0,frameContextLines:7};const n=e.dataCollection??{};return{userInfo:n.userInfo??t.userInfo,cookies:n.cookies??t.cookies,httpHeaders:{request:n.httpHeaders?.request??t.httpHeaders.request,response:n.httpHeaders?.response??t.httpHeaders.response},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}}const Qi="Not capturing exception because it's already been captured.",Wi="Discarded session because of missing or non-string release",Ki=Symbol.for("SentryInternalError"),Zi=Symbol.for("SentryDoNotSendEventError");function Yi(e){return{message:e,[Ki]:!0}}function Xi(e){return{message:e,[Zi]:!0}}function Ji(e){return $e(e)&&Ki in e}function $i(e){return $e(e)&&Zi in e}function er(e,t,n,i,r){let s,o=0,a=!1;e.on(n,()=>{o=0,clearTimeout(s),a=!1}),e.on(t,t=>{if(o+=i(t),o>=8e5)r(e);else if(!a){const t=e.getOptions()._flushInterval??5e3;t>0&&(a=!0,s=wi(setTimeout(()=>{r(e)},t)))}}),e.on("flush",()=>{r(e)})}class tr{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=zi(e.transportOptions?.bufferSize??64),this._dataCollection=qi(e),e.dsn?this._dsn=vn(e.dsn):Ae&&Se.warn("No DSN provided, client will not send events."),this._dsn){const t=Ei(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,this._options.enableLogs&&er(this,"afterCaptureLog","flushLogs",or,Bi);(this._options.enableMetrics??this._options._experiments?.enableMetrics??!0)&&er(this,"afterCaptureMetric","flushMetrics",sr,Fi)}captureException(e,t,n){const i=St();if(Pt(e))return Ae&&Se.log(Qi),i;const r={event_id:i,...t};return this._process(()=>this.eventFromException(e,r).then(e=>this._captureEvent(e,r,n)).then(e=>e),"error"),r.event_id}captureMessage(e,t,n,i){const r={event_id:St(),...n},s=Ye(e)?e:String(e),o=Xe(e),a=o?this.eventFromMessage(s,t,r):this.eventFromException(e,r);return this._process(()=>a.then(e=>this._captureEvent(e,r,i)),o?"unknown":"error"),r.event_id}captureEvent(e,t,n){const i=St();if(t?.originalException&&Pt(t.originalException))return Ae&&Se.log(Qi),i;const r={event_id:i,...t},s=e.sdkProcessingMetadata||{},o=s.capturedSpanScope,a=s.capturedSpanIsolationScope,l=nr(e.type);return this._process(()=>this._captureEvent(e,r,o||n,a),l),r.event_id}captureSession(e){this.sendSession(e),Ot(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){const t=this._transport;if(this.emit("flush"),!t)return!0;const n=await this._isClientDoneProcessing(e),i=await t.flush(e);return n&&i}async close(e){const 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(({name:e})=>e.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}getIntegrationNames(){return Object.keys(this._integrations)}addIntegration(e){const t=this._integrations[e.name];!t&&e.beforeSetup&&e.beforeSetup(this),Ii(this,e,this._integrations),t||Mi(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);const n=function(e,t){if("transaction"!==e.type||!e.spans?.length||!e.sdkProcessingMetadata?.hasGenAiSpans||!1===t.getOptions().streamGenAiSpans||function(e){return"stream"===e.getOptions().traceLifecycle}(t))return;const n=[],i=[];for(const s of e.spans)s.op?.startsWith("gen_ai.")?n.push(ki(s)):i.push(s);if(0===n.length)return;e.spans=i;const r=t.getDataCollectionOptions().userInfo?"auto":"never";return[{type:"span",item_count:n.length,content_type:"application/vnd.sentry.items.span.v2+json"},{version:2,...Ri()&&{ingest_settings:{infer_ip:r,infer_user_agent:r}},items:n}]}(e,this);let i=Yn(e,this._dsn,this._options._metadata,this._options.tunnel);for(const r of t.attachments||[])i=Vn(i,Qn(r));n&&(i=Vn(i,n)),this.sendEnvelope(i).then(t=>this.emit("afterSendEvent",e,t))}sendSession(e){const{release:t,environment:n=kn}=this._options;if("aggregates"in e){const i=e.attrs||{};if(!i.release&&!t)return void(Ae&&Se.warn(Wi));i.release=i.release||t,i.environment=i.environment||n,e.attrs=i}else{if(!e.release&&!t)return void(Ae&&Se.warn(Wi));e.release=e.release||t,e.environment=e.environment||n}this.emit("beforeSendSession",e);const i=function(e,t,n,i){const r=Zn(n);return Gn({sent_at:new Date(pt()).toISOString(),...r&&{sdk:r},...!!i&&t&&{dsn:gn(t)}},["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()]])}(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(i)}recordDroppedEvent(e,t,n=1){if(this._options.sendClientReports){const i=`${e}:${t}`;Ae&&Se.log(`Recording outcome: "${i}"${n>1?` (${n} times)`:""}`),this._outcomes[i]=(this._outcomes[i]||0)+n}}on(e,t){const n=this._hooks[e]=this._hooks[e]||new Set,i=(...e)=>t(...e);return n.add(i),()=>{n.delete(i)}}emit(e,...t){const n=this._hooks[e];n&&n.forEach(e=>e(...t))}async sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)try{return await this._transport.send(e)}catch(t){return Ae&&Se.error("Error while sending envelope:",t),{}}return Ae&&Se.error("Transport disabled"),{}}registerCleanup(e){}dispose(){}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=function(e,t){const n={};return t.forEach(t=>{t?.beforeSetup&&t.beforeSetup(e)}),t.forEach(t=>{t&&Ii(e,t,n)}),n}(this,e),Mi(this,e)}_updateSessionFromEvent(e,t){let n="fatal"===t.level,i=!1;const r=t.exception?.values;if(r){i=!0,n=!1;for(const e of r)if(!1===e.mechanism?.handled){n=!0;break}}const s="ok"===e.status;(s&&0===e.errors||s&&n)&&(Ot(e,{...n&&{status:"crashed"},errors:e.errors||Number(i||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,i){const r=this.getOptions(),s=this.getIntegrationNames();return!t.integrations&&s.length&&(t.integrations=s),this.emit("preprocessEvent",e,t),e.type||i.setLastEventId(e.event_id||t.event_id),di(r,e,t,n,this,i).then(e=>{if(null===e)return e;this.emit("postprocessEvent",e,t),e.contexts={trace:{...e.contexts?.trace,...on(n)},...e.contexts};const i=zn(this,n);return e.sdkProcessingMetadata={dynamicSamplingContext:i,...e.sdkProcessingMetadata},e})}_captureEvent(e,t={},n=nn(),i=rn()){return Ae&&ir(e)&&Se.log(`Captured error event \`${Vi(e)[0]||"<unknown>"}\``),this._processEvent(e,t,n,i).then(e=>e.event_id,e=>{Ae&&($i(e)?Se.log(e.message):Ji(e)?Se.warn(e.message):Se.warn(e))})}_processEvent(e,t,n,i){const r=this.getOptions(),{sampleRate:s}=r,o=rr(e),a=ir(e),l=`before send for type \`${e.type||"error"}\``,c=void 0===s?void 0:function(e){if("boolean"==typeof e)return Number(e);const t="string"==typeof e?parseFloat(e):e;return"number"!=typeof t||isNaN(t)||t<0||t>1?void 0:t}(s);if(a&&"number"==typeof c&&dt()>c)return this.recordDroppedEvent("sample_rate","error"),ri(Xi(`Discarding event because it's not included in the random sample (sampling rate = ${s})`));const h=nr(e.type);return this._prepareEvent(e,t,n,i).then(e=>{if(null===e)throw this.recordDroppedEvent("event_processor",h),Xi("An event processor returned `null`, will not send event.");if(!0===t.data?.__sentry__)return e;const n=function(e,t,n,i){const{beforeSend:r,beforeSendTransaction:s,ignoreSpans:o}=t,a=(l=t.beforeSendSpan,!(l&&"function"==typeof l&&"_streamed"in l&&l._streamed)&&t.beforeSendSpan);var l;let c=n;if(ir(c)&&r)return r(c,i);if(rr(c)){if(a||o){const t=function(e){const{trace_id:t,parent_span_id:n,span_id:i,status:r,origin:s,data:o,op:a}=e.contexts?.trace??{};return{data:o??{},description:e.transaction,op:a,parent_span_id:n,span_id:i??"",start_timestamp:e.start_timestamp??0,status:r,timestamp:e.timestamp,trace_id:t??"",origin:s,profile_id:o?.[ln],exclusive_time:o?.[cn],measurements:e.measurements,is_segment:!0}}(c);if(o?.length&&Bn({description:t.description,op:t.op,attributes:t.data},o))return null;if(a){const e=a(t);e?c=kt(n,{type:"transaction",timestamp:(h=e).timestamp,start_timestamp:h.start_timestamp,transaction:h.description,contexts:{trace:{trace_id:h.trace_id,span_id:h.span_id,parent_span_id:h.parent_span_id,op:h.op,status:h.status,origin:h.origin,data:{...h.data,...h.profile_id&&{[ln]:h.profile_id},...h.exclusive_time&&{[cn]:h.exclusive_time}}}},measurements:h.measurements}):Tn()}if(c.spans){const t=[],n=c.spans;for(const e of n)if(o?.length&&Bn({description:e.description,op:e.op,attributes:e.data},o))Dn(n,e);else if(a){const n=a(e);n?t.push(n):(Tn(),t.push(e))}else t.push(e);const i=c.spans.length-t.length;i&&e.recordDroppedEvent("before_send","span",i),c.spans=t}}if(s){if(c.spans){const e=c.spans.length;c.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return s(c,i)}}var h;return c}(this,r,e,t);return function(e,t){const n=`${t} must return \`null\` or a valid event.`;if(tt(e))return e.then(e=>{if(!Je(e)&&null!==e)throw Yi(n);return e},e=>{throw Yi(`${t} rejected with ${e}`)});if(!Je(e)&&null!==e)throw Yi(n);return e}(n,l)}).then(r=>{if(null===r){if(this.recordDroppedEvent("before_send",h),o){const t=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",t)}throw Xi(`${l} returned \`null\`, will not send event.`)}const s=n.getSession()||i.getSession();if(a&&s&&this._updateSessionFromEvent(s,r),o){const e=(r.sdkProcessingMetadata?.spanCountBeforeProcessing||0)-(r.spans?r.spans.length:0);e>0&&this.recordDroppedEvent("before_send","span",e)}const c=r.transaction_info;if(o&&c&&r.transaction!==e.transaction){const e="custom";r.transaction_info={...c,source:e}}return this.sendEvent(r,t),r}).then(null,e=>{if($i(e)||Ji(e))throw e;throw this.captureException(e,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:e}),Yi(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`)})}_process(e,t){this._numProcessing++,this._promiseBuffer.add(e).then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e===Ni&&this.recordDroppedEvent("queue_overflow",t),e))}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.entries(e).map(([e,t])=>{const[n,i]=e.split(":");return{reason:n,category:i,quantity:t}})}_flushOutcomes(){Ae&&Se.log("Flushing outcomes...");const e=this._clearOutcomes();if(0===e.length)return void(Ae&&Se.log("No outcomes to send"));if(!this._dsn)return void(Ae&&Se.log("No dsn provided, will not send outcomes"));Ae&&Se.log("Sending outcomes:",e);const t=(n=e,Gn((i=this._options.tunnel&&gn(this._dsn))?{dsn:i}:{},[[{type:"client_report"},{timestamp:Bt(),discarded_events:n}]]));var n,i;this.sendEnvelope(t)}}function nr(e){return"replay_event"===e?"replay":e||"error"}function ir(e){return void 0===e.type}function rr(e){return"transaction"===e.type}function sr(e){let t=0;return e.name&&(t+=2*e.name.length),t+=8,t+ar(e.attributes)}function or(e){let t=0;return e.message&&(t+=2*e.message.length),t+ar(e.attributes)}function ar(e){if(!e)return 0;let t=0;return Object.values(e).forEach(e=>{Array.isArray(e)?t+=e.length*lr(e[0]):Xe(e)?t+=lr(e):t+=100}),t}function lr(e){return"string"==typeof e?2*e.length:"number"==typeof e?8:"boolean"==typeof e?4:0}function cr(e,t){!0===t.debug&&(Ae?Se.enable():xe(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")}));nn().update(t.initialScope);const n=new e(t);return function(e){nn().setClient(e)}(n),n.init(),n}function hr(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",i=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:i,relative:t[5]+n+i}}function ur(e){"aggregates"in e?void 0===e.attrs?.ip_address&&(e.attrs={...e.attrs,ip_address:"{{auto}}"}):void 0===e.ipAddress&&(e.ipAddress="{{auto}}")}const dr=100;function pr(e,t){const n=sn(),i=rn();if(!n)return;const{beforeBreadcrumb:r=null,maxBreadcrumbs:s=dr}=n.getOptions();if(s<=0)return;const o={timestamp:Bt(),...e},a=r?xe(()=>r(o,t)):o;null!==a&&(n.emit&&n.emit("beforeAddBreadcrumb",a,t),i.addBreadcrumb(a,s))}const Ar=new WeakMap,fr=()=>({name:"FunctionToString",setupOnce(){const e=Function.prototype.toString;try{Function.prototype.toString=function(...t){const n=at(this);let i;try{Ar.has(sn())&&void 0!==n&&(i=n)}catch{}return e.apply(i??this,t)}}catch{}},setup(e){Ar.set(e,!0)}}),gr=[/^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$/],mr=(e={})=>{let t;return{name:"EventFilters",setup(n){const i=n.getOptions();t=vr(e,i)},processEvent(n,i,r){if(!t){const n=r.getOptions();t=vr(e,n)}return function(e,t){if(e.type){if("transaction"===e.type&&function(e,t){if(!t?.length)return!1;const n=e.transaction;return!!n&&Ct(n,t)}(e,t.ignoreTransactions))return Ae&&Se.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${It(e)}`),!0}else{if(function(e,t){if(!t?.length)return!1;return Vi(e).some(e=>Ct(e,t))}(e,t.ignoreErrors))return Ae&&Se.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${It(e)}`),!0;if(function(e){if(!e.exception?.values?.length)return!1;return!e.message&&!e.exception.values.some(e=>e.stacktrace||e.type&&"Error"!==e.type||e.value)}(e))return Ae&&Se.warn(`Event dropped due to not having an error message, error type or stacktrace.\nEvent: ${It(e)}`),!0;if(function(e,t){if(!t?.length)return!1;const n=br(e);return!!n&&Ct(n,t)}(e,t.denyUrls))return Ae&&Se.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${It(e)}.\nUrl: ${br(e)}`),!0;if(!function(e,t){if(!t?.length)return!0;const n=br(e);return!n||Ct(n,t)}(e,t.allowUrls))return Ae&&Se.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${It(e)}.\nUrl: ${br(e)}`),!0}return!1}(n,t)?null:n}}},yr=(e={})=>({...mr(e),name:"InboundFilters"});function vr(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:gr],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function br(e){try{const t=[...e.exception?.values??[]].reverse().find(e=>void 0===e.mechanism?.parent_id&&e.stacktrace?.frames?.length),n=t?.stacktrace?.frames;return n?function(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(n):null}catch{return Ae&&Se.error(`Cannot extract url for event ${It(e)}`),null}}function _r(e,t,n,i,r,s){if(!r.exception?.values||!s||!nt(s.originalException,Error))return;const o=r.exception.values.length>0?r.exception.values[r.exception.values.length-1]:void 0;o&&(r.exception.values=xr(e,t,i,s.originalException,n,r.exception.values,o,0))}function xr(e,t,n,i,r,s,o,a){if(s.length>=n+1)return s;let l=[...s];if(nt(i[r],Error)){Er(o,a,i);const s=e(t,i[r]),c=l.length;Cr(s,r,c,a),l=xr(e,t,n,i[r],r,[s,...l],s,c)}return wr(i)&&i.errors.forEach((s,c)=>{if(nt(s,Error)){Er(o,a,i);const h=e(t,s),u=l.length;Cr(h,`errors[${c}]`,u,a),l=xr(e,t,n,s,r,[h,...l],h,u)}}),l}function wr(e){return Array.isArray(e.errors)}function Er(e,t,n){e.mechanism={handled:!0,type:"auto.core.linked_errors",...wr(n)&&{is_exception_group:!0},...e.mechanism,exception_id:t}}function Cr(e,t,n,i){e.mechanism={handled:!0,...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:i}}function Sr(e){return function(e){return qe(e)&&"__sentry_fetch_url_host__"in e&&"string"==typeof e.__sentry_fetch_url_host__}(e)?`${e.message} (${e.__sentry_fetch_url_host__})`:e.message}const Mr=new Set([]);const Ir=new Set;function Tr(){"console"in fe&&be.forEach(function(e){!Ir.has(e)&&e in fe.console&&(Ir.add(e),rt(fe.console,e,function(t){return _e[e]=t,function(...t){const n=t[0],i=_e[e],r=Mr.size&&"string"==typeof n&&Ct(n,Mr);r||ze("console",{args:t,level:e}),(!r||Ae&&Se.isEnabled())&&i?.apply(fe.console,t)}}))})}function Rr(e){return"warn"===e?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}const Pr=()=>{let e;return{name:"Dedupe",processEvent(t){if(t.type)return t;try{if(function(e,t){if(!t)return!1;if(function(e,t){const n=e.message,i=t.message;if(!n&&!i)return!1;if(n&&!i||!n&&i)return!1;if(n!==i)return!1;if(!Lr(e,t))return!1;if(!Br(e,t))return!1;return!0}(e,t))return!0;if(function(e,t){const n=Dr(t),i=Dr(e);if(!n||!i)return!1;if(n.type!==i.type||n.value!==i.value)return!1;if(!Lr(e,t))return!1;if(!Br(e,t))return!1;return!0}(e,t))return!0;return!1}(t,e))return Ae&&Se.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}};function Br(e,t){let n=De(e),i=De(t);if(!n&&!i)return!0;if(n&&!i||!n&&i)return!1;if(i.length!==n.length)return!1;for(let r=0;r<i.length;r++){const e=i[r],t=n[r];if(e.filename!==t.filename||e.lineno!==t.lineno||e.colno!==t.colno||e.function!==t.function)return!1}return!0}function Lr(e,t){let n=e.fingerprint,i=t.fingerprint;if(!n&&!i)return!0;if(n&&!i||!n&&i)return!1;try{return!(n.join("")!==i.join(""))}catch{return!1}}function Dr(e){return e.exception?.values?.[0]}const Fr=()=>({name:"ConversationId",setup(e){e.on("spanStart",e=>{const t=nn().getScopeData(),n=rn().getScopeData(),i=t.conversationId||n.conversationId;if(i){const{op:t,data:n,description:r}=Cn(e);if(!t?.startsWith("gen_ai.")&&!n["ai.operationId"]&&!r?.startsWith("ai."))return;e.setAttribute("gen_ai.conversation.id",i)}})}});function Or(e){return void 0===e?void 0:e>=400&&e<500?"warning":e>=500?"error":void 0}const kr=fe;function Nr(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function zr(){if("string"==typeof EdgeRuntime)return!0;if(!function(){if(!("fetch"in kr))return!1;try{return new Headers,new Request("data:,"),new Response,!0}catch{return!1}}())return!1;if(Nr(kr.fetch))return!0;let e=!1;const t=kr.document;if(t&&"function"==typeof t.createElement)try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow?.fetch&&(e=Nr(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){Ae&&Se.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}function Ur(e,t){const n="fetch",i=ke(n,e);return Ne(n,()=>function(e,t=!1){if(t&&!zr())return;rt(fe,"fetch",function(e){return function(...t){const n=new Error,{method:i,url:r}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){const[t,n]=e;return{url:Vr(t),method:Gr(n,"method")?String(n.method).toUpperCase():it(t)&&Gr(t,"method")?String(t.method).toUpperCase():"GET"}}const t=e[0];return{url:Vr(t),method:Gr(t,"method")?String(t.method).toUpperCase():"GET"}}(t),s={args:t,fetchData:{method:i,url:r},startTimestamp:1e3*Dt(),virtualError:n,headers:Hr(t)};return ze("fetch",{...s}),e.apply(fe,t).then(async e=>(ze("fetch",{...s,endTimestamp:1e3*Dt(),response:e}),e),e=>{ze("fetch",{...s,endTimestamp:1e3*Dt(),error:e}),qe(e)&&void 0===e.stack&&(e.stack=n.stack,st(e,"framesToPop",1));const t=sn(),i=t?.getOptions().enhanceFetchErrorMessages??"always";if(!1!==i&&e instanceof TypeError&&("Failed to fetch"===e.message||"Load failed"===e.message||"NetworkError when attempting to fetch resource."===e.message))try{const t=new URL(s.fetchData.url).host;"always"===i?e.message=`${e.message} (${t})`:st(e,"__sentry_fetch_url_host__",t)}catch{}throw e})}})}(0,t)),i}function Gr(e,t){return $e(e)&&!!e[t]}function Vr(e){return"string"==typeof e?e:e?Gr(e,"url")?e.url:e.toString?e.toString():"":""}function Hr(e){const[t,n]=e;try{if("object"==typeof n&&null!==n&&"headers"in n&&n.headers)return new Headers(n.headers);if(it(t))return new Headers(t.headers)}catch{}}const jr=fe;function qr(){try{return jr.document.location.href}catch{return""}}const Qr=fe;let Wr=0;function Kr(){return Wr>0}function Zr(e,t={}){if("function"!=typeof e)return e;try{if(Object.prototype.hasOwnProperty.call(e,"__sentry_wrapped__")){const t=e.__sentry_wrapped__;return"function"==typeof t?t:e}if(at(e))return e}catch{return e}const n=function(...n){fe._sentryWrappedDepth=(fe._sentryWrappedDepth||0)+1;try{const i=n.map(e=>Zr(e,t));return e.apply(this,i)}catch(i){throw Wr++,setTimeout(()=>{Wr--}),function(...e){const t=$t(me());if(2===e.length){const[n,i]=e;return n?t.withSetScope(n,i):t.withScope(i)}t.withScope(e[0])}(e=>{e.addEventProcessor(e=>(t.mechanism&&(Tt(e,void 0),Rt(e,t.mechanism)),e.extra={...e.extra,arguments:n},e)),fi(i)}),i}finally{fe._sentryWrappedDepth=(fe._sentryWrappedDepth||0)-1}};try{for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}catch{}ot(n,e),st(e,"__sentry_wrapped__",n);try{Object.getOwnPropertyDescriptor(n,"name").configurable&&Object.defineProperty(n,"name",{get:()=>e.name})}catch{}return n}function Yr(){const e=qr(),{referrer:t}=Qr.document||{},{userAgent:n}=Qr.navigator||{};return{url:e,headers:{...t&&{Referer:t},...n&&{"User-Agent":n}}}}function Xr(e,t){const n=es(e,t),i={type:is(t),value:rs(t)};return n.length&&(i.stacktrace={frames:n}),void 0===i.type&&""===i.value&&(i.value="Unrecoverable error caught"),i}function Jr(e,t,n,i){const r=sn(),s=r?.getOptions().normalizeDepth,o=(a=t,Object.values(a).find(e=>e instanceof Error));var a;const l={__serialized__:vt(t,s)};if(o)return{exception:{values:[Xr(e,o)]},extra:l};const c={exception:{values:[{type:et(t)?t.constructor.name:i?"UnhandledRejection":"Error",value:as(t,{isUnhandledRejection:i})}]},extra:l};if(n){const t=es(e,n);t.length&&(c.exception.values[0].stacktrace={frames:t})}return c}function $r(e,t){return{exception:{values:[Xr(e,t)]}}}function es(e,t){const n=t.stacktrace||t.stack||"",i=function(e){if(e&&ts.test(e.message))return 1;return 0}(t),r=function(e){if("number"==typeof e.framesToPop)return e.framesToPop;return 0}(t);try{return e(n,i,r)}catch{}return[]}const ts=/Minified React error #\d+;/i;function ns(e){return"undefined"!=typeof WebAssembly&&void 0!==WebAssembly.Exception&&e instanceof WebAssembly.Exception}function is(e){const t=e?.name;if(!t&&ns(e)){return e.message&&Array.isArray(e.message)&&2==e.message.length?e.message[0]:"WebAssembly.Exception"}return t}function rs(e){const t=e?.message;return ns(e)?Array.isArray(e.message)&&2==e.message.length?e.message[1]:"wasm exception":t?t.error&&"string"==typeof t.error.message?Sr(t.error):Sr(e):"No error message"}function ss(e,t,n,i,r){let s;if(We(t)&&t.error){return $r(e,t.error)}if(Ke(t)||Qe(t,"DOMException")){const r=t;if("stack"in t){s=$r(e,t);const r=s.exception?.values?.[0];if(i&&n&&r&&!r.stacktrace){const t=es(e,n);t.length&&(r.stacktrace={frames:t},Rt(s,{synthetic:!0}))}}else{const t=r.name||(Ke(r)?"DOMError":"DOMException"),o=r.message?`${t}: ${r.message}`:t;s=os(e,o,n,i),Tt(s,o)}return"code"in r&&(s.tags={...s.tags,"DOMException.code":`${r.code}`}),s}if(qe(t))return $r(e,t);if(Je(t)||et(t)){return s=Jr(e,t,n,r),Rt(s,{synthetic:!0}),s}return s=os(e,t,n,i),Tt(s,`${t}`),Rt(s,{synthetic:!0}),s}function os(e,t,n,i){const r={};if(i&&n){const i=es(e,n);i.length&&(r.exception={values:[{value:t,stacktrace:{frames:i}}]}),Rt(r,{synthetic:!0})}if(Ye(t)){const{__sentry_template_string__:e,__sentry_template_values__:n}=t;return r.logentry={message:e,params:n},r}return r.message=t,r}function as(e,{isUnhandledRejection:t}){const n=function(e){const t=Object.keys(lt(e));return t.sort(),t[0]?t.join(", "):"[object has no keys]"}(e),i=t?"promise rejection":"exception";if(We(e))return`Event \`ErrorEvent\` captured as ${i} with message \`${e.message}\``;if(et(e)){return`Event \`${function(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}(e)}\` (type=${e.type}) captured as ${i}`}return`Object captured as ${i} with keys: ${n}`}class ls extends tr{constructor(e){const t=(n=e,{release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:Qr.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...n});var n;!function(e,t,n=[t],i="npm"){const r=(e._metadata=e._metadata||{}).sdk=e._metadata.sdk||{};r.name||(r.name=`sentry.javascript.${t}`,r.packages=n.map(e=>({name:`${i}:@sentry/${e}`,version:ge})),r.version=ge)}(t,"browser",["browser"],Qr.SENTRY_SDK_SOURCE||"npm"),super(t);const{userInfo:i}=this.getDataCollectionOptions();t._metadata?.sdk&&(t._metadata.sdk.settings={infer_ip:i?"auto":"never",...t._metadata.sdk.settings});const{sendClientReports:r}=this._options;Qr.document&&Qr.document.addEventListener("visibilitychange",()=>{"hidden"===Qr.document.visibilityState&&(r&&this._flushOutcomes(),queueMicrotask(()=>{this.flush()}))}),i&&this.on("beforeSendSession",ur)}eventFromException(e,t){return function(e,t,n,i){const r=ss(e,t,n?.syntheticException||void 0,i);return Rt(r),r.level="error",n?.event_id&&(r.event_id=n.event_id),ii(r)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return function(e,t,n="info",i,r){const s=os(e,t,i?.syntheticException||void 0,r);return s.level=n,i?.event_id&&(s.event_id=i.event_id),ii(s)}(this._options.stackParser,e,t,n,this._options.attachStacktrace)}_prepareEvent(e,t,n,i){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n,i)}}const cs="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,hs=fe;function us(e,t,n){hs.document&&hs.addEventListener(e,t,n)}function ds(e,t,n){hs.document&&hs.removeEventListener(e,t,n)}const ps={};try{"undefined"!=typeof Node&&(ps.parentNode=Object.getOwnPropertyDescriptor(Node.prototype,"parentNode").get),"undefined"!=typeof Element&&(ps.tagName=Object.getOwnPropertyDescriptor(Element.prototype,"tagName").get,ps.id=Object.getOwnPropertyDescriptor(Element.prototype,"id").get,ps.className=Object.getOwnPropertyDescriptor(Element.prototype,"className").get,ps.getAttribute=Element.prototype.getAttribute),"undefined"!=typeof HTMLElement&&(ps.dataset=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"dataset").get)}catch{}function As(e,t,n){const i=ps[t];if(i)try{return i.call(e,n)}catch{}const r=e[t];return"function"==typeof r?r.call(e,n):r}function fs(e,t={}){if(!e)return"<unknown>";try{let n=e;const i=5,r=[];let s=0,o=0;const a=" > ",l=a.length;let c;const h=Array.isArray(t)?t:t.keyAttrs,u=!Array.isArray(t)&&t.maxStringLength||80;for(;n&&s++<i&&(c=gs(n,h),!("html"===c||s>1&&o+r.length*l+c.length>=u));)r.push(c),o+=c.length,n=As(n,"parentNode");return r.reverse().join(a)}catch{return"<unknown>"}}function gs(e,t){const n=[],i=As(e,"tagName");if(!i)return"";if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement){const t=As(e,"dataset");if(t){if(t.sentryComponent)return t.sentryComponent;if(t.sentryElement)return t.sentryElement}}n.push(i.toLowerCase());const r=t?.length?t.filter(t=>As(e,"getAttribute",t)).map(t=>[t,As(e,"getAttribute",t)]):null;if(r?.length)r.forEach(e=>{n.push(`[${e[0]}="${e[1]}"]`)});else{const t=As(e,"id");t&&n.push(`#${t}`);const i=As(e,"className");if(i&&Ze(i)){const e=i.split(/\s+/);for(const t of e)n.push(`.${t}`)}}for(const s of["aria-label","type","name","title","alt"]){const t=As(e,"getAttribute",s);t&&n.push(`[${s}="${t}"]`)}return n.join("")}let ms,ys,vs,bs;function _s(){if(!hs.document)return;const e=ze.bind(null,"dom"),t=xs(e,!0);hs.document.addEventListener("click",t,!1),hs.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(t=>{const n=hs,i=n[t]?.prototype;i?.hasOwnProperty?.("addEventListener")&&(rt(i,"addEventListener",function(t){return function(n,i,r){if("click"===n||"keypress"==n)try{const i=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},s=i[n]=i[n]||{refCount:0};if(!s.handler){const i=xs(e);s.handler=i,t.call(this,n,i,r)}s.refCount++}catch{}return t.call(this,n,i,r)}}),rt(i,"removeEventListener",function(e){return function(t,n,i){if("click"===t||"keypress"==t)try{const n=this.__sentry_instrumentation_handlers__||{},r=n[t];r&&(r.refCount--,r.refCount<=0&&(e.call(this,t,r.handler,i),r.handler=void 0,delete n[t]),0===Object.keys(n).length&&delete this.__sentry_instrumentation_handlers__)}catch{}return e.call(this,t,n,i)}}))})}function xs(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const i=function(e){try{return e.target}catch{return null}}(n);if(function(e,t){return"keypress"===e&&(!t?.tagName||"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName&&!t.isContentEditable)}(n.type,i))return;st(n,"_sentryCaptured",!0),i&&!i._sentryId&&st(i,"_sentryId",St());const r="keypress"===n.type?"input":n.type;if(!function(e){if(e.type!==ys)return!1;try{if(!e.target||e.target._sentryId!==vs)return!1}catch{}return!0}(n)){e({event:n,name:r,global:t}),ys=n.type,vs=i?i._sentryId:void 0}clearTimeout(ms),ms=hs.setTimeout(()=>{vs=void 0,ys=void 0},1e3)}}function ws(e){const t="history";ke(t,e),Ne(t,Es)}function Es(){function e(e){return function(...t){const n=t.length>2?t[2]:void 0;if(n){const i=bs,r=function(e){try{return new URL(e,hs.location.origin).toString()}catch{return e}}(String(n));if(bs=r,i===r)return e.apply(this,t);ze("history",{from:i,to:r})}return e.apply(this,t)}}hs.addEventListener("popstate",()=>{const e=hs.location.href,t=bs;if(bs=e,t===e)return;ze("history",{from:t,to:e})}),"history"in kr&&kr.history&&(rt(hs.history,"pushState",e),rt(hs.history,"replaceState",e))}const Cs={};const Ss="__sentry_xhr_v3__";function Ms(){if(!hs.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,n){const i=new Error,r=1e3*Dt(),s=Ze(n[0])?n[0].toUpperCase():void 0,o=function(e){if(Ze(e))return e;try{return e.toString()}catch{}return}(n[1]);if(!s||!o)return e.apply(t,n);t[Ss]={method:s,url:o,request_headers:{}},"POST"===s&&o.match(/sentry_key/)&&(t.__sentry_own_request__=!0);const a=()=>{const e=t[Ss];if(e&&4===t.readyState){try{e.status_code=t.status}catch{}ze("xhr",{endTimestamp:1e3*Dt(),startTimestamp:r,xhr:t,virtualError:i}),t.removeEventListener("readystatechange",a)}};return"onreadystatechange"in t&&"function"==typeof t.onreadystatechange?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply:(e,t,n)=>(a(),e.apply(t,n))}):t.addEventListener("readystatechange",a),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,n){const[i,r]=n,s=t[Ss];return s&&Ze(i)&&Ze(r)&&(s.request_headers[i.toLowerCase()]=r),e.apply(t,n)}}),e.apply(t,n)}}),e.send=new Proxy(e.send,{apply(e,t,n){const i=t[Ss];if(!i)return e.apply(t,n);void 0!==n[0]&&(i.body=n[0]);return ze("xhr",{startTimestamp:1e3*Dt(),xhr:t}),e.apply(t,n)}})}function Is(e,t=function(e){const t=Cs[e];if(t)return t;let n=hs[e];if(Nr(n))return Cs[e]=n.bind(hs);const i=hs.document;if(i&&"function"==typeof i.createElement)try{const t=i.createElement("iframe");t.hidden=!0,i.head.appendChild(t);const r=t.contentWindow;r?.[e]&&(n=r[e]),i.head.removeChild(t)}catch(mie){cs&&Se.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,mie)}return n?Cs[e]=n.bind(hs):n}("fetch")){let n=0,i=0;return Gi(e,async function(r){const s=r.body.length;n+=s,i++;const o={body:r.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:n<=6e4&&i<15,...e.fetchOptions};try{const n=await t(e.url,o);return{statusCode:n.status,headers:{"x-sentry-rate-limits":n.headers.get("X-Sentry-Rate-Limits"),"retry-after":n.headers.get("Retry-After")}}}catch(mie){throw function(e){Cs[e]=void 0}("fetch"),mie}finally{n-=s,i--}},zi(e.bufferSize||40))}const Ts="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function Rs(e,t,n,i){const r={filename:e,function:"<anonymous>"===t?Me:t,in_app:!0};return void 0!==n&&(r.lineno=n),void 0!==i&&(r.colno=i),r}const Ps=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,Bs=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Ls=/\((\S*)(?::(\d+))(?::(\d+))\)/,Ds=/at (.+?) ?\(data:(.+?),/,Fs=[30,e=>{const t=e.match(Ds);if(t)return{filename:`<data:${t[2]}>`,function:t[1]};const n=Ps.exec(e);if(n){const[,e,t,i]=n;return Rs(e,Me,+t,+i)}const i=Bs.exec(e);if(i){if(0===i[2]?.indexOf("eval")){const e=Ls.exec(i[2]);e&&(i[2]=e[1],i[3]=e[2],i[4]=e[3])}const[e,t]=Us(i[1]||Me,i[2]);return Rs(t,e,i[3]?+i[3]:void 0,i[4]?+i[4]:void 0)}}],Os=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,ks=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Ns=[50,e=>{const t=Os.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const e=ks.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]||Me;return[n,e]=Us(n,e),Rs(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],zs=Re(...[Fs,Ns]),Us=(e,t)=>{const n=-1!==e.indexOf("safari-extension"),i=-1!==e.indexOf("safari-web-extension");return n||i?[-1!==e.indexOf("@")?e.split("@")[0]:Me,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},Gs=1024,Vs=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:"Breadcrumbs",setup(e){var n;t.console&&function(e){const t="console",n=ke(t,e);Ne(t,Tr)}(function(e){return function(t){if(sn()!==e)return;const n={category:"console",data:{arguments:t.args,logger:"console"},level:Rr(t.level),message:wt(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;n.message=`Assertion failed: ${wt(t.args.slice(1)," ")||"console.assert"}`,n.data.arguments=t.args.slice(1)}pr(n,{input:t.args,level:t.level})}}(e)),t.dom&&(n=function(e,t){return function(n){if(sn()!==e)return;let i,r,s="object"==typeof t?t.serializeAttribute:void 0,o="object"==typeof t&&"number"==typeof t.maxStringLength?t.maxStringLength:void 0;o&&o>Gs&&(Ts&&Se.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${o} was configured. Sentry will use 1024 instead.`),o=Gs),"string"==typeof s&&(s=[s]);try{const e=n.event,t=function(e){return!!e&&!!e.target}(e)?e.target:e;i=fs(t,{keyAttrs:s,maxStringLength:o}),r=function(e,t=5){if(!jr.HTMLElement)return null;let n=e;for(let i=0;i<t;i++){if(!n)return null;if(n instanceof HTMLElement){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}n=n.parentNode}return null}(t)}catch{i="<unknown>"}if(0===i.length)return;const a={category:`ui.${n.name}`,message:i};r&&(a.data={"ui.component_name":r}),pr(a,{event:n.event,name:n.name,global:n.global})}}(e,t.dom),ke("dom",n),Ne("dom",_s)),t.xhr&&function(e){ke("xhr",e),Ne("xhr",Ms)}(function(e){return function(t){if(sn()!==e)return;const{startTimestamp:n,endTimestamp:i}=t,r=t.xhr[Ss];if(!n||!i||!r)return;const{method:s,url:o,status_code:a,body:l}=r,c={method:s,url:o,status_code:a},h={xhr:t.xhr,input:l,startTimestamp:n,endTimestamp:i},u={category:"xhr",data:c,type:"http",level:Or(a)};e.emit("beforeOutgoingRequestBreadcrumb",u,h),pr(u,h)}}(e)),t.fetch&&Ur(function(e){return function(t){if(sn()!==e)return;const{startTimestamp:n,endTimestamp:i}=t;if(i&&(!t.fetchData.url.match(/sentry_key/)||"POST"!==t.fetchData.method))if(t.error){const r={data:t.error,input:t.args,startTimestamp:n,endTimestamp:i},s={category:"fetch",data:t.fetchData,level:"error",type:"http"};e.emit("beforeOutgoingRequestBreadcrumb",s,r),pr(s,r)}else{const r=t.response,s={...t.fetchData,status_code:r?.status},o={input:t.args,response:r,startTimestamp:n,endTimestamp:i},a={category:"fetch",data:s,type:"http",level:Or(s.status_code)};e.emit("beforeOutgoingRequestBreadcrumb",a,o),pr(a,o)}}}(e)),t.history&&ws(function(e){return function(t){if(sn()!==e)return;let n=t.from,i=t.to;const r=hr(Qr.location.href);let s=n?hr(n):void 0;const o=hr(i);s?.path||(s=r),r.protocol===o.protocol&&r.host===o.host&&(i=o.relative),r.protocol===s.protocol&&r.host===s.host&&(n=s.relative),pr({category:"navigation",data:{from:n,to:i}})}}(e)),t.sentry&&e.on("beforeSendEvent",function(e){return function(t){sn()===e&&pr({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:It(t)},{event:t})}}(e))}}};const Hs="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(","),js=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:"BrowserApiErrors",setupOnce(){t.setTimeout&&rt(Qr,"setTimeout",qs),t.setInterval&&rt(Qr,"setInterval",qs),t.requestAnimationFrame&&rt(Qr,"requestAnimationFrame",Qs),t.XMLHttpRequest&&"XMLHttpRequest"in Qr&&rt(XMLHttpRequest.prototype,"send",Ws);const e=t.eventTarget;if(e){(Array.isArray(e)?e:Hs).forEach(e=>function(e,t){const n=Qr,i=n[e]?.prototype;if(!i?.hasOwnProperty?.("addEventListener"))return;rt(i,"addEventListener",function(n){return function(i,r,s){try{"function"==typeof r.handleEvent&&(r.handleEvent=Zr(r.handleEvent,{mechanism:{data:{handler:Le(r),target:e},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return t.unregisterOriginalCallbacks&&function(e,t,n){e&&"object"==typeof e&&"removeEventListener"in e&&"function"==typeof e.removeEventListener&&e.removeEventListener(t,n)}(this,i,r),n.apply(this,[i,Zr(r,{mechanism:{data:{handler:Le(r),target:e},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),s])}}),rt(i,"removeEventListener",function(e){return function(t,n,i){try{if(Object.prototype.hasOwnProperty.call(n,"__sentry_wrapped__")){const r=n.__sentry_wrapped__;r&&e.call(this,t,r,i)}}catch{}return e.call(this,t,n,i)}})}(e,t))}}}};function qs(e){return function(...t){const n=t[0];return t[0]=Zr(n,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${Le(e)}`}}),e.apply(this,t)}}function Qs(e){return function(t){return e.apply(this,[Zr(t,{mechanism:{data:{handler:Le(e)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function Ws(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(e=>{e in n&&"function"==typeof n[e]&&rt(n,e,function(t){const n={mechanism:{data:{handler:Le(t)},handled:!1,type:`auto.browser.browserapierrors.xhr.${e}`}},i=at(t);return i&&(n.mechanism.data.handler=Le(i)),Zr(t,n)})}),e.apply(this,t)}}const Ks=(e={})=>{const t=e.lifecycle??"route";return{name:"BrowserSession",setupOnce(){if(void 0===Qr.document)return void(Ts&&Se.warn("Using the `browserSessionIntegration` in non-browser environments is not supported."));vi({ignoreDuration:!0});let e=!1;(e=>{const t=hs.requestIdleCallback||hs.setTimeout;"hidden"===hs.document?.visibilityState?e():(us("visibilitychange",e=(e=>{let t=!1;return()=>{t||(e(),t=!0)}})(e),{once:!0,capture:!0}),us("pagehide",e,{once:!0,capture:!0}),t(()=>{e(),ds("visibilitychange",e,{capture:!0}),ds("pagehide",e,{capture:!0})}))})(()=>{e||(xi(),e=!0)});const n=rn();let i=n.getUser();n.addScopeListener(t=>{const n=t.getUser();i?.id===n?.id&&i?.ip_address===n?.ip_address||(i=n,e&&xi())}),"route"===t&&ws(({from:t,to:n})=>{t!==n&&(vi({ignoreDuration:!0}),xi(),e=!0)})}}},Zs=()=>({name:"CultureContext",preprocessEvent(e){const t=Ys();t&&(e.contexts={...e.contexts,culture:{...t,...e.contexts?.culture}})},processSegmentSpan(e){const t=Ys();t&&ni(e,{"culture.locale":t.locale,"culture.timezone":t.timezone,"culture.calendar":t.calendar})}});function Ys(){try{const e=Qr.Intl;if(!e)return;const t=e.DateTimeFormat().resolvedOptions();return{locale:t.locale,timezone:t.timeZone,calendar:t.calendar}}catch{return}}const Xs=(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(!function(e){!function(e){const t="error";ke(t,e),Ne(t,Ge)}(t=>{const{stackParser:n,attachStacktrace:i}=$s();if(sn()!==e||Kr())return;const{msg:r,url:s,line:o,column:a,error:l}=t,c=function(e,t,n,i){const r=e.exception=e.exception||{},s=r.values=r.values||[],o=s[0]=s[0]||{},a=o.stacktrace=o.stacktrace||{},l=a.frames=a.frames||[];0===l.length&&l.push({colno:i,lineno:n,filename:eo(t)??qr(),function:Me,in_app:!0});return e}(ss(n,l||r,void 0,i,!1),s,o,a);c.level="error",mi(c,{originalException:l,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})})}(e),Js("onerror")),t.onunhandledrejection&&(!function(e){!function(e){const t="unhandledrejection";ke(t,e),Ne(t,He)}(t=>{const{stackParser:n,attachStacktrace:i}=$s();if(sn()!==e||Kr())return;const r=function(e){if(Xe(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}(t),s=Xe(r)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(r)}`}]}}:ss(n,r,void 0,i,!0);s.level="error",mi(s,{originalException:r,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})})}(e),Js("onunhandledrejection"))}}};function Js(e){Ts&&Se.log(`Global Handler attached: ${e}`)}function $s(){const e=sn();return e?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}function eo(e){if(Ze(e)&&0!==e.length)return e.startsWith("data:")?`<${function(e,t=!0){if(e.startsWith("data:")){const n=e.match(/^data:([^;,]+)/),i=n?n[1]:"text/plain",r=e.includes(";base64,"),s=e.indexOf(",");let o="";if(t&&-1!==s){const t=e.slice(s+1);o=t.length>10?`${t.slice(0,10)}... [truncated]`:t}return`data:${i}${r?",base64":""}${o?`,${o}`:""}`}return e}(e,!1)}>`:e}const to=()=>({name:"HttpContext",preprocessEvent(e){if(!Qr.navigator&&!Qr.location&&!Qr.document)return;const t=Yr(),n={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:n}},processSegmentSpan(e){const t=e.attributes?.[an];if(!Qr.navigator&&!Qr.location&&!Qr.document)return;const n=Yr();ni(e,{[ti]:"http.client"!==t?n.url:void 0,"http.request.header.user_agent":n.headers["User-Agent"],"http.request.header.referer":n.headers.Referer})}}),no=(e={})=>{const t=e.limit||5,n=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,i,r){_r(Xr,r.getOptions().stackParser,n,t,e,i)}}},io=/^HTML(\w*)Element$/;function ro(e){if("undefined"!=typeof window&&e===window)return"[Window]";if("undefined"!=typeof document&&e===document)return"[Document]";if(function(e){if("undefined"==typeof Element)return!1;try{return e instanceof Element}catch{return!1}}(e)){const t=function(e){const t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:"null prototype"}(e);if(io.test(t))return`[HTMLElement: ${fs(e)}]`}}function so(){return!!function(){if(void 0===Qr.window)return!1;const e=Qr;if(e.nw)return!1;const t=e.chrome||e.browser;if(!t?.runtime?.id)return!1;const n=qr();return!(Qr===Qr.top&&/^(?:chrome-extension|moz-extension|ms-browser-extension|safari-web-extension):\/\//.test(n))}()&&(Ts&&xe(()=>{console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}),!0)}function oo(e){return[yr(),fr(),Fr(),js(),Vs(),Xs(),no(),Pr(),to(),Zs(),Ks()]}function ao(e={}){const t=!e.skipBrowserExtensionCheck&&so();let n=null==e.defaultIntegrations?oo():e.defaultIntegrations;const i={...e,enabled:!t&&e.enabled,stackParser:(r=e.stackParser||zs,Array.isArray(r)?Re(...r):r),integrations:Si({integrations:e.integrations,defaultIntegrations:n}),transport:e.transport||Is};var r;return gt=ro,cr(ls,i)}class lo{constructor(){this.initialized=!1}static initialize(e){const t=lo.getInstance();if(t.initialized)return void yi("component",e);ao({dsn:"https://98a864152051bb3d42f8e955f2ab3078@sentry.mapvx.app/6",environment:"production",release:"0.1.1"}),yi("component",e),t.initialized=!0}static getInstance(){return lo.instance||(lo.instance=new lo),lo.instance}error(e,t){fi(e,t?{extra:t}:void 0)}info(e,t){gi(e,{level:"info",extra:t})}warning(e,t){gi(e,{level:"warning",extra:t})}critical(e,t){gi(e,{level:"fatal",extra:t})}}
|
|
38
|
+
*/function pe(e){return de({...e,state:!0,attribute:!1})}const Ae="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,fe=globalThis,ge="10.68.0";function me(){return ye(fe),fe}function ye(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||ge,t[ge]=t[ge]||{}}function ve(e,t,n=fe){const i=n.__SENTRY__=n.__SENTRY__||{},r=i[ge]=i[ge]||{};return r[e]||(r[e]=t())}const be=["debug","info","warn","error","log","assert","trace"],_e={};function xe(e){if(!("console"in fe))return e();const t=fe.console,n={},i=Object.keys(_e);i.forEach(e=>{const i=_e[e];n[e]=t[e],t[e]=i});try{return e()}finally{i.forEach(e=>{t[e]=n[e]})}}function we(){return Ce().enabled}function Ee(e,...t){Ae&&we()&&xe(()=>{fe.console[e](`Sentry Logger [${e}]:`,...t)})}function Ce(){return Ae?ve("loggerSettings",()=>({enabled:!1})):{enabled:!1}}const Se={enable:function(){Ce().enabled=!0},disable:function(){Ce().enabled=!1},isEnabled:we,log:function(...e){Ee("log",...e)},warn:function(...e){Ee("warn",...e)},error:function(...e){Ee("error",...e)}},Me="?",Ie=/\(error: (.*)\)/,Te=/captureMessage|captureException/;function Re(...e){const t=e.sort((e,t)=>e[0]-t[0]).map(e=>e[1]);return(e,n=0,i=0)=>{const r=[],s=e.split("\n");for(let o=n;o<s.length;o++){let e=s[o];e.length>1024&&(e=e.slice(0,1024));const n=Ie.test(e)?e.replace(Ie,"$1"):e;if(!n.includes("Error: ")){for(const e of t){const t=e(n);if(t){r.push(t);break}}if(r.length>=50+i)break}}return function(e){if(!e.length)return[];const t=Array.from(e);/sentryWrapped/.test(Pe(t).function||"")&&t.pop();t.reverse(),Te.test(Pe(t).function||"")&&(t.pop(),Te.test(Pe(t).function||"")&&t.pop());return t.slice(0,50).map(e=>({...e,filename:e.filename||Pe(t).filename,function:e.function||Me}))}(r.slice(i))}}function Pe(e){return e[e.length-1]||{}}const Be="<anonymous>";function Le(e){try{return e&&"function"==typeof e&&e.name||Be}catch{return Be}}function De(e){const t=e.exception;if(t){const e=[];try{return t.values.forEach(t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)}),e}catch{return}}}const Fe={},Oe={};function ke(e,t){return Fe[e]=Fe[e]||[],Fe[e].push(t),()=>{const n=Fe[e];if(n){const e=n.indexOf(t);-1!==e&&n.splice(e,1)}}}function Ne(e,t){if(!Oe[e]){Oe[e]=!0;try{t()}catch(mie){Ae&&Se.error(`Error while instrumenting ${e}`,mie)}}}function ze(e,t){const n=e&&Fe[e];if(n)for(const i of n)try{i(t)}catch(mie){Ae&&Se.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${Le(i)}\nError:`,mie)}}let Ue=null;function Ge(){Ue=fe.onerror,fe.onerror=function(e,t,n,i,r){return ze("error",{column:i,error:r,line:n,msg:e,url:t}),!!Ue&&Ue.apply(this,arguments)},fe.onerror.__SENTRY_INSTRUMENTED__=!0}let Ve=null;function He(){Ve=fe.onunhandledrejection,fe.onunhandledrejection=function(e){return ze("unhandledrejection",e),!Ve||Ve.apply(this,arguments)},fe.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const je=Object.prototype.toString;function qe(e){switch(je.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return nt(e,Error)}}function Qe(e,t){return je.call(e)===`[object ${t}]`}function We(e){return Qe(e,"ErrorEvent")}function Ke(e){return Qe(e,"DOMError")}function Ze(e){return Qe(e,"String")}function Ye(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function Xe(e){return null===e||Ye(e)||"object"!=typeof e&&"function"!=typeof e}function Je(e){return Qe(e,"Object")}function $e(e){return"object"==typeof e&&null!==e}function et(e){return"undefined"!=typeof Event&&nt(e,Event)}function tt(e){return Boolean(e?.then&&"function"==typeof e.then)}function nt(e,t){try{return e instanceof t}catch{return!1}}function it(e){return"undefined"!=typeof Request&&nt(e,Request)}function rt(e,t,n){if(!(t in e))return;const i=e[t];if("function"!=typeof i)return;const r=n(i);"function"==typeof r&&ot(r,i);try{e[t]=r}catch{Ae&&Se.log(`Failed to replace method "${t}" in object`,e)}}function st(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{Ae&&Se.log(`Failed to add non-enumerable property "${String(t)}" to object`,e)}}function ot(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,st(e,"__sentry_original__",t)}catch{}}function at(e){return e.__sentry_original__}function lt(e){if(qe(e))return{message:e.message,name:e.name,stack:e.stack,...ct(e)};if(et(e)){const{type:t,target:n,currentTarget:i,detail:r}=e;return{type:t,target:n,currentTarget:i,...r?{detail:r}:{},...ct(e)}}return e}function ct(e){return $e(e)?Object.fromEntries(Object.entries(e)):{}}let ht;function ut(e){if(void 0!==ht)return ht?ht(e):e();const t=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__"),n=fe;return t in n&&"function"==typeof n[t]?(ht=n[t],ht(e)):(ht=null,e())}function dt(){return ut(()=>Math.random())}function pt(){return ut(()=>Date.now())}const At=Symbol.for("sentry.skipNormalization"),ft=Symbol.for("sentry.overrideNormalizationDepth");let gt,mt;function yt(e,t=100,n=1/0){try{return bt("",e,t,n)}catch(i){return{ERROR:`**non-serializable** (${i})`}}}function vt(e,t=3,n=102400){const i=yt(e,t);return r=i,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(r))>n?vt(e,t-1,n):i;var r}function bt(e,t,n=1/0,i=1/0,r=function(){const e=new WeakSet;function t(t){return!!e.has(t)||(e.add(t),!1)}function n(t){e.delete(t)}return[t,n]}()){const[s,o]=r;if(null==t||["boolean","string"].includes(typeof t)||"number"==typeof t&&Number.isFinite(t))return t;const a=_t(e,t);if(!a.startsWith("[object "))return a;if(function(e){return Boolean(e[At])}(t))return t;const l=function(e){const t=e[ft];return"number"==typeof t?t:void 0}(t),c=void 0!==l?l:n;if(0===c)return a.replace("object ","");if(s(t))return"[Circular ~]";const h=t;if(h&&"function"==typeof h.toJSON)try{return bt("",h.toJSON(),c-1,i,r)}catch{}const u=Array.isArray(t)?[]:{};let d=0;const p=lt(t);for(const A in p){if(!Object.prototype.hasOwnProperty.call(p,A))continue;if(d>=i){u[A]="[MaxProperties ~]";break}const e=p[A];u[A]=bt(A,e,c-1,i,r),d++}return o(t),u}function _t(e,t){try{if(gt){const e=gt(t);if(e)return e}if("undefined"!=typeof global&&t===global)return"[Global]";if("number"==typeof t&&!Number.isFinite(t))return`[${t}]`;if("function"==typeof t)return`[Function: ${Le(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;const e=function(e){const t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:"null prototype"}(t);return`[object ${e}]`}catch(n){return`**non-serializable** (${n})`}}function xt(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function wt(e,t){if(!Array.isArray(e))return"";const n=[];for(let i=0;i<e.length;i++){const t=e[i];Xe(t)?n.push(String(t)):t instanceof Error?n.push(t.message?`${t.name}: ${t.message}`:t.name):n.push(_t(0,t))}return n.join(t)}function Et(e,t,n=!1){return!!Ze(e)&&(Qe(t,"RegExp")?t.test(e):Ze(t)?n?e===t:e.includes(t):"function"==typeof t&&t(e))}function Ct(e,t=[],n=!1){for(const i of t)if(Et(e,i,n))return!0;return!1}function St(e=function(){const e=fe;return e.crypto||e.msCrypto}()){try{if(e?.randomUUID)return ut(()=>e.randomUUID()).replace(/-/g,"")}catch{}return mt||(mt="10000000100040008000100000000000"),mt.replace(/[018]/g,e=>(e^(16*dt()&15)>>e/4).toString(16))}function Mt(e){return e.exception?.values?.[0]}function It(e){const{message:t,event_id:n}=e;if(t)return t;const i=Mt(e);return i?i.type&&i.value?`${i.type}: ${i.value}`:i.type||i.value||n||"<unknown>":n||"<unknown>"}function Tt(e,t,n){const i=e.exception=e.exception||{},r=i.values=i.values||[],s=r[0]=r[0]||{};s.value||(s.value=t||""),s.type||(s.type="Error")}function Rt(e,t){const n=Mt(e);if(!n)return;const i=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...i,...t},t&&"data"in t){const e={...i?.data,...t.data};n.mechanism.data=e}}function Pt(e){if(function(e){try{return e.__sentry_captured__}catch{}}(e))return!0;try{st(e,"__sentry_captured__",!0)}catch{}return!1}function Bt(){return pt()/1e3}let Lt;function Dt(){return(Lt??(Lt=function(){const{performance:e}=fe;if(!e?.now||!e.timeOrigin)return Bt;const t=e.timeOrigin;return()=>(t+ut(()=>e.now()))/1e3}()))()}function Ft(e){const t=Dt(),n={sid:St(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return{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}}}(n)};return e&&Ot(n,e),n}function Ot(e,t={}){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||Dt(),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:St()),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{const 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 kt(e,t,n=2){if(!t||"object"!=typeof t||n<=0)return t;if(e&&0===Object.keys(t).length)return e;const i={...e};for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(i[r]=kt(i[r],t[r],n-1));return i}function Nt(){return St()}function zt(){return St().substring(16)}function Ut(e){if(e){if("object"==typeof e&&"deref"in e&&"function"==typeof e.deref)try{return e.deref()}catch{return}return e}}const Gt="_sentrySpan";function Vt(e,t){t?st(e,Gt,function(e){try{const t=fe.WeakRef;if("function"==typeof t)return new t(e)}catch{}return e}(t)):delete e[Gt]}function Ht(e){return Ut(e[Gt])}class jt{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:Nt(),sampleRand:dt()}}clone(){const e=new jt;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,Vt(e,Ht(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&Ot(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;const t="function"==typeof e?e(this):e,n=t instanceof jt?t.getScopeData():Je(t)?e:void 0,{tags:i,attributes:r,extra:s,user:o,contexts:a,level:l,fingerprint:c=[],propagationContext:h,conversationId:u}=n||{};return this._tags={...this._tags,...i},this._attributes={...this._attributes,...r},this._extra={...this._extra,...s},this._contexts={...this._contexts,...a},o&&Object.keys(o).length&&(this._user=o),l&&(this._level=l),c.length&&(this._fingerprint=c),h&&(this._propagationContext=h),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,Vt(this,void 0),this._attachments=[],this.setPropagationContext({traceId:Nt(),sampleRand:dt()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){const n="number"==typeof t?t:100;if(n<=0)return this;const i={timestamp:Bt(),...e,message:e.message?xt(e.message,2048):e.message};return this._breadcrumbs.push(i),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:Ht(this),conversationId:this._conversationId}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=kt(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){const n=t?.event_id||St();if(!this._client)return Ae&&Se.warn("No client configured on scope - will not capture exception!"),n;const i=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:i,...t,event_id:n},this),n}captureMessage(e,t,n){const i=n?.event_id||St();if(!this._client)return Ae&&Se.warn("No client configured on scope - will not capture message!"),i;const r=n?.syntheticException??new Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:r,...n,event_id:i},this),i}captureEvent(e,t){const n=e.event_id||t?.event_id||St();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(Ae&&Se.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}}const qt=e=>e instanceof Promise&&!e[Qt],Qt=Symbol("chained PromiseLike"),Wt=(e,t)=>{if(!t)return e;let n=!1;for(const i in e){if(i in t)continue;n=!0;const r=e[i];"function"==typeof r?Object.defineProperty(t,i,{value:(...t)=>r.apply(e,t),enumerable:!0,configurable:!0,writable:!0}):t[i]=r}return n&&Object.assign(t,{[Qt]:!0}),t};class Kt{constructor(e,t){let n,i;n=e||new jt,i=t||new jt,this._stack=[{scope:n}],this._isolationScope=i}withScope(e){const t=this._pushScope();let n;try{n=e(t)}catch(mie){throw this._popScope(),mie}return tt(n)?((e,t,n)=>{const i=e.then(e=>(t(e),e),e=>{throw n(e),e});return qt(i)&&qt(e)?i:Wt(e,i)})(n,()=>this._popScope(),()=>this._popScope()):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function Zt(){const e=ye(me());return e.stack=e.stack||new Kt(ve("defaultCurrentScope",()=>new jt),ve("defaultIsolationScope",()=>new jt))}function Yt(e){return Zt().withScope(e)}function Xt(e,t){const n=Zt();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function Jt(e){return Zt().withScope(()=>e(Zt().getIsolationScope()))}function $t(e){const t=ye(e);return t.acs?t.acs:{withIsolationScope:Jt,withScope:Yt,withSetScope:Xt,withSetIsolationScope:(e,t)=>Jt(t),getCurrentScope:()=>Zt().getScope(),getIsolationScope:()=>Zt().getIsolationScope()}}function en(e,t){const{value:n,unit:i}="object"==typeof(r=e)&&null!=r&&!Array.isArray(r)&&Object.keys(r).includes("value")?e:{value:e,unit:void 0};var r;const s=function(e){if(Array.isArray(e))return{value:e,type:"array"};const 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),o=i&&"string"==typeof i?{unit:i}:{};if(s)return{...s,...o};if(!t||"skip-undefined"===t&&void 0===n)return;let a="";try{a=JSON.stringify(n)??""}catch{}return{value:a,type:"string",...o}}function tn(e,t=!1){const n={};for(const[i,r]of Object.entries(e??{})){const e=en(r,t);e&&(n[i]=e)}return n}function nn(){return $t(me()).getCurrentScope()}function rn(){return $t(me()).getIsolationScope()}function sn(){return nn().getClient()}function on(e){const t=e.getPropagationContext(),{traceId:n,parentSpanId:i,propagationSpanId:r}=t,s={trace_id:n,span_id:r||zt()};return i&&(s.parent_span_id=i),s}const an="sentry.op",ln="sentry.profile_id",cn="sentry.exclusive_time";function hn(e){const t=e;return{scope:t._sentryScope,isolationScope:Ut(t._sentryIsolationScope)}}const un="sentry-";function dn(e){const t=function(e){if(!e||!Ze(e)&&!Array.isArray(e))return;if(Array.isArray(e))return e.reduce((e,t)=>{const n=pn(t);return Object.entries(n).forEach(([t,n])=>{e[t]=n}),e},{});return pn(e)}(e);if(!t)return;const n=Object.entries(t).reduce((e,[t,n])=>{if(t.startsWith(un)){e[t.slice(7)]=n}return e},{});return Object.keys(n).length>0?n:void 0}function pn(e){return e.split(",").map(e=>{const t=e.indexOf("=");if(-1===t)return[];return[e.slice(0,t),e.slice(t+1)].map(e=>{try{return decodeURIComponent(e.trim())}catch{return}})}).reduce((e,[t,n])=>(t&&n&&(e[t]=n),e),{})}const An=/^o(\d+)\./,fn=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function gn(e,t=!1){const{host:n,path:i,pass:r,port:s,projectId:o,protocol:a,publicKey:l}=e;return`${a}://${l}${t&&r?`:${r}`:""}@${n}${s?`:${s}`:""}/${i?`${i}/`:i}${o}`}function mn(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function yn(e){const t=e.getOptions(),{host:n}=e.getDsn()||{};let i;return t.orgId?i=String(t.orgId):n&&(i=function(e){const t=e.match(An);return t?.[1]}(n)),i}function vn(e){const t="string"==typeof e?function(e){const t=fn.exec(e);if(!t)return void xe(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});const[n,i,r="",s="",o="",a=""]=t.slice(1);let l="",c=a;const h=c.split("/");if(h.length>1&&(l=h.slice(0,-1).join("/"),c=h.pop()),c){const e=c.match(/^\d+/);e&&(c=e[0])}return mn({host:s,pass:r,path:l,projectId:c,port:o,protocol:n,publicKey:i})}(e):mn(e);if(t&&function(e){if(!Ae)return!0;const{port:t,projectId:n,protocol:i}=e;return!(["protocol","publicKey","host","projectId"].find(t=>!e[t]&&(Se.error(`Invalid Sentry Dsn: ${t} missing`),!0))||(n.match(/^\d+$/)?function(e){return"http"===e||"https"===e}(i)?t&&isNaN(parseInt(t,10))&&(Se.error(`Invalid Sentry Dsn: Invalid port ${t}`),1):(Se.error(`Invalid Sentry Dsn: Invalid protocol ${i}`),1):(Se.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),1)))}(t))return t}let bn=!1;function _n(e){const{spanId:t,traceId:n,isRemote:i}=e.spanContext(),r=i?t:Cn(e).parent_span_id,s=hn(e).scope;return{parent_span_id:r,span_id:i?s?.getPropagationContext().propagationSpanId||zt():t,trace_id:n}}function xn(e){return e&&e.length>0?e.map(({context:{spanId:e,traceId:t,traceFlags:n,...i},attributes:r})=>({span_id:e,trace_id:t,sampled:1===n,attributes:r,...i})):void 0}function wn(e){return"number"==typeof e?En(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?En(e.getTime()):Dt()}function En(e){return e>9999999999?e/1e3:e}function Cn(e){if(function(e){return"function"==typeof e.getSpanJSON}(e))return e.getSpanJSON();const{spanId:t,traceId:n}=e.spanContext();if(function(e){const t=e;return!!(t.attributes&&t.startTime&&t.name&&t.endTime&&t.status)}(e)){const{attributes:i,startTime:r,name:s,endTime:o,status:a,links:l}=e;return{span_id:t,trace_id:n,data:i,description:s,parent_span_id:Sn(e),start_timestamp:wn(r),timestamp:wn(o)||void 0,status:Mn(a),op:i[an],origin:i["sentry.origin"],links:xn(l)}}return{span_id:t,trace_id:n,start_timestamp:0,data:{}}}function Sn(e){return"parentSpanId"in e?e.parentSpanId:"parentSpanContext"in e?e.parentSpanContext?.spanId:void 0}function Mn(e){if(e&&0!==e.code)return 1===e.code?"ok":e.message||"internal_error"}const In=function(e){return e._sentryRootSpan||e};function Tn(){bn||(xe(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),bn=!0)}function Rn(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const t=e||sn()?.getOptions();return!(!t||null==t.tracesSampleRate&&!t.tracesSampler)}function Pn(e){Se.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}function Bn(e,t){if(!t?.length)return!1;for(const n of t){if(Fn(n)){if(e.description&&Et(e.description,n))return Ae&&Pn(e),!0;continue}const t=!!n.attributes&&Object.keys(n.attributes).length>0;if(!n.name&&!n.op&&!t)continue;const i=!n.name||e.description&&Et(e.description,n.name),r=!n.op||e.op&&Et(e.op,n.op),s=!n.attributes||Object.entries(n.attributes).every(([t,n])=>Ln(e.attributes?.[t],n));if(i&&r&&s)return Ae&&Pn(e),!0}return!1}function Ln(e,t){return"string"==typeof e&&("string"==typeof t||t instanceof RegExp)?Et(e,t):Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e===t}function Dn(e,t){const n=t.parent_span_id,i=t.span_id;if(n)for(const r of e)r.parent_span_id===i&&(r.parent_span_id=n)}function Fn(e){return"string"==typeof e||e instanceof RegExp}const On=Symbol.for("sentry.nonRecordingSpan");const kn="production";function Nn(e,t){const n=t.getOptions(),{publicKey:i}=t.getDsn()||{},r={environment:n.environment||kn,release:n.release,public_key:i,trace_id:e,org_id:yn(t)};return t.emit("createDsc",r),r}function zn(e,t){const n=t.getPropagationContext();return n.dsc||Nn(n.traceId,e)}function Un(e){const t=sn();if(!t)return{};const n=In(e),i=Cn(n),r=i.data,s=n.spanContext().traceState,o=s?.get("sentry.sample_rate")??r["sentry.sample_rate"]??r["sentry.previous_trace_sample_rate"];function a(e){return"number"!=typeof o&&"string"!=typeof o||(e.sample_rate=`${o}`),e}const l=n._frozenDsc;if(l)return a(l);const c=function(e){return!!e&&!0===e[On]}(n),h=c&&"ignored"===n.dropReason;if(c&&(!Rn(t.getOptions())||h)){const e=hn(n).scope;if(e){const n={...zn(t,e)};return h&&(n.sampled="false"),a(n)}}const u=s?.get("sentry.dsc"),d=u&&dn(u);if(d)return a(d);const p=Nn(e.spanContext().traceId,t),A=r["sentry.source"]??r["sentry.segment.name.source"],f=i.description;return"url"!==A&&f&&(p.transaction=f),Rn()&&(p.sampled=String(function(e){const{traceFlags:t}=e.spanContext();return 1===t}(n)),p.sample_rand=s?.get("sentry.sample_rand")??hn(n).scope?.getPropagationContext().sampleRand.toString()),a(p),t.emit("createDsc",p,n),p}function Gn(e,t=[]){return[e,t]}function Vn(e,t){const[n,i]=e;return[n,[...i,t]]}function Hn(e,t){const n=e[1];for(const i of n){if(t(i,i[0].type))return!0}return!1}function jn(e){const t=ye(fe);return t.encodePolyfill?t.encodePolyfill(e):(new TextEncoder).encode(e)}function qn(e){const[t,n]=e;let i=JSON.stringify(t);function r(e){"string"==typeof i?i="string"==typeof e?i+e:[jn(i),e]:i.push("string"==typeof e?jn(e):e)}for(const s of n){const[e,t]=s;if(r(`\n${JSON.stringify(e)}\n`),"string"==typeof t||t instanceof Uint8Array)r(t);else{let e;try{e=JSON.stringify(t)}catch{e=JSON.stringify(yt(t))}r(e)}}return"string"==typeof i?i:function(e){const t=e.reduce((e,t)=>e+t.length,0),n=new Uint8Array(t);let i=0;for(const r of e)n.set(r,i),i+=r.length;return n}(i)}function Qn(e){const t="string"==typeof e.data?jn(e.data):e.data;return[{type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}const Wn={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 Kn(e){return function(e){return e in Wn}(e)?Wn[e]:e}function Zn(e){if(!e?.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function Yn(e,t,n,i){const r=Zn(n),s=e.type&&"replay_event"!==e.type?e.type:"event";!function(e,t){if(!t)return e;const 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);const o=function(e,t,n,i){const r=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date(pt()).toISOString(),...t&&{sdk:t},...!!n&&i&&{dsn:gn(i)},...r&&{trace:r}}}(e,r,i,t);delete e.sdkProcessingMetadata;return Gn(o,[[{type:s},e]])}function Xn(e,t){const{fingerprint:n,span:i,breadcrumbs:r,sdkProcessingMetadata:s}=t;!function(e,t){const{extra:n,tags:i,user:r,contexts:s,level:o,transactionName:a}=t;Object.keys(n).length&&(e.extra={...n,...e.extra});Object.keys(i).length&&(e.tags={...i,...e.tags});Object.keys(r).length&&(e.user={...r,...e.user});Object.keys(s).length&&(e.contexts={...s,...e.contexts});o&&(e.level=o);a&&"transaction"!==e.type&&(e.transaction=a)}(e,t),i&&function(e,t){e.contexts={trace:_n(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:Un(t),...e.sdkProcessingMetadata};const n=In(t),i=Cn(n).description;i&&!e.transaction&&"transaction"===e.type&&(e.transaction=i)}(e,i),function(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t));e.fingerprint.length||delete e.fingerprint}(e,n),function(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}(e,r),function(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}(e,s)}function Jn(e,t){const{extra:n,tags:i,attributes:r,user:s,contexts:o,level:a,sdkProcessingMetadata:l,breadcrumbs:c,fingerprint:h,eventProcessors:u,attachments:d,propagationContext:p,transactionName:A,span:f}=t;$n(e,"extra",n),$n(e,"tags",i),$n(e,"attributes",r),$n(e,"user",s),$n(e,"contexts",o),e.sdkProcessingMetadata=kt(e.sdkProcessingMetadata,l,2),a&&(e.level=a),A&&(e.transactionName=A),f&&(e.span=f),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),h.length&&(e.fingerprint=[...e.fingerprint,...h]),u.length&&(e.eventProcessors=[...e.eventProcessors,...u]),d.length&&(e.attachments=[...e.attachments,...d]),e.propagationContext={...e.propagationContext,...p}}function $n(e,t,n){e[t]=kt(e[t],n,1)}function ei(e,t){const n=ve("globalScope",()=>new jt).getScopeData();return e&&Jn(n,e.getScopeData()),t&&Jn(n,t.getScopeData()),n}const ti="url.full";function ni(e,t){const n=e.attributes??(e.attributes={});Object.entries(t).forEach(([e,t])=>{null==t||e in n||(n[e]=t)})}function ii(e){return new si(t=>{t(e)})}function ri(e){return new si((t,n)=>{n(e)})}class si{constructor(e){this._state=0,this._handlers=[],this._runExecutor(e)}then(e,t){return new si((n,i)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(mie){i(mie)}else n(t)},e=>{if(t)try{n(t(e))}catch(mie){i(mie)}else i(e)}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(e){return new si((t,n)=>{let i,r;return this.then(t=>{r=!1,i=t,e&&e()},t=>{r=!0,i=t,e&&e()}).then(()=>{r?n(i):t(i)})})}_executeHandlers(){if(0===this._state)return;const 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){const t=(e,t)=>{0===this._state&&(tt(t)?t.then(n,i):(this._state=e,this._value=t,this._executeHandlers()))},n=e=>{t(1,e)},i=e=>{t(2,e)};try{e(n,i)}catch(mie){i(mie)}}}function oi(e,t,n,i=0){try{const r=ai(t,n,e,i);return tt(r)?r:ii(r)}catch(ju){return ri(ju)}}function ai(e,t,n,i){const r=n[i];if(!e||!r)return e;const s=r({...e},t);return Ae&&null===s&&Se.log(`Event processor "${r.id||"?"}" dropped event`),tt(s)?s.then(e=>ai(e,t,n,i+1)):ai(s,t,n,i+1)}let li,ci,hi,ui;function di(e,t,n,i,r,s){const{normalizeDepth:o=3,normalizeMaxBreadth:a=1e3}=e,l={...t,event_id:t.event_id||n.event_id||St(),timestamp:t.timestamp||Bt()},c=n.integrations||e.integrations.map(e=>e.name);!function(e,t){const{environment:n,release:i,dist:r,maxValueLength:s}=t;e.environment=e.environment||n||kn,!e.release&&i&&(e.release=i);!e.dist&&r&&(e.dist=r);const o=e.request;o?.url&&s&&(o.url=xt(o.url,s));s&&e.exception?.values?.forEach(e=>{e.value&&(e.value=xt(e.value,s))})}(l,e),function(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}(l,c),r&&r.emit("applyFrameMetadata",t),void 0===t.type&&function(e,t){const n=function(e){const t=fe._sentryDebugIds,n=fe._debugIds;if(!t&&!n)return{};const i=t?Object.keys(t):[],r=n?Object.keys(n):[];if(ui&&i.length===ci&&r.length===hi)return ui;ci=i.length,hi=r.length,ui={},li||(li={});const s=(t,n)=>{for(const i of t){const t=n[i],r=li?.[i];if(r&&ui&&t)ui[r[0]]=t,li&&(li[i]=[r[0],t]);else if(t){const n=e(i);for(let e=n.length-1;e>=0;e--){const r=n[e],s=r?.filename;if(s&&ui&&li){ui[s]=t,li[i]=[s,t];break}}}}};return t&&s(i,t),n&&s(r,n),ui}(t);e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.filename&&(e.debug_id=n[e.filename])})})}(l,e.stackParser);const h=function(e,t){if(!t)return e;const n=e?e.clone():new jt;return n.update(t),n}(i,n.captureContext);n.mechanism&&Rt(l,n.mechanism);const u=r?r.getEventProcessors():[],d=ei(s,h),p=[...n.attachments||[],...d.attachments];p.length&&(n.attachments=p),Xn(l,d);const A=[...u,...d.eventProcessors];return(n.data&&!0===n.data.__sentry__?ii(l):oi(A,l,n)).then(e=>(e&&function(e){const 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||[];const n=e.debug_meta.images;Object.entries(t).forEach(([e,t])=>{n.push({type:"sourcemap",code_file:e,debug_id:t})})}(e),"number"==typeof o&&o>0?function(e,t,n){if(!e)return null;const i={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:yt(e.data,t,n)}}))},...e.user&&{user:yt(e.user,t,n)},...e.contexts&&{contexts:yt(e.contexts,t,n)},...e.extra&&{extra:yt(e.extra,t,n)}};e.contexts?.trace&&i.contexts&&(i.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(i.contexts.trace.data=yt(e.contexts.trace.data,t,n)));e.spans&&(i.spans=e.spans.map(e=>({...e,...e.data&&{data:yt(e.data,t,n)}})));e.contexts?.flags&&i.contexts&&(i.contexts.flags=yt(e.contexts.flags,3,n));return i}(e,o,a):e))}function pi(e){if(e)return function(e){return e instanceof jt||"function"==typeof e}(e)||function(e){return Object.keys(e).some(e=>Ai.includes(e))}(e)?{captureContext:e}:e}const Ai=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function fi(e,t){return nn().captureException(e,pi(t))}function gi(e,t){const n="string"==typeof t?t:void 0,i="string"!=typeof t?{captureContext:t}:void 0;return nn().captureMessage(e,n,i)}function mi(e,t){return nn().captureEvent(e,t)}function yi(e,t){rn().setTag(e,t)}function vi(e){const t=rn(),{user:n}=ei(t,nn()),{userAgent:i}=fe.navigator||{},r=Ft({user:n,...i&&{userAgent:i},...e}),s=t.getSession();return"ok"===s?.status&&Ot(s,{status:"exited"}),bi(),t.setSession(r),r}function bi(){const e=rn(),t=nn().getSession()||e.getSession();t&&function(e){let t={};"ok"===e.status&&(t={status:"exited"}),Ot(e,t)}(t),_i(),e.setSession()}function _i(){const e=rn(),t=sn(),n=e.getSession();n&&t&&t.captureSession(n)}function xi(e=!1){e?bi():_i()}function wi(e){return"object"==typeof e&&"function"==typeof e.unref&&e.unref(),e}function Ei(e,t,n){return t||`${function(e){return`${function(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}(e)}${e.projectId}/envelope/`}(e)}?${function(e,t){const n={sentry_version:"7"};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}(e,n)}`}const Ci=[];function Si(e){const t=e.defaultIntegrations||[],n=e.integrations;let i;if(t.forEach(e=>{e.isDefaultInstance=!0}),Array.isArray(n))i=[...t,...n];else if("function"==typeof n){const e=n(t);i=Array.isArray(e)?e:[e]}else i=t;return function(e){const t={};return e.forEach(e=>{const{name:n}=e,i=t[n];i&&!i.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)}),Object.values(t)}(i)}function Mi(e,t){for(const n of t)n?.afterAllSetup&&n.afterAllSetup(e)}function Ii(e,t,n){if(n[t.name])Ae&&Se.log(`Integration skipped because it was already installed: ${t.name}`);else{if(n[t.name]=t,Ci.includes(t.name)||"function"!=typeof t.setupOnce||(t.setupOnce(),Ci.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),"function"==typeof t.preprocessEvent){const n=t.preprocessEvent.bind(t);e.on("preprocessEvent",(t,i)=>n(t,i,e))}if("function"==typeof t.processEvent){const n=t.processEvent.bind(t),i=Object.assign((t,i)=>n(t,i,e),{id:t.name});e.addEventProcessor(i)}["processSpan","processSegmentSpan"].forEach(n=>{const i=t[n];"function"==typeof i&&e.on(n,n=>i.call(t,n,e))}),Ae&&Se.log(`Integration installed: ${t.name}`)}}function Ti(){return!("undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function Ri(){return"undefined"!=typeof window&&(!Ti()||function(){const e=fe.process;return"renderer"===e?.type}())}function Pi(e,t){const n=t?"auto":"never";return[{type:"log",item_count:e.length,content_type:"application/vnd.sentry.items.log+json"},{version:2,...Ri()&&{ingest_settings:{infer_ip:n,infer_user_agent:n}},items:e}]}function Bi(e,t){const n=t??function(e){return Li().get(e)}(e)??[];if(0===n.length)return;const i=e.getOptions(),r=function(e,t,n,i,r){const s={};return t?.sdk&&(s.sdk={name:t.sdk.name,version:t.sdk.version}),n&&i&&(s.dsn=gn(i)),Gn(s,[Pi(e,r)])}(n,i._metadata,i.tunnel,e.getDsn(),e.getDataCollectionOptions().userInfo);Li().set(e,[]),e.emit("flushLogs"),e.sendEnvelope(r)}function Li(){return ve("clientToLogBufferMap",()=>new WeakMap)}function Di(e,t){const n=t?"auto":"never";return[{type:"trace_metric",item_count:e.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{version:2,...Ri()&&{ingest_settings:{infer_ip:n,infer_user_agent:n}},items:e}]}function Fi(e,t){const n=t??function(e){return Oi().get(e)}(e)??[];if(0===n.length)return;const i=e.getOptions(),r=function(e,t,n,i,r){const s={};return t?.sdk&&(s.sdk={name:t.sdk.name,version:t.sdk.version}),n&&i&&(s.dsn=gn(i)),Gn(s,[Di(e,r)])}(n,i._metadata,i.tunnel,e.getDsn(),e.getDataCollectionOptions().userInfo);Oi().set(e,[]),e.emit("flushMetrics"),e.sendEnvelope(r)}function Oi(){return ve("clientToMetricBufferMap",()=>new WeakMap)}function ki(e){const 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};return n=t,{...n,attributes:tn(n.attributes),links:n.links?.map(e=>({...e,attributes:tn(e.attributes)}))};var n}const Ni=Symbol.for("SentryBufferFullError");function zi(e=100){const t=new Set;function n(e){t.delete(e)}return{get $(){return Array.from(t)},add:function(i){if(!(t.size<e))return ri(Ni);const r=i();return t.add(r),r.then(()=>n(r),()=>n(r)),r},drain:function(e){if(!t.size)return ii(!0);const n=Promise.allSettled(Array.from(t)).then(()=>!0);if(!e)return n;const i=[n,new Promise(t=>wi(setTimeout(()=>t(!1),e)))];return Promise.race(i)}}}function Ui(e,{statusCode:t,headers:n},i=pt()){const r={...e},s=n?.["x-sentry-rate-limits"],o=n?.["retry-after"];if(s)for(const a of s.trim().split(",")){const[e,t,,,n]=a.split(":",5),s=parseInt(e,10),o=1e3*(isNaN(s)?60:s);if(t)for(const a of t.split(";"))"metric_bucket"===a&&n&&!n.split(";").includes("custom")||(r[a]=i+o);else r.all=i+o}else o?r.all=i+function(e,t=pt()){const n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;const i=Date.parse(`${e}`);return isNaN(i)?6e4:i-t}(o,i):429===t&&(r.all=i+6e4);return r}function Gi(e,t,n=zi(e.bufferSize||64)){let i={};return{send:function(r){const s=[];if(Hn(r,(t,n)=>{const r=Kn(n);!function(e,t,n=pt()){return function(e,t){return e[t]||e.all||0}(e,t)>n}(i,r)?s.push(t):e.recordDroppedEvent("ratelimit_backoff",r)}),0===s.length)return Promise.resolve({});const o=Gn(r[0],s),a=t=>{!function(e,t){return Hn(e,(e,n)=>t.includes(n))}(o,["client_report"])?Hn(o,(n,i)=>{e.recordDroppedEvent(t,Kn(i))}):Ae&&Se.warn(`Dropping client report. Will not send outcomes (reason: ${t}).`)};return n.add(()=>t({body:qn(o)}).then(e=>413===e.statusCode?(Ae&&Se.error("Sentry responded with status code 413. Envelope was discarded due to exceeding size limits."),a("send_error"),e):(Ae&&void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&Se.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),i=Ui(i,e),e),e=>{throw a("network_error"),Ae&&Se.error("Encountered error running transport request:",e),e})).then(e=>e,e=>{if(e===Ni)return Ae&&Se.error("Skipped sending event because buffer is full."),a("queue_overflow"),Promise.resolve({});throw e})},flush:e=>n.drain(e)}}function Vi(e){const t=[];e.message&&t.push(e.message);try{const 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}const Hi=["forwarded","-ip","remote-","via","-user"];const ji={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};function qi(e){const t=null!=e.dataCollection?ji:!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},databaseQueryData:!0,stackFrameVariables:!0,frameContextLines:7}:{userInfo:!1,cookies:{deny:Hi},httpHeaders:{request:{deny:Hi},response:{deny:Hi}},httpBodies:[],urlQueryParams:{deny:Hi},graphQL:{document:!0,variables:!0},genAI:{inputs:!1,outputs:!1},databaseQueryData:!1,stackFrameVariables:!0,frameContextLines:7};const n=e.dataCollection??{};return{userInfo:n.userInfo??t.userInfo,cookies:n.cookies??t.cookies,httpHeaders:{request:n.httpHeaders?.request??t.httpHeaders.request,response:n.httpHeaders?.response??t.httpHeaders.response},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}}const Qi="Not capturing exception because it's already been captured.",Wi="Discarded session because of missing or non-string release",Ki=Symbol.for("SentryInternalError"),Zi=Symbol.for("SentryDoNotSendEventError");function Yi(e){return{message:e,[Ki]:!0}}function Xi(e){return{message:e,[Zi]:!0}}function Ji(e){return $e(e)&&Ki in e}function $i(e){return $e(e)&&Zi in e}function er(e,t,n,i,r){let s,o=0,a=!1;e.on(n,()=>{o=0,clearTimeout(s),a=!1}),e.on(t,t=>{if(o+=i(t),o>=8e5)r(e);else if(!a){const t=e.getOptions()._flushInterval??5e3;t>0&&(a=!0,s=wi(setTimeout(()=>{r(e)},t)))}}),e.on("flush",()=>{r(e)})}class tr{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=zi(e.transportOptions?.bufferSize??64),this._dataCollection=qi(e),e.dsn?this._dsn=vn(e.dsn):Ae&&Se.warn("No DSN provided, client will not send events."),this._dsn){const t=Ei(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,this._options.enableLogs&&er(this,"afterCaptureLog","flushLogs",or,Bi);(this._options.enableMetrics??this._options._experiments?.enableMetrics??!0)&&er(this,"afterCaptureMetric","flushMetrics",sr,Fi)}captureException(e,t,n){const i=St();if(Pt(e))return Ae&&Se.log(Qi),i;const r={event_id:i,...t};return this._process(()=>this.eventFromException(e,r).then(e=>this._captureEvent(e,r,n)).then(e=>e),"error"),r.event_id}captureMessage(e,t,n,i){const r={event_id:St(),...n},s=Ye(e)?e:String(e),o=Xe(e),a=o?this.eventFromMessage(s,t,r):this.eventFromException(e,r);return this._process(()=>a.then(e=>this._captureEvent(e,r,i)),o?"unknown":"error"),r.event_id}captureEvent(e,t,n){const i=St();if(t?.originalException&&Pt(t.originalException))return Ae&&Se.log(Qi),i;const r={event_id:i,...t},s=e.sdkProcessingMetadata||{},o=s.capturedSpanScope,a=s.capturedSpanIsolationScope,l=nr(e.type);return this._process(()=>this._captureEvent(e,r,o||n,a),l),r.event_id}captureSession(e){this.sendSession(e),Ot(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){const t=this._transport;if(this.emit("flush"),!t)return!0;const n=await this._isClientDoneProcessing(e),i=await t.flush(e);return n&&i}async close(e){const 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(({name:e})=>e.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}getIntegrationNames(){return Object.keys(this._integrations)}addIntegration(e){const t=this._integrations[e.name];!t&&e.beforeSetup&&e.beforeSetup(this),Ii(this,e,this._integrations),t||Mi(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);const n=function(e,t){if("transaction"!==e.type||!e.spans?.length||!e.sdkProcessingMetadata?.hasGenAiSpans||!1===t.getOptions().streamGenAiSpans||function(e){return"stream"===e.getOptions().traceLifecycle}(t))return;const n=[],i=[];for(const s of e.spans)s.op?.startsWith("gen_ai.")?n.push(ki(s)):i.push(s);if(0===n.length)return;e.spans=i;const r=t.getDataCollectionOptions().userInfo?"auto":"never";return[{type:"span",item_count:n.length,content_type:"application/vnd.sentry.items.span.v2+json"},{version:2,...Ri()&&{ingest_settings:{infer_ip:r,infer_user_agent:r}},items:n}]}(e,this);let i=Yn(e,this._dsn,this._options._metadata,this._options.tunnel);for(const r of t.attachments||[])i=Vn(i,Qn(r));n&&(i=Vn(i,n)),this.sendEnvelope(i).then(t=>this.emit("afterSendEvent",e,t))}sendSession(e){const{release:t,environment:n=kn}=this._options;if("aggregates"in e){const i=e.attrs||{};if(!i.release&&!t)return void(Ae&&Se.warn(Wi));i.release=i.release||t,i.environment=i.environment||n,e.attrs=i}else{if(!e.release&&!t)return void(Ae&&Se.warn(Wi));e.release=e.release||t,e.environment=e.environment||n}this.emit("beforeSendSession",e);const i=function(e,t,n,i){const r=Zn(n);return Gn({sent_at:new Date(pt()).toISOString(),...r&&{sdk:r},...!!i&&t&&{dsn:gn(t)}},["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()]])}(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(i)}recordDroppedEvent(e,t,n=1){if(this._options.sendClientReports){const i=`${e}:${t}`;Ae&&Se.log(`Recording outcome: "${i}"${n>1?` (${n} times)`:""}`),this._outcomes[i]=(this._outcomes[i]||0)+n}}on(e,t){const n=this._hooks[e]=this._hooks[e]||new Set,i=(...e)=>t(...e);return n.add(i),()=>{n.delete(i)}}emit(e,...t){const n=this._hooks[e];n&&n.forEach(e=>e(...t))}async sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)try{return await this._transport.send(e)}catch(t){return Ae&&Se.error("Error while sending envelope:",t),{}}return Ae&&Se.error("Transport disabled"),{}}registerCleanup(e){}dispose(){}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=function(e,t){const n={};return t.forEach(t=>{t?.beforeSetup&&t.beforeSetup(e)}),t.forEach(t=>{t&&Ii(e,t,n)}),n}(this,e),Mi(this,e)}_updateSessionFromEvent(e,t){let n="fatal"===t.level,i=!1;const r=t.exception?.values;if(r){i=!0,n=!1;for(const e of r)if(!1===e.mechanism?.handled){n=!0;break}}const s="ok"===e.status;(s&&0===e.errors||s&&n)&&(Ot(e,{...n&&{status:"crashed"},errors:e.errors||Number(i||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,i){const r=this.getOptions(),s=this.getIntegrationNames();return!t.integrations&&s.length&&(t.integrations=s),this.emit("preprocessEvent",e,t),e.type||i.setLastEventId(e.event_id||t.event_id),di(r,e,t,n,this,i).then(e=>{if(null===e)return e;this.emit("postprocessEvent",e,t),e.contexts={trace:{...e.contexts?.trace,...on(n)},...e.contexts};const i=zn(this,n);return e.sdkProcessingMetadata={dynamicSamplingContext:i,...e.sdkProcessingMetadata},e})}_captureEvent(e,t={},n=nn(),i=rn()){return Ae&&ir(e)&&Se.log(`Captured error event \`${Vi(e)[0]||"<unknown>"}\``),this._processEvent(e,t,n,i).then(e=>e.event_id,e=>{Ae&&($i(e)?Se.log(e.message):Ji(e)?Se.warn(e.message):Se.warn(e))})}_processEvent(e,t,n,i){const r=this.getOptions(),{sampleRate:s}=r,o=rr(e),a=ir(e),l=`before send for type \`${e.type||"error"}\``,c=void 0===s?void 0:function(e){if("boolean"==typeof e)return Number(e);const t="string"==typeof e?parseFloat(e):e;return"number"!=typeof t||isNaN(t)||t<0||t>1?void 0:t}(s);if(a&&"number"==typeof c&&dt()>c)return this.recordDroppedEvent("sample_rate","error"),ri(Xi(`Discarding event because it's not included in the random sample (sampling rate = ${s})`));const h=nr(e.type);return this._prepareEvent(e,t,n,i).then(e=>{if(null===e)throw this.recordDroppedEvent("event_processor",h),Xi("An event processor returned `null`, will not send event.");if(!0===t.data?.__sentry__)return e;const n=function(e,t,n,i){const{beforeSend:r,beforeSendTransaction:s,ignoreSpans:o}=t,a=(l=t.beforeSendSpan,!(l&&"function"==typeof l&&"_streamed"in l&&l._streamed)&&t.beforeSendSpan);var l;let c=n;if(ir(c)&&r)return r(c,i);if(rr(c)){if(a||o){const t=function(e){const{trace_id:t,parent_span_id:n,span_id:i,status:r,origin:s,data:o,op:a}=e.contexts?.trace??{};return{data:o??{},description:e.transaction,op:a,parent_span_id:n,span_id:i??"",start_timestamp:e.start_timestamp??0,status:r,timestamp:e.timestamp,trace_id:t??"",origin:s,profile_id:o?.[ln],exclusive_time:o?.[cn],measurements:e.measurements,is_segment:!0}}(c);if(o?.length&&Bn({description:t.description,op:t.op,attributes:t.data},o))return null;if(a){const e=a(t);e?c=kt(n,{type:"transaction",timestamp:(h=e).timestamp,start_timestamp:h.start_timestamp,transaction:h.description,contexts:{trace:{trace_id:h.trace_id,span_id:h.span_id,parent_span_id:h.parent_span_id,op:h.op,status:h.status,origin:h.origin,data:{...h.data,...h.profile_id&&{[ln]:h.profile_id},...h.exclusive_time&&{[cn]:h.exclusive_time}}}},measurements:h.measurements}):Tn()}if(c.spans){const t=[],n=c.spans;for(const e of n)if(o?.length&&Bn({description:e.description,op:e.op,attributes:e.data},o))Dn(n,e);else if(a){const n=a(e);n?t.push(n):(Tn(),t.push(e))}else t.push(e);const i=c.spans.length-t.length;i&&e.recordDroppedEvent("before_send","span",i),c.spans=t}}if(s){if(c.spans){const e=c.spans.length;c.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return s(c,i)}}var h;return c}(this,r,e,t);return function(e,t){const n=`${t} must return \`null\` or a valid event.`;if(tt(e))return e.then(e=>{if(!Je(e)&&null!==e)throw Yi(n);return e},e=>{throw Yi(`${t} rejected with ${e}`)});if(!Je(e)&&null!==e)throw Yi(n);return e}(n,l)}).then(r=>{if(null===r){if(this.recordDroppedEvent("before_send",h),o){const t=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",t)}throw Xi(`${l} returned \`null\`, will not send event.`)}const s=n.getSession()||i.getSession();if(a&&s&&this._updateSessionFromEvent(s,r),o){const e=(r.sdkProcessingMetadata?.spanCountBeforeProcessing||0)-(r.spans?r.spans.length:0);e>0&&this.recordDroppedEvent("before_send","span",e)}const c=r.transaction_info;if(o&&c&&r.transaction!==e.transaction){const e="custom";r.transaction_info={...c,source:e}}return this.sendEvent(r,t),r}).then(null,e=>{if($i(e)||Ji(e))throw e;throw this.captureException(e,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:e}),Yi(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`)})}_process(e,t){this._numProcessing++,this._promiseBuffer.add(e).then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e===Ni&&this.recordDroppedEvent("queue_overflow",t),e))}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.entries(e).map(([e,t])=>{const[n,i]=e.split(":");return{reason:n,category:i,quantity:t}})}_flushOutcomes(){Ae&&Se.log("Flushing outcomes...");const e=this._clearOutcomes();if(0===e.length)return void(Ae&&Se.log("No outcomes to send"));if(!this._dsn)return void(Ae&&Se.log("No dsn provided, will not send outcomes"));Ae&&Se.log("Sending outcomes:",e);const t=(n=e,Gn((i=this._options.tunnel&&gn(this._dsn))?{dsn:i}:{},[[{type:"client_report"},{timestamp:Bt(),discarded_events:n}]]));var n,i;this.sendEnvelope(t)}}function nr(e){return"replay_event"===e?"replay":e||"error"}function ir(e){return void 0===e.type}function rr(e){return"transaction"===e.type}function sr(e){let t=0;return e.name&&(t+=2*e.name.length),t+=8,t+ar(e.attributes)}function or(e){let t=0;return e.message&&(t+=2*e.message.length),t+ar(e.attributes)}function ar(e){if(!e)return 0;let t=0;return Object.values(e).forEach(e=>{Array.isArray(e)?t+=e.length*lr(e[0]):Xe(e)?t+=lr(e):t+=100}),t}function lr(e){return"string"==typeof e?2*e.length:"number"==typeof e?8:"boolean"==typeof e?4:0}function cr(e,t){!0===t.debug&&(Ae?Se.enable():xe(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")}));nn().update(t.initialScope);const n=new e(t);return function(e){nn().setClient(e)}(n),n.init(),n}function hr(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",i=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:i,relative:t[5]+n+i}}function ur(e){"aggregates"in e?void 0===e.attrs?.ip_address&&(e.attrs={...e.attrs,ip_address:"{{auto}}"}):void 0===e.ipAddress&&(e.ipAddress="{{auto}}")}const dr=100;function pr(e,t){const n=sn(),i=rn();if(!n)return;const{beforeBreadcrumb:r=null,maxBreadcrumbs:s=dr}=n.getOptions();if(s<=0)return;const o={timestamp:Bt(),...e},a=r?xe(()=>r(o,t)):o;null!==a&&(n.emit&&n.emit("beforeAddBreadcrumb",a,t),i.addBreadcrumb(a,s))}const Ar=new WeakMap,fr=()=>({name:"FunctionToString",setupOnce(){const e=Function.prototype.toString;try{Function.prototype.toString=function(...t){const n=at(this);let i;try{Ar.has(sn())&&void 0!==n&&(i=n)}catch{}return e.apply(i??this,t)}}catch{}},setup(e){Ar.set(e,!0)}}),gr=[/^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$/],mr=(e={})=>{let t;return{name:"EventFilters",setup(n){const i=n.getOptions();t=vr(e,i)},processEvent(n,i,r){if(!t){const n=r.getOptions();t=vr(e,n)}return function(e,t){if(e.type){if("transaction"===e.type&&function(e,t){if(!t?.length)return!1;const n=e.transaction;return!!n&&Ct(n,t)}(e,t.ignoreTransactions))return Ae&&Se.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${It(e)}`),!0}else{if(function(e,t){if(!t?.length)return!1;return Vi(e).some(e=>Ct(e,t))}(e,t.ignoreErrors))return Ae&&Se.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${It(e)}`),!0;if(function(e){if(!e.exception?.values?.length)return!1;return!e.message&&!e.exception.values.some(e=>e.stacktrace||e.type&&"Error"!==e.type||e.value)}(e))return Ae&&Se.warn(`Event dropped due to not having an error message, error type or stacktrace.\nEvent: ${It(e)}`),!0;if(function(e,t){if(!t?.length)return!1;const n=br(e);return!!n&&Ct(n,t)}(e,t.denyUrls))return Ae&&Se.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${It(e)}.\nUrl: ${br(e)}`),!0;if(!function(e,t){if(!t?.length)return!0;const n=br(e);return!n||Ct(n,t)}(e,t.allowUrls))return Ae&&Se.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${It(e)}.\nUrl: ${br(e)}`),!0}return!1}(n,t)?null:n}}},yr=(e={})=>({...mr(e),name:"InboundFilters"});function vr(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:gr],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function br(e){try{const t=[...e.exception?.values??[]].reverse().find(e=>void 0===e.mechanism?.parent_id&&e.stacktrace?.frames?.length),n=t?.stacktrace?.frames;return n?function(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(n):null}catch{return Ae&&Se.error(`Cannot extract url for event ${It(e)}`),null}}function _r(e,t,n,i,r,s){if(!r.exception?.values||!s||!nt(s.originalException,Error))return;const o=r.exception.values.length>0?r.exception.values[r.exception.values.length-1]:void 0;o&&(r.exception.values=xr(e,t,i,s.originalException,n,r.exception.values,o,0))}function xr(e,t,n,i,r,s,o,a){if(s.length>=n+1)return s;let l=[...s];if(nt(i[r],Error)){Er(o,a,i);const s=e(t,i[r]),c=l.length;Cr(s,r,c,a),l=xr(e,t,n,i[r],r,[s,...l],s,c)}return wr(i)&&i.errors.forEach((s,c)=>{if(nt(s,Error)){Er(o,a,i);const h=e(t,s),u=l.length;Cr(h,`errors[${c}]`,u,a),l=xr(e,t,n,s,r,[h,...l],h,u)}}),l}function wr(e){return Array.isArray(e.errors)}function Er(e,t,n){e.mechanism={handled:!0,type:"auto.core.linked_errors",...wr(n)&&{is_exception_group:!0},...e.mechanism,exception_id:t}}function Cr(e,t,n,i){e.mechanism={handled:!0,...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:i}}function Sr(e){return function(e){return qe(e)&&"__sentry_fetch_url_host__"in e&&"string"==typeof e.__sentry_fetch_url_host__}(e)?`${e.message} (${e.__sentry_fetch_url_host__})`:e.message}const Mr=new Set([]);const Ir=new Set;function Tr(){"console"in fe&&be.forEach(function(e){!Ir.has(e)&&e in fe.console&&(Ir.add(e),rt(fe.console,e,function(t){return _e[e]=t,function(...t){const n=t[0],i=_e[e],r=Mr.size&&"string"==typeof n&&Ct(n,Mr);r||ze("console",{args:t,level:e}),(!r||Ae&&Se.isEnabled())&&i?.apply(fe.console,t)}}))})}function Rr(e){return"warn"===e?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}const Pr=()=>{let e;return{name:"Dedupe",processEvent(t){if(t.type)return t;try{if(function(e,t){if(!t)return!1;if(function(e,t){const n=e.message,i=t.message;if(!n&&!i)return!1;if(n&&!i||!n&&i)return!1;if(n!==i)return!1;if(!Lr(e,t))return!1;if(!Br(e,t))return!1;return!0}(e,t))return!0;if(function(e,t){const n=Dr(t),i=Dr(e);if(!n||!i)return!1;if(n.type!==i.type||n.value!==i.value)return!1;if(!Lr(e,t))return!1;if(!Br(e,t))return!1;return!0}(e,t))return!0;return!1}(t,e))return Ae&&Se.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}};function Br(e,t){let n=De(e),i=De(t);if(!n&&!i)return!0;if(n&&!i||!n&&i)return!1;if(i.length!==n.length)return!1;for(let r=0;r<i.length;r++){const e=i[r],t=n[r];if(e.filename!==t.filename||e.lineno!==t.lineno||e.colno!==t.colno||e.function!==t.function)return!1}return!0}function Lr(e,t){let n=e.fingerprint,i=t.fingerprint;if(!n&&!i)return!0;if(n&&!i||!n&&i)return!1;try{return!(n.join("")!==i.join(""))}catch{return!1}}function Dr(e){return e.exception?.values?.[0]}const Fr=()=>({name:"ConversationId",setup(e){e.on("spanStart",e=>{const t=nn().getScopeData(),n=rn().getScopeData(),i=t.conversationId||n.conversationId;if(i){const{op:t,data:n,description:r}=Cn(e);if(!t?.startsWith("gen_ai.")&&!n["ai.operationId"]&&!r?.startsWith("ai."))return;e.setAttribute("gen_ai.conversation.id",i)}})}});function Or(e){return void 0===e?void 0:e>=400&&e<500?"warning":e>=500?"error":void 0}const kr=fe;function Nr(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function zr(){if("string"==typeof EdgeRuntime)return!0;if(!function(){if(!("fetch"in kr))return!1;try{return new Headers,new Request("data:,"),new Response,!0}catch{return!1}}())return!1;if(Nr(kr.fetch))return!0;let e=!1;const t=kr.document;if(t&&"function"==typeof t.createElement)try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow?.fetch&&(e=Nr(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){Ae&&Se.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}function Ur(e,t){const n="fetch",i=ke(n,e);return Ne(n,()=>function(e,t=!1){if(t&&!zr())return;rt(fe,"fetch",function(e){return function(...t){const n=new Error,{method:i,url:r}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){const[t,n]=e;return{url:Vr(t),method:Gr(n,"method")?String(n.method).toUpperCase():it(t)&&Gr(t,"method")?String(t.method).toUpperCase():"GET"}}const t=e[0];return{url:Vr(t),method:Gr(t,"method")?String(t.method).toUpperCase():"GET"}}(t),s={args:t,fetchData:{method:i,url:r},startTimestamp:1e3*Dt(),virtualError:n,headers:Hr(t)};return ze("fetch",{...s}),e.apply(fe,t).then(async e=>(ze("fetch",{...s,endTimestamp:1e3*Dt(),response:e}),e),e=>{ze("fetch",{...s,endTimestamp:1e3*Dt(),error:e}),qe(e)&&void 0===e.stack&&(e.stack=n.stack,st(e,"framesToPop",1));const t=sn(),i=t?.getOptions().enhanceFetchErrorMessages??"always";if(!1!==i&&e instanceof TypeError&&("Failed to fetch"===e.message||"Load failed"===e.message||"NetworkError when attempting to fetch resource."===e.message))try{const t=new URL(s.fetchData.url).host;"always"===i?e.message=`${e.message} (${t})`:st(e,"__sentry_fetch_url_host__",t)}catch{}throw e})}})}(0,t)),i}function Gr(e,t){return $e(e)&&!!e[t]}function Vr(e){return"string"==typeof e?e:e?Gr(e,"url")?e.url:e.toString?e.toString():"":""}function Hr(e){const[t,n]=e;try{if("object"==typeof n&&null!==n&&"headers"in n&&n.headers)return new Headers(n.headers);if(it(t))return new Headers(t.headers)}catch{}}const jr=fe;function qr(){try{return jr.document.location.href}catch{return""}}const Qr=fe;let Wr=0;function Kr(){return Wr>0}function Zr(e,t={}){if("function"!=typeof e)return e;try{if(Object.prototype.hasOwnProperty.call(e,"__sentry_wrapped__")){const t=e.__sentry_wrapped__;return"function"==typeof t?t:e}if(at(e))return e}catch{return e}const n=function(...n){fe._sentryWrappedDepth=(fe._sentryWrappedDepth||0)+1;try{const i=n.map(e=>Zr(e,t));return e.apply(this,i)}catch(i){throw Wr++,setTimeout(()=>{Wr--}),function(...e){const t=$t(me());if(2===e.length){const[n,i]=e;return n?t.withSetScope(n,i):t.withScope(i)}t.withScope(e[0])}(e=>{e.addEventProcessor(e=>(t.mechanism&&(Tt(e,void 0),Rt(e,t.mechanism)),e.extra={...e.extra,arguments:n},e)),fi(i)}),i}finally{fe._sentryWrappedDepth=(fe._sentryWrappedDepth||0)-1}};try{for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}catch{}ot(n,e),st(e,"__sentry_wrapped__",n);try{Object.getOwnPropertyDescriptor(n,"name").configurable&&Object.defineProperty(n,"name",{get:()=>e.name})}catch{}return n}function Yr(){const e=qr(),{referrer:t}=Qr.document||{},{userAgent:n}=Qr.navigator||{};return{url:e,headers:{...t&&{Referer:t},...n&&{"User-Agent":n}}}}function Xr(e,t){const n=es(e,t),i={type:is(t),value:rs(t)};return n.length&&(i.stacktrace={frames:n}),void 0===i.type&&""===i.value&&(i.value="Unrecoverable error caught"),i}function Jr(e,t,n,i){const r=sn(),s=r?.getOptions().normalizeDepth,o=(a=t,Object.values(a).find(e=>e instanceof Error));var a;const l={__serialized__:vt(t,s)};if(o)return{exception:{values:[Xr(e,o)]},extra:l};const c={exception:{values:[{type:et(t)?t.constructor.name:i?"UnhandledRejection":"Error",value:as(t,{isUnhandledRejection:i})}]},extra:l};if(n){const t=es(e,n);t.length&&(c.exception.values[0].stacktrace={frames:t})}return c}function $r(e,t){return{exception:{values:[Xr(e,t)]}}}function es(e,t){const n=t.stacktrace||t.stack||"",i=function(e){if(e&&ts.test(e.message))return 1;return 0}(t),r=function(e){if("number"==typeof e.framesToPop)return e.framesToPop;return 0}(t);try{return e(n,i,r)}catch{}return[]}const ts=/Minified React error #\d+;/i;function ns(e){return"undefined"!=typeof WebAssembly&&void 0!==WebAssembly.Exception&&e instanceof WebAssembly.Exception}function is(e){const t=e?.name;if(!t&&ns(e)){return e.message&&Array.isArray(e.message)&&2==e.message.length?e.message[0]:"WebAssembly.Exception"}return t}function rs(e){const t=e?.message;return ns(e)?Array.isArray(e.message)&&2==e.message.length?e.message[1]:"wasm exception":t?t.error&&"string"==typeof t.error.message?Sr(t.error):Sr(e):"No error message"}function ss(e,t,n,i,r){let s;if(We(t)&&t.error){return $r(e,t.error)}if(Ke(t)||Qe(t,"DOMException")){const r=t;if("stack"in t){s=$r(e,t);const r=s.exception?.values?.[0];if(i&&n&&r&&!r.stacktrace){const t=es(e,n);t.length&&(r.stacktrace={frames:t},Rt(s,{synthetic:!0}))}}else{const t=r.name||(Ke(r)?"DOMError":"DOMException"),o=r.message?`${t}: ${r.message}`:t;s=os(e,o,n,i),Tt(s,o)}return"code"in r&&(s.tags={...s.tags,"DOMException.code":`${r.code}`}),s}if(qe(t))return $r(e,t);if(Je(t)||et(t)){return s=Jr(e,t,n,r),Rt(s,{synthetic:!0}),s}return s=os(e,t,n,i),Tt(s,`${t}`),Rt(s,{synthetic:!0}),s}function os(e,t,n,i){const r={};if(i&&n){const i=es(e,n);i.length&&(r.exception={values:[{value:t,stacktrace:{frames:i}}]}),Rt(r,{synthetic:!0})}if(Ye(t)){const{__sentry_template_string__:e,__sentry_template_values__:n}=t;return r.logentry={message:e,params:n},r}return r.message=t,r}function as(e,{isUnhandledRejection:t}){const n=function(e){const t=Object.keys(lt(e));return t.sort(),t[0]?t.join(", "):"[object has no keys]"}(e),i=t?"promise rejection":"exception";if(We(e))return`Event \`ErrorEvent\` captured as ${i} with message \`${e.message}\``;if(et(e)){return`Event \`${function(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}(e)}\` (type=${e.type}) captured as ${i}`}return`Object captured as ${i} with keys: ${n}`}class ls extends tr{constructor(e){const t=(n=e,{release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:Qr.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...n});var n;!function(e,t,n=[t],i="npm"){const r=(e._metadata=e._metadata||{}).sdk=e._metadata.sdk||{};r.name||(r.name=`sentry.javascript.${t}`,r.packages=n.map(e=>({name:`${i}:@sentry/${e}`,version:ge})),r.version=ge)}(t,"browser",["browser"],Qr.SENTRY_SDK_SOURCE||"npm"),super(t);const{userInfo:i}=this.getDataCollectionOptions();t._metadata?.sdk&&(t._metadata.sdk.settings={infer_ip:i?"auto":"never",...t._metadata.sdk.settings});const{sendClientReports:r}=this._options;Qr.document&&Qr.document.addEventListener("visibilitychange",()=>{"hidden"===Qr.document.visibilityState&&(r&&this._flushOutcomes(),queueMicrotask(()=>{this.flush()}))}),i&&this.on("beforeSendSession",ur)}eventFromException(e,t){return function(e,t,n,i){const r=ss(e,t,n?.syntheticException||void 0,i);return Rt(r),r.level="error",n?.event_id&&(r.event_id=n.event_id),ii(r)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return function(e,t,n="info",i,r){const s=os(e,t,i?.syntheticException||void 0,r);return s.level=n,i?.event_id&&(s.event_id=i.event_id),ii(s)}(this._options.stackParser,e,t,n,this._options.attachStacktrace)}_prepareEvent(e,t,n,i){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n,i)}}const cs="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,hs=fe;function us(e,t,n){hs.document&&hs.addEventListener(e,t,n)}function ds(e,t,n){hs.document&&hs.removeEventListener(e,t,n)}const ps={};try{"undefined"!=typeof Node&&(ps.parentNode=Object.getOwnPropertyDescriptor(Node.prototype,"parentNode").get),"undefined"!=typeof Element&&(ps.tagName=Object.getOwnPropertyDescriptor(Element.prototype,"tagName").get,ps.id=Object.getOwnPropertyDescriptor(Element.prototype,"id").get,ps.className=Object.getOwnPropertyDescriptor(Element.prototype,"className").get,ps.getAttribute=Element.prototype.getAttribute),"undefined"!=typeof HTMLElement&&(ps.dataset=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"dataset").get)}catch{}function As(e,t,n){const i=ps[t];if(i)try{return i.call(e,n)}catch{}const r=e[t];return"function"==typeof r?r.call(e,n):r}function fs(e,t={}){if(!e)return"<unknown>";try{let n=e;const i=5,r=[];let s=0,o=0;const a=" > ",l=a.length;let c;const h=Array.isArray(t)?t:t.keyAttrs,u=!Array.isArray(t)&&t.maxStringLength||80;for(;n&&s++<i&&(c=gs(n,h),!("html"===c||s>1&&o+r.length*l+c.length>=u));)r.push(c),o+=c.length,n=As(n,"parentNode");return r.reverse().join(a)}catch{return"<unknown>"}}function gs(e,t){const n=[],i=As(e,"tagName");if(!i)return"";if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement){const t=As(e,"dataset");if(t){if(t.sentryComponent)return t.sentryComponent;if(t.sentryElement)return t.sentryElement}}n.push(i.toLowerCase());const r=t?.length?t.filter(t=>As(e,"getAttribute",t)).map(t=>[t,As(e,"getAttribute",t)]):null;if(r?.length)r.forEach(e=>{n.push(`[${e[0]}="${e[1]}"]`)});else{const t=As(e,"id");t&&n.push(`#${t}`);const i=As(e,"className");if(i&&Ze(i)){const e=i.split(/\s+/);for(const t of e)n.push(`.${t}`)}}for(const s of["aria-label","type","name","title","alt"]){const t=As(e,"getAttribute",s);t&&n.push(`[${s}="${t}"]`)}return n.join("")}let ms,ys,vs,bs;function _s(){if(!hs.document)return;const e=ze.bind(null,"dom"),t=xs(e,!0);hs.document.addEventListener("click",t,!1),hs.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(t=>{const n=hs,i=n[t]?.prototype;i?.hasOwnProperty?.("addEventListener")&&(rt(i,"addEventListener",function(t){return function(n,i,r){if("click"===n||"keypress"==n)try{const i=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},s=i[n]=i[n]||{refCount:0};if(!s.handler){const i=xs(e);s.handler=i,t.call(this,n,i,r)}s.refCount++}catch{}return t.call(this,n,i,r)}}),rt(i,"removeEventListener",function(e){return function(t,n,i){if("click"===t||"keypress"==t)try{const n=this.__sentry_instrumentation_handlers__||{},r=n[t];r&&(r.refCount--,r.refCount<=0&&(e.call(this,t,r.handler,i),r.handler=void 0,delete n[t]),0===Object.keys(n).length&&delete this.__sentry_instrumentation_handlers__)}catch{}return e.call(this,t,n,i)}}))})}function xs(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const i=function(e){try{return e.target}catch{return null}}(n);if(function(e,t){return"keypress"===e&&(!t?.tagName||"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName&&!t.isContentEditable)}(n.type,i))return;st(n,"_sentryCaptured",!0),i&&!i._sentryId&&st(i,"_sentryId",St());const r="keypress"===n.type?"input":n.type;if(!function(e){if(e.type!==ys)return!1;try{if(!e.target||e.target._sentryId!==vs)return!1}catch{}return!0}(n)){e({event:n,name:r,global:t}),ys=n.type,vs=i?i._sentryId:void 0}clearTimeout(ms),ms=hs.setTimeout(()=>{vs=void 0,ys=void 0},1e3)}}function ws(e){const t="history";ke(t,e),Ne(t,Es)}function Es(){function e(e){return function(...t){const n=t.length>2?t[2]:void 0;if(n){const i=bs,r=function(e){try{return new URL(e,hs.location.origin).toString()}catch{return e}}(String(n));if(bs=r,i===r)return e.apply(this,t);ze("history",{from:i,to:r})}return e.apply(this,t)}}hs.addEventListener("popstate",()=>{const e=hs.location.href,t=bs;if(bs=e,t===e)return;ze("history",{from:t,to:e})}),"history"in kr&&kr.history&&(rt(hs.history,"pushState",e),rt(hs.history,"replaceState",e))}const Cs={};const Ss="__sentry_xhr_v3__";function Ms(){if(!hs.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,n){const i=new Error,r=1e3*Dt(),s=Ze(n[0])?n[0].toUpperCase():void 0,o=function(e){if(Ze(e))return e;try{return e.toString()}catch{}return}(n[1]);if(!s||!o)return e.apply(t,n);t[Ss]={method:s,url:o,request_headers:{}},"POST"===s&&o.match(/sentry_key/)&&(t.__sentry_own_request__=!0);const a=()=>{const e=t[Ss];if(e&&4===t.readyState){try{e.status_code=t.status}catch{}ze("xhr",{endTimestamp:1e3*Dt(),startTimestamp:r,xhr:t,virtualError:i}),t.removeEventListener("readystatechange",a)}};return"onreadystatechange"in t&&"function"==typeof t.onreadystatechange?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply:(e,t,n)=>(a(),e.apply(t,n))}):t.addEventListener("readystatechange",a),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,n){const[i,r]=n,s=t[Ss];return s&&Ze(i)&&Ze(r)&&(s.request_headers[i.toLowerCase()]=r),e.apply(t,n)}}),e.apply(t,n)}}),e.send=new Proxy(e.send,{apply(e,t,n){const i=t[Ss];if(!i)return e.apply(t,n);void 0!==n[0]&&(i.body=n[0]);return ze("xhr",{startTimestamp:1e3*Dt(),xhr:t}),e.apply(t,n)}})}function Is(e,t=function(e){const t=Cs[e];if(t)return t;let n=hs[e];if(Nr(n))return Cs[e]=n.bind(hs);const i=hs.document;if(i&&"function"==typeof i.createElement)try{const t=i.createElement("iframe");t.hidden=!0,i.head.appendChild(t);const r=t.contentWindow;r?.[e]&&(n=r[e]),i.head.removeChild(t)}catch(mie){cs&&Se.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,mie)}return n?Cs[e]=n.bind(hs):n}("fetch")){let n=0,i=0;return Gi(e,async function(r){const s=r.body.length;n+=s,i++;const o={body:r.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:n<=6e4&&i<15,...e.fetchOptions};try{const n=await t(e.url,o);return{statusCode:n.status,headers:{"x-sentry-rate-limits":n.headers.get("X-Sentry-Rate-Limits"),"retry-after":n.headers.get("Retry-After")}}}catch(mie){throw function(e){Cs[e]=void 0}("fetch"),mie}finally{n-=s,i--}},zi(e.bufferSize||40))}const Ts="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function Rs(e,t,n,i){const r={filename:e,function:"<anonymous>"===t?Me:t,in_app:!0};return void 0!==n&&(r.lineno=n),void 0!==i&&(r.colno=i),r}const Ps=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,Bs=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Ls=/\((\S*)(?::(\d+))(?::(\d+))\)/,Ds=/at (.+?) ?\(data:(.+?),/,Fs=[30,e=>{const t=e.match(Ds);if(t)return{filename:`<data:${t[2]}>`,function:t[1]};const n=Ps.exec(e);if(n){const[,e,t,i]=n;return Rs(e,Me,+t,+i)}const i=Bs.exec(e);if(i){if(0===i[2]?.indexOf("eval")){const e=Ls.exec(i[2]);e&&(i[2]=e[1],i[3]=e[2],i[4]=e[3])}const[e,t]=Us(i[1]||Me,i[2]);return Rs(t,e,i[3]?+i[3]:void 0,i[4]?+i[4]:void 0)}}],Os=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,ks=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Ns=[50,e=>{const t=Os.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const e=ks.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]||Me;return[n,e]=Us(n,e),Rs(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],zs=Re(...[Fs,Ns]),Us=(e,t)=>{const n=-1!==e.indexOf("safari-extension"),i=-1!==e.indexOf("safari-web-extension");return n||i?[-1!==e.indexOf("@")?e.split("@")[0]:Me,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},Gs=1024,Vs=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:"Breadcrumbs",setup(e){var n;t.console&&function(e){const t="console",n=ke(t,e);Ne(t,Tr)}(function(e){return function(t){if(sn()!==e)return;const n={category:"console",data:{arguments:t.args,logger:"console"},level:Rr(t.level),message:wt(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;n.message=`Assertion failed: ${wt(t.args.slice(1)," ")||"console.assert"}`,n.data.arguments=t.args.slice(1)}pr(n,{input:t.args,level:t.level})}}(e)),t.dom&&(n=function(e,t){return function(n){if(sn()!==e)return;let i,r,s="object"==typeof t?t.serializeAttribute:void 0,o="object"==typeof t&&"number"==typeof t.maxStringLength?t.maxStringLength:void 0;o&&o>Gs&&(Ts&&Se.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${o} was configured. Sentry will use 1024 instead.`),o=Gs),"string"==typeof s&&(s=[s]);try{const e=n.event,t=function(e){return!!e&&!!e.target}(e)?e.target:e;i=fs(t,{keyAttrs:s,maxStringLength:o}),r=function(e,t=5){if(!jr.HTMLElement)return null;let n=e;for(let i=0;i<t;i++){if(!n)return null;if(n instanceof HTMLElement){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}n=n.parentNode}return null}(t)}catch{i="<unknown>"}if(0===i.length)return;const a={category:`ui.${n.name}`,message:i};r&&(a.data={"ui.component_name":r}),pr(a,{event:n.event,name:n.name,global:n.global})}}(e,t.dom),ke("dom",n),Ne("dom",_s)),t.xhr&&function(e){ke("xhr",e),Ne("xhr",Ms)}(function(e){return function(t){if(sn()!==e)return;const{startTimestamp:n,endTimestamp:i}=t,r=t.xhr[Ss];if(!n||!i||!r)return;const{method:s,url:o,status_code:a,body:l}=r,c={method:s,url:o,status_code:a},h={xhr:t.xhr,input:l,startTimestamp:n,endTimestamp:i},u={category:"xhr",data:c,type:"http",level:Or(a)};e.emit("beforeOutgoingRequestBreadcrumb",u,h),pr(u,h)}}(e)),t.fetch&&Ur(function(e){return function(t){if(sn()!==e)return;const{startTimestamp:n,endTimestamp:i}=t;if(i&&(!t.fetchData.url.match(/sentry_key/)||"POST"!==t.fetchData.method))if(t.error){const r={data:t.error,input:t.args,startTimestamp:n,endTimestamp:i},s={category:"fetch",data:t.fetchData,level:"error",type:"http"};e.emit("beforeOutgoingRequestBreadcrumb",s,r),pr(s,r)}else{const r=t.response,s={...t.fetchData,status_code:r?.status},o={input:t.args,response:r,startTimestamp:n,endTimestamp:i},a={category:"fetch",data:s,type:"http",level:Or(s.status_code)};e.emit("beforeOutgoingRequestBreadcrumb",a,o),pr(a,o)}}}(e)),t.history&&ws(function(e){return function(t){if(sn()!==e)return;let n=t.from,i=t.to;const r=hr(Qr.location.href);let s=n?hr(n):void 0;const o=hr(i);s?.path||(s=r),r.protocol===o.protocol&&r.host===o.host&&(i=o.relative),r.protocol===s.protocol&&r.host===s.host&&(n=s.relative),pr({category:"navigation",data:{from:n,to:i}})}}(e)),t.sentry&&e.on("beforeSendEvent",function(e){return function(t){sn()===e&&pr({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:It(t)},{event:t})}}(e))}}};const Hs="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(","),js=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:"BrowserApiErrors",setupOnce(){t.setTimeout&&rt(Qr,"setTimeout",qs),t.setInterval&&rt(Qr,"setInterval",qs),t.requestAnimationFrame&&rt(Qr,"requestAnimationFrame",Qs),t.XMLHttpRequest&&"XMLHttpRequest"in Qr&&rt(XMLHttpRequest.prototype,"send",Ws);const e=t.eventTarget;if(e){(Array.isArray(e)?e:Hs).forEach(e=>function(e,t){const n=Qr,i=n[e]?.prototype;if(!i?.hasOwnProperty?.("addEventListener"))return;rt(i,"addEventListener",function(n){return function(i,r,s){try{"function"==typeof r.handleEvent&&(r.handleEvent=Zr(r.handleEvent,{mechanism:{data:{handler:Le(r),target:e},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return t.unregisterOriginalCallbacks&&function(e,t,n){e&&"object"==typeof e&&"removeEventListener"in e&&"function"==typeof e.removeEventListener&&e.removeEventListener(t,n)}(this,i,r),n.apply(this,[i,Zr(r,{mechanism:{data:{handler:Le(r),target:e},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),s])}}),rt(i,"removeEventListener",function(e){return function(t,n,i){try{if(Object.prototype.hasOwnProperty.call(n,"__sentry_wrapped__")){const r=n.__sentry_wrapped__;r&&e.call(this,t,r,i)}}catch{}return e.call(this,t,n,i)}})}(e,t))}}}};function qs(e){return function(...t){const n=t[0];return t[0]=Zr(n,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${Le(e)}`}}),e.apply(this,t)}}function Qs(e){return function(t){return e.apply(this,[Zr(t,{mechanism:{data:{handler:Le(e)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function Ws(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(e=>{e in n&&"function"==typeof n[e]&&rt(n,e,function(t){const n={mechanism:{data:{handler:Le(t)},handled:!1,type:`auto.browser.browserapierrors.xhr.${e}`}},i=at(t);return i&&(n.mechanism.data.handler=Le(i)),Zr(t,n)})}),e.apply(this,t)}}const Ks=(e={})=>{const t=e.lifecycle??"route";return{name:"BrowserSession",setupOnce(){if(void 0===Qr.document)return void(Ts&&Se.warn("Using the `browserSessionIntegration` in non-browser environments is not supported."));vi({ignoreDuration:!0});let e=!1;(e=>{const t=hs.requestIdleCallback||hs.setTimeout;"hidden"===hs.document?.visibilityState?e():(us("visibilitychange",e=(e=>{let t=!1;return()=>{t||(e(),t=!0)}})(e),{once:!0,capture:!0}),us("pagehide",e,{once:!0,capture:!0}),t(()=>{e(),ds("visibilitychange",e,{capture:!0}),ds("pagehide",e,{capture:!0})}))})(()=>{e||(xi(),e=!0)});const n=rn();let i=n.getUser();n.addScopeListener(t=>{const n=t.getUser();i?.id===n?.id&&i?.ip_address===n?.ip_address||(i=n,e&&xi())}),"route"===t&&ws(({from:t,to:n})=>{t!==n&&(vi({ignoreDuration:!0}),xi(),e=!0)})}}},Zs=()=>({name:"CultureContext",preprocessEvent(e){const t=Ys();t&&(e.contexts={...e.contexts,culture:{...t,...e.contexts?.culture}})},processSegmentSpan(e){const t=Ys();t&&ni(e,{"culture.locale":t.locale,"culture.timezone":t.timezone,"culture.calendar":t.calendar})}});function Ys(){try{const e=Qr.Intl;if(!e)return;const t=e.DateTimeFormat().resolvedOptions();return{locale:t.locale,timezone:t.timeZone,calendar:t.calendar}}catch{return}}const Xs=(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(!function(e){!function(e){const t="error";ke(t,e),Ne(t,Ge)}(t=>{const{stackParser:n,attachStacktrace:i}=$s();if(sn()!==e||Kr())return;const{msg:r,url:s,line:o,column:a,error:l}=t,c=function(e,t,n,i){const r=e.exception=e.exception||{},s=r.values=r.values||[],o=s[0]=s[0]||{},a=o.stacktrace=o.stacktrace||{},l=a.frames=a.frames||[];0===l.length&&l.push({colno:i,lineno:n,filename:eo(t)??qr(),function:Me,in_app:!0});return e}(ss(n,l||r,void 0,i,!1),s,o,a);c.level="error",mi(c,{originalException:l,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})})}(e),Js("onerror")),t.onunhandledrejection&&(!function(e){!function(e){const t="unhandledrejection";ke(t,e),Ne(t,He)}(t=>{const{stackParser:n,attachStacktrace:i}=$s();if(sn()!==e||Kr())return;const r=function(e){if(Xe(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}(t),s=Xe(r)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(r)}`}]}}:ss(n,r,void 0,i,!0);s.level="error",mi(s,{originalException:r,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})})}(e),Js("onunhandledrejection"))}}};function Js(e){Ts&&Se.log(`Global Handler attached: ${e}`)}function $s(){const e=sn();return e?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}function eo(e){if(Ze(e)&&0!==e.length)return e.startsWith("data:")?`<${function(e,t=!0){if(e.startsWith("data:")){const n=e.match(/^data:([^;,]+)/),i=n?n[1]:"text/plain",r=e.includes(";base64,"),s=e.indexOf(",");let o="";if(t&&-1!==s){const t=e.slice(s+1);o=t.length>10?`${t.slice(0,10)}... [truncated]`:t}return`data:${i}${r?",base64":""}${o?`,${o}`:""}`}return e}(e,!1)}>`:e}const to=()=>({name:"HttpContext",preprocessEvent(e){if(!Qr.navigator&&!Qr.location&&!Qr.document)return;const t=Yr(),n={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:n}},processSegmentSpan(e){const t=e.attributes?.[an];if(!Qr.navigator&&!Qr.location&&!Qr.document)return;const n=Yr();ni(e,{[ti]:"http.client"!==t?n.url:void 0,"http.request.header.user_agent":n.headers["User-Agent"],"http.request.header.referer":n.headers.Referer})}}),no=(e={})=>{const t=e.limit||5,n=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,i,r){_r(Xr,r.getOptions().stackParser,n,t,e,i)}}},io=/^HTML(\w*)Element$/;function ro(e){if("undefined"!=typeof window&&e===window)return"[Window]";if("undefined"!=typeof document&&e===document)return"[Document]";if(function(e){if("undefined"==typeof Element)return!1;try{return e instanceof Element}catch{return!1}}(e)){const t=function(e){const t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:"null prototype"}(e);if(io.test(t))return`[HTMLElement: ${fs(e)}]`}}function so(){return!!function(){if(void 0===Qr.window)return!1;const e=Qr;if(e.nw)return!1;const t=e.chrome||e.browser;if(!t?.runtime?.id)return!1;const n=qr();return!(Qr===Qr.top&&/^(?:chrome-extension|moz-extension|ms-browser-extension|safari-web-extension):\/\//.test(n))}()&&(Ts&&xe(()=>{console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}),!0)}function oo(e){return[yr(),fr(),Fr(),js(),Vs(),Xs(),no(),Pr(),to(),Zs(),Ks()]}function ao(e={}){const t=!e.skipBrowserExtensionCheck&&so();let n=null==e.defaultIntegrations?oo():e.defaultIntegrations;const i={...e,enabled:!t&&e.enabled,stackParser:(r=e.stackParser||zs,Array.isArray(r)?Re(...r):r),integrations:Si({integrations:e.integrations,defaultIntegrations:n}),transport:e.transport||Is};var r;return gt=ro,cr(ls,i)}class lo{constructor(){this.initialized=!1}static initialize(e){const t=lo.getInstance();if(t.initialized)return void yi("component",e);ao({dsn:"https://98a864152051bb3d42f8e955f2ab3078@sentry.mapvx.app/6",environment:"production",release:"0.1.2"}),yi("component",e),t.initialized=!0}static getInstance(){return lo.instance||(lo.instance=new lo),lo.instance}error(e,t){fi(e,t?{extra:t}:void 0)}info(e,t){gi(e,{level:"info",extra:t})}warning(e,t){gi(e,{level:"warning",extra:t})}critical(e,t){gi(e,{level:"fatal",extra:t})}}
|
|
39
39
|
/**
|
|
40
40
|
* @license
|
|
41
41
|
* Copyright 2021 Google LLC
|