PageSourceSearch

https://opensnow.com/_nuxt/BEEfw4u1.js

js opensnow.com collected 2026-10-01 10:31:59 UTC 325,833 bytes, 481 lines download raw bytes

1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`f764f49567e6b0ecf4d75f5cc38e95bb992eec2e`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`794a5a60-d49c-42c2-a94e-97d0c4115704`,e._sentryDebugIdIdentifier=`sentry-dbid-794a5a60-d49c-42c2-a94e-97d0c4115704`)}catch{}})();import{r as e}from"./BAyoE7R7.js";var t=globalThis,n=`10.11.0`;function r(){return i(t),t}function i(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||`10.11.0`,t[n]=t[`10.11.0`]||{}}function a(e,r,i=t){let a=i.__SENTRY__=i.__SENTRY__||{},o=a[n]=a[`10.11.0`]||{};return o[e]||(o[e]=r())}var o=[`debug`,`info`,`warn`,`error`,`log`,`assert`,`trace`],s={};function c(e){if(!(`console`in t))return e();let n=t.console,r={},i=Object.keys(s);i.forEach(e=>{let t=s[e];r[e]=n[e],n[e]=t});try{return e()}finally{i.forEach(e=>{n[e]=r[e]})}}function l(){h().enabled=!0}function u(){h().enabled=!1}function d(){return h().enabled}function f(...e){[...e]}function p(...e){[...e]}function m(...e){[...e]}function h(){return{enabled:!1}}var g={enable:l,disable:u,isEnabled:d,log:f,warn:p,error:m},_=50,v=/\(error: (.*)\)/,y=/captureMessage|captureException/;function b(...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=v.test(n)?n.replace(v,`$1`):n;if(!o.match(/\S*Error: /)){for(let e of t){let t=e(o);if(t){i.push(t);break}}if(i.length>=_+r)break}}return S(i.slice(r))}}function x(e){return Array.isArray(e)?b(...e):e}function S(e){if(!e.length)return[];let t=Array.from(e);return/sentryWrapped/.test(C(t).function||``)&&t.pop(),t.reverse(),y.test(C(t).function||``)&&(t.pop(),y.test(C(t).function||``)&&t.pop()),t.slice(0,_).map(e=>({...e,filename:e.filename||C(t).filename,function:e.function||`?`}))}function C(e){return e[e.length-1]||{}}var w=`<anonymous>`;function T(e){try{return!e||typeof e!=`function`?w:e.name||w}catch{return w}}function E(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}}}var ee={},te={};function ne(e,t){ee[e]=ee[e]||[],ee[e].push(t)}function D(e,t){if(!te[e]){te[e]=!0;try{t()}catch{}}}function O(e,t){let n=e&&ee[e];if(n)for(let e of n)try{e(t)}catch{}}var re=null;function k(e){let t=`error`;ne(t,e),D(t,ie)}function ie(){re=t.onerror,t.onerror=function(e,t,n,r,i){return O(`error`,{column:r,error:i,line:n,msg:e,url:t}),re?re.apply(this,arguments):!1},t.onerror.__SENTRY_INSTRUMENTED__=!0}var ae=null;function oe(e){let t=`unhandledrejection`;ne(t,e),D(t,se)}function se(){ae=t.onunhandledrejection,t.onunhandledrejection=function(e){return O(`unhandledrejection`,e),ae?ae.apply(this,arguments):!0},t.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}var ce=Object.prototype.toString;function le(e){switch(ce.call(e)){case`[object Error]`:case`[object Exception]`:case`[object DOMException]`:case`[object WebAssembly.Exception]`:return!0;default:return Se(e,Error)}}function ue(e,t){return ce.call(e)===`[object ${t}]`}function de(e){return ue(e,`ErrorEvent`)}function fe(e){return ue(e,`DOMError`)}function pe(e){return ue(e,`DOMException`)}function A(e){return ue(e,`String`)}function me(e){return typeof e==`object`&&!!e&&`__sentry_template_string__`in e&&`__sentry_template_values__`in e}function he(e){return e===null||me(e)||typeof e!=`object`&&typeof e!=`function`}function ge(e){return ue(e,`Object`)}function _e(e){return typeof Event<`u`&&Se(e,Event)}function ve(e){return typeof Element<`u`&&Se(e,Element)}function ye(e){return ue(e,`RegExp`)}function be(e){return!!(e?.then&&typeof e.then==`function`)}function xe(e){return ge(e)&&`nativeEvent`in e&&`preventDefault`in e&&`stopPropagation`in e}function Se(e,t){try{return e instanceof t}catch{return!1}}function Ce(e){return!!(typeof e==`object`&&e&&(e.__isVue||e._isVue))}function we(e){return typeof Request<`u`&&Se(e,Request)}var Te=t,Ee=80;function De(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||Ee;for(;n&&i++<5&&(o=Oe(n,s),!(o===`html`||i>1&&a+r.length*3+o.length>=c));)r.push(o),a+=o.length,n=n.parentNode;return r.reverse().join(` > `)}catch{return`<unknown>`}}function Oe(e,t){let n=e,r=[];if(!n?.tagName)return``;if(Te.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());let i=t?.length?t.filter(e=>n.getAttribute(e)).map(e=>[e,n.getAttribute(e)]):null;
2if(i?.length)i.forEach(e=>{r.push(`[${e[0]}="${e[1]}"]`)});else{n.id&&r.push(`#${n.id}`);let e=n.className;if(e&&A(e)){let t=e.split(/\s+/);for(let e of t)r.push(`.${e}`)}}for(let e of[`aria-label`,`type`,`name`,`title`,`alt`]){let t=n.getAttribute(e);t&&r.push(`[${e}="${t}"]`)}return r.join(``)}function ke(){try{return Te.document.location.href}catch{return``}}function Ae(e){if(!Te.HTMLElement)return null;let t=e;for(let e=0;e<5;e++){if(!t)return null;if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}function je(e,t=0){return typeof e!=`string`||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function Me(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 Ne(e,t){if(!Array.isArray(e))return``;let n=[];for(let t=0;t<e.length;t++){let r=e[t];try{Ce(r)?n.push(`[VueViewModel]`):n.push(String(r))}catch{n.push(`[value cannot be serialized]`)}}return n.join(t)}function Pe(e,t,n=!1){return A(e)?ye(t)?t.test(e):A(t)?n?e===t:e.includes(t):!1:!1}function Fe(e,t=[],n=!1){return t.some(t=>Pe(e,t,n))}function Ie(e,t,n){if(!(t in e))return;let r=e[t];if(typeof r!=`function`)return;let i=n(r);typeof i==`function`&&Re(i,r);try{e[t]=i}catch{}}function Le(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{}}function Re(e,t){try{e.prototype=t.prototype=t.prototype||{},Le(e,`__sentry_original__`,t)}catch{}}function ze(e){return e.__sentry_original__}function Be(e){if(le(e))return{message:e.message,name:e.name,stack:e.stack,...He(e)};if(_e(e)){let t={type:e.type,target:Ve(e.target),currentTarget:Ve(e.currentTarget),...He(e)};return typeof CustomEvent<`u`&&Se(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function Ve(e){try{return ve(e)?De(e):Object.prototype.toString.call(e)}catch{return`<unknown>`}}function He(e){if(typeof e==`object`&&e){let t={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function Ue(e,t=40){let n=Object.keys(Be(e));n.sort();let r=n[0];if(!r)return`[object has no keys]`;if(r.length>=t)return je(r,t);for(let e=n.length;e>0;e--){let r=n.slice(0,e).join(`, `);if(!(r.length>t))return e===n.length?r:je(r,t)}return``}function We(){let e=t;return e.crypto||e.msCrypto}function Ge(e=We()){let t=()=>Math.random()*16;try{if(e?.randomUUID)return e.randomUUID().replace(/-/g,``);e?.getRandomValues&&(t=()=>{let t=new Uint8Array(1);return e.getRandomValues(t),t[0]})}catch{}return`10000000100040008000100000000000`.replace(/[018]/g,e=>(e^(t()&15)>>e/4).toString(16))}function Ke(e){return e.exception?.values?.[0]}function qe(e){let{message:t,event_id:n}=e;if(t)return t;let r=Ke(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||`<unknown>`:n||`<unknown>`}function Je(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 Ye(e,t){let n=Ke(e);if(!n)return;let r={type:`generic`,handled:!0},i=n.mechanism;if(n.mechanism={...r,...i,...t},t&&`data`in t){let e={...i?.data,...t.data};n.mechanism.data=e}}function Xe(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=>Me(e,0)),t.context_line=Me(e[Math.min(r-1,i)],t.colno||0),t.post_context=e.slice(Math.min(i+1,r),i+1+n).map(e=>Me(e,0))}function Ze(e){if(Qe(e))return!0;try{Le(e,`__sentry_captured__`,!0)}catch{}return!1}function Qe(e){try{return e.__sentry_captured__}catch{}}var $e=1e3;function et(){return Date.now()/$e}function tt(){let{performance:e}=t;if(!e?.now||!e.timeOrigin)return et;let n=e.timeOrigin;return()=>(n+e.now())/$e}var nt;function j(){return(nt??=tt())()}var rt;function it(){let{performance:e}=t;if(!e?.now)return[void 0,`none`];let n=3600*1e3,r=e.now(),i=Date.now(),a=e.timeOrigin?Math.abs(e.timeOrigin+r-i):n,o=a<n,s=e.timing?.navigationStart,c=typeof s==`
2number`?Math.abs(s+r-i):n;return o||c<n?a<=c?[e.timeOrigin,`timeOrigin`]:[s,`navigationStart`]:[i,`dateNow`]}function at(){return rt||=it(),rt[0]}function ot(e){let t=j(),n={sid:Ge(),init:!0,timestamp:t,started:t,duration:0,status:`ok`,errors:0,ignoreDuration:!1,toJSON:()=>lt(n)};return e&&st(n,e),n}function st(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||j(),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:Ge()),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 ct(e,t){let n={};t?n={status:t}:e.status===`ok`&&(n={status:`exited`}),st(e,n)}function lt(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 ut(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]=ut(r[e],t[e],n-1));return r}function dt(){return Ge()}function ft(){return Ge().substring(16)}var pt=`_sentrySpan`;function mt(e,t){t?Le(e,pt,t):delete e[pt]}function ht(e){return e[pt]}var gt=100,_t=class e{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:dt(),sampleRand:Math.random()}}clone(){let t=new e;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},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,mt(t,ht(this)),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&&st(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},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,extra:i,user:a,contexts:o,level:s,fingerprint:c=[],propagationContext:l}=(n instanceof e?n.getScopeData():ge(n)?t:void 0)||{};return this._tags={...this._tags,...r},this._extra={...this._extra,...i},this._contexts={...this._contexts,...o},a&&Object.keys(a).length&&(this._user=a),s&&(this._level=s),c.length&&(this._fingerprint=c),l&&(this._propagationContext=l),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,mt(this,void 0),this._attachments=[],this.setPropagationContext({traceId:dt(),sampleRand:Math.random()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){let n=typeof t==`number`?t:gt;if(n<=0)return this;let r={timestamp:et(),...e,message:e.message?je(e.message,2048):e.message};return this._breadcrumbs.push(r),this._breadcrumbs.length>n&&(this._breadcrumbs=this._breadcrumbs.slice(-n),this._client?.recordDroppedEvent(`buffer_overflow`,`log_item`)),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:ht(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=ut(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){let n=t?.event_id||Ge();if(!this._client)return n;let r=Error(`Sentry syntheticException`);return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){let r=n?.event_id||Ge();if(!this._client)return r;let i=Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:r},this),r}captureEvent(e,t){let n=t?.event_id||Ge();return this._client&&this._client.captureEvent(e,{...t,event_id:n},this),n}_notifyScopeListeners(){this._notifyingListeners||=(this._notifyingListeners=!0,this._scopeListeners.forEac
2h(e=>{e(this)}),!1)}};function vt(){return a(`defaultCurrentScope`,()=>new _t)}function yt(){return a(`defaultIsolationScope`,()=>new _t)}var bt=class{constructor(e,t){let n;n=e||new _t;let r;r=t||new _t,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 be(n)?n.then(e=>(this._popScope(),e),e=>{throw this._popScope(),e}):(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 xt(){let e=i(r());return e.stack=e.stack||new bt(vt(),yt())}function St(e){return xt().withScope(e)}function Ct(e,t){let n=xt();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function wt(e){return xt().withScope(()=>e(xt().getIsolationScope()))}function Tt(){return{withIsolationScope:wt,withScope:St,withSetScope:Ct,withSetIsolationScope:(e,t)=>wt(t),getCurrentScope:()=>xt().getScope(),getIsolationScope:()=>xt().getIsolationScope()}}function Et(e){let t=i(e);return t.acs?t.acs:Tt()}function M(){return Et(r()).getCurrentScope()}function N(){return Et(r()).getIsolationScope()}function Dt(){return a(`globalScope`,()=>new _t)}function Ot(...e){let t=Et(r());if(e.length===2){let[n,r]=e;return n?t.withSetScope(n,r):t.withScope(r)}return t.withScope(e[0])}function kt(...e){let t=Et(r());if(e.length===2){let[n,r]=e;return n?t.withSetIsolationScope(n,r):t.withIsolationScope(r)}return t.withIsolationScope(e[0])}function P(){return M().getClient()}function At(e){let{traceId:t,parentSpanId:n,propagationSpanId:r}=e.getPropagationContext(),i={trace_id:t,span_id:r||ft()};return n&&(i.parent_span_id=n),i}var jt=`sentry.source`,Mt=`sentry.sample_rate`,Nt=`sentry.previous_trace_sample_rate`,Pt=`sentry.op`,F=`sentry.origin`,Ft=`sentry.idle_span_finish_reason`,It=`sentry.measurement_unit`,Lt=`sentry.measurement_value`,Rt=`sentry.custom_span_name`,zt=`sentry.profile_id`,Bt=`sentry.exclusive_time`,Vt=`sentry.link.type`;function Ht(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:`unknown_error`}}function Ut(e,t){e.setAttribute(`http.response.status_code`,t);let n=Ht(t);n.message!==`unknown_error`&&e.setStatus(n)}var Wt=`_sentryScope`,Gt=`_sentryIsolationScope`;function Kt(e,t,n){e&&(Le(e,Gt,n),Le(e,Wt,t))}function qt(e){return{scope:e[Wt],isolationScope:e[Gt]}}var Jt=`sentry-`,Yt=/^sentry-/;function Xt(e){let t=Qt(e);if(!t)return;let n=Object.entries(t).reduce((e,[t,n])=>{if(t.match(Yt)){let r=t.slice(7);e[r]=n}return e},{});if(Object.keys(n).length>0)return n}function Zt(e){if(e)return en(Object.entries(e).reduce((e,[t,n])=>(n&&(e[`${Jt}${t}`]=n),e),{}))}function Qt(e){if(!(!e||!A(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((e,t)=>{let n=$t(t);return Object.entries(n).forEach(([t,n])=>{e[t]=n}),e},{}):$t(e)}function $t(e){return e.split(`,`).map(e=>e.split(`=`).map(e=>{try{return decodeURIComponent(e.trim())}catch{return}})).reduce((e,[t,n])=>(t&&n&&(e[t]=n),e),{})}function en(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((e,[t,n],r)=>{let i=`${encodeURIComponent(t)}=${encodeURIComponent(n)}`,a=r===0?i:`${e},${i}`;return a.length>8192?e:a},``)}var tn=/^o(\d+)\./,nn=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function rn(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 an(e){let t=nn.exec(e);if(!t){c(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}let[n,r,i=``,a=``,o=``,s=``]=t.slice(1),l=``,u=s,d=u.split(`/`);if(d.length>1&&(l=d.slice(0,-1).join(`/`),u=d.pop()),u){let e=u.match(/^\d+/);e&&(u=e[0])}return on({host:a,pass:i,path:l,projectId:u,port:o,protocol:n,publicKey:r})}function on(e){return{protocol:e.protocol,publicKey:e.publicKey||``,pass:e.pass||``,host:e.host,port:e.port||``,path:e.path||``,projectId:e.projectId}}function sn(e){return!0}function cn(e){return e.match(tn)?.[1]}function ln(e){let t=e.getOptions(),{host:n}=e.getDsn()||{},r;return t.orgId?r=String(t.orgId):n&&(r=cn(n)),r}function un(e){let t=typeof e==`string`?an(e):on(e);if(!(!t||!sn(t)))return t}function dn(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 fn=RegExp(`^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$`);function pn(e){if(!e)return;let t=e.match(fn);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 mn(e,t){let n=pn(e),r=Xt(t);if(!n?.traceId)return{traceId:dt(),sampleRand:Math.random()};let i=gn(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 hn(e=dt(),t=ft(),n){let r=``;return n!==void 0&&(r=n?`-1`:`-0`),`${e}-${t}${r}`}function gn(e,t){let n=dn(t?.sample_rand);if(n!==void 0)return n;let r=dn(t?.sample_rate);return r&&e?.parentSampled!==void 0?e.parentSampled?Math.random()*r:r+Math.random()*(1-r):Math.random()}function _n(e,t){let n=ln(e);return t&&n&&t!==n?(g.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)?(g.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 vn=!1;function yn(e){let{spanId:t,traceId:n}=e.spanContext(),{data:r,op:i,parent_span_id:a,status:o,origin:s,links:c}=I(e);return{parent_span_id:a,span_id:t,trace_id:n,data:r,op:i,status:o,origin:s,links:c}}function bn(e){let{spanId:t,traceId:n,isRemote:r}=e.spanContext(),i=r?t:I(e).parent_span_id,a=qt(e).scope;return{parent_span_id:i,span_id:r?a?.getPropagationContext().propagationSpanId||ft():t,trace_id:n}}function xn(e){let{traceId:t,spanId:n}=e.spanContext();return hn(t,n,Dn(e))}function Sn(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 Cn(e){return typeof e==`number`?wn(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?wn(e.getTime()):j()}function wn(e){return e>9999999999?e/1e3:e}function I(e){if(En(e))return e.getSpanJSON();let{spanId:t,traceId:n}=e.spanContext();if(Tn(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:`parentSpanId`in e?e.parentSpanId:`parentSpanContext`in e?e.parentSpanContext?.spanId:void 0,start_timestamp:Cn(i),timestamp:Cn(o)||void 0,status:On(s),op:r[Pt],origin:r[F],links:Sn(c)}}return{span_id:t,trace_id:n,start_timestamp:0,data:{}}}function Tn(e){let t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function En(e){return typeof e.getSpanJSON==`function`}function Dn(e){let{traceFlags:t}=e.spanContext();return t===1}function On(e){if(!(!e||e.code===0))return e.code===1?`ok`:e.message||`unknown_error`}var kn=`_sentryChildSpans`,An=`_sentryRootSpan`;function jn(e,t){Le(t,An,e[An]||e),e[kn]?e[kn].add(t):Le(e,kn,new Set([t]))}function Mn(e,t){e[kn]&&e[kn].delete(t)}function Nn(e){let t=new Set;function n(e){if(!t.has(e)&&Dn(e)){t.add(e);let r=e[kn]?Array.from(e[kn]):[];for(let e of r)n(e)}}return n(e),Array.from(t)}function Pn(e){return e[An]||e}function L(){let e=Et(r());return e.getActiveSpan?e.getActiveSpan():ht(M())}function Fn(){vn||=(c(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly.")}),!0)}function In(e,t){e.updateName(t),e.setAttributes({[jt]:`custom`,[Rt]:t})}var Ln=!1;function Rn(){if(Ln)return;function e(){let e=L(),t=e&&Pn(e);t&&t.setStatus({code:2,message:`internal_error`})}e.tag=`sentry_tracingErrorCallback`,Ln=!0,k(e),oe(e)}function zn(e){if(typeof __SENTRY_TRACING__==`boolean`&&!__SENTRY_TRACING__)return!1;let t=e||P()?.getOptions();return!!t&&(t.tracesSampleRate!=null||!!t.tracesSampler)}var Bn=`production`,Vn=`_frozenDsc`;function Hn(e,t){Le(e,Vn,t)}function Un(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:ln(t)};return t.emit(`createDsc`,i),i}function Wn(e,t){let n=t.getPropagationContext();return n.dsc||Un(n.traceId,e)}function Gn(e){let t=P();if(!t)return{};let n=Pn(e),r=I(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[Vn];if(c)return s(c);let l=a?.get(`sentry.dsc`),u=l&&Xt(l);
2if(u)return s(u);let d=Un(e.spanContext().traceId,t),f=i[jt],p=r.description;return f!==`url`&&p&&(d.transaction=p),zn()&&(d.sampled=String(Dn(n)),d.sample_rand=a?.get(`sentry.sample_rand`)??qt(n).scope?.getPropagationContext().sampleRand.toString()),s(d),t.emit(`createDsc`,d,n),d}function Kn(e){return Zt(Gn(e))}var qn=class{constructor(e={}){this._traceId=e.traceId||dt(),this._spanId=e.spanId||ft()}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 Jn(e,t=100,n=1/0){try{return Xn(``,e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function Yn(e,t=3,n=100*1024){let r=Jn(e,t);return er(r)>n?Yn(e,t-1,n):r}function Xn(e,t,n=1/0,r=1/0,i=tr()){let[a,o]=i;if(t==null||[`boolean`,`string`].includes(typeof t)||typeof t==`number`&&Number.isFinite(t))return t;let s=Zn(e,t);if(!s.startsWith(`[object `))return s;if(t.__sentry_skip_normalization__)return t;let c=typeof t.__sentry_override_normalization_depth__==`number`?t.__sentry_override_normalization_depth__:n;if(c===0)return s.replace(`object `,``);if(a(t))return`[Circular ~]`;let l=t;if(l&&typeof l.toJSON==`function`)try{return Xn(``,l.toJSON(),c-1,r,i)}catch{}let u=Array.isArray(t)?[]:{},d=0,f=Be(t);for(let e in f){if(!Object.prototype.hasOwnProperty.call(f,e))continue;if(d>=r){u[e]=`[MaxProperties ~]`;break}let t=f[e];u[e]=Xn(e,t,c-1,r,i),d++}return o(t),u}function Zn(e,t){try{if(e===`domain`&&t&&typeof t==`object`&&t._events)return`[Domain]`;if(e===`domainEmitter`)return`[DomainEmitter]`;if(typeof global<`u`&&t===global)return`[Global]`;if(typeof window<`u`&&t===window)return`[Window]`;if(typeof document<`u`&&t===document)return`[Document]`;if(Ce(t))return`[VueViewModel]`;if(xe(t))return`[SyntheticEvent]`;if(typeof t==`number`&&!Number.isFinite(t))return`[${t}]`;if(typeof t==`function`)return`[Function: ${T(t)}]`;if(typeof t==`symbol`)return`[${String(t)}]`;if(typeof t==`bigint`)return`[BigInt: ${String(t)}]`;let n=Qn(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(e){return`**non-serializable** (${e})`}}function Qn(e){let t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:`null prototype`}function $n(e){return~-encodeURI(e).split(/%..|./).length}function er(e){return $n(JSON.stringify(e))}function tr(){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 nr(e,t=[]){return[e,t]}function rr(e,t){let[n,r]=e;return[n,[...r,t]]}function ir(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 ar(e,t){return ir(e,(e,n)=>t.includes(n))}function or(e){let n=i(t);return n.encodePolyfill?n.encodePolyfill(e):new TextEncoder().encode(e)}function sr(e){let n=i(t);return n.decodePolyfill?n.decodePolyfill(e):new TextDecoder().decode(e)}function cr(e){let[t,n]=e,r=JSON.stringify(t);function i(e){typeof r==`string`?r=typeof e==`string`?r+e:[or(r),e]:r.push(typeof e==`string`?or(e):e)}for(let e of n){let[t,n]=e;if(i(`\n${JSON.stringify(t)}\n`),typeof n==`string`||n instanceof Uint8Array)i(n);else{let e;try{e=JSON.stringify(n)}catch{e=JSON.stringify(Jn(n))}i(e)}}return typeof r==`string`?r:lr(r)}function lr(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 ur(e){let t=typeof e==`string`?or(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(sr(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 dr(e){return[{type:`span`},e]}function fr(e){let t=typeof e.data==`string`?or(e.data):e.data;return[{type:`attachment`,length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}var pr={session:`session`,sessions:`session`,attachment:`attachment`,transaction:`transaction`,event:`error`,client_report:`internal`,user_report:`default`,profile:`profile`,profile_chunk:`profile`,replay_event:`replay`,replay_recording:`replay`,check_in:`monitor`,feedback:`feedback`,span:`span`,raw_security:`security`,log:`log_item`};function mr(e){return pr[e]}function hr(e){if(!e?.sdk)return;
2let{name:t,version:n}=e.sdk;return{name:t,version:n}}function gr(e,t,n,r){let i=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:rn(r)},...i&&{trace:i}}}function _r(e,t){if(!t?.length||!e.description)return!1;for(let n of t){if(yr(n)){if(Pe(e.description,n))return!0;continue}if(!n.name&&!n.op)continue;let t=n.name?Pe(e.description,n.name):!0,r=n.op?e.op&&Pe(e.op,n.op):!0;if(t&&r)return!0}return!1}function vr(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 yr(e){return typeof e==`string`||e instanceof RegExp}function br(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 xr(e,t,n,r){let i=hr(n);return nr({sent_at:new Date().toISOString(),...i&&{sdk:i},...!!r&&t&&{dsn:rn(t)}},[`aggregates`in e?[{type:`sessions`},e]:[{type:`session`},e.toJSON()]])}function Sr(e,t,n,r){let i=hr(n),a=e.type&&e.type!==`replay_event`?e.type:`event`;br(e,n?.sdk);let o=gr(e,i,r,t);return delete e.sdkProcessingMetadata,nr(o,[[{type:a},e]])}function Cr(e,t){function n(e){return!!e.trace_id&&!!e.public_key}let r=Gn(e[0]),i=t?.getDsn(),a=t?.getOptions().tunnel,o={sent_at:new Date().toISOString(),...n(r)&&{trace:r},...!!a&&i&&{dsn:rn(i)}},{beforeSendSpan:s,ignoreSpans:c}=t?.getOptions()||{},l=c?.length?e.filter(e=>!_r(I(e),c)):e,u=e.length-l.length;u&&t?.recordDroppedEvent(`before_send`,`span`,u);let d=s?e=>{let t=I(e);return s(t)||(Fn(),t)}:I,f=[];for(let e of l){let t=d(e);t&&f.push(dr(t))}return nr(o,f)}function wr(e,t,n,r=L()){let i=r&&Pn(r);i&&i.addEvent(e,{[Lt]:t,[It]:n})}function Tr(e){if(!e||e.length===0)return;let t={};return e.forEach(e=>{let n=e.attributes||{},r=n[It],i=n[Lt];typeof r==`string`&&typeof i==`number`&&(t[e.name]={value:i,unit:r})}),t}var Er=1e3,Dr=class{constructor(e={}){this._traceId=e.traceId||dt(),this._spanId=e.spanId||ft(),this._startTime=e.startTimestamp||j(),this._links=e.links,this._attributes={},this.setAttributes({[F]:`manual`,[Pt]:e.op,...e.attributes}),this._name=e.name,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),`sampled`in e&&(this._sampled=e.sampled),e.endTimestamp&&(this._endTime=e.endTimestamp),this._events=[],this._isStandaloneSpan=e.isStandalone,this._endTime&&this._onSpanEnded()}addLink(e){return this._links?this._links.push(e):this._links=[e],this}addLinks(e){return 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 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._startTime=Cn(e)}setStatus(e){return this._status=e,this}updateName(e){return this._name=e,this.setAttribute(jt,`custom`),this}end(e){this._endTime||(this._endTime=Cn(e),this,this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[Pt],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:On(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[F],profile_id:this._attributes[zt],exclusive_time:this._attributes[Bt],measurements:Tr(this._events),is_segment:this._isStandaloneSpan&&Pn(this)===this||void 0,segment_id:this._isStandaloneSpan?Pn(this).spanContext().spanId:void 0,links:Sn(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,n){let r=Or(t)?t:n||j(),i=Or(t)?{}:t||{},a={name:e,time:Cn(r),attributes:i};return this._events.push(a),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){let e=P();if(e&&e.emit(`spanEnd`,this),!(this._isStandaloneSpan||this===Pn(this)))return;if(this._isStandaloneSpan){this._sampled?jr(Cr([this],e)):e&&e.recordDroppedEvent(`sample_rate`,`span`);return}let t=this._convertSpanToTransaction();t&&(qt(this).scope||M()).captureEvent(t)}_convertSpanToTransaction(){if(!kr(I(this)))return;this._name||=`<unlabeled transaction>`;let{scope:e,isolationScope:t}=qt(this),n=e?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(this._sampled!==!0)return;let r=Nn(this).filter(e=>e!==this&&!Ar(e)).map(e=>I(e)).filter(kr),i=this._attributes[jt];
2delete this._attributes[Rt],r.forEach(e=>{delete e.data[Rt]});let a={contexts:{trace:yn(this)},spans:r.length>Er?r.sort((e,t)=>e.start_timestamp-t.start_timestamp).slice(0,Er):r,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:`transaction`,sdkProcessingMetadata:{capturedSpanScope:e,capturedSpanIsolationScope:t,dynamicSamplingContext:Gn(this)},request:n,...i&&{transaction_info:{source:i}}},o=Tr(this._events);return o&&Object.keys(o).length&&(a.measurements=o),a}};function Or(e){return e&&typeof e==`number`||e instanceof Date||Array.isArray(e)}function kr(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}function Ar(e){return e instanceof Dr&&e.isStandaloneSpan()}function jr(e){let t=P();if(!t)return;let n=e[1];if(!n||n.length===0){t.recordDroppedEvent(`before_send`,`span`);return}t.sendEnvelope(e)}function Mr(e,t,n=()=>{}){let r;try{r=e()}catch(e){throw t(e),n(),e}return Nr(r,t,n)}function Nr(e,t,n){return be(e)?e.then(e=>(n(),e),e=>{throw t(e),n(),e}):(n(),e)}function Pr(e,t,n){if(!zn(e))return[!1];let r,i;typeof e.tracesSampler==`function`?(i=e.tracesSampler({...t,inheritOrSampleWith:e=>typeof t.parentSampleRate==`number`?t.parentSampleRate:typeof t.parentSampled==`boolean`?Number(t.parentSampled):e}),r=!0):t.parentSampled===void 0?e.tracesSampleRate!==void 0&&(i=e.tracesSampleRate,r=!0):i=t.parentSampled;let a=dn(i);return a===void 0?[!1]:a?[n<a,a,r]:[!1,a,r]}var Fr=`__SENTRY_SUPPRESS_TRACING__`;function Ir(e,t){let n=Gr();if(n.startSpan)return n.startSpan(e,t);let r=Wr(e),{forceTransaction:i,parentSpan:a,scope:o}=e,s=o?.clone();return Ot(s,()=>Yr(a)(()=>{let n=M(),o=Jr(n,a),s=e.onlyIfParent&&!o?new qn:Ur({parentSpan:o,spanArguments:r,forceTransaction:i,scope:n});return mt(n,s),Mr(()=>t(s),()=>{let{status:e}=I(s);s.isRecording()&&(!e||e===`ok`)&&s.setStatus({code:2,message:`internal_error`})},()=>{s.end()})}))}function Lr(e,t){let n=Gr();if(n.startSpanManual)return n.startSpanManual(e,t);let r=Wr(e),{forceTransaction:i,parentSpan:a,scope:o}=e,s=o?.clone();return Ot(s,()=>Yr(a)(()=>{let n=M(),o=Jr(n,a),s=e.onlyIfParent&&!o?new qn:Ur({parentSpan:o,spanArguments:r,forceTransaction:i,scope:n});return mt(n,s),Mr(()=>t(s,()=>s.end()),()=>{let{status:e}=I(s);s.isRecording()&&(!e||e===`ok`)&&s.setStatus({code:2,message:`internal_error`})})}))}function Rr(e){let t=Gr();if(t.startInactiveSpan)return t.startInactiveSpan(e);let n=Wr(e),{forceTransaction:r,parentSpan:i}=e;return(e.scope?t=>Ot(e.scope,t):i===void 0?e=>e():e=>Br(i,e))(()=>{let t=M(),a=Jr(t,i);return e.onlyIfParent&&!a?new qn:Ur({parentSpan:a,spanArguments:n,forceTransaction:r,scope:t})})}var zr=(e,t)=>{let n=Et(r());if(n.continueTrace)return n.continueTrace(e,t);let{sentryTrace:i,baggage:a}=e,o=P(),s=Xt(a);return o&&!_n(o,s?.org_id)?Hr(t):Ot(e=>{let n=mn(i,a);return e.setPropagationContext(n),t()})};function Br(e,t){let n=Gr();return n.withActiveSpan?n.withActiveSpan(e,t):Ot(n=>(mt(n,e||void 0),t(n)))}function Vr(e){let t=Gr();return t.suppressTracing?t.suppressTracing(e):Ot(t=>{t.setSDKProcessingMetadata({[Fr]:!0});let n=e();return t.setSDKProcessingMetadata({[Fr]:void 0}),n})}function Hr(e){return Ot(t=>(t.setPropagationContext({traceId:dt(),sampleRand:Math.random()}),Br(null,e)))}function Ur({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){if(!zn()){let r=new qn;return(n||!e)&&Hn(r,{sampled:`false`,sample_rate:`0`,transaction:t.name,...Gn(r)}),r}let i=N(),a;if(e&&!n)a=qr(e,r,t),jn(e,a);else if(e){let n=Gn(e),{traceId:i,spanId:o}=e.spanContext(),s=Dn(e);a=Kr({traceId:i,parentSpanId:o,...t},r,s),Hn(a,n)}else{let{traceId:e,dsc:n,parentSpanId:o,sampled:s}={...i.getPropagationContext(),...r.getPropagationContext()};a=Kr({traceId:e,parentSpanId:o,...t},r,s),n&&Hn(a,n)}return Kt(a,r,i),a}function Wr(e){let t={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){let n={...t};return n.startTimestamp=Cn(e.startTime),delete n.startTime,n}return t}function Gr(){return Et(r())}function Kr(e,t,n){let r=P(),i=r?.getOptions()||{},{name:a=``}=e,o={spanAttributes:{...e.attributes},spanName:a,parentSampled:n};r?.emit(`beforeSampling`,o,{decision:!1});let s=o.parentSampled??n,c=o.spanAttributes,l=t.getPropagationContext(),[u,d,f]=t.getScopeData().sdkProcessingMetadata[Fr]?[!1]:Pr(i,{name:a,parentSampled:s,attributes:c,parentSampleRate:dn(l.dsc?.sample_rate)},l.sampleRand),p=new Dr({...e,attributes:{[jt]:`custom`,[Mt]:d!==void 0&&f?d:void 0,...c},sampled:u});return!u&&r&&r.recordDroppedEvent(`sample_rate`,`transaction`),r&&r.emit(`spanStart`,p),p}function qr(e,t,n){let{spanId:r,traceId:i}=e.spanContext(),a=t.getScopeData().sdkProcessingMetadata[Fr]?!1:Dn(e),o=a?new Dr({...n,parentSpanId:r,traceId:i,sampled:a}):new qn({traceId:i});jn(e,o);let s=P();return s&&(s.emit(`spanStart`,o),n.endTimestamp&&s.emit(`spanEnd`,o)),o}function Jr(e,t){if(t)return t;if(t===null)return;let n=ht(e);
2if(!n)return;let r=P();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?Pn(n):n}function Yr(e){return e===void 0?e=>e():t=>Br(e,t)}var Xr={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},Zr=`heartbeatFailed`,Qr=`idleTimeout`,$r=`finalTimeout`,ei=`externalFinish`;function ti(e,t={}){let n=new Map,r=!1,i,a=ei,o=!t.disableAutoFinish,s=[],{idleTimeout:c=Xr.idleTimeout,finalTimeout:l=Xr.finalTimeout,childSpanTimeout:u=Xr.childSpanTimeout,beforeSpanEnd:d}=t,f=P();if(!f||!zn()){let e=new qn;return Hn(e,{sample_rate:`0`,sampled:`false`,...Gn(e)}),e}let p=M(),m=L(),h=ni(e);h.end=new Proxy(h.end,{apply(e,t,n){if(d&&d(h),t instanceof qn)return;let[r,...i]=n,a=Cn(r||j()),o=Nn(h).filter(e=>e!==h);if(!o.length)return S(a),Reflect.apply(e,t,[a,...i]);let s=o.map(e=>I(e).timestamp).filter(e=>!!e),c=s.length?Math.max(...s):void 0,u=I(h).start_timestamp,f=Math.min(u?u+l/1e3:1/0,Math.max(u||-1/0,Math.min(a,c||1/0)));return S(f),Reflect.apply(e,t,[f,...i])}});function _(){i&&=(clearTimeout(i),void 0)}function v(e){_(),i=setTimeout(()=>{!r&&n.size===0&&o&&(a=Qr,h.end(e))},c)}function y(e){i=setTimeout(()=>{!r&&o&&(a=Zr,h.end(e))},u)}function b(e){_(),n.set(e,!0),y(j()+u/1e3)}function x(e){n.has(e)&&n.delete(e),n.size===0&&v(j()+c/1e3)}function S(e){r=!0,n.clear(),s.forEach(e=>e()),mt(p,m);let t=I(h),{start_timestamp:i}=t;if(!i)return;t.data[`sentry.idle_span_finish_reason`]||h.setAttribute(Ft,a),g.log(`[Tracing] Idle span "${t.op}" finished`);let o=Nn(h).filter(e=>e!==h),u=0;o.forEach(t=>{t.isRecording()&&(t.setStatus({code:2,message:`cancelled`}),t.end(e));let{timestamp:n=0,start_timestamp:r=0}=I(t),i=r<=e,a=(l+c)/1e3;(!(n-r<=a)||!i)&&(Mn(h,t),u++)}),u>0&&h.setAttribute(`sentry.idle_span_discarded_spans`,u)}return s.push(f.on(`spanStart`,e=>{r||e===h||I(e).timestamp||e instanceof Dr&&e.isStandaloneSpan()||Nn(h).includes(e)&&b(e.spanContext().spanId)})),s.push(f.on(`spanEnd`,e=>{r||x(e.spanContext().spanId)})),s.push(f.on(`idleSpanEnableAutoFinish`,e=>{e===h&&(o=!0,v(),n.size&&y())})),t.disableAutoFinish||v(),setTimeout(()=>{r||(h.setStatus({code:2,message:`deadline_exceeded`}),a=$r,h.end())},l),h}function ni(e){let t=Rr(e);return mt(M(),t),t}var ri=0,ii=1,ai=2;function oi(e){return new ci(t=>{t(e)})}function si(e){return new ci((t,n)=>{n(e)})}var ci=class e{constructor(e){this._state=ri,this._handlers=[],this._runExecutor(e)}then(t,n){return new e((e,r)=>{this._handlers.push([!1,n=>{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===ri)return;let e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||=(this._state===ii&&e[1](this._value),this._state===ai&&e[2](this._value),!0)})}_runExecutor(e){let t=(e,t)=>{if(this._state===ri){if(be(t)){t.then(n,r);return}this._state=e,this._value=t,this._executeHandlers()}},n=e=>{t(ii,e)},r=e=>{t(ai,e)};try{e(n,r)}catch(e){r(e)}}};function li(e,t,n,r=0){return new ci((i,a)=>{let o=e[r];if(t===null||typeof o!=`function`)i(t);else{let s=o({...t},n);be(s)?s.then(t=>li(e,t,n,r+1).then(i)).then(null,a):li(e,s,n,r+1).then(i).then(null,a)}})}function ui(e,t){let{fingerprint:n,span:r,breadcrumbs:i,sdkProcessingMetadata:a}=t;pi(e,t),r&&gi(e,r),_i(e,n),mi(e,i),hi(e,a)}function di(e,t){let{extra:n,tags:r,user:i,contexts:a,level:o,sdkProcessingMetadata:s,breadcrumbs:c,fingerprint:l,eventProcessors:u,attachments:d,propagationContext:f,transactionName:p,span:m}=t;fi(e,`extra`,n),fi(e,`tags`,r),fi(e,`user`,i),fi(e,`contexts`,a),e.sdkProcessingMetadata=ut(e.sdkProcessingMetadata,s,2),o&&(e.level=o),p&&(e.transactionName=p),m&&(e.span=m),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),l.length&&(e.fingerprint=[...e.fingerprint,...l]),u.length&&(e.eventProcessors=[...e.eventProcessors,...u]),d.length&&(e.attachments=[...e.attachments,...d]),e.propagationContext={...e.propagationContext,...f}}function fi(e,t,n){e[t]=ut(e[t],n,1)}function pi(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 mi(e,t){let n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function hi(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function gi(e,t){e.contexts={trace:bn(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:Gn(t),...e.sdkProcessingMetadata};let n=I(Pn(t)).description;n&&!e.transaction&&e.type===`transaction`&&(e.transaction=n)}function _i(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 vi,yi,bi;function xi(e){let n=t._sentryDebugIds;if(!n)return{};let r=Object.keys(n);return bi&&r.length===yi?bi:(yi=r.length,bi=r.reduce((t,r)=>{vi||={};let i=vi[r];if(i)t[i[0]]=i[1];else{let i=e(r);for(let e=i.length-1;e>=0;e--){let a=i[e]?.filename,o=n[r];if(a&&o){t[a]=o,vi[r]=[a,o];break}}}return t},{}),bi)}function Si(e,t){let n=xi(e);if(!n)return[];let r=[];for(let e of t)e&&n[e]&&r.push({type:`sourcemap`,code_file:e,debug_id:n[e]});return r}function Ci(e,t,n,r,i,a){let{normalizeDepth:o=3,normalizeMaxBreadth:s=1e3}=e,c={...t,event_id:t.event_id||n.event_id||Ge(),timestamp:t.timestamp||et()},l=n.integrations||e.integrations.map(e=>e.name);wi(c,e),Di(c,l),i&&i.emit(`applyFrameMetadata`,t),t.type===void 0&&Ti(c,e.stackParser);let u=ki(r,n.captureContext);n.mechanism&&Ye(c,n.mechanism);let d=i?i.getEventProcessors():[],f=Dt().getScopeData();
2a&&di(f,a.getScopeData()),u&&di(f,u.getScopeData());let p=[...n.attachments||[],...f.attachments];return p.length&&(n.attachments=p),ui(c,f),li([...d,...f.eventProcessors],c,n).then(e=>(e&&Ei(e),typeof o==`number`&&o>0?Oi(e,o,s):e))}function wi(e,t){let{environment:n,release:r,dist:i,maxValueLength:a=250}=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&&(o.url=je(o.url,a))}function Ti(e,t){let n=xi(t);e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.filename&&(e.debug_id=n[e.filename])})})}function Ei(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 Di(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function Oi(e,t,n){if(!e)return null;let r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:Jn(e.data,t,n)}}))},...e.user&&{user:Jn(e.user,t,n)},...e.contexts&&{contexts:Jn(e.contexts,t,n)},...e.extra&&{extra:Jn(e.extra,t,n)}};return e.contexts?.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=Jn(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(e=>({...e,...e.data&&{data:Jn(e.data,t,n)}}))),e.contexts?.flags&&r.contexts&&(r.contexts.flags=Jn(e.contexts.flags,3,n)),r}function ki(e,t){if(!t)return e;let n=e?e.clone():new _t;return n.update(t),n}function Ai(e){if(e)return ji(e)||Ni(e)?{captureContext:e}:e}function ji(e){return e instanceof _t||typeof e==`function`}var Mi=[`user`,`level`,`extra`,`contexts`,`tags`,`fingerprint`,`propagationContext`];function Ni(e){return Object.keys(e).some(e=>Mi.includes(e))}function Pi(e,t){return M().captureException(e,Ai(t))}function Fi(e,t){let n=typeof t==`string`?t:void 0,r=typeof t==`string`?void 0:{captureContext:t};return M().captureMessage(e,n,r)}function Ii(e,t){return M().captureEvent(e,t)}function Li(e,t){N().setContext(e,t)}function Ri(e){N().setExtras(e)}function zi(e,t){N().setExtra(e,t)}function Bi(e){N().setTags(e)}function Vi(e,t){N().setTag(e,t)}function Hi(e){N().setUser(e)}function Ui(){return N().lastEventId()}async function Wi(e){let t=P();return t?t.flush(e):Promise.resolve(!1)}async function Gi(e){let t=P();return t?t.close(e):Promise.resolve(!1)}function Ki(){return!!P()}function qi(){let e=P();return e?.getOptions().enabled!==!1&&!!e?.getTransport()}function Ji(e){N().addEventProcessor(e)}function Yi(e){let n=N(),r=M(),{userAgent:i}=t.navigator||{},a=ot({user:r.getUser()||n.getUser(),...i&&{userAgent:i},...e}),o=n.getSession();return o?.status===`ok`&&st(o,{status:`exited`}),Xi(),n.setSession(a),a}function Xi(){let e=N(),t=M().getSession()||e.getSession();t&&ct(t),Zi(),e.setSession()}function Zi(){let e=N(),t=P(),n=e.getSession();n&&t&&t.captureSession(n)}function Qi(e=!1){if(e){Xi();return}Zi()}var $i=`7`;function ea(e){let t=e.protocol?`${e.protocol}:`:``,n=e.port?`:${e.port}`:``;return`${t}//${e.host}${n}${e.path?`/${e.path}`:``}/api/`}function ta(e){return`${ea(e)}${e.projectId}/envelope/`}function na(e,t){let n={sentry_version:$i};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}function ra(e,t,n){return t||`${ta(e)}?${na(e,n)}`}function ia(e,t){let n=un(e);if(!n)return``;let r=`${ea(n)}embed/error-page/`,i=`dsn=${rn(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 aa=[];function oa(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 sa(e){let t=e.defaultIntegrations||[],n=e.integrations;
2t.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 oa(r)}function ca(e,t){let n={};return t.forEach(t=>{t&&ua(e,t,n)}),n}function la(e,t){for(let n of t)n?.afterAllSetup&&n.afterAllSetup(e)}function ua(e,t,n){if(!n[t.name]){if(n[t.name]=t,aa.indexOf(t.name)===-1&&typeof t.setupOnce==`function`&&(t.setupOnce(),aa.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)}}}function da(e){let t=P();t&&t.addIntegration(e)}function R(e){return e}function fa(e,t,n){let r=[{type:`client_report`},{timestamp:n||et(),discarded_events:e}];return nr(t?{dsn:t}:{},[r])}function pa(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 ma(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,timestamp:e.timestamp,trace_id:t??``,origin:a,profile_id:o?.[zt],exclusive_time:o?.[Bt],measurements:e.measurements,is_segment:!0}}function ha(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}}var ga=Symbol.for(`SentryInternalError`),_a=Symbol.for(`SentryDoNotSendEventError`);function va(e){return{message:e,[ga]:!0}}function ya(e){return{message:e,[_a]:!0}}function ba(e){return!!e&&typeof e==`object`&&ga in e}function xa(e){return!!e&&typeof e==`object`&&_a in e}var Sa=class{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn&&(this._dsn=un(e.dsn)),this._dsn){let t=ra(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})}}captureException(e,t,n){let r=Ge();if(Ze(e))return r;let i={event_id:r,...t};return this._process(this.eventFromException(e,i).then(e=>this._captureEvent(e,i,n))),i.event_id}captureMessage(e,t,n,r){let i={event_id:Ge(),...n},a=me(e)?e:String(e),o=he(e)?this.eventFromMessage(a,t,i):this.eventFromException(e,i);return this._process(o.then(e=>this._captureEvent(e,i,r))),i.event_id}captureEvent(e,t,n){let r=Ge();if(t?.originalException&&Ze(t.originalException))return r;let i={event_id:r,...t},a=e.sdkProcessingMetadata||{},o=a.capturedSpanScope,s=a.capturedSpanIsolationScope;return this._process(this._captureEvent(e,i,o||n,s)),i.event_id}captureSession(e){this.sendSession(e),st(e,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){let t=this._transport;
2return t?(this.emit(`flush`),this._isClientDoneProcessing(e).then(n=>t.flush(e).then(e=>n&&e))):oi(!0)}close(e){return this.flush(e).then(e=>(this.getOptions().enabled=!1,this.emit(`close`),e))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some(({name:e})=>e.startsWith(`Spotlight`)))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}addIntegration(e){let t=this._integrations[e.name];ua(this,e,this._integrations),t||la(this,[e])}sendEvent(e,t={}){this.emit(`beforeSendEvent`,e,t);let n=Sr(e,this._dsn,this._options._metadata,this._options.tunnel);for(let e of t.attachments||[])n=rr(n,fr(e));let r=this.sendEnvelope(n);r&&r.then(t=>this.emit(`afterSendEvent`,e,t),null)}sendSession(e){let{release:t,environment:n=Bn}=this._options;if(`aggregates`in e){let r=e.attrs||{};if(!r.release&&!t)return;r.release=r.release||t,r.environment=r.environment||n,e.attrs=r}else{if(!e.release&&!t)return;e.release=e.release||t,e.environment=e.environment||n}this.emit(`beforeSendSession`,e);let r=xr(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(r)}recordDroppedEvent(e,t,n=1){if(this._options.sendClientReports){let r=`${e}:${t}`;this._outcomes[r]=(this._outcomes[r]||0)+n}}on(e,t){let n=this._hooks[e]=this._hooks[e]||[];return n.push(t),()=>{let e=n.indexOf(t);e>-1&&n.splice(e,1)}}emit(e,...t){let n=this._hooks[e];n&&n.forEach(e=>e(...t))}sendEnvelope(e){return this.emit(`beforeEnvelope`,e),this._isEnabled()&&this._transport?this._transport.send(e).then(null,e=>e):oi({})}_setupIntegrations(){let{integrations:e}=this._options;this._integrations=ca(this,e),la(this,e)}_updateSessionFromEvent(e,t){let n=t.level===`fatal`,r=!1,i=t.exception?.values;if(i){r=!0;for(let e of i)if(e.mechanism?.handled===!1){n=!0;break}}let a=e.status===`ok`;(a&&e.errors===0||a&&n)&&(st(e,{...n&&{status:`crashed`},errors:e.errors||Number(r||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new ci(t=>{let n=0,r=setInterval(()=>{this._numProcessing==0?(clearInterval(r),t(!0)):(n+=1,e&&n>=e&&(clearInterval(r),t(!1)))},1)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(e,t,n,r){let i=this.getOptions(),a=Object.keys(this._integrations);return!t.integrations&&a?.length&&(t.integrations=a),this.emit(`preprocessEvent`,e,t),e.type||r.setLastEventId(e.event_id||t.event_id),Ci(i,e,t,n,this,r).then(e=>e===null?e:(this.emit(`postprocessEvent`,e,t),e.contexts={trace:At(n),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:Wn(this,n),...e.sdkProcessingMetadata},e))}_captureEvent(e,t={},n=M(),r=N()){return this._processEvent(e,t,n,r).then(e=>e.event_id,e=>{})}_processEvent(e,t,n,r){let i=this.getOptions(),{sampleRate:a}=i,o=Ea(e),s=Ta(e),c=e.type||`error`,l=`before send for type \`${c}\``,u=a===void 0?void 0:dn(a);if(s&&typeof u==`number`&&Math.random()>u)return this.recordDroppedEvent(`sample_rate`,`error`),si(ya(`Discarding event because it's not included in the random sample (sampling rate = ${a})`));let d=c===`replay_event`?`replay`:c;return this._prepareEvent(e,t,n,r).then(e=>{if(e===null)throw this.recordDroppedEvent(`event_processor`,d),ya("An event processor returned `null`, will not send event.");return t.data&&t.data.__sentry__===!0?e:Ca(wa(this,i,e,t),l)}).then(i=>{if(i===null){if(this.recordDroppedEvent(`before_send`,d),o){let t=1+(e.spans||[]).length;this.recordDroppedEvent(`before_send`,`span`,t)}throw ya(`${l} returned \`null\`, will not send event.`)}let a=n.getSession()||r.getSession();if(s&&a&&this._updateSessionFromEvent(a,i),o){let e=(i.sdkProcessingMetadata?.spanCountBeforeProcessing||0)-(i.spans?i.spans.length:0);e>0&&this.recordDroppedEvent(`before_send`,`span`,e)}let c=i.transaction_info;return o&&c&&i.transaction!==e.transaction&&(i.transaction_info={...c,source:`custom`}),this.sendEvent(i,t),i}).then(null,e=>{throw xa(e)||ba(e)?e:(this.captureException(e,{mechanism:{handled:!1,type:`internal`},data:{__sentry__:!0},originalException:e}),va(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`))})}_process(e){this._numProcessing++,e.then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,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(){let e=this._clearOutcomes();if(e.length===0||!this._dsn)return;let t=fa(e,this._options.tunnel&&rn(this._dsn));this.sendEnvelope(t)}};function Ca(e,t){let n=`${t} must return \`null\` or a valid event.`;if(be(e))return e.then(e=>{if(!ge(e)&&e!==null)throw va(n);return e},e=>{throw va(`${t} rejected with ${e}`)});if(!ge(e)&&e!==null)throw va(n);return e}function wa(e,t,n,r){let{beforeSend:i,beforeSendTransaction:a,beforeSendSpan:o,ignoreSpans:s}=t,c=n;
2if(Ta(c)&&i)return i(c,r);if(Ea(c)){if(o||s){let t=ma(c);if(s?.length&&_r(t,s))return null;if(o){let e=o(t);e?c=ut(n,ha(e)):Fn()}if(c.spans){let t=[],n=c.spans;for(let e of n){if(s?.length&&_r(e,s)){vr(n,e);continue}if(o){let n=o(e);n?t.push(n):(Fn(),t.push(e))}else t.push(e)}let r=c.spans.length-t.length;r&&e.recordDroppedEvent(`before_send`,`span`,r),c.spans=t}}if(a){if(c.spans){let e=c.spans.length;c.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return a(c,r)}}return c}function Ta(e){return e.type===void 0}function Ea(e){return e.type===`transaction`}function Da(e,t){return t?Ot(t,()=>{let n=L(),r=n?bn(n):At(t);return[n?Gn(n):Wn(e,t),r]}):[void 0,void 0]}var Oa={trace:1,debug:5,info:9,warn:13,error:17,fatal:21};function ka(e){return[{type:`log`,item_count:e.length,content_type:`application/vnd.sentry.items.log+json`},{items:e}]}function Aa(e,t,n,r){let i={};return t?.sdk&&(i.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(i.dsn=rn(r)),nr(i,[ka(e)])}var ja=100;function Ma(e){switch(typeof e){case`number`:return Number.isInteger(e)?{value:e,type:`integer`}:{value:e,type:`double`};case`boolean`:return{value:e,type:`boolean`};case`string`:return{value:e,type:`string`};default:{let t=``;try{t=JSON.stringify(e)??``}catch{}return{value:t,type:`string`}}}}function Na(e,t,n,r=!0){n&&(!e[t]||r)&&(e[t]=n)}function Pa(e,t){let n=za(),r=La(e);r===void 0?n.set(e,[t]):(n.set(e,[...r,t]),r.length>=ja&&Ia(e,r))}function Fa(e,t=P(),n=M(),r=Pa){if(!t)return;let{release:i,environment:a,enableLogs:o=!1,beforeSendLog:s}=t.getOptions();if(!o)return;let[,l]=Da(t,n),u={...e.attributes},{user:{id:d,email:f,username:p}}=Ra(n);Na(u,`user.id`,d,!1),Na(u,`user.email`,f,!1),Na(u,`user.name`,p,!1),Na(u,`sentry.release`,i),Na(u,`sentry.environment`,a);let{name:m,version:h}=t.getSdkMetadata()?.sdk??{};Na(u,`sentry.sdk.name`,m),Na(u,`sentry.sdk.version`,h),Na(u,`sentry.replay_id`,t.getIntegrationByName(`Replay`)?.getReplayId());let g=e.message;if(me(g)){let{__sentry_template_string__:e,__sentry_template_values__:t=[]}=g;t?.length&&(u[`sentry.message.template`]=e),t.forEach((e,t)=>{u[`sentry.message.parameter.${t}`]=e})}Na(u,`sentry.trace.parent_span_id`,ht(n)?.spanContext().spanId);let _={...e,attributes:u};t.emit(`beforeCaptureLog`,_);let v=s?c(()=>s(_)):_;if(!v){t.recordDroppedEvent(`before_send`,`log_item`,1);return}let{level:y,message:b,attributes:x={},severityNumber:S}=v;r(t,{timestamp:j(),level:y,body:b,trace_id:l?.trace_id,severity_number:S??Oa[y],attributes:Object.keys(x).reduce((e,t)=>(e[t]=Ma(x[t]),e),{})}),t.emit(`afterCaptureLog`,v)}function Ia(e,t){let n=t??La(e)??[];if(n.length===0)return;let r=e.getOptions(),i=Aa(n,r._metadata,r.tunnel,e.getDsn());za().set(e,[]),e.emit(`flushLogs`),e.sendEnvelope(i)}function La(e){return za().get(e)}function Ra(e){let t=Dt().getScopeData();return di(t,N().getScopeData()),di(t,e.getScopeData()),t}function za(){return a(`clientToLogBufferMap`,()=>new WeakMap)}function Ba(e,t){t.debug===!0&&c(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")}),M().update(t.initialScope);let n=new e(t);return Va(n),n.init(),n}function Va(e){M().setClient(e)}var Ha=Symbol.for(`SentryBufferFullError`);function Ua(e){let t=[];function n(){return e===void 0||t.length<e}function r(e){return t.splice(t.indexOf(e),1)[0]||Promise.resolve(void 0)}function i(e){if(!n())return si(Ha);let i=e();return t.indexOf(i)===-1&&t.push(i),i.then(()=>r(i)).then(null,()=>r(i).then(null,()=>{})),i}function a(e){return new ci((n,r)=>{let i=t.length;if(!i)return n(!0);let a=setTimeout(()=>{e&&e>0&&n(!1)},e);t.forEach(e=>{oi(e).then(()=>{--i||(clearTimeout(a),n(!0))},r)})})}return{$:t,add:i,drain:a}}var Wa=60*1e3;function Ga(e,t=Date.now()){let n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;let r=Date.parse(`${e}`);return isNaN(r)?Wa:r-t}function Ka(e,t){return e[t]||e.all||0}function qa(e,t,n=Date.now()){return Ka(e,t)>n}function Ja(e,{statusCode:t,headers:n},r=Date.now()){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+Ga(o,r):t===429&&(i.all=r+60*1e3);return i}function Ya(e,t,n=Ua(e.bufferSize||64)){let r={},i=e=>n.drain(e);function a(i){let a=[];if(ir(i,(t,n)=>{let i=mr(n);qa(r,i)?e.recordDroppedEvent(`ratelimit_backoff`,i):a.push(t)}),a.length===0)return oi({});let o=nr(i[0],a),s=t=>{ir(o,(n,r)=>{e.recordDroppedEvent(t,mr(r))})};return n.add(()=>t({body:cr(o)}).then(e=>(e.statusCode!==void 0&&(e.statusCode<200||e.statusCode),r=Ja(r,e),e),e=>{throw s(`network_error`),e})).then(e=>e,e=>
2{if(e===Ha)return s(`queue_overflow`),oi({});throw e})}return{send:a,flush:i}}var Xa=5e3,Za=36e5;function Qa(e){return t=>{let n=e(t);if(!t.createStore)throw Error("No `createStore` function was provided");let r=t.createStore(t),i=Xa,a;function o(e,n,r){return ar(e,[`client_report`])?!1:t.shouldStore?t.shouldStore(e,n,r):!0}function s(e){a&&clearTimeout(a),a=setTimeout(async()=>{a=void 0;let e=await r.shift();e&&(e[0].sent_at=new Date().toISOString(),l(e,!0).catch(e=>{}))},e),typeof a!=`number`&&a.unref&&a.unref()}function c(){a||(s(i),i=Math.min(i*2,Za))}async function l(e,a=!1){if(!a&&ar(e,[`replay_event`,`replay_recording`]))return await r.push(e),s(100),{};try{if(t.shouldSend&&await t.shouldSend(e)===!1)throw Error("Envelope not sent because `shouldSend` callback returned false");let r=await n.send(e),a=100;if(r){if(r.headers?.[`retry-after`])a=Ga(r.headers[`retry-after`]);else if(r.headers?.[`x-sentry-rate-limits`])a=6e4;else if((r.statusCode||0)>=400)return r}return s(a),i=Xa,r}catch(t){if(await o(e,t,i))return a?await r.unshift(e):await r.push(e),c(),{};throw t}}return t.flushAtStartup&&c(),{send:l,flush:e=>(e===void 0&&(i=Xa,s(100)),n.flush(e))}}}function $a(e,t){let n;return ir(e,(e,r)=>(t.includes(r)&&(n=Array.isArray(e)?e[1]:void 0),!!n)),n}function eo(e,t){return n=>{let r=e(n);return{...r,send:async e=>{let n=$a(e,[`event`,`transaction`,`profile`,`replay_event`]);return n&&(n.release=t),r.send(e)}}}}function to(e,t){return nr(t?{...e[0],dsn:t}:e[0],e[1])}function no(e,t){return n=>{let r=e(n),i=new Map;function a(t,r){let a=r?`${t}:${r}`:t,o=i.get(a);if(!o){let s=an(t);if(!s)return;let c=ra(s,n.tunnel);o=r?eo(e,r)({...n,url:c}):e({...n,url:c}),i.set(a,o)}return[t,o]}async function o(e){function n(t){return $a(e,t?.length?t:[`event`])}let i=t({envelope:e,getEvent:n}).map(e=>typeof e==`string`?a(e,void 0):a(e.dsn,e.release)).filter(e=>!!e),o=i.length?i:[[``,r]];return(await Promise.all(o.map(([t,n])=>n.send(to(e,t)))))[0]}async function s(e){let t=[...i.values(),r];return(await Promise.all(t.map(t=>t.flush(e)))).every(e=>e)}return{send:o,flush:s}}}var ro=`thismessage:/`;function io(e){return`isRelative`in e}function ao(e,t){let n=e.indexOf(`://`)<=0&&e.indexOf(`//`)!==0,r=t??(n?ro: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 oo(e){if(io(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 so(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 co(e){return e.split(/[?#]/,1)[0]}function lo(e,t){let n=t?.getDsn(),r=t?.getOptions().tunnel;return fo(e,n)||uo(e,r)}function uo(e,t){return t?po(e)===po(t):!1}function fo(e,t){let n=ao(e);return!n||io(n)?!1:t?n.host.includes(t.host)&&/(^|&|\?)sentry_key=/.test(n.search):!1}function po(e){return e[e.length-1]===`/`?e.slice(0,-1):e}function mo(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 ho=mo;function go(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 _o(e,t,r=[t],i=`npm`){let a=e._metadata||{};a.sdk||={name:`sentry.javascript.${t}`,packages:r.map(e=>({name:`${i}:@sentry/${e}`,version:n})),version:n},e._metadata=a}function vo(e={}){let t=e.client||P();if(!qi()||!t)return{};let n=Et(r());if(n.getTraceData)return n.getTraceData(e);let i=e.scope||M(),a=e.span||L(),o=a?xn(a):yo(i),s=Zt(a?Gn(a):Wn(t,i));if(!fn.test(o))return g.warn(`Invalid sentry-trace data. Cannot generate trace data`),{};let c={"sentry-trace":o,baggage:s};if(e.propagateTraceparent){let e=bo(o);e&&(c.traceparent=e)}return c}function yo(e){let{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return hn(t,r,n)}function bo(e){let{traceId:t,parentSpanId:n,parentSampled:r}=pn(e)||{};if(!(!t||!n))return`00-${t}-${n}-${r?`01`:`00`}`}
2function xo(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 So=100;function Co(e,t){let n=P(),r=N();if(!n)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:a=So}=n.getOptions();if(a<=0)return;let o={timestamp:et(),...e},s=i?c(()=>i(o,t)):o;s!==null&&(n.emit&&n.emit(`beforeAddBreadcrumb`,s,t),r.addBreadcrumb(s,a))}var wo,To=`FunctionToString`,Eo=new WeakMap,Do=R((()=>({name:To,setupOnce(){wo=Function.prototype.toString;try{Function.prototype.toString=function(...e){let t=ze(this),n=Eo.has(P())&&t!==void 0?t:this;return wo.apply(n,e)}}catch{}},setup(e){Eo.set(e,!0)}}))),Oo=[/^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. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)`,`Can't find variable: _AutofillCallbackHandler`,/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/,/^Java exception was raised during method invocation$/],ko=`EventFilters`,Ao=R((e={})=>{let t;return{name:ko,setup(n){t=Mo(e,n.getOptions())},processEvent(n,r,i){return t||=Mo(e,i.getOptions()),No(n,t)?null:n}}}),jo=R(((e={})=>({...Ao(e),name:`InboundFilters`})));function Mo(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:Oo],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function No(e,t){if(!e.type){if(Po(e,t.ignoreErrors)||Bo(e)||Io(e,t.denyUrls)||!Lo(e,t.allowUrls))return!0}else if(e.type===`transaction`&&Fo(e,t.ignoreTransactions))return!0;return!1}function Po(e,t){return t?.length?pa(e).some(e=>Fe(e,t)):!1}function Fo(e,t){if(!t?.length)return!1;let n=e.transaction;return n?Fe(n,t):!1}function Io(e,t){if(!t?.length)return!1;let n=zo(e);return n?Fe(n,t):!1}function Lo(e,t){if(!t?.length)return!0;let n=zo(e);return n?Fe(n,t):!0}function Ro(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 zo(e){try{let t=[...e.exception?.values??[]].reverse().find(e=>e.mechanism?.parent_id===void 0&&e.stacktrace?.frames?.length)?.stacktrace?.frames;return t?Ro(t):null}catch{return null}}function Bo(e){return e.exception?.values?.length?!e.message&&!e.exception.values.some(e=>e.stacktrace||e.type&&e.type!==`Error`||e.value):!1}function Vo(e,t,n,r,i,a){if(!i.exception?.values||!a||!Se(a.originalException,Error))return;let o=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;o&&(i.exception.values=Ho(e,t,r,a.originalException,n,i.exception.values,o,0))}function Ho(e,t,n,r,i,a,o,s){if(a.length>=n+1)return a;let c=[...a];if(Se(r[i],Error)){Uo(o,s);let a=e(t,r[i]),l=c.length;Wo(a,i,l,s),c=Ho(e,t,n,r[i],i,[a,...c],a,l)}return Array.isArray(r.errors)&&r.errors.forEach((r,a)=>{if(Se(r,Error)){Uo(o,s);let l=e(t,r),u=c.length;Wo(l,`errors[${a}]`,u,s),c=Ho(e,t,n,r,i,[l,...c],l,u)}}),c}function Uo(e,t){e.mechanism=e.mechanism||{type:`generic`,handled:!0},e.mechanism={...e.mechanism,...e.type===`AggregateError`&&{is_exception_group:!0},exception_id:t}}function Wo(e,t,n,r){e.mechanism=e.mechanism||{type:`generic`,handled:!0},e.mechanism={...e.mechanism,type:`chained`,source:t,exception_id:n,parent_id:r}}var Go=new Map,Ko=new Set;function qo(e){if(t._sentryModuleMetadata)for(let n of Object.keys(t._sentryModuleMetadata)){let r=t._sentryModuleMetadata[n];if(Ko.has(n))continue;Ko.add(n);let i=e(n);for(let e of i.reverse())if(e.filename){Go.set(e.filename,r);break}}}function Jo(e,t){return qo(e),Go.get(t)}
2function Yo(e,t){try{t.exception.values.forEach(t=>{if(t.stacktrace)for(let n of t.stacktrace.frames||[]){if(!n.filename||n.module_metadata)continue;let t=Jo(e,n.filename);t&&(n.module_metadata=t)}})}catch{}}function Xo(e){try{e.exception.values.forEach(e=>{if(e.stacktrace)for(let t of e.stacktrace.frames||[])delete t.module_metadata})}catch{}}var Zo=R(()=>({name:`ModuleMetadata`,setup(e){e.on(`beforeEnvelope`,e=>{ir(e,(e,t)=>{if(t===`event`){let t=Array.isArray(e)?e[1]:void 0;t&&(Xo(t),e[1]=t)}})}),e.on(`applyFrameMetadata`,t=>{if(t.type)return;let n=e.getOptions().stackParser;Yo(n,t)})}}));function Qo(e){let t=`console`;ne(t,e),D(t,$o)}function $o(){`console`in t&&o.forEach(function(e){e in t.console&&Ie(t.console,e,function(n){return s[e]=n,function(...n){O(`console`,{args:n,level:e}),s[e]?.apply(t.console,n)}})})}function es(e){return e===`warn`?`warning`:[`fatal`,`error`,`warning`,`log`,`info`,`debug`].includes(e)?e:`log`}var ts=`CaptureConsole`,ns=R(((e={})=>{let n=e.levels||o,r=e.handled??!0;return{name:ts,setup(e){`console`in t&&Qo(({args:t,level:i})=>{P()!==e||!n.includes(i)||rs(t,i,r)})}}}));function rs(e,t,n){let r={level:es(t),extra:{arguments:e}};Ot(i=>{if(i.addEventProcessor(e=>(e.logger=`console`,Ye(e,{handled:n,type:`console`}),e)),t===`assert`){if(!e[0]){let t=`Assertion failed: ${Ne(e.slice(1),` `)||`console.assert`}`;i.setExtra(`arguments`,e.slice(1)),Fi(t,r)}return}let a=e.find(e=>e instanceof Error);if(a){Pi(a,r);return}Fi(Ne(e,` `),r)})}var is=`Dedupe`,as=R((()=>{let e;return{name:is,processEvent(t){if(t.type)return t;try{if(os(t,e))return null}catch{}return e=t}}}));function os(e,t){return t?!!(ss(e,t)||cs(e,t)):!1}function ss(e,t){let n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!us(e,t)||!ls(e,t))}function cs(e,t){let n=ds(t),r=ds(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!us(e,t)||!ls(e,t))}function ls(e,t){let n=E(e),r=E(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let e=0;e<r.length;e++){let t=r[e],i=n[e];if(t.filename!==i.filename||t.lineno!==i.lineno||t.colno!==i.colno||t.function!==i.function)return!1}return!0}function us(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join(``)===r.join(``)}catch{return!1}}function ds(e){return e.exception?.values?.[0]}var fs=`ExtraErrorData`,ps=R(((e={})=>{let{depth:t=3,captureErrorCause:n=!0}=e;return{name:fs,processEvent(e,r,i){let{maxValueLength:a=250}=i.getOptions();return ms(e,r,t,n,a)}}}));function ms(e,t={},n,r,i){if(!t.originalException||!le(t.originalException))return e;let a=t.originalException.name||t.originalException.constructor.name,o=hs(t.originalException,r,i);if(o){let t={...e.contexts},r=Jn(o,n);return ge(r)&&(Le(r,`__sentry_skip_normalization__`,!0),t[a]=r),{...e,contexts:t}}return e}function hs(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]=le(a)||typeof a==`string`?je(`${a}`,n):a}if(t&&e.cause!==void 0&&(le(e.cause)?i.cause={[e.cause.name||e.cause.constructor.name]:hs(e.cause,!1,n)}:i.cause=e.cause),typeof e.toJSON==`function`){let t=e.toJSON();for(let e of Object.keys(t)){let n=t[e];i[e]=le(n)?n.toString():n}}return i}catch{}return null}function gs(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 _s=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function vs(e){let t=e.length>1024?`<truncated>${e.slice(-1024)}`:e,n=_s.exec(t);return n?n.slice(1):[]}function ys(...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=gs(t.split(`/`).filter(e=>!!e),!n).join(`/`),(n?`/`:``)+t||`.`}function bs(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 xs(e,t){e=ys(e).slice(1),t=ys(t).slice(1);let n=bs(e.split(`/`)),r=bs(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;
2e<n.length;e++)o.push(`..`);return o=o.concat(r.slice(a)),o.join(`/`)}function Ss(e,t){let n=vs(e)[2]||``;return t&&n.slice(t.length*-1)===t&&(n=n.slice(0,n.length-t.length)),n}var Cs=`RewriteFrames`,ws=R((e={})=>{let n=e.root,r=e.prefix||`app:///`,i=`window`in t&&!!t.window,a=e.iteratee||Ts({isBrowser:i,root:n,prefix:r});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:Cs,processEvent(e){let t=e;return e.exception&&Array.isArray(e.exception.values)&&(t=o(t)),t}}});function Ts({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?xs(t,e):Ss(e)}`}return r}}var Es=[`reauthenticate`,`signInAnonymously`,`signInWithOAuth`,`signInWithIdToken`,`signInWithOtp`,`signInWithPassword`,`signInWithSSO`,`signOut`,`signUp`,`verifyOtp`],Ds=[`createUser`,`deleteUser`,`listUsers`,`getUserById`,`updateUserById`,`inviteUserByEmail`],Os={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`},ks=[`select`,`insert`,`upsert`,`update`,`delete`];function As(e){try{e.__SENTRY_INSTRUMENTED__=!0}catch{}}function js(e){try{return e.__SENTRY_INSTRUMENTED__}catch{return!1}}function Ms(e,t={}){switch(e){case`GET`:return`select`;case`POST`:return t.Prefer?.includes(`resolution=`)?`upsert`:`insert`;case`PATCH`:return`update`;case`DELETE`:return`delete`;default:return`<unknown-op>`}}function Ns(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&&Os[n]||`filter`,`${i}(${e}, ${r.join(`.`)})`}function Ps(e,t=!1){return new Proxy(e,{apply(n,r,i){return Ir({name:`auth ${t?`(admin) `:``}${e.name}`,attributes:{[F]:`auto.db.supabase`,[Pt]:`db`,"db.system":`postgresql`,"db.operation":`auth.${t?`admin.`:``}${e.name}`}},e=>Reflect.apply(n,r,i).then(t=>(t&&typeof t==`object`&&`error`in t&&t.error?(e.setStatus({code:2}),Pi(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(),Pi(t,{mechanism:{handled:!1,type:`auto.db.supabase.auth`}}),t}).then(...i))}})}function Fs(e){let t=e.auth;if(!(!t||js(e.auth))){for(let n of Es){let r=t[n];r&&typeof e.auth[n]==`function`&&(e.auth[n]=Ps(r))}for(let n of Ds){let r=t.admin[n];r&&typeof e.auth.admin[n]==`function`&&(e.auth.admin[n]=Ps(r,!0))}As(e.auth)}}function Is(e){js(e.prototype.from)||(e.prototype.from=new Proxy(e.prototype.from,{apply(e,t,n){let r=Reflect.apply(e,t,n),i=r.constructor;return Rs(i),r}}),As(e.prototype.from))}function Ls(e){js(e.prototype.then)||(e.prototype.then=new Proxy(e.prototype.then,{apply(e,t,n){let r=ks,i=t,a=Ms(i.method,i.headers);if(!r.includes(a)||!i?.url?.pathname||typeof i.url.pathname!=`string`)return Reflect.apply(e,t,n);let o=i.url.pathname.split(`/`),s=o.length>0?o[o.length-1]:``,c=[];for(let[e,t]of i.url.searchParams.entries())c.push(Ns(e,t));let l=Object.create(null);if(ge(i.body))for(let[e,t]of Object.entries(i.body))l[e]=t;let u=`${a===`select`?``:`${a}${l?`(...) `:``}`}${c.join(` `)} from(${s})`,d={"db.table":s,"db.schema":i.schema,"db.url":i.url.origin,"db.sdk":i.headers[`X-Client-Info`],"db.system":`postgresql`,"db.operation":a,[F]:`auto.db.supabase`,[Pt]:`db`};return c.length&&(d[`db.query`]=c),Object.keys(l).length&&(d[`db.body`]=l),Ir({name:u,attributes:d},r=>Reflect.apply(e,t,[]).then(e=>{if(r&&(e&&typeof e==`object`&&`status`in e&&Ut(r,e.status||500),r.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={};c.length&&(n.query=c),Object.keys(l).length&&(n.body=l),Pi(t,e=>(e.addEventProcessor(e=>(Ye(e,{handled:!1,type:`auto.db.supabase.postgres`}),e)),e.setContext(`supabase`,n),e))}let t={type:`supabase`,category:`db.${a}`,message:u},n={};return c.length&&(n.query=c),Object.keys(l).length&&(n.body=l),Object.keys(n).length&&(t.data=n),Co(t),e},e=>{throw r&&(Ut(r,500),r.end()),e}).then(...n))}}),As(e.prototype.then))}function Rs(e){for(let t of ks)js(e.prototype[t])||(e.prototype[t]=new Proxy(e.prototype[t],{apply(e,t,n){let r=Reflect.apply(e,t,n),i=r.constructor;return Ls(i),r}}),As(e.prototype[t]))}var zs=e=>{e&&(Is(e.constructor===Function?e:e.constructor),Fs(e))},Bs=`Supabase`,Vs=(e=>({setupOnce(){zs(e)},name:Bs})),Hs=R(e=>Vs(e.supabaseClient)),Us=10,Ws=`ZodErrors`;function Gs(e){return le(e)&&e.name===`ZodError`&&Array.isArray(e.issues)}function Ks(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 qs(e){return e.map(e=>
2typeof e==`number`?`<array>`:e).join(`.`)}function Js(e){let t=new Set;for(let n of e.issues){let e=qs(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: ${je(n.join(`, `),100)}`}function Ys(e,t=!1,n,r){if(!n.exception?.values||!r.originalException||!Gs(r.originalException)||r.originalException.issues.length===0)return n;try{let i=(t?r.originalException.issues:r.originalException.issues.slice(0,e)).map(Ks);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:Js(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}\n${e.stack}`:`unknown`}}}}}var Xs=R(((e={})=>{let t=e.limit??Us;return{name:Ws,processEvent(n,r){return Ys(t,e.saveZodIssuesAsAttachment,n,r)}}})),Zs=R(e=>({name:`ThirdPartyErrorsFilter`,setup(e){e.on(`beforeEnvelope`,e=>{ir(e,(e,t)=>{if(t===`event`){let t=Array.isArray(e)?e[1]:void 0;t&&(Xo(t),e[1]=t)}})}),e.on(`applyFrameMetadata`,t=>{if(t.type)return;let n=e.getOptions().stackParser;Yo(n,t)})},processEvent(t){let n=Qs(t);if(n&&n[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;t.tags={...t.tags,third_party_code:!0}}return t}}));function Qs(e){let t=E(e);if(t)return t.filter(e=>!!e.filename).map(e=>e.module_metadata?Object.keys(e.module_metadata).filter(e=>e.startsWith($s)).map(e=>e.slice($s.length)):[])}var $s=`_sentryBundlerPluginAppKey:`,ec=`flag.evaluation.`;function tc(e){let t=M().getScopeData().contexts.flags,n=t?t.values:[];return n.length?(e.contexts===void 0&&(e.contexts={}),e.contexts.flags={values:[...n]},e):e}function nc(e,t,n=100){let r=M().getScopeData().contexts;r.flags||={values:[]};let i=r.flags.values;rc(i,e,t,n)}function rc(e,t,n,r){if(typeof n!=`boolean`||e.length>r)return;let i=e.findIndex(e=>e.flag===t);i!==-1&&e.splice(i,1),e.length===r&&e.shift(),e.push({flag:t,result:n})}function ic(e,t,n=10){if(typeof t!=`boolean`)return;let r=L();if(!r)return;let i=I(r).data;if(`${ec}${e}`in i){r.setAttribute(`${ec}${e}`,t);return}Object.keys(i).filter(e=>e.startsWith(ec)).length<n&&r.setAttribute(`${ec}${e}`,t)}var ac=R(()=>({name:`FeatureFlags`,processEvent(e,t,n){return tc(e)},addFeatureFlag(e,t){nc(e,t),ic(e,t)}}));function oc(e,t,n,r,i){if(!e.fetchData)return;let{method:a,url:o}=e.fetchData,s=zn()&&t(o);if(e.endTimestamp&&s){let t=e.fetchData.__span;if(!t)return;let n=r[t];n&&(cc(n,e),delete r[t]);return}let{spanOrigin:c=`auto.http.browser`,propagateTraceparent:l=!1}=typeof i==`object`?i:{spanOrigin:i},u=!!L(),d=s&&u?Rr(dc(o,a,c)):new qn;if(e.fetchData.__span=d.spanContext().spanId,r[d.spanContext().spanId]=d,n(e.fetchData.url)){let t=e.args[0],n=e.args[1]||{},r=sc(t,n,zn()&&u?d:void 0,l);r&&(e.args[1]=n,n.headers=r)}let f=P();if(f){let t={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};f.emit(`beforeOutgoingRequestSpan`,d,t)}return d}function sc(e,t,n,r){let i=vo({span:n,propagateTraceparent:r}),a=i[`sentry-trace`],o=i.baggage,s=i.traceparent;if(!a)return;let c=t.headers||(we(e)?e.headers:void 0);if(!c)return{...i};if(uc(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?lc(t)||e.set(`baggage`,`${t},${o}`):e.set(`baggage`,o)}return e}else if(Array.isArray(c)){let e=[...c];c.find(e=>e[0]===`sentry-trace`)||e.push([`sentry-trace`,a]),r&&s&&!c.find(e=>e[0]===`traceparent`)&&e.push([`traceparent`,s]);let t=c.find(e=>e[0]===`baggage`&&lc(e[1]));return o&&!t&&e.push([`baggage`,o]),e}else{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=>lc(e)):lc(n));o&&!l&&i.push(o);let u={...c,"sentry-trace":e??a,baggage:i.length>0?i.join(`,`):void 0};return r&&s&&!t&&(u.traceparent=s),u}}function cc(e,t){if(t.response){Ut(e,t.response.status);let n=t.response?.headers?.get(`content-length`);if(n){let t=parseInt(n);t>0&&e.setAttribute(`http.response_content_length`,t)}}else t.error&&e.setStatus({code:2,message:`internal_error`});e.end()}function lc(e){return e.split(`,`).some(e=>e.trim().startsWith(Jt))}function uc(e){return typeof Headers<`u`&&Se(e,Headers)}function dc(e,t,n){let r=ao(e);return{name:r?`${t} ${oo(r)}`:t,attributes:fc(e,r,t,n)}}function fc(e,t,n,r){let i={url:e,type:`fetch`,"http.method":n,[F]:r,[Pt]:`http.client`};return t&&(io(t)||(i[`http.url`]=t.href,i[`server.address`]=t.host),t.search&&(i[`http.query`]=t.search),t.hash&&(i[`http.fragment`]=t.hash)),i}function pc(e,t={},n=M()){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()||P();return d&&d.emit(`beforeSendFeedback`,u,t),n.captureEvent(u,t)}var mc=`ConsoleLogs`,hc={[F]:`auto.console.logging`},gc=R(((e={})=>{let t=e.levels||o;return{name:mc,setup(e){let{enableLogs:n,normalizeDepth:r=3,normalizeMaxBreadth:i=1e3}=e.getOptions();n&&Qo(({args:n,level:a})=>{if(P()!==e||!t.includes(a))return;if(a===`assert`){if(!n[0]){let e=n.slice(1);Fa({level:`error`,message:e.length>
20?`Assertion failed: ${_c(e,r,i)}`:`Assertion failed`,attributes:hc})}return}let o=a===`log`;Fa({level:o?`info`:a,message:_c(n,r,i),severityNumber:o?10:void 0,attributes:hc})})}}}));function _c(e,n,r){return`util`in t&&typeof t.util.format==`function`?t.util.format(...e):vc(e,n,r)}function vc(e,t,n){return e.map(e=>he(e)?String(e):JSON.stringify(Jn(e,t,n))).join(` `)}function yc(e){if(e!==void 0){if(e>=400&&e<500)return`warning`;if(e>=500)return`error`}}var bc=t;function xc(){return`history`in bc&&!!bc.history}function Sc(){if(!(`fetch`in bc))return!1;try{return new Headers,new Request(`http://www.example.com`),new Response,!0}catch{return!1}}function Cc(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function wc(){if(typeof EdgeRuntime==`string`)return!0;if(!Sc())return!1;if(Cc(bc.fetch))return!0;let e=!1,t=bc.document;if(t&&typeof t.createElement==`function`)try{let n=t.createElement(`iframe`);n.hidden=!0,t.head.appendChild(n),n.contentWindow?.fetch&&(e=Cc(n.contentWindow.fetch)),t.head.removeChild(n)}catch{}return e}function Tc(){return`ReportingObserver`in bc}function Ec(e,t){let n=`fetch`;ne(n,e),D(n,()=>Oc(void 0,t))}function Dc(e){let t=`fetch-body-resolved`;ne(t,e),D(t,()=>Oc(Ac))}function Oc(e,n=!1){n&&!wc()||Ie(t,`fetch`,function(n){return function(...r){let i=Error(),{method:a,url:o}=Nc(r),s={args:r,fetchData:{method:a,url:o},startTimestamp:j()*1e3,virtualError:i,headers:Pc(r)};return e||O(`fetch`,{...s}),n.apply(t,r).then(async t=>(e?e(t):O(`fetch`,{...s,endTimestamp:j()*1e3,response:t}),t),e=>{if(O(`fetch`,{...s,endTimestamp:j()*1e3,error:e}),le(e)&&e.stack===void 0&&(e.stack=i.stack,Le(e,`framesToPop`,1)),e instanceof TypeError&&(e.message===`Failed to fetch`||e.message===`Load failed`||e.message===`NetworkError when attempting to fetch resource.`))try{let t=new URL(s.fetchData.url);e.message=`${e.message} (${t.host})`}catch{}throw e})}})}async function kc(e,t){if(e?.body){let n=e.body,r=n.getReader(),i=setTimeout(()=>{n.cancel().then(null,()=>{})},90*1e3),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 Ac(e){let t;try{t=e.clone()}catch{return}kc(t,()=>{O(`fetch-body-resolved`,{endTimestamp:j()*1e3,response:e})})}function jc(e,t){return!!e&&typeof e==`object`&&!!e[t]}function Mc(e){return typeof e==`string`?e:e?jc(e,`url`)?e.url:e.toString?e.toString():``:``}function Nc(e){if(e.length===0)return{method:`GET`,url:``};if(e.length===2){let[t,n]=e;return{url:Mc(t),method:jc(n,`method`)?String(n.method).toUpperCase():`GET`}}let t=e[0];return{url:Mc(t),method:jc(t,`method`)?String(t.method).toUpperCase():`GET`}}function Pc(e){let[t,n]=e;try{if(typeof n==`object`&&n&&`headers`in n&&n.headers)return new Headers(n.headers);if(we(t))return new Headers(t.headers)}catch{}}function Fc(){return typeof __SENTRY_BROWSER_BUNDLE__<`u`&&!!__SENTRY_BROWSER_BUNDLE__}function Ic(){return`npm`}function Lc(){return!Fc()&&Object.prototype.toString.call(typeof process<`u`?process:0)===`[object process]`}function Rc(){return typeof window<`u`&&(!Lc()||zc())}function zc(){return t.process?.type===`renderer`}var Bc=t,z=Bc.document,Vc=Bc.navigator,Hc=`Report a Bug`,Uc=`Cancel`,Wc=`Send Bug Report`,Gc=`Confirm`,Kc=`Report a Bug`,qc=`[email protected]`,Jc=`Email`,Yc=`What's the bug? What did you expect?`,Xc=`Description`,Zc=`Your Name`,Qc=`Name`,$c=`Thank you for your report!`,el=`(required)`,tl=`Add a screenshot`,nl=`Remove screenshot`,rl=`Highlight`,il=`Hide`,al=`Remove`,ol=`widget`,sl=`api`,cl=5e3,ll=(e,t={includeReplay:!0})=>{if(!e.message)throw Error(`Unable to submit feedback with empty message`);let n=P();if(!n)throw Error(`No client setup, cannot send feedback.`);e.tags&&Object.keys(e.tags).length&&M().setTags(e.tags);let r=pc({source:sl,url:ke(),...e},t);return new Promise((e,t)=>{let i=setTimeout(()=>t(`Unable to determine if Feedback was correctly sent.`),3e4),a=n.on(`afterSendEvent`,(n,o)=>{if(n.event_id===r)return clearTimeout(i),a(),o?.statusCode&&o.statusCode>=200&&o.statusCode<300?e(r):o?.statusCode===403?t(`Unable to send feedback. This could be because this domain is not in your list of allowed domains.`):t(`Unable to send feedback. This could be because of network issues, or because you are using an ad-blocker.`)})})};function ul(){return!(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(Vc.userAgent)||/Macintosh/i.test(Vc.userAgent)&&Vc.maxTouchPoints&&Vc.maxTouchPoints>1||!isSecureContext)}function dl(e,t){return{...e,...t,tags:{...e.tags,...t.tags},onFormOpen:()=>
2{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 fl(e){let t=z.createElement(`style`);return t.textContent=`
3.widget__actor {
4  position: fixed;
5  z-index: var(--z-index);
6  margin: var(--page-margin);
7  inset: var(--actor-inset);
8
9  display: flex;
10  align-items: center;
11  gap: 8px;
12  padding: 16px;
13
14  font-family: inherit;
15  font-size: var(--font-size);
16  font-weight: 600;
17  line-height: 1.14em;
18  text-decoration: none;
19
20  background: var(--actor-background, var(--background));
21  border-radius: var(--actor-border-radius, 1.7em/50%);
22  border: var(--actor-border, var(--border));
23  box-shadow: var(--actor-box-shadow, var(--box-shadow));
24  color: var(--actor-color, var(--foreground));
25  fill: var(--actor-color, var(--foreground));
26  cursor: pointer;
27  opacity: 1;
28  transition: transform 0.2s ease-in-out;
29  transform: translate(0, 0) scale(1);
30}
31.widget__actor[aria-hidden="true"] {
32  opacity: 0;
33  pointer-events: none;
34  visibility: hidden;
35  transform: translate(0, 16px) scale(0.98);
36}
37
38.widget__actor:hover {
39  background: var(--actor-hover-background, var(--background));
40  filter: var(--interactive-filter);
41}
42
43.widget__actor svg {
44  width: 1.14em;
45  height: 1.14em;
46}
47
48@media (max-width: 600px) {
49  .widget__actor span {
50    display: none;
51  }
52}
53`,e&&t.setAttribute(`nonce`,e),t}function pl(e,t){return Object.entries(t).forEach(([t,n])=>{e.setAttributeNS(null,t,n)}),e}var ml=20,hl=`http://www.w3.org/2000/svg`;function gl(){let e=e=>Bc.document.createElementNS(hl,e),t=pl(e(`svg`),{width:`${ml}`,height:`${ml}`,viewBox:`0 0 ${ml} ${ml}`,fill:`var(--actor-color, var(--foreground))`}),n=pl(e(`g`),{clipPath:`url(#clip0_57_80)`}),r=pl(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=pl(e(`clipPath`),{id:`clip0_57_80`}),o=pl(e(`rect`),{width:`${ml}`,height:`${ml}`,fill:`white`});return a.appendChild(o),i.appendChild(a),t.appendChild(i).appendChild(a).appendChild(o),t}function _l({triggerLabel:e,triggerAriaLabel:t,shadow:n,styleNonce:r}){let i=z.createElement(`button`);if(i.type=`button`,i.className=`widget__actor`,i.ariaHidden=`false`,i.ariaLabel=t||e||Hc,i.appendChild(gl()),e){let t=z.createElement(`span`);t.appendChild(z.createTextNode(e)),i.appendChild(t)}let a=fl(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 vl=`rgba(88, 74, 192, 1)`,yl={foreground:`#2b2233`,background:`#ffffff`,accentForeground:`white`,accentBackgroun
53d:vl,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%)`},bl={foreground:`#ebe6ef`,background:`#29232f`,accentForeground:`white`,accentBackground:vl,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 xl(e){return`
54  --foreground: ${e.foreground};
55  --background: ${e.background};
56  --accent-foreground: ${e.accentForeground};
57  --accent-background: ${e.accentBackground};
58  --success-color: ${e.successColor};
59  --error-color: ${e.errorColor};
60  --border: ${e.border};
61  --box-shadow: ${e.boxShadow};
62  --outline: ${e.outline};
63  --interactive-filter: ${e.interactiveFilter};
64  `}function Sl({colorScheme:e,themeDark:t,themeLight:n,styleNonce:r}){let i=z.createElement(`style`);return i.textContent=`
65:host {
66  --font-family: system-ui, 'Helvetica Neue', Arial, sans-serif;
67  --font-size: 14px;
68  --z-index: 100000;
69
70  --page-margin: 16px;
71  --inset: auto 0 0 auto;
72  --actor-inset: var(--inset);
73
74  font-family: var(--font-family);
75  font-size: var(--font-size);
76
77  ${e===`system`?``:`color-scheme: only light;`}
78
79  ${xl(e===`dark`?{...bl,...t}:{...yl,...n})}
80}
81
82${e===`system`?`
83@media (prefers-color-scheme: dark) {
84  :host {
85    ${xl({...bl,...t})}
86  }
87}`:``}
88}
89`,r&&i.setAttribute(`nonce`,r),i}var Cl=({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=tl,cancelButtonLabel:y=Uc,confirmButtonLabel:b=Gc,emailLabel:x=Jc,emailPlaceholder:S=qc,formTitle:C=Kc,isRequiredLabel:w=el,messageLabel:T=Xc,messagePlaceholder:E=Yc,nameLabel:ee=Qc,namePlaceholder:te=Zc,removeScreenshotButtonLabel:ne=nl,submitButtonLabel:D=Wc,successMessageText:O=$c,triggerLabel:re=Hc,triggerAriaLabel:k=``,highlightToolText:ie=rl,hideToolText:ae=il,removeHighlightText:oe=al,onFormOpen:se,onFormClose:ce,onSubmitSuccess:le,onSubmitError:ue,onFormSubmitted:de}={})=>{let fe={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:re,triggerAriaLabel:k,cancelButtonLabel:y,submitButtonLabel:D,confirmButtonLabel:b,formTitle:C,emailLabel:x,emailPlaceholder:S,messageLabel:T,messagePlaceholder:E,nameLabel:ee,namePlaceholder:te,successMessageText:O,isRequiredLabel:w,addScreenshotButtonLabel:v,removeScreenshotButtonLabel:ne,highlightToolText:ie,hideToolText:ae,removeHighlightText:oe,onFormClose:ce,onFormOpen:se,onSubmitError:ue,onSubmitSuccess:le,onF
89ormSubmitted:de},pe=null,A=[],me=e=>{if(!pe){let t=z.createElement(`div`);t.id=String(e.id),z.body.appendChild(t),pe=t.attachShadow({mode:`open`}),pe.appendChild(Sl(e))}return pe},he=async r=>{let i=r.enableScreenshot&&ul(),a,o;try{a=(t?t():await e(`feedbackModalIntegration`,m))(),da(a)}catch{throw Error(`[Feedback] Missing feedback modal integration!`)}try{let t=i?n?n():await e(`feedbackScreenshotIntegration`,m):void 0;t&&(o=t(),da(o))}catch{}let s=a.createDialog({options:{...r,onFormClose:()=>{s?.close(),r.onFormClose?.()},onFormSubmitted:()=>{s?.close(),r.onFormSubmitted?.()}},screenshotIntegration:o,sendFeedback:ll,shadow:me(r)});return s},ge=(e,t={})=>{let n=dl(fe,t),r=typeof e==`string`?z.querySelector(e):typeof e.addEventListener==`function`?e:null;if(!r)throw Error(`Unable to attach to target element`);let i=null,a=async()=>{i||=await he({...n,onFormSubmitted:()=>{i?.removeFromDom(),n.onFormSubmitted?.()}}),i.appendToDom(),i.open()};r.addEventListener(`click`,a);let o=()=>{A=A.filter(e=>e!==o),i?.removeFromDom(),i=null,r.removeEventListener(`click`,a)};return A.push(o),o},_e=(e={})=>{let t=dl(fe,e),n=me(t),r=_l({triggerLabel:t.triggerLabel,triggerAriaLabel:t.triggerAriaLabel,shadow:n,styleNonce:p});return ge(r.el,{...t,onFormOpen(){r.hide()},onFormClose(){r.show()},onFormSubmitted(){r.show()}}),r};return{name:`Feedback`,setupOnce(){!Rc()||!fe.autoInject||(z.readyState===`loading`?z.addEventListener(`DOMContentLoaded`,()=>_e().appendToDom()):_e().appendToDom())},attachTo:ge,createWidget(e={}){let t=_e(dl(fe,e));return t.appendToDom(),t},async createForm(e={}){return he(dl(fe,e))},remove(){pe&&=(pe.parentElement?.remove(),null),A.forEach(e=>e()),A=[]}}});function wl(){return P()?.getIntegrationByName(`Feedback`)}var Tl,B,El,Dl,Ol,kl,Al,jl={},Ml=[],Nl=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Pl=Array.isArray;function Fl(e,t){for(var n in t)e[n]=t[n];return e}function Il(e){var t=e.parentNode;t&&t.removeChild(e)}function V(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?Tl.call(arguments,2):n),typeof e==`function`&&e.defaultProps!=null)for(a in e.defaultProps)o[a]===void 0&&(o[a]=e.defaultProps[a]
89);return Ll(e,o,r,i,null)}function Ll(e,t,n,r,i){var a={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:i??++El,__i:-1,__u:0};return i==null&&B.vnode!=null&&B.vnode(a),a}function Rl(e){return e.children}function zl(e,t){this.props=e,this.context=t}function Bl(e,t){if(t==null)return e.__?Bl(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`?Bl(e):null}function Vl(e,t,n){var r,i=e.__v,a=i.__e,o=e.__P;if(o)return(r=Fl({},i)).__v=i.__v+1,B.vnode&&B.vnode(r),$l(o,r,i,e.__n,o.ownerSVGElement!==void 0,32&i.__u?[a]:null,t,a??Bl(i),!!(32&i.__u),n),r.__.__k[r.__i]=r,r.__d=void 0,r.__e!=a&&Hl(r),r}function Hl(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return Hl(e)}}function Ul(e){(!e.__d&&(e.__d=!0)&&Dl.push(e)&&!Wl.__r++||Ol!==B.debounceRendering)&&((Ol=B.debounceRendering)||kl)(Wl)}function Wl(){var e,t,n,r=[],i=[];for(Dl.sort(Al);e=Dl.shift();)e.__d&&(n=Dl.length,t=Vl(e,r,i)||t,n===0||Dl.length>n?(eu(r,t,i),i.length=r.length=0,t=void 0,Dl.sort(Al)):t&&B.__c&&B.__c(t,Ml));t&&eu(r,t,i),Wl.__r=0}function Gl(e,t,n,r,i,a,o,s,c,l,u){var d,f,p,m,h,g=r&&r.__k||Ml,_=t.length;for(n.__d=c,Kl(n,t,g),c=n.__d,d=0;d<_;d++)(p=n.__k[d])!=null&&typeof p!=`boolean`&&typeof p!=`function`&&(f=p.__i===-1?jl:g[p.__i]||jl,p.__i=d,$l(e,p,f,i,a,o,s,c,l,u),m=p.__e,p.ref&&f.ref!=p.ref&&(f.ref&&nu(f.ref,null,p),u.push(p.ref,p.__c||m,p)),h==null&&m!=null&&(h=m),65536&p.__u||f.__k===p.__k?c=ql(p,c,e):typeof p.type==`function`&&p.__d!==void 0?c=p.__d:m&&(c=m.nextSibling),p.__d=void 0,p.__u&=-196609);n.__d=c,n.__e=h}function Kl(e,t,n){var r,i,a,o,s,c=t.length,l=n.length,u=l,d=0;for(e.__k=[],r=0;r<c;r++)(i=e.__k[r]=(i=t[r])==null||typeof i==`boolean`||typeof i==`function`?null:typeof i==`string`||typeof i==`number`||typeof i==`bigint`||i.constructor==String?Ll(null,i,null,null,i):Pl(i)?Ll(Rl,{children:i},null,null,null):i.constructor===void 0&&i.__b>0?Ll(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i)==null?(a=n[r])&&a.key==null&&a.__e&&(a.__e==e.__d&&(e.__d=Bl(a)),ru(a,a,!1),n[r]=null,u--):(i.__=e,i.__b=e.__b+1,s=Jl(i,n,o=r+d,u),i.__i=s,a=null,s!==-1&&(u--,(a=n[s])&&(a.__u|=131072)),a==null||a.__v===null?(s==-1&&d--,typeof i.type!=`function`&&(i.__u|=65536)):s!==o&&(s===o+1?d++:s>o?u>c-o?d+=s-o:d--:d=s<o&&s==o-1?s-o:0,s!==r+d&&(i.__u|=65536)));if(u)for(r=0;r<l;r++)(a=n[r])!=null&&!(131072&a.__u)&&(a.__e==e.__d&&(e.__d=Bl(a)),ru(a,a))}function ql(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=ql(r[i],t,n));return t}e.__e!=t&&(n.insertBefore(e.__e,t||null),t=e.__e);do t&&=t.nextSibling;while(t!=null&&t.nodeType===8);return t}function Jl(e,t,n,r){var i=e.key,a=e.type,o=n-1,s=n+1,c=t[n];if(c===null||c&&i==c.key&&a===c.type)return n;if(r>+(c!=null&&!(131072&c.__u)))for(;o>=0||s<t.length;){if(o>=0){if((c=t[o])&&!(131072&c.__u)&&i==c.key&&a===c.type)return o;o--}if(s<t.length){if((c=t[s])&&!(131072&c.__u)&&i==c.key&&a===c.type)return s;s++}}return-1}function Yl(e,t,n){t[0]===`-`?e.setProperty(t,n??``):e[t]=n==null?``:typeof n!=`number`||Nl.test(t)?n:n+`px`}function Xl(e,t,n,r,i){var a;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||Yl(e.style,t,``);if(n)for(t in n)r&&n[t]===r[t]||Yl(e.style,t,n[t])}else if(t[0]===`o`&&t[1]===`n`)a=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,`$1`)),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||={},e.l[t+a]=n,n?r?n.u=r.u:(n.u=Date.now(),e.addEventListener(t,a?Ql:Zl,a)):e.removeEventListener(t,a?Ql:Zl,a);else{if(i)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 in e)try{e[t]=n??``;break n}catch{}typeof n==`function`||(n==null||!1===n&&t[4]!==`-`?e.removeAttribute(t):e.setAttribute(t,n))}}function Zl(e){if(this.l){var t=this.l[e.type+!1];if(e.t){if(e.t<=t.u)return}else e.t=Date.now();return t(B.event?B.event(e):e)}}function Ql(e){if(this.l)return this.l[e.type+!0](B.event?B.event(e):e)}function $l(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=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(c=!!(32&n.__u),a=[s=t.__e=n.__e]),(u=B.__b)&&u(t);n:if(typeof T==`function`)try{if(_=t.props,v=(u=T.contextType)&&r[u.__c],y=u?v?v.props.value:u.__:r,n.__c?g=(d=t.__c=n.__c).__=d.__E:(`prototype`in T&&T.prototype.render?t.__c=d=new T(_,y):(t.__c=d=new zl(_,y),d.constructor=T,d.render=iu),v&&v.sub(d),d.props=_,d.state||={},d.context=y,d.__n=r,f=d.__d=!0,d.__h=[],d._sb=[]),d.__s??=d.state,T.getDerivedStateFromProps!=null&&(d.__s==d.state&&(d.__s=Fl({}
vendor: 4,505 bytes, line 89
89,d.__s)),Fl(d.__s,T.getDerivedStateFromProps(_,d.__s))),p=d.props,m=d.state,d.__v=t,f)T.getDerivedStateFromProps==null&&d.componentWillMount!=null&&d.componentWillMount(),d.componentDidMount!=null&&d.__h.push(d.componentDidMount);else{if(T.getDerivedStateFromProps==null&&_!==p&&d.componentWillReceiveProps!=null&&d.componentWillReceiveProps(_,y),!d.__e&&(d.shouldComponentUpdate!=null&&!1===d.shouldComponentUpdate(_,d.__s,y)||t.__v===n.__v)){for(t.__v!==n.__v&&(d.props=_,d.state=d.__s,d.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(e){e&&(e.__=t)}),b=0;b<d._sb.length;b++)d.__h.push(d._sb[b]);d._sb=[],d.__h.length&&o.push(d);break n}d.componentWillUpdate!=null&&d.componentWillUpdate(_,d.__s,y),d.componentDidUpdate!=null&&d.__h.push(function(){d.componentDidUpdate(p,m,h)})}if(d.context=y,d.props=_,d.__P=e,d.__e=!1,x=B.__r,S=0,`prototype`in T&&T.prototype.render){for(d.state=d.__s,d.__d=!1,x&&x(t),u=d.render(d.props,d.state,d.context),C=0;C<d._sb.length;C++)d.__h.push(d._sb[C]);d._sb=[]}else do d.__d=!1,x&&x(t),u=d.render(d.props,d.state,d.context),d.state=d.__s;while(d.__d&&++S<25);d.state=d.__s,d.getChildContext!=null&&(r=Fl(Fl({},r),d.getChildContext())),f||d.getSnapshotBeforeUpdate==null||(h=d.getSnapshotBeforeUpdate(p,m)),Gl(e,Pl(w=u!=null&&u.type===Rl&&u.key==null?u.props.children:u)?w:[w],t,n,r,i,a,o,s,c,l),d.base=t.__e,t.__u&=-161,d.__h.length&&o.push(d),g&&(d.__E=d.__=null)}catch(e){t.__v=null,c||a!=null?(t.__e=s,t.__u|=c?160:32,a[a.indexOf(s)]=null):(t.__e=n.__e,t.__k=n.__k),B.__e(e,t,n)}else a==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=tu(n.__e,t,n,r,i,a,o,c,l);(u=B.diffed)&&u(t)}function eu(e,t,n){for(var r=0;r<n.length;r++)nu(n[r],n[++r],n[++r]);B.__c&&B.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){B.__e(e,t.__v)}})}function tu(e,t,n,r,i,a,o,s,c){var l,u,d,f,p,m,h,g=n.props,_=t.props,v=t.type;if(v===`svg`&&(i=!0),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=i?document.createElementNS(`http://www.w3.org/2000/svg`,v):document.createElement(v,_.is&&_),a=null,s=!1}if(v===null)g===_||s&&e.data===_||(e.data=_);else{if(a&&=Tl.call(e.childNodes),g=n.props||jl,!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==`children`||(l==`dangerouslySetInnerHTML`?d=p:l===`key`||l in _||Xl(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:l===`key`||s&&typeof p!=`function`||g[l]===p||Xl(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=``),Gl(e,Pl(f)?f:[f],t,n,r,i&&v!==`foreignObject`,a,o,a?a[0]:n.__k&&Bl(n,0),s,c),a!=null)for(l=a.length;l--;)a[l]!=null&&Il(a[l]);s||(l=`value`,m!==void 0&&(m!==e[l]||v===`progress`&&!m||v===`option`&&m!==g[l])&&Xl(e,l,m,g[l],!1),l=`checked`,h!==void 0&&h!==e[l]&&Xl(e,l,h,g[l],!1))}return e}function nu(e,t,n){try{typeof e==`function`?e(t):e.current=t}catch(e){B.__e(e,n)}}function ru(e,t,n){var r,i;if(B.unmount&&B.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||nu(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){B.__e(e,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&ru(r[i],t,n||typeof e.type!=`function`);n||e.__e==null||Il(e.__e),e.__=e.__e=e.__d=void 0}function iu(e,t,n){return this.constructor(e,n)}function au(e,t,n){var r,i,a,o;B.__&&B.__(e,t),i=(r=!1)?null:t.__k,a=[],o=[],$l(t,e=t.__k=V(Rl,null,[e]),i||jl,jl,t.ownerSVGElement!==void 0,i?null:t.firstChild?Tl.call(t.childNodes):null,a,i?i.__e:t.firstChild,r,o),e.__d=void 0,eu(a,e,o)}Tl=Ml.slice,B={__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}},El=0,zl.prototype.setState=function(e,t){var n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Fl({},this.state);typeof e==`function`&&(e=e(Fl({},n),this.props)),e&&Fl(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Ul(this))},zl.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Ul(this))},zl.prototype.render=Rl,Dl=[],kl=typeof Promise==`function`?Promise.prototype.then.bind(Prom
89ise.resolve()):setTimeout,Al=function(e,t){return e.__v.__b-t.__v.__b},Wl.__r=0;var ou,H,su,cu,lu=0,uu=[],du=[],U=B,fu=U.__b,pu=U.__r,mu=U.diffed,hu=U.__c,gu=U.unmount,_u=U.__;function vu(e,t){U.__h&&U.__h(H,e,lu||t),lu=0;var n=H.__H||={__:[],__h:[]};return e>=n.__.length&&n.__.push({__V:du}),n.__[e]}function yu(e){return lu=1,bu(Lu,e)}function bu(e,t,n){var r=vu(ou++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Lu(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=H,!H.u)){var i=function(e,t,n){if(!r.__c.__H)return!0;var i=r.__c.__H.__.filter(function(e){return!!e.__c});if(i.every(function(e){return!e.__N}))return!a||a.call(this,e,t,n);var o=!1;return i.forEach(function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(o=!0)}}),!(!o&&r.__c.props===e)&&(!a||a.call(this,e,t,n))};H.u=!0;var a=H.shouldComponentUpdate,o=H.componentWillUpdate;H.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)},H.shouldComponentUpdate=i}return r.__N||r.__}function xu(e,t){var n=vu(ou++,3);!U.__s&&Iu(n.__H,t)&&(n.__=e,n.i=t,H.__H.__h.push(n))}function Su(e,t){var n=vu(ou++,4);!U.__s&&Iu(n.__H,t)&&(n.__=e,n.i=t,H.__h.push(n))}function Cu(e){return lu=5,Tu(function(){return{current:e}},[])}function wu(e,t,n){lu=6,Su(function(){return typeof e==`function`?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},n==null?n:n.concat(e))}function Tu(e,t){var n=vu(ou++,7);return Iu(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function Eu(e,t){return lu=8,Tu(function(){return e},t)}function Du(e){var t=H.context[e.__c],n=vu(ou++,9);return n.c=e,t?(n.__??(n.__=!0,t.sub(H)),t.props.value):e.__}function Ou(e,t){U.useDebugValue&&U.useDebugValue(t?t(e):e)}function ku(e){var t=vu(ou++,10),n=yu();return t.__=e,H.componentDidCatch||=function(e,r){t.__&&t.__(e,r),n[1](e)},[n[0],function(){n[1](void 0)}]}function Au(){var e=vu(ou++,11);if(!e.__){for(var t=H.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var n=t.__m||=[0,0];e.__=`P`+n[0]+`-`+ n[1]++}return e.__}function ju(){for(var e;e=uu.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Pu),e.__H.__h.forEach(Fu),e.__H.__h=[]}catch(t){e.__H.__h=[],U.__e(t,e.__v)}}U.__b=function(e){H=null,fu&&fu(e)},U.__=function(e,t){t.__k&&t.__k.__m&&(e.__m=t.__k.__m),_u&&_u(e,t)},U.__r=function(e){pu&&pu(e),ou=0;var t=(H=e.__c).__H;t&&(su===H?(t.__h=[],H.__h=[],t.__.forEach(function(e){e.__N&&(e.__=e.__N),e.__V=du,e.__N=e.i=void 0})):(t.__h.forEach(Pu),t.__h.forEach(Fu),t.__h=[],ou=0)),su=H},U.diffed=function(e){mu&&mu(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(uu.push(t)!==1&&cu===U.requestAnimationFrame||((cu=U.requestAnimationFrame)||Nu)(ju)),t.__H.__.forEach(function(e){e.i&&(e.__H=e.i),e.__V!==du&&(e.__=e.__V),e.i=void 0,e.__V=du})),su=H=null},U.__c=function(e,t){t.some(function(e){try{e.__h.forEach(Pu),e.__h=e.__h.filter(function(e){return!e.__||Fu(e)})}catch(n){t.some(function(e){e.__h&&=[]}),t=[],U.__e(n,e.__v)}}),hu&&hu(e,t)},U.unmount=function(e){gu&&gu(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(e){try{Pu(e)}catch(e){t=e}}),n.__H=void 0,t&&U.__e(t,n.__v))};var Mu=typeof requestAnimationFrame==`function`;function Nu(e){var t,n=function(){clearTimeout(r),Mu&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Mu&&(t=requestAnimationFrame(n))}function Pu(e){var t=H,n=e.__c;typeof n==`function`&&(e.__c=void 0,n()),H=t}function Fu(e){var t=H;e.__c=e.__(),H=t}function Iu(e,t){return!e||e.length!==t.length||t.some(function(t,n){return t!==e[n]})}function Lu(e,t){return typeof t==`function`?t(e):t}var Ru=Object.defineProperty({__proto__:null,useCallback:Eu,useContext:Du,useDebugValue:Ou,useEffect:xu,useErrorBoundary:ku,useId:Au,useImperativeHandle:wu,useLayoutEffect:Su,useMemo:Tu,useReducer:bu,useRef:Cu,useState:yu},Symbol.toStringTag,{value:`Module`}),zu=`http://www.w3.org/2000/svg`;function Bu(){let e=e=>z.createElementNS(zu,e),t=pl(e(`svg`),{width:`32`,height:`30`,viewBox:`0 0 72 66`,fill:`inherit`}),n=pl(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 Vu({options:e}){let t=Tu(()=>({__html:Bu().outerHTML}),[]);return V(`h2`,{class:`dialog__header`},V(`span`,{class:`dialog__title`},e.formTitle),e.showBranding?V(`a`,{class:`brand-link`,target:`_blank`,href:`https://sentry.io/welcome/`,title:`Powered by Sentry`,rel:`noopener noreferrer`,dangerouslySetInnerHTML:t}):null)}function Hu(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 Uu(e,t){let n=e.get(t);return typeof n==`string`?n.trim():``}function Wu({options:e,defaultEmail:t,defaultName:n,onFormClose:r,onSubmit:i,onSubmitSuccess:a,onSubmitError:o,showEmail
89: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:x,submitButtonLabel:S,isRequiredLabel:C}=e,[w,T]=yu(!1),[E,ee]=yu(null),[te,ne]=yu(!1),D=l?.input,[O,re]=yu(null),k=Eu(e=>{re(e),ne(!1)},[]),ie=Eu(e=>{let t=Hu(e,{emailLabel:m,isEmailRequired:g,isNameRequired:_,messageLabel:v,nameLabel:b});return t.length>0?ee(`Please enter in the following required fields: ${t.join(`, `)}`):ee(null),t.length===0},[m,g,_,v,b]);return V(`form`,{class:`form`,onSubmit:Eu(async e=>{T(!0);try{if(e.preventDefault(),!(e.target instanceof HTMLFormElement))return;let t=new FormData(e.target),n=await(l&&te?l.value():void 0),r={name:Uu(t,`name`),email:Uu(t,`email`),message:Uu(t,`message`),attachments:n?[n]:void 0};if(!ie(r))return;try{a(r,await i({name:r.name,email:r.email,message:r.message,source:ol,tags:u},{attachments:r.attachments}))}catch(e){ee(e),o(e)}}finally{T(!1)}},[l&&te,a,o])},D&&te?V(D,{onError:k}):null,V(`fieldset`,{class:`form__right`,"data-sentry-feedback":!0,disabled:w},V(`div`,{class:`form__top`},E?V(`div`,{class:`form__error-container`},E):null,c?V(`label`,{for:`name`,class:`form__label`},V(Gu,{label:b,isRequiredLabel:C,isRequired:_}),V(`input`,{class:`form__input`,defaultValue:n,id:`name`,name:`name`,placeholder:x,required:_,type:`text`})):V(`input`,{"aria-hidden":!0,value:n,name:`name`,type:`hidden`}),s?V(`label`,{for:`email`,class:`form__label`},V(Gu,{label:m,isRequiredLabel:C,isRequired:g}),V(`input`,{class:`form__input`,defaultValue:t,id:`email`,name:`email`,placeholder:h,required:g,type:`email`})):V(`input`,{"aria-hidden":!0,value:t,name:`email`,type:`hidden`}),V(`label`,{for:`message`,class:`form__label`},V(Gu,{label:v,isRequiredLabel:C,isRequired:!0}),V(`textarea`,{autoFocus:!0,class:`form__input form__input--textarea`,id:`message`,name:`message`,placeholder:y,required:!0,rows:5})),D?V(`label`,{for:`screenshot`,class:`form__label`},V(`button`,{class:`btn btn--default`,disabled:w,type:`button`,onClick:()=>{re(null),ne(e=>!e)}},te?f:d),O?V(`div`,{class:`form__error-container`},O.message):null):null),V(`div`,{class:`btn-group`},V(`button`,{class:`btn btn--primary`,disabled:w,type:`submit`},S),V(`button`,{class:`btn btn--default`,disabled:w,type:`button`,onClick:r},p))))}function Gu({label:e,isRequired:t,isRequiredLabel:n}){return V(`span`,{class:`form__label__text`},e,t&&V(`span`,{class:`form__label__text--required`},n))}var Ku=16,qu=17,Ju=`http://www.w3.org/2000/svg`;function Yu(){let e=e=>Bc.document.createElementNS(Ju,e),t=pl(e(`svg`),{width:`${Ku}`,height:`${qu}`,viewBox:`0 0 ${Ku} ${qu}`,fill:`inherit`}),n=pl(e(`g`),{clipPath:`url(#clip0_57_156)`}),r=pl(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=pl(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 
8910.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=pl(e(`clipPath`),{id:`clip0_57_156`}),s=pl(e(`rect`),{width:`${Ku}`,height:`${Ku}`,fill:`white`,transform:`translate(0 0.5)`});return o.appendChild(s),a.appendChild(o),t.appendChild(a).appendChild(o).appendChild(s),t}function Xu({open:e,onFormSubmitted:t,...n}){let r=n.options,i=Tu(()=>({__html:Yu().outerHTML}),[]),[a,o]=yu(null),s=Eu(()=>{a&&(clearTimeout(a),o(null)),t()},[a]),c=Eu((e,r)=>{n.onSubmitSuccess(e,r),o(setTimeout(()=>{t(),o(null)},cl))},[t]);return V(Rl,null,a?V(`div`,{class:`success__position`,onClick:s},V(`div`,{class:`success__content`},r.successMessageText,V(`span`,{class:`success__icon`,dangerouslySetInnerHTML:i}))):V(`dialog`,{class:`dialog`,onClick:r.onFormClose,open:e},V(`div`,{class:`dialog__position`},V(`div`,{class:`dialog__content`,onClick:e=>{e.stopPropagation()}},V(Vu,{options:r}),V(Wu,{...n,onSubmitSuccess:c})))))}var Zu=`
90.dialog {
91  position: fixed;
92  z-index: var(--z-index);
93  margin: 0;
94  inset: 0;
95
96  display: flex;
97  align-items: center;
98  justify-content: center;
99  padding: 0;
100  height: 100vh;
101  width: 100vw;
102
103  color: var(--dialog-color, var(--foreground));
104  fill: var(--dialog-color, var(--foreground));
105  line-height: 1.75em;
106
107  background-color: rgba(0, 0, 0, 0.05);
108  border: none;
109  inset: 0;
110  opacity: 1;
111  transition: opacity 0.2s ease-in-out;
112}
113
114.dialog__position {
115  position: fixed;
116  z-index: var(--z-index);
117  inset: var(--dialog-inset);
118  padding: var(--page-margin);
119  display: flex;
120  max-height: calc(100vh - (2 * var(--page-margin)));
121}
122@media (max-width: 600px) {
123  .dialog__position {
124    inset: var(--page-margin);
125    padding: 0;
126  }
127}
128
129.dialog__position:has(.editor) {
130  inset: var(--page-margin);
131  padding: 0;
132}
133
134.dialog:not([open]) {
135  opacity: 0;
136  pointer-events: none;
137  visibility: hidden;
138}
139.dialog:not([open]) .dialog__content {
140  transform: translate(0, -16px) scale(0.98);
141}
142
143.dialog__content {
144  display: flex;
145  flex-direction: column;
146  gap: 16px;
147  padding: var(--dialog-padding, 24px);
148  max-width: 100%;
149  width: 100%;
150  max-height: 100%;
151  overflow: auto;
152
153  background: var(--dialog-background, var(--background));
154  border-radius: var(--dialog-border-radius, 20px);
155  border: var(--dialog-border, var(--border));
156  box-shadow: var(--dialog-box-shadow, var(--box-shadow));
157  transform: translate(0, 0) scale(1);
158  transition: transform 0.2s ease-in-out;
159}
160
161`,Qu=`
162.dialog__header {
163  display: flex;
164  gap: 4px;
165  justify-content: space-between;
166  font-weight: var(--dialog-header-weight, 600);
167  margin: 0;
168}
169.dialog__title {
170  align-self: center;
171  width: var(--form-width, 272px);
172}
173
174@media (max-width: 600px) {
175  .dialog__title {
176    width: auto;
177  }
178}
179
180.dialog__position:has(.editor) .dialog__title {
181  width: auto;
182}
183
184
185.brand-link {
186  display: inline-flex;
187}
188.brand-link:focus-visible {
189  outline: var(--outline);
190}
191`,$u=`
192.form {
193  display: flex;
194  overflow: auto;
195  flex-direction: row;
196  gap: 16px;
197  flex: 1 0;
198}
199
200.form fieldset {
201  border: none;
202  margin: 0;
203  padding: 0;
204}
205
206.form__right {
207  flex: 0 0 auto;
208  display: flex;
209  overflow: auto;
210  flex-direction: column;
211  justify-content: space-between;
212  gap: 20px;
213  width: var(--form-width, 100%);
214}
215
216.dialog__position:has(.editor) .form__right {
217  width: var(--form-width, 272px);
218}
219
220.form__top {
221  display: flex;
222  flex-direction: column;
223  gap: 8px;
224}
225
226.form__error-container {
227  color: var(--error-color);
228  fill: var(--error-color);
229}
230
231.form__label {
232  display: flex;
233  flex-direction: column;
234  gap: 4px;
235  margin: 0px;
236}
237
238.form__label__text {
239  display: flex;
240  gap: 4px;
241  align-items: center;
242}
243
244.form__label__text--required {
245  font-size: 0.85em;
246}
247
248.form__input {
249  font-family: inherit;
250  line-height: inherit;
251  background: transparent;
252  box-sizing: border-box;
253  border: var(--input-border, var(--border));
254  border-radius: var(--input-border-radius, 6px);
255  color: var(--input-color, inherit);
256  fill: var(--input-color, inherit);
257  font-size: var(--input-font-size, inherit);
258  font-weight: var(--input-font-weight, 500);
259  padding: 6px 12px;
260}
261
262.form__input::placeholder {
263  opacity: 0.65;
264  color: var(--input-placeholder-color, inherit);
265  filter: var(--interactive-filter);
266}
267
268.form__input:focus-visible {
269  outline: var(--input-focus-outline, var(--outline));
270}
271
272.form__input--textarea {
273  font-family: inherit;
274  resize: vertical;
275}
276
277.error {
278  color: var(--error-color);
279  fill: var(--error-color);
280}
281`,ed=`
282.btn-group {
283  display: grid;
284  gap: 8px;
285}
286
287.btn {
288  line-height: inherit;
289  border: var(--button-border, var(--border));
290  border-radius: var(--button-border-radius, 6px);
291  cursor: pointer;
292  font-family: inherit;
293  font-size: var(--button-font-size, inherit);
294  font-weight: var(--button-font-weight, 600);
295  padding: var(--button-padding, 6px 16px);
296}
297.btn[disabled] {
298  opacity: 0.6;
299  pointer-events: none;
300}
301
302.btn--primary {
303  color: var(--button-primary-color, var(--accent-foreground));
304  fill: var(--button-primary-color, var(--accent-foreground));
305  background: var(--button-primary-background, var(--accent-background));
306  border: var(--button-primary-border, var(--border));
307  border-radius: var(--button-primary-border-radius, 6px);
308  font-weight: var(--button-primary-font-weight, 500);
309}
310.btn--primary:hover {
311  color: var(--button-primary-hover-color, var(--accent-foreground));
312  fill: var(--button-primary-hover-color, var(--accent-foreground));
313  background: var(--button-primary-hover-background, var(--accent-background));
314  filter: var(--interactive-filter);
315}
316.btn--primary:focus-visible {
317  background: var(--button-primary-hover-background, var(--accent-background));
318  filter: var(--interactive-filter);
319  outline: var(--button-primary-focus-outline, var(--outline));
320}
321
322.btn--default {
323  color: var(--button-color, var(--foreground));
324  fill: var(--button-color, var(--foreground));
325  background: var(--button-background, var(--background));
326  border: var(--button-border, var(--border));
327  border-radius: var(--button-border-radius, 6px);
328  font-weight: var(--button-font-weight, 500);
329}
330.btn--default:hover {
331  color: var(--button-color, var(--foreground));
332  fill: var(--button-color, var(--foreground));
333  background: var(--button-hover-background, var(--background));
334  filter: var(--interactive-filter);
335}
336.btn--default:focus-visible {
337  background: var(--button-hover-background, var(--background));
338  filter: var(--interactive-filter);
339  outline: var(--button-focus-outline, var(--outline));
340}
341`,td=`
342.success__position {
343  position: fixed;
344  inset: var(--dialog-inset);
345  padding: var(--page-margin);
346  z-index: var(--z-index);
347}
348.success__content {
349  background: var(--success-background, var(--background));
350  border: var(--success-border, var(--border));
351  border-radius: var(--success-border-radius, 1.7em/50%);
352  box-shadow: var(--success-box-shadow, var(--box-shadow));
353  font-weight: var(--success-font-weight, 600);
354  color: var(--success-color);
355  fill: var(--success-color);
356  padding: 12px 24px;
357  line-height: 1.75em;
358
359  display: grid;
360  align-items: center;
361  grid-auto-flow: column;
362  gap: 6px;
363  cursor: default;
364}
365
366.success__icon {
367  display: flex;
368}
369`;function nd(e){let t=z.createElement(`style`);return t.textContent=`
370:host {
371  --dialog-inset: var(--inset);
372}
373
374${Zu}
375${Qu}
376${$u}
377${ed}
378${td}
379`,e&&t.setAttribute(`nonce`,e),t}function rd(){let e=M().getUser(),t=N().getUser(),n=Dt().getUser();return e&&Object.keys(e).length?e:t&&Object.keys(t).length?t:n}var id=(()=>({name:`FeedbackModal`,setupOnce(){},createDialog:({options:e,screenshotIntegration:t,sendFeedback:n,shadow:r})=>{let i=r,a=e.useSentryUser,o=rd(),s=z.createElement(`div`),c=nd(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(),z.body.style.overflow=l},open(){f(!0),e.onFormOpen?.(),P()?.emit(`openFeedbackWidget`),l=z.body.style.overflow,z.body.style.overflow=`hidden`},close(){f(!1),z.body.style.overflow=l}},d=t?.createInput({h:V,hooks:Ru,dialog:u,options:e}),f=t=>{au(V(Xu,{options:e,screenshotInput:d,showName:e.showName||e.isNameRequired,showEmail:e.showEmail||e.isEmailRequired,defaultName:a&&o?.[a.name]||``,defaultEmail: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 ad({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 od(e){let t=z.createElement(`style`),n=`#1A141F`,r=`#302735`;return t.textContent=`
380.editor {
381  display: flex;
382  flex-grow: 1;
383  flex-direction: column;
384}
385
386.editor__image-container {
387  justify-items: center;
388  padding: 15px;
389  position: relative;
390  height: 100%;
391  border-radius: var(--menu-border-radius, 6px);
392
393  background-color: ${n};
394  background-image: repeating-linear-gradient(
395      -145deg,
396      transparent,
397      transparent 8px,
398      ${n} 8px,
399      ${n} 11px
400    ),
401    repeating-linear-gradient(
402      -45deg,
403      transparent,
404      transparent 15px,
405      ${r} 15px,
406      ${r} 16px
407    );
408}
409
410.editor__canvas-container {
411  width: 100%;
412  height: 100%;
413  position: relative;
414  display: flex;
415  align-items: center;
416  justify-content: center;
417}
418
419.editor__canvas-container > * {
420  object-fit: contain;
421  position: absolute;
422}
423
424.editor__tool-container {
425  padding-top: 8px;
426  display: flex;
427  justify-content: center;
428}
429
430.editor__tool-bar {
431  display: flex;
432  gap: 8px;
433}
434
435.editor__tool {
436  display: flex;
437  padding: 8px 12px;
438  justify-content: center;
439  align-items: center;
440  border: var(--button-border, var(--border));
441  border-radius: var(--button-border-radius, 6px);
442  background: var(--button-background, var(--background));
443  color: var(--button-color, var(--foreground));
444}
445
446.editor__tool--active {
447  background: var(--button-primary-background, var(--accent-background));
448  color: var(--button-primary-color, var(--accent-foreground));
449}
450
451.editor__rect {
452  position: absolute;
453  z-index: 2;
454}
455
456.editor__rect button {
457  opacity: 0;
458  position: absolute;
459  top: -12px;
460  right: -12px;
461  cursor: pointer;
462  padding: 0;
463  z-index: 3;
464  border: none;
465  background: none;
466}
467
468.editor__rect:hover button {
469  opacity: 1;
470}
471`,e&&t.setAttribute(`nonce`,e),t}function sd({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 cd({hooks:e}){function t(){let[t,n]=e.useState(Bc.devicePixelRatio??1);return e.useEffect(()=>{let e=()=>{n(Bc.devicePixelRatio)},t=matchMedia(`(resolution: ${Bc.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 Vc.mediaDevices.getDisplayMedia({video:{width:Bc.innerWidth*o,height:Bc.innerHeight*o},audio:!1,monitorTypeSurfaces:`exclude`,preferCurrentTab:!0,selfBrowserSurface:`include`,surfaceSwitching:`exclude`}),t=z.createElement(`video`);await new Promise((n,i)=>{t.srcObject=e,t.onloadedmetadata=()=>
471{r(t,o),e.getTracks().forEach(e=>e.stop()),n()},t.play().catch(i)}),i()})().catch(a)},[])}}function ld(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);break}}function ud(e,t,n){if(!e)return;let r=e.getContext(`2d`,t);r&&n(e,r)}function dd(e,t){ud(e,{alpha:!0},(e,n)=>{n.drawImage(t,0,0,t.width,t.height,0,0,e.width,e.height)})}function fd(e,t,n){ud(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=>{ld(e,r,t)})})}function pd({h:e,hooks:t,outputBuffer:n,dialog:r,options:i}){let a=cd({hooks:t}),o=sd({h:e}),s=ad({h:e}),c={__html:od(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=z.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&&(ud(r.canvas,{alpha:!1},e=>{_(Math.min(t.clientWidth/e.width,t.clientHeight/e.height))}),(t.clientHeight===0||t.clientWidth===0)&&setTimeout(e,0))};return e(),Bc.addEventListener(`resize`,e),()=>{Bc.removeEventListener(`resize`,e)}},[r]);let y=t.useCallback((e,t)=>{ud(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),dd(p.current,r.canvas)},[r]),t.useEffect(()=>{y(m.current,r.dpi),ud(m.current,{alpha:!0},(e,t)=>{t.clearRect(0,0,e.width,e.height)}),fd(m.current,v,u)},[u,v]),t.useEffect(()=>{y(n,r.dpi),dd(n,r.canvas),ud(z.createElement(`canvas`),{alpha:!0},(e,t)=>{t.scale(r.dpi,r.dpi),e.width=r.canvas.width,e.height=r.canvas.height,fd(e,v,u),dd(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=>{ud(m.current,{alpha:!0},(e,t)=>{t.clearRect(0,0,e.width,e.height)}),fd(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]),z.removeEventListener(`mousemove`,i),z.removeEventListener(`mouseup`,o)};z.addEventListener(`mousemove`,i),z.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)=>
471e(`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)=>{ud(z.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 md=(()=>({name:`FeedbackScreenshot`,setupOnce(){},createInput:({h:e,hooks:t,dialog:n,options:r})=>{let i=z.createElement(`canvas`);return{input:pd({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`}}}}})),W=t,hd=0;function gd(){return hd>0}function _d(){hd++,setTimeout(()=>{hd--})}function vd(e,t={}){function n(e){return typeof e==`function`}if(!n(e))return e;try{let t=e.__sentry_wrapped__;if(t)return typeof t==`function`?t:e;if(ze(e))return e}catch{return e}let r=function(...n){try{let r=n.map(e=>vd(e,t));return e.apply(this,r)}catch(e){throw _d(),Ot(r=>{r.addEventProcessor(e=>(t.mechanism&&(Je(e,void 0,void 0),Ye(e,t.mechanism)),e.extra={...e.extra,arguments:n},e)),Pi(e)}),e}};try{for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t])}catch{}Re(r,e),Le(e,`__sentry_wrapped__`,r);try{Object.getOwnPropertyDescriptor(r,`name`).configurable&&Object.defineProperty(r,`name`,{get(){return e.name}})}catch{}return r}function yd(){let e=ke(),{referrer:t}=W.document||{},{userAgent:n}=W.navigator||{};return{url:e,headers:{...t&&{Referer:t},...n&&{"User-Agent":n}}}}var bd={replayIntegration:`replay`,replayCanvasIntegration:`replay-canvas`,feedbackIntegration:`feedback`,feedbackModalIntegration:`feedback-modal`,feedbackScreenshotIntegration:`feedback-screenshot`,captureConsoleIntegration:`captureconsole`,contextLinesIntegration:`contextlines`,linkedErrorsIntegration:`linkederrors`,dedupeIntegration:`dedupe`,extraErrorDataIntegration:`extraerrordata`,graphqlClientIntegration:`graphqlclient`,httpClientIntegration:`httpclient`,reportingObserverIntegration:`reportingobserver`,rewriteFramesIntegration:`rewriteframes`,browserProfilingIntegration:`browserprofiling`,moduleMetadataIntegration:`modulemetadata`},xd=W;async function Sd(e,t){let n=bd[e],r=xd.Sentry=xd.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=Cd(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)=>{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 Cd(e){let t=P()?.getOptions()?.cdnBaseUrl||`https://browser.sentry-cdn.com`;return new URL(`/${n}/${e}.min.js`,t).toString()}var wd=Cl({lazyLoadIntegration:Sd}),Td=Cl({getModalIntegration:()=>id,getScreenshotIntegration:()=>md}),Ed=e({debug:()=>kd,error:()=>Md,fatal:()=>Nd,fmt:()=>ho,info:()=>Ad,trace:()=>Od,warn:()=>jd});function Dd(e,t,n,r){Fa({level:e,message:t,attributes:n,severityNumber:r})}function Od(e,t){Dd(`trace`,e,t)}function kd(e,t){Dd(`debug`,e,t)}function Ad(e,t){Dd(`info`,e,t)}function jd(e,t){Dd(`warn`,e,t)}function Md(e,t){Dd(`error`,e,t)}function Nd(e,t){Dd(`fatal`,e,t)}function Pd(e,t){let n=Ld(e,t),r={type:Hd(t),value:Ud(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===``&&(r.value=`Unrecoverable error caught`),r}function Fd(e,t,n,r){let i=P()?.getOptions().normalizeDepth,a=Xd(t),o={__serialized__:Yn(t,i)};if(a)return{exception:{values:[Pd(e,a)]},extra:o};let s={exception:{values:[{type:_e(t)?t.constructor.name:r?`UnhandledRejection`:`Error`,value:Jd(t,{isUnhandledRejection:r})}]},extra:o};if(n){let t=Ld(e,n);t.length&&(s.exception.values[0].stacktrace={frames:t})}return s}function Id(e,t){return{exception:{values:[Pd(e,t)]}}}function Ld(e,t){let n=t.stacktrace||t.stack||``,r=zd(t),i=Bd(t);try{return e(n,r,i)}catch{}return[]}var Rd=/Minified React error #\d+;/i;function zd(e){return e&&Rd.test(e.message)?1:0}function Bd(e){return typeof e.framesToPop==`number`?e.framesToPop:0}function Vd(e){return typeof WebAssembly<`u`&&WebAssembly.Exception!==void 0?e instanceof WebAssembly.Exception:!1}function Hd(e){let t=e?.name;return!t&&Vd(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:`WebAssembly.Exception`:t}function Ud(e){let t=e?.message;return Vd(e)?Array.isArray(e.message)&&e.message.length==2?e.message[1]:`wasm exception`:t?t.error&&typeof t.error.message==`string`?t.error.message:t:`No error message`}function Wd(e,t,n,r){let i=Kd(e,t,n?.syntheticException||void 0,r);
471return Ye(i),i.level=`error`,n?.event_id&&(i.event_id=n.event_id),oi(i)}function Gd(e,t,n=`info`,r,i){let a=qd(e,t,r?.syntheticException||void 0,i);return a.level=n,r?.event_id&&(a.event_id=r.event_id),oi(a)}function Kd(e,t,n,r,i){let a;if(de(t)&&t.error)return Id(e,t.error);if(fe(t)||pe(t)){let i=t;if(`stack`in t)a=Id(e,t);else{let t=i.name||(fe(i)?`DOMError`:`DOMException`),o=i.message?`${t}: ${i.message}`:t;a=qd(e,o,n,r),Je(a,o)}return`code`in i&&(a.tags={...a.tags,"DOMException.code":`${i.code}`}),a}return le(t)?Id(e,t):ge(t)||_e(t)?(a=Fd(e,t,n,i),Ye(a,{synthetic:!0}),a):(a=qd(e,t,n,r),Je(a,`${t}`,void 0),Ye(a,{synthetic:!0}),a)}function qd(e,t,n,r){let i={};if(r&&n){let r=Ld(e,n);r.length&&(i.exception={values:[{value:t,stacktrace:{frames:r}}]}),Ye(i,{synthetic:!0})}if(me(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 Jd(e,{isUnhandledRejection:t}){let n=Ue(e),r=t?`promise rejection`:`exception`;return de(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:_e(e)?`Event \`${Yd(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function Yd(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function Xd(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)){let n=e[t];if(n instanceof Error)return n}}var Zd=5e3,Qd=class extends Sa{constructor(e){let t=$d(e);_o(t,`browser`,[`browser`],W.SENTRY_SDK_SOURCE||Ic()),t._metadata?.sdk&&(t._metadata.sdk.settings={infer_ip:t.sendDefaultPii?`auto`:`never`,...t._metadata.sdk.settings}),super(t);let{sendDefaultPii:n,sendClientReports:r,enableLogs:i}=this._options;W.document&&(r||i)&&W.document.addEventListener(`visibilitychange`,()=>{W.document.visibilityState===`hidden`&&(r&&this._flushOutcomes(),i&&Ia(this))}),i&&(this.on(`flush`,()=>{Ia(this)}),this.on(`afterCaptureLog`,()=>{this._logFlushIdleTimeout&&clearTimeout(this._logFlushIdleTimeout),this._logFlushIdleTimeout=setTimeout(()=>{Ia(this)},Zd)})),n&&this.on(`beforeSendSession`,go)}eventFromException(e,t){return Wd(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t=`info`,n){return Gd(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 $d(e){return{release:typeof __SENTRY_RELEASE__==`string`?__SENTRY_RELEASE__:W.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}var G=t,ef=(e,t)=>e>t[1]?`poor`:e>t[0]?`needs-improvement`:`good`,tf=(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=ef(t.value,n),e(t)))}},nf=()=>`v5-${Date.now()}-${Math.floor(Math.random()*8999999999999)+0xe8d4a51000}`,rf=(e=!0)=>{let t=G.performance?.getEntriesByType?.(`navigation`)[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t},af=()=>rf()?.activationStart??0,of=(e,t=-1)=>{let n=rf(),r=`navigate`;return n&&(G.document?.prerendering||af()>0?r=`prerender`:G.document?.wasDiscarded?r=`restore`:n.type&&(r=n.type.replace(/_/g,`-`))),{name:e,value:t,rating:`good`,delta:0,entries:[],id:nf(),navigationType:r}},sf=new WeakMap;function cf(e,t){return sf.get(e)||sf.set(e,new t),sf.get(e)}var lf=class e{constructor(){e.prototype.__init.call(this),e.prototype.__init2.call(this)}__init(){this._sessionValue=0}__init2(){this._sessionEntries=[]}_processEntry(e){if(e.hadRecentInput)return;let t=this._sessionEntries[0],n=this._sessionEntries[this._sessionEntries.length-1];this._sessionValue&&t&&n&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(this._sessionValue+=e.value,this._sessionEntries.push(e)):(this._sessionValue=e.value,this._sessionEntries=[e]),this._onAfterProcessingUnexpectedShift?.(e)}},uf=(e,t,n={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){let r=new PerformanceObserver(e=>{Promise.resolve().then(()=>{t(e.getEntries())})});return r.observe({type:e,buffered:!0,...n}),r}}catch{}},df=e=>{let t=!1;return()=>{t||=(e(),!0)}},ff=-1,pf=()=>G.document?.visibilityState===`hidden`&&!G.document?.prerendering?0:1/0,mf=e=>{G.document.visibilityState===`hidden`&&ff>-1&&(ff=e.type===`visibilitychange`?e.timeStamp:0,gf())},hf=()=>{addEventListener(`visibilitychange`,mf,!0),addEventListener(`prerenderingchange`,mf,!0)},gf=()=>{removeEventListener(`visibilitychange`,mf,!0),removeEventListener(`prerenderingchange`,mf,!0)},_f=()=>{if(G.document&&ff<0){let e=af();ff=(G.document.prerendering?void 0:globalThis.performance.getEntriesByType(`visibility-state`).filter(t=>t.name===`hidden`&&t.startTime>e)[0]?.startTime)??pf(),hf()}return{get firstHiddenTime(){return ff}}},vf=e=>{G.document?.prerendering?addEventListener(`prerenderingchange`,()=>e(),!0):e()},yf=[1800,3e3],bf=(e,t={})=>{vf(()=>{let n=_f(),r=of(`FCP`),i,a=uf(`paint`,e=>{for(let t of e)t.name===`first-contentful-paint`&&(a.disconnect(),t.startTime<n.firstHiddenTime&&(r.value=Math.max(t.startTime-af(),0),r.entries.push(t),i(!0)))});a&&(i=tf(e,r,yf,t.reportAllChanges))})},xf=[.1,.25],Sf=(e,t={})=>{bf(df(()=>{let n=of(`CLS`,0),r,i=cf(t,lf),a=e=>{for(let t of e)i._processEntry(t);i._sessionValue>
471n.value&&(n.value=i._sessionValue,n.entries=i._sessionEntries,r())},o=uf(`layout-shift`,a);o&&(r=tf(e,n,xf,t.reportAllChanges),G.document?.addEventListener(`visibilitychange`,()=>{G.document?.visibilityState===`hidden`&&(a(o.takeRecords()),r(!0))}),G?.setTimeout?.(r))}))},Cf=0,wf=1/0,Tf=0,Ef=e=>{e.forEach(e=>{e.interactionId&&(wf=Math.min(wf,e.interactionId),Tf=Math.max(Tf,e.interactionId),Cf=Tf?(Tf-wf)/7+1:0)})},Df,Of=()=>Df?Cf:performance.interactionCount||0,kf=()=>{`interactionCount`in performance||Df||(Df=uf(`event`,Ef,{type:`event`,buffered:!0,durationThreshold:0}))},Af=10,jf=0,Mf=()=>Of()-jf,Nf=class e{constructor(){e.prototype.__init.call(this),e.prototype.__init2.call(this)}__init(){this._longestInteractionList=[]}__init2(){this._longestInteractionMap=new Map}_resetInteractions(){jf=Of(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){let e=Math.min(this._longestInteractionList.length-1,Math.floor(Mf()/50));return this._longestInteractionList[e]}_processEntry(e){if(this._onBeforeProcessingEntry?.(e),!(e.interactionId||e.entryType===`first-input`))return;let t=this._longestInteractionList.at(-1),n=this._longestInteractionMap.get(e.interactionId);if(n||this._longestInteractionList.length<Af||e.duration>t._latency){if(n?e.duration>n._latency?(n.entries=[e],n._latency=e.duration):e.duration===n._latency&&e.startTime===n.entries[0].startTime&&n.entries.push(e):(n={id:e.interactionId,entries:[e],_latency:e.duration},this._longestInteractionMap.set(n.id,n),this._longestInteractionList.push(n)),this._longestInteractionList.sort((e,t)=>t._latency-e._latency),this._longestInteractionList.length>Af){let e=this._longestInteractionList.splice(Af);for(let t of e)this._longestInteractionMap.delete(t.id)}this._onAfterProcessingINPCandidate?.(n)}}},Pf=e=>{let t=t=>{(t.type===`pagehide`||G.document?.visibilityState===`hidden`)&&e(t)};G.document&&(addEventListener(`visibilitychange`,t,!0),addEventListener(`pagehide`,t,!0))},Ff=e=>{let t=G.requestIdleCallback||G.setTimeout;G.document?.visibilityState===`hidden`?e():(e=df(e),t(e),Pf(e))},If=[200,500],Lf=40,Rf=(e,t={})=>{globalThis.PerformanceEventTiming&&`interactionId`in PerformanceEventTiming.prototype&&vf(()=>{kf();let n=of(`INP`),r,i=cf(t,Nf),a=e=>{Ff(()=>{for(let t of e)i._processEntry(t);let t=i._estimateP98LongestInteraction();t&&t._latency!==n.value&&(n.value=t._latency,n.entries=t.entries,r())})},o=uf(`event`,a,{durationThreshold:t.durationThreshold??Lf});r=tf(e,n,If,t.reportAllChanges),o&&(o.observe({type:`first-input`,buffered:!0}),Pf(()=>{a(o.takeRecords()),r(!0)}))})},zf=class{_processEntry(e){this._onBeforeProcessingEntry?.(e)}},Bf=[2500,4e3],Vf=(e,t={})=>{vf(()=>{let n=_f(),r=of(`LCP`),i,a=cf(t,zf),o=e=>{t.reportAllChanges||(e=e.slice(-1));for(let t of e)a._processEntry(t),t.startTime<n.firstHiddenTime&&(r.value=Math.max(t.startTime-af(),0),r.entries=[t],i())},s=uf(`largest-contentful-paint`,o);if(s){i=tf(e,r,Bf,t.reportAllChanges);let n=df(()=>{o(s.takeRecords()),s.disconnect(),i(!0)});for(let e of[`keydown`,`click`,`visibilitychange`])G.document&&addEventListener(e,()=>Ff(n),{capture:!0,once:!0})}})},Hf=[800,1800],Uf=e=>{G.document?.prerendering?vf(()=>Uf(e)):G.document?.readyState===`complete`?setTimeout(e):addEventListener(`load`,()=>Uf(e),!0)},Wf=(e,t={})=>{let n=of(`TTFB`),r=tf(e,n,Hf,t.reportAllChanges);Uf(()=>{let e=rf();e&&(n.value=Math.max(e.responseStart-af(),0),n.entries=[e],r(!0))})},Gf={},Kf={},qf,Jf,Yf,Xf;function Zf(e,t=!1){return sp(`cls`,e,rp,qf,t)}function Qf(e,t=!1){return sp(`lcp`,e,ip,Jf,t)}function $f(e){return sp(`ttfb`,e,ap,Yf)}function ep(e){return sp(`inp`,e,op,Xf)}function tp(e,t){return lp(e,t),Kf[e]||(cp(e),Kf[e]=!0),up(e,t)}function np(e,t){let n=Gf[e];if(n?.length)for(let e of n)try{e(t)}catch{}}function rp(){return Sf(e=>{np(`cls`,{metric:e}),qf=e},{reportAllChanges:!0})}function ip(){return Vf(e=>{np(`lcp`,{metric:e}),Jf=e},{reportAllChanges:!0})}function ap(){return Wf(e=>{np(`ttfb`,{metric:e}),Yf=e})}function op(){return Rf(e=>{np(`inp`,{metric:e}),Xf=e})}function sp(e,t,n,r,i=!1){lp(e,t);let a;return Kf[e]||(a=n(),Kf[e]=!0),r&&t({metric:r}),up(e,t,i?a:void 0)}function cp(e){let t={};e===`event`&&(t.durationThreshold=0),uf(e,t=>{np(e,{entries:t})},t)}function lp(e,t){Gf[e]=Gf[e]||[],Gf[e].push(t)}function up(e,t,n){return()=>{n&&n();let r=Gf[e];if(!r)return;let i=r.indexOf(t);i!==-1&&r.splice(i,1)}}function dp(e){return`duration`in e}function fp(e){return typeof e==`number`&&isFinite(e)}function pp(e,t,n,{...r}){let i=I(e).start_timestamp;return i&&i>t&&typeof e.updateStartTime==`function`&&e.updateStartTime(t),Br(e,()=>{let e=Rr({startTime:t,...r});return e&&e.end(n),e})}function mp(e){let t=P();if(!t)return;let{name:n,transaction:r,attributes:i,startTime:a}=e,{release:o,environment:s,sendDefaultPii:c}=t.getOptions(),l=t.getIntegrationByName(`Replay`)?.getReplayId(),u=M(),d=u.getUser(),f=d===void 0?void 0:d.email||d.id||d.ip_address,p;try{p=u.getScopeData().contexts.profile.profile_id}catch{}return Rr({name:n,attributes:{release:o,environment:s,user:f||void 0,profile_id:p||void 0,replay_id:l||void 0,transaction:r,"user_agent.original":G.navigator?.userAgent,"client.address":c?`{{auto}}`:void 0,...i},startTime:a,experimental:{standalone:!0}})}function hp(){return G.addEventListener&&G.performance}function K(e){return e/1e3}function gp(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}
471return r===e&&(t=r),{name:t,version:n}}function _p(e){try{return PerformanceObserver.supportedEntryTypes.includes(e)}catch{return!1}}function vp(e,t){let n,r=!1;function i(e){!r&&n&&t(e,n),r=!0}Pf(()=>{i(`pagehide`)});let a=e.on(`beforeStartNavigationSpan`,(e,t)=>{t?.isRedirect||(i(`navigation`),yp(a,o))}),o=e.on(`afterStartPageLoadSpan`,e=>{n=e.spanContext().spanId,yp(o)})}function yp(...e){e.forEach(e=>e&&setTimeout(e,0))}function bp(e){let t=0,n;if(!_p(`layout-shift`))return;let r=Zf(({metric:e})=>{let r=e.entries[e.entries.length-1];r&&(t=e.value,n=r)},!0);vp(e,(e,i)=>{xp(t,n,i,e),r()})}function xp(e,t,n,r){let i=K((at()||0)+(t?.startTime||0)),a=M().getScopeData().transactionName,o=t?De(t.sources[0]?.node):`Layout shift`,s={[F]:`auto.http.browser.cls`,[Pt]:`ui.webvital.cls`,[Bt]:t?.duration||0,"sentry.pageload.span_id":n,"sentry.report_event":r};t?.sources&&t.sources.forEach((e,t)=>{s[`cls.source.${t+1}`]=De(e.node)});let c=mp({name:o,transaction:a,attributes:s,startTime:i});c&&(c.addEvent(`cls`,{[It]:``,[Lt]:e}),c.end(i))}function Sp(e){let t=0,n;if(!_p(`largest-contentful-paint`))return;let r=Qf(({metric:e})=>{let r=e.entries[e.entries.length-1];r&&(t=e.value,n=r)},!0);vp(e,(e,i)=>{Cp(t,n,i,e),r()})}function Cp(e,t,n,r){let i=K((at()||0)+(t?.startTime||0)),a=M().getScopeData().transactionName,o=t?De(t.element):`Largest contentful paint`,s={[F]:`auto.http.browser.lcp`,[Pt]:`ui.webvital.lcp`,[Bt]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};t&&(t.element&&(s[`lcp.element`]=De(t.element)),t.id&&(s[`lcp.id`]=t.id),t.url&&(s[`lcp.url`]=t.url.trim().slice(0,200)),t.loadTime!=null&&(s[`lcp.loadTime`]=t.loadTime),t.renderTime!=null&&(s[`lcp.renderTime`]=t.renderTime),t.size!=null&&(s[`lcp.size`]=t.size));let c=mp({name:o,transaction:a,attributes:s,startTime:i});c&&(c.addEvent(`lcp`,{[It]:`millisecond`,[Lt]:e}),c.end(i))}var wp=2147483647,Tp=0,Ep={},Dp,Op;function kp({recordClsStandaloneSpans:e,recordLcpStandaloneSpans:t,client:n}){let r=hp();if(r&&at()){r.mark&&G.performance.mark(`sentry-tracing-init`);let i=t?Sp(n):Pp(),a=Fp(),o=e?bp(n):Np();return()=>{i?.(),a(),o?.()}}return()=>void 0}function Ap(){tp(`longtask`,({entries:e})=>{let t=L();if(!t)return;let{op:n,start_timestamp:r}=I(t);for(let i of e){let e=K(at()+i.startTime),a=K(i.duration);n===`navigation`&&r&&e<r||pp(t,e,e+a,{name:`Main UI thread blocked`,op:`ui.long-task`,attributes:{[F]:`auto.ui.browser.metrics`}})}})}function jp(){new PerformanceObserver(e=>{let t=L();if(t)for(let n of e.getEntries()){if(!n.scripts[0])continue;let e=K(at()+n.startTime),{start_timestamp:r,op:i}=I(t);if(i===`navigation`&&r&&e<r)continue;let a=K(n.duration),o={[F]:`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[`code.filepath`]=l),u&&(o[`code.function`]=u),d!==-1&&(o[`browser.script.source_char_position`]=d),pp(t,e,e+a,{name:`Main UI thread blocked`,op:`ui.long-animation-frame`,attributes:o})}}).observe({type:`long-animation-frame`,buffered:!0})}function Mp(){tp(`event`,({entries:e})=>{let t=L();if(t){for(let n of e)if(n.name===`click`){let e=K(at()+n.startTime),r=K(n.duration),i={name:De(n.target),op:`ui.interaction.${n.name}`,startTime:e,attributes:{[F]:`auto.ui.browser.metrics`}},a=Ae(n.target);a&&(i.attributes[`ui.component_name`]=a),pp(t,e,e+r,i)}}})}function Np(){return Zf(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(Ep.cls={value:e.value,unit:``},Op=t)},!0)}function Pp(){return Qf(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(Ep.lcp={value:e.value,unit:`millisecond`},Dp=t)},!0)}function Fp(){return $f(({metric:e})=>{e.entries[e.entries.length-1]&&(Ep.ttfb={value:e.value,unit:`millisecond`})})}function Ip(e,t){let n=hp(),r=at();if(!n?.getEntries||!r)return;let i=K(r),a=n.getEntries(),{op:o,start_timestamp:s}=I(e);a.slice(Tp).forEach(n=>{let r=K(n.startTime),a=K(Math.max(0,n.duration));if(!(o===`navigation`&&s&&i+r<s))switch(n.entryType){case`navigation`:zp(e,n,i);break;case`mark`:case`paint`:case`measure`:{Lp(e,n,r,a,i,t.ignorePerformanceApiSpans);let o=_f(),s=n.startTime<o.firstHiddenTime;n.name===`first-paint`&&s&&(Ep.fp={value:n.startTime,unit:`millisecond`}),n.name===`first-contentful-paint`&&s&&(Ep.fcp={value:n.startTime,unit:`millisecond`});break}case`resource`:Up(e,n,n.name,r,a,i,t.ignoreResourceSpans);break}}),Tp=Math.max(a.length-1,0),Wp(e),o===`pageload`&&(qp(Ep),t.recordClsOnPageloadSpan||delete Ep.cls,t.recordLcpOnPageloadSpan||delete Ep.lcp,Object.entries(Ep).forEac
471h(([e,t])=>{wr(e,t.value,t.unit)}),e.setAttribute(`performance.timeOrigin`,i),e.setAttribute(`performance.activationStart`,af()),Gp(e,t)),Dp=void 0,Op=void 0,Ep={}}function Lp(e,t,n,r,i,a){if([`mark`,`measure`].includes(t.entryType)&&Fe(t.name,a))return;let o=rf(!1),s=K(o?o.requestStart:0),c=i+Math.max(n,s),l=i+n,u=l+r,d={[F]:`auto.resource.browser.metrics`};c!==l&&(d[`sentry.browser.measure_happened_before_request`]=!0,d[`sentry.browser.measure_start_time`]=c),Rp(d,t),c<=u&&pp(e,c,u,{name:t.name,op:t.entryType,attributes:d})}function Rp(e,t){try{let n=t.detail;if(!n)return;if(typeof n==`object`){for(let[t,r]of Object.entries(n))if(r&&he(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(he(n)){e[`sentry.browser.measure.detail`]=n;return}try{e[`sentry.browser.measure.detail`]=JSON.stringify(n)}catch{}}catch{}}function zp(e,t,n){[`unloadEvent`,`redirect`,`domContentLoadedEvent`,`loadEvent`,`connect`].forEach(r=>{Bp(e,t,r,n)}),Bp(e,t,`secureConnection`,n,`TLS/SSL`),Bp(e,t,`fetch`,n,`cache`),Bp(e,t,`domainLookup`,n,`DNS`),Hp(e,t,n)}function Bp(e,t,n,r,i=n){let a=t[Vp(n)],o=t[`${n}Start`];!o||!a||pp(e,r+K(o),r+K(a),{op:`browser.${i}`,name:t.name,attributes:{[F]:`auto.ui.browser.metrics`,...n===`redirect`&&t.redirectCount!=null?{"http.redirect_count":t.redirectCount}:{}}})}function Vp(e){return e===`secureConnection`?`connectEnd`:e===`fetch`?`domainLookupStart`:`${e}End`}function Hp(e,t,n){let r=n+K(t.requestStart),i=n+K(t.responseEnd),a=n+K(t.responseStart);t.responseEnd&&(pp(e,r,i,{op:`browser.request`,name:t.name,attributes:{[F]:`auto.ui.browser.metrics`}}),pp(e,a,i,{op:`browser.response`,name:t.name,attributes:{[F]:`auto.ui.browser.metrics`}}))}function Up(e,t,n,r,i,a,o){if(t.initiatorType===`xmlhttprequest`||t.initiatorType===`fetch`)return;let s=t.initiatorType?`resource.${t.initiatorType}`:`resource.other`;if(o?.includes(s))return;let c=so(n),l={[F]:`auto.resource.browser.metrics`};Kp(l,t,`transferSize`,`http.response_transfer_size`),Kp(l,t,`encodedBodySize`,`http.response_content_length`),Kp(l,t,`decodedBodySize`,`http.decoded_response_content_length`);let u=t.deliveryType;u!=null&&(l[`http.response_delivery_type`]=u);let d=t.renderBlockingStatus;if(d&&(l[`resource.render_blocking_status`]=d),c.protocol&&(l[`url.scheme`]=c.protocol.split(`:`).pop()),c.host&&(l[`server.address`]=c.host),l[`url.same_origin`]=n.includes(G.location.origin),t.nextHopProtocol!=null){let{name:e,version:n}=gp(t.nextHopProtocol);l[`network.protocol.name`]=e,l[`network.protocol.version`]=n}let f=a+r;pp(e,f,f+i,{name:n.replace(G.location.origin,``),op:s,attributes:l})}function Wp(e){let t=G.navigator;if(!t)return;let n=t.connection;n&&(n.effectiveType&&e.setAttribute(`effectiveConnectionType`,n.effectiveType),n.type&&e.setAttribute(`connectionType`,n.type),fp(n.rtt)&&(Ep[`connection.rtt`]={value:n.rtt,unit:`millisecond`})),fp(t.deviceMemory)&&e.setAttribute(`deviceMemory`,`${t.deviceMemory} GB`),fp(t.hardwareConcurrency)&&e.setAttribute(`hardwareConcurrency`,String(t.hardwareConcurrency))}function Gp(e,t){Dp&&t.recordLcpOnPageloadSpan&&(Dp.element&&e.setAttribute(`lcp.element`,De(Dp.element)),Dp.id&&e.setAttribute(`lcp.id`,Dp.id),Dp.url&&e.setAttribute(`lcp.url`,Dp.url.trim().slice(0,200)),Dp.loadTime!=null&&e.setAttribute(`lcp.loadTime`,Dp.loadTime),Dp.renderTime!=null&&e.setAttribute(`lcp.renderTime`,Dp.renderTime),e.setAttribute(`lcp.size`,Dp.size)),Op?.sources&&t.recordClsOnPageloadSpan&&Op.sources.forEach((t,n)=>e.setAttribute(`cls.source.${n+1}`,De(t.node)))}function Kp(e,t,n,r){let i=t[n];i!=null&&i<wp&&(e[r]=i)}function qp(e){let t=rf(!1);if(!t)return;let{responseStart:n,requestStart:r}=t;r<=n&&(e[`ttfb.requestTime`]={value:n-r,unit:`millisecond`})}function Jp(){return hp()&&at()?tp(`element`,Yp):()=>void 0}var Yp=({entries:e})=>{let t=L(),n=t?Pn(t):void 0,r=n?I(n).description:M().getScopeData().transactionName;e.forEach(e=>{let t=e;if(!t.identifier)return;let n=t.name,i=t.renderTime,a=t.loadTime,[o,s]=a?[K(a),`load-time`]:i?[K(i),`render-time`]:[j(),`entry-emission`],c=n===`image-paint`?K(Math.max(0,(i??0)-(a??0))):0,l={[F]:`auto.ui.browser.elementtiming`,[Pt]:`ui.elementtiming`,[jt]:`component`,"
471sentry.span_start_time_source":s,"sentry.transaction_name":r,"element.id":t.id,"element.type":t.element?.tagName?.toLowerCase()||`unknown`,"element.size":t.naturalWidth&&t.naturalHeight?`${t.naturalWidth}x${t.naturalHeight}`:void 0,"element.render_time":i,"element.load_time":a,"element.url":t.url||void 0,"element.identifier":t.identifier,"element.paint_type":n};Ir({name:`element[${t.identifier}]`,attributes:l,startTime:o,onlyIfParent:!0},e=>{e.end(o+c)})})},Xp=1e3,Zp,Qp,$p;function em(e){ne(`dom`,e),D(`dom`,tm)}function tm(){if(!G.document)return;let e=O.bind(null,`dom`),t=im(e,!0);G.document.addEventListener(`click`,t,!1),G.document.addEventListener(`keypress`,t,!1),[`EventTarget`,`Node`].forEach(t=>{let n=G[t]?.prototype;n?.hasOwnProperty?.(`addEventListener`)&&(Ie(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=im(e);a.handler=r,t.call(this,n,r,i)}a.refCount++}catch{}return t.call(this,n,r,i)}}),Ie(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 nm(e){if(e.type!==Qp)return!1;try{if(!e.target||e.target._sentryId!==$p)return!1}catch{}return!0}function rm(e,t){return e===`keypress`?t?.tagName?!(t.tagName===`INPUT`||t.tagName===`TEXTAREA`||t.isContentEditable):!0:!1}function im(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;let r=am(n);if(rm(n.type,r))return;Le(n,`_sentryCaptured`,!0),r&&!r._sentryId&&Le(r,`_sentryId`,Ge());let i=n.type===`keypress`?`input`:n.type;nm(n)||(e({event:n,name:i,global:t}),Qp=n.type,$p=r?r._sentryId:void 0),clearTimeout(Zp),Zp=G.setTimeout(()=>{$p=void 0,Qp=void 0},Xp)}}function am(e){try{return e.target}catch{return null}}var om;function sm(e){let t=`history`;ne(t,e),D(t,cm)}function cm(){if(G.addEventListener(`popstate`,()=>{let e=G.location.href,t=om;om=e,t!==e&&O(`history`,{from:t,to:e})}),!xc())return;function e(e){return function(...t){let n=t.length>2?t[2]:void 0;if(n){let r=om,i=lm(String(n));if(om=i,r===i)return e.apply(this,t);O(`history`,{from:r,to:i})}return e.apply(this,t)}}Ie(G.history,`pushState`,e),Ie(G.history,`replaceState`,e)}function lm(e){try{return new URL(e,G.location.origin).toString()}catch{return e}}var um={};function dm(e){let t=um[e];if(t)return t;let n=G[e];if(Cc(n))return um[e]=n.bind(G);let r=G.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{}return n&&(um[e]=n.bind(G))}function fm(e){um[e]=void 0}function pm(...e){return dm(`setTimeout`)(...e)}var mm=`__sentry_xhr_v3__`;function hm(e){ne(`xhr`,e),D(`xhr`,gm)}function gm(){if(!G.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,n){let r=Error(),i=j()*1e3,a=A(n[0])?n[0].toUpperCase():void 0,o=_m(n[1]);if(!a||!o)return e.apply(t,n);t[mm]={method:a,url:o,request_headers:{}},a===`POST`&&o.match(/sentry_key/)&&(t.__sentry_own_request__=!0);let s=()=>{let e=t[mm];if(e&&t.readyState===4){try{e.status_code=t.status}catch{}O(`xhr`,{endTimestamp:j()*1e3,startTimestamp:i,xhr:t,virtualError:r})}};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[mm];return a&&A(r)&&A(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[mm];return r?(n[0]!==void 0&&(r.body=n[0]),O(`xhr`,{startTimestamp:j()*1e3,xhr:t}),e.apply(t,n)):e.apply(t,n)}})}function _m(e){if(A(e))return e;try{return e.toString()}catch{}}function vm(e){return new URLSearchParams(e).toString()}function ym(e,t=g){try{if(typeof e==`string`)return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[vm(e)];if(!e)return[void 0]}catch{return[void 0,`BODY_PARSE_ERROR`]}return[void 0,`UNPARSEABLE_BODY_TYPE`]}function bm(e=[]){if(!(e.length!==2||typeof e[1]!=`object`))return e[1].body}var xm=[],Sm=new Map,Cm=60;
471function wm(){if(hp()&&at()){let e=Em();return()=>{e()}}return()=>void 0}var Tm={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 Em(){return ep(Dm)}var Dm=({metric:e})=>{if(e.value==null)return;let t=K(e.value);if(t>Cm)return;let n=e.entries.find(t=>t.duration===e.value&&Tm[t.name]);if(!n)return;let{interactionId:r}=n,i=Tm[n.name],a=K(at()+n.startTime),o=L(),s=o?Pn(o):void 0,c=(r==null?void 0:Sm.get(r))||s,l=c?I(c).description:M().getScopeData().transactionName,u=mp({name:De(n.target),transaction:l,attributes:{[F]:`auto.http.browser.inp`,[Pt]:`ui.interaction.${i}`,[Bt]:n.duration},startTime:a});u&&(u.addEvent(`inp`,{[It]:`millisecond`,[Lt]:e.value}),u.end(a+t))};function Om(){let e=({entries:e})=>{let t=L(),n=t&&Pn(t);e.forEach(e=>{if(!dp(e)||!n)return;let t=e.interactionId;if(t!=null&&!Sm.has(t)){if(xm.length>10){let e=xm.shift();Sm.delete(e)}xm.push(t),Sm.set(t,n)}})};tp(`event`,e),tp(`first-input`,e)}function km(e,t=dm(`fetch`)){let n=0,r=0;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};if(!t)return fm(`fetch`),si(`No fetch implementation available`);try{return t(e.url,o).then(e=>(n-=a,r--,{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get(`X-Sentry-Rate-Limits`),"retry-after":e.headers.get(`Retry-After`)}}))}catch(e){return fm(`fetch`),n-=a,r--,si(e)}}return Ya(e,i)}var Am=10,jm=20,Mm=30,Nm=40,Pm=50;function Fm(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}var Im=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,Lm=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Rm=/\((\S*)(?::(\d+))(?::(\d+))\)/,zm=/at (.+?) ?\(data:(.+?),/,Bm=[Mm,e=>{let t=e.match(zm);if(t)return{filename:`<data:${t[2]}>`,function:t[1]};let n=Im.exec(e);if(n){let[,e,t,r]=n;return Fm(e,`?`,+t,+r)}let r=Lm.exec(e);if(r){if(r[2]&&r[2].indexOf(`eval`)===0){let e=Rm.exec(r[2]);e&&(r[2]=e[1],r[3]=e[2],r[4]=e[3])}let[e,t]=Qm(r[1]||`?`,r[2]);return Fm(t,e,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}}],Vm=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Hm=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Um=[Pm,e=>{let t=Vm.exec(e);if(t){if(t[3]&&t[3].indexOf(` > eval`)>-1){let e=Hm.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]=Qm(n,e),Fm(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],Wm=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Gm=[Nm,e=>{let t=Wm.exec(e);return t?Fm(t[2],t[1]||`?`,+t[3],t[4]?+t[4]:void 0):void 0}],Km=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,qm=[Am,e=>{let t=Km.exec(e);return t?Fm(t[2],t[3]||`?`,+t[1]):void 0}],Jm=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,Ym=[jm,e=>{let t=Jm.exec(e);return t?Fm(t[5],t[3]||t[4]||`?`,+t[1],+t[2]):void 0}],Xm=[Bm,Um],Zm=b(...Xm),Qm=(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 $m(e,{metadata:t,tunnel:n,dsn:r}){return nr({event_id:e.event_id,sent_at:new Date().toISOString(),...t?.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:rn(r)}},[eh(e)])}function eh(e){return[{type:`user_report`},e]}var th=1024,nh=`Breadcrumbs`,rh=R(((e={})=>{let t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:nh,setup(e){t.console&&Qo(oh(e)),t.dom&&em(ah(e,t.dom)),t.xhr&&hm(sh(e)),t.fetch&&Ec(ch(e)),t.history&&sm(lh(e)),t.sentry&&e.on(`beforeSendEvent`,ih(e))}}}));function ih(e){return function(t){P()===e&&Co({category:`sentry.${t.type===`transaction`?`transaction`:`event`}`,event_id:t.event_id,level:t.level,message:qe(t)},{event:t})}}function ah(e,t){return function(n){if(P()!==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>th&&(o=th),typeof a==`string`&&(a=[a]);try{let e=n.event,t=uh(e)?e.target:e;r=De(t,{keyAttrs:a,maxStringLength:o}),i=Ae(t)}catch{r=`<unknown>`}if(r.length===0)return;let s={category:`ui.${n.name}`,message:r};
471i&&(s.data={"ui.component_name":i}),Co(s,{event:n.event,name:n.name,global:n.global})}}function oh(e){return function(t){if(P()!==e)return;let n={category:`console`,data:{arguments:t.args,logger:`console`},level:es(t.level),message:Ne(t.args,` `)};if(t.level===`assert`)if(t.args[0]===!1)n.message=`Assertion failed: ${Ne(t.args.slice(1),` `)||`console.assert`}`,n.data.arguments=t.args.slice(1);else return;Co(n,{input:t.args,level:t.level})}}function sh(e){return function(t){if(P()!==e)return;let{startTimestamp:n,endTimestamp:r}=t,i=t.xhr[mm];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:yc(s)};e.emit(`beforeOutgoingRequestBreadcrumb`,d,u),Co(d,u)}}function ch(e){return function(t){if(P()!==e)return;let{startTimestamp:n,endTimestamp:r}=t;if(r&&!(t.fetchData.url.match(/sentry_key/)&&t.fetchData.method===`POST`))if(t.fetchData.method,t.fetchData.url,t.error){let i=t.fetchData,a={data:t.error,input:t.args,startTimestamp:n,endTimestamp:r},o={category:`fetch`,data:i,level:`error`,type:`http`};e.emit(`beforeOutgoingRequestBreadcrumb`,o,a),Co(o,a)}else{let i=t.response,a={...t.fetchData,status_code:i?.status};t.fetchData.request_body_size,t.fetchData.response_body_size,i?.status;let o={input:t.args,response:i,startTimestamp:n,endTimestamp:r},s={category:`fetch`,data:a,type:`http`,level:yc(a.status_code)};e.emit(`beforeOutgoingRequestBreadcrumb`,s,o),Co(s,o)}}}function lh(e){return function(t){if(P()!==e)return;let n=t.from,r=t.to,i=so(W.location.href),a=n?so(n):void 0,o=so(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),Co({category:`navigation`,data:{from:n,to:r}})}}function uh(e){return!!e&&!!e.target}var dh=`EventTarget.Window.Node.ApplicationCache.AudioTrackList.BroadcastChannel.ChannelMergerNode.CryptoOperation.EventSource.FileReader.HTMLUnknownElement.IDBDatabase.IDBRequest.IDBTransaction.KeyOperation.MediaController.MessagePort.ModalWindow.Notification.SVGElementInstance.Screen.SharedWorker.TextTrack.TextTrackCue.TextTrackList.WebSocket.WebSocketWorker.Worker.XMLHttpRequest.XMLHttpRequestEventTarget.XMLHttpRequestUpload`.split(`.`),fh=`BrowserApiErrors`,ph=R(((e={})=>{let t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:fh,setupOnce(){t.setTimeout&&Ie(W,`setTimeout`,mh),t.setInterval&&Ie(W,`setInterval`,mh),t.requestAnimationFrame&&Ie(W,`requestAnimationFrame`,hh),t.XMLHttpRequest&&`XMLHttpRequest`in W&&Ie(XMLHttpRequest.prototype,`send`,gh);let e=t.eventTarget;e&&(Array.isArray(e)?e:dh).forEach(e=>_h(e,t))}}}));function mh(e){return function(...t){let n=t[0];return t[0]=vd(n,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${T(e)}`}}),e.apply(this,t)}}function hh(e){return function(t){return e.apply(this,[vd(t,{mechanism:{data:{handler:T(e)},handled:!1,type:`auto.browser.browserapierrors.requestAnimationFrame`}})])}}function gh(e){return function(...t){let n=this;return[`onload`,`onerror`,`onprogress`,`onreadystatechange`].forEach(e=>{e in n&&typeof n[e]==`function`&&Ie(n,e,function(t){let n={mechanism:{data:{handler:T(t)},handled:!1,type:`auto.browser.browserapierrors.xhr.${e}`}},r=ze(t);return r&&(n.mechanism.data.handler=T(r)),vd(t,n)})}),e.apply(this,t)}}function _h(e,t){let n=W[e]?.prototype;n?.hasOwnProperty?.(`addEventListener`)&&(Ie(n,`addEventListener`,function(n){return function(r,i,a){try{vh(i)&&(i.handleEvent=vd(i.handleEvent,{mechanism:{data:{handler:T(i),target:e},handled:!1,type:`auto.browser.browserapierrors.handleEvent`}}))}catch{}return t.unregisterOriginalCallbacks&&yh(this,r,i),n.apply(this,[r,vd(i,{mechanism:{data:{handler:T(i),target:e},handled:!1,type:`auto.browser.browserapierrors.addEventListener`}}),a])}}),Ie(n,`removeEventListener`,function(e){return function(t,n,r){try{let i=n.__sentry_wrapped__;i&&e.call(this,t,i,r)}catch{}return e.call(this,t,n,r)}}))}function vh(e){return typeof e.handleEvent==`function`}
471function yh(e,t,n){e&&typeof e==`object`&&`removeEventListener`in e&&typeof e.removeEventListener==`function`&&e.removeEventListener(t,n)}var bh=R(()=>({name:`BrowserSession`,setupOnce(){W.document!==void 0&&(Yi({ignoreDuration:!0}),Qi(),sm(({from:e,to:t})=>{e!==void 0&&e!==t&&(Yi({ignoreDuration:!0}),Qi())}))}})),xh=`GlobalHandlers`,Sh=R(((e={})=>{let t={onerror:!0,onunhandledrejection:!0,...e};return{name:xh,setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&Ch(e),t.onunhandledrejection&&wh(e)}}}));function Ch(e){k(t=>{let{stackParser:n,attachStacktrace:r}=Oh();if(P()!==e||gd())return;let{msg:i,url:a,line:o,column:s,error:c}=t,l=Dh(Kd(n,c||i,void 0,r,!1),a,o,s);l.level=`error`,Ii(l,{originalException:c,mechanism:{handled:!1,type:`auto.browser.global_handlers.onerror`}})})}function wh(e){oe(t=>{let{stackParser:n,attachStacktrace:r}=Oh();if(P()!==e||gd())return;let i=Th(t),a=he(i)?Eh(i):Kd(n,i,void 0,r,!0);a.level=`error`,Ii(a,{originalException:i,mechanism:{handled:!1,type:`auto.browser.global_handlers.onunhandledrejection`}})})}function Th(e){if(he(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 Eh(e){return{exception:{values:[{type:`UnhandledRejection`,value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function Dh(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||[],l=r,u=n,d=kh(t)??ke();return c.length===0&&c.push({colno:l,filename:d,function:`?`,in_app:!0,lineno:u}),e}function Oh(){return P()?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}function kh(e){if(!(!A(e)||e.length===0)){if(e.startsWith(`data:`)){let t=e.match(/^data:([^;]+)/);return`<data:${t?t[1]:`text/javascript`}${e.includes(`base64,`)?`,base64`:``}>`}return e.slice(0,1024)}}var Ah=R(()=>({name:`HttpContext`,preprocessEvent(e){if(!W.navigator&&!W.location&&!W.document)return;let t=yd(),n={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:n}}})),jh=`cause`,Mh=5,Nh=`LinkedErrors`,Ph=R(((e={})=>{let t=e.limit||Mh,n=e.key||jh;return{name:Nh,preprocessEvent(e,r,i){Vo(Pd,i.getOptions().stackParser,n,t,e,r)}}}));function Fh(){return!!Ih()}function Ih(){if(W.window===void 0)return!1;let e=W;if(e.nw||!(e.chrome||e.browser)?.runtime?.id)return!1;let t=ke();return!(W===W.top&&[`chrome-extension`,`moz-extension`,`ms-browser-extension`,`safari-web-extension`].some(e=>
471t.startsWith(`${e}://`)))}function Lh(e){return[jo(),Do(),ph(),rh(),Sh(),Ph(),as(),Ah(),bh()]}function Rh(e={}){let t=!e.skipBrowserExtensionCheck&&Fh();return Ba(Qd,{...e,enabled:t?!1:e.enabled,stackParser:x(e.stackParser||Zm),integrations:sa({integrations:e.integrations,defaultIntegrations:e.defaultIntegrations==null?Lh():e.defaultIntegrations}),transport:e.transport||km})}function zh(){}function Bh(e){e()}function Vh(e={}){let t=W.document,n=t?.head||t?.body;if(!n)return;let r=M(),i=P()?.getDsn();if(!i)return;let a={...e,user:{...r.getUser(),...e.user},eventId:e.eventId||Ui()},o=W.document.createElement(`script`);o.async=!0,o.crossOrigin=`anonymous`,o.src=ia(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 Hh=t,Uh=`ReportingObserver`,Wh=new WeakMap,Gh=R(((e={})=>{let t=e.types||[`crash`,`deprecation`,`intervention`];function n(e){if(Wh.has(P()))for(let t of e)Ot(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}Fi(`${n}: ${r}`)})}return{name:Uh,setupOnce(){Tc()&&new Hh.ReportingObserver(n,{buffered:!0,types:t}).observe()},setup(e){Wh.set(e,!0)}}})),Kh=`HttpClient`,qh=R(((e={})=>{let t={failedRequestStatusCodes:[[500,599]],failedRequestTargets:[/.*/],...e};return{name:Kh,setup(e){rg(e,t),ig(e,t)}}}));function Jh(e,t,n,r,i){if(ag(e,n.status,n.url)){let e=sg(t,r),a,o,s,c;cg()&&([a,s]=Yh(`Cookie`,e),[o,c]=Yh(`Set-Cookie`,n)),Ii(og({url:e.url,method:e.method,status:n.status,requestHeaders:a,responseHeaders:o,requestCookies:s,responseCookies:c,error:i,type:`fetch`}))}}function Yh(e,t){let n=$h(t.headers),r;try{let t=n[e]||n[e.toLowerCase()]||void 0;t&&(r=Qh(t))}catch{}return[n,r]}function Xh(e,t,n,r,i){if(ag(e,t.status,t.responseURL)){let e,a,o;if(cg()){try{let e=t.getResponseHeader(`Set-Cookie`)||t.getResponseHeader(`set-cookie`)||void 0;e&&(a=Qh(e))}catch{}try{o=eg(t)}catch{}e=r}Ii(og({url:t.responseURL,method:n,status:t.status,requestHeaders:e,responseHeaders:o,responseCookies:a,error:i,type:`xhr`}))}}function Zh(e){if(e){let t=e[`Content-Length`]||e[`content-length`];if(t)return parseInt(t,10)}}function Qh(e){return e.split(`; `).reduce((e,t)=>{let[n,r]=t.split(`=`);return n&&r&&(e[n]=r),e},{})}function $h(e){let t={};return e.forEach((e,n)=>{t[n]=e}),t}function eg(e){let t=e.getAllResponseHeaders();return t?t.split(`\r
472`).reduce((e,t)=>{let[n,r]=t.split(`: `);return n&&r&&(e[n]=r),e},{}):{}}function tg(e,t){return e.some(e=>typeof e==`string`?t.includes(e):e.test(t))}function ng(e,t){return e.some(e=>typeof e==`number`?e===t:t>=e[0]&&t<=e[1])}function rg(e,t){wc()&&Ec(n=>{if(P()!==e)return;let{response:r,args:i,error:a,virtualError:o}=n,[s,c]=i;r&&Jh(t,s,r,c,a||o)},!1)}function ig(e,n){`XMLHttpRequest`in t&&hm(t=>{if(P()!==e)return;let{error:r,virtualError:i}=t,a=t.xhr,o=a[mm];if(!o)return;let{method:s,request_headers:c}=o;try{Xh(n,a,s,c,r||i)}catch{}})}function ag(e,t,n){return ng(e.failedRequestStatusCodes,t)&&tg(e.failedRequestTargets,n)&&!lo(n,P())}function og(e){let t=P(),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:Zh(e.responseHeaders)}}};return Ye(a,{type:`auto.http.client.${e.type}`,handled:!1}),a}function sg(e,t){return!t&&e instanceof Request||e instanceof Request&&e.bodyUsed?e:new Request(e,t)}function cg(){let e=P();return e?!!e.getOptions().sendDefaultPii:!1}var lg=t,ug=7,dg=`ContextLines`,fg=R(((e={})=>{let t=e.frameContextLines==null?ug:e.frameContextLines;return{name:dg,processEvent(e){return pg(e,t)}}}));function pg(e,t){let n=lg.document,r=lg.location&&co(lg.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(`
473`),`</html>`];
473return i.forEach(e=>{let n=e.stacktrace;n?.frames&&(n.frames=n.frames.map(e=>mg(e,o,r,t)))}),e}function mg(e,t,n,r){return e.filename!==n||!e.lineno||!t.length||Xe(t,e,r),e}var hg=`GraphQLClient`,gg=(e=>({name:hg,setup(t){_g(t,e),vg(t,e)}}));function _g(e,t){e.on(`beforeOutgoingRequestSpan`,(e,n)=>{let r=I(e).data||{};if(r[`sentry.op`]!==`http.client`)return;let i=r[`url.full`]||r[`http.url`],a=r[`http.request.method`]||r[`http.method`];if(!A(i)||!A(a))return;let{endpoints:o}=t,s=Fe(i,o),c=bg(n);if(s&&c){let t=Sg(c);if(t){let n=yg(t);e.updateName(`${a} ${i} (${n})`),e.setAttribute(`graphql.document`,c)}}})}function vg(e,t){e.on(`beforeOutgoingRequestBreadcrumb`,(e,n)=>{let{category:r,type:i,data:a}=e;if(i===`http`&&(r===`fetch`||r===`xhr`)){let e=a?.url,{endpoints:r}=t,i=Fe(e,r),o=bg(n);if(i&&a&&o){let e=Sg(o);if(!a.graphql&&e){let t=yg(e);a[`graphql.document`]=e.query,a[`graphql.operation`]=t}}}})}function yg(e){let{query:t,operationName:n}=e,{operationName:r=n,operationType:i}=xg(t);return r?`${i} ${r}`:`${i}`}function bg(e){let t=`xhr`in e,n;if(t){let t=e.xhr[mm];n=t&&ym(t.body)[0]}else n=ym(bm(e.input))[0];return n}function xg(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}}function Sg(e){let t;try{let n=JSON.parse(e);n.query&&(t=n)}finally{return t}}var Cg=R(gg),q=t,wg=`sentryReplaySession`,Tg=`replay_event`,Eg=`Unable to send Replay`,Dg=3e5,Og=9e5,kg=5e3,Ag=5500,jg=6e4,Mg=5e3,Ng=3,Pg=15e4,Fg=5e3,Ig=3e3,Lg=300,Rg=2e7,zg=4999,Bg=15e3,Vg=36e5,Hg=Object.defineProperty,Ug=(e,t,n)=>t in e?Hg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Wg=(e,t,n)=>Ug(e,typeof t==`symbol`?t:t+``,n),J=(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))(J||{});function Gg(e){return e.nodeType===e.ELEMENT_NODE}function Kg(e){return e?.host?.shadowRoot===e}function qg(e){return Object.prototype.toString.call(e)===`[object ShadowRoot]`}function Jg(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 Yg(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 Xg(e){try{let t=e.rules||e.cssRules;return t?Jg(Array.from(t,Qg).join(``)):null}catch{return null}}function Zg(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 Qg(e){let t;if(e_(e))try{t=Xg(e.styleSheet)||Yg(e)}catch{}else if(t_(e)){let t=e.cssText,n=e.selectorText.includes(`:`),r=typeof e.style.all==`string`&&e.style.all;if(r&&(t=Zg(e)),n&&(t=$g(t)),n||r)return t}return t||e.cssText}function $g(e){return e.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,`$1\\$2`)}function e_(e){return`styleSheet`in e}function t_(e){return`selectorText`in e}var n_=class{constructor(){Wg(this,`idNodeMap`,new Map),Wg(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 r_(){return new n_}function i_({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 a_({isMasked:e,element:t,value:n,maskInputFn:r}){let i=n||``;return e?(r&&(i=r(i,t)),`*`.repeat(i.length)):i}function o_(e){return e.toLowerCase()}function s_(e){return e.toUpperCase()}var c_=`__rrweb_original__`;function l_(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=c_ in i?i[c_]:i;
473if(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 u_(e){let t=e.type;return e.hasAttribute(`data-rr-is-password`)?`password`:t?o_(t):null}function d_(e,t,n){return t===`INPUT`&&(n===`radio`||n===`checkbox`)?e.getAttribute(`value`)||``:e.value}function f_(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 p_={};function m_(e){let t=p_[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 p_[e]=r.bind(window)}function h_(...e){return m_(`setTimeout`)(...e)}function g_(...e){return m_(`clearTimeout`)(...e)}function __(e){try{return e.contentDocument}catch{}}var v_=1,y_=RegExp(`[^a-z0-9-_:]`),b_=-2;function x_(){return v_++}function S_(e){if(e instanceof HTMLFormElement)return`form`;let t=o_(e.tagName);return y_.test(t)?`div`:t}function C_(e){let t=``;return t=e.indexOf(`//`)>-1?e.split(`/`).slice(0,3).join(`/`):e.split(`/`)[0],t=t.split(`?`)[0],t}var w_,T_,E_=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,D_=/^(?:[a-z+]+:)?\/\//i,O_=/^www\..*/i,k_=/^(data:)([^,]*),(.*)/i;function A_(e,t){return(e||``).replace(E_,(e,n,r,i,a,o)=>{let s=r||a||o,c=n||i||``;if(!s)return e;if(D_.test(s)||O_.test(s)||k_.test(s))return`url(${c}${s}${c})`;if(s[0]===`/`)return`url(${c}${C_(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 j_=/^[^ \t\n\r\u000c]+/,M_=/^[, \t\n\r\u000c]+/;function N_(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(M_),!(n>=t.length);){let a=r(j_);if(a.slice(-1)===`,`)a=F_(e,a.substring(0,a.length-1)),i.push(a);else{let r=``;a=F_(e,a);let o=!1;for(;;){let e=t.charAt(n);if(e===``){i.push((a+r).trim());break}else if(o)e===`)`&&(o=!1);else if(e===`,`){n+=1,i.push((a+r).trim());break}else e===`(`&&(o=!0);r+=e,n+=1}}}return i.join(`, `)}var P_=new WeakMap;function F_(e,t){return!t||t.trim()===``?t:L_(e,t)}function I_(e){return!!(e.tagName===`svg`||e.ownerSVGElement)}function L_(e,t){let n=P_.get(e);if(n||(n=e.createElement(`a`),P_.set(e,n)),!t)t=``;else if(t.startsWith(`blob:`)||t.startsWith(`data:`))return t;return n.setAttribute(`href`,t),n.href}function R_(e,t,n,r,i,a){return r&&(n===`src`||n===`href`&&!(t===`use`&&r[0]===`#`)||n===`xlink:href`&&r[0]!==`#`||n===`background`&&(t===`table`||t===`td`||t===`th`)?F_(e,r):n===`srcset`?N_(e,r):n===`style`?A_(r,L_(e)):t===`object`&&n===`data`?F_(e,r):typeof a==`function`?a(n,r,i):r)}function z_(e,t,n){return(e===`video`||e===`audio`)&&t===`autoplay`}function B_(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 V_(e,t){for(let n=e.classList.length;n--;){let r=e.classList[n];if(t.test(r))return!0}return!1}function H_(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:H_(e.parentNode,t,n,r+1)}function U_(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(V_(r,e))return!0}return!!(t&&r.matches(t))}catch{return!1}}}function W_(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=H_(o,U_(r,i)),c<0)return!0;s=H_(o,U_(t,n),c>=0?c:1/0)}else{if(s=H_(o,U_(t,n)),s<0)return!1;c=H_(o,U_(r,i),s>=0?s:1/0)}return s>=0?c>=0?s<=c:!0:c>=0?!1:!!a}catch{}return!!a}function G_(e,t,n){let r=e.contentWindow;if(!r)return;let i=!1,a;try{a=r.document.readyState}catch{return}if(a!==`complete`){let r=h_(()=>{i||=(t(),!0)},n);e.addEventListener(`load`,()=>{g_(r),i=!0,t()});return}let o=`about:blank`;if(r.location.href!==o||e.src===o||e.src===``)return h_(t,0),e.addEventListener(`load`,t);e.addEventListener(`load`,t)}function K_(e,t,n){let r=!1,i;try{i=e.sheet}catch{return}if(i)return;let a=h_(()=>{r||=(t(),!0)},n);e.addEventListener(`load`,()=>{g_(a),r=!0,t()})}function q_(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={}
473,maskTextFn:h,maskInputFn:g,dataURLOptions:_={},inlineImages:v,recordCanvas:y,keepIframeSrcFn:b,newlyAddedElement:x=!1}=t,S=J_(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode===`CSS1Compat`?{type:J.Document,childNodes:[]}:{type:J.Document,childNodes:[],compatMode:e.compatMode};case e.DOCUMENT_TYPE_NODE:return{type:J.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:S};case e.ELEMENT_NODE:return X_(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:S,maskTextClass:l,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:f});case e.TEXT_NODE:return Y_(e,{doc:n,maskAllText:s,maskTextClass:l,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:f,maskTextFn:h,maskInputOptions:m,maskInputFn:g,rootId:S});case e.CDATA_SECTION_NODE:return{type:J.CDATA,textContent:``,rootId:S};case e.COMMENT_NODE:return{type:J.Comment,textContent:e.textContent||``,rootId:S};default:return!1}}function J_(e,t){if(!t.hasNode(e))return;let n=t.getId(e);return n===1?void 0:n}function Y_(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`?!0:void 0,m=d===`SCRIPT`?!0:void 0,h=d===`TEXTAREA`?!0:void 0;if(p&&f){try{e.nextSibling||e.previousSibling||e.parentNode.sheet?.cssRules&&(f=Xg(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}f=A_(f,L_(t.doc))}m&&(f=`SCRIPT_PLACEHOLDER`);let g=W_(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=a_({isMasked:W_(e,r,a,i,o,i_({type:null,tagName:d,maskInputOptions:c})),element:e,value:f,maskInputFn:l})),{type:J.Text,textContent:f||``,isStyle:p,rootId:u}}function X_(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}=t,b=B_(e,r,i,a),x=S_(e),S={},C=e.attributes.length;for(let t=0;t<C;t++){let r=e.attributes[t];r.name&&!z_(x,r.name,r.value)&&(S[r.name]=R_(n,x,o_(r.name),r.value,e,c))}if(x===`link`&&o){let t=Array.from(n.styleSheets).find(t=>t.href===e.href),r=null;t&&(r=Xg(t)),r&&(S.rel=null,S.href=null,S.crossorigin=null,S._cssText=A_(r,t.href))}if(x===`style`&&e.sheet&&!(e.innerText||e.textContent||``).trim().length){let t=Xg(e.sheet);t&&(S._cssText=A_(t,L_(n)))}if(x===`input`||x===`textarea`||x===`select`||x===`option`){let t=e,n=u_(t),r=d_(t,s_(x),n),i=t.checked;if(n!==`submit`&&n!==`button`&&r){let e=W_(t,g,v,_,y,i_({type:n,tagName:s_(x),maskInputOptions:s}));S.value=a_({isMasked:e,element:t,value:r,maskInputFn:l})}i&&(S.checked=i)}if(x===`option`&&(e.selected&&!s.select?S.selected=!0:delete S.selected),x===`canvas`&&f){if(e.__context===`2d`)l_(e)||(S.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)&&(S.rr_dataURL=t)}}if(x===`img`&&d){w_||(w_=n.createElement(`canvas`),T_=w_.getContext(`2d`));let t=e,r=t.currentSrc||t.getAttribute(`src`)||`<unknown-src>`,i=t.crossOrigin,a=()=>{t.removeEventListener(`load`,a);try{w_.width=t.naturalWidth,w_.height=t.naturalHeight,T_.drawImage(t,0,0),S.rr_dataURL=w_.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}else console.warn(`Cannot inline img src=${r}! Error: ${e}`)}t.crossOrigin===`anonymous`&&(i?S.crossOrigin=i:t.removeAttribute(`crossorigin`))};t.complete&&t.naturalWidth!==0?a():t.addEventListener(`load`,a)}if((x===`audio`||x===`video`)&&(S.rr_mediaState=e.paused?`paused`:`played`,S.rr_mediaCurrentTime=e.currentTime),m||(e.scrollLeft&&(S.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(S.rr_scrollTop=e.scrollTop)),b){let{width:t,height:n}=e.getBoundingClientRect();S={class:S.class,rr_width:`${t}px`,rr_height:`${n}px`}}
473x===`iframe`&&!p(S.src)&&(!b&&!__(e)&&(S.rr_src=S.src),delete S.src);let w;try{customElements.get(x)&&(w=!0)}catch{}return{type:J.Element,tagName:x,attributes:S,childNodes:[],isSVG:I_(e)||void 0,needBlock:b,rootId:h,isCustom:w}}function Y(e){return e==null?``:e.toLowerCase()}function Z_(e,t){return!!(t.comment&&e.type===J.Comment||e.type===J.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`&&f_(e.attributes.href)===`js`)||t.headFavicon&&(e.tagName===`link`&&e.attributes.rel===`shortcut icon`||e.tagName===`meta`&&(Y(e.attributes.name).match(/^msapplication-tile(image|color)$/)||Y(e.attributes.name)===`application-name`||Y(e.attributes.rel)===`icon`||Y(e.attributes.rel)===`apple-touch-icon`||Y(e.attributes.rel)===`shortcut icon`))||e.tagName===`meta`&&(t.headMetaDescKeywords&&Y(e.attributes.name).match(/^description|keywords$/)||t.headMetaSocial&&(Y(e.attributes.property).match(/^(og|twitter|fb):/)||Y(e.attributes.name).match(/^(og|twitter):/)||Y(e.attributes.name)===`pinterest`)||t.headMetaRobots&&(Y(e.attributes.name)===`robots`||Y(e.attributes.name)===`googlebot`||Y(e.attributes.name)===`bingbot`)||t.headMetaHttpEquiv&&e.attributes[`http-equiv`]!==void 0||t.headMetaAuthorship&&(Y(e.attributes.name)===`author`||Y(e.attributes.name)===`generator`||Y(e.attributes.name)===`framework`||Y(e.attributes.name)===`publisher`||Y(e.attributes.name)===`progid`||Y(e.attributes.property).match(/^article:/)||Y(e.attributes.property).match(/^product:/))||t.headMetaVerification&&(Y(e.attributes.name)===`google-site-verification`||Y(e.attributes.name)===`yandex-verification`||Y(e.attributes.name)===`csrf-token`||Y(e.attributes.name)===`p:domain_verify`||Y(e.attributes.name)===`verify-v1`||Y(e.attributes.name)===`verification`||Y(e.attributes.name)===`shopify-checkout-api-token`))))}function Q_(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}=t,{preserveWhiteSpace:D=!0}=t,O=q_(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});if(!O)return console.warn(e,`not serialized`),null;let re;re=r.hasNode(e)?r.getId(e):Z_(O,v)||!D&&O.type===J.Text&&!O.isStyle&&!O.textContent.replace(/^\s+|\s+$/gm,``).length?b_:x_();let k=Object.assign(O,{id:re});if(r.add(e,k),re===b_)return null;S&&S(e);let ie=!f;if(k.type===J.Element){ie&&=!k.needBlock;let t=e.shadowRoot;t&&qg(t)&&(k.isShadowHost=!0)}if((k.type===J.Document||k.type===J.Element)&&ie){v.headWhitespace&&k.type===J.Element&&k.tagName===`head`&&(D=!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:D,onSerialize:S,onIframeLoad:C,iframeLoadTimeout:w,onBlockedImageLoad:T,onStylesheetLoad:E,stylesheetLoadTimeout:ee,keepIframeSrcFn:te},ne=e.childNodes?Array.from(e.childNodes):[];for(let e of ne){let n=Q_(e,t);n&&k.childNodes.push(n)}if(Gg(e)&&e.shadowRoot)for(let n of Array.from(e.shadowRoot.childNodes)){let r=Q_(n,t);r&&(qg(e.shadowRoot)&&(r.isShadow=!0),k.childNodes.push(r))}}if(e.parentNode&&Kg(e.parentNode)&&qg(e.parentNode)&&(k.isShadow=!0),k.type===J.Element&&k.tagName===`iframe`&&!k.needBlock&&G_(e,()=>{let t=__(e);
473if(t&&C){let n=Q_(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:D,onSerialize:S,onIframeLoad:C,iframeLoadTimeout:w,onStylesheetLoad:E,stylesheetLoadTimeout:ee,keepIframeSrcFn:te});n&&C(e,n)}},w),k.type===J.Element&&k.tagName===`img`&&!e.complete&&k.needBlock){let t=e,n=()=>{if(t.isConnected&&!t.complete&&T)try{let e=t.getBoundingClientRect();e.width>0&&e.height>0&&T(t,k,e)}catch{}t.removeEventListener(`load`,n)};t.isConnected&&t.addEventListener(`load`,n)}return k.type===J.Element&&k.tagName===`link`&&typeof k.attributes.rel==`string`&&(k.attributes.rel===`stylesheet`||k.attributes.rel===`preload`&&typeof k.attributes.href==`string`&&f_(k.attributes.href)===`css`)&&K_(e,()=>{if(E){let t=Q_(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:D,onSerialize:S,onIframeLoad:C,iframeLoadTimeout:w,onStylesheetLoad:E,stylesheetLoadTimeout:ee,keepIframeSrcFn:te});t&&E(e,t)}},ee),k.type===J.Element&&delete k.needBlock,k}function $_(e,t){let{mirror:n=new n_,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}=t||{};return Q_(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})}function ev(e,t,n=document){let r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}var tv=`Please stop import mirror directly. Instead of that,\r
474now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
475or you can use record.mirror to access the mirror instance during recording.`,nv={map:{},getId(){return console.error(tv),-1},getNode(){return console.error(tv),null},removeNodeFromMap(){console.error(tv)},has(){return console.error(tv),!1},reset(){console.error(tv)}};typeof window<`u`&&window.Proxy&&window.Reflect&&(nv=new Proxy(nv,{get(e,t,n){return t===`map`&&console.error(tv),Reflect.get(e,t,n)}}));function rv(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&&=(kv(r),null),i=o,e.apply(c,a)):!r&&n.trailing!==!1&&(r=Ov(()=>{i=n.leading===!1?0:Date.now(),r=null,e.apply(c,a)},s))}}function iv(e,t,n,r,i=window){let a=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,r?n:{set(e){Ov(()=>{n.set.call(this,e)},0),a&&a.set&&a.set.call(this,e)}}),()=>iv(e,t,a||{},!0)}function av(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 ov=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(ov=()=>new Date().getTime());function sv(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 cv(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function lv(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function uv(e){if(!e)return null;
475try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function dv(e,t,n,r,i){if(!e)return!1;let a=uv(e);if(!a)return!1;let o=U_(t,n);if(!i){let e=r&&a.matches(r);return o(a)&&!e}let s=H_(a,o),c=-1;return s<0?!1:(r&&(c=H_(a,U_(null,r))),s>-1&&c<0?!0:s<c)}function fv(e,t){return t.getId(e)!==-1}function pv(e,t){return t.getId(e)===b_}function mv(e,t){if(Kg(e))return!1;let n=t.getId(e);return t.has(n)?e.parentNode&&e.parentNode.nodeType===e.DOCUMENT_NODE?!1:e.parentNode?mv(e.parentNode,t):!0:!0}function hv(e){return!!e.changedTouches}function gv(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 _v(e,t){return!!(e.nodeName===`IFRAME`&&t.getMeta(e))}function vv(e,t){return!!(e.nodeName===`LINK`&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute(`rel`)===`stylesheet`&&t.getMeta(e))}function yv(e){return!!e?.shadowRoot}var bv=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 xv(e){let t=null;return e.getRootNode?.()?.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function Sv(e){let t=e,n;for(;n=xv(t);)t=n;return t}function Cv(e){let t=e.ownerDocument;if(!t)return!1;let n=Sv(e);return t.contains(n)}function wv(e){let t=e.ownerDocument;return t?t.contains(e)||Cv(e):!1}var Tv={};function Ev(e){let t=Tv[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 Tv[e]=r.bind(window)}function Dv(...e){return Ev(`requestAnimationFrame`)(...e)}function Ov(...e){return Ev(`setTimeout`)(...e)}function kv(...e){return Ev(`clearTimeout`)(...e)}var X=(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))(X||{}),Z=(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))(Z||{}),Av=(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))(Av||{}),jv=(e=>(e[e.Mouse=0]=`Mouse`,e[e.Pen=1]=`Pen`,e[e.Touch=2]=`Touch`,e))(jv||{}),Mv=(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))(Mv||{});function Nv(e){try{return e.contentDocument}catch{}}function Pv(e){return`__ln`in e}var Fv=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&&Pv(e.previousSibling)){let n=e.previousSibling.__ln.next;t.next=n,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,n&&
475(n.previous=t)}else if(e.nextSibling&&Pv(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--)}},Iv=(e,t)=>`${e}@${t}`,Lv=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 Fv,r=e=>{let t=e,n=b_;for(;n===b_;)t&&=t.nextSibling,n=t&&this.mirror.getId(t);return n},i=i=>{if(!i.parentNode||!wv(i))return;let a=Kg(i.parentNode)?this.mirror.getId(xv(i)):this.mirror.getId(i.parentNode),o=r(i);if(a===-1||o===-1)return n.addNode(i);let s=Q_(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=>{_v(e,this.mirror)&&!dv(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(e),vv(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),yv(i)&&this.shadowDomManager.addShadowRoot(i.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{dv(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(this.iframeManager.attachIframe(e,t),e.contentWindow&&this.canvasManager.addWindow(e.contentWindow),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`}}}]})}});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)zv(this.removes,e,this.mirror)&&!this.movedSet.has(e.parentNode)||i(e);for(let e of this.addedSet)!Vv(this.droppedSet,e)&&!zv(this.removes,e,this.mirror)||Vv(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}else{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=>({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(!pv(e.target,this.mirror))switch(e.type){case`characterData`:{let t=e.target.textContent;!dv(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&t!==e.oldValue&&this.texts.push({value:W_(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t,uv(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=u_(t),i=t.tagName;r=d_(t,i,n);let a=i_({maskInputOptions:this.maskInputOptions,tagName:i,type:n});r=a_({isMasked:W_(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,a),element:t,value:r,maskInputFn:this.maskInputFn})}if(dv(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(!Nv(t))n=`rr_src`;else return;if(i||(i={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}}
475,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`),!z_(t.tagName,n)&&(i.attributes[n]=R_(this.doc,o_(t.tagName),o_(n),r,t,this.maskAttributeFn),n===`style`)){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}let n=this.unattachedDoc.createElement(`span`);e.oldValue&&n.setAttribute(`style`,e.oldValue);for(let e of Array.from(t.style)){let r=t.style.getPropertyValue(e),a=t.style.getPropertyPriority(e);r!==n.style.getPropertyValue(e)||a!==n.style.getPropertyPriority(e)?a===``?i.styleDiff[e]=r:i.styleDiff[e]=[r,a]:i._unchangedStyles[e]=[r,a]}for(let e of Array.from(n.style))t.style.getPropertyValue(e)===``&&(i.styleDiff[e]=!1)}break}case`childList`:if(dv(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=Kg(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);dv(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||pv(t,this.mirror)||!fv(t,this.mirror)||(this.addedSet.has(t)?(Rv(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&n===-1||mv(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[Iv(n,r)]?Rv(this.movedSet,t):this.removes.push({parentId:r,id:n,isShadow:Kg(e.target)&&qg(e.target)?!0:void 0})),this.mapRemoves.push(t))});break}},this.genAdds=(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!(this.addedSet.has(e)||this.movedSet.has(e))){if(this.mirror.hasNode(e)){if(pv(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[Iv(this.mirror.getId(e),n)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);dv(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(e.childNodes&&e.childNodes.forEach(e=>this.genAdds(e)),yv(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`.split(`.`).forEach(t=>{this[t]=e[t]})}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 Rv(e,t){e.delete(t),t.childNodes?.forEach(t=>Rv(e,t))}function zv(e,t,n){return e.length===0?!1:Bv(e,t,n)}function Bv(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 Vv(e,t){return e.size===0?!1:Hv(e,t)}function Hv(e,t){let{parentNode:n}=t;return n?e.has(n)?!0:Hv(e,n):!1}var Uv;function Wv(e){Uv=e}function Gv(){Uv=void 0}var Q=e=>Uv?(...t)=>{try{return e(...t)}catch(e){if(Uv&&Uv(e)===!0)return()=>{};throw e}}:e,Kv=[];function qv(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 Jv(e,t){let n=new Lv;Kv.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(Q(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 Yv({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=rv(Q(t=>{let n=Date.now()-s;e(o.map(e=>(e.timeOffset-=n,e)),t),o=[],s=null}),a),l=Q(rv(Q(e=>{let t=qv(e),{clientX:n,clientY:i}=hv(e)?e.changedTouches[0]:e;s||=ov(),o.push({x:n,y:i,id:r.getId(t),timeOffset:ov()-s}
475),c(typeof DragEvent<`u`&&e instanceof DragEvent?Z.Drag:e instanceof MouseEvent?Z.MouseMove:Z.TouchMove)}),i,{trailing:!1})),u=[ev(`mousemove`,l,n),ev(`touchmove`,l,n),ev(`drag`,l,n)];return Q(()=>{u.forEach(e=>e())})}function Xv({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=qv(o);if(dv(s,r,i,a,!0))return;let c=null,u=t;if(`pointerType`in o){switch(o.pointerType){case`mouse`:c=jv.Mouse;break;case`touch`:c=jv.Touch;break;case`pen`:c=jv.Pen;break}c===jv.Touch?Av[t]===Av.MouseDown?u=`TouchStart`:Av[t]===Av.MouseUp&&(u=`TouchEnd`):jv.Pen}else hv(o)&&(c=jv.Touch);c===null?Av[t]===Av.Click&&(c=l,l=null):(l=c,(u.startsWith(`Touch`)&&c===jv.Touch||u.startsWith(`Mouse`)&&c===jv.Mouse)&&(c=null));let d=hv(o)?o.changedTouches[0]:o;if(!d)return;let f=n.getId(s),{clientX:p,clientY:m}=d;Q(e)({type:Av[u],id:f,x:p,y:m,...c!==null&&{pointerType:c}})};return Object.keys(Av).filter(e=>Number.isNaN(Number(e))&&!e.endsWith(`_Departed`)&&s[e]!==!1).forEach(e=>{let n=o_(e),r=u(e);if(window.PointerEvent)switch(Av[e]){case Av.MouseDown:case Av.MouseUp:n=n.replace(`mouse`,`pointer`);break;case Av.TouchStart:case Av.TouchEnd:return}c.push(ev(n,r,t))}),Q(()=>{c.forEach(e=>e())})}function Zv({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:a,sampling:o}){return ev(`scroll`,Q(rv(Q(o=>{let s=qv(o);if(!s||dv(s,r,i,a,!0))return;let c=n.getId(s);if(s===t&&t.defaultView){let n=sv(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 Qv({viewportResizeCb:e},{win:t}){let n=-1,r=-1;return ev(`resize`,Q(rv(Q(()=>{let t=cv(),i=lv();(n!==t||r!==i)&&(e({width:Number(i),height:Number(t)}),n=t,r=i)}),200)),t)}var $v=[`INPUT`,`TEXTAREA`,`SELECT`],ey=new WeakMap;function ty({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=qv(e),u=e.isTrusted,g=n&&s_(n.tagName);if(g===`OPTION`&&(n=n.parentElement),!n||!g||$v.indexOf(g)<0||dv(n,r,i,a,!0))return;let v=n;if(v.classList.contains(o)||s&&v.matches(s))return;let y=u_(n),b=d_(v,g,y),x=!1,S=i_({maskInputOptions:c,tagName:g,type:y}),C=W_(n,f,m,p,h,S);(y===`radio`||y===`checkbox`)&&(x=n.checked),b=a_({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=a_({isMasked:C,element:e,value:d_(e,g,y),maskInputFn:l});_(e,d?{text:t,isChecked:!x,userTriggered:!1}:{text:t,isChecked:!x})}})}function _(t,r){let i=ey.get(t);if(!i||i.text!==r.text||i.isChecked!==r.isChecked){ey.set(t,r);let i=n.getId(t);Q(e)({...r,id:i})}}let v=(u.input===`last`?[`change`]:[`input`,`change`]).map(e=>ev(e,Q(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=>iv(e[0],e[1],{set(){Q(g)({target:this,isTrusted:!1})}},!1,y))),Q(()=>{v.forEach(e=>e())})}function ny(e){let t=[];function n(e,t){if(fy(`CSSGroupingRule`)&&e.parentRule instanceof CSSGroupingRule||fy(`CSSMediaRule`)&&e.parentRule instanceof CSSMediaRule||fy(`CSSSupportsRule`)&&e.parentRule instanceof CSSSupportsRule||fy(`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 ry(e,t,n){let r,i;return e?(e.ownerNode?r=t.getId(e.ownerNode):i=n.getId(e),{styleId:i,id:r}):{}}function iy({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:Q((r,i,a)=>{let[o,s]=a,{id:c,styleId:l}=ry(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:Q((r,i,a)=>{let[o]=a,{id:s,styleId:c}=ry(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;
475r.CSSStyleSheet.prototype.replace&&(o=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(o,{apply:Q((r,i,a)=>{let[o]=a,{id:s,styleId:c}=ry(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:Q((r,i,a)=>{let[o]=a,{id:s,styleId:c}=ry(i,t,n.styleMirror);return(s&&s!==-1||c&&c!==-1)&&e({id:s,styleId:c,replaceSync:o}),r.apply(i,a)})}));let c={};py(`CSSGroupingRule`)?c.CSSGroupingRule=r.CSSGroupingRule:(py(`CSSMediaRule`)&&(c.CSSMediaRule=r.CSSMediaRule),py(`CSSConditionRule`)&&(c.CSSConditionRule=r.CSSConditionRule),py(`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:Q((r,i,a)=>{let[o,s]=a,{id:c,styleId:l}=ry(i.parentStyleSheet,t,n.styleMirror);return(c&&c!==-1||l&&l!==-1)&&e({id:c,styleId:l,adds:[{rule:o,index:[...ny(i),s||0]}]}),r.apply(i,a)})}),i.prototype.deleteRule=new Proxy(l[r].deleteRule,{apply:Q((r,i,a)=>{let[o]=a,{id:s,styleId:c}=ry(i.parentStyleSheet,t,n.styleMirror);return(s&&s!==-1||c&&c!==-1)&&e({id:s,styleId:c,removes:[{index:[...ny(i),o]}]}),r.apply(i,a)})})}),Q(()=>{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 ay({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}}),Q(()=>{Object.defineProperty(n,`adoptedStyleSheets`,{configurable:a.configurable,enumerable:a.enumerable,get:a.get,set:a.set})}))}function oy({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:i}){let a=i.CSSStyleDeclaration.prototype.setProperty;i.CSSStyleDeclaration.prototype.setProperty=new Proxy(a,{apply:Q((i,o,s)=>{let[c,l,u]=s;if(n.has(c))return a.apply(o,[c,l,u]);let{id:d,styleId:f}=ry(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:ny(o.parentRule)}),i.apply(o,s)})});let o=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=new Proxy(o,{apply:Q((i,a,s)=>{let[c]=s;if(n.has(c))return o.apply(a,[c]);let{id:l,styleId:u}=ry(a.parentRule?.parentStyleSheet,t,r.styleMirror);return(l&&l!==-1||u&&u!==-1)&&e({id:l,styleId:u,remove:{property:c},index:ny(a.parentRule)}),i.apply(a,s)})}),Q(()=>{i.CSSStyleDeclaration.prototype.setProperty=a,i.CSSStyleDeclaration.prototype.removeProperty=o})}function sy({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:i,sampling:a,doc:o}){let s=Q(o=>rv(Q(a=>{let s=qv(a);if(!s||dv(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=[ev(`play`,s(Mv.Play),o),ev(`pause`,s(Mv.Pause),o),ev(`seeked`,s(Mv.Seeked),o),ev(`volumechange`,s(Mv.VolumeChange),o),ev(`ratechange`,s(Mv.RateChange),o)];return Q(()=>{c.forEach(e=>e())})}function cy({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=av(t.fonts,`add`,function(t){return function(n){return Ov(Q(()=>{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),Q(()=>
475{r.forEach(e=>e())})}function ly(e){let{doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:a,selectionCb:o}=e,s=!0,c=Q(()=>{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);dv(o,r,i,a,!0)||dv(l,r,i,a,!0)||c.push({start:n.getId(o),startOffset:s,end:n.getId(l),endOffset:u})}o({ranges:c})});return c(),ev(`selectionchange`,c)}function uy({doc:e,customElementCb:t}){let n=e.defaultView;return!n||!n.customElements?()=>{}:av(n.customElements,`define`,function(e){return function(n,r,i){try{t({define:{name:n}})}catch{}return e.apply(this,[n,r,i])}})}function dy(e,t={}){let n=e.doc.defaultView;if(!n)return()=>{};let r;e.recordDOM&&(r=Jv(e,e.doc));let i=Yv(e),a=Xv(e),o=Zv(e),s=Qv(e,{win:n}),c=ty(e),l=sy(e),u=()=>{},d=()=>{},f=()=>{},p=()=>{};e.recordDOM&&(u=iy(e,{win:n}),d=ay(e,e.doc),f=oy(e,{win:n}),e.collectFonts&&(p=cy(e)));let m=ly(e),h=uy(e),g=[];for(let t of e.plugins)g.push(t.observer(t.callback,n,t.options));return Q(()=>{Kv.forEach(e=>e.reset()),r?.disconnect(),i(),a(),o(),s(),c(),l(),u(),d(),f(),p(),m(),h(),g.forEach(e=>e())})}function fy(e){return window[e]!==void 0}function py(e){return!!(window[e]!==void 0&&window[e].prototype&&`insertRule`in window[e].prototype&&`deleteRule`in window[e].prototype)}for(var my=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))}
475getRemoteId(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}},hy=class{constructor(){this.crossOriginIframeMirror=new my(x_),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}},gy=class{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}},_y=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,vy=typeof Uint8Array>`u`?[]:new Uint8Array(256),yy=0;yy<_y.length;yy++)vy[_y.charCodeAt(yy)]=yy;var by=class{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}},xy=class{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new bv,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:Qg(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){}},Sy=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,Dv(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}},$,Cy;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 wy=r_();function Ty(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:O=!1,inlineImages:re=!1,plugins:k,keepIframeSrcFn:ie=()=>!1,ignoreCSSAttributes:ae=new Set([]),errorHandler:oe,onMutation:se,getCanvasManager:ce}=e;Wv(oe);let le=te?window.parent===window:!0,ue=!1;if(!le)try{window.parent.document&&(ue=!1)}catch{ue=!0}if(le&&!t)throw Error(`emit function is required`);if(!le&&!ue)return()=>{};T!==void 0&&C.mousemove===void 0&&(C.mousemove=T),wy.reset();let de=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,fe=_===!0||_===`all`?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:_===`all`,headMetaDescKeywords:_===`all`}:_||{};gv();let pe,A=0,me=e=>{for(let t of k||[])t.eventProcessor&&(e=t.eventProcessor(e));return S&&!ue&&(e=S(e)),e};$=(e,i)=>{let a=e;if(a.timestamp=ov(),Kv[0]?.isFrozen()&&a.type!==X.FullSnapshot&&!(a.type===X.IncrementalSnapshot&&a.data.source===Z.Mutation)&&Kv.forEach(e
475=>e.unfreeze()),le)t?.(me(a),i);else if(ue){let e={type:`rrweb`,event:me(a),origin:window.location.origin,isCheckout:i};window.parent.postMessage(e,`*`)}if(a.type===X.FullSnapshot)pe=a,A=0;else if(a.type===X.IncrementalSnapshot){if(a.data.source===Z.Mutation&&a.data.isAttachIframe)return;A++;let e=r&&A>=r,t=n&&pe&&a.timestamp-pe.timestamp>n;(e||t)&&Ce(!0)}};let he=e=>{$({type:X.IncrementalSnapshot,data:{source:Z.Mutation,...e}})},ge=e=>$({type:X.IncrementalSnapshot,data:{source:Z.Scroll,...e}}),_e=e=>$({type:X.IncrementalSnapshot,data:{source:Z.CanvasMutation,...e}}),ve=new xy({mutationCb:he,adoptedStyleSheetCb:e=>$({type:X.IncrementalSnapshot,data:{source:Z.AdoptedStyleSheet,...e}})}),ye=new hy;for(let e of k||[])e.getMirror&&e.getMirror({nodeMirror:wy,crossOriginIframeMirror:ye.crossOriginIframeMirror,crossOriginIframeStyleMirror:ye.crossOriginIframeStyleMirror});let be=new Sy,xe=Dy(ce,{mirror:wy,win:window,mutationCb:e=>$({type:X.IncrementalSnapshot,data:{source:Z.CanvasMutation,...e}}),recordCanvas:ee,blockClass:i,blockSelector:a,unblockSelector:o,maxCanvasSize:x,sampling:C.canvas,dataURLOptions:w,errorHandler:oe}),Se=new gy,Ce=(e=!1)=>{if(!E)return;$({type:X.Meta,data:{href:window.location.href,width:lv(),height:cv()}},e),ve.reset(),Se.init(),Kv.forEach(e=>e.lock());let t=$_(document,{mirror:wy,blockClass:i,blockSelector:a,unblockSelector:o,maskAllText:l,maskTextClass:u,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,inlineStylesheet:m,maskAllInputs:de,maskAttributeFn:v,maskInputFn:y,maskTextFn:b,slimDOM:fe,dataURLOptions:w,recordCanvas:ee,inlineImages:re,onSerialize:e=>{_v(e,wy)&&ye.addIframe(e),vv(e,wy)&&ve.trackLinkElement(e),yv(e)&&Se.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{ye.attachIframe(e,t),e.contentWindow&&xe.addWindow(e.contentWindow),Se.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{ve.attachLinkElement(e,t)},onBlockedImageLoad:(e,t,{width:n,height:r})=>{he({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:{style:{width:`${n}px`,height:`${r}px`}}}]})},keepIframeSrcFn:ie});if(!t)return console.warn(`Failed to snapshot the document`);$({type:X.FullSnapshot,data:{node:t,initialOffset:sv(window)}}),Kv.forEach(e=>e.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&ve.adoptStyleSheets(document.adoptedStyleSheets,wy.getId(document))};Cy=Ce;try{let e=[],t=e=>Q(dy)({onMutation:se,mutationCb:he,mousemoveCb:(e,t)=>$({type:X.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>$({type:X.IncrementalSnapshot,data:{source:Z.MouseInteraction,...e}}),scrollCb:ge,viewportResizeCb:e=>$({type:X.IncrementalSnapshot,data:{source:Z.ViewportResize,...e}}),inputCb:e=>$({type:X.IncrementalSnapshot,data:{source:Z.Input,...e}}),mediaInteractionCb:e=>$({type:X.IncrementalSnapshot,data:{source:Z.MediaInteraction,...e}}),styleSheetRuleCb:e=>$({type:X.IncrementalSnapshot,data:{source:Z.StyleSheetRule,...e}}),styleDeclarationCb:e=>$({type:X.IncrementalSnapshot,data:{source:Z.StyleDeclaration,...e}}),canvasMutationCb:_e,fontCb:e=>$({type:X.IncrementalSnapshot,data:{source:Z.Font,...e}}),selectionCb:e=>{$({type:X.IncrementalSnapshot,data:{source:Z.Selection,...e}})},customElementCb:e=>{$({type:X.IncrementalSnapshot,data:{source:Z.CustomElement,...e}})},blockClass:i,ignoreClass:s,ignoreSelector:c,maskAllText:l,maskTextClass:u,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,maskInputOptions:de,inlineStylesheet:m,sampling:C,recordDOM:E,recordCanvas:ee,inlineImages:re,userTriggeredOnInput:D,collectFonts:O,doc:e,maskAttributeFn:v,maskInputFn:y,maskTextFn:b,keepIframeSrcFn:ie,blockSelector:a,unblockSelector:o,slimDOMOptions:fe,dataURLOptions:w,mirror:wy,iframeManager:ye,stylesheetManager:ve,shadowDomManager:Se,processedNodeManager:be,canvasManager:xe,ignoreCSSAttributes:ae,plugins:k?.filter(e=>e.observer)?.map(e=>({observer:e.observer,options:e.options,callback:t=>$({type:X.Plugin,data:{plugin:e.name,payload:t}})}))||[]},{});ye.addLoadListener(n=>{try{e.push(t(n.contentDocument))}catch(e){console.warn(e)}});let n=()=>{Ce(),e.push(t(document))};return document.readyState===`interactive`||document.readyState===`complete`?n():(e.push(ev(`DOMContentLoaded`,()=>{$({type:X.DomContentLoaded,data:{}}),ne===`DOMContentLoaded`&&n()})),e.push(ev(`load`,()=>{$({type:X.Load,data:{}}),ne===`load`&&n()}
475,window))),()=>{e.forEach(e=>e()),be.destroy(),Cy=void 0,Gv()}}catch(e){console.warn(e)}}function Ey(e){if(!Cy)throw Error(`please take full snapshot after start recording`);Cy(e)}Ty.mirror=wy,Ty.takeFullSnapshot=Ey;function Dy(e,t){try{return e?e(t):new by}catch{return console.warn(`Unable to initialize CanvasManager`),new by}}var Oy;(function(e){e[e.NotStarted=0]=`NotStarted`,e[e.Running=1]=`Running`,e[e.Stopped=2]=`Stopped`})(Oy||={});var ky=3,Ay=5;function jy(e){return e>9999999999?e:e*1e3}function My(e){return e>9999999999?e/1e3:e}function Ny(e,t){t.category!==`sentry.transaction`&&([`ui.click`,`ui.input`].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:X.Custom,timestamp:(t.timestamp||0)*1e3,data:{tag:`breadcrumb`,payload:Jn(t,10,1e3)}}),t.category===`console`)))}var Py=`button,a`;function Fy(e){return e.closest(Py)||e}function Iy(e){let t=Ly(e);return!t||!(t instanceof Element)?t:Fy(t)}function Ly(e){return Ry(e)?e.target:e}function Ry(e){return typeof e==`object`&&!!e&&`target`in e}var zy;function By(e){return zy||(zy=[],Vy()),zy.push(e),()=>{let t=zy?zy.indexOf(e):-1;t>-1&&zy.splice(t,1)}}function Vy(){Ie(q,`open`,function(e){return function(...t){if(zy)try{zy.forEach(e=>e())}catch{}return e.apply(q,t)}})}var Hy=new Set([Z.Mutation,Z.StyleSheetRule,Z.StyleDeclaration,Z.AdoptedStyleSheet,Z.CanvasMutation,Z.Selection,Z.MediaInteraction]);function Uy(e,t,n){e.handleClick(t,n)}var Wy=class{constructor(e,t,n=Ny){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=By(()=>{this._lastMutation=Jy()});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(Ky(t,this._ignoreSelector)||!qy(e))return;let n={timestamp:My(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=My(e)}registerScroll(e=Date.now()){this._lastScroll=My(e)}registerClick(e){let t=Fy(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=Jy();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:q.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:q.location.href,route:t.getCurrentRoute(),clickCount:a,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=pm(()=>this._checkClicks(),1e3)}},Gy=[`A`,`BUTTON`,`INPUT`];function Ky(e,t){return!!(!Gy.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))}
475function qy(e){return!!(e.data&&typeof e.data.nodeId==`number`&&e.timestamp)}function Jy(){return Date.now()/1e3}function Yy(e,t){try{if(!Xy(t))return;let{source:n}=t.data;if(Hy.has(n)&&e.registerMutation(t.timestamp),n===Z.Scroll&&e.registerScroll(t.timestamp),Zy(t)){let{type:n,id:r}=t.data,i=Ty.mirror.getNode(r);i instanceof HTMLElement&&n===Av.Click&&e.registerClick(i)}}catch{}}function Xy(e){return e.type===ky}function Zy(e){return e.data.source===Z.MouseInteraction}function Qy(e){return{timestamp:Date.now()/1e3,type:`default`,...e}}var $y=(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))($y||{}),eb=new Set([`id`,`class`,`aria-label`,`role`,`name`,`alt`,`title`,`data-test-id`,`data-testid`,`disabled`,`aria-disabled`,`data-sentry-component`]);function tb(e){let t={};!e[`data-sentry-component`]&&e[`data-sentry-element`]&&(e[`data-sentry-component`]=e[`data-sentry-element`]);for(let n in e)if(eb.has(n)){let r=n;(n===`data-testid`||n===`data-test-id`)&&(r=`testId`),t[r]=e[n]}return t}var nb=e=>t=>{if(!e.isEnabled())return;let n=ib(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&&Uy(e.clickDetector,n,Iy(t.event)),Ny(e,n)};function rb(e,t){let n=Ty.mirror.getId(e),r=n&&Ty.mirror.getNode(n),i=r&&Ty.mirror.getMeta(r),a=i&&ob(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===$y.Text&&e.textContent).filter(Boolean).map(e=>e.trim()).join(``),attributes:tb(a.attributes)}}:{}}}function ib(e){let{target:t,message:n}=ab(e);return Qy({category:`ui.${e.name}`,...rb(t,n)})}function ab(e){let t=e.name===`click`,n,r=null;try{r=t?Iy(e.event):Ly(e.event),n=De(r,{maxStringLength:200})||`<unknown>`}catch{n=`<unknown>`}return{target:r,message:n}}function ob(e){return e.type===$y.Element}function sb(e,t){if(!e.isEnabled())return;e.updateUserActivity();let n=cb(t);n&&Ny(e,n)}function cb(e){let{metaKey:t,shiftKey:n,ctrlKey:r,altKey:i,key:a,target:o}=e;if(!o||lb(o)||!a)return null;let s=t||r||i,c=a.length===1;if(!s&&c)return null;let l=De(o,{maxStringLength:200})||`<unknown>`;return Qy({category:`ui.keyDown`,message:l,data:{...rb(o,l).data,metaKey:t,shiftKey:n,ctrlKey:r,altKey:i,key:a}})}function lb(e){return e.tagName===`INPUT`||e.tagName===`TEXTAREA`||e.isContentEditable}var ub={resource:_b,paint:hb,navigation:gb};function db(e,t){return({metric:n})=>void t.replayPerformanceEntries.push(e(n))}function fb(e){return e.map(pb).filter(Boolean)}function pb(e){let t=ub[e.entryType];return t?t(e):null}function mb(e){return((at()||q.performance.timeOrigin)+e)/1e3}function hb(e){let{duration:t,entryType:n,name:r,startTime:i}=e,a=mb(i);return{type:n,name:r,start:a,end:a+t,data:void 0}}function gb(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:mb(p),end:mb(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 _b(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:mb(a),end:mb(i),name:r,data:{size:l,statusCode:c,decodedBodySize:o,encodedBodySize:s}}}function vb(e){let t=e.entries[e.entries.length-1];return Sb(e,`largest-contentful-paint`,t?.element?[t.element]:void 0)}function yb(e){return e.sources!==void 0}function bb(e){let t=[],n=[];for(let r of e.entries)if(yb(r)){let e=[];for(let t of r.sources)if(t.node){n.push(t.node);let r=Ty.mirror.getId(t.node);r&&e.push(r)}t.push({value:r.value,nodeIds:e.length?e:void 0})}return Sb(e,`cumulative-layout-shift`,n,t)}function xb(e){let t=e.entries[e.entries.length-1];return Sb(e,`interaction-to-next-paint`,t?.target?[t.target]:void 0)}function Sb(e,t,n,r){let i=e.value,a=e.rating,o=mb(i);return{type:`web-vital`,name:t,start:o,end:o,data:{value:i,size:i,rating:a,nodeIds:n?n.map(e=>Ty.mirror.getId(e)):void 0,attributions:r}}}function Cb(e){function t(t){e.performanceEntries.includes(t)||e.performanceEntries.push(t)}function n({entries:e}){e.forEach(t)}let r=[];
475return[`navigation`,`paint`,`resource`].forEach(e=>{r.push(tp(e,n))}),r.push(Qf(db(vb,e)),Zf(db(bb,e)),ep(db(xb,e))),()=>{r.forEach(e=>e())}}var wb=[`log`,`warn`,`error`];function Tb(){let e={exception:()=>void 0,infoTick:()=>void 0,setConfig:e=>{e.captureExceptions,e.traceInternals}};return wb.forEach(t=>{e[t]=()=>void 0}),e}var Eb=Tb(),Db=class extends Error{constructor(){super(`Event buffer exceeded maximum size of ${Rg}.`)}},Ob=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>Rg)throw new Db;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=this.events.map(e=>e.timestamp).sort()[0];return e?jy(e):null}},kb=class{constructor(e){this._worker=e,this._id=0}ensureReady(){return this._ensureReadyPromise||=new Promise((e,t)=>{this._worker.addEventListener(`message`,({data:n})=>{n.success?e():t()},{once:!0}),this._worker.addEventListener(`error`,e=>{t(e)},{once:!0})}),this._ensureReadyPromise}destroy(){this._worker.terminate()}postMessage(e,t){let n=this._getAndIncrementId();return new Promise((r,i)=>{let a=({data:t})=>{let o=t;if(o.method===e&&o.id===n){if(this._worker.removeEventListener(`message`,a),!o.success){i(Error(`Error in compression worker`));return}r(o.response)}};this._worker.addEventListener(`message`,a),this._worker.postMessage({id:n,method:e,arg:t})})}_getAndIncrementId(){return this._id++}},Ab=class{constructor(e){this._worker=new kb(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=jy(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);let n=JSON.stringify(e);return this._totalSize+=n.length,this._totalSize>Rg?Promise.reject(new Db):this._sendEventToWorker(n)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage(`clear`).then(null,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}},jb=class{constructor(e){this._fallback=new Ob,this._compression=new Ab(e),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=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{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{}}};function Mb({useCompression:e,workerUrl:t}){if(e&&window.Worker){let e=Nb(t);if(e)return e}return new Ob}function Nb(e){try{let t=e||Pb();return t?new jb(new Worker(t)):void 0}catch{}}function Pb(){return``}function Fb(){try{return`sessionStorage`in q&&!!q.sessionStorage}catch{return!1}}function Ib(e){Lb(),e.session=void 0}
475function Lb(){if(Fb())try{q.sessionStorage.removeItem(wg)}catch{}}function Rb(e){return e===void 0?!1:Math.random()<e}function zb(e){if(Fb())try{q.sessionStorage.setItem(wg,JSON.stringify(e))}catch{}}function Bb(e){let t=Date.now();return{id:e.id||Ge(),started:e.started||t,lastActivity:e.lastActivity||t,segmentId:e.segmentId||0,sampled:e.sampled,previousSessionId:e.previousSessionId}}function Vb(e,t){return Rb(e)?`session`:t?`buffer`:!1}function Hb({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:r}={}){let i=Bb({sampled:Vb(e,t),previousSessionId:r});return n&&zb(i),i}function Ub(){if(!Fb())return null;try{let e=q.sessionStorage.getItem(wg);return e?Bb(JSON.parse(e)):null}catch{return null}}function Wb(e,t,n=+new Date){return e===null||t===void 0||t<0?!0:t===0?!1:e+t<=n}function Gb(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:r=Date.now()}){return Wb(e.started,t,r)||Wb(e.lastActivity,n,r)}function Kb(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!(!Gb(e,{sessionIdleExpire:t,maxReplayDuration:n})||e.sampled===`buffer`&&e.segmentId===0)}function qb({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:n},r){let i=r.stickySession&&Ub();return i?Kb(i,{sessionIdleExpire:e,maxReplayDuration:t})?Hb(r,{previousSessionId:i.id}):i:Hb(r,{previousSessionId:n})}function Jb(e){return e.type===X.Custom}function Yb(e,t,n){return Qb(e,t)?(Zb(e,t,n),!0):!1}function Xb(e,t,n){return Qb(e,t)?Zb(e,t,n):Promise.resolve(null)}async function Zb(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=$b(t,e.getOptions().beforeAddRecordingEvent);return a?await r.addEvent(a):void 0}catch(t){let n=t&&t instanceof Db,a=n?`addEventSizeExceeded`:`addEvent`;if(n&&i)return r.clear(),r.waitForCheckout=!0,null;e.handleException(t),await e.stop({reason:a});let o=P();o&&o.recordDroppedEvent(`internal_sdk_error`,`replay`)}}function Qb(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;let n=jy(t.timestamp);return!(n+e.timeouts.sessionIdlePause<Date.now()||n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration)}function $b(e,t){try{if(typeof t==`function`&&Jb(e))return t(e)}catch{return null}return e}function ex(e){return!e.type}function tx(e){return e.type===`transaction`}function nx(e){return e.type===`replay_event`}function rx(e){return e.type===`feedback`}function ix(e){return(t,n)=>{if(!e.isEnabled()||!ex(t)&&!tx(t))return;let r=n?.statusCode;if(!(!r||r<200||r>=300)){if(tx(t)){ax(e,t);return}ox(e,t)}}}function ax(e,t){let n=e.getContext();t.contexts?.trace?.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)}function ox(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||!t.tags.replayId)return;let{beforeErrorSampling:r}=e.getOptions();typeof r==`function`&&!r(t)||pm(async()=>{try{await e.sendBufferedReplayOrFlush()}catch(t){e.handleException(t)}})}function sx(e){return t=>{!e.isEnabled()||!ex(t)||cx(e,t)}}function cx(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))&&Ny(e,Qy({category:`replay.hydrate-error`,data:{url:ke()}}))}function lx(e){let t=P();t&&t.on(`beforeAddBreadcrumb`,t=>ux(e,t))}function ux(e,t){if(!e.isEnabled()||!px(t))return;let n=dx(t);n&&Ny(e,n)}function dx(e){return!px(e)||[`fetch`,`xhr`,`sentry.event`,`sentry.transaction`].includes(e.category)||e.category.startsWith(`ui.`)?null:e.category===`console`?fx(e):Qy(e)}function fx(e){let t=e.data?.arguments;if(!Array.isArray(t)||t.length===0)return Qy(e);let n=!1,r=t.map(e=>{if(!e)return e;if(typeof e==`string`)return e.length>Fg?(n=!0,`${e.slice(0,Fg)}…`):e;if(typeof e==`object`)try{let t=Jn(e,7);return JSON.stringify(t).length>Fg?(n=!0,`${JSON.stringify(t,null,2).slice(0,Fg)}…`):t}catch{}return e});return Qy({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:[`CONSOLE_ARG_TRUNCATED`]}}:{}}})}function px(e){return!!e.category}function mx(e,t){return e.type||!e.exception?.values?.length?!1:!!t.originalException?.__rrweb__}function hx(){let e=M().getPropagationContext().dsc;e&&delete e.replay_id;let t=L();if(t){let e=Gn(t);delete e.replay_id}}function gx(e,t){e.triggerUserActivity(),e.addUpdate(()=>t.timestamp?(e.throttledAddEvent({type:X.Custom,timestamp:t.timestamp*1e3,data:{tag:`breadcrumb`,payload:{timestamp:t.timestamp,type:`default`,category:`sentry.feedback`,data:{feedbackId:t.event_id}}}}),!1):!0)}function _x(e,t){return e.recordingMode!==`buffer`||t.message===Eg||!t.exception||t.type?!1:Rb(e.getOptions().errorSampleRate)}function vx(e){return Object.assign((t,n)=>
475!e.isEnabled()||e.isPaused()?t:nx(t)?(delete t.breadcrumbs,t):!ex(t)&&!tx(t)&&!rx(t)?t:e.checkAndHandleExpiredSession()?rx(t)?(e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),gx(e,t),t):mx(t,n)&&!e.getOptions()._experiments.captureExceptions?null:((_x(e,t)||e.recordingMode===`session`)&&(t.tags={...t.tags,replayId:e.getSessionId()}),t):(hx(),t),{id:`Replay`})}function yx(e,t){return t.map(({type:t,start:n,end:r,name:i,data:a})=>{let o=e.throttledAddEvent({type:X.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 bx(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 xx(e){return t=>{if(!e.isEnabled())return;let n=bx(t);n!==null&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate(()=>(yx(e,[n]),!1)))}}function Sx(e,t){return lo(t,P())}function Cx(e,t){e.isEnabled()&&t!==null&&(Sx(e,t.name)||e.addUpdate(()=>(yx(e,[t]),!0)))}function wx(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=vm(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function Tx(e){if(!e)return;let t=parseInt(e,10);return isNaN(t)?void 0:t}function Ex(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 Dx(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 Ox(e){return{headers:{},size:e,_meta:{warnings:[`URL_SKIPPED`]}}}function kx(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}=jx(n);return r.body=i,a?.length&&(r._meta={warnings:a}),r}function Ax(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 jx(e){if(!e||typeof e!=`string`)return{body:e};let t=e.length>Pg,n=Mx(e);if(t){let t=e.slice(0,Pg);return n?{body:t,warnings:[`MAYBE_JSON_TRUNCATED`]}:{body:`${t}…`,warnings:[`TEXT_TRUNCATED`]}}if(n)try{return{body:JSON.parse(e)}}catch{}return{body:e}}function Mx(e){let t=e[0],n=e[e.length-1];return t===`[`&&n===`]`||t===`{`&&n===`}`}function Nx(e,t){return Fe(Px(e),t)}function Px(e,t=q.document.baseURI){if(e.startsWith(`http://`)||e.startsWith(`https://`)||e.startsWith(q.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 Fx(e,t,n){try{let r=Dx(`resource.fetch`,await Lx(e,t,n));Cx(n.replay,r)}catch{}}function Ix(e,t){let{input:n,response:r}=t,i=wx(n?bm(n):void 0),a=r?Tx(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 Lx(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=Nx(o,n.networkDetailAllowUrls)&&!Nx(o,n.networkDetailDenyUrls);return{startTimestamp:i,endTimestamp:a,url:o,method:s,statusCode:c,request:d?Rx(n,t.input,l):Ox(l),response:await zx(d,n,t.response,u)}}function Rx({networkCaptureBodies:e,networkRequestHeaders:t},n,r){let i=n?Ux(n,t):{};if(!e)return kx(i,r,void 0);let[a,o]=ym(bm(n),Eb),s=kx(i,r,a);return o?Ex(s,o):s}async function zx(e,{networkCaptureBodies:t,networkResponseHeaders:n},r,i){if(!e&&i!==void 0)return Ox(i);let a=r?Hx(r.headers,n):{};if(!r||!t&&i!==void 0)return kx(a,i,void 0);let[o,s]=await Vx(r),c=Bx(o,{networkCaptureBodies:t,responseBodySize:i,captureDetails:e,headers:a});return s?Ex(c,s):c}function Bx(e,{networkCaptureBodies:t,responseBodySize:n,captureDetails:r,headers:i}){try{let a=e?.length&&n===void 0?wx(e):n;return r?t?kx(i,a,e):kx(i,a,void 0):Ox(a)}catch{return kx(i,n,void 0)}}async function Vx(e){let t=Gx(e);if(!t)return[void 0,`BODY_PARSE_ERROR`];try{return[await Kx(t)]}catch(e){return e instanceof Error&&e.message.indexOf(`Timeout`)>-1?[void 0,`BODY_PARSE_TIMEOUT`]:[void 0,`BODY_PARSE_ERROR`]}}function Hx(e,t){let n={};return t.forEach(t=>{e.get(t)&&(n[t]=e.get(t))}),n}function Ux(e,t){return e.length===1&&typeof e[0]!=`string`?Wx(e[0],t):e.length===2?Wx(e[1],t):{}}function Wx(e,t){if(!e)return{};let n=e.headers;return n?n instanceof Headers?Hx(n,t):Array.isArray(n)?{}:Ax(n,t):{}}function Gx(e){try{return e.clone()}catch{}}function Kx(e){return new Promise((t,n)=>{let r=pm(()=>n(Error(`Timeout while trying to read response body`)),500);qx(e).then(e=>t(e),e=>n(e)).finally(()=>clearTimeout(r))})}async function qx(e){return await e.text()}async function Jx(e,t,n){try{let r=Dx(`resource.xhr`,Xx(e,t,n));Cx(n.replay,r)}catch{}}function Yx(e,t){let{xhr:n,input:r}=t;if(!n)return;let i=wx(r),a=n.getResponseHeader(`content-length`)?Tx(n.getResponseHeader(`content-length`)):eS(n.response,n.responseType);i!==void 0&&(e.data.request_body_size=i),a!==void 0&&(e.data.response_body_size=a
475)}function Xx(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||!Nx(c,n.networkDetailAllowUrls)||Nx(c,n.networkDetailDenyUrls))return{startTimestamp:i,endTimestamp:a,url:c,method:l,statusCode:u,request:Ox(d),response:Ox(f)};let p=s[mm],m=p?Ax(p.request_headers,n.networkRequestHeaders):{},h=Ax(Zx(s),n.networkResponseHeaders),[g,_]=n.networkCaptureBodies?ym(o,Eb):[void 0],[v,y]=n.networkCaptureBodies?Qx(s):[void 0],b=kx(m,d,g),x=kx(h,f,v);return{startTimestamp:i,endTimestamp:a,url:c,method:l,statusCode:u,request:_?Ex(b,_):b,response:y?Ex(x,y):x}}function Zx(e){let t=e.getAllResponseHeaders();return t?t.split(`\r
476`).reduce((e,t)=>{let[n,r]=t.split(`: `);return r&&(e[n.toLowerCase()]=r),e},{}):{}}function Qx(e){let t=[];try{return[e.responseText]}catch(e){t.push(e)}try{return $x(e.response,e.responseType)}catch(e){t.push(e)}return[void 0]}function $x(e,t){try{if(typeof e==`string`)return[e];if(e instanceof Document)return[e.body.outerHTML];if(t===`json`&&e&&typeof e==`object`)return[JSON.stringify(e)];if(!e)return[void 0]}catch{return[void 0,`BODY_PARSE_ERROR`]}return[void 0,`UNPARSEABLE_BODY_TYPE`]}function eS(e,t){try{return wx(t===`json`&&e&&typeof e==`object`?JSON.stringify(e):e)}catch{return}}function tS(e){let t=P();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)=>nS(s,e,t))}catch{}}function nS(e,t,n){if(t.data)try{rS(t)&&aS(n)&&(Yx(t,n),Jx(t,n,e)),iS(t)&&oS(n)&&(Ix(t,n),Fx(t,n,e))}catch{}}function rS(e){return e.category===`xhr`}function iS(e){return e.category===`fetch`}function aS(e){return e?.xhr}function oS(e){return e?.response}function sS(e){let t=P();em(nb(e)),sm(xx(e)),lx(e),tS(e),Ji(vx(e)),t&&(t.on(`beforeSendEvent`,sx(e)),t.on(`afterSendEvent`,ix(e)),t.on(`createDsc`,t=>{let n=e.getSessionId();n&&e.isEnabled()&&e.recordingMode===`session`&&e.checkAndHandleExpiredSession()&&(t.replay_id=n)}),t.on(`spanStart`,t=>{e.lastActiveSpan=t}),t.on(`spanEnd`,t=>{e.lastActiveSpan=t}),t.on(`beforeSendFeedback`,async(t,n)=>{let r=e.getSessionId();n?.includeReplay&&e.isEnabled()&&r&&t.contexts?.feedback&&(t.contexts.feedback.source===`api`&&await e.sendBufferedReplayOrFlush(),t.contexts.feedback.replay_id=r)}),t.on(`openFeedbackWidget`,async()=>{await e.sendBufferedReplayOrFlush()}))}async function cS(e){try{return Promise.all(yx(e,[lS(q.performance.memory)]))}catch{return[]}}function lS(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 uS(e,t,n){return xo(e,t,{...n,setTimeoutImpl:pm})}var dS=t.navigator;function fS(){return/iPhone|iPad|iPod/i.test(dS?.userAgent??``)||/Macintosh/i.test(dS?.userAgent??``)&&dS?.maxTouchPoints&&dS?.maxTouchPoints>1?{sampling:{mousemove:!1}}:{}}function pS(e){let t=!1;return(n,r)=>{if(!e.checkAndHandleExpiredSession())return;let i=r||!t;t=!0,e.clickDetector&&Yy(e.clickDetector,n),e.addUpdate(()=>{if(e.recordingMode===`buffer`&&i&&e.setInitialState(),!Yb(e,n,i))return!0;if(!i)return!1;let t=e.session;if(hS(e,i),e.recordingMode===`buffer`&&t&&e.eventBuffer){let n=e.eventBuffer.getEarliestTimestamp();n&&(t.started=n,e.getOptions().stickySession&&zb(t))}return t?.previousSessionId||e.recordingMode===`session`&&e.flush(),!0})}}function mS(e){let t=e.getOptions();return{type:X.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 hS(e,t){!t||!e.session||e.session.segmentId!==0||Yb(e,mS(e),!1)}function gS(e){if(!e)return null;
476try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function _S(e,t,n,r){return nr(gr(e,hr(e),r,n),[[{type:`replay_event`},e],[{type:`replay_recording`,length:typeof t==`string`?new TextEncoder().encode(t).length:t.length},t]])}function vS({recordingData:e,headers:t}){let n,r=`${JSON.stringify(t)}
477`;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 yS({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 Ci(e.getOptions(),r,i,t,e,N());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 bS({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:i,session:a}){let o=vS({recordingData:e,headers:{segment_id:n}}),{urls:s,errorIds:c,traceIds:l,initialTimestamp:u}=r,d=P(),f=M(),p=d?.getTransport(),m=d?.getDsn();if(!d||!p||!m||!a.sampled)return oi({});let h=await yS({scope:f,client:d,replayId:t,event:{type:Tg,replay_start_timestamp:u/1e3,timestamp:i/1e3,error_ids:c,trace_ids:l,urls:s,replay_id:t,segment_id:n,replay_type:a.sampled}});if(!h)return d.recordDroppedEvent(`event_processor`,`replay`),oi({});delete h.sdkProcessingMetadata;let g=_S(h,o,m,d.getOptions().tunnel),_;try{_=await p.send(g)}catch(e){let t=Error(Eg);try{t.cause=e}catch{}throw t}if(typeof _.statusCode==`number`&&(_.statusCode<200||_.statusCode>=300))throw new xS(_.statusCode);let v=Ja({},_);if(qa(v,`replay`))throw new SS(v);return _}var xS=class extends Error{constructor(e){super(`Transport returned status code ${e}`)}},SS=class extends Error{constructor(e){super(`Rate limit hit`),this.rateLimits=e}};async function CS(e,t={count:0,interval:Mg}){let{recordingData:n,onError:r}=e;if(n.length)try{return await bS(e),!0}catch(n){if(n instanceof xS||n instanceof SS)throw n;if(Li(`Replays`,{_retryCount:t.count}),r&&r(n),t.count>=Ng){let e=Error(`${Eg} - max retries exceeded`);try{e.cause=n}catch{}throw e}return t.interval*=++t.count,new Promise((n,r)=>{pm(async()=>{try{await CS(e,t),n(!0)}catch(e){r(e)}},t.interval)})}}var wS=`__THROTTLED`,TS=`__SKIPPED`;function ES(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?TS:wS}o=!1;let c=r.get(s)||0;return r.set(s,c+1),e(...n)}}var DS=class{constructor({options:e,recordingOptions:t}){this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode=`session`,this.timeouts={sessionIdlePause:Dg,sessionIdleExpire:Og},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:``},this._recordingOptions=t,this._options=e,this._debouncedFlush=uS(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=ES((e,t)=>Xb(this,e,t),300,5);let{slowClickTimeout:n,slowClickIgnoreSelectors:r}=this.getOptions(),i=n?{threshold:Math.min(Ig,n),timeout:n,scrollTimeout:Lg,ignoreSelector:r?r.join(`,`):``}:void 0;i&&(this.clickDetector=new Wy(this,i)),this._handleVisibilityChange=()=>{q.document.visibilityState===`visible`?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()},this._handleWindowBlur=()=>{let e=Qy({category:`ui.blur`});this._doChangeToBackgroundTasks(e)},this._handleWindowFocus=()=>{let e=Qy({category:`ui.focus`});this._doChangeToForegroundTasks(e)},this._handleKeyboardEvent=e=>{sb(this,e)}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(e){this._options.onError&&this._options.onError(e)}initializeSampling(e){let{errorSampleRate:t,sessionSampleRate:n}=this._options,r=t<=0&&n<=0;this._requiresManualStart=r,!r&&(this._initializeSessionForSampling(e),this.session&&this.session.sampled!==!1&&(this.recordingMode=this.session.sampled===`buffer`&&this.session.segmentId===0?`buffer`:`session`,this._initializeRecording()))}
477start(){if(this._isEnabled&&this.recordingMode===`session`||this._isEnabled&&this.recordingMode===`buffer`)return;this._updateUserActivity();let e=qb({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)return;let e=qb({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=Ty({...this._recordingOptions,...this.recordingMode===`buffer`?{checkoutEveryNms:jg}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:pS(this),...fS(),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){this._isEnabled=!1,this.recordingMode=`buffer`;try{hx(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer?.destroy(),this.eventBuffer=null,Ib(this)}catch(e){this.handleException(e)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording())}resume(){!this._isPaused||!this._checkSession()||(this._isPaused=!1,this.startRecording())}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if(this.recordingMode===`session`)return this.flushImmediate();let t=Date.now();await this.flushImmediate();let n=this.stopRecording();!e||!n||this.recordingMode!==`session`&&(this.recordingMode=`session`,this.session&&(this._updateUserActivity(t),this._updateSessionActivity(t),this._maybeSaveSession()),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(){return this.session?.id}checkAndHandleExpiredSession(){if(this._lastActivity&&Wb(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&this.session.sampled===`session`){this.pause();return}return!!this._checkSession()}setInitialState(){let e=`${q.location.pathname}${q.location.hash}${q.location.search}`,t=`${q.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===wS){let e=Qy({category:`replay.throttled`});this.addUpdate(()=>!Yb(this,{type:Ay,timestamp:e.timestamp||0,data:{tag:`breadcrumb`,payload:e,metric:!0}}))}return n}getCurrentRoute(){let e=this.lastActiveSpan||L(),t=e&&Pn(e),n=(t&&I(t).data||{})[jt];if(!(!t||!n||![`route`,`custom`].includes(n)))return I(t).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=Mb({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_initializeSessionForSampling(e){let t=this._options.errorSampleRate>0,n=qb({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 Kb(e,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})?(this._refreshSession(e),!1):!0}async _refreshSession(e){this._isEnabled&&(await this.stop({reason:`refresh session`}),this.initializeSampling(e.id))}_addListeners(){try{q.document.addEventListener(`visibilitychange`,this._handleVisibilityChange),q.addEventListener(`blur`,this._handleWindowBlur),q.addEventListener(`focus`,this._handleWindowFocus),q.addEventListener(`ke
477ydown`,this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||=(sS(this),!0)}catch(e){this.handleException(e)}this._performanceCleanupCallback=Cb(this)}_removeListeners(){try{q.document.removeEventListener(`visibilitychange`,this._handleVisibilityChange),q.removeEventListener(`blur`,this._handleWindowBlur),q.removeEventListener(`focus`,this._handleWindowFocus),q.removeEventListener(`keydown`,this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this.handleException(e)}}_doChangeToBackgroundTasks(e){this.session&&(Gb(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(e&&this._createCustomBreadcrumb(e),this.conditionalFlush()))}_doChangeToForegroundTasks(e){this.session&&this.checkAndHandleExpiredSession()&&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:X.Custom,timestamp:e.timestamp||0,data:{tag:`breadcrumb`,payload:e}})})}_addPerformanceEntries(){let e=fb(this.performanceEntries).concat(this.replayPerformanceEntries);if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){let t=this._context.initialTimestamp/1e3;e=e.filter(e=>e.start>=t)}return Promise.all(yx(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.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)}
477_popEventContext(){let e={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),e}async _runFlush(){let e=this.getSessionId();if(!(!this.session||!this.eventBuffer||!e)&&(await this._addPerformanceEntries(),this.eventBuffer?.hasEvents&&(await cS(this),this.eventBuffer&&e===this.getSessionId())))try{this._updateInitialTimestampFromEventBuffer();let t=Date.now();if(t-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw Error(`Session is too long, not sending replay`);let n=this._popEventContext(),r=this.session.segmentId++;this._maybeSaveSession(),await CS({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:`sendReplay`});let t=P();if(t){let n=e instanceof SS?`ratelimit_backoff`:`send_error`;t.recordDroppedEvent(n,`replay`)}}}async _flush({force:e=!1}={}){if(!this._isEnabled&&!e||!this.checkAndHandleExpiredSession()||!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){r&&this._debouncedFlush();return}let a=this.eventBuffer;a&&this.session.segmentId===0&&a.hasCheckout;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&&zb(this.session)}_onMutationHandler(e){let{ignoreMutations:t}=this._options._experiments;if(t?.length&&e.some(e=>{let n=gS(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=Qy({category:`replay.mutations`,data:{count:n,limit:a}});this._createCustomBreadcrumb(e)}return a?(this.stop({reason:`mutationLimit`,forceFlush:this.recordingMode===`session`}),!1):!0}};function OS(e,t){return[...e,...t].join(`,`)}function kS({mask:e,unmask:t,block:n,unblock:r,ignore:i}){return{maskTextSelector:OS(e,[`.sentry-mask`,`[data-sentry-mask]`]),unmaskTextSelector:OS(t,[]),blockSelector:OS(n,[`.sentry-block`,`[data-sentry-block]`,...[`base`,`iframe[srcdoc]:not([src])`]]),unblockSelector:OS(r,[]),ignoreSelector:OS(i,[`.sentry-ignore`,`[data-sentry-ignore]`,`input[type="file"]`])}}function AS({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:i,value:a}){return!r||i.unmaskTextSelector&&e.matches(i.unmaskTextSelector)?a:n.includes(t)||t===`value`&&e.tagName===`INPUT`&&[`submit`,`button`].includes(e.getAttribute(`type`)||``)?a.replace(/[\S]/g,`*`):a}var jS=`img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]`,MS=[`content-length`,`content-type`,`accept`],NS=!1,PS=(e=>new FS(e)),FS=class{constructor({flushMinDelay:e=kg,flushMaxDelay:t=Ag,minReplayDuration:n=zg,maxReplayDuration:r=Vg,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}={}){this.name=`Replay`;let D=kS({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)=>AS({maskAttributes:x,maskAllText:c,privacyOptions:D,key:e,value:t,el:n}),...D,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,Bg),maxReplayDuration:Math.min(r,Vg),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:LS(v),networkResponseHeaders:LS(y),beforeAddRecordingEvent:ee,beforeErrorSampling:te,onError:ne,_experiments:s},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${jS}`:jS),this._isInitialized&&Rc())throw Error(`Multiple Sentry Session Replay instances are not supported`);this._isInitialized=!0}get _isInitialized(){return NS}set _isInitialized(e){NS=e}afterAllSetup(e){!Rc()||this._replay||(this._setup(e),this._initialize(e))}start(){this._replay&&this._replay.start()}
477startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:this._replay.recordingMode===`session`}):Promise.resolve()}flush(e){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(e):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(){if(this._replay?.isEnabled())return this._replay.getSessionId()}getRecordingMode(){if(this._replay?.isEnabled())return this._replay.recordingMode}_initialize(e){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(e),this._replay.initializeSampling())}_setup(e){let t=IS(this._initialOptions,e);this._replay=new DS({options:t,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(e){try{let t=e.getIntegrationByName(`ReplayCanvas`);if(!t)return;this._replay._canvas=t.getOptions()}catch{}}};function IS(e,t){let n=t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...e},i=dn(n.replaysSessionSampleRate),a=dn(n.replaysOnErrorSampleRate);return i==null&&a==null&&c(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),i!=null&&(r.sessionSampleRate=i),a!=null&&(r.errorSampleRate=a),r}function LS(e){return[...MS,...e.map(e=>e.toLowerCase())]}function RS(){return P()?.getIntegrationByName(`Replay`)}var zS=Object.defineProperty,BS=(e,t,n)=>t in e?zS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,VS=(e,t,n)=>BS(e,typeof t==`symbol`?t:t+``,n),HS=class{constructor(){VS(this,`idNodeMap`,new Map),VS(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 US(){return new HS}function WS(e,t){for(let n=e.classList.length;n--;){let r=e.classList[n];if(t.test(r))return!0}return!1}function GS(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:GS(e.parentNode,t,n,r+1)}function KS(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(WS(r,e))return!0}return!!(t&&r.matches(t))}catch{return!1}}}var qS=`Please stop import mirror directly. Instead of that,\r
478now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
479or you can use record.mirror to access the mirror instance during recording.`,JS={map:{},getId(){return console.error(qS),-1},getNode(){return console.error(qS),null},removeNodeFromMap(){console.error(qS)},has(){return console.error(qS),!1},reset(){console.error(qS)}};typeof window<`u`&&window.Proxy&&window.Reflect&&(JS=new Proxy(JS,{get(e,t,n){return t===`map`&&console.error(qS),Reflect.get(e,t,n)}}));function YS(e,t,n,r,i=window){let a=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,r?n:{set(e){nC(()=>{n.set.call(this,e)},0),a&&a.set&&a.set.call(this,e)}}),()=>YS(e,t,a||{},!0)}function XS(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 ZS(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function QS(e,t,n,r,i){if(!e)return!1;let a=ZS(e);if(!a)return!1;let o=KS(t,n);if(!i){let e=r&&a.matches(r);return o(a)&&!e}let s=GS(a,o),c=-1;return s<0?!1:(r&&(c=GS(a,KS(null,r))),s>-1&&c<0?!0:s<c)}var $S={};function eC(e){let t=$S[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 $S[e]=r.bind(window)}function tC(...e){return eC(`requestAnimationFrame`)(...e)}function nC(...e){return eC(`setTimeout`)(...e)}var rC=(e=>(e[e[`2D`]=0]=`2D`,e[e.WebGL=1]=`WebGL`,e[e.WebGL2=2]=`WebGL2`,e))(rC||{}),iC;function aC(e){iC=e}for(var oC=e=>iC?(...t)=>{try{return e(...t)}catch(e){if(iC&&iC(e)===!0)return()=>{};throw e}}:e,sC=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
479+/`,cC=typeof Uint8Array>`u`?[]:new Uint8Array(256),lC=0;lC<sC.length;lC++)cC[sC.charCodeAt(lC)]=lC;var uC=function(e){var t=new Uint8Array(e),n,r=t.length,i=``;for(n=0;n<r;n+=3)i+=sC[t[n]>>2],i+=sC[(t[n]&3)<<4|t[n+1]>>4],i+=sC[(t[n+1]&15)<<2|t[n+2]>>6],i+=sC[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},dC=new Map;function fC(e,t){let n=dC.get(e);return n||(n=new Map,dC.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}var pC=(e,t,n)=>{if(!e||!(gC(e,t)||typeof e==`object`))return;let r=e.constructor.name,i=fC(n,r),a=i.indexOf(e);return a===-1&&(a=i.length,i.push(e)),a};function mC(e,t,n){if(e instanceof Array)return e.map(e=>mC(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:uC(e)};if(e instanceof DataView)return{rr_type:e.constructor.name,args:[mC(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}}else if(e instanceof HTMLCanvasElement)return{rr_type:`HTMLImageElement`,src:e.toDataURL()};else if(e instanceof ImageData)return{rr_type:e.constructor.name,args:[mC(e.data,t,n),e.width,e.height]};else if(gC(e,t)||typeof e==`object`)return{rr_type:e.constructor.name,index:pC(e,t,n)};return e}var hC=(e,t,n)=>e.map(e=>mC(e,t,n)),gC=(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 _C(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=XS(t.CanvasRenderingContext2D.prototype,s,function(a){return function(...o){return QS(this.canvas,n,r,i,!0)||nC(()=>{let n=hC(o,t,this);e(this.canvas,{type:rC[`2D`],property:s,args:n})},0),a.apply(this,o)}});a.push(o)}catch{let n=YS(t.CanvasRenderingContext2D.prototype,s,{set(t){e(this.canvas,{type:rC[`2D`],property:s,args:[t],setter:!0})}});a.push(n)}return()=>{a.forEach(e=>e())}}function vC(e){return e===`experimental-webgl`?`webgl`:e}function yC(e,t,n,r,i){let a=[];try{let o=XS(e.HTMLCanvasElement.prototype,`getContext`,function(e){return function(a,...o){if(!QS(this,t,n,r,!0)){let e=vC(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 bC(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=XS(e,o,function(e){return function(...c){let l=e.apply(this,c);if(pC(l,s,this),`tagName`in this.canvas&&!QS(this.canvas,r,i,a,!0)){let e={type:t,property:o,args:hC(c,s,this)};n(this.canvas,e)}return l}});c.push(l)}catch{let r=YS(e,o,{set(e){n(this.canvas,{type:t,property:o,args:[e],setter:!0})}});c.push(r)}return c}function xC(e,t,n,r,i,a){let o=[];return o.push(...bC(t.WebGLRenderingContext.prototype,rC.WebGL,e,n,r,i,a,t)),t.WebGL2RenderingContext!==void 0&&o.push(...bC(t.WebGL2RenderingContext.prototype,rC.WebGL2,e,n,r,i,a,t)),()=>{o.forEach(e=>e())}}var SC=`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;
479if("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 CC(){let e=new Blob([SC]);return URL.createObjectURL(e)}var wC=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&&aC(a),(i&&typeof n==`number`||t)&&(this.worker=this.initFPSWorker()),this.addWindow(r),!t&&oC(()=>{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}oC(()=>{if(a&&t===`all`&&this.initCanvasMutationObserver(e,n,r,i),a&&typeof t==`number`){let t=yC(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}tC(t=>this.takeSnapshot(t,!0,e))}initFPSWorker(){let e=new Worker(CC());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:rC[`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=tC(t)};e=tC(t),this.restoreHandlers.push(()=>{e&&cancelAnimationFrame(e)})}initCanvasMutationObserver(e,t,n,r){let i=yC(e,t,n,r,!1),a=_C(this.processMutation.bind(this),e,t,n,r),o=xC(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=>{QS(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)).forEac
479h(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=>{oC(()=>{throw this.snapshotInProgressMap.delete(n),e})()})}}),!0)}startPendingCanvasMutationFlusher(){tC(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){let e=t=>{this.rafStamps.latestId=t,tC(e)};tC(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((e,t)=>{let n=this.mirror.getId(t);this.flushPendingCanvasMutationFor(t,n)}),tC(()=>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)}US();var TC;(function(e){e[e.NotStarted=0]=`NotStarted`,e[e.Running=1]=`Running`,e[e.Stopped=2]=`Stopped`})(TC||={});var EC={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}}},DC=`ReplayCanvas`,OC=1280,kC=R(((e={})=>{let[t,n]=e.maxCanvasSize||[],r={quality:e.quality||`medium`,enableManualSnapshot:e.enableManualSnapshot,maxCanvasSize:[t?Math.min(t,OC):OC,n?Math.min(n,OC):OC]},i,a=new Promise(e=>i=e);return{name:DC,getOptions(){let{quality:e,enableManualSnapshot:t,maxCanvasSize:n}=r;return{enableManualSnapshot:t,recordCanvas:!0,getCanvasManager:e=>{let r=new wC({...e,enableManualSnapshot:t,maxCanvasSize:n,errorHandler:e=>{try{typeof e==`object`&&(e.__rrweb__=!0)}catch{}}});return i(r),r},...EC[e]||EC.medium}},async snapshot(e,t){(await a).snapshot(e,t)}}}));function AC(e=0){return((at()||performance.timeOrigin)+e)/1e3}function jC(e){let t=[];if(e.nextHopProtocol!=null){let{name:n,version:r}=gp(e.nextHopProtocol);t.push([`network.protocol.version`,r],[`network.protocol.name`,n])}return at()?[...t,[`http.request.redirect_start`,AC(e.redirectStart)],[`http.request.fetch_start`,AC(e.fetchStart)],[`http.request.domain_lookup_start`,AC(e.domainLookupStart)],[`http.request.domain_lookup_end`,AC(e.domainLookupEnd)],[`http.request.connect_start`,AC(e.connectStart)],[`http.request.secure_connection_start`,AC(e.secureConnectionStart)],[`http.request.connection_end`,AC(e.connectEnd)],[`http.request.request_start`,AC(e.requestStart)],[`http.request.response_start`,AC(e.responseStart)],[`http.request.response_end`,AC(e.responseEnd)]]:t}var MC=new WeakMap,NC=new Map,PC={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function FC(e,t){let{traceFetch:n,traceXHR:r,trackFetchStreamPerformance:i,shouldCreateSpanForRequest:a,enableHTTPTimings:o,tracePropagationTargets:s,onRequestSpanStart:c}={...PC,...t},l=typeof a==`function`?a:e=>!0,u=e=>RC(e,s),d={},f=e.getOptions().propagateTraceparent;n&&(e.addEventProcessor(e=>(e.type===`transaction`&&e.spans&&e.spans.forEach(e=>{if(e.op===`http.client`){let t=NC.get(e.span_id);t&&(e.timestamp=t/1e3,NC.delete(e.span_id))}}),e)),i&&Dc(e=>{if(e.response){let t=MC.get(e.response);t&&e.endTimestamp&&NC.set(t,e.endTimestamp)}}),Ec(e=>{let t=oc(e,l,u,d,{propagateTraceparent:f});if(e.response&&e.fetchData.__span&&MC.set(e.response,e.fetchData.__span),t){let n=UC(e.fetchData.url),r=n?so(n).host:void 0;t.setAttributes({"http.url":n,"server.address":r}),o&&LC(t),c?.(t,{headers:e.headers})}})),r&&hm(e=>{let t=zC(e,l,u,d,f);if(t){o&&LC(t);let n;try{n=new Headers(e.xhr.__sentry_xhr_v3__?.request_headers)}catch{}c?.(t,{headers:n})}})}function IC(e){return e.entryType===`resource`&&`initiatorType`in e&&typeof e.nextHopProtocol==`string`&&(e.initiatorType===`fetch`||e.initiatorType===`xmlhttprequest`)}function LC(e){let{url:t}=I(e).data;if(!t||typeof t!=`string`)return;let n=tp(`resource`,({entries:r})=>{r.forEach(r=>{IC(r)&&r.name.endsWith(t)&&(jC(r).forEach(t=>e.setAttribute(...t)),setTimeout(n))})})}function RC(e,t){let n=ke();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?Fe(r.toString(),t)||a&&Fe(r.pathname,t):a}else{let n=!!e.match(/^\/(?!\/)/);return t?Fe(e,t):n}}function zC(e,t,n,r,i){let a=e.xhr,o=a?.[mm];if(!a||a.__sentry_own_request__||!o)return;let{url:s,method:c}=o,l=zn()&&t(s);if(e.endTimestamp&&l){let e=a.__sentry_xhr_span_id__;if(!e)return;let t=r[e];t&&o.status_code!==void 0&&(Ut(t,o.status_code),t.end(),delete r[e]);return}let u=UC(s),d=so(u||s),f=co(s),p=!!L(),m=l&&p?Rr({name:`${c} ${f}`,attributes:{url:s,type:`xhr`,"http.method":c,"http.url":u,"server.address":d?.host,[F]:`auto.http.browser`,[Pt]:`http.client`,...d?.search&&{"http.query":d?.search},...d?.hash&&{"http.fragment":d?.hash}}}):new qn;a.__sentry_xhr_span_id__=m.spanContext().spanId,r[a.__sentry_xhr_span_id__]=m,n(s)&&BC(a,zn()&&p?m:void 0,i);let h=P();return h&&h.emit(`beforeOutgoingRequestSpan`,m,e),m}function BC(e,t,n){let{"sentry-trace":r,baggage:i,traceparent:a}=vo({span:t,propagateTraceparent:n});r&&VC(e,r,i,a)}function VC(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||!HC(t))&&e.setRequestHeader(`baggage`,n)}}catch{}}function HC(e){return e.split(`,`).some(e=>e.trim().startsWith(`sentry-`))}function UC(e){try{return new URL(e,W.location.origin).href}catch{return}}function WC(){W.document&&W.document.addEventListener(`visibilitychange`,()=>{let e=L();if(!e)return;let t=Pn(e);if(W.document.hidden&&t){let{op:e,status:n}=I(t);n||t.setStatus({code:2,message:`cancelled`}),t.setAttribute(`sentry.cancellation_reason`,`document.hidden`),t.end()}})}var GC=`sentry_previous_trace`,KC=`sentry.previous_trace`;function qC(e,{linkPreviousTrace:t,consistentTraceSampling:n}){let r=t===`session-storage`,i=r?XC():void 0;e.on(`spanStart`,e=>{if(Pn(e)!==e)return;let t=M().getPropagationContext();i=JC(i,e,t),r&&YC(i)});let a=!0;n&&e.on(`beforeSampling`,e=>{if(!i)return;let t=M(),n=t.getPropagationContext();if(a&&n.parentSpanId){a=!1;return}t.setPropagationContext({...n,dsc:{...n.dsc,sample_rate:String(i.sampleRate),sampled:String(ZC(i.spanContext))},sampleRand:i.sampleRand}),e.parentSampled=ZC(i.spanContext),e.parentSampleRate=i.sampleRate,e.spanAttributes={...e.spanAttributes,[Nt]:i.sampleRate}})}function JC(e,t,n){let r=I(t);function i(){try{return Number(n.dsc?.sample_rate)??Number(r.data?.[`sentry.sample_rate`])}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&&(t.addLink({context:o,attributes:{[Vt]:`previous_trace`}}),t.setAttribute(KC,`${o.traceId}-${o.spanId}-${+!!ZC(o)}`)),a)}function YC(e){try{W.sessionStorage.setItem(GC,JSON.stringify(e))}catch{}}function XC(){try{let e=W.sessionStorage?.getItem(GC);return JSON.parse(e)}catch{return}}function ZC(e){return e.traceFlags===1}var QC=`BrowserTracing`,$C={...Xr,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroun
479dSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,enableElementTiming:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:`in-memory`,consistentTraceSampling:!1,_experiments:{},...PC},ew=((e={})=>{let n={name:void 0,source:void 0},r=W.document,{enableInp:i,enableElementTiming:a,enableLongTask:o,enableLongAnimationFrame:s,_experiments:{enableInteractions:c,enableStandaloneClsSpans:l,enableStandaloneLcpSpans:u},beforeStartSpan:d,idleTimeout:f,finalTimeout:p,childSpanTimeout:m,markBackgroundSpan:h,traceFetch:g,traceXHR:_,trackFetchStreamPerformance:v,shouldCreateSpanForRequest:y,enableHTTPTimings:b,ignoreResourceSpans:x,ignorePerformanceApiSpans:S,instrumentPageLoad:C,instrumentNavigation:w,detectRedirects:T,linkPreviousTrace:E,consistentTraceSampling:ee,onRequestSpanStart:te}={...$C,...e},ne,D;function O(e,t,i=!0){let a=t.op===`pageload`,o=t.name,s=d?d(t):t,c=s.attributes||{};if(o!==s.name&&(c[jt]=`custom`,s.attributes=c),!i){let e=et();Rr({...s,startTime:e}).end(e);return}n.name=s.name,n.source=c[jt];let h=ti(s,{idleTimeout:f,finalTimeout:p,childSpanTimeout:m,disableAutoFinish:a,beforeSpanEnd:t=>{ne?.(),Ip(t,{recordClsOnPageloadSpan:!l,recordLcpOnPageloadSpan:!u,ignoreResourceSpans:x,ignorePerformanceApiSpans:S}),sw(e,void 0);let n=M(),r=n.getPropagationContext();n.setPropagationContext({...r,traceId:h.spanContext().traceId,sampled:Dn(h),dsc:Gn(t)})}});sw(e,h);function g(){r&&[`interactive`,`complete`].includes(r.readyState)&&e.emit(`idleSpanEnableAutoFinish`,h)}a&&r&&(r.addEventListener(`readystatechange`,()=>{g()}),g())}return{name:QC,setup(e){if(Rn(),ne=kp({recordClsStandaloneSpans:l||!1,recordLcpStandaloneSpans:u||!1,client:e}),i&&wm(),a&&Jp(),s&&t.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes(`long-animation-frame`)?jp():o&&Ap(),c&&Mp(),T&&r){let e=()=>{D=j()};addEventListener(`click`,e,{capture:!0}),addEventListener(`keydown`,e,{capture:!0,passive:!0})}function n(){let t=ow(e);t&&!I(t).timestamp&&(t.setAttribute(Ft,`cancelled`),t.end())}e.on(`startNavigationSpan`,(t,r)=>{if(P()!==e)return;if(r?.isRedirect){O(e,{op:`navigation.redirect`,...t},!1);return}D=void 0,n(),N().setPropagationContext({traceId:dt(),sampleRand:Math.random()});let i=M();i.setPropagationContext({traceId:dt(),sampleRand:Math.random()}),i.setSDKProcessingMetadata({normalizedRequest:void 0}),O(e,{op:`navigation`,...t})}),e.on(`startPageLoadSpan`,(t,r={})=>{if(P()!==e)return;n();let i=mn(r.sentryTrace||rw(`sentry-trace`),r.baggage||rw(`baggage`)),a=M();a.setPropagationContext(i),a.setSDKProcessingMetadata({normalizedRequest:yd()}),O(e,{op:`pageload`,...t})})},afterAllSetup(e){let t=ke();if(E!==`off`&&qC(e,{linkPreviousTrace:E,consistentTraceSampling:ee}),W.location){if(C){let t=at();tw(e,{name:W.location.pathname,startTime:t?t/1e3:void 0,attributes:{[jt]:`url`,[F]:`auto.pageload.browser`}})}w&&sm(({to:n,from:r})=>{if(r===void 0&&t?.indexOf(n)!==-1){t=void 0;return}t=void 0;let i=ao(n),a=ow(e),o=a&&T&&lw(a,D);nw(e,{name:i?.pathname||W.location.pathname,attributes:{[jt]:`url`,[F]:`auto.navigation.browser`}},{url:n,isRedirect:o})})}h&&WC(),c&&iw(e,f,p,m,n),i&&Om(),FC(e,{traceFetch:g,traceXHR:_,trackFetchStreamPerformance:v,tracePropagationTargets:e.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:y,enableHTTPTimings:b,onRequestSpanStart:te})}}});function tw(e,t,n){e.emit(`startPageLoadSpan`,t,n),M().setTransactionName(t.name);let r=ow(e);return r&&e.emit(`afterStartPageLoadSpan`,r),r}function nw(e,t,n){let{url:r,isRedirect:i}=n||{};e.emit(`beforeStartNavigationSpan`,t,{isRedirect:i}),e.emit(`startNavigationSpan`,t,{isRedirect:i});let a=M();return a.setTransactionName(t.name),r&&!i&&a.setSDKProcessingMetadata({normalizedRequest:{...yd(),url:r}}),ow(e)}function rw(e){return(W.document?.querySelector(`meta[name=${e}]`))?.getAttribute(`content`)||void 0}function iw(e,t,n,r,i){let a=W.document,o;a&&addEventListener(`click`,()=>{let a=ow(e);if(a){let e=I(a).op;if([`navigation`,`pageload`].includes(e))return}o&&=(o.setAttribute(Ft,`interactionInterrupted`),o.end(),void 0),i.name&&(o=ti({name:i.name,op:`ui.action.click`,attributes:{[jt]:i.source||`url`}},{idleTimeout:t,finalTimeout:n,childSpanTimeout:r}))},{capture:!0})}var aw=`_sentry_idleSpan`;function ow(e){return e[aw]}function sw(e,t){Le(e,aw,t)}var cw=1.5;function lw(e,t){let n=I(e),r=et();return!(r-n.start_timestamp>cw||t&&r-t<=cw)}function uw(e){return new Promise((t,n)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>n(e.error)})}function dw(e,t){let n=indexedDB.open(e);n.onupgradeneeded=()=>n.result.createObjectStore(t);let r=uw(n);return e=>r.then(n=>e(n.transaction(t,`readwrite`).objectStore(t)))}function fw(e){return uw(e.getAllKeys())}function pw(e,t,n){return e(e=>fw(e).then(r=>{if(!(r.length>=n))return e.put(t,Math.max(...r,0)+1),uw(e.transaction)}))}
479function mw(e,t,n){return e(e=>fw(e).then(r=>{if(!(r.length>=n))return e.put(t,Math.min(...r,0)-1),uw(e.transaction)}))}function hw(e){return e(e=>fw(e).then(t=>{let n=t[0];if(n!=null)return uw(e.get(n)).then(t=>(e.delete(n),uw(e.transaction).then(()=>t)))}))}function gw(e){let t;function n(){return t??=dw(e.dbName||`sentry-offline`,e.storeName||`queue`),t}return{push:async t=>{try{let r=await cr(t);await pw(n(),r,e.maxQueueSize||30)}catch{}},unshift:async t=>{try{let r=await cr(t);await mw(n(),r,e.maxQueueSize||30)}catch{}},shift:async()=>{try{let e=await hw(n());if(e)return ur(e)}catch{}}}}function _w(e){return t=>{let n=e({...t,createStore:gw});return W.addEventListener(`online`,async e=>{await n.flush()}),n}}function vw(e=km){return _w(Qa(e))}var yw=1e6,bw=`0`,xw=`main`,Sw=W.navigator,Cw=``,ww=``,Tw=``,Ew=Sw?.userAgent||``,Dw=``,Ow=Sw?.language||Sw?.languages?.[0]||``;function kw(e){return typeof e==`object`&&!!e&&`getHighEntropyValues`in e}var Aw=Sw?.userAgentData;kw(Aw)&&Aw.getHighEntropyValues([`architecture`,`model`,`platform`,`platformVersion`,`fullVersionList`]).then(e=>{if(Cw=e.platform||``,Tw=e.architecture||``,Dw=e.model||``,ww=e.platformVersion||``,e.fullVersionList?.length){let t=e.fullVersionList[e.fullVersionList.length-1];Ew=`${t.brand} ${t.version}`}}).catch(e=>void 0);function jw(e){return!(`thread_metadata`in e)}function Mw(e){return jw(e)?Iw(e):e}function Nw(e){let t=e.contexts?.trace?.trace_id;return typeof t==`string`&&t.length,typeof t==`string`?t:``}function Pw(e,t,n,r){if(r.type!==`transaction`)throw TypeError(`Profiling events may only be attached to transactions, this should never occur.`);if(n==null)throw TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${n} instead.`);let i=Nw(r),a=Mw(n),o=t||(typeof r.start_timestamp==`number`?r.start_timestamp*1e3:j()*1e3),s=typeof r.timestamp==`number`?r.timestamp*1e3:j()*1e3;return{event_id:e,timestamp:new Date(o).toISOString(),platform:`javascript`,version:`1`,release:r.release||``,environment:r.environment||`production`,runtime:{name:`javascript`,version:W.navigator.userAgent},os:{name:Cw,version:ww,build_number:Ew},device:{locale:Ow,model:Dw,manufacturer:Ew,architecture:Tw,is_emulator:!1},debug_meta:{images:zw(n.resources)},profile:a,transactions:[{name:r.transaction||``,id:r.event_id||Ge(),trace_id:i,active_thread_id:bw,relative_start_ns:`0`,relative_end_ns:((s-o)*1e6).toFixed(0)}]}}function Fw(e){return I(e).op===`pageload`}function Iw(e){let t,n=0,r={samples:[],stacks:[],frames:[],thread_metadata:{[bw]:{name:xw}}},i=e.samples[0];if(!i)return r;let a=i.timestamp,o=at(),s=typeof performance.timeOrigin==`number`?performance.timeOrigin:o||0,c=s-(o||s);return e.samples.forEach((i,o)=>{if(i.stackId===void 0){t===void 0&&(t=n,r.stacks[t]=[],n++),r.samples[o]={elapsed_since_start_ns:((i.timestamp+c-a)*yw).toFixed(0),stack_id:t,thread_id:bw};return}let s=e.stacks[i.stackId],l=[];for(;s;){l.push(s.frameId);let t=e.frames[s.frameId];t&&r.frames[s.frameId]===void 0&&(r.frames[s.frameId]={function:t.name,abs_path:typeof t.resourceId==`number`?e.resources[t.resourceId]:void 0,lineno:t.line,colno:t.column}),s=s.parentId===void 0?void 0:e.stacks[s.parentId]}let u={elapsed_since_start_ns:((i.timestamp+c-a)*yw).toFixed(0),stack_id:n,thread_id:bw};r.stacks[n]=l,r.samples[o]=u,n++}),r}function Lw(e,t){if(!t.length)return e;for(let n of t)e[1].push([{type:`profile`},n]);return e}function Rw(e){let t=[];return ir(e,(e,n)=>{if(n===`transaction`)for(let n=1;n<e.length;n++)e[n]?.contexts?.profile?.profile_id&&t.push(e[n])}),t}function zw(e){let t=P()?.getOptions()?.stackParser;return t?Si(t,e):[]}function Bw(e){return typeof e!=`number`&&typeof e!=`boolean`||typeof e==`number`&&isNaN(e)?!1:e===!0||e===!1?!0:!(e<0||e>1)}function Vw(e){return!(e.samples.length<2||!e.frames.length)}var Hw=!1,Uw=3e4;function Ww(e){return typeof e==`function`}function Gw(){let e=W.Profiler;if(!Ww(e))return;let t=Math.floor(Uw/10);try{return new e({sampleInterval:10,maxBufferSize:t})}catch{Hw=!0}}function Kw(e){if(Hw||!e.isRecording())return!1;let t=P()?.getOptions();if(!t)return!1;let n=t.profilesSampleRate;return!(!Bw(n)||!n||!(n===!0||Math.random()<n))}function qw(e,t,n,r){return Vw(n)?Pw(e,t,n,r):null}var Jw=new Map;function Yw(){return Jw.size}function Xw(e){let t=Jw.get(e);return t&&Jw.delete(e),t}function Zw(e,t){if(Jw.set(e,t),Jw.size>30){let e=Jw.keys().next().value;Jw.delete(e)}}function Qw(e){let t;Fw(e)&&(t=j()*1e3);let n=Gw();if(!n)return;let r=Ge();M().setContext(`profile`,{profile_id:r,start_timestamp:t});async function i(){if(e&&n)return n.stop().then(e=>{a&&=(W.clearTimeout(a),void 0),e&&Zw(r,e)}).catch(e=>{})}let a=W.setTimeout(()=>{i()},Uw),o=e.end.bind(e);function s(){return e?(i().then(()=>{o()},()=>{o()}),e):o()}e.end=s}var $w=`BrowserProfiling`,eT=R((()=>({name:$w,setup(e){let t=L(),n=t&&Pn(t);n&&Fw(n)&&Kw(n)&&Qw(n),e.on(`spanStart`,e=>{e===Pn(e)&&Kw(e)&&Qw(e)}),e.on(`beforeEnvelope`,e=>{if(!Yw())return;let t=Rw(e);if(!t.length)return;let n=[];for(let e of t){let t=e?.contexts,r=t?.profile?.profile_id,i=t?.profile?.start_timestamp;if(typeof r!=`string`||!r)continue;t?.profile&&delete t.profile;let a=Xw(r);if(!a)continue;let o=qw(r,i,a,e);o&&n.push(o)}Lw(e,n)})}}))),tT=`SpotlightBrowser`,nT=((e={})=>{let t=e.sidecarUrl||`http://localhost:8969/stream`;return{name:tT,setup:()=>{},processEvent:e=>aT(e)?null:e,afterAllSetup:e=>{rT(e,t)}}});function rT(e,t){let n=dm(`fetch`),r=0;e.on(`beforeEnvelope`,e=>{if(r>3){g.warn(`[Spotlight] Disabled Sentry -> Spotlight integration due to too many failed requests:`,r);return}n(t,{method:`POST`,body:cr(e),headers:{"Content-Type":`application/x-sentry-envelope`},mode:`cors`}).then(e=>{e.status>=200&&e.status<400&&(r=0)},e=>
479{r++,g.error(`Sentry SDK can't connect to Sidecar is it running? See: https://spotlightjs.com/sidecar/npx/`,e)})})}var iT=R(nT);function aT(e){return!!(e.type===`transaction`&&e.spans&&e.contexts?.trace&&e.contexts.trace.op===`ui.action.click`&&e.spans.some(({description:e})=>e?.includes(`#sentry-spotlight`)))}var oT=R(()=>({name:`LaunchDarkly`,processEvent(e,t,n){return tc(e)}}));function sT(){return{name:`sentry-flag-auditor`,type:`flag-used`,synchronous:!0,method:(e,t,n)=>{nc(e,t.value),ic(e,t.value)}}}var cT=R(()=>({name:`OpenFeature`,processEvent(e,t,n){return tc(e)}})),lT=class{after(e,t){nc(t.flagKey,t.value),ic(t.flagKey,t.value)}error(e,t,n){nc(e.flagKey,e.defaultValue),ic(e.flagKey,e.defaultValue)}},uT=R(({featureFlagClientClass:e})=>({name:`Unleash`,setupOnce(){let t=e.prototype;Ie(t,`isEnabled`,dT)},processEvent(e,t,n){return tc(e)}}));function dT(e){return function(...t){let n=t[0],r=e.apply(this,t);return typeof n==`string`&&typeof r==`boolean`&&(nc(n,r),ic(n,r)),r}}var fT=R(({featureFlagClient:e})=>({name:`Statsig`,setup(t){e.on(`gate_evaluation`,e=>{nc(e.gate.name,e.gate.value),ic(e.gate.name,e.gate.value)})},processEvent(e,t,n){return tc(e)}}));async function pT(){let e=P();if(!e)return`no-client-active`;if(!e.getDsn())return`no-dsn-configured`;try{await Vr(()=>fetch(`https://o447951.ingest.sentry.io/api/4509632503087104/envelope/?sentry_version=7&sentry_key=c1dfb07d783ad5325c245c1fd3725390&sentry_client=sentry.javascript.browser%2F1.33.7`,{body:`{}`,method:`POST`,mode:`cors`,credentials:`omit`}))}catch{return`sentry-unreachable`}}var mT=`WebWorker`,hT=R(({worker:e})=>({name:mT,setupOnce:()=>{(Array.isArray(e)?e:[e]).forEach(e=>gT(e))},addWorker:e=>gT(e)}));function gT(e){e.addEventListener(`message`,e=>{vT(e.data)&&(e.stopImmediatePropagation(),W._sentryDebugIds={...e.data._sentryDebugIds,...W._sentryDebugIds})})}function _T({self:e}){e.postMessage({_sentryMessage:!0,_sentryDebugIds:e._sentryDebugIds??void 0})}function vT(e){return ge(e)&&e._sentryMessage===!0&&`_sentryDebugIds`in e&&(ge(e._sentryDebugIds)||e._sentryDebugIds===void 0)}var yT=[`activate`,`mount`],bT=/(?:^|[-_])(\w)/g,xT=e=>e.replace(bT,e=>e.toUpperCase()).replace(/[-_]/g,``),ST=`<Root>`,CT=`<Anonymous>`,wT=(e,t)=>e.repeat(t),TT=(e,t)=>{if(!e)return CT;if(e.$root===e)return ST;if(!e.$options)return CT;let n=e.$options,r=n.name||n._componentTag||n.__name,i=n.__file;if(!r&&i){let e=i.match(/([^/\\]+)\.vue$/);e&&(r=e[1])}return(r?`<${xT(r)}>`:CT)+(i&&t!==!1?` at ${i}`:``)},ET=e=>{if(e&&(e._isVue||e.__isVue)&&e.$parent){let t=[],n=0;for(;e;){if(t.length>0){let r=t[t.length-1];if(r.constructor===e.constructor){n++,e=e.$parent;continue}else n>0&&(t[t.length-1]=[r,n],n=0)}t.push(e),e=e.$parent}return`\n\nfound in\n\n${t.map((e,t)=>`${(t===0?`---> `:wT(` `,5+t*2))+(Array.isArray(e)?`${TT(e[0])}... (${e[1]} recursive calls)`:TT(e))}`).join(`
480`)}`}return`\n\n(found in ${TT(e)})`},DT=(e,t)=>{let{errorHandler:n}=e.config;e.config.errorHandler=(r,i,a)=>{let o={componentName:TT(i,!1),lifecycleHook:a,trace:i?ET(i):``};if(t.attachProps&&i&&(i.$options?.propsData?o.propsData=i.$options.propsData:i.$props&&(o.propsData=i.$props)),setTimeout(()=>{Pi(r,{captureContext:{contexts:{vue:o}},mechanism:{handled:!!n,type:`vue`}})}),typeof n==`function`&&e.config.errorHandler)n.call(e,r,i,a);else throw r}},OT=`ui.vue`,kT={activate:[`activated`,`deactivated`],create:[`beforeCreate`,`created`],unmount:[`beforeUnmount`,`unmounted`],destroy:[`beforeDestroy`,`destroyed`],mount:[`beforeMount`,`mounted`],update:[`beforeUpdate`,`updated`]};function AT(e,t,n){e.$_sentryRootComponentSpanTimer&&clearTimeout(e.$_sentryRootComponentSpanTimer),e.$_sentryRootComponentSpanTimer=setTimeout(()=>{e.$root?.$_sentryRootComponentSpan&&(e.$root.$_sentryRootComponentSpan.end(t),e.$root.$_sentryRootComponentSpan=void 0)},n)}function jT(e,t){function n(e){return e.replace(/^<([^\s]*)>(?: at [^\s]*)?$/,`$1`)}return e.some(e=>n(t)===n(e))}var MT=(e={})=>{let t=(e.hooks||[]).concat(yT).filter((e,t,n)=>n.indexOf(e)===t),n={},r=e.timeout||2e3;for(let i of t){let t=kT[i];if(t)for(let a of t)n[a]=function(){let n=this.$root===this;n&&(this.$_sentryRootComponentSpan=this.$_sentryRootComponentSpan||Rr({name:`Application Render`,op:`${OT}.render`,attributes:{"sentry.origin":`auto.ui.vue`},onlyIfParent:!0}),AT(this,j(),r));let o=TT(this,!1);if(!(n||(Array.isArray(e.trackComponents)?jT(e.trackComponents,o):e.trackComponents))){AT(this,j(),r);return}this.$_sentryComponentSpans=this.$_sentryComponentSpans||{};let s=a===t[0],c=this.$root?.$_sentryRootComponentSpan||L();if(s){if(c){let e=this.$_sentryComponentSpans[i];e&&e.end(),this.$_sentryComponentSpans[i]=Rr({name:`Vue ${o}`,op:`${OT}.${i}`,attributes:{[F]:`auto.ui.vue`},onlyIfParent:!0})}}else{let e=this.$_sentryComponentSpans[i];if(!e)return;e.end(),AT(this,j(),r)}}}return n},NT={Vue:t.Vue,attachProps:!0,attachErrorHandler:!0,tracingOptions:{hooks:yT,timeout:2e3,trackComponents:!1}},PT=`Vue`,FT=R((e={})=>({name:PT,setup(t){let n={...NT,...t.getOptions(),...e};if(!n.Vue&&!n.app){c(()=>{console.warn("[@sentry/vue]: Misconfigured SDK. Vue specific errors will not be captured. Update your `Sentry.init` call with an appropriate config option: `app` (Application Instance - Vue 3) or `Vue` (Vue Constructor - Vue 2).")});return}
480n.app?(Array.isArray(n.app)?n.app:[n.app]).forEach(e=>IT(e,n)):n.Vue&&IT(n.Vue,n)}})),IT=(e,t)=>{t.attachErrorHandler&&DT(e,t),zn(t)&&e.mixin(MT(t.tracingOptions))};function LT(e={}){let t={defaultIntegrations:[...Lh(e),FT()],...e};return _o(t,`vue`),Rh(t)}function RT(e,t,n){let r=!1;e.onError(e=>Pi(e,{mechanism:{handled:!1}})),e.beforeEach((e,i,a)=>{let o=r?void 0:zT(),s={};for(let t of Object.keys(e.params))s[`url.path.parameter.${t}`]=e.params[t],s[`params.${t}`]=e.params[t];for(let t of Object.keys(e.query)){let n=e.query[t];n&&(s[`query.${t}`]=n)}let c=e.path,l=`url`;if(e.name&&t.routeLabel!==`path`)c=e.name.toString(),l=`custom`;else if(e.matched.length>0){let t=e.matched.length-1;c=e.matched[t].path,l=`route`}M().setTransactionName(c),t.instrumentPageLoad&&o&&(I(o).data[`sentry.source`]!==`custom`&&(o.updateName(c),o.setAttribute(jt,l)),o.setAttributes({...s,[F]:`auto.pageload.vue`}),r=!0),t.instrumentNavigation&&!o&&n({name:c,op:`navigation`,attributes:{...s,[F]:`auto.navigation.vue`,[jt]:l}}),a&&a()})}function zT(){let e=L(),t=e&&Pn(e);if(t)return I(t).op===`pageload`?t:void 0}function BT(e={}){if(!e.router)return ew(e);let t=ew({...e,instrumentNavigation:!1}),{router:n,instrumentNavigation:r=!0,instrumentPageLoad:i=!0,routeLabel:a=`name`}=e;return{...t,afterAllSetup(e){t.afterAllSetup(e),RT(n,{routeLabel:a,instrumentNavigation:r,instrumentPageLoad:i},t=>{nw(e,t)})}}}var VT={attachPiniaState:!0,addBreadcrumbs:!0,actionTransformer:e=>e,stateTransformer:e=>e},HT=(e,t)=>{let n={};try{return Object.keys(e.state.value).forEach(t=>{n[t]=e.state.value[t]}),t?t(n):n}catch{return n}},UT=e=>{let t={...VT,...e};return({store:e,pinia:n})=>{t.attachPiniaState!==!1&&Dt().addEventProcessor((e,r)=>{try{let e=`pinia_state_all_stores_${new Date().toTimeString().split(` `)[0]}.json`;r.attachments?.some(e=>e.filename.startsWith(`pinia_state_all_stores_`))||(r.attachments=[...r.attachments||[],{filename:e,data:JSON.stringify(HT(n,t.stateTransformer))}])}catch{}return e}),e.$onAction(r=>{r.after(()=>{let i=t.actionTransformer(r.name);i!=null&&t.addBreadcrumbs!==!1&&Co({category:`pinia.action`,message:`Store: ${e.$id} | Action: ${i}`,level:`info`});let a=HT(n,t.stateTransformer),o=M(),s=o.getScopeData().contexts.state;if(a!=null){let e=P()?.getOptions()?.normalizeDepth||3,t={type:`pinia`,value:a},n={...s||{},state:t};Le(n,`__sentry_override_normalization_depth__`,3+e),o.setContext(`state`,n)}else o.setContext(`state`,{...s||{},state:{type:`pinia`,value:`undefined`}})})})}},WT=e({BrowserClient:()=>Qd,OpenFeatureIntegrationHook:()=>lT,SDK_VERSION:()=>n,SEMANTIC_ATTRIBUTE_SENTRY_OP:()=>Pt,SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN:()=>F,SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE:()=>Mt,SEMANTIC_ATTRIBUTE_SENTRY_SOURCE:()=>jt,Scope:()=>_t,WINDOW:()=>W,addBreadcrumb:()=>Co,addEventProcessor:()=>Ji,addIntegration:()=>da,attachErrorHandler:()=>DT,breadcrumbsIntegration:()=>rh,browserApiErrorsIntegration:()=>ph,browserProfilingIntegration:()=>eT,browserSessionIntegration:()=>bh,browserTracingIntegration:()=>BT,buildLaunchDarklyFlagUsedHandler:()=>sT,captureConsoleIntegration:()=>ns,captureEvent:()=>Ii,captureException:()=>Pi,captureFeedback:()=>pc,captureMessage:()=>Fi,captureSession:()=>Qi,chromeStackLineParser:()=>Bm,close:()=>Gi,consoleLoggingIntegration:()=>gc,contextLinesIntegration:()=>fg,continueTrace:()=>zr,createSentryPiniaPlugin:()=>UT,createTracingMixins:()=>MT,createTransport:()=>Ya,createUserFeedbackEnvelope:()=>$m,dedupeIntegration:()=>as,defaultRequestInstrumentationOptions:()=>PC,defaultStackLineParsers:()=>Xm,defaultStackParser:()=>Zm,diagnoseSdkConnectivity:()=>pT,endSession:()=>Xi,eventFiltersIntegration:()=>Ao,eventFromException:()=>Wd,eventFromMessage:()=>Gd,exceptionFromError:()=>Pd,extraErrorDataIntegration:()=>ps,featureFlagsIntegration:()=>ac,feedbackAsyncIntegration:()=>wd,feedbackIntegration:()=>Td,feedbackSyncIntegration:()=>Td,flush:()=>Wi,forceLoad:()=>zh,functionToStringIntegration:()=>Do,geckoStackLineParser:()=>Um,getActiveSpan:()=>L,getClient:()=>P,getCurrentScope:()=>M,getDefaultIntegrations:()=>Lh,getFeedback:()=>wl,getGlobalScope:()=>Dt,getIsolationScope:()=>N,getReplay:()=>RS,getRootSpan:()=>Pn,getSpanDescendants:()=>Nn,getSpanStatusFromHttpCode:()=>Ht,getTraceData:()=>vo,globalHandlersIntegration:()=>Sh,graphqlClientIntegration:()=>Cg,httpClientIntegration:()=>qh,httpContextIntegration:()=>Ah,inboundFiltersIntegration:()=>jo,init:()=>LT,instrumentOutgoingRequests:()=>FC,instrumentSupabaseClient:()=>zs,isEnabled:()=>qi,isInitialized:()=>Ki,lastEventId:()=>Ui,launchDarklyIntegration:()=>oT,lazyLoadIntegration:()=>Sd,linkedErrorsIntegration:()=>Ph,logger:()=>Ed,makeBrowserOfflineTransport:()=>vw,makeFetchTransport:()=>km,makeMultiplexedTransport:()=>no,moduleMetadataIntegration:()=>Zo,onLoad:()=>Bh,openFeatureIntegration:()=>cT,opera10StackLineParser:()=>qm,opera11StackLineParser:()=>Ym,parameterize:()=>mo,registerSpanErrorInstrumentation:()=>Rn,registerWebWorker:()=>_T,replayCanvasIntegration:()=>kC,replayIntegration:()=>PS,reportingObserverIntegration:()=>Gh,rewriteFramesIntegration:()=>ws,sendFeedback:()=>ll,setContext:()=>Li,setCurrentClient:()=>Va,setExtra:()=>zi,setExtras:()=>Ri,setHttpStatus:()=>Ut,setMeasurement:()=>wr,setTag:()=>Vi,setTags:()=>Bi,setUser:()=>Hi,showReportDialog:()=>Vh,spanToBaggageHeader:()=>Kn,spanToJSON:()=>I,spanToTraceHeader:()=>xn,spotlightBrowserIntegration:()=>iT,startBrowserTracingNavigationSpan:()=>nw,startBrowserTracingPageLoadSpan:()=>tw,startInactiveSpan:()=>Rr,startNewTrace:()=>Hr,startSession:()=>Yi,startSpan:()=>Ir,startSpanManual:()=>Lr,statsigIntegration:()=>fT,supabaseIntegration:()=>Hs,suppressTracing:()=>Vr,thirdPartyErrorFilterIntegration:()=>Zs,unleashIntegration:()=>uT,updateSpanName:()=>In,vueIntegration:()=>FT,webWorkerIntegration:()=>hT,winjsStackLineParser:()=>Gm,withActiveSpan:()=>Br,withIsolationScope:()=>kt,withScope:()=>Ot,zodErrorsIntegration:()=>Xs});export{Lh as a,R as c,c as d,t as f,FT as i,Pi as l,UT as n,Rh as o,BT as r,_o as s,WT as t,P as u};
481//# sourceMappingURL=BEEfw4u1.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.