PageSourceSearch

https://centralparkzoo.com/vite/assets/sentry-BnFudmDI.js

js centralparkzoo.com collected 2026-10-02 04:56:15 UTC 419,566 bytes, 503 lines download raw bytes

1import{r as e}from"./rolldown-runtime-C0FnF6B9.js";function t(e){var n=[];if(this instanceof t)e=this;else if(arguments.length==0)return new t;return e.listen=e.subscribe=function(t,r){return n.push({callback:t,scope:r||e}),e},e.ignore=e.unsubscribe=function(t){return n=n.filter(function(e){return e.callback!==t}),e},e.emit=e.publish=function(){for(var t=0;t<n.length;t++)n[t].callback.apply(n[t].scope,arguments);return e},e}var n=t(t),r=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,i=globalThis,a=`11.0.0`;function o(){return s(i),i}function s(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||`11.0.0`,t[a]=t[`11.0.0`]||{}}function c(e,t,n=i){let r=n.__SENTRY__=n.__SENTRY__||{},o=r[a]=r[`11.0.0`]||{};return o[e]||(o[e]=t())}var l=[`debug`,`info`,`warn`,`error`,`log`,`assert`,`trace`],u=`Sentry Logger `,d={};function f(e){if(!(`console`in i))return e();let t=i.console,n={},r=Object.keys(d);r.forEach(e=>{let r=d[e];n[e]=t[e],t[e]=r});try{return e()}finally{r.forEach(e=>{t[e]=n[e]})}}function p(){b().enabled=!0}function m(){b().enabled=!1}function h(){return b().enabled}function g(...e){y(`log`,...e)}function _(...e){y(`warn`,...e)}function v(...e){y(`error`,...e)}function y(e,...t){r&&h()&&f(()=>{i.console[e](`${u}[${e}]:`,...t)})}function b(){return r?c(`loggerSettings`,()=>({enabled:!1})):{enabled:!1}}var x={enable:p,disable:m,isEnabled:h,log:g,warn:_,error:v},S=50,C=/\(error: (.*)\)/,w=/captureMessage|captureException/;function T(...e){let t=e.sort((e,t)=>e[0]-t[0]).map(e=>e[1]);return(e,n=0,r=0)=>{let i=[],a=e.split(`
2`);for(let e=n;e<a.length;e++){let n=a[e];n.length>1024&&(n=n.slice(0,1024));let o=C.test(n)?n.replace(C,`$1`):n;if(!o.includes(`Error: `)){for(let e of t){let t=e(o);if(t){i.push(t);break}}if(i.length>=S+r)break}}return ee(i.slice(r))}}function E(e){return Array.isArray(e)?T(...e):e}function ee(e){if(!e.length)return[];let t=Array.from(e);return/sentryWrapped/.test(te(t).function||``)&&t.pop(),t.reverse(),w.test(te(t).function||``)&&(t.pop(),w.test(te(t).function||``)&&t.pop()),t.slice(0,S).map(e=>({...e,filename:e.filename||te(t).filename,function:e.function||`?`}))}function te(e){return e[e.length-1]||{}}var ne=`<anonymous>`;function D(e){try{return!e||typeof e!=`function`?ne:e.name||ne}catch{return ne}}function re(e){let t=e.exception;if(t){let e=[];try{return t.values.forEach(t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)}),e}catch{return}}}function ie(e){let t=e?.startsWith(`file://`)?e.slice(7):e;return t?.match(/\/[A-Z]:/)&&(t=t.slice(1)),t}var ae={},O={};function oe(e,t){return ae[e]=ae[e]||[],ae[e].push(t),()=>{let n=ae[e];if(n){let e=n.indexOf(t);e!==-1&&n.splice(e,1)}}}function se(e,t){if(!O[e]){O[e]=!0;try{t()}catch(t){r&&x.error(`Error while instrumenting ${e}`,t)}}}function ce(e,t){let n=e&&ae[e];if(n)for(let i of n)try{i(t)}catch(t){r&&x.error(`Error while triggering instrumentation handler.
3Type: ${e}
4Name: ${D(i)}
5Error:`,t)}}var le=null;function ue(e){let t=`error`;oe(t,e),se(t,de)}function de(){le=i.onerror,i.onerror=function(e,t,n,r,i){return ce(`error`,{column:r,error:i,line:n,msg:e,url:t}),le?le.apply(this,arguments):!1},i.onerror.__SENTRY_INSTRUMENTED__=!0}var fe=null;function pe(e){let t=`unhandledrejection`;oe(t,e),se(t,me)}function me(){fe=i.onunhandledrejection,i.onunhandledrejection=function(e){return ce(`unhandledrejection`,e),!fe||fe.apply(this,arguments)},i.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}var he=Object.prototype.toString;function ge(e){switch(he.call(e)){case`[object Error]`:case`[object Exception]`:case`[object DOMException]`:case`[object WebAssembly.Exception]`:return!0;default:return Oe(e,Error)}}function _e(e,t){return he.call(e)===`[object ${t}]`}function ve(e){return _e(e,`ErrorEvent`)}function ye(e){return _e(e,`DOMError`)}function be(e){return _e(e,`DOMException`)}function k(e){return _e(e,`String`)}function xe(e){return typeof e==`object`&&!!e&&`__sentry_template_string__`in e&&`__sentry_template_values__`in e}function Se(e){return e===null||xe(e)||typeof e!=`object`&&typeof e!=`function`}function Ce(e){return _e(e,`Object`)}function we(e){return typeof e==`object`&&!!e}function Te(e){return typeof Event<`u`&&Oe(e,Event)}function Ee(e){return _e(e,`RegExp`)}function De(e){return!!(e?.then&&typeof e.then==`function`)}function Oe(e,t){try{return e instanceof t}catch{return!1}}function ke(e){return typeof Request<`u`&&Oe(e,Request)}function Ae(e,t,n){if(!(t in e))return;let i=e[t];if(typeof i!=`function`)return;let a=n(i);typeof a==`function`&&Me(a,i);try{e[t]=a}catch{r&&x.log(`Failed to replace method "${t}" in object`,e)}}function je(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{r&&x.log(`Failed to add non-enumerable property "${String(t)}" to object`,e)}}function Me(e,t){try{e.prototype=t.prototype=t.prototype||{},je(e,`__sentry_original__`,t)}catch{}}function Ne(e){return e.__sentry_original__}function Pe(e){if(ge(e))return{message:e.message,name:e.name,stack:e.stack,...Fe(e)};
5if(Te(e)){let{type:t,target:n,currentTarget:r,detail:i}=e;return{type:t,target:n,currentTarget:r,...i?{detail:i}:{},...Fe(e)}}return e}function Fe(e){return we(e)?Object.fromEntries(Object.entries(e)):{}}function Ie(e){let t=Object.keys(Pe(e));return t.sort(),t[0]?t.join(`, `):`[object has no keys]`}var Le;function Re(e){if(Le!==void 0)return Le?Le(e):e();let t=Symbol.for(`__SENTRY_SAFE_RANDOM_ID_WRAPPER__`),n=i;return t in n&&typeof n[t]==`function`?(Le=n[t],Le(e)):(Le=null,e())}function ze(){return Re(()=>Math.random())}function Be(){return Re(()=>Date.now())}var Ve=Symbol.for(`sentry.skipNormalization`),He=Symbol.for(`sentry.overrideNormalizationDepth`);function Ue(e){je(e,Ve,!0)}function We(e){return!!e[Ve]}function Ge(e){let t=e[He];return typeof t==`number`?t:void 0}var Ke;function qe(e){Ke=e}function Je(e,t=100,n=1/0){try{return Xe(``,e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function Ye(e,t=3,n=102400){let r=Je(e,t);return et(r)>n?Ye(e,t-1,n):r}function Xe(e,t,n=1/0,r=1/0,i=tt()){let[a,o]=i;if(t==null||[`boolean`,`string`].includes(typeof t)||typeof t==`number`&&Number.isFinite(t))return t;let s=Ze(e,t);if(!s.startsWith(`[object `))return s;if(We(t))return t;let c=Ge(t),l=c===void 0?n:c;if(l===0)return s.replace(`object `,``);if(a(t))return`[Circular ~]`;let u=t;if(u&&typeof u.toJSON==`function`)try{return Xe(``,u.toJSON(),l-1,r,i)}catch{}let d=Array.isArray(t)?[]:{},f=0,p=Pe(t);for(let e in p){if(!Object.prototype.hasOwnProperty.call(p,e))continue;if(f>=r){d[e]=`[MaxProperties ~]`;break}let t=p[e];d[e]=Xe(e,t,l-1,r,i),f++}return o(t),d}function Ze(e,t){try{if(Ke){let e=Ke(t);if(e)return e}return typeof globalThis<`u`&&t===globalThis?`[Global]`:typeof t==`number`&&!Number.isFinite(t)?`[${t}]`:typeof t==`function`?`[Function: ${D(t)}]`:typeof t==`symbol`?`[${String(t)}]`:typeof t==`bigint`?`[BigInt: ${String(t)}]`:`[object ${Qe(t)}]`}catch(e){return`**non-serializable** (${e})`}}function Qe(e){let t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:`null prototype`}function $e(e){return~-encodeURI(e).split(/%..|./).length}function et(e){return $e(JSON.stringify(e))}function tt(){let e=new WeakSet;function t(t){return e.has(t)?!0:(e.add(t),!1)}function n(t){e.delete(t)}return[t,n]}function nt(e,t=0){return typeof e!=`string`||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function rt(e,t){let n=e,r=n.length;if(r<=150)return n;t>r&&(t=r);let i=Math.max(t-60,0);i<5&&(i=0);let a=Math.min(i+140,r);return a>r-5&&(a=r),a===r&&(i=Math.max(a-140,0)),n=n.slice(i,a),i>0&&(n=`'{snip} ${n}`),a<r&&(n+=` {snip}`),n}function it(e,t){if(!Array.isArray(e))return``;let n=[];for(let t=0;t<e.length;t++){let r=e[t];Se(r)?n.push(String(r)):r instanceof Error?n.push(r.message?`${r.name}: ${r.message}`:r.name):n.push(Ze(void 0,r))}return n.join(t)}function at(e,t,n=!1){return k(e)?Ee(t)?t.test(e):k(t)?n?e===t:e.includes(t):typeof t==`function`&&t(e):!1}function ot(e,t=[],n=!1){for(let r of t)if(at(e,r,n))return!0;return!1}function st(){let e=i;return e.crypto||e.msCrypto}var ct;function lt(){return ze()*16}function ut(e=st()){try{if(e?.randomUUID)return Re(()=>e.randomUUID()).replace(/-/g,``)}catch{}return ct||=`10000000100040008000100000000000`,ct.replace(/[018]/g,e=>(e^(lt()&15)>>e/4).toString(16))}function dt(e){return e.exception?.values?.[0]}function ft(e){let{message:t,event_id:n}=e;if(t)return t;let r=dt(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||`<unknown>`:n||`<unknown>`}function pt(e,t,n){let r=e.exception=e.exception||{},i=r.values=r.values||[],a=i[0]=i[0]||{};a.value||=t||``,a.type||=n||`Error`}function mt(e,t){let n=dt(e);n&&gt(n,t)}function ht(e,t){let n=e.exception?.values,r=n?.find(e=>e.mechanism?.exception_id===0)??n?.[0];r&&gt(r,t)}function gt(e,t){let n={type:`generic`,handled:!0},r=e.mechanism;e.mechanism={...n,...r,...t},t&&`data`in t&&(e.mechanism.data={...r?.data,...t.data})}function _t(e,t,n=5){if(t.lineno===void 0)return;let r=e.length,i=Math.max(Math.min(r-1,t.lineno-1),0);t.pre_context=e.slice(Math.max(0,i-n),i).map(e=>rt(e,0)),t.context_line=rt(e[Math.min(r-1,i)],t.colno||0),t.post_context=e.slice(Math.min(i+1,r),i+1+n).map(e=>rt(e,0))}function vt(e){if(yt(e))return!0;try{je(e,`__sentry_captured__`,!0)}catch{}return!1}function yt(e){try{return e.__sentry_captured__}catch{}}var bt=1e3;
5function xt(){return Be()/bt}function St(){let{performance:e}=i;if(!e?.now||!e.timeOrigin)return xt;let t=e.timeOrigin;return()=>(t+Re(()=>e.now()))/bt}var Ct;function wt(){return(Ct??=St())()}var Tt=null;function Et(){let{performance:e}=i;if(!e?.now)return;let t=Re(()=>e.now()),n=Be(),r=e.timeOrigin;return typeof r==`number`&&Math.abs(r+t-n)<3e5?r:n-t}function Dt(){return Tt===null&&(Tt=Et()),Tt}function Ot(e){let t=wt(),n={sid:ut(),init:!0,timestamp:t,started:t,duration:0,status:`ok`,errors:0,ignoreDuration:!1,toJSON:()=>jt(n)};return e&&kt(n,e),n}function kt(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||wt(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:ut()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started==`number`&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration==`number`)e.duration=t.duration;else{let t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors==`number`&&(e.errors=t.errors),t.status&&(e.status=t.status)}function At(e,t){let n={};t?n={status:t}:e.status===`ok`&&(n={status:`exited`}),kt(e,n)}function jt(e){return{sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did==`number`||typeof e.did==`string`?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}}}function Mt(e,t,n=2){if(!t||typeof t!=`object`||n<=0)return t;if(e&&Object.keys(t).length===0)return e;let r={...e};for(let e in t)Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=Mt(r[e],t[e],n-1));return r}function Nt(){return ut()}function Pt(){return ut().substring(16)}var Ft=100,It=class e{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},je(this,`refs`,{}),this._propagationContext={traceId:Nt(),sampleRand:ze()}}clone(){let t=new e;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,t.refs={...this.refs},t}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&kt(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(e){return this._conversationId=e||void 0,this._notifyScopeListeners(),this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this.setTags({[e]:t})}setAttributes(e){return this._attributes={...this._attributes,...e},this._notifyScopeListeners(),this}setAttribute(e,t){return this.setAttributes({[e]:t})}removeAttribute(e){return e in this._attributes&&(delete this._attributes[e],this._notifyScopeListeners()),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return t===null?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;let n=typeof t==`function`?t(this):t,{tags:r,attributes:i,extra:a,user:o,contexts:s,level:c,fingerprint:l=[],propagationContext:u,conversationId:d}=(n instanceof e?n.getScopeData():Ce(n)?t:void 0)||{};return this._tags={...this._tags,...r},this._attributes={...this._attributes,...i},this._extra={...this._extra,...a},this._contexts={...this._contexts,...s},o&&Object.keys(o).length&&(this._user=o),c&&(this._level=c),l.length&&(this._fingerprint=l),u&&(this._propagationContext=u),d&&(this._conversationId=d),this}addBreadcrumb(e,t){let n=typeof t==`number`?t:Ft;if(n<=0)return this;let r={timestamp:xt(),...e,message:e.message?nt(e.message,2048):e.message};return this._breadcrumbs.push(r),this._breadcrumbs.length>n&&(this._breadcrumbs=this._breadcrumbs.slice(-n)),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,attributes:this._attributes,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,conversationId:this._conversationId}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=Mt(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){let n=t?.event_id||ut();if(!this._client)return r&&x.warn(`No client configured on scope - will not capture exception!`),n;let i=Error(`Sentry syntheticException`);return this._client.captureException(e,{originalException:e,syntheticException:i,...t,event_id:n},this),n}captureMessage(e,t,n){let i=n?.event_id||ut();if(!this._client)return r&&x.warn(`No client configured on scope - will not capture message!`),i;let a=n?.syntheticException??Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:a,...n,event_id:i},this),i}captureEvent(e,t){let n=e.event_id||t?.event_id||ut();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(r&&x.warn(`No client configured on scope - will not capture event!`),n)}_notifyScopeListeners(){this._notifyingListeners||=(this._notifyingListeners=!0,this._scopeListeners.forEac
5h(e=>{e(this)}),!1)}};function Lt(){return c(`defaultCurrentScope`,()=>new It)}function Rt(){return c(`defaultIsolationScope`,()=>new It)}var zt=`__SENTRY_SUPPRESS_TRACING__`,Bt=e=>e instanceof Promise&&!e[Vt],Vt=Symbol(`chained PromiseLike`),Ht=(e,t,n)=>{let r=e.then(e=>(t(e),e),e=>{throw n(e),e});return Bt(r)&&Bt(e)?r:Ut(e,r)},Ut=(e,t)=>{if(!t)return e;let n=!1;for(let r in e){if(r in t)continue;n=!0;let i=e[r];typeof i==`function`?Object.defineProperty(t,r,{value:(...t)=>i.apply(e,t),enumerable:!0,configurable:!0,writable:!0}):t[r]=i}return n&&Object.assign(t,{[Vt]:!0}),t},Wt=class{constructor(e,t){let n;n=e||new It;let r;r=t||new It,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){let t=this._pushScope(),n;try{n=e(t)}catch(e){throw this._popScope(),e}return De(n)?Ht(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(){let e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}};function Gt(){let e=s(o());return e.stack=e.stack||new Wt(Lt(),Rt())}function Kt(e){return Gt().withScope(e)}function qt(e,t){let n=Gt();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function Jt(e){return Gt().withScope(()=>e(Gt().getIsolationScope()))}function Yt(){return{suppressTracing:Xt,withIsolationScope:Jt,withScope:Kt,withSetScope:qt,withSetIsolationScope:(e,t)=>Jt(t),getCurrentScope:()=>Gt().getScope(),getIsolationScope:()=>Gt().getIsolationScope()}}function Xt(e){return Kt(t=>{t.setSDKProcessingMetadata({[zt]:!0});let n=e();return t.setSDKProcessingMetadata({[zt]:void 0}),n})}function Zt(e){let t=s(e);return t.acs?t.acs:Yt()}function Qt(e){return typeof e==`object`&&!!e&&!Array.isArray(e)&&Object.keys(e).includes(`value`)}function $t(e,t){let{value:n,unit:r}=Qt(e)?e:{value:e,unit:void 0},i=rn(n),a=r&&typeof r==`string`?{unit:r}:{};if(i)return{...i,...a};if(!t||t===`skip-undefined`&&n===void 0)return;let o=``;try{o=JSON.stringify(n)??``}catch{}return{value:o,type:`string`,...a}}function en(e,t=!1){let n={};for(let[r,i]of Object.entries(e??{})){let e=$t(i,t);e&&(n[r]=e)}return n}function tn(e){if(!e)return 0;let t=0;for(let[n,r]of Object.entries(e)){t+=n.length*2,t+=r.type.length*2,t+=(r.unit?.length??0)*2;let e=r.value;Array.isArray(e)?t+=nn(e[0])*e.length:Se(e)?t+=nn(e):t+=100}return t}function nn(e){return typeof e==`string`?e.length*2:typeof e==`boolean`?4:typeof e==`number`?8:0}function rn(e){if(Array.isArray(e))return{value:e,type:`array`};let t=typeof e==`string`?`string`:typeof e==`boolean`?`boolean`:typeof e==`number`&&!Number.isNaN(e)?Number.isInteger(e)?`integer`:`double`:null;if(t)return{value:e,type:t}}function an(){return s(o()).externalPropagationContextProvider?.()}function on(){return s(o()).externalPropagationContextProvider!==void 0}function A(){return Zt(o()).getCurrentScope()}function j(){return Zt(o()).getIsolationScope()}function sn(){return c(`globalScope`,()=>new It)}function cn(...e){let t=Zt(o());if(e.length===2){let[n,r]=e;return n?t.withSetScope(n,r):t.withScope(r)}return t.withScope(e[0])}function ln(...e){let t=Zt(o());if(e.length===2){let[n,r]=e;return n?t.withSetIsolationScope(n,r):t.withIsolationScope(r)}return t.withIsolationScope(e[0])}function M(){return A().getClient()}function un(e){let t=an();if(t)return{trace_id:t.traceId,span_id:t.spanId};let{traceId:n,parentSpanId:r,propagationSpanId:i}=e.getPropagationContext(),a={trace_id:n,span_id:i||Pt()};return r&&(a.parent_span_id=r),a}var dn=`browser.bfcache.frame`,fn=`browser.bfcache.not_restored_reason_count`,pn=`browser.bfcache.outcome`,mn=`browser.bfcache.reason`,hn=`browser.navigation.id`,gn=`browser.navigation.type`,_n=`browser.paint.type`,vn=`code.file.path`,yn=`code.function.name`,bn=`db.operation.name`,xn=`db.system.name`,Sn=`graphql.document`,Cn=`graphql.operation.name`,wn=`graphql.operation.type`,Tn=`http.request.method`,En=`http.request.same_origin`,Dn=`http.response.body.size`,On=`http.response.size`,kn=`http.response.status_code`,An=`http.route`,jn=`network.connection.effective_type`,Mn=`network.connection.rtt`,Nn=`network.connection.type`,Pn=`router.navigation.route.id`,Fn=`sentry.idle_span_finish_reason`,In=`sentry.op`,Ln=`sentry.origin`,Rn=`sentry.replay_id`,zn=`sentry.sdk.name`,Bn=`sentry.sdk.version`,Vn=`sentry.segment.id`,Hn=`sentry.segment.name`,Un=`sentry.segment.name.source`,Wn=`sentry.trace_lifecycle`,Gn=`sentry.transaction`,Kn=`server.address`,qn=`server.port`,Jn=`ui.component_name`,Yn=`url.domain`,Xn=`url.fragment`,Zn=`url.full`,Qn=`url.path`,$n=`url.query`,er=`url.scheme`,tr=`url.template`,nr=`user_agent.original`,rr=`sentry.sample_rate`,ir=`sentry.previous_trace_sample_rate`,ar=`sentry.op`,or=`sentry.origin`,sr=`sentry.idle_span_finish_reason`,cr=`sentry.measurement_unit`,lr=`sentry.measurement_value`,ur=`sentry.release`,dr=`sentry.environment`,fr=`sentry.sdk.integrations`,pr=`user.id`,mr=`user.email`,hr=`user.ip_address`,gr=`user.name`,_r=`sentry.custom_span_name`,vr=`sentry.profile_id`,yr=`sentry.exclusive_time`,br=`sentry.link.type`,xr=`gen_ai.conversation.id`,Sr=[`ok`,`deadline_exceeded`,`unauthenticated`,`permission_denied`,`not_found`,`resource_exhausted`,`invalid_argument`,`unimplemented`,`unavailable`,`internal_error`,`unknown_error`,`cancelled`,`already_exists`,`failed_precondition`,`aborted`,`out_of_range`,`data_loss`];function Cr(e){return e!==`ok`&&Sr.includes(e)}function wr(e){if(e<400&&e>=100)return{code:1};if(e>=400&&e<500)switch(e){case 401:return{code:2,message:`unauthenticated`};case 403:return{code:2,message:`permission_denied`};case 404:return{code:2,message:`not_found`};case 409:return{code:2,message:`already_exists`};case 413:return{code:2,message:`failed_precondition`};case 429:return{code:2,message:`resource_exhausted`};case 499:return{code:2,message:`cancelled`};default:return{code:2,message:`invalid_argument`}}if(e>=500&&e<600)switch(e){case 501:return{code:2,message:`unimplemented`};case 503:return{code:2,message:`unavailable`};case 504:return{code:2,message:`deadline_exceeded`};default:return{code:2,message:`internal_error`}}return{code:2,message:`internal_error`}}function Tr(e,t){e.setAttribute(`http.response.status_code`,t);let n=wr(t);n.message!==`unknown_error`&&e.setStatus(n)}function Er(e){try{let t=i.WeakRef;if(typeof t==`function`)return new t(e)}catch{}return e}function Dr(e){if(e){if(typeof e==`object`&&`deref`in e&&typeof e.deref==`function`)try{return e.deref()}catch{return}return e}}var Or=`_sentryScope`,kr=`_sentryIsolationScope`,Ar=Symbol.for(`sentry.tracerProviderSpan`);function jr(e,t,n){e&&(je(e,kr,Er(n)),je(e,Or,t))}function Mr(e){let t=e;return{scope:t[Or],isolationScope:Dr(t[kr])}}function Nr(e){return e[Ar]===!0}var Pr=`sentry-`;function Fr(e){let t=Lr(e);
5if(!t)return;let n=Object.entries(t).reduce((e,[t,n])=>{if(t.startsWith(`sentry-`)){let r=t.slice(7);e[r]=n}return e},{});if(Object.keys(n).length>0)return n}function Ir(e){if(e)return zr(Object.entries(e).reduce((e,[t,n])=>(n&&(e[`${Pr}${t}`]=n),e),{}))}function Lr(e){if(e&&(k(e)||Array.isArray(e)))return Array.isArray(e)?e.reduce((e,t)=>{let n=Rr(t);return Object.entries(n).forEach(([t,n])=>{e[t]=n}),e},{}):Rr(e)}function Rr(e){return e.split(`,`).map(e=>{let t=e.indexOf(`=`);return t===-1?[]:[e.slice(0,t),e.slice(t+1)].map(e=>{try{return decodeURIComponent(e.trim())}catch{return}})}).reduce((e,[t,n])=>(t&&n&&(e[t]=n),e),{})}function zr(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((e,[t,n],i)=>{let a=`${encodeURIComponent(t)}=${encodeURIComponent(n)}`,o=i===0?a:`${e},${a}`;return o.length>8192?(r&&x.warn(`Not adding key: ${t} with val: ${n} to baggage header due to exceeding baggage size limits.`),e):o},``)}var Br=/^o(\d+)\./,Vr=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function Hr(e){return e===`http`||e===`https`}function Ur(e,t=!1){let{host:n,path:r,pass:i,port:a,projectId:o,protocol:s,publicKey:c}=e;return`${s}://${c}${t&&i?`:${i}`:``}@${n}${a?`:${a}`:``}/${r&&`${r}/`}${o}`}function Wr(e){let t=Vr.exec(e);if(!t){f(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}let[n,r,i=``,a=``,o=``,s=``]=t.slice(1),c=``,l=s,u=l.split(`/`);if(u.length>1&&(c=u.slice(0,-1).join(`/`),l=u.pop()),l){let e=l.match(/^\d+/);e&&(l=e[0])}return Gr({host:a,pass:i,path:c,projectId:l,port:o,protocol:n,publicKey:r})}function Gr(e){return{protocol:e.protocol,publicKey:e.publicKey||``,pass:e.pass||``,host:e.host,port:e.port||``,path:e.path||``,projectId:e.projectId}}function Kr(e){if(!r)return!0;let{port:t,projectId:n,protocol:i}=e;return[`protocol`,`publicKey`,`host`,`projectId`].find(t=>!e[t]&&(x.error(`Invalid Sentry Dsn: ${t} missing`),!0))?!1:n.match(/^\d+$/)?Hr(i)?t&&isNaN(parseInt(t,10))?(x.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(x.error(`Invalid Sentry Dsn: Invalid protocol ${i}`),!1):(x.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function qr(e){return e.match(Br)?.[1]}function Jr(e){let t=e.getOptions(),{host:n}=e.getDsn()||{},r;return t.orgId?r=String(t.orgId):n&&(r=qr(n)),r}function Yr(e){let t=typeof e==`string`?Wr(e):Gr(e);if(t&&Kr(t))return t}function Xr(e){if(typeof e==`boolean`)return Number(e);let t=typeof e==`string`?parseFloat(e):e;if(!(typeof t!=`number`||isNaN(t)||t<0||t>1))return t}var Zr=RegExp(`^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$`);function Qr(e){if(!e)return;let t=e.match(Zr);if(!t)return;let n;return t[3]===`1`?n=!0:t[3]===`0`&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}function $r(e,t){let n=Qr(e),r=Fr(t);if(!n?.traceId)return{traceId:Nt(),sampleRand:ze()};let i=ni(n,r);r&&(r.sample_rand=i.toString());let{traceId:a,parentSpanId:o,parentSampled:s}=n;return{traceId:a,parentSpanId:o,sampled:s,dsc:r||{},sampleRand:i}}function ei(e=Nt(),t=Pt(),n){let r=``;return n!==void 0&&(r=n?`-1`:`-0`),`${e}-${t}${r}`}function ti(e=Nt(),t=Pt(),n){return`00-${e}-${t}-${n?`01`:`00`}`}function ni(e,t){let n=Xr(t?.sample_rand);if(n!==void 0)return n;let r=Xr(t?.sample_rate);return r&&e?.parentSampled!==void 0?e.parentSampled?ze()*r:r+ze()*(1-r):ze()}function ri(e,t){let n=Jr(e);return t&&n&&t!==n?(x.log(`Won't continue trace because org IDs don't match (incoming baggage: ${t}, SDK options: ${n})`),!1):e.getOptions().strictTraceContinuation&&(t&&!n||!t&&n)?(x.log(`Starting a new trace because strict trace continuation is enabled but one org ID is missing (incoming baggage: ${t}, Sentry client: ${n})`),!1):!0}var ii=`span`;function ai(e,t){t?e.refs[ii]=Er(t):delete e.refs[ii]}function oi(e){return Dr(e.refs[ii])}function si(e){let{spanId:t,traceId:n}=e.spanContext(),{data:r,op:i,parent_span_id:a,status:o,origin:s,links:c}=hi(e);return{parent_span_id:a,span_id:t,trace_id:n,data:r,op:i,status:o,origin:s,links:c}}function ci(e){let{spanId:t,traceId:n,isRemote:r}=e.spanContext(),i=r?t:hi(e).parent_span_id,a=Mr(e).scope;return{parent_span_id:i,span_id:r?a?.getPropagationContext().propagationSpanId||Pt():t,trace_id:n}}function li(e){let{traceId:t,spanId:n}=e.spanContext();return ei(t,n,bi(e))}function ui(e){let{traceId:t,spanId:n}=e.spanContext();return ti(t,n,bi(e))}function di(e){if(e&&e.length>0)return e.map(({context:{spanId:e,traceId:t,traceFlags:n,...r},attributes:i})=>({span_id:e,trace_id:t,sampled:n===1,attributes:i,...r}))}function fi(e){if(e?.length)return e.map(({context:{spanId:e,traceId:t,traceFlags:n},attributes:r})=>({span_id:e,trace_id:t,sampled:n===1,attributes:r}))}function pi(e){return typeof e==`number`?mi(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?mi(e.getTime()):wt(
5)}function mi(e){return e>9999999999?e/1e3:e}function hi(e){if(yi(e))return e.getStaticSpanJSON();let{spanId:t,traceId:n}=e.spanContext();if(vi(e)){let{attributes:r,startTime:i,name:a,endTime:o,status:s,links:c}=e;return{span_id:t,trace_id:n,data:r,description:a,parent_span_id:gi(e),start_timestamp:pi(i),timestamp:pi(o)||void 0,status:xi(s),op:r[ar],origin:r[or],links:di(c)}}return{span_id:t,trace_id:n,start_timestamp:0,status:`ok`,data:{}}}function N(e){if(yi(e))return e.getSpanJSON();let{spanId:t,traceId:n}=e.spanContext();if(vi(e)){let{attributes:r,startTime:i,name:a,endTime:o,status:s,links:c}=e;return{name:a,span_id:t,trace_id:n,parent_span_id:gi(e),start_timestamp:pi(i),end_timestamp:pi(o)||void 0,is_segment:ji(e),status:Si(s),attributes:Ci(r,s),links:fi(c)}}return{span_id:t,trace_id:n,start_timestamp:0,name:``,status:`ok`,is_segment:ji(e),attributes:{}}}function gi(e){return`parentSpanId`in e?e.parentSpanId:`parentSpanContext`in e?e.parentSpanContext?.spanId:void 0}function _i(e){return{...e,end_timestamp:e.end_timestamp??e.start_timestamp,attributes:en(e.attributes),links:e.links?.map(e=>({...e,attributes:en(e.attributes)}))}}function vi(e){let t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function yi(e){return typeof e.getSpanJSON==`function`}function bi(e){let{traceFlags:t}=e.spanContext();return t===1}function xi(e){return!e||e.code===0||e.code===1?`ok`:e.message&&Cr(e.message)?e.message:`internal_error`}function Si(e){return!e||e.code===1||e.code===0||e.message===`cancelled`?`ok`:`error`}function Ci(e,t){let n=Si(t)===`error`?t?.message:void 0;return{...n&&{"sentry.status.message":n},...e}}var wi=`_sentryChildSpans`,Ti=`_sentryRootSpan`;function Ei(e,t){let n=e[Ti]||e;je(t,Ti,n),t.setAttribute(Un,void 0),bi(e)&&(e.isRecording()||n.isRecording())&&(e[wi]?e[wi].add(t):je(e,wi,new Set([t])))}function Di(e,t){e[wi]&&e[wi].delete(t)}function Oi(e){let t=new Set;function n(e){if(!t.has(e)&&bi(e)){t.add(e);let r=e[wi]?Array.from(e[wi]):[];for(let e of r)n(e)}}return n(e),Array.from(t)}var ki=Ai;function Ai(e){return e[Ti]||e}function ji(e){return e===Ai(e)}function P(e){let t=Zt(o());return t.getActiveSpan?t.getActiveSpan(e):oi(e||A())}function Mi(e,t){e.updateName(t),e.setAttributes({[_r]:t}),Ni(e,`custom`)}function Ni(e,t){ji(e)&&e.setAttribute(Un,t)}var Pi=!1;function Fi(){if(Pi)return;function e(){let e=P(),t=e&&ki(e);if(t){let e=`internal_error`;r&&x.log(`[Tracing] Root span: ${e} -> Global error occurred`),t.setStatus({code:2,message:e})}}Pi=!0,ue(e),pe(e)}function Ii(e){if(typeof __SENTRY_TRACING__==`boolean`&&!__SENTRY_TRACING__)return!1;let t=e||M()?.getOptions();return!!t&&(t.tracesSampleRate!=null||!!t.tracesSampler)}function Li(e){x.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}function Ri(e,t){if(!t?.length)return!1;for(let n of t){if(Vi(n)){if(e.description&&at(e.description,n))return r&&Li(e),!0;continue}let t=!!n.attributes&&Object.keys(n.attributes).length>0;if(!n.name&&!n.op&&!t)continue;let i=!n.name||e.description&&at(e.description,n.name),a=!n.op||e.op&&at(e.op,n.op),o=!n.attributes||Object.entries(n.attributes).every(([t,n])=>zi(e.attributes?.[t],n));if(i&&a&&o)return r&&Li(e),!0}return!1}function zi(e,t){return typeof e==`string`&&(typeof t==`string`||t instanceof RegExp)?at(e,t):Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e===t}function Bi(e,t){let n=t.parent_span_id,r=t.span_id;if(n)for(let t of e)t.parent_span_id===r&&(t.parent_span_id=n)}function Vi(e){return typeof e==`string`||e instanceof RegExp}var Hi=[];function Ui(e){let t={};return e.forEach(e=>{let{name:n}=e,r=t[n];r&&!r.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)}),Object.values(t)}function Wi(e){let t=e.defaultIntegrations||[],n=e.integrations;t.forEach(e=>{e.isDefaultInstance=!0});let r;if(Array.isArray(n))r=[...t,...n];else if(typeof n==`function`){let e=n(t);r=Array.isArray(e)?e:[e]}else r=t;return Ui(r)}function Gi(e,t){let n={};return t.forEach(t=>{t?.beforeSetup&&t.beforeSetup(e)}),t.forEach(t=>{t&&qi(e,t,n)}),n}function Ki(e,t){for(let n of t)n?.afterAllSetup&&n.afterAllSetup(e)}
5function qi(e,t,n){if(n[t.name]){r&&x.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,!Hi.includes(t.name)&&typeof t.setupOnce==`function`&&(t.setupOnce(),Hi.push(t.name)),t.setup&&typeof t.setup==`function`&&t.setup(e),typeof t.preprocessEvent==`function`){let n=t.preprocessEvent.bind(t);e.on(`preprocessEvent`,(t,r)=>n(t,r,e))}if(typeof t.processEvent==`function`){let n=t.processEvent.bind(t),r=Object.assign((t,r)=>n(t,r,e),{id:t.name});e.addEventProcessor(r)}[`processSpan`,`processSegmentSpan`].forEach(n=>{let r=t[n];typeof r==`function`&&e.on(n,n=>r.call(t,n,e))}),r&&x.log(`Integration installed: ${t.name}`)}function Ji(e){let t=M();if(!t){r&&x.warn(`Cannot add integration "${e.name}" because no SDK Client is available.`);return}t.addIntegration(e)}function F(e){return e}var Yi=`production`,Xi=Symbol.for(`sentry.nonRecordingSpan`),Zi=class{constructor(e={}){this._traceId=e.traceId||Nt(),this._spanId=e.spanId||Pt(),this.dropReason=e.dropReason,je(this,Xi,!0)}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:0}}end(e){}setAttribute(e,t){return this}setAttributes(e){return this}setStatus(e){return this}updateName(e){return this}isRecording(){return!1}addEvent(e,t,n){return this}addLink(e){return this}addLinks(e){return this}recordException(e,t){}};function Qi(e){return!!e&&e[Xi]===!0}var $i=`_frozenDsc`;function ea(e,t){je(e,$i,t)}function ta(e,t){let n=t.getOptions(),{publicKey:r}=t.getDsn()||{},i={environment:n.environment||`production`,release:n.release,public_key:r,trace_id:e,org_id:Jr(t)};return t.emit(`createDsc`,i),i}function na(e,t){if(an())return;let n=t.getPropagationContext();return n.dsc||ta(n.traceId,e)}function ra(e){let t=M();if(!t)return{};let n=ki(e),r=hi(n),i=r.data,a=n.spanContext().traceState,o=a?.get(`sentry.sample_rate`)??i[`sentry.sample_rate`]??i[`sentry.previous_trace_sample_rate`];function s(e){return(typeof o==`number`||typeof o==`string`)&&(e.sample_rate=`${o}`),e}let c=n[$i];if(c)return s(c);let l=Qi(n),u=l&&n.dropReason===`ignored`;if(l&&(!Ii(t.getOptions())||u)){let e=Mr(n).scope,r=e&&na(t,e);if(r){let e={...r};return u&&(e.sampled=`false`),s(e)}}let d=a?.get(`sentry.dsc`),f=d&&Fr(d);if(f)return s(f);let p=ta(e.spanContext().traceId,t),m=i[Un],h=r.description;return m!==`url`&&h&&(p.transaction=h),Ii()&&(p.sampled=String(bi(n)),p.sample_rand=a?.get(`sentry.sample_rand`)??Mr(n).scope?.getPropagationContext().sampleRand.toString()),s(p),t.emit(`createDsc`,p,n),p}function ia(e){return Ir(ra(e))}function aa(e,t){let{fingerprint:n,breadcrumbs:r,sdkProcessingMetadata:i}=t;la(e,t),pa(e,n),ua(e,r),da(e,i)}function oa(e,t){let{extra:n,tags:r,attributes:i,user:a,contexts:o,level:s,sdkProcessingMetadata:c,breadcrumbs:l,fingerprint:u,eventProcessors:d,attachments:f,propagationContext:p,transactionName:m}=t;sa(e,`extra`,n),sa(e,`tags`,r),sa(e,`attributes`,i),sa(e,`user`,a),sa(e,`contexts`,o),e.sdkProcessingMetadata=Mt(e.sdkProcessingMetadata,c,2),s&&(e.level=s),m&&(e.transactionName=m),l.length&&(e.breadcrumbs=[...e.breadcrumbs,...l]),u.length&&(e.fingerprint=[...e.fingerprint,...u]),d.length&&(e.eventProcessors=[...e.eventProcessors,...d]),f.length&&(e.attachments=[...e.attachments,...f]),e.propagationContext={...e.propagationContext,...p}}function sa(e,t,n){e[t]=Mt(e[t],n,1)}function ca(e,t){let n=sn().getScopeData();return e&&oa(n,e.getScopeData()),t&&oa(n,t.getScopeData()),n}function la(e,t){let{extra:n,tags:r,user:i,contexts:a,level:o,transactionName:s}=t;Object.keys(n).length&&(e.extra={...n,...e.extra}),Object.keys(r).length&&(e.tags={...r,...e.tags}),Object.keys(i).length&&(e.user={...i,...e.user}),Object.keys(a).length&&(e.contexts={...a,...e.contexts}),o&&(e.level=o),s&&e.type!==`transaction`&&(e.transaction=s)}function ua(e,t){let n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function da(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function fa(e,t){e.contexts={trace:ci(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:ra(t),...e.sdkProcessingMetadata};let n=hi(ki(t)).description;n&&!e.transaction&&e.type===`transaction`&&(e.transaction=n)}function pa(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint.length||delete e.fingerprint}var ma=Symbol.for(`SentryCallbackError`);
5function ha(e,t,n){let r;try{r=t()}catch(t){return ga(e,t,n)}return De(r)?r.then(void 0,t=>ga(e,t,n)):r}function ga(e,t,n){return r&&x.error(e,t),n(t)}function _a(e){return je(e,`_static`,!0),e}function va(e){return e}function ya(e){return!!e&&typeof e==`function`&&`_static`in e&&!!e._static}var ba=!1;function xa(e,t){return ha(r?"The `beforeSendSpan` callback threw an error, sending the span unmodified:":``,()=>t(e),()=>e)||(ba||=(f(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),!0),e)}function Sa(e){return _i({trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,name:e.description||``,start_timestamp:e.start_timestamp,end_timestamp:e.timestamp,status:!e.status||e.status===`ok`||e.status===`cancelled`?`ok`:`error`,is_segment:!1,attributes:{...e.data},links:e.links})}function Ca(e){let t={},{response:n,profile:r,cloud_resource:i,culture:a,state:o}=e;if(n&&(n.status_code!=null&&(t[`http.response.status_code`]=n.status_code),n.body_size!=null&&(t[`http.response.body.size`]=n.body_size)),r&&(r.profile_id&&(t[`sentry.profile_id`]=r.profile_id),r.profiler_id&&(t[`sentry.profiler_id`]=r.profiler_id)),i)for(let[e,n]of Object.entries(i))n!=null&&(t[e]=n);a&&(a.locale&&(t[`culture.locale`]=a.locale),a.timezone&&(t[`culture.timezone`]=a.timezone)),o?.state&&typeof o.state.type==`string`&&(t[`state.type`]=o.state.type);let s=e.angular;if(s){let e=s.version;(typeof e==`string`||typeof e==`number`)&&(t[`angular.version`]=e)}let c=e.react;if(c){let e=c.version;(typeof e==`string`||typeof e==`number`)&&(t[`react.version`]=e)}return t}function wa(e,t){let n=N(e),r=Ai(e),i=N(r),{isolationScope:a,scope:o}=Mr(e),s=ca(a,o);ka(n,i,t,s),t.emit(`preprocessSpan`,n),n.is_segment&&(Ta(n,s),Da(n,t),t.emit(`processSegmentSpan`,n)),t.emit(`processSpan`,n);let{beforeSendSpan:c,traceLifecycle:l}=t.getOptions();return{..._i(l!==`static`&&c&&!ya(c)?xa(n,c):n),_segmentSpan:r}}function Ta(e,t){Ea(e,Ca(t.contexts))}function Ea(e,t){let n=e.attributes??={};Object.entries(t).forEach(([e,t])=>{t!=null&&!(e in n)&&(n[e]=t)})}function Da(e,t){let n=t.getIntegrationNames();n.length&&Ea(e,{[fr]:n})}function Oa(e,t,n,r=!0){let i=t.getSdkMetadata(),{release:a,environment:o}=t.getOptions();return{[Wn]:`stream`,[Hn]:e.name,[Vn]:e.span_id,[zn]:i?.sdk?.name,[Bn]:i?.sdk?.version,[ur]:a,[dr]:o||`production`,[pr]:n.user?.id,[mr]:n.user?.email,[hr]:n.user?.ip_address,[gr]:n.user?.username,...r?n.attributes:void 0}}function ka(e,t,n,r){Ea(e,Oa(t,n,r))}function Aa(e,t,n){let r=hi(e),i=N(Ai(e)),{isolationScope:a,scope:o}=Mr(e),s=Oa(i,t,ca(a,o),!1);return Object.entries(s).forEach(([e,t])=>{t!=null&&!(e in r.data)&&(r.data[e]=t)}),Sa(xa(r,n))}function I(e){return e.getOptions().traceLifecycle===`stream`}function ja(e){return typeof e==`object`&&typeof e.unref==`function`&&e.unref(),e}function Ma(e,t=[]){return[e,t]}function Na(e,t){let[n,r]=e;return[n,[...r,t]]}function Pa(e,t){let n=e[1];for(let e of n){let n=e[0].type;if(t(e,n))return!0}return!1}function Fa(e,t){return Pa(e,(e,n)=>t.includes(n))}function Ia(e){let t=s(i);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e)}function La(e){let t=s(i);return t.decodePolyfill?t.decodePolyfill(e):new TextDecoder().decode(e)}function Ra(e){let[t,n]=e,r=JSON.stringify(t);function i(e){typeof r==`string`?r=typeof e==`string`?r+e:[Ia(r),e]:r.push(typeof e==`string`?Ia(e):e)}for(let e of n){let[t,n]=e;if(i(`
6${JSON.stringify(t)}
7`),typeof n==`string`||n instanceof Uint8Array)i(n);else{let e;try{e=JSON.stringify(n)}catch{e=JSON.stringify(Je(n))}i(e)}}return typeof r==`string`?r:za(r)}function za(e){let t=e.reduce((e,t)=>e+t.length,0),n=new Uint8Array(t),r=0;for(let t of e)n.set(t,r),r+=t.length;return n}function Ba(e){let t=typeof e==`string`?Ia(e):e;function n(e){let n=t.subarray(0,e);return t=t.subarray(e+1),n}function r(){let e=t.indexOf(10);return e<0&&(e=t.length),JSON.parse(La(n(e)))}let i=r(),a=[];for(;t.length;){let e=r(),t=typeof e.length==`number`?e.length:void 0;a.push([e,t?n(t):r()])}return[i,a]}function Va(e){let t=typeof e.data==`string`?Ia(e.data):e.data;return[{type:`attachment`,length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}var Ha={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 Ua(e){return e in Ha}function Wa(e){return Ua(e)?Ha[e]:e}function Ga(e){if(!e?.sdk)return;
7let{name:t,version:n}=e.sdk;return{name:t,version:n}}function Ka(e,t,n,r){let i=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date(Be()).toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:Ur(r)},...i&&{trace:i}}}function qa(e){return e===`replay_event`?`replay`:e||`error`}function Ja(){return typeof __SENTRY_BROWSER_BUNDLE__<`u`&&!!__SENTRY_BROWSER_BUNDLE__}function Ya(){return`npm`}function Xa(){return!Ja()&&Object.prototype.toString.call(typeof process<`u`?process:0)===`[object process]`}function Za(){return typeof window<`u`&&(!Xa()||Qa())}function Qa(){return i.process?.type===`renderer`}function $a(e,t,n){let r=n.getOptions(),i=n.getDsn(),a=r.tunnel,o=Ga(r._metadata);return Ma({sent_at:new Date(Be()).toISOString(),...to(t)&&{trace:t},...o&&{sdk:o},...!!a&&i&&{dsn:Ur(i)}},[eo(e,n)])}function eo(e,t){let n=t.getDataCollectionOptions().userInfo?`auto`:`never`;return[{type:`span`,item_count:e.length,content_type:`application/vnd.sentry.items.span.v2+json`},{version:2,ingest_settings:Za()?{infer_ip:n,infer_user_agent:n}:void 0,items:e}]}function to(e){return!!e.trace_id&&!!e.public_key}function no(e){let t=156;if(t+=e.name.length*2,t+=tn(e.attributes),e.links&&e.links.length>0){let n=e.links[0]?.attributes,r=100+(n?tn(n):0);t+=r*e.links.length}return t}var ro=1e3,io=5e6,ao=class{constructor(e,t){this._traceBuckets=new Map,this._client=e;let{maxSpanLimit:n,flushInterval:r,maxTraceWeightInBytes:i}=t??{};this._maxSpanLimit=n&&n>0&&n<=ro?n:ro,this._flushInterval=r&&r>0?r:5e3,this._maxTraceWeight=i&&i>0?i:io,this._client.on(`flush`,()=>{this.drain()}),this._client.on(`close`,()=>{this._traceBuckets.forEach(e=>{clearTimeout(e.timeout)}),this._traceBuckets.clear()})}add(e){let t=e.trace_id,n=this._traceBuckets.get(t);n||(n={spans:new Set,size:0,timeout:ja(setTimeout(()=>{this.flush(t)},this._flushInterval))},this._traceBuckets.set(t,n)),n.spans.add(e),n.size+=no(e),(n.spans.size>=this._maxSpanLimit||n.size>=this._maxTraceWeight)&&this.flush(t)}drain(){this._traceBuckets.size&&(r&&x.log(`Flushing span tree map with ${this._traceBuckets.size} traces`),this._traceBuckets.forEach((e,t)=>{this.flush(t)}))}flush(e){let t=this._traceBuckets.get(e);if(!t)return;if(!t.spans.size){this._removeTrace(e);return}let n=Array.from(t.spans),i=n[0]?._segmentSpan;if(!i){r&&x.warn(`No segment span reference found on span JSON, cannot compute DSC`),this._removeTrace(e);return}let a=ra(i),o=n.map(e=>{let{_segmentSpan:t,...n}=e;return n}),s=$a(o,a,this._client);r&&x.log(`Sending span envelope for trace ${e} with ${o.length} spans`),this._client.sendEnvelope(s).then(null,e=>{r&&x.error(`Error while sending streamed span envelope:`,e)}),this._removeTrace(e)}_removeTrace(e){let t=this._traceBuckets.get(e);t&&clearTimeout(t.timeout),this._traceBuckets.delete(e)}},oo=`SpanStreaming`,so=F((e={})=>{let t=e.flushOnSegmentEnd??!0;return{name:oo,setup(e){if(!I(e)){r&&x.log('[SpanStreaming] `traceLifecycle` is "static", skipping setup.');return}let n=new ao(e);e.on(`afterSpanEnd`,t=>{bi(t)&&n.add(wa(t,e))}),e.on(`flushTraceSpans`,e=>{n.flush(e)}),t&&e.on(`afterSegmentSpanEnd`,e=>{let t=e.spanContext().traceId;ja(setTimeout(()=>{n.flush(t)},500))})}}});function co(e,t,n=()=>{},r=()=>{}){let i;try{i=e()}catch(e){throw t(e),n(),e}return lo(i,t,n,r)}function lo(e,t,n,r){return De(e)?Ht(e,e=>{n(),r(e)},e=>{t(e),n()}):(n(),r(e),e)}var uo=new WeakMap;function fo(e){return Se(e)?void 0:e}function po(e,t){let n=fo(e);n&&bi(t)&&!uo.has(n)&&uo.set(n,ci(t))}function mo(e,t,n){let r=fo(t.originalException),i=r&&uo.get(r);if(!i)return;let a=e.contexts?.trace;(a?.trace_id??(n&&un(n).trace_id))===i.trace_id&&(e.contexts={...e.contexts,trace:{...a,...i}})}function ho(e){if(!r)return;let{description:t=`< unknown name >`,op:n=`< unknown op >`,parent_span_id:i}=hi(e),{spanId:a}=e.spanContext(),o=bi(e),s=ki(e),c=s===e,l=`[Tracing] Starting ${o?`sampled`:`unsampled`} ${c?`root `:``}span`,u=[`op: ${n}`,`name: ${t}`,`ID: ${a}`];if(i&&u.push(`parent ID: ${i}`),!c){let{op:e,description:t}=hi(s);u.push(`root ID: ${s.spanContext().spanId}`),e&&u.push(`root op: ${e}`),t&&u.push(`root description: ${t}`)}x.log(`${l}
8  ${u.join(`
9  `)}`)}function go(e){if(!r)return;let{description:t=`< unknown name >`,op:n=`< unknown op >`}=hi(e),{spanId:i}=e.spanContext(),a=`[Tracing] Finishing "${n}" ${ki(e)===e?`root `:``}span "${t}" with ID ${i}`;x.log(a)}function _o(e,t,n){if(!Ii(e))return[!1];let i=vo(e,t);if(!i)return[!1,void 0,void 0,`callback_error`];let[a,o]=i,s=Xr(a);if(s===void 0)return r&&x.warn(`[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(a)} of type ${JSON.stringify(typeof a)}.`),[!1];if(!s)return r&&x.log(`[Tracing] Discarding transaction because ${typeof e.tracesSampler==`function`?`tracesSampler returned 0 or false`:`a negative sampling decision was inherited or tracesSampleRate is set to 0`}`),[!1,s,o];let c=n<s;return c||r&&x.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(a)})`),[c,s,o]}function vo(e,t){let{tracesSampler:n,tracesSampleRate:i}=e;if(typeof n==`function`){let e=ha(r?"The `tracesSampler` callback threw an error, falling back to the parent sampling decision or `tracesSampleRate`:":``,()=>[n({...t,inheritOrSampleWith:e=>typeof t.parentSampleRate==`number`?t.parentSampleRate:typeof t.parentSampled==`boolean`?Number(t.parentSampled):e}),!0],()=>void 0);if(e)return e}if(t.parentSampled!==void 0)return[t.parentSampled];if(i!==void 0)return[i,!0]}function yo(e,t,n,i=P()){let a=i&&ki(i);a&&(r&&x.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${n}`),a.addEvent(e,{[lr]:t,[cr]:n}))}function bo(e){if(!e||e.length===0)return;let t={};
9return e.forEach(e=>{let n=e.attributes||{},r=n[cr],i=n[lr];typeof r==`string`&&typeof i==`number`&&(t[e.name]={value:i,unit:r})}),t}function xo(){return s(o()).segmentSpanCaptureStrategy}var So=1e3,Co=class{constructor(e={}){this._traceId=e.traceId||Nt(),this._spanId=e.spanId||Pt(),this._startTime=e.startTimestamp||wt(),this._links=e.links,this._attributes={},this.setAttributes({[or]:`manual`,[ar]:e.op,...e.attributes}),this._name=e.name,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),`sampled`in e&&(this._sampled=e.sampled),this._events=[],this._isStandaloneSpan=e.isStandalone}addLink(e){return this._frozen||(this._links?this._links.push(e):this._links=[e]),this}addLinks(e){return this._frozen||(this._links?this._links.push(...e):this._links=e),this}recordException(e,t){}spanContext(){let{_spanId:e,_traceId:t,_sampled:n}=this;return{spanId:e,traceId:t,traceFlags:+!!n}}setAttribute(e,t){return this._frozen?this:e===`sentry.segment.name.source`&&t!==void 0&&!ji(this)?(r&&x.warn(`[Tracing] Ignoring name source on a child span: this attribute is only valid on the root span.`),this):(t===void 0?delete this._attributes[e]:this._attributes[e]=t,this)}setAttributes(e){return Object.keys(e).forEach(t=>this.setAttribute(t,e[t])),this}updateStartTime(e){this._frozen||(this._startTime=pi(e))}setStatus(e){return this._frozen||(this._status=e),this}updateName(e){return this._frozen?this:(this._name=e,Ni(this,`custom`),this)}end(e){this._endTime||(this._endTime=pi(e),go(this),this._onSpanEnded(),this._frozen=Nr(this))}getStaticSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[ar],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:xi(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[or],profile_id:this._attributes[vr],exclusive_time:this._attributes[yr],measurements:bo(this._events),links:di(this._links)}}getSpanJSON(){return{name:this._name??``,span_id:this._spanId,trace_id:this._traceId,parent_span_id:this._parentSpanId,start_timestamp:this._startTime,end_timestamp:this._endTime,is_segment:ji(this),status:Si(this._status),attributes:Ci(this._attributes,this._status),links:fi(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,n){if(this._frozen)return this;r&&x.log(`[Tracing] Adding an event to span:`,e);let i=wo(t)?t:n||wt(),a=wo(t)?{}:t||{},o={name:e,time:pi(i),attributes:a};return this._events.push(o),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){let e=M();if(e?.emit(`spanEnd`,this),this._isStandaloneSpan){if(!e)return;if(this._sampled){Do(this,e);return}r&&x.log(`[Tracing] Discarding standalone span because its trace was not chosen to be sampled.`),e.recordDroppedEvent(`sample_rate`,`span`);return}e?.emit(`afterSpanEnd`,this);let t=ki(this);if(t!==this){let e=xo();if(e){let n=Mr(this).scope||A();e.onChildSpanEnded(this,t,e=>this._convertSpanToTransaction(e),n)}return}if(e&&I(e)){e.emit(`afterSegmentSpanEnd`,this);return}let n=Mr(this).scope||A(),i=xo();if(i)i.onSegmentSpanEnded(e=>this._convertSpanToTransaction(e),n);else{let e=this._convertSpanToTransaction();e&&n.captureEvent(e)}}_convertSpanToTransaction(e={}){if(!To(hi(this)))return;this._name||=(r&&x.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),`<unlabeled transaction>`);let{scope:t,isolationScope:n}=Mr(this),i=t?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(this._sampled!==!0)return;e.onSpanCaptured?.(this);let a=[];for(let t of Oi(this)){if(t===this||Eo(t)||e.isSpanAlreadyCaptured?.(t))continue;let n=hi(t);To(n)&&(e.onSpanCaptured?.(t),a.push(n))}let o=this._attributes[Un];delete this._attributes[_r];let s=!1;a.forEach(e=>{delete e.data[_r],e.op?.startsWith(`gen_ai.`)&&(s=!0)});let c={contexts:{trace:si(this)},spans:a.length>So?a.sort((e,t)=>e.start_timestamp-t.start_timestamp).slice(0,So):a,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:`transaction`,sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:n,dynamicSamplingContext:ra(this),hasGenAiSpans:s},request:i,...o&&{transaction_info:{source:o}}},l=bo(this._events);return l&&Object.keys(l).length&&(r&&x.log(`[Measurements] Adding measurements to transaction event`,JSON.stringify(l,void 0,2)),c.measurements=l),c}};function wo(e){return e&&typeof e==`number`||e instanceof Date||Array.isArray(e)}function To(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}function Eo(e){return e instanceof Co&&e.isStandaloneSpan()}function Do(e,t){let{beforeSendSpan:n,traceLifecycle:r}=t.getOptions();if(r===`static`&&ya(n)){let r=Aa(e,t,n),i=ra(e);t.sendEnvelope($a([r],i,t));return}let{_segmentSpan:i,...a}=wa(e,t),o=ra(i);t.sendEnvelope($a([a],o,t))}function Oo(e,t){let n=Ro(e),{forceTransaction:r,parentSpan:i,scope:a}=e,o=a?.clone();return cn(o,()=>Uo(i)(()=>{let o=A(),s=Ho(a??o,i),c=M(),l=e.onlyIfParent&&!s?Io(o,c):Lo({parentSpan:s,spanArguments:n,forceTransaction:r,scope:o});return Ko(l,!Go(l)||!s,()=>t(l),()=>l.end())}))}function ko(e,t){let n=Ro(e),{forceTransaction:r,parentSpan:i,scope:a}=e,o=a?.clone();return cn(o,()=>Uo(i)(()=>{let o=A(),s=Ho(a??o,i),c=e.onlyIfParent&&!s?Io(o,M()):Lo({parentSpan:s,spanArguments:n,forceTransaction:r,scope:o});return Ko(c,!Go(c)||!s,()=>t(c,()=>c.end()))}))}function Ao(e){let t=Ro(e),{forceTransaction:n,parentSpan:r,scope:i}=e;return(i?e=>cn(i,e):r===void 0?e=>e():e=>Mo(r,e))(()=>{let a=A(),o=Ho(i??a,r),s=M();return e.onlyIfParent&&!o?Io(a,s):Lo({parentSpan:o,spanArguments:t,forceTransaction:n,scope:a})})}var jo=(e,t)=>{let n=Zt(o());if(n.continueTrace)return n.continueTrace(e,t);let{sentryTrace:r,baggage:i}=e,a=M(),s=Fr(i);return a&&!ri(a,s?.org_id)?Fo(t):cn(e=>{let n=$r(r,i);return e.setPropagationContext(n),Mo(null,t)})};function Mo(e,t){let n=zo();return n.withActiveSpan?n.withActiveSpan(e,t):cn(n=>(ai(n,e||void 0),t(n)))}function No(e){let t=zo();return t.suppressTracing?t.suppressTracing(e):cn(t=>(t.setSDKProcessingMetadata({[zt]:!0}),e()))}function Po(e=A()){let t=zo();return t.isTracingSuppressed?t.isTracingSuppressed(e):e.getScopeData().sdkProcessingMetadata[zt]===!0}function Fo(e){let t=zo();return t.startNewTrace?t.startNewTrace(e):Mo(null,()=>cn(t=>(t.setPropagationContext({traceId:Nt(),sampleRand:ze()}
9),r&&x.log(`Starting a new trace with id ${t.getPropagationContext().traceId}`),e())))}function Io(e,t){t?.recordDroppedEvent(`no_parent_span`,`span`);let n=new Zi({traceId:e.getPropagationContext().traceId});return jr(n,e,j()),n}function Lo({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){let i=j(),a={scope:r,parentSpan:e};M()?.emit(`prepareSpanScope`,a);let{scope:o,parentSpan:s}=a;if(!Ii()){let e=o.getPropagationContext(),t=new Zi({traceId:s?s.spanContext().traceId:e.traceId});return s&&!n&&Ei(s,t),jr(t,o,i),t}let c=M();if(Wo(c,t)){Po(o)||c?.recordDroppedEvent(`ignored`,`span`);let e=new Zi({dropReason:`ignored`,traceId:s?.spanContext().traceId??o.getPropagationContext().traceId});return s&&!n&&Ei(s,e),jr(e,o,i),e}let l;if(s&&!n)l=Vo(s,o,t,i),Ei(s,l);else if(s){let e=ra(s),{traceId:n,spanId:r}=s.spanContext(),a=bi(s);l=Bo({traceId:n,parentSpanId:r,...t},o,i,a),ea(l,e)}else{let{traceId:e,dsc:n,parentSpanId:r,sampled:a,sampleRand:s}=o.getPropagationContext();if(l=Bo({traceId:e,parentSpanId:r,...t},o,i,a),n){let e=Object.keys(n).length===0&&s!==void 0?{sample_rand:s.toString()}:n;ea(l,e)}}return ho(l),l}function Ro(e){let t={isStandalone:e.experimental?.standalone,...e};if(e.op&&(t.attributes={[ar]:e.op,...e.attributes}),e.startTime){let n={...t};return n.startTimestamp=pi(e.startTime),delete n.startTime,n}return t}function zo(){return Zt(o())}function Bo(e,t,n,i){let a=M(),o=a?.getOptions()||{},{name:s=``}=e,c={spanAttributes:{...e.attributes},spanName:s,parentSampled:i};a?.emit(`beforeSampling`,c,{decision:!1});let l=c.parentSampled??i,u=c.spanAttributes,d=t.getPropagationContext(),f=Po(t),[p,m,h,g]=f?[!1]:_o(o,{name:s,parentSampled:l,attributes:u,normalizedRequest:n.getScopeData().sdkProcessingMetadata.normalizedRequest,parentSampleRate:Xr(d.dsc?.sample_rate)},d.sampleRand),_=new Co({...e,attributes:{[Un]:`custom`,[rr]:m!==void 0&&h?m:void 0,...u},sampled:p});return!p&&a&&!f&&(r&&x.log(`[Tracing] Discarding root span because its trace was not chosen to be sampled.`),a.recordDroppedEvent(g||`sample_rate`,I(a)?`span`:`transaction`)),jr(_,t,n),a&&a.emit(`spanStart`,_),_}function Vo(e,t,n,r){let{spanId:i,traceId:a}=e.spanContext(),o=Po(t),s=!o&&bi(e),c=s?new Co({...n,parentSpanId:i,traceId:a,sampled:s}):new Zi({traceId:a});Ei(e,c),jr(c,t,r);let l=M();return l?(I(l)&&Qi(c)&&(Qi(e)&&e.dropReason?(c.dropReason=e.dropReason,l.recordDroppedEvent(e.dropReason,`span`)):o||(c.dropReason=`sample_rate`,l.recordDroppedEvent(`sample_rate`,`span`))),l.emit(`spanStart`,c),c):c}function Ho(e,t){if(t)return t;if(t===null)return;let n=P(e);if(!n)return;let r=M();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?ki(n):n}function Uo(e){return e===void 0?e=>e():t=>Mo(e,t)}function Wo(e,t){let n=e?.getOptions().ignoreSpans;return!e||!I(e)||!n?.length?!1:Ri({description:t.name||``,op:t.attributes?.[`sentry.op`]||t.op,attributes:t.attributes},n)}function Go(e){return Qi(e)&&e.dropReason===`ignored`}function Ko(e,t,n,r){return(t?t=>Mo(e,()=>{let n=A(),r=Mr(e).scope;return r&&n.setPropagationContext(r.getPropagationContext()),jr(e,n,j()),t()}):e=>e())(()=>co(()=>n(),t=>{po(t,e);let{status:n}=hi(e);e.isRecording()&&n===`ok`&&e.setStatus({code:2,message:`internal_error`})},r))}var qo=new WeakSet;function Jo(e=M()){e&&!qo.has(e)&&I(e)&&(qo.add(e),e.addIntegration(so()))}function Yo(e,t){return Jo(),Oo(e,t)}function Xo(e,t){return Jo(),ko(e,t)}function Zo(e){return Jo(),Ao(e)}var Qo={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},$o=`heartbeatFailed`,es=`idleTimeout`,ts=`finalTimeout`,ns=`externalFinish`;function rs(e,t={}){let n=M();Jo(n);let i=new Map,a=!1,o,s,c=ns,l=!t.disableAutoFinish,u=[],{idleTimeout:d=Qo.idleTimeout,finalTimeout:f=Qo.finalTimeout,childSpanTimeout:p=Qo.childSpanTimeout,trimIdleSpanEndTimestamp:m=!0}=t,h=A();if(!n||!Ii()){let e=new Zi({traceId:h.getPropagationContext().traceId});return jr(e,h,j()),e}let g=P(),_=Ao(e);ai(A(),_),r&&x.log(`[Tracing] Started span is an idle span`),_.end=new Proxy(_.end,{apply(e,t,r){if(n.emit(`beforeIdleSpanEnd`,_),Qi(t))return;let[i,...a]=r,o=pi(i||wt()),s=Oi(_).filter(e=>e!==_),c=hi(_);if(!s.length||!m)return T(o),Reflect.apply(e,t,[o,...a]);let l=n.getOptions().ignoreSpans,u=s?.reduce((e,t)=>
9{let n=hi(t);return!n.timestamp||l&&Ri({description:n.description,op:n.op,attributes:n.data},l)?e:e?Math.max(e,n.timestamp):n.timestamp},void 0),d=c.start_timestamp,p=Math.min(d?d+f/1e3:1/0,Math.max(d||-1/0,Math.min(o,u||1/0)));return T(p),Reflect.apply(e,t,[p,...a])}});function v(){o&&=(clearTimeout(o),void 0)}function y(){s&&=(clearTimeout(s),void 0)}function b(e){v(),o=setTimeout(()=>{!a&&i.size===0&&l&&(c=es,_.end(e))},d)}function S(e){y(),s=setTimeout(()=>{!a&&l&&(c=$o,_.end(e))},p)}function C(e){v(),i.set(e,!0),S(wt()+p/1e3)}function w(e){i.has(e)&&i.delete(e),i.size===0&&(b(wt()+d/1e3),y())}function T(e){a=!0,i.clear(),u.forEach(e=>e()),ai(h,g);let t=hi(_),{start_timestamp:n}=t;if(!n)return;t.data[`sentry.idle_span_finish_reason`]||_.setAttribute(sr,c);let o=t.status;(!o||o===`unknown`)&&_.setStatus({code:1}),x.log(`[Tracing] Idle span "${t.op}" finished`);let s=Oi(_).filter(e=>e!==_),l=0;s.forEach(t=>{t.isRecording()&&(t.setStatus({code:2,message:`cancelled`}),t.end(e),r&&x.log(`[Tracing] Cancelling span since span ended early`,JSON.stringify(t,void 0,2)));let{timestamp:n=0,start_timestamp:i=0}=hi(t),a=i<=e,o=(f+d)/1e3,s=n-i<=o;if(r){let e=JSON.stringify(t,void 0,2);a?s||x.log(`[Tracing] Discarding span since it finished after idle span final timeout`,e):x.log(`[Tracing] Discarding span since it happened after idle span was finished`,e)}(!s||!a)&&(Di(_,t),l++)}),l>0&&_.setAttribute(`sentry.idle_span_discarded_spans`,l)}return u.push(n.on(`spanStart`,e=>{a||e===_||N(e).end_timestamp||e instanceof Co&&e.isStandaloneSpan()||Oi(_).includes(e)&&C(e.spanContext().spanId)})),u.push(n.on(`spanEnd`,e=>{a||w(e.spanContext().spanId)})),u.push(n.on(`idleSpanEnableAutoFinish`,e=>{e===_&&(l=!0,b(),i.size&&S())})),t.disableAutoFinish||b(),setTimeout(()=>{a||(_.setStatus({code:2,message:`deadline_exceeded`}),c=ts,_.end())},f),_}function is(e,t,n){let r,i,a,o=n?.maxWait?Math.max(n.maxWait,t):0,s=n?.setTimeoutImpl||setTimeout;function c(){return l(),r=e(),r}function l(){i!==void 0&&clearTimeout(i),a!==void 0&&clearTimeout(a),i=a=void 0}function u(){return i!==void 0||a!==void 0?c():r}function d(){return i&&clearTimeout(i),i=s(c,t),o&&a===void 0&&(a=s(c,o)),r}return d.cancel=l,d.flush=u,d}var as=[`addListener`,`on`,`once`,`prependListener`,`prependOnceListener`,`addEventListener`],os=[`removeListener`,`off`,`removeEventListener`],ss=Symbol(`SentryScopeBoundListeners`),cs;function ls(e){return cs!==void 0&&(e===cs||e.listener===cs)}function us(e,t=A()){let n=e;if(_s(n))return e;gs(n);for(let e of as)typeof n[e]==`function`&&(n[e]=ps(n,n[e],t));for(let e of os)typeof n[e]==`function`&&(n[e]=ms(n,n[e]));return typeof n.removeAllListeners==`function`&&(n.removeAllListeners=hs(n,n.removeAllListeners)),e}function ds(e,t){return function(...n){return cn(t,()=>e.apply(this,n))}}function fs(e){return typeof e==`function`}function ps(e,t,n){return function(...r){let i=r[0],a=r[1],o=r.slice(2);if(!fs(a)||ls(a))return t.apply(this,r);let s=_s(e)||gs(e),c=s.get(i);c||(c=new WeakMap,s.set(i,c));let l=c.get(a);l||(l=ds(a,n),c.set(a,l));let u=cs;cs=l;try{return t.call(this,i,l,...o)}finally{cs=u}}}function ms(e,t){return function(...n){let r=n[0],i=n[1],a=n.slice(2),o=fs(i)?_s(e)?.get(r)?.get(i):void 0;return o?t.call(this,r,o,...a):t.apply(this,n)}}function hs(e,t){return function(...n){let r=_s(e);if(r){if(n.length===0)gs(e);else{let e=n[0];r.delete(e)}}return t.apply(this,n)}}function gs(e){let t=new Map;return e[ss]=t,t}function _s(e){return e[ss]}var vs=`pageload`,ys=`navigation`,bs=`navigation.redirect`,xs=`resource.other`,Ss=`browser.paint`,Cs=`browser.unload_event`,ws=`browser.redirect`,Ts=`browser.dom_content_loaded_event`,Es=`browser.load_event`,Ds=`browser.connect`,Os=`browser.tls_ssl`,ks=`browser.cache`,As=`browser.dns`,js=`browser.request`,Ms=`browser.response`,Ns=`ui.long_task`,Ps=`ui.long_animation_frame`,Fs=`ui.interaction.click`,Is=`ui.interaction.hover`,Ls=`ui.interaction.drag`,Rs=`ui.interaction.press`,zs=`ui.webvital.lcp`,Bs=`ui.webvital.cls`,Vs=`ui.action.click`,Hs=`http.client`,Us=`http.client.stream`,Ws=`Pageload`,Gs=`Navigation`,Ks=`Main UI thread blocked`,qs=`Click`,Js=`Hover`,Ys=`Drag`,Xs=`Key press`,Zs={[ks]:`Cache lookup`,[As]:`DNS lookup`,[Ds]:`Connect`,[Os]:`TLS handshake`,[ws]:`Redirect`,[js]:`Request`,[Ms]:`Response`,[Cs]:`Unload event`,[Ts]:`DOMContentLoaded event`,[Es]:`Load event`};function Qs(e,t){if(!t)return e;let n=e.sdk||{};return e.sdk={...n,name:n.name||t.name,version:n.version||t.version,integrations:[...e.sdk?.integrations||[],...t.integrations||[]],packages:[...e.sdk?.packages||[],...t.packages||[]],settings:e.sdk?.settings||t.settings?{...e.sdk?.settings,...t.settings}:void 0},e}function $s(e,t,n,r){let i=Ga(n);return Ma({sent_at:new Date(Be()).toISOString(),...i&&{sdk:i},...!!r&&t&&{dsn:Ur(t)}},[`aggregates`in e?[{type:`sessions`},e]:[{type:`session`},e.toJSON()]])}function ec(e,t,n,r){let i=Ga(n),a=e.type&&e.type!==`replay_event`?e.type:`event`;Qs(e,n?.sdk);let o=Ka(e,i,r,t);return delete e.sdkProcessingMetadata,Ma(o,[[{type:a},e]])}var tc=0,nc=1,rc=2;function ic(e){return new oc(t=>{t(e)})}function ac(e){return new oc((t,n)=>{n(e)})}var oc=class e{constructor(e){this._state=tc,this._handlers=[],this._runExecutor(e)}then(t,n){return new e((e,r)=>{this._handlers.push([!1,n=>
9{if(!t)e(n);else try{e(t(n))}catch(e){r(e)}},t=>{if(!n)r(t);else try{e(n(t))}catch(e){r(e)}}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(t){return new e((e,n)=>{let r,i;return this.then(e=>{i=!1,r=e,t&&t()},e=>{i=!0,r=e,t&&t()}).then(()=>{if(i){n(r);return}e(r)})})}_executeHandlers(){if(this._state===tc)return;let e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||=(this._state===nc&&e[1](this._value),this._state===rc&&e[2](this._value),!0)})}_runExecutor(e){let t=(e,t)=>{if(this._state===tc){if(De(t)){t.then(n,r);return}this._state=e,this._value=t,this._executeHandlers()}},n=e=>{t(nc,e)},r=e=>{t(rc,e)};try{e(n,r)}catch(e){r(e)}}};function sc(e,t,n,r=0,i){try{let a=cc(t,n,e,r,i);return De(a)?a:ic(a)}catch(e){return ac(e)}}function cc(e,t,n,i,a){let o=n[i];if(!e||!o)return e;let s=`Event processor "${o.id||`?`}"`,c=!1,l=ha(r?`${s} threw an error, dropping event:`:``,()=>o({...e},t),()=>(c=!0,null));return r&&l===null&&x.log(`${s} dropped event`),De(l)?l.then(e=>e?cc(e,t,n,i+1,a):(a?.(c?`callback_error`:`event_processor`),null)):l?cc(l,t,n,i+1,a):(a?.(c?`callback_error`:`event_processor`),null)}var lc,uc,dc,fc;function pc(e){let t=i._sentryDebugIds,n=i._debugIds;if(!t&&!n)return{};let r=t?Object.keys(t):[],a=n?Object.keys(n):[];if(fc&&r.length===uc&&a.length===dc)return fc;uc=r.length,dc=a.length,fc={},lc||={};let o=(t,n)=>{for(let r of t){let t=n[r],i=lc?.[r];
9if(i&&fc&&t)fc[i[0]]=t,lc&&(lc[r]=[i[0],t]);else if(t){let n=e(r);for(let e=n.length-1;e>=0;e--){let i=n[e]?.filename;if(i&&fc&&lc){fc[i]=t,lc[r]=[i,t];break}}}}};return t&&o(r,t),n&&o(a,n),fc}function mc(e,t){let n=pc(e);if(!n)return[];let r=[];for(let e of t){let t=ie(e);t&&n[t]&&r.push({type:`sourcemap`,code_file:e,debug_id:n[t]})}return r}function hc(e,t,n,r,i,a){let{normalizeDepth:o=3,normalizeMaxBreadth:s=1e3}=e,c={...t,event_id:t.event_id||n.event_id||ut(),timestamp:t.timestamp||xt()},l=n.integrations||e.integrations.map(e=>e.name);gc(c,e),yc(c,l),i&&i.emit(`applyFrameMetadata`,t),t.type===void 0&&_c(c,e.stackParser);let u=xc(r,n.captureContext);n.mechanism&&ht(c,n.mechanism);let d=i?i.getEventProcessors():[],f=ca(a,u),p=[...n.attachments||[],...f.attachments];p.length&&(n.attachments=p),aa(c,f);let m=P(u);m&&fa(c,m),mo(c,n,u);let h=[...d,...f.eventProcessors];return(n.data&&n.data.__sentry__===!0?ic(c):sc(h,c,n,0,e=>{i&&(i.recordDroppedEvent(e,qa(t.type)),t.type===`transaction`&&i.recordDroppedEvent(e,`span`,1+(t.spans||[]).length))})).then(e=>e?(vc(e),typeof o==`number`&&o>0?bc(e,o,s):e):null)}function gc(e,t){let{environment:n,release:r,dist:i,maxValueLength:a}=t;e.environment=e.environment||n||`production`,!e.release&&r&&(e.release=r),!e.dist&&i&&(e.dist=i);let o=e.request;o?.url&&a&&(o.url=nt(o.url,a)),a&&e.exception?.values?.forEach(e=>{e.value&&=nt(e.value,a)})}function _c(e,t){let n=pc(t);e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.filename&&(e.debug_id=n[e.filename])})})}function vc(e){let t={};if(e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)})}),Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];let n=e.debug_meta.images;Object.entries(t).forEach(([e,t])=>{n.push({type:`sourcemap`,code_file:e,debug_id:t})})}function yc(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function bc(e,t,n){if(!e)return null;let r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:Je(e.data,t,n)}}))},...e.user&&{user:Je(e.user,t,n)},...e.contexts&&{contexts:Je(e.contexts,t,n)},...e.extra&&{extra:Je(e.extra,t,n)}};return e.contexts?.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=Je(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(e=>({...e,...e.data&&{data:Je(e.data,t,n)}}))),e.contexts?.flags&&r.contexts&&(r.contexts.flags=Je(e.contexts.flags,3,n)),r}function xc(e,t){if(!t)return e;let n=e?e.clone():new It;return n.update(t),n}function Sc(e){if(e)return Cc(e)||Tc(e)?{captureContext:e}:e}function Cc(e){return e instanceof It||typeof e==`function`}var wc=[`user`,`level`,`extra`,`contexts`,`tags`,`fingerprint`,`propagationContext`];function Tc(e){return Object.keys(e).some(e=>wc.includes(e))}function Ec(e,t){return A().captureException(e,Sc(t))}function Dc(e,t){let n=typeof t==`string`?t:void 0,r=typeof t==`string`?void 0:{captureContext:t};return A().captureMessage(e,n,r)}function Oc(e,t){return A().captureEvent(e,t)}function kc(e,t){j().setContext(e,t)}function Ac(e){j().setExtras(e)}function jc(e,t){j().setExtra(e,t)}function Mc(e){j().setTags(e)}function Nc(e,t){j().setTag(e,t)}function Pc(e){j().setAttributes(e)}function Fc(e,t){j().setAttribute(e,t)}function Ic(e){j().setUser(e)}function Lc(e){j().setConversationId(e)}function Rc(){return j().lastEventId()}async function zc(e){let t=M();return t?t.flush(e):(r&&x.warn(`Cannot flush events. No client defined.`),Promise.resolve(!1))}async function Bc(e){let t=M();return t?t.close(e):(r&&x.warn(`Cannot flush events and disable SDK. No client defined.`),Promise.resolve(!1))}function Vc(){return!!M()}function Hc(){let e=M();return e?.getOptions().enabled!==!1&&!!e?.getTransport()}function Uc(e){j().addEventProcessor(e)}function Wc(e){let t=j(),{user:n}=ca(t,A()),{userAgent:r}=i.navigator||{},a=Ot({user:n,...r&&{userAgent:r},...e}),o=t.getSession();return o?.status===`ok`&&kt(o,{status:`exited`}),Gc(),t.setSession(a),a}function Gc(){let e=j(),t=A().getSession()||e.getSession();t&&At(t),Kc(),e.setSession()}function Kc(){let e=j(),t=M(),n=e.getSession();n&&t&&t.captureSession(n)}function qc(e=!1){if(e){Gc();return}Kc()}
9function Jc(e){let t=e.protocol?`${e.protocol}:`:``,n=e.port?`:${e.port}`:``;return`${t}//${e.host}${n}${e.path?`/${e.path}`:``}/api/`}function Yc(e){return`${Jc(e)}${e.projectId}/envelope/`}function Xc(e,t){let n={sentry_version:`7`};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}function Zc(e,t,n){return t||`${Yc(e)}?${Xc(e,n)}`}function Qc(e,t){let n=Yr(e);if(!n)return``;let r=`${Jc(n)}embed/error-page/`,i=`dsn=${Ur(n)}`;for(let e in t)if(e!==`dsn`&&e!==`onClose`){if(e===`user`){let e=t.user;if(!e)continue;e.name&&(i+=`&name=${encodeURIComponent(e.name)}`),e.email&&(i+=`&email=${encodeURIComponent(e.email)}`)}else i+=`&${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`}return`${r}?${i}`}var $c=`sentry.timestamp.sequence`,el=0,tl;function nl(e){let t=Math.floor(e*1e3);tl!==void 0&&t!==tl&&(el=0);let n=el;return el++,tl=t,{key:$c,value:{value:n,type:`integer`}}}function rl(e,t){return t?cn(t,()=>{let n=P(),r=n?ci(n):un(t);return[n?ra(n):na(e,t),r]}):[void 0,void 0]}var il={trace:1,debug:5,info:9,warn:13,error:17,fatal:21};function al(e,t){let n=t?`auto`:`never`;return[{type:`log`,item_count:e.length,content_type:`application/vnd.sentry.items.log+json`},{version:2,...Za()&&{ingest_settings:{infer_ip:n,infer_user_agent:n}},items:e}]}function ol(e,t,n,r,i){let a={};return t?.sdk&&(a.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(a.dsn=Ur(r)),Ma(a,[al(e,i)])}var sl=100;function cl(e,t,n,r=!0){n&&(!e[t]||r)&&(e[t]=n)}function ll(e,t){let n=pl(),r=fl(e);r===void 0?n.set(e,[t]):r.length>=sl?(dl(e,r),n.set(e,[t])):n.set(e,[...r,t])}function ul(e,t=A(),n=ll){let i=t?.getClient()??M();if(!i){r&&x.warn(`No client available to capture log.`);return}let{release:a,environment:o,beforeSendLog:s}=i.getOptions(),[,c]=rl(i,t),l={...e.attributes},{user:{id:u,email:d,username:p},attributes:m}=ca(j(),t);cl(l,`user.id`,u,!1),cl(l,`user.email`,d,!1),cl(l,`user.name`,p,!1),cl(l,`sentry.release`,a),cl(l,`sentry.environment`,o);let{name:h,version:g}=i.getSdkMetadata()?.sdk??{};cl(l,`sentry.sdk.name`,h),cl(l,`sentry.sdk.version`,g);let _=i.getIntegrationByName(`Replay`),v=_?.getReplayId(!0);cl(l,`sentry.replay_id`,v),v&&_?.getRecordingMode()===`buffer`&&cl(l,`sentry._internal.replay_is_buffering`,!0);let y=e.message;if(xe(y)){let{__sentry_template_string__:e,__sentry_template_values__:t=[]}=y;t?.length&&(l[`sentry.message.template`]=e),t.forEach((e,t)=>{l[`sentry.message.parameter.${t}`]=e})}cl(l,`sentry.trace.parent_span_id`,P(t)?.spanContext().spanId);let b={...e,attributes:l};i.emit(`beforeCaptureLog`,b);let S=s?ha(r?"The `beforeSendLog` callback threw an error, dropping the log:":``,()=>f(()=>s(b)),()=>ma):b;if(S===ma){i.recordDroppedEvent(`callback_error`,`log_item`,1);return}if(!S){i.recordDroppedEvent(`before_send`,`log_item`,1),r&&x.warn(`beforeSendLog returned null, log will not be captured.`);return}let{level:C,message:w,attributes:T={},severityNumber:E}=S,ee=wt(),te=nl(ee);n(i,{timestamp:ee,level:C,body:hl(String(w)),trace_id:c?.trace_id,severity_number:E??il[C],attributes:ml({...en(m),...en(T,!0),[te.key]:te.value})}),i.emit(`afterCaptureLog`,S)}function dl(e,t){let n=t??fl(e)??[];if(n.length===0)return;let r=e.getOptions(),i=ol(n,r._metadata,r.tunnel,e.getDsn(),e.getDataCollectionOptions().userInfo);pl().set(e,[]),e.emit(`flushLogs`),e.sendEnvelope(i)}function fl(e){return pl().get(e)}function pl(){return c(`clientToLogBufferMap`,()=>new WeakMap)}function ml(e){let t={};for(let[n,r]of Object.entries(e)){let e=hl(n);t[e]=r.type===`string`?{...r,value:hl(r.value)}:r}return t}function hl(e){let t=Object(e),n=t.isWellFormed,r=t.toWellFormed;return typeof n==`function`&&typeof r==`function`?n.call(e)?e:r.call(e):e}function gl(e,t){let n=t?`auto`:`never`;return[{type:`trace_metric`,item_count:e.length,content_type:`application/vnd.sentry.items.trace-metric+json`},{version:2,...Za()&&{ingest_settings:{infer_ip:n,infer_user_agent:n}},items:e}]}function _l(e,t,n,r,i){let a={};return t?.sdk&&(a.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(a.dsn=Ur(r)),Ma(a,[gl(e,i)])}var vl=1e3;function yl(e,t,n,r=!0){n&&(r||!(t in e))&&(e[t]=n)}function bl(e,t){let n=El(),r=Tl(e);r===void 0?n.set(e,[t]):r.length>=vl?(wl(e,r),n.set(e,[t])):n.set(e,[...r,t])}function xl(e,t,n){let{release:r,environment:i}=t.getOptions(),a={...e.attributes};yl(a,`user.id`,n.id,!1),yl(a,`user.email`,n.email,!1),yl(a,`user.name`,n.username,!1),yl(a,`sentry.release`,r),yl(a,`sentry.environment`,i);let{name:o,version:s}=t.getSdkMetadata()?.sdk??{};yl(a,`sentry.sdk.name`,o),yl(a,`sentry.sdk.version`,s);let c=t.getIntegrationByName(`Replay`),l=c?.getReplayId(!0);return yl(a,`sentry.replay_id`,l),l&&c?.getRecordingMode()===`buffer`&&yl(a,`sentry._internal.replay_is_buffering`,!0),{...e,attributes:a}}function Sl(e,t,n,r){let[,i]=rl(t,n),a=P(n),o=a?a.spanContext().traceId:i?.trace_id,s=a?a.spanContext().spanId:void 0,c=wt(),l=nl(c);return{timestamp:c,trace_id:o??``,span_id:s,name:e.name,type:e.type,unit:e.unit,value:e.value,attributes:{...en(r),...en(e.attributes,`skip-undefined`),[l.key]:l.value}}}function Cl(e,t){let n=t?.scope??A(),i=t?.captureSerializedMetric??bl,a=n?.getClient()??M();if(!a){r&&x.warn(`No client available to capture metric.`);return}let{beforeSendMetric:o}=a.getOptions(),{user:s,attributes:c}=ca(j(),n),l=xl(e,a,s);a.emit(`processMetric`,l);let u=o?ha(r?"The `beforeSendMetric` callback threw an error, dropping the metric:":``,()=>o(l),()=>ma):l;if(u===ma){a.recordDroppedEvent(`callback_error`,`metric`,1);return}if(!u){a.recordDroppedEvent(`before_send`,`metric`,1),r&&x.log("`beforeSendMetric` returned `null`, will not send metric.");return}let d=Sl(u,a,n,c);r&&x.log(`[Metric]`,d),i(a,d),a.emit(`afterCaptureMetric`,u)}function wl(e,t){let n=t??Tl(e)??[];if(n.length===0)return;let r=e.getOptions(),i=_l(n,r._metadata,r.tunnel,e.getDsn(),e.getDataCollectionOptions().userInfo);El().set(e,[]),e.emit(`flushMetrics`),e.sendEnvelope(i)}function Tl(e){return El().get(e)}function El(){return c(`clientToMetricBufferMap`,()=>new WeakMap)}function Dl(e,t){if(e.type!==`transaction`||!e.spans?.length||!e.sdkProcessingMetadata?.hasGenAiSpans||I(t))return;let n=[],r=[];for(let t of e.spans)t.op?.startsWith(`gen_ai.`)?n.push(Sa(t)):r.push(t);if(n.length!==0)return e.spans=r,eo(n,t)}var Ol=Symbol.for(`SentryBufferFullError`);function kl(e=100){let t=new Set;function n(){return t.size<e}function r(e){t.delete(e)}function i(e){if(!n())return ac(Ol);let i=e();return t.add(i),i.then(()=>r(i),()=>r(i)),i}function a(e){if(!t.size)return ic(!0);let n=Promise.allSettled(Array.from(t)).then(()=>!0);if(!e)return n;let r=[n,new Promise(t=>ja(setTimeout(()=>t(!1),e)))];return Promise.race(r)}return{get $(){return Array.from(t)},add:i,drain:a}}var Al=6e4;function jl(e,t=Be()){let n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;let r=Date.parse(`${e}`);return isNaN(r)?Al:r-t}function Ml(e,t){return e[t]||e.all||0}function Nl(e,t,n=Be()){return Ml(e,t)>n}function Pl(e,{statusCode:t,headers:n},r=Be()){let i={...e},a=n?.[`x-sentry-rate-limits`],o=n?.[`retry-after`];if(a)for(let e of a.trim().split(`,`)){let[t,n,,,a]=e.split(`:`,5),o=parseInt(t,10),s=(isNaN(o)?60:o)*1e3;if(!n)i.all=r+s;else for(let e of n.split(`;`))e===`metric_bucket`?(!a||a.split(`;`).includes(`custom`))&&(i[e]=r+s):i[e]=r+s}else o?i.all=r+jl(o,r):t===429&&(i.all=r+6e4);return i}function Fl(e,t,n=kl(e.bufferSize||64)){let i={},a=e=>n.drain(e);function o(a){let o=[];if(Pa(a,(t,n)=>{let r=Wa(n);Nl(i,r)?e.recordDroppedEvent(`ratelimit_backoff`,r):o.push(t)}),o.length===0)return Promise.resolve({});let s=Ma(a[0],o),c=t=>{if(Fa(s,[`client_report`])){r&&x.warn(`Dropping client report. Will not send outcomes (reason: ${t}).`);return}Pa(s,(n,r)=>{e.recordDroppedEvent(t,Wa(r))})};return n.add(()=>t({body:Ra(s)}).then(e=>e.statusCode===413?(r&&x.error(`Sentry responded with status code 413. Envelope was discarded due to exceeding size limits.`),c(`send_error`),e):(r&&e.statusCode!==void 0&&(e.statusCode<200||e.statusCode>=300)&&x.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),i=Pl(i,e),e),e=>{throw c(`network_error`),r&&x.error(`Encountered error running transport request:`,e),e})).then(e=>e,e=>
9{if(e===Ol)return r&&x.error(`Skipped sending event because buffer is full.`),c(`queue_overflow`),Promise.resolve({});throw e})}return{send:o,flush:a}}function Il(e,t,n){let r=[{type:`client_report`},{timestamp:n||xt(),discarded_events:e}];return Ma(t?{dsn:t}:{},[r])}function Ll(e){let t=[];e.message&&t.push(e.message);try{let n=e.exception.values[e.exception.values.length-1];n?.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`))}catch{}return t}function Rl(e){let{trace_id:t,parent_span_id:n,span_id:r,status:i,origin:a,data:o,op:s}=e.contexts?.trace??{};return{data:o??{},description:e.transaction,op:s,parent_span_id:n,span_id:r??``,start_timestamp:e.start_timestamp??0,status:i??`ok`,timestamp:e.timestamp,trace_id:t??``,origin:a,profile_id:o?.[vr],exclusive_time:o?.[yr],measurements:e.measurements,is_segment:!0}}function zl(e){return{type:`transaction`,timestamp:e.timestamp,start_timestamp:e.start_timestamp,transaction:e.description,contexts:{trace:{trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,op:e.op,status:e.status,origin:e.origin,data:{...e.data,...e.profile_id&&{"sentry.profile_id":e.profile_id},...e.exclusive_time&&{"sentry.exclusive_time":e.exclusive_time}}}},measurements:e.measurements}}function Bl(e){e.traceLifecycle===`stream`&&(e.beforeSendTransaction||e.ignoreTransactions?.length)&&f(()=>{console.warn("[Sentry] `beforeSendTransaction` and `ignoreTransactions` are ignored with `traceLifecycle: 'stream'` (enabled by default). Use `beforeSendSpan` and `ignoreSpans` instead, or set `traceLifecycle: 'static'`.")})}var Vl={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,queues:!0,stackFrameVariables:!0,frameContextLines:5};function Hl(e){return typeof e==`boolean`||`allow`in e||`deny`in e}function Ul(e){return e===void 0?{...Vl.httpHeaders}:Hl(e)?{request:e,response:e}:{request:e.request??Vl.httpHeaders.request,response:e.response??Vl.httpHeaders.response}}function Wl(e){let t=e.dataCollection??{};return{userInfo:t.userInfo??Vl.userInfo,cookies:t.cookies??Vl.cookies,httpHeaders:Ul(t.httpHeaders),httpBodies:t.httpBodies??Vl.httpBodies,urlQueryParams:t.urlQueryParams??Vl.urlQueryParams,graphQL:{document:t.graphQL?.document??Vl.graphQL.document,variables:t.graphQL?.variables??Vl.graphQL.variables},genAI:{inputs:t.genAI?.inputs??Vl.genAI.inputs,outputs:t.genAI?.outputs??Vl.genAI.outputs},databaseQueryData:t.databaseQueryData??Vl.databaseQueryData,queues:t.queues??Vl.queues,stackFrameVariables:t.stackFrame
9Variables??Vl.stackFrameVariables,frameContextLines:t.frameContextLines??Vl.frameContextLines}}var Gl=`Not capturing exception because it's already been captured.`,Kl=`Discarded session because of missing or non-string release`,ql=Symbol.for(`SentryInternalError`),Jl=Symbol.for(`SentryDoNotSendEventError`),Yl=5e3;function Xl(e){return{message:e,[ql]:!0}}function Zl(e){return{message:e,[Jl]:!0}}function Ql(e){return we(e)&&ql in e}function $l(e){return we(e)&&Jl in e}function eu(e,t,n,r,i){let a=0,o,s=!1;e.on(n,()=>{a=0,clearTimeout(o),s=!1}),e.on(t,t=>{if(a+=r(t),a>=8e5)i(e);else if(!s){let t=e.getOptions()._flushInterval??Yl;t>0&&(s=!0,o=ja(setTimeout(()=>{i(e)},t)))}}),e.on(`flush`,()=>{i(e)})}var tu=class{constructor(e){this._options={attachStacktrace:!0,...e,traceLifecycle:e.traceLifecycle===`static`?`static`:`stream`},this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=kl(e.transportOptions?.bufferSize??64),this._dataCollection=Wl(e),this._unhandledSessionStatus=`crashed`,e.dsn?this._dsn=Yr(e.dsn):r&&x.warn(`No DSN provided, client will not send events.`);let{beforeSendSpan:t,traceLifecycle:n}=this._options;if(r&&t&&ya(t)!==(n===`static`)&&f(()=>{console.warn(`Ignoring \`beforeSendSpan\`: ${n===`static`?`wrap it with`:`remove`} \`Sentry.withStaticSpan\` to use it with \`traceLifecycle: "${n}"\`.`)}),this._dsn){let t=Zc(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}eu(this,`afterCaptureLog`,`flushLogs`,su,dl),eu(this,`afterCaptureMetric`,`flushMetrics`,ou,wl)}captureException(e,t,n){let i=ut();if(vt(e))return r&&x.log(Gl),i;let a={event_id:i,...t};return this._process(()=>this.eventFromException(e,a).then(e=>this._captureEvent(e,a,n)).then(e=>e),`error`),a.event_id}captureMessage(e,t,n,r){let i={event_id:ut(),...n},a=xe(e)?e:String(e),o=Se(e),s=o?this.eventFromMessage(a,t,i):this.eventFromException(e,i);return this._process(()=>s.then(e=>this._captureEvent(e,i,r)),o?`unknown`:`error`),i.event_id}captureEvent(e,t,n){let i=ut();if(t?.originalException&&vt(t.originalException))return r&&x.log(Gl),i;let a={event_id:i,...t},o=e.sdkProcessingMetadata||{},s=o.capturedSpanScope,c=o.capturedSpanIsolationScope,l=qa(e.type);return this._process(()=>this._captureEvent(e,a,s||n,c),l),a.event_id}captureSession(e){this.sendSession(e),kt(e,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getDataCollectionOptions(){return this._dataCollection}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(e){let t=this._transport;if(this.emit(`flush`),!t)return!0;let n=await this._isClientDoneProcessing(e),r=await t.flush(e);return n&&r}async close(e){let t=await this.flush(e);return this.getOptions().enabled=!1,this.emit(`close`),t}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some(({name:e})=>e.startsWith(`Spotlight`)))&&(this._setupIntegrations(),Bl(this._options))}getIntegrationByName(e){return this._integrations[e]}getIntegrationNames(){return Object.keys(this._integrations)}addIntegration(e){let t=this._integrations[e.name];!t&&e.beforeSetup&&e.beforeSetup(this),qi(this,e,this._integrations),t||Ki(this,[e])}sendEvent(e,t={}){this.emit(`beforeSendEvent`,e,t);let n=Dl(e,this),r=ec(e,this._dsn,this._options._metadata,this._options.tunnel);for(let e of t.attachments||[])r=Na(r,Va(e));n&&(r=Na(r,n)),this.sendEnvelope(r).then(t=>this.emit(`afterSendEvent`,e,t))}sendSession(e){let{release:t,environment:n=Yi}=this._options;if(`aggregates`in e){let i=e.attrs||{};if(!i.release&&!t){r&&x.warn(Kl);return}i.release=i.release||t,i.environment=i.environment||n,e.attrs=i}else{if(!e.release&&!t){r&&x.warn(Kl);return}e.release=e.release||t,e.environment=e.environment||n}this.emit(`beforeSendSession`,e);let i=$s(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(i)}recordDroppedEvent(e,t,n=1){if(this._options.sendClientReports){let i=`${e}:${t}`;r&&x.log(`Recording outcome: "${i}"${n>1?` (${n} times)`:``}`),this._outcomes[i]=(this._outcomes[i]||0)+n}}on(e,t){let n=this._hooks[e]=this._hooks[e]||new Set,r=(...e)=>t(...e);return n.add(r),()=>{n.delete(r)}}emit(e,...t){let n=this._hooks[e];
9n&&n.forEach(e=>e(...t))}async sendEnvelope(e){if(this.emit(`beforeEnvelope`,e),this._isEnabled()&&this._transport)try{let t=await this._transport.send(e);return this.emit(`afterEnvelope`,e),t}catch(e){return r&&x.error(`Error while sending envelope:`,e),{}}return r&&x.error(`Transport disabled`),{}}registerCleanup(e){}dispose(){}_setupIntegrations(){let{integrations:e}=this._options;this._integrations=Gi(this,e),Ki(this,e)}_updateSessionFromEvent(e,t){let n=t.level===`fatal`,r=!1,i=t.exception?.values;if(i){r=!0,n=!1;for(let e of i)if(e.mechanism?.handled===!1){n=!0;break}}let a=e.status===`ok`;(a&&e.errors===0||a&&n)&&(kt(e,{...n&&{status:this._unhandledSessionStatus},errors:e.errors||Number(r||n)}),this.captureSession(e))}async _isClientDoneProcessing(e){let t=0;for(;!e||t<e;){if(await new Promise(e=>setTimeout(e,1)),!this._numProcessing)return!0;t++}return!1}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(e,t,n,r){let i=this.getOptions(),a=this.getIntegrationNames();return!t.integrations&&a.length&&(t.integrations=a),this.emit(`preprocessEvent`,e,t),e.type||r.setLastEventId(e.event_id||t.event_id),hc(i,e,t,n,this,r).then(e=>e===null?e:(this.emit(`postprocessEvent`,e,t),e.contexts={trace:{...e.contexts?.trace,...un(n)},...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:na(this,n),...e.sdkProcessingMetadata},e))}_captureEvent(e,t={},n=A(),i=j()){return r&&iu(e)&&x.log(`Captured error event \`${Ll(e)[0]||`<unknown>`}\``),this._processEvent(e,t,n,i).then(e=>e.event_id,e=>{r&&($l(e)?x.log(e.message):Ql(e)?x.warn(e.message):x.warn(e))})}_processEvent(e,t,n,r){let i=this.getOptions(),{sampleRate:a}=i,o=au(e),s=iu(e),c=`before send for type \`${e.type||`error`}\``,l=`before_send`,u=a===void 0?void 0:Xr(a),d=qa(e.type);return this._prepareEvent(e,t,n,r).then(e=>{if(e===null)throw Zl("An event processor returned `null`, will not send event.");return t.data?.__sentry__===!0?e:nu(ru(this,i,e,t,()=>{l=`callback_error`}),c)}).then(i=>{if(i===null){if(this.recordDroppedEvent(l,d),o){let t=e.spans||[];this.recordDroppedEvent(l,`span`,1+t.length)}throw Zl(`${c} ${l===`callback_error`?`threw an error`:"returned `null`"}, will not send event.`)}let f=n.getSession()||r.getSession();if(s&&f&&this._updateSessionFromEvent(f,i),s&&typeof u==`number`&&ze()>u)throw this.recordDroppedEvent(`sample_rate`,`error`),Zl(`Discarding event because it's not included in the random sample (sampling rate = ${a})`);if(o){let e=(i.sdkProcessingMetadata?.spanCountBeforeProcessing||0)-(i.spans?i.spans.length:0);e>0&&this.recordDroppedEvent(`before_send`,`span`,e)}let p=i.transaction_info;return o&&p&&i.transaction!==e.transaction&&(i.transaction_info={...p,source:`custom`}),this.sendEvent(i,t),i}).then(null,e=>{throw $l(e)||Ql(e)?e:(this.captureException(e,{mechanism:{handled:!1,type:`internal`},data:{__sentry__:!0},originalException:e}),Xl(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
10Reason: ${e}`))})}_process(e,t){this._numProcessing++,this._promiseBuffer.add(e).then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e===Ol&&this.recordDroppedEvent(`queue_overflow`,t),e))}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.entries(e).map(([e,t])=>{let[n,r]=e.split(`:`);return{reason:n,category:r,quantity:t}})}_flushOutcomes(){r&&x.log(`Flushing outcomes...`);let e=this._clearOutcomes();if(e.length===0){r&&x.log(`No outcomes to send`);return}if(!this._dsn){r&&x.log(`No dsn provided, will not send outcomes`);return}r&&x.log(`Sending outcomes:`,e);let t=Il(e,this._options.tunnel&&Ur(this._dsn));this.sendEnvelope(t)}};function nu(e,t){let n=`${t} must return \`null\` or a valid event.`;if(De(e))return e.then(e=>{if(!Ce(e)&&e!==null)throw Xl(n);return e},e=>{throw Xl(`${t} rejected with ${e}`)});if(!Ce(e)&&e!==null)throw Xl(n);return e}function ru(e,t,n,i,a){let{beforeSend:o,ignoreSpans:s,beforeSendTransaction:c}=t,l=ya(t.beforeSendSpan)&&t.beforeSendSpan,u=n;if(iu(u)&&o){let e=u;return ha(r?"The `beforeSend` callback threw an error, dropping the event:":``,()=>o(e,i),()=>(a(),null))}if(au(u)){if(l||s){let t=Rl(u);if(s?.length&&Ri({description:t.description,op:t.op,attributes:t.data},s))return null;if(l&&(u=Mt(n,zl(xa(t,l)))),u.spans){let t=[],n=u.spans;for(let e of n){if(s?.length&&Ri({description:e.description,op:e.op,attributes:e.data},s)){Bi(n,e);continue}
10l?t.push(xa(e,l)):t.push(e)}let r=u.spans.length-t.length;r&&e.recordDroppedEvent(`before_send`,`span`,r),u.spans=t}}if(c){if(u.spans){let e=u.spans.length;u.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return ha(r?"The `beforeSendTransaction` callback threw an error, dropping the event:":``,()=>c(u,i),()=>(a(),null))}}return u}function iu(e){return e.type===void 0}function au(e){return e.type===`transaction`}function ou(e){let t=0;return e.name&&(t+=e.name.length*2),t+=8,t+cu(e.attributes)}function su(e){let t=0;return e.message&&(t+=e.message.length*2),t+cu(e.attributes)}function cu(e){if(!e)return 0;let t=0;return Object.values(e).forEach(e=>{Array.isArray(e)?t+=e.length*lu(e[0]):Se(e)?t+=lu(e):t+=100}),t}function lu(e){return typeof e==`string`?e.length*2:typeof e==`number`?8:typeof e==`boolean`?4:0}function uu(e,t){t.debug===!0&&(r?x.enable():f(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),A().update(t.initialScope);let n=new e(t);return du(n),n.init(),n}function du(e){A().setClient(e)}var fu=5e3,pu=36e5;function mu(e){function t(...e){r&&x.log(`[Offline]:`,...e)}return n=>{let r=e(n);if(!n.createStore)throw Error("No `createStore` function was provided");let i=n.createStore(n),a=fu,o;function s(e,t,r){return Fa(e,[`client_report`])?!1:!n.shouldStore||n.shouldStore(e,t,r)}function c(e){o&&clearTimeout(o),o=ja(setTimeout(async()=>{o=void 0;let e=await i.shift();e&&(t(`Attempting to send previously queued event`),e[0].sent_at=new Date(Be()).toISOString(),u(e,!0).catch(e=>{t(`Failed to retry sending`,e)}))},e))}function l(){o||(c(a),a=Math.min(a*2,pu))}async function u(e,o=!1){if(!o&&Fa(e,[`replay_event`,`replay_recording`]))return await i.push(e),c(100),{};try{if(n.shouldSend){let t=n.shouldSend(e);if((De(t)?await t:t)===!1)throw Error("Envelope not sent because `shouldSend` callback returned false")}let t=await r.send(e),i=100;if(t){if(t.headers?.[`retry-after`])i=jl(t.headers[`retry-after`]);else if(t.headers?.[`x-sentry-rate-limits`])i=6e4;else if((t.statusCode||0)>=400)return t}return c(i),a=fu,t}catch(n){let r=s(e,n,a);if(De(r)?await r:r)return o?await i.unshift(e):await i.push(e),l(),t(`Error sending. Event queued.`,n),{};throw n}}return n.flushAtStartup&&l(),{send:u,flush:e=>(e===void 0&&(a=fu,c(100)),r.flush(e))}}}var hu=`MULTIPLEXED_TRANSPORT_EXTRA_KEY`;function gu(e,t){let n;return Pa(e,(e,r)=>(t.includes(r)&&(n=Array.isArray(e)?e[1]:void 0),!!n)),n}function _u(e,t){return n=>{let r=e(n);return{...r,send:async e=>{let n=gu(e,[`event`,`transaction`,`profile`,`replay_event`]);return n&&(n.release=t),r.send(e)}}}}function vu(e,t){return Ma(t?{...e[0],dsn:t}:e[0],e[1])}function yu(e,t){return n=>{let r=e(n),i=new Map,a=t||(e=>{let t=e.getEvent();return t?.extra?.MULTIPLEXED_TRANSPORT_EXTRA_KEY&&Array.isArray(t.extra.MULTIPLEXED_TRANSPORT_EXTRA_KEY)?t.extra.MULTIPLEXED_TRANSPORT_EXTRA_KEY:[]});function o(t,r){let a=r?`${t}:${r}`:t,o=i.get(a);if(!o){let s=Wr(t);if(!s)return;let c=Zc(s,n.tunnel);o=r?_u(e,r)({...n,url:c}):e({...n,url:c}),i.set(a,o)}return[t,o]}async function s(e){function t(t){return gu(e,t?.length?t:[`event`])}let n=a({envelope:e,getEvent:t}).map(e=>typeof e==`string`?o(e,void 0):o(e.dsn,e.release)).filter(e=>!!e),i=n.length?n:[[``,r]];return(await Promise.all(i.map(([t,n])=>n.send(vu(e,t)))))[0]}async function c(e){let t=[...i.values(),r];return(await Promise.all(t.map(t=>t.flush(e)))).every(e=>e)}return{send:s,flush:c}}}var bu=`[Filtered]`,xu=[`auth`,`token`,`secret`,`session`,`password`,`passwd`,`pwd`,`key`,`jwt`,`bearer`,`sso`,`saml`,`csrf`,`xsrf`,`credentials`,`sid`,`identity`,`set-cookie`,`cookie`],Su=[`.sid`,`sessid`,`remember`,`oidc`,`pkce`,`nonce`,`__secure-`,`__host-`,`awsalb`,`awselb`,`akamai`,`__stripe`,`cognito`,`firebase`,`supabase`,`sb-`,`mfa`,`2fa`];function Cu(e,t){return t.some(t=>e.includes(t))}function wu(e,t,n){if(t===!1)return!0;let r=e.toLowerCase();if(Cu(r,n==null?xu:[...xu,...n]))return!0;if(t===!0)return!1;let i=(`deny`in t?t.deny:t.allow).some(e=>r.includes(e.toLowerCase()));return`deny`in t?i:!i}function Tu(e,t,n){if(t===!1)return{};let r={};for(let i of Object.keys(e))r[i]=wu(i,t,n)?bu:e[i];return r}function Eu(e,t){return(Array.isArray(e)?e:[e]).flatMap(e=>typeof e==`string`?t===`set-cookie`?[e.split(`;`)[0]]:e.split(`;`):[]).map(e=>e.trim()).filter(e=>e!==``&&e!==`=`).map(e=>{let t=e.indexOf(`=`);return t===-1?[``,e]:[e.slice(0,t).trim(),e.slice(t+1).trim()]})}function Du(e){let t={};for(let[n,r]of e)t[n]===void 0&&(t[n]=n===``?bu:Ou(r));return t}function Ou(e){let t=e.length>1&&e.startsWith(`"`)&&e.endsWith(`"`)?e.slice(1,-1):e;try{return t.indexOf(`%`)===-1?t:decodeURIComponent(t)}catch{return t}}function ku(e,t,n){return t===!1?{}
10:Tu(Du(Eu(e,n)),t,Su)}function Au(e,t){if(e&&t!==!1)return e.split(`&`).map(e=>{let n=e.indexOf(`=`),r=n===-1?e:e.slice(0,n),i=new URLSearchParams(`${r}=`).keys().next().value;return i!==void 0&&wu(i,t)?`${r}=${bu}`:e}).join(`&`)}function ju(e,t){let n=e.indexOf(`#`),r=n===-1?e.length:n,i=e.indexOf(`?`);if(i===-1||i>r)return e;let a=e.slice(0,i),o=e.slice(i+1,r),s=e.slice(r),c=Au(o,t);return c?`${a}?${c}${s}`:`${a}${s}`}function Mu(e){return(e??M())?.getDataCollectionOptions().urlQueryParams??!0}function Nu(e,t){return e===void 0?void 0:ju(e,Mu(t))}function Pu(e,t){return e?Au(e,Mu(t)):void 0}var Fu=`thismessage:/`;function Iu(e){return`isRelative`in e}function Lu(e,t){let n=e.indexOf(`://`)<=0&&e.indexOf(`//`)!==0,r=t??(n?Fu:void 0);try{if(`canParse`in URL&&!URL.canParse(e,r))return;let t=new URL(e,r);return n?{isRelative:n,pathname:t.pathname,search:t.search,hash:t.hash}:t}catch{}}function Ru(e){if(Iu(e))return e.pathname;let t=new URL(e);return t.search=``,t.hash=``,[`80`,`443`].includes(t.port)&&(t.port=``),t.password&&=`%filtered%`,t.username&&=`%filtered%`,t.toString()}function zu(e){return e?.replace(/^\?/,``)||void 0}function Bu(e){return e?.replace(/^#/,``)||void 0}function Vu(e,t){try{return new URL(e,t).hostname||void 0}catch{return}}function Hu(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let n=t[6]||``,r=t[8]||``;return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}function Uu(e){return e.split(/[?#]/,1)[0]}function Wu(e,t=!0){if(e.startsWith(`data:`)){let n=e.match(/^data:([^;,]+)/),r=n?n[1]:`text/plain`,i=e.includes(`;base64,`),a=e.indexOf(`,`),o=``;if(t&&a!==-1){let t=e.slice(a+1);o=t.length>10?`${t.slice(0,10)}... [truncated]`:t}return`data:${r}${i?`,base64`:``}${o?`,${o}`:``}`}return e}function Gu(e,t){let n=t?.getDsn(),r=t?.getOptions().tunnel;return qu(e,n)||Ku(e,r)}function Ku(e,t){return t?Yu(e)===Yu(t):!1}function qu(e,t){let n=Lu(e);return!n||Iu(n)||!t?!1:Ju(n.hostname,t.host)&&/(^|&|\?)sentry_key=/.test(n.search)}function Ju(e,t){return e===t||t.length>0&&e.endsWith(`.${t}`)}function Yu(e){return e[e.length-1]===`/`?e.slice(0,-1):e}function Xu(e,...t){let n=new String(String.raw(e,...t));return n.__sentry_template_string__=e.join(`\0`).replace(/%/g,`%%`).replace(/\0/g,`%s`),n.__sentry_template_values__=t,n}var Zu=Xu;function Qu(e){`aggregates`in e?e.attrs?.ip_address===void 0&&(e.attrs={...e.attrs,ip_address:`{{auto}}`}):e.ipAddress===void 0&&(e.ipAddress=`{{auto}}`)}function $u(e,t,n=[t],r=`npm`){let i=(e._metadata=e._metadata||{}).sdk=e._metadata.sdk||{};i.name||(i.name=`sentry.javascript.${t}`,i.packages=n.map(e=>({name:`${r}:@sentry/${e}`,version:a})),i.version=a)}function ed(e={}){let t=e.client||M();if(!Hc()||!t)return{};let n=Zt(o());if(n.getTraceData)return n.getTraceData(e);let r=e.scope||A(),i=e.span||P(),a=Qi(i)&&!Ii(t.getOptions());if(!i&&on())return{};let s=i&&!a?li(i):td(r),c=Ir(i?ra(i):na(t,r));if(!Zr.test(s))return x.warn(`Invalid sentry-trace data. Cannot generate trace data`),{};let l={"sentry-trace":s,baggage:c};return e.propagateTraceparent&&(l.traceparent=i&&!a?ui(i):nd(r)),l}function td(e){let{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return ei(t,r,n)}function nd(e){let{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return ti(t,r,n)}var rd=new WeakMap;function id(e){let t=`${e.flags.replace(/[gy]/g,``)}${e.ignoreCase?``:`i`}`;if(t===e.flags)return e;let n=rd.get(e);if(n)return n;let r=new RegExp(e.source,t);return rd.set(e,r),r}function ad(e,t,n=!1){let r=e.toLowerCase();for(let i of t)if(k(i)){let e=i.toLowerCase();if(n?r===e:r.includes(e))return!0}else if(Ee(i)&&id(i).test(e))return!0;return!1}var od=100;function sd(e,t){let n=M(),i=j();if(!n)return;let{beforeBreadcrumb:a=null,maxBreadcrumbs:o=od}=n.getOptions();if(o<=0)return;let s={timestamp:xt(),...e},c=a?ha(r?"The `beforeBreadcrumb` callback threw an error, dropping the breadcrumb:":``,()=>f(()=>a(s,t)),()=>null):s;c!==null&&(n.emit&&n.emit(`beforeAddBreadcrumb`,c,t),i.addBreadcrumb(c,o))}var cd=`FunctionToString`,ld=new WeakMap,ud=F((()=>({name:cd,setupOnce(){let e=Function.prototype.toString;try{Function.prototype.toString=function(...t){let n=Ne(this),r;try{ld.has(M())&&n!==void 0&&(r=n)}catch{}return e.apply(r??this,t)}}catch{}},setup(e){ld.set(e,!0)}}))),dd=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,/can't redefine non-configurable property "solana"/,/vv\(\)\.getRestrictions is not a function/,/Can't find variable: _AutofillCallbackHandler/,/Object Not Found Matching Id:\d+, MethodName:simulateEvent/,/Java exception was raised during method invocation$/,/Java object is gone$/],fd=`EventFilters`,pd=F((e={})=>{let t;return{name:fd,setup(n){t=md(e,n.getOptions())},processEvent(n,r,i){return t||=md(e,i.getOptions()),hd(n,t)?null:n}}});function md(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:dd],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function hd(e,t){if(!e.type){if(gd(e,t.ignoreErrors))return r&&x.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
11Event: ${ft(e)}`),!0;if(Sd(e))return r&&x.warn(`Event dropped due to not having an error message, error type or stacktrace.
12Event: ${ft(e)}`),!0;if(vd(e,t.denyUrls))return r&&x.warn(`Event dropped due to being matched by \`denyUrls\` option.
13Event: ${ft(e)}.
14Url: ${xd(e)}`),!0;if(!yd(e,t.allowUrls))return r&&x.warn(`Event dropped due to not being matched by \`allowUrls\` option.
15Event: ${ft(e)}.
16Url: ${xd(e)}`),!0}else if(e.type===`transaction`&&_d(e,t.ignoreTransactions))return r&&x.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
17Event: ${ft(e)}`),!0;return!1}function gd(e,t){return t?.length?Ll(e).some(e=>ot(e,t)):!1}function _d(e,t){if(!t?.length)return!1;let n=e.transaction;return n?ot(n,t):!1}function vd(e,t){if(!t?.length)return!1;let n=xd(e);return n?ot(n,t):!1}function yd(e,t){if(!t?.length)return!0;let n=xd(e);return!n||ot(n,t)}function bd(e=[]){for(let t=e.length-1;t>=0;t--){let n=e[t];if(n&&n.filename!==`<anonymous>`&&n.filename!==`[native code]`)return n.filename||null}return null}function xd(e){try{let t=[...e.exception?.values??[]].reverse().find(e=>e.mechanism?.parent_id===void 0&&e.stacktrace?.frames?.length)?.stacktrace?.frames;return t?bd(t):null}catch{return r&&x.error(`Cannot extract url for event ${ft(e)}`),null}}function Sd(e){return e.exception?.values?.length?!e.message&&!e.exception.values.some(e=>e.stacktrace||e.type&&e.type!==`Error`||e.value):!1}function Cd(e,t,n,r,i,a){if(!i.exception?.values||!a||!ge(a.originalException))return;let o=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;o&&(i.exception.values=wd(e,t,r,a.originalException,n,i.exception.values,o,0))}
17function wd(e,t,n,r,i,a,o,s){if(a.length>=n+1)return a;let c=[...a];if(ge(r[i])){Ed(o,s,r);let a=e(t,r[i]),l=c.length;Dd(a,i,l,s),c=wd(e,t,n,r[i],i,[a,...c],a,l)}return Td(r)&&r.errors.forEach((a,l)=>{if(ge(a)){Ed(o,s,r);let u=e(t,a),d=c.length;Dd(u,`errors[${l}]`,d,s),c=wd(e,t,n,a,i,[u,...c],u,d)}}),c}function Td(e){return Array.isArray(e.errors)}function Ed(e,t,n){e.mechanism={handled:!0,type:`auto.core.linked_errors`,...Td(n)&&{is_exception_group:!0},...e.mechanism,exception_id:t}}function Dd(e,t,n,r){e.mechanism={handled:!0,...e.mechanism,type:`chained`,source:t,exception_id:n,parent_id:r}}function Od(e){return ge(e)&&`__sentry_fetch_url_host__`in e&&typeof e.__sentry_fetch_url_host__==`string`}function kd(e){return Od(e)?`${e.message} (${e.__sentry_fetch_url_host__})`:e.message}var Ad=new Map,jd=new Set;function Md(e){if(i._sentryModuleMetadata)for(let t of Object.keys(i._sentryModuleMetadata)){let n=i._sentryModuleMetadata[t];if(jd.has(t))continue;jd.add(t);let r=e(t);for(let e of r.reverse())if(e.filename){Ad.set(e.filename,n);break}}}function Nd(e,t){return Md(e),Ad.get(t)}function Pd(e,t){t.exception?.values?.forEach(t=>{t.stacktrace?.frames?.forEach(t=>{if(!t.filename||t.module_metadata)return;let n=Nd(e,t.filename);n&&(t.module_metadata=n)})})}function Fd(e){e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{delete e.module_metadata})})}var Id=F(()=>({name:`ModuleMetadata`,setup(e){e.on(`beforeEnvelope`,e=>{Pa(e,(e,t)=>{if(t===`event`){let t=Array.isArray(e)?e[1]:void 0;t&&(Fd(t),e[1]=t)}})}),e.on(`applyFrameMetadata`,t=>{if(t.type)return;let n=e.getOptions().stackParser;Pd(n,t)})}})),Ld=new Set([]);function Rd(e){let t=`console`,n=oe(t,e);return se(t,Vd),n}function zd(e){for(let t of e)Ld.add(t);return()=>{for(let t of e)Ld.delete(t)}}var Bd=new Set;function Vd(){`console`in i&&l.forEach(function(e){!Bd.has(e)&&e in i.console&&(Bd.add(e),Ae(i.console,e,function(t){return d[e]=t,function(...t){let n=t[0],a=d[e],o=Ld.size&&typeof n==`string`&&ot(n,Ld);o||ce(`console`,{args:t,level:e}),(!o||r&&x.isEnabled())&&a?.apply(i.console,t)}}))})}function Hd(e){return e===`warn`?`warning`:[`fatal`,`error`,`warning`,`log`,`info`,`debug`].includes(e)?e:`log`}var Ud=`CaptureConsole`,Wd=F(((e={})=>{let t=e.levels||l,n=e.handled??!0;return{name:Ud,setup(e){`console`in i&&Rd(({args:r,level:i})=>{M()===e&&t.includes(i)&&Gd(r,i,n)})}}}));function Gd(e,t,n){let r=Hd(t),i=Error(),a={level:Hd(t),extra:{arguments:e}};cn(o=>{if(o.addEventProcessor(e=>(e.logger=`console`,mt(e,{handled:n,type:`auto.core.capture_console`}),e)),t===`assert`){if(!e[0]){let t=`Assertion failed: ${it(e.slice(1),` `)||`console.assert`}`;o.setExtra(`arguments`,e.slice(1)),o.captureMessage(t,r,{captureContext:a,syntheticException:i})}return}let s=e.find(e=>e instanceof Error);if(s){Ec(s,a);return}let c=it(e,` `);o.captureMessage(c,r,{captureContext:a,syntheticException:i})})}var Kd=`Dedupe`,qd=F((()=>{let e;return{name:Kd,processEvent(t){if(t.type)return t;try{if(Jd(t,e))return r&&x.warn(`Event dropped due to being a duplicate of previously captured event.`),null}catch{}return e=t}}}));function Jd(e,t){return t?!!(Yd(e,t)||Xd(e,t)):!1}function Yd(e,t){let n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!Qd(e,t)||!Zd(e,t))}function Xd(e,t){let n=$d(t),r=$d(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!Qd(e,t)||!Zd(e,t))}function Zd(e,t){let n=re(e),r=re(t);if(!n||!r)return!n&&!r;if(r.length!==n.length)return!1;for(let e=0;e<r.length;e++){let t=r[e],i=n[e];if(t.filename!==i.filename||t.lineno!==i.lineno||t.colno!==i.colno||t.function!==i.function)return!1}return!0}function Qd(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n||!r)return!n&&!r;try{return n.join(``)===r.join(``)}catch{return!1}}function $d(e){return e.exception?.values?.[0]}var ef=`ExtraErrorData`,tf=F(((e={})=>{let{depth:t=3,captureErrorCause:n=!0}=e;return{name:ef,processEvent(e,r,i){let{maxValueLength:a}=i.getOptions();return nf(e,r,t,n,a)}}}));function nf(e,t={},n,r,i){if(!t.originalException||!ge(t.originalException))return e;let a=t.originalException.name||t.originalException.constructor.name,o=rf(t.originalException,r,i);if(o){let t={...e.contexts},r=Je(o,n);return Ce(r)&&(Ue(r),t[a]=r),{...e,contexts:t}}return e}function rf(e,t,n){try{let r=[`name`,`message`,`stack`,`line`,`column`,`fileName`,`lineNumber`,`columnNumber`,`toJSON`],i={};for(let t of Object.keys(e)){if(r.indexOf(t)!==-1)continue;let a=e[t];i[t]=ge(a)||typeof a==`string`?n?nt(`${a}`,n):`${a}`:a}if(t&&e.cause!==void 0&&(i.cause=ge(e.cause)?{[e.cause.name||e.cause.constructor.name]:rf(e.cause,!1,n)}:e.cause),typeof e.toJSON==`function`){let t=e.toJSON();for(let e of Object.keys(t)){let n=t[e];i[e]=ge(n)?n.toString():n}}return i}catch(e){r&&x.error(`Unable to extract extra data from the Error object:`,e)}return null}function af(e,t){let n=0;for(let t=e.length-1;t>=0;t--){let r=e[t];r===`.`?e.splice(t,1):r===`..`?(e.splice(t,1),n++):n&&(e.splice(t,1),n--)}if(t)for(;n--;)e.unshift(`..`);return e}var of=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function sf(e){let t=e.length>1024?`<truncated>${e.slice(-1024)}`:e,n=of.exec(t);return n?n.slice(1):[]}function cf(...e){let t=``,n=!1;for(let r=e.length-1;r>=-1&&!n;r--){let i=r>=0?e[r]:`/`;i&&(t=`${i}/${t}`,n=i.charAt(0)===`/`)}return t=af(t.split(`/`).filter(e=>!!e),!n).join(`/`),(n?`/`:``)+t||`.`}function lf(e){let t=0;for(;t<e.length&&e[t]===``;t++);let n=e.length-1;for(;n>=0&&e[n]===``;n--);return t>n?[]:e.slice(t,n-t+1)}function uf(e,t){e=cf(e).slice(1),t=cf(t).slice(1);let n=lf(e.split(`/`)),r=lf(t.split(`/`)),i=Math.min(n.length,r.length),a=i;for(let e=0;e<i;e++)if(n[e]!==r[e]){a=e;break}let o=[];for(let e=a;
17e<n.length;e++)o.push(`..`);return o=o.concat(r.slice(a)),o.join(`/`)}function df(e,t){let n=sf(e)[2]||``;return t&&n.slice(t.length*-1)===t&&(n=n.slice(0,n.length-t.length)),n}var ff=`RewriteFrames`,pf=F((e={})=>{let t=e.root,n=e.prefix||`app:///`,r=`window`in i&&!!i.window,a=e.iteratee||mf({isBrowser:r,root:t,prefix:n});function o(e){try{return{...e,exception:{...e.exception,values:e.exception.values.map(e=>({...e,...e.stacktrace&&{stacktrace:s(e.stacktrace)}}))}}}catch{return e}}function s(e){return{...e,frames:e?.frames?.map(e=>a(e))}}return{name:ff,processEvent(e){let t=e;return e.exception&&Array.isArray(e.exception.values)&&(t=o(t)),t}}});function mf({isBrowser:e,root:t,prefix:n}){return r=>{if(!r.filename)return r;let i=/^[a-zA-Z]:\\/.test(r.filename)||r.filename.includes(`\\`)&&!r.filename.includes(`/`),a=/^\//.test(r.filename);if(e){if(t){let e=r.filename;e.indexOf(t)===0&&(r.filename=e.replace(t,n))}}else if(i||a){let e=i?r.filename.replace(/^[a-zA-Z]:/,``).replace(/\\/g,`/`):r.filename;r.filename=`${n}${t?uf(t,e):df(e)}`}return r}}var hf=[`reauthenticate`,`signInAnonymously`,`signInWithOAuth`,`signInWithIdToken`,`signInWithOtp`,`signInWithPassword`,`signInWithSSO`,`signOut`,`signUp`,`verifyOtp`],gf=[`createUser`,`deleteUser`,`listUsers`,`getUserById`,`updateUserById`,`inviteUserByEmail`],_f={eq:`eq`,neq:`neq`,gt:`gt`,gte:`gte`,lt:`lt`,lte:`lte`,like:`like`,"like(all)":`likeAllOf`,"like(any)":`likeAnyOf`,ilike:`ilike`,"ilike(all)":`ilikeAllOf`,"ilike(any)":`ilikeAnyOf`,is:`is`,in:`in`,cs:`contains`,cd:`containedBy`,sr:`rangeGt`,nxl:`rangeGte`,sl:`rangeLt`,nxr:`rangeLte`,adj:`rangeAdjacent`,ov:`overlaps`,fts:``,plfts:`plain`,phfts:`phrase`,wfts:`websearch`,not:`not`},vf=[`select`,`insert`,`upsert`,`update`,`delete`];function yf(e){try{e.__SENTRY_INSTRUMENTED__=!0}catch{}}function bf(e){try{return e.__SENTRY_INSTRUMENTED__}catch{return!1}}function xf(e,t){if(Object.keys(t).length>0)return t;if(Array.isArray(e)&&e.length>0)return e}function Sf(e,t){return xf(e,t)!==void 0}function Cf(e,t){if(!e)return;if(typeof e.get==`function`)return e.get(t)??void 0;let n=e,r=t.toLowerCase(),i=Object.keys(n).find(e=>e.toLowerCase()===r);return i===void 0?void 0:n[i]}function wf(e,t={}){switch(e){case`GET`:case`QUERY`:return`select`;case`POST`:return Cf(t,`Prefer`)?.includes(`resolution=`)?`upsert`:`insert`;case`PATCH`:return`update`;case`DELETE`:return`delete`;default:return`<unknown-op>`}}function Tf(e,t){if(t===``||t===`*`)return`select(*)`;if(e===`select`)return`select(${t})`;if(e===`or`||e.endsWith(`.or`))return`${e}${t}`;let[n,...r]=t.split(`.`),i;return i=n?.startsWith(`fts`)?`textSearch`:n?.startsWith(`plfts`)?`textSearch[plain]`:n?.startsWith(`phfts`)?`textSearch[phrase]`:n?.startsWith(`wfts`)?`textSearch[websearch]`:n&&_f[n]||`filter`,`${i}(${e}, ${r.join(`.`)})`}function Ef(e,t=!1){return new Proxy(e,{apply(n,r,i){let a=`auth${t?`.admin`:``}.${e.name}`,o=M();return ko({name:o&&I(o)?a:`auth ${t?`(admin) `:``}${e.name}`,attributes:{[or]:`auto.db.supabase`,[In]:`db`,[xn]:`postgresql`,[bn]:a}},e=>Reflect.apply(n,r,i).then(t=>(we(t)&&`error`in t&&t.error?(e.setStatus({code:2}),Ec(t.error,{mechanism:{handled:!1,type:`auto.db.supabase.auth`}})):e.setStatus({code:1}),e.end(),t)).catch(t=>{throw e.setStatus({code:2}),e.end(),Ec(t,{mechanism:{handled:!1,type:`auto.db.supabase.auth`}}),t}).then(...i))}})}function Df(e){let t=e.auth;if(t&&!bf(e.auth)){for(let n of hf){let r=t[n];r&&typeof e.auth[n]==`function`&&(e.auth[n]=Ef(r))}for(let n of gf){let r=t.admin[n];r&&typeof e.auth.admin[n]==`function`&&(e.auth.admin[n]=Ef(r,!0))}yf(e.auth)}}function Of(e,t){bf(e.prototype.from)||(e.prototype.from=new Proxy(e.prototype.from,{apply(e,n,r){let i=Reflect.apply(e,n,r),a=i.constructor;return Af(a,t),i}}),yf(e.prototype.from))}function kf(e,t){bf(e.prototype.then)||(e.prototype.then=new Proxy(e.prototype.then,{apply(e,n,r){let i=vf,a=n,o=wf(a.method,a.headers);if(!i.includes(o)||!a?.url?.pathname||typeof a.url.pathname!=`string`)return Reflect.apply(e,n,r);let s=a.url.pathname.split(`/`),c=s.length>0?s[s.length-1]:``,l=[];
17for(let[e,t]of a.url.searchParams.entries())l.push(Tf(e,t));let u=Object.create(null);if(Ce(a.body))for(let[e,t]of Object.entries(a.body))u[e]=t;let d=M(),f=t.sendOperationData??d?.getDataCollectionOptions().databaseQueryData===!0,p=xf(a.body,u),m=o===`select`?``:`${o}${Sf(a.body,u)?`(...) `:``}`,h=f?l.join(` `):l.length>0?`[redacted]`:``,g=[m.trimEnd(),h].filter(Boolean).join(` `),_=g?`${g} from(${c})`:`from(${c})`,v=d&&I(d)?`${o}${c?` ${c}`:``}`:_,y={"db.table":c,"db.schema":a.schema,"db.url":a.url.origin,"db.sdk":Cf(a.headers,`X-Client-Info`),[xn]:`postgresql`,[bn]:o,[or]:`auto.db.supabase`,[In]:`db`};return l.length&&f&&(y[`db.query`]=l),p!==void 0&&f&&(y[`db.body`]=p),ko({name:v,attributes:y},t=>Reflect.apply(e,n,[]).then(e=>{if(t&&(e&&typeof e==`object`&&`status`in e&&Tr(t,e.status||500),t.end()),e?.error){let t=Error(e.error.message);e.error.code&&(t.code=e.error.code),e.error.details&&(t.details=e.error.details);let n={};l.length&&f&&(n.query=l),p!==void 0&&f&&(n.body=p),Ec(t,e=>(e.addEventProcessor(e=>(mt(e,{handled:!1,type:`auto.db.supabase.postgres`}),e)),e.setContext(`supabase`,n),e))}let n={type:`supabase`,category:`db.${o}`,message:_},r={};return l.length&&f&&(r.query=l),p!==void 0&&f&&(r.body=p),Object.keys(r).length&&(n.data=r),sd(n),e},e=>{throw t&&(Tr(t,500),t.end()),e}).then(...r))}}),yf(e.prototype.then))}function Af(e,t){for(let n of vf)bf(e.prototype[n])||(e.prototype[n]=new Proxy(e.prototype[n],{apply(e,i,a){let o=Reflect.apply(e,i,a),s=o.constructor;return r&&x.log(`Instrumenting ${n} operation's PostgRESTFilterBuilder`),kf(s,t),o}}),yf(e.prototype[n]))}var jf=(e,t={})=>{if(!e){r&&x.warn(`Supabase integration was not installed because no Supabase client was provided.`);return}Of(e.constructor===Function?e:e.constructor,t),Df(e)},Mf=`Supabase`,Nf=((e,t)=>({setupOnce(){jf(e,t)},name:Mf})),Pf=F(e=>Nf(e.supabaseClient,{sendOperationData:e.sendOperationData})),Ff=10,If=`ZodErrors`;function Lf(e){return ge(e)&&e.name===`ZodError`&&Array.isArray(e.issues)}function Rf(e){return{...e,path:`path`in e&&Array.isArray(e.path)?e.path.join(`.`):void 0,keys:`keys`in e?JSON.stringify(e.keys):void 0,unionErrors:`unionErrors`in e?JSON.stringify(e.unionErrors):void 0}}function zf(e){return e.map(e=>typeof e==`number`?`<array>`:e).join(`.`)}function Bf(e){let t=new Set;for(let n of e.issues){let e=zf(n.path);e.length>0&&t.add(e)}let n=Array.from(t);if(n.length===0){let t=`variable`;if(e.issues.length>0){let n=e.issues[0];n!==void 0&&`expected`in n&&typeof n.expected==`string`&&(t=n.expected)}return`Failed to validate ${t}`}return`Failed to validate keys: ${nt(n.join(`, `),100)}`}function Vf(e,t=!1,n,r){if(!n.exception?.values||!r.originalException||!Lf(r.originalException)||r.originalException.issues.length===0)return n;try{let i=(t?r.originalException.issues:r.originalException.issues.slice(0,e)).map(Rf);return t&&(Array.isArray(r.attachments)||(r.attachments=[]),r.attachments.push({filename:`zod_issues.json`,data:JSON.stringify({issues:i})})),{...n,exception:{...n.exception,values:[{...n.exception.values[0],value:Bf(r.originalException)},...n.exception.values.slice(1)]},extra:{...n.extra,"zoderror.issues":i.slice(0,e)}}}catch(e){return{...n,extra:{...n.extra,"zoderrors sentry integration parse error":{message:`an exception was thrown while processing ZodError within applyZodErrorsToEvent()`,error:e instanceof Error?`${e.name}: ${e.message}
18${e.stack}`:`unknown`}}}}}var Hf=F(((e={})=>{let t=e.limit??Ff;return{name:If,processEvent(n,r){return Vf(t,e.saveZodIssuesAsAttachment,n,r)}}})),Uf=F(e=>{let t=e.ignoreSentryInternalFrames??!1;return{name:`ThirdPartyErrorsFilter`,setup(e){e.on(`beforeEnvelope`,e=>{Pa(e,(e,t)=>{if(t===`event`){let t=Array.isArray(e)?e[1]:void 0;t&&(Fd(t),e[1]=t)}})}),e.on(`applyFrameMetadata`,t=>{if(t.type)return;let n=e.getOptions().stackParser;Pd(n,t)})},preprocessEvent(e){t&&(i._sentryWrappedDepth??0)>0&&(e.sdkProcessingMetadata={...e.sdkProcessingMetadata,insideSentryWrapped:!0})},processEvent(n){let r=t?n.sdkProcessingMetadata?.insideSentryWrapped===!0&&n.exception?.values?.length===1:!1,i=Gf(n,t,r);if(i&&i[e.behaviour===`drop-error-if-contains-third-party-frames`||e.behaviour===`apply-tag-if-contains-third-party-frames`?`some`:`every`](t=>!t.some(t=>e.filterKeys.includes(t)))){if(e.behaviour===`drop-error-if-contains-third-party-frames`||e.behaviour===`drop-error-if-exclusively-contains-third-party-frames`)return null;n.tags={...n.tags,third_party_code:!0}}return n}}});function Wf(e,t,n){if(t!==0)return!1;if(n&&Kf(e)||e.function===`sentryWrapped`)return!0;
18if(!e.context_line||!e.filename||!e.filename.includes(`sentry`)||!e.filename.includes(`helpers`)||!e.context_line.includes(Yf))return!1;if(e.pre_context){let t=e.pre_context.length;for(let n=0;n<t;n++)if(e.pre_context[n]?.includes(Jf))return!0}return!1}function Gf(e,t,n){let r=re(e);if(r)return r.filter((e,r)=>!e.filename||e.lineno==null&&e.colno==null&&e.instruction_addr==null?!1:!t||!Wf(e,r,!!n)).map(e=>e.module_metadata?Object.keys(e.module_metadata).filter(e=>e.startsWith(qf)).map(e=>e.slice(qf.length)):[])}function Kf(e){return!e.context_line&&!e.pre_context&&!!e.function&&e.function.length<=2}var qf=`_sentryBundlerPluginAppKey:`,Jf=`Attempt to invoke user-land function`,Yf=`fn.apply(this, wrappedArguments)`,Xf=`Console`,Zf=F((e={})=>{let t=new Set(e.levels||l);return{name:Xf,setup(n){let r=Rd(({args:e,level:r})=>{M()===n&&t.has(r)&&Qf(r,e)});if(n.registerCleanup(r),e.filter){let t=zd(e.filter);n.registerCleanup(t)}}}});function Qf(e,t){let n={category:`console`,data:{arguments:t,logger:`console`},level:Hd(e),message:$f(t)};if(e===`assert`){if(t[0]===!1){let e=t.slice(1);n.message=e.length>0?`Assertion failed: ${$f(e)}`:`Assertion failed`,n.data.arguments=e}else return}sd(n,{input:t,level:e})}function $f(e){return`util`in i&&typeof i.util.format==`function`?i.util.format(...e):it(e,` `)}var ep=`flag.evaluation.`;function tp(e){if(e.type)return e;let t=A().getScopeData().contexts.flags,n=t?t.values:[];return n.length?(e.contexts===void 0&&(e.contexts={}),e.contexts.flags={values:[...n]},e):e}function np(e,t,n=100){let r=A().getScopeData().contexts;r.flags||={values:[]};let i=r.flags.values;rp(i,e,t,n)}function rp(e,t,n,i){if(typeof n!=`boolean`)return;if(e.length>i){r&&x.error(`[Feature Flags] insertToFlagBuffer called on a buffer larger than maxSize=${i}`);return}let a=e.findIndex(e=>e.flag===t);a!==-1&&e.splice(a,1),e.length===i&&e.shift(),e.push({flag:t,result:n})}function ip(e,t,n=10){if(typeof t!=`boolean`)return;let r=P();if(!r)return;let i=hi(r).data;if(`${ep}${e}`in i){r.setAttribute(`${ep}${e}`,t);return}Object.keys(i).filter(e=>e.startsWith(ep)).length<n&&r.setAttribute(`${ep}${e}`,t)}var ap=F(()=>({name:`FeatureFlags`,processEvent(e,t,n){return tp(e)},addFeatureFlag(e,t){np(e,t),ip(e,t)}})),op=F(({growthbookClass:e})=>({name:`GrowthBook`,setupOnce(){let t=e.prototype;typeof t.isOn==`function`&&Ae(t,`isOn`,sp),typeof t.getFeatureValue==`function`&&Ae(t,`getFeatureValue`,sp)},processEvent(e,t,n){return tp(e)}}));function sp(e){return function(...t){let n=t[0],r=e.apply(this,t);return typeof n==`string`&&typeof r==`boolean`&&(np(n,r),ip(n,r)),r}}var cp=`ConversationId`,lp=F((()=>({name:cp,setup(e){e.on(`spanStart`,e=>{let t=A().getScopeData(),n=j().getScopeData(),r=t.conversationId||n.conversationId;if(r){let{op:t,data:n,description:i}=hi(e);if(!t?.startsWith(`gen_ai.`)&&!n[`ai.operationId`]&&!i?.startsWith(`ai.`))return;e.setAttribute(xr,r)}})}})));function up(e,t,n,r,i){if(!e.fetchData)return;let{method:a,url:o}=e.fetchData,s=Ii()&&t(o);if(e.endTimestamp){let t=e.fetchData.__span;if(!t)return;let n=r[t];n&&(s&&(pp(n,e),dp(n,e,i)),delete r[t]);return}let{spanOrigin:c=`auto.http.browser`,propagateTraceparent:l=!1,urlBase:u}=i??{},d=M(),f=!!P(),p=f||!!d&&I(d),m=s&&p?Ao(_p(o,a,c,d,u)):new Zi,h=Go(m)&&f?void 0:m;if(s&&!p&&d?.recordDroppedEvent(`no_parent_span`,`span`),e.fetchData.__span=m.spanContext().spanId,r[m.spanContext().spanId]=m,n(e.fetchData.url)){let t=e.args[0],n={...e.args[1]||{}},r=fp(t,n,Ii()&&p?h:void 0,l);r&&(e.args[1]=n,n.headers=r)}if(d){let t={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};d.emit(`beforeOutgoingRequestSpan`,m,t)}return m}function dp(e,t,n){n?.onRequestSpanEnd?.(e,{headers:t.response?.headers,error:t.error})}function fp(e,t,n,r){let i=ed({span:n,propagateTraceparent:r}),a=i[`sentry-trace`],o=i.baggage,s=i.traceparent;if(!a)return;let c=t.headers||(ke(e)?e.headers:void 0);if(!c)return{"sentry-trace":a,...o&&{baggage:o},...s&&{traceparent:s}};if(hp(c)){let e=new Headers(c);if(e.get(`sentry-trace`)||e.set(`sentry-trace`,a),r&&s&&!e.get(`traceparent`)&&e.set(`traceparent`,s),o){let t=e.get(`baggage`);t?mp(t)||e.set(`baggage`,`${t},${o}`):e.set(`baggage`,o)}return e}if(gp(c)){let e=[...c];e.find(e=>e[0]===`sentry-trace`)||e.push([`sentry-trace`,a]),r&&s&&!e.find(e=>e[0]===`traceparent`)&&e.push([`traceparent`,s]);let t=c.find(e=>e[0]===`baggage`&&typeof e[1]==`string`&&mp(e[1]));return o&&!t&&e.push([`baggage`,o]),e}{let e=`sentry-trace`in c?c[`sentry-trace`]:void 0,t=`traceparent`in c?c.traceparent:void 0,n=`baggage`in c?c.baggage:void 0,i=n?Array.isArray(n)?[...n]:[n]:[],l=n&&(Array.isArray(n)?n.find(e=>mp(e)):mp(n));o&&!l&&i.push(o);let u=Object.assign({},c,{"sentry-trace":e??a,...i.length>0&&{baggage:i.join(`,`)}});return r&&s&&!t&&(u.traceparent=s),u}}function pp(e,t){if(t.response){Tr(e,t.response.status);let n=t.response?.headers?.get(`content-length`);if(n){let t=parseInt(n);t>0&&e.setAttribute(Dn,t)}}else t.error&&e.setStatus({code:2,message:`internal_error`});e.end()}function mp(e){return typeof e==`string`&&e.split(`,`).some(e=>e.trim().startsWith(Pr))}function hp(e){return typeof Headers<`u`&&Oe(e,Headers)}function gp(e){return Array.isArray(e)?e.every(e=>Array.isArray(e)&&e.length===2&&typeof e[0]==`string`):!1}function _p(e,t,n,r,i){let a=!!r&&I(r),o=Vu(e,i);if(e.startsWith(`data:`)){let i=Wu(e);return{name:a?t:`${t} ${i}`,attributes:vp(e,void 0,t,n,r,o)}}let s=Lu(e),c=s?Ru(s):e;return{name:a?o?`${t} ${o}`:t:`${t} ${c}`,attributes:vp(e,s,t,n,r,o)}}function vp(e,t,n,r,i,a){let o={[Zn]:Nu(Wu(e),i),type:`fetch`,[Tn]:n,[or]:r,[In]:Hs,[Yn]:a};return t&&(Iu(t)||(o[Zn]=Nu(Wu(t.href),i),o[Kn]=t.hostname,o[qn]=t.port?Number(t.port):void 0),o[$n]=Pu(zu(t.search),i),o[Xn]=Bu(t.hash)),o}var yp=i;function bp(){if(!(`fetch`in yp))return!1;
18try{return new Headers,new Request(`data:,`),new Response,!0}catch{return!1}}function xp(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function Sp(){if(typeof EdgeRuntime==`string`)return!0;if(!bp())return!1;if(xp(yp.fetch))return!0;let e=!1,t=yp.document;if(t&&typeof t.createElement==`function`)try{let n=t.createElement(`iframe`);n.hidden=!0,t.head.appendChild(n),n.contentWindow?.fetch&&(e=xp(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){r&&x.warn(`Could not create sandbox iframe for pure fetch check, bailing to window.fetch: `,e)}return e}function Cp(e){let t=`fetch`,n=oe(t,e);return se(t,()=>Tp()),n}function wp(e){let t=`fetch-body-resolved`,n=oe(t,e);return se(t,()=>Tp(Dp)),n}function Tp(e){(!Za()||Sp())&&Ae(i,`fetch`,function(t){return new Proxy(t,{apply(t,n,r){let a=Error(),{method:o,url:s}=Ap(r),c={args:r,fetchData:{method:o,url:s},startTimestamp:wt()*1e3,virtualError:a,headers:jp(r)};return e||ce(`fetch`,{...c}),Reflect.apply(t,i,r).then(async t=>(e?e(t):ce(`fetch`,{...c,endTimestamp:wt()*1e3,response:t}),t),e=>{ce(`fetch`,{...c,endTimestamp:wt()*1e3,error:e}),ge(e)&&e.stack===void 0&&(e.stack=a.stack,je(e,`framesToPop`,1));let t=M()?.getOptions().enhanceFetchErrorMessages??`always`;if(t!==!1&&ge(e)&&e.name===`TypeError`&&(e.message===`Failed to fetch`||e.message===`Load failed`||e.message===`NetworkError when attempting to fetch resource.`))try{let n=new URL(c.fetchData.url).host;t===`always`?e.message=`${e.message} (${n})`:je(e,`__sentry_fetch_url_host__`,n)}catch{}throw e})}})})}async function Ep(e,t){if(e?.body){let n=e.body,r=n.getReader(),i=setTimeout(()=>{n.cancel().then(null,()=>{})},9e4),a=!0;for(;a;){let e;try{e=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);let{done:i}=await r.read();clearTimeout(e),i&&(t(),a=!1)}catch{a=!1}finally{clearTimeout(e)}}clearTimeout(i),r.releaseLock(),n.cancel().then(null,()=>{})}}function Dp(e){let t;try{t=e.clone()}catch{return}Ep(t,()=>{ce(`fetch-body-resolved`,{endTimestamp:wt()*1e3,response:e})})}function Op(e,t){return we(e)&&!!e[t]}function kp(e){return typeof e==`string`?e:e?Op(e,`url`)?e.url:e.toString?e.toString():``:``}function Ap(e){if(e.length===0)return{method:`GET`,url:``};if(e.length===2){let[t,n]=e;return{url:kp(t),method:Op(n,`method`)?String(n.method).toUpperCase():ke(t)&&Op(t,`method`)?String(t.method).toUpperCase():`GET`}}let t=e[0];return{url:kp(t),method:Op(t,`method`)?String(t.method).toUpperCase():`GET`}}function jp(e){let[t,n]=e;try{if(typeof n==`object`&&n&&`headers`in n&&n.headers)return new Headers(n.headers);if(ke(t))return new Headers(t.headers)}catch{}}function Mp(e){if(e!==void 0){if(e>=400&&e<500)return`warning`;if(e>=500)return`error`}}var Np=class{constructor(e){this._maxSize=e,this._cache=new Map}get size(){return this._cache.size}get(e){let t=this._cache.get(e);if(t!==void 0)return this._cache.delete(e),this._cache.set(e,t),t}set(e,t){if(this._cache.size>=this._maxSize){let e=this._cache.keys().next().value;this._cache.delete(e)}this._cache.set(e,t)}remove(e){let t=this._cache.get(e);return t&&this._cache.delete(e),t}clear(){this._cache.clear()}keys(){return Array.from(this._cache.keys())}values(){let e=[];return this._cache.forEach(t=>e.push(t)),e}};function Pp(e,t={},n=A()){let{message:r,name:i,email:a,url:o,source:s,associatedEventId:c,tags:l}=e,u={contexts:{feedback:{contact_email:a,name:i,message:r,url:o,source:s,associated_event_id:c}},type:`feedback`,level:`info`,tags:l},d=n?.getClient()||M();return d&&d.emit(`beforeSendFeedback`,u,t),n.captureEvent(u,t)}var Fp=e({debug:()=>Rp,error:()=>Vp,fatal:()=>Hp,fmt:()=>Zu,info:()=>zp,trace:()=>Lp,warn:()=>Bp});function Ip(e,t,n,r,i){ul({level:e,message:t,attributes:n,severityNumber:i},r)}function Lp(e,t,{scope:n}={}){Ip(`trace`,e,t,n)}function Rp(e,t,{scope:n}={}){Ip(`debug`,e,t,n)}function zp(e,t,{scope:n}={}){Ip(`info`,e,t,n)}function Bp(e,t,{scope:n}={}){Ip(`warn`,e,t,n)}function Vp(e,t,{scope:n}={}){Ip(`error`,e,t,n)}function Hp(e,t,{scope:n}={}){Ip(`fatal`,e,t,n)}function Up(e,t,n){return`util`in i&&typeof i.util.format==`function`?i.util.format(...e):Wp(e,t,n)}function Wp(e,t,n){return e.map(e=>Se(e)?String(e):JSON.stringify(Je(e,t,n))).join(` `)}function Gp(e){return/%[sdifocO]/.test(e)}function Kp(e,t){let n={};return n[`sentry.message.template`]=`${e} ${Array(t.length).fill(`{}`).join(` `)}`,t.forEach((e,t)=>{n[`sentry.message.parameter.${t}`]=e}),n}var qp=`ConsoleLogs`,Jp={[or]:`auto.log.console`},Yp=F(((e={})=>{let t=e.levels||l;return{name:qp,setup(e){let{normalizeDepth:n=3,normalizeMaxBreadth:r=1e3}=e.getOptions(),i=Rd(({args:i,level:a})=>{if(M()!==e||!t.includes(a))return;let o=i[0],s=i.slice(1);if(a===`assert`){o||ul({level:`error`,message:s.length>0?`Assertion failed: ${Up(s,n,r)}`:`Assertion failed`,attributes:Jp});return}let c=a===`log`,l={...Jp};if(Ce(o)){Object.assign(l,Je(o,n,r));let e=typeof i[1]==`string`?2:1;i.slice(e).forEach((e,t)=>{l[`sentry.message.parameter.${t}`]=Je(e,n,r)})}else if(s.length>0&&typeof o==`string`&&!Gp(o)){let e=Kp(o,s);for(let[t,i]of Object.entries(e))l[t]=t.startsWith(`sentry.message.parameter.`)?Je(i,n,r):i}ul({level:c?`info`:a,message:Up(i,n,r),severityNumber:c?10:void 0,attributes:l})});e.registerCleanup(i)}}})),Xp=e({count:()=>Qp,distribution:()=>em,gauge:()=>$p});function Zp(e,t,n,r){Cl({type:e,name:t,value:n,unit:r?.unit,attributes:r?.attributes},{scope:r?.scope})}function Qp(e,t=1,n){Zp(`counter`,e,t,n)}function $p(e,t,n){Zp(`gauge`,e,t,n)}function em(e,t,n){Zp(`distribution`,e,t,n)}var tm=[`trace`,`debug`,`info`,`warn`,`error`,`fatal`];function nm(e={}){let t=new Set(e.levels??tm),n=e.client;return{log(e){let{type:r,level:i,message:a,args:o,tag:s,date:c,...l}=e,u=n||M();if(!u)return;let d=am(r,i);if(!t.has(d))return;let{normalizeDepth:f=3,normalizeMaxBreadth:p=1e3}=u.getOptions(),m={};for(let[e,t]of Object.entries(l))m[e]=Je(t,f,p);m[`sentry.origin`]=`auto.log.consola`,s&&(m[`consola.tag`]=s),r&&(m[`consola.type`]=r),i!=null&&typeof i==`number`&&(m[`consola.level`]=i);let h=sm(om(o,f,p),f,p);h?.attributes&&Object.assign(m,h.attributes),ul({level:d,message:h?.message||a||o&&Up(o,f,p)||``,attributes:m})}}}var rm={silent:`trace`,fatal:`fatal`,error:`error`,warn:`warn`,log:`info`,info:`info`,success:`info`,fail:`error`,ready:`info`,start:`info`,box:`info`,debug:`debug`,trace:`trace`,verbose:`debug`,critical:`fatal`,notice:`info`},im={0:`fatal`,1:`warn`,2:`info`,3:`info`,4:`debug`,5:`trace`};function am(e,t){if(e===`verbose`)return`debug`;if(e===`silent`)return`trace`;if(e){let t=rm[e];if(t)return t}if(typeof t==`number`){let e=im[t];if(e)return e}return`info`}function om(e,t,n){if(!e?.length)return{message:``};let r=Up(e,t,n),i=e[0];if(Ce(i)){let t=typeof e[1]==`string`?2:1;return{message:r,attributes:i,messageParameters:e.slice(t)}}{let t=e.slice(1),n=t.length>0&&typeof i==`string`&&!Gp(i);return{message:r,messageTemplate:n?i:void 0,messageParameters:n?t:void 0}}}function sm(e,t,n){let{message:r,attributes:i,messageTemplate:a,messageParameters:o}=e,s={};if(a&&o){let e=Kp(a,o);for(let[r,i]of Object.entries(e))s[r]=r.startsWith(`sentry.message.parameter.`)?Je(i,t,n):i}else o&&o.length>0&&o.forEach((e,r)=>{s[`sentry.message.parameter.${r}`]=Je(e,t,n)});return{message:r,attributes:{...Je(i,t,n),...s}}}var cm=i,L=cm.document,lm=cm.navigator,um=`Report a Bug`,dm=`Cancel`,fm=`Send Bug Report`,pm=`Confirm`,mm=`Report a Bug`,hm=`[email protected]`,gm=`Email`,_m=`What's the bug? What did you expect?`,vm=`Description`,ym=`Your Name`,bm=`Name`,xm=`Thank you for your report!`,Sm=`(required)`,Cm=`Add a screenshot`,wm=`Remove screenshot`,Tm=`Highlight`,Em=`Hide`,Dm=`Remove`,Om=`Unable to submit feedback with empty message`,km=`No client setup, cannot send feedback.`,Am=`Unable to determine if Feedback was correctly sent.`,jm=`Unable to send feedback. This could be because this domain is not in your list of allowed domains.`,Mm=`Unable to send feedback. This could be because of network issues, or because you are using an ad-blocker.`,Nm=`widget`,Pm=`api`,Fm=5e3,Im={ERROR_EMPTY_MESSAGE:Om,ERROR_NO_CLIENT:km,ERROR_TIMEOUT:Am,ERROR_FORBIDDEN:jm,ERROR_GENERIC:Mm};function Lm(e,t){return t?.[e]??Im[e]}function Rm(e,t){return Error(Lm(e,t))}var zm=(e,t={includeReplay:!0})=>{let n=t.errorMessages;if(!e.message)throw Rm(`ERROR_EMPTY_MESSAGE`,n);let r=M();if(!r)throw Rm(`ERROR_NO_CLIENT`,n);e.tags&&Object.keys(e.tags).length&&A().setTags(e.tags);let i=Pp({source:Pm,url:Bm(),...e},t);return new Promise((e,t)=>
18{let a=setTimeout(()=>{o(),t(Rm(`ERROR_TIMEOUT`,n))},3e4),o=r.on(`afterSendEvent`,(r,s)=>{if(r.event_id===i)return clearTimeout(a),o(),s?.statusCode&&s.statusCode>=200&&s.statusCode<300?e(i):s?.statusCode===403?t(Rm(`ERROR_FORBIDDEN`,n)):t(Rm(`ERROR_GENERIC`,n))})})};function Bm(){try{return cm.document.location.href}catch{return``}}var Vm=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__;function Hm(){return!(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(lm.userAgent)||/Macintosh/i.test(lm.userAgent)&&lm.maxTouchPoints&&lm.maxTouchPoints>1||!isSecureContext)}function Um(e,t){return{...e,...t,tags:{...e.tags,...t.tags},onFormOpen:()=>{t.onFormOpen?.(),e.onFormOpen?.()},onFormClose:()=>{t.onFormClose?.(),e.onFormClose?.()},onSubmitSuccess:(n,r)=>{t.onSubmitSuccess?.(n,r),e.onSubmitSuccess?.(n,r)},onSubmitError:n=>{t.onSubmitError?.(n),e.onSubmitError?.(n)},onFormSubmitted:()=>{t.onFormSubmitted?.(),e.onFormSubmitted?.()},themeDark:{...e.themeDark,...t.themeDark},themeLight:{...e.themeLight,...t.themeLight}}}function Wm(e){let t=L.createElement(`style`);return t.textContent=`
19.widget__actor {
20  position: fixed;
21  z-index: var(--z-index);
22  margin: var(--page-margin);
23  inset: var(--actor-inset);
24
25  display: flex;
26  align-items: center;
27  gap: 8px;
28  padding: 16px;
29
30  font-family: inherit;
31  font-size: var(--font-size);
32  font-weight: 600;
33  line-height: 1.14em;
34  text-decoration: none;
35
36  background: var(--actor-background, var(--background));
37  border-radius: var(--actor-border-radius, 1.7em/50%);
38  border: var(--actor-border, var(--border));
39  box-shadow: var(--actor-box-shadow, var(--box-shadow));
40  color: var(--actor-color, var(--foreground));
41  fill: var(--actor-color, var(--foreground));
42  cursor: pointer;
43  opacity: 1;
44  transition: transform 0.2s ease-in-out;
45  transform: translate(0, 0) scale(1);
46}
47.widget__actor[aria-hidden="true"] {
48  opacity: 0;
49  pointer-events: none;
50  visibility: hidden;
51  transform: translate(0, 16px) scale(0.98);
52}
53
54.widget__actor:hover {
55  background: var(--actor-hover-background, var(--background));
56  filter: var(--interactive-filter);
57}
58
59.widget__actor svg {
60  width: 1.14em;
61  height: 1.14em;
62}
63
64@media (max-width: 600px) {
65  .widget__actor span {
66    display: none;
67  }
68}
69`,e&&t.setAttribute(`nonce`,e),t}function Gm(e,t){return Object.entries(t).forEach(([t,n])=>{e.setAttributeNS(null,t,n)}),e}var Km=20,qm=`http://www.w3.org/2000/svg`;function Jm(){let e=e=>cm.document.createElementNS(qm,e),t=Gm(e(`svg`),{width:`${Km}`,height:`${Km}`,viewBox:`0 0 ${Km} ${Km}`,fill:`var(--actor-color, var(--foreground))`}),n=Gm(e(`g`),{clipPath:`url(#clip0_57_80)`}),r=Gm(e(`path`),{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M15.6622 15H12.3997C12.2129 14.9959 12.031 14.9396 11.8747 14.8375L8.04965 12.2H7.49956V19.1C7.4875 19.3348 7.3888 19.5568 7.22256 19.723C7.05632 19.8892 6.83435 19.9879 6.59956 20H2.04956C1.80193 19.9968 1.56535 19.8969 1.39023 19.7218C1.21511 19.5467 1.1153 19.3101 1.11206 19.0625V12.2H0.949652C0.824431 12.2017 0.700142 12.1783 0.584123 12.1311C0.468104 12.084 0.362708 12.014 0.274155 11.9255C0.185602 11.8369 0.115689 11.7315 0.0685419 11.6155C0.0213952 11.4995 -0.00202913 11.3752 -0.00034808 11.25V3.75C-0.00900498 3.62067 0.0092504 3.49095 0.0532651 3.36904C0.0972798 3.24712 0.166097 3.13566 0.255372 3.04168C0.344646 2.94771 0.452437 2.87327 0.571937 2.82307C0.691437 2.77286 0.82005 2.74798 0.949652 2.75H8.04965L11.8747 0.1625C12.031 0.0603649 12.2129 0.00407221 12.3997 0H15.6622C15.9098 0.00323746 16.1464 0.103049 16.3215 0.278167C16.4966 0.453286 16.5964 0.689866 16.5997 0.9375V3.25269C17.3969 3.42959 18.1345 3.83026 18.7211 4.41679C19.5322 5.22788 19.9878 6.32796 19.9878 7.47502C19.9878 8.62209 19.5322 9.72217 18.7211 10.5333C18.1345 11.1198 17.3969 11.5205 16.5997 11.6974V14.0125C16.6047 14.1393 16.5842 14.2659 16.5395 14.3847C16.4948 14.5035 16.4268 14.6121 16.3394 14.7042C16.252 14.7962 16.147 14.8698 16.0307 14.9206C15.9144 14.9714 15.7891 14.9984 15.6622 15ZM1.89695 10.325H1.88715V4.625H8.33715C8.52423 4.62301 8.70666 4.56654 8.86215 4.4625L12.6872 1.875H14.7247V13.125H12.6872L8.86215 10.4875C8.70666 10.3835 8.52423 10.327 8.33715 10.325H2.20217C2.15205 10.3167 2.10102 10.3125 2.04956 10.3125C1.9981 10.3125 1.94708 10.3167 1.89695 10.325ZM2.98706 12.2V18.1625H5.66206V12.2H2.98706ZM16.5997 9.93612V5.01393C16.6536 5.02355 16.7072 5.03495 16.7605 5.04814C17.1202 5.13709 17.4556 5.30487 17.7425 5.53934C18.0293 5.77381 18.2605 6.06912 18.4192 6.40389C18.578 6.73866 18.6603 7.10452 18.6603 7.47502C18.6603 7.84552 18.578 8.21139 18.4192 8.54616C18.2605 8.88093 18.0293 9.17624 17.7425 9.41071C17.4556 9.64518 17.1202 9.81296 16.7605 9.90191C16.7072 9.91509 16.6536 9.9265 16.5997 9.93612Z`});t.appendChild(n).appendChild(r);let i=e(`defs`),a=Gm(e(`clipPath`),{id:`clip0_57_80`}),o=Gm(e(`rect`),{width:`${Km}`,height:`${Km}`,fill:`white`});return a.appendChild(o),i.appendChild(a),t.appendChild(i).appendChild(a).appendChild(o),t}function Ym({triggerLabel:e,triggerAriaLabel:t,shadow:n,styleNonce:r}){let i=L.createElement(`button`);if(i.type=`button`,i.className=`widget__actor`,i.ariaHidden=`false`,i.ariaLabel=t||e||um,i.appendChild(Jm()),e){let t=L.createElement(`span`);t.appendChild(L.createTextNode(e)),i.appendChild(t)}let a=Wm(r);return{el:i,appendToDom(){n.appendChild(a),n.appendChild(i)},removeFromDom(){i.remove(),a.remove()},show(){i.ariaHidden=`false`},hide(){i.ariaHidden=`true`}}}var Xm=`rgba(88, 74, 192, 1)`,Zm={foreground:`#2b2233`,background:`#ffffff`,accentForeground:`white`,accentBackground:Xm,successColor:`#268d75`,errorColor:`#df3338`,border:`1.5px solid rgba(41, 35, 47, 0.13)`,boxShadow:`0px 4px 24px 0px rgba(43, 34, 51, 0.12)`,outline:`1px auto var(--accent-background)`,interactiveFilter:`brightness(95%)`},Qm={foreground:`#ebe6ef`,background:`#29232f`,accentForeground:`white`,accentBackgroun
69d:Xm,successColor:`#2da98c`,errorColor:`#f55459`,border:`1.5px solid rgba(235, 230, 239, 0.15)`,boxShadow:`0px 4px 24px 0px rgba(43, 34, 51, 0.12)`,outline:`1px auto var(--accent-background)`,interactiveFilter:`brightness(150%)`};function $m(e){return`
70  --foreground: ${e.foreground};
71  --background: ${e.background};
72  --accent-foreground: ${e.accentForeground};
73  --accent-background: ${e.accentBackground};
74  --success-color: ${e.successColor};
75  --error-color: ${e.errorColor};
76  --border: ${e.border};
77  --box-shadow: ${e.boxShadow};
78  --outline: ${e.outline};
79  --interactive-filter: ${e.interactiveFilter};
80  `}function eh({colorScheme:e,themeDark:t,themeLight:n,styleNonce:r}){let i=L.createElement(`style`);return i.textContent=`
81:host {
82  --font-family: system-ui, 'Helvetica Neue', Arial, sans-serif;
83  --font-size: 14px;
84  --z-index: 100000;
85
86  --page-margin: 16px;
87  --inset: auto 0 0 auto;
88  --actor-inset: var(--inset);
89
90  font-family: var(--font-family);
91  font-size: var(--font-size);
92
93  ${e===`system`?``:`color-scheme: only ${e};`}
94
95  ${$m(e===`dark`?{...Qm,...t}:{...Zm,...n})}
96}
97
98${e===`system`?`
99@media (prefers-color-scheme: dark) {
100  :host {
101    color-scheme: only dark;
102
103    ${$m({...Qm,...t})}
104  }
105}`:``}
106`,r&&i.setAttribute(`nonce`,r),i}var th=({lazyLoadIntegration:e,getModalIntegration:t,getScreenshotIntegration:n})=>(({id:r=`sentry-feedback`,autoInject:i=!0,showBranding:a=!0,isEmailRequired:o=!1,isNameRequired:s=!1,showEmail:c=!0,showName:l=!0,enableScreenshot:u=!0,useSentryUser:d={email:`email`,name:`username`},tags:f,styleNonce:p,scriptNonce:m,colorScheme:h=`system`,themeLight:g={},themeDark:_={},addScreenshotButtonLabel:v=Cm,cancelButtonLabel:y=dm,confirmButtonLabel:b=pm,emailLabel:S=gm,emailPlaceholder:C=hm,formTitle:w=mm,isRequiredLabel:T=Sm,messageLabel:E=vm,messagePlaceholder:ee=_m,nameLabel:te=bm,namePlaceholder:ne=ym,removeScreenshotButtonLabel:D=wm,submitButtonLabel:re=fm,successMessageText:ie=xm,triggerLabel:ae=um,triggerAriaLabel:O=``,highlightToolText:oe=Tm,hideToolText:se=Em,removeHighlightText:ce=Dm,errorEmptyMessageText:le=Om,errorNoClientText:ue=km,errorTimeoutText:de=Am,errorForbiddenText:fe=jm,errorGenericText:pe=Mm,onFormOpen:me,onFormClose:he,onSubmitSuccess:ge,onSubmitError:_e,onFormSubmitted:ve}={})=>{let ye={id:r,autoInject:i,showBranding:a,isEmailRequired:o,isNameRequired:s,showEmail:c,showName:l,enableScreenshot:u,useSentryUser:d,tags:f,styleNonce:p,scriptNonce:m,colorScheme:h,themeDark:_,themeLight:g,triggerLabel:ae,triggerAriaLabel:O,cancelButtonLabel:y,submitButtonLabel:re,confirmButtonLabel:b,formTitle:w,emailLabel:S,emailPlaceholder:C,messageLabel:E,messagePlaceholder:ee,nameLabel:te,namePlaceholder:ne,successMessageText:ie,isRequiredLabel:T,addScreenshotButtonLabel:v,removeScreenshotButtonLabel:D,highlightToolText:oe,hideToolText:se,removeHighlightText:ce,errorEmptyMessageText:le,errorNoClientText:ue,errorTimeoutText:de,errorForbiddenText:fe,errorGenericText:pe,onFormClose:he,onFormOpen:me,onSubmitError:_e,onSubmitSuccess:ge,onFormSubmitted:ve},be=null,k=null,xe=[],Se=e=>{if(!be){let t=L.createElement(`div`);t.id=String(e.id),L.body.appendChild(t),be=t.attachShadow({mode:`open`}),k=eh(e),be.appendChild(k)}return be},Ce=async r=>{let i=r.enableScreenshot&&Hm(),a,o;try{a=(t?t():await e(`feedbackModalIntegration`,m))(),Ji(a)}catch{throw Vm&&x.error("[Feedback] Error when trying to load feedback integrations. Try using `feedbackSyncIntegration` in your `Sentry.init`."),Error(`[Feedback] Missing feedback modal integration!`)}try{let t=i?n?n():await e(`feedbackScreenshotIntegration`,m):void 0;t&&(o=t(),Ji(o))}catch{Vm&&x.error(`[Feedback] Missing feedback screenshot integration. Proceeding without screenshots.`)}let s={ERROR_EMPTY_MESSAGE:r.errorEmptyMessageText,ERROR_NO_CLIENT:r.errorNoClientText,ERROR_TIMEOUT:r.errorTimeoutText,ERROR_FORBIDDEN:r.errorForbiddenText,ERROR_GENERIC:r.errorGenericText},c=(e,t)=>zm(e,{includeReplay:!0,...t,errorMessages:s}),l=a.createDialog({options:{...r,onFormClose:()=>{l?.close(),r.onFormClose?.()},onFormSubmitted:()=>{l?.close(),r.onFormSubmitted?.()}},screenshotIntegration:o,sendFeedback:c,shadow:Se(r)});return l},we=(e,t={})=>{let n=Um(ye,t),r=typeof e==`string`?L.querySelector(e):typeof e.addEventListener==`function`?e:null;if(!r)throw Vm&&x.error(`[Feedback] Unable to attach to target element`),Error(`Unable to attach to target element`);let i=null,a=async()=>{i||=await Ce({...n,onFormSubmitted:()=>{i?.removeFromDom(),n.onFormSubmitted?.()}}),i.appendToDom(),i.open()};r.addEventListener(`click`,a);let o=()=>{xe=xe.filter(e=>e!==o),i?.removeFromDom(),i=null,r.removeEventListener(`click`,a)};return xe.push(o),o},Te=(e={})=>{let t=Um(ye,e),n=Se(t),r=Ym({triggerLabel:t.triggerLabel,triggerAriaLabel:t.triggerAriaLabel,shadow:n,styleNonce:p});return we(r.el,{...t,onFormOpen(){r.hide()},onFormClose(){r.show()},onFormSubmitted(){r.show()}}),r};return{name:`Feedback`,setupOnce(){Za()&&ye.autoInject&&(L.readyState===`loading`?L.addEventListener(`DOMContentLoaded`,()=>Te().appendToDom()):Te().appendToDom())},attachTo:we,createWidget(e={}){let t=Te(Um(ye,e));return t.appendToDom(),t},async createForm(e={}){return Ce(Um(ye,e))},setTheme(e){if(ye.colorScheme=e,be){let e=eh(ye);k?be.replaceChild(e,k):be.prepend(e),k=e}},remove(){be&&(be.parentElement?.remove(),be=null,k=null),xe.forEach(e
vendor: 8,249 bytes, line 106
106=>e()),xe=[]}}});function nh(){return M()?.getIntegrationByName(`Feedback`)}var rh,R,ih,ah,oh,sh,ch,lh,uh,dh,fh,ph,mh,hh,gh={},_h=[],vh=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,yh=Array.isArray;function bh(e,t){for(var n in t)e[n]=t[n];return e}function xh(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function z(e,t,n){var r,i,a,o={};for(a in t)a==`key`?r=t[a]:a==`ref`?i=t[a]:o[a]=t[a];if(arguments.length>2&&(o.children=arguments.length>3?rh.call(arguments,2):n),typeof e==`function`&&e.defaultProps!=null)for(a in e.defaultProps)o[a]===void 0&&(o[a]=e.defaultProps[a]);return Sh(e,o,r,i,null)}function Sh(e,t,n,r,i){var a={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:i??++ih,__i:-1,__u:0};return i==null&&R.vnode!=null&&R.vnode(a),a}function Ch(e){return e.children}function wh(e,t){this.props=e,this.context=t}function Th(e,t){if(t==null)return e.__?Th(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type==`function`?Th(e):null}function Eh(e){if(e.__P&&e.__d){var t=e.__v,n=t.__e,r=[],i=[],a=bh({},t);a.__v=t.__v+1,R.vnode&&R.vnode(a),Lh(e.__P,a,t,e.__n,e.__P.namespaceURI,32&t.__u?[n]:null,r,n??Th(t),!!(32&t.__u),i),a.__v=t.__v,a.__.__k[a.__i]=a,zh(r,a,i),t.__e=t.__=null,a.__e!=n&&Dh(a)}}function Dh(e){if((e=e.__)!=null&&e.__c!=null)return e.__e=e.__c.base=null,e.__k.some(function(t){if(t!=null&&t.__e!=null)return e.__e=e.__c.base=t.__e}),Dh(e)}function Oh(e){(!e.__d&&(e.__d=!0)&&ah.push(e)&&!kh.__r++||oh!=R.debounceRendering)&&((oh=R.debounceRendering)||sh)(kh)}function kh(){try{for(var e,t=1;ah.length;)ah.length>t&&ah.sort(ch),e=ah.shift(),t=ah.length,Eh(e)}finally{ah.length=kh.__r=0}}function Ah(e,t,n,r,i,a,o,s,c,l,u){var d,f,p,m,h,g,_=r&&r.__k||_h,v=t.length;for(c=jh(n,t,_,c,v),d=0;d<v;d++)(p=n.__k[d])!=null&&(f=p.__i!=-1&&_[p.__i]||gh,p.__i=d,g=Lh(e,p,f,i,a,o,s,c,l,u),m=p.__e,p.ref&&f.ref!=p.ref&&(f.ref&&Hh(f.ref,null,p),u.push(p.ref,p.__c||m,p)),h==null&&m!=null&&(h=m),4&p.__u?(c=Mh(p,c,e),f.__e&&(f.__e=null)):typeof p.type==`function`&&g!==void 0?c=g:m&&(c=m.nextSibling),p.__u&=-7);return n.__e=h,c}function jh(e,t,n,r,i){var a,o,s,c,l,u=n.length,d=u,f=0;for(e.__k=Array(i),a=0;a<i;a++)(o=t[a])!=null&&typeof o!=`boolean`&&typeof o!=`function`?(typeof o==`string`||typeof o==`number`||typeof o==`bigint`||o.constructor==String?o=e.__k[a]=Sh(null,o,null,null,null):yh(o)?o=e.__k[a]=Sh(Ch,{children:o},null,null,null):o.constructor===void 0&&o.__b>0?o=e.__k[a]=Sh(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):e.__k[a]=o,c=a+f,o.__=e,o.__b=e.__b+1,s=null,(l=o.__i=Nh(o,n,c,d))!=-1&&(d--,(s=n[l])&&(s.__u|=2)),s==null||s.__v==null?(l==-1&&(i>u?f--:i<u&&f++),typeof o.type!=`function`&&(o.__u|=4)):l!=c&&(l==c-1?f--:l==c+1?f++:(l>c?f--:f++,o.__u|=4))):e.__k[a]=null;if(d)for(a=0;a<u;a++)(s=n[a])!=null&&!(2&s.__u)&&(s.__e==r&&(r=Th(s)),Uh(s,s));return r}function Mh(e,t,n){var r,i;if(typeof e.type==`function`){for(r=e.__k,i=0;r&&i<r.length;i++)r[i]&&(r[i].__=e,t=Mh(r[i],t,n));return t}e.__e!=t&&(t&&e.type&&!t.parentNode&&(t=Th(e)),t=n.insertBefore(e.__e,t||null));do t&&=t.nextSibling;while(t!=null&&t.nodeType==8);return t}function Nh(e,t,n,r){var i,a,o,s=e.key,c=e.type,l=t[n],u=l!=null&&!(2&l.__u);if(l===null&&s==null||u&&s==l.key&&c==l.type)return n;if(r>+!!u){for(i=n-1,a=n+1;i>=0||a<t.length;)if((l=t[o=i>=0?i--:a++])!=null&&!(2&l.__u)&&s==l.key&&c==l.type)return o}return-1}function Ph(e,t,n){t[0]==`-`?e.setProperty(t,n??``):e[t]=n==null?``:typeof n!=`number`||vh.test(t)?n:n+`px`}function Fh(e,t,n,r,i){var a,o;n:if(t==`style`){if(typeof n==`string`)e.style.cssText=n;else{if(typeof r==`string`&&(e.style.cssText=r=``),r)for(t in r)n&&t in n||Ph(e.style,t,``);if(n)for(t in n)r&&n[t]==r[t]||Ph(e.style,t,n[t])}}else if(t[0]==`o`&&t[1]==`n`)a=t!=(t=t.replace(fh,`$1`)),o=t.toLowerCase(),t=o in e||t==`onFocusOut`||t==`onFocusIn`?o.slice(2):t.slice(2),e.l||={},e.l[t+a]=n,n?r?n[dh]=r[dh]:(n[dh]=ph,e.addEventListener(t,a?hh:mh,a)):e.removeEventListener(t,a?hh:mh,a);else{if(i==`http://www.w3.org/2000/svg`)t=t.replace(/xlink(H|:h)/,`h`).replace(/sName$/,`s`);else if(t!=`width`&&t!=`height`&&t!=`href`&&t!=`list`&&t!=`form`&&t!=`tabIndex`&&t!=`download`&&t!=`rowSpan`&&t!=`colSpan`&&t!=`role`&&t!=`popover`&&t in e)try{e[t]=n??``;break n}catch{}typeof n==`function`||(n==null||!1===n&&t[4]!=`-`?e.removeAttribute(t):e.setAttribute(t,t==`popover`&&n==1?``:n))}}function Ih(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t[uh]==null)t[uh]=ph++;else if(t[uh]<n[dh])return;return n(R.event?R.event(t):t)}}}function Lh(e,t,n,r,i,a,o,s,c,l){var u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(c=!!(32&n.__u),a=[s=t.__e=n.__e]),(u=R.__b)&&u(t);n:if(typeof E==`function`){d=o.length;try{if(v=t.props,y=E.prototype&&E.prototype.render,b=(u=E.contextType)&&r[u.__c],x=u?b?b.props.value:u.__:r,n.__c?_=(f=t.__c=n.__c).__=f.__E:(y?t.__c=f=new E(v,x):(t.__c=f=new wh(v,x),f.constructor=E,f.render=Wh),b&&b.sub(f),f.state||(f.state={}),f.__n=r,p=f.__d=!0,f.__h=[],f._sb=[]),y&&f.__s==null&&(f.__s=f.state),y&&E.getDerivedStateFromProps!=null&&(f.__s==f.state&&(f.__s=bh({},f.__s)),bh(f.__s,E.getDerivedStateFromProps(v,f.__s))),m=f.props,h=f.state,f.__v=t,p)y&&E.getDerivedStateFromProps==null&&f.componentWillMount!=null&&f.componentWillMount(),y&&f.componentDidMount!=null&&f.__h.push(f.componentDidMount);else{if(y&&E.getDerivedStateFromProps==null&&v!==m&&f.componentWillReceiveProps!=null&&f.componentWillReceiveProps(v,x),t.__v==n.__v||!f.__e&&f.shouldComponentUpdate!=null&&!1===f.shouldComponentUpdate(v,f.__s,x)){t.__v!=n.__v&&(f.props=v,f.state=f.__s,f.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(e){e&&(e.__=t)}),_h.push.apply(f.__h,f._sb),f._sb=[],f.__h.length&&o.push(f),s=Th(n);break n}f.componentWillUpdate!=null&&f.componentWillUpdate(v,f.__s,x),y&&f.componentDidUpdate!=null&&f.__h.push(function(){f.componentDidUpdate(m,h,g)})}if(f.context=x,f.props=v,f.__P=e,f.__e=!1,S=R.__r,C=0,y)f.state=f.__s,f.__d=!1,S&&S(t),u=f.render(f.props,f.state,f.context),_h.push.apply(f.__h,f._sb),f._sb=[];else do f.__d=!1,S&&S(t),u=f.render(f.props,f.state,f.context),f.state=f.__s;while(f.__d&&++C<25);f.state=f.__s,f.getChildContext!=null&&(r=bh(bh({},r),f.getChildContext())),y&&!p&&f.getSnapshotBeforeUpdate!=null&&(g=f.getSnapshotBeforeUpdate(m,h)),w=u!=null&&u.type===Ch&&u.key==null?Bh(u.props.children):u,s=Ah(e,yh(w)?w:[w],t,n,r,i,a,o,s,c,l),f.base=t.__e,t.__u&=-161,f.__h.length&&o.push(f),_&&(f.__E=f.__=null)}catch(e){if(o.length=d,t.__v=null,c||a!=null){if(e.then){for(t.__u|=c?160:128;s&&s.nodeType==8&&s.nextSibling;)s=s.nextSibling;a!=null&&(a[a.indexOf(s)]=null),t.__e=s}else if(a!=null)for(T=a.length;T--;)xh(a[T])}else t.__e=n.__e;t.__k??=n.__k||[],e.then||Rh(t),R.__e(e,t,n)}}else a==null&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):s=t.__e=Vh(n.__e,t,n,r,i,a,o,c,l);return(u=R.diffed)&&u(t),128&t.__u?void 0:s}function Rh(e){e&&(e.__c&&(e.__c.__e=!0),e.__k&&e.__k.some(Rh))}function zh(e,t,n){for(var r=0;r<n.length;r++)Hh(n[r],n[++r],n[++r]);R.__c&&R.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){R.__e(e,t.__v)}})}function Bh(e){return typeof e!=`object`||!e||e.__b>0?e:yh(e)?e.map(Bh):e.constructor===void 0?bh({},e):null}function Vh(e,t,n,r,i,a,o,s,c){var l,u,d,f,p,m,h,g=n.props||gh,_=t.props,v=t.type;if(v==`svg`?i=`http://www.w3.org/2000/svg`:v==`math`?i=`http://www.w3.org/1998/Math/MathML`:i||=`http://www.w3.org/1999/xhtml`,a!=null){for(l=0;l<a.length;l++)if((p=a[l])&&`setAttribute`in p==!!v&&(v?p.localName==v:p.nodeType==3)){e=p,a[l]=null;break}}if(e==null){if(v==null)return document.createTextNode(_);e=document.createElementNS(i,v,_.is&&_),s&&=(R.__m&&R.__m(t,a),!1),a=null}if(v==null)g===_||s&&e.data==_||(e.data=_);else{if(a=v==`textarea`&&_.defaultValue!=null?null:a&&rh.call(e.childNodes),!s&&a!=null)for(g={},l=0;l<e.attributes.length;l++)g[(p=e.attributes[l]).name]=p.value;for(l in g)p=g[l],l==`dangerouslySetInnerHTML`?d=p:l==`children`||l in _||l==`value`&&`defaultValue`in _||l==`checked`&&`defaultChecked`in _||Fh(e,l,null,p,i);for(l in _)p=_[l],l==`children`?f=p:l==`dangerouslySetInnerHTML`?u=p:l==`value`?m=p:l==`checked`?h=p:s&&t
vendor: 2,082 bytes, line 106
106ypeof p!=`function`||g[l]===p||Fh(e,l,p,g[l],i);if(u)s||d&&(u.__html==d.__html||u.__html==e.innerHTML)||(e.innerHTML=u.__html),t.__k=[];else if(d&&(e.innerHTML=``),Ah(t.type==`template`?e.content:e,yh(f)?f:[f],t,n,r,v==`foreignObject`?`http://www.w3.org/1999/xhtml`:i,a,o,a?a[0]:n.__k&&Th(n,0),s,c),a!=null)for(l=a.length;l--;)xh(a[l]);s&&v!=`textarea`||(l=`value`,v==`progress`&&m==null?e.removeAttribute(`value`):m!=null&&(m!==e[l]||v==`progress`&&!m||v==`option`&&m!=g[l])&&Fh(e,l,m,g[l],i),l=`checked`,h!=null&&h!=e[l]&&Fh(e,l,h,g[l],i))}return e}function Hh(e,t,n){try{if(typeof e==`function`){var r=typeof e.__u==`function`;r&&e.__u(),r&&t==null||(e.__u=e(t))}else e.current=t}catch(e){R.__e(e,n)}}function Uh(e,t,n){var r,i;if(R.unmount&&R.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||Hh(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){R.__e(e,t)}r.base=r.__P=r.__n=null}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&Uh(r[i],t,n||typeof e.type!=`function`);n||xh(e.__e),e.__c=e.__=e.__e=void 0}function Wh(e,t,n){return this.constructor(e,n)}function Gh(e,t,n){var r,i,a,o;t==document&&(t=document.documentElement),R.__&&R.__(e,t),i=(r=!1)?null:t.__k,a=[],o=[],Lh(t,e=t.__k=z(Ch,null,[e]),i||gh,gh,t.namespaceURI,i?null:t.firstChild?rh.call(t.childNodes):null,a,i?i.__e:t.firstChild,r,o),zh(a,e,o),e.props.children=null}rh=_h.slice,R={__e:function(e,t,n,r){for(var i,a,o;t=t.__;)if((i=t.__c)&&!i.__)try{if((a=i.constructor)&&a.getDerivedStateFromError!=null&&(i.setState(a.getDerivedStateFromError(e)),o=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,r||{}),o=i.__d),o)return i.__E=i}catch(t){e=t}throw e}},ih=0,wh.prototype.setState=function(e,t){var n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=bh({},this.state);typeof e==`function`&&(e=e(bh({},n),this.props)),e&&bh(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Oh(this))},wh.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Oh(this))},wh.prototype.render=Ch,ah=[],sh=typeof Promise==`function`?Promise.prototype.then.bind(Prom
106ise.resolve()):setTimeout,ch=function(e,t){return e.__v.__b-t.__v.__b},kh.__r=0,lh=Math.random().toString(8),uh=`__d`+lh,dh=`__a`+lh,fh=/(PointerCapture)$|Capture$/i,ph=0,mh=Ih(!1),hh=Ih(!0);var Kh,B,qh,Jh,Yh=0,Xh=[],V=R,Zh=V.__b,Qh=V.__r,$h=V.diffed,eg=V.__c,tg=V.unmount,ng=V.__;function rg(e,t){V.__h&&V.__h(B,e,Yh||t),Yh=0;var n=B.__H||(B.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function ig(e){return Yh=1,ag(Sg,e)}function ag(e,t,n){var r=rg(Kh++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Sg(void 0,t),function(e){var t=r.__N?r.__N[0]:r.__[0],n=r.t(t,e);t!==n&&(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=B,!B.__f)){var i=function(e,t,n){if(!r.__c.__H)return!0;var i=!1,o=r.__c.props!==e;if(r.__c.__H.__.some(function(e){if(e.__N){i=!0;var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(o=!0)}}),a){var s=a.call(this,e,t,n);return i?s||o:s}return!i||o};B.__f=!0;var a=B.shouldComponentUpdate,o=B.componentWillUpdate;B.componentWillUpdate=function(e,t,n){if(this.__e){var r=a;a=void 0,i(e,t,n),a=r}o&&o.call(this,e,t,n)},B.shouldComponentUpdate=i}return r.__N||r.__}function og(e,t){var n=rg(Kh++,3);!V.__s&&xg(n.__H,t)&&(n.__=e,n.u=t,B.__H.__h.push(n))}function sg(e,t){var n=rg(Kh++,4);!V.__s&&xg(n.__H,t)&&(n.__=e,n.u=t,B.__h.push(n))}function cg(e){return Yh=5,ug(function(){return{current:e}},[])}function lg(e,t,n){Yh=6,sg(function(){if(typeof e==`function`){var n=e(t());return function(){e(null),n&&typeof n==`function`&&n()}}if(e)return e.current=t(),function(){return e.current=null}},n==null?n:n.concat(e))}function ug(e,t){var n=rg(Kh++,7);return xg(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function dg(e,t){return Yh=8,ug(function(){return e},t)}function fg(e){var t=B.context[e.__c],n=rg(Kh++,9);return n.c=e,t?(n.__??(n.__=!0,t.sub(B)),t.props.value):e.__}function pg(e,t){V.useDebugValue&&V.useDebugValue(t?t(e):e)}function mg(e){var t=rg(Kh++,10),n=ig();return t.__=e,B.componentDidCatch||(B.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]}function hg(){var e=rg(Kh++,11);if(!e.__){for(var t=B.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__=`P`+n[0]+`-`+n[1]++}return e.__}function gg(){for(var e;e=Xh.shift();){var t=e.__H;if(e.__P&&t)try{t.__h.some(yg),t.__h.some(bg),t.__h=[]}catch(n){t.__h=[],V.__e(n,e.__v)}}}V.__b=function(e){B=null,Zh&&Zh(e)},V.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),ng&&ng(e,t)},V.__r=function(e){Qh&&Qh(e),Kh=0;var t=(B=e.__c).__H;t&&(qh===B?(t.__h=[],B.__h=[],t.__.some(function(e){e.__N&&(e.__=e.__N),e.u=e.__N=void 0})):(t.__h.some(yg),t.__h.some(bg),t.__h=[],Kh=0)),qh=B},V.diffed=function(e){$h&&$h(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Xh.push(t)!==1&&Jh===V.requestAnimationFrame||((Jh=V.requestAnimationFrame)||vg)(gg)),t.__H.__.some(function(e){e.u&&=(e.__H=e.u,void 0)})),qh=B=null},V.__c=function(e,t){t.some(function(e){try{e.__h.some(yg),e.__h=e.__h.filter(function(e){return!e.__||bg(e)})}catch(n){t.some(function(e){e.__h&&=[]}),t=[],V.__e(n,e.__v)}}),eg&&eg(e,t)},V.unmount=function(e){tg&&tg(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.some(function(e){try{yg(e)}catch(e){t=e}}),n.__H=void 0,t&&V.__e(t,n.__v))};var _g=typeof requestAnimationFrame==`function`;function vg(e){var t,n=function(){clearTimeout(r),_g&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,35);_g&&(t=requestAnimationFrame(n))}function yg(e){var t=B,n=e.__c;typeof n==`function`&&(e.__c=void 0,n()),B=t}function bg(e){var t=B;e.__c=e.__(),B=t}function xg(e,t){return!e||e.length!==t.length||t.some(function(t,n){return t!==e[n]})}function Sg(e,t){return typeof t==`function`?t(e):t}var Cg=Object.defineProperty({__proto__:null,useCallback:dg,useContext:fg,useDebugValue:pg,useEffect:og,useErrorBoundary:mg,useId:hg,useImperativeHandle:lg,useLayoutEffect:sg,useMemo:ug,useReducer:ag,useRef:cg,useState:ig},Symbol.toStringTag,{value:`Module`}),wg=`http://www.w3.org/2000/svg`;function Tg(){let e=e=>L.createElementNS(wg,e),t=Gm(e(`svg`),{width:`32`,height:`30`,viewBox:`0 0 72 66`,fill:`inherit`}),n=Gm(e(`path`),{transform:`translate(11, 11)`,d:`M29,2.26a4.67,4.67,0,0,0-8,0L14.42,13.53A32.21,32.21,0,0,1,32.17,40.19H27.55A27.68,27.68,0,0,0,12.09,17.47L6,28a15.92,15.92,0,0,1,9.23,12.17H4.62A.76.76,0,0,1,4,39.06l2.94-5a10.74,10.74,0,0,0-3.36-1.9l-2.91,5a4.54,4.54,0,0,0,1.69,6.24A4.66,4.66,0,0,0,4.62,44H19.15a19.4,19.4,0,0,0-8-17.31l2.31-4A23.87,23.87,0,0,1,23.76,44H36.07a35.88,35.88,0,0,0-16.41-31.8l4.67-8a.77.77,0,0,1,1.05-.27c.53.29,20.29,34.77,20.66,35.17a.76.76,0,0,1-.68,1.13H40.6q.09,1.91,0,3.81h4.78A4.59,4.59,0,0,0,50,39.43a4.49,4.49,0,0,0-.62-2.28Z`});return t.appendChild(n),t}function Eg({options:e}){let t=ug(()=>({__html:Tg().outerHTML}),[]);return z(`h2`,{class:`dialog__header`},z(`span`,{class:`dialog__title`},e.formTitle),e.showBranding?z(`a`,{class:`brand-link`,target:`_blank`,href:`https://sentry.io/welcome/`,title:`Powered by Sentry`,rel:`noopener noreferrer`,dangerouslySetInnerHTML:t}):null)}function Dg(e,t){let n=[];return t.isNameRequired&&!e.name&&n.push(t.nameLabel),t.isEmailRequired&&!e.email&&n.push(t.emailLabel),e.message||n.push(t.messageLabel),n}function Og(e,t){let n=e.get(t);return typeof n==`string`?n.trim():``}function kg({options:e,defaultEmail:t,defaultName:n,onFormClose:r,onSubmit:i,onSubmitSuccess:a,onSubmitError:o,showEmail
106:s,showName:c,screenshotInput:l}){let{tags:u,addScreenshotButtonLabel:d,removeScreenshotButtonLabel:f,cancelButtonLabel:p,emailLabel:m,emailPlaceholder:h,isEmailRequired:g,isNameRequired:_,messageLabel:v,messagePlaceholder:y,nameLabel:b,namePlaceholder:S,submitButtonLabel:C,isRequiredLabel:w}=e,[T,E]=ig(!1),[ee,te]=ig(null),[ne,D]=ig(!1),re=l?.input,[ie,ae]=ig(null),O=dg(e=>{ae(e),D(!1)},[]),oe=dg(e=>{let t=Dg(e,{emailLabel:m,isEmailRequired:g,isNameRequired:_,messageLabel:v,nameLabel:b});return t.length>0?te(`Please enter in the following required fields: ${t.join(`, `)}`):te(null),t.length===0},[m,g,_,v,b]);return z(`form`,{class:`form`,onSubmit:dg(async e=>{E(!0);try{if(e.preventDefault(),!(e.target instanceof HTMLFormElement))return;let t=new FormData(e.target),n=await(l&&ne?l.value():void 0),r={name:Og(t,`name`),email:Og(t,`email`),message:Og(t,`message`),attachments:n?[n]:void 0};if(!oe(r))return;try{a(r,await i({name:r.name,email:r.email,message:r.message,source:Nm,tags:u},{attachments:r.attachments}))}catch(e){Vm&&x.error(e);let t=e;te(t.message),o(t)}}finally{E(!1)}},[l&&ne,a,o])},re&&ne?z(re,{onError:O}):null,z(`fieldset`,{class:`form__right`,"data-sentry-feedback":!0,disabled:T},z(`div`,{class:`form__top`},ee?z(`div`,{class:`form__error-container`},ee):null,c?z(`label`,{for:`name`,class:`form__label`},z(Ag,{label:b,isRequiredLabel:w,isRequired:_}),z(`input`,{class:`form__input`,defaultValue:n,id:`name`,name:`name`,placeholder:S,required:_,type:`text`})):z(`input`,{"aria-hidden":!0,value:n,name:`name`,type:`hidden`}),s?z(`label`,{for:`email`,class:`form__label`},z(Ag,{label:m,isRequiredLabel:w,isRequired:g}),z(`input`,{class:`form__input`,defaultValue:t,id:`email`,name:`email`,placeholder:h,required:g,type:`email`})):z(`input`,{"aria-hidden":!0,value:t,name:`email`,type:`hidden`}),z(`label`,{for:`message`,class:`form__label`},z(Ag,{label:v,isRequiredLabel:w,isRequired:!0}),z(`textarea`,{autoFocus:!0,class:`form__input form__input--textarea`,id:`message`,name:`message`,placeholder:y,required:!0,rows:5})),re?z(`label`,{for:`screenshot`,class:`form__label`},z(`button`,{class:`btn btn--default`,disabled:T,type:`button`,onClick:()=>{ae(null),D(e=>!e)}},ne?f:d),ie?z(`div`,{class:`form__error-container`},ie.message):null):null),z(`div`,{class:`btn-group`},z(`button`,{class:`btn btn--primary`,disabled:T,type:`submit`},C),z(`button`,{class:`btn btn--default`,disabled:T,type:`button`,onClick:r},p))))}function Ag({label:e,isRequired:t,isRequiredLabel:n}){return z(`span`,{class:`form__label__text`},e,t&&z(`span`,{class:`form__label__text--required`},n))}var jg=16,Mg=17,Ng=`http://www.w3.org/2000/svg`;function Pg(){let e=e=>cm.document.createElementNS(Ng,e),t=Gm(e(`svg`),{width:`${jg}`,height:`${Mg}`,viewBox:`0 0 ${jg} ${Mg}`,fill:`inherit`}),n=Gm(e(`g`),{clipPath:`url(#clip0_57_156)`}),r=Gm(e(`path`),{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M3.55544 15.1518C4.87103 16.0308 6.41775 16.5 8 16.5C10.1217 16.5 12.1566 15.6571 13.6569 14.1569C15.1571 12.6566 16 10.6217 16 8.5C16 6.91775 15.5308 5.37103 14.6518 4.05544C13.7727 2.73985 12.5233 1.71447 11.0615 1.10897C9.59966 0.503466 7.99113 0.34504 6.43928 0.653721C4.88743 0.962403 3.46197 1.72433 2.34315 2.84315C1.22433 3.96197 0.462403 5.38743 0.153721 6.93928C-0.15496 8.49113 0.00346625 10.0997 0.608967 11.5615C1.21447 13.0233 2.23985 14.2727 3.55544 15.1518ZM4.40546 3.1204C5.46945 2.40946 6.72036 2.03 8 2.03C9.71595 2.03 11.3616 2.71166 12.575 3.92502C13.7883 5.13838 14.47 6.78405 14.47 8.5C14.47 9.77965 14.0905 11.0306 13.3796 12.0945C12.6687 13.1585 11.6582 13.9878 10.476 14.4775C9.29373 14.9672 7.99283 15.0953 6.73777 14.8457C5.48271 14.596 4.32987 13.9798 3.42502 13.075C2.52018 12.1701 1.90397 11.0173 1.65432 9.76224C1.40468 8.50718 1.5328 7.20628 2.0225 6.02404C2.5122 4.8418 3.34148 3.83133 4.40546 3.1204Z`}),i=Gm(e(`path`),{d:`M6.68775 12.4297C6.78586 12.4745 6.89218 12.4984 7 12.5C7.11275 12.4955 7.22315 12.4664 7.32337 12.4145C7.4236 12.3627 7.51121 12.2894 7.58 12.2L12 5.63999C12.0848 5.47724 12.1071 5.28902 12.0625 5.11098C12.0178 4.93294 11.9095 4.77744 11.7579 4.67392C11.6064 4.57041 11.4221 4.52608 11.24 4.54931C11.0579 4.57254 10.8907 4.66173 
10610.77 4.79999L6.88 10.57L5.13 8.56999C5.06508 8.49566 4.98613 8.43488 4.89768 8.39111C4.80922 8.34735 4.713 8.32148 4.61453 8.31498C4.51605 8.30847 4.41727 8.32147 4.32382 8.35322C4.23038 8.38497 4.14413 8.43484 4.07 8.49999C3.92511 8.63217 3.83692 8.81523 3.82387 9.01092C3.81083 9.2066 3.87393 9.39976 4 9.54999L6.43 12.24C6.50187 12.3204 6.58964 12.385 6.68775 12.4297Z`});t.appendChild(n).append(i,r);let a=e(`defs`),o=Gm(e(`clipPath`),{id:`clip0_57_156`}),s=Gm(e(`rect`),{width:`${jg}`,height:`${jg}`,fill:`white`,transform:`translate(0 0.5)`});return o.appendChild(s),a.appendChild(o),t.appendChild(a).appendChild(o).appendChild(s),t}function Fg({open:e,onFormSubmitted:t,...n}){let r=n.options,i=ug(()=>({__html:Pg().outerHTML}),[]),[a,o]=ig(null),s=dg(()=>{a&&(clearTimeout(a),o(null)),t()},[a]),c=dg((e,r)=>{n.onSubmitSuccess(e,r),o(setTimeout(()=>{t(),o(null)},Fm))},[t]);return z(Ch,null,a?z(`div`,{class:`success__position`,onClick:s},z(`div`,{class:`success__content`},r.successMessageText,z(`span`,{class:`success__icon`,dangerouslySetInnerHTML:i}))):z(`dialog`,{class:`dialog`,onClick:r.onFormClose,open:e},z(`div`,{class:`dialog__position`},z(`div`,{class:`dialog__content`,onClick:e=>{e.stopPropagation()}},z(Eg,{options:r}),z(kg,{...n,onSubmitSuccess:c})))))}var Ig=`
107.dialog {
108  position: fixed;
109  z-index: var(--z-index);
110  margin: 0;
111  inset: 0;
112
113  display: flex;
114  align-items: center;
115  justify-content: center;
116  padding: 0;
117  height: 100vh;
118  width: 100vw;
119
120  color: var(--dialog-color, var(--foreground));
121  fill: var(--dialog-color, var(--foreground));
122  line-height: 1.75em;
123
124  background-color: rgba(0, 0, 0, 0.05);
125  border: none;
126  inset: 0;
127  opacity: 1;
128  transition: opacity 0.2s ease-in-out;
129}
130
131.dialog__position {
132  position: fixed;
133  z-index: var(--z-index);
134  inset: var(--dialog-inset);
135  padding: var(--page-margin);
136  display: flex;
137  max-height: calc(100vh - (2 * var(--page-margin)));
138}
139@media (max-width: 600px) {
140  .dialog__position {
141    inset: var(--page-margin);
142    padding: 0;
143  }
144}
145
146.dialog__position:has(.editor) {
147  inset: var(--page-margin);
148  padding: 0;
149}
150
151.dialog:not([open]) {
152  opacity: 0;
153  pointer-events: none;
154  visibility: hidden;
155}
156.dialog:not([open]) .dialog__content {
157  transform: translate(0, -16px) scale(0.98);
158}
159
160.dialog__content {
161  display: flex;
162  flex-direction: column;
163  gap: 16px;
164  padding: var(--dialog-padding, 24px);
165  max-width: 100%;
166  width: 100%;
167  max-height: 100%;
168  overflow: auto;
169
170  background: var(--dialog-background, var(--background));
171  border-radius: var(--dialog-border-radius, 20px);
172  border: var(--dialog-border, var(--border));
173  box-shadow: var(--dialog-box-shadow, var(--box-shadow));
174  transform: translate(0, 0) scale(1);
175  transition: transform 0.2s ease-in-out;
176}
177
178`,Lg=`
179.dialog__header {
180  display: flex;
181  gap: 4px;
182  justify-content: space-between;
183  font-weight: var(--dialog-header-weight, 600);
184  margin: 0;
185}
186.dialog__title {
187  align-self: center;
188  width: var(--form-width, 272px);
189}
190
191@media (max-width: 600px) {
192  .dialog__title {
193    width: auto;
194  }
195}
196
197.dialog__position:has(.editor) .dialog__title {
198  width: auto;
199}
200
201
202.brand-link {
203  display: inline-flex;
204}
205.brand-link:focus-visible {
206  outline: var(--outline);
207}
208`,Rg=`
209.form {
210  display: flex;
211  overflow: auto;
212  flex-direction: row;
213  gap: 16px;
214  flex: 1 0;
215}
216
217.form fieldset {
218  border: none;
219  margin: 0;
220  padding: 0;
221}
222
223.form__right {
224  flex: 0 0 auto;
225  display: flex;
226  overflow: auto;
227  flex-direction: column;
228  justify-content: space-between;
229  gap: 20px;
230  width: var(--form-width, 100%);
231}
232
233.dialog__position:has(.editor) .form__right {
234  width: var(--form-width, 272px);
235}
236
237.form__top {
238  display: flex;
239  flex-direction: column;
240  gap: 8px;
241}
242
243.form__error-container {
244  color: var(--error-color);
245  fill: var(--error-color);
246  width: 0;
247  min-width: 100%;
248  overflow-wrap: break-word;
249}
250
251.form__label {
252  display: flex;
253  flex-direction: column;
254  gap: 4px;
255  margin: 0px;
256}
257
258.form__label__text {
259  display: flex;
260  gap: 4px;
261  align-items: center;
262}
263
264.form__label__text--required {
265  font-size: 0.85em;
266}
267
268.form__input {
269  font-family: inherit;
270  line-height: inherit;
271  background: transparent;
272  box-sizing: border-box;
273  border: var(--input-border, var(--border));
274  border-radius: var(--input-border-radius, 6px);
275  color: var(--input-color, inherit);
276  fill: var(--input-color, inherit);
277  font-size: var(--input-font-size, inherit);
278  font-weight: var(--input-font-weight, 500);
279  padding: 6px 12px;
280}
281
282.form__input::placeholder {
283  opacity: 0.65;
284  color: var(--input-placeholder-color, inherit);
285  filter: var(--interactive-filter);
286}
287
288.form__input:focus-visible {
289  outline: var(--input-focus-outline, var(--outline));
290}
291
292.form__input--textarea {
293  font-family: inherit;
294  resize: vertical;
295}
296
297.error {
298  color: var(--error-color);
299  fill: var(--error-color);
300}
301`,zg=`
302.btn-group {
303  display: grid;
304  gap: 8px;
305}
306
307.btn {
308  line-height: inherit;
309  border: var(--button-border, var(--border));
310  border-radius: var(--button-border-radius, 6px);
311  cursor: pointer;
312  font-family: inherit;
313  font-size: var(--button-font-size, inherit);
314  font-weight: var(--button-font-weight, 600);
315  padding: var(--button-padding, 6px 16px);
316}
317.btn[disabled] {
318  opacity: 0.6;
319  pointer-events: none;
320}
321
322.btn--primary {
323  color: var(--button-primary-color, var(--accent-foreground));
324  fill: var(--button-primary-color, var(--accent-foreground));
325  background: var(--button-primary-background, var(--accent-background));
326  border: var(--button-primary-border, var(--border));
327  border-radius: var(--button-primary-border-radius, 6px);
328  font-weight: var(--button-primary-font-weight, 500);
329}
330.btn--primary:hover {
331  color: var(--button-primary-hover-color, var(--accent-foreground));
332  fill: var(--button-primary-hover-color, var(--accent-foreground));
333  background: var(--button-primary-hover-background, var(--accent-background));
334  filter: var(--interactive-filter);
335}
336.btn--primary:focus-visible {
337  background: var(--button-primary-hover-background, var(--accent-background));
338  filter: var(--interactive-filter);
339  outline: var(--button-primary-focus-outline, var(--outline));
340}
341
342.btn--default {
343  color: var(--button-color, var(--foreground));
344  fill: var(--button-color, var(--foreground));
345  background: var(--button-background, var(--background));
346  border: var(--button-border, var(--border));
347  border-radius: var(--button-border-radius, 6px);
348  font-weight: var(--button-font-weight, 500);
349}
350.btn--default:hover {
351  color: var(--button-color, var(--foreground));
352  fill: var(--button-color, var(--foreground));
353  background: var(--button-hover-background, var(--background));
354  filter: var(--interactive-filter);
355}
356.btn--default:focus-visible {
357  background: var(--button-hover-background, var(--background));
358  filter: var(--interactive-filter);
359  outline: var(--button-focus-outline, var(--outline));
360}
361`,Bg=`
362.success__position {
363  position: fixed;
364  inset: var(--dialog-inset);
365  padding: var(--page-margin);
366  z-index: var(--z-index);
367}
368.success__content {
369  background: var(--success-background, var(--background));
370  border: var(--success-border, var(--border));
371  border-radius: var(--success-border-radius, 1.7em/50%);
372  box-shadow: var(--success-box-shadow, var(--box-shadow));
373  font-weight: var(--success-font-weight, 600);
374  color: var(--success-color);
375  fill: var(--success-color);
376  padding: 12px 24px;
377  line-height: 1.75em;
378
379  display: grid;
380  align-items: center;
381  grid-auto-flow: column;
382  gap: 6px;
383  cursor: default;
384}
385
386.success__icon {
387  display: flex;
388}
389`;function Vg(e){let t=L.createElement(`style`);return t.textContent=`
390:host {
391  --dialog-inset: var(--inset);
392}
393
394${Ig}
395${Lg}
396${Rg}
397${zg}
398${Bg}
399`,e&&t.setAttribute(`nonce`,e),t}function Hg(){let e=A().getUser(),t=j().getUser(),n=sn().getUser();return e&&Object.keys(e).length?e:t&&Object.keys(t).length?t:n}var Ug=(()=>({name:`FeedbackModal`,setupOnce(){},createDialog:({options:e,screenshotIntegration:t,sendFeedback:n,shadow:r})=>{let i=r,a=e.useSentryUser,o=Hg(),s=L.createElement(`div`),c=Vg(e.styleNonce),l=``,u={get el(){return s},appendToDom(){!i.contains(c)&&!i.contains(s)&&(i.appendChild(c),i.appendChild(s))},removeFromDom(){s.remove(),c.remove(),L.body.style.overflow=l},open(){f(!0),e.onFormOpen?.(),M()?.emit(`openFeedbackWidget`),l=L.body.style.overflow,L.body.style.overflow=`hidden`},close(){f(!1),L.body.style.overflow=l}},d=t?.createInput({h:z,hooks:Cg,dialog:u,options:e}),f=t=>{Gh(z(Fg,{options:e,screenshotInput:d,showName:e.showName||e.isNameRequired,showEmail:e.showEmail||e.isEmailRequired,defaultName:String(a&&o?.[a.name]||``),defaultEmail:String(a&&o?.[a.email]||``),onFormClose:()=>{f(!1),e.onFormClose?.()},onSubmit:n,onSubmitSuccess:(t,n)=>{f(!1),e.onSubmitSuccess?.(t,n)},onSubmitError:t=>{e.onSubmitError?.(t)},onFormSubmitted:()=>{e.onFormSubmitted?.()},open:t}),s)};return u}}));function Wg({h:e}){return function(){return e(`svg`,{"data-test-id":`icon-close`,viewBox:`0 0 16 16`,fill:`#2B2233`,height:`25px`,width:`25px`},e(`circle`,{r:`7`,cx:`8`,cy:`8`,fill:`white`}),e(`path`,{strokeWidth:`1.5`,d:`M8,16a8,8,0,1,1,8-8A8,8,0,0,1,8,16ZM8,1.53A6.47,6.47,0,1,0,14.47,8,6.47,6.47,0,0,0,8,1.53Z`}),e(`path`,{strokeWidth:`1.5`,d:`M5.34,11.41a.71.71,0,0,1-.53-.22.74.74,0,0,1,0-1.06l5.32-5.32a.75.75,0,0,1,1.06,1.06L5.87,11.19A.74.74,0,0,1,5.34,11.41Z`}),e(`path`,{strokeWidth:`1.5`,d:`M10.66,11.41a.74.74,0,0,1-.53-.22L4.81,5.87A.75.75,0,0,1,5.87,4.81l5.32,5.32a.74.74,0,0,1,0,1.06A.71.71,0,0,1,10.66,11.41Z`}))}}function Gg(e){let t=L.createElement(`style`),n=`#1A141F`,r=`#302735`;return t.textContent=`
400.editor {
401  display: flex;
402  flex-grow: 1;
403  flex-direction: column;
404}
405
406.editor__image-container {
407  justify-items: center;
408  padding: 15px;
409  position: relative;
410  height: 100%;
411  border-radius: var(--menu-border-radius, 6px);
412
413  background-color: ${n};
414  background-image: repeating-linear-gradient(
415      -145deg,
416      transparent,
417      transparent 8px,
418      ${n} 8px,
419      ${n} 11px
420    ),
421    repeating-linear-gradient(
422      -45deg,
423      transparent,
424      transparent 15px,
425      ${r} 15px,
426      ${r} 16px
427    );
428}
429
430.editor__canvas-container {
431  width: 100%;
432  height: 100%;
433  position: relative;
434  display: flex;
435  align-items: center;
436  justify-content: center;
437}
438
439.editor__canvas-container > * {
440  object-fit: contain;
441  position: absolute;
442}
443
444.editor__tool-container {
445  padding-top: 8px;
446  display: flex;
447  justify-content: center;
448}
449
450.editor__tool-bar {
451  display: flex;
452  gap: 8px;
453}
454
455.editor__tool {
456  display: flex;
457  padding: 8px 12px;
458  justify-content: center;
459  align-items: center;
460  border: var(--button-border, var(--border));
461  border-radius: var(--button-border-radius, 6px);
462  background: var(--button-background, var(--background));
463  color: var(--button-color, var(--foreground));
464}
465
466.editor__tool--active {
467  background: var(--button-primary-background, var(--accent-background));
468  color: var(--button-primary-color, var(--accent-foreground));
469}
470
471.editor__rect {
472  position: absolute;
473  z-index: 2;
474}
475
476.editor__rect button {
477  opacity: 0;
478  position: absolute;
479  top: -12px;
480  right: -12px;
481  cursor: pointer;
482  padding: 0;
483  z-index: 3;
484  border: none;
485  background: none;
486}
487
488.editor__rect:hover button {
489  opacity: 1;
490}
491`,e&&t.setAttribute(`nonce`,e),t}function Kg({h:e}){return function({action:t,setAction:n,options:r}){return e(`div`,{class:`editor__tool-container`},e(`div`,{class:`editor__tool-bar`},e(`button`,{type:`button`,class:`editor__tool ${t===`highlight`?`editor__tool--active`:``}`,onClick:()=>{n(t===`highlight`?``:`highlight`)}},r.highlightToolText),e(`button`,{type:`button`,class:`editor__tool ${t===`hide`?`editor__tool--active`:``}`,onClick:()=>{n(t===`hide`?``:`hide`)}},r.hideToolText)))}}function qg({hooks:e}){function t(){let[t,n]=e.useState(cm.devicePixelRatio??1);return e.useEffect(()=>{let e=()=>{n(cm.devicePixelRatio)},t=matchMedia(`(resolution: ${cm.devicePixelRatio}dppx)`);return t.addEventListener(`change`,e),()=>{t.removeEventListener(`change`,e)}},[]),t}return function({onBeforeScreenshot:n,onScreenshot:r,onAfterScreenshot:i,onError:a}){let o=t();e.useEffect(()=>{(async()=>{n();let e=await lm.mediaDevices.getDisplayMedia({video:{width:cm.innerWidth*o,height:cm.innerHe
491ight*o},audio:!1,monitorTypeSurfaces:`exclude`,preferCurrentTab:!0,selfBrowserSurface:`include`,surfaceSwitching:`exclude`}),t=L.createElement(`video`);await new Promise((n,i)=>{t.srcObject=e,t.onloadedmetadata=()=>{r(t,o),e.getTracks().forEach(e=>e.stop()),n()},t.play().catch(i)}),i()})().catch(a)},[])}}function Jg(e,t,n){switch(e.type){case`highlight`:t.shadowColor=`rgba(0, 0, 0, 0.7)`,t.shadowBlur=50,t.fillStyle=n,t.fillRect(e.x-1,e.y-1,e.w+2,e.h+2),t.clearRect(e.x,e.y,e.w,e.h);break;case`hide`:t.fillStyle=`rgb(0, 0, 0)`,t.fillRect(e.x,e.y,e.w,e.h)}}function Yg(e,t,n){if(!e)return;let r=e.getContext(`2d`,t);r&&n(e,r)}function Xg(e,t){Yg(e,{alpha:!0},(e,n)=>{n.drawImage(t,0,0,t.width,t.height,0,0,e.width,e.height)})}function Zg(e,t,n){Yg(e,{alpha:!0},(e,r)=>{n.length&&(r.fillStyle=`rgba(0, 0, 0, 0.25)`,r.fillRect(0,0,e.width,e.height)),n.forEach(e=>{Jg(e,r,t)})})}function Qg({h:e,hooks:t,outputBuffer:n,dialog:r,options:i}){let a=qg({hooks:t}),o=Kg({h:e}),s=Wg({h:e}),c={__html:Gg(i.styleNonce).innerText},l=r.el.style,u=({screenshot:r})=>{let[a,l]=t.useState(`highlight`),[u,d]=t.useState([]),f=t.useRef(null),p=t.useRef(null),m=t.useRef(null),h=t.useRef(null),[g,_]=t.useState(1),v=t.useMemo(()=>{let e=L.getElementById(i.id);if(!e)return`white`;let t=getComputedStyle(e);return t.getPropertyValue(`--button-primary-background`)||t.getPropertyValue(`--accent-background`)},[i.id]);t.useLayoutEffect(()=>{let e=()=>{let t=f.current;t&&(Yg(r.canvas,{alpha:!1},e=>{let n=Math.min(t.clientWidth/e.width,t.clientHeight/e.height);_(n)}),(t.clientHeight===0||t.clientWidth===0)&&setTimeout(e,0))};return e(),cm.addEventListener(`resize`,e),()=>{cm.removeEventListener(`resize`,e)}},[r]);let y=t.useCallback((e,t)=>{Yg(e,{alpha:!0},(e,n)=>{n.scale(t,t),e.width=r.canvas.width,e.height=r.canvas.height})},[r]);t.useEffect(()=>{y(p.current,r.dpi),Xg(p.current,r.canvas)},[r]),t.useEffect(()=>{y(m.current,r.dpi),Yg(m.current,{alpha:!0},(e,t)=>{t.clearRect(0,0,e.width,e.height)}),Zg(m.current,v,u)},[u,v]),t.useEffect(()=>{y(n,r.dpi),Xg(n,r.canvas),Yg(L.createElement(`canvas`),{alpha:!0},(e,t)=>{t.scale(r.dpi,r.dpi),e.width=r.canvas.width,e.height=r.canvas.height,Zg(e,v,u),Xg(n,e)})},[u,r,v]);let b=e=>{if(!a||!h.current)return;let t=h.current.getBoundingClientRect(),n={type:a,x:e.offsetX/g,y:e.offsetY/g},r=(e,n)=>{let r=(n.clientX-t.x)/g,i=(n.clientY-t.y)/g;return{type:e.type,x:Math.min(e.x,r),y:Math.min(e.y,i),w:Math.abs(r-e.x),h:Math.abs(i-e.y)}},i=e=>{Yg(m.current,{alpha:!0},(e,t)=>{t.clearRect(0,0,e.width,e.height)}),Zg(m.current,v,[...u,r(n,e)])},o=e=>{let t=r(n,e);t.w*g>=1&&t.h*g>=1&&d(e=>[...e,t]),L.removeEventListener(`mousemove`,i),L.removeEventListener(`mouseup`,o)};L.addEventListener(`mousemove`,i),L.addEventListener(`mouseup`,o)},x=t.useCallback(e=>t=>{t.preventDefault(),t.stopPropagation(),d(t=>{let n=[...t];return n.splice(e,1),n})},[]),S={width:`${r.canvas.width*g}px`,height:`${r.canvas.height*g}px`},C=e=>{e.stopPropagation()};return e(`div`,{class:`editor`},e(`style`,{nonce:i.styleNonce,dangerouslySetInnerHTML:c}),e(`div`,{class:`editor__image-container`},e(`div`,{class:`editor__canvas-container`,ref:f},e(`canvas`,{ref:p,id:`background`,style:S}),e(`canvas`,{ref:m,id:`foreground`,style:S}),e(`div`,{ref:h,onMouseDown:b,style:S},u.map((t,n)=>
491e(`div`,{key:n,class:`editor__rect`,style:{top:`${t.y*g}px`,left:`${t.x*g}px`,width:`${t.w*g}px`,height:`${t.h*g}px`}},e(`button`,{"aria-label":i.removeHighlightText,onClick:x(n),onMouseDown:C,onMouseUp:C,type:`button`},e(s,null))))))),e(o,{options:i,action:a,setAction:l}))};return function({onError:r}){let[i,o]=t.useState();return a({onBeforeScreenshot:t.useCallback(()=>{l.display=`none`},[]),onScreenshot:t.useCallback((e,t)=>{Yg(L.createElement(`canvas`),{alpha:!1},(n,r)=>{r.scale(t,t),n.width=e.videoWidth,n.height=e.videoHeight,r.drawImage(e,0,0,n.width,n.height),o({canvas:n,dpi:t})}),n.width=e.videoWidth,n.height=e.videoHeight},[]),onAfterScreenshot:t.useCallback(()=>{l.display=`block`},[]),onError:t.useCallback(e=>{l.display=`block`,r(e)},[])}),i?e(u,{screenshot:i}):e(`div`,null)}}var $g=(()=>({name:`FeedbackScreenshot`,setupOnce(){},createInput:({h:e,hooks:t,dialog:n,options:r})=>{let i=L.createElement(`canvas`);return{input:Qg({h:e,hooks:t,outputBuffer:i,dialog:n,options:r}),value:async()=>{let e=await new Promise(e=>{i.toBlob(e,`image/png`)});if(e)return{data:new Uint8Array(await e.arrayBuffer()),filename:`screenshot.png`,contentType:`application/png`}}}}})),e_=-1,t_=()=>e_,n_=e=>{addEventListener(`pageshow`,t=>{t.persisted&&(e_=t.timeStamp,e(t))},!0)},r_=(e,t,n,r)=>{let i,a;return o=>{t.value>=0&&(o||r)&&(a=t.value-(i??0),(a||i===void 0)&&(i=t.value,t.delta=a,t.rating=((e,t)=>e>t[1]?`poor`:e>t[0]?`needs-improvement`:`good`)(t.value,n),e(t)))}},i_=e=>{requestAnimationFrame(()=>requestAnimationFrame(()=>e()))},a_=()=>{let e=performance.getEntriesByType(`navigation`)[0];if(e&&e.responseStart>0&&e.responseStart<performance.now())return e},o_=()=>a_()?.activationStart??0,s_=-1,c_=new Set,l_=()=>document.visibilityState!==`hidden`||document.prerendering?1/0:0,u_=e=>{if(document.visibilityState===`hidden`){if(e.type===`visibilitychange`)for(let e of c_)e();isFinite(s_)||(s_=e.type===`visibilitychange`?e.timeStamp:0,removeEventListener(`prerenderingchange`,u_,!0))}},d_=(e=!1)=>{if(e&&(s_=1/0),s_<0){let e=o_();s_=(document.prerendering?void 0:globalThis.performance.getEntriesByType(`visibility-state`).find(t=>t.name===`hidden`&&t.startTime>=e)?.startTime)??l_(),addEventListener(`visibilitychange`,u_,!0),addEventListener(`prerenderingchange`,u_,!0),n_(()=>{setTimeout(()=>{s_=l_()})})}return{get firstHiddenTime(){return s_},onHidden(e){c_.add(e)}}},f_=(e,t=-1,n,r=0,i,a,o)=>{let s=a_(),c=s?.navigationId||0,l=`navigate`;return n?l=n:t_()>=0?l=`back-forward-cache`:s&&(document.prerendering||o_()>0?l=`prerender`:document.wasDiscarded?l=`restore`:s.type&&(l=s.type.replace(/_/g,`-`))),{name:e,value:t,rating:`good`,delta:0,entries:[],id:`v6-${Date.now()}-${Math.floor(8999999999999*Math.random())+0xe8d4a51000}`,navigationType:l,navigationId:r||c,navigationInteractionId:i,navigationURL:a||s?.name,navigationStartTime:o||0}},p_=new WeakMap;function m_(e,t){let n=p_.get(t);return n||(n=new WeakMap,p_.set(t,n)),n.get(e)||n.set(e,new t),n.get(e)}var h_=class{t;i=0;o=[];h(e){if(e.hadRecentInput)return;let t=this.o[0],n=this.o.at(-1);this.i&&t&&n&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(this.i+=e.value,this.o.push(e)):(this.i=e.value,this.o=[e]),this.t?.(e)}},g_=(e,t,n={})=>{try{let r=e.filter(e=>PerformanceObserver.supportedEntryTypes.includes(e));if(r.length>0){let e=new PerformanceObserver(e=>{queueMicrotask(()=>{let n=e.getEntries();r.length>1&&n.sort((e,t)=>e.startTime+e.duration-(t.startTime+t.duration)),t(n)})});for(let t of r)e.observe({type:t,buffered:!0,...n});return e}}catch{}},__=e=>globalThis.PerformanceObserver?.supportedEntryTypes?.includes(`soft-navigation`)&&typeof globalThis.PerformanceSoftNavigation?.prototype?.getLargestInteractionContentfulPaint==`function`&&e&&e.reportSoftNavs,v_=(e,t)=>{if(e.set(t.navigationId,t),e.size>2){let t=e.keys().next().value;t!==void 0&&e.delete(t)}},y_=e=>{let t=!1;return()=>{t||=(e(),!0)}},b_=class{l},x_=e=>{document.prerendering?addEventListener(`prerenderingchange`,e,!0):e()},S_=[1800,3e3],C_=(e,t={})=>{let n=__(t);x_(()=>{let r=m_(t,b_),i=d_(),a,o=f_(`FCP`),s=g_([`paint`],e=>{for(let t of e)t.name===`first-contentful-paint`&&(s.disconnect(),t.startTime<i.firstHiddenTime&&(o.value=Math.max(t.startTime-o_(),0),o.entries.push(t),o.navigationId=t.navigationId||o.navigationId,a(!0)))});s&&(a=r_(e,o,S_,t.reportAllChanges),n_(n=>{o=f_(`FCP`,-1,`back-forward-cache`,o.navigationId,o.navigationInteractionId,o.navigationURL,t_()),a=r_(e,o,S_,t.reportAllChanges),i_(()=>{o.value=performance.now()-n.timeStamp,a(!0)})})),n&&g_([`soft-navigation`],n=>
491{n.forEach(n=>{r.l&&n.navigationId&&v_(r.l,n),o=f_(`FCP`,Math.max((n.presentationTime||n.paintTime||0)-n.startTime,0),`soft-navigation`,n.navigationId,n.interactionId,n.name,n.startTime),a=r_(e,o,S_,t.reportAllChanges),a(!0)})},t)})},w_=[.1,.25],T_=(e,t={})=>{let n=d_();C_(y_(()=>{let r,i=f_(`CLS`,0),a=m_(t,h_),o=(n,o,s,c,l)=>{i=f_(`CLS`,0,n,o,s,c,l),a.i=0,r=r_(e,i,w_,t.reportAllChanges)},s=(e=!1)=>{a.i>i.value&&(i.value=a.i,i.entries=a.o),r(e)},c=e=>{s(!0),o(`soft-navigation`,e.navigationId,e.interactionId,e.name,e.startTime)},l=e=>{for(let t of e)t.entryType===`soft-navigation`?c(t):a.h(t);s()},u=[`layout-shift`];__(t)&&u.push(`soft-navigation`);let d=g_(u,l);d&&(r=r_(e,i,w_,t.reportAllChanges),n.onHidden(()=>{l(d.takeRecords()),r(!0)}),n_(()=>{o(`back-forward-cache`,i.navigationId,i.navigationInteractionId,i.navigationURL,t_()),i_(r)}),setTimeout(r))}))},E_=0,D_=1/0,O_=0,k_=e=>{for(let t of e)t.interactionId&&(D_=Math.min(D_,t.interactionId),O_=Math.max(O_,t.interactionId),E_=O_?(O_-D_)/7+1:0)},A_,j_=()=>A_?E_:performance.interactionCount??0,M_=()=>{`interactionCount`in performance||A_||(A_=g_([`event`],k_,{durationThreshold:0}))},N_=class{u=0;v=[];m=new Map;p;T;_(){return j_()-this.u}M(){this.u=j_(),this.v.length=0,this.m.clear()}L(e){let t=this._(),n=Math.min(this.v.length-1,Math.floor(t/50));return!t||n!==-1||e!==`soft-navigation`&&e!==`back-forward-cache`?this.v[n]:{P:8,id:-1,entries:[]}}h(e){if(this.p?.(e),!e.interactionId)return;let t=this.v.at(-1),n=this.m.get(e.interactionId);if(n||this.v.length<10||e.duration>t.P){if(n?e.duration>n.P?(n.entries=[e],n.P=e.duration):e.duration===n.P&&e.startTime===n.entries[0].startTime&&n.entries.push(e):(n={id:e.interactionId,entries:[e],P:e.duration},this.m.set(n.id,n),this.v.push(n)),this.v.sort((e,t)=>t.P-e.P),this.v.length>10){let e=this.v.splice(10);for(let t of e)this.m.delete(t.id)}this.T?.(n)}}},P_=e=>{let t=`requestIdleCallback`in globalThis?1e3:0,n=globalThis.requestIdleCallback||setTimeout,r=globalThis.cancelIdleCallback||clearTimeout;if(document.visibilityState===`hidden`)e();else{let i=y_(e),a=-1,o=()=>{r(a),i()};addEventListener(`visibilitychange`,o,{once:!0,capture:!0}),a=n(()=>{removeEventListener(`visibilitychange`,o,{capture:!0}),i()},{timeout:t})}},F_=[200,500],I_=(e,t={})=>{if(!globalThis.PerformanceEventTiming||!(`interactionId`in PerformanceEventTiming.prototype))return;let n=d_();x_(()=>{M_();let r,i=f_(`INP`),a=m_(t,N_),o=(n,o,s,c,l)=>{a.M(),i=f_(`INP`,-1,n,o,s,c,l),r=r_(e,i,F_,t.reportAllChanges)},s=()=>{let e=a.L(i.navigationType);e&&e.P!==i.value&&(i.value=e.P,i.entries=e.entries,r())},c=e=>{s(),r(!0),o(`soft-navigation`,e.navigationId,e.interactionId,e.name,e.startTime)},l=(e,t=!1)=>{P_(()=>{for(let t of e)t.entryType===`soft-navigation`?c(t):a.h(t);s(),t&&r(!0)})},u=[`event`,`first-input`];__(t)&&u.push(`soft-navigation`);let d=g_(u,l,{...t,durationThreshold:t.durationThreshold??40});r=r_(e,i,F_,t.reportAllChanges),d&&(n.onHidden(()=>{l(d.takeRecords(),!0)}),n_(()=>{o(`back-forward-cache`,i.navigationId,i.navigationInteractionId,i.navigationURL,t_())}))})},L_=class{p;l;h(e){this.p?.(e)}},R_=[2500,4e3],z_=(e,t={})=>{let n=!1,r=__(t);x_(()=>{let i,a=d_(),o=f_(`LCP`),s=m_(t,L_),c=(r,s,c,l,u)=>{o=f_(`LCP`,-1,r,s,c,l,u),i=r_(e,o,R_,t.reportAllChanges),n=!1,r===`soft-navigation`&&(a=d_(!0))},l=e=>{s.l&&e.navigationId&&v_(s.l,e),n||i(!0),c(`soft-navigation`,e.navigationId,e.interactionId,e.name,e.startTime);let t=e.getLargestInteractionContentfulPaint?.();t&&u([t])},u=e=>{t.reportAllChanges||r||(e=e.slice(-1));for(let t of e){if(!t)continue;if(t.entryType===`soft-navigation`){l(t);continue}let e=0,n=[],r=t.startTime;if(t.entryType===`largest-contentful-paint`)e=Math.max(t.startTime-o_(),0),s.h(t),n=[t];else if(t.entryType===`interaction-contentful-paint`){let i=t;if(!o.navigationId||`interactionId`in i&&i.interactionId!=o.navigationInteractionId)continue;r=i.largestContentfulPaint?.renderTime||0,e=Math.max(r-t.startTime,0),i.largestContentfulPaint&&(s.h(i.largestContentfulPaint),n=[i.largestContentfulPaint])}r<a.firstHiddenTime&&(o.value=e,o.entries=n,i())}},d=[`largest-contentful-paint`];r&&d.push(`interaction-contentful-paint`,`soft-navigation`);let f=g_(d,u);if(f){i=r_(e,o,R_,t.reportAllChanges);let a=[`keydown`,`click`,`visibilitychange`],s=e=>{if(e.isTrusted&&!n){let e=o.id;
491P_(()=>{if(!n){if(!r){f.disconnect();for(let e of a)removeEventListener(e,s,{capture:!0})}e===o.id&&(n=!0,i(!0))}})}};for(let e of a)addEventListener(e,s,{capture:!0});n_(r=>{c(`back-forward-cache`,o.navigationId,o.navigationInteractionId,o.navigationURL,t_()),i=r_(e,o,R_,t.reportAllChanges),i_(()=>{o.value=performance.now()-r.timeStamp,n=!0,i(!0)})})}})},B_=[800,1800],V_=e=>{document.prerendering?x_(()=>V_(e)):document.readyState===`complete`?setTimeout(e):addEventListener(`load`,()=>V_(e),!0)},H_=(e,t={})=>{let n=__(t),r=f_(`TTFB`),i=r_(e,r,B_,t.reportAllChanges);V_(()=>{let a=a_();if(a){let o=a.responseStart;r.value=Math.max(o-o_(),0),r.entries=[a],i(!0),n_(()=>{r=f_(`TTFB`,0,`back-forward-cache`,r.navigationId,r.navigationInteractionId,r.navigationURL,t_()),i=r_(e,r,B_,t.reportAllChanges),i(!0)}),n&&g_([`soft-navigation`],n=>{n.forEach(n=>{n.navigationId&&(r=f_(`TTFB`,0,`soft-navigation`,n.navigationId,n.interactionId,n.name,n.startTime),r.entries=[n],i=r_(e,r,B_,t.reportAllChanges),i(!0))})},t)}})},U_=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,W_={},G_={},K_,q_,J_,Y_,X_,Z_={},Q_=!1,$_=!1;function ev(){Q_=!0}function tv(){$_=!0}function nv(e,t=!1){return hv(`cls`,e,uv,K_,t)}function rv(e,t=!1){return hv(`lcp`,e,dv,q_,t)}function iv(e){return hv(`ttfb`,e,fv,J_)}function av(e){return hv(`fcp`,e,pv,X_)}function ov(e){return hv(`inp`,e,mv,Y_)}function sv(e,t){return _v(e,t),G_[e]||(gv(e),G_[e]=!0),vv(e,t)}function cv(e,t){let n=W_[e];if(n?.length)for(let r of n)try{r(t)}catch(t){U_&&x.error(`Error while triggering instrumentation handler.
492Type: ${e}
493Name: ${D(r)}
494Error:`,t)}}function lv(e){return t=>{($_||t.navigationType!==`back-forward-cache`)&&e(t)}}function uv(){return T_(lv(e=>{cv(`cls`,{metric:e}),K_=e}),{reportAllChanges:!Q_&&!$_,reportSoftNavs:Q_})}function dv(){return z_(lv(e=>{cv(`lcp`,{metric:e}),q_=e}),{reportAllChanges:!Q_&&!$_,reportSoftNavs:Q_})}function fv(){return H_(lv(e=>{cv(`ttfb`,{metric:e}),J_=e}))}function pv(){return C_(lv(e=>{cv(`fcp`,{metric:e}),X_=e}))}function mv(){return I_(lv(e=>{cv(`inp`,{metric:e}),Y_=e}),{reportSoftNavs:Q_})}function hv(e,t,n,r,i=!1){return _v(e,t),G_[e]||(G_[e]=!0,Promise.resolve().then(()=>{Z_[e]=n()})),r&&t({metric:r}),vv(e,t,i)}function gv(e){let t={type:e,buffered:!0};e===`event`&&(t.durationThreshold=0);try{PerformanceObserver.supportedEntryTypes.includes(e)&&new PerformanceObserver(t=>{Promise.resolve().then(()=>{cv(e,{entries:t.getEntries()})})}).observe(t)}catch{}}function _v(e,t){W_[e]=W_[e]||[],W_[e].push(t)}function vv(e,t,n=!1){return()=>{n&&Z_[e]?.();let r=W_[e];if(!r)return;let i=r.indexOf(t);i!==-1&&r.splice(i,1)}}function yv(e){return`duration`in e}var H=i,bv=5,xv=5,Sv,Cv,wv,Tv=new Np(bv),Ev=new Np(bv),Dv=!1;function Ov(e,t){return Math.abs(e-t)<=xv}function kv(){try{return PerformanceObserver.supportedEntryTypes.includes(`soft-navigation`)&&typeof H.PerformanceSoftNavigation?.prototype?.getLargestInteractionContentfulPaint==`function`}catch{return!1}}function Av(e){if(Dv||!kv())return;Dv=!0;let t=e=>{e.isTrusted&&(wv=e.timeStamp)};H.addEventListener(`click`,t,{capture:!0,passive:!0}),H.addEventListener(`keydown`,t,{capture:!0,passive:!0}),e.on(`spanStart`,e=>{if(N(e).attributes?.[`sentry.op`]!==`navigation`)return;Sv=void 0;let t=wv;if(t!=null){if(Cv?.interactionTimestamp===t){Tv.set(Cv.interactionId,e),Cv=void 0;return}Sv={span:e,interactionTimestamp:t}}});let n=({entries:e})=>{for(let t of e){if(!yv(t)||!t.interactionId)continue;let e=Sv;if(e&&Ov(t.startTime,e.interactionTimestamp)){Tv.set(t.interactionId,e.span),Sv=void 0;continue}Tv.get(t.interactionId)||wv!=null&&Ov(t.startTime,wv)&&(Cv={interactionId:t.interactionId,interactionTimestamp:wv})}};sv(`event`,n),sv(`first-input`,n),sv(`soft-navigation`,({entries:e})=>{for(let t of e){let e=Tv.get(t.interactionId);if(!e){U_&&x.log(`[SoftNav] No navigation span found for soft navigation ${t.navigationId}`,t);continue}Ev.set(t.navigationId,e),e.setAttribute(hn,t.navigationId)}})}function jv(e){return e.navigationType===`soft-navigation`?Ev.get(e.navigationId)||(e.navigationInteractionId==null?void 0:Tv.get(e.n
494avigationInteractionId)):void 0}function Mv(e){return typeof e==`number`&&isFinite(e)}function Nv(e,t,n,{...r}){let i=hi(e).start_timestamp;return i&&i>t&&typeof e.updateStartTime==`function`&&e.updateStartTime(t),Mo(e,()=>{let e=Zo({startTime:t,...r});return e&&e.end(n),e})}function Pv(){return H.addEventListener&&H.performance}function U(e){return e/1e3}function Fv(e){let t=`unknown`,n=`unknown`,r=``;for(let i of e){if(i===`/`){[t,n]=e.split(`/`);break}if(!isNaN(Number(i))){t=r===`h`?`http`:r,n=e.split(r)[1];break}r+=i}return r===e&&(t=r),{name:t,version:n}}function Iv(e){try{return PerformanceObserver.supportedEntryTypes.includes(e)}catch{return!1}}function Lv(e){return e&&((Dt()||performance.timeOrigin)+e)/1e3}function Rv(e){let t={};if(e.nextHopProtocol!=null){let{name:n,version:r}=Fv(e.nextHopProtocol);t[`network.protocol.version`]=r,t[`network.protocol.name`]=n}return Dt()||Pv()?.timeOrigin?zv({...t,"http.request.redirect_start":Lv(e.redirectStart),"http.request.redirect_end":Lv(e.redirectEnd),"http.request.worker_start":Lv(e.workerStart),"http.request.fetch_start":Lv(e.fetchStart),"http.request.domain_lookup_start":Lv(e.domainLookupStart),"http.request.domain_lookup_end":Lv(e.domainLookupEnd),"http.request.connect_start":Lv(e.connectStart),"http.request.secure_connection_start":Lv(e.secureConnectionStart),"http.request.connection_end":Lv(e.connectEnd),"http.request.request_start":Lv(e.requestStart),"http.request.response_start":Lv(e.responseStart),"http.request.response_end":Lv(e.responseEnd),"http.request.time_to_first_byte":e.responseStart==null?void 0:e.responseStart/1e3}):t}function zv(e){return Object.fromEntries(Object.entries(e).filter(([,e])=>e!=null))}var Bv=2147483647,Vv=0;function Hv(){sv(`longtask`,({entries:e})=>{let t=P();if(!t)return;let{attributes:n,start_timestamp:r}=N(t);for(let i of e){let e=U(Dt()+i.startTime),a=U(i.duration);n[`sentry.op`]===`navigation`&&r&&e<r||Nv(t,e,e+a,{name:Ks,op:Ns,attributes:{[or]:`auto.ui.browser.metrics`}})}})}function Uv(){new PerformanceObserver(e=>{let t=P();if(t)for(let n of e.getEntries()){if(!n.scripts[0])continue;let e=U(Dt()+n.startTime),{start_timestamp:r,attributes:{[In]:i}}=N(t);if(i===`navigation`&&r&&e<r)continue;let a=U(n.duration),o={[or]:`auto.ui.browser.metrics`},{invoker:s,invokerType:c,sourceURL:l,sourceFunctionName:u,sourceCharPosition:d}=n.scripts[0];o[`browser.script.invoker`]=s,o[`browser.script.invoker_type`]=c,l&&(o[vn]=l),u&&(o[yn]=u),d!==-1&&(o[`browser.script.source_char_position`]=d),Nv(t,e,e+a,{name:Ks,op:Ps,attributes:o})}}).observe({type:`long-animation-frame`,buffered:!0})}function Wv(e,t){let n=Pv(),r=Dt();if(!n?.getEntries||!r)return;let{spanStreamingEnabled:i,ignoreResourceSpans:a}=t,o=U(r),s=n.getEntries(),{attributes:c,start_timestamp:l}=N(e);s.slice(Vv).forEach(t=>{let n=U(t.startTime),r=U(Math.max(0,t.duration));if(!(c[`sentry.op`]===`navigation`&&l&&o+n<l))switch(t.entryType){case`navigation`:Kv(e,t,o,i);break;case`paint`:Gv(e,t,n,r,o);break;case`resource`:Zv(e,t,t.name,n,r,o,a,i)}}),Vv=Math.max(s.length-1,0),Qv(e,i)}function Gv(e,t,n,r,i){let a=i+n;Nv(e,a,a+r,{name:t.name,attributes:{[In]:Ss,[or]:`auto.resource.browser.metrics`,[_n]:t.name}})}function Kv(e,t,n,r){Jv(e,t,`unloadEvent`,n,r),Jv(e,t,`redirect`,n,r),Jv(e,t,`domContentLoadedEvent`,n,r),Jv(e,t,`loadEvent`,n,r),Jv(e,t,`connect`,n,r),Jv(e,t,`secureConnection`,n,r),Jv(e,t,`fetch`,n,r),Jv(e,t,`domainLookup`,n,r),Xv(e,t,n,r)}var qv={secureConnection:Os,fetch:ks,domainLookup:As,unloadEvent:Cs,redirect:ws,connect:Ds,domContentLoadedEvent:Ts,loadEvent:Es};function Jv(e,t,n,r,i){let a=t[Yv(n)],o=t[`${n}Start`];if(!o||!a)return;let s=qv[n];Nv(e,r+U(o),r+U(a),{name:i?Zs[s]:t.name,attributes:{[In]:s,[or]:`auto.ui.browser.metrics`,[Zn]:Nu(t.name),...n===`redirect`&&t.redirectCount!=null?{"http.redirect_count":t.redirectCount}:{}}})}function Yv(e){return e===`secureConnection`?`connectEnd`:e===`fetch`?`domainLookupStart`:`${e}End`}function Xv(e,t,n,r){let i=n+U(t.requestStart),a=n+U(t.responseEnd),o=n+U(t.responseStart);if(t.responseEnd){let n=Nu(t.name);Nv(e,i,a,{name:r?Zs[js]:t.name,attributes:{[In]:js,[or]:`auto.ui.browser.metrics`,[Zn]:n}}),Nv(e,o,a,{name:r?Zs[Ms]:t.name,attributes:{[In]:Ms,[or]:`auto.ui.browser.metrics`,[Zn]:n}})}}
494function Zv(e,t,n,r,i,a,o,s){if(t.initiatorType===`xmlhttprequest`||t.initiatorType===`fetch`)return;let c=t.initiatorType?`resource.${t.initiatorType}`:xs;if(o?.includes(c))return;let l={[or]:`auto.resource.browser.metrics`},u=Hu(n);u.protocol&&(l[er]=u.protocol.split(`:`).pop());let d=u.host?.replace(/^.*@/,``);d&&(l[Kn]=d);let f=d?.replace(/:\d+$/,``);f&&(l[Yn]=f),l[En]=n.includes(H.location.origin),l[Zn]=Nu(n),$v(t,l,[[`responseStatus`,kn],[`transferSize`,On],[`encodedBodySize`,Dn],[`decodedBodySize`,`http.response.body.decoded_size`],[`renderBlockingStatus`,`resource.render_blocking_status`],[`deliveryType`,`http.response_delivery_type`]]);let p={...l,...Rv(t)},m=a+r;Nv(e,m,m+i,{name:s?f||`Resource`:n.replace(H.location.origin,``),op:c,attributes:p})}function Qv(e,t){let n=H.navigator;if(!n)return;let r=n.connection;r&&(r.effectiveType&&e.setAttribute(t?jn:`effectiveConnectionType`,r.effectiveType),r.type&&e.setAttribute(t?Nn:`connectionType`,r.type),Mv(r.rtt)&&(t?e.setAttribute(Mn,r.rtt):N(e).attributes[`sentry.op`]===`pageload`&&yo(`connection.rtt`,r.rtt,`millisecond`))),Mv(n.deviceMemory)&&(t?e.setAttribute(`device.memory.estimated_capacity`,n.deviceMemory):e.setAttribute(`deviceMemory`,`${n.deviceMemory} GB`)),Mv(n.hardwareConcurrency)&&(t?e.setAttribute(`device.processor_count`,n.hardwareConcurrency):e.setAttribute(`hardwareConcurrency`,String(n.hardwareConcurrency)))}function $v(e,t,n){n.forEach(([n,r])=>{let i=e[n];i!=null&&(typeof i==`number`&&i<Bv||typeof i==`string`)&&(t[r]=i)})}var ey=80,ty={};try{typeof Node<`u`&&(ty.parentNode=Object.getOwnPropertyDescriptor(Node.prototype,`parentNode`).get),typeof Element<`u`&&(ty.tagName=Object.getOwnPropertyDescriptor(Element.prototype,`tagName`).get,ty.id=Object.getOwnPropertyDescriptor(Element.prototype,`id`).get,ty.className=Object.getOwnPropertyDescriptor(Element.prototype,`className`).get,ty.getAttribute=Element.prototype.getAttribute),typeof HTMLElement<`u`&&(ty.dataset=Object.getOwnPropertyDescriptor(HTMLElement.prototype,`dataset`).get)}catch{}function ny(e,t,n){let r=ty[t];if(r)try{return r.call(e,n)}catch{}let i=e[t];return typeof i==`function`?i.call(e,n):i}function ry(e,t={}){if(!e)return`<unknown>`;try{let n=e,r=[],i=0,a=0,o,s=Array.isArray(t)?t:t.keyAttrs,c=!Array.isArray(t)&&t.maxStringLength||ey;for(;n&&i++<5&&(o=iy(n,s),!(o===`html`||i>1&&a+r.length*3+o.length>=c));)r.push(o),a+=o.length,n=ny(n,`parentNode`);return r.reverse().join(` > `)}catch{return`<unknown>`}}function iy(e,t){let n=[],r=ny(e,`tagName`);if(!r)return``;if(typeof HTMLElement<`u`&&e instanceof HTMLElement){let t=ny(e,`dataset`);if(t){if(t.sentryComponent)return t.sentryComponent;if(t.sentryElement)return t.sentryElement}}n.push(r.toLowerCase());let i=t?.length?t.filter(t=>ny(e,`getAttribute`,t)).map(t=>[t,ny(e,`getAttribute`,t)]):null;if(i?.length)i.forEach(e=>{n.push(`[${e[0]}="${e[1]}"]`)});else{let t=ny(e,`id`);t&&n.push(`#${t}`);let r=ny(e,`className`);if(r&&k(r)){let e=r.split(/\s+/);for(let t of e)n.push(`.${t}`)}}for(let t of[`aria-label`,`type`,`name`,`title`,`alt`]){let r=ny(e,`getAttribute`,t);r&&n.push(`[${t}="${r}"]`)}return n.join(``)}function ay(e){return e!=null&&e>0&&e<=6e4}function oy(e,t,n){H.document&&H.addEventListener(e,t,n)}function sy(e,t,n){H.document&&H.removeEventListener(e,t,n)}var cy=(e=!0)=>{let t=H.performance?.getEntriesByType?.(`navigation`)[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t},ly=()=>cy()?.activationStart??0,uy=e=>{oy(`visibilitychange`,t=>{H.document?.visibilityState===`hidden`&&e(t)},{capture:!0})},dy=-1,fy=new Set,py=()=>H.document?.visibilityState===`hidden`&&!H.document?.prerendering?0:1/0,my=e=>{if(H.document?.visibilityState===`hidden`&&dy>-1){if(e.type===`visibilitychange`)for(let e of fy)e();isFinite(dy)||(dy=e.type===`visibilitychange`?e.timeStamp:0,sy(`prerenderingchange`,my,!0))}},hy=()=>{if(H.document&&dy<0){let e=ly();dy=(H.document.prerendering?void 0:globalThis.performance.getEntriesByType(`visibility-state`).filter(t=>t.name===`hidden`&&t.startTime>e)[0]?.startTime)??py(),oy(`visibilitychange`,my,!0),oy(`prerenderingchange`,my,!0)}return{get firstHiddenTime(){return dy},onHidden(e){fy.add(e)}}},gy=e=>{let t=H.requestIdleCallback||H.setTimeout;if(H.document?.visibilityState===`hidden`)e();else{let n=!1,r=()=>{n||=(e(),!0)};oy(`visibilitychange`,r,{once:!0,capture:!0}),t(()=>{r(),sy(`visibilitychange`,r,{capture:!0})})}},_y={},vy,yy,by;function xy({trackCls:e,trackLcp:t}){if(Pv()&&Dt()){let n=t?Cy():void 0,r=e?Sy():void 0,i=wy(),a=Ty(),o=Ey();return()=>{i(),a(),o(),n?.(),r?.()}}return()=>void 0}function Sy(){return nv(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(_y.cls={value:e.value,unit:``},yy=t)},!0)}function Cy(){return rv(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&ay(e.value)&&(_y.lcp={value:e.value,unit:`millisecond`},vy=t)},!0)}function wy(){return iv(({metric:e})=>{by=e.navigationType,e.entries[e.entries.length-1]&&(_y.ttfb={value:e.value,unit:`millisecond`})})}function Ty(){return av(({metric:e})=>{by=e.navigationType,_y.fcp={value:e.value,unit:`millisecond`}})}function Ey(){return sv(`paint`,({entries:e})=>{let t=hy();for(let n of e)n.name===`first-paint`&&n.startTime<t.firstHiddenTime&&(_y.fp={value:n.startTime,unit:`millisecond`})})}function Dy(e,t){let n=Dt();if(!Pv()?.getEntries||!n){Oy();return}let{spanStreamingEnabled:r,recordClsOnPageloadSpan:i,recordLcpOnPageloadSpan:a}=t,o=U(n);if(N(e).attributes[`sentry.op`]===`pageload`){if(jy(_y),Ay(_y),r){let t=(t,n,r)=>{let i=r??`browser.web_vital.${t}.value`;e.setAttribute(i,n),U_&&x.log(`Setting web vital attribute`,{[i]:n},`on pageload span`)};
494[`ttfb`,`fp`,`fcp`].forEach(e=>{_y[e]&&t(e,_y[e].value)}),_y[`ttfb.requestTime`]&&t(`ttfb.requestTime`,_y[`ttfb.requestTime`].value,`browser.web_vital.ttfb.request_time`)}else i||delete _y.cls,a||delete _y.lcp,Object.entries(_y).forEach(([t,n])=>{yo(t,n.value,n.unit,e)}),ky(e,t);by&&e.setAttribute(gn,by),e.setAttribute(r?`browser.performance.time_origin`:`performance.timeOrigin`,o),e.setAttribute(r?`browser.performance.navigation.activation_start`:`performance.activationStart`,ly())}Oy()}function Oy(){vy=void 0,yy=void 0,by=void 0,_y={}}function ky(e,t){vy&&t.recordLcpOnPageloadSpan&&(vy.element&&e.setAttribute(`lcp.element`,ry(vy.element)),vy.id&&e.setAttribute(`lcp.id`,vy.id),vy.url&&e.setAttribute(`lcp.url`,vy.url.trim().slice(0,200)),vy.loadTime!=null&&e.setAttribute(`lcp.loadTime`,vy.loadTime),vy.renderTime!=null&&e.setAttribute(`lcp.renderTime`,vy.renderTime),e.setAttribute(`lcp.size`,vy.size)),yy?.sources&&t.recordClsOnPageloadSpan&&yy.sources.forEach((t,n)=>e.setAttribute(`cls.source.${n+1}`,ry(t.node)))}function Ay(e){let t=e.fp;t&&(t.value=Math.max(t.value-ly(),0))}function jy(e){let t=cy(!1);if(!t)return;let{responseStart:n,requestStart:r}=t;r<=n&&(e[`ttfb.requestTime`]={value:n-r,unit:`millisecond`})}var My=`ElementTiming`,Ny=F((()=>({name:My,setup(){Pv()&&Dt()&&sv(`element`,({entries:e})=>{for(let t of e){let e=t;if(!e.identifier)continue;let n=e.identifier,r=e.name,i=e.renderTime,a=e.loadTime,o={"sentry.origin":`auto.ui.browser.element_timing`,"ui.element.identifier":n};r&&(o[`ui.element.paint_type`]=r),e.id&&(o[`ui.element.id`]=e.id),e.element&&(o[`ui.element.type`]=e.element.tagName.toLowerCase()),e.url&&(o[`ui.element.url`]=e.url),e.naturalWidth&&(o[`ui.element.width`]=e.naturalWidth),e.naturalHeight&&(o[`ui.element.height`]=e.naturalHeight),i>0&&em(`ui.element.render_time`,i,{unit:`millisecond`,attributes:o}),a>0&&em(`ui.element.load_time`,a,{unit:`millisecond`,attributes:o})}})}}))),Py=[],Fy=new Map,Iy=new Map,Ly={click:`click`,pointerdown:`click`,pointerup:`click`,mousedown:`click`,mouseup:`click`,touchstart:`click`,touchend:`click`,mouseover:`hover`,mouseout:`hover`,mouseenter:`hover`,mouseleave:`hover`,pointerover:`hover`,pointerout:`hover`,pointerenter:`hover`,pointerleave:`hover`,dragstart:`drag`,dragend:`drag`,drag:`drag`,dragenter:`drag`,dragleave:`drag`,dragover:`drag`,drop:`drag`,keydown:`press`,keyup:`press`,keypress:`press`,input:`press`};function Ry(e){return e==null?void 0:Fy.get(e)}function zy(){let e=Object.keys(Ly);Za()&&e.forEach(e=>{H.addEventListener(e,t,{capture:!0,passive:!0})});function t(e){let t=e.target;if(!t)return;let n=ry(t),r=Math.round(e.timeStamp);if(n&&n!==`<unknown>`&&!Iy.has(r)&&(Iy.set(r,n),Iy.size>50)){let e=Iy.keys().next().value;e!==void 0&&Iy.delete(e)}}function n(e){let t=Math.round(e.startTime),n=Iy.get(t);if(!n)for(let e=-5;e<=5;e++){let r=Iy.get(t+e);if(r){n=r;break}}return n||`<unknown>`}let r=({entries:e})=>{let t=P(),r=t&&ki(t);e.forEach(e=>{if(!yv(e))return;let t=e.interactionId;if(t==null||Fy.has(t))return;let i=e.target?ry(e.target):n(e);if(Py.length>10){let e=Py.shift();Fy.delete(e)}Py.push(t),Fy.set(t,{span:r,elementName:i})})};sv(`event`,r),sv(`first-input`,r)}var By=/Googlebot|Google-InspectionTool|Storebot-Google|Bingbot|Slurp|DuckDuckBot|Baiduspider|YandexBot|Facebot|facebookexternalhit|LinkedInBot|Twitterbot|Applebot/i;function Vy(){let e=H.navigator;return e?.userAgent?By.test(e.userAgent):!1}function Hy(e,t=5){if(!i.HTMLElement)return null;let n=e;for(let e=0;e<t;e++){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}var Uy=`Interactions`,Wy=F(((e={})=>({name:Uy,setup(t){if(Vy())return;let n={name:void 0,source:void 0,routeId:void 0,urlTemplate:void 0,httpRoute:void 0,urlPath:void 0,urlFull:void 0},r;function i(e){let{name:t,attributes:r}=N(e);n.name=t,n.source=r[`sentry.source`]||r[`sentry.segment.name.source`],n.routeId=r[Pn],n.urlTemplate=r[tr],n.httpRoute=r[An],n.urlPath=r[Qn],n.urlFull=r[Zn]}t.on(`spanStart`,e=>{Gy(e)&&(r=e,i(e))}),t.on(`spanEnd`,e=>{e===r&&(r=void 0,i(e))}
494),Ky(t,n,()=>r,e),qy(t)}})));function Gy(e){if(ki(e)!==e)return!1;let t=N(e).attributes[In];return t===`pageload`||t===`navigation`}function Ky(e,t,n,r){if(!H.document)return;let i;addEventListener(`click`,()=>{if(n()){U_&&x.warn(`[Tracing] Did not create ui.action.click span because a pageload or navigation span is in progress.`);return}if(i&&=(i.setAttribute(Fn,`interactionInterrupted`),i.end(),void 0),!t.name){U_&&x.warn(`[Tracing] Did not create ui.action.click span because the latest route name is missing.`);return}let a=I(e),o=t.routeId||t.urlTemplate||t.httpRoute,s=o||`Click`,c=!o||t.routeId?`custom`:`route`;i=rs({name:a?s:t.name,attributes:{[In]:Vs,[Un]:a?c:t.source||`url`,[Ln]:`auto.browser.interactions`,...a&&{"sentry.segment.name":s},...t.routeId&&{"router.navigation.route.id":t.routeId},...t.urlTemplate&&{"url.template":t.urlTemplate},...t.httpRoute&&{"http.route":t.httpRoute},...t.urlPath&&{"url.path":t.urlPath},...t.urlFull&&{"url.full":Nu(t.urlFull)}}},r)},{capture:!0})}function qy(e){sv(`event`,({entries:t})=>{let n=P();if(n){for(let r of t)if(r.name===`click`){let t=U(Dt()+r.startTime),i=U(r.duration),a=ry(r.target),o=Hy(r.target),s={name:I(e)?o||`Click`:a,startTime:t,attributes:{[In]:Fs,[Ln]:`auto.browser.interactions`,...a&&a!==`<unknown>`&&{"browser.web_vital.inp.target":a}}};o&&(s.attributes[Jn]=o),Nv(n,t,t+i,s)}}})}function Jy(){try{return H.document?.location.href??``}catch{return``}}var Yy=`UserTiming`,Xy=F(((e={})=>({name:Yy,setup(t){let n=Pv(),r=Dt();if(!n?.getEntries||!r)return;let i=U(r),a=0;t.on(`beforeIdleSpanEnd`,t=>{let{attributes:r,start_timestamp:o}=N(t),s=r[In];if(s!==`pageload`&&s!==`navigation`)return;let c=U(cy(!1)?.requestStart??0),l=n.getEntries();for(let n of l.slice(a)){if(n.entryType!==`mark`&&n.entryType!==`measure`)continue;let r=U(n.startTime),a=i+r;s===`navigation`&&o&&a<o||Zy(t,n,r,U(Math.max(0,n.duration)),i,c,e.ignore??[])}a=l.length})}})));function Zy(e,t,n,r,i,a,o){if(Qy(t)||ot(t.name,o))return;let s=i+Math.max(n,a),c=i+n,l=c+r,u={[Ln]:`auto.browser.user_timing.${t.entryType}`};s!==c&&(u[`sentry.browser.measure_happened_before_request`]=!0,u[`sentry.browser.measure_start_time`]=s),$y(u,t),s<=l&&Nv(e,s,l,{name:t.name,op:t.entryType,attributes:u})}function Qy(e){if(e.entryType===`measure`)try{return e.detail.devtools.track===`Components ⚛`}catch{return}}function $y(e,t){try{let n=t.detail;if(!n)return;if(typeof n==`object`){for(let[t,r]of Object.entries(n))if(r&&Se(r))e[`sentry.browser.measure.detail.${t}`]=r;else if(r!==void 0)try{e[`sentry.browser.measure.detail.${t}`]=JSON.stringify(r)}catch{}return}if(Se(n)){e[`sentry.browser.measure.detail`]=n;return}try{e[`sentry.browser.measure.detail`]=JSON.stringify(n)}catch{}}catch{}}function eb(e){let{name:t,op:n,origin:r,metricName:i,value:a,attributes:o,parentSpan:s,startTime:c,endTime:l,standalone:u,softNavigationId:d,navigationType:f}=e,p=s&&ki(s),m=p?N(p).name:A().getScopeData().transactionName,h={[or]:r,[ar]:n,[yr]:0,[`browser.web_vital.${i}.value`]:a,[Gn]:m,[Hn]:m,[nr]:H.navigator?.userAgent,...o};s&&N(s).attributes[`sentry.op`]===`pageload`&&(h[`sentry.pageload.span_id`]=s.spanContext().spanId),d!=null&&(h[hn]=d),f&&(h[gn]=f),u&&Object.assign(h,tb());let g=Zo({name:t,attributes:h,startTime:c,parentSpan:s,experimental:u?{standalone:!0}:void 0});g&&g.end(l??c)}function tb(){let e=M()?.getIntegrationByName(`Replay`),t=e?.getReplayId(!0);return t?{[Rn]:t,"sentry._internal.replay_is_buffering":e.getRecordingMode()===`buffer`||void 0}:{}}function nb(e,t){let n,r=!1;function i(){!r&&n&&t(n),r=!0}uy(()=>{i()});let a=e.on(`beforeStartNavigationSpan`,(e,t)=>{t?.isRedirect||(i(),a(),o())}),o=e.on(`afterStartPageLoadSpan`,e=>{n=e,o()})}var rb={click:Fs,hover:Is,drag:Ls,press:Rs},ib={click:qs,hover:Js,drag:Ys,press:Xs};function ab(e,t,n){let r;e.on(`afterStartPageLoadSpan`,e=>{r=e});let i;e.on(`spanStart`,e=>{let t=N(e).attributes;t?.[`sentry.op`]===`navigation`&&t[`browser.navigation.type`]===`back-forward-cache`&&(i=e)}),t(({metric:e})=>{let t=jv(e);if(e.navigationType===`soft-navigation`){t?n(e,t,e.navigationId):U_&&x.log(`[SoftNav] Dropping ${e.name} for uncorrelated soft navigation ${e.navigationId}`);return}if(e.navigationType===`back-forward-cache`){n(e,i,void 0);return}n(e,r,void 0)})}function ob(e,t=!1){if(!Iv(`largest-contentful-paint`))return;if(t){ab(e,rv,(e,t,n)=>{let r=e.entries[e.entries.length-1];sb(e.value,r,t,n,e.navigationType,e.navigationStartTime)});return}let n=0,r,i,a=rv(({metric:e})=>{i=e.navigationType;let t=e.entries[e.entries.length-1];t&&ay(e.value)&&(n=e.value,r=t)},!0);nb(e,e=>{sb(n,r,e,void 0,i),a()})}
494function sb(e,t,n,r,i,a){if(!ay(e))return;U_&&x.log(`Sending LCP span (${e})`);let o=Dt()||0,s=U(o+(a||0)),c=t?U(o+t.startTime):s+U(e),l=t?ry(t.element):void 0,u=t?.element?Hy(t.element):null,d=M(),f=d&&I(d)?u||`Largest contentful paint`:l??`Largest contentful paint`,p={};l&&(p[`browser.web_vital.lcp.element`]=l),u&&(p[Jn]=u),t?.id&&(p[`browser.web_vital.lcp.id`]=t.id),t?.url&&(p[`browser.web_vital.lcp.url`]=t.url),t?.loadTime!=null&&(p[`browser.web_vital.lcp.load_time`]=t.loadTime),t?.renderTime!=null&&(p[`browser.web_vital.lcp.render_time`]=t.renderTime),t?.size!=null&&(p[`browser.web_vital.lcp.size`]=t.size),eb({name:f,op:zs,origin:`auto.http.browser.lcp`,metricName:`lcp`,value:e,attributes:p,parentSpan:n,startTime:s,endTime:c,softNavigationId:r,navigationType:i})}function cb(e,t=!1){if(!Iv(`layout-shift`))return;if(t){ab(e,nv,(e,t,n)=>{let r=e.entries[e.entries.length-1];lb(e.value,r,t,n,e.navigationType,e.navigationStartTime)});return}let n=0,r,i,a=nv(({metric:e})=>{i=e.navigationType;let t=e.entries[e.entries.length-1];t&&(n=e.value,r=t)},!0);nb(e,e=>{lb(n,r,e,void 0,i),a()})}function lb(e,t,n,r,i,a){U_&&x.log(`Sending CLS span (${e})`);let o=Dt(),s=t?.startTime??a??0,c=o?U(o+s):wt(),l=t?.sources[0]?.node,u=t?ry(l):void 0,d=l?Hy(l):null,f=M(),p=f&&I(f)?d||`Layout shift`:u??`Layout shift`,m={};d&&(m[Jn]=d),t?.sources&&t.sources.forEach((e,t)=>{m[`browser.web_vital.cls.source.${t+1}`]=ry(e.node)}),eb({name:p,op:Bs,origin:`auto.http.browser.cls`,metricName:`cls`,value:e,attributes:m,parentSpan:n,startTime:c,softNavigationId:r,navigationType:i})}function ub(e,t=!1){if(!Pv()||!Dt())return;let n=!I(e);if(t){ab(e,ov,(e,t,r)=>{db(e)&&pb(e.value,fb(e),n,t,r,e)});return}ov(({metric:e})=>{db(e)&&pb(e.value,fb(e),n,void 0,void 0,e)})}function db(e){return e.value!=null&&U(e.value)<=60}function fb(e){return e.entries.find(t=>t.duration===e.value&&Ly[t.name])}function pb(e,t,n=!1,r,i,a){U_&&x.log(`Sending INP span (${e})`);let o=U(Dt()+(t?.startTime??a?.navigationStartTime??0)),s=U(e),c=t&&Ly[t.name],l=c||`click`,u=t&&Ry(t.interactionId),d=P(),f=d?ki(d):void 0,p=r||u?.span||f,m=u?.elementName||(t?ry(t.target):void 0),h=t?.target?Hy(t.target):null,g=M(),_=!!g&&I(g),v=ib[l],y=_?h||v:m??`Interaction to next paint`,b={[yr]:t?.duration??e};m&&m!==`<unknown>`&&(b[`browser.web_vital.inp.target`]=m),c&&(b[`browser.web_vital.inp.interaction_type`]=c),h&&(b[Jn]=h),eb({name:y,op:rb[l],origin:`auto.http.browser.inp`,metricName:`inp`,value:e,attributes:b,startTime:o,endTime:o+s,navigationType:a?.navigationType,parentSpan:p,standalone:n,softNavigationId:i})}var mb=1e3,hb,gb,_b;function vb(e){oe(`dom`,e),se(`dom`,yb)}function yb(){if(!H.document)return;let e=ce.bind(null,`dom`),t=Sb(e,!0);H.document.addEventListener(`click`,t,!1),H.document.addEventListener(`keypress`,t,!1),[`EventTarget`,`Node`].forEach(t=>{let n=H[t]?.prototype;n?.hasOwnProperty?.(`addEventListener`)&&(Ae(n,`addEventListener`,function(t){return function(n,r,i){if(n===`click`||n==`keypress`)try{let r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},a=r[n]=r[n]||{refCount:0};if(!a.handler){let r=Sb(e);a.handler=r,t.call(this,n,r,i)}a.refCount++}catch{}return t.call(this,n,r,i)}}),Ae(n,`removeEventListener`,function(e){return function(t,n,r){if(t===`click`||t==`keypress`)try{let n=this.__sentry_instrumentation_handlers__||{},i=n[t];i&&(i.refCount--,i.refCount<=0&&(e.call(this,t,i.handler,r),i.handler=void 0,delete n[t]),Object.keys(n).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return e.call(this,t,n,r)}}))})}function bb(e){if(e.type!==gb)return!1;try{if(!e.target||e.target._sentryId!==_b)return!1}catch{}return!0}function xb(e,t){return e===`keypress`?!t?.tagName||!(t.tagName===`INPUT`||t.tagName===`TEXTAREA`||t.isContentEditable):!1}function Sb(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;let r=Cb(n);if(xb(n.type,r))return;je(n,`_sentryCaptured`,!0),r&&!r._sentryId&&je(r,`_sentryId`,ut());let i=n.type===`keypress`?`input`:n.type;bb(n)||(e({event:n,name:i,global:t}),gb=n.type,_b=r?r._sentryId:void 0),clearTimeout(hb),hb=H.setTimeout(()=>{_b=void 0,gb=void 0},mb)}}function Cb(e){try{return e.target}catch{return null}}var wb;function Tb(){return`history`in H&&!!H.history}function Eb(e){let t=`history`;oe(t,e),se(t,Db)}function Db(){if(H.addEventListener(`popstate`,()=>{let e=H.location.href,t=wb;wb=e,t!==e&&ce(`history`,{from:t,to:e})}),!Tb())return;function e(e){return function(...t){let n=t.length>2?t[2]:void 0;if(n){let r=wb,i=Ob(String(n));if(wb=i,r===i)return e.apply(this,t);ce(`history`,{from:r,to:i})}return e.apply(this,t)}}Ae(H.history,`pushState`,e),Ae(H.history,`replaceState`,e)}function Ob(e){try{return new URL(e,H.location.origin).toString()}catch{return e}}var kb={};function Ab(e){let t=kb[e];if(t)return t;let n=H[e];if(xp(n))return kb[e]=n.bind(H);let r=H.document;if(r&&typeof r.createElement==`function`)try{let t=r.createElement(`iframe`);t.hidden=!0,r.head.appendChild(t);let i=t.contentWindow;i?.[e]&&(n=i[e]),r.head.removeChild(t)}catch(t){U_&&x.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,t)}return n&&(kb[e]=n.bind(H))}function jb(e){kb[e]=void 0}function Mb(...e){return Ab(`setTimeout`)(...e)}var Nb=`__sentry_xhr_v3__`;function Pb(e){oe(`xhr`,e),se(`xhr`,Fb)}function Fb(){if(!H.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,n){let r=Error(),i=wt()*1e3,a=k(n[0])?n[0].toUpperCase():void 0,o=Ib(n[1]);if(!a||!o)return e.apply(t,n);t[Nb]={method:a,url:o,request_headers:{}}
494,a===`POST`&&o.match(/sentry_key/)&&(t.__sentry_own_request__=!0);let s=()=>{let e=t[Nb];if(e&&t.readyState===4){try{e.status_code=t.status}catch{}ce(`xhr`,{endTimestamp:wt()*1e3,startTimestamp:i,xhr:t,virtualError:r}),r=void 0,t.removeEventListener(`readystatechange`,s)}};return`onreadystatechange`in t&&typeof t.onreadystatechange==`function`?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply(e,t,n){return s(),e.apply(t,n)}}):t.addEventListener(`readystatechange`,s),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,n){let[r,i]=n,a=t[Nb];return a&&k(r)&&k(i)&&(a.request_headers[r.toLowerCase()]=i),e.apply(t,n)}}),e.apply(t,n)}}),e.send=new Proxy(e.send,{apply(e,t,n){let r=t[Nb];return r?(n[0]!==void 0&&(r.body=n[0]),ce(`xhr`,{startTimestamp:wt()*1e3,xhr:t}),e.apply(t,n)):e.apply(t,n)}})}function Ib(e){if(k(e))return e;try{return e.toString()}catch{}}var Lb=Symbol.for(`sentry__originalRequestBody`);function Rb(e){return new URLSearchParams(e).toString()}function zb(e,t=x){try{if(typeof e==`string`)return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[Rb(e)];if(!e)return[void 0]}catch(n){return U_&&t.error(n,`Failed to serialize body`,e),[void 0,`BODY_PARSE_ERROR`]}return U_&&t.log(`Skipping network body because of body type`,e),[void 0,`UNPARSEABLE_BODY_TYPE`]}function Bb(e=[]){if(e.length>=2&&e[1]&&typeof e[1]==`object`&&`body`in e[1])return e[1].body;if(e.length>=1&&e[0]instanceof Request){let t=e[0][Lb];return t===void 0?void 0:t}}function Vb(e){let t;try{t=e.getAllResponseHeaders()}catch(t){return U_&&x.error(t,`Failed to get xhr response headers`,e),{}}return t?t.split(`\r
495`).reduce((e,t)=>{let[n,r]=t.split(`: `);return r&&(e[n.toLowerCase()]=r),e},{}):{}}function Hb(e){if(typeof Element>`u`)return!1;try{return e instanceof Element}catch{return!1}}function Ub(e){try{return new URL(e,H.location.origin).toString()}catch{return e}}var W=i,Wb=0,Gb=[];function Kb(e){if(Wb>0)return!0;let t=e?Gb.findIndex(t=>Jb(t,e)):-1;return t!==-1&&(Gb.splice(t,1),!0)}function qb(e){Gb.push(e),setTimeout(()=>{let t=Gb.indexOf(e);t!==-1&&Gb.splice(t,1)})}function Jb(e,t){return e.msg===t.msg&&e.url===t.url&&e.line===t.line&&e.column===t.column}function Yb(){Wb++,setTimeout(()=>{Wb--})}function Xb(e,t={}){function n(e){return typeof e==`function`}if(!n(e))return e;try{if(Object.prototype.hasOwnProperty.call(e,`__sentry_wrapped__`)){let t=e.__sentry_wrapped__;return typeof t==`function`?t:e}if(Ne(e))return e}catch{return e}let r=function(...n){i._sentryWrappedDepth=(i._sentryWrappedDepth||0)+1;try{let r=n.map(e=>Xb(e,t));return e.apply(this,r)}catch(e){throw Yb(),cn(r=>{r.addEventProcessor(e=>(t.mechanism&&(pt(e,void 0,void 0),mt(e,t.mechanism)),e.extra={...e.extra,arguments:n},e)),Ec(e)}),e}finally{i._sentryWrappedDepth=(i._sentryWrappedDepth||0)-1}};try{for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t])}catch{}Me(r,e),je(e,`__sentry_wrapped__`,r);try{Object.getOwnPropertyDescriptor(r,`name`).configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}function Zb(){let e=Jy(),{referrer:t}=W.document||{},{userAgent:n}=W.navigator||{};return{url:e,headers:{...t&&{Referer:t},...n&&{"User-Agent":n}}}}var Qb=[`replayIntegration`,`replayCanvasIntegration`,`feedbackIntegration`,`feedbackModalIntegration`,`feedbackScreenshotIntegration`,`captureConsoleIntegration`,`contextLinesIntegration`,`linkedErrorsIntegration`,`dedupeIntegration`,`extraErrorDataIntegration`,`graphqlClientIntegration`,`httpClientIntegration`,`reportingObserverIntegration`,`rewriteFramesIntegration`,`browserProfilingIntegration`,`userTimingIntegration`,`interactionsIntegration`,`moduleMetadataIntegration`],$b={replayCanvasIntegration:`replay-canvas`,feedbackModalIntegration:`feedback-modal`,feedbackScreenshotIntegration:`feedback-screenshot`};function ex(e){return $b[e]||e.replace(`Integration`,``).toLowerCase()}var tx=W;async function nx(e,t){let n=Qb.includes(e)?ex(e):void 0,r=tx.Sentry=tx.Sentry||{};if(!n)throw Error(`Cannot lazy load integration: ${e}`);let i=r[e];if(typeof i==`function`&&!(`_isShim`in i))return i;let a=rx(n),o=W.document.createElement(`script`);o.src=a,o.crossOrigin=`anonymous`,o.referrerPolicy=`strict-origin`,t&&o.setAttribute(`nonce`,t);let s=new Promise((e,t)=>
495{o.addEventListener(`load`,()=>e()),o.addEventListener(`error`,t)}),c=W.document.currentScript,l=W.document.body||W.document.head||c?.parentElement;if(l)l.appendChild(o);else throw Error(`Could not find parent element to insert lazy-loaded ${e} script`);try{await s}catch{throw Error(`Error when loading integration: ${e}`)}let u=r[e];if(typeof u!=`function`)throw Error(`Could not load integration: ${e}`);return u}function rx(e){let t=M()?.getOptions()?.cdnBaseUrl||`https://browser.sentry-cdn.com`;return new URL(`/${a}/${e}.min.js`,t).toString()}var ix=th({lazyLoadIntegration:nx}),ax=th({getModalIntegration:()=>Ug,getScreenshotIntegration:()=>$g});function ox(e,t){let n=lx(e,t),r={type:mx(t),value:hx(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===``&&(r.value=`Unrecoverable error caught`),r}function sx(e,t,n,r){let i=M()?.getOptions().normalizeDepth,a=Sx(t),o={__serialized__:Ye(t,i)};if(a)return{exception:{values:[ox(e,a)]},extra:o};let s={exception:{values:[{type:Te(t)?t.constructor.name:r?`UnhandledRejection`:`Error`,value:bx(t,{isUnhandledRejection:r})}]},extra:o};if(n){let t=lx(e,n);t.length&&(s.exception.values[0].stacktrace={frames:t})}return s}function cx(e,t){return{exception:{values:[ox(e,t)]}}}function lx(e,t){let n=t.stacktrace||t.stack||``,r=dx(t),i=fx(t);try{return e(n,r,i)}catch{}return[]}var ux=/Minified React error #\d+;/i;function dx(e){return e&&ux.test(e.message)?1:0}function fx(e){return typeof e.framesToPop==`number`?e.framesToPop:0}function px(e){return typeof WebAssembly<`u`&&WebAssembly.Exception!==void 0&&e instanceof WebAssembly.Exception}function mx(e){let t=e?.name;return!t&&px(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:`WebAssembly.Exception`:t}function hx(e){let t=e?.message;return px(e)?Array.isArray(e.message)&&e.message.length==2?e.message[1]:`wasm exception`:t?t.error&&typeof t.error.message==`string`?kd(t.error):kd(e):`No error message`}function gx(e,t,n,r){let i=vx(e,t,n?.syntheticException||void 0,r);return mt(i),i.level=`error`,n?.event_id&&(i.event_id=n.event_id),ic(i)}function _x(e,t,n=`info`,r,i){let a=yx(e,t,r?.syntheticException||void 0,i);return a.level=n,r?.event_id&&(a.event_id=r.event_id),ic(a)}function vx(e,t,n,r,i){let a;if(ve(t)&&t.error)return cx(e,t.error);if(ye(t)||be(t)){let i=t;if(`stack`in t){a=cx(e,t);let i=a.exception?.values?.[0];if(r&&n&&i&&!i.stacktrace){let t=lx(e,n);t.length&&(i.stacktrace={frames:t},mt(a,{synthetic:!0}))}}else{let t=i.name||(ye(i)?`DOMError`:`DOMException`),o=i.message?`${t}: ${i.message}`:t;a=yx(e,o,n,r),pt(a,o)}return a}if(ge(t))return cx(e,t);if(Ce(t)||Te(t))return a=sx(e,t,n,i),mt(a,{synthetic:!0}),a;let o=String(t);return a=yx(e,o,n,r),pt(a,o,void 0),mt(a,{synthetic:!0}),a}function yx(e,t,n,r){let i={};if(r&&n){let r=lx(e,n);r.length&&(i.exception={values:[{value:t,stacktrace:{frames:r}}]}),mt(i,{synthetic:!0})}if(xe(t)){let{__sentry_template_string__:e,__sentry_template_values__:n}=t;return i.logentry={message:e,params:n},i}return i.message=t,i}function bx(e,{isUnhandledRejection:t}){let n=Ie(e),r=t?`promise rejection`:`exception`;return ve(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:Te(e)?`Event \`${xx(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function xx(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function Sx(e){return Object.values(e).find(ge)}var Cx=class extends tu{constructor(e){let t=wx(e);$u(t,`browser`,[`browser`],W.SENTRY_SDK_SOURCE||Ya()),super(t),this._unhandledSessionStatus=`unhandled`;let{userInfo:n}=this.getDataCollectionOptions();t._metadata?.sdk&&(t._metadata.sdk.settings={infer_ip:n?`auto`:`never`,...t._metadata.sdk.settings});let{sendClientReports:r}=this._options;W.document&&W.document.addEventListener(`visibilitychange`,()=>{W.document.visibilityState===`hidden`&&(r&&this._flushOutcomes(),queueMicrotask(()=>{this.flush()}))}),n&&this.on(`beforeSendSession`,Qu)}eventFromException(e,t){return gx(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t=`info`,n){return _x(this._options.stackParser,e,t,n,this._options.attachStacktrace)}_prepareEvent(e,t,n,r){return e.platform=e.platform||`javascript`,super._prepareEvent(e,t,n,r)}};function wx(e){return{release:typeof __SENTRY_RELEASE__==`string`?__SENTRY_RELEASE__:W.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}var Tx=40;function Ex(e,t=Ab(`fetch`)){let n=0,r=0;async function i(i){let a=i.body.length;n+=a,r++;let o={body:i.body,method:`POST`,referrerPolicy:`strict-origin`,headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{let n=await t(e.url,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(e){throw jb(`fetch`),e}finally{n-=a,r--}}return Fl(e,i,kl(e.bufferSize||Tx))}var G=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__;function Dx(){let e=M();if(!e){G&&x.warn(`No Sentry client available, profiling is not started`);return}if(!e.getIntegrationByName(`BrowserProfiling`)){G&&x.warn(`BrowserProfiling integration is not available`);return}e.emit(`startUIProfiler`)}function Ox(){let e=M();if(!e){G&&x.warn(`No Sentry client available, profiling is not started`);return}if(!e.getIntegrationByName(`BrowserProfiling`)){G&&x.warn(`ProfilingIntegration is not available`);return}e.emit(`stopUIProfiler`)}var kx={startProfiler:Dx,stopProfiler:Ox},Ax=10,jx=20,Mx=30,Nx=40,Px=50;function Fx(e,t,n,r){let i={filename:e,function:t===`<anonymous>`?`?`:t,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}
495var Ix=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,Lx=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Rx=/\((\S*)(?::(\d+))(?::(\d+))\)/,zx=/at (.+?) ?\(data:(.+?),/,Bx=[Mx,e=>{let t=e.match(zx);if(t)return{filename:`<data:${t[2]}>`,function:t[1]};let n=Ix.exec(e);if(n){let[,e,t,r]=n;return Fx(e,`?`,+t,+r)}let r=Lx.exec(e);if(r){if(r[2]?.indexOf(`eval`)===0){let e=Rx.exec(r[2]);e&&(r[2]=e[1],r[3]=e[2],r[4]=e[3])}let[e,t]=Qx(r[1]||`?`,r[2]);return Fx(t,e,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}}],Vx=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Hx=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Ux=[Px,e=>{let t=Vx.exec(e);if(t){if(t[3]&&t[3].indexOf(` > eval`)>-1){let e=Hx.exec(t[3]);e&&(t[1]=t[1]||`eval`,t[3]=e[1],t[4]=e[2],t[5]=``)}let e=t[3],n=t[1]||`?`;return[n,e]=Qx(n,e),Fx(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],Wx=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Gx=[Nx,e=>{let t=Wx.exec(e);return t?Fx(t[2],t[1]||`?`,+t[3],t[4]?+t[4]:void 0):void 0}],Kx=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,qx=[Ax,e=>{let t=Kx.exec(e);return t?Fx(t[2],t[3]||`?`,+t[1]):void 0}],Jx=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,Yx=[jx,e=>{let t=Jx.exec(e);return t?Fx(t[5],t[3]||t[4]||`?`,+t[1],+t[2]):void 0}],Xx=[Bx,Ux],Zx=T(...Xx),Qx=(e,t)=>{let n=e.indexOf(`safari-extension`)!==-1,r=e.indexOf(`safari-web-extension`)!==-1;return n||r?[e.indexOf(`@`)===-1?`?`:e.split(`@`)[0],n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};function $x(e,{metadata:t,tunnel:n,dsn:r}){return Ma({event_id:e.event_id,sent_at:new Date().toISOString(),...t?.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:Ur(r)}},[eS(e)])}function eS(e){return[{type:`user_report`},e]}var tS=1024,nS=`Breadcrumbs`,rS=F(((e={})=>{let t={dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:nS,setup(e){t.dom&&vb(aS(e,t.dom)),t.xhr&&Pb(oS(e)),t.fetch&&Cp(sS(e)),t.history&&Eb(cS(e)),t.sentry&&e.on(`beforeSendEvent`,iS(e))}}}));function iS(e){return function(t){M()===e&&sd({category:`sentry.${t.type===`transaction`?`transaction`:`event`}`,event_id:t.event_id,level:t.level,message:ft(t)},{event:t})}}function aS(e,t){return function(n){if(M()!==e)return;let r,i,a=typeof t==`object`?t.serializeAttribute:void 0,o=typeof t==`object`&&typeof t.maxStringLength==`number`?t.maxStringLength:void 0;o&&o>tS&&(G&&x.warn(`\`dom.maxStringLength\` cannot exceed ${tS}, but a value of ${o} was configured. Sentry will use ${tS} instead.`),o=tS),typeof a==`string`&&(a=[a]);try{let e=n.event,t=lS(e)?e.target:e;r=ry(t,{keyAttrs:a,maxStringLength:o}),i=Hy(t)}catch{r=`<unknown>`}if(r.length===0)return;let s={category:`ui.${n.name}`,message:r};i&&(s.data={"ui.component_name":i}),sd(s,{event:n.event,name:n.name,global:n.global})}}function oS(e){return function(t){if(M()!==e)return;let{startTimestamp:n,endTimestamp:r}=t,i=t.xhr[Nb];if(!n||!r||!i)return;let{method:a,url:o,status_code:s,body:c}=i,l={method:a,url:o,status_code:s},u={xhr:t.xhr,input:c,startTimestamp:n,endTimestamp:r},d={category:`xhr`,data:l,type:`http`,level:Mp(s)};e.emit(`beforeOutgoingRequestBreadcrumb`,d,u),sd(d,u)}}function sS(e){return function(t){if(M()!==e)return;let{startTimestamp:n,endTimestamp:r}=t;if(r&&!(t.fetchData.url.match(/sentry_key/)&&t.fetchData.method===`POST`)){if(t.error){let i={data:t.error,input:t.args,startTimestamp:n,endTimestamp:r},a={category:`fetch`,data:t.fetchData,level:`error`,type:`http`};e.emit(`beforeOutgoingRequestBreadcrumb`,a,i),sd(a,i)}else{let i=t.response,a={...t.fetchData,status_code:i?.status},o={input:t.args,response:i,startTimestamp:n,endTimestamp:r},s={category:`fetch`,data:a,type:`http`,level:Mp(a.status_code)};e.emit(`beforeOutgoingRequestBreadcrumb`,s,o),sd(s,o)}}}}function cS(e){return function(t){if(M()!==e)return;let n=t.from,r=t.to,i=Hu(W.location.href),a=n?Hu(n):void 0,o=Hu(r);a?.path||(a=i),i.protocol===o.protocol&&i.host===o.host&&(r=o.relative),i.protocol===a.protocol&&i.host===a.host&&(n=a.relative),sd({category:`navigation`,data:{from:n,to:r}})}}function lS(e){return!!e&&!!e.target}var uS=`EventTarget,Window,Node,ApplicationCache,AudioTrackList,BroadcastChannel,ChannelMergerNode,CryptoOperation,EventSource,FileReader,HTMLUnknownElement,IDBDatabase,IDB
495Request,IDBTransaction,KeyOperation,MediaController,MessagePort,ModalWindow,Notification,SVGElementInstance,Screen,SharedWorker,TextTrack,TextTrackCue,TextTrackList,WebSocket,WebSocketWorker,Worker,XMLHttpRequest,XMLHttpRequestEventTarget,XMLHttpRequestUpload`.split(`,`),dS=`BrowserApiErrors`,fS=F(((e={})=>{let t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:dS,setupOnce(){t.setTimeout&&Ae(W,`setTimeout`,pS),t.setInterval&&Ae(W,`setInterval`,pS),t.requestAnimationFrame&&Ae(W,`requestAnimationFrame`,mS),t.XMLHttpRequest&&`XMLHttpRequest`in W&&Ae(XMLHttpRequest.prototype,`send`,hS);let e=t.eventTarget;e&&(Array.isArray(e)?e:uS).forEach(e=>gS(e,t))}}}));function pS(e){return function(...t){let n=t[0];return t[0]=Xb(n,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${D(e)}`}}),e.apply(this,t)}}function mS(e){return function(t){return e.apply(this,[Xb(t,{mechanism:{data:{handler:D(e)},handled:!1,type:`auto.browser.browserapierrors.requestAnimationFrame`}})])}}function hS(e){return function(...t){let n=this;return[`onload`,`onerror`,`onprogress`,`onreadystatechange`].forEach(e=>{e in n&&typeof n[e]==`function`&&Ae(n,e,function(t){let n={mechanism:{data:{handler:D(t)},handled:!1,type:`auto.browser.browserapierrors.xhr.${e}`}},r=Ne(t);return r&&(n.mechanism.data.handler=D(r)),Xb(t,n)})}),e.apply(this,t)}}function gS(e,t){let n=W[e]?.prototype;n?.hasOwnProperty?.(`addEventListener`)&&(Ae(n,`addEventListener`,function(n){return function(r,i,a){try{_S(i)&&(i.handleEvent=Xb(i.handleEvent,{mechanism:{data:{handler:D(i),target:e},handled:!1,type:`auto.browser.browserapierrors.handleEvent`}}))}catch{}return t.unregisterOriginalCallbacks&&vS(this,r,i),n.apply(this,[r,Xb(i,{mechanism:{data:{handler:D(i),target:e},handled:!1,type:`auto.browser.browserapierrors.addEventListener`}}),a])}}),Ae(n,`removeEventListener`,function(e){return function(t,n,r){try{if(Object.prototype.hasOwnProperty.call(n,`__sentry_wrapped__`)){let i=n.__sentry_wrapped__;i&&e.call(this,t,i,r)}}catch{}return e.call(this,t,n,r)}}))}function _S(e){return typeof e.handleEvent==`function`}function vS(e,t,n){e&&typeof e==`object`&&`removeEventListener`in e&&typeof e.removeEventListener==`function`&&e.removeEventListener(t,n)}var yS=F((e={})=>{let t=e.lifecycle??`page`;return{name:`BrowserSession`,setupOnce(){if(W.document===void 0){G&&x.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}Wc({ignoreDuration:!0});let e=!1;gy(()=>{e||=(qc(),!0)});let n=j(),r=n.getUser();n.addScopeListener(t=>{let n=t.getUser();(r?.id!==n?.id||r?.ip_address!==n?.ip_address)&&(r=n,e&&qc())}),t===`route`&&Eb(({from:t,to:n})=>{t!==n&&(Wc({ignoreDuration:!0}),qc(),e=!0)})}}}),bS=`CultureContext`,xS=F((()=>({name:bS,preprocessEvent(e){let t=SS();t&&(e.contexts={...e.contexts,culture:{...t,...e.contexts?.culture}})},processSegmentSpan(e){let t=SS();t&&Ea(e,{"culture.locale":t.locale,"culture.timezone":t.timezone,"culture.calendar":t.calendar})}})));function SS(){try{let e=W.Intl;if(!e)return;let t=e.DateTimeFormat().resolvedOptions();return{locale:t.locale,timezone:t.timeZone,calendar:t.calendar}}catch{return}}var CS=`GlobalHandlers`,wS=F(((e={})=>{let t={onerror:!0,onunhandledrejection:!0,...e};return{name:CS,setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(TS(e),AS(`onerror`)),t.onunhandledrejection&&(ES(e),AS(`onunhandledrejection`))}}}));function TS(e){ue(t=>{let{stackParser:n,attachStacktrace:r}=jS();if(M()!==e||Kb(t))return;let{msg:i,url:a,line:o,column:s,error:c}=t,l=kS(vx(n,c||i,void 0,r,!1),a,o,s);l.level=`error`,Oc(l,{originalException:c,mechanism:{handled:!1,type:`auto.browser.global_handlers.onerror`}})})}function ES(e){pe(t=>{let{stackParser:n,attachStacktrace:r}=jS();if(M()!==e||Kb())return;let i=DS(t),a=Se(i)?OS(i):vx(n,i,void 0,r,!0);a.level=`error`,Oc(a,{originalException:i,mechanism:{handled:!1,type:`auto.browser.global_handlers.onunhandledrejection`}})})}function DS(e){if(Se(e))return e;try{if(`reason`in e)return e.reason;if(`detail`in e&&`reason`in e.detail)return e.detail.reason}catch{}return e}function OS(e){return{exception:{values:[{type:`UnhandledRejection`,value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function kS(e,t,n,r){let i=e.exception=e.exception||{},a=i.values=i.values||[],o=a[0]=a[0]||{},s=o.stacktrace=o.stacktrace||{},c=s.frames=s.frames||[];
495return c.length===0&&c.push({colno:r,lineno:n,filename:MS(t)??Jy(),function:`?`,in_app:!0}),e}function AS(e){G&&x.log(`Global Handler attached: ${e}`)}function jS(){return M()?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}function MS(e){if(k(e)&&e.length!==0)return e.startsWith(`data:`)?`<${Wu(e,!1)}>`:e}var NS=F(()=>({name:`HttpContext`,preprocessEvent(e,t,n){if(!W.navigator&&!W.location&&!W.document)return;let{url:r,headers:i}=Zb(),a=n.getDataCollectionOptions().httpHeaders.request,o=Object.entries(e.request?.headers??{}).filter(([e])=>!(e in i)),s={...Tu(i,a),...Object.fromEntries(o)};e.request={url:r,...e.request,...Object.keys(s).length>0?{headers:s}:{headers:void 0}}},processSpan(e,t){if(!W.navigator&&!W.location&&!W.document)return;let n=Zb(),r=Tu(n.headers,t.getDataCollectionOptions().httpHeaders.request),i=r.Referer,{hostname:a,protocol:o}=W.location||{};Ea(e,{[nr]:r[`User-Agent`],"sentry.is_localhost":o===`file:`||a===`localhost`||a===`127.0.0.1`||a===`[::1]`||!!a?.endsWith(`.localhost`),...e.is_segment&&{"url.full":e.attributes?.[`sentry.op`]===`http.client`?void 0:Nu(n.url),"http.request.header.referer":i?[i]:void 0}})}})),PS=`cause`,FS=5,IS=`LinkedErrors`,LS=F(((e={})=>{let t=e.limit||FS,n=e.key||PS;return{name:IS,preprocessEvent(e,r,i){Cd(ox,i.getOptions().stackParser,n,t,e,r)}}})),RS=/^HTML(\w*)Element$/;function zS(e){if(typeof window<`u`&&e===window)return`[Window]`;if(typeof document<`u`&&e===document)return`[Document]`;if(Hb(e)){let t=BS(e);if(RS.test(t))return`[HTMLElement: ${ry(e)}]`}}function BS(e){let t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:`null prototype`}function VS(){return HS()?(G&&f(()=>{console.error(`[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/`)}),!0):!1}function HS(){if(W.window===void 0)return!1;let e=W;if(e.nw||!(e.chrome||e.browser)?.runtime?.id)return!1;let t=Jy();return!(W===W.top&&/^(?:chrome-extension|moz-extension|ms-browser-extension|safari-web-extension):\/\//.test(t))}function US(e){return[pd(),ud(),lp(),fS(),rS(),Zf(),wS(),LS(),qd(),NS(),xS(),yS()]}function WS(e={}){let t=!e.skipBrowserExtensionCheck&&VS(),n=e.defaultIntegrations==null?US():e.defaultIntegrations,r=Wi({integrations:e.integrations,defaultIntegrations:n}),i={...e,enabled:!t&&e.enabled,stackParser:E(e.stackParser||Zx),integrations:r,transport:e.transport||Ex};return qe(zS),uu(Cx,i)}function GS(){}function KS(e){e()}function qS(e={}){let t=W.document,n=t?.head||t?.body;if(!n){G&&x.error(`[showReportDialog] Global document not defined`);return}let r=A(),i=M()?.getDsn();if(!i){G&&x.error(`[showReportDialog] DSN not configured`);return}let a={...e,user:{...r.getUser(),...e.user},eventId:e.eventId||Rc()},o=W.document.createElement(`script`);o.async=!0,o.crossOrigin=`anonymous`,o.src=Qc(i,a);let{onLoad:s,onClose:c}=a;if(s&&(o.onload=s),c){let e=t=>{if(t.data===`__sentry_reportdialog_closed__`)try{c()}finally{W.removeEventListener(`message`,e)}};W.addEventListener(`message`,e)}n.appendChild(o)}var JS=i;function YS(){return`ReportingObserver`in JS}var XS=`ReportingObserver`,ZS=new WeakMap,QS=F(((e={})=>{let t=e.types||[`crash`,`deprecation`,`intervention`];function n(e){if(ZS.has(M()))for(let t of e)cn(e=>{e.setExtra(`url`,t.url);let n=`ReportingObserver [${t.type}]`,r=`No details available`;if(t.body){let n={};for(let e in t.body)n[e]=t.body[e];if(e.setExtra(`body`,n),t.type===`crash`){let e=t.body;r=[e.crashId||``,e.reason||``].join(` `).trim()||r}else r=t.body.message||r}Dc(`${n}: ${r}`)})}return{name:XS,setupOnce(){YS()&&new JS.ReportingObserver(n,{buffered:!0,types:t}).observe()},setup(e){ZS.set(e,!0)}}})),$S=`HttpClient`,eC=F(((e={})=>{let t={failedRequestStatusCodes:[[500,599]],failedRequestTargets:[/.*/],...e};return{name:$S,setup(e){cC(e,t),lC(e,t)}}}));function tC(e,t,n,r,i){if(uC(e,n.status,n.url)){let e=fC(t,r),a,o,s,c,l=pC();if(l.requestHeaders!==!1&&(a=Tu(iC(e.headers),l.requestHeaders)),l.responseHeaders!==!1&&(o=Tu(iC(n.headers),l.responseHeaders)),l.cookies!==!1){let t=e.headers.get(`Cookie`)||void 0;t&&(s=ku(t,l.cookies,`cookie`));let r=n.headers.get(`Set-Cookie`)||void 0;r&&(c=ku(r,l.cookies,`set-cookie`))}Oc(dC({url:e.url,method:e.method,status:n.status,requestHeaders:a,responseHeaders:o,requestCookies:s,responseCookies:c,error:i,type:`fetch`}))}}function nC(e,t,n,r,i){if(uC(e,t.status,t.responseURL)){let e,a,o,s=pC();if(s.cookies!==!1)try{let e=t.getResponseHeader(`Set-Cookie`)||t.getResponseHeader(`set-cookie`)||void 0;e&&(a=ku(e,s.cookies,`set-cookie`))}catch{}if(s.responseHeaders!==!1)try{o=Tu(aC(t),s.responseHeaders)}catch{}s.requestHeaders!==!1&&(e=Tu(r,s.requestHeaders)),Oc(dC({url:t.responseURL,method:n,status:t.status,requestHeaders:e,responseHeaders:o,responseCookies:a,error:i,type:`xhr`}))}}
495function rC(e){if(e){let t=e[`Content-Length`]||e[`content-length`];if(t)return parseInt(t,10)}}function iC(e){let t={};return e.forEach((e,n)=>{t[n]=e}),t}function aC(e){let t=e.getAllResponseHeaders();return t?t.split(`\r
496`).reduce((e,t)=>{let[n,r]=t.split(`: `);return n&&r&&(e[n]=r),e},{}):{}}function oC(e,t){return e.some(e=>typeof e==`string`?t.includes(e):e.test(t))}function sC(e,t){return e.some(e=>typeof e==`number`?e===t:t>=e[0]&&t<=e[1])}function cC(e,t){Cp(n=>{if(M()!==e)return;let{response:r,args:i,error:a,virtualError:o}=n,[s,c]=i;r&&tC(t,s,r,c,a||o)})}function lC(e,t){`XMLHttpRequest`in i&&Pb(n=>{if(M()!==e)return;let{error:r,virtualError:i}=n,a=n.xhr,o=a[Nb];if(!o)return;let{method:s,request_headers:c}=o;try{nC(t,a,s,c,r||i)}catch(e){G&&x.warn(`Error while extracting response event form XHR response`,e)}})}function uC(e,t,n){return sC(e.failedRequestStatusCodes,t)&&oC(e.failedRequestTargets,n)&&!Gu(n,M())}function dC(e){let t=M(),n=t&&e.error&&e.error instanceof Error?e.error.stack:void 0,r=n&&t?t.getOptions().stackParser(n,0,1):void 0,i=`HTTP Client Error with status code: ${e.status}`,a={message:i,exception:{values:[{type:`Error`,value:i,stacktrace:r?{frames:r}:void 0}]},request:{url:e.url,method:e.method,headers:e.requestHeaders,cookies:e.requestCookies},contexts:{response:{status_code:e.status,headers:e.responseHeaders,cookies:e.responseCookies,body_size:rC(e.responseHeaders)}}};return mt(a,{type:`auto.http.client.${e.type}`,handled:!1}),a}function fC(e,t){return!t&&e instanceof Request||e instanceof Request&&e.bodyUsed?e:new Request(e,t)}function pC(){let e=M();if(!e)return{cookies:!1,requestHeaders:!1,responseHeaders:!1};let{cookies:t,httpHeaders:n}=e.getDataCollectionOptions();return{cookies:t,requestHeaders:n.request,responseHeaders:n.response}}var mC=i,hC=5,gC=`ContextLines`,_C=F(((e={})=>({name:gC,processEvent(t,n,r){return vC(t,e.frameContextLines??r?.getDataCollectionOptions().frameContextLines??hC)}})));function vC(e,t){let n=mC.document,r=mC.location&&Uu(mC.location.href);if(!n||!r)return e;let i=e.exception?.values;if(!i?.length)return e;let a=n.documentElement.innerHTML;if(!a)return e;let o=[`<!DOCTYPE html>`,`<html>`,...a.split(`
497`),`</html>`];return i.forEach(e=>{let n=e.stacktrace;n?.frames&&(n.frames=n.frames.map(e=>yC(e,o,r,t)))}),e}function yC(e,t,n,r){return e.filename!==n||!e.lineno||!t.length||_t(t,e,r),e}var bC=`GraphQLClient`,xC=(e=>({name:bC,setup(t){SC(t,e),CC(t,e)}}));function SC(e,t){e.on(`beforeOutgoingRequestSpan`,(n,r)=>{let i=N(n).attributes;if(i[`sentry.op`]!==`http.client`)return;let a=i[Zn],o=i[`http.request.method`]||i[`http.method`];if(!k(a)||!k(o))return;let{endpoints:s}=t,c=ot(a,s),l=EC(r);if(c&&l){let t=AC(l);if(t){I(e)||n.updateName(`${o} ${a} (${TC(t)})`);let{operationName:r,operationType:i}=wC(t);n.setAttribute(Cn,r),n.setAttribute(wn,i),OC(t)&&e.getDataCollectionOptions().graphQL.document===!0&&n.setAttribute(Sn,t.query),kC(t)&&(n.setAttribute(`graphql.persisted_query.hash.sha256`,t.extensions.persistedQuery.sha256Hash),n.setAttribute(`graphql.persisted_query.version`,t.extensions.persistedQuery.version))}}})}function CC(e,t){e.on(`beforeOutgoingRequestBreadcrumb`,(n,r)=>{let{category:i,type:a,data:o}=n;if(a===`http`&&(i===`fetch`||i===`xhr`)){let n=o?.url,{endpoints:i}=t,a=ot(n,i),s=EC(r);if(a&&o&&s){let t=AC(s);!o.graphql&&t&&(o[`graphql.operation`]=TC(t),OC(t)&&e.getDataCollectionOptions().graphQL.document===!0&&(o[Sn]=t.query),kC(t)&&(o[`graphql.persisted_query.hash.sha256`]=t.extensions.persistedQuery.sha256Hash,o[`graphql.persisted_query.version`]=t.extensions.persistedQuery.version))}}})}function wC(e){if(kC(e))return{operationName:e.operationName,operationType:void 0};if(OC(e)){let{query:t,operationName:n}=e,{operationName:r=n,operationType:i}=DC(t);return{operationName:r,operationType:i}}return{operationName:void 0,operationType:void 0}}function TC(e){if(kC(e))return`persisted ${e.operationName}`;if(OC(e)){let{operationName:t,operationType:n}=wC(e);return t?`${n} ${t}`:`${n}`}return`unknown`}function EC(e){let t=`xhr`in e,n;if(t){let t=e.xhr[Nb];n=t&&zb(t.body)[0]}else n=zb(Bb(e.input))[0];return n}function DC(e){let t=/^(?:\s*)(query|mutation|subscription)(?:\s*)(\w+)(?:\s*)[{(]/,n=/^(?:\s*)(query|mutation|subscription)(?:\s*)[{(]/,r=e.match(t);if(r)return{operationType:r[1],operationName:r[2]};let i=e.match(n);return i?{operationType:i[1],operationName:void 0}:{operationType:void 0,operationName:void 0}}
497function OC(e){return we(e)&&typeof e.query==`string`}function kC(e){return we(e)&&typeof e.operationName==`string`&&we(e.extensions)&&we(e.extensions.persistedQuery)&&typeof e.extensions.persistedQuery.sha256Hash==`string`&&typeof e.extensions.persistedQuery.version==`number`}function AC(e){try{let t=JSON.parse(e);return OC(t)||kC(t)?t:void 0}catch{return}}var jC=F(xC),MC=F((e={})=>{let t=[`script`];function n(r,i,a=0){if(!r)return;let o=`shadowRoot`in r&&r.shadowRoot?r.shadowRoot.children:r.children;for(let r of o){if(!(r instanceof HTMLElement))continue;let o=Hy(r,1)||void 0,s=r.tagName.toLowerCase();if(t.includes(s))continue;let c=e.onElement?.({element:r,componentName:o,tagName:s,depth:a})||{};if(c===`skip`)continue;if(c===`children`){n(r,i,a+1);continue}let{x:l,y:u,width:d,height:f}=r.getBoundingClientRect(),p={identifier:r.id||void 0,type:o||s,visible:!0,alpha:1,height:f,width:d,x:l,y:u,...c};p.children=[],n(r,p.children,a+1),i.push(p)}}return{name:`ViewHierarchy`,processEvent:(t,r)=>{if(t.type!==void 0||e.shouldAttach?.(t,r)===!1)return t;let i={rendering_system:`DOM`,positioning:`absolute`,windows:[]};n(e.rootElement?.()||W.document.body,i.windows);let a={filename:`view-hierarchy.json`,attachmentType:`event.view_hierarchy`,contentType:`application/json`,data:JSON.stringify(i)};return r.attachments=r.attachments||[],r.attachments.push(a),t}}}),K=i,NC=`sentryReplaySession`,PC=`replay_event`,FC=`Unable to send Replay`,IC=3e5,LC=9e5,RC=5e3,zC=5500,BC=6e4,VC=5e3,HC=3,UC=15e4,WC=5e3,GC=3e3,KC=300,qC=2e7,JC=4999,YC=5e4,XC=36e5,ZC=`sentry.segment.name.source`,QC=Object.defineProperty,$C=(e,t,n)=>t in e?QC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ew=(e,t,n)=>$C(e,typeof t==`symbol`?t:t+``,n),tw=(e=>(e[e.Document=0]=`Document`,e[e.DocumentType=1]=`DocumentType`,e[e.Element=2]=`Element`,e[e.Text=3]=`Text`,e[e.CDATA=4]=`CDATA`,e[e.Comment=5]=`Comment`,e))(tw||{});function nw(e){return e.nodeType===e.ELEMENT_NODE}function rw(e){return e?.host?.shadowRoot===e}function iw(e){return Object.prototype.toString.call(e)===`[object ShadowRoot]`}function aw(e){return e.includes(` background-clip: text;`)&&!e.includes(` -webkit-background-clip: text;`)&&(e=e.replace(/\sbackground-clip:\s*text;/g,` -webkit-background-clip: text; background-clip: text;`)),e}function ow(e){let{cssText:t}=e;if(t.split(`"`).length<3)return t;let n=[`@import`,`url(${JSON.stringify(e.href)})`];return e.layerName===``?n.push(`layer`):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(` `)+`;`}function sw(e){try{let t=e.rules||e.cssRules;return t?aw(Array.from(t,lw).join(``)):null}catch{return null}}function cw(e){let t=``;for(let n=0;n<e.style.length;n++){let r=e.style,i=r[n],a=r.getPropertyPriority(i);t+=`${i}:${r.getPropertyValue(i)}${a?` !important`:``};`}return`${e.selectorText} { ${t} }`}function lw(e){let t;if(dw(e))try{t=sw(e.styleSheet)||ow(e)}catch{}else if(fw(e)){let t=e.cssText,n=e.selectorText.includes(`:`),r=typeof e.style.all==`string`&&e.style.all;if(r&&(t=cw(e)),n&&(t=uw(t)),n||r)return t}return t||e.cssText}function uw(e){return e.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,`$1\\$2`)}function dw(e){return`styleSheet`in e}function fw(e){return`selectorText`in e}var pw=class{constructor(){ew(this,`idNodeMap`,new Map),ew(this,`nodeMetaMap`,new WeakMap)}getId(e){return e?this.getMeta(e)?.id??-1:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){let t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){let n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){let n=this.getNode(e);if(n){let e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function mw(){return new pw}function hw({maskInputOptions:e,tagName:t,type:n}){return t===`OPTION`&&(t=`SELECT`),!!(e[t.toLowerCase()]||n&&e[n]||n===`password`||t===`INPUT`&&!n&&e.text)}function gw({isMasked:e,element:t,value:n,maskInputFn:r}){let i=n||``;return e?(r&&(i=r(i,t)),`*`.repeat(i.length)):i}function _w(e){return e.toLowerCase()}function vw(e){return e.toUpperCase()}var yw=`__rrweb_original__`;function bw(e){let t=e.getContext(`2d`);if(!t)return!0;for(let n=0;n<e.width;n+=50)for(let r=0;r<e.height;r+=50){let i=t.getImageData,a=yw in i?i[yw]:i;
497if(new Uint32Array(a.call(t,n,r,Math.min(50,e.width-n),Math.min(50,e.height-r)).data.buffer).some(e=>e!==0))return!1}return!0}function xw(e){let t=e.type;return e.hasAttribute(`data-rr-is-password`)?`password`:t?_w(t):null}function Sw(e,t,n){return t===`INPUT`&&(n===`radio`||n===`checkbox`)?e.getAttribute(`value`)||``:e.value}function Cw(e,t){let n;try{n=new URL(e,t??window.location.href)}catch{return null}return n.pathname.match(/\.([0-9a-z]+)(?:$)/i)?.[1]??null}var ww={};function Tw(e){let t=ww[e];if(t)return t;let n=window.document,r=window[e];if(n&&typeof n.createElement==`function`)try{let t=n.createElement(`iframe`);t.hidden=!0,n.head.appendChild(t);let i=t.contentWindow;i&&i[e]&&(r=i[e]),n.head.removeChild(t)}catch{}return ww[e]=r.bind(window)}function Ew(...e){return Tw(`setTimeout`)(...e)}function Dw(...e){return Tw(`clearTimeout`)(...e)}function Ow(e){try{return e.contentDocument}catch{}}function kw(e){try{return e.contentWindow}catch{}}var Aw=1,jw=RegExp(`[^a-z0-9-_:]`),Mw=-2;function Nw(){return Aw++}function Pw(e){if(e instanceof HTMLFormElement)return`form`;let t=_w(e.tagName);return jw.test(t)?`div`:t}function Fw(e){let t=``;return t=e.indexOf(`//`)>-1?e.split(`/`).slice(0,3).join(`/`):e.split(`/`)[0],t=t.split(`?`)[0],t}var Iw,Lw,Rw=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,zw=/^(?:[a-z+]+:)?\/\//i,Bw=/^www\..*/i,Vw=/^(data:)([^,]*),(.*)/i;function Hw(e,t){if(!e||t.size===0)return e;try{let n=e.split(`;`),r=[];for(let e of n){if(e=e.trim(),!e)continue;let n=e.indexOf(`:`);if(n===-1){r.push(e);continue}let i=e.slice(0,n).trim();t.has(i)||r.push(e)}return r.join(`; `)+(r.length>0&&e.endsWith(`;`)?`;`:``)}catch(t){return console.warn(`Error filtering CSS properties:`,t),e}}function Uw(e,t){return(e||``).replace(Rw,(e,n,r,i,a,o)=>{let s=r||a||o,c=n||i||``;if(!s)return e;if(zw.test(s)||Bw.test(s)||Vw.test(s))return`url(${c}${s}${c})`;if(s[0]===`/`)return`url(${c}${Fw(t)+s}${c})`;let l=t.split(`/`),u=s.split(`/`);l.pop();for(let e of u)if(e===`.`)continue;else e===`..`?l.pop():l.push(e);return`url(${c}${l.join(`/`)}${c})`})}var Ww=/^[^ \t\n\r\u000c]+/,Gw=/^[, \t\n\r\u000c]+/;function Kw(e,t){if(t.trim()===``)return t;let n=0;function r(e){let r,i=e.exec(t.substring(n));return i?(r=i[0],n+=r.length,r):``}let i=[];for(;r(Gw),!(n>=t.length);){let a=r(Ww);if(a.slice(-1)===`,`)a=Jw(e,a.substring(0,a.length-1)),i.push(a);else{let r=``;a=Jw(e,a);let o=!1;for(;;){let e=t.charAt(n);if(e===``){i.push((a+r).trim());break}if(o)e===`)`&&(o=!1);else{if(e===`,`){n+=1,i.push((a+r).trim());break}e===`(`&&(o=!0)}r+=e,n+=1}}}return i.join(`, `)}var qw=new WeakMap;function Jw(e,t){return!t||t.trim()===``?t:Xw(e,t)}function Yw(e){return!!(e.tagName===`svg`||e.ownerSVGElement)}function Xw(e,t){let n=qw.get(e);if(n||(n=e.createElement(`a`),qw.set(e,n)),!t)t=``;else if(t.startsWith(`blob:`)||t.startsWith(`data:`))return t;return n.setAttribute(`href`,t),n.href}function Zw(e,t,n,r,i,a,o){if(!r)return r;if(n===`src`||n===`href`&&(t!==`use`||r[0]!==`#`)||n===`xlink:href`&&r[0]!==`#`||n===`background`&&(t===`table`||t===`td`||t===`th`))return Jw(e,r);if(n===`srcset`)return Kw(e,r);if(n===`style`){let t=Uw(r,Xw(e));return o&&o.size>0&&(t=Hw(t,o)),t}return t===`object`&&n===`data`?Jw(e,r):typeof a==`function`?a(n,r,i):r}function Qw(e,t,n){return(e===`video`||e===`audio`)&&t===`autoplay`}function $w(e,t,n,r){try{if(r&&e.matches(r))return!1;if(typeof t==`string`){if(e.classList.contains(t))return!0}else for(let n=e.classList.length;n--;){let r=e.classList[n];if(t.test(r))return!0}if(n)return e.matches(n)}catch{}return!1}function eT(e,t){for(let n=e.classList.length;n--;){let r=e.classList[n];if(t.test(r))return!0}return!1}function tT(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:tT(e.parentNode,t,n,r+1)}function nT(e,t){return n=>{let r=n;if(r===null)return!1;try{if(e){if(typeof e==`string`){if(r.matches(`.${e}`))return!0}else if(eT(r,e))return!0}return!!(t&&r.matches(t))}catch{return!1}}}function rT(e,t,n,r,i,a){try{let o=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(o===null)return!1;if(o.tagName===`INPUT`){let e=o.getAttribute(`autocomplete`);if([`current-password`,`new-password`,`cc-number`,`cc-exp`,`cc-exp-month`,`cc-exp-year`,`cc-csc`].includes(e))return!0}let s=-1,c=-1;if(a){if(c=tT(o,nT(r,i)),c<0)return!0;s=tT(o,nT(t,n),c>=0?c:1/0)}else{if(s=tT(o,nT(t,n)),s<0)return!1;c=tT(o,nT(r,i),s>=0?s:1/0)}return s>=0?c>=0?s<=c:!0:c>=0?!1:!!a}catch{}return!!a}function iT(e,t,n){let r=kw(e);if(!r)return;let i=!1,a;try{a=r.document.readyState}catch{return}if(a!==`complete`){let r=Ew(()=>{i||=(t(),!0)},n);e.addEventListener(`load`,()=>{Dw(r),i=!0,t()});return}let o=`about:blank`;if(r.location.href!==o||e.src===o||e.src===``)return Ew(t,0),e.addEventListener(`load`,t);e.addEventListener(`load`,t)}function aT(e,t,n){let r=!1,i;try{i=e.sheet}catch{i=null}if(i)return;let a=Ew(()=>{r||=(t(),!0)},n);e.addEventListener(`load`,()=>{Dw(a),r=!0,t()})}function oT(e,t){let{doc:n,mirror:r,blockClass:i,blockSelector:a,unblockSelector:o,maskAllText:s,maskAttributeFn:c,maskTextClass:l,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:f,inlineStylesheet:p,maskInputOptions:m={}
497,maskTextFn:h,maskInputFn:g,dataURLOptions:_={},inlineImages:v,recordCanvas:y,keepIframeSrcFn:b,newlyAddedElement:x=!1,ignoreCSSAttributes:S}=t,C=sT(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode===`CSS1Compat`?{type:tw.Document,childNodes:[]}:{type:tw.Document,childNodes:[],compatMode:e.compatMode};case e.DOCUMENT_TYPE_NODE:return{type:tw.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:C};case e.ELEMENT_NODE:return lT(e,{doc:n,blockClass:i,blockSelector:a,unblockSelector:o,inlineStylesheet:p,maskAttributeFn:c,maskInputOptions:m,maskInputFn:g,dataURLOptions:_,inlineImages:v,recordCanvas:y,keepIframeSrcFn:b,newlyAddedElement:x,rootId:C,maskTextClass:l,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:f,ignoreCSSAttributes:S});case e.TEXT_NODE:return cT(e,{doc:n,maskAllText:s,maskTextClass:l,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:f,maskTextFn:h,maskInputOptions:m,maskInputFn:g,rootId:C});case e.CDATA_SECTION_NODE:return{type:tw.CDATA,textContent:``,rootId:C};case e.COMMENT_NODE:return{type:tw.Comment,textContent:e.textContent||``,rootId:C};default:return!1}}function sT(e,t){if(!t.hasNode(e))return;let n=t.getId(e);return n===1?void 0:n}function cT(e,t){let{maskAllText:n,maskTextClass:r,unmaskTextClass:i,maskTextSelector:a,unmaskTextSelector:o,maskTextFn:s,maskInputOptions:c,maskInputFn:l,rootId:u}=t,d=e.parentNode&&e.parentNode.tagName,f=e.textContent,p=d===`STYLE`||void 0,m=d===`SCRIPT`||void 0,h=d===`TEXTAREA`||void 0;if(p&&f){try{e.nextSibling||e.previousSibling||e.parentNode.sheet?.cssRules&&(f=sw(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}f=Uw(f,Xw(t.doc))}m&&(f=`SCRIPT_PLACEHOLDER`);let g=rT(e,r,a,i,o,n);return!p&&!m&&!h&&f&&g&&(f=s?s(f,e.parentElement):f.replace(/[\S]/g,`*`)),h&&f&&(c.textarea||g)&&(f=l?l(f,e.parentNode):f.replace(/[\S]/g,`*`)),d===`OPTION`&&f&&(f=gw({isMasked:rT(e,r,a,i,o,hw({type:null,tagName:d,maskInputOptions:c})),element:e,value:f,maskInputFn:l})),{type:tw.Text,textContent:f||``,isStyle:p,rootId:u}}function lT(e,t){let{doc:n,blockClass:r,blockSelector:i,unblockSelector:a,inlineStylesheet:o,maskInputOptions:s={},maskAttributeFn:c,maskInputFn:l,dataURLOptions:u={},inlineImages:d,recordCanvas:f,keepIframeSrcFn:p,newlyAddedElement:m=!1,rootId:h,maskTextClass:g,unmaskTextClass:_,maskTextSelector:v,unmaskTextSelector:y,ignoreCSSAttributes:b}=t,x=$w(e,r,i,a),S=Pw(e),C={},w=e.attributes.length;for(let t=0;t<w;t++){let r=e.attributes[t];r.name&&!Qw(S,r.name,r.value)&&(C[r.name]=Zw(n,S,_w(r.name),r.value,e,c,b))}if(S===`link`&&o){let t=Array.from(n.styleSheets).find(t=>t.href===e.href),r=null;t&&(r=sw(t)),r&&(C.rel=null,C.href=null,C.crossorigin=null,C._cssText=Uw(r,t.href))}if(S===`style`&&e.sheet&&!(e.innerText||e.textContent||``).trim().length){let t=sw(e.sheet);t&&(C._cssText=Uw(t,Xw(n)))}if(S===`input`||S===`textarea`||S===`select`||S===`option`){let t=e,n=xw(t),r=Sw(t,vw(S),n),i=t.checked;if(n!==`submit`&&n!==`button`&&r){let e=rT(t,g,v,_,y,hw({type:n,tagName:vw(S),maskInputOptions:s}));C.value=gw({isMasked:e,element:t,value:r,maskInputFn:l})}i&&(C.checked=i)}if(S===`option`&&(e.selected&&!s.select?C.selected=!0:delete C.selected),S===`canvas`&&f){if(e.__context===`2d`)bw(e)||(C.rr_dataURL=e.toDataURL(u.type,u.quality));else if(!(`__context`in e)){let t=e.toDataURL(u.type,u.quality),r=n.createElement(`canvas`);r.width=e.width,r.height=e.height,t!==r.toDataURL(u.type,u.quality)&&(C.rr_dataURL=t)}}if(S===`img`&&d){Iw||(Iw=n.createElement(`canvas`),Lw=Iw.getContext(`2d`));let t=e,r=t.currentSrc||t.getAttribute(`src`)||`<unknown-src>`,i=t.crossOrigin,a=()=>{t.removeEventListener(`load`,a);try{Iw.width=t.naturalWidth,Iw.height=t.naturalHeight,Lw.drawImage(t,0,0),C.rr_dataURL=Iw.toDataURL(u.type,u.quality)}catch(e){if(t.crossOrigin!==`anonymous`){t.crossOrigin=`anonymous`,t.complete&&t.naturalWidth!==0?a():t.addEventListener(`load`,a);return}console.warn(`Cannot inline img src=${r}! Error: ${e}`)}t.crossOrigin===`anonymous`&&(i?C.crossOrigin=i:t.removeAttribute(`crossorigin`))};
497t.complete&&t.naturalWidth!==0?a():t.addEventListener(`load`,a)}if((S===`audio`||S===`video`)&&(C.rr_mediaState=e.paused?`paused`:`played`,C.rr_mediaCurrentTime=e.currentTime),m||(e.scrollLeft&&(C.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(C.rr_scrollTop=e.scrollTop)),x){let{width:t,height:n}=e.getBoundingClientRect();C={class:C.class,rr_width:`${t}px`,rr_height:`${n}px`}}S===`iframe`&&!p(C.src)&&(!x&&!Ow(e)&&(C.rr_src=C.src),delete C.src);let T;try{customElements.get(S)&&(T=!0)}catch{}return{type:tw.Element,tagName:S,attributes:C,childNodes:[],isSVG:Yw(e)||void 0,needBlock:x,rootId:h,isCustom:T}}function q(e){return e==null?``:e.toLowerCase()}function uT(e,t){return!!(t.comment&&e.type===tw.Comment||e.type===tw.Element&&(t.script&&(e.tagName===`script`||e.tagName===`link`&&(e.attributes.rel===`preload`||e.attributes.rel===`modulepreload`)||e.tagName===`link`&&e.attributes.rel===`prefetch`&&typeof e.attributes.href==`string`&&Cw(e.attributes.href)===`js`)||t.headFavicon&&(e.tagName===`link`&&e.attributes.rel===`shortcut icon`||e.tagName===`meta`&&(q(e.attributes.name).match(/^msapplication-tile(image|color)$/)||q(e.attributes.name)===`application-name`||q(e.attributes.rel)===`icon`||q(e.attributes.rel)===`apple-touch-icon`||q(e.attributes.rel)===`shortcut icon`))||e.tagName===`meta`&&(t.headMetaDescKeywords&&q(e.attributes.name).match(/^description|keywords$/)||t.headMetaSocial&&(q(e.attributes.property).match(/^(og|twitter|fb):/)||q(e.attributes.name).match(/^(og|twitter):/)||q(e.attributes.name)===`pinterest`)||t.headMetaRobots&&(q(e.attributes.name)===`robots`||q(e.attributes.name)===`googlebot`||q(e.attributes.name)===`bingbot`)||t.headMetaHttpEquiv&&e.attributes[`http-equiv`]!==void 0||t.headMetaAuthorship&&(q(e.attributes.name)===`author`||q(e.attributes.name)===`generator`||q(e.attributes.name)===`framework`||q(e.attributes.name)===`publisher`||q(e.attributes.name)===`progid`||q(e.attributes.property).match(/^article:/)||q(e.attributes.property).match(/^product:/))||t.headMetaVerification&&(q(e.attributes.name)===`google-site-verification`||q(e.attributes.name)===`yandex-verification`||q(e.attributes.name)===`csrf-token`||q(e.attributes.name)===`p:domain_verify`||q(e.attributes.name)===`verify-v1`||q(e.attributes.name)===`verification`||q(e.attributes.name)===`shopify-checkout-api-token`))))}function dT(e,t){let{doc:n,mirror:r,blockClass:i,blockSelector:a,unblockSelector:o,maskAllText:s,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:f=!1,inlineStylesheet:p=!0,maskInputOptions:m={},maskAttributeFn:h,maskTextFn:g,maskInputFn:_,slimDOMOptions:v,dataURLOptions:y={},inlineImages:b=!1,recordCanvas:x=!1,onSerialize:S,onIframeLoad:C,iframeLoadTimeout:w=5e3,onBlockedImageLoad:T,onStylesheetLoad:E,stylesheetLoadTimeout:ee=5e3,keepIframeSrcFn:te=()=>!1,newlyAddedElement:ne=!1,ignoreCSSAttributes:D}=t,{preserveWhiteSpace:re=!0}=t,ie=oT(e,{doc:n,mirror:r,blockClass:i,blockSelector:a,maskAllText:s,unblockSelector:o,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,inlineStylesheet:p,maskInputOptions:m,maskAttributeFn:h,maskTextFn:g,maskInputFn:_,dataURLOptions:y,inlineImages:b,recordCanvas:x,keepIframeSrcFn:te,newlyAddedElement:ne,ignoreCSSAttributes:D});if(!ie)return console.warn(e,`not serialized`),null;let ae;ae=r.hasNode(e)?r.getId(e):uT(ie,v)||!re&&ie.type===tw.Text&&!ie.isStyle&&!ie.textContent.trim().length?Mw:Nw();let O=Object.assign(ie,{id:ae});if(r.add(e,O),ae===Mw)return null;S&&S(e);let oe=!f;if(O.type===tw.Element){oe&&=!O.needBlock;let t=e.shadowRoot;t&&iw(t)&&(O.isShadowHost=!0)}if((O.type===tw.Document||O.type===tw.Element)&&oe){v.headWhitespace&&O.type===tw.Element&&O.tagName===`head`&&(re=!1);let t={doc:n,mirror:r,blockClass:i,blockSelector:a,maskAllText:s,unblockSelector:o,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:f,inlineStylesheet:p,maskInputOptions:m,maskAttributeFn:h,maskTextFn:g,maskInputFn:_,slimDOMOptions:v,dataURLOptions:y,inlineImages:b,recordCanvas:x,preserveWhiteSpace:re,onSerialize:S,onIframeLoad:C,iframeLoadTimeout:w,onBlockedImageLoad:T,onStylesheetLoad:E,stylesheetLoadTimeout:ee,keepIframeSrcFn:te,ignoreCSSAttributes:D},ne=e.childNodes?Array.from(e.childNodes):[];for(let e of ne){let n=dT(e,t);n&&O.childNodes.push(n)}if(nw(e)&&e.shadowRoot)for(let n of Array.from(e.shadowRoot.childNodes)){let r=dT(n,t);r&&(iw(e.shadowRoot)&&(r.isShadow=!0),O.childNodes.push(r))}}if(e.parentNode&&rw(e.parentNode)&&iw(e.parentNode)&&(O.isShadow=!0),O.type===tw.Element&&O.tagName===`iframe`&&!O.needBlock&&iT(e,()=>{let t=Ow(e);if(t&&C){let n=dT(t,{doc:t,mirror:r,blockClass:i,blockSelector:a,unblockSelector:o,maskAllText:s,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:p,maskInputOptions:m,maskAttributeFn:h,maskTextFn:g,maskInputFn:_,slimDOMOptions:v,dataURLOptions:y,inlineImages:b,recordCanvas:x,preserveWhiteSpace:re,onSerialize:S,onIframeLoad:C,iframeLoadTimeout:w,onStylesheetLoad:E,stylesheetLoadTimeout:ee,keepIframeSrcFn:te,ignoreCSSAttributes:D});n&&C(e,n)}},w),O.type===tw.Element&&O.tagName===`img`&&!e.complete&&O.needBlock){let t=e,n=()=>
497{if(t.isConnected&&!t.complete&&T)try{let e=t.getBoundingClientRect();e.width>0&&e.height>0&&T(t,O,e)}catch{}t.removeEventListener(`load`,n)};t.isConnected&&t.addEventListener(`load`,n)}return O.type===tw.Element&&O.tagName===`link`&&typeof O.attributes.rel==`string`&&(O.attributes.rel===`stylesheet`||O.attributes.rel===`preload`&&typeof O.attributes.href==`string`&&Cw(O.attributes.href)===`css`)&&aT(e,()=>{if(E){let t=dT(e,{doc:n,mirror:r,blockClass:i,blockSelector:a,unblockSelector:o,maskAllText:s,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:p,maskInputOptions:m,maskAttributeFn:h,maskTextFn:g,maskInputFn:_,slimDOMOptions:v,dataURLOptions:y,inlineImages:b,recordCanvas:x,preserveWhiteSpace:re,onSerialize:S,onIframeLoad:C,iframeLoadTimeout:w,onStylesheetLoad:E,stylesheetLoadTimeout:ee,keepIframeSrcFn:te,ignoreCSSAttributes:D});t&&E(e,t)}},ee),O.type===tw.Element&&delete O.needBlock,O}function fT(e,t){let{mirror:n=new pw,blockClass:r=`rr-block`,blockSelector:i=null,unblockSelector:a=null,maskAllText:o=!1,maskTextClass:s=`rr-mask`,unmaskTextClass:c=null,maskTextSelector:l=null,unmaskTextSelector:u=null,inlineStylesheet:d=!0,inlineImages:f=!1,recordCanvas:p=!1,maskAllInputs:m=!1,maskAttributeFn:h,maskTextFn:g,maskInputFn:_,slimDOM:v=!1,dataURLOptions:y,preserveWhiteSpace:b,onSerialize:x,onIframeLoad:S,iframeLoadTimeout:C,onBlockedImageLoad:w,onStylesheetLoad:T,stylesheetLoadTimeout:E,keepIframeSrcFn:ee=()=>!1,ignoreCSSAttributes:te=new Set([])}=t||{};return dT(e,{doc:e,mirror:n,blockClass:r,blockSelector:i,unblockSelector:a,maskAllText:o,maskTextClass:s,unmaskTextClass:c,maskTextSelector:l,unmaskTextSelector:u,skipChild:!1,inlineStylesheet:d,maskInputOptions:m===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:m===!1?{}:m,maskAttributeFn:h,maskTextFn:g,maskInputFn:_,slimDOMOptions:v===!0||v===`all`?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:v===`all`,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:v===!1?{}:v,dataURLOptions:y,inlineImages:f,recordCanvas:p,preserveWhiteSpace:b,onSerialize:x,onIframeLoad:S,iframeLoadTimeout:C,onBlockedImageLoad:w,onStylesheetLoad:T,stylesheetLoadTimeout:E,keepIframeSrcFn:ee,newlyAddedElement:!1,ignoreCSSAttributes:te})}function pT(e,t,n=document){let r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}var mT=`Please stop import mirror directly. Instead of that,\r
498now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
499or you can use record.mirror to access the mirror instance during recording.`,hT={map:{},getId(){return console.error(mT),-1},getNode(){return console.error(mT),null},removeNodeFromMap(){console.error(mT)},has(){return console.error(mT),!1},reset(){console.error(mT)}};typeof window<`u`&&window.Proxy&&window.Reflect&&(hT=new Proxy(hT,{get(e,t,n){return t===`map`&&console.error(mT),Reflect.get(e,t,n)}}));function gT(e,t,n={}){let r=null,i=0;return function(...a){let o=Date.now();!i&&n.leading===!1&&(i=o);let s=t-(o-i),c=this;s<=0||s>t?(r&&=(HT(r),null),i=o,e.apply(c,a)):!r&&n.trailing!==!1&&(r=VT(()=>{i=n.leading===!1?0:Date.now(),r=null,e.apply(c,a)},s))}}function _T(e,t,n,r,i=window){let a=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,r?n:{set(e){VT(()=>{n.set.call(this,e)},0),a&&a.set&&a.set.call(this,e)}}),()=>_T(e,t,a||{},!0)}function vT(e,t,n){try{if(!(t in e))return()=>{};let r=e[t],i=n(r);return typeof i==`function`&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,()=>{e[t]=r}}catch{return()=>{}}}var yT=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(yT=()=>new Date().getTime());function bT(e){let t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:e.pageXOffset===void 0?t?.documentElement.scrollLeft||t?.body?.parentElement?.scrollLeft||t?.body?.scrollLeft||0:e.pageXOffset,top:t.scrollingElement?t.scrollingElement.scrollTop:e.pageYOffset===void 0?t?.documentElement.scrollTop||t?.body?.parentElement?.scrollTop||t?.body?.scrollTop||0:e.pageYOffset}}function xT(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function ST(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function CT(e){if(!e)return null;
499try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function wT(e,t,n,r,i){if(!e)return!1;let a=CT(e);if(!a)return!1;let o=nT(t,n);if(!i){let e=r&&a.matches(r);return o(a)&&!e}let s=tT(a,o),c=-1;return s<0?!1:(r&&(c=tT(a,nT(null,r))),s>-1&&c<0||s<c)}function TT(e,t){return t.getId(e)!==-1}function ET(e,t){return t.getId(e)===Mw}function DT(e,t){if(rw(e))return!1;let n=t.getId(e);return t.has(n)?e.parentNode&&e.parentNode.nodeType===e.DOCUMENT_NODE?!1:!e.parentNode||DT(e.parentNode,t):!0}function OT(e){return!!e.changedTouches}function kT(e=window){`NodeList`in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),`DOMTokenList`in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...e)=>{let t=e[0];if(!(0 in e))throw TypeError(`1 argument is required`);do if(this===t)return!0;while(t&&=t.parentNode);return!1})}function AT(e,t){return!!(e.nodeName===`IFRAME`&&t.getMeta(e))}function jT(e,t){return!!(e.nodeName===`LINK`&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute(`rel`)===`stylesheet`&&t.getMeta(e))}function MT(e){return!!e?.shadowRoot}var NT=class{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){return this.styleIDMap.get(e)??-1}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e);let n;return n=t===void 0?this.id++:t,this.styleIDMap.set(e,n),this.idStyleMap.set(n,e),n}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}};function PT(e){let t=null;return e.getRootNode?.()?.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function FT(e){let t=e,n;for(;n=PT(t);)t=n;return t}function IT(e){let t=e.ownerDocument;if(!t)return!1;let n=FT(e);return t.contains(n)}function LT(e){let t=e.ownerDocument;return t?t.contains(e)||IT(e):!1}var RT={};function zT(e){let t=RT[e];if(t)return t;let n=window.document,r=window[e];if(n&&typeof n.createElement==`function`)try{let t=n.createElement(`iframe`);t.hidden=!0,n.head.appendChild(t);let i=t.contentWindow;i&&i[e]&&(r=i[e]),n.head.removeChild(t)}catch{}return RT[e]=r.bind(window)}function BT(...e){return zT(`requestAnimationFrame`)(...e)}function VT(...e){return zT(`setTimeout`)(...e)}function HT(...e){return zT(`clearTimeout`)(...e)}var J=(e=>(e[e.DomContentLoaded=0]=`DomContentLoaded`,e[e.Load=1]=`Load`,e[e.FullSnapshot=2]=`FullSnapshot`,e[e.IncrementalSnapshot=3]=`IncrementalSnapshot`,e[e.Meta=4]=`Meta`,e[e.Custom=5]=`Custom`,e[e.Plugin=6]=`Plugin`,e))(J||{}),Y=(e=>(e[e.Mutation=0]=`Mutation`,e[e.MouseMove=1]=`MouseMove`,e[e.MouseInteraction=2]=`MouseInteraction`,e[e.Scroll=3]=`Scroll`,e[e.ViewportResize=4]=`ViewportResize`,e[e.Input=5]=`Input`,e[e.TouchMove=6]=`TouchMove`,e[e.MediaInteraction=7]=`MediaInteraction`,e[e.StyleSheetRule=8]=`StyleSheetRule`,e[e.CanvasMutation=9]=`CanvasMutation`,e[e.Font=10]=`Font`,e[e.Log=11]=`Log`,e[e.Drag=12]=`Drag`,e[e.StyleDeclaration=13]=`StyleDeclaration`,e[e.Selection=14]=`Selection`,e[e.AdoptedStyleSheet=15]=`AdoptedStyleSheet`,e[e.CustomElement=16]=`CustomElement`,e))(Y||{}),UT=(e=>(e[e.MouseUp=0]=`MouseUp`,e[e.MouseDown=1]=`MouseDown`,e[e.Click=2]=`Click`,e[e.ContextMenu=3]=`ContextMenu`,e[e.DblClick=4]=`DblClick`,e[e.Focus=5]=`Focus`,e[e.Blur=6]=`Blur`,e[e.TouchStart=7]=`TouchStart`,e[e.TouchMove_Departed=8]=`TouchMove_Departed`,e[e.TouchEnd=9]=`TouchEnd`,e[e.TouchCancel=10]=`TouchCancel`,e))(UT||{}),WT=(e=>(e[e.Mouse=0]=`Mouse`,e[e.Pen=1]=`Pen`,e[e.Touch=2]=`Touch`,e))(WT||{}),GT=(e=>(e[e.Play=0]=`Play`,e[e.Pause=1]=`Pause`,e[e.Seeked=2]=`Seeked`,e[e.VolumeChange=3]=`VolumeChange`,e[e.RateChange=4]=`RateChange`,e))(GT||{}),KT;function qT(e){KT=e}function JT(){KT=void 0}for(var X=e=>KT?((...t)=>{try{return e(...t)}catch(e){if(KT&&KT(e)===!0)return()=>{};throw e}}):e,YT=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,XT=typeof Uint8Array>`u`?[]:new Uint8Array(256),ZT=0;ZT<YT.length;ZT++)XT[YT.charCodeAt(ZT)]=ZT;var QT=class{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}};function $T(e){try{return e.contentDocument}catch{}}function eE(e){try{return e.contentWindow}catch{}}var tE=class{constructor(e){this.doc=e,this.unattachedDoc=null}parse(e){return this.parseWithConstructableStylesheet(e)||this.parseWithDetachedElement(e)}parseWithConstructableStylesheet(e){if(typeof CSSStyleSheet>`u`||typeof CSSStyleSheet.prototype.replaceSync!=`function`)return null;try{let t=new CSSStyleSheet;t.replaceSync(`x { ${e} }`);let n=t.cssRules[0];
499return!n||n.type!==CSSRule.STYLE_RULE?null:n.style}catch{return null}}parseWithDetachedElement(e){let t=this.getUnattachedDoc().createElement(`span`);return t.setAttribute(`style`,e),t.style}getUnattachedDoc(){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}return this.unattachedDoc}};function nE(e){return`__ln`in e}var rE=class{constructor(){this.length=0,this.head=null,this.tail=null}get(e){if(e>=this.length)throw Error(`Position outside of list range`);let t=this.head;for(let n=0;n<e;n++)t=t?.next||null;return t}addNode(e){let t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&nE(e.previousSibling)){let n=e.previousSibling.__ln.next;t.next=n,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,n&&(n.previous=t)}else if(e.nextSibling&&nE(e.nextSibling)&&e.nextSibling.__ln.previous){let n=e.nextSibling.__ln.previous;t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;t.next===null&&(this.tail=t),this.length++}removeNode(e){let t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}},iE=(e,t)=>`${e}@${t}`,aE=class{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;let e=[],t=new Set,n=new rE,r=e=>{let t=e,n=Mw;for(;n===Mw;)t&&=t.nextSibling,n=t&&this.mirror.getId(t);return n},i=i=>{if(!i.parentNode||!LT(i))return;let a=rw(i.parentNode)?this.mirror.getId(PT(i)):this.mirror.getId(i.parentNode),o=r(i);if(a===-1||o===-1)return n.addNode(i);let s=dT(i,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{AT(e,this.mirror)&&!wT(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(e),jT(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),MT(i)&&this.shadowDomManager.addShadowRoot(i.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{if(wT(e,this.blockClass,this.blockSelector,this.unblockSelector,!1))return;this.iframeManager.attachIframe(e,t);let n=eE(e);n&&this.canvasManager.addWindow(n),this.shadowDomManager.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)},onBlockedImageLoad:(e,t,{width:n,height:r})=>{this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:{style:{width:`${n}px`,height:`${r}px`}}}]})},ignoreCSSAttributes:this.ignoreCSSAttributes});s&&(e.push({parentId:a,nextId:o,node:s}),t.add(s.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let e of this.movedSet)(!sE(this.removes,e,this.mirror)||this.movedSet.has(e.parentNode))&&i(e);for(let e of this.addedSet)!lE(this.droppedSet,e)&&!sE(this.removes,e,this.mirror)||lE(this.movedSet,e)?i(e):this.droppedSet.add(e);let a=null;for(;n.length;){let e=null;if(a){let t=this.mirror.getId(a.value.parentNode),n=r(a.value);t!==-1&&n!==-1&&(e=a)}if(!e){let t=n.tail;for(;t;){let n=t;if(t=t.previous,n){let t=this.mirror.getId(n.value.parentNode);if(r(n.value)===-1)continue;if(t!==-1){e=n;break}{let t=n.value;if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let r=t.parentNode.host;if(this.mirror.getId(r)!==-1){e=n;break}}}}}}if(!e){for(;n.head;)n.removeNode(n.head.value);break}a=e.previous,n.removeNode(e.value),i(e.value)}let o={texts:this.texts.map(e=>
499({id:this.mirror.getId(e.node),value:e.value})).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),attributes:this.attributes.map(e=>{let{attributes:t}=e;if(typeof t.style==`string`){let n=JSON.stringify(e.styleDiff),r=JSON.stringify(e._unchangedStyles);n.length<t.style.length&&(n+r).split(`var(`).length===t.style.split(`var(`).length&&(t.style=e.styleDiff)}return{id:this.mirror.getId(e.node),attributes:t}}).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),removes:this.removes,adds:e};(o.texts.length||o.attributes.length||o.removes.length||o.adds.length)&&(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(o))},this.processMutation=e=>{if(!ET(e.target,this.mirror))switch(e.type){case`characterData`:{let t=e.target.textContent;!wT(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&t!==e.oldValue&&this.texts.push({value:rT(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t,CT(e.target)):t.replace(/[\S]/g,`*`):t,node:e.target});break}case`attributes`:{let t=e.target,n=e.attributeName,r=e.target.getAttribute(n);if(n===`value`){let n=xw(t),i=t.tagName;r=Sw(t,i,n);let a=hw({maskInputOptions:this.maskInputOptions,tagName:i,type:n});r=gw({isMasked:rT(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,a),element:t,value:r,maskInputFn:this.maskInputFn})}if(wT(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||r===e.oldValue)return;let i=this.attributeMap.get(e.target);if(t.tagName===`IFRAME`&&n===`src`&&!this.keepIframeSrcFn(r)){if(!$T(t))n=`rr_src`;else return}if(i||(i={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}}
499,this.attributes.push(i),this.attributeMap.set(e.target,i)),n===`type`&&t.tagName===`INPUT`&&(e.oldValue||``).toLowerCase()===`password`&&t.setAttribute(`data-rr-is-password`,`true`),!Qw(t.tagName,n)&&(i.attributes[n]=Zw(this.doc,_w(t.tagName),_w(n),r,t,this.maskAttributeFn),n===`style`)){let n=e.oldValue?this.styleDeclarationParser.parse(e.oldValue):null;for(let e of Array.from(t.style)){let r=t.style.getPropertyValue(e),a=t.style.getPropertyPriority(e);r!==(n?.getPropertyValue(e)||``)||a!==(n?.getPropertyPriority(e)||``)?a===``?i.styleDiff[e]=r:i.styleDiff[e]=[r,a]:i._unchangedStyles[e]=[r,a]}if(n)for(let e of Array.from(n))t.style.getPropertyValue(e)===``&&(i.styleDiff[e]=!1)}break}case`childList`:if(wT(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;e.addedNodes.forEach(t=>this.genAdds(t,e.target)),e.removedNodes.forEach(t=>{let n=this.mirror.getId(t),r=rw(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);wT(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||ET(t,this.mirror)||!TT(t,this.mirror)||(this.addedSet.has(t)?(oE(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&n===-1||DT(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[iE(n,r)]?oE(this.movedSet,t):this.removes.push({parentId:r,id:n,isShadow:rw(e.target)&&iw(e.target)?!0:void 0})),this.mapRemoves.push(t))})}},this.genAdds=(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!(this.addedSet.has(e)||this.movedSet.has(e))){if(this.mirror.hasNode(e)){if(ET(e,this.mirror))return;this.movedSet.add(e);let n=null;t&&this.mirror.hasNode(t)&&(n=this.mirror.getId(t)),n&&n!==-1&&(this.movedMap[iE(this.mirror.getId(e),n)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);wT(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(e.childNodes&&e.childNodes.forEach(e=>this.genAdds(e)),MT(e)&&e.shadowRoot.childNodes.forEach(t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)}))}}}init(e){`mutationCb.blockClass.blockSelector.unblockSelector.maskAllText.maskTextClass.unmaskTextClass.maskTextSelector.unmaskTextSelector.inlineStylesheet.maskInputOptions.maskAttributeFn.maskTextFn.maskInputFn.keepIframeSrcFn.recordCanvas.inlineImages.slimDOMOptions.dataURLOptions.doc.mirror.iframeManager.stylesheetManager.shadowDomManager.canvasManager.processedNodeManager.ignoreCSSAttributes`.split(`.`).forEach(t=>{this[t]=e[t]}),this.styleDeclarationParser=new tE(this.doc)}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}};function oE(e,t){e.delete(t),t.childNodes?.forEach(t=>oE(e,t))}function sE(e,t,n){return e.length!==0&&cE(e,t,n)}function cE(e,t,n){let r=t.parentNode;for(;r;){let t=n.getId(r);if(e.some(e=>e.id===t))return!0;r=r.parentNode}return!1}function lE(e,t){return e.size!==0&&uE(e,t)}function uE(e,t){let{parentNode:n}=t;return n?e.has(n)?!0:uE(e,n):!1}var dE=[];function fE(e){try{if(`composedPath`in e){let t=e.composedPath();if(t.length)return t[0]}else if(`path`in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function pE(e,t){let n=new aE;dE.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver,i=window?.Zone?.__symbol__?.(`MutationObserver`);i&&window[i]&&(r=window[i]);let a=new r(X(t=>{e.onMutation&&e.onMutation(t)===!1||n.processMutations.bind(n)(t)}));return a.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),a}function mE({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(t.mousemove===!1)return()=>{};let i=typeof t.mousemove==`number`?t.mousemove:50,a=typeof t.mousemoveCallback==`number`?t.mousemoveCallback:500,o=[],s,c=gT(X(t=>{let n=Date.now()-s;e(o.map(e=>(e.timeOffset-=n,e)),t),o=[],s=null}),a),l=X(gT(X(e=>{let t=fE(e),{clientX:n,clientY:i}=OT(e)?e.changedTouches[0]:e;s||=yT(),o.push({x:n,y:i,id:r.getId(t),timeOffset:yT()-s}),c(typeof DragEvent<`u`&&e instanceof DragEvent?Y.Drag:e instanceof MouseEvent?Y.MouseMove:Y.TouchMove)}),i,{trailing:!1})),u=[pT(`mousemove`,l,n),pT(`touchmove`,l,n),pT(`drag`,l,n)];return X(()=>
499{u.forEach(e=>e())})}function hE({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:a,sampling:o}){if(o.mouseInteraction===!1)return()=>{};let s=o.mouseInteraction===!0||o.mouseInteraction===void 0?{}:o.mouseInteraction,c=[],l=null,u=t=>o=>{let s=fE(o);if(wT(s,r,i,a,!0))return;let c=null,u=t;if(`pointerType`in o){switch(o.pointerType){case`mouse`:c=WT.Mouse;break;case`touch`:c=WT.Touch;break;case`pen`:c=WT.Pen}c===WT.Touch?UT[t]===UT.MouseDown?u=`TouchStart`:UT[t]===UT.MouseUp&&(u=`TouchEnd`):WT.Pen}else OT(o)&&(c=WT.Touch);c===null?UT[t]===UT.Click&&(c=l,l=null):(l=c,(u.startsWith(`Touch`)&&c===WT.Touch||u.startsWith(`Mouse`)&&c===WT.Mouse)&&(c=null));let d=OT(o)?o.changedTouches[0]:o;if(!d)return;let f=n.getId(s),{clientX:p,clientY:m}=d;X(e)({type:UT[u],id:f,x:p,y:m,...c!==null&&{pointerType:c}})};return Object.keys(UT).filter(e=>Number.isNaN(Number(e))&&!e.endsWith(`_Departed`)&&s[e]!==!1).forEach(e=>{let n=_w(e),r=u(e);if(window.PointerEvent)switch(UT[e]){case UT.MouseDown:case UT.MouseUp:n=n.replace(`mouse`,`pointer`);break;case UT.TouchStart:case UT.TouchEnd:return}c.push(pT(n,r,t))}),X(()=>{c.forEach(e=>e())})}function gE({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:a,sampling:o}){return pT(`scroll`,X(gT(X(o=>{let s=fE(o);if(!s||wT(s,r,i,a,!0))return;let c=n.getId(s);if(s===t&&t.defaultView){let n=bT(t.defaultView);e({id:c,x:n.left,y:n.top})}else e({id:c,x:s.scrollLeft,y:s.scrollTop})}),o.scroll||100)),t)}function _E({viewportResizeCb:e},{win:t}){let n=-1,r=-1;return pT(`resize`,X(gT(X(()=>{let t=xT(),i=ST();(n!==t||r!==i)&&(e({width:Number(i),height:Number(t)}),n=t,r=i)}),200)),t)}var vE=[`INPUT`,`TEXTAREA`,`SELECT`],yE=new WeakMap;function bE({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:a,ignoreClass:o,ignoreSelector:s,maskInputOptions:c,maskInputFn:l,sampling:u,userTriggeredOnInput:d,maskTextClass:f,unmaskTextClass:p,maskTextSelector:m,unmaskTextSelector:h}){function g(e){let n=fE(e),u=e.isTrusted,g=n&&vw(n.tagName);if(g===`OPTION`&&(n=n.parentElement),!n||!g||vE.indexOf(g)<0||wT(n,r,i,a,!0))return;let v=n;if(v.classList.contains(o)||s&&v.matches(s))return;let y=xw(n),b=Sw(v,g,y),x=!1,S=hw({maskInputOptions:c,tagName:g,type:y}),C=rT(n,f,m,p,h,S);(y===`radio`||y===`checkbox`)&&(x=n.checked),b=gw({isMasked:C,element:n,value:b,maskInputFn:l}),_(n,d?{text:b,isChecked:x,userTriggered:u}:{text:b,isChecked:x});let w=n.name;y===`radio`&&w&&x&&t.querySelectorAll(`input[type="radio"][name="${w}"]`).forEach(e=>{if(e!==n){let t=gw({isMasked:C,element:e,value:Sw(e,g,y),maskInputFn:l});_(e,d?{text:t,isChecked:!x,userTriggered:!1}:{text:t,isChecked:!x})}})}function _(t,r){let i=yE.get(t);if(!i||i.text!==r.text||i.isChecked!==r.isChecked){yE.set(t,r);let i=n.getId(t);X(e)({...r,id:i})}}let v=(u.input===`last`?[`change`]:[`input`,`change`]).map(e=>pT(e,X(g),t)),y=t.defaultView;if(!y)return()=>{v.forEach(e=>e())};let b=y.Object.getOwnPropertyDescriptor(y.HTMLInputElement.prototype,`value`),x=[[y.HTMLInputElement.prototype,`value`],[y.HTMLInputElement.prototype,`checked`],[y.HTMLSelectElement.prototype,`value`],[y.HTMLTextAreaElement.prototype,`value`],[y.HTMLSelectElement.prototype,`selectedIndex`],[y.HTMLOptionElement.prototype,`selected`]];return b&&b.set&&v.push(...x.map(e=>_T(e[0],e[1],{set(){X(g)({target:this,isTrusted:!1})}},!1,y))),X(()=>{v.forEach(e=>e())})}function xE(e){let t=[];function n(e,t){if(jE(`CSSGroupingRule`)&&e.parentRule instanceof CSSGroupingRule||jE(`CSSMediaRule`)&&e.parentRule instanceof CSSMediaRule||jE(`CSSSupportsRule`)&&e.parentRule instanceof CSSSupportsRule||jE(`CSSConditionRule`)&&e.parentRule instanceof CSSConditionRule){let n=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(n)}else if(e.parentStyleSheet){let n=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(n)}return t}return n(e,t)}function SE(e,t,n){let r,i;return e?(e.ownerNode?r=t.getId(e.ownerNode):i=n.getId(e),{styleId:i,id:r}):{}}function CE({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};let i=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(i,{apply:X((r,i,a)=>{let[o,s]=a,{id:c,styleId:l}=SE(i,t,n.styleMirror);return(c&&c!==-1||l&&l!==-1)&&e({id:c,styleId:l,adds:[{rule:o,index:s}]}),r.apply(i,a)})});let a=r.CSSStyleSheet.prototype.deleteRule;r.CSSStyleSheet.prototype.deleteRule=new Proxy(a,{apply:X((r,i,a)=>{let[o]=a,{id:s,styleId:c}=SE(i,t,n.styleMirror);return(s&&s!==-1||c&&c!==-1)&&e({id:s,styleId:c,removes:[{index:o}]}),r.apply(i,a)})});let o;
499r.CSSStyleSheet.prototype.replace&&(o=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(o,{apply:X((r,i,a)=>{let[o]=a,{id:s,styleId:c}=SE(i,t,n.styleMirror);return(s&&s!==-1||c&&c!==-1)&&e({id:s,styleId:c,replace:o}),r.apply(i,a)})}));let s;r.CSSStyleSheet.prototype.replaceSync&&(s=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(s,{apply:X((r,i,a)=>{let[o]=a,{id:s,styleId:c}=SE(i,t,n.styleMirror);return(s&&s!==-1||c&&c!==-1)&&e({id:s,styleId:c,replaceSync:o}),r.apply(i,a)})}));let c={};ME(`CSSGroupingRule`)?c.CSSGroupingRule=r.CSSGroupingRule:(ME(`CSSMediaRule`)&&(c.CSSMediaRule=r.CSSMediaRule),ME(`CSSConditionRule`)&&(c.CSSConditionRule=r.CSSConditionRule),ME(`CSSSupportsRule`)&&(c.CSSSupportsRule=r.CSSSupportsRule));let l={};return Object.entries(c).forEach(([r,i])=>{l[r]={insertRule:i.prototype.insertRule,deleteRule:i.prototype.deleteRule},i.prototype.insertRule=new Proxy(l[r].insertRule,{apply:X((r,i,a)=>{let[o,s]=a,{id:c,styleId:l}=SE(i.parentStyleSheet,t,n.styleMirror);return(c&&c!==-1||l&&l!==-1)&&e({id:c,styleId:l,adds:[{rule:o,index:[...xE(i),s||0]}]}),r.apply(i,a)})}),i.prototype.deleteRule=new Proxy(l[r].deleteRule,{apply:X((r,i,a)=>{let[o]=a,{id:s,styleId:c}=SE(i.parentStyleSheet,t,n.styleMirror);return(s&&s!==-1||c&&c!==-1)&&e({id:s,styleId:c,removes:[{index:[...xE(i),o]}]}),r.apply(i,a)})})}),X(()=>{r.CSSStyleSheet.prototype.insertRule=i,r.CSSStyleSheet.prototype.deleteRule=a,o&&(r.CSSStyleSheet.prototype.replace=o),s&&(r.CSSStyleSheet.prototype.replaceSync=s),Object.entries(c).forEach(([e,t])=>{t.prototype.insertRule=l[e].insertRule,t.prototype.deleteRule=l[e].deleteRule})})}function wE({mirror:e,stylesheetManager:t},n){let r=null;r=n.nodeName===`#document`?e.getId(n):e.getId(n.host);let i=n.nodeName===`#document`?n.defaultView?.Document:n.ownerDocument?.defaultView?.ShadowRoot,a=i?.prototype?Object.getOwnPropertyDescriptor(i?.prototype,`adoptedStyleSheets`):void 0;return r===null||r===-1||!i||!a?()=>{}:(Object.defineProperty(n,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get(){return a.get?.call(this)},set(e){let n=a.set?.call(this,e);if(r!==null&&r!==-1)try{t.adoptStyleSheets(e,r)}catch{}return n}}),X(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get:a.get,set:a.set})}))}function TE({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:i}){let a=i.CSSStyleDeclaration.prototype.setProperty;i.CSSStyleDeclaration.prototype.setProperty=new Proxy(a,{apply:X((i,o,s)=>{let[c,l,u]=s;if(n.has(c))return a.apply(o,[c,l,u]);let{id:d,styleId:f}=SE(o.parentRule?.parentStyleSheet,t,r.styleMirror);return(d&&d!==-1||f&&f!==-1)&&e({id:d,styleId:f,set:{property:c,value:l,priority:u},index:xE(o.parentRule)}),i.apply(o,s)})});let o=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=new Proxy(o,{apply:X((i,a,s)=>{let[c]=s;if(n.has(c))return o.apply(a,[c]);let{id:l,styleId:u}=SE(a.parentRule?.parentStyleSheet,t,r.styleMirror);return(l&&l!==-1||u&&u!==-1)&&e({id:l,styleId:u,remove:{property:c},index:xE(a.parentRule)}),i.apply(a,s)})}),X(()=>{i.CSSStyleDeclaration.prototype.setProperty=a,i.CSSStyleDeclaration.prototype.removeProperty=o})}function EE({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:i,sampling:a,doc:o}){let s=X(o=>gT(X(a=>{let s=fE(a);if(!s||wT(s,t,n,r,!0))return;let{currentTime:c,volume:l,muted:u,playbackRate:d}=s;e({type:o,id:i.getId(s),currentTime:c,volume:l,muted:u,playbackRate:d})}),a.media||500)),c=[pT(`play`,s(GT.Play),o),pT(`pause`,s(GT.Pause),o),pT(`seeked`,s(GT.Seeked),o),pT(`volumechange`,s(GT.VolumeChange),o),pT(`ratechange`,s(GT.RateChange),o)];return X(()=>{c.forEach(e=>e())})}function DE({fontCb:e,doc:t}){let n=t.defaultView;if(!n)return()=>{};let r=[],i=new WeakMap,a=n.FontFace;n.FontFace=function(e,t,n){let r=new a(e,t,n);return i.set(r,{family:e,buffer:typeof t!=`string`,descriptors:n,fontSource:typeof t==`string`?t:JSON.stringify(Array.from(new Uint8Array(t)))}),r};let o=vT(t.fonts,`add`,function(t){return function(n){return VT(X(()=>{let t=i.get(n);t&&(e(t),i.delete(n))}),0),t.apply(this,[n])}});return r.push(()=>{n.FontFace=a}),r.push(o),X(()=>
499{r.forEach(e=>e())})}function OE(e){let{doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:a,selectionCb:o}=e,s=!0,c=X(()=>{let e=t.getSelection();if(!e||s&&e?.isCollapsed)return;s=e.isCollapsed||!1;let c=[],l=e.rangeCount||0;for(let t=0;t<l;t++){let{startContainer:o,startOffset:s,endContainer:l,endOffset:u}=e.getRangeAt(t);wT(o,r,i,a,!0)||wT(l,r,i,a,!0)||c.push({start:n.getId(o),startOffset:s,end:n.getId(l),endOffset:u})}o({ranges:c})});return c(),pT(`selectionchange`,c)}function kE({doc:e,customElementCb:t}){let n=e.defaultView;return!n||!n.customElements?()=>{}:vT(n.customElements,`define`,function(e){return function(n,r,i){try{t({define:{name:n}})}catch{}return e.apply(this,[n,r,i])}})}function AE(e,t={}){let n=e.doc.defaultView;if(!n)return()=>{};let r;e.recordDOM&&(r=pE(e,e.doc));let i=mE(e),a=hE(e),o=gE(e),s=_E(e,{win:n}),c=bE(e),l=EE(e),u=()=>{},d=()=>{},f=()=>{},p=()=>{};e.recordDOM&&(u=CE(e,{win:n}),d=wE(e,e.doc),f=TE(e,{win:n}),e.collectFonts&&(p=DE(e)));let m=OE(e),h=kE(e),g=[];for(let t of e.plugins)g.push(t.observer(t.callback,n,t.options));return X(()=>{dE.forEach(e=>e.reset()),r?.disconnect(),i(),a(),o(),s(),c(),l(),u(),d(),f(),p(),m(),h(),g.forEach(e=>e())})}function jE(e){return window[e]!==void 0}function ME(e){return!!(window[e]!==void 0&&window[e].prototype&&`insertRule`in window[e].prototype&&`deleteRule`in window[e].prototype)}var NE=class{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,n,r){let i=n||this.getIdToRemoteIdMap(e),a=r||this.getRemoteIdToIdMap(e),o=i.get(t);return o||(o=this.generateIdFn(),i.set(t,o),a.set(o,t)),o}getIds(e,t){let n=this.getIdToRemoteIdMap(e),r=this.getRemoteIdToIdMap(e);return t.map(t=>this.getId(e,t,n,r))}
499getRemoteId(e,t,n){let r=n||this.getRemoteIdToIdMap(e);return typeof t==`number`?r.get(t)||-1:t}getRemoteIds(e,t){let n=this.getRemoteIdToIdMap(e);return t.map(t=>this.getRemoteId(e,t,n))}reset(e){if(!e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}},PE=class{constructor(){this.crossOriginIframeMirror=new NE(Nw),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}},FE=class{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new NE(Nw),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new NE(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener(`message`,this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0);let t=eE(e);t&&this.crossOriginIframeMap.set(t,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&eE(e)?.addEventListener(`message`,this.handleMessage.bind(this)),this.loadListener?.(e);let n=$T(e);n&&n.adoptedStyleSheets&&n.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(n.adoptedStyleSheets,this.mirror.getId(n))}handleMessage(e){let t=e;if(t.data.type!==`rrweb`||t.origin!==t.data.origin||!e.source)return;let n=this.crossOriginIframeMap.get(e.source);if(!n)return;let r=this.transformCrossOriginEvent(n,t.data.event);r&&this.wrappedEmit(r,t.data.isCheckout)}transformCrossOriginEvent(e,t){switch(t.type){case J.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);let n=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,n),this.patchRootIdOnNode(t.data.node,n),{timestamp:t.timestamp,type:J.IncrementalSnapshot,data:{source:Y.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case J.Meta:case J.Load:case J.DomContentLoaded:return!1;case J.Plugin:return t;case J.Custom:return this.replaceIds(t.data.payload,e,[`id`,`parentId`,`previousId`,`nextId`]),t;case J.IncrementalSnapshot:switch(t.data.source){case Y.Mutation:return t.data.adds.forEach(t=>{this.replaceIds(t,e,[`parentId`,`nextId`,`previousId`]),this.replaceIdOnNode(t.node,e);let n=this.crossOriginIframeRootIdMap.get(e);n&&this.patchRootIdOnNode(t.node,n)}),t.data.removes.forEach(t=>{this.replaceIds(t,e,[`parentId`,`id`])}),t.data.attributes.forEach(t=>{this.replaceIds(t,e,[`id`])}),t.data.texts.forEach(t=>{this.replaceIds(t,e,[`id`])}),t;case Y.Drag:case Y.TouchMove:case Y.MouseMove:return t.data.positions.forEach(t=>{this.replaceIds(t,e,[`id`])}),t;case Y.ViewportResize:return!1;case Y.MediaInteraction:case Y.MouseInteraction:case Y.Scroll:case Y.CanvasMutation:case Y.Input:return this.replaceIds(t.data,e,[`id`]),t;case Y.StyleSheetRule:case Y.StyleDeclaration:return this.replaceIds(t.data,e,[`id`]),this.replaceStyleIds(t.data,e,[`styleId`]),t;case Y.Font:return t;case Y.Selection:return t.data.ranges.forEach(t=>{this.replaceIds(t,e,[`start`,`end`])}),t;case Y.AdoptedStyleSheet:return this.replaceIds(t.data,e,[`id`]),this.replaceStyleIds(t.data,e,[`styleIds`]),t.data.styles?.forEach(t=>{this.replaceStyleIds(t,e,[`styleId`])}),t}}return!1}replace(e,t,n,r){for(let i of r)(Array.isArray(t[i])||typeof t[i]==`number`)&&(t[i]=Array.isArray(t[i])?e.getIds(n,t[i]):e.getId(n,t[i]));return t}replaceIds(e,t,n){return this.replace(this.crossOriginIframeMirror,e,t,n)}replaceStyleIds(e,t,n){return this.replace(this.crossOriginIframeStyleMirror,e,t,n)}replaceIdOnNode(e,t){this.replaceIds(e,t,[`id`,`rootId`]),`childNodes`in e&&e.childNodes.forEac
499h(e=>{this.replaceIdOnNode(e,t)})}patchRootIdOnNode(e,t){e.type!==tw.Document&&!e.rootId&&(e.rootId=t),`childNodes`in e&&e.childNodes.forEach(e=>{this.patchRootIdOnNode(e,t)})}},IE=class{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}},LE=class{constructor(e){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(!iw(e)||this.shadowDoms.has(e))return;this.shadowDoms.add(e),this.bypassOptions.canvasManager.addShadowRoot(e);let n=pE({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>n.disconnect()),this.restoreHandlers.push(gE({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),VT(()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(wE({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}observeAttachShadow(e){let t=$T(e),n=eE(e);t&&n&&this.patchAttachShadow(n.Element,t)}patchAttachShadow(e,t){let n=this;this.restoreHandlers.push(vT(e.prototype,`attachShadow`,function(e){return function(r){let i=e.call(this,r);return this.shadowRoot&&LT(this)&&n.addShadowRoot(this.shadowRoot,t),i}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}},RE=class{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new NT,this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){`_cssText`in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(e.length===0)return;let n={id:t,styleIds:[]},r=[];for(let t of e){let e;this.styleMirror.has(t)?e=this.styleMirror.getId(t):(e=this.styleMirror.add(t),r.push({styleId:e,rules:Array.from(t.rules||CSSRule,(e,t)=>({rule:lw(e),index:t}))})),n.styleIds.push(e)}r.length>0&&(n.styles=r),this.adoptedStyleSheetCb(n)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}},zE=class{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(e,t){let n=this.nodeMap.get(e);return n&&Array.from(n).some(e=>e!==t)}add(e,t){this.active||(this.active=!0,BT(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}},Z,BE;try{if(Array.from([1],e=>e*2)[0]!==2){let e=document.createElement(`iframe`);document.body.appendChild(e),Array.from=e.contentWindow?.Array.from||Array.from,document.body.removeChild(e)}}catch(e){console.debug(`Unable to override Array.from`,e)}var VE=mw();function HE(e={}){let{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:i=`rr-block`,blockSelector:a=null,unblockSelector:o=null,ignoreClass:s=`rr-ignore`,ignoreSelector:c=null,maskAllText:l=!1,maskTextClass:u=`rr-mask`,unmaskTextClass:d=null,maskTextSelector:f=null,unmaskTextSelector:p=null,inlineStylesheet:m=!0,maskAllInputs:h,maskInputOptions:g,slimDOMOptions:_,maskAttributeFn:v,maskInputFn:y,maskTextFn:b,maxCanvasSize:x=null,packFn:S,sampling:C={},dataURLOptions:w={},mousemoveWait:T,recordDOM:E=!0,recordCanvas:ee=!1,recordCrossOriginIframes:te=!1,recordAfter:ne=e.recordAfter===`DOMContentLoaded`?e.recordAfter:`load`,userTriggeredOnInput:D=!1,collectFonts:re=!1,inlineImages:ie=!1,plugins:ae,keepIframeSrcFn:O=()=>!1,ignoreCSSAttributes:oe=new Set([]),errorHandler:se,onMutation:ce,getCanvasManager:le}=e;qT(se);let ue=!te||window.parent===window,de=!1;if(!ue)try{window.parent.document&&(de=!1)}catch{de=!0}if(ue&&!t)throw Error(`emit function is required`);if(!ue&&!de)return()=>{};
499T!==void 0&&C.mousemove===void 0&&(C.mousemove=T),VE.reset();let fe=h===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:g===void 0?{}:g,pe=_===!0||_===`all`?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:_===`all`,headMetaDescKeywords:_===`all`}:_||{};kT();let me,he=0,ge=e=>{for(let t of ae||[])t.eventProcessor&&(e=t.eventProcessor(e));return S&&!de&&(e=S(e)),e};Z=(e,i)=>{let a=e;if(a.timestamp=yT(),dE[0]?.isFrozen()&&a.type!==J.FullSnapshot&&(a.type!==J.IncrementalSnapshot||a.data.source!==Y.Mutation)&&dE.forEach(e=>e.unfreeze()),ue)t?.(ge(a),i);else if(de){let e={type:`rrweb`,event:ge(a),origin:window.location.origin,isCheckout:i};window.parent.postMessage(e,`*`)}if(a.type===J.FullSnapshot)me=a,he=0;else if(a.type===J.IncrementalSnapshot){if(a.data.source===Y.Mutation&&a.data.isAttachIframe)return;he++;let e=r&&he>=r,t=n&&me&&a.timestamp-me.timestamp>n;(e||t)&&we(!0)}};let _e=e=>{Z({type:J.IncrementalSnapshot,data:{source:Y.Mutation,...e}})},ve=e=>Z({type:J.IncrementalSnapshot,data:{source:Y.Scroll,...e}}),ye=e=>Z({type:J.IncrementalSnapshot,data:{source:Y.CanvasMutation,...e}}),be=new RE({mutationCb:_e,adoptedStyleSheetCb:e=>Z({type:J.IncrementalSnapshot,data:{source:Y.AdoptedStyleSheet,...e}})}),k=typeof __RRWEB_EXCLUDE_IFRAME__==`boolean`&&__RRWEB_EXCLUDE_IFRAME__?new PE:new FE({mirror:VE,mutationCb:_e,stylesheetManager:be,recordCrossOriginIframes:te,wrappedEmit:Z});for(let e of ae||[])e.getMirror&&e.getMirror({nodeMirror:VE,crossOriginIframeMirror:k.crossOriginIframeMirror,crossOriginIframeStyleMirror:k.crossOriginIframeStyleMirror});let xe=new zE,Se=WE(le,{mirror:VE,win:window,mutationCb:e=>Z({type:J.IncrementalSnapshot,data:{source:Y.CanvasMutation,...e}}),recordCanvas:ee,blockClass:i,blockSelector:a,unblockSelector:o,maxCanvasSize:x,sampling:C.canvas,dataURLOptions:w,errorHandler:se}),Ce=typeof __RRWEB_EXCLUDE_SHADOW_DOM__==`boolean`&&__RRWEB_EXCLUDE_SHADOW_DOM__?new IE:new LE({mutationCb:_e,scrollCb:ve,bypassOptions:{onMutation:ce,blockClass:i,blockSelector:a,unblockSelector:o,maskAllText:l,maskTextClass:u,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,inlineStylesheet:m,maskInputOptions:fe,dataURLOptions:w,maskAttributeFn:v,maskTextFn:b,maskInputFn:y,recordCanvas:ee,inlineImages:ie,sampling:C,slimDOMOptions:pe,iframeManager:k,stylesheetManager:be,canvasManager:Se,keepIframeSrcFn:O,processedNodeManager:xe,ignoreCSSAttributes:oe},mirror:VE}),we=(e=!1)=>{if(!E)return;Z({type:J.Meta,data:{href:window.location.href,width:ST(),height:xT()}},e),be.reset(),Ce.init(),dE.forEach(e=>e.lock());let t=fT(document,{mirror:VE,blockClass:i,blockSelector:a,unblockSelector:o,maskAllText:l,maskTextClass:u,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,inlineStylesheet:m,maskAllInputs:fe,maskAttributeFn:v,maskInputFn:y,maskTextFn:b,slimDOM:pe,dataURLOptions:w,recordCanvas:ee,inlineImages:ie,onSerialize:e=>{AT(e,VE)&&k.addIframe(e),jT(e,VE)&&be.trackLinkElement(e),MT(e)&&Ce.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{k.attachIframe(e,t);let n=eE(e);n&&Se.addWindow(n),Ce.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{be.attachLinkElement(e,t)},onBlockedImageLoad:(e,t,{width:n,height:r})=>{_e({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:{style:{width:`${n}px`,height:`${r}px`}}}]})},keepIframeSrcFn:O,ignoreCSSAttributes:oe});if(!t)return console.warn(`Failed to snapshot the document`);Z({type:J.FullSnapshot,data:{node:t,initialOffset:bT(window)}}),dE.forEach(e=>e.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&be.adoptStyleSheets(document.adoptedStyleSheets,VE.getId(document))};BE=we;try{let e=[],t=e=>X(AE)({onMutation:ce,mutationCb:_e,mousemoveCb:(e,t)=>Z({type:J.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>Z({type:J.IncrementalSnapshot,data:{source:Y.MouseInteraction,...e}}),scrollCb:ve,viewportResizeCb:e=>Z({type:J.IncrementalSnapshot,data:{source:Y.ViewportResize,...e}}),inputCb:e=>Z({type:J.IncrementalSnapshot,data:{source:Y.Input,...e}}),mediaInteractionCb:e=>Z({type:J.IncrementalSnapshot,data:{source:Y.MediaInteraction,...e}}),styleSheetRuleCb:e=>Z({type:J.IncrementalSnapshot,data:{source:Y.StyleSheetRule,...e}}),styleDeclarationCb:e=>Z({type:J.IncrementalSnapshot,data:{source:Y.StyleDeclaration,...e}}),canvasMutationCb:ye,fontCb:e=>Z({type:J.IncrementalSnapshot,data:{source:Y.Font,...e}}),selectionCb:e=>{Z({type:J.IncrementalSnapshot,data:{source:Y.Selection,...e}})},customElementCb:e=>{Z({type:J.IncrementalSnapshot,data:{source:Y.CustomElement,...e}})},blockClass:i,ignoreClass:s,ignoreSelector:c,maskAllText:l,maskTextClass:u,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,maskInputOptions:fe,inlineStylesheet:m,sampling:C,recordDOM:E,recordCanvas:ee,inlineImages:ie,userTriggeredOnInput:D,collectFonts:re,doc:e,maskAttributeFn:v,maskInputFn:y,maskTextFn:b,keepIframeSrcFn:O,blockSelector:a,unblockSelector:o,slimDOMOptions:pe,dataURLOptions:w,mirror:VE,iframeManager:k,stylesheetManager:be,
499shadowDomManager:Ce,processedNodeManager:xe,canvasManager:Se,ignoreCSSAttributes:oe,plugins:ae?.filter(e=>e.observer)?.map(e=>({observer:e.observer,options:e.options,callback:t=>Z({type:J.Plugin,data:{plugin:e.name,payload:t}})}))||[]},{});k.addLoadListener(n=>{try{e.push(t(n.contentDocument))}catch(e){console.warn(e)}});let n=()=>{we(),e.push(t(document))};return document.readyState===`interactive`||document.readyState===`complete`?n():(e.push(pT(`DOMContentLoaded`,()=>{Z({type:J.DomContentLoaded,data:{}}),ne===`DOMContentLoaded`&&n()})),e.push(pT(`load`,()=>{Z({type:J.Load,data:{}}),ne===`load`&&n()},window))),()=>{e.forEach(e=>e()),xe.destroy(),BE=void 0,JT()}}catch(e){console.warn(e)}}function UE(e){if(!BE)throw Error(`please take full snapshot after start recording`);BE(e)}HE.mirror=VE,HE.takeFullSnapshot=UE;function WE(e,t){try{return e?e(t):new QT}catch{return console.warn(`Unable to initialize CanvasManager`),new QT}}var GE;(function(e){e[e.NotStarted=0]=`NotStarted`,e[e.Running=1]=`Running`,e[e.Stopped=2]=`Stopped`})(GE||={});var KE=3,qE=5;function JE(e){return e>9999999999?e:e*1e3}function YE(e){return e>9999999999?e/1e3:e}function XE(e,t){t.category!==`sentry.transaction`&&([`ui.click`,`ui.input`].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:J.Custom,timestamp:(t.timestamp||0)*1e3,data:{tag:`breadcrumb`,payload:Je(t,10,1e3)}}),t.category===`console`)))}var ZE=`button,a`;function QE(e){return e.closest(ZE)||e}function $E(e){let t=eD(e);return!t||!(t instanceof Element)?t:QE(t)}function eD(e){return tD(e)?e.target:e}function tD(e){return we(e)&&`target`in e}var nD;function rD(e){return nD||(nD=[],iD()),nD.push(e),()=>{let t=nD?nD.indexOf(e):-1;t>-1&&nD.splice(t,1)}}function iD(){Ae(K,`open`,function(e){return function(...t){if(nD)try{nD.forEach(e=>e())}catch{}return e.apply(K,t)}})}var aD=new Set([Y.Mutation,Y.StyleSheetRule,Y.StyleDeclaration,Y.AdoptedStyleSheet,Y.CanvasMutation,Y.Selection,Y.MediaInteraction]);function oD(e,t,n){e.handleClick(t,n)}var sD=class{constructor(e,t,n=XE){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=t.timeout/1e3,this._threshold=t.threshold/1e3,this._scrollTimeout=t.scrollTimeout/1e3,this._replay=e,this._ignoreSelector=t.ignoreSelector,this._addBreadcrumbEvent=n}addListeners(){let e=rD(()=>{this._lastMutation=dD()});this._teardown=()=>{e(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(e,t){if(lD(t,this._ignoreSelector)||!uD(e))return;let n={timestamp:YE(e.timestamp),clickBreadcrumb:e,clickCount:0,node:t};this._clicks.some(e=>e.node===n.node&&Math.abs(e.timestamp-n.timestamp)<1)||(this._clicks.push(n),this._clicks.length===1&&this._scheduleCheckClicks())}registerMutation(e=Date.now()){this._lastMutation=YE(e)}registerScroll(e=Date.now()){this._lastScroll=YE(e)}registerClick(e){let t=QE(e);this._handleMultiClick(t)}_handleMultiClick(e){this._getClicks(e).forEach(e=>{e.clickCount++})}_getClicks(e){return this._clicks.filter(t=>t.node===e)}_checkClicks(){let e=[],t=dD();this._clicks.forEach(n=>{!n.mutationAfter&&this._lastMutation&&(n.mutationAfter=n.timestamp<=this._lastMutation?this._lastMutation-n.timestamp:void 0),!n.scrollAfter&&this._lastScroll&&(n.scrollAfter=n.timestamp<=this._lastScroll?this._lastScroll-n.timestamp:void 0),n.timestamp+this._timeout<=t&&e.push(n)});for(let t of e){let e=this._clicks.indexOf(t);e>-1&&(this._generateBreadcrumbs(t),this._clicks.splice(e,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){let t=this._replay,n=e.scrollAfter&&e.scrollAfter<=this._scrollTimeout,r=e.mutationAfter&&e.mutationAfter<=this._threshold,i=!n&&!r,{clickCount:a,clickBreadcrumb:o}=e;if(i){let n=Math.min(e.mutationAfter||this._timeout,this._timeout)*1e3,r=n<this._timeout*1e3?`mutation`:`timeout`,i={type:`default`,message:o.message,timestamp:o.timestamp,category:`ui.slowClickDetected`,data:{...o.data,url:K.location.href,route:t.getCurrentRoute(),timeAfterClickMs:n,endReason:r,clickCount:a||1}};this._addBreadcrumbEvent(t,i);return}if(a>1){let e={type:`default`,message:o.message,timestamp:o.timestamp,category:`ui.multiClick`,data:{...o.data,url:K.location.href,route:t.getCurrentRoute(),clickCount:a,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=Mb(()=>this._checkClicks(),1e3)}},cD=[`A`,`BUTTON`,`INPUT`];function lD(e,t){return!!(!cD.includes(e.tagName)||e.tagName===`INPUT`&&![`submit`,`button`].includes(e.getAttribute(`type`)||``)||e.tagName===`A`&&(e.hasAttribute(`download`)||e.hasAttribute(`target`)&&e.getAttribute(`target`)!==`_self`)||t&&e.matches(t))}
499function uD(e){return!!(e.data&&typeof e.data.nodeId==`number`&&e.timestamp)}function dD(){return Date.now()/1e3}function fD(e,t){try{if(!pD(t))return;let{source:n}=t.data;if(aD.has(n)&&e.registerMutation(t.timestamp),n===Y.Scroll&&e.registerScroll(t.timestamp),mD(t)){let{type:n,id:r}=t.data,i=HE.mirror.getNode(r);i instanceof HTMLElement&&n===UT.Click&&e.registerClick(i)}}catch{}}function pD(e){return e.type===KE}function mD(e){return e.data.source===Y.MouseInteraction}function hD(e){return{timestamp:Date.now()/1e3,type:`default`,...e}}var gD=(e=>(e[e.Document=0]=`Document`,e[e.DocumentType=1]=`DocumentType`,e[e.Element=2]=`Element`,e[e.Text=3]=`Text`,e[e.CDATA=4]=`CDATA`,e[e.Comment=5]=`Comment`,e))(gD||{}),_D=new Set([`id`,`class`,`aria-label`,`role`,`name`,`alt`,`title`,`data-test-id`,`data-testid`,`disabled`,`aria-disabled`,`data-sentry-component`]),vD=new Set([..._D,`data-sentry-element`]);function yD(e){let t={};for(let n in e)if(_D.has(n)){let r=n;(n===`data-testid`||n===`data-test-id`)&&(r=`testId`),t[r]=e[n]}return!t[`data-sentry-component`]&&e[`data-sentry-element`]&&(t[`data-sentry-component`]=e[`data-sentry-element`]),t}var bD=e=>t=>{if(!e.isEnabled())return;let n=SD(t);if(!n)return;let r=t.name===`click`,i=r?t.event:void 0;r&&e.clickDetector&&i?.target&&!i.altKey&&!i.metaKey&&!i.ctrlKey&&!i.shiftKey&&oD(e.clickDetector,n,$E(t.event)),XE(e,n)};function xD(e,t){let n=HE.mirror.getId(e),r=n&&HE.mirror.getNode(n),i=r&&HE.mirror.getMeta(r),a=i&&wD(i)?i:null;return{message:t,data:a?{nodeId:n,node:{id:n,tagName:a.tagName,textContent:Array.from(a.childNodes).map(e=>e.type===gD.Text&&e.textContent).filter(Boolean).map(e=>e.trim()).join(``),attributes:yD(a.attributes)}}:{}}}function SD(e){let{target:t,message:n}=CD(e);return hD({category:`ui.${e.name}`,...xD(t,n)})}function CD(e){let t=e.name===`click`,n,r=null;try{r=t?$E(e.event):eD(e.event),n=ry(r,{maxStringLength:200})||`<unknown>`}catch{n=`<unknown>`}return{target:r,message:n}}function wD(e){return e.type===gD.Element}function TD(e,t){if(!e.isEnabled())return;e.updateUserActivity();let n=ED(t);n&&XE(e,n)}function ED(e){let{metaKey:t,shiftKey:n,ctrlKey:r,altKey:i,key:a,target:o}=e;if(!o||DD(o)||!a)return null;let s=t||r||i,c=a.length===1;if(!s&&c)return null;let l=ry(o,{maxStringLength:200})||`<unknown>`;return hD({category:`ui.keyDown`,message:l,data:{...xD(o,l).data,metaKey:t,shiftKey:n,ctrlKey:r,altKey:i,key:a}})}function DD(e){return e.tagName===`INPUT`||e.tagName===`TEXTAREA`||e.isContentEditable}var OD={resource:FD,paint:ND,navigation:PD};function kD(e,t){return({metric:n})=>void t.replayPerformanceEntries.push(e(n))}function AD(e){return e.map(jD).filter(Boolean)}function jD(e){let t=OD[e.entryType];return t?t(e):null}function MD(e){return((Dt()||K.performance.timeOrigin)+e)/1e3}function ND(e){let{duration:t,entryType:n,name:r,startTime:i}=e,a=MD(i);return{type:n,name:r,start:a,end:a+t,data:void 0}}function PD(e){let{entryType:t,name:n,decodedBodySize:r,duration:i,domComplete:a,encodedBodySize:o,domContentLoadedEventStart:s,domContentLoadedEventEnd:c,domInteractive:l,loadEventStart:u,loadEventEnd:d,redirectCount:f,startTime:p,transferSize:m,type:h}=e;return i===0?null:{type:`${t}.${h}`,start:MD(p),end:MD(a),name:n,data:{size:m,decodedBodySize:r,encodedBodySize:o,duration:i,domInteractive:l,domContentLoadedEventStart:s,domContentLoadedEventEnd:c,loadEventStart:u,loadEventEnd:d,domComplete:a,redirectCount:f}}}function FD(e){let{entryType:t,initiatorType:n,name:r,responseEnd:i,startTime:a,decodedBodySize:o,encodedBodySize:s,responseStatus:c,transferSize:l}=e;return[`fetch`,`xmlhttprequest`].includes(n)?null:{type:`${t}.${n}`,start:MD(a),end:MD(i),name:r,data:{size:l,statusCode:c,decodedBodySize:o,encodedBodySize:s}}}function ID(e){let t=e.entries[e.entries.length-1];return BD(e,`largest-contentful-paint`,t?.element?[t.element]:void 0)}function LD(e){return e.sources!==void 0}function RD(e){let t=[],n=[];for(let r of e.entries)if(LD(r)){let e=[];for(let t of r.sources)if(t.node){n.push(t.node);let r=HE.mirror.getId(t.node);r&&e.push(r)}t.push({value:r.value,nodeIds:e.length?e:void 0})}return BD(e,`cumulative-layout-shift`,n,t)}function zD(e){let t=e.entries[e.entries.length-1];return BD(e,`interaction-to-next-paint`,t?.target?[t.target]:void 0)}function BD(e,t,n,r){let i=e.value,a=e.rating,o=MD(i);return{type:`web-vital`,name:t,start:o,end:o,data:{value:i,size:i,rating:a,nodeIds:n?n.map(e=>HE.mirror.getId(e)):void 0,attributions:r}}}function VD(e){function t(t){e.performanceEntries.includes(t)||e.performanceEntries.push(t)}function n({entries:e}){e.forEach(t)}let r=[];
499return[`navigation`,`paint`,`resource`].forEach(e=>{r.push(sv(e,n))}),r.push(rv(kD(ID,e)),nv(kD(RD,e)),ov(kD(zD,e))),()=>{r.forEach(e=>e())}}var Q=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,HD=
vendor: 10,474 bytes, line 499
499`var t=Uint8Array,r=Uint16Array,n=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),s=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),a=function(t,e){for(var i=new r(31),s=0;s<31;++s)i[s]=e+=1<<t[s-1];var a=new n(i[30]);for(s=1;s<30;++s)for(var o=i[s];o<i[s+1];++o)a[o]=o-i[s]<<5|s;return{b:i,r:a}},o=a(e,2),h=o.b,f=o.r;h[28]=258,f[258]=28;for(var l=a(i,0).r,u=new r(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,n,e){for(var i=t.length,s=0,a=new r(n);s<i;++s)t[s]&&++a[t[s]-1];var o,h=new r(n);for(s=1;s<n;++s)h[s]=h[s-1]+a[s-1]<<1;if(e){o=new r(1<<n);var f=15-n;for(s=0;s<i;++s)if(t[s])for(var l=s<<4|t[s],c=n-t[s],v=h[t[s]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>f]=l}else for(o=new r(i),s=0;s<i;++s)t[s]&&(o[s]=u[h[t[s]-1]++]>>15-t[s]);return o},p=new t(288);for(c=0;c<144;++c)p[c]=8;for(c=144;c<256;++c)p[c]=9;for(c=256;c<280;++c)p[c]=7;for(c=280;c<288;++c)p[c]=8;var g=new t(32);for(c=0;c<32;++c)g[c]=5;var w=d(p,9,0),y=d(g,5,0),m=function(t){return(t+7)/8|0},b=function(r,n,e){return(null==e||e>r.length)&&(e=r.length),new t(r.subarray(n,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,r,n){var e=new Error(r||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!n)throw e;return e},z=function(t,r,n){n<<=7&r;var e=r/8|0;t[e]|=n,t[e+1]|=n>>8},_=function(t,r,n){n<<=7&r;var e=r/8|0;t[e]|=n,t[e+1]|=n>>8,t[e+2]|=n>>16},x=function(n,e){for(var i=[],s=0;s<n.length;++s)n[s]&&i.push({s:s,f:n[s]});var a=i.length,o=i.slice();if(!a)return{t:F,l:0};if(1==a){var h=new t(i[0].s+1);return h[i[0].s]=1,{t:h,l:1}}i.sort(function(t,r){return t.f-r.f}),i.push({s:-1,f:25001});var f=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:f.f+l.f,l:f,r:l};c!=a-1;)f=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:f.f+l.f,l:f,r:l};var d=o[0].s;for(s=1;s<a;++s)o[s].s>d&&(d=o[s].s);var p=new r(d+1),g=A(i[c-1],p,0);if(g>e){s=0;var w=0,y=g-e,m=1<<y;for(o.sort(function(t,r){return p[r.s]-p[t.s]||t.f-r.f});s<a;++s){var b=o[s].s;if(!(p[b]>e))break;w+=m-(1<<g-p[b]),p[b]=e}for(w>>=y;w>0;){var M=o[s].s;p[M]<e?w-=1<<e-p[M]++-1:++s}for(;s>=0&&w;--s){var E=o[s].s;p[E]==e&&(--p[E],++w)}g=e}return{t:new t(p),l:g}},A=function(t,r,n){return-1==t.s?Math.max(A(t.l,r,n+1),A(t.r,r,n+1)):r[t.s]=n},D=function(t){for(var n=t.length;n&&!t[--n];);for(var e=new r(++n),i=0,s=t[0],a=1,o=function(t){e[i++]=t},h=1;h<=n;++h)if(t[h]==s&&h!=n)++a;else{if(!s&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(s),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(s);a=1,s=t[h]}return{c:e.subarray(0,i),n:n}},T=function(t,r){for(var n=0,e=0;e<r.length;++e)n+=t[e]*r[e];return n},k=function(t,r,n){var e=n.length,i=m(r+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var s=0;s<e;++s)t[i+s+4]=n[s];return 8*(i+4+e)},U=function(t,n,a,o,h,f,l,u,c,v,m){z(n,m++,a),++h[256];for(var b=x(h,15),M=b.t,E=b.l,A=x(f,15),U=A.t,C=A.l,F=D(M),I=F.c,S=F.n,L=D(U),O=L.c,j=L.n,q=new r(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=x(q,7),H=G.t,J=G.l,K=19;K>4&&!H[s[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(h,p)+T(f,g)+l,X=T(h,M)+T(f,U)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(n,m,t.subarray(c,c+v));if(z(n,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(U,C,0),R=U;var Y=d(H,J,0);z(n,m,S-257),z(n,m+5,j-1),z(n,m+10,K-4),m+=14;for(B=0;B<K;++B)z(n,m+3*B,H[s[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var rt=31&tt[B];z(n,m,Y[rt]),m+=H[rt],rt>15&&(z(n,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=w,P=p,Q=y,R=g;for(B=0;B<u;++B){var nt=o[B];if(nt>255){_(n,m,N[(rt=nt>>18&31)+257]),m+=P[rt+257],rt>7&&(z(n,m,nt>>23&31),m+=e[rt]);var et=31&nt;_(n,m,Q[et]),m+=R[et],et>3&&(_(n,m,nt>>5&8191),m+=i[et])}else _(n,m,N[nt]),m+=P[nt]}return _(n,m,N[256]),m+P[256]},C=new n([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),r=0;r<256;++r){for(var n=r,e=9;--e;)n=(1&n&&-306674912)^n>>>1;t[r]=n}return t}(),S=function(){var t=1,r=0;return{p:function(n){for(var e=t,i=r,s=0|n.length,a=0;a!=s;){for(var o=Math.min(a+2655,s);a<o;++a)i+=e+=n[a];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,r=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(r%=65521))<<8|r>>8}}},L=function(s,a,o,h,u){if(!u&&(u={l:1},a.dictionary)){var c=a.dictionary.subarray(-32768),v=new t(c.length+s.length);v.set(c),v.set(s,c.length),s=v,u.w=c.length}return function(s,a,o,h,u,c){var v=c.z||s.length,d=new t(h+v+5*(1+Math.ceil(v/7e3))+u),p=d.subarray(h,d.length-u),g=c.l,w=7&(c.r||0);if(a){w&&(p[0]=c.r>>3);for(var y=C[a-1],M=y>>13,E=8191&y,z=(1<<o)-1,_=c.p||new r(32768),x=c.h||new r(z+1),A=Math.ceil(o/3),D=2*A,T=function(t){return(s[t]^s[t+1]<<A^s[t+2]<<D)&z},F=new n(25e3),I=new r(288),S=new r(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=x[H];if(_[J]=K,x[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!g)){w=U(s,p,0,F,I,S,O,q,G,j-G,w),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(s[j+Q]==s[j+Q-W]){for(var $=0;$<Z&&s[j+$]==s[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),rt=0;for(P=0;P<tt;++P){var nt=j-W+P&32767,et=nt-_[nt]&32767;et>rt&&(rt=et,K=nt)}}}W+=(J=K)-(K=_[J])&32767}if(R){F[q++]=268435456|f[Q]<<18|l[R];var it=31&f[Q],st=31&l[R];O+=e[it]+i[st],++I[257+it],++S[st],B=j+Q,++L}else F[q++]=s[j],++I[s[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=s[j],++I[s[j]];w=U(s,p,g,F,I,S,O,q,G,j-G,w),g||(c.r=7&w|p[w/8|0]<<3,w-=7,c.h=x,c.p=_,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+g;j+=65535){var at=j+65535;at>=v&&(p[w/8|0]=g,at=v),w=k(p,w+1,s.subarray(j,at))}c.i=v}return b(d,0,h+m(w)+u)}(s,null==a.level?6:a.level,null==a.mem?u.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(s.length)))):20:12+a.mem,o,h,u)},O=function(t,r,n){for(;n;++r)t[r]=n,n>>>=8},j=function(){function r(r,n){if("function"==typeof r&&(n=r,r={}),this.ondata=n,this.o=r||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return r.prototype.p=function(t,r){this.ondata(L(t,this.o,0,0,this.s),r)},r.prototype.push=function(r,n){this.ondata||E(5),this.s.l&&E(4);var e=r.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var s=this.b.length-this.s.z;this.b.set(r.subarray(0,s),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(r.subarray(s),32768),this.s.z=r.length-s+32768,this.s.i=32766,this.s.w=32768}else this.b.set(r,this.s.z),this.s.z+=r.length;this.s.l=1&n,(this.s.z>this.s.w+8191||n)&&(this.p(this.b,n||!1),this.s.w=this.s.i,this.s.i-=2),n&&(this.s=this.o={},this.b=F)},r.prototype.flush=function(r){if(this.ondata||E(5),this.s.l&&E(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2,r){var n=new t(6);n[0]=this.s.r>>3;var e=k(n,this.s.r,F);this.s.r=0,this.ondata(n.subarray(0,e>>3),!1)}},r}();function q(t,r){r||(r={});var n=function(){var t=-1;return{p:function(r){for(var n=t,e=0;e<r.length;++e)n=I[255&n^r[e]]^n>>>8;t=n},d:function(){return~t}}}(),e=t.length;n.p(t);var i,s=L(t,r,10+((i=r).filename?i.filename.length+1:0),8),a=s.length;return function(t,r){var n=r.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=r.level<2?4:9==r.level?2:0,t[9]=3,0!=r.mtime&&O(t,4,Math.floor(new Date(r.mtime||Date.now())/1e3)),n){t[3]=8;for(var e=0;e<=n.length;++e)t[e+10]=n.charCodeAt(e)}}(s,r),O(s,a-8,n.d()),O(s,a-4,e),s}var B=function(){function t(t,r){this.c=S(),this.v=1,j.call(this,t,r)}return t.prototype.push=function(t,r){this.c.p(t),j.prototype.push.call(this,t,r)},t.prototype.p=function(t,r){var n=L(t,this.o,this.v&&(this.o.dictionary?6:2),r&&4,this.s);this.v&&(function(t,r){var n=r.level,e=0==n?0:n<6?1:9==n?3:2;if(t[0]=120,t[1]=e<<6|(r.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,r.dictionary){var i=S();i.p(r.dictionary),O(t,2,i.d())}}(n,this.o),this.v=0),r&&O(n,n.length-4,this.c.d()),this.ondata(n,r)},t.prototype.flush=function(t){j.prototype.flush.call(this,t)},t}(),G="undefined"!=typeof TextEncoder&&new TextEncoder,H="undefined"!=typeof TextDecoder&&new TextDecoder;try{H.decode(F,{stream:!0})}catch(t){}var J=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,r){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=r||!1)},t}();function K(r,n){if(G)return G.encode(r);for(var e=r.length,i=new t(r.length+(r.length>>1)),s=0,a=function(t){i[s++]=t},o=0;o<e;++o){if(s+5>i.length){var h=new t(s+8+(e-o<<1));h.set(i),i=h}var f=r.charCodeAt(o);f<128||n?a(f):f<2048?(a(192|f>>6),a(128|63&f)):f>55295&&f<57344?(a(240|(f=65536+(1047552&f)|1023&r.charCodeAt(++o))>>18),a(128|f>>12&63),a(128|f>>6&63),a(128|63&f)):(a(224|f>>12),a(128|f>>6&63),a(128|63&f))}return b(i,0,s)}const N=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const r=this._hasEvents?",":"";this.stream.push(r+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let r=0;for(const n of t)r+=n.length;const n=new Uint8Array(r);for(let r=0,e=0,i=t.length;r<i;r++){const i=t[r];n.set(i,e),e+=i.length}return n}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new B,this.deflate.ondata=(t,r)=>{this._deflatedData.push(t)},this.stream=new J((t,r)=>{this.deflate.push(t,r)}),this.stream.push("[")}},P={clear:()=>{N.clear()},addEvent:t=>N.addEvent(t),finish:()=>N.finish(),compress:t=>function(t){return q(K(t))}(t)};addEventListener("message",function(t){const r=t.data.method,n=t.data.id,e=t.data.arg;if(r in P&&"function"==typeof P[r])try{const t=P[r](e);postMessage({id:n,method:r,success:!0,response:t})}catch(t){postMessage({id:n,method:r,success:!1,response:t.message}),console.error(t)}}),postMessage({id:void 0,method:"init",success:!0,response:void 0});`;
499function UD(){let e=new Blob([HD],{type:`text/javascript`});return URL.createObjectURL(e)}var WD=[`log`,`warn`,`error`],GD=`[Replay] `;function KD(e,t=`info`){sd({category:`console`,data:{logger:`replay`},level:t,message:`${GD}${e}`},{level:t})}function qD(){let e=!1,t=!1,n={exception:()=>void 0,infoTick:()=>void 0,setConfig:n=>{e=!!n.captureExceptions,t=!!n.traceInternals}};return Q?(WD.forEach(e=>{n[e]=(...n)=>{x[e](GD,...n),t&&KD(n.join(``),Hd(e))}}),n.exception=(r,...i)=>{i.length&&n.error&&n.error(...i),x.error(GD,r),e?Ec(r,{mechanism:{handled:!0,type:`auto.function.replay.debug`}}):t&&KD(r,`error`)},n.infoTick=(...e)=>{x.log(GD,...e),t&&setTimeout(()=>KD(e[0]),0)}):WD.forEach(e=>{n[e]=()=>void 0}),n}var $=qD(),JD=class extends Error{constructor(){super(`Event buffer exceeded maximum size of ${qC}.`)}},YD=class extends Error{constructor(){super(`Worker destroyed`)}},XD=class{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return`sync`}destroy(){this.events=[]}async addEvent(e){let t=JSON.stringify(e).length;if(this._totalSize+=t,this._totalSize>qC)throw new JD;this.events.push(e)}finish(){return new Promise(e=>{let t=this.events;this.clear(),e(JSON.stringify(t))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){let e=null;for(let{timestamp:t}of this.events)(e===null||t<e)&&(e=t);return e===null?e:JE(e)}},ZD=class{constructor(e){this._onMessage=({data:e})=>{let t=e;if(typeof t.id!=`number`)return;let n=this._pending.get(t.id);if(n&&n.method===t.method){if(this._pending.delete(t.id),!t.success){Q&&$.error(`Error in compression worker: `,t.response),n.reject(Error(`Error in compression worker`));return}n.resolve(t.response)}},this._worker=e,this._id=0,this._pending=new Map,this._worker.addEventListener(`message`,this._onMessage)}ensureReady(){return this._ensureReadyPromise||=new Promise((e,t)=>{this._worker.addEventListener(`message`,({data:n})=>{n.success?e():(Q&&$.warn(`Received worker message with unsuccessful status`,n),t(Error(`Received worker message with unsuccessful status`)))},{once:!0}),this._worker.addEventListener(`error`,e=>{Q&&$.warn(`Failed to load Replay compression worker`,e),t(Error(`Failed to load Replay compression worker: ${e instanceof ErrorEvent&&e.message?e.message:`Unknown error. This can happen due to CSP policy restrictions, network issues, or the worker script failing to load.`}`))},{once:!0})}),this._ensureReadyPromise}destroy(){Q&&$.log(`Destroying compression worker`),this._worker.removeEventListener(`message`,this._onMessage),this._pending.forEach(e=>e.reject(new YD)),this._pending.clear(),this._worker.terminate()}postMessage(e,t){let n=this._getAndIncrementId();return new Promise((r,i)=>{this._pending.set(n,{method:e,resolve:r,reject:i});try{this._worker.postMessage({id:n,method:e,arg:t})}catch(e){this._pending.delete(n),i(e)}})}_getAndIncrementId(){return this._id++}},QD=class{constructor(e){this._worker=new ZD(e),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return`worker`}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(e){let t=JE(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);let n=JSON.stringify(e);return this._totalSize+=n.length,this._totalSize>qC?Promise.reject(new JD):this._sendEventToWorker(n)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage(`clear`).then(null,e=>{Q&&$.exception(e,`Sending "clear" message to worker failed`,e)})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(e){return this._worker.postMessage(`addEvent`,e)}async _finishRequest(){let e=await this._worker.postMessage(`finish`);return this._earliestTimestamp=null,this._totalSize=0,e}},$D=class{constructor(e){this._fallback=new XD,this._compression=new QD(e),this._used=this._fallback,this._ensureWorkerIsLoadedProm
499ise=this._ensureWorkerIsLoaded()}get waitForCheckout(){return this._used.waitForCheckout}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(e){this._used.hasCheckout=e}set waitForCheckout(e){this._used.waitForCheckout=e}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(e){return this._used.addEvent(e)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(e){Q&&$.exception(e,`Failed to load the compression worker, falling back to simple buffer`);return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){let{events:e,hasCheckout:t,waitForCheckout:n}=this._fallback,r=[];for(let t of e)r.push(this._compression.addEvent(t));this._compression.hasCheckout=t,this._compression.waitForCheckout=n,this._used=this._compression;try{await Promise.all(r),this._fallback.clear()}catch(e){if(e instanceof YD)return;Q&&$.exception(e,`Failed to add events when switching buffers.`)}}};function eO({useCompression:e,workerUrl:t}){if(e&&window.Worker){let e=tO(t);if(e)return e}return Q&&$.log(`Using simple buffer`),new XD}function tO(e){try{let t=e||nO();return t?(Q&&$.log(`Using compression worker${e?` from ${e}`:``}`),new $D(new Worker(t))):void 0}catch(e){Q&&$.exception(e,`Failed to create compression worker`)}}function nO(){return typeof __SENTRY_EXCLUDE_REPLAY_WORKER__>`u`||!__SENTRY_EXCLUDE_REPLAY_WORKER__?UD():``}function rO(){try{return`sessionStorage`in K&&!!K.sessionStorage}catch{return!1}}function iO(e){aO(),e.session=void 0}function aO(){if(rO())try{K.sessionStorage.removeItem(NC)}catch{}}function oO(e){return e!==void 0&&Math.random()<e}function sO(e){if(rO())try{K.sessionStorage.setItem(NC,JSON.stringify(e))}catch{}}function cO(e){let t=Date.now();return{id:e.id||ut(),started:e.started||t,lastActivity:e.lastActivity||t,segmentId:e.segmentId||0,sampled:e.sampled,previousSessionId:e.previousSessionId,dirty:e.dirty||!1}}function lO(e,t){return oO(e)?`session`:t?`buffer`:!1}function uO({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:r}={}){let i=cO({sampled:lO(e,t),previousSessionId:r});return n&&sO(i),i}function dO(){if(!rO())return null;try{let e=K.sessionStorage.getItem(NC);if(!e)return null;let t=JSON.parse(e);return Q&&$.infoTick(`Loading existing session`),cO(t)}catch{return null}}function fO(e,t,n=+new Date){return e===null||t===void 0||t<0||t!==0&&e+t<=n}function pO(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:r=Date.now()}){return fO(e.started,t,r)||fO(e.lastActivity,n,r)}function mO(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!(!pO(e,{sessionIdleExpire:t,maxReplayDuration:n})||e.sampled===`buffer`&&e.segmentId===0)}function hO({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:n},r){let i=r.stickySession&&dO();return i?mO(i,{sessionIdleExpire:e,maxReplayDuration:t})?(Q&&$.infoTick(`Session in sessionStorage is expired, creating new one...`),uO(r,{previousSessionId:i.id})):i:(Q&&$.infoTick(`Creating new session`),uO(r,{previousSessionId:n}))}function gO(e){return e.type===J.Custom}function _O(e,t,n){return bO(e,t)?(yO(e,t,n),!0):!1}function vO(e,t,n){return bO(e,t)?yO(e,t,n):Promise.resolve(null)}async function yO(e,t,n){let{eventBuffer:r}=e;if(!r||r.waitForCheckout&&!n)return null;let i=e.recordingMode===`buffer`;try{n&&i&&r.clear(),n&&(r.hasCheckout=!0,r.waitForCheckout=!1);let a=xO(t,e.getOptions().beforeAddRecordingEvent);return a?await r.addEvent(a):void 0}catch(t){if(!e.isEnabled())return e.handleException(t),null;let n=t&&t instanceof JD,a=n?`eventBufferOverflow`:`eventBufferError`,o=M();if(o){let e=n?`buffer_overflow`:`internal_sdk_error`;o.recordDroppedEvent(e,`replay`)}if(n&&i)return r.clear(),r.waitForCheckout=!0,null;e.handleException(t),await e.stop({reason:a})}}
499function bO(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;let n=JE(t.timestamp);return n+e.timeouts.sessionIdlePause<Date.now()?!1:n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration?(Q&&$.infoTick(`Skipping event with timestamp ${n} because it is after maxReplayDuration`),!1):!0}function xO(e,t){try{if(typeof t==`function`&&gO(e))return t(e)}catch(e){return Q&&$.exception(e,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}var SO=100;function CO(e,t,n){let r=e.getContext();t&&r.traceIds.size<SO&&r.traceIds.add(t),n&&r.segmentNames.size<SO&&r.segmentNames.add(n)}function wO(e){return t=>{e.isEnabled()&&CO(e,t.trace_id,t.name||void 0)}}function TO(e){return!e.type}function EO(e){return e.type===`transaction`}function DO(e){return e.type===`replay_event`}function OO(e){return e.type===`feedback`}function kO(e){return(t,n)=>{if(!e.isEnabled()||!TO(t)&&!EO(t))return;let r=n.statusCode;if(!(!r||r<200||r>=300)){if(EO(t)){AO(e,t);return}jO(e,t)}}}function AO(e,t){CO(e,t.contexts?.trace?.trace_id,t.transaction)}function jO(e,t){let n=e.getContext();if(t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id),e.recordingMode!==`buffer`||!t.tags?.replayId)return;let{beforeErrorSampling:r}=e.getOptions();(typeof r!=`function`||r(t))&&Mb(async()=>{try{await e.sendBufferedReplayOrFlush()}catch(t){e.handleException(t)}})}function MO(e){return t=>{e.isEnabled()&&TO(t)&&NO(e,t)}}function NO(e,t){let n=t.exception?.values?.[0]?.value;typeof n==`string`&&(n.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i))&&XE(e,hD({category:`replay.hydrate-error`,data:{url:Jy()}}))}function PO(e){let t=M();t&&t.on(`beforeAddBreadcrumb`,t=>FO(e,t))}function FO(e,t){if(!e.isEnabled()||!RO(t))return;let n=IO(t);n&&XE(e,n)}function IO(e){return!RO(e)||[`fetch`,`xhr`,`sentry.event`,`sentry.transaction`].includes(e.category)||e.category.startsWith(`ui.`)?null:e.category===`console`?LO(e):hD(e)}function LO(e){let t=e.data?.arguments;if(!Array.isArray(t)||t.length===0)return hD(e);let n=!1,r=t.map(e=>{if(!e)return e;if(typeof e==`string`)return e.length>WC?(n=!0,`${e.slice(0,WC)}\u2026`):e;if(typeof e==`object`)try{let t=Je(e,7);return JSON.stringify(t).length>WC?(n=!0,`${JSON.stringify(t,null,2).slice(0,WC)}\u2026`):t}catch{}return e});return hD({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:[`CONSOLE_ARG_TRUNCATED`]}}:{}}})}function RO(e){return!!e.category}function zO(e,t){return e.type||!e.exception?.values?.length?!1:!!t.originalException?.__rrweb__}function BO(){let e=A().getPropagationContext().dsc;e&&delete e.replay_id;let t=P();if(t){let e=ra(t);delete e.replay_id}}function VO(e){let t=A().getPropagationContext().dsc;t&&(t.replay_id=e);let n=P();if(n){let t=ra(n);t.replay_id=e}}function HO(e,t){e.triggerUserActivity(),e.addUpdate(()=>!t.timestamp||(e.throttledAddEvent({type:J.Custom,timestamp:t.timestamp*1e3,data:{tag:`breadcrumb`,payload:{timestamp:t.timestamp,type:`default`,category:`sentry.feedback`,data:{feedbackId:t.event_id}}}}),!1))}function UO(e,t){return e.recordingMode!==`buffer`||t.message===FC||!t.exception||t.type?!1:oO(e.getOptions().errorSampleRate)}function WO(e){return Object.assign((t,n)=>{if(e.session&&mO(e.session,{maxReplayDuration:e.getOptions().maxReplayDuration,sessionIdleExpire:e.timeouts.sessionIdleExpire})&&BO(),!e.isEnabled()||e.isPaused())return t;if(DO(t))return delete t.breadcrumbs,t;if(!TO(t)&&!EO(t)&&!OO(t))return t;if(!e.checkAndHandleExpiredSession())return BO(),t;if(OO(t)){let n=e.getSessionId(),r=t.contexts.feedback.replay_id;return r&&r!==n?t:(e.flush(),t.contexts.feedback.replay_id=n,HO(e,t),t)}if(zO(t,n)&&!e.getOptions()._experiments.captureExceptions)return Q&&$.log(`Ignoring error from rrweb internals`,t),null;let r=UO(e,t);if((r||e.recordingMode===`session`)&&(t.tags={...t.tags,replayId:e.getSessionId()}),r&&e.recordingMode===`buffer`&&e.session?.sampled===`buffer`){let t=e.session;t.dirty=!0,e.getOptions().stickySession&&sO(t)}return t},{id:`Replay`})}function GO(e,t){return t.map(({type:t,start:n,end:r,name:i,data:a})=>{let o=e.throttledAddEvent({type:J.Custom,timestamp:n,data:{tag:`performanceSpan`,payload:{op:t,description:i,startTimestamp:n,endTimestamp:r,data:a}}});return typeof o==`string`?Promise.resolve(null):o})}function KO(e){let{from:t,to:n}=e,r=Date.now()/1e3;return{type:`navigation.push`,start:r,end:r,name:n,data:{previous:t}}}function qO(e){return t=>{if(!e.isEnabled())return;let n=KO(t);n!==null&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate(()=>(GO(e,[n]),!1)))}}function JO(e,t){return Q&&e.getOptions()._experiments.traceInternals?!1:Gu(t,M())}function YO(e,t){e.isEnabled()&&t!==null&&(JO(e,t.name)||e.addUpdate(()=>(GO(e,[t]),!0)))}function XO(e){if(!e)return;let t=new TextEncoder;try{if(typeof e==`string`)return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){let n=Rb(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function ZO(e){if(!e)return;let t=parseInt(e,10);return isNaN(t)?void 0:t}function QO(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};let n={...e._meta};return n.warnings=[...n.warnings||[],t],e._meta=n,e}function $O(e,t){if(!t)return null;let{startTimestamp:n,endTimestamp:r,url:i,method:a,statusCode:o,request:s,response:c}=t;return{type:e,start:n/1e3,end:r/1e3,name:i,data:{method:a,statusCode:o,request:s,response:c}}}function ek(e){return{headers:{},size:e,_meta:{warnings:[`URL_SKIPPED`]}}}
499function tk(e,t,n){if(!t&&Object.keys(e).length===0)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};let r={headers:e,size:t},{body:i,warnings:a}=rk(n);return r.body=i,a?.length&&(r._meta={warnings:a}),r}function nk(e,t){return Object.entries(e).reduce((n,[r,i])=>{let a=r.toLowerCase();return t.includes(a)&&e[r]&&(n[a]=i),n},{})}function rk(e){if(!e||typeof e!=`string`)return{body:e};let t=e.length>UC,n=ik(e);if(t){let t=e.slice(0,UC);return n?{body:t,warnings:[`MAYBE_JSON_TRUNCATED`]}:{body:`${t}\u2026`,warnings:[`TEXT_TRUNCATED`]}}if(n)try{return{body:JSON.parse(e)}}catch{}return{body:e}}function ik(e){let t=e[0],n=e[e.length-1];return t===`[`&&n===`]`||t===`{`&&n===`}`}function ak(e,t){return ot(ok(e),t)}function ok(e,t=K.document.baseURI){if(e.startsWith(`http://`)||e.startsWith(`https://`)||e.startsWith(K.location.origin))return e;let n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;let r=n.href;return!e.endsWith(`/`)&&r.endsWith(`/`)?r.slice(0,-1):r}async function sk(e,t,n){try{let r=$O(`resource.fetch`,await lk(e,t,n));YO(n.replay,r)}catch(e){Q&&$.exception(e,`Failed to capture fetch breadcrumb`)}}function ck(e,t){let{input:n,response:r}=t,i=XO(n?Bb(n):void 0),a=r?ZO(r.headers.get(`content-length`)):void 0;i!==void 0&&(e.data.request_body_size=i),a!==void 0&&(e.data.response_body_size=a)}async function lk(e,t,n){let r=Date.now(),{startTimestamp:i=r,endTimestamp:a=r}=t,{url:o,method:s,status_code:c=0,request_body_size:l,response_body_size:u}=e.data,d=ak(o,n.networkDetailAllowUrls)&&!ak(o,n.networkDetailDenyUrls);return{startTimestamp:i,endTimestamp:a,url:o,method:s,statusCode:c,request:d?uk(n,t.input,l):ek(l),response:await dk(d,n,t.response,u)}}function uk({networkCaptureBodies:e,networkRequestHeaders:t},n,r){let i=n?hk(n,t):{};if(!e)return tk(i,r,void 0);let[a,o]=zb(Bb(n),$),s=tk(i,r,a);return o?QO(s,o):s}async function dk(e,{networkCaptureBodies:t,networkResponseHeaders:n},r,i){if(!e&&i!==void 0)return ek(i);let a=r?mk(r.headers,n):{};if(!r||!t&&i!==void 0)return tk(a,i,void 0);let[o,s]=await pk(r),c=fk(o,{networkCaptureBodies:t,responseBodySize:i,captureDetails:e,headers:a});return s?QO(c,s):c}function fk(e,{networkCaptureBodies:t,responseBodySize:n,captureDetails:r,headers:i}){try{let a=e?.length&&n===void 0?XO(e):n;return r?t?tk(i,a,e):tk(i,a,void 0):ek(a)}catch(e){return Q&&$.exception(e,`Failed to serialize response body`),tk(i,n,void 0)}}async function pk(e){let t=_k(e);if(!t)return[void 0,`BODY_PARSE_ERROR`];try{return[await vk(t)]}catch(e){return e instanceof Error&&e.message.indexOf(`Timeout`)>-1?(Q&&$.warn(`Parsing text body from response timed out`),[void 0,`BODY_PARSE_TIMEOUT`]):(Q&&$.exception(e,`Failed to get text body from response`),[void 0,`BODY_PARSE_ERROR`])}}function mk(e,t){let n={};return t.forEach(t=>{e.get(t)&&(n[t]=e.get(t))}),n}function hk(e,t){return e.length===1&&typeof e[0]!=`string`?gk(e[0],t):e.length===2?gk(e[1],t):{}}function gk(e,t){if(!e)return{};let n=e.headers;return n?n instanceof Headers?mk(n,t):Array.isArray(n)?{}:nk(n,t):{}}function _k(e){try{return e.clone()}catch(e){Q&&$.exception(e,`Failed to clone response body`)}}function vk(e){return new Promise((t,n)=>{let r=Mb(()=>n(Error(`Timeout while trying to read response body`)),500);yk(e).then(e=>t(e),e=>n(e)).finally(()=>clearTimeout(r))})}async function yk(e){return e.text()}async function bk(e,t,n){try{let r=$O(`resource.xhr`,Sk(e,t,n));YO(n.replay,r)}catch(e){Q&&$.exception(e,`Failed to capture xhr breadcrumb`)}}function xk(e,t){let{xhr:n,input:r}=t;if(!n)return;let i=XO(r),a=n.getResponseHeader(`content-length`)?ZO(n.getResponseHeader(`content-length`)):Tk(n.response,n.responseType);i!==void 0&&(e.data.request_body_size=i),a!==void 0&&(e.data.response_body_size=a)}function Sk(e,t,n){let r=Date.now(),{startTimestamp:i=r,endTimestamp:a=r,input:o,xhr:s}=t,{url:c,method:l,status_code:u=0,request_body_size:d,response_body_size:f}=e.data;if(!c)return null;if(!s||!ak(c,n.networkDetailAllowUrls)||ak(c,n.networkDetailDenyUrls))return{startTimestamp:i,endTimestamp:a,url:c,method:l,statusCode:u,request:ek(d),response:ek(f)};let p=s[Nb],m=p?nk(p.request_headers,n.networkRequestHeaders):{},h=nk(Vb(s),n.networkResponseHeaders),[g,_]=n.networkCaptureBodies?zb(o,$):[void 0],[v,y]=n.networkCaptureBodies?Ck(s):[void 0],b=tk(m,d,g),x=tk(h,f,v);return{startTimestamp:i,endTimestamp:a,url:c,method:l,statusCode:u,request:_?QO(b,_):b,response:y?QO(x,y):x}}function Ck(e){let t=[];try{return[e.responseText]}catch(e){t.push(e)}try{return wk(e.response,e.responseType)}catch(e){t.push(e)}return Q&&$.warn(`Failed to get xhr response body`,...t),[void 0]}function wk(e,t){try{if(typeof e==`string`)return[e];if(e instanceof Document)return[e.body.outerHTML];if(t===`json`&&we(e))return[JSON.stringify(e)];if(!e)return[void 0]}catch(t){return Q&&$.exception(t,`Failed to serialize body`,e),[void 0,`BODY_PARSE_ERROR`]}return Q&&$.log(`Skipping network body because of body type`,e),[void 0,`UNPARSEABLE_BODY_TYPE`]}function Tk(e,t){try{return XO(t===`json`&&we(e)?JSON.stringify(e):e)}catch{return}}function Ek(e){let t=M();try{let{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:i,networkRequestHeaders:a,networkResponseHeaders:o}=e.getOptions(),s={replay:e,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:i,networkRequestHeaders:a,networkResponseHeaders:o};t&&t.on(`beforeAddBreadcrumb`,(e,t)=>Dk(s,e,t))}catch{}}function Dk(e,t,n){if(t.data)try{Ok(t)&&Ak(n)&&(xk(t,n),bk(t,n,e)),kk(t)&&jk(n)&&(ck(t,n),sk(t,n,e))}catch(e){Q&&$.exception(e,`Error when enriching network breadcrumb`)}}function Ok(e){return e.category===`xhr`}function kk(e){return e.category===`fetch`}function Ak(e){return e?.xhr}function jk(e){return e?.input!==void 0}function Mk(e){let t=M();if(vb(bD(e)),Eb(qO(e)),PO(e),Ek(e),Uc(WO(e)),t){t.on(`beforeSendEvent`,MO(e)),t.on(`afterSendEvent`,kO(e)),t.on(`createDsc`,t=>{let n=e.getSessionId();n&&e.isEnabled()&&e.recordingMode===`session`&&e.checkAndHandleExpiredSession()&&(t.replay_id=n)}),t.on(`processSegmentSpan`,wO(e)),t.on(`spanStart`,t=>{e.lastActiveSpan=t}),t.on(`spanEnd`,t=>{e.lastActiveSpan=t});let n;t.on(`beforeSendFeedback`,async(t,r)=>{let i=t.contexts?.feedback;if(!r?.includeReplay||!i)return;if(i.source===`widget`&&n){i.replay_id=n,n=void 0;return}let a=e.getSessionId();e.isEnabled()&&a&&(i.source===`api`&&await e.sendBufferedReplayOrFlush(),i.replay_id=a)}),t.on(`openFeedbackWidget`,async()=>{n=void 0,await e.sendBufferedReplayOrFlush(),n=e.isEnabled()?e.getSessionId():void 0})}}async function Nk(e){try{return await Promise.all(GO(e,[Pk(K.performance.memory)]))}catch{return[]}}function Pk(e){let{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,i=Date.now()/1e3;return{type:`memory`,name:`memory`,start:i,end:i,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}function Fk(e,t,n){return is(e,t,{...n,setTimeoutImpl:Mb})}var Ik=i.navigator;function Lk(){return/iPhone|iPad|iPod/i.test(Ik?.userAgent??``)||/Macintosh/i.test(Ik?.userAgent??``)&&Ik?.maxTouchPoints&&Ik?.maxTouchPoints>1?{sampling:{mousemove:!1}}:{}}function Rk(e){let t=!1;return(n,r)=>{try{if(!e.checkAndHandleExpiredSession()){Q&&$.warn(`Received replay event after session expired.`);return}let i=r||!t;t=!0,zk(n),e.clickDetector&&fD(e.clickDetector,n),e.addUpdate(()=>{if(e.recordingMode===`buffer`&&i&&e.setInitialState(),!_O(e,n,i)
499)return!0;if(!i)return!1;let t=e.session;if(Vk(e,i),e.recordingMode===`buffer`&&t&&e.eventBuffer&&!t.dirty){let n=e.eventBuffer.getEarliestTimestamp();n&&(Q&&$.log(`Updating session start time to earliest event in buffer to ${new Date(n)}`),t.started=n,e.getOptions().stickySession&&sO(t))}return t?.previousSessionId||e.recordingMode===`session`&&e.flush(),!0})}catch(t){e.handleException(t)}}}function zk(e){let t=e.data;if(e.type===J.IncrementalSnapshot&&t&&typeof t==`object`&&`source`in t&&t.source===Y.Mutation&&`attributes`in t&&Array.isArray(t.attributes))for(let e of t.attributes){let t=HE.mirror.getNode(e.id),n=t&&HE.mirror.getMeta(t);if(!t||n?.type!==gD.Element)continue;let r={...n.attributes},i=!1;for(let[t,n]of Object.entries(e.attributes))vD.has(t)&&(n===null?delete r[t]:r[t]=n,i=!0);i&&HE.mirror.add(t,{...n,attributes:r})}}function Bk(e){let t=e.getOptions();return{type:J.Custom,timestamp:Date.now(),data:{tag:`options`,payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:e.eventBuffer?e.eventBuffer.type===`worker`:!1,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}function Vk(e,t){t&&e.session?.segmentId===0&&_O(e,Bk(e),!1)}function Hk(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function Uk(e,t,n,r){return Ma(Ka(e,Ga(e),r,n),[[{type:`replay_event`},e],[{type:`replay_recording`,length:typeof t==`string`?new TextEncoder().encode(t).length:t.length},t]])}function Wk({recordingData:e,headers:t}){let n,r=`${JSON.stringify(t)}
500`;if(typeof e==`string`)n=`${r}${e}`;else{let t=new TextEncoder().encode(r);n=new Uint8Array(t.length+e.length),n.set(t),n.set(e,t.length)}return n}async function Gk({client:e,scope:t,replayId:n,event:r}){let i={event_id:n,integrations:typeof e._integrations==`object`&&e._integrations!==null&&!Array.isArray(e._integrations)?Object.keys(e._integrations):void 0};e.emit(`preprocessEvent`,r,i);let a=await hc(e.getOptions(),r,i,t,e,j());if(!a)return null;e.emit(`postprocessEvent`,a,i),a.platform=a.platform||`javascript`;let{name:o,version:s,settings:c}=e.getSdkMetadata()?.sdk||{};return a.sdk={...a.sdk,name:o||`sentry.javascript.unknown`,version:s||`0.0.0`,settings:c},a}async function Kk({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:i,session:a}){let o=Wk({recordingData:e,headers:{segment_id:n}}),{urls:s,errorIds:c,traceIds:l,segmentNames:u,initialTimestamp:d}=r,f=M(),p=A(),m=f?.getTransport(),h=f?.getDsn();if(!f||!m||!h||!a.sampled)return Promise.resolve({});let g=await Gk({scope:p,client:f,replayId:t,event:{type:PC,replay_start_timestamp:d/1e3,timestamp:i/1e3,error_ids:c,trace_ids:l,segment_names:u,urls:s,replay_id:t,segment_id:n,replay_type:a.sampled}});if(!g)return Q&&$.log("An event processor returned `null`, will not send event."),Promise.resolve({});delete g.sdkProcessingMetadata;let _=Uk(g,o,h,f.getOptions().tunnel),v;try{v=await m.send(_)}catch(e){let t=Error(FC);try{t.cause=e}catch{}throw t}let y=Pl({},v);if(Nl(y,`replay`))throw new Jk(y);if(typeof v.statusCode==`number`&&(v.statusCode<200||v.statusCode>=300))throw new qk(v.statusCode);return v}var qk=class extends Error{constructor(e){super(`Transport returned status code ${e}`)}},Jk=class extends Error{constructor(e){super(`Rate limit hit`),this.rateLimits=e}},Yk=class extends Error{constructor(){super(`Session is too long, not sending replay`)}};async function Xk(e,t={count:0,interval:VC}){let{recordingData:n,onError:r}=e;if(n.length)try{return await Kk(e),!0}catch(n){if(n instanceof qk||n instanceof Jk)throw n;if(kc(`Replays`,{_retryCount:t.count}),r&&r(n),t.count>=HC){let e=Error(`${FC} - max retries exceeded`);try{e.cause=n}catch{}throw e}return t.interval*=++t.count,new Promise((n,r)=>{Mb(async()=>{try{await Xk(e,t),n(!0)}catch(e){r(e)}},t.interval)})}}var Zk=`__THROTTLED`,Qk=`__SKIPPED`;
500function $k(e,t,n){let r=new Map,i=e=>{let t=e-n;r.forEach((e,n)=>{n<t&&r.delete(n)})},a=()=>[...r.values()].reduce((e,t)=>e+t,0),o=!1;return(...n)=>{let s=Math.floor(Date.now()/1e3);if(i(s),a()>=t){let e=o;return o=!0,e?Qk:Zk}o=!1;let c=r.get(s)||0;return r.set(s,c+1),e(...n)}}var eA=class{constructor({options:e,recordingOptions:t}){this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode=`session`,this.timeouts={sessionIdlePause:IC,sessionIdleExpire:LC},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,segmentNames:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:``},this._recordingOptions=t,this._options=e,this._debouncedFlush=Fk(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=$k((e,t)=>vO(this,e,t),300,5);let{slowClickTimeout:n,slowClickIgnoreSelectors:r}=this.getOptions(),i=n?{threshold:Math.min(GC,n),timeout:n,scrollTimeout:KC,ignoreSelector:r?r.join(`,`):``}:void 0;if(i&&(this.clickDetector=new sD(this,i)),Q){let t=e._experiments;$.setConfig({captureExceptions:!!t.captureExceptions,traceInternals:!!t.traceInternals})}this._handleVisibilityChange=()=>{K.document.visibilityState===`visible`?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()},this._handleWindowBlur=()=>{let e=hD({category:`ui.blur`});this._doChangeToBackgroundTasks(e)},this._handleWindowFocus=()=>{let e=hD({category:`ui.focus`});this._doChangeToForegroundTasks(e)},this._handleKeyboardEvent=e=>{TD(this,e)}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(e){Q&&$.exception(e),this._options.onError&&this._options.onError(e)}initializeSampling(e){let{errorSampleRate:t,sessionSampleRate:n}=this._options,r=t<=0&&n<=0;if(this._requiresManualStart=r,!r){if(this._initializeSessionForSampling(e),!this.session){Q&&$.exception(Error(`Unable to initialize and create session`));return}this.session.sampled!==!1&&(this.recordingMode=this.session.sampled===`buffer`&&this.session.segmentId===0?`buffer`:`session`,Q&&$.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording())}}start(){if(this._isEnabled&&this.recordingMode===`session`){Q&&$.log(`Recording is already in progress`);return}if(this._isEnabled&&this.recordingMode===`buffer`){Q&&$.log("Buffering is in progress, call `flush()` to save the replay");return}Q&&$.infoTick(`Starting replay in session mode`),this._updateUserActivity();let e=hO({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this.recordingMode=`session`,this._initializeRecording()}startBuffering(){if(this._isEnabled){Q&&$.log("Buffering is in progress, call `flush()` to save the replay");return}Q&&$.infoTick(`Starting replay in buffer mode`);let e=hO({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=e,this.recordingMode=`buffer`,this._initializeRecording()}startRecording(){try{let e=this._canvas;this._stopRecording=HE({...this._recordingOptions,...this.recordingMode===`buffer`?{checkoutEveryNms:BC}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:Rk(this),...Lk(),onMutation:this._onMutationHandler.bind(this),...e?{recordCanvas:e.recordCanvas,getCanvasManager:e.getCanvasManager,sampling:e.sampling,dataURLOptions:e.dataURLOptions}:{}})}catch(e){this.handleException(e)}}stopRecording(){try{return this._stopRecording&&=(this._stopRecording(),void 0),!0}catch(e){return this.handleException(e),!1}}async stop({forceFlush:e=!1,reason:t}={}){if(!this._isEnabled)return;this._isEnabled=!1,this.recordingMode=`buffer`;let n=t??`manual`;M()?.emit(`replayEnd`,{sessionId:this.session?.id,reason:n});try{Q&&$.log(`Stopping Replay triggered by ${n}`),BO(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer?.destroy(),this.eventBuffer=null,iO(this)}catch(e){this.handleException(e)}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),Q&&$.log(`Pausing replay`))}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording(),Q&&$.log(`Resuming replay`))}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if(this.recordingMode===`session`)return this.flushImmediate();let t=Date.now();
500Q&&$.log(`Converting buffer to session`),await this.flushImmediate();let n=this.stopRecording();e&&n&&this.recordingMode!==`session`&&(this.recordingMode=`session`,this.session&&(this.session.dirty=!1,this._updateUserActivity(t),this._updateSessionActivity(t),this._maybeSaveSession(),VO(this.session.id)),this.startRecording())}addUpdate(e){let t=e();this.recordingMode!==`buffer`&&this._isEnabled&&t!==!0&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),!this._stopRecording){if(!this._checkSession())return;this.resume();return}this.checkAndHandleExpiredSession(),this._updateSessionActivity()}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return this.recordingMode===`buffer`?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(e){if(!(e&&this.session?.sampled===!1))return this.session?.id}checkAndHandleExpiredSession(){if(this._lastActivity&&fO(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session?.sampled===`session`){this.pause();return}return!!this._checkSession()}setInitialState(){let e=`${K.location.pathname}${K.location.hash}${K.location.search}`,t=`${K.location.origin}${e}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=t,this._context.initialTimestamp=Date.now(),this._context.urls.push(t)}throttledAddEvent(e,t){let n=this._throttledAddEvent(e,t);if(n===Zk){let e=hD({category:`replay.throttled`});this.addUpdate(()=>!_O(this,{type:qE,timestamp:e.timestamp||0,data:{tag:`breadcrumb`,payload:e,metric:!0}}))}return n}getCurrentRoute(){let e=this.lastActiveSpan||P(),t=e&&ki(e);if(!t)return;let n=N(t),r=n.attributes[ZC];if(r&&[`route`,`custom`].includes(r))return n.name}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=eO({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.session&&M()?.emit(`replayStart`,{sessionId:this.session.id,recordingMode:this.recordingMode}),this.startRecording(),this.recordingMode===`session`&&this.session&&VO(this.session.id)}_initializeSessionForSampling(e){let t=this._options.errorSampleRate>0,n=hO({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:t});this.session=n}_checkSession(){if(!this.session)return!1;let e=this.session;return!mO(e,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})||(this._refreshSession(e),!1)}async _refreshSession(e){this._isEnabled&&(await this.stop({reason:`sessionExpired`}),this.initializeSampling(e.id))}_addListeners(){try{K.document.addEventListener(`visibilitychange`,this._handleVisibilityChange),K.addEventListener(`blur`,this._handleWindowBlur),K.addEventListener(`focus`,this._handleWindowFocus),K.addEventListener(`keydown`,this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||=(Mk(this),!0)}catch(e){this.handleException(e)}this._performanceCleanupCallback=VD(this)}_removeListeners(){try{K.document.removeEventListener(`visibilitychange`,this._handleVisibilityChange),K.removeEventListener(`blur`,this._handleWindowBlur),K.removeEventListener(`focus`,this._handleWindowFocus),K.removeEventListener(`keydown`,this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this.handleException(e)}}_doChangeToBackgroundTasks(e){if(this.session){if(mO(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})){BO();return}e&&this._createCustomBreadcrumb(e),this.conditionalFlush()}}_doChangeToForegroundTasks(e){if(this.session){if(!this.checkAndHandleExpiredSession()){Q&&$.log(`Document has become active, but session has expired`);return}e&&this._createCustomBreadcrumb(e)}}_updateUserActivity(e=Date.now()){this._lastActivity=e}_updateSessionActivity(e=Date.now()){this.session&&(this.session.lastActivity=e,this._maybeSaveSession())}_createCustomBreadcrumb(e){this.addUpdate(()=>{this.throttledAddEvent({type:J.Custom,timestamp:e.timestamp||0,data:{tag:`breadcrumb`,payload:e}})})}_addPerformanceEntries(){let e=AD(this.performanceEntries).concat(this.replayPerformanceEntries);if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){let t=this._context.
500initialTimestamp/1e3;e=e.filter(e=>e.start>=t)}return Promise.all(GO(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.segmentNames.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){let{session:e,eventBuffer:t}=this;if(!e||!t||this._requiresManualStart||e.segmentId)return;let n=t.getEarliestTimestamp();n&&n<this._context.initialTimestamp&&(this._context.initialTimestamp=n)}_popEventContext(){let e={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),segmentNames:Array.from(this._context.segmentNames),urls:this._context.urls};return this._clearContext(),e}async _runFlush(){let e=this.getSessionId();if(!this.session||!this.eventBuffer||!e){Q&&$.error(`No session or eventBuffer found to flush.`);return}if(await this._addPerformanceEntries(),this.eventBuffer?.hasEvents&&(await Nk(this),this.eventBuffer&&e===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();let t=Date.now();if(t-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new Yk;let n=this._popEventContext(),r=this.session.segmentId++;this._maybeSaveSession(),await Xk({replayId:e,recordingData:await this.eventBuffer.finish(),segmentId:r,eventContext:n,session:this.session,timestamp:t,onError:e=>this.handleException(e)})}catch(e){this.handleException(e),this.stop({reason:`sendError`});let t=M();if(t){let n;n=e instanceof Jk?`ratelimit_backoff`:e instanceof Yk?`invalid`:`send_error`,t.recordDroppedEvent(n,`replay`)}}}async _flush({force:e=!1}={}){if(!this._isEnabled&&!e)return;if(!this.checkAndHandleExpiredSession()){Q&&$.error(`Attempting to finish replay event after session expired.`);return}if(!this.session)return;let t=this.session.started,n=Date.now()-t;this._debouncedFlush.cancel();let r=n<this._options.minReplayDuration,i=n>this._options.maxReplayDuration+5e3;if(r||i){Q&&$.log(`Session duration (${Math.floor(n/1e3)}s) is too ${r?`short`:`long`}, not sending replay.`),r&&this._debouncedFlush();return}let a=this.eventBuffer;a&&this.session.segmentId===0&&!a.hasCheckout&&Q&&$.log(`Flushing initial segment without checkout.`);let o=!!this._flushLock;this._flushLock||=this._runFlush();try{await this._flushLock}catch(e){this.handleException(e)}finally{this._flushLock=void 0,o&&this._debouncedFlush()}}_maybeSaveSession(){this.session&&this._options.stickySession&&sO(this.session)}_onMutationHandler(e){let{ignoreMutations:t}=this._options._experiments;if(t?.length&&e.some(e=>{let n=Hk(e.target),r=t.join(`,`);return n?.matches(r)}))return!1;let n=e.length,r=this._options.mutationLimit,i=this._options.mutationBreadcrumbLimit,a=r&&n>r;if(n>i||a){let e=hD({category:`replay.mutations`,data:{count:n,limit:a}});this._createCustomBreadcrumb(e)}return!a||(this.stop({reason:`mutationLimit`,forceFlush:this.recordingMode===`session`}),!1)}};function tA(e,t){return[...e,...t].join(`,`)}function nA({mask:e,unmask:t,block:n,unblock:r,ignore:i}){return{maskTextSelector:tA(e,[`.sentry-mask`,`[data-sentry-mask]`]),unmaskTextSelector:tA(t,[]),blockSelector:tA(n,[`.sentry-block`,`[data-sentry-block]`,`base`,`iframe[srcdoc]:not([src])`]),unblockSelector:tA(r,[]),ignoreSelector:tA(i,[`.sentry-ignore`,`[data-sentry-ignore]`,`input[type="file"]`])}}function rA({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:i,value:a}){if(i.unmaskTextSelector&&e.matches(i.unmaskTextSelector))return a;let o=n.includes(t),s=r&&t===`value`&&e.tagName===`INPUT`&&[`submit`,`button`].includes(e.getAttribute(`type`)||``);return o||s?a.replace(/[\S]/g,`*`):a}var iA=`img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]`,aA=[`content-length`,`content-type`,`accept`],oA=Symbol.for(`sentry__originalRequestBody`),sA=!1,cA=!1;function lA(){if(typeof Request>`u`||cA)return;let e=Request;try{let t=function(t,n){let r=new e(t,n);return n?.body!=null&&(r[oA]=n.body),r};t.prototype=e.prototype,i.Request=t,cA=!0}catch{}}var uA=(e=>new dA(e)),dA=class{constructor({flushMinDelay:e=RC,flushMaxDelay:t=zC,minReplayDuration:n=JC,maxReplayDuration:r=XC,stickySession:i=!0,useCompression:a=!0,workerUrl:o,_experiments:s={},maskAllText:c=!0,maskAllInputs:l=!0,blockAllMedia:u=!0,mutationBreadcrumbLimit:d=750,mutationLimit:f=1e4,slowClickTimeout:p=7e3,slowClickIgnoreSelectors:m=[],networkDetailAllowUrls:h=[],networkDetailDenyUrls:g=[],networkCaptureBodies:_=!0,networkRequestHeaders:v=[],networkResponseHeaders:y=[],mask:b=[],maskAttributes:x=[`title`,`placeholder`,`aria-label`],unmask:S=[],block:C=[],unblock:w=[],ignore:T=[],maskFn:E,beforeAddRecordingEvent:ee,beforeErrorSampling:te,onError:ne,attachRawBodyFromRequest:D=!1}={}){this.name=`Replay`;let re=nA({mask:b,unmask:S,block:C,unblock:w,ignore:T});if(this._recordingOptions={maskAllInputs:l,maskAllText:c,maskInputOptions:{password:!0},maskTextFn:E,maskInputFn:E,maskAttributeFn:(e,t,n)=>rA({maskAttributes:x,maskAllText:c,privacyOptions:re,key:e,value:t,el:n}),...re,slimDOMOptions:`all`,inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:e=>{try{e.__rrweb__=!0}catch{}},recordCrossOriginIframes:!!s.recordCrossOriginIframes},this._initialOptions={flushMinDelay:e,flushMaxDelay:t,minReplayDuration:Math.min(n,YC),maxReplayDuration:Math.min(r,XC),stickySession:i,useCompression:a,workerUrl:o,blockAllMedia:u,maskAllInputs:l,maskAllText:c,mutationBreadcrumbLimit:d,mutationLimit:f,slowClickTimeout:p,slowClickIgnoreSelectors:m,networkDetailAllowUrls:h,networkDetailDenyUrls:g,networkCaptureBodies:_,networkRequestHeaders:pA(v),networkResponseHeaders:pA(y),beforeAddRecordingEvent:ee,beforeErrorSampling:te,onError:ne,attachRawBodyFromRequest:D,_experiments:s},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${iA}`:iA,this._recordingOptions.ignoreCSSAttributes=new Set([`background-image`])),this._isInitialized&&Za())throw Error(`Multiple Sentry Session Replay instances are not supported`);this._isInitialized=!0}get _isInitialized(){return sA}set _isInitialized(e){sA=e}afterAllSetup(e){Za()&&!this._replay&&(this._initialOptions.attachRawBodyFromRequest&&lA(),this._setup(e),this._initialize(e))}start(){this._replay&&this._replay.start()}
500startBuffering(){this._replay&&this._replay.startBuffering()}stop(e){return this._replay?this._replay.stop({forceFlush:e?.flush??this._replay.recordingMode===`session`,reason:`manual`}):Promise.resolve()}flush(e){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(e):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(e){if(this._replay?.isEnabled())return this._replay.getSessionId(e)}getRecordingMode(){if(this._replay?.isEnabled())return this._replay.recordingMode}processSpan(e){let t=this.getReplayId(!0);t&&(Ea(e,{"sentry.replay_id":t}),this.getRecordingMode()===`buffer`&&Ea(e,{"sentry._internal.replay_is_buffering":!0}))}_initialize(e){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(e),this._replay.initializeSampling())}_setup(e){let t=fA(this._initialOptions,e);this._replay=new eA({options:t,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(e){try{let t=e.getIntegrationByName(`ReplayCanvas`);if(!t)return;this._replay._canvas=t.getOptions()}catch{}}};function fA(e,t){let n=t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...e},i=Xr(n.replaysSessionSampleRate),a=Xr(n.replaysOnErrorSampleRate);return i==null&&a==null&&f(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),i!=null&&(r.sessionSampleRate=i),a!=null&&(r.errorSampleRate=a),r}function pA(e){return[...aA,...e.map(e=>e.toLowerCase())]}function mA(){return M()?.getIntegrationByName(`Replay`)}var hA=Object.defineProperty,gA=(e,t,n)=>t in e?hA(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,_A=(e,t,n)=>gA(e,typeof t==`symbol`?t:t+``,n),vA=class{constructor(){_A(this,`idNodeMap`,new Map),_A(this,`nodeMetaMap`,new WeakMap)}getId(e){return e?this.getMeta(e)?.id??-1:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){let t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){let n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){let n=this.getNode(e);if(n){let e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function yA(){return new vA}function bA(e,t){for(let n=e.classList.length;n--;){let r=e.classList[n];if(t.test(r))return!0}return!1}function xA(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:xA(e.parentNode,t,n,r+1)}function SA(e,t){return n=>{let r=n;if(r===null)return!1;try{if(e){if(typeof e==`string`){if(r.matches(`.${e}`))return!0}else if(bA(r,e))return!0}return!!(t&&r.matches(t))}catch{return!1}}}var CA=`Please stop import mirror directly. Instead of that,\r
501now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
502or you can use record.mirror to access the mirror instance during recording.`,wA={map:{},getId(){return console.error(CA),-1},getNode(){return console.error(CA),null},removeNodeFromMap(){console.error(CA)},has(){return console.error(CA),!1},reset(){console.error(CA)}};typeof window<`u`&&window.Proxy&&window.Reflect&&(wA=new Proxy(wA,{get(e,t,n){return t===`map`&&console.error(CA),Reflect.get(e,t,n)}}));function TA(e,t,n,r,i=window){let a=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,r?n:{set(e){MA(()=>{n.set.call(this,e)},0),a&&a.set&&a.set.call(this,e)}}),()=>TA(e,t,a||{},!0)}function EA(e,t,n){try{if(!(t in e))return()=>{};let r=e[t],i=n(r);return typeof i==`function`&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,()=>{e[t]=r}}catch{return()=>{}}}Date.now().toString();function DA(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function OA(e,t,n,r,i){if(!e)return!1;let a=DA(e);if(!a)return!1;let o=SA(t,n);if(!i){let e=r&&a.matches(r);return o(a)&&!e}let s=xA(a,o),c=-1;return s<0?!1:(r&&(c=xA(a,SA(null,r))),s>-1&&c<0||s<c)}var kA={};function AA(e){let t=kA[e];
502if(t)return t;let n=window.document,r=window[e];if(n&&typeof n.createElement==`function`)try{let t=n.createElement(`iframe`);t.hidden=!0,n.head.appendChild(t);let i=t.contentWindow;i&&i[e]&&(r=i[e]),n.head.removeChild(t)}catch{}return kA[e]=r.bind(window)}function jA(...e){return AA(`requestAnimationFrame`)(...e)}function MA(...e){return AA(`setTimeout`)(...e)}var NA=(e=>(e[e[`2D`]=0]=`2D`,e[e.WebGL=1]=`WebGL`,e[e.WebGL2=2]=`WebGL2`,e))(NA||{}),PA;function FA(e){PA=e}for(var IA=e=>PA?((...t)=>{try{return e(...t)}catch(e){if(PA&&PA(e)===!0)return()=>{};throw e}}):e,LA=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,RA=typeof Uint8Array>`u`?[]:new Uint8Array(256),zA=0;zA<LA.length;zA++)RA[LA.charCodeAt(zA)]=zA;var BA=function(e){var t=new Uint8Array(e),n,r=t.length,i=``;for(n=0;n<r;n+=3)i+=LA[t[n]>>2],i+=LA[(t[n]&3)<<4|t[n+1]>>4],i+=LA[(t[n+1]&15)<<2|t[n+2]>>6],i+=LA[t[n+2]&63];return r%3==2?i=i.substring(0,i.length-1)+`=`:r%3==1&&(i=i.substring(0,i.length-2)+`==`),i},VA=new Map;function HA(e,t){let n=VA.get(e);return n||(n=new Map,VA.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}var UA=(e,t,n)=>{if(!e||!(KA(e,t)||typeof e==`object`))return;let r=e.constructor.name,i=HA(n,r),a=i.indexOf(e);return a===-1&&(a=i.length,i.push(e)),a};function WA(e,t,n){if(e instanceof Array)return e.map(e=>WA(e,t,n));if(e===null)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray)return{rr_type:e.constructor.name,args:[Object.values(e)]};if(e instanceof ArrayBuffer)return{rr_type:e.constructor.name,base64:BA(e)};if(e instanceof DataView)return{rr_type:e.constructor.name,args:[WA(e.buffer,t,n),e.byteOffset,e.byteLength]};if(e instanceof HTMLImageElement){let t=e.constructor.name,{src:n}=e;return{rr_type:t,src:n}}return e instanceof HTMLCanvasElement?{rr_type:`HTMLImageElement`,src:e.toDataURL()}:e instanceof ImageData?{rr_type:e.constructor.name,args:[WA(e.data,t,n),e.width,e.height]}:KA(e,t)||typeof e==`object`?{rr_type:e.constructor.name,index:UA(e,t,n)}:e}
502var GA=(e,t,n)=>e.map(e=>WA(e,t,n)),KA=(e,t)=>!![`WebGLActiveInfo`,`WebGLBuffer`,`WebGLFramebuffer`,`WebGLProgram`,`WebGLRenderbuffer`,`WebGLShader`,`WebGLShaderPrecisionFormat`,`WebGLTexture`,`WebGLUniformLocation`,`WebGLVertexArrayObject`,`WebGLVertexArrayObjectOES`].filter(e=>typeof t[e]==`function`).find(n=>e instanceof t[n]);function qA(e,t,n,r,i){let a=[],o=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(let s of o)try{if(typeof t.CanvasRenderingContext2D.prototype[s]!=`function`)continue;let o=EA(t.CanvasRenderingContext2D.prototype,s,function(a){return function(...o){return OA(this.canvas,n,r,i,!0)||MA(()=>{let n=GA(o,t,this);e(this.canvas,{type:NA[`2D`],property:s,args:n})},0),a.apply(this,o)}});a.push(o)}catch{let n=TA(t.CanvasRenderingContext2D.prototype,s,{set(t){e(this.canvas,{type:NA[`2D`],property:s,args:[t],setter:!0})}});a.push(n)}return()=>{a.forEach(e=>e())}}function JA(e){return e===`experimental-webgl`?`webgl`:e}function YA(e,t,n,r,i){let a=[];try{let o=EA(e.HTMLCanvasElement.prototype,`getContext`,function(e){return function(a,...o){if(!OA(this,t,n,r,!0)){let e=JA(a);if(`__context`in this||(this.__context=e),i&&[`webgl`,`webgl2`].includes(e)){if(o[0]&&typeof o[0]==`object`){let e=o[0];e.preserveDrawingBuffer||=!0}else o.splice(0,1,{preserveDrawingBuffer:!0})}}return e.apply(this,[a,...o])}});a.push(o)}catch{console.error(`failed to patch HTMLCanvasElement.prototype.getContext`)}return()=>{a.forEach(e=>e())}}function XA(e,t,n,r,i,a,o,s){let c=[],l=Object.getOwnPropertyNames(e);for(let o of l)if(![`isContextLost`,`canvas`,`drawingBufferWidth`,`drawingBufferHeight`].includes(o))try{if(typeof e[o]!=`function`)continue;let l=EA(e,o,function(e){return function(...c){let l=e.apply(this,c);if(UA(l,s,this),`tagName`in this.canvas&&!OA(this.canvas,r,i,a,!0)){let e=GA(c,s,this),r={type:t,property:o,args:e};n(this.canvas,r)}return l}});c.push(l)}catch{let r=TA(e,o,{set(e){n(this.canvas,{type:t,property:o,args:[e],setter:!0})}});c.push(r)}return c}function ZA(e,t,n,r,i,a){let o=[];return o.push(...XA(t.WebGLRenderingContext.prototype,NA.WebGL,e,n,r,i,a,t)),t.WebGL2RenderingContext!==void 0&&o.push(...XA(t.WebGL2RenderingContext.prototype,NA.WebGL2,e,n,r,i,a,t)),()=>{o.forEach(e=>e())}}var QA=`for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="undefined"==typeof Uint8Array?[]:new Uint8Array(256),a=0;a<64;a++)t[e.charCodeAt(a)]=a;var n=function(t){var a,n=new Uint8Array(t),r=n.length,s="";for(a=0;a<r;a+=3)s+=e[n[a]>>2],s+=e[(3&n[a])<<4|n[a+1]>>4],s+=e[(15&n[a+1])<<2|n[a+2]>>6],s+=e[63&n[a+2]];return r%3==2?s=s.substring(0,s.length-1)+"=":r%3==1&&(s=s.substring(0,s.length-2)+"=="),s};const r=new Map,s=new Map;const i=self;i.onmessage=async function(e){if(!("OffscreenCanvas"in globalThis))return i.postMessage({id:e.data.id});{const{id:t,bitmap:a,width:o,height:f,maxCanvasSize:c,dataURLOptions:g}=e.data,u=async function(e,t,a){const r=e+"-"+t;if("OffscreenCanvas"in globalThis){if(s.has(r))return s.get(r);const i=new OffscreenCanvas(e,t);i.getContext("2d");const o=await i.convertToBlob(a),f=await o.arrayBuffer(),c=n(f);return s.set(r,c),c}return""}(o,f,g),[h,d]=function(e,t,a){if(!a)return[e,t];const[n,r]=a;if(e<=n&&t<=r)return[e,t];let s=e,i=t;return s>n&&(i=Math.floor(n*t/e),s=n),i>r&&(s=Math.floor(r*e/t),i=r),[s,i]}(o,f,c),l=new OffscreenCanvas(h,d),w=l.getContext("bitmaprenderer"),p=h===o&&d===f?a:await createImageBitmap(a,{resizeWidth:h,resizeHeight:d,resizeQuality:"low"});w?.transferFromImageBitmap(p),a.close();const y=await l.convertToBlob(g),v=y.type,b=await y.arrayBuffer(),m=n(b);if(p.close(),!r.has(t)&&await u===m)return r.set(t,m),i.postMessage({id:t});if(r.get(t)===m)return i.postMessage({id:t});i.postMessage({id:t,type:v,base64:m,width:o,height:f}),r.set(t,m)}};`;function $A(){let e=new Blob([QA]);return URL.createObjectURL(e)}var ej=class{constructor(e){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.shadowDoms=new Set,this.windowsSet=new WeakSet,this.windows=[],this.restoreHandlers=[],this.frozen=!1,this.locked=!1,this.snapshotInProgressMap=new Map,this.worker=null,this.lastSnapshotTime=0,this.processMutation=(e,t)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(e)||this.pendingCanvasMutations.set(e,[]),this.pendingCanvasMutations.get(e).push(t)};let{enableManualSnapshot:t,sampling:n=`all`,win:r,recordCanvas:i,errorHandler:a}=e;e.sampling=n,this.mutationCb=e.mutationCb,this.mirror=e.mirror,this.options=e,a&&FA(a),(i&&typeof n==`
502number`||t)&&(this.worker=this.initFPSWorker()),this.addWindow(r),!t&&IA(()=>{i&&n===`all`&&(this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher()),i&&typeof n==`number`&&this.initCanvasFPSObserver()})()}reset(){this.pendingCanvasMutations.clear(),this.restoreHandlers.forEach(e=>{try{e()}catch{}}),this.restoreHandlers=[],this.windowsSet=new WeakSet,this.windows=[],this.shadowDoms=new Set,this.worker?.terminate(),this.worker=null,this.snapshotInProgressMap=new Map}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}addWindow(e){let{sampling:t=`all`,blockClass:n,blockSelector:r,unblockSelector:i,recordCanvas:a,enableManualSnapshot:o}=this.options;if(!this.windowsSet.has(e)){if(o){this.windowsSet.add(e),this.windows.push(new WeakRef(e));return}IA(()=>{if(a&&t===`all`&&this.initCanvasMutationObserver(e,n,r,i),a&&typeof t==`number`){let t=YA(e,n,r,i,!0);this.restoreHandlers.push(()=>{t()})}})(),this.windowsSet.add(e),this.windows.push(new WeakRef(e))}}addShadowRoot(e){this.shadowDoms.add(new WeakRef(e))}resetShadowRoots(){this.shadowDoms=new Set}snapshot(e,t){if(t?.skipRequestAnimationFrame){this.takeSnapshot(performance.now(),!0,e);return}jA(t=>this.takeSnapshot(t,!0,e))}initFPSWorker(){let e=new Worker($A());return e.onmessage=e=>{let t=e.data,{id:n}=t;if(this.snapshotInProgressMap.set(n,!1),!(`base64`in t))return;let{base64:r,type:i,width:a,height:o}=t;this.mutationCb({id:n,type:NA[`2D`],commands:[{property:`clearRect`,args:[0,0,a,o]},{property:`drawImage`,args:[{rr_type:`ImageBitmap`,args:[{rr_type:`Blob`,data:[{rr_type:`ArrayBuffer`,base64:r}],type:i}]},0,0,a,o]}]})},e}initCanvasFPSObserver(){let e;if(!this.windows.length&&!this.shadowDoms.size)return;let t=n=>{this.takeSnapshot(n,!1),e=jA(t)};e=jA(t),this.restoreHandlers.push(()=>{e&&cancelAnimationFrame(e)})}initCanvasMutationObserver(e,t,n,r){let i=YA(e,t,n,r,!1),a=qA(this.processMutation.bind(this),e,t,n,r),o=ZA(this.processMutation.bind(this),e,t,n,r,this.mirror);this.restoreHandlers.push(()=>{i(),a(),o()})}getCanvasElements(e,t,n){let r=[],i=i=>{i.querySelectorAll(`canvas`).forEach(i=>{OA(i,e,t,n,!0)||r.push(i)})};for(let e of this.windows){let t=e.deref(),n;try{n=t&&t.document}catch{}n&&i(n)}for(let e of this.shadowDoms){let t=e.deref();t&&i(t)}return r}takeSnapshot(e,t,n){let{sampling:r,blockClass:i,blockSelector:a,unblockSelector:o,dataURLOptions:s,maxCanvasSize:c}=this.options,l=1e3/(r===`all`?2:r||2);return this.lastSnapshotTime&&e-this.lastSnapshotTime<l?!1:(this.lastSnapshotTime=e,(n?[n]:this.getCanvasElements(i,a,o)).forEach(e=>{let n=this.mirror.getId(e);if(this.mirror.hasNode(e)&&e.width&&e.height&&!this.snapshotInProgressMap.get(n)){if(this.snapshotInProgressMap.set(n,!0),!t&&[`webgl`,`webgl2`].includes(e.__context)){let t=e.getContext(e.__context);t?.getContextAttributes()?.preserveDrawingBuffer===!1&&t.clear(t.COLOR_BUFFER_BIT)}createImageBitmap(e).then(t=>{this.worker?.postMessage({id:n,bitmap:t,width:e.width,height:e.height,dataURLOptions:s,maxCanvasSize:c},[t])}).catch(e=>{IA(()=>{throw this.snapshotInProgressMap.delete(n),e})()})}}),!0)}startPendingCanvasMutationFlusher(){jA(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){let e=t=>{this.rafStamps.latestId=t,jA(e)};jA(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((e,t)=>{let n=this.mirror.getId(t);this.flushPendingCanvasMutationFor(t,n)}),jA(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(e,t){if(this.frozen||this.locked)return;let n=this.pendingCanvasMutations.get(e);if(!n||t===-1)return;let r=n.map(e=>{let{type:t,...n}=e;return n}),{type:i}=n[0];this.mutationCb({id:t,type:i,commands:r}),this.pendingCanvasMutations.delete(e)}};try{if(Array.from([1],e=>e*2)[0]!==2){let e=document.createElement(`iframe`);document.body.appendChild(e),Array.from=e.contentWindow?.Array.from||Array.from,document.body.removeChild(e)}}catch(e){console.debug(`Unable to override Array.from`,e)}yA();var tj;(function(e){e[e.NotStarted=0]=`NotStarted`,e[e.Running=1]=`Running`,e[e.Stopped=2]=`Stopped`})(tj||={});var nj={low:{sampling:{canvas:1},dataURLOptions:{type:`image/webp`,quality:.25}},medium:{sampling:{canvas:2},dataURLOptions:{type:`image/webp`,quality:.4}},high:{sampling:{canvas:4},dataURLOptions:{type:`image/webp`,quality:.5}}},rj=`ReplayCanvas`,ij=1280,aj=F(((e={})=>{let[t,n]=e.maxCanvasSize||[],r={quality:e.quality||`medium`,enableManualSnapshot:e.enableManualSnapshot,maxCanvasSize:[t?Math.min(t,ij):ij,n?Math.min(n,ij):ij]},i,a,o=new Promise(e=>a=e);return{name:rj,getOptions(){let{quality:e,enableManualSnapshot:t,maxCanvasSize:n}=r;return{enableManualSnapshot:t,recordCanvas:!0,getCanvasManager:e=>{let r=new ej({...e,enableManualSnapshot:t,maxCanvasSize:n,errorHandler:e=>{try{typeof e==`object`&&(e.__rrweb__=!0)}catch{}}});return i=r,a(r),r},...nj[e]||nj.medium}},async snapshot(e,t){(i||await o).snapshot(e,t)}}}));function oj(e){return e.split(`,`).some(e=>e.trim().startsWith(`sentry-`))}function sj(e){try{return new URL(e,W.location.origin).href}catch{return}}function cj(e){return e.entryType===`resource`&&`initiatorType`in e&&typeof e.nextHopProtocol==`string`&&(e.initiatorType===`fetch`||e.initiatorType===`xmlhttprequest`)}function lj(e){try{return new Headers(e)}catch{return}}var uj={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0};function dj(e,t){let{traceFetch:n,traceXHR:r,shouldCreateSpanForRequest:i,enableHTTPTimings:a,tracePropagationTargets:o,onRequestSpanStart:s,onRequestSpanEnd:c}
502={...uj,...t},l=typeof i==`function`?i:e=>!0,u=e=>mj(e,o),d={},f=e.getOptions().propagateTraceparent;n&&Cp(t=>{let n=up(t,l,u,d,{propagateTraceparent:f,onRequestSpanEnd:c,urlBase:W.location?.origin});if(n){let r=sj(t.fetchData.url),i=r?Hu(r).host?.replace(/^.*@/,``):void 0,o=r?Wu(r):void 0;n.setAttributes({[Zn]:Nu(o),[Kn]:i}),a&&pj(n,e),s?.(n,{headers:t.headers})}}),r&&Pb(t=>{let n=hj(t,l,u,d,f,c);n&&(a&&pj(n,e),s?.(n,{headers:lj(t.xhr.__sentry_xhr_v3__?.request_headers)}))})}var fj=300;function pj(e,t){let n=N(e).attributes[Zn];if(!n||typeof n!=`string`)return;let r=()=>void setTimeout(i);if(I(t)){let t=e.end.bind(e);e.end=e=>{let n=e??wt(),a=!1,o=()=>{a||(a=!0,setTimeout(i),t(n),clearTimeout(s))};r=o;let s=setTimeout(o,fj)}}let i=sv(`resource`,({entries:t})=>{t.forEach(t=>{cj(t)&&t.name.endsWith(n)&&(e.setAttributes(Rv(t)),r())})})}function mj(e,t){let n=Jy();if(n){let r,i;try{r=new URL(e,n),i=new URL(n).origin}catch{return!1}let a=r.origin===i;return t?ad(r.toString(),t)||a&&ad(r.pathname,t):a}{let n=!!e.match(/^\/(?!\/)/);return t?ad(e,t):n}}function hj(e,t,n,r,i,a){let o=e.xhr,s=o?.[Nb];if(!o||o.__sentry_own_request__||!s)return;let{url:c,method:l}=s,u=Ii()&&t(c);if(e.endTimestamp){let t=o.__sentry_xhr_span_id__;if(!t)return;let n=r[t];n&&(u&&s.status_code!==void 0&&(Tr(n,s.status_code),n.end(),a?.(n,{headers:lj(Vb(o)),error:e.error})),delete r[t]);return}let d=sj(c),f=Hu(d||c),p=d?Wu(d):void 0,m=Wu(Uu(c)),h=M(),g=!!P(),_=g||!!h&&I(h),v=f?.host?.replace(/^.*@/,``),y=Vu(d||c),b=y?`${l} ${y}`:l,x=u&&_?Zo({name:h&&I(h)?b:`${l} ${m}`,attributes:{type:`xhr`,[Tn]:l,[Zn]:Nu(p),[Kn]:v,[Yn]:y,[or]:`auto.http.browser`,[In]:Hs,[$n]:Pu(zu(f?.search)),[Xn]:Bu(f?.hash)}}):new Zi,S=Go(x)&&g?void 0:x;return u&&!_&&h?.recordDroppedEvent(`no_parent_span`,`span`),o.__sentry_xhr_span_id__=x.spanContext().spanId,r[o.__sentry_xhr_span_id__]=x,n(c)&&gj(o,Ii()&&_?S:void 0,i),h&&h.emit(`beforeOutgoingRequestSpan`,x,e),x}function gj(e,t,n){let{"sentry-trace":r,baggage:i,traceparent:a}=ed({span:t,propagateTraceparent:n});r&&_j(e,r,i,a)}function _j(e,t,n,r){let i=e.__sentry_xhr_v3__?.request_headers;if(!i?.[`sentry-trace`]&&e.setRequestHeader)try{if(e.setRequestHeader(`sentry-trace`,t),r&&!i?.traceparent&&e.setRequestHeader(`traceparent`,r),n){let t=i?.baggage;(!t||!oj(t))&&e.setRequestHeader(`baggage`,n)}}catch{}}var vj=`WebVitals`,yj=F((e={})=>{let{ignore:t=[],softNavigations:n=!0,bfcacheNavigations:r=!0}=e,i=new Set(t);return{name:vj,setup(e){let t=I(e),a=n&&t&&kv(),o=r&&t,s=a||o;a&&(ev(),Av(e)),o&&tv();let c=!t&&!i.has(`cls`),l=!t&&!i.has(`lcp`),u=xy({trackCls:c,trackLcp:l,client:e}),d=new WeakSet;e.on(`afterStartPageLoadSpan`,e=>{d.add(e)}),e.on(`spanEnd`,e=>{d.delete(e)&&(u(),Dy(e,{recordClsOnPageloadSpan:c,recordLcpOnPageloadSpan:l,spanStreamingEnabled:t}))}),t&&(i.has(`lcp`)||ob(e,s),i.has(`cls`)||cb(e,s)),i.has(`inp`)||ub(e,s)},afterAllSetup(){i.has(`inp`)||zy()}}});function bj(){W.document?W.document.addEventListener(`visibilitychange`,()=>{let e=P();if(!e)return;let t=ki(e);if(W.document.hidden&&t){let e=`cancelled`,{attributes:{[In]:n},status:r}=N(t);G&&x.log(`[Tracing] Transaction: ${e} -> since tab moved to the background, op: ${n}`),r===`ok`&&t.setStatus({code:2,message:e}),t.setAttribute(`sentry.cancellation_reason`,`document.hidden`),t.end()}}):G&&x.warn(`[Tracing] Could not set up background tab detection due to lack of global document`)}var xj=`sentry_previous_trace`,Sj=`sentry.previous_trace`;function Cj(e,{linkPreviousTrace:t,consistentTraceSampling:n}){let r=t===`session-storage`,i=r?Ej():void 0;e.on(`spanStart`,e=>{if(ki(e)!==e)return;let t=A().getPropagationContext();i=wj(i,e,t),r&&Tj(i)});let a=!0;n&&e.on(`beforeSampling`,e=>{if(!i)return;let t=A(),n=t.getPropagationContext();if(a&&n.parentSpanId){a=!1;return}t.setPropagationContext({...n,dsc:{...n.dsc,sample_rate:String(i.sampleRate),sampled:String(Dj(i.spanContext))},sampleRand:i.sampleRand}),e.parentSampled=Dj(i.spanContext),e.parentSampleRate=i.sampleRate,e.spanAttributes={...e.spanAttributes,[ir]:i.sampleRate}})}function wj(e,t,n){let r=N(t);function i(){try{let e=Number(r.attributes[`sentry.sample_rate`]??n.dsc?.sample_rate);return Number.isNaN(e)?0:e}catch{return 0}}let a={spanContext:t.spanContext(),startTimestamp:r.start_timestamp,sampleRate:i(),sampleRand:n.sampleRand};if(!e)return a;let o=e.spanContext;return o.traceId===r.trace_id?e:(Date.now()/1e3-e.startTimestamp<=3600&&(G&&x.log(`Adding previous_trace \`${JSON.stringify(o)}\` link to span \`${JSON.stringify({op:r.attributes[In],...t.spanContext()})}\``),t.addLink({context:o,attributes:{[br]:`previous_trace`}}),t.setAttribute(Sj,`${o.traceId}-${o.spanId}-${+!!Dj(o)}`)),a)}function Tj(e){try{W.sessionStorage.setItem(xj,JSON.stringify(e))}catch(e){G&&x.warn(`Could not store previous trace in sessionStorage`,e)}}function Ej(){try{let e=W.sessionStorage?.getItem(xj);return JSON.parse(e)}catch{return}}function Dj(e){return e.traceFlags===1}var Oj=`BrowserTracing`,kj={...Qo,instrumentNavigation:!0,instrumentBfcacheRestore:!0,instrumentPageLoad:!0,markBackgroun
502dSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,ignoreResourceSpans:[],detectRedirects:!0,linkPreviousTrace:`in-memory`,consistentTraceSampling:!1,enableReportPageLoaded:!1,...uj},Aj=((e={})=>{`enableElementTiming`in e&&f(()=>{console.warn("[Sentry] `enableElementTiming` is deprecated and no longer has any effect. Use the standalone `elementTimingIntegration` instead.")});let t=W.document,{enableInp:n,enableLongTask:r,enableLongAnimationFrame:a,webVitals:o,beforeStartSpan:s,idleTimeout:c,finalTimeout:l,childSpanTimeout:u,markBackgroundSpan:d,traceFetch:p,traceXHR:m,shouldCreateSpanForRequest:h,enableHTTPTimings:g,ignoreResourceSpans:_,instrumentPageLoad:v,instrumentNavigation:y,instrumentBfcacheRestore:b,detectRedirects:S,linkPreviousTrace:C,consistentTraceSampling:w,enableReportPageLoaded:T,onRequestSpanStart:E,onRequestSpanEnd:ee}={...kj,...e},te=Vy(),ne,D;function re(e,n,r=!0,i){let a=n.op===`pageload`,o=n.name,d=s?s(n):n,f=Lu(i||Jy()),p={...f?.pathname&&{"url.path":f.pathname},...f&&!Iu(f)&&{"url.full":Nu(f.href)},...d.attributes};if(o!==d.name&&(p[Un]=`custom`),d.attributes=p,!r){let e=xt();Zo({...d,startTime:e}).end(e);return}let m=rs(d,{idleTimeout:c,finalTimeout:l,childSpanTimeout:u,disableAutoFinish:a,trimIdleSpanEndTimestamp:!T});a&&T&&(D=m),Lj(e,m);function h(){t&&[`interactive`,`complete`].includes(t.readyState)&&(e.emit(`idleSpanEnableAutoFinish`,m),t.removeEventListener(`readystatechange`,h))}a&&!T&&t&&(t.addEventListener(`readystatechange`,h),h())}return{name:Oj,setup(e){if(te){G&&x.log(`[Tracing] Skipping browserTracingIntegration setup for bot user agent.`);return}if(Fi(),a&&i.PerformanceObserver&&PerformanceObserver.supportedEntryTypes?.includes(`long-animation-frame`)?Uv():r&&Hv(),S&&t){let e=()=>{ne=wt()};addEventListener(`click`,e,{capture:!0}),addEventListener(`keydown`,e,{capture:!0,passive:!0})}function n(){let t=Ij(e);t&&!N(t).end_timestamp&&(G&&x.log(`[Tracing] Finishing current active span with op: ${N(t).attributes[`sentry.op`]}`),t.setAttribute(Fn,`cancelled`),t.end())}e.on(`beforeIdleSpanEnd`,t=>{if(Ij(e)!==t)return;Wv(t,{ignoreResourceSpans:_,spanStreamingEnabled:I(e)}),Lj(e,void 0);let n=A(),r=n.getPropagationContext();n.setPropagationContext({...r,traceId:t.spanContext().traceId,sampled:bi(t),dsc:ra(t)}),D===t&&(D=void 0)}),e.on(`startNavigationSpan`,(t,r)=>{if(M()!==e)return;if(r?.isRedirect){G&&x.warn(`[Tracing] Detected redirect, navigation span will not be the root span, but a child span.`),re(e,{op:bs,...t},!1,r.url);return}ne=void 0,n();let i=A();i.setPropagationContext({traceId:Nt(),sampleRand:Math.random(),propagationSpanId:Ii()?void 0:Pt()}),i.setSDKProcessingMetadata({normalizedRequest:void 0}),re(e,{op:ys,...t,parentSpan:null},!0,r?.url)}),e.on(`startPageLoadSpan`,(t,r={})=>{if(M()!==e)return;n();let i=$r(r.sentryTrace||Nj(`sentry-trace`)||Pj(`sentry-trace`),r.baggage||Nj(`baggage`)||Pj(`baggage`)),a=A();a.setPropagationContext(i),Ii()||(a.getPropagationContext().propagationSpanId=Pt()),a.setSDKProcessingMetadata({normalizedRequest:Zb()}),re(e,{op:vs,...t})}),e.on(`endPageloadSpan`,()=>{T&&D&&(D.setAttribute(Fn,`reportPageLoaded`),D.end())}),W.addEventListener?.(`pagehide`,()=>{let t=Ij(e);t&&!N(t).end_timestamp&&(t.setAttribute(Fn,`documentHidden`),t.end()),e.flush()})},afterAllSetup(e){if(te)return;if(Jo(e),e.addIntegration&&!e.getIntegrationByName?.(`WebVitals`)){let t=o?.ignore??[];e.addIntegration(yj({...o,ignore:n||t.includes(`inp`)?t:[...t,`inp`]}))}let t=Jy();C!==`off`&&Cj(e,{linkPreviousTrace:C,consistentTraceSampling:w}),W.location&&(v&&jj(e,{name:I(e)?Ws:W.location.pathname,attributes:{[Un]:`url`,[Ln]:`auto.pageload.browser`}}),y&&Eb(({to:n,from:r})=>{if(r===void 0&&t!==void 0&&t.indexOf(n)!==-1){t=void 0;return}t=void 0;let i=Lu(n),a=Ij(e),o=a&&S&&zj(a,ne);Mj(e,{name:I(e)?Gs:i?.pathname||W.location.pathname,attributes:{[Un]:`url`,[Ln]:`auto.navigation.browser`}},{url:n,isRedirect:o})}),b&&W.addEventListener?.(`pageshow`,n=>{n.persisted&&(t=void 0,Mj(e,{name:I(e)?Gs:W.location?.pathname||`/`,attributes:{[Un]:`url`,[Ln]:`auto.navigation.browser.bfcache`,[gn]:`back-forward-cache`}},{url:W.location?.href}))})),d&&bj(),dj(e,{traceFetch:p,traceXHR:m,tracePropagationTargets:e.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:h,enableHTTPTimings:g,onRequestSpanStart:E,onRequestSpanEnd:ee})}}});function jj(e,t,n){let r=t.name===Ws;A().setTransactionName(r?W.location?.pathname:t.name);let i=Dt(),a={...t,startTime:t.startTime??(i?i/1e3:void 0)};e.emit(`startPageLoadSpan`,a,n);let o=Ij(e);return o&&e.emit(`afterStartPageLoadSpan`,o),o}function Mj(e,t,n){let{url:r,isRedirect:i}=n||{};e.emit(`beforeStartNavigationSpan`,t,{isRedirect:i,url:r}),e.emit(`startNavigationSpan`,t,{isRedirect:i,url:r});let a=A(),o=t.name===Gs;return a.setTransactionName(o?r&&Lu(r)?.pathname||W.location?.pathname:t.name),r&&!i&&a.setSDKProcessingMetadata({normalizedRequest:{...Zb(),url:r}}),Ij(e)}function Nj(e){return(W.document?.querySelector(`meta[name=${e}]`))?.getAttribute(`content`)||void 0}function Pj(e){return(W.performance?.getEntriesByType?.(`navigation`)[0])?.serverTiming?.find(t=>t.name===e)?.description}var Fj=`_sentry_idleSpan`;function Ij(e){return e[Fj]}function Lj(e,t){je(e,Fj,t)}var Rj=1.5;function zj(e,t){let n=N(e),r=xt();return!(r-n.start_timestamp>Rj||t&&r-t<=Rj)}function Bj(e=M()){e?.emit(`endPageloadSpan`)}function Vj(e){let t=P();if(t===e)return;let n=A();
502e.end=new Proxy(e.end,{apply(e,r,i){return ai(n,t),Reflect.apply(e,r,i)}}),ai(n,e)}var Hj=new WeakMap,Uj=new WeakMap,Wj=9e4,Gj=[`text/event-stream`,`application/x-ndjson`,`application/stream+json`],Kj=F(()=>({name:`FetchStreamPerformance`,setup(e){wp(e=>{if(e.response){let t=Hj.get(e.response);if(t&&e.endTimestamp){t.end(e.endTimestamp);let n=Uj.get(e.response);n&&clearTimeout(n)}}}),Cp(t=>{if(t.endTimestamp&&t.response){let n=t.response.headers?.get(`content-type`)||``;if(t.response.headers?.get(`content-length`)||!Gj.some(e=>n.startsWith(e)))return;let r=t.fetchData?.url||``,i=t.fetchData?.method||`GET`,a=Lu(r),o=r.startsWith(`data:`)?Wu(r):a?Ru(a):r,s=Vu(r,W.location?.origin),c=s?`${i} ${s}`:i,l=Zo({name:I(e)?c:`${i} ${o}`,startTime:t.endTimestamp,attributes:{[Zn]:Nu(Wu(r)),[Yn]:s,[Tn]:i,type:`fetch`,[In]:Us,[or]:`auto.http.browser.stream`}});Hj.set(t.response,l);let u=setTimeout(()=>{l.isRecording()&&l.end()},Wj);Uj.set(t.response,u)}})}})),qj=`BfcacheMetrics`,Jj=F((e={})=>{let t=Qj(e.maxReasons);return{name:qj,setupOnce(){if(!W.addEventListener||!W.performance?.getEntriesByType){G&&x.log(`[${qj}] Browser APIs unavailable, skipping instrumentation.`);return}function e(e){let n=Zj();if(e.persisted){Yj(`hit`,0,n);return}let r=W.performance.getEntriesByType(`navigation`)[0];if(r?.type!==`back_forward`)return;let i=$j(r.notRestoredReasons,t);Yj(`miss`,i.length,n),typeof r.duration==`number`&&r.duration>0&&em(`browser.bfcache.reload.duration`,r.duration,{unit:`millisecond`,attributes:tM({[Hn]:n})}
502),i.forEach(e=>Xj(e,n))}W.addEventListener(`pageshow`,e,!0)}}});function Yj(e,t,n){Qp(`browser.bfcache.navigation`,1,{attributes:tM({[pn]:e,[fn]:t||void 0,[Hn]:n})})}function Xj({reason:e,frame:t},n){Qp(`browser.bfcache.not_restored`,1,{attributes:tM({[mn]:e,[dn]:t,[Hn]:n})})}function Zj(){return A().getScopeData().transactionName||W.location?.pathname}function Qj(e){return e==null?1/0:e<1?(G&&x.warn(`[${qj}] \`maxReasons\` must be at least 1, got ${e}. Using 1 instead.`),1):e}function $j(e,t){let n=[];return!e||t<=0||eM(e,`top`,n,t),n}function eM(e,t,n,r){n.length>=r||(e.reasons?.forEach(e=>{if(n.length>=r)return;let i=typeof e==`string`?e:e.reason;i&&n.push({reason:i,frame:t})}),e.children?.forEach(e=>{eM(e,`child`,n,r)}))}function tM(e){return e[Ln]=`auto.browser.bfcache`,e}function nM(e){return new Promise((t,n)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>n(e.error)})}function rM(e,t){let n=indexedDB.open(e);n.onupgradeneeded=()=>n.result.createObjectStore(t);let r=nM(n);return e=>r.then(n=>e(n.transaction(t,`readwrite`).objectStore(t)))}function iM(e){return nM(e.getAllKeys())}function aM(e,t,n){return e(e=>iM(e).then(r=>{if(!(r.length>=n))return e.put(t,Math.max(...r,0)+1),nM(e.transaction)}))}
502function oM(e,t,n){return e(e=>iM(e).then(r=>{if(!(r.length>=n))return e.put(t,Math.min(...r,0)-1),nM(e.transaction)}))}function sM(e){return e(e=>iM(e).then(t=>{let n=t[0];if(n!=null)return nM(e.get(n)).then(t=>(e.delete(n),nM(e.transaction).then(()=>t)))}))}function cM(e){let t;function n(){return t??=rM(e.dbName||`sentry-offline`,e.storeName||`queue`),t}return{push:async t=>{try{let r=Ra(t);await aM(n(),r,e.maxQueueSize||30)}catch{}},unshift:async t=>{try{let r=Ra(t);await oM(n(),r,e.maxQueueSize||30)}catch{}},shift:async()=>{try{let e=await sM(n());if(e)return Ba(e)}catch{}}}}function lM(e){return t=>{let n=e({...t,createStore:cM});return W.addEventListener(`online`,async e=>{await n.flush()}),n}}function uM(e=Ex){return lM(mu(e))}var dM=`window`in i&&i.window===i&&typeof importScripts>`u`,fM=`0`,pM=dM?`main`:`worker`;function mM(e,t,n){if(e==null)throw TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${e} instead.`);let r=gM(e),i=t.getOptions(),a=t.getSdkMetadata?.()?.sdk;return{chunk_id:ut(),client_sdk:{name:a?.name??`sentry.javascript.browser`,version:a?.version??`0.0.0`},profiler_id:n||ut(),platform:`javascript`,version:`2`,release:i.release??``,environment:i.environment??`production`,debug_meta:{images:_M(e.resources)},profile:r}}function hM(e){try{if(!e||typeof e!=`object`)return{reason:`chunk is not an object`};let t=e=>typeof e==`string`&&/^[a-f0-9]{32}$/.test(e);if(!t(e.profiler_id))return{reason:`missing or invalid profiler_id`};if(!t(e.chunk_id))return{reason:`missing or invalid chunk_id`};if(!e.client_sdk)return{reason:`missing client_sdk metadata`};let n=e.profile;return n?!Array.isArray(n.frames)||!n.frames.length?{reason:`profile has no frames`}:!Array.isArray(n.stacks)||!n.stacks.length?{reason:`profile has no stacks`}:!Array.isArray(n.samples)||!n.samples.length?{reason:`profile has no samples`}:{valid:!0}:{reason:`missing profile data`}}catch(e){return{reason:`unknown validation error: ${e}`}}}function gM(e){let t=[];for(let n=0;n<e.frames.length;n++){let r=e.frames[n];r&&(t[n]={function:r.name,abs_path:typeof r.resourceId==`number`?e.resources[r.resourceId]:void 0,lineno:r.line,colno:r.column})}let n=[];for(let t=0;t<e.stacks.length;t++){let r=e.stacks[t];if(!r)continue;let i=[],a=r;for(;a;)i.push(a.frameId),a=a.parentId===void 0?void 0:e.stacks[a.parentId];n[t]=i}let r=Dt(),i=typeof performance.timeOrigin==`number`?performance.timeOrigin:r||0,a=i-(r||i),o=[];for(let t=0;t<e.samples.length;t++){let n=e.samples[t];if(!n)continue;let r=(i+(n.timestamp-a))/1e3;o[t]={stack_id:n.stackId??0,thread_id:fM,timestamp:r}}return{frames:t,stacks:n,samples:o,thread_metadata:{[fM]:{name:pM}}}}function _M(e){let t=M()?.getOptions()?.stackParser;return t?mc(t,e):[]}function vM(e){return typeof e!=`number`&&typeof e!=`boolean`||typeof e==`number`&&isNaN(e)?(G&&x.warn(`[Profiling] Invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`),!1):e===!0||e===!1?!0:e<0||e>1?(G&&x.warn(`[Profiling] Invalid sample rate. Sample rate must be between 0 and 1. Got ${e}.`),!1):!0}var yM=!1,bM=3e4;function xM(e){return typeof e==`function`}function SM(){let e=W.Profiler;if(!xM(e)){G&&x.log(`[Profiling] Profiling is not supported by this browser, Profiler interface missing on window object.`);return}let t=Math.floor(bM/10);try{return new e({sampleInterval:10,maxBufferSize:t})}catch{G&&(x.log(`[Profiling] Failed to initialize the Profiling constructor, this is likely due to a missing 'Document-Policy': 'js-profiling' header.`),x.log(`[Profiling] Disabling profiling for current user session.`)),yM=!0}}function CM(e){if(yM)return G&&x.log(`[Profiling] Profiling has been disabled for the duration of the current user session as the JS Profiler could not be started.`),!1;if(e.profileLifecycle!==`trace`&&e.profileLifecycle!==`manual`)return G&&x.warn("[Profiling] Session not sampled. Invalid `profileLifecycle` option."),!1;let t=e.profileSessionSampleRate;return vM(t)?t?Math.random()<=t:(G&&x.log(`[Profiling] Discarding profile because profileSessionSampleRate is not defined or set to 0`),!1):(G&&x.warn(`[Profiling] Discarding profile because of invalid profileSessionSampleRate.`),!1)}function wM(e){e.setAttribute(`thread.id`,fM),e.setAttribute(`thread.name`,pM)}var TM=6e4,EM=3e5,DM=class{constructor(){this._client=void 0,this._profiler=void 0,this._chunkTimer=void 0,this._profilerId=void 0,this._isRunning=!1,this._sessionSampled=!1,this._lifecycleMode=void 0,this._activeRootSpanIds=new Set,this._rootSpanTimeouts=new Map}initialize(e){let t=e.getOptions().profileLifecycle,n=CM(e.getOptions());G&&x.log(`[Profiling] Initializing profiler (lifecycle='${t}').`),n||G&&x.log(`[Profiling] Session not sampled. Skipping lifecycle profiler initialization.`),this._profilerId=ut(),this._client=e,this._sessionSampled=n,this._lifecycleMode=t,t===`trace`&&this._setupTraceLifecycleListeners(e),e.on(`spanStart`,e=>{this._isRunning&&wM(e)})}
502start(){if(this._lifecycleMode===`trace`){G&&x.warn('[Profiling] `profileLifecycle` is set to "trace". Calls to `uiProfiler.start()` are ignored in trace mode.');return}if(this._isRunning){G&&x.warn("[Profiling] Profile session is already running, `uiProfiler.start()` is a no-op.");return}if(!this._sessionSampled){G&&x.warn("[Profiling] Session is not sampled, `uiProfiler.start()` is a no-op.");return}this._beginProfiling()}stop(){if(this._lifecycleMode===`trace`){G&&x.warn('[Profiling] `profileLifecycle` is set to "trace". Calls to `uiProfiler.stop()` are ignored in trace mode.');return}if(!this._isRunning){G&&x.warn("[Profiling] Profiler is not running, `uiProfiler.stop()` is a no-op.");return}this._endProfiling()}notifyRootSpanActive(e){if(this._lifecycleMode!==`trace`||!this._sessionSampled)return;let t=e.spanContext().spanId;if(!t||this._activeRootSpanIds.has(t))return;this._registerTraceRootSpan(t);let n=this._activeRootSpanIds.size;n===1&&(G&&x.log(`[Profiling] Detected already active root span during setup. Active root spans now:`,n),this._beginProfiling()),this._isRunning&&wM(e)}_beginProfiling(){if(!this._isRunning){if(this._isRunning=!0,G&&x.log(`[Profiling] Started profiling with profiler ID:`,this._profilerId),sn().setContext(`profile`,{profiler_id:this._profilerId}),this._startProfilerInstance(),!this._profiler){G&&x.log(`[Profiling] Failed to start JS Profiler; stopping.`),this._resetProfilerInfo();return}this._startPeriodicChunking()}}_endProfiling(){this._isRunning&&(this._isRunning=!1,this._chunkTimer&&=(clearTimeout(this._chunkTimer),void 0),this._clearAllRootSpanTimeouts(),this._collectCurrentChunk().catch(e=>{G&&x.error("[Profiling] Failed to collect current profile chunk on `stop()`:",e)}),this._lifecycleMode===`manual`&&sn().setContext(`profile`,{}))}_setupTraceLifecycleListeners(e){e.on(`spanStart`,e=>{if(!this._sessionSampled){G&&x.log(`[Profiling] Span not profiled because of negative sampling decision for user session.`);return}if(e!==ki(e))return;if(!e.isRecording()){G&&x.log(`[Profiling] Discarding profile because root span was not sampled.`);return}let t=e.spanContext().spanId;if(!t||this._activeRootSpanIds.has(t))return;this._registerTraceRootSpan(t);let n=this._activeRootSpanIds.size;n===1&&(G&&x.log(`[Profiling] Root span ${t} started. Profiling active while there are active root spans (count=${n}).`),this._beginProfiling())}),e.on(`spanEnd`,e=>{if(!this._sessionSampled)return;let t=e.spanContext().spanId;if(!t||!this._activeRootSpanIds.has(t))return;this._activeRootSpanIds.delete(t);let n=this._activeRootSpanIds.size;G&&x.log(`[Profiling] Root span with ID ${t} ended. Will continue profiling for as long as there are active root spans (currently: ${n}).`),n===0&&(this._collectCurrentChunk().catch(e=>{G&&x.error("[Profiling] Failed to collect current profile chunk on last `spanEnd`:",e)}),this._endProfiling())})}_resetProfilerInfo(){this._isRunning=!1,sn().setContext(`profile`,{})}_clearAllRootSpanTimeouts(){this._rootSpanTimeouts.forEach(e=>clearTimeout(e)),this._rootSpanTimeouts.clear()}_registerTraceRootSpan(e){this._activeRootSpanIds.add(e);let t=setTimeout(()=>this._onRootSpanTimeout(e),EM);this._rootSpanTimeouts.set(e,t)}_startProfilerInstance(){if(this._profiler?.stopped===!1)return;let e=SM();if(!e){G&&x.log(`[Profiling] Failed to start JS Profiler.`);return}this._profiler=e}_startPeriodicChunking(){this._isRunning&&(this._chunkTimer=setTimeout(()=>{if(this._collectCurrentChunk().catch(e=>{G&&x.error(`[Profiling] Failed to collect current profile chunk during periodic chunking:`,e)}),this._isRunning){if(this._startProfilerInstance(),!this._profiler){this._resetProfilerInfo();return}this._startPeriodicChunking()}},TM))}_onRootSpanTimeout(e){this._rootSpanTimeouts.has(e)&&(this._rootSpanTimeouts.delete(e),this._activeRootSpanIds.has(e)&&(G&&x.log(`[Profiling] Reached 5-minute timeout for root span ${e}. You likely started a manual root span that never called \`.end()\`.`),this._activeRootSpanIds.delete(e),this._activeRootSpanIds.size===0&&this._endProfiling()))}async _collectCurrentChunk(){let e=this._profiler;if(this._profiler=void 0,e)try{let t=mM(await e.stop(),this._client,this._profilerId),n=hM(t);if(`reason`in n){G&&x.log(`[Profiling] Discarding invalid profile chunk (this is probably a bug in the SDK):`,n.reason);return}this._sendProfileChunk(t),G&&x.log(`[Profiling] Collected browser profile chunk.`)}catch(e){G&&x.log(`[Profiling] Error while stopping JS Profiler for chunk:`,e)}}_sendProfileChunk(e){let t=this._client,n=Ga(t.getSdkMetadata?.()),r=t.getDsn(),i=t.getOptions().tunnel,a=Ma({event_id:ut(),sent_at:new Date().toISOString(),...n&&{sdk:n},...!!i&&r&&{dsn:Ur(r)}},[[{type:`profile_chunk`,platform:`javascript`},e]]);t.sendEnvelope(a).then(null,e=>{G&&x.error(`Error while sending profile chunk envelope:`,e)})}},OM=`BrowserProfiling`,kM=F((()=>({name:OM,setup(e){let t=e.getOptions(),n=new DM;t.profileLifecycle||=`manual`;let r=P(),i=r&&ki(r),a=t.profileLifecycle;if(e.on(`startUIProfiler`,()=>n.start()),e.on(`stopUIProfiler`,()=>n.stop()),a===`manual`)n.initialize(e);else if(a===`trace`){if(!Ii(t)){G&&x.warn("[Profiling] `profileLifecycle` is 'trace' but tracing is disabled. Set a `tracesSampleRate` or `tracesSampler` to enable span tracing.");return}n.initialize(e),i&&n.notifyRootSpanActive(i),W.setTimeout(()=>{let e=P(),t=e&&ki(e);t&&n.notifyRootSpanActive(t)},0)}}}))),AM=`SpotlightBrowser`,jM=[{op:Fs,name:`#sentry-spotlight`},{op:Fs,attributes:{"browser.web_vital.inp.target":`#sentry-spotlight`}}],MM=((e={})=>{let t=e.sidecarUrl||`http://localhost:8969/stream`;return{name:AM,setup:()=>{G&&x.log(`Using Sidecar URL`,t)},beforeSetup(e){let t=e.getOptions();t.ignoreSpans=[...t.ignoreSpans||[],...jM]},afterAllSetup:e=>{NM(e,t)}}});function NM(e,t){let n=Ab(`fetch`),r=0;e.on(`beforeEnvelope`,e=>{if(r>3){x.warn(`[Spotlight] Disabled Sentry -> Spotlight integration due to too many failed requests:`,r);return}n(t,{method:`POST`,body:Ra(e),headers:{"Content-Type":`application/x-sentry-envelope`},mode:`cors`}).then(e=>{e.status>=200&&e.status<400&&(r=0)},e=>
502{r++,x.error(`Sentry SDK can't connect to Sidecar is it running? See: https://spotlightjs.com/sidecar/npx/`,e)})})}var PM=F(MM),FM=F(()=>({name:`LaunchDarkly`,processEvent(e,t,n){return tp(e)}}));function IM(){return{name:`sentry-flag-auditor`,type:`flag-used`,synchronous:!0,method:(e,t,n)=>{np(e,t.value),ip(e,t.value)}}}var LM=F(()=>({name:`OpenFeature`,processEvent(e,t,n){return tp(e)}})),RM=class{after(e,t){np(t.flagKey,t.value),ip(t.flagKey,t.value)}error(e,t,n){np(e.flagKey,e.defaultValue),ip(e.flagKey,e.defaultValue)}},zM=F(({featureFlagClientClass:e})=>({name:`Unleash`,setupOnce(){let t=e.prototype;Ae(t,`isEnabled`,BM)},processEvent(e,t,n){return tp(e)}}));function BM(e){return function(...t){let n=t[0],r=e.apply(this,t);return typeof n==`string`&&typeof r==`boolean`?(np(n,r),ip(n,r)):G&&x.error(`[Feature Flags] UnleashClient.isEnabled does not match expected signature. arg0: ${n} (${typeof n}), result: ${r} (${typeof r})`),r}}var VM=(({growthbookClass:e})=>op({growthbookClass:e})),HM=F(({featureFlagClient:e})=>({name:`Statsig`,setup(t){e.on(`gate_evaluation`,e=>{np(e.gate.name,e.gate.value),ip(e.gate.name,e.gate.value)})},processEvent(e,t,n){return tp(e)}}));async function UM(){let e=M();if(!e)return`no-client-active`;if(!e.getDsn())return`no-dsn-configured`;let t=e.getOptions().tunnel||`https://o447951.ingest.sentry.io/api/4509632503087104/envelope/?sentry_version=7&sentry_key=c1dfb07d783ad5325c245c1fd3725390&sentry_client=sentry.javascript.browser%2F1.33.7`;try{await No(()=>fetch(t,{body:`{}`,method:`POST`,mode:`cors`,credentials:`omit`}))}catch{return`sentry-unreachable`}}var WM=`WebWorker`,GM=20,KM=F(({worker:e})=>({name:WM,setupOnce:()=>{(Array.isArray(e)?e:[e]).forEach(e=>qM(e))},addWorker:e=>qM(e)}));function qM(e){let t=[];e.addEventListener(`error`,({message:e,filename:n,lineno:r,colno:i})=>{let a=t.findIndex(t=>t.message===e&&t.url===n&&t.lineno===r&&t.colno===i);a!==-1&&(t.splice(0,a+1),qb({msg:e,url:n,line:r,column:i}))}),e.addEventListener(`message`,e=>{if(QM(e.data)){if(e.stopImmediatePropagation(),e.data._sentryDebugIds&&(G&&x.log(`Sentry debugId web worker message received`,e.data),W._sentryDebugIds={...e.data._sentryDebugIds,...W._sentryDebugIds}),e.data._sentryModuleMetadata&&(G&&x.log(`Sentry module metadata web worker message received`,e.data),W._sentryModuleMetadata={...e.data._sentryModuleMetadata,...W._sentryModuleMetadata}),e.data._sentryWasmImages){G&&x.log(`Sentry WASM images web worker message received`,e.data);let t=W._sentryWasmImages||[],n=e.data._sentryWasmImages.filter(e=>Ce(e)&&typeof e.code_file==`string`&&!t.some(t=>t.code_file===e.code_file));W._sentryWasmImages=[...t,...n]}if(e.data._sentryWorkerError){G&&x.log(`Sentry worker error message received`,e.data._sentryWorkerError);let{kind:n,message:r,url:i,lineno:a,colno:o}=e.data._sentryWorkerError;n===`error`&&t.push({message:r,url:i,lineno:a,colno:o})>GM&&t.shift(),JM(e.data._sentryWorkerError)}}})}function JM(e){let{reason:t,kind:n,name:r,filename:i,url:a,lineno:o,colno:s,plainError:c}=e,l=n!==`error`,u=c&&Ce(t)?ZM(t):t;r&&ge(u)&&u.name!==r&&je(u,`name`,r);let d=M();if(!d)return;let{stackParser:f,attachStacktrace:p}=d.getOptions(),m=l&&Se(u)?OS(u):vx(f,u,void 0,p,l);l||kS(m,a||i,o,s),m.level=`error`,i&&(m.contexts={...m.contexts,worker:{filename:i}}),Oc(m,{originalException:u,mechanism:{handled:!1,type:l?`auto.browser.web_worker.onunhandledrejection`:`auto.browser.web_worker.onerror`}}),G&&x.log(`Captured worker ${l?`unhandled rejection`:`error`}`,u)}function YM({self:e}){Error.stackTraceLimit=50,e.postMessage({_sentryMessage:!0,_sentryDebugIds:e._sentryDebugIds??void 0,_sentryModuleMetadata:e._sentryModuleMetadata??void 0});let t=t=>{let{reason:n}=t;G&&x.log(`[Sentry Worker] Forwarding ${t.kind} to parent`,t),XM(e,{...t,filename:e.location?.href,name:ge(n)?mx(n):void 0})};e.addEventListener(`error`,e=>{let{error:n,message:r,filename:i,lineno:a,colno:o}=e;t({kind:`error`,reason:n??r,message:r,url:i,lineno:a,colno:o})}),e.addEventListener(`unhandledrejection`,e=>{t({kind:`unhandledrejection`,reason:DS(e)})}),G&&x.log(`[Sentry Worker] Registered worker with error and unhandled rejection handling`)}function XM(e,t){try{e.postMessage({_sentryMessage:!0,_sentryWorkerError:t});return}catch{}let{reason:n}=t,r=ge(n),i=r?{message:hx(n),stack:n.stack}:Je(n);try{e.postMessage({_sentryMessage:!0,_sentryWorkerError:{...t,reason:i,plainError:r}})}catch{}}function ZM(e){let t=Error(String(e.message));return t.stack=typeof e.stack==`string`?e.stack:void 0,t}function QM(e){if(!Ce(e)||e._sentryMessage!==!0)return!1;
502let t=`_sentryDebugIds`in e,n=`_sentryModuleMetadata`in e,r=`_sentryWorkerError`in e,i=`_sentryWasmImages`in e;return!(!t&&!n&&!r&&!i||t&&!(Ce(e._sentryDebugIds)||e._sentryDebugIds===void 0)||n&&!(Ce(e._sentryModuleMetadata)||e._sentryModuleMetadata===void 0)||r&&!Ce(e._sentryWorkerError)||i&&(!Array.isArray(e._sentryWasmImages)||!e._sentryWasmImages.every(e=>Ce(e)&&typeof e.code_file==`string`)))}var $M={Sentry:e({BrowserClient:()=>Cx,MULTIPLEXED_TRANSPORT_EXTRA_KEY:()=>hu,OpenFeatureIntegrationHook:()=>RM,SDK_VERSION:()=>a,SEMANTIC_ATTRIBUTE_SENTRY_OP:()=>ar,SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN:()=>or,SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE:()=>rr,Scope:()=>It,WINDOW:()=>W,addBreadcrumb:()=>sd,addEventProcessor:()=>Uc,addIntegration:()=>Ji,bfcacheMetricsIntegration:()=>Jj,bindScopeToEmitter:()=>us,breadcrumbsIntegration:()=>rS,browserApiErrorsIntegration:()=>fS,browserProfilingIntegration:()=>kM,browserSessionIntegration:()=>yS,browserTracingIntegration:()=>Aj,buildLaunchDarklyFlagUsedHandler:()=>IM,captureConsoleIntegration:()=>Wd,captureEvent:()=>Oc,captureException:()=>Ec,captureFeedback:()=>Pp,captureMessage:()=>Dc,captureSession:()=>qc,chromeStackLineParser:()=>Bx,close:()=>Bc,consoleIntegration:()=>Zf,consoleLoggingIntegration:()=>Yp,contextLinesIntegration:()=>_C,continueTrace:()=>jo,createConsolaReporter:()=>nm,createTransport:()=>Fl,createUserFeedbackEnvelope:()=>$x,cultureContextIntegration:()=>xS,dedupeIntegration:()=>qd,defaultRequestInstrumentationOptions:()=>uj,defaultStackLineParsers:()=>Xx,defaultStackParser:()=>Zx,diagnoseSdkConnectivity:()=>UM,elementTimingIntegration:()=>Ny,endSession:()=>Gc,eventFiltersIntegration:()=>pd,eventFromException:()=>gx,eventFromMessage:()=>_x,exceptionFromError:()=>ox,extraErrorDataIntegration:()=>tf,featureFlagsIntegration:()=>ap,feedbackAsyncIntegration:()=>ix,feedbackIntegration:()=>ax,feedbackSyncIntegration:()=>ax,fetchStreamPerformanceIntegration:()=>Kj,flush:()=>zc,forceLoad:()=>GS,functionToStringIntegration:()=>ud,geckoStackLineParser:()=>Ux,getAbsoluteUrl:()=>Ub,getActiveSpan:()=>P,getClient:()=>M,getCurrentScope:()=>A,getDefaultIntegrations:()=>US,getFeedback:()=>nh,getGlobalScope:()=>sn,getIsolationScope:()=>j,getReplay:()=>mA,getRootSpan:()=>ki,getSpanDescendants:()=>Oi,getSpanStatusFromHttpCode:()=>wr,getTraceData:()=>ed,globalHandlersIntegration:()=>wS,graphqlClientIntegration:()=>jC,growthbookIntegration:()=>VM,httpClientIntegration:()=>eC,httpContextIntegration:()=>NS,init:()=>WS,instrumentOutgoingRequests:()=>dj,instrumentSupabaseClient:()=>jf,interactionsIntegration:()=>Wy,isBotUserAgent:()=>Vy,isEnabled:()=>Hc,isInitialized:()=>Vc,lastEventId:()=>Rc,launchDarklyIntegration:()=>FM,lazyLoadIntegration:()=>nx,linkedErrorsIntegration:()=>LS,logger:()=>Fp,makeBrowserOfflineTransport:()=>uM,makeFetchTransport:()=>Ex,makeMultiplexedTransport:()=>yu,metrics:()=>Xp,moduleMetadataIntegration:()=>Id,normalizeStringifyValue:()=>zS,onLoad:()=>KS,openFeatureIntegration:()=>LM,opera10StackLineParser:()=>qx,opera11StackLineParser:()=>Yx,parameterize:()=>Xu,registerSpanErrorInstrumentation:()=>Fi,registerWebWorker:()=>YM,replayCanvasIntegration:()=>aj,replayIntegration:()=>uA,reportPageLoaded:()=>Bj,reportingObserverIntegration:()=>QS,rewriteFramesIntegration:()=>pf,sendFeedback:()=>zm,setActiveSpanInBrowser:()=>Vj,setAttribute:()=>Fc,setAttributes:()=>Pc,setContext:()=>kc,setConversationId:()=>Lc,setCurrentClient:()=>du,setExtra:()=>jc,setExtras:()=>Ac,setHttpStatus:()=>Tr,setMeasurement:()=>yo,setTag:()=>Nc,setTags:()=>Mc,setUser:()=>Ic,showReportDialog:()=>qS,spanStreamingIntegration:()=>so,spanToBaggageHeader:()=>ia,spanToJSON:()=>N,spanToStaticSpanJSON:()=>hi,spanToTraceHeader:()=>li,spotlightBrowserIntegration:()=>PM,startBrowserTracingNavigationSpan:()=>Mj,startBrowserTracingPageLoadSpan:()=>jj,startInactiveSpan:()=>Zo,startNewTrace:()=>Fo,startSession:()=>Wc,startSpan:()=>Yo,startSpanManual:()=>Xo,statsigIntegration:()=>HM,supabaseIntegration:()=>Pf,suppressTracing:()=>No,thirdPartyErrorFilterIntegration:()=>Uf,uiProfiler:()=>kx,unleashIntegration:()=>zM,updateSpanName:()=>Mi,userTimingIntegration:()=>Xy,viewHierarchyIntegration:()=>MC,webVitalsIntegration:()=>yj,webWorkerIntegration:()=>KM,winjsStackLineParser:()=>Gx,withActiveSpan:()=>Mo,withIsolationScope:()=>ln,withScope:()=>cn,withStaticSpan:()=>_a,withStreamedSpan:()=>va,zodErrorsIntegration:()=>Hf}),installSentry(e){WS(Object.assign({},{dsn:`https://[email protected]/41079`},e))}};window.Sentry===void 0&&(window.Sentry=window.Sentry||$M.Sentry,$M.installSentry({environment:`production`,release:``,ignoreErrors:[/twttr.*defined/,/undefined is not an object \(evaluating '__gCrWeb\.autofill\.extractForms'\)/,/Blocked a frame with origin.*from accessing a (cross-origin frame|frame with origin)/,/null is not an object \(evaluating 'elt\.parentNode'\)/,/Exception thrown and not caught/,/Can't find variable: inf/,/Access is denied\./,/androidInterface is not defined/,/undefined is not an object \(evaluating 'this.ui.form\[0\].submit'\)/,/undefined is not an object \(evaluating 'buttonsNav.children'\)/,/Cannot read properties of undefined \(reading 'submit'\)/,/undefined is not an object \(evaluating 'this.ui.submit\[0\].disabled=!0'\)/,/Cannot set properties of undefined \(setting 'disabled'\)/,/Cannot read property 'children' of undefined/,/Cannot read properties of undefined \(reading 'children'\)/,/Cannot read properties of undefined \(reading 'Linker'\)/,/undefined is not an object \(evaluating 'new window.gaplugins.Linker'\)/,/Cannot read property 'length' of undefined/,/this.hostIndex.push is not a function/,/The string did n
502ot match the expected pattern./,/undefined is not an object \(evaluating 'n.x'\)/,/userInput is not defined/,/Can't find variable: userInput/,/Cannot read properties of null \(reading 'parentNode'\)/,/Cannot read properties of null \(reading 'removeChild'\)/,/UnknownError/,/Your focus-trap must have at least one container with at least one tabbable node in it at all times/,/Cannot read properties of null \(reading 'contentWindow'\)/,/buttonsNav is undefined/,/DOM Exception 12: An invalid or illegal string was specified./,/null is not an object \(evaluating 't.addEventListener'\)/,/Cannot read properties of null \(reading 'style'\)/,/Cannot read properties of null \(reading 'contentWindow'\)/,/Permission denied to access property "call"/,/Permission denied to access property "dispatchEvent" on cross-origin object/,/DOM Exception 22: An attempt was made to add something to storage that exceeded the quota./,/null is not an object \(evaluating 'e.parentNode'\)/,/The quota has been exceeded./,/Cannot read properties of null \(reading 'classList'\)/,/Maximum call stack size exceeded./,/AudioEye is not defined/,/xiFrame is null/,/null is not an object \(evaluating 'xiFrame.contentWindow'\)/,/Unable to get property 'addEventListener' of undefined or null reference/,/Cannot read properties of undefined \(reading 'planRemediations'\)/,/Cannot read property 'toString' of undefined/]}));export{n as t};
503//# sourceMappingURL=sentry-BnFudmDI.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.