@mapvx/web-components 0.1.2 → 0.1.3

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.
Files changed (30) hide show
  1. package/dist/cjs/{base-floor-selector-DFnDEEM3.cjs → base-floor-selector-6B_D7uUw.cjs} +2 -2
  2. package/dist/cjs/{class-map-ChMAfTFe.cjs → class-map-CfJw8pY6.cjs} +2 -2
  3. package/dist/cjs/{compact-floor-selector-BCeDL8I5.cjs → compact-floor-selector-CPK6sXBk.cjs} +2 -2
  4. package/dist/cjs/{consume-CKorNsgJ.cjs → consume-B4K_oiFc.cjs} +2 -2
  5. package/dist/cjs/{custom-map-1gDZnqoR.cjs → custom-map-CfhrBuF7.cjs} +3 -3
  6. package/dist/cjs/{floor-selector-BWaCcDvR.cjs → floor-selector-rW48Tktb.cjs} +2 -2
  7. package/dist/cjs/{geojson-layer-_4ssXrG_.cjs → geojson-layer-wtQbiowp.cjs} +2 -2
  8. package/dist/cjs/{index-DM2GszaW.cjs → index-BAYbrXBp.cjs} +2 -2
  9. package/dist/cjs/{index-CpmSQzi7.cjs → index-DAac9HVL.cjs} +2 -2
  10. package/dist/cjs/index.cjs +1 -1
  11. package/dist/cjs/map-view-with-modal.cjs +1 -1
  12. package/dist/cjs/qr-modal-fSPvpyzj.cjs +16 -0
  13. package/dist/cjs/{route-options-BFRImfBY.cjs → route-options-BjMH6A43.cjs} +2 -2
  14. package/dist/cjs/route-view-totems.cjs +1 -1
  15. package/dist/cjs/{sdk-controller-C5n2dJ1u.cjs → sdk-controller-5LmYQQhJ.cjs} +3 -3
  16. package/dist/es/assets/{compact-floor-selector-T1-T8JtV.js → compact-floor-selector-WL6DewCc.js} +2 -2
  17. package/dist/es/assets/{components-P8ZEdF4n.js → components-BfTs1Lia.js} +9 -9
  18. package/dist/es/assets/{geojson-layer-Cj_7zg8v.js → geojson-layer-CeMb7DTQ.js} +2 -2
  19. package/dist/es/assets/globe-viewport-CFdegSgy.js +4 -0
  20. package/dist/es/assets/{index-CNxIfV8m.js → index-D4Krpv5a.js} +2 -2
  21. package/dist/es/assets/{index-DS6Va1rg.js → index-wdE7uK4l.js} +2 -2
  22. package/dist/es/assets/{map-view-with-modal-Z--_Drda.js → map-view-with-modal-JYZY7d5R.js} +2 -2
  23. package/dist/es/assets/{route-view-totems-DoAr4DQV.js → route-view-totems-Dvggb-ZM.js} +4 -4
  24. package/dist/es/assets/{utils-BCoCXmhx.js → utils-B4ksZYyJ.js} +3 -3
  25. package/dist/es/index.js +1 -1
  26. package/dist/es/route-view-totems.js +1 -1
  27. package/dist/iife/map-view-with-modal.js +2 -2
  28. package/dist/iife/route-view-totems.js +2 -2
  29. package/package.json +1 -1
  30. package/dist/cjs/qr-modal-BXLeCQeI.cjs +0 -20
@@ -1,4 +1,4 @@
1
- import{S as t}from"./utils-BCoCXmhx.js";
1
+ import{S as t}from"./utils-B4ksZYyJ.js";
2
2
  /**
3
3
  * @license
4
4
  * Copyright 2019 Google LLC
@@ -35,7 +35,7 @@ const dt=t=>(e,n)=>{void 0!==n?n.addInitializer(()=>{customElements.define(t,e)}
35
35
  * @license
36
36
  * Copyright 2017 Google LLC
37
37
  * SPDX-License-Identifier: BSD-3-Clause
38
- */function ft(t){return ht({...t,state:!0,attribute:!1})}const mt=()=>import("./components-P8ZEdF4n.js").then(t=>t.c),gt=()=>import("./compact-floor-selector-T1-T8JtV.js"),_t=async()=>{try{await import("./styles-CsR9mihk.js")}catch{}};class yt{constructor(){this.MEASUREMENT_ID="G-6XL8YD35QR",this.isInitialized=!1,this.sessionId=""}static getInstance(){return yt.instance||(yt.instance=new yt),yt.instance}generateSessionId(){return Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15)}initialize(t){if(this.isInitialized)return;yt.component=t,this.sessionId=this.generateSessionId();const e=document.createElement("script");e.async=!0,e.src=`https://www.googletagmanager.com/gtag/js?id=${this.MEASUREMENT_ID}`,document.head.appendChild(e),window.dataLayer=window.dataLayer||[];window.gtag=window.gtag||((...t)=>{window.dataLayer.push(t)}),window.gtag("js",/* @__PURE__ */new Date),window.gtag("config",this.MEASUREMENT_ID,{send_page_view:!0,groups:"mapvx"}),this.isInitialized=!0}resetSessionId(){this.sessionId=this.generateSessionId()}trackPageView(t){this.isInitialized&&window.gtag("event","page_view",{page_title:t,page_location:window.location.href,page_path:t,component:yt.component,session_id:this.sessionId,send_to:"mapvx"})}trackEvent(t,e){this.isInitialized&&window.gtag("event",t,{...e,component:yt.component,session_id:this.sessionId,send_to:"mapvx"})}trackUserTiming(t,e,n){this.isInitialized&&window.gtag("event","timing_complete",{name:e,value:n,event_category:t,component:yt.component,session_id:this.sessionId,send_to:"mapvx"})}trackException(t,e=!1){this.isInitialized&&window.gtag("event","exception",{description:t,fatal:e,component:yt.component,session_id:this.sessionId,send_to:"mapvx"})}}const vt="/mvx-tiles-sw.js",bt="/",Et="https://tiles.mapvx.com/tiles";async function wt(){if(!("serviceWorker"in navigator))return;const t=navigator.serviceWorker.ready;t&&await t.catch(()=>{})}async function St(t=vt,e="/"){if("undefined"==typeof navigator||!("serviceWorker"in navigator))return null;try{return await navigator.serviceWorker.register(t,{scope:e})}catch{return null}}function xt(t,e){if(!t?.active)return;const n=e.apiKey?.trim()??"",r=e.placeId?.trim()??"";""!==n&&""!==r&&t.active.postMessage({type:"INITIAL_TILE_LOAD",apiKey:n,placeId:r,tilesBaseUrl:e.tilesBaseUrl??Et})}function $t(t,e,n=864e5){if(!t)return()=>{};const r=window.setInterval(()=>{if(!t.active)return;const n=e.apiKey?.trim()??"",r=e.placeId?.trim()??"";""!==n&&""!==r&&t.active.postMessage({type:"REFRESH_TILES",apiKey:n,placeId:r,tilesBaseUrl:e.tilesBaseUrl??Et})},n);return()=>window.clearInterval(r)}async function kt(t){const e=await St(t.swPath,t.swScope);await wt(),xt(e,t);return{registration:e,stopPeriodicRefresh:t.enablePeriodicRefresh?$t(e,t):()=>{}}}const It="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,At=globalThis,Pt="10.68.0";function Ct(){return Ot(At),At}function Ot(t){const e=t.__SENTRY__=t.__SENTRY__||{};return e.version=e.version||Pt,e[Pt]=e[Pt]||{}}function Rt(t,e,n=At){const r=n.__SENTRY__=n.__SENTRY__||{},s=r[Pt]=r[Pt]||{};return s[t]||(s[t]=e())}const Tt=["debug","info","warn","error","log","assert","trace"],Mt={};function Dt(t){if(!("console"in At))return t();const e=At.console,n={},r=Object.keys(Mt);r.forEach(t=>{const r=Mt[t];n[t]=e[t],e[t]=r});try{return t()}finally{r.forEach(t=>{e[t]=n[t]})}}function Nt(){return jt().enabled}function Lt(t,...e){It&&Nt()&&Dt(()=>{At.console[t](`Sentry Logger [${t}]:`,...e)})}function jt(){return It?Rt("loggerSettings",()=>({enabled:!1})):{enabled:!1}}const Ut={enable:function(){jt().enabled=!0},disable:function(){jt().enabled=!1},isEnabled:Nt,log:function(...t){Lt("log",...t)},warn:function(...t){Lt("warn",...t)},error:function(...t){Lt("error",...t)}},Ht="?",zt=/\(error: (.*)\)/,Wt=/captureMessage|captureException/;function Bt(...t){const e=t.sort((t,e)=>t[0]-e[0]).map(t=>t[1]);return(t,n=0,r=0)=>{const s=[],i=t.split("\n");for(let o=n;o<i.length;o++){let t=i[o];t.length>1024&&(t=t.slice(0,1024));const n=zt.test(t)?t.replace(zt,"$1"):t;if(!n.includes("Error: ")){for(const t of e){const e=t(n);if(e){s.push(e);break}}if(s.length>=50+r)break}}return function(t){if(!t.length)return[];const e=Array.from(t);/sentryWrapped/.test(qt(e).function||"")&&e.pop();e.reverse(),Wt.test(qt(e).function||"")&&(e.pop(),Wt.test(qt(e).function||"")&&e.pop());return e.slice(0,50).map(t=>({...t,filename:t.filename||qt(e).filename,function:t.function||Ht}))}(s.slice(r))}}function qt(t){return t[t.length-1]||{}}const Ft="<anonymous>";function Kt(t){try{return t&&"function"==typeof t&&t.name||Ft}catch{return Ft}}function Vt(t){const e=t.exception;if(e){const t=[];try{return e.values.forEach(e=>{e.stacktrace.frames&&t.push(...e.stacktrace.frames)}),t}catch{return}}}const Yt={},Qt={};function Gt(t,e){return Yt[t]=Yt[t]||[],Yt[t].push(e),()=>{const n=Yt[t];if(n){const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}}function Jt(t,e){if(!Qt[t]){Qt[t]=!0;try{e()}catch(I){It&&Ut.error(`Error while instrumenting ${t}`,I)}}}function Zt(t,e){const n=t&&Yt[t];if(n)for(const r of n)try{r(e)}catch(I){It&&Ut.error(`Error while triggering instrumentation handler.\nType: ${t}\nName: ${Kt(r)}\nError:`,I)}}let Xt=null;function te(){Xt=At.onerror,At.onerror=function(t,e,n,r,s){return Zt("error",{column:r,error:s,line:n,msg:t,url:e}),!!Xt&&Xt.apply(this,arguments)},At.onerror.__SENTRY_INSTRUMENTED__=!0}let ee=null;function ne(){ee=At.onunhandledrejection,At.onunhandledrejection=function(t){return Zt("unhandledrejection",t),!ee||ee.apply(this,arguments)},At.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const re=Object.prototype.toString;function se(t){switch(re.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return me(t,Error)}}function ie(t,e){return re.call(t)===`[object ${e}]`}function oe(t){return ie(t,"ErrorEvent")}function ae(t){return ie(t,"DOMError")}function ce(t){return ie(t,"String")}function ue(t){return"object"==typeof t&&null!==t&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function de(t){return null===t||ue(t)||"object"!=typeof t&&"function"!=typeof t}function le(t){return ie(t,"Object")}function pe(t){return"object"==typeof t&&null!==t}function he(t){return"undefined"!=typeof Event&&me(t,Event)}function fe(t){return Boolean(t?.then&&"function"==typeof t.then)}function me(t,e){try{return t instanceof e}catch{return!1}}function ge(t){return"undefined"!=typeof Request&&me(t,Request)}function _e(t,e,n){if(!(e in t))return;const r=t[e];if("function"!=typeof r)return;const s=n(r);"function"==typeof s&&ve(s,r);try{t[e]=s}catch{It&&Ut.log(`Failed to replace method "${e}" in object`,t)}}function ye(t,e,n){try{Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}catch{It&&Ut.log(`Failed to add non-enumerable property "${String(e)}" to object`,t)}}function ve(t,e){try{const n=e.prototype||{};t.prototype=e.prototype=n,ye(t,"__sentry_original__",e)}catch{}}function be(t){return t.__sentry_original__}function Ee(t){if(se(t))return{message:t.message,name:t.name,stack:t.stack,...we(t)};if(he(t)){const{type:e,target:n,currentTarget:r,detail:s}=t;return{type:e,target:n,currentTarget:r,...s?{detail:s}:{},...we(t)}}return t}function we(t){return pe(t)?Object.fromEntries(Object.entries(t)):{}}let Se;function xe(t){if(void 0!==Se)return Se?Se(t):t();const e=/* @__PURE__ */Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__"),n=At;return e in n&&"function"==typeof n[e]?(Se=n[e],Se(t)):(Se=null,t())}function $e(){return xe(()=>Math.random())}function ke(){return xe(()=>Date.now())}const Ie=/* @__PURE__ */Symbol.for("sentry.skipNormalization"),Ae=/* @__PURE__ */Symbol.for("sentry.overrideNormalizationDepth");let Pe,Ce;function Oe(t,e=100,n=1/0){try{return Te("",t,e,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function Re(t,e=3,n=102400){const r=Oe(t,e);return s=r,function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(s))>n?Re(t,e-1,n):r;var s}function Te(t,e,n=1/0,r=1/0,s=function(){const t=/* @__PURE__ */new WeakSet;function e(e){return!!t.has(e)||(t.add(e),!1)}function n(e){t.delete(e)}return[e,n]}()){const[i,o]=s;if(null==e||["boolean","string"].includes(typeof e)||"number"==typeof e&&Number.isFinite(e))return e;const a=Me(t,e);if(!a.startsWith("[object "))return a;if(function(t){return Boolean(t[Ie])}(e))return e;const c=function(t){const e=t[Ae];return"number"==typeof e?e:void 0}(e),u=void 0!==c?c:n;if(0===u)return a.replace("object ","");if(i(e))return"[Circular ~]";const d=e;if(d&&"function"==typeof d.toJSON)try{return Te("",d.toJSON(),u-1,r,s)}catch{}const l=Array.isArray(e)?[]:{};let p=0;const h=Ee(e);for(const f in h){if(!Object.prototype.hasOwnProperty.call(h,f))continue;if(p>=r){l[f]="[MaxProperties ~]";break}const t=h[f];l[f]=Te(f,t,u-1,r,s),p++}return o(e),l}function Me(t,e){try{if(Pe){const t=Pe(e);if(t)return t}if("undefined"!=typeof global&&e===global)return"[Global]";if("number"==typeof e&&!Number.isFinite(e))return`[${e}]`;if("function"==typeof e)return`[Function: ${Kt(e)}]`;if("symbol"==typeof e)return`[${String(e)}]`;if("bigint"==typeof e)return`[BigInt: ${String(e)}]`;const t=function(t){const e=Object.getPrototypeOf(t);return e?.constructor?e.constructor.name:"null prototype"}(e);return`[object ${t}]`}catch(n){return`**non-serializable** (${n})`}}function De(t,e=0){return"string"!=typeof t||0===e||t.length<=e?t:`${t.slice(0,e)}...`}function Ne(t,e){if(!Array.isArray(t))return"";const n=[];for(let r=0;r<t.length;r++){const e=t[r];de(e)?n.push(String(e)):e instanceof Error?n.push(e.message?`${e.name}: ${e.message}`:e.name):n.push(Me(0,e))}return n.join(e)}function Le(t,e,n=!1){return!!ce(t)&&(ie(e,"RegExp")?e.test(t):ce(e)?n?t===e:t.includes(e):"function"==typeof e&&e(t))}function je(t,e=[],n=!1){for(const r of e)if(Le(t,r,n))return!0;return!1}function Ue(t=function(){const t=At;return t.crypto||t.msCrypto}()){try{if(t?.randomUUID)return xe(()=>t.randomUUID()).replace(/-/g,"")}catch{}return Ce||(Ce="10000000100040008000100000000000"),Ce.replace(/[018]/g,t=>(t^(16*$e()&15)>>t/4).toString(16))}function He(t){return t.exception?.values?.[0]}function ze(t){const{message:e,event_id:n}=t;if(e)return e;const r=He(t);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function We(t,e,n){const r=t.exception=t.exception||{},s=r.values=r.values||[],i=s[0]=s[0]||{};i.value||(i.value=e||""),i.type||(i.type="Error")}function Be(t,e){const n=He(t);if(!n)return;const r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...e},e&&"data"in e){const t={...r?.data,...e.data};n.mechanism.data=t}}function qe(t){if(function(t){try{return t.__sentry_captured__}catch{}}(t))return!0;try{ye(t,"__sentry_captured__",!0)}catch{}return!1}function Fe(){return ke()/1e3}let Ke;function Ve(){return(Ke??(Ke=function(){const{performance:t}=At;if(!t?.now||!t.timeOrigin)return Fe;const e=t.timeOrigin;return()=>(e+xe(()=>t.now()))/1e3}()))()}function Ye(t){const e=Ve(),n={sid:Ue(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(t){return{sid:`${t.sid}`,init:t.init,started:new Date(1e3*t.started).toISOString(),timestamp:new Date(1e3*t.timestamp).toISOString(),status:t.status,errors:t.errors,did:"number"==typeof t.did||"string"==typeof t.did?`${t.did}`:void 0,duration:t.duration,abnormal_mechanism:t.abnormal_mechanism,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}}}(n)};return t&&Qe(n,t),n}function Qe(t,e={}){if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),t.did||e.did||(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||Ve(),e.abnormal_mechanism&&(t.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=32===e.sid.length?e.sid:Ue()),void 0!==e.init&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),"number"==typeof e.started&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if("number"==typeof e.duration)t.duration=e.duration;else{const e=t.timestamp-t.started;t.duration=e>=0?e:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),"number"==typeof e.errors&&(t.errors=e.errors),e.status&&(t.status=e.status)}function Ge(t,e,n=2){if(!e||"object"!=typeof e||n<=0)return e;if(t&&0===Object.keys(e).length)return t;const r={...t};for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(r[s]=Ge(r[s],e[s],n-1));return r}function Je(){return Ue()}function Ze(){return Ue().substring(16)}function Xe(t){if(t){if("object"==typeof t&&"deref"in t&&"function"==typeof t.deref)try{return t.deref()}catch{return}return t}}const tn="_sentrySpan";function en(t,e){e?ye(t,tn,function(t){try{const e=At.WeakRef;if("function"==typeof e)return new e(t)}catch{}return t}(e)):delete t[tn]}function nn(t){return Xe(t[tn])}class rn{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:Je(),sampleRand:$e()}}clone(){const t=new rn;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._attributes={...this._attributes},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,t._conversationId=this._conversationId,en(t,nn(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&Qe(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(t){return this._conversationId=t||void 0,this._notifyScopeListeners(),this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,e){return this.setTags({[t]:e})}setAttributes(t){return this._attributes={...this._attributes,...t},this._notifyScopeListeners(),this}setAttribute(t,e){return this.setAttributes({[t]:e})}removeAttribute(t){return t in this._attributes&&(delete this._attributes[t],this._notifyScopeListeners()),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,e){return this._extra={...this._extra,[t]:e},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,e){return null===e?delete this._contexts[t]:this._contexts[t]=e,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const e="function"==typeof t?t(this):t,n=e instanceof rn?e.getScopeData():le(e)?t:void 0,{tags:r,attributes:s,extra:i,user:o,contexts:a,level:c,fingerprint:u=[],propagationContext:d,conversationId:l}=n||{};return this._tags={...this._tags,...r},this._attributes={...this._attributes,...s},this._extra={...this._extra,...i},this._contexts={...this._contexts,...a},o&&Object.keys(o).length&&(this._user=o),c&&(this._level=c),u.length&&(this._fingerprint=u),d&&(this._propagationContext=d),l&&(this._conversationId=l),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,en(this,void 0),this._attachments=[],this.setPropagationContext({traceId:Je(),sampleRand:$e()}),this._notifyScopeListeners(),this}addBreadcrumb(t,e){const n="number"==typeof e?e:100;if(n<=0)return this;const r={timestamp:Fe(),...t,message:t.message?De(t.message,2048):t.message};return this._breadcrumbs.push(r),this._breadcrumbs.length>n&&(this._breadcrumbs=this._breadcrumbs.slice(-n),this._client?.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,attributes:this._attributes,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:nn(this),conversationId:this._conversationId}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=Ge(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,e){const n=e?.event_id||Ue();if(!this._client)return It&&Ut.warn("No client configured on scope - will not capture exception!"),n;const r=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:r,...e,event_id:n},this),n}captureMessage(t,e,n){const r=n?.event_id||Ue();if(!this._client)return It&&Ut.warn("No client configured on scope - will not capture message!"),r;const s=n?.syntheticException??new Error(t);return this._client.captureMessage(t,e,{originalException:t,syntheticException:s,...n,event_id:r},this),r}captureEvent(t,e){const n=t.event_id||e?.event_id||Ue();return this._client?(this._client.captureEvent(t,{...e,event_id:n},this),n):(It&&Ut.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}const sn=t=>t instanceof Promise&&!t[on],on=/* @__PURE__ */Symbol("chained PromiseLike"),an=(t,e)=>{if(!e)return t;let n=!1;for(const r in t){if(r in e)continue;n=!0;const s=t[r];"function"==typeof s?Object.defineProperty(e,r,{value:(...e)=>s.apply(t,e),enumerable:!0,configurable:!0,writable:!0}):e[r]=s}return n&&Object.assign(e,{[on]:!0}),e};class cn{constructor(t,e){let n,r;n=t||new rn,r=e||new rn,this._stack=[{scope:n}],this._isolationScope=r}withScope(t){const e=this._pushScope();let n;try{n=t(e)}catch(I){throw this._popScope(),I}return fe(n)?((t,e,n)=>{const r=t.then(t=>(e(t),t),t=>{throw n(t),t});return sn(r)&&sn(t)?r:an(t,r)})(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 t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function un(){const t=Ot(Ct());return t.stack=t.stack||new cn(Rt("defaultCurrentScope",()=>new rn),Rt("defaultIsolationScope",()=>new rn))}function dn(t){return un().withScope(t)}function ln(t,e){const n=un();return n.withScope(()=>(n.getStackTop().scope=t,e(t)))}function pn(t){return un().withScope(()=>t(un().getIsolationScope()))}function hn(t){const e=Ot(t);return e.acs?e.acs:{withIsolationScope:pn,withScope:dn,withSetScope:ln,withSetIsolationScope:(t,e)=>pn(e),getCurrentScope:()=>un().getScope(),getIsolationScope:()=>un().getIsolationScope()}}function fn(t,e){const{value:n,unit:r}="object"==typeof(s=t)&&null!=s&&!Array.isArray(s)&&Object.keys(s).includes("value")?t:{value:t,unit:void 0};var s;const i=function(t){if(Array.isArray(t))return{value:t,type:"array"};const e="string"==typeof t?"string":"boolean"==typeof t?"boolean":"number"!=typeof t||Number.isNaN(t)?null:Number.isInteger(t)?"integer":"double";if(e)return{value:t,type:e}}(n),o=r&&"string"==typeof r?{unit:r}:{};if(i)return{...i,...o};if(!e||"skip-undefined"===e&&void 0===n)return;let a="";try{a=JSON.stringify(n)??""}catch{}return{value:a,type:"string",...o}}function mn(t,e=!1){const n={};for(const[r,s]of Object.entries(t??{})){const t=fn(s,e);t&&(n[r]=t)}return n}function gn(){return hn(Ct()).getCurrentScope()}function _n(){return hn(Ct()).getIsolationScope()}function yn(){return gn().getClient()}function vn(t){const e=t.getPropagationContext(),{traceId:n,parentSpanId:r,propagationSpanId:s}=e,i={trace_id:n,span_id:s||Ze()};return r&&(i.parent_span_id=r),i}const bn="sentry.op",En="sentry.profile_id",wn="sentry.exclusive_time";function Sn(t){const e=t;return{scope:e._sentryScope,isolationScope:Xe(e._sentryIsolationScope)}}const xn="sentry-";function $n(t){const e=function(t){if(!t||!ce(t)&&!Array.isArray(t))return;if(Array.isArray(t))return t.reduce((t,e)=>{const n=kn(e);return Object.entries(n).forEach(([e,n])=>{t[e]=n}),t},{});return kn(t)}(t);if(!e)return;const n=Object.entries(e).reduce((t,[e,n])=>{if(e.startsWith(xn)){t[e.slice(7)]=n}return t},{});return Object.keys(n).length>0?n:void 0}function kn(t){return t.split(",").map(t=>{const e=t.indexOf("=");if(-1===e)return[];return[t.slice(0,e),t.slice(e+1)].map(t=>{try{return decodeURIComponent(t.trim())}catch{return}})}).reduce((t,[e,n])=>(e&&n&&(t[e]=n),t),{})}const In=/^o(\d+)\./,An=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function Pn(t,e=!1){const{host:n,path:r,pass:s,port:i,projectId:o,protocol:a,publicKey:c}=t;return`${a}://${c}${e&&s?`:${s}`:""}@${n}${i?`:${i}`:""}/${r?`${r}/`:r}${o}`}function Cn(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function On(t){const e=t.getOptions(),{host:n}=t.getDsn()||{};let r;return e.orgId?r=String(e.orgId):n&&(r=function(t){const e=t.match(In);return e?.[1]}(n)),r}function Rn(t){const e="string"==typeof t?function(t){const e=An.exec(t);if(!e)return void Dt(()=>{console.error(`Invalid Sentry Dsn: ${t}`)});const[n,r,s="",i="",o="",a=""]=e.slice(1);let c="",u=a;const d=u.split("/");if(d.length>1&&(c=d.slice(0,-1).join("/"),u=d.pop()),u){const t=u.match(/^\d+/);t&&(u=t[0])}return Cn({host:i,pass:s,path:c,projectId:u,port:o,protocol:n,publicKey:r})}(t):Cn(t);if(e&&function(t){if(!It)return!0;const{port:e,projectId:n,protocol:r}=t;return!(["protocol","publicKey","host","projectId"].find(e=>!t[e]&&(Ut.error(`Invalid Sentry Dsn: ${e} missing`),!0))||(n.match(/^\d+$/)?function(t){return"http"===t||"https"===t}(r)?e&&isNaN(parseInt(e,10))&&(Ut.error(`Invalid Sentry Dsn: Invalid port ${e}`),1):(Ut.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),1):(Ut.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),1)))}(e))return e}let Tn=!1;function Mn(t){const{spanId:e,traceId:n,isRemote:r}=t.spanContext(),s=r?e:jn(t).parent_span_id,i=Sn(t).scope;return{parent_span_id:s,span_id:r?i?.getPropagationContext().propagationSpanId||Ze():e,trace_id:n}}function Dn(t){return t&&t.length>0?t.map(({context:{spanId:t,traceId:e,traceFlags:n,...r},attributes:s})=>({span_id:t,trace_id:e,sampled:1===n,attributes:s,...r})):void 0}function Nn(t){return"number"==typeof t?Ln(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?Ln(t.getTime()):Ve()}function Ln(t){return t>9999999999?t/1e3:t}function jn(t){if(function(t){return"function"==typeof t.getSpanJSON}(t))return t.getSpanJSON();const{spanId:e,traceId:n}=t.spanContext();if(function(t){const e=t;return!!(e.attributes&&e.startTime&&e.name&&e.endTime&&e.status)}(t)){const{attributes:r,startTime:s,name:i,endTime:o,status:a,links:c}=t;return{span_id:e,trace_id:n,data:r,description:i,parent_span_id:Un(t),start_timestamp:Nn(s),timestamp:Nn(o)||void 0,status:Hn(a),op:r[bn],origin:r["sentry.origin"],links:Dn(c)}}return{span_id:e,trace_id:n,start_timestamp:0,data:{}}}function Un(t){return"parentSpanId"in t?t.parentSpanId:"parentSpanContext"in t?t.parentSpanContext?.spanId:void 0}function Hn(t){if(t&&0!==t.code)return 1===t.code?"ok":t.message||"internal_error"}const zn=function(t){return t._sentryRootSpan||t};function Wn(){Tn||(Dt(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),Tn=!0)}function Bn(t){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const e=t||yn()?.getOptions();return!(!e||null==e.tracesSampleRate&&!e.tracesSampler)}function qn(t){Ut.log(`Ignoring span ${t.op} - ${t.description} because it matches \`ignoreSpans\`.`)}function Fn(t,e){if(!e?.length)return!1;for(const n of e){if(Yn(n)){if(t.description&&Le(t.description,n))return It&&qn(t),!0;continue}const e=!!n.attributes&&Object.keys(n.attributes).length>0;if(!n.name&&!n.op&&!e)continue;const r=!n.name||t.description&&Le(t.description,n.name),s=!n.op||t.op&&Le(t.op,n.op),i=!n.attributes||Object.entries(n.attributes).every(([e,n])=>Kn(t.attributes?.[e],n));if(r&&s&&i)return It&&qn(t),!0}return!1}function Kn(t,e){return"string"==typeof t&&("string"==typeof e||e instanceof RegExp)?Le(t,e):Array.isArray(t)&&Array.isArray(e)?t.length===e.length&&t.every((t,n)=>t===e[n]):t===e}function Vn(t,e){const n=e.parent_span_id,r=e.span_id;if(n)for(const s of t)s.parent_span_id===r&&(s.parent_span_id=n)}function Yn(t){return"string"==typeof t||t instanceof RegExp}const Qn=/* @__PURE__ */Symbol.for("sentry.nonRecordingSpan");const Gn="production";function Jn(t,e){const n=e.getOptions(),{publicKey:r}=e.getDsn()||{},s={environment:n.environment||Gn,release:n.release,public_key:r,trace_id:t,org_id:On(e)};return e.emit("createDsc",s),s}function Zn(t,e){const n=e.getPropagationContext();return n.dsc||Jn(n.traceId,t)}function Xn(t){const e=yn();if(!e)return{};const n=zn(t),r=jn(n),s=r.data,i=n.spanContext().traceState,o=i?.get("sentry.sample_rate")??s["sentry.sample_rate"]??s["sentry.previous_trace_sample_rate"];function a(t){return"number"!=typeof o&&"string"!=typeof o||(t.sample_rate=`${o}`),t}const c=n._frozenDsc;if(c)return a(c);const u=function(t){return!!t&&!0===t[Qn]}(n),d=u&&"ignored"===n.dropReason;if(u&&(!Bn(e.getOptions())||d)){const t=Sn(n).scope;if(t){const n={...Zn(e,t)};return d&&(n.sampled="false"),a(n)}}const l=i?.get("sentry.dsc"),p=l&&$n(l);if(p)return a(p);const h=Jn(t.spanContext().traceId,e),f=s["sentry.source"]??s["sentry.segment.name.source"],m=r.description;return"url"!==f&&m&&(h.transaction=m),Bn()&&(h.sampled=String(function(t){const{traceFlags:e}=t.spanContext();return 1===e}(n)),h.sample_rand=i?.get("sentry.sample_rand")??Sn(n).scope?.getPropagationContext().sampleRand.toString()),a(h),e.emit("createDsc",h,n),h}function tr(t,e=[]){return[t,e]}function er(t,e){const[n,r]=t;return[n,[...r,e]]}function nr(t,e){const n=t[1];for(const r of n){if(e(r,r[0].type))return!0}return!1}function rr(t){const e=Ot(At);return e.encodePolyfill?e.encodePolyfill(t):(new TextEncoder).encode(t)}function sr(t){const[e,n]=t;let r=JSON.stringify(e);function s(t){"string"==typeof r?r="string"==typeof t?r+t:[rr(r),t]:r.push("string"==typeof t?rr(t):t)}for(const i of n){const[t,e]=i;if(s(`\n${JSON.stringify(t)}\n`),"string"==typeof e||e instanceof Uint8Array)s(e);else{let t;try{t=JSON.stringify(e)}catch{t=JSON.stringify(Oe(e))}s(t)}}return"string"==typeof r?r:function(t){const e=t.reduce((t,e)=>t+e.length,0),n=new Uint8Array(e);let r=0;for(const s of t)n.set(s,r),r+=s.length;return n}(r)}function ir(t){const e="string"==typeof t.data?rr(t.data):t.data;return[{type:"attachment",length:e.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType},e]}const or={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 ar(t){return function(t){return t in or}(t)?or[t]:t}function cr(t){if(!t?.sdk)return;const{name:e,version:n}=t.sdk;return{name:e,version:n}}function ur(t,e,n,r){const s=cr(n),i=t.type&&"replay_event"!==t.type?t.type:"event";!function(t,e){if(!e)return t;const n=t.sdk||{};t.sdk={...n,name:n.name||e.name,version:n.version||e.version,integrations:[...t.sdk?.integrations||[],...e.integrations||[]],packages:[...t.sdk?.packages||[],...e.packages||[]],settings:t.sdk?.settings||e.settings?{...t.sdk?.settings,...e.settings}:void 0}}(t,n?.sdk);const o=function(t,e,n,r){const s=t.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:t.event_id,sent_at:new Date(ke()).toISOString(),...e&&{sdk:e},...!!n&&r&&{dsn:Pn(r)},...s&&{trace:s}}}(t,s,r,e);delete t.sdkProcessingMetadata;return tr(o,[[{type:i},t]])}function dr(t,e){const{fingerprint:n,span:r,breadcrumbs:s,sdkProcessingMetadata:i}=e;!function(t,e){const{extra:n,tags:r,user:s,contexts:i,level:o,transactionName:a}=e;Object.keys(n).length&&(t.extra={...n,...t.extra});Object.keys(r).length&&(t.tags={...r,...t.tags});Object.keys(s).length&&(t.user={...s,...t.user});Object.keys(i).length&&(t.contexts={...i,...t.contexts});o&&(t.level=o);a&&"transaction"!==t.type&&(t.transaction=a)}(t,e),r&&function(t,e){t.contexts={trace:Mn(e),...t.contexts},t.sdkProcessingMetadata={dynamicSamplingContext:Xn(e),...t.sdkProcessingMetadata};const n=zn(e),r=jn(n).description;r&&!t.transaction&&"transaction"===t.type&&(t.transaction=r)}(t,r),function(t,e){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],e&&(t.fingerprint=t.fingerprint.concat(e));t.fingerprint.length||delete t.fingerprint}(t,n),function(t,e){const n=[...t.breadcrumbs||[],...e];t.breadcrumbs=n.length?n:void 0}(t,s),function(t,e){t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...e}}(t,i)}function lr(t,e){const{extra:n,tags:r,attributes:s,user:i,contexts:o,level:a,sdkProcessingMetadata:c,breadcrumbs:u,fingerprint:d,eventProcessors:l,attachments:p,propagationContext:h,transactionName:f,span:m}=e;pr(t,"extra",n),pr(t,"tags",r),pr(t,"attributes",s),pr(t,"user",i),pr(t,"contexts",o),t.sdkProcessingMetadata=Ge(t.sdkProcessingMetadata,c,2),a&&(t.level=a),f&&(t.transactionName=f),m&&(t.span=m),u.length&&(t.breadcrumbs=[...t.breadcrumbs,...u]),d.length&&(t.fingerprint=[...t.fingerprint,...d]),l.length&&(t.eventProcessors=[...t.eventProcessors,...l]),p.length&&(t.attachments=[...t.attachments,...p]),t.propagationContext={...t.propagationContext,...h}}function pr(t,e,n){t[e]=Ge(t[e],n,1)}function hr(t,e){const n=Rt("globalScope",()=>new rn).getScopeData();return t&&lr(n,t.getScopeData()),e&&lr(n,e.getScopeData()),n}const fr="url.full";function mr(t,e){const n=t.attributes??(t.attributes={});Object.entries(e).forEach(([t,e])=>{null==e||t in n||(n[t]=e)})}function gr(t){return new yr(e=>{e(t)})}function _r(t){return new yr((e,n)=>{n(t)})}class yr{constructor(t){this._state=0,this._handlers=[],this._runExecutor(t)}then(t,e){return new yr((n,r)=>{this._handlers.push([!1,e=>{if(t)try{n(t(e))}catch(I){r(I)}else n(e)},t=>{if(e)try{n(e(t))}catch(I){r(I)}else r(t)}]),this._executeHandlers()})}catch(t){return this.then(t=>t,t)}finally(t){return new yr((e,n)=>{let r,s;return this.then(e=>{s=!1,r=e,t&&t()},e=>{s=!0,r=e,t&&t()}).then(()=>{s?n(r):e(r)})})}_executeHandlers(){if(0===this._state)return;const t=this._handlers.slice();this._handlers=[],t.forEach(t=>{t[0]||(1===this._state&&t[1](this._value),2===this._state&&t[2](this._value),t[0]=!0)})}_runExecutor(t){const e=(t,e)=>{0===this._state&&(fe(e)?e.then(n,r):(this._state=t,this._value=e,this._executeHandlers()))},n=t=>{e(1,t)},r=t=>{e(2,t)};try{t(n,r)}catch(I){r(I)}}}function vr(t,e,n,r=0){try{const s=br(e,n,t,r);return fe(s)?s:gr(s)}catch(s){return _r(s)}}function br(t,e,n,r){const s=n[r];if(!t||!s)return t;const i=s({...t},e);return It&&null===i&&Ut.log(`Event processor "${s.id||"?"}" dropped event`),fe(i)?i.then(t=>br(t,e,n,r+1)):br(i,e,n,r+1)}let Er,wr,Sr,xr;function $r(t,e,n,r,s,i){const{normalizeDepth:o=3,normalizeMaxBreadth:a=1e3}=t,c={...e,event_id:e.event_id||n.event_id||Ue(),timestamp:e.timestamp||Fe()},u=n.integrations||t.integrations.map(t=>t.name);!function(t,e){const{environment:n,release:r,dist:s,maxValueLength:i}=e;t.environment=t.environment||n||Gn,!t.release&&r&&(t.release=r);!t.dist&&s&&(t.dist=s);const o=t.request;o?.url&&i&&(o.url=De(o.url,i));i&&t.exception?.values?.forEach(t=>{t.value&&(t.value=De(t.value,i))})}(c,t),function(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}(c,u),s&&s.emit("applyFrameMetadata",e),void 0===e.type&&function(t,e){const n=function(t){const e=At._sentryDebugIds,n=At._debugIds;if(!e&&!n)return{};const r=e?Object.keys(e):[],s=n?Object.keys(n):[];if(xr&&r.length===wr&&s.length===Sr)return xr;wr=r.length,Sr=s.length,xr={},Er||(Er={});const i=(e,n)=>{for(const r of e){const e=n[r],s=Er?.[r];if(s&&xr&&e)xr[s[0]]=e,Er&&(Er[r]=[s[0],e]);else if(e){const n=t(r);for(let t=n.length-1;t>=0;t--){const s=n[t],i=s?.filename;if(i&&xr&&Er){xr[i]=e,Er[r]=[i,e];break}}}}};return e&&i(r,e),n&&i(s,n),xr}(e);t.exception?.values?.forEach(t=>{t.stacktrace?.frames?.forEach(t=>{t.filename&&(t.debug_id=n[t.filename])})})}(c,t.stackParser);const d=function(t,e){if(!e)return t;const n=t?t.clone():new rn;return n.update(e),n}(r,n.captureContext);n.mechanism&&Be(c,n.mechanism);const l=s?s.getEventProcessors():[],p=hr(i,d),h=[...n.attachments||[],...p.attachments];h.length&&(n.attachments=h),dr(c,p);const f=[...l,...p.eventProcessors];return(n.data&&!0===n.data.__sentry__?gr(c):vr(f,c,n)).then(t=>(t&&function(t){const e={};if(t.exception?.values?.forEach(t=>{t.stacktrace?.frames?.forEach(t=>{t.debug_id&&(t.abs_path?e[t.abs_path]=t.debug_id:t.filename&&(e[t.filename]=t.debug_id),delete t.debug_id)})}),0===Object.keys(e).length)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];const n=t.debug_meta.images;Object.entries(e).forEach(([t,e])=>{n.push({type:"sourcemap",code_file:t,debug_id:e})})}(t),"number"==typeof o&&o>0?function(t,e,n){if(!t)return null;const r={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(t=>({...t,...t.data&&{data:Oe(t.data,e,n)}}))},...t.user&&{user:Oe(t.user,e,n)},...t.contexts&&{contexts:Oe(t.contexts,e,n)},...t.extra&&{extra:Oe(t.extra,e,n)}};t.contexts?.trace&&r.contexts&&(r.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(r.contexts.trace.data=Oe(t.contexts.trace.data,e,n)));t.spans&&(r.spans=t.spans.map(t=>({...t,...t.data&&{data:Oe(t.data,e,n)}})));t.contexts?.flags&&r.contexts&&(r.contexts.flags=Oe(t.contexts.flags,3,n));return r}(t,o,a):t))}function kr(t){if(t)return function(t){return t instanceof rn||"function"==typeof t}(t)||function(t){return Object.keys(t).some(t=>Ir.includes(t))}(t)?{captureContext:t}:t}const Ir=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function Ar(t,e){return gn().captureException(t,kr(e))}function Pr(t,e){const n="string"==typeof e?e:void 0,r="string"!=typeof e?{captureContext:e}:void 0;return gn().captureMessage(t,n,r)}function Cr(t,e){return gn().captureEvent(t,e)}function Or(t,e){_n().setTag(t,e)}function Rr(t){const e=_n(),{user:n}=hr(e,gn()),{userAgent:r}=At.navigator||{},s=Ye({user:n,...r&&{userAgent:r},...t}),i=e.getSession();return"ok"===i?.status&&Qe(i,{status:"exited"}),Tr(),e.setSession(s),s}function Tr(){const t=_n(),e=gn().getSession()||t.getSession();e&&function(t){let e={};"ok"===t.status&&(e={status:"exited"}),Qe(t,e)}(e),Mr(),t.setSession()}function Mr(){const t=_n(),e=yn(),n=t.getSession();n&&e&&e.captureSession(n)}function Dr(t=!1){t?Tr():Mr()}function Nr(t){return"object"==typeof t&&"function"==typeof t.unref&&t.unref(),t}function Lr(t,e,n){return e||`${function(t){return`${function(t){const e=t.protocol?`${t.protocol}:`:"",n=t.port?`:${t.port}`:"";return`${e}//${t.host}${n}${t.path?`/${t.path}`:""}/api/`}(t)}${t.projectId}/envelope/`}(t)}?${function(t,e){const n={sentry_version:"7"};return t.publicKey&&(n.sentry_key=t.publicKey),e&&(n.sentry_client=`${e.name}/${e.version}`),new URLSearchParams(n).toString()}(t,n)}`}const jr=[];function Ur(t){const e=t.defaultIntegrations||[],n=t.integrations;let r;if(e.forEach(t=>{t.isDefaultInstance=!0}),Array.isArray(n))r=[...e,...n];else if("function"==typeof n){const t=n(e);r=Array.isArray(t)?t:[t]}else r=e;return function(t){const e={};return t.forEach(t=>{const{name:n}=t,r=e[n];r&&!r.isDefaultInstance&&t.isDefaultInstance||(e[n]=t)}),Object.values(e)}(r)}function Hr(t,e){for(const n of e)n?.afterAllSetup&&n.afterAllSetup(t)}function zr(t,e,n){if(n[e.name])It&&Ut.log(`Integration skipped because it was already installed: ${e.name}`);else{if(n[e.name]=e,jr.includes(e.name)||"function"!=typeof e.setupOnce||(e.setupOnce(),jr.push(e.name)),e.setup&&"function"==typeof e.setup&&e.setup(t),"function"==typeof e.preprocessEvent){const n=e.preprocessEvent.bind(e);t.on("preprocessEvent",(e,r)=>n(e,r,t))}if("function"==typeof e.processEvent){const n=e.processEvent.bind(e),r=Object.assign((e,r)=>n(e,r,t),{id:e.name});t.addEventProcessor(r)}["processSpan","processSegmentSpan"].forEach(n=>{const r=e[n];"function"==typeof r&&t.on(n,n=>r.call(e,n,t))}),It&&Ut.log(`Integration installed: ${e.name}`)}}function Wr(){return!("undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function Br(){return"undefined"!=typeof window&&(!Wr()||function(){const t=At.process;return"renderer"===t?.type}())}function qr(t,e){const n=e?"auto":"never";return[{type:"log",item_count:t.length,content_type:"application/vnd.sentry.items.log+json"},{version:2,...Br()&&{ingest_settings:{infer_ip:n,infer_user_agent:n}},items:t}]}function Fr(t,e){const n=e??function(t){return Kr().get(t)}(t)??[];if(0===n.length)return;const r=t.getOptions(),s=function(t,e,n,r,s){const i={};return e?.sdk&&(i.sdk={name:e.sdk.name,version:e.sdk.version}),n&&r&&(i.dsn=Pn(r)),tr(i,[qr(t,s)])}(n,r._metadata,r.tunnel,t.getDsn(),t.getDataCollectionOptions().userInfo);Kr().set(t,[]),t.emit("flushLogs"),t.sendEnvelope(s)}function Kr(){return Rt("clientToLogBufferMap",()=>/* @__PURE__ */new WeakMap)}function Vr(t,e){const n=e?"auto":"never";return[{type:"trace_metric",item_count:t.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{version:2,...Br()&&{ingest_settings:{infer_ip:n,infer_user_agent:n}},items:t}]}function Yr(t,e){const n=e??function(t){return Qr().get(t)}(t)??[];if(0===n.length)return;const r=t.getOptions(),s=function(t,e,n,r,s){const i={};return e?.sdk&&(i.sdk={name:e.sdk.name,version:e.sdk.version}),n&&r&&(i.dsn=Pn(r)),tr(i,[Vr(t,s)])}(n,r._metadata,r.tunnel,t.getDsn(),t.getDataCollectionOptions().userInfo);Qr().set(t,[]),t.emit("flushMetrics"),t.sendEnvelope(s)}function Qr(){return Rt("clientToMetricBufferMap",()=>/* @__PURE__ */new WeakMap)}function Gr(t){const e={trace_id:t.trace_id,span_id:t.span_id,parent_span_id:t.parent_span_id,name:t.description||"",start_timestamp:t.start_timestamp,end_timestamp:t.timestamp||t.start_timestamp,status:t.status&&"ok"!==t.status&&"cancelled"!==t.status?"error":"ok",is_segment:!1,attributes:{...t.data},links:t.links};return n=e,{...n,attributes:mn(n.attributes),links:n.links?.map(t=>({...t,attributes:mn(t.attributes)}))};var n}const Jr=/* @__PURE__ */Symbol.for("SentryBufferFullError");function Zr(t=100){const e=/* @__PURE__ */new Set;function n(t){e.delete(t)}return{get $(){return Array.from(e)},add:function(r){if(!(e.size<t))return _r(Jr);const s=r();return e.add(s),s.then(()=>n(s),()=>n(s)),s},drain:function(t){if(!e.size)return gr(!0);const n=Promise.allSettled(Array.from(e)).then(()=>!0);if(!t)return n;const r=[n,new Promise(e=>Nr(setTimeout(()=>e(!1),t)))];return Promise.race(r)}}}function Xr(t,{statusCode:e,headers:n},r=ke()){const s={...t},i=n?.["x-sentry-rate-limits"],o=n?.["retry-after"];if(i)for(const a of i.trim().split(",")){const[t,e,,,n]=a.split(":",5),i=parseInt(t,10),o=1e3*(isNaN(i)?60:i);if(e)for(const a of e.split(";"))"metric_bucket"===a&&n&&!n.split(";").includes("custom")||(s[a]=r+o);else s.all=r+o}else o?s.all=r+function(t,e=ke()){const n=parseInt(`${t}`,10);if(!isNaN(n))return 1e3*n;const r=Date.parse(`${t}`);return isNaN(r)?6e4:r-e}(o,r):429===e&&(s.all=r+6e4);return s}function ts(t,e,n=Zr(t.bufferSize||64)){let r={};return{send:function(s){const i=[];if(nr(s,(e,n)=>{const s=ar(n);!function(t,e,n=ke()){return function(t,e){return t[e]||t.all||0}(t,e)>n}(r,s)?i.push(e):t.recordDroppedEvent("ratelimit_backoff",s)}),0===i.length)return Promise.resolve({});const o=tr(s[0],i),a=e=>{!function(t,e){return nr(t,(t,n)=>e.includes(n))}(o,["client_report"])?nr(o,(n,r)=>{t.recordDroppedEvent(e,ar(r))}):It&&Ut.warn(`Dropping client report. Will not send outcomes (reason: ${e}).`)};return n.add(()=>e({body:sr(o)}).then(t=>413===t.statusCode?(It&&Ut.error("Sentry responded with status code 413. Envelope was discarded due to exceeding size limits."),a("send_error"),t):(It&&void 0!==t.statusCode&&(t.statusCode<200||t.statusCode>=300)&&Ut.warn(`Sentry responded with status code ${t.statusCode} to sent event.`),r=Xr(r,t),t),t=>{throw a("network_error"),It&&Ut.error("Encountered error running transport request:",t),t})).then(t=>t,t=>{if(t===Jr)return It&&Ut.error("Skipped sending event because buffer is full."),a("queue_overflow"),Promise.resolve({});throw t})},flush:t=>n.drain(t)}}function es(t){const e=[];t.message&&e.push(t.message);try{const n=t.exception.values[t.exception.values.length-1];n?.value&&(e.push(n.value),n.type&&e.push(`${n.type}: ${n.value}`))}catch{}return e}const ns=["forwarded","-ip","remote-","via","-user"];const rs={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 ss(t){const e=null!=t.dataCollection?rs:!0===t.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:ns},httpHeaders:{request:{deny:ns},response:{deny:ns}},httpBodies:[],urlQueryParams:{deny:ns},graphQL:{document:!0,variables:!0},genAI:{inputs:!1,outputs:!1},databaseQueryData:!1,stackFrameVariables:!0,frameContextLines:7};const n=t.dataCollection??{};return{userInfo:n.userInfo??e.userInfo,cookies:n.cookies??e.cookies,httpHeaders:{request:n.httpHeaders?.request??e.httpHeaders.request,response:n.httpHeaders?.response??e.httpHeaders.response},httpBodies:n.httpBodies??e.httpBodies,urlQueryParams:n.urlQueryParams??n.queryParams??e.urlQueryParams,graphQL:{document:n.graphQL?.document??e.graphQL.document,variables:n.graphQL?.variables??e.graphQL.variables},genAI:{inputs:n.genAI?.inputs??e.genAI.inputs,outputs:n.genAI?.outputs??e.genAI.outputs},databaseQueryData:n.databaseQueryData??e.databaseQueryData,stackFrameVariables:n.stackFrameVariables??e.stackFrameVariables,frameContextLines:n.frameContextLines??e.frameContextLines}}const is="Not capturing exception because it's already been captured.",os="Discarded session because of missing or non-string release",as=/* @__PURE__ */Symbol.for("SentryInternalError"),cs=/* @__PURE__ */Symbol.for("SentryDoNotSendEventError");function us(t){return{message:t,[as]:!0}}function ds(t){return{message:t,[cs]:!0}}function ls(t){return pe(t)&&as in t}function ps(t){return pe(t)&&cs in t}function hs(t,e,n,r,s){let i,o=0,a=!1;t.on(n,()=>{o=0,clearTimeout(i),a=!1}),t.on(e,e=>{if(o+=r(e),o>=8e5)s(t);else if(!a){const e=t.getOptions()._flushInterval??5e3;e>0&&(a=!0,i=Nr(setTimeout(()=>{s(t)},e)))}}),t.on("flush",()=>{s(t)})}class fs{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=Zr(t.transportOptions?.bufferSize??64),this._dataCollection=ss(t),t.dsn?this._dsn=Rn(t.dsn):It&&Ut.warn("No DSN provided, client will not send events."),this._dsn){const e=Lr(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:e})}this._options.enableLogs=this._options.enableLogs??this._options._experiments?.enableLogs,this._options.enableLogs&&hs(this,"afterCaptureLog","flushLogs",vs,Fr);(this._options.enableMetrics??this._options._experiments?.enableMetrics??!0)&&hs(this,"afterCaptureMetric","flushMetrics",ys,Yr)}captureException(t,e,n){const r=Ue();if(qe(t))return It&&Ut.log(is),r;const s={event_id:r,...e};return this._process(()=>this.eventFromException(t,s).then(t=>this._captureEvent(t,s,n)).then(t=>t),"error"),s.event_id}captureMessage(t,e,n,r){const s={event_id:Ue(),...n},i=ue(t)?t:String(t),o=de(t),a=o?this.eventFromMessage(i,e,s):this.eventFromException(t,s);return this._process(()=>a.then(t=>this._captureEvent(t,s,r)),o?"unknown":"error"),s.event_id}captureEvent(t,e,n){const r=Ue();if(e?.originalException&&qe(e.originalException))return It&&Ut.log(is),r;const s={event_id:r,...e},i=t.sdkProcessingMetadata||{},o=i.capturedSpanScope,a=i.capturedSpanIsolationScope,c=ms(t.type);return this._process(()=>this._captureEvent(t,s,o||n,a),c),s.event_id}captureSession(t){this.sendSession(t),Qe(t,{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(t){const e=this._transport;if(this.emit("flush"),!e)return!0;const n=await this._isClientDoneProcessing(t),r=await e.flush(t);return n&&r}async close(t){const e=await this.flush(t);return this.getOptions().enabled=!1,this.emit("close"),e}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}init(){(this._isEnabled()||this._options.integrations.some(({name:t})=>t.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(t){return this._integrations[t]}getIntegrationNames(){return Object.keys(this._integrations)}addIntegration(t){const e=this._integrations[t.name];!e&&t.beforeSetup&&t.beforeSetup(this),zr(this,t,this._integrations),e||Hr(this,[t])}sendEvent(t,e={}){this.emit("beforeSendEvent",t,e);const n=function(t,e){if("transaction"!==t.type||!t.spans?.length||!t.sdkProcessingMetadata?.hasGenAiSpans||!1===e.getOptions().streamGenAiSpans||function(t){return"stream"===t.getOptions().traceLifecycle}(e))return;const n=[],r=[];for(const i of t.spans)i.op?.startsWith("gen_ai.")?n.push(Gr(i)):r.push(i);if(0===n.length)return;t.spans=r;const s=e.getDataCollectionOptions().userInfo?"auto":"never";return[{type:"span",item_count:n.length,content_type:"application/vnd.sentry.items.span.v2+json"},{version:2,...Br()&&{ingest_settings:{infer_ip:s,infer_user_agent:s}},items:n}]}(t,this);let r=ur(t,this._dsn,this._options._metadata,this._options.tunnel);for(const s of e.attachments||[])r=er(r,ir(s));n&&(r=er(r,n)),this.sendEnvelope(r).then(e=>this.emit("afterSendEvent",t,e))}sendSession(t){const{release:e,environment:n=Gn}=this._options;if("aggregates"in t){const r=t.attrs||{};if(!r.release&&!e)return void(It&&Ut.warn(os));r.release=r.release||e,r.environment=r.environment||n,t.attrs=r}else{if(!t.release&&!e)return void(It&&Ut.warn(os));t.release=t.release||e,t.environment=t.environment||n}this.emit("beforeSendSession",t);const r=function(t,e,n,r){const s=cr(n);return tr({sent_at:new Date(ke()).toISOString(),...s&&{sdk:s},...!!r&&e&&{dsn:Pn(e)}},["aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()]])}(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(r)}recordDroppedEvent(t,e,n=1){if(this._options.sendClientReports){const r=`${t}:${e}`;It&&Ut.log(`Recording outcome: "${r}"${n>1?` (${n} times)`:""}`),this._outcomes[r]=(this._outcomes[r]||0)+n}}on(t,e){const n=this._hooks[t]=this._hooks[t]||/* @__PURE__ */new Set,r=(...t)=>e(...t);return n.add(r),()=>{n.delete(r)}}emit(t,...e){const n=this._hooks[t];n&&n.forEach(t=>t(...e))}async sendEnvelope(t){if(this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport)try{return await this._transport.send(t)}catch(e){return It&&Ut.error("Error while sending envelope:",e),{}}return It&&Ut.error("Transport disabled"),{}}registerCleanup(t){}dispose(){}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=function(t,e){const n={};return e.forEach(e=>{e?.beforeSetup&&e.beforeSetup(t)}),e.forEach(e=>{e&&zr(t,e,n)}),n}(this,t),Hr(this,t)}_updateSessionFromEvent(t,e){let n="fatal"===e.level,r=!1;const s=e.exception?.values;if(s){r=!0,n=!1;for(const t of s)if(!1===t.mechanism?.handled){n=!0;break}}const i="ok"===t.status;(i&&0===t.errors||i&&n)&&(Qe(t,{...n&&{status:"crashed"},errors:t.errors||Number(r||n)}),this.captureSession(t))}async _isClientDoneProcessing(t){let e=0;for(;!t||e<t;){if(await new Promise(t=>setTimeout(t,1)),!this._numProcessing)return!0;e++}return!1}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(t,e,n,r){const s=this.getOptions(),i=this.getIntegrationNames();return!e.integrations&&i.length&&(e.integrations=i),this.emit("preprocessEvent",t,e),t.type||r.setLastEventId(t.event_id||e.event_id),$r(s,t,e,n,this,r).then(t=>{if(null===t)return t;this.emit("postprocessEvent",t,e),t.contexts={trace:{...t.contexts?.trace,...vn(n)},...t.contexts};const r=Zn(this,n);return t.sdkProcessingMetadata={dynamicSamplingContext:r,...t.sdkProcessingMetadata},t})}_captureEvent(t,e={},n=gn(),r=_n()){return It&&gs(t)&&Ut.log(`Captured error event \`${es(t)[0]||"<unknown>"}\``),this._processEvent(t,e,n,r).then(t=>t.event_id,t=>{It&&(ps(t)?Ut.log(t.message):ls(t)?Ut.warn(t.message):Ut.warn(t))})}_processEvent(t,e,n,r){const s=this.getOptions(),{sampleRate:i}=s,o=_s(t),a=gs(t),c=`before send for type \`${t.type||"error"}\``,u=void 0===i?void 0:function(t){if("boolean"==typeof t)return Number(t);const e="string"==typeof t?parseFloat(t):t;return"number"!=typeof e||isNaN(e)||e<0||e>1?void 0:e}(i);if(a&&"number"==typeof u&&$e()>u)return this.recordDroppedEvent("sample_rate","error"),_r(ds(`Discarding event because it's not included in the random sample (sampling rate = ${i})`));const d=ms(t.type);return this._prepareEvent(t,e,n,r).then(t=>{if(null===t)throw this.recordDroppedEvent("event_processor",d),ds("An event processor returned `null`, will not send event.");if(!0===e.data?.__sentry__)return t;const n=function(t,e,n,r){const{beforeSend:s,beforeSendTransaction:i,ignoreSpans:o}=e,a=(c=e.beforeSendSpan,!(c&&"function"==typeof c&&"_streamed"in c&&c._streamed)&&e.beforeSendSpan);var c;let u=n;if(gs(u)&&s)return s(u,r);if(_s(u)){if(a||o){const e=function(t){const{trace_id:e,parent_span_id:n,span_id:r,status:s,origin:i,data:o,op:a}=t.contexts?.trace??{};return{data:o??{},description:t.transaction,op:a,parent_span_id:n,span_id:r??"",start_timestamp:t.start_timestamp??0,status:s,timestamp:t.timestamp,trace_id:e??"",origin:i,profile_id:o?.[En],exclusive_time:o?.[wn],measurements:t.measurements,is_segment:!0}}(u);if(o?.length&&Fn({description:e.description,op:e.op,attributes:e.data},o))return null;if(a){const t=a(e);t?u=Ge(n,{type:"transaction",timestamp:(d=t).timestamp,start_timestamp:d.start_timestamp,transaction:d.description,contexts:{trace:{trace_id:d.trace_id,span_id:d.span_id,parent_span_id:d.parent_span_id,op:d.op,status:d.status,origin:d.origin,data:{...d.data,...d.profile_id&&{[En]:d.profile_id},...d.exclusive_time&&{[wn]:d.exclusive_time}}}},measurements:d.measurements}):Wn()}if(u.spans){const e=[],n=u.spans;for(const t of n)if(o?.length&&Fn({description:t.description,op:t.op,attributes:t.data},o))Vn(n,t);else if(a){const n=a(t);n?e.push(n):(Wn(),e.push(t))}else e.push(t);const r=u.spans.length-e.length;r&&t.recordDroppedEvent("before_send","span",r),u.spans=e}}if(i){if(u.spans){const t=u.spans.length;u.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:t}}return i(u,r)}}var d;return u}(this,s,t,e);return function(t,e){const n=`${e} must return \`null\` or a valid event.`;if(fe(t))return t.then(t=>{if(!le(t)&&null!==t)throw us(n);return t},t=>{throw us(`${e} rejected with ${t}`)});if(!le(t)&&null!==t)throw us(n);return t}(n,c)}).then(s=>{if(null===s){if(this.recordDroppedEvent("before_send",d),o){const e=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",e)}throw ds(`${c} returned \`null\`, will not send event.`)}const i=n.getSession()||r.getSession();if(a&&i&&this._updateSessionFromEvent(i,s),o){const t=(s.sdkProcessingMetadata?.spanCountBeforeProcessing||0)-(s.spans?s.spans.length:0);t>0&&this.recordDroppedEvent("before_send","span",t)}const u=s.transaction_info;if(o&&u&&s.transaction!==t.transaction){const t="custom";s.transaction_info={...u,source:t}}return this.sendEvent(s,e),s}).then(null,t=>{if(ps(t)||ls(t))throw t;throw this.captureException(t,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:t}),us(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${t}`)})}_process(t,e){this._numProcessing++,this._promiseBuffer.add(t).then(t=>(this._numProcessing--,t),t=>(this._numProcessing--,t===Jr&&this.recordDroppedEvent("queue_overflow",e),t))}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.entries(t).map(([t,e])=>{const[n,r]=t.split(":");return{reason:n,category:r,quantity:e}})}_flushOutcomes(){It&&Ut.log("Flushing outcomes...");const t=this._clearOutcomes();if(0===t.length)return void(It&&Ut.log("No outcomes to send"));if(!this._dsn)return void(It&&Ut.log("No dsn provided, will not send outcomes"));It&&Ut.log("Sending outcomes:",t);const e=(n=t,tr((r=this._options.tunnel&&Pn(this._dsn))?{dsn:r}:{},[[{type:"client_report"},{timestamp:Fe(),discarded_events:n}]]));var n,r;this.sendEnvelope(e)}}function ms(t){return"replay_event"===t?"replay":t||"error"}function gs(t){return void 0===t.type}function _s(t){return"transaction"===t.type}function ys(t){let e=0;return t.name&&(e+=2*t.name.length),e+=8,e+bs(t.attributes)}function vs(t){let e=0;return t.message&&(e+=2*t.message.length),e+bs(t.attributes)}function bs(t){if(!t)return 0;let e=0;return Object.values(t).forEach(t=>{Array.isArray(t)?e+=t.length*Es(t[0]):de(t)?e+=Es(t):e+=100}),e}function Es(t){return"string"==typeof t?2*t.length:"number"==typeof t?8:"boolean"==typeof t?4:0}function ws(t,e){!0===e.debug&&(It?Ut.enable():Dt(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")}));gn().update(e.initialScope);const n=new t(e);return function(t){gn().setClient(t)}(n),n.init(),n}function Ss(t){if(!t)return{};const e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};const n=e[6]||"",r=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],search:n,hash:r,relative:e[5]+n+r}}function xs(t){"aggregates"in t?void 0===t.attrs?.ip_address&&(t.attrs={...t.attrs,ip_address:"{{auto}}"}):void 0===t.ipAddress&&(t.ipAddress="{{auto}}")}const $s=100;function ks(t,e){const n=yn(),r=_n();if(!n)return;const{beforeBreadcrumb:s=null,maxBreadcrumbs:i=$s}=n.getOptions();if(i<=0)return;const o={timestamp:Fe(),...t},a=s?Dt(()=>s(o,e)):o;null!==a&&(n.emit&&n.emit("beforeAddBreadcrumb",a,e),r.addBreadcrumb(a,i))}const Is=/* @__PURE__ */new WeakMap,As=()=>({name:"FunctionToString",setupOnce(){const t=Function.prototype.toString;try{Function.prototype.toString=function(...e){const n=be(this);let r;try{Is.has(yn())&&void 0!==n&&(r=n)}catch{}return t.apply(r??this,e)}}catch{}},setup(t){Is.set(t,!0)}}),Ps=[/^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$/],Cs=(t={})=>{let e;return{name:"EventFilters",setup(n){const r=n.getOptions();e=Rs(t,r)},processEvent(n,r,s){if(!e){const n=s.getOptions();e=Rs(t,n)}return function(t,e){if(t.type){if("transaction"===t.type&&function(t,e){if(!e?.length)return!1;const n=t.transaction;return!!n&&je(n,e)}(t,e.ignoreTransactions))return It&&Ut.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${ze(t)}`),!0}else{if(function(t,e){if(!e?.length)return!1;return es(t).some(t=>je(t,e))}(t,e.ignoreErrors))return It&&Ut.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${ze(t)}`),!0;if(function(t){if(!t.exception?.values?.length)return!1;return!t.message&&!t.exception.values.some(t=>t.stacktrace||t.type&&"Error"!==t.type||t.value)}(t))return It&&Ut.warn(`Event dropped due to not having an error message, error type or stacktrace.\nEvent: ${ze(t)}`),!0;if(function(t,e){if(!e?.length)return!1;const n=Ts(t);return!!n&&je(n,e)}(t,e.denyUrls))return It&&Ut.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${ze(t)}.\nUrl: ${Ts(t)}`),!0;if(!function(t,e){if(!e?.length)return!0;const n=Ts(t);return!n||je(n,e)}(t,e.allowUrls))return It&&Ut.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${ze(t)}.\nUrl: ${Ts(t)}`),!0}return!1}(n,e)?null:n}}},Os=(t={})=>({...Cs(t),name:"InboundFilters"});function Rs(t={},e={}){return{allowUrls:[...t.allowUrls||[],...e.allowUrls||[]],denyUrls:[...t.denyUrls||[],...e.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...e.ignoreErrors||[],...t.disableErrorDefaults?[]:Ps],ignoreTransactions:[...t.ignoreTransactions||[],...e.ignoreTransactions||[]]}}function Ts(t){try{const e=[...t.exception?.values??[]].reverse().find(t=>void 0===t.mechanism?.parent_id&&t.stacktrace?.frames?.length),n=e?.stacktrace?.frames;return n?function(t=[]){for(let e=t.length-1;e>=0;e--){const n=t[e];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(n):null}catch{return It&&Ut.error(`Cannot extract url for event ${ze(t)}`),null}}function Ms(t,e,n,r,s,i){if(!s.exception?.values||!i||!me(i.originalException,Error))return;const o=s.exception.values.length>0?s.exception.values[s.exception.values.length-1]:void 0;o&&(s.exception.values=Ds(t,e,r,i.originalException,n,s.exception.values,o,0))}function Ds(t,e,n,r,s,i,o,a){if(i.length>=n+1)return i;let c=[...i];if(me(r[s],Error)){Ls(o,a,r);const i=t(e,r[s]),u=c.length;js(i,s,u,a),c=Ds(t,e,n,r[s],s,[i,...c],i,u)}return Ns(r)&&r.errors.forEach((i,u)=>{if(me(i,Error)){Ls(o,a,r);const d=t(e,i),l=c.length;js(d,`errors[${u}]`,l,a),c=Ds(t,e,n,i,s,[d,...c],d,l)}}),c}function Ns(t){return Array.isArray(t.errors)}function Ls(t,e,n){t.mechanism={handled:!0,type:"auto.core.linked_errors",...Ns(n)&&{is_exception_group:!0},...t.mechanism,exception_id:e}}function js(t,e,n,r){t.mechanism={handled:!0,...t.mechanism,type:"chained",source:e,exception_id:n,parent_id:r}}function Us(t){return function(t){return se(t)&&"__sentry_fetch_url_host__"in t&&"string"==typeof t.__sentry_fetch_url_host__}(t)?`${t.message} (${t.__sentry_fetch_url_host__})`:t.message}const Hs=/* @__PURE__ */new Set([]);const zs=/* @__PURE__ */new Set;function Ws(){"console"in At&&Tt.forEach(function(t){!zs.has(t)&&t in At.console&&(zs.add(t),_e(At.console,t,function(e){return Mt[t]=e,function(...e){const n=e[0],r=Mt[t],s=Hs.size&&"string"==typeof n&&je(n,Hs);s||Zt("console",{args:e,level:t}),(!s||It&&Ut.isEnabled())&&r?.apply(At.console,e)}}))})}function Bs(t){return"warn"===t?"warning":["fatal","error","warning","log","info","debug"].includes(t)?t:"log"}const qs=()=>{let t;return{name:"Dedupe",processEvent(e){if(e.type)return e;try{if(function(t,e){if(!e)return!1;if(function(t,e){const n=t.message,r=e.message;if(!n&&!r)return!1;if(n&&!r||!n&&r)return!1;if(n!==r)return!1;if(!Ks(t,e))return!1;if(!Fs(t,e))return!1;return!0}(t,e))return!0;if(function(t,e){const n=Vs(e),r=Vs(t);if(!n||!r)return!1;if(n.type!==r.type||n.value!==r.value)return!1;if(!Ks(t,e))return!1;if(!Fs(t,e))return!1;return!0}(t,e))return!0;return!1}(e,t))return It&&Ut.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return t=e}}};function Fs(t,e){let n=Vt(t),r=Vt(e);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(r.length!==n.length)return!1;for(let s=0;s<r.length;s++){const t=r[s],e=n[s];if(t.filename!==e.filename||t.lineno!==e.lineno||t.colno!==e.colno||t.function!==e.function)return!1}return!0}function Ks(t,e){let n=t.fingerprint,r=e.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;try{return!(n.join("")!==r.join(""))}catch{return!1}}function Vs(t){return t.exception?.values?.[0]}const Ys=()=>({name:"ConversationId",setup(t){t.on("spanStart",t=>{const e=gn().getScopeData(),n=_n().getScopeData(),r=e.conversationId||n.conversationId;if(r){const{op:e,data:n,description:s}=jn(t);if(!e?.startsWith("gen_ai.")&&!n["ai.operationId"]&&!s?.startsWith("ai."))return;t.setAttribute("gen_ai.conversation.id",r)}})}});function Qs(t){return void 0===t?void 0:t>=400&&t<500?"warning":t>=500?"error":void 0}const Gs=At;function Js(t){return t&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function Zs(){if("string"==typeof EdgeRuntime)return!0;if(!function(){if(!("fetch"in Gs))return!1;try{return new Headers,new Request("data:,"),new Response,!0}catch{return!1}}())return!1;if(Js(Gs.fetch))return!0;let t=!1;const e=Gs.document;if(e&&"function"==typeof e.createElement)try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n),n.contentWindow?.fetch&&(t=Js(n.contentWindow.fetch)),e.head.removeChild(n)}catch(n){It&&Ut.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return t}function Xs(t,e){const n="fetch",r=Gt(n,t);return Jt(n,()=>function(t,e=!1){if(e&&!Zs())return;_e(At,"fetch",function(t){return function(...e){const n=new Error,{method:r,url:s}=function(t){if(0===t.length)return{method:"GET",url:""};if(2===t.length){const[e,n]=t;return{url:ei(e),method:ti(n,"method")?String(n.method).toUpperCase():ge(e)&&ti(e,"method")?String(e.method).toUpperCase():"GET"}}const e=t[0];return{url:ei(e),method:ti(e,"method")?String(e.method).toUpperCase():"GET"}}(e),i={args:e,fetchData:{method:r,url:s},startTimestamp:1e3*Ve(),virtualError:n,headers:ni(e)};return Zt("fetch",{...i}),t.apply(At,e).then(async t=>(Zt("fetch",{...i,endTimestamp:1e3*Ve(),response:t}),t),t=>{Zt("fetch",{...i,endTimestamp:1e3*Ve(),error:t}),se(t)&&void 0===t.stack&&(t.stack=n.stack,ye(t,"framesToPop",1));const e=yn(),r=e?.getOptions().enhanceFetchErrorMessages??"always";if(!1!==r&&t instanceof TypeError&&("Failed to fetch"===t.message||"Load failed"===t.message||"NetworkError when attempting to fetch resource."===t.message))try{const e=new URL(i.fetchData.url).host;"always"===r?t.message=`${t.message} (${e})`:ye(t,"__sentry_fetch_url_host__",e)}catch{}throw t})}})}(0,e)),r}function ti(t,e){return pe(t)&&!!t[e]}function ei(t){return"string"==typeof t?t:t?ti(t,"url")?t.url:t.toString?t.toString():"":""}function ni(t){const[e,n]=t;try{if("object"==typeof n&&null!==n&&"headers"in n&&n.headers)return new Headers(n.headers);if(ge(e))return new Headers(e.headers)}catch{}}const ri=At;function si(){try{return ri.document.location.href}catch{return""}}const ii=At;let oi=0;function ai(){return oi>0}function ci(t,e={}){if("function"!=typeof t)return t;try{if(Object.prototype.hasOwnProperty.call(t,"__sentry_wrapped__")){const e=t.__sentry_wrapped__;return"function"==typeof e?e:t}if(be(t))return t}catch{return t}const n=function(...n){At._sentryWrappedDepth=(At._sentryWrappedDepth||0)+1;try{const r=n.map(t=>ci(t,e));return t.apply(this,r)}catch(r){throw oi++,setTimeout(()=>{oi--}),function(...t){const e=hn(Ct());if(2===t.length){const[n,r]=t;return n?e.withSetScope(n,r):e.withScope(r)}e.withScope(t[0])}(t=>{t.addEventProcessor(t=>(e.mechanism&&(We(t,void 0),Be(t,e.mechanism)),t.extra={...t.extra,arguments:n},t)),Ar(r)}),r}finally{At._sentryWrappedDepth=(At._sentryWrappedDepth||0)-1}};try{for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e])}catch{}ve(n,t),ye(t,"__sentry_wrapped__",n);try{Object.getOwnPropertyDescriptor(n,"name").configurable&&Object.defineProperty(n,"name",{get:()=>t.name})}catch{}return n}function ui(){const t=si(),{referrer:e}=ii.document||{},{userAgent:n}=ii.navigator||{};return{url:t,headers:{...e&&{Referer:e},...n&&{"User-Agent":n}}}}function di(t,e){const n=hi(t,e),r={type:gi(e),value:_i(e)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function li(t,e,n,r){const s=yn(),i=s?.getOptions().normalizeDepth,o=(a=e,Object.values(a).find(t=>t instanceof Error));var a;const c={__serialized__:Re(e,i)};if(o)return{exception:{values:[di(t,o)]},extra:c};const u={exception:{values:[{type:he(e)?e.constructor.name:r?"UnhandledRejection":"Error",value:bi(e,{isUnhandledRejection:r})}]},extra:c};if(n){const e=hi(t,n);e.length&&(u.exception.values[0].stacktrace={frames:e})}return u}function pi(t,e){return{exception:{values:[di(t,e)]}}}function hi(t,e){const n=e.stacktrace||e.stack||"",r=function(t){if(t&&fi.test(t.message))return 1;return 0}(e),s=function(t){if("number"==typeof t.framesToPop)return t.framesToPop;return 0}(e);try{return t(n,r,s)}catch{}return[]}const fi=/Minified React error #\d+;/i;function mi(t){return"undefined"!=typeof WebAssembly&&void 0!==WebAssembly.Exception&&t instanceof WebAssembly.Exception}function gi(t){const e=t?.name;if(!e&&mi(t)){return t.message&&Array.isArray(t.message)&&2==t.message.length?t.message[0]:"WebAssembly.Exception"}return e}function _i(t){const e=t?.message;return mi(t)?Array.isArray(t.message)&&2==t.message.length?t.message[1]:"wasm exception":e?e.error&&"string"==typeof e.error.message?Us(e.error):Us(t):"No error message"}function yi(t,e,n,r,s){let i;if(oe(e)&&e.error){return pi(t,e.error)}if(ae(e)||ie(e,"DOMException")){const s=e;if("stack"in e){i=pi(t,e);const s=i.exception?.values?.[0];if(r&&n&&s&&!s.stacktrace){const e=hi(t,n);e.length&&(s.stacktrace={frames:e},Be(i,{synthetic:!0}))}}else{const e=s.name||(ae(s)?"DOMError":"DOMException"),o=s.message?`${e}: ${s.message}`:e;i=vi(t,o,n,r),We(i,o)}return"code"in s&&(i.tags={...i.tags,"DOMException.code":`${s.code}`}),i}if(se(e))return pi(t,e);if(le(e)||he(e)){return i=li(t,e,n,s),Be(i,{synthetic:!0}),i}return i=vi(t,e,n,r),We(i,`${e}`),Be(i,{synthetic:!0}),i}function vi(t,e,n,r){const s={};if(r&&n){const r=hi(t,n);r.length&&(s.exception={values:[{value:e,stacktrace:{frames:r}}]}),Be(s,{synthetic:!0})}if(ue(e)){const{__sentry_template_string__:t,__sentry_template_values__:n}=e;return s.logentry={message:t,params:n},s}return s.message=e,s}function bi(t,{isUnhandledRejection:e}){const n=function(t){const e=Object.keys(Ee(t));return e.sort(),e[0]?e.join(", "):"[object has no keys]"}(t),r=e?"promise rejection":"exception";if(oe(t))return`Event \`ErrorEvent\` captured as ${r} with message \`${t.message}\``;if(he(t)){return`Event \`${function(t){try{const e=Object.getPrototypeOf(t);return e?e.constructor.name:void 0}catch{}}(t)}\` (type=${t.type}) captured as ${r}`}return`Object captured as ${r} with keys: ${n}`}class Ei extends fs{constructor(t){const e=(n=t,{release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:ii.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...n});var n;!function(t,e,n=[e],r="npm"){const s=(t._metadata=t._metadata||{}).sdk=t._metadata.sdk||{};s.name||(s.name=`sentry.javascript.${e}`,s.packages=n.map(t=>({name:`${r}:@sentry/${t}`,version:Pt})),s.version=Pt)}(e,"browser",["browser"],ii.SENTRY_SDK_SOURCE||"npm"),super(e);const{userInfo:r}=this.getDataCollectionOptions();e._metadata?.sdk&&(e._metadata.sdk.settings={infer_ip:r?"auto":"never",...e._metadata.sdk.settings});const{sendClientReports:s}=this._options;ii.document&&ii.document.addEventListener("visibilitychange",()=>{"hidden"===ii.document.visibilityState&&(s&&this._flushOutcomes(),queueMicrotask(()=>{this.flush()}))}),r&&this.on("beforeSendSession",xs)}eventFromException(t,e){return function(t,e,n,r){const s=yi(t,e,n?.syntheticException||void 0,r);return Be(s),s.level="error",n?.event_id&&(s.event_id=n.event_id),gr(s)}(this._options.stackParser,t,e,this._options.attachStacktrace)}eventFromMessage(t,e="info",n){return function(t,e,n="info",r,s){const i=vi(t,e,r?.syntheticException||void 0,s);return i.level=n,r?.event_id&&(i.event_id=r.event_id),gr(i)}(this._options.stackParser,t,e,n,this._options.attachStacktrace)}_prepareEvent(t,e,n,r){return t.platform=t.platform||"javascript",super._prepareEvent(t,e,n,r)}}const wi="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,Si=At;function xi(t,e,n){Si.document&&Si.addEventListener(t,e,n)}function $i(t,e,n){Si.document&&Si.removeEventListener(t,e,n)}const ki={};try{"undefined"!=typeof Node&&(ki.parentNode=Object.getOwnPropertyDescriptor(Node.prototype,"parentNode").get),"undefined"!=typeof Element&&(ki.tagName=Object.getOwnPropertyDescriptor(Element.prototype,"tagName").get,ki.id=Object.getOwnPropertyDescriptor(Element.prototype,"id").get,ki.className=Object.getOwnPropertyDescriptor(Element.prototype,"className").get,ki.getAttribute=Element.prototype.getAttribute),"undefined"!=typeof HTMLElement&&(ki.dataset=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"dataset").get)}catch{}function Ii(t,e,n){const r=ki[e];if(r)try{return r.call(t,n)}catch{}const s=t[e];return"function"==typeof s?s.call(t,n):s}function Ai(t,e={}){if(!t)return"<unknown>";try{let n=t;const r=5,s=[];let i=0,o=0;const a=" > ",c=a.length;let u;const d=Array.isArray(e)?e:e.keyAttrs,l=!Array.isArray(e)&&e.maxStringLength||80;for(;n&&i++<r&&(u=Pi(n,d),!("html"===u||i>1&&o+s.length*c+u.length>=l));)s.push(u),o+=u.length,n=Ii(n,"parentNode");return s.reverse().join(a)}catch{return"<unknown>"}}function Pi(t,e){const n=[],r=Ii(t,"tagName");if(!r)return"";if("undefined"!=typeof HTMLElement&&t instanceof HTMLElement){const e=Ii(t,"dataset");if(e){if(e.sentryComponent)return e.sentryComponent;if(e.sentryElement)return e.sentryElement}}n.push(r.toLowerCase());const s=e?.length?e.filter(e=>Ii(t,"getAttribute",e)).map(e=>[e,Ii(t,"getAttribute",e)]):null;if(s?.length)s.forEach(t=>{n.push(`[${t[0]}="${t[1]}"]`)});else{const e=Ii(t,"id");e&&n.push(`#${e}`);const r=Ii(t,"className");if(r&&ce(r)){const t=r.split(/\s+/);for(const e of t)n.push(`.${e}`)}}for(const i of["aria-label","type","name","title","alt"]){const e=Ii(t,"getAttribute",i);e&&n.push(`[${i}="${e}"]`)}return n.join("")}let Ci,Oi,Ri,Ti;function Mi(){if(!Si.document)return;const t=Zt.bind(null,"dom"),e=Di(t,!0);Si.document.addEventListener("click",e,!1),Si.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach(e=>{const n=Si,r=n[e]?.prototype;r?.hasOwnProperty?.("addEventListener")&&(_e(r,"addEventListener",function(e){return function(n,r,s){if("click"===n||"keypress"==n)try{const r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},i=r[n]=r[n]||{refCount:0};if(!i.handler){const r=Di(t);i.handler=r,e.call(this,n,r,s)}i.refCount++}catch{}return e.call(this,n,r,s)}}),_e(r,"removeEventListener",function(t){return function(e,n,r){if("click"===e||"keypress"==e)try{const n=this.__sentry_instrumentation_handlers__||{},s=n[e];s&&(s.refCount--,s.refCount<=0&&(t.call(this,e,s.handler,r),s.handler=void 0,delete n[e]),0===Object.keys(n).length&&delete this.__sentry_instrumentation_handlers__)}catch{}return t.call(this,e,n,r)}}))})}function Di(t,e=!1){return n=>{if(!n||n._sentryCaptured)return;const r=function(t){try{return t.target}catch{return null}}(n);if(function(t,e){return"keypress"===t&&(!e?.tagName||"INPUT"!==e.tagName&&"TEXTAREA"!==e.tagName&&!e.isContentEditable)}(n.type,r))return;ye(n,"_sentryCaptured",!0),r&&!r._sentryId&&ye(r,"_sentryId",Ue());const s="keypress"===n.type?"input":n.type;if(!function(t){if(t.type!==Oi)return!1;try{if(!t.target||t.target._sentryId!==Ri)return!1}catch{}return!0}(n)){t({event:n,name:s,global:e}),Oi=n.type,Ri=r?r._sentryId:void 0}clearTimeout(Ci),Ci=Si.setTimeout(()=>{Ri=void 0,Oi=void 0},1e3)}}function Ni(t){const e="history";Gt(e,t),Jt(e,Li)}function Li(){function t(t){return function(...e){const n=e.length>2?e[2]:void 0;if(n){const r=Ti,s=function(t){try{return new URL(t,Si.location.origin).toString()}catch{return t}}(String(n));if(Ti=s,r===s)return t.apply(this,e);Zt("history",{from:r,to:s})}return t.apply(this,e)}}Si.addEventListener("popstate",()=>{const t=Si.location.href,e=Ti;if(Ti=t,e===t)return;Zt("history",{from:e,to:t})}),"history"in Gs&&Gs.history&&(_e(Si.history,"pushState",t),_e(Si.history,"replaceState",t))}const ji={};const Ui="__sentry_xhr_v3__";function Hi(){if(!Si.XMLHttpRequest)return;const t=XMLHttpRequest.prototype;t.open=new Proxy(t.open,{apply(t,e,n){const r=new Error,s=1e3*Ve(),i=ce(n[0])?n[0].toUpperCase():void 0,o=function(t){if(ce(t))return t;try{return t.toString()}catch{}return}(n[1]);if(!i||!o)return t.apply(e,n);e[Ui]={method:i,url:o,request_headers:{}},"POST"===i&&o.match(/sentry_key/)&&(e.__sentry_own_request__=!0);const a=()=>{const t=e[Ui];if(t&&4===e.readyState){try{t.status_code=e.status}catch{}Zt("xhr",{endTimestamp:1e3*Ve(),startTimestamp:s,xhr:e,virtualError:r}),e.removeEventListener("readystatechange",a)}};return"onreadystatechange"in e&&"function"==typeof e.onreadystatechange?e.onreadystatechange=new Proxy(e.onreadystatechange,{apply:(t,e,n)=>(a(),t.apply(e,n))}):e.addEventListener("readystatechange",a),e.setRequestHeader=new Proxy(e.setRequestHeader,{apply(t,e,n){const[r,s]=n,i=e[Ui];return i&&ce(r)&&ce(s)&&(i.request_headers[r.toLowerCase()]=s),t.apply(e,n)}}),t.apply(e,n)}}),t.send=new Proxy(t.send,{apply(t,e,n){const r=e[Ui];if(!r)return t.apply(e,n);void 0!==n[0]&&(r.body=n[0]);return Zt("xhr",{startTimestamp:1e3*Ve(),xhr:e}),t.apply(e,n)}})}function zi(t,e=function(t){const e=ji[t];if(e)return e;let n=Si[t];if(Js(n))return ji[t]=n.bind(Si);const r=Si.document;if(r&&"function"==typeof r.createElement)try{const e=r.createElement("iframe");e.hidden=!0,r.head.appendChild(e);const s=e.contentWindow;s?.[t]&&(n=s[t]),r.head.removeChild(e)}catch(I){wi&&Ut.warn(`Could not create sandbox iframe for ${t} check, bailing to window.${t}: `,I)}return n?ji[t]=n.bind(Si):n}("fetch")){let n=0,r=0;return ts(t,async function(s){const i=s.body.length;n+=i,r++;const o={body:s.body,method:"POST",referrerPolicy:"strict-origin",headers:t.headers,keepalive:n<=6e4&&r<15,...t.fetchOptions};try{const n=await e(t.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(I){throw ji["fetch"]=void 0,I}finally{n-=i,r--}},Zr(t.bufferSize||40))}const Wi="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function Bi(t,e,n,r){const s={filename:t,function:"<anonymous>"===e?Ht:e,in_app:!0};return void 0!==n&&(s.lineno=n),void 0!==r&&(s.colno=r),s}const qi=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,Fi=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Ki=/\((\S*)(?::(\d+))(?::(\d+))\)/,Vi=/at (.+?) ?\(data:(.+?),/,Yi=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Qi=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Gi=Bt(...[[30,t=>{const e=t.match(Vi);if(e)return{filename:`<data:${e[2]}>`,function:e[1]};const n=qi.exec(t);if(n){const[,t,e,r]=n;return Bi(t,Ht,+e,+r)}const r=Fi.exec(t);if(r){if(0===r[2]?.indexOf("eval")){const t=Ki.exec(r[2]);t&&(r[2]=t[1],r[3]=t[2],r[4]=t[3])}const[t,e]=Ji(r[1]||Ht,r[2]);return Bi(e,t,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}}],[50,t=>{const e=Yi.exec(t);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){const t=Qi.exec(e[3]);t&&(e[1]=e[1]||"eval",e[3]=t[1],e[4]=t[2],e[5]="")}let t=e[3],n=e[1]||Ht;return[n,t]=Ji(n,t),Bi(t,n,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}}]]),Ji=(t,e)=>{const n=-1!==t.indexOf("safari-extension"),r=-1!==t.indexOf("safari-web-extension");return n||r?[-1!==t.indexOf("@")?t.split("@")[0]:Ht,n?`safari-extension:${e}`:`safari-web-extension:${e}`]:[t,e]},Zi=1024,Xi=(t={})=>{const e={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...t};return{name:"Breadcrumbs",setup(t){var n;e.console&&function(t){const e="console",n=Gt(e,t);Jt(e,Ws)}(function(t){return function(e){if(yn()!==t)return;const n={category:"console",data:{arguments:e.args,logger:"console"},level:Bs(e.level),message:Ne(e.args," ")};if("assert"===e.level){if(!1!==e.args[0])return;n.message=`Assertion failed: ${Ne(e.args.slice(1)," ")||"console.assert"}`,n.data.arguments=e.args.slice(1)}ks(n,{input:e.args,level:e.level})}}(t)),e.dom&&(n=function(t,e){return function(n){if(yn()!==t)return;let r,s,i="object"==typeof e?e.serializeAttribute:void 0,o="object"==typeof e&&"number"==typeof e.maxStringLength?e.maxStringLength:void 0;o&&o>Zi&&(Wi&&Ut.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${o} was configured. Sentry will use 1024 instead.`),o=Zi),"string"==typeof i&&(i=[i]);try{const t=n.event,e=function(t){return!!t&&!!t.target}(t)?t.target:t;r=Ai(e,{keyAttrs:i,maxStringLength:o}),s=function(t,e=5){if(!ri.HTMLElement)return null;let n=t;for(let r=0;r<e;r++){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}(e)}catch{r="<unknown>"}if(0===r.length)return;const a={category:`ui.${n.name}`,message:r};s&&(a.data={"ui.component_name":s}),ks(a,{event:n.event,name:n.name,global:n.global})}}(t,e.dom),Gt("dom",n),Jt("dom",Mi)),e.xhr&&function(t){Gt("xhr",t),Jt("xhr",Hi)}(function(t){return function(e){if(yn()!==t)return;const{startTimestamp:n,endTimestamp:r}=e,s=e.xhr[Ui];if(!n||!r||!s)return;const{method:i,url:o,status_code:a,body:c}=s,u={method:i,url:o,status_code:a},d={xhr:e.xhr,input:c,startTimestamp:n,endTimestamp:r},l={category:"xhr",data:u,type:"http",level:Qs(a)};t.emit("beforeOutgoingRequestBreadcrumb",l,d),ks(l,d)}}(t)),e.fetch&&Xs(function(t){return function(e){if(yn()!==t)return;const{startTimestamp:n,endTimestamp:r}=e;if(r&&(!e.fetchData.url.match(/sentry_key/)||"POST"!==e.fetchData.method))if(e.error){const s={data:e.error,input:e.args,startTimestamp:n,endTimestamp:r},i={category:"fetch",data:e.fetchData,level:"error",type:"http"};t.emit("beforeOutgoingRequestBreadcrumb",i,s),ks(i,s)}else{const s=e.response,i={...e.fetchData,status_code:s?.status},o={input:e.args,response:s,startTimestamp:n,endTimestamp:r},a={category:"fetch",data:i,type:"http",level:Qs(i.status_code)};t.emit("beforeOutgoingRequestBreadcrumb",a,o),ks(a,o)}}}(t)),e.history&&Ni(function(t){return function(e){if(yn()!==t)return;let n=e.from,r=e.to;const s=Ss(ii.location.href);let i=n?Ss(n):void 0;const o=Ss(r);i?.path||(i=s),s.protocol===o.protocol&&s.host===o.host&&(r=o.relative),s.protocol===i.protocol&&s.host===i.host&&(n=i.relative),ks({category:"navigation",data:{from:n,to:r}})}}(t)),e.sentry&&t.on("beforeSendEvent",function(t){return function(e){yn()===t&&ks({category:"sentry."+("transaction"===e.type?"transaction":"event"),event_id:e.event_id,level:e.level,message:ze(e)},{event:e})}}(t))}}};const to="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(","),eo=(t={})=>{const e={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...t};return{name:"BrowserApiErrors",setupOnce(){e.setTimeout&&_e(ii,"setTimeout",no),e.setInterval&&_e(ii,"setInterval",no),e.requestAnimationFrame&&_e(ii,"requestAnimationFrame",ro),e.XMLHttpRequest&&"XMLHttpRequest"in ii&&_e(XMLHttpRequest.prototype,"send",so);const t=e.eventTarget;if(t){(Array.isArray(t)?t:to).forEach(t=>function(t,e){const n=ii,r=n[t]?.prototype;if(!r?.hasOwnProperty?.("addEventListener"))return;_e(r,"addEventListener",function(n){return function(r,s,i){try{"function"==typeof s.handleEvent&&(s.handleEvent=ci(s.handleEvent,{mechanism:{data:{handler:Kt(s),target:t},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return e.unregisterOriginalCallbacks&&function(t,e,n){t&&"object"==typeof t&&"removeEventListener"in t&&"function"==typeof t.removeEventListener&&t.removeEventListener(e,n)}(this,r,s),n.apply(this,[r,ci(s,{mechanism:{data:{handler:Kt(s),target:t},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),i])}}),_e(r,"removeEventListener",function(t){return function(e,n,r){try{if(Object.prototype.hasOwnProperty.call(n,"__sentry_wrapped__")){const s=n.__sentry_wrapped__;s&&t.call(this,e,s,r)}}catch{}return t.call(this,e,n,r)}})}(t,e))}}}};function no(t){return function(...e){const n=e[0];return e[0]=ci(n,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${Kt(t)}`}}),t.apply(this,e)}}function ro(t){return function(e){return t.apply(this,[ci(e,{mechanism:{data:{handler:Kt(t)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function so(t){return function(...e){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(t=>{t in n&&"function"==typeof n[t]&&_e(n,t,function(e){const n={mechanism:{data:{handler:Kt(e)},handled:!1,type:`auto.browser.browserapierrors.xhr.${t}`}},r=be(e);return r&&(n.mechanism.data.handler=Kt(r)),ci(e,n)})}),t.apply(this,e)}}const io=(t={})=>{const e=t.lifecycle??"route";return{name:"BrowserSession",setupOnce(){if(void 0===ii.document)return void(Wi&&Ut.warn("Using the `browserSessionIntegration` in non-browser environments is not supported."));Rr({ignoreDuration:!0});let t=!1;(t=>{const e=Si.requestIdleCallback||Si.setTimeout;"hidden"===Si.document?.visibilityState?t():(xi("visibilitychange",t=(t=>{let e=!1;return()=>{e||(t(),e=!0)}})(t),{once:!0,capture:!0}),xi("pagehide",t,{once:!0,capture:!0}),e(()=>{t(),$i("visibilitychange",t,{capture:!0}),$i("pagehide",t,{capture:!0})}))})(()=>{t||(Dr(),t=!0)});const n=_n();let r=n.getUser();n.addScopeListener(e=>{const n=e.getUser();r?.id===n?.id&&r?.ip_address===n?.ip_address||(r=n,t&&Dr())}),"route"===e&&Ni(({from:e,to:n})=>{e!==n&&(Rr({ignoreDuration:!0}),Dr(),t=!0)})}}},oo=()=>({name:"CultureContext",preprocessEvent(t){const e=ao();e&&(t.contexts={...t.contexts,culture:{...e,...t.contexts?.culture}})},processSegmentSpan(t){const e=ao();e&&mr(t,{"culture.locale":e.locale,"culture.timezone":e.timezone,"culture.calendar":e.calendar})}});function ao(){try{const t=ii.Intl;if(!t)return;const e=t.DateTimeFormat().resolvedOptions();return{locale:e.locale,timezone:e.timeZone,calendar:e.calendar}}catch{return}}const co=(t={})=>{const e={onerror:!0,onunhandledrejection:!0,...t};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(t){e.onerror&&(!function(t){!function(t){const e="error";Gt(e,t),Jt(e,te)}(e=>{const{stackParser:n,attachStacktrace:r}=lo();if(yn()!==t||ai())return;const{msg:s,url:i,line:o,column:a,error:c}=e,u=function(t,e,n,r){const s=t.exception=t.exception||{},i=s.values=s.values||[],o=i[0]=i[0]||{},a=o.stacktrace=o.stacktrace||{},c=a.frames=a.frames||[];0===c.length&&c.push({colno:r,lineno:n,filename:po(e)??si(),function:Ht,in_app:!0});return t}(yi(n,c||s,void 0,r,!1),i,o,a);u.level="error",Cr(u,{originalException:c,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})})}(t),uo("onerror")),e.onunhandledrejection&&(!function(t){!function(t){const e="unhandledrejection";Gt(e,t),Jt(e,ne)}(e=>{const{stackParser:n,attachStacktrace:r}=lo();if(yn()!==t||ai())return;const s=function(t){if(de(t))return t;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch{}return t}(e),i=de(s)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(s)}`}]}}:yi(n,s,void 0,r,!0);i.level="error",Cr(i,{originalException:s,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})})}(t),uo("onunhandledrejection"))}}};function uo(t){Wi&&Ut.log(`Global Handler attached: ${t}`)}function lo(){const t=yn();return t?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}function po(t){if(ce(t)&&0!==t.length)return t.startsWith("data:")?`<${function(t,e=!0){if(t.startsWith("data:")){const n=t.match(/^data:([^;,]+)/),r=n?n[1]:"text/plain",s=t.includes(";base64,"),i=t.indexOf(",");let o="";if(e&&-1!==i){const e=t.slice(i+1);o=e.length>10?`${e.slice(0,10)}... [truncated]`:e}return`data:${r}${s?",base64":""}${o?`,${o}`:""}`}return t}(t,!1)}>`:t}const ho=()=>({name:"HttpContext",preprocessEvent(t){if(!ii.navigator&&!ii.location&&!ii.document)return;const e=ui(),n={...e.headers,...t.request?.headers};t.request={...e,...t.request,headers:n}},processSegmentSpan(t){const e=t.attributes?.[bn];if(!ii.navigator&&!ii.location&&!ii.document)return;const n=ui();mr(t,{[fr]:"http.client"!==e?n.url:void 0,"http.request.header.user_agent":n.headers["User-Agent"],"http.request.header.referer":n.headers.Referer})}}),fo=(t={})=>{const e=t.limit||5,n=t.key||"cause";return{name:"LinkedErrors",preprocessEvent(t,r,s){Ms(di,s.getOptions().stackParser,n,e,t,r)}}},mo=/^HTML(\w*)Element$/;function go(t){if("undefined"!=typeof window&&t===window)return"[Window]";if("undefined"!=typeof document&&t===document)return"[Document]";if(function(t){if("undefined"==typeof Element)return!1;try{return t instanceof Element}catch{return!1}}(t)){const e=function(t){const e=Object.getPrototypeOf(t);return e?.constructor?e.constructor.name:"null prototype"}(t);if(mo.test(e))return`[HTMLElement: ${Ai(t)}]`}}function _o(){return!!function(){if(void 0===ii.window)return!1;const t=ii;if(t.nw)return!1;const e=t.chrome||t.browser;if(!e?.runtime?.id)return!1;const n=si();return!(ii===ii.top&&/^(?:chrome-extension|moz-extension|ms-browser-extension|safari-web-extension):\/\//.test(n))}()&&(Wi&&Dt(()=>{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 yo(t){return[Os(),As(),Ys(),eo(),Xi(),co(),fo(),qs(),ho(),oo(),io()]}function vo(t={}){const e=!t.skipBrowserExtensionCheck&&_o();let n=null==t.defaultIntegrations?yo():t.defaultIntegrations;const r={...t,enabled:!e&&t.enabled,stackParser:(s=t.stackParser||Gi,Array.isArray(s)?Bt(...s):s),integrations:Ur({integrations:t.integrations,defaultIntegrations:n}),transport:t.transport||zi};var s;return Pe=go,ws(Ei,r)}class bo{constructor(){this.initialized=!1}static initialize(t){const e=bo.getInstance();if(e.initialized)return void Or("component",t);vo({dsn:"https://98a864152051bb3d42f8e955f2ab3078@sentry.mapvx.app/6",environment:"production",release:"0.1.2"}),Or("component",t),e.initialized=!0}static getInstance(){return bo.instance||(bo.instance=new bo),bo.instance}error(t,e){Ar(t,e?{extra:e}:void 0)}info(t,e){Pr(t,{level:"info",extra:e})}warning(t,e){Pr(t,{level:"warning",extra:e})}critical(t,e){Pr(t,{level:"fatal",extra:e})}}var Eo,wo,So,xo,$o,ko,Io,Ao,Po,Co,Oo,Ro,To,Mo,Do,No=Object.defineProperty,Lo=Object.getOwnPropertyDescriptor,jo=t=>{throw TypeError(t)},Uo=(t,e,n,r)=>{for(var s,i=r>1?void 0:r?Lo(e,n):e,o=t.length-1;o>=0;o--)(s=t[o])&&(i=(r?s(e,n,i):s(i))||i);return r&&i&&No(e,n,i),i},Ho=(t,e,n)=>e.has(t)||jo("Cannot "+n),zo=(t,e,n)=>(Ho(t,e,"read from private field"),n?n.call(t):e.get(t)),Wo=(t,e,n)=>e.has(t)?jo("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),Bo=(t,e,n,r)=>(Ho(t,e,"write to private field"),e.set(t,n),n);let qo=class extends ct{constructor(){super(...arguments),this.styles=[a`
38
+ */function ft(t){return ht({...t,state:!0,attribute:!1})}const mt=()=>import("./components-BfTs1Lia.js").then(t=>t.c),gt=()=>import("./compact-floor-selector-WL6DewCc.js"),_t=async()=>{try{await import("./styles-CsR9mihk.js")}catch{}};class yt{constructor(){this.MEASUREMENT_ID="G-6XL8YD35QR",this.isInitialized=!1,this.sessionId=""}static getInstance(){return yt.instance||(yt.instance=new yt),yt.instance}generateSessionId(){return Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15)}initialize(t){if(this.isInitialized)return;yt.component=t,this.sessionId=this.generateSessionId();const e=document.createElement("script");e.async=!0,e.src=`https://www.googletagmanager.com/gtag/js?id=${this.MEASUREMENT_ID}`,document.head.appendChild(e),window.dataLayer=window.dataLayer||[];window.gtag=window.gtag||((...t)=>{window.dataLayer.push(t)}),window.gtag("js",/* @__PURE__ */new Date),window.gtag("config",this.MEASUREMENT_ID,{send_page_view:!0,groups:"mapvx"}),this.isInitialized=!0}resetSessionId(){this.sessionId=this.generateSessionId()}trackPageView(t){this.isInitialized&&window.gtag("event","page_view",{page_title:t,page_location:window.location.href,page_path:t,component:yt.component,session_id:this.sessionId,send_to:"mapvx"})}trackEvent(t,e){this.isInitialized&&window.gtag("event",t,{...e,component:yt.component,session_id:this.sessionId,send_to:"mapvx"})}trackUserTiming(t,e,n){this.isInitialized&&window.gtag("event","timing_complete",{name:e,value:n,event_category:t,component:yt.component,session_id:this.sessionId,send_to:"mapvx"})}trackException(t,e=!1){this.isInitialized&&window.gtag("event","exception",{description:t,fatal:e,component:yt.component,session_id:this.sessionId,send_to:"mapvx"})}}const vt="/mvx-tiles-sw.js",bt="/",Et="https://tiles.mapvx.com/tiles";async function wt(){if(!("serviceWorker"in navigator))return;const t=navigator.serviceWorker.ready;t&&await t.catch(()=>{})}async function St(t=vt,e="/"){if("undefined"==typeof navigator||!("serviceWorker"in navigator))return null;try{return await navigator.serviceWorker.register(t,{scope:e})}catch{return null}}function xt(t,e){if(!t?.active)return;const n=e.apiKey?.trim()??"",r=e.placeId?.trim()??"";""!==n&&""!==r&&t.active.postMessage({type:"INITIAL_TILE_LOAD",apiKey:n,placeId:r,tilesBaseUrl:e.tilesBaseUrl??Et})}function $t(t,e,n=864e5){if(!t)return()=>{};const r=window.setInterval(()=>{if(!t.active)return;const n=e.apiKey?.trim()??"",r=e.placeId?.trim()??"";""!==n&&""!==r&&t.active.postMessage({type:"REFRESH_TILES",apiKey:n,placeId:r,tilesBaseUrl:e.tilesBaseUrl??Et})},n);return()=>window.clearInterval(r)}async function kt(t){const e=await St(t.swPath,t.swScope);await wt(),xt(e,t);return{registration:e,stopPeriodicRefresh:t.enablePeriodicRefresh?$t(e,t):()=>{}}}const It="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,At=globalThis,Pt="10.68.0";function Ct(){return Ot(At),At}function Ot(t){const e=t.__SENTRY__=t.__SENTRY__||{};return e.version=e.version||Pt,e[Pt]=e[Pt]||{}}function Rt(t,e,n=At){const r=n.__SENTRY__=n.__SENTRY__||{},s=r[Pt]=r[Pt]||{};return s[t]||(s[t]=e())}const Tt=["debug","info","warn","error","log","assert","trace"],Mt={};function Dt(t){if(!("console"in At))return t();const e=At.console,n={},r=Object.keys(Mt);r.forEach(t=>{const r=Mt[t];n[t]=e[t],e[t]=r});try{return t()}finally{r.forEach(t=>{e[t]=n[t]})}}function Nt(){return jt().enabled}function Lt(t,...e){It&&Nt()&&Dt(()=>{At.console[t](`Sentry Logger [${t}]:`,...e)})}function jt(){return It?Rt("loggerSettings",()=>({enabled:!1})):{enabled:!1}}const Ut={enable:function(){jt().enabled=!0},disable:function(){jt().enabled=!1},isEnabled:Nt,log:function(...t){Lt("log",...t)},warn:function(...t){Lt("warn",...t)},error:function(...t){Lt("error",...t)}},Ht="?",zt=/\(error: (.*)\)/,Wt=/captureMessage|captureException/;function Bt(...t){const e=t.sort((t,e)=>t[0]-e[0]).map(t=>t[1]);return(t,n=0,r=0)=>{const s=[],i=t.split("\n");for(let o=n;o<i.length;o++){let t=i[o];t.length>1024&&(t=t.slice(0,1024));const n=zt.test(t)?t.replace(zt,"$1"):t;if(!n.includes("Error: ")){for(const t of e){const e=t(n);if(e){s.push(e);break}}if(s.length>=50+r)break}}return function(t){if(!t.length)return[];const e=Array.from(t);/sentryWrapped/.test(qt(e).function||"")&&e.pop();e.reverse(),Wt.test(qt(e).function||"")&&(e.pop(),Wt.test(qt(e).function||"")&&e.pop());return e.slice(0,50).map(t=>({...t,filename:t.filename||qt(e).filename,function:t.function||Ht}))}(s.slice(r))}}function qt(t){return t[t.length-1]||{}}const Ft="<anonymous>";function Kt(t){try{return t&&"function"==typeof t&&t.name||Ft}catch{return Ft}}function Vt(t){const e=t.exception;if(e){const t=[];try{return e.values.forEach(e=>{e.stacktrace.frames&&t.push(...e.stacktrace.frames)}),t}catch{return}}}const Yt={},Qt={};function Gt(t,e){return Yt[t]=Yt[t]||[],Yt[t].push(e),()=>{const n=Yt[t];if(n){const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}}function Jt(t,e){if(!Qt[t]){Qt[t]=!0;try{e()}catch(I){It&&Ut.error(`Error while instrumenting ${t}`,I)}}}function Zt(t,e){const n=t&&Yt[t];if(n)for(const r of n)try{r(e)}catch(I){It&&Ut.error(`Error while triggering instrumentation handler.\nType: ${t}\nName: ${Kt(r)}\nError:`,I)}}let Xt=null;function te(){Xt=At.onerror,At.onerror=function(t,e,n,r,s){return Zt("error",{column:r,error:s,line:n,msg:t,url:e}),!!Xt&&Xt.apply(this,arguments)},At.onerror.__SENTRY_INSTRUMENTED__=!0}let ee=null;function ne(){ee=At.onunhandledrejection,At.onunhandledrejection=function(t){return Zt("unhandledrejection",t),!ee||ee.apply(this,arguments)},At.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const re=Object.prototype.toString;function se(t){switch(re.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return me(t,Error)}}function ie(t,e){return re.call(t)===`[object ${e}]`}function oe(t){return ie(t,"ErrorEvent")}function ae(t){return ie(t,"DOMError")}function ce(t){return ie(t,"String")}function ue(t){return"object"==typeof t&&null!==t&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function de(t){return null===t||ue(t)||"object"!=typeof t&&"function"!=typeof t}function le(t){return ie(t,"Object")}function pe(t){return"object"==typeof t&&null!==t}function he(t){return"undefined"!=typeof Event&&me(t,Event)}function fe(t){return Boolean(t?.then&&"function"==typeof t.then)}function me(t,e){try{return t instanceof e}catch{return!1}}function ge(t){return"undefined"!=typeof Request&&me(t,Request)}function _e(t,e,n){if(!(e in t))return;const r=t[e];if("function"!=typeof r)return;const s=n(r);"function"==typeof s&&ve(s,r);try{t[e]=s}catch{It&&Ut.log(`Failed to replace method "${e}" in object`,t)}}function ye(t,e,n){try{Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}catch{It&&Ut.log(`Failed to add non-enumerable property "${String(e)}" to object`,t)}}function ve(t,e){try{const n=e.prototype||{};t.prototype=e.prototype=n,ye(t,"__sentry_original__",e)}catch{}}function be(t){return t.__sentry_original__}function Ee(t){if(se(t))return{message:t.message,name:t.name,stack:t.stack,...we(t)};if(he(t)){const{type:e,target:n,currentTarget:r,detail:s}=t;return{type:e,target:n,currentTarget:r,...s?{detail:s}:{},...we(t)}}return t}function we(t){return pe(t)?Object.fromEntries(Object.entries(t)):{}}let Se;function xe(t){if(void 0!==Se)return Se?Se(t):t();const e=/* @__PURE__ */Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__"),n=At;return e in n&&"function"==typeof n[e]?(Se=n[e],Se(t)):(Se=null,t())}function $e(){return xe(()=>Math.random())}function ke(){return xe(()=>Date.now())}const Ie=/* @__PURE__ */Symbol.for("sentry.skipNormalization"),Ae=/* @__PURE__ */Symbol.for("sentry.overrideNormalizationDepth");let Pe,Ce;function Oe(t,e=100,n=1/0){try{return Te("",t,e,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function Re(t,e=3,n=102400){const r=Oe(t,e);return s=r,function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(s))>n?Re(t,e-1,n):r;var s}function Te(t,e,n=1/0,r=1/0,s=function(){const t=/* @__PURE__ */new WeakSet;function e(e){return!!t.has(e)||(t.add(e),!1)}function n(e){t.delete(e)}return[e,n]}()){const[i,o]=s;if(null==e||["boolean","string"].includes(typeof e)||"number"==typeof e&&Number.isFinite(e))return e;const a=Me(t,e);if(!a.startsWith("[object "))return a;if(function(t){return Boolean(t[Ie])}(e))return e;const c=function(t){const e=t[Ae];return"number"==typeof e?e:void 0}(e),u=void 0!==c?c:n;if(0===u)return a.replace("object ","");if(i(e))return"[Circular ~]";const d=e;if(d&&"function"==typeof d.toJSON)try{return Te("",d.toJSON(),u-1,r,s)}catch{}const l=Array.isArray(e)?[]:{};let p=0;const h=Ee(e);for(const f in h){if(!Object.prototype.hasOwnProperty.call(h,f))continue;if(p>=r){l[f]="[MaxProperties ~]";break}const t=h[f];l[f]=Te(f,t,u-1,r,s),p++}return o(e),l}function Me(t,e){try{if(Pe){const t=Pe(e);if(t)return t}if("undefined"!=typeof global&&e===global)return"[Global]";if("number"==typeof e&&!Number.isFinite(e))return`[${e}]`;if("function"==typeof e)return`[Function: ${Kt(e)}]`;if("symbol"==typeof e)return`[${String(e)}]`;if("bigint"==typeof e)return`[BigInt: ${String(e)}]`;const t=function(t){const e=Object.getPrototypeOf(t);return e?.constructor?e.constructor.name:"null prototype"}(e);return`[object ${t}]`}catch(n){return`**non-serializable** (${n})`}}function De(t,e=0){return"string"!=typeof t||0===e||t.length<=e?t:`${t.slice(0,e)}...`}function Ne(t,e){if(!Array.isArray(t))return"";const n=[];for(let r=0;r<t.length;r++){const e=t[r];de(e)?n.push(String(e)):e instanceof Error?n.push(e.message?`${e.name}: ${e.message}`:e.name):n.push(Me(0,e))}return n.join(e)}function Le(t,e,n=!1){return!!ce(t)&&(ie(e,"RegExp")?e.test(t):ce(e)?n?t===e:t.includes(e):"function"==typeof e&&e(t))}function je(t,e=[],n=!1){for(const r of e)if(Le(t,r,n))return!0;return!1}function Ue(t=function(){const t=At;return t.crypto||t.msCrypto}()){try{if(t?.randomUUID)return xe(()=>t.randomUUID()).replace(/-/g,"")}catch{}return Ce||(Ce="10000000100040008000100000000000"),Ce.replace(/[018]/g,t=>(t^(16*$e()&15)>>t/4).toString(16))}function He(t){return t.exception?.values?.[0]}function ze(t){const{message:e,event_id:n}=t;if(e)return e;const r=He(t);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function We(t,e,n){const r=t.exception=t.exception||{},s=r.values=r.values||[],i=s[0]=s[0]||{};i.value||(i.value=e||""),i.type||(i.type="Error")}function Be(t,e){const n=He(t);if(!n)return;const r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...e},e&&"data"in e){const t={...r?.data,...e.data};n.mechanism.data=t}}function qe(t){if(function(t){try{return t.__sentry_captured__}catch{}}(t))return!0;try{ye(t,"__sentry_captured__",!0)}catch{}return!1}function Fe(){return ke()/1e3}let Ke;function Ve(){return(Ke??(Ke=function(){const{performance:t}=At;if(!t?.now||!t.timeOrigin)return Fe;const e=t.timeOrigin;return()=>(e+xe(()=>t.now()))/1e3}()))()}function Ye(t){const e=Ve(),n={sid:Ue(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(t){return{sid:`${t.sid}`,init:t.init,started:new Date(1e3*t.started).toISOString(),timestamp:new Date(1e3*t.timestamp).toISOString(),status:t.status,errors:t.errors,did:"number"==typeof t.did||"string"==typeof t.did?`${t.did}`:void 0,duration:t.duration,abnormal_mechanism:t.abnormal_mechanism,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}}}(n)};return t&&Qe(n,t),n}function Qe(t,e={}){if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),t.did||e.did||(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||Ve(),e.abnormal_mechanism&&(t.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=32===e.sid.length?e.sid:Ue()),void 0!==e.init&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),"number"==typeof e.started&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if("number"==typeof e.duration)t.duration=e.duration;else{const e=t.timestamp-t.started;t.duration=e>=0?e:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),"number"==typeof e.errors&&(t.errors=e.errors),e.status&&(t.status=e.status)}function Ge(t,e,n=2){if(!e||"object"!=typeof e||n<=0)return e;if(t&&0===Object.keys(e).length)return t;const r={...t};for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(r[s]=Ge(r[s],e[s],n-1));return r}function Je(){return Ue()}function Ze(){return Ue().substring(16)}function Xe(t){if(t){if("object"==typeof t&&"deref"in t&&"function"==typeof t.deref)try{return t.deref()}catch{return}return t}}const tn="_sentrySpan";function en(t,e){e?ye(t,tn,function(t){try{const e=At.WeakRef;if("function"==typeof e)return new e(t)}catch{}return t}(e)):delete t[tn]}function nn(t){return Xe(t[tn])}class rn{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:Je(),sampleRand:$e()}}clone(){const t=new rn;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._attributes={...this._attributes},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,t._conversationId=this._conversationId,en(t,nn(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&Qe(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(t){return this._conversationId=t||void 0,this._notifyScopeListeners(),this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,e){return this.setTags({[t]:e})}setAttributes(t){return this._attributes={...this._attributes,...t},this._notifyScopeListeners(),this}setAttribute(t,e){return this.setAttributes({[t]:e})}removeAttribute(t){return t in this._attributes&&(delete this._attributes[t],this._notifyScopeListeners()),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,e){return this._extra={...this._extra,[t]:e},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,e){return null===e?delete this._contexts[t]:this._contexts[t]=e,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const e="function"==typeof t?t(this):t,n=e instanceof rn?e.getScopeData():le(e)?t:void 0,{tags:r,attributes:s,extra:i,user:o,contexts:a,level:c,fingerprint:u=[],propagationContext:d,conversationId:l}=n||{};return this._tags={...this._tags,...r},this._attributes={...this._attributes,...s},this._extra={...this._extra,...i},this._contexts={...this._contexts,...a},o&&Object.keys(o).length&&(this._user=o),c&&(this._level=c),u.length&&(this._fingerprint=u),d&&(this._propagationContext=d),l&&(this._conversationId=l),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,en(this,void 0),this._attachments=[],this.setPropagationContext({traceId:Je(),sampleRand:$e()}),this._notifyScopeListeners(),this}addBreadcrumb(t,e){const n="number"==typeof e?e:100;if(n<=0)return this;const r={timestamp:Fe(),...t,message:t.message?De(t.message,2048):t.message};return this._breadcrumbs.push(r),this._breadcrumbs.length>n&&(this._breadcrumbs=this._breadcrumbs.slice(-n),this._client?.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,attributes:this._attributes,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:nn(this),conversationId:this._conversationId}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=Ge(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,e){const n=e?.event_id||Ue();if(!this._client)return It&&Ut.warn("No client configured on scope - will not capture exception!"),n;const r=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:r,...e,event_id:n},this),n}captureMessage(t,e,n){const r=n?.event_id||Ue();if(!this._client)return It&&Ut.warn("No client configured on scope - will not capture message!"),r;const s=n?.syntheticException??new Error(t);return this._client.captureMessage(t,e,{originalException:t,syntheticException:s,...n,event_id:r},this),r}captureEvent(t,e){const n=t.event_id||e?.event_id||Ue();return this._client?(this._client.captureEvent(t,{...e,event_id:n},this),n):(It&&Ut.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}const sn=t=>t instanceof Promise&&!t[on],on=/* @__PURE__ */Symbol("chained PromiseLike"),an=(t,e)=>{if(!e)return t;let n=!1;for(const r in t){if(r in e)continue;n=!0;const s=t[r];"function"==typeof s?Object.defineProperty(e,r,{value:(...e)=>s.apply(t,e),enumerable:!0,configurable:!0,writable:!0}):e[r]=s}return n&&Object.assign(e,{[on]:!0}),e};class cn{constructor(t,e){let n,r;n=t||new rn,r=e||new rn,this._stack=[{scope:n}],this._isolationScope=r}withScope(t){const e=this._pushScope();let n;try{n=t(e)}catch(I){throw this._popScope(),I}return fe(n)?((t,e,n)=>{const r=t.then(t=>(e(t),t),t=>{throw n(t),t});return sn(r)&&sn(t)?r:an(t,r)})(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 t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function un(){const t=Ot(Ct());return t.stack=t.stack||new cn(Rt("defaultCurrentScope",()=>new rn),Rt("defaultIsolationScope",()=>new rn))}function dn(t){return un().withScope(t)}function ln(t,e){const n=un();return n.withScope(()=>(n.getStackTop().scope=t,e(t)))}function pn(t){return un().withScope(()=>t(un().getIsolationScope()))}function hn(t){const e=Ot(t);return e.acs?e.acs:{withIsolationScope:pn,withScope:dn,withSetScope:ln,withSetIsolationScope:(t,e)=>pn(e),getCurrentScope:()=>un().getScope(),getIsolationScope:()=>un().getIsolationScope()}}function fn(t,e){const{value:n,unit:r}="object"==typeof(s=t)&&null!=s&&!Array.isArray(s)&&Object.keys(s).includes("value")?t:{value:t,unit:void 0};var s;const i=function(t){if(Array.isArray(t))return{value:t,type:"array"};const e="string"==typeof t?"string":"boolean"==typeof t?"boolean":"number"!=typeof t||Number.isNaN(t)?null:Number.isInteger(t)?"integer":"double";if(e)return{value:t,type:e}}(n),o=r&&"string"==typeof r?{unit:r}:{};if(i)return{...i,...o};if(!e||"skip-undefined"===e&&void 0===n)return;let a="";try{a=JSON.stringify(n)??""}catch{}return{value:a,type:"string",...o}}function mn(t,e=!1){const n={};for(const[r,s]of Object.entries(t??{})){const t=fn(s,e);t&&(n[r]=t)}return n}function gn(){return hn(Ct()).getCurrentScope()}function _n(){return hn(Ct()).getIsolationScope()}function yn(){return gn().getClient()}function vn(t){const e=t.getPropagationContext(),{traceId:n,parentSpanId:r,propagationSpanId:s}=e,i={trace_id:n,span_id:s||Ze()};return r&&(i.parent_span_id=r),i}const bn="sentry.op",En="sentry.profile_id",wn="sentry.exclusive_time";function Sn(t){const e=t;return{scope:e._sentryScope,isolationScope:Xe(e._sentryIsolationScope)}}const xn="sentry-";function $n(t){const e=function(t){if(!t||!ce(t)&&!Array.isArray(t))return;if(Array.isArray(t))return t.reduce((t,e)=>{const n=kn(e);return Object.entries(n).forEach(([e,n])=>{t[e]=n}),t},{});return kn(t)}(t);if(!e)return;const n=Object.entries(e).reduce((t,[e,n])=>{if(e.startsWith(xn)){t[e.slice(7)]=n}return t},{});return Object.keys(n).length>0?n:void 0}function kn(t){return t.split(",").map(t=>{const e=t.indexOf("=");if(-1===e)return[];return[t.slice(0,e),t.slice(e+1)].map(t=>{try{return decodeURIComponent(t.trim())}catch{return}})}).reduce((t,[e,n])=>(e&&n&&(t[e]=n),t),{})}const In=/^o(\d+)\./,An=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function Pn(t,e=!1){const{host:n,path:r,pass:s,port:i,projectId:o,protocol:a,publicKey:c}=t;return`${a}://${c}${e&&s?`:${s}`:""}@${n}${i?`:${i}`:""}/${r?`${r}/`:r}${o}`}function Cn(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function On(t){const e=t.getOptions(),{host:n}=t.getDsn()||{};let r;return e.orgId?r=String(e.orgId):n&&(r=function(t){const e=t.match(In);return e?.[1]}(n)),r}function Rn(t){const e="string"==typeof t?function(t){const e=An.exec(t);if(!e)return void Dt(()=>{console.error(`Invalid Sentry Dsn: ${t}`)});const[n,r,s="",i="",o="",a=""]=e.slice(1);let c="",u=a;const d=u.split("/");if(d.length>1&&(c=d.slice(0,-1).join("/"),u=d.pop()),u){const t=u.match(/^\d+/);t&&(u=t[0])}return Cn({host:i,pass:s,path:c,projectId:u,port:o,protocol:n,publicKey:r})}(t):Cn(t);if(e&&function(t){if(!It)return!0;const{port:e,projectId:n,protocol:r}=t;return!(["protocol","publicKey","host","projectId"].find(e=>!t[e]&&(Ut.error(`Invalid Sentry Dsn: ${e} missing`),!0))||(n.match(/^\d+$/)?function(t){return"http"===t||"https"===t}(r)?e&&isNaN(parseInt(e,10))&&(Ut.error(`Invalid Sentry Dsn: Invalid port ${e}`),1):(Ut.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),1):(Ut.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),1)))}(e))return e}let Tn=!1;function Mn(t){const{spanId:e,traceId:n,isRemote:r}=t.spanContext(),s=r?e:jn(t).parent_span_id,i=Sn(t).scope;return{parent_span_id:s,span_id:r?i?.getPropagationContext().propagationSpanId||Ze():e,trace_id:n}}function Dn(t){return t&&t.length>0?t.map(({context:{spanId:t,traceId:e,traceFlags:n,...r},attributes:s})=>({span_id:t,trace_id:e,sampled:1===n,attributes:s,...r})):void 0}function Nn(t){return"number"==typeof t?Ln(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?Ln(t.getTime()):Ve()}function Ln(t){return t>9999999999?t/1e3:t}function jn(t){if(function(t){return"function"==typeof t.getSpanJSON}(t))return t.getSpanJSON();const{spanId:e,traceId:n}=t.spanContext();if(function(t){const e=t;return!!(e.attributes&&e.startTime&&e.name&&e.endTime&&e.status)}(t)){const{attributes:r,startTime:s,name:i,endTime:o,status:a,links:c}=t;return{span_id:e,trace_id:n,data:r,description:i,parent_span_id:Un(t),start_timestamp:Nn(s),timestamp:Nn(o)||void 0,status:Hn(a),op:r[bn],origin:r["sentry.origin"],links:Dn(c)}}return{span_id:e,trace_id:n,start_timestamp:0,data:{}}}function Un(t){return"parentSpanId"in t?t.parentSpanId:"parentSpanContext"in t?t.parentSpanContext?.spanId:void 0}function Hn(t){if(t&&0!==t.code)return 1===t.code?"ok":t.message||"internal_error"}const zn=function(t){return t._sentryRootSpan||t};function Wn(){Tn||(Dt(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),Tn=!0)}function Bn(t){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const e=t||yn()?.getOptions();return!(!e||null==e.tracesSampleRate&&!e.tracesSampler)}function qn(t){Ut.log(`Ignoring span ${t.op} - ${t.description} because it matches \`ignoreSpans\`.`)}function Fn(t,e){if(!e?.length)return!1;for(const n of e){if(Yn(n)){if(t.description&&Le(t.description,n))return It&&qn(t),!0;continue}const e=!!n.attributes&&Object.keys(n.attributes).length>0;if(!n.name&&!n.op&&!e)continue;const r=!n.name||t.description&&Le(t.description,n.name),s=!n.op||t.op&&Le(t.op,n.op),i=!n.attributes||Object.entries(n.attributes).every(([e,n])=>Kn(t.attributes?.[e],n));if(r&&s&&i)return It&&qn(t),!0}return!1}function Kn(t,e){return"string"==typeof t&&("string"==typeof e||e instanceof RegExp)?Le(t,e):Array.isArray(t)&&Array.isArray(e)?t.length===e.length&&t.every((t,n)=>t===e[n]):t===e}function Vn(t,e){const n=e.parent_span_id,r=e.span_id;if(n)for(const s of t)s.parent_span_id===r&&(s.parent_span_id=n)}function Yn(t){return"string"==typeof t||t instanceof RegExp}const Qn=/* @__PURE__ */Symbol.for("sentry.nonRecordingSpan");const Gn="production";function Jn(t,e){const n=e.getOptions(),{publicKey:r}=e.getDsn()||{},s={environment:n.environment||Gn,release:n.release,public_key:r,trace_id:t,org_id:On(e)};return e.emit("createDsc",s),s}function Zn(t,e){const n=e.getPropagationContext();return n.dsc||Jn(n.traceId,t)}function Xn(t){const e=yn();if(!e)return{};const n=zn(t),r=jn(n),s=r.data,i=n.spanContext().traceState,o=i?.get("sentry.sample_rate")??s["sentry.sample_rate"]??s["sentry.previous_trace_sample_rate"];function a(t){return"number"!=typeof o&&"string"!=typeof o||(t.sample_rate=`${o}`),t}const c=n._frozenDsc;if(c)return a(c);const u=function(t){return!!t&&!0===t[Qn]}(n),d=u&&"ignored"===n.dropReason;if(u&&(!Bn(e.getOptions())||d)){const t=Sn(n).scope;if(t){const n={...Zn(e,t)};return d&&(n.sampled="false"),a(n)}}const l=i?.get("sentry.dsc"),p=l&&$n(l);if(p)return a(p);const h=Jn(t.spanContext().traceId,e),f=s["sentry.source"]??s["sentry.segment.name.source"],m=r.description;return"url"!==f&&m&&(h.transaction=m),Bn()&&(h.sampled=String(function(t){const{traceFlags:e}=t.spanContext();return 1===e}(n)),h.sample_rand=i?.get("sentry.sample_rand")??Sn(n).scope?.getPropagationContext().sampleRand.toString()),a(h),e.emit("createDsc",h,n),h}function tr(t,e=[]){return[t,e]}function er(t,e){const[n,r]=t;return[n,[...r,e]]}function nr(t,e){const n=t[1];for(const r of n){if(e(r,r[0].type))return!0}return!1}function rr(t){const e=Ot(At);return e.encodePolyfill?e.encodePolyfill(t):(new TextEncoder).encode(t)}function sr(t){const[e,n]=t;let r=JSON.stringify(e);function s(t){"string"==typeof r?r="string"==typeof t?r+t:[rr(r),t]:r.push("string"==typeof t?rr(t):t)}for(const i of n){const[t,e]=i;if(s(`\n${JSON.stringify(t)}\n`),"string"==typeof e||e instanceof Uint8Array)s(e);else{let t;try{t=JSON.stringify(e)}catch{t=JSON.stringify(Oe(e))}s(t)}}return"string"==typeof r?r:function(t){const e=t.reduce((t,e)=>t+e.length,0),n=new Uint8Array(e);let r=0;for(const s of t)n.set(s,r),r+=s.length;return n}(r)}function ir(t){const e="string"==typeof t.data?rr(t.data):t.data;return[{type:"attachment",length:e.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType},e]}const or={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 ar(t){return function(t){return t in or}(t)?or[t]:t}function cr(t){if(!t?.sdk)return;const{name:e,version:n}=t.sdk;return{name:e,version:n}}function ur(t,e,n,r){const s=cr(n),i=t.type&&"replay_event"!==t.type?t.type:"event";!function(t,e){if(!e)return t;const n=t.sdk||{};t.sdk={...n,name:n.name||e.name,version:n.version||e.version,integrations:[...t.sdk?.integrations||[],...e.integrations||[]],packages:[...t.sdk?.packages||[],...e.packages||[]],settings:t.sdk?.settings||e.settings?{...t.sdk?.settings,...e.settings}:void 0}}(t,n?.sdk);const o=function(t,e,n,r){const s=t.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:t.event_id,sent_at:new Date(ke()).toISOString(),...e&&{sdk:e},...!!n&&r&&{dsn:Pn(r)},...s&&{trace:s}}}(t,s,r,e);delete t.sdkProcessingMetadata;return tr(o,[[{type:i},t]])}function dr(t,e){const{fingerprint:n,span:r,breadcrumbs:s,sdkProcessingMetadata:i}=e;!function(t,e){const{extra:n,tags:r,user:s,contexts:i,level:o,transactionName:a}=e;Object.keys(n).length&&(t.extra={...n,...t.extra});Object.keys(r).length&&(t.tags={...r,...t.tags});Object.keys(s).length&&(t.user={...s,...t.user});Object.keys(i).length&&(t.contexts={...i,...t.contexts});o&&(t.level=o);a&&"transaction"!==t.type&&(t.transaction=a)}(t,e),r&&function(t,e){t.contexts={trace:Mn(e),...t.contexts},t.sdkProcessingMetadata={dynamicSamplingContext:Xn(e),...t.sdkProcessingMetadata};const n=zn(e),r=jn(n).description;r&&!t.transaction&&"transaction"===t.type&&(t.transaction=r)}(t,r),function(t,e){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],e&&(t.fingerprint=t.fingerprint.concat(e));t.fingerprint.length||delete t.fingerprint}(t,n),function(t,e){const n=[...t.breadcrumbs||[],...e];t.breadcrumbs=n.length?n:void 0}(t,s),function(t,e){t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...e}}(t,i)}function lr(t,e){const{extra:n,tags:r,attributes:s,user:i,contexts:o,level:a,sdkProcessingMetadata:c,breadcrumbs:u,fingerprint:d,eventProcessors:l,attachments:p,propagationContext:h,transactionName:f,span:m}=e;pr(t,"extra",n),pr(t,"tags",r),pr(t,"attributes",s),pr(t,"user",i),pr(t,"contexts",o),t.sdkProcessingMetadata=Ge(t.sdkProcessingMetadata,c,2),a&&(t.level=a),f&&(t.transactionName=f),m&&(t.span=m),u.length&&(t.breadcrumbs=[...t.breadcrumbs,...u]),d.length&&(t.fingerprint=[...t.fingerprint,...d]),l.length&&(t.eventProcessors=[...t.eventProcessors,...l]),p.length&&(t.attachments=[...t.attachments,...p]),t.propagationContext={...t.propagationContext,...h}}function pr(t,e,n){t[e]=Ge(t[e],n,1)}function hr(t,e){const n=Rt("globalScope",()=>new rn).getScopeData();return t&&lr(n,t.getScopeData()),e&&lr(n,e.getScopeData()),n}const fr="url.full";function mr(t,e){const n=t.attributes??(t.attributes={});Object.entries(e).forEach(([t,e])=>{null==e||t in n||(n[t]=e)})}function gr(t){return new yr(e=>{e(t)})}function _r(t){return new yr((e,n)=>{n(t)})}class yr{constructor(t){this._state=0,this._handlers=[],this._runExecutor(t)}then(t,e){return new yr((n,r)=>{this._handlers.push([!1,e=>{if(t)try{n(t(e))}catch(I){r(I)}else n(e)},t=>{if(e)try{n(e(t))}catch(I){r(I)}else r(t)}]),this._executeHandlers()})}catch(t){return this.then(t=>t,t)}finally(t){return new yr((e,n)=>{let r,s;return this.then(e=>{s=!1,r=e,t&&t()},e=>{s=!0,r=e,t&&t()}).then(()=>{s?n(r):e(r)})})}_executeHandlers(){if(0===this._state)return;const t=this._handlers.slice();this._handlers=[],t.forEach(t=>{t[0]||(1===this._state&&t[1](this._value),2===this._state&&t[2](this._value),t[0]=!0)})}_runExecutor(t){const e=(t,e)=>{0===this._state&&(fe(e)?e.then(n,r):(this._state=t,this._value=e,this._executeHandlers()))},n=t=>{e(1,t)},r=t=>{e(2,t)};try{t(n,r)}catch(I){r(I)}}}function vr(t,e,n,r=0){try{const s=br(e,n,t,r);return fe(s)?s:gr(s)}catch(s){return _r(s)}}function br(t,e,n,r){const s=n[r];if(!t||!s)return t;const i=s({...t},e);return It&&null===i&&Ut.log(`Event processor "${s.id||"?"}" dropped event`),fe(i)?i.then(t=>br(t,e,n,r+1)):br(i,e,n,r+1)}let Er,wr,Sr,xr;function $r(t,e,n,r,s,i){const{normalizeDepth:o=3,normalizeMaxBreadth:a=1e3}=t,c={...e,event_id:e.event_id||n.event_id||Ue(),timestamp:e.timestamp||Fe()},u=n.integrations||t.integrations.map(t=>t.name);!function(t,e){const{environment:n,release:r,dist:s,maxValueLength:i}=e;t.environment=t.environment||n||Gn,!t.release&&r&&(t.release=r);!t.dist&&s&&(t.dist=s);const o=t.request;o?.url&&i&&(o.url=De(o.url,i));i&&t.exception?.values?.forEach(t=>{t.value&&(t.value=De(t.value,i))})}(c,t),function(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}(c,u),s&&s.emit("applyFrameMetadata",e),void 0===e.type&&function(t,e){const n=function(t){const e=At._sentryDebugIds,n=At._debugIds;if(!e&&!n)return{};const r=e?Object.keys(e):[],s=n?Object.keys(n):[];if(xr&&r.length===wr&&s.length===Sr)return xr;wr=r.length,Sr=s.length,xr={},Er||(Er={});const i=(e,n)=>{for(const r of e){const e=n[r],s=Er?.[r];if(s&&xr&&e)xr[s[0]]=e,Er&&(Er[r]=[s[0],e]);else if(e){const n=t(r);for(let t=n.length-1;t>=0;t--){const s=n[t],i=s?.filename;if(i&&xr&&Er){xr[i]=e,Er[r]=[i,e];break}}}}};return e&&i(r,e),n&&i(s,n),xr}(e);t.exception?.values?.forEach(t=>{t.stacktrace?.frames?.forEach(t=>{t.filename&&(t.debug_id=n[t.filename])})})}(c,t.stackParser);const d=function(t,e){if(!e)return t;const n=t?t.clone():new rn;return n.update(e),n}(r,n.captureContext);n.mechanism&&Be(c,n.mechanism);const l=s?s.getEventProcessors():[],p=hr(i,d),h=[...n.attachments||[],...p.attachments];h.length&&(n.attachments=h),dr(c,p);const f=[...l,...p.eventProcessors];return(n.data&&!0===n.data.__sentry__?gr(c):vr(f,c,n)).then(t=>(t&&function(t){const e={};if(t.exception?.values?.forEach(t=>{t.stacktrace?.frames?.forEach(t=>{t.debug_id&&(t.abs_path?e[t.abs_path]=t.debug_id:t.filename&&(e[t.filename]=t.debug_id),delete t.debug_id)})}),0===Object.keys(e).length)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];const n=t.debug_meta.images;Object.entries(e).forEach(([t,e])=>{n.push({type:"sourcemap",code_file:t,debug_id:e})})}(t),"number"==typeof o&&o>0?function(t,e,n){if(!t)return null;const r={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(t=>({...t,...t.data&&{data:Oe(t.data,e,n)}}))},...t.user&&{user:Oe(t.user,e,n)},...t.contexts&&{contexts:Oe(t.contexts,e,n)},...t.extra&&{extra:Oe(t.extra,e,n)}};t.contexts?.trace&&r.contexts&&(r.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(r.contexts.trace.data=Oe(t.contexts.trace.data,e,n)));t.spans&&(r.spans=t.spans.map(t=>({...t,...t.data&&{data:Oe(t.data,e,n)}})));t.contexts?.flags&&r.contexts&&(r.contexts.flags=Oe(t.contexts.flags,3,n));return r}(t,o,a):t))}function kr(t){if(t)return function(t){return t instanceof rn||"function"==typeof t}(t)||function(t){return Object.keys(t).some(t=>Ir.includes(t))}(t)?{captureContext:t}:t}const Ir=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function Ar(t,e){return gn().captureException(t,kr(e))}function Pr(t,e){const n="string"==typeof e?e:void 0,r="string"!=typeof e?{captureContext:e}:void 0;return gn().captureMessage(t,n,r)}function Cr(t,e){return gn().captureEvent(t,e)}function Or(t,e){_n().setTag(t,e)}function Rr(t){const e=_n(),{user:n}=hr(e,gn()),{userAgent:r}=At.navigator||{},s=Ye({user:n,...r&&{userAgent:r},...t}),i=e.getSession();return"ok"===i?.status&&Qe(i,{status:"exited"}),Tr(),e.setSession(s),s}function Tr(){const t=_n(),e=gn().getSession()||t.getSession();e&&function(t){let e={};"ok"===t.status&&(e={status:"exited"}),Qe(t,e)}(e),Mr(),t.setSession()}function Mr(){const t=_n(),e=yn(),n=t.getSession();n&&e&&e.captureSession(n)}function Dr(t=!1){t?Tr():Mr()}function Nr(t){return"object"==typeof t&&"function"==typeof t.unref&&t.unref(),t}function Lr(t,e,n){return e||`${function(t){return`${function(t){const e=t.protocol?`${t.protocol}:`:"",n=t.port?`:${t.port}`:"";return`${e}//${t.host}${n}${t.path?`/${t.path}`:""}/api/`}(t)}${t.projectId}/envelope/`}(t)}?${function(t,e){const n={sentry_version:"7"};return t.publicKey&&(n.sentry_key=t.publicKey),e&&(n.sentry_client=`${e.name}/${e.version}`),new URLSearchParams(n).toString()}(t,n)}`}const jr=[];function Ur(t){const e=t.defaultIntegrations||[],n=t.integrations;let r;if(e.forEach(t=>{t.isDefaultInstance=!0}),Array.isArray(n))r=[...e,...n];else if("function"==typeof n){const t=n(e);r=Array.isArray(t)?t:[t]}else r=e;return function(t){const e={};return t.forEach(t=>{const{name:n}=t,r=e[n];r&&!r.isDefaultInstance&&t.isDefaultInstance||(e[n]=t)}),Object.values(e)}(r)}function Hr(t,e){for(const n of e)n?.afterAllSetup&&n.afterAllSetup(t)}function zr(t,e,n){if(n[e.name])It&&Ut.log(`Integration skipped because it was already installed: ${e.name}`);else{if(n[e.name]=e,jr.includes(e.name)||"function"!=typeof e.setupOnce||(e.setupOnce(),jr.push(e.name)),e.setup&&"function"==typeof e.setup&&e.setup(t),"function"==typeof e.preprocessEvent){const n=e.preprocessEvent.bind(e);t.on("preprocessEvent",(e,r)=>n(e,r,t))}if("function"==typeof e.processEvent){const n=e.processEvent.bind(e),r=Object.assign((e,r)=>n(e,r,t),{id:e.name});t.addEventProcessor(r)}["processSpan","processSegmentSpan"].forEach(n=>{const r=e[n];"function"==typeof r&&t.on(n,n=>r.call(e,n,t))}),It&&Ut.log(`Integration installed: ${e.name}`)}}function Wr(){return!("undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function Br(){return"undefined"!=typeof window&&(!Wr()||function(){const t=At.process;return"renderer"===t?.type}())}function qr(t,e){const n=e?"auto":"never";return[{type:"log",item_count:t.length,content_type:"application/vnd.sentry.items.log+json"},{version:2,...Br()&&{ingest_settings:{infer_ip:n,infer_user_agent:n}},items:t}]}function Fr(t,e){const n=e??function(t){return Kr().get(t)}(t)??[];if(0===n.length)return;const r=t.getOptions(),s=function(t,e,n,r,s){const i={};return e?.sdk&&(i.sdk={name:e.sdk.name,version:e.sdk.version}),n&&r&&(i.dsn=Pn(r)),tr(i,[qr(t,s)])}(n,r._metadata,r.tunnel,t.getDsn(),t.getDataCollectionOptions().userInfo);Kr().set(t,[]),t.emit("flushLogs"),t.sendEnvelope(s)}function Kr(){return Rt("clientToLogBufferMap",()=>/* @__PURE__ */new WeakMap)}function Vr(t,e){const n=e?"auto":"never";return[{type:"trace_metric",item_count:t.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{version:2,...Br()&&{ingest_settings:{infer_ip:n,infer_user_agent:n}},items:t}]}function Yr(t,e){const n=e??function(t){return Qr().get(t)}(t)??[];if(0===n.length)return;const r=t.getOptions(),s=function(t,e,n,r,s){const i={};return e?.sdk&&(i.sdk={name:e.sdk.name,version:e.sdk.version}),n&&r&&(i.dsn=Pn(r)),tr(i,[Vr(t,s)])}(n,r._metadata,r.tunnel,t.getDsn(),t.getDataCollectionOptions().userInfo);Qr().set(t,[]),t.emit("flushMetrics"),t.sendEnvelope(s)}function Qr(){return Rt("clientToMetricBufferMap",()=>/* @__PURE__ */new WeakMap)}function Gr(t){const e={trace_id:t.trace_id,span_id:t.span_id,parent_span_id:t.parent_span_id,name:t.description||"",start_timestamp:t.start_timestamp,end_timestamp:t.timestamp||t.start_timestamp,status:t.status&&"ok"!==t.status&&"cancelled"!==t.status?"error":"ok",is_segment:!1,attributes:{...t.data},links:t.links};return n=e,{...n,attributes:mn(n.attributes),links:n.links?.map(t=>({...t,attributes:mn(t.attributes)}))};var n}const Jr=/* @__PURE__ */Symbol.for("SentryBufferFullError");function Zr(t=100){const e=/* @__PURE__ */new Set;function n(t){e.delete(t)}return{get $(){return Array.from(e)},add:function(r){if(!(e.size<t))return _r(Jr);const s=r();return e.add(s),s.then(()=>n(s),()=>n(s)),s},drain:function(t){if(!e.size)return gr(!0);const n=Promise.allSettled(Array.from(e)).then(()=>!0);if(!t)return n;const r=[n,new Promise(e=>Nr(setTimeout(()=>e(!1),t)))];return Promise.race(r)}}}function Xr(t,{statusCode:e,headers:n},r=ke()){const s={...t},i=n?.["x-sentry-rate-limits"],o=n?.["retry-after"];if(i)for(const a of i.trim().split(",")){const[t,e,,,n]=a.split(":",5),i=parseInt(t,10),o=1e3*(isNaN(i)?60:i);if(e)for(const a of e.split(";"))"metric_bucket"===a&&n&&!n.split(";").includes("custom")||(s[a]=r+o);else s.all=r+o}else o?s.all=r+function(t,e=ke()){const n=parseInt(`${t}`,10);if(!isNaN(n))return 1e3*n;const r=Date.parse(`${t}`);return isNaN(r)?6e4:r-e}(o,r):429===e&&(s.all=r+6e4);return s}function ts(t,e,n=Zr(t.bufferSize||64)){let r={};return{send:function(s){const i=[];if(nr(s,(e,n)=>{const s=ar(n);!function(t,e,n=ke()){return function(t,e){return t[e]||t.all||0}(t,e)>n}(r,s)?i.push(e):t.recordDroppedEvent("ratelimit_backoff",s)}),0===i.length)return Promise.resolve({});const o=tr(s[0],i),a=e=>{!function(t,e){return nr(t,(t,n)=>e.includes(n))}(o,["client_report"])?nr(o,(n,r)=>{t.recordDroppedEvent(e,ar(r))}):It&&Ut.warn(`Dropping client report. Will not send outcomes (reason: ${e}).`)};return n.add(()=>e({body:sr(o)}).then(t=>413===t.statusCode?(It&&Ut.error("Sentry responded with status code 413. Envelope was discarded due to exceeding size limits."),a("send_error"),t):(It&&void 0!==t.statusCode&&(t.statusCode<200||t.statusCode>=300)&&Ut.warn(`Sentry responded with status code ${t.statusCode} to sent event.`),r=Xr(r,t),t),t=>{throw a("network_error"),It&&Ut.error("Encountered error running transport request:",t),t})).then(t=>t,t=>{if(t===Jr)return It&&Ut.error("Skipped sending event because buffer is full."),a("queue_overflow"),Promise.resolve({});throw t})},flush:t=>n.drain(t)}}function es(t){const e=[];t.message&&e.push(t.message);try{const n=t.exception.values[t.exception.values.length-1];n?.value&&(e.push(n.value),n.type&&e.push(`${n.type}: ${n.value}`))}catch{}return e}const ns=["forwarded","-ip","remote-","via","-user"];const rs={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 ss(t){const e=null!=t.dataCollection?rs:!0===t.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:ns},httpHeaders:{request:{deny:ns},response:{deny:ns}},httpBodies:[],urlQueryParams:{deny:ns},graphQL:{document:!0,variables:!0},genAI:{inputs:!1,outputs:!1},databaseQueryData:!1,stackFrameVariables:!0,frameContextLines:7};const n=t.dataCollection??{};return{userInfo:n.userInfo??e.userInfo,cookies:n.cookies??e.cookies,httpHeaders:{request:n.httpHeaders?.request??e.httpHeaders.request,response:n.httpHeaders?.response??e.httpHeaders.response},httpBodies:n.httpBodies??e.httpBodies,urlQueryParams:n.urlQueryParams??n.queryParams??e.urlQueryParams,graphQL:{document:n.graphQL?.document??e.graphQL.document,variables:n.graphQL?.variables??e.graphQL.variables},genAI:{inputs:n.genAI?.inputs??e.genAI.inputs,outputs:n.genAI?.outputs??e.genAI.outputs},databaseQueryData:n.databaseQueryData??e.databaseQueryData,stackFrameVariables:n.stackFrameVariables??e.stackFrameVariables,frameContextLines:n.frameContextLines??e.frameContextLines}}const is="Not capturing exception because it's already been captured.",os="Discarded session because of missing or non-string release",as=/* @__PURE__ */Symbol.for("SentryInternalError"),cs=/* @__PURE__ */Symbol.for("SentryDoNotSendEventError");function us(t){return{message:t,[as]:!0}}function ds(t){return{message:t,[cs]:!0}}function ls(t){return pe(t)&&as in t}function ps(t){return pe(t)&&cs in t}function hs(t,e,n,r,s){let i,o=0,a=!1;t.on(n,()=>{o=0,clearTimeout(i),a=!1}),t.on(e,e=>{if(o+=r(e),o>=8e5)s(t);else if(!a){const e=t.getOptions()._flushInterval??5e3;e>0&&(a=!0,i=Nr(setTimeout(()=>{s(t)},e)))}}),t.on("flush",()=>{s(t)})}class fs{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=Zr(t.transportOptions?.bufferSize??64),this._dataCollection=ss(t),t.dsn?this._dsn=Rn(t.dsn):It&&Ut.warn("No DSN provided, client will not send events."),this._dsn){const e=Lr(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:e})}this._options.enableLogs=this._options.enableLogs??this._options._experiments?.enableLogs,this._options.enableLogs&&hs(this,"afterCaptureLog","flushLogs",vs,Fr);(this._options.enableMetrics??this._options._experiments?.enableMetrics??!0)&&hs(this,"afterCaptureMetric","flushMetrics",ys,Yr)}captureException(t,e,n){const r=Ue();if(qe(t))return It&&Ut.log(is),r;const s={event_id:r,...e};return this._process(()=>this.eventFromException(t,s).then(t=>this._captureEvent(t,s,n)).then(t=>t),"error"),s.event_id}captureMessage(t,e,n,r){const s={event_id:Ue(),...n},i=ue(t)?t:String(t),o=de(t),a=o?this.eventFromMessage(i,e,s):this.eventFromException(t,s);return this._process(()=>a.then(t=>this._captureEvent(t,s,r)),o?"unknown":"error"),s.event_id}captureEvent(t,e,n){const r=Ue();if(e?.originalException&&qe(e.originalException))return It&&Ut.log(is),r;const s={event_id:r,...e},i=t.sdkProcessingMetadata||{},o=i.capturedSpanScope,a=i.capturedSpanIsolationScope,c=ms(t.type);return this._process(()=>this._captureEvent(t,s,o||n,a),c),s.event_id}captureSession(t){this.sendSession(t),Qe(t,{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(t){const e=this._transport;if(this.emit("flush"),!e)return!0;const n=await this._isClientDoneProcessing(t),r=await e.flush(t);return n&&r}async close(t){const e=await this.flush(t);return this.getOptions().enabled=!1,this.emit("close"),e}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}init(){(this._isEnabled()||this._options.integrations.some(({name:t})=>t.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(t){return this._integrations[t]}getIntegrationNames(){return Object.keys(this._integrations)}addIntegration(t){const e=this._integrations[t.name];!e&&t.beforeSetup&&t.beforeSetup(this),zr(this,t,this._integrations),e||Hr(this,[t])}sendEvent(t,e={}){this.emit("beforeSendEvent",t,e);const n=function(t,e){if("transaction"!==t.type||!t.spans?.length||!t.sdkProcessingMetadata?.hasGenAiSpans||!1===e.getOptions().streamGenAiSpans||function(t){return"stream"===t.getOptions().traceLifecycle}(e))return;const n=[],r=[];for(const i of t.spans)i.op?.startsWith("gen_ai.")?n.push(Gr(i)):r.push(i);if(0===n.length)return;t.spans=r;const s=e.getDataCollectionOptions().userInfo?"auto":"never";return[{type:"span",item_count:n.length,content_type:"application/vnd.sentry.items.span.v2+json"},{version:2,...Br()&&{ingest_settings:{infer_ip:s,infer_user_agent:s}},items:n}]}(t,this);let r=ur(t,this._dsn,this._options._metadata,this._options.tunnel);for(const s of e.attachments||[])r=er(r,ir(s));n&&(r=er(r,n)),this.sendEnvelope(r).then(e=>this.emit("afterSendEvent",t,e))}sendSession(t){const{release:e,environment:n=Gn}=this._options;if("aggregates"in t){const r=t.attrs||{};if(!r.release&&!e)return void(It&&Ut.warn(os));r.release=r.release||e,r.environment=r.environment||n,t.attrs=r}else{if(!t.release&&!e)return void(It&&Ut.warn(os));t.release=t.release||e,t.environment=t.environment||n}this.emit("beforeSendSession",t);const r=function(t,e,n,r){const s=cr(n);return tr({sent_at:new Date(ke()).toISOString(),...s&&{sdk:s},...!!r&&e&&{dsn:Pn(e)}},["aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()]])}(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(r)}recordDroppedEvent(t,e,n=1){if(this._options.sendClientReports){const r=`${t}:${e}`;It&&Ut.log(`Recording outcome: "${r}"${n>1?` (${n} times)`:""}`),this._outcomes[r]=(this._outcomes[r]||0)+n}}on(t,e){const n=this._hooks[t]=this._hooks[t]||/* @__PURE__ */new Set,r=(...t)=>e(...t);return n.add(r),()=>{n.delete(r)}}emit(t,...e){const n=this._hooks[t];n&&n.forEach(t=>t(...e))}async sendEnvelope(t){if(this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport)try{return await this._transport.send(t)}catch(e){return It&&Ut.error("Error while sending envelope:",e),{}}return It&&Ut.error("Transport disabled"),{}}registerCleanup(t){}dispose(){}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=function(t,e){const n={};return e.forEach(e=>{e?.beforeSetup&&e.beforeSetup(t)}),e.forEach(e=>{e&&zr(t,e,n)}),n}(this,t),Hr(this,t)}_updateSessionFromEvent(t,e){let n="fatal"===e.level,r=!1;const s=e.exception?.values;if(s){r=!0,n=!1;for(const t of s)if(!1===t.mechanism?.handled){n=!0;break}}const i="ok"===t.status;(i&&0===t.errors||i&&n)&&(Qe(t,{...n&&{status:"crashed"},errors:t.errors||Number(r||n)}),this.captureSession(t))}async _isClientDoneProcessing(t){let e=0;for(;!t||e<t;){if(await new Promise(t=>setTimeout(t,1)),!this._numProcessing)return!0;e++}return!1}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(t,e,n,r){const s=this.getOptions(),i=this.getIntegrationNames();return!e.integrations&&i.length&&(e.integrations=i),this.emit("preprocessEvent",t,e),t.type||r.setLastEventId(t.event_id||e.event_id),$r(s,t,e,n,this,r).then(t=>{if(null===t)return t;this.emit("postprocessEvent",t,e),t.contexts={trace:{...t.contexts?.trace,...vn(n)},...t.contexts};const r=Zn(this,n);return t.sdkProcessingMetadata={dynamicSamplingContext:r,...t.sdkProcessingMetadata},t})}_captureEvent(t,e={},n=gn(),r=_n()){return It&&gs(t)&&Ut.log(`Captured error event \`${es(t)[0]||"<unknown>"}\``),this._processEvent(t,e,n,r).then(t=>t.event_id,t=>{It&&(ps(t)?Ut.log(t.message):ls(t)?Ut.warn(t.message):Ut.warn(t))})}_processEvent(t,e,n,r){const s=this.getOptions(),{sampleRate:i}=s,o=_s(t),a=gs(t),c=`before send for type \`${t.type||"error"}\``,u=void 0===i?void 0:function(t){if("boolean"==typeof t)return Number(t);const e="string"==typeof t?parseFloat(t):t;return"number"!=typeof e||isNaN(e)||e<0||e>1?void 0:e}(i);if(a&&"number"==typeof u&&$e()>u)return this.recordDroppedEvent("sample_rate","error"),_r(ds(`Discarding event because it's not included in the random sample (sampling rate = ${i})`));const d=ms(t.type);return this._prepareEvent(t,e,n,r).then(t=>{if(null===t)throw this.recordDroppedEvent("event_processor",d),ds("An event processor returned `null`, will not send event.");if(!0===e.data?.__sentry__)return t;const n=function(t,e,n,r){const{beforeSend:s,beforeSendTransaction:i,ignoreSpans:o}=e,a=(c=e.beforeSendSpan,!(c&&"function"==typeof c&&"_streamed"in c&&c._streamed)&&e.beforeSendSpan);var c;let u=n;if(gs(u)&&s)return s(u,r);if(_s(u)){if(a||o){const e=function(t){const{trace_id:e,parent_span_id:n,span_id:r,status:s,origin:i,data:o,op:a}=t.contexts?.trace??{};return{data:o??{},description:t.transaction,op:a,parent_span_id:n,span_id:r??"",start_timestamp:t.start_timestamp??0,status:s,timestamp:t.timestamp,trace_id:e??"",origin:i,profile_id:o?.[En],exclusive_time:o?.[wn],measurements:t.measurements,is_segment:!0}}(u);if(o?.length&&Fn({description:e.description,op:e.op,attributes:e.data},o))return null;if(a){const t=a(e);t?u=Ge(n,{type:"transaction",timestamp:(d=t).timestamp,start_timestamp:d.start_timestamp,transaction:d.description,contexts:{trace:{trace_id:d.trace_id,span_id:d.span_id,parent_span_id:d.parent_span_id,op:d.op,status:d.status,origin:d.origin,data:{...d.data,...d.profile_id&&{[En]:d.profile_id},...d.exclusive_time&&{[wn]:d.exclusive_time}}}},measurements:d.measurements}):Wn()}if(u.spans){const e=[],n=u.spans;for(const t of n)if(o?.length&&Fn({description:t.description,op:t.op,attributes:t.data},o))Vn(n,t);else if(a){const n=a(t);n?e.push(n):(Wn(),e.push(t))}else e.push(t);const r=u.spans.length-e.length;r&&t.recordDroppedEvent("before_send","span",r),u.spans=e}}if(i){if(u.spans){const t=u.spans.length;u.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:t}}return i(u,r)}}var d;return u}(this,s,t,e);return function(t,e){const n=`${e} must return \`null\` or a valid event.`;if(fe(t))return t.then(t=>{if(!le(t)&&null!==t)throw us(n);return t},t=>{throw us(`${e} rejected with ${t}`)});if(!le(t)&&null!==t)throw us(n);return t}(n,c)}).then(s=>{if(null===s){if(this.recordDroppedEvent("before_send",d),o){const e=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",e)}throw ds(`${c} returned \`null\`, will not send event.`)}const i=n.getSession()||r.getSession();if(a&&i&&this._updateSessionFromEvent(i,s),o){const t=(s.sdkProcessingMetadata?.spanCountBeforeProcessing||0)-(s.spans?s.spans.length:0);t>0&&this.recordDroppedEvent("before_send","span",t)}const u=s.transaction_info;if(o&&u&&s.transaction!==t.transaction){const t="custom";s.transaction_info={...u,source:t}}return this.sendEvent(s,e),s}).then(null,t=>{if(ps(t)||ls(t))throw t;throw this.captureException(t,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:t}),us(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${t}`)})}_process(t,e){this._numProcessing++,this._promiseBuffer.add(t).then(t=>(this._numProcessing--,t),t=>(this._numProcessing--,t===Jr&&this.recordDroppedEvent("queue_overflow",e),t))}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.entries(t).map(([t,e])=>{const[n,r]=t.split(":");return{reason:n,category:r,quantity:e}})}_flushOutcomes(){It&&Ut.log("Flushing outcomes...");const t=this._clearOutcomes();if(0===t.length)return void(It&&Ut.log("No outcomes to send"));if(!this._dsn)return void(It&&Ut.log("No dsn provided, will not send outcomes"));It&&Ut.log("Sending outcomes:",t);const e=(n=t,tr((r=this._options.tunnel&&Pn(this._dsn))?{dsn:r}:{},[[{type:"client_report"},{timestamp:Fe(),discarded_events:n}]]));var n,r;this.sendEnvelope(e)}}function ms(t){return"replay_event"===t?"replay":t||"error"}function gs(t){return void 0===t.type}function _s(t){return"transaction"===t.type}function ys(t){let e=0;return t.name&&(e+=2*t.name.length),e+=8,e+bs(t.attributes)}function vs(t){let e=0;return t.message&&(e+=2*t.message.length),e+bs(t.attributes)}function bs(t){if(!t)return 0;let e=0;return Object.values(t).forEach(t=>{Array.isArray(t)?e+=t.length*Es(t[0]):de(t)?e+=Es(t):e+=100}),e}function Es(t){return"string"==typeof t?2*t.length:"number"==typeof t?8:"boolean"==typeof t?4:0}function ws(t,e){!0===e.debug&&(It?Ut.enable():Dt(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")}));gn().update(e.initialScope);const n=new t(e);return function(t){gn().setClient(t)}(n),n.init(),n}function Ss(t){if(!t)return{};const e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};const n=e[6]||"",r=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],search:n,hash:r,relative:e[5]+n+r}}function xs(t){"aggregates"in t?void 0===t.attrs?.ip_address&&(t.attrs={...t.attrs,ip_address:"{{auto}}"}):void 0===t.ipAddress&&(t.ipAddress="{{auto}}")}const $s=100;function ks(t,e){const n=yn(),r=_n();if(!n)return;const{beforeBreadcrumb:s=null,maxBreadcrumbs:i=$s}=n.getOptions();if(i<=0)return;const o={timestamp:Fe(),...t},a=s?Dt(()=>s(o,e)):o;null!==a&&(n.emit&&n.emit("beforeAddBreadcrumb",a,e),r.addBreadcrumb(a,i))}const Is=/* @__PURE__ */new WeakMap,As=()=>({name:"FunctionToString",setupOnce(){const t=Function.prototype.toString;try{Function.prototype.toString=function(...e){const n=be(this);let r;try{Is.has(yn())&&void 0!==n&&(r=n)}catch{}return t.apply(r??this,e)}}catch{}},setup(t){Is.set(t,!0)}}),Ps=[/^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$/],Cs=(t={})=>{let e;return{name:"EventFilters",setup(n){const r=n.getOptions();e=Rs(t,r)},processEvent(n,r,s){if(!e){const n=s.getOptions();e=Rs(t,n)}return function(t,e){if(t.type){if("transaction"===t.type&&function(t,e){if(!e?.length)return!1;const n=t.transaction;return!!n&&je(n,e)}(t,e.ignoreTransactions))return It&&Ut.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${ze(t)}`),!0}else{if(function(t,e){if(!e?.length)return!1;return es(t).some(t=>je(t,e))}(t,e.ignoreErrors))return It&&Ut.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${ze(t)}`),!0;if(function(t){if(!t.exception?.values?.length)return!1;return!t.message&&!t.exception.values.some(t=>t.stacktrace||t.type&&"Error"!==t.type||t.value)}(t))return It&&Ut.warn(`Event dropped due to not having an error message, error type or stacktrace.\nEvent: ${ze(t)}`),!0;if(function(t,e){if(!e?.length)return!1;const n=Ts(t);return!!n&&je(n,e)}(t,e.denyUrls))return It&&Ut.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${ze(t)}.\nUrl: ${Ts(t)}`),!0;if(!function(t,e){if(!e?.length)return!0;const n=Ts(t);return!n||je(n,e)}(t,e.allowUrls))return It&&Ut.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${ze(t)}.\nUrl: ${Ts(t)}`),!0}return!1}(n,e)?null:n}}},Os=(t={})=>({...Cs(t),name:"InboundFilters"});function Rs(t={},e={}){return{allowUrls:[...t.allowUrls||[],...e.allowUrls||[]],denyUrls:[...t.denyUrls||[],...e.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...e.ignoreErrors||[],...t.disableErrorDefaults?[]:Ps],ignoreTransactions:[...t.ignoreTransactions||[],...e.ignoreTransactions||[]]}}function Ts(t){try{const e=[...t.exception?.values??[]].reverse().find(t=>void 0===t.mechanism?.parent_id&&t.stacktrace?.frames?.length),n=e?.stacktrace?.frames;return n?function(t=[]){for(let e=t.length-1;e>=0;e--){const n=t[e];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(n):null}catch{return It&&Ut.error(`Cannot extract url for event ${ze(t)}`),null}}function Ms(t,e,n,r,s,i){if(!s.exception?.values||!i||!me(i.originalException,Error))return;const o=s.exception.values.length>0?s.exception.values[s.exception.values.length-1]:void 0;o&&(s.exception.values=Ds(t,e,r,i.originalException,n,s.exception.values,o,0))}function Ds(t,e,n,r,s,i,o,a){if(i.length>=n+1)return i;let c=[...i];if(me(r[s],Error)){Ls(o,a,r);const i=t(e,r[s]),u=c.length;js(i,s,u,a),c=Ds(t,e,n,r[s],s,[i,...c],i,u)}return Ns(r)&&r.errors.forEach((i,u)=>{if(me(i,Error)){Ls(o,a,r);const d=t(e,i),l=c.length;js(d,`errors[${u}]`,l,a),c=Ds(t,e,n,i,s,[d,...c],d,l)}}),c}function Ns(t){return Array.isArray(t.errors)}function Ls(t,e,n){t.mechanism={handled:!0,type:"auto.core.linked_errors",...Ns(n)&&{is_exception_group:!0},...t.mechanism,exception_id:e}}function js(t,e,n,r){t.mechanism={handled:!0,...t.mechanism,type:"chained",source:e,exception_id:n,parent_id:r}}function Us(t){return function(t){return se(t)&&"__sentry_fetch_url_host__"in t&&"string"==typeof t.__sentry_fetch_url_host__}(t)?`${t.message} (${t.__sentry_fetch_url_host__})`:t.message}const Hs=/* @__PURE__ */new Set([]);const zs=/* @__PURE__ */new Set;function Ws(){"console"in At&&Tt.forEach(function(t){!zs.has(t)&&t in At.console&&(zs.add(t),_e(At.console,t,function(e){return Mt[t]=e,function(...e){const n=e[0],r=Mt[t],s=Hs.size&&"string"==typeof n&&je(n,Hs);s||Zt("console",{args:e,level:t}),(!s||It&&Ut.isEnabled())&&r?.apply(At.console,e)}}))})}function Bs(t){return"warn"===t?"warning":["fatal","error","warning","log","info","debug"].includes(t)?t:"log"}const qs=()=>{let t;return{name:"Dedupe",processEvent(e){if(e.type)return e;try{if(function(t,e){if(!e)return!1;if(function(t,e){const n=t.message,r=e.message;if(!n&&!r)return!1;if(n&&!r||!n&&r)return!1;if(n!==r)return!1;if(!Ks(t,e))return!1;if(!Fs(t,e))return!1;return!0}(t,e))return!0;if(function(t,e){const n=Vs(e),r=Vs(t);if(!n||!r)return!1;if(n.type!==r.type||n.value!==r.value)return!1;if(!Ks(t,e))return!1;if(!Fs(t,e))return!1;return!0}(t,e))return!0;return!1}(e,t))return It&&Ut.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return t=e}}};function Fs(t,e){let n=Vt(t),r=Vt(e);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(r.length!==n.length)return!1;for(let s=0;s<r.length;s++){const t=r[s],e=n[s];if(t.filename!==e.filename||t.lineno!==e.lineno||t.colno!==e.colno||t.function!==e.function)return!1}return!0}function Ks(t,e){let n=t.fingerprint,r=e.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;try{return!(n.join("")!==r.join(""))}catch{return!1}}function Vs(t){return t.exception?.values?.[0]}const Ys=()=>({name:"ConversationId",setup(t){t.on("spanStart",t=>{const e=gn().getScopeData(),n=_n().getScopeData(),r=e.conversationId||n.conversationId;if(r){const{op:e,data:n,description:s}=jn(t);if(!e?.startsWith("gen_ai.")&&!n["ai.operationId"]&&!s?.startsWith("ai."))return;t.setAttribute("gen_ai.conversation.id",r)}})}});function Qs(t){return void 0===t?void 0:t>=400&&t<500?"warning":t>=500?"error":void 0}const Gs=At;function Js(t){return t&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function Zs(){if("string"==typeof EdgeRuntime)return!0;if(!function(){if(!("fetch"in Gs))return!1;try{return new Headers,new Request("data:,"),new Response,!0}catch{return!1}}())return!1;if(Js(Gs.fetch))return!0;let t=!1;const e=Gs.document;if(e&&"function"==typeof e.createElement)try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n),n.contentWindow?.fetch&&(t=Js(n.contentWindow.fetch)),e.head.removeChild(n)}catch(n){It&&Ut.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return t}function Xs(t,e){const n="fetch",r=Gt(n,t);return Jt(n,()=>function(t,e=!1){if(e&&!Zs())return;_e(At,"fetch",function(t){return function(...e){const n=new Error,{method:r,url:s}=function(t){if(0===t.length)return{method:"GET",url:""};if(2===t.length){const[e,n]=t;return{url:ei(e),method:ti(n,"method")?String(n.method).toUpperCase():ge(e)&&ti(e,"method")?String(e.method).toUpperCase():"GET"}}const e=t[0];return{url:ei(e),method:ti(e,"method")?String(e.method).toUpperCase():"GET"}}(e),i={args:e,fetchData:{method:r,url:s},startTimestamp:1e3*Ve(),virtualError:n,headers:ni(e)};return Zt("fetch",{...i}),t.apply(At,e).then(async t=>(Zt("fetch",{...i,endTimestamp:1e3*Ve(),response:t}),t),t=>{Zt("fetch",{...i,endTimestamp:1e3*Ve(),error:t}),se(t)&&void 0===t.stack&&(t.stack=n.stack,ye(t,"framesToPop",1));const e=yn(),r=e?.getOptions().enhanceFetchErrorMessages??"always";if(!1!==r&&t instanceof TypeError&&("Failed to fetch"===t.message||"Load failed"===t.message||"NetworkError when attempting to fetch resource."===t.message))try{const e=new URL(i.fetchData.url).host;"always"===r?t.message=`${t.message} (${e})`:ye(t,"__sentry_fetch_url_host__",e)}catch{}throw t})}})}(0,e)),r}function ti(t,e){return pe(t)&&!!t[e]}function ei(t){return"string"==typeof t?t:t?ti(t,"url")?t.url:t.toString?t.toString():"":""}function ni(t){const[e,n]=t;try{if("object"==typeof n&&null!==n&&"headers"in n&&n.headers)return new Headers(n.headers);if(ge(e))return new Headers(e.headers)}catch{}}const ri=At;function si(){try{return ri.document.location.href}catch{return""}}const ii=At;let oi=0;function ai(){return oi>0}function ci(t,e={}){if("function"!=typeof t)return t;try{if(Object.prototype.hasOwnProperty.call(t,"__sentry_wrapped__")){const e=t.__sentry_wrapped__;return"function"==typeof e?e:t}if(be(t))return t}catch{return t}const n=function(...n){At._sentryWrappedDepth=(At._sentryWrappedDepth||0)+1;try{const r=n.map(t=>ci(t,e));return t.apply(this,r)}catch(r){throw oi++,setTimeout(()=>{oi--}),function(...t){const e=hn(Ct());if(2===t.length){const[n,r]=t;return n?e.withSetScope(n,r):e.withScope(r)}e.withScope(t[0])}(t=>{t.addEventProcessor(t=>(e.mechanism&&(We(t,void 0),Be(t,e.mechanism)),t.extra={...t.extra,arguments:n},t)),Ar(r)}),r}finally{At._sentryWrappedDepth=(At._sentryWrappedDepth||0)-1}};try{for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e])}catch{}ve(n,t),ye(t,"__sentry_wrapped__",n);try{Object.getOwnPropertyDescriptor(n,"name").configurable&&Object.defineProperty(n,"name",{get:()=>t.name})}catch{}return n}function ui(){const t=si(),{referrer:e}=ii.document||{},{userAgent:n}=ii.navigator||{};return{url:t,headers:{...e&&{Referer:e},...n&&{"User-Agent":n}}}}function di(t,e){const n=hi(t,e),r={type:gi(e),value:_i(e)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function li(t,e,n,r){const s=yn(),i=s?.getOptions().normalizeDepth,o=(a=e,Object.values(a).find(t=>t instanceof Error));var a;const c={__serialized__:Re(e,i)};if(o)return{exception:{values:[di(t,o)]},extra:c};const u={exception:{values:[{type:he(e)?e.constructor.name:r?"UnhandledRejection":"Error",value:bi(e,{isUnhandledRejection:r})}]},extra:c};if(n){const e=hi(t,n);e.length&&(u.exception.values[0].stacktrace={frames:e})}return u}function pi(t,e){return{exception:{values:[di(t,e)]}}}function hi(t,e){const n=e.stacktrace||e.stack||"",r=function(t){if(t&&fi.test(t.message))return 1;return 0}(e),s=function(t){if("number"==typeof t.framesToPop)return t.framesToPop;return 0}(e);try{return t(n,r,s)}catch{}return[]}const fi=/Minified React error #\d+;/i;function mi(t){return"undefined"!=typeof WebAssembly&&void 0!==WebAssembly.Exception&&t instanceof WebAssembly.Exception}function gi(t){const e=t?.name;if(!e&&mi(t)){return t.message&&Array.isArray(t.message)&&2==t.message.length?t.message[0]:"WebAssembly.Exception"}return e}function _i(t){const e=t?.message;return mi(t)?Array.isArray(t.message)&&2==t.message.length?t.message[1]:"wasm exception":e?e.error&&"string"==typeof e.error.message?Us(e.error):Us(t):"No error message"}function yi(t,e,n,r,s){let i;if(oe(e)&&e.error){return pi(t,e.error)}if(ae(e)||ie(e,"DOMException")){const s=e;if("stack"in e){i=pi(t,e);const s=i.exception?.values?.[0];if(r&&n&&s&&!s.stacktrace){const e=hi(t,n);e.length&&(s.stacktrace={frames:e},Be(i,{synthetic:!0}))}}else{const e=s.name||(ae(s)?"DOMError":"DOMException"),o=s.message?`${e}: ${s.message}`:e;i=vi(t,o,n,r),We(i,o)}return"code"in s&&(i.tags={...i.tags,"DOMException.code":`${s.code}`}),i}if(se(e))return pi(t,e);if(le(e)||he(e)){return i=li(t,e,n,s),Be(i,{synthetic:!0}),i}return i=vi(t,e,n,r),We(i,`${e}`),Be(i,{synthetic:!0}),i}function vi(t,e,n,r){const s={};if(r&&n){const r=hi(t,n);r.length&&(s.exception={values:[{value:e,stacktrace:{frames:r}}]}),Be(s,{synthetic:!0})}if(ue(e)){const{__sentry_template_string__:t,__sentry_template_values__:n}=e;return s.logentry={message:t,params:n},s}return s.message=e,s}function bi(t,{isUnhandledRejection:e}){const n=function(t){const e=Object.keys(Ee(t));return e.sort(),e[0]?e.join(", "):"[object has no keys]"}(t),r=e?"promise rejection":"exception";if(oe(t))return`Event \`ErrorEvent\` captured as ${r} with message \`${t.message}\``;if(he(t)){return`Event \`${function(t){try{const e=Object.getPrototypeOf(t);return e?e.constructor.name:void 0}catch{}}(t)}\` (type=${t.type}) captured as ${r}`}return`Object captured as ${r} with keys: ${n}`}class Ei extends fs{constructor(t){const e=(n=t,{release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:ii.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...n});var n;!function(t,e,n=[e],r="npm"){const s=(t._metadata=t._metadata||{}).sdk=t._metadata.sdk||{};s.name||(s.name=`sentry.javascript.${e}`,s.packages=n.map(t=>({name:`${r}:@sentry/${t}`,version:Pt})),s.version=Pt)}(e,"browser",["browser"],ii.SENTRY_SDK_SOURCE||"npm"),super(e);const{userInfo:r}=this.getDataCollectionOptions();e._metadata?.sdk&&(e._metadata.sdk.settings={infer_ip:r?"auto":"never",...e._metadata.sdk.settings});const{sendClientReports:s}=this._options;ii.document&&ii.document.addEventListener("visibilitychange",()=>{"hidden"===ii.document.visibilityState&&(s&&this._flushOutcomes(),queueMicrotask(()=>{this.flush()}))}),r&&this.on("beforeSendSession",xs)}eventFromException(t,e){return function(t,e,n,r){const s=yi(t,e,n?.syntheticException||void 0,r);return Be(s),s.level="error",n?.event_id&&(s.event_id=n.event_id),gr(s)}(this._options.stackParser,t,e,this._options.attachStacktrace)}eventFromMessage(t,e="info",n){return function(t,e,n="info",r,s){const i=vi(t,e,r?.syntheticException||void 0,s);return i.level=n,r?.event_id&&(i.event_id=r.event_id),gr(i)}(this._options.stackParser,t,e,n,this._options.attachStacktrace)}_prepareEvent(t,e,n,r){return t.platform=t.platform||"javascript",super._prepareEvent(t,e,n,r)}}const wi="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,Si=At;function xi(t,e,n){Si.document&&Si.addEventListener(t,e,n)}function $i(t,e,n){Si.document&&Si.removeEventListener(t,e,n)}const ki={};try{"undefined"!=typeof Node&&(ki.parentNode=Object.getOwnPropertyDescriptor(Node.prototype,"parentNode").get),"undefined"!=typeof Element&&(ki.tagName=Object.getOwnPropertyDescriptor(Element.prototype,"tagName").get,ki.id=Object.getOwnPropertyDescriptor(Element.prototype,"id").get,ki.className=Object.getOwnPropertyDescriptor(Element.prototype,"className").get,ki.getAttribute=Element.prototype.getAttribute),"undefined"!=typeof HTMLElement&&(ki.dataset=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"dataset").get)}catch{}function Ii(t,e,n){const r=ki[e];if(r)try{return r.call(t,n)}catch{}const s=t[e];return"function"==typeof s?s.call(t,n):s}function Ai(t,e={}){if(!t)return"<unknown>";try{let n=t;const r=5,s=[];let i=0,o=0;const a=" > ",c=a.length;let u;const d=Array.isArray(e)?e:e.keyAttrs,l=!Array.isArray(e)&&e.maxStringLength||80;for(;n&&i++<r&&(u=Pi(n,d),!("html"===u||i>1&&o+s.length*c+u.length>=l));)s.push(u),o+=u.length,n=Ii(n,"parentNode");return s.reverse().join(a)}catch{return"<unknown>"}}function Pi(t,e){const n=[],r=Ii(t,"tagName");if(!r)return"";if("undefined"!=typeof HTMLElement&&t instanceof HTMLElement){const e=Ii(t,"dataset");if(e){if(e.sentryComponent)return e.sentryComponent;if(e.sentryElement)return e.sentryElement}}n.push(r.toLowerCase());const s=e?.length?e.filter(e=>Ii(t,"getAttribute",e)).map(e=>[e,Ii(t,"getAttribute",e)]):null;if(s?.length)s.forEach(t=>{n.push(`[${t[0]}="${t[1]}"]`)});else{const e=Ii(t,"id");e&&n.push(`#${e}`);const r=Ii(t,"className");if(r&&ce(r)){const t=r.split(/\s+/);for(const e of t)n.push(`.${e}`)}}for(const i of["aria-label","type","name","title","alt"]){const e=Ii(t,"getAttribute",i);e&&n.push(`[${i}="${e}"]`)}return n.join("")}let Ci,Oi,Ri,Ti;function Mi(){if(!Si.document)return;const t=Zt.bind(null,"dom"),e=Di(t,!0);Si.document.addEventListener("click",e,!1),Si.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach(e=>{const n=Si,r=n[e]?.prototype;r?.hasOwnProperty?.("addEventListener")&&(_e(r,"addEventListener",function(e){return function(n,r,s){if("click"===n||"keypress"==n)try{const r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},i=r[n]=r[n]||{refCount:0};if(!i.handler){const r=Di(t);i.handler=r,e.call(this,n,r,s)}i.refCount++}catch{}return e.call(this,n,r,s)}}),_e(r,"removeEventListener",function(t){return function(e,n,r){if("click"===e||"keypress"==e)try{const n=this.__sentry_instrumentation_handlers__||{},s=n[e];s&&(s.refCount--,s.refCount<=0&&(t.call(this,e,s.handler,r),s.handler=void 0,delete n[e]),0===Object.keys(n).length&&delete this.__sentry_instrumentation_handlers__)}catch{}return t.call(this,e,n,r)}}))})}function Di(t,e=!1){return n=>{if(!n||n._sentryCaptured)return;const r=function(t){try{return t.target}catch{return null}}(n);if(function(t,e){return"keypress"===t&&(!e?.tagName||"INPUT"!==e.tagName&&"TEXTAREA"!==e.tagName&&!e.isContentEditable)}(n.type,r))return;ye(n,"_sentryCaptured",!0),r&&!r._sentryId&&ye(r,"_sentryId",Ue());const s="keypress"===n.type?"input":n.type;if(!function(t){if(t.type!==Oi)return!1;try{if(!t.target||t.target._sentryId!==Ri)return!1}catch{}return!0}(n)){t({event:n,name:s,global:e}),Oi=n.type,Ri=r?r._sentryId:void 0}clearTimeout(Ci),Ci=Si.setTimeout(()=>{Ri=void 0,Oi=void 0},1e3)}}function Ni(t){const e="history";Gt(e,t),Jt(e,Li)}function Li(){function t(t){return function(...e){const n=e.length>2?e[2]:void 0;if(n){const r=Ti,s=function(t){try{return new URL(t,Si.location.origin).toString()}catch{return t}}(String(n));if(Ti=s,r===s)return t.apply(this,e);Zt("history",{from:r,to:s})}return t.apply(this,e)}}Si.addEventListener("popstate",()=>{const t=Si.location.href,e=Ti;if(Ti=t,e===t)return;Zt("history",{from:e,to:t})}),"history"in Gs&&Gs.history&&(_e(Si.history,"pushState",t),_e(Si.history,"replaceState",t))}const ji={};const Ui="__sentry_xhr_v3__";function Hi(){if(!Si.XMLHttpRequest)return;const t=XMLHttpRequest.prototype;t.open=new Proxy(t.open,{apply(t,e,n){const r=new Error,s=1e3*Ve(),i=ce(n[0])?n[0].toUpperCase():void 0,o=function(t){if(ce(t))return t;try{return t.toString()}catch{}return}(n[1]);if(!i||!o)return t.apply(e,n);e[Ui]={method:i,url:o,request_headers:{}},"POST"===i&&o.match(/sentry_key/)&&(e.__sentry_own_request__=!0);const a=()=>{const t=e[Ui];if(t&&4===e.readyState){try{t.status_code=e.status}catch{}Zt("xhr",{endTimestamp:1e3*Ve(),startTimestamp:s,xhr:e,virtualError:r}),e.removeEventListener("readystatechange",a)}};return"onreadystatechange"in e&&"function"==typeof e.onreadystatechange?e.onreadystatechange=new Proxy(e.onreadystatechange,{apply:(t,e,n)=>(a(),t.apply(e,n))}):e.addEventListener("readystatechange",a),e.setRequestHeader=new Proxy(e.setRequestHeader,{apply(t,e,n){const[r,s]=n,i=e[Ui];return i&&ce(r)&&ce(s)&&(i.request_headers[r.toLowerCase()]=s),t.apply(e,n)}}),t.apply(e,n)}}),t.send=new Proxy(t.send,{apply(t,e,n){const r=e[Ui];if(!r)return t.apply(e,n);void 0!==n[0]&&(r.body=n[0]);return Zt("xhr",{startTimestamp:1e3*Ve(),xhr:e}),t.apply(e,n)}})}function zi(t,e=function(t){const e=ji[t];if(e)return e;let n=Si[t];if(Js(n))return ji[t]=n.bind(Si);const r=Si.document;if(r&&"function"==typeof r.createElement)try{const e=r.createElement("iframe");e.hidden=!0,r.head.appendChild(e);const s=e.contentWindow;s?.[t]&&(n=s[t]),r.head.removeChild(e)}catch(I){wi&&Ut.warn(`Could not create sandbox iframe for ${t} check, bailing to window.${t}: `,I)}return n?ji[t]=n.bind(Si):n}("fetch")){let n=0,r=0;return ts(t,async function(s){const i=s.body.length;n+=i,r++;const o={body:s.body,method:"POST",referrerPolicy:"strict-origin",headers:t.headers,keepalive:n<=6e4&&r<15,...t.fetchOptions};try{const n=await e(t.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(I){throw ji["fetch"]=void 0,I}finally{n-=i,r--}},Zr(t.bufferSize||40))}const Wi="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function Bi(t,e,n,r){const s={filename:t,function:"<anonymous>"===e?Ht:e,in_app:!0};return void 0!==n&&(s.lineno=n),void 0!==r&&(s.colno=r),s}const qi=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,Fi=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Ki=/\((\S*)(?::(\d+))(?::(\d+))\)/,Vi=/at (.+?) ?\(data:(.+?),/,Yi=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Qi=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Gi=Bt(...[[30,t=>{const e=t.match(Vi);if(e)return{filename:`<data:${e[2]}>`,function:e[1]};const n=qi.exec(t);if(n){const[,t,e,r]=n;return Bi(t,Ht,+e,+r)}const r=Fi.exec(t);if(r){if(0===r[2]?.indexOf("eval")){const t=Ki.exec(r[2]);t&&(r[2]=t[1],r[3]=t[2],r[4]=t[3])}const[t,e]=Ji(r[1]||Ht,r[2]);return Bi(e,t,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}}],[50,t=>{const e=Yi.exec(t);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){const t=Qi.exec(e[3]);t&&(e[1]=e[1]||"eval",e[3]=t[1],e[4]=t[2],e[5]="")}let t=e[3],n=e[1]||Ht;return[n,t]=Ji(n,t),Bi(t,n,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}}]]),Ji=(t,e)=>{const n=-1!==t.indexOf("safari-extension"),r=-1!==t.indexOf("safari-web-extension");return n||r?[-1!==t.indexOf("@")?t.split("@")[0]:Ht,n?`safari-extension:${e}`:`safari-web-extension:${e}`]:[t,e]},Zi=1024,Xi=(t={})=>{const e={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...t};return{name:"Breadcrumbs",setup(t){var n;e.console&&function(t){const e="console",n=Gt(e,t);Jt(e,Ws)}(function(t){return function(e){if(yn()!==t)return;const n={category:"console",data:{arguments:e.args,logger:"console"},level:Bs(e.level),message:Ne(e.args," ")};if("assert"===e.level){if(!1!==e.args[0])return;n.message=`Assertion failed: ${Ne(e.args.slice(1)," ")||"console.assert"}`,n.data.arguments=e.args.slice(1)}ks(n,{input:e.args,level:e.level})}}(t)),e.dom&&(n=function(t,e){return function(n){if(yn()!==t)return;let r,s,i="object"==typeof e?e.serializeAttribute:void 0,o="object"==typeof e&&"number"==typeof e.maxStringLength?e.maxStringLength:void 0;o&&o>Zi&&(Wi&&Ut.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${o} was configured. Sentry will use 1024 instead.`),o=Zi),"string"==typeof i&&(i=[i]);try{const t=n.event,e=function(t){return!!t&&!!t.target}(t)?t.target:t;r=Ai(e,{keyAttrs:i,maxStringLength:o}),s=function(t,e=5){if(!ri.HTMLElement)return null;let n=t;for(let r=0;r<e;r++){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}(e)}catch{r="<unknown>"}if(0===r.length)return;const a={category:`ui.${n.name}`,message:r};s&&(a.data={"ui.component_name":s}),ks(a,{event:n.event,name:n.name,global:n.global})}}(t,e.dom),Gt("dom",n),Jt("dom",Mi)),e.xhr&&function(t){Gt("xhr",t),Jt("xhr",Hi)}(function(t){return function(e){if(yn()!==t)return;const{startTimestamp:n,endTimestamp:r}=e,s=e.xhr[Ui];if(!n||!r||!s)return;const{method:i,url:o,status_code:a,body:c}=s,u={method:i,url:o,status_code:a},d={xhr:e.xhr,input:c,startTimestamp:n,endTimestamp:r},l={category:"xhr",data:u,type:"http",level:Qs(a)};t.emit("beforeOutgoingRequestBreadcrumb",l,d),ks(l,d)}}(t)),e.fetch&&Xs(function(t){return function(e){if(yn()!==t)return;const{startTimestamp:n,endTimestamp:r}=e;if(r&&(!e.fetchData.url.match(/sentry_key/)||"POST"!==e.fetchData.method))if(e.error){const s={data:e.error,input:e.args,startTimestamp:n,endTimestamp:r},i={category:"fetch",data:e.fetchData,level:"error",type:"http"};t.emit("beforeOutgoingRequestBreadcrumb",i,s),ks(i,s)}else{const s=e.response,i={...e.fetchData,status_code:s?.status},o={input:e.args,response:s,startTimestamp:n,endTimestamp:r},a={category:"fetch",data:i,type:"http",level:Qs(i.status_code)};t.emit("beforeOutgoingRequestBreadcrumb",a,o),ks(a,o)}}}(t)),e.history&&Ni(function(t){return function(e){if(yn()!==t)return;let n=e.from,r=e.to;const s=Ss(ii.location.href);let i=n?Ss(n):void 0;const o=Ss(r);i?.path||(i=s),s.protocol===o.protocol&&s.host===o.host&&(r=o.relative),s.protocol===i.protocol&&s.host===i.host&&(n=i.relative),ks({category:"navigation",data:{from:n,to:r}})}}(t)),e.sentry&&t.on("beforeSendEvent",function(t){return function(e){yn()===t&&ks({category:"sentry."+("transaction"===e.type?"transaction":"event"),event_id:e.event_id,level:e.level,message:ze(e)},{event:e})}}(t))}}};const to="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(","),eo=(t={})=>{const e={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...t};return{name:"BrowserApiErrors",setupOnce(){e.setTimeout&&_e(ii,"setTimeout",no),e.setInterval&&_e(ii,"setInterval",no),e.requestAnimationFrame&&_e(ii,"requestAnimationFrame",ro),e.XMLHttpRequest&&"XMLHttpRequest"in ii&&_e(XMLHttpRequest.prototype,"send",so);const t=e.eventTarget;if(t){(Array.isArray(t)?t:to).forEach(t=>function(t,e){const n=ii,r=n[t]?.prototype;if(!r?.hasOwnProperty?.("addEventListener"))return;_e(r,"addEventListener",function(n){return function(r,s,i){try{"function"==typeof s.handleEvent&&(s.handleEvent=ci(s.handleEvent,{mechanism:{data:{handler:Kt(s),target:t},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return e.unregisterOriginalCallbacks&&function(t,e,n){t&&"object"==typeof t&&"removeEventListener"in t&&"function"==typeof t.removeEventListener&&t.removeEventListener(e,n)}(this,r,s),n.apply(this,[r,ci(s,{mechanism:{data:{handler:Kt(s),target:t},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),i])}}),_e(r,"removeEventListener",function(t){return function(e,n,r){try{if(Object.prototype.hasOwnProperty.call(n,"__sentry_wrapped__")){const s=n.__sentry_wrapped__;s&&t.call(this,e,s,r)}}catch{}return t.call(this,e,n,r)}})}(t,e))}}}};function no(t){return function(...e){const n=e[0];return e[0]=ci(n,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${Kt(t)}`}}),t.apply(this,e)}}function ro(t){return function(e){return t.apply(this,[ci(e,{mechanism:{data:{handler:Kt(t)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function so(t){return function(...e){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(t=>{t in n&&"function"==typeof n[t]&&_e(n,t,function(e){const n={mechanism:{data:{handler:Kt(e)},handled:!1,type:`auto.browser.browserapierrors.xhr.${t}`}},r=be(e);return r&&(n.mechanism.data.handler=Kt(r)),ci(e,n)})}),t.apply(this,e)}}const io=(t={})=>{const e=t.lifecycle??"route";return{name:"BrowserSession",setupOnce(){if(void 0===ii.document)return void(Wi&&Ut.warn("Using the `browserSessionIntegration` in non-browser environments is not supported."));Rr({ignoreDuration:!0});let t=!1;(t=>{const e=Si.requestIdleCallback||Si.setTimeout;"hidden"===Si.document?.visibilityState?t():(xi("visibilitychange",t=(t=>{let e=!1;return()=>{e||(t(),e=!0)}})(t),{once:!0,capture:!0}),xi("pagehide",t,{once:!0,capture:!0}),e(()=>{t(),$i("visibilitychange",t,{capture:!0}),$i("pagehide",t,{capture:!0})}))})(()=>{t||(Dr(),t=!0)});const n=_n();let r=n.getUser();n.addScopeListener(e=>{const n=e.getUser();r?.id===n?.id&&r?.ip_address===n?.ip_address||(r=n,t&&Dr())}),"route"===e&&Ni(({from:e,to:n})=>{e!==n&&(Rr({ignoreDuration:!0}),Dr(),t=!0)})}}},oo=()=>({name:"CultureContext",preprocessEvent(t){const e=ao();e&&(t.contexts={...t.contexts,culture:{...e,...t.contexts?.culture}})},processSegmentSpan(t){const e=ao();e&&mr(t,{"culture.locale":e.locale,"culture.timezone":e.timezone,"culture.calendar":e.calendar})}});function ao(){try{const t=ii.Intl;if(!t)return;const e=t.DateTimeFormat().resolvedOptions();return{locale:e.locale,timezone:e.timeZone,calendar:e.calendar}}catch{return}}const co=(t={})=>{const e={onerror:!0,onunhandledrejection:!0,...t};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(t){e.onerror&&(!function(t){!function(t){const e="error";Gt(e,t),Jt(e,te)}(e=>{const{stackParser:n,attachStacktrace:r}=lo();if(yn()!==t||ai())return;const{msg:s,url:i,line:o,column:a,error:c}=e,u=function(t,e,n,r){const s=t.exception=t.exception||{},i=s.values=s.values||[],o=i[0]=i[0]||{},a=o.stacktrace=o.stacktrace||{},c=a.frames=a.frames||[];0===c.length&&c.push({colno:r,lineno:n,filename:po(e)??si(),function:Ht,in_app:!0});return t}(yi(n,c||s,void 0,r,!1),i,o,a);u.level="error",Cr(u,{originalException:c,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})})}(t),uo("onerror")),e.onunhandledrejection&&(!function(t){!function(t){const e="unhandledrejection";Gt(e,t),Jt(e,ne)}(e=>{const{stackParser:n,attachStacktrace:r}=lo();if(yn()!==t||ai())return;const s=function(t){if(de(t))return t;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch{}return t}(e),i=de(s)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(s)}`}]}}:yi(n,s,void 0,r,!0);i.level="error",Cr(i,{originalException:s,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})})}(t),uo("onunhandledrejection"))}}};function uo(t){Wi&&Ut.log(`Global Handler attached: ${t}`)}function lo(){const t=yn();return t?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}function po(t){if(ce(t)&&0!==t.length)return t.startsWith("data:")?`<${function(t,e=!0){if(t.startsWith("data:")){const n=t.match(/^data:([^;,]+)/),r=n?n[1]:"text/plain",s=t.includes(";base64,"),i=t.indexOf(",");let o="";if(e&&-1!==i){const e=t.slice(i+1);o=e.length>10?`${e.slice(0,10)}... [truncated]`:e}return`data:${r}${s?",base64":""}${o?`,${o}`:""}`}return t}(t,!1)}>`:t}const ho=()=>({name:"HttpContext",preprocessEvent(t){if(!ii.navigator&&!ii.location&&!ii.document)return;const e=ui(),n={...e.headers,...t.request?.headers};t.request={...e,...t.request,headers:n}},processSegmentSpan(t){const e=t.attributes?.[bn];if(!ii.navigator&&!ii.location&&!ii.document)return;const n=ui();mr(t,{[fr]:"http.client"!==e?n.url:void 0,"http.request.header.user_agent":n.headers["User-Agent"],"http.request.header.referer":n.headers.Referer})}}),fo=(t={})=>{const e=t.limit||5,n=t.key||"cause";return{name:"LinkedErrors",preprocessEvent(t,r,s){Ms(di,s.getOptions().stackParser,n,e,t,r)}}},mo=/^HTML(\w*)Element$/;function go(t){if("undefined"!=typeof window&&t===window)return"[Window]";if("undefined"!=typeof document&&t===document)return"[Document]";if(function(t){if("undefined"==typeof Element)return!1;try{return t instanceof Element}catch{return!1}}(t)){const e=function(t){const e=Object.getPrototypeOf(t);return e?.constructor?e.constructor.name:"null prototype"}(t);if(mo.test(e))return`[HTMLElement: ${Ai(t)}]`}}function _o(){return!!function(){if(void 0===ii.window)return!1;const t=ii;if(t.nw)return!1;const e=t.chrome||t.browser;if(!e?.runtime?.id)return!1;const n=si();return!(ii===ii.top&&/^(?:chrome-extension|moz-extension|ms-browser-extension|safari-web-extension):\/\//.test(n))}()&&(Wi&&Dt(()=>{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 yo(t){return[Os(),As(),Ys(),eo(),Xi(),co(),fo(),qs(),ho(),oo(),io()]}function vo(t={}){const e=!t.skipBrowserExtensionCheck&&_o();let n=null==t.defaultIntegrations?yo():t.defaultIntegrations;const r={...t,enabled:!e&&t.enabled,stackParser:(s=t.stackParser||Gi,Array.isArray(s)?Bt(...s):s),integrations:Ur({integrations:t.integrations,defaultIntegrations:n}),transport:t.transport||zi};var s;return Pe=go,ws(Ei,r)}class bo{constructor(){this.initialized=!1}static initialize(t){const e=bo.getInstance();if(e.initialized)return void Or("component",t);vo({dsn:"https://98a864152051bb3d42f8e955f2ab3078@sentry.mapvx.app/6",environment:"production",release:"0.1.3"}),Or("component",t),e.initialized=!0}static getInstance(){return bo.instance||(bo.instance=new bo),bo.instance}error(t,e){Ar(t,e?{extra:e}:void 0)}info(t,e){Pr(t,{level:"info",extra:e})}warning(t,e){Pr(t,{level:"warning",extra:e})}critical(t,e){Pr(t,{level:"fatal",extra:e})}}var Eo,wo,So,xo,$o,ko,Io,Ao,Po,Co,Oo,Ro,To,Mo,Do,No=Object.defineProperty,Lo=Object.getOwnPropertyDescriptor,jo=t=>{throw TypeError(t)},Uo=(t,e,n,r)=>{for(var s,i=r>1?void 0:r?Lo(e,n):e,o=t.length-1;o>=0;o--)(s=t[o])&&(i=(r?s(e,n,i):s(i))||i);return r&&i&&No(e,n,i),i},Ho=(t,e,n)=>e.has(t)||jo("Cannot "+n),zo=(t,e,n)=>(Ho(t,e,"read from private field"),n?n.call(t):e.get(t)),Wo=(t,e,n)=>e.has(t)?jo("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),Bo=(t,e,n,r)=>(Ho(t,e,"write to private field"),e.set(t,n),n);let qo=class extends ct{constructor(){super(...arguments),this.styles=[a`
39
39
  :host {
40
40
  display: block;
41
41
  height: 100%;
@@ -56,7 +56,7 @@ const dt=t=>(e,n)=>{void 0!==n?n.addInitializer(()=>{customElements.define(t,e)}
56
56
  background: #fff;
57
57
  box-shadow: 0 0 24px #00000026;
58
58
  }
59
- `],Wo(this,Eo,""),Wo(this,wo,""),Wo(this,So,!0),Wo(this,xo,"es"),Wo(this,$o,""),Wo(this,ko,""),Wo(this,Io,""),Wo(this,Ao,22.5),Wo(this,Po,22.5),Wo(this,Co,21),Wo(this,Oo,72),Wo(this,Ro,72),Wo(this,To,72),Wo(this,Mo,24),Wo(this,Do,"left-panel-stack"),this._destinationId="",this._hasInitialized=!1,this._swPath="/mvx-tiles-sw.js",this._swScope="/",this._swRegistration=null,this.sdkController=new t(this),this.analyticsController=yt.getInstance(),this._customMapRef=null}get apiKey(){return zo(this,Eo)}set apiKey(t){Bo(this,Eo,t)}get parentPlaceId(){return zo(this,wo)}set parentPlaceId(t){Bo(this,wo,t)}get enable3D(){return zo(this,So)}set enable3D(t){Bo(this,So,t)}get locale(){return zo(this,xo)}set locale(t){Bo(this,xo,t)}get originId(){return zo(this,$o)}set originId(t){Bo(this,$o,t)}get institutionId(){return zo(this,ko)}set institutionId(t){Bo(this,ko,t)}get institutionName(){return zo(this,Io)}set institutionName(t){Bo(this,Io,t)}get fitMaxZoom(){return zo(this,Ao)}set fitMaxZoom(t){Bo(this,Ao,t)}get singlePointMaxZoom(){return zo(this,Po)}set singlePointMaxZoom(t){Bo(this,Po,t)}get routeFitMaxZoom(){return zo(this,Co)}set routeFitMaxZoom(t){Bo(this,Co,t)}get cameraPaddingTop(){return zo(this,Oo)}set cameraPaddingTop(t){Bo(this,Oo,t)}get cameraPaddingRight(){return zo(this,Ro)}set cameraPaddingRight(t){Bo(this,Ro,t)}get cameraPaddingBottom(){return zo(this,To)}set cameraPaddingBottom(t){Bo(this,To,t)}get cameraPaddingLeft(){return zo(this,Mo)}set cameraPaddingLeft(t){Bo(this,Mo,t)}get overlayPaddingMode(){return zo(this,Do)}set overlayPaddingMode(t){Bo(this,Do,t)}get destinationId(){return this._destinationId}set destinationId(t){const e=this._destinationId;this._destinationId=t,e===t&&t&&this.originId&&this._hasInitialized&&queueMicrotask(()=>{this.sdkController.setOriginAndDestination(this.originId,t).then(()=>{this.sendEvent("destination_reloaded",{origin_id:this.originId,destination_id:t})})}),this.requestUpdate("destinationId",e)}async _loadComponents(){await Promise.all([mt(),import("./components-P8ZEdF4n.js").then(t=>t.f),import("./components-P8ZEdF4n.js").then(t=>t.q),import("./components-P8ZEdF4n.js").then(t=>t.r)])}mapVxRequestContext(){if("undefined"==typeof window)return{mvxProduct:"webcomponents",institutionId:this.institutionId||void 0,institutionName:this.institutionName||void 0};return{mvxProduct:"webcomponents",baseUrl:`${window.location.origin}${window.location.pathname}`.replace(/\/$/,"")||window.location.origin,parentPlace:this.parentPlaceId||void 0,originId:this.originId||void 0,totemId:this.originId||void 0,institutionId:this.institutionId||void 0,institutionName:this.institutionName||void 0,fullUrl:window.location.href}}_tilePrefetchCredentials(){return{apiKey:this.apiKey||this.getAttribute("apiKey")||"",placeId:this.parentPlaceId||this.getAttribute("parentPlaceId")||""}}async _initTileServiceWorker(){if(this._swRegistration=await St(this._swPath,this._swScope),await wt(),this._syncTilePrefetch(),!this._stopTileRefresh){const{apiKey:t,placeId:e}=this._tilePrefetchCredentials();this._stopTileRefresh=$t(this._swRegistration,{apiKey:t,placeId:e})}}_syncTilePrefetch(){const{apiKey:t,placeId:e}=this._tilePrefetchCredentials();xt(this._swRegistration,{apiKey:t,placeId:e})}async firstUpdated(){this._initTileServiceWorker();const t=this._loadComponents(),e=_t();await Promise.all([t,e]),this.analyticsController.initialize("route-view-totems"),bo.initialize("route-view-totems"),this.sendEvent("initial_render"),this._hasInitialized=!0}sendEvent(t,e={}){const n=this.sdkController.getDestination(),r={...e,apiKey:this.apiKey,locale:this.locale,parentPlaceId:this.parentPlaceId,originId:this.originId,host:window.location.host,pathname:window.location.pathname,search:window.location.search,hash:window.location.hash,referrer:document.referrer,userAgent:navigator.userAgent,screenWidth:window.innerWidth,destinationName:n?.title,destinationId:n?.mapvxId,destinationClientId:n?.clientId??this.destinationId,parentId:this.parentPlaceId??n?.parentId,institutionId:n?.parentInstitutionId};this.analyticsController.trackEvent(t,r)}_mapReadyHandler(){this.sendEvent("map_ready"),this.sdkController.setMapReady(!0)}_cameraInitializedHandler(){this.sdkController.setCameraInitialized(!0),this.sendEvent("view_loaded")}updated(t){if(this.apiKey&&this.locale&&this.parentPlaceId&&(t.has("apiKey")||t.has("locale")||t.has("parentPlaceId")||t.has("originId")||t.has("institutionId")||t.has("institutionName"))){const e=t.get("parentPlaceId");t.has("parentPlaceId")&&e!==this.parentPlaceId&&this.sdkController.clearParentPlace();const n=this.mapVxRequestContext();this.sdkController.prewarm(this.apiKey,this.locale,this.parentPlaceId,{originId:this.originId,destinationId:this.destinationId,mapvxRequestContext:n}),this.sdkController.initialize(this.apiKey,this.locale,this.parentPlaceId,n),(t.has("apiKey")||t.has("parentPlaceId"))&&this._syncTilePrefetch()}this.originId&&t.has("destinationId")&&this.sdkController.setOriginAndDestination(this.originId,this.destinationId).finally(()=>{this.sendEvent("set_origin_and_destination",{origin_id:this.originId,destination_id:this.destinationId})})}render(){return q`
59
+ `],Wo(this,Eo,""),Wo(this,wo,""),Wo(this,So,!0),Wo(this,xo,"es"),Wo(this,$o,""),Wo(this,ko,""),Wo(this,Io,""),Wo(this,Ao,22.5),Wo(this,Po,22.5),Wo(this,Co,21),Wo(this,Oo,72),Wo(this,Ro,72),Wo(this,To,72),Wo(this,Mo,24),Wo(this,Do,"left-panel-stack"),this._destinationId="",this._hasInitialized=!1,this._swPath="/mvx-tiles-sw.js",this._swScope="/",this._swRegistration=null,this.sdkController=new t(this),this.analyticsController=yt.getInstance(),this._customMapRef=null}get apiKey(){return zo(this,Eo)}set apiKey(t){Bo(this,Eo,t)}get parentPlaceId(){return zo(this,wo)}set parentPlaceId(t){Bo(this,wo,t)}get enable3D(){return zo(this,So)}set enable3D(t){Bo(this,So,t)}get locale(){return zo(this,xo)}set locale(t){Bo(this,xo,t)}get originId(){return zo(this,$o)}set originId(t){Bo(this,$o,t)}get institutionId(){return zo(this,ko)}set institutionId(t){Bo(this,ko,t)}get institutionName(){return zo(this,Io)}set institutionName(t){Bo(this,Io,t)}get fitMaxZoom(){return zo(this,Ao)}set fitMaxZoom(t){Bo(this,Ao,t)}get singlePointMaxZoom(){return zo(this,Po)}set singlePointMaxZoom(t){Bo(this,Po,t)}get routeFitMaxZoom(){return zo(this,Co)}set routeFitMaxZoom(t){Bo(this,Co,t)}get cameraPaddingTop(){return zo(this,Oo)}set cameraPaddingTop(t){Bo(this,Oo,t)}get cameraPaddingRight(){return zo(this,Ro)}set cameraPaddingRight(t){Bo(this,Ro,t)}get cameraPaddingBottom(){return zo(this,To)}set cameraPaddingBottom(t){Bo(this,To,t)}get cameraPaddingLeft(){return zo(this,Mo)}set cameraPaddingLeft(t){Bo(this,Mo,t)}get overlayPaddingMode(){return zo(this,Do)}set overlayPaddingMode(t){Bo(this,Do,t)}get destinationId(){return this._destinationId}set destinationId(t){const e=this._destinationId;this._destinationId=t,e===t&&t&&this.originId&&this._hasInitialized&&queueMicrotask(()=>{this.sdkController.setOriginAndDestination(this.originId,t).then(()=>{this.sendEvent("destination_reloaded",{origin_id:this.originId,destination_id:t})})}),this.requestUpdate("destinationId",e)}async _loadComponents(){await Promise.all([mt(),import("./components-BfTs1Lia.js").then(t=>t.f),import("./components-BfTs1Lia.js").then(t=>t.q),import("./components-BfTs1Lia.js").then(t=>t.r)])}mapVxRequestContext(){if("undefined"==typeof window)return{mvxProduct:"webcomponents",institutionId:this.institutionId||void 0,institutionName:this.institutionName||void 0};return{mvxProduct:"webcomponents",baseUrl:`${window.location.origin}${window.location.pathname}`.replace(/\/$/,"")||window.location.origin,parentPlace:this.parentPlaceId||void 0,originId:this.originId||void 0,totemId:this.originId||void 0,institutionId:this.institutionId||void 0,institutionName:this.institutionName||void 0,fullUrl:window.location.href}}_tilePrefetchCredentials(){return{apiKey:this.apiKey||this.getAttribute("apiKey")||"",placeId:this.parentPlaceId||this.getAttribute("parentPlaceId")||""}}async _initTileServiceWorker(){if(this._swRegistration=await St(this._swPath,this._swScope),await wt(),this._syncTilePrefetch(),!this._stopTileRefresh){const{apiKey:t,placeId:e}=this._tilePrefetchCredentials();this._stopTileRefresh=$t(this._swRegistration,{apiKey:t,placeId:e})}}_syncTilePrefetch(){const{apiKey:t,placeId:e}=this._tilePrefetchCredentials();xt(this._swRegistration,{apiKey:t,placeId:e})}async firstUpdated(){this._initTileServiceWorker();const t=this._loadComponents(),e=_t();await Promise.all([t,e]),this.analyticsController.initialize("route-view-totems"),bo.initialize("route-view-totems"),this.sendEvent("initial_render"),this._hasInitialized=!0}sendEvent(t,e={}){const n=this.sdkController.getDestination(),r={...e,apiKey:this.apiKey,locale:this.locale,parentPlaceId:this.parentPlaceId,originId:this.originId,host:window.location.host,pathname:window.location.pathname,search:window.location.search,hash:window.location.hash,referrer:document.referrer,userAgent:navigator.userAgent,screenWidth:window.innerWidth,destinationName:n?.title,destinationId:n?.mapvxId,destinationClientId:n?.clientId??this.destinationId,parentId:this.parentPlaceId??n?.parentId,institutionId:n?.parentInstitutionId};this.analyticsController.trackEvent(t,r)}_mapReadyHandler(){this.sendEvent("map_ready"),this.sdkController.setMapReady(!0)}_cameraInitializedHandler(){this.sdkController.setCameraInitialized(!0),this.sendEvent("view_loaded")}updated(t){if(this.apiKey&&this.locale&&this.parentPlaceId&&(t.has("apiKey")||t.has("locale")||t.has("parentPlaceId")||t.has("originId")||t.has("institutionId")||t.has("institutionName"))){const e=t.get("parentPlaceId");t.has("parentPlaceId")&&e!==this.parentPlaceId&&this.sdkController.clearParentPlace();const n=this.mapVxRequestContext();this.sdkController.prewarm(this.apiKey,this.locale,this.parentPlaceId,{originId:this.originId,destinationId:this.destinationId,mapvxRequestContext:n}),this.sdkController.initialize(this.apiKey,this.locale,this.parentPlaceId,n),(t.has("apiKey")||t.has("parentPlaceId"))&&this._syncTilePrefetch()}this.originId&&t.has("destinationId")&&this.sdkController.setOriginAndDestination(this.originId,this.destinationId).finally(()=>{this.sendEvent("set_origin_and_destination",{origin_id:this.originId,destination_id:this.destinationId})})}render(){return q`
60
60
  <div class="route-container" data-testid="route-container" style="height: 100%; width: 100%;">
61
61
  <custom-map
62
62
  class="map-container"
@@ -83,4 +83,4 @@ const dt=t=>(e,n)=>{void 0!==n?n.addInitializer(()=>{customElements.define(t,e)}
83
83
  <route-options data-testid="route-options"></route-options>
84
84
  </div>
85
85
  `}_accessibilityChangeHandler(t){this.sdkController.setAccessibleRoute(t.detail),this.sendEvent("accessibility_change",{accessible:t.detail})}_repeatRouteHandler(){this.sdkController.repeatRoute(),this.sendEvent("route_repeat")}_generateRouteHandler(t){this.sdkController.generateRoute(),this.sendEvent("route_generate",t.detail)}_backHandler(){const t=this.sdkController.getDestination();this.sendEvent("back_navigation_triggered",{had_route:!!this.sdkController.getDestination(),from_destination_id:t?.mapvxId,from_destination_name:t?.title}),this.destinationId="",this.originId="",this.sdkController.resetData()}_updateFloorHandler(t){const e=t.detail;this.sdkController.setFloor(e),this.sendEvent("floor_change",{floor_id:e})}_startRouteAnimationHandler(){this.sdkController.startRouteAnimation(),this.sendEvent("route_animation_start")}_routeAnimationFinishedHandler(){this.sdkController.routeAnimationFinished(),this.sendEvent("route_animation_finish")}_dismissRouteErrorHandler(){this.sdkController.clearRouteError()}async updateComponent(t){const e=this.destinationId;console.info("[MAP] updateComponent start",{params:t,previousDestinationId:e});try{const n=this._customMapRef||this.shadowRoot?.querySelector("custom-map"),r=!t.originId&&!!t.destinationId;return n&&await n.clearMap(r,"Actualizando mapa..."),t.originId&&(this.originId=t.originId),void 0!==t.destinationId&&(this.destinationId=t.destinationId),t.floor&&this.sdkController.setFloor(t.floor),await this.updateComplete,this.originId&&this.destinationId&&await this.sdkController.setOriginAndDestination(this.originId,this.destinationId),console.info("[MAP] updateComponent complete",{previousDestinationId:e,newDestinationId:this.destinationId}),this.sendEvent("update_component",{previous_destination_id:e,new_destination_id:this.destinationId,new_origin_id:t.originId}),{success:!0,previousDestinationId:e,newDestinationId:this.destinationId}}catch(n){return console.error("[MAP] updateComponent error",n),{success:!1,error:n instanceof Error?n.message:"Unknown error",previousDestinationId:e,newDestinationId:this.destinationId}}}async clearMap(t=!0){const e=this._customMapRef||this.shadowRoot?.querySelector("custom-map");e&&await e.clearMap(t)}isLoading(){const t=this._customMapRef||this.shadowRoot?.querySelector("custom-map");return t?.isLoadingVisible()??!1}getMarkerVisibility(){const t=this._customMapRef||this.shadowRoot?.querySelector("custom-map");return t?.areMarkersVisible()??{originVisible:!1,destinationVisible:!1,bothVisible:!1}}connectedCallback(){super.connectedCallback(),this.addEventListener("accessibilityChange",this._accessibilityChangeHandler),this.addEventListener("repeatRoute",this._repeatRouteHandler),this.addEventListener("generateRoute",this._generateRouteHandler),this.addEventListener("back",this._backHandler),this.addEventListener("startRouteAnimation",this._startRouteAnimationHandler),this.addEventListener("routeAnimationFinished",this._routeAnimationFinishedHandler),this.addEventListener("dismissRouteError",this._dismissRouteErrorHandler)}disconnectedCallback(){this._stopTileRefresh?.(),this._stopTileRefresh=void 0,super.disconnectedCallback(),this.removeEventListener("accessibilityChange",this._accessibilityChangeHandler),this.removeEventListener("repeatRoute",this._repeatRouteHandler),this.removeEventListener("generateRoute",this._generateRouteHandler),this.removeEventListener("back",this._backHandler),this.removeEventListener("startRouteAnimation",this._startRouteAnimationHandler),this.removeEventListener("routeAnimationFinished",this._routeAnimationFinishedHandler),this.removeEventListener("dismissRouteError",this._dismissRouteErrorHandler)}};Eo=/* @__PURE__ */new WeakMap,wo=/* @__PURE__ */new WeakMap,So=/* @__PURE__ */new WeakMap,xo=/* @__PURE__ */new WeakMap,$o=/* @__PURE__ */new WeakMap,ko=/* @__PURE__ */new WeakMap,Io=/* @__PURE__ */new WeakMap,Ao=/* @__PURE__ */new WeakMap,Po=/* @__PURE__ */new WeakMap,Co=/* @__PURE__ */new WeakMap,Oo=/* @__PURE__ */new WeakMap,Ro=/* @__PURE__ */new WeakMap,To=/* @__PURE__ */new WeakMap,Mo=/* @__PURE__ */new WeakMap,Do=/* @__PURE__ */new WeakMap,Uo([ht({type:String})],qo.prototype,"apiKey",1),Uo([ht({type:String})],qo.prototype,"parentPlaceId",1),Uo([ht({type:Boolean,attribute:"enable-3d"})],qo.prototype,"enable3D",1),Uo([ht({type:String})],qo.prototype,"locale",1),Uo([ht({type:String})],qo.prototype,"originId",1),Uo([ht({type:String,attribute:"institution-id"})],qo.prototype,"institutionId",1),Uo([ht({type:String,attribute:"institution-name"})],qo.prototype,"institutionName",1),Uo([ht({type:Number,attribute:"fit-max-zoom"})],qo.prototype,"fitMaxZoom",1),Uo([ht({type:Number,attribute:"single-point-max-zoom"})],qo.prototype,"singlePointMaxZoom",1),Uo([ht({type:Number,attribute:"route-fit-max-zoom"})],qo.prototype,"routeFitMaxZoom",1),Uo([ht({type:Number,attribute:"camera-padding-top"})],qo.prototype,"cameraPaddingTop",1),Uo([ht({type:Number,attribute:"camera-padding-right"})],qo.prototype,"cameraPaddingRight",1),Uo([ht({type:Number,attribute:"camera-padding-bottom"})],qo.prototype,"cameraPaddingBottom",1),Uo([ht({type:Number,attribute:"camera-padding-left"})],qo.prototype,"cameraPaddingLeft",1),Uo([ht({type:String,attribute:"overlay-padding-mode"})],qo.prototype,"overlayPaddingMode",1),Uo([ht({type:String,reflect:!0})],qo.prototype,"destinationId",1),qo=Uo([dt("route-view-totems")],qo);export{yt as A,Ei as B,Et as D,F as E,vt as M,qo as R,bo as S,ct as a,gt as b,q as c,dt as d,o as e,ft as f,yo as g,Gi as h,a as i,rn as j,bt as k,mt as l,zi as m,ht as n,kt as o,_t as p,St as r,$t as s,xt as t,wt as w};
86
- //# sourceMappingURL=route-view-totems-DoAr4DQV.js.map
86
+ //# sourceMappingURL=route-view-totems-Dvggb-ZM.js.map