PageSourceSearch

https://ws-neuburg.de/build/747.fab9f87f.js

js ws-neuburg.de collected 2026-09-27 03:05:18 UTC 254,281 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[747],{66747:(e,t,n)=>{function r(e){let t,n=e[0],r=1;for(;r<e.length;){const o=e[r],s=e[r+1];if(r+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return;"access"===o||"optionalAccess"===o?(t=n,n=s(n)):"call"!==o&&"optionalCall"!==o||(n=s((...e)=>n.call(t,...e)),t=void 0)}return n}n.d(t,{default:()=>ju});const o="8.55.0",s=globalThis;function i(e,t,n){const r=n||s,i=r.__SENTRY__=r.__SENTRY__||{},a=i[o]=i[o]||{};return a[e]||(a[e]=t())}const a=Object.prototype.toString;function c(e){switch(a.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return y(e,Error)}}function l(e,t){return a.call(e)===`[object ${t}]`}function u(e){return l(e,"ErrorEvent")}function d(e){return l(e,"DOMError")}function h(e){return l(e,"String")}function p(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function f(e){return null===e||p(e)||"object"!=typeof e&&"function"!=typeof e}function m(e){return l(e,"Object")}function g(e){return"undefined"!=typeof Event&&y(e,Event)}function _(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function y(e,t){try{return e instanceof t}catch(e){return!1}}function v(e){return!("object"!=typeof e||null===e||!e.__isVue&&!e._isVue)}const b=s,S=80;function k(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,o=[];let s=0,i=0;const a=" > ",c=a.length;let l;const u=Array.isArray(t)?t:t.keyAttrs,d=!Array.isArray(t)&&t.maxStringLength||S;for(;n&&s++<r&&(l=w(n,u),!("html"===l||s>1&&i+o.length*c+l.length>=d));)o.push(l),i+=l.length,n=n.parentNode;return o.reverse().join(a)}catch(e){return"<unknown>"}}function w(e,t){const n=e,r=[];if(!n||!n.tagName)return"";if(b.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());const o=t&&t.length?t.filter(e=>n.getAttribute(e)).map(e=>[e,n.getAttribute(e)]):null;if(o&&o.length)o.forEach(e=>{r.push(`[${e[0]}="${e[1]}"]`)});else{n.id&&r.push(`#${n.id}`);const e=n.className;if(e&&h(e)){const t=e.split(/\s+/);for(const e of t)r.push(`.${e}`)}}const s=["aria-label","type","name","title","alt"];for(const e of s){const t=n.getAttribute(e);t&&r.push(`[${e}="${t}"]`)}return r.join("")}function E(){try{return b.document.location.href}catch(e){return""}}const x="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,C=["debug","info","warn","error","log","assert","trace"],T={};function I(e){if(!("console"in s))return e();const t=s.console,n={},r=Object.keys(T);r.forEach(e=>{const r=T[e];n[e]=t[e],t[e]=r});try{return e()}finally{r.forEach(e=>{t[e]=n[e]})}}const M=i("logger",function(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return x?C.forEach(n=>{t[n]=(...t)=>{e&&I(()=>{s.console[n](`Sentry Logger [${n}]:`,...t)})}}):C.forEach(e=>{t[e]=()=>{}}),t});function R(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function D(e,t){if(!Array.isArray(e))return"";const n=[];for(let t=0;t<e.length;t++){const r=e[t];try{v(r)?n.push("[VueViewModel]"):n.push(String(r))}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)}function A(e,t,n=!1){return!!h(e)&&(l(t,"RegExp")?t.test(e):!!h(t)&&(n?e===t:e.includes(t)))}function O(e,t=[],n=!1){return t.some(t=>A(e,t,n))}function N(e,t,n){if(!(t in e))return;const r=e[t],o=n(r);"function"==typeof o&&P(o,r);try{e[t]=o}catch(n){x&&M.log(`Failed to replace method "${t}" in object`,e)}}function L(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch(n){x&&M.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function P(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,L(e,"__sentry_original__",t)}catch(e){}}function F(e){return e.__sentry_original__}function $(e){if(c(e))return{message:e.message,name:e.name,stack:e.stack,...U(e)};if(g(e)){const t={type:e.type,target:B(e.target),currentTarget:B(e.currentTarget),...U(e)};return"undefined"!=typeof CustomEvent&&y(e,CustomEvent)&&(t.detail=e.detail),t}return e}function B(e){try{return t=e,"undefined"!=typeof Element&&y(t,Element)?k(e):Object.prototype.toString.call(e)}catch(e){return"<unknown>"}var t}function U(e){if("object"==typeof e&&null!==e){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}return{}}function j(e){return H(e,new Map)}function H(e,t){if(function(e){if(!m(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch(e){return!0}}(e)){const n=t.get(e);if(void 0!==n)return n;const r={};t.set(e,r);for(const n of Object.getOwnPropertyNames(e))void 0!==e[n]&&(r[n]=H(e[n],t));return r}if(Array.isArray(e)){const n=t.get(e);if(void 0!==n)return n;const r=[];
1return t.set(e,r),e.forEach(e=>{r.push(H(e,t))}),r}return e}const z=50,W="?",q=/\(error: (.*)\)/,Y=/captureMessage|captureException/;function V(...e){const t=e.sort((e,t)=>e[0]-t[0]).map(e=>e[1]);return(e,n=0,r=0)=>{const o=[],s=e.split("\n");for(let e=n;e<s.length;e++){const n=s[e];if(n.length>1024)continue;const i=q.test(n)?n.replace(q,"$1"):n;if(!i.match(/\S*Error: /)){for(const e of t){const t=e(i);if(t){o.push(t);break}}if(o.length>=z+r)break}}return function(e){if(!e.length)return[];const t=Array.from(e);/sentryWrapped/.test(X(t).function||"")&&t.pop();t.reverse(),Y.test(X(t).function||"")&&(t.pop(),Y.test(X(t).function||"")&&t.pop());return t.slice(0,z).map(e=>({...e,filename:e.filename||X(t).filename,function:e.function||W}))}(o.slice(r))}}function X(e){return e[e.length-1]||{}}const G="<anonymous>";function K(e){try{return e&&"function"==typeof e&&e.name||G}catch(e){return G}}function J(e){const t=e.exception;if(t){const e=[];try{return t.values.forEach(t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)}),e}catch(e){return}}}function Q(e,t=100,n=1/0){try{return ee("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function Z(e,t=3,n=102400){const r=Q(e,t);return o=r,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(o))>n?Z(e,t-1,n):r;var o}function ee(e,t,n=1/0,r=1/0,o=function(){const e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(n){if(e)return!!t.has(n)||(t.add(n),!1);for(let e=0;e<t.length;e++)if(t[e]===n)return!0;return t.push(n),!1},function(n){if(e)t.delete(n);else for(let e=0;e<t.length;e++)if(t[e]===n){t.splice(e,1);break}}]}()){const[s,i]=o;if(null==t||["boolean","string"].includes(typeof t)||"number"==typeof t&&Number.isFinite(t))return t;const a=function(e,t){try{if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if("undefined"!=typeof global&&t===global)return"[Global]";if("undefined"!=typeof window&&t===window)return"[Window]";if("undefined"!=typeof document&&t===document)return"[Document]";if(v(t))return"[VueViewModel]";if(m(n=t)&&"nativeEvent"in n&&"preventDefault"in n&&"stopPropagation"in n)return"[SyntheticEvent]";if("number"==typeof t&&!Number.isFinite(t))return`[${t}]`;if("function"==typeof t)return`[Function: ${K(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;const r=function(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}(t);return/^HTML(\w*)Element$/.test(r)?`[HTMLElement: ${r}]`:`[object ${r}]`}catch(e){return`**non-serializable** (${e})`}var n}(e,t);if(!a.startsWith("[object "))return a;if(t.__sentry_skip_normalization__)return t;const c="number"==typeof t.__sentry_override_normalization_depth__?t.__sentry_override_normalization_depth__:n;if(0===c)return a.replace("object ","");if(s(t))return"[Circular ~]";const l=t;if(l&&"function"==typeof l.toJSON)try{return ee("",l.toJSON(),c-1,r,o)}catch(e){}const u=Array.isArray(t)?[]:{};let d=0;const h=$(t);for(const e in h){if(!Object.prototype.hasOwnProperty.call(h,e))continue;if(d>=r){u[e]="[MaxProperties ~]";break}const t=h[e];u[e]=ee(e,t,c-1,r,o),d++}return i(t),u}function te(){return Date.now()/1e3}const ne=function(){const{performance:e}=s;if(!e||!e.now)return te;const t=Date.now()-e.now(),n=null==e.timeOrigin?t:e.timeOrigin;return()=>(n+e.now())/1e3}();let re;const oe=(()=>{const{performance:e}=s;if(!e||!e.now)return void(re="none");const t=36e5,n=e.now(),r=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,i=o<t,a=e.timing&&e.timing.navigationStart,c="number"==typeof a?Math.abs(a+n-r):t;return i||c<t?o<=c?(re="timeOrigin",e.timeOrigin):(re="navigationStart",a):(re="dateNow",r)})();function se(){return ie(s),s}function ie(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||o,t[o]=t[o]||{}}function ae(){const e=s,t=e.crypto||e.msCrypto;let n=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch(e){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,e=>(e^(15&n())>>e/4).toString(16))}function ce(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function le(e){const{message:t,event_id:n}=e;if(t)return t;const r=ce(e);return r?r.type&&r.value?`${r.type}: ${r.value}
1`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function ue(e,t,n){const r=e.exception=e.exception||{},o=r.values=r.values||[],s=o[0]=o[0]||{};s.value||(s.value=t||""),s.type||(s.type=n||"Error")}function de(e,t){const n=ce(e);if(!n)return;const r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){const e={...r&&r.data,...t.data};n.mechanism.data=e}}function he(e){if(function(e){try{return e.__sentry_captured__}catch(e){}}(e))return!0;try{L(e,"__sentry_captured__",!0)}catch(e){}return!1}function pe(e){const t=ne(),n={sid:ae(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return j({sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}(n)};return e&&fe(n,e),n}function fe(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||ne(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:ae()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{const t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function me(){return ae()}function ge(){return ae().substring(16)}function _e(e,t,n=2){if(!t||"object"!=typeof t||n<=0)return t;if(e&&t&&0===Object.keys(t).length)return e;const r={...e};for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=_e(r[e],t[e],n-1));return r}const ye="_sentrySpan";function ve(e,t){t?L(e,ye,t):delete e[ye]}function be(e){return e[ye]}class Se{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:me(),spanId:ge()}}clone(){const e=new Se;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,ve(e,be(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&fe(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}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 null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const t="function"==typeof e?e(this):e,[n,r]=t instanceof ke?[t.getScopeData(),t.getRequestSession()]:m(t)?[e,e.requestSession]:[],{tags:o,extra:s,user:i,contexts:a,level:c,fingerprint:l=[],propagationContext:u}=n||{};return this._tags={...this._tags,...o},this._extra={...this._extra,...s},this._contexts={...this._contexts,...a},i&&Object.keys(i).length&&(this._user=i),c&&(this._level=c),l.length&&(this._fingerprint=l),u&&(this._propagationContext=u),r&&(this._requestSession=r),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._requestSession=void 0,this._session=void 0,ve(this,void 0),this._attachments=[],this.setPropagationContext({traceId:me()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){const n="number"==typeof t?t:100;if(n<=0)return this;const r={timestamp:te(),...e};return this._breadcrumbs.push(r),this._breadcrumbs.length>n&&(this._breadcrumbs=this._breadcrumbs.slice(-n),this._client&&this._client.re
vendor: 14,903 bytes, line 1
1cordDroppedEvent("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:be(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=_e(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext={spanId:ge(),...e},this}getPropagationContext(){return this._propagationContext}captureException(e,t){const n=t&&t.event_id?t.event_id:ae();if(!this._client)return M.warn("No client configured on scope - will not capture exception!"),n;const r=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){const r=n&&n.event_id?n.event_id:ae();if(!this._client)return M.warn("No client configured on scope - will not capture message!"),r;const o=new Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:o,...n,event_id:r},this),r}captureEvent(e,t){const n=t&&t.event_id?t.event_id:ae();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(M.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}}const ke=Se;class we{constructor(e,t){let n,r;n=e||new ke,r=t||new ke,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){const t=this._pushScope();let n;try{n=e(t)}catch(e){throw this._popScope(),e}return _(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(){const e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function Ee(){const e=ie(se());return e.stack=e.stack||new we(i("defaultCurrentScope",()=>new ke),i("defaultIsolationScope",()=>new ke))}function xe(e){return Ee().withScope(e)}function Ce(e,t){const n=Ee();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function Te(e){return Ee().withScope(()=>e(Ee().getIsolationScope()))}function Ie(e){const t=ie(e);return t.acs?t.acs:{withIsolationScope:Te,withScope:xe,withSetScope:Ce,withSetIsolationScope:(e,t)=>Te(t),getCurrentScope:()=>Ee().getScope(),getIsolationScope:()=>Ee().getIsolationScope()}}function Me(){return Ie(se()).getCurrentScope()}function Re(){return Ie(se()).getIsolationScope()}function De(){return i("globalScope",()=>new ke)}function Ae(){return Me().getClient()}function Oe(e){const t=e.getPropagationContext(),{traceId:n,spanId:r,parentSpanId:o}=t;return j({trace_id:n,span_id:r,parent_span_id:o})}const Ne=100;function Le(e,t){const n=Ae(),r=Re();if(!n)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:s=Ne}=n.getOptions();if(s<=0)return;const i={timestamp:te(),...e},a=o?I(()=>o(i,t)):i;null!==a&&(n.emit&&n.emit("beforeAddBreadcrumb",a,t),r.addBreadcrumb(a,s))}function Pe(e){return"warn"===e?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}const Fe="production",$e="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;var Be;function Ue(e){return new He(t=>{t(e)})}function je(e){return new He((t,n)=>{n(e)})}!function(e){e[e.PENDING=0]="PENDING";e[e.RESOLVED=1]="RESOLVED";e[e.REJECTED=2]="REJECTED"}(Be||(Be={}));class He{constructor(e){He.prototype.__init.call(this),He.prototype.__init2.call(this),He.prototype.__init3.call(this),He.prototype.__init4.call(this),this._state=Be.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new He((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){r(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){r(e)}else r(e)}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(e){return new He((t,n)=>{let r,o;return this.then(t=>{o=!1,r=t,e&&e()},t=>{o=!0,r=t,e&&e()}).then(()=>{o?n(r):t(r)})})}__init(){this._resolve=e=>{this._setResult(Be.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(Be.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{this._state===Be.PENDING&&(_(t)?t.then(this._resolve,this._reject):(this._state=e,this._value=t,this._executeHandlers()))}}__init4(){this._executeHandlers=()=>{if(this._state===Be.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||(this._state===Be.RESOLVED&&e[1](this._value),this._state===Be.REJECTED&&e[2](this._value),e[0]=!0)})}}}function ze(e,t,n,r=0){return new He((o,s)=>{const i=e[r];if(null===t||"function"!=typeof i)o(t);else{const a=i({...t},n);$e&&i.id&&null===a&&M.log(`Event processor "${i.id}" dropped event`),_(a)?a.then(t=>ze(e,t,n,r+1).then(o)).then(null,s):ze(e,a,n,r+1).then(o).then(null,s)}})}let We,qe,Ye;function Ve(e){const t=s._sentryDebugIds;if(!t)return{};const n=Object.keys(t);return Ye&&n.length===qe||(qe=n.length,Ye=n.reduce((n,r)=>{We||(We={});const o=We[r];if(o)n[o[0]]=o[1];else{const o=e(r);for(let e=o.length-1;e>=0;e--){const s=o[e],i=s&&s.filename,a=t[r];if(i&&a){n[i]=a,We[r]=[i,a];break}}}return n},{})),Ye}const Xe="sentry.source",Ge=/^sentry-/;function Ke(e){const t=function(e){if(!e||!h(e)&&!Array.isArray(e))return;if(Array.isArray(e))return e.reduce((e,t)=>{const n=Je(t);return Object.entries(n).forEach(([t,n])=>{e[t]=n}),e},{});return Je(e)}(e);if(!t)return;const n=Object.entries(t).reduce((e,[t,n])=>{if(t.match(Ge)){e[t.slice(7)]=n}return e},{});return Object.keys(n).length>0?n:void 0}function Je(e){return e.split(",").map(e=>e.split("=").map(e=>decodeURIComponent(e.trim()))).reduce((e,[t,n])=>(t&&n&&(e[t]=n),e),{})}const Qe="_sentryMetrics";function Ze(e){const t=e[Qe];if(!t)return;const n={};for(const[,[e,r]]of t){(n[e]||(n[e]=[])).push(j(r))}return n}let et=!1;function tt(e){const{spanId:t,traceId:n,isRemote:r}=e.spanContext();return j({parent_span_id:r?t:ot(e).parent_span_id,span_id:r?ge():t,trace_id:n})}function nt(e){return"number"==typeof e?rt(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?rt(e.getTime()):ne()}function rt(e){return e>9999999999?e/1e3:e}function ot(e){if(function(e){return"function"==typeof e.getSpanJSON}(e))return e.getSpanJSON();try{const{spanId:t,traceId:n}=e.spanContext();if(function(e){const t=e;return!!(t.attributes&&t.startTime&&t.name&&t.endTime&&t.status)}(e)){const{attributes:r,startTime:o,name:s,endTime:i,parentSpanId:a,status:c}=e;return j({span_id:t,trace_id:n,data:r,description:s,parent_span_id:a,start_timestamp:nt(o),timestamp:nt(i)||void 0,status:it(c),op:r["sentry.op"],origin:r["sentry.origin"],_metrics_summary:Ze(e)})}return{span_id:t,trace_id:n}}catch(e){return{}}}function st(e){const{traceFlags:t}=e.spanContext();return 1===t}function it(e){if(e&&0!==e.code)return 1===e.code?"ok":e.message||"unknown_error"}const at="_sentryRootSpan";function ct(e){return e[at]||e}function lt(){const e=Ie(se());return e.getActiveSpan?e.getActiveSpan():be(Me())}function ut(){et||(I(()=>{console.warn("[Sentry] Deprecation warning: Returning null from `beforeSendSpan` will be disallowed from SDK version 9.0.0 onwards. The callback will only support mutating spans. To drop certain spans, configure the respective integrations directly.")}),et=!0)}const dt="_frozenDsc";function ht(e,t){const n=t.getOptions(),{publicKey:r}=t.getDsn()||{},o=j({environment:n.environment||Fe,release:n.release,public_key:r,trace_id:e});return t.emit("createDsc",o),o}function pt(e){const t=Ae();if(!t)return{};const n=ct(e),r=n[dt];if(r)return r;const o=n.spanContext().traceState,s=o&&o.get("sentry.dsc"),i=s&&Ke(s);if(i)return i;const a=ht(e.spanContext().traceId,t),c=ot(n),l=c.data||{},u=l["sentry.sample_rate"];null!=u&&(a.sample_rate=`${u}`);const d=l[Xe],h=c.description;return"url"!==d&&h&&(a.transaction=h),function(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const t=Ae(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}()&&(a.sampled=String(st(n))),t.emit("createDsc",a,n),a}function ft(e,t){const{fingerprint:n,span:r,breadcrumbs:o,sdkProcessingMetadata:s}=t;!function(e,t){const{extra:n,tags:r,user:o,contexts:s,level:i,transactionName:a}=t,c=j(n);c&&Object.keys(c).length&&(e.extra={...c,...e.extra});const l=j(r);l&&Object.keys(l).length&&(e.tags={...l,...e.tags});const u=j(o);u&&Object.keys(u).length&&(e.user={...u,...e.user});const d=j(s);d&&Object.keys(d).length&&(e.contexts={...d,...e.contexts});i&&(e.level=i);a&&"transaction"!==e.type&&(e.transaction=a)}(e,t),r&&function(e,t){e.contexts={trace:tt(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:pt(t),...e.sdkProcessingMetadata};const n=ct(t),r=ot(n).description;r&&!e.transaction&&"transaction"===e.type&&(e.transaction=r)}(e,r),function(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t));e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}(e,n),function(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}(e,o),function(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}(e,s)}function mt(e,t){const{extra:n,tags:r,user:o,contexts:s,level:i,sdkProcessingMetadata:a,breadcrumbs:c,fingerprint:l,eventProcessors:u,attachments:d,propagationContext:h,transactionName:p,span:f}=t;gt(e,"extra",n),gt(e,"tags",r),gt(e,"user",o),gt(e,"contexts",s),e.sdkProcessingMetadata=_e(e.sdkProcessingMetadata,a,2),i&&(e.level=i),p&&(e.transactionName=p),f&&(e.span=f),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,...h}}function gt(e,t,n){e[t]=_e(e[t],n,1)}function _t(e,t,n,r,o,s){const{normalizeDepth:i=3,normalizeMaxBreadth:a=1e3}=e,c={...t,event_id:t.event_id||n.event_id||ae(),timestamp:t.timestamp||te()},l=n.integrations||e.integrations.map(e=>e.name);!function(e,t){const{environment:n,release:r,dist:o,maxValueLength:s=250}=t;e.environment=e.environment||n||Fe,!e.release&&r&&(e.release=r);!e.dist&&o&&(e.dist=o);e.message&&(e.message=R(e.message,s));const i=e.exception&&e.exception.values&&e.exception.values[0];i&&i.value&&(i.value=R(i.value,s));const a=e.request;a&&a.url&&(a.url=R(a.url,s))}(c,e),function(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}(c,l),o&&o.emit("applyFrameMetadata",t),void 0===t.type&&function(e,t){const n=Ve(t);try{e.exception.values.forEach(e=>{e.stacktrace.frames.forEach(e=>{n&&e.filename&&(e.debug_id=n[e.filename])})})}catch(e){}}(c,e.stackParser);const u=function(e,t){if(!t)return e;const n=e?e.clone():new ke;return n.update(t),n}(r,n.captureContext);n.mechanism&&de(c,n.mechanism);const d=o?o.getEventProcessors():[],h=De().getScopeData();if(s){mt(h,s.getScopeData())}if(u){mt(h,u.getScopeData())}const p=[...n.attachments||[],...h.attachments];p.length&&(n.attachments=p),ft(c,h);return ze([...d,...h.eventProcessors],c,n).then(e=>(e&&function(e){const t={};try{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)})})}catch(e){}if(0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.entries(t).forEach(([e,t])=>{n.push({type:"sourcemap",code_file:e,debug_id:t})})}(e),"number"==typeof i&&i>0?function(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:Q(e.data,t,n)}}))},...e.user&&{user:Q(e.user,t,n)},...e.contexts&&{contexts:Q(e.contexts,t,n)},...e.extra&&{extra:Q(e.extra,t,n)}};e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=Q(e.contexts.trace.data,t,n)));e.spans&&(r.spans=e.spans.map(e=>({...e,...e.data&&{data:Q(e.data,t,n)}})));e.contexts&&e.contexts.flags&&r.contexts&&(r.contexts.flags=Q(e.contexts.flags,3,n));return r}(e,i,a):e))}function yt(e){if(e)return function(e){return e instanceof ke||"function"==typeof e}(e)||function(e){return Object.keys(e).some(e=>vt.includes(e))}(e)?{captureContext:e}:e}const vt=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function bt(e,t){return Me().captureException(e,yt(t))}function St(e,t){return Me().captureEvent(e,t)}function kt(e){const t=Ae(),n=Re(),r=Me(),{release:o,environment:i=Fe}=t&&t.getOptions()||{},{userAgent:a}=s.navigator||{},c=pe({release:o,environment:i,user:r.getUser()||n.getUser(),...a&&{userAgent:a},...e}),l=n.getSession();return l&&"ok"===l.status&&fe(l,{status:"exited"}),wt(),n.setSession(c),r.setSession(c),c}function wt(){const e=Re(),t=Me(),n=t.getSession()||e.getSession();n&&function(e,t){let n={};t?n={status:t}:"ok"===e.status&&(n={status:"exited"}),fe(e,n)}(n),Et(),e.setSession(),t.setSession()}function Et(){const e=Re(),t=Me(),n=Ae(),r=t.getSession()||e.getSession();r&&n&&n.captureSession(r)}function xt(e=!1){e?wt():Et()}function Ct(e,t){const n=t&&t.getDsn(),r=t&&t.getOptions().tunnel;return function(e,t){return!!t&&e.includes(t.host)}(e,n)||function(e,t){if(!t)return!1;return Tt(e)===Tt(t)}(e,r)}function Tt(e){return"/"===e[e.length-1]?e.slice(0,-1):e}const It=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Mt(e,t=!1){const{host:n,path:r,pass:o,port:s,projectId:i,protocol:a,publicKey:c}=e;return`${a}://${c}${t&&o?`:${o}`:""}@${n}${s?`:${s}`:""}/${r?`${r}/`:r}${i}`}function Rt(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function Dt(e){const t="string"==typeof e?function(e){const t=It.exec(e);if(!t)return void I(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});const[n,r,o="",s="",i="",a=""]=t.slice(1);let c="",l=a;const u=l.split("/");if(u.length>1&&(c=u.slice(0,-1).join("/"),l=u.pop()),l){const e=l.match(/^\d+/);e&&(l=e[0])}return Rt({host:s,pass:o,path:c,projectId:l,port:i,protocol:n,publicKey:r})}(e):Rt(e);
1if(t&&function(e){if(!x)return!0;const{port:t,projectId:n,protocol:r}=e;return!(["protocol","publicKey","host","projectId"].find(t=>!e[t]&&(M.error(`Invalid Sentry Dsn: ${t} missing`),!0))||(n.match(/^\d+$/)?function(e){return"http"===e||"https"===e}(r)?t&&isNaN(parseInt(t,10))&&(M.error(`Invalid Sentry Dsn: Invalid port ${t}`),1):(M.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),1):(M.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),1)))}(t))return t}function At(e,t=[]){return[e,t]}function Ot(e,t){const[n,r]=e;return[n,[...r,t]]}function Nt(e,t){const n=e[1];for(const e of n){if(t(e,e[0].type))return!0}return!1}function Lt(e){return s.__SENTRY__&&s.__SENTRY__.encodePolyfill?s.__SENTRY__.encodePolyfill(e):(new TextEncoder).encode(e)}function Pt(e){const[t,n]=e;let r=JSON.stringify(t);function o(e){"string"==typeof r?r="string"==typeof e?r+e:[Lt(r),e]:r.push("string"==typeof e?Lt(e):e)}for(const e of n){const[t,n]=e;if(o(`\n${JSON.stringify(t)}\n`),"string"==typeof n||n instanceof Uint8Array)o(n);else{let e;try{e=JSON.stringify(n)}catch(t){e=JSON.stringify(Q(n))}o(e)}}return"string"==typeof r?r:function(e){const t=e.reduce((e,t)=>e+t.length,0),n=new Uint8Array(t);let r=0;for(const t of e)n.set(t,r),r+=t.length;return n}(r)}function Ft(e){const t="string"==typeof e.data?Lt(e.data):e.data;return[j({type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),t]}const $t={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",statsd:"metric_bucket",raw_security:"security"};function Bt(e){return $t[e]}function Ut(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function jt(e,t,n,r){const o=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:Mt(r)},...o&&{trace:j({...o})}}}const Ht=6e4;function zt(e,t,n=Date.now()){return function(e,t){return e[t]||e.all||0}(e,t)>n}function Wt(e,{statusCode:t,headers:n},r=Date.now()){const o={...e},s=n&&n["x-sentry-rate-limits"],i=n&&n["retry-after"];if(s)for(const e of s.trim().split(",")){const[t,n,,,s]=e.split(":",5),i=parseInt(t,10),a=1e3*(isNaN(i)?60:i);if(n)for(const e of n.split(";"))"metric_bucket"===e&&s&&!s.split(";").includes("custom")||(o[e]=r+a);else o.all=r+a}else i?o.all=r+function(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;const r=Date.parse(`${e}`);return isNaN(r)?Ht:r-t}(i,r):429===t&&(o.all=r+6e4);return o}function qt(){return!("undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function Yt(){return"undefined"!=typeof window&&(!qt()||function(){const e=s.process;return!!e&&"renderer"===e.type}())}function Vt(e){if("boolean"==typeof e)return Number(e);const t="string"==typeof e?parseFloat(e):e;if(!("number"!=typeof t||isNaN(t)||t<0||t>1))return t;$e&&M.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`)}const Xt=s;function Gt(){if(!("fetch"in Xt))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}function Kt(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}const Jt="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,Qt=s,Zt={};function en(e){const t=Zt[e];if(t)return t;let n=Qt[e];if(Kt(n))return Zt[e]=n.bind(Qt);const r=Qt.document;if(r&&"function"==typeof r.createElement)try{const t=r.createElement("iframe");t.hidden=!0,r.head.appendChild(t);const o=t.contentWindow;o&&o[e]&&(n=o[e]),r.head.removeChild(t)}catch(t){Jt&&M.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,t)}return n?Zt[e]=n.bind(Qt):n}function tn(e){Zt[e]=void 0}function nn(...e){return en("setTimeout")(...e)}
1const rn=(e,t,n,r)=>{let o,s;return i=>{t.value>=0&&(i||r)&&(s=t.value-(o||0),(s||void 0===o)&&(o=t.value,t.delta=s,t.rating=((e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good")(t.value,n),e(t)))}},on=(e=!0)=>{const t=Qt.performance&&Qt.performance.getEntriesByType&&Qt.performance.getEntriesByType("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t},sn=()=>{const e=on();return e&&e.activationStart||0},an=(e,t)=>{const n=on();let r="navigate";n&&(Qt.document&&Qt.document.prerendering||sn()>0?r="prerender":Qt.document&&Qt.document.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-")));return{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:`v4-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:r}},cn=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver(e=>{Promise.resolve().then(()=>{t(e.getEntries())})});return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch(e){}},ln=e=>{const t=t=>{("pagehide"===t.type||Qt.document&&"hidden"===Qt.document.visibilityState)&&e(t)};Qt.document&&(addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0))},un=e=>{let t=!1;return()=>{t||(e(),t=!0)}};let dn=-1;const hn=e=>{"hidden"===Qt.document.visibilityState&&dn>-1&&(dn="visibilitychange"===e.type?e.timeStamp:0,pn())},pn=()=>{removeEventListener("visibilitychange",hn,!0),removeEventListener("prerenderingchange",hn,!0)},fn=()=>(Qt.document&&dn<0&&(dn="hidden"!==Qt.document.visibilityState||Qt.document.prerendering?1/0:0,addEventListener("visibilitychange",hn,!0),addEventListener("prerenderingchange",hn,!0)),{get firstHiddenTime(){return dn}}),mn=e=>{Qt.document&&Qt.document.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},gn=[1800,3e3],_n=[.1,.25],yn=(e,t={})=>{((e,t={})=>{mn(()=>{const n=fn(),r=an("FCP");let o;const s=cn("paint",e=>{e.forEach(e=>{"first-contentful-paint"===e.name&&(s.disconnect(),e.startTime<n.firstHiddenTime&&(r.value=Math.max(e.startTime-sn(),0),r.entries.push(e),o(!0)))})});s&&(o=rn(e,r,gn,t.reportAllChanges))})})(un(()=>{const n=an("CLS",0);let r,o=0,s=[];const i=e=>{e.forEach(e=>{if(!e.hadRecentInput){const t=s[0],n=s[s.length-1];o&&t&&n&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(o+=e.value,s.push(e)):(o=e.value,s=[e])}}),o>n.value&&(n.value=o,n.entries=s,r())},a=cn("layout-shift",i);a&&(r=rn(e,n,_n,t.reportAllChanges),ln(()=>{i(a.takeRecords()),r(!0)}),setTimeout(r,0))}))},vn=[100,300];let bn=0,Sn=1/0,kn=0;const wn=e=>{e.forEach(e=>{e.interactionId&&(Sn=Math.min(Sn,e.interactionId),kn=Math.max(kn,e.interactionId),bn=kn?(kn-Sn)/7+1:0)})};let En;const xn=()=>{"interactionCount"in performance||En||(En=cn("event",wn,{type:"event",buffered:!0,durationThreshold:0}))},Cn=[],Tn=new Map;const In=()=>(En?bn:performance.interactionCount||0)-0,Mn=[],Rn=e=>{if(Mn.forEach(t=>t(e)),!e.interactionId&&"first-input"!==e.entryType)return;const t=Cn[Cn.length-1],n=Tn.get(e.interactionId);if(n||Cn.length<10||t&&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]&&n.entries[0].startTime)&&n.entries.push(e);else{const t={id:e.interactionId,latency:e.duration,entries:[e]};Tn.set(t.id,t),Cn.push(t)}Cn.sort((e,t)=>t.latency-e.latency),Cn.length>10&&Cn.splice(10).forEach(e=>Tn.delete(e.id))}},Dn=e=>{const t=Qt.requestIdleCallback||Qt.setTimeout;let n=-1;return e=un(e),Qt.document&&"hidden"===Qt.document.visibilityState?e():(n=t(e),ln(e)),n},An=[200,500],On=(e,t={})=>{"PerformanceEventTiming"in Qt&&"interactionId"in PerformanceEventTiming.prototype&&mn(()=>{xn();const n=an("INP");let r;const o=e=>{Dn(()=>{e.forEach(Rn);const t=(()=>{const e=Math.min(Cn.length-1,Math.floor(In()/50));return Cn[e]})();t&&t.latency!==n.value&&(n.value=t.latency,n.entries=t.entries,r())})},s=cn("event",o,{durationThreshold:null!=t.durationThreshold?t.durationThreshold:40});r=rn(e,n,An,t.reportAllChanges),s&&(s.observe({type:"first-input",buffered:!0}),ln(()=>{o(s.takeRecords()),r(!0)}))})},Nn=[2500,4e3],Ln={},Pn={},Fn={};let $n,Bn,Un,jn;function Hn(e,t){return Gn(e,t),Fn[e]||(!function(e){const t={};"event"===e&&(t.durationThreshold=0);cn(e,t=>{zn(e,{entries:t})},t)}(e),Fn[e]=!0),Kn(e,t)}function zn(e,t){const n=Pn[e];if(n&&n.length)for(const r of n)try{r(t)}catch(t){Jt&&M.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${K(r)}\nError:`,t)}}function Wn(){return yn(e=>{zn("cls",{metric:e}),$n=e},{reportAllChanges:!0})}function qn(){return((e,t={})=>{mn(()=>{const n=fn(),r=an("FID");let o;const s=e=>{e.startTime<n.firstHiddenTime&&(r.value=e.processingStart-e.startTime,r.entries.push(e),o(!0))},i=e=>{e.forEach(s)},a=cn("first-input",i);o=rn(e,r,vn,t.reportAllChanges),a&&ln(un(()=>{i(a.takeRecords()),a.disconnect()}))})})(e=>{zn("fid",{metric:e}),Bn=e})}function Yn(){return((e,t={})=>{mn(()=>{const n=fn(),r=an("LCP");let o;const s=e=>
1{t.reportAllChanges||(e=e.slice(-1)),e.forEach(e=>{e.startTime<n.firstHiddenTime&&(r.value=Math.max(e.startTime-sn(),0),r.entries=[e],o())})},i=cn("largest-contentful-paint",s);if(i){o=rn(e,r,Nn,t.reportAllChanges);const n=un(()=>{Ln[r.id]||(s(i.takeRecords()),i.disconnect(),Ln[r.id]=!0,o(!0))});["keydown","click"].forEach(e=>{Qt.document&&addEventListener(e,()=>Dn(n),{once:!0,capture:!0})}),ln(n)}})})(e=>{zn("lcp",{metric:e}),Un=e},{reportAllChanges:!0})}function Vn(){return On(e=>{zn("inp",{metric:e}),jn=e})}function Xn(e,t,n,r,o=!1){let s;return Gn(e,t),Fn[e]||(s=n(),Fn[e]=!0),r&&t({metric:r}),Kn(e,t,o?s:void 0)}function Gn(e,t){Pn[e]=Pn[e]||[],Pn[e].push(t)}function Kn(e,t,n){return()=>{n&&n();const r=Pn[e];if(!r)return;const o=r.indexOf(t);-1!==o&&r.splice(o,1)}}const Jn={},Qn={};function Zn(e,t){Jn[e]=Jn[e]||[],Jn[e].push(t)}function er(e,t){if(!Qn[e]){Qn[e]=!0;try{t()}catch(t){x&&M.error(`Error while instrumenting ${e}`,t)}}}function tr(e,t){const n=e&&Jn[e];if(n)for(const r of n)try{r(t)}catch(t){x&&M.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${K(r)}\nError:`,t)}}const nr="__sentry_xhr_v3__";function rr(){if(!Qt.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,n){const r=new Error,o=1e3*ne(),s=h(n[0])?n[0].toUpperCase():void 0,i=function(e){if(h(e))return e;try{return e.toString()}catch(e){}return}(n[1]);if(!s||!i)return e.apply(t,n);t[nr]={method:s,url:i,request_headers:{}},"POST"===s&&i.match(/sentry_key/)&&(t.__sentry_own_request__=!0);const a=()=>{const e=t[nr];if(e&&4===t.readyState){try{e.status_code=t.status}catch(e){}tr("xhr",{endTimestamp:1e3*ne(),startTimestamp:o,xhr:t,virtualError:r})}};return"onreadystatechange"in t&&"function"==typeof t.onreadystatechange?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply:(e,t,n)=>(a(),e.apply(t,n))}):t.addEventListener("readystatechange",a),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,n){const[r,o]=n,s=t[nr];return s&&h(r)&&h(o)&&(s.request_headers[r.toLowerCase()]=o),e.apply(t,n)}}),e.apply(t,n)}}),e.send=new Proxy(e.send,{apply(e,t,n){const r=t[nr];if(!r)return e.apply(t,n);void 0!==n[0]&&(r.body=n[0]);return tr("xhr",{startTimestamp:1e3*ne(),xhr:t}),e.apply(t,n)}})}let or,sr,ir;function ar(e){Zn("dom",e),er("dom",cr)}function cr(){if(!Qt.document)return;const e=tr.bind(null,"dom"),t=lr(e,!0);Qt.document.addEventListener("click",t,!1),Qt.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(t=>{const n=Qt[t],r=n&&n.prototype;r&&r.hasOwnProperty&&r.hasOwnProperty("addEventListener")&&(N(r,"addEventListener",function(t){return function(n,r,o){if("click"===n||"keypress"==n)try{const r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},s=r[n]=r[n]||{refCount:0};if(!s.handler){const r=lr(e);s.handler=r,t.call(this,n,r,o)}s.refCount++}catch(e){}return t.call(this,n,r,o)}}),N(r,"removeEventListener",function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{const n=this.__sentry_instrumentation_handlers__||{},o=n[t];o&&(o.refCount--,o.refCount<=0&&(e.call(this,t,o.handler,r),o.handler=void 0,delete n[t]),0===Object.keys(n).length&&delete this.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,n,r)}}))})}function lr(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=function(e){try{return e.target}catch(e){return null}}(n);if(function(e,t){return"keypress"===e&&(!t||!t.tagName||"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName&&!t.isContentEditable)}(n.type,r))return;L(n,"_sentryCaptured",!0),r&&!r._sentryId&&L(r,"_sentryId",ae());const o="keypress"===n.type?"input":n.type;if(!function(e){if(e.type!==sr)return!1;try{if(!e.target||e.target._sentryId!==ir)return!1}catch(e){}return!0}(n)){e({event:n,name:o,global:t}),sr=n.type,ir=r?r._sentryId:void 0}clearTimeout(or),or=Qt.setTimeout(()=>{ir=void 0,sr=void 0},1e3)}}const ur=s;let dr;function hr(e){const t="history";Zn(t,e),er(t,pr)}function pr(){if(!function(){const e=ur.chrome,t=e&&e.app&&e.app.runtime,n="history"in ur&&!!ur.history.pushState&&!!ur.history.replaceState;return!t&&n}())return;const e=Qt.onpopstate;function t(e){return function(...t){const n=t.length>2?t[2]:void 0;if(n){const e=dr,t=String(n);dr=t;tr("history",{from:e,to:t})}return e.apply(this,t)}}Qt.onpopstate=function(...t){const n=Qt.location.href,r=dr;dr=n;if(tr("history",{from:r,to:n}),e)try{return e.apply(this,t)}catch(e){}},N(Qt.history,"pushState",t),N(Qt.history,"replaceState",t)}const fr=s,mr="sentryReplaySession",gr="Unable to send Replay",_r=15e4,yr=5e3,vr=2e7,br=36e5;function Sr(e,t){return null!=e?e:t()}function kr(e){let t,n=e[0],r=1;for(;r<e.length;){const o=e[r],s=e[r+1];if(r+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return;"access"===o||"optionalAccess"===o?(t=n,n=s(n)):"call"!==o&&"optionalCall"!==o||(n=s((...e)=>n.call(t,...e)),t=void 0)}return n}var wr;function Er(e){const t=kr([e,"optionalAccess",e=>e.host]);return Boolean(kr([t,"optionalAccess",e=>e.shadowRoot])===e)}function xr(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function Cr(e){try{const n=e.rules||e.cssRules;return n?((t=Array.from(n,Tr).join("")).includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),t):null}catch(e){return null}var t}function Tr(e){let t;if(function(e){return"styleSheet"in e}(e))try{t=Cr(e.styleSheet)||function(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const 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(" ")+";"}(e)}catch(e){}else if(function(e){return"selectorText"in e}(e)){let t=e.cssText;const n=e.selectorText.includes(":"),r="string"==typeof e.style.all&&e.style.all;if(r&&(t=function(e){let t="";for(let n=0;n<e.style.length;n++){const r=e.style,o=r[n],s=r.getPropertyPriority(o);t+=`${o}:${r.getPropertyValue(o)}${s?" !important":""};`}return`${e.selectorText} { ${t} }`}(e)),n&&(t=function(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}(t)),n||r)return t}return t||e.cssText}!function(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"}(wr||(wr={}));class Ir{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(e){if(!e)return-1;return Sr(kr([this,"access",e=>e.getMeta,"call",t=>t(e),"optionalAccess",e=>e.id]),()=>-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){const t=this.getId(e);
1this.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){const n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){const n=this.getNode(e);if(n){const 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 Mr({maskInputOptions:e,tagName:t,type:n}){return"OPTION"===t&&(t="SELECT"),Boolean(e[t.toLowerCase()]||n&&e[n]||"password"===n||"INPUT"===t&&!n&&e.text)}function Rr({isMasked:e,element:t,value:n,maskInputFn:r}){let o=n||"";return e?(r&&(o=r(o,t)),"*".repeat(o.length)):o}function Dr(e){return e.toLowerCase()}function Ar(e){return e.toUpperCase()}const Or="__rrweb_original__";function Nr(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?Dr(t):null}function Lr(e,t,n){return"INPUT"!==t||"radio"!==n&&"checkbox"!==n?e.value:e.getAttribute("value")||""}function Pr(e,t){let n;try{n=new URL(e,Sr(t,()=>window.location.href))}catch(e){return null}return Sr(kr([n.pathname.match(/\.([0-9a-z]+)(?:$)/i),"optionalAccess",e=>e[1]]),()=>null)}const Fr={};function $r(e){const t=Fr[e];if(t)return t;const n=window.document;let r=window[e];if(n&&"function"==typeof n.createElement)try{const t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);const o=t.contentWindow;o&&o[e]&&(r=o[e]),n.head.removeChild(t)}catch(e){}return Fr[e]=r.bind(window)}function Br(...e){return $r("setTimeout")(...e)}function Ur(...e){return $r("clearTimeout")(...e)}function jr(e){try{return e.contentDocument}catch(e){}}let Hr=1;const zr=new RegExp("[^a-z0-9-_:]");function Wr(){return Hr++}let qr,Yr;const Vr=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Xr=/^(?:[a-z+]+:)?\/\//i,Gr=/^www\..*/i,Kr=/^(data:)([^,]*),(.*)/i;function Jr(e,t){return(e||"").replace(Vr,(e,n,r,o,s,i)=>{const a=r||s||i,c=n||o||"";if(!a)return e;if(Xr.test(a)||Gr.test(a))return`url(${c}${a}${c})`;if(Kr.test(a))return`url(${c}${a}${c})`;if("/"===a[0])return`url(${c}${function(e){let t="";return t=e.indexOf("//")>-1?e.split("/").slice(0,3).join("/"):e.split("/")[0],t=t.split("?")[0],t}(t)+a}${c})`;const l=t.split("/"),u=a.split("/");l.pop();for(const e of u)"."!==e&&(".."===e?l.pop():l.push(e));return`url(${c}${l.join("/")}${c})`})}const Qr=/^[^ \t\n\r\u000c]+/,Zr=/^[, \t\n\r\u000c]+/;const eo=new WeakMap;function to(e,t){return t&&""!==t.trim()?ro(e,t):t}function no(e){return Boolean("svg"===e.tagName||e.ownerSVGElement)}function ro(e,t){let n=eo.get(e);if(n||(n=e.createElement("a"),eo.set(e,n)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return n.setAttribute("href",t),n.href}function oo(e,t,n,r,o,s){return r?"src"===n||"href"===n&&("use"!==t||"#"!==r[0])||"xlink:href"===n&&"#"!==r[0]?to(e,r):"background"!==n||"table"!==t&&"td"!==t&&"th"!==t?"srcset"===n?function(e,t){if(""===t.trim())return t;let n=0;function r(e){let r;const o=e.exec(t.substring(n));return o?(r=o[0],n+=r.length,r):""}const o=[];for(;r(Zr),!(n>=t.length);){let s=r(Qr);if(","===s.slice(-1))s=to(e,s.substring(0,s.length-1)),o.push(s);else{let r="";s=to(e,s);let i=!1;for(;;){const e=t.charAt(n);if(""===e){o.push((s+r).trim());break}if(i)")"===e&&(i=!1);else{if(","===e){n+=1,o.push((s+r).trim());break}"("===e&&(i=!0)}r+=e,n+=1}}}return o.join(", ")}(e,r):"style"===n?Jr(r,ro(e)):"object"===t&&"data"===n?to(e,r):"function"==typeof s?s(n,r,o):r:to(e,r):r}function so(e,t,n){return("video"===e||"audio"===e)&&"autoplay"===t}function io(e,t,n=1/0,r=0){return e?e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:io(e.parentNode,t,n,r+1):-1}function ao(e,t){return n=>{const r=n;if(null===r)return!1;try{if(e)if("string"==typeof e){if(r.matches(`.${e}`))return!0}else if(function(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}(r,e))return!0;return!(!t||!r.matches(t))}catch(e){return!1}}}function co(e,t,n,r,o,s){try{const i=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===i)return!1;if("INPUT"===i.tagName){const e=i.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(e))return!0}let a=-1,c=-1;if(s){if(c=io(i,ao(r,o)),c<0)return!0;a=io(i,ao(t,n),c>=0?c:1/0)}else{if(a=io(i,ao(t,n)),a<0)return!1;c=io(i,ao(r,o),a>=0?a:1/0)}return a>=0?!(c>=0)||a<=c:!(c>=0)&&!!s}catch(e){}return!!s}function lo(e,t){const{doc:n,mirror:r,blockClass:o,blockSelector:s,unblockSelector:i,maskAllText:a,maskAttributeFn:c,maskTextClass:l,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:h,inlineStylesheet:p,maskInputOptions:f={},maskTextFn:m,maskInputFn:g,dataURLOptions:_={},inlineImages:y,recordCanvas:v,keepIframeSrcFn:b,newlyAddedElement:S=!1}=t,k=function(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return 1===n?void 0:n}(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:wr.Document,childNodes:[],compatMode:e.compatMode}:{type:wr.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:wr.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:k};case e.ELEMENT_NODE:return function(e,t){const{doc:n,blockClass:r,blockSelector:o,unblockSelector:s,inlineStylesheet:i,maskInputOptions:a={},maskAttributeFn:c,maskInputFn:l,dataURLOptions:u={},inlineImages:d,recordCanvas:h,keepIframeSrcFn:p,newlyAddedElement:f=!1,rootId:m,maskAllText:g,maskTextClass:_,unmaskTextClass:y,maskTextSelector:v,unmaskTextSelector:b}=t,S=function(e,t,n,r){try{if(r&&e.matches(r))return!1;if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}if(n)return e.matches(n)}catch(e){}return!1}(e,r,o,s),k=function(e){if(e instanceof HTMLFormElement)return"form";const t=Dr(e.tagName);return zr.test(t)?"div":t}(e);let w={};const E=e.attributes.length;for(let t=0;t<E;t++){const r=e.attributes[t];r.name&&!so(k,r.name,r.value)&&(w[r.name]=oo(n,k,Dr(r.name),r.value,e,c))}if("link"===k&&i){const t=Array.from(n.styleSheets).find(t=>t.href===e.href);let r=null;t&&(r=Cr(t)),r&&(w.rel=null,w.href=null,w.crossorigin=null,w._cssText=Jr(r,t.href))}if("style"===k&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const t=Cr(e.sheet);t&&(w._cssText=Jr(t,ro(n)))}if("input"===k||"textarea"===k||"select"===k||"option"===k){const t=e,n=Nr(t),r=Lr(t,Ar(k),n),o=t.checked;if("submit"!==n&&"button"!==n&&r){const e=co(t,_,v,y,b,Mr({type:n,tagName:Ar(k),maskInputOptions:a}));w.value=Rr({isMasked:e,element:t,value:r,maskInputFn:l})}o&&(w.checked=o)}"option"===k&&(e.selected&&!a.select?w.selected=!0:delete w.selected);if("canvas"===k&&h)if("2d"===e.__context)(function(e){const 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){const o=t.getImageData,s=Or in o?o[Or]:o;
1if(new Uint32Array(s.call(t,n,r,Math.min(50,e.width-n),Math.min(50,e.height-r)).data.buffer).some(e=>0!==e))return!1}return!0})(e)||(w.rr_dataURL=e.toDataURL(u.type,u.quality));else if(!("__context"in e)){const 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)&&(w.rr_dataURL=t)}if("img"===k&&d){qr||(qr=n.createElement("canvas"),Yr=qr.getContext("2d"));const t=e,r=t.currentSrc||t.getAttribute("src")||"<unknown-src>",o=t.crossOrigin,s=()=>{t.removeEventListener("load",s);try{qr.width=t.naturalWidth,qr.height=t.naturalHeight,Yr.drawImage(t,0,0),w.rr_dataURL=qr.toDataURL(u.type,u.quality)}catch(e){if("anonymous"!==t.crossOrigin)return t.crossOrigin="anonymous",void(t.complete&&0!==t.naturalWidth?s():t.addEventListener("load",s));console.warn(`Cannot inline img src=${r}! Error: ${e}`)}"anonymous"===t.crossOrigin&&(o?w.crossOrigin=o:t.removeAttribute("crossorigin"))};t.complete&&0!==t.naturalWidth?s():t.addEventListener("load",s)}"audio"!==k&&"video"!==k||(w.rr_mediaState=e.paused?"paused":"played",w.rr_mediaCurrentTime=e.currentTime);f||(e.scrollLeft&&(w.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(w.rr_scrollTop=e.scrollTop));if(S){const{width:t,height:n}=e.getBoundingClientRect();w={class:w.class,rr_width:`${t}px`,rr_height:`${n}px`}}"iframe"!==k||p(w.src)||(S||jr(e)||(w.rr_src=w.src),delete w.src);let x;try{customElements.get(k)&&(x=!0)}catch(e){}return{type:wr.Element,tagName:k,attributes:w,childNodes:[],isSVG:no(e)||void 0,needBlock:S,rootId:m,isCustom:x}}(e,{doc:n,blockClass:o,blockSelector:s,unblockSelector:i,inlineStylesheet:p,maskAttributeFn:c,maskInputOptions:f,maskInputFn:g,dataURLOptions:_,inlineImages:y,recordCanvas:v,keepIframeSrcFn:b,newlyAddedElement:S,rootId:k,maskAllText:a,maskTextClass:l,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:h});case e.TEXT_NODE:return function(e,t){const{maskAllText:n,maskTextClass:r,unmaskTextClass:o,maskTextSelector:s,unmaskTextSelector:i,maskTextFn:a,maskInputOptions:c,maskInputFn:l,rootId:u}=t,d=e.parentNode&&e.parentNode.tagName;let h=e.textContent;const p="STYLE"===d||void 0,f="SCRIPT"===d||void 0,m="TEXTAREA"===d||void 0;if(p&&h){try{e.nextSibling||e.previousSibling||kr([e,"access",e=>e.parentNode,"access",e=>e.sheet,"optionalAccess",e=>e.cssRules])&&(h=Cr(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}h=Jr(h,ro(t.doc))}f&&(h="SCRIPT_PLACEHOLDER");const g=co(e,r,s,o,i,n);p||f||m||!h||!g||(h=a?a(h,e.parentElement):h.replace(/[\S]/g,"*"));m&&h&&(c.textarea||g)&&(h=l?l(h,e.parentNode):h.replace(/[\S]/g,"*"));if("OPTION"===d&&h){h=Rr({isMasked:co(e,r,s,o,i,Mr({type:null,tagName:d,maskInputOptions:c})),element:e,value:h,maskInputFn:l})}return{type:wr.Text,textContent:h||"",isStyle:p,rootId:u}}(e,{doc:n,maskAllText:a,maskTextClass:l,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:h,maskTextFn:m,maskInputOptions:f,maskInputFn:g,rootId:k});case e.CDATA_SECTION_NODE:return{type:wr.CDATA,textContent:"",rootId:k};case e.COMMENT_NODE:return{type:wr.Comment,textContent:e.textContent||"",rootId:k};default:return!1}}function uo(e){return null==e?"":e.toLowerCase()}function ho(e,t){const{doc:n,mirror:r,blockClass:o,blockSelector:s,unblockSelector:i,maskAllText:a,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:h=!1,inlineStylesheet:p=!0,maskInputOptions:f={},maskAttributeFn:m,maskTextFn:g,maskInputFn:_,slimDOMOptions:y,dataURLOptions:v={},inlineImages:b=!1,recordCanvas:S=!1,onSerialize:k,onIframeLoad:w,iframeLoadTimeout:E=5e3,onStylesheetLoad:x,stylesheetLoadTimeout:C=5e3,keepIframeSrcFn:T=()=>!1,newlyAddedElement:I=!1}=t;let{preserveWhiteSpace:M=!0}=t;const R=lo(e,{doc:n,mirror:r,blockClass:o,blockSelector:s,maskAllText:a,unblockSelector:i,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,inlineStylesheet:p,maskInputOptions:f,maskAttributeFn:m,maskTextFn:g,maskInputFn:_,dataURLOptions:v,inlineImages:b,recordCanvas:S,keepIframeSrcFn:T,newlyAddedElement:I});if(!R)return console.warn(e,"not serialized"),null;let D;D=r.hasNode(e)?r.getId(e):!function(e,t){if(t.comment&&e.type===wr.Comment)return!0;
1if(e.type===wr.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===Pr(e.attributes.href)))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(uo(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===uo(e.attributes.name)||"icon"===uo(e.attributes.rel)||"apple-touch-icon"===uo(e.attributes.rel)||"shortcut icon"===uo(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&uo(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(uo(e.attributes.property).match(/^(og|twitter|fb):/)||uo(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===uo(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===uo(e.attributes.name)||"googlebot"===uo(e.attributes.name)||"bingbot"===uo(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===uo(e.attributes.name)||"generator"===uo(e.attributes.name)||"framework"===uo(e.attributes.name)||"publisher"===uo(e.attributes.name)||"progid"===uo(e.attributes.name)||uo(e.attributes.property).match(/^article:/)||uo(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===uo(e.attributes.name)||"yandex-verification"===uo(e.attributes.name)||"csrf-token"===uo(e.attributes.name)||"p:domain_verify"===uo(e.attributes.name)||"verify-v1"===uo(e.attributes.name)||"verification"===uo(e.attributes.name)||"shopify-checkout-api-token"===uo(e.attributes.name)))return!0}}return!1}(R,y)&&(M||R.type!==wr.Text||R.isStyle||R.textContent.replace(/^\s+|\s+$/gm,"").length)?Wr():-2;const A=Object.assign(R,{id:D});if(r.add(e,A),-2===D)return null;k&&k(e);let O=!h;if(A.type===wr.Element){O=O&&!A.needBlock,delete A.needBlock;const t=e.shadowRoot;t&&xr(t)&&(A.isShadowHost=!0)}if((A.type===wr.Document||A.type===wr.Element)&&O){y.headWhitespace&&A.type===wr.Element&&"head"===A.tagName&&(M=!1);const t={doc:n,mirror:r,blockClass:o,blockSelector:s,maskAllText:a,unblockSelector:i,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:h,inlineStylesheet:p,maskInputOptions:f,maskAttributeFn:m,maskTextFn:g,maskInputFn:_,slimDOMOptions:y,dataURLOptions:v,inlineImages:b,recordCanvas:S,preserveWhiteSpace:M,onSerialize:k,onIframeLoad:w,iframeLoadTimeout:E,onStylesheetLoad:x,stylesheetLoadTimeout:C,keepIframeSrcFn:T};for(const n of Array.from(e.childNodes)){const e=ho(n,t);e&&A.childNodes.push(e)}if(function(e){return e.nodeType===e.ELEMENT_NODE}(e)&&e.shadowRoot)for(const n of Array.from(e.shadowRoot.childNodes)){const r=ho(n,t);r&&(xr(e.shadowRoot)&&(r.isShadow=!0),A.childNodes.push(r))}}return e.parentNode&&Er(e.parentNode)&&xr(e.parentNode)&&(A.isShadow=!0),A.type===wr.Element&&"iframe"===A.tagName&&function(e,t,n){const r=e.contentWindow;if(!r)return;let o,s=!1;try{o=r.document.readyState}catch(e){return}if("complete"!==o){const r=Br(()=>{s||(t(),s=!0)},n);return void e.addEventListener("load",()=>{Ur(r),s=!0,t()})}const i="about:blank";if(r.location.href!==i||e.src===i||""===e.src)return Br(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}(e,()=>{const t=jr(e);if(t&&w){const n=ho(t,{doc:t,mirror:r,blockClass:o,blockSelector:s,unblockSelector:i,maskAllText:a,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:p,maskInputOptions:f,maskAttributeFn:m,maskTextFn:g,maskInputFn:_,slimDOMOptions:y,dataURLOptions:v,inlineImages:b,recordCanvas:S,preserveWhiteSpace:M,onSerialize:k,onIframeLoad:w,iframeLoadTimeout:E,onStylesheetLoad:x,stylesheetLoadTimeout:C,keepIframeSrcFn:T});n&&w(e,n)}},E),A.type===wr.Element&&"link"===A.tagName&&"string"==typeof A.attributes.rel&&("stylesheet"===A.attributes.rel||"preload"===A.attributes.rel&&"string"==typeof A.attributes.href&&"css"===Pr(A.attributes.href))&&function(e,t,n){let r,o=!1;try{r=e.sheet}catch(e){return}if(r)return;const s=Br(()=>{o||(t(),o=!0)},n);e.addEventListener("load",()=>{Ur(s),o=!0,t()})}(e,()=>{if(x){const t=ho(e,{doc:n,mirror:r,blockClass:o,blockSelector:s,unblockSelector:i,maskAllText:a,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:p,maskInputOptions:f,maskAttributeFn:m,maskTextFn:g,maskInputFn:_,slimDOMOptions:y,dataURLOptions:v,inlineImages:b,recordCanvas:S,preserveWhiteSpace:M,onSerialize:k,onIframeLoad:w,iframeLoadTimeout:E,onStylesheetLoad:x,stylesheetLoadTimeout:C,keepIframeSrcFn:T});t&&x(e,t)}},C),A}function po(e){let t,n=e[0],r=1;for(;r<e.length;){const o=e[r],s=e[r+1];if(r+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return;"access"===o||"optionalAccess"===o?(t=n,n=s(n)):"call"!==o&&"optionalCall"!==o||(n=s((...e)=>n.call(t,...e)),t=void 0)}return n}function fo(e,t,n=document){const r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}const mo="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.";let go={map:{},getId:()=>(console.error(mo),-1),getNode:()=>(console.error(mo),null),removeNodeFromMap(){console.error(mo)},has:()=>(console.error(mo),!1),reset(){console.error(mo)}};function _o(e,t,n={}){let r=null,o=0;return function(...s){const i=Date.now();o||!1!==n.leading||(o=i);const a=t-(i-o),c=this;a<=0||a>t?(r&&(!function(...e){Fo("clearTimeout")(...e)}
1(r),r=null),o=i,e.apply(c,s)):r||!1===n.trailing||(r=$o(()=>{o=!1===n.leading?0:Date.now(),r=null,e.apply(c,s)},a))}}function yo(e,t,n,r,o=window){const s=o.Object.getOwnPropertyDescriptor(e,t);return o.Object.defineProperty(e,t,r?n:{set(e){$o(()=>{n.set.call(this,e)},0),s&&s.set&&s.set.call(this,e)}}),()=>yo(e,t,s||{},!0)}function vo(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],o=n(r);return"function"==typeof o&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=o,()=>{e[t]=r}}catch(e){return()=>{}}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(go=new Proxy(go,{get:(e,t,n)=>("map"===t&&console.error(mo),Reflect.get(e,t,n))}));let bo=Date.now;function So(e){const t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:po([t,"optionalAccess",e=>e.documentElement,"access",e=>e.scrollLeft])||po([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.parentElement,"optionalAccess",e=>e.scrollLeft])||po([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.scrollLeft])||0,top:t.scrollingElement?t.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:po([t,"optionalAccess",e=>e.documentElement,"access",e=>e.scrollTop])||po([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.parentElement,"optionalAccess",e=>e.scrollTop])||po([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.scrollTop])||0}}function ko(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function wo(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Eo(e){if(!e)return null;return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}function xo(e,t,n,r,o){if(!e)return!1;const s=Eo(e);if(!s)return!1;const i=ao(t,n);if(!o){const e=r&&s.matches(r);return i(s)&&!e}const a=io(s,i);let c=-1;return!(a<0)&&(r&&(c=io(s,ao(null,r))),a>-1&&c<0||a<c)}function Co(e,t){return-2===t.getId(e)}function To(e,t){if(Er(e))return!1;const n=t.getId(e);return!t.has(n)||(!e.parentNode||e.parentNode.nodeType!==e.DOCUMENT_NODE)&&(!e.parentNode||To(e.parentNode,t))}function Io(e){return Boolean(e.changedTouches)}function Mo(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function Ro(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function Do(e){return Boolean(po([e,"optionalAccess",e=>e.shadowRoot]))}/[1-9][0-9]{12}/.test(Date.now().toString())||(bo=()=>(new Date).getTime());class Ao{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){return t=this.styleIDMap.get(e),n=()=>-1,null!=t?t:n();var t,n}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e);let n;return n=void 0===t?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 Oo(e){let t=null;return po([e,"access",e=>e.getRootNode,"optionalCall",e=>e(),"optionalAccess",e=>e.nodeType])===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function No(e){const t=e.ownerDocument;if(!t)return!1;const n=function(e){let t,n=e;for(;t=Oo(n);)n=t;return n}(e);return t.contains(n)}function Lo(e){const t=e.ownerDocument;return!!t&&(t.contains(e)||No(e))}const Po={};function Fo(e){const t=Po[e];if(t)return t;const n=window.document;let r=window[e];if(n&&"function"==typeof n.createElement)try{const t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);const o=t.contentWindow;o&&o[e]&&(r=o[e]),n.head.removeChild(t)}catch(e){}return Po[e]=r.bind(window)}function $o(...e){return Fo("setTimeout")(...e)}var Bo,Uo,jo=(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))(jo||{}),Ho=(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))(Ho||{}),zo=(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))(zo||{}),Wo=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(Wo||{});function qo(e){try{return e.contentDocument}catch(e){}}function Yo(e){let t,n=e[0],r=1;for(;r<e.length;){const o=e[r],s=e[r+1];if(r+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return;"access"===o||"optionalAccess"===o?(t=n,n=s(n)):"call"!==o&&"optionalCall"!==o||(n=s((...e)=>n.call(t,...e)),t=void 0)}return n}function Vo(e){return"__ln"in e}!function(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"}(Bo||(Bo={})),function(e){e[e.PLACEHOLDER=0]="PLACEHOLDER",e[e.ELEMENT_NODE=1]="ELEMENT_NODE",e[e.ATTRIBUTE_NODE=2]="ATTRIBUTE_NODE",e[e.TEXT_NODE=3]="TEXT_NODE",e[e.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",e[e.ENTITY_REFERENCE_NODE=5]="ENTITY_REFERENCE_NODE",e[e.ENTITY_NODE=6]="ENTITY_NODE",e[e.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",e[e.COMMENT_NODE=8]="COMMENT_NODE",e[e.DOCUMENT_NODE=9]="DOCUMENT_NODE",e[e.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",e[e.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE"}(Uo||(Uo={}));class Xo{constructor(){this.length=0,this.head=null,this.tail=null}get(e){if(e>=this.length)throw new Error("Position outside of list range");let t=this.head;for(let n=0;n<e;n++)t=Yo([t,"optionalAccess",e=>e.next])||null;return t}addNode(e){const t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&Vo(e.previousSibling)){const n=e.previousSibling.__ln.next;t.next=n,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,n&&
1(n.previous=t)}else if(e.nextSibling&&Vo(e.nextSibling)&&e.nextSibling.__ln.previous){const 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;null===t.next&&(this.tail=t),this.length++}removeNode(e){const 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--)}}const Go=(e,t)=>`${e}@${t}`;class Ko{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;const e=[],t=new Set,n=new Xo,r=e=>{let t=e,n=-2;for(;-2===n;)t=t&&t.nextSibling,n=t&&this.mirror.getId(t);return n},o=o=>{if(!o.parentNode||!Lo(o))return;const s=Er(o.parentNode)?this.mirror.getId(Oo(o)):this.mirror.getId(o.parentNode),i=r(o);if(-1===s||-1===i)return n.addNode(o);const a=ho(o,{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=>{Mo(e,this.mirror)&&!xo(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(e),Ro(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),Do(o)&&this.shadowDomManager.addShadowRoot(o.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{xo(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)}});a&&(e.push({parentId:s,nextId:i,node:a}),t.add(a.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const e of this.movedSet)Qo(this.removes,e,this.mirror)&&!this.movedSet.has(e.parentNode)||o(e);for(const e of this.addedSet)Zo(this.droppedSet,e)||Qo(this.removes,e,this.mirror)?Zo(this.movedSet,e)?o(e):this.droppedSet.add(e):o(e);let s=null;for(;n.length;){let e=null;if(s){const t=this.mirror.getId(s.value.parentNode),n=r(s.value);-1!==t&&-1!==n&&(e=s)}if(!e){let t=n.tail;for(;t;){const n=t;if(t=t.previous,n){const t=this.mirror.getId(n.value.parentNode);if(-1===r(n.value))continue;if(-1!==t){e=n;break}{const t=n.value;if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const r=t.parentNode.host;if(-1!==this.mirror.getId(r)){e=n;break}}}}}}if(!e){for(;n.head;)n.removeNode(n.head.value);break}s=e.previous,n.removeNode(e.value),o(e.value)}const i={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=>{const{attributes:t}=e;if("string"==typeof t.style){const 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};(i.texts.length||i.attributes.length||i.removes.length||i.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(i))},this.processMutation=e=>{if(!Co(e.target,this.mirror))switch(e.type){case"characterData":{const t=e.target.textContent;xo(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||t===e.oldValue||this.texts.push({value:co(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t,Eo(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{const t=e.target;let n=e.attributeName,r=e.target.getAttribute(n);if("value"===n){const n=Nr(t),o=t.tagName;r=Lr(t,o,n);const s=Mr({maskInputOptions:this.maskInputOptions,tagName:o,type:n});r=Rr({isMasked:co(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,s),element:t,value:r,maskInputFn:this.maskInputFn})}if(xo(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||r===e.oldValue)return;let o=this.attributeMap.get(e.target);
1if("IFRAME"===t.tagName&&"src"===n&&!this.keepIframeSrcFn(r)){if(qo(t))return;n="rr_src"}if(o||(o={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(o),this.attributeMap.set(e.target,o)),"type"===n&&"INPUT"===t.tagName&&"password"===(e.oldValue||"").toLowerCase()&&t.setAttribute("data-rr-is-password","true"),!so(t.tagName,n)&&(o.attributes[n]=oo(this.doc,Dr(t.tagName),Dr(n),r,t,this.maskAttributeFn),"style"===n)){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(e){this.unattachedDoc=this.doc}const n=this.unattachedDoc.createElement("span");e.oldValue&&n.setAttribute("style",e.oldValue);for(const e of Array.from(t.style)){const r=t.style.getPropertyValue(e),s=t.style.getPropertyPriority(e);r!==n.style.getPropertyValue(e)||s!==n.style.getPropertyPriority(e)?o.styleDiff[e]=""===s?r:[r,s]:o._unchangedStyles[e]=[r,s]}for(const e of Array.from(n.style))""===t.style.getPropertyValue(e)&&(o.styleDiff[e]=!1)}break}case"childList":if(xo(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;e.addedNodes.forEach(t=>this.genAdds(t,e.target)),e.removedNodes.forEach(t=>{const n=this.mirror.getId(t),r=Er(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);xo(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||Co(t,this.mirror)||!function(e,t){return-1!==t.getId(e)}(t,this.mirror)||(this.addedSet.has(t)?(Jo(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===n||To(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[Go(n,r)]?Jo(this.movedSet,t):this.removes.push({parentId:r,id:n,isShadow:!(!Er(e.target)||!xr(e.target))||void 0})),this.mapRemoves.push(t))})}},this.genAdds=(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!this.addedSet.has(e)&&!this.movedSet.has(e)){if(this.mirror.hasNode(e)){if(Co(e,this.mirror))return;this.movedSet.add(e);let n=null;t&&this.mirror.hasNode(t)&&(n=this.mirror.getId(t)),n&&-1!==n&&(this.movedMap[Go(this.mirror.getId(e),n)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);xo(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(e.childNodes.forEach(e=>this.genAdds(e)),Do(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"].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 Jo(e,t){e.delete(t),t.childNodes.forEach(t=>Jo(e,t))}function Qo(e,t,n){return 0!==e.length&&function(e,t,n){let r=t.parentNode;for(;r;){const t=n.getId(r);if(e.some(e=>e.id===t))return!0;r=r.parentNode}return!1}(e,t,n)}function Zo(e,t){return 0!==e.size&&es(e,t)}function es(e,t){const{parentNode:n}=t;return!!n&&(!!e.has(n)||es(e,n))}let ts;function ns(e){ts=e}function rs(){ts=void 0}const os=e=>{if(!ts)return e;return(...t)=>{try{return e(...t)}catch(e){if(ts&&!0===ts(e))return()=>{};throw e}}};function ss(e){let t,n=e[0],r=1;for(;r<e.length;){const o=e[r],s=e[r+1];if(r+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return;"access"===o||"optionalAccess"===o?(t=n,n=s(n)):"call"!==o&&"optionalCall"!==o||(n=s((...e)=>n.call(t,...e)),t=void 0)}return n}const is=[];function as(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch(e){}return e&&e.target}function cs(e,t){const n=new Ko;is.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver;const o=ss([window,"optionalAccess",e=>e.Zone,"optionalAccess",e=>e.__symbol__,"optionalCall",e=>e("MutationObserver")]);o&&window[o]&&(r=window[o]);const s=new r(os(t=>{e.onMutation&&!1===e.onMutation(t)||n.processMutations.bind(n)(t)}));return s.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),s}function ls({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:s,sampling:i}){if(!1===i.mouseInteraction)return()=>{};const a=!0===i.mouseInteraction||void 0===i.mouseInteraction?{}:i.mouseInteraction,c=[];let l=null;return Object.keys(zo).filter(e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==a[e]).forEac
1h(i=>{let a=Dr(i);const u=(t=>i=>{const a=as(i);if(xo(a,r,o,s,!0))return;let c=null,u=t;if("pointerType"in i){switch(i.pointerType){case"mouse":c=Wo.Mouse;break;case"touch":c=Wo.Touch;break;case"pen":c=Wo.Pen}c===Wo.Touch?zo[t]===zo.MouseDown?u="TouchStart":zo[t]===zo.MouseUp&&(u="TouchEnd"):Wo.Pen}else Io(i)&&(c=Wo.Touch);null!==c?(l=c,(u.startsWith("Touch")&&c===Wo.Touch||u.startsWith("Mouse")&&c===Wo.Mouse)&&(c=null)):zo[t]===zo.Click&&(c=l,l=null);const d=Io(i)?i.changedTouches[0]:i;if(!d)return;const h=n.getId(a),{clientX:p,clientY:f}=d;os(e)({type:zo[u],id:h,x:p,y:f,...null!==c&&{pointerType:c}})})(i);if(window.PointerEvent)switch(zo[i]){case zo.MouseDown:case zo.MouseUp:a=a.replace("mouse","pointer");break;case zo.TouchStart:case zo.TouchEnd:return}c.push(fo(a,u,t))}),os(()=>{c.forEach(e=>e())})}function us({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:s,sampling:i}){return fo("scroll",os(_o(os(i=>{const a=as(i);if(!a||xo(a,r,o,s,!0))return;const c=n.getId(a);if(a===t&&t.defaultView){const n=So(t.defaultView);e({id:c,x:n.left,y:n.top})}else e({id:c,x:a.scrollLeft,y:a.scrollTop})}),i.scroll||100)),t)}const ds=["INPUT","TEXTAREA","SELECT"],hs=new WeakMap;function ps({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:s,ignoreClass:i,ignoreSelector:a,maskInputOptions:c,maskInputFn:l,sampling:u,userTriggeredOnInput:d,maskTextClass:h,unmaskTextClass:p,maskTextSelector:f,unmaskTextSelector:m}){function g(e){let n=as(e);const u=e.isTrusted,g=n&&Ar(n.tagName);if("OPTION"===g&&(n=n.parentElement),!n||!g||ds.indexOf(g)<0||xo(n,r,o,s,!0))return;const y=n;if(y.classList.contains(i)||a&&y.matches(a))return;const v=Nr(n);let b=Lr(y,g,v),S=!1;const k=Mr({maskInputOptions:c,tagName:g,type:v}),w=co(n,h,f,p,m,k);"radio"!==v&&"checkbox"!==v||(S=n.checked),b=Rr({isMasked:w,element:n,value:b,maskInputFn:l}),_(n,d?{text:b,isChecked:S,userTriggered:u}:{text:b,isChecked:S});const E=n.name;"radio"===v&&E&&S&&t.querySelectorAll(`input[type="radio"][name="${E}"]`).forEach(e=>{if(e!==n){const t=Rr({isMasked:w,element:e,value:Lr(e,g,v),maskInputFn:l});_(e,d?{text:t,isChecked:!S,userTriggered:!1}:{text:t,isChecked:!S})}})}function _(t,r){const o=hs.get(t);if(!o||o.text!==r.text||o.isChecked!==r.isChecked){hs.set(t,r);const o=n.getId(t);os(e)({...r,id:o})}}const y=("last"===u.input?["change"]:["input","change"]).map(e=>fo(e,os(g),t)),v=t.defaultView;if(!v)return()=>{y.forEach(e=>e())};const b=v.Object.getOwnPropertyDescriptor(v.HTMLInputElement.prototype,"value"),S=[[v.HTMLInputElement.prototype,"value"],[v.HTMLInputElement.prototype,"checked"],[v.HTMLSelectElement.prototype,"value"],[v.HTMLTextAreaElement.prototype,"value"],[v.HTMLSelectElement.prototype,"selectedIndex"],[v.HTMLOptionElement.prototype,"selected"]];return b&&b.set&&y.push(...S.map(e=>yo(e[0],e[1],{set(){os(g)({target:this,isTrusted:!1})}},!1,v))),os(()=>{y.forEach(e=>e())})}function fs(e){return function(e,t){if(ys("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||ys("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||ys("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||ys("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule){const n=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(n)}else if(e.parentStyleSheet){const n=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(n)}return t}(e,[])}function ms(e,t,n){let r,o;return e?(e.ownerNode?r=t.getId(e.ownerNode):o=n.getId(e),{styleId:o,id:r}):{}}function gs({mirror:e,stylesheetManager:t},n){let r=null;r="#document"===n.nodeName?e.getId(n):e.getId(n.host);const o="#document"===n.nodeName?ss([n,"access",e=>e.defaultView,"optionalAccess",e=>e.Document]):ss([n,"access",e=>e.ownerDocument,"optionalAccess",e=>e.defaultView,"optionalAccess",e=>e.ShadowRoot]),s=ss([o,"optionalAccess",e=>e.prototype])?Object.getOwnPropertyDescriptor(ss([o,"optionalAccess",e=>e.prototype]),"adoptedStyleSheets"):void 0;return null!==r&&-1!==r&&o&&s?(Object.defineProperty(n,"adoptedStyleSheets",{configurable:s.configurable,enumerable:s.enumerable,get(){return ss([s,"access",e=>
vendor: 4,121 bytes, line 1
1e.get,"optionalAccess",e=>e.call,"call",e=>e(this)])},set(e){const n=ss([s,"access",e=>e.set,"optionalAccess",e=>e.call,"call",t=>t(this,e)]);if(null!==r&&-1!==r)try{t.adoptStyleSheets(e,r)}catch(e){}return n}}),os(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:s.configurable,enumerable:s.enumerable,get:s.get,set:s.set})})):()=>{}}function _s(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};let r;e.recordDOM&&(r=cs(e,e.doc));const o=function({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(!1===t.mousemove)return()=>{};const o="number"==typeof t.mousemove?t.mousemove:50,s="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500;let i,a=[];const c=_o(os(t=>{const n=Date.now()-i;e(a.map(e=>(e.timeOffset-=n,e)),t),a=[],i=null}),s),l=os(_o(os(e=>{const t=as(e),{clientX:n,clientY:o}=Io(e)?e.changedTouches[0]:e;i||(i=bo()),a.push({x:n,y:o,id:r.getId(t),timeOffset:bo()-i}),c("undefined"!=typeof DragEvent&&e instanceof DragEvent?Ho.Drag:e instanceof MouseEvent?Ho.MouseMove:Ho.TouchMove)}),o,{trailing:!1})),u=[fo("mousemove",l,n),fo("touchmove",l,n),fo("drag",l,n)];return os(()=>{u.forEach(e=>e())})}(e),s=ls(e),i=us(e),a=function({viewportResizeCb:e},{win:t}){let n=-1,r=-1;return fo("resize",os(_o(os(()=>{const t=ko(),o=wo();n===t&&r===o||(e({width:Number(o),height:Number(t)}),n=t,r=o)}),200)),t)}(e,{win:n}),c=ps(e),l=function({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:o,sampling:s,doc:i}){const a=os(i=>_o(os(s=>{const a=as(s);if(!a||xo(a,t,n,r,!0))return;const{currentTime:c,volume:l,muted:u,playbackRate:d}=a;e({type:i,id:o.getId(a),currentTime:c,volume:l,muted:u,playbackRate:d})}),s.media||500)),c=[fo("play",a(0),i),fo("pause",a(1),i),fo("seeked",a(2),i),fo("volumechange",a(3),i),fo("ratechange",a(4),i)];return os(()=>{c.forEach(e=>e())})}(e);let u=()=>{},d=()=>{},h=()=>{},p=()=>{};e.recordDOM&&(u=function({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const o=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(o,{apply:os((r,o,s)=>{const[i,a]=s,{id:c,styleId:l}=ms(o,t,n.styleMirror);return(c&&-1!==c||l&&-1!==l)&&e({id:c,styleId:l,adds:[{rule:i,index:a}]}),r.apply(o,s)})});const s=r.CSSStyleSheet.prototype.deleteRule;let i,a;r.CSSStyleSheet.prototype.deleteRule=new Proxy(s,{apply:os((r,o,s)=>{const[i]=s,{id:a,styleId:c}=ms(o,t,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,removes:[{index:i}]}),r.apply(o,s)})}),r.CSSStyleSheet.prototype.replace&&(i=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(i,{apply:os((r,o,s)=>{const[i]=s,{id:a,styleId:c}=ms(o,t,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,replace:i}),r.apply(o,s)})})),r.CSSStyleSheet.prototype.replaceSync&&(a=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(a,{apply:os((r,o,s)=>{const[i]=s,{id:a,styleId:c}=ms(o,t,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,replaceSync:i}),r.apply(o,s)})}));const c={};vs("CSSGroupingRule")?c.CSSGroupingRule=r.CSSGroupingRule:(vs("CSSMediaRule")&&(c.CSSMediaRule=r.CSSMediaRule),vs("CSSConditionRule")&&(c.CSSConditionRule=r.CSSConditionRule),vs("CSSSupportsRule")&&(c.CSSSupportsRule=r.CSSSupportsRule));const l={};return Object.entries(c).forEach(([r,o])=>{l[r]={insertRule:o.prototype.insertRule,deleteRule:o.prototype.deleteRule},o.prototype.insertRule=new Proxy(l[r].insertRule,{apply:os((r,o,s)=>{const[i,a]=s,{id:c,styleId:l}=ms(o.parentStyleSheet,t,n.styleMirror);return(c&&-1!==c||l&&-1!==l)&&e({id:c,styleId:l,adds:[{rule:i,index:[...fs(o),a||0]}]}),r.apply(o,s)})}),o.prototype.deleteRule=new Proxy(l[r].deleteRule,{apply:os((r,o,s)=>{const[i]=s,{id:a,styleId:c}=ms(o.parentStyleSheet,t,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,removes:[{index:[...fs(o),i]}]}),r.apply(o,s)})})}),os(()=>{r.CSSStyleSheet.prototype.insertRule=o,r.CSSStyleSheet.prototype.deleteRule=s,i&&(r.CSSStyleSheet.prototype.replace=i),a&&(r.CSSStyleSheet.prototype.replaceSync=a),Object.entries(c).forEac
1h(([e,t])=>{t.prototype.insertRule=l[e].insertRule,t.prototype.deleteRule=l[e].deleteRule})})}(e,{win:n}),d=gs(e,e.doc),h=function({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:o}){const s=o.CSSStyleDeclaration.prototype.setProperty;o.CSSStyleDeclaration.prototype.setProperty=new Proxy(s,{apply:os((o,i,a)=>{const[c,l,u]=a;if(n.has(c))return s.apply(i,[c,l,u]);const{id:d,styleId:h}=ms(ss([i,"access",e=>e.parentRule,"optionalAccess",e=>e.parentStyleSheet]),t,r.styleMirror);return(d&&-1!==d||h&&-1!==h)&&e({id:d,styleId:h,set:{property:c,value:l,priority:u},index:fs(i.parentRule)}),o.apply(i,a)})});const i=o.CSSStyleDeclaration.prototype.removeProperty;return o.CSSStyleDeclaration.prototype.removeProperty=new Proxy(i,{apply:os((o,s,a)=>{const[c]=a;if(n.has(c))return i.apply(s,[c]);const{id:l,styleId:u}=ms(ss([s,"access",e=>e.parentRule,"optionalAccess",e=>e.parentStyleSheet]),t,r.styleMirror);return(l&&-1!==l||u&&-1!==u)&&e({id:l,styleId:u,remove:{property:c},index:fs(s.parentRule)}),o.apply(s,a)})}),os(()=>{o.CSSStyleDeclaration.prototype.setProperty=s,o.CSSStyleDeclaration.prototype.removeProperty=i})}(e,{win:n}),e.collectFonts&&(p=function({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const r=[],o=new WeakMap,s=n.FontFace;n.FontFace=function(e,t,n){const r=new s(e,t,n);return o.set(r,{family:e,buffer:"string"!=typeof t,descriptors:n,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),r};const i=vo(t.fonts,"add",function(t){return function(n){return $o(os(()=>{const t=o.get(n);t&&(e(t),o.delete(n))}),0),t.apply(this,[n])}});return r.push(()=>{n.FontFace=s}),r.push(i),os(()=>{r.forEach(e=>e())})}(e)));const f=function(e){const{doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:s,selectionCb:i}=e;let a=!0;const c=os(()=>{const e=t.getSelection();if(!e||a&&ss([e,"optionalAccess",e=>e.isCollapsed]))return;a=e.isCollapsed||!1;const c=[],l=e.rangeCount||0;for(let t=0;t<l;t++){const i=e.getRangeAt(t),{startContainer:a,startOffset:l,endContainer:u,endOffset:d}=i;xo(a,r,o,s,!0)||xo(u,r,o,s,!0)||c.push({start:n.getId(a),startOffset:l,end:n.getId(u),endOffset:d})}i({ranges:c})});return c(),fo("selectionchange",c)}(e),m=function({doc:e,customElementCb:t}){const n=e.defaultView;return n&&n.customElements?vo(n.customElements,"define",function(e){return function(n,r,o){try{t({define:{name:n}})}catch(e){}return e.apply(this,[n,r,o])}}):()=>{}}(e),g=[];for(const t of e.plugins)g.push(t.observer(t.callback,n,t.options));return os(()=>{is.forEach(e=>e.reset()),ss([r,"optionalAccess",e=>e.disconnect,"call",e=>e()]),o(),s(),i(),a(),c(),l(),u(),d(),h(),p(),f(),m(),g.forEach(e=>e())})}function ys(e){return void 0!==window[e]}function vs(e){return Boolean(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class bs{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,n,r){const o=n||this.getIdToRemoteIdMap(e),s=r||this.getRemoteIdToIdMap(e);let i=o.get(t);return i||(i=this.generateIdFn(),o.set(t,i),s.set(i,t)),i}getIds(e,t){const n=this.getIdToRemoteIdMap(e),r=this.getRemoteIdToIdMap(e);return t.map(t=>this.getId(e,t,n,r))}
1getRemoteId(e,t,n){const r=n||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;const o=r.get(t);return o||-1}getRemoteIds(e,t){const n=this.getRemoteIdToIdMap(e);return t.map(t=>this.getRemoteId(e,t,n))}reset(e){if(!e)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);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}}function Ss(e){let t,n=e[0],r=1;for(;r<e.length;){const o=e[r],s=e[r+1];if(r+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return;"access"===o||"optionalAccess"===o?(t=n,n=s(n)):"call"!==o&&"optionalCall"!==o||(n=s((...e)=>n.call(t,...e)),t=void 0)}return n}class ks{constructor(){this.crossOriginIframeMirror=new bs(Wr),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class ws{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new bs(Wr),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new bs(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),Ss([this,"access",e=>e.loadListener,"optionalCall",t=>t(e)]);const n=qo(e);n&&n.adoptedStyleSheets&&n.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(n.adoptedStyleSheets,this.mirror.getId(n))}handleMessage(e){const t=e;if("rrweb"!==t.data.type||t.origin!==t.data.origin)return;if(!e.source)return;const n=this.crossOriginIframeMap.get(e.source);if(!n)return;const r=this.transformCrossOriginEvent(n,t.data.event);r&&this.wrappedEmit(r,t.data.isCheckout)}transformCrossOriginEvent(e,t){switch(t.type){case jo.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);const n=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,n),this.patchRootIdOnNode(t.data.node,n),{timestamp:t.timestamp,type:jo.IncrementalSnapshot,data:{source:Ho.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case jo.Meta:case jo.Load:case jo.DomContentLoaded:return!1;case jo.Plugin:return t;case jo.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case jo.IncrementalSnapshot:switch(t.data.source){case Ho.Mutation:return t.data.adds.forEach(t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);const n=this.crossOriginIframeRootIdMap.get(e);n&&this.patchRootIdOnNode(t.node,n)}),t.data.removes.forEach(t=>{this.replaceIds(t,e,["parentId","id"])}),t.data.attributes.forEach(t=>{this.replaceIds(t,e,["id"])}),t.data.texts.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case Ho.Drag:case Ho.TouchMove:case Ho.MouseMove:return t.data.positions.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case Ho.ViewportResize:return!1;case Ho.MediaInteraction:case Ho.MouseInteraction:case Ho.Scroll:case Ho.CanvasMutation:case Ho.Input:return this.replaceIds(t.data,e,["id"]),t;case Ho.StyleSheetRule:case Ho.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case Ho.Font:return t;case Ho.Selection:return t.data.ranges.forEach(t=>{this.replaceIds(t,e,["start","end"])}),t;case Ho.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),Ss([t,"access",e=>e.data,"access",e=>e.styles,"optionalAccess",e=>e.forEach,"call",t=>t(t=>{this.replaceStyleIds(t,e,["styleId"])})]),t}}return!1}replace(e,t,n,r){for(const o of r)(Array.isArray(t[o])||"number"==typeof t[o])&&(Array.isArray(t[o])?t[o]=e.getIds(n,t[o]):t[o]=e.getId(n,t[o]));return t}replaceIds(e,t,n){return this.replace(this.crossOriginIframeMirror,e,t,n)}replaceStyleIds(e,t,n){return this.replace(this.crossOriginIframeStyleMirror,e,t,n)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEac
1h(e=>{this.replaceIdOnNode(e,t)})}patchRootIdOnNode(e,t){e.type===wr.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(e=>{this.patchRootIdOnNode(e,t)})}}class Es{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class xs{constructor(e){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(!xr(e))return;if(this.shadowDoms.has(e))return;this.shadowDoms.add(e),this.bypassOptions.canvasManager.addShadowRoot(e);const n=cs({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>n.disconnect()),this.restoreHandlers.push(us({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),$o(()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(gs({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}observeAttachShadow(e){const t=qo(e),n=function(e){try{return e.contentWindow}catch(e){}}(e);t&&n&&this.patchAttachShadow(n.Element,t)}patchAttachShadow(e,t){const n=this;this.restoreHandlers.push(vo(e.prototype,"attachShadow",function(e){return function(r){const o=e.call(this,r);return this.shadowRoot&&Lo(this)&&n.addShadowRoot(this.shadowRoot,t),o}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch(e){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}class Cs{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class Ts{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new Ao,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(0===e.length)return;const n={id:t,styleIds:[]},r=[];for(const 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:Tr(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){}}class Is{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(e,t){const n=this.nodeMap.get(e);return n&&Array.from(n).some(e=>e!==t)}add(e,t){this.active||(this.active=!0,function(...e){Fo("requestAnimationFrame")(...e)}(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}}let Ms,Rs;try{if(2!==Array.from([1],e=>2*e)[0]){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=r([e,"access",e=>e.contentWindow,"optionalAccess",e=>e.Array,"access",e=>e.from])||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}const Ds=new Ir;function As(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:o,blockClass:s="rr-block",blockSelector:i=null,unblockSelector:a=null,ignoreClass:c="rr-ignore",ignoreSelector:l=null,maskAllText:u=!1,maskTextClass:d="rr-mask",unmaskTextClass:h=null,maskTextSelector:p=null,unmaskTextSelector:f=null,inlineStylesheet:m=!0,maskAllInputs:g,maskInputOptions:_,slimDOMOptions:y,maskAttributeFn:v,maskInputFn:b,maskTextFn:S,maxCanvasSize:k=null,packFn:w,sampling:E={},dataURLOptions:x={},mousemoveWait:C,recordDOM:T=!0,recordCanvas:I=!1,recordCrossOriginIframes:M=!1,recordAfter:R=("DOMContentLoaded"===e.recordAfter?e.recordAfter:"load"),userTriggeredOnInput:D=!1,collectFonts:A=!1,inlineImages:O=!1,plugins:N,keepIframeSrcFn:L=()=>!1,ignoreCSSAttributes:P=new Set([]),errorHandler:F,onMutation:$,getCanvasManager:B}=e;ns(F);const U=!M||window.parent===window;let j=!1;if(!U)try{window.parent.document&&(j=!1)}catch(e){j=!0}if(U&&!t)throw new Error("emit function is required");if(!U&&!j)return()=>{};void 0!==C&&void 0===E.mousemove&&(E.mousemove=C),Ds.reset();const H=!0===g?{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}:void 0!==_?_:{},z=!0===y||"all"===y?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===y,headMetaDescKeywords:"all"===y}:y||{};let W;!function(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 new TypeError("1 argument is required");do{if(this===t)return!0}while(t=t&&t.parentNode);return!1})}();let q=0;const Y=e=>{for(const t of N||[])t.eventProcessor&&(e=t.eventProcessor(e));return w&&!j&&(e=w(e)),e};Ms=(e,s)=>{const i=e;if(i.timestamp=bo(),!r([is,"access",e=>e[0],"optionalAccess",e=>e.isFrozen,"call",e=>e()])||i.type===jo.FullSnapshot||i.type===jo.IncrementalSnapshot&&i.data.source===Ho.Mutation||is.forEach(e
1=>e.unfreeze()),U)r([t,"optionalCall",e=>e(Y(i),s)]);else if(j){const e={type:"rrweb",event:Y(i),origin:window.location.origin,isCheckout:s};window.parent.postMessage(e,"*")}if(i.type===jo.FullSnapshot)W=i,q=0;else if(i.type===jo.IncrementalSnapshot){if(i.data.source===Ho.Mutation&&i.data.isAttachIframe)return;q++;const e=o&&q>=o,t=n&&W&&i.timestamp-W.timestamp>n;(e||t)&&te(!0)}};const V=e=>{Ms({type:jo.IncrementalSnapshot,data:{source:Ho.Mutation,...e}})},X=e=>Ms({type:jo.IncrementalSnapshot,data:{source:Ho.Scroll,...e}}),G=e=>Ms({type:jo.IncrementalSnapshot,data:{source:Ho.CanvasMutation,...e}}),K=new Ts({mutationCb:V,adoptedStyleSheetCb:e=>Ms({type:jo.IncrementalSnapshot,data:{source:Ho.AdoptedStyleSheet,...e}})}),J="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new ks:new ws({mirror:Ds,mutationCb:V,stylesheetManager:K,recordCrossOriginIframes:M,wrappedEmit:Ms});for(const e of N||[])e.getMirror&&e.getMirror({nodeMirror:Ds,crossOriginIframeMirror:J.crossOriginIframeMirror,crossOriginIframeStyleMirror:J.crossOriginIframeStyleMirror});const Q=new Is,Z=function(e,t){try{return e?e(t):new Cs}catch(e){return console.warn("Unable to initialize CanvasManager"),new Cs}}(B,{mirror:Ds,win:window,mutationCb:e=>Ms({type:jo.IncrementalSnapshot,data:{source:Ho.CanvasMutation,...e}}),recordCanvas:I,blockClass:s,blockSelector:i,unblockSelector:a,maxCanvasSize:k,sampling:E.canvas,dataURLOptions:x,errorHandler:F}),ee="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new Es:new xs({mutationCb:V,scrollCb:X,bypassOptions:{onMutation:$,blockClass:s,blockSelector:i,unblockSelector:a,maskAllText:u,maskTextClass:d,unmaskTextClass:h,maskTextSelector:p,unmaskTextSelector:f,inlineStylesheet:m,maskInputOptions:H,dataURLOptions:x,maskAttributeFn:v,maskTextFn:S,maskInputFn:b,recordCanvas:I,inlineImages:O,sampling:E,slimDOMOptions:z,iframeManager:J,stylesheetManager:K,canvasManager:Z,keepIframeSrcFn:L,processedNodeManager:Q},mirror:Ds}),te=(e=!1)=>{if(!T)return;Ms({type:jo.Meta,data:{href:window.location.href,width:wo(),height:ko()}},e),K.reset(),ee.init(),is.forEach(e=>e.lock());const t=function(e,t){const{mirror:n=new Ir,blockClass:r="rr-block",blockSelector:o=null,unblockSelector:s=null,maskAllText:i=!1,maskTextClass:a="rr-mask",unmaskTextClass:c=null,maskTextSelector:l=null,unmaskTextSelector:u=null,inlineStylesheet:d=!0,inlineImages:h=!1,recordCanvas:p=!1,maskAllInputs:f=!1,maskAttributeFn:m,maskTextFn:g,maskInputFn:_,slimDOM:y=!1,dataURLOptions:v,preserveWhiteSpace:b,onSerialize:S,onIframeLoad:k,iframeLoadTimeout:w,onStylesheetLoad:E,stylesheetLoadTimeout:x,keepIframeSrcFn:C=()=>!1}=t||{};return ho(e,{doc:e,mirror:n,blockClass:r,blockSelector:o,unblockSelector:s,maskAllText:i,maskTextClass:a,unmaskTextClass:c,maskTextSelector:l,unmaskTextSelector:u,skipChild:!1,inlineStylesheet:d,maskInputOptions:!0===f?{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}:!1===f?{}:f,maskAttributeFn:m,maskTextFn:g,maskInputFn:_,slimDOMOptions:!0===y||"all"===y?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===y,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===y?{}:y,dataURLOptions:v,inlineImages:h,recordCanvas:p,preserveWhiteSpace:b,onSerialize:S,onIframeLoad:k,iframeLoadTimeout:w,onStylesheetLoad:E,stylesheetLoadTimeout:x,keepIframeSrcFn:C,newlyAddedElement:!1})}(document,{mirror:Ds,blockClass:s,blockSelector:i,unblockSelector:a,maskAllText:u,maskTextClass:d,unmaskTextClass:h,maskTextSelector:p,unmaskTextSelector:f,inlineStylesheet:m,maskAllInputs:H,maskAttributeFn:v,maskInputFn:b,maskTextFn:S,slimDOM:z,dataURLOptions:x,recordCanvas:I,inlineImages:O,onSerialize:e=>{Mo(e,Ds)&&J.addIframe(e),Ro(e,Ds)&&K.trackLinkElement(e),Do(e)&&ee.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{J.attachIframe(e,t),e.contentWindow&&Z.addWindow(e.contentWindow),ee.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{K.attachLinkElement(e,t)},keepIframeSrcFn:L});if(!t)return console.warn("Failed to snapshot the document");Ms({type:jo.FullSnapshot,data:{node:t,initialOffset:So(window)}}
1),is.forEach(e=>e.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&K.adoptStyleSheets(document.adoptedStyleSheets,Ds.getId(document))};Rs=te;try{const e=[],t=e=>os(_s)({onMutation:$,mutationCb:V,mousemoveCb:(e,t)=>Ms({type:jo.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>Ms({type:jo.IncrementalSnapshot,data:{source:Ho.MouseInteraction,...e}}),scrollCb:X,viewportResizeCb:e=>Ms({type:jo.IncrementalSnapshot,data:{source:Ho.ViewportResize,...e}}),inputCb:e=>Ms({type:jo.IncrementalSnapshot,data:{source:Ho.Input,...e}}),mediaInteractionCb:e=>Ms({type:jo.IncrementalSnapshot,data:{source:Ho.MediaInteraction,...e}}),styleSheetRuleCb:e=>Ms({type:jo.IncrementalSnapshot,data:{source:Ho.StyleSheetRule,...e}}),styleDeclarationCb:e=>Ms({type:jo.IncrementalSnapshot,data:{source:Ho.StyleDeclaration,...e}}),canvasMutationCb:G,fontCb:e=>Ms({type:jo.IncrementalSnapshot,data:{source:Ho.Font,...e}}),selectionCb:e=>{Ms({type:jo.IncrementalSnapshot,data:{source:Ho.Selection,...e}})},customElementCb:e=>{Ms({type:jo.IncrementalSnapshot,data:{source:Ho.CustomElement,...e}})},blockClass:s,ignoreClass:c,ignoreSelector:l,maskAllText:u,maskTextClass:d,unmaskTextClass:h,maskTextSelector:p,unmaskTextSelector:f,maskInputOptions:H,inlineStylesheet:m,sampling:E,recordDOM:T,recordCanvas:I,inlineImages:O,userTriggeredOnInput:D,collectFonts:A,doc:e,maskAttributeFn:v,maskInputFn:b,maskTextFn:S,keepIframeSrcFn:L,blockSelector:i,unblockSelector:a,slimDOMOptions:z,dataURLOptions:x,mirror:Ds,iframeManager:J,stylesheetManager:K,shadowDomManager:ee,processedNodeManager:Q,canvasManager:Z,ignoreCSSAttributes:P,plugins:r([N,"optionalAccess",e=>e.filter,"call",e=>e(e=>e.observer),"optionalAccess",e=>e.map,"call",e=>e(e=>({observer:e.observer,options:e.options,callback:t=>Ms({type:jo.Plugin,data:{plugin:e.name,payload:t}})}))])||[]},{});J.addLoadListener(n=>{try{e.push(t(n.contentDocument))}catch(e){console.warn(e)}});const n=()=>{te(),e.push(t(document))};return"interactive"===document.readyState||"complete"===document.readyState?n():(e.push(fo("DOMContentLoaded",()=>{Ms({type:jo.DomContentLoaded,data:{}}),"DOMContentLoaded"===R&&n()})),e.push(fo("load",()=>{Ms({type:jo.Load,data:{}}),"load"===R&&n()},window))),()=>{e.forEach(e=>e()),Q.destroy(),Rs=void 0,rs()}}catch(e){console.warn(e)}}As.mirror=Ds,As.takeFullSnapshot=function(e){if(!Rs)throw new Error("please take full snapshot after start recording");Rs(e)};function Os(e){return e>9999999999?e:1e3*e}function Ns(e){return e>9999999999?e/1e3:e}function Ls(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:jo.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:Q(t,10,1e3)}}),"console"===t.category)))}function Ps(e){return e.closest("button,a")||e}function Fs(e){const t=$s(e);return t&&t instanceof Element?Ps(t):t}function $s(e){return function(e){return"object"==typeof e&&!!e&&"target"in e}(e)?e.target:e}let Bs;function Us(e){return Bs||(Bs=[],N(fr,"open",function(e){return function(...t){if(Bs)try{Bs.forEach(e=>e())}catch(e){}return e.apply(fr,t)}})),Bs.push(e),()=>{const t=Bs?Bs.indexOf(e):-1;t>-1&&Bs.splice(t,1)}}const js=new Set([Ho.Mutation,Ho.StyleSheetRule,Ho.StyleDeclaration,Ho.AdoptedStyleSheet,Ho.CanvasMutation,Ho.Selection,Ho.MediaInteraction]);class Hs{constructor(e,t,n=Ls){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(){const e=Us(()=>{this._lastMutation=Ws()});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(function(e,t){if(!zs.includes(e.tagName))return!0;if("INPUT"===e.tagName&&!["submit","button"].includes(e.getAttribute("type")||""))return!0;
1if("A"===e.tagName&&(e.hasAttribute("download")||e.hasAttribute("target")&&"_self"!==e.getAttribute("target")))return!0;if(t&&e.matches(t))return!0;return!1}(t,this._ignoreSelector)||!function(e){return!(!e.data||"number"!=typeof e.data.nodeId||!e.timestamp)}(e))return;const n={timestamp:Ns(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),1===this._clicks.length&&this._scheduleCheckClicks())}registerMutation(e=Date.now()){this._lastMutation=Ns(e)}registerScroll(e=Date.now()){this._lastScroll=Ns(e)}registerClick(e){const t=Ps(e);this._handleMultiClick(t)}_handleMultiClick(e){this._getClicks(e).forEach(e=>{e.clickCount++})}_getClicks(e){return this._clicks.filter(t=>t.node===e)}_checkClicks(){const e=[],t=Ws();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(const t of e){const e=this._clicks.indexOf(t);e>-1&&(this._generateBreadcrumbs(t),this._clicks.splice(e,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){const t=this._replay,n=e.scrollAfter&&e.scrollAfter<=this._scrollTimeout,r=e.mutationAfter&&e.mutationAfter<=this._threshold,o=!n&&!r,{clickCount:s,clickBreadcrumb:i}=e;if(o){const n=1e3*Math.min(e.mutationAfter||this._timeout,this._timeout),r=n<1e3*this._timeout?"mutation":"timeout",o={type:"default",message:i.message,timestamp:i.timestamp,category:"ui.slowClickDetected",data:{...i.data,url:fr.location.href,route:t.getCurrentRoute(),timeAfterClickMs:n,endReason:r,clickCount:s||1}};return void this._addBreadcrumbEvent(t,o)}if(s>1){const e={type:"default",message:i.message,timestamp:i.timestamp,category:"ui.multiClick",data:{...i.data,url:fr.location.href,route:t.getCurrentRoute(),clickCount:s,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=nn(()=>this._checkClicks(),1e3)}}const zs=["A","BUTTON","INPUT"];function Ws(){return Date.now()/1e3}function qs(e,t){try{if(!function(e){return 3===e.type}(t))return;const{source:n}=t.data;if(js.has(n)&&e.registerMutation(t.timestamp),n===Ho.Scroll&&e.registerScroll(t.timestamp),function(e){return e.data.source===Ho.MouseInteraction}(t)){const{type:n,id:r}=t.data,o=As.mirror.getNode(r);o instanceof HTMLElement&&n===zo.Click&&e.registerClick(o)}}catch(e){}}function Ys(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var Vs;!function(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"}(Vs||(Vs={}));const Xs=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function Gs(e){const t={};!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]);for(const n in e)if(Xs.has(n)){let r=n;"data-testid"!==n&&"data-test-id"!==n||(r="testId"),t[r]=e[n]}return t}const Ks=e=>t=>{if(!e.isEnabled())return;const n=function(e){const{target:t,message:n}=function(e){const t="click"===e.name;let n,r=null;try{r=t?Fs(e.event):$s(e.event),n=k(r,{maxStringLength:200})||"<unknown>"}catch(e){n="<unknown>"}return{target:r,message:n}}(e);return Ys({category:`ui.${e.name}`,...Js(t,n)})}(t);if(!n)return;const r="click"===t.name,o=r?t.event:void 0;var s,i,a;!(r&&e.clickDetector&&o&&o.target)||o.altKey||o.metaKey||o.ctrlKey||o.shiftKey||(s=e.clickDetector,i=n,a=Fs(t.event),s.handleClick(i,a)),Ls(e,n)};function Js(e,t){const n=As.mirror.getId(e),r=n&&As.mirror.getNode(n),o=r&&As.mirror.getMeta(r),s=o&&function(e){return e.type===Vs.Element}(o)?o:null;return{message:t,data:s?{nodeId:n,node:{id:n,tagName:s.tagName,textContent:Array.from(s.childNodes).map(e=>
1e.type===Vs.Text&&e.textContent).filter(Boolean).map(e=>e.trim()).join(""),attributes:Gs(s.attributes)}}:{}}}function Qs(e,t){if(!e.isEnabled())return;e.updateUserActivity();const n=function(e){const{metaKey:t,shiftKey:n,ctrlKey:r,altKey:o,key:s,target:i}=e;if(!i||function(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable}(i)||!s)return null;const a=t||r||o,c=1===s.length;if(!a&&c)return null;const l=k(i,{maxStringLength:200})||"<unknown>",u=Js(i,l);return Ys({category:"ui.keyDown",message:l,data:{...u.data,metaKey:t,shiftKey:n,ctrlKey:r,altKey:o,key:s}})}(t);n&&Ls(e,n)}const Zs={resource:function(e){const{entryType:t,initiatorType:n,name:r,responseEnd:o,startTime:s,decodedBodySize:i,encodedBodySize:a,responseStatus:c,transferSize:l}=e;if(["fetch","xmlhttprequest"].includes(n))return null;return{type:`${t}.${n}`,start:ni(s),end:ni(o),name:r,data:{size:l,statusCode:c,decodedBodySize:i,encodedBodySize:a}}},paint:function(e){const{duration:t,entryType:n,name:r,startTime:o}=e,s=ni(o);return{type:n,name:r,start:s,end:s+t,data:void 0}},navigation:function(e){const{entryType:t,name:n,decodedBodySize:r,duration:o,domComplete:s,encodedBodySize:i,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,domInteractive:l,loadEventStart:u,loadEventEnd:d,redirectCount:h,startTime:p,transferSize:f,type:m}=e;if(0===o)return null;return{type:`${t}.${m}`,start:ni(p),end:ni(s),name:n,data:{size:f,decodedBodySize:r,encodedBodySize:i,duration:o,domInteractive:l,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,loadEventStart:u,loadEventEnd:d,domComplete:s,redirectCount:h}}}};function ei(e,t){return({metric:n})=>{t.replayPerformanceEntries.push(e(n))}}function ti(e){const t=Zs[e.entryType];return t?t(e):null}function ni(e){return((oe||fr.performance.timeOrigin)+e)/1e3}function ri(e){const t=e.entries[e.entries.length-1];return ci(e,"largest-contentful-paint",t&&t.element?[t.element]:void 0)}function oi(e){return void 0!==e.sources}function si(e){const t=[],n=[];for(const r of e.entries)if(oi(r)){const e=[];for(const t of r.sources)if(t.node){n.push(t.node);const r=As.mirror.getId(t.node);r&&e.push(r)}t.push({value:r.value,nodeIds:e.length?e:void 0})}return ci(e,"cumulative-layout-shift",n,t)}function ii(e){const t=e.entries[e.entries.length-1];return ci(e,"first-input-delay",t&&t.target?[t.target]:void 0)}function ai(e){const t=e.entries[e.entries.length-1];return ci(e,"interaction-to-next-paint",t&&t.target?[t.target]:void 0)}function ci(e,t,n,r){const o=e.value,s=e.rating,i=ni(o);return{type:"web-vital",name:t,start:i,end:i,data:{value:o,size:o,rating:s,nodeIds:n?n.map(e=>As.mirror.getId(e)):void 0,attributions:r}}}function li(e){function t(t){e.performanceEntries.includes(t)||e.performanceEntries.push(t)}function n({entries:e}){e.forEach(t)}const r=[];return["navigation","paint","resource"].forEach(e=>{r.push(Hn(e,n))}),r.push(function(e,t=!1){return Xn("lcp",e,Yn,Un,t)}(ei(ri,e)),function(e,t=!1){return Xn("cls",e,Wn,$n,t)}(ei(si,e)),Xn("fid",ei(ii,e),qn,Bn),function(e){return Xn("inp",e,Vn,jn)}(ei(ai,e))),()=>{r.forEach(e=>e())}}const ui="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;const di=["info","warn","error","log"],hi="[Replay] ";function pi(e,t="info"){Le({category:"console",data:{logger:"replay"},level:t,message:`${hi}${e}`},{level:t})}const fi=function(){let e=!1,t=!1;const n={exception:()=>{},infoTick:()=>{},setConfig:n=>{e=n.captureExceptions,t=n.traceInternals}};return ui?(di.forEach(e=>{n[e]=(...n)=>{M[e](hi,...n),t&&pi(n.join(""),Pe(e))}}),n.exception=(r,...o)=>{o.length&&n.error&&n.error(...o),M.error(hi,r),e?bt(r):t&&pi(r,"error")},n.infoTick=(...e)=>{M.info(hi,...e),t&&setTimeout(()=>pi(e[0]),0)}):di.forEach(e=>{n[e]=()=>{}}),n}();class mi extends Error{constructor(){super("Event buffer exceeded maximum size of 20000000.")}}class gi{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){const t=JSON.stringify(e).length;if(this._totalSize+=t,this._totalSize>vr)throw new mi;this.events.push(e)}finish(){return new Promise(e=>{const t=this.events;this.clear(),e(JSON.stringify(t))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){const e=this.events.map(e=>e.timestamp).sort()[0];return e?Os(e):null}}class _i{constructor(e){this._worker=e,this._id=0}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise((e,t)=>
1{this._worker.addEventListener("message",({data:n})=>{n.success?e():t()},{once:!0}),this._worker.addEventListener("error",e=>{t(e)},{once:!0})})),this._ensureReadyPromise}destroy(){ui&&fi.info("Destroying compression worker"),this._worker.terminate()}postMessage(e,t){const n=this._getAndIncrementId();return new Promise((r,o)=>{const s=({data:t})=>{const i=t;if(i.method===e&&i.id===n){if(this._worker.removeEventListener("message",s),!i.success)return ui&&fi.error("Error in compression worker: ",i.response),void o(new Error("Error in compression worker"));r(i.response)}};this._worker.addEventListener("message",s),this._worker.postMessage({id:n,method:e,arg:t})})}_getAndIncrementId(){return this._id++}}class yi{constructor(e){this._worker=new _i(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){const t=Os(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);const n=JSON.stringify(e);return this._totalSize+=n.length,this._totalSize>vr?Promise.reject(new mi):this._sendEventToWorker(n)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,e=>{ui&&fi.exception(e,'Sending "clear" message to worker failed',e)})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(e){return this._worker.postMessage("addEvent",e)}async _finishRequest(){const e=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,e}}class vi{constructor(e){this._fallback=new gi,this._compression=new yi(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(e){return void(ui&&fi.exception(e,"Failed to load the compression worker, falling back to simple buffer"))}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:e,hasCheckout:t,waitForCheckout:n}=this._fallback,r=[];for(const t of e)r.push(this._compression.addEvent(t));this._compression.hasCheckout=t,this._compression.waitForCheckout=n,this._used=this._compression;try{await Promise.all(r),this._fallback.clear()}catch(e){ui&&fi.exception(e,"Failed to add events when switching buffers.")}}}function bi({useCompression:e,workerUrl:t}){if(e&&window.Worker){const e=function(e){try{const t=e||function(){if("undefined"==typeof __SENTRY_EXCLUDE_REPLAY_WORKER__||!__SENTRY_EXCLUDE_REPLAY_WORKER__)return function(){const e=new Blob(['var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),a=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=function(t,e){for(var i=new n(31),a=0;a<31;++a)i[a]=e+=1<<t[a-1];var s=new r(i[30]);for(a=1;a<30;++a)for(var o=i[a];o<i[a+1];++o)s[o]=o-i[a]<<5|a;return{b:i,r:s}},o=s(e,2),f=o.b,h=o.r;f[28]=258,h[258]=28;for(var l=s(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,a=0,s=new n(r);a<i;++a)t[a]&&++s[t[a]-1];var o,f=new n(r);for(a=1;a<r;++a)f[a]=f[a-1]+s[a-1]<<1;if(e){o=new n(1<<r);var h=15-r;for(a=0;a<i;++a)if(t[a])for(var l=a<<4|t[a],c=r-t[a],v=f[t[a]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>h]=l}else for(o=new n(i),a=0;a<i;++a)t[a]&&(o[a]=u[f[t[a]-1]++]>>15-t[a]);return o},g=new t(288);for(c=0;c<144;++c)g[c]=8;for(c=144;c<256;++c)g[c]=9;for(c=256;c<280;++c)g[c]=7;for(c=280;c<288;++c)g[c]=8;var w=new t(32);for(c=0;c<32;++c)w[c]=5;var p=d(g,9,0),y=d(w,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))}
vendor: 4,591 bytes, line 1
1,M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},_=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},x=function(r,e){for(var i=[],a=0;a<r.length;++a)r[a]&&i.push({s:a,f:r[a]});var s=i.length,o=i.slice();if(!s)return{t:F,l:0};if(1==s){var f=new t(i[0].s+1);return f[i[0].s]=1,{t:f,l:1}}i.sort((function(t,n){return t.f-n.f})),i.push({s:-1,f:25001});var h=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:h.f+l.f,l:h,r:l};c!=s-1;)h=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:h.f+l.f,l:h,r:l};var d=o[0].s;for(a=1;a<s;++a)o[a].s>d&&(d=o[a].s);var g=new n(d+1),w=A(i[c-1],g,0);if(w>e){a=0;var p=0,y=w-e,m=1<<y;for(o.sort((function(t,n){return g[n.s]-g[t.s]||t.f-n.f}));a<s;++a){var b=o[a].s;if(!(g[b]>e))break;p+=m-(1<<w-g[b]),g[b]=e}for(p>>=y;p>0;){var M=o[a].s;g[M]<e?p-=1<<e-g[M]++-1:++a}for(;a>=0&&p;--a){var E=o[a].s;g[E]==e&&(--g[E],++p)}w=e}return{t:new t(g),l:w}},A=function(t,n,r){return-1==t.s?Math.max(A(t.l,n,r+1),A(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,a=t[0],s=1,o=function(t){e[i++]=t},f=1;f<=r;++f)if(t[f]==a&&f!=r)++s;else{if(!a&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(a),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(a);s=1,a=t[f]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var a=0;a<e;++a)t[i+a+4]=r[a];return 8*(i+4+e)},U=function(t,r,s,o,f,h,l,u,c,v,m){z(r,m++,s),++f[256];for(var b=x(f,15),M=b.t,E=b.l,A=x(h,15),U=A.t,C=A.l,F=D(M),I=F.c,S=F.n,L=D(U),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=x(q,7),H=G.t,J=G.l,K=19;K>4&&!H[a[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(f,g)+T(h,w)+l,X=T(f,M)+T(h,U)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(U,C,0),R=U;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[a[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=p,P=g,Q=y,R=w;for(B=0;B<u;++B){var rt=o[B];if(rt>255){_(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;_(r,m,Q[et]),m+=R[et],et>3&&(_(r,m,rt>>5&8191),m+=i[et])}else _(r,m,N[rt]),m+=P[rt]}return _(r,m,N[256]),m+P[256]},C=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}},L=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,a=0|r.length,s=0;s!=a;){for(var o=Math.min(s+2655,a);s<o;++s)i+=e+=r[s];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},O=function(a,s,o,f,u){if(!u&&(u={l:1},s.dictionary)){var c=s.dictionary.subarray(-32768),v=new t(c.length+a.length);v.set(c),v.set(a,c.length),a=v,u.w=c.length}return function(a,s,o,f,u,c){var v=c.z||a.length,d=new t(f+v+5*(1+Math.ceil(v/7e3))+u),g=d.subarray(f,d.length-u),w=c.l,p=7&(c.r||0);if(s){p&&(g[0]=c.r>>3);for(var y=C[s-1],M=y>>13,E=8191&y,z=(1<<o)-1,_=c.p||new n(32768),x=c.h||new n(z+1),A=Math.ceil(o/3),D=2*A,T=function(t){return(a[t]^a[t+1]<<A^a[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=x[H];if(_[J]=K,x[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!w)){p=U(a,g,0,F,I,S,O,q,G,j-G,p),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(a[j+Q]==a[j+Q-W]){for(var $=0;$<Z&&a[j+$]==a[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;
1++P){var rt=j-W+P&32767,et=rt-_[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=_[J])&32767}if(R){F[q++]=268435456|h[Q]<<18|l[R];var it=31&h[Q],at=31&l[R];O+=e[it]+i[at],++I[257+it],++S[at],B=j+Q,++L}else F[q++]=a[j],++I[a[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=a[j],++I[a[j]];p=U(a,g,w,F,I,S,O,q,G,j-G,p),w||(c.r=7&p|g[p/8|0]<<3,p-=7,c.h=x,c.p=_,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+w;j+=65535){var st=j+65535;st>=v&&(g[p/8|0]=w,st=v),p=k(g,p+1,a.subarray(j,st))}c.i=v}return b(d,0,f+m(p)+u)}(a,null==s.level?6:s.level,null==s.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(a.length)))):12+s.mem,o,f,u)},j=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},q=function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&j(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}},B=function(t){return 10+(t.filename?t.filename.length+1:0)},G=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(O(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var a=this.b.length-this.s.z;a&&(this.b.set(n.subarray(0,a),this.s.z),this.s.z=this.b.length,this.p(this.b,!1)),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(a),32768),this.s.z=n.length-a+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n}();var H=function(){function t(t,n){this.c=L(),this.v=1,G.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),G.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=O(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=L();i.p(n.dictionary),j(t,2,i.d())}}(r,this.o),this.v=0),n&&j(r,r.length-4,this.c.d()),this.ondata(r,n)},t}(),J="undefined"!=typeof TextEncoder&&new TextEncoder,K="undefined"!=typeof TextDecoder&&new TextDecoder;try{K.decode(F,{stream:!0})}catch(t){}var N=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(P(t),this.d=n||!1)},t}();function P(n,r){if(J)return J.encode(n);for(var e=n.length,i=new t(n.length+(n.length>>1)),a=0,s=function(t){i[a++]=t},o=0;o<e;++o){if(a+5>i.length){var f=new t(a+8+(e-o<<1));f.set(i),i=f}var h=n.charCodeAt(o);h<128||r?s(h):h<2048?(s(192|h>>6),s(128|63&h)):h>55295&&h<57344?(s(240|(h=65536+(1047552&h)|1023&n.charCodeAt(++o))>>18),s(128|h>>12&63),s(128|h>>6&63),s(128|63&h)):(s(224|h>>12),s(128|h>>6&63),s(128|63&h))}return b(i,0,a)}function Q(t){return function(t,n){n||(n={});var r=S(),e=t.length;r.p(t);var i=O(t,n,B(n),8),a=i.length;return q(i,n),j(i,a-8,r.d()),j(i,a-4,e),i}(P(t))}const R=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(const r of t)n+=r.length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new H,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new N(((t,n)=>{this.deflate.push(t,n)})),this.stream.push("[")}},V={clear:()=>{R.clear()},addEvent:t=>R.addEvent(t),finish:()=>R.finish(),compress:t=>Q(t)};addEventListener("message",(function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in V&&"function"==typeof V[n])try{const t=V[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});']);return URL.createObjectURL(e)}();return""}();if(!t)return;ui&&fi.info("Using compression worker"+(e?` from ${e}`:""));const n=new Worker(t);return new vi(n)}catch(e){ui&&fi.exception(e,"Failed to create compression worker")}}(t);if(e)return e}return ui&&fi.info("Using simple buffer"),new gi}function Si(){try{return"sessionStorage"in fr&&!!fr.sessionStorage}catch(e){return!1}}function ki(e){!function(){if(!Si())return;try{fr.sessionStorage.removeItem(mr)}catch(e){}}(),e.session=void 0}function wi(e){return void 0!==e&&Math.random()<e}function Ei(e){const t=Date.now();return{id:e.id||ae(),started:e.started||t,lastActivity:e.lastActivity||t,segmentId:e.segmentId||0,sampled:e.sampled,previousSessionId:e.previousSessionId}}function xi(e){if(Si())try{fr.sessionStorage.setItem(mr,JSON.stringify(e))}catch(e){}}function Ci({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:r}={}){const o=function(e,t){return wi(e)?"session":!!t&&"buffer"}(e,t),s=Ei({sampled:o,previousSessionId:r});return n&&xi(s),s}function Ti(e,t,n=+new Date){return null===e||void 0===t||t<0||0!==t&&e+t<=n}function Ii(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:r=Date.now()}){return Ti(e.started,t,r)||Ti(e.lastActivity,n,r)}function Mi(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!!Ii(e,{sessionIdleExpire:t,maxReplayDuration:n})&&("buffer"!==e.sampled||0!==e.segmentId)}function Ri({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:n},r){const o=r.stickySession&&function(){if(!Si())return null;try{const e=fr.sessionStorage.getItem(mr);if(!e)return null;const t=JSON.parse(e);return ui&&fi.infoTick("Loading existing session"),Ei(t)}catch(e){return null}}();return o?Mi(o,{sessionIdleExpire:e,maxReplayDuration:t})?(ui&&fi.infoTick("Session in sessionStorage is expired, creating new one..."),Ci(r,{previousSessionId:o.id})):o:(ui&&fi.infoTick("Creating new session"),Ci(r,{previousSessionId:n}))}function Di(e,t,n){return!!Oi(e,t)&&(Ai(e,t,n),!0)}
1async function Ai(e,t,n){const{eventBuffer:r}=e;if(!r||r.waitForCheckout&&!n)return null;const o="buffer"===e.recordingMode;try{n&&o&&r.clear(),n&&(r.hasCheckout=!0,r.waitForCheckout=!1);const s=function(e,t){try{if("function"==typeof t&&function(e){return e.type===jo.Custom}(e))return t(e)}catch(e){return ui&&fi.exception(e,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}(t,e.getOptions().beforeAddRecordingEvent);if(!s)return;return await r.addEvent(s)}catch(t){const n=t&&t instanceof mi,s=n?"addEventSizeExceeded":"addEvent";if(n&&o)return r.clear(),r.waitForCheckout=!0,null;e.handleException(t),await e.stop({reason:s});const i=Ae();i&&i.recordDroppedEvent("internal_sdk_error","replay")}}function Oi(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;const n=Os(t.timestamp);return!(n+e.timeouts.sessionIdlePause<Date.now())&&(!(n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration)||(ui&&fi.infoTick(`Skipping event with timestamp ${n} because it is after maxReplayDuration`),!1))}function Ni(e){return!e.type}function Li(e){return"transaction"===e.type}function Pi(e){return"feedback"===e.type}function Fi(e){return(t,n)=>{if(!e.isEnabled()||!Ni(t)&&!Li(t))return;const r=n&&n.statusCode;!r||r<200||r>=300||(Li(t)?function(e,t){const n=e.getContext();t.contexts&&t.contexts.trace&&t.contexts.trace.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)}(e,t):function(e,t){const n=e.getContext();t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id);if("buffer"!==e.recordingMode||!t.tags||!t.tags.replayId)return;const{beforeErrorSampling:r}=e.getOptions();if("function"==typeof r&&!r(t))return;nn(async()=>{try{await e.sendBufferedReplayOrFlush()}catch(t){e.handleException(t)}})}(e,t))}}function $i(e){return t=>{e.isEnabled()&&Ni(t)&&function(e,t){const n=t.exception&&t.exception.values&&t.exception.values[0]&&t.exception.values[0].value;if("string"!=typeof n)return;if(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)){Ls(e,Ys({category:"replay.hydrate-error",data:{url:E()}}))}}(e,t)}}function Bi(e){const t=Ae();t&&t.on("beforeAddBreadcrumb",t=>function(e,t){if(!e.isEnabled()||!Ui(t))return;const n=function(e){if(!Ui(e)||["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui."))return null;if("console"===e.category)return function(e){const t=e.data&&e.data.arguments;if(!Array.isArray(t)||0===t.length)return Ys(e);let n=!1;const r=t.map(e=>{if(!e)return e;if("string"==typeof e)return e.length>yr?(n=!0,`${e.slice(0,yr)}…`):e;if("object"==typeof e)try{const t=Q(e,7);return JSON.stringify(t).length>yr?(n=!0,`${JSON.stringify(t,null,2).slice(0,yr)}…`):t}catch(e){}return e});return Ys({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}(e);return Ys(e)}(t);n&&Ls(e,n)}(e,t))}function Ui(e){return!!e.category}function ji(){const e=Me().getPropagationContext().dsc;e&&delete e.replay_id;const t=lt();if(t){delete pt(t).replay_id}}function Hi(e){return Object.assign((t,n)=>{if(!e.isEnabled()||e.isPaused())return t;if(function(e){return"replay_event"===e.type}(t))return delete t.breadcrumbs,t;if(!Ni(t)&&!Li(t)&&!Pi(t))return t;if(!e.checkAndHandleExpiredSession())return ji(),t;if(Pi(t))return e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),function(e,t){e.triggerUserActivity(),e.addUpdate(()=>!t.timestamp||(e.throttledAddEvent({type:jo.Custom,timestamp:1e3*t.timestamp,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1))}(e,t),t;if(function(e,t){return!(e.type||!e.exception||!e.exception.values||!e.exception.values.length||!t.originalException||!t.originalException.__rrweb__)}(t,n)&&!e.getOptions()._experiments.captureExceptions)return ui&&fi.log("Ignoring error from rrweb internals",t),null;const r=function(e,t){return"buffer"===e.recordingMode&&t.message!==gr&&!(!t.exception||t.type)&&wi(e.getOptions().errorSampleRate)}(e,t);return(r||"session"===e.recordingMode)&&(t.tags={...t.tags,replayId:e.getSessionId()}),t},{id:"Replay"})}function zi(e,t){return t.map(({type:t,start:n,end:r,name:o,data:s})=>{const i=e.throttledAddEvent({type:jo.Custom,timestamp:n,data:{tag:"performanceSpan",payload:{op:t,description:o,startTimestamp:n,endTimestamp:r,data:s}}});return"string"==typeof i?Promise.resolve(null):i})}function Wi(e){return t=>{if(!e.isEnabled())return;const n=function(e){const{from:t,to:n}=e,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:t}}}(t);null!==n&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate(()=>(zi(e,[n]),!1)))}}function qi(e,t){e.isEnabled()&&null!==t&&(function(e,t){return(!ui||!e.getOptions()._experiments.traceInternals)&&Ct(t,Ae())}(e,t.name)||e.addUpdate(()=>(zi(e,[t]),!0)))}function Yi(e){if(!e)return;const t=new TextEncoder;try{if("string"==typeof e)return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){const n=ea(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch(e){}}function Vi(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function Xi(e){try{if("string"==typeof e)return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[ea(e)];if(!e)return[void 0]}catch(t){return ui&&fi.exception(t,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return ui&&fi.info("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function Gi(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};const n={...e._meta},r=n.warnings||[];return n.warnings=[...r,t],e._meta=n,e}function Ki(e,t){if(!t)return null;const{startTimestamp:n,endTimestamp:r,url:o,method:s,statusCode:i,request:a,response:c}=t;return{type:e,start:n/1e3,end:r/1e3,name:o,data:j({method:s,statusCode:i,request:a,response:c})}}function Ji(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function Qi(e,t,n){if(!t&&0===Object.keys(e).length)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};const r={headers:e,size:t},{body:o,warnings:s}=function(e){if(!e||"string"!=typeof e)return{body:e};const t=e.length>_r,n=function(e){const t=e[0],n=e[e.length-1];return"["===t&&"]"===n||"{"===t&&"}"===n}(e);if(t){const t=e.slice(0,_r);return n?{body:t,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${t}…`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(e)}}catch(e){}return{body:e}}(n);return r.body=o,s&&s.length>0&&(r._meta={warnings:s}),r}function Zi(e,t){return Object.entries(e).reduce((n,[r,o])=>{const s=r.toLowerCase();return t.includes(s)&&e[r]&&(n[s]=o),n},{})}function ea(e){return new URLSearchParams(e).toString()}function ta(e,t){const n=function(e,t=fr.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(fr.location.origin))return e;const n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;const r=n.href;if(!e.endsWith("/")&&r.endsWith("/"))return r.slice(0,-1);return r}(e);return O(n,t)}async function na(e,t,n){try{const r=await async function(e,t,n){const r=Date.now(),{startTimestamp:o=r,endTimestamp:s=r}=t,{url:i,method:a,status_code:c=0,request_body_size:l,response_body_size:u}=e.data,d=ta(i,n.networkDetailAllowUrls)&&!ta(i,n.networkDetailDenyUrls),h=d?function({networkCaptureBodies:e,networkRequestHeaders:t},n,r){const o=n?function(e,t){if(1===e.length&&"string"!=typeof e[0])return sa(e[0],t);
1if(2===e.length)return sa(e[1],t);return{}}(n,t):{};if(!e)return Qi(o,r,void 0);const s=ra(n),[i,a]=Xi(s),c=Qi(o,r,i);if(a)return Gi(c,a);return c}(n,t.input,l):Ji(l),p=await async function(e,{networkCaptureBodies:t,networkResponseHeaders:n},r,o){if(!e&&void 0!==o)return Ji(o);const s=r?oa(r.headers,n):{};if(!r||!t&&void 0!==o)return Qi(s,o,void 0);const[i,a]=await async function(e){const t=function(e){try{return e.clone()}catch(e){ui&&fi.exception(e,"Failed to clone response body")}}(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{const e=await function(e){return new Promise((t,n)=>{const r=nn(()=>n(new Error("Timeout while trying to read response body")),500);(async function(e){return await e.text()})(e).then(e=>t(e),e=>n(e)).finally(()=>clearTimeout(r))})}(t);return[e]}catch(e){return e instanceof Error&&e.message.indexOf("Timeout")>-1?(ui&&fi.warn("Parsing text body from response timed out"),[void 0,"BODY_PARSE_TIMEOUT"]):(ui&&fi.exception(e,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"])}}(r),c=function(e,{networkCaptureBodies:t,responseBodySize:n,captureDetails:r,headers:o}){try{const s=e&&e.length&&void 0===n?Yi(e):n;return r?Qi(o,s,t?e:void 0):Ji(s)}catch(e){return ui&&fi.exception(e,"Failed to serialize response body"),Qi(o,n,void 0)}}(i,{networkCaptureBodies:t,responseBodySize:o,captureDetails:e,headers:s});if(a)return Gi(c,a);return c}(d,n,t.response,u);return{startTimestamp:o,endTimestamp:s,url:i,method:a,statusCode:c,request:h,response:p}}(e,t,n),o=Ki("resource.fetch",r);qi(n.replay,o)}catch(e){ui&&fi.exception(e,"Failed to capture fetch breadcrumb")}}function ra(e=[]){if(2===e.length&&"object"==typeof e[1])return e[1].body}function oa(e,t){const n={};return t.forEach(t=>{e.get(t)&&(n[t]=e.get(t))}),n}function sa(e,t){if(!e)return{};const n=e.headers;return n?n instanceof Headers?oa(n,t):Array.isArray(n)?{}:Zi(n,t):{}}async function ia(e,t,n){try{const r=function(e,t,n){const r=Date.now(),{startTimestamp:o=r,endTimestamp:s=r,input:i,xhr:a}=t,{url:c,method:l,status_code:u=0,request_body_size:d,response_body_size:h}=e.data;if(!c)return null;if(!a||!ta(c,n.networkDetailAllowUrls)||ta(c,n.networkDetailDenyUrls)){return{startTimestamp:o,endTimestamp:s,url:c,method:l,statusCode:u,request:Ji(d),response:Ji(h)}}const p=a[nr],f=p?Zi(p.request_headers,n.networkRequestHeaders):{},m=Zi(function(e){const t=e.getAllResponseHeaders();if(!t)return{};return t.split("\r\n").reduce((e,t)=>{const[n,r]=t.split(": ");return r&&(e[n.toLowerCase()]=r),e},{})}(a),n.networkResponseHeaders),[g,_]=n.networkCaptureBodies?Xi(i):[void 0],[y,v]=n.networkCaptureBodies?function(e){const t=[];try{return[e.responseText]}catch(e){t.push(e)}try{return function(e,t){try{if("string"==typeof e)return[e];if(e instanceof Document)return[e.body.outerHTML];if("json"===t&&e&&"object"==typeof e)return[JSON.stringify(e)];if(!e)return[void 0]}catch(t){return ui&&fi.exception(t,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return ui&&fi.info("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}(e.response,e.responseType)}catch(e){t.push(e)}return ui&&fi.warn("Failed to get xhr response body",...t),[void 0]}(a):[void 0],b=Qi(f,d,g),S=Qi(m,h,y);return{startTimestamp:o,endTimestamp:s,url:c,method:l,statusCode:u,request:_?Gi(b,_):b,response:v?Gi(S,v):S}}(e,t,n),o=Ki("resource.xhr",r);qi(n.replay,o)}catch(e){ui&&fi.exception(e,"Failed to capture xhr breadcrumb")}}function aa(e,t){const{xhr:n,input:r}=t;if(!n)return;const o=Yi(r),s=n.getResponseHeader("content-length")?Vi(n.getResponseHeader("content-length")):function(e,t){try{return Yi("json"===t&&e&&"object"==typeof e?JSON.stringify(e):e)}catch(e){return}}(n.response,n.responseType);void 0!==o&&(e.data.request_body_size=o),void 0!==s&&(e.data.response_body_size=s)}function ca(e){const t=Ae();try{const{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:o,networkRequestHeaders:s,networkResponseHeaders:i}=e.getOptions(),a={replay:e,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:o,networkRequestHeaders:s,networkResponseHeaders:i};t&&t.on("beforeAddBreadcrumb",(e,t)=>function(e,t,n){if(!t.data)return;try{(function(e){return"xhr"===e.category})(t)&&function(e){return e&&e.xhr}(n)&&(aa(t,n),ia(t,n,e)),function(e){return"fetch"===e.category}(t)&&function(e){return e&&e.response}(n)&&(!function(e,t){const{input:n,response:r}=t,o=Yi(n?ra(n):void 0),s=r?Vi(r.headers.get("content-length")):void 0;void 0!==o&&(e.data.request_body_size=o),void 0!==s&&(e.data.response_body_size=s)}(t,n),na(t,n,e))}
1catch(e){ui&&fi.exception(e,"Error when enriching network breadcrumb")}}(a,e,t))}catch(e){}}function la(e){const t=Ae();ar(Ks(e)),hr(Wi(e)),Bi(e),ca(e);const n=Hi(e);var r;r=n,Re().addEventProcessor(r),t&&(t.on("beforeSendEvent",$i(e)),t.on("afterSendEvent",Fi(e)),t.on("createDsc",t=>{const n=e.getSessionId();if(n&&e.isEnabled()&&"session"===e.recordingMode){e.checkAndHandleExpiredSession()&&(t.replay_id=n)}}),t.on("spanStart",t=>{e.lastActiveSpan=t}),t.on("spanEnd",t=>{e.lastActiveSpan=t}),t.on("beforeSendFeedback",(t,n)=>{const r=e.getSessionId();n&&n.includeReplay&&e.isEnabled()&&r&&t.contexts&&t.contexts.feedback&&(t.contexts.feedback.replay_id=r)}))}function ua(e){const{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,o=Date.now()/1e3;return{type:"memory",name:"memory",start:o,end:o,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}const da=s.navigator;function ha(e){let t=!1;return(n,r)=>{if(!e.checkAndHandleExpiredSession())return void(ui&&fi.warn("Received replay event after session expired."));const o=r||!t;t=!0,e.clickDetector&&qs(e.clickDetector,n),e.addUpdate(()=>{if("buffer"===e.recordingMode&&o&&e.setInitialState(),!Di(e,n,o))return!0;if(!o)return!1;const t=e.session;if(function(e,t){if(!t||!e.session||0!==e.session.segmentId)return;Di(e,function(e){const t=e.getOptions();return{type:jo.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&&"worker"===e.eventBuffer.type,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}(e),!1)}(e,o),"buffer"===e.recordingMode&&t&&e.eventBuffer){const n=e.eventBuffer.getEarliestTimestamp();n&&(ui&&fi.info(`Updating session start time to earliest event in buffer to ${new Date(n)}`),t.started=n,e.getOptions().stickySession&&xi(t))}return t&&t.previousSessionId||"session"===e.recordingMode&&e.flush(),!0})}}async function pa({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:o,session:s}){const i=function({recordingData:e,headers:t}){let n;const r=`${JSON.stringify(t)}\n`;if("string"==typeof e)n=`${r}${e}`;else{const t=(new TextEncoder).encode(r);n=new Uint8Array(t.length+e.length),n.set(t),n.set(e,t.length)}return n}({recordingData:e,headers:{segment_id:n}}),{urls:a,errorIds:c,traceIds:l,initialTimestamp:u}=r,d=Ae(),h=Me(),p=d&&d.getTransport(),f=d&&d.getDsn();if(!(d&&p&&f&&s.sampled))return Ue({});const m={type:"replay_event",replay_start_timestamp:u/1e3,timestamp:o/1e3,error_ids:c,trace_ids:l,urls:a,replay_id:t,segment_id:n,replay_type:s.sampled},g=await async function({client:e,scope:t,replayId:n,event:r}){const o={event_id:n,integrations:"object"!=typeof e._integrations||null===e._integrations||Array.isArray(e._integrations)?void 0:Object.keys(e._integrations)};e.emit("preprocessEvent",r,o);const s=await _t(e.getOptions(),r,o,t,e,Re());if(!s)return null;s.platform=s.platform||"javascript";const i=e.getSdkMetadata(),{name:a,version:c}=i&&i.sdk||{};return s.sdk={...s.sdk,name:a||"sentry.javascript.unknown",version:c||"0.0.0"},s}({scope:h,client:d,replayId:t,event:m});if(!g)return d.recordDroppedEvent("event_processor","replay",m),ui&&fi.info("An event processor returned `null`, will not send event."),Ue({});delete g.sdkProcessingMetadata;const _=function(e,t,n,r){return At(jt(e,Ut(e),r,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:"string"==typeof t?(new TextEncoder).encode(t).length:t.length},t]])}(g,i,f,d.getOptions().tunnel);let y;try{y=await p.send(_)}catch(e){const t=new Error(gr);try{t.cause=e}catch(e){}throw t}if("number"==typeof y.statusCode&&(y.statusCode<200||y.statusCode>=300))throw new fa(y.statusCode);const v=Wt({},y);if(zt(v,"replay"))throw new ma(v);return y}
1class fa extends Error{constructor(e){super(`Transport returned status code ${e}`)}}class ma extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}}async function ga(e,t={count:0,interval:5e3}){const{recordingData:n,onError:r}=e;var o,s;if(n.length)try{return await pa(e),!0}catch(n){if(n instanceof fa||n instanceof ma)throw n;if(o="Replays",s={_retryCount:t.count},Re().setContext(o,s),r&&r(n),t.count>=3){const e=new Error(`${gr} - max retries exceeded`);try{e.cause=n}catch(e){}throw e}return t.interval*=++t.count,new Promise((n,r)=>{nn(async()=>{try{await ga(e,t),n(!0)}catch(e){r(e)}},t.interval)})}}const _a="__THROTTLED";function ya(e,t,n){const r=new Map;let o=!1;return(...s)=>{const i=Math.floor(Date.now()/1e3);if((e=>{const t=e-n;r.forEach((e,n)=>{n<t&&r.delete(n)})})(i),[...r.values()].reduce((e,t)=>e+t,0)>=t){const e=o;return o=!0,e?"__SKIPPED":_a}o=!1;const a=r.get(i)||0;return r.set(i,a+1),e(...s)}}class va{constructor({options:e,recordingOptions:t}){va.prototype.__init.call(this),va.prototype.__init2.call(this),va.prototype.__init3.call(this),va.prototype.__init4.call(this),va.prototype.__init5.call(this),va.prototype.__init6.call(this),this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:3e5,sessionIdleExpire:9e5},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=function(e,t,n){let r,o,s;const i=n&&n.maxWait?Math.max(n.maxWait,t):0;function a(){return c(),r=e(),r}function c(){void 0!==o&&clearTimeout(o),void 0!==s&&clearTimeout(s),o=s=void 0}function l(){return o&&clearTimeout(o),o=nn(a,t),i&&void 0===s&&(s=nn(a,i)),r}return l.cancel=c,l.flush=function(){return void 0!==o||void 0!==s?a():r},l}(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=ya((e,t)=>function(e,t,n){return Oi(e,t)?Ai(e,t,n):Promise.resolve(null)}(this,e,t),300,5);const{slowClickTimeout:n,slowClickIgnoreSelectors:r}=this.getOptions(),o=n?{threshold:Math.min(3e3,n),timeout:n,scrollTimeout:300,ignoreSelector:r?r.join(","):""}:void 0;if(o&&(this.clickDetector=new Hs(this,o)),ui){const t=e._experiments;fi.setConfig({captureExceptions:!!t.captureExceptions,traceInternals:!!t.traceInternals})}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return Boolean(this._canvas)}getOptions(){return this._options}handleException(e){ui&&fi.exception(e),this._options.onError&&this._options.onError(e)}initializeSampling(e){const{errorSampleRate:t,sessionSampleRate:n}=this._options,r=t<=0&&n<=0;this._requiresManualStart=r,r||(this._initializeSessionForSampling(e),this.session?!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",ui&&fi.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording()):ui&&fi.exception(new Error("Unable to initialize and create session")))}start(){if(this._isEnabled&&"session"===this.recordingMode)return void(ui&&fi.info("Recording is already in progress"));if(this._isEnabled&&"buffer"===this.recordingMode)return void(ui&&fi.info("Buffering is in progress, call `flush()` to save the replay"));ui&&fi.infoTick("Starting replay in session mode"),this._updateUserActivity();const e=Ri({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this._initializeRecording()}startBuffering(){if(this._isEnabled)return void(ui&&fi.info("Buffering is in progress, call `flush()` to save the replay"));ui&&fi.infoTick("Starting replay in buffer mode");const e=Ri({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{const e=this._canvas;this._stopRecording=As({...this._recordingOptions,..."buffer"===this.recordingMode?{checkoutEveryNms:6e4}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:ha(this),.../iPhone|iPad|iPod/i.test(da&&da.userAgent||"")||/Macintosh/i.test(da&&da.userAgent||"")&&da&&da.maxTouchPoints&&da.maxTouchPoints>1?{sampling:{mousemove:!1}}:{},onMutation:this._onMutationHandler,...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(),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;try{ui&&fi.info("Stopping Replay"+(t?` triggered by ${t}`:"")),ji(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,ki(this)}catch(e){this.handleException(e)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),ui&&fi.info("Pausing replay"))}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording(),ui&&fi.info("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();const t=Date.now();ui&&fi.info("Converting buffer to session"),await this.flushImmediate();const n=this.stopRecording();e&&n&&"session"!==this.recordingMode&&(this.recordingMode="session",this.session&&(this._updateUserActivity(t),this._updateSessionActivity(t),this._maybeSaveSession()),this.startRecording())}addUpdate(e){const t=e();"buffer"!==this.recordingMode&&!0!==t&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),this._stopRecording)this.checkAndHandleExpiredSession(),this._updateSessionActivity();else{if(!this._checkSession())return;this.resume()}}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return"buffer"===this.recordingMode?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(){return this.session&&this.session.id}
1checkAndHandleExpiredSession(){if(!(this._lastActivity&&Ti(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled))return!!this._checkSession();this.pause()}setInitialState(){const e=`${fr.location.pathname}${fr.location.hash}${fr.location.search}`,t=`${fr.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){const n=this._throttledAddEvent(e,t);if(n===_a){const e=Ys({category:"replay.throttled"});this.addUpdate(()=>!Di(this,{type:5,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e,metric:!0}}))}return n}getCurrentRoute(){const e=this.lastActiveSpan||lt(),t=e&&ct(e),n=(t&&ot(t).data||{})[Xe];if(t&&n&&["route","custom"].includes(n))return ot(t).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=bi({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_initializeSessionForSampling(e){const t=this._options.errorSampleRate>0,n=Ri({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;const e=this.session;return!Mi(e,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})||(this._refreshSession(e),!1)}async _refreshSession(e){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(e.id))}_addListeners(){try{fr.document.addEventListener("visibilitychange",this._handleVisibilityChange),fr.addEventListener("blur",this._handleWindowBlur),fr.addEventListener("focus",this._handleWindowFocus),fr.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(la(this),this._hasInitializedCoreListeners=!0)}catch(e){this.handleException(e)}this._performanceCleanupCallback=li(this)}_removeListeners(){try{fr.document.removeEventListener("visibilitychange",this._handleVisibilityChange),fr.removeEventListener("blur",this._handleWindowBlur),fr.removeEventListener("focus",this._handleWindowFocus),fr.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this.handleException(e)}}__init(){this._handleVisibilityChange=()=>{"visible"===fr.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init2(){this._handleWindowBlur=()=>{const e=Ys({category:"ui.blur"});this._doChangeToBackgroundTasks(e)}}__init3(){this._handleWindowFocus=()=>{const e=Ys({category:"ui.focus"});this._doChangeToForegroundTasks(e)}}__init4(){this._handleKeyboardEvent=e=>{Qs(this,e)}}_doChangeToBackgroundTasks(e){if(!this.session)return;Ii(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(e&&this._createCustomBreadcrumb(e),this.conditionalFlush())}_doChangeToForegroundTasks(e){if(!this.session)return;this.checkAndHandleExpiredSession()?e&&this._createCustomBreadcrumb(e):ui&&fi.info("Document has become active, but session has expired")}_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:jo.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})})}_addPerformanceEntries(){let e=(t=this.performanceEntries,t.map(ti).filter(Boolean)).concat(this.replayPerformanceEntries);var t;if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){const t=this._context.
1initialTimestamp/1e3;e=e.filter(e=>e.start>=t)}return Promise.all(zi(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:e,eventBuffer:t}=this;if(!e||!t||this._requiresManualStart)return;if(e.segmentId)return;const n=t.getEarliestTimestamp();n&&n<this._context.initialTimestamp&&(this._context.initialTimestamp=n)}_popEventContext(){const 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(){const e=this.getSessionId();if(this.session&&this.eventBuffer&&e){if(await this._addPerformanceEntries(),this.eventBuffer&&this.eventBuffer.hasEvents&&(await async function(e){try{return Promise.all(zi(e,[ua(fr.performance.memory)]))}catch(e){return[]}}(this),this.eventBuffer&&e===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();const t=Date.now();if(t-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new Error("Session is too long, not sending replay");const n=this._popEventContext(),r=this.session.segmentId++;this._maybeSaveSession();const o=await this.eventBuffer.finish();await ga({replayId:e,recordingData:o,segmentId:r,eventContext:n,session:this.session,timestamp:t,onError:e=>this.handleException(e)})}catch(e){this.handleException(e),this.stop({reason:"sendReplay"});const t=Ae();if(t){const n=e instanceof ma?"ratelimit_backoff":"send_error";t.recordDroppedEvent(n,"replay")}}}else ui&&fi.error("No session or eventBuffer found to flush.")}__init5(){this._flush=async({force:e=!1}={})=>{if(!this._isEnabled&&!e)return;if(!this.checkAndHandleExpiredSession())return void(ui&&fi.error("Attempting to finish replay event after session expired."));if(!this.session)return;const t=this.session.started,n=Date.now()-t;this._debouncedFlush.cancel();const r=n<this._options.minReplayDuration,o=n>this._options.maxReplayDuration+5e3;if(r||o)return ui&&fi.info(`Session duration (${Math.floor(n/1e3)}s) is too ${r?"short":"long"}, not sending replay.`),void(r&&this._debouncedFlush());const s=this.eventBuffer;s&&0===this.session.segmentId&&!s.hasCheckout&&ui&&fi.info("Flushing initial segment without checkout.");const i=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(e){this.handleException(e)}finally{this._flushLock=void 0,i&&this._debouncedFlush()}}}_maybeSaveSession(){this.session&&this._options.stickySession&&xi(this.session)}__init6(){this._onMutationHandler=e=>{const t=e.length,n=this._options.mutationLimit,r=n&&t>n;if(t>this._options.mutationBreadcrumbLimit||r){const e=Ys({category:"replay.mutations",data:{count:t,limit:r}});this._createCustomBreadcrumb(e)}return!r||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}}function ba(e,t){return[...e,...t].join(",")}const Sa='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',ka=["content-length","content-type","accept"];let wa=!1;const Ea=e=>new xa(e);class xa{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:e=5e3,flushMaxDelay:t=5500,minReplayDuration:n=4999,maxReplayDuration:r=36e5,stickySession:o=!0,useCompression:s=!0,workerUrl:i,_experiments:a={},maskAllText:c=!0,maskAllInputs:l=!0,blockAllMedia:u=!0,mutationBreadcrumbLimit:d=750,mutationLimit:h=1e4,slowClickTimeout:p=7e3,slowClickIgnoreSelectors:f=[],networkDetailAllowUrls:m=[],networkDetailDenyUrls:g=[],networkCaptureBodies:_=!0,networkRequestHeaders:y=[],networkResponseHeaders:v=[],mask:b=[],maskAttributes:S=["title","placeholder"],unmask:k=[],block:w=[],unblock:E=[],ignore:x=[],maskFn:C,beforeAddRecordingEvent:T,beforeErrorSampling:I,onError:M}={}){this.name=xa.id;const R=function({mask:e,unmask:t,block:n,unblock:r,ignore:o}){return{maskTextSelector:ba(e,[".sentry-mask","[data-sentry-mask]"]),unmaskTextSelector:ba(t,[]),blockSelector:ba(n,[".sentry-block","[data-sentry-block]","base","iframe[srcdoc]:not
1([src])"]),unblockSelector:ba(r,[]),ignoreSelector:ba(o,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}({mask:b,unmask:k,block:w,unblock:E,ignore:x});if(this._recordingOptions={maskAllInputs:l,maskAllText:c,maskInputOptions:{password:!0},maskTextFn:C,maskInputFn:C,maskAttributeFn:(e,t,n)=>function({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:o,value:s}){return r?o.unmaskTextSelector&&e.matches(o.unmaskTextSelector)?s:n.includes(t)||"value"===t&&"INPUT"===e.tagName&&["submit","button"].includes(e.getAttribute("type")||"")?s.replace(/[\S]/g,"*"):s:s}({maskAttributes:S,maskAllText:c,privacyOptions:R,key:e,value:t,el:n}),...R,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:e=>{try{e.__rrweb__=!0}catch(e){}}},this._initialOptions={flushMinDelay:e,flushMaxDelay:t,minReplayDuration:Math.min(n,15e3),maxReplayDuration:Math.min(r,br),stickySession:o,useCompression:s,workerUrl:i,blockAllMedia:u,maskAllInputs:l,maskAllText:c,mutationBreadcrumbLimit:d,mutationLimit:h,slowClickTimeout:p,slowClickIgnoreSelectors:f,networkDetailAllowUrls:m,networkDetailDenyUrls:g,networkCaptureBodies:_,networkRequestHeaders:Ca(y),networkResponseHeaders:Ca(v),beforeAddRecordingEvent:T,beforeErrorSampling:I,onError:M,_experiments:a},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${Sa}`:Sa),this._isInitialized&&Yt())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return wa}set _isInitialized(e){wa=e}afterAllSetup(e){Yt()&&!this._replay&&(this._setup(e),this._initialize(e))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:"session"===this._replay.recordingMode}):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&&this._replay.isEnabled())return this._replay.getSessionId()}getRecordingMode(){if(this._replay&&this._replay.isEnabled())return this._replay.recordingMode}_initialize(e){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(e),this._replay.initializeSampling())}_setup(e){const t=function(e,t){const n=t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...j(e)},o=Vt(n.replaysSessionSampleRate),s=Vt(n.replaysOnErrorSampleRate);null==o&&null==s&&I(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")});null!=o&&(r.sessionSampleRate=o);null!=s&&(r.errorSampleRate=s);return r}(this._initialOptions,e);this._replay=new va({options:t,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(e){try{const t=e.getIntegrationByName("ReplayCanvas");if(!t)return;this._replay._canvas=t.getOptions()}catch(e){}}}function Ca(e){return[...ka,...e.map(e=>e.toLowerCase())]}xa.__initStatic();const Ta=[];function Ia(e){const t=e.defaultIntegrations||[],n=e.integrations;let r;if(t.forEach(e=>{e.isDefaultInstance=!0}),Array.isArray(n))r=[...t,...n];else if("function"==typeof n){const e=n(t);r=Array.isArray(e)?e:[e]}else r=t;const o=function(e){const t={};return e.forEach(e=>{const{name:n}=e,r=t[n];r&&!r.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)}),Object.values(t)}(r),s=o.findIndex(e=>"Debug"===e.name);if(s>-1){const[e]=o.splice(s,1);o.push(e)}return o}function Ma(e,t){for(const n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function Ra(e,t,n){if(n[t.name])$e&&M.log(`Integration skipped because it was already installed: ${t.name}`);else{if(n[t.name]=t,-1===Ta.indexOf(t.name)&&"function"==typeof t.setupOnce&&(t.setupOnce(),Ta.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),"function"==typeof t.preprocessEvent){const n=t.preprocessEvent.bind(t);e.on("preprocessEvent",(t,r)=>n(t,r,e))}if("function"==typeof t.processEvent){const n=t.processEvent.bind(t),r=Object.assign((t,r)=>n(t,r,e),{id:t.name});e.addEventProcessor(r)}$e&&M.log(`Integration installed: ${t.name}`)}}function Da(e){const t=Ae();t?t.addIntegration(e):$e&&M.warn(`Cannot add integration "${e.name}" because no SDK Client is available.`)}const Aa=s,Oa=Aa.document,Na=Aa.navigator,La="Report a Bug",Pa=(e,t={includeReplay:!0})=>{if(!e.message)throw new Error("Unable to submit feedback with empty message");const n=Ae();if(!n)throw new Error("No client setup, cannot send feedback.");e.tags&&Object.keys(e.tags).length&&Me().setTags(e.tags);const r=function(e,t={},n=Me()){const{message:r,name:o,email:s,url:i,source:a,associatedEventId:c,tags:l}=e,u={contexts:{feedback:j({contact_email:s,name:o,message:r,url:i,source:a,associated_event_id:c})},type:"feedback",level:"info",tags:l},d=n&&n.getClient()||Ae();return d&&d.emit("beforeSendFeedback",u,t),n.captureEvent(u,t)}({source:"api",url:E(),...e},t);return new Promise((e,t)=>
1{const o=setTimeout(()=>t("Unable to determine if Feedback was correctly sent."),5e3),s=n.on("afterSendEvent",(n,i)=>{if(n.event_id===r)return clearTimeout(o),s(),i&&"number"==typeof i.statusCode&&i.statusCode>=200&&i.statusCode<300?e(r):i&&"number"==typeof i.statusCode&&0===i.statusCode?t("Unable to send Feedback. This is because of network issues, or because you are using an ad-blocker."):i&&"number"==typeof i.statusCode&&403===i.statusCode?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")})})},Fa="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function $a(e,t){return{...e,...t,tags:{...e.tags,...t.tags},onFormOpen:()=>{t.onFormOpen&&t.onFormOpen(),e.onFormOpen&&e.onFormOpen()},onFormClose:()=>{t.onFormClose&&t.onFormClose(),e.onFormClose&&e.onFormClose()},onSubmitSuccess:n=>{t.onSubmitSuccess&&t.onSubmitSuccess(n),e.onSubmitSuccess&&e.onSubmitSuccess(n)},onSubmitError:n=>{t.onSubmitError&&t.onSubmitError(n),e.onSubmitError&&e.onSubmitError(n)},onFormSubmitted:()=>{t.onFormSubmitted&&t.onFormSubmitted(),e.onFormSubmitted&&e.onFormSubmitted()},themeDark:{...e.themeDark,...t.themeDark},themeLight:{...e.themeLight,...t.themeLight}}}function Ba(e,t){return Object.entries(t).forEach(([t,n])=>{e.setAttributeNS(null,t,n)}),e}function Ua({triggerLabel:e,triggerAriaLabel:t,shadow:n,styleNonce:r}){const o=Oa.createElement("button");if(o.type="button",o.className="widget__actor",o.ariaHidden="false",o.ariaLabel=t||e||La,o.appendChild(function(){const e=e=>Aa.document.createElementNS("http://www.w3.org/2000/svg",e),t=Ba(e("svg"),{width:"20",height:"20",viewBox:"0 0 20 20",fill:"var(--actor-color, var(--foreground))"}),n=Ba(e("g"),{clipPath:"url(#clip0_57_80)"}),r=Ba(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);const o=e("defs"),s=Ba(e("clipPath"),{id:"clip0_57_80"}),i=Ba(e("rect"),{width:"20",height:"20",fill:"white"});return s.appendChild(i),o.appendChild(s),t.appendChild(o).appendChild(s).appendChild(i),t}()),e){const t=Oa.createElement("span");t.appendChild(Oa.createTextNode(e)),o.appendChild(t)}const s=function(e){const t=Oa.createElement("style");return t.textContent='\n.widget__actor {\n  position: fixed;\n  z-index: var(--z-index);\n  margin: var(--page-margin);\n  inset: var(--actor-inset);\n\n  display: flex;\n  align-items: center;\n  gap: 8px;\n  padding: 16px;\n\n  font-family: inherit;\n  font-size: var(--font-size);\n  font-weight: 600;\n  line-height: 1.14em;\n  text-decoration: none;\n\n  background: var(--actor-background, var(--background));\n  border-radius: var(--actor-border-radius, 1.7em/50%);\n  border: var(--actor-border, var(--border));
1\n  box-shadow: var(--actor-box-shadow, var(--box-shadow));\n  color: var(--actor-color, var(--foreground));\n  fill: var(--actor-color, var(--foreground));\n  cursor: pointer;\n  opacity: 1;\n  transition: transform 0.2s ease-in-out;\n  transform: translate(0, 0) scale(1);\n}\n.widget__actor[aria-hidden="true"] {\n  opacity: 0;\n  pointer-events: none;\n  visibility: hidden;\n  transform: translate(0, 16px) scale(0.98);\n}\n\n.widget__actor:hover {\n  background: var(--actor-hover-background, var(--background));\n  filter: var(--interactive-filter);\n}\n\n.widget__actor svg {\n  width: 1.14em;\n  height: 1.14em;\n}\n\n@media (max-width: 600px) {\n  .widget__actor span {\n    display: none;\n  }\n}\n',e&&t.setAttribute("nonce",e),t}(r);return{el:o,appendToDom(){n.appendChild(s),n.appendChild(o)},removeFromDom(){n.removeChild(o),n.removeChild(s)},show(){o.ariaHidden="false"},hide(){o.ariaHidden="true"}}}const ja="rgba(88, 74, 192, 1)",Ha={foreground:"#2b2233",background:"#ffffff",accentForeground:"white",accentBackground:ja,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%)"},za={foreground:"#ebe6ef",background:"#29232f",accentForeground:"white",accentBackground:ja,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 Wa(e){return`\n  --foreground: ${e.foreground};\n  --background: ${e.background};\n  --accent-foreground: ${e.accentForeground};\n  --accent-background: ${e.accentBackground};\n  --success-color: ${e.successColor};\n  --error-color: ${e.errorColor};\n  --border: ${e.border};\n  --box-shadow: ${e.boxShadow};\n  --outline: ${e.outline};\n  --interactive-filter: ${e.interactiveFilter};\n  `}var qa,Ya,Va,Xa,Ga,Ka,Ja,Qa={},Za=[],ec=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,tc=Array.isArray;function nc(e,t){for(var n in t)e[n]=t[n];return e}function rc(e){var t=e.parentNode;t&&t.removeChild(e)}function oc(e,t,n){var r,o,s,i={};for(s in t)"key"==s?r=t[s]:"ref"==s?o=t[s]:i[s]=t[s];if(arguments.length>2&&(i.children=arguments.length>3?qa.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(s in e.defaultProps)void 0===i[s]&&(i[s]=e.defaultProps[s]);return sc(e,i,r,o,null)}function sc(e,t,n,r,o){var s={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==o?++Va:o,__i:-1,__u:0};return null==o&&null!=Ya.vnode&&Ya.vnode(s),s}function ic(e){return e.children}function ac(e,t){this.props=e,this.context=t}function cc(e,t){if(null==t)return e.__?cc(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?cc(e):null}function lc(e,t,n){var r,o=e.__v,s=o.__e,i=e.__P;if(i)return(r=nc({},o)).__v=o.__v+1,Ya.vnode&&Ya.vnode(r),bc(i,r,o,e.__n,void 0!==i.ownerSVGElement,32&o.__u?[s]:null,t,null==s?cc(o):s,!!(32&o.__u),n),r.__.__k[r.__i]=r,r.__d=void 0,r.__e!=s&&uc(r),r}function uc(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return uc(e)}}function dc(e){(!e.__d&&(e.__d=!0)&&Xa.push(e)&&!hc.__r++||Ga!==Ya.debounceRendering)&&((Ga=Ya.debounceRendering)||Ka)(hc)}function hc(){var e,t,n,r=[],o=[];for(Xa.sort(Ja);e=Xa.shift();)e.__d&&(n=Xa.length,t=lc(e,r,o)||t,0===n||Xa.length>n?(Sc(r,t,o),o.length=r.length=0,t=void 0,Xa.sort(Ja)):t&&Ya.__c&&Ya.__c(t,Za));t&&Sc(r,t,o),hc.__r=0}function pc(e,t,n,r,o,s,i,a,c,l,u){var d,h,p,f,m,g=r&&r.__k||Za,_=t.length;for(n.__d=c,function(e,t,n){var r,o,s,i,a,c=t.length,l=n.length,u=l,d=0;for(e.__k=[],r=0;r<c;r++)null!=(o=e.__k[r]=null==(o=t[r])||"boolean"==typeof o||"function"==typeof o?null:"string"==typeof o||"number"==typeof o||"bigint"==typeof o||o.constructor==String?sc(null,o,null,null,o):tc(o)?sc(ic,{children:o},null,null,null):void 0===o.constructor&&o.__b>0?sc(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)?(o.__=e,o.__b=e.__b+1,a=mc(o,n,i=r+d,u),o.__i=a,s=null,-1!==a&&(u--,(s=n[a])&&(s.__u|=131072)),null==s||null===s.__v?(-1==a&&d--,"function"!=typeof o.type&&(o.__u|=65536)):a!==i&&(a===i+1?d++:a>i?u>
vendor: 4,623 bytes, line 1
1c-i?d+=a-i:d--:d=a<i&&a==i-1?a-i:0,a!==r+d&&(o.__u|=65536))):(s=n[r])&&null==s.key&&s.__e&&(s.__e==e.__d&&(e.__d=cc(s)),Ec(s,s,!1),n[r]=null,u--);if(u)for(r=0;r<l;r++)null!=(s=n[r])&&!(131072&s.__u)&&(s.__e==e.__d&&(e.__d=cc(s)),Ec(s,s))}(n,t,g),c=n.__d,d=0;d<_;d++)null!=(p=n.__k[d])&&"boolean"!=typeof p&&"function"!=typeof p&&(h=-1===p.__i?Qa:g[p.__i]||Qa,p.__i=d,bc(e,p,h,o,s,i,a,c,l,u),f=p.__e,p.ref&&h.ref!=p.ref&&(h.ref&&wc(h.ref,null,p),u.push(p.ref,p.__c||f,p)),null==m&&null!=f&&(m=f),65536&p.__u||h.__k===p.__k?c=fc(p,c,e):"function"==typeof p.type&&void 0!==p.__d?c=p.__d:f&&(c=f.nextSibling),p.__d=void 0,p.__u&=-196609);n.__d=c,n.__e=m}function fc(e,t,n){var r,o;if("function"==typeof e.type){for(r=e.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=e,t=fc(r[o],t,n));return t}e.__e!=t&&(n.insertBefore(e.__e,t||null),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8===t.nodeType);return t}function mc(e,t,n,r){var o=e.key,s=e.type,i=n-1,a=n+1,c=t[n];if(null===c||c&&o==c.key&&s===c.type)return n;if(r>(null==c||131072&c.__u?0:1))for(;i>=0||a<t.length;){if(i>=0){if((c=t[i])&&!(131072&c.__u)&&o==c.key&&s===c.type)return i;i--}if(a<t.length){if((c=t[a])&&!(131072&c.__u)&&o==c.key&&s===c.type)return a;a++}}return-1}function gc(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||ec.test(t)?n:n+"px"}function _c(e,t,n,r,o){var s;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||gc(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||gc(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])s=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+s]=n,n?r?n.u=r.u:(n.u=Date.now(),e.addEventListener(t,s?vc:yc,s)):e.removeEventListener(t,s?vc:yc,s);else{if(o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==t&&"height"!==t&&"href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&"rowSpan"!==t&&"colSpan"!==t&&"role"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,n))}}function yc(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(Ya.event?Ya.event(e):e)}}function vc(e){if(this.l)return this.l[e.type+!0](Ya.event?Ya.event(e):e)}function bc(e,t,n,r,o,s,i,a,c,l){var u,d,h,p,f,m,g,_,y,v,b,S,k,w,E,x=t.type;if(void 0!==t.constructor)return null;128&n.__u&&(c=!!(32&n.__u),s=[a=t.__e=n.__e]),(u=Ya.__b)&&u(t);e:if("function"==typeof x)try{if(_=t.props,y=(u=x.contextType)&&r[u.__c],v=u?y?y.props.value:u.__:r,n.__c?g=(d=t.__c=n.__c).__=d.__E:("prototype"in x&&x.prototype.render?t.__c=d=new x(_,v):(t.__c=d=new ac(_,v),d.constructor=x,d.render=xc),y&&y.sub(d),d.props=_,d.state||(d.state={}),d.context=v,d.__n=r,h=d.__d=!0,d.__h=[],d._sb=[]),null==d.__s&&(d.__s=d.state),null!=x.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=nc({},d.__s)),nc(d.__s,x.getDerivedStateFromProps(_,d.__s))),p=d.props,f=d.state,d.__v=t,h)null==x.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(null==x.getDerivedStateFromProps&&_!==p&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(_,v),!d.__e&&(null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(_,d.__s,v)||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&&i.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(_,d.__s,v),null!=d.componentDidUpdate&&d.__h.push(function(){d.componentDidUpdate(p,f,m)})}if(d.context=v,d.props=_,d.__P=e,d.__e=!1,S=Ya.__r,k=0,"prototype"in x&&x.prototype.render){for(d.state=d.__s,d.__d=!1,S&&S(t),u=d.render(d.props,d.state,d.context),w=0;w<d._sb.length;w++)d.__h.push(d._sb[w]);d._sb=[]}else do{d.__d=!1,S&&S(t),u=d.render(d.props,d.state,d.context),d.state=d.__s}while(d.__d&&++k<25);d.state=d.__s,null!=d.getChildContext&&(r=nc(nc({},r),d.getChildContext())),h||null==d.getSnapshotBeforeUpdate||(m=d.getSnapshotBeforeUpdate(p,f)),pc(e,tc(E=null!=u&&u.type===ic&&null==u.key?u.props.children:u)?E:[E],t,n,r,o,s,i,a,c,l),d.base=t.__e,t.__u&=-161,d.__h.length&&i.push(d),g&&(d.__E=d.__=null)}catch(e){t.__v=null,c||null!=s?(t.__e=a,t.__u|=c?160:32,s[s.indexOf(a)]=null):(t.__e=n.__e,t.__k=n.__k),Ya.__e(e,t,n)}else null==s&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=kc(n.__e,t,n,r,o,s,i,c,l);(u=Ya.diffed)&&u(t)}
vendor: 2,643 bytes, line 1
1function Sc(e,t,n){for(var r=0;r<n.length;r++)wc(n[r],n[++r],n[++r]);Ya.__c&&Ya.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){Ya.__e(e,t.__v)}})}function kc(e,t,n,r,o,s,i,a,c){var l,u,d,h,p,f,m,g=n.props,_=t.props,y=t.type;if("svg"===y&&(o=!0),null!=s)for(l=0;l<s.length;l++)if((p=s[l])&&"setAttribute"in p==!!y&&(y?p.localName===y:3===p.nodeType)){e=p,s[l]=null;break}if(null==e){if(null===y)return document.createTextNode(_);e=o?document.createElementNS("http://www.w3.org/2000/svg",y):document.createElement(y,_.is&&_),s=null,a=!1}if(null===y)g===_||a&&e.data===_||(e.data=_);else{if(s=s&&qa.call(e.childNodes),g=n.props||Qa,!a&&null!=s)for(g={},l=0;l<e.attributes.length;l++)g[(p=e.attributes[l]).name]=p.value;for(l in g)p=g[l],"children"==l||("dangerouslySetInnerHTML"==l?d=p:"key"===l||l in _||_c(e,l,null,p,o));for(l in _)p=_[l],"children"==l?h=p:"dangerouslySetInnerHTML"==l?u=p:"value"==l?f=p:"checked"==l?m=p:"key"===l||a&&"function"!=typeof p||g[l]===p||_c(e,l,p,g[l],o);if(u)a||d&&(u.__html===d.__html||u.__html===e.innerHTML)||(e.innerHTML=u.__html),t.__k=[];else if(d&&(e.innerHTML=""),pc(e,tc(h)?h:[h],t,n,r,o&&"foreignObject"!==y,s,i,s?s[0]:n.__k&&cc(n,0),a,c),null!=s)for(l=s.length;l--;)null!=s[l]&&rc(s[l]);a||(l="value",void 0!==f&&(f!==e[l]||"progress"===y&&!f||"option"===y&&f!==g[l])&&_c(e,l,f,g[l],!1),l="checked",void 0!==m&&m!==e[l]&&_c(e,l,m,g[l],!1))}return e}function wc(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){Ya.__e(e,n)}}function Ec(e,t,n){var r,o;if(Ya.unmount&&Ya.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||wc(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){Ya.__e(e,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&Ec(r[o],t,n||"function"!=typeof e.type);n||null==e.__e||rc(e.__e),e.__=e.__e=e.__d=void 0}function xc(e,t,n){return this.constructor(e,n)}qa=Za.slice,Ya={__e:function(e,t,n,r){for(var o,s,i;t=t.__;)if((o=t.__c)&&!o.__)try{if((s=o.constructor)&&null!=s.getDerivedStateFromError&&(o.setState(s.getDerivedStateFromError(e)),i=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),i=o.__d),i)return o.__E=o}catch(t){e=t}throw e}},Va=0,ac.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=nc({},this.state),"function"==typeof e&&(e=e(nc({},n),this.props)),e&&nc(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),dc(this))},ac.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),dc(this))},ac.prototype.render=ic,Xa=[],Ka="function"==typeof Promise?Promise.prototype.then.bind(Prom
1ise.resolve()):setTimeout,Ja=function(e,t){return e.__v.__b-t.__v.__b},hc.__r=0;var Cc,Tc,Ic,Mc,Rc=0,Dc=[],Ac=[],Oc=Ya,Nc=Oc.__b,Lc=Oc.__r,Pc=Oc.diffed,Fc=Oc.__c,$c=Oc.unmount,Bc=Oc.__;function Uc(e,t){Oc.__h&&Oc.__h(Tc,e,Rc||t),Rc=0;var n=Tc.__H||(Tc.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:Ac}),n.__[e]}function jc(e){return Rc=1,Hc(Qc,e)}function Hc(e,t,n){var r=Uc(Cc++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Qc(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=Tc,!Tc.u)){var o=function(e,t,n){if(!r.__c.__H)return!0;var o=r.__c.__H.__.filter(function(e){return!!e.__c});if(o.every(function(e){return!e.__N}))return!s||s.call(this,e,t,n);var i=!1;return o.forEach(function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(i=!0)}}),!(!i&&r.__c.props===e)&&(!s||s.call(this,e,t,n))};Tc.u=!0;var s=Tc.shouldComponentUpdate,i=Tc.componentWillUpdate;Tc.componentWillUpdate=function(e,t,n){if(this.__e){var r=s;s=void 0,o(e,t,n),s=r}i&&i.call(this,e,t,n)},Tc.shouldComponentUpdate=o}return r.__N||r.__}function zc(e,t){var n=Uc(Cc++,4);!Oc.__s&&Jc(n.__H,t)&&(n.__=e,n.i=t,Tc.__h.push(n))}function Wc(e,t){var n=Uc(Cc++,7);return Jc(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function qc(e,t){return Rc=8,Wc(function(){return e},t)}function Yc(){for(var e;e=Dc.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Gc),e.__H.__h.forEach(Kc),e.__H.__h=[]}catch(t){e.__H.__h=[],Oc.__e(t,e.__v)}}Oc.__b=function(e){Tc=null,Nc&&Nc(e)},Oc.__=function(e,t){t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Bc&&Bc(e,t)},Oc.__r=function(e){Lc&&Lc(e),Cc=0;var t=(Tc=e.__c).__H;t&&(Ic===Tc?(t.__h=[],Tc.__h=[],t.__.forEach(function(e){e.__N&&(e.__=e.__N),e.__V=Ac,e.__N=e.i=void 0})):(t.__h.forEach(Gc),t.__h.forEach(Kc),t.__h=[],Cc=0)),Ic=Tc},Oc.diffed=function(e){Pc&&Pc(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==Dc.push(t)&&Mc===Oc.requestAnimationFrame||((Mc=Oc.requestAnimationFrame)||Xc)(Yc)),t.__H.__.forEach(function(e){e.i&&(e.__H=e.i),e.__V!==Ac&&(e.__=e.__V),e.i=void 0,e.__V=Ac})),Ic=Tc=null},Oc.__c=function(e,t){t.some(function(e){try{e.__h.forEach(Gc),e.__h=e.__h.filter(function(e){return!e.__||Kc(e)})}catch(n){t.some(function(e){e.__h&&(e.__h=[])}),t=[],Oc.__e(n,e.__v)}}),Fc&&Fc(e,t)},Oc.unmount=function(e){$c&&$c(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(e){try{Gc(e)}catch(e){t=e}}),n.__H=void 0,t&&Oc.__e(t,n.__v))};var Vc="function"==typeof requestAnimationFrame;function Xc(e){var t,n=function(){clearTimeout(r),Vc&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Vc&&(t=requestAnimationFrame(n))}function Gc(e){var t=Tc,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),Tc=t}function Kc(e){var t=Tc;e.__c=e.__(),Tc=t}function Jc(e,t){return!e||e.length!==t.length||t.some(function(t,n){return t!==e[n]})}function Qc(e,t){return"function"==typeof t?t(e):t}const Zc={__proto__:null,useCallback:qc,useContext:function(e){var t=Tc.context[e.__c],n=Uc(Cc++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(Tc)),t.props.value):e.__},useDebugValue:function(e,t){Oc.useDebugValue&&Oc.useDebugValue(t?t(e):e)},useEffect:function(e,t){var n=Uc(Cc++,3);!Oc.__s&&Jc(n.__H,t)&&(n.__=e,n.i=t,Tc.__H.__h.push(n))},useErrorBoundary:function(e){var t=Uc(Cc++,10),n=jc();return t.__=e,Tc.componentDidCatch||(Tc.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]},useId:function(){var e=Uc(Cc++,11);if(!e.__){for(var t=Tc.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__},useImperativeHandle:function(e,t,n){Rc=6,zc(function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},null==n?n:n.concat(e))},useLayoutEffect:zc,useMemo:Wc,useReducer:Hc,useRef:function(e){return Rc=5,Wc(function(){return{current:e}},[])},useState:jc};function el(){const e=e=>Oa.createElementNS("http://www.w3.org/2000/svg",e),t=Ba(e("svg"),{width:"32",height:"30",viewBox:"0 0 72 66",fill:"inherit"}),n=Ba(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 tl({options:e}){const t=Wc(()=>({__html:el().outerHTML}),[]);return oc("h2",{class:"dialog__header"},oc("span",{class:"dialog__title"},e.formTitle),e.showBranding?oc("a",{class:"brand-link",target:"_blank",href:"https://sentry.io/welcome/",title:"Powered by Sentry",rel:"noopener noreferrer",dangerouslySetInnerHTML:t}):null)}function nl(e,t){const n=e.get(t);return"string"==typeof n?n.trim():""}function rl({options:e,defaultEmail:t,defaultName:n,onFormClose:r,onSubmit:o,onSubmitSuccess:s,onSubmitError:i,showEmail
1:a,showName:c,screenshotInput:l}){const{tags:u,addScreenshotButtonLabel:d,removeScreenshotButtonLabel:h,cancelButtonLabel:p,emailLabel:f,emailPlaceholder:m,isEmailRequired:g,isNameRequired:_,messageLabel:y,messagePlaceholder:v,nameLabel:b,namePlaceholder:S,submitButtonLabel:k,isRequiredLabel:w}=e,[E,x]=jc(null),[C,T]=jc(!1),I=l&&l.input,[R,D]=jc(null),A=qc(e=>{D(e),T(!1)},[]),O=qc(e=>{const t=function(e,t){const 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}(e,{emailLabel:f,isEmailRequired:g,isNameRequired:_,messageLabel:y,nameLabel:b});return t.length>0?x(`Please enter in the following required fields: ${t.join(", ")}`):x(null),0===t.length},[f,g,_,y,b]),N=qc(async e=>{try{if(e.preventDefault(),!(e.target instanceof HTMLFormElement))return;const t=new FormData(e.target),n=await(l&&C?l.value():void 0),r={name:nl(t,"name"),email:nl(t,"email"),message:nl(t,"message"),attachments:n?[n]:void 0};if(!O(r))return;try{await o({name:r.name,email:r.email,message:r.message,source:"widget",tags:u},{attachments:r.attachments}),s(r)}catch(e){Fa&&M.error(e),x(e),i(e)}}catch(e){}},[l&&C,s,i]);return oc("form",{class:"form",onSubmit:N},I&&C?oc(I,{onError:A}):null,oc("div",{class:"form__right","data-sentry-feedback":!0},oc("div",{class:"form__top"},E?oc("div",{class:"form__error-container"},E):null,c?oc("label",{for:"name",class:"form__label"},oc(ol,{label:b,isRequiredLabel:w,isRequired:_}),oc("input",{class:"form__input",defaultValue:n,id:"name",name:"name",placeholder:S,required:_,type:"text"})):oc("input",{"aria-hidden":!0,value:n,name:"name",type:"hidden"}),a?oc("label",{for:"email",class:"form__label"},oc(ol,{label:f,isRequiredLabel:w,isRequired:g}),oc("input",{class:"form__input",defaultValue:t,id:"email",name:"email",placeholder:m,required:g,type:"email"})):oc("input",{"aria-hidden":!0,value:t,name:"email",type:"hidden"}),oc("label",{for:"message",class:"form__label"},oc(ol,{label:y,isRequiredLabel:w,isRequired:!0}),oc("textarea",{autoFocus:!0,class:"form__input form__input--textarea",id:"message",name:"message",placeholder:v,required:!0,rows:5})),I?oc("label",{for:"screenshot",class:"form__label"},oc("button",{class:"btn btn--default",type:"button",onClick:()=>{D(null),T(e=>!e)}},C?h:d),R?oc("div",{class:"form__error-container"},R.message):null):null),oc("div",{class:"btn-group"},oc("button",{class:"btn btn--primary",type:"submit"},k),oc("button",{class:"btn btn--default",type:"button",onClick:r},p))))}function ol({label:e,isRequired:t,isRequiredLabel:n}){return oc("span",{class:"form__label__text"},e,t&&oc("span",{class:"form__label__text--required"},n))}function sl(){const e=e=>Aa.document.createElementNS("http://www.w3.org/2000/svg",e),t=Ba(e("svg"),{width:"16",height:"17",viewBox:"0 0 16 17",fill:"inherit"}),n=Ba(e("g"),{clipPath:"url(#clip0_57_156)"}),r=Ba(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"}),o=Ba(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 
110.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(o,r);const s=e("defs"),i=Ba(e("clipPath"),{id:"clip0_57_156"}),a=Ba(e("rect"),{width:"16",height:"16",fill:"white",transform:"translate(0 0.5)"});return i.appendChild(a),s.appendChild(i),t.appendChild(s).appendChild(i).appendChild(a),t}function il({open:e,onFormSubmitted:t,...n}){const r=n.options,o=Wc(()=>({__html:sl().outerHTML}),[]),[s,i]=jc(null),a=qc(()=>{s&&(clearTimeout(s),i(null)),t()},[s]),c=qc(e=>{n.onSubmitSuccess(e),i(setTimeout(()=>{t(),i(null)},5e3))},[t]);return oc(ic,null,s?oc("div",{class:"success__position",onClick:a},oc("div",{class:"success__content"},r.successMessageText,oc("span",{class:"success__icon",dangerouslySetInnerHTML:o}))):oc("dialog",{class:"dialog",onClick:r.onFormClose,open:e},oc("div",{class:"dialog__position"},oc("div",{class:"dialog__content",onClick:e=>{e.stopPropagation()}},oc(tl,{options:r}),oc(rl,{...n,onSubmitSuccess:c})))))}const al=()=>({name:"FeedbackModal",setupOnce(){},createDialog:({options:e,screenshotIntegration:t,sendFeedback:n,shadow:r})=>{const o=r,s=e.useSentryUser,i=function(){const e=Me().getUser(),t=Re().getUser(),n=De().getUser();return e&&Object.keys(e).length?e:t&&Object.keys(t).length?t:n}(),a=Oa.createElement("div"),c=function(e){const t=Oa.createElement("style");return t.textContent="\n:host {\n  --dialog-inset: var(--inset);\n}\n\n\n.dialog {\n  position: fixed;\n  z-index: var(--z-index);\n  margin: 0;\n  inset: 0;\n\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  padding: 0;\n  height: 100vh;\n  width: 100vw;\n\n  color: var(--dialog-color, var(--foreground));\n  fill: var(--dialog-color, var(--foreground));\n  line-height: 1.75em;\n\n  background-color: rgba(0, 0, 0, 0.05);\n  border: none;\n  inset: 0;\n  opacity: 1;\n  transition: opacity 0.2s ease-in-out;\n}\n\n.dialog__position {\n  position: fixed;\n  z-index: var(--z-index);\n  inset: var(--dialog-inset);\n  padding: var(--page-margin);\n  display: flex;\n  max-height: calc(100vh - (2 * var(--page-margin)));\n}\n@media (max-width: 600px) {\n  .dialog__position {\n    inset: var(--page-margin);\n    padding: 0;\n  }\n}\n\n.dialog__position:has(.editor) {\n  inset: var(--page-margin);\n  padding: 0;\n}\n\n.dialog:not([open]) {\n  opacity: 0;\n  pointer-events: none;\n  visibility: hidden;\n}\n.dialog:not([open]) .dialog__content {\n  transform: translate(0, -16px) scale(0.98);\n}\n\n.dialog__content {\n  display: flex;\n  flex-direction: column;\n  gap: 16px;\n  padding: var(--dialog-padding, 24px);\n  max-width: 100%;\n  width: 100%;\n  max-height: 100%;\n  overflow: auto;\n\n  background: var(--dialog-background, var(--background));\n  border-radius: var(--dialog-border-radius, 20px);\n  border: var(--dialog-border, var(--border));
1\n  box-shadow: var(--dialog-box-shadow, var(--box-shadow));\n  transform: translate(0, 0) scale(1);\n  transition: transform 0.2s ease-in-out;\n}\n\n\n\n.dialog__header {\n  display: flex;\n  gap: 4px;\n  justify-content: space-between;\n  font-weight: var(--dialog-header-weight, 600);\n  margin: 0;\n}\n.dialog__title {\n  align-self: center;\n  width: var(--form-width, 272px);\n}\n\n@media (max-width: 600px) {\n  .dialog__title {\n    width: auto;\n  }\n}\n\n.dialog__position:has(.editor) .dialog__title {\n  width: auto;\n}\n\n\n.brand-link {\n  display: inline-flex;\n}\n.brand-link:focus-visible {\n  outline: var(--outline);\n}\n\n\n.form {\n  display: flex;\n  overflow: auto;\n  flex-direction: row;\n  gap: 16px;\n  flex: 1 0;\n}\n\n.form__right {\n  flex: 0 0 auto;\n  display: flex;\n  overflow: auto;\n  flex-direction: column;\n  justify-content: space-between;\n  gap: 20px;\n  width: var(--form-width, 100%);\n}\n\n.dialog__position:has(.editor) .form__right {\n  width: var(--form-width, 272px);\n}\n\n.form__top {\n  display: flex;\n  flex-direction: column;\n  gap: 8px;\n}\n\n.form__error-container {\n  color: var(--error-color);\n  fill: var(--error-color);\n}\n\n.form__label {\n  display: flex;\n  flex-direction: column;\n  gap: 4px;\n  margin: 0px;\n}\n\n.form__label__text {\n  display: flex;\n  gap: 4px;\n  align-items: center;\n}\n\n.form__label__text--required {\n  font-size: 0.85em;\n}\n\n.form__input {\n  font-family: inherit;\n  line-height: inherit;\n  background: transparent;\n  box-sizing: border-box;\n  border: var(--input-border, var(--border));\n  border-radius: var(--input-border-radius, 6px);\n  color: var(--input-color, inherit);\n  fill: var(--input-color, inherit);\n  font-size: var(--input-font-size, inherit);\n  font-weight: var(--input-font-weight, 500);\n  padding: 6px 12px;\n}\n\n.form__input::placeholder {\n  opacity: 0.65;\n  color: var(--input-placeholder-color, inherit);\n  filter: var(--interactive-filter);\n}\n\n.form__input:focus-visible {\n  outline: var(--input-focus-outline, var(--outline));\n}\n\n.form__input--textarea {\n  font-family: inherit;\n  resize: vertical;\n}\n\n.error {\n  color: var(--error-color);\n  fill: var(--error-color);\n}\n\n\n.btn-group {\n  display: grid;\n  gap: 8px;\n}\n\n.btn {\n  line-height: inherit;\n  border: var(--button-border, var(--border));\n  border-radius: var(--button-border-radius, 6px);\n  cursor: pointer;\n  font-family: inherit;\n  font-size: var(--button-font-size, inherit);\n  font-weight: var(--button-font-weight, 600);\n  padding: var(--button-padding, 6px 16px);\n}\n.btn[disabled] {\n  opacity: 0.6;\n  pointer-events: none;\n}\n\n.btn--primary {\n  color: var(--button-primary-color, var(--accent-foreground));\n  fill: var(--button-primary-color, var(--accent-foreground));\n  background: var(--button-primary-background, var(--accent-background));\n  border: var(--button-primary-border, var(--border));\n  border-radius: var(--button-primary-border-radius, 6px);\n  font-weight: var(--button-primary-font-weight, 500);\n}\n.btn--primary:hover {\n  color: var(--button-primary-hover-color, var(--accent-foreground));\n  fill: var(--button-primary-hover-color, var(--accent-foreground));\n  background: var(--button-primary-hover-background, var(--accent-background));\n  filter: var(--interactive-filter);\n}\n.btn--primary:focus-visible {\n  background: var(--button-primary-hover-background, var(--accent-background));\n  filter: var(--interactive-filter);\n  outline: var(--button-primary-focus-outline, var(--outline));\n}\n\n.btn--default {\n  color: var(--button-color, var(--foreground));\n  fill: var(--button-color, var(--foreground));\n  background: var(--button-background, var(--background));\n  border: var(--button-border, var(--border));\n  border-radius: var(--button-border-radius, 6px);\n  font-weight: var(--button-font-weight, 500);\n}\n.btn--default:hover {\n  color: var(--button-color, var(--foreground));\n  fill: var(--button-color, var(--foreground));\n  background: var(--button-hover-background, var(--background));\n  filter: var(--interactive-filter);\n}\n.btn--default:focus-visible {\n  background: var(--button-hover-background, var(--background));\n  filter: var(--interactive-filter);\n  outline: var(--button-focus-outline, var(--outline));\n}\n\n\n.success__position {\n  position: fixed;\n  inset: var(--dialog-inset);\n  padding: var(--page-margin);\n  z-index: var(--z-index);\n}\n.success__content {\n  background: var(--success-background, var(--background));\n  border: var(--success-border, var(--border));\n  border-radius: var(--success-border-radius, 1.7em/50%);
1\n  box-shadow: var(--success-box-shadow, var(--box-shadow));\n  font-weight: var(--success-font-weight, 600);\n  color: var(--success-color);\n  fill: var(--success-color);\n  padding: 12px 24px;\n  line-height: 1.75em;\n\n  display: grid;\n  align-items: center;\n  grid-auto-flow: column;\n  gap: 6px;\n  cursor: default;\n}\n\n.success__icon {\n  display: flex;\n}\n\n",e&&t.setAttribute("nonce",e),t}(e.styleNonce);let l="";const u={get el(){return a},appendToDom(){o.contains(c)||o.contains(a)||(o.appendChild(c),o.appendChild(a))},removeFromDom(){o.removeChild(a),o.removeChild(c),Oa.body.style.overflow=l},open(){h(!0),e.onFormOpen&&e.onFormOpen(),l=Oa.body.style.overflow,Oa.body.style.overflow="hidden"},close(){h(!1),Oa.body.style.overflow=l}},d=t&&t.createInput({h:oc,hooks:Zc,dialog:u,options:e}),h=t=>{!function(e,t,n){var r,o,s,i;Ya.__&&Ya.__(e,t),o=(r="function"==typeof n)?null:t.__k,s=[],i=[],bc(t,e=(!r&&n||t).__k=oc(ic,null,[e]),o||Qa,Qa,void 0!==t.ownerSVGElement,!r&&n?[n]:o?null:t.firstChild?qa.call(t.childNodes):null,s,!r&&n?n:o?o.__e:t.firstChild,r,i),e.__d=void 0,Sc(s,e,i)}(oc(il,{options:e,screenshotInput:d,showName:e.showName||e.isNameRequired,showEmail:e.showEmail||e.isEmailRequired,defaultName:s&&i&&i[s.name]||"",defaultEmail:s&&i&&i[s.email]||"",onFormClose:()=>{h(!1),e.onFormClose&&e.onFormClose()},onSubmit:n,onSubmitSuccess:t=>{h(!1),e.onSubmitSuccess&&e.onSubmitSuccess(t)},onSubmitError:t=>{e.onSubmitError&&e.onSubmitError(t)},onFormSubmitted:()=>{e.onFormSubmitted&&e.onFormSubmitted()},open:t}),a)};return u}});function cl(e){const t=Oa.createElement("style"),n="#1A141F",r="#302735";return t.textContent=`\n.editor {\n  padding: 10px;\n  padding-top: 65px;\n  padding-bottom: 65px;\n  flex-grow: 1;\n\n  background-color: ${n};\n  background-image: repeating-linear-gradient(\n      -145deg,\n      transparent,\n      transparent 8px,\n      ${n} 8px,\n      ${n} 11px\n    ),\n    repeating-linear-gradient(\n      -45deg,\n      transparent,\n      transparent 15px,\n      ${r} 15px,\n      ${r} 16px\n    );\n}\n\n.editor__canvas-container {\n  width: 100%;\n  height: 100%;\n  position: relative;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n}\n\n.editor__canvas-container canvas {\n  object-fit: contain;\n  position: relative;\n}\n\n.editor__crop-btn-group {\n  padding: 8px;\n  gap: 8px;\n  border-radius: var(--menu-border-radius, 6px);\n  background: var(--button-primary-background, var(--background));\n  width: 175px;\n  position: absolute;\n}\n\n.editor__crop-corner {\n  width: 30px;\n  height: 30px;\n  position: absolute;\n  background: none;\n  border: 3px solid #ffffff;\n}\n\n.editor__crop-corner--top-left {\n  cursor: nwse-resize;\n  border-right: none;\n  border-bottom: none;\n}\n.editor__crop-corner--top-right {\n  cursor: nesw-resize;\n  border-left: none;\n  border-bottom: none;\n}\n.editor__crop-corner--bottom-left {\n  cursor: nesw-resize;\n  border-right: none;\n  border-top: none;\n}\n.editor__crop-corner--bottom-right {\n  cursor: nwse-resize;\n  border-left: none;\n  border-top: none;\n}\n`,e&&t.setAttribute("nonce",e),t}const ll=33,ul=Aa.devicePixelRatio,dl=e=>({x:Math.min(e.startX,e.endX),y:Math.min(e.startY,e.endY),width:Math.abs(e.startX-e.endX),height:Math.abs(e.startY-e.endY)}),hl=e=>{const t=e.clientHeight,n=e.clientWidth,r=e.width/e.height;let o=t*r,s=t;o>n&&(o=n,s=n/r);const i=(n-o)/2,a=(t-s)/2;return{startX:i,startY:a,endX:o+i,endY:s+a}};function pl({h:e,hooks:t,imageBuffer:n,dialog:r,options:o}){const s=function({hooks:e}){return function({onBeforeScreenshot:t,onScreenshot:n,onAfterScreenshot:r,onError:o}){e.useEffect(()=>{(async()=>{t();const e=await Na.mediaDevices.getDisplayMedia({video:{width:Aa.innerWidth*Aa.devicePixelRatio,height:Aa.innerHeight*Aa.devicePixelRatio},audio:!1,monitorTypeSurfaces:"exclude",preferCurrentTab:!0,selfBrowserSurface:"include",surfaceSwitching:"exclude"}),o=Oa.createElement("video");await new Promise((t,r)=>{o.srcObject=e,o.onloadedmetadata=()=>{n(o),e.getTracks().forEach(e=>e.stop()),t()},o.play().catch(r)}),r()})().catch(o)},[])}}({hooks:t});return function({onError:i}){const a=t.useMemo(()=>({__html:cl(o.styleNonce).innerText}),[]),c=function({h:e}){return function({top:t,left:n,corner:r,onGrabButton:o}){return e("button",{class:`editor__crop-corner editor__crop-corner--${r}
1 `,style:{top:t,left:n},onMouseDown:e=>{e.preventDefault(),o(e,r)},onClick:e=>{e.preventDefault()}})}}({h:e}),l=t.useRef(null),u=t.useRef(null),d=t.useRef(null),[h,p]=t.useState({startX:0,startY:0,endX:0,endY:0}),[f,m]=t.useState(!1),[g,_]=t.useState(!1);function y(){const e=d.current,t=dl(hl(n));if(e){e.width=t.width*ul,e.height=t.height*ul,e.style.width=`${t.width}px`,e.style.height=`${t.height}px`;const n=e.getContext("2d");n&&n.scale(ul,ul)}const r=u.current;r&&(r.style.width=`${t.width}px`,r.style.height=`${t.height}px`),p({startX:0,startY:0,endX:t.width,endY:t.height})}function v(e,t){m(!1),_(!0);const n=b(t),r=()=>{Oa.removeEventListener("mousemove",n),Oa.removeEventListener("mouseup",r),m(!0),_(!1)};Oa.addEventListener("mouseup",r),Oa.addEventListener("mousemove",n)}t.useEffect(()=>{Aa.addEventListener("resize",y,!1)},[]),t.useEffect(()=>{const e=d.current;if(!e)return;const t=e.getContext("2d");if(!t)return;const r=dl(hl(n)),o=dl(h);t.clearRect(0,0,r.width,r.height),t.fillStyle="rgba(0, 0, 0, 0.5)",t.fillRect(0,0,r.width,r.height),t.clearRect(o.x,o.y,o.width,o.height),t.strokeStyle="#ffffff",t.lineWidth=3,t.strokeRect(o.x+1,o.y+1,o.width-2,o.height-2),t.strokeStyle="#000000",t.lineWidth=1,t.strokeRect(o.x+3,o.y+3,o.width-6,o.height-6)},[h]);const b=t.useCallback(e=>function(t){if(!d.current)return;const n=d.current,r=n.getBoundingClientRect(),o=t.clientX-r.x,s=t.clientY-r.y;switch(e){case"top-left":p(e=>({...e,startX:Math.min(Math.max(0,o),e.endX-ll),startY:Math.min(Math.max(0,s),e.endY-ll)}));break;case"top-right":p(e=>({...e,endX:Math.max(Math.min(o,n.width/ul),e.startX+ll),startY:Math.min(Math.max(0,s),e.endY-ll)}));break;case"bottom-left":p(e=>({...e,startX:Math.min(Math.max(0,o),e.endX-ll),endY:Math.max(Math.min(s,n.height/ul),e.startY+ll)}));break;case"bottom-right":p(e=>({...e,endX:Math.max(Math.min(o,n.width/ul),e.startX+ll),endY:Math.max(Math.min(s,n.height/ul),e.startY+ll)}))}},[]),S=t.useRef({initialX:0,initialY:0});return s({onBeforeScreenshot:t.useCallback(()=>{r.el.style.display="none"},[]),onScreenshot:t.useCallback(e=>{const t=n.getContext("2d");if(!t)throw new Error("Could not get canvas context");n.width=e.videoWidth,n.height=e.videoHeight,n.style.width="100%",n.style.height="100%",t.drawImage(e,0,0)},[n]),onAfterScreenshot:t.useCallback(()=>{r.el.style.display="block";const e=l.current;e&&e.appendChild(n),y()},[]),onError:t.useCallback(e=>{r.el.style.display="block",i(e)},[])}),e("div",{class:"editor"},e("style",{nonce:o.styleNonce,dangerouslySetInnerHTML:a}),e("div",{class:"editor__canvas-container",ref:l},e("div",{class:"editor__crop-container",style:{position:"absolute",zIndex:1},ref:u},e("canvas",{onMouseDown:function(e){if(g)return;S.current={initialX:e.clientX,initialY:e.clientY};const t=e=>{const t=d.current;if(!t)return;const n=e.clientX-S.current.initialX,r=e.clientY-S.current.initialY;p(o=>{const s=Math.max(0,Math.min(o.startX+n,t.width/ul-(o.endX-o.startX))),i=Math.max(0,Math.min(o.startY+r,t.height/ul-(o.endY-o.startY))),a=s+(o.endX-o.startX),c=i+(o.endY-o.startY);return S.current.initialX=e.clientX,S.current.initialY=e.clientY,{startX:s,startY:i,endX:a,endY:c}})},n=()=>{Oa.removeEventListener("mousemove",t),Oa.removeEventListener("mouseup",n)};Oa.addEventListener("mousemove",t),Oa.addEventListener("mouseup",n)},style:{position:"absolute",cursor:f?"move":"auto"},ref:d}),e(c,{left:h.startX-3,top:h.startY-3,onGrabButton:v,corner:"top-left"}),e(c,{left:h.endX-30+3,top:h.startY-3,onGrabButton:v,corner:"top-right"}),e(c,{left:h.startX-3,top:h.endY-30+3,onGrabButton:v,corner:"bottom-left"}),e(c,{left:h.endX-30+3,top:h.endY-30+3,onGrabButton:v,corner:"bottom-right"}),e("div",{style:{left:Math.max(0,h.endX-191),top:Math.max(0,h.endY+8),display:f?"flex":"none"},class:"editor__crop-btn-group"},e("button",{onClick:e=>{e.preventDefault(),d.current&&p({startX:0,startY:0,endX:d.current.width/ul,endY:d.current.height/ul}),m(!1)},class:"btn btn--default"},o.cancelButtonLabel),e("button",{onClick:e=>{e.preventDefault(),function(){const e=Oa.createElement("canvas"),t=dl(hl(n)),r=dl(h);e.width=r.width*ul,e.height=r.height*ul;const o=e.getContext("2d");o&&n&&o.drawImage(n,r.x/t.width*n.width,r.y/t.height*n.height,r.width/t.width*n.width,r.height/t.height*n.height,0,0,e.width,e.height);const s=n.getContext("2d");s&&(s.clearRect(0,0,n.width,n.height),n.width=e.width,n.height=e.height,n.style.width=`${r.width}px`,n.style.height=`${r.height}px`,s.drawImage(e,0,0),y())}(),m(!1)},class:"btn btn--primary"},o.confirmButtonLabel)))))}}const fl=()=>({name:"FeedbackScreenshot",setupOnce(){},createInput:({h:e,hooks:t,dialog:n,options:r})=>{const o=Oa.createElement("canvas");return{input:pl({h:e,hooks:t,imageBuffer:o,dialog:n,options:r}),value:async()=>{const e=await new Promise(e=>
1{o.toBlob(e,"image/png")});if(e){return{data:new Uint8Array(await e.arrayBuffer()),filename:"screenshot.png",contentType:"application/png"}}}}}}),ml=(({lazyLoadIntegration:e,getModalIntegration:t,getScreenshotIntegration:n})=>({id:r="sentry-feedback",autoInject:o=!0,showBranding:s=!0,isEmailRequired:i=!1,isNameRequired:a=!1,showEmail:c=!0,showName:l=!0,enableScreenshot:u=!0,useSentryUser:d={email:"email",name:"username"},tags:h,styleNonce:p,scriptNonce:f,colorScheme:m="system",themeLight:g={},themeDark:_={},addScreenshotButtonLabel:y="Add a screenshot",cancelButtonLabel:v="Cancel",confirmButtonLabel:b="Confirm",emailLabel:S="Email",emailPlaceholder:k="[email protected]",formTitle:w="Report a Bug",isRequiredLabel:E="(required)",messageLabel:x="Description",messagePlaceholder:C="What's the bug? What did you expect?",nameLabel:T="Name",namePlaceholder:I="Your Name",removeScreenshotButtonLabel:R="Remove screenshot",submitButtonLabel:D="Send Bug Report",successMessageText:A="Thank you for your report!",triggerLabel:O=La,triggerAriaLabel:N="",onFormOpen:L,onFormClose:P,onSubmitSuccess:F,onSubmitError:$,onFormSubmitted:B}={})=>{const U={id:r,autoInject:o,showBranding:s,isEmailRequired:i,isNameRequired:a,showEmail:c,showName:l,enableScreenshot:u,useSentryUser:d,tags:h,styleNonce:p,scriptNonce:f,colorScheme:m,themeDark:_,themeLight:g,triggerLabel:O,triggerAriaLabel:N,cancelButtonLabel:v,submitButtonLabel:D,confirmButtonLabel:b,formTitle:w,emailLabel:S,emailPlaceholder:k,messageLabel:x,messagePlaceholder:C,nameLabel:T,namePlaceholder:I,successMessageText:A,isRequiredLabel:E,addScreenshotButtonLabel:y,removeScreenshotButtonLabel:R,onFormClose:P,onFormOpen:L,onSubmitError:$,onSubmitSuccess:F,onFormSubmitted:B};let j=null,H=[];const z=e=>{if(!j){const t=Oa.createElement("div");t.id=String(e.id),Oa.body.appendChild(t),j=t.attachShadow({mode:"open"}),j.appendChild(function({colorScheme:e,themeDark:t,themeLight:n,styleNonce:r}){const o=Oa.createElement("style");return o.textContent=`\n:host {\n  --font-family: system-ui, 'Helvetica Neue', Arial, sans-serif;\n  --font-size: 14px;\n  --z-index: 100000;\n\n  --page-margin: 16px;\n  --inset: auto 0 0 auto;\n  --actor-inset: var(--inset);\n\n  font-family: var(--font-family);\n  font-size: var(--font-size);\n\n  ${"system"!==e?"color-scheme: only light;":""}\n\n  ${Wa("dark"===e?{...za,...t}:{...Ha,...n})}\n}\n\n${"system"===e?`\n@media (prefers-color-scheme: dark) {\n  :host {\n    ${Wa({...za,...t})}\n  }\n}`:""}\n}\n`,r&&o.setAttribute("nonce",r),o}(e))}return j},W=async r=>{const o=r.enableScreenshot&&!(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(Na.userAgent)||/Macintosh/i.test(Na.userAgent)&&Na.maxTouchPoints&&Na.maxTouchPoints>1||!isSecureContext);let s,i;try{s=(t?t():await e("feedbackModalIntegration",f))(),Da(s)}catch(e){throw Fa&&M.error("[Feedback] Error when trying to load feedback integrations. Try using `feedbackSyncIntegration` in your `Sentry.init`."),new Error("[Feedback] Missing feedback modal integration!")}try{const t=o?n?n():await e("feedbackScreenshotIntegration",f):void 0;t&&(i=t(),Da(i))}catch(e){Fa&&M.error("[Feedback] Missing feedback screenshot integration. Proceeding without screenshots.")}const a=s.createDialog({options:{...r,onFormClose:()=>{a&&a.close(),r.onFormClose&&r.onFormClose()},onFormSubmitted:()=>{a&&a.close(),r.onFormSubmitted&&r.onFormSubmitted()}},screenshotIntegration:i,sendFeedback:Pa,shadow:z(r)});return a},q=(e,t={})=>{const n=$a(U,t),r="string"==typeof e?Oa.querySelector(e):"function"==typeof e.addEventListener?e:null;if(!r)throw Fa&&M.error("[Feedback] Unable to attach to target element"),new Error("Unable to attach to target element");let o=null;const s=async()=>{o||(o=await W({...n,onFormSubmitted:()=>{o&&o.removeFromDom(),n.onFormSubmitted&&n.onFormSubmitted()}})),o.appendToDom(),o.open()};r.addEventListener("click",s);const i=()=>{H=H.filter(e=>e!==i),o&&o.removeFromDom(),o=null,r.removeEventListener("click",s)};return H.push(i),i},Y=(e={})=>{const t=$a(U,e),n=z(t),r=Ua({triggerLabel:t.triggerLabel,triggerAriaLabel:t.triggerAriaLabel,shadow:n,styleNonce:p});return q(r.el,{...t,onFormOpen(){r.hide()},onFormClose(){r.show()},onFormSubmitted(){r.show()}}),r};return{name:"Feedback",setupOnce(){Yt()&&U.autoInject&&("loading"===Oa.readyState?Oa.addEventListener("DOMContentLoaded",()=>Y().appendToDom()):Y().appendToDom())},attachTo:q,createWidget(e={}){const t=Y($a(U,e));return t.appendToDom(),t},createForm:async(e={})=>W($a(U,e)),remove(){j&&(j.parentElement&&j.parentElement.remove(),j=null),H.forEach(e
vendor: 4,238 bytes, line 1
1=>e()),H=[]}}})({getModalIntegration:()=>al,getScreenshotIntegration:()=>fl}),gl=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,"undefined is not an object (evaluating 'a.L')",'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+$/],_l=(e={})=>({name:"InboundFilters",processEvent(t,n,r){const o=r.getOptions(),s=function(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:gl],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(e,o);return function(e,t){if(t.ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(e){}return!1}(e))return $e&&M.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${le(e)}`),!0;if(function(e,t){if(e.type||!t||!t.length)return!1;return function(e){const t=[];e.message&&t.push(e.message);let n;try{n=e.exception.values[e.exception.values.length-1]}catch(e){}n&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`));return t}(e).some(e=>O(e,t))}(e,t.ignoreErrors))return $e&&M.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${le(e)}`),!0;if(function(e){if(e.type)return!1;if(!e.exception||!e.exception.values||0===e.exception.values.length)return!1;return!e.message&&!e.exception.values.some(e=>e.stacktrace||e.type&&"Error"!==e.type||e.value)}(e))return $e&&M.warn(`Event dropped due to not having an error message, error type or stacktrace.\nEvent: ${le(e)}`),!0;if(function(e,t){if("transaction"!==e.type||!t||!t.length)return!1;const n=e.transaction;return!!n&&O(n,t)}(e,t.ignoreTransactions))return $e&&M.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${le(e)}`),!0;if(function(e,t){if(!t||!t.length)return!1;const n=yl(e);return!!n&&O(n,t)}(e,t.denyUrls))return $e&&M.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${le(e)}.\nUrl: ${yl(e)}`),!0;if(!function(e,t){if(!t||!t.length)return!0;const n=yl(e);return!n||O(n,t)}(e,t.allowUrls))return $e&&M.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${le(e)}.\nUrl: ${yl(e)}`),!0;return!1}(t,s)?null:t}});function yl(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch(e){}return t?function(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(t):null}catch(t){return $e&&M.error(`Cannot extract url for event ${le(e)}`),null}}let vl;const bl=new WeakMap,Sl=()=>({name:"FunctionToString",setupOnce(){vl=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=F(this),n=bl.has(Ae())&&void 0!==t?t:this;return vl.apply(n,e)}}catch(e){}},setup(e){bl.set(e,!0)}}),kl=()=>{let e;return{name:"Dedupe",processEvent(t){if(t.type)return t;try{if(function(e,t){if(!t)return!1;if(function(e,t){const n=e.message,r=t.message;if(!n&&!r)return!1;if(n&&!r||!n&&r)return!1;if(n!==r)return!1;if(!El(e,t))return!1;if(!wl(e,t))return!1;return!0}(e,t))return!0;if(function(e,t){const n=xl(t),r=xl(e);if(!n||!r)return!1;if(n.type!==r.type||n.value!==r.value)return!1;if(!El(e,t))return!1;if(!wl(e,t))return!1;return!0}(e,t))return!0;return!1}(t,e))return $e&&M.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(e){}return e=t}}};function wl(e,t){let n=J(e),r=J(t);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(r.length!==n.length)return!1;for(let e=0;e<r.length;e++){const t=r[e],o=n[e];if(t.filename!==o.filename||t.lineno!==o.lineno||t.colno!==o.colno||t.function!==o.function)return!1}return!0}function El(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;
1if(n&&!r||!n&&r)return!1;try{return!(n.join("")!==r.join(""))}catch(e){return!1}}function xl(e){return e.exception&&e.exception.values&&e.exception.values[0]}function Cl(e,t){!0===t.debug&&($e?M.enable():I(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")}));Me().update(t.initialScope);const n=new e(t);return function(e){Me().setClient(e)}(n),n.init(),n}function Tl(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function Il(e,t,n){return t||`${function(e){return`${Tl(e)}${e.projectId}/envelope/`}(e)}?${function(e,t){const n={sentry_version:"7"};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}(e,n)}`}class Ml extends Error{constructor(e,t="warn"){super(e),this.message=e,this.logLevel=t}}const Rl="Not capturing exception because it's already been captured.";class Dl{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=Dt(e.dsn):$e&&M.warn("No DSN provided, client will not send events."),this._dsn){const t=Il(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})}const t=["enableTracing","tracesSampleRate","tracesSampler"].find(t=>t in e&&null==e[t]);t&&I(()=>{console.warn(`[Sentry] Deprecation warning: \`${t}\` is set to undefined, which leads to tracing being enabled. In v9, a value of \`undefined\` will result in tracing being disabled.`)})}captureException(e,t,n){const r=ae();if(he(e))return $e&&M.log(Rl),r;const o={event_id:r,...t};return this._process(this.eventFromException(e,o).then(e=>this._captureEvent(e,o,n))),o.event_id}captureMessage(e,t,n,r){const o={event_id:ae(),...n},s=p(e)?e:String(e),i=f(e)?this.eventFromMessage(s,t,o):this.eventFromException(e,o);return this._process(i.then(e=>this._captureEvent(e,o,r))),o.event_id}captureEvent(e,t,n){const r=ae();if(t&&t.originalException&&he(t.originalException))return $e&&M.log(Rl),r;const o={event_id:r,...t},s=(e.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(e,o,s||n)),o.event_id}captureSession(e){"string"!=typeof e.release?$e&&M.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),fe(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){const t=this._transport;
vendor: 4,298 bytes, line 1
1return t?(this.emit("flush"),this._isClientDoneProcessing(e).then(n=>t.flush(e).then(e=>n&&e))):Ue(!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){const t=this._integrations[e.name];Ra(this,e,this._integrations),t||Ma(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let n=function(e,t,n,r){const o=Ut(n),s=e.type&&"replay_event"!==e.type?e.type:"event";!function(e,t){t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]])}(e,n&&n.sdk);const i=jt(e,o,r,t);return delete e.sdkProcessingMetadata,At(i,[[{type:s},e]])}(e,this._dsn,this._options._metadata,this._options.tunnel);for(const e of t.attachments||[])n=Ot(n,Ft(e));const r=this.sendEnvelope(n);r&&r.then(t=>this.emit("afterSendEvent",e,t),null)}sendSession(e){const t=function(e,t,n,r){const o=Ut(n);return At({sent_at:(new Date).toISOString(),...o&&{sdk:o},...!!r&&t&&{dsn:Mt(t)}},["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()]])}(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(t)}recordDroppedEvent(e,t,n){if(this._options.sendClientReports){const r="number"==typeof n?n:1,o=`${e}:${t}`;$e&&M.log(`Recording outcome: "${o}"${r>1?` (${r} times)`:""}`),this._outcomes[o]=(this._outcomes[o]||0)+r}}on(e,t){const n=this._hooks[e]=this._hooks[e]||[];return n.push(t),()=>{const e=n.indexOf(t);e>-1&&n.splice(e,1)}}emit(e,...t){const 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&&M.error("Error while sending envelope:",e),e)):($e&&M.error("Transport disabled"),Ue({}))}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=function(e,t){const n={};return t.forEach(t=>{t&&Ra(e,t,n)}),n}(this,e),Ma(this,e)}_updateSessionFromEvent(e,t){let n="fatal"===t.level,r=!1;const o=t.exception&&t.exception.values;if(o){r=!0;for(const e of o){const t=e.mechanism;if(t&&!1===t.handled){n=!0;break}}}const s="ok"===e.status;(s&&0===e.errors||s&&n)&&(fe(e,{...n&&{status:"crashed"},errors:e.errors||Number(r||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new He(t=>{let n=0;const r=setInterval(()=>{0==this._numProcessing?(clearInterval(r),t(!0)):(n+=1,e&&n>=e&&(clearInterval(r),t(!1)))},1)})}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,n=Me(),r=Re()){const o=this.getOptions(),s=Object.keys(this._integrations);return!t.integrations&&s.length>0&&(t.integrations=s),this.emit("preprocessEvent",e,t),e.type||r.setLastEventId(e.event_id||t.event_id),_t(o,e,t,n,this,r).then(e=>{if(null===e)return e;e.contexts={trace:Oe(n),...e.contexts};const t=function(e,t){const n=t.getPropagationContext();return n.dsc||ht(n.traceId,e)}(this,n);return e.sdkProcessingMetadata={dynamicSamplingContext:t,...e.sdkProcessingMetadata},e})}_captureEvent(e,t={},n){return this._processEvent(e,t,n).then(e=>e.event_id,e=>{$e&&(e instanceof Ml&&"log"===e.logLevel?M.log(e.message):M.warn(e))})}_processEvent(e,t,n){const r=this.getOptions(),{sampleRate:o}=r,s=Ol(e),i=Al(e),a=e.type||"error",c=`before send for type \`${a}\``,l=void 0===o?void 0:Vt(o);if(i&&"number"==typeof l&&Math.random()>l)return this.recordDroppedEvent("sample_rate","error",e),je(new Ml(`Discarding event because it's not included in the random sample (sampling rate = ${o})`,"log"));const u="replay_event"===a?"replay":a,d=(e.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(e,t,n,d).then(n=>{if(null===n)throw this.recordDroppedEvent("event_processor",u,e),new Ml("An event processor returned `null`, will not send event.","log");if(t.data&&!0===t.data.__sentry__)return n;const o=function(e,t,n,r){const{beforeSend:o,beforeSendTransaction:s,beforeSendSpan:i}=t;if(Al(n)&&o)return o(n,r);
vendor: 17,785 bytes, line 1
1if(Ol(n)){if(n.spans&&i){const t=[];for(const r of n.spans){const n=i(r);n?t.push(n):(ut(),e.recordDroppedEvent("before_send","span"))}n.spans=t}if(s){if(n.spans){const e=n.spans.length;n.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return s(n,r)}}return n}(this,r,n,t);return function(e,t){const n=`${t} must return \`null\` or a valid event.`;if(_(e))return e.then(e=>{if(!m(e)&&null!==e)throw new Ml(n);return e},e=>{throw new Ml(`${t} rejected with ${e}`)});if(!m(e)&&null!==e)throw new Ml(n);return e}(o,c)}).then(r=>{if(null===r){if(this.recordDroppedEvent("before_send",u,e),s){const t=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",t)}throw new Ml(`${c} returned \`null\`, will not send event.`,"log")}const o=n&&n.getSession();if(!s&&o&&this._updateSessionFromEvent(o,r),s){const e=(r.sdkProcessingMetadata&&r.sdkProcessingMetadata.spanCountBeforeProcessing||0)-(r.spans?r.spans.length:0);e>0&&this.recordDroppedEvent("before_send","span",e)}const i=r.transaction_info;if(s&&i&&r.transaction!==e.transaction){const e="custom";r.transaction_info={...i,source:e}}return this.sendEvent(r,t),r}).then(null,e=>{if(e instanceof Ml)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new Ml(`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(){const e=this._outcomes;return this._outcomes={},Object.entries(e).map(([e,t])=>{const[n,r]=e.split(":");return{reason:n,category:r,quantity:t}})}_flushOutcomes(){$e&&M.log("Flushing outcomes...");const e=this._clearOutcomes();if(0===e.length)return void($e&&M.log("No outcomes to send"));if(!this._dsn)return void($e&&M.log("No dsn provided, will not send outcomes"));$e&&M.log("Sending outcomes:",e);const t=(n=e,At((r=this._options.tunnel&&Mt(this._dsn))?{dsn:r}:{},[[{type:"client_report"},{timestamp:o||te(),discarded_events:n}]]));var n,r,o;this.sendEnvelope(t)}}function Al(e){return void 0===e.type}function Ol(e){return"transaction"===e.type}const Nl="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function Ll(e,t){const n=$l(e,t),r={type:jl(t),value:Hl(t)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function Pl(e,t,n,r){const o=Ae(),s=o&&o.getOptions().normalizeDepth,i=function(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];if(n instanceof Error)return n}return}(t),a={__serialized__:Z(t,s)};if(i)return{exception:{values:[Ll(e,i)]},extra:a};const c={exception:{values:[{type:g(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:ql(t,{isUnhandledRejection:r})}]},extra:a};if(n){const t=$l(e,n);t.length&&(c.exception.values[0].stacktrace={frames:t})}return c}function Fl(e,t){return{exception:{values:[Ll(e,t)]}}}function $l(e,t){const n=t.stacktrace||t.stack||"",r=function(e){if(e&&Bl.test(e.message))return 1;return 0}(t),o=function(e){if("number"==typeof e.framesToPop)return e.framesToPop;return 0}(t);try{return e(n,r,o)}catch(e){}return[]}const Bl=/Minified React error #\d+;/i;function Ul(e){return"undefined"!=typeof WebAssembly&&void 0!==WebAssembly.Exception&&e instanceof WebAssembly.Exception}function jl(e){const t=e&&e.name;if(!t&&Ul(e)){return e.message&&Array.isArray(e.message)&&2==e.message.length?e.message[0]:"WebAssembly.Exception"}return t}function Hl(e){const t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:Ul(e)&&Array.isArray(e.message)&&2==e.message.length?e.message[1]:t:"No error message"}function zl(e,t,n,r,o){let s;if(u(t)&&t.error){return Fl(e,t.error)}if(d(t)||l(t,"DOMException")){const o=t;if("stack"in t)s=Fl(e,t);else{const t=o.name||(d(o)?"DOMError":"DOMException"),i=o.message?`${t}: ${o.message}`:t;s=Wl(e,i,n,r),ue(s,i)}return"code"in o&&(s.tags={...s.tags,"DOMException.code":`${o.code}`}),s}if(c(t))return Fl(e,t);if(m(t)||g(t)){return s=Pl(e,t,n,o),de(s,{synthetic:!0}),s}return s=Wl(e,t,n,r),ue(s,`${t}`,void 0),de(s,{synthetic:!0}),s}function Wl(e,t,n,r){const o={};if(r&&n){const r=$l(e,n);r.length&&(o.exception={values:[{value:t,stacktrace:{frames:r}}]}),de(o,{synthetic:!0})}if(p(t)){const{__sentry_template_string__:e,__sentry_template_values__:n}=t;return o.logentry={message:e,params:n},o}return o.message=t,o}function ql(e,{isUnhandledRejection:t}){const n=function(e,t=40){const n=Object.keys($(e));n.sort();const r=n[0];if(!r)return"[object has no keys]";if(r.length>=t)return R(r,t);for(let e=n.length;e>0;e--){const r=n.slice(0,e).join(", ");if(!(r.length>t))return e===n.length?r:R(r,t)}return""}(e),r=t?"promise rejection":"exception";if(u(e))return`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``;if(g(e)){return`Event \`${function(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(e){}}(e)}\` (type=${e.type}) captured as ${r}`}return`Object captured as ${r} with keys: ${n}`}const Yl=s;let Vl=0;function Xl(){return Vl>0}function Gl(e,t={}){if(!function(e){return"function"==typeof e}(e))return e;try{const t=e.__sentry_wrapped__;if(t)return"function"==typeof t?t:e;if(F(e))return e}catch(t){return e}const n=function(...n){try{const r=n.map(e=>Gl(e,t));return e.apply(this,r)}catch(e){throw Vl++,setTimeout(()=>{Vl--}),function(...e){const t=Ie(se());if(2===e.length){const[n,r]=e;return n?t.withSetScope(n,r):t.withScope(r)}t.withScope(e[0])}(r=>{r.addEventProcessor(e=>(t.mechanism&&(ue(e,void 0,void 0),de(e,t.mechanism)),e.extra={...e.extra,arguments:n},e)),bt(e)}),e}};try{for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}catch(e){}P(n,e),L(e,"__sentry_wrapped__",n);try{Object.getOwnPropertyDescriptor(n,"name").configurable&&Object.defineProperty(n,"name",{get:()=>e.name})}catch(e){}return n}class Kl extends Dl{constructor(e){const t={parentSpanIsAlwaysRootSpan:!0,...e};!function(e,t,n=[t],r="npm"){const s=e._metadata||{};s.sdk||(s.sdk={name:`sentry.javascript.${t}`,packages:n.map(e=>({name:`${r}:@sentry/${e}`,version:o})),version:o}),e._metadata=s}(t,"browser",["browser"],Yl.SENTRY_SDK_SOURCE||"npm"),super(t),t.sendClientReports&&Yl.document&&Yl.document.addEventListener("visibilitychange",()=>{"hidden"===Yl.document.visibilityState&&this._flushOutcomes()})}eventFromException(e,t){return function(e,t,n,r){const o=zl(e,t,n&&n.syntheticException||void 0,r);return de(o),o.level="error",n&&n.event_id&&(o.event_id=n.event_id),Ue(o)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return function(e,t,n="info",r,o){const s=Wl(e,t,r&&r.syntheticException||void 0,o);return s.level=n,r&&r.event_id&&(s.event_id=r.event_id),Ue(s)}(this._options.stackParser,e,t,n,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled())return void(Nl&&M.warn("SDK not enabled, will not capture user feedback."));const t=function(e,{metadata:t,tunnel:n,dsn:r}){const o={event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:Mt(r)}},s=function(e){return[{type:"user_report"},e]}(e);return At(o,[s])}(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.sendEnvelope(t)}_prepareEvent(e,t,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n)}}function Jl(){"console"in s&&C.forEach(function(e){e in s.console&&N(s.console,e,function(t){return T[e]=t,function(...t){tr("console",{args:t,level:e});const n=T[e];n&&n.apply(s.console,t)}})})}function Ql(e,t=!1){t&&!function(){if("string"==typeof EdgeRuntime)return!0;if(!Gt())return!1;if(Kt(Xt.fetch))return!0;let e=!1;const t=Xt.document;if(t&&"function"==typeof t.createElement)try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=Kt(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){x&&M.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e}()||N(s,"fetch",function(t){return function(...n){const r=new Error,{method:o,url:i}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){const[t,n]=e;return{url:eu(t),method:Zl(n,"method")?String(n.method).toUpperCase():"GET"}}const t=e[0];return{url:eu(t),method:Zl(t,"method")?String(t.method).toUpperCase():"GET"}}(n),a={args:n,fetchData:{method:o,url:i},startTimestamp:1e3*ne(),virtualError:r};return e||tr("fetch",{...a}),t.apply(s,n).then(async t=>(e?e(t):tr("fetch",{...a,endTimestamp:1e3*ne(),response:t}),t),e=>{throw tr("fetch",{...a,endTimestamp:1e3*ne(),error:e}),c(e)&&void 0===e.stack&&(e.stack=r.stack,L(e,"framesToPop",1)),e})}})}function Zl(e,t){return!!e&&"object"==typeof e&&!!e[t]}function eu(e){return"string"==typeof e?e:e?Zl(e,"url")?e.url:e.toString?e.toString():"":""}function tu(e){return void 0===e?void 0:e>=400&&e<500?"warning":e>=500?"error":void 0}function nu(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const 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}}const ru=1024,ou=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:"Breadcrumbs",setup(e){var n;t.console&&function(e){const t="console";Zn(t,e),er(t,Jl)}(function(e){return function(t){if(Ae()!==e)return;const n={category:"console",data:{arguments:t.args,logger:"console"},level:Pe(t.level),message:D(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;n.message=`Assertion failed: ${D(t.args.slice(1)," ")||"console.assert"}`,n.data.arguments=t.args.slice(1)}Le(n,{input:t.args,level:t.level})}}(e)),t.dom&&ar(function(e,t){return function(n){if(Ae()!==e)return;let r,o,s="object"==typeof t?t.serializeAttribute:void 0,i="object"==typeof t&&"number"==typeof t.maxStringLength?t.maxStringLength:void 0;i&&i>ru&&(Nl&&M.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${i} was configured. Sentry will use 1024 instead.`),i=ru),"string"==typeof s&&(s=[s]);try{const e=n.event,t=function(e){return!!e&&!!e.target}(e)?e.target:e;r=k(t,{keyAttrs:s,maxStringLength:i}),o=function(e){if(!b.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}(t)}catch(e){r="<unknown>"}if(0===r.length)return;const a={category:`ui.${n.name}`,message:r};o&&(a.data={"ui.component_name":o}),Le(a,{event:n.event,name:n.name,global:n.global})}}(e,t.dom)),t.xhr&&(n=function(e){return function(t){if(Ae()!==e)return;const{startTimestamp:n,endTimestamp:r}=t,o=t.xhr[nr];if(!n||!r||!o)return;const{method:s,url:i,status_code:a,body:c}=o,l={method:s,url:i,status_code:a},u={xhr:t.xhr,input:c,startTimestamp:n,endTimestamp:r};Le({category:"xhr",data:l,type:"http",level:tu(a)},u)}}(e),Zn("xhr",n),er("xhr",rr)),t.fetch&&function(e,t){const n="fetch";Zn(n,e),er(n,()=>Ql(void 0,t))}(function(e){return function(t){if(Ae()!==e)return;const{startTimestamp:n,endTimestamp:r}=t;if(r&&(!t.fetchData.url.match(/sentry_key/)||"POST"!==t.fetchData.method))if(t.error){Le({category:"fetch",data:t.fetchData,level:"error",type:"http"},{data:t.error,input:t.args,startTimestamp:n,endTimestamp:r})}else{const e=t.response,o={...t.fetchData,status_code:e&&e.status},s={input:t.args,response:e,startTimestamp:n,endTimestamp:r};Le({category:"fetch",data:o,type:"http",level:tu(o.status_code)},s)}}}(e)),t.history&&hr(function(e){return function(t){if(Ae()!==e)return;let n=t.from,r=t.to;const o=nu(Yl.location.href);let s=n?nu(n):void 0;const i=nu(r);s&&s.path||(s=o),o.protocol===i.protocol&&o.host===i.host&&(r=i.relative),o.protocol===s.protocol&&o.host===s.host&&(n=s.relative),Le({category:"navigation",data:{from:n,to:r}})}}(e)),t.sentry&&e.on("beforeSendEvent",function(e){return function(t){Ae()===e&&Le({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:le(t)},{event:t})}}(e))}}};const su=["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"],iu=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:"BrowserApiErrors",setupOnce(){t.setTimeout&&N(Yl,"setTimeout",au),t.setInterval&&N(Yl,"setInterval",au),t.requestAnimationFrame&&N(Yl,"requestAnimationFrame",cu),t.XMLHttpRequest&&"XMLHttpRequest"in Yl&&N(XMLHttpRequest.prototype,"send",lu);const e=t.eventTarget;if(e){(Array.isArray(e)?e:su).forEach(uu)}}}};function au(e){return function(...t){const n=t[0];return t[0]=Gl(n,{mechanism:{data:{function:K(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function cu(e){return function(t){return e.apply(this,[Gl(t,{mechanism:{data:{function:"requestAnimationFrame",handler:K(e)},handled:!1,type:"instrument"}})])}}function lu(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(e=>{e in n&&"function"==typeof n[e]&&N(n,e,function(t){const n={mechanism:{data:{function:e,handler:K(t)},handled:!1,type:"instrument"}},r=F(t);return r&&(n.mechanism.data.handler=K(r)),Gl(t,n)})}),e.apply(this,t)}}function uu(e){const t=Yl[e],n=t&&t.prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(N(n,"addEventListener",function(t){return function(n,r,o){try{"function"==typeof r.handleEvent&&(r.handleEvent=Gl(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:K(r),target:e},handled:!1,type:"instrument"}}))}catch(e){}return t.apply(this,[n,Gl(r,{mechanism:{data:{function:"addEventListener",handler:K(r),target:e},handled:!1,type:"instrument"}}),o])}}),N(n,"removeEventListener",function(e){return function(t,n,r){try{const o=n.__sentry_wrapped__;o&&e.call(this,t,o,r)}catch(e){}return e.call(this,t,n,r)}}))}const du=()=>({name:"BrowserSession",setupOnce(){void 0!==Yl.document?(kt({ignoreDuration:!0}),xt(),hr(({from:e,to:t})=>{void 0!==e&&e!==t&&(kt({ignoreDuration:!0}),xt())})):Nl&&M.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.")}});let hu=null;function pu(){hu=s.onerror,s.onerror=function(e,t,n,r,o){return tr("error",{column:r,error:o,line:n,msg:e,url:t}),!!hu&&hu.apply(this,arguments)},s.onerror.__SENTRY_INSTRUMENTED__=!0}let fu=null;function mu(){fu=s.onunhandledrejection,s.onunhandledrejection=function(e){return tr("unhandledrejection",e),!fu||fu.apply(this,arguments)},s.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const gu=(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(!function(e){!function(e){const t="error";Zn(t,e),er(t,pu)}(t=>{const{stackParser:n,attachStacktrace:r}=yu();if(Ae()!==e||Xl())return;const{msg:o,url:s,line:i,column:a,error:c}=t,l=function(e,t,n,r){const o=e.exception=e.exception||{},s=o.values=o.values||[],i=s[0]=s[0]||{},a=i.stacktrace=i.stacktrace||{},c=a.frames=a.frames||[],l=r,u=n,d=h(t)&&t.length>0?t:E();0===c.length&&c.push({colno:l,filename:d,function:W,in_app:!0,lineno:u});return e}(zl(n,c||o,void 0,r,!1),s,i,a);l.level="error",St(l,{originalException:c,mechanism:{handled:!1,type:"onerror"}})})}(e),_u("onerror")),t.onunhandledrejection&&(!function(e){!function(e){const t="unhandledrejection";Zn(t,e),er(t,mu)}(t=>{const{stackParser:n,attachStacktrace:r}=yu();if(Ae()!==e||Xl())return;const o=function(e){if(f(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch(e){}return e}(t),s=f(o)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(o)}`}]}}:zl(n,o,void 0,r,!0);s.level="error",St(s,{originalException:o,mechanism:{handled:!1,type:"onunhandledrejection"}})})}(e),_u("onunhandledrejection"))}}};function _u(e){Nl&&M.log(`Global Handler attached: ${e}`)}function yu(){const e=Ae();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const vu=()=>({name:"HttpContext",preprocessEvent(e){if(!Yl.navigator&&!Yl.location&&!Yl.document)return;const t=e.request&&e.request.url||Yl.location&&Yl.location.href,{referrer:n}=Yl.document||{},{userAgent:r}=Yl.navigator||{},o={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},s={...e.request,...t&&{url:t},headers:o};e.request=s}});function bu(e,t,n=250,r,o,s,i){if(!(s.exception&&s.exception.values&&i&&y(i.originalException,Error)))return;const a=s.exception.values.length>0?s.exception.values[s.exception.values.length-1]:void 0;var c,l;a&&(s.exception.values=(c=Su(e,t,o,i.originalException,r,s.exception.values,a,0),l=n,c.map(e=>(e.value&&(e.value=R(e.value,l)),e))))}function Su(e,t,n,r,o,s,i,a){if(s.length>=n+1)return s;let c=[...s];if(y(r[o],Error)){ku(i,a);const s=e(t,r[o]),l=c.length;wu(s,o,l,a),c=Su(e,t,n,r[o],o,[s,...c],s,l)}return Array.isArray(r.errors)&&r.errors.forEach((r,s)=>{if(y(r,Error)){ku(i,a);const l=e(t,r),u=c.length;wu(l,`errors[${s}]`,u,a),c=Su(e,t,n,r,o,[l,...c],l,u)}}),c}function ku(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,..."AggregateError"===e.type&&{is_exception_group:!0}
1,exception_id:t}}function wu(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}}const Eu=(e={})=>{const t=e.limit||5,n=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,r,o){const s=o.getOptions();bu(Ll,s.stackParser,s.maxValueLength,n,t,e,r)}}};function xu(e,t,n,r){const o={filename:e,function:"<anonymous>"===t?W:t,in_app:!0};return void 0!==n&&(o.lineno=n),void 0!==r&&(o.colno=r),o}const Cu=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,Tu=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Iu=/\((\S*)(?::(\d+))(?::(\d+))\)/,Mu=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Ru=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Du=V(...[[30,e=>{const t=Cu.exec(e);if(t){const[,e,n,r]=t;return xu(e,W,+n,+r)}const n=Tu.exec(e);if(n){if(n[2]&&0===n[2].indexOf("eval")){const e=Iu.exec(n[2]);e&&(n[2]=e[1],n[3]=e[2],n[4]=e[3])}const[e,t]=Au(n[1]||W,n[2]);return xu(t,e,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}}],[50,e=>{const t=Mu.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const e=Ru.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]||W;return[n,e]=Au(n,e),xu(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}]]),Au=(e,t)=>{const n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:W,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};function Ou(e){const t=[];function n(e){return t.splice(t.indexOf(e),1)[0]||Promise.resolve(void 0)}return{$:t,add:function(r){if(!(void 0===e||t.length<e))return je(new Ml("Not adding Promise because buffer limit was reached."));const o=r();return-1===t.indexOf(o)&&t.push(o),o.then(()=>n(o)).then(null,()=>n(o).then(null,()=>{})),o},drain:function(e){return new He((n,r)=>{let o=t.length;if(!o)return n(!0);const s=setTimeout(()=>{e&&e>0&&n(!1)},e);t.forEach(e=>{Ue(e).then(()=>{--o||(clearTimeout(s),n(!0))},r)})})}}}const Nu=64;function Lu(e,t){if("event"===t||"transaction"===t)return Array.isArray(e)?e[1]:void 0}function Pu(e,t=en("fetch")){let n=0,r=0;return function(e,t,n=Ou(e.bufferSize||Nu)){let r={};return{send:function(o){const s=[];if(Nt(o,(t,n)=>{const o=Bt(n);if(zt(r,o)){const r=Lu(t,n);e.recordDroppedEvent("ratelimit_backoff",o,r)}else s.push(t)}),0===s.length)return Ue({});const i=At(o[0],s),a=t=>{Nt(i,(n,r)=>{const o=Lu(n,r);e.recordDroppedEvent(t,Bt(r),o)})};return n.add(()=>t({body:Pt(i)}).then(e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&$e&&M.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),r=Wt(r,e),e),e=>{throw a("network_error"),e})).then(e=>e,e=>{if(e instanceof Ml)return $e&&M.error("Skipped sending event because buffer is full."),a("queue_overflow"),Ue({});throw e})},flush:e=>n.drain(e)}}(e,function(o){const s=o.body.length;n+=s,r++;const i={body:o.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};if(!t)return tn("fetch"),je("No fetch implementation available");try{return t(e.url,i).then(e=>(n-=s,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 tn("fetch"),n-=s,r--,je(e)}})}function Fu(e){const t=[_l(),Sl(),iu(),ou(),gu(),Eu(),kl(),vu()];return!1!==e.autoSessionTracking&&t.push(du()),t}function $u(e={}){const t=function(e={}){const t={defaultIntegrations:Fu(e),release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:Yl.SENTRY_RELEASE&&Yl.SENTRY_RELEASE.id?Yl.SENTRY_RELEASE.id:void 0,autoSessionTracking:!0,sendClientReports:!0};return null==e.defaultIntegrations&&delete e.defaultIntegrations,{...t,...e}}(e);if(!t.skipBrowserExtensionCheck&&function(){const e=void 0!==Yl.window&&Yl;if(!e)return!1;const t=e[e.chrome?"chrome":"browser"],n=t&&t.runtime&&t.runtime.id,r=Yl.location&&Yl.location.href||"",o=!!n&&Yl===Yl.top&&["chrome-extension:","moz-extension:","ms-browser-extension:","safari-web-extension:"].some(e=>r.startsWith(`${e}//`)),s=void 0!==e.nw;return!!n&&!o&&!s}())return void I(()=>{console.error("[Sentry] You cannot run Sentry this way in a browser extension, check: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")});Nl&&(Gt()||M.warn("No Fetch API detected. The Sentry SDK requires a Fetch API compatible environment to send events. Please add a Fetch API polyfill."));const n={...t,stackParser:(r=t.stackParser||Du,Array.isArray(r)?V(...r):r),integrations:Ia(t),transport:t.transport||Pu};var r;return Cl(Kl,n)}function Bu(e={}){if(!Yl.document)return void(Nl&&M.error("Global document not defined in showReportDialog call"));const t=Me(),n=t.getClient(),r=n&&n.getDsn();if(!r)return void(Nl&&M.error("DSN not configured for showReportDialog call"));if(t&&(e.user={...t.getUser(),...e.user}),!e.eventId){const t=Re().lastEventId();t&&(e.eventId=t)}const o=Yl.document.createElement("script");o.async=!0,o.crossOrigin="anonymous",o.src=function(e,t){const n=Dt(e);
1if(!n)return"";const r=`${Tl(n)}embed/error-page/`;let o=`dsn=${Mt(n)}`;for(const e in t)if("dsn"!==e&&"onClose"!==e)if("user"===e){const e=t.user;if(!e)continue;e.name&&(o+=`&name=${encodeURIComponent(e.name)}`),e.email&&(o+=`&email=${encodeURIComponent(e.email)}`)}else o+=`&${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`;return`${r}?${o}`}(r,e),e.onLoad&&(o.onload=e.onLoad);const{onClose:s}=e;if(s){const e=t=>{if("__sentry_reportdialog_closed__"===t.data)try{s()}finally{Yl.removeEventListener("message",e)}};Yl.addEventListener("message",e)}const i=Yl.document.head||Yl.document.body;i?i.appendChild(o):Nl&&M.error("Not injecting report dialog. No injection point found in HTML")}var Uu=n(2515);function ju(e){(0,Uu._p)("s2522",function(){var t,n={dsn:e.dsn,integrations:[Ea()],replaysSessionSampleRate:.1,replaysOnErrorSampleRate:1};if(e.showFeedbackButton){var r=document.querySelector(".help .dropdown-menu"),o=ml({showBranding:!1,useSentryUser:{name:"name",email:"email"},triggerLabel:Translator.trans("sentry.trigger_label"),formTitle:Translator.trans("sentry.form_title"),submitButtonLabel:Translator.trans("sentry.submit_button_label"),cancelButtonLabel:Translator.trans("sentry.cancel_button_label"),confirmButtonLabel:Translator.trans("sentry.confirm_button_label"),addScreenshotButtonLabel:Translator.trans("sentry.add_screenshot_button_label"),removeScreenshotButtonLabel:Translator.trans("sentry.remove_screenshot_button_label"),nameLabel:Translator.trans("sentry.name_label"),namePlaceholder:Translator.trans("sentry.name_placeholder"),emailLabel:Translator.trans("sentry.email_label"),emailPlaceholder:Translator.trans("sentry.email_placeholder"),isRequiredLabel:Translator.trans("sentry.is_required_label"),messageLabel:Translator.trans("sentry.message_label"),messagePlaceholder:Translator.trans("sentry.message_placeholder"),successMessageText:Translator.trans("sentry.success_message_text"),autoInject:!r});if(r){var s=document.createElement("li");s.innerHTML='<hr class="dropdown-divider">';var i=document.createElement("li"),a=document.createElement("button");a.classList.add("dropdown-item"),a.type="button",a.textContent=Translator.trans("sentry.trigger_label"),i.append(s,a),r.appendChild(i),o.attachTo(a)}n.integrations.push(o)}$u(n),e.user&&(t=e.user,Re().setUser(t)),e.lastEventId&&Bu({eventId:e.lastEventId,user:e.user})})}}}]);

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.